re PR rtl-optimization/49154 (build fails on cris-elf in libgcc: ICE in setup_pressur...
[gcc.git] / gcc / ChangeLog
1 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
2
3 PR rtl-optimization/49154
4 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
5 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
6 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
7 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
8 * config/cris/cris.h (cris_register_move_cost): Remove
9 !TARGET_V32 code. Tweak comments.
10
11 2011-06-09 Jan Hubicka <jh@suse.cz>
12
13 * cgraphbuild.c (record_eh_tables): Mark personality function as having
14 address taken.
15
16 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
17
18 PR rtl-optimization/49154
19 * ira-costs.c (setup_regno_cost_classes_by_mode): If there
20 already is a matching slot in the hashtable, assign it to
21 classes_ptr.
22
23 PR rtl-optimization/49154
24 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
25 register classes.
26 * doc/tm.texi: Regenerate.
27
28 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
29
30 PR target/49307
31 * config/sh/sh.md (UNSPEC_CHKADD): New.
32 (chk_guard_add): New define_insn_and_split.
33 (symGOT_load): Use chk_guard_add instead of blockage.
34
35 2011-06-09 Kai Tietz <ktietz@redhat.com>
36
37 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
38
39 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
40
41 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
42
43 2011-06-09 Wei Guozhi <carrot@google.com>
44
45 PR target/46975
46 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
47 (peephole2 for conditional move): Generate 16 bit instructions.
48
49 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
50
51 * config/i386/i386.md (*movdi_internal_rex64): Merge
52 alternatives 6 and 8.
53
54 2011-06-09 David Li <davidxl@google.com>
55
56 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
57 * passes.c (passr_eq): New function.
58 (create_pass_tab): New function.
59 (pass_traverse): New function.
60 (dump_one_pass): New function.
61 (dump_pass_list): New function.
62 (dump_passes): New function.
63
64 2011-06-09 David Li <davidxl@google.com>
65
66 * tree-complex.c (tree_lower_complex): Gate cleanup.
67 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
68 (execute_optimize_stdarg): Ditto.
69 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
70 (execute_cleanup_eh_1): Ditto.
71 (execute_cleanup_eh): Ditto.
72 * gcse.c (gate_rtl_pre): Ditto.
73 (execute_rtl_pre): Ditto.
74 * except.c (finish_eh_generation): Ditto.
75 (convert_to_eh_region_ranges): Ditto.
76 * cprop.c (one_cprop_pass): Ditto.
77
78 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
79
80 PR target/48673
81 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
82 in all basic blocks.
83
84 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
85
86 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
87 (HAVE_ENABLE_EXECUTE_STACK): Define.
88 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
89 (HAVE_ENABLE_EXECUTE_STACK): Define.
90 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
91 (HAVE_ENABLE_EXECUTE_STACK): Define.
92 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
93 (ENABLE_EXECUTE_STACK): Remove.
94 (HAVE_ENABLE_EXECUTE_STACK): Define.
95 [IN_LIBGCC2]: Don't include <windows.h>.
96 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
97 (HAVE_ENABLE_EXECUTE_STACK): Define.
98 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
99 (HAVE_ENABLE_EXECUTE_STACK): Define.
100 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
101 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
102 (HAVE_ENABLE_EXECUTE_STACK): Define.
103 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
104 (HAVE_ENABLE_EXECUTE_STACK): Define.
105 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
106 (HAVE_ENABLE_EXECUTE_STACK): Define.
107 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
108 (HAVE_ENABLE_EXECUTE_STACK): Define.
109 * config/alpha/alpha.c (alpha_trampoline_init): Test
110 HAVE_ENABLE_EXECUTE_STACK.
111 * config/i386/i386.c (ix86_trampoline_init): Likewise.
112 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
113 (sparc64_initialize_trampoline): Likewise.
114 * libgcc2.c [L_enable_execute_stack]: Remove.
115 * system.h (ENABLE_EXECUTE_STACK): Poison.
116 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
117 * doc/tm.texi: Regenerate.
118 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
119
120 2011-06-09 Jakub Jelinek <jakub@redhat.com>
121
122 PR middle-end/49308
123 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
124 variable. After resetting and rescanning insn continue with previous
125 statement.
126
127 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
128
129 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
130 (gcc_cv_ld_hidden): Likewise.
131 * configure: Regenerate.
132 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
133 (ix86_stack_protect_fail): Mark unused.
134 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
135 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
136 [TARGET_MACHO]: Don't define.
137 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
138 (TARGET_STACK_PROTECT_FAIL): Likewise.
139 (rs6000_stack_protect_fail): Mark unused.
140 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
141 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
142
143 2011-06-08 Andi Kleen <ak@linux.intel.com>
144
145 * varasm.c (get_section): Print location of other conflict
146 for section conflicts.
147
148 2011-06-08 Andi Kleen <ak@linux.intel.com>
149
150 * config/i386/driver-i386.c (host_detect_local_cpu):
151 Add model 0x2d Intel CPU.
152
153 2011-06-08 Andi Kleen <ak@linux.intel.com>
154
155 * reginfo.c (global_regs_decl): Add.
156 (globalize_reg): Add decl parameter. Compute location. Pass location
157 to warnings and add inform. Store decl in global_regs_decl.
158 * rtl.h (globalize_reg): Update prototype.
159 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
160
161 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
162
163 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
164
165 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
166
167 PR target/49305
168 * config/sh/predicates.md (general_movsrc_operand): Check
169 mode for memory with indexed address for QI and HImode.
170 (general_movdst_operand): Likewise.
171
172 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
173
174 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
175
176 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
177
178 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
179 (num_ssa_operands): Likewise.
180 (op_iter_init_phiuse): Forward-declare.
181 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
182
183 2011-06-08 Nick Clifton <nickc@redhat.com>
184
185 * doc/invoke.texi (ARM Options): Update description of
186 -mthumb-interwork.
187
188 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
189
190 * config/i386/driver-i386.c (host_detect_local_cpu): Support
191 unknown Intel family 0x6 CPUs.
192
193 2011-06-08 Martin Jambor <mjambor@suse.cz>
194
195 * tree-sra.c (mark_rw_status): Removed.
196 (analyze_access_subtree): New parameter parent instead of
197 mark_read and mark_write, propagate from that.
198
199 2011-06-08 Julian Brown <julian@codesourcery.com>
200
201 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
202 for double-precision helper functions in hard-float mode if only
203 single-precision arithmetic is supported in hardware.
204
205 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
206
207 PR rtl-optimization/49303
208 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
209 code_motion_path_driver returned 0 or 1.
210 (sel_region_finish): Clear h_d_i_d.
211
212 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
213
214 * config/sh/sh.c (prepare_move_operands): Set pic register
215 appropriately for global and local dynamic tls models even
216 if flag_pic is unset.
217
218 2011-06-07 Jason Merrill <jason@redhat.com>
219
220 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
221
222 2011-06-07 Xinliang David Li <davidxl@google.com>
223 * passes.c (enable_disable_pass): Handle assembler name.
224 (is_pass_explicitly_enabled_or_disabled): Ditto.
225
226 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
227
228 PR tree-optimization/48497
229 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
230
231 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
232
233 PR tree-optimization/46728
234 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
235 to use gimple_val_nonnegative_real_p.
236 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
237 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
238
239 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
240
241 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
242
243 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
244
245 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
246 constant vectors.
247
248 2011-06-07 Richard Guenther <rguenther@suse.de>
249
250 * stor-layout.c (initialize_sizetypes): Initialize all
251 sizetypes based on target definitions.
252 (set_sizetype): Remove.
253 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
254 * tree.h (set_sizetype): Remove.
255
256 2011-06-07 Nick Clifton <nickc@redhat.com>
257
258 * config.gcc: Unify V850 architecture options and add support for
259 newer V850 architectures.
260 * config/v850/t-v850e: Delete.
261
262 2011-06-07 Richard Guenther <rguenther@suse.de>
263
264 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
265 Call set_sizetype from here.
266
267 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
268
269 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
270 (*maddhisi4tb, *maddhisi4tt): New define_insns.
271
272 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
273 Andrew Stubbs <ams@codesourcery.com>
274
275 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
276 multiplies.
277 * doc/md.texi (Canonicalization of Instructions): Document widening
278 multiply canonicalization.
279
280 2011-06-07 Jakub Jelinek <jakub@redhat.com>
281
282 PR gcov-profile/49299
283 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
284
285 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
286
287 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
288 a pointer.
289 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
290 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
291 vect_recog_pow_pattern): Likewise.
292 (vect_pattern_recog_1): Remove declaration.
293 (widened_name_p): Remove declaration. Add new argument to specify
294 whether to check that both types are either signed or unsigned.
295 (vect_recog_widen_mult_pattern): Update documentation. Handle
296 unsigned patterns and multiplication by constants.
297 (vect_pattern_recog_1): Update vect_recog_func references. Use
298 statement information from the statement returned from pattern
299 detection functions.
300 (vect_pattern_recog): Update vect_recog_func reference.
301 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
302 multiplication by a constant use the type of the other operand.
303
304 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
305
306 PR rtl-optimization/49145
307 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
308
309 2011-06-06 Jakub Jelinek <jakub@redhat.com>
310
311 PR debug/49262
312 * dwarf2out.c (native_encode_initializer): Decrement count in each
313 iteration.
314
315 PR debug/49294
316 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
317 non-MODE_INT modes.
318
319 PR c++/49264
320 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
321 if stmt folded into nothing.
322 * tree-inline.c (fold_marked_statements): If a builtin at the end of
323 a bb folded into nothing, just update cgraph edges and move to next bb.
324 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
325 to be NULL. Don't compute count and frequency if new_call is NULL.
326
327 2011-06-04 Diego Novillo <dnovillo@google.com>
328
329 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
330 (cgraph.o): Likewise.
331 (cgraphunit.o): Likewise.
332 * cgraphunit.c: Include lto-streamer.h
333 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
334 if LTO is enabled.
335 * lto-streamer-in.c (unpack_value_fields): Call
336 streamer_hooks.unpack_value_fields if set.
337 (lto_materialize_tree): For unhandled nodes, first try to
338 call lto_streamer_hooks.alloc_tree, if it exists.
339 (lto_input_ts_decl_common_tree_pointers): Move reading of
340 DECL_INITIAL to lto_streamer_read_tree.
341 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
342 (lto_streamer_read_tree): New.
343 (lto_reader_init): Rename from lto_init_reader.
344 Move initialization code to lto/lto.c.
345 * lto-streamer-out.c (pack_value_fields): Call
346 streamer_hooks.pack_value_fields if set.
347 (lto_output_tree_ref): For tree nodes that are not normally indexable,
348 call streamer_hooks.indexable_with_decls_p before giving up.
349 (lto_output_ts_decl_common_tree_pointers): Move handling
350 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
351 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
352 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
353 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
354 (lto_streamer_write_tree): New.
355 (lto_output): Call lto_streamer_init directly.
356 (lto_writer_init): Remove.
357 * lto-streamer.c (streamer_hooks): New.
358 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
359 instead of lto_preload_common_nodes.
360 (lto_is_streamable): Move from lto-streamer.h
361 (lto_streamer_hooks_init): New.
362 (streamer_hooks): New.
363 (streamer_hooks_init): New.
364 * lto-streamer.h (struct output_block): Forward declare.
365 (struct lto_input_block): Likewise.
366 (struct data_in): Likewise.
367 (struct bitpack_d): Likewise.
368 (struct streamer_hooks): Declare.
369 (streamer_hooks): Declare.
370 (lto_streamer_hooks_init): Declare.
371 (lto_streamer_write_tree): Declare.
372 (lto_streamer_read_tree): Declare.
373 (streamer_hooks_init): Declare.
374 (lto_is_streamable): Move to lto-streamer.c
375
376 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
377
378 * longlong.h (smul_ppmm): The resulting register pair contains the
379 higher order word first.
380
381 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
382
383 PR tree-optimization/46728
384 * builtins.c (powi_table): Remove.
385 (powi_lookup_cost): Remove.
386 (powi_cost): Remove.
387 (expand_powi_1): Remove.
388 (expand_powi): Remove.
389 (expand_builtin_pow_root): Remove.
390 (expand_builtin_pow): Remove.
391 (expand_builtin_powi): Eliminate handling of constant exponent.
392 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
393
394 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
395
396 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
397
398 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
399
400 * dce.c (reset_unmarked_insns_debug_uses): New.
401 (delete_unmarked_insns): Skip debug insns.
402 (prescan_insns_for_dce): Likewise.
403 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
404 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
405 active reg can be found.
406 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
407 (convert_regs_1): Use it.
408
409 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
410
411 * tree-pretty-print.c (dump_function_header): Add flags.
412 Don't dump decl_uid with nouid.
413 * tree-pretty-print.h (dump_function_header): Adjust.
414 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
415 * passes.c (pass_init_dump_file): Pass dump_flags on.
416 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
417
418 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
419
420 PR bootstrap/49270
421 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
422
423 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
424
425 PR tree-optimization/49243
426 * calls.c (setjmp_call_p): Also check if fndecl has the
427 returns_twice attribute.
428
429 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
430
431 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
432 -ffast-math etc.
433
434 2011-06-06 Richard Henderson <rth@redhat.com>
435 Georg-Johann Lay <avr@gjlay.de>
436
437 PR target/42210
438 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
439 New predicates.
440 * config/avr/avr.md ("insv"): New insn expander.
441 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
442 "*insv.not.io", "*insv.reg"): New insns.
443
444 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
445
446 PR target/49285
447 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
448 to nonimmediate_operand from memory_operand for the operand that is to
449 be forced to memory by the expander. Lose the constraints.
450
451 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
452
453 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
454 EH return when delayed branches are disabled.
455
456 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
457
458 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
459 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
460 calculation.
461 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
462 Simplify MODE_V1DF and MODE_V2SF handling.
463 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
464 Simplify MODE_SF handling.
465
466 2011-06-04 Jan Hubicka <jh@suse.cz>
467
468 PR tree-optimization/48893
469 PR tree-optimization/49091
470 PR tree-optimization/49179
471 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
472 Bounds check.
473
474 2011-06-04 Jan Hubicka <jh@suse.cz>
475
476 PR lto/48954
477 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
478 bitmaps.
479
480 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
481
482 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
483
484 2011-06-04 Jakub Jelinek <jakub@redhat.com>
485
486 PR target/49281
487 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
488 to be strictly smaller than 1 << shiftcount.
489
490 2011-06-04 Jan Hubicka <jh@suse.cz>
491
492 PR tree-optimize/48929
493 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
494 of empty predicate.
495
496 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
497
498 PR debug/48333
499 * calls.c (emit_call_1): Prefer the __builtin declaration of
500 builtin functions.
501
502 2011-06-03 Diego Novillo <dnovillo@google.com>
503
504 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
505 (lto_input_tree_pointers): Likewise.
506 * lto-streamer-out.c (pack_value_fields): Likewise.
507 (lto_output_tree_pointers): Likewise.
508 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
509 and OPTIMIZATION_NODE.
510
511 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
512
513 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
514 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
515 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
516 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
517 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
518 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
519 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
520 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
521 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
522 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
523 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
524 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
525 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
526 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
527 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
528 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
529 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
530 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
531 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
532 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
533 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
534 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
535 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
536 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
537 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
538 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
539 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
540 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
541 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
542 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
543 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
544 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
545 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
546 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
547 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
548 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
549 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
550 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
551 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
552 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
553 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
554 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
555 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
556 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
557 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
558 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
559 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
560 * system.h (MD_UNWIND_SUPPORT): Poison.
561 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
562 * doc/tm.texi: Regenerate.
563 * unwind-dw2.c: Include md-unwind-support.h instead of
564 MD_UNWIND_SUPPORT.
565 * config/ia64/unwind-ia64.c: Likewise.
566 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
567
568 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
569
570 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
571
572 2011-06-03 Richard Henderson <rth@redhat.com>
573 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
574
575 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
576 (sigill_hdlr): Correct insn, insn size.
577 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
578
579 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
580
581 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
582 t-slibgcc-dummy.
583 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
584 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
585 * config/mips/t-iris: Remove.
586 * config/mips/t-irix6: New file.
587 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
588
589 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
590
591 * Makefile.in (LIB2ADDEHDEP): Remove.
592 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
593 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
594 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
595 * config/t-darwin (LIB2ADDEHDEP): Remove.
596 * config/t-freebsd (LIB2ADDEHDEP): Remove.
597 * config/t-linux (LIB2ADDEHDEP): Remove.
598
599 2011-06-03 Diego Novillo <dnovillo@google.com>
600
601 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
602 (lto_register_var_decl_in_symtab): Likewise.
603 (lto_register_function_decl_in_symtab): Likewise.
604 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
605 logic to uniquify_nodes.
606
607 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
608
609 * config/alpha/t-osf5: Remove.
610 * config/alpha/t-osf-pthread: Remove.
611 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
612 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
613
614 2011-06-03 Julian Brown <julian@codesourcery.com>
615
616 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
617 (strongarm1110): Use strongarm tuning.
618 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
619 * config/arm/arm.c (arm_strongarm_tune): New.
620 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
621 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
622 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
623 setting, using previous defaults or 1 for Cortex-A5.
624 (arm_option_override): Set max_insns_skipped from current tuning.
625
626 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
627
628 * doc/install.texi (Options specification): Document --with-specs.
629
630 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
631
632 * config/arm/neon.md (orndi3_neon): Actually split it.
633
634 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
635
636 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
637 * var-tracking.c (reverse_op): Limite recurse depth to 5.
638
639 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
640
641 PR debug/47590
642 * target.def (delay_sched2, delay_vartrack): New.
643 * doc/tm.texi.in: Update.
644 * doc/tm.texi: Rebuild.
645 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
646 * var-tracking.c (gate_handle_var_tracking): Likewise.
647 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
648 (bfin_flag_var_tracking): Drop.
649 (output_file_start): Don't save and override flag_var_tracking.
650 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
651 (bfin_reorg): Test original variables.
652 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
653 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
654 (ia64_flag_var_tracking): Drop.
655 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
656 (ia64_file_start): Don't save and override flag_var_tracking.
657 (ia64_override_options_after_change): Ditto
658 flag_schedule_insns_after_reload.
659 (ia64_reorg): Test original variables.
660 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
661 (picochip_flag_var_tracking): Drop.
662 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
663 (picochip_option_override): Don't save and override
664 flag_schedule_insns_after_reload.
665 (picochip_asm_file_start): Ditto flag_var_tracking.
666 (picochip_reorg): Test original variables.
667 * config/spu/spu.c (spu_flag_var_tracking): Drop.
668 (TARGET_DELAY_VARTRACK): Define.
669 (spu_var_tracking): New.
670 (spu_machine_dependent_reorg): Call it.
671 (asm_file_start): Don't save and override flag_var_tracking.
672
673 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
674
675 PR target/49163
676 * config/sh/predicates.md (general_movsrc_operand): Return 0
677 for memory and memory subreg of which address is an invalid
678 indexed address for QI and HImode.
679 (general_movdst_operand): Likewise.
680
681 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
682
683 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
684 edges only, when there is a non-local label in the function.
685 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
686
687 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
688
689 * config/i386/constraints.md (Y3): New register constraint.
690 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
691 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
692 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
693 *sse2_interleave_lowv2df.
694
695 2011-06-02 Julian Brown <julian@codesourcery.com>
696
697 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
698 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
699 (arm_cortex_a5_tune): New.
700
701 2011-06-02 Julian Brown <julian@codesourcery.com>
702
703 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
704 * config/arm/arm.c (arm_default_branch_cost): New.
705 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
706 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
707 (arm_fa726_tune): Set branch_cost field using
708 arm_default_branch_cost.
709 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
710 current_tune structure.
711 * dojump.c (tm_p.h): Include file.
712
713 2011-06-02 Julian Brown <julian@codesourcery.com>
714
715 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
716 tuning.
717 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
718 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
719 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
720 field.
721 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
722 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
723 (arm_fa726te_tune): Add prefer_constant_pool setting.
724 (arm_v6t2_tune, arm_cortex_tune): New.
725 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
726 prefer_constant_pool setting.
727
728 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
729
730 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
731 switch statement.
732 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
733 (*movdf_internal) <case 6,7,8>: Ditto.
734
735 * config/i386/constraints.md (Y4): New register constraint.
736 * config/i386/sse.md (vec_set<mode>_0): Merge with
737 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
738 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
739 *vec_extractv2di_1_sse.
740 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
741 and *vec_concatv2di_rex64_sse.
742
743 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
744
745 PR target/48807
746 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
747 of cgraph_local_info for null before attempting to use it.
748
749 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
750
751 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
752 (current_function_dynamic_alloc_count): Delete.
753 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
754 (expand_builtin_nonlocal_goto): Remove obsolete comment.
755 (expand_builtin_update_setjmp_buf): Remove dead code.
756 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
757 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
758 support.
759 * function.c (instantiate_virtual_regs): Likewise.
760 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
761 for a block with a single abnormal incoming edge.
762 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
763 (SETJMP_VIA_SAVE_AREA): Delete.
764 * config/sparc/sparc-protos.h (load_got_register): Declare.
765 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
766 (load_got_register): Make global.
767 (sparc_frame_pointer_required): Add 'static'.
768 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
769 (sparc_builtin_setjmp_frame_value): New function.
770 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
771 (save_stack_nonlocal): New expander.
772 (restore_stack_nonlocal): Likewise.
773 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
774 (nonlocal_goto_internal): New insn.
775 (goto_handler_and_restore): Delete.
776 (builtin_setjmp_setup): Likewise.
777 (do_builtin_setjmp_setup): Likewise.
778 (setjmp): Likewise.
779 (builtin_setjmp_receiver): New expander.
780
781 2011-06-01 David Li <davidxl@google.com>
782
783 PR middle-end/49261
784 * tree-pretty-print.c (dump_function_header): Format cleanup.
785
786 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
787
788 PR target/49238
789 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
790 needed when original operands are used for msw_skip comparison.
791
792 2011-06-01 Jakub Jelinek <jakub@redhat.com>
793
794 PR debug/49250
795 * var-tracking.c (add_uses, add_stores): Don't call
796 cselib_subst_to_values on ENTRY_VALUE.
797
798 2011-06-01 Diego Novillo <dnovillo@google.com>
799
800 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
801 output_record_start with LTO_null instead of output_zero.
802 (lto_output_ts_binfo_tree_pointers): Likewise.
803 (lto_output_tree): Likewise.
804 (output_eh_try_list): Likewise.
805 (output_eh_region): Likewise.
806 (output_eh_lp): Likewise.
807 (output_eh_regions): Likewise.
808 (output_bb): Likewise.
809 (output_function): Likewise.
810 (output_unreferenced_globals): Likewise.
811 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
812 instead of NUM_TREE_CODES.
813 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
814 (lto_output_int_in_range): Change << to >> when shifting VAL.
815
816 2011-06-01 Diego Novillo <dnovillo@google.com>
817
818 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
819 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
820
821 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
822
823 PR target/45074
824 * optabs.h (valid_multiword_target_p): Declare.
825 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
826 doing multi-word operations.
827 * optabs.c (expand_binop): Likewise.
828 (expand_doubleword_bswap): Likewise.
829 (expand_absneg_bit): Likewise.
830 (expand_unop): Likewise.
831 (expand_copysign_bit): Likewise.
832 (multiword_target_p): New function.
833
834 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
835
836 PR rtl-optimization/48830
837 PR rtl-optimization/48808
838 PR rtl-optimization/48792
839 * reload.c (push_reload): Check contains_reg_of_mode.
840 * reload1.c (strip_paradoxical_subreg): New function.
841 (gen_reload_chain_without_interm_reg_p): Use it to handle
842 paradoxical subregs.
843 (emit_output_reload_insns, gen_reload): Likewise.
844
845 2011-06-01 David Li <davidxl@google.com>
846
847 * predict.c : Change pass name
848 * ipa.c: Ditto.
849 * dce.c: Ditto.
850 * tree-profile.c: Ditto.
851 * except.c: Ditto.
852
853 2011-06-01 David Li <davidxl@google.com>
854
855 * tree-pretty-print.c (dump_function_header): New function.
856 * final.c (rest_of_clean_state): Use header dumper.
857 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
858 * passes.c (pass_init_dump_file): Use header dumper.
859
860 2011-06-01 Jakub Jelinek <jakub@redhat.com>
861
862 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
863 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
864 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
865 New functions.
866 (mem_loc_descriptor): Use them.
867
868 * var-tracking.c (create_entry_value): New function.
869 (vt_add_function_parameter): Use it.
870
871 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
872
873 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
874 Include <signal.h>, <ucontext.h>.
875 (sigill_caught): Define.
876 (sigill_hdlr): New function.
877 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
878 insns can be executed.
879 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
880 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
881
882 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
883
884 * config/t-slibgcc-darwin: Move to ...
885 * config/t-slibgcc-dummy: ... this. Clarify comments.
886 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
887 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
888 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
889 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
890 Remove i386/t-crtstuff from tmake_file.
891 (i[34567]86-*-solaris2*): Remove t-svr4,
892 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
893 t-slibgcc-dummy.
894 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
895 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
896 sparc/t-crtfm from tmake_file.
897 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
898 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
899 Remove extra_parts.
900 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
901 * config/i386/t-nwld (SHLIB_LINK): Remove.
902 * config/i386/t-rtems-i386: Rename to ...
903 * config/i386/t-rtems: ... this.
904 ($(T)crti.o, $(T)crtn.o): Remove.
905 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
906 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
907 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
908 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
909 EXTRA_MULTILIB_PARTS): Remove.
910 * config/sparc/t-sol2-64: Likewise.
911 * config/sparc/t-sol2: Remove.
912 * config/sparc/t-crtin: Remove.
913 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
914 * config/i386/gmon-sol2.c: Remove.
915 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
916 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
917 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
918 * config/i386/sol2-gc1.asm: Remove.
919 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
920 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
921 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
922 * config/t-slibgcc-sld: Remove.
923
924 2011-06-01 Jakub Jelinek <jakub@redhat.com>
925
926 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
927 base_type_for_mode with op_mode instead of mode.
928
929 2011-06-01 Paul Brook <paul@cpodesourcery.com>
930
931 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
932 Cortex-A15.
933 * config/arm/arm-tune.md: Regenerate.
934 * config/arm/arm-tables.opt: Regenerate.
935 * config/arm/arm.c (FL_DIV): Rename...
936 (FL_THUMB_DIV): ... to this.
937 (FL_ARM_DIV): Define.
938 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
939 (arm_arch_hwdiv): Remove.
940 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
941 (arm_issue_rate): Add cortexr5.
942 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
943 __ARM_ARCH_EXT_IDIV__.
944 (TARGET_IDIV): Define.
945 (arm_arch_hwdiv): Remove.
946 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
947 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
948 (divsi3, udivsi3): New patterns.
949 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
950 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
951
952 2011-06-01 Martin Jambor <mjambor@suse.cz>
953
954 * ipa-utils.c (ipa_dfs_info): New field scc_no.
955 * ipa-utils.c (searchc): Set scc_no.
956
957 2011-06-01 Martin Jambor <mjambor@suse.cz>
958
959 * ipa-utils.c (searchc_env): New field allow_overwritable.
960 (searchc): do not ignore edges to overwritable nodes if indicated
961 by env->allow_overwritable.
962 (ipa_reduced_postorder): Set env.allow_overwritable.
963
964 2011-06-01 Richard Guenther <rguenther@suse.de>
965
966 * tree.c (free_lang_data): Do not reset boolean_type_node nor
967 char_type_node.
968 * lto-streamer.c (lto_record_common_node): Take node pointer,
969 do not register types.
970 (lto_preload_common_nodes): Explicitly skip preloading nodes
971 that differ between frontends.
972
973 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
974
975 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
976 NON_FLOAT_REGS.
977
978 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
979
980 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
981 parameter value for dump. Dump cost on outermost call only.
982 (rs6000_memory_move_cost): Dump cost on outermost call only.
983
984 2011-05-31 Jakub Jelinek <jakub@redhat.com>
985
986 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
987 DW_OP_GNU_convert ops.
988
989 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
990 cselib_preserve_constants.
991 (cselib_lookup_1): If cselib_preserve_constants,
992 a new VALUE is being created for REG and there is a VALUE for the
993 same register in wider mode, add another loc with lowpart SUBREG of
994 the wider VALUE.
995 (cselib_subst_to_values): Handle ENTRY_VALUE.
996 * var-tracking.c (replace_expr_with_values): Return NULL for
997 ENTRY_VALUE too.
998 * dwarf2out.c (convert_descriptor_to_signed): New function.
999 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
1000 instead of two shifts.
1001 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
1002 the right mode if needed.
1003 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
1004 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
1005 convert_descriptor_to_signed.
1006 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
1007 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
1008
1009 PR target/48688
1010 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
1011
1012 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
1013
1014 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
1015 of X87MODEI12 and SWI48x instead of SSEMODEI24.
1016 (SWI248x): New mode iterator, rename from X87MODEI.
1017 (X87MODEI): Remove mode iterator.
1018 (X87MODEI12): Ditto.
1019 (SSEMODEI24): Ditto.
1020
1021 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1022
1023 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
1024 * doc/invoke.texi: Document max-vartrack-expr-depth.
1025 * var-tracking.c (EXPR_DEPTH): New.
1026 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
1027
1028 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1029
1030 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
1031 * config/i386/sse.md: Add n to negated FMA pattern names.
1032
1033 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1034
1035 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
1036
1037 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1038
1039 * gengtype-state.c (read_state_params_structs): Initialize previous.
1040
1041 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
1042
1043 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
1044 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
1045
1046 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
1047
1048 * config/i386/i386.md (*movtf_internal): Avoid allocating general
1049 registers. Penalize F*r->o alternative to prevent partial memory
1050 stalls. Slightly penalize *roF->*r alternative. Generate SSE
1051 CONST_DOUBLE immediates when optimizing function for size. Do not move
1052 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
1053 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
1054 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
1055 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
1056 alternatives.
1057 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
1058
1059 (fp_register_operand splitters): Use fp_register_operand
1060 constraint. Do not use FP_REG_P in insn condition.
1061 (any_fp_register_operand splitters): Use any_fp_register_operand
1062 constraint. Do not use ANY_FP_REG_P in insn condition.
1063
1064 2011-05-31 Jan Hubicka <jh@suse.cz>
1065
1066 * cgraph.h (cgraph_inline_failed_t): Give enum a name
1067 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
1068 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
1069 (lto_output_edge): Use output_enum and var_len_unsigned.
1070 (lto_output_varpool_node): Likewise.
1071 (input_overwrite_node): Do not take resolution parameter;
1072 extract it from a bitpack.
1073 (input_node): Do not read resolution; use input_enum and
1074 var_len_unsigned.
1075 (input_varpool_node): Likewise.
1076 (input_edge): Likewise.
1077 (input_cgraph_1): Likewise.
1078
1079 2011-05-31 Richard Guenther <rguenther@suse.de>
1080
1081 * gimple.c (gimple_register_canonical_type): Do not register
1082 any types via gimple_register_type.
1083
1084 2011-05-31 Jan Hubicka <jh@suse.cz>
1085
1086 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
1087 of thunks.
1088
1089 2011-05-31 Jakub Jelinek <jakub@redhat.com>
1090
1091 PR rtl-optimization/49235
1092 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
1093 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
1094
1095 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
1096
1097 PR tree-optimization/49093
1098 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
1099 data references.
1100
1101 2011-05-31 Dodji Seketeli <dodji@redhat.com>
1102
1103 PR debug/49047
1104 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
1105 for concrete functions containing the code of cloned functions.
1106
1107 2011-05-31 Richard Guenther <rguenther@suse.de>
1108
1109 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
1110 to ...
1111 (forward_propagate_into_comparison_1): ... this.
1112 (forward_propagate_comparison): Rename to ...
1113 (forward_propagate_into_comparison): ... this. Split out
1114 real forward propagation code to ...
1115 (forward_propagate_comparison): ... this.
1116 (forward_propagate_into_gimple_cond): Remove looping.
1117 (forward_propagate_into_cond): Likewise.
1118 (simplify_not_neg_expr): Return whether we have done something.
1119 (simplify_gimple_switch): Likewise.
1120 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
1121 (ssa_forward_propagate_and_combine): ... this. Re-structure
1122 to do a forward forward-propagation walk on BBs and a backward
1123 stmt combining walk on BBs. Consistently re-scan changed statements.
1124 (pass_forwprop): Adjust.
1125
1126 2011-05-30 Ian Lance Taylor <iant@google.com>
1127
1128 * godump.c (go_format_type): Correct length of name added to
1129 obstack for anonymous field.
1130
1131 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
1132
1133 PR target/49186
1134 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
1135 part of the second operand is 0.
1136
1137 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
1138
1139 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
1140 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
1141 to memory for !TARGET_MEMORY_MISMATCH_STALL.
1142 (*movdf_internal_rex64): Do not penalize F->r alternative.
1143 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
1144 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
1145 when optimizing function for size. Do not move CONST_DOUBLEs
1146 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
1147 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
1148 SUBREGs. Do not check for MEM_P operands in the insn condition,
1149 check for ANY_FP_REGNO_P instead.
1150 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
1151 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
1152 function for speed.
1153 * config/i386/i386.c (ix86_option_override_internal): Do not
1154 set TARGET_INTEGER_DFMODE_MOVES here.
1155
1156 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
1157
1158 PR target/49168
1159 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
1160
1161 2011-05-30 Jakub Jelinek <jakub@redhat.com>
1162
1163 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
1164 DW_TAG_rvalue_reference_type even for
1165 -gdwarf-4 -fno-debug-types-section.
1166
1167 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1168
1169 PR tree-optimization/46728
1170 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
1171 (build_and_insert_binop): New.
1172 (gimple_expand_builtin_pow): Reorder args for
1173 build_and_insert_call; use build_and_insert_binop; add more
1174 optimizations for fractional exponents.
1175
1176 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
1177
1178 PR bootstrap/49190
1179
1180 Revert:
1181 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1182
1183 * tree.h (struct tree_identifier): Inherit from tree_typed, not
1184 tree_common.
1185 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
1186 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
1187 TS_BASE instead of TS_COMMON.
1188 * varasm.c (assemble_name): Remove assert.
1189
1190 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
1191
1192 * config.gcc: Keep obselete list sorted.
1193
1194 2011-05-30 Jakub Jelinek <jakub@redhat.com>
1195 Eric Botcazou <ebotcazou@adacore.com>
1196
1197 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
1198 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
1199 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
1200 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
1201 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
1202
1203 2011-05-30 Richard Guenther <rguenther@suse.de>
1204
1205 * gimple.c (gimple_types_compatible_p_1): Compare record
1206 and union type members properly.
1207
1208 2011-05-30 Richard Guenther <rguenther@suse.de>
1209
1210 PR tree-optimization/49210
1211 * ipa-split.c (split_function): Care for the case where the call
1212 result is not trivially convertible to the result holding variable.
1213
1214 2011-05-30 Richard Guenther <rguenther@suse.de>
1215
1216 PR tree-optimization/49218
1217 * tree-vrp.c (adjust_range_with_scev): Properly check whether
1218 overflow occured.
1219
1220 2011-05-30 Richard Guenther <rguenther@suse.de>
1221
1222 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
1223 New function split out from ...
1224 (forward_propagate_into_gimple_cond): ... here. Adjust.
1225 (forward_propagate_into_cond): Likewise.
1226 (forward_propagate_comparison): Also propagate into
1227 comparisons on assignment RHS. Change return value to
1228 behave similar to forward_propagate_into_cond.
1229 (tree_ssa_forward_propagate_single_use_vars): Handle
1230 strict-overflow warnings properly for forward_propagate_comparison.
1231
1232 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1233
1234 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
1235 from plugin linker.
1236 * configure: Regenerate.
1237
1238 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
1239
1240 PR tree-optimization/49199
1241 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
1242 non-reduction operands are either defined in the loop or by induction.
1243
1244 2011-05-29 Xinliang David Li <davidxl@google.com>
1245
1246 * opts-global.c (handle_common_deferred_options): Handle new options.
1247 * passes.c (register_one_dump_file): Call register_pass_name.
1248 (execute_one_pass): Check explicit enable/disable flag.
1249 (passr_hash): New function.
1250 (passr_eq): Ditto.
1251 (register_pass_name): Ditto.
1252 (get_pass_by_name): Ditto.
1253 (pass_hash): Ditto.
1254 (pass_eq): Ditto.
1255 (enable_pass): Ditto.
1256 (disable_pass): Ditto.
1257 (is_pass_explicitly_enabled_or_disabled): Ditto.
1258
1259 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
1260
1261 * config/i386/i386.md (*movoi_internal_avx): Use
1262 standard_sse_constant_opcode for alternative 0.
1263 (*movti_internal_sse): Ditto.
1264 (*movti_internal_rex64): Use standard_sse_constant_opcode for
1265 alternative 2.
1266 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
1267 sselog1 type moves.
1268 (*movsi_internal): Ditto.
1269 (*movdi_internal): Ditto. Add ssecvt type moves.
1270
1271 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
1272
1273 PR target/48830
1274 * rtlanal.c (simplify_subreg_regno): Adjust comment.
1275
1276 2011-05-29 Jakub Jelinek <jakub@redhat.com>
1277
1278 PR rtl-optimization/49095
1279 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
1280 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
1281
1282 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
1283
1284 PR target/43995
1285 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
1286 recurse_p argument. Only follow register copies if it is set,
1287 and prevent mips_find_pic_call_symbol from recursing.
1288 (mips_find_pic_call_symbol): Add a recurse_p argument.
1289 Pass it to mips_pic_call_symbol_from_set.
1290 (mips_annotate_pic_calls): Update accordingly.
1291
1292 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
1293
1294 * emit-rtl.c (try_split): Use a loop to search for
1295 NOTE_INSN_CALL_ARG_LOCATIONs.
1296
1297 2011-05-29 Richard Guenther <rguenther@suse.de>
1298
1299 PR tree-optimization/49217
1300 * ipa-pure-const.c (propagate_pure_const): Fix typos.
1301
1302 2011-05-28 Jan Hubicka <jh@suse.cz>
1303
1304 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
1305 length.
1306 (string_slot_free): Remove
1307 (create_output_block): Initialize obstack.
1308 (destroy_output_block): Free obstack.
1309 (lto_string_index): Add PERSISTENT parameter; do not duplicate
1310 the string unless it needs to be added into the hash.
1311 (lto_output_string_with_length): Add persistent attribute;
1312 handle NULL strings.
1313 (lto_output_string): Add PERSISTENT parameter.
1314 (output_string_cst, output_identifier): Simplify.
1315 (lto_output_location_bitpack): Update.
1316 (lto_output_builtin_tree): Update.
1317 * lto-streamer.h (struct output_block): Add obstack.
1318 (lto_output_string, lto_output_string_with_length): Remove
1319 declarations; functions are static now.
1320
1321 2011-05-28 Jan Hubicka <jh@suse.cz>
1322
1323 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
1324 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
1325 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
1326 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
1327 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
1328 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
1329 unpack_ts_decl_with_vis_value_fields,
1330 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
1331 lto_get_builtin_tree): Use enum and variable length i/o.
1332 * basic-block.h (profile_status_d): Add PROFILE_LAST.
1333 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
1334 New functions.
1335 (bp_pack_enum, bp_unpack_enum): New macros.
1336
1337 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1338
1339 * genrecog.c: Remove redundant forward declarations.
1340
1341 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1342
1343 * config.gcc: Deprecate mips*-*-openbsd*.
1344
1345 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1346
1347 PR bootstrap/49195
1348 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
1349 for match_op_dup.
1350
1351 2011-05-27 Andrew Pinski <pinskia@gmail.com>
1352
1353 PR middle-end/48981
1354 * gengtype.c (vec_prefix_type): New function.
1355 (note_def_vec): Use vec_prefix_type and change the length
1356 attribute to be based on the prefix.
1357 * vec.c: Include coretypes.h before vec.h.
1358 (struct vec_prefix): Remove.
1359 (vec_gc_p_reserve): Change the offsetof to sizeof.
1360 (vec_gc_p_reserve_exact): Likewise.
1361 (vec_heap_p_reserve): Likewise.
1362 (vec_heap_p_reserve_exact): Likewise.
1363 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
1364 (vec_stack_p_reserve): Change the offsetof to sizeof.
1365 (vec_stack_p_reserve_exact): Likewise.
1366 * vec.h (struct vec_prefix): New struct definition.
1367 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
1368 (VEC_T_GTY(T,B)): Likewise.
1369 (DEF_VEC_FUNC_P(T)): Use prefix field.
1370 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
1371 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
1372
1373 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1374
1375 PR tree-optimization/46728
1376 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
1377 (powi_as_mults): Add gimple_set_location.
1378 (build_and_insert_call): New.
1379 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
1380 0.5, 0.25, 0.75, 1./3., or 1./6.
1381
1382 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
1383
1384 * doc/contrib.texi: Update copyright years.
1385 (Contributors): Add Zdenek Sojka.
1386
1387 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1388
1389 * c-decl.c (c_push_function_context): Copy the current statement
1390 list stack.
1391 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
1392 (finish_struct): Call building_stmt_list_p instead of checking
1393 cur_stmt_list.
1394 * c-parser.c (c_parser_postfix_expression): Likewise.
1395 * c-typeck.c (c_end_compound_stmt): Likewise.
1396 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
1397 * tree-iterator.c (stmt_list_cache): Change to a VEC.
1398 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
1399 (free_stmt_list): Likewise.
1400 * tree.h (struct tree_statement_list): Include typed_tree instead
1401 of tree_common.
1402 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
1403 as TS_TYPED instead of TS_COMMON.
1404
1405 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1406 Uros Bizjak <ubizjak@gmail.com>
1407
1408 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
1409 (HAVE_AS_IX86_TLSGDPTL): Define.
1410 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
1411 (HAVE_AS_IX86_TLSLDMPLT): Define.
1412 * configure: Regenerate.
1413 * config.in: Regenerate.
1414 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
1415 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
1416 TARGET_SUN_TLS, use @tlsgdplt or @plt.
1417 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
1418 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
1419 @tlsldmplt or @plt.
1420 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
1421
1422 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
1423
1424 * sched-int.h (struct _haifa_deps_insn_data): New members cond
1425 and reverse_cond.
1426 (INSN_COND, INSN_REVERSE_COND): New macros.
1427 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
1428 once.
1429 (sched_get_condition_with_rev): Cache the results, and look them up
1430 if possible.
1431 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
1432 are clobbered by the current insn.
1433 * target.def (exposed_pipline): New sched data hook.
1434 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
1435 * doc/tm.texi: Regenerate.
1436
1437 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1438
1439 PR tree-optimization/49170
1440 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
1441 sincos or cexp.
1442
1443 2011-05-27 Richard Guenther <rguenther@suse.de>
1444
1445 PR middle-end/49189
1446 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
1447 of comparisons.
1448
1449 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
1450
1451 * haifa-sched.c (sched_scan_info): Remove.
1452 (schedule_block): Call sched_extend_luids rather than sched_init_luids
1453 with NULL args.
1454 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
1455 Remove functions.
1456 (sched_scan): Remove.
1457 (sched_extend_luids): Renamed from luids_extend_insn and no longer
1458 static. All callers changed.
1459 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
1460 static. All callers changed.
1461 (sched_init_luids): Remove all arguments except the first. All
1462 callers changed. Don't use sched_scan.
1463 (haifa_init_h_i_d): Likewise.
1464 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
1465 manually rather than using sched_init_luids. Likewise with
1466 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
1467 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
1468 rather than sched_init_luids with NULL args.
1469 * sel-sched-ir.c (new_insns): Remove variable.
1470 (sched_scan): New static function, previously in haifa-sched.c. Remove
1471 all arguments but the first two; all callers changed.
1472 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
1473 rather than sched_init_luids.
1474 (sel_init_bbs): Remove second argument. All callers changed.
1475 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
1476 with NULL arguments.
1477 (create_insn_rtx_from_pattern): Likewise.
1478 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
1479 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
1480 (sched_init_insn_luid, sched_extend_luids): Declare.
1481 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
1482 declarations.
1483
1484 2011-05-27 Richard Guenther <rguenther@suse.de>
1485
1486 PR middle-end/49177
1487 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
1488 A CMP B ? (T) true : (T) false for non-integral types T again.
1489
1490 2011-05-27 Jan Hubicka <jh@suse.cz>
1491
1492 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
1493 so 0 means NULL string.
1494 (lto_output_string_with_length): ... here.
1495 (lto_output_string, output_string_cst, output_identifier): Update
1496 handling of NULL strings.
1497 (lto_output_location_bitpack): New function.
1498 (lto_output_location): Use it.
1499 (lto_output_tree_ref): Use output_record_start.
1500 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
1501 len values.
1502 * lto-streamer-in.c (string_for_index): Break out from ...; offset
1503 values by 1.
1504 (input_string_internal): ... here;
1505 (input_string_cst, input_identifier, lto_input_string): Update handling
1506 of NULL strings.
1507 (lto_input_location_bitpack): New function
1508 (lto_input_location): Use it.
1509 (unpack_ts_type_common_value_fields): Pack align & alias in var len
1510 values.
1511 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
1512 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
1513 (bp_pack_value): Sanity check the value range.
1514 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
1515 New functions.
1516 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
1517 New functions.
1518
1519 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
1520
1521 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
1522 call_arg_location instructions down the floor.
1523
1524 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
1525
1526 PR rtl-optimization/49154
1527 * ira.c (setup_pressure_classes): Process class without sublcasses
1528 as a candidate for pressure classes.
1529
1530 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
1531
1532 PR rtl-optimization/48575
1533 * genrecog.c (position_type): New enum.
1534 (position): New structure.
1535 (decision): Use position structure instead of a string.
1536 (root_pos, peep2_insn_pos_list): New variables.
1537 (next_position, compare_positions): New functions.
1538 (new_decision): Use position structures instead of strings.
1539 (maybe_both_true): Likewise.
1540 (change_state): Likewise.
1541 (write_tree): Likewise.
1542 (make_insn_sequence): Likewise.
1543
1544 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1545
1546 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
1547 TS_BASE instead of TS_COMMON.
1548 (find_decls_types_r): Check for TS_TYPED structure before looking at
1549 TREE_TYPE.
1550 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
1551 Add chain field.
1552 (BLOCK_CHAIN): Use new chain field.
1553
1554 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
1555
1556 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
1557 moves expensive on Power7 also.
1558
1559 2011-05-26 Richard Guenther <rguenther@suse.de>
1560
1561 * fold-const.c (fold_unary_loc): Remove bogus code.
1562
1563 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1564
1565 * tree.h (struct tree_identifier): Inherit from tree_typed, not
1566 tree_common.
1567 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
1568 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
1569 TS_BASE instead of TS_COMMON.
1570 * varasm.c (assemble_name): Remove assert.
1571
1572 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
1573
1574 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
1575 substituted first.
1576 * libgcc-std.ver: Delete file.
1577
1578 2011-05-26 Richard Guenther <rguenther@suse.de>
1579
1580 PR tree-optimization/48702
1581 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
1582 only when we know the base address is within bounds.
1583 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
1584 assume the base address of TARGET_MEM_REFs is in bounds.
1585
1586 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1587
1588 PR target/49099
1589 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
1590 declaration in TARGET_SOLARIS.
1591
1592 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
1593
1594 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
1595 The instruction is then expanded explicitly.
1596 (supported_compare): Callable instruction.
1597 (compare): Likewise.
1598
1599 2011-05-26 Jakub Jelinek <jakub@redhat.com>
1600
1601 PR c++/49165
1602 * gimplify.c (shortcut_cond_r): Don't special case
1603 COND_EXPRs if they have void type on one of their arms.
1604
1605 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
1606
1607 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
1608 to reduce duplication, and to achieve a slightly more logical order
1609 of operations.
1610
1611 2011-05-26 Jakub Jelinek <jakub@redhat.com>
1612
1613 PR tree-optimization/49161
1614 * tree-vrp.c (struct case_info): New type.
1615 (compare_case_labels): Sort case_info structs instead of
1616 trees, and not primarily by CASE_LABEL uids but by
1617 label_for_block indexes.
1618 (find_switch_asserts): Put case labels into struct case_info
1619 array instead of TREE_VEC, adjust sorting, compare label_for_block
1620 values instead of CASE_LABELs.
1621
1622 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1623
1624 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
1625 ("orndi3_neon"): Likewise.
1626 ("bic<mode>3_neon"): Likewise.
1627
1628 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
1629
1630 PR tree-optimization/49038
1631 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
1632 Ensure at least one epilogue iteration if required by data
1633 accesses with gaps.
1634 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1635 to mark loops that require peeling for gaps.
1636 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
1637 (vect_get_known_peeling_cost): Take peeling for gaps into
1638 account.
1639 (vect_transform_loop): Generate epilogue if required by data
1640 access with gaps.
1641 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
1642 loop as requiring an epilogue if there are gaps in the end of
1643 the strided group.
1644
1645 2011-05-25 Ian Lance Taylor <iant@google.com>
1646
1647 * godump.c (go_format_type): Output the first field with a usable
1648 Go type, if any.
1649
1650 2011-05-25 Ian Lance Taylor <iant@google.com>
1651
1652 * godump.c (go_format_type): Check for invalid type names, pointer
1653 target types, and struct field types.
1654
1655 2011-05-25 Jason Merrill <jason@redhat.com>
1656
1657 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
1658
1659 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
1660
1661 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
1662
1663 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1664
1665 * config/i386/i386.md (*movqi_extv_1)): Put back
1666 "register_operand" check in "type" calculation.
1667 (*movqi_extzv_2): Likewise.
1668
1669 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1670
1671 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
1672
1673 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1674
1675 PR bootstrap/49160
1676 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
1677 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
1678 __divxc3, __divtc3): Wrap definitions in #ifndef.
1679
1680 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1681
1682 PR target/49142
1683 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
1684 "register_operand" check and replace q_regs_operand with
1685 QIreg_operand in "type" calculation.
1686 (*movqi_extv_1): Likewise.
1687 (*movqi_extzv_2_rex64): Likewise.
1688 (*movqi_extzv_2): Likewise.
1689
1690 * config/i386/predicates.md (QIreg_operand): New.
1691
1692 2011-05-25 Richard Guenther <rguenther@suse.de>
1693
1694 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
1695 type-based offset disambiguation, streamline MEM_REF and
1696 TARGET_MEM_REF handling.
1697
1698 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1699
1700 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
1701 (bdesc_special_args): Add pause intrinsic.
1702
1703 * config/i386/i386.md (UNSPEC_PAUSE): New.
1704 (pause): Likewise.
1705 (*pause): Likewise.
1706 * config/i386/ia32intrin.h (__pause): Likewise.
1707
1708 * doc/extend.texi (X86 Built-in Functions): Add documentation for
1709 pause intrinsic.
1710
1711 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1712
1713 PR tree-optimization/46728
1714 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
1715 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
1716
1717 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
1718
1719 * tree.h (struct tree_exp): Inherit from struct tree_typed.
1720 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
1721 instead of TS_COMMON.
1722
1723 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1724
1725 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
1726 LIBGCC2_GNU_PREFIX is defined.
1727 (__N): New macro.
1728 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
1729 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
1730 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
1731 __clz_tab): Define using __N.
1732 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
1733 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
1734 * target.def (libfunc_gnu_prefix): New hook.
1735 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
1736 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
1737 * doc/tm.texi: Regenerate.
1738 * system.h (LIBGCC2_GNU_PREFIX): Poison.
1739 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
1740 account.
1741 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
1742 (init_optabs): Likewise for the bswap libfuncs.
1743 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
1744 and divide.
1745 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
1746 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
1747 * libgcc-std.ver: Remove.
1748 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
1749 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
1750 libgcc-std.ver.
1751 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1752 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
1753 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
1754 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
1755 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
1756 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1757 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1758 * config/fixed-bit.h (FIXED_OP): Define differently depending on
1759 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
1760 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
1761
1762 2011-05-25 Jan Hubicka <jh@suse.cz>
1763
1764 * lto-streamer-out.c (output_record_start): Use lto_output_enum
1765 (lto_output_tree): Use output_record_start.
1766 * lto-streamer-in.c (input_record_start): Use lto_input_enum
1767 (lto_get_pickled_tree): Use input_record_start.
1768 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
1769 (lto_value_range_error): New function.
1770 * lto-streamer.h (lto_value_range_error): Declare.
1771 (lto_output_int_in_range, lto_input_int_in_range): New functions.
1772 (lto_output_enum, lto_input_enum): New macros.
1773
1774 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
1775
1776 * common.opt (flag_stack_usage_info): New variable.
1777 (-Wstack-usage): New option.
1778 * doc/invoke.texi (Warning options): Document -Wstack-usage.
1779 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
1780 <OPT_fstack_usage>: Likewise.
1781 * toplev.c (output_stack_usage): Handle -Wstack-usage.
1782 * calls.c (expand_call): Test flag_stack_usage_info variable instead
1783 of flag_stack_usage.
1784 (emit_library_call_value_1): Likewise.
1785 * explow.c (allocate_dynamic_stack_space): Likewise.
1786 * function.c (instantiate_virtual_regs ): Likewise.
1787 (prepare_function_start): Likewise.
1788 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
1789 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
1790 * config/arm/arm.c (arm_expand_prologue): Likewise.
1791 (thumb1_expand_prologue): Likewise.
1792 * config/avr/avr.c (expand_prologue): Likewise.
1793 * config/i386/i386.c (ix86_expand_prologue): Likewise.
1794 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
1795 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
1796 * config/mips/mips.c (mips_expand_prologue): Likewise.
1797 * config/pa/pa.c (hppa_expand_prologue): Likewise.
1798 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
1799 * config/s390/s390.c (s390_emit_prologue): Likewise.
1800 * config/sh/sh.c (sh_expand_prologue): Likewise.
1801 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
1802 * config/spu/spu.c (spu_expand_prologue): Likewise.
1803
1804 2011-05-25 Richard Guenther <rguenther@suse.de>
1805
1806 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
1807 (gimple_canonical_types_compatible_p): Likewise.
1808
1809 2011-05-25 Jan Hubicka <jh@suse.cz>
1810
1811 PR middle-end/49062
1812 * ipa.c (function_and_variable_visibility): Only add to same
1813 comdat group list if DECL_ONE_ONLY.
1814
1815 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
1816
1817 PR rtl-optimization/49014
1818 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
1819
1820 2011-05-25 Jakub Jelinek <jakub@redhat.com>
1821
1822 PR target/49128
1823 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
1824
1825 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1826
1827 PR rtl-optimization/48757
1828 * ira-build.c (loop_with_eh_edge_p): Rename to
1829 loop_with_complex_edge_p, check edges on complexity, make function
1830 conditional.
1831 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
1832 conditional.
1833
1834 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1835
1836 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
1837 force flag_ira_share_save_slots to 0.
1838
1839 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1840
1841 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
1842 (vt_initialize): Set PROLOGUE_BB unconditionally.
1843 Add block comment about CFA_BASE_RTX machinery.
1844 Reset FP_CFA_OFFSET to -1 on all invalid paths.
1845 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
1846
1847 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
1848
1849 PR objc/48187
1850 * c-parser.c (c_parser_objc_class_instance_variables): More robust
1851 parsing of syntax error in ObjC instance variable lists. In
1852 particular, avoid an infinite loop if there is a stray ']'.
1853 Updated error message.
1854
1855 2011-05-24 Ian Lance Taylor <iant@google.com>
1856
1857 * godump.c (go_define): Don't accept a string immediately after
1858 another operand.
1859
1860 2011-05-24 Ian Lance Taylor <iant@google.com>
1861
1862 * godump.c (struct godump_container): Add invalid_hash field.
1863 (go_format_type): Return false if type is found in invalid_hash.
1864 (go_output_typedef): Add invalid type to invalid_hash.
1865 (go_finish): Create and delete invalid_hash.
1866
1867 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1868
1869 PR tree-optimization/46728
1870 * tree-ssa-math-opts.c (powi_table): New.
1871 (powi_lookup_cost): New.
1872 (powi_cost): New.
1873 (powi_as_mults_1): New.
1874 (powi_as_mults): New.
1875 (gimple_expand_builtin_powi): New.
1876 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
1877 (gate_cse_sincos): Remove sincos/cexp restriction.
1878
1879 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1880
1881 PR target/3746
1882 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
1883 mips-tdump native.
1884 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
1885 * mips-tdump.c: Likewise.
1886
1887 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
1888
1889 PR target/49128
1890 * config/i386/driver-i386.c (host_detect_local_cpu): Always
1891 add -mno-XXX. Handle FMA.
1892
1893 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1894
1895 PR rtl-optimization/48633
1896 * ira-build.c (loop_with_eh_edge_p): New function.
1897 (mark_loops_for_removal): Use it.
1898
1899 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1900
1901 PR rtl-optimization/48971
1902 * ira.c (setup_pressure_classes): Don't check register move cost
1903 for classes with one registers. Don't add pressure class if there
1904 is a pressure class with the same available hard registers.
1905 Check contains_reg_of_mode. Fix a typo in collecting
1906 temp_hard_regset. Ignore hard registers not belonging to a class.
1907
1908 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
1909
1910 PR target/49133
1911 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
1912
1913 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1914 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1915
1916 PR gcov-profile/48845
1917 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
1918
1919 2011-05-24 Richard Guenther <rguenther@suse.de>
1920
1921 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
1922 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
1923 (gimple_types_compatible_p_1): Adjust.
1924 (iterative_hash_canonical_type): Do not bother about complete vs.
1925 incomplete types.
1926 (gimple_canonical_types_compatible_p): Likewise.
1927
1928 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1929
1930 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
1931
1932 2011-05-24 Richard Guenther <rguenther@suse.de>
1933
1934 PR bootstrap/49078
1935 * gimple.c (gimple_register_canonical_type): Revert
1936 previous change.
1937 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
1938 does not for a tree for the case where it matters. Cache
1939 pointer-type alias-sets.
1940
1941 2011-05-24 Joseph Myers <joseph@codesourcery.com>
1942
1943 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
1944 (OBJS): Remove options.o, opts-common.o and prefix.o.
1945 (OBJS-libcommon-target): New.
1946 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
1947 (BACKEND): Include libcommon-target.a.
1948 (MOSTLYCLEANFILES): Include libcommon-target.a.
1949 (libcommon-target.a): New.
1950 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
1951 prefix.o.
1952
1953 2011-05-23 Joseph Myers <joseph@codesourcery.com>
1954
1955 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
1956 parts of output shared with the driver.
1957 * optc-gen.awk: Don't generate parts of output not shared with the
1958 driver.
1959 * opth-gen.awk: Remove GCC_DRIVER conditionals.
1960 * doc/options.texi (SourcerInclude): Mention options-save.c.
1961 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
1962 (OBJS): Add options-save.o.
1963 (options-save.c, options-save.o): New.
1964 (options.o): Update dependencies.
1965 (gcc-options.o): Remove.
1966 (mostlyclean): Remove options-save.c.
1967
1968 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1969
1970 PR debug/49032
1971 * dbxout.c: Include cgraph.h.
1972 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
1973 and without value expr, return NULL if no varpool node exists for
1974 it or if it is not needed.
1975 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
1976
1977 PR c/49120
1978 * c-decl.c (start_decl): Convert expr to void_type_node.
1979
1980 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
1981
1982 PR rtl-optimization/48826
1983 * emit-rtl.c (try_split): When splitting a call that is followed
1984 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
1985
1986 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1987
1988 * cfgexpand.c (expand_debug_expr): For unused non-addressable
1989 parameters passed in memory prefer using DECL_INCOMING_RTL over
1990 the pseudos it will be copied into.
1991
1992 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
1993
1994 PR target/47315
1995 * config/i386/i386.c (ix86_option_override_internal): Save the
1996 initial options after checking vzeroupper.
1997
1998 2011-05-23 David Li <davidxl@google.com>
1999
2000 PR tree-optimization/48988
2001 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
2002 Initialize has_valid_pred for each pred chain.
2003
2004 2011-05-23 Richard Guenther <rguenther@suse.de>
2005
2006 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
2007 (iterative_hash_gimple_type): Always hash type names.
2008
2009 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
2010
2011 * c-typeck.c (build_function_call_vec): Tweak call to
2012 check_function_arguments.
2013
2014 2011-05-23 Richard Guenther <rguenther@suse.de>
2015
2016 PR tree-optimization/49115
2017 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
2018 is not necessarily carried out, do not claim it kills the ref.
2019 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
2020
2021 2011-05-23 Richard Guenther <rguenther@suse.de>
2022
2023 PR middle-end/15419
2024 * builtins.c (fold_builtin_memory_op): Be less restrictive about
2025 what pointer types we accept for folding.
2026
2027 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2028
2029 * gthr-gnat.c: Remove.
2030 * gthr-gnat.h: Remove.
2031 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
2032 * config/t-freebsd (LIB2ADDEH): Likewise.
2033 * config/t-linux (LIB2ADDEH): Likewise.
2034 * config/t-sol2 (LIB2ADDEH): Likewise.
2035 * config/ia64/t-vms (LIB2ADDEH): Likewise.
2036 * configure.ac (target_thread_file): Remove gnat handling.
2037 * configure: Regenerate.
2038 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
2039
2040 2011-05-23 Tristan Gingold <gingold@adacore.com>
2041 Eric Botcazou <ebotcazou@adacore.com>
2042
2043 * gcov.c (create_file_names): If no object directory is specified,
2044 keep the directory of the file.
2045
2046 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2047
2048 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
2049 * configure: Regenerate.
2050
2051 2011-05-23 Jakub Jelinek <jakub@redhat.com>
2052
2053 PR middle-end/48973
2054 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
2055 failed and the comparison has a single bit signed type, use
2056 constm1_rtx instead of const1_rtx for true value.
2057 (do_store_flag): If ops->type is single bit signed type, disable
2058 signel bit test optimization and pass -1 instead of 1 as last
2059 parameter to emit_store_flag_force.
2060
2061 2011-05-23 Tom de Vries <tom@codesourcery.com>
2062
2063 PR target/45098
2064 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
2065 function.
2066 (infer_loop_bounds_from_undefined): Use new function.
2067
2068 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
2069
2070 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
2071 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
2072 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
2073 and -O0 otherwise.
2074 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
2075
2076 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
2077
2078 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
2079 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
2080 returns true.
2081
2082 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
2083
2084 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
2085
2086 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
2087
2088 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
2089 UNSPEC_MOVE_PIC pattern.
2090
2091 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
2092
2093 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
2094 (sparc-*-rtems*): Likewise.
2095 (sparc64-*-elf*): Likewise.
2096 (sparc64-*-rtems*): Likewise.
2097 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
2098 * config/sparc/t-crtin: New file.
2099 * config/sparc/t-sol2 (crti.o): Delete rule.
2100 (crtn.o): Likewise.
2101 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
2102 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
2103 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
2104 (ENDFILE_SPEC): Add crtn.o.
2105
2106 2011-05-22 Tom de Vries <tom@codesourcery.com>
2107
2108 PR middle-end/48689
2109 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
2110 CODE_CONTAINS_STRUCT (TS_COMMON).
2111
2112 2011-05-22 Jakub Jelinek <jakub@redhat.com>
2113
2114 PR middle-end/49029
2115 * expmed.c (extract_fixed_bit_field): Test whether target can be used
2116 only after deciding which mode to use.
2117
2118 2011-05-22 Tom de Vries <tom@codesourcery.com>
2119
2120 PR target/45098
2121 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
2122 for call to get_shiftadd_cost.
2123
2124 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
2125
2126 PR target/49104
2127 * config/i386/cpuid.h (bit_MMXEXT): New define.
2128
2129 2011-05-22 Nick Clifton <nickc@redhat.com>
2130
2131 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
2132 initialisation of non-existant args[2] element. Use args[] array
2133 not arg[] array to pass arguments to build_function_type_list.
2134
2135 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
2136
2137 PR tree-optimization/49087
2138 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
2139
2140 2011-05-21 Jason Merrill <jason@redhat.com>
2141
2142 PR c++/49092
2143 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
2144 static storage duration.
2145
2146 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
2147
2148 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
2149 frame pointer.
2150
2151 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
2152
2153 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
2154 false if there are call-saved registers here...
2155 (sparc_can_use_return_insn_p): ...but here instead.
2156 (save_or_restore_regs): Fix thinko.
2157 (sparc_expand_prologue): Use current_function_is_leaf.
2158 (sparc_frame_pointer_required): Likewise.
2159
2160 2011-05-21 Nick Clifton <nickc@redhat.com>
2161
2162 PR target/49098
2163 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
2164
2165 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
2166
2167 * gengtype.c (walk_type): Implemented "atomic" GTY option.
2168 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
2169
2170 2011-05-21 Joseph Myers <joseph@codesourcery.com>
2171
2172 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
2173 * optc-gen.awk: Move common code to opt-read.awk.
2174 * opth-gen.awk: Likewise.
2175 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
2176
2177 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
2178
2179 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
2180
2181 2011-05-20 Tom de Vries <tom@codesourcery.com>
2182
2183 PR target/45098
2184 * tree-ssa-loop-ivopts.c: Include expmed.h.
2185 (get_shiftadd_cost): New function.
2186 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
2187
2188 2011-05-20 Jakub Jelinek <jakub@redhat.com>
2189
2190 PR bootstrap/49086
2191 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
2192 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
2193
2194 2011-05-20 Joseph Myers <joseph@codesourcery.com>
2195
2196 * Makefile.in: Update comment referring to $(OBJS-common).
2197
2198 2011-05-20 Ian Lance Taylor <iant@google.com>
2199
2200 * godump.c (go_output_typedef): Put enum constants in the macro
2201 hash table to avoid duplicate Go const definitions.
2202
2203 2011-05-20 Joseph Myers <joseph@codesourcery.com>
2204
2205 * Makefile.in (LIBDEPS): Add libcommon.a.
2206 (LIBS): Likewise.
2207 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
2208 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
2209 pretty-print.o and version.o.
2210 (OBJS-libcommon): New.
2211 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
2212 (BACKEND): Add libcommon.a.
2213 (MOSTLYCLEANFILES): Likewise.
2214 (libcommon.a): New.
2215 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
2216 (cpp$(exeext)): Likewise.
2217 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
2218 pretty-print.o and input.o.
2219 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
2220 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
2221 (errors.o): Remove.
2222 (mips-tfile): Don't explicitly use version.o.
2223 (mips-tdump): Likewise.
2224 (gcov.o): Depend on $(DIAGNOSTIC_H).
2225 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
2226 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
2227 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
2228 * gcov-dump.c: Include intl.h and diagnostic.h.
2229 (main): Initialize diagnostics.
2230 * gcov.c: Include diagnostic.h.
2231 (fnotice): Remove.
2232 (main): Initialize diagnostics.
2233 * lto-wrapper.c: Include diagnostic.h.
2234 (main): Initialize diagnostics.
2235
2236 2011-05-20 Michael Matz <matz@suse.de>
2237
2238 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
2239
2240 2011-05-20 Michael Matz <matz@suse.de>
2241 Richard Guenther <rguenther@suse.de>
2242
2243 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
2244 use lto_streamer_cache_append directly instead of returning a VEC.
2245 (preload_common_node): Remove.
2246 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
2247 track seen nodes.
2248 (lto_streamer_cache_create): Call lto_preload_common_nodes.
2249
2250 2011-05-20 Richard Guenther <rguenther@suse.de>
2251
2252 PR tree-optimization/49079
2253 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
2254 MEM_REFs correctly for the trailing array access detection.
2255 Special case constants the same way as decls for overall size
2256 constraining.
2257
2258 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
2259
2260 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
2261 argument expansion.
2262
2263 2011-05-20 Jakub Jelinek <jakub@redhat.com>
2264
2265 PR tree-optimization/49073
2266 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
2267 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
2268 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
2269
2270 2011-05-20 Richard Guenther <rguenther@suse.de>
2271
2272 PR middle-end/48849
2273 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
2274 of pointer types the same way the middle-end does.
2275
2276 2011-05-20 Richard Guenther <rguenther@suse.de>
2277
2278 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
2279 or pointer-to chains. Delay all fixup to uniquify_nodes.
2280
2281 2011-05-19 Quentin Neill <quentin.neill@amd.com>
2282
2283 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
2284 (fma4_fmaddsub): Likewise
2285
2286 2011-05-19 Jan Hubicka <jh@suse.cz>
2287
2288 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
2289 (GIMPLE_TYPE_PAIR_SIZE): New macro.
2290 (type_pair_cache): New static var.
2291 (lookup_type_pair): Use fixed sized custom hash; make inline.
2292 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
2293 calls of lookup_type_pair.
2294 (print_gimple_types_stats): Remove cache stats.
2295 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
2296 and gtc_ob.
2297
2298 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
2299
2300 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
2301 when TARGET_RDRND is active.
2302 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
2303 Generate dummy SImode target register when target is NULL.
2304
2305 2011-05-19 Joseph Myers <joseph@codesourcery.com>
2306
2307 * config/arm/arm-fpus.def: New.
2308 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
2309 arm-fpus.def.
2310 * config/arm/arm-tables.opt: Regenerate.
2311 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
2312 (arm_option_override): Don't decode FPU name to string here.
2313 * config/arm/arm.opt (mfpu=): Use Enum.
2314 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
2315 Update dependencies.
2316
2317 2011-05-19 Joseph Myers <joseph@codesourcery.com>
2318
2319 * collect2.c: Include diagnostic.h.
2320 (fatal_perror, fatal, error, fancy_abort): Remove.
2321 (main): Set progname. Call xmalloc_set_program_name and
2322 diagnostic_initialize.
2323 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
2324 scan_libraries, resolve_lib_name): Call fatal_error instead of
2325 fatal and fatal_perror.
2326 * collect2.h (error, fatal, fatal_perror): Don't declare.
2327 * tlink.c: Include diagnostic-core.h.
2328 (recompile_files): Call fatal_error instead of fatal_perror.
2329 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
2330 pretty-print.o and input.o.
2331 (collect2.o, tlink.o): Update dependencies.
2332
2333 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2334
2335 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
2336
2337 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2338
2339 PR target/40483
2340 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
2341 COMDAT group syntax, both SPARC and x86 variants.
2342 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
2343 * configure: Regenerate.
2344 * config/sol2.h (TARGET_SOLARIS): Define.
2345 (PUSHSECTION_FORMAT): Remove.
2346 (SECTION_NAME_FORMAT): Define.
2347 * config/sol2.c: Include hashtab.h.
2348 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
2349 expansion, using SECTION_NAME_FORMAT.
2350 (solaris_comdat_htab): New variable.
2351 (struct comdat_entry): Define.
2352 (comdat_hash): New function.
2353 (comdat_eq): New function.
2354 (solaris_elf_asm_comdat_section): New function.
2355 (solaris_define_comdat_signature): New function.
2356 (solaris_code_end): New function.
2357 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
2358 (solaris_code_end): Declare.
2359 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
2360 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
2361 solaris_code_end.
2362 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
2363 Remove ATTRIBUTE_UNUSED.
2364 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
2365 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
2366 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
2367 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
2368 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
2369 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
2370 (PUSHSECTION_FORMAT): Remove.
2371 (SECTION_NAME_FORMAT): Redefine.
2372
2373 2011-05-19 Kai Tietz <ktietz@redhat.com>
2374
2375 * tree-cfg.c (verify_gimple_assign_binary): Barf on
2376 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
2377 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
2378
2379 2011-05-19 Anatoly Sokolov <aesok@post.ru>
2380 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2381
2382 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
2383
2384 2011-05-19 Richard Guenther <rguenther@suse.de>
2385
2386 PR middle-end/48985
2387 * tree-object-size.c (addr_object_size): If the pointed-to
2388 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
2389
2390 2011-05-19 Richard Guenther <rguenther@suse.de>
2391
2392 * gimple.c (gimple_types_compatible_p_1): Compare names of
2393 the types themselves.
2394 (iterative_hash_gimple_type): And hash them that way.
2395 (gimple_register_type_1): If we register a main variant properly
2396 initialize the leader to ourselves.
2397
2398 2011-05-19 Tom de Vries <tom@codesourcery.com>
2399
2400 PR target/45098
2401 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
2402 get_loop_invariant_expr_id.
2403 (get_loop_invariant_expr_id): Use get_expr_id.
2404 (parm_decl_cost): New function.
2405 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
2406 Improve bound cost estimation. Use different inv_expr_id for elim and
2407 express cases.
2408
2409 2011-05-19 Tom de Vries <tom@codesourcery.com>
2410
2411 PR target/45098
2412 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
2413 cost_base.cost == 0.
2414
2415 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
2416
2417 PR target/49002
2418 * config/i386/sse.md
2419 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
2420 load cast.
2421
2422 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2423
2424 PR tree-optimization/49039
2425 * tree-vrp.c (extract_range_from_binary_expr): For
2426 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
2427 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
2428
2429 2011-05-18 Tom de Vries <tom@codesourcery.com>
2430
2431 PR target/45098
2432 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
2433
2434 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
2435
2436 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
2437 (*tls_global_dynamic_64): Ditto.
2438 (*tls_local_dynamic_base_32_gnu): Ditto.
2439 (*tls_local_dynamic_base_64): Ditto.
2440 (tls_initial_exec_64_sun): Ditto.
2441
2442 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
2443
2444 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
2445 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
2446 bf592-none.
2447 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
2448 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
2449 * config/bfin/bfin.c (bfin_cpus): Add bf592.
2450 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
2451 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
2452 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
2453 * config/bfin/elf.h (LIB_SPEC): Add bf592.
2454
2455 2011-05-18 Joseph Myers <joseph@codesourcery.com>
2456
2457 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
2458 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
2459 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
2460 target_thread_pointer, arm_structure_size_boundary, struct
2461 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
2462 struct abi_name, arm_all_abis): Remove.
2463 (arm_option_override) Don't process most enumerated option values here.
2464 Don't process target_fpe_name here. Work with integer not string for
2465 structure size boundary; use separate diagnostics for each case.
2466 * config/arm/arm.h (enum float_abi_type, enum
2467 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
2468 to arm-opts.h.
2469 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
2470 arm_structure_size_boundary): Remove.
2471 * config/arm/arm.opt (mabi=): Use Enum and Init.
2472 (arm_abi_type): New Enum and EnumValue entries.
2473 (mfloat-abi=): Use Enum and Init.
2474 (float_abi_type): New Enum and EnumValue entries.
2475 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
2476 (mfp16-format=): Use Enum and Init.
2477 (arm_fp16_format_type): New Enum and EnumValue entries.
2478 (mstructure-size-boundary=): Use UInteger and Init.
2479 (mtp=): Use Enum and Init.
2480 (arm_tp_type): New Enum and EnumValue entries.
2481
2482 2011-05-18 Richard Guenther <rguenther@suse.de>
2483
2484 PR tree-optimization/49018
2485 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
2486 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
2487 gimple_has_side_effects.
2488
2489 2011-05-18 Richard Guenther <rguenther@suse.de>
2490
2491 * gimple.c (gimple_register_type_1): New function, split out from ...
2492 (gimple_register_type): ... here. Avoid infinite recursion.
2493
2494 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
2495
2496 PR tree-optimization/41881
2497 * tree-vectorizer.h (struct _loop_vec_info): Add new field
2498 reduction_chains along with a macro for its access.
2499 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
2500 (destroy_loop_vec_info): Free reduction chains.
2501 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
2502 (vect_is_slp_reduction): New function.
2503 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
2504 (vect_create_epilog_for_reduction): Support SLP reduction chains.
2505 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
2506 definition types for reduction chains.
2507 (vect_supported_load_permutation_p): Don't allow permutations for
2508 reduction chains.
2509 (vect_analyze_slp_instance): Support reduction chains.
2510 (vect_analyze_slp): Try to build SLP instance from reduction chains.
2511 (vect_get_constant_vectors): Handle reduction chains.
2512 (vect_schedule_slp_instance): Mark the first statement of the
2513 reduction chain as reduction.
2514
2515 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
2516
2517 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
2518 names for group elements access.
2519 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
2520 reduction chains as well. Remove data reference and interleaving
2521 related words from the fields names.
2522 * tree-vect-loop.c (vect_transform_loop): Use new names for group
2523 elements access.
2524 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
2525 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
2526 vect_update_interleaving_chain, vect_same_range_drs,
2527 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
2528 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
2529 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
2530 vect_analyze_group_access, vect_analyze_data_ref_access,
2531 vect_create_data_ref_ptr, vect_transform_strided_load,
2532 vect_record_strided_load_vectors): Likewise.
2533 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
2534 vect_model_load_cost, vectorizable_store, vectorizable_load,
2535 vect_remove_stores, new_stmt_vec_info): Likewise.
2536 * tree-vect-slp.c (vect_build_slp_tree,
2537 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
2538
2539 2011-05-18 Richard Guenther <rguenther@suse.de>
2540
2541 PR middle-end/48989
2542 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
2543 operand verification.
2544 (verify_gimple_assign_binary): Likewise.
2545 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
2546 to non-1-precision BOOLEAN_TYPEs.
2547
2548 2011-05-18 Tom de Vries <tom@codesourcery.com>
2549
2550 PR target/45098
2551 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
2552
2553 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2554
2555 PR tree-optimization/49000
2556 * tree-ssa.c (execute_update_addresses_taken): Call
2557 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
2558 be rewritten and decl has been marked for renaming, reset
2559 the debug stmt.
2560
2561 2011-05-17 Joseph Myers <joseph@codesourcery.com>
2562
2563 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
2564 enum_opts_set when testing if attributes have set -mfpmath=.
2565
2566 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
2567
2568 * config/mips/mips.c (mips_handle_option): Remove unused variable.
2569
2570 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
2571
2572 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
2573 info->entry with 0
2574 * tree-inline.c (maybe_inline_call_in_expr): Initialize
2575 id.transform_lang_insert_block with NULL.
2576
2577 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
2578
2579 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
2580 (output_fp_compare): Change args 3 and 4 to bool.
2581 (ix86_expand_call): Change arg 6 to bool.
2582 (ix86_attr_length_immediate_default): Change arg 2 to bool.
2583 (ix86_attr_length_vex_default): Change arg 3 to bool.
2584 * config/i386/i386.md: Update all uses.
2585 * config/i386/i386.c: Ditto.
2586 (ix86_flags_dependent): Change return type to bool.
2587
2588 2011-05-17 Richard Guenther <rguenther@suse.de>
2589
2590 * gimple.c (type_hash_pair_compare): Fix comparison.
2591
2592 2011-05-17 Richard Guenther <rguenther@suse.de>
2593
2594 * gimple.c (iterative_hash_gimple_type): Simplify singleton
2595 case some more, fix final hash value of the non-singleton case.
2596
2597 2011-05-17 Richard Guenther <rguenther@suse.de>
2598
2599 PR bootstrap/49013
2600 Revert
2601 2011-05-16 Richard Guenther <rguenther@suse.de>
2602
2603 * gimple.c (gimple_types_compatible_p_1): Use names of the
2604 type itself, not its main variant.
2605 (iterative_hash_gimple_type): Likewise.
2606
2607 2011-05-17 Richard Guenther <rguenther@suse.de>
2608
2609 * gimple.c (gimple_register_canonical_type): Use the main-variant
2610 leader for computing the canonical type.
2611
2612 2011-05-17 Nick Clifton <nickc@redhat.com>
2613
2614 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
2615 moves.
2616
2617 * config/rx/rx.md: Add peephole to remove redundant extensions
2618 after loads.
2619 (bitset_in_memory): Use rx_restricted_mem_operand.
2620 (bitinvert_in_memory): Likewise.
2621 (bitclr_in_memory): Likewise.
2622
2623 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
2624 Nick Clifton <nickc@redhat.com>
2625
2626 * config/rx/rx.md: Add peepholes to match a register move followed
2627 by a comparison of the moved register. Replace these with an
2628 addition of zero that does both actions in one instruction.
2629
2630 2011-05-17 Jakub Jelinek <jakub@redhat.com>
2631
2632 PR target/48986
2633 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
2634 predicate to allow CONST_INT.
2635 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
2636
2637 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2638
2639 * opts-common.c (opt_enum_arg_to_value): New.
2640 * opts.h (opt_enum_arg_to_value): Declare.
2641 * config/i386/i386.opt (fpmath): Remove.
2642 (mfpmath=): Use Enum, Init and Save.
2643 (fpmath_unit): New Enum and EnumValue entries.
2644 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
2645 name for function fpmath state.
2646 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
2647 * config/i386/i386.c: Include diagnostic.h.
2648 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
2649 (ix86_target_string): Take enum fpmath_unit value instead of string.
2650 (ix86_debug_options): Update call to ix86_target_string.
2651 (ix86_option_override_internal): Don't process fpmath strings here.
2652 (x86_function_specific_save, ix86_function_specific_restore):
2653 Don't handle fpmath state specially.
2654 (ix86_function_specific_print): Pass fpmath state to
2655 ix86_target_string instead of printing in this function.
2656 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
2657 Handle enum attributes.
2658 (IX86_ATTR_ENUM, ix86_opt_enum): New.
2659 (ix86_valid_target_attribute_tree): Update option_strings
2660 handling. Handle fpmath as enum option.
2661 (ix86_can_inline_p): Update field names for function fpmath state.
2662 (ix86_expand_builtin): Update call to ix86_target_string.
2663 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
2664 (ix86_fpmath): Remove.
2665 * config/i386/t-i386 (i386.o): Update dependencies.
2666
2667 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2668
2669 PR preprocessor/48677
2670 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
2671 from decoded_options[0], not from itself.
2672
2673 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
2674
2675 * config/i386/constraints.md (z): New constraint.
2676 * config/i386/i386.c (c): New mode attribute.
2677 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
2678 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
2679 constraint for operand 0.
2680 (*call_vzeroupper): Ditto.
2681 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
2682 (*call_rex64_ms_sysv_vzeroupper): Ditto.
2683 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
2684 Use "lzm" constraint for operand 0.
2685 (*call_pop_vzeroupper): Ditto.
2686 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
2687 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
2688 constraint for operand 0.
2689 (*sibcall_vzeroupper): Ditto.
2690 (*sibcall_rex64_ms_sysv): Ditto.
2691 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
2692 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
2693 *sibcall_pop_1. Use "Uz" constraint for operand 0.
2694 (*sibcall_pop_vzeroupper): Ditto.
2695 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
2696 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
2697 mode iterator. Use "<c>zm" constraint for operand 1.
2698 (*call_value_vzeroupper): Ditto.
2699 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
2700 for operand 1.
2701 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
2702 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
2703 *call_value_pop_1. Use "lzm" constraint for operand 1.
2704 (*call_value_pop_vzeroupper): Ditto.
2705 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
2706 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
2707 mode iterator. Use "Uz" constraint for operand 1.
2708 (*sibcall_value_vzeroupper): Ditto.
2709 (*sibcall_value_rex64_ms_sysv): Ditto.
2710 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
2711 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
2712 constraint for operand 1.
2713 (*sibcall_value_pop_vzeroupper): Ditto.
2714 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
2715 and "z" constraint for operand 2.
2716 (*tls_global_dynamic_32_gnu): Ditto.
2717 (*tls_local_dynamic_base_32_gnu): Ditto.
2718 (*tls_local_dynamic_base_64): Ditto.
2719 (*tls_local_dynamic_32_once): Ditto.
2720 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
2721 Update all callers.
2722 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
2723
2724 2011-05-16 Richard Guenther <rguenther@suse.de>
2725
2726 * gimple.c (gimple_types_compatible_p_1): Use names of the
2727 type itself, not its main variant.
2728 (iterative_hash_gimple_type): Likewise.
2729
2730 2011-05-16 Richard Guenther <rguenther@suse.de>
2731
2732 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
2733 always visit pointer target and function result and argument types.
2734
2735 2011-05-16 Jason Merrill <jason@redhat.com>
2736
2737 PR c++/48999
2738 * tree-inline.c (copy_statement_list): Put back recursion.
2739
2740 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
2741
2742 PR target/27663
2743 PR target/41076
2744 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
2745 * config/avr/avr.md ("*ior<mode>qi.byte0",
2746 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
2747
2748 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
2749
2750 PR target/45099
2751 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
2752 register is needed for a function argument.
2753
2754 2011-05-16 Richard Guenther <rguenther@suse.de>
2755
2756 * gimple.c (struct type_hash_pair): New type.
2757 (type_hash_pair_compare): New function.
2758 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
2759
2760 2011-05-16 Revital Eres <revital.eres@linaro.org>
2761
2762 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
2763
2764 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
2765
2766 * config/i386/i386.md (floating point move splitters): Fix
2767 usage of standard_80387_constant_p.
2768 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
2769
2770 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
2771
2772 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
2773
2774 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
2775
2776 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
2777 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
2778 (tree_ssa_lim_finalize): Likewise.
2779
2780 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
2781
2782 * config/i386/constraint.md (Yd, Yx): New register constraints.
2783 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
2784 Yd conditional register constraint.
2785 (*movtf_internal): Use standard_sse_constant_opcode.
2786 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
2787 Yx conditional register constraint.
2788 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
2789 Yd conditional register constraint. Use standard_sse_constant_p to
2790 check for valid SSE constants and call standard_sse_constant_opcode to
2791 output SSE insn.
2792 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
2793 constants and call standard_sse_constant_opcode to output SSE insn.
2794 * config/i386/i386.c (ix86_option_ovverride_internal): Set
2795 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
2796 optimize_size is set.
2797 (standard_sse_constant_opcode): Output conditional AVX insn templates.
2798
2799 2011-05-14 Tobias Burnus <burnus@net-b.de>
2800
2801 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
2802
2803 2011-05-13 Martin Jambor <mjambor@suse.cz>
2804
2805 * ipa-prop.c (ipa_cst_from_jfunc): New function.
2806 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
2807 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
2808 (evaluate_conditions_for_ipcp_clone): Removed.
2809 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
2810 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
2811 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
2812
2813 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
2814
2815 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
2816 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
2817 lieu of MAY_HAVE_DEBUG_STMTS.
2818 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
2819 debug statements if !MAY_HAVE_DEBUG_STMTS.
2820
2821 2011-05-13 Martin Thuresson <martint@google.com>
2822
2823 PR gcov-profile/47793
2824 * libgcov.c (gcov_exit): Support relative profile paths.
2825 * doc/invoke.texi (-fprofile-dir): Update for above change.
2826
2827 2011-05-13 Richard Guenther <rguenther@suse.de>
2828
2829 * gimple.c (gimple_canonical_types_compatible_p): Do not use
2830 type-pair caching, do not compare hashes.
2831
2832 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
2833
2834 PR middle-end/48965
2835 * tree-cfg.c (edge_to_cases_cleanup): Return true.
2836 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
2837
2838 2011-05-13 Kai Tietz <ktietz@redhat.com>
2839
2840 * gimplify.c (gimplify_expr): Make sure operand is boolified.
2841 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
2842 compatible type for TRUTH_NOT_EXPR.
2843
2844 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
2845
2846 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
2847 (ix86_hard_regno_mode_ok): Change return value to bool. Use
2848 can_create_pseudo_p ().
2849
2850 2011-05-13 Richard Guenther <rguenther@suse.de>
2851
2852 PR lto/48978
2853 * gimple.c (iterative_hash_gimple_type): Revert change in
2854 pointer target and function result and argument hashing.
2855
2856 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
2857
2858 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
2859 (*movxf_internal_nointeger): Ditto.
2860 (*movdf_internal_rex64): Ditto.
2861 (*movdf_internal): Ditto.
2862 (*movdf_internal_nointeger): Ditto.
2863 (*movsf_internal): Ditto.
2864 (sincos splitters): Use can_create_pseudo ().
2865
2866 2011-05-13 Joseph Myers <joseph@codesourcery.com>
2867
2868 * config/i386/i386-opts.h: New.
2869 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
2870 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
2871 ix86_section_threshold): Remove.
2872 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
2873 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
2874 OPT_mbranch_cost_.
2875 (ix86_option_override_internal): Don't decode strings for options
2876 other than -march=, -mtune= and -mfpmath=. Don't allow for
2877 __attribute__ uses in remaining diagnostics for options with
2878 string arguments. Don't check for integer arguments being negative.
2879 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
2880 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
2881 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
2882 ix86_branch_cost, ix86_section_threshold): Remove.
2883 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
2884 HeaderInclude.
2885 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
2886 but not Var.
2887 (masm=): Use Enum and Init.
2888 (asm_dialect): New Enum and EnumValue entries.
2889 (mbranch-cost=): Use UInteger.
2890 (mlarge-data-threshold=): Use UInteger and Init.
2891 (mcmodel=): Use Enum and Init.
2892 (cmodel): New Enum and EnumValue entries.
2893 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
2894 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
2895 mregparm=): Use UInteger.
2896 (mstringop-strategy=): Use Enum and Init.
2897 (stringop_alg): New Enum and EnumValue entries.
2898 (mtls-dialect=): Use Enum and Init.
2899 (tls_dialect): New Enum and EnumValue entries.
2900 (mabi=): Use Enum and Init.
2901 (calling_abi): New Enum and EnumValue entries.
2902 (mveclibabi=): Use Enum and Init.
2903 (ix86_veclibabi): New Enum and EnumValue entries.
2904
2905 2011-05-13 Nick Clifton <nickc@redhat.com>
2906
2907 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
2908 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
2909
2910 2011-05-13 Kai Tietz <ktietz@redhat.com>
2911
2912 PR middle-end/48984
2913 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
2914 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
2915 (gimple_boolify): Check for cast for boolean_type_node instead for
2916 BOOLEAN_TYPE.
2917
2918 2011-05-13 Richard Guenther <rguenther@suse.de>
2919
2920 PR tree-optimization/48172
2921 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
2922 multiplying by number of iterations for equal step.
2923 (vect_create_cond_for_alias_checks): Likewise.
2924
2925 2011-05-13 Andreas Schwab <schwab@redhat.com>
2926
2927 * configure.ac: Use AS_HELP_STRING throughout.
2928 * configure: Regenerate.
2929
2930 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
2931
2932 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
2933 (ix86_emit_restore_regs_using_mov): Likewise.
2934 (ix86_emit_restore_sse_regs_using_mov): Likewise.
2935
2936 2011-05-12 Anatoly Sokolov <aesok@post.ru>
2937
2938 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
2939 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
2940 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
2941 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
2942 RTX_OK_FOR_OLO10_P): ...here.
2943 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
2944 SYMBOLIC_CONST.
2945
2946 2011-05-12 Kai Tietz <ktietz@redhat.com>
2947
2948 * gimplify.c (gimple_boolify): Re-boolify expression
2949 arguments even if expression type is of kind BOOLEAN_TYPE.
2950 (gimplify_boolean_expr): Removed.
2951 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
2952 and XOR. Additional take care that we keep expression's type.
2953 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
2954 of TRUTH_AND|OR|XOR_EXPR.
2955
2956 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2957
2958 PR tree-optimization/48975
2959 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
2960 on all bbs here and free and clear ifc_bbs at the end.
2961
2962 2011-05-12 Richard Guenther <rguenther@suse.de>
2963
2964 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
2965 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
2966 until after simple checks.
2967 (gimple_types_compatible_p): Likewise.
2968 (iterative_hash_gimple_type): Always hash pointer targets
2969 and function return and argument types.
2970 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
2971 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
2972 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
2973 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
2974 completely in the simple compare section.
2975 (gimple_register_canonical_type): Query the cache again after
2976 registering.
2977
2978 2011-05-12 Richard Guenther <rguenther@suse.de>
2979
2980 PR tree-optimization/48172
2981 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
2982 the number of iterations from the segment size calculation.
2983 (vect_create_cond_for_alias_checks): Adjust.
2984
2985 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2986
2987 PR debug/48967
2988 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
2989 if validate_subreg fails.
2990
2991 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
2992
2993 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
2994 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
2995 early.
2996
2997 2011-05-12 DJ Delorie <dj@redhat.com>
2998
2999 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
3000 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
3001 created builtin into rx_builtins array.
3002 (rx_builtin_decl): New function.
3003 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
3004
3005 2011-05-12 DJ Delorie <dj@redhat.com>
3006 Nick Clifton <nickc@redhat.com>
3007
3008 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
3009 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
3010 (rx_is_legitimate_address): Add pre-decrement and post-increment
3011 addressing in HImode and QImode. Fix test for out of range
3012 REG+INT addressing.
3013 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
3014 (rx_align_for_label): Test label before extracting its usage count.
3015 (rx_adjust_insn_lengths): Fix selection of insn codes.
3016 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
3017
3018 2011-05-11 Jason Merrill <jason@redhat.com>
3019
3020 * tree.c (type_hash_canon): Use struct tree_type_non_common.
3021
3022 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
3023
3024 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
3025 reindent the subsequent block.
3026
3027 2011-05-11 Satoru Takabayashi <satorux@google.com>
3028 Paul Pluzhnikov <ppluzhnikov@google.com>
3029
3030 * doc/install.texi (Configuration): Document --with-linker-hash-style.
3031 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
3032 * config.in: Add LINKER_HASH_STYLE.
3033 * configure.ac: Add --with-linker-hash-style.
3034 * configure: Regenerate.
3035
3036 2011-05-11 Richard Guenther <rguenther@suse.de>
3037
3038 PR middle-end/48964
3039 * gimple.c (iterative_hash_canonical_type): Fix typo.
3040
3041 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
3042
3043 * config/i386/i386.c (legitimize_tls_address)
3044 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
3045 expanders directly for TARGET_GNU2_TLS. Determine pic and
3046 __tls_get_addr symbol reference here. Update call to
3047 gen_tls_global_dynamic_{32,64} for added arguments.
3048 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
3049 expanders directly for TARGET_GNU2_TLS. Determine
3050 __tls_get_addr symbol reference here. Update call to
3051 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
3052 unique UNSPEC REG_EQUIV to libcall block.
3053 (ix86_tls_get_addr): Declare static.
3054 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
3055 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
3056 Do not determine pic and __tls_get_addr symbol reference here. Do not
3057 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
3058 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
3059 (tls_global_dynamic_64): Add operand 2. Do not determine
3060 __tls_get_addr symbol reference here. Do not call
3061 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
3062 (tls_local_dynamic_base64): Ditto for operand 1.
3063
3064 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
3065
3066 * function.c (expand_function_start): Initialize stack_check_probe_note
3067 only if the generic stack checking mechanism is used.
3068
3069 2011-05-11 Richard Guenther <rguenther@suse.de>
3070
3071 PR tree-optimization/15256
3072 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
3073 (A & B) | C, combine (A op CST1) op CST2.
3074 (tree_ssa_forward_propagate_single_use_vars): Only bother to
3075 visit assigns that have uses.
3076
3077 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
3078
3079 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
3080 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
3081 (unpack_ts_type_common_value_fields): ...this. Update comment.
3082 (unpack_value_fields): Adjust for renaming.
3083 (lto_input_ts_type_tree_pointers): Split into...
3084 (lto_input_ts_type_common_tree_pointer): ...this and...
3085 (lto_input_ts_type_non_common_tree_pointers): ...this.
3086 (lto_input_tree_pointers): Adjust for above split.
3087 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
3088 (pack_ts_type_common_value_fields): ...this. Update comment.
3089 (lto_output_ts_type_tree_pointers): Split into...
3090 (lto_output_ts_type_common_tree_pointers): ...this and...
3091 (lto_output_ts_type_non_common_tree_pointers): ...this.
3092 (lto_output_tree_pointers): Adjust for above split.
3093 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
3094 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
3095 * stor-layout.c (vector_type_mode): Adjust location of mode field.
3096 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
3097 Define.
3098 (struct tree_type): Split into...
3099 (struct tree_type_common: ...this and...
3100 (struct tree_type_with_lang_specific): ...this and...
3101 (struct tree_type_non_common): ...this. Adjust accessor macros
3102 accordingly.
3103 (TYPE_VALUES_RAW): Define.
3104 (union tree_node): Update for above changes.
3105 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
3106 TS_TYPE_NON_COMMON.
3107 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
3108 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
3109 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
3110 * treestructu.def (TS_TYPE): Remove.
3111 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
3112 Define.
3113
3114 2011-05-11 Jakub Jelinek <jakub@redhat.com>
3115
3116 PR debug/48159
3117 * tree-ssa.c (reset_debug_uses): New function.
3118 * tree-flow.h (reset_debug_uses): New prototype.
3119 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
3120 * tree-loop-distribution.c (generate_loops_for_partition): Call
3121 reset_debug_uses on the stmts that will be removed. Keep around
3122 all debug stmts, don't count them as bits in partition bitmap.
3123 (generate_builtin): Don't count debug stmts or labels as bits in
3124 partition bitmap.
3125
3126 2011-05-11 Richard Guenther <rguenther@suse.de>
3127
3128 * gimple.c (gimple_type_hash_1): Merge with ...
3129 (gimple_type_hash): ... this.
3130 (gtc_visit): Remove mode parameter and simplify accordingly.
3131 (gimple_types_compatible_p_1): Likewise.
3132 (gimple_types_compatible_p): Likewise.
3133 (iterative_hash_gimple_type): Likewise.
3134 (visit): Likewise.
3135 (gimple_type_eq): Adjust.
3136
3137 2011-05-11 Revital Eres <revital.eres@linaro.org>
3138
3139 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
3140 enters the branch create an anti edge in the opposite direction
3141 to prevent the creation of reg-moves.
3142 * modulo-sched.c: Adjust comment to reflect the fact we are
3143 scheduling closing branch.
3144 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
3145 (stage_count): New field in struct partial_schedule.
3146 (calculate_stage_count): New function.
3147 (normalize_sched_times): Rename to reset_sched_times and handle
3148 incrementing the sched time of the nodes by a constant value
3149 passed as parameter.
3150 (duplicate_insns_of_cycles): Skip closing branch.
3151 (sms_schedule_by_order): Schedule closing branch.
3152 (ps_insn_find_column): Handle closing branch.
3153 (sms_schedule): Call reset_sched_times and adjust the code to
3154 support scheduling of the closing branch.
3155 (ps_insert_empty_row): Update calls to normalize_sched_times
3156 and rotate_partial_schedule functions.
3157
3158 2011-05-11 Richard Guenther <rguenther@suse.de>
3159
3160 PR middle-end/48953
3161 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
3162
3163 2011-05-11 Joseph Myers <joseph@codesourcery.com>
3164
3165 * opts.c (finish_options): Move warning settings from process_options.
3166 * toplev.c (process_options): Move warning settings to finish_options.
3167
3168 2011-05-11 Richard Guenther <rguenther@suse.de>
3169
3170 PR tree-optimization/18041
3171 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
3172 (simplify_bitwise_binary): ... this. Handle operand conversions
3173 by applying them to the result instead.
3174 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
3175
3176 2011-05-11 Richard Guenther <rguenther@suse.de>
3177
3178 * gimple.c (gimple_canonical_types_compatible_p): Split out
3179 from gimple_types_compatible_p and friends. Do not recurse
3180 to pointed-to types.
3181 (gimple_canonical_type_eq): Use it.
3182 (iterative_hash_canonical_type): Split out from
3183 iterative_hash_gimple_type and friends. Do not recurse
3184 to pointed-to types.
3185 (gimple_canonical_type_hash): Use it, allocate the hash here.
3186
3187 2011-05-11 Revital Eres <revital.eres@linaro.org>
3188
3189 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
3190 recognizing doloop.
3191
3192 2011-05-11 Revital Eres <revital.eres@linaro.org>
3193
3194 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
3195 instead of PREV_INSN.
3196
3197 2011-05-11 Revital Eres <revital.eres@linaro.org>
3198
3199 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
3200 * loop-doloop.c (doloop_condition_get): Likewise.
3201 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
3202 (doloop_end): New.
3203 * config/arm/arm.md (*addsi3_compare0): Remove "*".
3204
3205 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
3206
3207 * tree.def (CASE_LABEL_EXPR): Add an operand.
3208 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
3209
3210 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3211
3212 * c-decl.c (c_override_global_bindings_to_false): Remove.
3213 (global_bindings_p): Don't check
3214 c_override_global_bindings_to_false.
3215 * c-tree.h (c_override_global_bindings_to_false): Remove.
3216 * c-typeck.c (composite_type): Don't set
3217 c_override_global_bindings_to_false.
3218
3219 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
3220
3221 PR target/48857, 48495
3222 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
3223 (VSX_MODE): Ditto.
3224 (VSX_MOVE_MODE): Ditto.
3225 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
3226 VSX vector types. Add V2DImode.
3227 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
3228 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
3229 (MODES_TIEABLE_P): Ditto.
3230
3231 * config/rs6000/rs6000.c (rs6000_emit_move): Use
3232 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
3233 VSX_VECTOR_MODE.
3234 (init_cumulative_args): Ditto.
3235 (rs6000_function_arg_boundary): Ditto.
3236 (rs6000_function_arg_advance_1): Ditto.
3237 (rs6000_function_arg): Ditto.
3238 (rs6000_function_ok_for_sibcall): Ditto.
3239 (emit_frame_save): Ditto.
3240 (rs6000_function_value): Ditto.
3241 (rs6000_libcall_value): Ditto.
3242
3243 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3244
3245 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
3246 i386/darwin-lib.h to $libgcc_tm_file.
3247 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
3248
3249 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3250
3251 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
3252
3253 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3254
3255 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
3256 * config/rs6000/rs6000-tables.opt: New file (generated).
3257 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
3258 rs6000/rs6000-tables.opt to extra_options.
3259 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
3260 * config/rs6000/rs6000.c (rs6000_select): Remove.
3261 (processor_target_table): Move contents to rs6000-cpus.def.
3262 (darwin_rs6000_override_options): Check
3263 global_options_set.x_rs6000_cpu_index instead of
3264 rs6000_select[1].string.
3265 (rs6000_option_override_internal): Likewise.
3266 (rs6000_handle_option): Don't assert that global structures are in
3267 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
3268 (rs6000_default_cpu): New variable.
3269 (rs6000_file_start): Set it instead of local default_cpu. Check
3270 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
3271 global_options_set.x_rs6000_tune_index instead of rs6000_select.
3272 (rs6000_darwin_file_start): Check rs6000_default_cpu and
3273 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
3274 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
3275 rs6000_select): Remove.
3276 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
3277 Remove.
3278 (mcpu=, mtune=): Use Var, Init, Enum and Save.
3279 * config/rs6000/t-rs6000
3280 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
3281 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
3282 global_options_set.x_rs6000_cpu_index instead of
3283 rs6000_select[1].string.
3284 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
3285 global_options_set.x_rs6000_cpu_index instead of
3286 rs6000_select[1].string.
3287
3288 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3289
3290 * config.gcc (libgcc_tm_file): Define instead of including files
3291 from ../../libgcc/config/ in tm_file.
3292 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
3293 * configure: Regenerate.
3294 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
3295 libgcc_tm.h, cs-libgcc_tm.h): New.
3296 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
3297 (clean): Remove libgcc_tm.h.
3298 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
3299 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
3300 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
3301
3302 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
3303
3304 PR target/48896
3305 * config/avr/avr.c (avr_ret_register): Return unsigned int
3306 instead of int.
3307 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
3308 it to avr_libcall_value.
3309 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
3310 expand_expr.
3311 (avr_expand_binop_builtin): Ditto.
3312 (avr_expand_unop_builtin): Ditto.
3313
3314 2011-05-10 DJ Delorie <dj@redhat.com>
3315
3316 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
3317 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
3318 * config/rx/rx.c (rx_align_for_label): Add label and
3319 uses_threshold parameters. Do not align when the label is not
3320 used enough.
3321 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
3322
3323 2011-05-10 Richard Guenther <rguenther@suse.de>
3324
3325 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
3326 a series of conversions and apply foldings similar to what
3327 fold-const does.
3328 (tree_ssa_forward_propagate_single_use_vars): Call it.
3329
3330 2011-05-10 Jakub Jelinek <jakub@redhat.com>
3331
3332 PR tree-optimization/48611
3333 PR tree-optimization/48794
3334 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
3335 referenced from RESX or EH_DISPATCH arguments.
3336
3337 PR debug/48928
3338 * dfp.c (decimal_to_decnumber): Handle conversion from
3339 dconst{1,2,m1,half}.
3340
3341 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3342
3343 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
3344 for !flag_prefer_avx128.
3345 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
3346
3347 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
3348
3349 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
3350 (fold_ternary_loc): Use expr_location_or.
3351
3352 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
3353
3354 PR debug/48853
3355 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
3356 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
3357 Pmode and mem_mode is not VOIDmode.
3358
3359 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
3360
3361 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
3362 TYPE_QUAL_RESTRICT): Convert to enum.
3363
3364 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3365
3366 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
3367 (const_pow2_1_to_8_operand): Ditto.
3368 (const_pow2_1_to_128_operand): Ditto.
3369 (const_pow2_1_to_32768_operand): Ditto.
3370 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
3371 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
3372 in insn constraint to check integer value of operand 3.
3373 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
3374
3375 (PINSR_MODE): New mode iterator.
3376 (sse2p4_1): New mode attribute.
3377 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
3378 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
3379 iterator. Use const_int_operand instead of
3380 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
3381 exact_log2 in insn constraint to check integer value of operand 3.
3382
3383 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3384
3385 * config/i386/sse.md (blendbits): Remove mode attribute.
3386 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
3387 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
3388 Check integer value of operand 3 in insn constraint.
3389
3390 2011-05-09 Richard Guenther <rguenther@suse.de>
3391
3392 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
3393 for diagnostics.
3394 (lto_symtab_merge): Likewise. Do not register types here.
3395 (lto_symtab_merge_decls_2): Likewise.
3396 (lto_symtab_merge_decls_1): Likewise.
3397 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
3398 * gimple.c (enum gtc_mode): Declare.
3399 (gimple_types_compatible_p): Make static.
3400
3401 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3402
3403 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
3404 temporary register to match Pmode.
3405
3406 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3407
3408 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
3409 and *vec_concatv4si_1_avx.
3410
3411 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3412
3413 PR rtl-optimization/48927
3414 * ira-conflicts.c (commutative_constraint_p): Use
3415 recog_data.alternative_enabled_p to disable alternatives where
3416 "enabled" attribute is false.
3417 (get_dup_num): Ditto.
3418 * ira-lives.c (single_reg_class): Ditto.
3419 (ira_implicitly_set_insn_hard_regs): Ditto.
3420
3421 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
3422
3423 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
3424 (dataflow_set_preserve_mem_locs): Likewise.
3425
3426 2011-05-09 Philipp Thomas <pth@suse.de>
3427
3428 * config/mep/mep.c (mep_validate_vliw): Syntax description
3429 should not be translated.
3430
3431 2011-05-09 Joseph Myers <joseph@codesourcery.com>
3432
3433 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
3434 * config/mips/mips-tables.opt: New file (generated).
3435 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
3436 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
3437 MIPS_ARCH_OPTION_NATIVE): Define.
3438 * config/mips/mips.c (mips_cpu_info_table): Move contents to
3439 mips-cpus.def.
3440 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
3441 mips_parse_cpu): Remove.
3442 (mips_cpu_info_from_opt, mips_default_arch): New.
3443 (mips_handle_option): Don't assert that global structures are in
3444 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
3445 (mips_option_override): Use new variables and functions to set
3446 state of these options. Use strcmp to check for individual CPU names.
3447 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
3448 definition.
3449 * config/mips/mips.opt (march=): Use ToLower and Enum.
3450 (mips): Use ToLower, Enum and Var.
3451 (mtune=): Use ToLower and Enum.
3452 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
3453
3454 2011-05-08 Jan Hubicka <jh@suse.cz>
3455
3456 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
3457 Arrange type pairs to be UID ordered.
3458 (gimple_lookup_type_leader): Make inline.
3459
3460 2011-05-09 Nick Clifton <nickc@redhat.com>
3461
3462 PR target/48899
3463 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
3464 PROCESSOR_DEFAULT.
3465
3466 PR target/48897
3467 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
3468 variable 's'.
3469
3470 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
3471
3472 * combine.c (simplify_comparison): Abstract out parts into...
3473 (simplify_compare_const): ... new function.
3474 (try_combine): Generalize parallel arithmetic/compare combining
3475 to call simplify_compare_const() and CANONICALIZE_COMPARE().
3476
3477 2011-05-08 Jan Hubicka <jh@suse.cz>
3478
3479 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
3480 (cgraph_create_virtual_clone): Call hooks once virtual clone
3481 is finished.
3482 * cgraph.h (cgraph_clone_node): Update prototype.
3483 * ipa-cp.c (ipcp_estimate_growth): Use
3484 estimate_ipcp_clone_size_and_time.
3485 * ipa-inline-transform.c (clone_inlined_nodes): Update.
3486 * lto-cgraph.c (input_node): Update.
3487 * ipa-inline.c (recursive_inlining): Update.
3488 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
3489 (evaluate_conditions_for_known_args): Break out from ...
3490 (evaluate_conditions_for_edge): ... here.
3491 (evaluate_conditions_for_ipcp_clone): New function.
3492 (inline_node_duplication_hook): Update clone summary based
3493 on parameter map.
3494 (estimate_callee_size_and_time): Rename to ...
3495 (estimate_node_size_and_time): take NODE instead of EDGE;
3496 take POSSIBLE_TRUTHS as argument.
3497 (estimate_callee_size_and_time): Update.
3498 (estimate_ipcp_clone_size_and_time): New function.
3499 (do_estimate_edge_time): Update.
3500
3501 2011-05-08 Richard Guenther <rguenther@suse.de>
3502
3503 PR middle-end/48908
3504 PR middle-end/48905
3505 * expmed.c (expand_shift_1): Compute adjusted constant shift
3506 amount manually.
3507
3508 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
3509
3510 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
3511
3512 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
3513
3514 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
3515
3516 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
3517
3518 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
3519
3520 2011-05-07 Jan Hubicka <jh@suse.cz>
3521
3522 * ipa-inline-transform.c (inline_call): Account when program size
3523 decreases.
3524 * ipa-inline.c (relative_time_benefit): New function.
3525 (edge_badness): Reorganize to be power 2 based; fix thinko when
3526 computing badness for negative growth; update comments to match
3527 reality; better dumps.
3528
3529 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
3530
3531 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
3532 type to bool and adjust comment.
3533 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
3534 (fold_mathfn_compare): Remove calls to global_bindings_p.
3535 (fold_inf_compare): Likewise.
3536 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
3537 * c-tree.h (global_bindings_p): Adjust prototype.
3538 * c-decl.c (global_bindings_p): Return bool and simplify.
3539
3540 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
3541
3542 PR tree-optimization/48837
3543 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
3544 when accumulator transformation is performed.
3545
3546 2011-05-06 Jan Hubicka <jh@suse.cz>
3547
3548 * i386.h (ix86_tune_indices): Add
3549 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
3550 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
3551 * i386.c (initial_ix86_tune_features): Add
3552 X86_SOFTARE_PREFETCHING_BENEFICIAL.
3553 (software_prefetching_beneficial_p): Remove predicate.
3554 (ix86_option_override_internal): Use new macro.
3555
3556 2011-05-06 Jan Hubicka <jh@suse.cz>
3557
3558 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
3559
3560 2011-05-06 Jan Hubicka <jh@suse.cz>
3561
3562 * cgraph.c (cgraph_add_thunk): Create real function node instead
3563 of alias node; finalize it and mark needed/reachale; arrange visibility
3564 to be right and add it into the corresponding same comdat group list.
3565 (dump_cgraph_node): Dump thunks.
3566 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
3567 cgraph_function_with_gimple_body_p,
3568 cgraph_first_function_with_gimple_body,
3569 cgraph_next_function_with_gimple_body): New functions.
3570 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
3571 New macros.
3572 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
3573 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3574 * cgraphunit.c (cgraph_finalize_function): Only look into possible
3575 devirtualization when optimizing.
3576 (verify_cgraph_node): Verify thunks.
3577 (cgraph_analyze_function): Analyze thunks.
3578 (cgraph_mark_functions_to_output): Output thunks only in combination
3579 with function they are assigned to.
3580 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
3581 alias into normal node.
3582 (assemble_thunks): New functoin.
3583 (cgraph_expand_function): Use it.
3584 * lto-cgraph.c (lto_output_node): Stream thunks.
3585 (input_overwrite_node): Stream in thunks.
3586 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
3587 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
3588 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
3589 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
3590 (inline_analyze_function): Do not care about thunk jump functions.
3591 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
3592 * ipa-prop.c (ipa_prop_write_jump_functions): Use
3593 cgraph_function_with_gimple_body_p.
3594 * passes.c (do_per_function_toporder): Use
3595 cgraph_function_with_gimple_body_p.
3596 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3597 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
3598 (function_called_by_processed_nodes_p): Likewise.
3599
3600 2011-05-06 Joseph Myers <joseph@codesourcery.com>
3601
3602 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
3603 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
3604 entries.
3605 (mabi=): Replace with separate entries for mabi=altivec,
3606 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
3607 mabi=ieeelongdouble and mabi=ibmlongdouble.
3608 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
3609 check for -mabi=spe without SPE ABI support here.
3610 (rs6000_handle_option): Replace OPT_mabi_ handling with
3611 OPT_mabi_altivec and OPT_mabi_spe handling.
3612
3613 2011-05-06 Cary Coutant <ccoutant@google.com>
3614
3615 * dwarf2out.c (contains_subprogram_definition): New function.
3616 (should_move_die_to_comdat): Call it.
3617
3618 2011-05-06 Jeff Law <law@redhat.com>
3619
3620 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
3621 remove_ctrl_stmt_and_useless_edges.
3622 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
3623 (fixup_template_block, thread_single_edge): Likewise.
3624 (mark_threaded_blocks): Use THREAD_TARGET.
3625
3626 2011-05-06 Alan Modra <amodra@gmail.com>
3627
3628 PR target/48900
3629 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
3630 const0_rtx as the arg to the dummy __tls_get_addr libcall.
3631
3632 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
3633
3634 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
3635 constraint modifier to "r".
3636
3637 2011-05-06 Joseph Myers <joseph@codesourcery.com>
3638
3639 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
3640 fall through for OPT_mcmodel_.
3641
3642 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3643
3644 * config/s390/s390.c (s390_asm_trampoline_template): Comment
3645 instruction sizes.
3646 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
3647
3648 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3649
3650 PR target/47930
3651 * config/arm/arm.opt (marm): Document it.
3652 (mthumb): Reject negative variant.
3653
3654 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
3655
3656 PR target/48898
3657 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
3658 Fix typo in "ccvt" variable name.
3659
3660 2011-05-06 Tristan Gingold <gingold@adacore.com>
3661
3662 PR target/48895
3663 * config/vms/vms-ar.c (main): Remove cwd variable.
3664
3665 2011-05-06 Jakub Jelinek <jakub@redhat.com>
3666
3667 PR debug/48902
3668 * var-tracking.c (prepare_call_arguments): Move else before #endif.
3669
3670 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
3671
3672 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
3673 * gimplify.c (gimplify_switch_expr): Likewise.
3674 * omp-low.c (expand_omp_sections): Likewise.
3675 * tree-eh.c (lower_try_finally_switch): Likewise.
3676 (lower_eh_dispatch): Likewise.
3677 * tree.h (build_case_label): Declare.
3678 * tree.c (build_case_label): Define.
3679
3680 2011-05-05 Jason Merrill <jason@redhat.com>
3681
3682 PR c++/40975
3683 * tree-inline.c (copy_tree_r): Use copy_statement_list.
3684 (copy_statement_list): Don't recurse.
3685 * stor-layout.c (copy_self_referential_tree_r): Don't allow
3686 STATEMENT_LIST.
3687
3688 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3689
3690 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
3691 through from -mfpu= handling.
3692 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
3693
3694 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
3695
3696 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
3697 POST_MODIFY.
3698
3699 2011-05-05 Steve Ellcey <sje@cup.hp.com>
3700
3701 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
3702 for 11.31.
3703 (hppa[12]*-*-hpux11*): Ditto.
3704 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
3705 * config/ia64/hpux-unix2003.h: New.
3706 * config/pa/pa-hpux1131.opt: New.
3707 * config/pa/pa-hpux1131.h: New.
3708 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
3709 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
3710 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
3711
3712 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3713
3714 PR debug/48853
3715 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
3716 instead of mode as 3rd argument to recursive call.
3717 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
3718 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
3719 VOIDmode.
3720 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
3721 don't give up if mode is Pmode and mem_mode is not VOIDmode.
3722 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
3723 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
3724
3725 2011-05-05 Julian Brown <julian@codesourcery.com>
3726
3727 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
3728 parenthesis in D-register case.
3729
3730 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3731
3732 * opt-functions.awk (var_type_struct): Handle Enum options.
3733 * optc-gen.awk: Don't check range of variables of character type.
3734 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
3735 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
3736 rs6000_sdata_name, rs6000_explicit_options): Remove.
3737 (rs6000_option_override_internal): Check for -malign-power here.
3738 Use global_options_set instead of rs6000_explicit_options.
3739 (rs6000_parse_fpu_option): Remove.
3740 (rs6000_handle_option): Access variables via opts and opts_set
3741 pointers. Use error_at and warning_at. Add fall-through
3742 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
3743 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
3744 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
3745 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
3746 here. Don't use rs6000_parse_fpu_option.
3747 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
3748 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
3749 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
3750 (mrecip=): Use Var.
3751 (mspe): Use Var and Save.
3752 (mtraceback=): Use Enum and Var.
3753 (rs6000_traceback_type): New Enum and EnumValue entries.
3754 (mfloat-gprs=): Use Enum, Var and Save.
3755 (rs6000_float_gprs): New Enum and EnumValue entries.
3756 (mlong-double-): use Var and Save.
3757 (msched-costly-dep=, minsert-sched-nops=): Use Var.
3758 (malign-): Use Enum and Var.
3759 (rs6000_alignment_flags): New Enum and EnumValue entries.
3760 (mfpu=): Use Enum.
3761 (fpu_type_t): New Enum and EnumValue entries.
3762 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3763 global_options_set instead of rs6000_explicit_options.
3764 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3765 global_options_set instead of rs6000_explicit_options.
3766 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3767 global_options_set instead of rs6000_explicit_options.
3768 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3769 global_options_set instead of rs6000_explicit_options.
3770 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
3771 global_options_set instead of rs6000_explicit_options.
3772 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3773 global_options_set instead of rs6000_explicit_options.
3774 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
3775 definition.
3776 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3777 global_options_set instead of rs6000_explicit_options.
3778 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
3779 (rs6000_cmodel): New Enum and EnumValue entries.
3780 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3781 global_options_set instead of rs6000_explicit_options.
3782 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
3783 (mtls-size=): Use Enum and Var.
3784 (rs6000_tls_size): New Enum and EnumValue entries.
3785
3786 2011-05-05 Michael Matz <matz@suse.de>
3787
3788 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
3789 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
3790 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
3791 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
3792 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
3793 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
3794 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
3795 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
3796 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
3797 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
3798 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
3799 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
3800 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
3801 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
3802 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
3803 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
3804
3805 2011-05-05 Richard Guenther <rguenther@suse.de>
3806
3807 * expmed.c (expand_variable_shift): Rename to ...
3808 (expand_shift_1): ... this. Take an expanded shift amount.
3809 For rotates recurse directly not building trees for the shift amount.
3810 (expand_variable_shift): Wrap around expand_shift_1.
3811 (expand_shift): Adjust.
3812
3813 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3814
3815 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
3816
3817 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
3818
3819 * tree.h (get_pending_sizes): Remove prototype.
3820 (put_pending_size): Likewise.
3821 (put_pending_sizes): Likewise.
3822 * stor-layout.c (pending_sizes): Delete.
3823 (get_pending_sizes): Likewise.
3824 (put_pending_size): Likewise.
3825 (put_pending_sizes): Likewise.
3826 (variable_size): Do not call put_pending_size and tidy up.
3827 * function.h (struct function): Remove dont_save_pending_sizes_p.
3828 * lto-streamer-in.c (input_function): Do not stream it.
3829 * lto-streamer-out.c (output_function): Likewise.
3830 * tree-inline.c (initialize_cfun): Do not copy it.
3831 * c-decl.c (store_parm_decls): Do not set it.
3832 * omp-low.c (create_task_copyfn): Likewise.
3833 * tree-optimize.c (tree_rest_of_compilation): Likewise.
3834
3835 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
3836
3837 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
3838 conditions.
3839 (*movdf_internal): Ditto.
3840 (*movdf_internal_nointeger): Ditto.
3841 (*movsf_internal): Ditto.
3842
3843 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3844
3845 * c-decl.c (finish_decl): Don't call get_pending_sizes.
3846 (grokparm): Add parameter expr. Pass it to grokdeclarator.
3847 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
3848 (c_variable_size): Remove.
3849 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
3850 call put_pending_sizes.
3851 (get_parm_info): Add parameter expr. Use it to set
3852 arg_info->pending_sizes.
3853 (store_parm_decls): Use arg_info->pending_sizes instead or calling
3854 get_pending_sizes.
3855 * c-parser.c (c_parser_parms_declarator): Update call to
3856 c_parser_parms_list_declarator.
3857 (c_parser_parms_list_declarator): Take parameter expr. Update
3858 call to push_parm_decl. Update recursive call. Don't call
3859 get_pending_sizes. Update calls to get_parm_info.
3860 (c_parser_objc_method_definition): Update calls to
3861 c_parser_objc_method_decl and objc_start_method_definition.
3862 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
3863 (c_parser_objc_method_decl): Add parameter expr. Update call to
3864 grokparm.
3865 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
3866 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
3867 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
3868
3869 2011-05-05 Michael Hope <michael.hope@linaro.org>
3870
3871 PR pch/45979
3872 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
3873 __ARM_EABI__ hosts.
3874
3875 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3876
3877 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
3878 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
3879 (spu_output_mi_thunk): New function.
3880
3881 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3882
3883 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
3884 targetm.asm_out.print_operand.
3885 * config/sol2.c: Include target.h.
3886
3887 2011-05-04 Jan Hubicka <jh@suse.cz>
3888
3889 * ipa-inline.c (reset_edge_caches): New function.
3890 (update_caller_keys): Add check_inlinablity_for; do not
3891 reset edge caches; remove now unnecesary loop.
3892 (update_callee_keys): Add comments; reset node_growth_cache of callee.
3893 (update_all_callee_keys): Likewise.
3894 (inline_small_functions): Sanity check cache; update code
3895 recomputing it.
3896
3897 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
3898
3899 PR rtl-optimization/47612
3900 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
3901 as the last insn of the sequence to be moved.
3902
3903 2011-05-04 Tobias Burnus <burnus@net-b.de>
3904
3905 PR fortran/48864
3906 * doc/invoke.texi (Ofast): Document that it
3907 enables Fortran's -fno-protect-parens.
3908
3909 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3910
3911 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
3912
3913 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
3914
3915 * stor-layout.c (variable_size): Do not issue errors.
3916
3917 2011-05-04 Richard Guenther <rguenther@suse.de>
3918
3919 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
3920 for array-ref indices.
3921 (tree_coverage_counter_addr): Likewise.
3922 (build_fn_info_type): Use size_int for index types.
3923 (build_gcov_info): Likewise.
3924
3925 2011-05-04 Richard Guenther <rguenther@suse.de>
3926
3927 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
3928 to build_int_cst.
3929 * c-typeck.c (really_start_incremental_init): Use bitsize_int
3930 for constructor indices.
3931 (push_init_level): Likewise.
3932
3933 2011-05-04 Richard Guenther <rguenther@suse.de>
3934
3935 * explow.c (promote_mode): Move variable declarations before code.
3936
3937 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3938
3939 * tree.h (build_function_type_array): Declare.
3940 (build_varargs_function_type_array): Declare.
3941 (build_function_type_vec, build_varargs_function_type_vec): Define.
3942 * tree.c (build_function_type_array_1): New function.
3943 (build_function_type_array): New function.
3944 (build_varargs_function_type_array): New function.
3945
3946 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
3947
3948 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
3949 before setting STMT_VINFO_TYPE.
3950
3951 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3952
3953 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
3954 instead of spu_pass_by_reference.
3955
3956 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3957
3958 * calls.c (emit_library_call_value_1): Invoke
3959 promote_function_mode hook on libcall arguments.
3960 * explow.c (promote_function_mode, promote_mode): Handle TYPE
3961 argument being NULL.
3962 * targhooks.c (default_promote_function_mode): Lisewise.
3963 * config/s390/s390.c (s390_promote_function_mode): Likewise.
3964 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
3965
3966 * doc/tm.texi: Document that TYPE argument might be NULL.
3967
3968 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3969
3970 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
3971
3972 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3973
3974 From Bernd Schmidt
3975 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
3976
3977 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3978
3979 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
3980 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
3981 Move ...
3982 * mips-tfile.c: ... here.
3983 Don't include coretypes.h, tm.h, filenames.h.
3984 (saber_stop): Remove definition and all calls.
3985 [__SABER__]: Remove.
3986 (__LINE__): Remove default.
3987 (Size_t, Ptrdiff_t): Remove definitions.
3988 Replace by size_t, ptrdiff_t.
3989 [!MIPS_DEBUGGING_INFO]: Remove.
3990 (SHASH_SIZE, THASH_SIZE): Remove defaults.
3991 (progname): Add const.
3992 (STATIC): Remove.
3993 Replace all uses by static.
3994 (ALIGN_SYMTABLE_OFFSET): Remove default.
3995 * mips-tdump.c: Don't include coretypes.h, tm.h.
3996 Remove !MIPS_IS_STAB guard.
3997 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
3998 $(TM_H), filenames.h dependencies.
3999 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
4000
4001 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4002
4003 From Jie Zhang
4004 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
4005 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
4006
4007 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4008
4009 From Bernd Schmidt
4010 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
4011 account and save/restore RETS.
4012 (PROFILE_BEFORE_PROLOGUE): Define.
4013 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
4014 the push insn to use predecrement.
4015
4016 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4017
4018 From Jie Zhang
4019 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
4020
4021 2011-05-04 Nick Clifton <nickc@redhat.com>
4022
4023 * config/mn10300/mn10300.c: Include cfgloop.h.
4024 (DUMP): New macro.
4025 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
4026 Lcc or a FLcc insn into the instruction stream.
4027 (mn10300_block_contains_call): New function. Returns true if the
4028 given basic block contains a CALL insn.
4029 (mn10300_loop_contains_call_insn): New function. Returns true if
4030 the given loop contains a CALL insn.
4031 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
4032 to use the SETLB and Lcc or FLcc insns.
4033 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
4034 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
4035 * config/mn10300/mn10300.opt (msetlb): New option. Used to
4036 disable the SETLB optimization.
4037 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
4038 __SETLB__ or __NO_SETLB__.
4039 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
4040 (movsf_internal): Handle MDR register.
4041 (cmpsi): Make visible.
4042 (setlb): New pattern.
4043 (Lcc): New pattern.
4044 (FLcc): New pattern.
4045
4046 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
4047
4048 PR target/48860
4049 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
4050 for reg<->xmm moves.
4051 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
4052 (vec_concatv2di_rex64_sse): Ditto.
4053 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
4054 (*vec_extractv2di_1_rex64): Ditto.
4055
4056 Revert:
4057 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4058
4059 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
4060 reg<->xmm moves.
4061 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
4062
4063 2011-05-04 Richard Guenther <rguenther@suse.de>
4064
4065 * tree.h (int_const_binop): Remove notrunc argument.
4066 * fold-const.c (int_const_binop): Remove notrunc argument. Always
4067 create integer constants that are properly truncated.
4068 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
4069 (const_binop): Remove zero notrunc argument to int_const_binop.
4070 (size_binop_loc): Likewise.
4071 (fold_div_compare): Likewise.
4072 (maybe_canonicalize_comparison_1): Likewise.
4073 (fold_comparison): Likewise.
4074 (fold_binary_loc): Likewise.
4075 (multiple_of_p): Likewise.
4076 * expr.c (store_constructor): Likewise.
4077 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
4078 (maybe_fold_stmt_addition): Likewise.
4079 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
4080 * stor-layout.c (layout_type): Likewise.
4081 * tree-data-ref.c (tree_fold_divides_p): Likewise.
4082 * tree-sra.c (build_ref_for_offset): Likewise.
4083 (build_user_friendly_ref_for_offset): Likewise.
4084 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
4085 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
4086 * tree-ssa-loop-niter.c (inverse): Likewise.
4087 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
4088 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
4089 * tree-switch-conversion.c (check_range): Likewise.
4090 (build_constructors): Likewise.
4091 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
4092 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
4093 (extract_range_from_assert): Likewise.
4094 (vrp_int_const_binop): Likewise.
4095 (extract_range_from_binary_expr): Likewise.
4096 (extract_range_from_unary_expr): Likewise.
4097 (check_array_ref): Likewise.
4098 (find_case_label_range): Likewise.
4099 (simplify_div_or_mod_using_ranges): Likewise.
4100 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
4101 comparing case labels for merging.
4102
4103 2011-05-03 Mark Wielaard <mjw@redhat.com>
4104
4105 * dwarf2out.c (debug_str_hash_forced): Removed.
4106 (gen_label_for_indirect_string): Removed.
4107 (get_debug_string_label): Removed.
4108 (AT_string_form): Generate label directly.
4109 (output_indirect_string): Test indirect_string_node for
4110 DW_FORM_strp instead of checking label and refcount.
4111 (prune_indirect_string): Removed.
4112 (prune_unused_types): Don't check debug_str_hash_forced or
4113 call prune_indirect_string.
4114
4115 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
4116
4117 PR other/48093
4118 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
4119
4120 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
4121
4122 PR debug/47994
4123 PR debug/47919
4124 * combine.c (try_combine): Skip debug insns at m_split tests.
4125
4126 2011-04-26 Mark Wielaard <mjw@redhat.com>
4127
4128 PR42288
4129 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
4130 when info_section_emitted.
4131
4132 2011-05-03 Joseph Myers <joseph@codesourcery.com>
4133
4134 * config/mips/mips-opts.h: New.
4135 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
4136 to mips-opts.h.
4137 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
4138 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
4139 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
4140 via opts pointer.
4141 * config/mips/mips.h (enum mips_code_readable_setting): Move to
4142 mips-opts.h.
4143 (mips_abi, mips_code_readable): Don't declare.
4144 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
4145 (mabi=): Use Enum and Var.
4146 (mips_abi): New Enum and EnumValue entries.
4147 (mcode-readable=): Use Enum and Var.
4148 (mips_code_readable_setting): New Enum and EnumValue entries.
4149 (mr10k-cache-barrier=): Use Enum and Var.
4150 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
4151
4152 2011-05-03 Jan Hubicka <jh@suse.cz>
4153
4154 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
4155 replace hash by pointer map.
4156 (cgraph_node_set_element_def, cgraph_node_set_element,
4157 const_cgraph_node_set_element, varpool_node_set_element_def,
4158 varpool_node_set_element, const_varpool_node_set_element): Remove.
4159 (free_cgraph_node_set, free_varpool_node_set): New function.
4160 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
4161 * tree-emutls.c: Free varpool node set.
4162 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
4163 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
4164 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
4165 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
4166 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
4167 Move here from ipa.c; implement using pointer_map
4168 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
4169 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
4170 debug_cgraph_node_set, varpool_node_set_new,
4171 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
4172 dump_varpool_node_set, debug_varpool_node_set):
4173 Move to ipa-uitls.c.
4174 * passes.c (ipa_write_summaries): Update.
4175
4176 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4177
4178 From Mike Frysinger:
4179 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
4180 bf542/bf544/bf547/bf548/bf549.
4181
4182 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
4183
4184 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
4185
4186 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4187
4188 From Bernd Schmidt:
4189 * config/bfin/bfin.md (MOVCC): New mode_macro.
4190 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
4191 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
4192 comments from generated assembly.
4193
4194 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4195
4196 From Bernd Schmidt
4197 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
4198 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
4199 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
4200 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
4201 * config/bfin/lib1funcs.asm (___muldi3): New function.
4202
4203 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4204
4205 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
4206 build_function_type_list instead of build_function_type.
4207 Rearrange initialization of `args' to do so.
4208
4209 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4210
4211 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
4212 instead of build_function_type.
4213
4214 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4215
4216 * config/rs6000/rs6000.c (spe_init_builtins): Call
4217 build_function_type_list instead of build_function_type.
4218 (paired_init_builtins, altivec_init_builtins): Likewise.
4219 (builtin_function_type): Likewise.
4220
4221 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4222
4223 * config/sh/sh.c (sh_media_init_builtins): Call
4224 build_function_type_list instead of build_function_type.
4225
4226 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4227
4228 * config/sparc/sparc.c (sparc_file_end): Call
4229 build_function_type_list instead of build_function_type.
4230
4231 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4232
4233 * config/alpha/alpha.c (alpha_init_builtins): Call
4234 build_function_type_list instead of build_function_type.
4235
4236 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4237
4238 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
4239 build_function_type_list instead of build_function_type.
4240
4241 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4242
4243 * config/iq2000/i2000.c (iq2000_init_builtins): Call
4244 build_function_type_list instead of build_function_type.
4245 Delete `endlink' variable.
4246
4247 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4248
4249 * config/avr/avr.c (avr_init_builtins): Call
4250 build_function_type_list instead of build_function_type.
4251
4252 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4253
4254 * config/picochip/picochip.c (picochip_init_builtins): Call
4255 build_function_type_list instead of build_function_type.
4256 Delete `endlink' variable.
4257
4258 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4259
4260 * config/bfin/bfin.c (bfin_init_builtins): Call
4261 build_function_type_list instead of build_function_type.
4262
4263 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4264
4265 From Bernd Schmidt
4266 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
4267 that's not CONST_INT. Seemingly redundant check is due to PR39768.
4268
4269 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4270
4271 From Jie Zhang:
4272 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
4273 libbffastfp overrides libgcc when -mfast-fp.
4274
4275 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4276
4277 Originally from Bernd Schmidt
4278 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
4279 * config/bfin/bfin.c (override_options): Test it and error if
4280 TARGET_FDPIC.
4281
4282 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4283
4284 Originally From Bernd Schmidt
4285 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
4286 FD-PIC.
4287
4288 2011-05-03 Jeff Law <law@redhat.com>
4289
4290 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
4291 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
4292 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
4293 than accessing AUX field directly. Free the AUX field before
4294 clearing it.
4295 (thread_block, thread_through_loop_header): Likewise.
4296 (thread_single_edge, mark_threaded_blocks): Likewise.
4297 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
4298 (register_jump_thread): Do not attempt to thread to a NULL edge.
4299
4300 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
4301
4302 * function.c (init_function_start): Call decide_function_section.
4303 * varasm.c (decide_function_section): New function.
4304 (assemble_start_function): When not using
4305 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
4306 or first_function_block_is_cold.
4307 * rtl.h (decide_function_section): Declare.
4308
4309 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
4310 Jakub Jelinek <jakub@redhat.com>
4311
4312 PR target/48774
4313 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
4314 only succeed if req_mode is the same as set_mode.
4315
4316 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
4317
4318 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
4319 * genemit.c (gen_exp): Handle RETURN.
4320 * emit-rtl.c (verify_rtx_sharing): Likewise.
4321 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
4322 * rtl.c (copy_rtx): RETURN is shared.
4323 * rtl.h (enum global_rtl_index): Add GR_RETURN.
4324 (ret_rtx): New.
4325 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
4326 * config/s390/s390.c (s390_emit_epilogue): Likewise.
4327 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
4328 * config/cris/cris.c (cris_expand_return): Likewise.
4329 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
4330 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
4331 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
4332 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
4333 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
4334 Likewise.
4335 * config/v850/v850.c (expand_epilogue): Likewise.
4336 * config/bfin/bfin.c (bfin_expand_call): Likewise.
4337 * config/arm/arm.md (epilogue): Likewise.
4338 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
4339 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
4340 variable to ret_reg.
4341
4342 2011-05-03 Richard Guenther <rguenther@suse.de>
4343
4344 PR lto/48846
4345 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
4346 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
4347 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
4348
4349 2011-05-03 Richard Guenther <rguenther@suse.de>
4350
4351 * c-decl.c (grokdeclarator): Instead of looking at
4352 TREE_OVERFLOW check if the constant fits in the index type.
4353
4354 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4355
4356 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
4357 (vec_store_lanes<mode><mode>): Likewise.
4358
4359 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4360
4361 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
4362 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
4363 convert_optab_index values.
4364 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
4365 * genopinit.c (optabs): Initialize the new optabs.
4366 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
4367 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
4368 (expand_STORE_LANES): New functions.
4369 * tree.h (build_array_type_nelts): Declare.
4370 * tree.c (build_array_type_nelts): New function.
4371 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
4372 (vect_model_load_cost): Likewise.
4373 (vect_store_lanes_supported, vect_load_lanes_supported)
4374 (vect_record_strided_load_vectors): Declare.
4375 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
4376 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
4377 (vect_transform_strided_load): Split out statement recording into...
4378 (vect_record_strided_load_vectors): ...this new function.
4379 * tree-vect-stmts.c (create_vector_array, read_vector_array)
4380 (write_vector_array, create_array_ref): New functions.
4381 (vect_model_store_cost): Add store_lanes_p argument.
4382 (vect_model_load_cost): Add load_lanes_p argument.
4383 (vectorizable_store): Try to use store-lanes functions for
4384 interleaved stores.
4385 (vectorizable_load): Likewise load-lanes and loads.
4386 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
4387 to vect_model_store_cost.
4388 (vect_build_slp_tree): Likewise vect_model_load_cost.
4389
4390 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4391
4392 * hooks.h (hook_bool_mode_uhwi_false): Declare.
4393 * hooks.c (hook_bool_mode_uhwi_false): New function.
4394 * target.def (array_mode_supported_p): New hook.
4395 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
4396 * doc/tm.texi: Regenerate.
4397 * stor-layout.c (mode_for_array): New function.
4398 (layout_type): Use it.
4399 * config/arm/arm.c (arm_array_mode_supported_p): New function.
4400 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
4401
4402 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
4403
4404 PR target/48723
4405 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
4406 for -fstack-check if the size to allocate is negative.
4407
4408 2011-05-02 Lawrence Crowl <crowl@google.com>
4409
4410 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
4411 (timevar_cond_start): New for starting a timer only when it is not
4412 already running.
4413 (timevar_cond_stop): New for stopping a timer when it was not already
4414 running.
4415
4416 * timevar.c (timevar_stop): Enable start/stop timers to start again.
4417 (timevar_cond_start): New as above.
4418 (timevar_cond_stop): New as above.
4419
4420 * timevar.def: Add start/stop timers for compiler phases,
4421 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
4422 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
4423 and TV_PHASE_FINALIZE.
4424 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
4425 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
4426 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
4427 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
4428 Make unused TV_OVERLOAD into a start/stop timer.
4429
4430 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
4431 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
4432 to indicate that they are start/stop timers.
4433
4434 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
4435 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
4436 Move initialization to do_compile.
4437 (do_compile): Add initialization from above.
4438 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
4439
4440 * c-decl.c (c_write_global_declarations): Add start/stop of
4441 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
4442
4443 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
4444 or TV_PARSE_INLINE, as appropriate.
4445 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
4446 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
4447
4448 2011-05-02 Jason Merrill <jason@redhat.com>
4449
4450 PR c++/40975
4451 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
4452
4453 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
4454
4455 PR c/35445
4456 * c-decl.c (finish_decl): Only create a composite if the types are
4457 compatible.
4458
4459 2011-05-02 Joseph Myers <joseph@codesourcery.com>
4460
4461 * config/fr30/fr30-protos.h (Mmode): Don't define.
4462 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
4463 definition where used.
4464 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
4465 define. Expand definitions where used.
4466 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
4467 Expand definitions where used.
4468 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
4469 rx_function_arg, rx_function_arg_advance,
4470 rx_function_arg_boundary): Expand definitions of those macros.
4471 * config/v850/v850-protos.h (Mmode): Don't define. Expand
4472 definition where used.
4473
4474 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4475
4476 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
4477 reg<->xmm moves.
4478 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
4479 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
4480 with *movv2sf_internal_rex64_avx.
4481 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
4482 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
4483 Use %v prefix in insn mnemonic to handle TARGET_AVX.
4484 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
4485 "vex" in "prefix" attribute calculation.
4486 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
4487
4488 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
4489
4490 PR target/47951
4491 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
4492 inputs match the output.
4493
4494 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
4495
4496 PR target/47955
4497 * config/m68k/m68k.c (m68k_expand_prologue): Set
4498 current_function_static_stack_size.
4499
4500 2011-05-02 Jan Hubicka <jh@suse.cz>
4501
4502 * lto-streamer.c (lto_streamer_cache_insert_1,
4503 lto_streamer_cache_lookup, lto_streamer_cache_create,
4504 lto_streamer_cache_delete): Use pointer map instead of hashtable.
4505 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
4506
4507 2011-05-02 Joseph Myers <joseph@codesourcery.com>
4508
4509 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
4510 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
4511 config/m68k/t-opts: New files.
4512 * config/m68k/m68k-tables.opt: New file (generated).
4513 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
4514 extra_options and m68k/t-opts to tmake_file.
4515 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
4516 (all_isas): Initialize using m68k-isas.def.
4517 (all_microarchs): Initialize using m68k-microarchs.def.
4518 (m68k_find_selection): Remove.
4519 (m68k_handle_option): Don't assert that global structures are in
4520 use. Use error_at. Access variables via opts pointer. Don't
4521 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
4522 directly for -m68020-40 and -m68020-60.
4523 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
4524 m68k_tune_entry here.
4525 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
4526 to m68k-opts.h.
4527 (m68k_library_id_string): Remove declaration.
4528 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
4529 (m68k_library_id_string): New Variable.
4530 (march=, mcpu=, mtune=): Use Enum and Var.
4531
4532 2011-05-02 Richard Guenther <rguenther@suse.de>
4533
4534 * varasm.c (output_constructor_regular_field): Compute zero-based
4535 index with double-ints. Make sure to ICE instead of producing
4536 wrong code.
4537 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
4538 in asserts. Properly use a signed type.
4539
4540 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4541
4542 * config/i386/sse.md (V): New mode iterator.
4543 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
4544 TARGET_SSE2.
4545 (V_256): Rename from AVX256MODE.
4546 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
4547 condition to all users.
4548 (VF1): Ditto.
4549 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
4550 condition to all users.
4551 (VF_128): Make V4SF mode unconditional.
4552 (VF_256): Rename from AVX256MODEF2P.
4553 (VI4F_128): Rename from SSEMODE4S.
4554 (VI8F_128): Rename from SSEMODE2D.
4555 (VI4F_256): Rename from AVX256MODE8P.
4556 (VI8F_256): Rename from AVX256MODE4P.
4557 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
4558 (ssescalarmodesuffix): Remove SF and DF modes.
4559 (SSEMODE124): Remove.
4560 (SSEMODE1248): Ditto.
4561 (SSEMODEF2P): Ditto.
4562 (AVXMODEF2P): Ditto.
4563 (AVXMODEFDP): Ditto.
4564 (AVXMODEFSP): Ditto.
4565 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
4566 unconditional.
4567 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
4568 unconditional.
4569 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
4570 xop_pcmov_<mode>256. Use V mode iterator.
4571
4572 Adjust RTX patterns globally for renamed mode attributes.
4573
4574 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4575
4576 * haifa-sched.c (sched_emit_insn): Emit insn before first
4577 non-scheduled insn. Inform back-end about new insn. Add
4578 new insn to scheduled_insns list.
4579
4580 2011-05-02 Richard Guenther <rguenther@suse.de>
4581
4582 PR tree-optimization/48822
4583 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
4584 (process_scc): Indicate which iteration we start.
4585
4586 2011-05-02 Jan Hubicka <jh@suse.cz>
4587
4588 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
4589 (lto_section_overrun): New.
4590 * lto-section-out.c (append_block): Rename to ...
4591 (lto_append_block): ... this one; export.
4592 (lto_output_1_stream): Move lto lto-streamer.h
4593 (lto_output_data_stream): Update.
4594 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
4595 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
4596 functions.
4597
4598 2011-05-02 Richard Guenther <rguenther@suse.de>
4599
4600 * tree.c (tree_code_counts): New global array.
4601 (record_node_allocation_statistics): Count individual tree codes.
4602 (dump_tree_statistics): Dump individual code stats.
4603
4604 2011-05-01 Jan Hubicka <jh@suse.cz>
4605
4606 * ipa-inline.c (caller_growth_limits): Fix thinko when
4607 looking for largest stack frame.
4608 * ipa-inline.h (dump_inline_summary): Declare.
4609 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
4610 on stack usage.
4611 (dump_inline_summary): Export.
4612 (debug_inline_summary): Declare as DEBUG_FUNCTION.
4613
4614 2011-05-01 Anatoly Sokolov <aesok@post.ru>
4615
4616 * reginfo.c (memory_move_cost): Change rclass argument type form
4617 'enum reg_class' to reg_class_t.
4618 * reload.h (memory_move_cost): Update prototype.
4619 * postreload.c reload_cse_simplify_set): Change type dclass var to
4620 reg_class_t.
4621 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
4622 Update prototype.
4623 (ira_allocate_and_set_costs): Change aclass argument type form
4624 'enum reg_class' to reg_class_t.
4625 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
4626 Change aclass argument type to reg_class_t.
4627 (update_conflict_hard_reg_costs): Change type aclass and pref vars
4628 to reg_class_t.
4629 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
4630 memory_move_cost call.
4631
4632 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
4633 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
4634 Change type tmp var to reg_class_t.
4635
4636 2011-04-30 Jan Hubicka <jh@suse.cz>
4637
4638 * ipa-inline.c (can_inline_edge_p): Disregard limits when
4639 inlining into function with flatten attribute.
4640 (want_inline_small_function_p): Be more realistic about inlining
4641 cold calls where callee size grows.
4642
4643 2011-04-30 Jan Hubicka <jh@suse.cz>
4644
4645 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
4646 flags.
4647
4648 2011-04-30 Anatoly Sokolov <aesok@post.ru>
4649
4650 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
4651 PRINT_OPERAND_PUNCT_VALID_P): Remove.
4652 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
4653 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
4654 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4655 (print_operand): Rename to...
4656 (sparc_print_operand): ...this. Make static. Adjust
4657 sparc_print_operand function call.
4658 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
4659 functions.
4660
4661 2011-04-30 Jan Hubicka <jh@suse.cz>
4662
4663 PR middle-end/48752
4664 * ipa-inline.c (early_inliner): Disable when doing late
4665 addition of function.
4666
4667 2011-04-30 Jakub Jelinek <jakub@redhat.com>
4668
4669 * dwarf2out.c (get_address_mode): New inline.
4670 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
4671 if not dwarf_strict emit
4672 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
4673 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
4674 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
4675 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
4676 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
4677 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
4678 mem_loc_descriptor callers.
4679 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
4680 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
4681 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
4682 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
4683 (base_types): New variable.
4684 (get_base_type_offset, calc_base_type_die_sizes,
4685 base_type_for_mode, mark_base_types, base_type_cmp,
4686 move_marked_base_types): New functions.
4687 (calc_die_sizes): Assert that die_offset is 0 or equal to
4688 next_die_offset.
4689 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
4690 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
4691 callers. If not dwarf_strict, call mem_loc_descriptor even for
4692 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
4693 (gen_subprogram_die): Don't give up on call site parameters
4694 with non-integral or large integral modes. Adjust
4695 mem_loc_descriptor callers.
4696 (prune_unused_types): Call prune_unused_types_mark on base_types
4697 vector entries.
4698 (resolve_addr): Call mark_base_types.
4699 (dwarf2out_finish): Call move_marked_base_types.
4700
4701 PR tree-optimization/48809
4702 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
4703 type.
4704 (gen_inbound_check): Don't compute index_expr - range_min in utype
4705 again, instead reuse SSA_NAME initialized in build_arrays.
4706 Remove two useless gsi_for_stmt calls.
4707
4708 2011-04-29 Jeff Law <law@redhat.com>
4709
4710 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
4711
4712 2011-04-29 Martin Jambor <mjambor@suse.cz>
4713
4714 * cgraph.h (cgraph_postorder): Remove declaration.
4715 * ipa-utils.h (ipa_free_postorder_info): Declare.
4716 (ipa_reverse_postorder): Likewise.
4717 * cgraphunit.c: Include ipa-utils.h.
4718 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
4719 * ipa-inline.c: Include ipa-utils.h.
4720 (ipa_inline): Update call to ipa_reverse_postorder.
4721 * ipa-pure-const.c (propagate_pure_const): Update call to
4722 ipa_reduced_postorder and ipa_print_order. Call
4723 ipa_free_postorder_info to clean up.
4724 (propagate_nothrow): Likewise.
4725 * ipa-reference.c (propagate): Removed a useless call to
4726 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
4727 and ipa_print_order. Call ipa_free_postorder_info to clean up.
4728 * ipa.c: Include ipa-utils.h.
4729 (ipa_profile): Update call to ipa_reverse_postorder.
4730 (cgraph_postorder): Moved to...
4731 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
4732 (ipa_utils_print_order): Renamed to ipa_print_order.
4733 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
4734 comments.
4735 (ipa_free_postorder_info): New function.
4736 * passes.c: Include ipa-utils.h.
4737 (do_per_function_toporder): Update call to ipa_reverse_postorder.
4738 (ipa_write_summaries): Likewise.
4739 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
4740 (cgraphunit.o): Likewise.
4741 (ipa.o): Likewise.
4742 (ipa-inline.o): Likewise.
4743
4744 2011-04-29 Jan Hubicka <jh@suse.cz>
4745
4746 * gcc.dg/tree-ssa/inline-10.c: New testcase.
4747 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
4748 * ipa-inline.h (clause_t): Turn into unsigned int.
4749 * ipa-inline-analysis.c (add_clause): Do more simplification.
4750 (and_predicates): Shortcut more cases.
4751 (predicates_equal_p): Move forward; check that clauses are properly
4752 ordered.
4753 (or_predicates): Shortcut more cases.
4754 (edge_execution_predicate): Rewrite as...
4755 (set_cond_stmt_execution_predicate): ... this function; handle
4756 __builtin_constant_p.
4757 (set_switch_stmt_execution_predicate): New .
4758 (compute_bb_predicates): New.
4759 (will_be_nonconstant_predicate): Update TODO.
4760 (estimate_function_body_sizes): Use compute_bb_predicates
4761 and free them later, always try to estimate if stmt is constant.
4762 (estimate_time_after_inlining, estimate_size_after_inlining):
4763 Gracefully handle optimized out edges.
4764 (read_predicate): Fix off by one error.
4765
4766 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
4767
4768 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
4769
4770 2011-04-27 Xinliang David Li <davidxl@google.com>
4771
4772 * tree-profile.c (init_ic_make_global_vars): Set
4773 tls attribute on ic vars.
4774 * coverage.c (coverage_end_function): Initialize
4775 function_list with zero.
4776
4777 2011-04-29 Richard Guenther <rguenther@suse.de>
4778
4779 * builtins.c (fold_builtin_classify_type): Use integer_type_node
4780 for the type of the result.
4781 (fold_builtin_isascii): Likewise.
4782 (fold_builtin_toascii): Use integer_type_node where appropriate.
4783 (fold_builtin_logb): Likewise.
4784 (fold_builtin_frexp): Likewise.
4785 (fold_builtin_strstr): Likewise.
4786 (fold_builtin_strpbrk): Likewise.
4787 (fold_builtin_fputs): Likewise.
4788 (fold_builtin_sprintf): Likewise.
4789 (fold_builtin_snprintf): Likewise.
4790 (fold_builtin_printf): Likewise.
4791 (do_mpfr_remquo): Use a proper type for the assigned constant.
4792 (do_mpfr_lgamma_r): Likewise.
4793 * dwarf2out.c (resolve_one_addr): Use size_int.
4794 * except.c (init_eh): Likewise.
4795 (assign_filter_values): Use integer_type_node for filter values.
4796 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
4797 indices.
4798 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
4799 for EH region numbers.
4800 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
4801 for the shift amount.
4802
4803 2011-04-29 Richard Guenther <rguenther@suse.de>
4804
4805 * expr.h (expand_shift): Rename to ...
4806 (expand_variable_shift): ... this.
4807 (expand_shift): Take a constant shift amount.
4808 * expmed.c (expand_shift): Rename to ...
4809 (expand_variable_shift): ... this.
4810 (expand_shift): New wrapper around expand_variable_shift.
4811 * expr.c (convert_move, emit_group_load_1, emit_group_store,
4812 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
4813 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
4814 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
4815 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
4816 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
4817 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
4818 emit_store_flag_1, emit_store_flag): Likewise.
4819 * builtins.c (expand_builtin_signbit): Likewise.
4820 * calls.c (load_register_parameters): Likewise.
4821 * function.c (assign_parm_setup_block): Likewise.
4822 * lower-subreg.c (resolve_shift_zext): Likewise.
4823 * optabs.c (widen_bswap, expand_abs_nojump,
4824 expand_one_cmpl_abs_nojump, expand_float): Likewise.
4825 * spu/spu.c (spu_expand_extv): Likewise.
4826 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
4827
4828 2011-04-29 Richard Guenther <rguenther@suse.de>
4829
4830 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
4831 for the remapped region number.
4832 * predict.c (build_predict_expr): Use integer_type_node for the
4833 predict kind.
4834 * fold-const.c (fold_binary_loc): Use integer_type_node for
4835 the shift amount. Use a proper type for the PLUS_EXPR operand.
4836
4837 2011-04-29 Michael Matz <matz@suse.de>
4838
4839 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
4840 other trees that just builtins.
4841 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
4842
4843 2011-04-29 Richard Guenther <rguenther@suse.de>
4844
4845 * tree-nested.c (get_trampoline_type): Use size_int.
4846 (get_nl_goto_field): Likewise.
4847 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
4848 for all indexes.
4849 (lower_eh_constructs_2): Likewise.
4850 (lower_resx): Likewise.
4851 (lower_eh_dispatch): Likewise.
4852 * tree-mudflap.c (mf_build_string): Use size_int.
4853 (mudflap_register_call): Use integer_type_node for the flag.
4854 (mudflap_enqueue_constant): Use size_int.
4855 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
4856 instead of rebuilding it.
4857
4858 2011-04-29 Richard Guenther <rguenther@suse.de>
4859
4860 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
4861 Handle OBJ_TYPE_REF.
4862 (find_func_aliases_for_call): Use it more consistently.
4863
4864 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
4865
4866 * haifa-sched.c (last_nondebug_scheduled_insn): New.
4867 (rank_for_schedule): Use it.
4868 (schedule_block): Set it.
4869
4870 2011-04-28 David Li <davidxl@google.com>
4871
4872 * tree.c (crc32_string): Use crc32_byte.
4873 (crc32_byte): New function.
4874 * tree.h (crc32_byte): New function.
4875 * gcov.c (read_graph_file): Handle new cfg_cksum.
4876 (read_count_file): Ditto.
4877 * profile.c (instrument_values): Ditto.
4878 (get_exec_counts): Ditto.
4879 (read_profile_edge_counts): Ditto.
4880 (compute_branch_probabilities): Ditto.
4881 (compute_value_histograms): Ditto.
4882 (branch_prob): Ditto.
4883 (end_branch_prob): Ditto.
4884 * coverage.c (read_counts_file): Ditto.
4885 (get_coverage_counts): Ditto.
4886 (tree_coverage_counter_addr): Ditto.
4887 (coverage_checksum_string): Ditto.
4888 (coverage_begin_output): Ditto.
4889 (coverage_end_function): Ditto.
4890 (build_fn_info_type): Ditto.
4891 (build_fn_info_value): Ditto.
4892 * libgcov.c (gcov_exit): Ditto.
4893 * gcov-dump.c (tag_function): Ditto.
4894 (compute_checksum): Remove.
4895
4896 2011-04-29 Alan Modra <amodra@gmail.com>
4897
4898 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
4899 unspec plus offset. Tidy macho code.
4900
4901 2011-04-29 Martin Jambor <mjambor@suse.cz>
4902
4903 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
4904 node instead of a decl. Update all callers.
4905 * cgraph.h: Update declaration.
4906
4907 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
4908
4909 PR tree-optimization/48765
4910 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
4911 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
4912 to indicate if loop aware SLP is being used. Scan the statements
4913 and update the vectorization factor according to the type of
4914 vectorization before statement analysis.
4915 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
4916 pass it to vect_analyze_loop_operations.
4917 (vectorizable_reduction): Set number of copies to 1 in case of pure
4918 SLP statement.
4919 * tree-vect-stmts.c (vectorizable_conversion,
4920 vectorizable_assignment, vectorizable_shift,
4921 vectorizable_operation, vectorizable_type_demotion,
4922 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
4923 Likewise.
4924 (vectorizable_condition): Move the check that it is not SLP
4925 vectorization before the number of copies check.
4926 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
4927 to vectorize the loop using SLP.
4928
4929 2011-04-28 Jakub Jelinek <jakub@redhat.com>
4930
4931 PR middle-end/48597
4932 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
4933 inline asm.
4934
4935 2011-04-28 Joseph Myers <joseph@codesourcery.com>
4936
4937 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
4938 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
4939 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
4940 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
4941 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
4942 linux*.h headers.
4943 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
4944 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4945 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4946 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4947 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4948 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
4949 REG_NAME.
4950 * config/i386/linux.h (REG_NAME): Don't define.
4951 * config/i386/linux64.h (REG_NAME): Don't define.
4952 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
4953 Undefine before defining.
4954
4955 2011-04-28 Jan Hubicka <jh@suse.cz>
4956
4957 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
4958 nonconstant_names array.
4959 (estimate_function_body_sizes): Build nonconstant_names array; handle
4960 BUILT_IN_CONSTANT_P.
4961
4962 2011-04-28 Richard Guenther <rguenther@suse.de>
4963
4964 PR bootstrap/48804
4965 Revert
4966 2011-04-28 Richard Guenther <rguenther@suse.de>
4967
4968 * tree-ssa-structalias.c (solve_constraints): Build succ graph
4969 as late as possible.
4970
4971 2011-04-28 Richard Guenther <rguenther@suse.de>
4972
4973 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
4974 (debug_constraint): Do it here.
4975 (dump_constraints): And here.
4976 (rewrite_constraints): And here.
4977 (dump_constraint_edge): Remove.
4978 (dump_constraint_graph): Rewrite to produce DOT output.
4979 (solve_constraints): Build succ graph as late as possible.
4980 Dump constraint graphs before and after solving.
4981
4982 2011-04-28 Richard Guenther <rguenther@suse.de>
4983
4984 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4985 New function split out from ...
4986 (find_func_aliases): ... here. Call it.
4987 (find_func_aliases_for_call): Likewise.
4988
4989 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4990
4991 * internal-fn.h (internal_fn_name_array): Declare.
4992 (internal_fn_flags_array): Likewise.
4993
4994 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4995
4996 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
4997 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
4998 Move from sse.md.
4999 (ssemodefsuffix): Remove.
5000 (ssevecmodesuffix): New mode attribute.
5001 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
5002 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
5003 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
5004 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
5005 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
5006 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
5007 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
5008 ssemodesuffix mode attribute.
5009 (float splitters): Use ssevecmodesuffix mode attribute.
5010 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
5011 (sseinsmode): Rename from avxvecmode.
5012 (avxsizesuffix): Rename from avxmodesuffix.
5013 (sseintvecmode): Rename from avxpermvecmode.
5014 (ssedoublevecmode): Rename from ssedoublesizemode.
5015 (ssehalfvecmode): Rename from avxhalfvecmode.
5016 (ssescalarmode): Rename from avxscalarmode.
5017 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
5018 templates for ssemodesuffix mode attribute.
5019 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
5020 mode attribute.
5021
5022 Adjust RTX patterns globally for renamed mode attributes.
5023
5024 2011-04-27 Jan Hubcika <jh@suse.cz>
5025
5026 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
5027 * ipa-inline-analysis.c: Include alloc-pool.h.
5028 (edge_predicate_pool): New.
5029 (trye_predicate_p): New function
5030 (false_predicate_p): New function.
5031 (add_clause): Sanity check that false clauses are "optimized";
5032 never add clauses to predicate that is already known to be false.
5033 (and_predicate): Use flase_predicate_p.
5034 (evaulate_predicate): Rename to ...
5035 (evaluate_predicate): ... this one; update all callers; assert
5036 that false is not listed among possible truths.
5037 (dump_predicate): Use true_predicate_p.
5038 (account_size_time): Use false_predicate_p.
5039 (evaulate_conditions_for_edge): Rename to ...
5040 (evaluate_conditions_for_edge) ... this one.
5041 (edge_set_predicate): New function.
5042 (inline_edge_duplication_hook): Duplicate edge predicates.
5043 (inline_edge_removal_hook): Free edge predicates.
5044 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
5045 (dump_inline_summary): Update.
5046 (estimate_function_body_sizes): Set edge predicates.
5047 (estimate_calls_size_and_time): Handle predicates.
5048 (estimate_callee_size_and_time): Update.
5049 (remap_predicate): Add toplev_predicate; update comment.
5050 (remap_edge_predicates): New function.
5051 (inline_merge_summary): Compute toplev predicate; update.
5052 (read_predicate): New function.
5053 (read_inline_edge_summary): Use it.
5054 (inline_read_section): Likewise.
5055 (write_predicate): New function.
5056 (write_inline_edge_summary): Use it.
5057 (inline_write_summary): Likewise.
5058 (inline_free_summary): Free alloc pool and edge summary vec.
5059
5060 2011-04-27 Richard Guenther <rguenther@suse.de>
5061
5062 * tree-ssa-structalias.c (changed_count): Remove.
5063 (changed): Use a bitmap.
5064 (unify_nodes): Adjust.
5065 (do_sd_constraint): Likewise.
5066 (do_ds_constraint): Likewise.
5067 (do_complex_constraint): Likewise.
5068 (solve_graph): Likewise.
5069
5070 2011-04-27 Jan Hubicka <jh@suse.cz>
5071
5072 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
5073
5074 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
5075
5076 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
5077 (avx_vperm2f128_*_operand): Ditto.
5078 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
5079 Use avx_vpermilp_parallel in insn condition.
5080 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
5081 Use avx_vperm2f128_parallel in insn condition.
5082
5083 2011-04-27 Richard Guenther <rguenther@suse.de>
5084
5085 * Makefile.in (tree-ssa-structalias.o): Remove
5086 gt-tree-ssa-structalias.h dependency.
5087 (GTFILES): Remove tree-ssa-structalias.c.
5088 * tree.c (allocate_decl_uid): New function.
5089 (make_node_stat): Use it.
5090 (copy_node_stat): Likewise.
5091 * tree.h (allocate_decl_uid): Declare.
5092 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
5093 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
5094 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
5095 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
5096 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
5097 (struct heapvar_map): Likewise.
5098 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
5099 heapvar_insert): Likewise.
5100 (make_heapvar_for): Rename to ...
5101 (make_heapvar): ... this. Simplify.
5102 (fake_var_decl_obstack): New global var.
5103 (build_fake_var_decl): New function.
5104 (make_constraint_from_heapvar): Adjust.
5105 (handle_lhs_call): Likewise.
5106 (create_function_info_for): Likewise.
5107 (intra_create_variable_infos): Likewise.
5108 (init_alias_vars): Allocate fake_var_decl_obstack.
5109 (init_alias_heapvars, delete_alias_heapvars): Remove.
5110 (compute_points_to_sets): Do not call init_alias_heapvars.
5111 (ipa_pta_execute): Likewise.
5112 (delete_points_to_sets): Free fake_var_decl_obstack.
5113
5114 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5115
5116 * config/spu/divmovti4.c (union qword_UTItype): New data type.
5117 (si_from_UTItype, si_to_UTItype): New functions.
5118 (__udivmodti4): Use them to implement type-punning.
5119 * config/spu/multi3.c (union qword_TItype): New data type.
5120 (si_from_TItype, si_to_TItype): New functions.
5121 (__multi3): Use them to implement type-punning.
5122
5123 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5124
5125 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
5126
5127 2011-04-27 Jan Hubicka <jh@suse.cz>
5128
5129 * ipa-prop.c (function_insertion_hook_holder): New holder.
5130 (ipa_add_new_function): New function.
5131 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
5132 Register/deregister holder.
5133
5134 2011-04-27 Richard Guenther <rguenther@suse.de>
5135
5136 PR tree-optimization/48772
5137 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
5138
5139 2011-04-27 Richard Guenther <rguenther@suse.de>
5140
5141 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
5142 TARGET_MEM_REF handling.
5143
5144 2011-04-27 Nick Clifton <nickc@redhat.com>
5145
5146 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
5147 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
5148 (REG_CLASS_NAMES): Likewise.
5149 (REG_CLASS_CONTENTS): Likewise.
5150 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
5151 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
5152 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
5153 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
5154 (EVEN_REGS): New macro. Alias for QUAD_REGS.
5155 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
5156 duplicate register classes.
5157 (frv_class_likely_spilled_p): Likewise.
5158 (frv_register_move_cost): Likewise.
5159
5160 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
5161 end of the regno_reg_class array.
5162
5163 2011-04-27 Jakub Jelinek <jakub@redhat.com>
5164
5165 PR c/48742
5166 * c-typeck.c (build_binary_op): Don't wrap arguments if
5167 int_operands is true.
5168
5169 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
5170
5171 PR target/48767
5172 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
5173 targetm.calls.must_pass_in_stack for void type.
5174
5175 2011-04-26 Jan Hubicka <jh@suse.cz>
5176
5177 * cgraphbuild.c (build_cgraph_edges): Update call
5178 of cgraph_create_edge and cgraph_create_indirect_edge.
5179 * cgraph.c (cgraph_create_edge_including_clones,
5180 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
5181 cgraph_update_edges_for_call_stmt_node): Do not take nest
5182 argument; do not initialize call_stmt_size/time.
5183 (dump_cgraph_node): Do not dump nest.
5184 (cgraph_clone_edge): Do not take loop_nest argument;
5185 do not propagate it; do not clone call_stmt_size/time.
5186 (cgraph_clone_node): Likewise.
5187 (cgraph_create_virtual_clone): Update.
5188 * cgraph.h (struct cgraph_edge): Remove
5189 call_stmt_size/call_stmt_time/loop_nest.
5190 (cgraph_create_edge, cgraph_create_indirect_edge,
5191 cgraph_create_edge_including_clones, cgraph_clone_node): Update
5192 prototype.
5193 * tree-emutls.c (gen_emutls_addr): Update.
5194 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
5195 loop_nest; handle indirect calls, too.
5196 (clone_inlined_nodes): Do not care about updating inline summaries.
5197 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
5198 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
5199 stream call_stmt_size/call_stmt_time/loop_nest.
5200 * ipa-inline.c (edge_badness): Update.
5201 (ipa_inline): dump summaries after inlining.
5202 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
5203 New.
5204 (inline_edge_summary): New function.
5205 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
5206 (inline_edge_removal_hook): Handle edge summaries.
5207 (inline_edge_duplication_hook): New hook.
5208 (inline_summary_alloc): Alloc hooks.
5209 (initialize_growth_caches): Do not register removal hooks.
5210 (free_growth_caches); Do not free removal hook.
5211 (dump_inline_edge_summary): New function.
5212 (dump_inline_summary): Use it.
5213 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
5214 (inline_update_callee_summaries): New function.
5215 (inline_merge_summary): Use it.
5216 (do_estimate_edge_time, do_estimate_edge_growth): Update.
5217 (read_inline_edge_summary): New function.
5218 (inline_read_section): Use it.
5219 (write_inline_edge_summary): New function.
5220 (inline_write_summary): Use it.
5221 (inline_free_summary): Free edge new holders.
5222 * tree-inline.c (copy_bb): Update.
5223
5224 2011-04-26 Jason Merrill <jason@redhat.com>
5225
5226 * tree-eh.c (lower_try_finally_switch): Create the label along with
5227 the CASE_LABEL_EXPR.
5228
5229 2011-04-26 David S. Miller <davem@davemloft.net>
5230 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5231
5232 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
5233 * configure: Regenerate.
5234
5235 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
5236
5237 PR target/48258
5238 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
5239 reduction.
5240 (VEC_reduc): New code iterator and splitters for vector reduction.
5241 (VEC_reduc_name): Ditto.
5242 (VEC_reduc_rtx): Ditto.
5243 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
5244 (reduc_<VEC_reduc_name>_v4sf): Ditto.
5245
5246 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
5247 support for extracting SF on VSX.
5248
5249 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
5250 generating xscvspdp.
5251 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
5252 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
5253 double add, minimum, maximum vector reduction.
5254 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
5255 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
5256 optimize double vector reduction.
5257 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
5258
5259 2011-04-26 Joseph Myers <joseph@codesourcery.com>
5260
5261 * config/fr30/fr30.h (inhibit_libc): Don't define.
5262 * config/m32r/m32r-protos.h: Correct comment.
5263 * config/v850/v850.h (GHS_default_section_names,
5264 GHS_current_section_names): Use tree, not union tree_node *.
5265
5266 2011-04-26 Xinliang David Li <davidxl@google.com>
5267
5268 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
5269 * c-family/c-opts.c (c_common_handle_option): Set
5270 warn_maybe_uninitialized.
5271 * opts.c (common_handle_option): Ditto.
5272 * common.opt: New option.
5273 * tree-ssa.c (warn_uninit): Add one more parameter.
5274 (warn_uninitialized_var): Pass warning code.
5275 * tree-flow.h: Interface change.
5276
5277 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5278
5279 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
5280 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
5281 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
5282
5283 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5284
5285 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
5286 * config/mips/mips.opt (mmips-tfile): Remove.
5287
5288 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
5289 mips-tdump reference to ...
5290 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
5291 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
5292 reference by Tru64 UNIX.
5293
5294 2011-04-26 Jakub Jelinek <jakub@redhat.com>
5295
5296 PR debug/48768
5297 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
5298 is error_mark_node, set value to NULL.
5299
5300 PR tree-optimization/48734
5301 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
5302 if return value from maybe_fold_*_comparsions isn't something
5303 the code is prepared to handle.
5304
5305 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
5306
5307 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
5308 mode check.
5309 (ext_QIreg_nomode_operands): Remove.
5310 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
5311 (*andsi_1): Ditto.
5312 (*andhi_1): Ditto.
5313
5314 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
5315
5316 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
5317
5318 2011-04-26 Richard Guenther <rguenther@suse.de>
5319
5320 * c-typeck.c (build_unary_op): Do not expand array-refs via
5321 pointer arithmetic. Only adjust qualifiers for function types.
5322
5323 2011-04-26 Richard Guenther <rguenther@suse.de>
5324
5325 PR middle-end/48694
5326 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
5327 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
5328 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
5329 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
5330
5331 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
5332
5333 * doc/extend.texi: Document __underlying_type.
5334
5335 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
5336
5337 * config/rs6000/titan.md (automata_option "progress"): Remove.
5338
5339 2011-04-25 Jeff Law <law@redhat.com>
5340
5341 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
5342
5343 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5344
5345 * system.h (ENUM_BITFIELD): Remove.
5346
5347 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
5348 Eric Botcazou <ebotcazou@adacore.com>
5349
5350 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
5351 for STORE_FLAG_VALUE==-1 case.
5352
5353 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
5354
5355 PR target/43804
5356 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
5357 LEGITIMATE_PIC_OPERAND_P.
5358
5359 2011-04-24 Jan Hubicka <jh@suse.cz>
5360
5361 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
5362 WPA hack.
5363 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
5364 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
5365 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
5366 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
5367 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
5368 Sanity check predicate length.
5369 (remap_predicate): Likewise; sanity check jump functions.
5370 (inline_read_section, inline_write_summary): Sanity check
5371 predicate length.
5372
5373 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5374
5375 PR other/48748
5376 * doc/extend.texi (Type Traits): Document __is_standard_layout,
5377 __is_literal_type, and __is_trivial; update throughout about
5378 possibly cv-qualified void types.
5379
5380 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
5381
5382 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
5383 testsuite and make it version agnostic.
5384
5385 2011-04-22 Jan Hubicka <jh@suse.cz>
5386
5387 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
5388
5389 2011-04-23 Jakub Jelinek <jakub@redhat.com>
5390
5391 PR c/48685
5392 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
5393 to VOID_TYPE even around MODIFY_EXPR.
5394
5395 2011-04-22 Mike Stump <mikestump@comcast.net>
5396
5397 * gensupport.c (read_md_rtx): Fix typo in comment.
5398 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
5399 comment.
5400
5401 2011-04-22 Jan Hubicka <jh@suse.cz>
5402
5403 * gengtype.c (open_base_files): Add ipa-inline.h include.
5404 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
5405 ipa-prop.c; update all uses.
5406 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
5407 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
5408 merge summary of inlined function into former caller.
5409 * ipa-inline.c (max_benefit): Remove.
5410 (edge_badness): Compensate for removal of benefits.
5411 (update_caller_keys): Use
5412 reset_node_growth_cache/reset_edge_growth_cache.
5413 (update_callee_keys): Likewise.
5414 (update_all_callee_keys): Likewise.
5415 (inline_small_functions): Do not collect max_benefit; do not reset
5416 estimated_growth; call free_growth_caches and initialize_growth_caches.
5417 * ipa-inline.h (struct condition, type clause_t, struct predicate,
5418 struct size_time_entry): New structures.
5419 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
5420 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
5421 and estimated_growth.
5422 (edge_growth_cache_entry): New structure.
5423 (node_growth_cache, edge_growth_cache): New global vars.
5424 (estimate_growth): Turn into inline.
5425 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
5426 initialize_growth_caches, free_growth_caches): Declare.
5427 (estimate_edge_growth): Rewrite.
5428 (estimate_edge_time): Implement as inline cache lookup.
5429 (reset_node_growth_cache, reset_edge_growth_cache): New inline
5430 functions.
5431 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
5432 (NUM_CONDITIONS): New constant.
5433 (predicate_conditions): New enum.
5434 (IS_NOT_CONSTANT): New constant.
5435 (edge_removal_hook_holder): New var.
5436 (node_growth_cache, edge_growth_cache): New global vars.
5437 (true_predicate, single_cond_predicate, false_predicate,
5438 not_inlined_predicate, add_condition, add_clause, and_predicates,
5439 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
5440 dump_clause, dump_predicate, account_size_time,
5441 evaulate_conditions_for_edge): New functions.
5442 (inline_summary_alloc): Move to heap.
5443 (inline_node_removal_hook): Clear condition and entry vectors.
5444 (inline_edge_removal_hook): New function.
5445 (initialize_growth_caches, free_growth_caches): New function.
5446 (dump_inline_summary): Update.
5447 (edge_execution_predicate): New function.
5448 (will_be_nonconstant_predicate): New function.
5449 (estimate_function_body_sizes): Compute BB and constantness predicates.
5450 (compute_inline_parameters): Do not clear estimated_growth.
5451 (estimate_edge_size_and_time): New function.
5452 (estimate_calls_size_and_time): New function.
5453 (estimate_callee_size_and_time): New function.
5454 (remap_predicate): New function.
5455 (inline_merge_summary): New function.
5456 (do_estimate_edge_time): New function based on...
5457 (estimate_edge_time): ... this one.
5458 (do_estimate_edge_growth): New function.
5459 (do_estimate_growth): New function based on....
5460 (estimate_growth): ... this one.
5461 (inline_analyze_function): Analyze after deciding on jump functions.
5462 (inline_read_section): New function.
5463 (inline_read_summary): Use it.
5464 (inline_write_summary): Write all the new data.
5465 * ipa-prop.c (ipa_get_param_decl_index): Export.
5466 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
5467 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
5468 Declare.
5469 (ipa_get_lattice): Move here from ipa-cp.c
5470 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
5471 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
5472 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
5473 cgraph_edge_inlinable_p): Remove.
5474 * cgraphunit.c: Include ipainline.h
5475 (cgraph_process_new_functions): Update call of
5476 compute_inline_parameters.
5477
5478 2011-04-22 Richard Guenther <rguenther@suse.de>
5479
5480 * tree.c (build_int_cst): Properly create canonicalized integer
5481 constants.
5482 (build_int_cst_type): Remove scary comments.
5483
5484 2011-04-22 Xinliang David Li <davidxl@google.com>
5485
5486 * toplev.c (process_options): Enable -Werror=coverage-mismatch
5487 by default when -Wno-error is not specified.
5488 * opts-global.c (decode_options): Remove call to
5489 control_warning_options.
5490
5491 2011-04-22 Jakub Jelinek <jakub@redhat.com>
5492
5493 PR tree-optimization/48717
5494 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
5495 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
5496
5497 2011-04-22 Joseph Myers <joseph@codesourcery.com>
5498
5499 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
5500 definition where used.
5501
5502 2011-04-22 Jakub Jelinek <jakub@redhat.com>
5503
5504 PR c/48716
5505 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
5506 TREE_STATIC variables declared inside of some OpenMP construct.
5507
5508 2011-04-22 Martin Jambor <mjambor@suse.cz>
5509
5510 PR middle-end/48585
5511 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
5512
5513 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
5514
5515 PR c/36750
5516 * c-typeck.c (pop_init_level): Do not warn about initializing
5517 with ` = {0}'.
5518
5519 2011-04-22 Alan Modra <amodra@gmail.com>
5520
5521 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
5522 when returning call_cookie.
5523 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
5524 pointers, to functions with no more vector args than the current
5525 function, and some non-local calls for ABI_V4.
5526 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
5527 sibcall_nonlocal_aix64): Combine to ..
5528 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
5529 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
5530 (sibcall_value_nonlocal_aix<mode>): ..likewise.
5531 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
5532 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
5533 operand.
5534 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
5535 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
5536 sibcall_value_symbolic_64): Delete.
5537
5538 2011-04-21 Xinliang David Li <davidxl@google.com>
5539
5540 * cgraph.h: Remove pid.
5541 * cgraph.c: Remove pid.
5542 * value-prof.c (init_node_map): New function.
5543 (del_node_map): New function.
5544 (find_func_by_funcdef_no): New function.
5545 (gimple_ic_transform): Call new function.
5546 * cgraphunit.c (cgraph_finalize_function): Remove pid.
5547 * function.c (get_last_funcdef_no): New function.
5548 * function.h (get_last_funcdef_no): New function.
5549 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
5550 to libgcov function.
5551 (tree-profiling): Call node map init and delete function.
5552
5553 2011-04-21 Ian Lance Taylor <iant@google.com>
5554
5555 * godump.c (go_format_type): Use exported Go name for anonymous
5556 field name.
5557
5558 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5559
5560 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
5561 Call builtin_function_type_list instead of builtin_function_type.
5562 (UNARY, BINARY, TRINARY, QUAD): Likewise.
5563
5564 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5565
5566 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
5567 build_function_type_list instead of build_function_type.
5568 Delete variable `endlink'.
5569
5570 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5571
5572 * config/s390/s390.c (s390_init_builtins): Call
5573 build_function_type_list instead of build_function_type.
5574
5575 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5576
5577 * config/ia64/ia64.c (ia64_init_builtins): Call
5578 build_function_type_list instead of builtin_function_type.
5579
5580 2011-04-21 Easwaran Raman <eraman@google.com>
5581
5582 * cfgexpand.c (stack_var): Remove OFFSET...
5583 (add_stack_var): ...and its reference here...
5584 (expand_stack_vars): ...and here.
5585 (stack_var_cmp): Sort by descending order of size.
5586 (partition_stack_vars): Change heuristic.
5587 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
5588 (dump_stack_var_partition): Add newline after each partition.
5589
5590 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
5591 Jeff Law <law@redhat.com>
5592
5593 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
5594 * gengtype.c (matching_file_name_substitute): Likewise.
5595
5596 2011-04-21 Richard Guenther <rguenther@suse.de>
5597
5598 PR lto/48703
5599 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
5600
5601 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
5602
5603 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
5604
5605 2011-04-21 Richard Guenther <rguenther@suse.de>
5606
5607 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
5608 file name.
5609
5610 2011-04-21 Richard Guenther <rguenther@suse.de>
5611
5612 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
5613 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
5614 Use DECL_P, not SSA_VAR_P.
5615 (ptr_derefs_may_alias_p): Likewise.
5616 (ptr_deref_may_alias_ref_p_1): Likewise.
5617 (decl_refs_may_alias_p): Likewise.
5618 (refs_may_alias_p_1): Likewise.
5619 (ref_maybe_used_by_call_p_1): Likewise.
5620 (call_may_clobber_ref_p_1): Likewise.
5621 (indirect_ref_may_alias_decl_p): Assume indirect refrences
5622 are either MEM_REF or TARGET_MEM_REF.
5623 (indirect_refs_may_alias_p): Likewise.
5624 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
5625 for MEM_EXPR of indirect calls.
5626
5627 2011-04-21 Tristan Gingold <gingold@adacore.com>
5628
5629 * vmsdbgout.c (write_srccorr): Compute file length from the string.
5630 (dst_file_info_struct): Remove flen field.
5631 (lookup_filename): Remove code that set flen field.
5632
5633 2011-04-21 Tristan Gingold <gingold@adacore.com>
5634
5635 * config/ia64/ia64.c (ia64_start_function): Add a guard.
5636
5637 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
5638
5639 PR target/48708
5640 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
5641 vec_extract and vec_concat for non-SSE4_1 targets.
5642
5643 2011-04-21 Richard Guenther <rguenther@suse.de>
5644
5645 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
5646 return statements.
5647
5648 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5649
5650 * config/i386/cygming.h (union tree_node, TREE): Don't define or
5651 undefine.
5652 (FILE): Don't undefine.
5653
5654 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5655
5656 * config/alpha/alpha.c (struct machine_function): Use rtx, not
5657 struct rtx_def *.
5658 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
5659 struct rtx_def *.
5660 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
5661 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
5662 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
5663 rtx_def *.
5664 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
5665 definitions where used.
5666 * config/microblaze/microblaze.h (struct microblaze_args): Use
5667 rtx, not struct rtx_def *.
5668 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
5669 rtx_def *.
5670 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
5671 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
5672 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
5673 not struct rtx_def *.
5674 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
5675 struct rtx_def *.
5676 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
5677 rtx_def *.
5678 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
5679
5680 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5681
5682 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
5683 operand_equal_p to compare DR_BASE_ADDRESSes.
5684 (vect_check_interleaving): Likewise.
5685
5686 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5687
5688 PR target/46329
5689 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
5690 for all Neon struct constants.
5691
5692 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5693
5694 * target.def (legitimate_constant_p): New hook.
5695 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
5696 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
5697 * doc/tm.texi: Regenerate.
5698 * hooks.h (hook_bool_mode_rtx_true): Declare.
5699 * hooks.c (hook_bool_mode_rtx_true): Define.
5700 * system.h (LEGITIMATE_CONSTANT_P): Poison.
5701 * calls.c (precompute_register_parameters): Replace uses of
5702 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
5703 (emit_library_call_value_1): Likewise.
5704 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
5705 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
5706 * ira-costs.c (scan_one_insn): Likewise.
5707 * recog.c (general_operand, immediate_operand): Likewise.
5708 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
5709 * reload1.c (init_eliminable_invariants): Likewise.
5710
5711 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
5712 mode argument.
5713 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
5714 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
5715 argument.
5716 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5717 * config/alpha/predicates.md (input_operand): Update call to
5718 alpha_legitimate_constant_p.
5719
5720 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
5721 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
5722 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
5723 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5724 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
5725 (arm_legitimate_constant_p): New functions.
5726 (arm_cannot_force_const_mem): Make static.
5727
5728 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
5729
5730 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
5731 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
5732 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
5733 instead of bfin_legitimate_constant_p.
5734 (bfin_legitimate_constant_p): Make static. Add a mode argument.
5735 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5736
5737 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
5738
5739 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
5740
5741 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
5742 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
5743 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5744 (frv_legitimate_constant_p): Make static. Add a mode argument.
5745
5746 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
5747 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
5748 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
5749
5750 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
5751 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
5752 * config/i386/i386.c (legitimate_constant_p): Rename to...
5753 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
5754 argument.
5755 (ix86_cannot_force_const_mem): Update accordingly.
5756 (ix86_legitimate_address_p): Likewise.
5757 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5758 * config/i386/i386.md: Update commentary.
5759
5760 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
5761 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
5762 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5763 (ia64_legitimate_constant_p): Make static. Add a mode argument.
5764
5765 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
5766
5767 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
5768 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
5769 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5770 (lm32_legitimate_constant_p): Make static. Add a mode argument.
5771
5772 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
5773 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
5774 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
5775
5776 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
5777 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5778 (m32r_legitimate_constant_p): New function.
5779
5780 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
5781 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
5782 LEGITIMATE_CONSTANT_P.
5783 (LEGITIMATE_CONSTANT_P): Delete.
5784 * config/m68k/m68k.c (m68k_expand_prologue): Call
5785 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
5786 (m68k_legitimate_constant_p): New function.
5787 * config/m68k/m68k.md: Update comments.
5788
5789 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
5790 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5791 (mcore_legitimate_constant_p): New function.
5792
5793 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
5794 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
5795 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
5796 Add a mode argument.
5797 (mep_legitimate_address): Update accordingly.
5798 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5799
5800 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
5801 Delete.
5802 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
5803 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
5804 static. Check OP's mode for VOIDmode.
5805 (microblaze_legitimate_constant_p): New function.
5806 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5807
5808 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
5809 * config/mips/mips.c (mips_legitimate_constant_p): New function.
5810 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
5811 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5812 * config/mips/predicates.md: Update comments.
5813
5814 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
5815 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
5816 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5817 (mmix_legitimate_constant_p): Make static, return a bool, and take
5818 a mode argument.
5819 (mmix_print_operand_address): Update accordingly.
5820
5821 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
5822 Delete.
5823 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
5824 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
5825 static. Add a mode argument.
5826 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5827
5828 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
5829
5830 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
5831 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5832 (pa_legitimate_constant_p): New function.
5833
5834 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
5835
5836 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
5837 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5838 (pdp11_legitimate_constant_p): New function.
5839
5840 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
5841 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5842 (rs6000_legitimate_constant_p): New function.
5843
5844 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
5845 (rx_legitimate_constant_p): ...this.
5846 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
5847 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
5848 (rx_legitimate_constant_p): ...this.
5849 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5850 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
5851
5852 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
5853 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
5854 * config/s390/s390.c (legitimate_constant_p): Rename to...
5855 (s390_legitimate_constant_p): ...this. Make static, return a bool,
5856 and add a mode argument.
5857 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5858
5859 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
5860
5861 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
5862 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5863 (sh_legitimate_constant_p): New function.
5864
5865 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
5866 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
5867 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5868 (legitimate_constant_p): Rename to...
5869 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
5870 argument.
5871 (constant_address_p): Update accordingly.
5872
5873 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
5874 argument and return a bool.
5875 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
5876 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5877 (spu_legitimate_constant_p): Add a mode argument and return a bool.
5878 (spu_rtx_costs): Update accordingly.
5879 * config/spu/predicates.md (vec_imm_operand): Likewise.
5880
5881 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
5882
5883 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
5884 * config/v850/v850.c (v850_legitimate_constant_p): New function.
5885 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5886
5887 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
5888 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
5889 * config/vax/vax.c (legitimate_constant_p): Likewise.
5890
5891 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
5892 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5893 (xtensa_legitimate_constant_p): New function.
5894
5895 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5896
5897 * target.def (cannot_force_const_mem): Add a mode argument.
5898 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
5899 * doc/tm.texi: Regenerate.
5900 * hooks.h (hook_bool_mode_rtx_false): Declare.
5901 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
5902 (hook_bool_mode_const_rtx_true): Likewise.
5903 (hook_bool_mode_rtx_false): New function.
5904 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
5905 to be non-VOID. Update call to cannot_force_const_mem.
5906 (find_reloads): Update accordingly.
5907 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
5908 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
5909 argument.
5910 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
5911 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
5912 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
5913 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
5914 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
5915 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
5916 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
5917 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5918 (m68k_cannot_force_const_mem): ...this new function.
5919 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
5920 argument.
5921 (mips_const_insns, mips_legitimize_const_move): Update calls.
5922 (mips_secondary_reload_class): Likewise.
5923 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5924 (pa_cannot_force_const_mem): ...this new function.
5925 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
5926 (rs6000_cannot_force_const_mem): ...this new function.
5927 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
5928 argument.
5929 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
5930 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
5931 to...
5932 (xtensa_cannot_force_const_mem): ...this new function.
5933
5934 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5935
5936 * config/mips/mips.c (mips16_build_function_stub): Call
5937 build_function_type_list instead of build_function_type.
5938 (mips16_build_call_stub): Likewise.
5939
5940 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5941
5942 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
5943 instead of build_function_type.
5944
5945 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5946
5947 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
5948 instead of build_function_type.
5949
5950 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
5951
5952 PR target/48678
5953 * config/i386/i386.md (insv): Change operand 0 constraint to
5954 "register_operand". Change operand 1 and 2 constraint to
5955 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
5956 * config/i386/sse.md (sse4_1_pinsrb): Export.
5957 (sse2_pinsrw): Ditto.
5958 (sse4_1_pinsrd): Ditto.
5959 (sse4_1_pinsrq): Ditto.
5960 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
5961 * config/i386/i386.c (ix86_expand_pinsr): New.
5962
5963 2011-04-20 Easwaran Raman <eraman@google.com>
5964
5965 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
5966 containing union type only with -fstrict-aliasing.
5967
5968 2011-04-20 Jim Meyering <meyering@redhat.com>
5969
5970 Remove useless if-before-free tests.
5971 * calls.c (expand_call, save_area): Likewise.
5972 * cfgcleanup.c (try_forward_edges): Likewise.
5973 * collect2.c (collect_execute): Likewise.
5974 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
5975 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
5976 * coverage.c (coverage_checksum_string): Likewise.
5977 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
5978 * cselib.c (cselib_init): Likewise.
5979 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
5980 (df_set_clean_cfg): Likewise.
5981 * function.c (free_after_compilation): Likewise.
5982 * gcc.c (do_spec_1, main): Likewise.
5983 * gcov.c (create_file_names): Likewise.
5984 * gensupport.c (identify_predicable_attribute): Likewise.
5985 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
5986 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
5987 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
5988 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
5989 * ipa-pure-const.c (local_pure_const): Likewise.
5990 * ipa-reference.c (propagate): Likewise.
5991 * ira-costs.c (free_ira_costs): Likewise.
5992 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
5993 * matrix-reorg.c (mat_free): Likewise.
5994 * prefix.c (get_key_value): Likewise.
5995 * profile.c (compute_value_histograms): Likewise.
5996 * reload1.c (free_reg_equiv): Likewise.
5997 * sched-deps.c (free_deps): Likewise.
5998 * sel-sched-ir.c (fence_clear): Likewise.
5999 * sese.c (set_rename, if_region_set_false_region): Likewise.
6000 * tree-data-ref.c (free_rdg): Likewise.
6001 * tree-eh.c (lower_try_finally): Likewise.
6002 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
6003 * tree-ssa-live.c (delete_var_map): Likewise.
6004 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
6005 * tree-ssa-pre.c (phi_trans_add): Likewise.
6006
6007 2011-04-20 Jakub Jelinek <jakub@redhat.com>
6008
6009 PR tree-optimization/48611
6010 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
6011 beyond ERT_MUST_NOT_THROW region.
6012
6013 2011-04-20 Catherine Moore <clm@codesourcery.com>
6014
6015 * config/mips/mips.opt (mfix-24k): New.
6016 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
6017 * config/mips/mips.md (length): Increase by 4 for stores if
6018 fixing 24K errata.
6019 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
6020 all noreorder if fixing 24K errata.
6021 * doc/invoke.texi: Document mfix-24k.
6022
6023 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
6024
6025 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
6026 quad-word modes, reduce to 9-bit index range when above 1016 limit.
6027
6028 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
6029
6030 * config/arm/arm.c (arm_gen_constant): Move movw support ....
6031 (const_ok_for_op): ... to here.
6032
6033 2011-04-20 Kai Tietz <ktietz@redhat.com>
6034
6035 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
6036 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
6037
6038 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
6039
6040 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
6041
6042 2011-04-20 Richard Guenther <rguenther@suse.de>
6043
6044 PR tree-optimization/47892
6045 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
6046 are if-convertible.
6047
6048 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
6049
6050 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
6051
6052 2011-04-20 Tristan Gingold <gingold@adacore.com>
6053
6054 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
6055
6056 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
6057
6058 PR target/18145
6059
6060 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
6061 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
6062 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
6063 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
6064 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
6065
6066 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
6067 New prototype.
6068
6069 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
6070 (avr_asm_named_section, avr_asm_output_aligned_common,
6071 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
6072 New functions to update...
6073 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
6074 (avr_asm_init_sections): Overwrite section callbacks for
6075 data_section, bss_section.
6076 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
6077 from here to...
6078 (avr_file_end): ...here.
6079
6080 2011-04-20 Richard Guenther <rguenther@suse.de>
6081
6082 PR middle-end/48695
6083 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
6084 objects and types here. Adjust for their offset before comparing.
6085
6086 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
6087
6088 * tree-vect-stmts.c (vectorizable_store): Only chain one related
6089 statement per copy.
6090
6091 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
6092
6093 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
6094 (GIMPLE_H): Include $(INTERNAL_FN_H).
6095 (OBJS-common): Add internal-fn.o.
6096 (internal-fn.o): New rule.
6097 * internal-fn.def: New file.
6098 * internal-fn.h: Likewise.
6099 * internal-fn.c: Likewise.
6100 * gimple.h: Include internal-fn.h.
6101 (GF_CALL_INTERNAL): New gf_mask.
6102 (gimple_statement_call): Put fntype into a union with a new
6103 internal_fn field.
6104 (gimple_build_call_internal): Declare.
6105 (gimple_build_call_internal_vec): Likewise.
6106 (gimple_call_same_target_p): Likewise.
6107 (gimple_call_internal_p): New function.
6108 (gimple_call_internal_fn): Likewise.
6109 (gimple_call_fntype): Return null for internal calls.
6110 (gimple_call_set_fntype): Assert that the function is not internal.
6111 (gimple_call_set_fn): Likewise.
6112 (gimple_call_set_fndecl): Likewise.
6113 (gimple_call_set_internal_fn): New function.
6114 (gimple_call_addr_fndecl): Handle null functions.
6115 (gimple_call_return_type): Likewise null types.
6116 * gimple.c (gimple_build_call_internal_1): New function.
6117 (gimple_build_call_internal): Likewise.
6118 (gimple_build_call_internal_vec): Likewise.
6119 (gimple_call_same_target_p): Likewise.
6120 (gimple_call_flags): Handle calls to internal functions.
6121 (gimple_call_fnspec): New function.
6122 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
6123 (gimple_has_side_effects): Handle null functions.
6124 (gimple_rhs_has_side_effects): Likewise.
6125 (gimple_call_copy_skip_args): Handle calls to internal functions.
6126 * cfgexpand.c (expand_call_stmt): Likewise.
6127 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
6128 * gimple-fold.c (gimple_fold_call): Handle null functions.
6129 (gimple_fold_stmt_to_constant_1): Don't fold
6130 calls to internal functions.
6131 * gimple-low.c (gimple_check_call_args): Handle calls to internal
6132 functions.
6133 * gimple-pretty-print.c (dump_gimple_call): Likewise.
6134 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
6135 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
6136 (do_warn_unused_result): Likewise.
6137 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
6138 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
6139 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
6140 the target of a call.
6141 (initialize_hash_element): Update accordingly.
6142 (hashable_expr_equal_p): Use gimple_call_same_target_p.
6143 (iterative_hash_hashable_expr): Handle calls to internal functions.
6144 (print_expr_hash_elt): Likewise.
6145 * tree-ssa-pre.c (can_value_number_call): Likewise.
6146 (eliminate): Handle null functions.
6147 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
6148 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
6149 (find_func_aliases): Likewise.
6150 * value-prof.c (gimple_ic_transform): Likewise.
6151 (gimple_indirect_call_to_profile): Likewise.
6152 * lto-streamer-in.c (input_gimple_stmt): Likewise.
6153 * lto-streamer-out.c (output_gimple_stmt): Likewise.
6154
6155 2011-04-19 Jan Hubicka <jh@suse.cz>
6156
6157 * ipa-inline-transform.c (save_inline_function_body): Add comments.
6158 * ipa-inline.c (inline_small_functions): Compute summaries first,
6159 populate heap later.
6160
6161 2011-04-19 Jan Hubicka <jh@suse.cz>
6162
6163 * cgraph.h (save_inline_function_body): Remove.
6164 * ipa-inline-transform.c: New file, broke out of...
6165 * ipa-inline.c: ... this one; Update toplevel comment.
6166 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
6167 make global.
6168 (update_noncloned_frequencies): Move to ipa-inline-transform.c
6169 (cgraph_mark_inline_edge): Rename to inline_call; move to
6170 ipa-inline-transform.c.
6171 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
6172 move to ipa-inline-transform.c
6173 (recursive_inlining, inline_small_functions, flatten_function,
6174 ipa_inline, inline_always_inline_functions,
6175 early_inline_small_functions): Update.
6176 (inline_transform): Move to ipa-inline-transform.c.
6177 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
6178 Declare.
6179 * Makefile.in (ipa-inline-transform.o): New file.
6180 * cgraphunit.c (save_inline_function_body): Move to
6181 ipa-inline-transform.c
6182
6183 2011-04-19 DJ Delorie <dj@redhat.com>
6184
6185 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
6186 registers if we already know there aren't any.
6187 (m32c_emit_epilogue): Don't emit a barrier here.
6188 (m32c_emit_eh_epilogue): Likewise.
6189 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
6190 operands at expand time.
6191 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
6192 int" wchar type.
6193 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
6194 duplicates. Provide aliases instead.
6195 * config/m32c/prologue.md (eh_return): Emit a barrier here.
6196 (eh_epilogue): Add a "(return)" here as a hint to other parts of
6197 the compiler.
6198
6199 2011-04-19 Anatoly Sokolov <aesok@post.ru>
6200
6201 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
6202 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
6203 (general_or_i64_p, sparc_register_move_cost): New function.
6204
6205 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6206
6207 * doc/install.texi (Configuration, --enable-threads): Remove mach.
6208 Add lynx, mipssde. Sort table.
6209
6210 2011-04-19 Xinliang David Li <davidxl@google.com>
6211
6212 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
6213 not negative.
6214
6215 2011-04-19 Jakub Jelinek <jakub@redhat.com>
6216
6217 PR target/48678
6218 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
6219 is a SUBREG with non-MODE_INT mode inside of it.
6220
6221 2011-04-19 Martin Jambor <mjambor@suse.cz>
6222
6223 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
6224 also according to actual contants.
6225 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
6226 (gimple_fold_call): Use it.
6227 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
6228
6229 2011-04-19 Martin Jambor <mjambor@suse.cz>
6230
6231 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
6232 non-pointer assignments.
6233
6234 2011-04-19 Martin Jambor <mjambor@suse.cz>
6235
6236 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
6237 account anc_offset and otr_type from the indirect edge info.
6238 * ipa-prop.c (get_ancestor_addr_info): New function.
6239 (compute_complex_ancestor_jump_func): Assignment analysis moved to
6240 get_ancestor_addr_info, call it.
6241 (ipa_note_param_call): Do not initialize information about polymorphic
6242 calls, return the indirect call graph edge. Remove the last
6243 parameter, adjust all callers.
6244 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
6245 parameters. Initialize polymorphic information in the indirect edge.
6246
6247 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
6248
6249 PR lto/48148
6250 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
6251 the types if they have different enumeration identifiers.
6252
6253 2011-04-19 Jan Hubicka <jh@suse.cz>
6254
6255 * cgraph.h (cgraph_optimize_for_size_p): Declare.
6256 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
6257 * predict.c (cgraph_optimize_for_size_p): Break out from ...
6258 (optimize_function_for_size_p) ... here.
6259
6260 2011-04-19 Richard Guenther <rguenther@suse.de>
6261
6262 PR lto/48207
6263 * tree.c (free_lang_data): Do not reset the decl-assembler-name
6264 langhook.
6265
6266 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
6267
6268 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
6269 if DECL_NO_INLINE_WARNING_P is set on the function.
6270
6271 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
6272
6273 PR fortran/47976
6274 * reload1.c (inc_for_reload): Return void. All callers changed.
6275 (emit_input_reload_insns): Don't try to delete previous output
6276 reloads to a register, or record spill_reg_store for autoincs.
6277
6278 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
6279
6280 * gengtype.h: Updated copyright year.
6281 (struct input_file_st): Add inpisplugin field.
6282 (type_fileloc): New function.
6283 * gengtype.c
6284 (write_typed_struct_alloc_def): Add gcc_assert.
6285 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
6286 (write_typed_alloc_defns): Don't output for plugin files.
6287 (input_file_by_name): Clear inpisplugin field.
6288 (main): Set inpisplugin field for plugin files.
6289
6290 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
6291
6292 * gengtype-state.c (string_eq): New.
6293 (read_state): Use string_eq instead of strcmp when creating the
6294 state_ident_tab.
6295
6296 2011-04-19 Wei Guozhi <carrot@google.com>
6297
6298 PR target/47855
6299 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
6300 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
6301 linkage.
6302 * config/arm/constraints.md (Uu): New constraint.
6303 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
6304
6305 2011-04-19 Tristan Gingold <gingold@adacore.com>
6306
6307 * config.gcc (-*-*-*vms): Added.
6308 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
6309 definitions moved.
6310 * config/vms/vms-ld.c: New file.
6311 * config/vms/vms-ar.c: New file.
6312 * config/vms/t-vmsnative: New file.
6313
6314 2011-04-18 Xinliang David Li <davidxl@google.com>
6315
6316 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
6317
6318 2011-04-18 Jakub Jelinek <jakub@redhat.com>
6319
6320 PR middle-end/48661
6321 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
6322 if TREE_TYPE (v) is non-NULL.
6323
6324 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
6325 gimple_get_virt_mehtod_for_binfo.
6326 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
6327 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
6328 callers.
6329 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
6330
6331 2011-04-18 Michael Matz <matz@suse.de>
6332 Steve Ellcey <sje@cup.hp.com>
6333
6334 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
6335 use its mode as source mode if it isn't VOIDmode.
6336
6337 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
6338
6339 * doc/passes.texi: Fill crossref nodes.
6340
6341 2011-04-18 Jim Meyering <meyering@redhat.com>
6342
6343 Fix doubled-word typos in comments and strings
6344 * config/alpha/vms-unwind.h: s/for for/for/
6345 * config/arm/unwind-arm.h: Likewise.
6346 * config/microblaze/microblaze.c: Likewise.
6347 * config/sh/constraints.md: s/in in/in/
6348 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
6349
6350 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
6351
6352 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
6353 (AVX_FLOAT_MODE_P): Ditto.
6354 (AVX128_VEC_FLOAT_MODE_P): Ditto.
6355 (AVX256_VEC_FLOAT_MODE_P): Ditto.
6356 (AVX_VEC_FLOAT_MODE_P): Ditto.
6357 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
6358 (UNSPEC_MASKSTORE): Ditto.
6359 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
6360 Merge from <sse>_movmsk<ssemodesuffix> and
6361 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
6362 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
6363 iterator.
6364 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
6365 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
6366 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
6367
6368 2011-04-18 Jan Hubicka <jh@suse.cz>
6369
6370 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
6371
6372 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
6373 (want_inline_function_called_once_p): Break out the logic from
6374 ipa_inline.
6375 (edge_badness): Ensure that profile is not misupdated.
6376 (lookup_recursive_calls): Prioritize by call frequencies.
6377 (inline_small_functions): Move program size estimates here;
6378 actually process whole queue even when unit growth has been
6379 met. (to properly compute inline_failed reasons and for the
6380 case unit size decrease.) Revisit comments on recursive inlining.
6381 (ipa_inline): Remove unit summary code; first inline hot calls
6382 of functions called once, cold calls next.
6383 (order, nnodes): Remove unused variables.
6384 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
6385 (GTFILES): Remove ipa-inline.c
6386 * sel-sched.c (fill_insns): Silence uninitialized var warning.
6387
6388 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
6389
6390 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
6391
6392 2011-04-18 Jie Zhang <jie@codesourcery.com>
6393 Richard Earnshaw <rearnsha@arm.com>
6394
6395 * arm.c (neon_builtin_type_bits): Remove.
6396 (typedef enum neon_builtin_mode): New.
6397 (T_MAX): Don't define.
6398 (typedef enum neon_builtin_datum): Remove bits, codes[],
6399 num_vars and base_fcode. Add mode, code and fcode.
6400 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
6401 VAR10): Change accordingly.
6402 (neon_builtin_data[]): Change accordingly
6403 (arm_init_neon_builtins): Change accordingly.
6404 (neon_builtin_compare): Remove.
6405 (locate_neon_builtin_icode): Remove.
6406 (arm_expand_neon_builtin): Change accordingly.
6407
6408 * arm.h (enum arm_builtins): Move to ...
6409 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
6410
6411 * arm.c (arm_builtin_decl): Declare.
6412 (TARGET_BUILTIN_DECL): Define.
6413 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
6414 (arm_builtin_decls[]): New.
6415 (arm_init_neon_builtins): Store builtin declarations in
6416 arm_builtin_decls[].
6417 (arm_init_tls_builtins): Likewise.
6418 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
6419 (arm_builtin_decl): New.
6420
6421 2011-04-18 Richard Guenther <rguenther@suse.de>
6422
6423 * tree.c (upper_bound_in_type): Build properly canonicalized
6424 INTEGER_CSTs.
6425 (lower_bound_in_type): Likewise.
6426
6427 2011-04-18 Richard Guenther <rguenther@suse.de>
6428
6429 * gimple.h (gimple_call_addr_fndecl): New function.
6430 (gimple_call_fndecl): Use it.
6431 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
6432 for direct calls.
6433 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
6434 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
6435
6436 2011-04-18 Richard Guenther <rguenther@suse.de>
6437
6438 PR middle-end/48650
6439 * tree.c (build_string): STRING_CST is now derived from tree_typed.
6440
6441 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
6442
6443 PR lto/48492
6444 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
6445 DECL_IN_CONSTANT_POOL without RTL.
6446
6447 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
6448 Ira Rosen <ira.rosen@linaro.org>
6449
6450 PR target/48252
6451 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
6452 to match neon_vzip/vuzp/vtrn_internal.
6453 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
6454 outputs explicitly dependent on both inputs.
6455 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
6456
6457 2011-04-18 Jakub Jelinek <jakub@redhat.com>
6458
6459 PR tree-optimization/48616
6460 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
6461 whether the shift is by scalar or vector based on whether all SLP
6462 scalar stmts have the same rhs.
6463
6464 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
6465
6466 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
6467 memory operands.
6468
6469 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
6470
6471 PR target/43700
6472 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
6473 registers.
6474
6475 2011-04-17 Jan Hubicka <jh@suse.cz>
6476
6477 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
6478 * cgrpahunit.c (cgraph_finalize_function): Do not set
6479 finalized_by_frontend.
6480 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6481 finalized_by_frontend.
6482
6483 2011-04-17 Jan Hubicka <jh@suse.cz>
6484
6485 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
6486 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
6487 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
6488 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
6489 method.
6490 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
6491 gimple-fold.c
6492 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
6493
6494 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
6495
6496 PR lto/48538
6497 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
6498 is non-null before accessing it.
6499 (input_cgraph): Remove trailing spaces.
6500
6501 2011-04-17 Revital Eres <revital.eres@linaro.org>
6502
6503 * params.def (sms-min-sc): New param flag.
6504 * modulo-sched.c (sms_schedule): Use it.
6505 * doc/invoke.texi (sms-min-sc): Document it.
6506
6507 2011-04-17 Jan Hubicka <jh@suse.cz>
6508
6509 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
6510 present, also set gimple_call_set_cannot_inline.
6511 * ipa-inline.c: Update toplevel comment.
6512 (MAX_TIME): Remove.
6513 (cgraph_clone_inlined_nodes): Fix linebreaks.
6514 (cgraph_check_inline_limits): Restructure to ...
6515 (caller_growth_limits): ... this one; be more tolerant
6516 on growth in nested inline chains; add explanatory comment;
6517 fix stack accounting thinko introduced by previous patch.
6518 (cgraph_default_inline_p): Remove.
6519 (report_inline_failed_reason): New function.
6520 (can_inline_edge_p): New function.
6521 (can_early_inline_edge_p): New function.
6522 (leaf_node_p): Move upwards in file.
6523 (want_early_inline_function_p): New function.
6524 (want_inline_small_function_p): New function.
6525 (want_inline_self_recursive_call_p): New function.
6526 (cgraph_edge_badness): Rename to ...
6527 (edge_badness) ... this one; fix linebreaks.
6528 (update_edge_key): Update call of edge_baddness; add
6529 detailed dump about queue updates.
6530 (update_caller_keys): Use can_inline_edge_p and
6531 want_inline_small_function_p.
6532 (cgraph_decide_recursive_inlining): Rename to...
6533 (recursive_inlining): Use can_inline_edge_p and
6534 want_inline_self_recursive_call_p; simplify and remove no longer
6535 valid FIXME.
6536 (cgraph_set_inline_failed): Remove.
6537 (add_new_edges_to_heap): Use can_inline_edge_p and
6538 want_inline_small_function_p.
6539 (cgraph_decide_inlining_of_small_functions): Rename to ...
6540 (inline_small_functions): ... this one; cleanup; use
6541 can/want predicates; cleanup debug ouput; work edges till fibheap
6542 is exhausted and do not stop once unit growth is reached; remove
6543 later loop processing remaining edges.
6544 (cgraph_flatten): Rename to ...
6545 (flatten_function): ... this one; use can_inline_edge_p
6546 and can_early_inline_edge_p predicates.
6547 (cgraph_decide_inlining): Rename to ...
6548 (ipa_inline): ... this one; remove unreachable nodes before
6549 inlining functions called once; simplify the pass.
6550 (cgraph_perform_always_inlining): Rename to ...
6551 (inline_always_inline_functions): ... this one; use
6552 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
6553 (cgraph_decide_inlining_incrementally): Rename to ...
6554 (early_inline_small_functions): ... this one; simplify
6555 using new predicates; cleanup; make dumps prettier.
6556 (cgraph_early_inlining): Rename to ...
6557 (early_inliner): newer inline regular functions into always-inlines;
6558 fix updating of call stmt summaries.
6559 (pass_early_inline): Update for new names.
6560 (inline_transform): Fix formating.
6561 (gate_cgraph_decide_inlining): Rename to ...
6562 (pass_ipa_inline): ... this one.
6563 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
6564 * ipa-inline-analysis.c (dump_inline_summary): Update.
6565 (compute_inline_parameters): Do not compute disregard_inline_limits;
6566 look for mismatching arguments.
6567 (estimate_growth): Fix handlig of non-trivial self recursion.
6568 (inline_read_summary): Do not read info->disregard_inline_limits.
6569 (inline_write_summary): Do not write info->disregard_inline_limits.
6570 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
6571 and move all checks into can_inline_edge_p predicate; re-enable code
6572 comparing optimization levels.
6573 (expand_call_inline): Do not test inline_forbidden_into_p.
6574 * Makefile.in (ipa-inline.o): Update arguments.
6575
6576 2011-04-17 Revital Eres <revital.eres@linaro.org>
6577
6578 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
6579
6580 2011-04-17 Revital Eres <revital.eres@linaro.org>
6581
6582 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
6583
6584 2011-04-17 Michael Matz <matz@suse.de>
6585
6586 PR tree-optimization/48622
6587 PR lto/48645
6588 * ipa-inline-analysis.c (inline_read_summary): Read size/time
6589 in same order as they're written.
6590
6591 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6592
6593 * config/pa/predicates.md: Reorganize and simplify predicates.
6594 Eliminate duplicate code checks.
6595 (arith_operand): Rename to arith14_operand
6596 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
6597 * config/pa/pa.md: Use renamed operands.
6598 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
6599 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
6600 arith11_operand, adddi3_operand, indexed_memory_operand,
6601 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
6602 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
6603 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
6604 move_dest_operand, move_src_operand, prefetch_cc_operand,
6605 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
6606 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
6607 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
6608 div_operand, int5_operand, movb_comparison_operator,
6609 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
6610 arith_double_operand, ireg_operand, lhs_lshift_operand,
6611 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
6612 integer_store_memory_operand): Likewise.
6613 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
6614 (integer_store_memory_operand, read_only_operand,
6615 function_label_operand, borx_reg_operand,
6616 non_hard_reg_operand): Likewise.
6617 (eq_neq_comparison_operator): Delete unused operator.
6618 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
6619 function_label_operand.
6620 (emit_move_sequence): Likewise.
6621
6622 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
6623
6624 * config/i386/sse.md (sseunpackmode): New mode attribute.
6625 (ssepackmode): Ditto.
6626 (vec_pack_trunc_<mode>): Macroize expander from
6627 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
6628 (vec_unpacks_lo_<mode>): Macroize expander from
6629 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6630 (vec_unpacks_hi_<mode>): Macroize expander from
6631 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6632 (vec_unpacku_lo_<mode>): Macroize expander from
6633 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6634 (vec_unpacku_hi_<mode>): Macroize expander from
6635 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6636 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
6637 ix86_expand_sse4_unpack.
6638 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
6639
6640 2011-04-16 Jan Hubicka <jh@suse.cz>
6641
6642 * cgraphbuild.c: Include ipa-inline.h.
6643 (reset_inline_failed): Use initialize_inline_failed.
6644 * cgraph.c: Include ipa-inline.h.
6645 (cgraph_create_node_1): Do not initialize estimated_growth.
6646 (initialize_inline_failed): More to ipa-inline-analysis.c
6647 (dump_cgraph_node): Do not dump inline flags.
6648 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
6649 and disregard_inline_limits flags.
6650 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
6651 time, size, estimated_growth.
6652 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
6653 Update.
6654 * cgraphunit.c (cgraph_decide_is_function_needed): Use
6655 DECL_DISREGARD_INLINE_LIMITS.
6656 (cgraph_analyze_function): Do not initialize
6657 node->local.disregard_inline_limits.
6658 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6659 inlinable, versionable and disregard_inline_limits.
6660 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
6661 cgraph_check_inline_limits, cgraph_default_inline_p,
6662 cgraph_edge_badness, update_caller_keys, update_callee_keys,
6663 add_new_edges_to_heap): Update.
6664 (cgraph_decide_inlining_of_small_function): Update; set
6665 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
6666 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
6667 cgraph_decide_inlining_incrementally): Update.
6668 * ipa-inline.h (inline_summary): Add inlinable, versionable,
6669 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
6670 time, size and estimated_growth parameters.
6671 (estimate_edge_growth): Update.
6672 (initialize_inline_failed): Declare.
6673 * ipa-split.c: Include ipa-inline.h
6674 (execute_split_functions): Update.
6675 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
6676 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
6677 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
6678 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
6679 estimated_growth to INT_MIN.
6680 (inline_node_duplication_hook): Likewise.
6681 (dump_inline_summary): Dump new fields.
6682 (compute_inline_parameters): Update.
6683 (estimate_edge_time, estimate_time_after_inlining,
6684 estimate_size_after_inlining, estimate_growth, inline_read_summary,
6685 inline_write_summary):
6686 (initialize_inline_failed): Move here from cgraph.c.
6687 * tree-sra.c: Include ipa-inline.h.
6688 (ipa_sra_preliminary_function_checks): Update.
6689 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
6690 ipa-inline.h.
6691
6692 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
6693
6694 * config/i386/sse.md (V16): New mode iterator.
6695 (VI1, VI8): Ditto.
6696 (AVXMODEQI, AVXMODEDI): Remove.
6697 (sse2, sse3): New mode attribute.
6698 (mov<mode>): Use V16 mode iterator.
6699 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
6700 (push<mode>1): Use V16 mode iterator.
6701 (movmisalign<mode>): Ditto.
6702 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6703 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
6704 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6705 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
6706 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
6707 avx_movdqu<avxmodesuffix>.
6708 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
6709 *avx_movdqu<avxmodesuffix>.
6710 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
6711 avx_lddqu<avxmodesuffix>.
6712 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
6713 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
6714 avx_movnt<AVXMODEDI:mode>.
6715 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
6716 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
6717
6718 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
6719
6720 PR target/48629
6721 * haifa-sched.c (prune_ready_list, schedule_block): Use
6722 sched_pressure_p rather than flag_sched_pressure.
6723
6724 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
6725
6726 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6727 cgraph_get_node instead of cgraph_get_create_node.
6728
6729 2011-04-15 Jakub Jelinek <jakub@redhat.com>
6730
6731 * cfgexpand.c (expand_debug_expr): Use
6732 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
6733
6734 2011-04-15 Michael Matz <matz@suse.de>
6735
6736 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
6737 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
6738 * function.c (gimplify_parameters): Ditto.
6739 * gimplify.c (gimplify_vla_decl): Ditto.
6740
6741 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
6742 (gimple_call_set_alloca_for_var): New inline function.
6743 (gimple_call_alloca_for_var_p): Ditto.
6744 * gimple.c (gimple_build_call_from_tree): Remember
6745 CALL_ALLOCA_FOR_VAR_P state.
6746 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
6747
6748 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
6749 calls if they were for VLA objects.
6750
6751 2011-04-15 Martin Jambor <mjambor@suse.cz>
6752
6753 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
6754 of ADR_EXPRs.
6755
6756 2011-04-15 Martin Jambor <mjambor@suse.cz>
6757
6758 PR middle-end/48601
6759 * tree-emutls.c (lower_emutls_function_body): Call
6760 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
6761 result is non-NULL.
6762
6763 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
6764
6765 * c-decl.c (detect_field_duplicates): Call
6766 objc_detect_field_duplicates instead of objc_get_interface_ivars.
6767
6768 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
6769
6770 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
6771 * gimple.c (gimple_asm_clobbers_memory_p): Define.
6772 * ipa-pure-const.c (check_stmt): Call it.
6773 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
6774
6775 2011-04-15 Richard Guenther <rguenther@suse.de>
6776
6777 PR tree-optimization/48290
6778 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
6779 Properly decide inhibiting propagation based on the valueized
6780 operand. Do loop-closed SSA form preserving here ...
6781 (init_copy_prop): ... not here.
6782
6783 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
6784
6785 PR target/48612
6786 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
6787 (*ieee_smax<mode>3): Likewise.
6788
6789 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6790
6791 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
6792 Replace match_operand with match_dup for the third operand in
6793 these expanders.
6794
6795 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
6796
6797 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
6798 to track processing of conditionals. Update all callers.
6799 (try_combine, simplify_if_then_else): Update.
6800
6801 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
6802
6803 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
6804 -fsched-pressure.
6805
6806 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
6807
6808 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
6809 instead of match_operand for operand 3.
6810
6811 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
6812
6813 * recog.h (insn_operand_data): Add an "allows_mem" field.
6814 * genoutput.c (output_operand_data): Initialize it.
6815 * optabs.c (maybe_legitimize_operand_same_code): New function.
6816 (maybe_legitimize_operand): Use it when matching the original
6817 op->value.
6818
6819 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6820
6821 * gimplify.c: Fix issues in comments throughout.
6822 (voidify_wrapper_expr): Fix long line.
6823 (build_stack_save_restore): Likewise.
6824 (gimplify_loop_expr): Likewise.
6825 (gimplify_compound_lval): Likewise.
6826 (gimplify_init_ctor_eval): Likewise.
6827 (gimplify_modify_expr_rhs): Likewise.
6828 (omp_notice_threadprivate_variable): Likewise.
6829
6830 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6831
6832 * cfgexpand.c (expand_call_stmt): Convert the function type to the
6833 original one if this is not a builtin function.
6834
6835 2011-04-14 Jakub Jelinek <jakub@redhat.com>
6836
6837 PR target/48605
6838 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
6839 offset it as needed based on top 2 bits in operands[3], change
6840 MEM mode to SFmode and mask those 2 bits away from operands[3].
6841
6842 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6843
6844 * c-parser.c (c_parser_objc_protocol_definition): Updated for
6845 change from objc_declare_protocols() to objc_declare_protocol().
6846
6847 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
6848
6849 * config/i386/sse.md (sse4_1): New mode attribute.
6850 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
6851 avx_blend<ssemodesuffix><avxmodesuffix> and
6852 sse4_1_blend<ssemodesuffix> using VF mode iterator.
6853 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
6854 avx_blendv<ssemodesuffix><avxmodesuffix> and
6855 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
6856 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
6857 avx_dp<ssemodesuffix><avxmodesuffix> and
6858 sse4_1_dp<ssemodesuffix> using VF mode iterator.
6859 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
6860 (sse4_1_packusdw): Merge with *avx_packusdw.
6861 (sse4_1_pblendvb): Merge with *avx_pblendvb.
6862 (sse4_1_pblendw): Merge with *avx_pblendw.
6863 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
6864 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
6865 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
6866 VF mode iterator.
6867 (sse4_1_round<ssescalarmodesuffix>): Merge with
6868 *avx_round<ssescalarmodesuffix>.
6869 (aesenc): Merge with *avx_aesenc.
6870 (aesenclast): Merge with *avx_aesenclast.
6871 (aesdec): Merge with *avx_aesdec.
6872 (aesdeclast): Merge with *avx_aesdeclast.
6873 (pclmulqdq): Merge with *pclmulqdq.
6874 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
6875 New predicate.
6876 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
6877
6878 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
6879
6880 PR middle-end/48608
6881 * cfgexpand.c (get_decl_align_unit): Renamed to ...
6882 (align_local_variable): This. Update DECL_ALIGN.
6883 (add_stack_var): Updated.
6884 (expand_one_stack_var): Likewise.
6885
6886 2011-04-14 Richard Guenther <rguenther@suse.de>
6887
6888 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
6889 Remove.
6890 (dse_initialize_block_local_data, dse_leave_block,
6891 record_voperand_set, get_stmt_uid): Likewise.
6892 (dse_possible_dead_store_p): Allow any kind of killing stmt.
6893 (dse_optimize_stmt): Remove voperand set handling code.
6894 Simplify and improve to handle any kind of killing stmt.
6895 (dse_record_phi): Remove.
6896 (dse_enter_block): Simplify.
6897 (tree_ssa_dse): Likewise.
6898 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
6899
6900 2011-04-14 Jan Hubicka <jh@suse.cz>
6901
6902 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
6903 * cgraph.h (struct inline_summary): Move to ipa-inline.h
6904 (cgraph_local_info): Remove inline_summary.
6905 * ipa-cp.c: Include ipa-inline.h.
6906 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
6907 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
6908 accesor.
6909 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
6910 (input_overwrite_node): Do not set inline summary.
6911 (input_node): Do not stream inline summary.
6912 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
6913 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
6914 growth; we do not have inline parameters computed for that anyway.
6915 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
6916 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
6917 (inline_summary_t): New type and VECtor.
6918 (debug_inline_summary, dump_inline_summaries): Declare.
6919 (inline_summary): Use VOCtor.
6920 (estimate_edge_growth): Kill hack computing call stmt size directly.
6921 * lto-section-in.c (lto_section_name): Add inline section.
6922 * ipa-inline-analysis.c: Include lto-streamer.h
6923 (node_removal_hook_holder, node_duplication_hook_holder): New holders
6924 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
6925 (inline_summary_vec): Define.
6926 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
6927 dump_inline_summaries): New functions.
6928 (estimate_function_body_sizes): Properly compute size/time of outgoing
6929 calls.
6930 (compute_inline_parameters): Alloc inline_summary; do not compute
6931 size/time of incomming calls.
6932 (estimate_edge_time): Avoid missing time summary hack.
6933 (inline_read_summary): Read inline summary info.
6934 (inline_write_summary): Write inline summary info.
6935 (inline_free_summary): Free all hooks and inline summary vector.
6936 * lto-streamer.h: Add LTO_section_inline_summary section.
6937 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
6938 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
6939
6940 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6941
6942 * tree-vectorizer.h (vect_strided_store_supported): Add a
6943 HOST_WIDE_INT argument.
6944 (vect_strided_load_supported): Likewise.
6945 (vect_permute_store_chain): Return void.
6946 (vect_transform_strided_load): Likewise.
6947 (vect_permute_load_chain): Delete.
6948 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
6949 count argument. Check that the count is a power of two.
6950 (vect_strided_load_supported): Likewise.
6951 (vect_permute_store_chain): Return void. Update after above changes.
6952 Assert that the access is supported.
6953 (vect_permute_load_chain): Likewise.
6954 (vect_transform_strided_load): Return void.
6955 * tree-vect-stmts.c (vectorizable_store): Update calls after
6956 above interface changes.
6957 (vectorizable_load): Likewise.
6958 (vect_analyze_stmt): Don't check for strided powers of two here.
6959
6960 2011-04-14 Richard Guenther <rguenther@suse.de>
6961
6962 PR tree-optimization/48590
6963 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
6964 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6965 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
6966 BUILT_IN_STACK_SAVE.
6967 * tree-ssa-dce.c (propagate_necessity): Handle
6968 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6969
6970 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6971
6972 * c-parser.c (c_parser_objc_class_declaration): Updated call to
6973 objc_declare_class.
6974
6975 2011-04-14 Richard Guenther <rguenther@suse.de>
6976
6977 * tree.h (get_object_alignment_1): Declare.
6978 * builtins.c (get_object_alignment_1): Split out worker from ...
6979 (get_object_alignment): ... here.
6980 * fold-const.c (get_pointer_modulus_and_residue): Use
6981 get_object_alignment_1.
6982
6983 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6984
6985 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
6986 type parameter.
6987 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
6988 parameter. Generalise code to handle arrays as well as vectors.
6989 (vect_setup_realignment): Update accordingly.
6990 * tree-vect-stmts.c (vectorizable_store): Likewise.
6991 (vectorizable_load): Likewise.
6992
6993 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6994
6995 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
6996 within the per-copy loop.
6997
6998 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6999
7000 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
7001 in the dump file.
7002
7003 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7004
7005 * doc/options.texi (Negative): Explicitly mention that the
7006 Negative chain must be circular.
7007
7008 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
7009
7010 * function.h (block_chainon): Declare.
7011 * function.c (block_chainon): Define.
7012
7013 2011-04-14 Anatoly Sokolov <aesok@post.ru>
7014 Eric Weddington <eric.weddington@atmel.com>
7015 Georg-Johann Lay <avr@gjlay.de>
7016
7017 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
7018 New Includes
7019 (avr_init_builtins, avr_expand_builtin,
7020 avr_expand_delay_cycles, avr_expand_unop_builtin,
7021 avr_expand_binop_builtin ): New functions.
7022 (avr_builtin_id): New enum
7023 (struct avr_builtin_description): New struct
7024 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
7025 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
7026
7027 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
7028 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
7029 UNSPECV_DELAY_CYCLES): new enumeration values
7030 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
7031 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
7032 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
7033 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
7034 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
7035 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
7036 "fmulsu"): New insns
7037
7038 * config/avr/avr-c.c: fix line endings
7039 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
7040 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
7041 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
7042 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
7043 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
7044
7045 * doc/extend.texi (AVR Built-in Functions): New node
7046 (Target Builtins): Add documentation of AVR
7047 built-in functions.
7048
7049 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
7050
7051 PR target/44643
7052 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
7053 alone. Error if non-const data has attribute progmem.
7054
7055 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7056
7057 * tree.h (struct tree_constructor): Include tree_typed instead of
7058 tree_common.
7059 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
7060 TS_TYPED instead of TS_COMMON.
7061
7062 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
7063
7064 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
7065 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
7066 (sse2_psadbw): Merge with *avx_psadbw.
7067 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
7068 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
7069 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
7070 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
7071 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
7072 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
7073 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
7074 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
7075 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
7076 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
7077 (ssse3_palignrti): Merge with *avx_palignrti.
7078
7079 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7080
7081 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
7082 * tree-ssanames.c (fini_ssanames): VEC_free it.
7083 (make_ssa_name_fn): Update for VECness of free_ssanames.
7084 (release_ssa_name, release_dead_ssa_names): Likewise.
7085 * tree.h (struct tree_ssa_name): Include tree_typed instead of
7086 tree_common.
7087 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
7088 TS_TYPED instead of TS_COMMON.
7089
7090 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7091
7092 * postreload-gcse.c (gcse_after_reload_main): Add calls to
7093 statistics_counter_event.
7094 * tree-ssa-copyrename.c (stats): Define.
7095 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
7096 statistics_counter_event.
7097 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
7098 (bswap_stats, widen_mul_stats): Define.
7099 (insert_reciprocals): Increment rdivs_inserted.
7100 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
7101 rfuncs_inserted. Add calls to statistics_counter_event.
7102 (execute_cse_sincos_1): Increment inserted.
7103 (execute_cse_sincos): Zeroize sincos_stats. Add call to
7104 statistics_counter_event.
7105 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
7106 of bswap_stats. Add calls to statistics_counter_event.
7107 (convert_mult_to_widen): Increment widen_mults_inserted.
7108 (convert_plusminus_to_widen): Increment maccs_inserted.
7109 (convert_mult_to_fma): Increment fmas_inserted.
7110 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
7111 calls to statistics_counter_event.
7112
7113 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
7114
7115 PR rtl-optimization/48455
7116 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
7117 `temp_costs->mem_cost'.
7118
7119 2011-04-13 Jan Hubicka <jh@suse.cz>
7120
7121 * ipa-inline.h: New file.
7122 * ipa-inline-analysis.c: New file. Broken out of ...
7123 * ipa-inline.c: ... this file; update toplevel comment;
7124 include ipa-inline.h
7125 (inline_summary): Move to ipa-inline.h
7126 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
7127 ipa-inline-analysis.c.
7128 (cgraph_estimate_time_after_inlining): Rename to
7129 estiamte_time_after_inlining; move to ipa-inline-analysis.c
7130 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
7131 to estimate_edge_growth.
7132 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
7133 rename to estimate_size_after_inlining.
7134 (cgraph_mark_inline_edge): Update for new naming convention.
7135 (cgraph_check_inline_limits): Likewise.
7136 (cgraph_edge_badness): Likewise.
7137 (cgraph_decide_recursive_inlining): Likewise.
7138 (cgraph_decide_inlining_of_small_functions): Likewise.
7139 (cgraph_decide_inlining_incrementally): Likewise.
7140 (cgraph_estimate_growth): Rename to estimate_growth; move to
7141 ipa-inline-analysis.c.
7142 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
7143 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
7144 (compute_inline_parameters): Likewise.
7145 (compute_inline_parameters_for_current): Likewise.
7146 (pass_inline_parameters): Likewise.
7147 (inline_indirect_intraprocedural_analysis): Likewise.
7148 (analyze_function): Rename to inline_analyze_function; likewise.
7149 (add_new_function): Move to ipa-inline-analysis.c.
7150 (inline_generate_summary): Likewise.
7151 (inline_read_summary): Likewise.
7152 (inline_write_summary): Likewise.
7153 * Makefile.in (ipa-inline-analysis.c): New file.
7154
7155 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7156
7157 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
7158 * configure: Regenerate.
7159
7160 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7161
7162 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
7163 instead of tree_common.
7164 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
7165 Likewise.
7166 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
7167 TS_TYPED rather than TS_COMMON.
7168 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
7169
7170 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
7171
7172 PR target/45263
7173 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
7174 r20 around calls of __tablejump_elpm__
7175
7176 2011-04-13 Jakub Jelinek <jakub@redhat.com>
7177
7178 PR middle-end/48591
7179 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
7180 NULL.
7181 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
7182
7183 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
7184
7185 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
7186 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
7187 (cfi_vec): New typedef.
7188 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
7189 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
7190 (cie_cfi_vec): New static variable.
7191 (cie_cfi_head): Delete.
7192 (add_cfi): Accept a cfi_vec * as first argument. All callers and
7193 declaration changed. Use vector rather than list operations.
7194 (new_cfi): Don't initialize the dw_cfi_next field.
7195 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
7196 rather than list operations.
7197 (lookup_cfa): Use vector rather than list operations.
7198 (output_cfis): New argument upto. Accept a cfi_vec rather than
7199 a dw_cfi_ref list head as argument. All callers changed.
7200 Iterate over the vector using upto as a maximum index.
7201 (output_all_cfis): New static function.
7202 (output_fde): Use vector rather than list operations. Use the
7203 new upto argument for output_cfis rather than manipulating a
7204 list.
7205 (dwarf2out_begin_prologue): Change initializations to match
7206 new struct members.
7207 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
7208 from the vector length rather than searching for the end of a list.
7209 Use output_all_cfis.
7210 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
7211
7212 2011-04-13 Nick Clifton <nickc@redhat.com>
7213
7214 * config/rx/rx.md (movmemsi): Do not use this pattern when
7215 volatile pointers are involved.
7216
7217 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
7218
7219 * config/i386/sse.md (pinsrbits): Remove.
7220 (sse2_packsswb): Merge with *avx_packsswb.
7221 (sse2_packssdw): Merge with *avx_packssdw.
7222 (sse2_packuswb): Merge with *avx_packuswb.
7223 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
7224 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
7225 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
7226 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
7227 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
7228 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
7229 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
7230 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
7231 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
7232 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
7233 (sse2_loadld): Merge with *avx_loadld.
7234 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
7235 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
7236 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
7237 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
7238 (vec_concatv2di): Merge with *vec_concatv2di_avx.
7239
7240 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
7241
7242 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
7243 calling TREE_CHAIN.
7244 * print-tree.c (print_node): Likewise.
7245 * tree-inline.c (copy_tree_r): Likewise.
7246 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
7247 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
7248 instead of TS_COMMON.
7249 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
7250 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
7251 (copy_node_stat): Zero TREE_CHAIN only if necessary.
7252 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
7253 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
7254 ...and these...
7255 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
7256 * tree.h: ...here.
7257 (TREE_CHAIN): Check for a TS_COMMON structure.
7258 (TREE_TYPE): Check for a TS_TYPED structure.
7259
7260 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
7261
7262 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
7263 cgraph_get_create_node instead of cgraph_node.
7264
7265 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
7266
7267 * c-parser.c (c_parser_initelt): Updated call to
7268 objc_build_message_expr.
7269 (c_parser_postfix_expression): Likewise.
7270
7271 2011-04-12 Kai Tietz <ktietz@redhat.com>
7272
7273 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
7274 MASK_MS_BITFIELD_LAYOUT bit.
7275
7276 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7277
7278 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
7279 assert it is always true.
7280 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
7281 moves.
7282
7283 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
7284
7285 * c-parser.c (c_lex_one_token): Rewritten conditional used when
7286 compiling Objective-C to be more efficient.
7287
7288 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
7289
7290 * opts-common.c (decode_cmdline_options_to_array): Remove variable
7291 argv_copied.
7292
7293 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7294
7295 * recog.h, genoutput.c, optabs.c: Revert last patch.
7296
7297 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7298
7299 PR target/48090
7300 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
7301
7302 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7303
7304 * recog.h (insn_operand_data): Add an "allows_mem" field.
7305 * genoutput.c (output_operand_data): Initialize it.
7306 * optabs.c (maybe_legitimize_operand_same_code): New function.
7307 (maybe_legitimize_operand): Use it when matching the original
7308 op->value.
7309
7310 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7311
7312 * genpreds.c (process_define_predicate): Move most processing
7313 to gensupport.c. Continue to validate the expression.
7314 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
7315 (process_define_predicate): Move processing to gensupport.c.
7316 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
7317 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
7318 (compute_predicate_codes): Moved from genrecog.c. Add lineno
7319 argument.
7320 (valid_predicate_name_p): New function, split out from old
7321 genpreds.c:process_define_predicate.
7322 (process_define_predicate): New function, combining code from
7323 old genpreds.c and genrecog.c functions.
7324 (process_rtx): Call it for DEFINE_PREDICATE and
7325 DEFINE_SPECIAL_PREDICATE.
7326
7327 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7328
7329 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
7330 size of a '%A' memory reference.
7331 (T_DREG, T_QREG): New neon_builtin_type_bits.
7332 (arm_init_neon_builtins): Assert that the load and store operands
7333 are neon_struct_operands.
7334 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
7335 (NEON_ARG_MEMORY): New builtin_arg.
7336 (neon_dereference_pointer): New function.
7337 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
7338 Handle NEON_ARG_MEMORY.
7339 (arm_expand_neon_builtin): Update after above interface changes.
7340 Use NEON_ARG_MEMORY for loads and stores.
7341 * config/arm/predicates.md (neon_struct_operand): New predicate.
7342 * config/arm/iterators.md (V_two_elem): Tweak formatting.
7343 (V_three_elem): Use BLKmode for accesses that have no associated mode.
7344 (V_four_elem): Tweak formatting.
7345 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
7346 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
7347 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
7348 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
7349 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
7350 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
7351 (neon_vst4<mode>): Replace pointer operand with a memory operand.
7352 Use %A in the output template.
7353 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
7354 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
7355 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
7356 the width of the memory access. Remove post-increment.
7357 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
7358
7359 2011-04-12 Nick Clifton <nickc@redhat.com>
7360
7361 * config/v850/v850.c (expand_prologue): Do not use the CALLT
7362 instruction for interrupt handlers if the target is the basic V850
7363 architecture.
7364 (expand_epilogue): Likewise.
7365
7366 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7367
7368 PR rtl-optimization/48549
7369 * combine.c (propagate_for_debug): Also stop after BB_END of
7370 this_basic_block. Process LAST and just stop processing after it.
7371 (combine_instructions): If last_combined_insn has been deleted,
7372 set last_combined_insn to its PREV_INSN.
7373
7374 2011-04-12 Richard Guenther <rguenther@suse.de>
7375
7376 PR tree-optimization/46076
7377 * gimple.h (struct gimple_statement_call): Add fntype field.
7378 (gimple_call_fntype): Adjust.
7379 (gimple_call_set_fntype): New function.
7380 * gimple.c (gimple_build_call_1): Set the call function type.
7381 * gimplify.c (gimplify_call_expr): Preserve the function
7382 type the frontend used for the call.
7383 (gimplify_modify_expr): Likewise.
7384 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
7385 function type.
7386 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
7387 function type.
7388 * tree-ssa.c (useless_type_conversion_p): Function pointer
7389 conversions are useless.
7390
7391 2011-04-12 Martin Jambor <mjambor@suse.cz>
7392
7393 * cgraph.h (cgraph_node): Remove function declaration.
7394 (cgraph_create_node): Declare.
7395 (cgraph_get_create_node): Likewise.
7396 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
7397 Updated all callers.
7398 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
7399 the decl does not already exist. Call cgraph_get_create_node instead
7400 of cgraph_node.
7401 (cgraph_get_create_node): New function.
7402 (cgraph_same_body_alias): Update comment.
7403 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
7404 assert it does not return NULL.
7405 (cgraph_update_edges_for_call_stmt): Likewise.
7406 (cgraph_clone_edge): Likewise.
7407 (cgraph_create_virtual_clone): Likewise.
7408 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
7409 instead of cgraph_node.
7410 (cgraph_add_new_function): Call cgraph_create_node or
7411 cgraph_get_create_node instead of cgraph_node.
7412 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
7413 instead of cgraph_node.
7414 (record_eh_tables): Likewise.
7415 (mark_address): Likewise.
7416 (mark_load): Likewise.
7417 (build_cgraph_edges): Call cgraph_get_create_node instead
7418 of cgraph_node.
7419 (rebuild_cgraph_edges): Likewise.
7420 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
7421 instead of cgraph_node.
7422 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
7423 cgraph_node.
7424 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
7425 cgraph_create_node instead of cgraph_node.
7426 * c-decl.c (finish_function): Call cgraph_get_create_node instead
7427 of cgraph_node.
7428 * lto-cgraph.c (input_node): Likewise.
7429 * lto-streamer-in.c (input_function): Likewise.
7430 * varasm.c (mark_decl_referenced): Likewise.
7431 (assemble_alias): Likewise.
7432
7433 2011-04-12 Martin Jambor <mjambor@suse.cz>
7434
7435 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
7436 instead of cgraph_node and assert it does not return NULL.
7437 * lto-streamer-in.c (lto_read_body): Likewise.
7438 * omp-low.c (new_omp_context): Likewise.
7439 (create_task_copyfn): Likewise.
7440 * tree-emutls.c (lower_emutls_function_body): Likewise.
7441 * matrix-reorg.c (transform_allocation_sites): Likewise.
7442
7443 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7444
7445 PR c/48552
7446 * c-typeck.c (build_asm_expr): Error out on attempts to use
7447 void type outputs or inputs for constraints that allow reg or
7448 don't allow memory.
7449
7450 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
7451 Richard Earnshaw <rearnsha@arm.com>
7452
7453 PR target/48250
7454 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
7455 to use sign-magnitude offsets. Reject unsupported unaligned
7456 cases. Add detailed description in comments.
7457 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
7458 condition from TARGET_32BIT to TARGET_ARM.
7459
7460 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
7461
7462 * tree.h (struct typed_tree): New.
7463 (struct tree_common): Include it instead of tree_base.
7464 (TREE_TYPE): Update for new location of type field.
7465 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
7466 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
7467 (union tree_node): Add typed field.
7468 * treestruct.def (TS_TYPED): New.
7469 * lto-streamer.c (check_handled_ts_structures): Handle it.
7470 * tree.c (MARK_TS_TYPED): New macro.
7471 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
7472
7473 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
7474
7475 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
7476 (force_nonfallthru): Do not alter the loop nest if no basic block
7477 was created.
7478
7479 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
7480
7481 * config/i386/sse.md (VI): New mode iterator.
7482 (SSEMODEI): Remove.
7483 (AVX256MODEI): Ditto.
7484 (AVXMODEF4P): Ditto.
7485 (avxvecpsmode): Ditto.
7486 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
7487 (sse2_andnot<mode>3): New expander.
7488 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
7489 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
7490 (<any_logic:code><mode>3): Use VI mode iterator.
7491 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
7492 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
7493 (*andnottf3): Handle AVX three-operand constraints.
7494 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
7495
7496 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7497 Robert Millan <rmh@gnu.org>
7498
7499 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
7500 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
7501 GNU_USER_DYNAMIC_LINKER64): Define.
7502 (REG_NAME): Don't undefine.
7503 (MD_UNWIND_SUPPORT): Undefine.
7504 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
7505 (REG_NAME): Don't undefine.
7506 (MD_UNWIND_SUPPORT): Undefine.
7507 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
7508
7509 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7510
7511 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
7512 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
7513
7514 2011-04-11 Xinliang David Li <davidxl@google.com>
7515
7516 * value-profile.c (check_ic_target): New function.
7517 (gimple_ic_transform): Sanity check indirect call target.
7518 * gimple-low.c (gimple_check_call_args): Interface change.
7519 (gimple_check_call_matching_types): New function.
7520 * tree-inline.c (tree_can_inline_p): Call new function.
7521
7522 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
7523
7524 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
7525 tree-pretty-print.h & realmpfr.h.
7526
7527 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
7528
7529 PR middle-end/48464
7530 * ira.c (setup_pressure_classes): Fix typo in loop condition.
7531 (setup_allocno_and_important_classes): Ditto.
7532
7533 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7534
7535 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
7536 GNU_USER_DYNAMIC_LINKER.
7537 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
7538 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7539 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
7540 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7541 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7542 GNU_USER_TARGET_OS_CPP_BUILTINS.
7543 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
7544 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7545 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7546 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7547 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
7548 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7549 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7550 GNU_USER_TARGET_OS_CPP_BUILTINS.
7551 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7552 GNU_USER_DYNAMIC_LINKER.
7553 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7554 GNU_USER_TARGET_OS_CPP_BUILTINS.
7555 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
7556 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7557 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
7558 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7559 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
7560 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
7561 GNU_USER_DYNAMIC_LINKER64): Remove.
7562 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
7563 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7564 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7565 GNU_USER_DYNAMIC_LINKER.
7566 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7567 GNU_USER_TARGET_OS_CPP_BUILTINS.
7568 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7569 GNU_USER_TARGET_OS_CPP_BUILTINS.
7570 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
7571 to GNU_USER_TARGET_OS_CPP_BUILTINS.
7572 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7573 GNU_USER_TARGET_OS_CPP_BUILTINS.
7574 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
7575 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
7576 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7577 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
7578 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7579 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7580 GNU_USER_DYNAMIC_LINKER.
7581 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7582 GNU_USER_TARGET_OS_CPP_BUILTINS.
7583 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
7584 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7585 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7586 GNU_USER_DYNAMIC_LINKER.
7587 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7588 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7589 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
7590 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7591 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7592 GNU_USER_DYNAMIC_LINKER.
7593 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
7594 GNU_USER_DYNAMIC_LINKERN32.
7595 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
7596 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
7597 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
7598 GNU_USER_DYNAMIC_LINKER32.
7599 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
7600 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7601 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7602 GNU_USER_DYNAMIC_LINKER.
7603 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7604 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7605 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
7606 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7607 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7608 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
7609 GNU_USER_DYNAMIC_LINKER32.
7610 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7611 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
7612 GNU_USER_DYNAMIC_LINKER.
7613 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
7614 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7615 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7616 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
7617 GNU_USER_DYNAMIC_LINKER64.
7618 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
7619 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7620 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7621 GNU_USER_DYNAMIC_LINKER.
7622 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
7623 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7624 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7625 GNU_USER_DYNAMIC_LINKER.
7626 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
7627 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7628 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7629 GNU_USER_DYNAMIC_LINKER32.
7630 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7631 GNU_USER_DYNAMIC_LINKER64.
7632 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7633 GNU_USER_DYNAMIC_LINKER64.
7634 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
7635 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7636 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
7637 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7638 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7639
7640 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7641
7642 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
7643 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
7644 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
7645 GNU_USER_DYNAMIC_LINKER.
7646 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7647 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
7648 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
7649 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
7650 GNU_USER_DYNAMIC_LINKER64.
7651 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7652 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
7653 GNU_USER_LINK_EMULATION.
7654 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
7655 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
7656 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
7657 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
7658 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
7659 CPP_SPEC, CC1_SPEC): Remove.
7660 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
7661 (GNU_USER_DYNAMIC_LINKER): Define.
7662 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
7663 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
7664 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
7665 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
7666 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
7667 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
7668 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7669 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
7670 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
7671 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
7672 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
7673 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
7674 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
7675 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
7676 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
7677 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7678 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7679 GNU_USER_DYNAMIC_LINKER.
7680 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7681 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7682 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7683 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7684 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7685 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7686 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
7687 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
7688 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
7689 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
7690
7691 2011-04-11 Kai Tietz <ktietz@redhat.com>
7692
7693 PR target/9601
7694 PR target/11772
7695 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
7696 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
7697 comment.
7698 (ix86_is_msabi_thiscall): Removed.
7699 (ix86_is_type_thiscall): Likewise.
7700 (ix86_get_callcvt): New function.
7701 (ix86_comp_type_attributes): Simplify check.
7702 (ix86_function_regparm): Use ix86_get_callcvt for calling
7703 convention attribute checks.
7704 (ix86_return_pops_args): Likewise.
7705 (ix86_static_chain): Likewise.
7706 (x86_this_parameter): Likewise.
7707 (x86_output_mi_thunk): Likewise.
7708 (ix86_function_type_abi): Optimize check for types without attributes.
7709 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
7710 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
7711 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
7712 by flag-values.
7713 (IX86_BASE_CALLCVT): Helper macro.
7714 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
7715 Use ix86_get_callcvt for calling convention attribute checks and avoid
7716 symbol-decoration for stdcall in TARGET_RTD case.
7717 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
7718 Likewise.
7719 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
7720 for declaration.
7721
7722 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
7723
7724 * config/i386/sse.md (VI_128): New mode iterator.
7725 (VI12_128): Rename from SSEMODE12.
7726 (VI14_128): Rename from SSEMODE14.
7727 (VI124_128): New mode iterator.
7728 (VI24_128): Rename from SSEMODE248.
7729 (VI248_128): Rename from SSEMODE248.
7730 (SSEMODE124C8): Remove.
7731 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7732 (*sse2_<plusminus_insn><mode>3): Merge with
7733 *avx_<plusminus_insn><mode>3.
7734 (*mulv8hi3): Merge with *avx_mulv8hi3.
7735 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
7736 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
7737 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
7738 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
7739 (ashr<mode>3): Merge with *avx_ashr<mode>3.
7740 (lshr<mode>3): Merge with *avx_lshr<mode>3.
7741 (ashl<mode>3): Merge with *avx_ashl<mode>3.
7742 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
7743 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
7744 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7745 (*<smaxmin:code>v8hi3): Ditto.
7746 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
7747 (*<smaxmin:code>v16qi3): Ditto.
7748 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
7749 (*sse2_eq<mode>3): Ditto.
7750 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
7751 (*sse2_gt<mode>3): Ditto.
7752 (vcondv2di): Split out of vcond<mode>.
7753 (vconduv2di): Split out of vcondu<mode>.
7754
7755 2011-04-11 Richard Guenther <rguenther@suse.de>
7756
7757 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
7758 before calling tree_low_cst.
7759
7760 2011-04-11 Richard Guenther <rguenther@suse.de>
7761
7762 * stor-layout.c (layout_type): Compute all array index size operations
7763 in the original type.
7764 (initialize_sizetypes): Add comment.
7765 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
7766
7767 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7768
7769 * common.opt (Tbss=, Tdata=, Ttext=): New options.
7770
7771 2011-04-11 Martin Jambor <mjambor@suse.cz>
7772
7773 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
7774 of cgraph_node, handle NULL return value.
7775 (cgraph_global_info): Likewise.
7776 (cgraph_rtl_info): Likewise.
7777 * tree-inline.c (estimate_num_insns): Likewise.
7778 * gimplify.c (unshare_body): Likewise.
7779 (unvisit_body): Likewise.
7780 (gimplify_body): Likewise.
7781 * predict.c (optimize_function_for_size_p): Likewise.
7782 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
7783 (call_may_clobber_ref_p_1): Likewise.
7784 * varasm.c (function_section_1): Likewise.
7785 (assemble_start_function): Likewise.
7786
7787 2011-04-11 Martin Jambor <mjambor@suse.cz>
7788
7789 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
7790 of cgraph_node.
7791 * final.c (rest_of_clean_state): Likewise.
7792 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
7793 * passes.c (pass_init_dump_file): Likewise.
7794 (execute_all_ipa_transforms): Likewise.
7795 (function_called_by_processed_nodes_p): Likewise.
7796 * predict.c (maybe_hot_frequency_p): Likewise.
7797 (probably_never_executed_bb_p): Likewise.
7798 (compute_function_frequency): Likewise.
7799 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
7800 (unnest_nesting_tree_1): Likewise.
7801 (lower_nested_functions): Likewise.
7802 * tree-optimize.c (execute_fixup_cfg): Likewise.
7803 (tree_rest_of_compilation): Likewise.
7804 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
7805 * tree-sra.c (ipa_early_sra): Likewise.
7806 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
7807 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
7808 * ipa.c (record_cdtor_fn): Likewise.
7809 * ipa-inline.c (cgraph_early_inlining): Likewise.
7810 (compute_inline_parameters_for_current): Likewise.
7811 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
7812 * ipa-pure-const.c (local_pure_const): Likewise.
7813 * ipa-split.c (split_function): Likewise.
7814 (execute_split_functions): Likewise.
7815 * cgraphbuild.c (build_cgraph_edges): Likewise.
7816 (rebuild_cgraph_edges): Likewise.
7817 (cgraph_rebuild_references): Likewise.
7818 (remove_cgraph_callee_edges): Likewise.
7819 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
7820 (verify_cgraph_node): Likewise.
7821 (cgraph_analyze_functions): Likewise.
7822 (cgraph_preserve_function_body_p): Likewise.
7823 (save_inline_function_body): Likewise.
7824 (save_inline_function_body): Likewise.
7825 * tree-inline.c (copy_bb): Likewise.
7826 (optimize_inline_calls): Likewise.
7827
7828 2011-04-11 Martin Jambor <mjambor@suse.cz>
7829
7830 PR tree-optimization/48195
7831 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
7832 ipa_check_create_edge_args.
7833 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
7834 ipa_check_create_edge_args.
7835 * ipa-inline.c (inline_generate_summary): Do not call
7836 ipa_check_create_node_params and ipa_check_create_edge_args.
7837 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
7838 ipa_check_create_edge_args.
7839
7840 2011-04-09 Anatoly Sokolov <aesok@post.ru>
7841
7842 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
7843 instead of loop.
7844 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
7845 * function.c (record_hard_reg_sets): Likewise.
7846 * ira.c (compute_regs_asm_clobbered): Likewise.
7847 * sched-deps.c (sched_analyze_1): Likewise.
7848 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
7849
7850 2011-04-09 Xinliang David Li <davidxl@google.com>
7851
7852 PR tree-optimization/PR48484
7853 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
7854 has_valid_pred lazily
7855
7856 2011-04-09 Duncan Sands <baldrick@free.fr>
7857
7858 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
7859
7860 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
7861
7862 * combine.c (combine_validate_cost): Adjust comments. Set registered
7863 cost of I0 to zero at the end, if any.
7864
7865 2011-04-08 Xinliang David Li <davidxl@google.com>
7866
7867 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
7868 to insane profile data.
7869
7870 2011-04-08 Xinliang David Li <davidxl@google.com>
7871
7872 * ipa-cp.c (ipcp_update_profiling): Correct
7873 negative scale factor due to insane profile data.
7874
7875 2011-04-08 Xinliang David Li <davidxl@google.com>
7876
7877 * final.c (dump_basic_block_info): New function.
7878 (final): Dump basic block.
7879 (final_scan_insn): Remove old dump.
7880
7881 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
7882
7883 PR target/47829
7884 * config.gcc (i386-*-freebsd): Disable unwind table generation for
7885 crtbegin/crtend.
7886
7887 2011-04-08 Michael Matz <matz@suse.de>
7888
7889 PR middle-end/48389
7890 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
7891 functions.
7892 (rebuild_jump_labels): Call rebuild_jump_labels_1.
7893 * rtl.h (rebuild_jump_labels_chain): Declare.
7894 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
7895 insns inserted on edges.
7896
7897 2011-04-08 Joseph Myers <joseph@codesourcery.com>
7898
7899 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
7900 * config/arm/arm-arches.def: New.
7901 * config/arm/arm-opts.h: New.
7902 * config/arm/genopt.sh: New.
7903 * config/arm/arm-tables.opt: New (generated).
7904 * config/arm/arm.c (arm_handle_option, arm_target_help,
7905 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
7906 (all_architectures): Get most table contents from arm-arches.def.
7907 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
7908 arm_selected_tune here.
7909 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
7910 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
7911 (march=, mcpu=, mtune=): Use Enum and Var.
7912 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
7913 (arm.o): Update dependencies.
7914
7915 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
7916
7917 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
7918 of header_file.
7919 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
7920 (write_typed_alloc_defns): Likewise.
7921 (main): Calls write_typed_alloc_defns with output_header.
7922
7923 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
7924
7925 PR inline-asm/48435
7926 * ira-color.c (setup_profitable_hard_regs): Add comments.
7927 Don't take prohibited hard regs into account.
7928 (setup_conflict_profitable_regs): Rename to
7929 get_conflict_profitable_regs.
7930 (check_hard_reg_p): Check prohibited hard regs.
7931
7932 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
7933
7934 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
7935 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
7936 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
7937
7938 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7939
7940 PR target/48366
7941 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
7942 move from floating point to shift amount register.
7943 (emit_move_sequence): Remove secondary reload support for floating
7944 point to shift amount amount register copies.
7945 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
7946 amount register copies.
7947 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
7948 register, return false if mode isn't a scalar integer mode.
7949 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
7950
7951 2011-04-08 Richard Guenther <rguenther@suse.de>
7952
7953 * gimple.c (gimple_call_flags): Remove kludge.
7954
7955 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7956
7957 * sel-sched.c (sel_region_init): Move call to
7958 sel_setup_region_sched_flags after setup_current_loop_nest.
7959
7960 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
7961
7962 PR rtl-optimization/48272
7963 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
7964 init_insn_reg_pressure_info. Adjust a caller.
7965 * sched-int.h (init_insn_reg_pressure_info): Declare.
7966 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
7967 when sched-pressure is enabled.
7968
7969 2011-04-08 Richard Guenther <rguenther@suse.de>
7970
7971 * gimple.c (gimple_set_modified): Do not queue calls to
7972 MODIFIED_NORETURN_CALLS here ...
7973 * tree-ssa-operands.c (update_stmt_operands): ... but here.
7974
7975 2011-04-08 Richard Guenther <rguenther@suse.de>
7976
7977 PR lto/48467
7978 * toplev.c (lang_dependent_init): Do not open asm_out_file
7979 in WPA mode, nor perform debug machinery initialization.
7980 (finalize): Do not unlink asm_out_file in WPA mode.
7981
7982 2011-04-08 Richard Guenther <rguenther@suse.de>
7983
7984 * gimple.h (gimple_call_fntype): New function.
7985 (gimple_call_return_type): Use it.
7986 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
7987 * gimple-low.c (gimple_check_call_args): Likewise.
7988 * gimple.c (gimple_call_flags): Likewise.
7989 (gimple_call_arg_flags): Likewise.
7990 (gimple_call_return_flags): Likewise.
7991 * tree-cfg.c (verify_gimple_call): Likewise.
7992 (do_warn_unused_result): Likewise.
7993 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
7994 * value-prof.c (gimple_ic_transform): Fix fndecl check.
7995
7996 2011-04-08 Dmitry Melnik <dm@ispras.ru>
7997
7998 PR rtl-optimization/48235
7999 * sel-sched.c (code_motion_process_successors): Recompute the last
8000 insn in basic block if control flow changed.
8001 (code_motion_path_driver): Ditto. Recompute the first insn as well.
8002 Update condition for ilist_remove.
8003
8004 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8005
8006 PR rtl-optimization/48302
8007 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
8008 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
8009 it to record added preheader blocks.
8010 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
8011 on to sel_add_loop_preheaders.
8012 (sel_region_init): Move call to setup_current_loop_nest after
8013 sel_init_bbs.
8014
8015 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8016
8017 PR target/48273
8018 * cfgloop.h (loop_has_exit_edges): New helper.
8019 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
8020 non-clonable.
8021 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
8022 that have no exit edges.
8023
8024 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8025
8026 PR rtl-optimization/48442
8027 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
8028 all callers. Adjust assert.
8029
8030 2011-04-08 Jakub Jelinek <jakub@redhat.com>
8031
8032 PR tree-optimization/48377
8033 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
8034 is_packed to true even for types with smaller TYPE_ALIGN than
8035 TYPE_SIZE.
8036
8037 2011-04-08 Richard Guenther <rguenther@suse.de>
8038
8039 PR bootstrap/48513
8040 * doc/tm.texi: Re-generate.
8041
8042 2011-04-08 Wei Guozhi <carrot@google.com>
8043
8044 PR target/47855
8045 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
8046 * config/arm/arm.c (arm_attr_length_push_multi): New function.
8047 * config/arm/arm.md (*push_multi): Change the length computation to
8048 call a C function.
8049
8050 2011-04-08 Anatoly Sokolov <aesok@post.ru>
8051
8052 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
8053 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
8054 * doc/tm.texi: Regenerate.
8055 * system.h (ASM_OUTPUT_BSS): Poison.
8056 * varasm.c (asm_output_bss): Remove function.
8057 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
8058
8059 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
8060 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
8061 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
8062 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8063 Likewise.
8064 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8065 Likewise.
8066 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8067 Likewise.
8068 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
8069
8070 2011-04-07 Joseph Myers <joseph@codesourcery.com>
8071
8072 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
8073 EnumValue lines.
8074
8075 2011-04-07 Joseph Myers <joseph@codesourcery.com>
8076
8077 * config/m68k/m68k.c (m68k_handle_option): Don't handle
8078 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
8079 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
8080 OPT_mcpu32.
8081 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
8082 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
8083 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
8084 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
8085 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
8086 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
8087 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
8088 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
8089 options. Don't map other m68k options manually. Don't handle
8090 old-style options as canonical.
8091 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
8092 * doc/install.texi (m68k-*-*): Document binutils version requirement.
8093
8094 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
8095
8096 * basic-block.h (force_nonfallthru): Move to...
8097 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
8098 (force_nonfallthru): ...here.
8099 * cfghooks.c (force_nonfallthru): New function.
8100 * cfgrtl.c (force_nonfallthru): Rename into...
8101 (rtl_force_nonfallthru): ...this.
8102 (commit_one_edge_insertion): Do not set AUX field.
8103 (commit_edge_insertions): Do not discover new basic blocks.
8104 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
8105 (cfg_layout_rtl_cfg_hooks): Likewise.
8106 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
8107 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
8108 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
8109
8110 2011-04-07 Anatoly Sokolov <aesok@post.ru>
8111
8112 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
8113 Remove macros.
8114
8115 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
8116
8117 * config/i386/sse.md: Update copyright year.
8118 (avxcvtvecmode): Remove.
8119 (sse_movhlps): Merge with *avx_movhlps.
8120 (sse_movlhps): Merge with *avx_movlhps.
8121 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
8122 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
8123 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
8124 (sse_loadhps): Merge with *avx_loadhps.
8125 (sse_storelps): Merge with *avx_storelps.
8126 (sse_loadlps): Merge with *avx_loadlps.
8127 (sse_movss): Merge with *avx_movss.
8128 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
8129 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
8130 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
8131 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
8132 (vec_set<mode>_0): Ditto.
8133 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
8134 (sse4_1_insertps): Merge with *avx_insertps.
8135 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
8136 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
8137 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
8138 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
8139 (sse2_storehpd): Merge with *avx_storehpd.
8140 (sse2_loadhpd): Merge with *avx_loadhpd.
8141 (sse2_loadlpd): Merge with *avx_loadlpd.
8142 (sse2_movsd): Merge with *avx_movsd.
8143 (*vec_concatv2df): Merge with *vec_concatv2df.
8144
8145 2011-04-07 Jakub Jelinek <jakub@redhat.com>
8146
8147 PR debug/48343
8148 * combine.c (combine_instructions): Add last_combined_insn,
8149 update it if insn is after it, pass it to all try_combine calls.
8150 (try_combine): Add last_combined_insn parameter, pass it instead of
8151 i3 to propagate_for_debug.
8152
8153 2011-04-07 Nick Clifton <nickc@redhat.com>
8154
8155 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
8156 to handle MDR <-> data register transfers.
8157 (movhi_internal): Likewise.
8158
8159 2011-04-07 Alan Modra <amodra@gmail.com>
8160
8161 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
8162 previous stack info.
8163
8164 2011-04-07 Tom de Vries <tom@codesourcery.com>
8165
8166 PR target/43920
8167 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
8168 flow_find_cross_jump. Swap variables to implement backward replacement.
8169 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
8170
8171 2011-04-07 Tom de Vries <tom@codesourcery.com>
8172
8173 PR target/43920
8174 * cfgcleanup.c (walk_to_nondebug_insn): New function.
8175 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
8176 and bb2.
8177 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
8178 src1 or src2. Redirect edges to the last basic block. Update
8179 frequency and count on multiple basic blocks in case of fallthru.
8180
8181 2011-04-07 Tom de Vries <tom@codesourcery.com>
8182
8183 PR target/43920
8184 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
8185 function.
8186 (old_insns_match_p): Change return type. Replace return false/true
8187 with return dir_none/dir_both. Use can_replace_by.
8188 (flow_find_cross_jump): Add dir_p parameter. Init replacement
8189 direction from dir_p. Register replacement direction in dir, last_dir
8190 and afterlast_dir. Handle new return type of old_insns_match_p using
8191 merge_dir. Return replacement direction in dir_p.
8192 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
8193 return type of old_insns_match_p.
8194 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
8195 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
8196 flow_find_cross_jump.
8197 * basic-block.h (enum replace_direction): New type.
8198 (flow_find_cross_jump): Add parameter to declaration.
8199
8200 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
8201
8202 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
8203 (AVXMODEDCVTPS2DQ): Ditto.
8204 (VEC_FLOAT_MODE): Ditto.
8205 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
8206 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
8207 (<any_logic:code><mode>3): Use VF mode iterator.
8208 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
8209 Use VF mode iterator.
8210 (copysign<mode>3): Use VF mode iterator.
8211 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
8212 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
8213 (*<any_logic:code><MODEF:mode>3): Merge with
8214 *avx_<any_logic:code><MODEF:mode>3.
8215 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
8216 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
8217 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
8218 (avx_cvtdq2ps<avxmodesuffix>): Remove.
8219 (sse2_cvtdq2ps): Use %v modifier.
8220 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
8221 (avx_cvtps2dq<avxmodesuffix>): Remove.
8222 (sse2_cvtps2dq): Use %v modifier.
8223 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
8224 (avx_cvttps2dq<avxmodesuffix>): Remove.
8225 (sse2_cvttps2dq): Use %v modifier.
8226 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
8227 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
8228 (sse2_cvtsd2siq): Fix insn template.
8229 (sse2_cvtsd2siq_2): Ditto.
8230 (sse2_cvttsd2siq): Ditto.
8231 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
8232 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
8233
8234 2011-04-06 Joseph Myers <joseph@codesourcery.com>
8235
8236 * gcov-io.c: Use GCC Runtime Library Exception.
8237
8238 2011-04-06 Jakub Jelinek <jakub@redhat.com>
8239
8240 PR debug/48466
8241 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
8242 as base_reg whatever register reg has been eliminated to, instead
8243 of hardcoding STACK_POINTER_REGNUM.
8244
8245 2011-04-06 Joseph Myers <joseph@codesourcery.com>
8246
8247 * doc/tm.texi.in: Document C target hooks as separate from general
8248 target hooks.
8249 * doc/tm.texi: Regenerate.
8250 * genhooks.c (struct hook_desc): Add docname field.
8251 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
8252 docname field.
8253 (hook_array): Include c-target.def.
8254 (emit_documentation): Use docname field in output.
8255 (emit_init_macros): Take docname argument. Only emit definitions
8256 for hooks matching docname.
8257 (main): Expect additional arguments in all cases. Pass argument
8258 to emit_init_macros.
8259 * target.def: Move initial macro definitions and comments to
8260 target-hooks-macros.h.
8261 (gcc_targetcm): Move to c-family/c-target.def.
8262 * target.h (targetcm): Move declaration to c-family/c-target.h.
8263 * targhooks.c (default_handle_c_option): Move to
8264 c-family/c-opts.c.
8265 * targhooks.h (default_handle_c_option): Move declaration to
8266 c-family/c-common.h.
8267 * target-hooks-macros.h: New file.
8268 * config.gcc (target_has_targetcm): Define and use to add to
8269 c_target_objs and cxx_target_objs.
8270 * config/default-c.c: New file.
8271 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
8272 of target.h and target-def.h.
8273 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
8274 (darwin_objc_construct_string, darwin_cfstring_ref_p,
8275 darwin_check_cfstring_format_arg): Make static.
8276 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
8277 TARGET_STRING_OBJECT_REF_TYPE_P,
8278 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
8279 * config/darwin-protos.h (darwin_objc_construct_string,
8280 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
8281 declare.
8282 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
8283 TARGET_STRING_OBJECT_REF_TYPE_P,
8284 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
8285 * config/t-darwin (darwin-c.o): Update dependencies.
8286 * system.h (TARGET_HAS_TARGETCM): Poison.
8287 * Makefile.in (TARGET_H): Update.
8288 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
8289 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
8290 (default-c.o): New target.
8291 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
8292 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
8293 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
8294 c-target.def.
8295 (build/genhooks.o): Update dependencies.
8296
8297 2011-04-06 Richard Guenther <rguenther@suse.de>
8298
8299 * ipa-inline.c (enum inlining_mode): Remove.
8300 (cgraph_flatten): Use some other token.
8301 (cgraph_edge_early_inlinable_p): New function, split out from ...
8302 (cgraph_perform_always_inlining): New function, split out from ...
8303 (cgraph_decide_inlining_incrementally): ... here.
8304 (cgraph_mark_inline_edge): Adjust.
8305 (cgraph_early_inlining): Re-structure.
8306 (pass_early_inline): Require SSA form.
8307
8308 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
8309 Julian Brown <julian@codesourcery.com>
8310 Mark Shinwell <shinwell@codesourcery.com>
8311
8312 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
8313 LO_REGS only for Thumb-1.
8314 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
8315 be used in short instructions when optimising for size on Thumb-2.
8316
8317 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
8318
8319 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
8320 associated with user returns to be preserved.
8321
8322 2011-04-06 Tristan Gingold <gingold@adacore.com>
8323
8324 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
8325 symbol_queue_size, DBXOUT_DECR_NESTING,
8326 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
8327 if XCOFF_DEBUGGING_INFO.
8328
8329 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
8330
8331 * config/i386/i386.md (attribute isa): New.
8332 (attribute enabled): New.
8333 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
8334 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
8335 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
8336 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
8337 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
8338 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8339 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
8340 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
8341
8342 * config/i386/sse.md (VF): New mode iterator.
8343 (VF1): Ditto.
8344 (VF2): Ditto.
8345 (VF_128): Ditto.
8346 (SSEMODEF4): Remove.
8347 (attribute sse): Handle V8SF and V4DF modes.
8348 (<absneg:code><mode>2): Use VF mode iterator.
8349 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
8350 mode iterator.
8351 (<plusminus_insn><mode>3): Use VF mode iterator.
8352 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
8353 Use VF mode iterator.
8354 (<sse>_vm<plusminus_insn><mode>3): Merge with
8355 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
8356 (mul<mode>3): Use VF mode iterator.
8357 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
8358 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
8359 mode iterator.
8360 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
8361 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
8362 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
8363 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
8364 mode iterator.
8365 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
8366 Use VF1 mode iterator.
8367 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
8368 (sqrt<VF2:mode>2): New expander.
8369 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
8370 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
8371 and sqrtv2df2. Use VF mode iterator.
8372 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
8373 mode iterator.
8374 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
8375 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
8376 Use VF1 mode iterator.
8377 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
8378 (<smaxmin:code><mode>3): Use VF mode iterator.
8379 (*<smaxmin:code><mode>3_finite): Merge with
8380 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
8381 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8382 (<sse>_vm<smaxmin:code><mode>2): Merge with
8383 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
8384 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
8385 mode iterator.
8386 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
8387 mode iterator.
8388 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
8389 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
8390 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
8391 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
8392 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
8393 VF mode iterator.
8394 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
8395 Use VF_128 mode iterator.
8396 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
8397 mode iterator.
8398 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
8399 VF_128 mode iterator.
8400 (vcond<mode>): Use VF mode iterator.
8401 * config/i386/predicates.md (sse_comparison_operator): Merge with
8402 avx_comparison_float_operator. Do not declare as special_predicate.
8403 * config/i386/i386.c (struct builtin_description): Update for renamed
8404 compare patterns.
8405 (ix86_expand_args_builtin): Ditto.
8406 (ix86_expand_sse_compare_mask): Ditto.
8407
8408 2011-04-06 Richard Guenther <rguenther@suse.de>
8409
8410 * tree-inline.c (estimate_num_insns): For calls simply account
8411 for all passed arguments and a used return value.
8412
8413 2011-04-06 Richard Guenther <rguenther@suse.de>
8414
8415 PR tree-optimization/47663
8416 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
8417 call_stmt_time fields.
8418 (cgraph_edge_inlinable_p): Declare.
8419 (cgraph_edge_recursive_p): New inline function.
8420 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
8421 (cgraph_clone_edge): Copy it.
8422 * ipa-inline.c (cgraph_estimate_edge_time): New function.
8423 Account for call stmt time.
8424 (cgraph_estimate_time_after_inlining): Take edge argument.
8425 (cgraph_estimate_edge_growth): Account call stmt size.
8426 (cgraph_estimate_size_after_inlining): Take edge argument.
8427 (cgraph_mark_inline_edge): Adjust.
8428 (cgraph_check_inline_limits): Likewise.
8429 (cgraph_recursive_inlining_p): Remove.
8430 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
8431 (cgraph_decide_recursive_inlining): Take edge argument and
8432 adjust.
8433 (cgraph_decide_inlining_of_small_functions): Do not avoid
8434 diags for recursive inlining here.
8435 (cgraph_flatten): Adjust.
8436 (cgraph_decide_inlining_incrementally): Likewise.
8437 (estimate_function_body_sizes): Remove call cost handling.
8438 (compute_inline_parameters): Initialize caller edge call costs.
8439 (cgraph_estimate_edge_growth): New function.
8440 (cgraph_estimate_growth): Use it.
8441 (cgraph_edge_badness): Likewise.
8442 (cgraph_check_inline_limits): Take an edge argument.
8443 (cgraph_decide_inlining_of_small_functions): Adjust.
8444 (cgraph_decide_inlining): Likewise.
8445 * tree-inline.c (estimate_num_insns): Only account for call
8446 return value if it is used.
8447 (expand_call_inline): Avoid diagnostics on recursive inline
8448 functions here.
8449 * lto-cgraph.c (lto_output_edge): Output edge call costs.
8450 (input_edge): Input edge call costs.
8451
8452 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8453
8454 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
8455
8456 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
8457
8458 * doc/invoke.texi (Spec Files): Fix typo.
8459
8460 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
8461
8462 * profile.c (branch_prob): Move declaration of local variable. Remove
8463 obsolete ??? comment. Expand the location explicitly instead of using
8464 the LOCATION_FILE and LOCATION_LINE macros.
8465
8466 2011-04-06 Wei Guozhi <carrot@google.com>
8467
8468 PR target/47855
8469 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
8470 (arm_cond_branch): Likewise.
8471 (arm_cond_branch_reversed): Likewise.
8472 (arm_jump): Likewise.
8473 (push_multi): Likewise.
8474 * config/arm/constraints.md (Py): New constraint.
8475
8476 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8477
8478 PR bootstrap/48471
8479 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
8480 Move these...
8481 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
8482 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
8483 #ifdef DBX_DEBUGGING_INFO.
8484
8485 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
8486
8487 PR bootstrap/48403
8488 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
8489 if old and new states differ.
8490
8491 2011-04-05 Joseph Myers <joseph@codesourcery.com>
8492
8493 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
8494 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
8495 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
8496 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
8497 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
8498 mcfv4e): Use Alias.
8499 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
8500 ColdFire options to -mcpu= options.
8501
8502 2011-04-05 Jeff Law <law@redhat.com>
8503
8504 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
8505 check if BB is a successor of LOOP->header and return
8506 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
8507
8508 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
8509
8510 * cprop.c (struct reg_use): Remove.
8511 (reg_use_table): Make an array of RTX.
8512 (find_used_regs, constprop_register, local_cprop_pass,
8513 bypass_block): Simplify users of reg_use_table.
8514 (cprop_insn): Likewise. Iterate if copy propagation succeeded
8515 on one of the uses found by find_used_regs.
8516
8517 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8518
8519 PR bootstrap/48469
8520 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
8521 declaration.
8522
8523 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8524
8525 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
8526 as an rtx.
8527 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
8528
8529 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
8530
8531 PR middle-end/48441
8532 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
8533
8534 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8535
8536 * combine.c: Include obstack.h.
8537 (struct insn_link): Define.
8538 (uid_log_links): Adjust type.
8539 (FOR_EACH_LOG_LINK): New macro.
8540 (insn_link_obstack): Declare.
8541 (alloc_insn_link): Define.
8542 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
8543 type of link variables.
8544 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
8545 (try_combine, record_promoted_values, distribute_notes): Likewise.
8546 (distribute_links): Likewise. Tweak prototype.
8547 (clear_log_links): Delete.
8548 (adjust_for_new_dest): Call alloc_insn_link.
8549 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
8550
8551 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8552
8553 * gcse.c (modify_mem_list): Convert to an array of VECs.
8554 (canon_modify_mem_list, compute_transp): Tweak formatting.
8555 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
8556 (load_killed_in_block_p): Likewise.
8557 (record_last_mem_set_info): Likewise.
8558 (clear_modify_mem_tables): Likewise.
8559
8560 2011-04-05 Tom de Vries <tom@codesourcery.com>
8561
8562 PR middle-end/48461
8563 * function.c (emit_use_return_register_into_block): Only define if
8564 HAVE_return.
8565
8566 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
8567
8568 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
8569
8570 2011-04-05 Joseph Myers <joseph@codesourcery.com>
8571
8572 * config/rx/rx-opts.h: New.
8573 * config/rx/rx.c (rx_cpu_type): Remove.
8574 (rx_handle_option): Don't assert that global structures are in
8575 use. Access variables via opts pointer. Defer most handling of
8576 OPT_mint_register_. Use error_at.
8577 (rx_option_override): Handle deferred OPT_mint_register_ here.
8578 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
8579 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
8580 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
8581 (rx_cpu_types): New Enum and EnumValue entries.
8582 (mint-register=): Use Defer and use Var accordingly.
8583
8584 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8585
8586 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
8587 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
8588 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
8589 Move these...
8590 (debug_free_queue, debug_nesting, symbol_queue_index):
8591 ...and these...
8592 * dbxout.c: ...to here. Make static.
8593
8594 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8595
8596 * gcse.c (modify_pair): Define. Define a VEC of it.
8597 (canon_modify_mem_list): Convert to an array of VECs.
8598 (free_insn_expr_list_list): Delete.
8599 (clear_modify_mem_tables): Call VEC_free instead.
8600 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
8601 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
8602 (canon_list_insert, compute_transp): Likewise.
8603
8604 2011-04-05 Tom de Vries <tom@codesourcery.com>
8605
8606 PR target/43920
8607 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
8608 for size.
8609
8610 2011-04-05 Tom de Vries <tom@codesourcery.com>
8611
8612 PR target/43920
8613 * function.c (emit_use_return_register_into_block): New function.
8614 (thread_prologue_and_epilogue_insns): Use
8615 emit_use_return_register_into_block.
8616
8617 2011-04-05 Tom de Vries <tom@codesourcery.com>
8618
8619 PR target/43920
8620 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
8621 insn.
8622
8623 2011-04-05 Tom de Vries <tom@codesourcery.com>
8624
8625 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
8626
8627 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
8628
8629 * config/arm/arm.md (define_constants for unspec): Replace with
8630 define_c_enum.
8631 (define_constants for unspecv): Replace with define_c_enum.
8632 * config/arm/neon.md (define_constants for unspec): Replace with
8633 define_c_enum.
8634
8635 2011-04-04 Richard Henderson <rth@redhat.com>
8636
8637 PR bootstrap/48400
8638 * dwarf2out.c (output_line_info): Always emit line info from
8639 at least one section.
8640 (dwarf2out_init): Create text_section_line_info here ...
8641 (set_cur_line_info_table): ... not here.
8642
8643 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
8644
8645 PR target/48380
8646 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
8647 not called.
8648
8649 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
8650
8651 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
8652
8653 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
8654 (expr_equiv_p): Remove.
8655 (insert_set_in_table): Look at <dest, src> pair instead of expr.
8656 (hash_scan_set): Update call to insert_set_in_table.
8657 (dump_hash_table): Dump <dest, src> pair.
8658 (lookup_set): Simplify. Lookup <dest, src> pair.
8659 (compute_transp): Remove, fold heavily simplified code into...
8660 (compute_local_properties): ...here. Expect COMP and TRANSP
8661 unconditionally.
8662 (find_avail_set): Take set directly from struct expr.
8663 (find_bypass-set): Likewise.
8664 (bypass_block): Likewise.
8665 (cprop_insn): Likewise. Remove redundant INSN_P test.
8666
8667 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
8668 checks on form of COND from find_implicit_sets to here.
8669 (find_implicit_sets): Cleanup control flow. Split critical edges
8670 if it exposes implicit sets. Allocate/resize implicit_sets as
8671 necessary.
8672 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
8673 changed something. Run df_analyze after find_implicit_sets if any
8674 edges were split. Do not allocate implicit_sets here.
8675
8676 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
8677 (gcse_obstack): Renamed to cprop_obstack.
8678 (GNEW, GNEWVEC, GNEWVAR): Remove.
8679 (gmalloc): Remove.
8680 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
8681 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
8682 (gcse_alloc): Likewise, and rename to cprop_alloc.
8683 (alloc_gcse_men, free_gcse_mem): Remove.
8684 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
8685 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
8686 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
8687
8688 * cprop.c (oprs_not_set_p): Remove.
8689 (mark_set, mark_clobber): Remove.
8690 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
8691 (reg_not_set_p): New function.
8692 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
8693 (cprop_insn): Likewise.
8694 (cprop_jump): Use FOR_EACH_EDGE.
8695
8696 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
8697
8698 PR bootstrap/48403
8699 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
8700 (rank_for_schedule): Use scheduled_insns vector instead of
8701 last_scheduled_insn.
8702 (ok_for_early_queue_removal): Likewise.
8703 (queue_to_ready): Search forward in nonscheduled_insns_begin if
8704 we have a dbg_cnt.
8705 (choose_ready): Likewise.
8706 (commit_schedule): Use VEC_iterate.
8707 (schedule_block): Initialize nonscheduled_insns_begin. If we have
8708 a dbg_cnt, use it and ensure the first insn is in the ready list.
8709 (haifa_sched_init): Allocate scheduled_insns.
8710 (sched_extend_ready_list): Don't allocate it; reserve space.
8711 (haifa_sched_finish): Free it.
8712
8713 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8714
8715 * optc-gen.awk: Always remove type from Variable entry before
8716 recording in var_seen.
8717
8718 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
8719
8720 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
8721 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
8722 call to tidy_fallthru_edges.
8723
8724 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8725
8726 * doc/options.texi (ToLower): Document.
8727 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
8728 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
8729 * opts.h (cl_option): Add cl_tolower field.
8730 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
8731 arguments with lowercase strings.
8732 * config/rx/rx.opt (mcpu=): Add ToLower.
8733 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
8734 argument.
8735
8736 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
8737
8738 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
8739
8740 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
8741
8742 * config/vax/vax.c: Include reload.h.
8743
8744 2011-04-04 Anatoly Sokolov <aesok@post.ru>
8745
8746 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
8747 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
8748 (sparc_preferred_reload_class): New function.
8749
8750 2011-04-04 Jakub Jelinek <jakub@redhat.com>
8751
8752 PR debug/48401
8753 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8754 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
8755
8756 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
8757
8758 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
8759 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
8760
8761 2011-04-03 Anatoly Sokolov <aesok@post.ru>
8762
8763 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
8764 (ASM_OUTPUT_ALIGNED_BSS): Define.
8765
8766 2011-04-03 Michael Matz <matz@suse.de>
8767
8768 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
8769 and next_slot members.
8770 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
8771 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
8772 (lto_streamer_cache_append): Declare.
8773 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
8774 unsigned index, remove offset parameter, ensure that we append
8775 or update existing entries.
8776 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
8777 parameter, update next_slot for append.
8778 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
8779 parameter.
8780 (lto_streamer_cache_insert_at): Likewise.
8781 (lto_streamer_cache_append): New function.
8782 (lto_streamer_cache_lookup): Use unsigned index.
8783 (lto_streamer_cache_get): Likewise.
8784 (lto_record_common_node): Don't test tree_node_can_be_shared.
8785 (preload_common_node): Adjust call to lto_streamer_cache_insert.
8786 (lto_streamer_cache_delete): Don't free offsets member.
8787 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
8788 (lto_output_string_with_length): Use lto_output_data_stream.
8789 (lto_output_tree_header): Remove ix parameter, don't write it.
8790 (lto_output_builtin_tree): Likewise.
8791 (lto_write_tree): Adjust callers to above, don't track and write
8792 offset, write unsigned index.
8793 (output_unreferenced_globals): Don't emit all global vars.
8794 (write_global_references): Use unsigned indices.
8795 (lto_output_decl_state_refs): Likewise.
8796 (write_symbol): Likewise.
8797 * lto-streamer-in.c (lto_input_chain): Move earlier.
8798 (input_function): Use unsigned index.
8799 (input_alias_pairs): Don't read and then ignore all global vars.
8800 (lto_materialize_tree): Remove ix_p parameter, don't read index,
8801 don't pass it back, use lto_streamer_cache_append.
8802 (lto_register_var_decl_in_symtab): Use unsigned index.
8803 (lto_register_function_decl_in_symtab): Likewise.
8804 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
8805 index.
8806 (lto_get_builtin_tree): Don't read index, use
8807 lto_streamer_cache_append.
8808 (lto_read_tree): Adjust call to lto_materialize_tree.
8809
8810 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
8811 don't use function calls in arguments to MIN.
8812
8813 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
8814 twice.
8815
8816 * gimple.c (gimple_type_leader_entry): Mark deletable.
8817
8818 2011-04-03 Alan Modra <amodra@gmail.com>
8819
8820 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
8821
8822 2011-04-03 Michael Matz <matz@suse.de>
8823
8824 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
8825 an integer.
8826 * tree.h (tree_decl_non_common.vindex): Adjust comment.
8827
8828 2011-04-03 Michael Matz <matz@suse.de>
8829
8830 * cgraphbuild.c (record_reference): Canonicalize constructor values.
8831 * gimple-fold.c (canonicalize_constructor_val): Accept being called
8832 without function context.
8833 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
8834 current_function_decl and cfun.
8835
8836 2011-04-03 Michael Matz <matz@suse.de>
8837
8838 * tree.c (decl_init_priority_insert): Don't create entry for
8839 default priority.
8840 (decl_fini_priority_insert): Ditto.
8841 (fields_compatible_p, find_compatible_field): Remove.
8842 * tree.h (fields_compatible_p, find_compatible_field): Remove.
8843 * gimple.c (gimple_compare_field_offset): Adjust block comment.
8844
8845 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
8846
8847 * combine.c (try_combine): Remove useless local variable.
8848
8849 2011-04-03 Richard Guenther <rguenther@suse.de>
8850 Ira Rosen <ira.rosen@linaro.org>
8851
8852 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
8853 non-variable offsets and compare the remaining bases of the two
8854 accesses instead of looking for exact same data-ref.
8855
8856 2011-04-02 Kai Tietz <ktietz@redhat.com>
8857
8858 PR target/48416
8859 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
8860
8861 * i386.c (ix86_is_msabi_thiscall): New helper function.
8862 (ix86_is_type_thiscall): New helper function.
8863 (ix86_comp_type_attributes): Handle thiscall for method-functions
8864 special.
8865 (init_cumulative_args): Likewise.
8866 (find_drap_reg): Likewise.
8867 (ix86_static_chain): Likewise.
8868 (x86_this_parameter): Likewise.
8869 (x86_output_mi_thunk): Likewise.
8870
8871 2011-04-01 Olivier Hainque <hainque@adacore.com>
8872 Nicolas Setton <setton@adacore.com>
8873 Eric Botcazou <ebotcazou@adacore.com>
8874
8875 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
8876 (add_gnat_descriptive_type_attribute): New function.
8877 (gen_array_type_die): Call it.
8878 (gen_enumeration_type_die): Likewise.
8879 (gen_struct_or_union_type_die): Likewise.
8880 (modified_type_die): Likewise.
8881 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
8882 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
8883 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
8884
8885 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8886
8887 PR bootstrap/48148
8888 * dwarf2out.c (resolve_addr): Don't call force_decl_die
8889 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
8890
8891 Revert:
8892 2011-03-17 Richard Guenther <rguenther@suse.de>
8893
8894 PR bootstrap/48148
8895 * lto-cgraph.c (input_overwrite_node): Clear the abstract
8896 origin for decls in other ltrans units.
8897 (input_varpool_node): Likewise.
8898
8899 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8900
8901 PR middle-end/48335
8902 * expr.c (expand_assignment): Handle all possibilities
8903 if TO_RTX is CONCAT.
8904 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
8905 (store_split_bit_field): If SUBREG_REG (op0) or
8906 op0 itself has smaller mode than word, return it
8907 for offset 0 and const0_rtx for out-of-bounds stores.
8908 If word is const0_rtx, skip it.
8909
8910 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
8911
8912 * config/h8300/h8300.c (print_operand_address): Rename to...
8913 (h8300_print_operand_address): ...this. Make static. Adjust comments.
8914 Call h8300_print_operand and h8300_print_operand_address instead of
8915 print_operand and print_operand_address. Declare.
8916 (print_operand): Renake to...
8917 (h8300_print_operand): ...this. Make static. Adjust comments.
8918 Call h8300_print_operand instead of print_operand. Declare.
8919 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
8920 (h8300_register_move_cost): Likewise.
8921 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
8922 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
8923 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
8924 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
8925 * config/h8300/h8300-protos.h (print_operand): Delete.
8926 (print_operand_address): Delete.
8927
8928 2011-04-01 Richard Henderson <rth@redhat.com>
8929
8930 PR 48400
8931 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
8932 in strict mode before dwarf4. Re-order tests to early out
8933 before switching sections.
8934
8935 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
8936
8937 * config/h8300/constraints.md: New file.
8938 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
8939 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
8940 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
8941 * config/h8300/predicates.md (bit_operand): Likewise.
8942 (incdec_operand): Use satisfies_constraint_M and
8943 satisfies_constraint_O. Don't use C code block.
8944 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
8945 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
8946 (compute_mov_length): Use satisfies_constraint_G.
8947 (fix_bit_operand): Use satisfies_constraint_U.
8948 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
8949 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
8950 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
8951 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
8952 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
8953 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
8954 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8955 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
8956 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
8957 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
8958 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
8959 (EXTRA_MEMORY_CONSTRAINT): Delete.
8960
8961 2011-04-01 Andrew Pinski <pinskia@gmail.com>
8962 Michael Meissner <meissner@linux.vnet.ibm.com>
8963
8964 PR target/48262
8965 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
8966 operands, as per the specifications.
8967
8968 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
8969 (vec_extract_evenv4sf): Ditto.
8970 (vec_extract_evenv8hi): Ditto.
8971 (vec_extract_evenv16qi): Ditto.
8972 (vec_extract_oddv4si): Ditto.
8973
8974 2011-03-31 Mark Wielaard <mjw@redhat.com>
8975
8976 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
8977 high_pc attribute if the CU has no associated code. Only output
8978 DW_AT_entry_pc for CU if not generating strict dwarf and
8979 dwarf_version < 4.
8980
8981 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
8982
8983 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
8984 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
8985 out of ...
8986 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
8987 * final.c (final_start_function): Call the new function rather
8988 than using a NULL argument for dwarf2out_frame_debug.
8989
8990 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
8991 that contains the prologue.
8992
8993 * haifa-sched.c (queue_insn): New arg REASON. All callers
8994 changed. Print it in debugging output.
8995
8996 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
8997
8998 * sched-ebb.c (begin_schedule_ready): Remove second argument.
8999 Split most of the code into...
9000 (begin_move_insn): ... here. New function.
9001 (ebb_sched_info): Add a pointer to it.
9002 * haifa-sched.c (scheduled_insns): New static variable.
9003 (sched_extend_ready_list): Allocate it.
9004 (schedule_block): Use it to record the order of scheduled insns.
9005 Perform RTL changes to move insns only after all scheduling
9006 decisions have been made.
9007 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
9008 begin_move_insn field.
9009 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
9010 * sched-int.h (struct haifa_sched_info): Remove second argument
9011 from begin_schedule_ready hook. Add new member begin_move_insn.
9012 * sched-rgn.c (begin_schedule_ready): Remove second argument.
9013 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
9014
9015 * haifa-sched.c (prune_ready_list): New function, broken out of
9016 schedule_block.
9017 (schedule_block): Use it.
9018
9019 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9020
9021 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
9022
9023 2011-04-01 Kai Tietz <ktietz@redhat.com>
9024
9025 * config.gcc (*-*-mingw*): Allow as option the
9026 posix threading model.
9027 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
9028 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
9029 definition.
9030 (CPP_SPEC): Add pthread/no-pthread handling.
9031 (LIB_SPEC): Likewise.
9032 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
9033 (LIB_SPEC): Likewise.
9034 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
9035 flag to pass -pthread option for shared libgcc build.
9036 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
9037 for shared libgcc build.
9038 * config/i386/t-mingw-pthread: New file.
9039 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
9040 New define to enable use of library pthread by default.
9041 * config/i386/mingw.opt (pthread): New driver option.
9042 (no-pthread): New driver option.
9043 * config/i386/cygming.opt: Make sure trailing empty line is retained.
9044 * config/i386/mingw-w64.opt: Likewise.
9045
9046 2011-04-01 Gary Funck <gary@intrepid.com>
9047
9048 * c-decl.c (grokdeclarator): Fix formatting.
9049
9050 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
9051
9052 * expr.c (emit_block_move_via_movmem): Use n_generator_args
9053 instead of n_operands.
9054 (set_storage_via_setmem): Likewise.
9055 * optabs.c (maybe_gen_insn): Likewise.
9056 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
9057 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
9058 (mips_expand_builtin_direct): Likewise.
9059 * config/spu/spu.c (expand_builtin_args): Likewise.
9060
9061 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
9062
9063 * recog.h (insn_data_d): Add n_generator_args.
9064 * genoutput.c (data): Likewise.
9065 (output_insn_data): Print it.
9066 (max_opno, num_dups): Delete.
9067 (scan_operands): Just fill in "d->operand[...]".
9068 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
9069
9070 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
9071
9072 * gensupport.h (pattern_stats): New structure.
9073 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
9074 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
9075 (max_operand_1, max_operand_vec): Delete.
9076 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
9077
9078 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
9079
9080 * emit-rtl.c (emit_pattern_after_setloc): New function.
9081 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
9082 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
9083 (emit_pattern_after): New function.
9084 (emit_insn_after, emit_jump_insn_after): Call it.
9085 (emit_call_insn_after, emit_debug_insn_after): Likewise.
9086 (emit_pattern_before_setloc): New function.
9087 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
9088 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
9089 Likewise.
9090 (emit_pattern_before): New function.
9091 (emit_insn_before, emit_jump_insn_before): Call it.
9092 (emit_call_insn_before, emit_debug_insn_before): Likewise.
9093
9094 2011-03-31 Richard Henderson <rth@redhat.com>
9095
9096 * dwarf2out.c (dw_separate_line_info_ref): Remove.
9097 (dw_separate_line_info_entry): Remove.
9098 (enum dw_line_info_opcode): New.
9099 (dw_line_info_entry): Use it.
9100 (dw_line_info_table, dw_line_info_table_p): New.
9101 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
9102 (line_info_table, line_info_label_num): Remove.
9103 (line_info_table_in_use): Remove.
9104 (separate_line_info_table): Remove.
9105 (separate_line_info_table_allocated): Remove.
9106 (separate_line_info_table_in_use): Remove.
9107 (LINE_INFO_TABLE_INCREMENT): Remove.
9108 (line_info_label_num): New.
9109 (cur_line_info_table): New.
9110 (text_section_line_info, cold_text_section_line_info): New.
9111 (separate_line_info): New.
9112 (SEPARATE_LINE_CODE_LABEL): Remove.
9113 (print_dwarf_line_table): Remove.
9114 (debug_dwarf): Don't dump it.
9115 (output_one_line_info_table): New.
9116 (output_line_info): Use it.
9117 (new_line_info_table): New.
9118 (set_cur_line_info_table): New.
9119 (dwarf2out_switch_text_section): Use it.
9120 (dwarf2out_begin_function): Likewise.
9121 (push_dw_line_info_entry): New.
9122 (dwarf2out_source_line): Rewrite for new line info tables.
9123 (dwarf2out_init): Remove dead initailizations.
9124
9125 2011-03-31 Joseph Myers <joseph@codesourcery.com>
9126
9127 * opts.h (cl_option): Add comments to fields. Add bit-fields for
9128 various flags.
9129 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
9130 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
9131 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
9132 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
9133 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
9134 * opt-functions.awk (flag_init, switch_bit_fields): New.
9135 (switch_flags): Don't handle flags moved to bit-fields. Don't
9136 generate CL_MISSING_OK or CL_SAVE.
9137 * optc-gen.awk: Update to generate bit-field output as well as
9138 flags field.
9139 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
9140 bit-field instead of CL_REJECT_DRIVER flag.
9141 * opts-common.c (generate_canonical_option,
9142 decode_cmdline_option): Use bit-fields instead of CL_* flags.
9143 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
9144 instead of CL_REJECT_NEGATIVE flag.
9145 * toplev.c (print_switch_values): Use cl_report bit-field instead
9146 of CL_REPORT flag.
9147
9148 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
9149
9150 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
9151 a zero minimum index only if it is redundant.
9152
9153 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
9154
9155 PR rtl-optimization/48381
9156 * ira-color.c (assign_hard_reg): Use hard reg set intersection
9157 instead of ira_class_hard_reg_index for calculating conflicting
9158 hard registers.
9159
9160 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
9161
9162 * cprop.c: Clean up hash table building.
9163 (reg_avail_info): Remove.
9164 (oprs_available_p): Remove.
9165 (record_last_reg_set_info): Remove.
9166 (record_last_set_info): Remove.
9167 (reg_available_p): New function.
9168 (gcse_constant_p): Do not treat unfolded conditions as constants.
9169 (make_set_regs_unavailable): New function.
9170 (hash_scan_set): Simplify with new reg_available_p.
9171 (compute_hash_table_work): Traverse insns stream only once.
9172 Do not compute reg_avail_info. Traverse insns in reverse order.
9173 Record implicit sets after recording explicit sets from the block.
9174
9175 2011-03-31 Michael Matz <matz@suse.de>
9176
9177 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
9178
9179 2011-03-31 Anatoly Sokolov <aesok@post.ru>
9180
9181 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
9182 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
9183 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9184 (h8300_mode_dependent_address_p): New function.
9185 (h8300_get_index): Make static.
9186
9187 2011-03-31 Jeff Law <law@redhat.com>
9188
9189 * reload1.c (elimination_effects): Fix typo in recent change.
9190
9191 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
9192 typo potentially leading to null pointer dereference.
9193
9194 * caller-save.c (new_saved_hard_reg): Eliminate return value.
9195 (setup_save_areas): Corresponding changes to avoid useless
9196 assignments.
9197
9198 * jump.c (reversed_comparison_code_parts): Avoid successive return
9199 statements when REVERSE_CONDITION is defined.
9200
9201 * expr.c (expand_assignment): Avoid useless assignments.
9202 (expand_expr_real_1): Likewise.
9203 (expand_expr_real_2): Avoid useless statements.
9204
9205 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
9206
9207 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
9208
9209 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
9210 statements.
9211
9212 * stmt.c (expand_expr_stmt): Avoid useless assignment.
9213
9214 2011-03-31 Joseph Myers <joseph@codesourcery.com>
9215
9216 PR target/47109
9217 * doc/tm.texi.in (TARGET_VERSION): Remove.
9218 * doc/tm.texi: Regenerate.
9219 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
9220 * collect2.c (main): Don't use TARGET_VERSION.
9221 * mips-tdump.c (main): Don't use TARGET_VERSION.
9222 * mips-tfile.c (main): Don't use TARGET_VERSION.
9223 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
9224 * config/rs6000/vxworksae.h: Remove.
9225 * config/alpha/alpha.h (TARGET_VERSION): Remove.
9226 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
9227 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
9228 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
9229 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
9230 * config/arm/arm.h (TARGET_VERSION): Remove.
9231 * config/arm/coff.h (TARGET_VERSION): Remove.
9232 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
9233 * config/arm/elf.h (TARGET_VERSION): Remove.
9234 * config/arm/freebsd.h (TARGET_VERSION): Remove.
9235 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
9236 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
9237 * config/arm/pe.h (TARGET_VERSION): Remove.
9238 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
9239 * config/arm/semi.h (TARGET_VERSION): Remove.
9240 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
9241 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
9242 * config/arm/vxworks.h (TARGET_VERSION): Remove.
9243 * config/avr/avr.h (TARGET_VERSION): Remove.
9244 * config/bfin/bfin.h (TARGET_VERSION): Remove.
9245 * config/fr30/fr30.h (TARGET_VERSION): Remove.
9246 * config/frv/frv.h (TARGET_VERSION): Remove.
9247 * config/h8300/h8300.h (TARGET_VERSION): Remove.
9248 * config/i386/cygwin.h (TARGET_VERSION): Remove.
9249 * config/i386/darwin.h (TARGET_VERSION): Remove.
9250 * config/i386/darwin64.h (TARGET_VERSION): Remove.
9251 * config/i386/djgpp.h (TARGET_VERSION): Remove.
9252 * config/i386/freebsd.h (TARGET_VERSION): Remove.
9253 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
9254 * config/i386/gnu.h (TARGET_VERSION): Remove.
9255 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
9256 * config/i386/i386elf.h (TARGET_VERSION): Remove.
9257 * config/i386/linux.h (TARGET_VERSION): Remove.
9258 * config/i386/linux64.h (TARGET_VERSION): Remove.
9259 * config/i386/lynx.h (TARGET_VERSION): Remove.
9260 * config/i386/mingw32.h (TARGET_VERSION): Remove.
9261 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
9262 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
9263 * config/i386/netware.h (TARGET_VERSION): Remove.
9264 * config/i386/nto.h (TARGET_VERSION): Remove.
9265 * config/i386/openbsd.h (TARGET_VERSION): Remove.
9266 * config/i386/vxworks.h (TARGET_VERSION): Remove.
9267 * config/ia64/elf.h (TARGET_VERSION): Remove.
9268 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
9269 * config/ia64/hpux.h (TARGET_VERSION): Remove.
9270 * config/ia64/linux.h (TARGET_VERSION): Remove.
9271 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
9272 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
9273 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9274 * config/lm32/lm32.h (TARGET_VERSION): Remove.
9275 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
9276 * config/m32c/m32c.h (TARGET_VERSION): Remove.
9277 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
9278 * config/m32r/m32r.h (TARGET_VERSION): Remove.
9279 * config/m68k/linux.h (TARGET_VERSION): Remove.
9280 * config/m68k/m68k.h (TARGET_VERSION): Remove.
9281 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
9282 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
9283 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
9284 * config/mep/mep.h (TARGET_VERSION): Remove.
9285 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
9286 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9287 * config/mips/iris6.h (MACHINE_TYPE): Remove.
9288 * config/mips/linux.h (TARGET_VERSION): Remove.
9289 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
9290 * config/mips/vxworks.h (TARGET_VERSION): Remove.
9291 * config/mmix/mmix.h (TARGET_VERSION): Remove.
9292 * config/mn10300/linux.h (TARGET_VERSION): Remove.
9293 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
9294 * config/pa/pa.h (TARGET_VERSION): Remove.
9295 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
9296 * config/picochip/picochip.h (TARGET_VERSION): Remove.
9297 * config/rs6000/aix.h (TARGET_VERSION): Remove.
9298 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
9299 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
9300 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
9301 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
9302 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
9303 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
9304 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
9305 * config/rs6000/linux.h (TARGET_VERSION): Remove.
9306 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
9307 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
9308 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
9309 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
9310 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
9311 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
9312 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
9313 * config/s390/linux.h (TARGET_VERSION): Remove.
9314 * config/s390/s390.h (TARGET_VERSION): Remove.
9315 * config/s390/tpf.h (TARGET_VERSION): Remove.
9316 * config/score/score.h (TARGET_VERSION): Remove.
9317 * config/sh/linux.h (TARGET_VERSION): Remove.
9318 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
9319 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
9320 * config/sh/sh.h (TARGET_VERSION): Remove.
9321 * config/sh/sh64.h (TARGET_VERSION): Remove.
9322 * config/sh/superh.h (TARGET_VERSION): Remove.
9323 * config/sh/vxworks.h (TARGET_VERSION): Remove.
9324 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
9325 * config/sparc/linux.h (TARGET_VERSION): Remove.
9326 * config/sparc/linux64.h (TARGET_VERSION): Remove.
9327 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
9328 TARGET_NAME32, TARGET_NAME): Remove.
9329 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
9330 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
9331 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
9332 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
9333 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
9334 * config/spu/spu.h (TARGET_VERSION): Remove.
9335 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
9336 * config/v850/v850.h (TARGET_VERSION): Remove.
9337 * config/vax/linux.h (TARGET_VERSION): Remove.
9338 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
9339 * config/xtensa/elf.h (TARGET_VERSION): Remove.
9340 * config/xtensa/linux.h (TARGET_VERSION): Remove.
9341
9342 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
9343
9344 PR target/48142
9345 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
9346 frame-related from frame-unrelated adjustments to the stack pointer.
9347
9348 2011-03-31 Jakub Jelinek <jakub@redhat.com>
9349
9350 * common.opt (fdebug-types-section): Move earlier.
9351 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
9352
9353 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
9354
9355 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
9356 var.
9357
9358 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
9359
9360 * tree.h (CASE_CHAIN): Define.
9361 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
9362 (gimple_redirect_edge_and_branch): Likewise.
9363
9364 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
9365
9366 PR middle-end/48367
9367 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
9368 calculation.
9369
9370 2011-03-30 Jeff Law <law@redhat.com>
9371
9372 * PR bootstrap/48371
9373 * reload1.c (reload): Fix botch in last change.
9374
9375 * reload.h (struct reload): Fix typo introduced in last change.
9376
9377 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9378
9379 * config/arm/arm.opt (mhard-float, msoft-float): Mark
9380 Undocumented. Remove help text.
9381 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
9382 -mhard-float.
9383
9384 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9385
9386 * doc/options.texi (NegativeAlias): Document.
9387 (Alias): Mention NegativeAlias.
9388 * opt-functions.awk: Handle NegativeAlias.
9389 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
9390 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
9391 * opts.h (CL_NEGATIVE_ALIAS): Define.
9392 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
9393 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
9394 OPT_mspe_.
9395 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
9396 Alias entries.
9397 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9398 mno-spe and mno-isel instead of mspe=no and -misel=no.
9399
9400 2011-03-29 Mark Wielaard <mjw@redhat.com>
9401
9402 * common.opt (fdebug-types-section): New flag.
9403 * doc/invoke.texi: Document new -fno-debug-types-section flag.
9404 * dwarf2out.c (use_debug_types): New define.
9405 (struct die_struct): Mark die_id with GTY desc use_debug_types.
9406 (print_die): Guard output of type unit signatures using
9407 use_debug_types.
9408 (build_abbrev_table): Replace assert of dwarf_version >= 4
9409 with assert on use_debug_types.
9410 (size_of_die): Likewise.
9411 (unmark_dies): Likewise.
9412 (value_format): Decide AT_ref_external form on use_debug_types.
9413 (output_die): Replace dwarf_version version check guard with
9414 use_debug_types where appropriate.
9415 (modified_type_die): Likewise.
9416 (gen_reference_type_die): Likewise.
9417 (dwarf2out_start_source_file): Likewise.
9418 (dwarf2out_end_source_file): Likewise.
9419 (prune_unused_types_walk_attribs): Likewise.
9420 (dwarf2out_finish): Likewise.
9421
9422 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
9423
9424 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
9425
9426 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9427
9428 PR rtl-optimization/48332
9429 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
9430 mode of input operand N and modeN to its actual mode.
9431
9432 2011-03-30 Jeff Law <law@redhat.com>
9433
9434 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
9435 define accessor macro.
9436 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
9437 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
9438 (reg_equiv_init): Likewise.
9439 (reg_equivs_size): New variable.
9440 (reg_equiv_init_size): Remove.
9441 (allocate_initial_values): Move prototype to here from....
9442 * integrate.h (allocate_initial_values): Remove prototype.
9443 * integrate.c: Include reload.h.
9444 (allocate_initial_values): Corresponding changes.
9445 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
9446 (fix_reg_equiv_init, no_equiv): Corresponding changes.
9447 (update_equiv_regs): Corresponding changes.
9448 (ira): Corresponding changes.
9449 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
9450 (push_secondary_reload): Corresponding changes.
9451 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
9452 (make_memloc, find_reloads_address): Corresponding changes.
9453 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
9454 (find_reloads_address_1): Corresponding changes.
9455 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
9456 (refers_to_regno_for_reload_p): Corresponding changes.
9457 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
9458 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
9459 * reload1.c: Include ggc.h.
9460 (grow_reg_equivs): New function.
9461 (replace_pseudos_in, reload): Corresponding changes.
9462 (calculate_needs_all_insns, alter_regs): Corresponding changes.
9463 (eliminate_regs_1, elimination_effects): Corresponding changes.
9464 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
9465 (delete_output_reload): Likewise.
9466 * caller-save.c (mark_referenced_regs): Corresponding changes.
9467 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
9468 * frv/predicates.md (frv_load_operand): Corresponding changes.
9469 * microblaze/microblaze.c (double_memory_operand): Corresponding
9470 changes.
9471 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
9472 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
9473 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
9474 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
9475 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
9476 changes.
9477 * pa/pa.c (emit_move_sequence): Corresponding changes.
9478 * vax/vax.c (nonindexed_address_p): Corresponding changes.
9479
9480 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9481
9482 PR target/47551
9483 * config/arm/arm.c (coproc_secondary_reload_class): Handle
9484 structure modes. Don't check neon_vector_mem_operand for
9485 vector or structure modes.
9486
9487 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9488 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9489
9490 PR target/43590
9491 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
9492 operand 1 and reshuffle the operands to match.
9493 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
9494
9495 2011-03-30 Christian Schüler <cschueler@gmx.de>
9496
9497 PR driver/48208
9498 * config/c.opt (F): Added 'Driver' to -F option.
9499
9500 PR driver/48260
9501 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
9502 handler function.
9503 * config/darwin.opt: Added '-arch' option.
9504
9505 2011-03-30 Nick Clifton <nickc@redhat.com>
9506
9507 * config/rx/rx.md: Add peepholes and patterns to combine
9508 extending loads and simple arithmetic instructions.
9509 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
9510 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
9511 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
9512 modes to use pre-decrement and post-increment addressing.
9513 (rx_is_restricted_memory_address): Add range checking of REG+INT
9514 addresses.
9515 (rx_print_operand): Add support for %Q. Fix handling of %Q.
9516 (rx_memory_move_cost): Adjust cost of stores.
9517 (rx_adjust_insn_length): New function.
9518
9519 2011-03-30 Jakub Jelinek <jakub@redhat.com>
9520
9521 PR c/48305
9522 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9523 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
9524 matching arg00/arg01 types.
9525
9526 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
9527
9528 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
9529 last_location to UNKNOWN_LOCATION.
9530
9531 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
9532
9533 PR target/48349
9534 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
9535 FLOAT_SSE_REGS.
9536
9537 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9538 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9539
9540 PR bootstrap/48337
9541 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
9542 Init(PROCESSOR_V7).
9543 (sparc_cpu): Likewise.
9544 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
9545 PROCESSOR_V7.
9546
9547 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9548
9549 PR target/48336
9550 PR middle-end/48342
9551 PR rtl-optimization/48345
9552 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
9553 hard regs for given mode from profitable regs when doing secondary
9554 allocation.
9555
9556 2011-03-29 Jeff Law <law@redhat.com>
9557
9558 PR bootstrap/48327
9559 * tree-ssa-threadupdate.c (struct redirection_data): Remove
9560 do_not_duplicate field.
9561 (lookup_redirection_data): Corresponding changes.
9562 (create_duplicates): Always create a template block.
9563 (redirect_edges): Remove code which reused the original block
9564 when it was going to become unreachable code.
9565 (thread_block): Don't set do_not_duplicate field.
9566
9567 2011-03-29 Joseph Myers <joseph@codesourcery.com>
9568
9569 * lto-opts.c (register_user_option_p, lto_register_user_option):
9570 Make type argument unsigned.
9571 * lto-streamer.h (lto_register_user_option): Make type argument
9572 unsigned.
9573 * opth-gen.awk: Make CL_* macros unsigned.
9574 * opts-common.c (find_opt): Make lang_mask argument unsigned.
9575 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
9576 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
9577 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
9578 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
9579 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
9580 (find_opt): Make lang_mask argument unsigned.
9581
9582 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9583
9584 PR rtl-optimization/48331
9585 PR rtl-optimization/48334
9586 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
9587 for any used algorithm.
9588
9589 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9590
9591 * ira-conflicts.c (build_object_conflicts): Add unused attribute
9592 to parent_max.
9593
9594 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
9595
9596 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
9597 (alpha_option_override): Don't set alpha_sr_alias_set.
9598 (emit_frame_store_1): Use gen_frame_mem rather than calling
9599 set_mem_alias_set.
9600 (alpha_expand_epilogue): Ditto.
9601
9602 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
9603
9604 PR tree-optimization/48290
9605 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
9606 vectorization, check that relevant phis in the basic block after
9607 the inner loop are really inner loop's exit phis.
9608
9609 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
9610
9611 PR debug/48190
9612 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
9613 (cached_dw_loc_list_def): New structure.
9614 (cached_dw_loc_list): New typedef.
9615 (cached_dw_loc_list_table): New variable.
9616 (cached_dw_loc_list_table_hash): New function.
9617 (cached_dw_loc_list_table_eq): Likewise.
9618 (add_location_or_const_value_attribute): Take a bool cache_p.
9619 Cache the list when the parameter is true.
9620 (gen_formal_parameter_die): Update caller.
9621 (gen_variable_die): Likewise.
9622 (dwarf2out_finish): Likewise.
9623 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
9624 while generating debug info for the decl.
9625 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
9626 (dwarf2out_init): Initialize cached_dw_loc_list_table.
9627 (resolve_addr): Cache the result of resolving a chain of
9628 location lists.
9629
9630 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
9631
9632 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
9633 conflict object hard regset nodes have intersecting hard reg sets.
9634
9635 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
9636 after regstat_init_n_sets_and_refs.
9637
9638 * ira.c: Add more comments at the top.
9639 (setup_stack_reg_pressure_class, setup_pressure_classes):
9640 Add comments how we compute the register pressure classes.
9641 (setup_allocno_and_important_classes): Add more comments.
9642 (setup_class_translate_array, reorder_important_classes)
9643 (setup_reg_class_relations): Add comments.
9644
9645 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
9646 start of the file.
9647
9648 * ira-color.c: Add 2011 to the Copyright line.
9649 (assign_hard_reg): Add more comments.
9650 (improve_allocation): Ditto.
9651
9652 * ira-costs.c: Add 2011 to the Copyright line.
9653 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
9654 comments.
9655 (setup_regno_cost_classes_by_mode): Ditto.
9656
9657 Initial patches from ira-improv branch:
9658
9659 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
9660
9661 * ira-build.c (ira_create_object): Remove initialization of
9662 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
9663 (ira_create_allocno): Remove initialization of
9664 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
9665 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
9666 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9667 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
9668 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
9669 Initialize ALLOCNO_ADD_DATA.
9670 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
9671 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
9672 ALLOCNO_REG.
9673 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
9674 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
9675
9676 * ira.c (ira_reallocate): Remove.
9677 (setup_pressure_classes): Call
9678 ira_init_register_move_cost_if_necessary. Use
9679 ira_register_move_cost instead of ira_get_register_move_cost.
9680 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
9681 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
9682
9683 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
9684 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9685 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
9686 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
9687 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
9688 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
9689 Fix formatting.
9690 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
9691 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9692 (struct allocno_color_data): New.
9693 (allocno_color_data_t): New typedef.
9694 (allocno_color_data): New definition.
9695 (ALLOCNO_COLOR_DATA): New macro.
9696 (struct object_color_data): New.
9697 (object_color_data_t): New typedef.
9698 (object_color_data): New definition.
9699 (OBJECT_COLOR_DATA): New macro.
9700 (update_copy_costs, calculate_allocno_spill_cost): Call
9701 ira_init_register_move_cost_if_necessary. Use
9702 ira_register_move_cost instead of ira_get_register_move_cost.
9703 (move_spill_restore, update_curr_costs): Ditto.
9704 (allocno_spill_priority): Make it inline.
9705 (color_pass): Allocate and free allocno_color_dat and object_color_data.
9706 (struct coalesce_data, coalesce_data_t): New.
9707 (allocno_coalesce_data): New definition.
9708 (ALLOCNO_COALESCE_DATA): New macro.
9709 (merge_allocnos, coalesced_allocno_conflict_p): Use
9710 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
9711 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
9712 (coalesce_allocnos): Ditto.
9713 (setup_coalesced_allocno_costs_and_nums): Ditto.
9714 (collect_spilled_coalesced_allocnos): Ditto.
9715 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
9716 (setup_slot_coalesced_allocno_live_ranges): Ditto.
9717 (coalesce_spill_slots): Ditto.
9718 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
9719 free allocno_coalesce_data.
9720
9721 * ira-conflicts.c: Fix formatting.
9722 (process_regs_for_copy): Call
9723 ira_init_register_move_cost_if_necessary. Use
9724 ira_register_move_cost instead of ira_get_register_move_cost.
9725 (build_object_conflicts): Optimize.
9726
9727 * ira-costs.c (record_reg_classes): Optimize. Call
9728 ira_init_register_move_cost_if_necessary. Use
9729 ira_register_move_cost, ira_may_move_in_cost, and
9730 ira_may_move_out_cost instead of ira_get_register_move_cost and
9731 ira_get_may_move_cost.
9732 (record_address_regs): Ditto.
9733 (scan_one_insn): Optimize.
9734 (find_costs_and_classes): Optimize.
9735 (process_bb_node_for_hard_reg_moves): Call
9736 ira_init_register_move_cost_if_necessary. Use
9737 ira_register_move_cost instead of ira_get_register_move_cost.
9738
9739 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
9740 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
9741 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
9742 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
9743 definitions.
9744 (ira_initiate_emit_data, ira_finish_emit_data)
9745 (create_new_allocno): New functions.
9746 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
9747 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
9748 Use ira_register_move_cost instead of ira_get_register_move_cost.
9749
9750 * ira-int.h: Fix some comments.
9751 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
9752 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9753 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
9754 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
9755 add_data.
9756 (struct ira_allocno): Make mode and aclass a bitfield. Move other
9757 bitfield after mode. Make hard_regno a short int. Make
9758 hard_regno short. Remove first_coalesced_allocno and
9759 next_coalesced_allocno. Move mem_optimized_dest_p,
9760 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
9761 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
9762 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
9763 temp, colorable_p. Add new member add_data.
9764 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
9765 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
9766 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
9767 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
9768 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
9769 (ALLOCNO_ADD_DATA): New macro.
9770 (ira_emit_data_t): New typedef.
9771 (struct ira_emit_data): New. Move mem_optimized_dest_p,
9772 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
9773 from struct ira_allocno.
9774 (ALLOCNO_EMIT_DATA): New macro.
9775 (ira_allocno_emit_data, allocno_emit_reg): New.
9776 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
9777 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
9778 (OBJECT_ADD_DATA): New macro.
9779 (ira_reallocate): Remove.
9780 (ira_initiate_emit_data, ira_finish_emit_data): New.
9781 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
9782 (ira_init_register_move_cost_if_necessary): New.
9783 (ira_object_conflict_iter_next): Merge into
9784 ira_object_conflict_iter_cond.
9785 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
9786
9787 * ira-live.c (process_single_reg_class_operands): Call
9788 ira_init_register_move_cost_if_necessary. Use
9789 ira_register_move_cost instead of ira_get_register_move_cost.
9790
9791 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
9792
9793 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
9794
9795 * ira-costs.c: Fix formatting.
9796 (cost_classes, cost_classes_num): Remove.
9797 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
9798 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
9799 (cost_classes_del, cost_classes_htab): New.
9800 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
9801 (initiate_regno_cost_classes, setup_cost_classes): New.
9802 (setup_regno_cost_classes_by_aclass): New.
9803 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
9804 (record_reg_classes): Use regno_cost_classes instead of
9805 cost_classes. Move checking opposite operand up.
9806 (record_address_regs): Use regno_cost_classes
9807 instead of cost_classes.
9808 (scan_one_insn): Ditto. Use always general register.
9809 (print_allocno_costs): Use regno_cost_classes instead of
9810 cost_classes.
9811 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
9812 (find_costs_and_classes): Set up cost classes for each registers.
9813 Use also their mode for this. Use regno_cost_classes instead of
9814 cost_classes.
9815 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
9816 cost_classes.
9817 (free_ira_costs, ira_init_costs): Don't use cost_classes.
9818 (ira_costs, ira_set_pseudo_classes): Call
9819 initiate_regno_cost_classes and finish_regno_cost_classes.
9820
9821 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
9822
9823 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
9824
9825 * target.def (ira_cover_classes): Remove.
9826
9827 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
9828
9829 * doc/tm.texi.in: Ditto.
9830
9831 * ira-conflicts.c: Remove mentioning cover classes from the file.
9832 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
9833 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
9834
9835 * targhooks.c (default_ira_cover_classes): Remove.
9836
9837 * targhooks.h (default_ira_cover_classes): Ditto.
9838
9839 * haifa-sched.c: Remove mentioning cover classes from the file.
9840 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9841 ira_pressure_classes and ira_pressure_classes_num instead of
9842 ira_reg_class_cover_size and ira_reg_class_cover. Use
9843 sched_regno_pressure_class instead of sched_regno_cover_class.
9844 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
9845 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9846
9847 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
9848 classes from the file.
9849 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
9850 (struct object_hard_regs, struct object_hard_regs_node): New.
9851 (struct ira_object): New members profitable_hard_regs,
9852 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
9853 (struct ira_allocno): Rename cover_class to aclass. Rename
9854 cover_class_cost and updated_cover_class_cost to class_cost and
9855 updated_class_cost. Remove splay_removed_p and
9856 left_conflict_size. Add new members colorable_p.
9857 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
9858 (ALLOCNO_COLORABLE_P): New macro.
9859 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
9860 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
9861 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
9862 (OBJECT_...): Rename parameter C to O.
9863 (OBJECT_PROFITABLE_HARD_REGS): New macro.
9864 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
9865 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
9866 (struct target_ira_int): New members x_ira_max_memory_move_cost,
9867 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
9868 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
9869 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
9870 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
9871 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
9872 x_ira_reg_class_subunion.
9873 (ira_max_memory_move_cost, ira_max_register_move_cost)
9874 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
9875 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
9876 (ira_important_class_nums, ira_reg_class_superunion): New macros.
9877 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
9878 (ira_reg_class_union): Rename to ira_reg_class_subunion.
9879 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9880 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9881 (ira_tune_allocno_costs_and_cover_classes): Rename to
9882 ira_tune_allocno_costs.
9883 (ira_debug_hard_regs_forest): New.
9884 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
9885 (ira_object_conflict_iter_next): Fix comments.
9886 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
9887 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
9888 cover_class to aclass.
9889 (ira_allocate_and_accumulate_costs): Ditto.
9890 (ira_allocate_and_set_or_copy_costs): Ditto.
9891
9892 * opts.c (decode_options): Remove ira_cover_class check.
9893
9894 * ira-color.c: Remove mentioning cover classes from the file. Use
9895 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
9896 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
9897 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9898 (splay-tree.h): Remove include.
9899 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
9900 before copy_freq_compare_func.
9901 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
9902 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
9903 New definitions.
9904 (hard_regs_roots, hard_regs_node_vec): Ditto.
9905 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
9906 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
9907 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
9908 (create_new_object_hard_regs_node): Ditto.
9909 (add_new_object_hard_regs_node_to_forest): Ditto.
9910 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
9911 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
9912 Ditto.
9913 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
9914 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
9915 (remove_unused_object_hard_regs_nodes): Ditto.
9916 (enumerate_object_hard_regs_nodes): Ditto.
9917 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
9918 (object_hard_regs_subnode_t): Ditto.
9919 (struct object_hard_regs_subnode): Ditto.
9920 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
9921 (setup_object_hard_regs_subnode_index): Ditto.
9922 (get_object_hard_regs_subnodes_num): Ditto.
9923 (form_object_hard_regs_nodes_forest): Ditto.
9924 (finish_object_hard_regs_nodes_tree): Ditto.
9925 (finish_object_hard_regs_nodes_forest): Ditto.
9926 (allocnos_have_intersected_live_ranges_p): Rename to
9927 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9928 (pseudos_have_intersected_live_ranges_p): Rename to
9929 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9930 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
9931 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
9932 (update_copy_costs): Remove assert. Skip cost update if the hard
9933 reg does not belong the class.
9934 (assign_hard_reg): Process only profitable hard regs.
9935 (uncolorable_allocnos_num): Make it scalar.
9936 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
9937 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
9938 and ira_reg_class_max_nregs.
9939 (bucket_allocno_compare_func): Check frequency first.
9940 (sort_bucket): Add compare function as a parameter.
9941 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
9942 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
9943 (push_allocno_to_stack): Rewrite for checking new allocno
9944 colorability.
9945 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
9946 (push_only_colorable): Pass new parameter to sort_bucket.
9947 (push_allocno_to_spill): Remove.
9948 (allocno_spill_priority_compare): Make it inline and rewrite.
9949 (splay_tree_allocate, splay_tree_free): Remove.
9950 (allocno_spill_sort_compare): New function.
9951 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
9952 build and use splay tree. Choose first allocno in uncolorable
9953 allocno bucket to spill. Remove setting spill cost.
9954 (all_conflicting_hard_regs): Remove.
9955 (setup_allocno_available_regs_num): Check only profitable hard
9956 regs. Print info about hard regs nodes.
9957 (setup_allocno_left_conflicts_size): Remove.
9958 (put_allocno_into_bucket): Don't call
9959 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
9960 (improve_allocation): New.
9961 (color_allocnos): Call setup_profitable_hard_regs,
9962 form_object_hard_regs_nodes_forest, improve_allocation,
9963 finish_object_hard_regs_nodes_forest. Setup spill cost.
9964 (print_loop_title): Use pressure classes.
9965 (color_allocnso): Ditto.
9966 (do_coloring): Remove allocation and freeing splay_tree_node_pool
9967 and allocnos_for_spilling.
9968 (ira_sort_regnos_for_alter_reg): Don't setup members
9969 {first,next}_coalesced_allocno.
9970 (color): Remove allocating and freeing removed_splay_allocno_vec.
9971 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
9972 prohibited_class_mode_regs.
9973
9974 * ira-lives.c: Remove mentioning cover classes from the file. Fix
9975 formatting.
9976 (update_allocno_pressure_excess_length): Use pressure classes.
9977 (inc_register_pressure, dec_register_pressure): Check for pressure
9978 class.
9979 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
9980 pressure class. Use ira_reg_class_nregs instead of
9981 ira_reg_class_max_nregs.
9982 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
9983 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
9984 (single_reg_class): Use ira_reg_class_nregs instead of
9985 ira_reg_class_max_nregs.
9986 (process_bb_node_lives): Use pressure classes.
9987
9988 * ira-emit.c: Remove mentioning cover classes from the file. Use
9989 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
9990 (change_loop): Use pressure classes.
9991 (modify_move_list): Call ira_set_allocno_class instead of
9992 ira_set_allocno_cover_class.
9993
9994 * ira-build.c: Remove mentioning cover classes from the file. Use
9995 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
9996 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
9997 ALLOCNO_UPDATED_CLASS_COST instead of
9998 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9999 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
10000 (ira_create_allocno): Remove initialization of
10001 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
10002 ALLOCNO_COLORABLE_P.
10003 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
10004 Update conflict regs for the objects.
10005 (create_cap_allocno): Remove assert. Don't propagate
10006 ALLOCNO_AVAILABLE_REGS_NUM.
10007 (ira_free_allocno_costs): New function.
10008 (finish_allocno): Change a part of code into call of
10009 ira_free_allocno_costs.
10010 (low_pressure_loop_node_p): Use pressure classes.
10011 (object_range_compare_func): Don't compare classes.
10012 (setup_min_max_conflict_allocno_ids): Ditto.
10013
10014 * loop-invariant.c: Remove mentioning cover classes from the file.
10015 Use ira_pressure_classes and ira_pressure_classes_num instead of
10016 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
10017 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
10018 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
10019 Use reg_allocno_class instead of reg_cover_class.
10020 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
10021 STACK_REG_COVER_CLASS.
10022 (get_regno_cover_class): Rename to get_regno_pressure_class.
10023 (move_loop_invariants): Initialize and finalize regstat.
10024
10025 * ira.c: Remove mentioning cover classes from the file. Add
10026 comments about coloring without cover classes. Use ALLOCNO_CLASS
10027 instead of ALLOCNO_COVER_CLASS. Fix formatting.
10028 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
10029 setup_class_subset_and_memory_move_costs.
10030 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
10031 (setup_cover_and_important_classes): Rename to
10032 setup_allocno_and_important_classes.
10033 (setup_class_translate_array): New.
10034 (setup_class_translate): Call it for allocno and pressure classes.
10035 (cover_class_order): Rename to allocno_class_order.
10036 (comp_reg_classes_func): Use ira_allocno_class_translate instead
10037 of ira_class_translate.
10038 (reorder_important_classes): Set up ira_important_class_nums.
10039 (setup_reg_class_relations): Set up ira_reg_class_superunion.
10040 (print_class_cover): Rename to print_classes. Add parameter.
10041 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
10042 Print pressure classes too.
10043 (find_reg_class_closure): Rename to find_reg_classes. Don't call
10044 setup_reg_subclasses.
10045 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
10046 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
10047 (setup_prohibited_class_mode_regs): Use
10048 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
10049 (clarify_prohibited_class_mode_regs): New function.
10050 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
10051 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
10052 (ira_init_once): Initialize them.
10053 (free_register_move_costs): Process them.
10054 (ira_init): Move calls of find_reg_classes and
10055 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
10056 Call clarify_prohibited_class_mode_regs.
10057 (ira_no_alloc_reg): Remove.
10058 (too_high_register_pressure_p): Use pressure classes.
10059
10060 * sched-deps.c: Remove mentioning cover classes from the file.
10061 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
10062 ira_pressure_classes and ira_pressure_classes_num instead of
10063 ira_reg_class_cover_size and ira_reg_class_cover.
10064 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
10065 sched_regno_pressure_class instead of sched_regno_cover_class.
10066 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
10067 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
10068
10069 * ira.h: Add 2010 to Copyright.
10070 (ira_no_alloc_reg): Remove external.
10071 (struct target_ira): Rename x_ira_hard_regno_cover_class,
10072 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
10073 x_ira_class_translate to x_ira_hard_regno_allocno_class,
10074 x_ira_allocno_classes_num, x_ira_allocno_classes, and
10075 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
10076 x_ira_pressure_classes, x_ira_pressure_class_translate, and
10077 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
10078 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
10079 x_ira_no_alloc_regs.
10080 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
10081 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
10082 ira_allocno_classes_num and ira_allocno_classes.
10083 (ira_class_translate): Rename to ira_allocno_class_translate.
10084 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
10085 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
10086 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
10087 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
10088 (ira_no_alloc_regs): New.
10089
10090 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
10091 classes from the file. Use ALLOCNO_CLASS instead of
10092 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
10093 ALLOCNO_COVER_CLASS_COST.
10094 (regno_cover_class): Rename to regno_aclass.
10095 (record_reg_classes): Use ira_reg_class_subunion instead of
10096 ira_reg_class_union.
10097 (record_address_regs): Check overflow.
10098 (scan_one_insn): Ditto.
10099 (print_allocno_costs): Print total mem cost fore regional allocation.
10100 (print_pseudo_costs): Use REG_N_REFS.
10101 (find_costs_and_classes): Use classes intersected with them on the
10102 1st pass. Check overflow. Use ira_reg_class_subunion instead of
10103 ira_reg_class_union. Use ira_allocno_class_translate and
10104 regno_aclass instead of ira_class_translate and regno_cover_class.
10105 Modify code for finding regno_aclass. Setup preferred classes for
10106 the next pass.
10107 (setup_allocno_cover_class_and_costs): Rename to
10108 setup_allocno_class_and_costs. Use regno_aclass instead of
10109 regno_cover_class. Use ira_set_allocno_class instead of
10110 ira_set_allocno_cover_class.
10111 (init_costs, finish_costs): Use regno_aclass instead of
10112 regno_cover_class.
10113 (ira_costs): Use setup_allocno_class_and_costs instead of
10114 setup_allocno_cover_class_and_costs.
10115 (ira_tune_allocno_costs_and_cover_classes): Rename to
10116 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
10117 by processing objects. Use ira_reg_class_max_nregs instead of
10118 ira_reg_class_nregs.
10119
10120 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
10121
10122 * sched-int.h: Remove mentioning cover classes from the file.
10123 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
10124
10125 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
10126 classes from the file.
10127 (struct reg_pref): Rename coverclass into allocnoclass.
10128 (reg_cover_class): Rename to reg_allocno_class.
10129
10130 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
10131
10132 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
10133
10134 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
10135
10136 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
10137
10138 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
10139
10140 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
10141
10142 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
10143
10144 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
10145
10146 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
10147
10148 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
10149
10150 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
10151 (i386_ira_cover_classes): Ditto.
10152
10153 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
10154
10155 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
10156
10157 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
10158
10159 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
10160
10161 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
10162
10163 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
10164
10165 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
10166 (mips_ira_cover_classes): Ditto.
10167
10168 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
10169
10170 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
10171
10172 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
10173
10174 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
10175
10176 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
10177
10178 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
10179 (IRA_COVER_CLASSES_VSX): Ditto.
10180
10181 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
10182 (rs6000_ira_cover_classes): Ditto.
10183
10184 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
10185
10186 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
10187
10188 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
10189
10190 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
10191
10192 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
10193
10194 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
10195
10196 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
10197
10198 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
10199
10200 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
10201
10202 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
10203
10204 2011-03-29 Jakub Jelinek <jakub@redhat.com>
10205
10206 PR debug/48253
10207 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
10208 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
10209 dw_fde_unlikely_section_end_label, cold_in_std_section,
10210 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
10211 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
10212 fields.
10213 (output_fde): Use dw_fde_second_{begin,end} if second is
10214 true, otherwise dw_fde_{begin,end}.
10215 (output_call_frame_info): Test dw_fde_second_begin != NULL
10216 instead of dw_fde_switched_sections.
10217 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
10218 fields, initialize new fields. Initialize in_std_section
10219 unconditionally from the first partition.
10220 (dwarf2out_end_epilogue): Don't override dw_fde_end when
10221 dw_fde_second_begin is non-NULL.
10222 (dwarf2out_switch_text_section): Stop initializing removed
10223 dw_fde_struct fields, initialize new fields, initialize
10224 also dw_fde_end here. Set dw_fde_switch_cfi even when
10225 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
10226 (struct var_loc_list_def): Add last_before_switch field.
10227 (arange_table, arange_table_allocated, arange_table_in_use,
10228 ARANGE_TABLE_INCREMENT, add_arange): Removed.
10229 (size_of_aranges): Count !in_std_section and !second_in_std_section
10230 hunks in fdes, instead of looking at arange_table_in_use.
10231 (output_aranges): Add aranges_length argument, don't call
10232 size_of_aranges here. Instead of using aranges_table*
10233 emit ranges for fdes when !in_std_section resp.
10234 !second_in_std_section.
10235 (dw_loc_list): Break ranges crossing section switch.
10236 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
10237 use dw_fde_second_end instead of dw_fde_end as end of last range.
10238 (gen_subprogram_die): Don't call add_arange. Use
10239 dw_fde_{begin,end} for first partition and if switched
10240 section dw_fde_second_{begin,end} for the second.
10241 (var_location_switch_text_section_1,
10242 var_location_switch_text_section): New functions.
10243 (dwarf2out_begin_function): Initialize cold_text_section even
10244 when function_section () isn't text_section.
10245 (prune_unused_types): Don't walk arange_table.
10246 (dwarf2out_finish): Don't needlessly test
10247 flag_reorder_blocks_and_partition when testing cold_text_section_used.
10248 If info_section_emitted, call size_of_aranges and if it indicates
10249 non-empty .debug_aranges, call output_aranges with the computed
10250 size. Stop using removed dw_fde_struct fields, use
10251 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
10252 for second.
10253
10254 PR debug/48203
10255 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
10256 create ENTRY_VALUE if incoming or address of incoming's MEM
10257 is a hard REG.
10258 * dwarf2out.c (mem_loc_descriptor): Don't emit
10259 DW_OP_GNU_entry_value of DW_OP_fbreg.
10260 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
10261 on ENTRY_VALUE is able to find the canonical parameter VALUE.
10262 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
10263 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
10264 ENTRY_VALUE_EXPs.
10265 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
10266 is a REG_P or MEM_P with REG_P address, compute hash directly
10267 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
10268 (preserve_only_constants): Don't clear VALUES forwaring
10269 ENTRY_VALUE to some other VALUE.
10270
10271 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
10272
10273 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
10274 instead of GEN_INT.
10275
10276 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
10277
10278 * cfgexpand.c (expand_gimple_cond): Always set the source location and
10279 block before expanding the statement.
10280 (expand_gimple_stmt_1): Likewise. Set them here...
10281 (expand_gimple_stmt): ...and not here. Tidy.
10282 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
10283 unknown.
10284
10285 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
10286
10287 * Makefile.in: New rule for cprop.o.
10288 * gcse.c: Move constant/copy propagation to cprop.c.
10289 (compute_local_properties): Only handle expression tables.
10290 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
10291 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
10292 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
10293 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
10294 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
10295 compute_cprop_data, find_used_regs, try_replace_reg,
10296 find_avail_set, cprop_jump, constprop_register, cprop_insn,
10297 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
10298 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
10299 find_bypass_set, reg_killed_on_edge, bypass_block,
10300 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
10301 execute_rtl_cprop, pass_rtl_cprop): Move to...
10302 * cprop.c: ...here. New file, constant/copy propagation for RTL
10303 moved from gcse.c to here with minor cleanups in duplicated code.
10304
10305 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
10306
10307 * config/i386/i386.c (flag_opts): Fix a typo in
10308 -mavx256-split-unaligned-store.
10309
10310 2011-03-28 Anatoly Sokolov <aesok@post.ru>
10311
10312 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
10313 LIBCALL_VALUE): Remove macros.
10314 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10315 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10316 (h8300_function_value, h8300_libcall_value,
10317 h8300_function_value_regno_p): New functions.
10318
10319 2011-03-28 Anatoly Sokolov <aesok@post.ru>
10320
10321 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
10322
10323 2011-03-28 Jeff Law <law@redhat.com>
10324
10325 * tree-ssa-threadupdate.c (redirect_edges): Call
10326 create_edge_and_update_destination_phis as needed.
10327 (create_edge_and_update_destination_phis): Accept new BB argument.
10328 All callers updated.
10329 (thread_block): Do not update the profile when threading around
10330 intermediate blocks.
10331 (thread_single_edge): Likewise.
10332 (determine_bb_domination_status): If BB is not a successor of the
10333 loop header, return NONDOMINATING.
10334 (register_jump_thread): Note when we register a jump thread around
10335 an intermediate block.
10336 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
10337 (thread_across_edge): Use it.
10338
10339 2011-03-28 Tristan Gingold <gingold@adacore.com>
10340
10341 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
10342 when for_return is 2.
10343
10344 2011-03-28 Jeff Law <law@redhat.com>
10345
10346 * var-tracking.c (canonicalize_values_mark): Delete unused
10347 lhs assignment.
10348 (canonicalize_values_star, set_variable_part): Likewise.
10349 (clobber_variable_part, delete_variable_part): Likewise.
10350
10351 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
10352
10353 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
10354
10355 2011-03-28 Martin Jambor <mjambor@suse.cz>
10356
10357 * tree-inline.c (expand_call_inline): Do not check that destination
10358 node is analyzed.
10359 (optimize_inline_calls): Assert that destination node is analyzed.
10360 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
10361 not call tree_lowering_passes.
10362 * cgraph.h (cgraph_analyze_function): Declare.
10363 * cgraphunit.c (cgraph_analyze_function): Make public.
10364
10365 2011-03-28 Joseph Myers <joseph@codesourcery.com>
10366
10367 * config/sparc/sparc-opts.h: New.
10368 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
10369 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
10370 (sparc_option_override): Store processor_type enumeration rather
10371 than string in cpu_default. Remove name and enumeration from
10372 cpu_table. Directly default -mcpu then default -mtune from -mcpu
10373 without using sparc_select. Use target_flags_explicit instead of
10374 fpu_option_set.
10375 * config/sparc/sparc.h (enum processor_type): Move to
10376 sparc-opts.h.
10377 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
10378 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
10379 HeaderInclude entry.
10380 (mcpu=, mtune=): Use Var and Enum.
10381 (sparc_processor_type): New Enum and EnumValue entries.
10382
10383 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10384 Iain Sandoe <iains@gcc.gnu.org>
10385
10386 PR target/48245
10387 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
10388
10389 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
10390
10391 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
10392 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
10393 Insert new statements at it in lieu of STMT.
10394 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
10395 * tree-vect-stmts.c (vectorizable_store): Likewise.
10396 (vectorizable_load): Likewise.
10397
10398 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
10399
10400 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
10401 (divtf3): Ditto.
10402 (multf3): Ditto.
10403 (subtf3): Ditto.
10404
10405 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
10406
10407 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
10408 unaligned 256bit load/store.
10409 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
10410 (*avx_movdqu<avxmodesuffix>): Likewise.
10411
10412 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10413
10414 PR target/48288
10415 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
10416 * config/pa/pa.md (iordi3): Use new predicate in expander.
10417 (iorsi3): Likewise.
10418
10419 2011-03-27 Anatoly Sokolov <aesok@post.ru>
10420
10421 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
10422 FUNCTION_VALUE_REGNO_P): Remove macros.
10423 * config/mips/mips-protos.h (mips_function_value): Remove.
10424 * config/mips/mips.c (mips_function_value): Rename to...
10425 (mips_function_value_1): ... this. Make static. Handle receiving
10426 the function type in 'fn_decl_or_type' argument.
10427 (mips_function_value, mips_libcall_value,
10428 mips_function_value_regno_p): New function.
10429 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10430 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10431
10432 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
10433
10434 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
10435 and -mavx256-split-unaligned-store.
10436 (ix86_option_override_internal): Split 32-byte AVX unaligned
10437 load/store by default.
10438 (ix86_avx256_split_vector_move_misalign): New.
10439 (ix86_expand_vector_move_misalign): Use it.
10440
10441 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
10442 -mavx256-split-unaligned-store.
10443
10444 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
10445 256bit load/store. Generate unaligned store on misaligned memory
10446 operand.
10447 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
10448 256bit load/store.
10449 (*avx_movdqu<avxmodesuffix>): Likewise.
10450
10451 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
10452 -mavx256-split-unaligned-store.
10453
10454 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
10455
10456 PR target/38598
10457 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
10458 Update commentary.
10459
10460 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
10461
10462 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
10463 opno arguments with an expand_operand. Use create_input_operand.
10464 (mips_prepare_builtin_target): Delete.
10465 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
10466 functions.
10467 (mips_expand_builtin_direct): Use create_output_operand and
10468 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
10469 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
10470 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
10471
10472 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
10473
10474 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
10475 function.
10476 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
10477
10478 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
10479
10480 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
10481 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
10482 basic blocks and call commit_edge_insertions directly.
10483 (fixup_abnormal_edges): Move from here to...
10484 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
10485 on the edges and return whether some have actually been inserted.
10486 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
10487 compensation code.
10488
10489 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
10490
10491 PR rtl-optimization/48144
10492 * sel-sched-ir.c (merge_history_vect): Factor out from ...
10493 (merge_expr_data): ... here.
10494 (av_set_intersect): Rename to av_set_code_motion_filter.
10495 Update all callers. Call merge_history_vect when an expression
10496 is found in both sets.
10497 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
10498
10499 2011-03-26 Alan Modra <amodra@gmail.com>
10500
10501 * config/rs6000/predicates.md (word_offset_memref_op): Handle
10502 cmodel medium addresses.
10503 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
10504 64-bit gpr loads and stores.
10505 (rs6000_secondary_reload_ppc64): New function.
10506 * config/rs6000/rs6000-protos.h: Declare it.
10507 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
10508
10509 2011-03-26 Alan Modra <amodra@gmail.com>
10510
10511 PR target/47487
10512 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
10513 GNU Go in traceback table.
10514
10515 2011-03-25 Richard Henderson <rth@redhat.com>
10516
10517 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
10518 if there are exactly 6 operands.
10519 (set_storage_via_setmem): Similarly.
10520
10521 2011-03-25 Kai Tietz <ktietz@redhat.com>
10522
10523 * collect2.c (write_c_file_stat): Handle backslash
10524 as right-hand directory separator.
10525 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
10526 checking just for slash.
10527 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
10528 instead of checking for trailing slash.
10529 * gcc.c (record_temp_file): Use filename_cmp instead
10530 of strcmp.
10531 (do_spec_1): Likewise.
10532 (replace_outfile_spec_function): Likewise.
10533 (is_directory): Use filename_ncmp instead of strncmp.
10534 (print_multilib_info): Likewise.
10535 * gcov.c (find_source): Use filename_cmp instead
10536 instead of strcmp.
10537 (make_gcov_file_name): Fix order of slash/backslash
10538 checks.
10539 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
10540 (add_standard_paths): Likewise.
10541 * mips-tfile.c (saber_stop): Handle backslash.
10542 * prefix.c (update_path): Use filename_ncmp instead of
10543 strncmp.
10544 * profile.c (output_location): Use filename_cmp instead
10545 of strcmp.
10546 * read-md.c (handle_toplevel_file): Handle backslash.
10547 * tlink.c (frob_extension): Likewise.
10548 * tree-cfg.c (same_line_p): Use filename_cmp instead of
10549 strcmp.
10550 * tree-dump.c (dequeue_and_dump): Handle backslash.
10551 * tree.c (get_file_function_name): Likewise.
10552 * gengtype.c (read_input_list): Likewise.
10553 (get_file_realbasename): Likewise.
10554 (get_output_file_with_visibility): Use filename_cmp
10555 instead of strcmp.
10556
10557 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
10558
10559 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
10560 case to VFPv1.
10561
10562 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
10563
10564 * fold-const.c (expr_location_or): New function.
10565 (fold_truth_not_expr): Call it.
10566
10567 2011-03-25 Jeff Law <law@redhat.com>
10568
10569 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
10570 va_end.
10571 * c-family/c-common.c (def_fn_type): Likewise.
10572 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
10573 * emit-rtl.c (gen_rtvec): Likewise.
10574 * lto/lto-lang.c (def_fn_type): Likewise.
10575
10576 2011-03-25 Richard Guenther <rguenther@suse.de>
10577
10578 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
10579 also generate copies.
10580 (fini_copy_prop): Handle constant values properly.
10581
10582 2011-03-25 Jakub Jelinek <jakub@redhat.com>
10583
10584 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
10585 mode size instead of bitsize with DWARF2_ADDR_SIZE.
10586 (hash_loc_operands, compare_loc_operands): Handle
10587 DW_OP_GNU_entry_value.
10588
10589 2011-03-25 Kai Tietz <ktietz@redhat.com>
10590
10591 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
10592 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
10593 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
10594 comment and use macro TARGET_64BIT_MS_ABI instead.
10595 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
10596 and change default behavior for 32-bit MS_ABI.
10597 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
10598 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
10599 32-bit, too.
10600 (ix86_cfun_abi): Likewise.
10601 (ix86_maybe_switch_abi): Adjust comment.
10602 (init_cumulative_args): Check for bit-ness in MS_ABI case.
10603 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
10604 instead of checking for SYSV_ABI.
10605 (ix86_nsaved_sseregs): Likewise.
10606 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
10607 to 16 bytes.
10608 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
10609 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
10610 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
10611 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
10612 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
10613
10614 2011-03-25 Richard Guenther <rguenther@suse.de>
10615
10616 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
10617 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10618 (verify_gimple): Remove.
10619 * tree-cfg.c (verify_gimple_call): Merge verification
10620 from verify_stmts.
10621 (verify_gimple_phi): Merge verification from verify_stmts.
10622 (verify_gimple_label): New function.
10623 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
10624 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10625 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
10626 (verify_stmts): Rename to verify_gimple_in_cfg.
10627 (verify_gimple_in_cfg): New function.
10628 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
10629 * tree-ssa.c (verify_ssa): Likewise.
10630 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
10631
10632 2011-03-25 Richard Guenther <rguenther@suse.de>
10633
10634 * passes.c (init_optimization_passes): Add FRE pass after
10635 early SRA.
10636
10637 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
10638 Andrew Stubbs <ams@codesourcery.com>
10639
10640 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
10641 for Cortex-A8.
10642 (arm_movdi_vfp_cortexa8): New pattern.
10643 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
10644 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
10645 instructions when tuning for Cortex-A8. Set attribute "arch".
10646 * config/arm/arm.md: Move include arm-tune.md up a bit.
10647 (define_attr "arch"): Add "onlya8" and "nota8" values.
10648 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
10649
10650 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
10651
10652 PR bootstrap/48282
10653 Revert:
10654 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10655
10656 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10657 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
10658 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10659 * passes.c (init_optimization_passes): Move
10660 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10661
10662 2011-03-25 Kai Tietz <ktietz@redhat.com>
10663
10664 * c-typeck.c (comptypes_internal): Replace target
10665 hook call of comp_type_attributes by version in tree.c file.
10666 * gimple.c (gimple_types_compatible_p_1): Likewise.
10667 * tree-ssa.c (useless_type_conversion_p): Likewise.
10668 * tree.c (build_type_attribute_qual_variant): Likewise.
10669 (attribute_value_equal): New static helper function.
10670 (comp_type_attributes): New function.
10671 (merge_attributes): Use attribute_value_equal for comparison.
10672 (attribute_list_contained): Likewise.
10673 * tree.h (comp_type_attributes): New prototype.
10674
10675 2011-03-25 Richard Guenther <rguenther@suse.de>
10676
10677 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
10678 of complex types at -O0.
10679 (verify_gimple_assign_binary): Likewise.
10680 (verify_gimple_assign_ternary): Likewise.
10681
10682 2011-03-24 Mark Wielaard <mjw@redhat.com>
10683
10684 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
10685 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
10686
10687 2011-03-24 Mark Wielaard <mjw@redhat.com>
10688
10689 PR debug/48041
10690 * dwarf2out.c (output_abbrev_section): Only write table when
10691 abbrev_die_table_in_use > 1.
10692
10693 2011-02-24 Richard Henderson <rth@redhat.com>
10694
10695 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
10696 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
10697 (alpha_expand_unaligned_load_words): Use extql.
10698 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
10699 (emit_insxl): Handle all modes for consistency.
10700
10701 2011-02-24 Richard Henderson <rth@redhat.com>
10702
10703 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
10704 (alpha_expand_unaligned_load): Likewise.
10705 (alpha_expand_unaligned_store): Likewise.
10706 (alpha_expand_unaligned_load_words): Likewise.
10707 (alpha_expand_unaligned_store_words): Likewise.
10708 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
10709 (alpha_split_lock_test_and_set_12): Likewise.
10710 (print_operand, alpha_fold_builtin_extxx): Likewise.
10711 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
10712 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
10713 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
10714 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
10715 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
10716 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
10717 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
10718 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
10719 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
10720 (extwl, extll, extql): Similarly.
10721 (inswh, inslh, insqh): Similarly.
10722 (mskbl, mskwl, mskll, mskql): Similarly.
10723 (mskwh, msklh, mskqh): Similarly.
10724
10725 2011-02-24 Richard Henderson <rth@redhat.com>
10726
10727 * config/alpha/alpha.md (attribute isa): Add er, ner.
10728 (attribute enabled): Handle them.
10729 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
10730
10731 2011-02-24 Richard Henderson <rth@redhat.com>
10732
10733 * config/alpha/alpha.md (attribute isa): Add vms.
10734 (attribute enabled): Handle it.
10735 (*movsf): Merge *movsf_{nofix,fix,nofp}.
10736 (*movdf): Merge *movdf_{nofix,fix,nofp}.
10737 (*movtf): Rename from *movtf_internal for consistency.
10738 (*movsi): Merge with *movsi_nt_vms.
10739 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
10740 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
10741 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
10742 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
10743
10744 2011-02-24 Richard Henderson <rth@redhat.com>
10745
10746 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
10747 (extendqisi2, extendhisi2): Likewise.
10748 (extendqidi2): Simplify BWX/non-BWX expansions.
10749 (extendhidi2): Similarly.
10750
10751 2011-02-24 Richard Henderson <rth@redhat.com>
10752
10753 * config/alpha/alpha.md (attribute isa): New.
10754 (attribute enabled): New.
10755 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
10756 (zero_extendqisi2, zero_extendqidi2): Similarly.
10757 (zero_extendhisi2, zero_extendhidi2): Similarly.
10758 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
10759
10760 2011-02-24 Richard Henderson <rth@redhat.com>
10761
10762 * config/alpha/predicates.md (input_operand): Revert last change;
10763 update comment to mention 32-bit VMS rather than Windows.
10764
10765 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10766
10767 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10768 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
10769 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10770 * passes.c (init_optimization_passes): Move
10771 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10772
10773 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10774
10775 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
10776
10777 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10778
10779 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
10780 correctly.
10781
10782 2011-03-24 Jakub Jelinek <jakub@redhat.com>
10783
10784 PR debug/48204
10785 * simplify-rtx.c (simplify_const_unary_operation): Call
10786 real_convert when changing mode class with FLOAT_EXTEND.
10787
10788 2011-03-24 Nick Clifton <nickc@redhat.com>
10789
10790 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
10791 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
10792 * config/rx/rx.c (rx_option_override): Set align_jumps,
10793 align_loops and align_labels if not set by the user.
10794 (rx_align_for_label): New function.
10795 (rx_max_skip_for_label): New function.
10796 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
10797 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
10798 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
10799 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
10800 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
10801
10802 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10803
10804 PR rtl-optimization/48263
10805 * optabs.c (expand_binop_directly): Reinstate convert_modes code
10806 and original commutative_p handling. Use maybe_gen_insn.
10807
10808 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10809
10810 * reload.c (find_reloads_subreg_address): Add address_reloaded
10811 parameter and return true there if the full address has been
10812 reloaded.
10813 (find_reloads_toplev): Pass address_reloaded flag.
10814 (find_reloads_address_1): Don't use address_reloaded parameter.
10815
10816 2011-03-24 Jeff Law <law@redhat.com>
10817
10818 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
10819 unused variable "ann".
10820 (remove_unused_locals): Likewise.
10821
10822 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
10823 statement.
10824
10825 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
10826 after it is freed.
10827
10828 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10829
10830 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
10831 for invalid symbolic addresses.
10832 (s390_secondary_reload): Don't use s390_check_symref_alignment for
10833 larl operands.
10834
10835 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10836
10837 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
10838 the argument in calls to fold_truth_not_expr.
10839
10840 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10841
10842 * tree.c (record_node_allocation_statistics): New function.
10843 (make_node_stat, copy_node_stat, build_string): Call it.
10844 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
10845 (build1_stat, build_omp_clause): Likewise.
10846
10847 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10848
10849 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
10850 last commit.
10851
10852 2011-03-24 Richard Guenther <rguenther@suse.de>
10853
10854 PR tree-optimization/48271
10855 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
10856 blocks that still exist.
10857
10858 2011-03-24 Richard Guenther <rguenther@suse.de>
10859
10860 PR tree-optimization/48270
10861 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
10862 not free datarefs before ddrs.
10863
10864 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10865
10866 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
10867 from the address built for a reference with variable offset.
10868
10869 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10870
10871 PR target/48237
10872 * config/i386/i386.md (*movdf_internal_rex64): Do not split
10873 alternatives that can be handled with movq or movabsq insn.
10874 (*movdf_internal): Disable for !TARGET_64BIT.
10875 (*movdf_internal_nointeger): Ditto.
10876 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
10877
10878 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10879
10880 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10881 (FUNCTION_ARG_ADVANCE): Likewise.
10882 * tm.texi.in: Change references to them to hook references.
10883 * tm.texi: Regenerate.
10884 * targhooks.c (default_function_arg): Eliminate check for target macro.
10885 (default_function_incoming_arg): Likewise.
10886 (default_function_arg_advance): Likewise.
10887 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10888 (function_arg_advance): Likewise.
10889 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10890
10891 2011-03-24 Richard Guenther <rguenther@suse.de>
10892
10893 PR middle-end/48269
10894 * tree-object-size.c (addr_object_size): Do not double-account
10895 for MEM_REF offsets.
10896
10897 2011-03-24 Diego Novillo <dnovillo@google.com>
10898
10899 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
10900 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
10901 (lto_input_data_block): Move from lto-opts.c. Make extern.
10902 Update all users.
10903 (lto_input_string): Rename from input_string. Make extern.
10904 Update all users.
10905 * lto-streamer-out.c (lto_output_string_with_length): Rename from
10906 output_string_with_length.
10907 Output 0 to indicate a non-NULL string. Update all callers to
10908 not emit 0.
10909 (lto_output_string): Rename from output_string. Make extern.
10910 Update all users.
10911 (lto_output_decl_state_streams): Make extern.
10912 (lto_output_decl_state_refs): Make extern.
10913 * lto-streamer.h (lto_input_string): Declare.
10914 (lto_input_data_block): Declare.
10915 (lto_output_string): Declare.
10916 (lto_output_string_with_length): Declare.
10917 (lto_output_decl_state_streams): Declare.
10918 (lto_output_decl_state_refs): Declare.
10919
10920 2011-03-24 Richard Guenther <rguenther@suse.de>
10921
10922 PR tree-optimization/46562
10923 * tree.c (build_invariant_address): New function.
10924 * tree.h (build_invariant_address): Declare.
10925 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
10926 a renamed function moved ...
10927 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
10928 Take valueization callback parameter.
10929 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
10930 * gimple-fold.h: New file.
10931 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
10932 (ccp_fold, fold_const_aggregate_ref,
10933 fold_ctor_reference, fold_nonarray_ctor_reference,
10934 fold_array_ctor_reference, fold_string_cst_ctor_reference,
10935 get_base_constructor): Move ...
10936 * gimple-fold.c: ... here.
10937 (gimple_fold_stmt_to_constant_1): New function
10938 split out from ccp_fold. Take a valueization callback parameter.
10939 Valueize all operands.
10940 (gimple_fold_stmt_to_constant): New wrapper function.
10941 (fold_const_aggregate_ref_1): New function split out from
10942 fold_const_aggregate_ref. Take a valueization callback parameter.
10943 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
10944 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
10945 invariant POINTER_PLUS_EXPRs to invariant form.
10946 (vn_valueize): New function.
10947 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
10948 * tree-vrp.c (vrp_valueize): New function.
10949 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
10950 to fold statements to constants.
10951 * tree-ssa-pre.c (eliminate): Properly guard propagation of
10952 function declarations.
10953 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
10954 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
10955
10956 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10957
10958 * config/h8300/predicates.md (jump_address_operand): Fix register
10959 mode check.
10960
10961 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
10962
10963 * doc/invoke.texi (max-stores-to-sink): Document.
10964 * params.h (MAX_STORES_TO_SINK): Define.
10965 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
10966 if either vectorization or if-conversion is disabled.
10967 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
10968 tree-vect-data-refs.c vect_equal_offsets.
10969 (dr_equal_offsets_p): New function.
10970 (find_data_references_in_bb): Remove static.
10971 * tree-data-ref.h (find_data_references_in_bb): Declare.
10972 (dr_equal_offsets_p): Likewise.
10973 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
10974 (vect_drs_dependent_in_basic_block): Update calls to
10975 vect_equal_offsets.
10976 (vect_check_interleaving): Likewise.
10977 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
10978 (cond_if_else_store_replacement): Rename to...
10979 (cond_if_else_store_replacement_1): ... this. Change arguments and
10980 documentation.
10981 (cond_if_else_store_replacement): New function.
10982 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
10983 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
10984
10985 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
10986
10987 PR target/46934
10988 * config/arm/arm.md (casesi): Use the gen_int_mode() function
10989 to subtract lower bound instead of GEN_INT().
10990
10991 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
10992
10993 PR other/48179
10994 PR other/48221
10995 PR other/48234
10996 * doc/extend.texi (Alignment): Move section to match order in TOC.
10997 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
10998 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
10999
11000 2011-03-23 Jeff Law <law@redhat.com>
11001
11002 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
11003 before removing the edge.
11004
11005 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
11006 it may have been freed by redirect_branch_edge or
11007 redirect_edge_succ_nodup.
11008
11009 2011-03-23 Richard Guenther <rguenther@suse.de>
11010
11011 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
11012 (check_va_list_escapes): Likewise.
11013 (check_all_va_list_escapes): Likewise.
11014
11015 2011-03-23 Richard Guenther <rguenther@suse.de>
11016
11017 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
11018 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
11019 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
11020 (alias.o): Likewise.
11021 (ipa-type-escape.o): Remove.
11022 (ipa-struct-reorg.o): Likewise.
11023 (GTFILES): Remove ipa-struct-reorg.c.
11024 * alias.c: Do not include ipa-type-escape.h.
11025 * tree-ssa-alias.c: Likewise.
11026 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
11027 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
11028 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
11029 and ipa-type-escape passes.
11030 * tree-pass.h (pass_ipa_type_escape): Remove.
11031 (pass_ipa_struct_reorg): Likewise.
11032 * ipa-struct-reorg.h: Remove.
11033 * ipa-struct-reorg.c: Likewise.
11034 * ipa-type-escape.h: Likewise.
11035 * ipa-type-escape.c: Likewise.
11036 * doc/invoke.texi (-fipa-struct-reorg): Remove.
11037 (--param struct-reorg-cold-struct-ratio): Likewise.
11038 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
11039 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
11040 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
11041
11042 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11043
11044 * config/s390/2084.md: Enable all insn reservations also for z9_ec
11045 cpu attribute value.
11046 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
11047 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
11048 * config/s390/s390.c (processor_flags_table): New constant array.
11049 (s390_handle_arch_option): Remove.
11050 (s390_handle_option): Remove s390_handle_arch_option invocations
11051 and OPT_mwarn_framesize_ handling.
11052 (s390_option_override): Remove s390_handle_arch_option invocation.
11053 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
11054 warnings.
11055 * config/s390/s390.md (cpu attribute): Add z9_ec value.
11056 * config/s390/s390.opt (s390_tune, s390_arch)
11057 (march=): Replace s390_arch_option enum and values with
11058 processor_type. Set variable name to s390_arch. Set
11059 initialization value.
11060 (mtune=): Replace s390_arch_option with processor_type. Set
11061 variable name to s390_tune. Set initialization value.
11062
11063 2011-03-23 Julian Brown <julian@codesourcery.com>
11064
11065 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
11066 accesses which are not naturally aligned.
11067
11068 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
11069
11070 PR target/47553
11071 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
11072
11073 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
11074
11075 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
11076 parameter from "int" to "enum insn_code".
11077 (expand_operand_type): New enum.
11078 (expand_operand): New structure.
11079 (create_expand_operand): New function.
11080 (create_fixed_operand, create_output_operand): Likewise
11081 (create_input_operand, create_convert_operand_to): Likewise.
11082 (create_convert_operand_from, create_address_operand): Likewise.
11083 (create_integer_operand): Likewise.
11084 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
11085 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
11086 (expand_insn, expand_jump_insn): Likewise.
11087 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
11088 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
11089 (expand_movstr, expand_builtin___clear_cache): Likewise.
11090 (expand_builtin_lock_release): Likewise.
11091 * explow.c (allocate_dynamic_stack_space): Likewise.
11092 (probe_stack_range): Likewise. Allow check_stack to FAIL,
11093 and use the default handling in that case.
11094 * expmed.c (check_predicate_volatile_ok): Delete.
11095 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
11096 (emit_cstore): Likewise.
11097 * expr.c (emit_block_move_via_movmem): Likewise.
11098 (set_storage_via_setmem, expand_assignment): Likewise.
11099 (emit_storent_insn, try_casesi): Likewise.
11100 (emit_single_push_insn): Likewise. Allow the expansion to fail.
11101 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
11102 (expand_vec_shift_expr, expand_binop_directly): Likewise.
11103 (expand_twoval_unop, expand_twoval_binop): Likewise.
11104 (expand_unop_direct, emit_indirect_jump): Likewise.
11105 (emit_conditional_move, vector_compare_rtx): Likewise.
11106 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
11107 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
11108 (expand_sync_lock_test_and_set): Likewise.
11109 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
11110 (emit_unop_insn): Likewise.
11111 (expand_copysign_absneg): Change icode to an insn_code.
11112 (create_convert_operand_from_type): New function.
11113 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
11114 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
11115 (expand_insn, expand_jump_insn): Likewise.
11116 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
11117 than const_int_operand for operand 2.
11118
11119 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11120
11121 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
11122 if possible.
11123
11124 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11125
11126 * emit-rtl.c (emit_pattern_before_noloc): New function.
11127 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
11128 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
11129 (emit_pattern_after_noloc): New function.
11130 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
11131 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
11132
11133 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11134
11135 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
11136 (__ffsDI2): Likewise.
11137
11138 2011-03-22 Richard Henderson <rth@redhat.com>
11139
11140 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
11141 of !TARGET_ABI_OPEN_VMS.
11142 (alpha_trampoline_init, alpha_start_function): Likewise.
11143 (alpha_expand_epilogue, alpha_file_start): Likewise.
11144 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
11145 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
11146 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
11147 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
11148 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
11149
11150 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11151
11152 * config/s390/s390-opts.h: New.
11153 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
11154 s390_arch_flags, s390_warn_framesize, s390_stack_size,
11155 s390_stack_guard): Remove.
11156 (s390_handle_arch_option): Return void. Take enum
11157 s390_arch_option value instead of string and searching array.
11158 (s390_handle_option): Don't assert that global structures are in
11159 use. Access variables via opts pointer. Use error_at. Don't use
11160 sscanf for -mstack-guard= or -mstack-size=. Update call to
11161 s390_handle_arch_option.
11162 (s390_option_override): Update call to s390_handle_arch_option.
11163 (s390_emit_prologue): Use %d format for s390_stack_size in
11164 diagnostic. Use %wd for HOST_WIDE_INT.
11165 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
11166 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
11167 * config/s390/s390.opt (config/s390/s390-opts.h): New
11168 HeaderInclude entry.
11169 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
11170 s390_arch_flags, s390_warn_framesize): New Variable entries.
11171 (s390_arch_option): New Enum and EnumValue entries.
11172 (march=): Use Enum instead of Var.
11173 (mstack-guard=, mstack-size=): Use UInteger and Var.
11174 (mtune=): Use Enum.
11175
11176 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11177
11178 * config/score/score.c (score_handle_option): Don't assert that
11179 global structures are in use. Access target_flags via opts
11180 pointer. Use value of -march= option to determine target_flags
11181 settings.
11182 * config/score/score.opt (march=): Use Enum.
11183 (score_arch): New Enum and EnumValue entries.
11184
11185 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11186
11187 * config/mep/mep.c (option_mtiny_specified): Remove.
11188 (mep_option_override): Move register handling for -mivc2 from
11189 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
11190 instead of option_mtiny_specified.
11191 (mep_handle_option): Access target_flags via opts pointer. Don't
11192 assert that global structures are in use. Defer part of -mivc2
11193 handling and move it to mep_option_override.
11194 * config/mep/mep.opt (IVC2): New Mask entry.
11195 (mivc2): Use Var and Defer instead of Mask.
11196
11197 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11198
11199 * config/v850/v850-opts.h: New.
11200 * config/v850/v850.c (small_memory): Replace with
11201 small_memory_physical_max array. Make that array static const.
11202 (v850_handle_memory_option): Take integer value of argument. Take
11203 gcc_options pointer, option text and location. Return void.
11204 Update for changes to small memory structures.
11205 (v850_handle_option): Access target_flags via opts pointer. Don't
11206 assert that global structures are in use. Update calls to
11207 v850_handle_memory_option.
11208 (v850_encode_data_area): Update references to small memory settings.
11209 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
11210 (enum small_memory_type): Move to v850-opts.h.
11211 * config/v850/v850.opt (config/v850/v850-opts.h): New
11212 HeaderInclude entry.
11213 (small_memory_max): New Variable entry.
11214 (msda): Replace by pair of options msda= and msda-. Use UInteger.
11215 (mtda, mzda): Likewise.
11216
11217 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11218
11219 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
11220 pointer. Don't assert that global structures are in use.
11221
11222 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11223
11224 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
11225 via opts pointer. Don't assert that global structures are in use.
11226
11227 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11228
11229 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
11230 (munix=93): Use Var.
11231 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
11232 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
11233 * config/pa/pa-opts.h: New.
11234 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
11235 (pa_handle_option): Don't assert that global structures are in
11236 use. Access target_flags via opts pointer. Don't handle
11237 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
11238 OPT_munix_98 here.
11239 (pa_option_override): Handle deferred OPT_mfixed_range_.
11240
11241 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11242
11243 * config/mn10300/mn10300-opts.h: New.
11244 * config/mn10300/mn10300.c (mn10300_processor,
11245 mn10300_tune_string): Remove.
11246 (mn10300_handle_option): Don't assert that global structures are
11247 in use. Access mn10300_processor via opts pointer. Don't handle
11248 OPT_mtune_ here.
11249 * config/mn10300/mn10300.h (enum processor_type): Move to
11250 mn10300-opts.h.
11251 (mn10300_processor): Remove.
11252 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
11253 HeaderInclude entry.
11254 (mn10300_processor): New Variable entry.
11255 (mtune=): Use Var.
11256
11257 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11258
11259 * config/microblaze/microblaze.c: Don't include opts.h.
11260 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
11261 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
11262 (mno-clearbss): Use Var and Warn.
11263
11264 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11265
11266 * config/m32r/m32r-opts.h: New.
11267 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
11268 (m32r_handle_option): Don't assert that global structures are in
11269 use. Access target_flags and m32r_cache_flush_func via opts
11270 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
11271 OPT_mno_flush_trap here.
11272 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
11273 include of m32r-opts.h.
11274 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
11275 HeaderInclude entry.
11276 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
11277 (mmodel=): Use Enum and Var.
11278 (m32r_model): New Enum and EnumValue entries.
11279 (mno-flush-trap): Use Var.
11280 (msdata=): Use Enum and Var.
11281 (m32r_sdata): New Enum and EnumValue entries.
11282
11283 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11284
11285 * config/m32c/m32c.c: Don't include opts.h.
11286 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
11287 m32c_handle_option): Remove.
11288 (m32c_option_override): Check global_options_set.x_target_memregs
11289 instead of target_memregs_set.
11290 * config/m32c/m32c.h (target_memregs): Remove.
11291 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
11292 variable.
11293
11294 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11295
11296 * config/iq2000/iq2000-opts.h: New.
11297 * config/iq2000/iq2000.c: Don't include opts.h.
11298 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
11299 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
11300 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
11301 HeaderInclude entry.
11302 (iq2000_tune): New Variable entry.
11303 (march=): Add comment. Use Enum.
11304 (iq2000_arch): New Enum and EnumValue entries.
11305 (mcpu=): Use Enum and Var.
11306 (iq2000_tune): New Enum and EnumValue entries.
11307
11308 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11309
11310 * config/ia64/ia64-opts.h: New.
11311 * config/ia64/ia64.c (ia64_tune): Remove.
11312 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
11313 here. Use error_at.
11314 (ia64_option_override): Handle deferred OPT_mfixed_range_.
11315 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
11316 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
11317 HeaderInclude entry.
11318 (ia64_tune): New Variable entry.
11319 (mfixed-range=): Use Defer and Var.
11320 (mtune=): Use Enum and Var.
11321 (ia64_tune): New Enum and EnumValue entries.
11322
11323 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11324
11325 * config/frv/frv-opts.h: New.
11326 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
11327 frv-opts.h.
11328 (frv_cpu_type): Remove.
11329 * config/frv/frv.c: Don't include opts.h.
11330 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
11331 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
11332 (frv_cpu_type): New Variable entry.
11333 (frv_cpu): New Enum and EnumValue entries.
11334
11335 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11336
11337 * config/cris/cris.c (cris_handle_option): Access target_flags via
11338 opts pointer. Don't assert that global structures are in use.
11339 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
11340 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
11341
11342 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11343
11344 * config/bfin/bfin-opts.h: New.
11345 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
11346 bfin_si_revision, bfin_workarounds): Remove.
11347 (bfin_cpus): Make static const.
11348 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
11349 not bfin_lib_id_given.
11350 (bfin_handle_option): Don't set bfin_lib_id_given. Access
11351 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
11352 pointer. Use error_at. Don't assert that global structures are in use.
11353 * config/bfin/bfin.h: Include bfin-opts.h.
11354 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
11355 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
11356 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
11357 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
11358 entries.
11359
11360 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11361
11362 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
11363 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
11364 or -msoft-float here.
11365 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
11366 -msoft-float and -mhard-float.
11367 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
11368 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11369 msoft-float.
11370 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
11371 -msoft-float.
11372 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
11373 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
11374 not mhard-float.
11375 (LIBGCC_SPEC): Don't handle -msoft-float.
11376 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
11377 -mhard-float.
11378 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11379 msoft-float.
11380 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
11381 -mfloat-abi=*, not -msoft-float and -mhard-float.
11382 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
11383 -msoft-float.
11384 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
11385 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
11386 mhard-float and msoft-float.
11387 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
11388 mfloat-abi=soft in comments, not mhard-float and msoft-float.
11389 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
11390 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
11391 mhard-float.
11392 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
11393 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
11394 msoft-float.
11395 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
11396 not mhard-float.
11397 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
11398 not msoft-float.
11399
11400 2011-03-22 Richard Henderson <rth@redhat.com>
11401
11402 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
11403 TARGET_ABI_WINDOWS_NT.
11404 (alpha_output_function_end_prologue): Likewise.
11405 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
11406 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11407 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
11408 (trap, *movsi_nt_vms): Likewise.
11409 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
11410 (*tablejump_osf_nt_internal): Remove.
11411 * config/alpha/predicates.md (input_operand): Only test Pmode.
11412
11413 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11414
11415 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
11416 via opts pointer. Use error_at. Don't assert that global
11417 structures are in use.
11418
11419 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11420
11421 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
11422 (ix86_handle_option): Access ix86_isa_flags and
11423 ix86_isa_flags_explicit via opts pointer. Don't assert that
11424 global structures are in use.
11425 (ix86_function_specific_save, ix86_function_specific_restore):
11426 Update ix86_isa_flags_explicit field name.
11427 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
11428 (ix86_isa_flags_explicit): Rename TargetSave entry to
11429 x_ix86_isa_flags_explicit.
11430
11431 2011-03-22 Richard Henderson <rth@redhat.com>
11432
11433 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
11434 (alpha_option_override, direct_return): Likewise.
11435 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
11436 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
11437 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
11438 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
11439 (alpha_expand_epilogue, alpha_end_function): Likewise.
11440 (alpha_init_libfuncs): Likewise.
11441 (struct machine_function): Remove unicosmk members.
11442 (print_operand) ['t']: Remove.
11443 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
11444 unicosmk_output_module_name, unicosmk_output_common,
11445 current_section_align, unicosmk_output_text_section_asm_op,
11446 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
11447 unicosmk_section_type_flags, unicosmk_unique_section,
11448 unicosmk_asm_named_section, unicosmk_insert_attributes,
11449 unicosmk_output_align, unicosmk_defer_case_vector,
11450 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
11451 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
11452 unicosmk_output_ssib, unicosmk_add_call_info_word,
11453 unicosmk_extern_head, unicosmk_output_default_externs,
11454 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
11455 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
11456 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
11457 * config/alpha/alpha-protos.h: Update.
11458 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
11459 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
11460 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
11461 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
11462 (*mulsi_se, mulvsi3): Likewise.
11463 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
11464 (*divmodsi_internal, call, call_value, realign): Likewise.
11465 (moddi3, umoddi3): Likewise; remove duplicate expander.
11466 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
11467 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
11468 (*movdi_nofix): Remove r/U alternative.
11469 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
11470 * config/alpha/constraints.md ("U"): Remove.
11471 * config/alpha/predicates.md (call_operand"): Don't test
11472 TARGET_ABI_UNICOSMK.
11473
11474 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11475
11476 * target.def (handle_option): Take gcc_options and
11477 cl_decoded_option pointers and location_t.
11478 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
11479 * doc/tm.texi: Regenerate.
11480 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
11481 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
11482 * lto-opts.c (lto_reissue_options): Generate option structure for
11483 targetm.handle_option call.
11484 * opts.c (target_handle_option): Update call to
11485 targetm.handle_option. Remove assertions about values now passed
11486 down to hook.
11487 * targhooks.c (default_target_handle_option): New.
11488 * targhooks.h (default_target_handle_option): Declare.
11489 * config/alpha/alpha.c: Include opts.h.
11490 (alpha_handle_option): Update to new hook interface.
11491 * config/arm/arm.c: Include opts.h.
11492 (arm_handle_option): Update to new hook interface.
11493 * config/arm/t-arm (arm.o): Update dependencies.
11494 * config/bfin/bfin.c: Include opts.h.
11495 (bfin_handle_option): Update to new hook interface.
11496 * config/cris/cris.c: Include opts.h.
11497 (cris_handle_option): Update to new hook interface.
11498 * config/frv/frv.c: Include opts.h.
11499 (frv_handle_option): Update to new hook interface.
11500 * config/i386/i386.c: Include opts.h.
11501 (ix86_handle_option): Update to new hook interface.
11502 (ix86_valid_target_attribute_inner_p): Generate option structure
11503 for call to ix86_handle_option.
11504 * config/i386/t-i386 (i386.o): Update dependencies.
11505 * config/ia64/ia64.c: Include opts.h.
11506 (ia64_handle_option): Update to new hook interface.
11507 * config/ia64/t-ia64 (ia64.o): Update dependencies.
11508 * config/iq2000/iq2000.c: Include opts.h.
11509 (iq2000_handle_option): Update to new hook interface.
11510 * config/m32c/m32c.c: Include opts.h.
11511 (m32c_handle_option): Update to new hook interface.
11512 * config/m32r/m32r.c: Include opts.h.
11513 (m32r_handle_option): Update to new hook interface.
11514 * config/m68k/m68k.c: Include opts.h.
11515 (m68k_handle_option): Update to new hook interface.
11516 * config/mep/mep.c: Include opts.h.
11517 (mep_handle_option): Update to new hook interface.
11518 * config/microblaze/microblaze.c: Include opts.h.
11519 (microblaze_handle_option): Update to new hook interface.
11520 * config/mips/mips.c: Include opts.h.
11521 (mips_handle_option): Update to new hook interface.
11522 * config/mn10300/mn10300.c: Include opts.h.
11523 (mn10300_handle_option): Update to new hook interface.
11524 * config/pa/pa.c: Include opts.h.
11525 (pa_handle_option): Update to new hook interface.
11526 * config/pdp11/pdp11.c: Include opts.h.
11527 (pdp11_handle_option): Update to new hook interface.
11528 * config/rs6000/rs6000.c: Include opts.h.
11529 (rs6000_handle_option): Update to new hook interface.
11530 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
11531 * config/rx/rx.c: Include opts.h.
11532 (rx_handle_option): Update to new hook interface.
11533 * config/s390/s390.c: Include opts.h.
11534 (s390_handle_option): Update to new hook interface.
11535 * config/score/score.c: Include opts.h.
11536 (score_handle_option): Update to new hook interface.
11537 * config/sh/sh.c: Include opts.h.
11538 (sh_handle_option): Update to new hook interface.
11539 * config/sparc/sparc.c: Include opts.h.
11540 (sparc_handle_option): Update to new hook interface.
11541 * config/v850/v850.c: Include opts.h.
11542 (v850_handle_option): Update to new hook interface.
11543
11544 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11545
11546 * gcc.c (driver_unknown_option_callback): Only permit and save
11547 unknown -Wno- options.
11548 (driver_wrong_lang_callback): Save options directly instead of via
11549 driver_unknown_option_callback.
11550
11551 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
11552
11553 * combine.c (simplify_set): Try harder to find the best CC mode when
11554 simplifying a nested COMPARE on the RHS.
11555
11556 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11557
11558 * config/alpha/gnu.h: Remove.
11559 * config/arc: Remove directory.
11560 * config/arm/netbsd.h: Remove.
11561 * config/arm/t-pe: Remove.
11562 * config/crx: Remove directory.
11563 * config/i386/netbsd.h: Remove.
11564 * config/m68hc11: Remove directory.
11565 * config/m68k/uclinux-oldabi.h: Remove.
11566 * config/mcore/mcore-pe.h: Remove.
11567 * config/mcore/t-mcore-pe: Remove.
11568 * config/netbsd-aout.h: Remove.
11569 * config/rs6000/gnu.h: Remove.
11570 * config/sh/sh-symbian.h: Remove.
11571 * config/sh/symbian-base.c: Remove.
11572 * config/sh/symbian-c.c: Remove.
11573 * config/sh/symbian-cxx.c: Remove.
11574 * config/sh/symbian-post.h: Remove.
11575 * config/sh/symbian-pre.h: Remove.
11576 * config/sh/t-symbian: Remove.
11577 * config/svr3.h: Remove.
11578 * config/vax/netbsd.h: Remove.
11579 * config.build: Don't handle i[34567]86-*-pe.
11580 * config.gcc: Remove handling of deprecations for most deprecated
11581 targets.
11582 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
11583 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
11584 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
11585 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
11586 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
11587 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
11588 Remove cases.
11589 * config.host: Don't handle i[34567]86-*-pe.
11590 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
11591 (ASM_SPEC32): Don't handle -mcall-gnu.
11592 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
11593 -mcall-gnu.
11594 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
11595 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
11596 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
11597 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
11598 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
11599 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
11600 conditional on SYMBIAN.
11601 * configure.ac: Don't handle powerpc*-*-gnu*.
11602 * configure: Regenerate.
11603 * doc/extend.texi (interrupt attribute): Don't mention CRX.
11604 * doc/install-old.texi (m6811, m6812): Don't mention.
11605 * doc/install.texi (arc-*-elf*): Don't document multilib option.
11606 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
11607 (m68k-uclinuxoldabi): Don't mention.
11608 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
11609 Remove.
11610 (-mcall-gnu): Remove.
11611 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
11612 families): Remove constraint documentation.
11613
11614 2011-03-22 Marius Strobl <marius@FreeBSD.org>
11615
11616 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
11617 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
11618 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
11619
11620 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11621
11622 PR target/48226
11623 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
11624 vector when peeking at the next token for vector, don't expand the
11625 keywords.
11626
11627 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
11628
11629 * config/avr/avr-protos.h (expand_epilogue): Change prototype
11630 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
11631 * config/avr/avr.c (init_cumulative_args)
11632 (avr_function_arg_advance): Use it.
11633 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
11634 sibcall epilogues.
11635 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
11636 (avr_function_ok_for_sibcall): ...this new function.
11637 (avr_lookup_function_attribute1): New static Function.
11638 (avr_naked_function_p, interrupt_function_p)
11639 (signal_function_p, avr_OS_task_function_p)
11640 (avr_OS_main_function_p): Use it.
11641 * config/avr/avr.md ("sibcall", "sibcall_value")
11642 ("sibcall_epilogue"): New expander.
11643 ("*call_insn", "*call_value_insn"): New insn.
11644 ("call_insn", "call_value_insn"): Remove
11645 ("call", "call_value", "epilogue"): Change expander to handle
11646 sibling calls.
11647
11648 2011-03-21 Nick Clifton <nickc@redhat.com>
11649
11650 * doc/invoke.texi (Overall Options): Move closing brace to end of
11651 options list.
11652 (Optimization Options): Add missing @gol.
11653 (Directory Options): Likewise.
11654 (i386 and x86-64 Options): Likewise.
11655 (RS6000 and PowerPC Options): Likewise.
11656 (i386 and x86-64 Windows Options): Likewise.
11657 (V850 Options): Add text missing from descriptions.
11658
11659 2011-03-22 Richard Henderson <rth@redhat.com>
11660
11661 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
11662 (avr_incoming_return_addr_rtx): New.
11663 (emit_push_byte): New.
11664 (expand_prologue): Use it. Remove incorrect dwarf annotation for
11665 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
11666 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
11667 (emit_pop_byte): New.
11668 (expand_epilogue): Use it. Pop frame pointer by bytes.
11669 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
11670 (INCOMING_RETURN_ADDR_RTX): New.
11671 (INCOMING_FRAME_SP_OFFSET): New.
11672 (ARG_POINTER_CFA_OFFSET): New.
11673 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
11674 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
11675 (pophi): Remove.
11676
11677 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
11678
11679 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11680
11681 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
11682 (FUNCTION_ARG_ADVANCE): Likewise.
11683 * tm.texi.in: Change references to them to hook references.
11684 * tm.texi: Regenerate.
11685 * targhooks.c (default_function_arg): Eliminate check for target
11686 macro.
11687 (default_function_incoming_arg): Likewise.
11688 (default_function_arg_advance): Likewise.
11689 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
11690 (function_arg_advance): Likewise.
11691 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
11692
11693 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11694
11695 * tree.c (build_call_1): New function.
11696 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
11697
11698 2011-03-22 Richard Guenther <rguenther@suse.de>
11699
11700 PR tree-optimization/48228
11701 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
11702 for single-arg PHIs.
11703
11704 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
11705
11706 PR rtl-optimization/48143
11707 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
11708 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
11709 sse2_cvtps2pd): Likewise.
11710
11711 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11712
11713 * recog.c (canonicalize_change_group): Use validate_unshare_change.
11714
11715 2011-03-22 Richard Guenther <rguenther@suse.de>
11716
11717 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
11718 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
11719 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
11720 and REALIGN_LOAD_EXPR.
11721 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
11722 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
11723 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
11724 DOT_PROD_EXPR case ...
11725 (expand_expr_real_2): ... here.
11726 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
11727 and REALIGN_LOAD_EXPR.
11728 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
11729 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
11730 (vect_create_epilog_for_reduction): Likewise.
11731 (vectorizable_reduction): Likewise.
11732 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
11733 * tree-vect-stmts.c (vectorizable_load): Likewise.
11734
11735 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
11736
11737 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
11738
11739 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11740
11741 * config/s390/s390.c (s390_delegitimize_address): Fix offset
11742 handling for PLTOFF/GOTOFF.
11743
11744 2011-03-22 Nick Clifton <nickc@redhat.com>
11745
11746 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
11747 trailing backslash from the end of the macro definition.
11748
11749 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11750
11751 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
11752 and PLT unspecs.
11753
11754 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
11755
11756 * expr.h (prepare_operand): Move to...
11757 * optabs.h (prepare_operand): ...here and change the insn code
11758 parameter from "int" to "enum insn_code".
11759 (insn_operand_matches): Declare.
11760 * expr.c (init_expr_target): Use insn_operand_matches.
11761 (compress_float_constant): Likewise.
11762 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
11763 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
11764 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
11765 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
11766 Likewise.
11767 (gen_cond_trap): Likewise.
11768 (prepare_operand): Likewise. Change icode to an insn_code.
11769 (insn_operand_matches): New function.
11770 * reload.c (find_reloads_address_1): Use insn_operand_matches.
11771 * reload1.c (gen_reload): Likewise.
11772 * targhooks.c (default_secondary_reload): Likewise.
11773
11774 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
11775
11776 * config/alpha/alpha.md (unspec): New define_c_enum.
11777 (unspecv): Ditto.
11778
11779 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
11780
11781 PR debug/48214
11782 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
11783 between a call and its CALL_ARG_LOCATION note.
11784
11785 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
11786
11787 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
11788
11789 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11790
11791 PR c/42544
11792 PR c/48197
11793 * c-common.c (shorten_compare): If primopN is first sign-extended
11794 to opN and then zero-extended to result type, set primopN to opN.
11795
11796 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
11797
11798 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
11799 for barrier handlers.
11800
11801 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11802
11803 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
11804 UNSPEC constants to be in the unspec enumeration, and redefine
11805 all UNSPECV constants to be in the unspecv enumeration, so that
11806 dumps print which unspec/unspec_volatile this is.
11807 * config/rs6000/vector.md (UNSPEC_*): Ditto.
11808 * config/rs6000/paired.md (UNSPEC_*): Ditto.
11809 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
11810 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
11811 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
11812
11813 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
11814 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
11815 UNSPECV_LWSYNC, since these are used as unspec_volatile.
11816 * config/rs6000/sync.md (isync, lwsync): Ditto.
11817
11818 2011-03-21 Richard Guenther <rguenther@suse.de>
11819
11820 * params.def (lto-min-partition): Fix typo.
11821
11822 2011-03-21 Richard Guenther <rguenther@suse.de>
11823
11824 PR c/47939
11825 * c-decl.c (grokdeclarator): Drop to the main variant only
11826 for array types. Drop flag_gen_aux_info check.
11827
11828 2011-03-21 Richard Guenther <rguenther@suse.de>
11829
11830 PR translation/47911
11831 * params.def (lto-partitions): Fix typo.
11832 (lto-min-partition): Fix wording.
11833
11834 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
11835
11836 * config/rs6000/t-freebsd: Remove duplication from file.
11837
11838 2011-03-21 Richard Guenther <rguenther@suse.de>
11839
11840 PR middle-end/47661
11841 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
11842
11843 2011-03-21 Richard Guenther <rguenther@suse.de>
11844
11845 PR lto/48210
11846 * params.def (lto-partitions): Require at least 1 partition.
11847
11848 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11849
11850 * gthr-solaris.h: Remove.
11851 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
11852 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
11853 (LIB_SPEC): Likewise.
11854 * config/sol2.opt (threads): Remove.
11855 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
11856 (sparc*-*-solaris2*): Likewise.
11857 * configure.ac (enable_threads): Enable solaris support.
11858 * configure: Regenerate.
11859 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
11860 * doc/install.texi (Configuration, --enable-threads=lib): Remove
11861 solaris.
11862
11863 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11864
11865 * config.gcc: Obsolete *-*-solaris2.8*.
11866 * doc/install.texi (Specific, *-*-solaris2*): Document it.
11867
11868 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11869
11870 PR bootstrap/48135
11871 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
11872 reference. Solaris 8 perl works.
11873
11874 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11875
11876 PR bootstrap/48135
11877 * doc/install.texi (Prerequisites): Move jar etc. up.
11878 Explain support library version requirements.
11879
11880 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11881
11882 PR bootstrap/48135
11883 * doc/install.texi (Prerequisites): Move Perl to build
11884 requirements. Always necessary on Solaris 2 with Sun ld.
11885
11886 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11887
11888 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
11889 binutils 2.21.
11890 (Specific, i?86-*-solaris2.[89]): Likewise.
11891 (Specific, i?86-*-solaris2.10): Likewise.
11892 (Specific, mips-sgi-irix6): Likewise.
11893 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
11894 Update for binutils 2.21.
11895
11896 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11897
11898 * configure.ac (gcc_cv_lto_plugin): Fix typo.
11899 Allow -fuse-linker-plugin for non-default plugin linker.
11900 * configure: Regenerate.
11901
11902 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
11903
11904 PR bootstrap/48167
11905 * gengtype.c (files_rules): Added rule for cp/parser.h.
11906
11907 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11908
11909 PR target/48213
11910 * config/s390/s390.c (s390_delegitimize_address): Don't call
11911 lowpart_subreg if orig_x has BLKmode.
11912
11913 2011-03-21 Kai Tietz <ktietz@redhat.com>
11914
11915 PR target/12171
11916 * doc/plugins.texi: Adjust documentation for plugin register_callback.
11917 * tree.h (attribute_spec): Add new member affects_type_identity.
11918 * attribs.c (empty_attribute_table): Adjust attribute_spec
11919 initializers.
11920 * config/alpha/alpha.c: Likewise.
11921 * config/arc/arc.c: Likewise.
11922 * config/arm/arm.c: Likewise.
11923 * config/avr/avr.c: Likewise.
11924 * config/bfin/bfin.c: Likewise.
11925 * config/crx/crx.c: Likewise.
11926 * config/darwin.h: Likewise.
11927 * config/h8300/h8300.c: Likewise.
11928 * config/i386/cygming.h: Likewise.
11929 * config/i386/i386.c: Likewise.
11930 * config/ia64/ia64.c: Likewise.
11931 * config/m32c/m32c.c: Likewise.
11932 * config/m32r/m32r.c: Likewise.
11933 * config/m68hc11/m68hc11.c: Likewise.
11934 * config/m68k/m68k.c: Likewise.
11935 * config/mcore/mcore.c: Likewise.
11936 * config/mep/mep.c: Likewise.
11937 * config/microblaze/microblaze.c: Likewise.
11938 * config/mips/mips.c: Likewise.
11939 * config/rs6000/rs6000.c: Likewise.
11940 * config/rx/rx.c: Likewise.
11941 * config/sh/sh.c: Likewise.
11942 * config/sol2.h: Likewise.
11943 * config/sparc/sparc.c: Likewise.
11944 * config/spu/spu.c: Likewise.
11945 * config/stormy16/stormy16.c: Likewise.
11946 * config/v850/v850.c: Likewise.
11947
11948 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
11949
11950 * simplify-rtx.c (simplify_binary_operation_1): Handle
11951 (xor (and A B) C) case when B and C are both constants.
11952
11953 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
11954
11955 * tree-dfa.c (add_referenced_var): Fix typo in comment.
11956
11957 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
11958
11959 PR bootstrap/48168
11960 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
11961
11962 2011-03-20 Jakub Jelinek <jakub@redhat.com>
11963
11964 PR rtl-optimization/48156
11965 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
11966 assume df and df_lr are not NULL.
11967
11968 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11969
11970 PR debug/48023
11971 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
11972 between a call and its CALL_ARG_LOCATION note.
11973
11974 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
11975
11976 PR debug/48178
11977 * config/sh/sh.c (find_barrier): Don't emit a constant pool
11978 between a call and its corresponding CALL_ARG_LOCATION note.
11979
11980 2011-03-19 Anatoly Sokolov <aesok@post.ru>
11981
11982 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
11983 instead of loop. Use HARD_REGISTER_NUM_P predicate.
11984 * haifa-sched.c (setup_ref_regs): Ditto.
11985 * caller-save.c (add_used_regs_1): Ditto.
11986 * dse.c (look_for_hardregs): Ditto.
11987 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
11988 * sched-rgn.c (check_live_1): Ditto.
11989
11990 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11991
11992 * c-decl.c (diagnose_mismatched_decls): Give an error for
11993 redefining a typedef with variably modified type.
11994
11995 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11996
11997 * c-decl.c (grokfield): Don't allow typedefs for structures or
11998 unions with no tag by default.
11999 * doc/extend.texi (Unnamed Fields): Update.
12000
12001 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
12002
12003 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
12004 Rewrite using indirect functions.
12005 (lwp_slwpcb): Ditto.
12006 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
12007 (avx_vinsertf128<mode>): Ditto.
12008
12009 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12010
12011 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
12012 unspecs.
12013
12014 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12015
12016 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
12017 splitting between a call and its corresponding CALL_ARG_LOCATION note.
12018
12019 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
12020
12021 PR rtl-optimization/48170
12022 * gcse.c (hoist_code): Remove bogus asserts.
12023
12024 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
12025
12026 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
12027 computation for prologue/epilogue.
12028
12029 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12030
12031 * Makefile.in (check-consistency): Remove.
12032
12033 2011-03-18 Jakub Jelinek <jakub@redhat.com>
12034
12035 PR debug/48176
12036 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
12037 arange_table_in_use is 0, but either text_section_used or
12038 cold_text_section_used is true. Don't call it if
12039 !info_section_emitted.
12040
12041 2011-03-18 Anatoly Sokolov <aesok@post.ru>
12042
12043 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
12044 FUNCTION_VALUE_REGNO_P): Remove.
12045 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
12046 Remove.
12047 * config/avr/avr.c (avr_ret_register): Make static inline.
12048 (avr_function_value_regno_p): New function.
12049 (avr_libcall_value): Make static. Add 'func' argument.
12050 (avr_function_value): Make static. Rename 'func' argument to
12051 'fn_decl_or_type', forward it to avr_libcall_value. Call
12052 avr_ret_register function instead of RET_REGISTER macro.
12053 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
12054
12055 2011-03-18 Jason Merrill <jason@redhat.com>
12056
12057 PR c++/23372
12058 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
12059
12060 2011-03-18 Richard Guenther <rguenther@suse.de>
12061
12062 * doc/install.texi (--enable-gold): Remove.
12063 (--with-plugin-ld): Document.
12064 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
12065
12066 2011-03-18 Andrew Pinski <pinskia@gmail.com>
12067
12068 PR middle-end/47790
12069 * expr.c (optimize_bitfield_assignment_op): Revamp to work
12070 again after expansion changes.
12071
12072 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
12073
12074 * combine.c (try_combine): Do simplification only call of
12075 subst() on i2 even when i1 is present. Update comments.
12076
12077 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
12078
12079 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
12080 and UNSPEC_PCREL_SYMOFF.
12081
12082 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12083
12084 * config/s390/s390.md: Use define_c_enum for the unspec constant
12085 definitions.
12086
12087 2011-03-18 Richard Henderson <rth@redhat.com>
12088 Jakub Jelinek <jakub@redhat.com>
12089
12090 PR bootstrap/48161
12091 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
12092 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
12093
12094 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12095
12096 PR middle-end/47725
12097 * combine.c (cant_combine_insn_p): Don't check zero/sign
12098 extended hard registers.
12099
12100 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12101
12102 PR middle-end/47725
12103 * combine.c (cant_combine_insn_p): Check zero/sign extended
12104 hard registers.
12105
12106 2011-03-17 Anatoly Sokolov <aesok@post.ru>
12107
12108 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
12109 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
12110 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
12111 Change return type to bool.
12112 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
12113
12114 2011-03-17 Jakub Jelinek <jakub@redhat.com>
12115
12116 PR debug/48163
12117 * var-tracking.c (prepare_call_arguments): If CALL target
12118 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
12119 pc instead of looking it up using cselib_lookup and use
12120 Pmode for it if x has VOIDmode.
12121 * dwarf2out.c (gen_subprogram_die): If also both first and
12122 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
12123
12124 PR debug/48163
12125 * function.c (assign_parms): For data.passed_pointer parms
12126 use MEM of data.entry_parm instead of data.entry_parm itself
12127 as DECL_INCOMING_RTL.
12128 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
12129 also when passed and declared mode is the same, DECL_RTL
12130 is a MEM with pseudo as address and DECL_INCOMING_RTL is
12131 a MEM too.
12132
12133 2011-03-16 Jeff Law <law@redhat.com>
12134
12135 PR rtl-optimization/37273
12136 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12137 handle them like argument loads from stack slots. Do not double
12138 count memory for memory constants and argument loads from stack slots.
12139
12140 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12141
12142 PR debug/48160
12143 * var-tracking.c (prepare_call_arguments): Check SUBREG.
12144
12145 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12146
12147 PR target/48171
12148 * config/i386/i386.opt: Add Save to -mavx and -mfma.
12149
12150 2011-03-17 Jakub Jelinek <jakub@redhat.com>
12151
12152 PR bootstrap/48153
12153 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
12154 if dwarf_strict.
12155 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
12156 Clear call_arg_locations and call_arg_loc_last always.
12157
12158 PR middle-end/48152
12159 * var-tracking.c (prepare_call_arguments): If argument needs to be
12160 passed by reference, adjust argtype and mode.
12161
12162 2011-03-17 Richard Guenther <rguenther@suse.de>
12163
12164 PR middle-end/48134
12165 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
12166 a value make sure to fold the statement.
12167
12168 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
12169
12170 PR target/43872
12171 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
12172 return condition with !cfun->calls_alloca.
12173
12174 2011-03-17 Richard Guenther <rguenther@suse.de>
12175
12176 PR bootstrap/48148
12177 * lto-cgraph.c (input_overwrite_node): Clear the abstract
12178 origin for decls in other ltrans units.
12179 (input_varpool_node): Likewise.
12180
12181 2011-03-17 Richard Guenther <rguenther@suse.de>
12182
12183 PR middle-end/48165
12184 * tree-object-size.c (compute_object_offset): Properly return
12185 the offset operand of MEM_REFs as sizetype.
12186
12187 2011-03-17 Jakub Jelinek <jakub@redhat.com>
12188
12189 PR rtl-optimization/48141
12190 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
12191 * dse.c: Include params.h.
12192 (active_local_stores_len): New variable.
12193 (add_wild_read, dse_step1): Clear it when setting active_local_stores
12194 to NULL.
12195 (record_store, check_mem_read_rtx): Decrease it when removing
12196 from the chain.
12197 (scan_insn): Likewise. Increase it when adding to chain, if it
12198 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
12199 set active_local_stores to NULL before the addition.
12200 * Makefile.in (dse.o): Depend on $(PARAMS_H).
12201
12202 PR rtl-optimization/48141
12203 * dse.c (record_store): If no positions are needed in an insn
12204 that cannot be deleted, at least unchain it from active_local_stores.
12205
12206 2011-03-16 Dodji Seketeli <dodji@redhat.com>
12207
12208 PR debug/47510
12209 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
12210 (lookup_type_die_strip_naming_typedef): ... here.
12211 (get_context_die): Use it.
12212 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
12213 the anonymous struct named by the naming typedef.
12214
12215 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
12216
12217 PR target/48154
12218 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
12219 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
12220
12221 2011-03-16 Jeff Law <law@redhat.com>
12222
12223 * tree-vrp.c (identify_jump_threads): Slightly simplify type
12224 check for operands of conditional. Allow type to be a pointer.
12225
12226 2011-03-16 Richard Guenther <rguenther@suse.de>
12227
12228 PR tree-optimization/48149
12229 * fold-const.c (fold_binary_loc): Fold
12230 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
12231
12232 2011-03-16 Richard Guenther <rguenther@suse.de>
12233
12234 PR tree-optimization/26134
12235 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
12236 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
12237 (non_rewritable_mem_ref_base): Handle complex type component
12238 accesses, constrain offsets for vector and complex extracts
12239 more properly.
12240
12241 2011-03-16 Richard Guenther <rguenther@suse.de>
12242
12243 PR tree-optimization/48146
12244 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
12245 operands avoiding the need for renaming.
12246
12247 2011-03-16 Richard Guenther <rguenther@suse.de>
12248
12249 * gimple-fold.c (maybe_fold_reference): Open-code relevant
12250 constant folding. Move MEM_REF canonicalization first.
12251 Rely on fold_const_aggregate_ref for initializer folding.
12252 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
12253
12254 2011-03-16 Jakub Jelinek <jakub@redhat.com>
12255
12256 PR middle-end/48136
12257 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
12258 arg0/arg1 or their arguments are always fold converted to matching
12259 types.
12260
12261 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
12262 to nargs.
12263
12264 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12265
12266 PR lto/46944
12267 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
12268 Handle in-tree gold.
12269 (ld_vers): Extract binutils version for gold.
12270 (gcc_cv_ld_hidden): Handle gold here.
12271 (gcc_cv_lto_plugin): Determine level of linker plugin support.
12272 * configure: Regenerate.
12273 * config.in: Regenerate.
12274 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
12275 -fuse-linker-plugin otherwise.
12276 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
12277 (LINK_COMMAND_SPEC): Use it.
12278 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
12279
12280 2011-03-16 Jakub Jelinek <jakub@redhat.com>
12281
12282 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
12283 * calls.c: Remove debug.h include.
12284 (emit_call_1): Don't call virtual_call_token debug hook.
12285 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
12286 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
12287 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
12288 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
12289 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
12290 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
12291 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
12292 dwarf2out_virtual_call): Remove.
12293 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
12294 copy_call_info and virtual_call hooks.
12295 (dwarf2out_init): Don't initialize vcall_insn_table,
12296 debug_dcall_section and debug_vcall_section.
12297 (prune_unused_types): Don't mark nodes from dcall_table.
12298 (dwarf2out_finish): Don't output dcall or vcall tables.
12299 * final.c (final_scan_insn): Don't call direct_call or
12300 virtual_call debug hooks.
12301 * debug.h (struct gcc_debug_hooks): Remove direct_call,
12302 virtual_call_token, copy_call_info and virtual_call hooks.
12303 (debug_nothing_uid): Remove prototype.
12304 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
12305 copy_call_info and virtual_call hooks.
12306 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
12307 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
12308 * debug.c (do_nothing_debug_hooks): Likewise.
12309 (debug_nothing_uid): Remove.
12310 * doc/invoke.texi (-fenable-icf-debug): Remove.
12311 * common.opt (-fenable-icf-debug): Likewise.
12312
12313 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
12314 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
12315 call's MEM. Handle functions returning aggregate through a hidden
12316 first pointer. For virtual calls add clobbered pc to call arguments
12317 chain.
12318 * dwarf2out.c (gen_subprogram_die): Emit
12319 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
12320 can't be emitted.
12321
12322 PR debug/45882
12323 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
12324 * rtl.h (ENTRY_VALUE_EXP): Define.
12325 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
12326 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
12327 * print-rtl.c (print_rtx): Likewise.
12328 * gengtype.c (adjust_field_rtx_def): Likewise.
12329 * var-tracking.c (vt_add_function_parameter): Adjust
12330 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
12331 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
12332 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
12333 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
12334 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
12335
12336 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
12337 Call var_location debug hook even on CALL_INSNs.
12338 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
12339 * rtl.def (ENTRY_VALUE): New.
12340 * dwarf2out.c: Include cfglayout.h.
12341 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
12342 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
12343 (struct call_arg_loc_node): New type.
12344 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
12345 tail_call_site_count): New variables.
12346 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
12347 DW_TAG_GNU_call_site_parameter.
12348 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
12349 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
12350 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
12351 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
12352 and DW_AT_GNU_all_source_call_sites.
12353 (mem_loc_descriptor): Handle ENTRY_VALUE.
12354 (add_src_coords_attributes): Don't add enything if
12355 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
12356 (dwarf2out_abstract_function): Save and clear call_arg_location,
12357 call_site_count and tail_call_site_count around dwarf2out_decl call.
12358 (gen_call_site_die): New function.
12359 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
12360 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
12361 (dwarf2out_function_decl): Clear call_arg_locations,
12362 call_arg_loc_last, set call_site_count and tail_call_site_count
12363 to -1 and free block_map.
12364 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
12365 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
12366 followed by any real instructions.
12367 (dwarf2out_begin_function): Set call_site_count and
12368 tail_call_site_count to 0.
12369 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
12370 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
12371 attempt to force a DIE for it and worst case remove the attribute.
12372 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
12373 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
12374 the decl itself.
12375 * var-tracking.c: Include tm_p.h.
12376 (vt_stack_adjustments): For calls call note_register_arguments.
12377 (argument_reg_set): New variable.
12378 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
12379 ensure the VALUE is resolved.
12380 (call_arguments): New variable.
12381 (prepare_call_arguments): New function.
12382 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
12383 (struct expand_loc_callback_data): Add ignore_cur_loc field.
12384 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
12385 always use the best expression.
12386 (vt_expand_loc): Add ignore_cur_loc argument.
12387 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
12388 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
12389 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
12390 note for all calls.
12391 (vt_add_function_parameter): Use cselib_lookup_from_insn.
12392 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
12393 argument. Don't call cselib_preserve_only_values and
12394 cselib_reset_table.
12395 (note_register_arguments): New function.
12396 (vt_initialize): Compute argument_reg_set. Call
12397 vt_add_function_parameters before processing basic blocks instead of
12398 afterwards. For calls call prepare_call_arguments before calling
12399 cselib_process_insn.
12400 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
12401 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
12402 (var-tracking.o): Depend on $(TM_P_H).
12403 * cfglayout.h (insn_scope): New prototype.
12404 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
12405 * cfglayout.c (insn_scope): No longer static.
12406 * insn-notes.def (CALL_ARG_LOCATION): New.
12407 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
12408 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
12409 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
12410 nothing for DECL_EXTERNAL BLOCK_VARS.
12411
12412 2011-03-16 Alan Modra <amodra@gmail.com>
12413
12414 PR target/45844
12415 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
12416 create invalid offset address for vsx splat insn.
12417 * config/rs6000/predicates.md (splat_input_operand): New.
12418 * config/rs6000/vsx.md (vsx_splat_*): Use it.
12419
12420 2011-03-15 Xinliang David Li <davidxl@google.com>
12421
12422 PR c/47837
12423 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
12424 (normalize_preds): New function.
12425 (is_use_properly_guarded): Normalize def predicates.
12426
12427 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12428
12429 PR target/46788
12430 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
12431 in the output template.
12432
12433 2011-03-15 Richard Guenther <rguenther@suse.de>
12434
12435 PR middle-end/47650
12436 * tree-pretty-print.c (dump_function_declaration): Properly
12437 dump unprototyped and varargs function types.
12438
12439 2011-03-15 Richard Guenther <rguenther@suse.de>
12440
12441 PR tree-optimization/13954
12442 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
12443 and friends.
12444
12445 2011-03-15 Richard Guenther <rguenther@suse.de>
12446
12447 PR tree-optimization/48037
12448 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
12449 selects into BIT_FIELD_REFs.
12450 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
12451 vector select.
12452
12453 2011-03-15 Jakub Jelinek <jakub@redhat.com>
12454
12455 PR tree-optimization/48129
12456 * builtins.c (fold_builtin_snprintf): Convert to type of
12457 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
12458 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
12459
12460 2011-03-15 Richard Guenther <rguenther@suse.de>
12461
12462 PR tree-optimization/41490
12463 * tree-ssa-dce.c (propagate_necessity): Handle returns without
12464 value but with VUSE.
12465 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
12466 return statements.
12467 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
12468 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
12469 * tree-tailcall.c (find_tail_calls): Ignore returns.
12470
12471 2011-03-15 Richard Guenther <rguenther@suse.de>
12472
12473 PR middle-end/48031
12474 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
12475 or variable-indexed array accesses when in gimple form.
12476
12477 2011-03-15 Richard Guenther <rguenther@suse.de>
12478
12479 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
12480
12481 2011-03-15 Alan Modra <amodra@gmail.com>
12482
12483 PR target/48032
12484 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
12485 presume symbol_refs without a symbol_ref_decl are suitably
12486 aligned, nor other trees we may see here. Handle anchor symbols.
12487 (legitimate_constant_pool_address_p): Comment. Add mode param.
12488 Check cmodel=medium addresses. Adjust all calls.
12489 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
12490 creating cmodel=medium optimized access to locals.
12491 * config/rs6000/constraints.md (R): Pass QImode to
12492 legitimate_constant_pool_address_p.
12493 * config/rs6000/predicates.md (input_operand): Pass mode to
12494 legitimate_constant_pool_address_p.
12495 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
12496 Update prototype.
12497
12498 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
12499
12500 PR target/48053
12501 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
12502 64-bit constants being loaded into registers other than GPRs such
12503 as loading 0 into a VSX register.
12504
12505 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12506
12507 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
12508
12509 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12510
12511 PR middle-end/47917
12512 * builtins.c (fold_builtin_snprintf): New function.
12513 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
12514 (fold_builtin_4): Likewise.
12515
12516 PR middle-end/38878
12517 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
12518 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
12519 and C - X == X also strip nops from +/-/p+ operand.
12520 When optimizing -X == C, fold C to arg0's type.
12521
12522 PR debug/47946
12523 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
12524 emit it as add_AT_int instead of add_AT_unsigned.
12525
12526 2011-03-14 Tom Tromey <tromey@redhat.com>
12527
12528 * unwind-dw2.c: Include sys/sdt.h if it exists.
12529 (_Unwind_DebugHook): Use STAP_PROBE2.
12530 * config.in, configure: Rebuild.
12531 * configure.ac: Check for sys/sdt.h.
12532
12533 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
12534
12535 * config/i386/i386.md (ROUND_FLOOR): New constant.
12536 (ROUND_CEIL): Ditto.
12537 (ROUND_TRUNC): Ditto.
12538 (ROUND_MXCSR): Ditto.
12539 (ROUND_NO_EXC): Ditto.
12540 (rint<mode>2): Use new defines instead of numerical constants.
12541 (floor<mode>2): Ditto.
12542 (ceil<mode>2): Ditto.
12543 (btrunc<mode>2): Ditto.
12544 * config/i386/i386-builtin-types.def: Define ROUND function type
12545 aliases.
12546 * config/i386/i386.c (enum ix86_builtins): Add
12547 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
12548 (struct builtin_description): Add
12549 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
12550 (ix86_expand_sse_round): New static function.
12551 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
12552 function types.
12553 (ix86_builtin_vectorized_function): Handle
12554 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
12555
12556 2011-03-14 Tom Tromey <tromey@redhat.com>
12557
12558 * c-parser.c (c_parser_asm_string_literal): Clear
12559 warn_overlength_strings.
12560
12561 2011-03-14 Tom Tromey <tromey@redhat.com>
12562
12563 * c-parser.c (disable_extension_diagnostics): Save
12564 warn_overlength_strings.
12565 (restore_extension_diagnostics): Restore warn_overlength_strings.
12566
12567 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12568
12569 * BASE-VER: Change to 4.7.0.
12570
12571 2011-03-14 Richard Guenther <rguenther@suse.de>
12572
12573 PR middle-end/48098
12574 * tree.c (build_vector_from_val): Adjust assert to requirements
12575 and reality.
12576
12577 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12578
12579 PR bootstrap/48102
12580 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
12581
12582 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
12583
12584 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
12585 terms of target_flags_explicit. Adjust copyright year.
12586
12587 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
12588 * config/rs6000/t-freebsd: New file. Add override for
12589 LIB2FUNCS_EXTRA.
12590
12591 2011-03-13 Chris Demetriou <cgd@google.com>
12592
12593 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
12594 (-fno-diagnostics-show-option): this, to reflect current default.
12595 (-Werror=): Update text about -fno-diagnostics-show-option.
12596
12597 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
12598
12599 PR target/48053
12600 * config/rs6000/predicates.md (easy_vector_constant_add_self,
12601 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
12602 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
12603 mode is not V2DImode or V2DFmode.
12604 (vspltis_constant): Do not handle V2DImode and V2DFmode.
12605 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
12606 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
12607 registers to 0.
12608 (movdi_internal64): Likewise.
12609
12610 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
12611
12612 PR tree-optimization/47127
12613 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
12614 parameter.
12615 (set_cloog_options): Same.
12616 (scop_to_clast): Same.
12617 (print_clast_stmt): Do not call cloog_state_malloc and
12618 cloog_state_free.
12619 (print_generated_program): Same.
12620 (gloog): Same.
12621 * graphite-clast-to-gimple.h (cloog_state): Declared.
12622 (scop_to_clast): Adjust declaration.
12623 * graphite.c (cloog_state): Defined here.
12624 (graphite_initialize): Call cloog_state_malloc.
12625 (graphite_finalize): Call cloog_state_free.
12626
12627 2011-03-11 Jason Merrill <jason@redhat.com>
12628
12629 * attribs.c (lookup_attribute_spec): Take const_tree.
12630 * tree.h: Adjust.
12631
12632 2011-03-11 Joseph Myers <joseph@codesourcery.com>
12633
12634 * config/sparc/sparc.c (sparc_option_override): Use
12635 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
12636
12637 2011-03-11 Richard Guenther <rguenther@suse.de>
12638
12639 PR tree-optimization/48067
12640 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
12641 multiplication result will be only used once on the target
12642 stmt.
12643
12644 2011-03-11 Richard Guenther <rguenther@suse.de>
12645
12646 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
12647
12648 2011-03-11 Richard Guenther <rguenther@suse.de>
12649
12650 PR lto/48073
12651 * tree.c (find_decls_types_r): Do not walk types only reachable
12652 from IDENTIFIER_NODEs.
12653
12654 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12655
12656 PR middle-end/48044
12657 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
12658 all vnode->force_output nodes as needed.
12659
12660 2011-03-11 Jason Merrill <jason@redhat.com>
12661
12662 PR c++/48069
12663 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
12664 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
12665
12666 2011-03-11 Martin Jambor <mjambor@suse.cz>
12667
12668 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
12669 cgraph_node.
12670
12671 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12672
12673 PR tree-optimization/48063
12674 * ipa-inline.c (cgraph_decide_inlining): Don't try to
12675 inline functions called once if !tree_can_inline_p (node->callers).
12676
12677 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
12678
12679 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
12680 extra_objs.
12681 * config/score/score3.c: Delete.
12682 * config/score/score3.h: Delete.
12683 * config/score/mul-div.S: Delete.
12684 * config/score/sfp-machine.h: Add new file.
12685 * config/score/constraints.md: Add new file.
12686 * config/score/t-score-softfp: Add new file.
12687 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
12688 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
12689 (score7_extra_constraint): Delete.
12690 (score7_option_override): Remove unused code.
12691 * config/score/score.c: Remove score3 and score5 define and code.
12692 * config/score/score.h: Remove score3 and score5 define and code.
12693 * config/score/score.md: Remove score3 template and unusual insn.
12694 * config/score/score.opt: Remove score3 and score5 options.
12695
12696 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12697
12698 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
12699 when _HPUX_SOURCE is defined.
12700 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
12701
12702 2011-03-10 Jason Merrill <jason@redhat.com>
12703
12704 PR c++/48029
12705 * stor-layout.c (layout_type): Don't set structural equality
12706 on arrays of incomplete type.
12707 * tree.c (type_hash_eq): Handle comparing them properly.
12708
12709 2011-03-10 Jakub Jelinek <jakub@redhat.com>
12710
12711 PR debug/48043
12712 * config/s390/s390.c (s390_delegitimize_address): Make sure the
12713 result mode matches original rtl mode.
12714
12715 2011-03-10 Nick Clifton <nickc@redhat.com>
12716
12717 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
12718 (andsi3, andsi3_flags): Fix timings for three operand alternative.
12719
12720 2011-03-09 Jakub Jelinek <jakub@redhat.com>
12721
12722 PR rtl-optimization/47866
12723 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
12724 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
12725 if target wasn't scalar.
12726 * function.c (assign_stack_temp_for_type): Assert that neither
12727 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
12728 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
12729 macro.
12730 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
12731
12732 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12733
12734 * config/s390/s390-protos.h (s390_label_align): New prototype.
12735 * config/s390/s390.c (s390_label_align): New function.
12736 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
12737
12738 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
12739
12740 PR target/47755
12741 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
12742 V2DI/V2DF constants. Only all 0's or all 1's are easy.
12743 (output_vec_const_move): Ditto.
12744
12745 2011-03-08 Anatoly Sokolov <aesok@post.ru>
12746
12747 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
12748 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
12749 * config/mips/mips.c (mips_preferred_reload_class): Make static.
12750 Change 'rclass' argument and result type to reg_class_t.
12751 (TARGET_PREFERRED_RELOAD_CLASS): Define.
12752
12753 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
12754
12755 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12756 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
12757 (TARGET_MEMORY_MOVE_COST): Define.
12758 (avr_register_move_cost, avr_memory_move_cost): New Functions.
12759
12760 2011-03-08 Jakub Jelinek <jakub@redhat.com>
12761
12762 PR debug/47881
12763 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
12764 removed anything.
12765
12766 PR tree-optimization/48022
12767 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
12768 for EQ/NE_EXPR.
12769
12770 2011-03-07 Jakub Jelinek <jakub@redhat.com>
12771
12772 PR debug/47991
12773 * var-tracking.c (find_use_val): Return NULL for
12774 cui->sets && cui->store_p BLKmode MEMs.
12775
12776 2011-03-07 Anatoly Sokolov <aesok@post.ru>
12777
12778 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
12779 Remove.
12780 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
12781 xstormy16_print_operand_address): Remove.
12782 * config/stormy16/stormy16.c (xstormy16_print_operand,
12783 xstormy16_print_operand_address): Make static.
12784 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
12785
12786 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
12787
12788 PR target/47862
12789 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12790 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
12791 before definition.
12792
12793 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
12794
12795 PR bootstrap/48000
12796 * cfgloopmanip.c (fix_bb_placements): Return immediately
12797 if FROM is BASE_LOOP's header.
12798
12799 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
12800
12801 * gimplify.c (gimplify_function_tree): Fix building calls
12802 to __builtin_return_address.
12803
12804 2011-03-07 Alan Modra <amodra@gmail.com>
12805
12806 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
12807 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
12808 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
12809 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
12810 return_mode args.
12811 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
12812 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
12813 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
12814 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
12815 * config/rs6000/rs6000.c
12816 (rs6000_elf_end_indicate_exec_stack): Rename to..
12817 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
12818 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
12819 (rs6000_file_start): ..here.
12820 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
12821 file scope variables.
12822 (call_ABI_of_interest): New function.
12823 (init_cumulative_args): Set above vars when function return value
12824 is a float, vector, or small struct.
12825 (rs6000_function_arg_advance_1): Likewise for function args.
12826 (rs6000_va_start): Set rs6000_passes_float if variable arg function
12827 references float args.
12828
12829 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
12830
12831 * doc/cfg.texi: Remove "See" before @ref.
12832 * doc/invoke.texi: Likewise.
12833
12834 2011-03-05 Jason Merrill <jason@redhat.com>
12835
12836 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
12837
12838 2011-03-05 Anthony Green <green@moxielogic.com>
12839
12840 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
12841
12842 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
12843
12844 PR rtl-optimization/47899
12845 * cfgloopmanip.c (fix_bb_placements): Fix first argument
12846 to flow_loop_nested_p when moving the loop upward.
12847
12848 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
12849
12850 PR target/47719
12851 * arm.md (movhi_insn_arch4): Accept any immediate constant.
12852
12853 2011-03-05 Jakub Jelinek <jakub@redhat.com>
12854
12855 PR tree-optimization/47967
12856 * ipa-cp.c (build_const_val): Return NULL instead of creating
12857 VIEW_CONVERT_EXPR for mismatching sizes.
12858 (ipcp_create_replace_map): Return NULL if build_const_val failed.
12859 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
12860 give up on versioning.
12861
12862 2011-03-05 Alan Modra <amodra@gmail.com>
12863
12864 PR target/47986
12865 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
12866 full cmodel medium/large lo_sum + high addresses.
12867
12868 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12869
12870 * config/s390/s390.c (s390_decompose_address): Reject non-literal
12871 pool references in UNSPEC_LTREL_OFFSET.
12872
12873 2011-03-04 Jan Hubicka <jh@suse.cz>
12874
12875 PR lto/47497
12876 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
12877 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
12878 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
12879 Add node pointers.
12880 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
12881 cgraph_add_thunk): Add node pointers.
12882 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
12883 associated to right node.
12884 (input_node): Update use of cgraph_same_body_alias
12885 and cgraph_add_thunk.
12886
12887 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
12888
12889 * config/i386/i386.opt (mprefer-avx128): New flag.
12890 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
12891 modes when the flag -mprefer-avx128 is on.
12892
12893 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
12894
12895 * dwarf2out.c (compare_loc_operands): Fix address handling.
12896
12897 2011-03-04 Alan Modra <amodra@gmail.com>
12898
12899 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
12900
12901 2011-03-04 Richard Guenther <rguenther@suse.de>
12902
12903 PR middle-end/47968
12904 * expmed.c (extract_bit_field_1): Prefer vector modes that
12905 vec_extract patterns can handle.
12906
12907 2011-03-04 Richard Guenther <rguenther@suse.de>
12908
12909 PR middle-end/47975
12910 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
12911
12912 2011-03-04 Richard Henderson <rth@redhat.com>
12913
12914 * explow.c (emit_stack_save): Remove 'after' parameter.
12915 (emit_stack_restore): Likewise.
12916 * expr.h: Update to match.
12917 * builtins.c, calls.c, stmt.c: Likewise.
12918 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
12919 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
12920 * function.c (expand_function_end): Insert the emit_stack_save
12921 sequence before parm_birth_insn instead of after.
12922
12923 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
12924
12925 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
12926 (ssse3_pmaddubsw128): Ditto.
12927 (ssse3_pmaddubsw): Ditto.
12928
12929 2011-03-03 Steve Ellcey <sje@cup.hp.com>
12930
12931 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
12932
12933 2011-03-03 Jakub Jelinek <jakub@redhat.com>
12934
12935 PR c/47963
12936 * gimplify.c (omp_add_variable): Only call omp_notice_variable
12937 on TYPE_SIZE_UNIT if it is a DECL.
12938
12939 PR debug/47283
12940 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
12941 first operand is not is_gimple_mem_ref_addr, try to fold it.
12942 If the operand still isn't is_gimple_mem_ref_addr, clear
12943 MEM_EXPR on op0.
12944
12945 2011-03-03 Richard Guenther <rguenther@suse.de>
12946
12947 PR middle-end/47283
12948 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
12949 match comment.
12950 (refs_may_alias_p_1): For release branches return true if
12951 we are confused by our input.
12952
12953 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12954
12955 * config/s390/s390.c (s390_function_value): Rename to ...
12956 (s390_function_and_libcall_value): ... this.
12957 (s390_function_value): New function.
12958 (s390_libcall_value): New function.
12959 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
12960 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
12961 target macro definitions.
12962 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
12963
12964 2011-03-02 Joseph Myers <joseph@codesourcery.com>
12965
12966 * config/i386/freebsd64.h (CC1_SPEC): Define.
12967 * config/i386/linux64.h (CC1_SPEC): Define.
12968 * config/i386/x86-64.h (CC1_SPEC): Don't define.
12969
12970 2011-03-02 Anatoly Sokolov <aesok@post.ru>
12971
12972 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12973 Remove.
12974 * config/stormy16/stormy16.c: Include reload.h.
12975 (xstormy16_memory_move_cost): New function.
12976 (TARGET_MEMORY_MOVE_COST): Define.
12977
12978 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
12979
12980 PR rtl-optimization/47925
12981 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
12982 with side effects. Remove the more-specific check for volatile asms.
12983
12984 2011-03-02 Alan Modra <amodra@gmail.com>
12985
12986 PR target/47935
12987 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
12988 toc relative addresses for valid offsets.
12989
12990 2011-03-01 Richard Guenther <rguenther@suse.de>
12991
12992 PR tree-optimization/47890
12993 * tree-vect-loop.c (get_initial_def_for_induction): Set
12994 related stmt properly.
12995
12996 2011-03-01 Richard Guenther <rguenther@suse.de>
12997
12998 PR lto/47924
12999 * lto-streamer.c (lto_record_common_node): Also register
13000 the canonical type.
13001
13002 2011-03-01 Richard Guenther <rguenther@suse.de>
13003
13004 PR lto/46911
13005 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
13006 Do not stream DECL_ABSTRACT_ORIGIN.
13007 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
13008 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
13009 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
13010 Do not stream DECL_ABSTRACT_ORIGIN.
13011 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
13012 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
13013
13014 2011-02-28 Anatoly Sokolov <aesok@post.ru>
13015
13016 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
13017 FUNCTION_VALUE_REGNO_P): Remove.
13018 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
13019 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
13020 Add 'outgoing' argument.
13021 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
13022 function.
13023 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13024 TARGET_FUNCTION_VALUE_REGNO_P): Define.
13025
13026 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
13027
13028 PR debug/28047
13029 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
13030 (lookup_filename): Likewise.
13031 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
13032
13033 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
13034 Jakub Jelinek <jakub@redhat.com>
13035
13036 PR middle-end/47893
13037 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
13038 (assign_stack_local_1): Change last argument type to int.
13039 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
13040 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
13041 don't record padding space into frame_space_list nor use those areas.
13042 (assign_stack_local): Adjust caller.
13043 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
13044 of assign_stack_local, pass 0 as last argument.
13045 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
13046 callers.
13047
13048 2011-02-28 Jakub Jelinek <jakub@redhat.com>
13049
13050 PR debug/47283
13051 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
13052 Use target address_mode and pointer_mode hooks instead of hardcoded
13053 Pmode and ptr_mode. Handle some simple cases of extending if
13054 POINTERS_EXTEND_UNSIGNED < 0.
13055 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
13056 Call convert_debug_memory_address.
13057 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
13058 convert_debug_memory_address.
13059
13060 PR middle-end/46790
13061 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
13062 * configure: Regenerated.
13063 * config.in: Regenerated.
13064 * varasm.c (default_function_section): Return NULL
13065 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
13066
13067 2011-02-28 Martin Jambor <mjambor@suse.cz>
13068
13069 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
13070 the description to match the printed values.
13071
13072 2011-02-28 Richard Guenther <rguenther@suse.de>
13073
13074 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
13075 of the copied scope tree.
13076
13077 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13078
13079 * doc/extend.texi (Function Attributes): Avoid deeply (and
13080 wrongly) nested tables.
13081
13082 2011-02-27 Jakub Jelinek <jakub@redhat.com>
13083
13084 PR middle-end/47903
13085 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
13086 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
13087 r isn't op0 nor op1.
13088
13089 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
13090
13091 * config/avr/avr.md: Remove magic comment for emacs.
13092
13093 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
13094
13095 PR target/45261
13096 * config/avr/avr.c (avr_option_override): Use error on bad options.
13097 (avr_help): New function.
13098 (TARGET_HELP): Define.
13099
13100 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
13101
13102 PR target/42240
13103 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
13104 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
13105
13106 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
13107
13108 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
13109 (ARM Options): Ditto.
13110 (i386 and x86-64 Options): Ditto.
13111 (RX Options): Ditto.
13112 (SPARC Options): Ditto.
13113
13114 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
13115
13116 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
13117 FreeBSD 6 and later. Generally use cpu generic.
13118
13119 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
13120
13121 * doc/cpp.texi: Update copyright years.
13122
13123 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
13124
13125 PR target/46898
13126 * config/lm32/lm32.md (ashrsi3): Added needed variable.
13127
13128 2011-02-25 Jon Beniston <jon@beniston.com>
13129
13130 PR target/46898
13131 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
13132 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
13133 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
13134 (lm32_block_move_inline): Add type cast to remove warning.
13135 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
13136 (gen_int_relational): Move declarations to start of function.
13137
13138 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
13139
13140 PR tree-optimization/45470
13141 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
13142 can throw internally only.
13143 * tree-vect-stmts.c (vectorizable_call): Likewise.
13144
13145 2011-02-24 Anatoly Sokolov <aesok@post.ru>
13146
13147 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
13148 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13149 * config/stormy16/stormy16-protos.h
13150 (xstormy16_preferred_reload_class): Remove.
13151 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
13152 static. Change 'rclass' argument and return type to reg_class_t.
13153 (TARGET_PREFERRED_RELOAD_CLASS,
13154 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13155
13156 2011-02-24 Richard Guenther <rguenther@suse.de>
13157
13158 * lto-streamer-in.c (input_bb): Do not find referenced vars
13159 in debug statements.
13160
13161 2011-02-23 Jason Merrill <jason@redhat.com>
13162
13163 * common.opt (fabi-version): Document v5 and v6.
13164
13165 2011-02-23 Richard Guenther <rguenther@suse.de>
13166
13167 PR tree-optimization/47849
13168 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
13169
13170 2011-02-23 Jie Zhang <jie@codesourcery.com>
13171
13172 * opts-common.c (decode_cmdline_option): Print empty string
13173 argument as "" in decoded->orig_option_with_args_text.
13174 * gcc.c (execute): Print empty string argument as ""
13175 in the verbose output.
13176 (do_spec_1): Keep empty string argument.
13177
13178 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
13179
13180 * config.gcc: Declare score-* and crx-* obsolete.
13181
13182 2011-02-23 Jie Zhang <jie@codesourcery.com>
13183
13184 PR rtl-optimization/47763
13185 * web.c (web_main): Ignore naked clobber when replacing register.
13186
13187 2011-02-22 Anatoly Sokolov <aesok@post.ru>
13188
13189 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
13190 Remove.
13191
13192 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
13193
13194 PR doc/47848
13195 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
13196
13197 2011-02-22 Mike Stump <mikestump@comcast.net>
13198
13199 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
13200 assembler.
13201 * configure: Regenerate.
13202
13203 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
13204
13205 PR rtl-optimization/46002
13206 * ira-color.c (update_copy_costs): Change class intersection
13207 test to reg_class_contents[] test of 'hard_regno'.
13208
13209 2011-02-21 Joseph Myers <joseph@codesourcery.com>
13210
13211 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
13212 than Driver option.
13213 * config/hpux11.opt (mt): Likewise.
13214 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
13215 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
13216 * config/vax/elf.opt (mno-asm-pic): Likewise.
13217 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
13218
13219 2011-02-21 Mike Stump <mikestump@comcast.net>
13220
13221 PR target/47822
13222 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
13223 tree so we can get save the type.
13224 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
13225 for CFString instead of trying to use past the end of the builtins.
13226 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
13227 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
13228 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
13229 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
13230 Rename to darwin_builtin_cfstring.
13231 (darwin_init_cfstring_builtins): Return the built type.
13232
13233 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
13234
13235 PR target/47840
13236 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
13237 (_mm256_insert_epi64): Use _mm_insert_epi64.
13238
13239 2011-02-21 Anatoly Sokolov <aesok@post.ru>
13240
13241 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13242 * config/stormy16/stormy16-protos.h
13243 (xstormy16_mode_dependent_address_p): Remove.
13244 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
13245 Make static. Change return type to bool. Change argument type to
13246 const_rtx. Remove dead code.
13247 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13248
13249 2011-02-21 Richard Guenther <rguenther@suse.de>
13250
13251 PR lto/47820
13252 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
13253 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
13254 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
13255 TUs context.
13256 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
13257 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
13258
13259 2011-02-20 Richard Guenther <rguenther@suse.de>
13260
13261 PR lto/47822
13262 * tree.c (free_lang_data_in_decl): Clean builtins from
13263 the TU decl BLOCK_VARS.
13264
13265 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
13266
13267 PR debug/47620
13268 PR debug/47630
13269 * haifa-sched.c (fix_tick_ready): Skip tick computation
13270 for debug insns.
13271
13272 2011-02-19 Richard Guenther <rguenther@suse.de>
13273
13274 PR lto/47647
13275 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
13276 Remove lazy BLOCK_VARS streaming.
13277 (lto_input_ts_block_tree_pointers): Likewise.
13278 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
13279
13280 2011-02-19 Joseph Myers <joseph@codesourcery.com>
13281
13282 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
13283
13284 2011-02-19 Joseph Myers <joseph@codesourcery.com>
13285
13286 * config/i386/biarch32.h, config/i386/mach.h,
13287 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
13288
13289 2011-02-19 Jakub Jelinek <jakub@redhat.com>
13290
13291 PR target/47800
13292 * config/i386/i386.md (peephole2 for shift and plus): Use
13293 operands[1] original mode in the first insn.
13294
13295 2011-02-18 Mike Stump <mikestump@comcast.net>
13296
13297 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
13298
13299 2011-02-18 Jan Hubicka <jh@suse.cz>
13300
13301 PR middle-end/47788
13302 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
13303 to zero when the function is not inlinable at all.
13304
13305 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13306
13307 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
13308 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13309 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
13310 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
13311 * config/pa/t-pa64: Likewise.
13312 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
13313
13314 2011-02-18 Jakub Jelinek <jakub@redhat.com>
13315
13316 PR driver/47787
13317 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
13318
13319 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13320
13321 PR target/47792
13322 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
13323
13324 2011-02-18 Anatoly Sokolov <aesok@post.ru>
13325
13326 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
13327 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
13328 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
13329 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
13330 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
13331 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
13332 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
13333 m32r_load_postinc_p, m32r_store_preinc_predec_p,
13334 m32r_legitimate_address_p): New functions.
13335 * config/m32r/constraints.md (constraint "S"): Don't use
13336 STORE_PREINC_PREDEC_P.
13337 (constraint "U"): Don't use LOAD_POSTINC_P.
13338
13339 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
13340
13341 PR rtl-optimization/46178
13342 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
13343 compute ira_hard_regno_cover_class[].
13344
13345 2011-02-18 Richard Guenther <rguenther@suse.de>
13346
13347 PR lto/47798
13348 * lto-streamer.h (lto_global_var_decls): Declare.
13349 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
13350 statics for global var processing.
13351
13352 2011-02-18 Richard Guenther <rguenther@suse.de>
13353
13354 PR tree-optimization/47737
13355 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
13356 edge dominance check.
13357
13358 2011-02-18 Jakub Jelinek <jakub@redhat.com>
13359
13360 PR debug/47780
13361 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
13362 avoid invalid rtx sharing.
13363
13364 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
13365
13366 * doc/cpp.texi (Obsolete Features): Add background on the
13367 origin of assertions.
13368
13369 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
13370
13371 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
13372 objc_abi == 2.
13373 * config/darwin.c (output_objc_section_asm_op): Added support for
13374 ABI v1 and v2.
13375 (is_objc_metadata): New.
13376 (darwin_objc2_section): New.
13377 (darwin_objc1_section): New.
13378 (machopic_select_section): Added support for ABI v1 and v2.
13379 (darwin_emit_objc_zeroed): New.
13380 (darwin_output_aligned_bss): Detect objc metadata and treat it
13381 appropriately.
13382 (darwin_asm_output_aligned_decl_common): Same.
13383 (darwin_asm_output_aligned_decl_local): Same.
13384 * config/darwin-sections.def: Updated for ABI v1 and v2.
13385 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
13386 compiling Objective-C code for the NeXT runtime, default to using
13387 ABI version 0 for 32-bit, and version 2 for 64-bit.
13388
13389 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13390
13391 * common.opt (optimize_fast): New Variable.
13392 * opts.c (default_options_optimization): Use opts->x_optimize_fast
13393 instead of local variable ofast.
13394
13395 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
13396
13397 * doc/invoke.texi (fobjc-abi-version): Documented.
13398 (fobjc-nilcheck): Documented.
13399 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
13400 version.
13401
13402 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13403
13404 PR driver/47390
13405 * common.opt (export-dynamic): New Driver option.
13406 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
13407
13408 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13409
13410 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
13411
13412 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
13413 Jan Hubicka <jh@suse.cz>
13414
13415 PR debug/47106
13416 PR debug/47402
13417 * cfgexpand.c (account_used_vars_for_block): Remove.
13418 (estimated_stack_frame_size): Use referenced vars.
13419 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
13420 that were referenced in the original function. Test src_fn
13421 rather than cfun. Drop redundant get_var_ann.
13422 (setup_one_parameter): Drop redundant get_var_ann.
13423 (declare_return_variable): Likewise.
13424 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
13425 (copy_arguments_for_versioning): Drop redundant get_var_ann.
13426 * ipa-inline.c (compute_inline_parameters): Do not compute
13427 disregard_inline_limits here.
13428 (compute_inlinable_for_current, pass_inlinable): New.
13429 (pass_inline_parameters): Require PROP_referenced_vars.
13430 * cgraphunit.c (cgraph_process_new_functions): Don't run
13431 compute_inline_parameters explicitly unless function is in SSA form.
13432 (cgraph_analyze_function): Set .disregard_inline_limits.
13433 * tree-sra.c (convert_callers): Compute inliner parameters
13434 only for functions already in SSA form.
13435
13436 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13437
13438 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
13439 -mlittle-endian-data.
13440
13441 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13442
13443 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
13444 -mno-fpu, not -fpu and -no-fpu.
13445 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
13446 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
13447
13448 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
13449
13450 PR target/43653
13451 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
13452 input reload with PLUS RTX.
13453
13454 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13455
13456 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
13457 of InverseVar(MDMX).
13458
13459 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13460
13461 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
13462 --m4-340.
13463
13464 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13465
13466 * config/mn10300/mn10300.opt (mno-crt0): New.
13467
13468 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13469
13470 * config/m68k/uclinux.opt (static-libc): New Driver option.
13471
13472 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13473
13474 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
13475
13476 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13477
13478 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
13479 %{muser-extend-enabled}.
13480
13481 2011-02-16 Richard Guenther <rguenther@suse.de>
13482
13483 PR tree-optimization/47738
13484 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
13485 the TODO from tree_predictive_commoning.
13486
13487 2011-02-15 Jeff Law <law@redhat.com>
13488
13489 Revert
13490 2011-01-25 Jeff Law <law@redhat.com>
13491
13492 PR rtl-optimization/37273
13493 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13494 handle them like argument loads from stack slots. Do not double
13495 count memory for memory constants and argument loads from stack slots.
13496
13497 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
13498
13499 PR middle-end/47725
13500 * combine.c (cant_combine_insn_p): Revert the last change.
13501
13502 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
13503
13504 PR target/47755
13505 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
13506 mode for vector constants. Remove code that checks for TImode.
13507
13508 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13509
13510 PR debug/47106
13511 PR debug/47402
13512 * cgraph.h (compute_inline_parameters): Return void.
13513 * ipa-inline.c (compute_inline_parameters): Adjust.
13514
13515 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13516
13517 PR debug/47106
13518 PR debug/47402
13519 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
13520 rather than decl.
13521 * cfgexpand.c (estimated_stack_frame_size): Likewise.
13522 * ipa-inline.c (compute_inline_parameters): Adjust.
13523
13524 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13525
13526 PR debug/47106
13527 PR debug/47402
13528 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
13529 Adjust all users. Pass FN to...
13530 * tree-flow-inline.h (first_referenced_var): ... this. Add
13531 fn argument.
13532 * ipa-struct-reorg.c: Adjust.
13533 * tree-dfa.c: Adjust.
13534 * tree-into-ssa.c: Adjust.
13535 * tree-sra.c: Adjust.
13536 * tree-ssa-alias.c: Adjust.
13537 * tree-ssa-live.c: Adjust.
13538 * tree-ssa.c: Adjust.
13539 * tree-ssanames.c: Adjust.
13540 * tree-tailcall.c: Adjust.
13541
13542 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13543
13544 PR debug/47106
13545 PR debug/47402
13546 * tree-flow.h (referenced_var_lookup): Add fn parameter.
13547 Adjust all callers.
13548 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
13549 * tree-flow-inline.h: Adjust.
13550 * gimple-pretty-print.c: Adjust.
13551 * tree-into-ssa.c: Adjust.
13552 * tree-ssa.c: Adjust.
13553 * cfgexpand.c: Adjust.
13554
13555 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13556
13557 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
13558 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13559 (EXTRA_CONSTRAINT): Delete.
13560 * config/iq2000/constraints.md: New file.
13561 * config/iq2000/iq2000.md: Include it.
13562 (define_insn ""): Delete.
13563 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
13564 unsupported constraint letters from patterns.
13565 (call_value, call_value_internal1): Likewise.
13566 (call_value_multiple_internal1): Likewise.
13567
13568 2011-02-15 Nick Clifton <nickc@redhat.com>
13569
13570 * config/mn10300/mn10300.c: Include tm-constrs.h.
13571 (struct liw_data): New data structure describing an LIW candidate
13572 instruction.
13573 (extract_bundle): Use struct liw_data. Allow small integer
13574 operands for some instructions.
13575 (check_liw_constraints): Use struct liw_data. Remove swapped
13576 parameter. Add comments describing the checks. Fix bug when
13577 assigning the source of liw1 to the source of liw2.
13578 (liw_candidate): Delete. Code moved into extract_bundle.
13579 (mn10300_bundle_liw): Use struct liw_data. Check constraints
13580 before swapping.
13581 * config/mn10300/predicates.md (liw_operand): New predicate.
13582 Allows registers and small integer constants.
13583 * config/mn10300/constraints.md (O): New constraint. Accetps
13584 integers in the range -8 to +7 inclusive.
13585 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
13586 for moving a small integer into a register. Give this alternative
13587 LIW attributes.
13588 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
13589 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
13590 using the J,K,L and M constraints,
13591 (liw): Remove SI mode on second operands to allow for HI and QI
13592 mode values.
13593 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
13594 instruction.
13595
13596 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
13597
13598 PR middle-end/47725
13599 * combine.c (cant_combine_insn_p): Check zero/sign extended
13600 hard registers.
13601
13602 2011-02-15 Richard Guenther <rguenther@suse.de>
13603
13604 PR tree-optimization/47743
13605 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
13606 for a non-type-compatible VN lookup bail out.
13607
13608 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13609
13610 * config/fr30/constraints.md: New file.
13611 * config/fr30/fr30.md: Include it.
13612 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
13613 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13614 (EXTRA_CONSTRAINT): Delete.
13615
13616 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13617
13618 * config/frv/constraints.md: New file.
13619 * config/frv/predicates.md: Include it.
13620 * config/frv/frv.c (reg_class_from_letter): Delete.
13621 (frv_option_override): Don't initialize it.
13622 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
13623 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
13624 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
13625 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13626 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
13627 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13628 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
13629 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
13630 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
13631 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
13632 (REG_CLASS_FROM_CONSTRAINT): Delete.
13633
13634 2011-02-15 Jakub Jelinek <jakub@redhat.com>
13635
13636 PR middle-end/47581
13637 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
13638 if frame size is 0 in a leaf function.
13639
13640 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13641
13642 PR pch/14940
13643 * config/alpha/host-osf.c: New file.
13644 * config/alpha/x-osf: New file.
13645 * config.host (alpha*-dec-osf*): Use it.
13646
13647 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13648
13649 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13650 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
13651 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
13652 (rx_mode_dependent_address_p): ...this. Make static. Change argument
13653 type to const_rtx.
13654 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13655
13656 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13657
13658 * config/stormy16/constraints.md: New file.
13659 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
13660 Use satisfies_constraint_Q and satisfies_constraint_R.
13661 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
13662 Delete.
13663 (xstormy16_legitiamte_address_p): Declare.
13664 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
13665 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13666 (EXTRA_CONSTRAINT): Delete.
13667 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
13668 Un-staticize.
13669 (xstormy16_extra_constraint_p): Delete.
13670
13671 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
13672
13673 PR tree-optimization/46494
13674 * loop-unroll.c (split_edge_and_insert): Adjust comment.
13675 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
13676 (pass_rtl_loop_done): Add TODO_verify_flow.
13677 * fwprop.c (pass_rtl_fwprop): Likewise.
13678 * modulo-sched.c (pass_sms): Likewise.
13679 * tree-ssa-dom.c (pass_dominator): Likewise.
13680 * tree-ssa-loop-ch.c (pass_ch): Likewise.
13681 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
13682 (pass_tree_loop_done): Likewise.
13683 * tree-ssa-pre.c (execute_pre): Likewise.
13684 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
13685 * tree-ssa-sink.c (pass_sink_code): Likewise.
13686 * tree-vrp.c (pass_vrp): Likewise.
13687
13688 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13689
13690 * config/v850/constraints.md: New file.
13691 * config/v850/v850.md: Include it.
13692 * config/v850/predicates.md (reg_or_0_operand): Use
13693 satisfies_constraint_G.
13694 (special_symbolref_operand): Use satisfies_constraint_K.
13695 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
13696 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
13697 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
13698 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13699 (EXTRA_CONSTRAINT): Delete.
13700 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
13701 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
13702 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
13703
13704 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13705
13706 PR target/47696
13707 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
13708 description.
13709
13710 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13711
13712 * config/mcore/constraints.md: New file.
13713 * config/mcore/mcore.md: Include it.
13714 * config/mcore/mcore.c (reg_class_from_letter): Delete.
13715 * config/mcore/mcore.h (reg_class_from_letter): Delete.
13716 (REG_CLASS_FROM_LETTER): Delete.
13717 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
13718 insn_const_int_ok_for_constraint.
13719 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
13720 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
13721 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13722 (EXTRA_CONSTRAINT): Delete.
13723
13724 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13725
13726 PR ada/41929
13727 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
13728 (IS_SIGHANDLER): Define.
13729 (sparc64_is_sighandler): New function, split off from
13730 sparc64_fallback_frame_state.
13731 (sparc_is_sighandler): New function, split off from
13732 sparc_fallback_frame_state.
13733 (sparc64_fallback_frame_state): Merge with ...
13734 (sparc_fallback_frame_state): ... this into ...
13735 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
13736 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
13737 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
13738 stack instead of hardcoded offsets.
13739
13740 2011-02-14 Andriy Gapon <avg@freebsd.org>
13741
13742 PR target/45808
13743 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
13744
13745 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13746
13747 * configure: Regenerate.
13748
13749 2011-02-12 Joseph Myers <joseph@codesourcery.com>
13750
13751 PR driver/45731
13752 * gcc.c (asm_options): Correct spec matching --target-help.
13753
13754 2011-02-12 Martin Jambor <mjambor@suse.cz>
13755
13756 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
13757 to gimple call error.
13758
13759 2011-02-12 Mike Stump <mikestump@comcast.net>
13760
13761 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
13762 comments in backslash regions.
13763
13764 2011-02-12 Mike Stump <mikestump@comcast.net>
13765 Jakub Jelinek <jakub@redhat.com>
13766 Iain Sandoe <iains@gcc.gnu.org>
13767
13768 PR target/47324
13769 * dwarf2out.c (output_cfa_loc): When required, apply the
13770 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
13771 (output_loc_sequence): Likewise.
13772 (output_loc_operands_raw): Likewise.
13773 (output_loc_sequence_raw): Likewise.
13774 (output_cfa_loc): Likewise.
13775 (output_loc_list): Suppress register number adjustment when
13776 calling output_loc_sequence()
13777 (output_die): Likewise.
13778
13779 2011-02-12 Anatoly Sokolov <aesok@post.ru>
13780
13781 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
13782 Remove macros.
13783 * config/xtensa/xtensa.c (xtensa_register_move_cost,
13784 xtensa_memory_move_cost): New functions.
13785 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
13786
13787 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
13788
13789 PR lto/47225
13790 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
13791 in the current directory.
13792 * configure: Rebuilt.
13793
13794 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
13795
13796 * config/darwin.c (darwin_override_options): Add a hunk missed
13797 from the commit of r168571. Trim comment line lengths and
13798 correct indents of the preceding block.
13799
13800 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
13801
13802 * gcc.c (driver_handle_option): Concatenate the argument to -F with
13803 the switch.
13804
13805 2011-02-11 Joseph Myers <joseph@codesourcery.com>
13806
13807 * common.opt (nostartfiles): New Driver option.
13808
13809 2011-02-11 Xinliang David Li <davidxl@google.com>
13810
13811 PR tree-optimization/47707
13812 * tree-chrec.c (convert_affine_scev): Keep type precision.
13813
13814 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
13815
13816 PR tree-optimization/47420
13817 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
13818
13819 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
13820
13821 PR rtl-optimization/47614
13822 * rtl.h (check_for_inc_dec): Declare.
13823 * dse.c (check_for_inc_dec): Externalize...
13824 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
13825 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
13826
13827 2011-02-11 Joseph Myers <joseph@codesourcery.com>
13828
13829 PR driver/47678
13830 * gcc.c (main): Do not compile inputs if there were errors in
13831 option handling.
13832 * opts-common.c (read_cmdline_option): Check for wrong language
13833 after other error checks.
13834
13835 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
13836
13837 * cgraph.c: Fix comment typos.
13838 * cgraph.h: Likewise.
13839 * cgraphunit.c: Likewise.
13840 * ipa-cp.c: Likewise.
13841 * ipa-inline.c: Likewise.
13842 * ipa-prop.c: Likewise.
13843 * ipa-pure-const.c: Likewise.
13844 * ipa-ref.c: Likewise.
13845 * ipa-reference.c: Likewise.
13846
13847 2011-02-11 Jakub Jelinek <jakub@redhat.com>
13848
13849 PR debug/47684
13850 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
13851
13852 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13853
13854 PR testsuite/47400
13855 * doc/sourcebuild.texi (Require Support): Document
13856 dg-require-ascii-locale.
13857
13858 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
13859
13860 * doc/lto.texi (Write summary): Fix missing parentheses.
13861
13862 2011-02-10 DJ Delorie <dj@redhat.com>
13863
13864 * config/m32c/m32c.c (m32c_option_override): Disable
13865 -fcombine-stack-adjustments until flag value tracking and compare
13866 optimization can be rewritten.
13867
13868 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
13869
13870 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
13871 PROCESSOR_POWER7.
13872 (PROCESSOR_DEFAULT64): Likewise.
13873
13874 2011-02-10 Richard Henderson <rth@redhat.com>
13875
13876 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
13877 change from 2011-02-03.
13878 * config/rx/rx.c (flags_from_code): Likewise.
13879 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
13880 is valid, n/pz otherwise.
13881 (rx_select_cc_mode): Return CCmode if Y is not zero.
13882
13883 2011-02-10 Richard Guenther <rguenther@suse.de>
13884
13885 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
13886
13887 2011-02-10 Richard Guenther <rguenther@suse.de>
13888
13889 PR tree-optimization/47677
13890 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
13891
13892 2011-02-10 Jakub Jelinek <jakub@redhat.com>
13893
13894 PR target/47665
13895 * combine.c (make_compound_operation): Only change shifts into
13896 multiplication for SCALAR_INT_MODE_P.
13897
13898 2011-02-10 Jie Zhang <jie@codesourcery.com>
13899
13900 PR testsuite/47622
13901 Revert
13902 2011-02-05 Jie Zhang <jie@codesourcery.com>
13903 PR debug/42631
13904 * web.c (entry_register): Don't clobber the number of the
13905 first uninitialized reference in used[].
13906
13907 2011-02-09 Richard Guenther <rguenther@suse.de>
13908
13909 PR tree-optimization/47664
13910 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
13911 all edges again.
13912
13913 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
13914
13915 PR target/46481
13916 PR target/47032
13917 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
13918 PROCESSOR_POWER7.
13919 (PROCESSOR_DEFAULT64): Same.
13920 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
13921
13922 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13923
13924 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
13925
13926 2011-02-09 Martin Jambor <mjambor@suse.cz>
13927
13928 PR middle-end/45505
13929 * tree-sra.c (struct access): New flags grp_scalar_read and
13930 grp_scalar_write. Changed description of assignment read and write
13931 flags.
13932 (dump_access): Dump new flags, reorder all of them.
13933 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
13934 to detect multiple scalar reads.
13935 (analyze_access_subtree): Use the new scalar read write flags instead
13936 of the old flags. Adjusted comments.
13937
13938 2011-02-08 DJ Delorie <dj@redhat.com>
13939
13940 PR target/47548
13941 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
13942 patterns.
13943
13944 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13945
13946 * config/m68k/uclinux.opt: New.
13947 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
13948
13949 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13950
13951 * config/cris/elf.opt (sim): New Driver option.
13952
13953 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13954
13955 * config/xtensa/elf.opt: New.
13956 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
13957
13958 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13959
13960 * config/vax/elf.opt: New.
13961 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
13962
13963 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13964
13965 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
13966
13967 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13968
13969 * config/gnu-user.opt: New.
13970 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
13971 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
13972 *-*-uclinux*): Use gnu-user.opt.
13973
13974 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
13975
13976 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
13977 * config/i386/gnu.h (CPP_SPEC): Likewise.
13978
13979 2011-02-08 Ian Lance Taylor <iant@google.com>
13980
13981 * common.opt (fcx-limited-range): Add SetByCombined flag.
13982 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
13983 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
13984 (fassociative-math, freciprocal-math): Likewise.
13985 (funsafe-math-optimizations): Likewise.
13986 * opth-gen.awk: Handle SetByCombined.
13987 * optc-gen.awk: Likewise.
13988 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
13989 (set_unsafe_math_optimizations_flags): Likewise.
13990 * doc/options.texi (Option properties): Document SetByCombined.
13991
13992 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13993
13994 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
13995 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
13996 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
13997 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
13998 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
13999
14000 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
14001
14002 PR tree-optimization/46834
14003 PR tree-optimization/46994
14004 PR tree-optimization/46995
14005 * graphite-sese-to-poly.c (used_outside_reduction): New.
14006 (detect_commutative_reduction): Call used_outside_reduction.
14007 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
14008 translate_scalar_reduction_to_array only when at least one
14009 loop-phi/close-phi tuple has been detected.
14010
14011 2011-02-08 Richard Guenther <rguenther@suse.de>
14012
14013 PR middle-end/47639
14014 * tree-vect-generic.c (expand_vector_operations_1): Update
14015 stmts here ...
14016 (expand_vector_operations): ... not here. Cleanup EH info
14017 and the CFG if required.
14018
14019 2011-02-08 Richard Guenther <rguenther@suse.de>
14020
14021 PR tree-optimization/47641
14022 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
14023 require type compatibility.
14024
14025 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14026
14027 * gimple-low.c (lower_function_body): Don't remove the location of
14028 the return statement here.
14029 (lower_gimple_return): Do it here instead but only if the return
14030 statement is actually used twice.
14031
14032 2011-02-08 Richard Guenther <rguenther@suse.de>
14033
14034 PR tree-optimization/47632
14035 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
14036 unused up_to_stmt parameter, return whether cfg-cleanup is
14037 necessary, remove EH info properly.
14038 (forward_propagate_into_gimple_cond): Adjust caller.
14039 (forward_propagate_into_cond): Likewise.
14040 (forward_propagate_comparison): Likewise.
14041 (tree_ssa_forward_propagate_single_use_vars): Make
14042 forward_propagate_comparison case similar to the two others.
14043
14044 2011-02-08 Nick Clifton <nickc@redhat.com>
14045
14046 * config/mn10300/mn10300.opt (mliw): New command line option.
14047 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
14048 (liw_bundling): New automaton.
14049 (liw): New attribute.
14050 (liw_op): New attribute.
14051 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
14052 (movsi_internal): Add LIW attributes.
14053 (andsi3): Likewise.
14054 (iorsi3): Likewise.
14055 (xorsi3): Likewise.
14056 (addsi3): Separate register and immediate alternatives.
14057 Add LIW attributes.
14058 (subsi3): Likewise.
14059 (cmpsi): Likewise.
14060 (aslsi3): Likewise.
14061 (lshrsi3): Likewise.
14062 (ashrsi3): Likewise.
14063 (liw): New pattern.
14064 * config/mn10300/mn10300.c (liw_op_names): New
14065 (mn10300_print_operand): Handle 'W' operand descriptor.
14066 (extract_bundle): New function.
14067 (check_liw_constraints): New function.
14068 (liw_candidate): New function.
14069 (mn10300_bundle_liw): New function.
14070 (mn10300_reorg): New function.
14071 (TARGET_MACHINE_DEPENDENT_REORG): Define.
14072 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
14073 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
14074 __LIW__ or __NO_LIW__.
14075 * doc/invoke.texi: Describe the -mliw command line option.
14076
14077 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14078
14079 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
14080 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
14081 pthread_mutex_unlock): Remove.
14082 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
14083 * config/pa/t-pa64: Likewise.
14084 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
14085 shared libc if not linking against libpthread.
14086 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
14087
14088 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
14089
14090 PR target/47558
14091 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
14092 on 10.6 and later to ensure that we always use the unwinder from
14093 the system. Only add -no_compact_unwind when tarteting darwin
14094 10.6 or later.
14095
14096 2011-02-07 Steve Ellcey <sje@cup.hp.com>
14097
14098 PR target/46997
14099 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
14100 (vec_interleave_lowv2sf): Ditto.
14101 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
14102 (vec_extract_oddv2sf): Ditto.
14103
14104 2011-02-07 Mike Stump <mikestump@comcast.net>
14105
14106 PR target/42333
14107 Add __ieee_divdc3 entry point.
14108 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
14109 entry point.
14110 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
14111 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
14112 * config/darwin.c (darwin_rename_builtins): Add.
14113 * config/darwin-protos.h (darwin_rename_builtins): Add.
14114
14115 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
14116
14117 PR target/47636
14118 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
14119 for the condition.
14120
14121 2011-02-07 Mike Stump <mikestump@comcast.net>
14122
14123 * config/darwin.opt (mmacosx-version-min): Update default OS version.
14124
14125 2011-02-07 Denis Chertykov <chertykov@gmail.com>
14126
14127 PR target/47534
14128 * config/avr/libgcc.S (exit): Move .endfunc
14129
14130 2011-02-07 Richard Guenther <rguenther@suse.de>
14131
14132 PR tree-optimization/47615
14133 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
14134 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
14135 (run_scc_vn): Initialize it.
14136 (visit_reference_op_load): Use it.
14137 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
14138
14139 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14140
14141 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
14142 DImode trapping arithmetic libfuncs.
14143
14144 2011-02-07 Richard Guenther <rguenther@suse.de>
14145
14146 PR tree-optimization/47621
14147 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
14148 two duplicates ...
14149 (execute_update_addresses_taken): ... here. Make it more
14150 conservative in what we accept.
14151
14152 2011-02-06 Joseph Myers <joseph@codesourcery.com>
14153
14154 * config/sparc/freebsd.h (ASM_SPEC): Define.
14155 * config/sparc/vxworks.h (ASM_SPEC): Define.
14156
14157 2011-02-06 Joseph Myers <joseph@codesourcery.com>
14158
14159 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
14160
14161 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
14162
14163 * doc/invoke.texi: Remove reference to compiler internals from
14164 user documentation.
14165
14166 * reg-notes.def: Remove REG_VALUE_PROFILE.
14167 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
14168
14169 2011-02-05 Jakub Jelinek <jakub@redhat.com>
14170
14171 PR middle-end/47610
14172 * varasm.c (default_section_type_flags): If decl is NULL,
14173 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
14174
14175 2011-02-05 Jie Zhang <jie@codesourcery.com>
14176
14177 PR debug/42631
14178 * web.c (entry_register): Don't clobber the number of the
14179 first uninitialized reference in used[].
14180
14181 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
14182
14183 PR tree-optimization/46194
14184 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
14185 (build_classic_dist_vector_1): Do not represent classic distance
14186 vectors when the access functions are variating in different loops.
14187
14188 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14189
14190 * config/mips/iris6.opt: New.
14191 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
14192
14193 2011-02-04 Richard Henderson <rth@redhat.com>
14194 Steve Ellcey <sje@cup.hp.com>
14195
14196 PR target/46997
14197 * config/ia64/predicates.md (mux1_brcst_element): New.
14198 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
14199 * config/ia64/ia64.c (ia64_unpack_assemble): New.
14200 (ia64_unpack_sign): New.
14201 (ia64_expand_unpack): Rewrite using new routines.
14202 (ia64_expand_widen_sum): Ditto.
14203 (ia64_expand_dot_prod_v8qi): Ditto.
14204 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
14205 routines, add endian check.
14206 (pmpy2_even): Rename from pmpy2_r, add endian check.
14207 (pmpy2_odd): Rename from pmpy2_l, add endian check.
14208 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
14209 (vec_widen_smult_hi_v4hi): Ditto.
14210 (vec_widen_umult_lo_v4hi): Ditto.
14211 (vec_widen_umult_hi_v4hi): Ditto.
14212 (mulv2si3): Change endian checks.
14213 (sdot_prodv4hi): Rewrite with new calls.
14214 (udot_prodv4hi): New.
14215 (vec_pack_ssat_v4hi): Add endian check.
14216 (vec_pack_usat_v4hi): Ditto.
14217 (vec_pack_ssat_v2si): Ditto.
14218 (max1_even): Rename from max1_r, add endian check.
14219 (max1_odd): Rename from max1_l, add endian check.
14220 (*mux1_rev): Format change.
14221 (*mux1_mix): Ditto.
14222 (*mux1_shuf): Ditto.
14223 (*mux1_alt): Ditto.
14224 (*mux1_brcst_v8qi): Use new predicate.
14225 (vec_extract_evenv8qi): Remove endian check.
14226 (vec_extract_oddv8qi): Ditto.
14227 (vec_interleave_lowv4hi): Format change.
14228 (vec_interleave_highv4hi): Ditto.
14229 (mix2_even): Rename from mix2_r, add endian check.
14230 (mix2_odd): Rename from mux2_l, add endian check.
14231 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
14232 (vec_extract_evenodd_helper): Format change.
14233 (vec_extract_evenv4hi): Remove endian check.
14234 (vec_extract_oddv4hi): Remove endian check.
14235 (vec_interleave_lowv2si): Format change.
14236 (vec_interleave_highv2si): Format change.
14237 (vec_initv2si): Remove endian check.
14238 (vecinit_v2si): Add endian check.
14239 (reduc_splus_v2sf): Add endian check.
14240 (reduc_smax_v2sf): Ditto.
14241 (reduc_smin_v2sf): Ditto.
14242 (vec_initv2sf): Remove endian check.
14243 (fpack): Add endian check.
14244 (fswap): Add endian check.
14245 (vec_interleave_highv2sf): Add endian check.
14246 (vec_interleave_lowv2sf): Add endian check.
14247 (fmix_lr): Add endian check.
14248 (vec_setv2sf): Format change.
14249 (*vec_extractv2sf_0_be): Use shift to extract operand.
14250 (*vec_extractv2sf_1_be): New.
14251 (vec_pack_trunc_v4hi): Add endian check.
14252 (vec_pack_trunc_v2si): Format change.
14253
14254 2011-02-04 Jakub Jelinek <jakub@redhat.com>
14255
14256 PR inline-asm/23200
14257 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
14258 do bb, locus and block comparison and disallow loads if it is not set.
14259 (stmt_is_replaceable_p): New function.
14260 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
14261 callers.
14262 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
14263 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
14264 SSA_NAME_DEF_STMT.
14265 * tree-flow.h (stmt_is_replaceable_p): New prototype.
14266
14267 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14268
14269 * config/rs6000/xilinx.opt: New.
14270 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
14271
14272 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14273
14274 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
14275
14276 2011-02-03 Anatoly Sokolov <aesok@post.ru>
14277
14278 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
14279 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
14280 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
14281 secondary_reload_info, xtensa_secondary_reload): Remove.
14282 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
14283 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
14284 (xtensa_preferred_reload_class): Make static. Change return and
14285 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
14286 Use CONST_DOUBLE_P predicate.
14287 (xtensa_preferred_output_reload_class): New function.
14288 (xtensa_secondary_reload): Make static.
14289
14290 2011-02-03 Joseph Myers <joseph@codesourcery.com>
14291
14292 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
14293 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
14294 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
14295
14296 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14297
14298 PR middle-end/31490
14299 * output.h (SECTION_RELRO): Define.
14300 (SECTION_MACH_DEP): Adjust.
14301 (get_variable_section): New prototype.
14302 * varpool.c (varpool_finalize_named_section_flags): New function.
14303 (varpool_assemble_pending_decls): Call it.
14304 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
14305 * cgraphunit.c (cgraph_output_in_order): Call
14306 varpool_finalize_named_section_flags.
14307 * varasm.c (get_section): Allow section flags conflicts between
14308 relro and read-only sections if the section hasn't been declared yet.
14309 Set SECTION_OVERRIDE after diagnosing section type conflict.
14310 (get_variable_section): No longer static.
14311 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
14312 readonly sections that need relocations.
14313 (decl_readonly_section_1): New function.
14314 (decl_readonly_section): Use it.
14315
14316 Revert:
14317 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
14318 Steve Ellcey <sje@cup.hp.com>
14319
14320 PR middle-end/31490
14321 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
14322 if section attribute used.
14323
14324 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14325
14326 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
14327 * config/darwin.c (SECTION_NO_ANCHOR): Define.
14328 (darwin_init_sections): Remove assertion.
14329
14330 2011-02-03 Nick Clifton <nickc@redhat.com>
14331
14332 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
14333 lt and ge.
14334 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
14335 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
14336 instead of "n" and "pz".
14337 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
14338 CC_FLAG_S.
14339
14340 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14341
14342 PR target/47312
14343 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
14344 fma, expand FMA_EXPR as fma{,f,l} call.
14345
14346 PR lto/47274
14347 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
14348 copy them into a unsigned char variable and pass address of it to
14349 lto_output_data_stream.
14350
14351 PR target/47564
14352 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
14353 around backend_init_target and lang_dependent_init_target calls.
14354 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
14355 (verify_cgraph_node): Don't call set_cfun here. Use
14356 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
14357 Set error_found for incorrectly represented calls to thunks.
14358
14359 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
14360
14361 PR debug/43092
14362 PR rtl-optimization/43494
14363 * rtl.h (for_each_inc_dec_fn): New type.
14364 (for_each_inc_dec): Declare.
14365 * rtlanal.c (struct for_each_inc_dec_ops): New type.
14366 (for_each_inc_dec_find_inc_dec): New fn.
14367 (for_each_inc_dec_find_mem): New fn.
14368 (for_each_inc_dec): New fn.
14369 * dse.c (struct insn_size): Remove.
14370 (replace_inc_dec, replace_inc_dec_mem): Remove.
14371 (emit_inc_dec_insn_before): New fn.
14372 (check_for_inc_dec): Use it, along with for_each_inc_dec.
14373 (canon_address): Pass mem modes to cselib_lookup.
14374 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
14375 (cselib_lookup_from_insn): Likewise.
14376 (cselib_subst_to_values): Likewise.
14377 * cselib.c (find_slot_memmode): New var.
14378 (cselib_find_slot): New fn. Use it instead of
14379 htab_find_slot_with_hash everywhere.
14380 (entry_and_rtx_equal_p): Use find_slot_memmode.
14381 (autoinc_split): New fn.
14382 (rtx_equal_for_cselib_p): Rename and implement in terms of...
14383 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
14384 Deal with autoinc. Special-case recursion into MEMs.
14385 (cselib_hash_rtx): Likewise.
14386 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
14387 address and MEM modes.
14388 (cselib_subst_to_values): Add memmode, pass it on.
14389 Deal with autoinc.
14390 (cselib_lookup): Add memmode argument, pass it on.
14391 (cselib_lookup_from_insn): Add memmode.
14392 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
14393 (struct cselib_record_autoinc_data): New.
14394 (cselib_record_autoinc_cb): New fn.
14395 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
14396 mode to cselib_lookup. Reset autoinced REGs here instead of...
14397 (cselib_process_insn): ... here.
14398 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
14399 to cselib_lookup.
14400 (add_uses): Likewise, also to cselib_subst_to_values.
14401 (add_stores): Likewise.
14402 * sched-deps.c (add_insn_mem_dependence): Pass mode to
14403 cselib_subst_to_values.
14404 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
14405 * gcse.c (do_local_cprop): Adjusted.
14406 * postreload.c (reload_cse_simplify_set): Adjusted.
14407 (reload_cse_simplify_operands): Adjusted.
14408 * sel-sched-dump (debug_mem_addr_value): Pass mode.
14409
14410 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
14411
14412 PR tree-optimization/45122
14413 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
14414 unsafe assumptions when there's more than one loop exit.
14415
14416 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
14417
14418 PR target/47272
14419 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
14420 Document using vector double with the load/store builtins, and
14421 that the load/store builtins always use Altivec instructions.
14422
14423 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
14424 to use altivec memory instructions, even on VSX.
14425 (vector_altivec_store_<mode>): Ditto.
14426
14427 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
14428 function.
14429
14430 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14431 V2DF, V2DI support to load/store overloaded builtins.
14432
14433 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
14434 altivec load/store builtins for V2DF/V2DI types.
14435
14436 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
14437 set avoid indexed addresses on power6 if -maltivec.
14438 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
14439 vector_altivec_load/vector_altivec_store builtins.
14440 (altivec_expand_st_builtin): Ditto.
14441 (altivec_expand_builtin): Add VSX memory builtins.
14442 (rs6000_init_builtins): Add V2DI types to internal types.
14443 (altivec_init_builtins): Add support for V2DF/V2DI altivec
14444 load/store builtins.
14445 (rs6000_address_for_altivec): Insure memory address is appropriate
14446 for Altivec.
14447
14448 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
14449 vec_vsx_ld and vec_vsx_st.
14450 (vsx_store_<mode>): Ditto.
14451
14452 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
14453 variables to hold long long types for VSX vector memory builtins.
14454 (RS6000_BTI_unsigned_long_long): Ditto.
14455 (long_long_integer_type_internal_node): Ditti.
14456 (long_long_unsigned_type_internal_node): Ditti.
14457
14458 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
14459 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
14460 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
14461
14462 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
14463 short cuts.
14464 (vec_vsx_st): Ditto.
14465
14466 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14467
14468 * config/pa/pa-hpux10.opt: New.
14469 * config/hpux11.opt (pthread): New Driver option.
14470 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
14471 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
14472
14473 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14474
14475 * config/ia64/vms.opt: New.
14476 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
14477
14478 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
14479
14480 PR target/47580
14481 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
14482 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
14483 generator functions.
14484 (vsx_floatuns<VSi><mode>2): Ditto.
14485 (vsx_fix_trunc<mode><VSi>2): Ditto.
14486 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
14487
14488 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14489
14490 * config/i386/djgpp.opt (posix): New Driver option.
14491
14492 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
14493
14494 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
14495 Move to the unsupported targets list.
14496
14497 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
14498
14499 PR rtl-optimization/47525
14500 * df-scan.c: Update copyright years.
14501 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
14502 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
14503
14504 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14505
14506 * config/i386/sysv4.h (TARGET_VERSION): Remove.
14507 (SUBTARGET_RETURN_IN_MEMORY): Remove.
14508 (ASM_OUTPUT_ASCII): Remove.
14509 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
14510
14511 2011-02-02 Jeff Law <law@redhat.com>
14512
14513 PR middle-end/47543
14514 * reload.c (find_reloads_address): Handle reg+d address where both
14515 components are invalid by reloading the entire address.
14516
14517 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
14518 Richard Guenther <rguenther@suse.de>
14519
14520 PR tree-optimization/40979
14521 PR bootstrap/47044
14522 * passes.c (init_optimization_passes): After LIM call copy_prop
14523 and DCE to clean up.
14524 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
14525
14526 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
14527
14528 PR tree-optimization/47576
14529 PR tree-optimization/47555
14530 * doc/invoke.texi (scev-max-expr-complexity): Documented.
14531 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14532 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
14533 * tree-scalar-evolution.c (follow_ssa_edge): Use
14534 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
14535
14536 2011-02-02 Richard Guenther <rguenther@suse.de>
14537
14538 PR tree-optimization/47566
14539 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
14540
14541 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
14542
14543 PR debug/47106
14544 PR debug/47402
14545 * tree-inline.c (declare_return_variable): Remove unused caller
14546 variable.
14547
14548 PR debug/47106
14549 PR debug/47402
14550 * tree-flow-inline.h (clear_is_used, is_used_p): New.
14551 * cfgexpand.c (account_used_vars_for_block): Use them.
14552 * tree-nrv.c (tree_nrv): Likewise.
14553 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
14554 (dump_scope_block): Likewise.
14555 (remove_unused_locals): Likewise.
14556
14557 PR debug/47106
14558 PR debug/47402
14559 * tree-inline.c (declare_return_variable): Add result decl to
14560 local decls only once.
14561 * gimple-low.c (record_vars_into): Mark newly-created variables
14562 as referenced.
14563
14564 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
14565
14566 PR debug/47498
14567 PR debug/47501
14568 PR debug/45136
14569 PR debug/45130
14570 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14571 debug insns.
14572 (no_real_insns_p, schedule_block, set_priorities): Drop special
14573 treatment of boundary debug insns.
14574 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14575 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
14576 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14577 (BOUNDARY_DEBUG_INSN_P): Likewise.
14578 (SCHEDULE_DEBUG_INSN_P): Likewise.
14579 * sched-rgn.c (init_ready_list): Drop special treatment of
14580 boundary debug insns.
14581 * final.c (rest_of_clean_state): Clear notes' BB.
14582
14583 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14584
14585 * config/openbsd.opt (assert=): New Driver option.
14586
14587 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14588
14589 * config/i386/nto.opt: New.
14590 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
14591
14592 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14593
14594 * config/i386/netware.opt: New.
14595 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
14596
14597 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14598
14599 * config/interix.opt (posix): New Driver option.
14600
14601 2011-02-01 DJ Delorie <dj@redhat.com>
14602
14603 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
14604
14605 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
14606 class for A0/A1.
14607
14608 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
14609
14610 PR tree-optimization/47561
14611 * toplev.c (process_options): Print the Graphite flags. Add
14612 flag_loop_flatten to the list of options requiring Graphite.
14613
14614 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14615
14616 * config/i386/cygming.opt (posix): New Driver option.
14617
14618 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14619
14620 * config/arm/vxworks.opt: New.
14621 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
14622
14623 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14624
14625 * config/alpha/elf.opt: New.
14626 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
14627 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
14628
14629 2011-02-01 Richard Guenther <rguenther@suse.de>
14630
14631 PR tree-optimization/47559
14632 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
14633 store-motion on references that can throw.
14634
14635 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
14636
14637 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
14638 * tree-pass.h (TDF_CSELIB): New macro.
14639 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
14640 cselib_lookup): Check for it rather than for TDF_DETAILS.
14641
14642 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
14643
14644 PR driver/47547
14645 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
14646 is HOST_BIT_BUCKET.
14647
14648 * opts.c (finish_options): Don't add x_aux_base_name if it is
14649 HOST_BIT_BUCKET.
14650
14651 2011-02-01 Richard Guenther <rguenther@suse.de>
14652
14653 PR tree-optimization/47555
14654 Revert
14655 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
14656
14657 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14658
14659 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
14660
14661 PR gcc/46692
14662 * config/lm32/t-lm32: Add multilib for all CPU options.
14663
14664 2011-02-01 Richard Guenther <rguenther@suse.de>
14665
14666 PR tree-optimization/47541
14667 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
14668 sure to have a field at offset zero.
14669
14670 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14671
14672 * config/arc/arc.opt (EB, EL): New Driver options.
14673
14674 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14675
14676 * config/alpha/osf5.opt: New.
14677 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
14678
14679 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14680
14681 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
14682
14683 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
14684
14685 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
14686 -floop-interchange.
14687 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
14688 is an alias of -floop-interchange and that it requires the
14689 Graphite infrastructure.
14690 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
14691 flag_loop_interchange based on the value of flag_tree_loop_linear.
14692
14693 2011-01-31 Jakub Jelinek <jakub@redhat.com>
14694 Richard Guenther <rguenther@suse.de>
14695
14696 PR tree-optimization/47538
14697 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
14698 type instead of r1type, except for comparisons. For right
14699 shifts and comparisons punt if there are mismatches in
14700 sizetype vs. non-sizetype types.
14701
14702 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14703
14704 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14705 avx_runtime.
14706
14707 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14708
14709 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
14710 version number.
14711 * configure: Regenerate.
14712
14713 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14714
14715 * configure.ac (gcc_cv_ld_static_option): Define.
14716 (gcc_cv_ld_dynamic_option): Define.
14717 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
14718 instead.
14719 (HAVE_LD_STATIC_DYNAMIC): Update message.
14720 (LD_STATIC_OPTION): Define.
14721 (LD_DYNAMIC_OPTION): Define.
14722 * configure: Regenerate.
14723 * config.in: Regenerate.
14724 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
14725 HAVE_LD_STATIC_DYNAMIC]: Use them.
14726
14727 2011-01-31 Nick Clifton <nickc@redhat.com>
14728
14729 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
14730 registers inside interrupt handlers if the handler is not a leaf
14731 function.
14732
14733 2011-01-31 Nick Clifton <nickc@redhat.com>
14734
14735 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
14736 reg_renumber returning an INVALID_REGNUM.
14737
14738 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
14739
14740 PR libgcj/44341
14741 * doc/install.texi: Document host options discarded when cross
14742 configuring target libraries.
14743
14744 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
14745
14746 Reverted:
14747 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14748 PR debug/45136
14749 PR debug/45130
14750 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14751 debug insns.
14752 (no_real_insns_p, schedule_block, set_priorities): Drop special
14753 treatment of boundary debug insns.
14754 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14755 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14756 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14757 (BOUNDARY_DEBUG_INSN_P): Likewise.
14758 (SCHEDULE_DEBUG_INSN_P): Likewise.
14759 * sched-rgn.c (init_ready_list): Drop special treatment of
14760 boundary debug insns.
14761 * final.c (rest_of_clean-state): Clear notes' BB.
14762
14763 2011-01-31 Alan Modra <amodra@gmail.com>
14764
14765 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
14766 toc relative expressions as we do in print_operand_address.
14767
14768 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
14769
14770 * doc/extend.texi: Follow spelling conventions.
14771 * doc/invoke.texi: Fix a typo.
14772
14773 2011-01-30 Joseph Myers <joseph@codesourcery.com>
14774
14775 * config/hpux11.opt: New.
14776 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
14777 ia64*-*-hpux*): Use hpux11.opt.
14778
14779 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
14780
14781 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
14782 to tmake_file.
14783
14784 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14785
14786 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
14787 support sites.
14788
14789 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14790
14791 * doc/install.texi (Binaries): Remove outdated reference for
14792 Motorola 68HC11/68HC12 downloads.
14793
14794 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14795
14796 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
14797 Drepper's paper.
14798
14799 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
14800
14801 PR bootstrap/47147
14802 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
14803 used by NetBSD.
14804
14805 2011-01-28 Ahmad Sharif <asharif@google.com>
14806
14807 * value-prof.c (check_counter): Corrected error message.
14808
14809 2011-01-29 Jie Zhang <jie@codesourcery.com>
14810
14811 * config/arm/arm.c (arm_legitimize_reload_address): New.
14812 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
14813 arm_legitimize_reload_address.
14814 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
14815
14816 2011-01-28 Ian Lance Taylor <iant@google.com>
14817
14818 * godump.c (go_define): Ignore macros whose definitions include
14819 two adjacent operands.
14820
14821 2011-01-28 Jakub Jelinek <jakub@redhat.com>
14822
14823 PR target/42894
14824 * varasm.c (force_const_mem): Store copy of x in desc->constant
14825 instead of x itself.
14826 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
14827 itself into REG_EQUAL note.
14828
14829 2011-01-28 Joseph Myers <joseph@codesourcery.com>
14830
14831 * config/freebsd.opt (posix, rdynamic): New Driver options.
14832
14833 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14834
14835 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
14836 -Bstatic/-Bdynamic.
14837 * configure: Regenerate.
14838
14839 2011-01-27 Joseph Myers <joseph@codesourcery.com>
14840
14841 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
14842 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
14843
14844 2011-01-27 Anatoly Sokolov <aesok@post.ru>
14845
14846 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
14847 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
14848 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
14849 (s390_preferred_reload_class): Make static. Change return and
14850 'rclass' argument type to reg_class_t.
14851
14852 2011-01-27 Jan Hubicka <jh@suse.cz>
14853
14854 PR middle-end/46949
14855 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
14856 (process_function_and_variable_attributes): Check defined weakrefs.
14857
14858 2011-01-27 Martin Jambor <mjambor@suse.cz>
14859
14860 PR tree-optimization/47228
14861 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
14862 build_ref_for_offset.
14863
14864 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14865
14866 * config/spu/spu-elf.h (ASM_SPEC): Remove.
14867
14868 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
14869
14870 PR rtl-optimization/46856
14871 * postreload.c (reload_combine_recognize_const_pattern): Do not
14872 separate cc0 setter and user on cc0 targets.
14873
14874 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
14875
14876 PR c/43082
14877 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
14878 passed a VOID_TYPE expression, immediately emit an error and
14879 return error_mark_node.
14880
14881 2011-01-26 Jeff Law <law@redhat.com>
14882
14883 PR rtl-optimization/47464
14884 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
14885 rather than may_trap_p as needed.
14886
14887 2011-01-26 DJ Delorie <dj@redhat.com>
14888
14889 PR rtl-optimization/46878
14890 * combine.c (insn_a_feeds_b): Check for the implicit cc0
14891 setter/user dependency as well.
14892
14893 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
14894
14895 PR rtl-optimization/44469
14896 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
14897 after removing trivially dead basic blocks.
14898
14899 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14900
14901 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
14902 * config/frv/frv.h (LINK_SPEC): Likewise.
14903 * config/i386/netware.h (LINK_SPEC): Likewise.
14904 * config/m68k/linux.h (ASM_SPEC): Likewise.
14905 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
14906 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14907 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14908 * config/sparc/linux.h (ASM_SPEC): Likewise.
14909 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14910 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14911
14912 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14913
14914 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
14915 * config/frv/frv.h (ASM_SPEC): Likewise.
14916 * config/m68k/linux.h (ASM_SPEC): Likewise.
14917 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14918 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
14919 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14920 * config/sparc/linux.h (ASM_SPEC): Likewise.
14921 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14922 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14923
14924 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14925
14926 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
14927 * config/frv/frv.h (LINK_SPEC): Likewise.
14928 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14929
14930 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14931
14932 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
14933 * config/frv/frv.h (ASM_SPEC): Likewise.
14934 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
14935 * config/m68k/linux.h (ASM_SPEC): Likewise.
14936 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14937 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
14938 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14939 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
14940 * config/sparc/linux.h (ASM_SPEC): Likewise.
14941 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14942 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14943 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
14944
14945 2011-01-26 Steve Ellcey <sje@cup.hp.com>
14946
14947 PR target/46997
14948 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
14949 (*mux2): Ditto.
14950 (vec_extract_evenodd_help): Ditto.
14951 (vec_extract_evenv4hi): Ditto.
14952 (vec_extract_oddv4hi): Ditto.
14953 (vec_interleave_lowv2si): Ditto.
14954 (vec_interleave_highv2si): Ditto.
14955 (vec_extract_evenv2si): Ditto.
14956 (vec_extract_oddv2si: Ditto.
14957 (vec_pack_trunc_v2si): Ditto.
14958
14959 2011-01-22 Jan Hubicka <jh@suse.cz>
14960
14961 PR target/47237
14962 * cgraph.h (cgraph_local_info): New field can_change_signature.
14963 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
14964 signature can change.
14965 (ipcp_estimate_growth): Call sequence simplify only if calle signature
14966 can change.
14967 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
14968 (cgraph_function_versioning): We can not change signature of functions
14969 that don't allow that.
14970 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
14971 (lto_input_node): Likewise.
14972 * ipa-inline.c (compute_inline_parameters): Compute
14973 local.can_change_signature.
14974 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
14975 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
14976 functions that can not change signature.
14977 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
14978 init_cumulative_args): Do not use local calling conventions
14979 for functions that can not change signature.
14980
14981 2011-01-22 Jan Hubicka <jh@suse.cz>
14982
14983 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
14984
14985 2011-01-26 Richard Guenther <rguenther@suse.de>
14986
14987 PR tree-optimization/47190
14988 * cgraphunit.c (process_common_attributes): New function.
14989 (process_function_and_variable_attributes): Use it.
14990
14991 2011-01-26 Richard Guenther <rguenther@suse.de>
14992
14993 PR lto/47423
14994 * cgraphbuild.c (record_eh_tables): Record reference to personality
14995 function.
14996
14997 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
14998
14999 PR debug/45454
15000 * sel-sched.c (moveup_expr): Don't let debug insns prevent
15001 non-debug insns from moving up.
15002
15003 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
15004
15005 PR target/40125
15006 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
15007 t-dlldir{,-x} fragment for build and add it to tmake_file.
15008 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
15009 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
15010 * config/i386/t-dlldir: New file.
15011 (SHLIB_DLLDIR): Define.
15012 * config/i386/t-dlldir-x: New file.
15013 (SHLIB_DLLDIR): Define.
15014 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
15015 (SHLIB_INSTALL): Use it.
15016
15017 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
15018
15019 PR target/47246
15020 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
15021 lower bound of the allowed Thumb-2 coprocessor load/store
15022 index range to -256. Add explaining comment.
15023
15024 2011-01-25 Ian Lance Taylor <iant@google.com>
15025
15026 * godump.c (go_define): Improve lexing of macro expansion to only
15027 accept expressions which match Go spec.
15028
15029 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
15030
15031 PR c++/43601
15032 * tree.c (handle_dll_attribute): Handle it.
15033 * doc/extend.texi (@item dllexport): Mention it.
15034 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
15035
15036 2011-01-25 Ian Lance Taylor <iant@google.com>
15037
15038 PR tree-optimization/26854
15039 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
15040 (decl_jump_unsafe): Move higher in file, with no other change.
15041 (bind): Set has_jump_unsafe_decl if appropriate.
15042 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
15043 (check_earlier_gotos): Likewise.
15044 (c_check_switch_jump_warnings): Likewise.
15045
15046 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
15047
15048 * doc/invoke.texi (Warning Options): Add missing hyphen.
15049 (-fprofile-dir): Minor grammatical fixes.
15050 (-fbranch-probabilities): Likewise.
15051
15052 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
15053
15054 PR debug/45136
15055 PR debug/45130
15056 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
15057 debug insns.
15058 (no_real_insns_p, schedule_block, set_priorities): Drop special
15059 treatment of boundary debug insns.
15060 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
15061 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
15062 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
15063 (BOUNDARY_DEBUG_INSN_P): Likewise.
15064 (SCHEDULE_DEBUG_INSN_P): Likewise.
15065 * sched-rgn.c (init_ready_list): Drop special treatment of
15066 boundary debug insns.
15067 * final.c (rest_of_clean-state): Clear notes' BB.
15068
15069 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15070
15071 * Makefile.in (LAMBDA_H): Removed.
15072 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
15073 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
15074 lambda-trans.o, and tree-loop-linear.o.
15075 (lto-symtab.o): Remove dependence on LAMBDA_H.
15076 (tree-loop-linear.o): Remove rule.
15077 (lambda-mat.o): Same.
15078 (lambda-trans.o): Same.
15079 (lambda-code.o): Same.
15080 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
15081 (tree-vect-slp.o): Same.
15082 * hwint.h (gcd): Moved here.
15083 (least_common_multiple): Same.
15084 * lambda-code.c: Removed.
15085 * lambda-mat.c: Removed.
15086 * lambda-trans.c: Removed.
15087 * lambda.h: Removed.
15088 * tree-loop-linear.c: Removed.
15089 * lto-symtab.c: Do not include lambda.h.
15090 * omega.c (gcd): Removed.
15091 * passes.c (init_optimization_passes): Remove pass_linear_transform.
15092 * tree-data-ref.c (print_lambda_vector): Moved here.
15093 (lambda_vector_copy): Same.
15094 (lambda_matrix_copy): Same.
15095 (lambda_matrix_id): Same.
15096 (lambda_vector_first_nz): Same.
15097 (lambda_matrix_row_add): Same.
15098 (lambda_matrix_row_exchange): Same.
15099 (lambda_vector_mult_const): Same.
15100 (lambda_vector_negate): Same.
15101 (lambda_matrix_row_negate): Same.
15102 (lambda_vector_equal): Same.
15103 (lambda_matrix_right_hermite): Same.
15104 * tree-data-ref.h: Do not include lambda.h.
15105 (lambda_vector): Moved here.
15106 (lambda_matrix): Same.
15107 (dependence_level): Same.
15108 (lambda_transform_legal_p): Removed declaration.
15109 (lambda_collect_parameters): Same.
15110 (lambda_compute_access_matrices): Same.
15111 (lambda_vector_gcd): Same.
15112 (lambda_vector_new): Same.
15113 (lambda_vector_clear): Same.
15114 (lambda_vector_lexico_pos): Same.
15115 (lambda_vector_zerop): Same.
15116 (lambda_matrix_new): Same.
15117 * tree-flow.h (least_common_multiple): Removed declaration.
15118 * tree-parloops.c (lambda_trans_matrix): Moved here.
15119 (LTM_MATRIX): Same.
15120 (LTM_ROWSIZE): Same.
15121 (LTM_COLSIZE): Same.
15122 (LTM_DENOMINATOR): Same.
15123 (lambda_trans_matrix_new): Same.
15124 (lambda_matrix_vector_mult): Same.
15125 (lambda_transform_legal_p): Same.
15126 * tree-pass.h (pass_linear_transform): Removed declaration.
15127 * tree-ssa-loop.c (tree_linear_transform): Removed.
15128 (gate_tree_linear_transform): Removed.
15129 (pass_linear_transform): Removed.
15130 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
15131 flag_loop_interchange.
15132
15133 2011-01-25 Jakub Jelinek <jakub@redhat.com>
15134
15135 PR tree-optimization/47265
15136 PR tree-optimization/47443
15137 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
15138 if name still has some uses.
15139
15140 2011-01-25 Martin Jambor <mjambor@suse.cz>
15141
15142 PR tree-optimization/47382
15143 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
15144 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
15145
15146 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
15147
15148 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
15149 sjlj_except_unwind_info.
15150
15151 2011-01-25 Richard Guenther <rguenther@suse.de>
15152
15153 PR tree-optimization/47426
15154 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
15155 visible functions results escape.
15156
15157 2011-01-25 Jakub Jelinek <jakub@redhat.com>
15158
15159 PR target/45701
15160 * config/arm/arm.c (any_sibcall_uses_r3): New function.
15161 (arm_get_frame_offsets): Use it.
15162
15163 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15164 Jakub Jelinek <jakub@redhat.com>
15165
15166 PR tree-optimization/47271
15167 * tree-if-conv.c (bb_postdominates_preds): New.
15168 (if_convertible_bb_p): Call bb_postdominates_preds.
15169 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
15170 (predicate_scalar_phi): Call bb_postdominates_preds.
15171
15172 2011-01-25 Nick Clifton <nickc@redhat.com>
15173
15174 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
15175 * config/rx/rx.c (rx_function_value): Likewise.
15176 (rx_promote_function_mode): Likewise.
15177 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
15178 in order to make it legitimate.
15179 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
15180 make sure that the first operand is the same as the result register.
15181 (addsi3_unspec): Delete.
15182 (subdi3): Do not accept immediate operands.
15183 (subdi3_internal): Likewise.
15184
15185 2011-01-25 Jeff Law <law@redhat.com>
15186
15187 PR rtl-optimization/37273
15188 * ira-costs.c (scan_one_insn): Detect constants living in memory and
15189 handle them like argument loads from stack slots. Do not double
15190 count memory for memory constants and argument loads from stack slots.
15191
15192 2011-01-25 Jakub Jelinek <jakub@redhat.com>
15193
15194 PR tree-optimization/47427
15195 PR tree-optimization/47428
15196 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
15197 coalesce if the new root var would be TREE_READONLY.
15198
15199 2011-01-25 Richard Guenther <rguenther@suse.de>
15200
15201 PR middle-end/47414
15202 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
15203 correct type for TBAA.
15204
15205 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15206
15207 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
15208 (close_phi_written_to_memory): Call for_each_index with
15209 dr_indices_valid_in_loop.
15210
15211 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15212
15213 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
15214 when it is initialized.
15215
15216 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15217
15218 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
15219 call to graphite_find_data_references_in_stmt.
15220 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
15221 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
15222 call to graphite_find_data_references_in_stmt.
15223 (analyze_drs_in_stmts): Same.
15224 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
15225 in which the scalar analysis of indices is performed.
15226 (create_data_ref): Same. Update call to dr_analyze_indices.
15227 (find_data_references_in_stmt): Update call to create_data_ref.
15228 (graphite_find_data_references_in_stmt): Same.
15229 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
15230 declaration.
15231 (create_data_ref): Same.
15232 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
15233 call to create_data_ref.
15234
15235 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15236
15237 * graphite-sese-to-poly.c (build_poly_scop): Move
15238 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
15239
15240 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15241
15242 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
15243 VAR_DECL, PARM_DECL, and RESULT_DECL.
15244
15245 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15246
15247 * graphite-dependences.c (reduction_dr_1): Allow several reductions
15248 in a reduction PBB.
15249 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
15250 that have already been marked as PBB_IS_REDUCTION.
15251
15252 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15253
15254 * graphite-scop-detection.c (same_close_phi_node): New.
15255 (remove_duplicate_close_phi): New.
15256 (make_close_phi_nodes_unique): New.
15257 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
15258
15259 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15260
15261 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
15262 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
15263 of both data references to be the same.
15264
15265 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15266
15267 * graphite-dependences.c (build_lexicographical_constraint): Remove
15268 the gdim parameter.
15269 (build_lexicographical_constraint): Adjust call to
15270 ppl_powerset_is_empty.
15271 (dependence_polyhedron): Same.
15272 (graphite_legal_transform_dr): Same.
15273 (graphite_carried_dependence_level_k): Same.
15274 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
15275 parameter.
15276 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
15277
15278 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15279
15280 * graphite-sese-to-poly.c
15281 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
15282 (close_phi_written_to_memory): New.
15283 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
15284 and unshare_expr.
15285
15286 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15287
15288 * doc/install.texi: Update the expected version number of PPL to 0.11.
15289 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
15290 #if PPL_VERSION_MINOR < 11.
15291
15292 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15293
15294 * graphite-dependences.c: Include graphite-cloog-util.h.
15295 (new_poly_ddr): Inlined into dependence_polyhedron.
15296 (free_poly_ddr): Moved close by new_poly_ddr.
15297 (dependence_polyhedron_1): Renamed dependence_polyhedron.
15298 Early return NULL when ppl_powerset_is_empty returns true.
15299 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
15300 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
15301 (graphite_legal_transform_dr): Call new_poly_ddr.
15302 (graphite_carried_dependence_level_k): Same.
15303 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
15304 (dot_transformed_deps_stmt_1): Removed.
15305 (dot_deps_stmt_1): Call dot_deps_stmt_2.
15306 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
15307 (dot_deps_1): Call dot_deps_2.
15308 * Makefile.in (graphite-dependences.o): Add missing dependence on
15309 graphite-cloog-util.h.
15310
15311 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15312
15313 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
15314 (build_lexicographical_constraint): Same.
15315 (dependence_polyhedron_1): Same.
15316 (graphite_legal_transform_dr): Same.
15317 (graphite_carried_dependence_level_k): Same.
15318 * graphite-ppl.c (ppl_powerset_is_empty): New.
15319 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
15320 * tree-data-ref.c (dump_data_reference): Print the basic block index.
15321
15322 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15323
15324 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
15325 the "a followed by b" relation and document it.
15326
15327 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15328
15329 * graphite-dependences.c (build_lexicographical_constraint): Stop the
15330 iteration when the bag of constraints is empty.
15331
15332 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15333
15334 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
15335
15336 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15337
15338 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
15339 nest and two loop depths as parameters.
15340 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
15341 lst_perfect_nestify.
15342
15343 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15344
15345 * graphite-dependences.c (print_pddr): Call
15346 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
15347
15348 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15349
15350 * graphite-ppl.c (debug_gmp_value): New.
15351 * graphite-ppl.h (debug_gmp_value): Declared.
15352
15353 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
15354
15355 * doc/install.texi: Document availability of cloog-0.16.
15356
15357 2011-01-25 Vladimir Kargov <kargov@gmail.com>
15358
15359 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
15360 invalid postdominance info.
15361
15362 2011-01-24 Jan Hubicka <jh@suse.cz>
15363
15364 PR c/21659
15365 * doc/extend.texi (weak pragma): Drop claim that it must
15366 appear before definition.
15367 * varasm.c (merge_weak, declare_weak): Only sanity check
15368 that DECL is not output at a time it is declared weak.
15369
15370 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
15371
15372 * machmode.def: Fixed comments.
15373
15374 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
15375
15376 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
15377
15378 2011-01-24 Paul Koning <ni1d@arrl.net>
15379
15380 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
15381 WORDS_BIG_ENDIAN.
15382
15383 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
15384
15385 PR target/46519
15386 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
15387 (block_info): Add scanned and prev.
15388 (move_or_delete_vzeroupper_2): Return if the basic block
15389 has been scanned and the upper 128bit state is unchanged
15390 from the last scan.
15391 (move_or_delete_vzeroupper_1): Return true if the exit
15392 state is changed.
15393 (move_or_delete_vzeroupper): Visit basic blocks using the
15394 work-list based algorithm based on vt_find_locations in
15395 var-tracking.c.
15396
15397 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
15398
15399 2011-01-24 Nick Clifton <nickc@redhat.com>
15400
15401 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
15402 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
15403 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
15404 then define __v850e1__.
15405 * doc/invoke.texi: Document -mv850es.
15406
15407 2011-01-24 Richard Henderson <rth@redhat.com>
15408
15409 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
15410 compound unordered comparisons.
15411 * config/rx/rx.c (rx_split_fp_compare): Remove.
15412 * config/rx/rx-protos.h: Update.
15413 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
15414 (cbranchsf4): Don't call rx_split_fp_compare.
15415 (*cbranchsf4): Use rx_split_cbranch.
15416 (*cmpsf): Don't accept "i" constraint.
15417 (*conditional_branch): Only valid after reload.
15418 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
15419
15420 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
15421
15422 PR target/47385
15423 * config/rs6000/altivec.md (vector constant splitters): Add
15424 support for creating vector single precision constants if -mvsx is
15425 used and we would create the constant using Altivec primitives.
15426
15427 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
15428 Richard Sandiford <rdsandiford@googlemail.com>
15429
15430 PR rtl-optimization/47166
15431 * reload1.c (emit_reload_insns): Disable the spill_reg_store
15432 mechanism for PRE_MODIFY and POST_MODIFY.
15433 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
15434 reloadreg.
15435
15436 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
15437
15438 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
15439
15440 2011-01-22 Jan Hubicka <jh@suse.cz>
15441
15442 PR lto/47333
15443 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
15444
15445 2011-01-22 Jan Hubicka <jh@suse.cz>
15446
15447 PR tree-optimization/43884
15448 PR lto/44334
15449 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
15450 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
15451
15452 2011-01-22 Anatoly Sokolov <aesok@post.ru>
15453
15454 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15455 * config/s390/s390.c (s390_register_move_cost,
15456 s390_memory_move_cost): New.
15457 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
15458
15459 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15460
15461 PR middle-end/47401
15462 * except.c (sjlj_assign_call_site_values): Move setting the
15463 crtl->uses_eh_lsda flag to ...
15464 (sjlj_mark_call_sites): ... here.
15465 (sjlj_emit_function_enter): Support NULL dispatch label.
15466 (sjlj_build_landing_pads): In a function with no landing pads
15467 that still has must-not-throw regions, generate code to register
15468 a personality function with empty LSDA.
15469
15470 2011-01-21 Richard Henderson <rth@redhat.com>
15471
15472 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
15473
15474 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
15475
15476 * compare-elim.c: New file.
15477 * Makefile.in (OBJS-common): Add it.
15478 (compare-elim.o): New.
15479 * common.opt (fcompare-elim): New.
15480 * opts.c (default_options_table): Add OPT_fcompare_elim.
15481 * tree-pass.h (pass_compare_elim_after_reload): New.
15482 * passes.c (init_optimization_passes): Add it.
15483 * recog.h: Protect against re-inclusion.
15484 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
15485 * doc/invoke.texi (-fcompare-elim): Document it.
15486 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
15487 * doc/tm.texi: Rebuild.
15488
15489 2011-01-22 Nick Clifton <nickc@redhat.com>
15490
15491 * config/rx/rx.md (cstoresf4): Pass comparison operator to
15492 rx_split_fp_compare.
15493
15494 2011-01-22 Nick Clifton <nickc@redhat.com>
15495
15496 * config/rx/rx.md (UNSPEC_CONST): New.
15497 (deallocate_and_return): Wrap the amount popped off the stack in
15498 an UNSPEC_CONST in order to stop it being rejected by
15499 -mmax-constant-size.
15500 (pop_and_return): Add a "(return)" rtx.
15501 (call): Drop the immediate operand.
15502 (call_internal): Likewise.
15503 (call_value): Likewise.
15504 (call_value_internal): Likewise.
15505 (sibcall_internal): Likewise.
15506 (sibcall_value_internal): Likewise.
15507 (sibcall): Likewise. Generate an explicit call using
15508 sibcall_internal.
15509 (sibcall_value): Likewise.
15510 (mov<>): FAIL if a constant operand is not legitimate.
15511 (addsi3_unpsec): New pattern.
15512
15513 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
15514 (ok_for_max_constant): New function.
15515 (gen_safe_add): New function.
15516 (rx_expand_prologue): Use gen_safe_add.
15517 (rx_expand_epilogue): Likewise.
15518 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
15519 UNSPEC CONSTs.
15520
15521 2011-01-21 Jeff Law <law@redhat.com>
15522
15523 PR tree-optimization/47053
15524 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
15525 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
15526 statements are deleted.
15527 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
15528 is nonempty, then purge dead edges and cleanup the CFG.
15529
15530 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15531
15532 PR debug/47402
15533 Temporarily revert:
15534 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15535 PR debug/47106
15536 * tree-dfa.c (create_var_ann): Mark variable as used.
15537
15538 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15539
15540 PR middle-end/45566
15541 * except.c (convert_to_eh_region_ranges): Emit queued no-region
15542 notes from other section in hot/cold partitioning even if
15543 last_action is -3. Increment call_site_base.
15544
15545 PR rtl-optimization/47366
15546 * fwprop.c (forward_propagate_into): Return bool. If
15547 any changes are made, -fnon-call-exceptions is used and
15548 REG_EH_REGION note is present, call purge_dead_edges
15549 and return true if it purged anything.
15550 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
15551 any EH edges were purged.
15552
15553 2011-01-21 Jeff Law <law@redhat.com>
15554
15555 PR rtl-optimization/41619
15556 * caller-save.c (setup_save_areas): Break out code to determine
15557 which hard regs are live across calls by examining the reload chains
15558 so that it is always used.
15559 Eliminate code which checked REG_N_CALLS_CROSSED.
15560
15561 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15562
15563 PR tree-optimization/47355
15564 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
15565 NOP has non-debug uses beyond PHIs in new_bb.
15566
15567 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15568
15569 PR debug/47106
15570 * cfgexpand.c (account_used_vars_for_block): Only account vars
15571 that are annotated as used.
15572 (estimated_stack_frame_size): Don't set TREE_USED.
15573 * tree-dfa.c (create_var_ann): Mark variable as used.
15574
15575 2011-01-21 Richard Guenther <rguenther@suse.de>
15576
15577 PR middle-end/47395
15578 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
15579
15580 2011-01-21 Richard Guenther <rguenther@suse.de>
15581
15582 PR tree-optimization/47365
15583 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
15584 (vn_reference_lookup_pieces): Adjust.
15585 (vn_reference_lookup): Likewise.
15586 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
15587 (vn_reference_lookup_3): Only look through kills if in
15588 VN_WALKREWRITE mode.
15589 (vn_reference_lookup_pieces): Adjust.
15590 (vn_reference_lookup): Likewise.
15591 (visit_reference_op_load): Likewise.
15592 (visit_reference_op_store): Likewise.
15593 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
15594 (compute_avail): Likewise.
15595 (eliminate): Likewise.
15596
15597 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15598
15599 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
15600 DECL_IGNORED_P non-reg vars if they are used.
15601
15602 PR tree-optimization/47391
15603 * varpool.c (const_value_known_p): Return false if
15604 decl is volatile.
15605
15606 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
15607
15608 PR bootstrap/47215
15609 * config/i386/i386.c (ix86_local_alignment): Handle
15610 case for va_list_type_node is nil.
15611 (ix86_canonical_va_list_type): Likewise.
15612
15613 2011-01-21 Alan Modra <amodra@gmail.com>
15614
15615 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
15616 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
15617
15618 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15619
15620 * config/arm/arm.md (define_attr type): Rename f_load
15621 and f_store to f_fpa_load and f_fpa_store. Update.
15622 (write_conflict): Deal with rename fallout.
15623 (*push_fp_multi): Likewise.
15624 * config/arm/fpa.md (f_load): Use f_fpa_load.
15625 (f_store): Use f_fpa_store.
15626 (*movsf_fpa): Likewise.
15627 (*movdf_fpa): Likewise.
15628 (*movxf_fpa): Likewise.
15629 (*thumb2_movsf_fpa): Likewise.
15630 (*thumb2_movdf_fpa): Likewise.
15631 (*thumb2_movxf_fpa): Likewise.
15632 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
15633 f_loadd and f_stored.
15634 (*thumb2_movdi_vfp): Likewise.
15635 (*thumb2_movsf_vfp): Fix attribute to f_loads.
15636 (*thumb2_movsi_vfp): Likewise.
15637 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
15638 Use f_loads instead of f_load.
15639 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
15640
15641 2011-01-20 Anatoly Sokolov <aesok@post.ru>
15642
15643 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15644 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
15645 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15646 (xtensa_mode_dependent_address_p): New function.
15647 (constantpool_address_p): Make static. Change return type to bool.
15648 Change argument type to const_rtx. Use CONST_INT_P predicate.
15649
15650 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
15651
15652 PR debug/46583
15653 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
15654
15655 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15656
15657 PR debug/47283
15658 * cfgexpand.c (expand_debug_expr): Instead of generating
15659 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
15660 etc. handling.
15661
15662 2011-01-20 Richard Guenther <rguenther@suse.de>
15663
15664 PR middle-end/47370
15665 * tree-inline.c (remap_gimple_op_r): Recurse manually for
15666 the pointer operand of MEM_REFs.
15667
15668 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15669
15670 PR tree-optimization/46130
15671 * ipa-split.c (consider_split): If return_bb contains non-virtual
15672 PHIs other than for retval or if split_function would not adjust it,
15673 refuse to split.
15674
15675 2011-01-20 Richard Guenther <rguenther@suse.de>
15676
15677 PR tree-optimization/47167
15678 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
15679 Revert previous change, only avoid enumeral type changes.
15680
15681 2011-01-19 Mike Stump <mikestump@comcast.net>
15682
15683 * doc/tm.texi.in (BRANCH_COST): Englishify.
15684 * doc/tm.texi (BRANCH_COST): Likewise.
15685
15686 2011-01-19 Dodji Seketeli <dodji@redhat.com>
15687
15688 PR c++/47291
15689 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
15690 (gen_scheduled_generic_parms_dies): New functions.
15691 (gen_struct_or_union_type_die): Schedule template parameters DIEs
15692 generation for the end of CU compilation.
15693 (dwarf2out_finish): Generate template parameters DIEs here.
15694
15695 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15696
15697 PR debug/46240
15698 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
15699 debug bind stmt on merge edges.
15700
15701 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15702
15703 PR debug/47079
15704 PR debug/46724
15705 * function.c (instantiate_expr): Instantiate incoming rtl of
15706 implicit arguments, and recurse on VALUE_EXPRs.
15707 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
15708 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
15709
15710 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15711
15712 * c-parser.c (c_parser_for_statement): Initialize
15713 collection_expression.
15714
15715 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15716
15717 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
15718
15719 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15720
15721 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
15722 (LINK_SHLIB_SPEC): Don't use %(link_path).
15723 (SUBTARGET_EXTRA_SPECS): Remove link_path.
15724
15725 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15726
15727 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
15728 (NO_SHARED_LIB_SUPPORT): Remove.
15729 (LINK_SHLIB_SPEC): Remove one conditional definition.
15730
15731 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15732
15733 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
15734 %{call_shared}.
15735 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
15736 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
15737 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
15738 %{call_shared} and conditionals on these options not being passed.
15739 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
15740 %{call_shared}.
15741
15742 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15743
15744 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
15745 simplify.
15746
15747 * ipa-split.c: Spelling fixes.
15748
15749 2011-01-19 Richard Henderson <rth@redhat.com>
15750
15751 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
15752 (*mulsi3): Likewise.
15753
15754 * longlong.h [__mn10300__] (count_leading_zeros): New.
15755 [__mn10300__] (umul_ppmm, smul_ppmm): New.
15756 [__mn10300__] (add_ssaaaa, subddmmss): New.
15757 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
15758 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
15759
15760 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15761
15762 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
15763
15764 2011-01-19 Richard Henderson <rth@redhat.com>
15765
15766 * config/mn10300/mn10300.md (addsi3_flags): New.
15767 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
15768 (subsi3_flags, subc_internal, subdi3): New.
15769 (subdi3_internal, *subdi3_degenerate): New.
15770 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
15771
15772 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
15773 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
15774 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
15775 * config/mn10300/mn10300-protos.h: Update.
15776 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
15777 (return_ret): Likewise. Rename from return_internal_regs.
15778 (return_internal): Remove.
15779
15780 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
15781 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
15782 (mn10300_legitimate_constant_p): Likewise.
15783 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
15784 (mn10300_frame_size): New.
15785 (mn10300_expand_prologue): Use it.
15786 (mn10300_expand_epilogue): Likewise.
15787 (mn10300_initial_offset): Likewise.
15788 * config/mn10300/mn10300-protos.h: Update.
15789 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
15790 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
15791 (prologue, epilogue, return_internal): Tidy output code.
15792 (mn10300_store_multiple_operation, return): Likewise.
15793 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
15794 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
15795 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
15796 (load_pic, am33_load_pic): New.
15797 (mn10300_load_pic0, mn10300_load_pic1): New.
15798
15799 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
15800 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
15801 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
15802 (cc_flags_for_mode, cc_flags_for_code): New.
15803 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
15804 overflow flag is not valid. Validate that the flags we need
15805 for the comparison are valid.
15806 (mn10300_output_cmp): Remove.
15807 (mn10300_output_add): New.
15808 (mn10300_select_cc_mode): Use cc_flags_for_code.
15809 (mn10300_split_cbranch): New.
15810 (mn10300_match_ccmode): New.
15811 (mn10300_split_and_operand_count): New.
15812 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
15813 to the function.
15814 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
15815 (addsi3): ... here. Use mn10300_output_add.
15816 (*addsi3_flags): New.
15817 (*am33_subsi3, *mn10300_subsi3): Merge...
15818 (subsi3): ... here. Use attribute isa.
15819 (*subsi3_flags): New.
15820 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
15821 when possible.
15822 (*am33_andsi3, *mn10300_andsi3): Merge...
15823 (andsi3): ... here.
15824 (*andsi3_flags): New.
15825 (andsi3 splitters): New.
15826 (*am33_iorsi3, *mn10300_iorsi3): Merge...
15827 (iorsi3): ... here.
15828 (*iorsi3_flags): New.
15829 (*am33_xorsi3, *mn10300_xorsi3): Merge...
15830 (xorsi3): ... here.
15831 (*xorsi3_flags): New.
15832 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
15833 (one_cmplsi2): ... here.
15834 (*one_cmplsi2_flags): New.
15835 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
15836 instead of "dax" in constraints. Use mn10300_split_cbranch.
15837 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
15838 use matching constraints to eliminate a self-comparison.
15839 (*integer_conditional_branch): Rename from integer_conditional_branch.
15840 Use int_mode_flags to match CC_REG.
15841 (*cbranchsi4_btst, *btstsi): New.
15842 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
15843 mn10300_split_cbranch.
15844 (*am33_cmpsf): Rename from am33_cmpsf.
15845 (*float_conditional_branch): Rename from float_conditional_branch.
15846 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
15847 (zero_extendqisi2): ... here.
15848 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
15849 (zero_extendhisi2): ... here.
15850 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
15851 (extendqisi2): ... here.
15852 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
15853 (extendhisi2): ... here.
15854 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
15855 (ashlsi3): ... here.
15856 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
15857 (lshrsi3): ... here.
15858 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
15859 (ashrsi3): ... here.
15860 (consecutive add peephole): Remove.
15861 * config/mn10300/predicates.md (label_ref_operand): New.
15862 (int_mode_flags): New.
15863 (CCZN_comparison_operator): New.
15864
15865 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
15866 (throughput_42_latency_43): New reservation.
15867 (mulsidi3, umulsidi3): New expanders.
15868 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
15869 the MDR register to allocation; separately allocate the low and
15870 high parts of the DImode result.
15871 (umulsidi3_internal): Similarly.
15872 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
15873 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
15874 (udivsi3, umodsi3): Remove.
15875 (udivmodsi4, divmodsi4): New expanders.
15876 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
15877 (*divmodsi4): Simiarly.
15878 (ext_internal): New.
15879
15880 * config/mn10300/constraints.md ("z"): New constraint.
15881 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
15882 (FIXED_REGISTERS): Don't fix MDR.
15883 (CALL_USED_REGSITERS): Reformat nicely.
15884 (REG_ALLOC_ORDER): Add MDR.
15885 (enum regclass): Add MDR_REGS.
15886 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
15887 (IRA_COVER_CLASSES): Add MDR_REGS.
15888 (REGNO_REG_CLASS): Handle MDR_REG.
15889 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
15890 (mn10300_register_move_cost): Likewise.
15891 * config/mn10300/mn10300.md (MDR_REG): New.
15892 (*movsi_internal): Handle moves to/from MDR_REGS.
15893
15894 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
15895 POST_MODIFY.
15896 (mn10300_secondary_reload): Tidy combination reload classes.
15897 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
15898 addresses for AM33. Allow symbolic offsets for reg+imm.
15899 (mn10300_regno_in_class_p): New.
15900 (mn10300_legitimize_reload_address): New.
15901 * config/mn10300/mn10300.h (enum reg_class): Remove
15902 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
15903 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
15904 SP_OR_GENERAL_REGS.
15905 (REG_CLASS_NAMES): Update to match.
15906 (REG_CLASS_CONTENTS): Likewise.
15907 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
15908 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
15909 (REGNO_IN_RANGE_P): Remove.
15910 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
15911 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
15912 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
15913 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
15914 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
15915 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
15916 (REGNO_GENERAL_P): New.
15917 (HAVE_POST_MODIFY_DISP): New.
15918 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
15919 (LEGITIMIZE_RELOAD_ADDRESS): New.
15920 * config/mn10300/mn10300-protos.h: Update.
15921
15922 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
15923 DATA_REGS for AM33 stack-pointer destination.
15924 (mn10300_preferred_output_reload_class): Likewise.
15925 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
15926 into a form appropriate for ...
15927 (TARGET_SECONDARY_RELOAD): New.
15928 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
15929 * config/mn10300/mn10300-protos.h: Update.
15930 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
15931 reload_insi; use the "A" constraint for the scratch; handle AM33
15932 moves of sp to non-address registers.
15933
15934 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
15935 (*movqi_internal): ... here.
15936 (*am33_movhi, *mn10300_movhi): Merge into...
15937 (*movhi_internal): ... here.
15938 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
15939 as the source/destination of moves from/to SP.
15940 (movsf): Only allow for AM33-2.
15941 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
15942 any integer constant constraint. Only allow for AM33-2. Tidy
15943 all of the alternative outputs.
15944 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
15945 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
15946 for MN103.
15947 (udivsi3, umodsi3): New patterns for MN103 only.
15948
15949 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
15950
15951 * doc/tm.texi.in: Spell out that a lack of register class unions
15952 can lead to ICEs.
15953 * doc/tm.texi: Regenerate.
15954
15955 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15956
15957 PR rtl-optimization/47337
15958 * dce.c (check_argument_store): New function.
15959 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
15960
15961 PR tree-optimization/47290
15962 * tree-eh.c (infinite_empty_loop_p): New function.
15963 (cleanup_empty_eh): Use it.
15964
15965 2011-01-18 Steve Ellcey <sje@cup.hp.com>
15966
15967 PR target/46997
15968 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
15969 (a64_expand_widen_sum): Ditto.
15970 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
15971 (vec_extract_evenodd_help): Ditto.
15972 (vec_extract_evenv4hi): Ditto.
15973 (vec_extract_oddv4hi): Ditto.
15974 (vec_extract_evenv2si): Ditto.
15975 (vec_extract_oddv2si): Ditto.
15976 (vec_extract_evenv2sf): Ditto.
15977 (vec_extract_oddv2sf): Ditto.
15978 (vec_pack_trunc_v4hi: Ditto.
15979 (vec_pack_trunc_v2si): Ditto.
15980 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
15981 (vec_interleave_highv8qi): Ditto.
15982 (mix1_r): Ditto.
15983 (vec_extract_oddv8qi): Ditto.
15984 (vec_interleave_lowv4hi): Ditto.
15985 (vec_interleave_highv4hi): Ditto.
15986 (vec_interleave_lowv2si): Ditto.
15987 (vec_interleave_highv2si): Ditto.
15988
15989 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15990
15991 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
15992 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
15993 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
15994 (pa_c_mode_for_suffix): New.
15995 (TARGET_EXPAND_BUILTIN): Define.
15996 (TARGET_C_MODE_FOR_SUFFIX): Define.
15997 (pa_builtins): Define.
15998 (pa_init_builtins): Register __float128 type and init new support
15999 builtins.
16000 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
16001 * config/pa/quadlib.c (_U_Qfcopysign): New.
16002
16003 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
16004
16005 PR middle-end/46894
16006 * explow.c (allocate_dynamic_stack_space): Do not assume more than
16007 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
16008 are defined.
16009
16010 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16011
16012 PR tree-optimization/47179
16013 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
16014 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
16015
16016 2011-01-18 Richard Guenther <rguenther@suse.de>
16017
16018 PR rtl-optimization/47216
16019 * emit-rtl.c: Include tree-flow.h.
16020 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
16021 of replicating it with different semantics.
16022 * Makefile.in (emit-rtl.o): Adjust.
16023
16024 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16025
16026 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
16027 (cortex_a9_dp): Handle neon types correctly.
16028
16029 2011-01-18 Jakub Jelinek <jakub@redhat.com>
16030
16031 PR rtl-optimization/47299
16032 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
16033 subtarget. Use normal multiplication if both operands are constants.
16034 * expmed.c (expand_widening_mult): Don't try to optimize constant
16035 multiplication if op0 has VOIDmode. Convert op1 constant to mode
16036 before using it.
16037
16038 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16039
16040 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
16041 spacing after 'e.g.', typos, comma, hyphenation.
16042
16043 2011-01-17 Richard Henderson <rth@redhat.com>
16044
16045 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
16046 (rx_restricted_mem_operand): New.
16047 (rx_shift_operand): Use register_operand.
16048 (rx_source_operand, rx_compare_operand): Likewise.
16049 * config/rx/rx.md (addsi3_flags): New expander.
16050 (adddi3): Rewrite as expander.
16051 (adc_internal, *adc_flags, adddi3_internal): New patterns.
16052 (subsi3_flags): New expander.
16053 (subdi3): Rewrite as expander.
16054 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
16055
16056 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
16057 (rx_init_builtins): Remove sat builtin.
16058 (rx_expand_builtin): Likewise.
16059 * config/rx/rx.md (ssaddsi3): New.
16060 (*sat): Rename from sat. Represent the CC_REG input.
16061
16062 * config/rx/predicates.md (rshift_operator): New.
16063 * config/rx/rx.c (rx_expand_insv): Remove.
16064 * config/rx/rx-protos.h: Update.
16065 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
16066 operand to the canonical position.
16067 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
16068 (*bitclr, *bitclr_in_memory): Similarly.
16069 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
16070 (insv): Retain the zero_extract in the expansion.
16071
16072 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
16073 (bswaphi2, bitinvert, revw): Likewise.
16074
16075 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
16076 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
16077 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
16078 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
16079 (bitset, bitset_in_memory): Likewise.
16080 (bitinvert, bitinvert_in_memory): Likewise.
16081 (bitclr, bitclr_in_memory): Likewise.
16082 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
16083 (rx_strend, rx_cmpstrn): Likewise.
16084 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
16085 (bitop peep2 patterns): Remove.
16086
16087 * config/rx/rx.c (rx_match_ccmode): New.
16088 * config/rx/rx-protos.h: Update.
16089 * config/rx/rx.md (abssi2): Clobber, don't set flags.
16090 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
16091 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
16092 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
16093 (fix_truncsfsi2, floatsisf2): Likewise.
16094 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
16095 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
16096 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
16097 (*subsi3_flags, *xorsi3_flags): New.
16098
16099 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
16100
16101 * config/rx/rx.c (rx_print_operand): Remove workaround for
16102 unsplit comparison operations.
16103
16104 * config/rx/rx.md (movsicc): Split after reload.
16105 (*movsicc): Merge *movsieq and *movsine via match_operator.
16106 (*stcc): New pattern.
16107
16108 * config/rx/rx.c (rx_float_compare_mode): Remove.
16109 * config/rx/rx.h (rx_float_compare_mode): Remove.
16110 * config/rx/rx.md (cstoresi4): Split after reload.
16111 (*sccc): New pattern.
16112
16113 * config/rx/predicates.md (label_ref_operand): New.
16114 (rx_z_comparison_operator): New.
16115 (rx_zs_comparison_operator): New.
16116 (rx_fp_comparison_operator): New.
16117 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
16118 Validate that the flags are set properly for the comparison.
16119 (rx_gen_cond_branch_template): Remove.
16120 (rx_cc_modes_compatible): Remove.
16121 (mode_from_flags): New.
16122 (flags_from_code): Rename from flags_needed_for_conditional.
16123 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
16124 (rx_select_cc_mode): Likewise.
16125 (rx_split_fp_compare): New.
16126 (rx_split_cbranch): New.
16127 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
16128 (*cbranchsi4): Use match_operator and rx_split_cbranch.
16129 (*cbranchsf4): Similarly.
16130 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
16131 match_operator and rx_split_cbranch.
16132 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
16133 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
16134 (*cmpsi): Rename from cmpsi.
16135 (*tstsi): Rename from tstsi.
16136 (*cmpsf): Rename from cmpsf; use CC_Fmode.
16137 (*conditional_branch): Rename from conditional_branch.
16138 (*reveresed_conditional_branch): Remove.
16139 (b<code>): Remove expander.
16140 * config/rx/rx-protos.h: Update.
16141
16142 * config/rx/rx.c (rx_compare_redundant): Remove.
16143 * config/rx/rx.md (cmpsi): Don't use it.
16144 * config/rx/rx-protos.h: Update.
16145
16146 * config/rx/rx-modes.def (CC_F): New mode.
16147 * config/rx/rx.c (rx_select_cc_mode): New.
16148 * config/rx/rx.h (SELECT_CC_MODE): Use it.
16149 * config/rx/rx-protos.h: Update.
16150
16151 2011-01-17 Richard Henderson <rth@redhat.com>
16152
16153 * except.c (dump_eh_tree): Fix stray ; after for statement.
16154
16155 2011-01-17 Richard Guenther <rguenther@suse.de>
16156
16157 PR tree-optimization/47313
16158 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
16159 handling before copying the body. Properly deal with
16160 by-reference result in SSA form.
16161
16162 2011-01-17 Ian Lance Taylor <iant@google.com>
16163
16164 PR target/47219
16165 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
16166 (struct_value_alias_set): Don't define.
16167 (sparc_option_override): Don't set sparc_sr_alias_set and
16168 struct_value_alias_set.
16169 (save_or_restore_regs): Use gen_frame_mem rather than calling
16170 set_mem_alias_set.
16171 (sparc_struct_value_rtx): Likewise.
16172
16173 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
16174
16175 PR target/47318
16176 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
16177 (_mm_maskstore_pd): Likewise.
16178 (_mm_maskload_ps): Likewise.
16179 (_mm_maskstore_ps): Likewise.
16180 (_mm256_maskload_pd): Change mask to __m256i.
16181 (_mm256_maskstore_pd): Likewise.
16182 (_mm256_maskload_ps): Likewise.
16183 (_mm256_maskstore_ps): Likewise.
16184
16185 * config/i386/i386-builtin-types.def: Updated.
16186 (ix86_expand_special_args_builtin): Likewise.
16187
16188 * config/i386/i386.c (bdesc_special_args): Update
16189 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
16190 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
16191 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
16192 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
16193
16194 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
16195 Use <avxpermvecmode> on mask register.
16196 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
16197
16198 2011-01-17 Olivier Hainque <hainque@adacore.com>
16199 Michael Haubenwallner <michael.haubenwallner@salomon.at>
16200 Eric Botcazou <ebotcazou@adacore.com>
16201
16202 PR target/46655
16203 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
16204 if <= USHRT_MAX in 32-bit mode.
16205
16206 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16207
16208 * doc/install.texi (Configuration, Specific): Wrap long
16209 lines in examples. Allow line wrapping in long options
16210 and URLs where beneficial for PDF output.
16211
16212 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
16213
16214 * config/mips/mips.c (mips_classify_symbol): Don't return
16215 SYMBOL_PC_RELATIVE for nonlocal labels.
16216
16217 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
16218
16219 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
16220
16221 2011-01-15 Jan Hubicka <jh@suse.cz>
16222
16223 PR tree-optimization/47276
16224 * ipa.c (function_and_variable_visibility): Do not try to mark alias
16225 declarations as needed.
16226
16227 2011-01-15 Martin Jambor <mjambor@suse.cz>
16228
16229 * common.opt (fdevirtualize): New flag.
16230 * doc/invoke.texi (Option Summary): Document it.
16231 * opts.c (default_options_table): Add devirtualize flag.
16232 * ipa-prop.c (detect_type_change): Return immediately if
16233 devirtualize flag is not set.
16234 (detect_type_change_ssa): Likewise.
16235 (compute_known_type_jump_func): Likewise.
16236 (ipa_analyze_virtual_call_uses): Likewise.
16237
16238 2011-01-14 Martin Jambor <mjambor@suse.cz>
16239
16240 PR tree-optimization/45934
16241 PR tree-optimization/46302
16242 * ipa-prop.c (type_change_info): New type.
16243 (stmt_may_be_vtbl_ptr_store): New function.
16244 (check_stmt_for_type_change): Likewise.
16245 (detect_type_change): Likewise.
16246 (detect_type_change_ssa): Likewise.
16247 (compute_complex_assign_jump_func): Check for dynamic type change.
16248 (compute_complex_ancestor_jump_func): Likewise.
16249 (compute_known_type_jump_func): Likewise.
16250 (compute_scalar_jump_functions): Likewise.
16251 (ipa_analyze_virtual_call_uses): Likewise.
16252 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
16253
16254 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16255
16256 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
16257 * config/i386/i386.opt (msse5): New Alias.
16258
16259 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16260
16261 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
16262 * config/sparc/linux64.h (CC1_SPEC): Likewise.
16263 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
16264 * config/sparc/sparc.h (CC1_SPEC): Likewise.
16265
16266 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16267
16268 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
16269 -mcpu options.
16270 * config/sparc/linux64.h (CC1_SPEC): Likewise.
16271 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
16272 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
16273 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
16274 Likewise.
16275 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
16276
16277 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16278
16279 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
16280
16281 2011-01-14 Mike Stump <mikestump@comcast.net>
16282
16283 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
16284 * config/fr30/fr30.md: Likweise
16285 (movsi_push): Likewise.
16286 (movsi_pop): Likewise.
16287 (enter_func): Likewise.
16288 * config/moxie/moxie.md (movsi_push): Likewise.
16289 (movsi_pop): Likewise.
16290
16291 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16292
16293 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
16294 %{no_archive} %{exact_version}.
16295 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
16296 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
16297 %{no_archive} %{exact_version}.
16298 * config/mips/openbsd.h (LINK_SPEC): Likewise.
16299 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
16300 * config/mips/vxworks.h: Likewise.
16301
16302 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16303
16304 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
16305
16306 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16307
16308 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
16309 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
16310
16311 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16312
16313 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
16314 -nodefaultlib.
16315
16316 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16317
16318 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
16319 for mcpu not cpu.
16320 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
16321 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
16322 not cpu.
16323 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
16324 Don't handle -shlib.
16325
16326 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16327
16328 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
16329 (CC1_SPEC): Don't handle -profile.
16330
16331 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16332
16333 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
16334 * config/mips/mips.h (CC1_SPEC): Likewise.
16335
16336 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16337
16338 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
16339 * config/mips/mips.h (CC1_SPEC): Likewise.
16340
16341 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16342
16343 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
16344 * config/m32r/linux.h (LINK_SPEC): Likewise.
16345 * config/mips/linux.h (LINK_SPEC): Likewise.
16346 * config/mips/linux64.h (LINK_SPEC): Likewise.
16347 * config/sparc/linux.h (LINK_SPEC): Likewise.
16348 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
16349 LINK_SPEC): Likewise.
16350 * config/xtensa/linux.h (LINK_SPEC): Likewise.
16351
16352 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16353
16354 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
16355 %{version:-v}.
16356 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
16357
16358 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16359
16360 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
16361 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
16362
16363 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16364
16365 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
16366
16367 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16368
16369 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
16370 supports -Bstatic/-Bdynamic.
16371 * configure: Regenerate.
16372
16373 2011-01-14 Jan Hubicka <jh@suse.cz>
16374 Jack Howarth <howarth@bromo.med.uc.edu>
16375
16376 PR target/46037
16377 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
16378 when checking debug_info_level. Test write_symbols instead of
16379 debug_hooks->var_location when setting flag_var_tracking_uninit.
16380
16381 2011-01-14 Richard Guenther <rguenther@suse.de>
16382
16383 PR tree-optimization/47179
16384 * target.def (ref_may_alias_errno): New target hook.
16385 * targhooks.h (default_ref_may_alias_errno): Declare.
16386 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
16387 (default_ref_may_alias_errno): New function.
16388 * target.h (struct ao_ref_s): Declare.
16389 * tree-ssa-alias.c: Include target.h.
16390 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
16391 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
16392 (targhooks.o): Likewise.
16393 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
16394 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
16395
16396 2011-01-14 Richard Guenther <rguenther@suse.de>
16397
16398 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
16399
16400 2011-01-14 Richard Guenther <rguenther@suse.de>
16401
16402 PR tree-optimization/47280
16403 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
16404 return CFG changes.
16405 (tree_ssa_forward_propagate_single_use_vars): Deal with
16406 CFG changes from associate_plusminus.
16407
16408 2011-01-14 Richard Guenther <rguenther@suse.de>
16409
16410 PR middle-end/47281
16411 Revert
16412 2011-01-11 Richard Guenther <rguenther@suse.de>
16413
16414 PR tree-optimization/46076
16415 * tree-ssa.c (useless_type_conversion_p): Conversions from
16416 unprototyped to empty argument list function types are useless.
16417
16418 2011-01-14 Richard Guenther <rguenther@suse.de>
16419
16420 PR tree-optimization/47286
16421 * tree-ssa-structalias.c (new_var_info): Register variables are global.
16422
16423 2011-01-14 Martin Jambor <mjambor@suse.cz>
16424
16425 PR middle-end/46823
16426 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
16427
16428 2011-01-13 Anatoly Sokolov <aesok@post.ru>
16429
16430 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
16431 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
16432 * config/xtensa/xtensa.c (xtensa_libcall_value,
16433 xtensa_function_value_regno_p): New functions.
16434 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
16435
16436 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
16437
16438 PR c++/47213
16439 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
16440 PE specific hook.
16441 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
16442 New function prototype.
16443 * config/i386/winnt.c (i386_pe_assemble_visibility):
16444 Warn only if attribute was specified by user.
16445
16446 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
16447
16448 PR target/47251
16449 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
16450 floating point.
16451 (floatunsdidf2_fcfidu): Ditto.
16452
16453 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16454
16455 * config/s390/s390.c (print_operand_address): Replace 'error' with
16456 'output_operand_lossage'.
16457 (print_operand): Likewise.
16458
16459 2011-01-13 Jeff Law <law@redhat.com>
16460
16461 PR rtl-optimization/39077
16462 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
16463 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
16464 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
16465 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
16466 * gcse.c (prune_insertions_deletions): New function.
16467 (compute_pre_data): Use it.
16468
16469 2011-01-13 Dodji Seketeli <dodji@redhat.com>
16470
16471 PR debug/PR46973
16472 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
16473 static function.
16474 (prune_unused_types_mark): Use it.
16475
16476 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
16477
16478 PR rtl-optimization/45352
16479 * sel-sched.c: Update copyright years.
16480 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
16481 in the advancing loop when we have issued issue_rate insns.
16482
16483 2011-01-12 Richard Henderson <rth@redhat.com>
16484
16485 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
16486 (TARGET_MD_ASM_CLOBBERS): New.
16487
16488 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
16489 (TARGET_DELEGITIMIZE_ADDRESS): New.
16490
16491 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
16492 (clzsi2, *bsch): New patterns.
16493
16494 * config/mn10300/mn10300.md (INT): New mode iterator.
16495 (*mov<INT>_clr): New pattern, and peep2 to generate it.
16496
16497 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
16498 flag_split_wide_types.
16499
16500 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
16501 (mn10300_trampoline_init): Rewrite without a template, an immediate
16502 load and a direct branch.
16503 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
16504
16505 2011-01-12 Anatoly Sokolov <aesok@post.ru>
16506
16507 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16508 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
16509 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
16510 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16511
16512 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
16513
16514 PR debug/47209
16515 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
16516 of type.
16517
16518 2011-01-12 Jan Hubicka <jh@suse.cz>
16519
16520 PR driver/47244
16521 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
16522 (PLUGIN_COND_CLOSE): New macro.
16523 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
16524
16525 2011-01-12 Richard Guenther <rguenther@suse.de>
16526
16527 PR lto/47259
16528 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
16529 register variables in a MEM_REF.
16530
16531 2011-01-12 Joseph Myers <joseph@codesourcery.com>
16532
16533 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
16534 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
16535 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
16536 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
16537 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
16538 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
16539 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
16540 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
16541 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
16542 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
16543 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
16544 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
16545 * config/gnu-user.h: New. Copied from linux.h.
16546 (LINUX_TARGET_STARTFILE_SPEC): Rename to
16547 GNU_USER_TARGET_STARTFILE_SPEC.
16548 (LINUX_TARGET_ENDFILE_SPEC): Rename to
16549 GNU_USER_TARGET_ENDFILE_SPEC.
16550 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
16551 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
16552 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
16553 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
16554 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
16555 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
16556 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
16557 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
16558 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
16559 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
16560 * config/arm/linux-eabi.h (CC1_SPEC): Use
16561 GNU_USER_TARGET_CC1_SPEC.
16562 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
16563 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
16564 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
16565 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
16566 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
16567 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
16568 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
16569 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
16570
16571 2011-01-12 Richard Guenther <rguenther@suse.de>
16572
16573 PR other/46946
16574 * doc/invoke.texi (ffast-math): Document it is turned on
16575 with -Ofast.
16576
16577 2011-01-12 Jan Hubicka <jh@suse.cz>
16578
16579 PR tree-optimization/47233
16580 * opts.c (common_handle_option): Disable ipa-reference with profile
16581 feedback.
16582
16583 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
16584
16585 * c-parser.c (c_parser_objc_at_property_declaration): Improved
16586 error message.
16587
16588 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
16589
16590 * c-parser.c (c_lex_one_token): Updated and reindented some
16591 comments. No changes in code.
16592
16593 2011-01-11 Ian Lance Taylor <iant@google.com>
16594
16595 * godump.c (go_output_var): Don't output the variable if there is
16596 already a type with the same name.
16597
16598 2011-01-11 Ian Lance Taylor <iant@google.com>
16599
16600 * godump.c (go_format_type): Don't generate float80.
16601
16602 2011-01-11 Richard Henderson <rth@redhat.com>
16603
16604 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
16605 declaration. Rewrite for both speed and size.
16606 (mn10300_address_cost_1): Remove.
16607 (mn10300_register_move_cost): New.
16608 (mn10300_memory_move_cost): New.
16609 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
16610 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
16611 extensions, shifts, BSWAP, CLZ.
16612 (mn10300_wide_const_load_uses_clr): Remove.
16613 (TARGET_REGISTER_MOVE_COST): New.
16614 (TARGET_MEMORY_MOVE_COST): New.
16615 * config/mn10300/mn10300-protos.h: Update.
16616 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
16617
16618 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
16619 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
16620 * config/mn10300/mn10300-protos.h: Update.
16621 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
16622 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
16623 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
16624 (*test_int_bitfield, *test_byte_bitfield): Remove.
16625 (*bit_test, *subreg_bit_test): Remove.
16626 * config/mn10300/predicates.md (const_8bit_operand): Remove.
16627
16628 * config/mn10300/constraints.md ("c"): Rename from "A".
16629 ("A", "D"): New constraint letters.
16630 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
16631 (fmssf4, fnmasf4, fnmssf4): Likewise.
16632
16633 * config/mn10300/mn10300.md (isa): New attribute.
16634 (enabled): New attribute.
16635
16636 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
16637 (abssf2, negsf2): Define only for hardware fp.
16638 (sqrtsf2): Reformat.
16639 (addsf3, subsf3, mulsf3): Merge expander and insn.
16640
16641 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
16642 (DEBUGGER_AUTO_OFFSET): Remove.
16643 (DEBUGGER_ARG_OFFSET): Remove.
16644
16645 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
16646 Emit register stores with the same offsets as the hardware.
16647 (mn10300_store_multiple_operation): Don't check that the register
16648 save offsets are monotonic.
16649 * config/mn10300/mn10300-protos.h: Update.
16650
16651 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
16652
16653 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
16654 in terms of the value on the stack, not the MDR register.
16655
16656 2011-01-11 Jan Hubicka <jh@suse.cz>
16657
16658 PR lto/45721
16659 PR lto/45375
16660 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
16661 (symbol_alias_set_destroy, symbol_alias_set_contains,
16662 propagate_aliases_backward): Declare.
16663 * lto-streamer-out.c (struct sets): New sturcture.
16664 (trivally_defined_alias): New function.
16665 (output_alias_pair_p): Rewrite.
16666 (output_unreferenced_globals): Fix output of alias pairs.
16667 (produce_symtab): Likewise.
16668 * ipa.c (function_and_variable_visibility): Set weak alias destination
16669 as needed in lto.
16670 * varasm.c (symbol_alias_set_t): Remove.
16671 (symbol_alias_set_destroy): Export.
16672 (propagate_aliases_forward, propagate_aliases_backward): New functions
16673 based on ...
16674 (compute_visible_aliases): ... this one; remove.
16675 (trivially_visible_alias): New
16676 (trivially_defined_alias): New.
16677 (remove_unreachable_alias_pairs): Rewrite.
16678 (finish_aliases_1): Reorganize code checking if alias is defined.
16679 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
16680 in LTO mode.
16681
16682 2011-01-11 Richard Guenther <rguenther@suse.de>
16683
16684 PR tree-optimization/46076
16685 * tree-ssa.c (useless_type_conversion_p): Conversions from
16686 unprototyped to empty argument list function types are useless.
16687
16688 2011-01-11 Richard Guenther <rguenther@suse.de>
16689
16690 PR middle-end/45235
16691 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
16692 volatile MEMs as MEM_READONLY_P.
16693
16694 2011-01-11 Richard Guenther <rguenther@suse.de>
16695
16696 PR tree-optimization/47239
16697 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
16698
16699 2011-01-11 Jeff Law <law@redhat.com>
16700
16701 PR tree-optimization/47086
16702 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
16703 IVs from statements that might throw.
16704
16705 2011-01-10 Jan Hubicka <jh@suse.cz>
16706
16707 PR lto/45375
16708 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
16709
16710 2011-01-10 Jan Hubicka <jh@suse.cz>
16711
16712 PR lto/45375
16713 * profile.c (read_profile_edge_counts): Ignore profile inconistency
16714 when correcting profile.
16715
16716 2011-01-10 Jan Hubicka <jh@suse.cz>
16717
16718 PR lto/46083
16719 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
16720 DECL_FINI_PRIORITY.
16721 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
16722 Restore DECL_FINI_PRIORITY.
16723
16724 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16725
16726 * doc/gimple.texi: Fix quoting of multi-word return values in
16727 @deftypefn statements. Ensure presence of return value. Wrap
16728 overlong @deftypefn lines.
16729 (is_gimple_operand, is_gimple_min_invariant_address): Remove
16730 descriptions of removed functions.
16731 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
16732 of multi-word return value in @deftypefn statement.
16733
16734 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16735
16736 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
16737 (Conditional Expressions, Logical Operators)
16738 (Statement and operand traversals): Do not indent smallexample
16739 code. Fix duplicate function argument in example.
16740
16741 2011-01-10 Jeff Law <law@redhat.com>
16742
16743 PR tree-optimization/47141
16744 * ipa-split.c (split_function): Handle case where we are
16745 returning a value and the return block has a virtual operand phi.
16746
16747 2011-01-10 Jan Hubicka <jh@suse.cz>
16748
16749 PR tree-optimization/47234
16750 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
16751 (pass_feedback_split_functions): Declare.
16752 * passes.c (init_optimization_passes): Add ipa-split as subpass of
16753 tree-profile.
16754 * ipa-split.c (gate_split_functions): Update comments; disable
16755 split-functions for profile_arc_flag and branch_probabilities.
16756 (gate_feedback_split_functions): New function.
16757 (execute_feedback_split_functions): New function.
16758 (pass_feedback_split_functions): New global var.
16759
16760 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
16761
16762 PR lto/46760
16763 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
16764 calling gimple_call_set_cannot_inline.
16765
16766 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
16767
16768 * config/darwin-sections.def: Remove unused section.
16769
16770 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
16771
16772 PR c++/47218
16773 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
16774
16775 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
16776
16777 PR objc/47232
16778 * c-parser.c (c_parser_declaration_or_fndef): Improved
16779 error message.
16780
16781 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
16782
16783 * config/i386/winnt.c (i386_pe_start_function): Make sure
16784 to switch back to function's section.
16785
16786 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
16787
16788 PR gcc/46902
16789 PR testsuite/46912
16790 * plugin.c: Move include of dlfcn.h from here...
16791 * system.h: ... to here.
16792
16793 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16794
16795 * doc/cpp.texi (C++ Named Operators): Fix markup for header
16796 file name.
16797 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
16798 two extra empty pages in PDF output.
16799
16800 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
16801
16802 PR objc/47078
16803 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
16804 for error recovery purposes behave as if it was not specified so
16805 that the default type is usd.
16806
16807 2011-01-07 Jan Hubicka <jh@suse.cz>
16808
16809 PR tree-optmization/46469
16810 * ipa.c (function_and_variable_visibility): Clear needed flags on
16811 nodes with external decls; handle weakrefs merging correctly.
16812
16813 2011-01-07 Joseph Myers <joseph@codesourcery.com>
16814
16815 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
16816 not false.
16817
16818 2011-01-07 Jan Hubicka <jh@suse.cz>
16819
16820 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
16821 and no longer claim that gold is required for linker plugin.
16822 * configure: Regenerate.
16823 * gcc.c (PLUGIN_COND): New macro.
16824 (LINK_COMMAND_SPEC): Use it.
16825 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
16826 * config.in (HAVE_LTO_PLUGIN): New.
16827 * configure.ac (--with-lto-plugin): New parameter; autodetect
16828 HAVE_LTO_PLUGIN.
16829
16830 2011-01-07 Jan Hubicka <jh@suse.cz>
16831
16832 PR tree-optimization/46367
16833 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
16834 when we can update original.
16835 (cgraph_mark_inline_edge): Sanity check.
16836 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
16837
16838 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16839
16840 * config/spu/spu.h (ASM_COMMENT_START): Define.
16841
16842 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
16843
16844 PR driver/42445
16845 * gcc.c (%>S): New.
16846 (SWITCH_KEEP_FOR_GCC): Likewise.
16847 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
16848 (do_spec_1): Handle "%>".
16849
16850 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
16851
16852 2011-01-07 Jakub Jelinek <jakub@redhat.com>
16853
16854 PR target/47201
16855 * config/i386/i386.c (ix86_delegitimize_address): If
16856 simplify_gen_subreg fails, return orig_x.
16857
16858 PR bootstrap/47187
16859 * value-prof.c (gimple_stringop_fixed_value): Handle
16860 lhs of the call properly.
16861
16862 2011-01-07 Jan Hubicka <jh@suse.cz>
16863
16864 PR lto/45375
16865 * lto-opt.c (lto_reissue_options): Set flag_shlib.
16866
16867 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16868
16869 * target.def (function_switched_text_sections): New hook.
16870 * doc/tm.texi: Regenerated.
16871 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16872 * final.c (default_function_switched_text_sections): New.
16873 (final_scan_insn): Call function_switched_text_sections when a
16874 mid-function section change occurs.
16875 * output.h (default_function_switched_text_sections): Declare.
16876 * config/darwin-protos.h (darwin_function_switched_text_sections):
16877 Likewise.
16878 * config/darwin.c (darwin_function_switched_text_sections): New.
16879 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16880
16881 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16882
16883 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
16884 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
16885 the secondary code fragment when outputting for DWARF == 2.
16886
16887 2011-01-07 Anatoly Sokolov <aesok@post.ru>
16888
16889 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16890 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
16891 Remove.
16892 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
16893 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16894
16895 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
16896
16897 PR debug/46704
16898 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
16899 when it is not empty.
16900
16901 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
16902
16903 Bobcat Enablement
16904 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
16905 (case ${target}): Add btver1.
16906 * config/i386/driver-i386.c (host_detect_local_cpu): Let
16907 -march=native recognize btver1 processors.
16908 * config/i386/i386-c.c (ix86_target_macros_internal): Add
16909 btver1 def_and_undef
16910 * config/i386/i386.c (struct processor_costs btver1_cost): New
16911 btver1 cost table.
16912 (m_BTVER1): New definition.
16913 (m_AMD_MULTIPLE): Includes m_BTVER1.
16914 (initial_ix86_tune_features): Add btver1 tune.
16915 (processor_target_table): Add btver1 entry.
16916 (static const char *const cpu_names): Add btver1 entry.
16917 (software_prefetching_beneficial_p): Add btver1.
16918 (ix86_option_override_internal): Add btver1 instruction sets.
16919 (ix86_issue_rate): Add btver1.
16920 (ix86_adjust_cost): Add btver1.
16921 * config/i386/i386.h (TARGET_BTVER1): New definition.
16922 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
16923 (enum processor_type): Add PROCESSOR_BTVER1.
16924 * config/i386/i386.md (define_attr "cpu"): Add btver1.
16925
16926 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16927
16928 PR target/43309
16929 * config/i386/i386.c (legitimize_tls_address)
16930 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
16931 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
16932 (tls_initial_exec_64_sun): New pattern.
16933
16934 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
16935
16936 * doc/invoke.texi (Overall Options): Improve wording and markup
16937 of the description of -wrapper.
16938
16939 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16940
16941 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
16942 rdynamic, threads): New Driver options.
16943
16944 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16945
16946 PR target/38118
16947 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
16948 if coming from .tdata.
16949 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
16950
16951 2011-01-06 Jan Hubicka <jh@suse.cz>
16952
16953 PR lto/47188
16954 * collect2.c (main): Do not enable LTOmode when plugin is active.
16955
16956 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16957
16958 PR other/45915
16959 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
16960 --version output if supported.
16961 * configure: Regenerate.
16962
16963 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16964
16965 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
16966 Driver options.
16967
16968 2011-01-06 Jakub Jelinek <jakub@redhat.com>
16969
16970 PR c/47150
16971 * c-convert.c (convert): When converting a complex expression
16972 other than COMPLEX_EXPR to a different complex type, ensure
16973 c_save_expr is called instead of save_expr, unless in_late_binary_op.
16974 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
16975 when converting COMPLEX_TYPE.
16976
16977 2011-01-06 Ira Rosen <irar@il.ibm.com>
16978
16979 PR tree-optimization/47139
16980 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
16981 only the last reduction value is used outside the loop. Update
16982 documentation.
16983
16984 2011-01-05 Joseph Myers <joseph@codesourcery.com>
16985
16986 * config/rtems.opt: New.
16987 * config.gcc (*-*-rtems*): Use rtems.opt.
16988
16989 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
16990
16991 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
16992 processors do not support 3DNow instructions.
16993
16994 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16995
16996 * config/spu/spu.c (spu_option_override): Set parameter
16997 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
16998
16999 2011-01-05 Jan Hubicka <jh@suse.cz>
17000
17001 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
17002 at the command line.
17003
17004 2011-01-05 Martin Jambor <mjambor@suse.cz>
17005
17006 PR lto/47162
17007 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
17008 deltas on streamed outgoing edges.
17009 (output_node_opt_summary): Output info for outgoing edges only when
17010 the node is in new parameter set.
17011 (output_cgraph_opt_summary): New parameter set, passed to the two
17012 aforementioned functions. Update its forward declaration and its
17013 callee too.
17014
17015 2011-01-05 Tom Tromey <tromey@redhat.com>
17016
17017 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
17018 operator to c_finish_omp_atomic.
17019 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
17020 (build_unary_op): Update.
17021 (build_modify_expr): Update.
17022 (build_asm_expr): Update.
17023
17024 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17025
17026 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
17027 newly inserted insns.
17028 (pad_bb): Likewise.
17029 (spu_emit_branch_hint): Likewise.
17030 (insert_hbrp_for_ilb_runout): Likewise.
17031 (spu_machine_dependent_reorg): Call df_finish_pass after
17032 schedule_insns returns.
17033
17034 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17035
17036 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
17037
17038 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
17039
17040 PR tree-optimization/47005
17041 * tree-sra.c (struct access): Add 'non_addressable' bit.
17042 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
17043 (decide_one_param_reduction): Return 0 if the parameter is passed by
17044 reference and one of the accesses in the group is non_addressable.
17045
17046 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
17047
17048 PR tree-optimization/47056
17049 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
17050 (mark_load): Likewise. Handle FUNCTION_DECL specially.
17051 (mark_store): Likewise. Pass STMT to ipa_record_reference.
17052
17053 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
17054
17055 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
17056 initializer. Skip view conversions from aggregate types.
17057
17058 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
17059
17060 PR bootstrap/47055
17061 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
17062
17063 2011-01-04 Philipp Thomas <pth@suse.de>
17064
17065 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
17066 obvious typo.
17067
17068 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17069
17070 * function.c (thread_prologue_and_epilogue_insns): Do not crash
17071 on empty epilogue sequences.
17072
17073 2011-01-04 Joseph Myers <joseph@codesourcery.com>
17074
17075 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
17076 non-static): New Driver options.
17077
17078 2011-01-04 Jie Zhang <jie@codesourcery.com>
17079
17080 PR driver/47137
17081 * gcc.c (default_compilers[]): Set combinable field to 0
17082 for all assembly languages.
17083
17084 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
17085
17086 * config/mips/loongson3a.md: New file.
17087 * config/mips/mips.md: Include loongson3a.md.
17088 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
17089 TUNE_LOONGSON_3A.
17090
17091 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
17092
17093 PR middle-end/47017
17094 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
17095 instead of convert_memory_address_addr_space on the base expression.
17096
17097 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17098
17099 * config/spu/spu.c (spu_option_override): Update error text
17100 for bad -march= / -mtune= values.
17101
17102 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17103
17104 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
17105 if branch-hint optimization will be performed.
17106
17107 2011-01-03 Jakub Jelinek <jakub@redhat.com>
17108
17109 PR tree-optimization/47148
17110 * ipa-split.c (split_function): Convert arguments to
17111 DECL_ARG_TYPE if possible.
17112
17113 PR tree-optimization/47155
17114 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
17115 when computing uns.
17116
17117 PR rtl-optimization/47157
17118 * combine.c (try_combine): If undobuf.other_insn becomes
17119 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
17120 and set *new_direct_jump_p too.
17121
17122 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
17123
17124 PR tree-optimization/47021
17125 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
17126
17127 2011-01-03 Jakub Jelinek <jakub@redhat.com>
17128
17129 * gcc.c (process_command): Update copyright notice dates.
17130 * gcov.c (print_version): Likewise.
17131 * gcov-dump.c (print_version): Likewise.
17132 * mips-tfile.c (main): Likewise.
17133 * mips-tdump.c (main): Likewise.
17134
17135 2011-01-03 Martin Jambor <mjambor@suse.cz>
17136
17137 PR tree-optimization/46801
17138 * tree-sra.c (type_internals_preclude_sra_p): Check whether
17139 aggregate fields start at byte boundary instead of the bit-field flag.
17140
17141 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
17142
17143 PR driver/47137
17144 * gcc.c (main): Revert revision 168407.
17145
17146 2011-01-03 Martin Jambor <mjambor@suse.cz>
17147
17148 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
17149
17150 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17151
17152 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
17153 vector optab to expand vector/scalar shift, update gimple to vector.
17154
17155 2011-01-03 Martin Jambor <mjambor@suse.cz>
17156
17157 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
17158 a thunk.
17159
17160 2011-01-03 Martin Jambor <mjambor@suse.cz>
17161
17162 PR tree-optimization/46984
17163 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
17164 HOST_WIDE_INT.
17165 (cgraph_create_indirect_edge): Fixed line length.
17166 (cgraph_indirect_call_info): Declare.
17167 (cgraph_make_edge_direct) Update declaration.
17168 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
17169 (cgraph_create_indirect_edge): Use it.
17170 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
17171 callees.
17172 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
17173 the new thunk_delta representation.
17174 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
17175 HOST_WIDE_INT.
17176 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
17177 (ipa_read_indirect_edge_info): Likewise.
17178 * lto-cgraph.c (output_edge_opt_summary): New function.
17179 (output_node_opt_summary): Call it on all outgoing edges.
17180 (input_edge_opt_summary): New function.
17181 (input_node_opt_summary): Call it on all outgoing edges.
17182
17183 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
17184
17185 PR driver/47137
17186 * gcc.c (main): Don't check have_o when settting combine_inputs.
17187
17188 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
17189
17190 * regrename.c: Add general comment describing the pass.
17191 (struct du_head): Remove 'length' field.
17192 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
17193 (regrename_optimize): Do not sort chains. Rework comments, add others.
17194 Force renaming to the preferred class (if any) in the first pass and do
17195 not consider registers that belong to it in the second pass.
17196 (create_new_chain): Do not set 'length' field.
17197 (scan_rtx_reg): Likewise.
17198
17199 2011-01-02 Jakub Jelinek <jakub@redhat.com>
17200
17201 PR tree-optimization/47140
17202 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
17203 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
17204 to bit_value_binop.
17205
17206 PR rtl-optimization/47028
17207 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
17208 parm_birth_insn instead of at the beginning of first bb.
17209
17210 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
17211
17212 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
17213 Remove the word "see" before "@pxref".
17214 * doc/rtl.texi: Remove the word "see" before "@pxref".
17215
17216 2011-01-01 Jan Hubicka <jh@suse.cz>
17217
17218 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
17219 memory.
17220
17221 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
17222
17223 PR target/38662
17224 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
17225
17226 \f
17227 Copyright (C) 2011 Free Software Foundation, Inc.
17228
17229 Copying and distribution of this file, with or without modification,
17230 are permitted in any medium without royalty provided the copyright
17231 notice and this notice are preserved.