re PR tree-optimization/49318 (177.mesa in SPEC CPU 2000 failed to build)
[gcc.git] / gcc / ChangeLog
1 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
2
3 PR tree-optimization/49318
4 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
5 irrelevant pattern statements.
6
7 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
8
9 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
10
11 PR bootstrap/49354
12 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
13 to last assignment.
14
15 2011-06-09 Jan Hubicka <jh@suse.cz>
16
17 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
18 do not recompute reachable flag.
19 (cgraph_finalize_function, cgraph_analyze_functions): Set
20 redefined_extern_inline here.
21
22 2011-06-09 Jan Hubicka <jh@suse.cz>
23
24 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
25 (cgraph_only_called_directly_p): ... this one; bring offline.
26 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
27 varpool_used_from_object_file_p): Drop names from the declaratoin.
28 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
29 collect_callers_of_node): New.
30 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
31 (cgraph_edge_recursive_p): Use cgraph_function_node.
32 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
33 (cgraph_node_cannot_be_local_p_1): Break out from ...
34 (cgraph_node_can_be_local_p): ... here; walk aliases.
35 (cgraph_for_node_thunks_and_aliases): New function.
36 (cgraph_for_node_and_aliases): New function.
37 (cgraph_make_node_local_1): Break out from ...
38 (cgraph_make_node_local) ... here; use cgraph_for_node_thunks_and_aliases.
39 (cgraph_set_nothrow_flag_1): Break out from ...
40 (cgraph_set_nothrow_flag) ... here; use cgraph_for_node_thunks_and_aliases.
41 (cgraph_set_const_flag_1): Break out from ...
42 (cgraph_set_const_flag) ... here; use cgraph_for_node_thunks_and_aliases.
43 (cgraph_set_pure_flag_1): Break out from ...
44 (cgraph_set_pure_flag) ... here; use cgraph_for_node_thunks_and_aliases.
45 (cgraph_propagate_frequency_1): Break out from ...
46 (cgraph_propagate_frequency) ... here; use cgraph_for_node_thunks_and_aliases.
47 (cgraph_used_from_object_file_p): Do not care about aliases.
48 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p): New functions.
49 (collect_callers_of_node_1, collect_callers_of_node): New functions.
50
51 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
52
53 PR rtl-optimization/49154
54 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
55 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
56 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
57 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
58 * config/cris/cris.h (cris_register_move_cost): Remove
59 !TARGET_V32 code. Tweak comments.
60
61 2011-06-09 Jan Hubicka <jh@suse.cz>
62
63 * cgraphbuild.c (record_eh_tables): Mark personality function as having
64 address taken.
65
66 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
67
68 PR rtl-optimization/49154
69 * ira-costs.c (setup_regno_cost_classes_by_mode): If there
70 already is a matching slot in the hashtable, assign it to
71 classes_ptr.
72
73 PR rtl-optimization/49154
74 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
75 register classes.
76 * doc/tm.texi: Regenerate.
77
78 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
79
80 PR target/49307
81 * config/sh/sh.md (UNSPEC_CHKADD): New.
82 (chk_guard_add): New define_insn_and_split.
83 (symGOT_load): Use chk_guard_add instead of blockage.
84
85 2011-06-09 Kai Tietz <ktietz@redhat.com>
86
87 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
88
89 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
90
91 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
92
93 2011-06-09 Wei Guozhi <carrot@google.com>
94
95 PR target/46975
96 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
97 (peephole2 for conditional move): Generate 16 bit instructions.
98
99 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
100
101 * config/i386/i386.md (*movdi_internal_rex64): Merge
102 alternatives 6 and 8.
103
104 2011-06-09 David Li <davidxl@google.com>
105
106 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
107 * passes.c (passr_eq): New function.
108 (create_pass_tab): New function.
109 (pass_traverse): New function.
110 (dump_one_pass): New function.
111 (dump_pass_list): New function.
112 (dump_passes): New function.
113
114 2011-06-09 David Li <davidxl@google.com>
115
116 * tree-complex.c (tree_lower_complex): Gate cleanup.
117 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
118 (execute_optimize_stdarg): Ditto.
119 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
120 (execute_cleanup_eh_1): Ditto.
121 (execute_cleanup_eh): Ditto.
122 * gcse.c (gate_rtl_pre): Ditto.
123 (execute_rtl_pre): Ditto.
124 * except.c (finish_eh_generation): Ditto.
125 (convert_to_eh_region_ranges): Ditto.
126 * cprop.c (one_cprop_pass): Ditto.
127
128 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
129
130 PR target/48673
131 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
132 in all basic blocks.
133
134 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
135
136 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
137 (HAVE_ENABLE_EXECUTE_STACK): Define.
138 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
139 (HAVE_ENABLE_EXECUTE_STACK): Define.
140 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
141 (HAVE_ENABLE_EXECUTE_STACK): Define.
142 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
143 (ENABLE_EXECUTE_STACK): Remove.
144 (HAVE_ENABLE_EXECUTE_STACK): Define.
145 [IN_LIBGCC2]: Don't include <windows.h>.
146 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
147 (HAVE_ENABLE_EXECUTE_STACK): Define.
148 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
149 (HAVE_ENABLE_EXECUTE_STACK): Define.
150 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
151 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
152 (HAVE_ENABLE_EXECUTE_STACK): Define.
153 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
154 (HAVE_ENABLE_EXECUTE_STACK): Define.
155 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
156 (HAVE_ENABLE_EXECUTE_STACK): Define.
157 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
158 (HAVE_ENABLE_EXECUTE_STACK): Define.
159 * config/alpha/alpha.c (alpha_trampoline_init): Test
160 HAVE_ENABLE_EXECUTE_STACK.
161 * config/i386/i386.c (ix86_trampoline_init): Likewise.
162 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
163 (sparc64_initialize_trampoline): Likewise.
164 * libgcc2.c [L_enable_execute_stack]: Remove.
165 * system.h (ENABLE_EXECUTE_STACK): Poison.
166 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
167 * doc/tm.texi: Regenerate.
168 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
169
170 2011-06-09 Jakub Jelinek <jakub@redhat.com>
171
172 PR middle-end/49308
173 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
174 variable. After resetting and rescanning insn continue with previous
175 statement.
176
177 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
178
179 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
180 (gcc_cv_ld_hidden): Likewise.
181 * configure: Regenerate.
182 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
183 (ix86_stack_protect_fail): Mark unused.
184 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
185 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
186 [TARGET_MACHO]: Don't define.
187 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
188 (TARGET_STACK_PROTECT_FAIL): Likewise.
189 (rs6000_stack_protect_fail): Mark unused.
190 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
191 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
192
193 2011-06-08 Andi Kleen <ak@linux.intel.com>
194
195 * varasm.c (get_section): Print location of other conflict
196 for section conflicts.
197
198 2011-06-08 Andi Kleen <ak@linux.intel.com>
199
200 * config/i386/driver-i386.c (host_detect_local_cpu):
201 Add model 0x2d Intel CPU.
202
203 2011-06-08 Andi Kleen <ak@linux.intel.com>
204
205 * reginfo.c (global_regs_decl): Add.
206 (globalize_reg): Add decl parameter. Compute location. Pass location
207 to warnings and add inform. Store decl in global_regs_decl.
208 * rtl.h (globalize_reg): Update prototype.
209 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
210
211 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
212
213 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
214
215 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
216
217 PR target/49305
218 * config/sh/predicates.md (general_movsrc_operand): Check
219 mode for memory with indexed address for QI and HImode.
220 (general_movdst_operand): Likewise.
221
222 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
223
224 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
225
226 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
227
228 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
229 (num_ssa_operands): Likewise.
230 (op_iter_init_phiuse): Forward-declare.
231 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
232
233 2011-06-08 Nick Clifton <nickc@redhat.com>
234
235 * doc/invoke.texi (ARM Options): Update description of
236 -mthumb-interwork.
237
238 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
239
240 * config/i386/driver-i386.c (host_detect_local_cpu): Support
241 unknown Intel family 0x6 CPUs.
242
243 2011-06-08 Martin Jambor <mjambor@suse.cz>
244
245 * tree-sra.c (mark_rw_status): Removed.
246 (analyze_access_subtree): New parameter parent instead of
247 mark_read and mark_write, propagate from that.
248
249 2011-06-08 Julian Brown <julian@codesourcery.com>
250
251 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
252 for double-precision helper functions in hard-float mode if only
253 single-precision arithmetic is supported in hardware.
254
255 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
256
257 PR rtl-optimization/49303
258 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
259 code_motion_path_driver returned 0 or 1.
260 (sel_region_finish): Clear h_d_i_d.
261
262 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
263
264 * config/sh/sh.c (prepare_move_operands): Set pic register
265 appropriately for global and local dynamic tls models even
266 if flag_pic is unset.
267
268 2011-06-07 Jason Merrill <jason@redhat.com>
269
270 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
271
272 2011-06-07 Xinliang David Li <davidxl@google.com>
273 * passes.c (enable_disable_pass): Handle assembler name.
274 (is_pass_explicitly_enabled_or_disabled): Ditto.
275
276 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
277
278 PR tree-optimization/48497
279 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
280
281 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
282
283 PR tree-optimization/46728
284 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
285 to use gimple_val_nonnegative_real_p.
286 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
287 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
288
289 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
290
291 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
292
293 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
294
295 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
296 constant vectors.
297
298 2011-06-07 Richard Guenther <rguenther@suse.de>
299
300 * stor-layout.c (initialize_sizetypes): Initialize all
301 sizetypes based on target definitions.
302 (set_sizetype): Remove.
303 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
304 * tree.h (set_sizetype): Remove.
305
306 2011-06-07 Nick Clifton <nickc@redhat.com>
307
308 * config.gcc: Unify V850 architecture options and add support for
309 newer V850 architectures.
310 * config/v850/t-v850e: Delete.
311
312 2011-06-07 Richard Guenther <rguenther@suse.de>
313
314 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
315 Call set_sizetype from here.
316
317 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
318
319 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
320 (*maddhisi4tb, *maddhisi4tt): New define_insns.
321
322 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
323 Andrew Stubbs <ams@codesourcery.com>
324
325 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
326 multiplies.
327 * doc/md.texi (Canonicalization of Instructions): Document widening
328 multiply canonicalization.
329
330 2011-06-07 Jakub Jelinek <jakub@redhat.com>
331
332 PR gcov-profile/49299
333 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
334
335 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
336
337 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
338 a pointer.
339 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
340 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
341 vect_recog_pow_pattern): Likewise.
342 (vect_pattern_recog_1): Remove declaration.
343 (widened_name_p): Remove declaration. Add new argument to specify
344 whether to check that both types are either signed or unsigned.
345 (vect_recog_widen_mult_pattern): Update documentation. Handle
346 unsigned patterns and multiplication by constants.
347 (vect_pattern_recog_1): Update vect_recog_func references. Use
348 statement information from the statement returned from pattern
349 detection functions.
350 (vect_pattern_recog): Update vect_recog_func reference.
351 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
352 multiplication by a constant use the type of the other operand.
353
354 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
355
356 PR rtl-optimization/49145
357 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
358
359 2011-06-06 Jakub Jelinek <jakub@redhat.com>
360
361 PR debug/49262
362 * dwarf2out.c (native_encode_initializer): Decrement count in each
363 iteration.
364
365 PR debug/49294
366 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
367 non-MODE_INT modes.
368
369 PR c++/49264
370 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
371 if stmt folded into nothing.
372 * tree-inline.c (fold_marked_statements): If a builtin at the end of
373 a bb folded into nothing, just update cgraph edges and move to next bb.
374 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
375 to be NULL. Don't compute count and frequency if new_call is NULL.
376
377 2011-06-04 Diego Novillo <dnovillo@google.com>
378
379 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
380 (cgraph.o): Likewise.
381 (cgraphunit.o): Likewise.
382 * cgraphunit.c: Include lto-streamer.h
383 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
384 if LTO is enabled.
385 * lto-streamer-in.c (unpack_value_fields): Call
386 streamer_hooks.unpack_value_fields if set.
387 (lto_materialize_tree): For unhandled nodes, first try to
388 call lto_streamer_hooks.alloc_tree, if it exists.
389 (lto_input_ts_decl_common_tree_pointers): Move reading of
390 DECL_INITIAL to lto_streamer_read_tree.
391 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
392 (lto_streamer_read_tree): New.
393 (lto_reader_init): Rename from lto_init_reader.
394 Move initialization code to lto/lto.c.
395 * lto-streamer-out.c (pack_value_fields): Call
396 streamer_hooks.pack_value_fields if set.
397 (lto_output_tree_ref): For tree nodes that are not normally indexable,
398 call streamer_hooks.indexable_with_decls_p before giving up.
399 (lto_output_ts_decl_common_tree_pointers): Move handling
400 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
401 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
402 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
403 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
404 (lto_streamer_write_tree): New.
405 (lto_output): Call lto_streamer_init directly.
406 (lto_writer_init): Remove.
407 * lto-streamer.c (streamer_hooks): New.
408 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
409 instead of lto_preload_common_nodes.
410 (lto_is_streamable): Move from lto-streamer.h
411 (lto_streamer_hooks_init): New.
412 (streamer_hooks): New.
413 (streamer_hooks_init): New.
414 * lto-streamer.h (struct output_block): Forward declare.
415 (struct lto_input_block): Likewise.
416 (struct data_in): Likewise.
417 (struct bitpack_d): Likewise.
418 (struct streamer_hooks): Declare.
419 (streamer_hooks): Declare.
420 (lto_streamer_hooks_init): Declare.
421 (lto_streamer_write_tree): Declare.
422 (lto_streamer_read_tree): Declare.
423 (streamer_hooks_init): Declare.
424 (lto_is_streamable): Move to lto-streamer.c
425
426 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
427
428 * longlong.h (smul_ppmm): The resulting register pair contains the
429 higher order word first.
430
431 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
432
433 PR tree-optimization/46728
434 * builtins.c (powi_table): Remove.
435 (powi_lookup_cost): Remove.
436 (powi_cost): Remove.
437 (expand_powi_1): Remove.
438 (expand_powi): Remove.
439 (expand_builtin_pow_root): Remove.
440 (expand_builtin_pow): Remove.
441 (expand_builtin_powi): Eliminate handling of constant exponent.
442 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
443
444 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
445
446 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
447
448 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
449
450 * dce.c (reset_unmarked_insns_debug_uses): New.
451 (delete_unmarked_insns): Skip debug insns.
452 (prescan_insns_for_dce): Likewise.
453 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
454 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
455 active reg can be found.
456 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
457 (convert_regs_1): Use it.
458
459 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
460
461 * tree-pretty-print.c (dump_function_header): Add flags.
462 Don't dump decl_uid with nouid.
463 * tree-pretty-print.h (dump_function_header): Adjust.
464 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
465 * passes.c (pass_init_dump_file): Pass dump_flags on.
466 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
467
468 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
469
470 PR bootstrap/49270
471 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
472
473 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
474
475 PR tree-optimization/49243
476 * calls.c (setjmp_call_p): Also check if fndecl has the
477 returns_twice attribute.
478
479 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
480
481 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
482 -ffast-math etc.
483
484 2011-06-06 Richard Henderson <rth@redhat.com>
485 Georg-Johann Lay <avr@gjlay.de>
486
487 PR target/42210
488 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
489 New predicates.
490 * config/avr/avr.md ("insv"): New insn expander.
491 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
492 "*insv.not.io", "*insv.reg"): New insns.
493
494 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
495
496 PR target/49285
497 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
498 to nonimmediate_operand from memory_operand for the operand that is to
499 be forced to memory by the expander. Lose the constraints.
500
501 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
502
503 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
504 EH return when delayed branches are disabled.
505
506 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
507
508 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
509 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
510 calculation.
511 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
512 Simplify MODE_V1DF and MODE_V2SF handling.
513 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
514 Simplify MODE_SF handling.
515
516 2011-06-04 Jan Hubicka <jh@suse.cz>
517
518 PR tree-optimization/48893
519 PR tree-optimization/49091
520 PR tree-optimization/49179
521 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
522 Bounds check.
523
524 2011-06-04 Jan Hubicka <jh@suse.cz>
525
526 PR lto/48954
527 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
528 bitmaps.
529
530 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
531
532 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
533
534 2011-06-04 Jakub Jelinek <jakub@redhat.com>
535
536 PR target/49281
537 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
538 to be strictly smaller than 1 << shiftcount.
539
540 2011-06-04 Jan Hubicka <jh@suse.cz>
541
542 PR tree-optimize/48929
543 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
544 of empty predicate.
545
546 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
547
548 PR debug/48333
549 * calls.c (emit_call_1): Prefer the __builtin declaration of
550 builtin functions.
551
552 2011-06-03 Diego Novillo <dnovillo@google.com>
553
554 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
555 (lto_input_tree_pointers): Likewise.
556 * lto-streamer-out.c (pack_value_fields): Likewise.
557 (lto_output_tree_pointers): Likewise.
558 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
559 and OPTIMIZATION_NODE.
560
561 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
562
563 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
564 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
565 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
566 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
567 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
568 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
569 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
570 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
571 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
572 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
573 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
574 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
575 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
576 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
577 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
578 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
579 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
580 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
581 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
582 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
583 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
584 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
585 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
586 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
587 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
588 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
589 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
590 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
591 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
592 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
593 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
594 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
595 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
596 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
597 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
598 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
599 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
600 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
601 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
602 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
603 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
604 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
605 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
606 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
607 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
608 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
609 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
610 * system.h (MD_UNWIND_SUPPORT): Poison.
611 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
612 * doc/tm.texi: Regenerate.
613 * unwind-dw2.c: Include md-unwind-support.h instead of
614 MD_UNWIND_SUPPORT.
615 * config/ia64/unwind-ia64.c: Likewise.
616 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
617
618 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
619
620 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
621
622 2011-06-03 Richard Henderson <rth@redhat.com>
623 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
624
625 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
626 (sigill_hdlr): Correct insn, insn size.
627 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
628
629 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
630
631 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
632 t-slibgcc-dummy.
633 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
634 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
635 * config/mips/t-iris: Remove.
636 * config/mips/t-irix6: New file.
637 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
638
639 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
640
641 * Makefile.in (LIB2ADDEHDEP): Remove.
642 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
643 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
644 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
645 * config/t-darwin (LIB2ADDEHDEP): Remove.
646 * config/t-freebsd (LIB2ADDEHDEP): Remove.
647 * config/t-linux (LIB2ADDEHDEP): Remove.
648
649 2011-06-03 Diego Novillo <dnovillo@google.com>
650
651 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
652 (lto_register_var_decl_in_symtab): Likewise.
653 (lto_register_function_decl_in_symtab): Likewise.
654 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
655 logic to uniquify_nodes.
656
657 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
658
659 * config/alpha/t-osf5: Remove.
660 * config/alpha/t-osf-pthread: Remove.
661 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
662 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
663
664 2011-06-03 Julian Brown <julian@codesourcery.com>
665
666 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
667 (strongarm1110): Use strongarm tuning.
668 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
669 * config/arm/arm.c (arm_strongarm_tune): New.
670 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
671 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
672 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
673 setting, using previous defaults or 1 for Cortex-A5.
674 (arm_option_override): Set max_insns_skipped from current tuning.
675
676 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
677
678 * doc/install.texi (Options specification): Document --with-specs.
679
680 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
681
682 * config/arm/neon.md (orndi3_neon): Actually split it.
683
684 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
685
686 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
687 * var-tracking.c (reverse_op): Limite recurse depth to 5.
688
689 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
690
691 PR debug/47590
692 * target.def (delay_sched2, delay_vartrack): New.
693 * doc/tm.texi.in: Update.
694 * doc/tm.texi: Rebuild.
695 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
696 * var-tracking.c (gate_handle_var_tracking): Likewise.
697 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
698 (bfin_flag_var_tracking): Drop.
699 (output_file_start): Don't save and override flag_var_tracking.
700 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
701 (bfin_reorg): Test original variables.
702 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
703 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
704 (ia64_flag_var_tracking): Drop.
705 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
706 (ia64_file_start): Don't save and override flag_var_tracking.
707 (ia64_override_options_after_change): Ditto
708 flag_schedule_insns_after_reload.
709 (ia64_reorg): Test original variables.
710 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
711 (picochip_flag_var_tracking): Drop.
712 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
713 (picochip_option_override): Don't save and override
714 flag_schedule_insns_after_reload.
715 (picochip_asm_file_start): Ditto flag_var_tracking.
716 (picochip_reorg): Test original variables.
717 * config/spu/spu.c (spu_flag_var_tracking): Drop.
718 (TARGET_DELAY_VARTRACK): Define.
719 (spu_var_tracking): New.
720 (spu_machine_dependent_reorg): Call it.
721 (asm_file_start): Don't save and override flag_var_tracking.
722
723 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
724
725 PR target/49163
726 * config/sh/predicates.md (general_movsrc_operand): Return 0
727 for memory and memory subreg of which address is an invalid
728 indexed address for QI and HImode.
729 (general_movdst_operand): Likewise.
730
731 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
732
733 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
734 edges only, when there is a non-local label in the function.
735 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
736
737 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
738
739 * config/i386/constraints.md (Y3): New register constraint.
740 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
741 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
742 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
743 *sse2_interleave_lowv2df.
744
745 2011-06-02 Julian Brown <julian@codesourcery.com>
746
747 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
748 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
749 (arm_cortex_a5_tune): New.
750
751 2011-06-02 Julian Brown <julian@codesourcery.com>
752
753 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
754 * config/arm/arm.c (arm_default_branch_cost): New.
755 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
756 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
757 (arm_fa726_tune): Set branch_cost field using
758 arm_default_branch_cost.
759 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
760 current_tune structure.
761 * dojump.c (tm_p.h): Include file.
762
763 2011-06-02 Julian Brown <julian@codesourcery.com>
764
765 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
766 tuning.
767 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
768 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
769 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
770 field.
771 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
772 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
773 (arm_fa726te_tune): Add prefer_constant_pool setting.
774 (arm_v6t2_tune, arm_cortex_tune): New.
775 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
776 prefer_constant_pool setting.
777
778 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
779
780 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
781 switch statement.
782 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
783 (*movdf_internal) <case 6,7,8>: Ditto.
784
785 * config/i386/constraints.md (Y4): New register constraint.
786 * config/i386/sse.md (vec_set<mode>_0): Merge with
787 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
788 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
789 *vec_extractv2di_1_sse.
790 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
791 and *vec_concatv2di_rex64_sse.
792
793 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
794
795 PR target/48807
796 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
797 of cgraph_local_info for null before attempting to use it.
798
799 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
800
801 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
802 (current_function_dynamic_alloc_count): Delete.
803 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
804 (expand_builtin_nonlocal_goto): Remove obsolete comment.
805 (expand_builtin_update_setjmp_buf): Remove dead code.
806 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
807 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
808 support.
809 * function.c (instantiate_virtual_regs): Likewise.
810 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
811 for a block with a single abnormal incoming edge.
812 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
813 (SETJMP_VIA_SAVE_AREA): Delete.
814 * config/sparc/sparc-protos.h (load_got_register): Declare.
815 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
816 (load_got_register): Make global.
817 (sparc_frame_pointer_required): Add 'static'.
818 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
819 (sparc_builtin_setjmp_frame_value): New function.
820 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
821 (save_stack_nonlocal): New expander.
822 (restore_stack_nonlocal): Likewise.
823 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
824 (nonlocal_goto_internal): New insn.
825 (goto_handler_and_restore): Delete.
826 (builtin_setjmp_setup): Likewise.
827 (do_builtin_setjmp_setup): Likewise.
828 (setjmp): Likewise.
829 (builtin_setjmp_receiver): New expander.
830
831 2011-06-01 David Li <davidxl@google.com>
832
833 PR middle-end/49261
834 * tree-pretty-print.c (dump_function_header): Format cleanup.
835
836 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
837
838 PR target/49238
839 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
840 needed when original operands are used for msw_skip comparison.
841
842 2011-06-01 Jakub Jelinek <jakub@redhat.com>
843
844 PR debug/49250
845 * var-tracking.c (add_uses, add_stores): Don't call
846 cselib_subst_to_values on ENTRY_VALUE.
847
848 2011-06-01 Diego Novillo <dnovillo@google.com>
849
850 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
851 output_record_start with LTO_null instead of output_zero.
852 (lto_output_ts_binfo_tree_pointers): Likewise.
853 (lto_output_tree): Likewise.
854 (output_eh_try_list): Likewise.
855 (output_eh_region): Likewise.
856 (output_eh_lp): Likewise.
857 (output_eh_regions): Likewise.
858 (output_bb): Likewise.
859 (output_function): Likewise.
860 (output_unreferenced_globals): Likewise.
861 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
862 instead of NUM_TREE_CODES.
863 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
864 (lto_output_int_in_range): Change << to >> when shifting VAL.
865
866 2011-06-01 Diego Novillo <dnovillo@google.com>
867
868 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
869 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
870
871 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
872
873 PR target/45074
874 * optabs.h (valid_multiword_target_p): Declare.
875 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
876 doing multi-word operations.
877 * optabs.c (expand_binop): Likewise.
878 (expand_doubleword_bswap): Likewise.
879 (expand_absneg_bit): Likewise.
880 (expand_unop): Likewise.
881 (expand_copysign_bit): Likewise.
882 (multiword_target_p): New function.
883
884 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
885
886 PR rtl-optimization/48830
887 PR rtl-optimization/48808
888 PR rtl-optimization/48792
889 * reload.c (push_reload): Check contains_reg_of_mode.
890 * reload1.c (strip_paradoxical_subreg): New function.
891 (gen_reload_chain_without_interm_reg_p): Use it to handle
892 paradoxical subregs.
893 (emit_output_reload_insns, gen_reload): Likewise.
894
895 2011-06-01 David Li <davidxl@google.com>
896
897 * predict.c : Change pass name
898 * ipa.c: Ditto.
899 * dce.c: Ditto.
900 * tree-profile.c: Ditto.
901 * except.c: Ditto.
902
903 2011-06-01 David Li <davidxl@google.com>
904
905 * tree-pretty-print.c (dump_function_header): New function.
906 * final.c (rest_of_clean_state): Use header dumper.
907 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
908 * passes.c (pass_init_dump_file): Use header dumper.
909
910 2011-06-01 Jakub Jelinek <jakub@redhat.com>
911
912 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
913 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
914 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
915 New functions.
916 (mem_loc_descriptor): Use them.
917
918 * var-tracking.c (create_entry_value): New function.
919 (vt_add_function_parameter): Use it.
920
921 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
922
923 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
924 Include <signal.h>, <ucontext.h>.
925 (sigill_caught): Define.
926 (sigill_hdlr): New function.
927 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
928 insns can be executed.
929 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
930 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
931
932 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
933
934 * config/t-slibgcc-darwin: Move to ...
935 * config/t-slibgcc-dummy: ... this. Clarify comments.
936 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
937 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
938 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
939 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
940 Remove i386/t-crtstuff from tmake_file.
941 (i[34567]86-*-solaris2*): Remove t-svr4,
942 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
943 t-slibgcc-dummy.
944 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
945 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
946 sparc/t-crtfm from tmake_file.
947 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
948 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
949 Remove extra_parts.
950 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
951 * config/i386/t-nwld (SHLIB_LINK): Remove.
952 * config/i386/t-rtems-i386: Rename to ...
953 * config/i386/t-rtems: ... this.
954 ($(T)crti.o, $(T)crtn.o): Remove.
955 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
956 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
957 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
958 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
959 EXTRA_MULTILIB_PARTS): Remove.
960 * config/sparc/t-sol2-64: Likewise.
961 * config/sparc/t-sol2: Remove.
962 * config/sparc/t-crtin: Remove.
963 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
964 * config/i386/gmon-sol2.c: Remove.
965 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
966 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
967 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
968 * config/i386/sol2-gc1.asm: Remove.
969 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
970 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
971 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
972 * config/t-slibgcc-sld: Remove.
973
974 2011-06-01 Jakub Jelinek <jakub@redhat.com>
975
976 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
977 base_type_for_mode with op_mode instead of mode.
978
979 2011-06-01 Paul Brook <paul@cpodesourcery.com>
980
981 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
982 Cortex-A15.
983 * config/arm/arm-tune.md: Regenerate.
984 * config/arm/arm-tables.opt: Regenerate.
985 * config/arm/arm.c (FL_DIV): Rename...
986 (FL_THUMB_DIV): ... to this.
987 (FL_ARM_DIV): Define.
988 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
989 (arm_arch_hwdiv): Remove.
990 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
991 (arm_issue_rate): Add cortexr5.
992 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
993 __ARM_ARCH_EXT_IDIV__.
994 (TARGET_IDIV): Define.
995 (arm_arch_hwdiv): Remove.
996 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
997 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
998 (divsi3, udivsi3): New patterns.
999 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
1000 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
1001
1002 2011-06-01 Martin Jambor <mjambor@suse.cz>
1003
1004 * ipa-utils.c (ipa_dfs_info): New field scc_no.
1005 * ipa-utils.c (searchc): Set scc_no.
1006
1007 2011-06-01 Martin Jambor <mjambor@suse.cz>
1008
1009 * ipa-utils.c (searchc_env): New field allow_overwritable.
1010 (searchc): do not ignore edges to overwritable nodes if indicated
1011 by env->allow_overwritable.
1012 (ipa_reduced_postorder): Set env.allow_overwritable.
1013
1014 2011-06-01 Richard Guenther <rguenther@suse.de>
1015
1016 * tree.c (free_lang_data): Do not reset boolean_type_node nor
1017 char_type_node.
1018 * lto-streamer.c (lto_record_common_node): Take node pointer,
1019 do not register types.
1020 (lto_preload_common_nodes): Explicitly skip preloading nodes
1021 that differ between frontends.
1022
1023 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
1024
1025 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
1026 NON_FLOAT_REGS.
1027
1028 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
1029
1030 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
1031 parameter value for dump. Dump cost on outermost call only.
1032 (rs6000_memory_move_cost): Dump cost on outermost call only.
1033
1034 2011-05-31 Jakub Jelinek <jakub@redhat.com>
1035
1036 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
1037 DW_OP_GNU_convert ops.
1038
1039 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
1040 cselib_preserve_constants.
1041 (cselib_lookup_1): If cselib_preserve_constants,
1042 a new VALUE is being created for REG and there is a VALUE for the
1043 same register in wider mode, add another loc with lowpart SUBREG of
1044 the wider VALUE.
1045 (cselib_subst_to_values): Handle ENTRY_VALUE.
1046 * var-tracking.c (replace_expr_with_values): Return NULL for
1047 ENTRY_VALUE too.
1048 * dwarf2out.c (convert_descriptor_to_signed): New function.
1049 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
1050 instead of two shifts.
1051 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
1052 the right mode if needed.
1053 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
1054 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
1055 convert_descriptor_to_signed.
1056 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
1057 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
1058
1059 PR target/48688
1060 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
1061
1062 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
1063
1064 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
1065 of X87MODEI12 and SWI48x instead of SSEMODEI24.
1066 (SWI248x): New mode iterator, rename from X87MODEI.
1067 (X87MODEI): Remove mode iterator.
1068 (X87MODEI12): Ditto.
1069 (SSEMODEI24): Ditto.
1070
1071 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1072
1073 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
1074 * doc/invoke.texi: Document max-vartrack-expr-depth.
1075 * var-tracking.c (EXPR_DEPTH): New.
1076 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
1077
1078 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1079
1080 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
1081 * config/i386/sse.md: Add n to negated FMA pattern names.
1082
1083 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1084
1085 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
1086
1087 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1088
1089 * gengtype-state.c (read_state_params_structs): Initialize previous.
1090
1091 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
1092
1093 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
1094 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
1095
1096 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
1097
1098 * config/i386/i386.md (*movtf_internal): Avoid allocating general
1099 registers. Penalize F*r->o alternative to prevent partial memory
1100 stalls. Slightly penalize *roF->*r alternative. Generate SSE
1101 CONST_DOUBLE immediates when optimizing function for size. Do not move
1102 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
1103 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
1104 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
1105 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
1106 alternatives.
1107 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
1108
1109 (fp_register_operand splitters): Use fp_register_operand
1110 constraint. Do not use FP_REG_P in insn condition.
1111 (any_fp_register_operand splitters): Use any_fp_register_operand
1112 constraint. Do not use ANY_FP_REG_P in insn condition.
1113
1114 2011-05-31 Jan Hubicka <jh@suse.cz>
1115
1116 * cgraph.h (cgraph_inline_failed_t): Give enum a name
1117 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
1118 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
1119 (lto_output_edge): Use output_enum and var_len_unsigned.
1120 (lto_output_varpool_node): Likewise.
1121 (input_overwrite_node): Do not take resolution parameter;
1122 extract it from a bitpack.
1123 (input_node): Do not read resolution; use input_enum and
1124 var_len_unsigned.
1125 (input_varpool_node): Likewise.
1126 (input_edge): Likewise.
1127 (input_cgraph_1): Likewise.
1128
1129 2011-05-31 Richard Guenther <rguenther@suse.de>
1130
1131 * gimple.c (gimple_register_canonical_type): Do not register
1132 any types via gimple_register_type.
1133
1134 2011-05-31 Jan Hubicka <jh@suse.cz>
1135
1136 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
1137 of thunks.
1138
1139 2011-05-31 Jakub Jelinek <jakub@redhat.com>
1140
1141 PR rtl-optimization/49235
1142 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
1143 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
1144
1145 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
1146
1147 PR tree-optimization/49093
1148 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
1149 data references.
1150
1151 2011-05-31 Dodji Seketeli <dodji@redhat.com>
1152
1153 PR debug/49047
1154 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
1155 for concrete functions containing the code of cloned functions.
1156
1157 2011-05-31 Richard Guenther <rguenther@suse.de>
1158
1159 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
1160 to ...
1161 (forward_propagate_into_comparison_1): ... this.
1162 (forward_propagate_comparison): Rename to ...
1163 (forward_propagate_into_comparison): ... this. Split out
1164 real forward propagation code to ...
1165 (forward_propagate_comparison): ... this.
1166 (forward_propagate_into_gimple_cond): Remove looping.
1167 (forward_propagate_into_cond): Likewise.
1168 (simplify_not_neg_expr): Return whether we have done something.
1169 (simplify_gimple_switch): Likewise.
1170 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
1171 (ssa_forward_propagate_and_combine): ... this. Re-structure
1172 to do a forward forward-propagation walk on BBs and a backward
1173 stmt combining walk on BBs. Consistently re-scan changed statements.
1174 (pass_forwprop): Adjust.
1175
1176 2011-05-30 Ian Lance Taylor <iant@google.com>
1177
1178 * godump.c (go_format_type): Correct length of name added to
1179 obstack for anonymous field.
1180
1181 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
1182
1183 PR target/49186
1184 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
1185 part of the second operand is 0.
1186
1187 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
1188
1189 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
1190 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
1191 to memory for !TARGET_MEMORY_MISMATCH_STALL.
1192 (*movdf_internal_rex64): Do not penalize F->r alternative.
1193 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
1194 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
1195 when optimizing function for size. Do not move CONST_DOUBLEs
1196 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
1197 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
1198 SUBREGs. Do not check for MEM_P operands in the insn condition,
1199 check for ANY_FP_REGNO_P instead.
1200 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
1201 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
1202 function for speed.
1203 * config/i386/i386.c (ix86_option_override_internal): Do not
1204 set TARGET_INTEGER_DFMODE_MOVES here.
1205
1206 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
1207
1208 PR target/49168
1209 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
1210
1211 2011-05-30 Jakub Jelinek <jakub@redhat.com>
1212
1213 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
1214 DW_TAG_rvalue_reference_type even for
1215 -gdwarf-4 -fno-debug-types-section.
1216
1217 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1218
1219 PR tree-optimization/46728
1220 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
1221 (build_and_insert_binop): New.
1222 (gimple_expand_builtin_pow): Reorder args for
1223 build_and_insert_call; use build_and_insert_binop; add more
1224 optimizations for fractional exponents.
1225
1226 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
1227
1228 PR bootstrap/49190
1229
1230 Revert:
1231 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1232
1233 * tree.h (struct tree_identifier): Inherit from tree_typed, not
1234 tree_common.
1235 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
1236 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
1237 TS_BASE instead of TS_COMMON.
1238 * varasm.c (assemble_name): Remove assert.
1239
1240 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
1241
1242 * config.gcc: Keep obselete list sorted.
1243
1244 2011-05-30 Jakub Jelinek <jakub@redhat.com>
1245 Eric Botcazou <ebotcazou@adacore.com>
1246
1247 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
1248 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
1249 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
1250 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
1251 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
1252
1253 2011-05-30 Richard Guenther <rguenther@suse.de>
1254
1255 * gimple.c (gimple_types_compatible_p_1): Compare record
1256 and union type members properly.
1257
1258 2011-05-30 Richard Guenther <rguenther@suse.de>
1259
1260 PR tree-optimization/49210
1261 * ipa-split.c (split_function): Care for the case where the call
1262 result is not trivially convertible to the result holding variable.
1263
1264 2011-05-30 Richard Guenther <rguenther@suse.de>
1265
1266 PR tree-optimization/49218
1267 * tree-vrp.c (adjust_range_with_scev): Properly check whether
1268 overflow occured.
1269
1270 2011-05-30 Richard Guenther <rguenther@suse.de>
1271
1272 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
1273 New function split out from ...
1274 (forward_propagate_into_gimple_cond): ... here. Adjust.
1275 (forward_propagate_into_cond): Likewise.
1276 (forward_propagate_comparison): Also propagate into
1277 comparisons on assignment RHS. Change return value to
1278 behave similar to forward_propagate_into_cond.
1279 (tree_ssa_forward_propagate_single_use_vars): Handle
1280 strict-overflow warnings properly for forward_propagate_comparison.
1281
1282 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1283
1284 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
1285 from plugin linker.
1286 * configure: Regenerate.
1287
1288 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
1289
1290 PR tree-optimization/49199
1291 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
1292 non-reduction operands are either defined in the loop or by induction.
1293
1294 2011-05-29 Xinliang David Li <davidxl@google.com>
1295
1296 * opts-global.c (handle_common_deferred_options): Handle new options.
1297 * passes.c (register_one_dump_file): Call register_pass_name.
1298 (execute_one_pass): Check explicit enable/disable flag.
1299 (passr_hash): New function.
1300 (passr_eq): Ditto.
1301 (register_pass_name): Ditto.
1302 (get_pass_by_name): Ditto.
1303 (pass_hash): Ditto.
1304 (pass_eq): Ditto.
1305 (enable_pass): Ditto.
1306 (disable_pass): Ditto.
1307 (is_pass_explicitly_enabled_or_disabled): Ditto.
1308
1309 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
1310
1311 * config/i386/i386.md (*movoi_internal_avx): Use
1312 standard_sse_constant_opcode for alternative 0.
1313 (*movti_internal_sse): Ditto.
1314 (*movti_internal_rex64): Use standard_sse_constant_opcode for
1315 alternative 2.
1316 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
1317 sselog1 type moves.
1318 (*movsi_internal): Ditto.
1319 (*movdi_internal): Ditto. Add ssecvt type moves.
1320
1321 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
1322
1323 PR target/48830
1324 * rtlanal.c (simplify_subreg_regno): Adjust comment.
1325
1326 2011-05-29 Jakub Jelinek <jakub@redhat.com>
1327
1328 PR rtl-optimization/49095
1329 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
1330 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
1331
1332 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
1333
1334 PR target/43995
1335 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
1336 recurse_p argument. Only follow register copies if it is set,
1337 and prevent mips_find_pic_call_symbol from recursing.
1338 (mips_find_pic_call_symbol): Add a recurse_p argument.
1339 Pass it to mips_pic_call_symbol_from_set.
1340 (mips_annotate_pic_calls): Update accordingly.
1341
1342 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
1343
1344 * emit-rtl.c (try_split): Use a loop to search for
1345 NOTE_INSN_CALL_ARG_LOCATIONs.
1346
1347 2011-05-29 Richard Guenther <rguenther@suse.de>
1348
1349 PR tree-optimization/49217
1350 * ipa-pure-const.c (propagate_pure_const): Fix typos.
1351
1352 2011-05-28 Jan Hubicka <jh@suse.cz>
1353
1354 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
1355 length.
1356 (string_slot_free): Remove
1357 (create_output_block): Initialize obstack.
1358 (destroy_output_block): Free obstack.
1359 (lto_string_index): Add PERSISTENT parameter; do not duplicate
1360 the string unless it needs to be added into the hash.
1361 (lto_output_string_with_length): Add persistent attribute;
1362 handle NULL strings.
1363 (lto_output_string): Add PERSISTENT parameter.
1364 (output_string_cst, output_identifier): Simplify.
1365 (lto_output_location_bitpack): Update.
1366 (lto_output_builtin_tree): Update.
1367 * lto-streamer.h (struct output_block): Add obstack.
1368 (lto_output_string, lto_output_string_with_length): Remove
1369 declarations; functions are static now.
1370
1371 2011-05-28 Jan Hubicka <jh@suse.cz>
1372
1373 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
1374 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
1375 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
1376 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
1377 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
1378 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
1379 unpack_ts_decl_with_vis_value_fields,
1380 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
1381 lto_get_builtin_tree): Use enum and variable length i/o.
1382 * basic-block.h (profile_status_d): Add PROFILE_LAST.
1383 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
1384 New functions.
1385 (bp_pack_enum, bp_unpack_enum): New macros.
1386
1387 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1388
1389 * genrecog.c: Remove redundant forward declarations.
1390
1391 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1392
1393 * config.gcc: Deprecate mips*-*-openbsd*.
1394
1395 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1396
1397 PR bootstrap/49195
1398 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
1399 for match_op_dup.
1400
1401 2011-05-27 Andrew Pinski <pinskia@gmail.com>
1402
1403 PR middle-end/48981
1404 * gengtype.c (vec_prefix_type): New function.
1405 (note_def_vec): Use vec_prefix_type and change the length
1406 attribute to be based on the prefix.
1407 * vec.c: Include coretypes.h before vec.h.
1408 (struct vec_prefix): Remove.
1409 (vec_gc_p_reserve): Change the offsetof to sizeof.
1410 (vec_gc_p_reserve_exact): Likewise.
1411 (vec_heap_p_reserve): Likewise.
1412 (vec_heap_p_reserve_exact): Likewise.
1413 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
1414 (vec_stack_p_reserve): Change the offsetof to sizeof.
1415 (vec_stack_p_reserve_exact): Likewise.
1416 * vec.h (struct vec_prefix): New struct definition.
1417 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
1418 (VEC_T_GTY(T,B)): Likewise.
1419 (DEF_VEC_FUNC_P(T)): Use prefix field.
1420 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
1421 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
1422
1423 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1424
1425 PR tree-optimization/46728
1426 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
1427 (powi_as_mults): Add gimple_set_location.
1428 (build_and_insert_call): New.
1429 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
1430 0.5, 0.25, 0.75, 1./3., or 1./6.
1431
1432 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
1433
1434 * doc/contrib.texi: Update copyright years.
1435 (Contributors): Add Zdenek Sojka.
1436
1437 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1438
1439 * c-decl.c (c_push_function_context): Copy the current statement
1440 list stack.
1441 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
1442 (finish_struct): Call building_stmt_list_p instead of checking
1443 cur_stmt_list.
1444 * c-parser.c (c_parser_postfix_expression): Likewise.
1445 * c-typeck.c (c_end_compound_stmt): Likewise.
1446 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
1447 * tree-iterator.c (stmt_list_cache): Change to a VEC.
1448 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
1449 (free_stmt_list): Likewise.
1450 * tree.h (struct tree_statement_list): Include typed_tree instead
1451 of tree_common.
1452 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
1453 as TS_TYPED instead of TS_COMMON.
1454
1455 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1456 Uros Bizjak <ubizjak@gmail.com>
1457
1458 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
1459 (HAVE_AS_IX86_TLSGDPTL): Define.
1460 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
1461 (HAVE_AS_IX86_TLSLDMPLT): Define.
1462 * configure: Regenerate.
1463 * config.in: Regenerate.
1464 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
1465 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
1466 TARGET_SUN_TLS, use @tlsgdplt or @plt.
1467 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
1468 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
1469 @tlsldmplt or @plt.
1470 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
1471
1472 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
1473
1474 * sched-int.h (struct _haifa_deps_insn_data): New members cond
1475 and reverse_cond.
1476 (INSN_COND, INSN_REVERSE_COND): New macros.
1477 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
1478 once.
1479 (sched_get_condition_with_rev): Cache the results, and look them up
1480 if possible.
1481 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
1482 are clobbered by the current insn.
1483 * target.def (exposed_pipline): New sched data hook.
1484 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
1485 * doc/tm.texi: Regenerate.
1486
1487 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1488
1489 PR tree-optimization/49170
1490 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
1491 sincos or cexp.
1492
1493 2011-05-27 Richard Guenther <rguenther@suse.de>
1494
1495 PR middle-end/49189
1496 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
1497 of comparisons.
1498
1499 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
1500
1501 * haifa-sched.c (sched_scan_info): Remove.
1502 (schedule_block): Call sched_extend_luids rather than sched_init_luids
1503 with NULL args.
1504 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
1505 Remove functions.
1506 (sched_scan): Remove.
1507 (sched_extend_luids): Renamed from luids_extend_insn and no longer
1508 static. All callers changed.
1509 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
1510 static. All callers changed.
1511 (sched_init_luids): Remove all arguments except the first. All
1512 callers changed. Don't use sched_scan.
1513 (haifa_init_h_i_d): Likewise.
1514 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
1515 manually rather than using sched_init_luids. Likewise with
1516 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
1517 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
1518 rather than sched_init_luids with NULL args.
1519 * sel-sched-ir.c (new_insns): Remove variable.
1520 (sched_scan): New static function, previously in haifa-sched.c. Remove
1521 all arguments but the first two; all callers changed.
1522 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
1523 rather than sched_init_luids.
1524 (sel_init_bbs): Remove second argument. All callers changed.
1525 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
1526 with NULL arguments.
1527 (create_insn_rtx_from_pattern): Likewise.
1528 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
1529 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
1530 (sched_init_insn_luid, sched_extend_luids): Declare.
1531 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
1532 declarations.
1533
1534 2011-05-27 Richard Guenther <rguenther@suse.de>
1535
1536 PR middle-end/49177
1537 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
1538 A CMP B ? (T) true : (T) false for non-integral types T again.
1539
1540 2011-05-27 Jan Hubicka <jh@suse.cz>
1541
1542 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
1543 so 0 means NULL string.
1544 (lto_output_string_with_length): ... here.
1545 (lto_output_string, output_string_cst, output_identifier): Update
1546 handling of NULL strings.
1547 (lto_output_location_bitpack): New function.
1548 (lto_output_location): Use it.
1549 (lto_output_tree_ref): Use output_record_start.
1550 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
1551 len values.
1552 * lto-streamer-in.c (string_for_index): Break out from ...; offset
1553 values by 1.
1554 (input_string_internal): ... here;
1555 (input_string_cst, input_identifier, lto_input_string): Update handling
1556 of NULL strings.
1557 (lto_input_location_bitpack): New function
1558 (lto_input_location): Use it.
1559 (unpack_ts_type_common_value_fields): Pack align & alias in var len
1560 values.
1561 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
1562 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
1563 (bp_pack_value): Sanity check the value range.
1564 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
1565 New functions.
1566 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
1567 New functions.
1568
1569 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
1570
1571 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
1572 call_arg_location instructions down the floor.
1573
1574 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
1575
1576 PR rtl-optimization/49154
1577 * ira.c (setup_pressure_classes): Process class without sublcasses
1578 as a candidate for pressure classes.
1579
1580 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
1581
1582 PR rtl-optimization/48575
1583 * genrecog.c (position_type): New enum.
1584 (position): New structure.
1585 (decision): Use position structure instead of a string.
1586 (root_pos, peep2_insn_pos_list): New variables.
1587 (next_position, compare_positions): New functions.
1588 (new_decision): Use position structures instead of strings.
1589 (maybe_both_true): Likewise.
1590 (change_state): Likewise.
1591 (write_tree): Likewise.
1592 (make_insn_sequence): Likewise.
1593
1594 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1595
1596 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
1597 TS_BASE instead of TS_COMMON.
1598 (find_decls_types_r): Check for TS_TYPED structure before looking at
1599 TREE_TYPE.
1600 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
1601 Add chain field.
1602 (BLOCK_CHAIN): Use new chain field.
1603
1604 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
1605
1606 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
1607 moves expensive on Power7 also.
1608
1609 2011-05-26 Richard Guenther <rguenther@suse.de>
1610
1611 * fold-const.c (fold_unary_loc): Remove bogus code.
1612
1613 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1614
1615 * tree.h (struct tree_identifier): Inherit from tree_typed, not
1616 tree_common.
1617 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
1618 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
1619 TS_BASE instead of TS_COMMON.
1620 * varasm.c (assemble_name): Remove assert.
1621
1622 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
1623
1624 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
1625 substituted first.
1626 * libgcc-std.ver: Delete file.
1627
1628 2011-05-26 Richard Guenther <rguenther@suse.de>
1629
1630 PR tree-optimization/48702
1631 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
1632 only when we know the base address is within bounds.
1633 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
1634 assume the base address of TARGET_MEM_REFs is in bounds.
1635
1636 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1637
1638 PR target/49099
1639 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
1640 declaration in TARGET_SOLARIS.
1641
1642 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
1643
1644 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
1645 The instruction is then expanded explicitly.
1646 (supported_compare): Callable instruction.
1647 (compare): Likewise.
1648
1649 2011-05-26 Jakub Jelinek <jakub@redhat.com>
1650
1651 PR c++/49165
1652 * gimplify.c (shortcut_cond_r): Don't special case
1653 COND_EXPRs if they have void type on one of their arms.
1654
1655 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
1656
1657 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
1658 to reduce duplication, and to achieve a slightly more logical order
1659 of operations.
1660
1661 2011-05-26 Jakub Jelinek <jakub@redhat.com>
1662
1663 PR tree-optimization/49161
1664 * tree-vrp.c (struct case_info): New type.
1665 (compare_case_labels): Sort case_info structs instead of
1666 trees, and not primarily by CASE_LABEL uids but by
1667 label_for_block indexes.
1668 (find_switch_asserts): Put case labels into struct case_info
1669 array instead of TREE_VEC, adjust sorting, compare label_for_block
1670 values instead of CASE_LABELs.
1671
1672 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1673
1674 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
1675 ("orndi3_neon"): Likewise.
1676 ("bic<mode>3_neon"): Likewise.
1677
1678 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
1679
1680 PR tree-optimization/49038
1681 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
1682 Ensure at least one epilogue iteration if required by data
1683 accesses with gaps.
1684 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1685 to mark loops that require peeling for gaps.
1686 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
1687 (vect_get_known_peeling_cost): Take peeling for gaps into
1688 account.
1689 (vect_transform_loop): Generate epilogue if required by data
1690 access with gaps.
1691 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
1692 loop as requiring an epilogue if there are gaps in the end of
1693 the strided group.
1694
1695 2011-05-25 Ian Lance Taylor <iant@google.com>
1696
1697 * godump.c (go_format_type): Output the first field with a usable
1698 Go type, if any.
1699
1700 2011-05-25 Ian Lance Taylor <iant@google.com>
1701
1702 * godump.c (go_format_type): Check for invalid type names, pointer
1703 target types, and struct field types.
1704
1705 2011-05-25 Jason Merrill <jason@redhat.com>
1706
1707 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
1708
1709 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
1710
1711 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
1712
1713 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1714
1715 * config/i386/i386.md (*movqi_extv_1)): Put back
1716 "register_operand" check in "type" calculation.
1717 (*movqi_extzv_2): Likewise.
1718
1719 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1720
1721 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
1722
1723 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1724
1725 PR bootstrap/49160
1726 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
1727 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
1728 __divxc3, __divtc3): Wrap definitions in #ifndef.
1729
1730 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1731
1732 PR target/49142
1733 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
1734 "register_operand" check and replace q_regs_operand with
1735 QIreg_operand in "type" calculation.
1736 (*movqi_extv_1): Likewise.
1737 (*movqi_extzv_2_rex64): Likewise.
1738 (*movqi_extzv_2): Likewise.
1739
1740 * config/i386/predicates.md (QIreg_operand): New.
1741
1742 2011-05-25 Richard Guenther <rguenther@suse.de>
1743
1744 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
1745 type-based offset disambiguation, streamline MEM_REF and
1746 TARGET_MEM_REF handling.
1747
1748 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1749
1750 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
1751 (bdesc_special_args): Add pause intrinsic.
1752
1753 * config/i386/i386.md (UNSPEC_PAUSE): New.
1754 (pause): Likewise.
1755 (*pause): Likewise.
1756 * config/i386/ia32intrin.h (__pause): Likewise.
1757
1758 * doc/extend.texi (X86 Built-in Functions): Add documentation for
1759 pause intrinsic.
1760
1761 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1762
1763 PR tree-optimization/46728
1764 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
1765 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
1766
1767 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
1768
1769 * tree.h (struct tree_exp): Inherit from struct tree_typed.
1770 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
1771 instead of TS_COMMON.
1772
1773 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1774
1775 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
1776 LIBGCC2_GNU_PREFIX is defined.
1777 (__N): New macro.
1778 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
1779 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
1780 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
1781 __clz_tab): Define using __N.
1782 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
1783 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
1784 * target.def (libfunc_gnu_prefix): New hook.
1785 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
1786 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
1787 * doc/tm.texi: Regenerate.
1788 * system.h (LIBGCC2_GNU_PREFIX): Poison.
1789 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
1790 account.
1791 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
1792 (init_optabs): Likewise for the bswap libfuncs.
1793 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
1794 and divide.
1795 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
1796 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
1797 * libgcc-std.ver: Remove.
1798 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
1799 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
1800 libgcc-std.ver.
1801 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1802 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
1803 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
1804 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
1805 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
1806 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1807 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1808 * config/fixed-bit.h (FIXED_OP): Define differently depending on
1809 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
1810 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
1811
1812 2011-05-25 Jan Hubicka <jh@suse.cz>
1813
1814 * lto-streamer-out.c (output_record_start): Use lto_output_enum
1815 (lto_output_tree): Use output_record_start.
1816 * lto-streamer-in.c (input_record_start): Use lto_input_enum
1817 (lto_get_pickled_tree): Use input_record_start.
1818 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
1819 (lto_value_range_error): New function.
1820 * lto-streamer.h (lto_value_range_error): Declare.
1821 (lto_output_int_in_range, lto_input_int_in_range): New functions.
1822 (lto_output_enum, lto_input_enum): New macros.
1823
1824 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
1825
1826 * common.opt (flag_stack_usage_info): New variable.
1827 (-Wstack-usage): New option.
1828 * doc/invoke.texi (Warning options): Document -Wstack-usage.
1829 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
1830 <OPT_fstack_usage>: Likewise.
1831 * toplev.c (output_stack_usage): Handle -Wstack-usage.
1832 * calls.c (expand_call): Test flag_stack_usage_info variable instead
1833 of flag_stack_usage.
1834 (emit_library_call_value_1): Likewise.
1835 * explow.c (allocate_dynamic_stack_space): Likewise.
1836 * function.c (instantiate_virtual_regs ): Likewise.
1837 (prepare_function_start): Likewise.
1838 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
1839 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
1840 * config/arm/arm.c (arm_expand_prologue): Likewise.
1841 (thumb1_expand_prologue): Likewise.
1842 * config/avr/avr.c (expand_prologue): Likewise.
1843 * config/i386/i386.c (ix86_expand_prologue): Likewise.
1844 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
1845 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
1846 * config/mips/mips.c (mips_expand_prologue): Likewise.
1847 * config/pa/pa.c (hppa_expand_prologue): Likewise.
1848 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
1849 * config/s390/s390.c (s390_emit_prologue): Likewise.
1850 * config/sh/sh.c (sh_expand_prologue): Likewise.
1851 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
1852 * config/spu/spu.c (spu_expand_prologue): Likewise.
1853
1854 2011-05-25 Richard Guenther <rguenther@suse.de>
1855
1856 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
1857 (gimple_canonical_types_compatible_p): Likewise.
1858
1859 2011-05-25 Jan Hubicka <jh@suse.cz>
1860
1861 PR middle-end/49062
1862 * ipa.c (function_and_variable_visibility): Only add to same
1863 comdat group list if DECL_ONE_ONLY.
1864
1865 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
1866
1867 PR rtl-optimization/49014
1868 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
1869
1870 2011-05-25 Jakub Jelinek <jakub@redhat.com>
1871
1872 PR target/49128
1873 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
1874
1875 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1876
1877 PR rtl-optimization/48757
1878 * ira-build.c (loop_with_eh_edge_p): Rename to
1879 loop_with_complex_edge_p, check edges on complexity, make function
1880 conditional.
1881 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
1882 conditional.
1883
1884 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1885
1886 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
1887 force flag_ira_share_save_slots to 0.
1888
1889 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1890
1891 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
1892 (vt_initialize): Set PROLOGUE_BB unconditionally.
1893 Add block comment about CFA_BASE_RTX machinery.
1894 Reset FP_CFA_OFFSET to -1 on all invalid paths.
1895 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
1896
1897 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
1898
1899 PR objc/48187
1900 * c-parser.c (c_parser_objc_class_instance_variables): More robust
1901 parsing of syntax error in ObjC instance variable lists. In
1902 particular, avoid an infinite loop if there is a stray ']'.
1903 Updated error message.
1904
1905 2011-05-24 Ian Lance Taylor <iant@google.com>
1906
1907 * godump.c (go_define): Don't accept a string immediately after
1908 another operand.
1909
1910 2011-05-24 Ian Lance Taylor <iant@google.com>
1911
1912 * godump.c (struct godump_container): Add invalid_hash field.
1913 (go_format_type): Return false if type is found in invalid_hash.
1914 (go_output_typedef): Add invalid type to invalid_hash.
1915 (go_finish): Create and delete invalid_hash.
1916
1917 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1918
1919 PR tree-optimization/46728
1920 * tree-ssa-math-opts.c (powi_table): New.
1921 (powi_lookup_cost): New.
1922 (powi_cost): New.
1923 (powi_as_mults_1): New.
1924 (powi_as_mults): New.
1925 (gimple_expand_builtin_powi): New.
1926 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
1927 (gate_cse_sincos): Remove sincos/cexp restriction.
1928
1929 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1930
1931 PR target/3746
1932 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
1933 mips-tdump native.
1934 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
1935 * mips-tdump.c: Likewise.
1936
1937 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
1938
1939 PR target/49128
1940 * config/i386/driver-i386.c (host_detect_local_cpu): Always
1941 add -mno-XXX. Handle FMA.
1942
1943 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1944
1945 PR rtl-optimization/48633
1946 * ira-build.c (loop_with_eh_edge_p): New function.
1947 (mark_loops_for_removal): Use it.
1948
1949 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1950
1951 PR rtl-optimization/48971
1952 * ira.c (setup_pressure_classes): Don't check register move cost
1953 for classes with one registers. Don't add pressure class if there
1954 is a pressure class with the same available hard registers.
1955 Check contains_reg_of_mode. Fix a typo in collecting
1956 temp_hard_regset. Ignore hard registers not belonging to a class.
1957
1958 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
1959
1960 PR target/49133
1961 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
1962
1963 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1964 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1965
1966 PR gcov-profile/48845
1967 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
1968
1969 2011-05-24 Richard Guenther <rguenther@suse.de>
1970
1971 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
1972 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
1973 (gimple_types_compatible_p_1): Adjust.
1974 (iterative_hash_canonical_type): Do not bother about complete vs.
1975 incomplete types.
1976 (gimple_canonical_types_compatible_p): Likewise.
1977
1978 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1979
1980 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
1981
1982 2011-05-24 Richard Guenther <rguenther@suse.de>
1983
1984 PR bootstrap/49078
1985 * gimple.c (gimple_register_canonical_type): Revert
1986 previous change.
1987 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
1988 does not for a tree for the case where it matters. Cache
1989 pointer-type alias-sets.
1990
1991 2011-05-24 Joseph Myers <joseph@codesourcery.com>
1992
1993 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
1994 (OBJS): Remove options.o, opts-common.o and prefix.o.
1995 (OBJS-libcommon-target): New.
1996 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
1997 (BACKEND): Include libcommon-target.a.
1998 (MOSTLYCLEANFILES): Include libcommon-target.a.
1999 (libcommon-target.a): New.
2000 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
2001 prefix.o.
2002
2003 2011-05-23 Joseph Myers <joseph@codesourcery.com>
2004
2005 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
2006 parts of output shared with the driver.
2007 * optc-gen.awk: Don't generate parts of output not shared with the
2008 driver.
2009 * opth-gen.awk: Remove GCC_DRIVER conditionals.
2010 * doc/options.texi (SourcerInclude): Mention options-save.c.
2011 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
2012 (OBJS): Add options-save.o.
2013 (options-save.c, options-save.o): New.
2014 (options.o): Update dependencies.
2015 (gcc-options.o): Remove.
2016 (mostlyclean): Remove options-save.c.
2017
2018 2011-05-23 Jakub Jelinek <jakub@redhat.com>
2019
2020 PR debug/49032
2021 * dbxout.c: Include cgraph.h.
2022 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
2023 and without value expr, return NULL if no varpool node exists for
2024 it or if it is not needed.
2025 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
2026
2027 PR c/49120
2028 * c-decl.c (start_decl): Convert expr to void_type_node.
2029
2030 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
2031
2032 PR rtl-optimization/48826
2033 * emit-rtl.c (try_split): When splitting a call that is followed
2034 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
2035
2036 2011-05-23 Jakub Jelinek <jakub@redhat.com>
2037
2038 * cfgexpand.c (expand_debug_expr): For unused non-addressable
2039 parameters passed in memory prefer using DECL_INCOMING_RTL over
2040 the pseudos it will be copied into.
2041
2042 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
2043
2044 PR target/47315
2045 * config/i386/i386.c (ix86_option_override_internal): Save the
2046 initial options after checking vzeroupper.
2047
2048 2011-05-23 David Li <davidxl@google.com>
2049
2050 PR tree-optimization/48988
2051 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
2052 Initialize has_valid_pred for each pred chain.
2053
2054 2011-05-23 Richard Guenther <rguenther@suse.de>
2055
2056 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
2057 (iterative_hash_gimple_type): Always hash type names.
2058
2059 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
2060
2061 * c-typeck.c (build_function_call_vec): Tweak call to
2062 check_function_arguments.
2063
2064 2011-05-23 Richard Guenther <rguenther@suse.de>
2065
2066 PR tree-optimization/49115
2067 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
2068 is not necessarily carried out, do not claim it kills the ref.
2069 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
2070
2071 2011-05-23 Richard Guenther <rguenther@suse.de>
2072
2073 PR middle-end/15419
2074 * builtins.c (fold_builtin_memory_op): Be less restrictive about
2075 what pointer types we accept for folding.
2076
2077 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2078
2079 * gthr-gnat.c: Remove.
2080 * gthr-gnat.h: Remove.
2081 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
2082 * config/t-freebsd (LIB2ADDEH): Likewise.
2083 * config/t-linux (LIB2ADDEH): Likewise.
2084 * config/t-sol2 (LIB2ADDEH): Likewise.
2085 * config/ia64/t-vms (LIB2ADDEH): Likewise.
2086 * configure.ac (target_thread_file): Remove gnat handling.
2087 * configure: Regenerate.
2088 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
2089
2090 2011-05-23 Tristan Gingold <gingold@adacore.com>
2091 Eric Botcazou <ebotcazou@adacore.com>
2092
2093 * gcov.c (create_file_names): If no object directory is specified,
2094 keep the directory of the file.
2095
2096 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2097
2098 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
2099 * configure: Regenerate.
2100
2101 2011-05-23 Jakub Jelinek <jakub@redhat.com>
2102
2103 PR middle-end/48973
2104 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
2105 failed and the comparison has a single bit signed type, use
2106 constm1_rtx instead of const1_rtx for true value.
2107 (do_store_flag): If ops->type is single bit signed type, disable
2108 signel bit test optimization and pass -1 instead of 1 as last
2109 parameter to emit_store_flag_force.
2110
2111 2011-05-23 Tom de Vries <tom@codesourcery.com>
2112
2113 PR target/45098
2114 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
2115 function.
2116 (infer_loop_bounds_from_undefined): Use new function.
2117
2118 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
2119
2120 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
2121 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
2122 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
2123 and -O0 otherwise.
2124 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
2125
2126 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
2127
2128 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
2129 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
2130 returns true.
2131
2132 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
2133
2134 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
2135
2136 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
2137
2138 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
2139 UNSPEC_MOVE_PIC pattern.
2140
2141 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
2142
2143 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
2144 (sparc-*-rtems*): Likewise.
2145 (sparc64-*-elf*): Likewise.
2146 (sparc64-*-rtems*): Likewise.
2147 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
2148 * config/sparc/t-crtin: New file.
2149 * config/sparc/t-sol2 (crti.o): Delete rule.
2150 (crtn.o): Likewise.
2151 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
2152 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
2153 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
2154 (ENDFILE_SPEC): Add crtn.o.
2155
2156 2011-05-22 Tom de Vries <tom@codesourcery.com>
2157
2158 PR middle-end/48689
2159 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
2160 CODE_CONTAINS_STRUCT (TS_COMMON).
2161
2162 2011-05-22 Jakub Jelinek <jakub@redhat.com>
2163
2164 PR middle-end/49029
2165 * expmed.c (extract_fixed_bit_field): Test whether target can be used
2166 only after deciding which mode to use.
2167
2168 2011-05-22 Tom de Vries <tom@codesourcery.com>
2169
2170 PR target/45098
2171 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
2172 for call to get_shiftadd_cost.
2173
2174 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
2175
2176 PR target/49104
2177 * config/i386/cpuid.h (bit_MMXEXT): New define.
2178
2179 2011-05-22 Nick Clifton <nickc@redhat.com>
2180
2181 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
2182 initialisation of non-existant args[2] element. Use args[] array
2183 not arg[] array to pass arguments to build_function_type_list.
2184
2185 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
2186
2187 PR tree-optimization/49087
2188 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
2189
2190 2011-05-21 Jason Merrill <jason@redhat.com>
2191
2192 PR c++/49092
2193 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
2194 static storage duration.
2195
2196 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
2197
2198 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
2199 frame pointer.
2200
2201 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
2202
2203 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
2204 false if there are call-saved registers here...
2205 (sparc_can_use_return_insn_p): ...but here instead.
2206 (save_or_restore_regs): Fix thinko.
2207 (sparc_expand_prologue): Use current_function_is_leaf.
2208 (sparc_frame_pointer_required): Likewise.
2209
2210 2011-05-21 Nick Clifton <nickc@redhat.com>
2211
2212 PR target/49098
2213 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
2214
2215 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
2216
2217 * gengtype.c (walk_type): Implemented "atomic" GTY option.
2218 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
2219
2220 2011-05-21 Joseph Myers <joseph@codesourcery.com>
2221
2222 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
2223 * optc-gen.awk: Move common code to opt-read.awk.
2224 * opth-gen.awk: Likewise.
2225 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
2226
2227 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
2228
2229 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
2230
2231 2011-05-20 Tom de Vries <tom@codesourcery.com>
2232
2233 PR target/45098
2234 * tree-ssa-loop-ivopts.c: Include expmed.h.
2235 (get_shiftadd_cost): New function.
2236 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
2237
2238 2011-05-20 Jakub Jelinek <jakub@redhat.com>
2239
2240 PR bootstrap/49086
2241 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
2242 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
2243
2244 2011-05-20 Joseph Myers <joseph@codesourcery.com>
2245
2246 * Makefile.in: Update comment referring to $(OBJS-common).
2247
2248 2011-05-20 Ian Lance Taylor <iant@google.com>
2249
2250 * godump.c (go_output_typedef): Put enum constants in the macro
2251 hash table to avoid duplicate Go const definitions.
2252
2253 2011-05-20 Joseph Myers <joseph@codesourcery.com>
2254
2255 * Makefile.in (LIBDEPS): Add libcommon.a.
2256 (LIBS): Likewise.
2257 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
2258 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
2259 pretty-print.o and version.o.
2260 (OBJS-libcommon): New.
2261 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
2262 (BACKEND): Add libcommon.a.
2263 (MOSTLYCLEANFILES): Likewise.
2264 (libcommon.a): New.
2265 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
2266 (cpp$(exeext)): Likewise.
2267 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
2268 pretty-print.o and input.o.
2269 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
2270 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
2271 (errors.o): Remove.
2272 (mips-tfile): Don't explicitly use version.o.
2273 (mips-tdump): Likewise.
2274 (gcov.o): Depend on $(DIAGNOSTIC_H).
2275 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
2276 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
2277 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
2278 * gcov-dump.c: Include intl.h and diagnostic.h.
2279 (main): Initialize diagnostics.
2280 * gcov.c: Include diagnostic.h.
2281 (fnotice): Remove.
2282 (main): Initialize diagnostics.
2283 * lto-wrapper.c: Include diagnostic.h.
2284 (main): Initialize diagnostics.
2285
2286 2011-05-20 Michael Matz <matz@suse.de>
2287
2288 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
2289
2290 2011-05-20 Michael Matz <matz@suse.de>
2291 Richard Guenther <rguenther@suse.de>
2292
2293 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
2294 use lto_streamer_cache_append directly instead of returning a VEC.
2295 (preload_common_node): Remove.
2296 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
2297 track seen nodes.
2298 (lto_streamer_cache_create): Call lto_preload_common_nodes.
2299
2300 2011-05-20 Richard Guenther <rguenther@suse.de>
2301
2302 PR tree-optimization/49079
2303 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
2304 MEM_REFs correctly for the trailing array access detection.
2305 Special case constants the same way as decls for overall size
2306 constraining.
2307
2308 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
2309
2310 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
2311 argument expansion.
2312
2313 2011-05-20 Jakub Jelinek <jakub@redhat.com>
2314
2315 PR tree-optimization/49073
2316 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
2317 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
2318 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
2319
2320 2011-05-20 Richard Guenther <rguenther@suse.de>
2321
2322 PR middle-end/48849
2323 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
2324 of pointer types the same way the middle-end does.
2325
2326 2011-05-20 Richard Guenther <rguenther@suse.de>
2327
2328 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
2329 or pointer-to chains. Delay all fixup to uniquify_nodes.
2330
2331 2011-05-19 Quentin Neill <quentin.neill@amd.com>
2332
2333 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
2334 (fma4_fmaddsub): Likewise
2335
2336 2011-05-19 Jan Hubicka <jh@suse.cz>
2337
2338 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
2339 (GIMPLE_TYPE_PAIR_SIZE): New macro.
2340 (type_pair_cache): New static var.
2341 (lookup_type_pair): Use fixed sized custom hash; make inline.
2342 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
2343 calls of lookup_type_pair.
2344 (print_gimple_types_stats): Remove cache stats.
2345 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
2346 and gtc_ob.
2347
2348 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
2349
2350 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
2351 when TARGET_RDRND is active.
2352 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
2353 Generate dummy SImode target register when target is NULL.
2354
2355 2011-05-19 Joseph Myers <joseph@codesourcery.com>
2356
2357 * config/arm/arm-fpus.def: New.
2358 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
2359 arm-fpus.def.
2360 * config/arm/arm-tables.opt: Regenerate.
2361 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
2362 (arm_option_override): Don't decode FPU name to string here.
2363 * config/arm/arm.opt (mfpu=): Use Enum.
2364 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
2365 Update dependencies.
2366
2367 2011-05-19 Joseph Myers <joseph@codesourcery.com>
2368
2369 * collect2.c: Include diagnostic.h.
2370 (fatal_perror, fatal, error, fancy_abort): Remove.
2371 (main): Set progname. Call xmalloc_set_program_name and
2372 diagnostic_initialize.
2373 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
2374 scan_libraries, resolve_lib_name): Call fatal_error instead of
2375 fatal and fatal_perror.
2376 * collect2.h (error, fatal, fatal_perror): Don't declare.
2377 * tlink.c: Include diagnostic-core.h.
2378 (recompile_files): Call fatal_error instead of fatal_perror.
2379 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
2380 pretty-print.o and input.o.
2381 (collect2.o, tlink.o): Update dependencies.
2382
2383 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2384
2385 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
2386
2387 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2388
2389 PR target/40483
2390 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
2391 COMDAT group syntax, both SPARC and x86 variants.
2392 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
2393 * configure: Regenerate.
2394 * config/sol2.h (TARGET_SOLARIS): Define.
2395 (PUSHSECTION_FORMAT): Remove.
2396 (SECTION_NAME_FORMAT): Define.
2397 * config/sol2.c: Include hashtab.h.
2398 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
2399 expansion, using SECTION_NAME_FORMAT.
2400 (solaris_comdat_htab): New variable.
2401 (struct comdat_entry): Define.
2402 (comdat_hash): New function.
2403 (comdat_eq): New function.
2404 (solaris_elf_asm_comdat_section): New function.
2405 (solaris_define_comdat_signature): New function.
2406 (solaris_code_end): New function.
2407 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
2408 (solaris_code_end): Declare.
2409 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
2410 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
2411 solaris_code_end.
2412 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
2413 Remove ATTRIBUTE_UNUSED.
2414 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
2415 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
2416 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
2417 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
2418 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
2419 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
2420 (PUSHSECTION_FORMAT): Remove.
2421 (SECTION_NAME_FORMAT): Redefine.
2422
2423 2011-05-19 Kai Tietz <ktietz@redhat.com>
2424
2425 * tree-cfg.c (verify_gimple_assign_binary): Barf on
2426 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
2427 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
2428
2429 2011-05-19 Anatoly Sokolov <aesok@post.ru>
2430 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2431
2432 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
2433
2434 2011-05-19 Richard Guenther <rguenther@suse.de>
2435
2436 PR middle-end/48985
2437 * tree-object-size.c (addr_object_size): If the pointed-to
2438 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
2439
2440 2011-05-19 Richard Guenther <rguenther@suse.de>
2441
2442 * gimple.c (gimple_types_compatible_p_1): Compare names of
2443 the types themselves.
2444 (iterative_hash_gimple_type): And hash them that way.
2445 (gimple_register_type_1): If we register a main variant properly
2446 initialize the leader to ourselves.
2447
2448 2011-05-19 Tom de Vries <tom@codesourcery.com>
2449
2450 PR target/45098
2451 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
2452 get_loop_invariant_expr_id.
2453 (get_loop_invariant_expr_id): Use get_expr_id.
2454 (parm_decl_cost): New function.
2455 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
2456 Improve bound cost estimation. Use different inv_expr_id for elim and
2457 express cases.
2458
2459 2011-05-19 Tom de Vries <tom@codesourcery.com>
2460
2461 PR target/45098
2462 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
2463 cost_base.cost == 0.
2464
2465 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
2466
2467 PR target/49002
2468 * config/i386/sse.md
2469 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
2470 load cast.
2471
2472 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2473
2474 PR tree-optimization/49039
2475 * tree-vrp.c (extract_range_from_binary_expr): For
2476 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
2477 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
2478
2479 2011-05-18 Tom de Vries <tom@codesourcery.com>
2480
2481 PR target/45098
2482 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
2483
2484 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
2485
2486 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
2487 (*tls_global_dynamic_64): Ditto.
2488 (*tls_local_dynamic_base_32_gnu): Ditto.
2489 (*tls_local_dynamic_base_64): Ditto.
2490 (tls_initial_exec_64_sun): Ditto.
2491
2492 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
2493
2494 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
2495 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
2496 bf592-none.
2497 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
2498 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
2499 * config/bfin/bfin.c (bfin_cpus): Add bf592.
2500 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
2501 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
2502 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
2503 * config/bfin/elf.h (LIB_SPEC): Add bf592.
2504
2505 2011-05-18 Joseph Myers <joseph@codesourcery.com>
2506
2507 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
2508 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
2509 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
2510 target_thread_pointer, arm_structure_size_boundary, struct
2511 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
2512 struct abi_name, arm_all_abis): Remove.
2513 (arm_option_override) Don't process most enumerated option values here.
2514 Don't process target_fpe_name here. Work with integer not string for
2515 structure size boundary; use separate diagnostics for each case.
2516 * config/arm/arm.h (enum float_abi_type, enum
2517 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
2518 to arm-opts.h.
2519 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
2520 arm_structure_size_boundary): Remove.
2521 * config/arm/arm.opt (mabi=): Use Enum and Init.
2522 (arm_abi_type): New Enum and EnumValue entries.
2523 (mfloat-abi=): Use Enum and Init.
2524 (float_abi_type): New Enum and EnumValue entries.
2525 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
2526 (mfp16-format=): Use Enum and Init.
2527 (arm_fp16_format_type): New Enum and EnumValue entries.
2528 (mstructure-size-boundary=): Use UInteger and Init.
2529 (mtp=): Use Enum and Init.
2530 (arm_tp_type): New Enum and EnumValue entries.
2531
2532 2011-05-18 Richard Guenther <rguenther@suse.de>
2533
2534 PR tree-optimization/49018
2535 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
2536 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
2537 gimple_has_side_effects.
2538
2539 2011-05-18 Richard Guenther <rguenther@suse.de>
2540
2541 * gimple.c (gimple_register_type_1): New function, split out from ...
2542 (gimple_register_type): ... here. Avoid infinite recursion.
2543
2544 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
2545
2546 PR tree-optimization/41881
2547 * tree-vectorizer.h (struct _loop_vec_info): Add new field
2548 reduction_chains along with a macro for its access.
2549 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
2550 (destroy_loop_vec_info): Free reduction chains.
2551 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
2552 (vect_is_slp_reduction): New function.
2553 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
2554 (vect_create_epilog_for_reduction): Support SLP reduction chains.
2555 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
2556 definition types for reduction chains.
2557 (vect_supported_load_permutation_p): Don't allow permutations for
2558 reduction chains.
2559 (vect_analyze_slp_instance): Support reduction chains.
2560 (vect_analyze_slp): Try to build SLP instance from reduction chains.
2561 (vect_get_constant_vectors): Handle reduction chains.
2562 (vect_schedule_slp_instance): Mark the first statement of the
2563 reduction chain as reduction.
2564
2565 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
2566
2567 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
2568 names for group elements access.
2569 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
2570 reduction chains as well. Remove data reference and interleaving
2571 related words from the fields names.
2572 * tree-vect-loop.c (vect_transform_loop): Use new names for group
2573 elements access.
2574 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
2575 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
2576 vect_update_interleaving_chain, vect_same_range_drs,
2577 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
2578 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
2579 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
2580 vect_analyze_group_access, vect_analyze_data_ref_access,
2581 vect_create_data_ref_ptr, vect_transform_strided_load,
2582 vect_record_strided_load_vectors): Likewise.
2583 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
2584 vect_model_load_cost, vectorizable_store, vectorizable_load,
2585 vect_remove_stores, new_stmt_vec_info): Likewise.
2586 * tree-vect-slp.c (vect_build_slp_tree,
2587 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
2588
2589 2011-05-18 Richard Guenther <rguenther@suse.de>
2590
2591 PR middle-end/48989
2592 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
2593 operand verification.
2594 (verify_gimple_assign_binary): Likewise.
2595 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
2596 to non-1-precision BOOLEAN_TYPEs.
2597
2598 2011-05-18 Tom de Vries <tom@codesourcery.com>
2599
2600 PR target/45098
2601 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
2602
2603 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2604
2605 PR tree-optimization/49000
2606 * tree-ssa.c (execute_update_addresses_taken): Call
2607 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
2608 be rewritten and decl has been marked for renaming, reset
2609 the debug stmt.
2610
2611 2011-05-17 Joseph Myers <joseph@codesourcery.com>
2612
2613 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
2614 enum_opts_set when testing if attributes have set -mfpmath=.
2615
2616 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
2617
2618 * config/mips/mips.c (mips_handle_option): Remove unused variable.
2619
2620 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
2621
2622 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
2623 info->entry with 0
2624 * tree-inline.c (maybe_inline_call_in_expr): Initialize
2625 id.transform_lang_insert_block with NULL.
2626
2627 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
2628
2629 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
2630 (output_fp_compare): Change args 3 and 4 to bool.
2631 (ix86_expand_call): Change arg 6 to bool.
2632 (ix86_attr_length_immediate_default): Change arg 2 to bool.
2633 (ix86_attr_length_vex_default): Change arg 3 to bool.
2634 * config/i386/i386.md: Update all uses.
2635 * config/i386/i386.c: Ditto.
2636 (ix86_flags_dependent): Change return type to bool.
2637
2638 2011-05-17 Richard Guenther <rguenther@suse.de>
2639
2640 * gimple.c (type_hash_pair_compare): Fix comparison.
2641
2642 2011-05-17 Richard Guenther <rguenther@suse.de>
2643
2644 * gimple.c (iterative_hash_gimple_type): Simplify singleton
2645 case some more, fix final hash value of the non-singleton case.
2646
2647 2011-05-17 Richard Guenther <rguenther@suse.de>
2648
2649 PR bootstrap/49013
2650 Revert
2651 2011-05-16 Richard Guenther <rguenther@suse.de>
2652
2653 * gimple.c (gimple_types_compatible_p_1): Use names of the
2654 type itself, not its main variant.
2655 (iterative_hash_gimple_type): Likewise.
2656
2657 2011-05-17 Richard Guenther <rguenther@suse.de>
2658
2659 * gimple.c (gimple_register_canonical_type): Use the main-variant
2660 leader for computing the canonical type.
2661
2662 2011-05-17 Nick Clifton <nickc@redhat.com>
2663
2664 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
2665 moves.
2666
2667 * config/rx/rx.md: Add peephole to remove redundant extensions
2668 after loads.
2669 (bitset_in_memory): Use rx_restricted_mem_operand.
2670 (bitinvert_in_memory): Likewise.
2671 (bitclr_in_memory): Likewise.
2672
2673 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
2674 Nick Clifton <nickc@redhat.com>
2675
2676 * config/rx/rx.md: Add peepholes to match a register move followed
2677 by a comparison of the moved register. Replace these with an
2678 addition of zero that does both actions in one instruction.
2679
2680 2011-05-17 Jakub Jelinek <jakub@redhat.com>
2681
2682 PR target/48986
2683 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
2684 predicate to allow CONST_INT.
2685 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
2686
2687 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2688
2689 * opts-common.c (opt_enum_arg_to_value): New.
2690 * opts.h (opt_enum_arg_to_value): Declare.
2691 * config/i386/i386.opt (fpmath): Remove.
2692 (mfpmath=): Use Enum, Init and Save.
2693 (fpmath_unit): New Enum and EnumValue entries.
2694 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
2695 name for function fpmath state.
2696 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
2697 * config/i386/i386.c: Include diagnostic.h.
2698 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
2699 (ix86_target_string): Take enum fpmath_unit value instead of string.
2700 (ix86_debug_options): Update call to ix86_target_string.
2701 (ix86_option_override_internal): Don't process fpmath strings here.
2702 (x86_function_specific_save, ix86_function_specific_restore):
2703 Don't handle fpmath state specially.
2704 (ix86_function_specific_print): Pass fpmath state to
2705 ix86_target_string instead of printing in this function.
2706 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
2707 Handle enum attributes.
2708 (IX86_ATTR_ENUM, ix86_opt_enum): New.
2709 (ix86_valid_target_attribute_tree): Update option_strings
2710 handling. Handle fpmath as enum option.
2711 (ix86_can_inline_p): Update field names for function fpmath state.
2712 (ix86_expand_builtin): Update call to ix86_target_string.
2713 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
2714 (ix86_fpmath): Remove.
2715 * config/i386/t-i386 (i386.o): Update dependencies.
2716
2717 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2718
2719 PR preprocessor/48677
2720 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
2721 from decoded_options[0], not from itself.
2722
2723 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
2724
2725 * config/i386/constraints.md (z): New constraint.
2726 * config/i386/i386.c (c): New mode attribute.
2727 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
2728 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
2729 constraint for operand 0.
2730 (*call_vzeroupper): Ditto.
2731 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
2732 (*call_rex64_ms_sysv_vzeroupper): Ditto.
2733 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
2734 Use "lzm" constraint for operand 0.
2735 (*call_pop_vzeroupper): Ditto.
2736 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
2737 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
2738 constraint for operand 0.
2739 (*sibcall_vzeroupper): Ditto.
2740 (*sibcall_rex64_ms_sysv): Ditto.
2741 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
2742 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
2743 *sibcall_pop_1. Use "Uz" constraint for operand 0.
2744 (*sibcall_pop_vzeroupper): Ditto.
2745 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
2746 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
2747 mode iterator. Use "<c>zm" constraint for operand 1.
2748 (*call_value_vzeroupper): Ditto.
2749 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
2750 for operand 1.
2751 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
2752 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
2753 *call_value_pop_1. Use "lzm" constraint for operand 1.
2754 (*call_value_pop_vzeroupper): Ditto.
2755 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
2756 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
2757 mode iterator. Use "Uz" constraint for operand 1.
2758 (*sibcall_value_vzeroupper): Ditto.
2759 (*sibcall_value_rex64_ms_sysv): Ditto.
2760 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
2761 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
2762 constraint for operand 1.
2763 (*sibcall_value_pop_vzeroupper): Ditto.
2764 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
2765 and "z" constraint for operand 2.
2766 (*tls_global_dynamic_32_gnu): Ditto.
2767 (*tls_local_dynamic_base_32_gnu): Ditto.
2768 (*tls_local_dynamic_base_64): Ditto.
2769 (*tls_local_dynamic_32_once): Ditto.
2770 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
2771 Update all callers.
2772 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
2773
2774 2011-05-16 Richard Guenther <rguenther@suse.de>
2775
2776 * gimple.c (gimple_types_compatible_p_1): Use names of the
2777 type itself, not its main variant.
2778 (iterative_hash_gimple_type): Likewise.
2779
2780 2011-05-16 Richard Guenther <rguenther@suse.de>
2781
2782 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
2783 always visit pointer target and function result and argument types.
2784
2785 2011-05-16 Jason Merrill <jason@redhat.com>
2786
2787 PR c++/48999
2788 * tree-inline.c (copy_statement_list): Put back recursion.
2789
2790 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
2791
2792 PR target/27663
2793 PR target/41076
2794 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
2795 * config/avr/avr.md ("*ior<mode>qi.byte0",
2796 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
2797
2798 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
2799
2800 PR target/45099
2801 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
2802 register is needed for a function argument.
2803
2804 2011-05-16 Richard Guenther <rguenther@suse.de>
2805
2806 * gimple.c (struct type_hash_pair): New type.
2807 (type_hash_pair_compare): New function.
2808 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
2809
2810 2011-05-16 Revital Eres <revital.eres@linaro.org>
2811
2812 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
2813
2814 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
2815
2816 * config/i386/i386.md (floating point move splitters): Fix
2817 usage of standard_80387_constant_p.
2818 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
2819
2820 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
2821
2822 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
2823
2824 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
2825
2826 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
2827 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
2828 (tree_ssa_lim_finalize): Likewise.
2829
2830 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
2831
2832 * config/i386/constraint.md (Yd, Yx): New register constraints.
2833 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
2834 Yd conditional register constraint.
2835 (*movtf_internal): Use standard_sse_constant_opcode.
2836 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
2837 Yx conditional register constraint.
2838 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
2839 Yd conditional register constraint. Use standard_sse_constant_p to
2840 check for valid SSE constants and call standard_sse_constant_opcode to
2841 output SSE insn.
2842 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
2843 constants and call standard_sse_constant_opcode to output SSE insn.
2844 * config/i386/i386.c (ix86_option_ovverride_internal): Set
2845 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
2846 optimize_size is set.
2847 (standard_sse_constant_opcode): Output conditional AVX insn templates.
2848
2849 2011-05-14 Tobias Burnus <burnus@net-b.de>
2850
2851 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
2852
2853 2011-05-13 Martin Jambor <mjambor@suse.cz>
2854
2855 * ipa-prop.c (ipa_cst_from_jfunc): New function.
2856 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
2857 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
2858 (evaluate_conditions_for_ipcp_clone): Removed.
2859 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
2860 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
2861 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
2862
2863 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
2864
2865 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
2866 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
2867 lieu of MAY_HAVE_DEBUG_STMTS.
2868 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
2869 debug statements if !MAY_HAVE_DEBUG_STMTS.
2870
2871 2011-05-13 Martin Thuresson <martint@google.com>
2872
2873 PR gcov-profile/47793
2874 * libgcov.c (gcov_exit): Support relative profile paths.
2875 * doc/invoke.texi (-fprofile-dir): Update for above change.
2876
2877 2011-05-13 Richard Guenther <rguenther@suse.de>
2878
2879 * gimple.c (gimple_canonical_types_compatible_p): Do not use
2880 type-pair caching, do not compare hashes.
2881
2882 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
2883
2884 PR middle-end/48965
2885 * tree-cfg.c (edge_to_cases_cleanup): Return true.
2886 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
2887
2888 2011-05-13 Kai Tietz <ktietz@redhat.com>
2889
2890 * gimplify.c (gimplify_expr): Make sure operand is boolified.
2891 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
2892 compatible type for TRUTH_NOT_EXPR.
2893
2894 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
2895
2896 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
2897 (ix86_hard_regno_mode_ok): Change return value to bool. Use
2898 can_create_pseudo_p ().
2899
2900 2011-05-13 Richard Guenther <rguenther@suse.de>
2901
2902 PR lto/48978
2903 * gimple.c (iterative_hash_gimple_type): Revert change in
2904 pointer target and function result and argument hashing.
2905
2906 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
2907
2908 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
2909 (*movxf_internal_nointeger): Ditto.
2910 (*movdf_internal_rex64): Ditto.
2911 (*movdf_internal): Ditto.
2912 (*movdf_internal_nointeger): Ditto.
2913 (*movsf_internal): Ditto.
2914 (sincos splitters): Use can_create_pseudo ().
2915
2916 2011-05-13 Joseph Myers <joseph@codesourcery.com>
2917
2918 * config/i386/i386-opts.h: New.
2919 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
2920 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
2921 ix86_section_threshold): Remove.
2922 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
2923 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
2924 OPT_mbranch_cost_.
2925 (ix86_option_override_internal): Don't decode strings for options
2926 other than -march=, -mtune= and -mfpmath=. Don't allow for
2927 __attribute__ uses in remaining diagnostics for options with
2928 string arguments. Don't check for integer arguments being negative.
2929 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
2930 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
2931 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
2932 ix86_branch_cost, ix86_section_threshold): Remove.
2933 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
2934 HeaderInclude.
2935 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
2936 but not Var.
2937 (masm=): Use Enum and Init.
2938 (asm_dialect): New Enum and EnumValue entries.
2939 (mbranch-cost=): Use UInteger.
2940 (mlarge-data-threshold=): Use UInteger and Init.
2941 (mcmodel=): Use Enum and Init.
2942 (cmodel): New Enum and EnumValue entries.
2943 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
2944 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
2945 mregparm=): Use UInteger.
2946 (mstringop-strategy=): Use Enum and Init.
2947 (stringop_alg): New Enum and EnumValue entries.
2948 (mtls-dialect=): Use Enum and Init.
2949 (tls_dialect): New Enum and EnumValue entries.
2950 (mabi=): Use Enum and Init.
2951 (calling_abi): New Enum and EnumValue entries.
2952 (mveclibabi=): Use Enum and Init.
2953 (ix86_veclibabi): New Enum and EnumValue entries.
2954
2955 2011-05-13 Nick Clifton <nickc@redhat.com>
2956
2957 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
2958 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
2959
2960 2011-05-13 Kai Tietz <ktietz@redhat.com>
2961
2962 PR middle-end/48984
2963 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
2964 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
2965 (gimple_boolify): Check for cast for boolean_type_node instead for
2966 BOOLEAN_TYPE.
2967
2968 2011-05-13 Richard Guenther <rguenther@suse.de>
2969
2970 PR tree-optimization/48172
2971 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
2972 multiplying by number of iterations for equal step.
2973 (vect_create_cond_for_alias_checks): Likewise.
2974
2975 2011-05-13 Andreas Schwab <schwab@redhat.com>
2976
2977 * configure.ac: Use AS_HELP_STRING throughout.
2978 * configure: Regenerate.
2979
2980 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
2981
2982 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
2983 (ix86_emit_restore_regs_using_mov): Likewise.
2984 (ix86_emit_restore_sse_regs_using_mov): Likewise.
2985
2986 2011-05-12 Anatoly Sokolov <aesok@post.ru>
2987
2988 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
2989 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
2990 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
2991 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
2992 RTX_OK_FOR_OLO10_P): ...here.
2993 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
2994 SYMBOLIC_CONST.
2995
2996 2011-05-12 Kai Tietz <ktietz@redhat.com>
2997
2998 * gimplify.c (gimple_boolify): Re-boolify expression
2999 arguments even if expression type is of kind BOOLEAN_TYPE.
3000 (gimplify_boolean_expr): Removed.
3001 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
3002 and XOR. Additional take care that we keep expression's type.
3003 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
3004 of TRUTH_AND|OR|XOR_EXPR.
3005
3006 2011-05-12 Jakub Jelinek <jakub@redhat.com>
3007
3008 PR tree-optimization/48975
3009 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
3010 on all bbs here and free and clear ifc_bbs at the end.
3011
3012 2011-05-12 Richard Guenther <rguenther@suse.de>
3013
3014 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
3015 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
3016 until after simple checks.
3017 (gimple_types_compatible_p): Likewise.
3018 (iterative_hash_gimple_type): Always hash pointer targets
3019 and function return and argument types.
3020 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
3021 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
3022 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
3023 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
3024 completely in the simple compare section.
3025 (gimple_register_canonical_type): Query the cache again after
3026 registering.
3027
3028 2011-05-12 Richard Guenther <rguenther@suse.de>
3029
3030 PR tree-optimization/48172
3031 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
3032 the number of iterations from the segment size calculation.
3033 (vect_create_cond_for_alias_checks): Adjust.
3034
3035 2011-05-12 Jakub Jelinek <jakub@redhat.com>
3036
3037 PR debug/48967
3038 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
3039 if validate_subreg fails.
3040
3041 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
3042
3043 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
3044 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
3045 early.
3046
3047 2011-05-12 DJ Delorie <dj@redhat.com>
3048
3049 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
3050 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
3051 created builtin into rx_builtins array.
3052 (rx_builtin_decl): New function.
3053 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
3054
3055 2011-05-12 DJ Delorie <dj@redhat.com>
3056 Nick Clifton <nickc@redhat.com>
3057
3058 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
3059 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
3060 (rx_is_legitimate_address): Add pre-decrement and post-increment
3061 addressing in HImode and QImode. Fix test for out of range
3062 REG+INT addressing.
3063 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
3064 (rx_align_for_label): Test label before extracting its usage count.
3065 (rx_adjust_insn_lengths): Fix selection of insn codes.
3066 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
3067
3068 2011-05-11 Jason Merrill <jason@redhat.com>
3069
3070 * tree.c (type_hash_canon): Use struct tree_type_non_common.
3071
3072 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
3073
3074 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
3075 reindent the subsequent block.
3076
3077 2011-05-11 Satoru Takabayashi <satorux@google.com>
3078 Paul Pluzhnikov <ppluzhnikov@google.com>
3079
3080 * doc/install.texi (Configuration): Document --with-linker-hash-style.
3081 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
3082 * config.in: Add LINKER_HASH_STYLE.
3083 * configure.ac: Add --with-linker-hash-style.
3084 * configure: Regenerate.
3085
3086 2011-05-11 Richard Guenther <rguenther@suse.de>
3087
3088 PR middle-end/48964
3089 * gimple.c (iterative_hash_canonical_type): Fix typo.
3090
3091 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
3092
3093 * config/i386/i386.c (legitimize_tls_address)
3094 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
3095 expanders directly for TARGET_GNU2_TLS. Determine pic and
3096 __tls_get_addr symbol reference here. Update call to
3097 gen_tls_global_dynamic_{32,64} for added arguments.
3098 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
3099 expanders directly for TARGET_GNU2_TLS. Determine
3100 __tls_get_addr symbol reference here. Update call to
3101 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
3102 unique UNSPEC REG_EQUIV to libcall block.
3103 (ix86_tls_get_addr): Declare static.
3104 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
3105 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
3106 Do not determine pic and __tls_get_addr symbol reference here. Do not
3107 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
3108 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
3109 (tls_global_dynamic_64): Add operand 2. Do not determine
3110 __tls_get_addr symbol reference here. Do not call
3111 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
3112 (tls_local_dynamic_base64): Ditto for operand 1.
3113
3114 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
3115
3116 * function.c (expand_function_start): Initialize stack_check_probe_note
3117 only if the generic stack checking mechanism is used.
3118
3119 2011-05-11 Richard Guenther <rguenther@suse.de>
3120
3121 PR tree-optimization/15256
3122 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
3123 (A & B) | C, combine (A op CST1) op CST2.
3124 (tree_ssa_forward_propagate_single_use_vars): Only bother to
3125 visit assigns that have uses.
3126
3127 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
3128
3129 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
3130 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
3131 (unpack_ts_type_common_value_fields): ...this. Update comment.
3132 (unpack_value_fields): Adjust for renaming.
3133 (lto_input_ts_type_tree_pointers): Split into...
3134 (lto_input_ts_type_common_tree_pointer): ...this and...
3135 (lto_input_ts_type_non_common_tree_pointers): ...this.
3136 (lto_input_tree_pointers): Adjust for above split.
3137 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
3138 (pack_ts_type_common_value_fields): ...this. Update comment.
3139 (lto_output_ts_type_tree_pointers): Split into...
3140 (lto_output_ts_type_common_tree_pointers): ...this and...
3141 (lto_output_ts_type_non_common_tree_pointers): ...this.
3142 (lto_output_tree_pointers): Adjust for above split.
3143 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
3144 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
3145 * stor-layout.c (vector_type_mode): Adjust location of mode field.
3146 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
3147 Define.
3148 (struct tree_type): Split into...
3149 (struct tree_type_common: ...this and...
3150 (struct tree_type_with_lang_specific): ...this and...
3151 (struct tree_type_non_common): ...this. Adjust accessor macros
3152 accordingly.
3153 (TYPE_VALUES_RAW): Define.
3154 (union tree_node): Update for above changes.
3155 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
3156 TS_TYPE_NON_COMMON.
3157 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
3158 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
3159 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
3160 * treestructu.def (TS_TYPE): Remove.
3161 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
3162 Define.
3163
3164 2011-05-11 Jakub Jelinek <jakub@redhat.com>
3165
3166 PR debug/48159
3167 * tree-ssa.c (reset_debug_uses): New function.
3168 * tree-flow.h (reset_debug_uses): New prototype.
3169 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
3170 * tree-loop-distribution.c (generate_loops_for_partition): Call
3171 reset_debug_uses on the stmts that will be removed. Keep around
3172 all debug stmts, don't count them as bits in partition bitmap.
3173 (generate_builtin): Don't count debug stmts or labels as bits in
3174 partition bitmap.
3175
3176 2011-05-11 Richard Guenther <rguenther@suse.de>
3177
3178 * gimple.c (gimple_type_hash_1): Merge with ...
3179 (gimple_type_hash): ... this.
3180 (gtc_visit): Remove mode parameter and simplify accordingly.
3181 (gimple_types_compatible_p_1): Likewise.
3182 (gimple_types_compatible_p): Likewise.
3183 (iterative_hash_gimple_type): Likewise.
3184 (visit): Likewise.
3185 (gimple_type_eq): Adjust.
3186
3187 2011-05-11 Revital Eres <revital.eres@linaro.org>
3188
3189 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
3190 enters the branch create an anti edge in the opposite direction
3191 to prevent the creation of reg-moves.
3192 * modulo-sched.c: Adjust comment to reflect the fact we are
3193 scheduling closing branch.
3194 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
3195 (stage_count): New field in struct partial_schedule.
3196 (calculate_stage_count): New function.
3197 (normalize_sched_times): Rename to reset_sched_times and handle
3198 incrementing the sched time of the nodes by a constant value
3199 passed as parameter.
3200 (duplicate_insns_of_cycles): Skip closing branch.
3201 (sms_schedule_by_order): Schedule closing branch.
3202 (ps_insn_find_column): Handle closing branch.
3203 (sms_schedule): Call reset_sched_times and adjust the code to
3204 support scheduling of the closing branch.
3205 (ps_insert_empty_row): Update calls to normalize_sched_times
3206 and rotate_partial_schedule functions.
3207
3208 2011-05-11 Richard Guenther <rguenther@suse.de>
3209
3210 PR middle-end/48953
3211 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
3212
3213 2011-05-11 Joseph Myers <joseph@codesourcery.com>
3214
3215 * opts.c (finish_options): Move warning settings from process_options.
3216 * toplev.c (process_options): Move warning settings to finish_options.
3217
3218 2011-05-11 Richard Guenther <rguenther@suse.de>
3219
3220 PR tree-optimization/18041
3221 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
3222 (simplify_bitwise_binary): ... this. Handle operand conversions
3223 by applying them to the result instead.
3224 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
3225
3226 2011-05-11 Richard Guenther <rguenther@suse.de>
3227
3228 * gimple.c (gimple_canonical_types_compatible_p): Split out
3229 from gimple_types_compatible_p and friends. Do not recurse
3230 to pointed-to types.
3231 (gimple_canonical_type_eq): Use it.
3232 (iterative_hash_canonical_type): Split out from
3233 iterative_hash_gimple_type and friends. Do not recurse
3234 to pointed-to types.
3235 (gimple_canonical_type_hash): Use it, allocate the hash here.
3236
3237 2011-05-11 Revital Eres <revital.eres@linaro.org>
3238
3239 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
3240 recognizing doloop.
3241
3242 2011-05-11 Revital Eres <revital.eres@linaro.org>
3243
3244 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
3245 instead of PREV_INSN.
3246
3247 2011-05-11 Revital Eres <revital.eres@linaro.org>
3248
3249 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
3250 * loop-doloop.c (doloop_condition_get): Likewise.
3251 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
3252 (doloop_end): New.
3253 * config/arm/arm.md (*addsi3_compare0): Remove "*".
3254
3255 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
3256
3257 * tree.def (CASE_LABEL_EXPR): Add an operand.
3258 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
3259
3260 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3261
3262 * c-decl.c (c_override_global_bindings_to_false): Remove.
3263 (global_bindings_p): Don't check
3264 c_override_global_bindings_to_false.
3265 * c-tree.h (c_override_global_bindings_to_false): Remove.
3266 * c-typeck.c (composite_type): Don't set
3267 c_override_global_bindings_to_false.
3268
3269 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
3270
3271 PR target/48857, 48495
3272 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
3273 (VSX_MODE): Ditto.
3274 (VSX_MOVE_MODE): Ditto.
3275 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
3276 VSX vector types. Add V2DImode.
3277 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
3278 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
3279 (MODES_TIEABLE_P): Ditto.
3280
3281 * config/rs6000/rs6000.c (rs6000_emit_move): Use
3282 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
3283 VSX_VECTOR_MODE.
3284 (init_cumulative_args): Ditto.
3285 (rs6000_function_arg_boundary): Ditto.
3286 (rs6000_function_arg_advance_1): Ditto.
3287 (rs6000_function_arg): Ditto.
3288 (rs6000_function_ok_for_sibcall): Ditto.
3289 (emit_frame_save): Ditto.
3290 (rs6000_function_value): Ditto.
3291 (rs6000_libcall_value): Ditto.
3292
3293 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3294
3295 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
3296 i386/darwin-lib.h to $libgcc_tm_file.
3297 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
3298
3299 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3300
3301 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
3302
3303 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3304
3305 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
3306 * config/rs6000/rs6000-tables.opt: New file (generated).
3307 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
3308 rs6000/rs6000-tables.opt to extra_options.
3309 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
3310 * config/rs6000/rs6000.c (rs6000_select): Remove.
3311 (processor_target_table): Move contents to rs6000-cpus.def.
3312 (darwin_rs6000_override_options): Check
3313 global_options_set.x_rs6000_cpu_index instead of
3314 rs6000_select[1].string.
3315 (rs6000_option_override_internal): Likewise.
3316 (rs6000_handle_option): Don't assert that global structures are in
3317 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
3318 (rs6000_default_cpu): New variable.
3319 (rs6000_file_start): Set it instead of local default_cpu. Check
3320 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
3321 global_options_set.x_rs6000_tune_index instead of rs6000_select.
3322 (rs6000_darwin_file_start): Check rs6000_default_cpu and
3323 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
3324 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
3325 rs6000_select): Remove.
3326 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
3327 Remove.
3328 (mcpu=, mtune=): Use Var, Init, Enum and Save.
3329 * config/rs6000/t-rs6000
3330 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
3331 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
3332 global_options_set.x_rs6000_cpu_index instead of
3333 rs6000_select[1].string.
3334 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
3335 global_options_set.x_rs6000_cpu_index instead of
3336 rs6000_select[1].string.
3337
3338 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3339
3340 * config.gcc (libgcc_tm_file): Define instead of including files
3341 from ../../libgcc/config/ in tm_file.
3342 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
3343 * configure: Regenerate.
3344 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
3345 libgcc_tm.h, cs-libgcc_tm.h): New.
3346 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
3347 (clean): Remove libgcc_tm.h.
3348 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
3349 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
3350 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
3351
3352 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
3353
3354 PR target/48896
3355 * config/avr/avr.c (avr_ret_register): Return unsigned int
3356 instead of int.
3357 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
3358 it to avr_libcall_value.
3359 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
3360 expand_expr.
3361 (avr_expand_binop_builtin): Ditto.
3362 (avr_expand_unop_builtin): Ditto.
3363
3364 2011-05-10 DJ Delorie <dj@redhat.com>
3365
3366 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
3367 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
3368 * config/rx/rx.c (rx_align_for_label): Add label and
3369 uses_threshold parameters. Do not align when the label is not
3370 used enough.
3371 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
3372
3373 2011-05-10 Richard Guenther <rguenther@suse.de>
3374
3375 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
3376 a series of conversions and apply foldings similar to what
3377 fold-const does.
3378 (tree_ssa_forward_propagate_single_use_vars): Call it.
3379
3380 2011-05-10 Jakub Jelinek <jakub@redhat.com>
3381
3382 PR tree-optimization/48611
3383 PR tree-optimization/48794
3384 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
3385 referenced from RESX or EH_DISPATCH arguments.
3386
3387 PR debug/48928
3388 * dfp.c (decimal_to_decnumber): Handle conversion from
3389 dconst{1,2,m1,half}.
3390
3391 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3392
3393 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
3394 for !flag_prefer_avx128.
3395 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
3396
3397 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
3398
3399 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
3400 (fold_ternary_loc): Use expr_location_or.
3401
3402 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
3403
3404 PR debug/48853
3405 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
3406 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
3407 Pmode and mem_mode is not VOIDmode.
3408
3409 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
3410
3411 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
3412 TYPE_QUAL_RESTRICT): Convert to enum.
3413
3414 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3415
3416 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
3417 (const_pow2_1_to_8_operand): Ditto.
3418 (const_pow2_1_to_128_operand): Ditto.
3419 (const_pow2_1_to_32768_operand): Ditto.
3420 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
3421 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
3422 in insn constraint to check integer value of operand 3.
3423 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
3424
3425 (PINSR_MODE): New mode iterator.
3426 (sse2p4_1): New mode attribute.
3427 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
3428 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
3429 iterator. Use const_int_operand instead of
3430 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
3431 exact_log2 in insn constraint to check integer value of operand 3.
3432
3433 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3434
3435 * config/i386/sse.md (blendbits): Remove mode attribute.
3436 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
3437 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
3438 Check integer value of operand 3 in insn constraint.
3439
3440 2011-05-09 Richard Guenther <rguenther@suse.de>
3441
3442 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
3443 for diagnostics.
3444 (lto_symtab_merge): Likewise. Do not register types here.
3445 (lto_symtab_merge_decls_2): Likewise.
3446 (lto_symtab_merge_decls_1): Likewise.
3447 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
3448 * gimple.c (enum gtc_mode): Declare.
3449 (gimple_types_compatible_p): Make static.
3450
3451 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3452
3453 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
3454 temporary register to match Pmode.
3455
3456 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3457
3458 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
3459 and *vec_concatv4si_1_avx.
3460
3461 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3462
3463 PR rtl-optimization/48927
3464 * ira-conflicts.c (commutative_constraint_p): Use
3465 recog_data.alternative_enabled_p to disable alternatives where
3466 "enabled" attribute is false.
3467 (get_dup_num): Ditto.
3468 * ira-lives.c (single_reg_class): Ditto.
3469 (ira_implicitly_set_insn_hard_regs): Ditto.
3470
3471 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
3472
3473 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
3474 (dataflow_set_preserve_mem_locs): Likewise.
3475
3476 2011-05-09 Philipp Thomas <pth@suse.de>
3477
3478 * config/mep/mep.c (mep_validate_vliw): Syntax description
3479 should not be translated.
3480
3481 2011-05-09 Joseph Myers <joseph@codesourcery.com>
3482
3483 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
3484 * config/mips/mips-tables.opt: New file (generated).
3485 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
3486 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
3487 MIPS_ARCH_OPTION_NATIVE): Define.
3488 * config/mips/mips.c (mips_cpu_info_table): Move contents to
3489 mips-cpus.def.
3490 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
3491 mips_parse_cpu): Remove.
3492 (mips_cpu_info_from_opt, mips_default_arch): New.
3493 (mips_handle_option): Don't assert that global structures are in
3494 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
3495 (mips_option_override): Use new variables and functions to set
3496 state of these options. Use strcmp to check for individual CPU names.
3497 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
3498 definition.
3499 * config/mips/mips.opt (march=): Use ToLower and Enum.
3500 (mips): Use ToLower, Enum and Var.
3501 (mtune=): Use ToLower and Enum.
3502 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
3503
3504 2011-05-08 Jan Hubicka <jh@suse.cz>
3505
3506 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
3507 Arrange type pairs to be UID ordered.
3508 (gimple_lookup_type_leader): Make inline.
3509
3510 2011-05-09 Nick Clifton <nickc@redhat.com>
3511
3512 PR target/48899
3513 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
3514 PROCESSOR_DEFAULT.
3515
3516 PR target/48897
3517 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
3518 variable 's'.
3519
3520 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
3521
3522 * combine.c (simplify_comparison): Abstract out parts into...
3523 (simplify_compare_const): ... new function.
3524 (try_combine): Generalize parallel arithmetic/compare combining
3525 to call simplify_compare_const() and CANONICALIZE_COMPARE().
3526
3527 2011-05-08 Jan Hubicka <jh@suse.cz>
3528
3529 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
3530 (cgraph_create_virtual_clone): Call hooks once virtual clone
3531 is finished.
3532 * cgraph.h (cgraph_clone_node): Update prototype.
3533 * ipa-cp.c (ipcp_estimate_growth): Use
3534 estimate_ipcp_clone_size_and_time.
3535 * ipa-inline-transform.c (clone_inlined_nodes): Update.
3536 * lto-cgraph.c (input_node): Update.
3537 * ipa-inline.c (recursive_inlining): Update.
3538 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
3539 (evaluate_conditions_for_known_args): Break out from ...
3540 (evaluate_conditions_for_edge): ... here.
3541 (evaluate_conditions_for_ipcp_clone): New function.
3542 (inline_node_duplication_hook): Update clone summary based
3543 on parameter map.
3544 (estimate_callee_size_and_time): Rename to ...
3545 (estimate_node_size_and_time): take NODE instead of EDGE;
3546 take POSSIBLE_TRUTHS as argument.
3547 (estimate_callee_size_and_time): Update.
3548 (estimate_ipcp_clone_size_and_time): New function.
3549 (do_estimate_edge_time): Update.
3550
3551 2011-05-08 Richard Guenther <rguenther@suse.de>
3552
3553 PR middle-end/48908
3554 PR middle-end/48905
3555 * expmed.c (expand_shift_1): Compute adjusted constant shift
3556 amount manually.
3557
3558 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
3559
3560 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
3561
3562 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
3563
3564 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
3565
3566 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
3567
3568 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
3569
3570 2011-05-07 Jan Hubicka <jh@suse.cz>
3571
3572 * ipa-inline-transform.c (inline_call): Account when program size
3573 decreases.
3574 * ipa-inline.c (relative_time_benefit): New function.
3575 (edge_badness): Reorganize to be power 2 based; fix thinko when
3576 computing badness for negative growth; update comments to match
3577 reality; better dumps.
3578
3579 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
3580
3581 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
3582 type to bool and adjust comment.
3583 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
3584 (fold_mathfn_compare): Remove calls to global_bindings_p.
3585 (fold_inf_compare): Likewise.
3586 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
3587 * c-tree.h (global_bindings_p): Adjust prototype.
3588 * c-decl.c (global_bindings_p): Return bool and simplify.
3589
3590 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
3591
3592 PR tree-optimization/48837
3593 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
3594 when accumulator transformation is performed.
3595
3596 2011-05-06 Jan Hubicka <jh@suse.cz>
3597
3598 * i386.h (ix86_tune_indices): Add
3599 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
3600 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
3601 * i386.c (initial_ix86_tune_features): Add
3602 X86_SOFTARE_PREFETCHING_BENEFICIAL.
3603 (software_prefetching_beneficial_p): Remove predicate.
3604 (ix86_option_override_internal): Use new macro.
3605
3606 2011-05-06 Jan Hubicka <jh@suse.cz>
3607
3608 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
3609
3610 2011-05-06 Jan Hubicka <jh@suse.cz>
3611
3612 * cgraph.c (cgraph_add_thunk): Create real function node instead
3613 of alias node; finalize it and mark needed/reachale; arrange visibility
3614 to be right and add it into the corresponding same comdat group list.
3615 (dump_cgraph_node): Dump thunks.
3616 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
3617 cgraph_function_with_gimple_body_p,
3618 cgraph_first_function_with_gimple_body,
3619 cgraph_next_function_with_gimple_body): New functions.
3620 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
3621 New macros.
3622 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
3623 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3624 * cgraphunit.c (cgraph_finalize_function): Only look into possible
3625 devirtualization when optimizing.
3626 (verify_cgraph_node): Verify thunks.
3627 (cgraph_analyze_function): Analyze thunks.
3628 (cgraph_mark_functions_to_output): Output thunks only in combination
3629 with function they are assigned to.
3630 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
3631 alias into normal node.
3632 (assemble_thunks): New functoin.
3633 (cgraph_expand_function): Use it.
3634 * lto-cgraph.c (lto_output_node): Stream thunks.
3635 (input_overwrite_node): Stream in thunks.
3636 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
3637 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
3638 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
3639 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
3640 (inline_analyze_function): Do not care about thunk jump functions.
3641 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
3642 * ipa-prop.c (ipa_prop_write_jump_functions): Use
3643 cgraph_function_with_gimple_body_p.
3644 * passes.c (do_per_function_toporder): Use
3645 cgraph_function_with_gimple_body_p.
3646 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3647 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
3648 (function_called_by_processed_nodes_p): Likewise.
3649
3650 2011-05-06 Joseph Myers <joseph@codesourcery.com>
3651
3652 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
3653 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
3654 entries.
3655 (mabi=): Replace with separate entries for mabi=altivec,
3656 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
3657 mabi=ieeelongdouble and mabi=ibmlongdouble.
3658 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
3659 check for -mabi=spe without SPE ABI support here.
3660 (rs6000_handle_option): Replace OPT_mabi_ handling with
3661 OPT_mabi_altivec and OPT_mabi_spe handling.
3662
3663 2011-05-06 Cary Coutant <ccoutant@google.com>
3664
3665 * dwarf2out.c (contains_subprogram_definition): New function.
3666 (should_move_die_to_comdat): Call it.
3667
3668 2011-05-06 Jeff Law <law@redhat.com>
3669
3670 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
3671 remove_ctrl_stmt_and_useless_edges.
3672 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
3673 (fixup_template_block, thread_single_edge): Likewise.
3674 (mark_threaded_blocks): Use THREAD_TARGET.
3675
3676 2011-05-06 Alan Modra <amodra@gmail.com>
3677
3678 PR target/48900
3679 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
3680 const0_rtx as the arg to the dummy __tls_get_addr libcall.
3681
3682 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
3683
3684 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
3685 constraint modifier to "r".
3686
3687 2011-05-06 Joseph Myers <joseph@codesourcery.com>
3688
3689 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
3690 fall through for OPT_mcmodel_.
3691
3692 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3693
3694 * config/s390/s390.c (s390_asm_trampoline_template): Comment
3695 instruction sizes.
3696 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
3697
3698 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3699
3700 PR target/47930
3701 * config/arm/arm.opt (marm): Document it.
3702 (mthumb): Reject negative variant.
3703
3704 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
3705
3706 PR target/48898
3707 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
3708 Fix typo in "ccvt" variable name.
3709
3710 2011-05-06 Tristan Gingold <gingold@adacore.com>
3711
3712 PR target/48895
3713 * config/vms/vms-ar.c (main): Remove cwd variable.
3714
3715 2011-05-06 Jakub Jelinek <jakub@redhat.com>
3716
3717 PR debug/48902
3718 * var-tracking.c (prepare_call_arguments): Move else before #endif.
3719
3720 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
3721
3722 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
3723 * gimplify.c (gimplify_switch_expr): Likewise.
3724 * omp-low.c (expand_omp_sections): Likewise.
3725 * tree-eh.c (lower_try_finally_switch): Likewise.
3726 (lower_eh_dispatch): Likewise.
3727 * tree.h (build_case_label): Declare.
3728 * tree.c (build_case_label): Define.
3729
3730 2011-05-05 Jason Merrill <jason@redhat.com>
3731
3732 PR c++/40975
3733 * tree-inline.c (copy_tree_r): Use copy_statement_list.
3734 (copy_statement_list): Don't recurse.
3735 * stor-layout.c (copy_self_referential_tree_r): Don't allow
3736 STATEMENT_LIST.
3737
3738 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3739
3740 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
3741 through from -mfpu= handling.
3742 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
3743
3744 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
3745
3746 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
3747 POST_MODIFY.
3748
3749 2011-05-05 Steve Ellcey <sje@cup.hp.com>
3750
3751 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
3752 for 11.31.
3753 (hppa[12]*-*-hpux11*): Ditto.
3754 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
3755 * config/ia64/hpux-unix2003.h: New.
3756 * config/pa/pa-hpux1131.opt: New.
3757 * config/pa/pa-hpux1131.h: New.
3758 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
3759 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
3760 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
3761
3762 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3763
3764 PR debug/48853
3765 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
3766 instead of mode as 3rd argument to recursive call.
3767 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
3768 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
3769 VOIDmode.
3770 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
3771 don't give up if mode is Pmode and mem_mode is not VOIDmode.
3772 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
3773 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
3774
3775 2011-05-05 Julian Brown <julian@codesourcery.com>
3776
3777 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
3778 parenthesis in D-register case.
3779
3780 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3781
3782 * opt-functions.awk (var_type_struct): Handle Enum options.
3783 * optc-gen.awk: Don't check range of variables of character type.
3784 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
3785 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
3786 rs6000_sdata_name, rs6000_explicit_options): Remove.
3787 (rs6000_option_override_internal): Check for -malign-power here.
3788 Use global_options_set instead of rs6000_explicit_options.
3789 (rs6000_parse_fpu_option): Remove.
3790 (rs6000_handle_option): Access variables via opts and opts_set
3791 pointers. Use error_at and warning_at. Add fall-through
3792 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
3793 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
3794 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
3795 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
3796 here. Don't use rs6000_parse_fpu_option.
3797 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
3798 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
3799 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
3800 (mrecip=): Use Var.
3801 (mspe): Use Var and Save.
3802 (mtraceback=): Use Enum and Var.
3803 (rs6000_traceback_type): New Enum and EnumValue entries.
3804 (mfloat-gprs=): Use Enum, Var and Save.
3805 (rs6000_float_gprs): New Enum and EnumValue entries.
3806 (mlong-double-): use Var and Save.
3807 (msched-costly-dep=, minsert-sched-nops=): Use Var.
3808 (malign-): Use Enum and Var.
3809 (rs6000_alignment_flags): New Enum and EnumValue entries.
3810 (mfpu=): Use Enum.
3811 (fpu_type_t): New Enum and EnumValue entries.
3812 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3813 global_options_set instead of rs6000_explicit_options.
3814 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3815 global_options_set instead of rs6000_explicit_options.
3816 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3817 global_options_set instead of rs6000_explicit_options.
3818 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3819 global_options_set instead of rs6000_explicit_options.
3820 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
3821 global_options_set instead of rs6000_explicit_options.
3822 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3823 global_options_set instead of rs6000_explicit_options.
3824 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
3825 definition.
3826 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3827 global_options_set instead of rs6000_explicit_options.
3828 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
3829 (rs6000_cmodel): New Enum and EnumValue entries.
3830 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3831 global_options_set instead of rs6000_explicit_options.
3832 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
3833 (mtls-size=): Use Enum and Var.
3834 (rs6000_tls_size): New Enum and EnumValue entries.
3835
3836 2011-05-05 Michael Matz <matz@suse.de>
3837
3838 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
3839 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
3840 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
3841 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
3842 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
3843 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
3844 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
3845 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
3846 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
3847 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
3848 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
3849 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
3850 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
3851 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
3852 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
3853 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
3854
3855 2011-05-05 Richard Guenther <rguenther@suse.de>
3856
3857 * expmed.c (expand_variable_shift): Rename to ...
3858 (expand_shift_1): ... this. Take an expanded shift amount.
3859 For rotates recurse directly not building trees for the shift amount.
3860 (expand_variable_shift): Wrap around expand_shift_1.
3861 (expand_shift): Adjust.
3862
3863 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3864
3865 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
3866
3867 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
3868
3869 * tree.h (get_pending_sizes): Remove prototype.
3870 (put_pending_size): Likewise.
3871 (put_pending_sizes): Likewise.
3872 * stor-layout.c (pending_sizes): Delete.
3873 (get_pending_sizes): Likewise.
3874 (put_pending_size): Likewise.
3875 (put_pending_sizes): Likewise.
3876 (variable_size): Do not call put_pending_size and tidy up.
3877 * function.h (struct function): Remove dont_save_pending_sizes_p.
3878 * lto-streamer-in.c (input_function): Do not stream it.
3879 * lto-streamer-out.c (output_function): Likewise.
3880 * tree-inline.c (initialize_cfun): Do not copy it.
3881 * c-decl.c (store_parm_decls): Do not set it.
3882 * omp-low.c (create_task_copyfn): Likewise.
3883 * tree-optimize.c (tree_rest_of_compilation): Likewise.
3884
3885 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
3886
3887 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
3888 conditions.
3889 (*movdf_internal): Ditto.
3890 (*movdf_internal_nointeger): Ditto.
3891 (*movsf_internal): Ditto.
3892
3893 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3894
3895 * c-decl.c (finish_decl): Don't call get_pending_sizes.
3896 (grokparm): Add parameter expr. Pass it to grokdeclarator.
3897 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
3898 (c_variable_size): Remove.
3899 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
3900 call put_pending_sizes.
3901 (get_parm_info): Add parameter expr. Use it to set
3902 arg_info->pending_sizes.
3903 (store_parm_decls): Use arg_info->pending_sizes instead or calling
3904 get_pending_sizes.
3905 * c-parser.c (c_parser_parms_declarator): Update call to
3906 c_parser_parms_list_declarator.
3907 (c_parser_parms_list_declarator): Take parameter expr. Update
3908 call to push_parm_decl. Update recursive call. Don't call
3909 get_pending_sizes. Update calls to get_parm_info.
3910 (c_parser_objc_method_definition): Update calls to
3911 c_parser_objc_method_decl and objc_start_method_definition.
3912 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
3913 (c_parser_objc_method_decl): Add parameter expr. Update call to
3914 grokparm.
3915 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
3916 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
3917 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
3918
3919 2011-05-05 Michael Hope <michael.hope@linaro.org>
3920
3921 PR pch/45979
3922 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
3923 __ARM_EABI__ hosts.
3924
3925 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3926
3927 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
3928 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
3929 (spu_output_mi_thunk): New function.
3930
3931 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3932
3933 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
3934 targetm.asm_out.print_operand.
3935 * config/sol2.c: Include target.h.
3936
3937 2011-05-04 Jan Hubicka <jh@suse.cz>
3938
3939 * ipa-inline.c (reset_edge_caches): New function.
3940 (update_caller_keys): Add check_inlinablity_for; do not
3941 reset edge caches; remove now unnecesary loop.
3942 (update_callee_keys): Add comments; reset node_growth_cache of callee.
3943 (update_all_callee_keys): Likewise.
3944 (inline_small_functions): Sanity check cache; update code
3945 recomputing it.
3946
3947 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
3948
3949 PR rtl-optimization/47612
3950 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
3951 as the last insn of the sequence to be moved.
3952
3953 2011-05-04 Tobias Burnus <burnus@net-b.de>
3954
3955 PR fortran/48864
3956 * doc/invoke.texi (Ofast): Document that it
3957 enables Fortran's -fno-protect-parens.
3958
3959 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3960
3961 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
3962
3963 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
3964
3965 * stor-layout.c (variable_size): Do not issue errors.
3966
3967 2011-05-04 Richard Guenther <rguenther@suse.de>
3968
3969 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
3970 for array-ref indices.
3971 (tree_coverage_counter_addr): Likewise.
3972 (build_fn_info_type): Use size_int for index types.
3973 (build_gcov_info): Likewise.
3974
3975 2011-05-04 Richard Guenther <rguenther@suse.de>
3976
3977 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
3978 to build_int_cst.
3979 * c-typeck.c (really_start_incremental_init): Use bitsize_int
3980 for constructor indices.
3981 (push_init_level): Likewise.
3982
3983 2011-05-04 Richard Guenther <rguenther@suse.de>
3984
3985 * explow.c (promote_mode): Move variable declarations before code.
3986
3987 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3988
3989 * tree.h (build_function_type_array): Declare.
3990 (build_varargs_function_type_array): Declare.
3991 (build_function_type_vec, build_varargs_function_type_vec): Define.
3992 * tree.c (build_function_type_array_1): New function.
3993 (build_function_type_array): New function.
3994 (build_varargs_function_type_array): New function.
3995
3996 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
3997
3998 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
3999 before setting STMT_VINFO_TYPE.
4000
4001 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4002
4003 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
4004 instead of spu_pass_by_reference.
4005
4006 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4007
4008 * calls.c (emit_library_call_value_1): Invoke
4009 promote_function_mode hook on libcall arguments.
4010 * explow.c (promote_function_mode, promote_mode): Handle TYPE
4011 argument being NULL.
4012 * targhooks.c (default_promote_function_mode): Lisewise.
4013 * config/s390/s390.c (s390_promote_function_mode): Likewise.
4014 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
4015
4016 * doc/tm.texi: Document that TYPE argument might be NULL.
4017
4018 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4019
4020 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
4021
4022 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4023
4024 From Bernd Schmidt
4025 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
4026
4027 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4028
4029 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
4030 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
4031 Move ...
4032 * mips-tfile.c: ... here.
4033 Don't include coretypes.h, tm.h, filenames.h.
4034 (saber_stop): Remove definition and all calls.
4035 [__SABER__]: Remove.
4036 (__LINE__): Remove default.
4037 (Size_t, Ptrdiff_t): Remove definitions.
4038 Replace by size_t, ptrdiff_t.
4039 [!MIPS_DEBUGGING_INFO]: Remove.
4040 (SHASH_SIZE, THASH_SIZE): Remove defaults.
4041 (progname): Add const.
4042 (STATIC): Remove.
4043 Replace all uses by static.
4044 (ALIGN_SYMTABLE_OFFSET): Remove default.
4045 * mips-tdump.c: Don't include coretypes.h, tm.h.
4046 Remove !MIPS_IS_STAB guard.
4047 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
4048 $(TM_H), filenames.h dependencies.
4049 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
4050
4051 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4052
4053 From Jie Zhang
4054 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
4055 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
4056
4057 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4058
4059 From Bernd Schmidt
4060 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
4061 account and save/restore RETS.
4062 (PROFILE_BEFORE_PROLOGUE): Define.
4063 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
4064 the push insn to use predecrement.
4065
4066 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4067
4068 From Jie Zhang
4069 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
4070
4071 2011-05-04 Nick Clifton <nickc@redhat.com>
4072
4073 * config/mn10300/mn10300.c: Include cfgloop.h.
4074 (DUMP): New macro.
4075 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
4076 Lcc or a FLcc insn into the instruction stream.
4077 (mn10300_block_contains_call): New function. Returns true if the
4078 given basic block contains a CALL insn.
4079 (mn10300_loop_contains_call_insn): New function. Returns true if
4080 the given loop contains a CALL insn.
4081 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
4082 to use the SETLB and Lcc or FLcc insns.
4083 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
4084 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
4085 * config/mn10300/mn10300.opt (msetlb): New option. Used to
4086 disable the SETLB optimization.
4087 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
4088 __SETLB__ or __NO_SETLB__.
4089 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
4090 (movsf_internal): Handle MDR register.
4091 (cmpsi): Make visible.
4092 (setlb): New pattern.
4093 (Lcc): New pattern.
4094 (FLcc): New pattern.
4095
4096 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
4097
4098 PR target/48860
4099 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
4100 for reg<->xmm moves.
4101 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
4102 (vec_concatv2di_rex64_sse): Ditto.
4103 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
4104 (*vec_extractv2di_1_rex64): Ditto.
4105
4106 Revert:
4107 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4108
4109 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
4110 reg<->xmm moves.
4111 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
4112
4113 2011-05-04 Richard Guenther <rguenther@suse.de>
4114
4115 * tree.h (int_const_binop): Remove notrunc argument.
4116 * fold-const.c (int_const_binop): Remove notrunc argument. Always
4117 create integer constants that are properly truncated.
4118 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
4119 (const_binop): Remove zero notrunc argument to int_const_binop.
4120 (size_binop_loc): Likewise.
4121 (fold_div_compare): Likewise.
4122 (maybe_canonicalize_comparison_1): Likewise.
4123 (fold_comparison): Likewise.
4124 (fold_binary_loc): Likewise.
4125 (multiple_of_p): Likewise.
4126 * expr.c (store_constructor): Likewise.
4127 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
4128 (maybe_fold_stmt_addition): Likewise.
4129 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
4130 * stor-layout.c (layout_type): Likewise.
4131 * tree-data-ref.c (tree_fold_divides_p): Likewise.
4132 * tree-sra.c (build_ref_for_offset): Likewise.
4133 (build_user_friendly_ref_for_offset): Likewise.
4134 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
4135 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
4136 * tree-ssa-loop-niter.c (inverse): Likewise.
4137 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
4138 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
4139 * tree-switch-conversion.c (check_range): Likewise.
4140 (build_constructors): Likewise.
4141 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
4142 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
4143 (extract_range_from_assert): Likewise.
4144 (vrp_int_const_binop): Likewise.
4145 (extract_range_from_binary_expr): Likewise.
4146 (extract_range_from_unary_expr): Likewise.
4147 (check_array_ref): Likewise.
4148 (find_case_label_range): Likewise.
4149 (simplify_div_or_mod_using_ranges): Likewise.
4150 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
4151 comparing case labels for merging.
4152
4153 2011-05-03 Mark Wielaard <mjw@redhat.com>
4154
4155 * dwarf2out.c (debug_str_hash_forced): Removed.
4156 (gen_label_for_indirect_string): Removed.
4157 (get_debug_string_label): Removed.
4158 (AT_string_form): Generate label directly.
4159 (output_indirect_string): Test indirect_string_node for
4160 DW_FORM_strp instead of checking label and refcount.
4161 (prune_indirect_string): Removed.
4162 (prune_unused_types): Don't check debug_str_hash_forced or
4163 call prune_indirect_string.
4164
4165 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
4166
4167 PR other/48093
4168 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
4169
4170 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
4171
4172 PR debug/47994
4173 PR debug/47919
4174 * combine.c (try_combine): Skip debug insns at m_split tests.
4175
4176 2011-04-26 Mark Wielaard <mjw@redhat.com>
4177
4178 PR42288
4179 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
4180 when info_section_emitted.
4181
4182 2011-05-03 Joseph Myers <joseph@codesourcery.com>
4183
4184 * config/mips/mips-opts.h: New.
4185 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
4186 to mips-opts.h.
4187 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
4188 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
4189 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
4190 via opts pointer.
4191 * config/mips/mips.h (enum mips_code_readable_setting): Move to
4192 mips-opts.h.
4193 (mips_abi, mips_code_readable): Don't declare.
4194 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
4195 (mabi=): Use Enum and Var.
4196 (mips_abi): New Enum and EnumValue entries.
4197 (mcode-readable=): Use Enum and Var.
4198 (mips_code_readable_setting): New Enum and EnumValue entries.
4199 (mr10k-cache-barrier=): Use Enum and Var.
4200 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
4201
4202 2011-05-03 Jan Hubicka <jh@suse.cz>
4203
4204 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
4205 replace hash by pointer map.
4206 (cgraph_node_set_element_def, cgraph_node_set_element,
4207 const_cgraph_node_set_element, varpool_node_set_element_def,
4208 varpool_node_set_element, const_varpool_node_set_element): Remove.
4209 (free_cgraph_node_set, free_varpool_node_set): New function.
4210 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
4211 * tree-emutls.c: Free varpool node set.
4212 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
4213 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
4214 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
4215 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
4216 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
4217 Move here from ipa.c; implement using pointer_map
4218 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
4219 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
4220 debug_cgraph_node_set, varpool_node_set_new,
4221 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
4222 dump_varpool_node_set, debug_varpool_node_set):
4223 Move to ipa-uitls.c.
4224 * passes.c (ipa_write_summaries): Update.
4225
4226 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4227
4228 From Mike Frysinger:
4229 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
4230 bf542/bf544/bf547/bf548/bf549.
4231
4232 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
4233
4234 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
4235
4236 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4237
4238 From Bernd Schmidt:
4239 * config/bfin/bfin.md (MOVCC): New mode_macro.
4240 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
4241 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
4242 comments from generated assembly.
4243
4244 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4245
4246 From Bernd Schmidt
4247 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
4248 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
4249 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
4250 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
4251 * config/bfin/lib1funcs.asm (___muldi3): New function.
4252
4253 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4254
4255 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
4256 build_function_type_list instead of build_function_type.
4257 Rearrange initialization of `args' to do so.
4258
4259 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4260
4261 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
4262 instead of build_function_type.
4263
4264 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4265
4266 * config/rs6000/rs6000.c (spe_init_builtins): Call
4267 build_function_type_list instead of build_function_type.
4268 (paired_init_builtins, altivec_init_builtins): Likewise.
4269 (builtin_function_type): Likewise.
4270
4271 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4272
4273 * config/sh/sh.c (sh_media_init_builtins): Call
4274 build_function_type_list instead of build_function_type.
4275
4276 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4277
4278 * config/sparc/sparc.c (sparc_file_end): Call
4279 build_function_type_list instead of build_function_type.
4280
4281 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4282
4283 * config/alpha/alpha.c (alpha_init_builtins): Call
4284 build_function_type_list instead of build_function_type.
4285
4286 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4287
4288 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
4289 build_function_type_list instead of build_function_type.
4290
4291 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4292
4293 * config/iq2000/i2000.c (iq2000_init_builtins): Call
4294 build_function_type_list instead of build_function_type.
4295 Delete `endlink' variable.
4296
4297 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4298
4299 * config/avr/avr.c (avr_init_builtins): Call
4300 build_function_type_list instead of build_function_type.
4301
4302 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4303
4304 * config/picochip/picochip.c (picochip_init_builtins): Call
4305 build_function_type_list instead of build_function_type.
4306 Delete `endlink' variable.
4307
4308 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4309
4310 * config/bfin/bfin.c (bfin_init_builtins): Call
4311 build_function_type_list instead of build_function_type.
4312
4313 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4314
4315 From Bernd Schmidt
4316 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
4317 that's not CONST_INT. Seemingly redundant check is due to PR39768.
4318
4319 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4320
4321 From Jie Zhang:
4322 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
4323 libbffastfp overrides libgcc when -mfast-fp.
4324
4325 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4326
4327 Originally from Bernd Schmidt
4328 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
4329 * config/bfin/bfin.c (override_options): Test it and error if
4330 TARGET_FDPIC.
4331
4332 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4333
4334 Originally From Bernd Schmidt
4335 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
4336 FD-PIC.
4337
4338 2011-05-03 Jeff Law <law@redhat.com>
4339
4340 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
4341 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
4342 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
4343 than accessing AUX field directly. Free the AUX field before
4344 clearing it.
4345 (thread_block, thread_through_loop_header): Likewise.
4346 (thread_single_edge, mark_threaded_blocks): Likewise.
4347 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
4348 (register_jump_thread): Do not attempt to thread to a NULL edge.
4349
4350 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
4351
4352 * function.c (init_function_start): Call decide_function_section.
4353 * varasm.c (decide_function_section): New function.
4354 (assemble_start_function): When not using
4355 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
4356 or first_function_block_is_cold.
4357 * rtl.h (decide_function_section): Declare.
4358
4359 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
4360 Jakub Jelinek <jakub@redhat.com>
4361
4362 PR target/48774
4363 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
4364 only succeed if req_mode is the same as set_mode.
4365
4366 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
4367
4368 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
4369 * genemit.c (gen_exp): Handle RETURN.
4370 * emit-rtl.c (verify_rtx_sharing): Likewise.
4371 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
4372 * rtl.c (copy_rtx): RETURN is shared.
4373 * rtl.h (enum global_rtl_index): Add GR_RETURN.
4374 (ret_rtx): New.
4375 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
4376 * config/s390/s390.c (s390_emit_epilogue): Likewise.
4377 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
4378 * config/cris/cris.c (cris_expand_return): Likewise.
4379 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
4380 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
4381 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
4382 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
4383 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
4384 Likewise.
4385 * config/v850/v850.c (expand_epilogue): Likewise.
4386 * config/bfin/bfin.c (bfin_expand_call): Likewise.
4387 * config/arm/arm.md (epilogue): Likewise.
4388 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
4389 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
4390 variable to ret_reg.
4391
4392 2011-05-03 Richard Guenther <rguenther@suse.de>
4393
4394 PR lto/48846
4395 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
4396 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
4397 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
4398
4399 2011-05-03 Richard Guenther <rguenther@suse.de>
4400
4401 * c-decl.c (grokdeclarator): Instead of looking at
4402 TREE_OVERFLOW check if the constant fits in the index type.
4403
4404 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4405
4406 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
4407 (vec_store_lanes<mode><mode>): Likewise.
4408
4409 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4410
4411 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
4412 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
4413 convert_optab_index values.
4414 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
4415 * genopinit.c (optabs): Initialize the new optabs.
4416 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
4417 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
4418 (expand_STORE_LANES): New functions.
4419 * tree.h (build_array_type_nelts): Declare.
4420 * tree.c (build_array_type_nelts): New function.
4421 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
4422 (vect_model_load_cost): Likewise.
4423 (vect_store_lanes_supported, vect_load_lanes_supported)
4424 (vect_record_strided_load_vectors): Declare.
4425 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
4426 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
4427 (vect_transform_strided_load): Split out statement recording into...
4428 (vect_record_strided_load_vectors): ...this new function.
4429 * tree-vect-stmts.c (create_vector_array, read_vector_array)
4430 (write_vector_array, create_array_ref): New functions.
4431 (vect_model_store_cost): Add store_lanes_p argument.
4432 (vect_model_load_cost): Add load_lanes_p argument.
4433 (vectorizable_store): Try to use store-lanes functions for
4434 interleaved stores.
4435 (vectorizable_load): Likewise load-lanes and loads.
4436 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
4437 to vect_model_store_cost.
4438 (vect_build_slp_tree): Likewise vect_model_load_cost.
4439
4440 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4441
4442 * hooks.h (hook_bool_mode_uhwi_false): Declare.
4443 * hooks.c (hook_bool_mode_uhwi_false): New function.
4444 * target.def (array_mode_supported_p): New hook.
4445 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
4446 * doc/tm.texi: Regenerate.
4447 * stor-layout.c (mode_for_array): New function.
4448 (layout_type): Use it.
4449 * config/arm/arm.c (arm_array_mode_supported_p): New function.
4450 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
4451
4452 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
4453
4454 PR target/48723
4455 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
4456 for -fstack-check if the size to allocate is negative.
4457
4458 2011-05-02 Lawrence Crowl <crowl@google.com>
4459
4460 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
4461 (timevar_cond_start): New for starting a timer only when it is not
4462 already running.
4463 (timevar_cond_stop): New for stopping a timer when it was not already
4464 running.
4465
4466 * timevar.c (timevar_stop): Enable start/stop timers to start again.
4467 (timevar_cond_start): New as above.
4468 (timevar_cond_stop): New as above.
4469
4470 * timevar.def: Add start/stop timers for compiler phases,
4471 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
4472 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
4473 and TV_PHASE_FINALIZE.
4474 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
4475 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
4476 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
4477 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
4478 Make unused TV_OVERLOAD into a start/stop timer.
4479
4480 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
4481 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
4482 to indicate that they are start/stop timers.
4483
4484 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
4485 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
4486 Move initialization to do_compile.
4487 (do_compile): Add initialization from above.
4488 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
4489
4490 * c-decl.c (c_write_global_declarations): Add start/stop of
4491 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
4492
4493 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
4494 or TV_PARSE_INLINE, as appropriate.
4495 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
4496 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
4497
4498 2011-05-02 Jason Merrill <jason@redhat.com>
4499
4500 PR c++/40975
4501 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
4502
4503 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
4504
4505 PR c/35445
4506 * c-decl.c (finish_decl): Only create a composite if the types are
4507 compatible.
4508
4509 2011-05-02 Joseph Myers <joseph@codesourcery.com>
4510
4511 * config/fr30/fr30-protos.h (Mmode): Don't define.
4512 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
4513 definition where used.
4514 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
4515 define. Expand definitions where used.
4516 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
4517 Expand definitions where used.
4518 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
4519 rx_function_arg, rx_function_arg_advance,
4520 rx_function_arg_boundary): Expand definitions of those macros.
4521 * config/v850/v850-protos.h (Mmode): Don't define. Expand
4522 definition where used.
4523
4524 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4525
4526 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
4527 reg<->xmm moves.
4528 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
4529 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
4530 with *movv2sf_internal_rex64_avx.
4531 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
4532 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
4533 Use %v prefix in insn mnemonic to handle TARGET_AVX.
4534 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
4535 "vex" in "prefix" attribute calculation.
4536 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
4537
4538 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
4539
4540 PR target/47951
4541 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
4542 inputs match the output.
4543
4544 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
4545
4546 PR target/47955
4547 * config/m68k/m68k.c (m68k_expand_prologue): Set
4548 current_function_static_stack_size.
4549
4550 2011-05-02 Jan Hubicka <jh@suse.cz>
4551
4552 * lto-streamer.c (lto_streamer_cache_insert_1,
4553 lto_streamer_cache_lookup, lto_streamer_cache_create,
4554 lto_streamer_cache_delete): Use pointer map instead of hashtable.
4555 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
4556
4557 2011-05-02 Joseph Myers <joseph@codesourcery.com>
4558
4559 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
4560 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
4561 config/m68k/t-opts: New files.
4562 * config/m68k/m68k-tables.opt: New file (generated).
4563 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
4564 extra_options and m68k/t-opts to tmake_file.
4565 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
4566 (all_isas): Initialize using m68k-isas.def.
4567 (all_microarchs): Initialize using m68k-microarchs.def.
4568 (m68k_find_selection): Remove.
4569 (m68k_handle_option): Don't assert that global structures are in
4570 use. Use error_at. Access variables via opts pointer. Don't
4571 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
4572 directly for -m68020-40 and -m68020-60.
4573 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
4574 m68k_tune_entry here.
4575 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
4576 to m68k-opts.h.
4577 (m68k_library_id_string): Remove declaration.
4578 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
4579 (m68k_library_id_string): New Variable.
4580 (march=, mcpu=, mtune=): Use Enum and Var.
4581
4582 2011-05-02 Richard Guenther <rguenther@suse.de>
4583
4584 * varasm.c (output_constructor_regular_field): Compute zero-based
4585 index with double-ints. Make sure to ICE instead of producing
4586 wrong code.
4587 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
4588 in asserts. Properly use a signed type.
4589
4590 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4591
4592 * config/i386/sse.md (V): New mode iterator.
4593 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
4594 TARGET_SSE2.
4595 (V_256): Rename from AVX256MODE.
4596 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
4597 condition to all users.
4598 (VF1): Ditto.
4599 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
4600 condition to all users.
4601 (VF_128): Make V4SF mode unconditional.
4602 (VF_256): Rename from AVX256MODEF2P.
4603 (VI4F_128): Rename from SSEMODE4S.
4604 (VI8F_128): Rename from SSEMODE2D.
4605 (VI4F_256): Rename from AVX256MODE8P.
4606 (VI8F_256): Rename from AVX256MODE4P.
4607 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
4608 (ssescalarmodesuffix): Remove SF and DF modes.
4609 (SSEMODE124): Remove.
4610 (SSEMODE1248): Ditto.
4611 (SSEMODEF2P): Ditto.
4612 (AVXMODEF2P): Ditto.
4613 (AVXMODEFDP): Ditto.
4614 (AVXMODEFSP): Ditto.
4615 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
4616 unconditional.
4617 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
4618 unconditional.
4619 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
4620 xop_pcmov_<mode>256. Use V mode iterator.
4621
4622 Adjust RTX patterns globally for renamed mode attributes.
4623
4624 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4625
4626 * haifa-sched.c (sched_emit_insn): Emit insn before first
4627 non-scheduled insn. Inform back-end about new insn. Add
4628 new insn to scheduled_insns list.
4629
4630 2011-05-02 Richard Guenther <rguenther@suse.de>
4631
4632 PR tree-optimization/48822
4633 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
4634 (process_scc): Indicate which iteration we start.
4635
4636 2011-05-02 Jan Hubicka <jh@suse.cz>
4637
4638 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
4639 (lto_section_overrun): New.
4640 * lto-section-out.c (append_block): Rename to ...
4641 (lto_append_block): ... this one; export.
4642 (lto_output_1_stream): Move lto lto-streamer.h
4643 (lto_output_data_stream): Update.
4644 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
4645 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
4646 functions.
4647
4648 2011-05-02 Richard Guenther <rguenther@suse.de>
4649
4650 * tree.c (tree_code_counts): New global array.
4651 (record_node_allocation_statistics): Count individual tree codes.
4652 (dump_tree_statistics): Dump individual code stats.
4653
4654 2011-05-01 Jan Hubicka <jh@suse.cz>
4655
4656 * ipa-inline.c (caller_growth_limits): Fix thinko when
4657 looking for largest stack frame.
4658 * ipa-inline.h (dump_inline_summary): Declare.
4659 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
4660 on stack usage.
4661 (dump_inline_summary): Export.
4662 (debug_inline_summary): Declare as DEBUG_FUNCTION.
4663
4664 2011-05-01 Anatoly Sokolov <aesok@post.ru>
4665
4666 * reginfo.c (memory_move_cost): Change rclass argument type form
4667 'enum reg_class' to reg_class_t.
4668 * reload.h (memory_move_cost): Update prototype.
4669 * postreload.c reload_cse_simplify_set): Change type dclass var to
4670 reg_class_t.
4671 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
4672 Update prototype.
4673 (ira_allocate_and_set_costs): Change aclass argument type form
4674 'enum reg_class' to reg_class_t.
4675 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
4676 Change aclass argument type to reg_class_t.
4677 (update_conflict_hard_reg_costs): Change type aclass and pref vars
4678 to reg_class_t.
4679 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
4680 memory_move_cost call.
4681
4682 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
4683 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
4684 Change type tmp var to reg_class_t.
4685
4686 2011-04-30 Jan Hubicka <jh@suse.cz>
4687
4688 * ipa-inline.c (can_inline_edge_p): Disregard limits when
4689 inlining into function with flatten attribute.
4690 (want_inline_small_function_p): Be more realistic about inlining
4691 cold calls where callee size grows.
4692
4693 2011-04-30 Jan Hubicka <jh@suse.cz>
4694
4695 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
4696 flags.
4697
4698 2011-04-30 Anatoly Sokolov <aesok@post.ru>
4699
4700 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
4701 PRINT_OPERAND_PUNCT_VALID_P): Remove.
4702 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
4703 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
4704 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4705 (print_operand): Rename to...
4706 (sparc_print_operand): ...this. Make static. Adjust
4707 sparc_print_operand function call.
4708 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
4709 functions.
4710
4711 2011-04-30 Jan Hubicka <jh@suse.cz>
4712
4713 PR middle-end/48752
4714 * ipa-inline.c (early_inliner): Disable when doing late
4715 addition of function.
4716
4717 2011-04-30 Jakub Jelinek <jakub@redhat.com>
4718
4719 * dwarf2out.c (get_address_mode): New inline.
4720 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
4721 if not dwarf_strict emit
4722 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
4723 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
4724 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
4725 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
4726 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
4727 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
4728 mem_loc_descriptor callers.
4729 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
4730 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
4731 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
4732 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
4733 (base_types): New variable.
4734 (get_base_type_offset, calc_base_type_die_sizes,
4735 base_type_for_mode, mark_base_types, base_type_cmp,
4736 move_marked_base_types): New functions.
4737 (calc_die_sizes): Assert that die_offset is 0 or equal to
4738 next_die_offset.
4739 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
4740 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
4741 callers. If not dwarf_strict, call mem_loc_descriptor even for
4742 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
4743 (gen_subprogram_die): Don't give up on call site parameters
4744 with non-integral or large integral modes. Adjust
4745 mem_loc_descriptor callers.
4746 (prune_unused_types): Call prune_unused_types_mark on base_types
4747 vector entries.
4748 (resolve_addr): Call mark_base_types.
4749 (dwarf2out_finish): Call move_marked_base_types.
4750
4751 PR tree-optimization/48809
4752 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
4753 type.
4754 (gen_inbound_check): Don't compute index_expr - range_min in utype
4755 again, instead reuse SSA_NAME initialized in build_arrays.
4756 Remove two useless gsi_for_stmt calls.
4757
4758 2011-04-29 Jeff Law <law@redhat.com>
4759
4760 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
4761
4762 2011-04-29 Martin Jambor <mjambor@suse.cz>
4763
4764 * cgraph.h (cgraph_postorder): Remove declaration.
4765 * ipa-utils.h (ipa_free_postorder_info): Declare.
4766 (ipa_reverse_postorder): Likewise.
4767 * cgraphunit.c: Include ipa-utils.h.
4768 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
4769 * ipa-inline.c: Include ipa-utils.h.
4770 (ipa_inline): Update call to ipa_reverse_postorder.
4771 * ipa-pure-const.c (propagate_pure_const): Update call to
4772 ipa_reduced_postorder and ipa_print_order. Call
4773 ipa_free_postorder_info to clean up.
4774 (propagate_nothrow): Likewise.
4775 * ipa-reference.c (propagate): Removed a useless call to
4776 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
4777 and ipa_print_order. Call ipa_free_postorder_info to clean up.
4778 * ipa.c: Include ipa-utils.h.
4779 (ipa_profile): Update call to ipa_reverse_postorder.
4780 (cgraph_postorder): Moved to...
4781 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
4782 (ipa_utils_print_order): Renamed to ipa_print_order.
4783 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
4784 comments.
4785 (ipa_free_postorder_info): New function.
4786 * passes.c: Include ipa-utils.h.
4787 (do_per_function_toporder): Update call to ipa_reverse_postorder.
4788 (ipa_write_summaries): Likewise.
4789 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
4790 (cgraphunit.o): Likewise.
4791 (ipa.o): Likewise.
4792 (ipa-inline.o): Likewise.
4793
4794 2011-04-29 Jan Hubicka <jh@suse.cz>
4795
4796 * gcc.dg/tree-ssa/inline-10.c: New testcase.
4797 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
4798 * ipa-inline.h (clause_t): Turn into unsigned int.
4799 * ipa-inline-analysis.c (add_clause): Do more simplification.
4800 (and_predicates): Shortcut more cases.
4801 (predicates_equal_p): Move forward; check that clauses are properly
4802 ordered.
4803 (or_predicates): Shortcut more cases.
4804 (edge_execution_predicate): Rewrite as...
4805 (set_cond_stmt_execution_predicate): ... this function; handle
4806 __builtin_constant_p.
4807 (set_switch_stmt_execution_predicate): New .
4808 (compute_bb_predicates): New.
4809 (will_be_nonconstant_predicate): Update TODO.
4810 (estimate_function_body_sizes): Use compute_bb_predicates
4811 and free them later, always try to estimate if stmt is constant.
4812 (estimate_time_after_inlining, estimate_size_after_inlining):
4813 Gracefully handle optimized out edges.
4814 (read_predicate): Fix off by one error.
4815
4816 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
4817
4818 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
4819
4820 2011-04-27 Xinliang David Li <davidxl@google.com>
4821
4822 * tree-profile.c (init_ic_make_global_vars): Set
4823 tls attribute on ic vars.
4824 * coverage.c (coverage_end_function): Initialize
4825 function_list with zero.
4826
4827 2011-04-29 Richard Guenther <rguenther@suse.de>
4828
4829 * builtins.c (fold_builtin_classify_type): Use integer_type_node
4830 for the type of the result.
4831 (fold_builtin_isascii): Likewise.
4832 (fold_builtin_toascii): Use integer_type_node where appropriate.
4833 (fold_builtin_logb): Likewise.
4834 (fold_builtin_frexp): Likewise.
4835 (fold_builtin_strstr): Likewise.
4836 (fold_builtin_strpbrk): Likewise.
4837 (fold_builtin_fputs): Likewise.
4838 (fold_builtin_sprintf): Likewise.
4839 (fold_builtin_snprintf): Likewise.
4840 (fold_builtin_printf): Likewise.
4841 (do_mpfr_remquo): Use a proper type for the assigned constant.
4842 (do_mpfr_lgamma_r): Likewise.
4843 * dwarf2out.c (resolve_one_addr): Use size_int.
4844 * except.c (init_eh): Likewise.
4845 (assign_filter_values): Use integer_type_node for filter values.
4846 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
4847 indices.
4848 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
4849 for EH region numbers.
4850 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
4851 for the shift amount.
4852
4853 2011-04-29 Richard Guenther <rguenther@suse.de>
4854
4855 * expr.h (expand_shift): Rename to ...
4856 (expand_variable_shift): ... this.
4857 (expand_shift): Take a constant shift amount.
4858 * expmed.c (expand_shift): Rename to ...
4859 (expand_variable_shift): ... this.
4860 (expand_shift): New wrapper around expand_variable_shift.
4861 * expr.c (convert_move, emit_group_load_1, emit_group_store,
4862 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
4863 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
4864 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
4865 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
4866 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
4867 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
4868 emit_store_flag_1, emit_store_flag): Likewise.
4869 * builtins.c (expand_builtin_signbit): Likewise.
4870 * calls.c (load_register_parameters): Likewise.
4871 * function.c (assign_parm_setup_block): Likewise.
4872 * lower-subreg.c (resolve_shift_zext): Likewise.
4873 * optabs.c (widen_bswap, expand_abs_nojump,
4874 expand_one_cmpl_abs_nojump, expand_float): Likewise.
4875 * spu/spu.c (spu_expand_extv): Likewise.
4876 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
4877
4878 2011-04-29 Richard Guenther <rguenther@suse.de>
4879
4880 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
4881 for the remapped region number.
4882 * predict.c (build_predict_expr): Use integer_type_node for the
4883 predict kind.
4884 * fold-const.c (fold_binary_loc): Use integer_type_node for
4885 the shift amount. Use a proper type for the PLUS_EXPR operand.
4886
4887 2011-04-29 Michael Matz <matz@suse.de>
4888
4889 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
4890 other trees that just builtins.
4891 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
4892
4893 2011-04-29 Richard Guenther <rguenther@suse.de>
4894
4895 * tree-nested.c (get_trampoline_type): Use size_int.
4896 (get_nl_goto_field): Likewise.
4897 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
4898 for all indexes.
4899 (lower_eh_constructs_2): Likewise.
4900 (lower_resx): Likewise.
4901 (lower_eh_dispatch): Likewise.
4902 * tree-mudflap.c (mf_build_string): Use size_int.
4903 (mudflap_register_call): Use integer_type_node for the flag.
4904 (mudflap_enqueue_constant): Use size_int.
4905 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
4906 instead of rebuilding it.
4907
4908 2011-04-29 Richard Guenther <rguenther@suse.de>
4909
4910 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
4911 Handle OBJ_TYPE_REF.
4912 (find_func_aliases_for_call): Use it more consistently.
4913
4914 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
4915
4916 * haifa-sched.c (last_nondebug_scheduled_insn): New.
4917 (rank_for_schedule): Use it.
4918 (schedule_block): Set it.
4919
4920 2011-04-28 David Li <davidxl@google.com>
4921
4922 * tree.c (crc32_string): Use crc32_byte.
4923 (crc32_byte): New function.
4924 * tree.h (crc32_byte): New function.
4925 * gcov.c (read_graph_file): Handle new cfg_cksum.
4926 (read_count_file): Ditto.
4927 * profile.c (instrument_values): Ditto.
4928 (get_exec_counts): Ditto.
4929 (read_profile_edge_counts): Ditto.
4930 (compute_branch_probabilities): Ditto.
4931 (compute_value_histograms): Ditto.
4932 (branch_prob): Ditto.
4933 (end_branch_prob): Ditto.
4934 * coverage.c (read_counts_file): Ditto.
4935 (get_coverage_counts): Ditto.
4936 (tree_coverage_counter_addr): Ditto.
4937 (coverage_checksum_string): Ditto.
4938 (coverage_begin_output): Ditto.
4939 (coverage_end_function): Ditto.
4940 (build_fn_info_type): Ditto.
4941 (build_fn_info_value): Ditto.
4942 * libgcov.c (gcov_exit): Ditto.
4943 * gcov-dump.c (tag_function): Ditto.
4944 (compute_checksum): Remove.
4945
4946 2011-04-29 Alan Modra <amodra@gmail.com>
4947
4948 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
4949 unspec plus offset. Tidy macho code.
4950
4951 2011-04-29 Martin Jambor <mjambor@suse.cz>
4952
4953 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
4954 node instead of a decl. Update all callers.
4955 * cgraph.h: Update declaration.
4956
4957 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
4958
4959 PR tree-optimization/48765
4960 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
4961 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
4962 to indicate if loop aware SLP is being used. Scan the statements
4963 and update the vectorization factor according to the type of
4964 vectorization before statement analysis.
4965 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
4966 pass it to vect_analyze_loop_operations.
4967 (vectorizable_reduction): Set number of copies to 1 in case of pure
4968 SLP statement.
4969 * tree-vect-stmts.c (vectorizable_conversion,
4970 vectorizable_assignment, vectorizable_shift,
4971 vectorizable_operation, vectorizable_type_demotion,
4972 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
4973 Likewise.
4974 (vectorizable_condition): Move the check that it is not SLP
4975 vectorization before the number of copies check.
4976 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
4977 to vectorize the loop using SLP.
4978
4979 2011-04-28 Jakub Jelinek <jakub@redhat.com>
4980
4981 PR middle-end/48597
4982 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
4983 inline asm.
4984
4985 2011-04-28 Joseph Myers <joseph@codesourcery.com>
4986
4987 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
4988 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
4989 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
4990 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
4991 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
4992 linux*.h headers.
4993 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
4994 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4995 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4996 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4997 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4998 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
4999 REG_NAME.
5000 * config/i386/linux.h (REG_NAME): Don't define.
5001 * config/i386/linux64.h (REG_NAME): Don't define.
5002 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
5003 Undefine before defining.
5004
5005 2011-04-28 Jan Hubicka <jh@suse.cz>
5006
5007 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
5008 nonconstant_names array.
5009 (estimate_function_body_sizes): Build nonconstant_names array; handle
5010 BUILT_IN_CONSTANT_P.
5011
5012 2011-04-28 Richard Guenther <rguenther@suse.de>
5013
5014 PR bootstrap/48804
5015 Revert
5016 2011-04-28 Richard Guenther <rguenther@suse.de>
5017
5018 * tree-ssa-structalias.c (solve_constraints): Build succ graph
5019 as late as possible.
5020
5021 2011-04-28 Richard Guenther <rguenther@suse.de>
5022
5023 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
5024 (debug_constraint): Do it here.
5025 (dump_constraints): And here.
5026 (rewrite_constraints): And here.
5027 (dump_constraint_edge): Remove.
5028 (dump_constraint_graph): Rewrite to produce DOT output.
5029 (solve_constraints): Build succ graph as late as possible.
5030 Dump constraint graphs before and after solving.
5031
5032 2011-04-28 Richard Guenther <rguenther@suse.de>
5033
5034 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5035 New function split out from ...
5036 (find_func_aliases): ... here. Call it.
5037 (find_func_aliases_for_call): Likewise.
5038
5039 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
5040
5041 * internal-fn.h (internal_fn_name_array): Declare.
5042 (internal_fn_flags_array): Likewise.
5043
5044 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
5045
5046 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
5047 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
5048 Move from sse.md.
5049 (ssemodefsuffix): Remove.
5050 (ssevecmodesuffix): New mode attribute.
5051 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
5052 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
5053 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
5054 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
5055 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
5056 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
5057 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
5058 ssemodesuffix mode attribute.
5059 (float splitters): Use ssevecmodesuffix mode attribute.
5060 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
5061 (sseinsmode): Rename from avxvecmode.
5062 (avxsizesuffix): Rename from avxmodesuffix.
5063 (sseintvecmode): Rename from avxpermvecmode.
5064 (ssedoublevecmode): Rename from ssedoublesizemode.
5065 (ssehalfvecmode): Rename from avxhalfvecmode.
5066 (ssescalarmode): Rename from avxscalarmode.
5067 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
5068 templates for ssemodesuffix mode attribute.
5069 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
5070 mode attribute.
5071
5072 Adjust RTX patterns globally for renamed mode attributes.
5073
5074 2011-04-27 Jan Hubcika <jh@suse.cz>
5075
5076 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
5077 * ipa-inline-analysis.c: Include alloc-pool.h.
5078 (edge_predicate_pool): New.
5079 (trye_predicate_p): New function
5080 (false_predicate_p): New function.
5081 (add_clause): Sanity check that false clauses are "optimized";
5082 never add clauses to predicate that is already known to be false.
5083 (and_predicate): Use flase_predicate_p.
5084 (evaulate_predicate): Rename to ...
5085 (evaluate_predicate): ... this one; update all callers; assert
5086 that false is not listed among possible truths.
5087 (dump_predicate): Use true_predicate_p.
5088 (account_size_time): Use false_predicate_p.
5089 (evaulate_conditions_for_edge): Rename to ...
5090 (evaluate_conditions_for_edge) ... this one.
5091 (edge_set_predicate): New function.
5092 (inline_edge_duplication_hook): Duplicate edge predicates.
5093 (inline_edge_removal_hook): Free edge predicates.
5094 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
5095 (dump_inline_summary): Update.
5096 (estimate_function_body_sizes): Set edge predicates.
5097 (estimate_calls_size_and_time): Handle predicates.
5098 (estimate_callee_size_and_time): Update.
5099 (remap_predicate): Add toplev_predicate; update comment.
5100 (remap_edge_predicates): New function.
5101 (inline_merge_summary): Compute toplev predicate; update.
5102 (read_predicate): New function.
5103 (read_inline_edge_summary): Use it.
5104 (inline_read_section): Likewise.
5105 (write_predicate): New function.
5106 (write_inline_edge_summary): Use it.
5107 (inline_write_summary): Likewise.
5108 (inline_free_summary): Free alloc pool and edge summary vec.
5109
5110 2011-04-27 Richard Guenther <rguenther@suse.de>
5111
5112 * tree-ssa-structalias.c (changed_count): Remove.
5113 (changed): Use a bitmap.
5114 (unify_nodes): Adjust.
5115 (do_sd_constraint): Likewise.
5116 (do_ds_constraint): Likewise.
5117 (do_complex_constraint): Likewise.
5118 (solve_graph): Likewise.
5119
5120 2011-04-27 Jan Hubicka <jh@suse.cz>
5121
5122 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
5123
5124 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
5125
5126 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
5127 (avx_vperm2f128_*_operand): Ditto.
5128 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
5129 Use avx_vpermilp_parallel in insn condition.
5130 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
5131 Use avx_vperm2f128_parallel in insn condition.
5132
5133 2011-04-27 Richard Guenther <rguenther@suse.de>
5134
5135 * Makefile.in (tree-ssa-structalias.o): Remove
5136 gt-tree-ssa-structalias.h dependency.
5137 (GTFILES): Remove tree-ssa-structalias.c.
5138 * tree.c (allocate_decl_uid): New function.
5139 (make_node_stat): Use it.
5140 (copy_node_stat): Likewise.
5141 * tree.h (allocate_decl_uid): Declare.
5142 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
5143 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
5144 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
5145 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
5146 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
5147 (struct heapvar_map): Likewise.
5148 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
5149 heapvar_insert): Likewise.
5150 (make_heapvar_for): Rename to ...
5151 (make_heapvar): ... this. Simplify.
5152 (fake_var_decl_obstack): New global var.
5153 (build_fake_var_decl): New function.
5154 (make_constraint_from_heapvar): Adjust.
5155 (handle_lhs_call): Likewise.
5156 (create_function_info_for): Likewise.
5157 (intra_create_variable_infos): Likewise.
5158 (init_alias_vars): Allocate fake_var_decl_obstack.
5159 (init_alias_heapvars, delete_alias_heapvars): Remove.
5160 (compute_points_to_sets): Do not call init_alias_heapvars.
5161 (ipa_pta_execute): Likewise.
5162 (delete_points_to_sets): Free fake_var_decl_obstack.
5163
5164 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5165
5166 * config/spu/divmovti4.c (union qword_UTItype): New data type.
5167 (si_from_UTItype, si_to_UTItype): New functions.
5168 (__udivmodti4): Use them to implement type-punning.
5169 * config/spu/multi3.c (union qword_TItype): New data type.
5170 (si_from_TItype, si_to_TItype): New functions.
5171 (__multi3): Use them to implement type-punning.
5172
5173 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5174
5175 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
5176
5177 2011-04-27 Jan Hubicka <jh@suse.cz>
5178
5179 * ipa-prop.c (function_insertion_hook_holder): New holder.
5180 (ipa_add_new_function): New function.
5181 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
5182 Register/deregister holder.
5183
5184 2011-04-27 Richard Guenther <rguenther@suse.de>
5185
5186 PR tree-optimization/48772
5187 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
5188
5189 2011-04-27 Richard Guenther <rguenther@suse.de>
5190
5191 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
5192 TARGET_MEM_REF handling.
5193
5194 2011-04-27 Nick Clifton <nickc@redhat.com>
5195
5196 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
5197 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
5198 (REG_CLASS_NAMES): Likewise.
5199 (REG_CLASS_CONTENTS): Likewise.
5200 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
5201 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
5202 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
5203 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
5204 (EVEN_REGS): New macro. Alias for QUAD_REGS.
5205 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
5206 duplicate register classes.
5207 (frv_class_likely_spilled_p): Likewise.
5208 (frv_register_move_cost): Likewise.
5209
5210 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
5211 end of the regno_reg_class array.
5212
5213 2011-04-27 Jakub Jelinek <jakub@redhat.com>
5214
5215 PR c/48742
5216 * c-typeck.c (build_binary_op): Don't wrap arguments if
5217 int_operands is true.
5218
5219 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
5220
5221 PR target/48767
5222 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
5223 targetm.calls.must_pass_in_stack for void type.
5224
5225 2011-04-26 Jan Hubicka <jh@suse.cz>
5226
5227 * cgraphbuild.c (build_cgraph_edges): Update call
5228 of cgraph_create_edge and cgraph_create_indirect_edge.
5229 * cgraph.c (cgraph_create_edge_including_clones,
5230 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
5231 cgraph_update_edges_for_call_stmt_node): Do not take nest
5232 argument; do not initialize call_stmt_size/time.
5233 (dump_cgraph_node): Do not dump nest.
5234 (cgraph_clone_edge): Do not take loop_nest argument;
5235 do not propagate it; do not clone call_stmt_size/time.
5236 (cgraph_clone_node): Likewise.
5237 (cgraph_create_virtual_clone): Update.
5238 * cgraph.h (struct cgraph_edge): Remove
5239 call_stmt_size/call_stmt_time/loop_nest.
5240 (cgraph_create_edge, cgraph_create_indirect_edge,
5241 cgraph_create_edge_including_clones, cgraph_clone_node): Update
5242 prototype.
5243 * tree-emutls.c (gen_emutls_addr): Update.
5244 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
5245 loop_nest; handle indirect calls, too.
5246 (clone_inlined_nodes): Do not care about updating inline summaries.
5247 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
5248 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
5249 stream call_stmt_size/call_stmt_time/loop_nest.
5250 * ipa-inline.c (edge_badness): Update.
5251 (ipa_inline): dump summaries after inlining.
5252 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
5253 New.
5254 (inline_edge_summary): New function.
5255 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
5256 (inline_edge_removal_hook): Handle edge summaries.
5257 (inline_edge_duplication_hook): New hook.
5258 (inline_summary_alloc): Alloc hooks.
5259 (initialize_growth_caches): Do not register removal hooks.
5260 (free_growth_caches); Do not free removal hook.
5261 (dump_inline_edge_summary): New function.
5262 (dump_inline_summary): Use it.
5263 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
5264 (inline_update_callee_summaries): New function.
5265 (inline_merge_summary): Use it.
5266 (do_estimate_edge_time, do_estimate_edge_growth): Update.
5267 (read_inline_edge_summary): New function.
5268 (inline_read_section): Use it.
5269 (write_inline_edge_summary): New function.
5270 (inline_write_summary): Use it.
5271 (inline_free_summary): Free edge new holders.
5272 * tree-inline.c (copy_bb): Update.
5273
5274 2011-04-26 Jason Merrill <jason@redhat.com>
5275
5276 * tree-eh.c (lower_try_finally_switch): Create the label along with
5277 the CASE_LABEL_EXPR.
5278
5279 2011-04-26 David S. Miller <davem@davemloft.net>
5280 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5281
5282 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
5283 * configure: Regenerate.
5284
5285 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
5286
5287 PR target/48258
5288 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
5289 reduction.
5290 (VEC_reduc): New code iterator and splitters for vector reduction.
5291 (VEC_reduc_name): Ditto.
5292 (VEC_reduc_rtx): Ditto.
5293 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
5294 (reduc_<VEC_reduc_name>_v4sf): Ditto.
5295
5296 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
5297 support for extracting SF on VSX.
5298
5299 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
5300 generating xscvspdp.
5301 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
5302 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
5303 double add, minimum, maximum vector reduction.
5304 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
5305 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
5306 optimize double vector reduction.
5307 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
5308
5309 2011-04-26 Joseph Myers <joseph@codesourcery.com>
5310
5311 * config/fr30/fr30.h (inhibit_libc): Don't define.
5312 * config/m32r/m32r-protos.h: Correct comment.
5313 * config/v850/v850.h (GHS_default_section_names,
5314 GHS_current_section_names): Use tree, not union tree_node *.
5315
5316 2011-04-26 Xinliang David Li <davidxl@google.com>
5317
5318 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
5319 * c-family/c-opts.c (c_common_handle_option): Set
5320 warn_maybe_uninitialized.
5321 * opts.c (common_handle_option): Ditto.
5322 * common.opt: New option.
5323 * tree-ssa.c (warn_uninit): Add one more parameter.
5324 (warn_uninitialized_var): Pass warning code.
5325 * tree-flow.h: Interface change.
5326
5327 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5328
5329 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
5330 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
5331 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
5332
5333 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5334
5335 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
5336 * config/mips/mips.opt (mmips-tfile): Remove.
5337
5338 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
5339 mips-tdump reference to ...
5340 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
5341 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
5342 reference by Tru64 UNIX.
5343
5344 2011-04-26 Jakub Jelinek <jakub@redhat.com>
5345
5346 PR debug/48768
5347 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
5348 is error_mark_node, set value to NULL.
5349
5350 PR tree-optimization/48734
5351 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
5352 if return value from maybe_fold_*_comparsions isn't something
5353 the code is prepared to handle.
5354
5355 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
5356
5357 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
5358 mode check.
5359 (ext_QIreg_nomode_operands): Remove.
5360 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
5361 (*andsi_1): Ditto.
5362 (*andhi_1): Ditto.
5363
5364 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
5365
5366 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
5367
5368 2011-04-26 Richard Guenther <rguenther@suse.de>
5369
5370 * c-typeck.c (build_unary_op): Do not expand array-refs via
5371 pointer arithmetic. Only adjust qualifiers for function types.
5372
5373 2011-04-26 Richard Guenther <rguenther@suse.de>
5374
5375 PR middle-end/48694
5376 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
5377 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
5378 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
5379 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
5380
5381 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
5382
5383 * doc/extend.texi: Document __underlying_type.
5384
5385 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
5386
5387 * config/rs6000/titan.md (automata_option "progress"): Remove.
5388
5389 2011-04-25 Jeff Law <law@redhat.com>
5390
5391 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
5392
5393 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5394
5395 * system.h (ENUM_BITFIELD): Remove.
5396
5397 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
5398 Eric Botcazou <ebotcazou@adacore.com>
5399
5400 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
5401 for STORE_FLAG_VALUE==-1 case.
5402
5403 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
5404
5405 PR target/43804
5406 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
5407 LEGITIMATE_PIC_OPERAND_P.
5408
5409 2011-04-24 Jan Hubicka <jh@suse.cz>
5410
5411 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
5412 WPA hack.
5413 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
5414 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
5415 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
5416 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
5417 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
5418 Sanity check predicate length.
5419 (remap_predicate): Likewise; sanity check jump functions.
5420 (inline_read_section, inline_write_summary): Sanity check
5421 predicate length.
5422
5423 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5424
5425 PR other/48748
5426 * doc/extend.texi (Type Traits): Document __is_standard_layout,
5427 __is_literal_type, and __is_trivial; update throughout about
5428 possibly cv-qualified void types.
5429
5430 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
5431
5432 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
5433 testsuite and make it version agnostic.
5434
5435 2011-04-22 Jan Hubicka <jh@suse.cz>
5436
5437 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
5438
5439 2011-04-23 Jakub Jelinek <jakub@redhat.com>
5440
5441 PR c/48685
5442 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
5443 to VOID_TYPE even around MODIFY_EXPR.
5444
5445 2011-04-22 Mike Stump <mikestump@comcast.net>
5446
5447 * gensupport.c (read_md_rtx): Fix typo in comment.
5448 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
5449 comment.
5450
5451 2011-04-22 Jan Hubicka <jh@suse.cz>
5452
5453 * gengtype.c (open_base_files): Add ipa-inline.h include.
5454 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
5455 ipa-prop.c; update all uses.
5456 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
5457 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
5458 merge summary of inlined function into former caller.
5459 * ipa-inline.c (max_benefit): Remove.
5460 (edge_badness): Compensate for removal of benefits.
5461 (update_caller_keys): Use
5462 reset_node_growth_cache/reset_edge_growth_cache.
5463 (update_callee_keys): Likewise.
5464 (update_all_callee_keys): Likewise.
5465 (inline_small_functions): Do not collect max_benefit; do not reset
5466 estimated_growth; call free_growth_caches and initialize_growth_caches.
5467 * ipa-inline.h (struct condition, type clause_t, struct predicate,
5468 struct size_time_entry): New structures.
5469 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
5470 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
5471 and estimated_growth.
5472 (edge_growth_cache_entry): New structure.
5473 (node_growth_cache, edge_growth_cache): New global vars.
5474 (estimate_growth): Turn into inline.
5475 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
5476 initialize_growth_caches, free_growth_caches): Declare.
5477 (estimate_edge_growth): Rewrite.
5478 (estimate_edge_time): Implement as inline cache lookup.
5479 (reset_node_growth_cache, reset_edge_growth_cache): New inline
5480 functions.
5481 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
5482 (NUM_CONDITIONS): New constant.
5483 (predicate_conditions): New enum.
5484 (IS_NOT_CONSTANT): New constant.
5485 (edge_removal_hook_holder): New var.
5486 (node_growth_cache, edge_growth_cache): New global vars.
5487 (true_predicate, single_cond_predicate, false_predicate,
5488 not_inlined_predicate, add_condition, add_clause, and_predicates,
5489 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
5490 dump_clause, dump_predicate, account_size_time,
5491 evaulate_conditions_for_edge): New functions.
5492 (inline_summary_alloc): Move to heap.
5493 (inline_node_removal_hook): Clear condition and entry vectors.
5494 (inline_edge_removal_hook): New function.
5495 (initialize_growth_caches, free_growth_caches): New function.
5496 (dump_inline_summary): Update.
5497 (edge_execution_predicate): New function.
5498 (will_be_nonconstant_predicate): New function.
5499 (estimate_function_body_sizes): Compute BB and constantness predicates.
5500 (compute_inline_parameters): Do not clear estimated_growth.
5501 (estimate_edge_size_and_time): New function.
5502 (estimate_calls_size_and_time): New function.
5503 (estimate_callee_size_and_time): New function.
5504 (remap_predicate): New function.
5505 (inline_merge_summary): New function.
5506 (do_estimate_edge_time): New function based on...
5507 (estimate_edge_time): ... this one.
5508 (do_estimate_edge_growth): New function.
5509 (do_estimate_growth): New function based on....
5510 (estimate_growth): ... this one.
5511 (inline_analyze_function): Analyze after deciding on jump functions.
5512 (inline_read_section): New function.
5513 (inline_read_summary): Use it.
5514 (inline_write_summary): Write all the new data.
5515 * ipa-prop.c (ipa_get_param_decl_index): Export.
5516 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
5517 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
5518 Declare.
5519 (ipa_get_lattice): Move here from ipa-cp.c
5520 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
5521 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
5522 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
5523 cgraph_edge_inlinable_p): Remove.
5524 * cgraphunit.c: Include ipainline.h
5525 (cgraph_process_new_functions): Update call of
5526 compute_inline_parameters.
5527
5528 2011-04-22 Richard Guenther <rguenther@suse.de>
5529
5530 * tree.c (build_int_cst): Properly create canonicalized integer
5531 constants.
5532 (build_int_cst_type): Remove scary comments.
5533
5534 2011-04-22 Xinliang David Li <davidxl@google.com>
5535
5536 * toplev.c (process_options): Enable -Werror=coverage-mismatch
5537 by default when -Wno-error is not specified.
5538 * opts-global.c (decode_options): Remove call to
5539 control_warning_options.
5540
5541 2011-04-22 Jakub Jelinek <jakub@redhat.com>
5542
5543 PR tree-optimization/48717
5544 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
5545 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
5546
5547 2011-04-22 Joseph Myers <joseph@codesourcery.com>
5548
5549 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
5550 definition where used.
5551
5552 2011-04-22 Jakub Jelinek <jakub@redhat.com>
5553
5554 PR c/48716
5555 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
5556 TREE_STATIC variables declared inside of some OpenMP construct.
5557
5558 2011-04-22 Martin Jambor <mjambor@suse.cz>
5559
5560 PR middle-end/48585
5561 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
5562
5563 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
5564
5565 PR c/36750
5566 * c-typeck.c (pop_init_level): Do not warn about initializing
5567 with ` = {0}'.
5568
5569 2011-04-22 Alan Modra <amodra@gmail.com>
5570
5571 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
5572 when returning call_cookie.
5573 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
5574 pointers, to functions with no more vector args than the current
5575 function, and some non-local calls for ABI_V4.
5576 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
5577 sibcall_nonlocal_aix64): Combine to ..
5578 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
5579 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
5580 (sibcall_value_nonlocal_aix<mode>): ..likewise.
5581 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
5582 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
5583 operand.
5584 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
5585 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
5586 sibcall_value_symbolic_64): Delete.
5587
5588 2011-04-21 Xinliang David Li <davidxl@google.com>
5589
5590 * cgraph.h: Remove pid.
5591 * cgraph.c: Remove pid.
5592 * value-prof.c (init_node_map): New function.
5593 (del_node_map): New function.
5594 (find_func_by_funcdef_no): New function.
5595 (gimple_ic_transform): Call new function.
5596 * cgraphunit.c (cgraph_finalize_function): Remove pid.
5597 * function.c (get_last_funcdef_no): New function.
5598 * function.h (get_last_funcdef_no): New function.
5599 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
5600 to libgcov function.
5601 (tree-profiling): Call node map init and delete function.
5602
5603 2011-04-21 Ian Lance Taylor <iant@google.com>
5604
5605 * godump.c (go_format_type): Use exported Go name for anonymous
5606 field name.
5607
5608 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5609
5610 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
5611 Call builtin_function_type_list instead of builtin_function_type.
5612 (UNARY, BINARY, TRINARY, QUAD): Likewise.
5613
5614 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5615
5616 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
5617 build_function_type_list instead of build_function_type.
5618 Delete variable `endlink'.
5619
5620 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5621
5622 * config/s390/s390.c (s390_init_builtins): Call
5623 build_function_type_list instead of build_function_type.
5624
5625 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5626
5627 * config/ia64/ia64.c (ia64_init_builtins): Call
5628 build_function_type_list instead of builtin_function_type.
5629
5630 2011-04-21 Easwaran Raman <eraman@google.com>
5631
5632 * cfgexpand.c (stack_var): Remove OFFSET...
5633 (add_stack_var): ...and its reference here...
5634 (expand_stack_vars): ...and here.
5635 (stack_var_cmp): Sort by descending order of size.
5636 (partition_stack_vars): Change heuristic.
5637 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
5638 (dump_stack_var_partition): Add newline after each partition.
5639
5640 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
5641 Jeff Law <law@redhat.com>
5642
5643 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
5644 * gengtype.c (matching_file_name_substitute): Likewise.
5645
5646 2011-04-21 Richard Guenther <rguenther@suse.de>
5647
5648 PR lto/48703
5649 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
5650
5651 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
5652
5653 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
5654
5655 2011-04-21 Richard Guenther <rguenther@suse.de>
5656
5657 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
5658 file name.
5659
5660 2011-04-21 Richard Guenther <rguenther@suse.de>
5661
5662 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
5663 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
5664 Use DECL_P, not SSA_VAR_P.
5665 (ptr_derefs_may_alias_p): Likewise.
5666 (ptr_deref_may_alias_ref_p_1): Likewise.
5667 (decl_refs_may_alias_p): Likewise.
5668 (refs_may_alias_p_1): Likewise.
5669 (ref_maybe_used_by_call_p_1): Likewise.
5670 (call_may_clobber_ref_p_1): Likewise.
5671 (indirect_ref_may_alias_decl_p): Assume indirect refrences
5672 are either MEM_REF or TARGET_MEM_REF.
5673 (indirect_refs_may_alias_p): Likewise.
5674 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
5675 for MEM_EXPR of indirect calls.
5676
5677 2011-04-21 Tristan Gingold <gingold@adacore.com>
5678
5679 * vmsdbgout.c (write_srccorr): Compute file length from the string.
5680 (dst_file_info_struct): Remove flen field.
5681 (lookup_filename): Remove code that set flen field.
5682
5683 2011-04-21 Tristan Gingold <gingold@adacore.com>
5684
5685 * config/ia64/ia64.c (ia64_start_function): Add a guard.
5686
5687 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
5688
5689 PR target/48708
5690 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
5691 vec_extract and vec_concat for non-SSE4_1 targets.
5692
5693 2011-04-21 Richard Guenther <rguenther@suse.de>
5694
5695 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
5696 return statements.
5697
5698 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5699
5700 * config/i386/cygming.h (union tree_node, TREE): Don't define or
5701 undefine.
5702 (FILE): Don't undefine.
5703
5704 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5705
5706 * config/alpha/alpha.c (struct machine_function): Use rtx, not
5707 struct rtx_def *.
5708 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
5709 struct rtx_def *.
5710 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
5711 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
5712 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
5713 rtx_def *.
5714 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
5715 definitions where used.
5716 * config/microblaze/microblaze.h (struct microblaze_args): Use
5717 rtx, not struct rtx_def *.
5718 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
5719 rtx_def *.
5720 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
5721 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
5722 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
5723 not struct rtx_def *.
5724 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
5725 struct rtx_def *.
5726 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
5727 rtx_def *.
5728 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
5729
5730 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5731
5732 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
5733 operand_equal_p to compare DR_BASE_ADDRESSes.
5734 (vect_check_interleaving): Likewise.
5735
5736 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5737
5738 PR target/46329
5739 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
5740 for all Neon struct constants.
5741
5742 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5743
5744 * target.def (legitimate_constant_p): New hook.
5745 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
5746 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
5747 * doc/tm.texi: Regenerate.
5748 * hooks.h (hook_bool_mode_rtx_true): Declare.
5749 * hooks.c (hook_bool_mode_rtx_true): Define.
5750 * system.h (LEGITIMATE_CONSTANT_P): Poison.
5751 * calls.c (precompute_register_parameters): Replace uses of
5752 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
5753 (emit_library_call_value_1): Likewise.
5754 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
5755 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
5756 * ira-costs.c (scan_one_insn): Likewise.
5757 * recog.c (general_operand, immediate_operand): Likewise.
5758 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
5759 * reload1.c (init_eliminable_invariants): Likewise.
5760
5761 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
5762 mode argument.
5763 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
5764 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
5765 argument.
5766 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5767 * config/alpha/predicates.md (input_operand): Update call to
5768 alpha_legitimate_constant_p.
5769
5770 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
5771 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
5772 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
5773 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5774 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
5775 (arm_legitimate_constant_p): New functions.
5776 (arm_cannot_force_const_mem): Make static.
5777
5778 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
5779
5780 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
5781 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
5782 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
5783 instead of bfin_legitimate_constant_p.
5784 (bfin_legitimate_constant_p): Make static. Add a mode argument.
5785 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5786
5787 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
5788
5789 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
5790
5791 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
5792 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
5793 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5794 (frv_legitimate_constant_p): Make static. Add a mode argument.
5795
5796 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
5797 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
5798 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
5799
5800 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
5801 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
5802 * config/i386/i386.c (legitimate_constant_p): Rename to...
5803 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
5804 argument.
5805 (ix86_cannot_force_const_mem): Update accordingly.
5806 (ix86_legitimate_address_p): Likewise.
5807 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5808 * config/i386/i386.md: Update commentary.
5809
5810 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
5811 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
5812 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5813 (ia64_legitimate_constant_p): Make static. Add a mode argument.
5814
5815 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
5816
5817 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
5818 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
5819 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5820 (lm32_legitimate_constant_p): Make static. Add a mode argument.
5821
5822 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
5823 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
5824 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
5825
5826 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
5827 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5828 (m32r_legitimate_constant_p): New function.
5829
5830 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
5831 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
5832 LEGITIMATE_CONSTANT_P.
5833 (LEGITIMATE_CONSTANT_P): Delete.
5834 * config/m68k/m68k.c (m68k_expand_prologue): Call
5835 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
5836 (m68k_legitimate_constant_p): New function.
5837 * config/m68k/m68k.md: Update comments.
5838
5839 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
5840 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5841 (mcore_legitimate_constant_p): New function.
5842
5843 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
5844 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
5845 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
5846 Add a mode argument.
5847 (mep_legitimate_address): Update accordingly.
5848 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5849
5850 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
5851 Delete.
5852 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
5853 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
5854 static. Check OP's mode for VOIDmode.
5855 (microblaze_legitimate_constant_p): New function.
5856 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5857
5858 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
5859 * config/mips/mips.c (mips_legitimate_constant_p): New function.
5860 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
5861 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5862 * config/mips/predicates.md: Update comments.
5863
5864 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
5865 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
5866 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5867 (mmix_legitimate_constant_p): Make static, return a bool, and take
5868 a mode argument.
5869 (mmix_print_operand_address): Update accordingly.
5870
5871 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
5872 Delete.
5873 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
5874 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
5875 static. Add a mode argument.
5876 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5877
5878 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
5879
5880 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
5881 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5882 (pa_legitimate_constant_p): New function.
5883
5884 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
5885
5886 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
5887 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5888 (pdp11_legitimate_constant_p): New function.
5889
5890 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
5891 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5892 (rs6000_legitimate_constant_p): New function.
5893
5894 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
5895 (rx_legitimate_constant_p): ...this.
5896 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
5897 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
5898 (rx_legitimate_constant_p): ...this.
5899 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5900 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
5901
5902 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
5903 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
5904 * config/s390/s390.c (legitimate_constant_p): Rename to...
5905 (s390_legitimate_constant_p): ...this. Make static, return a bool,
5906 and add a mode argument.
5907 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5908
5909 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
5910
5911 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
5912 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5913 (sh_legitimate_constant_p): New function.
5914
5915 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
5916 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
5917 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5918 (legitimate_constant_p): Rename to...
5919 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
5920 argument.
5921 (constant_address_p): Update accordingly.
5922
5923 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
5924 argument and return a bool.
5925 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
5926 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5927 (spu_legitimate_constant_p): Add a mode argument and return a bool.
5928 (spu_rtx_costs): Update accordingly.
5929 * config/spu/predicates.md (vec_imm_operand): Likewise.
5930
5931 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
5932
5933 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
5934 * config/v850/v850.c (v850_legitimate_constant_p): New function.
5935 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5936
5937 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
5938 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
5939 * config/vax/vax.c (legitimate_constant_p): Likewise.
5940
5941 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
5942 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5943 (xtensa_legitimate_constant_p): New function.
5944
5945 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5946
5947 * target.def (cannot_force_const_mem): Add a mode argument.
5948 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
5949 * doc/tm.texi: Regenerate.
5950 * hooks.h (hook_bool_mode_rtx_false): Declare.
5951 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
5952 (hook_bool_mode_const_rtx_true): Likewise.
5953 (hook_bool_mode_rtx_false): New function.
5954 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
5955 to be non-VOID. Update call to cannot_force_const_mem.
5956 (find_reloads): Update accordingly.
5957 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
5958 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
5959 argument.
5960 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
5961 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
5962 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
5963 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
5964 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
5965 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
5966 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
5967 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5968 (m68k_cannot_force_const_mem): ...this new function.
5969 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
5970 argument.
5971 (mips_const_insns, mips_legitimize_const_move): Update calls.
5972 (mips_secondary_reload_class): Likewise.
5973 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5974 (pa_cannot_force_const_mem): ...this new function.
5975 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
5976 (rs6000_cannot_force_const_mem): ...this new function.
5977 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
5978 argument.
5979 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
5980 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
5981 to...
5982 (xtensa_cannot_force_const_mem): ...this new function.
5983
5984 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5985
5986 * config/mips/mips.c (mips16_build_function_stub): Call
5987 build_function_type_list instead of build_function_type.
5988 (mips16_build_call_stub): Likewise.
5989
5990 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5991
5992 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
5993 instead of build_function_type.
5994
5995 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5996
5997 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
5998 instead of build_function_type.
5999
6000 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
6001
6002 PR target/48678
6003 * config/i386/i386.md (insv): Change operand 0 constraint to
6004 "register_operand". Change operand 1 and 2 constraint to
6005 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
6006 * config/i386/sse.md (sse4_1_pinsrb): Export.
6007 (sse2_pinsrw): Ditto.
6008 (sse4_1_pinsrd): Ditto.
6009 (sse4_1_pinsrq): Ditto.
6010 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
6011 * config/i386/i386.c (ix86_expand_pinsr): New.
6012
6013 2011-04-20 Easwaran Raman <eraman@google.com>
6014
6015 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
6016 containing union type only with -fstrict-aliasing.
6017
6018 2011-04-20 Jim Meyering <meyering@redhat.com>
6019
6020 Remove useless if-before-free tests.
6021 * calls.c (expand_call, save_area): Likewise.
6022 * cfgcleanup.c (try_forward_edges): Likewise.
6023 * collect2.c (collect_execute): Likewise.
6024 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
6025 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
6026 * coverage.c (coverage_checksum_string): Likewise.
6027 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
6028 * cselib.c (cselib_init): Likewise.
6029 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
6030 (df_set_clean_cfg): Likewise.
6031 * function.c (free_after_compilation): Likewise.
6032 * gcc.c (do_spec_1, main): Likewise.
6033 * gcov.c (create_file_names): Likewise.
6034 * gensupport.c (identify_predicable_attribute): Likewise.
6035 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
6036 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
6037 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
6038 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
6039 * ipa-pure-const.c (local_pure_const): Likewise.
6040 * ipa-reference.c (propagate): Likewise.
6041 * ira-costs.c (free_ira_costs): Likewise.
6042 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
6043 * matrix-reorg.c (mat_free): Likewise.
6044 * prefix.c (get_key_value): Likewise.
6045 * profile.c (compute_value_histograms): Likewise.
6046 * reload1.c (free_reg_equiv): Likewise.
6047 * sched-deps.c (free_deps): Likewise.
6048 * sel-sched-ir.c (fence_clear): Likewise.
6049 * sese.c (set_rename, if_region_set_false_region): Likewise.
6050 * tree-data-ref.c (free_rdg): Likewise.
6051 * tree-eh.c (lower_try_finally): Likewise.
6052 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
6053 * tree-ssa-live.c (delete_var_map): Likewise.
6054 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
6055 * tree-ssa-pre.c (phi_trans_add): Likewise.
6056
6057 2011-04-20 Jakub Jelinek <jakub@redhat.com>
6058
6059 PR tree-optimization/48611
6060 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
6061 beyond ERT_MUST_NOT_THROW region.
6062
6063 2011-04-20 Catherine Moore <clm@codesourcery.com>
6064
6065 * config/mips/mips.opt (mfix-24k): New.
6066 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
6067 * config/mips/mips.md (length): Increase by 4 for stores if
6068 fixing 24K errata.
6069 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
6070 all noreorder if fixing 24K errata.
6071 * doc/invoke.texi: Document mfix-24k.
6072
6073 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
6074
6075 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
6076 quad-word modes, reduce to 9-bit index range when above 1016 limit.
6077
6078 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
6079
6080 * config/arm/arm.c (arm_gen_constant): Move movw support ....
6081 (const_ok_for_op): ... to here.
6082
6083 2011-04-20 Kai Tietz <ktietz@redhat.com>
6084
6085 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
6086 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
6087
6088 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
6089
6090 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
6091
6092 2011-04-20 Richard Guenther <rguenther@suse.de>
6093
6094 PR tree-optimization/47892
6095 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
6096 are if-convertible.
6097
6098 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
6099
6100 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
6101
6102 2011-04-20 Tristan Gingold <gingold@adacore.com>
6103
6104 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
6105
6106 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
6107
6108 PR target/18145
6109
6110 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
6111 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
6112 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
6113 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
6114 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
6115
6116 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
6117 New prototype.
6118
6119 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
6120 (avr_asm_named_section, avr_asm_output_aligned_common,
6121 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
6122 New functions to update...
6123 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
6124 (avr_asm_init_sections): Overwrite section callbacks for
6125 data_section, bss_section.
6126 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
6127 from here to...
6128 (avr_file_end): ...here.
6129
6130 2011-04-20 Richard Guenther <rguenther@suse.de>
6131
6132 PR middle-end/48695
6133 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
6134 objects and types here. Adjust for their offset before comparing.
6135
6136 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
6137
6138 * tree-vect-stmts.c (vectorizable_store): Only chain one related
6139 statement per copy.
6140
6141 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
6142
6143 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
6144 (GIMPLE_H): Include $(INTERNAL_FN_H).
6145 (OBJS-common): Add internal-fn.o.
6146 (internal-fn.o): New rule.
6147 * internal-fn.def: New file.
6148 * internal-fn.h: Likewise.
6149 * internal-fn.c: Likewise.
6150 * gimple.h: Include internal-fn.h.
6151 (GF_CALL_INTERNAL): New gf_mask.
6152 (gimple_statement_call): Put fntype into a union with a new
6153 internal_fn field.
6154 (gimple_build_call_internal): Declare.
6155 (gimple_build_call_internal_vec): Likewise.
6156 (gimple_call_same_target_p): Likewise.
6157 (gimple_call_internal_p): New function.
6158 (gimple_call_internal_fn): Likewise.
6159 (gimple_call_fntype): Return null for internal calls.
6160 (gimple_call_set_fntype): Assert that the function is not internal.
6161 (gimple_call_set_fn): Likewise.
6162 (gimple_call_set_fndecl): Likewise.
6163 (gimple_call_set_internal_fn): New function.
6164 (gimple_call_addr_fndecl): Handle null functions.
6165 (gimple_call_return_type): Likewise null types.
6166 * gimple.c (gimple_build_call_internal_1): New function.
6167 (gimple_build_call_internal): Likewise.
6168 (gimple_build_call_internal_vec): Likewise.
6169 (gimple_call_same_target_p): Likewise.
6170 (gimple_call_flags): Handle calls to internal functions.
6171 (gimple_call_fnspec): New function.
6172 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
6173 (gimple_has_side_effects): Handle null functions.
6174 (gimple_rhs_has_side_effects): Likewise.
6175 (gimple_call_copy_skip_args): Handle calls to internal functions.
6176 * cfgexpand.c (expand_call_stmt): Likewise.
6177 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
6178 * gimple-fold.c (gimple_fold_call): Handle null functions.
6179 (gimple_fold_stmt_to_constant_1): Don't fold
6180 calls to internal functions.
6181 * gimple-low.c (gimple_check_call_args): Handle calls to internal
6182 functions.
6183 * gimple-pretty-print.c (dump_gimple_call): Likewise.
6184 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
6185 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
6186 (do_warn_unused_result): Likewise.
6187 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
6188 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
6189 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
6190 the target of a call.
6191 (initialize_hash_element): Update accordingly.
6192 (hashable_expr_equal_p): Use gimple_call_same_target_p.
6193 (iterative_hash_hashable_expr): Handle calls to internal functions.
6194 (print_expr_hash_elt): Likewise.
6195 * tree-ssa-pre.c (can_value_number_call): Likewise.
6196 (eliminate): Handle null functions.
6197 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
6198 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
6199 (find_func_aliases): Likewise.
6200 * value-prof.c (gimple_ic_transform): Likewise.
6201 (gimple_indirect_call_to_profile): Likewise.
6202 * lto-streamer-in.c (input_gimple_stmt): Likewise.
6203 * lto-streamer-out.c (output_gimple_stmt): Likewise.
6204
6205 2011-04-19 Jan Hubicka <jh@suse.cz>
6206
6207 * ipa-inline-transform.c (save_inline_function_body): Add comments.
6208 * ipa-inline.c (inline_small_functions): Compute summaries first,
6209 populate heap later.
6210
6211 2011-04-19 Jan Hubicka <jh@suse.cz>
6212
6213 * cgraph.h (save_inline_function_body): Remove.
6214 * ipa-inline-transform.c: New file, broke out of...
6215 * ipa-inline.c: ... this one; Update toplevel comment.
6216 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
6217 make global.
6218 (update_noncloned_frequencies): Move to ipa-inline-transform.c
6219 (cgraph_mark_inline_edge): Rename to inline_call; move to
6220 ipa-inline-transform.c.
6221 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
6222 move to ipa-inline-transform.c
6223 (recursive_inlining, inline_small_functions, flatten_function,
6224 ipa_inline, inline_always_inline_functions,
6225 early_inline_small_functions): Update.
6226 (inline_transform): Move to ipa-inline-transform.c.
6227 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
6228 Declare.
6229 * Makefile.in (ipa-inline-transform.o): New file.
6230 * cgraphunit.c (save_inline_function_body): Move to
6231 ipa-inline-transform.c
6232
6233 2011-04-19 DJ Delorie <dj@redhat.com>
6234
6235 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
6236 registers if we already know there aren't any.
6237 (m32c_emit_epilogue): Don't emit a barrier here.
6238 (m32c_emit_eh_epilogue): Likewise.
6239 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
6240 operands at expand time.
6241 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
6242 int" wchar type.
6243 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
6244 duplicates. Provide aliases instead.
6245 * config/m32c/prologue.md (eh_return): Emit a barrier here.
6246 (eh_epilogue): Add a "(return)" here as a hint to other parts of
6247 the compiler.
6248
6249 2011-04-19 Anatoly Sokolov <aesok@post.ru>
6250
6251 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
6252 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
6253 (general_or_i64_p, sparc_register_move_cost): New function.
6254
6255 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6256
6257 * doc/install.texi (Configuration, --enable-threads): Remove mach.
6258 Add lynx, mipssde. Sort table.
6259
6260 2011-04-19 Xinliang David Li <davidxl@google.com>
6261
6262 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
6263 not negative.
6264
6265 2011-04-19 Jakub Jelinek <jakub@redhat.com>
6266
6267 PR target/48678
6268 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
6269 is a SUBREG with non-MODE_INT mode inside of it.
6270
6271 2011-04-19 Martin Jambor <mjambor@suse.cz>
6272
6273 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
6274 also according to actual contants.
6275 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
6276 (gimple_fold_call): Use it.
6277 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
6278
6279 2011-04-19 Martin Jambor <mjambor@suse.cz>
6280
6281 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
6282 non-pointer assignments.
6283
6284 2011-04-19 Martin Jambor <mjambor@suse.cz>
6285
6286 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
6287 account anc_offset and otr_type from the indirect edge info.
6288 * ipa-prop.c (get_ancestor_addr_info): New function.
6289 (compute_complex_ancestor_jump_func): Assignment analysis moved to
6290 get_ancestor_addr_info, call it.
6291 (ipa_note_param_call): Do not initialize information about polymorphic
6292 calls, return the indirect call graph edge. Remove the last
6293 parameter, adjust all callers.
6294 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
6295 parameters. Initialize polymorphic information in the indirect edge.
6296
6297 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
6298
6299 PR lto/48148
6300 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
6301 the types if they have different enumeration identifiers.
6302
6303 2011-04-19 Jan Hubicka <jh@suse.cz>
6304
6305 * cgraph.h (cgraph_optimize_for_size_p): Declare.
6306 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
6307 * predict.c (cgraph_optimize_for_size_p): Break out from ...
6308 (optimize_function_for_size_p) ... here.
6309
6310 2011-04-19 Richard Guenther <rguenther@suse.de>
6311
6312 PR lto/48207
6313 * tree.c (free_lang_data): Do not reset the decl-assembler-name
6314 langhook.
6315
6316 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
6317
6318 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
6319 if DECL_NO_INLINE_WARNING_P is set on the function.
6320
6321 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
6322
6323 PR fortran/47976
6324 * reload1.c (inc_for_reload): Return void. All callers changed.
6325 (emit_input_reload_insns): Don't try to delete previous output
6326 reloads to a register, or record spill_reg_store for autoincs.
6327
6328 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
6329
6330 * gengtype.h: Updated copyright year.
6331 (struct input_file_st): Add inpisplugin field.
6332 (type_fileloc): New function.
6333 * gengtype.c
6334 (write_typed_struct_alloc_def): Add gcc_assert.
6335 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
6336 (write_typed_alloc_defns): Don't output for plugin files.
6337 (input_file_by_name): Clear inpisplugin field.
6338 (main): Set inpisplugin field for plugin files.
6339
6340 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
6341
6342 * gengtype-state.c (string_eq): New.
6343 (read_state): Use string_eq instead of strcmp when creating the
6344 state_ident_tab.
6345
6346 2011-04-19 Wei Guozhi <carrot@google.com>
6347
6348 PR target/47855
6349 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
6350 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
6351 linkage.
6352 * config/arm/constraints.md (Uu): New constraint.
6353 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
6354
6355 2011-04-19 Tristan Gingold <gingold@adacore.com>
6356
6357 * config.gcc (-*-*-*vms): Added.
6358 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
6359 definitions moved.
6360 * config/vms/vms-ld.c: New file.
6361 * config/vms/vms-ar.c: New file.
6362 * config/vms/t-vmsnative: New file.
6363
6364 2011-04-18 Xinliang David Li <davidxl@google.com>
6365
6366 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
6367
6368 2011-04-18 Jakub Jelinek <jakub@redhat.com>
6369
6370 PR middle-end/48661
6371 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
6372 if TREE_TYPE (v) is non-NULL.
6373
6374 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
6375 gimple_get_virt_mehtod_for_binfo.
6376 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
6377 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
6378 callers.
6379 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
6380
6381 2011-04-18 Michael Matz <matz@suse.de>
6382 Steve Ellcey <sje@cup.hp.com>
6383
6384 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
6385 use its mode as source mode if it isn't VOIDmode.
6386
6387 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
6388
6389 * doc/passes.texi: Fill crossref nodes.
6390
6391 2011-04-18 Jim Meyering <meyering@redhat.com>
6392
6393 Fix doubled-word typos in comments and strings
6394 * config/alpha/vms-unwind.h: s/for for/for/
6395 * config/arm/unwind-arm.h: Likewise.
6396 * config/microblaze/microblaze.c: Likewise.
6397 * config/sh/constraints.md: s/in in/in/
6398 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
6399
6400 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
6401
6402 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
6403 (AVX_FLOAT_MODE_P): Ditto.
6404 (AVX128_VEC_FLOAT_MODE_P): Ditto.
6405 (AVX256_VEC_FLOAT_MODE_P): Ditto.
6406 (AVX_VEC_FLOAT_MODE_P): Ditto.
6407 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
6408 (UNSPEC_MASKSTORE): Ditto.
6409 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
6410 Merge from <sse>_movmsk<ssemodesuffix> and
6411 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
6412 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
6413 iterator.
6414 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
6415 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
6416 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
6417
6418 2011-04-18 Jan Hubicka <jh@suse.cz>
6419
6420 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
6421
6422 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
6423 (want_inline_function_called_once_p): Break out the logic from
6424 ipa_inline.
6425 (edge_badness): Ensure that profile is not misupdated.
6426 (lookup_recursive_calls): Prioritize by call frequencies.
6427 (inline_small_functions): Move program size estimates here;
6428 actually process whole queue even when unit growth has been
6429 met. (to properly compute inline_failed reasons and for the
6430 case unit size decrease.) Revisit comments on recursive inlining.
6431 (ipa_inline): Remove unit summary code; first inline hot calls
6432 of functions called once, cold calls next.
6433 (order, nnodes): Remove unused variables.
6434 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
6435 (GTFILES): Remove ipa-inline.c
6436 * sel-sched.c (fill_insns): Silence uninitialized var warning.
6437
6438 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
6439
6440 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
6441
6442 2011-04-18 Jie Zhang <jie@codesourcery.com>
6443 Richard Earnshaw <rearnsha@arm.com>
6444
6445 * arm.c (neon_builtin_type_bits): Remove.
6446 (typedef enum neon_builtin_mode): New.
6447 (T_MAX): Don't define.
6448 (typedef enum neon_builtin_datum): Remove bits, codes[],
6449 num_vars and base_fcode. Add mode, code and fcode.
6450 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
6451 VAR10): Change accordingly.
6452 (neon_builtin_data[]): Change accordingly
6453 (arm_init_neon_builtins): Change accordingly.
6454 (neon_builtin_compare): Remove.
6455 (locate_neon_builtin_icode): Remove.
6456 (arm_expand_neon_builtin): Change accordingly.
6457
6458 * arm.h (enum arm_builtins): Move to ...
6459 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
6460
6461 * arm.c (arm_builtin_decl): Declare.
6462 (TARGET_BUILTIN_DECL): Define.
6463 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
6464 (arm_builtin_decls[]): New.
6465 (arm_init_neon_builtins): Store builtin declarations in
6466 arm_builtin_decls[].
6467 (arm_init_tls_builtins): Likewise.
6468 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
6469 (arm_builtin_decl): New.
6470
6471 2011-04-18 Richard Guenther <rguenther@suse.de>
6472
6473 * tree.c (upper_bound_in_type): Build properly canonicalized
6474 INTEGER_CSTs.
6475 (lower_bound_in_type): Likewise.
6476
6477 2011-04-18 Richard Guenther <rguenther@suse.de>
6478
6479 * gimple.h (gimple_call_addr_fndecl): New function.
6480 (gimple_call_fndecl): Use it.
6481 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
6482 for direct calls.
6483 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
6484 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
6485
6486 2011-04-18 Richard Guenther <rguenther@suse.de>
6487
6488 PR middle-end/48650
6489 * tree.c (build_string): STRING_CST is now derived from tree_typed.
6490
6491 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
6492
6493 PR lto/48492
6494 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
6495 DECL_IN_CONSTANT_POOL without RTL.
6496
6497 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
6498 Ira Rosen <ira.rosen@linaro.org>
6499
6500 PR target/48252
6501 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
6502 to match neon_vzip/vuzp/vtrn_internal.
6503 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
6504 outputs explicitly dependent on both inputs.
6505 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
6506
6507 2011-04-18 Jakub Jelinek <jakub@redhat.com>
6508
6509 PR tree-optimization/48616
6510 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
6511 whether the shift is by scalar or vector based on whether all SLP
6512 scalar stmts have the same rhs.
6513
6514 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
6515
6516 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
6517 memory operands.
6518
6519 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
6520
6521 PR target/43700
6522 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
6523 registers.
6524
6525 2011-04-17 Jan Hubicka <jh@suse.cz>
6526
6527 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
6528 * cgrpahunit.c (cgraph_finalize_function): Do not set
6529 finalized_by_frontend.
6530 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6531 finalized_by_frontend.
6532
6533 2011-04-17 Jan Hubicka <jh@suse.cz>
6534
6535 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
6536 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
6537 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
6538 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
6539 method.
6540 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
6541 gimple-fold.c
6542 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
6543
6544 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
6545
6546 PR lto/48538
6547 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
6548 is non-null before accessing it.
6549 (input_cgraph): Remove trailing spaces.
6550
6551 2011-04-17 Revital Eres <revital.eres@linaro.org>
6552
6553 * params.def (sms-min-sc): New param flag.
6554 * modulo-sched.c (sms_schedule): Use it.
6555 * doc/invoke.texi (sms-min-sc): Document it.
6556
6557 2011-04-17 Jan Hubicka <jh@suse.cz>
6558
6559 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
6560 present, also set gimple_call_set_cannot_inline.
6561 * ipa-inline.c: Update toplevel comment.
6562 (MAX_TIME): Remove.
6563 (cgraph_clone_inlined_nodes): Fix linebreaks.
6564 (cgraph_check_inline_limits): Restructure to ...
6565 (caller_growth_limits): ... this one; be more tolerant
6566 on growth in nested inline chains; add explanatory comment;
6567 fix stack accounting thinko introduced by previous patch.
6568 (cgraph_default_inline_p): Remove.
6569 (report_inline_failed_reason): New function.
6570 (can_inline_edge_p): New function.
6571 (can_early_inline_edge_p): New function.
6572 (leaf_node_p): Move upwards in file.
6573 (want_early_inline_function_p): New function.
6574 (want_inline_small_function_p): New function.
6575 (want_inline_self_recursive_call_p): New function.
6576 (cgraph_edge_badness): Rename to ...
6577 (edge_badness) ... this one; fix linebreaks.
6578 (update_edge_key): Update call of edge_baddness; add
6579 detailed dump about queue updates.
6580 (update_caller_keys): Use can_inline_edge_p and
6581 want_inline_small_function_p.
6582 (cgraph_decide_recursive_inlining): Rename to...
6583 (recursive_inlining): Use can_inline_edge_p and
6584 want_inline_self_recursive_call_p; simplify and remove no longer
6585 valid FIXME.
6586 (cgraph_set_inline_failed): Remove.
6587 (add_new_edges_to_heap): Use can_inline_edge_p and
6588 want_inline_small_function_p.
6589 (cgraph_decide_inlining_of_small_functions): Rename to ...
6590 (inline_small_functions): ... this one; cleanup; use
6591 can/want predicates; cleanup debug ouput; work edges till fibheap
6592 is exhausted and do not stop once unit growth is reached; remove
6593 later loop processing remaining edges.
6594 (cgraph_flatten): Rename to ...
6595 (flatten_function): ... this one; use can_inline_edge_p
6596 and can_early_inline_edge_p predicates.
6597 (cgraph_decide_inlining): Rename to ...
6598 (ipa_inline): ... this one; remove unreachable nodes before
6599 inlining functions called once; simplify the pass.
6600 (cgraph_perform_always_inlining): Rename to ...
6601 (inline_always_inline_functions): ... this one; use
6602 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
6603 (cgraph_decide_inlining_incrementally): Rename to ...
6604 (early_inline_small_functions): ... this one; simplify
6605 using new predicates; cleanup; make dumps prettier.
6606 (cgraph_early_inlining): Rename to ...
6607 (early_inliner): newer inline regular functions into always-inlines;
6608 fix updating of call stmt summaries.
6609 (pass_early_inline): Update for new names.
6610 (inline_transform): Fix formating.
6611 (gate_cgraph_decide_inlining): Rename to ...
6612 (pass_ipa_inline): ... this one.
6613 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
6614 * ipa-inline-analysis.c (dump_inline_summary): Update.
6615 (compute_inline_parameters): Do not compute disregard_inline_limits;
6616 look for mismatching arguments.
6617 (estimate_growth): Fix handlig of non-trivial self recursion.
6618 (inline_read_summary): Do not read info->disregard_inline_limits.
6619 (inline_write_summary): Do not write info->disregard_inline_limits.
6620 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
6621 and move all checks into can_inline_edge_p predicate; re-enable code
6622 comparing optimization levels.
6623 (expand_call_inline): Do not test inline_forbidden_into_p.
6624 * Makefile.in (ipa-inline.o): Update arguments.
6625
6626 2011-04-17 Revital Eres <revital.eres@linaro.org>
6627
6628 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
6629
6630 2011-04-17 Revital Eres <revital.eres@linaro.org>
6631
6632 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
6633
6634 2011-04-17 Michael Matz <matz@suse.de>
6635
6636 PR tree-optimization/48622
6637 PR lto/48645
6638 * ipa-inline-analysis.c (inline_read_summary): Read size/time
6639 in same order as they're written.
6640
6641 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6642
6643 * config/pa/predicates.md: Reorganize and simplify predicates.
6644 Eliminate duplicate code checks.
6645 (arith_operand): Rename to arith14_operand
6646 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
6647 * config/pa/pa.md: Use renamed operands.
6648 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
6649 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
6650 arith11_operand, adddi3_operand, indexed_memory_operand,
6651 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
6652 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
6653 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
6654 move_dest_operand, move_src_operand, prefetch_cc_operand,
6655 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
6656 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
6657 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
6658 div_operand, int5_operand, movb_comparison_operator,
6659 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
6660 arith_double_operand, ireg_operand, lhs_lshift_operand,
6661 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
6662 integer_store_memory_operand): Likewise.
6663 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
6664 (integer_store_memory_operand, read_only_operand,
6665 function_label_operand, borx_reg_operand,
6666 non_hard_reg_operand): Likewise.
6667 (eq_neq_comparison_operator): Delete unused operator.
6668 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
6669 function_label_operand.
6670 (emit_move_sequence): Likewise.
6671
6672 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
6673
6674 * config/i386/sse.md (sseunpackmode): New mode attribute.
6675 (ssepackmode): Ditto.
6676 (vec_pack_trunc_<mode>): Macroize expander from
6677 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
6678 (vec_unpacks_lo_<mode>): Macroize expander from
6679 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6680 (vec_unpacks_hi_<mode>): Macroize expander from
6681 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6682 (vec_unpacku_lo_<mode>): Macroize expander from
6683 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6684 (vec_unpacku_hi_<mode>): Macroize expander from
6685 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6686 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
6687 ix86_expand_sse4_unpack.
6688 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
6689
6690 2011-04-16 Jan Hubicka <jh@suse.cz>
6691
6692 * cgraphbuild.c: Include ipa-inline.h.
6693 (reset_inline_failed): Use initialize_inline_failed.
6694 * cgraph.c: Include ipa-inline.h.
6695 (cgraph_create_node_1): Do not initialize estimated_growth.
6696 (initialize_inline_failed): More to ipa-inline-analysis.c
6697 (dump_cgraph_node): Do not dump inline flags.
6698 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
6699 and disregard_inline_limits flags.
6700 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
6701 time, size, estimated_growth.
6702 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
6703 Update.
6704 * cgraphunit.c (cgraph_decide_is_function_needed): Use
6705 DECL_DISREGARD_INLINE_LIMITS.
6706 (cgraph_analyze_function): Do not initialize
6707 node->local.disregard_inline_limits.
6708 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6709 inlinable, versionable and disregard_inline_limits.
6710 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
6711 cgraph_check_inline_limits, cgraph_default_inline_p,
6712 cgraph_edge_badness, update_caller_keys, update_callee_keys,
6713 add_new_edges_to_heap): Update.
6714 (cgraph_decide_inlining_of_small_function): Update; set
6715 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
6716 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
6717 cgraph_decide_inlining_incrementally): Update.
6718 * ipa-inline.h (inline_summary): Add inlinable, versionable,
6719 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
6720 time, size and estimated_growth parameters.
6721 (estimate_edge_growth): Update.
6722 (initialize_inline_failed): Declare.
6723 * ipa-split.c: Include ipa-inline.h
6724 (execute_split_functions): Update.
6725 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
6726 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
6727 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
6728 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
6729 estimated_growth to INT_MIN.
6730 (inline_node_duplication_hook): Likewise.
6731 (dump_inline_summary): Dump new fields.
6732 (compute_inline_parameters): Update.
6733 (estimate_edge_time, estimate_time_after_inlining,
6734 estimate_size_after_inlining, estimate_growth, inline_read_summary,
6735 inline_write_summary):
6736 (initialize_inline_failed): Move here from cgraph.c.
6737 * tree-sra.c: Include ipa-inline.h.
6738 (ipa_sra_preliminary_function_checks): Update.
6739 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
6740 ipa-inline.h.
6741
6742 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
6743
6744 * config/i386/sse.md (V16): New mode iterator.
6745 (VI1, VI8): Ditto.
6746 (AVXMODEQI, AVXMODEDI): Remove.
6747 (sse2, sse3): New mode attribute.
6748 (mov<mode>): Use V16 mode iterator.
6749 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
6750 (push<mode>1): Use V16 mode iterator.
6751 (movmisalign<mode>): Ditto.
6752 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6753 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
6754 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6755 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
6756 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
6757 avx_movdqu<avxmodesuffix>.
6758 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
6759 *avx_movdqu<avxmodesuffix>.
6760 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
6761 avx_lddqu<avxmodesuffix>.
6762 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
6763 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
6764 avx_movnt<AVXMODEDI:mode>.
6765 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
6766 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
6767
6768 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
6769
6770 PR target/48629
6771 * haifa-sched.c (prune_ready_list, schedule_block): Use
6772 sched_pressure_p rather than flag_sched_pressure.
6773
6774 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
6775
6776 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6777 cgraph_get_node instead of cgraph_get_create_node.
6778
6779 2011-04-15 Jakub Jelinek <jakub@redhat.com>
6780
6781 * cfgexpand.c (expand_debug_expr): Use
6782 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
6783
6784 2011-04-15 Michael Matz <matz@suse.de>
6785
6786 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
6787 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
6788 * function.c (gimplify_parameters): Ditto.
6789 * gimplify.c (gimplify_vla_decl): Ditto.
6790
6791 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
6792 (gimple_call_set_alloca_for_var): New inline function.
6793 (gimple_call_alloca_for_var_p): Ditto.
6794 * gimple.c (gimple_build_call_from_tree): Remember
6795 CALL_ALLOCA_FOR_VAR_P state.
6796 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
6797
6798 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
6799 calls if they were for VLA objects.
6800
6801 2011-04-15 Martin Jambor <mjambor@suse.cz>
6802
6803 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
6804 of ADR_EXPRs.
6805
6806 2011-04-15 Martin Jambor <mjambor@suse.cz>
6807
6808 PR middle-end/48601
6809 * tree-emutls.c (lower_emutls_function_body): Call
6810 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
6811 result is non-NULL.
6812
6813 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
6814
6815 * c-decl.c (detect_field_duplicates): Call
6816 objc_detect_field_duplicates instead of objc_get_interface_ivars.
6817
6818 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
6819
6820 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
6821 * gimple.c (gimple_asm_clobbers_memory_p): Define.
6822 * ipa-pure-const.c (check_stmt): Call it.
6823 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
6824
6825 2011-04-15 Richard Guenther <rguenther@suse.de>
6826
6827 PR tree-optimization/48290
6828 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
6829 Properly decide inhibiting propagation based on the valueized
6830 operand. Do loop-closed SSA form preserving here ...
6831 (init_copy_prop): ... not here.
6832
6833 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
6834
6835 PR target/48612
6836 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
6837 (*ieee_smax<mode>3): Likewise.
6838
6839 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6840
6841 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
6842 Replace match_operand with match_dup for the third operand in
6843 these expanders.
6844
6845 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
6846
6847 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
6848 to track processing of conditionals. Update all callers.
6849 (try_combine, simplify_if_then_else): Update.
6850
6851 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
6852
6853 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
6854 -fsched-pressure.
6855
6856 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
6857
6858 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
6859 instead of match_operand for operand 3.
6860
6861 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
6862
6863 * recog.h (insn_operand_data): Add an "allows_mem" field.
6864 * genoutput.c (output_operand_data): Initialize it.
6865 * optabs.c (maybe_legitimize_operand_same_code): New function.
6866 (maybe_legitimize_operand): Use it when matching the original
6867 op->value.
6868
6869 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6870
6871 * gimplify.c: Fix issues in comments throughout.
6872 (voidify_wrapper_expr): Fix long line.
6873 (build_stack_save_restore): Likewise.
6874 (gimplify_loop_expr): Likewise.
6875 (gimplify_compound_lval): Likewise.
6876 (gimplify_init_ctor_eval): Likewise.
6877 (gimplify_modify_expr_rhs): Likewise.
6878 (omp_notice_threadprivate_variable): Likewise.
6879
6880 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6881
6882 * cfgexpand.c (expand_call_stmt): Convert the function type to the
6883 original one if this is not a builtin function.
6884
6885 2011-04-14 Jakub Jelinek <jakub@redhat.com>
6886
6887 PR target/48605
6888 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
6889 offset it as needed based on top 2 bits in operands[3], change
6890 MEM mode to SFmode and mask those 2 bits away from operands[3].
6891
6892 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6893
6894 * c-parser.c (c_parser_objc_protocol_definition): Updated for
6895 change from objc_declare_protocols() to objc_declare_protocol().
6896
6897 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
6898
6899 * config/i386/sse.md (sse4_1): New mode attribute.
6900 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
6901 avx_blend<ssemodesuffix><avxmodesuffix> and
6902 sse4_1_blend<ssemodesuffix> using VF mode iterator.
6903 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
6904 avx_blendv<ssemodesuffix><avxmodesuffix> and
6905 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
6906 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
6907 avx_dp<ssemodesuffix><avxmodesuffix> and
6908 sse4_1_dp<ssemodesuffix> using VF mode iterator.
6909 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
6910 (sse4_1_packusdw): Merge with *avx_packusdw.
6911 (sse4_1_pblendvb): Merge with *avx_pblendvb.
6912 (sse4_1_pblendw): Merge with *avx_pblendw.
6913 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
6914 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
6915 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
6916 VF mode iterator.
6917 (sse4_1_round<ssescalarmodesuffix>): Merge with
6918 *avx_round<ssescalarmodesuffix>.
6919 (aesenc): Merge with *avx_aesenc.
6920 (aesenclast): Merge with *avx_aesenclast.
6921 (aesdec): Merge with *avx_aesdec.
6922 (aesdeclast): Merge with *avx_aesdeclast.
6923 (pclmulqdq): Merge with *pclmulqdq.
6924 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
6925 New predicate.
6926 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
6927
6928 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
6929
6930 PR middle-end/48608
6931 * cfgexpand.c (get_decl_align_unit): Renamed to ...
6932 (align_local_variable): This. Update DECL_ALIGN.
6933 (add_stack_var): Updated.
6934 (expand_one_stack_var): Likewise.
6935
6936 2011-04-14 Richard Guenther <rguenther@suse.de>
6937
6938 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
6939 Remove.
6940 (dse_initialize_block_local_data, dse_leave_block,
6941 record_voperand_set, get_stmt_uid): Likewise.
6942 (dse_possible_dead_store_p): Allow any kind of killing stmt.
6943 (dse_optimize_stmt): Remove voperand set handling code.
6944 Simplify and improve to handle any kind of killing stmt.
6945 (dse_record_phi): Remove.
6946 (dse_enter_block): Simplify.
6947 (tree_ssa_dse): Likewise.
6948 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
6949
6950 2011-04-14 Jan Hubicka <jh@suse.cz>
6951
6952 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
6953 * cgraph.h (struct inline_summary): Move to ipa-inline.h
6954 (cgraph_local_info): Remove inline_summary.
6955 * ipa-cp.c: Include ipa-inline.h.
6956 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
6957 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
6958 accesor.
6959 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
6960 (input_overwrite_node): Do not set inline summary.
6961 (input_node): Do not stream inline summary.
6962 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
6963 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
6964 growth; we do not have inline parameters computed for that anyway.
6965 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
6966 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
6967 (inline_summary_t): New type and VECtor.
6968 (debug_inline_summary, dump_inline_summaries): Declare.
6969 (inline_summary): Use VOCtor.
6970 (estimate_edge_growth): Kill hack computing call stmt size directly.
6971 * lto-section-in.c (lto_section_name): Add inline section.
6972 * ipa-inline-analysis.c: Include lto-streamer.h
6973 (node_removal_hook_holder, node_duplication_hook_holder): New holders
6974 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
6975 (inline_summary_vec): Define.
6976 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
6977 dump_inline_summaries): New functions.
6978 (estimate_function_body_sizes): Properly compute size/time of outgoing
6979 calls.
6980 (compute_inline_parameters): Alloc inline_summary; do not compute
6981 size/time of incomming calls.
6982 (estimate_edge_time): Avoid missing time summary hack.
6983 (inline_read_summary): Read inline summary info.
6984 (inline_write_summary): Write inline summary info.
6985 (inline_free_summary): Free all hooks and inline summary vector.
6986 * lto-streamer.h: Add LTO_section_inline_summary section.
6987 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
6988 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
6989
6990 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6991
6992 * tree-vectorizer.h (vect_strided_store_supported): Add a
6993 HOST_WIDE_INT argument.
6994 (vect_strided_load_supported): Likewise.
6995 (vect_permute_store_chain): Return void.
6996 (vect_transform_strided_load): Likewise.
6997 (vect_permute_load_chain): Delete.
6998 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
6999 count argument. Check that the count is a power of two.
7000 (vect_strided_load_supported): Likewise.
7001 (vect_permute_store_chain): Return void. Update after above changes.
7002 Assert that the access is supported.
7003 (vect_permute_load_chain): Likewise.
7004 (vect_transform_strided_load): Return void.
7005 * tree-vect-stmts.c (vectorizable_store): Update calls after
7006 above interface changes.
7007 (vectorizable_load): Likewise.
7008 (vect_analyze_stmt): Don't check for strided powers of two here.
7009
7010 2011-04-14 Richard Guenther <rguenther@suse.de>
7011
7012 PR tree-optimization/48590
7013 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
7014 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
7015 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
7016 BUILT_IN_STACK_SAVE.
7017 * tree-ssa-dce.c (propagate_necessity): Handle
7018 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
7019
7020 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
7021
7022 * c-parser.c (c_parser_objc_class_declaration): Updated call to
7023 objc_declare_class.
7024
7025 2011-04-14 Richard Guenther <rguenther@suse.de>
7026
7027 * tree.h (get_object_alignment_1): Declare.
7028 * builtins.c (get_object_alignment_1): Split out worker from ...
7029 (get_object_alignment): ... here.
7030 * fold-const.c (get_pointer_modulus_and_residue): Use
7031 get_object_alignment_1.
7032
7033 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7034
7035 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
7036 type parameter.
7037 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
7038 parameter. Generalise code to handle arrays as well as vectors.
7039 (vect_setup_realignment): Update accordingly.
7040 * tree-vect-stmts.c (vectorizable_store): Likewise.
7041 (vectorizable_load): Likewise.
7042
7043 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7044
7045 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
7046 within the per-copy loop.
7047
7048 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7049
7050 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
7051 in the dump file.
7052
7053 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7054
7055 * doc/options.texi (Negative): Explicitly mention that the
7056 Negative chain must be circular.
7057
7058 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
7059
7060 * function.h (block_chainon): Declare.
7061 * function.c (block_chainon): Define.
7062
7063 2011-04-14 Anatoly Sokolov <aesok@post.ru>
7064 Eric Weddington <eric.weddington@atmel.com>
7065 Georg-Johann Lay <avr@gjlay.de>
7066
7067 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
7068 New Includes
7069 (avr_init_builtins, avr_expand_builtin,
7070 avr_expand_delay_cycles, avr_expand_unop_builtin,
7071 avr_expand_binop_builtin ): New functions.
7072 (avr_builtin_id): New enum
7073 (struct avr_builtin_description): New struct
7074 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
7075 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
7076
7077 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
7078 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
7079 UNSPECV_DELAY_CYCLES): new enumeration values
7080 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
7081 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
7082 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
7083 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
7084 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
7085 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
7086 "fmulsu"): New insns
7087
7088 * config/avr/avr-c.c: fix line endings
7089 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
7090 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
7091 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
7092 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
7093 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
7094
7095 * doc/extend.texi (AVR Built-in Functions): New node
7096 (Target Builtins): Add documentation of AVR
7097 built-in functions.
7098
7099 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
7100
7101 PR target/44643
7102 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
7103 alone. Error if non-const data has attribute progmem.
7104
7105 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7106
7107 * tree.h (struct tree_constructor): Include tree_typed instead of
7108 tree_common.
7109 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
7110 TS_TYPED instead of TS_COMMON.
7111
7112 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
7113
7114 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
7115 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
7116 (sse2_psadbw): Merge with *avx_psadbw.
7117 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
7118 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
7119 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
7120 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
7121 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
7122 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
7123 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
7124 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
7125 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
7126 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
7127 (ssse3_palignrti): Merge with *avx_palignrti.
7128
7129 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7130
7131 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
7132 * tree-ssanames.c (fini_ssanames): VEC_free it.
7133 (make_ssa_name_fn): Update for VECness of free_ssanames.
7134 (release_ssa_name, release_dead_ssa_names): Likewise.
7135 * tree.h (struct tree_ssa_name): Include tree_typed instead of
7136 tree_common.
7137 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
7138 TS_TYPED instead of TS_COMMON.
7139
7140 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7141
7142 * postreload-gcse.c (gcse_after_reload_main): Add calls to
7143 statistics_counter_event.
7144 * tree-ssa-copyrename.c (stats): Define.
7145 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
7146 statistics_counter_event.
7147 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
7148 (bswap_stats, widen_mul_stats): Define.
7149 (insert_reciprocals): Increment rdivs_inserted.
7150 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
7151 rfuncs_inserted. Add calls to statistics_counter_event.
7152 (execute_cse_sincos_1): Increment inserted.
7153 (execute_cse_sincos): Zeroize sincos_stats. Add call to
7154 statistics_counter_event.
7155 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
7156 of bswap_stats. Add calls to statistics_counter_event.
7157 (convert_mult_to_widen): Increment widen_mults_inserted.
7158 (convert_plusminus_to_widen): Increment maccs_inserted.
7159 (convert_mult_to_fma): Increment fmas_inserted.
7160 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
7161 calls to statistics_counter_event.
7162
7163 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
7164
7165 PR rtl-optimization/48455
7166 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
7167 `temp_costs->mem_cost'.
7168
7169 2011-04-13 Jan Hubicka <jh@suse.cz>
7170
7171 * ipa-inline.h: New file.
7172 * ipa-inline-analysis.c: New file. Broken out of ...
7173 * ipa-inline.c: ... this file; update toplevel comment;
7174 include ipa-inline.h
7175 (inline_summary): Move to ipa-inline.h
7176 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
7177 ipa-inline-analysis.c.
7178 (cgraph_estimate_time_after_inlining): Rename to
7179 estiamte_time_after_inlining; move to ipa-inline-analysis.c
7180 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
7181 to estimate_edge_growth.
7182 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
7183 rename to estimate_size_after_inlining.
7184 (cgraph_mark_inline_edge): Update for new naming convention.
7185 (cgraph_check_inline_limits): Likewise.
7186 (cgraph_edge_badness): Likewise.
7187 (cgraph_decide_recursive_inlining): Likewise.
7188 (cgraph_decide_inlining_of_small_functions): Likewise.
7189 (cgraph_decide_inlining_incrementally): Likewise.
7190 (cgraph_estimate_growth): Rename to estimate_growth; move to
7191 ipa-inline-analysis.c.
7192 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
7193 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
7194 (compute_inline_parameters): Likewise.
7195 (compute_inline_parameters_for_current): Likewise.
7196 (pass_inline_parameters): Likewise.
7197 (inline_indirect_intraprocedural_analysis): Likewise.
7198 (analyze_function): Rename to inline_analyze_function; likewise.
7199 (add_new_function): Move to ipa-inline-analysis.c.
7200 (inline_generate_summary): Likewise.
7201 (inline_read_summary): Likewise.
7202 (inline_write_summary): Likewise.
7203 * Makefile.in (ipa-inline-analysis.c): New file.
7204
7205 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7206
7207 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
7208 * configure: Regenerate.
7209
7210 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7211
7212 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
7213 instead of tree_common.
7214 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
7215 Likewise.
7216 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
7217 TS_TYPED rather than TS_COMMON.
7218 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
7219
7220 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
7221
7222 PR target/45263
7223 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
7224 r20 around calls of __tablejump_elpm__
7225
7226 2011-04-13 Jakub Jelinek <jakub@redhat.com>
7227
7228 PR middle-end/48591
7229 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
7230 NULL.
7231 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
7232
7233 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
7234
7235 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
7236 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
7237 (cfi_vec): New typedef.
7238 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
7239 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
7240 (cie_cfi_vec): New static variable.
7241 (cie_cfi_head): Delete.
7242 (add_cfi): Accept a cfi_vec * as first argument. All callers and
7243 declaration changed. Use vector rather than list operations.
7244 (new_cfi): Don't initialize the dw_cfi_next field.
7245 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
7246 rather than list operations.
7247 (lookup_cfa): Use vector rather than list operations.
7248 (output_cfis): New argument upto. Accept a cfi_vec rather than
7249 a dw_cfi_ref list head as argument. All callers changed.
7250 Iterate over the vector using upto as a maximum index.
7251 (output_all_cfis): New static function.
7252 (output_fde): Use vector rather than list operations. Use the
7253 new upto argument for output_cfis rather than manipulating a
7254 list.
7255 (dwarf2out_begin_prologue): Change initializations to match
7256 new struct members.
7257 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
7258 from the vector length rather than searching for the end of a list.
7259 Use output_all_cfis.
7260 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
7261
7262 2011-04-13 Nick Clifton <nickc@redhat.com>
7263
7264 * config/rx/rx.md (movmemsi): Do not use this pattern when
7265 volatile pointers are involved.
7266
7267 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
7268
7269 * config/i386/sse.md (pinsrbits): Remove.
7270 (sse2_packsswb): Merge with *avx_packsswb.
7271 (sse2_packssdw): Merge with *avx_packssdw.
7272 (sse2_packuswb): Merge with *avx_packuswb.
7273 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
7274 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
7275 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
7276 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
7277 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
7278 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
7279 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
7280 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
7281 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
7282 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
7283 (sse2_loadld): Merge with *avx_loadld.
7284 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
7285 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
7286 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
7287 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
7288 (vec_concatv2di): Merge with *vec_concatv2di_avx.
7289
7290 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
7291
7292 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
7293 calling TREE_CHAIN.
7294 * print-tree.c (print_node): Likewise.
7295 * tree-inline.c (copy_tree_r): Likewise.
7296 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
7297 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
7298 instead of TS_COMMON.
7299 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
7300 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
7301 (copy_node_stat): Zero TREE_CHAIN only if necessary.
7302 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
7303 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
7304 ...and these...
7305 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
7306 * tree.h: ...here.
7307 (TREE_CHAIN): Check for a TS_COMMON structure.
7308 (TREE_TYPE): Check for a TS_TYPED structure.
7309
7310 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
7311
7312 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
7313 cgraph_get_create_node instead of cgraph_node.
7314
7315 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
7316
7317 * c-parser.c (c_parser_initelt): Updated call to
7318 objc_build_message_expr.
7319 (c_parser_postfix_expression): Likewise.
7320
7321 2011-04-12 Kai Tietz <ktietz@redhat.com>
7322
7323 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
7324 MASK_MS_BITFIELD_LAYOUT bit.
7325
7326 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7327
7328 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
7329 assert it is always true.
7330 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
7331 moves.
7332
7333 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
7334
7335 * c-parser.c (c_lex_one_token): Rewritten conditional used when
7336 compiling Objective-C to be more efficient.
7337
7338 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
7339
7340 * opts-common.c (decode_cmdline_options_to_array): Remove variable
7341 argv_copied.
7342
7343 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7344
7345 * recog.h, genoutput.c, optabs.c: Revert last patch.
7346
7347 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7348
7349 PR target/48090
7350 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
7351
7352 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7353
7354 * recog.h (insn_operand_data): Add an "allows_mem" field.
7355 * genoutput.c (output_operand_data): Initialize it.
7356 * optabs.c (maybe_legitimize_operand_same_code): New function.
7357 (maybe_legitimize_operand): Use it when matching the original
7358 op->value.
7359
7360 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7361
7362 * genpreds.c (process_define_predicate): Move most processing
7363 to gensupport.c. Continue to validate the expression.
7364 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
7365 (process_define_predicate): Move processing to gensupport.c.
7366 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
7367 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
7368 (compute_predicate_codes): Moved from genrecog.c. Add lineno
7369 argument.
7370 (valid_predicate_name_p): New function, split out from old
7371 genpreds.c:process_define_predicate.
7372 (process_define_predicate): New function, combining code from
7373 old genpreds.c and genrecog.c functions.
7374 (process_rtx): Call it for DEFINE_PREDICATE and
7375 DEFINE_SPECIAL_PREDICATE.
7376
7377 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7378
7379 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
7380 size of a '%A' memory reference.
7381 (T_DREG, T_QREG): New neon_builtin_type_bits.
7382 (arm_init_neon_builtins): Assert that the load and store operands
7383 are neon_struct_operands.
7384 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
7385 (NEON_ARG_MEMORY): New builtin_arg.
7386 (neon_dereference_pointer): New function.
7387 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
7388 Handle NEON_ARG_MEMORY.
7389 (arm_expand_neon_builtin): Update after above interface changes.
7390 Use NEON_ARG_MEMORY for loads and stores.
7391 * config/arm/predicates.md (neon_struct_operand): New predicate.
7392 * config/arm/iterators.md (V_two_elem): Tweak formatting.
7393 (V_three_elem): Use BLKmode for accesses that have no associated mode.
7394 (V_four_elem): Tweak formatting.
7395 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
7396 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
7397 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
7398 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
7399 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
7400 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
7401 (neon_vst4<mode>): Replace pointer operand with a memory operand.
7402 Use %A in the output template.
7403 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
7404 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
7405 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
7406 the width of the memory access. Remove post-increment.
7407 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
7408
7409 2011-04-12 Nick Clifton <nickc@redhat.com>
7410
7411 * config/v850/v850.c (expand_prologue): Do not use the CALLT
7412 instruction for interrupt handlers if the target is the basic V850
7413 architecture.
7414 (expand_epilogue): Likewise.
7415
7416 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7417
7418 PR rtl-optimization/48549
7419 * combine.c (propagate_for_debug): Also stop after BB_END of
7420 this_basic_block. Process LAST and just stop processing after it.
7421 (combine_instructions): If last_combined_insn has been deleted,
7422 set last_combined_insn to its PREV_INSN.
7423
7424 2011-04-12 Richard Guenther <rguenther@suse.de>
7425
7426 PR tree-optimization/46076
7427 * gimple.h (struct gimple_statement_call): Add fntype field.
7428 (gimple_call_fntype): Adjust.
7429 (gimple_call_set_fntype): New function.
7430 * gimple.c (gimple_build_call_1): Set the call function type.
7431 * gimplify.c (gimplify_call_expr): Preserve the function
7432 type the frontend used for the call.
7433 (gimplify_modify_expr): Likewise.
7434 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
7435 function type.
7436 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
7437 function type.
7438 * tree-ssa.c (useless_type_conversion_p): Function pointer
7439 conversions are useless.
7440
7441 2011-04-12 Martin Jambor <mjambor@suse.cz>
7442
7443 * cgraph.h (cgraph_node): Remove function declaration.
7444 (cgraph_create_node): Declare.
7445 (cgraph_get_create_node): Likewise.
7446 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
7447 Updated all callers.
7448 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
7449 the decl does not already exist. Call cgraph_get_create_node instead
7450 of cgraph_node.
7451 (cgraph_get_create_node): New function.
7452 (cgraph_same_body_alias): Update comment.
7453 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
7454 assert it does not return NULL.
7455 (cgraph_update_edges_for_call_stmt): Likewise.
7456 (cgraph_clone_edge): Likewise.
7457 (cgraph_create_virtual_clone): Likewise.
7458 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
7459 instead of cgraph_node.
7460 (cgraph_add_new_function): Call cgraph_create_node or
7461 cgraph_get_create_node instead of cgraph_node.
7462 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
7463 instead of cgraph_node.
7464 (record_eh_tables): Likewise.
7465 (mark_address): Likewise.
7466 (mark_load): Likewise.
7467 (build_cgraph_edges): Call cgraph_get_create_node instead
7468 of cgraph_node.
7469 (rebuild_cgraph_edges): Likewise.
7470 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
7471 instead of cgraph_node.
7472 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
7473 cgraph_node.
7474 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
7475 cgraph_create_node instead of cgraph_node.
7476 * c-decl.c (finish_function): Call cgraph_get_create_node instead
7477 of cgraph_node.
7478 * lto-cgraph.c (input_node): Likewise.
7479 * lto-streamer-in.c (input_function): Likewise.
7480 * varasm.c (mark_decl_referenced): Likewise.
7481 (assemble_alias): Likewise.
7482
7483 2011-04-12 Martin Jambor <mjambor@suse.cz>
7484
7485 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
7486 instead of cgraph_node and assert it does not return NULL.
7487 * lto-streamer-in.c (lto_read_body): Likewise.
7488 * omp-low.c (new_omp_context): Likewise.
7489 (create_task_copyfn): Likewise.
7490 * tree-emutls.c (lower_emutls_function_body): Likewise.
7491 * matrix-reorg.c (transform_allocation_sites): Likewise.
7492
7493 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7494
7495 PR c/48552
7496 * c-typeck.c (build_asm_expr): Error out on attempts to use
7497 void type outputs or inputs for constraints that allow reg or
7498 don't allow memory.
7499
7500 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
7501 Richard Earnshaw <rearnsha@arm.com>
7502
7503 PR target/48250
7504 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
7505 to use sign-magnitude offsets. Reject unsupported unaligned
7506 cases. Add detailed description in comments.
7507 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
7508 condition from TARGET_32BIT to TARGET_ARM.
7509
7510 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
7511
7512 * tree.h (struct typed_tree): New.
7513 (struct tree_common): Include it instead of tree_base.
7514 (TREE_TYPE): Update for new location of type field.
7515 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
7516 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
7517 (union tree_node): Add typed field.
7518 * treestruct.def (TS_TYPED): New.
7519 * lto-streamer.c (check_handled_ts_structures): Handle it.
7520 * tree.c (MARK_TS_TYPED): New macro.
7521 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
7522
7523 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
7524
7525 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
7526 (force_nonfallthru): Do not alter the loop nest if no basic block
7527 was created.
7528
7529 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
7530
7531 * config/i386/sse.md (VI): New mode iterator.
7532 (SSEMODEI): Remove.
7533 (AVX256MODEI): Ditto.
7534 (AVXMODEF4P): Ditto.
7535 (avxvecpsmode): Ditto.
7536 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
7537 (sse2_andnot<mode>3): New expander.
7538 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
7539 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
7540 (<any_logic:code><mode>3): Use VI mode iterator.
7541 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
7542 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
7543 (*andnottf3): Handle AVX three-operand constraints.
7544 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
7545
7546 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7547 Robert Millan <rmh@gnu.org>
7548
7549 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
7550 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
7551 GNU_USER_DYNAMIC_LINKER64): Define.
7552 (REG_NAME): Don't undefine.
7553 (MD_UNWIND_SUPPORT): Undefine.
7554 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
7555 (REG_NAME): Don't undefine.
7556 (MD_UNWIND_SUPPORT): Undefine.
7557 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
7558
7559 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7560
7561 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
7562 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
7563
7564 2011-04-11 Xinliang David Li <davidxl@google.com>
7565
7566 * value-profile.c (check_ic_target): New function.
7567 (gimple_ic_transform): Sanity check indirect call target.
7568 * gimple-low.c (gimple_check_call_args): Interface change.
7569 (gimple_check_call_matching_types): New function.
7570 * tree-inline.c (tree_can_inline_p): Call new function.
7571
7572 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
7573
7574 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
7575 tree-pretty-print.h & realmpfr.h.
7576
7577 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
7578
7579 PR middle-end/48464
7580 * ira.c (setup_pressure_classes): Fix typo in loop condition.
7581 (setup_allocno_and_important_classes): Ditto.
7582
7583 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7584
7585 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
7586 GNU_USER_DYNAMIC_LINKER.
7587 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
7588 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7589 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
7590 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7591 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7592 GNU_USER_TARGET_OS_CPP_BUILTINS.
7593 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
7594 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7595 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7596 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7597 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
7598 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7599 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7600 GNU_USER_TARGET_OS_CPP_BUILTINS.
7601 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7602 GNU_USER_DYNAMIC_LINKER.
7603 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7604 GNU_USER_TARGET_OS_CPP_BUILTINS.
7605 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
7606 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7607 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
7608 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7609 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
7610 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
7611 GNU_USER_DYNAMIC_LINKER64): Remove.
7612 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
7613 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7614 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7615 GNU_USER_DYNAMIC_LINKER.
7616 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7617 GNU_USER_TARGET_OS_CPP_BUILTINS.
7618 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7619 GNU_USER_TARGET_OS_CPP_BUILTINS.
7620 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
7621 to GNU_USER_TARGET_OS_CPP_BUILTINS.
7622 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7623 GNU_USER_TARGET_OS_CPP_BUILTINS.
7624 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
7625 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
7626 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7627 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
7628 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7629 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7630 GNU_USER_DYNAMIC_LINKER.
7631 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7632 GNU_USER_TARGET_OS_CPP_BUILTINS.
7633 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
7634 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7635 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7636 GNU_USER_DYNAMIC_LINKER.
7637 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7638 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7639 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
7640 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7641 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7642 GNU_USER_DYNAMIC_LINKER.
7643 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
7644 GNU_USER_DYNAMIC_LINKERN32.
7645 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
7646 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
7647 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
7648 GNU_USER_DYNAMIC_LINKER32.
7649 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
7650 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7651 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7652 GNU_USER_DYNAMIC_LINKER.
7653 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7654 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7655 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
7656 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7657 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7658 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
7659 GNU_USER_DYNAMIC_LINKER32.
7660 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7661 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
7662 GNU_USER_DYNAMIC_LINKER.
7663 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
7664 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7665 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7666 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
7667 GNU_USER_DYNAMIC_LINKER64.
7668 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
7669 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7670 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7671 GNU_USER_DYNAMIC_LINKER.
7672 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
7673 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7674 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7675 GNU_USER_DYNAMIC_LINKER.
7676 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
7677 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7678 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7679 GNU_USER_DYNAMIC_LINKER32.
7680 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7681 GNU_USER_DYNAMIC_LINKER64.
7682 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7683 GNU_USER_DYNAMIC_LINKER64.
7684 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
7685 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7686 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
7687 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7688 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7689
7690 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7691
7692 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
7693 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
7694 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
7695 GNU_USER_DYNAMIC_LINKER.
7696 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7697 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
7698 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
7699 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
7700 GNU_USER_DYNAMIC_LINKER64.
7701 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7702 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
7703 GNU_USER_LINK_EMULATION.
7704 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
7705 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
7706 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
7707 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
7708 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
7709 CPP_SPEC, CC1_SPEC): Remove.
7710 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
7711 (GNU_USER_DYNAMIC_LINKER): Define.
7712 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
7713 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
7714 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
7715 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
7716 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
7717 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
7718 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7719 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
7720 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
7721 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
7722 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
7723 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
7724 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
7725 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
7726 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
7727 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7728 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7729 GNU_USER_DYNAMIC_LINKER.
7730 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7731 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7732 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7733 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7734 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7735 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7736 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
7737 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
7738 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
7739 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
7740
7741 2011-04-11 Kai Tietz <ktietz@redhat.com>
7742
7743 PR target/9601
7744 PR target/11772
7745 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
7746 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
7747 comment.
7748 (ix86_is_msabi_thiscall): Removed.
7749 (ix86_is_type_thiscall): Likewise.
7750 (ix86_get_callcvt): New function.
7751 (ix86_comp_type_attributes): Simplify check.
7752 (ix86_function_regparm): Use ix86_get_callcvt for calling
7753 convention attribute checks.
7754 (ix86_return_pops_args): Likewise.
7755 (ix86_static_chain): Likewise.
7756 (x86_this_parameter): Likewise.
7757 (x86_output_mi_thunk): Likewise.
7758 (ix86_function_type_abi): Optimize check for types without attributes.
7759 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
7760 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
7761 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
7762 by flag-values.
7763 (IX86_BASE_CALLCVT): Helper macro.
7764 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
7765 Use ix86_get_callcvt for calling convention attribute checks and avoid
7766 symbol-decoration for stdcall in TARGET_RTD case.
7767 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
7768 Likewise.
7769 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
7770 for declaration.
7771
7772 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
7773
7774 * config/i386/sse.md (VI_128): New mode iterator.
7775 (VI12_128): Rename from SSEMODE12.
7776 (VI14_128): Rename from SSEMODE14.
7777 (VI124_128): New mode iterator.
7778 (VI24_128): Rename from SSEMODE248.
7779 (VI248_128): Rename from SSEMODE248.
7780 (SSEMODE124C8): Remove.
7781 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7782 (*sse2_<plusminus_insn><mode>3): Merge with
7783 *avx_<plusminus_insn><mode>3.
7784 (*mulv8hi3): Merge with *avx_mulv8hi3.
7785 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
7786 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
7787 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
7788 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
7789 (ashr<mode>3): Merge with *avx_ashr<mode>3.
7790 (lshr<mode>3): Merge with *avx_lshr<mode>3.
7791 (ashl<mode>3): Merge with *avx_ashl<mode>3.
7792 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
7793 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
7794 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7795 (*<smaxmin:code>v8hi3): Ditto.
7796 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
7797 (*<smaxmin:code>v16qi3): Ditto.
7798 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
7799 (*sse2_eq<mode>3): Ditto.
7800 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
7801 (*sse2_gt<mode>3): Ditto.
7802 (vcondv2di): Split out of vcond<mode>.
7803 (vconduv2di): Split out of vcondu<mode>.
7804
7805 2011-04-11 Richard Guenther <rguenther@suse.de>
7806
7807 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
7808 before calling tree_low_cst.
7809
7810 2011-04-11 Richard Guenther <rguenther@suse.de>
7811
7812 * stor-layout.c (layout_type): Compute all array index size operations
7813 in the original type.
7814 (initialize_sizetypes): Add comment.
7815 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
7816
7817 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7818
7819 * common.opt (Tbss=, Tdata=, Ttext=): New options.
7820
7821 2011-04-11 Martin Jambor <mjambor@suse.cz>
7822
7823 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
7824 of cgraph_node, handle NULL return value.
7825 (cgraph_global_info): Likewise.
7826 (cgraph_rtl_info): Likewise.
7827 * tree-inline.c (estimate_num_insns): Likewise.
7828 * gimplify.c (unshare_body): Likewise.
7829 (unvisit_body): Likewise.
7830 (gimplify_body): Likewise.
7831 * predict.c (optimize_function_for_size_p): Likewise.
7832 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
7833 (call_may_clobber_ref_p_1): Likewise.
7834 * varasm.c (function_section_1): Likewise.
7835 (assemble_start_function): Likewise.
7836
7837 2011-04-11 Martin Jambor <mjambor@suse.cz>
7838
7839 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
7840 of cgraph_node.
7841 * final.c (rest_of_clean_state): Likewise.
7842 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
7843 * passes.c (pass_init_dump_file): Likewise.
7844 (execute_all_ipa_transforms): Likewise.
7845 (function_called_by_processed_nodes_p): Likewise.
7846 * predict.c (maybe_hot_frequency_p): Likewise.
7847 (probably_never_executed_bb_p): Likewise.
7848 (compute_function_frequency): Likewise.
7849 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
7850 (unnest_nesting_tree_1): Likewise.
7851 (lower_nested_functions): Likewise.
7852 * tree-optimize.c (execute_fixup_cfg): Likewise.
7853 (tree_rest_of_compilation): Likewise.
7854 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
7855 * tree-sra.c (ipa_early_sra): Likewise.
7856 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
7857 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
7858 * ipa.c (record_cdtor_fn): Likewise.
7859 * ipa-inline.c (cgraph_early_inlining): Likewise.
7860 (compute_inline_parameters_for_current): Likewise.
7861 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
7862 * ipa-pure-const.c (local_pure_const): Likewise.
7863 * ipa-split.c (split_function): Likewise.
7864 (execute_split_functions): Likewise.
7865 * cgraphbuild.c (build_cgraph_edges): Likewise.
7866 (rebuild_cgraph_edges): Likewise.
7867 (cgraph_rebuild_references): Likewise.
7868 (remove_cgraph_callee_edges): Likewise.
7869 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
7870 (verify_cgraph_node): Likewise.
7871 (cgraph_analyze_functions): Likewise.
7872 (cgraph_preserve_function_body_p): Likewise.
7873 (save_inline_function_body): Likewise.
7874 (save_inline_function_body): Likewise.
7875 * tree-inline.c (copy_bb): Likewise.
7876 (optimize_inline_calls): Likewise.
7877
7878 2011-04-11 Martin Jambor <mjambor@suse.cz>
7879
7880 PR tree-optimization/48195
7881 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
7882 ipa_check_create_edge_args.
7883 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
7884 ipa_check_create_edge_args.
7885 * ipa-inline.c (inline_generate_summary): Do not call
7886 ipa_check_create_node_params and ipa_check_create_edge_args.
7887 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
7888 ipa_check_create_edge_args.
7889
7890 2011-04-09 Anatoly Sokolov <aesok@post.ru>
7891
7892 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
7893 instead of loop.
7894 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
7895 * function.c (record_hard_reg_sets): Likewise.
7896 * ira.c (compute_regs_asm_clobbered): Likewise.
7897 * sched-deps.c (sched_analyze_1): Likewise.
7898 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
7899
7900 2011-04-09 Xinliang David Li <davidxl@google.com>
7901
7902 PR tree-optimization/PR48484
7903 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
7904 has_valid_pred lazily
7905
7906 2011-04-09 Duncan Sands <baldrick@free.fr>
7907
7908 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
7909
7910 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
7911
7912 * combine.c (combine_validate_cost): Adjust comments. Set registered
7913 cost of I0 to zero at the end, if any.
7914
7915 2011-04-08 Xinliang David Li <davidxl@google.com>
7916
7917 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
7918 to insane profile data.
7919
7920 2011-04-08 Xinliang David Li <davidxl@google.com>
7921
7922 * ipa-cp.c (ipcp_update_profiling): Correct
7923 negative scale factor due to insane profile data.
7924
7925 2011-04-08 Xinliang David Li <davidxl@google.com>
7926
7927 * final.c (dump_basic_block_info): New function.
7928 (final): Dump basic block.
7929 (final_scan_insn): Remove old dump.
7930
7931 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
7932
7933 PR target/47829
7934 * config.gcc (i386-*-freebsd): Disable unwind table generation for
7935 crtbegin/crtend.
7936
7937 2011-04-08 Michael Matz <matz@suse.de>
7938
7939 PR middle-end/48389
7940 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
7941 functions.
7942 (rebuild_jump_labels): Call rebuild_jump_labels_1.
7943 * rtl.h (rebuild_jump_labels_chain): Declare.
7944 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
7945 insns inserted on edges.
7946
7947 2011-04-08 Joseph Myers <joseph@codesourcery.com>
7948
7949 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
7950 * config/arm/arm-arches.def: New.
7951 * config/arm/arm-opts.h: New.
7952 * config/arm/genopt.sh: New.
7953 * config/arm/arm-tables.opt: New (generated).
7954 * config/arm/arm.c (arm_handle_option, arm_target_help,
7955 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
7956 (all_architectures): Get most table contents from arm-arches.def.
7957 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
7958 arm_selected_tune here.
7959 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
7960 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
7961 (march=, mcpu=, mtune=): Use Enum and Var.
7962 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
7963 (arm.o): Update dependencies.
7964
7965 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
7966
7967 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
7968 of header_file.
7969 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
7970 (write_typed_alloc_defns): Likewise.
7971 (main): Calls write_typed_alloc_defns with output_header.
7972
7973 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
7974
7975 PR inline-asm/48435
7976 * ira-color.c (setup_profitable_hard_regs): Add comments.
7977 Don't take prohibited hard regs into account.
7978 (setup_conflict_profitable_regs): Rename to
7979 get_conflict_profitable_regs.
7980 (check_hard_reg_p): Check prohibited hard regs.
7981
7982 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
7983
7984 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
7985 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
7986 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
7987
7988 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7989
7990 PR target/48366
7991 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
7992 move from floating point to shift amount register.
7993 (emit_move_sequence): Remove secondary reload support for floating
7994 point to shift amount amount register copies.
7995 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
7996 amount register copies.
7997 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
7998 register, return false if mode isn't a scalar integer mode.
7999 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
8000
8001 2011-04-08 Richard Guenther <rguenther@suse.de>
8002
8003 * gimple.c (gimple_call_flags): Remove kludge.
8004
8005 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8006
8007 * sel-sched.c (sel_region_init): Move call to
8008 sel_setup_region_sched_flags after setup_current_loop_nest.
8009
8010 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
8011
8012 PR rtl-optimization/48272
8013 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
8014 init_insn_reg_pressure_info. Adjust a caller.
8015 * sched-int.h (init_insn_reg_pressure_info): Declare.
8016 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
8017 when sched-pressure is enabled.
8018
8019 2011-04-08 Richard Guenther <rguenther@suse.de>
8020
8021 * gimple.c (gimple_set_modified): Do not queue calls to
8022 MODIFIED_NORETURN_CALLS here ...
8023 * tree-ssa-operands.c (update_stmt_operands): ... but here.
8024
8025 2011-04-08 Richard Guenther <rguenther@suse.de>
8026
8027 PR lto/48467
8028 * toplev.c (lang_dependent_init): Do not open asm_out_file
8029 in WPA mode, nor perform debug machinery initialization.
8030 (finalize): Do not unlink asm_out_file in WPA mode.
8031
8032 2011-04-08 Richard Guenther <rguenther@suse.de>
8033
8034 * gimple.h (gimple_call_fntype): New function.
8035 (gimple_call_return_type): Use it.
8036 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
8037 * gimple-low.c (gimple_check_call_args): Likewise.
8038 * gimple.c (gimple_call_flags): Likewise.
8039 (gimple_call_arg_flags): Likewise.
8040 (gimple_call_return_flags): Likewise.
8041 * tree-cfg.c (verify_gimple_call): Likewise.
8042 (do_warn_unused_result): Likewise.
8043 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
8044 * value-prof.c (gimple_ic_transform): Fix fndecl check.
8045
8046 2011-04-08 Dmitry Melnik <dm@ispras.ru>
8047
8048 PR rtl-optimization/48235
8049 * sel-sched.c (code_motion_process_successors): Recompute the last
8050 insn in basic block if control flow changed.
8051 (code_motion_path_driver): Ditto. Recompute the first insn as well.
8052 Update condition for ilist_remove.
8053
8054 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8055
8056 PR rtl-optimization/48302
8057 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
8058 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
8059 it to record added preheader blocks.
8060 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
8061 on to sel_add_loop_preheaders.
8062 (sel_region_init): Move call to setup_current_loop_nest after
8063 sel_init_bbs.
8064
8065 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8066
8067 PR target/48273
8068 * cfgloop.h (loop_has_exit_edges): New helper.
8069 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
8070 non-clonable.
8071 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
8072 that have no exit edges.
8073
8074 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8075
8076 PR rtl-optimization/48442
8077 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
8078 all callers. Adjust assert.
8079
8080 2011-04-08 Jakub Jelinek <jakub@redhat.com>
8081
8082 PR tree-optimization/48377
8083 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
8084 is_packed to true even for types with smaller TYPE_ALIGN than
8085 TYPE_SIZE.
8086
8087 2011-04-08 Richard Guenther <rguenther@suse.de>
8088
8089 PR bootstrap/48513
8090 * doc/tm.texi: Re-generate.
8091
8092 2011-04-08 Wei Guozhi <carrot@google.com>
8093
8094 PR target/47855
8095 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
8096 * config/arm/arm.c (arm_attr_length_push_multi): New function.
8097 * config/arm/arm.md (*push_multi): Change the length computation to
8098 call a C function.
8099
8100 2011-04-08 Anatoly Sokolov <aesok@post.ru>
8101
8102 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
8103 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
8104 * doc/tm.texi: Regenerate.
8105 * system.h (ASM_OUTPUT_BSS): Poison.
8106 * varasm.c (asm_output_bss): Remove function.
8107 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
8108
8109 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
8110 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
8111 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
8112 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8113 Likewise.
8114 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8115 Likewise.
8116 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8117 Likewise.
8118 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
8119
8120 2011-04-07 Joseph Myers <joseph@codesourcery.com>
8121
8122 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
8123 EnumValue lines.
8124
8125 2011-04-07 Joseph Myers <joseph@codesourcery.com>
8126
8127 * config/m68k/m68k.c (m68k_handle_option): Don't handle
8128 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
8129 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
8130 OPT_mcpu32.
8131 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
8132 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
8133 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
8134 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
8135 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
8136 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
8137 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
8138 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
8139 options. Don't map other m68k options manually. Don't handle
8140 old-style options as canonical.
8141 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
8142 * doc/install.texi (m68k-*-*): Document binutils version requirement.
8143
8144 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
8145
8146 * basic-block.h (force_nonfallthru): Move to...
8147 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
8148 (force_nonfallthru): ...here.
8149 * cfghooks.c (force_nonfallthru): New function.
8150 * cfgrtl.c (force_nonfallthru): Rename into...
8151 (rtl_force_nonfallthru): ...this.
8152 (commit_one_edge_insertion): Do not set AUX field.
8153 (commit_edge_insertions): Do not discover new basic blocks.
8154 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
8155 (cfg_layout_rtl_cfg_hooks): Likewise.
8156 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
8157 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
8158 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
8159
8160 2011-04-07 Anatoly Sokolov <aesok@post.ru>
8161
8162 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
8163 Remove macros.
8164
8165 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
8166
8167 * config/i386/sse.md: Update copyright year.
8168 (avxcvtvecmode): Remove.
8169 (sse_movhlps): Merge with *avx_movhlps.
8170 (sse_movlhps): Merge with *avx_movlhps.
8171 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
8172 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
8173 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
8174 (sse_loadhps): Merge with *avx_loadhps.
8175 (sse_storelps): Merge with *avx_storelps.
8176 (sse_loadlps): Merge with *avx_loadlps.
8177 (sse_movss): Merge with *avx_movss.
8178 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
8179 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
8180 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
8181 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
8182 (vec_set<mode>_0): Ditto.
8183 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
8184 (sse4_1_insertps): Merge with *avx_insertps.
8185 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
8186 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
8187 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
8188 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
8189 (sse2_storehpd): Merge with *avx_storehpd.
8190 (sse2_loadhpd): Merge with *avx_loadhpd.
8191 (sse2_loadlpd): Merge with *avx_loadlpd.
8192 (sse2_movsd): Merge with *avx_movsd.
8193 (*vec_concatv2df): Merge with *vec_concatv2df.
8194
8195 2011-04-07 Jakub Jelinek <jakub@redhat.com>
8196
8197 PR debug/48343
8198 * combine.c (combine_instructions): Add last_combined_insn,
8199 update it if insn is after it, pass it to all try_combine calls.
8200 (try_combine): Add last_combined_insn parameter, pass it instead of
8201 i3 to propagate_for_debug.
8202
8203 2011-04-07 Nick Clifton <nickc@redhat.com>
8204
8205 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
8206 to handle MDR <-> data register transfers.
8207 (movhi_internal): Likewise.
8208
8209 2011-04-07 Alan Modra <amodra@gmail.com>
8210
8211 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
8212 previous stack info.
8213
8214 2011-04-07 Tom de Vries <tom@codesourcery.com>
8215
8216 PR target/43920
8217 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
8218 flow_find_cross_jump. Swap variables to implement backward replacement.
8219 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
8220
8221 2011-04-07 Tom de Vries <tom@codesourcery.com>
8222
8223 PR target/43920
8224 * cfgcleanup.c (walk_to_nondebug_insn): New function.
8225 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
8226 and bb2.
8227 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
8228 src1 or src2. Redirect edges to the last basic block. Update
8229 frequency and count on multiple basic blocks in case of fallthru.
8230
8231 2011-04-07 Tom de Vries <tom@codesourcery.com>
8232
8233 PR target/43920
8234 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
8235 function.
8236 (old_insns_match_p): Change return type. Replace return false/true
8237 with return dir_none/dir_both. Use can_replace_by.
8238 (flow_find_cross_jump): Add dir_p parameter. Init replacement
8239 direction from dir_p. Register replacement direction in dir, last_dir
8240 and afterlast_dir. Handle new return type of old_insns_match_p using
8241 merge_dir. Return replacement direction in dir_p.
8242 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
8243 return type of old_insns_match_p.
8244 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
8245 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
8246 flow_find_cross_jump.
8247 * basic-block.h (enum replace_direction): New type.
8248 (flow_find_cross_jump): Add parameter to declaration.
8249
8250 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
8251
8252 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
8253 (AVXMODEDCVTPS2DQ): Ditto.
8254 (VEC_FLOAT_MODE): Ditto.
8255 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
8256 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
8257 (<any_logic:code><mode>3): Use VF mode iterator.
8258 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
8259 Use VF mode iterator.
8260 (copysign<mode>3): Use VF mode iterator.
8261 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
8262 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
8263 (*<any_logic:code><MODEF:mode>3): Merge with
8264 *avx_<any_logic:code><MODEF:mode>3.
8265 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
8266 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
8267 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
8268 (avx_cvtdq2ps<avxmodesuffix>): Remove.
8269 (sse2_cvtdq2ps): Use %v modifier.
8270 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
8271 (avx_cvtps2dq<avxmodesuffix>): Remove.
8272 (sse2_cvtps2dq): Use %v modifier.
8273 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
8274 (avx_cvttps2dq<avxmodesuffix>): Remove.
8275 (sse2_cvttps2dq): Use %v modifier.
8276 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
8277 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
8278 (sse2_cvtsd2siq): Fix insn template.
8279 (sse2_cvtsd2siq_2): Ditto.
8280 (sse2_cvttsd2siq): Ditto.
8281 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
8282 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
8283
8284 2011-04-06 Joseph Myers <joseph@codesourcery.com>
8285
8286 * gcov-io.c: Use GCC Runtime Library Exception.
8287
8288 2011-04-06 Jakub Jelinek <jakub@redhat.com>
8289
8290 PR debug/48466
8291 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
8292 as base_reg whatever register reg has been eliminated to, instead
8293 of hardcoding STACK_POINTER_REGNUM.
8294
8295 2011-04-06 Joseph Myers <joseph@codesourcery.com>
8296
8297 * doc/tm.texi.in: Document C target hooks as separate from general
8298 target hooks.
8299 * doc/tm.texi: Regenerate.
8300 * genhooks.c (struct hook_desc): Add docname field.
8301 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
8302 docname field.
8303 (hook_array): Include c-target.def.
8304 (emit_documentation): Use docname field in output.
8305 (emit_init_macros): Take docname argument. Only emit definitions
8306 for hooks matching docname.
8307 (main): Expect additional arguments in all cases. Pass argument
8308 to emit_init_macros.
8309 * target.def: Move initial macro definitions and comments to
8310 target-hooks-macros.h.
8311 (gcc_targetcm): Move to c-family/c-target.def.
8312 * target.h (targetcm): Move declaration to c-family/c-target.h.
8313 * targhooks.c (default_handle_c_option): Move to
8314 c-family/c-opts.c.
8315 * targhooks.h (default_handle_c_option): Move declaration to
8316 c-family/c-common.h.
8317 * target-hooks-macros.h: New file.
8318 * config.gcc (target_has_targetcm): Define and use to add to
8319 c_target_objs and cxx_target_objs.
8320 * config/default-c.c: New file.
8321 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
8322 of target.h and target-def.h.
8323 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
8324 (darwin_objc_construct_string, darwin_cfstring_ref_p,
8325 darwin_check_cfstring_format_arg): Make static.
8326 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
8327 TARGET_STRING_OBJECT_REF_TYPE_P,
8328 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
8329 * config/darwin-protos.h (darwin_objc_construct_string,
8330 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
8331 declare.
8332 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
8333 TARGET_STRING_OBJECT_REF_TYPE_P,
8334 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
8335 * config/t-darwin (darwin-c.o): Update dependencies.
8336 * system.h (TARGET_HAS_TARGETCM): Poison.
8337 * Makefile.in (TARGET_H): Update.
8338 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
8339 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
8340 (default-c.o): New target.
8341 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
8342 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
8343 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
8344 c-target.def.
8345 (build/genhooks.o): Update dependencies.
8346
8347 2011-04-06 Richard Guenther <rguenther@suse.de>
8348
8349 * ipa-inline.c (enum inlining_mode): Remove.
8350 (cgraph_flatten): Use some other token.
8351 (cgraph_edge_early_inlinable_p): New function, split out from ...
8352 (cgraph_perform_always_inlining): New function, split out from ...
8353 (cgraph_decide_inlining_incrementally): ... here.
8354 (cgraph_mark_inline_edge): Adjust.
8355 (cgraph_early_inlining): Re-structure.
8356 (pass_early_inline): Require SSA form.
8357
8358 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
8359 Julian Brown <julian@codesourcery.com>
8360 Mark Shinwell <shinwell@codesourcery.com>
8361
8362 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
8363 LO_REGS only for Thumb-1.
8364 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
8365 be used in short instructions when optimising for size on Thumb-2.
8366
8367 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
8368
8369 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
8370 associated with user returns to be preserved.
8371
8372 2011-04-06 Tristan Gingold <gingold@adacore.com>
8373
8374 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
8375 symbol_queue_size, DBXOUT_DECR_NESTING,
8376 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
8377 if XCOFF_DEBUGGING_INFO.
8378
8379 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
8380
8381 * config/i386/i386.md (attribute isa): New.
8382 (attribute enabled): New.
8383 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
8384 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
8385 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
8386 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
8387 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
8388 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8389 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
8390 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
8391
8392 * config/i386/sse.md (VF): New mode iterator.
8393 (VF1): Ditto.
8394 (VF2): Ditto.
8395 (VF_128): Ditto.
8396 (SSEMODEF4): Remove.
8397 (attribute sse): Handle V8SF and V4DF modes.
8398 (<absneg:code><mode>2): Use VF mode iterator.
8399 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
8400 mode iterator.
8401 (<plusminus_insn><mode>3): Use VF mode iterator.
8402 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
8403 Use VF mode iterator.
8404 (<sse>_vm<plusminus_insn><mode>3): Merge with
8405 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
8406 (mul<mode>3): Use VF mode iterator.
8407 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
8408 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
8409 mode iterator.
8410 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
8411 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
8412 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
8413 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
8414 mode iterator.
8415 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
8416 Use VF1 mode iterator.
8417 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
8418 (sqrt<VF2:mode>2): New expander.
8419 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
8420 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
8421 and sqrtv2df2. Use VF mode iterator.
8422 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
8423 mode iterator.
8424 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
8425 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
8426 Use VF1 mode iterator.
8427 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
8428 (<smaxmin:code><mode>3): Use VF mode iterator.
8429 (*<smaxmin:code><mode>3_finite): Merge with
8430 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
8431 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8432 (<sse>_vm<smaxmin:code><mode>2): Merge with
8433 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
8434 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
8435 mode iterator.
8436 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
8437 mode iterator.
8438 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
8439 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
8440 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
8441 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
8442 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
8443 VF mode iterator.
8444 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
8445 Use VF_128 mode iterator.
8446 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
8447 mode iterator.
8448 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
8449 VF_128 mode iterator.
8450 (vcond<mode>): Use VF mode iterator.
8451 * config/i386/predicates.md (sse_comparison_operator): Merge with
8452 avx_comparison_float_operator. Do not declare as special_predicate.
8453 * config/i386/i386.c (struct builtin_description): Update for renamed
8454 compare patterns.
8455 (ix86_expand_args_builtin): Ditto.
8456 (ix86_expand_sse_compare_mask): Ditto.
8457
8458 2011-04-06 Richard Guenther <rguenther@suse.de>
8459
8460 * tree-inline.c (estimate_num_insns): For calls simply account
8461 for all passed arguments and a used return value.
8462
8463 2011-04-06 Richard Guenther <rguenther@suse.de>
8464
8465 PR tree-optimization/47663
8466 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
8467 call_stmt_time fields.
8468 (cgraph_edge_inlinable_p): Declare.
8469 (cgraph_edge_recursive_p): New inline function.
8470 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
8471 (cgraph_clone_edge): Copy it.
8472 * ipa-inline.c (cgraph_estimate_edge_time): New function.
8473 Account for call stmt time.
8474 (cgraph_estimate_time_after_inlining): Take edge argument.
8475 (cgraph_estimate_edge_growth): Account call stmt size.
8476 (cgraph_estimate_size_after_inlining): Take edge argument.
8477 (cgraph_mark_inline_edge): Adjust.
8478 (cgraph_check_inline_limits): Likewise.
8479 (cgraph_recursive_inlining_p): Remove.
8480 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
8481 (cgraph_decide_recursive_inlining): Take edge argument and
8482 adjust.
8483 (cgraph_decide_inlining_of_small_functions): Do not avoid
8484 diags for recursive inlining here.
8485 (cgraph_flatten): Adjust.
8486 (cgraph_decide_inlining_incrementally): Likewise.
8487 (estimate_function_body_sizes): Remove call cost handling.
8488 (compute_inline_parameters): Initialize caller edge call costs.
8489 (cgraph_estimate_edge_growth): New function.
8490 (cgraph_estimate_growth): Use it.
8491 (cgraph_edge_badness): Likewise.
8492 (cgraph_check_inline_limits): Take an edge argument.
8493 (cgraph_decide_inlining_of_small_functions): Adjust.
8494 (cgraph_decide_inlining): Likewise.
8495 * tree-inline.c (estimate_num_insns): Only account for call
8496 return value if it is used.
8497 (expand_call_inline): Avoid diagnostics on recursive inline
8498 functions here.
8499 * lto-cgraph.c (lto_output_edge): Output edge call costs.
8500 (input_edge): Input edge call costs.
8501
8502 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8503
8504 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
8505
8506 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
8507
8508 * doc/invoke.texi (Spec Files): Fix typo.
8509
8510 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
8511
8512 * profile.c (branch_prob): Move declaration of local variable. Remove
8513 obsolete ??? comment. Expand the location explicitly instead of using
8514 the LOCATION_FILE and LOCATION_LINE macros.
8515
8516 2011-04-06 Wei Guozhi <carrot@google.com>
8517
8518 PR target/47855
8519 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
8520 (arm_cond_branch): Likewise.
8521 (arm_cond_branch_reversed): Likewise.
8522 (arm_jump): Likewise.
8523 (push_multi): Likewise.
8524 * config/arm/constraints.md (Py): New constraint.
8525
8526 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8527
8528 PR bootstrap/48471
8529 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
8530 Move these...
8531 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
8532 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
8533 #ifdef DBX_DEBUGGING_INFO.
8534
8535 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
8536
8537 PR bootstrap/48403
8538 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
8539 if old and new states differ.
8540
8541 2011-04-05 Joseph Myers <joseph@codesourcery.com>
8542
8543 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
8544 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
8545 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
8546 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
8547 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
8548 mcfv4e): Use Alias.
8549 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
8550 ColdFire options to -mcpu= options.
8551
8552 2011-04-05 Jeff Law <law@redhat.com>
8553
8554 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
8555 check if BB is a successor of LOOP->header and return
8556 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
8557
8558 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
8559
8560 * cprop.c (struct reg_use): Remove.
8561 (reg_use_table): Make an array of RTX.
8562 (find_used_regs, constprop_register, local_cprop_pass,
8563 bypass_block): Simplify users of reg_use_table.
8564 (cprop_insn): Likewise. Iterate if copy propagation succeeded
8565 on one of the uses found by find_used_regs.
8566
8567 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8568
8569 PR bootstrap/48469
8570 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
8571 declaration.
8572
8573 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8574
8575 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
8576 as an rtx.
8577 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
8578
8579 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
8580
8581 PR middle-end/48441
8582 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
8583
8584 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8585
8586 * combine.c: Include obstack.h.
8587 (struct insn_link): Define.
8588 (uid_log_links): Adjust type.
8589 (FOR_EACH_LOG_LINK): New macro.
8590 (insn_link_obstack): Declare.
8591 (alloc_insn_link): Define.
8592 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
8593 type of link variables.
8594 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
8595 (try_combine, record_promoted_values, distribute_notes): Likewise.
8596 (distribute_links): Likewise. Tweak prototype.
8597 (clear_log_links): Delete.
8598 (adjust_for_new_dest): Call alloc_insn_link.
8599 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
8600
8601 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8602
8603 * gcse.c (modify_mem_list): Convert to an array of VECs.
8604 (canon_modify_mem_list, compute_transp): Tweak formatting.
8605 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
8606 (load_killed_in_block_p): Likewise.
8607 (record_last_mem_set_info): Likewise.
8608 (clear_modify_mem_tables): Likewise.
8609
8610 2011-04-05 Tom de Vries <tom@codesourcery.com>
8611
8612 PR middle-end/48461
8613 * function.c (emit_use_return_register_into_block): Only define if
8614 HAVE_return.
8615
8616 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
8617
8618 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
8619
8620 2011-04-05 Joseph Myers <joseph@codesourcery.com>
8621
8622 * config/rx/rx-opts.h: New.
8623 * config/rx/rx.c (rx_cpu_type): Remove.
8624 (rx_handle_option): Don't assert that global structures are in
8625 use. Access variables via opts pointer. Defer most handling of
8626 OPT_mint_register_. Use error_at.
8627 (rx_option_override): Handle deferred OPT_mint_register_ here.
8628 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
8629 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
8630 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
8631 (rx_cpu_types): New Enum and EnumValue entries.
8632 (mint-register=): Use Defer and use Var accordingly.
8633
8634 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8635
8636 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
8637 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
8638 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
8639 Move these...
8640 (debug_free_queue, debug_nesting, symbol_queue_index):
8641 ...and these...
8642 * dbxout.c: ...to here. Make static.
8643
8644 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8645
8646 * gcse.c (modify_pair): Define. Define a VEC of it.
8647 (canon_modify_mem_list): Convert to an array of VECs.
8648 (free_insn_expr_list_list): Delete.
8649 (clear_modify_mem_tables): Call VEC_free instead.
8650 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
8651 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
8652 (canon_list_insert, compute_transp): Likewise.
8653
8654 2011-04-05 Tom de Vries <tom@codesourcery.com>
8655
8656 PR target/43920
8657 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
8658 for size.
8659
8660 2011-04-05 Tom de Vries <tom@codesourcery.com>
8661
8662 PR target/43920
8663 * function.c (emit_use_return_register_into_block): New function.
8664 (thread_prologue_and_epilogue_insns): Use
8665 emit_use_return_register_into_block.
8666
8667 2011-04-05 Tom de Vries <tom@codesourcery.com>
8668
8669 PR target/43920
8670 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
8671 insn.
8672
8673 2011-04-05 Tom de Vries <tom@codesourcery.com>
8674
8675 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
8676
8677 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
8678
8679 * config/arm/arm.md (define_constants for unspec): Replace with
8680 define_c_enum.
8681 (define_constants for unspecv): Replace with define_c_enum.
8682 * config/arm/neon.md (define_constants for unspec): Replace with
8683 define_c_enum.
8684
8685 2011-04-04 Richard Henderson <rth@redhat.com>
8686
8687 PR bootstrap/48400
8688 * dwarf2out.c (output_line_info): Always emit line info from
8689 at least one section.
8690 (dwarf2out_init): Create text_section_line_info here ...
8691 (set_cur_line_info_table): ... not here.
8692
8693 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
8694
8695 PR target/48380
8696 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
8697 not called.
8698
8699 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
8700
8701 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
8702
8703 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
8704 (expr_equiv_p): Remove.
8705 (insert_set_in_table): Look at <dest, src> pair instead of expr.
8706 (hash_scan_set): Update call to insert_set_in_table.
8707 (dump_hash_table): Dump <dest, src> pair.
8708 (lookup_set): Simplify. Lookup <dest, src> pair.
8709 (compute_transp): Remove, fold heavily simplified code into...
8710 (compute_local_properties): ...here. Expect COMP and TRANSP
8711 unconditionally.
8712 (find_avail_set): Take set directly from struct expr.
8713 (find_bypass-set): Likewise.
8714 (bypass_block): Likewise.
8715 (cprop_insn): Likewise. Remove redundant INSN_P test.
8716
8717 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
8718 checks on form of COND from find_implicit_sets to here.
8719 (find_implicit_sets): Cleanup control flow. Split critical edges
8720 if it exposes implicit sets. Allocate/resize implicit_sets as
8721 necessary.
8722 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
8723 changed something. Run df_analyze after find_implicit_sets if any
8724 edges were split. Do not allocate implicit_sets here.
8725
8726 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
8727 (gcse_obstack): Renamed to cprop_obstack.
8728 (GNEW, GNEWVEC, GNEWVAR): Remove.
8729 (gmalloc): Remove.
8730 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
8731 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
8732 (gcse_alloc): Likewise, and rename to cprop_alloc.
8733 (alloc_gcse_men, free_gcse_mem): Remove.
8734 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
8735 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
8736 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
8737
8738 * cprop.c (oprs_not_set_p): Remove.
8739 (mark_set, mark_clobber): Remove.
8740 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
8741 (reg_not_set_p): New function.
8742 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
8743 (cprop_insn): Likewise.
8744 (cprop_jump): Use FOR_EACH_EDGE.
8745
8746 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
8747
8748 PR bootstrap/48403
8749 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
8750 (rank_for_schedule): Use scheduled_insns vector instead of
8751 last_scheduled_insn.
8752 (ok_for_early_queue_removal): Likewise.
8753 (queue_to_ready): Search forward in nonscheduled_insns_begin if
8754 we have a dbg_cnt.
8755 (choose_ready): Likewise.
8756 (commit_schedule): Use VEC_iterate.
8757 (schedule_block): Initialize nonscheduled_insns_begin. If we have
8758 a dbg_cnt, use it and ensure the first insn is in the ready list.
8759 (haifa_sched_init): Allocate scheduled_insns.
8760 (sched_extend_ready_list): Don't allocate it; reserve space.
8761 (haifa_sched_finish): Free it.
8762
8763 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8764
8765 * optc-gen.awk: Always remove type from Variable entry before
8766 recording in var_seen.
8767
8768 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
8769
8770 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
8771 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
8772 call to tidy_fallthru_edges.
8773
8774 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8775
8776 * doc/options.texi (ToLower): Document.
8777 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
8778 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
8779 * opts.h (cl_option): Add cl_tolower field.
8780 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
8781 arguments with lowercase strings.
8782 * config/rx/rx.opt (mcpu=): Add ToLower.
8783 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
8784 argument.
8785
8786 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
8787
8788 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
8789
8790 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
8791
8792 * config/vax/vax.c: Include reload.h.
8793
8794 2011-04-04 Anatoly Sokolov <aesok@post.ru>
8795
8796 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
8797 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
8798 (sparc_preferred_reload_class): New function.
8799
8800 2011-04-04 Jakub Jelinek <jakub@redhat.com>
8801
8802 PR debug/48401
8803 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8804 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
8805
8806 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
8807
8808 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
8809 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
8810
8811 2011-04-03 Anatoly Sokolov <aesok@post.ru>
8812
8813 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
8814 (ASM_OUTPUT_ALIGNED_BSS): Define.
8815
8816 2011-04-03 Michael Matz <matz@suse.de>
8817
8818 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
8819 and next_slot members.
8820 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
8821 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
8822 (lto_streamer_cache_append): Declare.
8823 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
8824 unsigned index, remove offset parameter, ensure that we append
8825 or update existing entries.
8826 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
8827 parameter, update next_slot for append.
8828 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
8829 parameter.
8830 (lto_streamer_cache_insert_at): Likewise.
8831 (lto_streamer_cache_append): New function.
8832 (lto_streamer_cache_lookup): Use unsigned index.
8833 (lto_streamer_cache_get): Likewise.
8834 (lto_record_common_node): Don't test tree_node_can_be_shared.
8835 (preload_common_node): Adjust call to lto_streamer_cache_insert.
8836 (lto_streamer_cache_delete): Don't free offsets member.
8837 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
8838 (lto_output_string_with_length): Use lto_output_data_stream.
8839 (lto_output_tree_header): Remove ix parameter, don't write it.
8840 (lto_output_builtin_tree): Likewise.
8841 (lto_write_tree): Adjust callers to above, don't track and write
8842 offset, write unsigned index.
8843 (output_unreferenced_globals): Don't emit all global vars.
8844 (write_global_references): Use unsigned indices.
8845 (lto_output_decl_state_refs): Likewise.
8846 (write_symbol): Likewise.
8847 * lto-streamer-in.c (lto_input_chain): Move earlier.
8848 (input_function): Use unsigned index.
8849 (input_alias_pairs): Don't read and then ignore all global vars.
8850 (lto_materialize_tree): Remove ix_p parameter, don't read index,
8851 don't pass it back, use lto_streamer_cache_append.
8852 (lto_register_var_decl_in_symtab): Use unsigned index.
8853 (lto_register_function_decl_in_symtab): Likewise.
8854 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
8855 index.
8856 (lto_get_builtin_tree): Don't read index, use
8857 lto_streamer_cache_append.
8858 (lto_read_tree): Adjust call to lto_materialize_tree.
8859
8860 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
8861 don't use function calls in arguments to MIN.
8862
8863 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
8864 twice.
8865
8866 * gimple.c (gimple_type_leader_entry): Mark deletable.
8867
8868 2011-04-03 Alan Modra <amodra@gmail.com>
8869
8870 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
8871
8872 2011-04-03 Michael Matz <matz@suse.de>
8873
8874 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
8875 an integer.
8876 * tree.h (tree_decl_non_common.vindex): Adjust comment.
8877
8878 2011-04-03 Michael Matz <matz@suse.de>
8879
8880 * cgraphbuild.c (record_reference): Canonicalize constructor values.
8881 * gimple-fold.c (canonicalize_constructor_val): Accept being called
8882 without function context.
8883 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
8884 current_function_decl and cfun.
8885
8886 2011-04-03 Michael Matz <matz@suse.de>
8887
8888 * tree.c (decl_init_priority_insert): Don't create entry for
8889 default priority.
8890 (decl_fini_priority_insert): Ditto.
8891 (fields_compatible_p, find_compatible_field): Remove.
8892 * tree.h (fields_compatible_p, find_compatible_field): Remove.
8893 * gimple.c (gimple_compare_field_offset): Adjust block comment.
8894
8895 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
8896
8897 * combine.c (try_combine): Remove useless local variable.
8898
8899 2011-04-03 Richard Guenther <rguenther@suse.de>
8900 Ira Rosen <ira.rosen@linaro.org>
8901
8902 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
8903 non-variable offsets and compare the remaining bases of the two
8904 accesses instead of looking for exact same data-ref.
8905
8906 2011-04-02 Kai Tietz <ktietz@redhat.com>
8907
8908 PR target/48416
8909 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
8910
8911 * i386.c (ix86_is_msabi_thiscall): New helper function.
8912 (ix86_is_type_thiscall): New helper function.
8913 (ix86_comp_type_attributes): Handle thiscall for method-functions
8914 special.
8915 (init_cumulative_args): Likewise.
8916 (find_drap_reg): Likewise.
8917 (ix86_static_chain): Likewise.
8918 (x86_this_parameter): Likewise.
8919 (x86_output_mi_thunk): Likewise.
8920
8921 2011-04-01 Olivier Hainque <hainque@adacore.com>
8922 Nicolas Setton <setton@adacore.com>
8923 Eric Botcazou <ebotcazou@adacore.com>
8924
8925 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
8926 (add_gnat_descriptive_type_attribute): New function.
8927 (gen_array_type_die): Call it.
8928 (gen_enumeration_type_die): Likewise.
8929 (gen_struct_or_union_type_die): Likewise.
8930 (modified_type_die): Likewise.
8931 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
8932 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
8933 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
8934
8935 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8936
8937 PR bootstrap/48148
8938 * dwarf2out.c (resolve_addr): Don't call force_decl_die
8939 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
8940
8941 Revert:
8942 2011-03-17 Richard Guenther <rguenther@suse.de>
8943
8944 PR bootstrap/48148
8945 * lto-cgraph.c (input_overwrite_node): Clear the abstract
8946 origin for decls in other ltrans units.
8947 (input_varpool_node): Likewise.
8948
8949 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8950
8951 PR middle-end/48335
8952 * expr.c (expand_assignment): Handle all possibilities
8953 if TO_RTX is CONCAT.
8954 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
8955 (store_split_bit_field): If SUBREG_REG (op0) or
8956 op0 itself has smaller mode than word, return it
8957 for offset 0 and const0_rtx for out-of-bounds stores.
8958 If word is const0_rtx, skip it.
8959
8960 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
8961
8962 * config/h8300/h8300.c (print_operand_address): Rename to...
8963 (h8300_print_operand_address): ...this. Make static. Adjust comments.
8964 Call h8300_print_operand and h8300_print_operand_address instead of
8965 print_operand and print_operand_address. Declare.
8966 (print_operand): Renake to...
8967 (h8300_print_operand): ...this. Make static. Adjust comments.
8968 Call h8300_print_operand instead of print_operand. Declare.
8969 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
8970 (h8300_register_move_cost): Likewise.
8971 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
8972 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
8973 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
8974 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
8975 * config/h8300/h8300-protos.h (print_operand): Delete.
8976 (print_operand_address): Delete.
8977
8978 2011-04-01 Richard Henderson <rth@redhat.com>
8979
8980 PR 48400
8981 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
8982 in strict mode before dwarf4. Re-order tests to early out
8983 before switching sections.
8984
8985 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
8986
8987 * config/h8300/constraints.md: New file.
8988 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
8989 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
8990 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
8991 * config/h8300/predicates.md (bit_operand): Likewise.
8992 (incdec_operand): Use satisfies_constraint_M and
8993 satisfies_constraint_O. Don't use C code block.
8994 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
8995 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
8996 (compute_mov_length): Use satisfies_constraint_G.
8997 (fix_bit_operand): Use satisfies_constraint_U.
8998 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
8999 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
9000 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
9001 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
9002 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
9003 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
9004 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9005 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
9006 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
9007 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
9008 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
9009 (EXTRA_MEMORY_CONSTRAINT): Delete.
9010
9011 2011-04-01 Andrew Pinski <pinskia@gmail.com>
9012 Michael Meissner <meissner@linux.vnet.ibm.com>
9013
9014 PR target/48262
9015 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
9016 operands, as per the specifications.
9017
9018 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
9019 (vec_extract_evenv4sf): Ditto.
9020 (vec_extract_evenv8hi): Ditto.
9021 (vec_extract_evenv16qi): Ditto.
9022 (vec_extract_oddv4si): Ditto.
9023
9024 2011-03-31 Mark Wielaard <mjw@redhat.com>
9025
9026 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
9027 high_pc attribute if the CU has no associated code. Only output
9028 DW_AT_entry_pc for CU if not generating strict dwarf and
9029 dwarf_version < 4.
9030
9031 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
9032
9033 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
9034 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
9035 out of ...
9036 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
9037 * final.c (final_start_function): Call the new function rather
9038 than using a NULL argument for dwarf2out_frame_debug.
9039
9040 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
9041 that contains the prologue.
9042
9043 * haifa-sched.c (queue_insn): New arg REASON. All callers
9044 changed. Print it in debugging output.
9045
9046 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
9047
9048 * sched-ebb.c (begin_schedule_ready): Remove second argument.
9049 Split most of the code into...
9050 (begin_move_insn): ... here. New function.
9051 (ebb_sched_info): Add a pointer to it.
9052 * haifa-sched.c (scheduled_insns): New static variable.
9053 (sched_extend_ready_list): Allocate it.
9054 (schedule_block): Use it to record the order of scheduled insns.
9055 Perform RTL changes to move insns only after all scheduling
9056 decisions have been made.
9057 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
9058 begin_move_insn field.
9059 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
9060 * sched-int.h (struct haifa_sched_info): Remove second argument
9061 from begin_schedule_ready hook. Add new member begin_move_insn.
9062 * sched-rgn.c (begin_schedule_ready): Remove second argument.
9063 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
9064
9065 * haifa-sched.c (prune_ready_list): New function, broken out of
9066 schedule_block.
9067 (schedule_block): Use it.
9068
9069 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9070
9071 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
9072
9073 2011-04-01 Kai Tietz <ktietz@redhat.com>
9074
9075 * config.gcc (*-*-mingw*): Allow as option the
9076 posix threading model.
9077 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
9078 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
9079 definition.
9080 (CPP_SPEC): Add pthread/no-pthread handling.
9081 (LIB_SPEC): Likewise.
9082 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
9083 (LIB_SPEC): Likewise.
9084 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
9085 flag to pass -pthread option for shared libgcc build.
9086 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
9087 for shared libgcc build.
9088 * config/i386/t-mingw-pthread: New file.
9089 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
9090 New define to enable use of library pthread by default.
9091 * config/i386/mingw.opt (pthread): New driver option.
9092 (no-pthread): New driver option.
9093 * config/i386/cygming.opt: Make sure trailing empty line is retained.
9094 * config/i386/mingw-w64.opt: Likewise.
9095
9096 2011-04-01 Gary Funck <gary@intrepid.com>
9097
9098 * c-decl.c (grokdeclarator): Fix formatting.
9099
9100 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
9101
9102 * expr.c (emit_block_move_via_movmem): Use n_generator_args
9103 instead of n_operands.
9104 (set_storage_via_setmem): Likewise.
9105 * optabs.c (maybe_gen_insn): Likewise.
9106 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
9107 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
9108 (mips_expand_builtin_direct): Likewise.
9109 * config/spu/spu.c (expand_builtin_args): Likewise.
9110
9111 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
9112
9113 * recog.h (insn_data_d): Add n_generator_args.
9114 * genoutput.c (data): Likewise.
9115 (output_insn_data): Print it.
9116 (max_opno, num_dups): Delete.
9117 (scan_operands): Just fill in "d->operand[...]".
9118 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
9119
9120 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
9121
9122 * gensupport.h (pattern_stats): New structure.
9123 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
9124 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
9125 (max_operand_1, max_operand_vec): Delete.
9126 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
9127
9128 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
9129
9130 * emit-rtl.c (emit_pattern_after_setloc): New function.
9131 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
9132 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
9133 (emit_pattern_after): New function.
9134 (emit_insn_after, emit_jump_insn_after): Call it.
9135 (emit_call_insn_after, emit_debug_insn_after): Likewise.
9136 (emit_pattern_before_setloc): New function.
9137 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
9138 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
9139 Likewise.
9140 (emit_pattern_before): New function.
9141 (emit_insn_before, emit_jump_insn_before): Call it.
9142 (emit_call_insn_before, emit_debug_insn_before): Likewise.
9143
9144 2011-03-31 Richard Henderson <rth@redhat.com>
9145
9146 * dwarf2out.c (dw_separate_line_info_ref): Remove.
9147 (dw_separate_line_info_entry): Remove.
9148 (enum dw_line_info_opcode): New.
9149 (dw_line_info_entry): Use it.
9150 (dw_line_info_table, dw_line_info_table_p): New.
9151 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
9152 (line_info_table, line_info_label_num): Remove.
9153 (line_info_table_in_use): Remove.
9154 (separate_line_info_table): Remove.
9155 (separate_line_info_table_allocated): Remove.
9156 (separate_line_info_table_in_use): Remove.
9157 (LINE_INFO_TABLE_INCREMENT): Remove.
9158 (line_info_label_num): New.
9159 (cur_line_info_table): New.
9160 (text_section_line_info, cold_text_section_line_info): New.
9161 (separate_line_info): New.
9162 (SEPARATE_LINE_CODE_LABEL): Remove.
9163 (print_dwarf_line_table): Remove.
9164 (debug_dwarf): Don't dump it.
9165 (output_one_line_info_table): New.
9166 (output_line_info): Use it.
9167 (new_line_info_table): New.
9168 (set_cur_line_info_table): New.
9169 (dwarf2out_switch_text_section): Use it.
9170 (dwarf2out_begin_function): Likewise.
9171 (push_dw_line_info_entry): New.
9172 (dwarf2out_source_line): Rewrite for new line info tables.
9173 (dwarf2out_init): Remove dead initailizations.
9174
9175 2011-03-31 Joseph Myers <joseph@codesourcery.com>
9176
9177 * opts.h (cl_option): Add comments to fields. Add bit-fields for
9178 various flags.
9179 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
9180 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
9181 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
9182 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
9183 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
9184 * opt-functions.awk (flag_init, switch_bit_fields): New.
9185 (switch_flags): Don't handle flags moved to bit-fields. Don't
9186 generate CL_MISSING_OK or CL_SAVE.
9187 * optc-gen.awk: Update to generate bit-field output as well as
9188 flags field.
9189 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
9190 bit-field instead of CL_REJECT_DRIVER flag.
9191 * opts-common.c (generate_canonical_option,
9192 decode_cmdline_option): Use bit-fields instead of CL_* flags.
9193 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
9194 instead of CL_REJECT_NEGATIVE flag.
9195 * toplev.c (print_switch_values): Use cl_report bit-field instead
9196 of CL_REPORT flag.
9197
9198 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
9199
9200 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
9201 a zero minimum index only if it is redundant.
9202
9203 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
9204
9205 PR rtl-optimization/48381
9206 * ira-color.c (assign_hard_reg): Use hard reg set intersection
9207 instead of ira_class_hard_reg_index for calculating conflicting
9208 hard registers.
9209
9210 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
9211
9212 * cprop.c: Clean up hash table building.
9213 (reg_avail_info): Remove.
9214 (oprs_available_p): Remove.
9215 (record_last_reg_set_info): Remove.
9216 (record_last_set_info): Remove.
9217 (reg_available_p): New function.
9218 (gcse_constant_p): Do not treat unfolded conditions as constants.
9219 (make_set_regs_unavailable): New function.
9220 (hash_scan_set): Simplify with new reg_available_p.
9221 (compute_hash_table_work): Traverse insns stream only once.
9222 Do not compute reg_avail_info. Traverse insns in reverse order.
9223 Record implicit sets after recording explicit sets from the block.
9224
9225 2011-03-31 Michael Matz <matz@suse.de>
9226
9227 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
9228
9229 2011-03-31 Anatoly Sokolov <aesok@post.ru>
9230
9231 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
9232 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
9233 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9234 (h8300_mode_dependent_address_p): New function.
9235 (h8300_get_index): Make static.
9236
9237 2011-03-31 Jeff Law <law@redhat.com>
9238
9239 * reload1.c (elimination_effects): Fix typo in recent change.
9240
9241 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
9242 typo potentially leading to null pointer dereference.
9243
9244 * caller-save.c (new_saved_hard_reg): Eliminate return value.
9245 (setup_save_areas): Corresponding changes to avoid useless
9246 assignments.
9247
9248 * jump.c (reversed_comparison_code_parts): Avoid successive return
9249 statements when REVERSE_CONDITION is defined.
9250
9251 * expr.c (expand_assignment): Avoid useless assignments.
9252 (expand_expr_real_1): Likewise.
9253 (expand_expr_real_2): Avoid useless statements.
9254
9255 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
9256
9257 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
9258
9259 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
9260 statements.
9261
9262 * stmt.c (expand_expr_stmt): Avoid useless assignment.
9263
9264 2011-03-31 Joseph Myers <joseph@codesourcery.com>
9265
9266 PR target/47109
9267 * doc/tm.texi.in (TARGET_VERSION): Remove.
9268 * doc/tm.texi: Regenerate.
9269 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
9270 * collect2.c (main): Don't use TARGET_VERSION.
9271 * mips-tdump.c (main): Don't use TARGET_VERSION.
9272 * mips-tfile.c (main): Don't use TARGET_VERSION.
9273 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
9274 * config/rs6000/vxworksae.h: Remove.
9275 * config/alpha/alpha.h (TARGET_VERSION): Remove.
9276 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
9277 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
9278 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
9279 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
9280 * config/arm/arm.h (TARGET_VERSION): Remove.
9281 * config/arm/coff.h (TARGET_VERSION): Remove.
9282 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
9283 * config/arm/elf.h (TARGET_VERSION): Remove.
9284 * config/arm/freebsd.h (TARGET_VERSION): Remove.
9285 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
9286 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
9287 * config/arm/pe.h (TARGET_VERSION): Remove.
9288 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
9289 * config/arm/semi.h (TARGET_VERSION): Remove.
9290 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
9291 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
9292 * config/arm/vxworks.h (TARGET_VERSION): Remove.
9293 * config/avr/avr.h (TARGET_VERSION): Remove.
9294 * config/bfin/bfin.h (TARGET_VERSION): Remove.
9295 * config/fr30/fr30.h (TARGET_VERSION): Remove.
9296 * config/frv/frv.h (TARGET_VERSION): Remove.
9297 * config/h8300/h8300.h (TARGET_VERSION): Remove.
9298 * config/i386/cygwin.h (TARGET_VERSION): Remove.
9299 * config/i386/darwin.h (TARGET_VERSION): Remove.
9300 * config/i386/darwin64.h (TARGET_VERSION): Remove.
9301 * config/i386/djgpp.h (TARGET_VERSION): Remove.
9302 * config/i386/freebsd.h (TARGET_VERSION): Remove.
9303 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
9304 * config/i386/gnu.h (TARGET_VERSION): Remove.
9305 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
9306 * config/i386/i386elf.h (TARGET_VERSION): Remove.
9307 * config/i386/linux.h (TARGET_VERSION): Remove.
9308 * config/i386/linux64.h (TARGET_VERSION): Remove.
9309 * config/i386/lynx.h (TARGET_VERSION): Remove.
9310 * config/i386/mingw32.h (TARGET_VERSION): Remove.
9311 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
9312 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
9313 * config/i386/netware.h (TARGET_VERSION): Remove.
9314 * config/i386/nto.h (TARGET_VERSION): Remove.
9315 * config/i386/openbsd.h (TARGET_VERSION): Remove.
9316 * config/i386/vxworks.h (TARGET_VERSION): Remove.
9317 * config/ia64/elf.h (TARGET_VERSION): Remove.
9318 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
9319 * config/ia64/hpux.h (TARGET_VERSION): Remove.
9320 * config/ia64/linux.h (TARGET_VERSION): Remove.
9321 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
9322 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
9323 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9324 * config/lm32/lm32.h (TARGET_VERSION): Remove.
9325 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
9326 * config/m32c/m32c.h (TARGET_VERSION): Remove.
9327 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
9328 * config/m32r/m32r.h (TARGET_VERSION): Remove.
9329 * config/m68k/linux.h (TARGET_VERSION): Remove.
9330 * config/m68k/m68k.h (TARGET_VERSION): Remove.
9331 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
9332 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
9333 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
9334 * config/mep/mep.h (TARGET_VERSION): Remove.
9335 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
9336 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9337 * config/mips/iris6.h (MACHINE_TYPE): Remove.
9338 * config/mips/linux.h (TARGET_VERSION): Remove.
9339 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
9340 * config/mips/vxworks.h (TARGET_VERSION): Remove.
9341 * config/mmix/mmix.h (TARGET_VERSION): Remove.
9342 * config/mn10300/linux.h (TARGET_VERSION): Remove.
9343 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
9344 * config/pa/pa.h (TARGET_VERSION): Remove.
9345 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
9346 * config/picochip/picochip.h (TARGET_VERSION): Remove.
9347 * config/rs6000/aix.h (TARGET_VERSION): Remove.
9348 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
9349 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
9350 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
9351 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
9352 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
9353 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
9354 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
9355 * config/rs6000/linux.h (TARGET_VERSION): Remove.
9356 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
9357 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
9358 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
9359 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
9360 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
9361 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
9362 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
9363 * config/s390/linux.h (TARGET_VERSION): Remove.
9364 * config/s390/s390.h (TARGET_VERSION): Remove.
9365 * config/s390/tpf.h (TARGET_VERSION): Remove.
9366 * config/score/score.h (TARGET_VERSION): Remove.
9367 * config/sh/linux.h (TARGET_VERSION): Remove.
9368 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
9369 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
9370 * config/sh/sh.h (TARGET_VERSION): Remove.
9371 * config/sh/sh64.h (TARGET_VERSION): Remove.
9372 * config/sh/superh.h (TARGET_VERSION): Remove.
9373 * config/sh/vxworks.h (TARGET_VERSION): Remove.
9374 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
9375 * config/sparc/linux.h (TARGET_VERSION): Remove.
9376 * config/sparc/linux64.h (TARGET_VERSION): Remove.
9377 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
9378 TARGET_NAME32, TARGET_NAME): Remove.
9379 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
9380 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
9381 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
9382 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
9383 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
9384 * config/spu/spu.h (TARGET_VERSION): Remove.
9385 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
9386 * config/v850/v850.h (TARGET_VERSION): Remove.
9387 * config/vax/linux.h (TARGET_VERSION): Remove.
9388 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
9389 * config/xtensa/elf.h (TARGET_VERSION): Remove.
9390 * config/xtensa/linux.h (TARGET_VERSION): Remove.
9391
9392 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
9393
9394 PR target/48142
9395 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
9396 frame-related from frame-unrelated adjustments to the stack pointer.
9397
9398 2011-03-31 Jakub Jelinek <jakub@redhat.com>
9399
9400 * common.opt (fdebug-types-section): Move earlier.
9401 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
9402
9403 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
9404
9405 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
9406 var.
9407
9408 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
9409
9410 * tree.h (CASE_CHAIN): Define.
9411 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
9412 (gimple_redirect_edge_and_branch): Likewise.
9413
9414 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
9415
9416 PR middle-end/48367
9417 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
9418 calculation.
9419
9420 2011-03-30 Jeff Law <law@redhat.com>
9421
9422 * PR bootstrap/48371
9423 * reload1.c (reload): Fix botch in last change.
9424
9425 * reload.h (struct reload): Fix typo introduced in last change.
9426
9427 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9428
9429 * config/arm/arm.opt (mhard-float, msoft-float): Mark
9430 Undocumented. Remove help text.
9431 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
9432 -mhard-float.
9433
9434 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9435
9436 * doc/options.texi (NegativeAlias): Document.
9437 (Alias): Mention NegativeAlias.
9438 * opt-functions.awk: Handle NegativeAlias.
9439 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
9440 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
9441 * opts.h (CL_NEGATIVE_ALIAS): Define.
9442 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
9443 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
9444 OPT_mspe_.
9445 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
9446 Alias entries.
9447 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9448 mno-spe and mno-isel instead of mspe=no and -misel=no.
9449
9450 2011-03-29 Mark Wielaard <mjw@redhat.com>
9451
9452 * common.opt (fdebug-types-section): New flag.
9453 * doc/invoke.texi: Document new -fno-debug-types-section flag.
9454 * dwarf2out.c (use_debug_types): New define.
9455 (struct die_struct): Mark die_id with GTY desc use_debug_types.
9456 (print_die): Guard output of type unit signatures using
9457 use_debug_types.
9458 (build_abbrev_table): Replace assert of dwarf_version >= 4
9459 with assert on use_debug_types.
9460 (size_of_die): Likewise.
9461 (unmark_dies): Likewise.
9462 (value_format): Decide AT_ref_external form on use_debug_types.
9463 (output_die): Replace dwarf_version version check guard with
9464 use_debug_types where appropriate.
9465 (modified_type_die): Likewise.
9466 (gen_reference_type_die): Likewise.
9467 (dwarf2out_start_source_file): Likewise.
9468 (dwarf2out_end_source_file): Likewise.
9469 (prune_unused_types_walk_attribs): Likewise.
9470 (dwarf2out_finish): Likewise.
9471
9472 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
9473
9474 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
9475
9476 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9477
9478 PR rtl-optimization/48332
9479 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
9480 mode of input operand N and modeN to its actual mode.
9481
9482 2011-03-30 Jeff Law <law@redhat.com>
9483
9484 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
9485 define accessor macro.
9486 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
9487 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
9488 (reg_equiv_init): Likewise.
9489 (reg_equivs_size): New variable.
9490 (reg_equiv_init_size): Remove.
9491 (allocate_initial_values): Move prototype to here from....
9492 * integrate.h (allocate_initial_values): Remove prototype.
9493 * integrate.c: Include reload.h.
9494 (allocate_initial_values): Corresponding changes.
9495 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
9496 (fix_reg_equiv_init, no_equiv): Corresponding changes.
9497 (update_equiv_regs): Corresponding changes.
9498 (ira): Corresponding changes.
9499 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
9500 (push_secondary_reload): Corresponding changes.
9501 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
9502 (make_memloc, find_reloads_address): Corresponding changes.
9503 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
9504 (find_reloads_address_1): Corresponding changes.
9505 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
9506 (refers_to_regno_for_reload_p): Corresponding changes.
9507 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
9508 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
9509 * reload1.c: Include ggc.h.
9510 (grow_reg_equivs): New function.
9511 (replace_pseudos_in, reload): Corresponding changes.
9512 (calculate_needs_all_insns, alter_regs): Corresponding changes.
9513 (eliminate_regs_1, elimination_effects): Corresponding changes.
9514 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
9515 (delete_output_reload): Likewise.
9516 * caller-save.c (mark_referenced_regs): Corresponding changes.
9517 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
9518 * frv/predicates.md (frv_load_operand): Corresponding changes.
9519 * microblaze/microblaze.c (double_memory_operand): Corresponding
9520 changes.
9521 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
9522 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
9523 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
9524 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
9525 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
9526 changes.
9527 * pa/pa.c (emit_move_sequence): Corresponding changes.
9528 * vax/vax.c (nonindexed_address_p): Corresponding changes.
9529
9530 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9531
9532 PR target/47551
9533 * config/arm/arm.c (coproc_secondary_reload_class): Handle
9534 structure modes. Don't check neon_vector_mem_operand for
9535 vector or structure modes.
9536
9537 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9538 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9539
9540 PR target/43590
9541 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
9542 operand 1 and reshuffle the operands to match.
9543 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
9544
9545 2011-03-30 Christian Schüler <cschueler@gmx.de>
9546
9547 PR driver/48208
9548 * config/c.opt (F): Added 'Driver' to -F option.
9549
9550 PR driver/48260
9551 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
9552 handler function.
9553 * config/darwin.opt: Added '-arch' option.
9554
9555 2011-03-30 Nick Clifton <nickc@redhat.com>
9556
9557 * config/rx/rx.md: Add peepholes and patterns to combine
9558 extending loads and simple arithmetic instructions.
9559 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
9560 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
9561 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
9562 modes to use pre-decrement and post-increment addressing.
9563 (rx_is_restricted_memory_address): Add range checking of REG+INT
9564 addresses.
9565 (rx_print_operand): Add support for %Q. Fix handling of %Q.
9566 (rx_memory_move_cost): Adjust cost of stores.
9567 (rx_adjust_insn_length): New function.
9568
9569 2011-03-30 Jakub Jelinek <jakub@redhat.com>
9570
9571 PR c/48305
9572 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9573 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
9574 matching arg00/arg01 types.
9575
9576 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
9577
9578 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
9579 last_location to UNKNOWN_LOCATION.
9580
9581 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
9582
9583 PR target/48349
9584 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
9585 FLOAT_SSE_REGS.
9586
9587 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9588 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9589
9590 PR bootstrap/48337
9591 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
9592 Init(PROCESSOR_V7).
9593 (sparc_cpu): Likewise.
9594 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
9595 PROCESSOR_V7.
9596
9597 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9598
9599 PR target/48336
9600 PR middle-end/48342
9601 PR rtl-optimization/48345
9602 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
9603 hard regs for given mode from profitable regs when doing secondary
9604 allocation.
9605
9606 2011-03-29 Jeff Law <law@redhat.com>
9607
9608 PR bootstrap/48327
9609 * tree-ssa-threadupdate.c (struct redirection_data): Remove
9610 do_not_duplicate field.
9611 (lookup_redirection_data): Corresponding changes.
9612 (create_duplicates): Always create a template block.
9613 (redirect_edges): Remove code which reused the original block
9614 when it was going to become unreachable code.
9615 (thread_block): Don't set do_not_duplicate field.
9616
9617 2011-03-29 Joseph Myers <joseph@codesourcery.com>
9618
9619 * lto-opts.c (register_user_option_p, lto_register_user_option):
9620 Make type argument unsigned.
9621 * lto-streamer.h (lto_register_user_option): Make type argument
9622 unsigned.
9623 * opth-gen.awk: Make CL_* macros unsigned.
9624 * opts-common.c (find_opt): Make lang_mask argument unsigned.
9625 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
9626 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
9627 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
9628 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
9629 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
9630 (find_opt): Make lang_mask argument unsigned.
9631
9632 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9633
9634 PR rtl-optimization/48331
9635 PR rtl-optimization/48334
9636 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
9637 for any used algorithm.
9638
9639 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9640
9641 * ira-conflicts.c (build_object_conflicts): Add unused attribute
9642 to parent_max.
9643
9644 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
9645
9646 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
9647 (alpha_option_override): Don't set alpha_sr_alias_set.
9648 (emit_frame_store_1): Use gen_frame_mem rather than calling
9649 set_mem_alias_set.
9650 (alpha_expand_epilogue): Ditto.
9651
9652 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
9653
9654 PR tree-optimization/48290
9655 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
9656 vectorization, check that relevant phis in the basic block after
9657 the inner loop are really inner loop's exit phis.
9658
9659 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
9660
9661 PR debug/48190
9662 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
9663 (cached_dw_loc_list_def): New structure.
9664 (cached_dw_loc_list): New typedef.
9665 (cached_dw_loc_list_table): New variable.
9666 (cached_dw_loc_list_table_hash): New function.
9667 (cached_dw_loc_list_table_eq): Likewise.
9668 (add_location_or_const_value_attribute): Take a bool cache_p.
9669 Cache the list when the parameter is true.
9670 (gen_formal_parameter_die): Update caller.
9671 (gen_variable_die): Likewise.
9672 (dwarf2out_finish): Likewise.
9673 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
9674 while generating debug info for the decl.
9675 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
9676 (dwarf2out_init): Initialize cached_dw_loc_list_table.
9677 (resolve_addr): Cache the result of resolving a chain of
9678 location lists.
9679
9680 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
9681
9682 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
9683 conflict object hard regset nodes have intersecting hard reg sets.
9684
9685 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
9686 after regstat_init_n_sets_and_refs.
9687
9688 * ira.c: Add more comments at the top.
9689 (setup_stack_reg_pressure_class, setup_pressure_classes):
9690 Add comments how we compute the register pressure classes.
9691 (setup_allocno_and_important_classes): Add more comments.
9692 (setup_class_translate_array, reorder_important_classes)
9693 (setup_reg_class_relations): Add comments.
9694
9695 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
9696 start of the file.
9697
9698 * ira-color.c: Add 2011 to the Copyright line.
9699 (assign_hard_reg): Add more comments.
9700 (improve_allocation): Ditto.
9701
9702 * ira-costs.c: Add 2011 to the Copyright line.
9703 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
9704 comments.
9705 (setup_regno_cost_classes_by_mode): Ditto.
9706
9707 Initial patches from ira-improv branch:
9708
9709 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
9710
9711 * ira-build.c (ira_create_object): Remove initialization of
9712 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
9713 (ira_create_allocno): Remove initialization of
9714 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
9715 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
9716 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9717 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
9718 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
9719 Initialize ALLOCNO_ADD_DATA.
9720 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
9721 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
9722 ALLOCNO_REG.
9723 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
9724 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
9725
9726 * ira.c (ira_reallocate): Remove.
9727 (setup_pressure_classes): Call
9728 ira_init_register_move_cost_if_necessary. Use
9729 ira_register_move_cost instead of ira_get_register_move_cost.
9730 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
9731 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
9732
9733 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
9734 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9735 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
9736 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
9737 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
9738 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
9739 Fix formatting.
9740 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
9741 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9742 (struct allocno_color_data): New.
9743 (allocno_color_data_t): New typedef.
9744 (allocno_color_data): New definition.
9745 (ALLOCNO_COLOR_DATA): New macro.
9746 (struct object_color_data): New.
9747 (object_color_data_t): New typedef.
9748 (object_color_data): New definition.
9749 (OBJECT_COLOR_DATA): New macro.
9750 (update_copy_costs, calculate_allocno_spill_cost): Call
9751 ira_init_register_move_cost_if_necessary. Use
9752 ira_register_move_cost instead of ira_get_register_move_cost.
9753 (move_spill_restore, update_curr_costs): Ditto.
9754 (allocno_spill_priority): Make it inline.
9755 (color_pass): Allocate and free allocno_color_dat and object_color_data.
9756 (struct coalesce_data, coalesce_data_t): New.
9757 (allocno_coalesce_data): New definition.
9758 (ALLOCNO_COALESCE_DATA): New macro.
9759 (merge_allocnos, coalesced_allocno_conflict_p): Use
9760 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
9761 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
9762 (coalesce_allocnos): Ditto.
9763 (setup_coalesced_allocno_costs_and_nums): Ditto.
9764 (collect_spilled_coalesced_allocnos): Ditto.
9765 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
9766 (setup_slot_coalesced_allocno_live_ranges): Ditto.
9767 (coalesce_spill_slots): Ditto.
9768 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
9769 free allocno_coalesce_data.
9770
9771 * ira-conflicts.c: Fix formatting.
9772 (process_regs_for_copy): Call
9773 ira_init_register_move_cost_if_necessary. Use
9774 ira_register_move_cost instead of ira_get_register_move_cost.
9775 (build_object_conflicts): Optimize.
9776
9777 * ira-costs.c (record_reg_classes): Optimize. Call
9778 ira_init_register_move_cost_if_necessary. Use
9779 ira_register_move_cost, ira_may_move_in_cost, and
9780 ira_may_move_out_cost instead of ira_get_register_move_cost and
9781 ira_get_may_move_cost.
9782 (record_address_regs): Ditto.
9783 (scan_one_insn): Optimize.
9784 (find_costs_and_classes): Optimize.
9785 (process_bb_node_for_hard_reg_moves): Call
9786 ira_init_register_move_cost_if_necessary. Use
9787 ira_register_move_cost instead of ira_get_register_move_cost.
9788
9789 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
9790 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
9791 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
9792 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
9793 definitions.
9794 (ira_initiate_emit_data, ira_finish_emit_data)
9795 (create_new_allocno): New functions.
9796 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
9797 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
9798 Use ira_register_move_cost instead of ira_get_register_move_cost.
9799
9800 * ira-int.h: Fix some comments.
9801 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
9802 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9803 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
9804 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
9805 add_data.
9806 (struct ira_allocno): Make mode and aclass a bitfield. Move other
9807 bitfield after mode. Make hard_regno a short int. Make
9808 hard_regno short. Remove first_coalesced_allocno and
9809 next_coalesced_allocno. Move mem_optimized_dest_p,
9810 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
9811 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
9812 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
9813 temp, colorable_p. Add new member add_data.
9814 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
9815 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
9816 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
9817 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
9818 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
9819 (ALLOCNO_ADD_DATA): New macro.
9820 (ira_emit_data_t): New typedef.
9821 (struct ira_emit_data): New. Move mem_optimized_dest_p,
9822 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
9823 from struct ira_allocno.
9824 (ALLOCNO_EMIT_DATA): New macro.
9825 (ira_allocno_emit_data, allocno_emit_reg): New.
9826 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
9827 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
9828 (OBJECT_ADD_DATA): New macro.
9829 (ira_reallocate): Remove.
9830 (ira_initiate_emit_data, ira_finish_emit_data): New.
9831 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
9832 (ira_init_register_move_cost_if_necessary): New.
9833 (ira_object_conflict_iter_next): Merge into
9834 ira_object_conflict_iter_cond.
9835 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
9836
9837 * ira-live.c (process_single_reg_class_operands): Call
9838 ira_init_register_move_cost_if_necessary. Use
9839 ira_register_move_cost instead of ira_get_register_move_cost.
9840
9841 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
9842
9843 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
9844
9845 * ira-costs.c: Fix formatting.
9846 (cost_classes, cost_classes_num): Remove.
9847 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
9848 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
9849 (cost_classes_del, cost_classes_htab): New.
9850 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
9851 (initiate_regno_cost_classes, setup_cost_classes): New.
9852 (setup_regno_cost_classes_by_aclass): New.
9853 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
9854 (record_reg_classes): Use regno_cost_classes instead of
9855 cost_classes. Move checking opposite operand up.
9856 (record_address_regs): Use regno_cost_classes
9857 instead of cost_classes.
9858 (scan_one_insn): Ditto. Use always general register.
9859 (print_allocno_costs): Use regno_cost_classes instead of
9860 cost_classes.
9861 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
9862 (find_costs_and_classes): Set up cost classes for each registers.
9863 Use also their mode for this. Use regno_cost_classes instead of
9864 cost_classes.
9865 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
9866 cost_classes.
9867 (free_ira_costs, ira_init_costs): Don't use cost_classes.
9868 (ira_costs, ira_set_pseudo_classes): Call
9869 initiate_regno_cost_classes and finish_regno_cost_classes.
9870
9871 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
9872
9873 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
9874
9875 * target.def (ira_cover_classes): Remove.
9876
9877 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
9878
9879 * doc/tm.texi.in: Ditto.
9880
9881 * ira-conflicts.c: Remove mentioning cover classes from the file.
9882 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
9883 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
9884
9885 * targhooks.c (default_ira_cover_classes): Remove.
9886
9887 * targhooks.h (default_ira_cover_classes): Ditto.
9888
9889 * haifa-sched.c: Remove mentioning cover classes from the file.
9890 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9891 ira_pressure_classes and ira_pressure_classes_num instead of
9892 ira_reg_class_cover_size and ira_reg_class_cover. Use
9893 sched_regno_pressure_class instead of sched_regno_cover_class.
9894 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
9895 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9896
9897 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
9898 classes from the file.
9899 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
9900 (struct object_hard_regs, struct object_hard_regs_node): New.
9901 (struct ira_object): New members profitable_hard_regs,
9902 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
9903 (struct ira_allocno): Rename cover_class to aclass. Rename
9904 cover_class_cost and updated_cover_class_cost to class_cost and
9905 updated_class_cost. Remove splay_removed_p and
9906 left_conflict_size. Add new members colorable_p.
9907 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
9908 (ALLOCNO_COLORABLE_P): New macro.
9909 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
9910 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
9911 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
9912 (OBJECT_...): Rename parameter C to O.
9913 (OBJECT_PROFITABLE_HARD_REGS): New macro.
9914 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
9915 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
9916 (struct target_ira_int): New members x_ira_max_memory_move_cost,
9917 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
9918 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
9919 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
9920 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
9921 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
9922 x_ira_reg_class_subunion.
9923 (ira_max_memory_move_cost, ira_max_register_move_cost)
9924 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
9925 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
9926 (ira_important_class_nums, ira_reg_class_superunion): New macros.
9927 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
9928 (ira_reg_class_union): Rename to ira_reg_class_subunion.
9929 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9930 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9931 (ira_tune_allocno_costs_and_cover_classes): Rename to
9932 ira_tune_allocno_costs.
9933 (ira_debug_hard_regs_forest): New.
9934 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
9935 (ira_object_conflict_iter_next): Fix comments.
9936 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
9937 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
9938 cover_class to aclass.
9939 (ira_allocate_and_accumulate_costs): Ditto.
9940 (ira_allocate_and_set_or_copy_costs): Ditto.
9941
9942 * opts.c (decode_options): Remove ira_cover_class check.
9943
9944 * ira-color.c: Remove mentioning cover classes from the file. Use
9945 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
9946 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
9947 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9948 (splay-tree.h): Remove include.
9949 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
9950 before copy_freq_compare_func.
9951 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
9952 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
9953 New definitions.
9954 (hard_regs_roots, hard_regs_node_vec): Ditto.
9955 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
9956 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
9957 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
9958 (create_new_object_hard_regs_node): Ditto.
9959 (add_new_object_hard_regs_node_to_forest): Ditto.
9960 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
9961 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
9962 Ditto.
9963 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
9964 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
9965 (remove_unused_object_hard_regs_nodes): Ditto.
9966 (enumerate_object_hard_regs_nodes): Ditto.
9967 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
9968 (object_hard_regs_subnode_t): Ditto.
9969 (struct object_hard_regs_subnode): Ditto.
9970 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
9971 (setup_object_hard_regs_subnode_index): Ditto.
9972 (get_object_hard_regs_subnodes_num): Ditto.
9973 (form_object_hard_regs_nodes_forest): Ditto.
9974 (finish_object_hard_regs_nodes_tree): Ditto.
9975 (finish_object_hard_regs_nodes_forest): Ditto.
9976 (allocnos_have_intersected_live_ranges_p): Rename to
9977 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9978 (pseudos_have_intersected_live_ranges_p): Rename to
9979 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9980 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
9981 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
9982 (update_copy_costs): Remove assert. Skip cost update if the hard
9983 reg does not belong the class.
9984 (assign_hard_reg): Process only profitable hard regs.
9985 (uncolorable_allocnos_num): Make it scalar.
9986 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
9987 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
9988 and ira_reg_class_max_nregs.
9989 (bucket_allocno_compare_func): Check frequency first.
9990 (sort_bucket): Add compare function as a parameter.
9991 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
9992 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
9993 (push_allocno_to_stack): Rewrite for checking new allocno
9994 colorability.
9995 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
9996 (push_only_colorable): Pass new parameter to sort_bucket.
9997 (push_allocno_to_spill): Remove.
9998 (allocno_spill_priority_compare): Make it inline and rewrite.
9999 (splay_tree_allocate, splay_tree_free): Remove.
10000 (allocno_spill_sort_compare): New function.
10001 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
10002 build and use splay tree. Choose first allocno in uncolorable
10003 allocno bucket to spill. Remove setting spill cost.
10004 (all_conflicting_hard_regs): Remove.
10005 (setup_allocno_available_regs_num): Check only profitable hard
10006 regs. Print info about hard regs nodes.
10007 (setup_allocno_left_conflicts_size): Remove.
10008 (put_allocno_into_bucket): Don't call
10009 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
10010 (improve_allocation): New.
10011 (color_allocnos): Call setup_profitable_hard_regs,
10012 form_object_hard_regs_nodes_forest, improve_allocation,
10013 finish_object_hard_regs_nodes_forest. Setup spill cost.
10014 (print_loop_title): Use pressure classes.
10015 (color_allocnso): Ditto.
10016 (do_coloring): Remove allocation and freeing splay_tree_node_pool
10017 and allocnos_for_spilling.
10018 (ira_sort_regnos_for_alter_reg): Don't setup members
10019 {first,next}_coalesced_allocno.
10020 (color): Remove allocating and freeing removed_splay_allocno_vec.
10021 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
10022 prohibited_class_mode_regs.
10023
10024 * ira-lives.c: Remove mentioning cover classes from the file. Fix
10025 formatting.
10026 (update_allocno_pressure_excess_length): Use pressure classes.
10027 (inc_register_pressure, dec_register_pressure): Check for pressure
10028 class.
10029 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
10030 pressure class. Use ira_reg_class_nregs instead of
10031 ira_reg_class_max_nregs.
10032 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
10033 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
10034 (single_reg_class): Use ira_reg_class_nregs instead of
10035 ira_reg_class_max_nregs.
10036 (process_bb_node_lives): Use pressure classes.
10037
10038 * ira-emit.c: Remove mentioning cover classes from the file. Use
10039 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
10040 (change_loop): Use pressure classes.
10041 (modify_move_list): Call ira_set_allocno_class instead of
10042 ira_set_allocno_cover_class.
10043
10044 * ira-build.c: Remove mentioning cover classes from the file. Use
10045 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
10046 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
10047 ALLOCNO_UPDATED_CLASS_COST instead of
10048 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
10049 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
10050 (ira_create_allocno): Remove initialization of
10051 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
10052 ALLOCNO_COLORABLE_P.
10053 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
10054 Update conflict regs for the objects.
10055 (create_cap_allocno): Remove assert. Don't propagate
10056 ALLOCNO_AVAILABLE_REGS_NUM.
10057 (ira_free_allocno_costs): New function.
10058 (finish_allocno): Change a part of code into call of
10059 ira_free_allocno_costs.
10060 (low_pressure_loop_node_p): Use pressure classes.
10061 (object_range_compare_func): Don't compare classes.
10062 (setup_min_max_conflict_allocno_ids): Ditto.
10063
10064 * loop-invariant.c: Remove mentioning cover classes from the file.
10065 Use ira_pressure_classes and ira_pressure_classes_num instead of
10066 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
10067 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
10068 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
10069 Use reg_allocno_class instead of reg_cover_class.
10070 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
10071 STACK_REG_COVER_CLASS.
10072 (get_regno_cover_class): Rename to get_regno_pressure_class.
10073 (move_loop_invariants): Initialize and finalize regstat.
10074
10075 * ira.c: Remove mentioning cover classes from the file. Add
10076 comments about coloring without cover classes. Use ALLOCNO_CLASS
10077 instead of ALLOCNO_COVER_CLASS. Fix formatting.
10078 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
10079 setup_class_subset_and_memory_move_costs.
10080 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
10081 (setup_cover_and_important_classes): Rename to
10082 setup_allocno_and_important_classes.
10083 (setup_class_translate_array): New.
10084 (setup_class_translate): Call it for allocno and pressure classes.
10085 (cover_class_order): Rename to allocno_class_order.
10086 (comp_reg_classes_func): Use ira_allocno_class_translate instead
10087 of ira_class_translate.
10088 (reorder_important_classes): Set up ira_important_class_nums.
10089 (setup_reg_class_relations): Set up ira_reg_class_superunion.
10090 (print_class_cover): Rename to print_classes. Add parameter.
10091 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
10092 Print pressure classes too.
10093 (find_reg_class_closure): Rename to find_reg_classes. Don't call
10094 setup_reg_subclasses.
10095 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
10096 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
10097 (setup_prohibited_class_mode_regs): Use
10098 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
10099 (clarify_prohibited_class_mode_regs): New function.
10100 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
10101 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
10102 (ira_init_once): Initialize them.
10103 (free_register_move_costs): Process them.
10104 (ira_init): Move calls of find_reg_classes and
10105 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
10106 Call clarify_prohibited_class_mode_regs.
10107 (ira_no_alloc_reg): Remove.
10108 (too_high_register_pressure_p): Use pressure classes.
10109
10110 * sched-deps.c: Remove mentioning cover classes from the file.
10111 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
10112 ira_pressure_classes and ira_pressure_classes_num instead of
10113 ira_reg_class_cover_size and ira_reg_class_cover.
10114 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
10115 sched_regno_pressure_class instead of sched_regno_cover_class.
10116 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
10117 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
10118
10119 * ira.h: Add 2010 to Copyright.
10120 (ira_no_alloc_reg): Remove external.
10121 (struct target_ira): Rename x_ira_hard_regno_cover_class,
10122 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
10123 x_ira_class_translate to x_ira_hard_regno_allocno_class,
10124 x_ira_allocno_classes_num, x_ira_allocno_classes, and
10125 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
10126 x_ira_pressure_classes, x_ira_pressure_class_translate, and
10127 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
10128 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
10129 x_ira_no_alloc_regs.
10130 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
10131 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
10132 ira_allocno_classes_num and ira_allocno_classes.
10133 (ira_class_translate): Rename to ira_allocno_class_translate.
10134 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
10135 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
10136 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
10137 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
10138 (ira_no_alloc_regs): New.
10139
10140 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
10141 classes from the file. Use ALLOCNO_CLASS instead of
10142 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
10143 ALLOCNO_COVER_CLASS_COST.
10144 (regno_cover_class): Rename to regno_aclass.
10145 (record_reg_classes): Use ira_reg_class_subunion instead of
10146 ira_reg_class_union.
10147 (record_address_regs): Check overflow.
10148 (scan_one_insn): Ditto.
10149 (print_allocno_costs): Print total mem cost fore regional allocation.
10150 (print_pseudo_costs): Use REG_N_REFS.
10151 (find_costs_and_classes): Use classes intersected with them on the
10152 1st pass. Check overflow. Use ira_reg_class_subunion instead of
10153 ira_reg_class_union. Use ira_allocno_class_translate and
10154 regno_aclass instead of ira_class_translate and regno_cover_class.
10155 Modify code for finding regno_aclass. Setup preferred classes for
10156 the next pass.
10157 (setup_allocno_cover_class_and_costs): Rename to
10158 setup_allocno_class_and_costs. Use regno_aclass instead of
10159 regno_cover_class. Use ira_set_allocno_class instead of
10160 ira_set_allocno_cover_class.
10161 (init_costs, finish_costs): Use regno_aclass instead of
10162 regno_cover_class.
10163 (ira_costs): Use setup_allocno_class_and_costs instead of
10164 setup_allocno_cover_class_and_costs.
10165 (ira_tune_allocno_costs_and_cover_classes): Rename to
10166 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
10167 by processing objects. Use ira_reg_class_max_nregs instead of
10168 ira_reg_class_nregs.
10169
10170 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
10171
10172 * sched-int.h: Remove mentioning cover classes from the file.
10173 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
10174
10175 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
10176 classes from the file.
10177 (struct reg_pref): Rename coverclass into allocnoclass.
10178 (reg_cover_class): Rename to reg_allocno_class.
10179
10180 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
10181
10182 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
10183
10184 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
10185
10186 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
10187
10188 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
10189
10190 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
10191
10192 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
10193
10194 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
10195
10196 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
10197
10198 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
10199
10200 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
10201 (i386_ira_cover_classes): Ditto.
10202
10203 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
10204
10205 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
10206
10207 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
10208
10209 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
10210
10211 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
10212
10213 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
10214
10215 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
10216 (mips_ira_cover_classes): Ditto.
10217
10218 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
10219
10220 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
10221
10222 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
10223
10224 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
10225
10226 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
10227
10228 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
10229 (IRA_COVER_CLASSES_VSX): Ditto.
10230
10231 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
10232 (rs6000_ira_cover_classes): Ditto.
10233
10234 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
10235
10236 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
10237
10238 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
10239
10240 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
10241
10242 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
10243
10244 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
10245
10246 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
10247
10248 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
10249
10250 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
10251
10252 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
10253
10254 2011-03-29 Jakub Jelinek <jakub@redhat.com>
10255
10256 PR debug/48253
10257 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
10258 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
10259 dw_fde_unlikely_section_end_label, cold_in_std_section,
10260 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
10261 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
10262 fields.
10263 (output_fde): Use dw_fde_second_{begin,end} if second is
10264 true, otherwise dw_fde_{begin,end}.
10265 (output_call_frame_info): Test dw_fde_second_begin != NULL
10266 instead of dw_fde_switched_sections.
10267 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
10268 fields, initialize new fields. Initialize in_std_section
10269 unconditionally from the first partition.
10270 (dwarf2out_end_epilogue): Don't override dw_fde_end when
10271 dw_fde_second_begin is non-NULL.
10272 (dwarf2out_switch_text_section): Stop initializing removed
10273 dw_fde_struct fields, initialize new fields, initialize
10274 also dw_fde_end here. Set dw_fde_switch_cfi even when
10275 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
10276 (struct var_loc_list_def): Add last_before_switch field.
10277 (arange_table, arange_table_allocated, arange_table_in_use,
10278 ARANGE_TABLE_INCREMENT, add_arange): Removed.
10279 (size_of_aranges): Count !in_std_section and !second_in_std_section
10280 hunks in fdes, instead of looking at arange_table_in_use.
10281 (output_aranges): Add aranges_length argument, don't call
10282 size_of_aranges here. Instead of using aranges_table*
10283 emit ranges for fdes when !in_std_section resp.
10284 !second_in_std_section.
10285 (dw_loc_list): Break ranges crossing section switch.
10286 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
10287 use dw_fde_second_end instead of dw_fde_end as end of last range.
10288 (gen_subprogram_die): Don't call add_arange. Use
10289 dw_fde_{begin,end} for first partition and if switched
10290 section dw_fde_second_{begin,end} for the second.
10291 (var_location_switch_text_section_1,
10292 var_location_switch_text_section): New functions.
10293 (dwarf2out_begin_function): Initialize cold_text_section even
10294 when function_section () isn't text_section.
10295 (prune_unused_types): Don't walk arange_table.
10296 (dwarf2out_finish): Don't needlessly test
10297 flag_reorder_blocks_and_partition when testing cold_text_section_used.
10298 If info_section_emitted, call size_of_aranges and if it indicates
10299 non-empty .debug_aranges, call output_aranges with the computed
10300 size. Stop using removed dw_fde_struct fields, use
10301 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
10302 for second.
10303
10304 PR debug/48203
10305 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
10306 create ENTRY_VALUE if incoming or address of incoming's MEM
10307 is a hard REG.
10308 * dwarf2out.c (mem_loc_descriptor): Don't emit
10309 DW_OP_GNU_entry_value of DW_OP_fbreg.
10310 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
10311 on ENTRY_VALUE is able to find the canonical parameter VALUE.
10312 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
10313 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
10314 ENTRY_VALUE_EXPs.
10315 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
10316 is a REG_P or MEM_P with REG_P address, compute hash directly
10317 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
10318 (preserve_only_constants): Don't clear VALUES forwaring
10319 ENTRY_VALUE to some other VALUE.
10320
10321 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
10322
10323 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
10324 instead of GEN_INT.
10325
10326 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
10327
10328 * cfgexpand.c (expand_gimple_cond): Always set the source location and
10329 block before expanding the statement.
10330 (expand_gimple_stmt_1): Likewise. Set them here...
10331 (expand_gimple_stmt): ...and not here. Tidy.
10332 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
10333 unknown.
10334
10335 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
10336
10337 * Makefile.in: New rule for cprop.o.
10338 * gcse.c: Move constant/copy propagation to cprop.c.
10339 (compute_local_properties): Only handle expression tables.
10340 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
10341 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
10342 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
10343 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
10344 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
10345 compute_cprop_data, find_used_regs, try_replace_reg,
10346 find_avail_set, cprop_jump, constprop_register, cprop_insn,
10347 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
10348 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
10349 find_bypass_set, reg_killed_on_edge, bypass_block,
10350 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
10351 execute_rtl_cprop, pass_rtl_cprop): Move to...
10352 * cprop.c: ...here. New file, constant/copy propagation for RTL
10353 moved from gcse.c to here with minor cleanups in duplicated code.
10354
10355 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
10356
10357 * config/i386/i386.c (flag_opts): Fix a typo in
10358 -mavx256-split-unaligned-store.
10359
10360 2011-03-28 Anatoly Sokolov <aesok@post.ru>
10361
10362 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
10363 LIBCALL_VALUE): Remove macros.
10364 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10365 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10366 (h8300_function_value, h8300_libcall_value,
10367 h8300_function_value_regno_p): New functions.
10368
10369 2011-03-28 Anatoly Sokolov <aesok@post.ru>
10370
10371 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
10372
10373 2011-03-28 Jeff Law <law@redhat.com>
10374
10375 * tree-ssa-threadupdate.c (redirect_edges): Call
10376 create_edge_and_update_destination_phis as needed.
10377 (create_edge_and_update_destination_phis): Accept new BB argument.
10378 All callers updated.
10379 (thread_block): Do not update the profile when threading around
10380 intermediate blocks.
10381 (thread_single_edge): Likewise.
10382 (determine_bb_domination_status): If BB is not a successor of the
10383 loop header, return NONDOMINATING.
10384 (register_jump_thread): Note when we register a jump thread around
10385 an intermediate block.
10386 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
10387 (thread_across_edge): Use it.
10388
10389 2011-03-28 Tristan Gingold <gingold@adacore.com>
10390
10391 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
10392 when for_return is 2.
10393
10394 2011-03-28 Jeff Law <law@redhat.com>
10395
10396 * var-tracking.c (canonicalize_values_mark): Delete unused
10397 lhs assignment.
10398 (canonicalize_values_star, set_variable_part): Likewise.
10399 (clobber_variable_part, delete_variable_part): Likewise.
10400
10401 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
10402
10403 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
10404
10405 2011-03-28 Martin Jambor <mjambor@suse.cz>
10406
10407 * tree-inline.c (expand_call_inline): Do not check that destination
10408 node is analyzed.
10409 (optimize_inline_calls): Assert that destination node is analyzed.
10410 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
10411 not call tree_lowering_passes.
10412 * cgraph.h (cgraph_analyze_function): Declare.
10413 * cgraphunit.c (cgraph_analyze_function): Make public.
10414
10415 2011-03-28 Joseph Myers <joseph@codesourcery.com>
10416
10417 * config/sparc/sparc-opts.h: New.
10418 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
10419 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
10420 (sparc_option_override): Store processor_type enumeration rather
10421 than string in cpu_default. Remove name and enumeration from
10422 cpu_table. Directly default -mcpu then default -mtune from -mcpu
10423 without using sparc_select. Use target_flags_explicit instead of
10424 fpu_option_set.
10425 * config/sparc/sparc.h (enum processor_type): Move to
10426 sparc-opts.h.
10427 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
10428 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
10429 HeaderInclude entry.
10430 (mcpu=, mtune=): Use Var and Enum.
10431 (sparc_processor_type): New Enum and EnumValue entries.
10432
10433 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10434 Iain Sandoe <iains@gcc.gnu.org>
10435
10436 PR target/48245
10437 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
10438
10439 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
10440
10441 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
10442 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
10443 Insert new statements at it in lieu of STMT.
10444 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
10445 * tree-vect-stmts.c (vectorizable_store): Likewise.
10446 (vectorizable_load): Likewise.
10447
10448 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
10449
10450 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
10451 (divtf3): Ditto.
10452 (multf3): Ditto.
10453 (subtf3): Ditto.
10454
10455 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
10456
10457 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
10458 unaligned 256bit load/store.
10459 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
10460 (*avx_movdqu<avxmodesuffix>): Likewise.
10461
10462 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10463
10464 PR target/48288
10465 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
10466 * config/pa/pa.md (iordi3): Use new predicate in expander.
10467 (iorsi3): Likewise.
10468
10469 2011-03-27 Anatoly Sokolov <aesok@post.ru>
10470
10471 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
10472 FUNCTION_VALUE_REGNO_P): Remove macros.
10473 * config/mips/mips-protos.h (mips_function_value): Remove.
10474 * config/mips/mips.c (mips_function_value): Rename to...
10475 (mips_function_value_1): ... this. Make static. Handle receiving
10476 the function type in 'fn_decl_or_type' argument.
10477 (mips_function_value, mips_libcall_value,
10478 mips_function_value_regno_p): New function.
10479 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10480 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10481
10482 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
10483
10484 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
10485 and -mavx256-split-unaligned-store.
10486 (ix86_option_override_internal): Split 32-byte AVX unaligned
10487 load/store by default.
10488 (ix86_avx256_split_vector_move_misalign): New.
10489 (ix86_expand_vector_move_misalign): Use it.
10490
10491 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
10492 -mavx256-split-unaligned-store.
10493
10494 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
10495 256bit load/store. Generate unaligned store on misaligned memory
10496 operand.
10497 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
10498 256bit load/store.
10499 (*avx_movdqu<avxmodesuffix>): Likewise.
10500
10501 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
10502 -mavx256-split-unaligned-store.
10503
10504 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
10505
10506 PR target/38598
10507 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
10508 Update commentary.
10509
10510 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
10511
10512 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
10513 opno arguments with an expand_operand. Use create_input_operand.
10514 (mips_prepare_builtin_target): Delete.
10515 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
10516 functions.
10517 (mips_expand_builtin_direct): Use create_output_operand and
10518 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
10519 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
10520 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
10521
10522 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
10523
10524 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
10525 function.
10526 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
10527
10528 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
10529
10530 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
10531 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
10532 basic blocks and call commit_edge_insertions directly.
10533 (fixup_abnormal_edges): Move from here to...
10534 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
10535 on the edges and return whether some have actually been inserted.
10536 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
10537 compensation code.
10538
10539 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
10540
10541 PR rtl-optimization/48144
10542 * sel-sched-ir.c (merge_history_vect): Factor out from ...
10543 (merge_expr_data): ... here.
10544 (av_set_intersect): Rename to av_set_code_motion_filter.
10545 Update all callers. Call merge_history_vect when an expression
10546 is found in both sets.
10547 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
10548
10549 2011-03-26 Alan Modra <amodra@gmail.com>
10550
10551 * config/rs6000/predicates.md (word_offset_memref_op): Handle
10552 cmodel medium addresses.
10553 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
10554 64-bit gpr loads and stores.
10555 (rs6000_secondary_reload_ppc64): New function.
10556 * config/rs6000/rs6000-protos.h: Declare it.
10557 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
10558
10559 2011-03-26 Alan Modra <amodra@gmail.com>
10560
10561 PR target/47487
10562 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
10563 GNU Go in traceback table.
10564
10565 2011-03-25 Richard Henderson <rth@redhat.com>
10566
10567 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
10568 if there are exactly 6 operands.
10569 (set_storage_via_setmem): Similarly.
10570
10571 2011-03-25 Kai Tietz <ktietz@redhat.com>
10572
10573 * collect2.c (write_c_file_stat): Handle backslash
10574 as right-hand directory separator.
10575 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
10576 checking just for slash.
10577 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
10578 instead of checking for trailing slash.
10579 * gcc.c (record_temp_file): Use filename_cmp instead
10580 of strcmp.
10581 (do_spec_1): Likewise.
10582 (replace_outfile_spec_function): Likewise.
10583 (is_directory): Use filename_ncmp instead of strncmp.
10584 (print_multilib_info): Likewise.
10585 * gcov.c (find_source): Use filename_cmp instead
10586 instead of strcmp.
10587 (make_gcov_file_name): Fix order of slash/backslash
10588 checks.
10589 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
10590 (add_standard_paths): Likewise.
10591 * mips-tfile.c (saber_stop): Handle backslash.
10592 * prefix.c (update_path): Use filename_ncmp instead of
10593 strncmp.
10594 * profile.c (output_location): Use filename_cmp instead
10595 of strcmp.
10596 * read-md.c (handle_toplevel_file): Handle backslash.
10597 * tlink.c (frob_extension): Likewise.
10598 * tree-cfg.c (same_line_p): Use filename_cmp instead of
10599 strcmp.
10600 * tree-dump.c (dequeue_and_dump): Handle backslash.
10601 * tree.c (get_file_function_name): Likewise.
10602 * gengtype.c (read_input_list): Likewise.
10603 (get_file_realbasename): Likewise.
10604 (get_output_file_with_visibility): Use filename_cmp
10605 instead of strcmp.
10606
10607 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
10608
10609 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
10610 case to VFPv1.
10611
10612 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
10613
10614 * fold-const.c (expr_location_or): New function.
10615 (fold_truth_not_expr): Call it.
10616
10617 2011-03-25 Jeff Law <law@redhat.com>
10618
10619 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
10620 va_end.
10621 * c-family/c-common.c (def_fn_type): Likewise.
10622 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
10623 * emit-rtl.c (gen_rtvec): Likewise.
10624 * lto/lto-lang.c (def_fn_type): Likewise.
10625
10626 2011-03-25 Richard Guenther <rguenther@suse.de>
10627
10628 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
10629 also generate copies.
10630 (fini_copy_prop): Handle constant values properly.
10631
10632 2011-03-25 Jakub Jelinek <jakub@redhat.com>
10633
10634 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
10635 mode size instead of bitsize with DWARF2_ADDR_SIZE.
10636 (hash_loc_operands, compare_loc_operands): Handle
10637 DW_OP_GNU_entry_value.
10638
10639 2011-03-25 Kai Tietz <ktietz@redhat.com>
10640
10641 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
10642 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
10643 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
10644 comment and use macro TARGET_64BIT_MS_ABI instead.
10645 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
10646 and change default behavior for 32-bit MS_ABI.
10647 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
10648 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
10649 32-bit, too.
10650 (ix86_cfun_abi): Likewise.
10651 (ix86_maybe_switch_abi): Adjust comment.
10652 (init_cumulative_args): Check for bit-ness in MS_ABI case.
10653 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
10654 instead of checking for SYSV_ABI.
10655 (ix86_nsaved_sseregs): Likewise.
10656 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
10657 to 16 bytes.
10658 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
10659 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
10660 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
10661 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
10662 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
10663
10664 2011-03-25 Richard Guenther <rguenther@suse.de>
10665
10666 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
10667 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10668 (verify_gimple): Remove.
10669 * tree-cfg.c (verify_gimple_call): Merge verification
10670 from verify_stmts.
10671 (verify_gimple_phi): Merge verification from verify_stmts.
10672 (verify_gimple_label): New function.
10673 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
10674 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10675 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
10676 (verify_stmts): Rename to verify_gimple_in_cfg.
10677 (verify_gimple_in_cfg): New function.
10678 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
10679 * tree-ssa.c (verify_ssa): Likewise.
10680 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
10681
10682 2011-03-25 Richard Guenther <rguenther@suse.de>
10683
10684 * passes.c (init_optimization_passes): Add FRE pass after
10685 early SRA.
10686
10687 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
10688 Andrew Stubbs <ams@codesourcery.com>
10689
10690 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
10691 for Cortex-A8.
10692 (arm_movdi_vfp_cortexa8): New pattern.
10693 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
10694 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
10695 instructions when tuning for Cortex-A8. Set attribute "arch".
10696 * config/arm/arm.md: Move include arm-tune.md up a bit.
10697 (define_attr "arch"): Add "onlya8" and "nota8" values.
10698 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
10699
10700 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
10701
10702 PR bootstrap/48282
10703 Revert:
10704 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10705
10706 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10707 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
10708 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10709 * passes.c (init_optimization_passes): Move
10710 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10711
10712 2011-03-25 Kai Tietz <ktietz@redhat.com>
10713
10714 * c-typeck.c (comptypes_internal): Replace target
10715 hook call of comp_type_attributes by version in tree.c file.
10716 * gimple.c (gimple_types_compatible_p_1): Likewise.
10717 * tree-ssa.c (useless_type_conversion_p): Likewise.
10718 * tree.c (build_type_attribute_qual_variant): Likewise.
10719 (attribute_value_equal): New static helper function.
10720 (comp_type_attributes): New function.
10721 (merge_attributes): Use attribute_value_equal for comparison.
10722 (attribute_list_contained): Likewise.
10723 * tree.h (comp_type_attributes): New prototype.
10724
10725 2011-03-25 Richard Guenther <rguenther@suse.de>
10726
10727 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
10728 of complex types at -O0.
10729 (verify_gimple_assign_binary): Likewise.
10730 (verify_gimple_assign_ternary): Likewise.
10731
10732 2011-03-24 Mark Wielaard <mjw@redhat.com>
10733
10734 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
10735 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
10736
10737 2011-03-24 Mark Wielaard <mjw@redhat.com>
10738
10739 PR debug/48041
10740 * dwarf2out.c (output_abbrev_section): Only write table when
10741 abbrev_die_table_in_use > 1.
10742
10743 2011-02-24 Richard Henderson <rth@redhat.com>
10744
10745 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
10746 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
10747 (alpha_expand_unaligned_load_words): Use extql.
10748 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
10749 (emit_insxl): Handle all modes for consistency.
10750
10751 2011-02-24 Richard Henderson <rth@redhat.com>
10752
10753 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
10754 (alpha_expand_unaligned_load): Likewise.
10755 (alpha_expand_unaligned_store): Likewise.
10756 (alpha_expand_unaligned_load_words): Likewise.
10757 (alpha_expand_unaligned_store_words): Likewise.
10758 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
10759 (alpha_split_lock_test_and_set_12): Likewise.
10760 (print_operand, alpha_fold_builtin_extxx): Likewise.
10761 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
10762 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
10763 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
10764 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
10765 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
10766 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
10767 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
10768 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
10769 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
10770 (extwl, extll, extql): Similarly.
10771 (inswh, inslh, insqh): Similarly.
10772 (mskbl, mskwl, mskll, mskql): Similarly.
10773 (mskwh, msklh, mskqh): Similarly.
10774
10775 2011-02-24 Richard Henderson <rth@redhat.com>
10776
10777 * config/alpha/alpha.md (attribute isa): Add er, ner.
10778 (attribute enabled): Handle them.
10779 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
10780
10781 2011-02-24 Richard Henderson <rth@redhat.com>
10782
10783 * config/alpha/alpha.md (attribute isa): Add vms.
10784 (attribute enabled): Handle it.
10785 (*movsf): Merge *movsf_{nofix,fix,nofp}.
10786 (*movdf): Merge *movdf_{nofix,fix,nofp}.
10787 (*movtf): Rename from *movtf_internal for consistency.
10788 (*movsi): Merge with *movsi_nt_vms.
10789 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
10790 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
10791 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
10792 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
10793
10794 2011-02-24 Richard Henderson <rth@redhat.com>
10795
10796 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
10797 (extendqisi2, extendhisi2): Likewise.
10798 (extendqidi2): Simplify BWX/non-BWX expansions.
10799 (extendhidi2): Similarly.
10800
10801 2011-02-24 Richard Henderson <rth@redhat.com>
10802
10803 * config/alpha/alpha.md (attribute isa): New.
10804 (attribute enabled): New.
10805 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
10806 (zero_extendqisi2, zero_extendqidi2): Similarly.
10807 (zero_extendhisi2, zero_extendhidi2): Similarly.
10808 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
10809
10810 2011-02-24 Richard Henderson <rth@redhat.com>
10811
10812 * config/alpha/predicates.md (input_operand): Revert last change;
10813 update comment to mention 32-bit VMS rather than Windows.
10814
10815 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10816
10817 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10818 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
10819 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10820 * passes.c (init_optimization_passes): Move
10821 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10822
10823 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10824
10825 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
10826
10827 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10828
10829 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
10830 correctly.
10831
10832 2011-03-24 Jakub Jelinek <jakub@redhat.com>
10833
10834 PR debug/48204
10835 * simplify-rtx.c (simplify_const_unary_operation): Call
10836 real_convert when changing mode class with FLOAT_EXTEND.
10837
10838 2011-03-24 Nick Clifton <nickc@redhat.com>
10839
10840 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
10841 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
10842 * config/rx/rx.c (rx_option_override): Set align_jumps,
10843 align_loops and align_labels if not set by the user.
10844 (rx_align_for_label): New function.
10845 (rx_max_skip_for_label): New function.
10846 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
10847 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
10848 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
10849 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
10850 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
10851
10852 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10853
10854 PR rtl-optimization/48263
10855 * optabs.c (expand_binop_directly): Reinstate convert_modes code
10856 and original commutative_p handling. Use maybe_gen_insn.
10857
10858 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10859
10860 * reload.c (find_reloads_subreg_address): Add address_reloaded
10861 parameter and return true there if the full address has been
10862 reloaded.
10863 (find_reloads_toplev): Pass address_reloaded flag.
10864 (find_reloads_address_1): Don't use address_reloaded parameter.
10865
10866 2011-03-24 Jeff Law <law@redhat.com>
10867
10868 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
10869 unused variable "ann".
10870 (remove_unused_locals): Likewise.
10871
10872 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
10873 statement.
10874
10875 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
10876 after it is freed.
10877
10878 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10879
10880 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
10881 for invalid symbolic addresses.
10882 (s390_secondary_reload): Don't use s390_check_symref_alignment for
10883 larl operands.
10884
10885 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10886
10887 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
10888 the argument in calls to fold_truth_not_expr.
10889
10890 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10891
10892 * tree.c (record_node_allocation_statistics): New function.
10893 (make_node_stat, copy_node_stat, build_string): Call it.
10894 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
10895 (build1_stat, build_omp_clause): Likewise.
10896
10897 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10898
10899 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
10900 last commit.
10901
10902 2011-03-24 Richard Guenther <rguenther@suse.de>
10903
10904 PR tree-optimization/48271
10905 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
10906 blocks that still exist.
10907
10908 2011-03-24 Richard Guenther <rguenther@suse.de>
10909
10910 PR tree-optimization/48270
10911 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
10912 not free datarefs before ddrs.
10913
10914 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10915
10916 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
10917 from the address built for a reference with variable offset.
10918
10919 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10920
10921 PR target/48237
10922 * config/i386/i386.md (*movdf_internal_rex64): Do not split
10923 alternatives that can be handled with movq or movabsq insn.
10924 (*movdf_internal): Disable for !TARGET_64BIT.
10925 (*movdf_internal_nointeger): Ditto.
10926 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
10927
10928 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10929
10930 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10931 (FUNCTION_ARG_ADVANCE): Likewise.
10932 * tm.texi.in: Change references to them to hook references.
10933 * tm.texi: Regenerate.
10934 * targhooks.c (default_function_arg): Eliminate check for target macro.
10935 (default_function_incoming_arg): Likewise.
10936 (default_function_arg_advance): Likewise.
10937 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10938 (function_arg_advance): Likewise.
10939 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10940
10941 2011-03-24 Richard Guenther <rguenther@suse.de>
10942
10943 PR middle-end/48269
10944 * tree-object-size.c (addr_object_size): Do not double-account
10945 for MEM_REF offsets.
10946
10947 2011-03-24 Diego Novillo <dnovillo@google.com>
10948
10949 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
10950 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
10951 (lto_input_data_block): Move from lto-opts.c. Make extern.
10952 Update all users.
10953 (lto_input_string): Rename from input_string. Make extern.
10954 Update all users.
10955 * lto-streamer-out.c (lto_output_string_with_length): Rename from
10956 output_string_with_length.
10957 Output 0 to indicate a non-NULL string. Update all callers to
10958 not emit 0.
10959 (lto_output_string): Rename from output_string. Make extern.
10960 Update all users.
10961 (lto_output_decl_state_streams): Make extern.
10962 (lto_output_decl_state_refs): Make extern.
10963 * lto-streamer.h (lto_input_string): Declare.
10964 (lto_input_data_block): Declare.
10965 (lto_output_string): Declare.
10966 (lto_output_string_with_length): Declare.
10967 (lto_output_decl_state_streams): Declare.
10968 (lto_output_decl_state_refs): Declare.
10969
10970 2011-03-24 Richard Guenther <rguenther@suse.de>
10971
10972 PR tree-optimization/46562
10973 * tree.c (build_invariant_address): New function.
10974 * tree.h (build_invariant_address): Declare.
10975 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
10976 a renamed function moved ...
10977 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
10978 Take valueization callback parameter.
10979 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
10980 * gimple-fold.h: New file.
10981 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
10982 (ccp_fold, fold_const_aggregate_ref,
10983 fold_ctor_reference, fold_nonarray_ctor_reference,
10984 fold_array_ctor_reference, fold_string_cst_ctor_reference,
10985 get_base_constructor): Move ...
10986 * gimple-fold.c: ... here.
10987 (gimple_fold_stmt_to_constant_1): New function
10988 split out from ccp_fold. Take a valueization callback parameter.
10989 Valueize all operands.
10990 (gimple_fold_stmt_to_constant): New wrapper function.
10991 (fold_const_aggregate_ref_1): New function split out from
10992 fold_const_aggregate_ref. Take a valueization callback parameter.
10993 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
10994 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
10995 invariant POINTER_PLUS_EXPRs to invariant form.
10996 (vn_valueize): New function.
10997 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
10998 * tree-vrp.c (vrp_valueize): New function.
10999 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
11000 to fold statements to constants.
11001 * tree-ssa-pre.c (eliminate): Properly guard propagation of
11002 function declarations.
11003 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
11004 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
11005
11006 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
11007
11008 * config/h8300/predicates.md (jump_address_operand): Fix register
11009 mode check.
11010
11011 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
11012
11013 * doc/invoke.texi (max-stores-to-sink): Document.
11014 * params.h (MAX_STORES_TO_SINK): Define.
11015 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
11016 if either vectorization or if-conversion is disabled.
11017 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
11018 tree-vect-data-refs.c vect_equal_offsets.
11019 (dr_equal_offsets_p): New function.
11020 (find_data_references_in_bb): Remove static.
11021 * tree-data-ref.h (find_data_references_in_bb): Declare.
11022 (dr_equal_offsets_p): Likewise.
11023 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
11024 (vect_drs_dependent_in_basic_block): Update calls to
11025 vect_equal_offsets.
11026 (vect_check_interleaving): Likewise.
11027 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
11028 (cond_if_else_store_replacement): Rename to...
11029 (cond_if_else_store_replacement_1): ... this. Change arguments and
11030 documentation.
11031 (cond_if_else_store_replacement): New function.
11032 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
11033 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
11034
11035 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
11036
11037 PR target/46934
11038 * config/arm/arm.md (casesi): Use the gen_int_mode() function
11039 to subtract lower bound instead of GEN_INT().
11040
11041 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
11042
11043 PR other/48179
11044 PR other/48221
11045 PR other/48234
11046 * doc/extend.texi (Alignment): Move section to match order in TOC.
11047 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
11048 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
11049
11050 2011-03-23 Jeff Law <law@redhat.com>
11051
11052 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
11053 before removing the edge.
11054
11055 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
11056 it may have been freed by redirect_branch_edge or
11057 redirect_edge_succ_nodup.
11058
11059 2011-03-23 Richard Guenther <rguenther@suse.de>
11060
11061 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
11062 (check_va_list_escapes): Likewise.
11063 (check_all_va_list_escapes): Likewise.
11064
11065 2011-03-23 Richard Guenther <rguenther@suse.de>
11066
11067 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
11068 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
11069 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
11070 (alias.o): Likewise.
11071 (ipa-type-escape.o): Remove.
11072 (ipa-struct-reorg.o): Likewise.
11073 (GTFILES): Remove ipa-struct-reorg.c.
11074 * alias.c: Do not include ipa-type-escape.h.
11075 * tree-ssa-alias.c: Likewise.
11076 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
11077 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
11078 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
11079 and ipa-type-escape passes.
11080 * tree-pass.h (pass_ipa_type_escape): Remove.
11081 (pass_ipa_struct_reorg): Likewise.
11082 * ipa-struct-reorg.h: Remove.
11083 * ipa-struct-reorg.c: Likewise.
11084 * ipa-type-escape.h: Likewise.
11085 * ipa-type-escape.c: Likewise.
11086 * doc/invoke.texi (-fipa-struct-reorg): Remove.
11087 (--param struct-reorg-cold-struct-ratio): Likewise.
11088 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
11089 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
11090 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
11091
11092 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11093
11094 * config/s390/2084.md: Enable all insn reservations also for z9_ec
11095 cpu attribute value.
11096 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
11097 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
11098 * config/s390/s390.c (processor_flags_table): New constant array.
11099 (s390_handle_arch_option): Remove.
11100 (s390_handle_option): Remove s390_handle_arch_option invocations
11101 and OPT_mwarn_framesize_ handling.
11102 (s390_option_override): Remove s390_handle_arch_option invocation.
11103 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
11104 warnings.
11105 * config/s390/s390.md (cpu attribute): Add z9_ec value.
11106 * config/s390/s390.opt (s390_tune, s390_arch)
11107 (march=): Replace s390_arch_option enum and values with
11108 processor_type. Set variable name to s390_arch. Set
11109 initialization value.
11110 (mtune=): Replace s390_arch_option with processor_type. Set
11111 variable name to s390_tune. Set initialization value.
11112
11113 2011-03-23 Julian Brown <julian@codesourcery.com>
11114
11115 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
11116 accesses which are not naturally aligned.
11117
11118 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
11119
11120 PR target/47553
11121 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
11122
11123 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
11124
11125 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
11126 parameter from "int" to "enum insn_code".
11127 (expand_operand_type): New enum.
11128 (expand_operand): New structure.
11129 (create_expand_operand): New function.
11130 (create_fixed_operand, create_output_operand): Likewise
11131 (create_input_operand, create_convert_operand_to): Likewise.
11132 (create_convert_operand_from, create_address_operand): Likewise.
11133 (create_integer_operand): Likewise.
11134 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
11135 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
11136 (expand_insn, expand_jump_insn): Likewise.
11137 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
11138 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
11139 (expand_movstr, expand_builtin___clear_cache): Likewise.
11140 (expand_builtin_lock_release): Likewise.
11141 * explow.c (allocate_dynamic_stack_space): Likewise.
11142 (probe_stack_range): Likewise. Allow check_stack to FAIL,
11143 and use the default handling in that case.
11144 * expmed.c (check_predicate_volatile_ok): Delete.
11145 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
11146 (emit_cstore): Likewise.
11147 * expr.c (emit_block_move_via_movmem): Likewise.
11148 (set_storage_via_setmem, expand_assignment): Likewise.
11149 (emit_storent_insn, try_casesi): Likewise.
11150 (emit_single_push_insn): Likewise. Allow the expansion to fail.
11151 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
11152 (expand_vec_shift_expr, expand_binop_directly): Likewise.
11153 (expand_twoval_unop, expand_twoval_binop): Likewise.
11154 (expand_unop_direct, emit_indirect_jump): Likewise.
11155 (emit_conditional_move, vector_compare_rtx): Likewise.
11156 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
11157 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
11158 (expand_sync_lock_test_and_set): Likewise.
11159 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
11160 (emit_unop_insn): Likewise.
11161 (expand_copysign_absneg): Change icode to an insn_code.
11162 (create_convert_operand_from_type): New function.
11163 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
11164 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
11165 (expand_insn, expand_jump_insn): Likewise.
11166 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
11167 than const_int_operand for operand 2.
11168
11169 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11170
11171 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
11172 if possible.
11173
11174 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11175
11176 * emit-rtl.c (emit_pattern_before_noloc): New function.
11177 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
11178 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
11179 (emit_pattern_after_noloc): New function.
11180 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
11181 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
11182
11183 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11184
11185 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
11186 (__ffsDI2): Likewise.
11187
11188 2011-03-22 Richard Henderson <rth@redhat.com>
11189
11190 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
11191 of !TARGET_ABI_OPEN_VMS.
11192 (alpha_trampoline_init, alpha_start_function): Likewise.
11193 (alpha_expand_epilogue, alpha_file_start): Likewise.
11194 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
11195 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
11196 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
11197 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
11198 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
11199
11200 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11201
11202 * config/s390/s390-opts.h: New.
11203 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
11204 s390_arch_flags, s390_warn_framesize, s390_stack_size,
11205 s390_stack_guard): Remove.
11206 (s390_handle_arch_option): Return void. Take enum
11207 s390_arch_option value instead of string and searching array.
11208 (s390_handle_option): Don't assert that global structures are in
11209 use. Access variables via opts pointer. Use error_at. Don't use
11210 sscanf for -mstack-guard= or -mstack-size=. Update call to
11211 s390_handle_arch_option.
11212 (s390_option_override): Update call to s390_handle_arch_option.
11213 (s390_emit_prologue): Use %d format for s390_stack_size in
11214 diagnostic. Use %wd for HOST_WIDE_INT.
11215 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
11216 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
11217 * config/s390/s390.opt (config/s390/s390-opts.h): New
11218 HeaderInclude entry.
11219 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
11220 s390_arch_flags, s390_warn_framesize): New Variable entries.
11221 (s390_arch_option): New Enum and EnumValue entries.
11222 (march=): Use Enum instead of Var.
11223 (mstack-guard=, mstack-size=): Use UInteger and Var.
11224 (mtune=): Use Enum.
11225
11226 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11227
11228 * config/score/score.c (score_handle_option): Don't assert that
11229 global structures are in use. Access target_flags via opts
11230 pointer. Use value of -march= option to determine target_flags
11231 settings.
11232 * config/score/score.opt (march=): Use Enum.
11233 (score_arch): New Enum and EnumValue entries.
11234
11235 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11236
11237 * config/mep/mep.c (option_mtiny_specified): Remove.
11238 (mep_option_override): Move register handling for -mivc2 from
11239 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
11240 instead of option_mtiny_specified.
11241 (mep_handle_option): Access target_flags via opts pointer. Don't
11242 assert that global structures are in use. Defer part of -mivc2
11243 handling and move it to mep_option_override.
11244 * config/mep/mep.opt (IVC2): New Mask entry.
11245 (mivc2): Use Var and Defer instead of Mask.
11246
11247 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11248
11249 * config/v850/v850-opts.h: New.
11250 * config/v850/v850.c (small_memory): Replace with
11251 small_memory_physical_max array. Make that array static const.
11252 (v850_handle_memory_option): Take integer value of argument. Take
11253 gcc_options pointer, option text and location. Return void.
11254 Update for changes to small memory structures.
11255 (v850_handle_option): Access target_flags via opts pointer. Don't
11256 assert that global structures are in use. Update calls to
11257 v850_handle_memory_option.
11258 (v850_encode_data_area): Update references to small memory settings.
11259 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
11260 (enum small_memory_type): Move to v850-opts.h.
11261 * config/v850/v850.opt (config/v850/v850-opts.h): New
11262 HeaderInclude entry.
11263 (small_memory_max): New Variable entry.
11264 (msda): Replace by pair of options msda= and msda-. Use UInteger.
11265 (mtda, mzda): Likewise.
11266
11267 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11268
11269 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
11270 pointer. Don't assert that global structures are in use.
11271
11272 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11273
11274 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
11275 via opts pointer. Don't assert that global structures are in use.
11276
11277 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11278
11279 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
11280 (munix=93): Use Var.
11281 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
11282 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
11283 * config/pa/pa-opts.h: New.
11284 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
11285 (pa_handle_option): Don't assert that global structures are in
11286 use. Access target_flags via opts pointer. Don't handle
11287 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
11288 OPT_munix_98 here.
11289 (pa_option_override): Handle deferred OPT_mfixed_range_.
11290
11291 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11292
11293 * config/mn10300/mn10300-opts.h: New.
11294 * config/mn10300/mn10300.c (mn10300_processor,
11295 mn10300_tune_string): Remove.
11296 (mn10300_handle_option): Don't assert that global structures are
11297 in use. Access mn10300_processor via opts pointer. Don't handle
11298 OPT_mtune_ here.
11299 * config/mn10300/mn10300.h (enum processor_type): Move to
11300 mn10300-opts.h.
11301 (mn10300_processor): Remove.
11302 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
11303 HeaderInclude entry.
11304 (mn10300_processor): New Variable entry.
11305 (mtune=): Use Var.
11306
11307 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11308
11309 * config/microblaze/microblaze.c: Don't include opts.h.
11310 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
11311 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
11312 (mno-clearbss): Use Var and Warn.
11313
11314 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11315
11316 * config/m32r/m32r-opts.h: New.
11317 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
11318 (m32r_handle_option): Don't assert that global structures are in
11319 use. Access target_flags and m32r_cache_flush_func via opts
11320 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
11321 OPT_mno_flush_trap here.
11322 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
11323 include of m32r-opts.h.
11324 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
11325 HeaderInclude entry.
11326 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
11327 (mmodel=): Use Enum and Var.
11328 (m32r_model): New Enum and EnumValue entries.
11329 (mno-flush-trap): Use Var.
11330 (msdata=): Use Enum and Var.
11331 (m32r_sdata): New Enum and EnumValue entries.
11332
11333 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11334
11335 * config/m32c/m32c.c: Don't include opts.h.
11336 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
11337 m32c_handle_option): Remove.
11338 (m32c_option_override): Check global_options_set.x_target_memregs
11339 instead of target_memregs_set.
11340 * config/m32c/m32c.h (target_memregs): Remove.
11341 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
11342 variable.
11343
11344 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11345
11346 * config/iq2000/iq2000-opts.h: New.
11347 * config/iq2000/iq2000.c: Don't include opts.h.
11348 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
11349 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
11350 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
11351 HeaderInclude entry.
11352 (iq2000_tune): New Variable entry.
11353 (march=): Add comment. Use Enum.
11354 (iq2000_arch): New Enum and EnumValue entries.
11355 (mcpu=): Use Enum and Var.
11356 (iq2000_tune): New Enum and EnumValue entries.
11357
11358 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11359
11360 * config/ia64/ia64-opts.h: New.
11361 * config/ia64/ia64.c (ia64_tune): Remove.
11362 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
11363 here. Use error_at.
11364 (ia64_option_override): Handle deferred OPT_mfixed_range_.
11365 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
11366 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
11367 HeaderInclude entry.
11368 (ia64_tune): New Variable entry.
11369 (mfixed-range=): Use Defer and Var.
11370 (mtune=): Use Enum and Var.
11371 (ia64_tune): New Enum and EnumValue entries.
11372
11373 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11374
11375 * config/frv/frv-opts.h: New.
11376 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
11377 frv-opts.h.
11378 (frv_cpu_type): Remove.
11379 * config/frv/frv.c: Don't include opts.h.
11380 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
11381 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
11382 (frv_cpu_type): New Variable entry.
11383 (frv_cpu): New Enum and EnumValue entries.
11384
11385 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11386
11387 * config/cris/cris.c (cris_handle_option): Access target_flags via
11388 opts pointer. Don't assert that global structures are in use.
11389 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
11390 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
11391
11392 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11393
11394 * config/bfin/bfin-opts.h: New.
11395 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
11396 bfin_si_revision, bfin_workarounds): Remove.
11397 (bfin_cpus): Make static const.
11398 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
11399 not bfin_lib_id_given.
11400 (bfin_handle_option): Don't set bfin_lib_id_given. Access
11401 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
11402 pointer. Use error_at. Don't assert that global structures are in use.
11403 * config/bfin/bfin.h: Include bfin-opts.h.
11404 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
11405 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
11406 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
11407 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
11408 entries.
11409
11410 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11411
11412 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
11413 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
11414 or -msoft-float here.
11415 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
11416 -msoft-float and -mhard-float.
11417 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
11418 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11419 msoft-float.
11420 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
11421 -msoft-float.
11422 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
11423 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
11424 not mhard-float.
11425 (LIBGCC_SPEC): Don't handle -msoft-float.
11426 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
11427 -mhard-float.
11428 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11429 msoft-float.
11430 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
11431 -mfloat-abi=*, not -msoft-float and -mhard-float.
11432 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
11433 -msoft-float.
11434 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
11435 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
11436 mhard-float and msoft-float.
11437 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
11438 mfloat-abi=soft in comments, not mhard-float and msoft-float.
11439 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
11440 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
11441 mhard-float.
11442 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
11443 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
11444 msoft-float.
11445 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
11446 not mhard-float.
11447 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
11448 not msoft-float.
11449
11450 2011-03-22 Richard Henderson <rth@redhat.com>
11451
11452 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
11453 TARGET_ABI_WINDOWS_NT.
11454 (alpha_output_function_end_prologue): Likewise.
11455 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
11456 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11457 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
11458 (trap, *movsi_nt_vms): Likewise.
11459 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
11460 (*tablejump_osf_nt_internal): Remove.
11461 * config/alpha/predicates.md (input_operand): Only test Pmode.
11462
11463 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11464
11465 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
11466 via opts pointer. Use error_at. Don't assert that global
11467 structures are in use.
11468
11469 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11470
11471 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
11472 (ix86_handle_option): Access ix86_isa_flags and
11473 ix86_isa_flags_explicit via opts pointer. Don't assert that
11474 global structures are in use.
11475 (ix86_function_specific_save, ix86_function_specific_restore):
11476 Update ix86_isa_flags_explicit field name.
11477 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
11478 (ix86_isa_flags_explicit): Rename TargetSave entry to
11479 x_ix86_isa_flags_explicit.
11480
11481 2011-03-22 Richard Henderson <rth@redhat.com>
11482
11483 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
11484 (alpha_option_override, direct_return): Likewise.
11485 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
11486 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
11487 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
11488 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
11489 (alpha_expand_epilogue, alpha_end_function): Likewise.
11490 (alpha_init_libfuncs): Likewise.
11491 (struct machine_function): Remove unicosmk members.
11492 (print_operand) ['t']: Remove.
11493 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
11494 unicosmk_output_module_name, unicosmk_output_common,
11495 current_section_align, unicosmk_output_text_section_asm_op,
11496 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
11497 unicosmk_section_type_flags, unicosmk_unique_section,
11498 unicosmk_asm_named_section, unicosmk_insert_attributes,
11499 unicosmk_output_align, unicosmk_defer_case_vector,
11500 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
11501 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
11502 unicosmk_output_ssib, unicosmk_add_call_info_word,
11503 unicosmk_extern_head, unicosmk_output_default_externs,
11504 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
11505 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
11506 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
11507 * config/alpha/alpha-protos.h: Update.
11508 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
11509 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
11510 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
11511 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
11512 (*mulsi_se, mulvsi3): Likewise.
11513 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
11514 (*divmodsi_internal, call, call_value, realign): Likewise.
11515 (moddi3, umoddi3): Likewise; remove duplicate expander.
11516 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
11517 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
11518 (*movdi_nofix): Remove r/U alternative.
11519 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
11520 * config/alpha/constraints.md ("U"): Remove.
11521 * config/alpha/predicates.md (call_operand"): Don't test
11522 TARGET_ABI_UNICOSMK.
11523
11524 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11525
11526 * target.def (handle_option): Take gcc_options and
11527 cl_decoded_option pointers and location_t.
11528 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
11529 * doc/tm.texi: Regenerate.
11530 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
11531 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
11532 * lto-opts.c (lto_reissue_options): Generate option structure for
11533 targetm.handle_option call.
11534 * opts.c (target_handle_option): Update call to
11535 targetm.handle_option. Remove assertions about values now passed
11536 down to hook.
11537 * targhooks.c (default_target_handle_option): New.
11538 * targhooks.h (default_target_handle_option): Declare.
11539 * config/alpha/alpha.c: Include opts.h.
11540 (alpha_handle_option): Update to new hook interface.
11541 * config/arm/arm.c: Include opts.h.
11542 (arm_handle_option): Update to new hook interface.
11543 * config/arm/t-arm (arm.o): Update dependencies.
11544 * config/bfin/bfin.c: Include opts.h.
11545 (bfin_handle_option): Update to new hook interface.
11546 * config/cris/cris.c: Include opts.h.
11547 (cris_handle_option): Update to new hook interface.
11548 * config/frv/frv.c: Include opts.h.
11549 (frv_handle_option): Update to new hook interface.
11550 * config/i386/i386.c: Include opts.h.
11551 (ix86_handle_option): Update to new hook interface.
11552 (ix86_valid_target_attribute_inner_p): Generate option structure
11553 for call to ix86_handle_option.
11554 * config/i386/t-i386 (i386.o): Update dependencies.
11555 * config/ia64/ia64.c: Include opts.h.
11556 (ia64_handle_option): Update to new hook interface.
11557 * config/ia64/t-ia64 (ia64.o): Update dependencies.
11558 * config/iq2000/iq2000.c: Include opts.h.
11559 (iq2000_handle_option): Update to new hook interface.
11560 * config/m32c/m32c.c: Include opts.h.
11561 (m32c_handle_option): Update to new hook interface.
11562 * config/m32r/m32r.c: Include opts.h.
11563 (m32r_handle_option): Update to new hook interface.
11564 * config/m68k/m68k.c: Include opts.h.
11565 (m68k_handle_option): Update to new hook interface.
11566 * config/mep/mep.c: Include opts.h.
11567 (mep_handle_option): Update to new hook interface.
11568 * config/microblaze/microblaze.c: Include opts.h.
11569 (microblaze_handle_option): Update to new hook interface.
11570 * config/mips/mips.c: Include opts.h.
11571 (mips_handle_option): Update to new hook interface.
11572 * config/mn10300/mn10300.c: Include opts.h.
11573 (mn10300_handle_option): Update to new hook interface.
11574 * config/pa/pa.c: Include opts.h.
11575 (pa_handle_option): Update to new hook interface.
11576 * config/pdp11/pdp11.c: Include opts.h.
11577 (pdp11_handle_option): Update to new hook interface.
11578 * config/rs6000/rs6000.c: Include opts.h.
11579 (rs6000_handle_option): Update to new hook interface.
11580 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
11581 * config/rx/rx.c: Include opts.h.
11582 (rx_handle_option): Update to new hook interface.
11583 * config/s390/s390.c: Include opts.h.
11584 (s390_handle_option): Update to new hook interface.
11585 * config/score/score.c: Include opts.h.
11586 (score_handle_option): Update to new hook interface.
11587 * config/sh/sh.c: Include opts.h.
11588 (sh_handle_option): Update to new hook interface.
11589 * config/sparc/sparc.c: Include opts.h.
11590 (sparc_handle_option): Update to new hook interface.
11591 * config/v850/v850.c: Include opts.h.
11592 (v850_handle_option): Update to new hook interface.
11593
11594 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11595
11596 * gcc.c (driver_unknown_option_callback): Only permit and save
11597 unknown -Wno- options.
11598 (driver_wrong_lang_callback): Save options directly instead of via
11599 driver_unknown_option_callback.
11600
11601 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
11602
11603 * combine.c (simplify_set): Try harder to find the best CC mode when
11604 simplifying a nested COMPARE on the RHS.
11605
11606 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11607
11608 * config/alpha/gnu.h: Remove.
11609 * config/arc: Remove directory.
11610 * config/arm/netbsd.h: Remove.
11611 * config/arm/t-pe: Remove.
11612 * config/crx: Remove directory.
11613 * config/i386/netbsd.h: Remove.
11614 * config/m68hc11: Remove directory.
11615 * config/m68k/uclinux-oldabi.h: Remove.
11616 * config/mcore/mcore-pe.h: Remove.
11617 * config/mcore/t-mcore-pe: Remove.
11618 * config/netbsd-aout.h: Remove.
11619 * config/rs6000/gnu.h: Remove.
11620 * config/sh/sh-symbian.h: Remove.
11621 * config/sh/symbian-base.c: Remove.
11622 * config/sh/symbian-c.c: Remove.
11623 * config/sh/symbian-cxx.c: Remove.
11624 * config/sh/symbian-post.h: Remove.
11625 * config/sh/symbian-pre.h: Remove.
11626 * config/sh/t-symbian: Remove.
11627 * config/svr3.h: Remove.
11628 * config/vax/netbsd.h: Remove.
11629 * config.build: Don't handle i[34567]86-*-pe.
11630 * config.gcc: Remove handling of deprecations for most deprecated
11631 targets.
11632 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
11633 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
11634 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
11635 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
11636 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
11637 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
11638 Remove cases.
11639 * config.host: Don't handle i[34567]86-*-pe.
11640 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
11641 (ASM_SPEC32): Don't handle -mcall-gnu.
11642 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
11643 -mcall-gnu.
11644 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
11645 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
11646 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
11647 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
11648 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
11649 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
11650 conditional on SYMBIAN.
11651 * configure.ac: Don't handle powerpc*-*-gnu*.
11652 * configure: Regenerate.
11653 * doc/extend.texi (interrupt attribute): Don't mention CRX.
11654 * doc/install-old.texi (m6811, m6812): Don't mention.
11655 * doc/install.texi (arc-*-elf*): Don't document multilib option.
11656 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
11657 (m68k-uclinuxoldabi): Don't mention.
11658 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
11659 Remove.
11660 (-mcall-gnu): Remove.
11661 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
11662 families): Remove constraint documentation.
11663
11664 2011-03-22 Marius Strobl <marius@FreeBSD.org>
11665
11666 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
11667 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
11668 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
11669
11670 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11671
11672 PR target/48226
11673 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
11674 vector when peeking at the next token for vector, don't expand the
11675 keywords.
11676
11677 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
11678
11679 * config/avr/avr-protos.h (expand_epilogue): Change prototype
11680 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
11681 * config/avr/avr.c (init_cumulative_args)
11682 (avr_function_arg_advance): Use it.
11683 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
11684 sibcall epilogues.
11685 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
11686 (avr_function_ok_for_sibcall): ...this new function.
11687 (avr_lookup_function_attribute1): New static Function.
11688 (avr_naked_function_p, interrupt_function_p)
11689 (signal_function_p, avr_OS_task_function_p)
11690 (avr_OS_main_function_p): Use it.
11691 * config/avr/avr.md ("sibcall", "sibcall_value")
11692 ("sibcall_epilogue"): New expander.
11693 ("*call_insn", "*call_value_insn"): New insn.
11694 ("call_insn", "call_value_insn"): Remove
11695 ("call", "call_value", "epilogue"): Change expander to handle
11696 sibling calls.
11697
11698 2011-03-21 Nick Clifton <nickc@redhat.com>
11699
11700 * doc/invoke.texi (Overall Options): Move closing brace to end of
11701 options list.
11702 (Optimization Options): Add missing @gol.
11703 (Directory Options): Likewise.
11704 (i386 and x86-64 Options): Likewise.
11705 (RS6000 and PowerPC Options): Likewise.
11706 (i386 and x86-64 Windows Options): Likewise.
11707 (V850 Options): Add text missing from descriptions.
11708
11709 2011-03-22 Richard Henderson <rth@redhat.com>
11710
11711 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
11712 (avr_incoming_return_addr_rtx): New.
11713 (emit_push_byte): New.
11714 (expand_prologue): Use it. Remove incorrect dwarf annotation for
11715 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
11716 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
11717 (emit_pop_byte): New.
11718 (expand_epilogue): Use it. Pop frame pointer by bytes.
11719 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
11720 (INCOMING_RETURN_ADDR_RTX): New.
11721 (INCOMING_FRAME_SP_OFFSET): New.
11722 (ARG_POINTER_CFA_OFFSET): New.
11723 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
11724 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
11725 (pophi): Remove.
11726
11727 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
11728
11729 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11730
11731 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
11732 (FUNCTION_ARG_ADVANCE): Likewise.
11733 * tm.texi.in: Change references to them to hook references.
11734 * tm.texi: Regenerate.
11735 * targhooks.c (default_function_arg): Eliminate check for target
11736 macro.
11737 (default_function_incoming_arg): Likewise.
11738 (default_function_arg_advance): Likewise.
11739 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
11740 (function_arg_advance): Likewise.
11741 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
11742
11743 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11744
11745 * tree.c (build_call_1): New function.
11746 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
11747
11748 2011-03-22 Richard Guenther <rguenther@suse.de>
11749
11750 PR tree-optimization/48228
11751 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
11752 for single-arg PHIs.
11753
11754 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
11755
11756 PR rtl-optimization/48143
11757 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
11758 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
11759 sse2_cvtps2pd): Likewise.
11760
11761 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11762
11763 * recog.c (canonicalize_change_group): Use validate_unshare_change.
11764
11765 2011-03-22 Richard Guenther <rguenther@suse.de>
11766
11767 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
11768 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
11769 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
11770 and REALIGN_LOAD_EXPR.
11771 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
11772 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
11773 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
11774 DOT_PROD_EXPR case ...
11775 (expand_expr_real_2): ... here.
11776 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
11777 and REALIGN_LOAD_EXPR.
11778 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
11779 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
11780 (vect_create_epilog_for_reduction): Likewise.
11781 (vectorizable_reduction): Likewise.
11782 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
11783 * tree-vect-stmts.c (vectorizable_load): Likewise.
11784
11785 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
11786
11787 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
11788
11789 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11790
11791 * config/s390/s390.c (s390_delegitimize_address): Fix offset
11792 handling for PLTOFF/GOTOFF.
11793
11794 2011-03-22 Nick Clifton <nickc@redhat.com>
11795
11796 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
11797 trailing backslash from the end of the macro definition.
11798
11799 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11800
11801 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
11802 and PLT unspecs.
11803
11804 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
11805
11806 * expr.h (prepare_operand): Move to...
11807 * optabs.h (prepare_operand): ...here and change the insn code
11808 parameter from "int" to "enum insn_code".
11809 (insn_operand_matches): Declare.
11810 * expr.c (init_expr_target): Use insn_operand_matches.
11811 (compress_float_constant): Likewise.
11812 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
11813 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
11814 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
11815 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
11816 Likewise.
11817 (gen_cond_trap): Likewise.
11818 (prepare_operand): Likewise. Change icode to an insn_code.
11819 (insn_operand_matches): New function.
11820 * reload.c (find_reloads_address_1): Use insn_operand_matches.
11821 * reload1.c (gen_reload): Likewise.
11822 * targhooks.c (default_secondary_reload): Likewise.
11823
11824 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
11825
11826 * config/alpha/alpha.md (unspec): New define_c_enum.
11827 (unspecv): Ditto.
11828
11829 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
11830
11831 PR debug/48214
11832 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
11833 between a call and its CALL_ARG_LOCATION note.
11834
11835 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
11836
11837 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
11838
11839 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11840
11841 PR c/42544
11842 PR c/48197
11843 * c-common.c (shorten_compare): If primopN is first sign-extended
11844 to opN and then zero-extended to result type, set primopN to opN.
11845
11846 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
11847
11848 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
11849 for barrier handlers.
11850
11851 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11852
11853 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
11854 UNSPEC constants to be in the unspec enumeration, and redefine
11855 all UNSPECV constants to be in the unspecv enumeration, so that
11856 dumps print which unspec/unspec_volatile this is.
11857 * config/rs6000/vector.md (UNSPEC_*): Ditto.
11858 * config/rs6000/paired.md (UNSPEC_*): Ditto.
11859 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
11860 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
11861 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
11862
11863 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
11864 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
11865 UNSPECV_LWSYNC, since these are used as unspec_volatile.
11866 * config/rs6000/sync.md (isync, lwsync): Ditto.
11867
11868 2011-03-21 Richard Guenther <rguenther@suse.de>
11869
11870 * params.def (lto-min-partition): Fix typo.
11871
11872 2011-03-21 Richard Guenther <rguenther@suse.de>
11873
11874 PR c/47939
11875 * c-decl.c (grokdeclarator): Drop to the main variant only
11876 for array types. Drop flag_gen_aux_info check.
11877
11878 2011-03-21 Richard Guenther <rguenther@suse.de>
11879
11880 PR translation/47911
11881 * params.def (lto-partitions): Fix typo.
11882 (lto-min-partition): Fix wording.
11883
11884 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
11885
11886 * config/rs6000/t-freebsd: Remove duplication from file.
11887
11888 2011-03-21 Richard Guenther <rguenther@suse.de>
11889
11890 PR middle-end/47661
11891 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
11892
11893 2011-03-21 Richard Guenther <rguenther@suse.de>
11894
11895 PR lto/48210
11896 * params.def (lto-partitions): Require at least 1 partition.
11897
11898 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11899
11900 * gthr-solaris.h: Remove.
11901 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
11902 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
11903 (LIB_SPEC): Likewise.
11904 * config/sol2.opt (threads): Remove.
11905 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
11906 (sparc*-*-solaris2*): Likewise.
11907 * configure.ac (enable_threads): Enable solaris support.
11908 * configure: Regenerate.
11909 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
11910 * doc/install.texi (Configuration, --enable-threads=lib): Remove
11911 solaris.
11912
11913 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11914
11915 * config.gcc: Obsolete *-*-solaris2.8*.
11916 * doc/install.texi (Specific, *-*-solaris2*): Document it.
11917
11918 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11919
11920 PR bootstrap/48135
11921 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
11922 reference. Solaris 8 perl works.
11923
11924 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11925
11926 PR bootstrap/48135
11927 * doc/install.texi (Prerequisites): Move jar etc. up.
11928 Explain support library version requirements.
11929
11930 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11931
11932 PR bootstrap/48135
11933 * doc/install.texi (Prerequisites): Move Perl to build
11934 requirements. Always necessary on Solaris 2 with Sun ld.
11935
11936 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11937
11938 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
11939 binutils 2.21.
11940 (Specific, i?86-*-solaris2.[89]): Likewise.
11941 (Specific, i?86-*-solaris2.10): Likewise.
11942 (Specific, mips-sgi-irix6): Likewise.
11943 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
11944 Update for binutils 2.21.
11945
11946 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11947
11948 * configure.ac (gcc_cv_lto_plugin): Fix typo.
11949 Allow -fuse-linker-plugin for non-default plugin linker.
11950 * configure: Regenerate.
11951
11952 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
11953
11954 PR bootstrap/48167
11955 * gengtype.c (files_rules): Added rule for cp/parser.h.
11956
11957 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11958
11959 PR target/48213
11960 * config/s390/s390.c (s390_delegitimize_address): Don't call
11961 lowpart_subreg if orig_x has BLKmode.
11962
11963 2011-03-21 Kai Tietz <ktietz@redhat.com>
11964
11965 PR target/12171
11966 * doc/plugins.texi: Adjust documentation for plugin register_callback.
11967 * tree.h (attribute_spec): Add new member affects_type_identity.
11968 * attribs.c (empty_attribute_table): Adjust attribute_spec
11969 initializers.
11970 * config/alpha/alpha.c: Likewise.
11971 * config/arc/arc.c: Likewise.
11972 * config/arm/arm.c: Likewise.
11973 * config/avr/avr.c: Likewise.
11974 * config/bfin/bfin.c: Likewise.
11975 * config/crx/crx.c: Likewise.
11976 * config/darwin.h: Likewise.
11977 * config/h8300/h8300.c: Likewise.
11978 * config/i386/cygming.h: Likewise.
11979 * config/i386/i386.c: Likewise.
11980 * config/ia64/ia64.c: Likewise.
11981 * config/m32c/m32c.c: Likewise.
11982 * config/m32r/m32r.c: Likewise.
11983 * config/m68hc11/m68hc11.c: Likewise.
11984 * config/m68k/m68k.c: Likewise.
11985 * config/mcore/mcore.c: Likewise.
11986 * config/mep/mep.c: Likewise.
11987 * config/microblaze/microblaze.c: Likewise.
11988 * config/mips/mips.c: Likewise.
11989 * config/rs6000/rs6000.c: Likewise.
11990 * config/rx/rx.c: Likewise.
11991 * config/sh/sh.c: Likewise.
11992 * config/sol2.h: Likewise.
11993 * config/sparc/sparc.c: Likewise.
11994 * config/spu/spu.c: Likewise.
11995 * config/stormy16/stormy16.c: Likewise.
11996 * config/v850/v850.c: Likewise.
11997
11998 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
11999
12000 * simplify-rtx.c (simplify_binary_operation_1): Handle
12001 (xor (and A B) C) case when B and C are both constants.
12002
12003 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
12004
12005 * tree-dfa.c (add_referenced_var): Fix typo in comment.
12006
12007 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
12008
12009 PR bootstrap/48168
12010 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
12011
12012 2011-03-20 Jakub Jelinek <jakub@redhat.com>
12013
12014 PR rtl-optimization/48156
12015 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
12016 assume df and df_lr are not NULL.
12017
12018 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12019
12020 PR debug/48023
12021 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
12022 between a call and its CALL_ARG_LOCATION note.
12023
12024 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
12025
12026 PR debug/48178
12027 * config/sh/sh.c (find_barrier): Don't emit a constant pool
12028 between a call and its corresponding CALL_ARG_LOCATION note.
12029
12030 2011-03-19 Anatoly Sokolov <aesok@post.ru>
12031
12032 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
12033 instead of loop. Use HARD_REGISTER_NUM_P predicate.
12034 * haifa-sched.c (setup_ref_regs): Ditto.
12035 * caller-save.c (add_used_regs_1): Ditto.
12036 * dse.c (look_for_hardregs): Ditto.
12037 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
12038 * sched-rgn.c (check_live_1): Ditto.
12039
12040 2011-03-18 Joseph Myers <joseph@codesourcery.com>
12041
12042 * c-decl.c (diagnose_mismatched_decls): Give an error for
12043 redefining a typedef with variably modified type.
12044
12045 2011-03-18 Joseph Myers <joseph@codesourcery.com>
12046
12047 * c-decl.c (grokfield): Don't allow typedefs for structures or
12048 unions with no tag by default.
12049 * doc/extend.texi (Unnamed Fields): Update.
12050
12051 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
12052
12053 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
12054 Rewrite using indirect functions.
12055 (lwp_slwpcb): Ditto.
12056 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
12057 (avx_vinsertf128<mode>): Ditto.
12058
12059 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12060
12061 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
12062 unspecs.
12063
12064 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12065
12066 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
12067 splitting between a call and its corresponding CALL_ARG_LOCATION note.
12068
12069 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
12070
12071 PR rtl-optimization/48170
12072 * gcse.c (hoist_code): Remove bogus asserts.
12073
12074 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
12075
12076 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
12077 computation for prologue/epilogue.
12078
12079 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12080
12081 * Makefile.in (check-consistency): Remove.
12082
12083 2011-03-18 Jakub Jelinek <jakub@redhat.com>
12084
12085 PR debug/48176
12086 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
12087 arange_table_in_use is 0, but either text_section_used or
12088 cold_text_section_used is true. Don't call it if
12089 !info_section_emitted.
12090
12091 2011-03-18 Anatoly Sokolov <aesok@post.ru>
12092
12093 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
12094 FUNCTION_VALUE_REGNO_P): Remove.
12095 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
12096 Remove.
12097 * config/avr/avr.c (avr_ret_register): Make static inline.
12098 (avr_function_value_regno_p): New function.
12099 (avr_libcall_value): Make static. Add 'func' argument.
12100 (avr_function_value): Make static. Rename 'func' argument to
12101 'fn_decl_or_type', forward it to avr_libcall_value. Call
12102 avr_ret_register function instead of RET_REGISTER macro.
12103 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
12104
12105 2011-03-18 Jason Merrill <jason@redhat.com>
12106
12107 PR c++/23372
12108 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
12109
12110 2011-03-18 Richard Guenther <rguenther@suse.de>
12111
12112 * doc/install.texi (--enable-gold): Remove.
12113 (--with-plugin-ld): Document.
12114 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
12115
12116 2011-03-18 Andrew Pinski <pinskia@gmail.com>
12117
12118 PR middle-end/47790
12119 * expr.c (optimize_bitfield_assignment_op): Revamp to work
12120 again after expansion changes.
12121
12122 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
12123
12124 * combine.c (try_combine): Do simplification only call of
12125 subst() on i2 even when i1 is present. Update comments.
12126
12127 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
12128
12129 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
12130 and UNSPEC_PCREL_SYMOFF.
12131
12132 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12133
12134 * config/s390/s390.md: Use define_c_enum for the unspec constant
12135 definitions.
12136
12137 2011-03-18 Richard Henderson <rth@redhat.com>
12138 Jakub Jelinek <jakub@redhat.com>
12139
12140 PR bootstrap/48161
12141 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
12142 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
12143
12144 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12145
12146 PR middle-end/47725
12147 * combine.c (cant_combine_insn_p): Don't check zero/sign
12148 extended hard registers.
12149
12150 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12151
12152 PR middle-end/47725
12153 * combine.c (cant_combine_insn_p): Check zero/sign extended
12154 hard registers.
12155
12156 2011-03-17 Anatoly Sokolov <aesok@post.ru>
12157
12158 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
12159 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
12160 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
12161 Change return type to bool.
12162 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
12163
12164 2011-03-17 Jakub Jelinek <jakub@redhat.com>
12165
12166 PR debug/48163
12167 * var-tracking.c (prepare_call_arguments): If CALL target
12168 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
12169 pc instead of looking it up using cselib_lookup and use
12170 Pmode for it if x has VOIDmode.
12171 * dwarf2out.c (gen_subprogram_die): If also both first and
12172 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
12173
12174 PR debug/48163
12175 * function.c (assign_parms): For data.passed_pointer parms
12176 use MEM of data.entry_parm instead of data.entry_parm itself
12177 as DECL_INCOMING_RTL.
12178 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
12179 also when passed and declared mode is the same, DECL_RTL
12180 is a MEM with pseudo as address and DECL_INCOMING_RTL is
12181 a MEM too.
12182
12183 2011-03-16 Jeff Law <law@redhat.com>
12184
12185 PR rtl-optimization/37273
12186 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12187 handle them like argument loads from stack slots. Do not double
12188 count memory for memory constants and argument loads from stack slots.
12189
12190 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12191
12192 PR debug/48160
12193 * var-tracking.c (prepare_call_arguments): Check SUBREG.
12194
12195 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12196
12197 PR target/48171
12198 * config/i386/i386.opt: Add Save to -mavx and -mfma.
12199
12200 2011-03-17 Jakub Jelinek <jakub@redhat.com>
12201
12202 PR bootstrap/48153
12203 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
12204 if dwarf_strict.
12205 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
12206 Clear call_arg_locations and call_arg_loc_last always.
12207
12208 PR middle-end/48152
12209 * var-tracking.c (prepare_call_arguments): If argument needs to be
12210 passed by reference, adjust argtype and mode.
12211
12212 2011-03-17 Richard Guenther <rguenther@suse.de>
12213
12214 PR middle-end/48134
12215 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
12216 a value make sure to fold the statement.
12217
12218 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
12219
12220 PR target/43872
12221 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
12222 return condition with !cfun->calls_alloca.
12223
12224 2011-03-17 Richard Guenther <rguenther@suse.de>
12225
12226 PR bootstrap/48148
12227 * lto-cgraph.c (input_overwrite_node): Clear the abstract
12228 origin for decls in other ltrans units.
12229 (input_varpool_node): Likewise.
12230
12231 2011-03-17 Richard Guenther <rguenther@suse.de>
12232
12233 PR middle-end/48165
12234 * tree-object-size.c (compute_object_offset): Properly return
12235 the offset operand of MEM_REFs as sizetype.
12236
12237 2011-03-17 Jakub Jelinek <jakub@redhat.com>
12238
12239 PR rtl-optimization/48141
12240 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
12241 * dse.c: Include params.h.
12242 (active_local_stores_len): New variable.
12243 (add_wild_read, dse_step1): Clear it when setting active_local_stores
12244 to NULL.
12245 (record_store, check_mem_read_rtx): Decrease it when removing
12246 from the chain.
12247 (scan_insn): Likewise. Increase it when adding to chain, if it
12248 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
12249 set active_local_stores to NULL before the addition.
12250 * Makefile.in (dse.o): Depend on $(PARAMS_H).
12251
12252 PR rtl-optimization/48141
12253 * dse.c (record_store): If no positions are needed in an insn
12254 that cannot be deleted, at least unchain it from active_local_stores.
12255
12256 2011-03-16 Dodji Seketeli <dodji@redhat.com>
12257
12258 PR debug/47510
12259 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
12260 (lookup_type_die_strip_naming_typedef): ... here.
12261 (get_context_die): Use it.
12262 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
12263 the anonymous struct named by the naming typedef.
12264
12265 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
12266
12267 PR target/48154
12268 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
12269 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
12270
12271 2011-03-16 Jeff Law <law@redhat.com>
12272
12273 * tree-vrp.c (identify_jump_threads): Slightly simplify type
12274 check for operands of conditional. Allow type to be a pointer.
12275
12276 2011-03-16 Richard Guenther <rguenther@suse.de>
12277
12278 PR tree-optimization/48149
12279 * fold-const.c (fold_binary_loc): Fold
12280 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
12281
12282 2011-03-16 Richard Guenther <rguenther@suse.de>
12283
12284 PR tree-optimization/26134
12285 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
12286 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
12287 (non_rewritable_mem_ref_base): Handle complex type component
12288 accesses, constrain offsets for vector and complex extracts
12289 more properly.
12290
12291 2011-03-16 Richard Guenther <rguenther@suse.de>
12292
12293 PR tree-optimization/48146
12294 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
12295 operands avoiding the need for renaming.
12296
12297 2011-03-16 Richard Guenther <rguenther@suse.de>
12298
12299 * gimple-fold.c (maybe_fold_reference): Open-code relevant
12300 constant folding. Move MEM_REF canonicalization first.
12301 Rely on fold_const_aggregate_ref for initializer folding.
12302 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
12303
12304 2011-03-16 Jakub Jelinek <jakub@redhat.com>
12305
12306 PR middle-end/48136
12307 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
12308 arg0/arg1 or their arguments are always fold converted to matching
12309 types.
12310
12311 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
12312 to nargs.
12313
12314 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12315
12316 PR lto/46944
12317 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
12318 Handle in-tree gold.
12319 (ld_vers): Extract binutils version for gold.
12320 (gcc_cv_ld_hidden): Handle gold here.
12321 (gcc_cv_lto_plugin): Determine level of linker plugin support.
12322 * configure: Regenerate.
12323 * config.in: Regenerate.
12324 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
12325 -fuse-linker-plugin otherwise.
12326 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
12327 (LINK_COMMAND_SPEC): Use it.
12328 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
12329
12330 2011-03-16 Jakub Jelinek <jakub@redhat.com>
12331
12332 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
12333 * calls.c: Remove debug.h include.
12334 (emit_call_1): Don't call virtual_call_token debug hook.
12335 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
12336 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
12337 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
12338 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
12339 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
12340 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
12341 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
12342 dwarf2out_virtual_call): Remove.
12343 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
12344 copy_call_info and virtual_call hooks.
12345 (dwarf2out_init): Don't initialize vcall_insn_table,
12346 debug_dcall_section and debug_vcall_section.
12347 (prune_unused_types): Don't mark nodes from dcall_table.
12348 (dwarf2out_finish): Don't output dcall or vcall tables.
12349 * final.c (final_scan_insn): Don't call direct_call or
12350 virtual_call debug hooks.
12351 * debug.h (struct gcc_debug_hooks): Remove direct_call,
12352 virtual_call_token, copy_call_info and virtual_call hooks.
12353 (debug_nothing_uid): Remove prototype.
12354 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
12355 copy_call_info and virtual_call hooks.
12356 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
12357 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
12358 * debug.c (do_nothing_debug_hooks): Likewise.
12359 (debug_nothing_uid): Remove.
12360 * doc/invoke.texi (-fenable-icf-debug): Remove.
12361 * common.opt (-fenable-icf-debug): Likewise.
12362
12363 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
12364 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
12365 call's MEM. Handle functions returning aggregate through a hidden
12366 first pointer. For virtual calls add clobbered pc to call arguments
12367 chain.
12368 * dwarf2out.c (gen_subprogram_die): Emit
12369 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
12370 can't be emitted.
12371
12372 PR debug/45882
12373 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
12374 * rtl.h (ENTRY_VALUE_EXP): Define.
12375 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
12376 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
12377 * print-rtl.c (print_rtx): Likewise.
12378 * gengtype.c (adjust_field_rtx_def): Likewise.
12379 * var-tracking.c (vt_add_function_parameter): Adjust
12380 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
12381 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
12382 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
12383 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
12384 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
12385
12386 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
12387 Call var_location debug hook even on CALL_INSNs.
12388 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
12389 * rtl.def (ENTRY_VALUE): New.
12390 * dwarf2out.c: Include cfglayout.h.
12391 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
12392 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
12393 (struct call_arg_loc_node): New type.
12394 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
12395 tail_call_site_count): New variables.
12396 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
12397 DW_TAG_GNU_call_site_parameter.
12398 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
12399 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
12400 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
12401 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
12402 and DW_AT_GNU_all_source_call_sites.
12403 (mem_loc_descriptor): Handle ENTRY_VALUE.
12404 (add_src_coords_attributes): Don't add enything if
12405 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
12406 (dwarf2out_abstract_function): Save and clear call_arg_location,
12407 call_site_count and tail_call_site_count around dwarf2out_decl call.
12408 (gen_call_site_die): New function.
12409 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
12410 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
12411 (dwarf2out_function_decl): Clear call_arg_locations,
12412 call_arg_loc_last, set call_site_count and tail_call_site_count
12413 to -1 and free block_map.
12414 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
12415 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
12416 followed by any real instructions.
12417 (dwarf2out_begin_function): Set call_site_count and
12418 tail_call_site_count to 0.
12419 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
12420 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
12421 attempt to force a DIE for it and worst case remove the attribute.
12422 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
12423 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
12424 the decl itself.
12425 * var-tracking.c: Include tm_p.h.
12426 (vt_stack_adjustments): For calls call note_register_arguments.
12427 (argument_reg_set): New variable.
12428 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
12429 ensure the VALUE is resolved.
12430 (call_arguments): New variable.
12431 (prepare_call_arguments): New function.
12432 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
12433 (struct expand_loc_callback_data): Add ignore_cur_loc field.
12434 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
12435 always use the best expression.
12436 (vt_expand_loc): Add ignore_cur_loc argument.
12437 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
12438 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
12439 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
12440 note for all calls.
12441 (vt_add_function_parameter): Use cselib_lookup_from_insn.
12442 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
12443 argument. Don't call cselib_preserve_only_values and
12444 cselib_reset_table.
12445 (note_register_arguments): New function.
12446 (vt_initialize): Compute argument_reg_set. Call
12447 vt_add_function_parameters before processing basic blocks instead of
12448 afterwards. For calls call prepare_call_arguments before calling
12449 cselib_process_insn.
12450 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
12451 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
12452 (var-tracking.o): Depend on $(TM_P_H).
12453 * cfglayout.h (insn_scope): New prototype.
12454 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
12455 * cfglayout.c (insn_scope): No longer static.
12456 * insn-notes.def (CALL_ARG_LOCATION): New.
12457 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
12458 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
12459 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
12460 nothing for DECL_EXTERNAL BLOCK_VARS.
12461
12462 2011-03-16 Alan Modra <amodra@gmail.com>
12463
12464 PR target/45844
12465 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
12466 create invalid offset address for vsx splat insn.
12467 * config/rs6000/predicates.md (splat_input_operand): New.
12468 * config/rs6000/vsx.md (vsx_splat_*): Use it.
12469
12470 2011-03-15 Xinliang David Li <davidxl@google.com>
12471
12472 PR c/47837
12473 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
12474 (normalize_preds): New function.
12475 (is_use_properly_guarded): Normalize def predicates.
12476
12477 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12478
12479 PR target/46788
12480 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
12481 in the output template.
12482
12483 2011-03-15 Richard Guenther <rguenther@suse.de>
12484
12485 PR middle-end/47650
12486 * tree-pretty-print.c (dump_function_declaration): Properly
12487 dump unprototyped and varargs function types.
12488
12489 2011-03-15 Richard Guenther <rguenther@suse.de>
12490
12491 PR tree-optimization/13954
12492 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
12493 and friends.
12494
12495 2011-03-15 Richard Guenther <rguenther@suse.de>
12496
12497 PR tree-optimization/48037
12498 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
12499 selects into BIT_FIELD_REFs.
12500 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
12501 vector select.
12502
12503 2011-03-15 Jakub Jelinek <jakub@redhat.com>
12504
12505 PR tree-optimization/48129
12506 * builtins.c (fold_builtin_snprintf): Convert to type of
12507 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
12508 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
12509
12510 2011-03-15 Richard Guenther <rguenther@suse.de>
12511
12512 PR tree-optimization/41490
12513 * tree-ssa-dce.c (propagate_necessity): Handle returns without
12514 value but with VUSE.
12515 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
12516 return statements.
12517 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
12518 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
12519 * tree-tailcall.c (find_tail_calls): Ignore returns.
12520
12521 2011-03-15 Richard Guenther <rguenther@suse.de>
12522
12523 PR middle-end/48031
12524 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
12525 or variable-indexed array accesses when in gimple form.
12526
12527 2011-03-15 Richard Guenther <rguenther@suse.de>
12528
12529 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
12530
12531 2011-03-15 Alan Modra <amodra@gmail.com>
12532
12533 PR target/48032
12534 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
12535 presume symbol_refs without a symbol_ref_decl are suitably
12536 aligned, nor other trees we may see here. Handle anchor symbols.
12537 (legitimate_constant_pool_address_p): Comment. Add mode param.
12538 Check cmodel=medium addresses. Adjust all calls.
12539 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
12540 creating cmodel=medium optimized access to locals.
12541 * config/rs6000/constraints.md (R): Pass QImode to
12542 legitimate_constant_pool_address_p.
12543 * config/rs6000/predicates.md (input_operand): Pass mode to
12544 legitimate_constant_pool_address_p.
12545 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
12546 Update prototype.
12547
12548 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
12549
12550 PR target/48053
12551 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
12552 64-bit constants being loaded into registers other than GPRs such
12553 as loading 0 into a VSX register.
12554
12555 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12556
12557 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
12558
12559 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12560
12561 PR middle-end/47917
12562 * builtins.c (fold_builtin_snprintf): New function.
12563 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
12564 (fold_builtin_4): Likewise.
12565
12566 PR middle-end/38878
12567 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
12568 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
12569 and C - X == X also strip nops from +/-/p+ operand.
12570 When optimizing -X == C, fold C to arg0's type.
12571
12572 PR debug/47946
12573 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
12574 emit it as add_AT_int instead of add_AT_unsigned.
12575
12576 2011-03-14 Tom Tromey <tromey@redhat.com>
12577
12578 * unwind-dw2.c: Include sys/sdt.h if it exists.
12579 (_Unwind_DebugHook): Use STAP_PROBE2.
12580 * config.in, configure: Rebuild.
12581 * configure.ac: Check for sys/sdt.h.
12582
12583 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
12584
12585 * config/i386/i386.md (ROUND_FLOOR): New constant.
12586 (ROUND_CEIL): Ditto.
12587 (ROUND_TRUNC): Ditto.
12588 (ROUND_MXCSR): Ditto.
12589 (ROUND_NO_EXC): Ditto.
12590 (rint<mode>2): Use new defines instead of numerical constants.
12591 (floor<mode>2): Ditto.
12592 (ceil<mode>2): Ditto.
12593 (btrunc<mode>2): Ditto.
12594 * config/i386/i386-builtin-types.def: Define ROUND function type
12595 aliases.
12596 * config/i386/i386.c (enum ix86_builtins): Add
12597 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
12598 (struct builtin_description): Add
12599 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
12600 (ix86_expand_sse_round): New static function.
12601 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
12602 function types.
12603 (ix86_builtin_vectorized_function): Handle
12604 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
12605
12606 2011-03-14 Tom Tromey <tromey@redhat.com>
12607
12608 * c-parser.c (c_parser_asm_string_literal): Clear
12609 warn_overlength_strings.
12610
12611 2011-03-14 Tom Tromey <tromey@redhat.com>
12612
12613 * c-parser.c (disable_extension_diagnostics): Save
12614 warn_overlength_strings.
12615 (restore_extension_diagnostics): Restore warn_overlength_strings.
12616
12617 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12618
12619 * BASE-VER: Change to 4.7.0.
12620
12621 2011-03-14 Richard Guenther <rguenther@suse.de>
12622
12623 PR middle-end/48098
12624 * tree.c (build_vector_from_val): Adjust assert to requirements
12625 and reality.
12626
12627 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12628
12629 PR bootstrap/48102
12630 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
12631
12632 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
12633
12634 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
12635 terms of target_flags_explicit. Adjust copyright year.
12636
12637 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
12638 * config/rs6000/t-freebsd: New file. Add override for
12639 LIB2FUNCS_EXTRA.
12640
12641 2011-03-13 Chris Demetriou <cgd@google.com>
12642
12643 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
12644 (-fno-diagnostics-show-option): this, to reflect current default.
12645 (-Werror=): Update text about -fno-diagnostics-show-option.
12646
12647 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
12648
12649 PR target/48053
12650 * config/rs6000/predicates.md (easy_vector_constant_add_self,
12651 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
12652 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
12653 mode is not V2DImode or V2DFmode.
12654 (vspltis_constant): Do not handle V2DImode and V2DFmode.
12655 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
12656 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
12657 registers to 0.
12658 (movdi_internal64): Likewise.
12659
12660 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
12661
12662 PR tree-optimization/47127
12663 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
12664 parameter.
12665 (set_cloog_options): Same.
12666 (scop_to_clast): Same.
12667 (print_clast_stmt): Do not call cloog_state_malloc and
12668 cloog_state_free.
12669 (print_generated_program): Same.
12670 (gloog): Same.
12671 * graphite-clast-to-gimple.h (cloog_state): Declared.
12672 (scop_to_clast): Adjust declaration.
12673 * graphite.c (cloog_state): Defined here.
12674 (graphite_initialize): Call cloog_state_malloc.
12675 (graphite_finalize): Call cloog_state_free.
12676
12677 2011-03-11 Jason Merrill <jason@redhat.com>
12678
12679 * attribs.c (lookup_attribute_spec): Take const_tree.
12680 * tree.h: Adjust.
12681
12682 2011-03-11 Joseph Myers <joseph@codesourcery.com>
12683
12684 * config/sparc/sparc.c (sparc_option_override): Use
12685 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
12686
12687 2011-03-11 Richard Guenther <rguenther@suse.de>
12688
12689 PR tree-optimization/48067
12690 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
12691 multiplication result will be only used once on the target
12692 stmt.
12693
12694 2011-03-11 Richard Guenther <rguenther@suse.de>
12695
12696 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
12697
12698 2011-03-11 Richard Guenther <rguenther@suse.de>
12699
12700 PR lto/48073
12701 * tree.c (find_decls_types_r): Do not walk types only reachable
12702 from IDENTIFIER_NODEs.
12703
12704 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12705
12706 PR middle-end/48044
12707 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
12708 all vnode->force_output nodes as needed.
12709
12710 2011-03-11 Jason Merrill <jason@redhat.com>
12711
12712 PR c++/48069
12713 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
12714 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
12715
12716 2011-03-11 Martin Jambor <mjambor@suse.cz>
12717
12718 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
12719 cgraph_node.
12720
12721 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12722
12723 PR tree-optimization/48063
12724 * ipa-inline.c (cgraph_decide_inlining): Don't try to
12725 inline functions called once if !tree_can_inline_p (node->callers).
12726
12727 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
12728
12729 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
12730 extra_objs.
12731 * config/score/score3.c: Delete.
12732 * config/score/score3.h: Delete.
12733 * config/score/mul-div.S: Delete.
12734 * config/score/sfp-machine.h: Add new file.
12735 * config/score/constraints.md: Add new file.
12736 * config/score/t-score-softfp: Add new file.
12737 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
12738 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
12739 (score7_extra_constraint): Delete.
12740 (score7_option_override): Remove unused code.
12741 * config/score/score.c: Remove score3 and score5 define and code.
12742 * config/score/score.h: Remove score3 and score5 define and code.
12743 * config/score/score.md: Remove score3 template and unusual insn.
12744 * config/score/score.opt: Remove score3 and score5 options.
12745
12746 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12747
12748 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
12749 when _HPUX_SOURCE is defined.
12750 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
12751
12752 2011-03-10 Jason Merrill <jason@redhat.com>
12753
12754 PR c++/48029
12755 * stor-layout.c (layout_type): Don't set structural equality
12756 on arrays of incomplete type.
12757 * tree.c (type_hash_eq): Handle comparing them properly.
12758
12759 2011-03-10 Jakub Jelinek <jakub@redhat.com>
12760
12761 PR debug/48043
12762 * config/s390/s390.c (s390_delegitimize_address): Make sure the
12763 result mode matches original rtl mode.
12764
12765 2011-03-10 Nick Clifton <nickc@redhat.com>
12766
12767 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
12768 (andsi3, andsi3_flags): Fix timings for three operand alternative.
12769
12770 2011-03-09 Jakub Jelinek <jakub@redhat.com>
12771
12772 PR rtl-optimization/47866
12773 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
12774 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
12775 if target wasn't scalar.
12776 * function.c (assign_stack_temp_for_type): Assert that neither
12777 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
12778 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
12779 macro.
12780 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
12781
12782 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12783
12784 * config/s390/s390-protos.h (s390_label_align): New prototype.
12785 * config/s390/s390.c (s390_label_align): New function.
12786 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
12787
12788 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
12789
12790 PR target/47755
12791 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
12792 V2DI/V2DF constants. Only all 0's or all 1's are easy.
12793 (output_vec_const_move): Ditto.
12794
12795 2011-03-08 Anatoly Sokolov <aesok@post.ru>
12796
12797 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
12798 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
12799 * config/mips/mips.c (mips_preferred_reload_class): Make static.
12800 Change 'rclass' argument and result type to reg_class_t.
12801 (TARGET_PREFERRED_RELOAD_CLASS): Define.
12802
12803 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
12804
12805 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12806 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
12807 (TARGET_MEMORY_MOVE_COST): Define.
12808 (avr_register_move_cost, avr_memory_move_cost): New Functions.
12809
12810 2011-03-08 Jakub Jelinek <jakub@redhat.com>
12811
12812 PR debug/47881
12813 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
12814 removed anything.
12815
12816 PR tree-optimization/48022
12817 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
12818 for EQ/NE_EXPR.
12819
12820 2011-03-07 Jakub Jelinek <jakub@redhat.com>
12821
12822 PR debug/47991
12823 * var-tracking.c (find_use_val): Return NULL for
12824 cui->sets && cui->store_p BLKmode MEMs.
12825
12826 2011-03-07 Anatoly Sokolov <aesok@post.ru>
12827
12828 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
12829 Remove.
12830 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
12831 xstormy16_print_operand_address): Remove.
12832 * config/stormy16/stormy16.c (xstormy16_print_operand,
12833 xstormy16_print_operand_address): Make static.
12834 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
12835
12836 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
12837
12838 PR target/47862
12839 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12840 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
12841 before definition.
12842
12843 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
12844
12845 PR bootstrap/48000
12846 * cfgloopmanip.c (fix_bb_placements): Return immediately
12847 if FROM is BASE_LOOP's header.
12848
12849 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
12850
12851 * gimplify.c (gimplify_function_tree): Fix building calls
12852 to __builtin_return_address.
12853
12854 2011-03-07 Alan Modra <amodra@gmail.com>
12855
12856 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
12857 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
12858 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
12859 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
12860 return_mode args.
12861 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
12862 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
12863 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
12864 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
12865 * config/rs6000/rs6000.c
12866 (rs6000_elf_end_indicate_exec_stack): Rename to..
12867 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
12868 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
12869 (rs6000_file_start): ..here.
12870 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
12871 file scope variables.
12872 (call_ABI_of_interest): New function.
12873 (init_cumulative_args): Set above vars when function return value
12874 is a float, vector, or small struct.
12875 (rs6000_function_arg_advance_1): Likewise for function args.
12876 (rs6000_va_start): Set rs6000_passes_float if variable arg function
12877 references float args.
12878
12879 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
12880
12881 * doc/cfg.texi: Remove "See" before @ref.
12882 * doc/invoke.texi: Likewise.
12883
12884 2011-03-05 Jason Merrill <jason@redhat.com>
12885
12886 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
12887
12888 2011-03-05 Anthony Green <green@moxielogic.com>
12889
12890 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
12891
12892 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
12893
12894 PR rtl-optimization/47899
12895 * cfgloopmanip.c (fix_bb_placements): Fix first argument
12896 to flow_loop_nested_p when moving the loop upward.
12897
12898 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
12899
12900 PR target/47719
12901 * arm.md (movhi_insn_arch4): Accept any immediate constant.
12902
12903 2011-03-05 Jakub Jelinek <jakub@redhat.com>
12904
12905 PR tree-optimization/47967
12906 * ipa-cp.c (build_const_val): Return NULL instead of creating
12907 VIEW_CONVERT_EXPR for mismatching sizes.
12908 (ipcp_create_replace_map): Return NULL if build_const_val failed.
12909 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
12910 give up on versioning.
12911
12912 2011-03-05 Alan Modra <amodra@gmail.com>
12913
12914 PR target/47986
12915 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
12916 full cmodel medium/large lo_sum + high addresses.
12917
12918 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12919
12920 * config/s390/s390.c (s390_decompose_address): Reject non-literal
12921 pool references in UNSPEC_LTREL_OFFSET.
12922
12923 2011-03-04 Jan Hubicka <jh@suse.cz>
12924
12925 PR lto/47497
12926 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
12927 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
12928 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
12929 Add node pointers.
12930 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
12931 cgraph_add_thunk): Add node pointers.
12932 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
12933 associated to right node.
12934 (input_node): Update use of cgraph_same_body_alias
12935 and cgraph_add_thunk.
12936
12937 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
12938
12939 * config/i386/i386.opt (mprefer-avx128): New flag.
12940 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
12941 modes when the flag -mprefer-avx128 is on.
12942
12943 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
12944
12945 * dwarf2out.c (compare_loc_operands): Fix address handling.
12946
12947 2011-03-04 Alan Modra <amodra@gmail.com>
12948
12949 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
12950
12951 2011-03-04 Richard Guenther <rguenther@suse.de>
12952
12953 PR middle-end/47968
12954 * expmed.c (extract_bit_field_1): Prefer vector modes that
12955 vec_extract patterns can handle.
12956
12957 2011-03-04 Richard Guenther <rguenther@suse.de>
12958
12959 PR middle-end/47975
12960 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
12961
12962 2011-03-04 Richard Henderson <rth@redhat.com>
12963
12964 * explow.c (emit_stack_save): Remove 'after' parameter.
12965 (emit_stack_restore): Likewise.
12966 * expr.h: Update to match.
12967 * builtins.c, calls.c, stmt.c: Likewise.
12968 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
12969 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
12970 * function.c (expand_function_end): Insert the emit_stack_save
12971 sequence before parm_birth_insn instead of after.
12972
12973 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
12974
12975 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
12976 (ssse3_pmaddubsw128): Ditto.
12977 (ssse3_pmaddubsw): Ditto.
12978
12979 2011-03-03 Steve Ellcey <sje@cup.hp.com>
12980
12981 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
12982
12983 2011-03-03 Jakub Jelinek <jakub@redhat.com>
12984
12985 PR c/47963
12986 * gimplify.c (omp_add_variable): Only call omp_notice_variable
12987 on TYPE_SIZE_UNIT if it is a DECL.
12988
12989 PR debug/47283
12990 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
12991 first operand is not is_gimple_mem_ref_addr, try to fold it.
12992 If the operand still isn't is_gimple_mem_ref_addr, clear
12993 MEM_EXPR on op0.
12994
12995 2011-03-03 Richard Guenther <rguenther@suse.de>
12996
12997 PR middle-end/47283
12998 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
12999 match comment.
13000 (refs_may_alias_p_1): For release branches return true if
13001 we are confused by our input.
13002
13003 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13004
13005 * config/s390/s390.c (s390_function_value): Rename to ...
13006 (s390_function_and_libcall_value): ... this.
13007 (s390_function_value): New function.
13008 (s390_libcall_value): New function.
13009 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
13010 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
13011 target macro definitions.
13012 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
13013
13014 2011-03-02 Joseph Myers <joseph@codesourcery.com>
13015
13016 * config/i386/freebsd64.h (CC1_SPEC): Define.
13017 * config/i386/linux64.h (CC1_SPEC): Define.
13018 * config/i386/x86-64.h (CC1_SPEC): Don't define.
13019
13020 2011-03-02 Anatoly Sokolov <aesok@post.ru>
13021
13022 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
13023 Remove.
13024 * config/stormy16/stormy16.c: Include reload.h.
13025 (xstormy16_memory_move_cost): New function.
13026 (TARGET_MEMORY_MOVE_COST): Define.
13027
13028 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
13029
13030 PR rtl-optimization/47925
13031 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
13032 with side effects. Remove the more-specific check for volatile asms.
13033
13034 2011-03-02 Alan Modra <amodra@gmail.com>
13035
13036 PR target/47935
13037 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
13038 toc relative addresses for valid offsets.
13039
13040 2011-03-01 Richard Guenther <rguenther@suse.de>
13041
13042 PR tree-optimization/47890
13043 * tree-vect-loop.c (get_initial_def_for_induction): Set
13044 related stmt properly.
13045
13046 2011-03-01 Richard Guenther <rguenther@suse.de>
13047
13048 PR lto/47924
13049 * lto-streamer.c (lto_record_common_node): Also register
13050 the canonical type.
13051
13052 2011-03-01 Richard Guenther <rguenther@suse.de>
13053
13054 PR lto/46911
13055 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
13056 Do not stream DECL_ABSTRACT_ORIGIN.
13057 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
13058 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
13059 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
13060 Do not stream DECL_ABSTRACT_ORIGIN.
13061 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
13062 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
13063
13064 2011-02-28 Anatoly Sokolov <aesok@post.ru>
13065
13066 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
13067 FUNCTION_VALUE_REGNO_P): Remove.
13068 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
13069 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
13070 Add 'outgoing' argument.
13071 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
13072 function.
13073 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13074 TARGET_FUNCTION_VALUE_REGNO_P): Define.
13075
13076 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
13077
13078 PR debug/28047
13079 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
13080 (lookup_filename): Likewise.
13081 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
13082
13083 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
13084 Jakub Jelinek <jakub@redhat.com>
13085
13086 PR middle-end/47893
13087 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
13088 (assign_stack_local_1): Change last argument type to int.
13089 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
13090 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
13091 don't record padding space into frame_space_list nor use those areas.
13092 (assign_stack_local): Adjust caller.
13093 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
13094 of assign_stack_local, pass 0 as last argument.
13095 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
13096 callers.
13097
13098 2011-02-28 Jakub Jelinek <jakub@redhat.com>
13099
13100 PR debug/47283
13101 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
13102 Use target address_mode and pointer_mode hooks instead of hardcoded
13103 Pmode and ptr_mode. Handle some simple cases of extending if
13104 POINTERS_EXTEND_UNSIGNED < 0.
13105 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
13106 Call convert_debug_memory_address.
13107 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
13108 convert_debug_memory_address.
13109
13110 PR middle-end/46790
13111 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
13112 * configure: Regenerated.
13113 * config.in: Regenerated.
13114 * varasm.c (default_function_section): Return NULL
13115 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
13116
13117 2011-02-28 Martin Jambor <mjambor@suse.cz>
13118
13119 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
13120 the description to match the printed values.
13121
13122 2011-02-28 Richard Guenther <rguenther@suse.de>
13123
13124 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
13125 of the copied scope tree.
13126
13127 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13128
13129 * doc/extend.texi (Function Attributes): Avoid deeply (and
13130 wrongly) nested tables.
13131
13132 2011-02-27 Jakub Jelinek <jakub@redhat.com>
13133
13134 PR middle-end/47903
13135 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
13136 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
13137 r isn't op0 nor op1.
13138
13139 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
13140
13141 * config/avr/avr.md: Remove magic comment for emacs.
13142
13143 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
13144
13145 PR target/45261
13146 * config/avr/avr.c (avr_option_override): Use error on bad options.
13147 (avr_help): New function.
13148 (TARGET_HELP): Define.
13149
13150 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
13151
13152 PR target/42240
13153 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
13154 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
13155
13156 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
13157
13158 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
13159 (ARM Options): Ditto.
13160 (i386 and x86-64 Options): Ditto.
13161 (RX Options): Ditto.
13162 (SPARC Options): Ditto.
13163
13164 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
13165
13166 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
13167 FreeBSD 6 and later. Generally use cpu generic.
13168
13169 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
13170
13171 * doc/cpp.texi: Update copyright years.
13172
13173 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
13174
13175 PR target/46898
13176 * config/lm32/lm32.md (ashrsi3): Added needed variable.
13177
13178 2011-02-25 Jon Beniston <jon@beniston.com>
13179
13180 PR target/46898
13181 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
13182 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
13183 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
13184 (lm32_block_move_inline): Add type cast to remove warning.
13185 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
13186 (gen_int_relational): Move declarations to start of function.
13187
13188 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
13189
13190 PR tree-optimization/45470
13191 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
13192 can throw internally only.
13193 * tree-vect-stmts.c (vectorizable_call): Likewise.
13194
13195 2011-02-24 Anatoly Sokolov <aesok@post.ru>
13196
13197 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
13198 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13199 * config/stormy16/stormy16-protos.h
13200 (xstormy16_preferred_reload_class): Remove.
13201 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
13202 static. Change 'rclass' argument and return type to reg_class_t.
13203 (TARGET_PREFERRED_RELOAD_CLASS,
13204 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13205
13206 2011-02-24 Richard Guenther <rguenther@suse.de>
13207
13208 * lto-streamer-in.c (input_bb): Do not find referenced vars
13209 in debug statements.
13210
13211 2011-02-23 Jason Merrill <jason@redhat.com>
13212
13213 * common.opt (fabi-version): Document v5 and v6.
13214
13215 2011-02-23 Richard Guenther <rguenther@suse.de>
13216
13217 PR tree-optimization/47849
13218 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
13219
13220 2011-02-23 Jie Zhang <jie@codesourcery.com>
13221
13222 * opts-common.c (decode_cmdline_option): Print empty string
13223 argument as "" in decoded->orig_option_with_args_text.
13224 * gcc.c (execute): Print empty string argument as ""
13225 in the verbose output.
13226 (do_spec_1): Keep empty string argument.
13227
13228 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
13229
13230 * config.gcc: Declare score-* and crx-* obsolete.
13231
13232 2011-02-23 Jie Zhang <jie@codesourcery.com>
13233
13234 PR rtl-optimization/47763
13235 * web.c (web_main): Ignore naked clobber when replacing register.
13236
13237 2011-02-22 Anatoly Sokolov <aesok@post.ru>
13238
13239 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
13240 Remove.
13241
13242 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
13243
13244 PR doc/47848
13245 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
13246
13247 2011-02-22 Mike Stump <mikestump@comcast.net>
13248
13249 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
13250 assembler.
13251 * configure: Regenerate.
13252
13253 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
13254
13255 PR rtl-optimization/46002
13256 * ira-color.c (update_copy_costs): Change class intersection
13257 test to reg_class_contents[] test of 'hard_regno'.
13258
13259 2011-02-21 Joseph Myers <joseph@codesourcery.com>
13260
13261 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
13262 than Driver option.
13263 * config/hpux11.opt (mt): Likewise.
13264 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
13265 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
13266 * config/vax/elf.opt (mno-asm-pic): Likewise.
13267 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
13268
13269 2011-02-21 Mike Stump <mikestump@comcast.net>
13270
13271 PR target/47822
13272 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
13273 tree so we can get save the type.
13274 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
13275 for CFString instead of trying to use past the end of the builtins.
13276 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
13277 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
13278 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
13279 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
13280 Rename to darwin_builtin_cfstring.
13281 (darwin_init_cfstring_builtins): Return the built type.
13282
13283 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
13284
13285 PR target/47840
13286 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
13287 (_mm256_insert_epi64): Use _mm_insert_epi64.
13288
13289 2011-02-21 Anatoly Sokolov <aesok@post.ru>
13290
13291 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13292 * config/stormy16/stormy16-protos.h
13293 (xstormy16_mode_dependent_address_p): Remove.
13294 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
13295 Make static. Change return type to bool. Change argument type to
13296 const_rtx. Remove dead code.
13297 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13298
13299 2011-02-21 Richard Guenther <rguenther@suse.de>
13300
13301 PR lto/47820
13302 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
13303 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
13304 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
13305 TUs context.
13306 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
13307 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
13308
13309 2011-02-20 Richard Guenther <rguenther@suse.de>
13310
13311 PR lto/47822
13312 * tree.c (free_lang_data_in_decl): Clean builtins from
13313 the TU decl BLOCK_VARS.
13314
13315 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
13316
13317 PR debug/47620
13318 PR debug/47630
13319 * haifa-sched.c (fix_tick_ready): Skip tick computation
13320 for debug insns.
13321
13322 2011-02-19 Richard Guenther <rguenther@suse.de>
13323
13324 PR lto/47647
13325 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
13326 Remove lazy BLOCK_VARS streaming.
13327 (lto_input_ts_block_tree_pointers): Likewise.
13328 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
13329
13330 2011-02-19 Joseph Myers <joseph@codesourcery.com>
13331
13332 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
13333
13334 2011-02-19 Joseph Myers <joseph@codesourcery.com>
13335
13336 * config/i386/biarch32.h, config/i386/mach.h,
13337 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
13338
13339 2011-02-19 Jakub Jelinek <jakub@redhat.com>
13340
13341 PR target/47800
13342 * config/i386/i386.md (peephole2 for shift and plus): Use
13343 operands[1] original mode in the first insn.
13344
13345 2011-02-18 Mike Stump <mikestump@comcast.net>
13346
13347 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
13348
13349 2011-02-18 Jan Hubicka <jh@suse.cz>
13350
13351 PR middle-end/47788
13352 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
13353 to zero when the function is not inlinable at all.
13354
13355 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13356
13357 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
13358 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13359 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
13360 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
13361 * config/pa/t-pa64: Likewise.
13362 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
13363
13364 2011-02-18 Jakub Jelinek <jakub@redhat.com>
13365
13366 PR driver/47787
13367 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
13368
13369 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13370
13371 PR target/47792
13372 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
13373
13374 2011-02-18 Anatoly Sokolov <aesok@post.ru>
13375
13376 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
13377 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
13378 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
13379 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
13380 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
13381 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
13382 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
13383 m32r_load_postinc_p, m32r_store_preinc_predec_p,
13384 m32r_legitimate_address_p): New functions.
13385 * config/m32r/constraints.md (constraint "S"): Don't use
13386 STORE_PREINC_PREDEC_P.
13387 (constraint "U"): Don't use LOAD_POSTINC_P.
13388
13389 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
13390
13391 PR rtl-optimization/46178
13392 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
13393 compute ira_hard_regno_cover_class[].
13394
13395 2011-02-18 Richard Guenther <rguenther@suse.de>
13396
13397 PR lto/47798
13398 * lto-streamer.h (lto_global_var_decls): Declare.
13399 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
13400 statics for global var processing.
13401
13402 2011-02-18 Richard Guenther <rguenther@suse.de>
13403
13404 PR tree-optimization/47737
13405 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
13406 edge dominance check.
13407
13408 2011-02-18 Jakub Jelinek <jakub@redhat.com>
13409
13410 PR debug/47780
13411 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
13412 avoid invalid rtx sharing.
13413
13414 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
13415
13416 * doc/cpp.texi (Obsolete Features): Add background on the
13417 origin of assertions.
13418
13419 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
13420
13421 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
13422 objc_abi == 2.
13423 * config/darwin.c (output_objc_section_asm_op): Added support for
13424 ABI v1 and v2.
13425 (is_objc_metadata): New.
13426 (darwin_objc2_section): New.
13427 (darwin_objc1_section): New.
13428 (machopic_select_section): Added support for ABI v1 and v2.
13429 (darwin_emit_objc_zeroed): New.
13430 (darwin_output_aligned_bss): Detect objc metadata and treat it
13431 appropriately.
13432 (darwin_asm_output_aligned_decl_common): Same.
13433 (darwin_asm_output_aligned_decl_local): Same.
13434 * config/darwin-sections.def: Updated for ABI v1 and v2.
13435 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
13436 compiling Objective-C code for the NeXT runtime, default to using
13437 ABI version 0 for 32-bit, and version 2 for 64-bit.
13438
13439 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13440
13441 * common.opt (optimize_fast): New Variable.
13442 * opts.c (default_options_optimization): Use opts->x_optimize_fast
13443 instead of local variable ofast.
13444
13445 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
13446
13447 * doc/invoke.texi (fobjc-abi-version): Documented.
13448 (fobjc-nilcheck): Documented.
13449 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
13450 version.
13451
13452 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13453
13454 PR driver/47390
13455 * common.opt (export-dynamic): New Driver option.
13456 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
13457
13458 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13459
13460 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
13461
13462 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
13463 Jan Hubicka <jh@suse.cz>
13464
13465 PR debug/47106
13466 PR debug/47402
13467 * cfgexpand.c (account_used_vars_for_block): Remove.
13468 (estimated_stack_frame_size): Use referenced vars.
13469 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
13470 that were referenced in the original function. Test src_fn
13471 rather than cfun. Drop redundant get_var_ann.
13472 (setup_one_parameter): Drop redundant get_var_ann.
13473 (declare_return_variable): Likewise.
13474 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
13475 (copy_arguments_for_versioning): Drop redundant get_var_ann.
13476 * ipa-inline.c (compute_inline_parameters): Do not compute
13477 disregard_inline_limits here.
13478 (compute_inlinable_for_current, pass_inlinable): New.
13479 (pass_inline_parameters): Require PROP_referenced_vars.
13480 * cgraphunit.c (cgraph_process_new_functions): Don't run
13481 compute_inline_parameters explicitly unless function is in SSA form.
13482 (cgraph_analyze_function): Set .disregard_inline_limits.
13483 * tree-sra.c (convert_callers): Compute inliner parameters
13484 only for functions already in SSA form.
13485
13486 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13487
13488 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
13489 -mlittle-endian-data.
13490
13491 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13492
13493 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
13494 -mno-fpu, not -fpu and -no-fpu.
13495 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
13496 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
13497
13498 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
13499
13500 PR target/43653
13501 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
13502 input reload with PLUS RTX.
13503
13504 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13505
13506 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
13507 of InverseVar(MDMX).
13508
13509 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13510
13511 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
13512 --m4-340.
13513
13514 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13515
13516 * config/mn10300/mn10300.opt (mno-crt0): New.
13517
13518 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13519
13520 * config/m68k/uclinux.opt (static-libc): New Driver option.
13521
13522 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13523
13524 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
13525
13526 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13527
13528 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
13529 %{muser-extend-enabled}.
13530
13531 2011-02-16 Richard Guenther <rguenther@suse.de>
13532
13533 PR tree-optimization/47738
13534 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
13535 the TODO from tree_predictive_commoning.
13536
13537 2011-02-15 Jeff Law <law@redhat.com>
13538
13539 Revert
13540 2011-01-25 Jeff Law <law@redhat.com>
13541
13542 PR rtl-optimization/37273
13543 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13544 handle them like argument loads from stack slots. Do not double
13545 count memory for memory constants and argument loads from stack slots.
13546
13547 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
13548
13549 PR middle-end/47725
13550 * combine.c (cant_combine_insn_p): Revert the last change.
13551
13552 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
13553
13554 PR target/47755
13555 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
13556 mode for vector constants. Remove code that checks for TImode.
13557
13558 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13559
13560 PR debug/47106
13561 PR debug/47402
13562 * cgraph.h (compute_inline_parameters): Return void.
13563 * ipa-inline.c (compute_inline_parameters): Adjust.
13564
13565 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13566
13567 PR debug/47106
13568 PR debug/47402
13569 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
13570 rather than decl.
13571 * cfgexpand.c (estimated_stack_frame_size): Likewise.
13572 * ipa-inline.c (compute_inline_parameters): Adjust.
13573
13574 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13575
13576 PR debug/47106
13577 PR debug/47402
13578 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
13579 Adjust all users. Pass FN to...
13580 * tree-flow-inline.h (first_referenced_var): ... this. Add
13581 fn argument.
13582 * ipa-struct-reorg.c: Adjust.
13583 * tree-dfa.c: Adjust.
13584 * tree-into-ssa.c: Adjust.
13585 * tree-sra.c: Adjust.
13586 * tree-ssa-alias.c: Adjust.
13587 * tree-ssa-live.c: Adjust.
13588 * tree-ssa.c: Adjust.
13589 * tree-ssanames.c: Adjust.
13590 * tree-tailcall.c: Adjust.
13591
13592 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13593
13594 PR debug/47106
13595 PR debug/47402
13596 * tree-flow.h (referenced_var_lookup): Add fn parameter.
13597 Adjust all callers.
13598 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
13599 * tree-flow-inline.h: Adjust.
13600 * gimple-pretty-print.c: Adjust.
13601 * tree-into-ssa.c: Adjust.
13602 * tree-ssa.c: Adjust.
13603 * cfgexpand.c: Adjust.
13604
13605 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13606
13607 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
13608 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13609 (EXTRA_CONSTRAINT): Delete.
13610 * config/iq2000/constraints.md: New file.
13611 * config/iq2000/iq2000.md: Include it.
13612 (define_insn ""): Delete.
13613 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
13614 unsupported constraint letters from patterns.
13615 (call_value, call_value_internal1): Likewise.
13616 (call_value_multiple_internal1): Likewise.
13617
13618 2011-02-15 Nick Clifton <nickc@redhat.com>
13619
13620 * config/mn10300/mn10300.c: Include tm-constrs.h.
13621 (struct liw_data): New data structure describing an LIW candidate
13622 instruction.
13623 (extract_bundle): Use struct liw_data. Allow small integer
13624 operands for some instructions.
13625 (check_liw_constraints): Use struct liw_data. Remove swapped
13626 parameter. Add comments describing the checks. Fix bug when
13627 assigning the source of liw1 to the source of liw2.
13628 (liw_candidate): Delete. Code moved into extract_bundle.
13629 (mn10300_bundle_liw): Use struct liw_data. Check constraints
13630 before swapping.
13631 * config/mn10300/predicates.md (liw_operand): New predicate.
13632 Allows registers and small integer constants.
13633 * config/mn10300/constraints.md (O): New constraint. Accetps
13634 integers in the range -8 to +7 inclusive.
13635 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
13636 for moving a small integer into a register. Give this alternative
13637 LIW attributes.
13638 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
13639 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
13640 using the J,K,L and M constraints,
13641 (liw): Remove SI mode on second operands to allow for HI and QI
13642 mode values.
13643 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
13644 instruction.
13645
13646 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
13647
13648 PR middle-end/47725
13649 * combine.c (cant_combine_insn_p): Check zero/sign extended
13650 hard registers.
13651
13652 2011-02-15 Richard Guenther <rguenther@suse.de>
13653
13654 PR tree-optimization/47743
13655 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
13656 for a non-type-compatible VN lookup bail out.
13657
13658 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13659
13660 * config/fr30/constraints.md: New file.
13661 * config/fr30/fr30.md: Include it.
13662 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
13663 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13664 (EXTRA_CONSTRAINT): Delete.
13665
13666 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13667
13668 * config/frv/constraints.md: New file.
13669 * config/frv/predicates.md: Include it.
13670 * config/frv/frv.c (reg_class_from_letter): Delete.
13671 (frv_option_override): Don't initialize it.
13672 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
13673 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
13674 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
13675 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13676 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
13677 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13678 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
13679 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
13680 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
13681 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
13682 (REG_CLASS_FROM_CONSTRAINT): Delete.
13683
13684 2011-02-15 Jakub Jelinek <jakub@redhat.com>
13685
13686 PR middle-end/47581
13687 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
13688 if frame size is 0 in a leaf function.
13689
13690 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13691
13692 PR pch/14940
13693 * config/alpha/host-osf.c: New file.
13694 * config/alpha/x-osf: New file.
13695 * config.host (alpha*-dec-osf*): Use it.
13696
13697 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13698
13699 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13700 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
13701 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
13702 (rx_mode_dependent_address_p): ...this. Make static. Change argument
13703 type to const_rtx.
13704 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13705
13706 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13707
13708 * config/stormy16/constraints.md: New file.
13709 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
13710 Use satisfies_constraint_Q and satisfies_constraint_R.
13711 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
13712 Delete.
13713 (xstormy16_legitiamte_address_p): Declare.
13714 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
13715 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13716 (EXTRA_CONSTRAINT): Delete.
13717 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
13718 Un-staticize.
13719 (xstormy16_extra_constraint_p): Delete.
13720
13721 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
13722
13723 PR tree-optimization/46494
13724 * loop-unroll.c (split_edge_and_insert): Adjust comment.
13725 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
13726 (pass_rtl_loop_done): Add TODO_verify_flow.
13727 * fwprop.c (pass_rtl_fwprop): Likewise.
13728 * modulo-sched.c (pass_sms): Likewise.
13729 * tree-ssa-dom.c (pass_dominator): Likewise.
13730 * tree-ssa-loop-ch.c (pass_ch): Likewise.
13731 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
13732 (pass_tree_loop_done): Likewise.
13733 * tree-ssa-pre.c (execute_pre): Likewise.
13734 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
13735 * tree-ssa-sink.c (pass_sink_code): Likewise.
13736 * tree-vrp.c (pass_vrp): Likewise.
13737
13738 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13739
13740 * config/v850/constraints.md: New file.
13741 * config/v850/v850.md: Include it.
13742 * config/v850/predicates.md (reg_or_0_operand): Use
13743 satisfies_constraint_G.
13744 (special_symbolref_operand): Use satisfies_constraint_K.
13745 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
13746 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
13747 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
13748 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13749 (EXTRA_CONSTRAINT): Delete.
13750 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
13751 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
13752 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
13753
13754 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13755
13756 PR target/47696
13757 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
13758 description.
13759
13760 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13761
13762 * config/mcore/constraints.md: New file.
13763 * config/mcore/mcore.md: Include it.
13764 * config/mcore/mcore.c (reg_class_from_letter): Delete.
13765 * config/mcore/mcore.h (reg_class_from_letter): Delete.
13766 (REG_CLASS_FROM_LETTER): Delete.
13767 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
13768 insn_const_int_ok_for_constraint.
13769 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
13770 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
13771 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13772 (EXTRA_CONSTRAINT): Delete.
13773
13774 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13775
13776 PR ada/41929
13777 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
13778 (IS_SIGHANDLER): Define.
13779 (sparc64_is_sighandler): New function, split off from
13780 sparc64_fallback_frame_state.
13781 (sparc_is_sighandler): New function, split off from
13782 sparc_fallback_frame_state.
13783 (sparc64_fallback_frame_state): Merge with ...
13784 (sparc_fallback_frame_state): ... this into ...
13785 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
13786 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
13787 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
13788 stack instead of hardcoded offsets.
13789
13790 2011-02-14 Andriy Gapon <avg@freebsd.org>
13791
13792 PR target/45808
13793 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
13794
13795 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13796
13797 * configure: Regenerate.
13798
13799 2011-02-12 Joseph Myers <joseph@codesourcery.com>
13800
13801 PR driver/45731
13802 * gcc.c (asm_options): Correct spec matching --target-help.
13803
13804 2011-02-12 Martin Jambor <mjambor@suse.cz>
13805
13806 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
13807 to gimple call error.
13808
13809 2011-02-12 Mike Stump <mikestump@comcast.net>
13810
13811 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
13812 comments in backslash regions.
13813
13814 2011-02-12 Mike Stump <mikestump@comcast.net>
13815 Jakub Jelinek <jakub@redhat.com>
13816 Iain Sandoe <iains@gcc.gnu.org>
13817
13818 PR target/47324
13819 * dwarf2out.c (output_cfa_loc): When required, apply the
13820 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
13821 (output_loc_sequence): Likewise.
13822 (output_loc_operands_raw): Likewise.
13823 (output_loc_sequence_raw): Likewise.
13824 (output_cfa_loc): Likewise.
13825 (output_loc_list): Suppress register number adjustment when
13826 calling output_loc_sequence()
13827 (output_die): Likewise.
13828
13829 2011-02-12 Anatoly Sokolov <aesok@post.ru>
13830
13831 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
13832 Remove macros.
13833 * config/xtensa/xtensa.c (xtensa_register_move_cost,
13834 xtensa_memory_move_cost): New functions.
13835 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
13836
13837 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
13838
13839 PR lto/47225
13840 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
13841 in the current directory.
13842 * configure: Rebuilt.
13843
13844 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
13845
13846 * config/darwin.c (darwin_override_options): Add a hunk missed
13847 from the commit of r168571. Trim comment line lengths and
13848 correct indents of the preceding block.
13849
13850 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
13851
13852 * gcc.c (driver_handle_option): Concatenate the argument to -F with
13853 the switch.
13854
13855 2011-02-11 Joseph Myers <joseph@codesourcery.com>
13856
13857 * common.opt (nostartfiles): New Driver option.
13858
13859 2011-02-11 Xinliang David Li <davidxl@google.com>
13860
13861 PR tree-optimization/47707
13862 * tree-chrec.c (convert_affine_scev): Keep type precision.
13863
13864 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
13865
13866 PR tree-optimization/47420
13867 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
13868
13869 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
13870
13871 PR rtl-optimization/47614
13872 * rtl.h (check_for_inc_dec): Declare.
13873 * dse.c (check_for_inc_dec): Externalize...
13874 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
13875 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
13876
13877 2011-02-11 Joseph Myers <joseph@codesourcery.com>
13878
13879 PR driver/47678
13880 * gcc.c (main): Do not compile inputs if there were errors in
13881 option handling.
13882 * opts-common.c (read_cmdline_option): Check for wrong language
13883 after other error checks.
13884
13885 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
13886
13887 * cgraph.c: Fix comment typos.
13888 * cgraph.h: Likewise.
13889 * cgraphunit.c: Likewise.
13890 * ipa-cp.c: Likewise.
13891 * ipa-inline.c: Likewise.
13892 * ipa-prop.c: Likewise.
13893 * ipa-pure-const.c: Likewise.
13894 * ipa-ref.c: Likewise.
13895 * ipa-reference.c: Likewise.
13896
13897 2011-02-11 Jakub Jelinek <jakub@redhat.com>
13898
13899 PR debug/47684
13900 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
13901
13902 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13903
13904 PR testsuite/47400
13905 * doc/sourcebuild.texi (Require Support): Document
13906 dg-require-ascii-locale.
13907
13908 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
13909
13910 * doc/lto.texi (Write summary): Fix missing parentheses.
13911
13912 2011-02-10 DJ Delorie <dj@redhat.com>
13913
13914 * config/m32c/m32c.c (m32c_option_override): Disable
13915 -fcombine-stack-adjustments until flag value tracking and compare
13916 optimization can be rewritten.
13917
13918 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
13919
13920 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
13921 PROCESSOR_POWER7.
13922 (PROCESSOR_DEFAULT64): Likewise.
13923
13924 2011-02-10 Richard Henderson <rth@redhat.com>
13925
13926 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
13927 change from 2011-02-03.
13928 * config/rx/rx.c (flags_from_code): Likewise.
13929 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
13930 is valid, n/pz otherwise.
13931 (rx_select_cc_mode): Return CCmode if Y is not zero.
13932
13933 2011-02-10 Richard Guenther <rguenther@suse.de>
13934
13935 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
13936
13937 2011-02-10 Richard Guenther <rguenther@suse.de>
13938
13939 PR tree-optimization/47677
13940 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
13941
13942 2011-02-10 Jakub Jelinek <jakub@redhat.com>
13943
13944 PR target/47665
13945 * combine.c (make_compound_operation): Only change shifts into
13946 multiplication for SCALAR_INT_MODE_P.
13947
13948 2011-02-10 Jie Zhang <jie@codesourcery.com>
13949
13950 PR testsuite/47622
13951 Revert
13952 2011-02-05 Jie Zhang <jie@codesourcery.com>
13953 PR debug/42631
13954 * web.c (entry_register): Don't clobber the number of the
13955 first uninitialized reference in used[].
13956
13957 2011-02-09 Richard Guenther <rguenther@suse.de>
13958
13959 PR tree-optimization/47664
13960 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
13961 all edges again.
13962
13963 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
13964
13965 PR target/46481
13966 PR target/47032
13967 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
13968 PROCESSOR_POWER7.
13969 (PROCESSOR_DEFAULT64): Same.
13970 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
13971
13972 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13973
13974 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
13975
13976 2011-02-09 Martin Jambor <mjambor@suse.cz>
13977
13978 PR middle-end/45505
13979 * tree-sra.c (struct access): New flags grp_scalar_read and
13980 grp_scalar_write. Changed description of assignment read and write
13981 flags.
13982 (dump_access): Dump new flags, reorder all of them.
13983 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
13984 to detect multiple scalar reads.
13985 (analyze_access_subtree): Use the new scalar read write flags instead
13986 of the old flags. Adjusted comments.
13987
13988 2011-02-08 DJ Delorie <dj@redhat.com>
13989
13990 PR target/47548
13991 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
13992 patterns.
13993
13994 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13995
13996 * config/m68k/uclinux.opt: New.
13997 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
13998
13999 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14000
14001 * config/cris/elf.opt (sim): New Driver option.
14002
14003 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14004
14005 * config/xtensa/elf.opt: New.
14006 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
14007
14008 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14009
14010 * config/vax/elf.opt: New.
14011 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
14012
14013 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14014
14015 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
14016
14017 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14018
14019 * config/gnu-user.opt: New.
14020 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
14021 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
14022 *-*-uclinux*): Use gnu-user.opt.
14023
14024 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
14025
14026 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
14027 * config/i386/gnu.h (CPP_SPEC): Likewise.
14028
14029 2011-02-08 Ian Lance Taylor <iant@google.com>
14030
14031 * common.opt (fcx-limited-range): Add SetByCombined flag.
14032 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
14033 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
14034 (fassociative-math, freciprocal-math): Likewise.
14035 (funsafe-math-optimizations): Likewise.
14036 * opth-gen.awk: Handle SetByCombined.
14037 * optc-gen.awk: Likewise.
14038 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
14039 (set_unsafe_math_optimizations_flags): Likewise.
14040 * doc/options.texi (Option properties): Document SetByCombined.
14041
14042 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14043
14044 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
14045 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
14046 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
14047 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
14048 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
14049
14050 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
14051
14052 PR tree-optimization/46834
14053 PR tree-optimization/46994
14054 PR tree-optimization/46995
14055 * graphite-sese-to-poly.c (used_outside_reduction): New.
14056 (detect_commutative_reduction): Call used_outside_reduction.
14057 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
14058 translate_scalar_reduction_to_array only when at least one
14059 loop-phi/close-phi tuple has been detected.
14060
14061 2011-02-08 Richard Guenther <rguenther@suse.de>
14062
14063 PR middle-end/47639
14064 * tree-vect-generic.c (expand_vector_operations_1): Update
14065 stmts here ...
14066 (expand_vector_operations): ... not here. Cleanup EH info
14067 and the CFG if required.
14068
14069 2011-02-08 Richard Guenther <rguenther@suse.de>
14070
14071 PR tree-optimization/47641
14072 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
14073 require type compatibility.
14074
14075 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14076
14077 * gimple-low.c (lower_function_body): Don't remove the location of
14078 the return statement here.
14079 (lower_gimple_return): Do it here instead but only if the return
14080 statement is actually used twice.
14081
14082 2011-02-08 Richard Guenther <rguenther@suse.de>
14083
14084 PR tree-optimization/47632
14085 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
14086 unused up_to_stmt parameter, return whether cfg-cleanup is
14087 necessary, remove EH info properly.
14088 (forward_propagate_into_gimple_cond): Adjust caller.
14089 (forward_propagate_into_cond): Likewise.
14090 (forward_propagate_comparison): Likewise.
14091 (tree_ssa_forward_propagate_single_use_vars): Make
14092 forward_propagate_comparison case similar to the two others.
14093
14094 2011-02-08 Nick Clifton <nickc@redhat.com>
14095
14096 * config/mn10300/mn10300.opt (mliw): New command line option.
14097 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
14098 (liw_bundling): New automaton.
14099 (liw): New attribute.
14100 (liw_op): New attribute.
14101 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
14102 (movsi_internal): Add LIW attributes.
14103 (andsi3): Likewise.
14104 (iorsi3): Likewise.
14105 (xorsi3): Likewise.
14106 (addsi3): Separate register and immediate alternatives.
14107 Add LIW attributes.
14108 (subsi3): Likewise.
14109 (cmpsi): Likewise.
14110 (aslsi3): Likewise.
14111 (lshrsi3): Likewise.
14112 (ashrsi3): Likewise.
14113 (liw): New pattern.
14114 * config/mn10300/mn10300.c (liw_op_names): New
14115 (mn10300_print_operand): Handle 'W' operand descriptor.
14116 (extract_bundle): New function.
14117 (check_liw_constraints): New function.
14118 (liw_candidate): New function.
14119 (mn10300_bundle_liw): New function.
14120 (mn10300_reorg): New function.
14121 (TARGET_MACHINE_DEPENDENT_REORG): Define.
14122 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
14123 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
14124 __LIW__ or __NO_LIW__.
14125 * doc/invoke.texi: Describe the -mliw command line option.
14126
14127 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14128
14129 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
14130 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
14131 pthread_mutex_unlock): Remove.
14132 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
14133 * config/pa/t-pa64: Likewise.
14134 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
14135 shared libc if not linking against libpthread.
14136 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
14137
14138 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
14139
14140 PR target/47558
14141 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
14142 on 10.6 and later to ensure that we always use the unwinder from
14143 the system. Only add -no_compact_unwind when tarteting darwin
14144 10.6 or later.
14145
14146 2011-02-07 Steve Ellcey <sje@cup.hp.com>
14147
14148 PR target/46997
14149 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
14150 (vec_interleave_lowv2sf): Ditto.
14151 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
14152 (vec_extract_oddv2sf): Ditto.
14153
14154 2011-02-07 Mike Stump <mikestump@comcast.net>
14155
14156 PR target/42333
14157 Add __ieee_divdc3 entry point.
14158 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
14159 entry point.
14160 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
14161 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
14162 * config/darwin.c (darwin_rename_builtins): Add.
14163 * config/darwin-protos.h (darwin_rename_builtins): Add.
14164
14165 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
14166
14167 PR target/47636
14168 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
14169 for the condition.
14170
14171 2011-02-07 Mike Stump <mikestump@comcast.net>
14172
14173 * config/darwin.opt (mmacosx-version-min): Update default OS version.
14174
14175 2011-02-07 Denis Chertykov <chertykov@gmail.com>
14176
14177 PR target/47534
14178 * config/avr/libgcc.S (exit): Move .endfunc
14179
14180 2011-02-07 Richard Guenther <rguenther@suse.de>
14181
14182 PR tree-optimization/47615
14183 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
14184 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
14185 (run_scc_vn): Initialize it.
14186 (visit_reference_op_load): Use it.
14187 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
14188
14189 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14190
14191 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
14192 DImode trapping arithmetic libfuncs.
14193
14194 2011-02-07 Richard Guenther <rguenther@suse.de>
14195
14196 PR tree-optimization/47621
14197 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
14198 two duplicates ...
14199 (execute_update_addresses_taken): ... here. Make it more
14200 conservative in what we accept.
14201
14202 2011-02-06 Joseph Myers <joseph@codesourcery.com>
14203
14204 * config/sparc/freebsd.h (ASM_SPEC): Define.
14205 * config/sparc/vxworks.h (ASM_SPEC): Define.
14206
14207 2011-02-06 Joseph Myers <joseph@codesourcery.com>
14208
14209 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
14210
14211 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
14212
14213 * doc/invoke.texi: Remove reference to compiler internals from
14214 user documentation.
14215
14216 * reg-notes.def: Remove REG_VALUE_PROFILE.
14217 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
14218
14219 2011-02-05 Jakub Jelinek <jakub@redhat.com>
14220
14221 PR middle-end/47610
14222 * varasm.c (default_section_type_flags): If decl is NULL,
14223 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
14224
14225 2011-02-05 Jie Zhang <jie@codesourcery.com>
14226
14227 PR debug/42631
14228 * web.c (entry_register): Don't clobber the number of the
14229 first uninitialized reference in used[].
14230
14231 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
14232
14233 PR tree-optimization/46194
14234 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
14235 (build_classic_dist_vector_1): Do not represent classic distance
14236 vectors when the access functions are variating in different loops.
14237
14238 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14239
14240 * config/mips/iris6.opt: New.
14241 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
14242
14243 2011-02-04 Richard Henderson <rth@redhat.com>
14244 Steve Ellcey <sje@cup.hp.com>
14245
14246 PR target/46997
14247 * config/ia64/predicates.md (mux1_brcst_element): New.
14248 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
14249 * config/ia64/ia64.c (ia64_unpack_assemble): New.
14250 (ia64_unpack_sign): New.
14251 (ia64_expand_unpack): Rewrite using new routines.
14252 (ia64_expand_widen_sum): Ditto.
14253 (ia64_expand_dot_prod_v8qi): Ditto.
14254 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
14255 routines, add endian check.
14256 (pmpy2_even): Rename from pmpy2_r, add endian check.
14257 (pmpy2_odd): Rename from pmpy2_l, add endian check.
14258 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
14259 (vec_widen_smult_hi_v4hi): Ditto.
14260 (vec_widen_umult_lo_v4hi): Ditto.
14261 (vec_widen_umult_hi_v4hi): Ditto.
14262 (mulv2si3): Change endian checks.
14263 (sdot_prodv4hi): Rewrite with new calls.
14264 (udot_prodv4hi): New.
14265 (vec_pack_ssat_v4hi): Add endian check.
14266 (vec_pack_usat_v4hi): Ditto.
14267 (vec_pack_ssat_v2si): Ditto.
14268 (max1_even): Rename from max1_r, add endian check.
14269 (max1_odd): Rename from max1_l, add endian check.
14270 (*mux1_rev): Format change.
14271 (*mux1_mix): Ditto.
14272 (*mux1_shuf): Ditto.
14273 (*mux1_alt): Ditto.
14274 (*mux1_brcst_v8qi): Use new predicate.
14275 (vec_extract_evenv8qi): Remove endian check.
14276 (vec_extract_oddv8qi): Ditto.
14277 (vec_interleave_lowv4hi): Format change.
14278 (vec_interleave_highv4hi): Ditto.
14279 (mix2_even): Rename from mix2_r, add endian check.
14280 (mix2_odd): Rename from mux2_l, add endian check.
14281 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
14282 (vec_extract_evenodd_helper): Format change.
14283 (vec_extract_evenv4hi): Remove endian check.
14284 (vec_extract_oddv4hi): Remove endian check.
14285 (vec_interleave_lowv2si): Format change.
14286 (vec_interleave_highv2si): Format change.
14287 (vec_initv2si): Remove endian check.
14288 (vecinit_v2si): Add endian check.
14289 (reduc_splus_v2sf): Add endian check.
14290 (reduc_smax_v2sf): Ditto.
14291 (reduc_smin_v2sf): Ditto.
14292 (vec_initv2sf): Remove endian check.
14293 (fpack): Add endian check.
14294 (fswap): Add endian check.
14295 (vec_interleave_highv2sf): Add endian check.
14296 (vec_interleave_lowv2sf): Add endian check.
14297 (fmix_lr): Add endian check.
14298 (vec_setv2sf): Format change.
14299 (*vec_extractv2sf_0_be): Use shift to extract operand.
14300 (*vec_extractv2sf_1_be): New.
14301 (vec_pack_trunc_v4hi): Add endian check.
14302 (vec_pack_trunc_v2si): Format change.
14303
14304 2011-02-04 Jakub Jelinek <jakub@redhat.com>
14305
14306 PR inline-asm/23200
14307 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
14308 do bb, locus and block comparison and disallow loads if it is not set.
14309 (stmt_is_replaceable_p): New function.
14310 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
14311 callers.
14312 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
14313 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
14314 SSA_NAME_DEF_STMT.
14315 * tree-flow.h (stmt_is_replaceable_p): New prototype.
14316
14317 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14318
14319 * config/rs6000/xilinx.opt: New.
14320 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
14321
14322 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14323
14324 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
14325
14326 2011-02-03 Anatoly Sokolov <aesok@post.ru>
14327
14328 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
14329 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
14330 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
14331 secondary_reload_info, xtensa_secondary_reload): Remove.
14332 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
14333 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
14334 (xtensa_preferred_reload_class): Make static. Change return and
14335 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
14336 Use CONST_DOUBLE_P predicate.
14337 (xtensa_preferred_output_reload_class): New function.
14338 (xtensa_secondary_reload): Make static.
14339
14340 2011-02-03 Joseph Myers <joseph@codesourcery.com>
14341
14342 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
14343 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
14344 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
14345
14346 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14347
14348 PR middle-end/31490
14349 * output.h (SECTION_RELRO): Define.
14350 (SECTION_MACH_DEP): Adjust.
14351 (get_variable_section): New prototype.
14352 * varpool.c (varpool_finalize_named_section_flags): New function.
14353 (varpool_assemble_pending_decls): Call it.
14354 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
14355 * cgraphunit.c (cgraph_output_in_order): Call
14356 varpool_finalize_named_section_flags.
14357 * varasm.c (get_section): Allow section flags conflicts between
14358 relro and read-only sections if the section hasn't been declared yet.
14359 Set SECTION_OVERRIDE after diagnosing section type conflict.
14360 (get_variable_section): No longer static.
14361 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
14362 readonly sections that need relocations.
14363 (decl_readonly_section_1): New function.
14364 (decl_readonly_section): Use it.
14365
14366 Revert:
14367 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
14368 Steve Ellcey <sje@cup.hp.com>
14369
14370 PR middle-end/31490
14371 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
14372 if section attribute used.
14373
14374 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14375
14376 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
14377 * config/darwin.c (SECTION_NO_ANCHOR): Define.
14378 (darwin_init_sections): Remove assertion.
14379
14380 2011-02-03 Nick Clifton <nickc@redhat.com>
14381
14382 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
14383 lt and ge.
14384 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
14385 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
14386 instead of "n" and "pz".
14387 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
14388 CC_FLAG_S.
14389
14390 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14391
14392 PR target/47312
14393 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
14394 fma, expand FMA_EXPR as fma{,f,l} call.
14395
14396 PR lto/47274
14397 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
14398 copy them into a unsigned char variable and pass address of it to
14399 lto_output_data_stream.
14400
14401 PR target/47564
14402 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
14403 around backend_init_target and lang_dependent_init_target calls.
14404 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
14405 (verify_cgraph_node): Don't call set_cfun here. Use
14406 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
14407 Set error_found for incorrectly represented calls to thunks.
14408
14409 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
14410
14411 PR debug/43092
14412 PR rtl-optimization/43494
14413 * rtl.h (for_each_inc_dec_fn): New type.
14414 (for_each_inc_dec): Declare.
14415 * rtlanal.c (struct for_each_inc_dec_ops): New type.
14416 (for_each_inc_dec_find_inc_dec): New fn.
14417 (for_each_inc_dec_find_mem): New fn.
14418 (for_each_inc_dec): New fn.
14419 * dse.c (struct insn_size): Remove.
14420 (replace_inc_dec, replace_inc_dec_mem): Remove.
14421 (emit_inc_dec_insn_before): New fn.
14422 (check_for_inc_dec): Use it, along with for_each_inc_dec.
14423 (canon_address): Pass mem modes to cselib_lookup.
14424 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
14425 (cselib_lookup_from_insn): Likewise.
14426 (cselib_subst_to_values): Likewise.
14427 * cselib.c (find_slot_memmode): New var.
14428 (cselib_find_slot): New fn. Use it instead of
14429 htab_find_slot_with_hash everywhere.
14430 (entry_and_rtx_equal_p): Use find_slot_memmode.
14431 (autoinc_split): New fn.
14432 (rtx_equal_for_cselib_p): Rename and implement in terms of...
14433 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
14434 Deal with autoinc. Special-case recursion into MEMs.
14435 (cselib_hash_rtx): Likewise.
14436 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
14437 address and MEM modes.
14438 (cselib_subst_to_values): Add memmode, pass it on.
14439 Deal with autoinc.
14440 (cselib_lookup): Add memmode argument, pass it on.
14441 (cselib_lookup_from_insn): Add memmode.
14442 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
14443 (struct cselib_record_autoinc_data): New.
14444 (cselib_record_autoinc_cb): New fn.
14445 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
14446 mode to cselib_lookup. Reset autoinced REGs here instead of...
14447 (cselib_process_insn): ... here.
14448 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
14449 to cselib_lookup.
14450 (add_uses): Likewise, also to cselib_subst_to_values.
14451 (add_stores): Likewise.
14452 * sched-deps.c (add_insn_mem_dependence): Pass mode to
14453 cselib_subst_to_values.
14454 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
14455 * gcse.c (do_local_cprop): Adjusted.
14456 * postreload.c (reload_cse_simplify_set): Adjusted.
14457 (reload_cse_simplify_operands): Adjusted.
14458 * sel-sched-dump (debug_mem_addr_value): Pass mode.
14459
14460 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
14461
14462 PR tree-optimization/45122
14463 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
14464 unsafe assumptions when there's more than one loop exit.
14465
14466 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
14467
14468 PR target/47272
14469 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
14470 Document using vector double with the load/store builtins, and
14471 that the load/store builtins always use Altivec instructions.
14472
14473 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
14474 to use altivec memory instructions, even on VSX.
14475 (vector_altivec_store_<mode>): Ditto.
14476
14477 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
14478 function.
14479
14480 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14481 V2DF, V2DI support to load/store overloaded builtins.
14482
14483 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
14484 altivec load/store builtins for V2DF/V2DI types.
14485
14486 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
14487 set avoid indexed addresses on power6 if -maltivec.
14488 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
14489 vector_altivec_load/vector_altivec_store builtins.
14490 (altivec_expand_st_builtin): Ditto.
14491 (altivec_expand_builtin): Add VSX memory builtins.
14492 (rs6000_init_builtins): Add V2DI types to internal types.
14493 (altivec_init_builtins): Add support for V2DF/V2DI altivec
14494 load/store builtins.
14495 (rs6000_address_for_altivec): Insure memory address is appropriate
14496 for Altivec.
14497
14498 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
14499 vec_vsx_ld and vec_vsx_st.
14500 (vsx_store_<mode>): Ditto.
14501
14502 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
14503 variables to hold long long types for VSX vector memory builtins.
14504 (RS6000_BTI_unsigned_long_long): Ditto.
14505 (long_long_integer_type_internal_node): Ditti.
14506 (long_long_unsigned_type_internal_node): Ditti.
14507
14508 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
14509 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
14510 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
14511
14512 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
14513 short cuts.
14514 (vec_vsx_st): Ditto.
14515
14516 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14517
14518 * config/pa/pa-hpux10.opt: New.
14519 * config/hpux11.opt (pthread): New Driver option.
14520 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
14521 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
14522
14523 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14524
14525 * config/ia64/vms.opt: New.
14526 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
14527
14528 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
14529
14530 PR target/47580
14531 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
14532 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
14533 generator functions.
14534 (vsx_floatuns<VSi><mode>2): Ditto.
14535 (vsx_fix_trunc<mode><VSi>2): Ditto.
14536 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
14537
14538 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14539
14540 * config/i386/djgpp.opt (posix): New Driver option.
14541
14542 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
14543
14544 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
14545 Move to the unsupported targets list.
14546
14547 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
14548
14549 PR rtl-optimization/47525
14550 * df-scan.c: Update copyright years.
14551 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
14552 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
14553
14554 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14555
14556 * config/i386/sysv4.h (TARGET_VERSION): Remove.
14557 (SUBTARGET_RETURN_IN_MEMORY): Remove.
14558 (ASM_OUTPUT_ASCII): Remove.
14559 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
14560
14561 2011-02-02 Jeff Law <law@redhat.com>
14562
14563 PR middle-end/47543
14564 * reload.c (find_reloads_address): Handle reg+d address where both
14565 components are invalid by reloading the entire address.
14566
14567 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
14568 Richard Guenther <rguenther@suse.de>
14569
14570 PR tree-optimization/40979
14571 PR bootstrap/47044
14572 * passes.c (init_optimization_passes): After LIM call copy_prop
14573 and DCE to clean up.
14574 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
14575
14576 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
14577
14578 PR tree-optimization/47576
14579 PR tree-optimization/47555
14580 * doc/invoke.texi (scev-max-expr-complexity): Documented.
14581 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14582 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
14583 * tree-scalar-evolution.c (follow_ssa_edge): Use
14584 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
14585
14586 2011-02-02 Richard Guenther <rguenther@suse.de>
14587
14588 PR tree-optimization/47566
14589 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
14590
14591 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
14592
14593 PR debug/47106
14594 PR debug/47402
14595 * tree-inline.c (declare_return_variable): Remove unused caller
14596 variable.
14597
14598 PR debug/47106
14599 PR debug/47402
14600 * tree-flow-inline.h (clear_is_used, is_used_p): New.
14601 * cfgexpand.c (account_used_vars_for_block): Use them.
14602 * tree-nrv.c (tree_nrv): Likewise.
14603 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
14604 (dump_scope_block): Likewise.
14605 (remove_unused_locals): Likewise.
14606
14607 PR debug/47106
14608 PR debug/47402
14609 * tree-inline.c (declare_return_variable): Add result decl to
14610 local decls only once.
14611 * gimple-low.c (record_vars_into): Mark newly-created variables
14612 as referenced.
14613
14614 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
14615
14616 PR debug/47498
14617 PR debug/47501
14618 PR debug/45136
14619 PR debug/45130
14620 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14621 debug insns.
14622 (no_real_insns_p, schedule_block, set_priorities): Drop special
14623 treatment of boundary debug insns.
14624 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14625 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
14626 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14627 (BOUNDARY_DEBUG_INSN_P): Likewise.
14628 (SCHEDULE_DEBUG_INSN_P): Likewise.
14629 * sched-rgn.c (init_ready_list): Drop special treatment of
14630 boundary debug insns.
14631 * final.c (rest_of_clean_state): Clear notes' BB.
14632
14633 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14634
14635 * config/openbsd.opt (assert=): New Driver option.
14636
14637 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14638
14639 * config/i386/nto.opt: New.
14640 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
14641
14642 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14643
14644 * config/i386/netware.opt: New.
14645 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
14646
14647 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14648
14649 * config/interix.opt (posix): New Driver option.
14650
14651 2011-02-01 DJ Delorie <dj@redhat.com>
14652
14653 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
14654
14655 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
14656 class for A0/A1.
14657
14658 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
14659
14660 PR tree-optimization/47561
14661 * toplev.c (process_options): Print the Graphite flags. Add
14662 flag_loop_flatten to the list of options requiring Graphite.
14663
14664 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14665
14666 * config/i386/cygming.opt (posix): New Driver option.
14667
14668 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14669
14670 * config/arm/vxworks.opt: New.
14671 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
14672
14673 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14674
14675 * config/alpha/elf.opt: New.
14676 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
14677 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
14678
14679 2011-02-01 Richard Guenther <rguenther@suse.de>
14680
14681 PR tree-optimization/47559
14682 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
14683 store-motion on references that can throw.
14684
14685 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
14686
14687 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
14688 * tree-pass.h (TDF_CSELIB): New macro.
14689 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
14690 cselib_lookup): Check for it rather than for TDF_DETAILS.
14691
14692 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
14693
14694 PR driver/47547
14695 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
14696 is HOST_BIT_BUCKET.
14697
14698 * opts.c (finish_options): Don't add x_aux_base_name if it is
14699 HOST_BIT_BUCKET.
14700
14701 2011-02-01 Richard Guenther <rguenther@suse.de>
14702
14703 PR tree-optimization/47555
14704 Revert
14705 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
14706
14707 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14708
14709 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
14710
14711 PR gcc/46692
14712 * config/lm32/t-lm32: Add multilib for all CPU options.
14713
14714 2011-02-01 Richard Guenther <rguenther@suse.de>
14715
14716 PR tree-optimization/47541
14717 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
14718 sure to have a field at offset zero.
14719
14720 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14721
14722 * config/arc/arc.opt (EB, EL): New Driver options.
14723
14724 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14725
14726 * config/alpha/osf5.opt: New.
14727 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
14728
14729 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14730
14731 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
14732
14733 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
14734
14735 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
14736 -floop-interchange.
14737 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
14738 is an alias of -floop-interchange and that it requires the
14739 Graphite infrastructure.
14740 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
14741 flag_loop_interchange based on the value of flag_tree_loop_linear.
14742
14743 2011-01-31 Jakub Jelinek <jakub@redhat.com>
14744 Richard Guenther <rguenther@suse.de>
14745
14746 PR tree-optimization/47538
14747 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
14748 type instead of r1type, except for comparisons. For right
14749 shifts and comparisons punt if there are mismatches in
14750 sizetype vs. non-sizetype types.
14751
14752 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14753
14754 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14755 avx_runtime.
14756
14757 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14758
14759 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
14760 version number.
14761 * configure: Regenerate.
14762
14763 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14764
14765 * configure.ac (gcc_cv_ld_static_option): Define.
14766 (gcc_cv_ld_dynamic_option): Define.
14767 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
14768 instead.
14769 (HAVE_LD_STATIC_DYNAMIC): Update message.
14770 (LD_STATIC_OPTION): Define.
14771 (LD_DYNAMIC_OPTION): Define.
14772 * configure: Regenerate.
14773 * config.in: Regenerate.
14774 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
14775 HAVE_LD_STATIC_DYNAMIC]: Use them.
14776
14777 2011-01-31 Nick Clifton <nickc@redhat.com>
14778
14779 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
14780 registers inside interrupt handlers if the handler is not a leaf
14781 function.
14782
14783 2011-01-31 Nick Clifton <nickc@redhat.com>
14784
14785 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
14786 reg_renumber returning an INVALID_REGNUM.
14787
14788 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
14789
14790 PR libgcj/44341
14791 * doc/install.texi: Document host options discarded when cross
14792 configuring target libraries.
14793
14794 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
14795
14796 Reverted:
14797 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14798 PR debug/45136
14799 PR debug/45130
14800 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14801 debug insns.
14802 (no_real_insns_p, schedule_block, set_priorities): Drop special
14803 treatment of boundary debug insns.
14804 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14805 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14806 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14807 (BOUNDARY_DEBUG_INSN_P): Likewise.
14808 (SCHEDULE_DEBUG_INSN_P): Likewise.
14809 * sched-rgn.c (init_ready_list): Drop special treatment of
14810 boundary debug insns.
14811 * final.c (rest_of_clean-state): Clear notes' BB.
14812
14813 2011-01-31 Alan Modra <amodra@gmail.com>
14814
14815 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
14816 toc relative expressions as we do in print_operand_address.
14817
14818 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
14819
14820 * doc/extend.texi: Follow spelling conventions.
14821 * doc/invoke.texi: Fix a typo.
14822
14823 2011-01-30 Joseph Myers <joseph@codesourcery.com>
14824
14825 * config/hpux11.opt: New.
14826 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
14827 ia64*-*-hpux*): Use hpux11.opt.
14828
14829 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
14830
14831 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
14832 to tmake_file.
14833
14834 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14835
14836 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
14837 support sites.
14838
14839 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14840
14841 * doc/install.texi (Binaries): Remove outdated reference for
14842 Motorola 68HC11/68HC12 downloads.
14843
14844 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14845
14846 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
14847 Drepper's paper.
14848
14849 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
14850
14851 PR bootstrap/47147
14852 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
14853 used by NetBSD.
14854
14855 2011-01-28 Ahmad Sharif <asharif@google.com>
14856
14857 * value-prof.c (check_counter): Corrected error message.
14858
14859 2011-01-29 Jie Zhang <jie@codesourcery.com>
14860
14861 * config/arm/arm.c (arm_legitimize_reload_address): New.
14862 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
14863 arm_legitimize_reload_address.
14864 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
14865
14866 2011-01-28 Ian Lance Taylor <iant@google.com>
14867
14868 * godump.c (go_define): Ignore macros whose definitions include
14869 two adjacent operands.
14870
14871 2011-01-28 Jakub Jelinek <jakub@redhat.com>
14872
14873 PR target/42894
14874 * varasm.c (force_const_mem): Store copy of x in desc->constant
14875 instead of x itself.
14876 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
14877 itself into REG_EQUAL note.
14878
14879 2011-01-28 Joseph Myers <joseph@codesourcery.com>
14880
14881 * config/freebsd.opt (posix, rdynamic): New Driver options.
14882
14883 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14884
14885 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
14886 -Bstatic/-Bdynamic.
14887 * configure: Regenerate.
14888
14889 2011-01-27 Joseph Myers <joseph@codesourcery.com>
14890
14891 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
14892 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
14893
14894 2011-01-27 Anatoly Sokolov <aesok@post.ru>
14895
14896 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
14897 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
14898 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
14899 (s390_preferred_reload_class): Make static. Change return and
14900 'rclass' argument type to reg_class_t.
14901
14902 2011-01-27 Jan Hubicka <jh@suse.cz>
14903
14904 PR middle-end/46949
14905 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
14906 (process_function_and_variable_attributes): Check defined weakrefs.
14907
14908 2011-01-27 Martin Jambor <mjambor@suse.cz>
14909
14910 PR tree-optimization/47228
14911 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
14912 build_ref_for_offset.
14913
14914 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14915
14916 * config/spu/spu-elf.h (ASM_SPEC): Remove.
14917
14918 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
14919
14920 PR rtl-optimization/46856
14921 * postreload.c (reload_combine_recognize_const_pattern): Do not
14922 separate cc0 setter and user on cc0 targets.
14923
14924 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
14925
14926 PR c/43082
14927 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
14928 passed a VOID_TYPE expression, immediately emit an error and
14929 return error_mark_node.
14930
14931 2011-01-26 Jeff Law <law@redhat.com>
14932
14933 PR rtl-optimization/47464
14934 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
14935 rather than may_trap_p as needed.
14936
14937 2011-01-26 DJ Delorie <dj@redhat.com>
14938
14939 PR rtl-optimization/46878
14940 * combine.c (insn_a_feeds_b): Check for the implicit cc0
14941 setter/user dependency as well.
14942
14943 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
14944
14945 PR rtl-optimization/44469
14946 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
14947 after removing trivially dead basic blocks.
14948
14949 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14950
14951 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
14952 * config/frv/frv.h (LINK_SPEC): Likewise.
14953 * config/i386/netware.h (LINK_SPEC): Likewise.
14954 * config/m68k/linux.h (ASM_SPEC): Likewise.
14955 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
14956 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14957 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14958 * config/sparc/linux.h (ASM_SPEC): Likewise.
14959 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14960 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14961
14962 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14963
14964 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
14965 * config/frv/frv.h (ASM_SPEC): Likewise.
14966 * config/m68k/linux.h (ASM_SPEC): Likewise.
14967 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14968 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
14969 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14970 * config/sparc/linux.h (ASM_SPEC): Likewise.
14971 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14972 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14973
14974 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14975
14976 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
14977 * config/frv/frv.h (LINK_SPEC): Likewise.
14978 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14979
14980 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14981
14982 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
14983 * config/frv/frv.h (ASM_SPEC): Likewise.
14984 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
14985 * config/m68k/linux.h (ASM_SPEC): Likewise.
14986 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14987 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
14988 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14989 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
14990 * config/sparc/linux.h (ASM_SPEC): Likewise.
14991 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14992 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14993 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
14994
14995 2011-01-26 Steve Ellcey <sje@cup.hp.com>
14996
14997 PR target/46997
14998 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
14999 (*mux2): Ditto.
15000 (vec_extract_evenodd_help): Ditto.
15001 (vec_extract_evenv4hi): Ditto.
15002 (vec_extract_oddv4hi): Ditto.
15003 (vec_interleave_lowv2si): Ditto.
15004 (vec_interleave_highv2si): Ditto.
15005 (vec_extract_evenv2si): Ditto.
15006 (vec_extract_oddv2si: Ditto.
15007 (vec_pack_trunc_v2si): Ditto.
15008
15009 2011-01-22 Jan Hubicka <jh@suse.cz>
15010
15011 PR target/47237
15012 * cgraph.h (cgraph_local_info): New field can_change_signature.
15013 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
15014 signature can change.
15015 (ipcp_estimate_growth): Call sequence simplify only if calle signature
15016 can change.
15017 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
15018 (cgraph_function_versioning): We can not change signature of functions
15019 that don't allow that.
15020 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
15021 (lto_input_node): Likewise.
15022 * ipa-inline.c (compute_inline_parameters): Compute
15023 local.can_change_signature.
15024 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
15025 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
15026 functions that can not change signature.
15027 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
15028 init_cumulative_args): Do not use local calling conventions
15029 for functions that can not change signature.
15030
15031 2011-01-22 Jan Hubicka <jh@suse.cz>
15032
15033 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
15034
15035 2011-01-26 Richard Guenther <rguenther@suse.de>
15036
15037 PR tree-optimization/47190
15038 * cgraphunit.c (process_common_attributes): New function.
15039 (process_function_and_variable_attributes): Use it.
15040
15041 2011-01-26 Richard Guenther <rguenther@suse.de>
15042
15043 PR lto/47423
15044 * cgraphbuild.c (record_eh_tables): Record reference to personality
15045 function.
15046
15047 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
15048
15049 PR debug/45454
15050 * sel-sched.c (moveup_expr): Don't let debug insns prevent
15051 non-debug insns from moving up.
15052
15053 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
15054
15055 PR target/40125
15056 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
15057 t-dlldir{,-x} fragment for build and add it to tmake_file.
15058 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
15059 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
15060 * config/i386/t-dlldir: New file.
15061 (SHLIB_DLLDIR): Define.
15062 * config/i386/t-dlldir-x: New file.
15063 (SHLIB_DLLDIR): Define.
15064 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
15065 (SHLIB_INSTALL): Use it.
15066
15067 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
15068
15069 PR target/47246
15070 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
15071 lower bound of the allowed Thumb-2 coprocessor load/store
15072 index range to -256. Add explaining comment.
15073
15074 2011-01-25 Ian Lance Taylor <iant@google.com>
15075
15076 * godump.c (go_define): Improve lexing of macro expansion to only
15077 accept expressions which match Go spec.
15078
15079 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
15080
15081 PR c++/43601
15082 * tree.c (handle_dll_attribute): Handle it.
15083 * doc/extend.texi (@item dllexport): Mention it.
15084 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
15085
15086 2011-01-25 Ian Lance Taylor <iant@google.com>
15087
15088 PR tree-optimization/26854
15089 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
15090 (decl_jump_unsafe): Move higher in file, with no other change.
15091 (bind): Set has_jump_unsafe_decl if appropriate.
15092 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
15093 (check_earlier_gotos): Likewise.
15094 (c_check_switch_jump_warnings): Likewise.
15095
15096 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
15097
15098 * doc/invoke.texi (Warning Options): Add missing hyphen.
15099 (-fprofile-dir): Minor grammatical fixes.
15100 (-fbranch-probabilities): Likewise.
15101
15102 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
15103
15104 PR debug/45136
15105 PR debug/45130
15106 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
15107 debug insns.
15108 (no_real_insns_p, schedule_block, set_priorities): Drop special
15109 treatment of boundary debug insns.
15110 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
15111 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
15112 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
15113 (BOUNDARY_DEBUG_INSN_P): Likewise.
15114 (SCHEDULE_DEBUG_INSN_P): Likewise.
15115 * sched-rgn.c (init_ready_list): Drop special treatment of
15116 boundary debug insns.
15117 * final.c (rest_of_clean-state): Clear notes' BB.
15118
15119 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15120
15121 * Makefile.in (LAMBDA_H): Removed.
15122 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
15123 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
15124 lambda-trans.o, and tree-loop-linear.o.
15125 (lto-symtab.o): Remove dependence on LAMBDA_H.
15126 (tree-loop-linear.o): Remove rule.
15127 (lambda-mat.o): Same.
15128 (lambda-trans.o): Same.
15129 (lambda-code.o): Same.
15130 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
15131 (tree-vect-slp.o): Same.
15132 * hwint.h (gcd): Moved here.
15133 (least_common_multiple): Same.
15134 * lambda-code.c: Removed.
15135 * lambda-mat.c: Removed.
15136 * lambda-trans.c: Removed.
15137 * lambda.h: Removed.
15138 * tree-loop-linear.c: Removed.
15139 * lto-symtab.c: Do not include lambda.h.
15140 * omega.c (gcd): Removed.
15141 * passes.c (init_optimization_passes): Remove pass_linear_transform.
15142 * tree-data-ref.c (print_lambda_vector): Moved here.
15143 (lambda_vector_copy): Same.
15144 (lambda_matrix_copy): Same.
15145 (lambda_matrix_id): Same.
15146 (lambda_vector_first_nz): Same.
15147 (lambda_matrix_row_add): Same.
15148 (lambda_matrix_row_exchange): Same.
15149 (lambda_vector_mult_const): Same.
15150 (lambda_vector_negate): Same.
15151 (lambda_matrix_row_negate): Same.
15152 (lambda_vector_equal): Same.
15153 (lambda_matrix_right_hermite): Same.
15154 * tree-data-ref.h: Do not include lambda.h.
15155 (lambda_vector): Moved here.
15156 (lambda_matrix): Same.
15157 (dependence_level): Same.
15158 (lambda_transform_legal_p): Removed declaration.
15159 (lambda_collect_parameters): Same.
15160 (lambda_compute_access_matrices): Same.
15161 (lambda_vector_gcd): Same.
15162 (lambda_vector_new): Same.
15163 (lambda_vector_clear): Same.
15164 (lambda_vector_lexico_pos): Same.
15165 (lambda_vector_zerop): Same.
15166 (lambda_matrix_new): Same.
15167 * tree-flow.h (least_common_multiple): Removed declaration.
15168 * tree-parloops.c (lambda_trans_matrix): Moved here.
15169 (LTM_MATRIX): Same.
15170 (LTM_ROWSIZE): Same.
15171 (LTM_COLSIZE): Same.
15172 (LTM_DENOMINATOR): Same.
15173 (lambda_trans_matrix_new): Same.
15174 (lambda_matrix_vector_mult): Same.
15175 (lambda_transform_legal_p): Same.
15176 * tree-pass.h (pass_linear_transform): Removed declaration.
15177 * tree-ssa-loop.c (tree_linear_transform): Removed.
15178 (gate_tree_linear_transform): Removed.
15179 (pass_linear_transform): Removed.
15180 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
15181 flag_loop_interchange.
15182
15183 2011-01-25 Jakub Jelinek <jakub@redhat.com>
15184
15185 PR tree-optimization/47265
15186 PR tree-optimization/47443
15187 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
15188 if name still has some uses.
15189
15190 2011-01-25 Martin Jambor <mjambor@suse.cz>
15191
15192 PR tree-optimization/47382
15193 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
15194 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
15195
15196 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
15197
15198 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
15199 sjlj_except_unwind_info.
15200
15201 2011-01-25 Richard Guenther <rguenther@suse.de>
15202
15203 PR tree-optimization/47426
15204 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
15205 visible functions results escape.
15206
15207 2011-01-25 Jakub Jelinek <jakub@redhat.com>
15208
15209 PR target/45701
15210 * config/arm/arm.c (any_sibcall_uses_r3): New function.
15211 (arm_get_frame_offsets): Use it.
15212
15213 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15214 Jakub Jelinek <jakub@redhat.com>
15215
15216 PR tree-optimization/47271
15217 * tree-if-conv.c (bb_postdominates_preds): New.
15218 (if_convertible_bb_p): Call bb_postdominates_preds.
15219 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
15220 (predicate_scalar_phi): Call bb_postdominates_preds.
15221
15222 2011-01-25 Nick Clifton <nickc@redhat.com>
15223
15224 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
15225 * config/rx/rx.c (rx_function_value): Likewise.
15226 (rx_promote_function_mode): Likewise.
15227 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
15228 in order to make it legitimate.
15229 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
15230 make sure that the first operand is the same as the result register.
15231 (addsi3_unspec): Delete.
15232 (subdi3): Do not accept immediate operands.
15233 (subdi3_internal): Likewise.
15234
15235 2011-01-25 Jeff Law <law@redhat.com>
15236
15237 PR rtl-optimization/37273
15238 * ira-costs.c (scan_one_insn): Detect constants living in memory and
15239 handle them like argument loads from stack slots. Do not double
15240 count memory for memory constants and argument loads from stack slots.
15241
15242 2011-01-25 Jakub Jelinek <jakub@redhat.com>
15243
15244 PR tree-optimization/47427
15245 PR tree-optimization/47428
15246 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
15247 coalesce if the new root var would be TREE_READONLY.
15248
15249 2011-01-25 Richard Guenther <rguenther@suse.de>
15250
15251 PR middle-end/47414
15252 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
15253 correct type for TBAA.
15254
15255 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15256
15257 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
15258 (close_phi_written_to_memory): Call for_each_index with
15259 dr_indices_valid_in_loop.
15260
15261 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15262
15263 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
15264 when it is initialized.
15265
15266 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15267
15268 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
15269 call to graphite_find_data_references_in_stmt.
15270 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
15271 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
15272 call to graphite_find_data_references_in_stmt.
15273 (analyze_drs_in_stmts): Same.
15274 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
15275 in which the scalar analysis of indices is performed.
15276 (create_data_ref): Same. Update call to dr_analyze_indices.
15277 (find_data_references_in_stmt): Update call to create_data_ref.
15278 (graphite_find_data_references_in_stmt): Same.
15279 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
15280 declaration.
15281 (create_data_ref): Same.
15282 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
15283 call to create_data_ref.
15284
15285 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15286
15287 * graphite-sese-to-poly.c (build_poly_scop): Move
15288 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
15289
15290 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15291
15292 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
15293 VAR_DECL, PARM_DECL, and RESULT_DECL.
15294
15295 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15296
15297 * graphite-dependences.c (reduction_dr_1): Allow several reductions
15298 in a reduction PBB.
15299 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
15300 that have already been marked as PBB_IS_REDUCTION.
15301
15302 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15303
15304 * graphite-scop-detection.c (same_close_phi_node): New.
15305 (remove_duplicate_close_phi): New.
15306 (make_close_phi_nodes_unique): New.
15307 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
15308
15309 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15310
15311 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
15312 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
15313 of both data references to be the same.
15314
15315 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15316
15317 * graphite-dependences.c (build_lexicographical_constraint): Remove
15318 the gdim parameter.
15319 (build_lexicographical_constraint): Adjust call to
15320 ppl_powerset_is_empty.
15321 (dependence_polyhedron): Same.
15322 (graphite_legal_transform_dr): Same.
15323 (graphite_carried_dependence_level_k): Same.
15324 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
15325 parameter.
15326 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
15327
15328 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15329
15330 * graphite-sese-to-poly.c
15331 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
15332 (close_phi_written_to_memory): New.
15333 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
15334 and unshare_expr.
15335
15336 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15337
15338 * doc/install.texi: Update the expected version number of PPL to 0.11.
15339 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
15340 #if PPL_VERSION_MINOR < 11.
15341
15342 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15343
15344 * graphite-dependences.c: Include graphite-cloog-util.h.
15345 (new_poly_ddr): Inlined into dependence_polyhedron.
15346 (free_poly_ddr): Moved close by new_poly_ddr.
15347 (dependence_polyhedron_1): Renamed dependence_polyhedron.
15348 Early return NULL when ppl_powerset_is_empty returns true.
15349 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
15350 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
15351 (graphite_legal_transform_dr): Call new_poly_ddr.
15352 (graphite_carried_dependence_level_k): Same.
15353 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
15354 (dot_transformed_deps_stmt_1): Removed.
15355 (dot_deps_stmt_1): Call dot_deps_stmt_2.
15356 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
15357 (dot_deps_1): Call dot_deps_2.
15358 * Makefile.in (graphite-dependences.o): Add missing dependence on
15359 graphite-cloog-util.h.
15360
15361 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15362
15363 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
15364 (build_lexicographical_constraint): Same.
15365 (dependence_polyhedron_1): Same.
15366 (graphite_legal_transform_dr): Same.
15367 (graphite_carried_dependence_level_k): Same.
15368 * graphite-ppl.c (ppl_powerset_is_empty): New.
15369 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
15370 * tree-data-ref.c (dump_data_reference): Print the basic block index.
15371
15372 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15373
15374 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
15375 the "a followed by b" relation and document it.
15376
15377 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15378
15379 * graphite-dependences.c (build_lexicographical_constraint): Stop the
15380 iteration when the bag of constraints is empty.
15381
15382 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15383
15384 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
15385
15386 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15387
15388 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
15389 nest and two loop depths as parameters.
15390 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
15391 lst_perfect_nestify.
15392
15393 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15394
15395 * graphite-dependences.c (print_pddr): Call
15396 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
15397
15398 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15399
15400 * graphite-ppl.c (debug_gmp_value): New.
15401 * graphite-ppl.h (debug_gmp_value): Declared.
15402
15403 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
15404
15405 * doc/install.texi: Document availability of cloog-0.16.
15406
15407 2011-01-25 Vladimir Kargov <kargov@gmail.com>
15408
15409 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
15410 invalid postdominance info.
15411
15412 2011-01-24 Jan Hubicka <jh@suse.cz>
15413
15414 PR c/21659
15415 * doc/extend.texi (weak pragma): Drop claim that it must
15416 appear before definition.
15417 * varasm.c (merge_weak, declare_weak): Only sanity check
15418 that DECL is not output at a time it is declared weak.
15419
15420 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
15421
15422 * machmode.def: Fixed comments.
15423
15424 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
15425
15426 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
15427
15428 2011-01-24 Paul Koning <ni1d@arrl.net>
15429
15430 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
15431 WORDS_BIG_ENDIAN.
15432
15433 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
15434
15435 PR target/46519
15436 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
15437 (block_info): Add scanned and prev.
15438 (move_or_delete_vzeroupper_2): Return if the basic block
15439 has been scanned and the upper 128bit state is unchanged
15440 from the last scan.
15441 (move_or_delete_vzeroupper_1): Return true if the exit
15442 state is changed.
15443 (move_or_delete_vzeroupper): Visit basic blocks using the
15444 work-list based algorithm based on vt_find_locations in
15445 var-tracking.c.
15446
15447 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
15448
15449 2011-01-24 Nick Clifton <nickc@redhat.com>
15450
15451 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
15452 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
15453 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
15454 then define __v850e1__.
15455 * doc/invoke.texi: Document -mv850es.
15456
15457 2011-01-24 Richard Henderson <rth@redhat.com>
15458
15459 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
15460 compound unordered comparisons.
15461 * config/rx/rx.c (rx_split_fp_compare): Remove.
15462 * config/rx/rx-protos.h: Update.
15463 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
15464 (cbranchsf4): Don't call rx_split_fp_compare.
15465 (*cbranchsf4): Use rx_split_cbranch.
15466 (*cmpsf): Don't accept "i" constraint.
15467 (*conditional_branch): Only valid after reload.
15468 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
15469
15470 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
15471
15472 PR target/47385
15473 * config/rs6000/altivec.md (vector constant splitters): Add
15474 support for creating vector single precision constants if -mvsx is
15475 used and we would create the constant using Altivec primitives.
15476
15477 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
15478 Richard Sandiford <rdsandiford@googlemail.com>
15479
15480 PR rtl-optimization/47166
15481 * reload1.c (emit_reload_insns): Disable the spill_reg_store
15482 mechanism for PRE_MODIFY and POST_MODIFY.
15483 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
15484 reloadreg.
15485
15486 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
15487
15488 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
15489
15490 2011-01-22 Jan Hubicka <jh@suse.cz>
15491
15492 PR lto/47333
15493 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
15494
15495 2011-01-22 Jan Hubicka <jh@suse.cz>
15496
15497 PR tree-optimization/43884
15498 PR lto/44334
15499 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
15500 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
15501
15502 2011-01-22 Anatoly Sokolov <aesok@post.ru>
15503
15504 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15505 * config/s390/s390.c (s390_register_move_cost,
15506 s390_memory_move_cost): New.
15507 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
15508
15509 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15510
15511 PR middle-end/47401
15512 * except.c (sjlj_assign_call_site_values): Move setting the
15513 crtl->uses_eh_lsda flag to ...
15514 (sjlj_mark_call_sites): ... here.
15515 (sjlj_emit_function_enter): Support NULL dispatch label.
15516 (sjlj_build_landing_pads): In a function with no landing pads
15517 that still has must-not-throw regions, generate code to register
15518 a personality function with empty LSDA.
15519
15520 2011-01-21 Richard Henderson <rth@redhat.com>
15521
15522 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
15523
15524 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
15525
15526 * compare-elim.c: New file.
15527 * Makefile.in (OBJS-common): Add it.
15528 (compare-elim.o): New.
15529 * common.opt (fcompare-elim): New.
15530 * opts.c (default_options_table): Add OPT_fcompare_elim.
15531 * tree-pass.h (pass_compare_elim_after_reload): New.
15532 * passes.c (init_optimization_passes): Add it.
15533 * recog.h: Protect against re-inclusion.
15534 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
15535 * doc/invoke.texi (-fcompare-elim): Document it.
15536 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
15537 * doc/tm.texi: Rebuild.
15538
15539 2011-01-22 Nick Clifton <nickc@redhat.com>
15540
15541 * config/rx/rx.md (cstoresf4): Pass comparison operator to
15542 rx_split_fp_compare.
15543
15544 2011-01-22 Nick Clifton <nickc@redhat.com>
15545
15546 * config/rx/rx.md (UNSPEC_CONST): New.
15547 (deallocate_and_return): Wrap the amount popped off the stack in
15548 an UNSPEC_CONST in order to stop it being rejected by
15549 -mmax-constant-size.
15550 (pop_and_return): Add a "(return)" rtx.
15551 (call): Drop the immediate operand.
15552 (call_internal): Likewise.
15553 (call_value): Likewise.
15554 (call_value_internal): Likewise.
15555 (sibcall_internal): Likewise.
15556 (sibcall_value_internal): Likewise.
15557 (sibcall): Likewise. Generate an explicit call using
15558 sibcall_internal.
15559 (sibcall_value): Likewise.
15560 (mov<>): FAIL if a constant operand is not legitimate.
15561 (addsi3_unpsec): New pattern.
15562
15563 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
15564 (ok_for_max_constant): New function.
15565 (gen_safe_add): New function.
15566 (rx_expand_prologue): Use gen_safe_add.
15567 (rx_expand_epilogue): Likewise.
15568 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
15569 UNSPEC CONSTs.
15570
15571 2011-01-21 Jeff Law <law@redhat.com>
15572
15573 PR tree-optimization/47053
15574 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
15575 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
15576 statements are deleted.
15577 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
15578 is nonempty, then purge dead edges and cleanup the CFG.
15579
15580 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15581
15582 PR debug/47402
15583 Temporarily revert:
15584 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15585 PR debug/47106
15586 * tree-dfa.c (create_var_ann): Mark variable as used.
15587
15588 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15589
15590 PR middle-end/45566
15591 * except.c (convert_to_eh_region_ranges): Emit queued no-region
15592 notes from other section in hot/cold partitioning even if
15593 last_action is -3. Increment call_site_base.
15594
15595 PR rtl-optimization/47366
15596 * fwprop.c (forward_propagate_into): Return bool. If
15597 any changes are made, -fnon-call-exceptions is used and
15598 REG_EH_REGION note is present, call purge_dead_edges
15599 and return true if it purged anything.
15600 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
15601 any EH edges were purged.
15602
15603 2011-01-21 Jeff Law <law@redhat.com>
15604
15605 PR rtl-optimization/41619
15606 * caller-save.c (setup_save_areas): Break out code to determine
15607 which hard regs are live across calls by examining the reload chains
15608 so that it is always used.
15609 Eliminate code which checked REG_N_CALLS_CROSSED.
15610
15611 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15612
15613 PR tree-optimization/47355
15614 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
15615 NOP has non-debug uses beyond PHIs in new_bb.
15616
15617 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15618
15619 PR debug/47106
15620 * cfgexpand.c (account_used_vars_for_block): Only account vars
15621 that are annotated as used.
15622 (estimated_stack_frame_size): Don't set TREE_USED.
15623 * tree-dfa.c (create_var_ann): Mark variable as used.
15624
15625 2011-01-21 Richard Guenther <rguenther@suse.de>
15626
15627 PR middle-end/47395
15628 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
15629
15630 2011-01-21 Richard Guenther <rguenther@suse.de>
15631
15632 PR tree-optimization/47365
15633 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
15634 (vn_reference_lookup_pieces): Adjust.
15635 (vn_reference_lookup): Likewise.
15636 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
15637 (vn_reference_lookup_3): Only look through kills if in
15638 VN_WALKREWRITE mode.
15639 (vn_reference_lookup_pieces): Adjust.
15640 (vn_reference_lookup): Likewise.
15641 (visit_reference_op_load): Likewise.
15642 (visit_reference_op_store): Likewise.
15643 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
15644 (compute_avail): Likewise.
15645 (eliminate): Likewise.
15646
15647 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15648
15649 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
15650 DECL_IGNORED_P non-reg vars if they are used.
15651
15652 PR tree-optimization/47391
15653 * varpool.c (const_value_known_p): Return false if
15654 decl is volatile.
15655
15656 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
15657
15658 PR bootstrap/47215
15659 * config/i386/i386.c (ix86_local_alignment): Handle
15660 case for va_list_type_node is nil.
15661 (ix86_canonical_va_list_type): Likewise.
15662
15663 2011-01-21 Alan Modra <amodra@gmail.com>
15664
15665 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
15666 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
15667
15668 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15669
15670 * config/arm/arm.md (define_attr type): Rename f_load
15671 and f_store to f_fpa_load and f_fpa_store. Update.
15672 (write_conflict): Deal with rename fallout.
15673 (*push_fp_multi): Likewise.
15674 * config/arm/fpa.md (f_load): Use f_fpa_load.
15675 (f_store): Use f_fpa_store.
15676 (*movsf_fpa): Likewise.
15677 (*movdf_fpa): Likewise.
15678 (*movxf_fpa): Likewise.
15679 (*thumb2_movsf_fpa): Likewise.
15680 (*thumb2_movdf_fpa): Likewise.
15681 (*thumb2_movxf_fpa): Likewise.
15682 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
15683 f_loadd and f_stored.
15684 (*thumb2_movdi_vfp): Likewise.
15685 (*thumb2_movsf_vfp): Fix attribute to f_loads.
15686 (*thumb2_movsi_vfp): Likewise.
15687 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
15688 Use f_loads instead of f_load.
15689 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
15690
15691 2011-01-20 Anatoly Sokolov <aesok@post.ru>
15692
15693 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15694 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
15695 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15696 (xtensa_mode_dependent_address_p): New function.
15697 (constantpool_address_p): Make static. Change return type to bool.
15698 Change argument type to const_rtx. Use CONST_INT_P predicate.
15699
15700 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
15701
15702 PR debug/46583
15703 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
15704
15705 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15706
15707 PR debug/47283
15708 * cfgexpand.c (expand_debug_expr): Instead of generating
15709 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
15710 etc. handling.
15711
15712 2011-01-20 Richard Guenther <rguenther@suse.de>
15713
15714 PR middle-end/47370
15715 * tree-inline.c (remap_gimple_op_r): Recurse manually for
15716 the pointer operand of MEM_REFs.
15717
15718 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15719
15720 PR tree-optimization/46130
15721 * ipa-split.c (consider_split): If return_bb contains non-virtual
15722 PHIs other than for retval or if split_function would not adjust it,
15723 refuse to split.
15724
15725 2011-01-20 Richard Guenther <rguenther@suse.de>
15726
15727 PR tree-optimization/47167
15728 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
15729 Revert previous change, only avoid enumeral type changes.
15730
15731 2011-01-19 Mike Stump <mikestump@comcast.net>
15732
15733 * doc/tm.texi.in (BRANCH_COST): Englishify.
15734 * doc/tm.texi (BRANCH_COST): Likewise.
15735
15736 2011-01-19 Dodji Seketeli <dodji@redhat.com>
15737
15738 PR c++/47291
15739 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
15740 (gen_scheduled_generic_parms_dies): New functions.
15741 (gen_struct_or_union_type_die): Schedule template parameters DIEs
15742 generation for the end of CU compilation.
15743 (dwarf2out_finish): Generate template parameters DIEs here.
15744
15745 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15746
15747 PR debug/46240
15748 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
15749 debug bind stmt on merge edges.
15750
15751 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15752
15753 PR debug/47079
15754 PR debug/46724
15755 * function.c (instantiate_expr): Instantiate incoming rtl of
15756 implicit arguments, and recurse on VALUE_EXPRs.
15757 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
15758 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
15759
15760 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15761
15762 * c-parser.c (c_parser_for_statement): Initialize
15763 collection_expression.
15764
15765 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15766
15767 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
15768
15769 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15770
15771 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
15772 (LINK_SHLIB_SPEC): Don't use %(link_path).
15773 (SUBTARGET_EXTRA_SPECS): Remove link_path.
15774
15775 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15776
15777 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
15778 (NO_SHARED_LIB_SUPPORT): Remove.
15779 (LINK_SHLIB_SPEC): Remove one conditional definition.
15780
15781 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15782
15783 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
15784 %{call_shared}.
15785 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
15786 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
15787 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
15788 %{call_shared} and conditionals on these options not being passed.
15789 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
15790 %{call_shared}.
15791
15792 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15793
15794 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
15795 simplify.
15796
15797 * ipa-split.c: Spelling fixes.
15798
15799 2011-01-19 Richard Henderson <rth@redhat.com>
15800
15801 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
15802 (*mulsi3): Likewise.
15803
15804 * longlong.h [__mn10300__] (count_leading_zeros): New.
15805 [__mn10300__] (umul_ppmm, smul_ppmm): New.
15806 [__mn10300__] (add_ssaaaa, subddmmss): New.
15807 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
15808 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
15809
15810 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15811
15812 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
15813
15814 2011-01-19 Richard Henderson <rth@redhat.com>
15815
15816 * config/mn10300/mn10300.md (addsi3_flags): New.
15817 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
15818 (subsi3_flags, subc_internal, subdi3): New.
15819 (subdi3_internal, *subdi3_degenerate): New.
15820 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
15821
15822 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
15823 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
15824 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
15825 * config/mn10300/mn10300-protos.h: Update.
15826 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
15827 (return_ret): Likewise. Rename from return_internal_regs.
15828 (return_internal): Remove.
15829
15830 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
15831 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
15832 (mn10300_legitimate_constant_p): Likewise.
15833 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
15834 (mn10300_frame_size): New.
15835 (mn10300_expand_prologue): Use it.
15836 (mn10300_expand_epilogue): Likewise.
15837 (mn10300_initial_offset): Likewise.
15838 * config/mn10300/mn10300-protos.h: Update.
15839 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
15840 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
15841 (prologue, epilogue, return_internal): Tidy output code.
15842 (mn10300_store_multiple_operation, return): Likewise.
15843 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
15844 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
15845 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
15846 (load_pic, am33_load_pic): New.
15847 (mn10300_load_pic0, mn10300_load_pic1): New.
15848
15849 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
15850 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
15851 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
15852 (cc_flags_for_mode, cc_flags_for_code): New.
15853 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
15854 overflow flag is not valid. Validate that the flags we need
15855 for the comparison are valid.
15856 (mn10300_output_cmp): Remove.
15857 (mn10300_output_add): New.
15858 (mn10300_select_cc_mode): Use cc_flags_for_code.
15859 (mn10300_split_cbranch): New.
15860 (mn10300_match_ccmode): New.
15861 (mn10300_split_and_operand_count): New.
15862 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
15863 to the function.
15864 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
15865 (addsi3): ... here. Use mn10300_output_add.
15866 (*addsi3_flags): New.
15867 (*am33_subsi3, *mn10300_subsi3): Merge...
15868 (subsi3): ... here. Use attribute isa.
15869 (*subsi3_flags): New.
15870 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
15871 when possible.
15872 (*am33_andsi3, *mn10300_andsi3): Merge...
15873 (andsi3): ... here.
15874 (*andsi3_flags): New.
15875 (andsi3 splitters): New.
15876 (*am33_iorsi3, *mn10300_iorsi3): Merge...
15877 (iorsi3): ... here.
15878 (*iorsi3_flags): New.
15879 (*am33_xorsi3, *mn10300_xorsi3): Merge...
15880 (xorsi3): ... here.
15881 (*xorsi3_flags): New.
15882 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
15883 (one_cmplsi2): ... here.
15884 (*one_cmplsi2_flags): New.
15885 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
15886 instead of "dax" in constraints. Use mn10300_split_cbranch.
15887 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
15888 use matching constraints to eliminate a self-comparison.
15889 (*integer_conditional_branch): Rename from integer_conditional_branch.
15890 Use int_mode_flags to match CC_REG.
15891 (*cbranchsi4_btst, *btstsi): New.
15892 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
15893 mn10300_split_cbranch.
15894 (*am33_cmpsf): Rename from am33_cmpsf.
15895 (*float_conditional_branch): Rename from float_conditional_branch.
15896 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
15897 (zero_extendqisi2): ... here.
15898 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
15899 (zero_extendhisi2): ... here.
15900 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
15901 (extendqisi2): ... here.
15902 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
15903 (extendhisi2): ... here.
15904 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
15905 (ashlsi3): ... here.
15906 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
15907 (lshrsi3): ... here.
15908 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
15909 (ashrsi3): ... here.
15910 (consecutive add peephole): Remove.
15911 * config/mn10300/predicates.md (label_ref_operand): New.
15912 (int_mode_flags): New.
15913 (CCZN_comparison_operator): New.
15914
15915 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
15916 (throughput_42_latency_43): New reservation.
15917 (mulsidi3, umulsidi3): New expanders.
15918 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
15919 the MDR register to allocation; separately allocate the low and
15920 high parts of the DImode result.
15921 (umulsidi3_internal): Similarly.
15922 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
15923 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
15924 (udivsi3, umodsi3): Remove.
15925 (udivmodsi4, divmodsi4): New expanders.
15926 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
15927 (*divmodsi4): Simiarly.
15928 (ext_internal): New.
15929
15930 * config/mn10300/constraints.md ("z"): New constraint.
15931 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
15932 (FIXED_REGISTERS): Don't fix MDR.
15933 (CALL_USED_REGSITERS): Reformat nicely.
15934 (REG_ALLOC_ORDER): Add MDR.
15935 (enum regclass): Add MDR_REGS.
15936 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
15937 (IRA_COVER_CLASSES): Add MDR_REGS.
15938 (REGNO_REG_CLASS): Handle MDR_REG.
15939 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
15940 (mn10300_register_move_cost): Likewise.
15941 * config/mn10300/mn10300.md (MDR_REG): New.
15942 (*movsi_internal): Handle moves to/from MDR_REGS.
15943
15944 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
15945 POST_MODIFY.
15946 (mn10300_secondary_reload): Tidy combination reload classes.
15947 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
15948 addresses for AM33. Allow symbolic offsets for reg+imm.
15949 (mn10300_regno_in_class_p): New.
15950 (mn10300_legitimize_reload_address): New.
15951 * config/mn10300/mn10300.h (enum reg_class): Remove
15952 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
15953 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
15954 SP_OR_GENERAL_REGS.
15955 (REG_CLASS_NAMES): Update to match.
15956 (REG_CLASS_CONTENTS): Likewise.
15957 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
15958 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
15959 (REGNO_IN_RANGE_P): Remove.
15960 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
15961 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
15962 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
15963 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
15964 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
15965 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
15966 (REGNO_GENERAL_P): New.
15967 (HAVE_POST_MODIFY_DISP): New.
15968 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
15969 (LEGITIMIZE_RELOAD_ADDRESS): New.
15970 * config/mn10300/mn10300-protos.h: Update.
15971
15972 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
15973 DATA_REGS for AM33 stack-pointer destination.
15974 (mn10300_preferred_output_reload_class): Likewise.
15975 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
15976 into a form appropriate for ...
15977 (TARGET_SECONDARY_RELOAD): New.
15978 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
15979 * config/mn10300/mn10300-protos.h: Update.
15980 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
15981 reload_insi; use the "A" constraint for the scratch; handle AM33
15982 moves of sp to non-address registers.
15983
15984 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
15985 (*movqi_internal): ... here.
15986 (*am33_movhi, *mn10300_movhi): Merge into...
15987 (*movhi_internal): ... here.
15988 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
15989 as the source/destination of moves from/to SP.
15990 (movsf): Only allow for AM33-2.
15991 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
15992 any integer constant constraint. Only allow for AM33-2. Tidy
15993 all of the alternative outputs.
15994 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
15995 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
15996 for MN103.
15997 (udivsi3, umodsi3): New patterns for MN103 only.
15998
15999 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
16000
16001 * doc/tm.texi.in: Spell out that a lack of register class unions
16002 can lead to ICEs.
16003 * doc/tm.texi: Regenerate.
16004
16005 2011-01-19 Jakub Jelinek <jakub@redhat.com>
16006
16007 PR rtl-optimization/47337
16008 * dce.c (check_argument_store): New function.
16009 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
16010
16011 PR tree-optimization/47290
16012 * tree-eh.c (infinite_empty_loop_p): New function.
16013 (cleanup_empty_eh): Use it.
16014
16015 2011-01-18 Steve Ellcey <sje@cup.hp.com>
16016
16017 PR target/46997
16018 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
16019 (a64_expand_widen_sum): Ditto.
16020 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
16021 (vec_extract_evenodd_help): Ditto.
16022 (vec_extract_evenv4hi): Ditto.
16023 (vec_extract_oddv4hi): Ditto.
16024 (vec_extract_evenv2si): Ditto.
16025 (vec_extract_oddv2si): Ditto.
16026 (vec_extract_evenv2sf): Ditto.
16027 (vec_extract_oddv2sf): Ditto.
16028 (vec_pack_trunc_v4hi: Ditto.
16029 (vec_pack_trunc_v2si): Ditto.
16030 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
16031 (vec_interleave_highv8qi): Ditto.
16032 (mix1_r): Ditto.
16033 (vec_extract_oddv8qi): Ditto.
16034 (vec_interleave_lowv4hi): Ditto.
16035 (vec_interleave_highv4hi): Ditto.
16036 (vec_interleave_lowv2si): Ditto.
16037 (vec_interleave_highv2si): Ditto.
16038
16039 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16040
16041 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
16042 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
16043 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
16044 (pa_c_mode_for_suffix): New.
16045 (TARGET_EXPAND_BUILTIN): Define.
16046 (TARGET_C_MODE_FOR_SUFFIX): Define.
16047 (pa_builtins): Define.
16048 (pa_init_builtins): Register __float128 type and init new support
16049 builtins.
16050 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
16051 * config/pa/quadlib.c (_U_Qfcopysign): New.
16052
16053 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
16054
16055 PR middle-end/46894
16056 * explow.c (allocate_dynamic_stack_space): Do not assume more than
16057 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
16058 are defined.
16059
16060 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16061
16062 PR tree-optimization/47179
16063 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
16064 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
16065
16066 2011-01-18 Richard Guenther <rguenther@suse.de>
16067
16068 PR rtl-optimization/47216
16069 * emit-rtl.c: Include tree-flow.h.
16070 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
16071 of replicating it with different semantics.
16072 * Makefile.in (emit-rtl.o): Adjust.
16073
16074 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16075
16076 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
16077 (cortex_a9_dp): Handle neon types correctly.
16078
16079 2011-01-18 Jakub Jelinek <jakub@redhat.com>
16080
16081 PR rtl-optimization/47299
16082 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
16083 subtarget. Use normal multiplication if both operands are constants.
16084 * expmed.c (expand_widening_mult): Don't try to optimize constant
16085 multiplication if op0 has VOIDmode. Convert op1 constant to mode
16086 before using it.
16087
16088 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16089
16090 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
16091 spacing after 'e.g.', typos, comma, hyphenation.
16092
16093 2011-01-17 Richard Henderson <rth@redhat.com>
16094
16095 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
16096 (rx_restricted_mem_operand): New.
16097 (rx_shift_operand): Use register_operand.
16098 (rx_source_operand, rx_compare_operand): Likewise.
16099 * config/rx/rx.md (addsi3_flags): New expander.
16100 (adddi3): Rewrite as expander.
16101 (adc_internal, *adc_flags, adddi3_internal): New patterns.
16102 (subsi3_flags): New expander.
16103 (subdi3): Rewrite as expander.
16104 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
16105
16106 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
16107 (rx_init_builtins): Remove sat builtin.
16108 (rx_expand_builtin): Likewise.
16109 * config/rx/rx.md (ssaddsi3): New.
16110 (*sat): Rename from sat. Represent the CC_REG input.
16111
16112 * config/rx/predicates.md (rshift_operator): New.
16113 * config/rx/rx.c (rx_expand_insv): Remove.
16114 * config/rx/rx-protos.h: Update.
16115 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
16116 operand to the canonical position.
16117 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
16118 (*bitclr, *bitclr_in_memory): Similarly.
16119 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
16120 (insv): Retain the zero_extract in the expansion.
16121
16122 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
16123 (bswaphi2, bitinvert, revw): Likewise.
16124
16125 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
16126 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
16127 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
16128 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
16129 (bitset, bitset_in_memory): Likewise.
16130 (bitinvert, bitinvert_in_memory): Likewise.
16131 (bitclr, bitclr_in_memory): Likewise.
16132 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
16133 (rx_strend, rx_cmpstrn): Likewise.
16134 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
16135 (bitop peep2 patterns): Remove.
16136
16137 * config/rx/rx.c (rx_match_ccmode): New.
16138 * config/rx/rx-protos.h: Update.
16139 * config/rx/rx.md (abssi2): Clobber, don't set flags.
16140 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
16141 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
16142 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
16143 (fix_truncsfsi2, floatsisf2): Likewise.
16144 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
16145 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
16146 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
16147 (*subsi3_flags, *xorsi3_flags): New.
16148
16149 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
16150
16151 * config/rx/rx.c (rx_print_operand): Remove workaround for
16152 unsplit comparison operations.
16153
16154 * config/rx/rx.md (movsicc): Split after reload.
16155 (*movsicc): Merge *movsieq and *movsine via match_operator.
16156 (*stcc): New pattern.
16157
16158 * config/rx/rx.c (rx_float_compare_mode): Remove.
16159 * config/rx/rx.h (rx_float_compare_mode): Remove.
16160 * config/rx/rx.md (cstoresi4): Split after reload.
16161 (*sccc): New pattern.
16162
16163 * config/rx/predicates.md (label_ref_operand): New.
16164 (rx_z_comparison_operator): New.
16165 (rx_zs_comparison_operator): New.
16166 (rx_fp_comparison_operator): New.
16167 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
16168 Validate that the flags are set properly for the comparison.
16169 (rx_gen_cond_branch_template): Remove.
16170 (rx_cc_modes_compatible): Remove.
16171 (mode_from_flags): New.
16172 (flags_from_code): Rename from flags_needed_for_conditional.
16173 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
16174 (rx_select_cc_mode): Likewise.
16175 (rx_split_fp_compare): New.
16176 (rx_split_cbranch): New.
16177 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
16178 (*cbranchsi4): Use match_operator and rx_split_cbranch.
16179 (*cbranchsf4): Similarly.
16180 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
16181 match_operator and rx_split_cbranch.
16182 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
16183 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
16184 (*cmpsi): Rename from cmpsi.
16185 (*tstsi): Rename from tstsi.
16186 (*cmpsf): Rename from cmpsf; use CC_Fmode.
16187 (*conditional_branch): Rename from conditional_branch.
16188 (*reveresed_conditional_branch): Remove.
16189 (b<code>): Remove expander.
16190 * config/rx/rx-protos.h: Update.
16191
16192 * config/rx/rx.c (rx_compare_redundant): Remove.
16193 * config/rx/rx.md (cmpsi): Don't use it.
16194 * config/rx/rx-protos.h: Update.
16195
16196 * config/rx/rx-modes.def (CC_F): New mode.
16197 * config/rx/rx.c (rx_select_cc_mode): New.
16198 * config/rx/rx.h (SELECT_CC_MODE): Use it.
16199 * config/rx/rx-protos.h: Update.
16200
16201 2011-01-17 Richard Henderson <rth@redhat.com>
16202
16203 * except.c (dump_eh_tree): Fix stray ; after for statement.
16204
16205 2011-01-17 Richard Guenther <rguenther@suse.de>
16206
16207 PR tree-optimization/47313
16208 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
16209 handling before copying the body. Properly deal with
16210 by-reference result in SSA form.
16211
16212 2011-01-17 Ian Lance Taylor <iant@google.com>
16213
16214 PR target/47219
16215 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
16216 (struct_value_alias_set): Don't define.
16217 (sparc_option_override): Don't set sparc_sr_alias_set and
16218 struct_value_alias_set.
16219 (save_or_restore_regs): Use gen_frame_mem rather than calling
16220 set_mem_alias_set.
16221 (sparc_struct_value_rtx): Likewise.
16222
16223 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
16224
16225 PR target/47318
16226 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
16227 (_mm_maskstore_pd): Likewise.
16228 (_mm_maskload_ps): Likewise.
16229 (_mm_maskstore_ps): Likewise.
16230 (_mm256_maskload_pd): Change mask to __m256i.
16231 (_mm256_maskstore_pd): Likewise.
16232 (_mm256_maskload_ps): Likewise.
16233 (_mm256_maskstore_ps): Likewise.
16234
16235 * config/i386/i386-builtin-types.def: Updated.
16236 (ix86_expand_special_args_builtin): Likewise.
16237
16238 * config/i386/i386.c (bdesc_special_args): Update
16239 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
16240 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
16241 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
16242 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
16243
16244 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
16245 Use <avxpermvecmode> on mask register.
16246 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
16247
16248 2011-01-17 Olivier Hainque <hainque@adacore.com>
16249 Michael Haubenwallner <michael.haubenwallner@salomon.at>
16250 Eric Botcazou <ebotcazou@adacore.com>
16251
16252 PR target/46655
16253 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
16254 if <= USHRT_MAX in 32-bit mode.
16255
16256 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16257
16258 * doc/install.texi (Configuration, Specific): Wrap long
16259 lines in examples. Allow line wrapping in long options
16260 and URLs where beneficial for PDF output.
16261
16262 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
16263
16264 * config/mips/mips.c (mips_classify_symbol): Don't return
16265 SYMBOL_PC_RELATIVE for nonlocal labels.
16266
16267 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
16268
16269 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
16270
16271 2011-01-15 Jan Hubicka <jh@suse.cz>
16272
16273 PR tree-optimization/47276
16274 * ipa.c (function_and_variable_visibility): Do not try to mark alias
16275 declarations as needed.
16276
16277 2011-01-15 Martin Jambor <mjambor@suse.cz>
16278
16279 * common.opt (fdevirtualize): New flag.
16280 * doc/invoke.texi (Option Summary): Document it.
16281 * opts.c (default_options_table): Add devirtualize flag.
16282 * ipa-prop.c (detect_type_change): Return immediately if
16283 devirtualize flag is not set.
16284 (detect_type_change_ssa): Likewise.
16285 (compute_known_type_jump_func): Likewise.
16286 (ipa_analyze_virtual_call_uses): Likewise.
16287
16288 2011-01-14 Martin Jambor <mjambor@suse.cz>
16289
16290 PR tree-optimization/45934
16291 PR tree-optimization/46302
16292 * ipa-prop.c (type_change_info): New type.
16293 (stmt_may_be_vtbl_ptr_store): New function.
16294 (check_stmt_for_type_change): Likewise.
16295 (detect_type_change): Likewise.
16296 (detect_type_change_ssa): Likewise.
16297 (compute_complex_assign_jump_func): Check for dynamic type change.
16298 (compute_complex_ancestor_jump_func): Likewise.
16299 (compute_known_type_jump_func): Likewise.
16300 (compute_scalar_jump_functions): Likewise.
16301 (ipa_analyze_virtual_call_uses): Likewise.
16302 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
16303
16304 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16305
16306 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
16307 * config/i386/i386.opt (msse5): New Alias.
16308
16309 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16310
16311 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
16312 * config/sparc/linux64.h (CC1_SPEC): Likewise.
16313 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
16314 * config/sparc/sparc.h (CC1_SPEC): Likewise.
16315
16316 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16317
16318 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
16319 -mcpu options.
16320 * config/sparc/linux64.h (CC1_SPEC): Likewise.
16321 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
16322 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
16323 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
16324 Likewise.
16325 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
16326
16327 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16328
16329 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
16330
16331 2011-01-14 Mike Stump <mikestump@comcast.net>
16332
16333 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
16334 * config/fr30/fr30.md: Likweise
16335 (movsi_push): Likewise.
16336 (movsi_pop): Likewise.
16337 (enter_func): Likewise.
16338 * config/moxie/moxie.md (movsi_push): Likewise.
16339 (movsi_pop): Likewise.
16340
16341 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16342
16343 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
16344 %{no_archive} %{exact_version}.
16345 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
16346 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
16347 %{no_archive} %{exact_version}.
16348 * config/mips/openbsd.h (LINK_SPEC): Likewise.
16349 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
16350 * config/mips/vxworks.h: Likewise.
16351
16352 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16353
16354 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
16355
16356 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16357
16358 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
16359 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
16360
16361 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16362
16363 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
16364 -nodefaultlib.
16365
16366 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16367
16368 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
16369 for mcpu not cpu.
16370 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
16371 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
16372 not cpu.
16373 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
16374 Don't handle -shlib.
16375
16376 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16377
16378 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
16379 (CC1_SPEC): Don't handle -profile.
16380
16381 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16382
16383 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
16384 * config/mips/mips.h (CC1_SPEC): Likewise.
16385
16386 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16387
16388 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
16389 * config/mips/mips.h (CC1_SPEC): Likewise.
16390
16391 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16392
16393 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
16394 * config/m32r/linux.h (LINK_SPEC): Likewise.
16395 * config/mips/linux.h (LINK_SPEC): Likewise.
16396 * config/mips/linux64.h (LINK_SPEC): Likewise.
16397 * config/sparc/linux.h (LINK_SPEC): Likewise.
16398 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
16399 LINK_SPEC): Likewise.
16400 * config/xtensa/linux.h (LINK_SPEC): Likewise.
16401
16402 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16403
16404 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
16405 %{version:-v}.
16406 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
16407
16408 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16409
16410 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
16411 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
16412
16413 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16414
16415 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
16416
16417 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16418
16419 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
16420 supports -Bstatic/-Bdynamic.
16421 * configure: Regenerate.
16422
16423 2011-01-14 Jan Hubicka <jh@suse.cz>
16424 Jack Howarth <howarth@bromo.med.uc.edu>
16425
16426 PR target/46037
16427 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
16428 when checking debug_info_level. Test write_symbols instead of
16429 debug_hooks->var_location when setting flag_var_tracking_uninit.
16430
16431 2011-01-14 Richard Guenther <rguenther@suse.de>
16432
16433 PR tree-optimization/47179
16434 * target.def (ref_may_alias_errno): New target hook.
16435 * targhooks.h (default_ref_may_alias_errno): Declare.
16436 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
16437 (default_ref_may_alias_errno): New function.
16438 * target.h (struct ao_ref_s): Declare.
16439 * tree-ssa-alias.c: Include target.h.
16440 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
16441 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
16442 (targhooks.o): Likewise.
16443 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
16444 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
16445
16446 2011-01-14 Richard Guenther <rguenther@suse.de>
16447
16448 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
16449
16450 2011-01-14 Richard Guenther <rguenther@suse.de>
16451
16452 PR tree-optimization/47280
16453 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
16454 return CFG changes.
16455 (tree_ssa_forward_propagate_single_use_vars): Deal with
16456 CFG changes from associate_plusminus.
16457
16458 2011-01-14 Richard Guenther <rguenther@suse.de>
16459
16460 PR middle-end/47281
16461 Revert
16462 2011-01-11 Richard Guenther <rguenther@suse.de>
16463
16464 PR tree-optimization/46076
16465 * tree-ssa.c (useless_type_conversion_p): Conversions from
16466 unprototyped to empty argument list function types are useless.
16467
16468 2011-01-14 Richard Guenther <rguenther@suse.de>
16469
16470 PR tree-optimization/47286
16471 * tree-ssa-structalias.c (new_var_info): Register variables are global.
16472
16473 2011-01-14 Martin Jambor <mjambor@suse.cz>
16474
16475 PR middle-end/46823
16476 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
16477
16478 2011-01-13 Anatoly Sokolov <aesok@post.ru>
16479
16480 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
16481 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
16482 * config/xtensa/xtensa.c (xtensa_libcall_value,
16483 xtensa_function_value_regno_p): New functions.
16484 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
16485
16486 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
16487
16488 PR c++/47213
16489 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
16490 PE specific hook.
16491 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
16492 New function prototype.
16493 * config/i386/winnt.c (i386_pe_assemble_visibility):
16494 Warn only if attribute was specified by user.
16495
16496 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
16497
16498 PR target/47251
16499 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
16500 floating point.
16501 (floatunsdidf2_fcfidu): Ditto.
16502
16503 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16504
16505 * config/s390/s390.c (print_operand_address): Replace 'error' with
16506 'output_operand_lossage'.
16507 (print_operand): Likewise.
16508
16509 2011-01-13 Jeff Law <law@redhat.com>
16510
16511 PR rtl-optimization/39077
16512 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
16513 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
16514 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
16515 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
16516 * gcse.c (prune_insertions_deletions): New function.
16517 (compute_pre_data): Use it.
16518
16519 2011-01-13 Dodji Seketeli <dodji@redhat.com>
16520
16521 PR debug/PR46973
16522 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
16523 static function.
16524 (prune_unused_types_mark): Use it.
16525
16526 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
16527
16528 PR rtl-optimization/45352
16529 * sel-sched.c: Update copyright years.
16530 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
16531 in the advancing loop when we have issued issue_rate insns.
16532
16533 2011-01-12 Richard Henderson <rth@redhat.com>
16534
16535 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
16536 (TARGET_MD_ASM_CLOBBERS): New.
16537
16538 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
16539 (TARGET_DELEGITIMIZE_ADDRESS): New.
16540
16541 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
16542 (clzsi2, *bsch): New patterns.
16543
16544 * config/mn10300/mn10300.md (INT): New mode iterator.
16545 (*mov<INT>_clr): New pattern, and peep2 to generate it.
16546
16547 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
16548 flag_split_wide_types.
16549
16550 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
16551 (mn10300_trampoline_init): Rewrite without a template, an immediate
16552 load and a direct branch.
16553 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
16554
16555 2011-01-12 Anatoly Sokolov <aesok@post.ru>
16556
16557 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16558 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
16559 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
16560 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16561
16562 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
16563
16564 PR debug/47209
16565 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
16566 of type.
16567
16568 2011-01-12 Jan Hubicka <jh@suse.cz>
16569
16570 PR driver/47244
16571 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
16572 (PLUGIN_COND_CLOSE): New macro.
16573 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
16574
16575 2011-01-12 Richard Guenther <rguenther@suse.de>
16576
16577 PR lto/47259
16578 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
16579 register variables in a MEM_REF.
16580
16581 2011-01-12 Joseph Myers <joseph@codesourcery.com>
16582
16583 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
16584 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
16585 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
16586 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
16587 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
16588 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
16589 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
16590 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
16591 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
16592 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
16593 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
16594 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
16595 * config/gnu-user.h: New. Copied from linux.h.
16596 (LINUX_TARGET_STARTFILE_SPEC): Rename to
16597 GNU_USER_TARGET_STARTFILE_SPEC.
16598 (LINUX_TARGET_ENDFILE_SPEC): Rename to
16599 GNU_USER_TARGET_ENDFILE_SPEC.
16600 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
16601 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
16602 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
16603 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
16604 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
16605 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
16606 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
16607 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
16608 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
16609 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
16610 * config/arm/linux-eabi.h (CC1_SPEC): Use
16611 GNU_USER_TARGET_CC1_SPEC.
16612 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
16613 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
16614 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
16615 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
16616 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
16617 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
16618 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
16619 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
16620
16621 2011-01-12 Richard Guenther <rguenther@suse.de>
16622
16623 PR other/46946
16624 * doc/invoke.texi (ffast-math): Document it is turned on
16625 with -Ofast.
16626
16627 2011-01-12 Jan Hubicka <jh@suse.cz>
16628
16629 PR tree-optimization/47233
16630 * opts.c (common_handle_option): Disable ipa-reference with profile
16631 feedback.
16632
16633 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
16634
16635 * c-parser.c (c_parser_objc_at_property_declaration): Improved
16636 error message.
16637
16638 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
16639
16640 * c-parser.c (c_lex_one_token): Updated and reindented some
16641 comments. No changes in code.
16642
16643 2011-01-11 Ian Lance Taylor <iant@google.com>
16644
16645 * godump.c (go_output_var): Don't output the variable if there is
16646 already a type with the same name.
16647
16648 2011-01-11 Ian Lance Taylor <iant@google.com>
16649
16650 * godump.c (go_format_type): Don't generate float80.
16651
16652 2011-01-11 Richard Henderson <rth@redhat.com>
16653
16654 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
16655 declaration. Rewrite for both speed and size.
16656 (mn10300_address_cost_1): Remove.
16657 (mn10300_register_move_cost): New.
16658 (mn10300_memory_move_cost): New.
16659 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
16660 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
16661 extensions, shifts, BSWAP, CLZ.
16662 (mn10300_wide_const_load_uses_clr): Remove.
16663 (TARGET_REGISTER_MOVE_COST): New.
16664 (TARGET_MEMORY_MOVE_COST): New.
16665 * config/mn10300/mn10300-protos.h: Update.
16666 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
16667
16668 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
16669 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
16670 * config/mn10300/mn10300-protos.h: Update.
16671 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
16672 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
16673 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
16674 (*test_int_bitfield, *test_byte_bitfield): Remove.
16675 (*bit_test, *subreg_bit_test): Remove.
16676 * config/mn10300/predicates.md (const_8bit_operand): Remove.
16677
16678 * config/mn10300/constraints.md ("c"): Rename from "A".
16679 ("A", "D"): New constraint letters.
16680 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
16681 (fmssf4, fnmasf4, fnmssf4): Likewise.
16682
16683 * config/mn10300/mn10300.md (isa): New attribute.
16684 (enabled): New attribute.
16685
16686 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
16687 (abssf2, negsf2): Define only for hardware fp.
16688 (sqrtsf2): Reformat.
16689 (addsf3, subsf3, mulsf3): Merge expander and insn.
16690
16691 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
16692 (DEBUGGER_AUTO_OFFSET): Remove.
16693 (DEBUGGER_ARG_OFFSET): Remove.
16694
16695 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
16696 Emit register stores with the same offsets as the hardware.
16697 (mn10300_store_multiple_operation): Don't check that the register
16698 save offsets are monotonic.
16699 * config/mn10300/mn10300-protos.h: Update.
16700
16701 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
16702
16703 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
16704 in terms of the value on the stack, not the MDR register.
16705
16706 2011-01-11 Jan Hubicka <jh@suse.cz>
16707
16708 PR lto/45721
16709 PR lto/45375
16710 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
16711 (symbol_alias_set_destroy, symbol_alias_set_contains,
16712 propagate_aliases_backward): Declare.
16713 * lto-streamer-out.c (struct sets): New sturcture.
16714 (trivally_defined_alias): New function.
16715 (output_alias_pair_p): Rewrite.
16716 (output_unreferenced_globals): Fix output of alias pairs.
16717 (produce_symtab): Likewise.
16718 * ipa.c (function_and_variable_visibility): Set weak alias destination
16719 as needed in lto.
16720 * varasm.c (symbol_alias_set_t): Remove.
16721 (symbol_alias_set_destroy): Export.
16722 (propagate_aliases_forward, propagate_aliases_backward): New functions
16723 based on ...
16724 (compute_visible_aliases): ... this one; remove.
16725 (trivially_visible_alias): New
16726 (trivially_defined_alias): New.
16727 (remove_unreachable_alias_pairs): Rewrite.
16728 (finish_aliases_1): Reorganize code checking if alias is defined.
16729 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
16730 in LTO mode.
16731
16732 2011-01-11 Richard Guenther <rguenther@suse.de>
16733
16734 PR tree-optimization/46076
16735 * tree-ssa.c (useless_type_conversion_p): Conversions from
16736 unprototyped to empty argument list function types are useless.
16737
16738 2011-01-11 Richard Guenther <rguenther@suse.de>
16739
16740 PR middle-end/45235
16741 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
16742 volatile MEMs as MEM_READONLY_P.
16743
16744 2011-01-11 Richard Guenther <rguenther@suse.de>
16745
16746 PR tree-optimization/47239
16747 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
16748
16749 2011-01-11 Jeff Law <law@redhat.com>
16750
16751 PR tree-optimization/47086
16752 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
16753 IVs from statements that might throw.
16754
16755 2011-01-10 Jan Hubicka <jh@suse.cz>
16756
16757 PR lto/45375
16758 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
16759
16760 2011-01-10 Jan Hubicka <jh@suse.cz>
16761
16762 PR lto/45375
16763 * profile.c (read_profile_edge_counts): Ignore profile inconistency
16764 when correcting profile.
16765
16766 2011-01-10 Jan Hubicka <jh@suse.cz>
16767
16768 PR lto/46083
16769 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
16770 DECL_FINI_PRIORITY.
16771 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
16772 Restore DECL_FINI_PRIORITY.
16773
16774 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16775
16776 * doc/gimple.texi: Fix quoting of multi-word return values in
16777 @deftypefn statements. Ensure presence of return value. Wrap
16778 overlong @deftypefn lines.
16779 (is_gimple_operand, is_gimple_min_invariant_address): Remove
16780 descriptions of removed functions.
16781 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
16782 of multi-word return value in @deftypefn statement.
16783
16784 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16785
16786 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
16787 (Conditional Expressions, Logical Operators)
16788 (Statement and operand traversals): Do not indent smallexample
16789 code. Fix duplicate function argument in example.
16790
16791 2011-01-10 Jeff Law <law@redhat.com>
16792
16793 PR tree-optimization/47141
16794 * ipa-split.c (split_function): Handle case where we are
16795 returning a value and the return block has a virtual operand phi.
16796
16797 2011-01-10 Jan Hubicka <jh@suse.cz>
16798
16799 PR tree-optimization/47234
16800 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
16801 (pass_feedback_split_functions): Declare.
16802 * passes.c (init_optimization_passes): Add ipa-split as subpass of
16803 tree-profile.
16804 * ipa-split.c (gate_split_functions): Update comments; disable
16805 split-functions for profile_arc_flag and branch_probabilities.
16806 (gate_feedback_split_functions): New function.
16807 (execute_feedback_split_functions): New function.
16808 (pass_feedback_split_functions): New global var.
16809
16810 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
16811
16812 PR lto/46760
16813 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
16814 calling gimple_call_set_cannot_inline.
16815
16816 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
16817
16818 * config/darwin-sections.def: Remove unused section.
16819
16820 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
16821
16822 PR c++/47218
16823 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
16824
16825 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
16826
16827 PR objc/47232
16828 * c-parser.c (c_parser_declaration_or_fndef): Improved
16829 error message.
16830
16831 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
16832
16833 * config/i386/winnt.c (i386_pe_start_function): Make sure
16834 to switch back to function's section.
16835
16836 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
16837
16838 PR gcc/46902
16839 PR testsuite/46912
16840 * plugin.c: Move include of dlfcn.h from here...
16841 * system.h: ... to here.
16842
16843 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16844
16845 * doc/cpp.texi (C++ Named Operators): Fix markup for header
16846 file name.
16847 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
16848 two extra empty pages in PDF output.
16849
16850 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
16851
16852 PR objc/47078
16853 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
16854 for error recovery purposes behave as if it was not specified so
16855 that the default type is usd.
16856
16857 2011-01-07 Jan Hubicka <jh@suse.cz>
16858
16859 PR tree-optmization/46469
16860 * ipa.c (function_and_variable_visibility): Clear needed flags on
16861 nodes with external decls; handle weakrefs merging correctly.
16862
16863 2011-01-07 Joseph Myers <joseph@codesourcery.com>
16864
16865 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
16866 not false.
16867
16868 2011-01-07 Jan Hubicka <jh@suse.cz>
16869
16870 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
16871 and no longer claim that gold is required for linker plugin.
16872 * configure: Regenerate.
16873 * gcc.c (PLUGIN_COND): New macro.
16874 (LINK_COMMAND_SPEC): Use it.
16875 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
16876 * config.in (HAVE_LTO_PLUGIN): New.
16877 * configure.ac (--with-lto-plugin): New parameter; autodetect
16878 HAVE_LTO_PLUGIN.
16879
16880 2011-01-07 Jan Hubicka <jh@suse.cz>
16881
16882 PR tree-optimization/46367
16883 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
16884 when we can update original.
16885 (cgraph_mark_inline_edge): Sanity check.
16886 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
16887
16888 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16889
16890 * config/spu/spu.h (ASM_COMMENT_START): Define.
16891
16892 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
16893
16894 PR driver/42445
16895 * gcc.c (%>S): New.
16896 (SWITCH_KEEP_FOR_GCC): Likewise.
16897 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
16898 (do_spec_1): Handle "%>".
16899
16900 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
16901
16902 2011-01-07 Jakub Jelinek <jakub@redhat.com>
16903
16904 PR target/47201
16905 * config/i386/i386.c (ix86_delegitimize_address): If
16906 simplify_gen_subreg fails, return orig_x.
16907
16908 PR bootstrap/47187
16909 * value-prof.c (gimple_stringop_fixed_value): Handle
16910 lhs of the call properly.
16911
16912 2011-01-07 Jan Hubicka <jh@suse.cz>
16913
16914 PR lto/45375
16915 * lto-opt.c (lto_reissue_options): Set flag_shlib.
16916
16917 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16918
16919 * target.def (function_switched_text_sections): New hook.
16920 * doc/tm.texi: Regenerated.
16921 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16922 * final.c (default_function_switched_text_sections): New.
16923 (final_scan_insn): Call function_switched_text_sections when a
16924 mid-function section change occurs.
16925 * output.h (default_function_switched_text_sections): Declare.
16926 * config/darwin-protos.h (darwin_function_switched_text_sections):
16927 Likewise.
16928 * config/darwin.c (darwin_function_switched_text_sections): New.
16929 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16930
16931 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16932
16933 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
16934 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
16935 the secondary code fragment when outputting for DWARF == 2.
16936
16937 2011-01-07 Anatoly Sokolov <aesok@post.ru>
16938
16939 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16940 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
16941 Remove.
16942 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
16943 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16944
16945 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
16946
16947 PR debug/46704
16948 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
16949 when it is not empty.
16950
16951 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
16952
16953 Bobcat Enablement
16954 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
16955 (case ${target}): Add btver1.
16956 * config/i386/driver-i386.c (host_detect_local_cpu): Let
16957 -march=native recognize btver1 processors.
16958 * config/i386/i386-c.c (ix86_target_macros_internal): Add
16959 btver1 def_and_undef
16960 * config/i386/i386.c (struct processor_costs btver1_cost): New
16961 btver1 cost table.
16962 (m_BTVER1): New definition.
16963 (m_AMD_MULTIPLE): Includes m_BTVER1.
16964 (initial_ix86_tune_features): Add btver1 tune.
16965 (processor_target_table): Add btver1 entry.
16966 (static const char *const cpu_names): Add btver1 entry.
16967 (software_prefetching_beneficial_p): Add btver1.
16968 (ix86_option_override_internal): Add btver1 instruction sets.
16969 (ix86_issue_rate): Add btver1.
16970 (ix86_adjust_cost): Add btver1.
16971 * config/i386/i386.h (TARGET_BTVER1): New definition.
16972 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
16973 (enum processor_type): Add PROCESSOR_BTVER1.
16974 * config/i386/i386.md (define_attr "cpu"): Add btver1.
16975
16976 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16977
16978 PR target/43309
16979 * config/i386/i386.c (legitimize_tls_address)
16980 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
16981 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
16982 (tls_initial_exec_64_sun): New pattern.
16983
16984 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
16985
16986 * doc/invoke.texi (Overall Options): Improve wording and markup
16987 of the description of -wrapper.
16988
16989 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16990
16991 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
16992 rdynamic, threads): New Driver options.
16993
16994 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16995
16996 PR target/38118
16997 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
16998 if coming from .tdata.
16999 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
17000
17001 2011-01-06 Jan Hubicka <jh@suse.cz>
17002
17003 PR lto/47188
17004 * collect2.c (main): Do not enable LTOmode when plugin is active.
17005
17006 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17007
17008 PR other/45915
17009 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
17010 --version output if supported.
17011 * configure: Regenerate.
17012
17013 2011-01-06 Joseph Myers <joseph@codesourcery.com>
17014
17015 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
17016 Driver options.
17017
17018 2011-01-06 Jakub Jelinek <jakub@redhat.com>
17019
17020 PR c/47150
17021 * c-convert.c (convert): When converting a complex expression
17022 other than COMPLEX_EXPR to a different complex type, ensure
17023 c_save_expr is called instead of save_expr, unless in_late_binary_op.
17024 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
17025 when converting COMPLEX_TYPE.
17026
17027 2011-01-06 Ira Rosen <irar@il.ibm.com>
17028
17029 PR tree-optimization/47139
17030 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
17031 only the last reduction value is used outside the loop. Update
17032 documentation.
17033
17034 2011-01-05 Joseph Myers <joseph@codesourcery.com>
17035
17036 * config/rtems.opt: New.
17037 * config.gcc (*-*-rtems*): Use rtems.opt.
17038
17039 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
17040
17041 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
17042 processors do not support 3DNow instructions.
17043
17044 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17045
17046 * config/spu/spu.c (spu_option_override): Set parameter
17047 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
17048
17049 2011-01-05 Jan Hubicka <jh@suse.cz>
17050
17051 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
17052 at the command line.
17053
17054 2011-01-05 Martin Jambor <mjambor@suse.cz>
17055
17056 PR lto/47162
17057 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
17058 deltas on streamed outgoing edges.
17059 (output_node_opt_summary): Output info for outgoing edges only when
17060 the node is in new parameter set.
17061 (output_cgraph_opt_summary): New parameter set, passed to the two
17062 aforementioned functions. Update its forward declaration and its
17063 callee too.
17064
17065 2011-01-05 Tom Tromey <tromey@redhat.com>
17066
17067 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
17068 operator to c_finish_omp_atomic.
17069 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
17070 (build_unary_op): Update.
17071 (build_modify_expr): Update.
17072 (build_asm_expr): Update.
17073
17074 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17075
17076 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
17077 newly inserted insns.
17078 (pad_bb): Likewise.
17079 (spu_emit_branch_hint): Likewise.
17080 (insert_hbrp_for_ilb_runout): Likewise.
17081 (spu_machine_dependent_reorg): Call df_finish_pass after
17082 schedule_insns returns.
17083
17084 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17085
17086 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
17087
17088 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
17089
17090 PR tree-optimization/47005
17091 * tree-sra.c (struct access): Add 'non_addressable' bit.
17092 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
17093 (decide_one_param_reduction): Return 0 if the parameter is passed by
17094 reference and one of the accesses in the group is non_addressable.
17095
17096 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
17097
17098 PR tree-optimization/47056
17099 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
17100 (mark_load): Likewise. Handle FUNCTION_DECL specially.
17101 (mark_store): Likewise. Pass STMT to ipa_record_reference.
17102
17103 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
17104
17105 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
17106 initializer. Skip view conversions from aggregate types.
17107
17108 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
17109
17110 PR bootstrap/47055
17111 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
17112
17113 2011-01-04 Philipp Thomas <pth@suse.de>
17114
17115 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
17116 obvious typo.
17117
17118 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17119
17120 * function.c (thread_prologue_and_epilogue_insns): Do not crash
17121 on empty epilogue sequences.
17122
17123 2011-01-04 Joseph Myers <joseph@codesourcery.com>
17124
17125 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
17126 non-static): New Driver options.
17127
17128 2011-01-04 Jie Zhang <jie@codesourcery.com>
17129
17130 PR driver/47137
17131 * gcc.c (default_compilers[]): Set combinable field to 0
17132 for all assembly languages.
17133
17134 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
17135
17136 * config/mips/loongson3a.md: New file.
17137 * config/mips/mips.md: Include loongson3a.md.
17138 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
17139 TUNE_LOONGSON_3A.
17140
17141 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
17142
17143 PR middle-end/47017
17144 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
17145 instead of convert_memory_address_addr_space on the base expression.
17146
17147 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17148
17149 * config/spu/spu.c (spu_option_override): Update error text
17150 for bad -march= / -mtune= values.
17151
17152 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17153
17154 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
17155 if branch-hint optimization will be performed.
17156
17157 2011-01-03 Jakub Jelinek <jakub@redhat.com>
17158
17159 PR tree-optimization/47148
17160 * ipa-split.c (split_function): Convert arguments to
17161 DECL_ARG_TYPE if possible.
17162
17163 PR tree-optimization/47155
17164 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
17165 when computing uns.
17166
17167 PR rtl-optimization/47157
17168 * combine.c (try_combine): If undobuf.other_insn becomes
17169 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
17170 and set *new_direct_jump_p too.
17171
17172 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
17173
17174 PR tree-optimization/47021
17175 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
17176
17177 2011-01-03 Jakub Jelinek <jakub@redhat.com>
17178
17179 * gcc.c (process_command): Update copyright notice dates.
17180 * gcov.c (print_version): Likewise.
17181 * gcov-dump.c (print_version): Likewise.
17182 * mips-tfile.c (main): Likewise.
17183 * mips-tdump.c (main): Likewise.
17184
17185 2011-01-03 Martin Jambor <mjambor@suse.cz>
17186
17187 PR tree-optimization/46801
17188 * tree-sra.c (type_internals_preclude_sra_p): Check whether
17189 aggregate fields start at byte boundary instead of the bit-field flag.
17190
17191 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
17192
17193 PR driver/47137
17194 * gcc.c (main): Revert revision 168407.
17195
17196 2011-01-03 Martin Jambor <mjambor@suse.cz>
17197
17198 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
17199
17200 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17201
17202 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
17203 vector optab to expand vector/scalar shift, update gimple to vector.
17204
17205 2011-01-03 Martin Jambor <mjambor@suse.cz>
17206
17207 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
17208 a thunk.
17209
17210 2011-01-03 Martin Jambor <mjambor@suse.cz>
17211
17212 PR tree-optimization/46984
17213 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
17214 HOST_WIDE_INT.
17215 (cgraph_create_indirect_edge): Fixed line length.
17216 (cgraph_indirect_call_info): Declare.
17217 (cgraph_make_edge_direct) Update declaration.
17218 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
17219 (cgraph_create_indirect_edge): Use it.
17220 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
17221 callees.
17222 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
17223 the new thunk_delta representation.
17224 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
17225 HOST_WIDE_INT.
17226 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
17227 (ipa_read_indirect_edge_info): Likewise.
17228 * lto-cgraph.c (output_edge_opt_summary): New function.
17229 (output_node_opt_summary): Call it on all outgoing edges.
17230 (input_edge_opt_summary): New function.
17231 (input_node_opt_summary): Call it on all outgoing edges.
17232
17233 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
17234
17235 PR driver/47137
17236 * gcc.c (main): Don't check have_o when settting combine_inputs.
17237
17238 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
17239
17240 * regrename.c: Add general comment describing the pass.
17241 (struct du_head): Remove 'length' field.
17242 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
17243 (regrename_optimize): Do not sort chains. Rework comments, add others.
17244 Force renaming to the preferred class (if any) in the first pass and do
17245 not consider registers that belong to it in the second pass.
17246 (create_new_chain): Do not set 'length' field.
17247 (scan_rtx_reg): Likewise.
17248
17249 2011-01-02 Jakub Jelinek <jakub@redhat.com>
17250
17251 PR tree-optimization/47140
17252 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
17253 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
17254 to bit_value_binop.
17255
17256 PR rtl-optimization/47028
17257 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
17258 parm_birth_insn instead of at the beginning of first bb.
17259
17260 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
17261
17262 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
17263 Remove the word "see" before "@pxref".
17264 * doc/rtl.texi: Remove the word "see" before "@pxref".
17265
17266 2011-01-01 Jan Hubicka <jh@suse.cz>
17267
17268 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
17269 memory.
17270
17271 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
17272
17273 PR target/38662
17274 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
17275
17276 \f
17277 Copyright (C) 2011 Free Software Foundation, Inc.
17278
17279 Copying and distribution of this file, with or without modification,
17280 are permitted in any medium without royalty provided the copyright
17281 notice and this notice are preserved.