]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
re PR tree-optimization/42108 (50% performance regression)
[thirdparty/gcc.git] / gcc / ChangeLog
1 2009-12-19 Richard Guenther <rguenther@suse.de>
2
3 PR tree-optimization/42108
4 * tree-ssa-sccvn.c (last_vuse_ptr): New variable.
5 (vn_reference_lookup_2): Update last seen VUSE.
6 (vn_reference_lookup_3): Avoid updating last seen VUSE after
7 translating.
8 (visit_reference_op_load): Use last seen VUSE from the first
9 lookup when entering into the table.
10
11 2009-12-19 Joern Rennecke <amylaar@spamcop.net>
12
13 * Makefile.in (PLUGIN_HEADERS): Add more headers.
14
15 * tree-pass.h (GCC_PASS_LISTS): Define.
16 (PASS_LIST_NO_all_lowering_passes): New enumeration value.
17 (PASS_LIST_NO_all_small_ipa_passes): Likewise.
18 (PASS_LIST_NO_all_regular_ipa_passes): Likewise.
19 (PASS_LIST_NO_all_lto_gen_passes): Likewise.
20 (PASS_LIST_NO_all_passes): Likewise.
21 (PASS_LIST_NUM): Likewise.
22 (gcc_pass_lists): Declare.
23 * passes.c (gcc_pass_lists): Define.
24
25 2009-12-18 Richard Guenther <rguenther@suse.de>
26
27 * tree-ssa-sccvn.c (copy_nary): New function.
28 (copy_phis): Likewise.
29 (copy_references): Likewise.
30 (process_scc): Avoid last iteration by copying the
31 optimistic table to the valid table.
32
33 2009-12-17 Jakub Jelinek <jakub@redhat.com>
34
35 * dwarf2out.c (loc_descriptor): For SYMBOL_REFs and LABEL_REFs
36 use DW_OP_addr+DW_OP_stack_value instead of DW_OP_implicit_value.
37 (add_const_value_attribute): For CONST_STRING, SYMBOL_REFs and
38 LABEL_REFs use DW_OP_addr+DW_OP_stack_value DW_AT_location instead of
39 DW_AT_const_value.
40
41 2009-12-17 Alexandre Oliva <aoliva@redhat.com>
42
43 PR debug/41679
44 * var-tracking.c (count_uses): Count MO_VAL_USE of original
45 MO_VAL_SET value for COND_EXEC.
46 (add_stores): Handle conditional stores.
47
48 PR debug/41679
49 * var-tracking.c (use_type): Remove indirection from loc.
50 (count_uses): Dereference incoming loc early.
51 (add_uses): Dereference incoming loc early.
52
53 PR debug/41679
54 * var-tracking.c (add_stores): Avoid value mode mismatch for
55 promoted declarations.
56
57 2009-12-17 Jakub Jelinek <jakub@redhat.com>
58
59 PR c++/42386
60 * ipa.c (function_and_variable_visibility): Clear same_comdat_group
61 links of DECL_EXTERNAL nodes.
62
63 2009-12-17 Sandra Loosemore <sandra@codesourcery.com>
64
65 * doc/rtl.texi (Vector Operations): Clarify vec_select result mode.
66
67 2009-12-17 Julian Brown <julian@codesourcery.com>
68
69 * config/arm/bpabi-v6m.S (test_div_by_zero): New macro.
70 (aeabi_ldivmod, aeabi_uldivmod): Use above macro.
71 * config/arm/bpabi.S (test_div_by_zero): New macro.
72 (aeabi_ldivmod, aeabi_uldivmod): Use above macro.
73 * config/arm/lib1funcs.asm (ARM_LDIV0): Tail-call int div-by-zero
74 handler for EABI. Add signed/unsigned argument, pass correct value
75 to that handler.
76 (THUMB_LDIV0): Same, for Thumb.
77 (DIV_FUNC_END): Add signed argument.
78 (WEAK): New macro (for EABI).
79 (__udivsi3, __umodsi3): Add unsigned argument to DIV_FUNC_END. For
80 __udivsi3, add entry point which skips division-by-zero test.
81 (__divsi3, __modsi3): Add signed argument to DIV_FUNC_END.
82 (__aeabi_uidivmod, __aeabi_idivmod): Check for division by zero.
83 Call __udivsi3 or __divsi3 via entry points which skip
84 division-by-zero tests.
85 (__div0): Rename to __aeabi_idiv0, __aeabi_ldiv0 for EABI, and
86 declare those names weak.
87
88 2009-12-17 Richard Guenther <rguenther@suse.de>
89
90 PR middle-end/42397
91 * builtins.c (get_object_alignment): Properly deal with
92 a CONST_DECL base.
93 * expr.c (emit_block_move_hints): Assert the alignment makes
94 sense.
95
96 2009-12-17 Uros Bizjak <ubizjak@gmail.com>
97
98 PR target/32280
99 * config/i386/i386-modes.def (V1TI): New vector mode.
100 * config/i386/i386.h (VALID_SSE_REG_MODE): Add V1TImode.
101 (SSE_REG_MODE_P): Ditto.
102 * config/i386/sse.md (SSEMODE16): New mode iterator.
103 (AVXMODE16): Ditto.
104 (avxvecmode): Handle V1TI mode.
105 (*avx_mov<mode>_internal): Use AVXMODE16 instead of AVXMODE.
106 (mov<mode>): Use SSEMODE16 instead of SSEMODE.
107 (*mov<mode>_internal): Ditto.
108 (push<mode>1): Ditto.
109 (movmisalign<mode>): Ditto.
110 (sse2_ashlv1ti): Rename from sse2_ashlti.
111 (sse2_lshrv1ti): Rename from sse2_lshrti.
112 (*avx_ashlv1ti): Rename from *avx_ashlti and move from i386.md.
113 (*avx_lshrv1ti): Rename from *avx_lshrti and move from i386.md.
114 (vec_shl_<mode>): Convert operands to V1TImode and use V1TI shift.
115 (vec_shr_<mode>): Ditto.
116 (*sse2_mulv4si3): Update for renamed sse2_ashlv1ti3.
117 (udot_prodv4si): Ditto.
118 * config/i386/i386.c (classify_argument): Handle V1TImode.
119 (function_arg_advance_32): Ditto.
120 (function_arg_32): Ditto.
121 (ix86_expand_sse4_unpack): Convert operands to V1TImode and update
122 for renamed gen_sse2_lshrv1ti3.
123 (ix86_expand_args_builtin) <V2DI_FTYPE_V2DI_INT_CONVERT>: Set rmode
124 to V1TImode.
125 (struct builtin_description) <__builtin_ia32_pslldqi128>: Update
126 for renamed sse2_ashlv1ti3.
127 <__builtin_ia32_psrldqi128>: Update for renamed sse2_lshrv1ti3.
128
129 Revert:
130 2007-06-11 Uros Bizjak <ubizjak@gmail.com>
131
132 PR target/32280
133 * config/i386/sse.md ("sse2_ashlti", "sse2_lshrti3"): Move ...
134 * config/i386/i386.md ("sse2_ashlti", "sse2_lshrti3"): ... to here.
135
136 2009-12-17 Richard Earnshaw <rearnsha@arm.com>
137
138 PR target/42372
139 * arm.md (pic_add_dot_plus_eight): Change output constraint from
140 update to write.
141
142 2009-12-17 Shujing Zhao <pearly.zhao@oracle.com>
143
144 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
145 Update build_indirect_ref calls.
146
147 2009-12-17 Uros Bizjak <ubizjak@gmail.com>
148
149 * config/i386/sync.md (IMODE): Remove mode iterator.
150 (modesuffix): Remove mode attribute.
151 (modeconstraint): Ditto.
152 (immconstraint): Ditto.
153 (*sync_compare_and_swap<mode>): Use SWI mode iterator instead of
154 IMODE mode iterator, imodesuffix mode attribute instead of modesuffix,
155 <r> mode attribute instead of modeconstraint and <i> mode attribute
156 instead of immconstraint.
157 (sync_double_compare_and_swap<mode>): Ditto.
158 (sync_old_add<mode>): Ditto.
159 (sync_lock_test_and_set<mode>): Ditto.
160 (sync_add<mode>): Ditto.
161 (sync_sub<mode>): Ditto.
162 (sync_and<mode>): Ditto.
163 (sync_ior<mode>): Ditto.
164 (sync_xor<mode>): Ditto.
165 (sync_<code><mode>): Macroize insn pattern from
166 sync_{and,ior,xor}<mode> using any_logic code iterator.
167
168 2009-12-17 Shujing Zhao <pearly.zhao@oracle.com>
169
170 PR c/40885
171 * c-common.h (ref_operator): New type.
172 (build_indirect_ref): Adjust prototype with new argument.
173 * c-typeck.c (build_indirect_ref): Accept ref_operator as argument and
174 emit the diagnostics for easy translation.
175 (build_array_ref): Update calls to build_indirect_ref.
176 * c-omp.c (c_finish_omp_atomic): Likewise.
177 * c-parser.c (c_parser_unary_expression,
178 c_parser_postfix_expression_after_primary): Likewise.
179
180 2009-12-16 Richard Guenther <rguenther@suse.de>
181
182 PR lto/42392
183 * langhooks.c (lhd_begin_section): Make sure to switch back
184 to the text section, not some random one.
185
186 2009-12-16 Jakub Jelinek <jakub@redhat.com>
187
188 * tree-chrec.c (chrec_convert_1): Only fold (T2)(t +- x) to
189 (T2)t +- (T2)x if only integer types are involved.
190
191 2009-12-16 Ben Elliston <bje@au.ibm.com>
192
193 * tree-data-ref.h (dot_rdg): Remove prototype.
194 * tree-data-ref.c (dog_rdg_1, dot_rdg): Remove.
195
196 2009-12-16 Kazu Hirata <kazu@codesourcery.com>
197
198 * doc/invoke.texi, doc/options.texi, doc/plugins.texi,
199 doc/tm.texi: Fix typos.
200
201 2009-12-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
202
203 * doc/extend.texi (Function Attributes, Extended Asm):
204 Replace TABs with spaces.
205 * doc/md.texi (Standard Names): Likewise.
206 * doc/plugins.texi (Plugins): Likewise.
207
208 * doc/c-tree.texi (Expression trees): Use @itemx for all but
209 the first item for merged items.
210 * doc/extend.texi (Variable Attributes): Likewise.
211 * doc/install.texi (Configuration): Likewise.
212 * doc/invoke.texi (RS/6000 and PowerPC Options, RX Options):
213 Likewise.
214
215 2009-12-15 Richard Guenther <rguenther@suse.de>
216
217 * tree.c (free_lang_data_in_binfo): Do not free BINFO_OFFSET
218 and BINFO_VPTR_FIELD.
219 (free_lang_data_in_type): Do not free TYPE_STUB_DECL if we
220 generate debug information.
221 (free_lang_data_in_decl): Do not free DECL_SIZE_UNIT,
222 DECL_SIZE, DECL_FIELD_OFFSET and DECL_FCONTEXT.
223 (free_lang_data): Do not disable debuginfo.
224 * lto-streamer-out.c (write_symbol_vec): Deal with
225 non-constant DECL_SIZE.
226 (pack_ts_base_value_fields): Write types with false
227 TREE_ASM_WRITTEN.
228 (lto_output_ts_type_tree_pointers): Stream TYPE_STUB_DECL.
229 * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Stream
230 TYPE_STUB_DECL.
231 * dwarf2out.c (add_pure_or_virtual_attribute): Check for
232 DECL_CONTEXT.
233 (gen_type_die_for_member): Test for TYPE_STUB_DECL.
234 * opts.c (decode_options): Do not disable var-tracking for lto.
235 * doc/invoke.texi (-flto): Document -flto vs. -g experimental
236 status.
237 (-fwhopr): Document experimental status.
238
239 2009-12-15 Aldy Hernandez <aldyh@redhat.com>
240
241 PR graphite/42185
242 * graphite-sese-to-poly.c (is_reduction_operation_p): Assert that
243 we are a GIMPLE_ASSIGN. Do not calculate rhs code twice.
244 (follow_ssa_with_commutative_ops): Return NULL on non assignment.
245
246 2009-12-15 Eric Botcazou <ebotcazou@adacore.com>
247
248 * config/rs6000/rs6000.md (probe_stack): Use an enclosing SET.
249
250 2009-12-15 Richard Guenther <rguenther@suse.de>
251
252 * gimple.h (compare_field_offset): Declare.
253 * gimple.c (compare_field_offset): Export.
254 * lto-streamer-in.c (input_gimple_stmt): Use compare_field_offset.
255
256 2009-12-15 Richard Guenther <rguenther@suse.de>
257
258 * lto-cgraph.c (lto_output_node): Also stream the alias
259 for regular aliases.
260 (input_node): Likewise.
261
262 2009-12-15 Paolo Bonzini <bonzini@gnu.org>
263 Shujing Zhao <pearly.zhao@oracle.com>
264
265 * intl.c (get_spaces): New.
266 * intl.h (get_spaces): New.
267
268 2009-12-14 Jakub Jelinek <jakub@redhat.com>
269
270 PR bootstrap/42369
271 * config/i386/i386.c (ix86_expand_special_args_builtin): Avoid
272 using switch with CODE_FOR_lwp_lwp* cases.
273
274 * config/i386/i386-builtin-types.def (PVOID_FTYPE_VOID): Use
275 DEF_FUNCTION_TYPE (PVOID) instead of DEF_FUNCTION_TYPE (PVOID, VOID).
276
277 2009-12-14 Eric Botcazou <ebotcazou@adacore.com>
278
279 * cfgexpand.c (expand_debug_expr) <INDIRECT_REF>: Remove overzealous
280 assertion and useless code.
281 <TARGET_MEM_REF>: Likewise.
282
283 2009-12-14 Alexandre Oliva <aoliva@redhat.com>
284
285 PR debug/41473
286 * dwarf2out.c (AT_loc_list_ptr): New.
287 (resolve_addr): Remove unresolved attributes and loc_list entries.
288
289 PR debug/41473
290 * dwarf2out.c (add_var_loc_to_decl): Don't drop initial empty
291 locations.
292 (new_loc_list): Drop gensym arg. Move generation of ll_symbol...
293 (gen_llsym): ... here. New function.
294 (add_loc_descr_to_loc_list): Removed.
295 (loc_descriptor): Infer mode from CONST_DOUBLEs and CONST_VECTORs.
296 (single_element_loc_list): Removed.
297 (dw_loc_list): Don't create entries without a location. Don't
298 special-case the first node of the list, only single nodes.
299 (single_element_loc_list_p): Simplify.
300 (loc_list_from_tree): Don't use DECL_RTL if loc_list is nonempty.
301 (add_location_or_const_value_attribute): Test var loc for NULL.
302 (convert_cfa_to_fb_loc_list): Adjust calls to new new_loc_list,
303 call gen_llsym if needed.
304
305 2009-12-14 Jakub Jelinek <jakub@redhat.com>
306
307 * cgraph.h (cgraph_set_nothrow_flag, cgraph_set_readonly_flag,
308 cgraph_set_pure_flag, cgraph_set_looping_const_or_pure_flag): New
309 prototypes.
310 * cgraph.c (cgraph_set_nothrow_flag, cgraph_set_readonly_flag,
311 cgraph_set_pure_flag, cgraph_set_looping_const_or_pure_flag): New
312 functions.
313 * except.h (set_nothrow_function_flags): Remove prototype.
314 * except.c (set_nothrow_function_flags): Use cgraph_set_nothrow_flag.
315 Make static.
316 * ipa-pure-const.c (propagate): Use cgraph_set_nothrow_flag,
317 cgraph_set_readonly_flag, cgraph_set_pure_flag
318 and cgraph_set_looping_const_or_pure_flag.
319 (local_pure_const): Likewise.
320
321 2009-12-14 Jakub Jelinek <jakub@redhat.com>
322 Sebastian Pop <sebastian.pop@amd.com>
323
324 * config/i386/i386-builtin-types.def (PVOID): Declared.
325 (VOID_FTYPE_PVOID): Declared.
326 (PVOID_FTYPE_VOID): Declared.
327 (UCHAR_FTYPE_USHORT_UINT_USHORT): Removed.
328 (VOID_FTYPE_USHORT_UINT_USHORT): Removed.
329 * config/i386/i386.c (IX86_BUILTIN_LLWPCB16, IX86_BUILTIN_LLWPCB32,
330 IX86_BUILTIN_LLWPCB64, IX86_BUILTIN_SLWPCB16, IX86_BUILTIN_SLWPCB32,
331 IX86_BUILTIN_SLWPCB64, IX86_BUILTIN_LWPVAL16, IX86_BUILTIN_LWPINS16):
332 Removed.
333 (IX86_BUILTIN_LLWPCB, IX86_BUILTIN_SLWPCB): New.
334 (bdesc_special_args): Adjust declaration of __builtin_ia32_llwpcb,
335 __builtin_ia32_slwpcb, __builtin_ia32_lwpval32,
336 __builtin_ia32_lwpval64, __builtin_ia32_lwpins32, and
337 __builtin_ia32_lwpins64.
338 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PVOID.
339 Do not handle VOID_FTYPE_USHORT_UINT_USHORT and
340 UCHAR_FTYPE_USHORT_UINT_USHORT. Warn when the third operand is
341 not an immediate. Also handle builtin functions with 3 arguments.
342 (ix86_expand_builtin): Handle IX86_BUILTIN_LLWPCB and
343 IX86_BUILTIN_SLWPCB.
344 * config/i386/i386.md (UNSPEC_LLWP_INTRINSIC, UNSPEC_SLWP_INTRINSIC):
345 Renamed UNSPECV_LLWP_INTRINSIC and UNSPECV_SLWP_INTRINSIC.
346 (memory attribute): Handle lwp.
347 (lwp*): Rewrite all the insn patterns for LWP.
348 * config/i386/lwpintrin.h (__llwpcb16, __llwpcb32, __llwpcb64,
349 __slwpcb16, __slwpcb32, __slwpcb64, __lwpval16, __lwpins16): Removed.
350 (__llwpcb, __slwpcb): New.
351
352 2009-12-14 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
353
354 * dominance.c (set_immediate_dominator): Don't mark as inline.
355
356 2009-12-14 Eric Botcazou <ebotcazou@adacore.com>
357
358 * doc/tm.texi (STACK_CHECK_PROTECT): Document alternate default.
359 * doc/md.texi (check_stack): Clarify.
360 (probe_stack): Likewise.
361 * config/rs6000/rs6000.md (UNSPEC_PROBE_STACK): New constant.
362 (probe_stack): New insn.
363
364 2009-12-14 Ben Elliston <bje@au.ibm.com>
365
366 * lto-streamer-in.c (lto_get_builtin_tree): fclass can only be a
367 BUILT_IN_NORMAL or BUILT_IN_MD.
368
369 2009-12-13 Eric Botcazou <ebotcazou@adacore.com>
370
371 * doc/tm.texi (STACK_CHECK_PROBE_LOAD): Delete.
372 * expr.h (STACK_CHECK_PROBE_LOAD): Likewise.
373 * explow.c (emit_stack_probe): Do not test STACK_CHECK_PROBE_LOAD.
374 * system.h (STACK_CHECK_PROBE_LOAD): Poison.
375
376 2009-12-13 Michael Matz <matz@suse.de>
377
378 PR tree-optimization/42027
379 * dojump.c (do_jump <TRUTH_AND_EXPR, TRUTH_OR_EXPR>): Go to
380 TRUTH_ANDIF_EXPR resp. TRUTH_ORIF_EXPR expander, instead of
381 falling through.
382
383 2009-12-13 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
384
385 PR target/23726
386 * config/avr/predicates.md (pseudo_register_operand): New predicate
387 for pseudos.
388 * config/avr/avr.md (divmodqi4): Replace with define_insn_and_split
389 to allow div/mod optimization.
390 (udivmodqi4): Ditto.
391 (divmodhi4): Ditto.
392 (udivmodhi4): Ditto.
393 (divmodsi4): Ditto.
394 (udivmodsi4): Ditto.
395
396 2009-12-13 Richard Guenther <rguenther@suse.de>
397
398 PR tree-optimization/42357
399 * tree-sra.c (sra_modify_assign): Do not tear apart struct copies.
400
401 2009-12-12 Richard Guenther <rguenther@suse.de>
402
403 * tree.c (need_assembler_name_p): Abstract decls do not need
404 an assembler name.
405 * dwarf2out.c (dwarf2out_abstract_function): Preserve
406 DECL_ABSTRACT properly.
407
408 2009-12-11 Richard Guenther <rguenther@suse.de>
409
410 * lto-streamer-in.c (lto_input_tree_ref): Do not register
411 DEBUG_EXPR_DECLs with the varpool.
412
413 2009-12-11 Eric Botcazou <ebotcazou@adacore.com>
414
415 * config/sparc/linux-unwind.h (MD_FROB_UPDATE_CONTEXT, 64-bit): Define.
416 (sparc64_frob_update_context): New function.
417
418 2009-12-11 Richard Guenther <rguenther@suse.de>
419
420 PR lto/41658
421 PR lto/41657
422 * lto-streamer-out.c (write_global_stream): Do not make decls
423 weak but resort to TREE_ASM_WRITTEN to avoid multiple definitions.
424 Make sure to mark all decls that we have written.
425
426 2009-12-11 Sebastian Andrzej Siewior <bigeasy@linutronix.de>
427
428 PR target/36047
429
430 * config/m68k/linux.h: Remove LABELNO from the mcount statement. It is
431 not used by glibc/uclibc and does not work with large binaries.
432
433 2009-12-11 Richard Guenther <rguenther@suse.de>
434
435 PR lto/41662
436 * lto-streamer-in.c (lto_init_eh): Move eh_initialized_p
437 handling here.
438 (input_eh_regions): Adjust.
439 (lto_input_ts_function_decl_tree_pointers): Initialize EH
440 if a non-NULL DECL_FUNCTION_PERSONALITY was read in.
441
442 2009-12-11 Duncan Sands <baldrick@free.fr>
443
444 * passes.c (make_pass_instance): Allocate and copy the right amount of
445 memory for ipa passes, which are not the same size as other passes.
446
447 2009-12-11 Joern Rennecke <amylaar@spamcop.net>
448
449 * plugin.c (get_named_event_id): Fix hash table rebuild to include
450 dynamically allocated events.
451
452 2009-12-11 Richard Guenther <rguenther@suse.de>
453
454 PR lto/42320
455 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Properly
456 detect non-prevailing decls.
457
458 2009-12-10 Jakub Jelinek <jakub@redhat.com>
459
460 PR c++/42317
461 * cgraph.h (struct cgraph_node): Add same_comdat_group field.
462 * cgraph.c (cgraph_remove_node): Unchain node from same_comdat_group
463 circular list.
464 (cgraph_node_can_be_local_p): Return false for DECL_COMDAT with
465 node->same_comdat_group.
466 * ipa.c (cgraph_remove_unreachable_nodes): For any reachable node
467 mark all its same_comdat_group nodes as also reachable.
468 (cgraph_externally_visible_p): Return true even if any of
469 same_comdat_group nodes has address taken.
470 * lto-cgraph.c (lto_output_node): Stream out same_comdat_group.
471 (output_cgraph): Ensure other same_comdat_group nodes are also
472 included.
473 (input_node): Stream in same_comdat_group.
474 (input_cgraph_1): Fix up same_comdat_group fields from references
475 to pointers.
476 * cgraphunit.c (cgraph_analyze_functions): Mark all other
477 same_comdat_group nodes as reachable.
478 (cgraph_mark_functions_to_output): For each node->process process
479 also other same_comdat_group nodes.
480 * ipa-inline.c (cgraph_clone_inlined_nodes): Don't reuse nodes
481 with same_comdat_group non-NULL.
482 (cgraph_mark_inline_edge): Likewise.
483
484 2009-12-10 Jan Hubicka <jh@suse.cz>
485
486 PR middle-end/42228
487 PR middle-end/42110
488 * cgraph.c (cgraph_create_edge_including_clones): Add old_stmt
489 parameter; update edge if it already exists.
490 (cgraph_remove_node): Handle correctly cases where we are removing
491 node having clones.
492 * cgraph.h (cgraph_create_edge_including_clones): Declare.
493 (verify_cgraph_node): Add missing error_found = true code.
494 (cgraph_materialize_all_clones): Remove call edges of dead nodes.
495 * ipa.c (cgraph_remove_unreachable_nodes): Correctly look for master
496 clone; fix double linked list removal.
497 * tree-inline.c (copy_bb): Update cgraph_create_edge_including_clones
498 call; fix frequency of newly created edge.
499
500 2009-12-10 Bernd Schmidt <bernd.schmidt@analog.com>
501
502 PR rtl-opt/42216
503 * regrename.c: Error out if MAX_RECOG_OPERANDS is larger than
504 HOST_BITS_PER_WIDE_INT.
505 (verify_reg_in_set): New function, broken out of verify_reg_tracked.
506 (verify_reg_tracked): Use it.
507 (scan_rtx_reg): When seeing a use involving a superset of the
508 registers in an existing chain, enlarge that chain. Otherwise,
509 allow subsets and set fail_current_block for all other kinds of
510 overlap.
511 (hide_operands): New argument UNTRACKED_OPERANDS; callers changed.
512 Do not modify operands when the bit with the corresponding number
513 is set in that bitmap.
514 (build_def_use): When we see matching operands with different
515 modes, don't set fail_current_block, but keep track of such
516 operands in a bitmap if their registers aren't already tracked
517 in an open chain. Pass this bitmap to all hide_operands calls.
518
519 2009-12-10 Richard Guenther <rguenther@suse.de>
520
521 PR tree-optimization/42337
522 * tree-ssa-pre.c (seen_during_translate): Remove.
523 (phi_translate_1): Collapse into ...
524 (phi_translate): ... this. Remove seen parameter and
525 adjust recursive calls.
526
527 2009-12-10 Richard Guenther <rguenther@suse.de>
528 Allan Sandfeld Jensen <linux@carewolf.com>
529
530 * tree-vectorizer.c (vectorize_loops): Properly guard
531 vectorizer verboseness.
532
533 2009-12-10 Ben Elliston <bje@au.ibm.com>
534
535 * fwprop.c (free_load_extend): Initialise `use'.
536
537 2009-12-09 David Edelsohn <edelsohn@gnu.org>
538
539 * builtins.c (do_mpc_ckconv): Pass the component type to
540 real_from_mpfr().
541
542 2009-12-09 Xinliang David Li <davidxl@google.com>
543
544 PR tree-optimization/42337
545 * tree-ssa-pre.c (phi_translate_1): Push and Pop SEEN set.
546
547 2009-12-09 Nathan Froyd <froydnj@codesourcery.com>
548
549 * config/rs6000/vector.md (absv2sf2, negv2sf2, addv2sf3, subv2sf3,
550 mulv2sf3, divv2sf3): New expanders.
551 * config/rs6000/spe.md (spe_evabs, spe_evand, spe_evaddw, spe_evsubfw,
552 spe_evdivws): Rename to use standard GCC names.
553 * config/rs6000/paired.md (negv2sf, absv2sf2, addv2sf3, subv2sf3,
554 mulv2sf3, divv2sf3): Rename to avoid conflict with the new expanders.
555 * config/rs6000/rs6000.c (bdesc_2arg, bdesc_1arg): Use new CODE_FOR_
556 names for renamed patterns.
557
558 2009-12-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
559
560 * config/s390/s390.md ("copysign<mode>3"): Pattern removed.
561
562 2009-12-09 Jakub Jelinek <jakub@redhat.com>
563
564 * configure.ac: Compute ld_ver, ld_vers, ld_date, ld_vers_major,
565 ld_vers_minor and ld_vers_path always, not just when gcc_cv_ld_hidden
566 isn't cached.
567 * configure: Regenerated.
568
569 2009-12-08 Richard Henderson <rth@redhat.com>
570
571 * combine.c (setup_incoming_promotions): Fix sign-extend of
572 zero-extend case; tidy conditions.
573
574 2009-12-08 Michael Matz <matz@suse.de>
575
576 PR middle-end/38474
577 * function.c (free_temp_slots): Only walk the temp slot
578 addresses and combine slots if we actually changes something.
579 (pop_temp_slots): Ditto.
580
581 2009-12-08 Olga Golovanevsky <olga@il.ibm.com>
582
583 PR middle-end/41843
584 * ipa-struct-reorg.c (compare_fields): New function.
585 (find_field_in_struct_1): Use compare_fields function.
586 (is_equal_types): Likewise.
587
588 2009-12-07 DJ Delorie <dj@redhat.com>
589
590 PR c/42312
591 * config/mep/mep.c (mep_expand_prologue): Set
592 really_need_stack_frame after frame_size is set.
593
594 2009-12-07 Richard Henderson <rth@redhat.com>
595
596 PR rtl-opt/42269
597 * combine.c (setup_incoming_promotions): Improve the conditions
598 under which we respect the promotions applied.
599
600 2009-12-07 Eric Botcazou <ebotcazou@adacore.com>
601
602 * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch.
603 * config/sparc/linux64.h (ASM_SPEC): Likewise.
604
605 2009-12-07 Richard Henderson <rth@redhat.com>
606
607 PR debug/42299
608 PR debug/42166
609 * tree-ssa.c (insert_debug_temp_for_var_def): Skip propagation
610 for ssa names already registered for update.
611
612 2009-12-07 Jakub Jelinek <jakub@redhat.com>
613
614 PR debug/42244
615 * ddg.c (add_inter_loop_mem_dep): Use ANTI_DEP if from or to
616 is a DEBUG_INSN.
617
618 2009-12-07 Sebastian Pop <sebastian.pop@amd.com>
619
620 * config/i386/driver-i386.c (host_detect_local_cpu): Add -mlwp to the
621 options when bit_LWP is set.
622
623 2009-12-07 Sebastian Pop <sebastian.pop@amd.com>
624
625 * config/i386/cpuid.h (bit_ABM): New.
626 * config/i386/driver-i386.c (host_detect_local_cpu): Add -mabm to the
627 options when bit_ABM is set.
628
629 2009-12-07 Jakub Jelinek <jakub@redhat.com>
630
631 * config/i386/i386.c (bdesc_special_args): Move __builtin_clzs from
632 this array ...
633 (bdesc_args): ... here.
634 * config.gcc (i[34567]86-*-*): Include abmintrin.h.
635 (x86_64-*-*): Likewise.
636
637 2009-12-07 Sebastian Pop <sebastian.pop@amd.com>
638
639 * config.gcc (i[34567]86-*-*, x86_64-*-*): Add popcntintrin.h.
640 * config/i386/abmintrin.h (_mm_popcnt_u32, _mm_popcnt_u64): Moved...
641 * config/i386/i386-c.c (__POPCNT__): Defined.
642 * config/i386/popcntintrin.h: ...here. New file.
643 * config/i386/smmintrin.h (_mm_popcnt_u32, _mm_popcnt_u64): Moved...
644 Include popcntintrin.h.
645 * config/i386/x86intrin.h: Include popcntintrin.h when __POPCNT__
646 is defined.
647
648 2009-12-07 Sebastian Pop <sebastian.pop@amd.com>
649
650 * config/i386/i386-protos.h (ix86_expand_fma4_multiple_memory):
651 Removed.
652 * config/i386/i386.c (ix86_expand_fma4_multiple_memory): Removed.
653 * config/i386/sse.md: Remove all XOP splitters.
654 Allow the second and fourth operands of XOP multiply-add insns
655 to be nonimmediate.
656
657 2009-12-07 Sebastian Pop <sebastian.pop@amd.com>
658
659 * config/i386/sse.md: Remove all FMA4 splitters.
660 Allow the second operand of FMA4 insns to be a nonimmediate.
661 Fix comments punctuation.
662
663 2009-12-07 Julian Brown <julian@codesourcery.com>
664
665 * config/arm/constraints.md (Ps, Pt): New constraint letters.
666 * config/arm/thumb2.md (*thumb2_addsi_short): Tighten constraints.
667
668 2009-12-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
669
670 PR other/40302
671 * configure.ac (HAVE_mpc): Don't define.
672 * config.in, configure: Regenerate.
673
674 PR other/40302
675 * builtins.c: Remove HAVE_mpc* checks throughout.
676 * fold-const.c: Likewise.
677 * real.h: Likewise.
678 * toplev.c: Likewise.
679
680 2009-12-07 Edmar Wienskoski <edmar@freescale.com>
681
682 * config.gcc (cpu_is_64bit): Add new core e500mc64.
683 (powerpc*-*-*): Add new core e500mc64.
684 * config/rs6000/e500mc64.md: New file.
685 * config/rs6000/rs6000.c (processor_costs): Add new costs for
686 e500mc64.
687 (rs6000_override_options): Add e500mc64 case to
688 processor_target_table. Altivec and Spe options not allowed with
689 e500mc64. Disable string instructions for e500mc64. Enable branch
690 targets alignment for both e500mc and e500mc64. Initialize
691 rs6000_cost for e500mc64.
692 (rs6000_emit_sISEL): New function.
693 (rs6000_emit_sCOND): Call rs6000_emit_sISEL for isel targets.
694 (rs6000_emit_int_cmove): Fix mode of 64 bit isel pattern
695 generation.
696 (rs6000_issue_rate): Set issue rate for e500mc64.
697 (rs6000_rtx_costs): Set more accurate cost for mfcr instruction
698 on architectures with isel.
699 * config/rs6000/rs6000-protos.h (rs6000_emit_sISEL): Declare.
700 * config/rs6000/rs6000.h (processor_type): Add
701 PROCESSOR_PPCE500MC64.
702 (ASM_CPU_SPEC): Add e500mc64.
703 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc64.
704 Include e500mc64.md.
705 (abssi2_isel): Expand pattern to handle DImode.
706 (nabs<mode>2_isel): New pattern.
707 (absdi2): Change pattern to handle 64 bit isel targets.
708 (absdi2_internal): Exclude ISEL targets.
709 (nabsdi2): Exclude ISEL targets.
710 * doc/invoke.texi: Add e500mc64 to list of cpus.
711
712 2009-12-07 Uros Bizjak <ubizjak@gmail.com>
713
714 * config/i386/i386.md (any_or): New code iterator.
715 (any_logic): Rename from plogic code iterator.
716 (logicprefix): Rename from plogicprefix code attribute.
717 (<code><mode>3): Macroize expander from {ior,xor}<mode>3 using
718 any_or code iterator.
719 (*<code><mode>_1): Macroize insn from *{ior,xor}<mode>_1 using
720 any_or code iterator.
721 (*<code><mode>_2): Ditto from *{ior,xor}<mode>_2.
722 (*<code><mode>_3): Ditto from *{ior,xor}<mode>_3.
723 (ior and xor splitters): Ditto.
724 * config/i386/mmx.md: Updated for rename.
725 * config/i386/sse.md: Ditto.
726
727 2009-12-07 Uros Bizjak <ubizjak@gmail.com>
728
729 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
730 Remove quotes around condition logic code.
731
732 2009-12-06 Richard Henderson <rth@redhat.com>
733
734 PR debug/42234
735 * tree-ssa-dom.c (degenerate_phi_result): Check for NULL phi
736 argument earlier.
737
738 2009-12-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
739
740 * doc/install.texi: Document MPC is required.
741
742 2009-12-06 Uros Bizjak <ubizjak@gmail.com>
743
744 * config/i386/i386.md (g): Add HImode and QImode.
745 (general_szext_operand): New mode attribute.
746 (*test<mode>_1): Macroize insn from *test{qi,hi,si}_1 using
747 SWI124 mode iterator.
748 (and<mode>3): Macroize expander from and{qi,hi,si,di}3 using
749 SWIM mode iterator.
750 (*and<mode>_2): Macroize insn from *and{qi,hi,si}_2 using
751 SWI124 mode iterator.
752 (ior<mode>3): Macroize expander from ior{qi,hi,si,di}3 using
753 SWIM mode iterator.
754 (*ior<mode>_1): Macroize insn from *ior{hi,si,di}_1 using
755 SWI248 mode iterator.
756 (*ior<mode>_2): Macroize insn from *ior{qi,hi,si,di}_2 using
757 SWI mode iterator.
758 (*ior<mode>_3): Macroize insn from *ior{qi,hi,si,di}_3 using
759 SWI mode iterator.
760 (xor<mode>3): Macroize expander from xor{qi,hi,si,di}3 using
761 SWIM mode iterator.
762 (*xor<mode>_1): Macroize insn from *xor{hi,si,di}_1 using
763 SWI248 mode iterator.
764 (*xor<mode>_2): Macroize insn from *xor{qi,hi,si,di}_2 using
765 SWI mode iterator.
766 (*xor<mode>_3): Macroize insn from *xor{qi,hi,si,di}_3 using
767 SWI mode iterator.
768
769 2009-12-05 Sebastian Pop <sebastian.pop@amd.com>
770
771 * config/i386/i386.c (TARGET_DEFAULT_TARGET_FLAGS): Add
772 MASK_FUSED_MADD.
773 * config/i386/i386.h (CC1_CPU_SPEC_1): Remove
774 "'-mfused-madd' was removed".
775 * config/i386/i386.opt (mfused-madd): New.
776 * config/i386/sse.md: Add TARGET_FUSED_MADD to FMA4 insns.
777 * doc/invoke.texi (-mfused-madd, -mno-fused-madd): Document.
778
779 2009-12-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
780
781 * pa64-hpux.h (LIB_SPEC): Handle -rdynamic.
782 * pa-hpux10.h (LIB_SPEC): Likewise.
783 * pa-hpux11.h (LIB_SPEC): Likewise.
784
785 PR ada/41912
786 * pa/linux-unwind.h (pa32_fallback_frame_state): Set fs->signal_frame
787 for signal frames.
788 * pa/hpux-unwind.h (pa32_fallback_frame_state): Likewise.
789
790 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
791
792 * configure: Regenerate.
793
794 2009-12-05 Richard Earnshaw <rearnsha@arm.com>
795
796 * arm/thumb2.md (thumb2_mulsi_short_compare0): Use a low-register
797 for the scratch.
798
799 2009-12-04 David Daney <ddaney@caviumnetworks.com>
800
801 PR rtl-optimization/42164
802 * combine.c (combine_simplify_rtx): Handle truncation of integer
803 constants.
804
805 2009-12-04 Richard Guenther <rguenther@suse.de>
806
807 * lto-streamer-out.c (pack_ts_decl_common_value_fields):
808 Revert previous change.
809 (lto_output_ts_decl_common_tree_pointers): Stream DECL_VALUE_EXPR.
810 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
811 Likewise.
812
813 2009-12-04 Richard Guenther <rguenther@suse.de>
814
815 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
816 BUILT_IN_MALLOC.
817 (call_may_clobber_ref_p_1): Likewise.
818
819 2009-12-04 Matthias Klose <doko@ubuntu.com>
820 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
821
822 PR target/40134
823 * config.gcc (hppa*-*-linux*): Use config/t-slibgcc-libgcc.
824 * config/pa/pa-linux.h (LIB_SPEC): Remove.
825
826 2009-12-03 Sebastian Pop <sebastian.pop@amd.com>
827 Richard Henderson <rth@redhat.com>
828
829 * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Remove.
830 * config/i386/i386.c (ix86_fma4_valid_op_p): Remove.
831 * config/i386/i386.md: Do not use ix86_fma4_valid_op_p.
832 * config/i386/sse.md (fma4_*): Remove alternative with operand 1
833 matching a memory access. Do not use ix86_fma4_valid_op_p.
834 (xop_*): Same.
835 Do not use ix86_fma4_valid_op_p in FMA4 and XOP splitters.
836
837 2009-12-03 Richard Henderson <rth@redhat.com>
838
839 * config/i386/i386.c (ix86_fixup_binary_operands): For FMA4, force
840 all operands into registers.
841
842 2009-12-03 Sebastian Pop <sebastian.pop@amd.com>
843
844 * config/i386/i386.c (ix86_expand_fma4_multiple_memory): Remove unused
845 parameter.
846 * config/i386/i386-protos.h (ix86_expand_fma4_multiple_memory): Same.
847 * config/i386/sse.md: Same.
848
849 2009-12-03 Richard Guenther <rguenther@suse.de>
850
851 * cgraphunit.c (assemble_thunk): Use DECL_ASSEMBLER_NAME
852 instead of DECL_NAME for the entry point.
853
854 2009-12-03 Richard Earnshaw <rearnsha@arm.com>
855
856 * arm/linux-atomic.c (SYNC_LOCK_RELEASE): Place memory barrier
857 before the lock release.
858
859 2009-12-03 Michael Matz <matz@suse.de>
860
861 PR middle-end/38474
862 * cfgexpand.c (struct stack_var): Add conflicts member.
863 (stack_vars_conflict, stack_vars_conflict_alloc,
864 n_stack_vars_conflict): Remove.
865 (add_stack_var): Initialize conflicts member.
866 (triangular_index, resize_stack_vars_conflict): Remove.
867 (add_stack_var_conflict, stack_var_conflict_p): Rewrite in
868 terms of new member.
869 (union_stack_vars): Only run over the conflicts.
870 (partition_stack_vars): Remove special case.
871 (expand_used_vars_for_block): Don't call resize_stack_vars_conflict,
872 don't create self-conflicts.
873 (account_used_vars_for_block): Don't create any conflicts.
874 (fini_vars_expansion): Free bitmaps, don't free or clear removed
875 globals.
876
877 2009-12-03 Bernd Schmidt <bernd.schmidt@analog.com>
878
879 PR middle-end/42202
880 * regrename.c (live_in_chains): New variable.
881 (verify_reg_tracked): New static function.
882 (scan_rtx_reg): Update live_in_chains.
883 (scan_rtx): Only promote sets in COND_EXEC to OP_INOUT if
884 we're already tracking the reg.
885 (build_def_use): Likewise. Initialize live_in_chains.
886
887 2009-12-03 Ken Werner <ken.werner@de.ibm.com>
888
889 * config/spu/spu-elf.h (STARTFILE_SPEC): Add support for gprof
890 startup files.
891 * config/spu/spu-protos.h (spu_function_profiler): Add prototype.
892 * config/spu/spu.c (spu_function_profiler): New function.
893 * config/spu/spu.h (FUNCTION_PROFILER): Invoke
894 spu_function_profiler.
895 (NO_PROFILE_COUNTERS): Define.
896 (PROFILE_BEFORE_PROLOGUE): Likewise.
897
898 2009-12-03 Dave Korn <dave.korn.cygwin@gmail.com>
899
900 * ggc-page.c (struct free_object): Pull definition out ...
901 (struct globals): .. from here.
902
903 2009-12-02 Richard Guenther <rguenther@suse.de>
904
905 * fold-const.c (div_if_zero_remainder): Honor that sizetypes
906 are sign-extending. Simplify.
907
908 2009-12-02 Richard Henderson <rth@redhat.com>
909
910 PR tree-opt/42215
911 * tree-loop-distribution.c (build_size_arg_loc): Tidy.
912 (generate_memset_zero): Convert to sizetype properly. Tidy.
913
914 2009-12-02 Richard Guenther <rguenther@suse.de>
915
916 * lto-streamer-out.c (pack_ts_decl_common_value_fields):
917 Do not pretend we have value exprs.
918
919 2009-12-02 Richard Guenther <rguenther@suse.de>
920
921 PR middle-end/41491
922 * fold-const.c (try_move_mult_to_index): Do not leak
923 domain types into the IL.
924
925 2009-12-02 Richard Guenther <rguenther@suse.de>
926
927 PR middle-end/42088
928 * tree.c (free_lang_data): Disable if not using LTO.
929
930 2009-12-02 Richard Guenther <rguenther@suse.de>
931
932 PR middle-end/42229
933 * cfgloopmanip.c (remove_path): Avoid cancelling loops twice.
934
935 2009-12-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
936
937 PR middle-end/42224
938 * tree.h (int_or_pointer_precision): Remove.
939 * tree.c (int_or_pointer_precision): Remove.
940 (integer_pow2p): Use TYPE_PRECISION instead.
941 (tree_log2): Likewise.
942 (tree_floor_log2): Likewise.
943 (signed_or_unsigned_type_for): Likewise.
944 * fold-const.c (fit_double_type): Likewise.
945 * varasm.c (initializer_constant_valid_p): Likewise.
946
947 2009-12-02 Ira Rosen <irar@il.ibm.com>
948
949 * doc/invoke.texi (-fdump-tree-slp): Document.
950 (-ftree-vectorizer-verbose): Update.
951 (-ftree-slp-vectorize): Document.
952
953 2009-12-02 Nick Clifton <nickc@redhat.com>
954
955 * config/rx/rx.c (rx_conditional_register_usage): Do not warn if
956 no fixed registers are available for interrupt handlers. Do not
957 fix normal registers.
958 (MUST_SAVE_ACC_REGISTER): New macro.
959 (rx_get_stack_layout): Create a stack frame for fast interrupt
960 handlers, if necessary. Push extra registers if needed in order
961 to save the accumulator.
962 (rx_expand_prologue): Create a stack frame for fast interrupt
963 handlers, if necessary.
964 (rx_expand_builtin_mvfc): Handle the case where there is no target.
965
966 2009-12-01 Sebastian Pop <sebastian.pop@amd.com>
967
968 * config/i386/abmintrin.h (__lzcnt16): New.
969 (__lzcnt): New.
970 (__lzcnt64): New.
971 * config/i386/i386-builtin-types.def (UINT16_FTYPE_UINT16): New.
972 * config/i386/i386.c (IX86_BUILTIN_CLZS): New.
973 (bdesc_special_args): Add __builtin_clzs.
974 (ix86_expand_args_builtin): Handle UINT16_FTYPE_UINT16.
975
976 2009-12-01 Sebastian Pop <sebastian.pop@amd.com>
977
978 * config/i386/abmintrin.h (_mm_popcnt_u32): New.
979 (_mm_popcnt_u64): New.
980
981 2009-12-01 Sebastian Pop <sebastian.pop@amd.com>
982
983 * config/i386/abmintrin.h: New.
984 * config/i386/i386-c.c (ix86_target_macros_internal): Defined __ABM__.
985 * config/i386/x86intrin.h: Include abmintrin.h when __ABM__ is defined.
986
987 2009-12-01 Uros Bizjak <ubizjak@gmail.com>
988
989 * config/i386/i386.md (SWI124): Rename from CRC32MODE.
990 (crc32modesuffix): Remove.
991 (crc32modeconstraint): Ditto.
992 (sse4_2_crc32<mode>): Update for renamed mode iterator. Use
993 imodesuffix instead of crc32modesuffix and <r>m instead of
994 crc32modeconstraint.
995
996 2009-12-01 Jakub Jelinek <jakub@redhat.com>
997
998 PR c++/42234
999 * tree-cfgcleanup.c (cleanup_omp_return): Don't ICE if control_bb
1000 contains no statements.
1001
1002 2009-12-01 Grigori Fursin <grigori.fursin@inria.fr>
1003 Joern Rennecke <amylaar@spamcop.net>
1004
1005 * cgraphunit.c (plugin.h): Include.
1006 (ipa_passes): Invoke PLUGIN_ALL_IPA_PASSES_START /
1007 PLUGIN_ALL_IPA_PASSES_END at start / end of processing.
1008 * gcc-plugin.h (highlev-plugin-common.h, hashtab.h): Include.
1009 (enum plugin_event): Define by including plugin.def.
1010 Last enumerator is now called PLUGIN_EVENT_FIRST_DYNAMIC.
1011 (plugin_event_name): Change type to const char **.
1012 (get_event_last, get_named_event_id, unregister_callback): Declare.
1013 (register_callback): Change type of event argument to int.
1014 (highlev-plugin-common.h): New file.
1015 * Makefile.in (GCC_PLUGIN_H): Add highlev-plugin-common.h and
1016 $(HASHTAB_H)
1017 (tree-optimize.o passes.o): Depend on $(PLUGIN_H).
1018 (PLUGIN_HEADERS): Add opts.h, $(PARAMS_H) and plugin.def.
1019 (s-header-vars): New rule.
1020 (install-plugin): Depend on s-header-vars. Install b-header-vars.
1021 * params.c (get_num_compiler_params): New function.
1022 * params.h (get_num_compiler_params): Declare.
1023 * passes.c (plugin.h): Include.
1024 (make_pass_instance): Invoke PLUGIN_NEW_PASS.
1025 (do_per_function_toporder, pass_init_dump_file): No longer static.
1026 (pass_fini_dump_file): Likewise.
1027 (execute_one_pass): Likewise. Invoke PLUGIN_OVERRIDE_GATE and
1028 PLUGIN_PASS_EXECUTION.
1029 (execute_ipa_pass_list): Invoke PLUGIN_EARLY_GIMPLE_PASSES_START and
1030 PLUGIN_EARLY_GIMPLE_PASSES_END.
1031 * plugin.c (plugin_event_name_init): New array, defined by
1032 including plugin.def.
1033 (FMT_FOR_PLUGIN_EVENT): Update.
1034 (plugin_event_name): Change type to const char ** and initialize
1035 to plugin_event_name_init.
1036 (event_tab, event_last, event_horizon): New variable.
1037 (get_event_last): New function.
1038 (plugin_callbacks_init): New array.
1039 (plugin_callbacks: Change type to struct callback_info **.
1040 Initialize to plugin_callbacks_init.
1041 (htab_event_eq, get_named_event_id, unregister_callback): New function.
1042 (invoke_plugin_va_callbacks): Likewise.
1043 (register_callback): Change type of event argument to int.
1044 Handle new events. Allow dynamic events.
1045 (invoke_plugin_callbacks): Likewise. Return success status.
1046 (plugins_active_p): Allow dynamic callbacks.
1047 * plugin.def: New file.
1048 * plugin.h (invoke_plugin_callbacks): Update prototype.
1049 (invoke_plugin_va_callbacks): Declare.
1050 * tree-optimize.c (plugin.h): Include.
1051 (tree_rest_of_compilation): Invoke PLUGIN_ALL_PASSES_START and
1052 PLUGIN_ALL_PASSES_END.
1053 * tree-pass.h (execute_one_pass, pass_init_dump_file): Declare.
1054 (pass_fini_dump_file, do_per_function_toporder): Likewise.
1055 * doc/plugin.texi: Document new event types.
1056
1057 2009-12-01 Martin Jambor <mjambor@suse.cz>
1058
1059 PR tree-optimization/42237
1060 * tree-sra.c (sra_ipa_modify_assign): Split gimple_reg_type assignments
1061 in between references into two.
1062
1063 2009-12-01 Richard Guenther <rguenther@suse.de>
1064
1065 * tree-inline.c (copy_tree_body_r): Do not set TREE_BLOCK
1066 to the block of the call when remapping a type.
1067
1068 2009-12-01 Martin Jambor <mjambor@suse.cz>
1069
1070 * cgraph.h (struct cgraph_edge): Reorder fields. Make loop_nest
1071 unsigned short int.
1072 * ipa-prop.h (struct ipa_param_call_note): Likewise.
1073 * ipa-prop.c (ipa_note_param_call): Initialize note->loop_nest.
1074
1075 2009-12-01 Richard Guenther <rguenther@suse.de>
1076
1077 * final.c (rest_of_clean_state): If -fcompare-debug is
1078 given dump final insns without UIDs.
1079 * tree-ssa-live.c (remove_unused_scope_block_p): Remove
1080 after_inlining checks.
1081
1082 2009-11-30 Chao-ying Fu <fu@mips.com>
1083
1084 * config/mips/mips-dsp.md (mips_lhx_<mode>): Use sign_extend.
1085
1086 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
1087
1088 * configure.ac (USE_CYGWIN_LIBSTDCXX_WRAPPERS): Define to reflect
1089 status of AC_CHECK_FUNC for Cygwin DLL libstdc++ support wrappers.
1090 * configure: Regenerate.
1091 * config.in: Regenerate.
1092
1093 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Define list of --wrap
1094 options for Cygwin DLL libstdc++ support wrappers.
1095 (CXX_WRAP_SPEC_OPT): Define spec to use wrappers or not by default
1096 according to defined value of USE_CYGWIN_LIBSTDCXX_WRAPPERS.
1097 (CXX_WRAP_SPEC): Define entire wrapper spec in or out according to
1098 whether USE_CYGWIN_LIBSTDCXX_WRAPPERS is even defined or not.
1099 (LINK_SPEC): Include CXX_WRAP_SPEC.
1100 * gcc/config/i386/winnt.c (wrapper_strcmp): New qsort helper function.
1101 (i386_find_on_wrapper_list): Check if a function is found on the list
1102 of libstdc++ wrapper options.
1103 (i386_pe_file_end): If we are importing a wrapped function, also emit
1104 an external declaration for the real version.
1105 * config/i386/cygming.opt (muse-libstdc-wrappers): New option for
1106 Cygwin targets. Update copyright year.
1107
1108 2009-11-30 Steve Ellcey <sje@cup.hp.com>
1109 Jakub Jelinek <jakub@redhat.com>
1110
1111 * function.c (instantiate_virtual_regs_in_insn): Copy to new reg
1112 before forcing mode.
1113
1114 2009-11-30 Anatoly Sokolov <aesok@post.ru>
1115
1116 * config/sh/sh.c (sh_promote_prototypes): Make static.
1117 (sh_function_value, sh_libcall_value, sh_function_value_regno_p): New
1118 functions.
1119 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
1120 * config/sh/sh.h (FUNCTION_VALUE_REGNO_P): Redefine, use
1121 sh_function_value_regno_p.
1122 (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
1123 * config/sh/sh-protos.h (sh_function_value_regno_p): Declare.
1124 (sh_promote_prototypes) : Remove.
1125
1126 2009-11-30 Julian Brown <julian@codesourcery.com>
1127
1128 * config/arm/arm.h (PREFERRED_RELOAD_CLASS): Don't restrict Thumb-2
1129 reloads to LO_REGS.
1130
1131 2009-11-30 Richard Henderson <rth@redhat.com>
1132
1133 * config/i386/i386.c (ix86_vec_interleave_v2df_operator_ok): New.
1134 (bdesc_special_args): Update insn codes.
1135 (avx_vpermilp_parallel): Correct range check.
1136 (ix86_rtx_costs): Handle vector permutation rtx codes.
1137 (struct expand_vec_perm_d): Move earlier.
1138 (get_mode_wider_vector): New.
1139 (expand_vec_perm_broadcast_1): New.
1140 (ix86_expand_vector_init_duplicate): Use it. Tidy AVX modes.
1141 (expand_vec_perm_broadcast): New.
1142 (ix86_expand_vec_perm_builtin_1): Use it.
1143 * config/i386/i386-protos.h: Update.
1144 * config/i386/predicates.md (avx_vbroadcast_operand): New.
1145 * config/i386/sse.md (AVX256MODE24P): New.
1146 (ssescalarmodesuffix2s): New.
1147 (avxhalfvecmode, avxscalarmode): Fill out to all modes.
1148 (avxmodesuffixf2c): Add V8SI, V4DI.
1149 (vec_dupv4sf): New expander.
1150 (*vec_dupv4sf_avx): Add vbroadcastss alternative.
1151 (*vec_set<mode>_0_avx, **vec_set<mode>_0_sse4_1): Macro-ize for
1152 V4SF and V4SI. Move C alternatives to front. Add insertps and
1153 pinsrd alternatives.
1154 (*vec_set<mode>_0_sse2): Split out from ...
1155 (vec_set<mode>_0): Macro-ize for V4SF and V4SI.
1156 (vec_interleave_highv2df, vec_interleave_lowv2df): Require register
1157 destination; use ix86_vec_interleave_v2df_operator_ok, instead of
1158 ix86_fixup_binary_operands.
1159 (*avx_interleave_highv2df, avx_interleave_lowv2df): Add movddup.
1160 (*sse3_interleave_highv2df, sse3_interleave_lowv2df): New.
1161 (*avx_movddup, *sse3_movddup): Remove. New splitter from
1162 vec_select form to vec_duplicate form.
1163 (*sse2_interleave_highv2df, sse2_interleave_lowv2df): Use
1164 ix86_vec_interleave_v2df_operator_ok.
1165 (avx_movddup256, avx_unpcklpd256): Change to expanders, merge into ...
1166 (*avx_unpcklpd256): ... here.
1167 (*vec_dupv4si_avx): New.
1168 (*vec_dupv2di_avx): Add movddup alternative.
1169 (*vec_dupv2di_sse3): New.
1170 (vec_dup<AVX256MODE24P>): Replace avx_vbroadcasts<AVXMODEF4P> and
1171 avx_vbroadcastss256; represent with vec_duplicate instead of
1172 nested vec_concat operations.
1173 (avx_vbroadcastf128_<mode>): Rename from
1174 avx_vbroadcastf128_p<avxmodesuffixf2c>256.
1175 (*avx_vperm_broadcast_v4sf): New.
1176 (*avx_vperm_broadcast_<AVX256MODEF2P>): New.
1177
1178 2009-11-30 Martin Jambor <mjambor@suse.cz>
1179
1180 PR middle-end/42196
1181 * tree-sra.c (struct access): New field grp_different_types.
1182 (dump_access): Dump grp_different_types.
1183 (compare_access_positions): Prefer scalars and vectors over other
1184 scalar types.
1185 (sort_and_splice_var_accesses): Set grp_different_types if appropriate.
1186 (sra_modify_expr): Use the original also when dealing with a complex
1187 or vector group accessed as multiple types.
1188
1189 2009-11-30 Richard Henderson <rth@redhat.com>
1190
1191 * config/i386/i386.c (avx_vperm2f128_parallel): New.
1192 * config/i386/i386-protos.h: Declare it.
1193 * config/i386/predicates.md (avx_vperm2f128_v8sf_operand,
1194 avx_vperm2f128_v8si_operand, avx_vperm2f128_v4df_operand): New.
1195 * config/i386/sse.md (avx_vperm2f128<mode>3): Change to expander.
1196 (*avx_vperm2f128<mode>_full): Renamed from avx_vperm2f128<mode>3.
1197 (*avx_vperm2f128<mode>_nozero): New.
1198
1199 2009-11-30 Richard Henderson <rth@redhat.com>
1200
1201 * config/i386/i386-builtin-types.def (V4DF_FTYPE_V4DF_V4DF_V4DI): New.
1202 (V8SF_FTYPE_V8SF_V8SF_V8SI): New.
1203 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Support
1204 V4DF and V8SF for AVX; relax constraint on V4SF to SSE1 from SSE2.
1205 (IX86_BUILTIN_VEC_PERM_V4DF, IX86_BUILTIN_VEC_PERM_V8SF): New.
1206 (bdesc_args): Add them.
1207 (ix86_expand_builtin): Expand them.
1208 (expand_vec_perm_pshufb2): Only operate on 16-byte vectors.
1209
1210 2009-11-30 Martin Jambor <mjambor@suse.cz>
1211
1212 PR middle-end/42206
1213 * ipa-prop.c (ipa_write_node_info): Initialize note_count to zero.
1214
1215 2009-11-30 Jakub Jelinek <jakub@redhat.com>
1216
1217 * ipa-reference.c (propagate): Only dump bitmaps if computed.
1218
1219 2009-11-30 Olga Golovanevsky <olga@il.ibm.com>
1220
1221 PR middle-end/39806
1222 * ipa-struct-reorg.c (new_var_eq): Use DECL_UID to hash new variables.
1223 (new_var_hash): Likewise.
1224 (is_in_new_vars_htab): Likewise.
1225 (add_to_new_vars_htab): Likewise.
1226
1227 2009-11-30 Ira Rosen <irar@il.ibm.com>
1228
1229 * tree-vect-stmts.c (vectorizable_assignment): Support
1230 multiple types.
1231
1232 2009-11-30 Richard Guenther <rguenther@suse.de>
1233
1234 * doc/contrib.texi (Contributors): Add myself.
1235
1236 2009-11-30 Richard Guenther <rguenther@suse.de>
1237
1238 * tree.c (free_lang_data): Do not set debug_info_level to
1239 none if terse.
1240
1241 2009-11-30 Richard Guenther <rguenther@suse.de>
1242
1243 PR middle-end/42119
1244 PR fortran/38530
1245 * expr.c (expand_expr_addr_expr_1): Properly expand the initializer
1246 of CONST_DECLs.
1247
1248 2009-11-30 Richard Guenther <rguenther@suse.de>
1249
1250 * tree-into-ssa.c (insert_phi_nodes): Add PHI nodes in
1251 variable UID order.
1252
1253 2009-11-30 Richard Guenther <rguenther@suse.de>
1254
1255 * tree-dump.c (dump_option_value_in): Add TDF_NOUID.
1256 * tree-pass.h (TDF_NOUID): Likewise.
1257 * print-rtl.c: Include tree-pass.h.
1258 (print_mem_expr): Pass dump_flags.
1259 (print_rtx): Likewise.
1260 * print-tree.c: Include tree-pass.h.
1261 (print_node_brief): Handle TDF_NOUID.
1262 (print_node): Likewise.
1263 * tree-pretty-print.c (dump_decl_name): Likewise.
1264 (dump_generic_node): Likewise.
1265 * Makefile.in (print-rtl.o, print-tree.o): Add $(TREE_PASS_H)
1266 dependency.
1267
1268 2009-11-30 Nick Clifton <nickc@redhat.com>
1269
1270 * config/stormy16/stormy16-lib2-count-leading-zeros.c: Delete.
1271 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Remove
1272 stormy16-lib2-count-leading-zeros.c.
1273 * config/stormy16/stormy16-lib2.c (__clzhi2): Move code from
1274 __stormy16_count_leading_zeros() into this function.
1275 (__ctzhi2): Use __builtin_clz.
1276 (__ffshi2): Likewise.
1277
1278 2009-11-30 Eric Botcazou <ebotcazou@adacore.com>
1279
1280 * config/sparc/sparc.c (DF_MODES): Simplify.
1281 (TF_ONLY_MODES, OF_ONLY_MODES): Delete.
1282 (TF_MODES, OF_MODES): Adjust for above change.
1283 (TF_MODES_NO_S, OF_MODES_NO_S): Likewise.
1284 * config/sparc/sparc.h (REGNO_REG_CLASS): Move around.
1285
1286 2009-11-30 Paolo Bonzini <bonzini@gnu.org>
1287
1288 PR rtl-optimization/41812
1289 * fwprop.c (local_md, local_lr): New globals.
1290 (process_defs, process_uses): Remove local_md argument. Never
1291 consider dead pseudos to have singleton def-use chains.
1292 (single_def_use_enter_block): Perform LR simulation.
1293 (build_single_def_use_links): Remove local_md local variable.
1294 Add DF_NOTE. Allocate local_lr.
1295 (fwprop_done): Do not remove DF_CHAIN, we do not use it anymore.
1296 * df-problems.c (df_md_scratch): New.
1297 (df_md_alloc, df_md_free): Allocate/free it.
1298 (df_md_local_compute): Only include live registers in init.
1299 (df_md_transfer_function): Prune the in-set computed by
1300 the confluence function, and the gen-set too.
1301
1302 2009-11-30 Hans-Peter Nilsson <hp@axis.com>
1303
1304 PR rtl-optimization/40086
1305 * reorg.c (relax_delay_slots): When looking for redundant insn at
1306 the branch target, use next_real_insn, not next_active_insn.
1307
1308 2009-11-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1309
1310 * doc/install.texi: Update minimum MPC version to 0.8.
1311
1312 2009-09-09 Segher Boessenkool <segher@kernel.crashing.org>
1313
1314 * config/rs6000/rs6000.md (fnmaddsf4_powerpc_1): Remove
1315 HONOR_SIGNED_ZEROS final condition.
1316 (fnmsubsf4_powerpc_1): Same.
1317 (fnmadddf4_fpr_1): Same.
1318 (fnmsubdf4_fpr_1): Same.
1319
1320 2009-11-29 Ira Rosen <irar@il.ibm.com>
1321
1322 PR tree-optimization/42193
1323 * tree-vect-stmts.c (vectorizable_operation): Set vectorization factor
1324 to 1 in case of basic block SLP.
1325 (vectorizable_load): Likewise.
1326
1327 2009-11-28 Jan Hubicka <jh@suse.cz>
1328
1329 * cgraph.c (same_body_alias_1): Break out of
1330 (same_body_alias): ... here; remove comdat check; it is handled
1331 in cp already.
1332 (cgraph_add_thunk): New.
1333 (dump_cgraph_node): Dump aliases and thunks.
1334 * cgraph.h (cgraph_thunk_info): New structure.
1335 (struct cgraph_node): Add thunk info.
1336 (cgraph_add_thunk): New.
1337 * cgraphunit.c (cgraph_emit_thunks): Remove.
1338 (cgraph_finalize_compilation_unit): Do not call cgraph_emit_thunks.
1339 (assemble_thunk): New function.
1340 (cgraph_expand_function): Handle thunks.
1341 (thunk_adjust): New.
1342 (init_lowered_empty_function): New.
1343 * cp-objcp-common.h (LANG_HOOKS_CALLGRAPH_EMIT_ASSOCIATED_THUNKS):
1344 Remove.
1345 * lto-cgraph.c (lto_output_node): Stream thunk info.
1346 (input_node): Likewise.
1347 * langhooks.h (lang_hooks_for_callgraph): Remove emit_associated_thunks.
1348 * langhooks-def.h (LANG_HOOKS_CALLGRAPH_EMIT_ASSOCIATED_THUNKS): Remove.
1349 (LANG_HOOKS_CALLGRAPH_INITIALIZER): Update.
1350 * i386.c (x86_output_mi_thunk): Make output prettier.
1351
1352 2009-11-28 Richard Guenther <rguenther@suse.de>
1353
1354 PR tree-optimization/42183
1355 * tree-nrv.c (tree_nrv): Bail out if the RESULT_DECL has its
1356 address taken. Merge the addressable state of the NRV
1357 variable and the result instead of copying it.
1358
1359 2009-11-28 Jakub Jelinek <jakub@redhat.com>
1360
1361 * matrix-reorg.c (analyze_matrix_allocation_site): Remove unused
1362 malloc_fname variable.
1363 (check_allocation_function): Remove unused gsi and bb_level_0
1364 variables.
1365 (transform_access_sites): Remove unused d_type_size and d_type_size_k
1366 variables.
1367 * omega.c (resurrect_subs): Remove unused n variable.
1368 (omega_solve_geq): Remove unused neweqns variable.
1369 * lto-streamer-in.c (lto_read_tree): Remove unused end_marker variable.
1370 * tree-inline.c (declare_return_variable): Remove USE_P argument,
1371 return use instead of var.
1372 (remap_decl, remap_block): Remove unused fn variable.
1373 (expand_call_inline): Remove unused retvar variable, adjust
1374 declare_return_variable caller.
1375 (optimize_inline_calls): Remove unused prev_fn variable.
1376 * tree-vect-slp.c (vect_analyze_slp_instance): Remove unused ncopies
1377 variable.
1378 (vect_create_mask_and_perm): Remove unused group_size and dr_chain_size
1379 variables.
1380 * tree-ssa-loop-niter.c (split_to_var_and_offset): Handle MINUS_EXPR
1381 properly.
1382 * tree-vect-loop.c (vect_analyze_loop_form): Remove unused backedge
1383 variable.
1384 (vect_create_epilog_for_reduction): Remove unused bytesize variable.
1385 * omp-low.c (workshare_safe_to_combine_p): Remove par_entry_bb
1386 parameter. Remove unused par_stmt variable.
1387 (determine_parallel_type): Adjust workshare_safe_to_combine_p caller.
1388 (expand_omp_sections): Remove unused l1 variable.
1389 (lower_omp_for): Remove unused ilist variable.
1390 * tree-loop-distribution.c (mark_nodes_having_upstream_mem_writes):
1391 Remove unused has_upstream_mem_write_p variable.
1392 * recog.c (decode_asm_operands): Remove unused noperands variable.
1393 * tree-ssa-alias.c (refs_may_alias_p_1): Remove unused size1 and
1394 size2 variable.
1395 * libgcov.c (__gcov_merge_delta): Remove unused last variable.
1396 * tree-call-cdce.c (gen_conditions_for_pow_int_base): Remove unused
1397 base_nm variable.
1398 (gen_conditions_for_pow): Remove unused ec variable.
1399 * tree-ssa-sccvn.c (vn_reference_lookup_3): Remove unused size
1400 variable.
1401 * ipa-struct-reorg.c (program_redefines_malloc_p): Remove unused
1402 fndecl variable.
1403 * tree-ssa-sink.c (statement_sink_location): Remove unused code
1404 variable.
1405 * regmove.c (copy_src_to_dest): Remove unused insn_uid and move_uid
1406 variables.
1407 * tree-complex.c (create_one_component_var): Remove unused inner_type
1408 variable.
1409 * calls.c (emit_call_1): Don't GEN_INT (struct_value_size)
1410 unnecessarily when GEN_*CALL omits that argument.
1411 * regrename.c (regrename_optimize): Remove unused regs_seen variable.
1412 (build_def_use): Remove unused icode variable.
1413 * ipa-pure-const.c (check_call): Remove unused callee and avail
1414 variables.
1415 * tree-dfa.c (add_referenced_var): Remove unused v_ann variable.
1416 * tree-vect-patterns.c (vect_recog_pow_pattern): Remove unused type
1417 variable.
1418 (vect_pattern_recog): Remove unused stmt variable.
1419 * sel-sched-ir.c (make_regions_from_the_rest): Remove unused
1420 new_regions variable.
1421 * postreload.c (reload_cse_simplify_operands): Remove unused mode
1422 variable.
1423 * tree-parloops.c (create_call_for_reduction_1): Remove unused
1424 addr_type variable.
1425 (create_parallel_loop): Remove unused res variable.
1426 (gen_parallel_loop): Remove unused nloop variable.
1427 * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
1428 * value-prof.c (gimple_mod_subtract_transform,
1429 gimple_stringops_transform): Remove unused value variable.
1430 (gimple_stringops_values_to_profile): Remove unused fcode variable.
1431 * tree-vrp.c (register_new_assert_for): Remove unused found variable.
1432 (vrp_visit_switch_stmt): Remove unused n variable.
1433 * tree-vect-stmts.c (vectorizable_conversion): Remove unused expr
1434 variable.
1435 (vectorizable_operation): Remove unused shift_p variable.
1436 (vectorizable_store): Remove unused first_stmt_vinfo variable.
1437 * tree-ssa-operands.c (add_stmt_operand): Remove unused v_ann variable.
1438 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove unused bb
1439 variable.
1440 (vect_permute_store_chain): Remove unused scalar_dest variable.
1441 (vect_supportable_dr_alignment): Remove unused invariant_in_outerloop
1442 variable.
1443 * tree-ssa-threadupdate.c (thread_single_edge): Remove unused
1444 local_info variable.
1445 * tree-optimize.c (tree_rest_of_compilation): Remove unused node
1446 variable.
1447 * optabs.c (expand_binop): Remove unused equiv_value variable.
1448 (emit_libcall_block): Remove unused prev variable.
1449 (init_optabs): Remove unused int_mode variable.
1450 * tree-ssa-structalias.c (scc_visit): Remove unused have_ref_node
1451 variable.
1452 (do_structure_copy): Remove unused lhsbase and rhsbase variables.
1453 (find_func_aliases): Remove unused rhstype variable.
1454 (ipa_pta_execute): Remove unused varid variable.
1455
1456 2009-11-28 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
1457
1458 * config/avr/avr.h (ASM_OUTPUT_EXTERNAL): Add.
1459
1460 2009-11-28 David Binderman <dcb314@hotmail.com>
1461
1462 * ira-color.c (put_allocno_into_bucket): Remove set but not used
1463 local variable hard_regs_num.
1464 * ira-lives.c (process_single_reg_class_operands): Remove cover_class.
1465 * loop-unswitch.c (unswitch_loop): Remove zero_bitmap.
1466 * lower-subreg.c (decompose_multiword_subregs): Remove next.
1467
1468 2009-11-27 Martin Jambor <mjambor@suse.cz>
1469
1470 PR middle-end/42006
1471 * tree-sra.c (get_replaced_param_substitute): Call create_tmp_var
1472 instead of create_tmp_var. Set DECL_GIMPLE_REG_P to one manually
1473 for vector and complex types.
1474 (get_adjustment_for_base): Describe return value in the comment.
1475
1476 2009-11-27 Nick Clifton <nickc@redhat.com>
1477
1478 * longlong.h (count_leading_zeros): Define macro for stormy16 target.
1479 (COUNT_LEADING_ZEROS_0): Likewise.
1480 * config/stormy16/stormy16-lib2.c: Arrange for separate
1481 compilation of each function.
1482 (__ffshi2): New function.
1483 (__stormy16_count_leading_zeros): New function.
1484 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Use stub files to
1485 compile each function into its own object file.
1486 (stormy16-lib2-ashlsi3.c): New stub file.
1487 (stormy16-lib2-ashrsi3.c): New stub file.
1488 (stormy16-lib2-clzhi2.c): New stub file.
1489 (stormy16-lib2-count-leading-zeros.c): New stub file.
1490 (stormy16-lib2-ctzhi2.c): New stub file.
1491 (stormy16-lib2-divsi3.c): New stub file.
1492 (stormy16-lib2-ffshi2.c): New stub file.
1493 (stormy16-lib2-lshrsi3.c): New stub file.
1494 (stormy16-lib2-modsi3.c): New stub file.
1495 (stormy16-lib2-parityhi2.c): New stub file.
1496 (stormy16-lib2-popcounthi2.c): New stub file.
1497 (stormy16-lib2-udivmodsi4.c): New stub file.
1498 (stormy16-lib2-udivsi3.c): New stub file.
1499 (stormy16-lib2-umodsi3.c): New stub file.
1500
1501 2009-11-27 Richard Henderson <rth@redhat.com>
1502
1503 * config/i386/sse.md (vec_interleave_highv16qi,
1504 vec_interleave_lowv16qi, vec_interleave_highv8hi,
1505 vec_interleave_lowv8hi, vec_interleave_highv4si,
1506 vec_interleave_lowv4si, vec_interleave_highv2di,
1507 vec_interleave_lowv2di, vec_interleave_highv4sf,
1508 vec_interleave_lowv4sf, vec_interleave_highv2df,
1509 vec_interleave_lowv2df): Remove expanders.
1510 (sse_unpcklps, sse_unpckhps, sse2_unpckhpd_exp, sse2_unpcklpd_exp,
1511 sse2_punpckhqdq, sse2_punpcklqdq, sse2_punpckhbw, sse2_punpcklbw,
1512 sse2_punpckhwd, sse2_punpcklwd, sse2_punpckhdq, sse2_punpckldq):
1513 Rename to their proper vec_interleave equivalent. Update all users
1514 to the new name.
1515 * config/i386/i386.c, config/i386/i386.md: Update all users.
1516
1517 2009-11-27 Michael Matz <matz@suse.de>
1518
1519 PR rtl-optimization/42084
1520 * cfgexpand.c (maybe_cleanup_end_of_block): Add new parameter,
1521 use it to stop walking.
1522 (expand_gimple_cond): Adjust call to above.
1523
1524 2009-11-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1525
1526 PR target/41810
1527 * gthr-solaris.h (__gthread_mutex_destroy): Remove UNUSED.
1528 [SUPPORTS_WEAK && GTHREAD_USE_WEAK] (__gthread_active_p): Use
1529 __extension__ to allow cast from function pointer to object
1530 pointer in C++.
1531 * doc/install.texi (--enable-threads): Clarify use of Solaris threads.
1532
1533 2009-11-27 Steven Bosscher <steven@gcc.gnu.org>
1534
1535 * config/ia64/itanium1.md: Remove.
1536 * config/ia64/ia64.md: Do not include it.
1537 * config/ia64/ia64.c (ia64_handle_option): Remove "itanium",
1538 "itanium1", and "merced" from the processor alias table.
1539 (clocks, add_cycles): Remove global variables.
1540 (ia64_sched_reorder2): Don't set/use them.
1541 (ia64_dfa_new_cycle, ia64_h_i_d_extended, ia64_reorg): Likewise.
1542 (bundling): Likewise. Remove extra pass for MMMUL/MMSHF.
1543
1544 2009-11-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1545
1546 * config/s390/s390.c (last_scheduled_insn): New variable.
1547 (s390_fpload_toreg, s390_z10_prevent_earlyload_conflicts): New
1548 functions.
1549 (s390_sched_reorder, s390_sched_variable_issue): New functions.
1550 (TARGET_SCHED_VARIABLE_ISSUE, TARGET_SCHED_REORDER): Target hooks
1551 defined.
1552
1553 2009-11-27 Michael Matz <matz@suse.de>
1554
1555 PR c++/41906
1556 * tree-eh.c (lower_catch): Stop after expanding a catch-all.
1557
1558 2009-11-27 Richard Guenther <rguenther@suse.de>
1559
1560 * timevar.def (TV_LOOP_MOVE_INVARIANTS, TV_LOOP_UNSWITCH,
1561 TV_LOOP_UNROLL, TV_LOOP_DOLOOP): New timevars.
1562 * loop-init.c (pass_rtl_move_loop_invariants): Use
1563 TV_LOOP_MOVE_INVARIANTS.
1564 (pass_rtl_unswitch): Use TV_LOOP_UNSWITCH.
1565 (pass_rtl_unroll_and_peel): Use TV_LOOP_UNROLL.
1566 (pass_rtl_doloop): Use TV_LOOP_DOLOOP.
1567
1568 2009-11-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1569
1570 * emit-rtl.c (next_active_insn, prev_active_insn): Correct comment.
1571
1572 2009-11-27 Jakub Jelinek <jakub@redhat.com>
1573
1574 * config/i386/i386.c (ix86_emit_restore_sse_regs_using_mov): Remove
1575 unused insn variable.
1576 * genemit.c (output_peephole2_scratches): Only declare and initialize
1577 _regs_allocated if it will be ever used.
1578 * cfgloopmanip.c (create_empty_if_region_on_edge): Remove unused
1579 succ_bb variable.
1580 (create_empty_loop_on_edge): Remove unused freq and cnt variables.
1581 * unwind-c.c (PERSONALITY_FUNCTION): Remove unused action_record
1582 variable.
1583
1584 * opts.c (decode_options): If optimize is bigger than 255,
1585 set it to 255.
1586
1587 2009-11-26 Richard Henderson <rth@redhat.com>
1588
1589 * config/i386/sse.md (mulv16qi3): Change back from an expander
1590 to an insn-and-split.
1591 (mulv4si): Mention AVX not XOP for AVX exception.
1592 (*sse2_mulv4si3): Likewise.
1593 (mulv2di3): Use vmulld not vpmacsdd for XOP expansion. Tidy.
1594
1595 2009-11-26 Bernd Schmidt <bernd.schmidt@analog.com>
1596
1597 * cfgexpand (n_stack_vars_conflict): New static variable.
1598 (triangular_index): Reduce likelyhood of overflow by performing
1599 the division before the multiplication.
1600 (resize_stack_vars_conflict): Call fatal_error if overflow
1601 occurred in triangular_index. Update n_stack_vars_conflict.
1602
1603 PR rtl-opt/38582
1604 * regrename.c (struct du_chain): Remove member earlyclobber.
1605 (scan_rtx_reg): Don't set it. Remove argument earlyclobber,
1606 all callers changed.
1607 (scan_rtx): Remove argument earlyclobber, all callers changed.
1608 (hide_operands, restore_operands, record_out_operands): New functions,
1609 broken out of build_def_use.
1610 (build_def_use): Call them as necessary.
1611
1612 * regrename.c (struct du_head): New members id, conflicts,
1613 hard_conflicts and cannot_rename.
1614 (enum scan_actions): Remove terminate_all_read and
1615 terminate_overlapping_read; add mark_all_read.
1616 (scan_actions_name): Likewise.
1617 (du_head_p): New typedef. Define a vector type for it.
1618 (id_to_chain): New static variable.
1619 (note_sets, clear_dead_regs): Delete functions.
1620 (free_chain_data): New function.
1621 (merge_overlapping_regs): Simply walk the conflicts bitmap.
1622 Remove argument B, all callers changed.
1623 (regrename_optimize): Allocate id_to_chain. Ignore chains that have
1624 the cannot_rename bit set. Update regno and nregs of a renamed chain.
1625 Call free_chain_data when done.
1626 (do_replace): Remove death notes when the renamed reg is set in the
1627 last insn; add them if not.
1628 (mark_conflict, note_sets_clobbers): New static function.
1629 (fail_current_block, current_id, open_chains_set, live_hard_regs): New
1630 static variables.
1631 (scan_rtx_reg): Keep track of conflicts between chains, and between
1632 chains and hard regs. Don't terminate chains when we find a read we
1633 can't handle, mark it unrenameable instead. For terminate_write,
1634 terminate chains that are written with an exact match or a superset
1635 of registers. Set fail_current_block if multi-word lifetimes are too
1636 complex to handle.
1637 (scan_rtx_address): Use mark_all_read instead of terminate_all_read.
1638 (build_def_use): Initialize current_id, live_chains and live_hard_regs;
1639 free memory for them when done.
1640 Rearrange the steps so that earlyclobbers are noted before reads
1641 are processed. Add new steps to keep track of hard register lifetimes
1642 outside insn operands.
1643
1644 2009-11-26 Richard Guenther <rguenther@suse.de>
1645
1646 * tree-ssa-dce.c (nr_walks): New variable.
1647 (mark_aliased_reaching_defs_necessary): Adjust oracle cut-off.
1648 (perform_tree_ssa_dce): Init nr_walks.
1649
1650 2009-11-26 Michael Matz <matz@suse.de>
1651
1652 PR tree-optimization/41905
1653 * tree-eh.c (lower_eh_constructs_2): Don't add assignments
1654 below statements that can't fall thru.
1655
1656 2009-11-26 Michael Matz <matz@suse.de>
1657
1658 * builtins.c (expand_builtin_printf, expand_builtin_fprintf,
1659 expand_builtin_sprintf): Remove.
1660 (expand_builtin): Don't call them.
1661
1662 2009-11-26 Richard Guenther <rguenther@suse.de>
1663
1664 * tree-ssa-dce.c (perform_tree_ssa_dce): Allocate visited bitmap.
1665
1666 2009-11-26 Nick Clifton <nickc@redhat.com>
1667
1668 * config/rx/rx.c (rx_expand_epilogue): Add checks for sibcalls
1669 being used incorrectly.
1670 (rx_function_ok_for_sibcall): New function. Do not allow indirect
1671 sibcalls, or sibcalls from interrupt functions.
1672 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define.
1673 * config/rx/rx.md (sibcall): Convert to a define_expand. Check
1674 for a MEM inside a MEM.
1675 (sibcall_value): Likewise.
1676 (sibcall_internal): New pattern containing old sibcall pattern.
1677 (sibcall_value_internal): Likewise.
1678
1679 2009-11-25 Richard Henderson <rth@redhat.com>
1680
1681 * config/i386/i386-builtin-types.awk (DEF_VECTOR_TYPE): Allow an
1682 optional 3rd argument to define the mode.
1683 * config/i386/i386-builtin-types.def (UQI, UHI, USI, UDI): New.
1684 (V2UDI, V4USI, V8UHI, V16UQI): New.
1685 (V4SF_FTYPE_V4SF_V4SF_V4SI, V2UDI_FTYPE_V2UDI_V2UDI_V2UDI,
1686 V4USI_FTYPE_V4USI_V4USI_V4USI, V8UHI_FTYPE_V8UHI_V8UHI_V8UHI,
1687 V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): New.
1688 * config/i386/i386-modes.def: Rearrange for double-wide AVX.
1689 * config/i386/i386-protos.h (ix86_expand_vec_extract_even_odd): New.
1690 * config/i386/i386.c (IX86_BUILTIN_VEC_PERM_*): New.
1691 (bdesc_args): Add the builtin definitions to match.
1692 (ix86_expand_builtin): Expand them.
1693 (ix86_builtin_vectorization_cost): Rename from
1694 x86_builtin_vectorization_cost.
1695 (ix86_vectorize_builtin_vec_perm, struct expand_vec_perm_d,
1696 doublesize_vector_mode, expand_vselect, expand_vselect_vconcat,
1697 expand_vec_perm_blend, expand_vec_perm_vpermil,
1698 expand_vec_perm_pshufb, expand_vec_perm_1,
1699 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
1700 expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
1701 expand_vec_perm_even_odd_1, expand_vec_perm_even_odd,
1702 ix86_expand_vec_perm_builtin_1, extract_vec_perm_cst,
1703 ix86_expand_vec_perm_builtin, ix86_vectorize_builtin_vec_perm_ok,
1704 ix86_expand_vec_extract_even_odd, TARGET_VECTORIZE_BUILTIN_VEC_PERM,
1705 TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): New.
1706 * sse.md (SSEMODE_EO): New.
1707 (vec_extract_even<mode>): Use SSEMODE_EO and
1708 ix86_expand_vec_extract_even_odd.
1709 (vec_extract_odd<mode>): Likewise.
1710 (mulv16qi3, vec_pack_trunc_v8hi, vec_pack_trunc_v4si,
1711 vec_pack_trunc_v2di): Use ix86_expand_vec_extract_even_odd.
1712
1713 2009-11-25 Richard Henderson <rth@redhat.com>
1714
1715 * target.h (targetm.vectorize.builtin_vec_perm_ok): New.
1716 * target-def.h (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): New.
1717 * hooks.h, hooks.c (hook_bool_tree_tree_true): New.
1718 * tree-vect-slp.c (vect_create_mask_and_perm): Don't create
1719 the vector constant here...
1720 (vect_transform_slp_perm_load): ... do it here instead. Validate
1721 that the permutation vector is implementable by the target.
1722
1723 2009-11-25 Jakub Jelinek <jakub@redhat.com>
1724
1725 * config/rs6000/sysv4.opt (mregnames): Change Var to rs6000_regnames.
1726 * config/rs6000/sysv4.h (TARGET_REGNAMES): Define.
1727
1728 * print-rtl.c (print_rtx): When printing newline, append
1729 print_rtx_head and indentation after the newline.
1730
1731 PR target/42165
1732 * config/i386/i386.c (print_operand): For 32-byte memory use
1733 YMMWORD in -masm=intel mode. Use TBYTE instead of XWORD.
1734 * config/i386/i386.md (crc32modesuffix): Expand to nothing
1735 in -masm=intel mode.
1736 (sse4_2_crc32di): Print just crc32 instead of crc32q in
1737 -masm=intel mode.
1738 * config/i386/mmx.md (*mmx_pinsrw): Print correct size of
1739 memory operand in -masm=intel mode.
1740 * config/i386/sse.md (*avx_pinsr<ssevecsize>, *sse4_1_pinsrb,
1741 *sse2_pinsrw): Likewise.
1742 (sse_cvtss2siq, sse_cvtss2siq_2, sse_cvttss2siq): Don't print
1743 q suffix in -masm=intel mode.
1744
1745 2009-11-25 Eric Botcazou <ebotcazou@adacore.com>
1746
1747 PR target/10127
1748 PR ada/20548
1749 PR middle-end/42004
1750 * dwarf2out.c (dwarf2out_args_size_adjust): Rename to...
1751 (dwarf2out_stack_adjust): ...this. Do not adjust the arg size for
1752 ACCUMULATE_OUTGOING_ARGS targets. Rename former version to...
1753 (dwarf2out_notice_stack_adjust): ...this. Adjust for above renaming.
1754 (dwarf2out_frame_debug_expr): Revert previous change and adjust for
1755 above renaming.
1756 (dwarf2out_frame_debug): Add ??? comment. Adjust for above renaming.
1757
1758 2009-11-25 Uros Bizjak <ubizjak@gmail.com>
1759
1760 * config/i386/predicates.md (emms_operation): New predicate.
1761 (vzeroupper_operation): Ditto.
1762 (vzeroall_operation): Improve pattern recognition.
1763 * config/i386/sse.md (avx_vzeroupper_rex64): Remove insn pattern.
1764 (avx_vzeroupper): Change insn pattern to expander.
1765 (*avx_vzeroupper): New insn pattern. Use vzeroupper_operation
1766 predicate.
1767 (*avx_vzeroall): Remove operands 1 and 2.
1768 * config/i386/mmx.md (mmx_emms): Change insn pattern to expander.
1769 (mmx_femms): Ditto.
1770 (*mmx_emms): New insn pattern. Use emms_operation predicate.
1771 (*mmx_femms): Ditto.
1772 * config/i386/i386.c (enum ix86_builtins)
1773 <IX86_BUILTIN_VZEROUPPER_REX64>: Remove.
1774 (struct builtin_description) <CODE_FOR_avx_vzeroupper_rex64>:
1775 Remove initailization.
1776 <CODE_FOR_avx_vzeroupper>: Unconditionally initialize here.
1777
1778 2009-11-25 Paul Brook <paul@codesourcery.com>
1779
1780 * config/arm/arm.md (consttable_4): Handle (high ...).
1781
1782 2009-11-25 Robert Nelson <robert.nelson@digikey.com>
1783 Richard Earnshaw <rearnsha@arm.com>
1784
1785 * arm.h (enum vfp_reg_type): Add VFP_NONE.
1786 * arm.c (all_fpus): Use it for floating point units that aren't based
1787 on the VFP architecture.
1788 (aapcs_vfp_is_call_or_return_candidate): Make base_mode a pointer to
1789 enum machine_mode.
1790
1791 2009-11-25 H.J. Lu <hongjiu.lu@intel.com>
1792
1793 * alias.c: Remove trailing white spaces.
1794 * alloc-pool.c: Likewise.
1795 * alloc-pool.h: Likewise.
1796 * attribs.c: Likewise.
1797 * auto-inc-dec.c: Likewise.
1798 * basic-block.h: Likewise.
1799 * bb-reorder.c: Likewise.
1800 * bt-load.c: Likewise.
1801 * builtins.c: Likewise.
1802 * builtins.def: Likewise.
1803 * c-common.c: Likewise.
1804 * c-common.h: Likewise.
1805 * c-cppbuiltin.c: Likewise.
1806 * c-decl.c: Likewise.
1807 * c-format.c: Likewise.
1808 * c-lex.c: Likewise.
1809 * c-omp.c: Likewise.
1810 * c-opts.c: Likewise.
1811 * c-parser.c: Likewise.
1812 * c-pretty-print.c: Likewise.
1813 * c-tree.h: Likewise.
1814 * c-typeck.c: Likewise.
1815 * caller-save.c: Likewise.
1816 * calls.c: Likewise.
1817 * cfg.c: Likewise.
1818 * cfganal.c: Likewise.
1819 * cfgexpand.c: Likewise.
1820 * cfghooks.c: Likewise.
1821 * cfghooks.h: Likewise.
1822 * cfglayout.c: Likewise.
1823 * cfgloop.c: Likewise.
1824 * cfgloop.h: Likewise.
1825 * cfgloopmanip.c: Likewise.
1826 * cfgrtl.c: Likewise.
1827 * cgraph.c: Likewise.
1828 * cgraph.h: Likewise.
1829 * cgraphbuild.c: Likewise.
1830 * cgraphunit.c: Likewise.
1831 * cif-code.def: Likewise.
1832 * collect2.c: Likewise.
1833 * combine.c: Likewise.
1834 * convert.c: Likewise.
1835 * coverage.c: Likewise.
1836 * crtstuff.c: Likewise.
1837 * cse.c: Likewise.
1838 * cselib.c: Likewise.
1839 * dbgcnt.c: Likewise.
1840 * dbgcnt.def: Likewise.
1841 * dbgcnt.h: Likewise.
1842 * dbxout.c: Likewise.
1843 * dce.c: Likewise.
1844 * ddg.c: Likewise.
1845 * ddg.h: Likewise.
1846 * defaults.h: Likewise.
1847 * df-byte-scan.c: Likewise.
1848 * df-core.c: Likewise.
1849 * df-problems.c: Likewise.
1850 * df-scan.c: Likewise.
1851 * df.h: Likewise.
1852 * dfp.c: Likewise.
1853 * diagnostic.c: Likewise.
1854 * diagnostic.h: Likewise.
1855 * dominance.c: Likewise.
1856 * domwalk.c: Likewise.
1857 * double-int.c: Likewise.
1858 * double-int.h: Likewise.
1859 * dse.c: Likewise.
1860 * dwarf2asm.c: Likewise.
1861 * dwarf2asm.h: Likewise.
1862 * dwarf2out.c: Likewise.
1863 * ebitmap.c: Likewise.
1864 * ebitmap.h: Likewise.
1865 * emit-rtl.c: Likewise.
1866 * et-forest.c: Likewise.
1867 * except.c: Likewise.
1868 * except.h: Likewise.
1869 * expmed.c: Likewise.
1870 * expr.c: Likewise.
1871 * expr.h: Likewise.
1872 * final.c: Likewise.
1873 * flags.h: Likewise.
1874 * fold-const.c: Likewise.
1875 * function.c: Likewise.
1876 * function.h: Likewise.
1877 * fwprop.c: Likewise.
1878 * gcc.c: Likewise.
1879 * gcov-dump.c: Likewise.
1880 * gcov-io.c: Likewise.
1881 * gcov-io.h: Likewise.
1882 * gcov.c: Likewise.
1883 * gcse.c: Likewise.
1884 * genattr.c: Likewise.
1885 * genattrtab.c: Likewise.
1886 * genautomata.c: Likewise.
1887 * genchecksum.c: Likewise.
1888 * genconfig.c: Likewise.
1889 * genflags.c: Likewise.
1890 * gengtype-parse.c: Likewise.
1891 * gengtype.c: Likewise.
1892 * gengtype.h: Likewise.
1893 * genmddeps.c: Likewise.
1894 * genmodes.c: Likewise.
1895 * genopinit.c: Likewise.
1896 * genpreds.c: Likewise.
1897 * gensupport.c: Likewise.
1898 * ggc-common.c: Likewise.
1899 * ggc-page.c: Likewise.
1900 * ggc-zone.c: Likewise.
1901 * ggc.h: Likewise.
1902 * gimple-iterator.c: Likewise.
1903 * gimple-low.c: Likewise.
1904 * gimple-pretty-print.c: Likewise.
1905 * gimple.c: Likewise.
1906 * gimple.def: Likewise.
1907 * gimple.h: Likewise.
1908 * gimplify.c: Likewise.
1909 * graphds.c: Likewise.
1910 * graphite-clast-to-gimple.c: Likewise.
1911 * gthr-nks.h: Likewise.
1912 * gthr-posix.c: Likewise.
1913 * gthr-posix.h: Likewise.
1914 * gthr-posix95.h: Likewise.
1915 * gthr-single.h: Likewise.
1916 * gthr-tpf.h: Likewise.
1917 * gthr-vxworks.h: Likewise.
1918 * gthr.h: Likewise.
1919 * haifa-sched.c: Likewise.
1920 * hard-reg-set.h: Likewise.
1921 * hooks.c: Likewise.
1922 * hooks.h: Likewise.
1923 * hosthooks.h: Likewise.
1924 * hwint.h: Likewise.
1925 * ifcvt.c: Likewise.
1926 * incpath.c: Likewise.
1927 * init-regs.c: Likewise.
1928 * integrate.c: Likewise.
1929 * ipa-cp.c: Likewise.
1930 * ipa-inline.c: Likewise.
1931 * ipa-prop.c: Likewise.
1932 * ipa-pure-const.c: Likewise.
1933 * ipa-reference.c: Likewise.
1934 * ipa-struct-reorg.c: Likewise.
1935 * ipa-struct-reorg.h: Likewise.
1936 * ipa-type-escape.c: Likewise.
1937 * ipa-type-escape.h: Likewise.
1938 * ipa-utils.c: Likewise.
1939 * ipa-utils.h: Likewise.
1940 * ipa.c: Likewise.
1941 * ira-build.c: Likewise.
1942 * ira-color.c: Likewise.
1943 * ira-conflicts.c: Likewise.
1944 * ira-costs.c: Likewise.
1945 * ira-emit.c: Likewise.
1946 * ira-int.h: Likewise.
1947 * ira-lives.c: Likewise.
1948 * ira.c: Likewise.
1949 * jump.c: Likewise.
1950 * lambda-code.c: Likewise.
1951 * lambda-mat.c: Likewise.
1952 * lambda-trans.c: Likewise.
1953 * lambda.h: Likewise.
1954 * langhooks.c: Likewise.
1955 * lcm.c: Likewise.
1956 * libgcov.c: Likewise.
1957 * lists.c: Likewise.
1958 * loop-doloop.c: Likewise.
1959 * loop-init.c: Likewise.
1960 * loop-invariant.c: Likewise.
1961 * loop-iv.c: Likewise.
1962 * loop-unroll.c: Likewise.
1963 * lower-subreg.c: Likewise.
1964 * lto-cgraph.c: Likewise.
1965 * lto-compress.c: Likewise.
1966 * lto-opts.c: Likewise.
1967 * lto-section-in.c: Likewise.
1968 * lto-section-out.c: Likewise.
1969 * lto-streamer-in.c: Likewise.
1970 * lto-streamer-out.c: Likewise.
1971 * lto-streamer.c: Likewise.
1972 * lto-streamer.h: Likewise.
1973 * lto-symtab.c: Likewise.
1974 * lto-wpa-fixup.c: Likewise.
1975 * matrix-reorg.c: Likewise.
1976 * mcf.c: Likewise.
1977 * mode-switching.c: Likewise.
1978 * modulo-sched.c: Likewise.
1979 * omega.c: Likewise.
1980 * omega.h: Likewise.
1981 * omp-low.c: Likewise.
1982 * optabs.c: Likewise.
1983 * optabs.h: Likewise.
1984 * opts-common.c: Likewise.
1985 * opts.c: Likewise.
1986 * params.def: Likewise.
1987 * params.h: Likewise.
1988 * passes.c: Likewise.
1989 * plugin.c: Likewise.
1990 * postreload-gcse.c: Likewise.
1991 * postreload.c: Likewise.
1992 * predict.c: Likewise.
1993 * predict.def: Likewise.
1994 * pretty-print.c: Likewise.
1995 * pretty-print.h: Likewise.
1996 * print-rtl.c: Likewise.
1997 * print-tree.c: Likewise.
1998 * profile.c: Likewise.
1999 * read-rtl.c: Likewise.
2000 * real.c: Likewise.
2001 * recog.c: Likewise.
2002 * reg-stack.c: Likewise.
2003 * regcprop.c: Likewise.
2004 * reginfo.c: Likewise.
2005 * regmove.c: Likewise.
2006 * regrename.c: Likewise.
2007 * regs.h: Likewise.
2008 * regstat.c: Likewise.
2009 * reload.c: Likewise.
2010 * reload1.c: Likewise.
2011 * resource.c: Likewise.
2012 * rtl.c: Likewise.
2013 * rtl.def: Likewise.
2014 * rtl.h: Likewise.
2015 * rtlanal.c: Likewise.
2016 * sbitmap.c: Likewise.
2017 * sched-deps.c: Likewise.
2018 * sched-ebb.c: Likewise.
2019 * sched-int.h: Likewise.
2020 * sched-rgn.c: Likewise.
2021 * sched-vis.c: Likewise.
2022 * sdbout.c: Likewise.
2023 * sel-sched-dump.c: Likewise.
2024 * sel-sched-dump.h: Likewise.
2025 * sel-sched-ir.c: Likewise.
2026 * sel-sched-ir.h: Likewise.
2027 * sel-sched.c: Likewise.
2028 * sel-sched.h: Likewise.
2029 * sese.c: Likewise.
2030 * sese.h: Likewise.
2031 * simplify-rtx.c: Likewise.
2032 * stack-ptr-mod.c: Likewise.
2033 * stmt.c: Likewise.
2034 * stor-layout.c: Likewise.
2035 * store-motion.c: Likewise.
2036 * stringpool.c: Likewise.
2037 * stub-objc.c: Likewise.
2038 * sync-builtins.def: Likewise.
2039 * target-def.h: Likewise.
2040 * target.h: Likewise.
2041 * targhooks.c: Likewise.
2042 * targhooks.h: Likewise.
2043 * timevar.c: Likewise.
2044 * tlink.c: Likewise.
2045 * toplev.c: Likewise.
2046 * toplev.h: Likewise.
2047 * tracer.c: Likewise.
2048 * tree-affine.c: Likewise.
2049 * tree-affine.h: Likewise.
2050 * tree-browser.def: Likewise.
2051 * tree-call-cdce.c: Likewise.
2052 * tree-cfg.c: Likewise.
2053 * tree-cfgcleanup.c: Likewise.
2054 * tree-chrec.c: Likewise.
2055 * tree-chrec.h: Likewise.
2056 * tree-complex.c: Likewise.
2057 * tree-data-ref.c: Likewise.
2058 * tree-data-ref.h: Likewise.
2059 * tree-dfa.c: Likewise.
2060 * tree-dump.c: Likewise.
2061 * tree-dump.h: Likewise.
2062 * tree-eh.c: Likewise.
2063 * tree-flow-inline.h: Likewise.
2064 * tree-flow.h: Likewise.
2065 * tree-if-conv.c: Likewise.
2066 * tree-inline.c: Likewise.
2067 * tree-into-ssa.c: Likewise.
2068 * tree-loop-distribution.c: Likewise.
2069 * tree-loop-linear.c: Likewise.
2070 * tree-mudflap.c: Likewise.
2071 * tree-nested.c: Likewise.
2072 * tree-nomudflap.c: Likewise.
2073 * tree-nrv.c: Likewise.
2074 * tree-object-size.c: Likewise.
2075 * tree-optimize.c: Likewise.
2076 * tree-outof-ssa.c: Likewise.
2077 * tree-parloops.c: Likewise.
2078 * tree-pass.h: Likewise.
2079 * tree-phinodes.c: Likewise.
2080 * tree-predcom.c: Likewise.
2081 * tree-pretty-print.c: Likewise.
2082 * tree-profile.c: Likewise.
2083 * tree-scalar-evolution.c: Likewise.
2084 * tree-ssa-address.c: Likewise.
2085 * tree-ssa-alias.c: Likewise.
2086 * tree-ssa-ccp.c: Likewise.
2087 * tree-ssa-coalesce.c: Likewise.
2088 * tree-ssa-copy.c: Likewise.
2089 * tree-ssa-copyrename.c: Likewise.
2090 * tree-ssa-dce.c: Likewise.
2091 * tree-ssa-dom.c: Likewise.
2092 * tree-ssa-dse.c: Likewise.
2093 * tree-ssa-forwprop.c: Likewise.
2094 * tree-ssa-ifcombine.c: Likewise.
2095 * tree-ssa-live.c: Likewise.
2096 * tree-ssa-live.h: Likewise.
2097 * tree-ssa-loop-ch.c: Likewise.
2098 * tree-ssa-loop-im.c: Likewise.
2099 * tree-ssa-loop-ivcanon.c: Likewise.
2100 * tree-ssa-loop-ivopts.c: Likewise.
2101 * tree-ssa-loop-manip.c: Likewise.
2102 * tree-ssa-loop-niter.c: Likewise.
2103 * tree-ssa-loop-prefetch.c: Likewise.
2104 * tree-ssa-loop-unswitch.c: Likewise.
2105 * tree-ssa-loop.c: Likewise.
2106 * tree-ssa-math-opts.c: Likewise.
2107 * tree-ssa-operands.c: Likewise.
2108 * tree-ssa-operands.h: Likewise.
2109 * tree-ssa-phiopt.c: Likewise.
2110 * tree-ssa-phiprop.c: Likewise.
2111 * tree-ssa-pre.c: Likewise.
2112 * tree-ssa-propagate.c: Likewise.
2113 * tree-ssa-reassoc.c: Likewise.
2114 * tree-ssa-sccvn.c: Likewise.
2115 * tree-ssa-sink.c: Likewise.
2116 * tree-ssa-structalias.c: Likewise.
2117 * tree-ssa-ter.c: Likewise.
2118 * tree-ssa-threadedge.c: Likewise.
2119 * tree-ssa-threadupdate.c: Likewise.
2120 * tree-ssa-uncprop.c: Likewise.
2121 * tree-ssa.c: Likewise.
2122 * tree-ssanames.c: Likewise.
2123 * tree-switch-conversion.c: Likewise.
2124 * tree-tailcall.c: Likewise.
2125 * tree-vect-data-refs.c: Likewise.
2126 * tree-vect-generic.c: Likewise.
2127 * tree-vect-loop-manip.c: Likewise.
2128 * tree-vect-loop.c: Likewise.
2129 * tree-vect-patterns.c: Likewise.
2130 * tree-vect-slp.c: Likewise.
2131 * tree-vect-stmts.c: Likewise.
2132 * tree-vectorizer.c: Likewise.
2133 * tree-vectorizer.h: Likewise.
2134 * tree-vrp.c: Likewise.
2135 * tree.c: Likewise.
2136 * tree.def: Likewise.
2137 * tree.h: Likewise.
2138 * treestruct.def: Likewise.
2139 * unwind-compat.c: Likewise.
2140 * unwind-dw2-fde-glibc.c: Likewise.
2141 * unwind-dw2.c: Likewise.
2142 * value-prof.c: Likewise.
2143 * value-prof.h: Likewise.
2144 * var-tracking.c: Likewise.
2145 * varasm.c: Likewise.
2146 * varpool.c: Likewise.
2147 * vec.c: Likewise.
2148 * vec.h: Likewise.
2149 * vmsdbgout.c: Likewise.
2150 * web.c: Likewise.
2151 * xcoffout.c: Likewise.
2152
2153 2009-11-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2154
2155 * pa.c (output_call): Only use sr4 for long interspace calls if
2156 call binds local and generating non PIC code.
2157 (attr_length_call): Adjust length calculation for above.
2158
2159 2009-11-25 Uros Bizjak <ubizjak@gmail.com>
2160
2161 * config/i386/i386.md (plusminus_carry_mnemonic): New code attribute.
2162 (add<mode>3_carry): Change operand order of plus RTX.
2163 (*add<mode>3_carry): Ditto.
2164 (*addsi3_carry_zext): Ditto.
2165 (*add<dwi>3_doubleword): Update for changed operand order.
2166 (*negti2_1 splitter): Ditto.
2167 (*negdi2_1 splitter): Ditto.
2168 (<plusminus_insn><mode>3_carry): Macroize expander from
2169 {add,sub}<mode>3_carry patterns using plusminus code iterator.
2170 (*<plusminus_insn><mode>3_carry): Macroize insn from
2171 *{add,sub}<mode>3_carry patetrns using plusminus code iterator.
2172 (neg<mode>2): Macroize expander from neg{qi,hi,si,di,ti}2
2173 patterns using SDWIM mode iterator.
2174 (*neg<dwi>2_doubleword): New insn_and_split pattern. Macroize
2175 pattern from *neg{di,ti}2_1 patterns and corresponding splitters
2176 using DWIH mode iterator.
2177 (*neg<mode>2_1): Macroize insn from neg{qi,hi,si,di}2_1 patterns
2178 using SWI mode iterator.
2179 (*neg<mode>2_cmpz): Ditto from neg{qi,hi,si,di}2_cmpz patterns.
2180 (one_cmpl<mode>2): Macroize expander from one_cmpl{qi,hi,si,di}2
2181 patterns using SWIM mode iterator.
2182 (*one_cmpl<mode>2_1): Macroize insn from one_cmpl{hi,si,di}2_1
2183 patterns using SWI248 mode iterator.
2184 (*one_cmpl<mode>2_2): Macroize insn from one_cmpl{qi,hi,si,di}2_2
2185 patterns using SWI mode iterator.
2186 (*one_cmpl<mode>2_2 splitter): Macroize splitter from
2187 one_cmpl{qi,hi,si,di}2_2 splitter patterns using SWI mode iterator.
2188
2189 2009-11-24 Michael Matz <matz@suse.de>
2190
2191 * expr.c (set_storage_via_libcall): Fix build_call_expr call.
2192
2193 2009-11-24 David Binderman <dcb314@hotmail.com>
2194
2195 * expr.c (store_field): Remove set but not used local variable
2196 width_mask.
2197 (expand_expr_real_2): Remove treeop2.
2198 * gcse.c (update_ld_motion_stores): Remove new_rtx.
2199 * haifa-sched.c (max_issue): Remove points.
2200 (sched_create_recovery_edges): Remove e.
2201 * ira-costs.c (setup_allocno_cover_class_and_costs): Remove mode.
2202
2203 2009-11-24 Nick Clifton <nickc@redhat.com>
2204
2205 * config/v850/v850.c (function_arg): Fix handling of zero-length
2206 function arguments.
2207
2208 2009-11-24 Michael Matz <matz@suse.de>
2209
2210 * tree.h (union tree_ann_d): Don't declare.
2211 (tree_base): Remove ann field.
2212 (struct var_ann_d): Declare forward.
2213 (tree_result_decl, tree_parm_decl, tree_var_decl): Add ann field.
2214 (DECL_VAR_ANN_PTR): New macro.
2215 * tree-dfa.c (create_var_ann): Rewrite in terms of above macro,
2216 accept only VAR, PARM or RESULT decls.
2217 (create_tree_common_ann): Remove.
2218 (remove_referenced_var): Use DECL_VAR_ANN_PTR.
2219 * tree-eh.c (lookup_expr_eh_lp): Remove.
2220 * tree-flow-inline.h (var_ann, get_var_ann): Rewrite in terms of
2221 DECL_VAR_ANN_PTR.
2222 (ann_type, tree_common_ann, get_tree_common_ann): Remove.
2223 * tree-flow.h (enum tree_ann_type): Remove.
2224 (struct tree_ann_common_d): Remove.
2225 (struct var_ann_d): Remove common field.
2226 (union tree_ann_d): Remove.
2227 (tree_ann_t, tree_ann_common_t): Remove typedefs.
2228 (tree_common_ann, get_tree_common_ann, ann_type,
2229 create_tree_common_ann, lookup_expr_eh_lp): Don't declare.
2230 * tree-ssa.c (delete_tree_ssa): Use DECL_VAR_ANN_PTR.
2231 * tree.c (copy_node_stat): Use DECL_VAR_ANN_PTR.
2232 * builtins.c (expand_builtin_memcpy): Use
2233 currently_expanding_gimple_stmt instead of tree annotation.
2234 (expand_builtin_memset_args): Ditto.
2235 * cfgexpand.c (currently_expanding_gimple_stmt): Add global variable.
2236 (expand_call_stmt): Don't set tree annotation.
2237 (expand_gimple_basic_block): Set currently_expanding_gimple_stmt.
2238 * expr.c (expand_expr_real): Don't call lookup_expr_eh_lp.
2239 * gimple.h (currently_expanding_gimple_stmt): Declare.
2240
2241 2009-11-24 Paolo Carlini <paolo.carlini@oracle.com>
2242
2243 * dwarf2out.c (add_location_or_const_value_attribute): Remove
2244 useless NOTE_VAR_LOCATION_STATUS call.
2245 * cfgrtl.c (commit_one_edge_insertion): Remove useless loop, tidy.
2246
2247 2009-11-24 Rafael Avila de Espindola <espindola@google.com>
2248
2249 * lto-wrapper.c (lto_wrapper_exit): Don't try to delete files if
2250 being called recursively.
2251
2252 2009-11-24 Basile Starynkevitch <basile@starynkevitch.net>
2253
2254 * Makefile.in (PLUGIN_HEADERS): Added files: cppdefault.h flags.h
2255 $(MD5_H) params.def params.h prefix.h tree-inline.h.
2256
2257 2009-11-24 Paul Brook <paul@codesourcery.com>
2258
2259 * gcc/config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Fix comment
2260 typo.
2261
2262 2009-11-24 Julian Brown <julian@codesourcery.com>
2263 Paul Brook <paul@codesourcery.com>
2264
2265 * config/arm/arm.c (TARGET_DWARF_REGISTER_SPAN): Define.
2266 (arm_dwarf_register_span): New function.
2267 (arm_dbx_register_number): Add VFPv3 dwarf numbering.
2268
2269 2009-11-24 David Binderman <dcb314@hotmail.com>
2270
2271 * cfgrtl.c (commit_one_edge_insertion): Remove set but not used
2272 local variable bb_note.
2273 * dominance.c (get_dominated_by): Likewise local var n.
2274 (output_file_names): Likewise local var idx.
2275 (add_location_or_const_value_attribute): Likewise local var status.
2276 * dwarf2out.c (gen_variable_die): Likewise local var field.
2277 * emit-rtl.c (no_line_numbers): Remove.
2278 (init_emit_once): Remove line_numbers parameter.
2279 * rtl.h (init_emit_once): Adjust prototype.
2280 * toplev.c (backend_init): Adjust init_emit_once call.
2281
2282 2009-11-24 Richard Guenther <rguenther@suse.de>
2283
2284 PR tree-optimization/42142
2285 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
2286 Handle iv-dependent (non-)kills properly.
2287 (mark_aliased_reaching_defs_necessary): Pass the basic-block
2288 of the reference statement to mark_aliased_reaching_defs_necessary_1.
2289
2290 2009-11-24 Martin Jambor <mjambor@suse.cz>
2291
2292 PR tree-optimization/42154
2293 * tree-sra.c (struct access): Added comments.
2294 (sra_modify_expr): Build references to the old aggregate with
2295 build_ref_for_offset instead of reusing access->expr.
2296 (load_assign_lhs_subreplacements): Likewise.
2297
2298 2009-11-24 Uros Bizjak <ubizjak@gmail.com>
2299
2300 * config/i386/i386.md (add<mode>3_carry): Change insn pattern
2301 to expander.
2302 (sub<mode>3_carry): Ditto.
2303 (x86_mov<mode>cc_0_m1): Ditto.
2304 (*add<mode>3_carry): New insn pattern. Use VOIDmode match_operator
2305 for ix86_carry_flag_operator operator predicate.
2306 (*sub<mode>3_carry): Ditto.
2307 (*x86_mov<mode>cc_0_m1): Ditto.
2308 (*addsi3_carry_zext): Use VOIDmode match_operator for
2309 ix86_carry_flag_operator operator predicate.
2310 (*subsi3_carry_zext): Ditto.
2311 (*x86_mov<mode>cc_0_m1_s): Ditto.
2312 (*x86_mov<mode>cc_0_m1_neg): Ditto.
2313 * config/i386/predocates.md (ix86_carry_flag_operator): Do not
2314 check operator sub-expressions for FLAGS_REG and const0_rtx.
2315 * config/i386/i386.c (*ix86_gen_sub3_carry): Update prototype.
2316 (ix86_expand_int_movcc): Update calls to gen_x86_mov{si,di}cc_0_m1.
2317 (ix86_expand_int_addcc): Update calls to
2318 gen_{add,sub}{qi,hi,si,di}3_carry. Do not set mode of compare_op.
2319 (ix86_expand_strlensi_unroll_1): Update calls to ix86_gen_sub3_carry.
2320 Do not set mode of compare operation.
2321
2322 2009-11-23 Jan Hubicka <jh@suse.cz>
2323
2324 PR middle-end/42151
2325 * ipa-inline.c (inline_transform): Avoid ICE when transform is called
2326 twice.
2327
2328 2009-11-23 Jan Hubicka <jh@suse.cz>
2329
2330 * ipa-cp.c (ipcp_compute_node_scale): Work around completely
2331 wrong profile updates.
2332 * predict.c (counts_to_freqs): Be expected for ENTRY/EXIT block
2333 having largest frequency.
2334 * ira-live.c (ira_implicitly_set_insn_hard_regs): Silecne
2335 used uninitalized warning.
2336 * tree-optimize.c (execute_fixup_cfg): Rescale entry and exit block
2337 frequencies.
2338
2339 2009-11-23 Uros Bizjak <ubizjak@gmail.com>
2340
2341 * config/alpha/alpha.md (*cmp_sadd_sidi): Use gen_lowpart instead
2342 of gen_rtx_REG to generate operand 5.
2343 (*cmp_ssub_sidi): Ditto.
2344
2345 2009-11-23 Richard Henderson <rth@redhat.com>
2346
2347 * config/i386/i386.c (avx_vpermilp_parallel): Fix sign compare
2348 mismatch.
2349
2350 2009-11-23 Paul Brook <paul@codesourcery.com>
2351
2352 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Add special
2353 case for noreturn functions.
2354 (arm_compute_save_reg_mask): Remove special noreturn handling.
2355
2356 2009-11-23 Richard Guenther <rguenther@suse.de>
2357
2358 * tree-dfa.c (get_ref_base_and_extent): Adjust maximum access
2359 size for DECL bases.
2360
2361 2009-11-22 Richard Henderson <rth@redhat.com>
2362
2363 * i386.c (avx_vpermilp_parallel): New function.
2364 * i386-protos.h: Declare it.
2365 * predicates.md (avx_vpermilp_v8sf_operand, avx_vpermilp_v4df_operand,
2366 avx_vpermilp_v4sf_operand, avx_vpermilp_v2df_operand): New.
2367 * sse.md (AVXMODEFDP, AVXMODEFSP): New iterators.
2368 (ssescalarnum, ssedoublesizemode): Add AVX modes.
2369 (vpermilbits): Remove.
2370 (avx_vpermil<mode>): Change insns to expanders.
2371 (*avx_vpermil<mode>): New. Use vec_select.
2372
2373 2009-11-22 Richard Earnshaw <rearnsha@arm.com>
2374
2375 * opts.c (decode_options): Don't enable flag_schedule_insns
2376 when optimizing for size.
2377 * doc/invoke.texi: Document change.
2378
2379 2009-11-22 Uros Bizjak <ubizjak@gmail.com>
2380
2381 PR target/42113
2382 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
2383 of scratch register to SImode.
2384 (*cmp_sadd_sidi): Ditto.
2385 (*cmp_ssub_si): Ditto.
2386 (*cmp_ssub_sidi): Ditto.
2387
2388 2009-11-21 Ian Lance Taylor <iant@google.com>
2389
2390 * Makefile.in (HOST_LIBS): Move higher in file.
2391 (LINKER, LINKER_FLAGS): If ENABLE_BUILD_WITH_CXX, but $(HOST_LIBS)
2392 is not empty, set to $(CC) and $(CFLAGS).
2393
2394 2009-11-22 Martin Jambor <mjambor@suse.cz>
2395
2396 * tree-cfg.c (verify_types_in_gimple_reference): Error out on
2397 V_C_E of an SSA_NAME or an invariant if lvalue is required.
2398 (verify_gimple_call): Verify LHS also with with
2399 verify_types_in_gimple_reference.
2400
2401 2009-11-21 Martin Jambor <mjambor@suse.cz>
2402
2403 PR middle-end/42025
2404 * tree-sra.c (access_precludes_ipa_sra_p): New function.
2405 (splice_param_accesses): Check all accesses by calling
2406 access_precludes_ipa_sra_p.
2407 (sra_ipa_modify_expr): Rename argument erite to dont_convert and do
2408 not convert types if it is true.
2409 (sra_ipa_modify_assign): Convert types in case of mismatch.
2410
2411 2009-11-21 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
2412
2413 * config/sh/sh.md (cmpeqsi_t-1): Use logical_operand predicate
2414 for operand 1.
2415
2416 2009-11-21 Adam Nemet <adambnemet@gmail.com>
2417
2418 * config/mips/mips-protos.h (mulsidi3_gen_fn): New typedef.
2419 (mips_mulsidi3_gen_fn): Declare new function.
2420 * config/mips/mips.c (mips_mulsidi3_gen_fn): New function.
2421 * config/mips/mips.md (<u>mulsidi3): Change condition to use
2422 mips_mulsidi3_gen_fn. Use mips_mulsidi3_gen_fn to generate the insn.
2423 (<u>mulsidi3_64bit): Don't match for ISA_HAS_DMUL3.
2424 (mulsidi3_64bit_dmul): New define_insn.
2425
2426 2009-11-21 Ben Elliston <bje@au.ibm.com>
2427
2428 * gengtype-lex.l: Enable noinput flex option.
2429 (YY_NO_INPUT): Remove define.
2430
2431 2009-11-21 Alexandre Oliva <aoliva@redhat.com>
2432
2433 * tree-ssa.c (find_released_ssa_name): Handle NULL wi.
2434 (insert_debug_temp_for_var_def): Handle degenerate PHI nodes.
2435 (insert_debug_temps_for_defs): Handle PHI nodes.
2436 * tree-ssa-dom.c (degenerate_phi_result): Don't crash on released
2437 SSA names.
2438
2439 2009-11-21 Alexandre Oliva <aoliva@redhat.com>
2440
2441 * tree-ssa-pre.c (remove_dead_inserted_code): Don't release_defs
2442 after remove_phi_node.
2443
2444 2009-11-21 Alexandre Oliva <aoliva@redhat.com>
2445
2446 PR tree-optimization/42078
2447 * gimple.h (gimple_replace_lhs): New declaration.
2448 * gimple.c (gimple_replace_lhs): New function.
2449 * tree-ssa-math-opts.c (execute_cse_reciprocals): Call it before
2450 modifying the call.
2451
2452 2009-11-20 Sebastian Pop <sebastian.pop@amd.com>
2453
2454 * config/i386/sse.md (*xop_pmacsdql_mem): Don't call reg_mentioned_p.
2455 (xop_mulv2div2di3_low): Same.
2456 (*xop_pmacsdqh_mem): Same.
2457
2458 2009-11-20 Richard Henderson <rth@redhat.com>
2459
2460 * config/i386/i386-builtin-types.awk: New file.
2461 * config/i386/i386-builtin-types.def: New file.
2462 * config/i386/t-i386: Use them to build i386-builtin-types.inc.
2463 * config/i386/i386.c: Include it.
2464 (ix86_builtin_type_tab, ix86_get_builtin_type): New.
2465 (ix86_builtin_func_type_tab, ix86_get_builtin_func_type): New.
2466 (struct builtin_isa): Remove GTY marker. Replace tree type with
2467 ix86_builtin_func_type; add set_and_not_built_p.
2468 (def_builtin): Change type parameter to tcode; use
2469 ix86_get_builtin_func_type; update all callers. Accept zero mask
2470 to mean the builtin is unconditionally available.
2471 (ix86_add_new_builtins): Use set_and_not_built_p instead of type
2472 being set to NULL.
2473 (enum ix86_special_builtin_type, enum ix86_builtin_type): Remove.
2474 Update some users to rationalized enumeration codes from new include.
2475 (enum multi_arg_type): Remove. Replace all enumeration values
2476 with defines to new ix86_builtin_func_type.
2477 (ix86_init_mmx_sse_builtins): Don't build any types here. Defer
2478 all type resolution to def_builtin.
2479 (ix86_init_builtin_types): Split out from ...
2480 (ix86_init_builtins): ... here. Use ix86_get_builtin_func_type.
2481
2482 2009-11-20 Michael Meissner <meissner@linux.vnet.ibm.com>
2483
2484 PR target/41787
2485 * config/rs6000/rs6000.c (struct machine_function): Revert
2486 2009-10-23 change to set VRSAVE to non-0 if we use VSX.
2487 (rs6000_expand_to_rtl_hook): Ditto.
2488 (rs6000_check_vector_mode): Ditto.
2489 (compute_vrsave_mask): Ditto.
2490
2491 2009-11-20 Paul Brook <paul@codesourcery.com>
2492
2493 * doc/invoke.texi: Document ARM -mcpu=cortex-a5.
2494 * config/arm/arm-cores.def: Add cortex-a5.
2495 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a5.
2496 * config/arm/arm-tune.md: Regenerate.
2497
2498 2009-11-20 Olga Golovanevsky <olga@il.ibm.com>
2499
2500 PR middle-end/39960
2501 * ipa-struct-reorg.c (find_pos_in_stmt): New parameter.
2502 (ref_pos): New field in structure.
2503 (insert_new_var_in_stmt): New function.
2504
2505
2506 2009-11-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2507
2508 * config.gcc (alpha*-dec-osf[45]*): Set use_gcc_stdint.
2509 * config/alpha/osf.h (SIG_ATOMIC_TYPE): Define.
2510 (INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE): Define.
2511 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
2512 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
2513 INT_LEAST64_TYPE): Define.
2514 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
2515 UINT_LEAST64_TYPE): Define.
2516 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
2517 INT_FAST64_TYPE): Define.
2518 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
2519 UINT_FAST64_TYPE): Define.
2520 (INTPTR_TYPE, UINTPTR_TYPE): Define.
2521
2522 2009-11-20 Julian Brown <julian@codesourcery.com>
2523
2524 * config/arm/arm.h (ASM_OUTPUT_REG_PUSH): Handle STATIC_CHAIN_REGNUM
2525 specially for Thumb-1.
2526 (ASM_OUTPUT_REG_POP): Likewise.
2527
2528 2009-11-19 Jason Merrill <jason@redhat.com>
2529
2530 * dwarf2out.c (get_context_die): Take TYPE_MAIN_VARIANT.
2531
2532 2009-11-19 Basile Starynkevitch <basile@starynkevitch.net>
2533 Rafael Avila de Espindola <espindola@google.com>
2534
2535 * doc/plugins.texi (Plugin initialization): Added advices for
2536 retrieving the version of GCC at plugin compilation and loading times.
2537
2538 2009-11-19 Basile Starynkevitch <basile@starynkevitch.net>
2539
2540 * plugin.c (FMT_FOR_PLUGIN_EVENT): added definition.
2541 (dump_active_plugins): output to file everything. Use
2542 internationalized dump & FMT_FOR_PLUGIN_EVENT.
2543
2544 2009-11-19 Richard Guenther <rguenther@suse.de>
2545
2546 * gimple.c (canonicalize_cond_expr_cond): Strip conversions
2547 around truth-valued expressions.
2548 * tree.c (free_lang_data): Untangle check for LTO frontend.
2549
2550 2009-11-19 Jakub Jelinek <jakub@redhat.com>
2551
2552 * tree.c (need_assembler_name_p): Use cgraph_get_node instead
2553 of cgraph_node_for_decl.
2554 * cgraph.h (cgraph_node_for_decl): Remove prototype.
2555 * cgraph.c (cgraph_node_for_decl): Remove.
2556 (cgraph_get_node): Just return NULL if !cgraph_hash.
2557
2558 2009-11-19 Paul Brook <paul@codesourcery.com>
2559
2560 * config.gcc: Add new ARM --with-fpu options.
2561 * doc/invoke.texi: Docuent ARM -mfpu=fpv4-sp-d16.
2562 * config/arm/arm.c (all_fpus): Add fpv4-sp-d16.
2563
2564 2009-11-18 Richard Guenther <rguenther@suse.de>
2565
2566 * gimple.h (union gimple_statement_d): Add gsmembase member.
2567 (gimple_vuse_op): Use gsmembase for access.
2568 (gimple_vdef_op): Likewise.
2569 (gimple_vuse): Likewise.
2570 (gimple_vdef): Likewise.
2571 (gimple_vuse_ptr): Likewise.
2572 (gimple_vdef_ptr): Likewise.
2573 (gimple_set_vuse): Likewise.
2574 (gimple_set_vdef): Likewise.
2575 * gsstruct.def (GSS_WITH_MEM_OPS_BASE): Add.
2576
2577 2009-11-18 Daniel Jacobowitz <dan@codesourcery.com>
2578
2579 * doc/arm-neon-intrinsics.texi: Regenerated.
2580
2581 2009-11-18 Daniel Jacobowitz <dan@codesourcery.com>
2582
2583 * config/arm/neon-docgen.ml (analyze_shape_elt): Handle alternatives.
2584
2585 2009-11-18 Paul Brook <paul@codesourcery.com>
2586 Daniel Jacobowitz <dan@codesourcery.com>
2587
2588 * config/arm/arm.c (FL_ARCH7EM, FL_FOR_ARCH7EM): Define.
2589 (arm_arch7em): New variable.
2590 (all_architectures): Add armv7e-m.
2591 (arm_override_options): Set arm_arch7em.
2592 * config/arm/arm.h (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD):
2593 Include arm_arch7em.
2594 (arm_arch7em): Declare.
2595
2596 2009-11-18 Richard Guenther <rguenther@suse.de>
2597
2598 * lto-streamer-in.c (input_gimple_stmt): Assert that we find
2599 a valid field decl if checking is enabled.
2600
2601 2009-11-18 Martin Jambor <mjambor@suse.cz>
2602
2603 * ipa-prop.h (struct ipa_param_call_note): New field lto_stmt_uid.
2604 (lto_ipa_fixup_call_notes): Declare.
2605 * ipa-prop.c (ipa_note_param_call): Store gimple uid.
2606 (update_call_notes_after_inlining): Copy call stmt uid to the new
2607 edge.
2608 (ipa_write_param_call_note): New function.
2609 (ipa_read_param_call_note): New function
2610 (ipa_write_node_info): Write also param call notes. Removed a bogus
2611 comment, reformatted to fit 80 columns.
2612 (ipa_read_node_info): Read also param call notes. Removed a bogus
2613 comment. Remove ipa_edge_args_vector growth.
2614 (lto_ipa_fixup_call_notes): New function.
2615 * ipa-cp.c (pass_ipa_cp): Add stmt_fixup hook.
2616 * ipa-inline.c (cgraph_mark_inline_edge): Perform indirect
2617 inlining regardless of flag_wpa.
2618 (cgraph_decide_inlining_of_small_functions): Likewise.
2619 (cgraph_decide_inlining): Likewise.
2620 (inline_read_summary): Likewise.
2621
2622 2009-11-18 Jan Hubicka <jh@suse.cz>
2623
2624 * predict.c (compute_function_frequency): Export.
2625 * predict.h (compute_function_frequency): Declare.
2626 * tree-optimize.c (execute_fixup_cfg): Rescale frequencies.
2627
2628 2009-11-18 Martin Jambor <mjambor@suse.cz>
2629
2630 * passes.c (ipa_write_summaries): Call renumber_gimple_stmt_uids
2631 on all nodes we write summaries for.
2632
2633 2009-11-18 Shujing Zhao <pearly.zhao@oracle.com>
2634
2635 PR middle-end/22201
2636 * params.def (PARAM_INLINE_UNIT_GROWTH, PARAM_IPCP_UNIT_GROWTH)
2637 (PARAM_EARLY_INLINING_INSNS, PARAM_IRA_MAX_LOOPS_NUM)
2638 (PARAM_IRA_MAX_CONFLICT_TABLE_SIZE)
2639 (PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP)
2640 (PARAM_MIN_INSN_TO_PREFETCH_RATIO)
2641 (PARAM_PREFETCH_MIN_INSN_TO_MEM_RATIO)
2642 (PARAM_IPA_SRA_PTR_GROWTH_FACTOR): Uppercase the first letter of the
2643 description string.
2644
2645 2009-11-18 Jakub Jelinek <jakub@redhat.com>
2646
2647 * dwarf2out.c (loc_list_from_tree): Don't call rtl_for_decl_location
2648 unnecessarily.
2649 (rtl_for_decl_location): Try harder to get a rtl for TREE_STATIC vars.
2650
2651 PR c++/3187
2652 * cgraph.h (struct cgraph_node): Add same_body and same_body_alias
2653 fields.
2654 (cgraph_same_body_alias, cgraph_remove_same_body_alias): New
2655 prototypes.
2656 * cgraphunit.c (cgraph_expand_function, cgraph_emit_thunks,
2657 cgraph_materialize_all_clones): Handle same_body aliases.
2658 * cgraph.c (cgraph_allocate_node): New function.
2659 (cgraph_create_node): Use it.
2660 (cgraph_node_for_decl, cgraph_node, cgraph_get_node,
2661 cgraph_node_for_asm, cgraph_remove_node): Handle same_body aliases.
2662 (cgraph_same_body_alias, cgraph_remove_same_body_alias): New
2663 functions.
2664 * lto-cgraph.c (lto_output_node): Stream out same_body aliases.
2665 (input_node): Stream in same_body aliases.
2666 * lto-symtab.c (lto_cgraph_replace_node): Clear node pointers
2667 for same_body aliases.
2668 (lto_symtab_merge_cgraph_nodes_1): Handle same_body aliases.
2669
2670 2009-11-18 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2671
2672 PR other/39888
2673 * config/darwin.h: Use the extension stub libraries to access
2674 current libgcc_s features.
2675
2676 2009-11-18 Alexandre Oliva <aoliva@redhat.com>
2677
2678 PR debug/41926
2679 * tree-vect-loop.c (vect_loop_kill_debug_uses): New.
2680 (vect_transform_loop): Call it.
2681
2682 2009-11-18 Alexandre Oliva <aoliva@redhat.com>
2683
2684 * tree-ssa.c (insert_debug_temp_for_var_def): Fix handling of
2685 released SSA names.
2686
2687 2009-11-18 Alexandre Oliva <aoliva@redhat.com>
2688
2689 PR debug/41888
2690 PR debug/41886
2691 * graphite-scop-detection.c (stmt_simple_for_scop_p): Debug stmts
2692 are ok.
2693 * graphite-sese-to-poly.c (graphite_stmt_p): Likewise.
2694 (try_generate_gimple_bb): Skip debug stmts when finding data refs.
2695 * sese.c (sese_build_liveouts_bb): Skip debug stmts.
2696 (sese_bad_liveouts_use): New.
2697 (sese_reset_debug_liveouts_bb): New.
2698 (sese_build_liveouts): Use it.
2699 (rename_variables_in_stmt): Reset debug stmts rather than creating
2700 new vars for them.
2701 (expand_scalar_variable_stmt): Likewise.
2702
2703 2009-11-18 Alexandre Oliva <aoliva@redhat.com>
2704
2705 * df-scan.c (df_ref_create): Don't mark BB as dirty on debug insns.
2706 (df_ref_remove): Likewise.
2707
2708 2009-11-17 Jan Hubicka <jh@suse.cz>
2709
2710 * ipa-struct-reorg.c (update_cgraph_with_malloc_call): Fix profile
2711 info.
2712
2713 2009-11-17 Eric Botcazou <ebotcazou@adacore.com>
2714
2715 * toplev.c (process_options): Remove dead code.
2716 * doc/invoke.texi (-frename-registers): Mention -fpeel-loops.
2717
2718 2009-11-17 Rafael Avila de Espindola <espindola@google.com>
2719
2720 * lto-symtab.c (lto_symtab_resolve_symbols): Always initialize the
2721 nodes.
2722
2723 2009-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2724
2725 PR tree-optimization/41857
2726 * tree-ssa-address.c (move_hint_to_base): Use void pointer to
2727 TYPE's address space instead of pointer to TYPE.
2728
2729 2009-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2730
2731 * reload.c (find_reloads_address): Fix typo.
2732
2733 2009-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2734
2735 * config/spu/spu.c (get_pic_reg): Use LAST_ARG_REGNUM as PIC
2736 registers in leaf functions if possible.
2737
2738 2009-11-17 Maxim Kuvyrkov <maxim@codesourcery.com>
2739
2740 * config/m68k/m68k-devices.def: Add MCF5441x family.
2741
2742 2009-11-17 Jan Hubicka <jh@suse.cz>
2743
2744 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not access
2745 removed node.
2746 * cgraphunit.c (verify_cgraph_node): Verify frequencies for match.
2747
2748 2009-11-17 Uros Bizjak <ubizjak@gmail.com>
2749
2750 * config/i386/predicates.md (x86_64_szext_general_operand): Do not
2751 nest ior expressions.
2752 (x86_64_szext_nonmemory_operand): Ditto.
2753 (call_insn_operand): Ditto.
2754
2755 2009-11-16 Alexandre Oliva <aoliva@redhat.com>
2756
2757 * stmt.c (expand_asm_stmt): Get locus from stmt.
2758
2759 2009-11-16 Alexandre Oliva <aoliva@redhat.com>
2760
2761 * tree-cfg.c (gimple_redirect_edge_and_branch) <case GIMPLE_ASM>:
2762 Create the decl label for the new dest block on demand. Require
2763 a fallthrough edge if no asm labels were redirected.
2764
2765 2009-11-16 Uros Bizjak <ubizjak@gmail.com>
2766
2767 * config/i386/i386.md (cbranchsi4): Use nonimmediate_operand for
2768 operand 1 predicate.
2769 (cstoresi4): Ditto for operand 2.
2770 (cbranch<mode>4): Macroize expander from cbranch{qi,hi,si,di,ti}4
2771 patterns using SDWIM mode iterator.
2772 (cstore<mode>4): Macroize expander from cstore{qi,hi,si,di}4 patterns
2773 using SWIM mode iterator.
2774 (cmpdi_1): Rename from cmpdi_1_rex64.
2775 (cmp<mode>_1): Macroize expander from cmp{si,di}_1 patterns using
2776 SWI48 mode iterator.
2777 (*cmp<mode>_1): Macroize insn from *cmp{qi,hi,si,di}_1_insn patterns
2778 using SWI mode iterator.
2779 (*cmp<mode>_ccno_1): Ditto from *cmp{qi,hi,si,di}_ccno_1.
2780 (*cmp<mode>_minus_1): Ditto from *cmp{qi,hi,si,di}_minus_1.
2781 (*cmpqi_ext_3_insn): Make private.
2782 (*cmpqi_ext_3_insn_rex64): Make private.
2783 (cmpstrnsi): Update for renamed cmpdi_1_rex64.
2784 * config/i386/predicates.md (cmpsi_operand): Remove.
2785
2786 2009-11-16 Paul Brook <paul@codesourcery.com>
2787
2788 * doc/invoke.texi: Document ARM VFPv4 based FPUs.
2789 * config/arm/arm.c (all_fpus): Add VFPv4 entries.
2790
2791 2009-11-14 Jan Hubicka <jh@suse.cz>
2792
2793 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use proper
2794 ENTRY_BLOCK_PTR.
2795 * cgraph.c (cgraph_clone_edge): Avoid freq_scale 0 to completely
2796 zero out all callees.
2797 * cgraphunit.c (verify_cgraph_node): Verify cgraph nodes for
2798 frequency and count match.
2799 * ipa-inline.c (update_noncloned_frequencies): New function.
2800 (cgraph_clone_inlined_nodes): Use it.
2801 * tree-inline.c (copy_bb): Fix frequency scaling; output
2802 diagnostic on frequency mismatches to dump file.
2803 (initialize_cfun): Do not scale frequency; fix count scaling;
2804 initialize entry and exit block frequencies; copy profile info.
2805 (copy_cfg_body): Use frequency_scale as argument; fix count scaling.
2806 (copy_body): Use frequency_scale as argument.
2807 (expand_call_inline): Compute frequency scale and output diagnostic
2808 to dump file.
2809 (delete_unreachable_blocks_update_callgrah): Remove checking that
2810 has to be done after edge redirection.
2811 (tree_function_versioning): Update initialize_cfun and copy_body call.
2812
2813 2009-11-14 Jan Hubicka <jh@suse.cz>
2814
2815 * cgraph.c (cgraph_release_function_body): Update use of
2816 ipa_transforms_to_apply.
2817 (cgraph_remove_node): Remove ipa_transforms_to_apply.
2818 * cgraph.h (struct cgraph_node): Add ipa_transforms_to_apply.
2819 * cgraphunit.c (save_inline_function_body): Clear ipa_transforms for
2820 copied body.
2821 (cgraph_materialize_clone): Remove original if dead.
2822 * lto-streamer-in.c (lto_read_body): Remove FIXME and
2823 ipa_transforms_to_apply hack.
2824 * function.h (struct function): Add ipa_transforms_to_apply.
2825 * ipa.c (cgraph_remove_unreachable_nodes): Handle dead clone originals.
2826 * tree-inline.c (copy_bb): Update sanity check.
2827 (initialize_cfun): Do not copy ipa_transforms_to_apply.
2828 (expand_call_inline): remove dead clone originals.
2829 (tree_function_versioning): Merge transformation queues.
2830 * passes.c (add_ipa_transform_pass): Remove.
2831 (execute_one_ipa_transform_pass): Update ipa_transforms_to_apply
2832 tracking.
2833 (execute_all_ipa_transforms): Update.
2834 (execute_one_pass): Update.
2835
2836 2009-11-14 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
2837
2838 PR target/21078, 21080
2839 * config/avr/avr.c (avr_return_addr_rtx): New function for
2840 builtin_return_address.
2841 (expand_prologue): Calculate stack usage.
2842 (avr_asm_function_end_prologue): Output stack size and offset label.
2843 * config/avr/avr.h (RETURN_ADDR_RTX): Replace.
2844 (machine_function): Add stack_usage.
2845 * config/avr/avr-protos.h (avr_return_addr_rtx): New function.
2846
2847 2009-11-14 Anatoly Sokolov <aesok@post.ru>
2848
2849 * config/iq2000/iq2000.c (iq2000_function_value): Make static, add
2850 new 'outgoing' argument.
2851 (iq2000_libcall_value, iq2000_function_value_regno_p): New functions.
2852 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
2853 * config/iq2000/iq2000.h (FUNCTION_VALUE_REGNO_P): Redefine, use
2854 iq2000_function_value_regno_p.
2855 (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
2856 * config/iq2000/iq2000-protos.h (iq2000_function_value_regno_p):
2857 Declare.
2858
2859 2009-11-14 Richard Earnshaw <rearnsha@arm.com>
2860
2861 PR target/42031
2862 * arm.md (adddi_sesidi_di): Place tied contraint first.
2863 (adddi_zesidi_di, subdi_di_zesidi, subdi_di_sesidi): Likewise
2864 (subdi_zesidi_di, subdi_sesidi_di): Likewise.
2865 (mulsi3_compare0, mulsi_compare0_scratch): Likewise.
2866 (mulsi3addsi, mulsi3addsi_compare0): Likewise.
2867 (mulsi3addsi_compare0_scratch, smulsi3_highpart_nov6): Likewise.
2868 (umulsi3_highpart_nov6, anddi_zesidi_di, anddi_sesdi_di): Likewise.
2869 (anddi_notdi_di, iordi_sesidi_di, xordi_sesidi_di): Likewise.
2870 (andsi_iorsi3_notsi, arm_ashldi3_1bit, arm_ashrdi3_1_bit): Likewise.
2871 (arm_lshrdi3_1bit, one_cmpldi2): Likewise.
2872
2873 2009-11-14 Uros Bizjak <ubizjak@gmail.com>
2874
2875 * config/i386/predicates.md (call_register_no_elim_operand):
2876 New predicate. Reject stack register as valid call operand
2877 for 32bit targets.
2878 (call_insn_operand): Use call_register_no_elim_operand.
2879
2880 2009-11-13 Richard Henderson <rth@redhat.com>
2881
2882 * function.c (stack_protect_prologue): Don't bypass expand_expr
2883 for stack_protect_guard and guard_decl.
2884 (stack_protect_epilogue): Likewise.
2885
2886 2009-11-13 Jan Hubicka <jh@suse.cz>
2887
2888 * ipa.c (function_and_variable_visibility): Clear COMDAT on functions
2889 when to PUBLIC is set.
2890
2891 2009-11-13 Jakub Jelinek <jakub@redhat.com>
2892
2893 PR middle-end/42029
2894 * gimplify.c (gimplify_omp_atomic): Set DECL_GIMPLE_REG_P on
2895 tmp_load if needed.
2896
2897 2009-11-13 Uros Bizjak <ubizjak@gmail.com>
2898
2899 PR target/41900
2900 * config/i386/i386.md (*call_pop_1, *call_1, *call_value_pop_1,
2901 *call_value_1): Use "lsm" as operand 1 constraint.
2902 * config/i386/predicates.md (call_insn_operand): Depend on
2903 index_register_operand to avoid %esp register.
2904
2905 2009-11-13 Uros Bizjak <ubizjak@gmail.com>
2906
2907 Revert:
2908 2009-11-03 Uros Bizjak <ubizjak@gmail.com>
2909
2910 PR target/41900
2911 * config/i386/i386.h (ix86_arch_indices) <X86_ARCH_CALL_ESP>: New.
2912 (TARGET_CALL_ESP): New define.
2913 * config/i386/i386.c (initial_ix86_tune_features): Initialize
2914 X86_ARCH_CALL_ESP.
2915 * config/i386/i386.md (*call_pop_1_esp, *call_1_esp,
2916 *call_value_pop_1_esp, *call_value_1_esp): Rename from *call_pop_1,
2917 *call_1, *call_value_pop_1 and *call_value_1. Depend on
2918 TARGET_CALL_ESP.
2919 (*call_pop_1, *call_1, *call_value_pop_1, *call_value_1):
2920 New patterns, use "lsm" as operand 1 constraint.
2921 * config/i386/predicates.md (call_insn_operand): Depend on
2922 index_register_operand for !TARGET_CALL_ESP to avoid %esp register.
2923
2924 2009-11-13 Jason Merrill <jason@redhat.com>
2925
2926 PR debug/26965
2927 * dwarf2out.c (gen_variable_die): Don't worry about DECL_COMDAT.
2928 Don't emit a second declaration at any scope.
2929
2930 2009-11-13 Andrey Belevantsev <abel@ispras.ru>
2931
2932 PR rtl-optimization/41697
2933 * sel-sched-ir.c (fallthru_bb_of_jump): Bail out when a block with
2934 a conditional jump has a single successor.
2935
2936 2009-11-13 Andrey Belevantsev <abel@ispras.ru>
2937
2938 * sched-deps.c (init_deps): New parameter lazy_reg_last. Don't
2939 allocate reg_last when in case lazy_reg_last is true.
2940 (init_deps_reg_last): New.
2941 (free_deps): When max_reg is 0, this context is already freed.
2942 * sched-int.h (init_deps_reg_last): Export.
2943 (init_deps): Update prototype.
2944 * sched-ebb.c (schedule_ebb): Update the call to init_deps.
2945 * sched-rgn.c (sched_rgn_compute_dependencies): Likewise.
2946 * ddg.c (build_intra_loop_deps): Likewise.
2947 * sel-sched-ir.c (copy_deps_context, create_deps_context,
2948 reset_deps_context, deps_init_id): Likewise.
2949 (init_first_time_insn_data): Lazy allocate INSN_DEPS_CONTEXT.
2950 (free_data_for_scheduled_insn): New, break down from ...
2951 (free_first_time_insn_data): ... here.
2952 (has_dependence_p): Allocate reg_last now, when it is needed.
2953 (extend_insn_data): When maximal LUID is big enough, allocate
2954 per-insn data in smaller chunks.
2955 * sel-sched-ir.h (free_data_for_scheduled_insn): Export.
2956 * sel-sched.c (update_seqnos_and_stage): Free INSN_DEPS_CONTEXT
2957 in scheduled insn.
2958
2959 2009-11-13 Uros Bizjak <ubizjak@gmail.com>
2960
2961 * config/i386/i386.md (call_value): Fix comment.
2962 (sibcall_value): Ditto.
2963
2964 2009-11-13 Eric Botcazou <ebotcazou@adacore.com>
2965
2966 * config/i386/linux-unwind.h (x86_frob_update_context): New function.
2967 (MD_FROB_UPDATE_CONTEXT): Define.
2968
2969 2009-11-12 Eric Botcazou <ebotcazou@adacore.com>
2970 Laurent GUERBY <laurent@guerby.net>
2971
2972 * config/sparc/linux-unwind.h (sparc64_fallback_frame_state): Tidy.
2973 Do not schedule an %sp restore. Compensate for RETURN_ADDR_OFFSET.
2974 (sparc_fallback_frame_state): Tidy. Compensate for RETURN_ADDR_OFFSET.
2975
2976 2009-11-12 Jan Hubicka <jh@suse.cz>
2977
2978 * ipa.c (function_and_variable_visibility): Fix my accidentail commit
2979 and clear DECL_COMMON on localized declarations.
2980
2981 2009-11-12 Bernd Schmidt <bernd.schmidt@analog.com>
2982
2983 PR rtl-opt/38582
2984 * regrename.c (struct du_head): New structure; some elements moved
2985 from...
2986 (struct du_chain): ... this one.
2987 (open_chains, closed_chains): Now of type struct du_head *.
2988 (do_replace): Accept du_head argument, not du_chain. All callers
2989 changed. Modified code to match new data structures.
2990 (build_def_use): Return a list of du_head structures. Modified code
2991 to match new data structures.
2992 (dump_def_use_chain): Accept du_head argument, not du_chain. All
2993 callers changed. Modified code to match new data structures.
2994 (merge_overlapping_regs): Accept du_head argument, not du_chain. All
2995 callers changed. Modified code to match new data structures.
2996 (scan_rtx_reg): Change type of this_regno and this_nregs to unsigned.
2997 Allocate a du_head structure as well as a du_chain when creating a
2998 new chain. Modified other code to match new data structures.
2999
3000 2009-11-12 Jan Hubicka <jh@suse.cz>
3001
3002 * cgraph.h (varpool_node_name): Declare.
3003 * cgraphunit.c (process_function_and_variable_attributes): Set
3004 force_output flag on used variables.
3005 * ipa.c (function_and_variable_visibility): Dump externally visible
3006 and needed variables.
3007 * varpool.c (varpool_node_name): Export.
3008 (decide_is_variable_needed): Check COMDAT for externally visible vars;
3009 ignore needed flag.
3010
3011 2009-11-12 Uros Bizjak <ubizjak@gmail.com>
3012
3013 PR middle-end/41930
3014 * simplify-rtx.c (simplify_replace_fn_rtx) <case 'e'>: Skip
3015 processing if XEXP (x, i) is NULL.
3016
3017 2009-11-12 Jan Hubicka <jh@suse.cz>
3018
3019 * ipa.c (function_and_variable_visibility): Verify that WEAK || COMMON
3020 imply PUBLIC || EXTERNAL.
3021
3022 2009-11-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
3023
3024 PR middle-end/41440
3025 * cfgexpand.c (expand_gimple_basic_block): Append NOP to a fallthru,
3026 single successor block, ending with jump created by RTL expander.
3027
3028 2009-11-11 Jan Hubicka <jh@suse.cz>
3029
3030 PR middle-end/41729
3031 * ipa.c (function_and_variable_visibility): Do not privatize COMDAT
3032 and WEAK variables at -fwhole-program.
3033
3034 PR middle-end/41735
3035 * ipa.c (whole_program_function_and_variable_visility): COMDAT
3036 functions/variables are not needed even if they are externally visible.
3037
3038 2009-11-11 Jan Hubicka <jh@suse.cz>
3039
3040 (patch by Richard Guenther)
3041 * lto-streamer-out.c (output_function): Output head of argument list
3042 earlier.
3043 * lto-streamer-in.c (input_function): Re-map arguments into merged
3044 declaration.
3045
3046 2009-11-11 Jan Hubicka <jh@suse.cz>
3047
3048 * lto-cgraph.c: Include gcov-io.h
3049 (output_profile_summary): New function.
3050 (output_cgraph): Use it.
3051 (input_profile_summary): New function.
3052 (input_cgraph): Use it.
3053 * coverage.c (build_ctr_info_value): Use varpool; initalize
3054 DECL_ASSEMBLER_NAME.
3055 (create_coverage): Likewise.
3056 * tree-profile.c (tree_init_ic_make_global_vars): Likewise.
3057 (tree_init_edge_profiler): Likewise.
3058 * Makefile.in (lto-cgraph.o): Add dependency on gcov-io.h.
3059
3060 2009-11-11 Kai Tietz <kai.tietz@onevision.com>
3061
3062 * config/i386/cygming.h (HANDLE_PRAGMA_PUSH_POP_MACRO): Removed.
3063 * c-pragma.c (def_pragma_macro_value): Likewise.
3064 (def_pragma_macro): Likewise.
3065 (pushed_macro_table): Likewise.
3066 (HANDLE_PRAGMA_PUSH_POP_MACRO): Remove guarded code.
3067 * doc/tm.texi (HANDLE_PRAGMA_PUSH_POP_MACRO): Removed.
3068
3069 2009-11-11 Basile Starynkevitch <basile@starynkevitch.net>
3070
3071 * doc/plugins.texi (Registering custom attributes): section
3072 renamed as (Registering custom attributes or pragmas).
3073 Mentions custom attributes & pragmas, and c_register_pragma, with
3074 a small example.
3075 * doc/cpp.texi (Pragmas): Mentions that plugins can provide their
3076 pragmas.
3077 * doc/extend.texi (Function Attributes): Mentions that plugin can
3078 provide their attributes.
3079
3080 2009-11-11 Jon Beniston <jon@beniston.com>
3081
3082 * config.gcc: Add lm32 elf and uclinux targets.
3083 * config/lm32: New directory.
3084 * config/lm32/lm32.c: New file.
3085 * config/lm32/lm32.h: New file.
3086 * config/lm32/lm32.md: New file.
3087 * config/lm32/lm32.opt: New file.
3088 * config/lm32/lm32-protos.h: New file.
3089 * config/lm32/constraints.md: New file.
3090 * config/lm32/predicates.md: New file.
3091 * config/lm32/sfp-machine.h: New file.
3092 * config/lm32/t-fprules-softfp: New file.
3093 * config/lm32/uclinux-elf.h: New file.
3094 * doc/invoke.texi: Document lm32 options.
3095 * doc/contrib.texi: Document lm32 porter.
3096 * doc/install.texi: Document lm32 targets.
3097
3098 2009-11-11 Martin Jambor <mjambor@suse.cz>
3099
3100 PR lto/41932
3101 * ipa-prop.c (ipa_update_after_lto_read): Call
3102 ipa_check_create_node_params and ipa_check_create_edge_args. Also
3103 call ipa_initialize_node_params instead of ipa_populate_param_decls.
3104
3105 2009-11-11 Daniel Jacobowitz <dan@codesourcery.com>
3106
3107 * config/arm/arm.c (neon_vdup_constant, neon_make_constant): New.
3108 (neon_expand_vector_init): Use them. Also handle non-constant
3109 vectors with identical elements and vectors with only one
3110 non-constant element.
3111 (arm_print_operand): Handle 'y' modifier.
3112 * config/arm/arm-protos.h (neon_make_constant): Declare.
3113 * config/arm/neon.md (neon_vdup_n<mode>): Split into two
3114 patterns. Use VX instead of VDQW for the first one. Allow
3115 a VFP alternative and V32 modes for the second one.
3116 * config/arm/neon.ml (shape_elt): Add Alternatives.
3117 (ops): Use Alternatives for vdup lane instructions.
3118 * config/arm/neon-testgen.ml (analyze_shape): Handle Alternatives.
3119 * config/arm/vec-common.md (mov<mode>): Use neon_make_constant.
3120
3121 2009-11-11 Daniel Jacobowitz <dan@codesourcery.com>
3122
3123 * config/arm/neon.md (*neon_mov<mode>): Reject two non-register
3124 operands.
3125 (movti, mov<mode>): Call force_reg on one operand if required.
3126 * config/arm/vec-common.md (mov<mode>): Likewise.
3127
3128 2009-11-11 Daniel Jacobowitz <dan@codesourcery.com>
3129
3130 * config/arm/arm.c (arm_override_options): Enable scheduling for
3131 Thumb-2.
3132
3133 2009-11-10 Eric Botcazou <ebotcazou@adacore.com>
3134
3135 PR target/10127
3136 PR ada/20548
3137 * expr.h (anti_adjust_stack_and_probe): Declare.
3138 * explow.c (anti_adjust_stack_and_probe): Make global, add ADJUST_BACK
3139 parameter and rewrite head comment.
3140 (allocate_dynamic_stack_space): Adjust call to above function.
3141 * function.c (expand_function_end): Handle STACK_CHECK_MOVING_SP.
3142
3143 * tree.h (dwarf2out_args_size): Delete.
3144 * dwarf2out.c (dwarf2out_args_size): Make static and move around.
3145 (dwarf2out_args_size_adjust): Delete prototype and move around.
3146 (dwarf2out_frame_debug_expr): Do not record arg size adjustments for
3147 ACCUMULATE_OUTGOING_ARGS targets.
3148
3149 2009-11-10 Eric Botcazou <ebotcazou@adacore.com>
3150
3151 * config/sparc/sparc.c (print_operand) <')'>: Test for a non-null
3152 DECL_SIZE of DECL_RESULT before evaluating it.
3153
3154 2009-11-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3155
3156 PR tree-optimization/41987
3157 * fold-const.c (const_binop): Avoid using fold_buildN().
3158
3159 2009-11-10 Martin Jambor <mjambor@suse.cz>
3160
3161 * tree-pass.h (struct ipa_opt_pass_d): Added stmt_fixup field.
3162 (execute_all_ipa_stmt_fixups): Declare.
3163 * ipa-cp.c (pass_ipa_cp): Added stmt_fixup value.
3164 * ipa-inline.c (pass_ipa_inline): Likewise.
3165 * ipa-pure-const.c (pass_ipa_pure_cons): Likewise.
3166 * ipa-reference.c (pass_ipa_reference): Likewise.
3167 * ipa.c (pass_ipa_whole_program_visibility): Likewise.
3168 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Likewise.
3169 (pass_ipa_lto_finish_out): Likewise.
3170 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Likewise.
3171 * passes.c (execute_ipa_stmt_fixups): New function.
3172 (execute_all_ipa_stmt_fixups): New function.
3173 * lto-streamer-in.c (input_function): Call execute_all_ipa_stmt_fixups.
3174
3175 2009-11-10 Eric Botcazou <ebotcazou@adacore.com>
3176
3177 PR ada/20548
3178 * explow.c (probe_stack_range): Fix typo.
3179 * config/sparc/sparc.md (probe_stack): New expander.
3180
3181 2009-11-09 Dave Korn <dave.korn.cygwin@gmail.com>
3182
3183 * config/i386/cygwin.h (LINK_SPEC): Add -tsaware flag if !mno-cygwin.
3184
3185 2009-11-09 Jason Merrill <jason@redhat.com>
3186
3187 * gdbinit.in (pgq): New function for printing gimple sequence.
3188
3189 2009-11-09 Paul Brook <paul@codesourcery.com>
3190 Daniel Jacobowitz <dan@codesourcery.com>
3191 Sandra Loosemore <sandra@codesourcery.com>
3192
3193 * doc/extend.texi (Half-Precision): Update wording to reflect
3194 that there are now multiple -mfpu options that enable fp16
3195 hardware support.
3196 * doc/invoke.texi: Update list of ARM -mfpu= options.
3197 * config.gcc: Update ARM --with-fpu option list.
3198 * config/arm/arm.c (all_fpus): Add vfpv3-fp16, vfpv3-d16-fp16,
3199 vfpv3xd and vfpv3xd-fp16.
3200 (use_vfp_abi): New function.
3201 (aapcs_vfp_is_call_or_return_candidate): Avoid double precision regs
3202 when undesirable.
3203 (aapcs_vfp_is_return_candidate, aapcs_vfp_is_call_candidate,
3204 aapcs_vfp_allocate_return_reg): Use use_vfp_abi.
3205 (arm_rtx_costs_1, arm_size_rtx_costs, arm_fastmul_rtx_costs,
3206 arm_9e_rtx_costs): Only expect double-precision operations if the FPU
3207 provides them.
3208 (coproc_secondary_reload_class): Reload HFmode via GENERAL_REGS if no
3209 NEON.
3210 (arm_print_operand): Handle 'p' modifier.
3211 (arm_hard_regno_mode_ok): : Allow HFmode in VFP registers if
3212 TARGET_FP16.
3213 * config/arm/arm.h (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Define.
3214 (TARGET_FP16): Define.
3215 * config/arm/vfp.md: Disable double-precision patterns if the FPU
3216 does not provide them.
3217 (arm_movdi_vfp, thumb2_movdi_vfp): Use fcpys to move
3218 double-precision values on a single-precision FPU.
3219 (movdf_vfp, thumb2_movdf_vfp): Likewise. Use "Dy" for
3220 double-precision constants.
3221 (movhf_vfp_neon): New pattern (was movhf_vfp).
3222 (movhf_vfp): Remove NEON instructions.
3223 * config/arm/constraints.md: Add new "Dy" constraint for
3224 double-precision constants. Update description of "Dv".
3225 * config/arm/arm.md: Disable double-precision patterns if the FPU
3226 does not provide them
3227
3228 2009-11-09 Jakub Jelinek <jakub@redhat.com>
3229
3230 * config/i386/i386.c (print_operand) <case 'D'>: Fix formatting.
3231 (print_operand) <case 'Y'>: Likewise. Fix a pasto in operand lossage
3232 diagnostics.
3233
3234 2009-11-08 H.J. Lu <hongjiu.lu@intel.com>
3235
3236 * collect2.c (main): Search PLUGIN_LD for plugin linker.
3237
3238 * configure.ac (--with-plugin-ld): New. Default to ld.
3239 * configure: Regenerated.
3240 * config.in: Likewise.
3241
3242 * exec-tool.in (ORIGINAL_PLUGIN_LD_FOR_TARGET): New.
3243 (collect-ld): Use ORIGINAL_PLUGIN_LD_FOR_TARGET for -plugin.
3244
3245 2009-11-08 Jonathan Gray <jsg@openbsd.org>
3246
3247 * config/openbsd-stdint.h: Change to reflect what
3248 c_common_nodes_and_builtins expects.
3249
3250 2009-11-08 Paolo Carlini <paolo.carlini@oracle.com>
3251
3252 * builtins.c (apply_args_reg_offset): Remove commented out delaration.
3253
3254 2009-11-08 Jakub Jelinek <jakub@redhat.com>
3255
3256 PR target/41985
3257 * config/i386/i386.c (get_some_local_dynamic_name): Don't assert
3258 function contains at least one local dynamic name.
3259 (print_operand) <case '&'>: Instead output operand lossage diagnostics
3260 here if that happens.
3261
3262 2009-11-08 Zbigniew Chamski <zbigniew.chamski@gmail.com>
3263 Joern Rennecke <amylaar@spamcop.net>
3264
3265 * cfgrtl.c (pass_free_cfg): Add pass name.
3266 * cgraphbuild.c (pass_build_cgraph_edges): Likewise.
3267 (pass_rebuild_cgraph_edges, pass_remove_cgraph_callee_edges): Likewise.
3268 * dce.c (pass_ud_rtl_dce, pass_fast_rtl_dce): Change pass name.
3269 * df-core.c (pass_df_initialize_no_opt): Likewise.
3270 * except.c (pass_rtl_eh): Likewise.
3271 * function.c (pass_init_function, pass_leaf_regs): Likewise.
3272 * gcse.c (pass_rtl_pre): Change pass name.
3273 * passes.c (pass_postreload): Add pass name.
3274 (make_pass_instance): Don't use duplicate-tracking logic for
3275 names starting with '*'.
3276 (next_pass_1): Assert that pass has a name.
3277 (register_one_dump_file): If there is an space in the name,
3278 skip past it.
3279 * predict.c (pass_strip_predict_hints): Add pass name.
3280 * reg-stack.c (pass_stack_regs): Likewise.
3281 * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
3282 * tree-cfg.c (pass_warn_function_return,
3283 pass_warn_function_noreturn): Add pass name.
3284 * tree-dfa.c (pass_referenced_vars): Likewise.
3285 * tree-optimize.c (pass_cleanup_cfg_post_optimizing):
3286 Fix whitespace before comment.
3287 (pass_fixup_cfg): Add pass name, fix whitespace before comment.
3288 (pass_init_datastructures): Add pass name.
3289 * tree-ssa-loop.c (pass_record_bounds): Likewise.
3290 * tree-ssa.c (pass_early_warn_uninitialized,
3291 pass_late_warn_uninitialized): Likewise.
3292 * tree.c (pass_ipa_free_lang_data): Likewise.
3293 * doc/passes.texi (pass manager): Document how to disambiguate
3294 pass names.
3295
3296 2009-11-08 Paolo Bonzini <bonzini@gnu.org>
3297
3298 * df-problems.c: Fix documentation for forward simulation of LR.
3299 (df_simulate_one_insn_forwards): Use df_simulate_find_defs.
3300 (df_simulate_finalize_forwards): Remove.
3301 * df.h (df_simulate_finalize_forwards): Remove.
3302
3303 2009-11-08 Richard Guenther <rguenther@suse.de>
3304
3305 * tree-ssa-structalias.c (build_succ_graph): Properly make
3306 variables escape if they are stored to anything.
3307
3308 2009-11-08 Richard Guenther <rguenther@suse.de>
3309
3310 PR rtl-optimization/41928
3311 * loop-invariant.c (free_loop_data): If we didn't allocate
3312 loop data do not try to free it.
3313
3314 2009-11-07 Jason Merrill <jason@redhat.com>
3315
3316 * tree.c (reconstruct_complex_type): Preserve attributes.
3317
3318 2009-11-07 Richard Guenther <rguenther@suse.de>
3319
3320 * tree-ssa-structalias.c (build_succ_graph): Feed stores
3321 to anything only to variables that can take pointers.
3322 (get_constraint_for_ssa_var): Properly exclude full
3323 variables from expanding.
3324 (first_vi_for_offset): Avoid overflow in arithmetic.
3325 (first_or_preceding_vi_for_offset): Likewise.
3326 (count_num_arguments): Fix implementation.
3327 (gate_ipa_pta): Do not run when not optimizing.
3328
3329 2009-11-07 David Binderman <dcb314@hotmail.com>
3330
3331 * builtins.c (apply_args_size, expand_builtin_mathfn, expand_powi,
3332 expand_builtin_expect, maybe_emit_sprintf_chk_warning): Remove some
3333 set but not used variables.
3334 (apply_args_reg_offset): Comment out as unused.
3335 * calls.c (flags_from_decl_or_type): Likewise.
3336 * genautomata.c (check_regexp_units_distribution): Likewise.
3337
3338 2009-11-07 Uros Bizjak <ubizjak@gmail.com>
3339
3340 * config/i386/sse.md (xop_pmacsww, xop_pmacssww, xop_pmacsdd,
3341 xop_pmacssdd, xop_pmacssdql, xop_pmacssdqh, xop_pmacsdql,
3342 *xop_pmacsdql_mem, xop_pmacsdqh, *xop_pmacsdqh_mem, xop_pmacsswd,
3343 xop_pmacswd, xop_pmadcsswd, xop_pmadcswd, xop_pcmov_<mode>,
3344 xop_pcmov_<mode>256, xop_pperm, xop_pperm_pack_v2di_v4si,
3345 xop_pperm_pack_v4si_v8hi, xop_pperm_pack_v8hi_v16qi): Compress
3346 operand alternatives.
3347
3348 2009-11-06 Michael Matz <matz@suse.de>
3349
3350 PR middle-end/41963
3351 * tree-ssa-math-opts.c (execute_cse_reciprocals): Check all uses
3352 of a potential reciprocal to really be reciprocals.
3353
3354 2009-11-06 Jakub Jelinek <jakub@redhat.com>
3355
3356 * config/i386/x86intrin.h: Include fma4intrin.h, xopintrin.h and
3357 lwpintrin.h after immintrin.h.
3358 * config/i386/fma4intrin.h (__v8sf, __v4df, __m256, __m256d): Remove
3359 typedefs.
3360
3361 PR middle-end/41935
3362 * c-common.c (fold_offsetof_1) <case ARRAY_REF>: Don't crash for VLAs
3363 or non-constant index, allow index one past the last element and
3364 allow exceeding array bound in arrays that might be used as flexible
3365 array members.
3366
3367 2009-11-05 Richard Henderson <rth@redhat.com>
3368
3369 * config/i386/ia32intrin.h: Protect CRC32 builtins with __SSE4_2__.
3370
3371 2009-11-05 Paul Brook <paul@codesourcery.com>
3372
3373 * config/arm/arm.c (arm_fp_model, arm_fpu_arch, arm_fpu_tune): Remove.
3374 (arm_fpu_desc): New.
3375 (all_fpus): Add FPU details.
3376 (fp_model_for_fpu): Remove.
3377 (arm_override_options): Set and use arm_fpu_desc and arm_fpu_attr.
3378 (arm_output_epilogue, arm_save_coproc_regs): Use TARGET_FPA_EMU2.
3379 (arm_file_start): Use arm_fpu_desc.
3380 * config/arm/arm.h (TARGET_FPA, TARGET_MAVERICK, TARGET_VFP,
3381 TARGET_VFPD32, TARGET_VFP3, TARGET_NEON_FP16, TARGET_NEON): Use
3382 arm_fpu_desc.
3383 (TARGET_FPA_EMU2): Define.
3384 (arm_fp_model, fputype, arm_fpu_tune): Remove.
3385 (vfp_reg_type, arm_fpu_desc): New.
3386 * config/arm/arm.md (attr fpu): Simplify.
3387 * config/arm/fpa.md (movxf_fpa): Use TARGET_FPA_EMU2.
3388 * config/arm/linux-elf.h (FPUTYPE_DEFAULT): Use string value.
3389 * config/arm/bpabi.h (FPUTYPE_DEFAULT): Use string value.
3390 * config/arm/netbsd-elf.h (FPUTYPE_DEFAULT): Use string value.
3391 * config/arm/vxworks.h (FPUTYPE_DEFAULT): Use string value.
3392
3393 2009-11-05 Michael Matz <matz@suse.de>
3394
3395 * config/i386/i386.c (ix86_builtin_reciprocal): Remove dependency
3396 on TARGET_RECIP.
3397 * doc/invoke.texi (-mrecip): Clarify that we don't need -mrecip
3398 for 1/sqrtf.
3399
3400 2009-11-04 Jason Merrill <jason@redhat.com>
3401
3402 PR c++/36912
3403 * varasm.c (initializer_constant_valid_p): A PLUS_EXPR
3404 or MINUS_EXPR of REAL_TYPE is not a valid constant initializer.
3405 (output_constant): Avoid crash after error.
3406
3407 2009-11-05 Martin Jambor <mjambor@suse.cz>
3408
3409 * tree-sra.c (struct access): Changed comment of next_sibling field.
3410 (analyze_modified_params): Loop over accesses of a group rather than
3411 over all with the ame base, pass a common bitmap to
3412 walk_aliased_vdefs.
3413 (unmodified_by_ref_scalar_representative): Build link lists of
3414 accesses of a group.
3415 (splice_param_accesses): Likewise.
3416
3417 2009-11-04 Kenneth Zadeck <zadeck@naturalbridge.com>
3418
3419 * df-scan.c (df-uses-record): Add case zero_extract of mem.
3420
3421 2009-11-04 Eric Botcazou <ebotcazou@adacore.com>
3422
3423 PR target/10127
3424 PR ada/20548
3425 * config/i386/i386.md (probe_stack): New expander.
3426 (logical operation peepholes): Do not split stack checking probes.
3427
3428 2009-11-04 Harsha Jagasia <harsha.jagasia@amd.com>
3429 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3430
3431 * doc/invoke.texi (-mlwp): Add documentation.
3432 * doc/extend.texi (x86 intrinsics): Add LWP intrinsics.
3433 * config.gcc (i[34567]86-*-*): Include lwpintrin.h.
3434 (x86_64-*-*): Ditto.
3435 * config/i386/lwpintrin.h: New file, provide x86 compiler
3436 intrinisics for LWP.
3437 * config/i386/cpuid.h (bit_LWP): Define LWP bit.
3438 * config/i386/x86intrin.h: Add LWP check and lwpintrin.h.
3439 * config/i386/i386-c.c (ix86_target_macros_internal): Check
3440 ISA_FLAG for LWP.
3441 * config/i386/i386.h (TARGET_LWP): New macro for LWP.
3442 * config/i386/i386.opt (-mlwp): New switch for LWP support.
3443 * config/i386/i386.c (OPTION_MASK_ISA_LWP_SET): New.
3444 (OPTION_MASK_ISA_LWP_UNSET): New.
3445 (ix86_handle_option): Handle -mlwp.
3446 (isa_opts): Handle -mlwp.
3447 (enum pta_flags): Add PTA_LWP.
3448 (override_options): Add LWP support.
3449 (IX86_BUILTIN_LLWPCB16): New for LWP intrinsic.
3450 (IX86_BUILTIN_LLWPCB32): Ditto.
3451 (IX86_BUILTIN_LLWPCB64): Ditto.
3452 (IX86_BUILTIN_SLWPCB16): Ditto.
3453 (IX86_BUILTIN_SLWPCB32): Ditto.
3454 (IX86_BUILTIN_SLWPCB64): Ditto.
3455 (IX86_BUILTIN_LWPVAL16): Ditto.
3456 (IX86_BUILTIN_LWPVAL32): Ditto.
3457 (IX86_BUILTIN_LWPVAL64): Ditto.
3458 (IX86_BUILTIN_LWPINS16): Ditto.
3459 (IX86_BUILTIN_LWPINS32): Ditto.
3460 (IX86_BUILTIN_LWPINS64): Ditto.
3461 (enum ix86_special_builtin_type): Add LWP intrinsic support.
3462 (builtin_description): Ditto.
3463 (ix86_init_mmx_sse_builtins): Ditto.
3464 (ix86_expand_special_args_builtin): Ditto.
3465 * config/i386/i386.md (UNSPEC_LLWP_INTRINSIC): Add new UNSPEC for
3466 LWP support.
3467 (UNSPEC_SLWP_INTRINSIC): Ditto.
3468 (UNSPECV_LWPVAL_INTRINSIC): Ditto.
3469 (UNSPECV_LWPINS_INTRINSIC): Ditto.
3470 (lwp_llwpcbhi1): New lwp pattern.
3471 (lwp_llwpcbsi1): Ditto.
3472 (lwp_llwpcbdi1): Ditto.
3473 (lwp_slwpcbhi1): Ditto.
3474 (lwp_slwpcbsi1): Ditto.
3475 (lwp_slwpcbdi1): Ditto.
3476 (lwp_lwpvalhi3): Ditto.
3477 (lwp_lwpvalsi3): Ditto.
3478 (lwp_lwpvaldi3): Ditto.
3479 (lwp_lwpinshi3): Ditto.
3480 (lwp_lwpinssi3): Ditto.
3481 (lwp_lwpinsdi3): Ditto.
3482
3483 2009-11-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
3484 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
3485
3486 PR rtl-opt/41833
3487 * simplify-rtx.c (simplify_binary_operation_1): Simplify vec_select of
3488 a vec_duplicate.
3489
3490 2009-11-04 Richard Guenther <rguenther@suse.de>
3491 Rafael Avila de Espindola <espindola@google.com>
3492
3493 * gcc.c (process_command): Handle arguments name@offset.
3494
3495 2009-11-04 Harsha Jagasia <harsha.jagasia@amd.com>
3496 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3497
3498 * config.gcc (i[34567]86-*-*): Include xopintrin.h.
3499 (x86_64-*-*): Ditto.
3500 * config/i386/xopintrin.h: New file, provide common x86 compiler
3501 intrinisics for XOP.
3502 * config/i386/cpuid.h (bit_XOP): Define XOP bit.
3503 * config/i386/x86intrin.h: Add XOP check and xopintrin.h.
3504 * config/i386/i386-c.c(ix86_target_macros_internal): Check
3505 ISA_FLAG for XOP.
3506 * config/i386/i386.h(TARGET_XOP): New macro for XOP.
3507 * config/i386/i386.opt (-mxop): New switch for XOP support.
3508 * config/i386/i386.md (UNSPEC_XOP_UNSIGNED_CMP)
3509 (UNSPEC_XOP_TRUEFALSE)
3510 (UNSPEC_XOP_PERMUTE)
3511 (UNSPEC_FRCZ): Add new UNSPEC for XOP support.
3512 (PPERM_*): New constants for vpperm instruction.
3513 (xop_pcmov_<mode>): Add XOP conditional mov instructions.
3514 * config/i386/i386.c (OPTION_MASK_ISA_XOP_SET): New.
3515 (OPTION_MASK_ISA_XOP_UNSET): New.
3516 (OPTION_MASK_ISA_XOP_UNSET): Change definition to depend on XOP.
3517 (ix86_handle_option): Handle -mxop.
3518 (isa_opts): Handle -mxop.
3519 (enum pta_flags): Add PTA_XOP.
3520 (override_options): Add XOP support.
3521 (print_operand): Add code for XOP compare instructions.
3522 (ix86_expand_sse_movcc): Extend for XOP conditional move instruction.
3523 (ix86_expand_int_vcond): Extend for XOP compare instruction.
3524
3525 (IX86_BUILTIN_VPCMOV): New for XOP intrinsic.
3526 (IX86_BUILTIN_VPCMOV_V2DI): Ditto.
3527 (IX86_BUILTIN_VPCMOV_V4SI): Ditto.
3528 (IX86_BUILTIN_VPCMOV_V8HI): Ditto.
3529 (IX86_BUILTIN_VPCMOV_V16QI): Ditto.
3530 (IX86_BUILTIN_VPCMOV_V4SF): Ditto.
3531 (IX86_BUILTIN_VPCMOV_V2DF): Ditto.
3532
3533 (IX86_BUILTIN_VPCMOV256): Ditto.
3534 (IX86_BUILTIN_VPCMOV_V4DI256): Ditto.
3535 (IX86_BUILTIN_VPCMOV_V8SI256): Ditto.
3536 (IX86_BUILTIN_VPCMOV_V16HI256): Ditto.
3537 (IX86_BUILTIN_VPCMOV_V32QI256): Ditto.
3538 (IX86_BUILTIN_VPCMOV_V8SF256): Ditto.
3539 (IX86_BUILTIN_VPCMOV_V4DF256): Ditto.
3540
3541 (IX86_BUILTIN_VPPERM): Ditto.
3542
3543 (IX86_BUILTIN_VPMACSSWW): Ditto.
3544 (IX86_BUILTIN_VPMACSWW): Ditto.
3545 (IX86_BUILTIN_VPMACSSWD): Ditto.
3546 (IX86_BUILTIN_VPMACSWD): Ditto.
3547 (IX86_BUILTIN_VPMACSSDD): Ditto.
3548 (IX86_BUILTIN_VPMACSDD): Ditto.
3549 (IX86_BUILTIN_VPMACSSDQL): Ditto.
3550 (IX86_BUILTIN_VPMACSSDQH): Ditto.
3551 (IX86_BUILTIN_VPMACSDQL): Ditto.
3552 (IX86_BUILTIN_VPMACSDQH): Ditto.
3553 (IX86_BUILTIN_VPMADCSSWD): Ditto.
3554 (IX86_BUILTIN_VPMADCSWD): Ditto.
3555
3556 (IX86_BUILTIN_VPHADDBW): Ditto.
3557 (IX86_BUILTIN_VPHADDBD): Ditto.
3558 (IX86_BUILTIN_VPHADDBQ): Ditto.
3559 (IX86_BUILTIN_VPHADDWD): Ditto.
3560 (IX86_BUILTIN_VPHADDWQ): Ditto.
3561 (IX86_BUILTIN_VPHADDDQ): Ditto.
3562 (IX86_BUILTIN_VPHADDUBW): Ditto.
3563 (IX86_BUILTIN_VPHADDUBD): Ditto.
3564 (IX86_BUILTIN_VPHADDUBQ): Ditto.
3565 (IX86_BUILTIN_VPHADDUWD): Ditto.
3566 (IX86_BUILTIN_VPHADDUWQ): Ditto.
3567 (IX86_BUILTIN_VPHADDUDQ): Ditto.
3568 (IX86_BUILTIN_VPHSUBBW): Ditto.
3569 (IX86_BUILTIN_VPHSUBWD): Ditto.
3570 (IX86_BUILTIN_VPHSUBDQ): Ditto.
3571
3572 (IX86_BUILTIN_VPROTB): Ditto.
3573 (IX86_BUILTIN_VPROTW): Ditto.
3574 (IX86_BUILTIN_VPROTD): Ditto.
3575 (IX86_BUILTIN_VPROTQ): Ditto.
3576 (IX86_BUILTIN_VPROTB_IMM): Ditto.
3577 (IX86_BUILTIN_VPROTW_IMM): Ditto.
3578 (IX86_BUILTIN_VPROTD_IMM): Ditto.
3579 (IX86_BUILTIN_VPROTQ_IMM): Ditto.
3580
3581 (IX86_BUILTIN_VPSHLB): Ditto.
3582 (IX86_BUILTIN_VPSHLW): Ditto.
3583 (IX86_BUILTIN_VPSHLD): Ditto.
3584 (IX86_BUILTIN_VPSHLQ): Ditto.
3585 (IX86_BUILTIN_VPSHAB): Ditto.
3586 (IX86_BUILTIN_VPSHAW): Ditto.
3587 (IX86_BUILTIN_VPSHAD): Ditto.
3588 (IX86_BUILTIN_VPSHAQ): Ditto.
3589
3590 (IX86_BUILTIN_VFRCZSS): Ditto.
3591 (IX86_BUILTIN_VFRCZSD): Ditto.
3592 (IX86_BUILTIN_VFRCZPS): Ditto.
3593 (IX86_BUILTIN_VFRCZPD): Ditto.
3594 (IX86_BUILTIN_VFRCZPS256): Ditto.
3595 (IX86_BUILTIN_VFRCZPD256): Ditto.
3596
3597 (IX86_BUILTIN_VPCOMEQUB): Ditto.
3598 (IX86_BUILTIN_VPCOMNEUB): Ditto.
3599 (IX86_BUILTIN_VPCOMLTUB): Ditto.
3600 (IX86_BUILTIN_VPCOMLEUB): Ditto.
3601 (IX86_BUILTIN_VPCOMGTUB): Ditto.
3602 (IX86_BUILTIN_VPCOMGEUB): Ditto.
3603 (IX86_BUILTIN_VPCOMFALSEUB): Ditto.
3604 (IX86_BUILTIN_VPCOMTRUEUB): Ditto.
3605
3606 (IX86_BUILTIN_VPCOMEQUW): Ditto.
3607 (IX86_BUILTIN_VPCOMNEUW): Ditto.
3608 (IX86_BUILTIN_VPCOMLTUW): Ditto.
3609 (IX86_BUILTIN_VPCOMLEUW): Ditto.
3610 (IX86_BUILTIN_VPCOMGTUW): Ditto.
3611 (IX86_BUILTIN_VPCOMGEUW): Ditto.
3612 (IX86_BUILTIN_VPCOMFALSEUW): Ditto.
3613 (IX86_BUILTIN_VPCOMTRUEUW): Ditto.
3614
3615 (IX86_BUILTIN_VPCOMEQUD): Ditto.
3616 (IX86_BUILTIN_VPCOMNEUD): Ditto.
3617 (IX86_BUILTIN_VPCOMLTUD): Ditto.
3618 (IX86_BUILTIN_VPCOMLEUD): Ditto.
3619 (IX86_BUILTIN_VPCOMGTUD): Ditto.
3620 (IX86_BUILTIN_VPCOMGEUD): Ditto.
3621 (IX86_BUILTIN_VPCOMFALSEUD): Ditto.
3622 (IX86_BUILTIN_VPCOMTRUEUD): Ditto.
3623
3624 (IX86_BUILTIN_VPCOMEQUQ): Ditto.
3625 (IX86_BUILTIN_VPCOMNEUQ): Ditto.
3626 (IX86_BUILTIN_VPCOMLTUQ): Ditto.
3627 (IX86_BUILTIN_VPCOMLEUQ): Ditto.
3628 (IX86_BUILTIN_VPCOMGTUQ): Ditto.
3629 (IX86_BUILTIN_VPCOMGEUQ): Ditto.
3630 (IX86_BUILTIN_VPCOMFALSEUQ): Ditto.
3631 (IX86_BUILTIN_VPCOMTRUEUQ): Ditto.
3632
3633 (IX86_BUILTIN_VPCOMEQB): Ditto.
3634 (IX86_BUILTIN_VPCOMNEB): Ditto.
3635 (IX86_BUILTIN_VPCOMLTB): Ditto.
3636 (IX86_BUILTIN_VPCOMLEB): Ditto.
3637 (IX86_BUILTIN_VPCOMGTB): Ditto.
3638 (IX86_BUILTIN_VPCOMGEB): Ditto.
3639 (IX86_BUILTIN_VPCOMFALSEB): Ditto.
3640 (IX86_BUILTIN_VPCOMTRUEB): Ditto.
3641
3642 (IX86_BUILTIN_VPCOMEQW): Ditto.
3643 (IX86_BUILTIN_VPCOMNEW): Ditto.
3644 (IX86_BUILTIN_VPCOMLTW): Ditto.
3645 (IX86_BUILTIN_VPCOMLEW): Ditto.
3646 (IX86_BUILTIN_VPCOMGTW): Ditto.
3647 (IX86_BUILTIN_VPCOMGEW): Ditto.
3648 (IX86_BUILTIN_VPCOMFALSEW): Ditto.
3649 (IX86_BUILTIN_VPCOMTRUEW): Ditto.
3650
3651 (IX86_BUILTIN_VPCOMEQD): Ditto.
3652 (IX86_BUILTIN_VPCOMNED): Ditto.
3653 (IX86_BUILTIN_VPCOMLTD): Ditto.
3654 (IX86_BUILTIN_VPCOMLED): Ditto.
3655 (IX86_BUILTIN_VPCOMGTD): Ditto.
3656 (IX86_BUILTIN_VPCOMGED): Ditto.
3657 (IX86_BUILTIN_VPCOMFALSED): Ditto.
3658 (IX86_BUILTIN_VPCOMTRUED): Ditto.
3659
3660 (IX86_BUILTIN_VPCOMEQQ): Ditto.
3661 (IX86_BUILTIN_VPCOMNEQ): Ditto.
3662 (IX86_BUILTIN_VPCOMLTQ): Ditto.
3663 (IX86_BUILTIN_VPCOMLEQ): Ditto.
3664 (IX86_BUILTIN_VPCOMGTQ): Ditto.
3665 (IX86_BUILTIN_VPCOMGEQ): Ditto.
3666 (IX86_BUILTIN_VPCOMFALSEQ): Ditto.
3667 (IX86_BUILTIN_VPCOMTRUEQ): Ditto.
3668
3669 (enum multi_arg_type): New enum for describing the various XOP
3670 intrinsic argument types.
3671 (bdesc_multi_arg): New table for XOP intrinsics.
3672 (ix86_init_mmx_sse_builtins): Add XOP intrinsic support.
3673 (ix86_expand_multi_arg_builtin): New function for creating XOP
3674 intrinsics.
3675
3676 * config/i386/sse.md (sserotatemax): New mode attribute for XOP.
3677 (xop_pmacsww): Ditto.
3678 (xop_pmacssww): Ditto.
3679 (xop_pmacsdd): Ditto.
3680 (xop_pmacssdd): Ditto.
3681 (xop_pmacssdql): Ditto.
3682 (xop_pmacssdqh): Ditto.
3683 (xop_pmacsdql): Ditto.
3684 (xop_pmacsdql_mem): Ditto.
3685 (xop_mulv2div2di3_low): Ditto.
3686 (xop_pmacsdqh): Ditto.
3687 (xop_pmacsdqh_mem): Ditto.
3688 (xop_mulv2div2di3_high): Ditto.
3689 (xop_pmacsswd): Ditto.
3690 (xop_pmacswd): Ditto.
3691 (xop_pmadcsswd): Ditto.
3692 (xop_pmadcswd): Ditto.
3693 (xop_pcmov_<mode>): Ditto.
3694 (xop_pcmov_<mode>256): Ditto.
3695 (xop_phaddbw): Ditto.
3696 (xop_phaddbd): Ditto.
3697 (xop_phaddbq): Ditto.
3698 (xop_phaddwd): Ditto.
3699 (xop_phaddwq): Ditto.
3700 (xop_phadddq): Ditto.
3701 (xop_phaddubw): Ditto.
3702 (xop_phaddubd): Ditto.
3703 (xop_phaddubq): Ditto.
3704 (xop_phadduwd): Ditto.
3705 (xop_phadduwq): Ditto.
3706 (xop_phaddudq): Ditto.
3707 (xop_phsubbw): Ditto.
3708 (xop_phsubwd): Ditto.
3709 (xop_phsubdq): Ditto.
3710 (xop_pperm): Ditto.
3711 (rotl<mode>3): Ditto.
3712 (rotr<mode>3): Ditto.
3713 (xop_rotl<mode>3): Ditto.
3714 (xop_rotr<mode>3): Ditto.
3715 (vrotr<mode>3): Ditto.
3716 (vrotl<mode>3): Ditto.
3717 (xop_vrotl<mode>3): Ditto.
3718 (vlshr<mode>3): Ditto.
3719 (vashr<mode>3): Ditto.
3720 (vashl<mode>3
3721 (xop_ashl<mode>3): Ditto.
3722 (xop_lshl<mode>3): Ditto.
3723 (ashlv16qi3): Ditto.
3724 (lshlv16qi3): Ditto.
3725 (ashrv16qi3): Ditto.
3726 (ashrv2di3): Ditto.
3727 (xop_frcz<mode>2): Ditto.
3728 (xop_vmfrcz<mode>2): Ditto.
3729 (xop_frcz<mode>2256): Ditto.
3730 (xop_maskcmp<mode>3): Ditto.
3731 (xop_maskcmp_uns<mode>3): Ditto.
3732 (xop_maskcmp_uns2<mode>3): Ditto.
3733 (xop_pcom_tf<mode>3): Ditto.
3734
3735 * doc/invoke.texi (-mxop): Add documentation.
3736 * doc/extend.texi (x86 intrinsics): Add XOP intrinsics.
3737
3738 2009-11-03 Mark Mitchell <mark@codesourcery.com>
3739
3740 PR driver/11810
3741 * gcc.c (SWITCHES_NEED_SPACES): Define to "o".
3742 * config/alpha/osf.h (SWITCHES_NEED_SPACES): Remove here.
3743 * config/mips/iris.h (SWITCHES_NEED_SPACES): Remove here.
3744
3745 2009-11-04 Richard Earnshaw <rearnsha@arm.com>
3746
3747 PR target/40835
3748 * arm.md (peephole2 patterns for move and compare): New.
3749
3750 2009-11-04 Nick Clifton <nickc@redhat.com>
3751
3752 * defaults.h (CONSTANT_ADDRESS_P): Provide a default definition.
3753 Make sure that it does not allow CONST_DOUBLEs.
3754 * doc/tm.texi (CONSTANT_ADDRESS_P): Update description.
3755 * config/avr/avr.h (CONSTANT_ADDRESS_P): Delete.
3756 * config/bfin/bfin.h (CONSTANT_ADDRESS_P): Delete.
3757 * config/cris/cris.h (CONSTANT_ADDRESS_P): Delete.
3758 * config/fr30/fr30.h (CONSTANT_ADDRESS_P): Delete.
3759 * config/frv/frv.h (CONSTANT_ADDRESS_P): Delete.
3760 * config/m32c/m32c.h (CONSTANT_ADDRESS_P): Delete.
3761 * config/m68hc11/m68hc11.h (CONSTANT_ADDRESS_P): Delete.
3762 * config/mep/mep.h (CONSTANT_ADDRESS_P): Delete.
3763 * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Delete.
3764 * config/moxie/moxie.h (CONSTANT_ADDRESS_P): Delete.
3765 * config/pdp11/pdp11.h (CONSTANT_ADDRESS_P): Delete.
3766 * config/picochip/picochip.h (CONSTANT_ADDRESS_P): Delete.
3767 * config/score/score.h (CONSTANT_ADDRESS_P): Delete.
3768 * config/stormy16/stormy16.h (CONSTANT_ADDRESS_P): Delete.
3769
3770 2009-11-04 Richard Guenther <rguenther@suse.de>
3771
3772 PR tree-optimization/41919
3773 * tree-vrp.c (test_for_singularity): Properly compare values.
3774
3775 2009-11-04 Revital Eres <eres@il.ibm.com>
3776
3777 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3778 Consider peeling for alignment only for stores and remove
3779 redundant assignment.
3780
3781 2009-11-04 Maxim Kuvyrkov <maxim@codesourcery.com>
3782
3783 PR target/41302
3784 * config/m68k/m68k.c (m68k_reg_present_p): New static function.
3785 (m68k_ok_for_sibcall_p): Handle different result return locations.
3786
3787 2009-11-04 Richard Guenther <rguenther@suse.de>
3788
3789 * c-opts.c (c_common_post_options): Move LTO option processing
3790 code ...
3791 * opts.c (decode_options): ... here.
3792
3793 2009-11-04 Jakub Jelinek <jakub@redhat.com>
3794
3795 * c-common.c (fold_offsetof_1): Use %wd instead of
3796 HOST_WIDE_INT_PRINT_DEC.
3797
3798 2009-11-04 Maciej W. Rozycki <macro@linux-mips.org>
3799
3800 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Don't define
3801 __pic__ or __PIC__.
3802
3803 2009-11-04 Maciej W. Rozycki <macro@linux-mips.org>
3804
3805 * config.gcc (vax-*-linux*): Keep the original contents of
3806 tmake_file while adding vax/t-linux.
3807
3808 2009-11-03 Eric Botcazou <ebotcazou@adacore.com>
3809
3810 PR target/10127
3811 PR ada/20548
3812 * expr.h (STACK_CHECK_PROBE_INTERVAL): Delete.
3813 (STACK_CHECK_PROBE_INTERVAL_EXP): New macro.
3814 (STACK_CHECK_MOVING_SP): Likewise.
3815 * system.h (STACK_CHECK_PROBE_INTERVAL): Poison it.
3816 * doc/tm.texi (Stack Checking): Delete STACK_CHECK_PROBE_INTERVAL.
3817 Document STACK_CHECK_PROBE_INTERVAL_EXP and STACK_CHECK_MOVING_SP.
3818 * doc/md.texi (Standard Pattern Names): Tweak entry of CHECK_STACK.
3819 Document PROBE_STACK.
3820 * explow.c (anti_adjust_stack_and_probe): New function.
3821 (allocate_dynamic_stack_space): Do not directly allocate space if
3822 STACK_CHECK_MOVING_SP, instead invoke above function.
3823 (emit_stack_probe): Handle probe_stack insn.
3824 (PROBE_INTERVAL): New macro.
3825 (STACK_GROW_OPTAB): Likewise.
3826 (STACK_GROW_OFF): Likewise.
3827 (probe_stack_range): Use Pmode and memory_address consistently. Fix
3828 loop condition in the small constant case. Rewrite in the general
3829 case to be immune to wraparounds. Make sure the address of probes
3830 is valid. Try to use [base + disp] addressing mode if possible.
3831 * ira.c (setup_eliminable_regset): Set frame_pointer_needed if stack
3832 checking is enabled and STACK_CHECK_MOVING_SP.
3833 * rtlanal.c (may_trap_p_1) <MEM>: If stack checking is enabled,
3834 return 1 for volatile references to the stack pointer.
3835 * tree.c (build_common_builtin_nodes): Do not set ECF_NOTHROW on
3836 __builtin_alloca if stack checking is enabled.
3837 * unwind-dw2.c (uw_identify_context): Take into account whether the
3838 context is that of a signal frame or not.
3839 * config/i386/linux.h (STACK_CHECK_MOVING_SP): Define to 1.
3840 * config/i386/linux64.h (STACK_CHECK_MOVING_SP): Likewise.
3841
3842 2009-11-03 Jakub Jelinek <jakub@redhat.com>
3843
3844 PR rtl-optimization/41917
3845 * rtlanal.c (num_sign_bit_copies1) <case UMOD>: If sign bit of second
3846 operand isn't known to be 0, return 1.
3847
3848 2009-11-03 Richard Sandiford <rdsandiford@googlemail.com>
3849
3850 * config/mips/mips.md: Fix typos.
3851
3852 2009-11-03 Richard Sandiford <rdsandiford@googlemail.com>
3853
3854 * doc/invoke.texi: Fix typo.
3855
3856 2009-11-03 Paul Brook <paul@codesourcery.com>
3857
3858 * config/arm/neon.ml (vectype): Add T_floatSF.
3859 (string_of_vectype): Ditto.
3860 * config/arm/neon-gen.ml (signed_ctype): Add T_floatSF.
3861 (deftypes): Use float for float32_t.
3862 * config/arm/arm_neon.h: Regenerate.
3863
3864 2009-11-03 Nick Clifton <nickc@redhat.com>
3865 Kevin Buettner <kevinb@redhat.com>
3866
3867 * config/rx/predicates.md (rx_store_multiple_vector): Reverse
3868 order of expected registers.
3869 (rx_load_multiple_vector): Likewise.
3870 (rx_rtsd_vector): Likewise.
3871 * config/rx/rx.c (rx_cpu_type): New variable.
3872 (rx_print_operand): Fix bug printing 64-bit constant values.
3873 (rx_emit_stack_pushm): Reverse order of pushed registers.
3874 (gen_rx_store_vector): Likewise.
3875 (is_fast_interrupt_func): Only accept "fast_interrupt" as the
3876 attribute name.
3877 (is_exception_func): Rename to is_interrupt_func and only accept
3878 "interrupt" as the attribute name.
3879 (rx_get_stack_layout): Use new function name.
3880 (rx_func_attr_inlinable): Likewise.
3881 (rx_attribute_table): Remove "exception".
3882 (rx_expand_prologue): If necessary push the accumulator register
3883 in the prologue of interrupt functions.
3884 (rx_expand_epilogue): If necessary pop the accumulator.
3885 (rx_builtins): Add RX_BUILTIN_MVTIPL.
3886 (rx_expand_builtin_stz): Remove.
3887 (rx_expand_builtin_mvtipl): New function.
3888 (rx_init_builtins): Handle RX_BUILTIN_MVTIPL.
3889 (rx_expand_builtin): Likewise.
3890 (rx_enable_fpu): New variable.
3891 (rx_handle_option): Handle -fpu, -nofpu, -mcpu and -patch.
3892 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Assert machine based
3893 on rx_cpu_type. Define __RX_FPU_INSNS__ if FPU insns are allowed.
3894 (enum rx_cpu_types): Define.
3895 (ASM_SPEC): Pass -m32bit-doubles on to assembler.
3896 (INCOMING_FRAME_SP_OFFSET): Define.
3897 (ARG_POINTER_CFA_OFFSET): Define.
3898 (FRAME_POINTER_CFA_OFFSET): Define.
3899 (OVERRIDE_OPTIONS): Enable fast math if RX FPU insns are enabled.
3900 (ALLOW_RX_FPU_INSNS): Define.
3901 * config/rx/rx.md: Test ALLOW_RX_FPU_INSNS instead of
3902 fast_math_flags_set_p.
3903 (UNSPEC_BUILTIN_MVTIPL): Define.
3904 (revl): Rename to bswapsi2.
3905 (bswaphi2): New pattern.
3906 (mvtachi): Mark as volatile because it uses a register unknown to GCC.
3907 (mvtaclo): Likewise.
3908 (racw): Likewise.
3909 (mvtc): Remove clobber of cc0.
3910 (mvtcp): Delete.
3911 (opecp): Delete.
3912 * config/rx/rx.opt (mieee): Remove.
3913 (fpu): Add.
3914 (nofpu): Add.
3915 (mcpu=): Add.
3916 (patch=): Add.
3917 (msave-acc-in-interrupts): Add.
3918 * config/rx/t-rx (MULTILIB_OPTIONS): Change default to 64bit doubles.
3919 (MULTILIB_DIRS): Likewise.
3920 (MULTILIB_MATCHES): Treat -fpu as an alias for -m32bit-doubles.
3921 * doc/extend.texi: Remove description of "exception" function
3922 attribute.
3923 * doc/invoke.texi: Document -fpu, -nofpu, -mcpu=, -patch= and
3924 -msave-acc-in-interrupts options.
3925
3926 2009-11-03 Richard Guenther <rguenther@suse.de>
3927
3928 * c-common.c (fold_offsetof_1): Use HOST_WIDE_INT_PRINT_DEC.
3929
3930 2009-11-03 Dodji Seketeli <dodji@redhat.com>
3931
3932 PR c++/38699
3933 * c-common.c (fold_offsetof_1): Issue errors when the member
3934 designator of the offsetof expression is not legitimate.
3935
3936 2009-11-03 Uros Bizjak <ubizjak@gmail.com>
3937
3938 * config/i386/i386.md (*call_value_1_rex64_ms_sysv): Use register
3939 names instead of numerical constants.
3940 (sse_prologue_save): Ditto.
3941 (*sse_prologue_save_insn): Ditto.
3942
3943 2009-11-03 Uros Bizjak <ubizjak@gmail.com>
3944
3945 PR target/41900
3946 * config/i386/i386.h (ix86_arch_indices) <X86_ARCH_CALL_ESP>: New.
3947 (TARGET_CALL_ESP): New define.
3948 * config/i386/i386.c (initial_ix86_tune_features): Initialize
3949 X86_ARCH_CALL_ESP.
3950 * config/i386/i386.md (*call_pop_1_esp, *call_1_esp,
3951 *call_value_pop_1_esp, *call_value_1_esp): Rename from *call_pop_1,
3952 *call_1, *call_value_pop_1 and *call_value_1. Depend on
3953 TARGET_CALL_ESP.
3954 (*call_pop_1, *call_1, *call_value_pop_1, *call_value_1):
3955 New patterns, use "lsm" as operand 1 constraint.
3956 * config/i386/predicates.md (call_insn_operand): Depend on
3957 index_register_operand for !TARGET_CALL_ESP to avoid %esp register.
3958
3959 2009-11-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3960
3961 PR tree-optimization/41857
3962 * tree-flow.h (rewrite_use_address): Add BASE_HINT argument.
3963 * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass base hint
3964 to create_mem_ref.
3965 * tree-ssa-address.c (move_hint_to_base): New function.
3966 (most_expensive_mult_to_index): Add TYPE argument. Use mode and
3967 address space associated with TYPE.
3968 (addr_to_parts): Add TYPE and BASE_HINT arguments. Pass TYPE to
3969 most_expensive_mult_to_index. Call move_hint_to_base.
3970 (create_mem_ref): Add BASE_HINT argument. Pass BASE_HINT and
3971 TYPE to addr_to_parts.
3972
3973 2009-11-02 Martin Jambor <mjambor@suse.cz>
3974
3975 PR tree-optimization/41750
3976 * tree-sra.c (analyze_modified_params): Loop over all
3977 representatives of components of a parameter.
3978
3979 2009-11-02 Jakub Jelinek <jakub@redhat.com>
3980
3981 PR tree-optimization/41841
3982 * ipa-struct-reorg.c (build_data_structure): Don't attempt to look at
3983 local variables of not yet materialized clones.
3984
3985 PR debug/41893
3986 * cfgexpand.c (expand_debug_expr): Don't attempt to create DECL_RTL
3987 for a VOIDmode variable.
3988
3989 PR c++/41774
3990 * c-pragma.c (visstack): Change into vector of ints rather than
3991 enum symbol_visibility.
3992 (push_visibility): Add kind argument, push default_visibility together
3993 with kind.
3994 (pop_visibility): Add kind argument, return true if successful, fail
3995 if visibility stack is empty or if stack top is of different kind.
3996 (handle_pragma_visibility): Don't check length of visstack, instead
3997 call pop_visibility and issue diagnostics if it failed. Pass 0
3998 as last argument to push_visibility and pop_visibility.
3999 * c-pragma.h (push_visibility): Add kind argument.
4000 (pop_visibility): Likewise. Return bool instead of void.
4001
4002 2009-11-01 Eric Botcazou <ebotcazou@adacore.com>
4003
4004 * tree.def (TARGET_MEM_REF): Update comment.
4005 * alias.c (get_alias_set): Retrieve the original memory reference for
4006 a TARGET_MEM_REF before proceeding.
4007
4008 2009-10-31 Anatoly Sokolov <aesok@post.ru>
4009
4010 * config/frv/frv.c (frv_function_value, frv_libcall_value,
4011 frv_function_value_regno_p): New functions.
4012 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
4013 * config/frv/frv.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
4014 (FUNCTION_VALUE_REGNO_P): Redefine, use frv_function_value_regno_p.
4015 * config/frv/frv-protos.h (frv_function_value_regno_p): Declare.
4016
4017 2009-10-31 Anatoly Sokolov <aesok@post.ru>
4018
4019 * config/mn10300/mn10300.c (mn10300_function_value): Make static, add
4020 new 'outgoing' argument.
4021 (mn10300_libcall_value, mn10300_function_value_regno_p): New functions.
4022 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
4023 * config/mn10300/mn10300.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
4024 LIBCALL_VALUE): Remove.
4025 (FUNCTION_VALUE_REGNO_P): Redefine, use mn10300_function_value_regno_p.
4026 * config/mn10300/mn10300-protos.h (mn10300_function_value): Remove.
4027 (mh10300_function_value_regno_p): Declare.
4028
4029 2009-10-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4030
4031 * config/arm/cortex-a9.md: New - integer pipeline description.
4032
4033 2009-10-31 Eric Botcazou <ebotcazou@adacore.com>
4034
4035 * tree-ssa-sccvn.c (vn_reference_lookup_3): Bail out instead of
4036 aborting if the sizes of the two references don't match.
4037
4038 2009-10-31 Toon Moene <toon@moene.org>
4039
4040 * ipa-inline.c (cgraph_decide_inlining):
4041 Include reason for not inlining called-once functions in dump file.
4042
4043 2009-10-30 Daniel Gutson <dgutson@codesourcery.com>
4044
4045 * config/arm/linux-eabi.h (LINK_SPEC): BE8_LINK_SPEC added.
4046 * config/arm/bpapi.h (BE8_LINK_SPEC): New define.
4047 (LINK_SPEC): BE_LINK_SPEC added.
4048
4049 2009-10-30 Richard Guenther <rguenther@suse.de>
4050
4051 PR lto/41858
4052 * lto-streamer.h (struct lto_file_decl_data): Remove fd member.
4053
4054 2009-10-30 Nathan Sidwell <nathan@codesourcery.com>
4055
4056 * target-def.h (TARGET_ASM_TTYPE): Correct typo of TARGET_ARM_TTYPE.
4057 * config/arm/unwind-arm.c (__gnu_Unwind_Backtrace): Remove unused
4058 label.
4059
4060 2009-10-30 Martin Jambor <mjambor@suse.cz>
4061
4062 * tree-sra.c (build_ref_for_offset_1): Remove a comment.
4063
4064 2009-10-30 H.J. Lu <hongjiu.lu@intel.com>
4065
4066 PR target/40838
4067 * cfgexpand.c (expand_stack_alignment): Call update_stack_boundary
4068 first. Move assert on stack_alignment_estimated just before
4069 setting stack_realign_needed.
4070 (gimple_expand_cfg): Initialize stack_alignment_estimated to 0.
4071 Don't call update_stack_boundary.
4072
4073 * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): New.
4074 (verride_options): Don't check ix86_force_align_arg_pointer here.
4075 (ix86_function_ok_for_sibcall): Use it.
4076 (ix86_update_stack_boundary): Likewise.
4077
4078 * config/i386/i386.h (STACK_REALIGN_DEFAULT): Update comments.
4079
4080 2009-10-30 Richard Earnshaw <rearnsha@arm.com>
4081
4082 * arm.md (QHSI): New mode iterator.
4083 (movqi): If generating for thumb, then truncate any immediate to
4084 8 bits.
4085 * thumb2.md (thumb2_movsi_shortim and peephole2 generator): Replace
4086 with...
4087 (thumb2_mov<mode>_shortim and peephole2 generator): ... iterator based
4088 version.
4089
4090 2009-10-29 Cary Coutant <ccoutant@google.com>
4091
4092 PR debug/41700
4093 * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hook (two
4094 locations in the source).
4095 (store_vcall_insn): New function.
4096 (lookup_vcall_insn): New function.
4097 (dwarf2out_virtual_call_token): Use store_vcall_insn.
4098 (dwarf2out_copy_call_info): New function.
4099 (dwarf2out_virtual_call): Use lookup_vcall_insn.
4100 * emit-rtl.c (try_split): Call copy_call_info debug hook.
4101 * debug.h (struct gcc_debug_hooks): Add copy_call_info hook.
4102 * debug.c (do_nothing_debug_hooks): Add dummy entry for new hook.
4103 (debug_nothing_rtx_rtx): New dummy hook.
4104 * dbxout.c (dbx_debug_hooks): Add dummy entry for new hook.
4105 (xcoff_debug_hooks): Likewise.
4106 * sdbout.c (sdb_debug_hooks): Likewise.
4107 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
4108
4109 2009-10-29 David Daney <ddaney@caviumnetworks.com>
4110
4111 * doc/invoke.texi (mmcount-ra-address): Document new command line
4112 option.
4113 * config/mips/mips.opt (mmcount-ra-address): New option.
4114 * config/mips/mips-protos.h (mips_function_profiler): Declare new
4115 function.
4116 * config/mips/mips.c (struct mips_frame_info): Add ra_fp_offset
4117 member.
4118 (mips_for_each_saved_gpr_and_fpr): Set ra_fp_offset.
4119 (mips_function_profiler): Moved from FUNCTION_PROFILER, and
4120 rewritten.
4121 * config/mips/mips.h (FUNCTION_PROFILER): Body of macro moved to
4122 mips_function_profiler.
4123
4124 2009-10-29 Steve Ellcey <sje@cup.hp.com>
4125
4126 PR middle-end/37565
4127 PR target/38018
4128 * doc/tm.texi (OVERRIDE_OPTIONS): Update.
4129 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
4130 * optc-gen.awk (cl_target_option_restore): Include call to
4131 targetm.override_options_after_change.
4132 * target-def.h (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
4133 * target.h (override_options_after_change): New.
4134 * c-common.c (parse_optimize_options): Call
4135 targetm.override_options_after_change.
4136 * config/ia64/ia64.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
4137 (ia64_override_options_after_change): New.
4138 (ia64_override_options) Add call to above.
4139
4140 2009-10-29 Michael Matz <matz@suse.de>
4141
4142 * tree-ssa-math-opts.c (execute_convert_to_rsqrt): Remove.
4143 (gate_convert_to_rsqrt): Ditto.
4144 (pass_convert_to_rsqrt): Ditto.
4145 * tree-pass.h (pass_convert_to_rsqrt): Don't declare.
4146 * passes.c (init_optimization_passes): Don't add pass_convert_to_rsqrt
4147 to pass list.
4148
4149 * config/i386/i386.c (ix86_emit_swdivsf): Change evaluation order.
4150
4151 2009-10-29 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4152
4153 * config/arm/arm.c (find_best_start): Fix type of remainder to be
4154 unsigned.
4155
4156 2009-10-29 Martin Jambor <mjambor@suse.cz>
4157
4158 PR tree-optimization/41775
4159 * tree-sra.c (build_ref_for_offset): Unshare *expr if not NULL.
4160 (generate_subtree_copies): Do not unshare agg.
4161 (load_assign_lhs_subreplacements): Do not unshare rhs.
4162 (sra_modify_assign): Do not unshare exprs.
4163 (propagate_subacesses_accross_link): Renamed to
4164 propagate_subaccesses_across_link.
4165
4166 2009-10-29 Richard Earnshaw <rearnsha@arm.com>
4167
4168 * arm.c (count_insns_for_constant): Rework to support counting for
4169 thumb2 immediates as well.
4170 (find_best_start): Split out from arm_gen_constant.
4171 (arm_gen_constant): Rework to support XOR with immediate.
4172
4173 2009-10-29 Chao-ying Fu <fu@mips.com>
4174
4175 * config/mips/mips.c (mips_emit_unary, mips_force_unary): New
4176 functions.
4177 (mips_expand_synci_loop): Use the length rtx to control the
4178 synci loop from the begin rtx that points to the first byte of
4179 the cache line.
4180
4181 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
4182
4183 * doc/invoke.texi: Rename -use-linker-plugin -fuse-linker-plugin.
4184
4185 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
4186
4187 * dbxout.c (dbxout_common_check): Accept non public trees.
4188 * dwarf2out.c (fortran_common): Accept non public trees.
4189
4190 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
4191
4192 * common.opt (fuse-linker-plugin): New option.
4193 * gcc.c (LINK_COMMAND_SPEC, main): Rename use-linker-plugin to
4194 fuse-linker-plugin.
4195 * opts.c (common_handle_option): Ignore OPT_fuse_linker_plugin.
4196
4197 2009-10-28 Paolo Bonzini <bonzini@gnu.org>
4198
4199 PR rtl-optimization/39715
4200 * config/arm/arm.md (cstoresi4): Use gen_cstoresi_ltu_thumb1.
4201 (gen_cstoresi_ltu_thumb1): New splitter.
4202
4203 2009-10-28 Richard Guenther <rguenther@suse.de>
4204
4205 PR lto/41808
4206 PR lto/41839
4207 * tree-ssa.c (useless_type_conversion_p): Do not treat
4208 conversions to pointers to incomplete types as useless.
4209 * gimple.c (gimple_types_compatible_p): Compare struct tags,
4210 not typedef names.
4211
4212 2009-10-28 Jakub Jelinek <jakub@redhat.com>
4213
4214 * var-tracking.c (emit_note_insn_var_location): Don't call the second
4215 vt_expand_loc unnecessarily when location is not a register nor
4216 memory.
4217
4218 PR middle-end/41837
4219 * ipa-struct-reorg.c (find_field_in_struct_1): Return NULL if
4220 fields don't have DECL_NAME.
4221
4222 PR debug/41801
4223 * builtins.c (get_builtin_sync_mem): Expand loc in ptr_mode,
4224 call convert_memory_address on addr.
4225
4226 PR target/41762
4227 * config/i386/i386.c (ix86_pic_register_p): Don't call
4228 rtx_equal_for_cselib_p for VALUEs discarded as useless.
4229
4230 2009-10-28 Richard Sandiford <rdsandiford@googlemail.com>
4231
4232 * var-tracking.c (emit_note_insn_var_location): Get the mode of
4233 a variable part from its REG, MEM or VALUE.
4234
4235 2009-10-28 Richard Guenther <rguenther@suse.de>
4236
4237 * gimple.c (gimple_get_alias_set): Fix comment typo.
4238
4239 2009-10-28 Richard Guenther <rguenther@suse.de>
4240
4241 * tree.c (free_lang_data_in_type): Do not call get_alias_set.
4242 (free_lang_data): Unconditionally compute alias sets for all
4243 standard integer types. Bail out if gate bailed out previously.
4244 Do not reset the types_compatible_p langhook.
4245 (gate_free_lang_data): Remove.
4246 (struct pass_ipa_free_lang_data): Enable unconditionally.
4247 * gimple.c (gimple_get_alias_set): Use the same alias-set for
4248 all pointer types.
4249
4250 2009-10-28 Richard Guenther <rguenther@suse.de>
4251
4252 PR middle-end/41855
4253 * tree-ssa-alias.c (refs_may_alias_p_1): Deal with CONST_DECLs
4254 (ref_maybe_used_by_call_p_1): Fix bcopy handling.
4255 (call_may_clobber_ref_p_1): Likewise.
4256 * tree-ssa-structalias.c (find_func_aliases): Likewise.
4257 * alias.c (nonoverlapping_memrefs_p): Deal with CONST_DECLs.
4258
4259 2009-10-28 Paolo Bonzini <bonzini@gnu.org>
4260
4261 PR rtl-optimization/41812
4262
4263 Revert:
4264 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
4265
4266 * df-problems.c (df_md_scratch): New.
4267 (df_md_alloc, df_md_free): Allocate/free it.
4268 (df_md_local_compute): Only include live registers in init.
4269 (df_md_transfer_function): Prune the in-set computed by
4270 the confluence function, and the gen-set too.
4271
4272 2009-10-28 Paolo Bonzini <bonzini@gnu.org>
4273
4274 PR rtl-optimization/39715
4275 * combine.c (simplify_comparison): Use extensions to
4276 widen comparisons. Try an ANDing first.
4277
4278 2009-10-28 Paolo Bonzini <bonzini@gnu.org>
4279
4280 PR rtl-optimization/40741
4281 * config/arm/arm.c (thumb1_rtx_costs): IOR or XOR with
4282 a small constant is cheap.
4283 * config/arm/arm.md (andsi3, iorsi3): Try to place the result of
4284 force_reg on the LHS.
4285 (xorsi3): Likewise, and split the XOR if the constant is complex
4286 and not in Thumb mode.
4287
4288 2009-10-28 Paolo Bonzini <bonzini@gnu.org>
4289
4290 * expmed.c (emit_store_flag): Check costs before
4291 transforming to the opposite representation.
4292
4293 2009-10-28 Paolo Bonzini <bonzini@gnu.org>
4294
4295 * config/sh/sh.md (cbranchfp4_media): Remove hack extending
4296 cstore result to DImode.
4297
4298 2009-10-28 Kaz Kojima <kkojima@gcc.gnu.org>
4299
4300 * config/sh/sh.md (stuff_delay_slot): Move const_int pattern
4301 inside the unspec vector.
4302
4303 2009-10-27 Richard Henderson <rth@redhat.com>
4304
4305 * cgraphunit.c (cgraph_optimize): Maintain timevar stack properly.
4306
4307 2009-10-27 Richard Henderson <rth@redhat.com>
4308
4309 PR c++/41819
4310 * tree-eh.c (eh_region_may_contain_throw_map): Rename from
4311 eh_region_may_contain_throw; update users.
4312 (eh_region_may_contain_throw): New function.
4313 (lower_catch): Check flag_exceptions before creating exception region.
4314 (lower_eh_filter, lower_eh_must_not_throw): Likewise.
4315 (lower_cleanup): Tidy existing flag_exceptions check to match.
4316
4317 2009-10-27 Kai Tietz <kai.tietz@onevision.com>
4318
4319 PR/41799
4320 * config/i386/mingw32.h (CHECK_EXECUTE_STACK_ENABLED): New macro.
4321 * config/i386/mingw.opt: Add fset-stack-executable.
4322 * config/i386/i386.c (ix86_trampoline_init): Make call to
4323 emit_library_call conditional, if CHECK_EXECUTE_STACK_ENABLED is
4324 defined and its value is not zero.
4325 * doc/invoke.texi
4326
4327 2009-10-27 Richard Guenther <rguenther@suse.de>
4328
4329 * tree-ssa-structalias.c (find_func_aliases): In IPA mode
4330 handle calls to externally visible functions like in regular mode.
4331 (create_variable_info_for): Do not create function infos here.
4332 (have_alias_info): Remove write-only variable.
4333 (solve_constraints): New function split out from common code
4334 in compute_points_to_sets and ipa_pta_execute.
4335 (compute_points_to_sets): Adjust.
4336 (ipa_pta_execute): Likewise. Handle clones and externally visible
4337 functions like in non-IPA mode.
4338
4339 2009-10-27 Jakub Jelinek <jakub@redhat.com>
4340
4341 PR c/41842
4342 * c-typeck.c (convert_arguments): Return -1 if any of the arguments is
4343 error_mark_node.
4344
4345 2009-10-27 Richard Guenther <rguenther@suse.de>
4346
4347 * tree-complex.c (expand_complex_div_wide): Check for
4348 INTEGER_CST, not TREE_CONSTANT on comparison folding result.
4349
4350 2009-10-27 Revital Eres <eres@il.ibm.com>
4351
4352 PR tree-optimization/40648
4353 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4354 Change decision of when to peel for alignment.
4355
4356 2009-10-27 Richard Guenther <rguenther@suse.de>
4357
4358 PR lto/41821
4359 * gimple.c (gimple_types_compatible_p): Handle OFFSET_TYPE.
4360
4361 2009-10-27 Aldy Hernandez <aldyh@redhat.com>
4362
4363 PR bootstrap/41451
4364 * fold-const.c (fold_binary_loc): Do not call
4365 protected_set_expr_location.
4366
4367 2009-10-27 Wei Guozhi <carrot@google.com>
4368
4369 PR target/41705
4370 * target.h (have_conditional_execution): Add a new target hook
4371 function.
4372 * target-def.h (TARGET_HAVE_CONDITIONAL_EXECUTION): Likewise.
4373 * targhooks.h (default_have_conditional_execution): Likewise.
4374 * targhooks.c (default_have_conditional_execution): Likewise.
4375 * doc/tm.texi (TARGET_HAVE_CONDITIONAL_EXECUTION): Document it.
4376 * config/arm/arm.c (TARGET_HAVE_CONDITIONAL_EXECUTION): Define it.
4377 (arm_have_conditional_execution): New function.
4378 * ifcvt.c (noce_process_if_block, find_if_header,
4379 cond_exec_find_if_block, dead_or_predicable): Change the usage of
4380 macro HAVE_conditional_execution to a target hook call.
4381 * recog.c (peephole2_optimize): Likewise.
4382 * sched-rgn.c (add_branch_dependences): Likewise.
4383 * final.c (asm_insn_count, final_scan_insn): Likewise.
4384 * bb-reorder.c (HAVE_conditional_execution): Remove it.
4385
4386 2009-10-26 Ben Elliston <bje@au.ibm.com>
4387 Michael Meissner <meissner@linux.vnet.ibm.com>
4388 Ulrich Weigand <uweigand@de.ibm.com>
4389
4390 * config.gcc (spu-*-elf*): Add spu_cache.h to extra_headers.
4391 * config/spu/spu_cache.h: New file.
4392
4393 * config/spu/cachemgr.c: New file.
4394 * config/spu/cache.S: New file.
4395
4396 * config/spu/spu.h (ASM_OUTPUT_SYMBOL_REF): Define.
4397 (ADDR_SPACE_EA): Define.
4398 (TARGET_ADDR_SPACE_KEYWORDS): Define.
4399 * config/spu/spu.c (EAmode): New macro.
4400 (TARGET_ADDR_SPACE_POINTER_MODE): Define.
4401 (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
4402 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
4403 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Likewise.
4404 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
4405 (TARGET_ADDR_SPACE_CONVERT): Likewise.
4406 (TARGET_ASM_SELECT_SECTION): Likewise.
4407 (TARGET_ASM_UNIQUE_SECTION): Likewise.
4408 (TARGET_ASM_UNALIGNED_SI_OP): Likewise.
4409 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
4410 (ea_symbol_ref): New function.
4411 (spu_legitimate_constant_p): Handle __ea qualified addresses.
4412 (spu_addr_space_legitimate_address_p): New function.
4413 (spu_addr_space_legitimize_address): Likewise.
4414 (cache_fetch): New global.
4415 (cache_fetch_dirty): Likewise.
4416 (ea_alias_set): Likewise.
4417 (ea_load_store): New function.
4418 (ea_load_store_inline): Likewise.
4419 (expand_ea_mem): Likewise.
4420 (spu_expand_mov): Handle __ea qualified memory references.
4421 (spu_addr_space_pointer_mode): New function.
4422 (spu_addr_space_address_mode): Likewise.
4423 (spu_addr_space_subset_p): Likewise.
4424 (spu_addr_space_convert): Likewise.
4425 (spu_section_type_flags): Handle "._ea" section.
4426 (spu_select_section): New function.
4427 (spu_unique_section): Likewise.
4428 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Support __EA32__
4429 and __EA64__ predefined macros.
4430 * config/spu/spu-elf.h (LIB_SPEC): Handle -mcache-size= and
4431 -matomic-updates switches.
4432
4433 * config/spu/t-spu-elf (MULTILIB_OPTIONS): Define.
4434 (EXTRA_MULTILIB_PARTS): Add libgcc_cachemgr.a,
4435 libgcc_cachemgr_nonatomic.a, libgcc_cache8k.a, libgcc_cache16k.a,
4436 libgcc_cache32k.a, libgcc_cache64k.a, libgcc_cache128k.a.
4437 ($(T)cachemgr.o, $(T)cachemgr_nonatomic.o): New target.
4438 ($(T)cache8k.o, $(T)cache16k.o, $(T)cache32k.o, $(T)cache64k.o,
4439 $(T)cache128k.o): Likewise.
4440 ($(T)libgcc_%.a): Likewise.
4441
4442 * config/spu/spu.h (TARGET_DEFAULT): Add MASK_ADDRESS_SPACE_CONVERSION.
4443 * config/spu/spu.opt (-mea32/-mea64): Add switches.
4444 (-maddress-space-conversion): Likewise.
4445 (-mcache-size=): Likewise.
4446 (-matomic-updates): Likewise.
4447 * doc/invoke.texi (-mea32/-mea64): Document.
4448 (-maddress-space-conversion): Likewise.
4449 (-mcache-size=): Likewise.
4450 (-matomic-updates): Likewise.
4451
4452 2009-10-26 Ben Elliston <bje@au.ibm.com>
4453 Michael Meissner <meissner@linux.vnet.ibm.com>
4454 Ulrich Weigand <uweigand@de.ibm.com>
4455
4456 * doc/tm.texi (TARGET_ADDR_SPACE_KEYWORDS): Document.
4457
4458 * c-common.c (c_common_reswords): If TARGET_ADDR_SPACE_KEYWORDS is
4459 defined, add the named address space keywords.
4460 (c_addr_space_name): New function.
4461 (complete_array_type): Preserve named address space.
4462 (handle_mode_attribute): Use targetm.addr_space.valid_pointer_mode
4463 instead of targetm.valid_pointer_mode.
4464
4465 * c-common.h (enum rid): Add RID_ADDR_SPACE_0 .. RID_ADDR_SPACE_15,
4466 RID_FIRST_ADDR_SPACE and RID_LAST_ADDR_SPACE.
4467 (ADDR_SPACE_KEYWORD): New macro.
4468 (c_addr_space_name): Add prototype.
4469
4470 * c-tree.h (struct c_declspecs): Add address_space member.
4471 (declspecs_add_addrspace): Add prototype.
4472
4473 * c-pretty-print.c (pp_c_type_qualifier_list): Handle address spaces.
4474
4475 * c-parser.c (c_parse_init): Add assertion.
4476 (typedef enum c_id_kind): Add C_ID_ADDRSPACE.
4477 (c_lex_one_token): Handle address space keywords.
4478 (c_token_starts_typename): Likewise.
4479 (c_token_starts_declspecs): Likewise.
4480 (c_parser_declspecs): Likewise.
4481 (c_parser_postfix_expression_after_paren_type): Diagnose compound
4482 literal within function qualified with named address space.
4483
4484 * c-decl.c (diagnose_mismatched_decls): Diagnose conflicting named
4485 address space qualifiers.
4486 (shadow_tag_warned): Warn about useless address space qualifiers.
4487 (quals_from_declspecs): Handle address space qualifiers.
4488 (grokdeclarator): Likewise.
4489 (build_null_declspecs): Likewise.
4490 (declspecs_add_addrspace): New function.
4491
4492 * c-typeck.c (addr_space_superset): New function.
4493 (qualify_type): Handle named address spaces.
4494 (composite_type): Likewise.
4495 (common_pointer_type): Likewise.
4496 (comp_target_types): Likewise.
4497 (build_conditional_expr): Likewise.
4498 (handle_warn_cast_qual): Likewise.
4499 (build_c_cast): Likewise.
4500 (convert_for_assignment): Likewise.
4501 (build_binary_op): Likewise.
4502 (pointer_diff): Handle named address spaces. Use intermediate
4503 integer type of sufficient size if required.
4504
4505 2009-10-26 Ben Elliston <bje@au.ibm.com>
4506 Michael Meissner <meissner@linux.vnet.ibm.com>
4507 Ulrich Weigand <uweigand@de.ibm.com>
4508
4509 * doc/tm.texi (TARGET_ADDR_SPACE_POINTER_MODE): Document.
4510 (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
4511 (TARGET_ADDR_SPACE_VALID_POINTER_MODE): Likewise.
4512
4513 * target.h (struct target_def): Add pointer_mode, address_mode,
4514 and valid_pointer_mode to addr_space substructure.
4515 * target-def.h (TARGET_ADDR_SPACE_POINTER_MODE): Define.
4516 (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
4517 (TARGET_ADDR_SPACE_VALID_POINTER_MODE): Likewise.
4518 (TARGET_ADDR_SPACE_HOOKS): Add them.
4519 * targhooks.c (target_default_pointer_address_modes_p): New function.
4520 * target.h (target_default_pointer_address_modes_p): Add prototype.
4521 * targhooks.c (default_addr_space_pointer_mode): New function.
4522 (default_addr_space_address_mode): Likewise.
4523 (default_addr_space_valid_pointer_mode): Likewise.
4524 * targhooks.h (default_addr_space_pointer_mode): Add prototype.
4525 (default_addr_space_address_mode): Likewise.
4526 (default_addr_space_valid_pointer_mode): Likewise.
4527 * output.h (default_valid_pointer_mode): Move to ...
4528 * targhooks.h (default_valid_pointer_mode): ... here.
4529 * varasm.c (default_valid_pointer_mode): Move to ...
4530 * targhooks.c (default_valid_pointer_mode): ... here.
4531
4532 * varasm.c (output_constant): Use targetm.addr_space.valid_pointer_mode
4533 instead of targetm.valid_pointer_mode.
4534
4535 * fold-const.c (fit_double_type): Use int_or_pointer_precision.
4536 * tree.c (integer_pow2p): Likewise.
4537 (tree_log2): Likewise.
4538 (tree_floor_log2): Likewise.
4539 (signed_or_unsigned_type_for): Support pointer type of different size.
4540 (int_or_pointer_precision): New function.
4541 * tree.h (int_or_pointer_precision): Add prototype.
4542 * stor-layout.c (layout_type): Set TYPE_PRECISION for offset types.
4543 * varasm.c (initializer_constant_valid_p): Use TYPE_PRECISION of
4544 incoming pointer type instead of POINTER_SIZE.
4545
4546 * tree.c (build_pointer_type): Use appropriate pointer mode
4547 instead of ptr_mode.
4548 (build_reference_type): Likewise.
4549 * expr.c (store_expr): Likewise.
4550 (expand_expr_addr_expr): Likewise.
4551 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
4552 * cfgexpand.c (expand_debug_expr): Likewise.
4553
4554 * auto-inc-dec.c: Include "target.h".
4555 (try_merge): Use appropriate address mode instead of Pmode.
4556 (find_inc): Likewise.
4557 * combine.c (find_split_point): Likewise.
4558 * cselib.c (cselib_record_sets): Likewise.
4559 * dse.c (replace_inc_dec): Likewise.
4560 (canon_address): Likewise.
4561 * var-tracking.c (replace_expr_with_values): Likewise.
4562 (count_uses): Likewise.
4563 (add_uses): Likewise.
4564 (add_stores): Likewise.
4565 * emit-rtl.c: Include "target.h".
4566 (adjust_address_1): Use appropriate address mode instead of Pmode.
4567 (offset_address): Likewise.
4568 * explow.c (break_out_memory_refs): Likewise.
4569 (memory_address_addr_space): Likewise.
4570 (promote_mode): Likewise.
4571 * expr.c (move_by_pieces): Likewise.
4572 (emit_block_move_via_loop): Likewise.
4573 (store_by_pieces): Likewise.
4574 (store_by_pieces_1): Likewise.
4575 (expand_assignment): Likewise.
4576 (store_constructor): Likewise.
4577 (expand_expr_addr_expr): Likewise.
4578 (expand_expr_real_1): Likewise.
4579 * cfgexpand.c (expand_debug_expr): Likewise.
4580 * ifcvt.c (noce_try_cmove_arith): Likewise.
4581 * regcprop.c (kill_autoinc_value): Likewise.
4582 * regmove.c (try_auto_increment): Likewise.
4583 * reload.c (find_reloads): Likewise.
4584 (find_reloads_address): Likewise.
4585 (find_reloads_address_1): Likewise.
4586 * sched-deps.c: Include "target.h".
4587 (sched_analyze_1): Use appropriate address mode instead of Pmode.
4588 (sched_analyze_2): Likewise.
4589 * sel-sched-dump.c: Include "target.h".
4590 (debug_mem_addr_value): Use appropriate address mode instead of Pmode.
4591 * stor-layout.c (layout_type): Likewise.
4592 * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
4593 (multiplier_allowed_in_address_p): Likewise.
4594 (get_address_cost): Likewise.
4595 * varasm.c (make_decl_rtl): Likewise.
4596
4597 * expr.c (expand_assignment): Always convert offsets to appropriate
4598 address mode.
4599 (store_expr): Likewise.
4600 (store_constructor): Likewise.
4601 (expand_expr_real_1): Likewise.
4602
4603 * reload.h (form_sum): Add MODE argument.
4604 * reload.c (form_sum): Add MODE argument, use it instead of Pmode.
4605 Update recursive calls.
4606 (subst_indexed_address): Update calls to form_sum.
4607
4608 * tree-flow.h (addr_for_mem_ref): Add ADDRSPACE argument.
4609 * tree-ssa-address.c: Include "target.h".
4610 (templates): Replace by ...
4611 (mem_addr_template_list): ... this new vector.
4612 (TEMPL_IDX): Handle address space numbers.
4613 (gen_addr_rtx): Add address mode argument, use it instead of Pmode.
4614 (addr_for_mem_ref): Add ADDRSPACE argument. Use per-address-space
4615 instead of global cache. Update call to gen_addr_rtx.
4616 (valid_mem_ref_p): Update call to addr_for_mem_ref.
4617 * expr.c (expand_expr_real_1): Update call to addr_for_mem_ref.
4618
4619 * rtl.h (convert_memory_address_addr_space): Add prototype.
4620 (convert_memory_address): Define as macro.
4621 * explow.c (convert_memory_address): Rename to ...
4622 (convert_memory_address_addr_space): ... this. Add ADDRSPACE argument.
4623 Use appropriate pointer and address modes instead of ptr_mode / Pmode.
4624 Update recursive calls.
4625 (memory_address_addr_space): Call convert_memory_address_addr_space.
4626 * expmed.c (make_tree): Likewise.
4627 * expr.c (expand_assignment): Likewise.
4628 (expand_expr_addr_expr_1): Likewise. Also, add ADDRSPACE argument.
4629 (expand_expr_addr_expr): Likewise. Also, update call.
4630
4631 * alias.c (find_base_value): Guard pointer size optimizations.
4632 (find_base_term): Likewise.
4633 * rtlanal.c (nonzero_bits1): Likewise.
4634 (num_sign_bit_copies1): Likewise.
4635 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
4636
4637 * Makefile.in (tree-ssa-address.o): Add $(TARGET_H) dependency.
4638 (emit-rtl.o): Likewise.
4639 (auto-inc-dec.o): Likewise.
4640 (sched-deps.o): Likewise.
4641
4642 2009-10-26 Ben Elliston <bje@au.ibm.com>
4643 Michael Meissner <meissner@linux.vnet.ibm.com>
4644 Ulrich Weigand <uweigand@de.ibm.com>
4645
4646 * doc/extend.texi (Named Address Spaces): New section.
4647 * coretypes.h (addr_space_t): New type.
4648 (ADDR_SPACE_GENERIC): New define.
4649 (ADDR_SPACE_GENERIC_P): New macro.
4650
4651 * doc/tm.texi (Named Address Spaces): New section.
4652 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Document.
4653 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Document.
4654 (TARGET_ADDR_SPACE_SUBSET_P): Document.
4655 (TARGET_ADDR_SPACE_CONVERT): Document.
4656 * target.h (struct gcc_target): Add addr_space substructure.
4657 * target-def.h (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
4658 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Likewise.
4659 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
4660 (TARGET_ADDR_SPACE_CONVERT): Likewise.
4661 (TARGET_ADDR_SPACE_HOOKS): Likewise.
4662 (TARGET_INITIALIZER): Initialize addr_space hooks.
4663 * targhooks.c (default_addr_space_legitimate_address_p): New function.
4664 (default_addr_space_legitimize_address): Likewise.
4665 (default_addr_space_subset_p): Likewise.
4666 (default_addr_space_convert): Likewise.
4667 * targhooks.h (default_addr_space_legitimate_address_p): Add prototype.
4668 (default_addr_space_legitimize_address): Likewise.
4669 (default_addr_space_subset_p): Likewise.
4670 (default_addr_space_convert): Likewise.
4671
4672 * doc/rtl.texi (MEM_ADDR_SPACE): Document.
4673 * rtl.h (mem_attrs): Add ADDRSPACE memory attribute.
4674 (MEM_ADDR_SPACE): New macro.
4675 * emit-rtl.c (get_mem_attrs): Add ADDRSPACE argument and set
4676 address space memory attribute.
4677 (mem_attrs_htab_hash): Handle address space memory attribute.
4678 (mem_attrs_htab_eq): Likewise.
4679 (set_mem_attributes_minus_bitpos): Likewise.
4680 (set_mem_alias_set): Likewise.
4681 (set_mem_align): Likewise.
4682 (set_mem_expr): Likewise.
4683 (set_mem_offset): Likewise.
4684 (set_mem_size): Likewise.
4685 (adjust_address_1): Likewise.
4686 (offset_address): Likewise.
4687 (widen_memoy_address): Likewise.
4688 (get_spill_slot_decl): Likewise.
4689 (set_mem_attrs_for_spill): Likewise.
4690 (set_mem_addr_space): New function.
4691 * emit-rtl.h (set_mem_addr_space): Add prototype.
4692 * print-rtl.c (print_rtx): Print address space memory attribute.
4693 * expr.c (expand_assignment): Set address space memory attribute
4694 of generated MEM RTXes as appropriate.
4695 (expand_expr_real_1): Likewise.
4696 * cfgexpand.c (expand_debug_expr): Likewise.
4697 * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
4698
4699 * tree.h (struct tree_base): Add address_space bitfield. Reduce
4700 size of "spare" bitfield.
4701 (TYPE_ADDR_SPACE): New macro.
4702 (ENCODE_QUAL_ADDR_SPACE): Likewise.
4703 (DECODE_QUAL_ADDR_SPACE): Likewise.
4704 (CLEAR_QUAL_ADDR_SPACE): Likewise.
4705 (KEEP_QUAL_ADDR_SPACE): Likewise.
4706 (TYPE_QUALS): Encode type address space.
4707 (TYPE_QUALS_NO_ADDR_SPACE): New macro.
4708 * tree.c (set_type_quals): Set type address space.
4709 (build_array_type): Inherit array address space from element type.
4710 * print-tree.c (print_node_brief): Print type address space.
4711 (print_node): Likewise.
4712 * tree-pretty-print.c (dump_generic_node): Likewise.
4713
4714 * explow.c (memory_address): Rename to ...
4715 (memory_address_addr_space): ... this. Add ADDRSPACE argument.
4716 Use address-space aware variants of memory address routines.
4717 * recog.c (memory_address_p): Rename to ...
4718 (memory_address_addr_space_p): ... this. Add ADDSPACE argument.
4719 Use address-space aware variants of memory address routines.
4720 (offsettable_address_p): Rename to ...
4721 (offsettable_address_addr_space_p): ... this. Add ADDRSPACE argument.
4722 Use address-space aware variants of memory address routines.
4723 * reload.c (strict_memory_address_p): Rename to ...
4724 (strict_memory_address_addr_space_p): ... this. Add ADDSPACE argument.
4725 Use address-space aware variants of memory address routines.
4726 (maybe_memory_address_p): Rename to ...
4727 (maybe_memory_address_addr_space_p): ... this. Add ADDSPACE argument.
4728 Use address-space aware variants of memory address routines.
4729 * expr.h (memory_address_addr_space): Add prototype.
4730 (memory_address): Define as macro.
4731 * recog.h (memory_address_addr_space_p): Add prototype.
4732 (memory_address_p): Define as macro.
4733 (offsettable_address_addr_space_p): Add prototype.
4734 (offsettable_address_p): Define as macro.
4735 (strict_memory_address_addr_space_p): Add prototype.
4736 (strict_memory_address_p): Define as macro.
4737
4738 * combine.c (find_split_point): Use address-space aware variants
4739 of memory address routines.
4740 * emit-rtl.c (operand_subword): Likewise.
4741 (change_address_1): Likewise.
4742 (adjust_address_1): Likewise.
4743 (offset_address): Likewise.
4744 * expr.c (emit_move_insn): Likewise.
4745 (expand_assignment): Likewise.
4746 (expand_expr_real_1): Likewise.
4747 * recog.c (verify_changes): Likewise.
4748 (general_operand): Likewise.
4749 (offsettable_memref_p): Likewise.
4750 (offsettable_nonstrict_memref_p): Likewise.
4751 (constrain_operands): Likewise.
4752 * reload.c (get_secondary_mem): Likewise.
4753 (find_reloads_toplev): Likewise.
4754 (find_reloads_address): Likewise.
4755 (find_reloads_subreg_address): Likewise.
4756 * reload1.c (reload): Likewise.
4757 * rtlhooks.c (gen_lowpart_if_possible): Likewise.
4758 * rtl.h (address_cost): Add ADDRSPACE argument.
4759 * rtlanal.c (address_cost): Add ADDRSPACE argument. Use address-space
4760 aware variant of memory address routines.
4761 * loop-invariant.c (create_new_invariant): Update address_cost call.
4762 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4763 * fwprop.c (should_replace_address): Add ADDRSPACE argument.
4764 Use address-space aware variant of memory address routines.
4765 (propagate_rtx_1): Update call to should_replace_address.
4766 * tree-flow.h (multiplier_allowed_in_address_p): Add ADDRSPACE
4767 argument.
4768 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Add
4769 ADDRSPACE argument. Use per-address-space instead of global cache.
4770 Use address-space aware variant of memory address routines.
4771 (get_address_cost): Likewise.
4772 (get_computation_cost_at): Update calls.
4773 * tree-ssa-address.c (valid_mem_ref_p): Add ADDRSPACE argument.
4774 Use address-space aware variant of memory address routines.
4775 (create_mem_ref_raw): Update call to valid_mem_ref_p.
4776 (most_expensive_mult_to_index): Update call to
4777 multiplier_allowed_in_address_p.
4778
4779 * dwarf2out.c (modified_type_die): Output DW_AT_address_class
4780 attribute to indicate named address spaces.
4781
4782 * varasm.c (get_variable_section): DECLs in named address spaces
4783 cannot be "common".
4784
4785 * reload.c (find_reloads_address): Do not use LEGITIMIZE_RELOAD_ADDRESS
4786 for addresses in a non-generic address space.
4787
4788 * expr.c (emit_block_move_hints): Do not use libcalls for
4789 memory in non-generic address spaces.
4790 (clear_storage_hints): Likewise.
4791 (expand_assignment): Likewise.
4792
4793 * fold-const.c (operand_equal_p): Expressions refering to different
4794 address spaces are not equivalent.
4795
4796 * rtl.c (rtx_equal_p_cb): MEMs refering to different address
4797 spaces are not equivalent.
4798 (rtx_equal_p): Likewise.
4799 * cse.c (exp_equiv_p): Likewise.
4800 * jump.c (rtx_renumbered_equal_p): Likewise.
4801 * reload.c (operands_match_p): Likewise.
4802
4803 * alias.c (nonoverlapping_memrefs_p): MEMs refering to different
4804 address spaces may alias.
4805 (true_dependence): Likewise.
4806 (canon_true_dependence): Likewise.
4807 (write_dependence_p): Likewise.
4808
4809 * dse.c (canon_address): Handle named address spaces.
4810 * ifcvt.c (noce_try_cmove_arith): Likewise.
4811
4812 * tree.def (ADDR_SPACE_CONVERT_EXPR): New tree code.
4813 * expr.c (expand_expr_real_2): Expand ADDR_SPACE_CONVERT_EXPR.
4814 * convert.c (convert_to_pointer): Generate ADDR_SPACE_CONVERT_EXPR
4815 to handle conversions between different address spaces.
4816 * fold-const.c (fold_convert_loc): Likewise.
4817 (fold_unary_loc): Handle ADDR_SPACE_CONVERT_EXPR.
4818 * tree-pretty-print.c (dump_generic_node): Likewise.
4819 * gimple-pretty-print.c (dump_unary_rhs): Likewise.
4820 * tree-cfg.c (verify_gimple_assign_unary): Likewise.
4821 * tree-inline.c (estimate_operator_cost): Likewise.
4822 * tree-ssa.c (useless_type_conversion_p): Conversions between pointers
4823 to different address spaces are not useless.
4824
4825 2009-10-26 Jakub Jelinek <jakub@redhat.com>
4826
4827 PR bootstrap/41345
4828 * cfgcleanup.c (trivially_empty_bb_p): New function.
4829 (try_optimize_bb): Use it instead of checking BB_HEAD == BB_END.
4830
4831 PR debug/41828
4832 * dwarf2out.c (add_pubname, add_pubtype, generic_parameter_die,
4833 add_name_and_src_coords_attributes, gen_namespace_die,
4834 dwarf2out_set_name): Handle dwarf2_name returning NULL.
4835
4836 2009-10-26 Nick Clifton <nickc@redhat.com>
4837
4838 * config.gcc: Add support for RX target.
4839 * config/rx: New directory.
4840 * config/rx/constraints.md: New file.
4841 * config/rx/predicates.md: New file.
4842 * config/rx/rx.c: New file.
4843 * config/rx/rx.h: New file.
4844 * config/rx/rx.md: New file.
4845 * config/rx/rx.opt: New file.
4846 * config/rx/rx-protos.h: New file.
4847 * config/rx/t-rx: New file.
4848 * doc/extend.texi: Document RX function attributes.
4849 * doc/invoke.texi: Document RX specific command line options.
4850 * doc/contrib.texi: Document RX contribution.
4851 * doc/md.texi: Document RX constraints.
4852 * doc/install.texi: Document RX support.
4853
4854 2009-10-26 Michael Matz <matz@suse.de>
4855
4856 PR tree-optimization/41783
4857 * tree-ssa-alias.c (get_continuation_for_phi): Export, add a special
4858 case for simple diamonds.
4859 * tree-ssa-alias.h (get_continuation_for_phi): Declare.
4860 * tree-ssa-pre.c (translate_vuse_through_block): Add same_valid
4861 argument, use alias oracle to skip some vdefs.
4862 (phi_translate_1): Change call to above, don't allocate new
4863 value ids if they can stay the same.
4864 (compute_avail): Allow vuse walking when looking up references.
4865
4866 2009-10-26 Richard Guenther <rguenther@suse.de>
4867
4868 PR tree-optimization/41826
4869 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Avoid
4870 access to re-allocated vector fields.
4871
4872 2009-10-26 Richard Guenther <rguenther@suse.de>
4873
4874 * graphite-sese-to-poly.c (check_poly_representation): Fix
4875 compile without checking.
4876
4877 2009-10-26 Janus Weil <janus@gcc.gnu.org>
4878
4879 PR fortran/41714
4880 * gimple.h (tree_annotate_all_with_location): Remove prototype.
4881 * gimplify.c (tree_should_carry_location_p,
4882 tree_annotate_one_with_location,tree_annotate_all_with_location):
4883 Remove obsolete functions.
4884
4885 2009-10-25 Kaz Kojima <kkojima@gcc.gnu.org>
4886
4887 PR target/41813
4888 * config/sh/sh.md (stuff_delay_slot): Don't set T_REG in pattern.
4889
4890 2009-10-25 Richard Guenther <rguenther@suse.de>
4891
4892 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
4893 Stream DECL_RESTRICTED_P.
4894 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
4895
4896 2009-10-25 Richard Sandiford <rdsandiford@googlemail.com>
4897
4898 * config/mips/mips.c (mips_restore_gp_from_cprestore_slot): Emit
4899 a note when expanding to nothing.
4900
4901 2009-10-25 Richard Guenther <rguenther@suse.de>
4902
4903 PR middle-end/41814
4904 * tree.c (find_decls_types_r): Deal with Java overloading
4905 BINFO_VIRTUALS for its own purpose.
4906
4907 2009-10-24 Adam Nemet <anemet@caviumnetworks.com>
4908
4909 * config/mips/predicates.md (hilo_operand): New predicate.
4910 * config/mips/mips.md (<u>mulsidi3_64bit): Change it to a
4911 define_insn. Correct !ISA_HAS_EXT_INS length from 24 to 28. Move
4912 splitter part from here ...:
4913 (<u>mulsidi3_64bit splitter for !ISA_HAS_EXT_INS): ... to here. Swap
4914 op0 and op4 to match the DINS case.
4915 (<u>mulsidi3_64bit splitter for ISA_HAS_EXT_INS): New splitter.
4916
4917 2009-10-24 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
4918
4919 PR middle-end/19154
4920 * avr.md (QIDI): Add new mode iterator.
4921 (sbrx_branch<mode>): Create new zero extract bit, test and jump
4922 patterns for all QI thru DI modes combinations.
4923 (sbrx_and_branch<mode>): Create new and based bit test and jump
4924 patterns for QI thru SI modes.
4925 avr.c (avr_out_sbxx_branch): Use only bit number.
4926
4927 2009-10-24 Jan Hubicka <jh@suse.cz>
4928
4929 * ipa-reference.c (check_call): Noreturn notrhow calls do not write
4930 to memory.
4931 (analyze_function): When analyzing noreturn nothrow call, do not
4932 compute written stats; free bitmaps of vars early if possible.
4933 (generate_summary): Only update bitmaps if computed.
4934 (propagate): Only dump bitmaps if computed.
4935 (ipa_reference_read_summary): Fix pasto.
4936
4937 2009-10-24 Eric Botcazou <ebotcazou@adacore.com>
4938
4939 * tree-ssa-alias.c (nonaliasing_component_refs_p): Rename into...
4940 (aliasing_component_refs_p): ...this. Return true if there is no
4941 common base and the base access types have the same alias set.
4942 (indirect_ref_may_alias_decl_p): Adjust for above renaming.
4943 (indirect_refs_may_alias_p): Likewise.
4944
4945 2009-10-23 Joseph Myers <joseph@codesourcery.com>
4946
4947 PR c/40033
4948 * c-typeck.c (c_finish_stmt_expr): Do not wrap error_mark_node in
4949 a C_MAYBE_CONST_EXPR.
4950
4951 2009-10-23 Michael Meissner <meissner@linux.vnet.ibm.com>
4952
4953 PR target/41787
4954 * config/rs6000/rs6000.c (struct machine_function): Add
4955 vsx_or_altivec_used_p to record if vector types are used.
4956 (rs6000_expand_to_rtl_hook): Rename from
4957 rs6000_alloc_sdmode_stack_slot. If VSX, check to see if there are
4958 any vector operations, so if there are, we can set VRSAVE to
4959 non-zero when only floating point vector registers are used.
4960 (TARGET_EXPAND_TO_RTL_HOOK): Use rs6000_expand_to_rtl_hook.
4961 (rs6000_check_vector_mode): Inner function to check if vector
4962 types are used in the code.
4963 (compute_vrsave_mask): If VSX, make sure VRSAVE is non-zero if
4964 vector instructions are used.
4965
4966 * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED):
4967 Indicate that VSX registers which overlap floating point
4968 registers, can't be used across a call, since the ABI only states
4969 the scalar part of the register will be saved and restored.
4970
4971 2009-10-23 Joseph Myers <joseph@codesourcery.com>
4972
4973 PR c/41673
4974 * alias.c (get_alias_set): Call langhook before returning 0 for
4975 types with structural equality.
4976 * c-common.c (c_common_get_alias_set): Use alias set of element
4977 type for arrays with structural comparison.
4978
4979 2009-10-23 Richard Guenther <rguenther@suse.de>
4980
4981 PR middle-end/41805
4982 * cfgexpand.c (expand_call_stmt): Use gimple_has_side_effects and
4983 gimple_call_nothrow_p.
4984
4985 2009-10-23 Richard Guenther <rguenther@suse.de>
4986
4987 PR tree-optimization/41778
4988 * tree-ssa-pre.c (do_regular_insertion): Only insert if a
4989 redundancy along a path in the CFG we want to optimize for speed
4990 is going to be removed.
4991 (execute_pre): Do partial-PRE only if the function is to be
4992 optimized for speed.
4993 (gate_pre): Do not turn off all of PRE when not optimizing a
4994 function for speed.
4995
4996 2009-10-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4997
4998 * builtins.c (fold_builtin_cabs): Use validate_arg().
4999 (fold_builtin_cexp): Fix if-logic.
5000 (fold_builtin_1): Check subtype for BUILT_IN_CIMAG.
5001
5002 2009-10-22 Jeff Law <law@redhat.com>
5003
5004 * ira-lives.c (process_single_reg_class_operands): Update the
5005 hard reg costs for all the hard registers desired by the
5006 single reg class operand.
5007
5008 2009-10-22 Richard Sandiford <rdsandiford@googlemail.com>
5009
5010 * simplify-rtx.c (simplify_replace_fn_rtx): Add a fallback case
5011 for rtxes that aren't handled specially.
5012
5013 2009-10-22 Richard Sandiford <rdsandiford@googlemail.com>
5014
5015 * rtl.h (shallow_copy_rtvec): Declare.
5016 * rtl.c (shallow_copy_rtvec): New function.
5017 * cselib.c (cselib_subst_to_values): Use it. Only modify an
5018 rtx field if the subrtx has changed.
5019
5020 2009-10-22 Anatoly Sokolov <aesok@post.ru>
5021
5022 * config/m32c/m32c.c (m32c_function_value_regno_p): New function.
5023 (m32c_function_value): Make static, add new 'outgoing' argument.
5024 (m32c_libcall_value): Make static, add new 'fun' argument.
5025 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
5026 * config/m32c/m32c.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
5027 (FUNCTION_VALUE_REGNO_P): Redefine, use m32c_function_value_regno_p.
5028 * config/m32c/m32c-protos.h (m32c_function_value_regno_p): Declare.
5029 (m32c_function_value, m32c_libcall_value): Delete declaration.
5030
5031 2009-10-22 Diego Novillo <dnovillo@google.com>
5032
5033 * Makefile.in (PLUGIN_HEADERS): Add output.h and IPA_UTILS_H.
5034
5035 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
5036
5037 * tree-cfg.c (gimple_duplicate_sese_tail): Fix typos/indentation/white
5038 space.
5039
5040 2009-10-22 Richard Guenther <rguenther@suse.de>
5041
5042 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Declare.
5043 * lto-symtab.c (struct lto_symtab_entry_def): Add node member.
5044 (lto_symtab_merge): Do not merge cgraph nodes here.
5045 (lto_symtab_resolve_can_prevail_p): Simplify.
5046 (lto_symtab_resolve_symbols): Store cgraph node.
5047 (lto_symtab_merge_decls_1): Simplify. Do not drop non-prevailing
5048 functions from the symtab.
5049 (lto_symtab_merge_cgraph_nodes_1): New function.
5050 (lto_symtab_merge_cgraph_nodes): Likewise.
5051
5052 2009-10-22 Richard Guenther <rguenther@suse.de>
5053
5054 PR lto/41791
5055 * lto-streamer-out.c (lto_output_location): Stream the
5056 system header flag.
5057 * lto-streamer-in.c (lto_input_location): Likewise.
5058
5059 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
5060
5061 * cfgloopmanip.c (duplicate_subloops): Export.
5062 * tree-parloops.c (loop_parallel_p): Dump if loop is innermost.
5063 (transform_to_exit_first_loop): Duplicate bbs starting from
5064 header up to loop->latch instead of exit->src.
5065 Initialize control variable to the correct number of iterations.
5066 (gather_scalar_reductions): Do not register double reductions.
5067 (parallelize_loops): Dump which loop is tested.
5068 Indicate whether the parallelized loop is inner or not.
5069 Remove the innermost-loop requirement.
5070 * cfgloop.h (duplicate_subloops): Export.
5071 * tree-cfg.c (add_phi_args_after_redirect): New function.
5072 (gimple_duplicate_sese_tail): Remove the no-subloops constraint.
5073 Call duplicate_subloops.
5074 Update number of iterations at the exit condition.
5075 Don't redirect nexits always to the loop exit.
5076 Redirect copied edges from latch to the loop exit.
5077
5078 2009-10-22 Jan Hubicka <jh@suse.cz>
5079
5080 * ipa-cp.c (ipcp_read_summary): Remove now invalid FIXME and
5081 flag_ltrans check.
5082 * ipa-inline.c (cgraph_mark_inline_edge,
5083 cgraph_decide_inlining_of_small_function,
5084 cgraph_decide_inlining, inline_read_summary): Disable indirect
5085 inlining for WPA for time being.
5086
5087 PR tree-optimize/40556
5088 * ipa-inline.c (cgraph_early_inlining): Fix iterations condition.
5089
5090 2009-10-22 Richard Guenther <rguenther@suse.de>
5091
5092 * lto-streamer.h (lto_symtab_clear_resolution): Remove.
5093 * lto-symtab.c (lto_symtab_clear_resolution): Likewise.
5094
5095 2009-10-22 Jan Hubicka <jh@suse.cz>
5096
5097 PR lto/41730
5098 * ipa-reference.c (has_proper_scope_for_analysis): Add fixme about
5099 global vars.
5100 (check_call): Handle only indirect calls.
5101 (propagate_bits): Update comment.
5102 (write_node_summary_p): Turn bogus check to assert.
5103 (ipa_reference_write_summary): Stream calls_read_all properly.
5104 (ipa_reference_read_summary): Stream in calls_read_all properly.
5105 (read_write_all_from_decl): New function.
5106 (propagate): Handle OVERWRITABLE nodes and external calls here.
5107 * ipa-pre-const.c (check_call): In IPA mode handle indirect
5108 calls only.
5109 (analyze_function): Do not check visibility here.
5110 (add_new_function): We summary OVERWRITABLE too.
5111 (generate_summary): Stream OVERWRITABLE nodes too.
5112 (propagate): Handle external calls and OVERWRITABLE nodes here.
5113 (local_pure_const): Check visibility here.
5114
5115 2009-10-22 Jan Hubicka <jh@suse.cz>
5116
5117 * ipa-cp.c (ipcp_write_summary, ipcp_read_summary): New functions.
5118 (pass_ipa_cp): Register them.
5119 (ipcp_init_stage): Analyze all functions for whopr/lto.
5120 (ipcp_propagate_stage): Skip external calls.
5121 (ipcp_iterate_stage): Call ipa_update_after_lto_read if needed.
5122 * ipa-reference.c (write_node_summary_p): Fix thinko about
5123 availability.
5124 * cgraphunit.c (ipa_passes): When in lto, ne er produce new summaries;
5125 when in ltrans, skip executing of ipa passes since everything
5126 should've been done.
5127 * ipa-inline.c (cgraph_decide_inlining): Remove FIXMEs.
5128 (inline_generate_summary): Likewise.
5129 (inline_read_summary): New function.
5130 (inline_write_summary): New function.
5131 (pass_ipa_inline): Register new hooks.
5132 * ipa-prop.c: Inlcude lto-streamer.h
5133 (ipa_edge_args_vector): Update declaration.
5134 (ipa_count_arguments, ipa_compute_jump_functions,
5135 ipa_free_edge_args_substructures): Move ipa_edge_args_vector into ggc.
5136 (ipa_write_jump_function, ipa_read_jump_function, ipa_write_node_info,
5137 ipa_read_node_info): New static functions.
5138 (ipa_prop_write_jump_functions, ipa_prop_read_jump_functions): Update.
5139 (duplicate_array): Use xmalloc.
5140 (duplicate_ggc_array): New.
5141 (ipa_edge_duplication_hook): Use it.
5142 (ipa_update_after_lto_read): New function.
5143 * ipa-prop.h (ipa_prop_write_jump_functions,
5144 ipa_prop_read_jump_functions): Declare.
5145 (ipa_pass_through_data, ipa_ancestor_jf_data, ipa_member_ptr_cst,
5146 jump_func_value, ipa_member_ptr_cst, ipa_edge_args): Add GTY markers.
5147 (ipa_edge_args_vector): Move into GGC.
5148 (ipa_check_create_edge_args): Update.
5149 (ipa_update_after_lto_read): New.
5150 * passes.c (ipa_write_summaries_1): When in wpa, do not write
5151 summaries.
5152 (ipa_read_summaries): When in ltrans, so not read summaries.
5153 * lto-streamer.c (lto_get_section_name): Add
5154 LTO_section_jump_functions.
5155 * lto-streamer.h (LTO_section_jump_functions): New section.
5156 (produce_asm): Declare.
5157 * lto-cgraph.c (output_cgraph): Output edges in reverse order.
5158 * lto-streamer-out.c (produce_asm): Export.
5159 * lto-streamer-in.c: Include tree-pass.h
5160 (input_function): Free dominance info when done.
5161 (lto_read_body): Push ipa_inline in ltrans stage.
5162 * gengtype.c (open_base_files): Add ipa-prop.h into includes.
5163 * Makefile.in (GTFILES): Add ipa-prop.h
5164
5165 2009-10-22 Matthias Klose <doko@ubuntu.com>
5166
5167 * doc/install.texi: Document --enable-browser-plugin.
5168
5169 2009-10-21 Vladimir Makarov <vmakarov@redhat.com>
5170
5171 * doc/invoke.texi (fira-loop-pressure): Update default value.
5172 * opts.c (decode_options): Remove default value setting for
5173 flag_ira_loop_pressure.
5174 * config/ia64/ia64.c (ia64_override_options): Set
5175 flag_ira_loop_pressure up for -O3.
5176 * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
5177
5178 2009-10-21 Sebastian Pop <sebastian.pop@amd.com>
5179
5180 PR tree-optimization/41497
5181 * tree-scalar-evolution.c (analyze_evolution_in_loop): Return
5182 chrec_dont_know if the evolution function returned by follow_ssa_edge
5183 is constant in the analyzed loop and is not compatible with the
5184 initial value before the loop.
5185 * tree-chrec.h (no_evolution_in_loop_p): Call STRIP_NOPS.
5186
5187 2009-10-21 Joseph Myers <joseph@codesourcery.com>
5188
5189 * config/sh/sh.c (nonpic_symbol_mentioned_p): Allow UNSPEC_TPOFF.
5190
5191 2009-10-21 Jakub Jelinek <jakub@redhat.com>
5192
5193 PR other/25507
5194 * doc/invoke.texi: Document -print-multi-os-directory.
5195
5196 2009-10-21 Jack Howarth <howarth@bromo.med.uc.edu>
5197
5198 PR c++/41313
5199 * gcc/config/darwin10.h: Use default_emit_unwind_label.
5200 * gcc/config/darwin.c: Disable -freorder-blocks-and-partition
5201 when darwin_emit_unwind_label is used.
5202
5203 2009-10-21 Eric Botcazou <ebotcazou@adacore.com>
5204
5205 * tree-vect-stmts.c (exist_non_indexing_operands_for_use_p): Tweak
5206 order of checks.
5207
5208 2009-10-20 Richard Henderson <rth@redhat.com>
5209
5210 * tree-eh.c (lower_try_finally_copy): Do lower_eh_constructs_1
5211 before emit_post_landing_pad.
5212
5213 2009-10-20 Adam Nemet <anemet@caviumnetworks.com>
5214
5215 * config/mips/mips.c (mips_binary_cost): Add new argument speed.
5216 Use when calling rtx_costs.
5217 (mips_rtx_costs): Fix formatting. Use argument speed rather than the
5218 global optimize_size. Pass speed to mips_binary_cost.
5219
5220 2009-10-20 Jakub Jelinek <jakub@redhat.com>
5221
5222 * config/rs6000/rs6000.c (def_builtin): Set TREE_READONLY instead
5223 of TREE_CONSTANT.
5224
5225 2009-10-20 Richard Sandiford <rdsandiford@googlemail.com>
5226
5227 * rtl.h (simplify_replace_fn_rtx): Declare.
5228 (wrap_constant, unwrap_constant): Delete.
5229 * cfgexpand.c (unwrap_constant, wrap_constant): Delete.
5230 (expand_debug_expr): Don't call wrap_constant.
5231 * combine.c (rtx_subst_pair): Only define for AUTO_INC_DEC.
5232 (auto_adjust_pair): Fold into...
5233 (propagate_for_debug_subst): ...here. Only define for AUTO_INC_DEC.
5234 Just return a new value.
5235 (propagate_for_debug): Use simplify_replace_fn_rtx for AUTO_INC_DEC,
5236 otherwise use simplify_replace_rtx.
5237 * cselib.c (wrap_constant): Reinstate old definition.
5238 (cselib_expand_value_rtx_1): Don't wrap constants.
5239 * gcse.c (try_replace_reg): Don't use copy_rtx in the call to
5240 simplify_replace_rtx.
5241 (bypass_block): Fix formatting in calls to simplify_replace_rtx.
5242 * reload1.c (reload): Skip all uses for an insn before adjusting it.
5243 Use simplify_replace_rtx.
5244 * simplify-rtx.c (simplify_replace_fn_rtx): New function,
5245 adapted from...
5246 (simplify_replace_rtx): ...here. Turn into a wrapper for
5247 simplify_replace_fn_rtx.
5248 (simplify_unary_operation): Don't unwrap CONSTs.
5249 * var-tracking.c (check_wrap_constant): Delete.
5250 (vt_expand_loc_callback): Don't call it.
5251 (vt_expand_loc): Likewise.
5252
5253 2009-10-20 Pascal Obry <obry@adacore.com>
5254 Eric Botcazou <ebotcazou@adacore.com>
5255
5256 * config/i386/cygming.h (DWARF_FRAME_REGNUM): Add enclosing parens.
5257
5258 2009-10-20 Michael Matz <matz@suse.de>
5259
5260 * loop-invariant.c (create_new_invariant): Use different magic number.
5261
5262 2009-10-20 Richard Earnshaw <rearnsha@arm.com>
5263
5264 PR target/39247
5265 * arm.c (arm_override_options): Forcibly disable hot/cold block
5266 partitioning.
5267
5268 2009-10-20 Alexandre Oliva <aoliva@redhat.com>
5269
5270 PR debug/41739
5271 * haifa-sched.c (try_ready): Skip debug deps updating speculation
5272 status.
5273
5274 2009-10-20 Richard Guenther <rguenther@suse.de>
5275
5276 * ggc-page.c: Include cfgloop.h.
5277 (struct max_alignment): Drop long double, add void *.
5278 (extra_order_size_table): Add low non-power-of-two multiples
5279 of MAX_ALIGNMENT. Drop small type-based entries, add
5280 tree_type, cgraph_node and loop.
5281 * alloc-pool.c (struct allocation_object_def): Drop long double
5282 aligning element.
5283
5284 2009-10-20 Jakub Jelinek <jakub@redhat.com>
5285
5286 PR debug/41340
5287 * loop-invariant.c (calculate_loop_reg_pressure): Don't count regs
5288 referenced just in DEBUG_INSNs.
5289
5290 2009-10-20 Richard Guenther <rguenther@suse.de>
5291
5292 PR lto/41761
5293 * gimple.c (gimple_register_type): Make sure we register
5294 the types main variant first.
5295
5296 2009-10-20 Richard Guenther <rguenther@suse.de>
5297
5298 * gimple.c (gimple_types_compatible_p): Simplify. Move
5299 cheap checks before hashtable queries. Add checks for
5300 TYPE_NONALIASED_COMPONENT and DECL_NONADDRESSABLE_P.
5301
5302 2009-10-20 Eric Botcazou <ebotcazou@adacore.com>
5303
5304 * tree-sra.c (build_ref_for_offset_1) <RECORD_TYPE>: Skip fields
5305 without size or with size that can't be represented as a host integer.
5306
5307 2009-10-20 Alexandre Oliva <aoliva@redhat.com>
5308
5309 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't regard
5310 the removal of a debug stmt as a significant change.
5311
5312 2009-10-20 Wolfgang Gellerich <gellerich@de.ibm.com>
5313
5314 * config/s390/s390.md: Added agen condition to operand
5315 forwarding bypasses. Added bypass for early address generation
5316 use of int results. Updated comments.
5317
5318 2009-10-20 Stefan Dösinger <stefan@codeweavers.com>
5319
5320 * config/i386/i386.c: Remove signal.h #include.
5321
5322 2009-10-20 Jie Zhang <jie.zhang@analog.com>
5323
5324 * simplify-rtx.c (simplify_const_unary_operation): Handle SS_ABS.
5325 * doc/rtl.texi: Document ss_abs.
5326
5327 2009-10-19 Jakub Jelinek <jakub@redhat.com>
5328
5329 * c-common.c (c_parse_error): Handle CPP_UTF8STRING.
5330 * c-lex.c (c_lex_with_flags): Likewise. Test C_LEX_STRING_NO_JOIN
5331 instead of C_LEX_RAW_STRINGS.
5332 (lex_string): Handle CPP_UTF8STRING.
5333 * c-parser.c (c_parser_postfix_expression): Likewise.
5334 * c-pragma.h (C_LEX_RAW_STRINGS): Rename to ...
5335 (C_LEX_STRING_NO_JOIN): ... this.
5336
5337 2009-10-19 Anatoly Sokolov <aesok@post.ru>
5338
5339 * config/cris/cris.c (cris_function_value, cris_libcall_value,
5340 cris_function_value_regno_p): New functions.
5341 (cris_promote_function_mode): Update comment.
5342 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
5343 * config/cris/cris.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
5344 (FUNCTION_VALUE_REGNO_P): Redefine, use cris_function_value_regno_p.
5345 * config/cris/cris-protos.h (cris_function_value_regno_p): Declare.
5346
5347 2009-10-19 Jakub Jelinek <jakub@redhat.com>
5348
5349 * unwind-dw2.c (execute_stack_op): Fix operand order for
5350 DW_OP_le, DW_OP_ge, DW_OP_lt and DW_OP_gt.
5351
5352 2009-10-19 Eric Botcazou <ebotcazou@adacore.com>
5353
5354 * gimple-low.c (struct lower_data): Add cannot_fallthru field.
5355 (lower_stmt) <GIMPLE_BIND>: Add comment.
5356 <GIMPLE_COND, GIMPLE_GOTO, GIMPLE_SWITCH>: Set cannot_fallthru to true
5357 and return.
5358 <GIMPLE_RETURN>: Remove the statement if cannot_fallthru is set.
5359 Otherwise lower it and set cannot_fallthru to true.
5360 <GIMPLE_TRY>: Update cannot_fallthru for GIMPLE_TRY_FINALLY and return.
5361 <GIMPLE_CATCH, GIMPLE_EH_FILTER>: Set cannot_fallthru to false.
5362 <GIMPLE_CALL>: Set cannot_fallthru to false for BUILT_IN_SETJMP and
5363 to true for a noreturn call. Do not remove statements.
5364 <GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TASK>: Set cannot_fallthru to false.
5365 Set cannot_fallthru to false on function exit.
5366 (gimple_stmt_may_fallthru) <GIMPLE_SWITCH>: Really return false.
5367 <GIMPLE_ASSIGN>: Remove.
5368
5369 2009-10-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5370
5371 * config/s390/s390.c (s390_z10_optimize_cmp): Don't touch FP compares.
5372
5373 2009-10-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5374
5375 * config/s390/s390.c (s390_z10_optimize_cmp): Use
5376 next/prev_active_insn to skip DEBUG_INSNs as well.
5377
5378 2009-10-19 Joseph Myers <joseph@codesourcery.com>
5379
5380 * config/arm/arm.c (output_move_neon): Use DImode in call to
5381 adjust_address.
5382
5383 2009-10-19 Matthias Klose <doko@ubuntu.com>
5384
5385 PR target/40134
5386 * config.gcc (arm*-*-linux-*eabi): Use config/t-slibgcc-libgcc.
5387
5388 2009-10-19 Jakub Jelinek <jakub@redhat.com>
5389
5390 * cfgexpand.c (expand_debug_expr): Fail if bitpos < 0 for non-MEM op0.
5391
5392 2009-10-17 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
5393
5394 PR middle-end/41738
5395 * optabs.c (expand_binop): Make mode of shift count expression mode
5396 of shift count not target.
5397 Remove indent nit.
5398
5399 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
5400
5401 * tree-nested.c (convert_nonlocal_reference_stmt) <GIMPLE_COND>: New
5402 case. Force using values to replace references within the statement.
5403 (convert_local_reference_stmt): Likewise.
5404
5405 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
5406
5407 * gimple-low.c (lower_stmt) <GIMPLE_CALL>: If the call is noreturn,
5408 remove a subsequent GOTO or RETURN statement.
5409
5410 2009-10-17 Andy Hutchinson <hutchinsonandy@aim.com>
5411
5412 * config/avr.md (*movqi): Add zero as equally preferable constraint
5413 as general register.
5414 (*movhi): Ditto.
5415
5416 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
5417
5418 * print-tree.c (print_node): Fix string for DECL_STRUCT_FUNCTION.
5419
5420 2009-10-17 Richard Guenther <rguenther@suse.de>
5421
5422 * lto-streamer-in.c (lto_input_location): Try to reuse previous maps.
5423
5424 2009-10-17 Richard Guenther <rguenther@suse.de>
5425
5426 * lto-streamer-in.c (input_gimple_stmt): Fixup FIELD_DECL
5427 operands in COMPONENT_REFs.
5428
5429 2009-10-17 Anatoly Sokolov <aesok@post.ru>
5430
5431 * targhooks.c (default_libcall_value): Don't use LIBCALL_VALUE macro
5432 if not defined. Change type of second argument to const_rtx.
5433 (default_function_value): Call gcc_unreachable if FUNCTION_VALUE
5434 macro not defined.
5435 * targhooks.h (default_libcall_value): Update prototype.
5436 * target.h (struct gcc_target): Change type of second argument of
5437 libcall_value to const_rtx.
5438 * config/arm/arm.c (arm_libcall_value): Change type of second argument
5439 to const_rtx.
5440 (arm_libcall_uses_aapcs_base): Change type of argument to const_rtx.
5441 * doc/tm.texi (TARGET_LIBCALL_VALUE): Revise documentation.
5442
5443 2009-10-17 Jakub Jelinek <jakub@redhat.com>
5444
5445 PR debug/40521
5446 * debug.h (struct gcc_debug_hooks): Add assembly_start hook.
5447 * cgraphunit.c (cgraph_optimize): Call it.
5448 * dwarf2out.c (dwarf2out_init): Move .cfi_sections printing into...
5449 (dwarf2out_assembly_start): ... here. New hook.
5450 (dwarf2out_debug_hooks): Add dwarf2out_assembly_start.
5451 * debug.c (do_nothing_debug_hooks): Do nothing for assembly_start
5452 hook.
5453 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
5454 * sdbout.c (sdb_debug_hooks): Likewise.
5455 * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_assembly_start.
5456 (vmsdbgout_assembly_start): New hook.
5457
5458 2009-10-17 Alexandre Oliva <aoliva@redhat.com>
5459
5460 * rtl.h (RTL_LOCATION): Fix typo.
5461
5462 2009-10-17 Alexandre Oliva <aoliva@redhat.com>
5463
5464 * print-rtl.c (print_rtx): Print locators in asm_operands
5465 and asm_input.
5466
5467 2009-10-17 Alexandre Oliva <aoliva@redhat.com>
5468
5469 PR debug/41535
5470 * sched-deps.c (depl_on_debug_p): New.
5471 (attach_dep_link): Reject debug deps before nondebug deps.
5472 (add_to_deps_list): Insert debug deps after nondebug deps.
5473 (sd_lists_empty_p): Stop at first nonempty list. Disregard debug
5474 deps.
5475 (sd_add_dep): Do not reject debug deps.
5476 (add_insn_mem_dependence): Don't count debug deps.
5477 (remove_from_deps): Likewise.
5478 (sched_analyze_2): Set up mem deps on debug insns.
5479 (sched_analyze_insn): Record reg uses for deps on debug insns.
5480 * haifa-sched.c (schedule_insn): Reset deferred debug insn. Don't
5481 try_ready nondebug insn after debug insn.
5482 * ddg.c (create_ddg_dep_from_intra_loop_link,
5483 create_ddg_dep_no_link): Don't reject debug deps.
5484
5485 2009-10-16 Richard Guenther <rguenther@suse.de>
5486
5487 * lto-symtab.c (merge_incomplete_and_complete_type): Remove.
5488 (maybe_merge_incomplete_and_complete_type): Likewise.
5489 (lto_symtab_merge): Do not call them. Do not warn for
5490 complete vs. incomplete compatible types.
5491 (lto_symtab_merge_decls_2): Simplify.
5492 * gimple.c (gimple_force_type_merge): Remove.
5493 (gimple_types_compatible_p): Make it static.
5494 * gimple.h (gimple_force_type_merge): Remove.
5495 (gimple_types_compatible_p): Likewise.
5496
5497 2009-10-16 Jakub Jelinek <jakub@redhat.com>
5498
5499 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Cast
5500 DWARF2_ADDR_SIZE to int to avoid signed vs. unsigned warnings.
5501
5502 2009-10-16 Richard Guenther <rguenther@suse.de>
5503
5504 PR tree-optimization/41728
5505 * tree-ssa-dom.c (optimize_stmt): Mark the stmt modified
5506 if fold_stmt did anything.
5507
5508 2009-10-16 Richard Guenther <rguenther@suse.de>
5509
5510 PR lto/41715
5511 * lto-streamer-in.c (lto_input_tree_ref): Revert last change.
5512 (maybe_fixup_handled_component): New function.
5513 (input_gimple_stmt): Fixup mismatched decl replacements.
5514
5515 2009-10-16 Richard Guenther <rguenther@suse.de>
5516
5517 PR lto/41713
5518 * lto-streamer-out.c (lto_output_tree_ref): Handle DEBUG_EXPR_DECL
5519 the same as VAR_DECL.
5520
5521 2009-10-16 Richard Guenther <rguenther@suse.de>
5522
5523 * gimple.c (iterative_hash_gimple_type): For integer types
5524 also hash their minimum and maximum values and the string flag.
5525 For array types hash their domain and the string flag.
5526
5527 2009-10-16 Richard Guenther <rguenther@suse.de>
5528
5529 * gimple.c (gimple_types_compatible_p): Restrict completing
5530 types to record or unions. Simplify completion.
5531 Do not merge records or unions with different
5532 TYPE_STRUCTURAL_EQUALITY_P tag.
5533 (iterative_hash_gimple_type): Restrict non-recursing into
5534 pointer targets for records and unions.
5535
5536 2009-10-15 Jakub Jelinek <jakub@redhat.com>
5537
5538 PR debug/41717
5539 * cfgexpand.c (expand_debug_expr): Handle CONJ_EXPR.
5540 * dwarf2out.c (mem_loc_descriptor): Don't handle
5541 POST_INT/POST_DEC/POST_MODIFY like SUBREG. For SUBREG
5542 punt if it is not lowpart subreg or if inner mode isn't
5543 MODE_INT.
5544
5545 2009-10-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5546
5547 * config/s390/s390.c (s390_z10_optimize_cmp): Skip notes when
5548 investigating previous or next insns.
5549
5550 2009-10-16 Eric Botcazou <ebotcazou@adacore.com>
5551
5552 * tree-sra.c (build_ref_for_offset_1): Update comment.
5553
5554 2009-10-16 Wolfgang Gellerich <gellerich@de.ibm.com>
5555
5556 * config/s390/s390.md (atype): Added missing values.
5557
5558 2009-10-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5559
5560 PR target/41702
5561 * pa.md (casesi): Use sign extended index in call to gen_casesi64p.
5562 (casesi64p): Update pattern to reflect above.
5563
5564 2009-10-15 Steve Ellcey <sje@cup.hp.com>
5565
5566 PR rtl-optimization/41697
5567 * sel-sched-ir.h (_eligible_successor_edge_p): Check successor count.
5568
5569 2009-10-15 Michael Meissner <meissner@linux.vnet.ibm.com>
5570
5571 PR target/23983
5572 * config/rs6000/predicates.md: Update copyright year.
5573 * config/rs6000/altivec.md: Ditto.
5574
5575 * config/rs6000/t-rs6000 (TM_H): Add rs6000-builtin.def.
5576 (MD_INCLUDES): Add a2.md.
5577
5578 * config/rs6000/rs6000.c (rs6000_builtin_decls): Change
5579 RS6000_BUILTIN_COUNT to MAX_RS6000_BUILTINS.
5580 (builtin_classify): New static vector to classify various builtins
5581 to get the tree attributes correct.
5582 (def_builtin): Set the attributes of builtins based on what the
5583 builtin does (i.e. memory operation, floating point, saturation
5584 need special attributes, others are pure functions).
5585
5586 * config/rs6000/rs6000.h (enum rs6000_btc): New enum to classify
5587 the builtins.
5588 (enum rs6000_builtins): Include rs6000-builtin.def to define the
5589 builtins. Change the end marker to MAX_RS6000_BUILTINS from
5590 RS6000_BUILTIN_COUNT.
5591 (rs6000_builtin_decls): Change RS6000_BUILTIN_COUNT to
5592 MAX_RS6000_BUILTINS.
5593
5594 * config/rs6000/rs6000-builtin.def: New file that combines the
5595 builtin enumeration name and attributes.
5596
5597 2009-10-15 H.J. Lu <hongjiu.lu@intel.com>
5598
5599 * config/i386/linux.h (ASM_SPEC): Add --32.
5600
5601 2009-10-15 Jakub Jelinek <jakub@redhat.com>
5602
5603 * dwarf2out.c (dwarf_tag_name): Handle DW_TAG_rvalue_reference_type
5604 and DW_TAG_template_alias.
5605 (dwarf_attr_name): Handle DW_AT_main_subprogram,
5606 DW_AT_data_bit_offset, DW_AT_const_expr, DW_AT_enum_class,
5607 DW_AT_linkage_name, DW_AT_GNU_guarded_by, DW_AT_GNU_pt_guarded_by,
5608 DW_AT_GNU_guarded, DW_AT_GNU_pt_guarded, DW_AT_GNU_locks_excluded,
5609 DW_AT_GNU_exclusive_locks_required, DW_AT_GNU_shared_locks_required
5610 and DW_AT_GNU_odr_signature.
5611 (dwarf_form_name): Handle DW_FORM_sec_offset, DW_FORM_exprloc,
5612 DW_FORM_flag_present and DW_FORM_ref_sig8.
5613 (output_signature): Only print name on the first byte.
5614 (output_die): Likewise for dw_val_class_data8.
5615
5616 2009-10-15 Alexander Monakov <amonakov@ispras.ru>
5617
5618 * doc/invoke.texi: Clarify that most optimizations are not enabled
5619 without -O.
5620
5621 2009-10-15 Richard Guenther <rguenther@suse.de>
5622
5623 PR lto/41668
5624 * gimple.c (compare_type_names_p): Handle anonymous names
5625 differently based on new mode argument.
5626 (gimple_types_compatible_p): For structs also compare the tags.
5627 (iterative_hash_type_name): Rename to ...
5628 (iterative_hash_name): ... this. Hash all names.
5629 (iterative_hash_gimple_type): Fix hashing the struct tag of
5630 pointer targets. Hash field decl names.
5631
5632 2009-10-15 Richard Guenther <rguenther@suse.de>
5633
5634 PR lto/41669
5635 * gimple.c (gimple_get_alias_set): Avoid recursing on
5636 invalid type topology.
5637
5638 2009-10-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
5639
5640 * config/spu/spu.c (get_branch_target): Use extract_asm_operands.
5641
5642 2009-10-15 Richard Guenther <rguenther@suse.de>
5643
5644 * tree.c (free_lang_data_in_decl): Free DECL_FCONTEXT.
5645
5646 2009-10-15 Jakub Jelinek <jakub@redhat.com>
5647
5648 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Don't
5649 add --with-tune{,-32,-64} configured default for -mtune if explicit
5650 -mcpu is used.
5651
5652 2009-10-14 Daniel Gutson <dgutson@codesourcery.com>
5653
5654 * config/arm/neon.md (neon_vshll_n<mode>): Checking Bounds fixed.
5655
5656 2009-10-14 DJ Delorie <dj@redhat.com>
5657
5658 * config/h8300/h8300.c (F): New.
5659 (Fpa): New.
5660 (h8300_emit_stack_adjustment): Call them.
5661 (push): Likewise.
5662 (h8300_push_pop): Likewise.
5663 (h8300_expand_prologue): Likewise.
5664 * config/h8300/h8300.h (DWARF2_DEBUGGING_INFO): Define.
5665 (MUST_USE_SJLJ_EXCEPTIONS): Define.
5666 (INCOMING_RETURN_ADDR_RTX): Define.
5667 (INCOMING_FRAME_SP_OFFSET): Define.
5668 (DWARF_CIE_DATA_ALIGNMENT): Define.
5669
5670 2009-10-14 Jakub Jelinek <jakub@redhat.com>
5671
5672 * stor-layout.c (place_field): Don't emit -Wpadded warnings for
5673 fields in builtin structs.
5674 (finalize_record_size): Likewise.
5675
5676 2009-10-14 Richard Guenther <rguenther@suse.de>
5677
5678 * gimple.c (gtc_ob): New global.
5679 (struct type_pair_d): Replace pointers with type UIDs.
5680 (type_pair_hash): Adjust.
5681 (type_pair_eq): Likewise.
5682 (lookup_type_pair): Likewise. Allocate from an obstack.
5683 (gimple_force_type_merge): Adjust.
5684 (gimple_types_compatible_p): Likewise.
5685 (free_gimple_type_tables): Free the obstack.
5686
5687 2009-10-14 Jakub Jelinek <jakub@redhat.com>
5688
5689 * tree-parloops.c (separate_decls_in_region_debug_bind): Drop debug
5690 stmts setting DEBUG_EXPR_DECLs.
5691
5692 * cfgexpand.c (expand_debug_expr): Ignore zero-length bitfields.
5693 Don't crash if mode1 is VOIDmode.
5694
5695 2009-09-26 Vladimir Makarov <vmakarov@redhat.com>
5696
5697 * params.def (PARAM_IRA_LOOP_RESERVED_REGS): New.
5698 * params.h (IRA_LOOP_RESERVED_REGS): New.
5699 * tree-pass.h (pass_subregs_of_mode_init,
5700 pass_subregs_of_mode_finish): Remove.
5701 * passes.c (pass_subregs_of_mode_init,
5702 pass_subregs_of_mode_finish): Remove.
5703 (pass_reginfo_init): Move before loop optimizations.
5704 * config/i386/i386.h (STACK_REG_COVER_CLASS): Define.
5705 * common.opt (fira-loop-pressure): New.
5706 * toplev.h (flag_ira_loop_pressure): New.
5707 * rtl.h (init_subregs_of_mode, finish_subregs_of_mode): New externals.
5708 * reginfo.c (init_subregs_of_mode, finish_subregs_of_mode):
5709 Make external and void type functions.
5710 (gate_subregs_of_mode_init, pass_subregs_of_mode_init,
5711 pass_subregs_of_mode_finish): Remove.
5712 * ira-costs.c (init_costs): Call init_subregs_of_mode.
5713 * regmove.c: Include ira.h.
5714 (regmove_optimize): Call ira_set_pseudo_classes after IRA based
5715 register pressure calculation in loops.
5716 * loop-invariant.c: Include REGS_H and ira.h.
5717 (struct loop_data): New members max_reg_pressure, regs_ref, and
5718 regs_live.
5719 (struct invariant): New member orig_regno.
5720 (curr_loop): New variable.
5721 (find_exits): Initialize regs_ref and regs_live.
5722 (create_new_invariant): Initialize orig_regno.
5723 (get_cover_class_and_nregs): New.
5724 (get_inv_cost): Make aregs_needed an array. Use regs_needed as an
5725 array. Add code for flag_ira_loop_pressure.
5726 (gain_for_invariant): Make new_regs an array. Add code for
5727 flag_ira_loop_pressure.
5728 (best_gain_for_invariant): Ditto.
5729 (set_move_mark): New parameter gain. Use it for debugging output.
5730 (find_invariants_to_move): Make regs_needed and new_regs an array.
5731 Add code for flag_ira_loop_pressure.
5732 (move_invariant_reg): Set up orig_regno.
5733 (move_invariants): Set up reg classes for pseudos for
5734 flag_ira_loop_pressure.
5735 (free_loop_data): Clear regs_ref and regs_live.
5736 (curr_regs_live, curr_reg_pressure, regs_set, n_regs_set,
5737 get_regno_cover_class, change_pressure, mark_regno_live,
5738 mark_regno_death, mark_reg_store, mark_reg_clobber,
5739 mark_reg_death, mark_ref_regs, calculate_loop_reg_pressure): New.
5740 (move_loop_invariants): Calculate pressure. Initialize curr_loop.
5741 * ira.c (ira): Call ira_set_pseudo_classes after IRA based
5742 register pressure calculation in loops if new regs were added.
5743 Call finish_subregs_of_mode.
5744 * opts.c (decode_options): Set up flag_ira_loop_pressure.
5745 * Makefile.in (loop-invariant.o): Add ira.h.
5746 (regmove.o): Ditto.
5747 * doc/invoke.texi (-fira-loop-pressure, ira-loop-reserved-regs):
5748 Describe.
5749 * doc/tm.texi (STACK_REG_COVER_CLASS): Describe.
5750
5751 2009-10-14 Richard Guenther <rguenther@suse.de>
5752
5753 * lto-symtab.c (lto_symtab_compatible): Fold in ...
5754 (lto_symtab_merge): ... here. Rewrite both to take the
5755 prevailing and a to-be-merged entry and to queue diagnostics properly.
5756 (lto_symtab_resolve_replaceable_p): New predicate for
5757 symbol resolution.
5758 (lto_symtab_resolve_can_prevail_p): Likewise.
5759 (lto_symtab_resolve_symbols): Rewrite. Fold in code that
5760 handles merging commons by choosing the largest decl. Fold
5761 in code that gives ODR errors.
5762 (lto_symtab_merge_decls_2): Simplify a lot. Emit queued
5763 diagnostics here.
5764 (lto_symtab_merge_decls_1): Re-structure. Deal with the
5765 case of no prevailing decl here. Diagnose mismatches
5766 in object types here. Drop all but the prevailing decls.
5767 (lto_symtab_prevailing_decl): Return the single prevailing decl.
5768 * lto-streamer-in.c (lto_input_tree_ref): Deal with
5769 VIEW_CONVERT_EXPRs in decl slots. Unshare the tree in this case.
5770
5771 2009-10-14 Richard Guenther <rguenther@suse.de>
5772
5773 PR lto/41521
5774 * lto-streamer-in.c (input_bb): Replace debug stmts with
5775 nops instead of dropping them.
5776
5777 2009-10-14 Nick Clifton <nickc@redhat.com>
5778
5779 * gcc/doc/extended.texi: Replace the dash character with @minus{}
5780 in situations where it is being used as a minus symbol.
5781 * gcc/doc/tm.texi: Likewise.
5782 * gcc/doc/md.texi: Likewise.
5783
5784 2009-10-14 Jakub Jelinek <jakub@redhat.com>
5785
5786 PR preprocessor/41543
5787 * input.h (BUILTINS_LOCATION): Change to 1 from 2.
5788 Assert BUILTINS_LOCATION < RESERVED_LOCATION_COUNT.
5789 * tree.c: Include intl.h.
5790 (expand_location): Handle BUILTINS_LOCATION.
5791 * Makefile.in (tree.o): Depend on intl.h.
5792
5793 PR debug/41695
5794 * dwarf2out.c (dwarf2out_var_location): Always clear
5795 last_postcall_label when changing last_label.
5796
5797 2009-10-14 Pascal Obry <obry@adacore.com>
5798
5799 * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION): Add -E.
5800 (process_command): Handle -E as done with -c and -S. Do not add
5801 the target executable suffix to the output file when -E is used.
5802 (main): Adjust error message accordingly.
5803
5804 2009-10-14 Alexandre Oliva <aoliva@redhat.com>
5805
5806 PR debug/41343
5807 PR debug/41447
5808 PR debug/41264
5809 PR debug/41338
5810 * tree.c (tree_node_structure_for_code): DEBUG_EXPR_DECL uses
5811 decl with rtl.
5812 (tree_code_size): Likewise.
5813
5814 2009-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5815
5816 * builtins.c (fold_builtin_1): Support complex "arc" functions.
5817 * real.h (HAVE_mpc_arc): Define.
5818
5819 2009-10-14 Kaz Kojima <kkojima@gcc.gnu.org>
5820
5821 * config/sh/sh.c (TARGET_BUILTIN_DECL): Define.
5822 (struct builtin_description): Add fndecl field.
5823 (bdesc): Remove const qualifier. Update initializer.
5824 (sh_media_init_builtins): Remove const qualifier for d. Record
5825 the result of add_builtin_function to the fndecl field.
5826 (sh_builtin_decl): New.
5827 (sh_media_builtin_decl): New.
5828
5829 2009-10-14 Hans-Peter Nilsson <hp@axis.com>
5830
5831 PR target/38948
5832 * config/cris/cris.h (SECONDARY_RELOAD_CLASS): Handle reload
5833 requests between special registers.
5834
5835 2009-10-13 Eric Botcazou <ebotcazou@adacore.com>
5836
5837 * dwarf2out.c (mem_loc_descriptor): Accept UNGT as well.
5838
5839 2009-10-13 Richard Henderson <rth@redhat.com>
5840
5841 PR tree-optimization/41377
5842 * tree-eh.c (unsplit_eh): Propagate degenerate PHIs.
5843 (cleanup_empty_eh_merge_phis): New change_region parameter;
5844 pass it on to redirect_eh_edge_1. Update callers.
5845 (cleanup_empty_eh_unsplit): Don't require an existing EH label
5846 at the destination block.
5847
5848 2009-10-13 Basile Starynkevitch <basile@starynkevitch.net>
5849
5850 * passes.c (register_pass): Replaced gcc_unreachable by
5851 fatal_error on failure. Mentions plugins in comments & messages.
5852
5853 2009-10-13 Jakub Jelinek <jakub@redhat.com>
5854
5855 PR target/41693
5856 * rtl.h (DEBUG_EXPR_TREE_DECL): Define.
5857 * sched-vis.c (print_value): Use it.
5858 * cselib.c (cselib_hash_rtx): Likewise.
5859 * print-rtl.c (print_rtx): Likewise.
5860 * cfgexpand.c (expand_debug_rtx): Likewise.
5861 * var-tracking.c (vt_expand_loc_callback): Likewise.
5862
5863 2009-10-13 Richard Guenther <rguenther@suse.de>
5864
5865 PR lto/41565
5866 * opts.c (handle_option): Split out code to handle setting
5867 the options flag var ...
5868 (set_option): ... here.
5869 * opts.h (set_option): Declare.
5870 * lto-opts.c (register_user_option_p): Include -fexceptions
5871 and all position independent code variants.
5872 (handle_common_option): Remove.
5873 (lto_reissue_options): Use set_option.
5874
5875 2009-10-13 Martin Jambor <mjambor@suse.cz>
5876
5877 PR tree-optimization/41661
5878 * ipa-prop.c (compute_complex_pass_through): Allow only operations
5879 that are tcc_comparisons or do not change the type in any
5880 un-usleless way.
5881 * ipa-cp.c (ipcp_lattice_from_jfunc): Request boolean type when
5882 folding tcc_comparison operations.
5883
5884 2009-10-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5885
5886 * config/s390/s390.c (s390_encode_section_info): Handle BLKmode
5887 properly.
5888
5889 2009-10-12 Alexandre Oliva <aoliva@redhat.com>
5890
5891 PR debug/41343
5892 PR debug/41447
5893 PR debug/41264
5894 PR debug/41338
5895 * tree.def (DEBUG_EXPR_DECL): New.
5896 * rtl.def (DEBUG_EXPR): New.
5897 * gengtype.c (adjust_field_rtx_def): Handle it.
5898 * tree-ssa.c (propagate_var_def_into_debug_stmts): Rename to...
5899 (insert_debug_temp_for_var_def): ... this. Drop support for
5900 moving. Take iterator for def stmt; insert debug stmt before it.
5901 Scan early for use count and kind in debug stmts.
5902 (propagate_defs_into_debug_stmts): Rename to...
5903 (insert_debug_temps_for_defs): ... this. Likewise.
5904 * tree.h (DEBUG_TEMP_UID): New.
5905 * tree.c (next_debug_decl_uid): New.
5906 (make_node_stat): Count debug decls separately.
5907 (copy_node_stat): Likewise.
5908 * cfgexpand.c (expand_debug_expr): Handle DEBUG_EXPR_DECL.
5909 * var-tracking.c (dv_is_decl_p): Recognize it.
5910 (VALUE_RECURSED_INTO): Apply to DEBUG_EXPRs too.
5911 (track_expr_p): Track expanded DEBUG_EXPR_DECLs.
5912 (vt_expand_loc_callback): Expand DEBUG_EXPRs.
5913 (emit_note_insn_var_location): Don't emit notes for DEBUG_EXPR_DECLs.
5914 * cselib.c (rtx_equal_for_cselib_p): Handle DEBUG_EXPR.
5915 (cselib_hash_rtx): Likewise.
5916 (cselib_expand_value_rtx_1): Use callback for DEBUG_EXPR.
5917 * tree-ssa-operands.c (get_expr_operands): Skip DEBUG_EXPR_DECLs in
5918 debug bind stmts.
5919 * emit-rtl.c (verify_rtx_sharing): Handle DEBUG_EXPR and VALUE.
5920 (copy_rtx_if_shared_1, reset_used_flags, set_used_flags): Likewise.
5921 * rtl.c (copy_rtx): Likewise.
5922 (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_EXPR.
5923 * print-rtl.c (print_rtx): Likewise.
5924 * sched-vis.c (print_value): Likewise.
5925 (print_insn): Handle DEBUG_EXPR_DECL.
5926 * tree-dump.c (dequeue_and_dump): Likewise.
5927 * tree-pretty-print.c (dump_decl_name, dump_generic_node): Likewise.
5928 * gimple-iterator (gsi_replace): Check for same lhs.
5929 (gsi_remove): Insert debug temps.
5930 * tree-ssa-loop-im.c (rewrite_reciprocal): Replace with same lhs.
5931 (move_computations_stmt): Drop explicit propagation into debug stmts.
5932 (rewrite_bittest): Likewise. Use gsi_remove for propagation.
5933 * tree-ssa-reassoc.c (rewrite_expr_tree, linearize_expr): Likewise.
5934 * tree-ssa-sink.c (statement_sink_location): Likewise.
5935 * tree-ssa-forwprop (forward_propagate_addr_expr): Likewise.
5936 * tree-ssanames.c (release_ssa_name): Adjust for rename.
5937 * tree-flow.h: Likewise.
5938 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Don't mark
5939 debug temps without values.
5940 (eliminate_unnecessary_stmts): Don't discard just-inserted
5941 debug stmts.
5942
5943 2009-10-12 Hans-Peter Nilsson <hp@axis.com>
5944
5945 PR target/26515
5946 * config/cris/cris.md (andu): Check that operand 1 is one of the
5947 general registers. Fix typo in head comment.
5948
5949 2009-10-12 Stefan Dösinger <stefan@codeweavers.com>
5950
5951 * config/i386/i386.md (vswapmov): New.
5952 * config/i386/i386.c (ix86_handle_fndecl_attribute): New.
5953 (ix86_function_ms_hook_prologue): New.
5954 (ix86_expand_prologue): Handle ms_hook_prologue attribute.
5955 * configure.ac: Test for swap suffix support in as.
5956 * configure: Rebuild.
5957
5958 2009-10-12 Jakub Jelinek <jakub@redhat.com>
5959
5960 PR target/41680
5961 * config/i386/i386.md (split after *testqi_ext_3_rex64): Only narrow
5962 paradoxical subregs to prevent partial register stalls if the inner
5963 mode is integer mode.
5964
5965 2009-10-12 Uros Bizjak <ubizjak@gmail.com>
5966
5967 * config/i386/i386.md (*setcc_<mode>_2): Remove insn pattern.
5968
5969 2009-10-12 Dodji Seketeli <dodji@redhat.com>
5970
5971 PR c++/41570
5972 * gcc/dwarf2out.c (template_parameter_pack_die,
5973 gen_formal_parameter_pack_die): Use add_name_and_src_coords_attributes.
5974
5975 2009-10-12 Alexandre Oliva <aoliva@redhat.com>
5976
5977 PR debug/41616
5978 * tree-into-ssa.c (insert_phi_nodes_for): Build debug bind stmts
5979 on updates too.
5980 (maybe_register_def): Likewise. Take stmt iterator.
5981 (rewrite_update_stmt): Take stmt iterator and pass it on.
5982 (rewrite_update_enter_block): Pass stmt iterator.
5983
5984 2009-10-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
5985
5986 * config/spu/spu.c (TARGET_BUILTIN_DECL): Define.
5987 (spu_builtin_decl): New function.
5988
5989 2009-10-12 Uros Bizjak <ubizjak@gmail.com>
5990
5991 * config/i386/i386.md (SWIM): New mode iterator.
5992 (mov<mode>cc): Macroize expander from mov{qi,hi,si,di}cc patterns
5993 using SWIM mode iterator.
5994 (x86_mov<mode>cc_0_m1): Macroize insn from x86_mov{si,di}cc_0_m1
5995 patterns using SWI48 mode iterator.
5996 (*x86_mov<mode>cc_0_m1_se): Macroize insn from
5997 *x86_mov{si,di}cc_0_m1_se patterns using SWI48 mode iterator.
5998 (*x86_mov<mode>cc_0_m1_neg): New insn pattern.
5999 (*mov<mode>cc_noc): Macroize insn from *mov{hi,si,di}cc_noc
6000 patterns using SWI248 mode iterator.
6001 * config/i386/i386.c (ix86_expand_int_movcc): Update the call to
6002 gen_x86_movdicc_0_m1_rex64 for renamed function
6003
6004 2009-10-11 Jose Ruiz <ruiz@adacore.com>
6005 Eric Botcazou <ebotcazou@adacore.com>
6006
6007 PR target/33743
6008 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Define.
6009 * config/sparc/sol2-unwind.h: New file.
6010
6011 2009-10-11 Olivier Hainque <hainque@adacore.com>
6012 Eric Botcazou <ebotcazou@adacore.com>
6013
6014 PR target/33743
6015 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Define.
6016 * config/i386/sol2-unwind.h: New file.
6017
6018 2009-10-11 H.J. Lu <hongjiu.lu@intel.com>
6019
6020 PR target/41665
6021 * config/i386/i386.md (addsi_1_zext): Get the proper second
6022 operand for lea.
6023
6024 2009-10-11 Richard Sandiford <rdsandiford@googlemail.com>
6025
6026 * simplify-rtx.c (simplify_replace_rtx): Use rtx_equal_p for
6027 all OLD_RTXes, not just REGs. Use copy_rtx to create the
6028 replacement value.
6029
6030 2009-10-11 Richard Guenther <rguenther@suse.de>
6031
6032 * gimple.c (iterative_hash_type_name): Do not handle special
6033 anonymous names.
6034
6035 2009-10-11 Uros Bizjak <ubizjak@gmail.com>
6036
6037 * config/i386/i386.md (*setcc_di_1): New insn_and_split pattern.
6038 (*setcc_si_1_and): Ditto.
6039 (*setcc_si_1_movzbl): Ditto.
6040 (*setcc_<mode>_2): Ditto.
6041 (*setcc_qi): Rename from *setcc_1.
6042 (*setcc_qi_slp): Rename from *setcc_2.
6043
6044 (*zero_extendqihi2_movzbw_and splitter): Use ix86_expand_clear.
6045 (*zero_extendqisi2_movzbw_and splitter): Ditto.
6046
6047 * config/i386/i386.c (ix86_expand_clear): Remove reload_completed from
6048 "if" condition, there is already assert with reload_completed present.
6049
6050 2009-10-11 Gerald Pfeifer <gerald@pfeifer.com>
6051
6052 * plugin.c (try_init_one_plugin): Improve constness of variable err.
6053
6054 2009-10-10 Gerald Pfeifer <gerald@pfeifer.com>
6055
6056 * doc/install.texi (Final install): Refer to
6057 http://gcc.gnu.org/bugs/ for bug reporting.
6058
6059 2009-10-10 Peter Bergner <bergner@vnet.ibm.com>
6060
6061 * configure.ac: Add test for dci instruction.
6062 * configure: Regenerate.
6063 * config.in: Likewise.
6064 * config.gcc: Handle --with-cpu=476 and --with-cpu=476fp.
6065 * doc/invoke.texi: Add cpu_type 476 and 476fp.
6066 (-mmulhw): Add 476 to description.
6067 (-mdlmzb): Likewise.
6068 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=476.
6069 * config/rs6000/rs6000.c (processor_costs): Add ppc476_cost.
6070 (processor_target_table): Add 476 and 476fp entries.
6071 (rs6000_override_options): Use ppc476_cost for PROCESSOR_PPC476.
6072 (rs6000_issue_rate): Add CPU_PPC476.
6073 * config/rs6000/rs6000.h (ASM_CPU_476_SPEC): Define.
6074 (ASM_CPU_SPEC): Pass %(asm_cpu_476) for -mcpu=476 and -mcpu=476fp.
6075 (processor_type): Add PROCESSOR_PPC476.
6076 (EXTRA_SPECS): Add asm_cpu_476 string.
6077 * config/rs6000/rs6000.md (define_attr "type"): Add isel attribute.
6078 (define_attr "cpu"): Add ppc476.
6079 Include 476.md.
6080 Update comments for 476.
6081 (isel_signed, isel_unsigned): Change to use "isel" type attribute.
6082 * config/rs6000/vxworks.h (CPP_SPEC): Handle 464 and 476.
6083 Update copyright year.
6084 * config/rs6000/476.md: New file.
6085 * config/rs6000/40x.md: Add description for "isel" attribute.
6086 Update copyright year.
6087 * config/rs6000/440.md: Likewise.
6088 * config/rs6000/603.md: Likewise.
6089 * config/rs6000/6xx.md: Likewise.
6090 * config/rs6000/7450.md: Likewise.
6091 * config/rs6000/7xx.md: Likewise.
6092 * config/rs6000/8540.md: Likewise.
6093 * config/rs6000/cell.md: Likewise.
6094 * config/rs6000/e300c2c3.md: Likewise.
6095 * config/rs6000/e500mc.md: Likewise.
6096 * config/rs6000/mpc.md: Likewise.
6097 * config/rs6000/power4.md: Likewise.
6098 * config/rs6000/power5.md: Likewise.
6099 * config/rs6000/power6.md: Likewise.
6100 * config/rs6000/power7.md: Likewise.
6101 * config/rs6000/rios1.md: Likewise.
6102 * config/rs6000/rios2.md: Likewise.
6103 * config/rs6000/rs64.md: Likewise.
6104
6105 2009-10-10 Richard Guenther <rguenther@suse.de>
6106
6107 PR tree-optimization/41654
6108 * tree-ssa-ifcombine.c (ifcombine_ifandif): Properly canonicalize
6109 a cond expr before calling gimple_cond_set_condition_from_tree.
6110 (ifcombine_iforif): Likewise.
6111
6112 2009-10-09 Ian Lance Taylor <iant@google.com>
6113
6114 * configure.ac: Use AC_SEARCH_LIBS to find dlopen.
6115 * configure: Rebuild.
6116
6117 2009-10-09 Neil Vachharajani <nvachhar@google.com>
6118
6119 * doc/cpp.texi (Other Directives): Do not list #ident and #sccs as
6120 deprecated.
6121
6122 2009-10-09 Richard Guenther <rguenther@suse.de>
6123
6124 PR lto/41638
6125 * target-def.h (TARGET_BUILTIN_DECL): Define.
6126 (TARGET_INITIALIZER): Add TARGET_BUILTIN_DECL.
6127 * target.h (struct gcc_target): Add builtin_decl target hook.
6128 * doc/tm.texi (TARGET_BUILTIN_DECL): Document.
6129 * lto-streamer-in.c (lto_get_builtin_tree): Fix handling of
6130 target builtins.
6131 * lto-streamer-out.c (lto_output_tree_pointers): Use sorry,
6132 not gcc_unreachable.
6133 (lto_output_builtin_tree): Sorry if the target does not support
6134 streaming target builtins.
6135 * config/rs6000/rs6000.c (TARGET_BUILTIN_DECL): Define.
6136 (rs6000_builtin_decl): New function.
6137 * config/i386/i386.c (TARGET_BUILTIN_DECL): Define.
6138 (ix86_builtin_decl): New function.
6139
6140 2009-10-09 Jakub Jelinek <jakub@redhat.com>
6141
6142 PR preprocessor/41445
6143 * c-ppoutput.c (do_line_change): New function.
6144 (cb_line_change): Use it.
6145 (scan_translation_unit): Call do_line_change if
6146 avoid_paste or PREV_WHITE and token location is on a different line
6147 than print.src_line.
6148
6149 PR debug/40521
6150 * dwarf2out.c (dwarf2out_init): Test whether
6151 HAVE_GAS_CFI_SECTIONS_DIRECTIVE is non-zero instead of checking
6152 it is defined.
6153
6154 PR rtl-optimization/41646
6155 * calls.c (expand_call): For BLKmode types returned in registers
6156 avoid likely spilled hard regs in copy_blkmode_from_reg generated
6157 insns.
6158
6159 2009-10-09 Richard Guenther <rguenther@suse.de>
6160
6161 PR tree-optimization/41634
6162 * tree-ssa-dom.c (remove_local_expressions_from_table): Assert
6163 we remove the correct elements.
6164 (optimize_stmt): Make sure to update stmt operands before
6165 optimizing redundancies.
6166
6167 2009-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6168
6169 * config/s390/s390.md ("prefetch"): Remove stcmh for prefetching.
6170
6171 2009-10-09 Richard Guenther <rguenther@suse.de>
6172
6173 PR driver/41637
6174 * lto-wrapper.c (ltrans_output_file, flto_out, args_name): New
6175 globals.
6176 (lto_wrapper_exit): New function.
6177 (fatal): Use it.
6178 (fatal_perror): Likewise.
6179 (fork_execute): Use global args_name, do not free it.
6180 (run_gcc): Use global ltrans_output_file, flto_out, do not free them.
6181 * lto-streamer.h: Remove duplicate prototypes.
6182
6183 2009-10-09 Richard Guenther <rguenther@suse.de>
6184
6185 * cgraph.c (cgraph_create_edge): Check for NULL call_stmt
6186 before calling stmt_can_throw_external.
6187
6188 2009-10-09 Eric Botcazou <ebotcazou@adacore.com>
6189
6190 PR tree-optimization/40071
6191 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Build a ref-all
6192 pointer if the original data reference doesn't conflict with the
6193 created vector data reference. Fix long line.
6194
6195 2009-10-09 Uros Bizjak <ubizjak@gmail.com>
6196
6197 * config/i386/i386.md (any_div): New code iterator.
6198 (u): Handle div and udiv.
6199 (sgnprefix): Ditto.
6200 (<u>divqi3): Macroize insn from {,u}divqi3 using any_div
6201 code iterator.
6202 (lfloor<MODEF:mode><SWI48:mode>2): Macroize insn from
6203 lfloor<mode>{si,di}2 patterns using SWI48 mode iterator.
6204 (lceil<MODEF:mode><SWI48:mode>2): Macroize insn from
6205 lceil<mode>{si,di}2 patterns using SWI48 mode iterator.
6206
6207 2009-10-08 Joseph Myers <joseph@codesourcery.com>
6208
6209 * gcc.c (main): Remove trailing "." from diagnostics.
6210
6211 2009-10-08 Cary Coutant <ccoutant@google.com>
6212
6213 Add support for debugging with ICF (Identical Code Folding).
6214 * calls.c (debug.h): New #include.
6215 (emit_call_1): Call virtual_call_token debug hook.
6216 * common.opt (-fenable-icf-debug): New option.
6217 * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hooks (two
6218 locations in the source).
6219 (poc_label_num): New variable.
6220 (dcall_entry, vcall_entry): New typedefs.
6221 (dcall_table, vcall_table): New variables.
6222 (struct vcall_insn): New type.
6223 (vcall_insn_table): New variable.
6224 (DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION): New macros.
6225 (size_of_dcall_table): New function.
6226 (output_dcall_table): New function.
6227 (size_of_vcall_table): New function.
6228 (output_vcall_table): New function.
6229 (dwarf2out_direct_call): New function.
6230 (vcall_insn_table_hash): New function.
6231 (vcall_insn_table_eq): New function.
6232 (dwarf2out_virtual_call_token): New function.
6233 (dwarf2out_virtual_call): New function.
6234 (dwarf2out_init): Allocate new tables and sections.
6235 (prune_unused_types): Mark DIEs referenced from direct call table.
6236 (dwarf2out_finish): Output direct and virtual call tables.
6237 * final.c (final_scan_insn): Call direct_call and virtual_call
6238 debug hooks.
6239 * debug.h (struct gcc_debug_hooks): Add direct_call,
6240 virtual_call_token, virtual_call hooks.
6241 (debug_nothing_uid): New function.
6242 * debug.c (do_nothing_debug_hooks): Add dummy entries for new hooks.
6243 (debug_nothing_uid): New function.
6244 * dbxout.c (dbx_debug_hooks): Add dummy entries for new hooks.
6245 (xcoff_debug_hooks): Likewise.
6246 * sdbout.c (sdb_debug_hooks): Likewise.
6247 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
6248 * doc/invoke.texi (-fenable-icf-debug): New option.
6249
6250 2009-10-08 Alexandre Oliva <aoliva@redhat.com>
6251
6252 PR debug/41353
6253 * regmove.c (regmove_backward_pass): Replace src with dst in the
6254 debug insn, and check for dst before rather than after.
6255
6256 2009-10-08 Janis Johnson <janis187@us.ibm.com>
6257
6258 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove.
6259 (TARGET_DELEGITIMIZE_ADDRESS): Likewise.
6260
6261 2009-10-08 Jan Hubicka <jh@suse.cz>
6262
6263 PR middle-end/41626
6264 * cgraphbuild.c (record_reference): When parameter DATA is NULL,
6265 do not mark cgraph nodes as needed.
6266 (record_references_in_initializer): Add new only_vars parameter.
6267 * cgraph.h (record_references_in_initializer): New parameter.
6268 * varasm.c (assemble_variable): Update call.
6269 * varpool.c (varpool_analyze_pending_decls): Always look for
6270 referenced vars.
6271
6272 2009-10-08 Anatoly Sokolov <aesok@post.ru>
6273
6274 * config/avr/avr.c (last_insn_address) Remove variable.
6275 (expand_prologue): Don't initialise last_insn_address variable.
6276 (final_prescan_insn): Don't output insn size.
6277 * config/avr/avr.opt (msize): Remove switch.
6278 * doc/invoke.texi (AVR Options): Remove documentation of -msize
6279 switch.
6280
6281 2009-10-08 Adam Nemet <anemet@caviumnetworks.com>
6282
6283 * combine.c (label_tick_ebb_start): Fix comment.
6284 (combine_instructions): Set label_tick and label_tick_ebb_start before
6285 calling setup_incoming_promotions. Start them from 1. Increment
6286 label_tick instead of deriving it from the BB index. Rather than
6287 comparing ticks use the block from the previous iteration to decide
6288 whether to start a new EBB. Remove empty lines before function.
6289
6290 2009-10-08 Michael Matz <matz@suse.de>
6291
6292 PR middle-end/41573
6293 * builtins.c (fold_builtin_isascii): Use fold_build2.
6294 (fold_builtin_isdigit): Ditto.
6295 * except.c (duplicate_eh_regions_1): Tolerate NULL labels.
6296 * tree-cfg.c (struct rus_data, remove_useless_stmts_warn_notreached,
6297 remove_useless_stmts_cond, remove_useless_stmts_tf,
6298 remove_useless_stmts_tc, remove_useless_stmts_bind,
6299 remove_useless_stmts_goto, remove_useless_stmts_label,
6300 remove_useless_stmts_1, remove_useless_stmts,
6301 pass_remove_useless_stmts): Remove.
6302 * tree-pass.h (pass_remove_useless_stmts): Don't declare.
6303 * passes.c (init_optimization_passes): Don't add
6304 pass_remove_useless_stmts.
6305 * tree-eh.c (lower_eh_constructs_2): Handle empty cleanups.
6306 * tree.c (free_lang_data_in_decl): Don't clear DECL_INITIAL of
6307 static constants.
6308 * lto-symtab.c (lto_symtab_register_decl): Accepts DECL_INITIAL
6309 for static constants.
6310 * lto-streamer-out.c (output_gimple_stmt): Handle GIMPLE_NOP.
6311 * lto-streamer-in.c (input_gimple_stmt): Handle GIMPLE_NOP.
6312
6313 2009-10-08 Richard Guenther <rguenther@suse.de>
6314
6315 * gimple.c (free_gimple_type_tables): New function.
6316 * gimple.h (free_gimple_type_tables): Declare.
6317
6318 2009-10-07 Mark Heffernan <meheff@google.com>
6319
6320 * ipa-prop.c (ipa_print_node_params) Only print
6321 names of named arguments.
6322
6323 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
6324
6325 * gcc.c (LINK_COMMAND_SPEC): Pass libc with -pass-through if it is
6326 being statically linked.
6327
6328 2009-10-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6329
6330 * collect2.c (add_lto_object): Only define if OBJECT_FORMAT_NONE.
6331
6332 2009-10-08 Jan Hubicka <jh@suse.cz>
6333
6334 PR bootstrap/41620
6335 * ipa.c (cgraph_externally_visible_p,
6336 function_and_variable_visibility,
6337 whole_program_function_and_variable_visibility): Skip non-finalized
6338 nodes.
6339
6340 2009-10-08 Nick Clifton <nickc@redhat.com>
6341
6342 * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Do not allow
6343 CONST_DOUBLEs.
6344
6345 2009-10-08 Andreas Tobler <a.tobler@schweiz.org>
6346
6347 PR bootstrap/37739
6348 * config.host: Use config/x-cflags-O1 for powerpc FreeBSD.
6349
6350 2009-10-07 Joseph Myers <joseph@codesourcery.com>
6351
6352 PR c/41182
6353 * c-common.c (c_fully_fold_internal): Strip nops from the result
6354 of recursive calls to c_fully_fold_internal.
6355 (c_wrap_maybe_const): New.
6356 (c_save_expr): Use c_wrap_maybe_const.
6357 * c-common.h (c_wrap_maybe_const): Declare.
6358 * c-typeck.c (build_conditional_expr, c_finish_stmt_expr,
6359 build_binary_op): Use c_wrap_maybe_const.
6360
6361 2009-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6362
6363 * real.c: Fix comment to reflect actual exponent size.
6364
6365 2009-10-08 Ben Elliston <bje@au.ibm.com>
6366
6367 * config/rs6000/a2.md: Add FSF comment header.
6368
6369 2009-10-07 Uros Bizjak <ubizjak@gmail.com>
6370
6371 * config/i386/i386.md (any_extend): New code iterator.
6372 (u, s): New code attributes.
6373 (sgnprefix): Ditto.
6374 (DWIH): Rewrite as code iterator for SI and DI modes.
6375 (DWI): Rewrite as mode attribute.
6376 (dwi): New mode attribute.
6377 (di): Depend on SI mode and DI mode.
6378 (doubleint_general_operand): Remove mode attribute.
6379
6380 (*lea_1): Macroize insn from *lea_1_rex64 and *lea_1 patterns using
6381 DWIH mode iterator.
6382
6383 (*add<mode>3_doubleword): Use DWIH as the base mode iterator.
6384 (*sub<mode>3_doubleword): Ditto.
6385
6386 (mul<mode>3): Macroize expander from mul{hi,si,di}3 patterns
6387 using SWIM248 mode iterator.
6388 (*mul<mode>3_1): Macroize insn from mul{si,di}3_1 patterns
6389 using SWI48 mode iterator.
6390 (<u>mul<mode><dwi>3): Macroize expander from {,u}mul{sidi,diti}3
6391 patterns using DWIH mode iterator and any_extend code iterator.
6392 (<u>mulqihi3): Macroize expander from {,u}mulqihi3 patterns
6393 using any_extend code iterator.
6394 (*<u>mul<mode><dwi>3_1): Macroize insn from {,u}mul{sidi,diti}3_1
6395 patterns using DWIH mode iterator and any_extend code iterator.
6396 (*<u>mulqihi3_1): Macroize insn from {,u}mulqihi3_1 patterns
6397 using any_extend code iterator.
6398 (<s>mul<mode>3_highpart): Macroize expander from
6399 {s,u}mul{si,di}3_highpart patterns using DWIH mode iterator
6400 and any_extend code iterator.
6401 (*<s>muldi3_highpart_1): Macroize insn from
6402 *{s,u}muldi3_highpart_rex64 patterns using any_extend code iterator.
6403 (*<s>mulsi3_highpart_1): Macroize insn from *{s,u}mulsi3_highpart_1
6404 patterns using any_extend code iterator.
6405 (*<s>mulsi3_highpart_zext): Macroize insn from
6406 *{s,u}mulsi3_highpart_zext patterns using any_extend code iterator.
6407
6408 2009-10-07 Jakub Jelinek <jakub@redhat.com>
6409
6410 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Don't add
6411 DW_AT_const_value if VAR_DIE already has DW_AT_abstract_origin
6412 refering to a DIE with DW_AT_const_value.
6413
6414 2009-10-07 Vladimir Makarov <vmakarov@redhat.com>
6415
6416 PR middle-end/22072
6417 * ira-lives.c (check_and_make_def_conflict): Process all operands.
6418
6419 2009-10-06 Jan Hubicka <jh@suse.cz>
6420
6421 * cgraph.c (cgraph_node_can_be_local): Handle externally visible nodes
6422 correctly.
6423
6424 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
6425
6426 * config/i386/i386.md (*lea_1_rex64, *lea_1, *lea_1_zext,
6427 *lea_2_rex64): Move before *add<mode>_1 pattern.
6428
6429 2009-10-07 Jan Hubicka <jh@suse.cz>
6430
6431 * collect2.c (main): Add -fno-whole-program.
6432 * gcc.c (set_collect_gcc_options): Do not remove whole program here.
6433
6434 2009-10-07 Jan Hubicka <jh@suse.cz>
6435
6436 * lto-symtab.c (lto_cgraph_replace_node): Assert that inline clones
6437 has no address taken.
6438 * cgraph.c (cgraph_mark_needed_node): Assert that inline clones are
6439 never needed.
6440 (cgraph_clone_node): Clear externally_visible flag for clones.
6441 * cgraph.h (cgraph_only_called_directly_p,
6442 cgraph_can_remove_if_no_direct_calls_p): New predicates.
6443 * tree-pass.h (pass_ipa_whole_program_visibility): Declare.
6444 * ipa-cp.c (ipcp_cloning_candidate_p): Use new predicate.
6445 (ipcp_initialize_node_lattices, ipcp_estimate_growth,
6446 ipcp_insert_stage): Likwise.
6447 * cgraphunit.c (cgraph_decide_is_function_needed): Do not compute
6448 externally_visible flag.
6449 (verify_cgraph_node): Verify that inline clones look right.
6450 (process_function_and_variable_attributes): Do not set
6451 externally_visible flags.
6452 (ipa_passes): Avoid executing small_ipa_passes at LTO stage; they've
6453 been already run.
6454 * lto-cgraph.c (lto_output_node): Assert that inline clones are not
6455 boundaries.
6456 * ipa-inline.c (cgraph_clone_inlined_nodes): Use new predicates;
6457 clear externally_visible when turning into inline clones
6458 (cgraph_mark_inline_edge): Use new predicates.
6459 (cgraph_estimate_growth): Likewise.
6460 (cgraph_decide_inlining): Likewise.
6461 * ipa.c (cgraph_postorder): Likewise.
6462 (cgraph_remove_unreachable_nodes): Likewise; sanity check
6463 that inline clones are not needed.
6464 (cgraph_externally_visible_p): New predicate.
6465 (function_and_variable_visibility): Add whole_program parameter;
6466 always set externally_visible flag; handle COMDAT function
6467 privatization.
6468 (local_function_and_variable_visibility): New function.
6469 (gate_whole_program_function_and_variable_visibility): New function.
6470 (whole_program_function_and_variable_visibility): New function.
6471 (pass_ipa_whole_program_visibility): New function.
6472 * passes.c (init_optimization_passes): Add whole program visibility
6473 pass.
6474 (do_per_function_toporder, function_called_by_processed_nodes_p): Do
6475 not care about needed/reachable flags.
6476 * varpool.c: Include flags.h
6477 (decide_is_variable_needed): When doing LTO assume whole-program mode.
6478 (varpool_finalize_decl): When we are in LTO read-back, all variables
6479 are analyzed.
6480 (varpool_analyze_pending_decls): Skip analyzis of analyzed vars.
6481
6482 2009-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6483
6484 * config/s390/tpf.h (TARGET_DEFAULT): Remove MASK_HARD_FLOAT and
6485 add MASK_HARD_DFP.
6486
6487 2009-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6488
6489 * config.gcc: Don't include the makefile fragments intended for
6490 libgcc.
6491 * config/s390/fixdfdi.h: File removed.
6492 * config/s390/libgcc-glibc.ver: File removed.
6493 * config/s390/s390.h: Remove the fixdfdi.h hack.
6494 * config/s390/t-crtstuff: File moved to libgcc dir.
6495 * config/s390/t-linux: Likewise.
6496 * config/s390/t-tpf: libgcc specific parts removed.
6497 * config/s390/t-linux64: Likewise.
6498
6499 2009-10-06 Jerry Quinn <jlquinn@optonline.net>
6500
6501 * Makefile.in (lto-wrapper): Use COMPILER and ALL_COMPILERFLAGS.
6502 (lto-compress.o): Likewise.
6503
6504 2009-10-07 Danny Smith <dannysmith@users.sourceforge.net>
6505
6506 PR target/41512
6507 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't propagate
6508 dllexport to class members here.
6509 (i386_pe_determine_dllimport_p): Only check static class data for
6510 definition.
6511 (i386_pe_encode_section_info): Don't recheck DECL_DLLIMPORT_P.
6512 * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Only check
6513 functions for vague linkage.
6514 (i386_pe_type_dllexport_p): Fix formatting.
6515 (maybe_add_dllexport) New function.
6516 (i386_pe_adjust_class_at_definition): Use it to propagate dllexport
6517 to class members.
6518
6519 2009-10-07 Ben Elliston <bje@au.ibm.com>
6520
6521 * config/rs6000/a2.md: Remove duplicated lines.
6522
6523 2009-10-07 Ben Elliston <bje@au.ibm.com>
6524
6525 * config.gcc (powerpc*-*-*): Handle a2.
6526 * config/rs6000/rs6000.md (cpu): Add ppca2. Include "a2.md".
6527 * config/rs6000/a2.md: New file.
6528 * config/rs6000/rs6000.opt (mno-update): New.
6529 (mupdate): Return to using a mask, not a var.
6530 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for a2.
6531 (enum processor_type): Add PROCESSOR_PPCA2.
6532 * config/rs6000/rs6000.c (ppca2_cost): New costs.
6533 (rs6000_override_options): Add "a2" to processor_target_table.
6534 Update rs6000_always_hint logic. Correctly set rs6000_cost for a2.
6535 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=a2.
6536
6537 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
6538
6539 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
6540 Use explicit gen_truncxfsf2 and gen_truncxfdf2 references to avoid
6541 reference to nonexistent gen_truncxfxf2 function.
6542
6543 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
6544
6545 * config/i386/i386.md (SWI48, SDWIM, DWI): New mode iterators.
6546 (DWIH, g, di, doubleint_general_operand): New mode attributes.
6547 (general_operand): Handle TI mode.
6548 (add<mode>3): Macroize expander from add{qi,hi,si,di,ti}3 patterns
6549 using SDWIM mode iterator.
6550 (*add<mode>3_doubleword): New insn_and_split pattern. Macroize
6551 pattern from *add{di,ti}3_1 patterns and corresponding splitters
6552 using DWI mode iterator.
6553 (add<mode>3_carry): Macroize insn from add{qi,hi,si,di}3_carry
6554 patterns using SWI mode iterator.
6555 (*add<mode>3_cc): Macroize insn from add{si,di}3_cc patterns
6556 using SWI48 mode iterator.
6557 (*add<mode>_1): Ditto from add{si,di}_1 patterns.
6558 (*add<mode>_2): Ditto from add{si,di}_2 patterns.
6559 (*add<mode>_3): Ditto from add{si,di}_3 patterns.
6560 (*add<mode>_5): Ditto from add{si,di}_5 patterns.
6561 (sub<mode>3): Macroize expander from sub{qi,hi,si,di,ti}3 patterns
6562 using SDWIM mode iterator.
6563 (*sub<mode>3_doubleword): New insn_and_split pattern. Macroize
6564 pattern from *sub{di,ti}3_1 patterns and corresponding splitters
6565 using DWI mode iterator.
6566 (sub<mode>3_carry): Macroize insn from sub{qi,hi,si,di}3_carry
6567 patterns using SWI mode iterator.
6568 (*sub<mode>_1): Ditto from from sub{qi,hi,si,di}_1 patterns.
6569 (*sub<mode>_2): Ditto from sub{qi,hi,si,di}_2 patterns.
6570 (*sub<mode>_3): Ditto from sub{qi,hi,si,di}_3 patterns.
6571 (<plusminus_insn>xf3): Macroize expander from addxf3 and subxf3
6572 patterns using plusminus code iterator.
6573 (<plusminus_insn><mode>3): Macroize expander from add<mode>3 and
6574 sub<mode>3 patterns using plusminus code iterator.
6575 * config/i386/i386.c (override_options): Update the call to
6576 gen_subdi_carry_rex64 for renamed function.
6577 (ix86_expand_int_addcc): Update calls to gen_subdi3_carry_rex64
6578 and gen_adddi3_carry_rex64 for renamed functions. Use indirect
6579 calls to instruction expanders.
6580
6581 2009-10-06 Martin Jambor <mjambor@suse.cz>
6582
6583 PR bootstrap/41395
6584 * opts.c (decode_options): Run IPA-SRA at -O2.
6585
6586 2009-10-06 Richard Guenther <rguenther@suse.de>
6587
6588 * lto-symtab.c (lto_symtab_entry_hash): Hash strings, not pointers.
6589
6590 2009-10-06 Tobias Burnus <burnus@net-b.de>
6591
6592 PR lto/41591
6593 * doc/invoke.texi (-flto,-fwhole-program): Make clear that the
6594 -flto and -fwhole-program flags can be combined.
6595
6596 2009-10-06 Ryan Mansfield <rmansfield@qnx.com>
6597
6598 PR driver/41217
6599 * gcc.c (process_command): Check that -o argument was specified.
6600
6601 2009-10-06 Jerry Quinn <jlquinn@optonline.net>
6602
6603 * gimple.c (gimple_type_hash): Use CONST_CAST_TREE to fix compilation.
6604
6605 2009-10-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6606
6607 * c.opt (Wjump-misses-init): Fix typo to enable for ObjC.
6608 * doc/invoke.texi (Warning Options): Annotate allowed languages
6609 for -Wunsuffixed-float-constants.
6610
6611 2009-10-05 Jakub Jelinek <jakub@redhat.com>
6612
6613 * dwarf2out.c (modified_type_die): Don't add DW_AT_name to
6614 DW_TAG_{const,volatile}_type if its DW_AT_type already has the
6615 same name and isn't the main variant.
6616
6617 PR debug/41558
6618 * dwarf2out.c (loc_by_reference): Removed.
6619 (dw_loc_list_1): New function.
6620 (dw_loc_list): Remove toplev argument, add want_address argument.
6621 Don't look at decl_by_reference_p at all. Use dw_loc_list_1.
6622 (loc_list_from_tree) <case VAR_DECL>: Pass want_address rather than
6623 want_address == 2 to dw_loc_list. For successful dw_loc_list
6624 set have_address to 1 only if want_address is not 0.
6625
6626 2009-10-05 Richard Sandiford <rdsandiford@googlemail.com>
6627
6628 * config/mips/mips-protos.h (mips_trampoline_code_size): Declare.
6629 * config/mips/mips.h (TRAMPOLINE_SIZE): Redefine as the size of
6630 a code block followed by two pointers.
6631 (TRAMPOLINE_ALIGNMENT): Define to 64 for 32-bit targets too.
6632 * config/mips/mips.c (MIPS_LOAD_PTR): New macro.
6633 (MIPS_MOVE): Likewise.
6634 (MIPS_LUI): Likewise.
6635 (MIPS_JR): Likewise.
6636 (MIPS_BAL): Likewise.
6637 (MIPS_NOP): Likewise.
6638 (mips_asm_trampoline_template): Delete.
6639 (mips_trampoline_code_size): New function.
6640 (mips_trampoline_init): Add shorter sequences for all cases
6641 except Pmode == DImoe && !TARGET_USE_PIC_FN_ADDR_REG.
6642 Calculate the opcodes directly, rather than copying from a template.
6643 Only flush the code part of the trampoline.
6644 (TARGET_ASM_TRAMPOLINE_TEMPLATE): Delete.
6645
6646 2009-10-05 Richard Sandiford <rdsandiford@googlemail.com>
6647
6648 * config/mips/mips.h (DWARF_FRAME_RETURN_COLUMN): Replace
6649 GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM.
6650 (INCOMING_RETURN_ADDR_RTX): Likewise.
6651 (FUNCTION_PROFILER): Likewise. Replace GP_REG_FIRST + 1
6652 with AT_REGNUM.
6653 * config/mips/sdemtk.h (FUNCTION_PROFILER): Replace GP_REG_FIRST + 31
6654 with RETURN_ADDR_REGNUM.
6655 (MIPS_SAVE_REG_FOR_PROFILING_P): Likewise.
6656 * config/mips/mips.c (mips16_build_call_stub): Replace
6657 GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM, GP_REG_FIRST + 1
6658 with AT_REGNUM and 31 with RETURN_ADDR_REGNUM.
6659 (mips_print_operand_punctuation): Likewise.
6660 (mips_frame_set): Likewise.
6661 (mips16e_output_save_restore): Likewise.
6662 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
6663 (mips_save_reg_p): Likewise.
6664 (mips_return_addr): Likewise.
6665 (mips_set_return_address): Likewise.
6666 (mips_direct_save_slot_move_p): Likewise.
6667 (mips_output_function_prologue): Likewise.
6668 (mips_restore_reg): Likewise.
6669 (mips_expand_epilogue): Likewise.
6670 (mips_epilogue_uses): Likewise.
6671 * config/mips/mips.md (RETURN_ADD_REGNUM): Define.
6672 (*mov<mode>_ra): Use it instead of a hard-coded 31.
6673 (clear_hazard_<mode>): Likewise.
6674 (call_internal): Likewise.
6675 (call_internal_direct): Likewise.
6676 (call_direct_split): Likewise.
6677 (call_value_internal): Likewise.
6678 (call_value_split): Likewise.
6679 (call_value_internal_direct): Likewise.
6680 (call_value_direct_split): Likewise.
6681 (call_value_multiple_internal): Likewise.
6682 (call_value_multiple_split): Likewise.
6683
6684 2009-10-05 Eric Botcazou <ebotcazou@adacore.com>
6685 Jakub Jelinek <jakub@redhat.com>
6686
6687 PR rtl-optimization/41511
6688 * combine.c (record_value_for_reg): Pass explicit values as argument
6689 to get_last_value_validate.
6690 (get_last_value_validate): Document INSN parameter.
6691 For non-readonly MEMs, assume they might have been modified if INSN
6692 was in another basic block.
6693 (get_last_value): Minor reformatting.
6694
6695 2009-10-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
6696
6697 PR tree-opt/40992
6698 * final.c (asm_str_count): Split out from asm_insn_count.
6699 * rtl.h (asm_str_count): New prototype.
6700 * tree-inline (estimate_num_insns) <case GIMPLE_ASM>: Call
6701 asm_str_count.
6702
6703 2009-10-05 Sriraman Tallam <tmsriram@google.com>
6704
6705 * doc/plugins.texi: Change plugin_pass to register_pass_info.
6706
6707 2009-10-05 Basile Starynkevitch <basile@starynkevitch.net>
6708 Rafael Espindola <espindola@google.com>
6709
6710 * gengtype.c (write_types): Moved call to write_func_for_structure
6711 into seperate loops.
6712
6713 2009-10-05 Richard Guenther <rguenther@suse.de>
6714
6715 PR lto/41281
6716 * lto-cgraph.c (output_cgraph): Output toplevel asms.
6717 (input_cgraph_1): Input toplevel asms.
6718
6719 2009-10-05 Richard Guenther <rguenther@suse.de>
6720
6721 PR lto/40902
6722 * lto-symtab.c (lto_compatible_attributes_p): Remove.
6723 (external_aggregate_decl_p): Likewise.
6724 (lto_symtab_compatible): Re-structure. Remove dead code.
6725 For variables ignore toplevel qualifiers when comparing types.
6726 Issue warnings, not errors for mismatched user-alignment.
6727
6728 2009-10-05 Richard Guenther <rguenther@suse.de>
6729
6730 PR lto/41552
6731 PR lto/41487
6732 * lto-symtab.c (struct lto_symtab_base_def): Remove.
6733 (struct lto_symtab_identifier_def): Likewise.
6734 (struct lto_symtab_decl_def): Likewise.
6735 (struct lto_symtab_entry_def): New.
6736 (lto_symtab_identifier_t): Rename to ...
6737 (lto_symtab_entry_t): ... this.
6738 (lto_symtab_decls): Remove.
6739 (lto_symtab_base_hash): Rename to ...
6740 (lto_symtab_entry_hash): ... this.
6741 (lto_symtab_base_eq): Rename to ...
6742 (lto_symtab_entry_eq): ... this.
6743 (lto_symtab_base_marked_p): Rename to ...
6744 (lto_symtab_entry_marked_p): ... this.
6745 (lto_symtab_identifier_marked_p): Remove.
6746 (lto_symtab_decl_marked_p): Likewise.
6747 (lto_symtab_maybe_init_hash_tables): Rename to ...
6748 (lto_symtab_maybe_init_hash_table): ... this.
6749 (lto_symtab_set_resolution_and_file_data): Remove.
6750 (lto_symtab_register_decl): New function.
6751 (lto_symtab_get_identifier): Remove.
6752 (lto_symtab_get): New function.
6753 (lto_symtab_get_resolution): Adjust.
6754 (lto_symtab_get_identifier_decl): Remove.
6755 (lto_symtab_set_identifier_decl): Likewise.
6756 (lto_symtab_merge_decl): Rename to ...
6757 (lto_symtab_merge): ... this. Rewrite.
6758 (lto_symtab_merge_var): Remove.
6759 (lto_symtab_merge_fn): Likewise.
6760 (lto_symtab_prevailing_decl): Adjust.
6761 (lto_cgraph_replace_node): New function.
6762 (lto_symtab_merge_decls_2): Likewise.
6763 (lto_symtab_merge_decls_1): Likewise.
6764 (lto_symtab_fixup_var_decls): Likewise.
6765 (lto_symtab_resolve_symbols): Likewise.
6766 (lto_symtab_merge_decls): Likewise.
6767 (lto_symtab_prevailing_decl): Adjust.
6768 (lto_symtab_get_symtab_def): Remove.
6769 (lto_symtab_get_file_data): Likewise.
6770 (lto_symtab_clear_resolution): Adjust.
6771 (lto_symtab_clear_resolution): Likewise.
6772 * lto-cgraph.c (input_edge): Do not merge cgraph nodes here.
6773 (input_cgraph_1): Likewise.
6774 * lto-streamer-in.c (get_resolution): Do not provide fake
6775 symbol resolutions here.
6776 (deferred_global_decls): Remove.
6777 (lto_register_deferred_decls_in_symtab): Likewise.
6778 (lto_register_var_decl_in_symtab): Change signature, register
6779 variable via lto_symtab_register_decl.
6780 (lto_register_function_decl_in_symtab): Likewise.
6781 (lto_read_tree): Adjust.
6782 * lto-streamer.h (lto_register_deferred_decls_in_symtab): Remove.
6783 (lto_symtab_merge_var): Likewise.
6784 (lto_symtab_merge_fn): Likewise.
6785 (lto_symtab_register_decl): Declare.
6786 (lto_symtab_merge_decls): Likewise.
6787
6788 2009-10-05 Richard Guenther <rguenther@suse.de>
6789
6790 PR tree-optimization/23821
6791 * tree-vrp.c (vrp_finalize): Do not perform copy propagation.
6792 * tree-ssa-dom.c (cprop_operand): Do not propagate copies into
6793 simple IV increments.
6794
6795 2009-10-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6796
6797 * config/arm/arm.c (arm_override_options): Really initialize
6798 flag_dwarf2_cfi_asm to 0.
6799
6800 2009-10-05 Doug Kwan <dougkwan@google.com>
6801
6802 PR rtl-optimization/41574
6803 * combine.c (distribute_and_simplify_rtx): Quit if RTX mode is
6804 floating point and we are not doing unsafe math optimizations.
6805
6806 2009-10-03 Simon Baldwin <simonb@google.com>
6807 Cary Coutant <ccoutant@google.com>
6808 Rafael Espindola <espindola@google.com>
6809 Richard Guenther <rguenther@suse.de>
6810 Jan Hubicka <jh@suse.cz>
6811 Doug Kwan <dougkwan@google.com>
6812 H.J. Lu <hongjiu.lu@intel.com>
6813 Bill Maddox <maddox@google.com>
6814 Ryan Mansfield <rmansfield@qnx.com>
6815 Diego Novillo <dnovillo@google.com>
6816 Ollie Wild <aaw@google.com>
6817 Kenneth Zadeck <zadeck@naturalbridge.com>
6818
6819 * lto-cgraph.c: New file.
6820 * lto-compress.c: New file.
6821 * lto-compress.h: New file.
6822 * lto-opts.c: New file.
6823 * lto-section-in.c: New file.
6824 * lto-section-out.c: New file.
6825 * lto-streamer-in.c: New file.
6826 * lto-streamer-out.c: New file.
6827 * lto-streamer.c: New file.
6828 * lto-streamer.h: New file.
6829 * lto-symtab.c: New file.
6830 * lto-wpa-fixup.c: New file.
6831 * lto-wrapper.c: New file.
6832
6833 2009-10-03 Simon Baldwin <baldwin@google.com>
6834 Ben Elliston <bje@au.ibm.com>
6835 Rafael Espindola <espindola@google.com>
6836 Nathan Froyd <froydnj@codesourcery.com>
6837 Jan Hubicka <jh@suse.cz>
6838 Doug Kwan <dougkwan@google.com>
6839 Diego Novillo <dnovillo@google.com>
6840 Kenneth Zadeck <zadeck@naturalbridge.com>
6841
6842 * Makefile.in (enable_lto): New.
6843 (site.exp): If @enable_lto@ is set to 'yes' define ENABLE_LTO.
6844 (LINKER_PLUGIN_API_H): Define.
6845 (LTO_SYMTAB_H): Define.
6846 (LTO_STREAMER_H): Define.
6847 (TREE_VECTORIZER_H): Define.
6848 (INCLUDES): Add LIBELFINC.
6849 (OBJS-common): Add lto-cgraph.o, lto-streamer-in.o,
6850 lto-streamer-out.o, lto-section-in.o, lto-section-out.o, lto-symtab.o,
6851 lto-opts.o, lto-streamer.o, lto-wpa-fixup.o, lto-compress.o.
6852 (MOSTLYCLEANFILES): Add lto-wrapper$(exeext)
6853 (native): Add lto-wrapper$(exeext)
6854 (lto-compress.o, lto-cgraph.o, lto-streamer-in.o,
6855 lto-streamer-out.o, lto-section-in.o, lto-section-out.o,
6856 lto-symtab.o, lto-opts.o, lto-streamer.o, lto-wpa-fixup.o): New rules.
6857 (gimple.o): Add dependency on LTO_HEADER_H and LTO_SECTION_OUT_H.
6858 (varasm.o): Add dependency on tree-iterator.h.
6859 (cgraph.o): Add dependency on cif-code.def.
6860 (ipa-reference.o): Add dependency on LTO_STREAMER_H.
6861 (ipa-pure-const.o): Likewise.
6862 (GTFILES): Add lto-symtab.c.
6863 (install-lto-wrapper): New.
6864 * configure.ac: If 'lto' is in enable_languages, define ENABLE_LTO
6865 and enable_lto. If LIBELFLIBS is set, define HAVE_libelf.
6866 * config.in: Regenerate.
6867
6868 2009-10-03 Rafael Espindola <espindola@google.com>
6869 Diego Novillo <dnovillo@google.com>
6870
6871 * cgraphunit.c (ipa_passes): Prevent lto1 from calling
6872 ipa_write_summaries.
6873 Call execute_ipa_summary_passes for all_regular_ipa_passes and
6874 all_lto_gen_passes.
6875 (cgraph_optimize): Make extern.
6876
6877 2009-10-03 Nathan Froyd <froydnj@codesourcery.com>
6878 Kenneth Zadeck <zadeck@naturalbridge.com>
6879
6880 * toplev.c (in_lto_p): Declare.
6881 * collect2.c (scan_prog_file): Read all the output when reading
6882 information for LTO.
6883 (enum lto_mode_d): Declare.
6884
6885 2009-10-03 Richard Guenther <rguenther@suse.de>
6886 Diego Novillo <dnovillo@google.com>
6887
6888 * gimple.c: Include target.h and alias.h.
6889 (gimple_types): Declare.
6890 (type_hash_cache): Declare.
6891 (gimple_alloc_stat): Make extern.
6892 (gimple_build_eh_must_not_throw): Call
6893 gimple_eh_must_not_throw_set_fndecl.
6894 (struct type_pair_d): Declare.
6895 (type_pair_t): Declare.
6896 (type_pair_hash): New.
6897 (type_pair_eq): New.
6898 (lookup_type_pair): New.
6899 (gimple_force_type_merge): New.
6900 (compare_type_names_p): New.
6901 (compare_field_offset): New.
6902 (gimple_types_compatible_p): New.
6903 (struct sccs): Declare.
6904 (next_dfs_num): Declare.
6905 (iterative_hash_gimple_type): New.
6906 (visit): New.
6907 (iterative_hash_type_name): New.
6908 (iterative_hash_gimple_type): New.
6909 (gimple_type_hash): New.
6910 (gimple_type_eq): New.
6911 (gimple_register_type): New.
6912 (print_gimple_types_stats): New.
6913 (gimple_signed_or_unsigned_type): New.
6914 (gimple_unsigned_type): New.
6915 (gimple_signed_type): New.
6916 (gimple_get_alias_set): New.
6917 (gimple_decl_printable_name): Do not use DMGL_TYPES.
6918 * gimple.h (gimple_alloc, gimple_alloc_stat): Declare.
6919 (gimple_force_type_merge): Declare.
6920 (gimple_types_compatible_p): Declare.
6921 (gimple_register_type): Declare.
6922 (print_gimple_types_stats): Declare.
6923 (gimple_unsigned_type): Declare.
6924 (gimple_signed_type): Declare.
6925 (gimple_get_alias_set): Declare.
6926 (gimple_eh_must_not_throw_set_fndecl): New.
6927
6928 2009-10-03 Jan Hubicka <jh@suse.cz>
6929 Kenneth Zadeck <zadeck@naturalbridge.com>
6930
6931 * ipa-pure-const.c: Include lto-streamer.h.
6932 (register_hooks): Factor out of ...
6933 (generate_summary): ... here.
6934 (pure_const_write_summary): New.
6935 (pure_const_read_summary): New.
6936 (pass_ipa_pure_const): Add pure_const_write_summary and
6937 pure_const_read_summary.
6938 * ipa-reference.c: Include lto-streamer.h.
6939 (add_new_function): New.
6940 (remove_node_data): New.
6941 (duplicate_node_data): New.
6942 (ipa_init): Guard against multiple calls.
6943 Move hook setup from analyze_function.
6944 (write_node_summary_p): New.
6945 (ipa_reference_write_summary): New.
6946 (ipa_reference_read_summary): New.
6947 (pass_ipa_reference): Add ipa_reference_write_summary and
6948 ipa_reference_read_summary.
6949 * cgraph.h (cgraph_local_info): Add field lto_file_data.
6950 (struct cgraph_edge): Add fields lto_stmt_uid and
6951 call_stmt_cannot_inline_p.
6952 (cgraph_optimize): Declare.
6953 (cgraph_decide_is_function_needed): Declare.
6954 (reset_inline_failed): Declare.
6955 (enum LTO_cgraph_tags): Declare.
6956 (LTO_cgraph_tag_names): Declare.
6957 (LCC_NOT_FOUND): Define.
6958
6959 2009-10-03 Doug Kwan <dougkwan@google.com>
6960 Rafael Espindola <espindola@google.com>
6961 Jan Hubicka <jh@suse.cz>
6962 Diego Novillo <dnovillo@google.com>
6963 Kenneth Zadeck <zadeck@naturalbridge.com>
6964
6965 * passes.c (all_regular_ipa_passes): New.
6966 (all_ipa_passes): Rename to all_small_ipa_passes.
6967 (init_optimization_passes): Init all_regular_ipa_passes.
6968 * tree-pass.h (all_regular_ipa_passes): New.
6969 (all_ipa_passes): Rename to all_small_ipa_passes.
6970 * passes.c (all_lto_gen_passes): New.
6971 (init_optimization_passes): Initialize all_lto_gen_passes.
6972 (execute_ipa_summary_passes): Make non-static.
6973 (ipa_write_summaries_1): New.
6974 (ipa_write_summaries_2): New.
6975 (ipa_write_summaries): New.
6976 (ipa_write_summaries_of_cgraph_node_set): New.
6977 (ipa_read_summaries_1): New.
6978 (ipa_read_summaries): New.
6979 (execute_ipa_pass_list): Call cgraph_process_new_functions.
6980 (execute_regular_ipa_pass_list): Remove.
6981 (init_optimization_passes): Schedule
6982 pass_rebuild_cgraph_edges and pass_early_inline outside
6983 of pass_all_early_optimizations. Document reason.
6984 (pass_ipa_lto_gimple_out, pass_ipa_lto_wpa_fixup,
6985 pass_ipa_lto_finish_out): New pass.
6986 (pass_ipa_summary_passes): Start and stop timers if the pass has them.
6987 (execute_all_ipa_transforms): New.
6988 (execute_one_pass): Don't call execute_one_ipa_transform_pass.
6989 (dump_properties, debug_properties): New.
6990 * tree-optimize.c (gate_all_early_local_passes): Return
6991 false if we are in lto1.
6992 (tree_rest_of_compilation): Call execute_all_ipa_transforms.
6993 * tree-pass.h (execute_all_ipa_transforms): Declare.
6994 (pass_ipa_function_and_variable_visibility): Declare.
6995 (pass_ipa_early_inline): Declare.
6996 (pass_ipa_lto_gimple_out): Declare.
6997 (pass_ipa_lto_wpa_fixup): Declare.
6998 (pass_ipa_lto_finish_out): Declare.
6999 (all_small_ipa_passes, all_regular_ipa_passes,
7000 all_lto_gen_passes): Declare.
7001 (execute_ipa_summary_passes): Declare.
7002 (execute_all_ipa_transforms): Declare.
7003 (ipa_write_summaries): Declare
7004 (ipa_write_summaries_of_cgraph_node_set): Declare.
7005 (ipa_read_summaries): Declare.
7006
7007 2009-10-03 Doug Kwan <dougkwan@google.com>
7008 Ollie Wild <aaw@google.com>
7009
7010 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do nothing in WPA.
7011
7012 * collect2.c (LTO_MODE_NONE, LTO_MODE_LTO, LTO_MODE_WPA): New enums.
7013 (lto_mode): New variable.
7014 (maybe_run_lto_and_relink): Handle the -fwpa option.
7015 (main): Handle the -fwpa option.
7016 (maybe_unlink_list): New function.
7017 * gcc.c (link_lto_options): Replace -flto with -fwpa.
7018 * common.opt (flto): New flag.
7019 * toplev.c (flag_generate_lto): Declare.
7020
7021 2009-10-03 Simon Baldwin <simonb@google.com>
7022
7023 * common.opt (flto-compression-level): New flag.
7024
7025 * opts.c: Include lto-opts.h.
7026 (handle_option): Call lto_register_user_option for each
7027 valid option handled.
7028 (decode_options): Clear registered options before the options
7029 handling loop.
7030
7031 2009-10-03 Cary Coutant <ccoutant@google.com>
7032
7033 * collect2.c (is_elf): New function.
7034 (scan_prog_file): Require LTO object to be in ELF format.
7035
7036 2009-10-03 Rafael Espindola <espindola@google.com>
7037
7038 * gcc.c (LINK_COMMAND_SPEC): Use the -pass-through option to pass
7039 libgcc to the linker.
7040
7041 * ipa-cp.c (cgraph_gate_cp): Return false if LTRANS is running.
7042
7043 * collect2.c (maybe_run_lto_and_relink): Execute lto-wrapper.
7044 (collect_execute): Add flags argument. Pass flags to pex_run. Update
7045 all callers.
7046 * collect2.h (collect_execute): Add flags argument.
7047 * tlink.c (tlink_execute): Update call to collect_execute.
7048 * gcc.c (main): Set the COLLECT_LTO_WRAPPER environment variable.
7049 (use_linker_plugin): New.
7050 (use_linker_plugin_spec_function): New.
7051 (LINK_COMMAND_SPEC): Pass plugin options to the linker.
7052 (linker_plugin_file_spec): New.
7053 (lto_wrapper_spec): New.
7054 (lto_gcc_spec): New.
7055 (static_specs): Add linker_plugin_file, lto_wrapper and lto_gcc.
7056 (static_spec_functions): Add use-linker-plugin.
7057 (process_command): Handle -use-linker-plugin.
7058 (main): Use lto_wrapper_spec instead of lto_wrapper. Set
7059 linker_plugin_file_spec and lto_gcc_spec.
7060 (use_linker_plugin_spec_function): New.
7061
7062 2009-10-03 Richard Guenther <rguenther@suse.de>
7063
7064 PR lto/41547
7065 PR lto/41548
7066 * tree.h (is_lang_specific): Include LANG_TYPE.
7067 * tree.c (find_decls_types_r): Manually add interesting parts
7068 of TYPE_FIELDS. Walk BINFO_VIRTUALS. Do not walk TYPE_METHODS.
7069
7070 * gimple.c (type_pair_hash): Make symmetric.
7071 (type_pair_eq): Likewise.
7072 (lookup_type_pair): Increase initial hashtable size.
7073 (gimple_force_type_merge): Rely on type-pair symmetry.
7074 (visit): Remove excessive checking code.
7075 (iterative_hash_type_name): Do not hash TYPE_NAME of anonymous unions.
7076 (gimple_register_type): Remove getenv calls, shrink initial
7077 hashtable size.
7078
7079 PR middle-end/41502
7080 * cgraphunit.c (ipa_passes): Do not remove bodies of extern
7081 inline functions if not generating lto output.
7082
7083 PR lto/41379
7084 * toplev.c (finalize): In WPA mode remove the asm file.
7085
7086 2009-10-03 Doug Kwan <dougkwan@google.com>
7087
7088 * ipa-inline.c (cgraph_mark_inline): Check
7089 edge->call_stmt_cannot_inline_p instead of calling
7090 gimple_call_cannot_inline_p.
7091 (cgraph_decide_inlining): Do nothing in WPA and LTRANS.
7092 (cgraph_gate_ipa_early_inlining): Return false if in_lto_p is set.
7093 (inline_generate_summary): Do nothing in LTRANS.
7094 * cgraph.c (initialize_inline_failed): Make sure e->call_stmt
7095 exists before calling gimple_call_cannot_inline_p.
7096 (cgraph_create_edge): Set edge->call_stmt_cannot_inline_p.
7097 (cgraph_clone_edge): Add argument STMT_UID. Modify all callers.
7098 Update new_edge->lto_stmt_uid.
7099 * cgraphbuild.c (reset_inline_failed): New.
7100
7101 * common.opt (fwpa): New flag.
7102 (fltrans): New option.
7103 * gcc.c (gcc_lto_option_t): New type.
7104 (current_lto_option): New variable.
7105 (lto_single_spec_function): Remove and is replaced by ..
7106 (lto_option_spec_function): New function.
7107 (LINK_COMMAND_SPEC): Use link_lto_option spec instead of just
7108 passing the -flto flag.
7109 (cc1_options): Separate non-LTO related parts into ..
7110 (cc1_non_lto_options): Non-LTO related options shared by all FEs.
7111 (lto1_options): New spec for lto FE.
7112 (link_lto_options): New spec for handling LTO flags in linker.
7113 (invoke_lto_single): Re-format to fit in 80 column. Replace
7114 lto-single with lto-option.
7115 (static_specs): Add cc1_non_lto_options, lto1_options and
7116 link_lto_options.
7117 (static_spec_function): Replace lto-single with lto-option.
7118 (process_command): Handle -flto, -fwpa and -fltran by setting
7119 current_lto_option and not passing it to subprocess unconditionally.
7120
7121 2009-10-03 Bill Maddox <maddox@google.com>
7122
7123 Add `gcc' driver support for link-time code generation (LTO).
7124
7125 * collect2.c (enum pass): Add new literal PASS_LTOINFO.
7126 (lto_flag, lto_objects, lto_o_file): New variables.
7127 (struct lto_object, struct lto_object_list): New structures.
7128 (collect_exit, handler): Remove LTO temporary output file on exit.
7129 (add_lto_object): New function.
7130 (maybe_run_lto_and_relink): New function. Perform link time code
7131 generation and relinking for object files containing LTO information.
7132 (main): Invoke maybe_run_lto_and_relink().
7133 (dump_argv): New function. For debugging, currently disabled.
7134 (scan_prog_file): Add LTO information pass.
7135 * gcc.c (LINK_COMMAND_SPEC): Pass `-flto' switch to linker, i.e.,
7136 collect2.
7137 * toplev.c (compile_file): Emit assembler directive to create
7138 the `gnu_lto_v1' marker symbol when compiling with `-flto'.
7139
7140 2009-10-03 Diego Novillo <dnovillo@google.com>
7141
7142 * c.opt: Add LTO to warn_abi and warn_psabi.
7143
7144 * tree.c (fld_worklist_push): Rename from PUSH. Convert to static
7145 inline function. Ignore language-specific nodes. Update all users.
7146 (find_decls_types_r): Do not traverse the subtrees of
7147 language-specific nodes. Do not traverse DECL_INITIAL for TYPE_DECLs.
7148 * tree.h (is_lang_specific): New.
7149 * langhooks.h (struct lang_hooks_for_decls): Remove
7150 may_need_assembler_name_p. Update all users.
7151
7152 * c-common.c (set_builtin_user_assembler_name): Move ...
7153 * builtins.c (set_builtin_user_assembler_name): ... here.
7154 (is_builtin_name): Add comment
7155 (is_builtin_fn): New.
7156 * except.c (output_ttype): Only call
7157 lookup_type_for_runtime if TYPE is not a runtime type.
7158
7159 * passes.c (register_pass): Call position_pass on
7160 all_small_ipa_passes, all_regular_ipa_passes and all_lto_gen_passes.
7161 * timevar.def (TV_IPA_LTO_GIMPLE_IO): Define.
7162 (TV_IPA_LTO_DECL_IO): Define.
7163 (TV_IPA_LTO_CGRAPH_IO): Define.
7164 (TV_LTO): Define.
7165 (TV_WHOPR_WPA): Define.
7166 (TV_WHOPR_WPA_IO): Define.
7167 (TV_WHOPR_LTRANS): Define.
7168 (TV_WHOPR_WPA_FIXUP): Define.
7169 (TV_WHOPR_WPA_LTRANS_EXEC): Define.
7170 * tree-cfg.c (tree_node_can_be_shared): Make extern.
7171 * tree-flow.h (tree_node_can_be_shared): Declare.
7172 * tree-inline.c (tree_can_inline_p): Check that E has a
7173 statement associated with it.
7174 * tree.c (free_lang_data_in_binf): Factor out of ...
7175 (free_lang_data_in_type): ... here.
7176 Call RECORD_OR_UNION_TYPE_P.
7177 (need_assembler_name_p): Ignore DECL if it does not have TREE_PUBLIC
7178 set. Call lang_hooks.decls.may_need_assembler_name_p if set.
7179 (free_lang_data_in_decl): Do not clear DECL_CONTEXT for CONST_DECLs.
7180 (free_lang_data): Set debug_info_level to DINFO_LEVEL_NONE. Set
7181 write_symbols to NO_DEBUG. Set debug_hooks to do_nothing_debug_hooks.
7182 (gate_free_lang_data): Return true if flag_generate_lto is set.
7183 (walk_tree_1): Call RECORD_OR_UNION_TYPE_P.
7184 * c-common.h (set_builtin_user_assembler_name): Move ...
7185 * tree.h (set_builtin_user_assembler_name): ... here.
7186
7187 * common.opt (flto-report): New flag.
7188 * opts.c (complain_wrong_lang): Do not complain if running lto1.
7189 * collect2.c (scan_prog_file): Send the error output of
7190 'nm' to HOST_BIT_BUCKET.
7191
7192 2009-10-03 Ollie Wild <aaw@google.com>
7193
7194 * langhooks-def.h (lhd_begin_section): New function declaration.
7195 (lhd_write_section): New function declaration.
7196 (lhd_end_section): New function declaration.
7197 (LANG_HOOKS_BEGIN_SECTION): New macro.
7198 (LANG_HOOKS_WRITE_SECTION_DATA): New macro.
7199 (LANG_HOOKS_END_SECTION): New macro.
7200 (LANG_HOOKS_LTO): New macro.
7201 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_LTO.
7202 * langhooks.c (output.h): Add include.
7203 (saved_section): New static variable.
7204 (lhd_begin_section): New function.
7205 (lhd_write_section_data): New function.
7206 (lhd_end_section): New function.
7207 * langhooks.h (struct lang_hooks_for_lto): New structure.
7208 (struct lang_hooks): Add member lto.
7209 * Makefile.in (langhooks.o): Add dependency on output.h.
7210
7211 * c-opts.c (c_common_post_options): Handle -flto and -fwhopr.
7212
7213 2009-10-03 Richard Guenther <rguenther@suse.de>
7214
7215 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
7216 Handle LTO.
7217
7218 2009-10-03 Simon Baldwin <simonb@google.com>
7219 Richard Guenther <rguenther@suse.de>
7220 Janis Johnson <janis187@us.ibm.com>
7221 Doug Kwan <dougkwan@google.com>
7222 Diego Novillo <dnovillo@google.com>
7223 Ramana Radhakrishnan <ramana.r@gmail.com>
7224 Ollie Wild <aaw@google.com>
7225
7226 * doc/install.texi: Add documentation for libelf and --enable-lto.
7227 * doc/invoke.texi: Document -fwpa, -flto, -fwhopr, -fltrans,
7228 -flto-report, -flto-compression-level and -use-linker-plugin.
7229 * doc/sourcebuild.texi: Document use of zlib. Document lto-plugin.
7230 Add section for LTO Testing.
7231
7232 2009-10-02 Cary Coutant <ccoutant@google.com>
7233
7234 Add support for comdat type sections for DWARF v4.
7235 Merge from dwarf4 branch.
7236
7237 * dwarf2out.c (DWARF_TYPE_SIGNATURE_SIZE): New constant.
7238 (dw_die_ref): Define vector type.
7239 (enum dw_val_class): Add dw_val_class_data8.
7240 (struct dw_val_struct): Add v.val_data8.
7241 (comdat_type_node_ref): New type.
7242 (struct die_struct): Move die_symbol into a union; add new field
7243 die_type_node. Change all uses.
7244 (comdat_type_node): New type.
7245 (skeleton_chain_node): New type.
7246 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): New constant.
7247 (comdat_type_list): New variable.
7248 (dwarf_tag_name): Add DW_TAG_type_unit.
7249 (dwarf_attr_name): Add DW_AT_signature.
7250 (add_AT_data8): New function.
7251 (replace_child): New function.
7252 (move_all_children): New function.
7253 (print_signature): New function.
7254 (print_die): Print signature information; add dw_val_class_data8.
7255 (attr_checksum): Support dw_val_class_data8.
7256 (CHECKSUM_STRING): Redefine for DWARF-4 to include trailing NULL byte.
7257 (CHECKSUM_SLEB128, CHECKSUM_ULEB128): New macros.
7258 (checksum_sleb128, checksum_uleb128): New functions.
7259 (checksum_die_context): New function.
7260 (loc_checksum_ordered): New function.
7261 (attr_checksum_ordered): New function.
7262 (struct checksum_attributes): New structure.
7263 (collect_checksum_attributes): New function.
7264 (die_checksum_ordered): New function.
7265 (generate_type_signature): New function.
7266 (same_dw_val_p): Add dw_val_class_data8.
7267 (is_symbol_die): Use new is_declaration_die function.
7268 (is_declaration_die): New function.
7269 (should_move_die_to_comdat): New function.
7270 (clone_die): New function.
7271 (clone_tree): New function.
7272 (clone_as_declaration): New function.
7273 (copy_declaration_context): New function.
7274 (generate_skeleton_ancestor_tree): New function.
7275 (generate_skeleton_bottom_up): New function.
7276 (generate_skeleton): New function.
7277 (remove_child_or_replace_with_skeleton): New function.
7278 (break_out_comdat_types): New function.
7279 (struct decl_table_entry): New type.
7280 (htab_decl_hash): New function.
7281 (htab_decl_eq): New function.
7282 (htab_decl_del): New function.
7283 (copy_ancestor_tree): New function.
7284 (copy_decls_walk): New function.
7285 (copy_decls_for_unworthy_types): New function.
7286 (build_abbrev_table): Don't assert on missing die_symbol when doing
7287 comdat type sections.
7288 (size_of_die): Use DW_FORM_sig8 for external references. Add
7289 dw_val_class_data8.
7290 (unmark_dies): Don't assert for unmarked dies when doing comdat
7291 type sections.
7292 (value_format): Support DW_FORM_sig8 and dw_val_class_data8.
7293 (output_signature): New function.
7294 (output_die): Likewise.
7295 (output_compilation_unit_header): Mark output as DWARF version 3
7296 even if generating DWARF 4.
7297 (output_comdat_type_unit): New function.
7298 (output_line_info): Mark output as DWARF version 3 even if generating
7299 DWARF 4.
7300 (dwarf2out_start_source_file): Don't do eliminate_dwarf2_dups with
7301 DWARF-4.
7302 (dwarf2out_end_source_file): Likewise.
7303 (prune_unused_types_walk_attribs): Don't follow references into
7304 comdat type sections.
7305 (prune_unused_types_mark): When generating type units, do not mark
7306 children of non-defining declarations of types; do mark children of
7307 type entries.
7308 (prune_unused_types): Process comdat type sections.
7309 (htab_ct_hash): New function.
7310 (htab_ct_eq): New function.
7311 (dwarf2out_finish): Move types to comdat sections when using DWARF-4.
7312 Add a pointer to the line table from type unit entries so
7313 DW_AT_decl_file has meaning.
7314 * varasm.c (default_elf_asm_named_section): Use identifier name as
7315 comdat key instead of lang hook.
7316
7317 2009-10-02 Neil Vachharajani <nvachhar@google.com>
7318
7319 * gcov-io.c (gcov_open): Open files read-only when MODE < 0.
7320
7321 2009-10-02 Uros Bizjak <ubizjak@gmail.com>
7322
7323 * config/i386/i386.md (SWIM248): New mode iterator.
7324 (divmod<mode>4) Macroize expander from divmoddi4, divmodsi4 and
7325 divmodhi4 patterns using SWIM248 macro.
7326 (*divmod<mode>4): Macroize insn_and_split pattern from
7327 *divmoddi4_cltd_rex64, *divmodsi4_cltd and divmodhi4 insn patterns
7328 and their corresponding splitters usign SWIM248 macro. Split SImode
7329 insn to generate cltd and DImode insn to generate cqto instead of
7330 move+shift when optimizing for size or TARGET_USE_CLTD is in effect.
7331 (*divmoddi4_nocltd_rex64, *divmodsi4_nocltd): Remove insn patterns.
7332 (*divmod<mode>4_noext): Macroize insn from *divmoddi_noext_rex64 and
7333 *divmodsi_noext patterns using SWIM248 macro.
7334 (udivmod<mode>4): Macroize expander from udivmoddi4, udivmodsi4 and
7335 udivmodhi4 patterns using SWIM248 macro.
7336 (*udivmod<mode>4): Macroize insn_and_split pattern from
7337 *udivmoddi4, udivmodsi4 and udivmodhi4 patterns and their
7338 corresponding splitters using SWIM248 macro.
7339 (*udivmod<mode>4_noext): Macroize insn from *udivmoddi4_noext,
7340 *udivmodsi4_noext and *udivmodhi_noext patterns using SWIM248 macro.
7341
7342 2009-10-02 Eric Botcazou <ebotcazou@adacore.com>
7343
7344 * stor-layout.c (layout_type) <ARRAY_TYPE>: Make sure that an array
7345 of zero-sized element is zero-sized regardless of its extent.
7346
7347 2009-10-02 Jakub Jelinek <jakub@redhat.com>
7348
7349 PR debug/40521
7350 * configure.ac (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): New test.
7351 * configure: Regenerated.
7352 * config.in: Regenerated.
7353 * dwarf2out.c (dwarf2out_do_cfi_asm): Return false if
7354 !HAVE_GAS_CFI_SECTIONS_DIRECTIVE and not emitting .eh_frame.
7355 (dwarf2out_init): If HAVE_GAS_CFI_SECTIONS_DIRECTIVE and
7356 not emitting .eh_frame, emit .cfi_sections .debug_frame
7357 directive.
7358
7359 PR debug/41404
7360 PR debug/41353
7361 * cfgexpand.c (expand_debug_expr) <case STRING_CST>: Don't create
7362 CONST_STRING if STRING_CST contains embedded '\0's or doesn't end
7363 with '\0'.
7364 (expand_debug_expr) <case VAR_DECL>: For TREE_STATIC !DECL_EXTERNAL
7365 vars use DECL_RTL with resetting it back to NULL afterwards.
7366 * dwarf2out.c (same_dw_val_p): For dw_val_class_addr compare with
7367 rtx_equal_p instead of asserting it is a SYMBOL_REF.
7368 (value_format): For dw_val_class_addr only use DW_FORM_addr if
7369 the attribute type allows it, otherwise use DW_FORM_dataN.
7370 (mem_loc_descriptor): Handle CONST_STRING.
7371 (add_const_value_attribute): Handle CONST_STRING using add_AT_addr.
7372 Handle MEM with CONST_STRING address using add_AT_string.
7373 (rtl_for_decl_init): Return MEM with CONST_STRING address instead of
7374 CONST_STRING for const arrays initialized with a string literal.
7375 (resolve_one_addr, resolve_addr_in_expr, resolve_addr): New functions.
7376 (dwarf2out_finish): Call resolve_addr.
7377
7378 2009-10-02 Andreas Schwab <schwab@linux-m68k.org>
7379 Maxim Kuvyrkov <maxim@codesourcery.com>
7380
7381 * config/m68k/lb1sf68.asm (PICCALL): Use variable sized branch.
7382
7383 2009-10-02 Nick Clifton <nickc@redhat.com>
7384
7385 * config/mn10300/mn10300.h (USER_LABEL_PREFIX): Define.
7386 (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
7387
7388 2009-10-01 Jan Hubicka <jh@suse.cz>
7389
7390 * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
7391 (cgraph_create_virtual_clone): Just pass redirect_callers
7392 around.
7393 * cgraph.h (cgraph_clone_node): Update prototype.
7394 * ipa-pure-const.c (self_recursive_p): New function.
7395 (propagate): Use it.
7396 * ipa-inline.c (cgraph_clone_inlined_nodes,
7397 cgraph_decide_recursive_inlining): Update.
7398
7399 2009-10-01 David Daney <ddaney@caviumnetworks.com>
7400
7401 * gcc/config/mips/mips.c (mips_process_sync_loop) Emit syncw
7402 instructions for TARGET_OCTEON.
7403
7404 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7405
7406 * config/arm/arm.c (arm_override_options): Turn off
7407 flag_dwarf2_cfi_asm for AAPCS variants.
7408
7409 2009-10-01 Martin Jambor <mjambor@suse.cz>
7410
7411 PR middle-end/12392
7412 * tree-sra.c (convert_callers): Do not call
7413 compute_inline_parameters on one caller more than once.
7414
7415 2009-10-01 Nick Clifton <nickc@redhat.com>
7416
7417 * config/vax/netbsd-elf.h (NETBSD_CC1_AND_CC1PLUS_SPEC): Define as
7418 an empty string if not already defined.
7419
7420 2009-10-01 Martin Jambor <mjambor@suse.cz>
7421
7422 PR bootstrap/41395
7423 * tree-sra.c (is_va_list_type): New function.
7424 (find_var_candidates): Call is_va_list_type.
7425 (find_param_candidates): Check that the type or the type pointed
7426 to are not va_list types.
7427
7428 2009-10-01 Martin Jambor <mjambor@suse.cz>
7429
7430 PR c++/41503
7431 * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
7432 DECL_ARTIFICIAL (param_decl) is true.
7433
7434 2009-09-30 Gabriel Dos Reis <gdr@cs.tamu.edu>
7435
7436 * tree.h (tree_decl_common::lang_flag_8): New.
7437 * c-common.c (c_common_reswords): Include "constexpr" as C++0x
7438 keyword.
7439 * c-common.h (RID_CONSTEXPR): New.
7440
7441 2009-09-30 Uros Bizjak <ubizjak@gmail.com>
7442
7443 * config/alpha/alpha.c (alpha_gimplify_va_arg_1):
7444 Use ref-all pointers.
7445 (alpha_gimplify_va_arg): Ditto.
7446
7447 2009-09-30 Jakub Jelinek <jakub@redhat.com>
7448
7449 PR target/41279
7450 * cfgloopanal.c (num_loop_insns): Don't increment ninsns for each bb
7451 before insn counting loop now that BB_END (bb) is counted. Ensure
7452 the return value isn't zero.
7453
7454 2009-09-30 Nick Clifton <nickc@redhat.com>
7455
7456 * config.gcc (sh-symbianelf): Replace definition of extra_objs
7457 with separate definitions of c_target_objs and cxx_target_objs.
7458 * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o
7459 and symbian-base.o.
7460 * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use
7461 sh_symbian_import_export_class.
7462 * config/sh/sh-protos.h: Fix names of exported symbian functions.
7463 * config/sh/symbian.c: Delete, moving code into...
7464 * config/sh/symbian-base.c: ... here
7465 * config/sh/symbian-c.c: ... and here
7466 * config/sh/symbian-cxx.c: ... and here.
7467
7468 2009-09-30 Uros Bizjak <ubizjak@gmail.com>
7469
7470 PR target/22093
7471 * config/alpha/alpha.md (unaligned_storehi_be): Force operand
7472 of plus RTX into register.
7473
7474 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7475
7476 * doc/install.texi: Linguistic and markup fixes.
7477 (Configuration) <--disable-cpp>: Remove description.
7478 <--enable-maintainer-mode>: Autotools files are affected, too.
7479 <--with-sysroot>: Improve description.
7480 (Building): Bump required GNU make version.
7481
7482 2009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
7483
7484 * config.gcc (i[34567]86-*-*): Include fma4intrin.h.
7485 (x86_64-*-*): Ditto.
7486
7487 * config/i386/fma4intrin.h: New file, provide common x86 compiler
7488 intrinisics for FMA4.
7489 * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit.
7490 * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a.
7491 Add FMA4 check and fma4intrin.h.
7492 * config/i386/i386-c.c(ix86_target_macros_internal): Check
7493 ISA_FLAG for FMA4.
7494 * config/i386/i386.h(TARGET_FMA4): New macro for FMA4.
7495 * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC
7496 constant for FMA4 support.
7497 (UNSPEC_FMA4_FMADDSUB): Ditto.
7498 (UNSPEC_FMA4_FMSUBADD): Ditto.
7499 * config/i386/i386.opt (-mfma4): New switch for FMA4 support.
7500 * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration.
7501 (ix86_expand_fma4_multiple_memory): Ditto.
7502 * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New.
7503 (OPTION_MASK_ISA_FMA4_UNSET): New.
7504 (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4.
7505 (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4.
7506 (ix86_handle_option): Handle -mfma4.
7507 (isa_opts): Handle -mfma4.
7508 (enum pta_flags): Add PTA_FMA4.
7509 (override_options): Add FMA4 support.
7510 (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic.
7511 (IX86_BUILTIN_VFMADDSD): Ditto.
7512 (IX86_BUILTIN_VFMADDPS): Ditto.
7513 (IX86_BUILTIN_VFMADDPD): Ditto.
7514 (IX86_BUILTIN_VFMSUBSS): Ditto.
7515 (IX86_BUILTIN_VFMSUBSD): Ditto.
7516 (IX86_BUILTIN_VFMSUBPS): Ditto.
7517 (IX86_BUILTIN_VFMSUBPD): Ditto.
7518 (IX86_BUILTIN_VFMADDSUBPS): Ditto.
7519 (IX86_BUILTIN_VFMADDSUBPD): Ditto.
7520 (IX86_BUILTIN_VFMSUBADDPS): Ditto.
7521 (IX86_BUILTIN_VFMSUBADDPD): Ditto.
7522 (IX86_BUILTIN_VFNMADDSS): Ditto.
7523 (IX86_BUILTIN_VFNMADDSD): Ditto.
7524 (IX86_BUILTIN_VFNMADDPS): Ditto.
7525 (IX86_BUILTIN_VFNMADDPD): Ditto.
7526 (IX86_BUILTIN_VFNMSUBSS): Ditto.
7527 (IX86_BUILTIN_VFNMSUBSD): Ditto.
7528 (IX86_BUILTIN_VFNMSUBPS): Ditto.
7529 (IX86_BUILTIN_VFNMSUBPD): Ditto.
7530 (IX86_BUILTIN_VFMADDPS256): Ditto.
7531 (IX86_BUILTIN_VFMADDPD256): Ditto.
7532 (IX86_BUILTIN_VFMSUBPS256): Ditto.
7533 (IX86_BUILTIN_VFMSUBPD256): Ditto.
7534 (IX86_BUILTIN_VFMADDSUBPS256): Ditto.
7535 (IX86_BUILTIN_VFMADDSUBPD256): Ditto.
7536 (IX86_BUILTIN_VFMSUBADDPS256): Ditto.
7537 (IX86_BUILTIN_VFMSUBADDPD256): Ditto.
7538 (IX86_BUILTIN_VFNMADDPS256): Ditto.
7539 (IX86_BUILTIN_VFNMADDPD256): Ditto.
7540 (IX86_BUILTIN_VFNMSUBPS256): Ditto.
7541 (IX86_BUILTIN_VFNMSUBPD256): Ditto.
7542 (enum multi_arg_type): New enum for describing the various FMA4
7543 intrinsic argument types.
7544 (bdesc_multi_arg): New table for FMA4 intrinsics.
7545 (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support.
7546 (ix86_expand_multi_arg_builtin): New function for creating FMA4
7547 intrinsics.
7548 (ix86_expand_builtin): Add FMA4 intrinsic support.
7549 (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4
7550 operand instructions.
7551 (ix86_expand_fma4_multiple_memory): New function to split the
7552 second memory reference from FMA4 instructions.
7553 * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4.
7554 (ssemodesuffixf2s): Ditto.
7555 (fma4_fmadd<mode>4): Add FMA4 floating point multiply/add
7556 instructions.
7557 (fma4_fmsub<mode>4): Ditto.
7558 (fma4_fnmadd<mode>4): Ditto.
7559 (fma4_fnmsub<mode>4): Ditto.
7560 (fma4_vmfmadd<mode>4): Ditto.
7561 (fma4_vmfmsub<mode>4): Ditto.
7562 (fma4_vmfnmadd<mode>4): Ditto.
7563 (fma4_vmfnmsub<mode>4): Ditto.
7564 (fma4_fmadd<mode>4256): Ditto.
7565 (fma4_fmsub<mode>4256): Ditto.
7566 (fma4_fnmadd<mode>4256): Ditto.
7567 (fma4_fnmsub<mode>4256): Ditto.
7568 (fma4_fmaddsubv8sf4): Ditto.
7569 (fma4_fmaddsubv4sf4): Ditto.
7570 (fma4_fmaddsubv4df4): Ditto.
7571 (fma4_fmaddsubv2df4): Ditto.
7572 (fma4_fmsubaddv8sf4): Ditto.
7573 (fma4_fmsubaddv4sf4): Ditto.
7574 (fma4_fmsubaddv4df4): Ditto.
7575 (fma4_fmsubaddv2df4): Ditto.
7576 (fma4i_fmadd<mode>4): Add FMA4 floating point multiply/add
7577 instructions for intrinsics.
7578 (fma4i_fmsub<mode>4): Ditto.
7579 (fma4i_fnmadd<mode>4): Ditto.
7580 (fma4i_fnmsub<mode>4): Ditto.
7581 (fma4i_vmfmadd<mode>4): Ditto.
7582 (fma4i_vmfmsub<mode>4): Ditto.
7583 (fma4i_vmfnmadd<mode>4): Ditto.
7584 (fma4i_vmfnmsub<mode>4): Ditto.
7585 (fma4i_fmadd<mode>4256): Ditto.
7586 (fma4i_fmsub<mode>4256): Ditto.
7587 (fma4i_fnmadd<mode>4256): Ditto.
7588 (fma4i_fnmsub<mode>4256): Ditto.
7589 (fma4i_fmaddsubv8sf4): Ditto.
7590 (fma4i_fmaddsubv4sf4): Ditto.
7591 (fma4i_fmaddsubv4df4): Ditto.
7592 (fma4i_fmaddsubv2df4): Ditto.
7593 (fma4i_fmsubaddv8sf4): Ditto.
7594 (fma4i_fmsubaddv4sf4): Ditto.
7595 (fma4i_fmsubaddv4df4): Ditto.
7596 (fma4i_fmsubaddv2df4): Ditto.
7597
7598 * doc/invoke.texi (-mfma4): Add documentation.
7599 * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics.
7600
7601 2009-09-29 Richard Henderson <rth@redhat.com>
7602
7603 * tree-eh.c (unsplit_eh): Do not unsplit if there's already
7604 an edge to the new destination block.
7605
7606 2009-09-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7607
7608 PR target/41393
7609 * pa.c (hppa_profile_hook): Use
7610 make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
7611
7612 2009-09-29 Steve Ellcey <sje@cup.hp.com>
7613 Alexander Monakov <amonakov@ispras.ru>
7614
7615 PR target/41365
7616 * config/ia64/predicates.md (not_postinc_destination_operand): New.
7617 (not_postinc_memory_operand): New.
7618 (not_postinc_move_operand): New.
7619 * config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
7620 (*cmovsi_internal): Ditto.
7621
7622 2009-09-29 Pat Haugen <pthaugen@us.ibm.com>
7623
7624 * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
7625 restrict issue_rate in first pass when scheduling for register
7626 pressure.
7627
7628 2009-09-29 Basile Starynkevitch <basile@starynkevitch.net>
7629 Rafael Avila de Espindola <espindola@google.com>
7630
7631 * gengtype.c (plugin_output): New.
7632 (get_output_file_with_visibility): Return plugin_output for plugins.
7633 (main): Parse and use the -P option.
7634 * gty.texi: Update the command line format.
7635
7636 2009-09-29 Jakub Jelinek <jakub@redhat.com>
7637
7638 PR debug/41438
7639 * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
7640 functions.
7641 (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
7642 out if !const_ok_for_output.
7643
7644 PR debug/41474
7645 * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
7646 case VAR_LOCATION>: Remove gcc_unreachable ().
7647
7648 2009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
7649
7650 * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
7651 (x86_64-*-*): Ditto.
7652 * config/i386/smmintrin.h: Move instructions in mmintrin-common.h
7653 back to smmintrin.h.
7654 * config/i386/cpuid.h (bit_SSE5): Remove SSE5 bit.
7655 * config/i386/x86intrin.h: Remove SSE5.
7656 * config/i386/mmintrin-common.h: Delete file.
7657 * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins.
7658
7659 2009-09-29 Richard Guenther <rguenther@suse.de>
7660
7661 * alias.c (ao_ref_from_mem): Properly deal with off decl accesses
7662 resulting from stack temporaries on STRICT_ALIGNMENT targets.
7663
7664 2009-09-29 Nick Clifton <nickc@redhat.com>
7665
7666 * function.c (current_function_name): If there is no current
7667 function just return "<none>".
7668
7669 2009-09-28 Sriraman Tallam <tmsriram@google.com>
7670
7671 * tree-pass.h (register_pass_info): New structure.
7672 (pass_positioning_ops): Move enum from gcc-plugin.h.
7673 (register_pass): New function.
7674 * gcc-plugin.h (plugin_pass): Delete structure.
7675 (pass_positioning_ops): Delete enum.
7676 * plugin.c (regsiter_pass): Delete function.
7677 (position_pass): Delete function.
7678 (added_pass_nodes): Delete variable.
7679 (prev_added_pass_nodes): Delete variable.
7680 (pass_list_node): Delete structure.
7681 * passes.c (make_pass_instance): New function.
7682 (next_pass_1): Change to call make_pass_instance.
7683 (pass_list_node): Move structure from gcc-plugin.h.
7684 (added_pass_nodes): Move variable from plugin.c.
7685 (prev_added_pass_nodes): Move variable from plugin.c.
7686 (position_pass): New function.
7687 (register_pass): New function.
7688
7689 2009-09-28 Easwaran Raman <eraman@google.com>
7690
7691 * ifcvt.c (noce_try_abs): Recognize pattern and call
7692 expand_one_cmpl_abs_nojump.
7693 * optabs.c (expand_one_cmpl_abs_nojump): New function.
7694 * optabs.h (expand_one_cmpl_abs_nojump): Declare.
7695
7696 2009-09-28 Ian Lance Taylor <iant@google.com>
7697
7698 PR middle-end/40500
7699 * c-opts.c (c_common_handle_option): Don't set
7700 warn_jump_misses_init for -Wall.
7701 * doc/invoke.texi (Warning Options): Update documentation.
7702
7703 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7704
7705 * Makefile.in ($(out_object_file)): Depend on
7706 gt-$(basename $(notdir $(out_file))).h.
7707
7708 2009-09-28 Richard Henderson <rth@redhat.com>
7709
7710 * except.h (struct eh_region_d): Add use_cxa_end_cleanup.
7711 * except.c (gen_eh_region): Set it.
7712 (duplicate_eh_regions_1): Copy it.
7713 * tree-eh.c (lower_resx): Use it to determine which function
7714 to call to resume.
7715
7716 * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
7717 * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
7718 * builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
7719 * tree.c (build_common_builtin_nodes): Remove parameter. Build
7720 BUILT_IN_CXA_END_CLEANUP if necessary.
7721
7722 * c-common.c (c_define_builtins): Update call to
7723 build_common_builtin_nodes.
7724
7725 2009-09-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
7726
7727 * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
7728
7729 2009-09-28 Michael Matz <matz@suse.de>
7730
7731 * builtins.c (interclass_mathfn_icode): New helper.
7732 (expand_builtin_interclass_mathfn): Use it here, and split folding
7733 into ...
7734 (fold_builtin_interclass_mathfn): ... this new folder.
7735 (build_call_nofold_loc): New static helper.
7736 (build_call_nofold): New wrapper macro for above.
7737 (expand_builtin_int_roundingfn): Use it instead of build_call_expr.
7738 (expand_builtin_pow): Ditto.
7739 (expand_builtin_memset_args): Ditto.
7740 (expand_builtin_printf): Ditto.
7741 (expand_builtin_fprintf): Ditto.
7742 (expand_builtin_sprintf): Ditto.
7743 (expand_builtin_memory_chk): Ditto.
7744 (expand_builtin_mempcpy_args): Ditto and don't call folders.
7745 (expand_builtin_stpcpy): Ditto.
7746 (expand_builtin_strcmp): Ditto.
7747 (expand_builtin_strncmp): Ditto.
7748 (expand_builtin_strcpy): Remove FNDECL and MODE arguments.
7749 (expand_builtin_strcpy_args): Don't call folders.
7750 (expand_builtin_memcmp): Ditto.
7751 (expand_builtin_strncpy): Ditto, and use target.
7752 (expand_builtin_memcpy): Ditto.
7753 (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
7754 expand_builtin_strpbrk, expand_builtin_memmove,
7755 expand_builtin_memmove_args, expand_builtin_bcopy,
7756 expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
7757 expand_builtin_strspn, expand_builtin_strcspn,
7758 expand_builtin_fputs): Remove these.
7759 (expand_builtin): Don't call the above, change calls to other
7760 expanders that changed prototype.
7761 (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
7762 (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
7763 fold_builtin_interclass_mathfn.
7764 (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
7765 (fold_builtin_strcat): Add folding split from expand_builtin_strcat.
7766
7767 * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
7768 * passes.c (init_optimization_passes): Move pass_fold_builtins
7769 after last phiopt pass.
7770 * tree-inline.c (fold_marked_statements): When folding builtins
7771 iterate over all instruction potentially generated.
7772 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
7773 earlier.
7774 (fold_gimple_call): Use it to always fold calls (into potentially
7775 multiple instructions).
7776 * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
7777 calls into zero at this time.
7778 * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple
7779 statements generated by builtin folding.
7780
7781 2009-09-28 Nick Clifton <nickc@redhat.com>
7782
7783 * config/m32r/m32r.c (m32r_is_insn): Return false for debugging insns.
7784
7785 2009-09-28 Duncan Sands <baldrick@free.fr>
7786
7787 * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
7788 * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
7789 (register_callback): Dispatch it.
7790 (invoke_plugin_callbacks): Incorporate in sanity check.
7791 * ggc.h (ggc_register_cache_tab): Add declaration.
7792 * ggc-common.c (ggc_register_root_tab): Simplify.
7793 (const_ggc_cache_tab_t): New typedef.
7794 (extra_cache_vec): New vector of dynamically added cache tables.
7795 (ggc_register_cache_tab): New function.
7796 (ggc_scan_cache_tab): New function.
7797 (ggc_mark_roots): Simplify dynamic roots. Handle dynamic caches.
7798 * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
7799
7800 2009-09-27 Richard Henderson <rth@redhat.com>
7801
7802 * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
7803 which we remove __builtin_stack_restore.
7804
7805 2009-09-27 Bernd Schmidt <bernd.schmidt@analog.com>
7806
7807 * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
7808 to test for GRD_INVARIANT.
7809 (simple_rhs_p): Anything that's function_invariant_p is fine.
7810
7811 2009-09-27 Rafael Avila de Espindola <espindola@google.com>
7812
7813 * gengtype.c (main): Use plunge_files instead of plugin_output.
7814
7815 2009-09-27 Basile Starynkevitch <basile@starynkevitch.net>
7816 Rafael Avila de Espindola <espindola@google.com>
7817
7818 * gengtype.c (write_root, write_roots): Add a emit_pch argument.
7819 Don't print pch related info if it is false.
7820 (main): Don't print pch info in plugin mode.
7821
7822 2009-09-27 Eric Botcazou <ebotcazou@adacore.com>
7823
7824 * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
7825 with dw_val_class_const_double.
7826 (struct dw_val_struct): Replace val_long_long with val_double and
7827 adjust for above change.
7828 (output_loc_operands): Likewise.
7829 (add_AT_long_long): Rename into...
7830 (add_AT_double): ...this.
7831 (print_die): Replace dw_val_class_long_long with
7832 dw_val_class_const_double and adjust.
7833 (attr_checksum): Likewise.
7834 (same_dw_val_p): Likewise.
7835 (size_of_die): Likewise.
7836 (value_format): Likewise.
7837 (output_die): Likewise.
7838 (loc_descriptor) <CONST_DOUBLE>: Likewise.
7839 (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
7840 instead of add_AT_long_long.
7841 (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
7842 value with the precision of its type.
7843
7844 2009-09-27 Andreas Schwab <schwab@linux-m68k.org>
7845
7846 PR c/41476
7847 * c-typeck.c (build_conditional_expr): Use the readonly and
7848 volatile flags of the operand types, not of the operands itself.
7849
7850 2009-09-27 Peter O'Gorman <pogma@thewrittenword.com>
7851
7852 * collect2.c (main): Look for -brtl before adding libraries.
7853
7854 2009-09-27 Jonathan Gray <jsg@openbsd.org>
7855
7856 * config.gcc: Update OpenBSD targets.
7857 * config/openbsd-stdint.h: New file.
7858 * config/openbsd-libpthread.h: New file.
7859 * config/openbsd.h: Update and break out LIB_SPEC definition.
7860 * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
7861 * config/i386/openbsdelf.h: Correct types.
7862 * config/m68k/openbsd.h: Likewise.
7863 * config/mips/openbsd.h: Likewise.
7864 * config/vax/openbsd.h: Likewise.
7865
7866 2009-09-27 Eric Botcazou <ebotcazou@adacore.com>
7867
7868 * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
7869 (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
7870 * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
7871 of the length and zero.
7872
7873 2009-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7874
7875 * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
7876 (FLAGS_H): Add options.h $(REAL_H).
7877 (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
7878 (TREE_VECTORIZER_H): New.
7879 (EBITMAP_H): Renamed from EBIMAP_H.
7880 (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
7881 (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
7882 (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
7883 (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
7884 (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
7885 (graphite-clast-to-gimple.o, graphite-dependences.o)
7886 (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
7887 (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
7888 (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
7889 (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
7890 (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
7891 (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
7892 (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
7893 (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
7894 (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
7895 updated and fixed as per above changes and per
7896 check_makefile_deps.sh output.
7897
7898 PR bootstrap/40928
7899 * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
7900 * configure: Regenerate.
7901
7902 2009-09-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7903
7904 * doc/install.texi: Update minimum MPC version to 0.7.
7905
7906 2009-09-26 Gerald Pfeifer <gerald@pfeifer.com>
7907
7908 * doc/install.texi (Binaries): Remove reference to the binary
7909 distribution CD-ROM from the FSF.
7910
7911 2009-09-26 Michael Matz <matz@suse.de>
7912
7913 PR lto/40758
7914 PR middle-end/41470
7915 * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
7916 that are mentioned in the body.
7917
7918 2009-09-26 Michael Matz <matz@suse.de>
7919
7920 PR tree-optimization/41454
7921 * tree-ssa-dom (stmts_to_rescan): Remove variable.
7922 (tree_ssa_dominator_optimize): Don't allocate and free it.
7923 (dom_opt_leave_block): Don't iterate over it.
7924 (eliminate_redundant_computations): Don't return a value.
7925 (cprop_operand, cprop_into_stmt): Ditto.
7926 (optimize_stmt): Don't defer updating stmts.
7927
7928 2009-09-25 Dodji Seketeli <dodji@redhat.com>
7929
7930 * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
7931 generic_parameter_die, template_parameter_pack_die,
7932 gen_formal_parameter_die, gen_subprogram_die): Adjust after
7933 renaming DW_TAG_formal_parameter_pack and
7934 DW_TAG_template_parameter_pack into DW_TAG_GNU_formal_parameter_pack
7935 and DW_TAG_GNU_template_parameter_pack.
7936
7937 2009-09-25 Anatoly Sokolov <aesok@post.ru>
7938
7939 * config/v850/v850.h (FUNCTION_VALUE): Remove.
7940 * config/v850/v850.c (v850_function_value): New function.
7941 (TARGET_FUNCTION_VALUE): Define.
7942
7943 2009-09-25 Jakub Jelinek <jakub@redhat.com>
7944
7945 * tree-vect-stmts.c (vectorizable_call): Call
7946 mark_symbols_for_renaming after vect_finish_stmt_generation.
7947
7948 * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
7949 to loc_descriptor_from_tree.
7950 (add_location_or_const_value_attribute): Pass 0 instead of 2
7951 for decl_by_reference_p decls.
7952
7953 2009-09-25 Richard Guenther <rguenther@suse.de>
7954
7955 PR middle-end/41463
7956 * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
7957 arrays again.
7958
7959 2009-09-25 Ben Elliston <bje@au.ibm.com>
7960
7961 * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma
7962 after `power7'.
7963
7964 2009-09-25 Alan Modra <amodra@bigpond.net.au>
7965
7966 * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
7967 form of instruction.
7968
7969 2009-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7970
7971 PR middle-end/41435
7972 * fold-const.c (const_binop): Handle complex int division.
7973 * tree-complex.c (expand_complex_div_straight,
7974 expand_complex_div_wide): Update comments.
7975
7976 2009-09-24 DJ Delorie <dj@redhat.com>
7977
7978 PR target/41456
7979 * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13.
7980 (reg_class): Likewise.
7981 (REG_CLASS_NAMES): Likewise.
7982 * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
7983 (m32c_override_options): Disable -fivopts for M32C.
7984
7985 2009-09-24 Michael Meissner <meissner@linux.vnet.ibm.com>
7986
7987 * config/rs6000/predicates.md (indexed_or_indirect_operand):
7988 Delete VSX load/store with update support.
7989 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto.
7990 * config/rs6000/vsx.md (vsx_mov<mode>): Ditto.
7991 (vsx_movti): Ditto.
7992 (VSX_U): Delete.
7993 (VSbit): Ditto.
7994 (VStype_load_update): Ditto.
7995 (VStype_store_update): Ditto.
7996 (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto.
7997 (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto.
7998
7999 * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX
8000 load/store with update builtins.
8001
8002 2009-09-24 Kai Tietz <kai.tietz@onevision.com>
8003
8004 * libgcc2.c (L_trampoline): Prototype for getpagesize
8005 and mprotect in WINNT case.
8006
8007 2009-09-24 Anatoly Sokolov <aesok@post.ru>
8008
8009 * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro.
8010 * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove.
8011 * config/rs6000/rs6000.c (rs6000_function_value): Make static, add
8012 'outgoing' argument.
8013 (TARGET_FUNCTION_VALUE): Define.
8014
8015 2009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
8016
8017 * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1.
8018
8019 2009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
8020
8021 PR bootstrap/41405
8022 * common.opt: Initialize dwarf_strict to -1.
8023 * toplev.c (process_options): Catch unset dwarf_strict
8024 and set to 0 for all targets not overriding.
8025 * config/darwin.c (darwin_override_options): Catch unset
8026 dwarf_strict and override to 1.
8027
8028 2009-09-24 Jeff Law <law@redhat.com>
8029
8030 * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
8031
8032 2009-09-24 Richard Guenther <rguenther@suse.de>
8033
8034 PR tree-optimization/36143
8035 PR tree-optimization/38747
8036 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
8037 create VIEW_CONVERT_EXPRs for TBAA compatible accesses.
8038
8039 2009-09-24 Jakub Jelinek <jakub@redhat.com>
8040
8041 PR bootstrap/41457
8042 * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED,
8043 return false instead of gcc_unreachable (). For CONST return the
8044 value returned by recursive call instead of always returning true.
8045 (tree_add_const_value_attribute): Return the value returned by
8046 add_const_value_attribute instead of always returning true if rtl
8047 is non-NULL.
8048
8049 2009-09-23 Justin Seyster <jrseys@gmail.com>
8050
8051 * Makefile.in (PLUGIN_HEADERS): Include real.h.
8052
8053 2009-09-24 Jakub Jelinek <jakub@redhat.com>
8054
8055 * cgraphunit.c (cgraph_lower_function): Revert last change.
8056 * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
8057 instead of DECL_NO_STATIC_CHAIN.
8058 * tree-cfg.c (verify_gimple_call): Likewise.
8059 * tree-nested.c (get_chain_decl, get_chain_field,
8060 convert_tramp_reference_op, convert_gimple_call): Likewise.
8061 (convert_all_function_calls): Likewise. Always set or clear
8062 DECL_STATIC_CHAIN initially, for !n->outer clear it.
8063 (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
8064 * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
8065 if nested.
8066 * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
8067 DECL_NO_STATIC_CHAIN.
8068 * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
8069 instead of DECL_NO_STATIC_CHAIN.
8070 (ix86_function_regparm, find_drap_reg): Likewise. Don't test
8071 decl_function_context.
8072 * varasm.c (initializer_constant_valid_p): Likewise.
8073 * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
8074 (DECL_STATIC_CHAIN): ... this.
8075 * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
8076 instead of DECL_NO_STATIC_CHAIN.
8077
8078 2009-09-23 Basile Starynkevitch <basile@starynkevitch.net>
8079 Rafael Avila de Espindola <espindola@google.com>
8080
8081 * gengtype.c (nb_plugin_files): Make it unsigned to match
8082 num_gt_files. Adjust other variables to avoid warnings.
8083 (main): Allocate an all zero lang_bitmap before each plugin file name
8084 to match regular file names.
8085
8086 2009-09-23 Richard Henderson <rth@redhat.com>
8087
8088 * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
8089 (TARGET_STATIC_CHAIN): Mention that this hook must be used for
8090 static chain passed in memory.
8091 * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison.
8092 * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN,
8093 STATIC_CHAIN_INCOMING. Issue a sorry if there's no
8094 STATIC_CHAIN_REGNUM defined.
8095
8096 * config/picochip/picochip-protos.h: s/class/klass/.
8097 * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New.
8098 (picochip_static_chain): New.
8099 * config/picochip/picochip.h (STATIC_CHAIN): Remove.
8100 (STATIC_CHAIN_INCOMING): Remove.
8101
8102 * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New.
8103 (xtensa_static_chain): New.
8104 * config/xtensa/xtensa.h (STATIC_CHAIN): Remove.
8105 (STATIC_CHAIN_INCOMING): Remove.
8106
8107 2009-09-23 Anatoly Sokolov <aesok@post.ru>
8108
8109 * config/pa/pa.h (FUNCTION_VALUE): Remove macro.
8110 * config/pa/pa-protos.h (function_value): Remove.
8111 * config/pa/pa.c (pa_function_value): Rename from function_value.
8112 Make static, add 'outgoing' argument.
8113 (TARGET_FUNCTION_VALUE): Define.
8114
8115 2009-09-23 Anatoly Sokolov <aesok@post.ru>
8116
8117 * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
8118 instead of cfun->machine->is_leaf.
8119 * config/avr/avr.h (machine_function): Remove is_leaf field.
8120
8121 2009-09-23 Jakub Jelinek <jakub@redhat.com>
8122
8123 PR debug/41439
8124 * dwarf2out.c (address_of_int_loc_descriptor): Don't emit
8125 DW_OP_piece after DW_OP_stack_value, adjust size calculations
8126 for it, when DW_OP_stack_value and DW_OP_implicit_value has
8127 the same size, prefer DW_OP_stack_value.
8128 (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref,
8129 loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value.
8130
8131 2009-09-23 Alexandre Oliva <aoliva@redhat.com>
8132
8133 PR debug/41353
8134 * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses.
8135
8136 2009-09-23 Alexandre Oliva <aoliva@redhat.com>
8137
8138 PR debug/41248
8139 * cfgexpand.c (convert_debug_memory_address): New.
8140 (expand_debug_expr): Convert base address and offset to the same
8141 mode. Use it to convert addresses to other modes. Accept
8142 ptr_mode addresses.
8143
8144 2009-09-23 Dodji Seketeli <dodji@redhat.com>
8145
8146 PR debug/41065
8147 * function.h (types_used_by_vars_hash): Declare new hash table.
8148 (types_used_by_vars_eq, types_used_by_var_decl_insert): Declare
8149 equality and hash function for the hash table.
8150 (types_used_by_cur_var_decl): Declare a new global chained list.
8151 (types_used_by_var_decl_insert): Declare new function.
8152 * function.c (types_used_by_vars_hash): Define the hashtable ...
8153 (types_used_by_vars_eq, types_used_by_vars_do_hash): ... as well as
8154 its equality and hash functions.
8155 (hash_types_used_by_vars_entry): New hash helper.
8156 (types_used_by_cur_var_decl): Define the global chained list.
8157 (used_types_insert): Update the list of types used by the global
8158 variable being parsed.
8159 (types_used_by_var_decl_insert): Define new function.
8160 * c-common.h (record_types_used_by_current_var_decl): Declare ...
8161 * c-common.c (record_types_used_by_current_var_decl): ... new
8162 function.
8163 * c-decl.c (finish_decl): Record the types used by the global
8164 variable declaration we've just parsed.
8165 * dwarf2out.c (premark_used_types): Insert a new line between
8166 comment and function.
8167 (premark_used_types_helper): Fix comment.
8168 (premark_types_used_by_global_vars_helper,
8169 premark_types_used_by_global_vars): New functions.
8170 (prune_unused_types): Do not prune types used by global variables.
8171
8172 2009-09-23 Richard Guenther <rguenther@suse.de>
8173
8174 * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET
8175 produced for bigendian targets with promoted subregs.
8176
8177 2009-09-23 Richard Guenther <rguenther@suse.de>
8178
8179 * value-prof.c (gimple_ic): Purge old EH edges only after building
8180 the new ones.
8181
8182 2009-09-23 Nick Clifton <nickc@redhat.com>
8183
8184 * config/arc/arc.c (arc_trampoline_init): Fix typo.
8185
8186 2009-09-23 Jakub Jelinek <jakub@redhat.com>
8187
8188 PR bootstrap/41405
8189 * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf.
8190
8191 PR bootstrap/41436
8192 * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
8193 on non-nested functions.
8194
8195 2009-09-23 Jakub Jelinek <jakub@redhat.com>
8196 Jan Hubicka <jh@suse.cz>
8197
8198 * dwarf2out.c (loc_list_plus_const): Only define if
8199 DWARF2_DEBUGGING_INFO.
8200 (address_of_int_loc_descriptor): Likewise.
8201
8202 PR debug/41411
8203 * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
8204
8205 2009-09-23 Uros Bizjak <ubizjak@gmail.com>
8206
8207 PR c/39779
8208 * c-typeck.c (build_binary_op) <short_shift>: Check that integer
8209 constant is more than zero.
8210
8211 2009-09-23 Alan Modra <amodra@bigpond.net.au>
8212
8213 PR target/40473
8214 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
8215 call final to emit non-scheduled prologue, instead insert at entry.
8216
8217 2009-09-22 Loren J. Rittle <ljrittle@acm.org>
8218 Joseph S. Myers <joseph@codesourcery.com>
8219
8220 * doc/install.texi (*-*-freebsd*): Add proper format codes.
8221
8222 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
8223 Rafael Avila de Espindola <espindola@google.com>
8224
8225 * gengtype.c (is_file_equal): New function.
8226 (close_output_files): Use is_file_equal. Free of->buf.
8227
8228 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
8229 Rafael Avila de Espindola <espindola@google.com>
8230
8231 * gengtype.c (write_types, write_local): Add the output_header
8232 argument. Update all callers.
8233
8234 2009-09-22 Dodji Seketeli <dodji@redhat.com>
8235
8236 * dwarf2out.c (template_parameter_pack_die,
8237 gen_formal_parameter_pack_die ): New functions.
8238 (make_ith_pack_parameter_name): Remove this function.
8239 (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
8240 DW_TAG_formal_parameter_pack.
8241 (gen_generic_params_dies): Represent each template parameter pack
8242 by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
8243 represented by usual DW_TAG_template_*_parameter DIEs that are
8244 children of the DW_TAG_template_parameter_pack element DIE.
8245 (generic_parameter_die): This doesn't deal with parameter pack
8246 names anymore. Don't generate DW_AT_name for some DIEs, e.g. children
8247 of parameter pack DIEs.
8248 (gen_formal_parameter_die): Add a flag to not emit DW_AT_name
8249 in certain cases, e.g. for pack elements.
8250 (gen_formal_types_die, gen_decl_die): Adjust usage of
8251 gen_formal_parameter_die.
8252 (gen_subprogram_die): Represent each function parameter pack by a
8253 DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
8254 represented by usual DW_TAG_formal_parameter DIEs that are children
8255 of the DW_TAG_formal_parameter_pack DIE. Remove references to
8256 ____builtin_va_alist decls as no part of the compiler uses those
8257 anymore.
8258 * langhooks.h (struct lang_hooks_for_decls): Add
8259 function_parm_expanded_from_pack_p, get_generic_function_decl
8260 and function_parameter_pack_p hooks. Fix comment for
8261 get_innermost_generic_parms hook.
8262 * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
8263 LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
8264 macros and use them to initialize lang_hook.
8265
8266 2009-09-22 Richard Henderson <rth@redhat.com>
8267
8268 * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
8269 (TRAMPOLINE_ADJUST_ADDRESS): Poison.
8270 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
8271 on TRAMPOLINE_TEMPLATE.
8272 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
8273 TRAMPOLINE_ADJUST_ADDRESS.
8274 * targhooks.c (default_asm_trampoline_template): Remove.
8275 (default_trampoline_adjust_address): Remove.
8276 (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
8277 * targhooks.h: Update decls.
8278
8279 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
8280
8281 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
8282 * config/i386/cygwin.h (LIBGCJ_SONAME): Define.
8283 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
8284
8285 2009-09-22 Alexandre Oliva <aoliva@redhat.com>
8286
8287 PR debug/41295
8288 * reload1.c (reload): Reset debug insns with pseudos without
8289 equivalences.
8290
8291 2009-09-22 Janis Johnson <janis187@us.ibm.com>
8292
8293 * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return
8294 unconditional true for decimal float modes.
8295 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto.
8296 * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto.
8297
8298 2009-09-22 Loren J. Rittle <ljrittle@acm.org>
8299
8300 * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
8301 Enable a new case for __FreeBSD__ >= 7.
8302 * crtstuff.c: Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7.
8303 * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP.
8304 * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC
8305 and USE_LD_AS_NEEDED.
8306
8307 * doc/install.texi (*-*-freebsd*): Update target information.
8308
8309 2009-09-22 Richard Guenther <rguenther@suse.de>
8310
8311 PR middle-end/41395
8312 * tree-dfa.c (get_ref_base_and_extent): Handle trailing
8313 arrays really properly.
8314
8315 2009-09-22 Richard Henderson <rth@redhat.com>
8316
8317 PR target/41246
8318 * target.h (struct gcc_target): Add asm_out.trampoline_template,
8319 calls.static_chain, calls.trampoline_init,
8320 calls.trampoline_adjust_address.
8321 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
8322 (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
8323 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
8324 * builtins.c (expand_builtin_setjmp_receiver): Use
8325 targetm.calls.static_chain; only clobber registers.
8326 (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
8327 set up memory attributes properly for the trampoline block.
8328 (expand_builtin_adjust_trampoline): Use
8329 targetm.calls.trampoline_adjust_address.
8330 * calls.c (prepare_call_address): Add fndecl argument. Use
8331 targetm.calls.static_chain.
8332 * df-scan.c (df_need_static_chain_reg): Remove.
8333 (df_get_entry_block_def_set): Use targetm.calls.static_chain;
8334 consolodate static chain handling.
8335 * doc/tm.texi: Document new hooks.
8336 * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
8337 (init_emit_regs): Don't initialize them.
8338 * expr.h (prepare_call_address): Update decl.
8339 * final.c (profile_function): Use targetm.calls.static_chain.
8340 * function.c (expand_function_start): Likewise.
8341 * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
8342 * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
8343 only clobber registers.
8344 * targhooks.c (default_static_chain): New.
8345 (default_asm_trampoline_template, default_trampoline_init): New.
8346 (default_trampoline_adjust_address): New.
8347 * targhooks.h: Declare them.
8348 * varasm.c (assemble_trampoline_template): Use
8349 targetm.asm_out.trampoline_template. Make the memory block const
8350 and set its size.
8351
8352 * config/alpha/alpha.c (alpha_trampoline_init): Rename from
8353 alpha_initialize_trampoline. Make static. Merge VMS parameter
8354 differences into the TARGET_ABI_OPEN_VMS code block.
8355 (TARGET_TRAMPOLINE_INIT): New.
8356 * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
8357 (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
8358 * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove.
8359 (INITIALIZE_TRAMPOLINE): Remove.
8360
8361 * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
8362 (TRAMPOLINE_TEMPLATE): Merge with ...
8363 (INITIALIZE_TRAMPOLINE): ... this and move ...
8364 * config/arc/arc.c (arc_trampoline_init): ... here.
8365 (TARGET_TRAMPOLINE_INIT): New.
8366
8367 * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
8368 (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
8369 (arm_asm_trampoline_template): New.
8370 (arm_trampoline_init, arm_trampoline_adjust_address): New.
8371 * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE,
8372 THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
8373 code to arm_asm_trampoline_template.
8374 (TRAMPOLINE_ADJUST_ADDRESS): Move code to
8375 arm_trampoline_adjust_address.
8376 (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
8377 adjust for target hook parameters.
8378
8379 * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE):
8380 Remove.
8381
8382 * config/bfin/bfin-protos.h (initialize_trampoline): Remove.
8383 * config/bfin/bfin.c (bfin_asm_trampoline_template): New.
8384 (bfin_trampoline_init): Rename from initialize_trampoline;
8385 make static; update for target hook parameters.
8386 (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
8387 * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to
8388 bfin_asm_trampoline_template.
8389 (INITIALIZE_TRAMPOLINE): Remove.
8390
8391 * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
8392 TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template,
8393 cris_trampoline_init): New.
8394 * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to
8395 cris_asm_trampoline_template.
8396 (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init;
8397 adjust for target hook parameters.
8398
8399 * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove.
8400
8401 * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
8402 TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template,
8403 fr30_trampoline_init): New.
8404 * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to
8405 fr30_asm_trampoline_template.
8406 (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init;
8407 adjust for target hook parameters.
8408
8409 * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New.
8410 (frv_trampoline_init): Rename from frv_initialize_trampoline;
8411 make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook.
8412 * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove.
8413 * config/frv/frv-protos.h (frv_initialize_trampoline): Remove.
8414
8415 * config/h8300/h8300.c (h8300_trampoline_init): New.
8416 (TARGET_TRAMPOLINE_INIT): New.
8417 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code
8418 to h8300_trampoline_init and adjust for hook parameters.
8419
8420 * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove.
8421 * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New.
8422 (ia64_trampoline_init): Rename from ia64_initialize_trampoline;
8423 make static; adjust for hook parameters.
8424 * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove.
8425
8426 * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
8427 (TARGET_TRAMPOLINE_INIT): New.
8428 (iq2000_asm_trampoline_template, iq2000_trampoline_init): New.
8429 * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to
8430 iq2000_asm_trampoline_template.
8431 (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init.
8432 (TRAMPOLINE_CODE_SIZE): New.
8433 (TRAMPOLINE_SIZE): Use it.
8434 (TRAMPOLINE_ALIGNMENT): Follow Pmode.
8435
8436 * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove.
8437 * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New.
8438 (m32c_trampoline_init): Rename from m32c_initialize_trampoline;
8439 adjust for hook parameters.
8440 * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove.
8441
8442 * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New.
8443 (m32r_trampoline_init): New.
8444 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to
8445 m32r_trampoline_init.
8446
8447 * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New.
8448 (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline;
8449 make static; update for hook parameters.
8450 * config/m68hc11/m68hc11-protos.h: Update.
8451 * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove.
8452
8453 * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
8454 (TARGET_TRAMPOLINE_INIT): New.
8455 (mcore_function_value): Fix typo.
8456 (mcore_asm_trampoline_template, mcore_trampoline_init): New.
8457 * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
8458 to mcore_asm_trampoline_template.
8459 (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
8460
8461 * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove.
8462 * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New.
8463 (mep_trampoline_init): Rename from mep_init_trampoline; make static;
8464 update for hook parameters.
8465 * config/mep/mep-protos.h (mep_init_trampoline): Remove.
8466
8467 * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
8468 mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
8469 mips_trampoline_init): New.
8470 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to
8471 mips_asm_trampoline_template.
8472 (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init;
8473 update for hook parameters.
8474
8475 * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
8476 (TARGET_TRAMPOLINE_INIT): New.
8477 (mmix_trampoline_size): Remove.
8478 (mmix_asm_trampoline_template): Rename from mmix_trampoline_template;
8479 make static. Remove out-of-date tetra vs octa comment.
8480 (mmix_trampoline_init): Rename from mmix_initialize_trampoline;
8481 make static; update for hook parameters.
8482 * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove.
8483 (INITIALIZE_TRAMPOLINE): Remove.
8484 (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size.
8485 (TRAMPOLINE_ALIGNMENT): New.
8486 * gcc/config/mmix/mmix-protos.h: Update.
8487
8488 * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
8489 mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
8490 mn10300_trampoline_init): New.
8491 * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to
8492 mn10300_asm_trampoline_template.
8493 (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init.
8494
8495 * config/moxie/moxie.c (moxie_static_chain,
8496 moxie_asm_trampoline_template, moxie_trampoline_init,
8497 TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE,
8498 TARGET_TRAMPOLINE_INIT): New.
8499 * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to
8500 moxie_trampoline_init.
8501 (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template.
8502 (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
8503
8504 * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
8505 pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
8506 pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS,
8507 pa_trampoline_adjust_address): New.
8508 * config/pa/pa.h (TRAMPOLINE_TEMPLATE): Move code to
8509 pa_asm_trampoline_template.
8510 (TRAMPOLINE_ALIGNMENT): New.
8511 (TRAMPOLINE_CODE_SIZE): Move to pa.c.
8512 (INITIALIZE_TRAMPOLINE): Move code to pa_trampoline_init;
8513 adjust for hook parameters.
8514 (TRAMPOLINE_ADJUST_ADDRESS): Move code to pa_trampoline_adjust_address.
8515
8516 * config/pdp11/pdp11.c (pdp11_trampoline_init): New.
8517 (TARGET_TRAMPOLINE_INIT): New.
8518 * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Remove.
8519 (INITIALIZE_TRAMPOLINE): Move code to pdp11_trampoline_init.
8520
8521 * config/picochip/picochip.h (INITIALIZE_TRAMPOLINE): Remove.
8522
8523 * config/rs6000/rs6000-protos.h (rs6000_initialize_trampoline): Remove.
8524 * config/rs6000/rs6000.c (TARGET_TRAMPOLINE_INIT): New.
8525 (rs6000_trampoline_init): Rename from rs6000_initialize_trampoline;
8526 make static; adjust parameters for the hook.
8527 * config/rs6000/rs6000.h (INITIALIZE_TRAMPOLINE): Remove.
8528
8529 * config/s390/s390.c (s390_asm_trampoline_template): Rename from
8530 s390_trampoline_template; make static.
8531 (s390_trampoline_init): Rename from s390_initialize_trampoline;
8532 make static; adjust for target hook.
8533 (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
8534 * config/s390/s390-protos.h: Remove trampoline decls.
8535 * config/s390/s390.h (INITIALIZE_TRAMPOLINE): Remove.
8536 (TRAMPOLINE_TEMPLATE): Remove.
8537 (TRAMPOLINE_ALIGNMENT): New.
8538
8539 * config/score/score-protos.h (score_initialize_trampoline): Remove.
8540 * config/score/score.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
8541 (TARGET_TRAMPOLINE_INIT): New.
8542 (score_asm_trampoline_template): New.
8543 (score_trampoline_init): Rename from score_initialize_trampoline;
8544 make static; adjust for hook parameters.
8545 * config/score/score.h (TRAMPOLINE_TEMPLATE): Move code to
8546 score[37]_asm_trampoline_template.
8547 (INITIALIZE_TRAMPOLINE): Remove.
8548 * config/score/score3.c (score3_asm_trampoline_template): New.
8549 (score3_trampoline_init): Rename from score3_initialize_trampoline;
8550 adjust for target hook.
8551 * config/score/score7.c (score7_asm_trampoline_template): New.
8552 (score7_trampoline_init): Rename from score7_initialize_trampoline;
8553 adjust for target hook.
8554 * config/score/score3.h, config/score/score7.h: Update.
8555
8556 * config/sh/sh-protos.h (sh_initialize_trampoline): Remove.
8557 * config/sh/sh.c (TARGET_TRAMPOLINE_INIT): New.
8558 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
8559 (sh_trampoline_init): Rename from sh_initialize_trampoline;
8560 make static; adjust for target hook parameters.
8561 (sh_trampoline_adjust_address): New.
8562 * config/sh/sh.h (INITIALIZE_TRAMPOLINE): New.
8563 (TRAMPOLINE_ADJUST_ADDRESS): Move code to sh_trampoline_adjust_address.
8564
8565 * config/sparc/sparc.c (TARGET_TRAMPOLINE_INIT): New.
8566 (sparc32_initialize_trampoline): Rename from
8567 sparc_initialize_trampoline; make static; replace tramp parameter
8568 with m_tramp and update memory accesses.
8569 (sparc64_initialize_trampoline): Similarly.
8570 (sparc_trampoline_init): New.
8571 * config/sparc/sparc-protos.h: Remove trampoline decls.
8572 * config/sparc/sparc.h (INITIALIZE_TRAMPOLINE): Remove.
8573 * config/sparc/sparc.md (nonlocal_goto): Don't use static_chain_rtx.
8574
8575 * config/spu/spu.c (TARGET_TRAMPOLINE_INIT): New.
8576 (array_to_constant): Make ARR parameter const.
8577 (spu_trampoline_init): Rename from spu_initialize_trampoline;
8578 make static; update for hook parameters.
8579 * config/spu/spu-protos.h: Update decls.
8580 * config/spu/spu.h (INITIALIZE_TRAMPOLINE): Remove.
8581
8582 * config/stormy16/stormy16.c (xstormy16_trampoline_init): Rename
8583 from xstormy16_initialize_trampoline; make static; update for
8584 hook parameters.
8585 (TARGET_TRAMPOLINE_INIT): New.
8586 * config/stormy16/stormy16.h (INITIALIZE_TRAMPOLINE): Remove.
8587
8588 * config/v850/v850.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
8589 (TARGET_TRAMPOLINE_INIT): New.
8590 (v850_can_eliminate): Make static.
8591 (v850_asm_trampoline_template, v850_trampoline_init): New.
8592 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Move code to
8593 v850_asm_trampoline_template.
8594 (INITIALIZE_TRAMPOLINE): Move code to v850_trampoline_init
8595 and adjust for target hook parameters.
8596
8597 * config/vax/vax.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
8598 (TARGET_TRAMPOLINE_INIT): New.
8599 (vax_asm_trampoline_template, vax_trampoline_init): New.
8600 * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Move code to
8601 vax_asm_trampoline_template.
8602 (INITIALIZE_TRAMPOLINE): Move code to vax_trampoline_init.
8603
8604 * config/xtensa/xtensa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
8605 (TARGET_TRAMPOLINE_INIT): New.
8606 (xtensa_asm_trampoline_template): Rename from
8607 xtensa_trampoline_template; make static.
8608 (xtensa_trampoline_init): Rename from xtensa_initialize_trampoline;
8609 make static; update for hook parameters.
8610 * config/xtensa/xtensa-protos.h: Remove trampoline decls.
8611 * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Remove.
8612 (INITIALIZE_TRAMPOLINE): Remove.
8613
8614 * config/i386/i386.c (ix86_function_regparm): Do not issue an
8615 error for nested functions with regparm=3.
8616 (ix86_compute_frame_layout): Adjust frame pointer offset for
8617 ix86_static_chain_on_stack.
8618 (ix86_expand_prologue): Handle ix86_static_chain_on_stack.
8619 (ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset,
8620 don't reset to UNITS_PER_WORD.
8621 (ix86_emit_leave): Adjust ix86_cfa_state.
8622 (ix86_expand_epilogue): Handle ix86_static_chain_on_stack.
8623 (ix86_static_chain): New.
8624 (ix86_trampoline_init): Rename from x86_initialize_trampoline;
8625 make static; update for target hook parameters; use ix86_static_chain.
8626 (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
8627 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove.
8628 (INITIALIZE_TRAMPOLINE): Remove.
8629 (TRAMPOLINE_SIZE): Use 24 for 64-bit.
8630 (struct machine_function): Use BOOL_BITFIELD; rearrange bitfields
8631 to the end. Add static_chain_on_stack.
8632 (ix86_static_chain_on_stack): New.
8633
8634 * config/m68k/m68k.c (TARGET_TRAMPOLINE_INIT): New.
8635 (m68k_output_mi_thunk): Don't use static_chain_rtx.
8636 (m68k_trampoline_init): New.
8637 * config/m68k/m68k.h (INITIALIZE_TRAMPOLINE): Move code to
8638 m68k_trampoline_init and adjust for hook parameters.
8639 * config/m68k/netbsd-elf.h (TRAMPOLINE_TEMPLATE): Remove.
8640 (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Remove.
8641
8642 2009-09-22 Jakub Jelinek <jakub@redhat.com>
8643
8644 * config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes
8645 for __builtin_altivec_vcmpgt{sb,uh,sh,uw}.
8646
8647 * reload1.c (reload): Call wrap_constant when substituting
8648 reg for equiv inside of DEBUG_INSNs.
8649
8650 PR bootstrap/41405
8651 * dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die,
8652 add_call_src_coords_attributes, add_high_low_attributes,
8653 gen_compile_unit_die, gen_type_die_with_usage force_decl_die,
8654 gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish,
8655 dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions
8656 when -gdwarf-2 -gstrict-dwarf.
8657 (loc_list_from_tree): Likewise. Avoid using DWARF4 additions when
8658 -gdwarf-[23] -gstrict-dwarf.
8659 (address_of_int_loc_descriptor, loc_descriptor,
8660 loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using
8661 DWARF4 additions when -gdwarf-[23] -gstrict-dwarf.
8662 * common.opt (gno-strict-dwarf, gstrict-dwarf): New options.
8663
8664 2009-09-22 Richard Guenther <rguenther@suse.de>
8665
8666 PR tree-optimization/41428
8667 * tree-ssa-ccp.c (ccp_fold_stmt): New function.
8668 (ccp_finalize): Pass it to substitute_and_fold.
8669
8670 2009-09-22 Richard Guenther <rguenther@suse.de>
8671
8672 * tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
8673 (substitute_and_fold): Adjust prototype.
8674 * tree-vrp.c (vrp_evaluate_conditional): Make static.
8675 (simplify_stmt_using_ranges): Likewise.
8676 (fold_predicate_in): Move here from tree-ssa-propagate.c.
8677 (vrp_fold_stmt): New function.
8678 (vrp_finalize): Pass it to substitute_and_fold.
8679 * tree-flow.h (vrp_evaluate_conditional): Remove.
8680 (simplify_stmt_using_ranges): Likewise.
8681 * tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold.
8682 * tree-ssa-copy.c (fini_copy_prop): Likewise.
8683 * tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded
8684 member.
8685 (fold_predicate_in): Move to tree-vrp.c.
8686 (substitute_and_fold): Use the callback instead of calling into
8687 tree-vrp.c functions directly.
8688
8689 2009-09-22 Jakub Jelinek <jakub@redhat.com>
8690
8691 * dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
8692 comparison warning on rs6000.
8693
8694 PR middle-end/41429
8695 * tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
8696 GIMPLE_EH_MUST_NOT_THROW cleanup.
8697 (verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
8698
8699 2009-09-22 Jack Howarth <howarth@bromo.med.uc.edu>
8700
8701 PR middle-end/41260
8702 * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
8703 * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
8704 LIB_SPEC for darwin10 and later since it always uses the unwinder in
8705 libSystem which is derived from the gcc 4.2.1 unwinder.
8706
8707 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
8708
8709 PR middle-end/41357
8710 * varasm.c (default_encode_section_info): Copy TLS model into
8711 sym_ref flags regardless of backend support for TLS, for all
8712 model types except TLS_MODEL_EMULATED.
8713
8714 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
8715
8716 PR bootstrap/41404
8717 * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
8718 we can handle it correctly.
8719
8720 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
8721
8722 * doc/install.texi (os2): Remove section.
8723
8724 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
8725
8726 * doc/standards.texi (Objective-C): Adjust two URLs.
8727
8728 2009-09-21 Giuseppe Scrivano <gscrivano@gnu.org>
8729
8730 * tree-tailcall.c (process_assignment): Don't check if a
8731 multiplication or an addition are already present.
8732 (find_tail_calls): Combine multiple additions and multiplications.
8733 (adjust_accumulator_values): Emit accumulators.
8734
8735 2009-09-21 Kai Tietz <kai.tietz@onevision.com>
8736
8737 * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for
8738 xmm register restore.
8739
8740 2009-09-21 Jan Hubicka <jh@suse.cz>
8741
8742 * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL.
8743 (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and
8744 restore at the end.
8745
8746 2009-09-21 Eric Botcazou <ebotcazou@adacore.com>
8747
8748 * stor-layout.c (layout_type): Remove obsolete code.
8749
8750 2009-09-20 H.J. Lu <hongjiu.lu@intel.com>
8751
8752 PR middle-end/41395
8753 * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2.
8754
8755 2009-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8756
8757 PR middle-end/30789
8758 * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
8759 (do_mpc_ckconv): Accept FORCE_CONVERT parameter.
8760 (fold_builtin_2, do_mpc_arg1): Update accordingly.
8761 * fold-const.c (const_binop): Likewise.
8762 * real.h (do_mpc_arg2): Update prototype.
8763
8764 2009-09-20 Jan Hubicka <jh@suse.cz>
8765
8766 * dwarf2out.c (add_const_value_attribute): Return true if successful.
8767 (add_location_or_const_value_attribute): Rewrite using
8768 loc_list_from_tree.
8769 (tree_add_const_value_attribute): Return true if successful.
8770 (tree_add_const_value_attribute_for_decl): Likewise.
8771
8772 * dwarf2out.c (address_of_int_loc_descriptor): Break out from ...
8773 (loc_descriptor): ... here;
8774 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
8775 (cst_pool_loc_descr): Break out from ...; do not reffer constant
8776 pool items that was not marked for output.
8777 (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR;
8778 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
8779 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
8780 handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR,
8781 IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of
8782 CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use
8783 DW_OP_stack_value to get address of items that are not available
8784 as addresses.
8785 (dw_loc_list): Handle single element lists correctly.
8786
8787 2009-09-20 Kai Tietz <kai.tietz@onevision.com>
8788 Pascal Obry <obry@adacore.com>
8789
8790 * unwind-dw2-fde.c (classify_object_over_fdes):
8791 Cast the constant 1 to _Unwind_Ptr.
8792 (add_fdes): Likewise.
8793 (linear_search_fdes): Likewise.
8794
8795 2009-09-20 Eric Botcazou <ebotcazou@adacore.com>
8796
8797 * stor-layout.c (set_sizetype): Avoid useless type copy.
8798
8799 2009-09-20 Richard Sandiford <rdsandiford@googlemail.com>
8800
8801 * configure.ac (gcc_cv_ld_mips_personality_relaxation): New
8802 feature check.
8803 (HAVE_LD_PERSONALITY_RELAXATION): New macro definition.
8804 * configure, config.in: Regenerate.
8805 * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect |
8806 DW_EH_PE_absptr.
8807 * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro.
8808 (ASM_PREFERRED_EH_DATA_FORMAT): Define. Use MIPS_EH_INDIRECT
8809 for global data if the output could be used in a shared library.
8810 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
8811 to 0 if TARGET_WRITABLE_EH_FRAME.
8812
8813 2009-09-20 Paolo Bonzini <bonzini@gnu.org>
8814
8815 PR rtl-optimization/39886
8816 * combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU
8817 just when insn is equal to BB_END (bb).
8818
8819 2009-09-19 Adam Nemet <anemet@caviumnetworks.com>
8820
8821 * config/mips/mips.opt (mrelax-pic-calls): New option.
8822 * config/mips/mips.c (mips_strip_unspec_address): Move it up in
8823 the file.
8824 (mips_unspec_call): Change "unspec_call" expander into this.
8825 (mips_strip_unspec_call): New function.
8826 (mips_got_load): Call mips_unspec_call instead of
8827 gen_unspec_call<mode>.
8828 (mips16_build_call_stub): Fix comment for fp_code. Adjust call to
8829 MIPS_CALL.
8830 (mips_cfg_in_reorg): New function.
8831 (mips16_lay_out_constants): Use it to decide whether to call
8832 CFG-aware insn splitting.
8833 (r10k_insert_cache_barriers): Move CFG set-up code from here to
8834 mips_reorg. Move DF set-up code from here ...
8835 (mips_df_reorg): ... to here. Call r10k_insert_cache_barriers
8836 from here.
8837 (mips_reorg): Call mips_df_reorg instead of
8838 r10k_insert_cache_barriers. Move CFG set-up code here from
8839 r10k_insert_cache_barriers.
8840 (mips_call_expr_from_insn): New function.
8841 (mips_pic_call_symbol_from_set): Likewise.
8842 (mips_find_pic_call_symbol): Likewise.
8843 (mips_annotate_pic_call_expr): Likewise.
8844 (mips_get_pic_call_symbol): Likewise.
8845 (mips_annotate_pic_calls): Likewise.
8846 (mips_override_options): Disable -mrelax-pic-calls unless PIC
8847 calls are used.
8848 (mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16.
8849 * config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it.
8850 * config/mips/mips.h (MIPS_CALL): Use it to print the .reloc
8851 directive.
8852 * config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec.
8853 (unspec_call<mode>): Remove it.
8854 (sibcall_internal, sibcall_value_internal,
8855 sibcall_value_multiple_internal, call_internal, call_split,
8856 call_value_internal, call_value_split,
8857 call_value_multiple_internal, call_value_multiple_split): Pass
8858 SIZE_OPNO to MIPS_CALL.
8859 (call_internal_direct, call_direct_split,
8860 call_value_internal_direct, call_value_direct_split): Pass -1 as
8861 SIZE_OPNO to MIPS_CALL.
8862 * configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR.
8863 * configure: Regenerate.
8864 * doc/invoke.texi (Option Summary): Add -mrelax-pic-calls
8865 and -mno-relax-pic-calls.
8866 (MIPS Options): Document -mrelax-pic-calls and -mno-relax-pic-calls.
8867
8868 2009-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8869
8870 PR bootstrap/35619
8871 * Makefile.in (stmp-fixinc): Ensure `include-fixed' is created
8872 in the directory this rule is called from, rather than the
8873 toplevel 'gcc' directory, to fix in-tree build.
8874
8875 2009-09-19 Chris Demetriou <cgd@google.com>
8876
8877 PR preprocessor/28435:
8878 * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
8879 to cpplib that the preprocessor output is needed.
8880
8881 2009-09-19 Jakub Jelinek <jakub@redhat.com>
8882
8883 * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>,
8884 *restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>,
8885 *return_and_restore_fpregs_<mode>,
8886 *return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier.
8887
8888 PR bootstrap/41397
8889 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse
8890 instead of assuming it has always a REG inside of it.
8891
8892 2009-09-18 Gerald Pfeifer <gerald@pfeifer.com>
8893
8894 * config/freebsd.h: Update comment on types.
8895 (WINT_TYPE): Define.
8896
8897 2009-09-18 Jason Merrill <jason@redhat.com>
8898
8899 * c.opt: Add -fno-deduce-init-list.
8900
8901 2009-09-18 Neil Vachharajani <nvachhar@google.com>
8902
8903 * value-prof.c (interesting_stringop_to_profile_p): Added output
8904 argument to indicate which parameter is the size parameter.
8905 * value-prof.c (gimple_stringop_fixed_value): Use
8906 INTERESTING_STRINGOP_TO_PROFILE_P to find size argument.
8907 * value-prof.c (gimple_stringops_transform): Update call sites to
8908 INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change.
8909
8910 2009-09-18 Uros Bizjak <ubizjak@gmail.com>
8911
8912 PR target/38288
8913 From David Binderman <dcb314@hotmail.com>:
8914 * gcc/config/i386/i386.c (ix86_function_regparm): Remove useless
8915 local variable f. Remove stale comments.
8916 (ix86_compute_frame_layout): Remove useless local variable total_size.
8917 Remove #if 0'd code.
8918 (legitimate_address_p): Remove useless local variables
8919 reason_rtx and reason.
8920 (ix86_split_copysign_const): Remove useless local variable op1.
8921 (scale_counter): Remove useless local variable piece_size_mask.
8922
8923 2009-09-18 Jakub Jelinek <jakub@redhat.com>
8924
8925 * stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
8926 output decl.
8927
8928 2009-09-17 Michael Haubenwallner <michael.haubenwallner@salomon.at>
8929
8930 PR target/40913
8931 * config/pa/t-hpux-shlib: Set soname in libgcc_s.sl.
8932
8933 2009-09-17 Jakub Jelinek <jakub@redhat.com>
8934
8935 * c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of
8936 TYPE_STUB_DECL.
8937
8938 2009-09-17 Alexandre Oliva <aoliva@redhat.com>
8939
8940 * dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and
8941 DW_OP_implicit_value even without dwarf_version 4.
8942
8943 2009-09-17 Jan Hubicka <jh@suse.cz>
8944
8945 * dwarf2out.c: Include tree-pass.h and gimple.h.
8946 (loc_list_plus_const): New function.
8947 (loc_descriptor_from_tree_1): Rename to ...
8948 (loc_descriptor_from_tree): ... remove original.
8949 (loc_list_from_tree): New function.
8950 (add_AT_location_description): Accept location list.
8951 (tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree.
8952 (concatn_mem_loc_descriptor): Remove.
8953 (mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by
8954 returning NULL.
8955 (secname_for_decl): Move up.
8956 (hidden_reference_p): New function; break out from ...
8957 (loc_by_refernece): ... here; move up.
8958 (dw_loc_list): New function.
8959 (single_element_loc_list): New function.
8960 (single_element_loc_list_p): New function.
8961 (add_loc_descr_to_each): New function.
8962 (add_loc_list): New function.
8963 (loc_descr_from_tree): Make wraper of loc_list_from_tree.
8964 (loc_list_from_tree): Reroganized from loc_descr_from_tree;
8965 add diagnostics why expansion failed.
8966 (add_location_or_const_value_attribute): Support location lists.
8967 (add_bound_info): Likewise.
8968 (descr_info_loc): Update call of loc_descriptor_from_tree.
8969 (gen_variable_die): Work on location lists.
8970 * final.c (pass_final): Add dump file.
8971 * Makefile.in (dwarf2out.o): Add new dependencies.
8972
8973 2009-09-17 Janis Johnson <janis187@us.ibm.com>
8974
8975 PR c/41049
8976 * real.c decimal_from_integer, decimal_integer_string): New.
8977 (real_from_integer): Use them as special case for decimal float.
8978 * config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding.
8979 (_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td):
8980 Do not append zero after the decimal point in string to convert.
8981
8982 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
8983
8984 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
8985 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
8986
8987 2009-09-17 Martin Jambor <mjambor@suse.cz>
8988
8989 * common.opt (fipa-sra): New switch.
8990 * opts.c (decode_options): Turn flag_ipa_sra on for opt2.
8991 * timevar.def (TV_IPA_SRA): New timevar.
8992 * params.def (ipa-sra-ptr-growth-factor): New parameter.
8993 * doc/invoke.texi: Document -fipa-sra and ipa-sra-ptr-growth-factor.
8994 * tree-sra.c: Include cgraph.c.
8995 (enum sra_mode): Added SRA_MODE_EARLY_IPA.
8996 (struct access): Added fields stmt, grp_maybe_modified, grp_scalar_ptr
8997 and grp_not_necessarilly_dereferenced.
8998 (func_param_count): New variable.
8999 (encountered_apply_args): New variable.
9000 (bb_dereferences): New variable.
9001 (final_bbs): New variable.
9002 (no_accesses_representant): New variable.
9003 (no_accesses_p): New function.
9004 (dump_access): Dump the new fields.
9005 (sra_initialize): Set encountered_apply_args to false.
9006 (get_ssa_base_param): New function.
9007 (mark_parm_dereference): New function.
9008 (create_access): Caring for INIDRECT_REFs and different handling of
9009 varialble length accesses in early IPA SRA. Store the stmt - a new
9010 parameter - to the new access.
9011 (build_access_from_expr_1): New parameter stmt, passed to
9012 create_access. Handle INDIRECT_REFs.
9013 (build_access_from_expr): Pass the current statement to
9014 build_access_from_expr_1.
9015 (disqualify_ops_if_throwing_stmt): Trigger only in intraprocedural
9016 passes.
9017 (build_accesses_from_assign): Pass the current statement to
9018 build_access_from_expr_1. Do not create assign links in IPA-SRA.
9019 (scan_function): Call handle_ssa_defs on phi nodes. Set bits in
9020 final_bbs when necessary. Check for calls to __builtin_apply_args.
9021 Fixup EH info if anythng was changed.
9022 (is_unused_scalar_param): New function.
9023 (ptr_parm_has_direct_uses): New function.
9024 (find_param_candidates): New function.
9025 (mark_maybe_modified): New function.
9026 (analyze_modified_params): New function.
9027 (propagate_dereference_distances): New function.
9028 (dump_dereferences_table): New function.
9029 (analyze_caller_dereference_legality): New function.
9030 (unmodified_by_ref_scalar_representative): New function.
9031 (splice_param_accesses): New function.
9032 (decide_one_param_reduction): New function.
9033 (enum ipa_splicing_result): New type.
9034 (splice_all_param_accesses): New function.
9035 (get_param_index): New function.
9036 (turn_representatives_into_adjustments): New function.
9037 (analyze_all_param_acesses): New function.
9038 (get_replaced_param_substitute): New function.
9039 (get_adjustment_for_base): New function.
9040 (replace_removed_params_ssa_names): New function.
9041 (sra_ipa_reset_debug_stmts): New function.
9042 (sra_ipa_modify_expr): New function.
9043 (sra_ipa_modify_assign): New function.
9044 (convert_callers): New function.
9045 (modify_function): New function.
9046 (ipa_sra_preliminary_function_checks): New function.
9047 (ipa_early_sra): New function.
9048 (ipa_early_sra_gate): New function.
9049 (pass_early_ipa_sra): New variable.
9050 * Makefile.in (tree-sra.o): Add cgraph.h to dependencies.
9051
9052 2009-09-17 Michael Matz <matz@suse.de>
9053
9054 PR middle-end/41347
9055 * tree.c (build_type_attribute_qual_variant): Export.
9056 * tree.h (build_type_attribute_qual_variant): Declare.
9057 * tree-inline.c (remap_type_1): Use it to build variants with
9058 the original qualifiers and attributes.
9059
9060 2009-09-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9061
9062 * cfglayout.c (fixup_reorder_chain): Accept conditional jumps
9063 without a fallthrough edge.
9064
9065 2009-09-16 DJ Delorie <dj@redhat.com>
9066
9067 * config/m32c/m32c.c (m32c_emit_epilogue): Check for R8C or M16C
9068 chip and ignore the "fast_interrupt" attribute if so.
9069
9070 2009-09-16 Richard Henderson <rth@redhat.com>
9071
9072 PR middle-end/41360
9073 * cfgbuild.c (find_bb_boundaries): Really re-instate 2009-09-02
9074 barrier fix.
9075
9076 2009-09-16 Richard Henderson <rth@redhat.com>
9077
9078 PR target/41246
9079 * tree-cfg.c (verify_gimple_call): Validate that gimple_call_chain
9080 is set only if DECL_NO_STATIC_CHAIN is unset.
9081 * tree-nested.c (iter_nestinfo_start, iter_nestinfo_next): New.
9082 (FOR_EACH_NEST_INFO): New.
9083 (walk_all_functions): Use it.
9084 (finalize_nesting_tree): Likewise.
9085 (unnest_nesting_tree): Likewise.
9086 (free_nesting_tree): Use iter_nestinfo_start, iter_nestinfo_next.
9087 (get_chain_decl, get_chain_field): Reset DECL_NO_STATIC_CHAIN.
9088 (convert_gimple_call): Early out if gimple_call_chain already set.
9089 (convert_all_function_calls): Iterate until no new functions
9090 require a static chain.
9091 (finalize_nesting_tree_1): Assert DECL_NO_STATIC_CHAIN is unset
9092 when building a trampoline. Use dump_function_to_file instead
9093 of dump_function.
9094 (lower_nested_functions): Open dump_file. Validate that decls
9095 that have DECL_NO_STATIC_CHAIN from the front end don't have that
9096 bit reset by this pass.
9097
9098 2009-09-16 Michael Matz <matz@suse.de>
9099
9100 PR fortran/41212
9101 * tree.h (struct tree_decl_common): Add decl_restricted_flag,
9102 shorten decl_common_unused.
9103 (DECL_RESTRICTED_P): New accessor.
9104 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use it
9105 to disambiguate marked decls and restrict pointers.
9106
9107 2009-09-16 Richard Henderson <rth@redhat.com>
9108
9109 PR middle-end/41360
9110 * cfgbuild.c (find_bb_boundaries): Re-instate 2009-09-02 barrier fix.
9111
9112 2009-09-16 Jakub Jelinek <jakub@redhat.com>
9113
9114 * integrate.c (set_block_abstract_flags): Call
9115 set_decl_abstract_flags also on BLOCK_NONLOCALIZED_VARs.
9116
9117 2009-09-16 Richard Guenther <rguenther@suse.de>
9118
9119 PR middle-end/34011
9120 * tree-flow-inline.h (may_be_aliased): Compute readonly variables
9121 as non-aliased.
9122
9123 2009-09-16 DJ Delorie <dj@redhat.com>
9124 Kaz Kojima <kkojima@gcc.gnu.org>
9125
9126 * config/sh/sh.c (output_stack_adjust): Add new argument frame_p.
9127 (sh_expand_prologue): Update calls to output_stack_adjust.
9128 (sh_expand_epilogue): Likewise.
9129
9130 2009-09-15 Adam Nemet <anemet@caviumnetworks.com>
9131
9132 PR bootstrap/41349
9133 * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when
9134 trying to limit the extent of searches in the insn stream.
9135
9136 2009-09-15 Nathan Froyd <froydnj@codesourcery.com>
9137 Jakub Jelinek <jakub@redhat.com>
9138
9139 PR target/41175
9140 PR target/40677
9141 * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
9142 problem.
9143 (SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
9144 SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): New strategy bits.
9145 (rs6000_savres_strategy): Always save FP registers inline if the
9146 target doesn't support hardware double-precision. Set the above
9147 bits in return value when needed.
9148 (rs6000_savres_routine_sym): Fix computation for cache selector.
9149 Mark the generated symbol as a function. Rename exitp argument to
9150 lr. Move code for determining the name of the symbol...
9151 (rs6000_savres_routine_name): ...here. New function. Add cases for
9152 getting the names right on AIX and 64-bit Linux.
9153 (savres_routine_name): New variable.
9154 (rs6000_make_savres_rtx): Rename exitp argument to lr. Don't assert
9155 lr isn't set when savep. Use r12 resp. r1 instead of r11 depending
9156 on what the target routine uses as a base register. If savep && lr
9157 describe saving of r0 into memory slot.
9158 (rs6000_emit_prologue): Correct use of call_used_regs. Fix out of
9159 line calls for AIX ABI.
9160 (rs6000_output_function_prologue): Use rs6000_savres_routine_name to
9161 determine FP save/restore functions.
9162 (rs6000_emit_stack_reset): Handle savres if sp_offset != 0 and
9163 frame_reg_rtx != sp_reg_rtx. Use gen_add3_insn instead of
9164 gen_addsi3.
9165 (rs6000_emit_epilogue): Adjust computation of restore_lr.
9166 Duplicate restoration of LR and execute the appropriate one
9167 depending on whether GPRs are being restored inline. Set r11 from
9168 offsetted frame_reg_rtx instead of sp_reg_rtx; if frame_reg_rtx is
9169 r11, adjust sp_offset. Use gen_add3_insn instead of gen_addsi3.
9170 Fix out of line calls for AIX ABI.
9171 * config/rs6000/rs6000.md (*return_and_restore_fpregs_aix_<mode>):
9172 New insn.
9173 * config/rs6000/spe.md (*save_gpregs_spe): Use explicit match for
9174 register 11.
9175 (*restore_gpregs_spe): Likewise.
9176 (*return_and_restore_gpregs_spe): Likewise.
9177 * config/rs6000/linux64.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
9178 Define to empty string unconditionally.
9179 * config/rs6000/sysv4.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
9180 Define to empty string unconditionally.
9181 (GP_SAVE_INLINE, FP_SAVE_INLINE): Handle TARGET_64BIT the same as
9182 !TARGET_64BIT.
9183
9184 2009-09-15 Jan Hubicka <jh@suse.cz>
9185
9186 * doc/invoke.texi (inline-insns-auto): Drop from 60 to 50.
9187 * params.def (inline-insns-auto): Likewise.
9188
9189 2009-09-15 Martin Jambor <mjambor@suse.cz>
9190
9191 * ipa-inline.c (estimate_function_body_sizes): Dump info about
9192 individual statements only at TDF_DETAILS dump level. Format
9193 source for 80 characters per line.
9194
9195 2009-09-15 Christian Bruel <christian.bruel@st.com>
9196
9197 * regrename.c (do_replace): Update REG_DEAD notes.
9198
9199 2009-09-15 Revital Eres <eres@il.ibm.com>
9200
9201 * doc/tm.texi (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Document.
9202 * targhooks.c (default_builtin_support_vector_misalignment):
9203 New builtin function.
9204 * targhooks.h (default_builtin_support_vector_misalignment):
9205 Declare.
9206 * target.h (builtin_support_vector_misalignment):
9207 New field in struct gcc_target.
9208 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Call
9209 new builtin function.
9210 * target-def.h (TARGET_SUPPORT_VECTOR_MISALIGNMENT):
9211 Define.
9212 * config/rs6000/rs6000.c
9213 (rs6000_builtin_support_vector_misalignment): New function.
9214 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Define.
9215
9216 2009-09-15 Jie Zhang <jie.zhang@analog.com>
9217
9218 * config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P
9219 instead of INSN_P.
9220 (bfin_optimize_loop): Likewise.
9221 (bfin_gen_bundles): Likewise.
9222 (workaround_speculation): Likewise.
9223 (find_load): Return NULL_RTX for debug_insn.
9224
9225 2009-09-15 Uros Bizjak <ubizjak@gmail.com>
9226
9227 * config/alpha/alpha.md (smaxsf3): Disable for IEEE mode.
9228 (sminsf3): Ditto.
9229
9230 2009-09-14 DJ Delorie <dj@redhat.com>
9231
9232 * config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
9233 * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in
9234 VLIW mode.
9235
9236 2009-09-14 Richard Henderson <rth@redhat.com>
9237 Jakub Jelinek <jakub@redhat.com>
9238
9239 * builtins.c (expand_builtin_synchronize): Use gimple_build_asm_vec.
9240 * cfgbuild.c (make_edges): Handle asm goto.
9241 * cfglayout.c (fixup_reorder_chain): Likewise.
9242 * cfgrtl.c (patch_jump_insn): Likewise.
9243 * gimple-pretty-print.c (dump_gimple_asm): Likewise.
9244 * gimple.c (gimple_build_asm_1): Add and use nlabels parameter.
9245 (gimple_build_asm_vec): Add and use labels parameter.
9246 (gimple_build_asm): Remove.
9247 (walk_gimple_asm): Walk labels too.
9248 * gimple.def (GIMPLE_ASM): Update docs.
9249 * gimple.h: Update decls.
9250 (struct gimple_statement_asm): Change nc to use unsigned char;
9251 add nl member.
9252 (gimple_asm_nlabels): New.
9253 (gimple_asm_label_op, gimple_asm_set_label_op): New.
9254 * gimplify.c (gimplify_asm_expr): Copy labels from ASM_EXPR
9255 into gimple_build_asm_vec.
9256 * jump.c (mark_jump_label_asm): New.
9257 (mark_jump_label): Use it.
9258 (redirect_jump_1): Handle asm goto.
9259 (invert_jump_1): Soft fail if X is null.
9260 * recog.c (extract_asm_operands): New.
9261 (asm_noperands): Use it; handle asm labels.
9262 (decode_asm_operands): Use extract_asm_operands.
9263 (asm_operand_ok): Properly handle empty string.
9264 * reg-stack.c (get_asm_operands_in_out): Rename from
9265 get_asm_operand_n_inputs; use extract_asm_operands; return both
9266 inputs and outputs by reference; update all callers.
9267 * rtl.def (ASM_OPERANDS): Add label vector as operand 6.
9268 * rtl.h (ASM_OPERANDS_LABEL_VEC): New.
9269 (ASM_OPERANDS_LABEL_LENGTH, ASM_OPERANDS_LABEL): New.
9270 (ASM_OPERANDS_SOURCE_LOCATION): Renumber.
9271 (extract_asm_operands): Declare.
9272 * stmt.c (expand_asm_operands): Add and use labels parameter.
9273 (check_unique_operand_names): Likewise.
9274 (resolve_asm_operand_names, resolve_operand_name_1): Likewise.
9275 (expand_asm_stmt): Handle asm labels.
9276 * tree-cfg.c (make_gimple_asm_edges): New.
9277 (make_edges): Use it.
9278 (cleanup_dead_labels): Handle asm labels.
9279 (is_ctrl_altering_stmt): Likewise.
9280 (gimple_redirect_edge_and_branch): Likewise.
9281 * tree.def (ASM_EXPR): Add 5th operand.
9282 * tree.h (ASM_LABELS): New.
9283 (resolve_asm_operand_names): Update decl.
9284
9285 * c-parser.c (c_parser_asm_statement): Parse asm goto.
9286 (c_parser_asm_goto_operands): New.
9287 * c-tree.h (build_asm_expr): Update decl.
9288 * c-typeck.c (build_asm_expr): Add and use labels parameter.
9289 * doc/extend.texi: Document asm goto.
9290
9291 2009-09-14 Richard Henderson <rth@redhat.com>
9292
9293 * except.h: Update declarations.
9294 (struct pointer_map_t): Forward declare.
9295 (ERT_UNKNOWN, ERT_THROW, ERT_CATCH): Remove.
9296 (struct eh_landing_pad_d, eh_landing_pad): New.
9297 (struct eh_catch_d, eh_catch): New.
9298 (struct eh_region_d): Remove next_region_sharing_label, aka,
9299 label, tree_label, landing_pad, post_landing_pad, resume,
9300 may_contain_throw. Rename region_number to index. Remove
9301 u.eh_catch, u.eh_throw. Rename u.eh_try.eh_catch to first_catch.
9302 Add u.must_not_throw, landing_pads, exc_ptr_reg, filter_reg.
9303 (VEC(eh_landing_pad,gc)): New.
9304 (struct eh_status): Remove last_region_number. Add lp_array,
9305 throw_stmt_table, ttype_data, ehspec_data.
9306 (ehr_next, FOR_ALL_EH_REGION_AT): New.
9307 (FOR_ALL_EH_REGION_FN, FOR_ALL_EH_REGION): New.
9308 * except.c (lang_protect_cleanup_actions): Return tree.
9309 (struct ehl_map_entry): Remove.
9310 (init_eh_for_function): Push zero entries for region and lp_array.
9311 (gen_eh_region): Add to region_array immediately.
9312 (gen_eh_region_catch): Operate on eh_catch objects.
9313 (gen_eh_landing_pad): New.
9314 (get_eh_region_may_contain_throw, get_eh_region_tree_label): Remove.
9315 (get_eh_region_no_tree_label, set_eh_region_tree_label): Remove.
9316 (get_eh_region_from_number, get_eh_region_from_number_fn): New.
9317 (get_eh_landing_pad_from_number_fn): New.
9318 (get_eh_landing_pad_from_number): New.
9319 (get_eh_region_from_lp_number_fn): New.
9320 (get_eh_region_from_lp_number): New.
9321 (expand_resx_stmt, note_eh_region_may_contain_throw): Remove.
9322 (get_exception_pointer, get_exception_filter): Remove.
9323 (collect_eh_region_array, can_be_reached_by_runtime): Remove.
9324 (current_function_has_exception_handlers): Simplify.
9325 (bring_to_root, eh_region_replaceable_by_p): Remove.
9326 (replace_region, hash_type_list, hash_eh_region): Remove.
9327 (eh_regions_equal_p, merge_peers, remove_unreachable_regions): Remove.
9328 (label_to_region_map, num_eh_regions): Remove.
9329 (get_next_region_sharing_label, must_not_throw_labels): Remove.
9330 (find_exception_handler_labels): Remove.
9331 (duplicate_eh_regions_0, find_prev_try): Remove.
9332 (struct duplicate_eh_regions_data): New.
9333 (duplicate_eh_regions_1): Rewrite.
9334 (duplicate_eh_regions): Return a pointer map instead of an
9335 integer offset.
9336 (copy_eh_region_1, copy_eh_region, push_reachable_handler): Remove.
9337 (redirect_eh_edge_to_label): Remove.
9338 (eh_region_outermost): Rewrite using eh_region pointers
9339 instead of integers.
9340 (add_ttypes_entry): Update for ttype_data move to eh_status.
9341 (add_ehspec_entry): Rewrite with VEC instead of varray.
9342 (assign_filter_values): Likewise. Export.
9343 (build_post_landing_pads, connect_post_landing_pads): Remove.
9344 (dw2_build_landing_pads): Rewrite to use lp_array.
9345 (struct sjlj_lp_info, sjlj_find_directly_reachable_regions): Remove.
9346 (sjlj_assign_call_site_values): Rewrite to use lp_array.
9347 (sjlj_emit_dispatch_table, sjlj_build_landing_pads): Likewise.
9348 (sjlj_mark_call_sites): Update for landing pad numbers.
9349 (finish_eh_generation): Rewrite.
9350 (gate_handle_eh): Do nothing for no eh tree.
9351 (pass_rtl_eh): Move up near finish_eh_generation.
9352 (remove_eh_landing_pad): New.
9353 (remove_eh_handler): Export.
9354 (remove_eh_region, remove_eh_handler_and_replace): Remove.
9355 (for_each_eh_label): Rewrite to use lp_array.
9356 (make_reg_eh_region_note): New.
9357 (make_reg_eh_region_note_nothrow_nononlocal): New.
9358 (insn_could_throw_p): New.
9359 (copy_reg_eh_region_note_forward): New.
9360 (copy_reg_eh_region_note_backward): New.
9361 (check_handled, add_reachable_handler): Remove.
9362 (reachable_next_level, foreach_reachable_handler): Remove.
9363 (arh_to_landing_pad, arh_to_label, reachable_handlers): Remove.
9364 (get_eh_region_and_lp_from_rtx): New.
9365 (get_eh_region_from_rtx): New.
9366 (can_throw_internal_1, can_throw_external_1): Remove.
9367 (can_throw_internal): Use get_eh_region_from_rtx.
9368 (can_throw_external): Use get_eh_region_and_lp_from_rtx.
9369 (insn_nothrow_p, can_nonlocal_goto): New.
9370 (expand_builtin_eh_common, expand_builtin_eh_pointer): New.
9371 (expand_builtin_eh_filter, expand_builtin_eh_copy_values): New.
9372 (add_action_record): Use VEC not varray.
9373 (collect_one_action_chain): Update for eh_region changes.
9374 (convert_to_eh_region_ranges): Make static. Use VEC not varray.
9375 Use get_eh_region_and_lp_from_rtx.
9376 (gate_convert_to_eh_region_ranges): New.
9377 (pass_convert_to_eh_region_ranges): Use it.
9378 (push_uleb128, push_sleb128): Use VEC not varray.
9379 (output_one_function_exception_table): Likewise.
9380 (dump_eh_tree): Update for eh_region changes.
9381 (verify_eh_tree): Likewise.
9382 (verify_eh_region, default_init_unwind_resume_libfunc): Remove.
9383 * tree-eh.c: Include target.h.
9384 (add_stmt_to_eh_lp_fn): Rename from add_stmt_to_eh_region_fn.
9385 Don't disallow GIMPLE_RESX; adjust argument check.
9386 (add_stmt_to_eh_lp): Rename from add_stmt_to_eh_region.
9387 (record_stmt_eh_region): Update for landing pad numbers;
9388 generate a landing pad if necessary.
9389 (remove_stmt_from_eh_lp): Rename from remove_stmt_from_eh_region.
9390 (remove_stmt_from_eh_lp_fn): Similarly.
9391 (lookup_stmt_eh_lp_fn): Rename from lookup_stmt_eh_region_fn.
9392 Update for lp numbers; don't special case missing throw_stmt_table.
9393 (lookup_expr_eh_lp): Similarly.
9394 (lookup_stmt_eh_lp): Rename from lookup_stmt_eh_region.
9395 (eh_seq, eh_region_may_contain_throw): New.
9396 (struct leh_state): Add ehp_region.
9397 (struct leh_tf_state): Remove eh_label.
9398 (emit_post_landing_pad): New.
9399 (emit_resx, emit_eh_dispatch): New.
9400 (note_eh_region_may_contain_throw): New.
9401 (frob_into_branch_around): Take eh_region not eh label;
9402 emit eh code into eh_seq.
9403 (honor_protect_cleanup_actions): Early exit for no actions. Don't
9404 handle EXC_PTR_EXPR, FILTER_EXPR. Use gimple_build_eh_must_not_throw,
9405 lower_eh_must_not_throw. Emit code to eh_seq.
9406 (lower_try_finally_nofallthru): Emit eh code to eh_seq.
9407 (lower_try_finally_onedest): Likewise.
9408 (lower_try_finally_copy): Likewise.
9409 (lower_try_finally_switch): Likewise.
9410 (lower_try_finally): Initialize ehp_region.
9411 (lower_catch): Update for eh_catch objects.
9412 (lower_eh_filter): Don't handle must_not_throw.
9413 (lower_eh_must_not_throw): New.
9414 (lower_cleanup): Don't set eh_label.
9415 (lower_eh_constructs_2): Resolve eh builtins.
9416 Handle GIMPLE_EH_MUST_NOT_THROW.
9417 (lower_eh_constructs): Initialize eh_region_may_contain_throw.
9418 Add eh_seq to the end of the function body.
9419 (make_eh_dispatch_edges): New.
9420 (make_eh_edge): Remove.
9421 (make_eh_edges): Simplify for landing pads.
9422 (redirect_eh_edge_1): New.
9423 (redirect_eh_edge): Use it.
9424 (redirect_eh_dispatch_edge): New.
9425 (stmt_could_throw_p): Use a switch. Allow RESX.
9426 (stmt_can_throw_external): Use lookup_stmt_eh_lp.
9427 (stmt_can_throw_internal): Likewise.
9428 (maybe_clean_eh_stmt_fn, maybe_clean_eh_stmt): New.
9429 (maybe_clean_or_replace_eh_stmt): Update for landing pads.
9430 (maybe_duplicate_eh_stmt_fn, maybe_duplicate_eh_stmt): New.
9431 (gate_refactor_eh): New.
9432 (pass_refactor_eh): Use it.
9433 (lower_resx, execute_lower_resx, pass_lower_resx): New.
9434 (lower_eh_dispatch, execute_lower_eh_dispatch): New.
9435 (gate_lower_ehcontrol, pass_lower_eh_dispatch): New.
9436 (remove_unreachable_handlers): Rename from
9437 tree_remove_unreachable_handlers; rewrite for landing pads;
9438 call remove_eh_handler directly.
9439 (remove_unreachable_handlers_no_lp): New.
9440 (unsplit_eh, unsplit_all_eh): New.
9441 (tree_empty_eh_handler_p, all_phis_safe_to_merge): Remove.
9442 (cleanup_empty_eh_merge_phis, cleanup_empty_eh_move_lp): New.
9443 (cleanup_empty_eh_unsplit): New.
9444 (cleanup_empty_eh): Rewrite.
9445 (cleanup_all_empty_eh): New.
9446 (execute_cleanup_eh): Rename from cleanup_eh. Remove unreachable
9447 handlers first. Use unsplit_all_eh, cleanup_all_empty_eh.
9448 (gate_cleanup_eh): New.
9449 (pass_cleanup_eh): Use it.
9450 (verify_eh_edges): Move later in file. Expect one EH edge.
9451 (verify_eh_dispatch_edge): New.
9452
9453 * Makefile.in (FUNCTION_H): Use vecprim.h, not varray.h.
9454 (gtype-desc.o): Add TARGET_H.
9455 (tree.o): Use EXCEPT_H, not except.h.
9456 (cfgbuild.o): Add EXPR_H.
9457 (GTFILES): Add vecprim.h.
9458 * builtins.c (expand_builtin): Handle BUILT_IN_EH_POINTER,
9459 BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES.
9460 * builtins.def (BUILT_IN_UNWIND_RESUME, BUILT_IN_EH_POINTER,
9461 BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES): New.
9462 * calls.c (emit_call_1): Use make_reg_eh_region_note.
9463 * cfgbuild.c (control_flow_insn_p): Use can_nonlocal_goto; tidy
9464 calls to can_throw_internal.
9465 (rtl_make_eh_edge): Use get_eh_landing_pad_from_rtx.
9466 (make_edges): Don't handle RESX; use can_nonlocal_goto.
9467 * cfgexpand.c (expand_gimple_stmt_1): Don't handle RESX.
9468 (expand_gimple_stmt): Use make_reg_eh_region_note.
9469 (expand_debug_expr): Don't handle EXC_PTR_EXPR and FILTER_EXPR.
9470 (gimple_expand_cfg): Don't call convert_from_eh_region_ranges,
9471 or find_exception_handler_labels.
9472 * cfgrtl.c (rtl_verify_flow_info_1): Don't handle RESX. Assert
9473 there is exacly one EH edge. Use can_nonlocal_goto and
9474 can_throw_internal.
9475 * cgraphunit.c (update_call_expr): Use maybe_clean_eh_stmt_fn.
9476 (cgraph_materialize_all_clones): Use maybe_clean_or_replace_eh_stmt.
9477 * combine.c (can_combine_p, try_combine): Use insn_nothrow_p.
9478 * cse.c (count_reg_usage, insn_live_p): Use insn_could_throw_p.
9479 * dce.c (deletable_insn_p_1): Don't test may_trap_p.
9480 (deletable_insn_p): Use insn_nothrow_p; reorder nonjump insn test.
9481 * dse.c (scan_insn): Use insn_could_throw_p.
9482 * emit-rtl.c (try_split): Use copy_reg_eh_region_note_backward.
9483 * expr.c (expand_expr_real): Use make_reg_eh_region_note.
9484 (expand_expr_real_1): Don't handle RESX, EXC_PTR, or FILTER_EXPR.
9485 * fold-const.c (tree_expr_nonnegative_warnv_p): Don't handle
9486 EXC_PTR_EXPR or FILTER_EXPR.
9487 (tree_expr_nonzero_warnv_p): Likewise.
9488 * function.h: Include vecprim.h, not varray.h
9489 (struct rtl_eh): Remove filter, exc_ptr, built_landing_pad members;
9490 move ttype_data and ehspec_data members to struct eh_status; change
9491 action_record_data member to a VEC.
9492 * gcse.c (hash_scan_set): Use can_throw_internal.
9493 * gengtype.c (open_base_files): Add target.h to gtype-desc.c.
9494 * gimple-iterator.c (gsi_replace): Use maybe_clean_or_replace_eh_stmt.
9495 * gimple-low.c (lower_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
9496 (block_may_fallthru): Don't handle RESX_EXPR.
9497 * gimple-pretty-print.c (dump_gimple_label): Dump EH_LANDING_PAD_NR.
9498 (dump_gimple_eh_must_not_throw, dump_gimple_eh_dispatch): New.
9499 (dump_gimple_stmt): Dump landing pad information with TDF_EH;
9500 handle GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH.
9501 * gimple.c (gss_for_code): Handle GIMPLE_EH_MUST_NOT_THROW,
9502 GIMPLE_EH_DISPATCH, GIMPLE_RESX.
9503 (gimple_size): Likewise.
9504 (gimple_build_eh_dispatch, gimple_build_eh_must_not_throw): New.
9505 (gimple_build_resx): Use gimple_build_with_ops.
9506 (DEFTREECODE): Don't handle EXC_PTR_EXPR, FILTER_EXPR.
9507 (is_gimple_val): Likewise.
9508 (is_gimple_stmt): Remove RESX_EXPR.
9509 * gimple.def (GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH): New.
9510 (GIMPLE_RESX): Reorder with other EH constructs.
9511 * gimple.h (struct gimple_statement_eh_mnt): New.
9512 (struct gimple_statement_eh_ctrl): Rename from gimple_statement_resx.
9513 (gimple_eh_filter_must_not_throw): Remove.
9514 (gimple_eh_filter_set_must_not_throw): Remove.
9515 (gimple_eh_must_not_throw_fndecl): New.
9516 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region): New.
9517 (is_gimple_resx): New.
9518 * gimplify.c (gimplify_expr): Don't handle EXC_PTR_EXPR, RESX_EXPR.
9519 Don't copy EH_FILTER_MUST_NOT_THROW.
9520 * gsstruct.def (GSS_EH_MNT, GSS_EHCONTROL): New.
9521 * ipa-inline.c (estimate_function_body_sizes): Don't try to
9522 handle must_not_throw_labels specially.
9523 * ipa-pure-const.c (check_call): Update debug statement for LP.
9524 * ipa-type-escape.c (check_operand): Don't handle EXC_PTR or FILTER.
9525 * ipa-utils.c (get_base_var): Likewise.
9526 * libfunc.h (LTI_unwind_resume, unwind_resume_libfunc): Remove.
9527 * lower-subreg.c (move_eh_region_note): Remove.
9528 (resolve_simple_move): Use copy_reg_eh_region_note_forward.
9529 * omp-low.c (new_omp_context): Update for eh_lp_nr.
9530 (create_task_copyfn): Likewise.
9531 (maybe_catch_exception): Use gimple_build_eh_filter.
9532 * optabs.c (emit_libcall_block): Update test for no-nonlocal-goto
9533 REG_EH_REGION. Use make_reg_eh_region_note_nothrow_nononlocal.
9534 * passes.c (init_optimization_passes): Add pass_lower_eh_dispatch
9535 and pass_lower_resx.
9536 * print-tree.c (print_node): Dump EH_LANDING_PAD_NR.
9537 * recog.c (peephole2_optimize): Use copy_reg_eh_region_note_backward,
9538 can_throw_internal, can_nonlocal_goto.
9539 * reload1.c (fixup_eh_region_note): Use insn_could_throw_p,
9540 copy_reg_eh_region_note_forward.
9541 (emit_input_reload_insns): Use copy_reg_eh_region_note_forward.
9542 (emit_output_reload_insns): Likewise.
9543 (copy_eh_notes): Remove.
9544 * rtl.def (RESX): Remove.
9545 * rtl.h: Update declarations.
9546 * sese.c (graphite_copy_stmts_from_block): Use maybe_duplicate_eh_stmt.
9547 * tree-cfg.c (make_edges): Handle GIMPLE_EH_DISPATCH.
9548 (update_eh_label): Remove.
9549 (cleanup_dead_labels_eh): New.
9550 (cleanup_deal_labels): Use it instead of update_eh_label.
9551 (gimple_merge_blocks): Update landing pad data structure when
9552 removing a landing pad label.
9553 (remove_useless_stmts_tc): Remove gimple_eh_filter_must_not_throw
9554 test; handle GIMPLE_EH_MUST_NOT_THROW.
9555 (is_ctrl_altering_stmt): Handle GIMPLE_EH_DISPATCH.
9556 (verify_gimple_assign_single): Don't handle EXC_PTR or FILTER_EXPR.
9557 (verify_types_in_gimple_stmt): Handle GIMPLE_EH_DISPATCH.
9558 (verify_stmt): Likewise. Verify landing pads.
9559 (gimple_redirect_edge_and_branch): Handle GIMPLE_EH_DISPATCH.
9560 (gimple_duplicate_bb): Use maybe_duplicate_eh_stmt.
9561 (struct move_stmt_d): Add eh_map.
9562 (move_stmt_eh_region_nr, move_stmt_eh_region_tree_nr): New.
9563 (move_stmt_r): Remap eh region numbers in builtin calls,
9564 resx and eh_dispatch.
9565 (move_block_to_fn): Remove eh_offset parameter. Use
9566 maybe_duplicate_eh_stmt_fn.
9567 (find_outermost_region_in_block): Operate on eh_region pointers
9568 instead of region numbers.
9569 (move_sese_region_to_fn): Expect eh_map instead of eh_offset from
9570 duplicate_eh_regions.
9571 * tree-cfgcleanup.c (tree_forwarder_block_p): Move entry block edge
9572 test earlier. Disallow EH landing pads.
9573 * tree-cfa.c (create_tree_common_ann): Don't set ann->rn.
9574 * tree-flow.h: Update declarations.
9575 (struct tree_ann_common_d): Replace rn with lp_nr.
9576 * tree-inline.c (copy_tree_body_r): Don't handle RESX_EXPR.
9577 (remap_eh_region_nr, remap_eh_region_tree_nr): New.
9578 (remap_gimple_stmt): Remap eh region numbers in builtin calls,
9579 resx and eh_dispatch.
9580 (copy_bb): Use maybe_duplicate_eh_stmt_fn.
9581 (copy_edges_for_bb): Use make_eh_dispatch_edges.
9582 (copy_cfg_body): Expect eh_map instead of eh_region_offset
9583 from duplicate_eh_regions.
9584 (estimate_num_insns): Don't handle EXC_PTR_EXPR or FILTER_EXPR;
9585 update RESX; handle EH_DISPATCH.
9586 (expand_call_inline): Set eh_lp_nr, not eh_region.
9587 (maybe_inline_call_in_expr): Likewise.
9588 * tree-inline.h (struct copy_body_data): Replace eh_region with
9589 eh_lp_nr, eh_region_offset with eh_map.
9590 * tree-optimize.c (execute_fixup_cfg): Use maybe_clean_eh_stmt.
9591 * tree-pass.h (pass_lower_eh_dispatch, pass_lower_resx): New.
9592 * tree-pretty-print.c (dump_generic_node): Don't handle
9593 EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR.
9594 * tree-sra.c (scan_function): Use maybe_clean_eh_stmt.
9595 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Don't handle
9596 EXC_PTR_EXPR, FILTER_EXPR.
9597 * tree-ssa-operands.c (get_expr_operands): Likewise.
9598 * tree-ssa-propagate.c (valid_gimple_rhs_p): Likewise.
9599 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
9600 (ao_ref_init_from_vn_reference): Likewise.
9601 * tree-ssa-sink.c (statement_sink_location): Likewise.
9602 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
9603 (mark_virtual_phi_result_for_renaming): Export. Tidy.
9604 * tree-ssa-pre.c (get_or_alloc_expr_for): Don't handle
9605 EXC_PTR_EXPR, FILTER_EXPR.
9606 (is_exception_related): Remove.
9607 (compute_avail): Don't call it.
9608 * tree-ssa-structalias.c: Remove VEC definitions for int and unsigned.
9609 * tree.c (find_decls_types_in_eh_region): Update for eh_region changes.
9610 (find_decls_types_in_node): Use FOR_ALL_EH_REGION_FN.
9611 (build_common_builtin_nodes): Add enable_cxa_end_cleanup parameter.
9612 Build EH builtins.
9613 (build_resx): Remove.
9614 * tree.def (EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR): Remove.
9615 * tree.h: Update declarations.
9616 (EH_FILTER_MUST_NOT_THROW): Remove.
9617 (struct tree_label_decl): Add eh_landing_pad_nr.
9618 (EH_LANDING_PAD_NR): New.
9619 * value-prof.c (gimple_ic): Tidy variable names. Update for
9620 landing pad numbers.
9621 (gimple_stringop_fixed_value): Tidy variable names. Assert
9622 that neither call stmt can throw.
9623 * vecprim.h (uchar): New.
9624 (VEC(uchar,heap), VEC(uchar,gc)): New.
9625
9626 * c-common.c (c_define_builtins): Update call to
9627 build_common_builtin_nodes.
9628 * c-parser.c (c_parse_file): Don't call
9629 default_init_unwind_resume_libfunc.
9630
9631 2009-09-14 Richard Sandiford <rdsandiford@googlemail.com>
9632
9633 * config/mips/mips-protos.h (mips_cfun_has_cprestore_slot_p): Declare.
9634 (mips_cprestore_address_p): Likewise.
9635 (mips_save_gp_to_cprestore_slot): Likewise.
9636 (mips_restore_gp): Rename to...
9637 (mips_restore_gp_from_cprestore_slot): ...this.
9638 (mips_must_initialize_gp_p): Declare.
9639 (mips_emit_save_slot_move): Likewise.
9640 (mips_output_load_label): Return nothing.
9641 (mips_eh_uses): Declare.
9642 * config/mips/mips.h (TARGET_SPLIT_CALLS): Require epilogue_completed.
9643 (TARGET_CPRESTORE_DIRECTIVE): New macro.
9644 (TARGET_ABSOLUTE_JUMPS): Likewise.
9645 (EH_USES): Likewise.
9646 (FIRST_PSEUDO_REGISTER): Update comment.
9647 (MIPS_ABSOLUTE_JUMP): New macro, extracted from...
9648 (MIPS_CALL): ...here.
9649 (REGISTER_NAMES): Add $cprestore.
9650 * config/mips/mips.c (machine_function): Remove has_gp_insn_p.
9651 Add load_label_length, has_inflexible_gp_insn_p,
9652 has_flexible_gp_insn_p, must_initialize_gp_p and
9653 must_restore_gp_when_clobbered_p.
9654 (mips_expand_call): Don't generate split instructions here.
9655 (mips_split_call): Update the call to mips_restore_gp after
9656 the above name change.
9657 (mips16_cfun_returns_in_fpr_p): Move earlier in file.
9658 (mips_find_gp_ref): New function.
9659 (mips_insn_has_inflexible_gp_ref_p): Likewise.
9660 (mips_cfun_has_inflexible_gp_ref_p): Likewise.
9661 (mips_insn_has_flexible_gp_ref_p): Likewise.
9662 (mips_cfun_has_flexible_gp_ref_p): Likewise.
9663 (mips_function_has_gp_insn): Delete.
9664 (mips_global_pointer): Drop the df_regs_ever_live_p check.
9665 Use the new functions above. Only return INVALID_REGNUM
9666 for TARGET_ABSOLUTE_JUMPS.
9667 (mips_must_initialize_gp_p): New function.
9668 (mips_get_cprestore_base_and_offset): New function, extracted from...
9669 (mips_cprestore_slot): ...here. Take a bool parameter.
9670 (mips_cfun_has_cprestore_slot_p): New function.
9671 (mips_cprestore_address_p): Likewise.
9672 (mips_save_gp_to_cprestore_slot): Likewise.
9673 (mips_restore_gp): Rename to...
9674 (mips_restore_gp_from_cprestore_slot): ...this. Assert
9675 epilogue_completed. Update the call to mips_cprestore_slot.
9676 Test cfun->machine->must_restore_gp_when_clobbered_p.
9677 (mips_direct_save_slot_move_p): New function.
9678 (mips_emit_save_slot_move): Likewise.
9679 (mips_output_cplocal): Test mips_must_initialize_gp_p () instead
9680 of cfun->machine->global_pointer.
9681 (mips_output_function_prologue): Check mips_must_initialize_gp_p ().
9682 (mips_save_reg): Use mips_emit_save_slot_move.
9683 (mips_expand_prologue): Set must_initialize_gp_p.
9684 Use mips_cfun_has_cprestore_slot_p. Use gen_potential_cprestore
9685 for all cprestore saves. Emit a use_cprestore instruction after
9686 setting up the cprestore slot.
9687 (mips_restore_reg): Use mips_emit_save_slot_move.
9688 (mips_process_load_label): New function.
9689 (mips_load_label_length): Likewise.
9690 (mips_output_load_label): Don't return asm: output it here instead.
9691 Use mips_process_load_label.
9692 (mips_adjust_insn_length): Adjust the length of branch instructions
9693 that have length MAX_PIC_BRANCH_LENGTH.
9694 (mips_output_conditional_branch): Update the call to
9695 mips_output_load_label. Assume the branch target is OPERANDS[0]
9696 rather than OPERANDS[1]. Use MIPS_ABSOLUTE_JUMP for absolute jumps.
9697 (mips_output_order_conditional_branch): Swap the meaning of
9698 OPERANDS[0] and OPERANDS[1].
9699 (mips_variable_issue): Don't count ghost instructions.
9700 (mips_expand_ghost_gp_insns): New function.
9701 (mips_reorg): Rerun mips_reorg_process_insns if it returns true.
9702 (mips_output_mi_thunk): Set must_initialize_gp_p.
9703 (mips_eh_uses): New function.
9704 * config/mips/predicates.md (cprestore_save_slot_operand)
9705 (cprestore_load_slot_operand): New predicates.
9706 * config/mips/mips.md (UNSPEC_POTENTIAL_CPRESTORE): New unspec.
9707 (UNSPEC_MOVE_GP): Likewise.
9708 (UNSPEC_CPRESTORE, UNSPEC_RESTORE_GP, UNSPEC_EH_RETURN)
9709 (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT): Bump to make room.
9710 (CPRESTORE_SLOT_REGNUM): New register.
9711 (MAX_PIC_BRANCH_LENGTH): New constant.
9712 (jal_macro): Use MIPS_ABSOLUTE_JUMPS.
9713 (length): Use MAX_PIC_BRANCH_LENGTH as a placeholder for PIC long
9714 branches. Fix commentary.
9715 (loadgp_newabi_<mode>): Change from unspec_volatile to unspec.
9716 Only split if mips_must_initialize_gp_p; expand to nothing otherwise.
9717 Change type to "ghost".
9718 (loadgp_absolute_<mode>): Likewise.
9719 (loadgp_rtp_<mode>): Likewise.
9720 (copygp_mips16): Likewise.
9721 (loadgp_blockage): Remove redundant mode attribute.
9722 (potential_cprestore): New instruction.
9723 (cprestore): Turn into an unspec set.
9724 (use_cprestore): New instruction.
9725 (*branch_fp): Swap operands 0 and 1. Remove redundant mode attribute.
9726 (*branch_fp_inverted): Likewise.
9727 (*branch_order<mode>): Likewise.
9728 (*branch_order<mode>_inverted): Likewise.
9729 (*branch_equality<mode>): Likewise.
9730 (*branch_equality<mode>_inverted): Likewise.
9731 (*branch_bit<bbv><mode>): Likewise.
9732 (*branch_bit<bbv><mode>_inverted): Likewise.
9733 (*branch_equality<mode>_mips16): Remove redundant mode.
9734 (jump): Turn into a define_expand.
9735 (*jump_absolute): New instruction.
9736 (*jump_pic): Likewise.
9737 (*jump_mips16): Rename previously-unnamed pattern. Remove
9738 redundant mode attribute.
9739 (restore_gp): Split on epilogue_completed rather than
9740 reload_completed. Change type to "ghost".
9741 (move_gp<mode>): New instruction.
9742 * config/mips/mips-dsp.md (mips_bposge): Swap operands 0 and 1.
9743 Remove redundant mode attribute.
9744 * config/mips/mips-ps-3d.md (bc1any4t): Likewise.
9745 (bc1any4f, bc1any2t, bc1any2f): Likewise.
9746 (*branch_upper_lower, *branch_upper_lower_inverted): Likewise.
9747
9748 2009-09-14 Michael Meissner <meissner@linux.vnet.ibm.com>
9749
9750 PR target/41210
9751 * config/rs6000/rs6000.c (rs6000_function_value): V2DF and V2DI
9752 are returned in the same register (vs34 or v2) that Altivec vector
9753 types are returned in.
9754 (rs6000_libcall_value): Ditto.
9755
9756 PR target/41331
9757 * config/rs6000/rs6000.c (rs6000_emit_move): Use gen_add3_insn
9758 instead of explicit addsi3/adddi3 calls.
9759 (rs6000_split_multireg_move): Ditto.
9760 (rs6000_emit_allocate_stack): Ditto.
9761 (rs6000_emit_prologue): Ditto.
9762 (rs6000_output_mi_thunk): Ditto.
9763
9764 * config/rs6000/rs6000.md (bswapdi*): Don't assume the pointer
9765 size is 64 bits if we can use 64-bit registers.
9766
9767 2009-09-14 Bernd Schmidt <bernd.schmidt@analog.com>
9768
9769 * config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak
9770 symbols.
9771
9772 From Jie Zhang <jie.zhang@analog.com>:
9773 * config/bfin/bfin.c (bfin_expand_prologue): Ask do_link to
9774 save FP and RETS with saveall attribute.
9775 (bfin_expand_epilogue): Ask do_unlink to restore FP and RETS
9776 with saveall attribute.
9777
9778 * config/bfin/bfin.c (bfin_expand_builtin,
9779 case BFIN_BUILTIN_MULT_1X32X32): Force constants to registers for the
9780 operands.
9781
9782 From Jie Zhang <jie.zhang@analog.com>:
9783 * config/bfin/bfin.c (bfin_expand_builtin): Initialize icodes
9784 before use in two places.
9785 * config/bfin/bfin.md (AREG): Define mode iterator.
9786 (reload_in, reload_out): Use mode iterator AREG.
9787
9788 2009-09-14 Richard Guenther <rguenther@suse.de>
9789
9790 PR middle-end/41350
9791 * dwarf2out.c (dwarf2out_begin_prologue): Adjust non-CFI asm
9792 EH personality path.
9793
9794 2009-09-13 Richard Guenther <rguenther@suse.de>
9795 Rafael Avila de Espindola <espindola@google.com>
9796
9797 * langhooks-def.h (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
9798 (LANG_HOOKS_EH_PERSONALITY): Likewise.
9799 (LANG_HOOKS_INITIALIZER): Adjust.
9800 (lhd_pass_through_t): Declare.
9801 * langhooks.h (struct lang_hooks): Add eh_runtime_type and
9802 eh_personality.
9803 * langhooks.c (lhd_pass_through_t): New function.
9804 * dwarf2out.c (output_call_frame_info, dwarf2out_do_cfi_startproc,
9805 dwarf2out_begin_prologue): Use personality from current_function_decl.
9806 * expr.h (get_personality_function): Declare.
9807 * expr.c (get_personality_function): New function.
9808 (build_personality_function): Likewise.
9809 * libfuncs.h (libfunc_index): Remove LTI_eh_personality.
9810 (eh_personality_libfunc): Remove.
9811 * optabs.c (build_libfunc_function): New function split out from ...
9812 (init_one_libfunc): ... here.
9813 * tree.h (DECL_FUNCTION_PERSONALITY): New.
9814 (tree_function_decl): Add personality.
9815 (lhd_gcc_personality): Declare.
9816 (build_personality_function): Likewise.
9817 * tree.c (gcc_eh_personality_decl): New.
9818 (lhd_gcc_personality): New function.
9819 * except.h (lang_eh_runtime_type): Remove.
9820 (enum eh_personality_kind): New.
9821 (build_personality_function): Declare.
9822 (function_needs_eh_personality): Declare.
9823 * except.c (lang_eh_runtime_type): Remove.
9824 (function_needs_eh_personality): New function.
9825 (add_type_for_runtime): Call lang_hooks.type_for_runtime instead.
9826 (sjlj_emit_function_enter, output_function_exception_table):
9827 Use personality from current_function_decl.
9828 * tree-eh.c (lower_eh_constructs): Set DECL_FUNCTION_PERSONALITY.
9829 * tree-inline.c (tree_can_inline_p): Do not inline across different
9830 EH personalities.
9831 (expand_call_inline): Likewise. Adjust the callers EH personality.
9832 (tree_function_versioning): Copy DECL_FUNCTION_PERSONALITY.
9833 * cgraph.c (cgraph_add_new_function): Set DECL_FUNCTION_PERSONALITY.
9834 * Makefile.in (cgraph.o): Add $(EXCEPT_H) dependency.
9835 (c-parser.o): Likewise
9836 * c-tree.h (c_eh_initialized_p): Remove.
9837 (c_maybe_initialize_eh): Likewise.
9838 * c-decl.c (finish_decl): Don't call c_maybe_initialize_eh.
9839 (finish_decl): Don't call c_maybe_initialize_eh.
9840 (c_eh_initialized_p): Remove.
9841 (c_maybe_initialize_eh): Likewise.
9842 * c-parser.c (c_parser_omp_construct): Likewise.
9843 (c_parse_file): Initialize exception handling.
9844
9845 2009-09-13 Kai Tietz <kai.tietz@onevision.com>
9846
9847 * config.gcc (tm_file): Remove i386/biarch32.h
9848 for i?86-w64-mingw* case.
9849 (i?86-*-mingw* andx86_64-*-mingw*): Add multilib
9850 support.
9851 * config.host: Set for x64 mingw the option
9852 use_long_long_for_widest_fast_int to yes.
9853
9854 2009-09-13 Eric Botcazou <ebotcazou@adacore.com>
9855
9856 * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
9857 * dbxout.c (dbxout_function_end): Do not test DECL_IGNORED_P.
9858 (dbxout_begin_function): Likewise.
9859 * final.c (dwarf2_debug_info_emitted_p): New predicate.
9860 (final_start_function): Do not emit debug info if DECL_IGNORED_P is
9861 set on the function.
9862 (final_end_function): Likewise.
9863 (final_scan_insn): Likewise.
9864 (rest_of_handle_final): Likewise.
9865 * varasm.c (assemble_start_function): Likewise.
9866 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
9867
9868 2009-09-12 Jason Merrill <jason@redhat.com>
9869
9870 * dbgcnt.c (dbg_cnt_process_single_pair): constify.
9871 * opts.c (common_handle_option): constify.
9872
9873 2009-09-12 Gerald Pfeifer <gerald@pfeifer.com>
9874
9875 * doc/install.texi (avr): Remove obsolete reference site.
9876
9877 2009-09-12 Gerald Pfeifer <gerald@pfeifer.com>
9878
9879 * doc/install.texi (Binaries): Adjust AIX link.
9880
9881 2009-09-12 Akim Demaille <demaille@gostai.com>
9882
9883 * doc/invoke.texi (-fstrict-aliasing): Correct two examples.
9884 Use an imperative sentence.
9885
9886 2009-09-11 Richard Henderson <rth@redhat.com>
9887
9888 * gsstruct.def (DEFGSSTRUCT): Remove printable-name argument; add
9889 structure-name and has-tree-operands arguments; update all entries.
9890 * gimple.def (DEFGSCODE): Replace 3rd argument with GSS_symbol;
9891 update all entries.
9892 * gimple.c (gimple_ops_offset_): Use HAS_TREE_OP argument.
9893 (gsstruct_code_size): New.
9894 (gss_for_code_): New.
9895 (gss_for_code): Remove.
9896 (gimple_size): Rewrite using gsstruct_code_size.
9897 (gimple_statement_structure): Move to gimple.h.
9898 * gimple.h (gimple_ops_offset_, gss_for_code_): Declare.
9899 (gss_for_code, gimple_statement_structure): New.
9900 (gimple_ops): Use new arrays; tidy.
9901
9902 2009-09-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9903
9904 * config/pa/predicates.md (symbolic_operand): Require a CONST symbolic
9905 operand to be a PLUS expression.
9906 * config/pa/pa.c (pa_secondary_reload): Likewise.
9907
9908 2009-09-11 Jakub Jelinek <jakub@redhat.com>
9909
9910 * combine.c (propagate_for_debug_subst): Call wrap_constant on top.
9911
9912 * print-rtl.c (print_rtx): Use JUMP_LABEL (in_rtx) instead of
9913 XEXP (in_rtx, 8).
9914
9915 2009-09-11 Bernd Schmidt <bernd.schmidt@analog.com>
9916
9917 From Jie Zhang <jie.zhang@analog.com>:
9918 * doc/extend.texi (node Function Attributes): Document l2
9919 function attribute.
9920 (node Blackfin Variable Attributes): Document l2 variable attributes.
9921
9922 2009-09-11 Loren J. Rittle <ljrittle@acm.org>
9923
9924 * config.gcc (*-*-freebsd*): Enable default_use_cxa_atexit
9925 to match the system compiler's configuration at inflection point.
9926 Add comment to remark a remaining difference with system compiler.
9927
9928 * configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.
9929 * configure: Regenerate.
9930
9931 2009-09-11 Bernd Schmidt <bernd.schmidt@analog.com>
9932
9933 From Jie Zhang <jie.zhang@analog.com>:
9934 * config/bfin/bfin.c (bfin_expand_call): Handle L2 functions.
9935 (bfin_handle_l2_attribute): New.
9936 (bfin_attribute_table): Add l2 attribute.
9937
9938 2009-09-11 Michael Matz <matz@suse.de>
9939
9940 PR middle-end/41275
9941 * tree-inline.c (remap_decls): Don't put DECL_EXTERNAL decls
9942 on the local_decls list.
9943
9944 2009-09-11 Alexandre Oliva <aoliva@redhat.com>
9945
9946 PR debug/41276
9947 PR debug/41307
9948 * cselib.c (cselib_expand_value_rtx_cb): Document callback
9949 interface.
9950 (cselib_expand_value_rtx_1): Use callback for SUBREGs. Adjust
9951 for VALUEs, to implement the documented interface.
9952 * var-tracking.c (vt_expand_loc_callback): Handle SUBREGs.
9953 Adjust for VALUEs and anything else, to implement the
9954 documented interface.
9955
9956 2009-09-10 Nathan Froyd <froydnj@codesourcery.com>
9957
9958 * config/rs6000/rs6000.h (DATA_ALIGNMENT): Check that we are dealing
9959 with actual SPE/paired vector modes before using 64-bit alignment.
9960 Check that TYPE is a REAL_TYPE for TARGET_E500_DOUBLE.
9961
9962 2009-09-10 DJ Delorie <dj@redhat.com>
9963
9964 * config/mep/mep.md (eh_epilogue): Defer until after epilogue is
9965 emitted.
9966
9967 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): New.
9968 * config/mep/mep.c (mep_legitimate_constant_p): New.
9969 * config/mep/mep-protos.h: Prototype it.
9970
9971 2009-09-10 Richard Henderson <rth@redhat.com>
9972
9973 * print-rtl.c (print_rtx): Fix JUMP_LABEL index.
9974
9975 2009-09-10 Jason Merrill <jason@redhat.com>
9976
9977 * tree.c (chain_index): New fn.
9978 * tree.h: Declare it.
9979
9980 2009-09-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9981
9982 * config/sol2-c.c (cmn_err_length_specs): Initialize
9983 scalar_identity_flag.
9984
9985 2009-09-10 Richard Henderson <rth@redhat.com>
9986
9987 * tree.h (struct tree_decl_common): Move align member earlier;
9988 move label_decl_uid member ...
9989 (struct tree_label_decl): ... here.
9990 (LABEL_DECL_UID): Update to match.
9991
9992 * tree-cfg.c (dump_function_to_file): Dump eh tree with TDF_EH,
9993 not TDF_DETAILS.
9994
9995 * tree-cfg.c (gimple_redirect_edge_and_branch): Do
9996 gimple_try_redirect_by_replacing_jump test after no-op and EH tests.
9997
9998 * tree-cfg.c (split_edge_bb_loc): Don't disallow placement at
9999 dest_prev if the edge is complex.
10000
10001 * tree-cfg.c (is_ctrl_stmt): Use a switch.
10002
10003 * tree-cfg.c (gimple_can_merge_blocks_p): Move label and
10004 loop latch tests earlier.
10005
10006 * gimple-iterator.c (gimple_find_edge_insert_loc): Insert
10007 before GIMPLE_RETURN, not after its predecessor; insert
10008 before GIMPLE_RESX.
10009
10010 * gimple-iterator.c (gimple_find_edge_insert_loc): Use
10011 gimple_seq_empty_p to test for no PHI nodes.
10012 * tree-cfg.c (split_critical_edges): Likewise.
10013
10014 * c-common.h (c_dialect_cxx, c_dialect_objc): Boolify.
10015
10016 2009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com>
10017
10018 * final.c (shorten_branches) : Ignore DEBUG_INSN_P instructions
10019 introduced by the VTA branch merge.
10020
10021 2009-09-10 Uros Bizjak <ubizjak@gmail.com>
10022
10023 * ira-conflicts.c: Use fputs or putc instead of fprintf
10024 where appropriate.
10025 * cfg.c: Ditto.
10026 * toplev.c: Ditto.
10027 * tree-switch-conversion.c: Ditto.
10028
10029 2009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com>
10030
10031 * config/picochip/picochip.c : Ignore DEBUG_INSN_P instructions
10032 introduced by the VTA branch merge.
10033
10034 2009-09-10 Uros Bizjak <ubizjak@gmail.com>
10035
10036 Revert:
10037 2009-09-09 Uros Bizjak <ubizjak@gmail.com>
10038
10039 PR rtl-optimization/39779
10040 * expr.c (convert_modes): Return when mode == oldmode after
10041 CONST_INTs are processed.
10042
10043 2009-09-10 Nick Clifton <nickc@redhat.com>
10044
10045 * config/mep/mep.c (mep_encode_section_info): Copy weakness
10046 attribute and referring decl when creating renamed symbol.
10047
10048 2009-09-10 Richard Guenther <rguenther@suse.de>
10049
10050 PR middle-end/41257
10051 * cgraphunit.c (cgraph_emit_thunks): Emit thunks only for
10052 reachable nodes.
10053 (cgraph_finalize_compilation_unit): Compute reachability
10054 before emitting thunks. Properly process aliases before
10055 possibly removing unreachable nodes.
10056
10057 2009-09-10 Richard Guenther <rguenther@suse.de>
10058
10059 PR middle-end/41254
10060 * tree.c (struct free_lang_data_d): Add worklist member.
10061 (find_decls_types_r): Push onto the worklist instead of recursing.
10062 Handle TREE_BINFOs properly.
10063 (find_decls_types): New function wrapped around find_decls_types_r
10064 to process the worklist.
10065 (find_decls_types_in_eh_region): Use it.
10066 (find_decls_types_in_node): Likewise.
10067 (find_decls_types_in_var): Likewise.
10068 (free_lang_data_in_cgraph): Likewise. Free the worklist.
10069 * tree.h (RECORD_OR_UNION_TYPE_P): New.
10070 (AGGREGATE_TYPE_P): Adjust.
10071
10072 2009-09-09 Jason Merrill <jason@redhat.com>
10073
10074 * configure.ac: Check glibc version even if we have an in-tree
10075 assembler.
10076
10077 2009-09-09 Anthony Green <green@moxielogic.com>
10078
10079 * config/moxie/moxie.md (*movsi, *movhi, *movqi): Use xor to load
10080 the constant 0 when appropriate.
10081 * config/moxie/constraints.md: Add constraint O.
10082
10083 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Adjust
10084 to pass up to 6 32-bit argument values in registers.
10085 (moxie_function_arg): Ditto.
10086 (moxie_arg_partial_bytes): Ditto.
10087 * config/moxie/moxie.h (FUNCTION_ARG_ADVANCE): Ditto.
10088 (REG_PARM_STACK_SPACE): Ditto.
10089 (FUNCTION_ARG_REGNO_P): Ditto.
10090
10091 * config/moxie/moxie.c (moxie_expand_prologue): Use dec
10092 instruction to allocate stack space.
10093
10094 2009-09-09 Segher Boessenkool <segher@kernel.crashing.org>
10095
10096 * config/rs6000/rs6000.md (bswapdi2_64bit): Fix
10097 unnecessarily stringent constraints. Fix address
10098 calculation in the splitters.
10099
10100 2009-09-09 Uros Bizjak <ubizjak@gmail.com>
10101
10102 PR rtl-optimization/39779
10103 * expr.c (convert_modes): Return when mode == oldmode after
10104 CONST_INTs are processed.
10105
10106 2009-09-09 Kai Tietz <kai.tietz@onevision.com>
10107
10108 PR/41315
10109 * config/i386.c (ix86_can_use_return_insn_p): Check for padding0, too.
10110 (ix86_expand_prologue): Take frame.padding0 into logic of
10111 to_allocate checks.
10112 (ix86_expand_epilogue): Likewise.
10113
10114 2009-09-09 Jakub Jelinek <jakub@redhat.com>
10115
10116 * config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK):
10117 New variables.
10118 (SHLIB_LINK, SHLIB_INSTALL): Use them.
10119 * config/t-slibgcc-libgcc: New file.
10120 * config.gcc (powerpc*-*-linux*, powerpc*-*-gnu*): Use it.
10121
10122 2009-09-09 Martin Jambor <mjambor@suse.cz>
10123
10124 PR tree-optimization/41089
10125 * tree-sra.c (find_var_candidates): Do not consider va_lists in
10126 early SRA.
10127
10128 2009-09-09 Richard Henderson <rth@redhat.com>
10129
10130 * gimple.h (CASE_GIMPLE_OMP): New.
10131 (is_gimple_omp): Use it.
10132 * tree-cfg.c (is_ctrl_altering_stmt): Likewise.
10133 (verify_gimple_debug): Likewise.
10134
10135 2009-09-09 Richard Guenther <rguenther@suse.de>
10136
10137 PR tree-optimization/41101
10138 * tree-ssa-pre.c (maximal_set): Remove.
10139 (compute_antic_aux): Treat the maximal set as implicitly all ones.
10140 Defer all blocks we didn't visit at least one successor.
10141 (add_to_exp_gen): Do not add to the maximal set.
10142 (make_values_for_phi): Likewise.
10143 (compute_avail): Likewise.
10144 (init_pre): Do not allocate the maximal set.
10145 (execute_pre): Do not dump it.
10146
10147 2009-09-09 Martin Jambor <mjambor@suse.cz>
10148
10149 * tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is
10150 an SSA_NAME rather than a is_gimple_variable.
10151
10152 2009-09-09 Richard Guenther <rguenther@suse.de>
10153
10154 PR middle-end/41317
10155 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Remove
10156 code dealing with plain pointer bases.
10157 (maybe_fold_offset_to_reference): Likewise.
10158 (maybe_fold_stmt_addition): Adjust.
10159
10160 2009-09-09 Richard Guenther <rguenther@suse.de>
10161
10162 * tree.c (free_lang_data_in_type): Do not free the type variant
10163 chains.
10164 (free_lang_data): Merge char_type_node with its properly signed
10165 variant.
10166 (pass_ipa_free): Collect after freeing language specific data.
10167
10168 2009-09-09 Michael Matz <matz@suse.de>
10169
10170 PR middle-end/41268
10171 * cfgexpand.c (expand_gimple_stmt_1): Use an int for storing
10172 SUBREG_PROMOTED_UNSIGNED_P, instead of a bool.
10173 * rtl.h (struct rtx, SUBREG_PROMOTED_UNSIGNED_P): Update comments
10174 to reflect reality.
10175
10176 2009-09-08 DJ Delorie <dj@redhat.com>
10177
10178 * config/mep/mep.c (conversions[]): Add "ml" pattern.
10179
10180 2009-09-04 Jason Merrill <jason@redhat.com>
10181
10182 * tree.c (tree_find_value): Remove.
10183 * tree.h: Remove prototype.
10184 * varasm.c (assemble_external): Use value_member instead.
10185
10186 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
10187
10188 * toplev.c (process_options): Choose default debugging type when
10189 gtoggle enables debug info and type is unset.
10190
10191 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
10192
10193 PR debug/41276
10194 PR debug/41307
10195 * cselib.c (cselib_expand_value_rtx_1): Don't return copy of
10196 invalid subreg.
10197
10198 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
10199
10200 * configure: Rebuilt with modified libtool.m4.
10201
10202 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
10203
10204 PR debug/41229
10205 PR debug/41291
10206 PR debug/41300
10207 * tree-ssa.c (execute_update_addresses_taken): Update debug insns.
10208
10209 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
10210
10211 * tree-ssa-loop-ivopts.c (get_phi_with_result): Remove.
10212 (remove_statement): Likewise.
10213 (rewrite_use_nonlinear_expr): Adjust.
10214 (remove_unused_ivs): Collect SSA NAMEs to remove and call...
10215 * tree-ssa.c (release_defs_bitset): ... this. New.
10216 * tree-flow.h (release_defs_bitset): Declare.
10217
10218 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
10219
10220 PR debug/41232
10221 * tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts
10222 in the middle block.
10223
10224 2009-09-08 Kai Tietz <kai.tietz@onevision.com>
10225
10226 * tree-ssa-reassoc.c (find_operand_rank): Cast pointer
10227 via intptr_t to long type.
10228 (insert_operand_rank): Cast long type via intptr_t to
10229 pointer type.
10230 * genattrtab.c (RTL_HASH): Use intptr_t to cast from
10231 pointer to scalar.
10232 * c-pretty-print.c (pp_c_tree_decl_identifier): Cast
10233 from pointer to unsigned via uintptr_t.
10234
10235 * configure.ac (GCC_STDINT_TYPES): Initialize intptr_t,
10236 uintptr_t, HAVE_INTTYPES_H, HAVE_STDINT_H, HAVE_UINTPTR_T,
10237 and HAVE_INTPTR_T.
10238 * configure: Regenerated.
10239 * config.in: Regenerated
10240 * system.h (stdint.h): Add include.
10241 (inttypes.h): Likewise.
10242 * Makefile.in (aclocal): Add config/stdint.m4.
10243 * aclocal.m4: Regenerated.
10244
10245 2009-09-08 Bernd Schmidt <bernd.schmidt@analog.com>
10246
10247 * config/bfin/bfin.c (np_check_regno, np_after_branch): New static
10248 variables.
10249 (note_np_check_stores): New function.
10250 (harmless_null_pointer_p): New function.
10251 (trapping_loads_p): New args NP_REG and AFTER_NP_BRANCH. Callers
10252 changed. Take into account whether we're in the shadow of a condjump
10253 that tested NP_REG for NULL.
10254 Lose all code that tested for SEQUENCEs.
10255 (workaround_speculation): Avoid inserting NOPs for loads that are
10256 either always executed or a NULL pointer.
10257
10258 2009-09-08 Jan Hubicka <jh@suse.cz>
10259
10260 * doc/invoke.texi (early-inlining-insns): Reduce from 12 to 8.
10261 * params.def (early-inlining-insns): Likewise.
10262
10263 2009-09-08 Jakub Jelinek <jakub@redhat.com>
10264
10265 PR rtl-optimization/41239
10266 * sched-int.h (struct deps): Add last_function_call_may_noreturn field.
10267 * sched-rgn.c (deps_join): Join also last_function_call_may_noreturn
10268 lists.
10269 * sched-deps.c (sched_analyze_insn): Prevent moving trapping insns
10270 across calls, as the calls might not always return normally.
10271 (call_may_noreturn_p): New function.
10272 (deps_analyze_insn): Update last_function_call_may_noreturn list.
10273 (init_deps): Initialize it.
10274 (remove_from_deps): Also remove calls from
10275 last_function_call_may_noreturn list.
10276
10277 2009-09-07 Richard Henderson <rth@redhat.com>
10278
10279 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are
10280 more VR->OPERANDS than LHS operands. Free LHS before returning.
10281
10282 2009-09-07 Bernd Schmidt <bernd.schmidt@analog.com>
10283
10284 * config/bfin/bfin.md (UNSPEC_VOLATILE_STALL): New constant.
10285 (attr "addrtype"): New member "spreg".
10286 Use it if mem_spfp_address_operand is true for the address.
10287 (attr "type"): New entry "stall".
10288 (cpu_unit "load"): New.
10289 (insn_reservations "load32", "loadp", "loadi"): Add reservation of
10290 "load".
10291 (insn_reservation "loadsp"): New.
10292 (insn_reservation "load_stall1"): New.
10293 (insn_reservation "load_stall3"): New.
10294 (stall): New insn.
10295 * config/bfin/predicates.md (const1_operand, const3_operand): New.
10296 (mem_p_address_operand): Exclude stack and frame pointer based
10297 addresses.
10298 (mem_spfp_address_operand): New; match them here.
10299 * config/bfin/bfin.c (add_sched_insns_for_speculation): New function.
10300 (bfin_reorg): Call it if scheduling insns.
10301 (bfin_gen_bundles): Remove dummy insns created by
10302 add_sched_insns_for_speculation.
10303
10304 From Jie Zhang <jie.zhang@analog.com>:
10305 * config/bfin/bfin-protos.h (enum bfin_cpu_type, bfin_cpu_type,
10306 bfin_si_revision, bfin_workarounds): Move these ...
10307 * config/bfin/bfin.h: ... here.
10308
10309 From Mike Frysinger <michael.frysinger@analog.com>
10310 * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF542M,
10311 BFIN_CPU_BF544M, BFIN_CPU_BF547M, BFIN_CPU_BF548M, and BFIN_CPU_BF549M.
10312 * config/bfin/bfin.c (bfin_cpus[]): Add 0.3 for bf542m, bf544m,
10313 bf547m, bf548m, and bf549m.
10314 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF542M__
10315 for BFIN_CPU_BF542M, __ADSPBF544M__ for BFIN_CPU_BF544M,
10316 __ADSPBF547M__ for BFIN_CPU_BF547M, __ADSPBF548M__ for
10317 BFIN_CPU_BF548M, and __ADSPBF549M__ for BFIN_CPU_BF549M.
10318 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
10319 bf542m-none, bf544m-none, bf547m-none, bf548m-none, and bf549m-none.
10320 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
10321 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
10322 * doc/invoke.texi (Blackfin Options): Document that -mcpu now accepts
10323 bf542m, bf544m, bf547m, bf548m, and bf549m.
10324
10325 From Jie Zhang <jie.zhang@analog.com>:
10326 * config/bfin/predicates.md (p_register_operand): New predicate.
10327 (dp_register_operand): New predicate.
10328 * config/bfin/bfin-protos.h (WA_05000074): Define.
10329 (ENABLE_WA_05000074): Define.
10330 * config/bfin/bfin.c (bfin_cpus[]): Add WA_05000074 for all cpus.
10331 (bfin_gen_bundles): Put dsp32shiftimm instruction in slot[0].
10332 * config/bfin/bfin.md (define_attr type): Add dsp32shiftimm.
10333 (define_attr addrtype): Allow load/store register to be P register.
10334 (define_attr storereg): New.
10335 (define_cpu_unit anomaly_05000074): New.
10336 (define_insn_reservation dsp32shiftimm): New.
10337 (define_insn_reservation dsp32shiftimm_anomaly_05000074): New.
10338 (define_insn_reservation loadp): Cannot use slot2.
10339 (define_insn_reservation loadsp): Cannot use slot2.
10340 (define_insn_reservation storep): Cannot use slot2. Does not
10341 apply when working around 05000074.
10342 (define_insn_reservation storep_anomaly_05000074): New.
10343 (define_insn_reservation storei): Does not apply when working
10344 around 05000074.
10345 (define_insn_reservation storei_anomaly_05000074): New.
10346 (define_attr length): Add dsp32shiftimm case.
10347 (define_insn movsi_insn32, movsi_insv, ashlsi3_insn, ashrsi3,
10348 ror_one, rol_one, lshrsi3, lshrpdi3, ashrpdi3, movhiv2hi_low,
10349 movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi,
10350 ssashiftv2hi3, ssashifthi3, ssashiftsi3, lshiftv2hi3, lshifthi3):
10351 Set type as dsp32shiftimm for dsp32shiftimm alternatives.
10352
10353 2009-09-07 Martin Jambor <mjambor@suse.cz>
10354
10355 PR middle-end/41282
10356 * tree-sra.c (create_artificial_child_access): Return NULL if
10357 build_ref_for_offset fails.
10358 (propagate_subacesses_accross_link): Allow build_ref_for_offset
10359 and create_artificial_child_access to fail.
10360
10361 2009-09-06 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
10362
10363 PR c++/41214
10364 * unwind-dw2.c (uw_init_context_1): Mark noinline.
10365 * config/ia64/unwind-ia64.c (uw_init_context_1): Likewise.
10366 * config/xtensa/unwind-dw2-xtensa.c (uw_init_context_1): Likewise.
10367
10368 2009-09-07 Bernd Schmidt <bernd.schmidt@analog.com>
10369
10370 * config/bfin/bfin.c (bfin_optimize_loop): When creating a new basic
10371 block, ensure it has an exit edge. Emit a barrier after a jump.
10372
10373 2009-09-07 Nick Clifton <nickc@redhat.com>
10374
10375 * gcc.c (this_is_linker_script): New variable. Like
10376 this_is_library_file but for the %T constructor.
10377 (end_going_arg): If this_is_linker_script is set then locate the
10378 script and insert a --script switch before it
10379 (do_spec_2): Initialise this_is_linker_script.
10380 (do_spec_1): Likewise. Handle %T construct.
10381 (eval_spec_function): Preserve this_is_linker_script.
10382 * doc/invoke.texi: Document %T construct in spec files.
10383 * config/m32c/m32c.h (LIB_SPEC): Use it.
10384
10385 2009-09-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10386
10387 * rtl.h (PREFETCH_SCHEDULE_BARRIER_P): New macro.
10388 * sched-deps.c (sched_analyze_2): Make prefetches a hard barrier
10389 when volatile flag is set.
10390 * doc/rtl.texi (PREFETCH_SCHEDULE_BARRIER_P): Add documentation pieces.
10391
10392 2009-09-06 Eric Botcazou <ebotcazou@adacore.com>
10393
10394 PR bootstrap/41241
10395 * combine-stack-adj.c (try_apply_stack_adjustment): Handle stores.
10396 (combine_stack_adjustments_for_block): Allow insns between stack
10397 adjustments and stores with corresponding pre-(dec|inc)rement or
10398 pre-modify operation.
10399
10400 2009-09-06 Jakub Jelinek <jakub@redhat.com>
10401
10402 PR bootstrap/41241
10403 * combine-stack-adj.c (struct csa_memlist): Rename to...
10404 (struct csa_reflist): ... this. Rename mem field to ref.
10405 (free_csa_memlist): Rename to...
10406 (free_csa_reflist): ... this.
10407 (record_one_stack_memref): Rename to...
10408 (record_one_stack_ref): ... this. Handle also REG_P.
10409 (try_apply_stack_adjustment): Handle also REG_P.
10410 (struct record_stack_memrefs_data): Rename to...
10411 (struct record_stack_refs_data): ... this. Rename memlist field to
10412 reflist.
10413 (record_stack_memrefs): Rename to...
10414 (record_stack_refs): ... this. For DEBUG_INSNs keep traversing
10415 subexpressions instead of failing when a MEM contains SP references.
10416 For SP itself in DEBUG_INSNs queue it also onto reflist chain.
10417 (combine_stack_adjustments_for_block): Adjust for mem to ref renaming.
10418
10419 2009-09-06 Richard Guenther <rguenther@suse.de>
10420
10421 PR middle-end/41144
10422 * tree.c (build_array_type): Do not record types marked
10423 with structural equality in the canonical type hashtable.
10424
10425 2009-09-06 Richard Guenther <rguenther@suse.de>
10426
10427 PR middle-end/41261
10428 * tree-ssa-alias.c (refs_may_alias_p_1): Bail out for function decls.
10429
10430 2009-09-05 Richard Guenther <rguenther@suse.de>
10431
10432 PR middle-end/41181
10433 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use the correct type.
10434
10435 2009-09-05 Richard Guenther <rguenther@suse.de>
10436
10437 PR debug/41273
10438 * tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops.
10439
10440 2009-09-05 Richard Guenther <rguenther@suse.de>
10441
10442 PR middle-end/41271
10443 * tree-ssa.c (useless_type_conversion_p): Drop qualifiers
10444 before comparing function argument types.
10445
10446 2009-09-05 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10447
10448 PR target/41024
10449 * config/i386/mingw-w64.h (ASM_SPEC): Pass -v instead of -V to
10450 the assembler.
10451
10452 2009-09-04 Uros Bizjak <ubizjak@gmail.com>
10453
10454 Revert:
10455 2009-08-18 Uros Bizjak <ubizjak@gmail.com>
10456
10457 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
10458 locators before emit_insn is called.
10459
10460 2009-09-04 Vladimir Makarov <vmakarov@redhat.com>
10461
10462 PR bootstrap/41241
10463 * ira.c (update_equiv_reg): Revert my previous patch for the PR.
10464 * reginfo.c (resize_reg_info): Call allocate_reg_info if necessary.
10465 (reginfo_init): Don't call allocate_reg_info.
10466
10467 2009-09-04 Uros Bizjak <ubizjak@gmail.com>
10468
10469 PR target/41262
10470 * config/alpha/alpha.c (alpha_does_function_need_gp): Use
10471 NONDEBUG_INSN_P instead of INSN_P.
10472
10473 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
10474
10475 PR debug/41225
10476 * tree-vect-stmts.c (vect_stmt_relevant_p): Skip debug uses.
10477
10478 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
10479
10480 PR target/41252
10481 * config/arm/vfp.md (*cmpdf_split_vfp): Fix src mode in the second
10482 pattern of the split.
10483
10484 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
10485
10486 * toplev.c (process_options): Move setter of flag_var_tracking
10487 before other tests that depend on it. Move down setter of
10488 flag_rename_registers. Don't enable var-tracking-assignments
10489 by default if selective scheduling is enabled. Warn if both
10490 are enabled.
10491
10492 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
10493
10494 * var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match
10495 comment. Use switch statement to catch overlaps between rtx
10496 and tree codes. Accept FUNCTION_DECLs in addition to those in...
10497 (IS_DECL_CODE): ... here. Remove.
10498 (check_value_is_not_decl): Remove.
10499 (dv_from_decl, dv_from_value): Check after conversion.
10500
10501 2009-09-04 Richard Guenther <rguenther@suse.de>
10502
10503 PR middle-end/41257
10504 * (cgraph_finalize_compilation_unit): Move finalizing aliases
10505 after emitting tunks. Move emitting thunks and ctors from ...
10506 (cgraph_optimize): ... here. Remove redundant
10507 cgraph_analyze_functions.
10508 * varasm.c (find_decl_and_mark_needed): Remove no longer
10509 necessary check.
10510 (finish_aliases_1): Adjust check for thunk aliases.
10511
10512 2009-09-04 Daniel Gutson <dgutson@codesourcery.com>
10513
10514 * config/arm/arm.md (ctzsi2): Added braces
10515 to avoid warning that broke booststrap.
10516
10517 2009-09-04 Martin Jambor <mjambor@suse.cz>
10518
10519 PR tree-optimization/41112
10520 * tree-sra.c (build_ref_for_offset_1): Signal that we cannot
10521 handle variable-bounded arrays.
10522 (expr_with_var_bounded_array_refs_p): New function.
10523 (analyze_access_subtree): Call expr_with_var_bounded_array_refs_p.
10524
10525 2009-09-04 Wolfgang Gellerich <gellerich@de.ibm.com>
10526
10527 * config/s390/2097.md: Removed two incorrect bypasses.
10528 (z10_fsimpdf): Fixed latency.
10529 (z10_fhex): New insn_reservation.
10530 (z10_floaddf): Fixed latency.
10531 (z10_floadsf): Fixed latency.
10532 (z10_ftrunctf): Fixed latency.
10533 (z10_ftruncdf): Fixed latency.
10534 * config/s390/s390.c (z10_cost): Fixed values.
10535 (s390_adjust_priority): Added z10 path.
10536 * config/s390/s390.md (type): Added fhex.
10537 (*mov<mode>_64dfp): Updated type attribute.
10538 (*mov<mode>_64): Updated type attribute.
10539 (*mov<mode>_31): Updated type attribute.
10540 (*mov<mode>"): Likewise.
10541 * config/s390/2084.md (x_fsimpdf): Updated condition.
10542
10543 2009-09-04 Andreas Krebbel <krebbel1@de.ibm.com>
10544
10545 * config/s390/s390.md ("*fmadd<mode>", "*fmsub<mode>"): Enable mem
10546 RTXs in the predicate for operand 1.
10547
10548 2009-09-03 Daniel Gutson <dgutson@codesourcery.com>
10549
10550 * config/arm/arm.md (UNSPEC_RBIT): New constant.
10551 (rbitsi2): New insn.
10552 (ctzsi2): New expand.
10553 * config/arm/arm.h (CTZ_DEFINED_VALUE_AT_ZERO): New macro.
10554
10555 2009-09-03 Martin Jambor <mjambor@suse.cz>
10556
10557 * tree-sra.c (duplicate_expr_for_different_base): Removed.
10558 (create_artificial_child_access): Use build_ref_for_offset instead
10559 of duplicate_expr_for_different_base.
10560 (propagate_subacesses_accross_link): Likewise.
10561
10562 2009-09-03 Richard Sandiford <rdsandiford@googlemail.com>
10563
10564 * config/mips/mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead
10565 of INSN_P.
10566 (mips16e_collect_argument_saves): Skip debug instructions.
10567 (mips_74k_agen_init): Use CALL_P || JUMP_P instead of !NONJUMP_INSN_P.
10568 (mips16_lay_out_constants): Use USEFUL_INSN_P instead of INSN_P.
10569 (r10k_insert_cache_barriers): Likewise.
10570 (mips_reorg_process_insns): Likewise.
10571
10572 2009-09-03 Vladimir Makarov <vmakarov@redhat.com>
10573
10574 PR bootstrap/41241
10575 * ira.c (update_equiv_reg): Remove check on class likely spill.
10576
10577 2009-09-03 Jakub Jelinek <jakub@redhat.com>
10578
10579 PR debug/41236
10580 * dwarf2out.c (loc_descriptor): Don't use SUBREG_REG macro on
10581 SIGN_EXTEND or ZERO_EXTEND. Don't assume there is a REG inside of
10582 it or SUBREG.
10583
10584 PR debug/41238
10585 * function.c (assign_parm_find_stack_rtl): Don't set mem attributes on
10586 the stack slot if it is passed by invisible reference.
10587 * var-tracking.c (vt_add_function_parameters): Handle arguments passed
10588 by invisible reference.
10589
10590 2009-09-03 Bernd Schmidt <bernd.schmidt@analog.com>
10591
10592 * config/bfin/linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
10593 * config/bfin/uclinux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
10594 * config/bfin/bfin.h (TARGET_SUPPORTS_SYNC_CALLS): Provide default of
10595 0.
10596 * config/bfin/sync.md: New file.
10597 * config/bfin/bfin.md: Include it.
10598 (UNSPEC_ATOMIC): New.
10599 (UNSPEC_ONES): Provide a unique number.
10600
10601 From Jie Zhang <jie.zhang@analog.com>:
10602 * config/bfin/bfin.c (ret_regs): New.
10603 (must_save_fp_p): Don't return true because of frame_pointer_needed.
10604 (must_save_rets_p): New.
10605 (n_regs_saved_by_prologue): Use must_save_rets_p instead of
10606 current_function_is_leaf.
10607 (do_link): Likewise.
10608 (do_unlink): Likewise.
10609 (expand_interrupt_handler_prologue): Use ret_regs array.
10610 (expand_interrupt_handler_epilogue): Use ret_regs array and
10611 pass return register to gen_return_internal.
10612 (bfin_expand_epilogue): Pass return register to
10613 gen_return_internal.
10614 (bfin_expand_call): Explicitly clobber RETS.
10615 * config/bfin/bfin.h (FUNCTION_RETURN_REGISTERS): Define.
10616 * config/bfin/bfin.md (call_symbol_fdpic, call_value_symbol_fdpic,
10617 call_insn_fdpic, call_value_insn_fdpic, call_symbol,
10618 call_value_symbol, call_insn, call_value_insn): Explicitly clobber
10619 RETS.
10620 (return_internal): Take a reg rtx rather than the register number.
10621
10622 2009-09-03 H.J. Lu <hongjiu.lu@intel.com>
10623
10624 * tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT
10625 when comparing against estimated_loop_iterations_int return.
10626
10627 2009-09-03 Richard Guenther <rguenther@suse.de>
10628
10629 * dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
10630 eh_personality_libfunc.
10631
10632 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
10633
10634 * tree-parloops.c (separate_decls_in_region): Add space.
10635
10636 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
10637
10638 * tree-parloops.c (separate_decls_in_region): Change the condition
10639 checking if there are reductions in the loop.
10640
10641 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
10642
10643 PR tree-optimization/38275
10644 * tree-parloops.c (parallelize_loops): Replace profitability condition
10645 for expected number of iterations.
10646
10647 2009-09-03 Alexandre Oliva <aoliva@redhat.com>
10648
10649 * doc/invoke.texi (BUILD_CONFIG): Document --with-build-config.
10650 (bootstrap-debug): Explain conditions in which it becomes default.
10651 (bootstrap-debug-big): Rather than duplicate bootstrap-debug,
10652 make it add to it.
10653
10654 2009-09-03 Namhyung Kim <namhyung@gmail.com>
10655
10656 * doc/invoke.texi (Optimize Options): Move
10657 -finline-small-functions to the -O2 list.
10658
10659 2009-09-03 Alexandre Oliva <aoliva@redhat.com>
10660
10661 * toplev.c (process_options): Enable var-tracking-assignments
10662 by default if var-tracking is enabled.
10663
10664 2009-09-02 David Daney <ddaney@caviumnetworks.com>
10665
10666 * cfgbuild.c (find_bb_boundaries): Split blocks containing a
10667 barrier.
10668 * emit-rtl.c (prev_nonnote_insn_bb): New function.
10669 * rtl.h (prev_nonnote_insn_bb): Declare it.
10670
10671 2009-09-03 Diego Novillo <dnovillo@google.com>
10672
10673 * cgraph.c (cgraph_node_for_decl): New.
10674 * cgraph.h (cgraph_node_for_decl): Declare.
10675 * tree.c (host_integerp): Return 0 if T is NULL.
10676
10677 2009-09-03 Diego Novillo <dnovillo@google.com>
10678
10679 * tree.h (struct alias_pair): Move from varasm.c.
10680 (alias_pairs): Likewise.
10681 (TYPE_MAXVAL): Define.
10682 (TYPE_MINVAL): Define.
10683 (iterative_hash_host_wide_int): Declare.
10684 (remove_unreachable_alias_pairs): Declare.
10685 * tree-pass.h (pass_ipa_free_lang_data): Declare.
10686 * diagnostic.c (default_diagnostic_starter): Make extern.
10687 (default_diagnostic_finalizer): Make extern.
10688 * diagnostic.h (default_diagnostic_starter): Declare.
10689 (default_diagnostic_finalizer): Declare.
10690 (default_tree_printer): Declare.
10691 * toplev.c (default_tree_printer): Make extern.
10692
10693 2009-09-03 Richard Guenther <rguenther@suse.de>
10694 Diego Novillo <dnovillo@google.com>
10695
10696 * cgraph.c (cgraph_add_new_function): Remove gimplification.
10697 * cgraphunit.c (cgraph_expand_function): Do not emit
10698 associated thunks from here.
10699 (cgraph_emit_thunks): New.
10700 (cgraph_optimize): Call it.
10701 Return if any IPA pass finds an error.
10702 * varasm.c (finish_aliases_1): Ignore errorneous aliases used
10703 by thunks.
10704
10705 2009-09-03 Simon Baldwin <simonb@google.com>
10706 Rafael Espindola <espindola@google.com>
10707 Richard Guenther <rguenther@suse.de>
10708 Doug Kwan <dougkwan@google.com>
10709 Diego Novillo <dnovillo@google.com>
10710
10711 * tree.c: Include tree-pass.h, langhooks-def.h,
10712 diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
10713 (free_lang_data_in_type): New.
10714 (need_assembler_name_p): New.
10715 (free_lang_data_in_block): New.
10716 (free_lang_data_in_decl): New.
10717 (struct free_lang_data_d): New.
10718 (add_tree_to_fld_list): New.
10719 (find_decls_types_r): New.
10720 (get_eh_types_for_runtime): New.
10721 (find_decls_types_in_eh_region): New.
10722 (find_decls_types_in_node): New.
10723 (find_decls_types_in_var): New.
10724 (free_lang_data_in_cgraph): New.
10725 (free_lang_data): New.
10726 (gate_free_lang_data): New.
10727 (pass_ipa_free_lang_data): New.
10728
10729 2009-09-03 Diego Novillo <dnovillo@google.com>
10730
10731 * timevar.def (TV_IPA_FREE_LANG_DATA): Define.
10732 * langhooks.h (struct lang_hooks): Add field free_lang_data.
10733 (lang_hooks): Remove const qualifier.
10734 * ipa.c (cgraph_remove_unreachable_nodes): Call
10735 remove_unreachable_alias_pairs.
10736 * except.c (add_type_for_runtime): Check if TYPE has
10737 already been converted.
10738 (lookup_type_for_runtime): Likewise.
10739 (check_handled): Handle converted types.
10740 * varasm.c (remove_unreachable_alias_pairs): New.
10741 * gimple.c: Include demangle.h.
10742 (gimple_decl_printable_name): New.
10743 (gimple_fold_obj_type_ref): New.
10744 * gimple.h (gimple_decl_printable_name): Declare.
10745 (gimple_fold_obj_type_ref): Declare.
10746 * passes.c (init_optimization_passes): Add pass
10747 pass_ipa_free_lang_data.
10748 * langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
10749 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
10750
10751 2009-09-03 Diego Novillo <dnovillo@google.com>
10752
10753 * c-lang.c (lang_hooks): Remove const qualifier.
10754
10755 2009-09-02 Loren James Rittle <ljrittle@acm.org>
10756
10757 * doc/install.texi (*-*-freebsd*): Update target information.
10758
10759 2009-09-02 Anatoly Sokolov <aesok@post.ru>
10760
10761 * hard-reg-set.h (call_fixed_regs): Remove.
10762 * reginfo.c (call_fixed_regs): Remove.
10763 (init_reg_sets_1): Remove initialization of call_fixed_regs.
10764 (globalize_reg): Don't use call_fixed_regs.
10765 * caller-save.c (init_caller_save): Use call_fixed_reg_set instead of
10766 call_fixed_regs.
10767
10768 2009-09-01 Michael Matz <matz@suse.de>
10769
10770 * expr.h (emit_storent_insn, expand_expr_real_1,
10771 expand_expr_real_2): Declare.
10772 * expr.c (emit_storent_insn, expand_expr_real_1,
10773 expand_expr_real_2): Export.
10774 (store_expr): Setting and evaluating dont_return_target is useless.
10775 (expand_expr_real_1, <case GOTO_EXPR, RETURN_EXPR, SWITCH_EXPR,
10776 LABEL_EXPR and ASM_EXPR>): Move to gcc_unreachable.
10777 * except.c (expand_resx_expr): Rename to ...
10778 (expand_resx_stmt): ... this. Rewrite to take gimple statement.
10779 * except.h (expand_resx_stmt): Declare.
10780 * stmt.c: Add include gimple.h
10781 (expand_asm_expr): Rename to ...
10782 (expand_asm_stmt): ... this. Rewrite to take gimple statement.
10783 (expand_case): Rewrite to take gimple statement.
10784 * tree.h (expand_asm_stmt): Declare.
10785 (expand_case): Change prototype.
10786 * Makefile.in (stmt.o): Depend on gimple.h.
10787 * builtins.c (expand_builtin_synchronize): Build gimple asm
10788 statement, not an ASM_EXPR.
10789 * cfgexpand.c (gimple_cond_pred_to_tree, set_expr_location_r,
10790 gimple_to_tree, release_stmt_tree): Remove.
10791 (expand_gimple_cond): Don't call gimple_cond_pred_to_tree or
10792 ggc_free, but hold comparison code and operands separately.
10793 Call jumpif_1 and jumpifnot_1 instead of jumpif and jumpifnot.
10794 (expand_call_stmt, expand_gimple_stmt_1,
10795 expand_gimple_stmt): New helpers.
10796 (expand_gimple_tailcall): Don't call gimple_to_tree, expand_expr_stmt,
10797 release_stmt_tree. Call expand_gimple_stmt instead.
10798 (expand_gimple_basic_block): Ditto.
10799
10800 * calls.c (emit_call_1): Don't look at EH regions here, make
10801 fntree parameter useless.
10802 (expand_call): New local rettype for TREE_TYPE(exp), use it
10803 throughout. Remove local p, use addr instead.
10804 Don't look at EH regions here.
10805
10806 2009-09-02 Vladimir Makarov <vmakarov@redhat.com>
10807
10808 * doc/invoke.texi (-fsched-pressure): Document it.
10809 (-fsched-reg-pressure-heuristic): Remove it.
10810
10811 * reload.c (ira.h): Include.
10812 (find_reloads): Add choosing reload on number of small spilled
10813 classes.
10814
10815 * haifa-sched.c (ira.h): Include.
10816 (sched_pressure_p, sched_regno_cover_class, curr_reg_pressure,
10817 saved_reg_pressure, curr_reg_live, saved_reg_live,
10818 region_ref_regs): New variables.
10819 (sched_init_region_reg_pressure_info, mark_regno_birth_or_death,
10820 initiate_reg_pressure_info, setup_ref_regs,
10821 initiate_bb_reg_pressure_info, save_reg_pressure,
10822 restore_reg_pressure, dying_use_p, print_curr_reg_pressure): New
10823 functions.
10824 (setup_insn_reg_pressure_info): New function.
10825 (rank_for_schedule): Add pressure checking and insn issue time.
10826 Remove comparison of insn reg weights.
10827 (ready_sort): Set insn reg pressure info.
10828 (update_register_pressure, setup_insn_max_reg_pressure,
10829 update_reg_and_insn_max_reg_pressure,
10830 sched_setup_bb_reg_pressure_info): New functions.
10831 (schedule_insn): Add code for printing and updating reg pressure info.
10832 (find_set_reg_weight, find_insn_reg_weight): Remove.
10833 (ok_for_early_queue_removal): Do nothing if pressure_only_p.
10834 (debug_ready_list): Print reg pressure info.
10835 (schedule_block): Ditto. Check insn issue time.
10836 (sched_init): Set up sched_pressure_p. Allocate and set up some
10837 reg pressure related info.
10838 (sched_finish): Free some reg pressure related info.
10839 (fix_tick_ready): Make insn always ready if pressure_p.
10840 (init_h_i_d): Don't call find_insn_reg_weight.
10841 (haifa_finish_h_i_d): Free insn reg pressure info.
10842
10843 * ira-int.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
10844 ira_memory_move_cost, ira_class_hard_regs,
10845 ira_class_hard_regs_num, ira_no_alloc_regs,
10846 ira_available_class_regs, ira_reg_class_cover_size,
10847 ira_reg_class_cover, ira_class_translate): Move to ira.h.
10848
10849 * ira-lives.c (single_reg_class): Check mode to find how many
10850 registers are necessary for operand.
10851 (ira_implicitly_set_insn_hard_regs): New.
10852
10853 * common.opt (fsched-pressure): New options.
10854 (fsched-reg-pressure-heuristic): Remove.
10855
10856 * ira.c (setup_eliminable_regset): Rename to
10857 ira_setup_eliminable_regset. Make it external.
10858 (expand_reg_info): Pass cover class to setup_reg_classes.
10859 (ira): Call resize_reg_info instead of allocate_reg_info.
10860
10861 * sched-deps.c: Include ira.h.
10862 (implicit_reg_pending_clobbers, implicit_reg_pending_uses): New.
10863 (create_insn_reg_use, create_insn_reg_set, setup_insn_reg_uses,
10864 reg_pressure_info, insn_use_p, mark_insn_pseudo_birth,
10865 mark_insn_hard_regno_birth, mark_insn_reg_birth,
10866 mark_pseudo_death, mark_hard_regno_death, mark_reg_death,
10867 mark_insn_reg_store, mark_insn_reg_clobber,
10868 setup_insn_reg_pressure_info): New.
10869 (sched_analyze_1): Update implicit_reg_pending_uses.
10870 (sched_analyze_insn): Find implicit sets, uses, clobbers of regs.
10871 Use them to create dependencies. Set insn reg uses and pressure
10872 info. Process reg_pending_uses in one place.
10873 (free_deps): Free implicit sets.
10874 (remove_from_deps): Remove implicit sets if necessary. Check
10875 implicit sets when clearing reg_last_in_use.
10876 (init_deps_global): Clear implicit_reg_pending_clobbers and
10877 implicit_reg_pending_uses.
10878
10879 * ira.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
10880 ira_memory_move_cost, ira_class_hard_regs,
10881 ira_class_hard_regs_num, ira_no_alloc_regs,
10882 ira_available_class_regs, ira_reg_class_cover_size,
10883 ira_reg_class_cover, ira_class_translate): Move from ira-int.h.
10884 (ira_setup_eliminable_regset, ira_set_pseudo_classes,
10885 ira_implicitly_set_insn_hard_regs): New prototypes.
10886
10887 * ira-costs.c (pseudo_classes_defined_p, allocno_p,
10888 cost_elements_num): New variables.
10889 (allocno_costs, total_costs): Rename to costs and
10890 total_allocno_costs.
10891 (COSTS_OF_ALLOCNO): Rename to COSTS.
10892 (allocno_pref): Rename to pref.
10893 (allocno_pref_buffer): Rename to pref_buffer.
10894 (common_classes): Rename to regno_cover_class.
10895 (COST_INDEX): New.
10896 (record_reg_classes): Set allocno attributes only if allocno_p.
10897 (record_address_regs): Ditto. Use COST_INDEX instead of ALLOCNO_NUM.
10898 (scan_one_insn): Use COST_INDEX and COSTS instead of ALLOCNO_NUM
10899 and COSTS_OF_ALLOCNO.
10900 (print_costs): Rename to print_allocno_costs.
10901 (print_pseudo_costs): New.
10902 (process_bb_node_for_costs): Split into 2 functions with new
10903 function process_bb_for_costs. Pass BB to process_bb_for_costs.
10904 (find_allocno_class_costs): Rename to find_costs_and_classes. Add
10905 new parameter dump_file. Use cost_elements_num instead of
10906 ira_allocnos_num. Make one iteration if preferred classes were
10907 already calculated for scheduler. Make 2 versions of code
10908 depending on allocno_p.
10909 (setup_allocno_cover_class_and_costs): Check allocno_p. Use
10910 regno_cover_class and COSTS instead of common_classes and
10911 COSTS_OF_ALLOCNO.
10912 (init_costs, finish_costs): New.
10913 (ira_costs): Set up allocno_p and cost_elements_num. Call
10914 init_costs and finish_costs.
10915 (ira_set_pseudo_classes): New.
10916
10917 * rtl.h (allocate_reg_info): Remove.
10918 (resize_reg_info): Change return type.
10919 (reg_cover_class): New.
10920 (setup_reg_classes): Add new parameter.
10921
10922 * sched-int.h (struct deps_reg): New member implicit_sets.
10923 (sched_pressure_p, sched_regno_cover_class): New external definitions.
10924 (INCREASE_BITS): New macro.
10925 (struct reg_pressure_data, struct reg_use_data): New.
10926 (struct _haifa_insn_data): Remove reg_weight. Add members
10927 reg_pressure, reg_use_list, reg_set_list, and
10928 reg_pressure_excess_cost_change.
10929 (struct deps): New member implicit_sets.
10930 (pressure_p): New variable.
10931 (COVER_CLASS_BITS, INCREASE_BITS): New macros.
10932 (struct reg_pressure_data, struct reg_use_data): New.
10933 (INSN_REG_WEIGHT): Remove.
10934 (INSN_REG_PRESSURE, INSN_MAX_REG_PRESSURE, INSN_REG_USE_LIST,
10935 INSN_REG_SET_LIST, INSN_REG_PRESSURE_EXCESS_COST_CHANGE): New macros.
10936 (sched_init_region_reg_pressure_info,
10937 sched_setup_bb_reg_pressure_info): New prototypes.
10938
10939 * reginfo.c (struct reg_pref): New member coverclass.
10940 (reg_cover_class): New function.
10941 (reginfo_init, pass_reginfo_init): Move after free_reg_info.
10942 (reg_info_size): New variable.
10943 (allocate_reg_info): Make static. Setup reg_info_size.
10944 (resize_reg_info): Use reg_info_size. Return flag of resizing.
10945 (setup_reg_classes): Add a new parameter. Setup cover class too.
10946
10947 * Makefile.in (reload.o, haifa-sched.o, sched-deps.o): Add ira.h to
10948 the dependencies.
10949
10950 * sched-rgn.c (deps_join): Set up implicit_sets.
10951 (schedule_region): Set up region and basic blocks pressure
10952 relative info.
10953
10954 * passes.c (init_optimization_passes): Move
10955 pass_subregs_of_mode_init before pass_sched.
10956
10957 2009-09-02 Martin Jambor <mjambor@suse.cz>
10958
10959 * tree-sra.c (struct access): New field grp_hint.
10960 (dump_access): Dump grp_hint.
10961 (sort_and_splice_var_accesses): Set grp_hint if a group is read
10962 multiple times.
10963 (analyze_access_subtree): Only scalarize accesses with grp_hint set or
10964 those which have been specifically read and somehow written to.
10965 (propagate_subacesses_accross_link): Set grp_hint of right child and
10966 also possibly of the left child.
10967
10968 2009-09-02 Jakub Jelinek <jakub@redhat.com>
10969
10970 * tree-object-size.c (addr_object_size): Always use object_size_type
10971 0 or 2 when determining the pointer pointed object size.
10972
10973 2009-09-02 Richard Guenther <rguenther@suse.de>
10974
10975 Revert
10976 2009-08-31 Richard Guenther <rguenther@suse.de>
10977
10978 * builtins.c (fold_builtin_memory_op): Use the alias oracle
10979 to query if the memory regions for memmove overlap.
10980 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
10981 asserts on pointers, instead deal with odd trees.
10982 (ptr_derefs_may_alias_p): Likewise.
10983 (refs_may_alias_p_1): Constructor bases also never alias.
10984
10985 2009-08-01 Christian Bruel <christian.bruel@st.com>
10986
10987 Revert:
10988 2009-07-31 Christian Bruel <christian.bruel@st.com>
10989 * gcc/config.gcc (sh*-*-elf): test with_libgloss.
10990
10991 2009-09-01 Alexandre Oliva <aoliva@redhat.com>
10992
10993 * doc/invoke.texi (-fvar-tracking-assignments): New.
10994 (-fvar-tracking-assignments-toggle): New.
10995 (-fdump-final-insns=file): Mark filename as optional.
10996 (--param min-nondebug-insn-uid): New.
10997 (-gdwarf-@{version}): Mention version 4.
10998 * opts.c (common_handle_option): Accept it.
10999 * tree-vrp.c (find_assert_locations_1): Skip debug stmts.
11000 * regrename.c (regrename_optimize): Drop last. Don't count debug
11001 insns as uses. Don't reject change because of debug insn.
11002 (do_replace): Reject DEBUG_INSN as chain starter. Take base_regno
11003 from the chain starter, and check for inexact matches in DEBUG_INSNS.
11004 (scan_rtx_reg): Accept inexact matches in DEBUG_INSNs.
11005 (build_def_use): Simplify and fix the marking of DEBUG_INSNs.
11006 * sched-ebb.c (schedule_ebbs): Skip boundary debug insns.
11007 * fwprop.c (forward_propagate_and_simplify): ...into debug insns.
11008 * doc/gimple.texi (is_gimple_debug): New.
11009 (gimple_debug_bind_p): New.
11010 (is_gimple_call, gimple_assign_cast_p): End sentence with period.
11011 * doc/install.texi (bootstrap-debug): More details.
11012 (bootstrap-debug-big, bootstrap-debug-lean): Document.
11013 (bootstrap-debug-lib): More details.
11014 (bootstrap-debug-ckovw): Update.
11015 (bootstrap-time): New.
11016 * tree-into-ssa.c (mark_def_sites): Skip debug stmts.
11017 (insert_phi_nodes_for): Insert debug stmts.
11018 (rewrite_stmt): Take iterator. Insert debug stmts.
11019 (rewrite_enter_block): Adjust.
11020 (maybe_replace_use_in_debug_stmt): New.
11021 (rewrite_update_stmt): Use it.
11022 (mark_use_interesting): Return early for debug stmts.
11023 * tree-ssa-loop-im.c (rewrite_bittest): Propagate DEFs into debug
11024 stmts before replacing stmt.
11025 (move_computations_stmt): Likewise.
11026 * ira-conflicts.c (add_copies): Skip debug insns.
11027 * regstat.c (regstat_init_n_sets_and_refs): Discount debug insns.
11028 (regstat_bb_compute_ri): Skip debug insns.
11029 * tree-ssa-threadupdate.c (redirection_block_p): Skip debug stmts.
11030 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
11031 check_loop_closed_ssa_stmt): Skip debug stmts.
11032 * tree-tailcall.c (find_tail_calls): Likewise.
11033 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
11034 * tree.h (MAY_HAVE_DEBUG_STMTS): New.
11035 (build_var_debug_value_stat): Declare.
11036 (build_var_debug_value): Define.
11037 (target_for_debug_bind): Declare.
11038 * reload.c (find_equiv_reg): Skip debug insns.
11039 * rtlanal.c (reg_used_between_p): Skip debug insns.
11040 (side_effects_p): Likewise.
11041 (canonicalize_condition): Likewise.
11042 * ddg.c (create_ddg_dep_from_intra_loop_link): Check that non-debug
11043 insns never depend on debug insns.
11044 (create_ddg_dep_no_link): Likewise.
11045 (add_cross_iteration_register_deps): Use ANTI_DEP for debug insns.
11046 Don't add inter-loop dependencies for debug insns.
11047 (build_intra_loop_deps): Likewise.
11048 (create_ddg): Count debug insns.
11049 * ddg.h (struct ddg::num_debug): New.
11050 (num_backargs): Pair up with previous int field.
11051 * diagnostic.c (diagnostic_report_diagnostic): Skip notes on
11052 -fcompare-debug-second.
11053 * final.c (get_attr_length_1): Skip debug insns.
11054 (rest_of_clean-state): Don't dump CFA_RESTORE_STATE.
11055 * gcc.c (invoke_as): Call compare-debug-dump-opt.
11056 (driver_self_specs): Map -fdump-final-insns to
11057 -fdump-final-insns=..
11058 (get_local_tick): New.
11059 (compare_debug_dump_opt_spec_function): Test for . argument and
11060 compute output name. Compute temp output spec without flag name.
11061 Compute -frandom-seed.
11062 (OPT): Undef after use.
11063 * cfgloopanal.c (num_loop_insns): Skip debug insns.
11064 (average_num_loop_insns): Likewise.
11065 * params.h (MIN_NONDEBUG_INSN_UID): New.
11066 * gimple.def (GIMPLE_DEBUG): New.
11067 * ipa-reference.c (scan_stmt_for_static_refs): Skip debug stmts.
11068 * auto-inc-dec.c (merge_in_block): Skip debug insns.
11069 (merge_in_block): Fix whitespace.
11070 * toplev.c (flag_var_tracking): Update comment.
11071 (flag_var_tracking_assignments): New.
11072 (flag_var_tracking_assignments_toggle): New.
11073 (process_options): Don't open final insns dump file if we're not
11074 going to write to it. Compute defaults for var_tracking.
11075 * df-scan.c (df_insn_rescan_debug_internal): New.
11076 (df_uses_record): Handle debug insns.
11077 * haifa-sched.c (ready): Initialize n_debug.
11078 (contributes_to_priority): Skip debug insns.
11079 (dep_list_size): New.
11080 (priority): Use it.
11081 (rank_for_schedule): Likewise. Schedule debug insns as soon as
11082 they're ready. Disregard previous debug insns to make decisions.
11083 (queue_insn): Never queue debug insns.
11084 (ready_add, ready_remove_first, ready_remove): Count debug insns.
11085 (schedule_insn): Don't reject debug insns because of issue rate.
11086 (get_ebb_head_tail, no_real_insns_p): Skip boundary debug insns.
11087 (queue_to_ready): Skip and discount debug insns.
11088 (choose_ready): Let debug insns through.
11089 (schedule_block): Check boundary debug insns. Discount debug
11090 insns, schedule them early. Adjust whitespace.
11091 (set_priorities): Check for boundary debug insns.
11092 (add_jump_dependencies): Use dep_list_size.
11093 (prev_non_location_insn): New.
11094 (check_cfg): Use it.
11095 * tree-ssa-loop-ivopts.c (find-interesting_users): Skip debug
11096 stmts.
11097 (remove_unused_ivs): Reset debug stmts.
11098 * modulo-sched.c (const_iteration_count): Skip debug insns.
11099 (res_MII): Discount debug insns.
11100 (loop_single_full_bb_p): Skip debug insns.
11101 (sms_schedule): Likewise.
11102 (sms_schedule_by_order): Likewise.
11103 (ps_has_conflicts): Likewise.
11104 * caller-save.c (refmarker_fn): New.
11105 (save_call_clobbered_regs): Replace regs with saved mem in
11106 debug insns.
11107 (mark_referenced_regs): Take pointer, mark and arg. Adjust.
11108 Call refmarker_fn mark for hardregnos.
11109 (mark_reg_as_referenced): New.
11110 (replace_reg_with_saved_mem): New.
11111 * ipa-pure-const.c (check_stmt): Skip debug stmts.
11112 * cse.c (cse_insn): Canonicalize debug insns. Skip them when
11113 searching back.
11114 (cse_extended_basic_block): Skip debug insns.
11115 (count_reg_usage): Likewise.
11116 (is_dead_reg): New, split out of...
11117 (set_live_p): ... here.
11118 (insn_live_p): Use it for debug insns.
11119 * tree-stdarg.c (check_all_va_list_escapes): Skip debug stmts.
11120 (execute_optimize_stdarg): Likewise.
11121 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
11122 * tree-ssa-propagate.c (substitute_and_fold): Don't regard
11123 changes in debug stmts as changes.
11124 * sel-sched.c (moving_insn_creates_bookkeeping_block_p): New.
11125 (moveup_expr): Don't move across debug insns. Don't move
11126 debug insn if it would create a bookkeeping block.
11127 (moveup_expr_cached): Don't use cache for debug insns that
11128 are heads of blocks.
11129 (compute_av_set_inside_bb): Skip debug insns.
11130 (sel_rank_for_schedule): Schedule debug insns first. Remove
11131 dead code.
11132 (block_valid_for_bookkeeping_p); Support lax searches.
11133 (create_block_for_bookkeeping): Adjust block numbers when
11134 encountering debug-only blocks.
11135 (find_place_for_bookkeeping): Deal with debug-only blocks.
11136 (generate_bookkeeping_insn): Accept no place to insert.
11137 (remove_temp_moveop_nops): New argument full_tidying.
11138 (prepare_place_to_insert): Deal with debug insns.
11139 (advance_state_on_fence): Debug insns don't start cycles.
11140 (update_boundaries): Take fence as argument. Deal with
11141 debug insns.
11142 (schedule_expr_on_boundary): No full_tidying on debug insns.
11143 (fill_insns): Deal with debug insns.
11144 (track_scheduled_insns_and_blocks): Don't count debug insns.
11145 (need_nop_to_preserve_insn_bb): New, split out of...
11146 (remove_insn_from_stream): ... this.
11147 (fur_orig_expr_not_found): Skip debug insns.
11148 * rtl.def (VALUE): Move up.
11149 (DEBUG_INSN): New.
11150 * tree-ssa-sink.c (all_immediate_uses_same_place): Skip debug stmts.
11151 (nearest_common_dominator_of_uses): Take debug_stmts argument.
11152 Set it if debug stmts are found.
11153 (statement_sink_location): Skip debug stmts. Propagate
11154 moving defs into debug stmts.
11155 * ifcvt.c (first_active_insn): Skip debug insns.
11156 (last_active_insns): Likewise.
11157 (cond_exec_process_insns): Likewise.
11158 (noce_process_if_block): Likewise.
11159 (check_cond_move_block): Likewise.
11160 (cond_move_convert_if_block): Likewise.
11161 (block_jumps_and_fallthru_p): Likewise.
11162 (dead_or_predicable): Likewise.
11163 * dwarf2out.c (debug_str_hash_forced): New.
11164 (find_AT_string): Add comment.
11165 (gen_label_for_indirect_string): New.
11166 (get_debug_string_label): New.
11167 (AT_string_form): Use it.
11168 (mem_loc_descriptor): Handle non-TLS symbols. Handle MINUS , DIV,
11169 MOD, AND, IOR, XOR, NOT, ABS, NEG, and CONST_STRING. Accept but
11170 discard COMPARE, IF_THEN_ELSE, ROTATE, ROTATERT, TRUNCATE and
11171 several operations that cannot be represented with DWARF opcodes.
11172 (loc_descriptor): Ignore SIGN_EXTEND and ZERO_EXTEND. Require
11173 dwarf_version 4 for DW_OP_implicit_value and DW_OP_stack_value.
11174 (dwarf2out_var_location): Take during-call mark into account.
11175 (output_indirect_string): Update comment. Output if there are
11176 label and references.
11177 (prune_indirect_string): New.
11178 (prune_unused_types): Call it if debug_str_hash_forced.
11179 More in dwarf2out.c, from Jakub Jelinek <jakub@redhat.com>:
11180 (dw_long_long_const): Remove.
11181 (struct dw_val_struct): Change val_long_long type to rtx.
11182 (print_die, attr_checksum, same_dw_val_p, loc_descriptor): Adjust for
11183 val_long_long change to CONST_DOUBLE rtx from a long hi/lo pair.
11184 (output_die): Likewise. Use HOST_BITS_PER_WIDE_INT size of each
11185 component instead of HOST_BITS_PER_LONG.
11186 (output_loc_operands): Likewise. For const8* assert
11187 HOST_BITS_PER_WIDE_INT rather than HOST_BITS_PER_LONG is >= 64.
11188 (output_loc_operands_raw): For const8* assert HOST_BITS_PER_WIDE_INT
11189 rather than HOST_BITS_PER_LONG is >= 64.
11190 (add_AT_long_long): Remove val_hi and val_lo arguments, add
11191 val_const_double.
11192 (size_of_die): Use HOST_BITS_PER_WIDE_INT size multiplier instead of
11193 HOST_BITS_PER_LONG for dw_val_class_long_long.
11194 (add_const_value_attribute): Adjust add_AT_long_long caller. Don't
11195 handle TLS SYMBOL_REFs. If CONST wraps a constant, tail recurse.
11196 (dwarf_stack_op_name): Handle DW_OP_implicit_value and
11197 DW_OP_stack_value.
11198 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
11199 Handle DW_OP_implicit_value.
11200 (extract_int): Move prototype earlier.
11201 (mem_loc_descriptor): For SUBREG punt if inner
11202 mode size is wider than DWARF2_ADDR_SIZE. Handle SIGN_EXTEND
11203 and ZERO_EXTEND by DW_OP_shl and DW_OP_shr{a,}. Handle
11204 EQ, NE, GT, GE, LT, LE, GTU, GEU, LTU, LEU, SMIN, SMAX, UMIN,
11205 UMAX, SIGN_EXTRACT, ZERO_EXTRACT.
11206 (loc_descriptor): Compare mode size with DWARF2_ADDR_SIZE
11207 instead of Pmode size.
11208 (loc_descriptor): Add MODE argument. Handle CONST_INT, CONST_DOUBLE,
11209 CONST_VECTOR, CONST, LABEL_REF and SYMBOL_REF if mode != VOIDmode,
11210 attempt to handle other expressions. Don't handle TLS SYMBOL_REFs.
11211 (concat_loc_descriptor, concatn_loc_descriptor,
11212 loc_descriptor_from_tree_1): Adjust loc_descriptor callers.
11213 (add_location_or_const_value_attribute): Likewise. For single
11214 location loc_lists attempt to use add_const_value_attribute
11215 for constant decls. Add DW_AT_const_value even if
11216 NOTE_VAR_LOCATION is VAR_LOCATION with CONSTANT_P or CONST_STRING
11217 in its expression.
11218 * cfgbuild.c (inside_basic_block_p): Handle debug insns.
11219 (control_flow_insn_p): Likewise.
11220 * tree-parloops.c (eliminate_local_variables_stmt): Handle debug stmt.
11221 (separate_decls_in_region_debug_bind): New.
11222 (separate_decls_in_region): Process debug bind stmts afterwards.
11223 * recog.c (verify_changes): Handle debug insns.
11224 (extract_insn): Likewise.
11225 (peephole2_optimize): Skip debug insns.
11226 * dse.c (scan_insn): Skip debug insns.
11227 * sel-sched-ir.c (return_nop_to_pool): Take full_tidying argument.
11228 Pass it on.
11229 (setup_id_for_insn): Handle debug insns.
11230 (maybe_tidy_empty_bb): Adjust whitespace.
11231 (tidy_control_flow): Skip debug insns.
11232 (sel_remove_insn): Adjust for debug insns.
11233 (sel_estimate_number_of_insns): Skip debug insns.
11234 (create_insn_rtx_from_pattern): Handle debug insns.
11235 (create_copy_of_insn_rtx): Likewise.
11236 * sel-sched-.h (sel_bb_end): Declare.
11237 (sel_bb_empty_or_nop_p): New.
11238 (get_all_loop_exits): Use it.
11239 (_eligible_successor_edge_p): Likewise.
11240 (return_nop_to_pool): Adjust.
11241 * tree-eh.c (tre_empty_eh_handler_p): Skip debug stmts.
11242 * ira-lives.c (process_bb_node_lives): Skip debug insns.
11243 * gimple-pretty-print.c (dump_gimple_debug): New.
11244 (dump_gimple_stmt): Use it.
11245 (dump_bb_header): Skip gimple debug stmts.
11246 * regmove.c (optimize_reg_copy_1): Discount debug insns.
11247 (fixup_match_2): Likewise.
11248 (regmove_backward_pass): Likewise. Simplify combined
11249 replacement. Handle debug insns.
11250 * function.c (instantiate_virtual_regs): Handle debug insns.
11251 * function.h (struct emit_status): Add x_cur_debug_insn_uid.
11252 * print-rtl.h: Include cselib.h.
11253 (print_rtx): Print VALUEs. Split out and recurse for VAR_LOCATIONs.
11254 * df.h (df_inns_rescan_debug_internal): Declare.
11255 * gcse.c (alloc_hash_table): Estimate n_insns.
11256 (cprop_insn): Don't regard debug insns as changes.
11257 (bypass_conditional_jumps): Skip debug insns.
11258 (one_pre_gcse_pass): Adjust.
11259 (one_code_hoisting_pass): Likewise.
11260 (compute_ld_motion_mems): Skip debug insns.
11261 (one_cprop_pass): Adjust.
11262 * tree-if-conv.c (tree_if_convert_stmt): Reset debug stmts.
11263 (if_convertible_stmt_p): Handle debug stmts.
11264 * init-regs.c (initialize_uninitialized_regs): Skip debug insns.
11265 * tree-vect-loop.c (vect_is_simple_reduction): Skip debug stmts.
11266 * ira-build.c (create_bb_allocnos): Skip debug insns.
11267 * tree-flow-inline.h (has_zero_uses): Discount debug stmts.
11268 (has_single_use): Likewise.
11269 (single_imm_use): Likewise.
11270 (num_imm_uses): Likewise.
11271 * tree-ssa-phiopt.c (empty_block_p): Skip debug stmts.
11272 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Skip debug stmts.
11273 (create_outofssa_var_map): Likewise.
11274 * lower-subreg.c (adjust_decomposed_uses): New.
11275 (resolve_debug): New.
11276 (decompose_multiword_subregs): Use it.
11277 * tree-dfa.c (find_referenced_vars): Skip debug stmts.
11278 * emit-rtl.c: Include params.h.
11279 (cur_debug_insn_uid): Define.
11280 (set_new_first_and_last_insn): Set cur_debug_insn_uid too.
11281 (copy_rtx_if_shared_1): Handle debug insns.
11282 (reset_used_flags): Likewise.
11283 (set_used_flags): LIkewise.
11284 (get_max_insn_count): New.
11285 (next_nondebug_insn): New.
11286 (prev_nondebug_insn): New.
11287 (make_debug_insn_raw): New.
11288 (emit_insn_before_noloc): Handle debug insns.
11289 (emit_jump_insn_before_noloc): Likewise.
11290 (emit_call_insn_before_noloc): Likewise.
11291 (emit_debug_insn_before_noloc): New.
11292 (emit_insn_after_noloc): Handle debug insns.
11293 (emit_jump_insn_after_noloc): Likewise.
11294 (emit_call_insn_after_noloc): Likewise.
11295 (emit_debug_insn_after_noloc): Likewise.
11296 (emit_insn_after): Take loc from earlier non-debug insn.
11297 (emit_jump_insn_after): Likewise.
11298 (emit_call_insn_after): Likewise.
11299 (emit_debug_insn_after_setloc): New.
11300 (emit_debug_insn_after): New.
11301 (emit_insn_before): Take loc from later non-debug insn.
11302 (emit_jump_insn_before): Likewise.
11303 (emit_call_insn_before): Likewise.
11304 (emit_debug_insn_before_setloc): New.
11305 (emit_debug_insn_before): New.
11306 (emit_insn): Handle debug insns.
11307 (emit_debug_insn): New.
11308 (emit_jump_insn): Handle debug insns.
11309 (emit_call_insn): Likewise.
11310 (emit): Likewise.
11311 (init_emit): Take min-nondebug-insn-uid into account.
11312 Initialize cur_debug_insn_uid.
11313 (emit_copy_of_insn_after): Handle debug insns.
11314 * cfgexpand.c (gimple_assign_rhs_to_tree): Do not overwrite
11315 location of single rhs in place.
11316 (maybe_dump_rtl_for_gimple_stmt): Dump lineno.
11317 (floor_sdiv_adjust): New.
11318 (cell_sdiv_adjust): New.
11319 (cell_udiv_adjust): New.
11320 (round_sdiv_adjust): New.
11321 (round_udiv_adjust): New.
11322 (wrap_constant): Moved from cselib.
11323 (unwrap_constant): New.
11324 (expand_debug_expr): New.
11325 (expand_debug_locations): New.
11326 (expand_gimple_basic_block): Drop hiding redeclaration. Expand
11327 debug bind stmts.
11328 (gimple_expand_cfg): Expand debug locations.
11329 * cselib.c: Include tree-pass.h.
11330 (struct expand_value_data): New.
11331 (cselib_record_sets_hook): New.
11332 (PRESERVED_VALUE_P, LONG_TERM_PRESERVED_VALUE_P): New.
11333 (cselib_clear_table): Move, and implemnet in terms of...
11334 (cselib_reset_table_with_next_value): ... this.
11335 (cselib_get_next_unknown_value): New.
11336 (discard_useless_locs): Don't discard preserved values.
11337 (cselib_preserve_value): New.
11338 (cselib_preserved_value_p): New.
11339 (cselib_preserve_definitely): New.
11340 (cselib_clear_preserve): New.
11341 (cselib_preserve_only_values): New.
11342 (new_cselib_val): Take rtx argument. Dump it in details.
11343 (cselib_lookup_mem): Adjust.
11344 (expand_loc): Take regs_active in struct. Adjust. Silence
11345 dumps unless details are requested.
11346 (cselib_expand_value_rtx_cb): New.
11347 (cselib_expand_value_rtx): Rename and reimplment in terms of...
11348 (cselib_expand_value_rtx_1): ... this. Adjust. Silence dumps
11349 without details. Copy more subregs. Try to resolve values
11350 using a callback. Wrap constants.
11351 (cselib_subst_to_values): Adjust.
11352 (cselib_log_lookup): New.
11353 (cselib_lookup): Call it.
11354 (cselib_invalidate_regno): Don't count preserved values as useless.
11355 (cselib_invalidate_mem): Likewise.
11356 (cselib_record_set): Likewise.
11357 (struct set): Renamed to cselib_set, moved to cselib.h.
11358 (cselib_record_sets): Adjust. Call hook.
11359 (cselib_process_insn): Reset table when it would be cleared.
11360 (dump_cselib_val): New.
11361 (dump_cselib_table): New.
11362 * tree-cfgcleanup.c (tree_forwarded_block_p): Skip debug stmts.
11363 (remove_forwarder_block): Support moving debug stmts.
11364 * cselib.h (cselib_record_sets_hook): Declare.
11365 (cselib_expand_callback): New type.
11366 (cselib_expand_value_rtx_cb): Declare.
11367 (cselib_reset_table_with_next_value): Declare.
11368 (cselib_get_next_unknown_value): Declare.
11369 (cselib_preserve_value): Declare.
11370 (cselib_preserved_value_p): Declare.
11371 (cselib_preserve_only_values): Declare.
11372 (dump_cselib_table): Declare.
11373 * cfgcleanup.c (flow_find_cross_jump): Skip debug insns.
11374 (try_crossjump_to_edge): Likewise.
11375 (delete_unreachable_blocks): Remove dominant GIMPLE blocks after
11376 dominated blocks when debug stmts are present.
11377 * simplify-rtx.c (delegitimize_mem_from_attrs): New.
11378 * tree-ssa-live.c (remove_unused_locals): Skip debug stmts.
11379 (set_var_live_on_entry): Likewise.
11380 * loop-invariant.c (find_invariants_bb): Skip debug insns.
11381 * cfglayout.c (curr_location, last_location): Make static.
11382 (set_curr_insn_source_location): Don't avoid bouncing.
11383 (get_curr_insn_source_location): New.
11384 (get_curr_insn_block): New.
11385 (duplicate_insn_chain): Handle debug insns.
11386 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Propagate
11387 into debug stmts.
11388 * common.opt (fcompare-debug): Move to sort order.
11389 (fdump-unnumbered-links): Likewise.
11390 (fvar-tracking-assignments): New.
11391 (fvar-tracking-assignments-toggle): New.
11392 * tree-ssa-dce.c (mark_stmt_necessary): Don't mark blocks
11393 because of debug stmts.
11394 (mark_stmt_if_obviously_necessary): Mark debug stmts.
11395 (eliminate_unnecessary_stmts): Walk dominated blocks before
11396 dominators.
11397 * tree-ssa-ter.c (find_replaceable_in_bb): Skip debug stmts.
11398 * ira.c (memref_used_between_p): Skip debug insns.
11399 (update_equiv_regs): Likewise.
11400 * sched-deps.c (sd_lists_size): Accept empty list.
11401 (sd_init_insn): Mark debug insns.
11402 (sd_finish_insn): Unmark them.
11403 (sd_add_dep): Reject non-debug deps on debug insns.
11404 (fixup_sched_groups): Give debug insns group treatment.
11405 Skip debug insns.
11406 (sched_analyze_reg): Don't mark debug insns for sched before call.
11407 (sched_analyze_2): Handle debug insns.
11408 (sched_analyze_insn): Compute next non-debug insn. Handle debug
11409 insns.
11410 (deps_analyze_insn): Handle debug insns.
11411 (deps_start_bb): Skip debug insns.
11412 (init_deps): Initialize last_debug_insn.
11413 * tree-ssa.c (target_for_debug_bind): New.
11414 (find_released_ssa_name): New.
11415 (propagate_var_def_into_debug_stmts): New.
11416 (propagate_defs_into_debug_stmts): New.
11417 (verify_ssa): Skip debug bind stmts without values.
11418 (warn_uninialized_vars): Skip debug stmts.
11419 * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Set default.
11420 * rtl.c (rtx_equal_p_cb): Handle VALUEs.
11421 (rtx_equal_p): Likewise.
11422 * ira-costs.c (scan_one_insn): Skip debug insns.
11423 (process_bb_node_for_hard_reg_moves): Likewise.
11424 * rtl.h (DEBUG_INSN_P): New.
11425 (NONDEBUG_INSN_P): New.
11426 (MAY_HAVE_DEBUG_INSNS): New.
11427 (INSN_P): Accept debug insns.
11428 (RTX_FRAME_RELATED_P): Likewise.
11429 (INSN_DELETED_P): Likewise
11430 (PAT_VAR_LOCATION_DECL): New.
11431 (PAT_VAR_LOCATION_LOC): New.
11432 (PAT_VAR_OCATION_STATUS): New.
11433 (NOTE_VAR_LOCATION_DECL): Reimplement.
11434 (NOTE_VAR_LOCATION_LOC): Likewise.
11435 (NOTE_VAR_LOCATION_STATUS): Likewise.
11436 (INSN_VAR_LOCATION): New.
11437 (INSN_VAR_LOCATION_DECL): New.
11438 (INSN_VAR_LOCATION_LOC): New.
11439 (INSN_VAR_LOCATION_STATUS): New.
11440 (gen_rtx_UNKNOWN_VAR_LOC): New.
11441 (VAR_LOC_UNKNOWN_P): New.
11442 (NOTE_DURING_CALL_P): New.
11443 (SCHED_GROUP_P): Accept debug insns.
11444 (emit_debug_insn_before): Declare.
11445 (emit_debug_insn_before_noloc): Declare.
11446 (emit_debug_insn_beore_setloc): Declare.
11447 (emit_debug_insn_after): Declare.
11448 (emit_debug_insn_after_noloc): Declare.
11449 (emit_debug_insn_after_setloc): Declare.
11450 (emit_debug_insn): Declare.
11451 (make_debug_insn_raw): Declare.
11452 (prev_nondebug_insn): Declare.
11453 (next_nondebug_insn): Declare.
11454 (delegitimize_mem_from_attrs): Declare.
11455 (get_max_insn_count): Declare.
11456 (wrap_constant): Declare.
11457 (unwrap_constant): Declare.
11458 (get_curr_insn_source_location): Declare.
11459 (get_curr_insn_block): Declare.
11460 * tree-inline.c (insert_debug_decl_map): New.
11461 (processing_debug_stmt): New.
11462 (remap_decl): Don't create new mappings in debug stmts.
11463 (remap_gimple_op_r): Don't add references in debug stmts.
11464 (copy_tree_body_r): Likewise.
11465 (remap_gimple_stmt): Handle debug bind stmts.
11466 (copy_bb): Skip debug stmts.
11467 (copy_edges_for_bb): Likewise.
11468 (copy_debug_stmt): New.
11469 (copy_debug_stmts): New.
11470 (copy_body): Copy debug stmts at the end.
11471 (insert_init_debug_bind): New.
11472 (insert_init_stmt): Take id. Skip and emit debug stmts.
11473 (setup_one_parameter): Remap variable earlier, register debug mapping.
11474 (estimate_num_insns): Skip debug stmts.
11475 (expand_call_inline): Preserve debug_map.
11476 (optimize_inline_calls): Check for no debug_stmts left-overs.
11477 (unsave_expr_now): Preserve debug_map.
11478 (copy_gimple_seq_and_replace_locals): Likewise.
11479 (tree_function_versioning): Check for no debug_stmts left-overs.
11480 Init and destroy debug_map as needed. Split edges unconditionally.
11481 (build_duplicate_type): Init and destroy debug_map as needed.
11482 * tree-inline.h: Include gimple.h instead of pointer-set.h.
11483 (struct copy_body_data): Add debug_stmts and debug_map.
11484 * sched-int.h (struct ready_list): Add n_debug.
11485 (struct deps): Add last_debug_insn.
11486 (DEBUG_INSN_SCHED_P): New.
11487 (BOUNDARY_DEBUG_INSN_P): New.
11488 (SCHEDULE_DEBUG_INSN_P): New.
11489 (sd_iterator_cond): Accept empty list.
11490 * combine.c (create_log_links): Skip debug insns.
11491 (combine_instructions): Likewise.
11492 (cleanup_auto_inc_dec): New. From Jakub Jelinek: Make sure the
11493 return value is always unshared.
11494 (struct rtx_subst_pair): New.
11495 (auto_adjust_pair): New.
11496 (propagate_for_debug_subst): New.
11497 (propagate_for_debug): New.
11498 (try_combine): Skip debug insns. Propagate removed defs into
11499 debug insns.
11500 (next_nonnote_nondebug_insn): New.
11501 (distribute_notes): Use it. Skip debug insns.
11502 (distribute_links): Skip debug insns.
11503 * tree-outof-ssa.c (set_location_for_edge): Likewise.
11504 * resource.c (mark_target_live_regs): Likewise.
11505 * var-tracking.c: Include cselib.h and target.h.
11506 (enum micro_operation_type): Add MO_VAL_USE, MO_VAL_LOC, and
11507 MO_VAL_SET.
11508 (micro_operation_type_name): New.
11509 (enum emit_note_where): Add EMIT_NOTE_AFTER_CALL_INSN.
11510 (struct micro_operation_def): Update comments.
11511 (decl_or_value): New type. Use instead of decls.
11512 (struct emit_note_data_def): Add vars.
11513 (struct attrs_def): Use decl_or_value.
11514 (struct variable_tracking_info_def): Add permp, flooded.
11515 (struct location_chain_def): Update comment.
11516 (struct variable_part_def): Use decl_or_value.
11517 (struct variable_def): Make var_part a variable length array.
11518 (valvar_pool): New.
11519 (scratch_regs): New.
11520 (cselib_hook_called): New.
11521 (dv_is_decl_p): New.
11522 (dv_is_value_p): New.
11523 (dv_as_decl): New.
11524 (dv_as_value): New.
11525 (dv_as_opaque): New.
11526 (dv_onepart_p): New.
11527 (dv_pool): New.
11528 (IS_DECL_CODE): New.
11529 (check_value_is_not_decl): New.
11530 (dv_from_decl): New.
11531 (dv_from_value): New.
11532 (dv_htab_hash): New.
11533 (variable_htab_hash): Use it.
11534 (variable_htab_eq): Support values.
11535 (variable_htab_free): Free from the right pool.
11536 (attrs_list_member, attrs_list_insert): Use decl_or_value.
11537 (attrs_list_union): Adjust.
11538 (attrs_list_mpdv_union): New.
11539 (tie_break_pointers): New.
11540 (canon_value_cmp): New.
11541 (unshare_variable): Return possibly-modified slot.
11542 (vars_copy_1): Adjust.
11543 (var_reg_decl_set): Adjust. Split out of...
11544 (var_reg_set): ... this.
11545 (get_init_value): Adjust.
11546 (var_reg_delete_and_set): Adjust.
11547 (var_reg_delete): Adjust.
11548 (var_regno_delete): Adjust.
11549 (var_mem_decl_set): Split out of...
11550 (var_mem_set): ... this.
11551 (var_mem_delete_and_set): Adjust.
11552 (var_mem_delete): Adjust.
11553 (val_store): New.
11554 (val_reset): New.
11555 (val_resolve): New.
11556 (variable_union): Adjust. Speed up merge of 1-part vars.
11557 (variable_canonicalize): Use unshared slot.
11558 (VALUED_RECURSED_INTO): New.
11559 (find_loc_in_1pdv): New.
11560 (struct dfset_merge): New.
11561 (insert_into_intersection): New.
11562 (intersect_loc_chains): New.
11563 (loc_cmp): New.
11564 (canonicalize_loc_order_check): New.
11565 (canonicalize_values_mark): New.
11566 (canonicalize_values_star): New.
11567 (variable_merge_over_cur): New.
11568 (variable_merge_over_src): New.
11569 (dataflow_set_merge): New.
11570 (dataflow_set_equiv_regs): New.
11571 (remove_duplicate_values): New.
11572 (struct dfset_post_merge): New.
11573 (variable_post_merge_new_vals): New.
11574 (variable_post_merge_perm_vals): New.
11575 (dataflow_post_merge_adjust): New.
11576 (find_mem_expr_in_1pdv): New.
11577 (dataflow_set_preserve_mem_locs): New.
11578 (dataflow_set_remove_mem_locs): New.
11579 (dataflow_set_clear_at_call): New.
11580 (onepart_variable_different_p): New.
11581 (variable_different_p): Use it.
11582 (dataflow_set_different_1): Adjust. Make detailed dump more verbose.
11583 (track_expr_p): Add need_rtl parameter. Don't generate rtl
11584 if not needed.
11585 (track_loc_p): Pass it true.
11586 (struct count_use_info): New.
11587 (find_use_val): New.
11588 (replace_expr_with_values): New.
11589 (log_op_type): New.
11590 (use_type): New, partially split out of...
11591 (count_uses): ... this. Count new micro-ops.
11592 (count_uses_1): Adjust.
11593 (count_stores): Adjust.
11594 (count_with_sets): New.
11595 (VAL_NEEDS_RESOLUTION): New.
11596 (VAL_HOLDS_TRACK_EXPR): New.
11597 (VAL_EXPR_IS_COPIED): New.
11598 (VAL_EXPR_IS_CLOBBERED): New.
11599 (add_uses): Adjust. Generate new micro-ops.
11600 (add_uses_1): Adjust.
11601 (add_stores): Generate new micro-ops.
11602 (add_with_sets): New.
11603 (find_src_status): Adjust.
11604 (find_src_set_src): Adjust.
11605 (compute_bb_dataflow): Use dataflow_set_clear_at_call.
11606 Handle new micro-ops. Canonicalize value equivalances.
11607 (vt_find_locations): Compute total size of hash tables for
11608 dumping. Perform merge for var-tracking-assignments. Don't
11609 disregard single-block loops.
11610 (dump_attrs_list): Handle decl_or_value.
11611 (dump_variable): Take variable. Deal with decl_or_value.
11612 (dump_variable_slot): New.
11613 (dump_vars): Use it.
11614 (dump_dataflow_sets): Adjust.
11615 (set_slot_part): New, extended to support one-part variables
11616 after splitting out of...
11617 (set_variable_part): ... this.
11618 (clobber_slot_part): New, split out of...
11619 (clobber_variable_part): ... this.
11620 (delete_slot_part): New, split out of...
11621 (delete_variable_part): .... this.
11622 (check_wrap_constant): New.
11623 (vt_expand_loc_callback): New.
11624 (vt_expand_loc): New.
11625 (emit_note_insn_var_location): Adjust. Handle values. Handle
11626 EMIT_NOTE_AFTER_CALL_INSN.
11627 (emit_notes_for_differences_1): Adjust. Handle values.
11628 (emit_notes_for_differences_2): Likewise.
11629 (emit_notes_for_differences): Adjust.
11630 (emit_notes_in_bb): Take pointer to set. Emit AFTER_CALL_INSN notes.
11631 Adjust. Handle new micro-ops.
11632 (vt_add_function_parameters): Adjust. Create and bind values.
11633 (vt_initialize): Adjust. Initialize scratch_regs and
11634 valvar_pool, flooded and perm.. Initialize and use cselib. Log
11635 operations. Move some code to count_with_sets and add_with_sets.
11636 (delete_debug_insns): New.
11637 (vt_debug_insns_local): New.
11638 (vt_finalize): Release permp, valvar_pool, scratch_regs. Finish
11639 cselib.
11640 (var_tracking_main): If var-tracking-assignments is enabled
11641 but var-tracking isn't, delete debug insns and leave. Likewise
11642 if we exceed limits or fail the stack adjustments tests, and
11643 after all var-tracking processing.
11644 More in var-tracking, from Jakub Jelinek <jakub@redhat.com>:
11645 (dataflow_set): Add traversed_vars.
11646 (value_chain, const_value_chain): New typedefs.
11647 (value_chain_pool, value_chains): New variables.
11648 (value_chain_htab_hash, value_chain_htab_eq, add_value_chain,
11649 add_value_chains, add_cselib_value_chains, remove_value_chain,
11650 remove_value_chains, remove_cselib_value_chains): New functions.
11651 (shared_hash_find_slot_unshare_1, shared_hash_find_slot_1,
11652 shared_hash_find_slot_noinsert_1, shared_hash_find_1): New
11653 static inlines.
11654 (shared_hash_find_slot_unshare, shared_hash_find_slot,
11655 shared_hash_find_slot_noinsert, shared_hash_find): Update.
11656 (dst_can_be_shared): New variable.
11657 (unshare_variable): Unshare set->vars if shared, use shared_hash_*.
11658 Clear dst_can_be_shared. If set->traversed_vars is non-NULL and
11659 different from set->vars, look up slot again instead of using the
11660 passed in slot.
11661 (dataflow_set_init): Initialize traversed_vars.
11662 (variable_union): Use shared_hash_*. Use initially NO_INSERT
11663 lookup if set->vars is shared. Don't keep slot cleared before
11664 calling unshare_variable. Unshare set->vars if needed. Adjust
11665 unshare_variable callers. Clear dst_can_be_shared if needed.
11666 Even ->refcount == 1 vars must be unshared if set->vars is shared
11667 and var needs to be modified.
11668 (dataflow_set_union): Set traversed_vars during canonicalization.
11669 (VALUE_CHANGED, DECL_CHANGED): Define.
11670 (set_dv_changed, dv_changed_p): New static inlines.
11671 (track_expr_p): Clear DECL_CHANGED.
11672 (dump_dataflow_sets): Set it.
11673 (variable_was_changed): Call set_dv_changed.
11674 (emit_note_insn_var_location): Likewise.
11675 (changed_variables_stack): New variable.
11676 (check_changed_vars_1, check_changed_vars_2): New functions.
11677 (emit_notes_for_changes): Do nothing if changed_variables is
11678 empty. Traverse changed_variables with check_changed_vars_1,
11679 call check_changed_vars_2 on each changed_variables_stack entry.
11680 (emit_notes_in_bb): Add SET argument. Just clear it at the
11681 beginning, use it instead of local &set, don't destroy it at the end.
11682 (vt_emit_notes): Call dataflow_set_clear early on all
11683 VTI(bb)->out sets, never use them, instead use emit_notes_in_bb
11684 computed set, dataflow_set_clear also VTI(bb)->in when we are
11685 done with the basic block. Initialize changed_variables_stack,
11686 free it afterwards. If ENABLE_CHECKING verify that after noting
11687 differences to an empty set value_chains hash table is empty.
11688 (vt_initialize): Initialize value_chains and value_chain_pool.
11689 (vt_finalize): Delete value_chains htab, free value_chain_pool.
11690 (variable_tracking_main): Call dump_dataflow_sets before calling
11691 vt_emit_notes, not after it.
11692 * tree-flow.h (propagate_defs_into_debug_stmts): Declare.
11693 (propagate_var_def_into_debug_stmts): Declare.
11694 * df-problems.c (df_lr_bb_local_compute): Skip debug insns.
11695 (df_set_note): Reject debug insns.
11696 (df_whole_mw_reg_dead_p): Take added_notes_p argument. Don't
11697 add notes to debug insns.
11698 (df_note_bb_compute): Adjust. Likewise.
11699 (df_simulate_uses): Skip debug insns.
11700 (df_simulate_initialize_backwards): Likewise.
11701 * reg-stack.c (subst_stack_regs_in_debug_insn): New.
11702 (subst_stack_regs_pat): Reject debug insns.
11703 (convert_regs_1): Handle debug insns.
11704 * Makefile.in (TREE_INLINE_H): Take pointer-set.h from GIMPLE_H.
11705 (print-rtl.o): Depend on cselib.h.
11706 (cselib.o): Depend on TREE_PASS_H.
11707 (var-tracking.o): Depend on cselib.h and TARGET_H.
11708 * sched-rgn.c (rgn_estimate_number_of_insns): Discount debug insns.
11709 (init_ready_list): Skip boundary debug insns.
11710 (add_branch_dependences): Skip debug insns.
11711 (free_block_dependencies): Check for blocks with only debug insns.
11712 (compute_priorities): Likewise.
11713 * gimple.c (gss_for_code): Handle GIMPLE_DEBUG.
11714 (gimple_build_with_ops_stat): Take subcode as unsigned. Adjust
11715 all callers.
11716 (gimple_build_debug_bind_stat): New.
11717 (empty_body_p): Skip debug stmts.
11718 (gimple_has_side_effects): Likewise.
11719 (gimple_rhs_has_side_effects): Likewise.
11720 * gimple.h (enum gimple_debug_subcode, GIMPLE_DEBUG_BIND): New.
11721 (gimple_build_debug_bind_stat): Declare.
11722 (gimple_build_debug_bind): Define.
11723 (is_gimple_debug): New.
11724 (gimple_debug_bind_p): New.
11725 (gimple_debug_bind_get_var): New.
11726 (gimple_debug_bind_get_value): New.
11727 (gimple_debug_bind_get_value_ptr): New.
11728 (gimple_debug_bind_set_var): New.
11729 (gimple_debug_bind_set_value): New.
11730 (GIMPLE_DEBUG_BIND_NOVALUE): New internal temporary macro.
11731 (gimple_debug_bind_reset_value): New.
11732 (gimple_debug_bind_has_value_p): New.
11733 (gsi_next_nondebug): New.
11734 (gsi_prev_nondebug): New.
11735 (gsi_start_nondebug_bb): New.
11736 (gsi_last_nondebug_bb): New.
11737 * sched-vis.c (print_pattern): Handle VAR_LOCATION.
11738 (print_insn): Handle DEBUG_INSN.
11739 * tree-cfg.c (remove_bb): Walk stmts backwards. Let loc
11740 of first insn prevail.
11741 (first_stmt): Skip debug stmts.
11742 (first_non_label_stmt): Likewise.
11743 (last_stmt): Likewise.
11744 (has_zero_uses_1): New.
11745 (single_imm_use_1): New.
11746 (verify_gimple_debug): New.
11747 (verify_types_in_gimple_stmt): Handle debug stmts.
11748 (verify_stmt): Likewise.
11749 (debug_loop_num): Skip debug stmts.
11750 (remove_edge_and_dominated_blocks): Remove dominators last.
11751 * tree-ssa-reasssoc.c (rewrite_expr_tree): Propagate into debug stmts.
11752 (linearize_expr): Likewise.
11753 * config/i386/i386.c (ix86_delegitimize_address): Call
11754 default implementation.
11755 * config/ia64/ia64.c (ia64_safe_itanium_class): Handle debug insns.
11756 (group_barrier_needed): Skip debug insns.
11757 (emit_insn_group_barriers): Likewise.
11758 (emit_all_insn_group_barriers): Likewise.
11759 (ia64_variable_issue): Handle debug insns.
11760 (ia64_dfa_new_cycle): Likewise.
11761 (final_emit_insn_group_barriers): Skip debug insns.
11762 (ia64_dwarf2out_def_steady_cfa): Take frame argument. Don't
11763 def cfa without frame.
11764 (process_set): Likewise.
11765 (process_for_unwind_directive): Pass frame on.
11766 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
11767 (rs6000_delegitimize_address): New.
11768 (rs6000_debug_adjust_cost): Handle debug insns.
11769 (is_microcoded_insn): Likewise.
11770 (is_cracked_insn): Likewise.
11771 (is_nonpipeline_insn): Likewise.
11772 (insn_must_be_first_in_group): Likewise.
11773 (insn_must_be_last_in_group): Likewise.
11774 (force_new_group): Likewise.
11775 * cfgrtl.c (rtl_split_block): Emit INSN_DELETED note if block
11776 contains only debug insns.
11777 (rtl_merge_blocks): Skip debug insns.
11778 (purge_dead_edges): Likewise.
11779 (rtl_block_ends_with_call_p): Skip debug insns.
11780 * dce.c (deletable_insn_p): Handle VAR_LOCATION.
11781 (mark_reg_dependencies): Skip debug insns.
11782 * params.def (PARAM_MIN_NONDEBUG_INSN_UID): New.
11783 * tree-ssanames.c (release_ssa_name): Propagate def into debug stmts.
11784 * tree-ssa-threadedge.c
11785 (record_temporary_equivalences_from_stmts): Skip debug stmts.
11786 * regcprop.c (replace_oldest_value_addr): Skip debug insns.
11787 (replace_oldest_value_mem): Use ALL_REGS for debug insns.
11788 (copyprop_hardreg_forward_1): Handle debug insns.
11789 * reload1.c (reload): Skip debug insns. Replace unassigned
11790 pseudos in debug insns with their equivalences.
11791 (eliminate_regs_in_insn): Skip debug insns.
11792 (emit_input_reload_insns): Skip debug insns at first, adjust
11793 them later.
11794 * tree-ssa-operands.c (add_virtual_operand): Reject debug stmts.
11795 (get_indirect_ref_operands): Pass opf_no_vops on.
11796 (get_expr_operands): Likewise. Skip debug stmts.
11797 (parse_ssa_operands): Scan debug insns with opf_no_vops.
11798
11799 2009-09-01 Richard Henderson <rth@redhat.com>
11800
11801 * tree-ssa-ccp.c (ccp_initialize): Make sure to simulate
11802 stmt_ends_pp_p statements at least once.
11803 * tree-vrp.c (vrp_initialize): Likewise.
11804 (vrp_visit_stmt): Be prepared for non-interesting stmts.
11805
11806 2009-09-01 Dodji Seketeli <dodji@redhat.com>
11807
11808 PR bootstrap/41205
11809 Fix AIX bootstrap after PR debug/30161
11810 * dwarf2out.c (make_ith_pack_parameter_name): Don't used strnlen
11811 that is a GNU extension.
11812 (tmpl_value_parm_die_table): Move the definition of this global
11813 outside #ifdef DWARF2_DEBUGGING_INFO region.
11814
11815 2009-09-01 Richard Guenther <rguenther@suse.de>
11816
11817 * tree.c (tree_expr_size): New function.
11818 * tree.h (tree_expr_size): Declare.
11819 * rtlanal.c (rtx_addr_can_trap_p_1): Adjust comment.
11820 * builtins.c (fold_builtin_memory_op): Use tree_expr_size.
11821 * langhooks.c (lhd_expr_size): Remove.
11822 * langhooks.h (struct lang_hooks): Remove expr_size.
11823 * explow.c (expr_size): Use tree_expr_size.
11824 (int_expr_size): Likewise.
11825 * langhooks-def.h (lhd_expr_size): Remove.
11826 (LANG_HOOKS_EXPR_SIZE): Likewise.
11827 (LANG_HOOKS_INITIALIZER): Adjust.
11828
11829 2009-09-01 Richard Guenther <rguenther@suse.de>
11830
11831 * tree-flow.h (mark_addressable): Move declaration ...
11832 * tree.h (mark_addressable): ... here.
11833 * stmt.c (expand_asm_operands): Use mark_addressable, not
11834 lang_hooks.mark_addressable.
11835 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
11836 LANG_HOOKS_MARK_ADDRESSABLE.
11837 * langhooks.h (struct lang_hooks): Remove mark_addressable langhook.
11838 * c-objc-common.h (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
11839
11840 2009-08-31 Chris Demetriou <cgd@google.com>
11841
11842 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never
11843 vectorize if not TARGET_SSE2.
11844
11845 2009-08-31 DJ Delorie <dj@redhat.com>
11846
11847 * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor
11848 registers if no coprocessor is enabled.
11849
11850 2009-08-31 Dodji Seketeli <dodji@redhat.com>
11851
11852 PR debug/30161
11853 * cgraph.h (cgraph_get_node): Declare ...
11854 * cgraph.c (cgraph_get_node): ... new function.
11855 * dwarf2out.c (gen_generic_params_dies,
11856 generic_parameter_die, tree_add_const_value_attribute_for_decl,
11857 make_ith_pack_parameter_name,
11858 append_entry_to_tmpl_value_parm_die_table,
11859 gen_remaining_tmpl_value_param_die_attribute): New functions.
11860 (gen_subprogram_die): Generate debug info for template parameters
11861 if debug info level is higher than DINFO_LEVEL_TERSE.
11862 Use tree_add_const_value_attribute_for_decl instead of
11863 tree_add_const_value_attribute.
11864 (gen_const_die): Use tree_add_const_value_attribute_for_decl
11865 instead of tree_add_const_value_attribute.
11866 (gen_struct_or_union_type_die): Generate debug
11867 info for template parameters if debug info level is higher than
11868 DINFO_LEVEL_TERSE.
11869 (tree_add_const_value_attribute): Handle integral and pointer
11870 constants. Update comment.
11871 (dwarf_tag_name): Support DW_TAG_GNU_template_template_param.
11872 (dwarf_attr_name): Support DW_AT_GNU_template_name.
11873 (reference_to_unused): Fix thinko. Remove redundant predicates from
11874 tests.
11875 (tree_add_const_value_attribute): Make this work for constant
11876 expressions only.
11877 tree_add_const_value_attribute_for_decl is to be used for variable
11878 DECLs now.
11879 (add_location_or_const_value_attribute): Use
11880 tree_add_const_value_attribute_for_decl now.
11881 (dwarf2out_finish): Emit the DW_AT_const_value attribute of
11882 DW_TAG_template_value_param DIEs after function DIEs have been
11883 emitted.
11884 * langhooks.h (lang_hooks_for_types): Add
11885 get_argument_pack_elems.
11886 (lang_hooks_for_decls): Add generic_generic_parameter_decl_p.
11887 (lang_hooks): Added get_innermost_generic_parms,
11888 get_innermost_generic_args.
11889 * langhooks-def.h (LANG_HOOKS_GET_INNERMOST_GENERIC_PARMS,
11890 LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS,
11891 LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS,
11892 LANG_HOOKS_GENERIC_GENERIC_PARAMETER_DECL_P): New language hooks.
11893
11894 2009-08-31 DJ Delorie <dj@redhat.com>
11895
11896 * config/mep/mep.c (machine_function): Add frame_locked flag. Set
11897 it once we start generating the prologue or epilogue.
11898 (mep_call_saves_register): If the frame is locked, re-use
11899 cached values.
11900 (mep_assign_save_slots): New, broken out from mep_expand_prologue.
11901 (mep_expand_prologue): Call it.
11902 (mep_expand_epilogue): Likewise.
11903 (mep_start_function): Use the same logic as mep_expand_prologue.
11904 (mep_pass_by_reference): Make logic more readable.
11905 (mep_return_in_memory): Zero-sized objects are passed in memory.
11906 (mep_reorg_noframe): Make sure we have accurate REG_DEAD notes.
11907
11908 2009-08-31 Richard Guenther <rguenther@suse.de>
11909
11910 * builtins.c (fold_builtin_memory_op): Use the alias oracle
11911 to query if the memory regions for memmove overlap.
11912 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
11913 asserts on pointers, instead deal with odd trees.
11914 (ptr_derefs_may_alias_p): Likewise.
11915 (refs_may_alias_p_1): Constructor bases also never alias.
11916
11917 2009-08-31 Gerald Pfeifer <gerald@pfeifer.com>
11918
11919 * doc/install.texi (Final install): Adjust reference on where to
11920 order printed manuals.
11921
11922 2009-08-30 Olivier Hainque <hainque@adacore.com>
11923
11924 * dwarf2out.c (switch_to_frame_table_section): Move
11925 definition prior to first use.
11926
11927 2009-08-30 Richard Guenther <rguenther@suse.de>
11928
11929 PR tree-optimization/41186
11930 * tree-ssa-alias.c (ptr_deref_may_alias_ref_p): Remove.
11931 (ao_ref_init_from_ptr_and_size): New function.
11932 (ref_maybe_used_by_call_p_1): Be more precise tracking
11933 used ranges for builtin functions.
11934 (ref_maybe_used_by_call_p): Adjust.
11935 (call_may_clobber_ref_p_1): Be more precise tracking clobbered
11936 ranges for builtin functions.
11937 * tree-ssa-alias.h (ao_ref_init_from_ptr_and_size): Declare.
11938
11939 2009-08-30 Alan Modra <amodra@bigpond.net.au>
11940
11941 PR target/41081
11942 * fwprop.c (get_reg_use_in): Delete.
11943 (free_load_extend): New function.
11944 (forward_propagate_subreg): Use it.
11945
11946 2009-08-29 Kaz Kojima <kkojima@gcc.gnu.org>
11947
11948 * config.gcc (sh*-*-elf): Add superh stuff only for sh*-superh-elf.
11949
11950 2009-08-29 Kai Tietz<kai.tietz@onevision.com>
11951
11952 PR/41184
11953 * config/i386.c (ix86_expand_epilogue): Correct stack adjustment for
11954 padding.
11955
11956 2009-08-29 Douglas B Rupp <rupp@gnat.com>
11957
11958 * crtstuff.c (__do_global_dtors_aux): Use atexit if no
11959 fini or fini_array section.
11960
11961 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
11962
11963 * graphite-dependences.c (graphite_legal_transform_bb): Call
11964 pbb_remove_duplicate_pdrs.
11965 * graphite-poly.c (can_collapse_pdr): Removed.
11966 (pdr_find_duplicate): Removed.
11967 (can_collapse_pdrs): New.
11968 (pbb_remove_duplicate_pdrs): New.
11969 (new_poly_dr): Do not look for duplicates.
11970 * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
11971 (PBB_PDR_DUPLICATES_REMOVED): New.
11972 (pbb_remove_duplicate_pdrs): Declared.
11973
11974 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
11975
11976 * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
11977 the strides by multiplying by PDR_NB_REFS.
11978 * graphite-poly.c (can_collapse_pdr): New.
11979 (pdr_find_duplicate): New.
11980 (new_poly_dr): Call pdr_find_duplicate. Collapse duplicate PDRs.
11981 Initialize PDR_NB_REFS.
11982 * graphite-poly.h (struct poly_dr): Add field nb_refs.
11983 (PDR_NB_REFS): New.
11984 (new_poly_dr): Number of subscripts is a graphite_dim_t.
11985
11986 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
11987
11988 PR middle-end/40965
11989 * graphite-poly.c (apply_poly_transforms): Remove legality test before
11990 any transform.
11991
11992 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
11993
11994 * graphite-dependences.c (pddr_original_scattering): Return NULL
11995 for read-read dependence relations.
11996 * graphite-poly.h (enum poly_dr_type): Fix comment.
11997 (pdr_read_p): New.
11998 (pdr_write_p): New.
11999 (pdr_may_write_p): New.
12000
12001 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
12002
12003 * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
12004 (struct poly_dr): Same.
12005 (new_poly_dr): Same.
12006 * graphite-poly.c (new_poly_dr): Same.
12007 * graphite-dependences.c (dot_deps): Disable call to system.
12008
12009 2009-08-28 Cary Coutant <ccoutant@google.com>
12010
12011 PR debug/41063
12012 * dwarf2out.c (gen_type_die_with_usage): Use proper context for
12013 struct/union/enum types local to a function.
12014
12015 2009-08-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
12016 Sebastian Pop <sebastian.pop@amd.com>
12017
12018 * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
12019 pbb_strip_mine_time_depth. Changed the implementation so that
12020 transformation is expressed as a transformation on
12021 time (scatttering) dimensions. Also, ensures that the 2d+1
12022 scheduling format is preserved.
12023 (pbb_strip_mine_profitable_p): Profitability is based on the
12024 iteration number of a given time (scattering) dimension,
12025 and not on a original loop depth dimension.
12026 (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
12027 (pbb_do_strip_mine): Call psct_dynamic_dim.
12028 * graphite-poly.c (pbb_number_of_iterations_at_time): New.
12029 * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
12030 (pbb_nb_dynamic_scattering_transform): New.
12031 (psct_dynamic_dim): New.
12032
12033 2009-08-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
12034
12035 * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
12036 * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
12037 * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
12038 * graphite-interchange.c (build_linearized_memory_access): Same.
12039 (memory_stride_in_loop): Same.
12040
12041 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
12042
12043 * graphite-dependences.c (pddr_original_scattering): New.
12044 (graphite_legal_transform_dr): Call pddr_original_scattering.
12045 (dot_deps_1): New.
12046 (dot_deps): New.
12047 * graphite-dependences.h (dot_deps): Declared.
12048 * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
12049 (print_pdr): Print PDR_ID.
12050 * graphite-poly.h (struct poly_dr): Add field id.
12051 (PDR_ID): New.
12052 (pbb_index): New.
12053 * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
12054
12055 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
12056
12057 * graphite-dependences.c (graphite_carried_dependence_level_k): Do
12058 not delete the original dependence relation.
12059
12060 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
12061
12062 * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
12063 (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
12064 (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
12065 (free_poly_ddr): New.
12066 (pddr_is_empty): New.
12067 (dependence_polyhedron_1): Now returns a poly_ddr_p.
12068 (dependence_polyhedron): Same. Remove useless gcc_assert.
12069 Remove fprintfs.
12070 (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
12071 (graphite_carried_dependence_level_k): Call pddr_is_empty.
12072 * graphite-dependences.h (enum poly_dependence_kind): New.
12073 (poly_dr_pair): Renamed poly_ddr. Added a field kind.
12074 (PDRP_SOURCE): Renamed PDDR_SOURCE.
12075 (PDRP_SINK): Renamed PDDR_SINK.
12076 (PDRP_DDP): Renamed PDDR_DDP.
12077 (PDDR_KIND): New.
12078 (free_poly_ddr): Declared.
12079 * graphite-poly.c (new_scop): Use the new hash function names.
12080 * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
12081 into original_pddrs.
12082 (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
12083
12084 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
12085
12086 * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
12087 bounds with LT_EXPR to make niter analysis more precise on code
12088 generated by Graphite.
12089
12090 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
12091
12092 * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
12093 (graphite_legal_transform_bb): Same.
12094 (poly_drs_may_alias_p): Same.
12095
12096 2009-08-28 Richard Guenther <rguenther@suse.de>
12097
12098 * tree.def: Remove note about obsolete TYPE_NONCOPIED_PARTS.
12099
12100 2009-08-28 Jan Beulich <jbeulich@novell.com>
12101
12102 * config/i386/netware.c: Include langhooks.h.
12103 (i386_nlm_encode_section_info): Simplify.
12104 (netware_override_options): Delete.
12105 * config/i386/netware.h (netware_override_options): Delete
12106 declaration.
12107 (OVERRIDE_OPTIONS): Delete definition.
12108 (SUBTARGET_OVERRIDE_OPTIONS): Define.
12109 (ASM_COMMENT_START): Define.
12110 * config/i386/nwld.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
12111
12112 2009-08-28 Jan Beulich <jbeulich@novell.com>
12113
12114 * configure.ac: For in-tree ld, do a plain version check to
12115 determine whether comdat groups are supported.
12116 * configure: Regenerate.
12117
12118 2009-08-28 Olivier Hainque <hainque@adacore.com>
12119
12120 * collect2.c (DO_COLLECT_EXPORT_LIST): New internal macro,
12121 always defined. Reflect definition or absence of such for
12122 COLLECT_EXPORT_LIST. Readability helper.
12123 (scanfilter): New enum, to help control what symbols
12124 are to be considered or ignored by scan_prog_file.
12125 (enum pass): Rename as "scanpass", moved together with scanfilter
12126 prior to scan_prog_file's prototype.
12127 (scan_prog_file): Accept and honor scanpass and scanfilter arguments.
12128 Group prototype with the scanpass/scanfilter definitions, factorize
12129 head comments for the several implementations at the prototype.
12130 (main): Reorganize the first pass link control to let AIX
12131 drag only the needed frame tables in executables. Prevent
12132 frame tables collection during the scan aimed at static ctors.
12133 Pre-link and scan for frame tables later to compensate.
12134 * doc/tm.texi (ASM_OUTPUT_DWARF_TABLE_REF): New macro.
12135 A C statement to issue assembly directives that create a reference
12136 to the given DWARF table identifier label from the current function
12137 section.
12138 * dwarf2out.c (switch_to_eh_frame_section): Add a BACK argument
12139 to differentiate first time section entry. Only emit a .data
12140 tables start identifier label the first time around.
12141 (switch_to_frame_table_section): New function. Helper for
12142 output_call_frame_info to switch possibly BACK into the eh_frame
12143 or the debug_frame section depending on FOR_EH.
12144 (output_call_frame_info): Use helper to first enter the proper
12145 frame section.
12146 (output_fde): Use ASM_OUTPUT_DWARF_TABLE_REF when defined to
12147 emit a link to the frame table start label from each function
12148 section.
12149 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
12150 New function. Implementation of ASM_OUTPUT_DWARF_TABLE_REF.
12151 * config/rs6000/rs6000-protos.h: Declare it.
12152 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Define.
12153
12154 2009-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
12155
12156 * config/sh/sh.c (split_branches): Check the result of
12157 next_active_insn.
12158
12159 2009-08-27 Steve Ellcey <sje@cup.hp.com>
12160
12161 * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when
12162 using -pthread -fopenmp
12163
12164 2009-08-27 Gerald Pfeifer <gerald@pfeifer.com>
12165
12166 * doc/service.texi (service directory): Update URL.
12167
12168 2009-08-27 Uros Bizjak <ubizjak@gmail.com>
12169
12170 PR rtl-optimization/40861
12171 * simplify-rtx.c (simplify_subreg): Do not call simplify_gen_subreg to
12172 extract word from a multi-word subreg for negative byte positions.
12173
12174 2009-08-27 Tristan Gingold <gingold@adacore.com>
12175 Douglas B Rupp <rupp@gnat.com>
12176
12177 * config/ia64/ia64.c (ia64_attribute_table): Add "common_object" entry.
12178 (SECTION_VMS_OVERLAY): Define.
12179 (ia64_vms_common_object_attribute): Added. Handle the "common_object"
12180 attribute.
12181 (ia64_vms_elf_asm_named_section): Added. Generate .section pseudo-op
12182 for common_object.
12183 (ia64_vms_output_aligned_decl_common): Added. Generate pseudo-op for
12184 common_object declarations.
12185 (ia64_section_type_flags): Set section flag for common_object.
12186 * config/ia64/ia64-protos.h
12187 (ia64_vms_output_aligned_decl_common): Declare.
12188 (ia64_vms_elf_asm_named_section): Declare.
12189
12190 2009-08-27 Michael Matz <matz@suse.de>
12191
12192 * expr.c (expand_expr_real_2): New function taking exploded
12193 unary or binary expression, split out from ...
12194 (expand_expr_real_1): ... here. Move over all unary/binary
12195 switch parts to above function, in particular these codes:
12196 PAREN_EXPR, NOP_EXPR, CONVERT_EXPR, POINTER_PLUS_EXPR, PLUS_EXPR,
12197 MINUS_EXPR, MULT_EXPR, TRUNC_DIV_EXPR, FLOOR_DIV_EXPR, CEIL_DIV_EXPR,
12198 ROUND_DIV_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, TRUNC_MOD_EXPR,
12199 FLOOR_MOD_EXPR, CEIL_MOD_EXPR, ROUND_MOD_EXPR, FIXED_CONVERT_EXPR,
12200 FIX_TRUNC_EXPR, FLOAT_EXPR, NEGATE_EXPR, ABS_EXPR, MAX_EXPR, MIN_EXPR,
12201 BIT_NOT_EXPR, TRUTH_AND_EXPR, BIT_AND_EXPR, TRUTH_OR_EXPR,
12202 BIT_IOR_EXPR, TRUTH_XOR_EXPR, BIT_XOR_EXPR, LROTATE_EXPR, RROTATE_EXPR,
12203 LSHIFT_EXPR, RSHIFT_EXPR, LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR,
12204 NE_EXPR, UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR,
12205 UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_NOT_EXPR, COMPLEX_EXPR,
12206 WIDEN_SUM_EXPR, REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR,
12207 VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
12208 VEC_INTERLEAVE_LOW_EXPR, VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR,
12209 VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR, VEC_UNPACK_FLOAT_HI_EXPR,
12210 VEC_UNPACK_FLOAT_LO_EXPR, VEC_WIDEN_MULT_HI_EXPR,
12211 VEC_WIDEN_MULT_LO_EXPR, VEC_PACK_TRUNC_EXPR, VEC_PACK_SAT_EXPR,
12212 VEC_PACK_FIX_TRUNC_EXPR.
12213 (<case PAREN_EXPR>): Call set_mem_attributes() with type, not the
12214 full expression.
12215
12216 2009-08-27 Richard Guenther <rguenther@suse.de>
12217
12218 * gengtype.c (main): Handle uint64_t.
12219 * ipa-utils.c (get_base_var): Indent properly.
12220 * tree-ssa-live.c (debug_scope_block): New function.
12221 * tree-flow.h (debug_scope_block): Declare.
12222 * tree-ssa-copy.c (replace_exp_1): Add vertical space.
12223 * basic-block.h (enum profile_status): Rename to
12224 enum profile_status_d.
12225 (x_profile_status): Adjust type.
12226
12227 2009-08-27 Dodji Seketeli <dodji@redhat.com>
12228
12229 PR debug/41170
12230 * dwarf2out.c (get_context_die): Declare this static function.
12231 (gen_type_die_with_usage): Make sure a DIE is a generated for
12232 the context of a typedef.
12233
12234 2009-08-26 Anatoly Sokolov <aesok@post.ru>
12235
12236 * doc/invoke.texi (AVR Options): Remove documentation of -minit-stack
12237 switch.
12238
12239 2009-08-26 Richard Sandiford <rdsandiford@googlemail.com>
12240
12241 * config/mips/mips-protos.h (mips_output_sync): Declare.
12242 (mips_sync_loop_insns): Likewise.
12243 (mips_output_sync_loop): Replace first two parameters with an rtx.
12244 * config/mips/mips.c (mips_multi_member): New structure.
12245 (mips_multi_members): New variable.
12246 (mips_multi_start): New function.
12247 (mips_multi_add): Likewise.
12248 (mips_multi_add_insn): Likewise.
12249 (mips_multi_add_label): Likewise.
12250 (mips_multi_last_index): Likewise.
12251 (mips_multi_copy_insn): Likewise.
12252 (mips_multi_set_operand): Likewise.
12253 (mips_multi_write): Likewise.
12254 (mips_print_operand_punctuation): Remove '%|' and '%-'.
12255 (mips_init_print_operand_punct): Update accordingly.
12256 (mips_start_ll_sc_sync_block): New function.
12257 (mips_end_ll_sc_sync_block): Likewise.
12258 (mips_output_sync): Likewise.
12259 (mips_sync_insn1_template): Likewise.
12260 (mips_sync_insn2_template): Likewise.
12261 (mips_get_sync_operand): Likewise.
12262 (mips_process_sync_loop): Likewise.
12263 (mips_output_sync_loop): Use mips_process_sync_loop.
12264 (mips_sync_loop_insns): New function.
12265 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Delete.
12266 (MIPS_COMPARE_AND_SWAP_12): Likewise.
12267 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP): Likewise.
12268 (MIPS_COMPARE_AND_SWAP_12_NONZERO_OP): Likewise.
12269 (MIPS_SYNC_OP, MIPS_SYNC_OP_12): Likewise.
12270 (MIPS_SYNC_OP_12_AND, MIPS_SYNC_OP_12_XOR): Likewise.
12271 (MIPS_SYNC_OLD_OP_12): Likewise.
12272 (MIPS_SYNC_OLD_OP_12_AND, MIPS_SYNC_OLD_OP_12_XOR): Likewise.
12273 (MIPS_SYNC_NEW_OP_12): Likewise.
12274 (MIPS_SYNC_NEW_OP_12_AND, MIPS_SYNC_NEW_OP_12_XOR): Likewise.
12275 (MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP): Likewise.
12276 (MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND): Likewise.
12277 (MIPS_SYNC_EXCHANGE, MIPS_SYNC_EXCHANGE_12): Likewise.
12278 (MIPS_SYNC_EXCHANGE_12_ZERO_OP): Likewise.
12279 (MIPS_SYNC_EXCHANGE_12_NONZER_OP): Likewise.
12280 * config/mips/mips.md (sync_mem): New attribute.
12281 (sync_oldval, sync_newval, sync_inclusive_mask): Likewise.
12282 (sync_exclusive_mask, sync_required_oldval): Likewise.
12283 (sync_insn1_op2, sync_insn1, sync_insn2): Likewise.
12284 (sync_release_barrier): Likewise.
12285 (length): Handle sync loops.
12286 (sync): Use mips_output_sync.
12287 * config/mips/sync.md (*memory_barrier): Use mips_output_sync.
12288 (sync_compare_and_swap<mode>): Set the new sync_* attributes
12289 and use mips_output_sync_loop.
12290 (compare_and_swap_12, sync_add<mode>, sync_<optab>_12): Likewise.
12291 (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
12292 (sync_old_nand_12, sync_new_nand_12, sync_sub<mode>): Likewise.
12293 (sync_old_add<mode>, sync_old_sub<mode>): Likewise.
12294 (sync_new_add<mode>, sync_new_sub<mode>): Likewise.
12295 (sync_<optab><mode>, sync_old_<optab><mode>): Likewise.
12296 (sync_new_<optab><mode>, sync_nand<mode>): Likewise.
12297 (sync_old_nand<mode>, sync_new_nand<mode>): Likewise.
12298 (sync_lock_test_and_set<mode>, test_and_set_12): Likewise.
12299
12300 2009-08-26 Richard Guenther <rguenther@suse.de>
12301
12302 PR middle-end/41163
12303 * gimplify.c (gimplify_addr_expr): Canonicalize ADDR_EXPRs if
12304 the types to not match.
12305 * tree-cfg.c (verify_gimple_assign_single): Adjust ADDR_EXPR
12306 verification.
12307 * tree-ssa.c (useless_type_conversion_p): Conversions to
12308 pointers to unprototyped functions are useless.
12309
12310 2009-08-26 Richard Guenther <rguenther@suse.de>
12311
12312 * tree-ssa-structalias.c (create_variable_info_for): Remove strange
12313 whole-program condition, prepare to be called for non-globals.
12314 (intra_create_variable_infos): For restrict qualified DECL_BY_REFERENCE
12315 params build a representative with known type and track its fields.
12316
12317 2009-08-26 Uros Bizjak <ubizjak@gmail.com>
12318
12319 * config/alpha/sync.md: Update comment about unpredictable LL/SC lock
12320 clearing by a taken branch.
12321 (sync_<fetchop_name><mode>): Split when epilogue_completed is set,
12322 effectively after bbro pass.
12323 (sync_nand<mode>): Ditto.
12324 (sync_old_<fetchop_name><mode>): Ditto.
12325 (sync_old_nand<mode>): Ditto.
12326 (sync_new_<fetchop_name><mode>): Dito.
12327 (sync_new_nand<mode>): Ditto.
12328 (sync_compare_and_swap<mode>_1): Ditto.
12329 (*sync_compare_and_swap<mode>): Ditto.
12330 (sync_lock_test_and_set<mode>_1): Ditto.
12331 ("sync_lock_test_and_set<mode>): Ditto.
12332
12333 2009-08-25 Douglas B Rupp <rupp@gnat.com>
12334
12335 * hwint.h (HOST_LONG_FORMAT): New macro
12336 * bitmap.c, c-decl.c, mips-tfile.c, print-rtl.c, print-tree.c:
12337 Use HOST_PTR_PRINTF.
12338 * system.h (HOST_PTR_PRINTF): Resurrect old macro
12339 * doc/hostconfig.texi (HOST_LONG_FORMAT): Document.
12340 (HOST_PTR_PRINTF): Document.
12341
12342 2009-08-25 Jan Hubicka <jh@suse.cz>
12343
12344 * config/i386/bmmintrin.h: Replace by #error.
12345
12346 Revert:
12347 Michael Meissner <michael.meissner@amd.com>
12348 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
12349 Tony Linthicum <tony.linthicum@amd.com>
12350
12351 * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
12352 (TARGET_ROUND): New macro for the round/ptest instructions which
12353 are shared between SSE4.1 and SSE5.
12354 (OPTION_MASK_ISA_ROUND): Ditto.
12355 (OPTION_ISA_ROUND): Ditto.
12356 (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
12357 (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
12358
12359 * config/i386/i386.opt (-msse5): New switch for SSE5 support.
12360 (-mfused-madd): New switch to give users control over whether the
12361 compiler optimizes to use the multiply/add SSE5 instructions.
12362
12363 * config/i386/i386.c (enum pta_flags): Add PTA_SSE5.
12364 (ix86_handle_option): Turn off 3dnow if -msse5.
12365 (override_options): Add SSE5 support.
12366 (print_operand): %Y prints comparison codes for SSE5 com/pcom
12367 instructions.
12368 (ix86_expand_sse_movcc): Add SSE5 support.
12369 (ix86_expand_sse5_unpack): New function to use pperm to unpack a
12370 vector type to the next largest size.
12371 (ix86_expand_sse5_pack): New function to use pperm to pack a
12372 vector type to the next smallest size.
12373 (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
12374 (IX86_BUILTIN_FMADDSD): Ditto.
12375 (IX86_BUILTIN_FMADDPS): Ditto.
12376 (IX86_BUILTIN_FMADDPD): Ditto.
12377 (IX86_BUILTIN_FMSUBSS): Ditto.
12378 (IX86_BUILTIN_FMSUBSD): Ditto.
12379 (IX86_BUILTIN_FMSUBPS): Ditto.
12380 (IX86_BUILTIN_FMSUBPD): Ditto.
12381 (IX86_BUILTIN_FNMADDSS): Ditto.
12382 (IX86_BUILTIN_FNMADDSD): Ditto.
12383 (IX86_BUILTIN_FNMADDPS): Ditto.
12384 (IX86_BUILTIN_FNMADDPD): Ditto.
12385 (IX86_BUILTIN_FNMSUBSS): Ditto.
12386 (IX86_BUILTIN_FNMSUBSD): Ditto.
12387 (IX86_BUILTIN_FNMSUBPS): Ditto.
12388 (IX86_BUILTIN_FNMSUBPD): Ditto.
12389 (IX86_BUILTIN_PCMOV_V2DI): Ditto.
12390 (IX86_BUILTIN_PCMOV_V4SI): Ditto.
12391 (IX86_BUILTIN_PCMOV_V8HI): Ditto.
12392 (IX86_BUILTIN_PCMOV_V16QI): Ditto.
12393 (IX86_BUILTIN_PCMOV_V4SF): Ditto.
12394 (IX86_BUILTIN_PCMOV_V2DF): Ditto.
12395 (IX86_BUILTIN_PPERM): Ditto.
12396 (IX86_BUILTIN_PERMPS): Ditto.
12397 (IX86_BUILTIN_PERMPD): Ditto.
12398 (IX86_BUILTIN_PMACSSWW): Ditto.
12399 (IX86_BUILTIN_PMACSWW): Ditto.
12400 (IX86_BUILTIN_PMACSSWD): Ditto.
12401 (IX86_BUILTIN_PMACSWD): Ditto.
12402 (IX86_BUILTIN_PMACSSDD): Ditto.
12403 (IX86_BUILTIN_PMACSDD): Ditto.
12404 (IX86_BUILTIN_PMACSSDQL): Ditto.
12405 (IX86_BUILTIN_PMACSSDQH): Ditto.
12406 (IX86_BUILTIN_PMACSDQL): Ditto.
12407 (IX86_BUILTIN_PMACSDQH): Ditto.
12408 (IX86_BUILTIN_PMADCSSWD): Ditto.
12409 (IX86_BUILTIN_PMADCSWD): Ditto.
12410 (IX86_BUILTIN_PHADDBW): Ditto.
12411 (IX86_BUILTIN_PHADDBD): Ditto.
12412 (IX86_BUILTIN_PHADDBQ): Ditto.
12413 (IX86_BUILTIN_PHADDWD): Ditto.
12414 (IX86_BUILTIN_PHADDWQ): Ditto.
12415 (IX86_BUILTIN_PHADDDQ): Ditto.
12416 (IX86_BUILTIN_PHADDUBW): Ditto.
12417 (IX86_BUILTIN_PHADDUBD): Ditto.
12418 (IX86_BUILTIN_PHADDUBQ): Ditto.
12419 (IX86_BUILTIN_PHADDUWD): Ditto.
12420 (IX86_BUILTIN_PHADDUWQ): Ditto.
12421 (IX86_BUILTIN_PHADDUDQ): Ditto.
12422 (IX86_BUILTIN_PHSUBBW): Ditto.
12423 (IX86_BUILTIN_PHSUBWD): Ditto.
12424 (IX86_BUILTIN_PHSUBDQ): Ditto.
12425 (IX86_BUILTIN_PROTB): Ditto.
12426 (IX86_BUILTIN_PROTW): Ditto.
12427 (IX86_BUILTIN_PROTD): Ditto.
12428 (IX86_BUILTIN_PROTQ): Ditto.
12429 (IX86_BUILTIN_PROTB_IMM): Ditto.
12430 (IX86_BUILTIN_PROTW_IMM): Ditto.
12431 (IX86_BUILTIN_PROTD_IMM): Ditto.
12432 (IX86_BUILTIN_PROTQ_IMM): Ditto.
12433 (IX86_BUILTIN_PSHLB): Ditto.
12434 (IX86_BUILTIN_PSHLW): Ditto.
12435 (IX86_BUILTIN_PSHLD): Ditto.
12436 (IX86_BUILTIN_PSHLQ): Ditto.
12437 (IX86_BUILTIN_PSHAB): Ditto.
12438 (IX86_BUILTIN_PSHAW): Ditto.
12439 (IX86_BUILTIN_PSHAD): Ditto.
12440 (IX86_BUILTIN_PSHAQ): Ditto.
12441 (IX86_BUILTIN_FRCZSS): Ditto.
12442 (IX86_BUILTIN_FRCZSD): Ditto.
12443 (IX86_BUILTIN_FRCZPS): Ditto.
12444 (IX86_BUILTIN_FRCZPD): Ditto.
12445 (IX86_BUILTIN_CVTPH2PS): Ditto.
12446 (IX86_BUILTIN_CVTPS2PH): Ditto.
12447 (IX86_BUILTIN_COMEQSS): Ditto.
12448 (IX86_BUILTIN_COMNESS): Ditto.
12449 (IX86_BUILTIN_COMLTSS): Ditto.
12450 (IX86_BUILTIN_COMLESS): Ditto.
12451 (IX86_BUILTIN_COMGTSS): Ditto.
12452 (IX86_BUILTIN_COMGESS): Ditto.
12453 (IX86_BUILTIN_COMUEQSS): Ditto.
12454 (IX86_BUILTIN_COMUNESS): Ditto.
12455 (IX86_BUILTIN_COMULTSS): Ditto.
12456 (IX86_BUILTIN_COMULESS): Ditto.
12457 (IX86_BUILTIN_COMUGTSS): Ditto.
12458 (IX86_BUILTIN_COMUGESS): Ditto.
12459 (IX86_BUILTIN_COMORDSS): Ditto.
12460 (IX86_BUILTIN_COMUNORDSS): Ditto.
12461 (IX86_BUILTIN_COMFALSESS): Ditto.
12462 (IX86_BUILTIN_COMTRUESS): Ditto.
12463 (IX86_BUILTIN_COMEQSD): Ditto.
12464 (IX86_BUILTIN_COMNESD): Ditto.
12465 (IX86_BUILTIN_COMLTSD): Ditto.
12466 (IX86_BUILTIN_COMLESD): Ditto.
12467 (IX86_BUILTIN_COMGTSD): Ditto.
12468 (IX86_BUILTIN_COMGESD): Ditto.
12469 (IX86_BUILTIN_COMUEQSD): Ditto.
12470 (IX86_BUILTIN_COMUNESD): Ditto.
12471 (IX86_BUILTIN_COMULTSD): Ditto.
12472 (IX86_BUILTIN_COMULESD): Ditto.
12473 (IX86_BUILTIN_COMUGTSD): Ditto.
12474 (IX86_BUILTIN_COMUGESD): Ditto.
12475 (IX86_BUILTIN_COMORDSD): Ditto.
12476 (IX86_BUILTIN_COMUNORDSD): Ditto.
12477 (IX86_BUILTIN_COMFALSESD): Ditto.
12478 (IX86_BUILTIN_COMTRUESD): Ditto.
12479 (IX86_BUILTIN_COMEQPS): Ditto.
12480 (IX86_BUILTIN_COMNEPS): Ditto.
12481 (IX86_BUILTIN_COMLTPS): Ditto.
12482 (IX86_BUILTIN_COMLEPS): Ditto.
12483 (IX86_BUILTIN_COMGTPS): Ditto.
12484 (IX86_BUILTIN_COMGEPS): Ditto.
12485 (IX86_BUILTIN_COMUEQPS): Ditto.
12486 (IX86_BUILTIN_COMUNEPS): Ditto.
12487 (IX86_BUILTIN_COMULTPS): Ditto.
12488 (IX86_BUILTIN_COMULEPS): Ditto.
12489 (IX86_BUILTIN_COMUGTPS): Ditto.
12490 (IX86_BUILTIN_COMUGEPS): Ditto.
12491 (IX86_BUILTIN_COMORDPS): Ditto.
12492 (IX86_BUILTIN_COMUNORDPS): Ditto.
12493 (IX86_BUILTIN_COMFALSEPS): Ditto.
12494 (IX86_BUILTIN_COMTRUEPS): Ditto.
12495 (IX86_BUILTIN_COMEQPD): Ditto.
12496 (IX86_BUILTIN_COMNEPD): Ditto.
12497 (IX86_BUILTIN_COMLTPD): Ditto.
12498 (IX86_BUILTIN_COMLEPD): Ditto.
12499 (IX86_BUILTIN_COMGTPD): Ditto.
12500 (IX86_BUILTIN_COMGEPD): Ditto.
12501 (IX86_BUILTIN_COMUEQPD): Ditto.
12502 (IX86_BUILTIN_COMUNEPD): Ditto.
12503 (IX86_BUILTIN_COMULTPD): Ditto.
12504 (IX86_BUILTIN_COMULEPD): Ditto.
12505 (IX86_BUILTIN_COMUGTPD): Ditto.
12506 (IX86_BUILTIN_COMUGEPD): Ditto.
12507 (IX86_BUILTIN_COMORDPD): Ditto.
12508 (IX86_BUILTIN_COMUNORDPD): Ditto.
12509 (IX86_BUILTIN_COMFALSEPD): Ditto.
12510 (IX86_BUILTIN_COMTRUEPD): Ditto.
12511 (IX86_BUILTIN_PCOMEQUB): Ditto.
12512 (IX86_BUILTIN_PCOMNEUB): Ditto.
12513 (IX86_BUILTIN_PCOMLTUB): Ditto.
12514 (IX86_BUILTIN_PCOMLEUB): Ditto.
12515 (IX86_BUILTIN_PCOMGTUB): Ditto.
12516 (IX86_BUILTIN_PCOMGEUB): Ditto.
12517 (IX86_BUILTIN_PCOMFALSEUB): Ditto.
12518 (IX86_BUILTIN_PCOMTRUEUB): Ditto.
12519 (IX86_BUILTIN_PCOMEQUW): Ditto.
12520 (IX86_BUILTIN_PCOMNEUW): Ditto.
12521 (IX86_BUILTIN_PCOMLTUW): Ditto.
12522 (IX86_BUILTIN_PCOMLEUW): Ditto.
12523 (IX86_BUILTIN_PCOMGTUW): Ditto.
12524 (IX86_BUILTIN_PCOMGEUW): Ditto.
12525 (IX86_BUILTIN_PCOMFALSEUW): Ditto.
12526 (IX86_BUILTIN_PCOMTRUEUW): Ditto.
12527 (IX86_BUILTIN_PCOMEQUD): Ditto.
12528 (IX86_BUILTIN_PCOMNEUD): Ditto.
12529 (IX86_BUILTIN_PCOMLTUD): Ditto.
12530 (IX86_BUILTIN_PCOMLEUD): Ditto.
12531 (IX86_BUILTIN_PCOMGTUD): Ditto.
12532 (IX86_BUILTIN_PCOMGEUD): Ditto.
12533 (IX86_BUILTIN_PCOMFALSEUD): Ditto.
12534 (IX86_BUILTIN_PCOMTRUEUD): Ditto.
12535 (IX86_BUILTIN_PCOMEQUQ): Ditto.
12536 (IX86_BUILTIN_PCOMNEUQ): Ditto.
12537 (IX86_BUILTIN_PCOMLTUQ): Ditto.
12538 (IX86_BUILTIN_PCOMLEUQ): Ditto.
12539 (IX86_BUILTIN_PCOMGTUQ): Ditto.
12540 (IX86_BUILTIN_PCOMGEUQ): Ditto.
12541 (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
12542 (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
12543 (IX86_BUILTIN_PCOMEQB): Ditto.
12544 (IX86_BUILTIN_PCOMNEB): Ditto.
12545 (IX86_BUILTIN_PCOMLTB): Ditto.
12546 (IX86_BUILTIN_PCOMLEB): Ditto.
12547 (IX86_BUILTIN_PCOMGTB): Ditto.
12548 (IX86_BUILTIN_PCOMGEB): Ditto.
12549 (IX86_BUILTIN_PCOMFALSEB): Ditto.
12550 (IX86_BUILTIN_PCOMTRUEB): Ditto.
12551 (IX86_BUILTIN_PCOMEQW): Ditto.
12552 (IX86_BUILTIN_PCOMNEW): Ditto.
12553 (IX86_BUILTIN_PCOMLTW): Ditto.
12554 (IX86_BUILTIN_PCOMLEW): Ditto.
12555 (IX86_BUILTIN_PCOMGTW): Ditto.
12556 (IX86_BUILTIN_PCOMGEW): Ditto.
12557 (IX86_BUILTIN_PCOMFALSEW): Ditto.
12558 (IX86_BUILTIN_PCOMTRUEW): Ditto.
12559 (IX86_BUILTIN_PCOMEQD): Ditto.
12560 (IX86_BUILTIN_PCOMNED): Ditto.
12561 (IX86_BUILTIN_PCOMLTD): Ditto.
12562 (IX86_BUILTIN_PCOMLED): Ditto.
12563 (IX86_BUILTIN_PCOMGTD): Ditto.
12564 (IX86_BUILTIN_PCOMGED): Ditto.
12565 (IX86_BUILTIN_PCOMFALSED): Ditto.
12566 (IX86_BUILTIN_PCOMTRUED): Ditto.
12567 (IX86_BUILTIN_PCOMEQQ): Ditto.
12568 (IX86_BUILTIN_PCOMNEQ): Ditto.
12569 (IX86_BUILTIN_PCOMLTQ): Ditto.
12570 (IX86_BUILTIN_PCOMLEQ): Ditto.
12571 (IX86_BUILTIN_PCOMGTQ): Ditto.
12572 (IX86_BUILTIN_PCOMGEQ): Ditto.
12573 (IX86_BUILTIN_PCOMFALSEQ): Ditto.
12574 (IX86_BUILTIN_PCOMTRUEQ): Ditto.
12575 (enum multi_arg_type): New enum for describing the various SSE5
12576 intrinsic argument types.
12577 (bdesc_multi_arg): New table for SSE5 intrinsics.
12578 (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
12579 (ix86_expand_multi_arg_builtin): New function for creating SSE5
12580 intrinsics.
12581 (ix86_expand_builtin): Add SSE5 intrinsic support.
12582 (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
12583 operand instructions.
12584 (ix86_expand_sse5_multiple_memory): New function to split the
12585 second memory reference from SSE5 instructions.
12586 (type_has_variadic_args_p): Delete in favor of stdarg_p.
12587 (ix86_return_pops_args): Use stdarg_p to determine if the function
12588 has variable arguments.
12589 (ix86_setup_incoming_varargs): Ditto.
12590 (x86_this_parameter): Ditto.
12591
12592 * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
12593 declaration.
12594 (ix86_expand_sse5_pack): Ditto.
12595 (ix86_sse5_valid_op_p): Ditto.
12596 (ix86_expand_sse5_multiple_memory): Ditto.
12597
12598 * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
12599 constant for SSE5 support.
12600 (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
12601 (UNSPEC_SSE5_TRUEFALSE): Ditto.
12602 (UNSPEC_SSE5_PERMUTE): Ditto.
12603 (UNSPEC_SSE5_ASHIFT): Ditto.
12604 (UNSPEC_SSE5_LSHIFT): Ditto.
12605 (UNSPEC_FRCZ): Ditto.
12606 (UNSPEC_CVTPH2PS): Ditto.
12607 (UNSPEC_CVTPS2PH): Ditto.
12608 (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
12609 (PCOM_TRUE): Ditto.
12610 (COM_FALSE_S): Ditto.
12611 (COM_FALSE_P): Ditto.
12612 (COM_TRUE_S): Ditto.
12613 (COM_TRUE_P): Ditto.
12614 (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
12615 (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
12616 types.
12617 (memory attribute): Ditto.
12618 (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
12619 Use SSE4_1_ROUND_* constants instead of hard coded numbers.
12620 (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
12621 (floor<mode>2): Ditto.
12622 (ceil<mode>2): Ditto.
12623 (btrunc<mode>2): Ditto.
12624 (nearbyintdf2): Ditto.
12625 (nearbyintsf2): Ditto.
12626 (sse_setccsf): Disable if SSE5.
12627 (sse_setccdf): Ditto.
12628 (sse5_setcc<mode>): New support for SSE5 conditional move.
12629 (sse5_pcmov_<mode>): Ditto.
12630
12631 * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
12632 (SSEMODEF4): Ditto.
12633 (SSEMODEF2P): Ditto.
12634 (ssemodesuffixf4): New mode attribute for SSE5.
12635 (ssemodesuffixf2s): Ditto.
12636 (ssemodesuffixf2c): Ditto.
12637 (sserotatemax): Ditto.
12638 (ssescalarmode): Ditto.
12639 (sse_maskcmpv4sf3): Disable if SSE5.
12640 (sse_maskcmpv2df3): Ditto.
12641 (sse_vmmaskcmpv4sf3): Ditto.
12642 (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add instructions.
12643 (sse5_vmfmadd<mode>4): Ditto.
12644 (sse5_fmsub<mode>4): Ditto.
12645 (sse5_vmfmsub<mode>4): Ditto.
12646 (sse5_fnmadd<mode>4): Ditto.
12647 (sse5_vmfnmadd<mode>4): Ditto.
12648 (sse5_fnmsub<mode>4): Ditto.
12649 (sse5_vmfnmsub<mode>4): Ditto.
12650 (sse5i_fmadd<mode>4): Ditto.
12651 (sse5i_fmsub<mode>4): Ditto.
12652 (sse5i_fnmadd<mode>4): Ditto.
12653 (sse5i_fnmsub<mode>4): Ditto.
12654 (sse5i_vmfmadd<mode>4): Ditto.
12655 (sse5i_vmfmsub<mode>4): Ditto.
12656 (sse5i_vmfnmadd<mode>4): Ditto.
12657 (sse5i_vmfnmsub<mode>4): Ditto.
12658 (mulv16qi3): Add SSE5 support.
12659 (mulv4si3): Ditto.
12660 (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
12661 (sse2_mulv4si3): Disable if SSE5.
12662 (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
12663 (sse4_1_roundps): Ditto.
12664 (sse4_1_roundsd): Ditto.
12665 (sse4_1_roundss): Ditto.
12666 (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
12667 be generated.
12668 (sse_maskcmpsf3): Ditto.
12669 (sse_vmmaskcmpv4sf3): Ditto.
12670 (sse2_maskcmpv2df3): Ditto.
12671 (sse2_maskcmpdf3): Ditto.
12672 (sse2_vmmaskcmpv2df3): Ditto.
12673 (sse2_eq<mode>3): Ditto.
12674 (sse2_gt<mode>3): Ditto.
12675 (sse5_pcmov_<mode>): Add SSE5 support.
12676 (vec_unpacku_hi_v16qi): Ditto.
12677 (vec_unpacks_hi_v16qi): Ditto.
12678 (vec_unpacku_lo_v16qi): Ditto.
12679 (vec_unpacks_lo_v16qi): Ditto.
12680 (vec_unpacku_hi_v8hi): Ditto.
12681 (vec_unpacks_hi_v8hi): Ditto.
12682 (vec_unpacku_lo_v8hi): Ditto.
12683 (vec_unpacks_lo_v8hi): Ditto.
12684 (vec_unpacku_hi_v4si): Ditto.
12685 (vec_unpacks_hi_v4si): Ditto.
12686 (vec_unpacku_lo_v4si): Ditto.
12687 (vec_unpacks_lo_v4si): Ditto.
12688 (sse5_pmacsww): New SSE5 intrinsic insn.
12689 (sse5_pmacssww): Ditto.
12690 (sse5_pmacsdd): Ditto.
12691 (sse5_pmacssdd): Ditto.
12692 (sse5_pmacssdql): Ditto.
12693 (sse5_pmacssdqh): Ditto.
12694 (sse5_pmacsdqh): Ditto.
12695 (sse5_pmacsswd): Ditto.
12696 (sse5_pmacswd): Ditto.
12697 (sse5_pmadcsswd): Ditto.
12698 (sse5_pmadcswd): Ditto.
12699 (sse5_pcmov_<move>): Conditional move support on SSE5.
12700 (sse5_phaddbw): New SSE5 intrinsic insn.
12701 (sse5_phaddbd): Ditto.
12702 (sse5_phaddbq): Ditto.
12703 (sse5_phaddwd): Ditto.
12704 (sse5_phaddwq): Ditto.
12705 (sse5_phadddq): Ditto.
12706 (sse5_phaddubw): Ditto.
12707 (sse5_phaddubd): Ditto.
12708 (sse5_phaddubq): Ditto.
12709 (sse5_phadduwd): Ditto.
12710 (sse5_phadduwq): Ditto.
12711 (sse5_phaddudq): Ditto.
12712 (sse5_phsubbw): Ditto.
12713 (sse5_phsubwd): Ditto.
12714 (sse5_phsubdq): Ditto.
12715 (sse5_pperm): Ditto.
12716 (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
12717 (sse5_pperm_zero_v16qi_v8hi): Ditto.
12718 (sse5_pperm_sign_v8hi_v4si): Ditto.
12719 (sse5_pperm_zero_v8hi_v4si): Ditto.
12720 (sse5_pperm_sign_v4si_v2di): Ditto.
12721 (sse5_pperm_sign_v4si_v2di): Ditto.
12722 (sse5_pperm_pack_v2di_v4si): Ditto.
12723 (sse5_pperm_pack_v4si_v8hi): Ditto.
12724 (sse5_pperm_pack_v8hi_v16qi): Ditto.
12725 (sse5_perm<mode>): New SSE5 intrinsic insn.
12726 (rotl<mode>3): Ditto.
12727 (sse5_rotl<mode>3): Ditto.
12728 (sse5_ashl<mode>3): Ditto.
12729 (sse5_lshl<mode>3): Ditto.
12730 (sse5_frcz<mode>2): Ditto.
12731 (sse5s_frcz<mode>2): Ditto.
12732 (sse5_cvtph2ps): Ditto.
12733 (sse5_cvtps2ph): Ditto.
12734 (sse5_vmmaskcmp<mode>3): Ditto.
12735 (sse5_com_tf<mode>3): Ditto.
12736 (sse5_maskcmp<mode>3): Ditto.
12737 (sse5_maskcmp_uns<mode>3): Ditto.
12738 (sse5_maskcmp_uns2<mode>3): Ditto.
12739 (sse5_pcom_tf<mode>3): Ditto.
12740
12741 * config/i386/predicates.md (sse5_comparison_float_operator):
12742 New predicate to match the comparison operators supported by
12743 the SSE5 com instruction.
12744 (ix86_comparison_int_operator): New predicate to match just the
12745 signed int comparisons.
12746 (ix86_comparison_uns_operator): New predicate to match just the
12747 unsigned int comparisons.
12748
12749 * doc/invoke.texi (-msse5): Add documentation.
12750 (-mfused-madd): Ditto.
12751
12752 * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
12753
12754 * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
12755 mmintrin-common.h.
12756 (x86_64-*-*): Ditto.
12757
12758 * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
12759
12760 * config/i386/bmmintrin.h: New file, provide common x86 compiler
12761 intrinisics for SSE5.
12762
12763 * config/i386/smmintrin.h: Move instructions shared with SSE5 to
12764 mmintrin-common.h.
12765
12766 * config/i386/mmintrin-common.h: New file, to contain common
12767 instructions between SSE4.1 and SSE5.
12768
12769 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
12770 FOREACH_FUNCTION_ARGS to iterate over the argument list.
12771 (gen_regparm_prefix): Ditto.
12772
12773 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
12774 FOREACH_FUNCTION_ARGS to iterate over the argument list. Use
12775 prototype_p to determine if a function is prototyped.
12776
12777 2009-08-25 Ville Voutilainen <ville.voutilainen@gmail.com>
12778
12779 * c-common.c (c_common_reswords) add the alignof keyword,
12780 with same RID as __alignof and __alignof__
12781
12782 2009-08-25 Anatoly Sokolov <aesok@post.ru>
12783
12784 * hooks.h (hook_bool_const_int_const_int_true): Declare.
12785 * hooks.c (hook_bool_const_int_const_int_true): New function.
12786 * target.h (struct gcc_target): Add can_eliminate field.
12787 * target-def.h (TARGET_CAN_ELIMINATE): Define.
12788 (TARGET_INITIALIZER): Use TARGET_CAN_ELIMINATE.
12789 * ira.c (setup_eliminable_regset): Use can_eliminate target hook.
12790 * reload1.c (update_eliminables, init_elim_table): (Ditto.).
12791 (elim_table): Revise comment.
12792 * system.h (CAN_ELIMINATE): Poison.
12793 * defaults.h (CAN_ELIMINATE): Remove.
12794 * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
12795
12796 * config/alpha/vms.h (CAN_ELIMINATE): Remove macro.
12797 * config/alpha/alpha.c (TARGET_CAN_ELIMINATE) [TARGET_ABI_OPEN_VMS]:
12798 Define macro.
12799 (alpha_vms_can_eliminate): Declare as static, change return type to
12800 bool.
12801 * config/alpha/alpha-protos.h (alpha_vms_can_eliminate): Remove.
12802
12803 * config/arm/arm.h (CAN_ELIMINATE): Remove macro.
12804 * config/arm/arm.c (TARGET_CAN_ELIMINATE): Define macro.
12805 (arm_can_eliminate): New function.
12806
12807 * config/avr/avr.h (CAN_ELIMINATE): Remove macro.
12808 * config/avr/avr.c (TARGET_CAN_ELIMINATE): Define macro.
12809 (avr_can_eliminate): Declare as static.
12810 * config/avr/avr-protos.h (avr_can_eliminate): Remove.
12811
12812 * config/bfin/bfin.h (CAN_ELIMINATE): Remove macro.
12813 * config/bfin/bfin.c (TARGET_CAN_ELIMINATE): Define macro.
12814 (bfin_can_eliminate): New function.
12815
12816 * config/crx/crx.h (CAN_ELIMINATE): Remove macro.
12817 * config/crx/crx.c (TARGET_CAN_ELIMINATE): Define macro.
12818 (crx_can_eliminate): New function.
12819
12820 * config/fr30/fr30.h (CAN_ELIMINATE): Remove macro.
12821 * config/fr30/fr30.c (TARGET_CAN_ELIMINATE): Define macro.
12822 (fr30_can_eliminate): New function.
12823
12824 * config/frv/frv.h (CAN_ELIMINATE): Remove macro.
12825 * config/frv/frv.c (TARGET_CAN_ELIMINATE): Define macro.
12826 (frv_can_eliminate): New function.
12827
12828 * config/h8300/h8300.h (CAN_ELIMINATE): Remove macro.
12829 * config/h8300/h8300.c (TARGET_CAN_ELIMINATE): Define macro.
12830 (h8300_can_eliminate): New function.
12831
12832 * config/i386/i386.h (CAN_ELIMINATE): Remove macro.
12833 * config/i386/i386.c (TARGET_CAN_ELIMINATE): Define macro.
12834 (i386_can_eliminate): Declare as static, change return type to bool.
12835 * config/i386/i386-protos.h (i386_can_eliminate): Remove.
12836
12837 * config/ia64/ia64.h (CAN_ELIMINATE): Remove macro.
12838 * config/ia64/ia64.c (TARGET_CAN_ELIMINATE): Define macro.
12839 (ia64_can_eliminate): New function.
12840
12841 * config/iq2000/iq2000.h (CAN_ELIMINATE): Remove macro.
12842 * config/iq2000/iq2000.c (TARGET_CAN_ELIMINATE): Define macro.
12843 (iq2000_can_eliminate): New function.
12844
12845 * config/m32r/m32r.h (CAN_ELIMINATE): Remove macro.
12846 * config/m32r/m32r.c (TARGET_CAN_ELIMINATE): Define macro.
12847 (m32r_can_eliminate): New function.
12848
12849 * config/m68hc11/m68hc11.h (CAN_ELIMINATE): Remove macro.
12850 * config/m68hc11/m68hc11.c (TARGET_CAN_ELIMINATE): Define macro.
12851 (m68hc11_can_eliminate): New function.
12852
12853 * config/m68k/m68k.h (CAN_ELIMINATE): Remove macro.
12854 * config/m68k/m68k.c (TARGET_CAN_ELIMINATE): Define macro.
12855 (m68k_can_eliminate): New function.
12856
12857 * config/mep/mep.h (CAN_ELIMINATE): Remove macro.
12858 * config/mep/mep.c (TARGET_CAN_ELIMINATE): Define macro.
12859 (mep_can_eliminate): New function.
12860
12861 * config/mips/mips.h (CAN_ELIMINATE): Remove macro.
12862 * config/mips/mips.c (TARGET_CAN_ELIMINATE): Define macro.
12863 (mips_can_eliminate): New function.
12864
12865 * config/rs6000/rs6000.h (CAN_ELIMINATE): Remove macro.
12866 * config/rs6000/rs6000.c (TARGET_CAN_ELIMINATE): Define macro.
12867 (rs6000_can_eliminate): New function.
12868
12869 * config/s390/s390.h (CAN_ELIMINATE): Remove macro.
12870 * config/s390/s390.c (TARGET_CAN_ELIMINATE): Define macro.
12871 (s390_can_eliminate): Declare as static.
12872 * config/s390/s390-protos.h (sparc_can_eliminate): Remove.
12873
12874 * config/score/score.h (CAN_ELIMINATE): Remove macro.
12875 * config/score/score.c (TARGET_CAN_ELIMINATE): Define macro.
12876 (score_can_eliminate): New function.
12877
12878 * config/sparc/sparc.h (CAN_ELIMINATE): Remove macro.
12879 * config/sparc/sparc.c (TARGET_CAN_ELIMINATE): Define macro.
12880 (sparc_can_eliminate): Declare as static.
12881 * config/sparc/sparc-protos.h (sparc_can_eliminate): Remove.
12882
12883 * config/stormy16/stormy16.h (CAN_ELIMINATE): Remove macro.
12884 * config/stormy16/stormy16.c (TARGET_CAN_ELIMINATE): Define macro.
12885 (xstormy16_can_eliminate): New function.
12886
12887 * config/v850/v850.h (CAN_ELIMINATE): Remove macro.
12888 * config/v850/v850.c (TARGET_CAN_ELIMINATE): Define macro.
12889 (v850_can_eliminate): New function.
12890
12891 2009-08-25 Uros Bizjak <ubizjak@gmail.com>
12892
12893 * config/alpha/alpha.md (*cmpdf_ieee_ext[123]): Remove.
12894 (*cmpdf_internal): Enable for all ALPHA_FPTM levels.
12895 (*movdfcc_ext[1234]): Disable for IEEE mode.
12896
12897 2009-08-25 Eric Botcazou <ebotcazou@adacore.com>
12898
12899 * gimplify.c (prepare_gimple_addressable): New static function.
12900 (gimplify_modify_expr_to_memcpy): Invoke it on the RHS before marking
12901 it addressable.
12902 (gimplify_addr_expr): Invoke it similarly on the operand instead of
12903 manually fiddling with it.
12904
12905 2009-08-25 Michael Matz <matz@suse.de>
12906
12907 * expr.h (jumpifnot_1, jumpif_1, do_jump_1): Declare.
12908 * dojump.c (do_jump_by_parts_greater): Take two operands instead of
12909 full expression.
12910 (do_jump_by_parts_equality, do_compare_and_jump): Ditto.
12911 (jumpifnot_1, jumpif_1): New wrappers for do_jump_1.
12912 (do_jump): Split out code for simple binary comparisons into ...
12913 (do_jump_1): ... this, taking the individual operands and code.
12914 Change callers to helper function above accordingly.
12915 * expr.c (expand_expr_real_1): Use jumpifnot_1 for simple binary
12916 comparisons.
12917
12918 2009-08-25 Michael Matz <matz@suse.de>
12919
12920 * expr.h (struct separate_ops, sepops): New type for passing
12921 around an exploded simple expression.
12922 * optabs.c (expand_widen_pattern_expr, expand_vec_shift_expr):
12923 Use this structure instead of expression tree.
12924 (get_vcond_icode, expand_vec_cond_expr_p): Don't take whole
12925 expression, only its type.
12926 (expand_vec_cond_expr): Take type and individual operands instead
12927 of full expression.
12928 * optabs.h (expand_widen_pattern_expr, expand_vec_cond_expr,
12929 expand_vec_shift_expr): Change prototype accordingly.
12930 * tree-vect-stmts.c (vectorizable_condition): Change call of
12931 expand_vec_cond_expr_p to pass only type.
12932 * expr.c (do_store_flags): Change prototype and implementation
12933 to take an exploded expression.
12934 (expand_expr_real_1): New local ops initialized with details
12935 of the full expression. Use it instead of full
12936 expression in calls to do_store_flags, expand_vec_cond_expr,
12937 expand_widen_pattern_expr and expand_vec_shift_expr.
12938
12939 2009-08-25 Michael Matz <matz@suse.de>
12940
12941 * expr.c (expand_expr_real_1): New local treeop0, treeop1,
12942 treeop2 initialized with first three operands of the full expression.
12943 Substitute all TREE_OPERAND (exp, [012]) calls with them.
12944
12945 2009-08-25 Kai Tietz <kai.tietz@onevision.com>
12946
12947 * gcc/gthr-win32.h (__UNUSED_PARAM): Define, if not already present.
12948 (__gthread_objc_condition_allocate): Mark arguments as unused.
12949 (__gthread_objc_condition_deallocate): Likewise.
12950 (__gthread_objc_condition_wait): Likewise.
12951 (__gthread_objc_condition_broadcast): Likewise.
12952 (__gthread_objc_condition_signal): Likewise.
12953 (__gthread_objc_thread_detach): Cast via INT_PTR to pointer.
12954 (__gthread_objc_thread_id): Likewise.
12955
12956 2009-08-25 Janus Weil <janus@gcc.gnu.org>
12957
12958 PR middle-end/41149
12959 * tree-pretty-print.c (print_call_name): Print the correct call name
12960 for procedure pointer components.
12961
12962 2009-08-24 Steve Ellcey <sje@cup.hp.com>
12963
12964 * config/ia64/ia64.c (ia64_promote_function_mode): Call
12965 default_promote_function_mode when not VMS.
12966
12967 2009-08-24 Olivier Hainque <hainque@adacore.com>
12968
12969 * convert.c (convert_to_integer): Don't assume an input pointer is
12970 POINTER_SIZE wide. Fetch from the type instead.
12971
12972 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12973
12974 * configure.ac (AC_PREREQ): Bump to 2.64.
12975
12976 2009-08-24 Rafael Avila de Espindola <espindola@google.com>
12977
12978 * gcc.c (standard_exec_prefix_1,standard_exec_prefix_2): Remove.
12979 (process_command): Don't search standard_exec_prefix_1 and
12980 standard_exec_prefix_2.
12981
12982 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12983
12984 * config/arm/arm.c (output_return_instruction): Handle for
12985 unified syntax.
12986
12987 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12988
12989 * config/arm/arm.c (arm_select_cc_mode): Handle subreg.
12990
12991 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12992
12993 * config/arm/vfp.md (*arm_movdi_vfp): Mark as predicable.
12994 (*arm_movdf_vfp): Likewise.
12995
12996 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12997
12998 * config/arm/neon.md (vashl<mode>3): Rename from ashl<mode>3.
12999 (vashr<mode>3): Rename from ashr<mode>3.
13000 (vlshr<mode>3): Rename from lshr<mode>3.
13001
13002 2009-08-24 Kai Tietz <kai.tietz@onevision.com>
13003
13004 PR/40786
13005 * c-format.c (format_wanted_type): Add new member scalar_identity_flag.
13006 (check_format_info_main): Use scalar_identify_flag.
13007 (check_format_types): Check for scalar size identity if
13008 scalar_identify_flag is set.
13009 (printf_length_specs): Extend by new field.
13010 (asm_fprintf_length_specs): Likewise.
13011 (gcc_diag_length_specs): Likewise.
13012 (scanf_length_specs): Likewise.
13013 (strfmon_length_specs): Likewise.
13014 (gcc_gfc_length_specs): Likewise.
13015 * config/i386/msformat-c.c (ms_printf_length_specs): Likewise.
13016 (ms_printf_flag_specs): Likewise.
13017 * c-format.h (format_length_info): Add new member scalar_identity_flag.
13018
13019 2009-08-23 Uros Bizjak <ubizjak@gmail.com>
13020
13021 PR target/40718
13022 * config/i386/i386.c (*call_pop_1): Disable for sibling calls.
13023 (*call_value_pop_1): Ditto.
13024 (*sibcall_pop_1): New insn pattern.
13025 (*sibcall_value_pop_1): Ditto.
13026
13027 2009-08-23 Alan Modra <amodra@bigpond.net.au>
13028
13029 PR target/41081
13030 * config/rs6000/rs6000.md (rotlsi3_64, ashlsi3_64, lshrsi3_64,
13031 ashrsi3_64): New.
13032
13033 2009-08-23 Alan Modra <amodra@bigpond.net.au>
13034
13035 PR target/41081
13036 * fwprop.c (try_fwprop_subst): Allow multiple sets.
13037 (get_reg_use_in): New function.
13038 (forward_propagate_subreg): Propagate through subreg of zero_extend
13039 or sign_extend.
13040
13041 2009-08-22 Kaz Kojima <kkojima@gcc.gnu.org>
13042
13043 * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS): Define.
13044 * config/sh/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -mieee.
13045
13046 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13047
13048 * configure.ac: Remove --with-datarootdir, --with-docdir,
13049 --with-htmldir switches. No need to call AC_SUBST for
13050 datarootdir, docdir, htmldir any more.
13051 * configure: Regenerate.
13052 * doc/install.texi (Configuration): Document --datarootdir,
13053 --docdir, --htmldir, --pdfdir; update documentation for
13054 --infodir, --mandir.
13055 (Prerequisites): Bump Autoconf version to 2.64, Automake to 1.11,
13056 M4 to 1.4.6.
13057
13058 * aclocal.m4: Regenerate.
13059 * config.in: Regenerate.
13060 * configure: Regenerate.
13061
13062 2009-08-21 Douglas B Rupp <rupp@gnat.com>
13063 Olivier Hainque <hainque@adacore.com>
13064
13065 * config/ia64/ia64.c: Include libfuncs.h.
13066 (TARGET_PROMOTE_FUNCITON_MODE): Define target macro.
13067 (ia64_expand_call): Use reg 25 on VMS.
13068 (ia64_initialize_trampoline): Fix for VMS ABI.
13069 (ia64_function_arg_offset): Always returns 0 when TARGET_ABI_OPEN_VMS.
13070 (ia64_function_arg): Initialize reg 25 on VMS.
13071 Fix OpenVMS ABI issues for varargs.
13072 For OpenVMS, emit the Argument Information register set in the
13073 incoming/sibcall case as well.
13074 (ia64_arg_type): New function.
13075 (ia64_function_arg_advance): Keep track of cum->words.
13076 Fix OpenVMS ABI issues for varargs.
13077 (ia64_function_value): On VMS, promote mode of non-aggregate types.
13078 (ia64_override_options): Set flag_no_common on VMS.
13079 (ia64_init_builtins): Disable FWRITE builtin.
13080 (ia64_asm_output_external): Call DO_CRTL_NAMES.
13081 (ia64_vms_init_libfuncs): Add decc$ routines.
13082 (ia64_vms_valid_pointer_mode): New function.
13083 (ia64_struct_value_rtx): Allways NULL_RTX on VMS.
13084 (ia64_promote_function_mode): New function
13085 * config/ia64/ia64.h (TARGET_ABI_OPEN_VMS): Define as 0 for default.
13086 (LONG_DOUBLE_TYPE_SIZE): Force to 64 on VMS.
13087 (LIBCGC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
13088 (INIT_CUMULATIVE_ARGS): Add atypes for VMS.
13089 (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
13090 (ASM_OUTPUT_DEF): Use ISDIGIT instead of isdigit.
13091 Suppress trailing '#' if VALUE is numeric.
13092 * config/ia64/vms.h (PROMOTE_FUNCTION_MODE): Remove, code moved to
13093 ia64_promote_function_mode.
13094 (TARGET_VALID_POINTER_MODE): Define.
13095
13096 2009-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
13097
13098 PR target/40671
13099 * config/rs6000/rs6000.c (rs6000_override_options): Use
13100 TARGET_64BIT instead of TARGET_POWERPC64 to set the size of pointers.
13101
13102 PR target/41145
13103 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Fix
13104 reporting of vector + decimal/boolean/complex error.
13105
13106 2009-08-21 Jakub Jelinek <jakub@redhat.com>
13107
13108 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix type of
13109 __vector double TYPE_DECL.
13110
13111 2009-08-21 Richard Earnshaw <rearnsha@arm.com>
13112
13113 * arm.h (MACHMODE): New define. Include insn-modes.h if available.
13114 (CUMULATIVE_ARGS): Use MACHMODE for declaration of aapcs_vfp_mode.
13115 * arm.c (aapcs_vfp_is_call_or_return_candidate): Change base_mode
13116 to pointer to enum machine_mode. Update all callers as needed.
13117
13118 2009-08-21 Uros Bizjak <ubizjak@gmail.com>
13119
13120 * config/alpha/alpha.md (exception_receiver): Emit alternative
13121 GP load sequence if flag_reorder_blocks_and_partition is set.
13122 (*exception_receiver_2): Also enable when
13123 flag_reorder_blocks_and_partition is set.
13124
13125 2009-08-20 Matt Rice <ratmice@gmail.com>
13126 Diego Novillo <dnovillo@google.com>
13127
13128 * Makefile.in (PLUGIN_HEADERS): Include incpath.h and
13129 tree-ssa-sccvn.h.
13130
13131 2009-08-20 Richard Guenther <rguenther@suse.de>
13132
13133 * c-objc-common.h (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Do not define.
13134 * c-tree.h (c_dup_lang_specific_decl): Remove.
13135 (struct lang_decl, struct lang_type): Move definitions ...
13136 * c-lang.h: ... here. New file.
13137 * c-decl.c: Include c-lang.h.
13138 (c_dup_lang_specific_decl): Remove.
13139 * c-typeck.c: Include c-lang.h.
13140 * Makefile.in (c-decl.o): Add c-lang.h dependency.
13141 (c-typeck.o): Likewise.
13142 * c-config-lang.in (gtfiles): Add c-lang.h.
13143 * gengtype.c (get_output_file_with_visibility): Handle c-lang.h
13144 like c-tree.h.
13145
13146 2009-08-20 Uros Bizjak <ubizjak@gmail.com>
13147
13148 * config/alpha/alpha.c (alpha_end_function): Do not clear
13149 crtl->emit structure and free insn locators if cfun->is_thunk is true,
13150 this is now handled in generic code.
13151
13152 2009-08-20 Andreas Krebbel <krebbel1@de.ibm.com>
13153
13154 * config/s390/s390.c (Z10_PREDICT_DISTANCE): New macro.
13155 (s390_z10_fix_long_loop_prediction): New function.
13156 (s390_z10_optimize_cmp): INSN walk moved to callee - s390_reorg.
13157 (s390_reorg): Walk over the INSNs and invoke
13158 s390_z10_fix_long_loop_prediction and s390_z10_optimize_cmp.
13159
13160 2009-08-20 Andreas Krebbel <krebbel1@de.ibm.com>
13161
13162 * config/s390/s390.md ("*brx_stage1_<GPR:mode>", "*brxg_64bit",
13163 "*brx_64bit", "*brx_31bit"): New patterns.
13164 * config/s390/s390.c ('E'): New output modifier.
13165
13166 2009-08-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13167 Richard Earnshaw <richard.earnshaw@arm.com>
13168
13169 * config/arm/arm.c (arm_emit_movpair): Handle CONST_INT.
13170 * config/arm/arm.md (*arm_movtas_ze): New pattern for movt.
13171
13172 2009-08-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13173
13174 * pa.md (reload_inhi, reload_outhi, reload_inqi, reload_outqi): New
13175 patterns.
13176 * pa.c (emit_move_sequence): Check if address of operand1 is valid
13177 for mode mode of operand0 when doing secondary reload for SAR.
13178
13179 2009-08-19 Jakub Jelinek <jakub@redhat.com>
13180
13181 PR middle-end/41123
13182 * expr.c (expand_expr_real_1) <normal_inner_ref>: Handle all kinds
13183 of CONCAT, not just bitpos 0 bitsize size of the whole CONCAT.
13184
13185 2009-08-19 Jason Merrill <jason@redhat.com>
13186
13187 * doc/invoke.texi (C++ Dialect Options): Note change of minimum
13188 supported template depth in C++0x.
13189
13190 2009-08-19 Jakub Jelinek <jakub@redhat.com>
13191
13192 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call
13193 free_after_compilation.
13194 * config/score/score7.c (score7_output_mi_thunk): Likewise.
13195 * config/score/score3.c (score3_output_mi_thunk): Likewise.
13196 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
13197 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
13198 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
13199 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
13200 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
13201
13202 2009-08-19 Ian Lance Taylor <iant@google.com>
13203
13204 * doc/md.texi (Insn Canonicalizations): Correct canonicalization
13205 of (plus (mult (neg B) C) A).
13206
13207 2009-08-18 Michael Matz <matz@suse.de>
13208
13209 * omp-low.c (optimize_omp_library_calls): Use types_compatible_p
13210 instead of comparing TYPE_MAIN_VARIANT for equality.
13211 * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
13212 vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto.
13213 * tree-vect-loop.c (vect_is_simple_reduction): Ditto.
13214 * gimplify.c (goa_lhs_expr_p): Ditto and use
13215 STRIP_USELESS_TYPE_CONVERSION.
13216
13217 2009-08-18 Michael Matz <matz@suse.de>
13218
13219 * tree-ssa-structalias.c (create_variable_info_for): Also mark
13220 first field in a struct.
13221 (intra_create_variable_infos): Don't deal with flag_argument_noalias.
13222
13223 2009-08-18 Uros Bizjak <ubizjak@gmail.com>
13224
13225 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
13226 locators before emit_insn is called. Remove assert that
13227 cfun->is_thunk.
13228 (alpha_end_function): Clear crtl->emit structure and free insn
13229 locators if cfun->is_thunk is true.
13230
13231 2009-08-18 Jason Merrill <jason@redhat.com>
13232
13233 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
13234 type if available.
13235 * configure.ac: Test for it.
13236 * configure, config.in: Regenerate.
13237 * doc/install.texi: Document --enable-gnu-unique-object.
13238
13239 2009-08-18 Richard Guenther <rguenther@suse.de>
13240
13241 PR middle-end/41094
13242 * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
13243 pow(x,y*z) only if x is nonnegative.
13244
13245 2009-08-18 Jakub Jelinek <jakub@redhat.com>
13246
13247 * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
13248 on jumps.
13249
13250 PR target/40971
13251 * config/rs6000/rs6000.c (rs6000_legitimize_address): For
13252 [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.
13253
13254 2009-08-17 DJ Delorie <dj@redhat.com>
13255
13256 * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
13257 * config/m32c/prologue.md (epilogue_freit): New.
13258 (fset_b): New.
13259 * config/m32c/m32c.c (m32c_function_needs_enter): Add prototype.
13260 (bank_switch_p): Likewise.
13261 (fast_interrupt_p): Likewise.
13262 (interrupt_p): Likewise.
13263 (m32c_conditional_register_usage): Round memregs size up.
13264 (need_to_save): We only need to save $a0 when we use ENTER.
13265 (interrupt_p): Check for fast_interrupt too.
13266 (bank_switch_p): New.
13267 (fast_interrupt_p): New.
13268 (m32c_attribute_table): Add bank_switch and fast_interrupt.
13269 (m32c_emit_prolog): Support bank switching and fast interrupts.
13270 * doc/extend.texi (Function Attributes): Add bank_switch and
13271 fast_interrupt.
13272
13273 2009-08-17 Douglas B Rupp <rupp@gnat.com>
13274
13275 * config/alpha/alpha.c (vms_valid_pointer_mode): New function.
13276 * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.
13277
13278 2009-08-16 Douglas B Rupp <rupp@gnat.com>
13279
13280 * doc/invoke.texi (Target options): Add new option list for IA-64/VMS.
13281 (menu): Add IA-64/VMS Options.
13282 (IA-64/VMS Options): Likewise.
13283
13284 2009-08-16 Richard Sandiford <rdsandiford@googlemail.com>
13285
13286 PR target/38599
13287 * config/mips/mips.md (*lwxs): Use :P for pointer values.
13288
13289 2009-08-16 Richard Sandiford <rdsandiford@googlemail.com>
13290
13291 * config/mips/mips-protos.h (mips_push_asm_switch): New function.
13292 (mips_pop_asm_switch): Likewise.
13293 * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
13294 with...
13295 (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
13296 (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
13297 (mips_push_asm_switch, mips_pop_asm_switch): Likewise.
13298 (mips_print_operand_punctuation): Use them. Check mips_noreorder
13299 instead of set_noreorder.
13300 (mips_output_function_prologue): Use the new functions.
13301 (mips_output_function_epilogue): Likewise.
13302 (mips_need_noat_wrapper_p): New function, split out from...
13303 (mips_final_prescan_insn, mips_final_postscan_insn): ...here.
13304 Use mips_push_asm_switch and mips_pop_asm_switch.
13305 * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
13306 and mips_pop_asm_switch.
13307 (ASM_OUTPUT_REG_POP): Likewise.
13308 (DBR_OUTPUT_SEQEND): Remove boilerplate comment.
13309 Use mips_pop_asm_switch.
13310 (mips_asm_switch): New structure.
13311 (set_noreorder, set_nomacro): Replace with...
13312 (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
13313 * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
13314 instead of set_nomacro.
13315 (fix_truncsfsi2_macro): Likewise.
13316 (cprestore): Likewise.
13317 (hazard): Use mips_noreorder instead of set_noreorder.
13318 * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
13319
13320 2009-08-16 Uros Bizjak <ubizjak@gmail.com>
13321
13322 * config/alpha/alpha.c (alpha_end_function): Handle NULL_RTX returned
13323 from prev_active_insn.
13324
13325 2009-08-16 Anatoly Sokolov <aesok@post.ru>
13326
13327 * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
13328 * config/avr/avr.c (avr_override_options): Initialize
13329 avr_current_arch variable.
13330 (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
13331 __AVR_HAVE_16BIT_SP__ according to the device type.
13332 (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
13333 TARGET_TINY_STACK.
13334 (expand_epilogue): Use correct QI mode frame pointer for tiny stack.
13335 Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.
13336
13337 2009-08-16 Dodji Seketeli <dodji@redhat.com>
13338
13339 PR debug/37801
13340 * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on
13341 generating inlined subroutine die only. We shouldn't be
13342 called for anything else.
13343 (gen_block_die): Don't generate inline subroutine debug info for
13344 abstract blocks.
13345
13346 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
13347
13348 * graphite-poly.c (print_pbb): Print PBB index.
13349
13350 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
13351
13352 PR middle-end/40981
13353 * graphite-interchange.c (ppl_max_for_le): Moved...
13354 * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
13355 * graphite-ppl.c (ppl_max_for_le): ... here. Correct the use of
13356 ppl_Pointset_Powerset_C_Polyhedron_maximize.
13357 * graphite-ppl.h (ppl_max_for_le): Declared.
13358
13359 2009-08-14 Olatunji Ruwase <tjruwase@google.com>
13360
13361 * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
13362 supported on all platforms.
13363 * target.h (struct gcc_target): Remove handle_pragma_redefine_extname.
13364 * c-cppbuiltin.c: Remove use of targetm.handle_pragma_redefine_extname.
13365 * c-pragma.c: Likewise.
13366 * target-def.h (TARGET_INITIALIZER): Remove
13367 TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
13368 * config/sol2.h: Remove use of TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
13369
13370 2009-08-14 Douglas B Rupp <rupp@gnat.com>
13371
13372 * config/ia64/fde-vms.c: New file.
13373 * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg.
13374 * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h
13375 (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default.
13376 (uw_frame_state_for): Only register a personality routine if it is
13377 known to be compatible with our expectations.
13378 (_Unwind_FindEnclosingFunction, uw_frame_state_for):
13379 Declare unw_table_entry stack variable and
13380 mod all calls to _Unwind_FindTableEntry to add arg.
13381 * config/ia64/unwind-ia64.h (UNW_ accessors): Move here.
13382 (_Unwind_FindTableEntry): Add arg to prototype.
13383
13384 2009-08-14 Eric Botcazou <ebotcazou@adacore.com>
13385
13386 * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new
13387 field 'signal_pfs_loc'.
13388 (uw_frame_state_for): Remove duplicate code dealing with leaf
13389 procedures without unwind info.
13390 If in the frame after unwinding through a signal handler, restore
13391 the AR.PFS register instead of the CFM if AR.PFS has not been saved.
13392 * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set
13393 'pfs_loc' to the AR.PFS location in the signal context; instead
13394 set 'signal_pfs_loc'.
13395 Manually generate the unwind info for the AR.PFS register.
13396 (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT,
13397 ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define.
13398 (ia64_handle_unwabi): Test 'fs->unwabi' against them.
13399 Do not set 'pfs_loc' to the AR.PFS location in the signal context;
13400 instead set 'signal_pfs_loc'.
13401 Remove code preventing the AR.PFS register from being restored
13402 from the signal context.
13403
13404 2009-08-14 Douglas B Rupp <rupp@gnat.com>
13405 Tristan Gingold <gingold@adacore.com>
13406
13407 * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
13408 * config/ia64/t-vms: New file.
13409 * config/ia64/vms64.h: New file.
13410 * config/ia64/vms.h: New file.
13411 * config/ia64/vms-crtinit.asm: New file.
13412 * config/ia64/vms_symvec_libgcc_s.opt: New file.
13413 * config/ia64/vms-unwind.h: New file.
13414
13415 2009-08-14 Uros Bizjak <ubizjak@gmail.com>
13416
13417 * config/alpha/alpha.c (alpha_emit_conditional_move): Handle
13418 TFmode compares.
13419
13420 2009-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13421
13422 PR middle-end/30789
13423 * builtins.c (do_mpc_arg2): Make extern, define for any MPC version.
13424 Move declaration...
13425 * real.h (do_mpc_arg2): ... here.
13426 * fold-const.c (const_binop): Use MPC for complex MULT_EXPR
13427 and RDIV_EXPR.
13428
13429 2009-08-14 Rafael Avila de Espindola <espindola@google.com>
13430
13431 * final.c (add_debug_prefix_map): Don't use GC memory for
13432 old_prefix and new_prefix.
13433
13434 2009-08-14 Richard Guenther <rguenther@suse.de>
13435
13436 * ipa-prop.c (compute_complex_pass_through): If we cannot
13437 compute a non-varying offset for IPA_JF_ANCESTOR punt.
13438
13439 2009-08-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13440
13441 * c-lex.c (c_lex_with_flags): Increase size of local variable
13442 to avoid memory clobber.
13443
13444 2009-08-14 Paolo Bonzini <bonzini@gnu.org>
13445
13446 PR target/40934
13447 * config/i386/i386.c (ix86_fp_comparison_strategy):
13448 Only enable/disable sahf at function granularity.
13449
13450 2009-08-14 Hans-Peter Nilsson <hp@axis.com>
13451
13452 PR rtl-optimization/41064
13453 * reload1.c (reload_as_needed): Don't call extract_insn
13454 for known invalid replacements after calling
13455 validate_replace_rtx_group and verify_changes.
13456
13457 2009-08-14 Uros Bizjak <ubizjak@gmail.com>
13458
13459 PR target/41019
13460 * config/i386/sse.md (SSEMODE124C8): New mode iterator.
13461 (vcond<SSEMODEF2P:mode>): Assert that operation is supported by
13462 ix86_expand_fp_vcond.
13463 (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
13464 Assert that operation is supported by ix86_expand_int_vcond.
13465 (vcondu<SSEMODE124C8:mode>): Ditto.
13466
13467 2009-08-13 DJ Delorie <dj@redhat.com>
13468
13469 * config/i386/djgpp-stdint.h: New.
13470 * config.gcc (djgpp): Use it.
13471
13472 2009-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
13473
13474 * config/sh/sh.c (sh_override_options): When flag_exceptions or
13475 flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off.
13476
13477 2009-08-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
13478
13479 * tree-ssa-loop-prefetch.c
13480 (prune_ref_by_group_reuse): Enhance probabilistic analysis
13481 for long-stride pruning.
13482 (compute_miss_rate): New function to compute the probability
13483 that two memory references access different cache lines.
13484
13485 2009-08-13 Dave Korn <dave.korn.cygwin@gmail.com>
13486
13487 * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.
13488
13489 2009-08-13 Richard Guenther <rguenther@suse.de>
13490
13491 PR middle-end/41047
13492 * tree-ssa-ccp.c (ccp_fold): When folding pointer additions
13493 use the constant pointer type.
13494 * gimplify.c (canonicalize_addr_expr): Canonicalize independent
13495 of CV qualifiers on the target pointer type.
13496 * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
13497 conversion check before restrict check.
13498
13499 2009-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
13500
13501 PR target/41029
13502 * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
13503
13504 2009-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
13505
13506 * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
13507
13508 2009-08-12 Richard Guenther <rguenther@suse.de>
13509
13510 PR tree-optimization/41011
13511 * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
13512 and reference constructing.
13513
13514 2009-08-12 Xinliang David Li <davidxl@google.com>
13515
13516 PR tree-optimization/41012
13517 * tree-flow.h : New external interface.
13518 * gimple-low.c (check_call_arg): Change to public function.
13519 Remove argument mismatch check in lowering.
13520 * tree-inline.h (tree_can_inline_p): Interface change.
13521 * tree-inline.c (tree_can_inline_p): Fold argument mismatch check
13522 into this function.
13523 * ipa-inline.c (cgraph_decide_inlining_of_small_functions):
13524 Call change to tree_can_inline_p function.
13525 (cgraph_decide_inlining_incrementally): Ditto.
13526
13527 2009-08-12 Richard Sandiford <rdsandiford@googlemail.com>
13528
13529 PR tree-optimization/41031
13530 * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
13531 on the partition variable rather than promote_mode on the source
13532 type. Assert that the partition variable's type has the same
13533 mode as the source value's.
13534
13535 2009-08-12 Paolo Bonzini <bonzini@gnu.org>
13536
13537 * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
13538 for for_return == 2.
13539 * function.c (assign_parm_setup_reg): Use for_return == 2, improve
13540 comments.
13541 * calls.c (expand_call): Fix typo.
13542 * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
13543 and PARM_DECL.
13544 * stmt.c (expand_value_return): Use promote_function_mode to copy out
13545 of pseudo.
13546 * targhooks.c (default_promote_function_mode): Handle for_return == 2.
13547 * config/cris/cris.c (cris_promote_function_mode): Likewise.
13548 * config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
13549 * config/pa/pa.c (pa_promote_function_mode): Likewise.
13550
13551 2009-08-12 Andrew Haley <aph@redhat.com>
13552
13553 * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
13554
13555 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
13556
13557 PR bootstrap/40103
13558 * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
13559
13560 2009-08-12 Richard Guenther <rguenther@suse.de>
13561
13562 * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
13563 * gimplify.c (gimplify_modify_expr): Do not use
13564 lang_hooks.types_compatible_p.
13565 * tree-ssa.c (useless_type_conversion_p): For aggregates
13566 just return false if the canonical types differ.
13567
13568 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
13569
13570 PR middle-end/40980
13571 * sese.c (convert_for_phi_arg): New.
13572 (add_guard_exit_phis): Use convert_for_phi_arg.
13573
13574 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
13575
13576 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
13577 unknown subscript upper bounds.
13578
13579 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
13580 Pranav Garg <pranav.garg2107@gmail.com>
13581
13582 * graphite-interchange.c (gather_access_strides): Removed.
13583 (ppl_max_for_le): New.
13584 (build_linearized_memory_access): New.
13585 (memory_stride_in_loop): New.
13586 (pbb_interchange_profitable_p): Reimplemented.
13587 * graphite-ppl.h (ppl_new_id_map): New.
13588 (ppl_interchange): New.
13589
13590 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
13591
13592 * graphite-interchange.c (compute_subscript): Removed.
13593 (compute_array_size_cstr): Removed.
13594 (compute_array_size_poly): Removed.
13595 (compute_array_size): Removed.
13596 (gather_access_strides_poly): Removed.
13597 (gather_access_strides): Empty.
13598
13599 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
13600
13601 * graphite-dependences.c (dependence_polyhedron_1): Replace
13602 pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
13603 (graphite_legal_transform_dr): Same.
13604 (graphite_carried_dependence_level_k): Same.
13605 * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
13606 Initialize PDR_NB_SUBSCRIPTS.
13607 (print_pdr_access_layout): Replace pdr_nb_subscripts with
13608 PDR_NB_SUBSCRIPTS.
13609 * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
13610 (PDR_NB_SUBSCRIPTS): New.
13611 (pdr_nb_subscripts): Removed.
13612 (pdr_dim): Simplified.
13613 * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
13614 with PDR_NB_SUBSCRIPTS.
13615
13616 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
13617
13618 * graphite-interchange.c (compute_array_size): Remove use of
13619 PDR_DATA_CONTAINER.
13620 * graphite-poly.c (new_poly_dr): Remove argument data_container.
13621 Do not initialize PDR_DATA_CONTAINER.
13622 (print_pdr): Do not print PDR_DATA_CONTAINER.
13623 * graphite-poly.h (struct poly_dr): Remove data_container field.
13624 (PDR_DATA_CONTAINER): Removed.
13625 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
13626 PDR_DATA_CONTAINER.
13627 (build_poly_dr): Same.
13628
13629 2009-08-12 Konrad Trifunovic <konrad.trifunovic@gmail.com>
13630 Sebastian Pop <sebastian.pop@amd.com>
13631
13632 * graphite-dependences.c (graphite_legal_transform_dr): Work on a
13633 copy of the dependence polyhedron. Free the temporary objects.
13634 (graphite_carried_dependence_level_k): Free unused objects before
13635 returning.
13636
13637 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
13638
13639 * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
13640 Early return without analyzing the data dependences if no
13641 transform has been done. Call restore_scattering if the transform
13642 is not legal.
13643 (graphite-interchange.c): Same.
13644 * graphite-poly.c (print_scattering_function): Test for
13645 PBB_TRANSFORMED.
13646 (graphite_read_transforms): Initialize PBB_TRANSFORMED.
13647 (apply_poly_transforms): Do not gcc_assert that
13648 the transform is legal.
13649 (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL.
13650 Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
13651 PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
13652 (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
13653 * graphite-poly.h (struct poly_scattering): New.
13654 (struct poly_bb): Add original, transformed, and saved fields.
13655 Remove transformed_scattering, original_scattering,
13656 nb_local_variables and nb_scattering_transform fields.
13657 (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
13658 (poly_scattering_new): New.
13659 (poly_scattering_free): New.
13660 (poly_scattering_copy): New.
13661 (store_scattering_pbb): New.
13662 (store_scattering): New.
13663 (restore_scattering_pbb): New.
13664 (restore_scattering): New.
13665 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
13666 Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
13667
13668 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
13669
13670 * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
13671 (print_scop): Same.
13672
13673 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
13674
13675 * Makefile.in (graphite.o): Depends on PREDICT_H.
13676 * graphite.c: Include predict.h.
13677 (graphite_finalize): Call tree_estimate_probability.
13678 * predict.c (predict_loops): Do not call scev_initialize and
13679 scev_finalize.
13680 (tree_estimate_probability_bb): New.
13681 (tree_estimate_probability): Do not initialize loops: move that
13682 code to the driver. Call tree_estimate_probability_bb.
13683 (tree_estimate_probability_driver): New.
13684 (pass_profile): Use tree_estimate_probability_driver.
13685 * predict.h (tree_estimate_probability): Declared.
13686
13687 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
13688
13689 * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
13690 * graphite-dependences.c (graphite_legal_transform): Add time to
13691 TV_GRAPHITE_DATA_DEPS.
13692 (dependency_between_pbbs_p): Same.
13693 * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
13694
13695 2009-08-12 Andrey Belevantsev <abel@ispras.ru>
13696
13697 PR rtl-optimization/41033
13698 * alias.c (nonoverlapping_component_refs_p): Punt when strict
13699 aliasing is disabled.
13700
13701 2009-08-11 Adam Nemet <anemet@caviumnetworks.com>
13702
13703 * config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
13704 si_mask_operand, and_load_operand, low_bitmask_operand,
13705 and_reg_operand, and_operand): New predicates.
13706 * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
13707 * config/mips/mips.c (and_operands_ok): New function.
13708 * config/mips/mips-protos.h (and_operands_ok): Declare it.
13709 * config/mips/mips.md (move_type): Add ext_ins and logical.
13710 (type): Handle them.
13711 (and<mode>3): Use and_reg_operand as the second operand's predicate.
13712 (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
13713 shift_shift. Remove commutative constraint modifier.
13714 (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
13715 shift_shift.
13716 (*clear_upper32_dext): Remove define_insn_and_split.
13717 (*clear_upper32): Turn this define_insn_and_split ...
13718 (splitter for ANDing register with 0xffff_ffff): .. into this.
13719
13720 2009-08-11 Adam Nemet <anemet@caviumnetworks.com>
13721
13722 * combine.c (try_widen_shift_mode): Factor out code to check if an
13723 integer constant is a low-order bitmask from here ...
13724 * rtlanal.c (low_bitmask_len): ... to here.
13725 * rtl.h (low_bitmask_len): Declare.
13726
13727 2009-08-11 Uros Bizjak <ubizjak@gmail.com>
13728
13729 PR target/8603
13730 * config/alpha/alpha.md (addsi3): Remove expander.
13731 (addsi3): Rename from *addsi3_internal insn pattern.
13732 (subsi3): Remove expander.
13733 (subsi3): Rename from *subsi3_internal insn pattern.
13734
13735 2009-08-11 Douglas B Rupp <rupp@gnat.com>
13736
13737 * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
13738 FWRITE_UNLOCKED.
13739
13740 2009-08-11 Vasiliy Fofanov <fofanov@adacore.com>
13741 Eric Botcazou <botcazou@adacore.com>
13742 Douglas B Rupp <rupp@gnat.com>
13743
13744 * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
13745 that records that fit in 64 bits are returned by immediate value,
13746 as required by OpenVMS Calling Standard.
13747 (function_value): Adjust for above modification.
13748 (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
13749 virtual_incoming_args_rtx as base object, not next_arg.
13750 * config/alpha/vms.h (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
13751
13752 2009-08-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13753
13754 * reload.c (find_reloads_subreg_address): Check the original
13755 req_equiv_mem address to detect the case where an address is
13756 not valid in the outer mode.
13757
13758 2009-08-11 Richard Guenther <rguenther@suse.de>
13759
13760 PR bootstrap/40788
13761 * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION.
13762
13763 2009-08-10 Douglas B Rupp <rupp@gnat.com>
13764
13765 * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
13766 (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
13767
13768 2009-08-10 Olivier Hainque <hainqueu@adacore.com>
13769 Douglas B Rupp <rupp@gnat.com>
13770
13771 * config/alpha/alpha.c (alpha_sa_size): Force procedure type to
13772 PT_STACK when frame_pointer_needed on OpenVMS.
13773 (alpha_pv_save_size, alpha_using_fp): Remove.
13774 (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE
13775 with proper processing for PT_NULL.
13776 (alpha_vms_initial_elimination_offset): New function. Support for
13777 INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL.
13778 (alpha_sa_size): Force procedure type to PT_STACK when
13779 frame_pointer_needed on OpenVMS.
13780 * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype.
13781 (alpha_using_fp): Likewise.
13782 (alpha_vms_can_eliminate): Add prototype.
13783 (alpha_vms_initial_elimination_offset): Likewise.
13784 * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
13785 Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset.
13786
13787 2009-08-10 Eric Botcazou <botcazou@adacore.com>
13788 Douglas B Rupp <rupp@gnat.com>
13789
13790 * config/alpha/alpha.c (common_object_handler): New function.
13791 (vms_attribute_table): Declare a single attribute "common_object".
13792 (vms_output_aligned_decl_common): New global function.
13793 (SECTION_VMS_OVERLAY): Delete.
13794 (SECTION_VMS_GLOBAL): Likewise.
13795 (SECTION_VMS_INITIALIZE): Likewise.
13796 (vms_asm_named_section): Remove support for above flags.
13797 (vms_section_type_flags): Delete.
13798 (TARGET_SECTION_TYPE_FLAGS): Likewise.
13799 * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New.
13800 * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
13801 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro.
13802
13803 2009-08-10 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
13804
13805 PR target/41015
13806 * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
13807 (sub_ddmmss): Likewise.
13808
13809 2009-08-10 Andreas Tobler <a.tobler@schweiz.org>
13810
13811 PR bootstrap/41018
13812 * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright
13813 year.
13814
13815 2009-08-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13816
13817 PR target/37053
13818 * reload1.c (reload_as_needed): Use cancel_changes to completely
13819 undo a failed replacement attempt.
13820
13821 2009-08-10 Richard Guenther <rguenther@suse.de>
13822
13823 PR middle-end/41006
13824 * tree-ssa.c (useless_type_conversion_p_1): Fold into ...
13825 (useless_type_conversion_p): ... here. Require pointer targets
13826 to be compatible.
13827
13828 2009-08-10 Dodji Seketeli <dodji@redhat.com>
13829
13830 PR c++/40866
13831 * tree-inline.c (copy_statement_list): The resulting copy shouldn't
13832 loose the original type of the statement list.
13833
13834 2009-08-09 Douglas B Rupp <rupp@gnat.com>
13835
13836 * config/alpha/alpha.c: Include libfuncs.h
13837 (avms_asm_output_extern): New function.
13838 (alpha_init_libfuncs): Init some decc libfuncs.
13839 * config/alpha/alpha-protos.h (avms_asm_output_external): Declare.
13840 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define.
13841 (DO_CRTL_NAMES): Define.
13842 (LIB_SPEC): Remove.
13843 * config/alpha/vms64.h (POINTERS_EXTEND_UNSIGNED): Remove undef.
13844 (LONG_TYPE_SIZE): Define.
13845 (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1
13846 (SUBTARGET_SWITCHES): Define malloc64 switch.
13847 (TARGET_DEFAULT): Default MASK_MALLOC64 set.
13848 (MASK_RETURN_ADDR): Define.
13849 doc/invoke.texi (mmalloc64): Document switch.
13850
13851 2009-08-09 Olivier Hainque <hainque@adacore.com>
13852 Douglas B Rupp <rupp@gnat.com>
13853
13854 * config/alpha/alpha.c (struct machine_function): New flag for VMS,
13855 uses_condition_handler.
13856 (alpha_expand_builtin_establish_vms_condition_handler): New expander.
13857 (alpha_expand_builtin_revert_vms_condition_handler): New expander.
13858 (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER
13859 and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values.
13860 (code_for_builtin): New insn codes for the new alpha_builtins.
13861 (alpha_init_builtins): Register the new functions as BUILT_IN_MD.
13862 (alpha_sa_size): Account for uses_condition_handler.
13863 (alpha_expand_prologue): Likewise.
13864 (alpha_start_function): Likewise.
13865 (alpha_expand_epilogue): Likewise.
13866 * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin
13867 establish/revert expanders.
13868 * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define.
13869 * config/alpha/alpha.md (builtin_establish_vms_condition_handler):
13870 New expander, resorting to the alpha.c associated function.
13871 (builtin_revert_vms_condition_handler): Likewise.
13872 * config/alpha/vms-gcc_shell_handler.c: New file. Implements
13873 __gcc_shell_handler, the static VMS condition handler used as
13874 an indirection wrapper to the current dynamically established
13875 handler.
13876 * config/alpha/vms-unwind.h: Complete rewrite.
13877 * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c
13878 * config/alpha/vms.h (MD_UNWIND_SUPPORT):
13879
13880 2009-08-09 Eric Botcazou <botcazou@adacore.com>
13881 Douglas B Rupp <rupp@gnat.com>
13882
13883 * config/alpha/alpha.c (alpha_links): Add 'target' field.
13884 (alpha_need_linkage): Handle aliases. Return function symbol.
13885 (alpha_use_linkage): Rename 'linkage' argument to 'func'.
13886 Use ultimate alias target for the linkage name.
13887 * config/alpha/alpha.md (movmemdi): Use the symbol returned
13888 by alpha_need_linkage for the function symbol.
13889 (setmemdi): Likewise.
13890
13891 2009-08-09 Douglas B Rupp <rupp@gnat.com>
13892
13893 * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS.
13894 * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define.
13895 (ASM_WEAKEN_LABEL): Define.
13896 (CRT_CALL_STATIC_FUNCTION): Define.
13897 (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o.
13898 (ENDFILE_SPEC): Define.
13899 (INIT_SECTION_ASM_OP): Define.
13900 * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove.
13901 * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o
13902 crtend.o crtendS.o.
13903 (MULTILIB_OSDIRNAMES): Define.
13904 (shlib_version): Define.
13905 (SHLIB_EXT): Define.
13906 (SHLIB_OBJS): Define.
13907 (SHLIB_NAME): Define.
13908 (SHLIB_MULTILIB): Define.
13909 (SHLIB_INSTALL): Define.
13910 (SHLIB_SYMVEC): Define.
13911 (SHLIB_SYMVECX2): Define.
13912 (SHLIB_LINK): Define.
13913
13914 2009-08-09 Douglas B Rupp <rupp@gnat.com>
13915
13916 * config/alpha/alpha.c (alpha_initialize_trampoline):
13917 Initialize VMS trampoline IAW ABI for bounded procedure calls.
13918 (alpha_start_function): Emit transfer address on nested functions
13919 for VMS trampoline call.
13920 * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm
13921 since no longer used.
13922 * config/alpha/vms-tramp.asm: Remove.
13923 * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined
13924 since now only data initialized at runtime.
13925
13926 2009-08-09 Douglas B Rupp <rupp@gnat.com>
13927
13928 * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define.
13929 (LINK_GCC_C_SEQUENCE_SPEC): Define.
13930 (MD_EXEC_PREFIX): Remove, no longer used.
13931 (MD_STARTFILE_PREFIX): Likewise.
13932 (INCLUDE_DEFAULTS): Likewise.
13933 * config/alpha/t-vms:
13934 (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile.
13935
13936 2009-08-09 Richard Guenther <rguenther@suse.de>
13937
13938 PR tree-optimization/41016
13939 * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug.
13940 (operand_precision): Remove.
13941 (integral_operand_p): Likewise.
13942 (recognize_single_bit_test): Adjust.
13943
13944 2009-08-09 Richard Sandiford <rdsandiford@googlemail.com>
13945
13946 * c-common.c (c_fully_fold_internal): Issue a warning if a binary
13947 operation overflows. Likewise non-cast unary arithmetic.
13948 If one arm of a conditional expression is always taken,
13949 inhibit evaluation warnings for the other arm. Likewise inhibit
13950 evaluation warnings for the second && or || operand if the first
13951 operand is enough to determine the result.
13952 * c-typeck.c (build_conditional_expr): Apply the same inhibition
13953 rules here.
13954 (build_binary_op): Prevent duplicate evaluation warnings.
13955
13956 2009-08-09 Richard Sandiford <rdsandiford@googlemail.com>
13957
13958 * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source
13959 and destination have different modes, Use promote_mode to
13960 determine the signedness of the conversion. Assert that the
13961 promoted source mode matches the destination mode. Don't pass
13962 the destination and destination mode to expand_expr if the source
13963 mode is different. Simplify conversion logic.
13964
13965 2009-08-09 Ira Rosen <irar@il.ibm.com>
13966
13967 PR tree-optimization/41008
13968 * tree-vect-loop.c (vect_is_simple_reduction): Get operands
13969 from condition only in case it's a comparison. Adjust checks.
13970
13971 2009-08-09 Bernd Schmidt <bernd.schmidt@analog.com>
13972
13973 * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function.
13974 * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it.
13975 * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer.
13976 (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE.
13977 (dump_cand): Handle them.
13978 (struct iv_cand): New members COST_STEP and AINC_USE.
13979 (stmt_after_increment): Likewise.
13980 (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos. All
13981 callers changed. Use gimple_uid comparison instead of scanning.
13982 (add_candidate_1): When looking for identical candidates, take
13983 AINC_USE into account. Set it for new candidates.
13984 (force_expr_to_var_cost): Cast target_spill_cost to int.
13985 (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC.
13986 All callers changed. Check for availability of autoinc addressing
13987 modes, both in general for a given mode, and in the specific use case.
13988 (get_computation_cost_at): New argument CAN_AUTOINC. All callers
13989 changed.
13990 (get_computation_cost): Likewise.
13991 (autoinc_possible_for_pair, set_autoinc_for_original_candidates,
13992 add_autoinc_candidates): New static functions.
13993 (add_candidate): Call add_autoinc_candidates for candidates based on
13994 a USE_ADDRESS use.
13995 (find_iv_candidates): Call set_autoinc_for_original_candidates.
13996 (determine_use_iv_cost_address): If we have an autoinc candidate at
13997 the matching use, verify autoinc is possible and subtract the cost
13998 of the candidate's step from the cost.
13999 (determine_iv_cost): Record the cost of the increment in the COST_STEP
14000 member of the candidate.
14001 (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and
14002 determine_use_iv_costs. Call renumber_gimple_stmt_uids_in_blocks.
14003
14004 2009-08-09 Douglas B Rupp <rupp@gnat.com>
14005
14006 * config.build (ia64-hp-*vms*): New target.
14007 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
14008 with ia64-hp-*vms*.
14009 * config.gcc (ia64-hp-*vms*): New target.
14010 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
14011 with ia64-hp-*vms*.
14012 * config.host (ia64-hp-*vms*): New target.
14013 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
14014 with ia64-hp-*vms*.
14015
14016 2009-08-08 Richard Guenther <rguenther@suse.de>
14017
14018 PR tree-optimization/40991
14019 * tree-ssa-pre.c (eliminate): Delay purging EH edges.
14020
14021 2009-08-08 Richard Sandiford <rdsandiford@googlemail.com>
14022
14023 * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
14024 mode check. Do truncations in an integer mode.
14025 (force_to_mode): Handle subregs for all mode types. Only do
14026 arithmetic simplifications on integer modes.
14027
14028 2009-08-07 Richard Guenther <rguenther@suse.de>
14029
14030 PR tree-optimization/40999
14031 * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
14032 (maybe_fold_reference): Lookup constant initializers.
14033 (fold_gimple_assign): Likewise.
14034
14035 2009-08-07 Richard Guenther <rguenther@suse.de>
14036
14037 * tree-ssa.c (useless_type_conversion_p_1): Only for types
14038 that require structural equality defer to the langhook.
14039
14040 2009-08-07 Martin Jambor <mjambor@suse.cz>
14041
14042 * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
14043 comments.
14044 (struct ipa_pass_through_data): New type.
14045 (struct ipa_ancestor_jf_data): New type.
14046 (union jump_func_value): Removed field formal_id, added fields
14047 pass_through and ancestor.
14048 (struct ipa_param_call_note): Changed type of formal_id to int from
14049 unsigned.
14050 * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
14051 operations jump functions and ancestor jump functions.
14052 (compute_complex_pass_through): New function.
14053 (compute_scalar_jump_functions): Call compute_complex_pass_through,
14054 reflect changes in the jump function strucutre.
14055 (update_jump_functions_after_inlining): Ignore complex pass-through
14056 and ancestor jump functions.
14057 * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
14058 polynomial pass-through with operation jump functions.
14059
14060 2009-08-07 Jakub Jelinek <jakub@redhat.com>
14061
14062 * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
14063 fde->dw_fde_begin as begin label instead of hot/cold label.
14064 Use LLSDAC label instead of LLSDA for second section lsda.
14065 (dwarf2out_do_cfi_startproc): Add SECOND argument. Use LLSDAC
14066 label instead of LLSDA if it is true.
14067 (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
14068 callers.
14069 * except.c (add_call_site, dw2_size_of_call_site_table): Add
14070 SECTION argument. Use it as index into crtl->eh.call_site_record
14071 array.
14072 (dw2_output_call_site_table): Likewise. Add CS_FORMAT argument,
14073 use it to determine how to print table entries instead of using
14074 #ifdef HAVE_AS_LEB128. For SECTION > 0 use hot resp. cold
14075 label instead of normal begin label as base.
14076 (sjlj_assign_call_site_values): Adjust add_call_site caller.
14077 (convert_to_eh_region_ranges): When doing hot/cold partitioning,
14078 ensure no EH range spans between sections and that landing pads
14079 are always in the corresponding section.
14080 (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
14081 for crtl->eh.call_site_record being an array rather than scalar.
14082 (output_one_function_exception_table): New function, copied
14083 from output_function_exception_table. Adjust
14084 dw2_size_of_call_site_table, dw2_output_call_site_table
14085 callers. For SECOND section use *C suffixed labels.
14086 (output_function_exception_table): Call
14087 output_one_function_exception_table and, when doing hot/cold
14088 partitioning, also another time for the second section.
14089 * opts.c: Include except.h.
14090 (decode_options): Allow -freorder-blocks-and-partition with
14091 exceptions, unless SJLJ or TARGET_UNWIND_INFO.
14092 * Makefile.in (opts.o): Depend on $(EXCEPT_H).
14093 * function.h (struct rtl_eh): Change call_site_record from
14094 scalar into array of 2 elements.
14095
14096 2009-08-07 Martin Jambor <mjambor@suse.cz>
14097
14098 * ipa-prop.c (count_formal_params_1): New function.
14099 (ipa_get_vector_of_formal_parms): New function.
14100 (get_vector_of_formal_parm_types): New function.
14101 (ipa_modify_formal_parameters): New function.
14102 (ipa_modify_call_arguments): New function.
14103 (index_in_adjustments_multiple_times_p): New function.
14104 (ipa_combine_adjustments): New function.
14105 (ipa_dump_param_adjustments): New function.
14106 * ipa-prop.h (struct ipa_parm_adjustment): New type.
14107 (ipa_get_vector_of_formal_parms): Declare.
14108 (ipa_modify_formal_parameters): Declare.
14109 (ipa_modify_call_arguments): Declare.
14110 (ipa_combine_adjustments): Declare.
14111 (ipa_dump_param_adjustments): Declare.
14112 (build_ref_for_offset): Declare.
14113 * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
14114 * tree-sra.c: Include ipa-prop.c.
14115 (build_ref_for_offset): Make public.
14116
14117 2009-08-06 Neil Vachharajani <nvachhar@gmail.com>
14118
14119 * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
14120
14121 2009-08-06 Thomas Schwinge <tschwinge@gnu.org>
14122
14123 * gcc/doc/extend.texi (__builtin_extract_return_address)
14124 (__builtin_frob_return_address): Document.
14125
14126 2009-08-06 Paul Brook <paul@codesourcery.com>
14127
14128 * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
14129 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
14130 implementation on ARMv6-M.
14131
14132 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
14133
14134 * doc/extend.texi (pcs): Document new attribute for ARM.
14135
14136 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
14137
14138 * arm.c (pcs_attribute_args): Comment out unsupported attribute
14139 variants.
14140
14141 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
14142
14143 * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
14144 warning ().
14145
14146 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
14147
14148 * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
14149
14150 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
14151
14152 Merge ARM/hard_vfp_branch to trunk.
14153
14154 2009-08-04 Richard Earnshaw <rearnsha@arm.com>
14155
14156 * arm.c (libcall_eq): New function.
14157 (libcall_hash): New function.
14158 (add_libcall): New function.
14159 (arm_libcall_uses_aapcs_base): New function.
14160 (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
14161 libcalls using the base PCS.
14162 (arm_init_cumulative_args): Likewise.
14163
14164 2009-07-20 Joseph Myers <joseph@codesourcery.com>
14165
14166 * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
14167 Use base ABI for conversion libfuncs between HFmode and SFmode.
14168
14169 2009-05-12 Joseph Myers <joseph@codesourcery.com>
14170
14171 * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
14172 V4SImode as representatives of all 64-bit and 128-bit vector
14173 types. Allow vector types without vector modes.
14174 (aapcs_vfp_is_call_or_return_candidate): Handle vector types
14175 without vector modes like BLKmode.
14176 (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
14177 BLKmode. Avoid unsupported vector modes or TImode moves for
14178 non-TARGET_NEON.
14179 (aapcs_vfp_allocate_return_reg): Likewise.
14180 (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
14181 V8QImode if TARGET_NEON || TARGET_IWMMXT.
14182
14183 2009-05-12 Joseph Myers <joseph@codesourcery.com>
14184
14185 * config/arm/arm.c (arm_handle_pcs_attribute): New.
14186 (arm_get_pcs_model): Pass attribute arguments to
14187 arm_pcs_from_attribute.
14188 (arm_init_cumulative_args): Use base AAPCS for conversions from
14189 floating-point types to DImode.
14190 (arm_attribute_table): Add pcs attribute.
14191 (arm_handle_pcs_attribute): New.
14192 * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
14193 conversions from floating-point types to DImode, also declare them
14194 to use base AAPCS and declare functions they call to use base
14195 AAPCS and their RTABI names.
14196
14197 2009-05-12 Joseph Myers <joseph@codesourcery.com>
14198
14199 * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
14200 -mfloat-abi=hard not being supported for VFP.
14201
14202 2009-05-11 Kazu Hirata <kazu@codesourcery.com>
14203
14204 * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
14205 SYMBOL_REF to hard_libcall_value.
14206
14207 2009-03-05 Joseph Myers <joseph@codesourcery.com>
14208 Richard Earnshaw <rearnsha@arm.com>
14209
14210 * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
14211 has been put on the stack, all remaining co-processory arguments for
14212 that co-processor also go on the stack.
14213
14214 2009-03-05 Joseph Myers <joseph@codesourcery.com>
14215
14216 * config/arm/arm.c (arm_return_in_memory): Handle returning
14217 vectors of suitable size in registers also for AAPCS case.
14218
14219 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
14220
14221 * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
14222
14223 2008-12-09 Richard Earnshaw <rearnsha@arm.com>
14224
14225 ARM Hard-VFP calling convention
14226 * target-def.h (TARGET_LIBCALL_VALUE): New hook.
14227 * target.h (gcc_target): Add libcall_value to table of call hooks.
14228 * targhooks.h (default_libcall_value): Default implementation.
14229 * targhooks.c (default_libcall_value): Likewise.
14230 * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
14231 * optabs.c (expand_unop): Use it.
14232 * expr.h (hard_libcall_value): Pass the function RTX through.
14233 * calls.c (emit_library_call_value_1): Update call to
14234 hard_libcall_value.
14235 * explow.c (hard_libcall_value): Use new target hook.
14236 * config/arm/arm.c: Include cgraph.h
14237 (TARGET_FUNCTION_VALUE): Override default hook.
14238 (arm_pcs_default): New variable.
14239 (arm_override_options): Don't fault hard calling convention with VFP.
14240 Add support for AAPCS variants.
14241 (arm_function_value): Make static. Handle AAPCS variants.
14242 (arm_libcall_value): New function.
14243 (arm_apply_result_size): Handle VFP registers in results.
14244 (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
14245 conventions.
14246 (pcs_attribute_args): New variable.
14247 (arm_pcs_from_attribute): New function.
14248 (arm_get_pcs_model): New function.
14249 (aapcs_vfp_cum_init): New function.
14250 (aapcs_vfp_sub_candidate): New function.
14251 (aapcs_vfp_is_return_candidate): New function.
14252 (aapcs_vfp_is_call_candidate): New function.
14253 (aapcs_vfp_allocate): New function.
14254 (aapcs_vfp_allocate_return_reg): New function.
14255 (aapcs_vfp_advance): New function.
14256 (aapcs_cp_arg_layout): New variable.
14257 (aapcs_select_call_coproc): New function.
14258 (aapcs_select_return_coproc): New function.
14259 (aapcs_allocate_return_reg): New function.
14260 (aapcs_libcall_value): New function.
14261 (aapcs_layout_arg): New function.
14262 (arm_init_cumulative_args): Initialize AAPCS args data.
14263 (arm_function_arg): Handle AAPCS variants using new interface.
14264 (arm_arg_parital_bytes): Likewise.
14265 (arm_function_arg_advance): New function.
14266 (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
14267 calling conventions.
14268 (arm_setup_incoming_varargs): Handle new AAPCS args data.
14269 * arm.h (NUM_VFP_ARG_REGS): Define.
14270 (LIBCALL_VALUE): Update.
14271 (FUNCTION_VALUE): Delete.
14272 (FUNCTION_VALUE_REGNO_P): Add VFP regs.
14273 (arm_pcs): New enum.
14274 (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
14275 (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
14276 (FUNCTION_ARG_REGNO_P): Add VFP regs.
14277 * arm-protos.h (arm_function_arg_advance): Add.
14278 (aapcs_libcall_value): Add.
14279 (arm_function_value): Delete.
14280
14281 2009-08-06 Uros Bizjak <ubizjak@gmail.com>
14282 H.J. Lu <hongjiu.lu@intel.com>
14283
14284 PR target/40957
14285 * config/i386/i386.c (standard_sse_mode_p): Remove.
14286 (standard_sse_constant_p): Return 2 for integer mode
14287 vector_all_ones_operand when SSE2 is enabled.
14288 (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
14289 (ix86_expand_vector_move): Do not check for negative values from
14290 standard_sse_constant_p.
14291
14292 2009-08-06 Richard Guenther <rguenther@suse.de>
14293
14294 * tree-ssa.c (useless_type_conversion_p_1): Make function and
14295 array type comparisons frontend independent.
14296 * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
14297 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
14298 out array reference lower bound and element size operands.
14299 (ao_ref_init_from_vn_reference): Properly compute the offset
14300 for ARRAY_RANGE_REF.
14301 (vn_reference_fold_indirect): Fill out array reference lower
14302 bound and element size operands.
14303 * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
14304 a non gimple valued reference operand which can happen for
14305 array reference lower bound or element size.
14306 (create_component_ref_by_pieces_1): Properly generate the
14307 element size operand for array references.
14308
14309 2009-08-06 Richard Guenther <rguenther@suse.de>
14310
14311 PR tree-optimization/40964
14312 * tree.c (iterative_hash_host_wide_int): Export.
14313 * tree.h (iterative_hash_host_wide_int): Declare.
14314 * tree-ssa-structalias.c (heapvar_map): New struct.
14315 (heapvar_map_eq): New function.
14316 (heapvar_map_hash): Likewise.
14317 (heapvar_lookup): Adjust.
14318 (heapvar_insert): Likewise.
14319 (make_constraint_from_heapvar): Allow multiple heap variables
14320 per decl at different offsets.
14321 (init_alias_heapvars): Adjust.
14322
14323 2009-08-04 David Daney <ddaney@caviumnetworks.com>
14324
14325 * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
14326 * mips_output_sync_loop (mips_output_sync_loop): Only emit
14327 trailing sync if TARGET_SYNC_AFTER_SC.
14328
14329 2009-08-05 David Daney <ddaney@caviumnetworks.com>
14330
14331 * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
14332 compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
14333 sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
14334 sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
14335 sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
14336 sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
14337 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
14338 sync_new_nand<mode>, sync_lock_test_and_set<mode>,
14339 test_and_set_12): Rewrite calls to mips_output_sync_loop.
14340 * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
14341 the prototype declaration match the definition.
14342 * gcc/config/mips/mips.c (mips_output_sync_loop): Emit sync
14343 instructions explicitly. Add barrier_before and operands
14344 parameters.
14345 * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
14346 MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
14347 MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
14348 MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
14349 MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
14350 MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
14351
14352 2009-08-05 Andrew Pinski <pinskia@gmail.com>
14353
14354 * tree-ssa-alias.c: Fix intervals to use [) syntax.
14355
14356 2009-08-05 Uros Bizjak <ubizjak@gmail.com>
14357 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
14358
14359 PR target/40906
14360 * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
14361 source operand.
14362
14363 2009-08-05 Jakub Jelinek <jakub@redhat.com>
14364
14365 PR rtl-optimization/40924
14366 * dse.c (canon_address): Before calling cselib_expand_value_rtx
14367 make sure canon_rtx (mem_address) isn't simpler than
14368 canon_rtx (expanded_mem_address).
14369
14370 2009-08-05 Li Feng <nemokingdom@gmail.com>
14371
14372 * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
14373 for each poly_bb_p.
14374 (build_scop_drs): Build alias set for each SCoP.
14375
14376 2009-08-04 Sandra Loosemore <sandra@codesourcery.com>
14377
14378 * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
14379 * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
14380 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
14381 (MIPS_ARCH_FLOAT_SPEC): Likewise.
14382 (BASE_DRIVER_SELF_SPECS): Likewise.
14383
14384 2009-08-04 Andrew Pinski <pinskia@gmail.com>
14385
14386 * tree-ssa-alias.c: Fix some comment typos.
14387
14388 2009-08-04 Kaz Kojima <kkojima@gcc.gnu.org>
14389
14390 * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
14391 ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
14392
14393 2009-08-03 Janis Johnson <janis187@us.ibm.com>
14394
14395 PR c/39902
14396 * simplify-rtx.c (simplify_binary_operation_1): Disable
14397 simplifications for decimal float operations.
14398
14399 2009-08-03 Jakub Jelinek <jakub@redhat.com>
14400
14401 PR middle-end/40943
14402 * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
14403 operand of INDIRECT_REF.
14404
14405 2009-08-03 Uros Bizjak <ubizjak@gmail.com>
14406
14407 * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
14408 constants referencing TLS symbols.
14409
14410 2009-08-03 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
14411
14412 * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
14413 __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
14414
14415 2009-08-03 Richard Guenther <rguenther@suse.de>
14416
14417 * tree.c (make_vector_type): Build a main variant first,
14418 get the canonical one and then build the variant.
14419 * tree-ssa.c (useless_type_conversion_p_1): Handle
14420 fixed-point types.
14421 (useless_type_conversion_p): Conversions to pointers to
14422 incomplete record types are useless.
14423
14424 2009-08-03 Richard Guenther <rguenther@suse.de>
14425
14426 * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
14427 file will be created.
14428 * omp-low.c (pass_diagnose_omp_blocks): Likewise.
14429 * toplev.c (compile_file): Adjust comment.
14430
14431 2009-08-03 Kaz Kojima <kkojima@gcc.gnu.org>
14432
14433 * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
14434 * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
14435 (TARGET_PROMOTE_FUNCTION_MODE): Define.
14436 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
14437 (sh_promote_function_mode): Fix typo.
14438
14439 2009-08-03 Andreas Krebbel <krebbel1@de.ibm.com>
14440
14441 * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
14442
14443 2009-08-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14444
14445 * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
14446 declaration arguments.
14447
14448 2009-08-02 Uros Bizjak <ubizjak@gmail.com>
14449
14450 * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
14451 of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
14452 (ix86_split_ashl): Ditto.
14453 (ix86_expand_vector_init_one_nonzero): Ditto.
14454 (ix86_expand_vector_set): Ditto.
14455 (ix86_expand_reduc_v4sf): Ditto.
14456
14457 2009-08-02 Paolo Bonzini <bonzini@gnu.org>
14458
14459 * explow.c (promote_function_mode): Remove assert.
14460 * config/sh/sh.c (sh_promote_function_mode): Declare.
14461
14462 2009-08-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14463
14464 * config/pa/pa.c (pa_promote_function_mode): Declare.
14465 Change to static. Fix promote_mode call.
14466
14467 * gthr-dce.h (CONST_CAST2): Define if not defined.
14468 (__gthread_setspecific): Use CONST_CAST2 to fix warning.
14469
14470 * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
14471
14472 2009-08-01 Paolo Bonzini <bonzini@gnu.org>
14473
14474 * expr.c (store_constructor): Use promote_decl_mode. Remove
14475 now write-only variable unsignedp.
14476 (expand_expr_real_1): Use promote_decl_mode.
14477 * expr.h (promote_function_mode, promote_decl_mode): New.
14478 (promote_mode): Remove last argument.
14479 * function.c (assign_temp): Drop last argument of promote_mode.
14480 (assign_parm_find_data_types): Use promote_function_mode.
14481 (assign_parm_setup_reg): Likewise.
14482 (expand_function_end): Use promote_function_mode.
14483 * calls.c (initialize_argument_information): Use promote_function_mode.
14484 (precompute_arguments): Use promote_mode instead of checking if
14485 only PROMOTE_FUNCTION_MODE is defined.
14486 (expand_call): When making sibcall decisions, use promote_function_mode.
14487 Below, remove an if for targetm.calls.promote_function_return and
14488 and use promote_function_mode.
14489 (emit_library_call_value_1): Use promote_function_mode, fix bug
14490 where promote_mode was passed FOR_CALL == 0 for a return value in an
14491 assertion.
14492 * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
14493 * explow.c (promote_function_mode, promote_decl_mode): New.
14494 (promote_mode): Keep only the FOR_CALL == 0 case.
14495 * combine.c (setup_incoming_promotion): Remove test of
14496 promote_function_args. Use promote_function_mode.
14497 * stmt.c (expand_value_return): Use promote_decl_mode.
14498 (expand_decl): Use promote_decl_mode.
14499
14500 * expr.c (store_constructor): Use promote_decl_mode. Remove
14501 now write-only variable unsignedp.
14502 (expand_expr_real_1): Use promote_decl_mode.
14503 * expr.h (promote_function_mode, promote_decl_mode): New.
14504 (promote_mode): Remove last argument.
14505 * function.c (assign_temp): Drop last argument of promote_mode.
14506 (assign_parm_find_data_types): Use promote_function_mode.
14507 (assign_parm_setup_reg): Likewise.
14508 (expand_function_end): Use promote_function_mode.
14509 * calls.c (initialize_argument_information): Use promote_function_mode.
14510 (precompute_arguments): Use promote_mode instead of checking if
14511 only PROMOTE_FUNCTION_MODE is defined.
14512 (expand_call): When making sibcall decisions, use promote_function_mode.
14513 Below, remove an if for targetm.calls.promote_function_return and
14514 and use promote_function_mode.
14515 (emit_library_call_value_1): Use promote_function_mode, fix bug
14516 where promote_mode was passed FOR_CALL == 0 for a return value in an
14517 assertion.
14518 * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
14519 * explow.c (promote_function_mode, promote_decl_mode): New.
14520 (promote_mode): Keep only the FOR_CALL == 0 case.
14521 * combine.c (setup_incoming_promotion): Remove test of
14522 promote_function_args. Use promote_function_mode.
14523 * stmt.c (expand_value_return): Use promote_decl_mode.
14524 (expand_decl): Use promote_decl_mode.
14525
14526 * explow.c (promote_function_mode): Just call the target hook.
14527 * targhooks.c (default_promote_function_mode,
14528 default_promote_function_mode_always_promote): New.
14529 * targhooks.h (default_promote_function_mode,
14530 default_promote_function_mode_always_promote): Declare.
14531 * target.h (promote_function_args, promote_function_return): Remove.
14532 (promote_function_mode): New.
14533 * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
14534 TARGET_PROMOTE_FUNCTION_RETURN): Remove.
14535 (TARGET_PROMOTE_FUNCTION_MODE): New.
14536 (TARGET_CALLS): Adjust.
14537 * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
14538 TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
14539
14540 * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
14541 * config/s390/s390.c (s390_promote_function_mode): ... here,
14542 with pointer handling.
14543 (TARGET_PROMOTE_FUNCTION_MODE): Define.
14544 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
14545
14546 * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
14547 * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
14548 with pointer handling.
14549 (TARGET_PROMOTE_FUNCTION_MODE): Define.
14550 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
14551
14552 * config/sh/sh-protos.h (sh_promote_function_mode): New.
14553 * config/sh/sh.c (sh_promote_function_mode): New.
14554 (TARGET_PROMOTE_FUNCTION_MODE): Define.
14555 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
14556
14557 * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
14558 * config/cris/cris.c (cris_promote_function_mode): ... here.
14559 (TARGET_PROMOTE_FUNCTION_MODE): Define.
14560 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
14561
14562 * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
14563 * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
14564 (TARGET_PROMOTE_FUNCTION_MODE): Define.
14565 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
14566
14567 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
14568 * config/arm/arm.c (arm_promote_function_mode): ... here, without
14569 complex type handling.
14570 (TARGET_PROMOTE_FUNCTION_MODE): Define.
14571 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
14572
14573 * config/pa/pa.c (pa_promote_function_mode): New.
14574 (TARGET_PROMOTE_FUNCTION_MODE): Define.
14575 (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
14576
14577 * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
14578 TARGET_PROMOTE_FUNCTION_RETURN): Remove.
14579 (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
14580 * config/xtensa/xtensa.c: Likewise.
14581 * config/stormy16/stormy16.c: Likewise.
14582 * config/iq2000/iq2000.c: Likewise.
14583 * config/rs6000/rs6000.c: Likewise.
14584 * config/picochip/picochip.c: Likewise.
14585 * config/arc/arc.c: Likewise.
14586 * config/mcore/mcore.c: Likewise.
14587 * config/score/score.c: Likewise.
14588 * config/mips/mips.c: Likewise.
14589 * config/bfin/bfin.c: Likewise.
14590 * config/ia64/ia64.c: Likewise (disabled though).
14591
14592 * config/frv/frv.h: Remove pointless remark.
14593
14594 * doc/tm.texi (PROMOTE_FUNCTION_MODE,
14595 TARGET_PROMOTE_FUNCTION_ARGS,
14596 TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
14597 (TARGET_PROMOTE_FUNCTION_MODE): ... this.
14598
14599 2009-08-01 Sebastian Pop <sebastian.pop@amd.com>
14600
14601 * doc/invoke.texi (-fgraphite-force-parallel): Renamed
14602 -floop-parallelize-all.
14603 * toplev.c (process_options): Rename flag_graphite_force_parallel to
14604 flag_loop_parallelize_all.
14605 * tree-ssa-loop.c (gate_graphite_transforms): Same.
14606 * graphite.c (graphite_transform_loops): Same.
14607 * common.opt: Same.
14608 * graphite-poly.c (apply_poly_transforms): Same.
14609
14610 2009-07-31 Richard Earnshaw <rearnsha@arm.com>
14611
14612 PR tree-optimization/40914
14613 * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
14614 if set, then check the delta field of the PMF record.
14615 (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
14616 (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
14617 call is stored in the delta.
14618
14619 2009-07-31 Adam Nemet <anemet@caviumnetworks.com>
14620
14621 * config/mips/mips.md (*clear_upper32_dext): New pattern.
14622
14623 2009-07-31 Uros Bizjak <ubizjak@gmail.com>
14624
14625 * config/i386/bsd.h (ASM_BYTE): New define.
14626 * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
14627 * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
14628 .byte. Use fputs or putc instead of fprintf where appropriate.
14629 * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte. Use
14630 fputs or putc instead of fprintf where appropriate.
14631 * config/i386/i386elf.h: Ditto.
14632 * config/i386/sysv4.h: Ditto.
14633
14634 * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
14635 * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
14636 (*tls_global_dynamic_64): Ditto.
14637
14638 2009-07-31 Christian Bruel <christian.bruel@st.com>
14639
14640 * gcc/config.gcc (sh*-*-elf): test with_libgloss.
14641
14642 2009-07-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14643
14644 * config/arm/arm.c (arm_arm_address_cost): Fix typo.
14645 Remove dead code for MINUS.
14646
14647 2009-07-31 Anthony Green <green@moxielogic.com>
14648
14649 * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
14650 $r12 in prologue.
14651 (moxie_expand_epilogue): Ditto for epilogue.
14652 (moxie_setup_incoming_varargs): ABI change. Use 5 registers for
14653 incoming arguments.
14654 (moxie_function_arg): Ditto.
14655 (moxie_pass_by_reference): Ditto.
14656 (moxie_arg_partial_bytes): Ditto.
14657 * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
14658 (FUNCTION_ARG_ADVANCE) Ditto.
14659 (REG_PARM_STACK_SPACE) Ditto.
14660 (FUNCTION_ARG_REGNO_P) Dito.
14661
14662 * config.gcc: Add moxie linux config support.
14663 * gcc/config/moxie/uclinux.h: New file.
14664
14665 2009-07-31 DJ Delorie <dj@redhat.com>
14666
14667 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
14668 (UNSPECV_SP_SWITCH_E): New.
14669 (sp_switch_1): Change to an unspec.
14670 (sp_switch_2): Change to an unspec. Don't use post-inc when we
14671 replace $r15.
14672 * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
14673 reference the new stack's address
14674
14675 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
14676
14677 * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
14678 graphite-clast-to-gimple.o, graphite-dependences.o,
14679 graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
14680 graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
14681 (graphite-blocking.o,
14682 graphite-clast-to-gimple.o, graphite-dependences.o,
14683 graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
14684 graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
14685 * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
14686 * cfgloop.h (struct loop): Add can_be_parallel field.
14687 * common.opt (fgraphite-identity): Moved up.
14688 (fgraphite-force-parallel): New flag.
14689 * graphite.c: Rewrite.
14690 * graphite.h: Rewrite.
14691 * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
14692 after Graphite.
14693 * toplev.c (graphite_out_file): New file descriptor.
14694 (graphite_in_file): New.
14695 (process_options): flag_graphite_force_parallel cannot be used without
14696 Graphite.
14697 * tree-ssa-loop.c: Include toplev.h.
14698 (gate_graphite_transforms): Enable flag_graphite for
14699 flag_graphite_force_parallel.
14700
14701 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
14702
14703 * ChangeLog.graphite: New.
14704 * graphite-blocking.c: New.
14705 * graphite-clast-to-gimple.c: New.
14706 * graphite-clast-to-gimple.h: New.
14707 * graphite-dependences.c: New.
14708 * graphite-dependences.h: New.
14709 * graphite-interchange.c: New.
14710 * graphite-poly.c: New.
14711 * graphite-poly.h: New.
14712 * graphite-ppl.c: New.
14713 * graphite-ppl.h: New.
14714 * graphite-scop-detection.c: New.
14715 * graphite-scop-detection.h: New.
14716 * graphite-sese-to-poly.c: New.
14717 * graphite-sese-to-poly.h: New.
14718 * sese.c: New.
14719 * sese.h: New.
14720
14721 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
14722
14723 * tree-chrec.c (evolution_function_right_is_integer_cst): New.
14724 * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
14725
14726 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
14727
14728 * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
14729 (scev_is_linear_expression): Return false if the evolution is not
14730 affine multivariate.
14731
14732 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
14733
14734 * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
14735 * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
14736
14737 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
14738
14739 * tree-data-ref.c (debug_data_references): New.
14740 (debug_data_reference): New.
14741 * tree-data-ref.h (debug_data_references): Declared.
14742 (debug_data_reference): Declared.
14743
14744 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
14745
14746 * tree-data-ref.c (stmt_simple_memref_p: Removed.
14747 * tree-data-ref.h (scop_p): Removed.
14748 (struct data_reference): Remove field scop.
14749 (DR_SCOP): Removed.
14750 (stmt_simple_memref_p): Removed.
14751
14752 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
14753
14754 * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
14755 * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
14756 basic block empty.
14757
14758 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
14759
14760 * doc/invoke.texi (-fgraphite-force-parallel): Documented.
14761
14762 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
14763
14764 * doc/invoke.texi (-fgraphite-identity): Documented.
14765
14766 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
14767
14768 * tree-scalar-evolution.c: Fix comment.
14769 (instantiate_scev_1): Return unknow from scev instantiation if the
14770 result is not above instantiate_below.
14771
14772 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
14773
14774 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
14775 static anymore. Instantiate the symbols that may have been introduced
14776 by chrec_apply.
14777 * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
14778 Declared.
14779
14780 2009-07-30 DJ Delorie <dj@redhat.com>
14781
14782 * config/mep/mep.c (mep_asm_init_sections): Add section flags and
14783 .vliw directive to VLIW sections.
14784
14785 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14786
14787 * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
14788 New variables.
14789 ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
14790 (AUTOHEADER): New variable.
14791 ($(srcdir)/cstamp-h.in): Use it.
14792
14793 2009-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
14794 Pat Haugen <pthaugen@us.ibm.com>
14795 Revital Eres <ERES@il.ibm.com>
14796
14797 * config/rs6000/vector.md (VEC_F): Add VSX support.
14798 (VEC_A): Ditto.
14799 (VEC_N): Ditto.
14800 (mov<mode>): Ditto.
14801 (vector_load_<mode>): Ditto.
14802 (vector_store_<mode>): Ditto.
14803 (vector GPR move split): Ditto.
14804 (vec_reload_and_plus_<mptrsize>): Ditto.
14805 (vec_reload_and_reg_<mptrsize>): Ditto.
14806 (add<mode>3): Ditto.
14807 (sub<mode>3): Ditto.
14808 (mul<mode>3): Ditto.
14809 (neg<mode>2): Ditto.
14810 (abs<mode>2): Ditto.
14811 (smin<mode>3): Ditto.
14812 (smax<mode>3): Ditto.
14813 (vector_eq<mode>): Ditto.
14814 (vector_gt<mode>): Ditto.
14815 (vector_ge<mode>): Ditto.
14816 (vector_gtu<mode>): Ditto.
14817 (vector_select_<mode>_uns): Ditto.
14818 (vector_eq_<mode>_p): Ditto.
14819 (vector_gt_<mode>_p): Ditto.
14820 (vector_ge_<mode>_p): Ditto.
14821 (vector_gtu_<mode>_p): Ditto.
14822 (cr6_test_for_zero): Ditto.
14823 (cr6_test_for_zero_reverse): Ditto.
14824 (cr6_test_for_lt): Ditto.
14825 (cr6_test_for_lt_reverse): Ditto.
14826 (xor<mode>3): Ditto.
14827 (ior<mode>3): Ditto.
14828 (and<mode>3): Ditto.
14829 (one_cmpl<mode>2): Ditto.
14830 (nor<mode>2): Ditto.
14831 (andc<mode>2): Ditto.
14832 (float<VEC_int<mode>2): Ditto.
14833 (unsigned_float<VEC_int><mode>2): Ditto.
14834 (fix_trunc<mode><VEC_int>2): Ditto.
14835 (fixuns_trunc<mode><VEC_int>2): Ditto.
14836 (vec_init<mode>):
14837 (vec_set<mode>): Ditto.
14838 (vec_extract<mode>): Ditto.
14839 (vec_interleave_highv4sf): Ditto.
14840 (vec_interleave_lowv4sf): Ditto.
14841 (vec_realign_load_<mode>): Ditto.
14842 (vec_shl_<mode>): Ditto.
14843 (vec_shr_<mode>): Ditto.
14844 (div<mode>3): New patterns for VSX.
14845 (vec_interleave_highv2df): Ditto.
14846 (vec_interleave_lowv2df): Ditto.
14847 (vec_pack_trunc_v2df): Ditto.
14848 (vec_pack_sfix_trunc_v2df): Ditto.
14849 (vec_pack_ufix_trunc_v2df): Ditto.
14850 (vec_unpacks_hi_v4sf): Ditto.
14851 (vec_unpacks_lo_v4sf): Ditto.
14852 (vec_unpacks_float_hi_v4si): Ditto.
14853 (vec_unpacks_float_lo_v4si): Ditto.
14854 (vec_unpacku_float_hi_v4si): Ditto.
14855 (vec_unpacku_float_lo_v4si): Ditto.
14856 (movmisalign<mode>): Ditto.
14857 (vector_ceil<mode>2): New patterns for vectorizing math library.
14858 (vector_floor<mode>2): Ditto.
14859 (vector_btrunc<mode>2): Ditto.
14860 (vector_copysign<mode>3): Ditto.
14861
14862 * config/rs6000/predicates.md (easy_vector_constant_msb): New
14863 predicate for setting the high bit in each word, used for copysign.
14864
14865 * config/rs6000/ppc-asm.h (f19): Whitespace.
14866 (f32-f63): Define if VSX.
14867 (v0-v31): Define if Altivec.
14868 (vs0-vs63): Define if VSX.
14869
14870 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
14871
14872 * config/rs6000/power7.md: New file, provide tuning parameters for
14873 -mcpu=power7.
14874
14875 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
14876 (rs6000_cpu_cpp_builtins): Ditto.
14877 (altivec_overloaded_builtins): Ditto.
14878 (altivec_resolve_overloaded_builtin): Ditto.
14879
14880 * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
14881 debug switch to disable vectorizing simple math builtin
14882 functions.
14883
14884 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
14885 Vectorize simple math builtin functions.
14886 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
14887 hook to vectorize math builtins.
14888 (rs6000_override_options): Enable -mvsx on -mcpu=power7.
14889 (rs6000_builtin_conversion): Add VSX/power7 support.
14890 (rs6000_builtin_vec_perm): Ditto.
14891 (vsplits_constant): Add support for loading up a vector constant
14892 with just the high bit set in each part.
14893 (rs6000_expand_vector_init): Add VSX/power7 support.
14894 (rs6000_expand_vector_set): Ditto.
14895 (rs6000_expand_vector_extract): Ditto.
14896 (rs6000_emit_move): Ditto.
14897 (bdesc_3arg): Ditto.
14898 (bdesc_2arg): Ditto.
14899 (bdesc_1arg): Ditto.
14900 (rs6000_expand_ternop_builtin): Ditto.
14901 (altivec_expand_builtin): Ditto.
14902 (rs6000_expand_unop_builtin): Ditto.
14903 (rs6000_init_builtins): Ditto.
14904 (altivec_init_builtins): Ditto.
14905 (builtin_function_type): Ditto.
14906 (rs6000_common_init_builtins): Ditto.
14907 (rs6000_handle_altivec_attribute); Ditto.
14908 (rs6000_mangle_type): Ditto.
14909 (rs6000_vector_mode_supported_p): Ditto.
14910 (rs6000_mode_dependent_address): Altivec addresses with AND -16
14911 are mode dependent.
14912
14913 * config/rs6000/vsx.md: New file for VSX support.
14914
14915 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
14916 identifing values with just the most significant bit set.
14917 (enum rs6000_builtins): Add builtins for VSX. Add simple math
14918 vectorized builtins.
14919
14920 * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
14921 (UNSPEC_VRFIM): Delete.
14922 (splitter for loading up vector with most significant bit): New
14923 splitter for vectorizing copysign.
14924 (altivec_vrfiz): Rename from altivec_fturncv4sf2. Add support for
14925 vectorizing simple math functions.
14926 (altivec_vrfip): Add support for vectorizing simple math functions.
14927 (altivec_vrfim): Ditto.
14928 (altivec_copysign_v4sf3): New insn for Altivec copysign support.
14929
14930 * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
14931 (power7.md, vsx.md): Include for power7 support.
14932 (copysigndf3): Use VSX instructions if -mvsx.
14933 (negdf2_fpr): Ditto.
14934 (absdf2_fpr): Ditto.
14935 (nabsdf2_fpr): Ditto.
14936 (adddf3_fpr): Ditto.
14937 (subdf3_fpr): Ditto.
14938 (muldf3_fpr): Ditto.
14939 (divdf3_fpr): Ditto.
14940 (fix_truncdfdi2_fpr): Ditto.
14941 (cmpdf_internal1): Ditto.
14942 (fred, fred_fpr): Convert into expander/insn to add VSX support.
14943 (btruncdf2, btruncdf2_fpr): Ditto.
14944 (ceildf2, ceildf2_fpr): Ditto.
14945 (floordf2, floordf2_fpr): Ditto.
14946 (floatdidf2, floatdidf2_fpr): Ditto.
14947 (fmadddf4_fpr): Name insn. Use VSX instructions if -mvsx.
14948 (fmsubdf4_fpr): Ditto.
14949 (fnmadddf4_fpr_1): Ditto.
14950 (fnmadddf4_fpr_2): Ditto.
14951 (fnmsubdf4_fpr_1): Ditto.
14952 (fnmsubdf4_fpr_2): Ditto.
14953 (fixuns_truncdfdi2): Add expander for VSX support.
14954 (fix_truncdfdi2): Ditto.
14955 (fix_truncdfsi2): Ditto.
14956 (ftruncdf2): Ditto.
14957 (btruncsf2): Whitespace.
14958 (movdf_hardfloat32): Add support for VSX registers.
14959 (movdf_softfloat32): Ditto.
14960 (movdf_hardfloat64): Ditto.
14961 (movdf_hardfloat64_mfpgpr): Ditto.
14962 (movdf_softfloat64): Ditto.
14963 (movti splitters): Add check for vector registers supporting
14964 TImode in the future.
14965 (bpermd): Add power7 bpermd instruction.
14966
14967 * config/rs6000/altivec.h (vec_div): Define if VSX.
14968 (vec_mul): Ditto.
14969 (vec_msub): Ditto.
14970 (vec_nmadd): Ditto.
14971 (vec_nearbyint): Ditto.
14972 (vec_rint): Ditto.
14973 (vec_sqrt): Ditto.
14974 (all predicates): Use the generic builtin function, and not the V4SF
14975 specific function so that the predicates will work with VSX's V2DF.
14976 (vec_all_*): Ditto.
14977 (vec_any_*): Ditto.
14978
14979 * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
14980 Document new VSX functions and types.
14981
14982 * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
14983 switches.
14984
14985 * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
14986 "wa", and "j" constraints. Modify "v" to talk about Altivec
14987 instead of just vector.
14988
14989 2009-07-30 Andrew MacLeod <amacleod@redhat.com>
14990
14991 PR debug/26475
14992 * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
14993 location for phi arguments.
14994 (rewrite_update_phi_arguments): Find locations for reaching defs.
14995 * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
14996 Add location to add_phi_arg calls.
14997 * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
14998 * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
14999 split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
15000 * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
15001 create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
15002 * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
15003 * tree-phinodes.c (make_phi_node): Initialize location.
15004 (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
15005 (add_phi_arg): Add location parameter.
15006 (remove_phi_arg_num): Move location when moving phi argument.
15007 * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
15008 location.
15009 * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
15010 slpeel_update_phi_nodes_for_guard1,
15011 slpeel_update_phi_nodes_for_guard2,
15012 slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
15013 vect_loop_versioning): Set locations.
15014 * tree-parloops.c (create_phi_for_local_result,
15015 transform_to_exit_first_loop, create_parallel_loop): Add locations.
15016 * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
15017 * tree-vect-loop.c (get_initial_def_for_induction,
15018 vect_create_epilog_for_reduction, vect_finalize_reduction): Add
15019 locations.
15020 * tree-flow-inline.h (gimple_phi_arg_location): New. Return locus.
15021 (gimple_phi_arg_location_from_edge): New. Return locus from an edge.
15022 (gimple_phi_arg_set_location): New. Set locus.
15023 (gimple_phi_arg_has_location): New. Check for locus.
15024 (redirect_edge_var_map_location): New. Return locus from var_map.
15025 * tree-vect-data-refs.c (vect_setup_realignment): Set location.
15026 * tree-ssa-phiopt.c (conditional_replacement): Set locus when
15027 combining PHI arguments.
15028 (cond_store_replacement): Set location.
15029 * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
15030 * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
15031 scop_add_exit_phis_edge): Add locations.
15032 * tree-cfgcleanup.c (remove_forwarder_block,
15033 remove_forwarder_block_with_phi): Add locations.
15034 * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
15035 * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
15036 locations.
15037 * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
15038 * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
15039 flush_pending_stmts): Add source location.
15040 * lambda-code.c (perfect_nestify): Maintain location stack with argument
15041 stack to preserve locations.
15042 * tree-vect-stmts.c (vectorizable_load): Add location.
15043 * tree-inline.c (copy_phis_for_bb): Copy locus.
15044 (setup_one_parameter): Add call locus to inlined parameter stmts.
15045 (initialize_inlined_parameters): Pass in call location as parameter
15046 assignment locus.
15047 (tree_function_versioning): Pass location to setup_one_parameter.
15048 * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
15049 * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
15050 copy and edge lists.
15051 (insert_partition_copy_on_edge, insert_value_copy_on_edge,
15052 insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
15053 locus parameter and override the stmt default if provided.
15054 (new_elim_graph, clear_elim_graph, delete_elim_graph,
15055 elim_graph_add_edge, elim_graph_remove_succ_edge,
15056 FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
15057 elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
15058 eliminate_phi): Add locus info in elimination graph for each edge and
15059 value copy.
15060 (insert_backedge_copies): Copy locus if present.
15061 * tree-flow.h (struct _edge_var_map): Add locus field.
15062 * tree-switch_conversions.c (fix_phi_nodes): Add locations.
15063 * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
15064 add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
15065 locations.
15066 * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
15067
15068 2009-07-30 Martin Jambor <mjambor@suse.cz>
15069
15070 PR tree-optimization/40570
15071 * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
15072 use inlining loops.
15073
15074 2009-07-30 Razya Ladelsky <razya@il.ibm.com>
15075
15076 * ssa-loop-manip.c: Include langhooks.h.
15077 (rewrite_phi_with_iv): New.
15078 (rewrite_all_phi_nodes_with_iv): New.
15079 (canonicalize_loop_ivs): Move here from tree-parloops.c.
15080 Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
15081 * tree-parloops.c (loop_parallel_p): Move out all conditions
15082 except dependency check.
15083 (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
15084 (gen_parallel_loop): Call canonicalize_loop_ivs without
15085 reduction_list argument.
15086 (build_new_reduction): New.
15087 (gather_scalar_reductions): New.
15088 (try_get_loop_niter): New.
15089 (try_create_reduction_list): New.
15090 (parallleize_loops): Change the parallel conditions check.
15091 * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
15092 * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
15093
15094 2009-07-30 Dave Korn <dave.korn.cygwin@gmail.com>
15095
15096 * opt-functions.awk (opt_args): Allow argument to be enclosed in
15097 curly braces.
15098 * doc/options.texi (Option properties): Mention new quoting syntax.
15099
15100 2009-07-29 Douglas B Rupp <rupp@gnat.com>
15101
15102 * config/alpha/alpha.c (alpha_start_function):
15103 Handle VMS_DEBUG_MAIN_POINTER
15104 * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
15105 * doc/invoke.texi: Document -mdebug-main switch.
15106
15107 2009-07-29 Richard Henderson <rth@redhat.com>
15108
15109 * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
15110 (cgraph_create_edge_including_clones): Likewise.
15111 * tree-inline.c (copy_bb): Operate on the correct edges
15112 when updating the callgraph.
15113
15114 2009-07-29 Douglas B Rupp <rupp@gnat.com>
15115
15116 * config/alpha/vms-cc.c: Deleted.
15117 * config/alpha/vms-ld.c: Deleted.
15118 * config/alpha/t-vms64: Moved to config/vms
15119 * config/alpha/vms-crt0-64.c: Moved to config/vms
15120 * config/alpha/vms-crt0.c: Moved to config/vms
15121 * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
15122 * config/alpha/vms-psxcrt0.c: Moved to config/vms
15123 * config/alpha/xm-vms.h: Moved to config/vms
15124 * config/alpha/x-vms: Moved to config/vms
15125 * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
15126 config/vms/t-vms.
15127 * config/vms/t-vms: Moved here from config/alpha. Alpha specific
15128 parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
15129 (version): Set.
15130 * config/vms/t-vms64: Moved here from config/alpha
15131 * config/vms/vms-crt0-64.c: Moved here from config/alpha.
15132 (argc,argv,envp): Enforce 32bit malloc'ing.
15133 * config/vms/vms-psxcrt0-64.c: Likewise.
15134 * config/vms/vms-crt0.c: Moved here from config/alpha.
15135 * config/vms/vms-psxcrt0.c: Likewise.
15136 * config/vms/vms-crtl-64.h: New file.
15137 * config/vms/vms-crtl.h: New file.
15138 * config/vms/vms.opt: New file.
15139 * config/vms/xm-vms64.h: New file.
15140 * config/vms/xm-vms.h: Moved here from config/alpha.
15141 (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
15142 Set.
15143 * config/vms/x-vms: Moved here from config/alpha.
15144 (version, VMS_EXTRA_PARTS): Moved to t-vms.
15145 (vms-ld.o, vms-cc.o): Removed.
15146 (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
15147
15148 2009-07-29 Douglas B Rupp <rupp@gnat.com>
15149
15150 * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
15151 correct stack (obvious VMS fix).
15152
15153 2009-07-29 Douglas B Rupp <rupp@gnat.com>
15154
15155 * dwarf2out.c (output_file_names): Output VMS style file name, size,
15156 date, version info if VMS_DEBUGGING_INFO defined.
15157 * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
15158 size, date calculating code moved here.
15159
15160 2009-07-29 Paul Brook <paul@codesourcery.com>
15161
15162 * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
15163 do_push/do_pop.
15164
15165 2009-07-29 Uros Bizjak <ubizjak@gmail.com>
15166
15167 PR target/40577
15168 * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
15169 to DImode when generating insq_le insn.
15170
15171 2009-07-28 Douglas B Rupp <rupp@gnat.com>
15172
15173 * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
15174 New macro set for VMS_DEBUGGGING_INFO.
15175 (AT_string_form): Use it.
15176
15177 2009-07-28 DJ Delorie <dj@redhat.com>
15178
15179 * config/mep/mep.c (vtext_section): New.
15180 (vftext_section): New.
15181 (ftext_section): New.
15182 (mep_select_section): Add support for functions.
15183 (mep_unique_section): Likewise.
15184 (mep_asm_init_sections): Likewise.
15185 (mep_encode_section_info): Remove it from here.
15186
15187 * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
15188
15189 2009-07-28 Paolo Bonzini <bonzinI@gnu.org>
15190
15191 * tree.h (TREE_DEPRECATED): Document it is used for types too.
15192 (TYPE_VECTOR_OPAQUE): Use default_def_flag
15193
15194 2009-07-28 Douglas B Rupp <rupp@gnat.com>
15195
15196 * dwarf2out.c (output_file_names): Test new macro
15197 DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
15198 (add_comp_dir_attribute): Likewise.
15199
15200 2009-07-28 Kai Tietz <kai.tietz@onevision.com>
15201
15202 * config/i386/mingw-w64.h (LINK_SPEC): Add
15203 separating space between commands.
15204
15205 2009-07-28 Jan Hubicka <jh@suse.cz>
15206
15207 PR tree-optimization/40759
15208 * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
15209 for renaming.
15210
15211 2009-07-27 DJ Delorie <dj@redhat.com>
15212
15213 * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
15214 types are dword-aligned.
15215 (mep_expand_va_start): Likewise.
15216
15217 2009-07-27 Olivier Hainque <hainque@adacore.com>
15218 Douglas B Rupp <rupp@gnat.com>
15219
15220 * convert.c (convert_to_pointer): Don't assume the target
15221 pointer type is POINTER_SIZE long. Fetch its precision instead.
15222
15223 2009-07-27 Douglas B Rupp <rupp@gnat.com>
15224
15225 * system.h (fopen): Undefine if macro.
15226
15227 2009-07-27 Jakub Jelinek <jakub@redhat.com>
15228
15229 * dwarf2out.c (output_cfi_p): Removed.
15230 (output_cfis): New function.
15231 (output_fde): New function, split from output_call_frame_info.
15232 (output_call_frame_info): Use it.
15233 (dwarf2out_switch_text_section): Use output_cfis.
15234
15235 2009-07-24 Kai Tietz <kai.tietz@onevision.com>
15236
15237 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
15238 TARGET_BI_ARCH is specified without enabling SJLJ.
15239 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
15240 if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
15241
15242 2009-07-26 Mikael Pettersson <mikpe@it.uu.se>
15243
15244 * arm.md (negdi2): Use DImode if forcing a value into a register.
15245
15246 2009-07-26 Ira Rosen <irar@il.ibm.com>
15247
15248 PR tree-optimization/40801
15249 * tree-vect-stmts.c (vectorizable_call): Get previous copy
15250 of vector operand from the previous copy of vector statement.
15251 Pass the correct definition type value to
15252 vect_get_vec_def_for_stmt_copy().
15253
15254 2009-07-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15255
15256 * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
15257 const char ** conversion.
15258
15259 2009-07-25 David Daney <ddaney@caviumnetworks.com>
15260
15261 * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
15262 fancy_abort() if !ENABLE_ASSERT_CHECKING.
15263 (gcc_unreachable): Invoke __builtin_unreachable() if
15264 !ENABLE_ASSERT_CHECKING.
15265
15266 2009-07-25 David Daney <ddaney@caviumnetworks.com>
15267
15268 PR rtl-optimization/40445
15269 * emit-rtl.c (next_nonnote_insn_bb): New function.
15270 * rtl.h (next_nonnote_insn_bb): Declare new function.
15271 * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
15272 with no successors that is the successor of the ENTRY_BLOCK.
15273 Continue from the top after removing an empty fallthrough block.
15274 * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
15275 of next_nonnote_insn.
15276
15277 2009-07-25 David Daney <ddaney@caviumnetworks.com>
15278
15279 * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
15280
15281 2009-07-25 Martin Jambor <mjambor@suse.cz>
15282
15283 * c-common.c (c_common_attribute_table): New element for noclone.
15284 (handle_noclone_attribute): New function. Forward-declare.
15285 * tree-inline.c (tree_versionable_function_p): Check for noclone
15286 attribute.
15287 * doc/extend.texi (Labels as Values): Document need for noclone.
15288 (Function Attributes): Document noclone attribute.
15289
15290 2009-07-25 Jakub Jelinek <jakub@redhat.com>
15291
15292 PR rtl-optimization/34999
15293 * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
15294 and dw_fde_switched_cold_to_hot fields.
15295 (output_cfi_p): New function.
15296 (output_call_frame_info): If fde->dw_fde_switched_sections,
15297 output 2 FDEs instead of one with corrupted header.
15298 (dwarf2out_do_cfi_startproc): New function.
15299 (dwarf2out_begin_prologue): Use it. Initialize fde->dw_fde_switch_cfi
15300 and fde->dw_fde_switched_cold_to_hot.
15301 (dwarf2out_switch_text_section): Compute
15302 fde->dw_fde_switched_cold_to_hot. Switch to new text section here.
15303 If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
15304 dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
15305 Otherwise, compute fde->dw_fde_switch_cfi.
15306
15307 2009-07-24 Cary Coutant <ccoutant@google.com>
15308
15309 * tree-cfg.c (assign_discriminator): Add explicit parentheses.
15310
15311 2009-07-24 Cary Coutant <ccoutant@google.com>
15312
15313 * cfghooks.c (split_block): Copy discriminator to new block.
15314 * tree-cfg.c (assign_discriminator): Check location of last
15315 instruction in block as well as first.
15316
15317 2009-07-24 Uros Bizjak <ubizjak@gmail.com>
15318
15319 * config/i386/linux.c: Use fputs or putc instead of fprintf
15320 where appropriate.
15321 * config/i386/gas.h: Ditto.
15322 * config/i386/x86-64.h: Ditto.
15323 * config/i386/att.h: Ditto.
15324
15325 2009-07-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15326
15327 * expmed.c (emit_store_flag): Use a recursive call to optimize the
15328 xor case.
15329
15330 2009-07-24 Martin Jambor <mjambor@suse.cz>
15331
15332 * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
15333 (ipa_push_func_to_list_1): Declare.
15334 (ipa_push_func_to_list): New function.
15335
15336 * ipa-prop.c (ipa_push_func_to_list_1): New function.
15337 (ipa_init_func_list): Call ipa_push_func_to_list_1.
15338 (ipa_push_func_to_list): Removed.
15339 (ipa_pop_func_from_list): Clear node_enqueued flag.
15340
15341 2009-07-24 Andreas Krebbel <krebbel1@de.ibm.com>
15342
15343 * config/s390/s390.c (override_options): Default
15344 max-unrolled-insns to 100 for z10 tuning.
15345
15346 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
15347
15348 * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
15349 tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
15350 tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
15351 tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
15352 tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
15353 tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
15354 lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
15355
15356 2009-07-24 Kai Tietz <kai.tietz@onevision.com>
15357
15358 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
15359 use default set in mingw32.h header.
15360 * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
15361 64-bit /mingw/include path.
15362 (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
15363 path.
15364
15365 2009-07-23 Neil Vachharajani <nvachhar@google.com>
15366
15367 PR rtl-optimization/40209
15368 * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
15369
15370 2009-07-23 Uros Bizjak <ubizjak@gmail.com>
15371
15372 * config/i386/i386.c: Use ASM_LONG instead of .long. Concatenate
15373 ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
15374 with the rest of string where appropriate. Use fputs or putc
15375 instead of fprintf where appropriate.
15376
15377 2009-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
15378 Pat Haugen <pthaugen@us.ibm.com>
15379 Revital Eres <ERES@il.ibm.com>
15380
15381 * config/rs6000/vector.md: New file. Move most of the vector
15382 expander support here from altivec.md to allow for the VSX vector
15383 unit in the future. Add support for secondary_reload patterns.
15384 Rewrite the patterns for vector comparison, and vector comparison
15385 predicate instructions so that the RTL expresses the desired
15386 behavior, instead of using unspec.
15387
15388 * config/rs6000/constraints.md ("f" constraint): Use
15389 rs6000_constraints to hold the precalculated register class.
15390 ("d" constraint): Ditto.
15391 ("wd" constraint): New constraint for VSX.
15392 ("wf" constraint): Ditto.
15393 ("ws" constraint): Ditto.
15394 ("wa" constraint): Ditto.
15395 ("wZ" constraint): Ditto.
15396 ("j" constraint): Ditto.
15397
15398 * config/rs6000/predicates.md (vsx_register_operand): New
15399 predicate for VSX.
15400 (vfloat_operand): New predicate for vector.md.
15401 (vint_operand): Ditto.
15402 (vlogical_operand): Ditto.
15403 (easy_fp_constant): If VSX, 0.0 is an easy constant.
15404 (easy_vector_constant): Add VSX support.
15405 (altivec_indexed_or_indirect_operand): New predicate for
15406 recognizing Altivec style memory references with AND -16.
15407
15408 * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
15409 for vector secondary reload support.
15410 (rs6000_vector_reg_class): Delete, replacing it with
15411 rs6000_constraints.
15412 (rs6000_vsx_reg_class): Ditto.
15413 (rs6000_constraints): New array to hold the register classes of
15414 each of the register constraints that can vary at runtime.
15415 (builtin_mode_to_type): New static array for builtin function type
15416 creation.
15417 (builtin_hash_table): New static hash table for builtin function
15418 type creation.
15419 (TARGET_SECONDARY_RELOAD): Define target hook.
15420 (TARGET_IRA_COVER_CLASSES): Ditto.
15421 (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
15422 registers are 128 bits if VSX memory reference instructions are used.
15423 (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
15424 unit is being used.
15425 (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
15426 (rs6000_debug_reg_global): Move -mdebug=reg statements here.
15427 Print several of the scheduling related parameters.
15428 (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
15429 rs6000_constraints instead of rs6000_vector_reg_class. Move
15430 -mdebug=reg code to rs6000_debug_reg_global. Add support for
15431 -mvsx-align-128 debug switch. Drop testing float_p if VSX or
15432 Altivec. Add VSX support. Setup for secondary reload support on
15433 Altivec/VSX registers.
15434 (rs6000_override_options): Make power7 set the scheduling groups
15435 like the power5. Add support for new debug switches to override
15436 the scheduling defaults. Temporarily disable -mcpu=power7 from
15437 setting -mvsx. Add support for debug switches -malways-hint,
15438 -msched-groups, and -malign-branch-targets.
15439 (rs6000_buitlin_conversion): Add support for returning unsigned
15440 vector conversion functions to fix regressions due to stricter
15441 type checking.
15442 (rs6000_builtin_mul_widen_even): Ditto.
15443 (rs6000_builtin_mul_widen_odd): Ditto.
15444 (rs6000_builtin_vec_perm): Ditto.
15445 (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
15446 (rs6000_expand_vector_init): Initial VSX support for using xxlxor
15447 to zero a register.
15448 (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
15449 generated upstream.
15450 (bdesc_3arg): Add builtins for unsigned types. Add builtins for
15451 VSX types for bit operations. Changes to accomidate vector.md.
15452 (bdesc_2arg): Ditto.
15453 (bdesc_1arg): Ditto.
15454 (struct builtin_description_predicates): Rewrite predicate
15455 handling so that RTL describes the operation, instead of passing
15456 the instruction to be used as a string argument.
15457 (bdesc_altivec_preds): Ditto.
15458 (altivec_expand_predicate_builtin): Ditto.
15459 (altivec_expand_builtin): Ditto.
15460 (rs6000_expand_ternop_builtin): Use a switch instead of an if
15461 statement for vsldoi support.
15462 (altivec_expand_ld_builtin): Change to use new names from vector.md.
15463 (altivec_expand_st_builtin): Ditto.
15464 (paired_expand_builtin): Whitespace changes.
15465 (rs6000_init_builtins): Add V2DF/V2DI types. Initialize the
15466 builtin_mode_to_type table for secondary reload. Call
15467 builtin_function_type to build random builtin functions.
15468 (altivec_init_builtins): Change to use builtin_function_type to
15469 create builtin function types dynamically as we need them.
15470 (builtin_hash_function): New support for hashing the tree types
15471 for builtin function as we need it, rather than trying to build
15472 all of the trees that we need. Add initial preliminary VSX support.
15473 (builtin_function_type): Ditto.
15474 (builtin_function_eq): Ditto.
15475 (builtin_hash_struct): Ditto.
15476 (rs6000_init_builtins): Ditto.
15477 (rs6000_common_init_builtins): Ditto.
15478 (altivec_init_builtins): Ditto.
15479 (rs6000_common_init_builtins): Ditto.
15480 (enum reload_reg_type): New enum for simplifing reg classes.
15481 (rs6000_reload_register_type): Simplify register classes into GPR,
15482 Vector, and other registers. Altivec and VSX addresses in reload.
15483 (rs6000_secondary_reload_inner): Ditto.
15484 (rs6000_ira_cover_classes): New target hook, that returns the
15485 appropriate cover classes, based on -mvsx being used or not.
15486 (rs6000_secondary_reload_class): Add VSX support.
15487 (get_vec_cmp_insn): Delete, rewrite vector conditionals.
15488 (get_vsel_insn): Ditto.
15489 (rs6000_emit_vector_compare): Rewrite vector conditional support
15490 so that where we can, we use RTL operators, instead of blindly use
15491 UNSPEC.
15492 (rs6000_emit_vector_select): Ditto.
15493 (rs6000_emit_vector_cond_expr): Ditto.
15494 (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
15495 (create_TOC_reference): Add -mdebug=addr support.
15496 (emit_frame_save): VSX loads/stores need register indexed addressing.
15497
15498 * config/rs6000/rs6000.md: Include vector.md.
15499
15500 * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
15501
15502 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15503 support for V2DI, V2DF in logical, permute, select operations.
15504
15505 * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
15506 switch for vsx/power7.
15507 (-mvsx-scalar-memory): Ditto.
15508 (-mvsx-align-128): Ditto.
15509 (-mallow-movmisalign): Ditto.
15510 (-mallow-df-permute): Ditto.
15511 (-msched-groups): Ditto.
15512 (-malways-hint): Ditto.
15513 (-malign-branch-targets): Ditto.
15514
15515 * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
15516 hook instead.
15517 (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
15518 (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
15519 (rs6000_vector_reg_class): Delete.
15520 (rs6000_vsx_reg_class): Ditto.
15521 (enum rs6000_reg_class_enum): New enum for the constraints that
15522 vary based on target switches.
15523 (rs6000_constraints): New array to hold the register class for all
15524 of the register constraints that vary based on the switches used.
15525 (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
15526 (enum rs6000_builtins): Add unsigned varients for the builtin
15527 declarations returned by target hooks for expanding multiplies,
15528 select, and permute operations. Add VSX builtins.
15529 (enum rs6000_builtin_type_index): Add entries for VSX.
15530 (V2DI_type_node): Ditto.
15531 (V2DF_type_node): Ditto.
15532 (unsigned_V2DI_type_node): Ditto.
15533 (bool_long_type_node): Ditto.
15534 (intDI_type_internal_node): Ditto.
15535 (uintDI_type_internal_node): Ditto.
15536 (double_type_internal_node): Ditto.
15537
15538 * config/rs6000/altivec.md (whole file): Move all expanders to
15539 vector.md from altivec.md. Rename insn matching functions to be
15540 altivec_foo.
15541 (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
15542 (altivec_vcmp*): Ditto.
15543 (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
15544 (VM): New iterator for moves that includes the VSX types.
15545 (altivec_vperm_<mode>): Add VSX types. Add unsigned types.
15546 (altivec_vperm_<mode>_uns): New, for unsigned types.
15547 (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
15548 (altivec_eq<mode>): Ditto.
15549 (altivec_gt<mode>): Ditto.
15550 (altivec_gtu<mode>): Ditto.
15551 (altivec_eqv4sf): Ditto.
15552 (altivec_gev4sf): Ditto.
15553 (altivec_gtv4sf): Ditto.
15554 (altivec_vcmpbfp_p): Ditto.
15555
15556 2009-07-23 Richard Earnshaw <rearnsha@arm.com>
15557
15558 * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to
15559 unsigned HWI.
15560
15561 2009-07-23 Uros Bizjak <ubizjak@gmail.com>
15562
15563 PR target/40832
15564 * config/i386/i386.c (output_387_ffreep): Rewrite to use
15565 ASM_SHORT instead of .word.
15566 * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
15567 instead of .word in asm template.
15568
15569 2009-07-22 Vladimir Makarov <vmakarov@redhat.com>
15570
15571 PR target/37488
15572 * ira-lives.c (bb_has_abnormal_call_pred): New function.
15573 (process_bb_node_lives): Use it.
15574
15575 * ira.c (setup_cover_and_important_classes): Don't setup
15576 ira_important_class_nums. Add cover classes to the end of
15577 important classes.
15578 (cover_class_order, comp_reg_classes_func, reorder_important_classes):
15579 New.
15580 (find_reg_class_closure): Use reorder_important_classes.
15581
15582 * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
15583
15584 * config/i386/i386.c (i386_ira_cover_classes): New function.
15585 (TARGET_IRA_COVER_CLASSES): Redefine.
15586
15587 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
15588 importance of order of cover classes in the array.
15589
15590 2009-07-22 Diego Novillo <dnovillo@google.com>
15591
15592 * tree-pass.h (TDF_EH): Define.
15593 * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
15594 contains TDF_EH, print the EH region number holding GS.
15595 * tree-dump.c (dump_options): Add "eh".
15596 * doc/invoke.texi: Document it.
15597
15598 2009-07-22 Doug Kwan <dougkwan@google.com>
15599
15600 * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
15601
15602 2009-07-22 Michael Matz <matz@suse.de>
15603
15604 PR tree-optimization/35229
15605 PR tree-optimization/39300
15606
15607 * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
15608 (inhibit_phi_insertion): New function.
15609 (insert_into_preds_of_block): Call it for REFERENCEs.
15610 (init_pre): Initialize and finalize scalar evolutions.
15611 * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
15612
15613 2009-07-22 Uros Bizjak <ubizjak@gmail.com>
15614
15615 * config/i386/predicates.md (zero_extended_scalar_load_operand):
15616 Use CONST_VECTOR_NUNITS to determine number of elements.
15617
15618 2009-07-22 Andreas Krebbel <krebbel1@de.ibm.com>
15619
15620 * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
15621 (U, W): Constraints are now deprecated and will be removed if we
15622 run out of letters.
15623 * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
15624 the file.
15625 ("prefetch"): Add the stcmh instruction for prefetching.
15626 * config/s390/s390.c (s390_symref_operand_p): Function moved. No
15627 changes.
15628 (s390_short_displacement): Return always true if compiling for
15629 machines not providing the long displacement facility.
15630 (s390_mem_constraint): Support the new constraint letter Z.
15631 (s390_check_qrst_address): New function.
15632
15633 2009-07-21 DJ Delorie <dj@redhat.com>
15634
15635 * config/mep/mep.c (mep_legitimize_arg): Leave control registers
15636 alone too.
15637
15638 2009-07-21 Jason Merrill <jason@redhat.com>
15639
15640 * c-common.c (max_tinst_depth): Increase default to 1024.
15641
15642 2009-07-21 Uros Bizjak <ubizjak@gmail.com>
15643
15644 * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
15645 (vec_unpacku_float_lo_v4si): Ditto.
15646
15647 2009-07-21 Uros Bizjak <ubizjak@gmail.com>
15648
15649 PR target/40811
15650 * config/i386/sse.md (sse2_cvtudq2ps): New expander.
15651 (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
15652 (builtin_description): Add __builtin_ia32_cvtudq2ps.
15653 (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
15654
15655 2009-07-21 Jakub Jelinek <jakub@redhat.com>
15656
15657 PR tree-optimization/40813
15658 * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
15659 it.
15660
15661 2009-07-21 Kaz Kojima <kkojima@gcc.gnu.org>
15662
15663 * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
15664 with a NOP_EXPR if needed.
15665
15666 2009-07-21 Paul Brook <paul@codesourcery.com>
15667
15668 * tree-vectorizer.c (increase_alignment): Handle nested arrays.
15669 Terminate debug dump with newline.
15670
15671 2009-07-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15672
15673 * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
15674 Cast "1" to unsigned HOST_WIDE_INT.
15675 (compute_zdepdi_operands): Limit maximum length to 64 bits. Limit
15676 deposit length to the maximum length - lsb. Extend length if
15677 HOST_BITS_PER_WIDE_INT is 32.
15678
15679 2009-07-20 Olatunji Ruwase <tjruwase@google.com>
15680
15681 * cgraph.h (constant_pool_htab): New function.
15682 (constant_descriptor_tree): Move from varasm.c.
15683 * varasm.c (constant_pool_htab): New function.
15684 (constant_descriptor_tree): Move to cgraph.h.
15685
15686 2009-07-20 Olatunji Ruwase <tjruwase@google.com>
15687
15688 * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
15689
15690 2009-07-20 Shujing Zhao <pearly.zhao@oracle.com>
15691
15692 * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
15693 $(VARRAY_H).
15694
15695 2009-07-20 Xinliang David Li <davidxl@google.com>
15696
15697 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
15698
15699 2009-07-20 Adam Nemet <anemet@caviumnetworks.com>
15700
15701 * config/mips/mips.md (move_type): Add arith.
15702 (type): Handle arith.
15703 (zero_extendsidi2): Rename this into ...
15704 (*zero_extendsidi2): ... this. Don't match if ISA_HAS_EXT_INS.
15705 (zero_extendsidi2): New expander.
15706 (*zero_extendsidi2_dext): New pattern.
15707
15708 2009-07-20 Nick Clifton <nickc@redhat.com>
15709
15710 * config.gcc (mips64-*-*): Add definition of tm_defines in order
15711 to set MIPS_ABI_DEFAULT.
15712 * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
15713
15714 2009-07-20 Jakub Jelinek <jakub@redhat.com>
15715
15716 * tree-object-size.c (addr_object_size): Handle unions with
15717 array in it as last field of structs in __bos (, 1) as __bos (, 0).
15718
15719 PR tree-optimization/40792
15720 * tree.c (build_function_type_skip_args): Remove bogus assert.
15721
15722 2009-07-20 Jan Hubicka <jh@suse.cz>
15723 Martin Jambor <mjambor@suse.cz>
15724
15725 * cgraph.h (combined_args_to_skip): New field.
15726 * cgraph.c (cgraph_create_virtual_clone): Properly handle
15727 combined_args_to_skip and args_to_skip.
15728 * tree-inline.c (update_clone_info): New function.
15729 (tree_function_versioning): Call update_clone_info.
15730 * cgraphunit.c (cgraph_materialize_clone): Dump materialized
15731 functions.
15732 (cgraph_materialize_all_clones): More extensive dumping, working
15733 with combined_args_to_skip rather than args_to_skip.
15734
15735 2009-07-20 Ira Rosen <irar@il.ibm.com>
15736
15737 * tree-vectorizer.h (vectorizable_condition): Add parameters.
15738 * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
15739 (get_initial_def_for_reduction): Likewise.
15740 (vectorizable_reduction): Skip the check of first operand in case
15741 of COND_EXPR. Add check that it is outer loop vectorization if
15742 nested cycle was detected. Call vectorizable_condition() for
15743 COND_EXPR. If reduction epilogue cannot be created do not fail for
15744 nested cycles (if it is not double reduction). Assert that there
15745 is only one type in the loop in case of COND_EXPR. Call
15746 vectorizable_condition() to vectorize COND_EXPR.
15747 * tree-vect-stmts.c (vectorizable_condition): Update comment.
15748 Add parameters. Allow nested cycles if called from
15749 vectorizable_reduction(). Use reduction vector variable if provided.
15750 (vect_analyze_stmt): Call vectorizable_reduction() before
15751 vectorizable_condition().
15752 (vect_transform_stmt): Update call to vectorizable_condition().
15753
15754 2009-07-20 Christian Bruel <christian.bruel@st.com>
15755
15756 * config/sh/sh.opt (-mfmovd): Resurrect and document.
15757 * doc/invoke.texi (-mfmovd): Likewise.
15758 * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
15759
15760 2009-07-20 Jan Hubicka <jh@suse.cz>
15761
15762 * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
15763 when handling SSA name.
15764
15765 2009-07-19 Jan Hubicka <jh@suse.cz>
15766
15767 PR tree-optimization/40676
15768 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
15769 virtual PHIs in empty BBs.
15770
15771 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
15772
15773 * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
15774 re-expanded the compound use gen_lowpart instead to convert to the
15775 desired mode.
15776
15777 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
15778
15779 * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
15780 OUTER_CONST arguments.
15781 <LSHIFTRT>: Use them to allow widening if the bits shifted in from
15782 the new wider mode will be masked off.
15783 (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
15784
15785 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
15786
15787 * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
15788 high-order bits are zero.
15789
15790 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
15791
15792 * combine.c (simplify_shift_const_1): Split code to determine
15793 shift_mode into ...
15794 (try_widen_shift_mode): ... here. Allow widening for ASHIFTRT if the
15795 new bits shifted in are identical to the old sign bit.
15796
15797 2009-07-18 Richard Guenther <rguenther@suse.de>
15798
15799 PR c/40787
15800 * gimplify.c (gimplify_call_expr): Reject code using results from
15801 functions returning void.
15802
15803 2009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
15804
15805 * doc/md.texi: Document the new PowerPC "es" constraint.
15806 Document that "m" can include automodified addresses on this target,
15807 and explain how %U must be used. Extend the "Q" and "Z" documentation
15808 to suggest "es" as well as "m".
15809 * config/rs6000/constraints.md (es): New memory constraint.
15810 (Q, Z): Update strings to match new documentation.
15811
15812 2009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
15813
15814 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
15815 offset from virtual_stack_vars_rtx and arg_pointer_rtx.
15816 * config/rs6000/predicates.md (volatile_mem_operand): Use
15817 offsettable_nonstrict_memref_p.
15818 * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
15819 (*floatunssidf2_internal): Likewise.
15820 (*fix_truncdfsi2_internal): Likewise.
15821 (*fix_trunctfsi2_internal): Likewise.
15822
15823 2009-07-17 Anatoly Sokolov <aesok@post.ru>
15824
15825 * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
15826 atmega32u2 devices.
15827 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
15828
15829 2009-07-17 Richard Guenther <rguenther@suse.de>
15830
15831 PR c/40401
15832 * tree-pass.h (pass_diagnose_omp_blocks): Declare.
15833 (pass_warn_unused_result): Likewise.
15834 (TODO_set_props): Remove.
15835 * omp-low.c (diagnose_omp_structured_block_errors): Change to
15836 run as a pass.
15837 (pass_diagnose_omp_blocks): Define.
15838 * c-decl.c (pop_file_scope): Do not finalize the CU here.
15839 (c_gimple_diagnostics_recursively): Remove.
15840 (finish_function): Do not call it.
15841 (c_write_global_declarations): Continue after errors.
15842 Finalize the CU here.
15843 * c-gimplify.c (c_genericize): Do not gimplify here.
15844 * c-common.c (c_warn_unused_result): Move ...
15845 * tree-cfg.c (do_warn_unused_result): ... here.
15846 (run_warn_unused_result): New function.
15847 (gate_warn_unused_result): New function.
15848 (pass_warn_unused_result): New pass.
15849 * c-common.h (c_warn_unused_result): Remove.
15850 * flags.h (flag_warn_unused_result): Declare.
15851 * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
15852 * opts.c (flag_warn_unused_result): Initialize to false.
15853 * toplev.c (compile_file): Add comment.
15854 * omp-low.c (create_omp_child_function): Do not register
15855 the function with the frontend.
15856 (diagnose_omp_structured_block_errors): Prepare to be
15857 called as optimization pass.
15858 (gate_diagnose_omp_blocks): New function.
15859 (pass_diagnose_omp_blocks): New pass.
15860 * cgraph.h (cgraph_optimize): Remove.
15861 (cgraph_analyze_function): Likewise.
15862 * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
15863 * cgraphunit.c (cgraph_lower_function): Lower nested functions
15864 before their parents here.
15865 (cgraph_finalize_function): Not here.
15866 (cgraph_analyze_function): Gimplify functions here.
15867 (cgraph_finalize_compilation_unit): Continue after errors.
15868 Optimize the callgraph from here.
15869 (cgraph_optimize): Make static.
15870 * langhooks.c (write_global_declarations): Finalize the CU.
15871 * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
15872 (gimplify_function_tree): Assert we gimplify only once.
15873 Set PROP_gimple_any property.
15874 * tree-nested.c (gimplify_all_functions): New function.
15875 (lower_nested_functions): Gimplify all nested functions.
15876 * gimple.h (diagnose_omp_structured_block_errors): Remove.
15877 * passes.c (init_optimization_passes): Add pass_warn_unused_result
15878 and pass_diagnose_omp_blocks after gimplification. Do not
15879 set TODO_set_props on all_lowering_passes.
15880 (execute_one_pass): Do not handle TODO_set_props.
15881 * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
15882 (gimplify.o): Add tree-pass.h dependency.
15883 * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
15884 (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
15885 (unsave_r): Likewise.
15886 * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
15887 temporary variable.
15888
15889 2009-07-17 Sandra Loosemore <sandra@codesourcery.com>
15890
15891 * doc/service.texi (Service): Restore previously removed link,
15892 which isn't broken after all.
15893
15894 2009-07-17 Richard Guenther <rguenther@suse.de>
15895
15896 PR tree-optimization/40321
15897 * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
15898 PHI nodes to the maximal set.
15899 (make_values_for_phi): Add PHI arguments to the maximal set.
15900 (execute_pre): Dump PHI_GEN and the maximal set.
15901
15902 2009-07-17 Jakub Jelinek <jakub@redhat.com>
15903
15904 PR c++/40780
15905 * gimplify.c (gimplify_conversion): Don't change non-conversions into
15906 VIEW_CONVERT_EXPR.
15907
15908 2009-07-16 Sandra Loosemore <sandra@codesourcery.com>
15909
15910 * doc/extend.texi (Nested Functions): Replace broken link with
15911 textual reference.
15912 * doc/service.texi (Service): Remove broken link.
15913
15914 2009-07-16 H.J. Lu <hongjiu.lu@intel.com>
15915
15916 PR bootstrap/40781
15917 * builtins.c (expand_builtin_memcmp): Use loc instead of
15918 EXPR_LOCATION (exp).
15919 (expand_builtin_strncmp): Likewise.
15920
15921 2009-07-17 Aldy Hernandez <aldyh@redhat.com>
15922 Manuel López-Ibáñez <manu@gcc.gnu.org>
15923
15924 PR 40435
15925 * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
15926 builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
15927 tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
15928 c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
15929 calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
15930 tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
15931 tree-inline.c, c-common.c, c-common.h, gimple.c,
15932 tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
15933 convert.c: Add location argument to fold_{unary,binary,ternary},
15934 fold_build[123], build_call_expr, build_size_arg,
15935 build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
15936 fold_build1_initializer, fold_build2_initializer,
15937 fold_build3_initializer, fold_build_call_array,
15938 fold_build_call_array_initializer, fold_single_bit_test,
15939 omit_one_operand, omit_two_operands, invert_truthvalue,
15940 fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
15941 combine_comparisons, fold_builtin_*, fold_call_expr,
15942 build_range_check, maybe_fold_offset_to_address, round_up,
15943 round_down.
15944
15945 2009-07-16 Jason Merrill <jason@redhat.com>
15946
15947 PR libstdc++/37907
15948 * c-common.c (c_common_reswords): Add __is_standard_layout
15949 and __is_trivial.
15950 * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
15951 * doc/implement-cxx.texi: New.
15952 * doc/gcc.texi: Include it.
15953
15954 2009-07-16 DJ Delorie <dj@redhat.com>
15955
15956 * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
15957 compares that may be indirectly affected by previous instructions.
15958
15959 2009-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15960
15961 * builtins.c (do_mpc_arg2): New.
15962 (fold_builtin_2): Fold builtin cpow.
15963 * real.h (HAVE_mpc_pow): New.
15964
15965 2009-07-16 Bingfeng Mei <bmei@broadcom.com>
15966
15967 * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
15968 comparison to skip unprofitable schedule
15969
15970 2009-07-16 Simon Baldwin <simonb@google.com>
15971
15972 * gcc.c (option_map): New flag -no-canonical-prefixes.
15973 * (display_help): Print help text for new flag.
15974 * (process_command): Move options translation and language specifics
15975 and handle new flag early. Use it to set a function pointer to a
15976 prefix builder. Replace make_relative_prefix calls with calls to
15977 the function pointed to. Ignore new flag in regular options handling.
15978 * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
15979
15980 2009-07-15 DJ Delorie <dj@redhat.com>
15981
15982 * config/mep/mep.md (sibcall_internal): Change register to avoid
15983 argument registers.
15984 (sibcall_value_internal): Likewise.
15985
15986 2009-07-15 Eric Botcazou <ebotcazou@adacore.com>
15987
15988 PR rtl-optimization/40710
15989 * resource.c (mark_target_live_regs): Reset DF problem to LR.
15990
15991 2009-07-15 Adam Nemet <anemet@caviumnetworks.com>
15992
15993 * config/mips/mips.md (*extenddi_truncate<mode>,
15994 *extendsi_truncate<mode>): Change type attribute to move_type
15995 with shift_shift. Split out code handling exts from here ...
15996 (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
15997 pattern.
15998 (*extendhi_truncateqi): Change type attribute to move_type with
15999 shift_shift. Split out code handling exts from here ...
16000 (*extendhi_truncateqi_exts): ... to this new pattern.
16001
16002 2009-07-15 Uros Bizjak <ubizjak@gmail.com>
16003
16004 * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
16005 instead of "and" with inverted sign bit mask value. Use
16006 "nonimmediate_operand" for operand 1 and operand 2 predicate.
16007 Allocate registers only for operand 4 and operand 5.
16008
16009 2009-07-15 Jakub Jelinek <jakub@redhat.com>
16010
16011 PR middle-end/40747
16012 * fold-const.c (fold_cond_expr_with_comparison): When folding
16013 < and <= to MIN, make sure the MIN uses the same type as the
16014 comparison's operands.
16015
16016 2009-07-15 Richard Earnshaw <rearnsha@arm.com>
16017
16018 * arm.md (ior_xor): New code iterator.
16019 (split for ior/xor with shift and zero-extend): New split pattern.
16020 * arm/predicates.md (subreg_lowpart_operator): New special predicate.
16021
16022 2009-07-15 Richard Guenther <rguenther@suse.de>
16023
16024 * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
16025 offset member.
16026
16027 2009-07-15 Richard Guenther <rguenther@suse.de>
16028
16029 PR middle-end/40753
16030 * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
16031
16032 2009-07-15 Maxim Kuvyrkov <maxim@codesourcery.com>
16033
16034 * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
16035 handle 2.6.30 kernel.
16036
16037 2009-07-15 DJ Delorie <dj@redhat.com>
16038
16039 * config/mep/mep.md (sibcall_internal): Change register to allow
16040 for 24-bit addresses.
16041 (sibcall_value_internal): Likewise.
16042
16043 2009-07-14 Ghassan Shobaki <ghassan.shobaki@amd.com>
16044
16045 * doc/invoke.texi: Added descriptions of the scheduling heuristics
16046 that are enabled/disabled by the flags introduced by a previous patch.
16047
16048 2009-07-14 DJ Delorie <dj@redhat.com>
16049
16050 * config/mep/mep.md (sibcall_internal): Include non-toggling
16051 non-jmp case.
16052 (sibcall_value_internal): Likewise.
16053
16054 2009-07-14 Taras Glek <tglek@mozilla.com>
16055 Rafael Espindola <espindola@google.com>
16056
16057 * doc/sourcebuild.texi: Document install-plugin target.
16058 * configure.ac: Added install-plugin target to language makefiles.
16059 * configure: Regenerate.
16060 * Makefile.in (install-plugin): Install more headers,
16061 depend on lang.install-plugin.
16062
16063 2009-07-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
16064
16065 * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
16066 translation.
16067
16068 2009-07-14 DJ Delorie <dj@redhat.com>
16069
16070 * config/mep/mep.c (mep_vliw_jmp_match): New function.
16071 * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
16072 * config/mep/mep.md (sibcall_internal): Change test from
16073 mep_vliw_mode_match to mep_vliw_jmp_match.
16074 (sibcall_value_internal): Likewise.
16075
16076 2009-07-14 Uros Bizjak <ubizjak@gmail.com>
16077
16078 * config/i386/sse.md (copysign<mode>3): New expander.
16079 * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
16080 * config/i386/i386.c (ix86_build_signbit_mask): Make public.
16081 Use ix86_build_const_vector.
16082 (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
16083 IX86_BUILTIN_CPYSGNPD.
16084 (builtin_description): Add __builtin_ia32_copysignps and
16085 __builtin_ia32_copysignpd.
16086 (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
16087 and BUILT_IN_COPYSIGNF.
16088
16089 2009-07-13 Jason Merrill <jason@redhat.com>
16090
16091 * builtins.c (can_trust_pointer_alignment): New fn.
16092 (get_pointer_alignment): Factor it out from here.
16093 * tree.h: Declare it.
16094
16095 2009-07-14 David Edelsohn <edelsohn@gnu.org>
16096
16097 * config/rs6000/predicates.md (offsettable_mem_operand): Test
16098 RTX_AUTOINC class.
16099
16100 2009-07-14 Dodji Seketeli <dodji@redhat.com>
16101
16102 PR debug/40705
16103 PR c++/403057
16104 * dwarf2.out.c (gen_type_die_with_usage): Added comment.
16105
16106 2009-07-14 Richard Guenther <rguenther@suse.de>
16107 Andrey Belevantsev <abel@ispras.ru>
16108
16109 PR middle-end/40745
16110 * cfgexpand.c (partition_stack_vars): Do not bother to update
16111 alias information when not optimizing.
16112
16113 2009-07-14 Richard Guenther <rguenther@suse.de>
16114 Andrey Belevantsev <abel@ispras.ru>
16115
16116 * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
16117 (pt_solution_set): Likewise.
16118 * tree-ssa-alias.c (refs_may_alias_p_1): Export.
16119 * tree-ssa-structalias.c (pt_solution_set): New function.
16120 * final.c (rest_of_clean_state): Free SSA data structures.
16121 * print-rtl.c (print_decl_name): Remove.
16122 (print_mem_expr): Implement in terms of print_generic_expr.
16123 * alias.c (ao_ref_from_mem): New function.
16124 (rtx_refs_may_alias_p): Likewise.
16125 (true_dependence): Query alias-export info.
16126 (canon_true_dependence): Likewise.
16127 (write_dependence_p): Likewise.
16128 * tree-dfa.c (get_ref_base_and_extent): For void types leave
16129 size unknown.
16130 * emit-rtl.c (component_ref_for_mem_expr): Remove.
16131 (mem_expr_equal_p): Use operand_equal_p.
16132 (set_mem_attributes_minus_bitpos): Do not use
16133 component_ref_for_mem_expr.
16134 * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
16135 (update_alias_info_with_stack_vars): Likewise.
16136 (partition_stack_vars): Call update_alias_info_with_stack_vars.
16137 * tree-ssa.c (delete_tree_ssa): Do not release SSA names
16138 explicitly nor clear stmt operands.
16139 Free the decl-to-pointer map.
16140 * tree-optimize.c (execute_free_datastructures): Do not free
16141 SSA data structures here.
16142 * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
16143 * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
16144 (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
16145 dependencies.
16146 (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
16147
16148 2009-07-13 DJ Delorie <dj@redhat.com>
16149
16150 * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
16151 unrolling at the right iteration count.
16152
16153 * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
16154 calculations.
16155
16156 2009-07-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
16157
16158 * haifa-sched.c (rank_for_schedule): Introduced flags to
16159 enable/disable individual scheduling heuristics.
16160 * common.opt: Introduced flags to enable/disable individual
16161 heuristics in the scheduler.
16162 * doc/invoke.texi: Introduced flags to enable/disable individual
16163 heuristics in the scheduler.
16164
16165 2009-07-13 Kai Tietz <kai.tietz@onevision.com>
16166
16167 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
16168 config/i386/mingw-tls.c.
16169 * config/i386/mingw-tls.c: Removed.
16170
16171 2009-07-13 Ira Rosen <irar@il.ibm.com>
16172
16173 * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
16174 checks access only relevant statements.
16175 (vectorizable_reduction): Likewise.
16176
16177 2009-07-12 Kai Tietz <kai.tietz@onevision.com>
16178
16179 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
16180 just for 32-bit case.
16181
16182 2009-07-12 Jan Hubicka <jh@suse.cz>
16183
16184 PR tree-optimization/40585
16185 * except.c (expand_resx_expr): When there already is resume
16186 instruction, produce linked list.
16187 (build_post_landing_pads): Assert that resume is empty.
16188 (connect_post_landing_pads): Handle resume lists.
16189 (dump_eh_tree): Dump resume list.
16190
16191 2009-07-12 Ira Rosen <irar@il.ibm.com>
16192
16193 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
16194 with additional argument.
16195 * tree-vectorizer.h (enum vect_def_type): Add
16196 vect_double_reduction_def.
16197 (vect_is_simple_reduction): Add argument.
16198 * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
16199 indentation.
16200 (vect_analyze_scalar_cycles_1): Detect double reduction. Call
16201 vect_is_simple_reduction with additional argument.
16202 (vect_analyze_loop_operations): Handle exit phi nodes in case of
16203 double reduction.
16204 (reduction_code_for_scalar_code): Handle additional codes by
16205 returning ERROR_MARK for them. Fix comment and indentation.
16206 (vect_is_simple_reduction): Fix comment, add argument to specify
16207 double reduction. Detect double reduction.
16208 (get_initial_def_for_induction): Fix indentation.
16209 (get_initial_def_for_reduction): Fix comment and indentation.
16210 Handle double reduction. Create initial definitions that do not
16211 require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
16212 (vect_create_epilog_for_reduction): Fix comment, add argument to
16213 handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
16214 epilogue result extraction. Create double reduction phi node and
16215 replace relevant uses.
16216 (vectorizable_reduction): Call vect_is_simple_reduction with
16217 additional argument. Fix indentation. Update epilogue code treatment
16218 according to the changes in reduction_code_for_scalar_code. Check
16219 for double reduction. Call vect_create_epilog_for_reduction with
16220 additional argument.
16221 * tree-vect-stmts.c (process_use): Handle double reduction, update
16222 documentation.
16223 (vect_mark_stmts_to_be_vectorized): Handle double reduction.
16224 (vect_get_vec_def_for_operand): Likewise.
16225
16226 2009-07-12 Danny Smith <dansmister@gmail.com>
16227
16228 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
16229 dllexport if !TREE_PUBLIC.
16230 (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
16231
16232 2009-07-11 Anatoly Sokolov <aesok@post.ru>
16233
16234 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
16235 (avr_extra_arch_macro) Remove declatation.
16236 * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
16237 (avr_extra_arch_macro) Declare as static.
16238 * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
16239
16240 2009-07-11 Jan Hubicka <jh@suse.cz>
16241
16242 PR middle-end/48388
16243 * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
16244
16245 2009-07-11 Jakub Jelinek <jakub@redhat.com>
16246
16247 PR debug/40713
16248 * dwarf2out.c (dw_fde_struct): Add in_std_section and
16249 cold_in_std_section bits.
16250 (dwarf2out_begin_prologue): Initialize them.
16251 (dwarf2out_finish): Don't emit FDE range into .debug_ranges
16252 if already covered by text_section or cold_text_section range.
16253
16254 PR rtl-optimization/40667
16255 * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
16256 * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
16257 * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
16258 * config/i386/i386.c (ix86_minimum_alignment): New function.
16259 * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
16260 * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
16261 * emit-rtl.c (gen_reg_rtx): Likewise.
16262 * function.c (assign_parms): Likewise. If nominal_type needs
16263 bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
16264 rather than passed_type's alignment.
16265
16266 PR target/40668
16267 * function.c (assign_parm_setup_stack): Adjust
16268 MEM_OFFSET (data->stack_parm) if promoted_mode is different
16269 from nominal_mode on big endian.
16270
16271 2009-07-11 Paolo Bonzini <bonzini@gnu.org>
16272
16273 * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
16274
16275 2009-07-10 DJ Delorie <dj@redhat.com>
16276
16277 * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
16278
16279 2009-07-10 Mark Mitchell <mark@codesourcery.com>
16280
16281 * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
16282 attribute.
16283 (thumb2_cbnz): Likewise.
16284
16285 2009-07-10 David Daney <ddaney@caviumnetworks.com>
16286
16287 PR target/39079
16288 * config.gcc (supported_defaults): Add synci.
16289 (with_synci): Add validation.
16290 (all_defaults): Add synci.
16291 * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
16292 ISA_HAS_SYNCI.
16293 (synci): Same.
16294 * config/mips/mips.opt (msynci): New option.
16295 * config/mips/mips.c (mips_override_options): Warn on use of
16296 -msynci for targets that do now support it.
16297 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
16298 msynci.
16299 * gcc/doc/invoke.texi (-msynci): Document the new option.
16300 * doc/install.texi (--with-synci): Document the new option.
16301
16302 2009-07-10 Richard Guenther <rguenther@suse.de>
16303
16304 PR tree-optimization/40496
16305 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
16306 the PHI result with a compatible type.
16307
16308 2009-07-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
16309
16310 PR 25509
16311 PR 40614
16312 * c.opt (Wunused-result): New.
16313 * doc/invoke.texi: Document it.
16314 * c-common.c (c_warn_unused_result): Use it.
16315
16316 2009-07-09 DJ Delorie <dj@redhat.com>
16317
16318 * targhooks.c (default_target_can_inline_p): Rename from
16319 default_target_option_can_inline_p.
16320 * targhooks.h (default_target_can_inline_p): Likewise.
16321 * target-def.h (TARGET_CAN_INLINE_P): Rename from
16322 TARGET_OPTION_CAN_INLINE_P.
16323 * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
16324 * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
16325 (mep_target_can_inline_p): Rename from
16326 mep_target_option_can_inline_p.
16327
16328 PR target/40626
16329 * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
16330 registers used to pass vectors.
16331
16332 * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
16333
16334 2009-07-09 Tom Tromey <tromey@redhat.com>
16335
16336 * unwind-dw2-fde-darwin.c: Include dwarf2.h.
16337 * config/mmix/mmix.c: Include dwarf2.h.
16338 * config/rs6000/darwin-fallback.c: Include dwarf2.h.
16339 * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
16340 * config/sh/sh.c: Include dwarf2.h.
16341 * config/i386/i386.c: Include dwarf2.h.
16342 * Makefile.in (DWARF2_H): Remove 'elf'.
16343 * except.c: Include dwarf2.h.
16344 * unwind-dw2.c: Include dwarf2.h.
16345 * dwarf2out.c: Include dwarf2.h.
16346 * unwind-dw2-fde-glibc.c: Include dwarf2.h.
16347 * unwind-dw2-fde.c: Include dwarf2.h.
16348 * dwarf2asm.c: Include dwarf2.h.
16349
16350 2009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
16351
16352 * haifa-sched.c (insn_finishes_cycle_p): New static function.
16353 (max_issue): Use it.
16354 * sched-int.h (struct sched_info: insn_finishes_block_p): New
16355 scheduler hook.
16356 * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
16357 (region_sched_info): Update.
16358 * sched-ebb.c (ebb_sched_info): Update.
16359 * modulo-sched.c (sms_sched_info): Update.
16360 * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
16361
16362 2009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
16363
16364 * varasm.c (build_constant_desc): Don't share RTL in pool entries.
16365
16366 2009-07-09 Basile Starynkevitch <basile@starynkevitch.net>
16367
16368 * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
16369
16370 2009-07-09 Jakub Jelinek <jakub@redhat.com>
16371
16372 PR middle-end/40692
16373 * fold-const.c (fold_cond_expr_with_comparison): Don't replace
16374 arg1 with arg01 if arg1 is already INTEGER_CST.
16375
16376 2009-07-08 Adam Nemet <anemet@caviumnetworks.com>
16377
16378 * simplify-rtx.c (simplify_binary_operation_1) <AND>:
16379 Transform (and (truncate)) into (truncate (and)).
16380
16381 2009-07-08 Adam Nemet <anemet@caviumnetworks.com>
16382
16383 * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
16384 creating LHS paradoxical subregs. Fix surrounding returns to
16385 use NULL_RTX rather than 0.
16386
16387 2009-07-08 DJ Delorie <dj@redhat.com>
16388
16389 * config/mep/mep.c (mep_option_can_inline_p): New.
16390 (TARGET_OPTION_CAN_INLINE_P): Define.
16391
16392 2009-07-08 Mark Wielaard <mjw@redhat.com>
16393
16394 PR debug/40659
16395 * dwarf2out.c (add_data_member_location_attribute): When we have
16396 only a constant offset don't emit a new location description using
16397 DW_OP_plus_uconst, but just add the constant with add_AT_int, when
16398 dwarf_version > 2.
16399
16400 2009-07-08 Richard Henderson <rth@redhat.com>
16401
16402 PR target/38900
16403 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
16404 (enum reg_class): Add CLOBBERED_REGS.
16405 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
16406 * config/i386/i386.c (ix86_conditional_register_usage): Moved
16407 from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
16408 (ix86_function_ok_for_sibcall): Tidy. Disallow MS->SYSV sibcalls.
16409 (ix86_expand_call): Use sibcall_insn_operand when needed. Don't
16410 force 64-bit sibcalls into R11.
16411 * config/i386/constraints.md (U): New constraint.
16412 * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
16413 (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
16414 (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
16415
16416 2009-07-08 Shujing Zhao <pearly.zhao@oracle.com>
16417
16418 * basic-block.h (dump_regset, debug_regset): Remove duplicate
16419 prototypes.
16420 * c-objc-common.h (c_initialize_diagnostics): Ditto.
16421 * ebitmap.h (dump_ebitmap): Ditto.
16422 * optabs.h (optab_libfunc): Ditto.
16423 * tree.h (tree_expr_nonzero_warnv_p): Ditto.
16424 * tree-flow.h (vect_can_force_dr_alignment_p,
16425 get_vectype_for_scalar_type): Ditto.
16426 (vectorize_loops): Move prototype to ...
16427 * tree-vectorizer.h: ... here. Also, adjust comment.
16428 (vect_set_verbosity_level): Remove duplicate prototype.
16429 * tree-ssa-loop.c: Include tree-vectorizer.h.
16430 * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
16431
16432 2009-07-08 Nick Clifton <nickc@redhat.com>
16433
16434 * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
16435 forward slash.
16436
16437 2009-07-08 DJ Delorie <dj@redhat.com>
16438
16439 * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
16440 cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
16441 cpmovtocc_P0S_P1): Mark volatile. Note which registers are
16442 written to.
16443 * config/mep/intrinsics.md: Regenerated.
16444 * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
16445 registers when asm() or calls are detected.
16446
16447 2009-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
16448
16449 PR c++/31246
16450 * gimplify.c (gimplify_expr): Propagate no_warning flag when
16451 gimplifying.
16452 * gimple (gimple_build_call_from_tree): Likewise.
16453 * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
16454 no_warning flag before warning.
16455
16456 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
16457
16458 * tree.c (set_expr_locus): Remove.
16459 * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
16460 * c-typeck.c (c_finish_stmt_expr): Replace EXPR_LOCUS by
16461 EXPR_LOCATION.
16462 * gimplify.c (internal_get_tmp_var): Likewise.
16463 (gimplify_call_expr): Likewise.
16464 (gimplify_one_sizepos): Likewise.
16465
16466 2009-07-07 Eric Botcazou <ebotcazou@adacore.com>
16467
16468 PR debug/40666
16469 * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
16470 to variables for debugging purposes.
16471
16472 2009-06-23 Mark Loeser <mark@halcy0n.com>
16473
16474 PR build/40010
16475 * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
16476
16477 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
16478
16479 * pretty-print.c (pp_base_format): Remove %J.
16480 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
16481 gcc_cxxdiag_char_table): Likewise.
16482 (init_dynamic_diag_info): Likewise.
16483
16484 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
16485
16486 * pretty-print.c (pp_base_format): Remove %H.
16487 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
16488 gcc_cxxdiag_char_table): Likewise.
16489 (init_dynamic_diag_info): Likewise.
16490 * config/mep/mep.c (mep_select_section): Likewise.
16491
16492 2009-07-07 Duncan Sands <baldrick@free.fr>
16493
16494 * final.c (pass_clean_state): Give the pass a name.
16495 * passes.c (pass_rest_of_compilation): Likewise.
16496 * tree-optimize.c (pass_all_optimizations): Likewise.
16497
16498 2009-07-07 H.J. Lu <hongjiu.lu@intel.com>
16499
16500 * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
16501 an extra 'decl' for error_at.
16502
16503 2009-07-07 Jakub Jelinek <jakub@redhat.com>
16504
16505 PR middle-end/40669
16506 * tree-tailcall.c (adjust_return_value_with_ops,
16507 create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
16508 if it has complex or vector type.
16509
16510 2009-07-07 Olivier Hainque <hainque@adacore.com>
16511
16512 * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
16513 pthread symbols.
16514
16515 2009-07-07 Basile Starynkevitch <basile@starynkevitch.net>
16516
16517 * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
16518
16519 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
16520
16521 * cgraphunit.c: Replace %J by an explicit location. Update all calls.
16522 * c-decl.c: Likewise.
16523 * function.c: Likewise.
16524 * varasm.c: Likewise.
16525 * tree-ssa.c: Likewise.
16526 * c-common.c: Likewise.
16527 * tree-cfg.c: Likewise.
16528 * config/spu/spu.c: Likewise.
16529 * config/ia64/ia64.c: Likewise.
16530 * config/v850/v850.c: Likewise.
16531
16532 2009-07-06 DJ Delorie <dj@redhat.com>
16533
16534 * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
16535 * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
16536 unspecified accesses to control registers.
16537 * config/mep/intrinsics.md: Regenerate.
16538 * config/mep/intrinsics.h: Regenerate.
16539 * config/mep/mep-intrin.h: Regenerate.
16540
16541 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
16542
16543 * c-lex.c: Replace %H by an explicit location. Update all calls.
16544 * c-common.c: Likewise.
16545 * c-decl.c: Likewise.
16546 * c-typeck.c: Likewise.
16547 * fold-const.c: Likewise.
16548 * gimplify.c: Likewise.
16549 * stmt.c: Likewise.
16550 * tree-cfg.c: Likewise.
16551 * tree-ssa-loop-niter.c: Likewise.
16552 * tree-vrp.c: Likewise.
16553 * value-prof.c: Likewise.
16554
16555 2009-07-06 Diego Novillo <dnovillo@google.com>
16556
16557 * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
16558 if it has one. Handle cases where VAR does not have an
16559 annotation or cfun is NULL.
16560
16561 2009-07-06 Diego Novillo <dnovillo@google.com>
16562
16563 * tree.c: Include debug.h.
16564 (initialize_tree_contains_struct): New.
16565 (init_ttree): Call it.
16566 (tree_node_structure_for_code): Factor out of ...
16567 (tree_node_structure): ... here.
16568 * treestruct.def (TS_PHI_NODE): Remove.
16569 (TS_GIMPLE_STATEMENT): Remove.
16570
16571 2009-07-06 Diego Novillo <dnovillo@google.com>
16572
16573 * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
16574 (debug_tree_chain): Handle cycles.
16575
16576 2009-07-06 Nick Clifton <nickc@redhat.com>
16577 DJ Delorie <dj@redhat.com>
16578
16579 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
16580 __FMOVD_ENABLED__ is defined.
16581 * config/sh/sh.h
16582 (TARGET_FMOVD): Provide a default definition.
16583 (MASK_FMOVD): Likewise.
16584 (TARGET_CPU_CPP_BUILTINS): Define
16585 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
16586 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
16587 two fmov instructions depending upon whether TARGET_FMOVD is enabled.
16588 (split for DF load from memory into register): Also handle
16589 MEMs which consist of REG+DISP addressing.
16590 (split for DF store from register to memory): Likewise.
16591 (movsf_ie): Always use single fp_mode.
16592 * config/sh/sh.c (sh_override_options): Do not automatically
16593 enable TARGET_MOVD for the SH2A when supporting doubles - leave
16594 that to the -mfmovd command line switch.
16595 (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
16596 (fldi_ok): Always allow.
16597 * config/sh/sh.opt (mfmovd): Remove this switch.
16598 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
16599
16600 2009-07-06 J"orn Rennecke <joern.rennecke@arc.com>
16601 Kaz Kojima <kkojima@gcc.gnu.org>
16602
16603 PR rtl-optimization/30807
16604 * postreload.c (reload_combine): For every new use of REG_SUM,
16605 record the use of BASE.
16606
16607 2009-07-06 Jan Hubicka <jh@suse.cz>
16608
16609 * params.def: Revert my accidental commit at 2009-06-30.
16610
16611 2009-07-04 Ian Lance Taylor <iant@google.com>
16612
16613 PR target/40636
16614 * config/i386/msformat-c.c (mingw_format_attributes): Declare as
16615 EXPORTED_CONST.
16616 (mingw_format_attribute_overrides): Likewise.
16617
16618 2009-07-04 Jakub Jelinek <jakub@redhat.com>
16619
16620 PR debug/40596
16621 * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
16622 don't check cfa.reg. Instead of cfa.indirect use
16623 fde && fde->drap_reg != INVALID_REGNUM test.
16624
16625 2009-07-04 Eric Botcazou <ebotcazou@adacore.com>
16626
16627 * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
16628
16629 2009-07-03 Vladimir Makarov <vmakarov@redhat.com>
16630
16631 PR target/40587
16632 * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
16633
16634 2009-07-03 Richard Guenther <rguenther@suse.de>
16635
16636 PR tree-optimization/40640
16637 * tree-switch-conversion.c (build_arrays): Perform arithmetic
16638 in original type.
16639
16640 2009-07-03 Jan Hubicka <jh@suse.cz>
16641
16642 * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
16643 for size, reduce amount of inlining.
16644
16645 2009-07-03 Richard Guenther <rguenther@suse.de>
16646
16647 PR middle-end/34163
16648 * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
16649 if t +- x is known to not overflow and the conversion widens the
16650 operation.
16651 * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
16652
16653 2009-07-03 Jan Hubicka <jh@suse.cz>
16654
16655 * ipa-pure-const.c (analyze): Update loop optimizer init.
16656 * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
16657 try_remove_empty_loop, remove_empty_loops): Remove.
16658 * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
16659 * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
16660 to mark regular loops as neccesary.
16661 (degenerate_phi_p): New function.
16662 (propagate_necessity, remove_dead_phis): Use it.
16663 (forward_edge_to_pdom): Likewise.
16664 (eliminate_unnecessary_stmts): Take care to remove uses of results of
16665 virtual PHI nodes that became unreachable.
16666 (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
16667 * tree-flow.h (remove_empty_loops): Remove.
16668 * passes.c (init_optimization_passes): Remove.
16669
16670 2009-07-03 Uros Bizjak <ubizjak@gmail.com>
16671
16672 * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
16673 can_create_pseudo_p.
16674 (*fix_trunc<mode>_i387_1): Ditto.
16675 (*floathi<mode>2_1): Ditto.
16676 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
16677 (*fistdi2_1): Ditto.
16678 (*fist<mode>2_1): Ditto.
16679 (frndintxf2_floor): Ditto.
16680 (*fist<mode>2_floor_1): Ditto.
16681 (frndintxf2_ceil): Ditto.
16682 (*fist<mode>2_ceil_1): Ditto.
16683 (frndintxf2_trunc): Ditto.
16684 (frndintxf2_mask_pm): Ditto.
16685 (fxam<mode>2_i387_with_temp): Ditto.
16686 * config/i386/sse.md (mulv16qi3): Ditto.
16687 (*sse2_mulv4si3): Ditto.
16688 (mulv2di3): Ditto.
16689 (sse4_2_pcmpestr): Ditto.
16690 (sse4_2_pcmpistr): Ditto.
16691
16692 2009-07-03 Jan Hubicka <jh@suse.cz>
16693
16694 * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
16695 (mark_stmt_necessary): Set it.
16696 (mark_operand_necessary): Set it.
16697 (mark_control_dependent_edges_necessary): Set it.
16698 (mark_virtual_phi_result_for_renaming): New function.
16699 (get_live_post_dom): New function.
16700 (forward_edge_to_pdom): New function.
16701 (remove_dead_stmt): Fix handling of control dependences.
16702 (tree_dce_init): Init new bitmap.
16703 (tree_dce_done): Free it.
16704
16705 2009-07-02 Richard Guenther <rguenther@suse.de>
16706
16707 PR bootstrap/40617
16708 * tree-ssa-structalias.c (new_var_info): Initialize
16709 is_restrict_var.
16710
16711 2009-07-02 Jan Hubicka <jh@suse.cz>
16712
16713 * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
16714 local.
16715
16716 2009-07-02 Paolo Bonzini <bonzini@gnu.org>
16717
16718 * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
16719 instead of recomputing it. Adjust calls.
16720 (emit_store_flag): Adjust recursive calls.
16721
16722 2009-07-02 Richard Guenther <rguenther@suse.de>
16723
16724 * tree-ssa-live.c (remove_unused_locals): Do not remove
16725 heap variables.
16726 * tree-ssa-structalias.c (handle_lhs_call): Delay setting
16727 of DECL_EXTERNAL for HEAP variables.
16728 (compute_points_to_sets): Set DECL_EXTERNAL for escaped
16729 HEAP variables. Do not adjust RESTRICT vars.
16730 (find_what_var_points_to): Nobody cares if something
16731 points to READONLY.
16732
16733 2009-07-02 Ben Elliston <bje@au.ibm.com>
16734
16735 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
16736 pc_low and pc_high declarations to the top of the function.
16737
16738 2009-07-01 DJ Delorie <dj@redhat.com>
16739
16740 * config/mep/mep.c (mep_handle_option): Leave IVC2 control
16741 registers as fixed.
16742 (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
16743 * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
16744 unspecified accesses to control registers.
16745 * config/mep/intrinsics.md: Regenerate.
16746 * config/mep/intrinsics.h: Regenerate.
16747 * config/mep/mep-intrin.h: Regenerate.
16748
16749 2009-07-01 Anthony Green <green@moxielogic.com>
16750
16751 * config/moxie/moxie.c (moxie_expand_prologue): Use dec
16752 instruction when possible.
16753 (moxie_expand_prologue): Ditto. Also, save an instruction and
16754 some complexity by popping off of $r12 instead of $sp.
16755 * config/moxie/moxie.md (movsi_pop): Don't assume $sp. Take two
16756 operands.
16757
16758 2009-07-01 Richard Henderson <rth@redhat.com>
16759
16760 PR bootstrap/40347
16761 * function.c (reposition_prologue_and_epilogue_notes): If epilogue
16762 contained no insns, reposition note before last insn.
16763
16764 2009-07-01 Richard Henderson <rth@redhat.com>
16765
16766 PR debug/40431
16767 * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
16768 DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
16769
16770 2009-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
16771
16772 PR bootstrap/40558
16773 * config/rs6000/rs6000.c (print_operand): Undo change that breaks
16774 darwin9 for printing reg addresses with %y.
16775
16776 2009-07-01 Adam Nemet <anemet@caviumnetworks.com>
16777
16778 * combine.c (force_to_mode): Handle TRUNCATE. Factor out
16779 truncation from operands in binary operations.
16780
16781 2009-07-01 Adam Nemet <anemet@caviumnetworks.com>
16782
16783 Revert:
16784 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
16785 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
16786 subreg of op0 to the original op0.
16787
16788 * expmed.c (store_bit_field_1): Use a temporary as the destination
16789 instead of a paradoxical subreg when we need to truncate the result.
16790
16791 2009-07-01 DJ Delorie <dj@redhat.com>
16792
16793 * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
16794 names to VLIW variants.
16795 (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
16796 * config/mep/intrinsics.md: Regenerate.
16797 * config/mep/intrinsics.h: Regenerate.
16798 * config/mep/mep-intrin.h: Regenerate.
16799
16800 2009-07-01 Jakub Jelinek <jakub@redhat.com>
16801
16802 PR debug/40462
16803 * jump.c (returnjump_p): Revert last patch.
16804 * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
16805
16806 2009-07-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16807
16808 PR target/40575
16809 * pa.md (casesi32p): Use jump table label to determine the offset
16810 of the jump table.
16811 (casesi64p): Likewise.
16812
16813 * pa.c (forward_branch_p): Return bool type. Use instruction
16814 addresses when available. Assert that INSN has a jump label.
16815 (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
16816 have a jump label.
16817
16818 2009-07-01 Richard Guenther <rguenther@suse.de>
16819
16820 PR tree-optimization/19831
16821 * tree-ssa-dce.c (propagate_necessity): Calls to functions
16822 that only act as barriers do not make any previous stores necessary.
16823 * tree-ssa-structalias.c (handle_lhs_call): Delay making
16824 HEAP variables global, do not add a constraint from nonlocal.
16825 (find_func_aliases): Handle escapes through return statements.
16826 (compute_points_to_sets): Make escaped HEAP variables global.
16827
16828 2009-07-01 Paolo Bonzini <bonzini@gnu.org>
16829
16830 PR bootstrap/40597
16831 * expmed.c (emit_store_flag): Perform a conversion if necessary,
16832 after reducing a DImode cstore to SImode.
16833
16834 2009-07-01 Paolo Bonzini <bonzini@gnu.org>
16835
16836 * expr.c (expand_expr_real_1): Reinstate fallthrough to
16837 TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
16838
16839 2009-07-01 Maciej W. Rozycki <macro@linux-mips.org>
16840
16841 * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro. Set to 1.
16842 * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro. Redefine the
16843 to 0.
16844 * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
16845 and umod_optab if TARGET_BSD_DIVMOD.
16846 * config/vax/lib1funcs.asm: New file.
16847 * config/vax/t-linux: New file.
16848 * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
16849
16850 2009-06-30 Jakub Jelinek <jakub@redhat.com>
16851
16852 PR c++/40566
16853 * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
16854 to type arguments that have void type.
16855
16856 PR debug/40573
16857 * dwarf2out.c (gen_formal_parameter_die): Call
16858 equate_decl_number_to_die if node is different from origin.
16859
16860 2009-06-30 Anthony Green <green@moxielogic.com>
16861
16862 Clean up moxie port for --enable-build-with-cxx.
16863 * config/moxie/moxie.c (moxie_function_value): First two
16864 parameters are const_tree, not tree.
16865 * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
16866 (REG_CLASS_NAMES): Ditto.
16867 (REGNO_REG_CLASS): Ditto.
16868 * config/moxie/moxie-protos.h (moxie_override_options): Declare.
16869 (moxie_function_value): Fix constyness of arguments.
16870
16871 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
16872
16873 * cgraphunit.c (cgraph_finalize_compilation_unit): Call
16874 finalize_size_functions before further processing.
16875 * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
16876 (variable_size): Call self_referential_size on size expressions
16877 that contain a PLACEHOLDER_EXPR.
16878 (size_functions): New static variable.
16879 (copy_self_referential_tree_r): New static function.
16880 (self_referential_size): Likewise.
16881 (finalize_size_functions): New global function.
16882 * tree.c: Include tree-inline.h.
16883 (push_without_duplicates): New static function.
16884 (find_placeholder_in_expr): New global function.
16885 (substitute_in_expr) <tcc_declaration>: Return the replacement object
16886 on equality.
16887 <tcc_expression>: Likewise.
16888 <tcc_vl_exp>: If the replacement object is a constant, try to inline
16889 the call in the expression.
16890 * tree.h (finalize_size_functions): Declare.
16891 (find_placeholder_in_expr): Likewise.
16892 (FIND_PLACEHOLDER_IN_EXPR): New macro.
16893 (substitute_placeholder_in_expr): Update comment.
16894 * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
16895 is true.
16896 (copy_tree_body_r): Likewise.
16897 (copy_tree_body): New static function.
16898 (maybe_inline_call_in_expr): New global function.
16899 * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
16900 (maybe_inline_call_in_expr): Declare.
16901 * Makefile.in (tree.o): Depend on TREE_INLINE_H.
16902 (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
16903 GIMPLE_H.
16904
16905 2009-06-30 Richard Guenther <rguenther@suse.de>
16906
16907 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
16908 continue walking.
16909 (propagate_necessity): Do not mark reaching defs of stores
16910 as necessary.
16911
16912 2009-06-30 Jan Hubicka <jh@suse.cz>
16913
16914 * cfgloopanal.c (check_irred): Move into ...
16915 (mark_irreducible_loops): ... here; return true if ireducible
16916 loops was found.
16917 * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
16918 (analyze_function): Try to prove loop finiteness.
16919 * cfgloop.h (mark_irreducible_loops): Update prototype.
16920 * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
16921
16922 2009-06-30 Basile Starynkevitch <basile@starynkevitch.net>
16923
16924 * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
16925
16926 2009-06-30 Ira Rosen <irar@il.ibm.com>
16927
16928 PR tree-optimization/40542
16929 * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
16930 types.
16931
16932 2009-06-30 Martin Jambor <mjambor@suse.cz>
16933
16934 PR tree-optimization/40582
16935 * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
16936 than useless_type_conversion_p.
16937 (generate_subtree_copies): Increment sra_stats.subtree_copies at a
16938 proper place.
16939
16940 2009-06-30 Martin Jambor <mjambor@suse.cz>
16941
16942 PR middle-end/40554
16943 * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
16944
16945 2009-06-30 Richard Guenther <rguenther@suse.de>
16946
16947 * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
16948 use ao_ref references.
16949 (walk_aliased_vdefs): Likewise.
16950 * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
16951 * tree-ssa-dce.c (struct ref_data): Remove.
16952 (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
16953 (mark_aliased_reaching_defs_necessary): Adjust.
16954 (mark_all_reaching_defs_necessary_1): Likewise.
16955
16956 2009-06-30 Paolo Bonzini <bonzini@gnu.org>
16957
16958 PR boostrap/40597
16959 * expmed.c (emit_cstore): New name of emit_store_flag_1.
16960 (emit_store_flag_1): Extract from emit_store_flag, adjust
16961 calls to (what now is) emit_cstore.
16962 (emit_store_flag): Call emit_store_flag_1 and also use it
16963 for what used to be recursive calls.
16964
16965 2009-06-30 Wei Guozhi <carrot@google.com>
16966
16967 PR/40416
16968 * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
16969 if the target bb post dominates from bb.
16970 * config/i386/i386.c (memory_address_length): Check existence of base
16971 register before using it.
16972
16973 2009-06-30 Nick Clifton <nickc@redhat.com>
16974 DJ Delorie <dj@redhat.com>
16975
16976 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
16977 __FMOVD_ENABLED__ is defined.
16978 * config/sh/sh.h
16979 (TARGET_FMOVD): Provide a default definition.
16980 (MASK_FMOVD): Likewise.
16981 (TARGET_CPU_CPP_BUILTINS): Define
16982 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
16983 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
16984 two fmov instructions depending upon whether TARGET_FMOVD is
16985 enabled.
16986 (split for DF load from memory into register): Also handle
16987 MEMs which consist of REG+DISP addressing.
16988 (split for DF store from register to memory): Likewise.
16989 * config/sh/sh.opt (mfmovd): Remove this switch.
16990 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
16991 * config/sh/sh.c (sh_override_options): Do not automatically
16992 enable TARGET_MOVD for the SH2A when supporting doubles - leave
16993 that to the -mfmovd command line switch.
16994
16995 * config/sh/sh.c (broken_move): Do not restrict fldi test to only
16996 the SH4 and SH4A.
16997 (fldi_ok): Always allow.
16998 * config/sh/sh.md (movsf_ie): Always use single fp_mode.
16999
17000 2009-06-29 DJ Delorie <dj@redhat.com>
17001
17002 * doc/install.texi (mep-x-elf): Correct chip's full name.
17003
17004 2009-06-29 H.J. Lu <hongjiu.lu@intel.com>
17005
17006 * doc/extend.texi: Fix typo.
17007
17008 2009-06-29 Tom Tromey <tromey@redhat.com>
17009
17010 * dwarf2.h: Remove.
17011 * Makefile.in (DWARF2_H): New variable.
17012 (except.o): Use it.
17013 (dwarf2out.o): Likewise.
17014 (dwarf2asm.o): Likewise.
17015 * config/i386/t-i386: Use DWARF2_H.
17016 * except.c: Include elf/dwarf2.h.
17017 * unwind-dw2.c: Include elf/dwarf2.h.
17018 * dwarf2out.c: Include elf/dwarf2.h.
17019 (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
17020 <dtprel>: New field.
17021 (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
17022 (size_of_loc_descr): Likewise.
17023 (output_loc_operands_raw): Likewise.
17024 (output_loc_operands): Handle new dtprel field.
17025 (loc_checksum): Update.
17026 (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
17027 * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
17028 * unwind-dw2-fde.c: Include elf/dwarf2.h.
17029 * dwarf2asm.c: Include elf/dwarf2.h.
17030 * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
17031 * config/mmix/mmix.c: Include elf/dwarf2.h.
17032 * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
17033 * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
17034 * config/sh/sh.c: Include elf/dwarf2.h.
17035 * config/i386/i386.c: Include elf/dwarf2.h.
17036
17037 2009-06-29 DJ Delorie <dj@redhat.com>
17038
17039 * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
17040
17041 * doc/extend.texi: Add MeP attributes and pragmas.
17042 * doc/invoke.text: Add MeP Options.
17043 * doc/contrib.texi: Add MeP contribution.
17044 * doc/md.texi: Add MeP constraints.
17045 * doc/install.texi: Add MeP target.
17046
17047 2009-06-30 Anatoly Sokolov <aesok@post.ru>
17048
17049 * target.h (struct gcc_target): Add frame_pointer_required field.
17050 * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
17051 (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
17052 * ira.c (setup_eliminable_regset): Use frame_pointer_required target
17053 hook.
17054 * reload1.c (update_eliminables): (Ditto.).
17055 * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
17056 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
17057 (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
17058
17059 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
17060
17061 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
17062 * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
17063 (arm_frame_pointer_required): New function.
17064
17065 * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
17066 * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
17067 (avr_frame_pointer_required_p): Declare as static.
17068 * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
17069
17070 * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
17071 * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
17072 (bfin_frame_pointer_required): Make as static, change return type
17073 to bool.
17074 * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
17075
17076 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
17077 * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
17078 (cris_frame_pointer_required): New function.
17079
17080 * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
17081
17082 * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
17083 * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
17084 (fr30_frame_pointer_required): New function.
17085
17086 * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
17087 * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
17088 (frv_frame_pointer_required): Make as static, change return type
17089 to bool.
17090 * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
17091
17092 * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
17093 * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
17094 (ix86_frame_pointer_required): Make as static, change return type to
17095 bool.
17096 * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
17097
17098 * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
17099 * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
17100
17101 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
17102
17103 * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
17104
17105 * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
17106
17107 * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
17108 * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
17109 (mips_frame_pointer_required): Make as static.
17110 * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
17111
17112 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
17113 * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
17114 (mmix_frame_pointer_required): Mew function.
17115
17116 * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
17117 * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
17118
17119 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
17120
17121 * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
17122
17123 * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
17124
17125 * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
17126 (CAN_ELIMINATE): Redefine.
17127 * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
17128 (sparc_frame_pointer_required): New function.
17129 (sparc_can_eliminate): New function.
17130 * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
17131
17132 * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
17133 * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
17134
17135 * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
17136 * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
17137 (xtensa_frame_pointer_required): Make as static, change return type
17138 to bool.
17139 * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
17140 Remove.
17141
17142 2009-06-29 Olatunji Ruwase <tjruwase@google.com>
17143
17144 * doc/plugins.texi: Document PLUGIN_START_UNIT.
17145 * toplev.c (compile_file): Call PLUGIN_START_UNIT.
17146 * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
17147 * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
17148 (register_callback): Handle PLUGIN_START_UNIT.
17149 (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
17150
17151 2009-06-29 Eric Botcazou <ebotcazou@adacore.com>
17152
17153 * tree.c (process_call_operands): Propagate TREE_READONLY from the
17154 operands.
17155 (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
17156 (build3_stat): Propagate TREE_READONLY for COND_EXPR.
17157
17158 2009-06-29 Daniel Jacobowitz <dan@codesourcery.com>
17159
17160 * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
17161 move cost.
17162
17163 2009-06-29 Uros Bizjak <ubizjak@gmail.com>
17164
17165 * doc/extend.texi (Additional Floating Types): __float128 is also
17166 supported on i386 targets.
17167
17168 2009-06-29 Richard Guenther <rguenther@suse.de>
17169
17170 PR middle-end/14187
17171 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
17172 flag.
17173 (pt_solutions_same_restrict_base): Declare.
17174 * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
17175 flag.
17176 (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
17177 (make_constraint_from, make_copy_constraint): Move earlier.
17178 (make_constraint_from_heapvar): New function.
17179 (make_constraint_from_restrict): Likewise.
17180 (handle_lhs_call): Use it.
17181 (find_func_aliases): Use it to track conversions to restrict
17182 qualified pointers.
17183 (struct fieldoff): Add only_restrict_pointers flag.
17184 (push_fields_onto_fieldstack): Initialize it.
17185 (create_variable_info_for): Track global restrict qualified pointers.
17186 (intra_create_variable_infos): Use make_constraint_from_heapvar.
17187 Track restrict qualified pointer arguments.
17188 (set_uids_in_ptset): Use varinfo is_global_var flag.
17189 (find_what_var_points_to): Set the vars_contains_restrict flag.
17190 Always create the points-to solution for sets including restrict tags.
17191 (pt_solutions_same_restrict_base): New function.
17192 * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
17193 qualified pointers use pt_solutions_same_restrict_base as
17194 additional source for disambiguation.
17195
17196 2009-06-29 Richard Guenther <rguenther@suse.de>
17197
17198 PR middle-end/38212
17199 * alias.c (find_base_decl): Remove.
17200 (get_deref_alias_set_1): Remove restrict handling.
17201 * c-common.c (c_apply_type_quals_to_decl): Do not set
17202 DECL_POINTER_ALIAS_SET.
17203 * gimplify.c (find_single_pointer_decl_1): Remove.
17204 (find_single_pointer_decl): Likewise.
17205 (internal_get_tmp_var): Remove restrict handling.
17206 (gimple_regimplify_operands): Likewise.
17207 * omp-low.c (expand_omp_atomic_pipeline): Do not set
17208 DECL_POINTER_ALIAS_SET. Use ref-all pointers.
17209 * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
17210 * tree.c (restrict_base_for_decl): Remove.
17211 (init_ttree): Do not allocate it.
17212 (make_node_stat): Do not set DECL_POINTER_ALIAS_SET. Set
17213 LABEL_DECL_UID for label decls.
17214 (copy_node_stat): Do not copy restrict information.
17215 (decl_restrict_base_lookup): Remove.
17216 (decl_restrict_base_insert): Likewise.
17217 (print_restrict_base_statistics): Likewise.
17218 (dump_tree_statistics): Do not call print_restrict_base_statistics.
17219 * tree.h (DECL_POINTER_ALIAS_SET): Remove.
17220 (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
17221 (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
17222 (LABEL_DECL_UID): Adjust.
17223 (DECL_BASED_ON_RESTRICT_P): Remove.
17224 (DECL_GET_RESTRICT_BASE): Likewise.
17225 (SET_DECL_RESTRICT_BASE): Likewise.
17226 (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
17227
17228 * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
17229 instead of DECL_POINTER_ALIAS_SET.
17230 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
17231 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
17232 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
17233
17234 2009-06-29 Richard Guenther <rguenther@suse.de>
17235
17236 PR tree-optimization/40579
17237 * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
17238 the IL to simplify has constants that overflowed.
17239
17240 2009-06-28 Uros Bizjak <ubizjak@gmail.com>
17241
17242 PR tree-optimization/40550
17243 * tree-vect-generic.c (expand_vector_operations_1): Compute in
17244 vector_compute_type only when the size of vector_compute_type is
17245 less than the size of type.
17246
17247 2009-06-28 Eric Botcazou <ebotcazou@adacore.com>
17248
17249 * fold-const.c (contains_label_1): Fix comments.
17250 (contains_label_p): Do not walk trees multiple time.
17251
17252 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
17253
17254 * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
17255 * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
17256 cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
17257 ix86_fp_comparison_operator.
17258 (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
17259 *fp_jcc_2_sse, *fp_jcc_2_387): Delete
17260 (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
17261 *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
17262 !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
17263 to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
17264 (related splits): Change predicate to ix86_fp_comparison_operator.
17265 * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
17266 instead of ix86_fp_comparison_codes.
17267 (ix86_trivial_fp_comparison_operator,
17268 ix86_fp_comparison_operator): New.
17269 * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
17270 (ix86_expand_compare): Eliminate last two parameters.
17271 (ix86_fp_jump_nontrivial_p): Kill.
17272 * config/i386/i386.c (put_condition_code): Eliminate call to
17273 ix86_fp_comparison_codes and subsequent assertion.
17274 (ix86_fp_comparison_codes): Eliminate.
17275 (ix86_fp_swap_condition): New.
17276 (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
17277 ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
17278 into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
17279 (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
17280 and ix86_fp_swap_condition.
17281 (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
17282 Use ix86_fp_comparison_strategy.
17283 (ix86_expand_compare): Likewise. Eliminate last two arguments.
17284 (ix86_fp_jump_nontrivial_p): Eliminate.
17285 (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple. Adjust
17286 call to ix86_expand_compare.
17287 (ix86_split_fp_branch, ix86_expand_setcc,
17288 ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
17289 ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
17290
17291 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
17292
17293 * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
17294 related to jump_clobbers.
17295 * config/arm/arm.md (conds): Remove jump_clob case.
17296 (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
17297 splits): Change comparison_operator to arm_comparison_operator.
17298 (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
17299 Eliminate.
17300
17301 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
17302
17303 * dojump.c (do_compare_rtx_and_jump): Try swapping the
17304 condition for floating point modes.
17305 * expmed.c (emit_store_flag_1): Move here a bigger part
17306 of emit_store_flag.
17307 (emit_store_flag): Try swapping the condition for floating point
17308 modes.
17309 * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
17310
17311 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
17312
17313 * expr.c (expand_expr_real_1): Just use do_store_flag.
17314 (do_store_flag): Drop support for TRUTH_NOT_EXPR. Use
17315 emit_store_flag_force.
17316 * expmed.c (emit_store_flag_force): Copy here trick
17317 previously in expand_expr_real_1. Try reversing the comparison.
17318 (emit_store_flag_1): Work if target is NULL.
17319 (emit_store_flag): Work if target is NULL, using the result mode
17320 from the comparison. Use split_comparison, restructure final part
17321 to simplify conditionals.
17322
17323 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
17324
17325 * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
17326 * dojump.c (do_jump): Change handling of floating-point
17327 ops to use just do_compare_and_jump.
17328 (split_comparison): New.
17329 (do_compare_rtx_and_jump): Add here logic coming previously
17330 in do_jump, using split_comparison.
17331
17332 2009-06-27 H.J. Lu <hongjiu.lu@intel.com>
17333
17334 PR target/40489
17335 * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
17336
17337 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
17338
17339 * tree-ssa-alias.c: Fix unintentional commit.
17340
17341 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
17342
17343 * passes.c (execute_one_pass): Fix unintentional commit.
17344
17345 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
17346
17347 * df-problems.c (df_set_seen, df_unset_seen): Delete.
17348 (df_rd_local_compute, df_md_local_compute): Inline them.
17349
17350 (df_md_scratch): New.
17351 (df_md_alloc, df_md_free): Allocate/free it.
17352 (df_md_local_compute): Only include live registers in init.
17353 (df_md_transfer_function): Prune the in-set computed by
17354 the confluence function, and the gen-set too.
17355
17356 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
17357
17358 PR rtl-optimization/26854
17359 * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
17360 * df-problems.c (df_rd_add_problem): Fix comment.
17361 (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
17362 df_md_simulate_artificial_defs_at_top,
17363 df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
17364 df_md_bb_local_compute, df_md_local_compute, df_md_reset,
17365 df_md_transfer_function, df_md_init, df_md_confluence_0,
17366 df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
17367 problem_MD, df_md_add_problem): New.
17368 * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
17369 df_md_get_bb_info): New.
17370 (DF_LAST_PROBLEM_PLUS1): Adjust.
17371
17372 * Makefile.in (fwprop.o): Include domwalk.h.
17373 * fwprop.c: Include domwalk.h.
17374 (reg_defs, reg_defs_stack): New.
17375 (bitmap_only_bit_between): Remove.
17376 (process_defs): New.
17377 (process_uses): Use reg_defs and local_md instead of
17378 bitmap_only_bit_between and local_rd.
17379 (single_def_use_enter_block): New, from build_single_def_use_links.
17380 (single_def_use_leave_block): New.
17381 (build_single_def_use_links): Remove code moved to
17382 single_def_use_enter_block, invoke domwalk.
17383 (use_killed_between): Adjust comment.
17384
17385 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
17386
17387 * bitmap.h (bitmap_ior_and_into): New.
17388 * bitmap.c (bitmap_ior_and_into): New.
17389
17390 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
17391
17392 * domwalk.h (struct dom_walk_data): Remove all callbacks except
17393 before_dom_children_before_stmts and after_dom_children_after_stmts.
17394 Rename the two remaining callbacks to just before_dom_children and
17395 after_dom_children. Remove other GIMPLE statement walking bits.
17396 * domwalk.c (walk_dominator_tree): Remove now unsupported features.
17397 * graphite.c: Do not include domwalk.h.
17398 * tree-into-ssa.c (interesting_blocks): New global.
17399 (struct mark_def_sites_global_data): Remove it and names_to_rename.
17400 (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
17401 rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
17402 now that they're not domwalk callbacks.
17403 (rewrite_initialize_block): Rename to...
17404 (rewrite_enter_block): ... this, place after called functions. Test
17405 interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
17406 (rewrite_finalize_block): Rename to...
17407 (rewrite_leave_block): ... this, place after called functions.
17408 (rewrite_update_init_block): Rename to...
17409 (rewrite_update_enter_block): ... this, place after called functions.
17410 Test interesting_blocks, call rewrite_update_stmt and
17411 rewrite_update_phi_arguments.
17412 (rewrite_update_fini_block): Rename to...
17413 (rewrite_leave_block): ... this, place after called functions.
17414 (rewrite_blocks): Remove last argument, simplify initialization of
17415 walk_data.
17416 (mark_def_sites_initialize_block): Rename to...
17417 (mark_def_sites_block): ... this, call mark_def_sites.
17418 (mark_def_sites_blocks): Remove argument, simplify initialization of
17419 walk_data.
17420 (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
17421 (update_ssa): Likewise.
17422 * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
17423 callback.
17424 (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
17425 (dom_opt_initialize_block): Rename to...
17426 (dom_opt_enter_block): ... this, place after called functions. Walk
17427 statements here, inline propagate_to_outgoing_edges.
17428 (dom_opt_finalize_block): Rename to...
17429 (dom_opt_leave_block): ... this, place after called functions.
17430 * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
17431 domwalk callback.
17432 (dse_enter_block, dse_record_phi): New.
17433 (dse_record_phis): Delete.
17434 (dse_finalize_block): Rename to...
17435 (dse_leave_block): ... this.
17436 (tree_ssa_dse): Simplify initialization of walk_data.
17437 * tree-ssa-loop-im.c (determine_invariantness, move_computations):
17438 Adjust initialization of walk_data.
17439 * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
17440 * tree-ssa-loop-phiopt.c (get_non_trapping):
17441 Adjust initialization of walk_data.
17442 * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
17443 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
17444 it's not a domwalk callback.
17445 (uncprop_initialize_block): Rename to...
17446 (dse_enter_block): ... this, call uncprop_into_successor_phis.
17447 (dse_finalize_block): Rename to...
17448 (dse_leave_block): ... this.
17449 (tree_ssa_uncprop): Simplify initialization of walk_data.
17450 * Makefile.in: Adjust dependencies.
17451
17452 2009-06-27 Richard Earnshaw <rearnsha@arm.com>
17453
17454 * arm.md (casesi): Fix test for Thumb1.
17455 (thumb1_casesi_internal_pic): Likewise.
17456 (thumb1_casesi_dispatch): Likewise.
17457
17458 2009-06-26 Daniel Gutson <dgutson@codesourcery.com>
17459
17460 * config/arm/arm-cores.def: Added core cortex-m0.
17461 * config/arm/arm-tune.md: Regenerated.
17462 * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
17463
17464 2009-06-26 DJ Delorie <dj@redhat.com>
17465
17466 * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
17467
17468 * config/mep/mep.c (mep_bundle_insns): Account for the fact that
17469 the scheduler doesn't tag jump insns.
17470
17471 2009-06-26 H.J. Lu <hongjiu.lu@intel.com>
17472
17473 * c-decl.c (merge_decls): Re-indent.
17474
17475 2009-06-26 Janis Johnson <janis187@us.ibm.com>
17476
17477 PR c/39902
17478 * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
17479 Special-case decimal float constants.
17480
17481 2009-06-26 Richard Henderson <rth@redhat.com>
17482
17483 * function.h (struct function): Add cannot_be_copied_reason,
17484 and cannot_be_copied_set.
17485 * tree-inline.c (has_label_address_in_static_1): Rename from
17486 inline_forbidden_p_2; don't set inline_forbidden_reason here.
17487 (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
17488 don't set inline_forbidden_reason.
17489 (copy_forbidden): New function, split out of inline_forbidden_p.
17490 (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
17491 (inline_forbidden_p): Use copy_forbidden.
17492 (tree_versionable_function_p): Likewise.
17493 (inlinable_function_p): Merge into tree_inlinable_function_p.
17494 (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
17495 * ipa-cp.c (ipcp_versionable_function_p): New function.
17496 (ipcp_cloning_candidate_p): Use it.
17497 (ipcp_node_modifiable_p): Likewise.
17498
17499 2009-06-26 Olatunji Ruwase <tjruwase@google.com>
17500
17501 * builtins.c (expand_builtin_alloca): Handle builtin alloca
17502 that is marked not to be inlined. Remove flag_mudflap use.
17503 * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
17504 (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
17505
17506 2009-06-26 Steve Ellcey <sje@cup.hp.com>
17507
17508 PR bootstrap/40338
17509 * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
17510 * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
17511
17512 2009-06-26 Kai Tietz <kai.tietz@onevision.com>
17513
17514 * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
17515 shared libgcc.
17516 (__mingwthr_remove_key_dtor): Likewise.
17517
17518 2009-06-26 Richard Guenther <rguenther@suse.de>
17519
17520 * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
17521
17522 2009-06-26 Steven Bosscher <steven@gcc.gnu.org>
17523
17524 PR middle-end/40525
17525 * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
17526 try the non-cond_exec path also.
17527
17528 2009-06-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17529
17530 PR target/40468
17531 * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
17532 (output_cbranch): Use new functions.
17533 (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
17534 Likewise.
17535
17536 2009-06-25 Michael Meissner <meissner@linux.vnet.ibm.com>
17537 Pat Haugen <pthaugen@us.ibm.com>
17538 Revital Eres <ERES@il.ibm.com>
17539
17540 * config/rs6000/rs6000.c (print_operand): Correct lossage message
17541 for %c error. Add %x support to print VSX registers as a unified
17542 register set, instead of separate float and altivec registers.
17543 Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
17544 %y case, and add support for VSX pre-modify addresses.
17545 (output_toc): Add assert for CONST containing an integer constant
17546 in the PLUS case.
17547 (rs6000_adjust_cost): Add POWER7 support.
17548 (insn_must_be_first_in_group): Ditto.
17549 (insn_must_be_last_in_group): Ditto.
17550 (rs6000_emit_popcount): Ditto.
17551 (rs6000_vector_mode_supported_p): Ditto.
17552
17553 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
17554 Change some of the functions called by macros to being called
17555 through a pointer, so debug functions can be inserted if
17556 -mdebug=addr or -mdebug=cost.
17557 (rs6000_preferred_reload_class_ptr): Ditto.
17558 (rs6000_secondary_reload_class_ptr): Ditto.
17559 (rs6000_secondary_memory_needed_ptr): Ditto.
17560 (rs6000_cannot_change_mode_class_ptr): Ditto.
17561 (rs6000_secondary_reload_inner): Ditto.
17562 (rs6000_legitimize_reload_address): Ditto.
17563 (rs6000_legitimize_reload_address_ptr): Ditto.
17564 (rs6000_mode_dependent_address): Ditto.
17565 (rs6000_mode_dependent_address_ptr): Ditto.
17566
17567 * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
17568 function to return true if the mode allows reg + integer
17569 addresses.
17570 (virtual_stack_registers_memory_p): New function to return true if
17571 the address refers to a virtual stack register.
17572 (rs6000_legitimate_offset_address_p): Move code to say whether a
17573 mode supports reg+int addressing to reg_offset_addressing_ok_p and
17574 call it.
17575 (rs6000_legitimate_address_p): Add checks for modes that only can
17576 do reg+reg addressing. Start adding VSX support.
17577 (rs6000_legitimize_reload_address): Ditto.
17578 (rs6000_legitimize_address): Ditto.
17579 (rs6000_debug_legitimate_address_p): New debug functions for
17580 -mdebug=addr and -mdebug=cost.
17581 (rs6000_debug_rtx_costs): Ditto.
17582 (rs6000_debug_address_costs): Ditto.
17583 (rs6000_debug_adjust_cost): Ditto.
17584 (rs6000_debug_legitimize_address): Ditto.
17585 (rs6000_legitimize_reload_address_ptr): Point to call normal
17586 function or debug function. Make functions called via pointer
17587 static.
17588 (rs6000_mode_dependent_address_ptr): Ditto.
17589 (rs6000_secondary_reload_class_ptr): Ditto.
17590 (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
17591 (rs6000_emit_move): Add -mdebug=addr support. Change an abort
17592 into a friendlier error.
17593 (rs6000_init_builtins): Add initial VSX support.
17594 (rs6000_adjust_cost): Fix some spacing issues.
17595
17596 * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
17597 (REG_CLASS_NAMES): Ditto.
17598 (REG_CLASS_CONTENTS): Ditto.
17599 (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
17600 pointer, to add -mdebug=addr support.
17601 (CANNOT_CHANGE_MODE_CLASS): Ditto.
17602 (SECONDARY_RELOAD_CLASS): Call through a pointer to add
17603 -mdebug=addr support.
17604 (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
17605 (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
17606 (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
17607
17608 * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
17609 16-bit values.
17610 (bswapsi*): Set attribute types for load/store. Add combiner
17611 patterns to eliminate zero extend on 64-bit.
17612 (bswapdi*): Add support for swapping 64-bit values. Use ldbrx and
17613 stdbrx if the hardware supports those instructions.
17614
17615 2009-06-25 Ian Lance Taylor <iant@google.com>
17616
17617 * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
17618 (Link Options): Document -static-libstdc++.
17619
17620 2009-06-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
17621
17622 PR target/38731
17623 * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
17624 DATA_ALIGNMENT instead.
17625
17626 2009-06-25 Richard Guenther <rguenther@suse.de>
17627
17628 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
17629 indirect references against the callused/escaped solutions.
17630 (call_may_clobber_ref_p_1): Likewise.
17631
17632 2009-06-25 Martin Jambor <mjambor@suse.cz>
17633
17634 PR tree-optimization/40493
17635 * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
17636 (enum unscalarized_data_handling): New type.
17637 (handle_unscalarized_data_in_subtree): Return what has been done.
17638 (load_assign_lhs_subreplacements): Handle left flushes differently.
17639 (sra_modify_assign): Use unscalarized_data_handling, simplified
17640 condition determining whether to remove the statement.
17641
17642 2009-06-25 Basile Starynkevitch <basile@starynkevitch.net>
17643
17644 * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
17645 excerpt - @ should be doubled for texinfo.
17646
17647 2009-06-24 Ian Lance Taylor <iant@google.com>
17648
17649 * config/arc/arc.c: Include "df.h".
17650 (arc_attribute_table): Make static. Move higher in file.
17651 (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
17652 (output_shift): Initialize n later to avoid warning.
17653 * config/arm/arm.c (arm_attribute_table): Make static. Move
17654 higher in file.
17655 * config/avr/avr.c (avr_attribute_table): Make static. Move
17656 higher in file.
17657 (reg_class_tab): Change array type from int to enum reg_class.
17658 (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
17659 LABEL_REF.
17660 (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
17661 (lshrhi3_out): Likewise.
17662 (class_likely_spilled_p): Change return type to bool.
17663 (avr_rtx_costs): Use local code variable with enum type.
17664 * config/avr/avr.md (movmemhi): Use add_reg_note.
17665 (andhi3, andsi3): Don't use AS2 with "and".
17666 (iorhi3, iorsi3): Don't use AS2 with "or".
17667 * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
17668 * config/crx/crx.c: Include "df.h".
17669 (crx_attribute_table): Make static.
17670 * config/m32r/m32r.c: Include "df.h".
17671 (m32r_attribute_table): Make static. Move higher in file.
17672 (pop): Use add_reg_note.
17673 (block_move_call): Change 0 to LCT_NORMAL in function call.
17674 * config/m32r/m32r.md (movsi_insn): Remove unused local value.
17675 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
17676 * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
17677 declare, not just when TREE_CODE is defined.
17678 * config/m68hc11/m68hc11.c: Include "expr.h".
17679 (m68hc11_attribute_table): Make static. Move higher in file.
17680 (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
17681 function call.
17682 (m68hc11_register_indirect_p): Likewise.
17683 (m68hc11_function_arg_padding): Change return type to enum
17684 direction.
17685 (emit_move_after_reload): Use add_reg_note.
17686 (m68hc11_emit_logical): Change code parameter to enum rtx_code.
17687 (m68hc11_split_logical): Likewise.
17688 (m68hc11_rtx_costs): Add local code_and outer_code variables with
17689 enum type.
17690 * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
17691 to VOIDmode in function call.
17692 * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
17693 tree is defined.
17694 (m68hc11_split_logical): Update declaration.
17695 (m68hc11_function_arg_padding): Update declaration.
17696 * config/mcore/mcore.c (regno_reg_class): Change form array of int
17697 to array of enum reg_class.
17698 (mcore_attribute_table): Make static. Move higher in file.
17699 (mcore_rtx_costs): Add cast to enum type.
17700 * config/mcore/mcore.h (regno_reg_class): Update declaration.
17701 (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
17702 * config/sh/sh.c (sh_attribute_table): Make static. Move higher
17703 in file.
17704 * config/sh/predicates.md (trapping_target_operand): Rename and to
17705 and_expr.
17706 * config/sparc/sparc.c (sparc_attribute_table): Make static. Move
17707 higher in file.
17708 * config/spu/spu.c (spu_attribute_table): Make static. Move
17709 higher in file.
17710 * config/v850/v850.c (v850_attribute_table): Make static. Move
17711 higher in file.
17712 (v850_rtx_costs): Use local code with enum type.
17713 (expand_epilogue): Add cast.
17714 * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
17715
17716 2009-06-23 Takashi YOSHII <yoshii.takashi@renesas.com>
17717
17718 PR target/40515
17719 * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
17720 -m2a-single-only and -m2a-nofpu.
17721 * config/sh/sh.opt: Document m2a generates FPU code.
17722
17723 2009-06-24 Anatoly Sokolov <aesok@post.ru>
17724
17725 * defaults.h (CAN_ELIMINATE): Provide default.
17726 * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
17727 * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
17728 * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
17729 * config/spu/spu.h (CAN_ELIMINATE): Delete.
17730 * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
17731 * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
17732 * config/cris/cris.h (CAN_ELIMINATE): Delete.
17733 * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
17734 * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
17735 * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
17736
17737 2009-06-24 DJ Delorie <dj@redhat.com>
17738
17739 * mep-ext-cop.cpu: Fix copyright notice.
17740 * mep-default: Fix copyright notice.
17741 * mep-core: Fix copyright notice.
17742 * mep: Fix copyright notice.
17743 * mep-ivc2: Fix copyright notice.
17744 * mep-c5: Fix copyright notice.
17745
17746 2009-06-24 Denis Chertykov <chertykov@gmail.com>
17747
17748 * doc/contrib.texi (Contributors):
17749
17750 2009-06-24 Andreas Krebbel <krebbel1@de.ibm.com>
17751
17752 PR middle-end/40501
17753 * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
17754 src and dst operands if necessary.
17755
17756 2009-06-23 DJ Delorie <dj@redhat.com>
17757
17758 Add MeP port.
17759 * config.gcc: Add mep support.
17760 * recog.c: Resurrect validate_replace_rtx_subexp().
17761 * recog.h: Likewise.
17762 * config/mep/: Add new port:
17763 * config/mep/constraints.md: New file.
17764 * config/mep/default.h: New file.
17765 * config/mep/intrinsics.h: New file.
17766 * config/mep/intrinsics.md: New file.
17767 * config/mep/ivc2-template.h: New file.
17768 * config/mep/mep-c5.cpu: New file.
17769 * config/mep/mep-core.cpu: New file.
17770 * config/mep/mep-default.cpu: New file.
17771 * config/mep/mep-ext-cop.cpu: New file.
17772 * config/mep/mep-intrin.h: New file.
17773 * config/mep/mep-ivc2.cpu: New file.
17774 * config/mep/mep-lib1.asm: New file.
17775 * config/mep/mep-lib2.c: New file.
17776 * config/mep/mep-pragma.c: New file.
17777 * config/mep/mep-protos.h: New file.
17778 * config/mep/mep-tramp.c: New file.
17779 * config/mep/mep.c: New file.
17780 * config/mep/mep.cpu: New file.
17781 * config/mep/mep.h: New file.
17782 * config/mep/mep.md: New file.
17783 * config/mep/mep.opt: New file.
17784 * config/mep/predicates.md: New file.
17785 * config/mep/t-mep: New file.
17786
17787 2009-06-23 Ian Lance Taylor <iant@google.com>
17788
17789 * configure.ac: Invoke AC_PROG_CXX. Separate C specific warnings
17790 from loose_warn into c_loose_warn and from strict_warn into
17791 c_strict_warn. Set and substitute warn_cxxflags. Check for
17792 --enable-build-with-cxx. Set and substitute
17793 ENABLE_BUILD_WITH_CXX. Set and substitute HOST_LIBS.
17794 * Makefile.in (CXXFLAGS): New variable.
17795 (C_LOOSE_WARN, C_STRICT_WARN): New variables.
17796 (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN). Add $(C_STRICT_WARN) if
17797 the default is the same as $(STRICT_WARN).
17798 (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
17799 (CXX): New variable.
17800 (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
17801 (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
17802 (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
17803 (HOST_LIBS): New variable.
17804 (GCC_CFLAGS): Add $(C_LOOSE_WARN).
17805 (ALL_CXXFLAGS): New variable.
17806 (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
17807 * doc/install.texi (Configuration): Document
17808 --enable-build-with-cxx, --with-stage1-ldflags,
17809 --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
17810 * configure: Rebuild.
17811
17812 2009-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17813
17814 * config/arm/arm.c (arm_override_options): Fix braces and formatting
17815 from previous commit.
17816
17817 2009-06-23 Ian Lance Taylor <iant@google.com>
17818
17819 * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
17820
17821 2009-06-23 Ian Lance Taylor <iant@google.com>
17822
17823 * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
17824 with ATTRIBUTE_UNUSED.
17825
17826 2009-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
17827 Pat Haugen <pthaugen@us.ibm.com>
17828 Revital Eres <eres@il.ibm.com>
17829
17830 * config.in (HAVE_AS_POPCNTD): Add default definition.
17831 (HAVE_AS_LWSYNC): Ditto.
17832
17833 * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
17834 release number.
17835 (gcc_cv_as_powerpc_cmpb): Ditto.
17836 (gcc_cv_as_powerpc_dfp): Ditto.
17837 (gcc_cv_as_powerpc_vsx): Ditto.
17838 (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
17839 supporting the popcntd/lwsync instructions.
17840 (gcc_cv_as_powerpc_lwsync): Ditto.
17841 * configure: Regenerate.
17842
17843 * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
17844 -mcpu=native and -mcpu=power7.
17845 * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
17846
17847 * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
17848 a variable instead of a mask to reduce the number of mask bits.
17849 * config/rs6000/sysv4.opt (-mbit-align): Ditto.
17850 (-mbit-word): Ditto.
17851 (-mregnames): Ditto.
17852 * config/rs6000/rs6000.opt (-mupdate): Ditto.
17853 (-mfused-madd): Ditto.
17854
17855 * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
17856 2.06 instructions.
17857 (-mvsx): New switch for VSX instructions.
17858 (-misel): Move from a variable to a mask to allow it to be set by
17859 -mcpu=.
17860
17861 * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
17862 function declaration to an array declaration.
17863 (rs6000_hard_regno_nregs): New external array declaration.
17864
17865 * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
17866 files included by rs6000.md.
17867
17868 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
17869 SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
17870
17871 * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
17872 a target mask.
17873 (rs6000_debug_reg): New -mdebug= variables.
17874 (rs6000_debug_addr): Ditto.
17875 (rs6000_debug_cost): Ditto.
17876 (rs6000_pmode): New variable to hold Pmode.
17877 (rs6000_pointer_size): New variable to hold POINTER_SIZE.
17878 (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
17879 calculated at compiler start.
17880 (rs6000_hard_regno_nregs): Change function to an array which holds
17881 HARD_REGNO_NREGS calculated at compiler start.
17882 (rs6000_explicit_options): Delete isel field.
17883 (rs6000_vector_unit): New array to hold which vector unit
17884 supports arithmetic options for a given type.
17885 (rs6000_vector_mem): New array to hold which vector unit supports
17886 memory reference operations for a given type.
17887 (rs6000_vector_align): New array to given the alignment of each
17888 vector type.
17889 (power7_cost): New basic costs for power7.
17890 (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
17891 (rs6000_hard_regno_nregs_internal): New function, moved from
17892 HARD_REGNO_NREGS, to calculate the number of registers each hard
17893 register takes for each type.
17894 (rs6000_debug_reg_print): New function for -mdebug=reg support.
17895 (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
17896 (+rs6000_init_hard_regno_mode_ok): New function, move calculation
17897 of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
17898 unit information here so it is calculated once at compiler startup
17899 time.
17900 (rs6000_override_options): Make -misel a target mask. Add more
17901 power7 target masks. Setup Pmode and POINTER_SIZE. Add initial
17902 VSX support. Add support for -mdebug=reg, -mdebug=addr, and
17903 -mdebug=cost.
17904 (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
17905 (rs6000_handle_option): Move -misel from variable to target mask.
17906 (rs6000_builtin_mask_for_load): Add VSX support.
17907 (rs6000_conditional_register_usage): Ditto.
17908 (USE_ALTIVEC_FOR_ARG_P): Ditto.
17909 (function_arg_boundary): Ditto.
17910 (rs6000_expand_builtin): Ditto.
17911 (def_builtin): Make abort message a little friendlier.
17912 (rs6000_emit_int_cmove): Add support for 64-bit isel.
17913
17914 * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
17915 assembler support the popcntd instruction instead of a vsx
17916 instruction to enable power7 support.
17917 (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
17918 (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
17919 option to the assembler if -mcpu=native.
17920 (ASM_CPU_NATIVE_SPEC): Ditto.
17921 (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
17922 ISA 2.06 features.
17923 (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
17924 the lwsync instruction.
17925 (enum processor_type): Add PROCESSOR_POWER7.
17926 (rs6000_debug_reg): New -mdebug= options.
17927 (rs6000_debug_addr): Ditto.
17928 (rs6000_debug_cost): Ditto.
17929 (rs6000_isel): Delete.
17930 (enum rs6000_vector): New enum to say what vector unit we have.
17931 (VECTOR_UNIT_*): New macros to say which vector unit has
17932 arithmetic operations for a given type.
17933 (VECTOR_MEM_*): New macros to say which vector unit has memory
17934 operations for a given type.
17935 (TARGET_LDBRX): Whether the machine supports the ldbrx
17936 instruction.
17937 (TARGET_ISEL): Delete, -misel moved to be a mask.
17938 (TARGET_ISEL64): New macro for 64-bit isel support.
17939 (UNITS_PER_VSX_WORD): New macro.
17940 (POINTER_SIZE): Move to be an external variable, rather than
17941 calculating whether we are generating 32 ot 64-bit code.
17942 (Pmode): Ditto.
17943 (STACK_BOUNDARY): Add VSX support.
17944 (LOCAL_ALIGNMENT): Ditto.
17945 (SLOW_UNALIGNED_ACCESS): Ditto.
17946 (VSX_REGNO_P): New macro for VSX support.
17947 (VFLOAT_REGNO_P): Ditto.
17948 (VINT_REGNO_P): Ditto.
17949 (VLOGICAL_REGNO_P): Ditto.
17950 (VSX_VECTOR_MODE): Ditto.
17951 (VSX_SCALAR_MODE): Ditto.
17952 (VSX_MODE): Ditto.
17953 (VSX_MOVE_MODE): Ditto.
17954 (VSX_REG_CLASS_P): Ditto.
17955 (HARD_REGNO_NREGS): Instead of calling a function, use an array
17956 lookup.
17957 (UNITS_PER_SIMD_WORD): Add VSX support.
17958 (MODES_TIEABLE_P): Ditto.
17959 (STARTING_FRAME_OFFSET): Ditto.
17960 (STACK_DYNAMIC_OFFSET): Ditto.
17961 (EPILOGUE_USES): Ditto.
17962 (REGNO_REG_CLASS): Move to array lookup.
17963 (CLASS_MAX_NREGS): Ditto.
17964 (rs6000_vector_reg_class): Add declaration.
17965 (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
17966 overlap with the floating point and Altivec registers.
17967
17968 * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
17969
17970 * config/rs6000/driver-rs6000.c (asm_names): New static array to
17971 give the appropriate asm switches if -mcpu=native.
17972 (host_detect_local_cpu): Add support for "asm".
17973 (host_detect_local_cpu): Follow GNU code guidelines for name.
17974
17975 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
17976 -mbit-word to a variable instead of being a target mask.
17977
17978 * config/rs6000/sync.md (lwsync): If the assembler supports it,
17979 emit the lwsync instruction instead of emitting the instruction as
17980 an integer constant.
17981
17982 * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
17983 fixuns_trundfsi2, move expander into rs6000.md.
17984
17985 * config/rs6000/rs6000.md (cpu): Add power7.
17986 (sel, *ptrsize): New mode attributes for 32/64-bit isel.
17987 (logical predicate patterns): Change the single instruction
17988 primitives that set CR0 to be fast_compare instead of compare.
17989 (norsi*): Ditto.
17990 (popcntwsi2): Add support for ISA 2.06 popcount instructions.
17991 (popcntddi2): Ditto.
17992 (popcount<mode>): Ditto.
17993 (floating multiply/add insns): Name the floating point
17994 multiply/add insns.
17995 (isel_signed_<mode>): Add support for -misel on 64-bit systems.
17996 (isel_unsigned_<mode>): Ditto.
17997 (fixuns_trundfsi2): Move expander here from spe.md.
17998 (smindi3): Define if we have -misel on 64-bit systems.
17999 (smaxdi3): Ditto.
18000 (umindi3): Ditto.
18001 (umaxdi3): Ditto.
18002
18003 2009-06-23 Anatoly Sokolov <aesok@post.ru>
18004
18005 * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
18006 extra_objs.
18007 * config/avr/avr.c (avr_current_device): New variable.
18008 (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
18009 (avr_arch, mcu_type_s): Move to avr.h.
18010 * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
18011 default_data_section_start fields.
18012 (avr_arch): Moved from avr.c.
18013 (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
18014 library_name fields.
18015 (avr_current_device, avr_mcu_types, avr_arch_types,
18016 avr_device_to_arch, avr_device_to_data_start,
18017 avr_device_to_startfiles, avr_device_to_devicelib): Declare.
18018 (EXTRA_SPEC_FUNCTIONS): Define.
18019 (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
18020 options mapping. Use device_to_arch and device_to_data_start insted.
18021 (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
18022 (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
18023 * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
18024 * config/avr/driver-avr.c: New file.
18025 * config/avr/avr-devices.c: New file.
18026
18027 2009-06-23 Jakub Jelinek <jakub@redhat.com>
18028
18029 * var-tracking.c (unshare_variable): Force initialized to
18030 be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
18031 (set_variable_part): Likewise.
18032 (struct variable_union_info): Remove pos_src field.
18033 (vui_vec, vui_allocated): New variables.
18034 (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
18035 unconditionally. Avoid XCVECNEW/free for every sorting, for dst_l
18036 == 1 use a simpler sorting algorithm. Compute pos field right
18037 away, don't fill in pos_src. For dst_l == 2 avoid qsort.
18038 Avoid quadratic comparison if !flag_var_tracking_uninit.
18039 (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
18040 unshare_variable unconditionally.
18041 (dataflow_set_different_2): Removed.
18042 (dataflow_set_different): Don't traverse second hash table.
18043 (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
18044 unconditionally to var_reg_set or var_mem_set.
18045 (emit_notes_in_bb): Likewise.
18046 (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
18047 unshare_variable.
18048 (emit_note_insn_var_location): Don't set initialized to
18049 VAR_INIT_STATUS_INITIALIZED early.
18050 (vt_finalize): Free vui_vec if needed, clear vui_vec and
18051 vui_allocated.
18052 * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
18053
18054 * tree-object-size.c (addr_object_size): Instead of checking
18055 for non-NULL TREE_CHAIN of the FIELD_DECL check that there
18056 are no FIELD_DECLs following it.
18057
18058 2009-06-23 Andreas Krebbel <krebbel1@de.ibm.com>
18059
18060 * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
18061 order to match bswaps with signed source operands.
18062
18063 2009-06-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
18064
18065 * sdbout.c (sdbout_one_type): Fix braces in switch.
18066
18067 2009-06-23 Richard Guenther <rguenther@suse.de>
18068
18069 * tree-ssa-structalias.c (struct variable_info): Add is_global_var
18070 member.
18071 (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
18072 readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
18073 var_callused, callused_tree, var_storedanything, storedanything_tree,
18074 var_integer, integer_tree): Remove global variables.
18075 (new_var_info): Do not pass new id, append the new var to the
18076 global variable vector.
18077 (do_ds_constraint): Use is_global_var member of the variable-info.
18078 (new_scalar_tmp_constraint_exp): Adjust.
18079 (create_function_info_for): Likewise.
18080 (create_variable_info_for): Likewise.
18081 (find_what_var_points_to): Remove dead code.
18082 (init_base_vars): Simplify.
18083 (compute_points_to_sets): Adjust.
18084
18085 2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
18086
18087 * combine.c (try_combine): Dump information about the insns we're
18088 combining.
18089
18090 2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
18091
18092 * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
18093 check when calling force_to_mode on TRUNCATE's operand.
18094
18095 2009-06-22 Ian Lance Taylor <iant@google.com>
18096
18097 * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
18098
18099 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
18100
18101 * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
18102
18103 2009-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18104
18105 * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
18106 override library linkage flags such as -static-libgcc or
18107 -shared-libgcc.
18108
18109 2009-06-22 Maxim Kuvyrkov <maxim@codesourcery.com>
18110
18111 * config/m68k/m68k-devices.def: Add line for MCF5221x.
18112
18113 2009-06-22 Ian Lance Taylor <iant@google.com>
18114
18115 * config/linux.opt: Put mglibc ahead of muclibc.
18116
18117 * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
18118 for duplicate decls.
18119
18120 2009-06-22 Matthias Klose <doko@ubuntu.com>
18121
18122 * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
18123
18124 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
18125
18126 PR objc/28050
18127 * c-parser.c (c_parser_objc_message_args): Return error_mark_node
18128 instead of NULL if a parser error occurs.
18129
18130 2009-06-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
18131
18132 * dwarf2out.c (dwarf2_debug_hooks): Initialize
18133 non-DWARF2_DEBUGGING_INFO version.
18134
18135 2009-06-22 Kai Tietz <kai.tietz@onevision.com>
18136
18137 * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
18138 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
18139
18140 * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
18141 (LIBGCC2_TF_CEXT): Define.
18142 (TF_SIZE): Define.
18143
18144 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18145
18146 PR target/40463
18147 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
18148
18149 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18150
18151 * config/arm/arm.c (arm_override_options): Disable
18152 -mcaller-super-interworking and -mcallee-super-interworking.
18153 * doc/invoke.texi (ARM Options): Document this.
18154
18155 2009-06-22 Nathan Sidwell <nathan@codesourcery.com>
18156
18157 * config/arm/arm.c (arm_print_operand): Deal with HIGH.
18158 * config/arm/constraints.md (j): New constraint for movw operands.
18159 (N): Remove thumb2 meaning.
18160 * config/arm/arm.md (*arm_movw): Delete.
18161 (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
18162 * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
18163 * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
18164
18165 2009-06-22 Martin Jambor <mjambor@suse.cz>
18166
18167 PR tree-optimization/40492
18168 * tree-sra.c (sra_modify_assign): Pass zero offsets to
18169 build_ref_for_offset.
18170
18171 2009-06-22 Shujing Zhao <pearly.zhao@oracle.com>
18172
18173 * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
18174 JUMP_TABLE_DATA_P predicates where applicable.
18175 * auto-inc-dec.c: Ditto.
18176 * builtins.c: Ditto.
18177 * caller-save.c: Ditto.
18178 * calls.c: Ditto.
18179 * cfgcleanup.c: Ditto.
18180 * cfglayout.c: Ditto.
18181 * cfgrtl.c: Ditto.
18182 * combine.c: Ditto.
18183 * combine-stack-adj.c: Ditto.
18184 * cse.c: Ditto.
18185 * cselib.c: Ditto.
18186 * dbxout.c: Ditto.
18187 * df-scan.c: Ditto.
18188 * dse.c: Ditto.
18189 * dwarf2asm.c: Ditto.
18190 * dwarf2out.c: Ditto.
18191 * emit-rtl.c: Ditto.
18192 * except.c: Ditto.
18193 * explow.c: Ditto.
18194 * expmed.c: Ditto.
18195 * expr.c: Ditto.
18196 * final.c: Ditto.
18197 * function.c: Ditto.
18198 * fwprop.c: Ditto.
18199 * gcse.c: Ditto.
18200 * genpreds.c: Ditto.
18201 * genrecog.c: Ditto.
18202 * ifcvt.c: Ditto.
18203 * ira-costs.c: Ditto.
18204 * ira-lives.c: Ditto.
18205 * jump.c: Ditto.
18206 * loop-iv.c: Ditto.
18207 * lower-subreg.c: Ditto.
18208 * modulo-sched.c: Ditto.
18209 * optabs.c: Ditto.
18210 * postreload.c: Ditto.
18211 * print-rtl.c: Ditto.
18212 * recog.c: Ditto.
18213 * reginfo.c: Ditto.
18214 * regmove.c: Ditto.
18215 * reload1.c: Ditto.
18216 * reload.c: Ditto.
18217 * reorg.c: Ditto.
18218 * rtlanal.c: Ditto.
18219 * rtl.c: Ditto.
18220 * sched-vis.c: Ditto.
18221 * sdbout.c: Ditto.
18222 * sel-sched-ir.c: Ditto.
18223 * simplify-rtx.c: Ditto.
18224 * targhooks.c: Ditto.
18225 * var-tracking.c: Ditto.
18226 * vmsdbgout.c: Ditto.
18227
18228 2009-06-22 Matthias Klose <doko@ubuntu.com>
18229
18230 * Makefile.in (install-plugin): Always use DESTDIR.
18231
18232 2009-06-22 Olivier Hainque <hainque@adacore.com>
18233
18234 * config/pa/pa.c (output_call): Don't optimize post call jumps
18235 into return address adjustments if the call may throw.
18236
18237 2009-06-21 Richard Earnshaw <rearnsha@arm.com>
18238
18239 * arm.c (thumb1_output_casesi): New function.
18240 * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
18241 optimizing for size or PIC.
18242 (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
18243 * arm.md (UNSPEC_THUMB1_CASESI): New constant.
18244 (casesi): Handle Thumb-1 when optimizing for size or PIC.
18245 (thumb1_casesi_internal_pic): New expand rule.
18246 (thumb1_casesi_dispatch): New pattern.
18247 * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
18248 thumb-1 mode.
18249 * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
18250 in the text seciton when PIC or optimizing for size.
18251 * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
18252 * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
18253 preservation properties of code.
18254 (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
18255 (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
18256 (__gnu_thumb1_case_si): New function.
18257 * t-arm (LIB1ASMSRC): Define here.
18258 (LIB1ASMFUNCS): Add some common functions.
18259 * t-arm-elf (LIB1ASMSRC): Delete.
18260 (LIB1ASMFUNCS): Append to existing set.
18261 * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
18262 * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
18263 * t-symbian (LIB1ASMFUNCS): Likewise.
18264 * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
18265 * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
18266
18267 2009-06-21 Richard Guenther <rguenther@suse.de>
18268
18269 PR tree-optimization/38729
18270 * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
18271 to loops with a single exit if -fno-expensive-optimizations.
18272
18273 2009-06-21 Jakub Jelinek <jakub@redhat.com>
18274
18275 * var-tracking.c (struct shared_hash_def, shared_hash): New types.
18276 (dataflow_set): Change vars type from htab_t to shared_hash.
18277 (shared_hash_pool, empty_shared_hash): New variables.
18278 (vars_clear): Removed.
18279 (shared_hash_shared, shared_hash_htab, shared_hash_copy,
18280 shared_hash_find_slot_unshare, shared_hash_find_slot,
18281 shared_hash_find_slot_noinsert, shared_hash_find): New
18282 static inlines.
18283 (shared_hash_unshare, shared_hash_destroy): New functions.
18284 (unshare_variable): Unshare set->vars if shared, use
18285 shared_hash_htab.
18286 (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
18287 (get_init_value, find_src_set_src, dump_dataflow_set,
18288 clobber_variable_part, emit_notes_for_differences): Use
18289 shared_hash_htab.
18290 (dataflow_set_init): Remove second argument, set vars to
18291 empty_shared_hash instead of creating a new htab.
18292 (dataflow_set_clear): Call shared_hash_destroy and set vars
18293 to empty_shared_hash instead of calling vars_clear.
18294 (dataflow_set_copy): Don't call vars_copy, instead just share
18295 the src htab with dst.
18296 (variable_union): Use shared_hash_*, use initially NO_INSERT
18297 lookup if set->vars is shared. Don't keep slot cleared before
18298 calling unshare_variable. Unshare set->vars if needed.
18299 Even ->refcount == 1 vars must be unshared if set->vars is shared
18300 and var needs to be modified.
18301 (variable_canonicalize): New function.
18302 (dataflow_set_union): If dst->vars is empty, just share src->vars
18303 with dst->vars and traverse with variable_canonicalize to canonicalize
18304 and unshare what is needed.
18305 (dataflow_set_different): If old_set and new_set use the same shared
18306 htab, they aren't different. If number of htab elements is different,
18307 htabs are different. Use shared_hash_*.
18308 (dataflow_set_destroy): Call shared_hash_destroy instead of
18309 htab_delete.
18310 (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
18311 second argument to dataflow_set_init.
18312 (vt_initialize): Likewise. Initialize shared_hash_pool and
18313 empty_shared_hash, move bb in/out initialization afterwards.
18314 Use variable_htab_free instead of NULL as changed_variables del hook.
18315 (variable_was_changed): Change type of second argument to pointer to
18316 dataflow_set. When inserting var into changed_variables, bump
18317 refcount. Unshare set->vars if set is shared htab and slot needs to
18318 be cleared.
18319 (set_variable_part): Use shared_hash_*, use initially NO_INSERT
18320 lookup if set->vars is shared. Unshare set->vars if needed.
18321 Even ->refcount == 1 vars must be unshared if set->vars is shared
18322 and var needs to be modified. Adjust variable_was_changed caller.
18323 (delete_variable_part): Use shared_hash_*. Even ->refcount == 1
18324 vars must be unshared if set->vars is shared and var needs to be
18325 modified. Adjust variable_was_changed caller.
18326 (emit_note_insn_var_location): Don't pool_free var.
18327 (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
18328 instead of 1.
18329 (vt_finalize): Call htab_delete on empty_shared_hash->htab and
18330 free_alloc_pool on shared_hash_pool.
18331
18332 2009-06-20 Anthony Green <green@moxielogic.com>
18333
18334 * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
18335 * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
18336
18337 2009-06-20 Richard Guenther <rguenther@suse.de>
18338
18339 * tree-ssa-structalias.c (find_func_aliases): For memset use
18340 a constraint from NULL if we memset to zero.
18341 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
18342 we explicitly handle that do not read from memory.
18343 (call_may_clobber_ref_p_1): Properly handle builtins that may
18344 set errno.
18345
18346 2009-06-20 Richard Guenther <rguenther@suse.de>
18347
18348 PR tree-optimization/40495
18349 * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
18350 (new_scalar_tmp_constraint_exp): New function.
18351 (process_constraint): Do not create temporary decls.
18352 (process_all_all_constraints): Likewise.
18353 (handle_const_call): Likewise.
18354 (create_function_info_for): Do not set decl.
18355
18356 2009-06-19 Ian Lance Taylor <iant@google.com>
18357
18358 * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
18359 (rs6000_attribute_table): Make static; move before use.
18360
18361 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
18362
18363 * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
18364 <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
18365 Propagate the TREE_READONLY flag without overwriting it.
18366 (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
18367 Propagate the TREE_READONLY flag onto the result.
18368 (process_call_operands): Move around. Use correct constant value.
18369
18370 2009-06-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18371
18372 PR target/40482
18373 * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
18374 * config/arm/arm.md: Likewise.
18375
18376 2009-06-19 Ian Lance Taylor <iant@google.com>
18377
18378 * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
18379 to GIMPLE_ERROR_MARK.
18380
18381 * c-typeck.c (build_conditional_expr): Add op1_original_type and
18382 op2_original_type parameters. Warn about using different enum types.
18383 * c-parser.c (c_parser_conditional_expression): Pass original
18384 types to build_conditional_expr.
18385 * c-tree.h (build_conditional_expr): Update declaration.
18386
18387 2009-06-19 Ian Lance Taylor <iant@google.com>
18388
18389 * config/i386/i386.c (ix86_function_specific_save): Test that
18390 fields match values, rather than testing the values are in a
18391 certain range.
18392
18393 2009-06-19 Richard Guenther <rguenther@suse.de>
18394
18395 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
18396 ADDR_EXPR pointers.
18397 (ptr_derefs_may_alias_p): Likewise.
18398 (ptr_deref_may_alias_ref_p_1): New function.
18399 (ptr_deref_may_alias_ref_p): Likewise.
18400 (ref_maybe_used_by_call_p_1): Handle builtins that are not
18401 covered by looking at the ESCAPED solution.
18402 (call_may_clobber_ref_p_1): Likewise.
18403 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
18404 Handle NULL_TREE offset. Do not produce redundant constraints.
18405 (process_all_all_constraints): New helper function.
18406 (do_structure_copy): Use it.
18407 (handle_lhs_call): Likewise.
18408 (find_func_aliases): Handle some builtins with pointer arguments
18409 and/or return values explicitly.
18410
18411 2009-06-19 Ian Lance Taylor <iant@google.com>
18412
18413 * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
18414
18415 2009-06-19 Ian Lance Taylor <iant@google.com>
18416
18417 * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
18418
18419 2009-06-19 Ian Lance Taylor <iant@google.com>
18420
18421 * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
18422 * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
18423 version.
18424
18425 * c-decl.c (finish_decl): If -Wc++-compat, warn about
18426 uninitialized const.
18427
18428 2009-06-19 Ian Lance Taylor <iant@google.com>
18429
18430 * dse.c (struct store_info): Rename bitmap field to bmap. Change
18431 all uses.
18432
18433 * c-decl.c (in_struct, struct_types): Remove.
18434 (struct c_binding): Add in_struct field.
18435 (c_binding_ptr): Define type, along with VEC.
18436 (struct c_struct_parse_info): Define.
18437 (struct_parse_info): New static variable.
18438 (bind): Initialize in_struct field.
18439 (start_struct): Remove enclosing_in_struct and
18440 enclosing_struct_types parameters. Add
18441 enclosing_struct_parse_info parameter. Change all callers. Set
18442 struct_parse_info rather than in_struct and struct_types.
18443 (grokfield): If -Wc++-compat and there is a symbol binding for the
18444 field name, set the in_struct flag and push it on the
18445 struct_parse_info->fields vector.
18446 (warn_cxx_compat_finish_struct): New static function.
18447 (finish_struct): Remove enclosing_in_struct and
18448 enclosing_struct_types parameters. Add
18449 enclosing_struct_parse_info parameter. Change all callers. Don't
18450 set C_TYPE_DEFINED_IN_STRUCT here. Call
18451 warn_cxx_compat_finish_struct. Free struct_parse_info and set to
18452 parameter. Only push on struct_types if warn_cxx_compat.
18453 (finish_enum): Only push on struct_types if warn_cxx_compat.
18454 (declspecs_add_type): Add loc parameter. Change all callers.
18455 Change all error calls to error_at. Pass loc, not input_location,
18456 to pedwarn calls. Warn if -Wc++-compat and a typedef name is
18457 defined in a struct. If -Wc++-compat and parsing a struct, record
18458 that a typedef name was used.
18459 * c-parser.c (c_parser_declspecs): Get location to pass to
18460 declspecs_add_type.
18461 (c_parser_struct_or_union_specifier): Update calls to start_struct
18462 and finish_struct.
18463 * c-tree.h (struct c_struct_parse_info): Declare.
18464 (finish_struct, start_struct): Update declarations.
18465 (declspecs_add_type): Update declaration.
18466
18467 2009-06-19 Ian Lance Taylor <iant@google.com>
18468
18469 * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
18470 variable with an anonymous type.
18471
18472 2009-06-19 Uros Bizjak <ubizjak@gmail.com>
18473
18474 * see.c: Remove for real.
18475
18476 2009-06-19 Uros Bizjak <ubizjak@gmail.com>
18477
18478 * optabs.h (enum optab_index): Add new OTI_significand.
18479 (significand_optab): Define corresponding macro.
18480 * optabs.c (init_optabs): Initialize significand_optab.
18481 * genopinit.c (optabs): Implement significand_optab using
18482 significand?f2 patterns.
18483 * builtins.c (expand_builtin_mathfn): Handle
18484 BUILT_IN_SIGNIFICAND{,F,L}.
18485 (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
18486 expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
18487
18488 * config/i386/i386.md (significandxf2, significand<mode>2): New
18489 expanders to implement significandf, significand and significandl
18490 built-ins as inline x87 intrinsics.
18491
18492 2009-06-18 Anatoly Sokolov <aesok@post.ru>
18493
18494 * config/avr/avr.c (avr_override_options): Remove setting value of
18495 PARAM_INLINE_CALL_COST.
18496
18497 2009-06-18 Richard Henderson <rth@redhat.com>
18498
18499 PR 40488
18500 * tree-pass.h (TDF_ASMNAME): New.
18501 * tree-dump.c (dump_options): Add asmname.
18502 * doc/invoke.texi: Document it.
18503
18504 * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
18505 (dump_decl_name): ...here.
18506 (dump_function_name): New flags arg; mind TDF_ASMNAME.
18507 (dump_generic_node): Update dump_function_name calls.
18508 (print_call_name): New flags arg; update all dump calls.
18509 * diagnostic.h (print_call_name): Update.
18510 * gimple-pretty-print.c (dump_gimple_call): Update.
18511
18512 2009-06-18 H.J. Lu <hongjiu.lu@intel.com>
18513
18514 PR target/40470
18515 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
18516
18517 2009-06-18 Diego Novillo <dnovillo@google.com>
18518
18519 * doc/plugins.texi: Document plugin_is_GPL_compatible.
18520 * plugin.c (str_license): Declare.
18521 (try_init_one_plugin): Assert that the symbol
18522 'plugin_is_GPL_compatible' exists.
18523
18524 2009-06-18 Sergei Dyshel <sergeid@il.ibm.com>
18525
18526 * see.c: Remove.
18527 * Makefile.in (OBJS-common): Remove see.o.
18528 (see.o): Remove.
18529 * common.opt (fsee): Mark as preserved for backward compatibility.
18530 * opts.c (common_handle_option): Add OPT_fsee to the backward
18531 compatibility section.
18532 * passes.c (init_optimization_passes, pass_see): Remove pass.
18533 * timevar.def (TV_SEE): Remove.
18534 * tree-pass.h (pass_see): Remove declaration.
18535 * doc/invoke.texi (-fsee): Remove documentation.
18536
18537 2009-06-18 Martin Jambor <mjambor@suse.cz>
18538
18539 * tree-sra.c: Include statistics.h
18540 (sra_stats): New variable.
18541 (sra_initialize): Clear sra_stats.
18542 (create_access_replacement): Increment sra_stats.replacements.
18543 (get_access_replacement): Do not return twice.
18544 (analyze_all_variable_accesses): Increment statistics counter by the
18545 number of scalarized aggregates.
18546 (generate_subtree_copies): Increment sra_stats.subtree_copies.
18547 (sra_modify_expr): Increment sra_stats.exprs.
18548 (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
18549 (sra_modify_assign): Increment sra_stats.exprs,
18550 sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
18551 (perform_intra_sra): Update statistics counters.
18552 * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
18553
18554 2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
18555
18556 * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
18557 (arm_scalar_mode_supported_p): New function.
18558
18559 2009-06-18 Paul Brook <paul@codesourcery.com>
18560 Sandra Loosemore <sandra@codesourcery.com>
18561
18562 * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
18563 (__extendhfsf2, __truncsfhf2): Define.
18564 * config/arm/fp16.c: New file.
18565 * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
18566 * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
18567
18568 2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
18569
18570 * doc/extend.texi (Half-Precision): New section.
18571 * doc/invoke.texi (Option Summary): List -mfp16-format.
18572 (ARM Options): List neon-fp16 as -mfpu value. Document -mfp16-format.
18573 * config/arm/arm.opt (mfp16-format=): New.
18574 * config/arm/arm.c: Include intl.h.
18575 (TARGET_INVALID_PARAMETER_TYPE): Redefine.
18576 (TARGET_INVALID_RETURN_TYPE): Redefine.
18577 (TARGET_PROMOTED_TYPE): Redefine.
18578 (TARGET_CONVERT_TO_TYPE): Redefine.
18579 (arm_fp16_format): Define.
18580 (all_fpus): Add entry for neon-fp16.
18581 (fp_model_for_fpu): Likewise.
18582 (struct fp16_format): Declare.
18583 (all_fp16_formats): Define.
18584 (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
18585 functions.
18586 (arm_override_options): Set arm_fp16_format. Call sorry for fp16
18587 and no ldrh.
18588 (arm_legitimate_index_p): Treat HFmode like HImode.
18589 (thumb1_legitimate_address_p): Make it recognize HFmode constants.
18590 (coproc_secondary_reload_class): Special-case HFmode.
18591 (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
18592 (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
18593 (arm_init_fp16_builtins): New.
18594 (arm_init_builtins): Call it.
18595 (arm_invalid_parameter_type): New.
18596 (arm_invalid_return_type): New.
18597 (arm_promoted_type): New.
18598 (arm_convert_to_type).
18599 (arm_file_start): Deal with neon-fp16 as fpu_name. Emit tag for fp16
18600 format.
18601 (arm_emit_fp16_const): New function.
18602 (arm_mangle_type): Mangle __fp16 as "Dh".
18603 * config/arm/arm.h (TARGET_VFPD32): Make it know about
18604 FPUTYPE_NEON_FP16.
18605 (TARGET_NEON_FP16): New.
18606 (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
18607 (enum fputype): Add FPUTYPE_NEON_FP16.
18608 (enum arm_fp16_format_type): Declare.
18609 (arm_fp16_format): Declare.
18610 (LARGEST_EXPONENT_IS_NORMAL): Define.
18611 * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
18612 * config/arm/arm-modes.def (HFmode): Define.
18613 * config/arm/vfp.md (*movhf_vfp): New.
18614 (extendhfsf2): New.
18615 (truncsfhf2): New.
18616 * config/arm/arm.md (fpu): Add neon_fp16.
18617 (floatsihf2, floatdihf2): New.
18618 (fix_trunchfsi2, fix_trunchfdi2): New.
18619 (truncdfhf2): New.
18620 (extendhfdf2): New.
18621 (movhf): New.
18622 (*arm32_movhf): New.
18623 (*thumb1_movhf): New.
18624 (consttable_2): Add check for HFmode constants.
18625 (consttable_4): Handle HFmode constants.
18626
18627 2009-06-18 Uros Bizjak <ubizjak@gmail.com>
18628
18629 * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
18630
18631 2009-06-17 Olivier Hainque <hainque@adacore.com>
18632
18633 * collect2.c (main): Use CONST_CAST2 to perform char ** to
18634 const char ** conversion in AIX specific section.
18635
18636 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
18637
18638 * config/i386/i386.c (ix86_special_builtin_type): Remove
18639 UINT64_FTYPE_PINT. Add UINT64_FTYPE_PUNSIGNED.
18640 (bdesc_special_args): Updated.
18641 (ix86_init_mmx_sse_builtins): Likewise.
18642 (ix86_expand_special_args_builtin): Likewise.
18643
18644 2009-06-17 Richard Henderson <rth@redhat.com>
18645
18646 * tree-pretty-print.c (maybe_dump_asm_name): New.
18647 (dump_decl_name): Use it.
18648 (PRINT_FUNCTION_NAME): Merge into...
18649 (dump_function_name): ... here. Use maybe_dump_asm_name.
18650
18651 2009-06-17 Cary Coutant <ccoutant@google.com>
18652
18653 * dbxout.c (dbxout_source_line): Add is_stmt parameter.
18654 Change caller.
18655 * debug.c (struct gcc_debug_hooks): Change placeholder for
18656 source_line hook.
18657 (debug_nothing_int_charstar_int): Replaced by...
18658 (debug_nothing_int_charstar_int_bool): ...this.
18659 * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
18660 source_line prototype.
18661 (debug_nothing_int_charstar_int): Replaced by...
18662 (debug_nothing_int_charstar_int_bool): ...this.
18663 * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
18664 * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
18665 Output is_stmt operand when necessary.
18666 * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
18667 (notice_source_line): Add is_stmt parameter.
18668 * sdbout.c (sdbout_source_line): Add is_stmt parameter.
18669 * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
18670 Change callers.
18671 * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
18672 * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
18673
18674 2009-06-17 Ian Lance Taylor <iant@google.com>
18675
18676 * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
18677 Change all uses.
18678 (struct store_by_pieces_d): Rename from store_by_pieces. Change
18679 call uses.
18680
18681 2009-06-17 Adam Nemet <anemet@caviumnetworks.com>
18682
18683 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
18684 STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
18685 tree_strip_sign_nop_conversions and
18686 tree_ssa_strip_useless_type_conversions rather than stripping
18687 the operations here.
18688 (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
18689 Declare them.
18690 * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
18691 * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
18692 * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
18693 tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
18694 functions.
18695
18696 2009-06-17 Michael Eager <eager@eagercon.com>
18697
18698 * config/rs6000/constraints.md (register_constraint "d"): New.
18699 * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
18700 truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
18701 *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
18702 *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
18703 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
18704 divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
18705 fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
18706 * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
18707 __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
18708 __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
18709 __fctiwz): Same.
18710 * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
18711 *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
18712 *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
18713 *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
18714 *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
18715 fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
18716 stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
18717 *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
18718 *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
18719 trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
18720 *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
18721 *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
18722 *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
18723 * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
18724
18725 2009-06-16 Ian Lance Taylor <iant@google.com>
18726
18727 * profile.c (total_num_never_executed): Don't define.
18728 (compute_branch_probabilities): Don't count or print
18729 num_never_executed.
18730 (init_branch_prob): Don't set total_num_never_executed.
18731 (end_branch_prob): Don't print total_num_never_executed.
18732
18733 2009-06-17 David Daney <ddaney@caviumnetworks.com>
18734
18735 * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
18736
18737 2009-06-17 David Edelsohn <edelsohn@gnu.org>
18738
18739 * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
18740 (nabstd2_fpr): Same.
18741
18742 2009-06-17 Steve Ellcey <sje@cup.hp.com>
18743
18744 * expr.c (expand_assignment): Change complex type check.
18745
18746 2009-06-17 Basile Starynkevitch <basile@starynkevitch.net>
18747
18748 * doc/plugins.texi (Building GCC plugins): Added new section.
18749
18750 2009-06-17 Ian Lance Taylor <iant@google.com>
18751
18752 * c-pch.c (get_ident): Don't set size of templ array.
18753 (pch_init): Don't set size of partial_pch array.
18754
18755 * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
18756 string constant to intialize an array whose size is the length of
18757 the string.
18758
18759 2009-06-17 Richard Guenther <rguenther@suse.de>
18760
18761 PR tree-optimization/40389
18762 * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
18763 to addressable types.
18764 * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
18765
18766 2009-06-17 Richard Guenther <rguenther@suse.de>
18767
18768 PR middle-end/40460
18769 * tree-chrec.h (build_polynomial_chrec): If we cannot determine
18770 if there is no evolution of left in the loop bail out.
18771 * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
18772 chrec_fold_multiply.
18773
18774 2009-06-16 J"orn Rennecke <joern.rennecke@arc.com>
18775 Janis Johnson <janis187@us.ibm.com>
18776
18777 PR target/39254
18778 * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
18779 for the symbol ref of a constant that is the source of a move
18780 - nor for any other not-obvious-label-ref constants.
18781
18782 2009-06-16 Olatunji Ruwase <tjruwase@google.com>
18783
18784 * plugin.c (position_pass): Skip newly inserted pass during list
18785 traversal to avoid repeated insertion.
18786
18787 2009-06-16 Ian Lance Taylor <iant@google.com>
18788
18789 * vec.h (VEC_stack_alloc): Define different version if
18790 GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
18791 (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
18792 (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
18793 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
18794
18795 2009-06-16 H.J. Lu <hongjiu.lu@intel.com>
18796
18797 * config.gcc (extra_headers): Add ia32intrin.h for x86.
18798
18799 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
18800 IX86_BUILTIN_BSRDI. IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
18801 IX86_BUILTIN_RDTSCP. IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
18802 IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
18803 (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
18804 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
18805 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
18806 (bdesc_special_args): Add __builtin_ia32_rdtsc and
18807 __builtin_ia32_rdtscp.
18808 (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
18809 __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
18810 and __builtin_ia32_rorhi.
18811 (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
18812 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
18813 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
18814 (ix86_expand_args_builtin): Likewise.
18815 (ix86_expand_special_args_builtin): Likewise.
18816
18817 * config/i386/i386.md (UNSPECV_RDTSCP): New.
18818 (UNSPECV_RDTSC): Likewise.
18819 (UNSPECV_RDPMC): Likewise.
18820 (*bsr): Renamed to ...
18821 (bsr): This
18822 (*bsr_rex64): Renamed to ...
18823 (bsr_rex64): This.
18824 (rdpmc): New.
18825 (*rdpmc): Likewise.
18826 (*rdpmc_rex64): Likewise.
18827 (rdtsc): Likewise.
18828 (*rdtsc): Likewise.
18829 (*rdtsc_rex64): Likewise.
18830 (rdtscp): Likewise.
18831 (*rdtscp): Likewise.
18832 (*rdtscp_rex64): Likewise.
18833
18834 * config/i386/ia32intrin.h: New.
18835
18836 * config/i386/x86intrin.h: Include <ia32intrin.h>.
18837
18838 2009-06-16 Ian Lance Taylor <iant@google.com>
18839
18840 * ira-build.c (copy_info_to_removed_store_destinations):
18841 Initialize parent_a.
18842
18843 2009-06-16 Ian Lance Taylor <iant@google.com>
18844
18845 * c-decl.c (grokdeclarator): Change size_varies to bool.
18846
18847 2009-06-16 Ian Lance Taylor <iant@google.com>
18848
18849 * sel-sched.c: Make forward declarations of move_op_hooks and
18850 fur_hooks explicitly extern.
18851
18852 2009-06-16 Ian Lance Taylor <iant@google.com>
18853
18854 * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
18855 * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
18856
18857 2009-06-16 Ian Lance Taylor <iant@google.com>
18858
18859 * resource.c (mark_referenced_resources): Change
18860 include_delayed_effects parameter to bool. Change all callers.
18861 (mark_end_of_function_resources): Likewise.
18862 * reorg.c (insn_references_resource_p): Likewise.
18863 (insn_sets_resource_p): Likewise.
18864 * resource.h (mark_referenced_resources): Update declaration.
18865 (mark_end_of_function_resources): Update declaration.
18866
18867 2009-06-16 David Edelsohn <edelsohn@gnu.org>
18868
18869 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
18870
18871 2009-06-16 David Edelsohn <edelsohn@gnu.org>
18872
18873 * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
18874 GCC can bootstrap on AIX with GNU Binutils 2.20.
18875
18876 2009-06-16 Ian Lance Taylor <iant@google.com>
18877
18878 * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
18879
18880 2009-06-16 Ian Lance Taylor <iant@google.com>
18881
18882 * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
18883 inline, not extern inline.
18884 (exact_log2): Likewise.
18885 * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
18886 test CLZ_HWI.
18887 (exact_log2): Likewise, but don't test CTZ_HWI.
18888
18889 2009-06-16 Ian Lance Taylor <iant@google.com>
18890
18891 * bitmap.c (bitmap_clear): Don't declare as inline.
18892 * gimple.c (gimplify_assign): Likewise.
18893 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
18894 * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
18895 (sched_scan_info): Remove duplicate definition.
18896
18897 2009-06-16 Ian Lance Taylor <iant@google.com>
18898
18899 * c-common.c (skip_evaluation): Don't define.
18900 (c_inhibit_evaluation_warnings): Define global variable.
18901 (overflow_warning): Check c_inhibit_evaluation_warnings rather
18902 than skip_evaluation.
18903 (convert_and_check, warn_for_div_by_zero): Likewise.
18904 * c-common.h (skip_evaluation): Don't declare.
18905 (c_inhibit_evaluation_warnings): Declare.
18906 * c-parser.c (c_parser_typeof_specifier): Set
18907 c_inhibit_evaluation_warnings rather than skip_evaluation.
18908 (c_parser_conditional_expression): Likewise.
18909 (c_parser_binary_expression): Likewise.
18910 (c_parser_sizeof_expression): Likewise.
18911 (c_parser_alignof_expression): Likewise.
18912 * c-typeck.c (build_indirect_ref): Check
18913 c_inhibit_evaluation_warnings rather than skip_evaluation.
18914 (build_conditional_expr, build_binary_op): Likewise.
18915
18916 2009-06-16 Richard Guenther <rguenther@suse.de>
18917
18918 * tree-ssa-alias.c (is_escape_site): Remove.
18919 * tree-ssa-alias.h (enum escape_type): Remove.
18920 (is_escape_site): Likewise.
18921 * tree-ssa-structalias.c (find_func_aliases): Handle escapes
18922 via casts and asms without deferring to is_escape_site.
18923
18924 2009-06-16 Jakub Jelinek <jakub@redhat.com>
18925
18926 PR middle-end/40446
18927 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
18928 use gen_lowpart if op0 has complex mode.
18929
18930 2009-06-16 Richard Guenther <rguenther@suse.de>
18931
18932 * tree-ssa-structalias.c (do_ds_constraint): Stores in global
18933 variables add them to ESCAPED.
18934 (find_func_aliases): Do not make all indirectly stored values escaped.
18935
18936 2009-06-16 Rafael Avila de Espindola <espindola@google.com>
18937
18938 * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
18939 make_decl_one_only.
18940
18941 2009-06-16 Martin Jambor <mjambor@suse.cz>
18942
18943 PR tree-optimization/40432
18944 * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
18945 check whether we need to force gimple register operand.
18946
18947 2009-06-16 Martin Jambor <mjambor@suse.cz>
18948
18949 PR tree-optimization/40413
18950 * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
18951 build_ref_for_offset.
18952 (propagate_subacesses_accross_link): Fix a typo in a comment.
18953
18954 2009-06-16 Ira Rosen <irar@il.ibm.com>
18955
18956 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
18957 with additional parameter.
18958 * tree-vectorizer.h (enum vect_def_type): Add new value
18959 vect_nested_cycle.
18960 (enum vect_relevant): Add comments.
18961 (vect_is_simple_reduction): Add new argument.
18962 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
18963 Detect nested cycles.
18964 (vect_is_simple_reduction): Update documentation, add an argument to
18965 distinguish inner-loop reduction from nested cycle, detect nested
18966 cycles, fix printings and indentation, don't swap operands in case
18967 of nested cycle.
18968 (get_initial_def_for_reduction): Handle subtraction.
18969 (vect_create_epilog_for_reduction): Add new argument to specify
18970 reduction variable.
18971 (vect_finalize_reduction): Handle subtraction, fix comments.
18972 (vectorizable_reduction): Handle nested cycles. In case of nested
18973 cycle keep track of the reduction variable position. Call
18974 vect_is_simple_reduction with additional parameter. Use original
18975 statement code in reduction epilogue for nested cycle. Call
18976 vect_create_epilog_for_reduction with additional parameter.
18977 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
18978 inner-loop vectorization.
18979 (vect_recog_widen_sum_pattern): Likewise.
18980 * tree-vect-stmts.c (process_use): Distinguish between nested cycles
18981 and reductions.
18982 (vect_mark_stmts_to_be_vectorized): Likewise.
18983 (vect_get_vec_def_for_operand): Handle nested cycles.
18984
18985 2009-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18986
18987 * doc/invoke.texi (Debugging Options): Fix option index entries
18988 for -fdump-statistics, -frandom-seed add entries for
18989 -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
18990 (FRV Options): Fix entries for -mTLS, -mtls.
18991 (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
18992 (i386 and x86-64 Options): Fix entry for -mno-red-zone.
18993 (M68hc1x Options): Fix @itemx for -mnominmax.
18994 (MCore Options): Fix entry for -mno-lsim.
18995 (MMIX Options): Fix entry for -mabi=mmixware.
18996 (PDP-11 Options): Fix entry for -mbcopy-builtin.
18997
18998 2009-06-16 Basile Starynkevitch <basile@starynkevitch.net>
18999
19000 * doc/plugins.texi (Interacting with the GCC Garbage Collector):
19001 Mention the plugin mode of gengtype.
19002 * doc/gty.texi (Source Files Containing Type Information): Likewise.
19003 * gengtype.c: Updated copyright.
19004 (plugin_files, nb_plugin_files) Added new static variables.
19005 (measure_input_list) Care about plugin_files.
19006 (write_rtx_next): Added early return in plugin mode.
19007 (create_file): Updated copyright year in generated file. Added
19008 asserts.
19009 (oprintf): Added early return if NULL outf.
19010 (get_output_file_with_visibility): Care of plugin_files.
19011 (get_output_file_name): May return null.
19012 (write_local): Added early return.
19013 (put_mangled_filename): Ditto.
19014 (finish_root_table): Added check for base_files.
19015 (write_roots): Care about null when plugins.
19016 (main): Added plugin mode.
19017
19018 2009-06-15 Ian Lance Taylor <iant@google.com>
19019
19020 * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
19021 * gcov.c (read_count_file): Add braces around variables declared
19022 before label.
19023
19024 * c.opt (Wjump-misses-init): New warning.
19025 * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
19026 -Wall and -Wc++-compat if not already set.
19027 (c_common_post_options): Clear warn_jump_misses_init if it was not
19028 set.
19029 * c-decl.c (struct c_binding): Change type field to a union with
19030 new label field. Make it the first field in the struct. Update
19031 references to type to use u.type instead.
19032 (struct c_spot_bindings): Define.
19033 (struct c_goto_bindings): Define.
19034 (c_goto_bindings_p): Define, along with VECs.
19035 (struct c_label_vars): Define.
19036 (struct c_scope): Add has_label_bindings field.
19037 (bind_label, set_spot_bindings): New static functions.
19038 (decl_jump_unsafe, update_spot_bindings): New static functions.
19039 (update_label_decls): New static function.
19040 (pop_scope): Call update_label_decls. Don't call c_end_vm_scope.
19041 Update binding u.label field to shadowed field.
19042 (c_binding_start_stmt_expr): New function.
19043 (c_binding_end_stmt_expr): New function.
19044 (pushdecl): Don't call c_begin_vm_scope.
19045 (make_label): Add defining and p_label_vars parameters. Change
19046 all callers.
19047 (lookup_label): Correct test for whether a label has not yet been
19048 defined. Call bind_label rather than bind.
19049 (warn_about_goto): New static function.
19050 (lookup_label_for_goto): New function.
19051 (declare_label): Call bind_label rather than bind.
19052 (check_earlier_gotos): New static function.
19053 (define_label): Don't give errors about jumping into statement
19054 expressions or scopes of variably modified types. Call
19055 set_spot_bindings and check_earlier_gotos. Call bind_label
19056 instead of bind. Don't set label_context_stack_se or
19057 label_context_stack_vm.
19058 (c_get_switch_bindings): New function.
19059 (c_release_switch_bindings): New function.
19060 (c_check_switch_jump_warnings): New function.
19061 (start_function): Don't set label_context_stack_se or
19062 label_context_stack_vm.
19063 (finish_function): Likewise.
19064 * c-typeck.c (label_context_stack_se): Don't define.
19065 (label_context_stack_vm): Don't define.
19066 (c_finish_goto_label): Call lookup_label_for_goto rather than
19067 lookup_label. Don't give errors about jumping into a statement
19068 expression or the scope of a variably modified type. Don't set
19069 label_context_stack_se or label_context_stack_vm.
19070 (struct c_switch): Remove blocked_stmt_expr and blocked_vm
19071 fields. Add bindings field.
19072 (c_start_case): Don't set deleted fields. Set bindings field.
19073 (do_case): Rework order of tests. Don't check blocked_stmt_expr
19074 or blocked_vm. Call c_check_switch_jump_warnings.
19075 (c_finish_case): Don't test blocked_stmt_expr field. Call
19076 c_release_switch_bindings.
19077 (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
19078 c_switch_stack. Don't walk label_context_stack_se labels. Don't
19079 set label_context_stack_se. Call c_bindings_start_stmt_expr.
19080 (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
19081 c_switch_stack. Don't walk label_context_stack_se labels. Don't
19082 set label_context_stack_se. Call c_bindings_end_stmt_expr.
19083 (c_begin_vm_scope, c_end_vm_scope): Don't define.
19084 * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
19085 (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
19086 (C_DECL_UNJUMPABLE_VM): Don't define.
19087 (C_DECL_UNDEFINABLE_VM): Don't define.
19088 (struct c_label_list): Don't define.
19089 (struct c_label_context_se): Don't define.
19090 (struct c_label_context_vm): Don't define.
19091 (struct c_spot_bindings): Declare.
19092 (c_bindings_start_stmt_expr): Declare.
19093 (c_bindings_end_stmt_expr): Declare.
19094 (lookup_label_for_goto): Declare.
19095 (c_get_switch_bindings, c_release_switch_bindings): Declare.
19096 (c_check_switch_jump_warnings): Declare.
19097 (label_context_stack_se, label_context_stack_vm): Don't declare.
19098 (c_finish_goto_label): Update declaration.
19099 (c_begin_vm_scope, c_end_vm_scope): Don't declare.
19100 * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
19101 (Warning Options): Document -Wjump-misses-init.
19102
19103 2009-06-15 Jakub Jelinek <jakub@redhat.com>
19104
19105 * tree-object-size.c (addr_object_size): Fix a pasto in the last
19106 change.
19107
19108 2009-06-15 Rafael Avila de Espindola <espindola@google.com>
19109
19110 * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
19111
19112 2009-06-15 Aldy Hernandez <aldyh@redhat.com>
19113
19114 * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
19115
19116 2009-06-15 Aldy Hernandez <aldyh@redhat.com>
19117
19118 * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
19119
19120 2009-06-15 Rafael Avila de Espindola <espindola@google.com>
19121
19122 * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
19123 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
19124 * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
19125 * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
19126 * dwarf2asm.c (dw2_force_const_mem): Update call to
19127 make_decl_one_only.
19128 * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
19129 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
19130 * langhooks.c (lhd_comdat_group): Remove.
19131 * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
19132 * tree.h (DECL_COMDAT_GROUP): New.
19133 (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
19134 (tree_decl_with_vis): Add comdat_group. Remove one_only.
19135 (make_decl_one_only): Change signature.
19136 * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
19137 make_decl_one_only.
19138 (make_decl_one_only): Change signature.
19139 (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
19140
19141 2009-06-15 Richard Guenther <rguenther@suse.de>
19142
19143 PR middle-end/40439
19144 * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
19145
19146 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19147
19148 * tree-ssa-math-opts.c: Remove extra divide.
19149
19150 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19151
19152 * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
19153
19154 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19155
19156 * passes.c: Add bswap pass.
19157 * tree-pass.h: Add pass_optimize_bswap declaration.
19158 * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
19159 Include rtl.h, expr.h and optabs.h for optab_handler check.
19160 (struct symbolic_number, pass_optimize_bswap): New definition.
19161 (do_shift_rotate, verify_symbolic_number_p): New functions.
19162 (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
19163 (gate_optimize_bswap): New function.
19164 * tree.c (widest_int_cst_value): New function.
19165 * tree.h (widest_int_cst_value): Prototype added.
19166
19167 2009-06-14 Steven Bosscher <steven@gcc.gnu.org>
19168
19169 * cfgcleanup.c (old_insns_match_p): Remove code to substitute
19170 REG_EQUAL/REG_EQUIV notes.
19171
19172 2009-06-14 Richard Guenther <rguenther@suse.de>
19173
19174 PR middle-end/40389
19175 * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
19176 has its address taken if NRV was applied and it is addressable.
19177 * tree-ssa-structalias.c (get_constraint_for_address_of): New
19178 function split out from ...
19179 (get_constraint_for_1): ... here.
19180 (handle_rhs_call): Use it to mark the return slot escaped if
19181 it is addressable and NRV was applied.
19182
19183 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
19184
19185 * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
19186 Change first argument type to location_t.
19187 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
19188 Do not set input_location.
19189 Use loc instead of input_location throughout.
19190
19191 2009-06-13 Richard Guenther <rguenther@suse.de>
19192
19193 PR tree-optimization/40421
19194 * tree-predcom.c (should_unroll_loop_p): Remove.
19195 (tree_predictive_commoning_loop): Use can_unroll_loop_p.
19196
19197 2009-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
19198
19199 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
19200 Add location argument.
19201
19202 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
19203
19204 * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
19205 build_decl.
19206 * config/s390/s390.c (s390_build_builtin_va_list): Same.
19207 (s390_gimplify_va_arg): Pass location to create_artificial_label.
19208 * config/spu/spu-protos.h: Add location to
19209 spu_resolve_overloaded_builtin.
19210 * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
19211 spu_build_builtin_va_list.
19212 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
19213 argument. Pass location to build_function_call_vec.
19214 * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
19215 build_decl.
19216 (emit_fpu_switch): Same.
19217 (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
19218 * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
19219 to build_decl and create_artificial_label.
19220 (xtensa_gimplify_va_arg_expr): Same.
19221 * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
19222 (xstormy16_gimplify_va_arg_expr): Same.
19223 * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
19224 * config/arm/arm.c (arm_build_builtin_va_list): Same.
19225 * config/mips/mips.c (mips_build_builtin_va_list): Same.
19226 (mips16_build_function_stub): Same.
19227 (mips16_build_call_stub): Same.
19228
19229 2009-06-13 Richard Earnshaw <rearnsha@arm.com>
19230
19231 PR target/40327
19232 * arm/constraints.md (Pa, Pb): New constraints.
19233 * arm/arm.md (thumb1_addsi3): Support more complex additions. Add a
19234 split pattern to deal with them.
19235
19236 2009-06-13 Joerg Sonnenberger <joerg@britannica.bec.de>
19237
19238 * doc/invoke.texi: Add missing option -Wp,OPTION in list,
19239 fix index entry for -Xpreprocessor.
19240
19241 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
19242
19243 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
19244 Add location argument to build_decl call.
19245 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
19246 (rs6000_init_builtins): Same.
19247 (spe_init_builtins): Same.
19248 (rs6000_gimplify_va_arg): Add location argument to
19249 create_artificial_label call.
19250
19251 2009-06-12 Steven Bosscher <steven@gcc.gnu.org>
19252
19253 * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
19254 * combine-stack-adj.c (pass_stack_adjustments): Use it.
19255 * Makefile.in: Fix GGC dependency for gcse.o.
19256
19257 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
19258
19259 * tree-pretty-print.c (dump_generic_node): Dump column numbers.
19260 * gimple-pretty-print.c (dump_gimple_stmt): Same.
19261 * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
19262 created.
19263 * c-parser.c (c_parser_binary_expression): Use current column while
19264 building binary operations.
19265 * common.opt (fshow-column): Enable by default.
19266 * tree-vrp.c (check_array_ref): Use warning_at.
19267 (check_array_bounds): Use location from call back if expr has no
19268 location.
19269 * tree.h: Add location argument to maybe_fold_*.
19270 * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
19271 (maybe_fold_offset_to_array_ref): Add location argument and use it.
19272 (maybe_fold_offset_to_component_ref): Same.
19273 (maybe_fold_offset_to_reference): Same.
19274 (maybe_fold_offset_to_address): Same.
19275 (maybe_fold_stmt_indirect): Same.
19276 (maybe_fold_stmt_addition): Same.
19277 (fold_stmt_r): Pass location to maybe_fold_*.
19278 (fold_gimple_assign): Same.
19279 * c-tree.h: Add location argument to finish_decl,
19280 default_function_array_conversion, store_init_value.
19281 * c-decl.c (define_label): Use error_at.
19282 (c_make_fname_decl): Pass location to finish_decl.
19283 (finish_decl): New location argument.
19284 (build_compound_literal): Pass location to store_init_value.
19285 (grokdeclarator): Pass location to finish_decl.
19286 (grokfield): Same.
19287 * c-typeck.c (array_to_pointer_conversion): New location argument.
19288 (function_to_pointer_conversion): Same.
19289 (default_function_array_conversion): Same.
19290 (parser_build_unary_op): Pass location to overflow_warning.
19291 (parser_build_binary_op): Same. Use warning_at.
19292 (build_unary_op): Pass location to array_to_pointer_conversion.
19293 (build_c_cast): Pass location to digest_init.
19294 (build_modify_expr): New location argument.
19295 (convert_for_assignment): Same.
19296 (store_init_value): Same.
19297 (digest_init): Same.
19298 (output_init_element): Pass location to digest_init and
19299 array_to_pointer_conversion.
19300 (c_finish_return): Pass location to convert_for_assignment.
19301 * gimplify.c (gimplify_conversion): Pass location to
19302 maybe_fold_offset_to_address.
19303 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
19304 to maybe_fold_stmt_addition.
19305 * c-omp.c (c_finish_omp_atomic): Pass new location to
19306 build_modify_expr.
19307 (c_finish_omp_for): Same.
19308 * c-common.c (overflow_warning): New argument.
19309 * c-common.h: New argument to build_modify_expr, overflow_warning.
19310 * c-parser.c (c_parser_declaration_or_fndef): Pass location to
19311 finish_decl.
19312 (c_parser_initializer): Pass location to
19313 default_function_array_conversion.
19314 (c_parser_initelt): Same.
19315 (c_parser_initval): Same.
19316 (c_parser_asm_operands): Same.
19317 (c_parser_expr_no_commas): Same. Pass location to build_modify_expr.
19318 (c_parser_conditional_expression): Same.
19319 (c_parser_binary_expression): Add location info to stack. Use it.
19320 (c_parser_unary_expression): Pass location to
19321 default_function_array_conversion, parser_build_unary_op,
19322 build_indirect_ref, c_parser_postfix_expression_after_primary.
19323 (c_parser_postfix_expression_after_primary): New location argument.
19324 Use it.
19325 (c_parser_expression_conv): Pass location to
19326 default_function_array_conversion.
19327 (c_parser_expr_list): Same.
19328 (c_parser_omp_atomic): Same.
19329 (c_parser_omp_for_loop): Same.
19330 * c-tree.h (struct c_declarator): Add comment to id_loc.
19331 (build_array_declarator): New argument.
19332 * c-decl.c (build_array_declarator): Add location argument.
19333 (grokdeclarator): Set id_loc for cdk_array.
19334 * c-parser.c (c_parser_direct_declarator_inner): Pass location to
19335 build_array_declarator.
19336 * tree.c (build_omp_clause): Add location argument.
19337 * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
19338 (OMP_CLAUSE_LOCATION): New macro.
19339 (struct tree_omp_clause): Add location field.
19340 (build_omp_clause): Add argument.
19341 * cp/pt.c (tsubst_omp_for_iterator): Pass location to
19342 build_omp_clause.
19343 * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
19344 (cp_parser_omp_clause_collapse): Same.
19345 (cp_parser_omp_clause_default): Same.
19346 (cp_parser_omp_clause_if): Same.
19347 (cp_parser_omp_clause_nowait): Same.
19348 (cp_parser_omp_clause_num_threads): Same.
19349 (cp_parser_omp_clause_ordered): Same.
19350 (cp_parser_omp_clause_schedule): Same.
19351 (cp_parser_omp_clause_untied): Same.
19352 (cp_parser_omp_for_loop): Same.
19353 (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
19354 * c-tree.h (c_start_case): Add location argument.
19355 (c_process_expr_stmt): Same.
19356 (c_finish_goto_*): Same.
19357 * tree-parloops.c (initialize_reductions): Pass location to
19358 build_omp_clause.
19359 (create_parallel_loop): Same.
19360 * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
19361 (gfc_trans_omp_reduction_list): Same.
19362 (gfc_trans_omp_clauses): Same.
19363 (gfc_trans_omp_do): Same.
19364 * c-typeck.c (c_finish_goto_label): Same.
19365 (c_finish_goto_ptr): New location argument.
19366 (c_start_case): Same.
19367 (emit_side_effect_warnings): Same.
19368 (c_process_expr_stmt): Same.
19369 (c_finish_stmt_expr): Same.
19370 (c_finish_omp_clauses): Use error_at instead of error.
19371 * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
19372 build_omp_clause.
19373 * c-omp.c (c_split_parallel_clauses): New location argument.
19374 * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
19375 to build_omp_clause.
19376 (convert_local_reference_stmt): Same.
19377 (convert_gimple_call): Same.
19378 * c-common.h (c_split_parallel_clauses): New argument.
19379 * c-parser.c (c_parser_statement_after_labels): Pass location to
19380 c_finish_goto_label.
19381 (c_parser_switch_statement): Pass location to c_start_case.
19382 (c_parser_for_statement): Pass location to c_finish_expr_stmt,
19383 and c_process_expr_stmt.
19384 (c_parser_omp_variable_list): Add location argument.
19385 (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
19386 (c_parser_omp_clause_default): Same.
19387 (c_parser_omp_clause_if): Same.
19388 (c_parser_omp_clause_num_threads): Same.
19389 (-c_parser_omp_clause_ordered): Same.
19390 (c_parser_omp_clause_reduction): Pass location to
19391 c_parser_omp_variable_list.
19392 (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
19393 (c_parser_omp_clause_untied): Same.
19394 (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
19395 (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
19396
19397 * c-tree.h (check_for_loop_decls, undeclared_variable,
19398 build_component_ref, build_array_ref, build_external_ref,
19399 c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
19400 build_conditional_expr, build_compound_expr, c_cast_expr,
19401 build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
19402 c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
19403 argument.
19404 * c-semantics.c (build_stmt): Same.
19405 (build_case_label): Same.
19406 * c-decl.c (c_finish_incomplete_decl): Pass location on down.
19407 (undeclared_variable): New argument.
19408 (make_label): Same.
19409 (lookup_label): Pass location on down.
19410 (define_label): Same.
19411 (finish_decl): Same.
19412 (build_compound_literal): Same.
19413 (finish_struct): Same.
19414 (finish_function): Do not set location here.
19415 (check_for_loop_decls): New argument.
19416 * tree.c (save_expr): Set location.
19417 (build_empty_stmt): New argument.
19418 * tree.h (build_empty_stmt): New argument to build_empty_stmt.
19419 (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
19420 * builtins.c (gimplify_va_arg_expr): Use locations.
19421 (expand_builtin_sync_operation): Same.
19422 * c-typeck.c (build_component_ref): New argument.
19423 (build_array_ref): Same.
19424 (build_external_ref): Same.
19425 (c_expr_sizeof_expr): Same.
19426 (c_expr_sizeof_type): Same.
19427 (parser_build_unary_op): Same.
19428 (build_conditional_expr): Same.
19429 (build_compound_expr): Pass location on down.
19430 (build_compound_expr): New argument.
19431 (build_c_cast): Same.
19432 (c_cast_expr): Same.
19433 (build_asm_expr): Same.
19434 (c_finish_return): Same.
19435 (c_process_expr_stmt): Pass location on down.
19436 (c_finish_stmt_expr): New argument.
19437 (push_clenaup): Same.
19438 (c_finish_omp_parallel): Same.
19439 (c_finish_omp_task): Same.
19440 * gimplify.c (gimplify_call_expr): Pass location on down.
19441 * c-omp.c (c_finish_omp_master): New argument.
19442 (c_finish_omp_critical): Same.
19443 (c_finish_omp_ordered): Same.
19444 (c_finish_omp_barrier): Same.
19445 (-c_finish_omp_taskwait): Same.
19446 (c_finish_omp_atomic): Same.
19447 (c_finish_omp_flush): Same.
19448 * tree-inline.c (copy_tree_body_r): Pass location on down.
19449 (inline_forbidden_p): Remove use of input_location.
19450 * c-gimplify.c (c_build_bind_expr): New argument.
19451 * c-common.c (c_common_truthvalue_conversion): Pass location on down.
19452 (c_sizeof_or_alignof_type): New argument.
19453 (c_alignof_expr): Same.
19454 (build_va_arg): Same.
19455 (c_add_case_label): Same.
19456 * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
19457 c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
19458 c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
19459 c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
19460 c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
19461 c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
19462 New argument.
19463 * stub-objc.c (objc_build_selector_expr): Same.
19464 (objc_build_throw_stmt): Same.
19465 * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
19466 (c_parser_initelt): Same.
19467 (c_parser_compound_statement): Same.
19468 (c_parser_compound_statement_nostart): Same.
19469 (c_parser_label): Same.
19470 (c_parser_statement_after_labels): Same.
19471 (c_parser_if_body): Same.
19472 (c_parser_else_body): Same.
19473 (c_parser_if_statement): Same.
19474 (c_parser_switch_statement): Same.
19475 (c_parser_while_statement): Same.
19476 (c_parser_do_statement): Same.
19477 (c_parser_for_statement): Same.
19478 (c_parser_asm_statement): Same.
19479 (c_parser_conditional_expression): Same.
19480 (c_parser_binary_expression): Same.
19481 (c_parser_cast_expression): Same.
19482 (c_parser_unary_expression): Same.
19483 (c_parser_sizeof_expression): Same.
19484 (c_parser_alignof_expression): Same.
19485 (c_parser_postfix_expression): Same.
19486 (c_parser_expression): Same.
19487 (c_parser_objc_receiver): Same.
19488 (c_parser_omp_variable_list): Same.
19489 (c_parser_omp_structured_block): Same.
19490 (c_parser_omp_atomic): New argument.
19491 (c_parser_omp_barrier): Same.
19492 (c_parser_omp_critical): Same.
19493 (c_parser_omp_flush): Pass location on down.
19494 (c_parser_omp_for_loop): New argument.
19495 (c_parser_omp_for): Same.
19496 (c_parser_omp_master): Same.
19497 (c_parser_omp_ordered): Same.
19498 (c_parser_omp_sections_scope): Same.
19499 (c_parser_omp_sections): Same.
19500 (c_parser_omp_parallel): Same.
19501 (c_parser_omp_single): Same.
19502 (c_parser_omp_task): Same.
19503 (c_parser_omp_taskwait): Pass location on down.
19504 (c_parser_omp_construct): Same.
19505 (c_parser_omp_threadprivate): Same.
19506 * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
19507 builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
19508 tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
19509 c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
19510 c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
19511 emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
19512 rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
19513 tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
19514 config/i386/i386.c, stmt.c:
19515 Add location argument to the following function definitions and/or
19516 function calls: build_decl, objcp_start_struct, objcp_finish_struct,
19517 start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
19518 cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
19519 build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
19520 do_case, c_finish_bc_stmt, build_compound_literal,
19521 build_function_call.
19522 * c-decl.c (build_compound_literal): Add location argument.
19523 Make all diagnostic calls use location.
19524 (start_struct): Same.
19525 (finish_struct): Same.
19526 (start_enum): Same.
19527 (build_enumerator): Same.
19528 (start_function): Same.
19529 (grokdeclarator): Make all diagnostic calls use location.
19530 (store_parm_decls_oldstyle): Same.
19531 * c-typeck.c (build_function_call): Add location argument.
19532 Make all diagnostic calls use location.
19533 (do_case): Same.
19534 (c_finish_bc_stmt): Same.
19535 * tree-nested.c (get_trampoline_type): Add argument.
19536 Pass location to build_decl.
19537 (lookup_tramp_for_decl): Pass location to get_trampoline_type.
19538 * rtl.h (RTL_LOCATION): New.
19539 * c-common.c (c_add_case_label): Add location argument.
19540 Make all diagnostic calls use location.
19541 * c-common.h: Add location argument to make_fname_decl, do_case,
19542 c_add_case_label, build_function_call, resolve_overloaded_builtin.
19543 * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
19544 Set it appropriately for every case. Pass enum_loc to start_enum
19545 call. Pass value_loc first to build_enumerator. Pass enum_loc to
19546 parser_xref_tag.
19547 (c_parser_struct_or_union_specifier): Save location. Use it for
19548 start_struct, finish_struct, and parser_xref_tag.
19549
19550 2009-06-12 Ian Lance Taylor <iant@google.com>
19551
19552 * fold-const.c (fold_unary): Rename local variable and to and_expr.
19553
19554 * c-opts.c (c_common_handle_option): For -Wc++-compat set
19555 cpp_opts->warn_cxx_operator_names.
19556
19557 2009-06-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
19558
19559 PR tree-opt/38865
19560 * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
19561 is returns NULL and OP is a VCE, look through the VCE.
19562
19563 2009-06-12 Ian Lance Taylor <iant@google.com>
19564
19565 PR bootstrap/40430
19566 * collect2.c (main): Use CONST_CAST2 in code inside #if
19567 LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
19568
19569 2009-06-12 Joey Ye <joey.ye@intel.com>
19570
19571 PR middle-end/39146
19572 * cfgexpand.c (get_decl_align_unit): Update
19573 max_used_stack_slot_alignment with align instead of
19574 stack_alignment_needed.
19575
19576 * function.c (assign_stack_local_1): Update
19577 max_used_stack_slot_alignment with alignment_in_bits instead
19578 of stack_alignment_needed.
19579 (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
19580 here.
19581
19582 2009-06-12 Jakub Jelinek <jakub@redhat.com>
19583
19584 * dwarf2out.c (last_var_location_insn): New variable.
19585 (dwarf2out_end_epilogue): Clear last_var_location_insn.
19586 (dwarf2out_var_location): Don't record anything after last real
19587 insn. Only change labels if there were any real instructions
19588 in between last note and this one, or if changed sections.
19589
19590 2009-06-11 Richard Henderson <rth@redhat.com>
19591
19592 * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
19593 note when storing the frame pointer in a register.
19594 (FRP): Don't redefine to nothing for epilogue.
19595 (alpha_expand_epilogue): Mark register and sp restores.
19596 (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
19597
19598 * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
19599 when gen_lowpart is needed.
19600
19601 2009-06-11 Richard Henderson <rth@redhat.com>
19602
19603 * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
19604
19605 * dwarf2out.c (need_data_align_sf_opcode): New.
19606 (div_data_align): Move earlier.
19607 (def_cfa_1, reg_save): Use it.
19608
19609 2009-06-11 H.J. Lu <hongjiu.lu@intel.com>
19610
19611 * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
19612 (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
19613 (ix86_handle_option): Handle OPT_mcrc32.
19614 (ix86_target_string): Add -mcrc32.
19615 (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
19616
19617 * config/i386/i386.h (TARGET_CRC32): New.
19618
19619 * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
19620 (sse4_2_crc32di): Likewise.
19621
19622 * config/i386/i386.opt (mcrc32): New.
19623
19624 * doc/invoke.texi: Document -mcrc32.
19625
19626 2009-06-11 Richard Henderson <rth@redhat.com>
19627
19628 * common.opt (gdwarf-): Accept a version number.
19629 * doc/invoke.texi (gdwarf-): Update docs.
19630 * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
19631 * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
19632 version level, and record it.
19633
19634 * dwarf2.h (DW_CIE_VERSION): Remove.
19635 * dwarf2out.c (DWARF_VERSION): Remove.
19636 (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
19637 (output_call_frame_info): Use CIE version 3 for dwarf3,
19638 or if the return register column is out of range for version 1.
19639 (dwarf_stack_op_name): Add all dwarf3 values.
19640 (DEBUG_PUBTYPES_SECTION): New.
19641 (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
19642 encoding change for dwarf3.
19643 (output_die) [dw_val_class_die_ref]: Likewise.
19644 (output_compilation_unit_header): Emit correct version for dwarf3.
19645 (output_line_info): Likewise.
19646 (output_pubnames): Update for DWARF_VERSION removal.
19647 (output_aranges): Likewise.
19648 (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
19649 (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
19650 (dwarf2out_finish): Likewise.
19651
19652 2009-06-11 David Daney <ddaney@caviumnetworks.com>
19653
19654 * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
19655 in r148403.
19656
19657 2009-06-11 David Daney <ddaney@caviumnetworks.com>
19658
19659 PR c/39252
19660 * doc/extend.texi ( __builtin_unreachable): Document new builtin.
19661 * builtins.c (expand_builtin_unreachable): New function.
19662 (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
19663 * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
19664 * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
19665 successors.
19666 * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
19667 searching for missing barriers.
19668
19669 2009-06-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
19670
19671 * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
19672 when -fprofile-generate* was passed.
19673 * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
19674
19675 2009-06-11 Anthony Green <green@moxielogic.com>
19676
19677 * config/moxie/moxie.md: Define length attribute for all instructions.
19678 (rCC): Define.
19679 (*b<cond:code>): Support limited branch ranges for new PC-relative
19680 branch instructions.
19681 * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
19682
19683 2009-06-11 Jakub Jelinek <jakub@redhat.com>
19684
19685 * config/i386/i386.c (min_insn_size): Use get_attr_length
19686 for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
19687 For __asm return 0.
19688
19689 * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
19690 instead of emit_insn_before.
19691
19692 2009-06-10 Ian Lance Taylor <iant@google.com>
19693
19694 PR bootstrap/40408
19695 * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
19696 GIMPLE_SWITCH.
19697
19698 2009-06-10 Revital Eres <eres@il.ibm.com>
19699
19700 * passes.c (init_optimization_passes): Reschedule
19701 predictive-commoning pass before complete unroll pass.
19702
19703 2009-06-10 Martin Jambor <mjambor@suse.cz>
19704
19705 * cgraph.c (cgraph_node_can_be_local_p): New function.
19706 (cgraph_make_node_local): New function.
19707 * cgraph.h (cgraph_node_can_be_local_p): Declare.
19708 (cgraph_make_node_local): Declare.
19709
19710 2009-06-10 Nathan Froyd <froydnj@codesourcery.com>
19711
19712 * tree.h (tree_base): Add packed_flag and user_align fields.
19713 Decrease size of spare field.
19714 (TYPE_USER_ALIGN): Use user_align from tree_base.
19715 (DECL_USER_ALIGN): Likewise.
19716 (TYPE_PACKED): Use packed_flag from tree_base.
19717 (DECL_PACKED): Likewise.
19718 (tree_type): Delete packed_flag and user_align fields. Widen
19719 precision field. Widen mode field and shuffle fields to align
19720 mode on an 8-bit boundary.
19721 (tree_decl_common): Delete decl_flag_1 and user_align fields.
19722 Renumber decl_flag_* fields. Fix comments. Widen
19723 decl_common_unused field.
19724 (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
19725 (DECL_EXTERNAL): Likewise.
19726 (DECL_BIT_FIELD): Likewise.
19727 (DECL_NONADDRESSABLE_P): Likewise.
19728 (TYPE_DECL_SUPRESS_DEBUG): Likewise.
19729 * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
19730
19731 2009-06-10 Ian Lance Taylor <iant@google.com>
19732
19733 * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
19734 (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
19735 (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
19736 (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
19737 (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
19738 DEF_VEC_ALLOC_FUNC_P.
19739 (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
19740 (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
19741 DEF_VEC_ALLOC_FUNC_O.
19742 (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
19743 (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
19744 DEF_VEC_ALLOC_FUNC_I.
19745 (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
19746 (vec_stack_p_reserve_exact_1): Declare.
19747 (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
19748 (vec_stack_free): Declare.
19749 (VEC_stack_alloc): Define.
19750 (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
19751 (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
19752 (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
19753 * vec.c (void_p): New type. Call DEF_VEC_P and DEF_VEC_ALLOC_P
19754 for void_p.
19755 (stack_vecs): New static variable.
19756 (vec_stack_p_reserve_exact_1): New function.
19757 (vec_stack_o_reserve_1): New static function.
19758 (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
19759 (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
19760 (vec_stack_free): New function.
19761 * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
19762 (VEC_df_ref_stack_alloc): Define.
19763 (df_mw_hardreg_ptr): New type. Use DEF_VEC_P and
19764 DEF_VEC_ALLOC_P_STACK.
19765 (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
19766 (struct df_collection_rec): Change _vec fields to VEC. Remove
19767 _use fields.
19768 (df_free_collection_rec): Adjust for new fields.
19769 (df_insn_rescan): Use new df_collection_rec fields.
19770 (df_notes_rescan, df_canonize_collection_rec): Likewise.
19771 (df_ref_create_structure, df_ref_record): Likewise.
19772 (df_get_conditional_uses, df_get_call_refs): Likewise.
19773 (df_insn_refs_collect, df_bb_refs_collect): Likewise.
19774 (df_bb_refs_record, df_record_entry_block_defs): Likewise.
19775 (df_record_exit_block_uses, df_bb_verify): Likewise.
19776 (df_swap_refs): Change ref_vec parameter to VEC. Change all callers.
19777 (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
19778 Remove count parameter. Change return type to void. Change all
19779 callers.
19780 (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
19781 Remove count parameter. Change return type to void. Change all
19782 callers.
19783 (df_install_refs): Change old_vec parameter to VEC. Remove count
19784 parameter. Change all callers.
19785 (df_install_mws): Change old_vec parameter to VEC. Remove count
19786 parameter. Change all callers.
19787 (df_refs_verify): Change new_rec parameter to VEC. Change call
19788 callers.
19789 (df_mws_verify): Likewise.
19790
19791 2009-06-10 Alexandre Oliva <aoliva@redhat.com>
19792
19793 * gcc.c (compare_files): Cast munmap argumento to caddr_t.
19794
19795 2009-06-10 H.J. Lu <hongjiu.lu@intel.com>
19796
19797 * doc/extend.texi: Add description for __builtin_ia32_crc32di.
19798
19799 2009-06-10 Anthony Green <green@moxielogic.com>
19800
19801 * config/moxie/crti.asm: New file.
19802 * config/moxie/crtn.asm: New file.
19803 * config/moxie/moxie.c: New file.
19804 * config/moxie/moxie.h: New file.
19805 * config/moxie/sfp-machine.h: New file.
19806 * config/moxie/moxie-protos.h: New file.
19807 * config/moxie/t-moxie: Created.
19808 * config/moxie/t-moxie-softfp: Created.
19809 * config/moxie/moxie.md: Created.
19810 * config/moxie/constraints.md: Created.
19811 * config.gcc: Add moxie support.
19812 * doc/md.texi (Machine Constraints): Add moxie constraints.
19813 * doc/contrib.texi (Contributors): Mention moxie port.
19814 * doc/install.texi (Specific): Mention the moxie port.
19815
19816 2009-06-09 Ian Lance Taylor <iant@google.com>
19817
19818 * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
19819 compiling with C++.
19820 * optabs.c (optab_table): Only use designated initializers if
19821 HAVE_DESIGNATED_INITIALIZERS is defined.
19822 (convert_optab_table): Likewise.
19823 (init_optabs): Always call init_insn_codes if
19824 HAVE_DESIGNATED_INITIALIZERS is not defined.
19825
19826 2009-06-09 Ian Lance Taylor <iant@google.com>
19827
19828 * targhooks.c (default_builtin_vectorized_function): Change fn
19829 parameter to unsigned int.
19830 (default_builtin_vectorized_conversion): Change code parameter to
19831 unsigned int.
19832 (default_builtin_reciprocal): Change fn parameter to unsigned int.
19833 * targhooks.h: Update declarations.
19834 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
19835 parameter to unsigned int.
19836
19837 * c-typeck.c (comptypes_check_enum_int): New static function.
19838 (comptypes_internal): Add enum_and_int_p parameter. Change all
19839 callers.
19840 (comp_target_types): Add location parameter. Change all callers.
19841 (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
19842 Change all callers.
19843 (function_types_compatible_p, type_lists_compatible_p): Likewise.
19844 (build_conditional_expr): Add colon_loc parameter. Change all
19845 callers.
19846 (convert_for_assignment): Add location parameter. Change all callers.
19847 * c-parser.c (c_parser_conditional_expression): Pass location of
19848 colon to build_conditional_expr.
19849 * c-tree.h (build_conditional_expr): Update declaration.
19850
19851 2009-06-09 Sebastian Pop <sebastian.pop@amd.com>
19852
19853 * graphite.c: Revert previous patch.
19854
19855 2009-06-09 Sebastian Pop <sebastian.pop@amd.com>
19856
19857 PR bootstrap/40103
19858 * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
19859
19860 2009-06-09 Ghassan Shobaki <ghassan.shobaki@amd.com>
19861
19862 * tree-ssa-loop-prefetch.c
19863 (loop_prefetch_arrays): Fixed a portability problem in printf format
19864 string.
19865
19866 2009-06-09 Martin Jambor <mjambor@suse.cz>
19867
19868 PR tree-optimization/40351
19869 * tree-sra.c (propagate_subacesses_accross_link): Check that a
19870 refrence to a potential artifical subaccess can be constructed.
19871
19872 2009-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
19873
19874 * config/sh/sh-protos.h (sh_optimization_options): Declare.
19875 (sh_override_options): Likewise.
19876 * config/sh/sh.c: Include params.h.
19877 (sh_optimization_options): New.
19878 (sh_override_options): Likewise.
19879 * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
19880 (OVERRIDE_OPTIONS): Use sh_override_options.
19881
19882 2009-06-08 Jakub Jelinek <jakub@redhat.com>
19883
19884 * dwarf2out.c (emit_cfa_remember): New variable.
19885 (add_fde_cfi): If emit_cfa_remember, recurse to add
19886 DW_CFA_remember_state first.
19887 (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
19888 instead just set emit_cfa_remember.
19889
19890 2009-06-08 Jan Hubicka <jh@suse.cz>
19891
19892 PR debug/40126
19893 * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
19894
19895 2009-06-08 Jan Hubicka <jh@suse.cz>
19896
19897 PR middle-end/39834
19898 * cgraphunit.c (save_inline_function_body): Do not copy transform
19899 hooks for saved inline bodies.
19900 * ipa-passes.c (do_per_function): Do not add the hoks multiple times
19901 for given function.
19902
19903 2009-06-08 Adam Nemet <anemet@caviumnetworks.com>
19904
19905 * jump.c (returnjump_p): Handle delayed branches. Add missing
19906 function comment.
19907
19908 2009-06-08 Jan Hubicka <jh@suse.cz>
19909
19910 PR middle-end/40102
19911 * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
19912 original node might've been modified.
19913 * tree-inline.c (copy_bb): Do not assume that all clones are the same.
19914
19915 2009-06-08 Jakub Jelinek <jakub@redhat.com>
19916
19917 * tree-object-size.c (addr_object_size): Add OSI argument.
19918 Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
19919 (compute_builtin_object_size, expr_object_size): Adjust callers.
19920 (plus_stmt_object_size): Call addr_object_size instead of
19921 compute_builtin_object_size.
19922
19923 2009-06-08 Ghassan Shobaki <ghassan.shobaki@amd.com>
19924 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
19925
19926 * tree-ssa-loop-prefetch.c
19927 (gather_memory_references): Introduced a counter for the number of
19928 memory references.
19929 (anything_to_prefetch_p): Introduced a counter for the number of
19930 prefetches.
19931 (is_loop_prefetching_profitable): New function with a cost model
19932 for prefetching.
19933 (loop_prefetch_arrays): Use the new cost model to determine if
19934 prefetching is profitable.
19935 * params.def (MIN_INSN_TO_PREFETCH_RATIO,
19936 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
19937 * params.h (MIN_INSN_TO_PREFETCH_RATIO,
19938 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
19939 * doc/invoke.texi (MIN_INSN_TO_PREFETCT_RATIO,
19940 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
19941
19942 2009-06-08 Michael Matz <matz@suse.de>
19943
19944 PR debug/40012
19945 * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
19946 partitions use the same.
19947 (expand_one_var): Deal with DECL_RTL sometimes begin set also
19948 for basevars of SSA_NAMEs.
19949 (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
19950 to not expand them twice.
19951 (gimple_expand_cfg): Clear DECL_RTL for those decls that have
19952 multiple places.
19953
19954 2009-06-08 Alexandre Oliva <aoliva@redhat.com>
19955
19956 * common.opt (fcompare-debug=, fcompare-debug-second): New.
19957 (fdump-final-insns=, gtoggle): New.
19958 * doc/invoke.texi: Document them.
19959 * final.c (rest_of_clean_state): Dump final insn stream.
19960 * gcc.c (invoke_as): Hook in -fcompare-debug.
19961 (static_spec_functions): Add compare-debug-dump-opt,
19962 compare-debug-self-opt and compare-debug-auxbase-opt.
19963 (compare_debug, compare_debug_second, compare_debug_opt): New.
19964 (switches_debug_check, n_switches_debug_check): New.
19965 (debug_auxbase_opt, debug_check_temp_file): New.
19966 (process_command): Handle -fno-compare-debug, -fcompare-debug and
19967 -fcompare-debug=*.
19968 (do_self_spec): Handle arguments after switches.
19969 (do_spec_1): Add .gk extension to temp file basenames for compare.
19970 (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
19971 (cc1_options): Use it instead of normal auxbase computation for
19972 the second compare-debug compilation.
19973 (compare_files): New.
19974 (main): Set up and implement compare debug mode.
19975 (compare_debug_dump_opt_spec_function): New.
19976 (compare_debug_self_opt_spec_function): New.
19977 (compare_debug_auxbase_opt_spec_function): New.
19978 * toplev.c (process_options): Handle flag_gtoggle,
19979 flag_dump_final_insns.
19980 * coverage.c (coverage_begin_output): Don't overwrite .gcno file
19981 during -fcompare-debug-second compilation.
19982
19983 2009-06-07 Ian Lance Taylor <iant@google.com>
19984
19985 * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
19986 * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
19987
19988 * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
19989 with no default node. Change warning with %H to warning_at.
19990 Don't clear warn_switch around case checking.
19991 * doc/invoke.texi (Warning Options): Clarify distinction between
19992 -Wswitch and -Wswitch-enum.
19993
19994 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19995
19996 * tree-pass.h (TODO_update_ssa_any): Document internal use only.
19997
19998 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19999
20000 * gbl-ctors.h: Add header guard.
20001
20002 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20003
20004 * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
20005 sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
20006 vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
20007 vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
20008 prototypes for removed functions.
20009 (expressions_equal_p): Move to ...
20010 * tree-ssa-sccvn.h: ... here and ...
20011 * matrix-reorg.c: ... adjust includes.
20012
20013 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20014
20015 * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
20016
20017 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20018
20019 * c-decl.c (finish_decl): Use bool for variable was_incomplete.
20020 (finish_function): Remove erroneous whitespace.
20021
20022 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20023
20024 * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
20025 (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
20026
20027 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20028
20029 * errors.c (internal_error): Commentary typo fix.
20030 * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
20031 * tree-ssa-pre.c: Ditto.
20032
20033 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20034
20035 * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
20036 them is supposed to hold actual statements.
20037
20038 2009-06-06 Ian Lance Taylor <iant@google.com>
20039
20040 * doc/extend.texi (Attribute Syntax): Document that C++ labels on
20041 empty statements can now have attributes.
20042
20043 2009-06-05 Shujing Zhao <pearly.zhao@oracle.com>
20044
20045 * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
20046 * config/mips/mips.md: Ditto.
20047
20048 2009-06-05 Nathan Froyd <froydnj@codesourcery.com>
20049
20050 * config/rs6000/eabi.asm (__eabi_convert): Don't define if
20051 _RELOCATABLE.
20052 (__eabi_uconvert): Likewise.
20053
20054 2009-06-05 Nathan Froyd <froydnj@codesourcery.com>
20055
20056 * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
20057 CFI_* definitions with IN_GCC.
20058
20059 2009-06-05 David Edelsohn <edelsohn@gnu.org>
20060
20061 * xcoffout.h (xcoffout_source_line): Update prototype.
20062
20063 2009-06-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20064
20065 * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
20066 mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
20067
20068 2009-06-05 Jakub Jelinek <jakub@redhat.com>
20069
20070 PR middle-end/40340
20071 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
20072 inlined_function_outer_scope_p blocks for artificial inlines
20073 even at -g0/-g1.
20074 * tree.c (tree_nonartificial_location): Rewrite using
20075 block_nonartificial_location.
20076
20077 2009-06-05 Revital Eres <eres@il.ibm.com>
20078 Leehod Baruch <leehod@il.ibm.com>
20079
20080 * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
20081 (expand_expr_real_1): Remove comment.
20082 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
20083 Vectorize misaligned access when the target supports it.
20084 (vect_supportable_dr_alignment): Check for unaligned access support.
20085 * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
20086 and remove asset.
20087
20088 2009-06-05 Julian Brown <julian@codesourcery.com>
20089
20090 * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
20091 * config/arm/ieee754-sf.S (cmpsf2): Likewise.
20092
20093 2009-06-05 Richard Guenther <rguenther@suse.de>
20094
20095 PR bootstrap/40350
20096 * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
20097 as possibly unused.
20098
20099 2009-06-05 Jakub Jelinek <jakub@redhat.com>
20100
20101 * config/s390/s390.c (global_not_special_regno_p): New static inline.
20102 (save_gprs): Don't tell unwinder when a global register is saved.
20103 (s390_emit_epilogue): Emit needed epilogue unwind info.
20104
20105 2009-06-05 Alexandre Oliva <aoliva@redhat.com>
20106
20107 * dwarf2out.c (deferred_asm_name): New.
20108 (add_name_and_src_coords_attributes): Defer creation of
20109 DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
20110 computed yet.
20111 (move_linkage_attr): New.
20112 (dwarf2out_finish): Revisit deferrals and emit attributes at the
20113 right place.
20114
20115 2009-06-05 Alexandre Oliva <aoliva@redhat.com>
20116
20117 * tree-nested.c (finalize_nesting_tree_1): Declare the
20118 frame_decl in the binding tree.
20119
20120 2009-06-04 Cary Coutant <ccoutant@google.com>
20121
20122 * basic-block.h (struct basic_block_def): Add discriminator field.
20123 * dbxout.c (dbxout_source_line): Add new parameter. Change all
20124 callers.
20125 * debug.c (do_nothing_debug_hooks): Add additional entry.
20126 (debug_nothing_int_charstar_int): New function.
20127 * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
20128 (debug_nothing_int_charstar_int): New declaration.
20129 * dwarf2out.c (dwarf2out_source_line): Add new parameter. Write
20130 discriminator value in .loc directive.
20131 * final.c (last_discriminator): New variable.
20132 (discriminator): New variable.
20133 (final_start_function): Initialize above variables, pass current
20134 discriminator to debug hook.
20135 (notice_source_line): Check for discriminator change.
20136 * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
20137 * sdbout.c (sdbout_source_line): New parameter.
20138 * tree-cfg.c (struct locus_discrim_map): New structure type.
20139 (discriminator_per_locus): New hash table.
20140 (build_gimple_cfg): Allocate and free discriminator hash table.
20141 (make_edges): Call assign_discriminator.
20142 (locus_map_hash): New function.
20143 (locus_map_eq): New function.
20144 (next_discriminator_for_locus): New function.
20145 (same_line_p): New function.
20146 (assign_discriminator): New function.
20147 (make_cond_expr_edges): Call assign_discriminator.
20148 (make_gimple_switch_edges): Likewise.
20149 (first_non_label_stmt): New function.
20150 * vmsdbgout.c (vmsdbgout_source_line): Add new parameter. Change
20151 all callers.
20152 * xcoffout.c (xcoffout_source_line): Add new parameter.
20153
20154 * configure.ac (gcc_cv_as_discriminator): New configury check for
20155 gas support for discriminator.
20156 * configure: Regenerate.
20157 * config.in: Regenerate.
20158
20159 2009-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20160
20161 * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
20162 val after checking for integers.
20163
20164 2009-06-04 Uros Bizjak <ubizjak@gmail.com>
20165
20166 * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
20167 X64_REGPARM_MAX.
20168 (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
20169 (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
20170 (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
20171 * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
20172 X64_REGPARM_MAX. Use X86_64_MS_SSE_REGPARM_MAX instead of
20173 X64_SSE_REGPARM_MAX.
20174 * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
20175 X64_SSE_REGPARM_MAX.
20176
20177 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
20178
20179 * gcc.c (report_times_to_file): New.
20180 (execute): Implement it.
20181 (process_command): Support -time=.
20182 * doc/invoke.texi: Document it.
20183
20184 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
20185
20186 * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
20187 that have value exprs.
20188
20189 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
20190
20191 * dwarf2asm.c (dw2_force_const_mem): Defer creation of
20192 declarations for constants until...
20193 (dw2_output_indirect_constant_1): ... this point.
20194
20195 2009-06-04 Richard Earnshaw <rearnsha@arm.com>
20196
20197 PR target/10242
20198 * arm.md (arm_addsi3): Don't try to split an add with an
20199 eliminable register until after reload has completed.
20200
20201 2009-06-03 Ian Lance Taylor <iant@google.com>
20202
20203 * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
20204 * genattrtab.c (write_length_unit_log): Likewise.
20205 * genchecksum.c (dosum): Likewise.
20206 * gengtype.c (write_rtx_next): Likewise.
20207 (finish_root_table, write_roots): Likewise.
20208 * gimple.c (gimple_ops_offset_): Likewise.
20209 * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
20210 * config/arc/arc.c (arc_attribute_table): Likewise.
20211 * config/arm/arm.c (arm_attribute_table): Likewise.
20212 * config/avr/avr.c (avr_attribute_table): Likewise.
20213 * config/crx/crx.c (crx_attribute_table): Likewise.
20214 * config/m32r/m32r.c (m32r_attribute_table): Likewise.
20215 * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
20216 * config/mcore/mcore.c (mcore_attribute_table): Likewise.
20217 * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
20218 * config/sh/sh.c (sh_attribute_table): Likewise.
20219 * config/sparc/sparc.c (sparc_attribute_table): Likewise.
20220 * config/spu/spu.c (spu_attribute_table): Likewise.
20221 * config/v850/v850.c (v850_attribute_table): Likewise.
20222
20223 * config/alpha/alpha.c (vms_attribute_table): Make static.
20224 * config/bfin/bfin.c (bfin_attribute_table): Likewise.
20225 * config/h8300/h8300.c (h8300_attribute_table): Likewise.
20226 * config/mips/mips.c (mips_attribute_table): Likewise.
20227
20228 * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
20229 $(SYSTEM_H).
20230 (cc1-checksum.o): Likewise.
20231
20232 2009-06-03 Steve Ellcey <sje@cup.hp.com>
20233
20234 * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
20235
20236 2009-06-03 Jakub Jelinek <jakub@redhat.com>
20237
20238 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
20239 insn if it is changing sp. Use gen_add3_insn instead of
20240 conditionally gen_addsi3 and gen_adddi3.
20241 (offset_below_red_zone_p): New static inline function.
20242 (rs6000_emit_epilogue): Emit needed epilogue unwind info.
20243 Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
20244 * config/rs6000/ppc-asm.h: Include auto-host.h.
20245 (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
20246 CFI_RESTORE): Define.
20247 * config/rs6000/crtresxgpr.asm: Add unwind info.
20248 * config/rs6000/crtresxfpr.asm: Likewise.
20249 * config/rs6000/crtresgpr.asm: Likewise.
20250 * config/rs6000/crtresfpr.asm: Likewise.
20251 * config/rs6000/crtsavgpr.asm: Likewise.
20252 * config/rs6000/crtsavfpr.asm: Likewise.
20253
20254 * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
20255 argument of DWARF2_FRAME_REG_OUT macros.
20256
20257 2009-06-03 Julian Brown <julian@codesourcery.com>
20258
20259 * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
20260 words or less (including TImode) in core registers.
20261
20262 2009-06-03 Richard Guenther <rguenther@suse.de>
20263
20264 PR middle-end/40328
20265 * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
20266
20267 2009-06-03 Andrey Belevantsev <abel@ispras.ru>
20268
20269 * statistics.c (statistics_counter_event): Do not record event
20270 in pass dump if its number == -1.
20271 (curr_statistics_hash): Add assert that we never get passes
20272 with static number == -1.
20273
20274 2009-06-03 Richard Guenther <rguenther@suse.de>
20275 Andrey Belevantsev <abel@ispras.ru>
20276
20277 * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
20278 non-BLKmode arrays addressable.
20279
20280 2009-06-03 Maxim Kuvyrkov <maxim@codesourcery.com>
20281
20282 * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
20283 * config/m68k/m68k.h: ... here.
20284
20285 2009-06-03 Martin Jambor <mjambor@suse.cz>
20286
20287 PR tree-optimization/40323
20288 * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
20289 assignment.
20290
20291 2009-06-03 Richard Guenther <rguenther@suse.de>
20292
20293 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
20294 consistently.
20295
20296 2009-06-03 Shujing Zhao <pearly.zhao@oracle.com>
20297
20298 * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
20299 JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
20300 JUMP_TABLE_DATA_P where applicable.
20301 * config/sh/sh.c: Ditto.
20302 * config/sh/sh.h: Ditto.
20303 * config/sh/sh.md: Ditto.
20304 * config/sh/symbian.c: Ditto.
20305
20306 2009-06-03 Uros Bizjak <ubizjak@gmail.com>
20307
20308 * config/i386/driver-i386.c (describe_cache): Optimize
20309 concatenation of strings. Use snprintf instead of sprintf.
20310 (host_detect_local_cpu): Ditto. Ignore -march and -mtune for native
20311 target when not compiling with GCC.
20312
20313 2009-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
20314
20315 * config/sh/sh.c: Revert last change.
20316 (sh_expand_epilogue): Emit a blockage insn before the frame
20317 pointer adjustment unconditionally.
20318
20319 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
20320
20321 * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
20322 * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
20323 * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
20324 * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
20325 to COLLECT_GCC_OPTIONS.
20326
20327 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
20328
20329 * collect2.c (target_system_root): New variable.
20330 (main): Handle --sysroot=.
20331 (ignore_library): Strip the sysroot from the library path.
20332
20333 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
20334
20335 * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
20336 (collect2.o): Depend on collect2-aix.h.
20337 (collect2-aix.o): New rule.
20338 * collect2-aix.h: New file.
20339 * collect2-aix.c: Likewise.
20340 * collect2.c: Include collect2-aix.h. Don't undefine
20341 OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
20342 Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
20343 Use TARGET_AIX_VERSION instead of _AIX51.
20344 * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
20345 * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
20346 * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
20347 * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
20348 * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
20349
20350 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
20351
20352 * collect2.c (ignore_library): Avoid premature post-increment
20353 and null deference.
20354
20355 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
20356
20357 * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
20358 * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
20359 !CROSS_DIRECTORY_STRUCTURE alternative and use it for
20360 CROSS_DIRECTORY_STRUCTURE too.
20361 (LINK_LIBG_SPEC): Likewise.
20362 (LIB_SPEC): Add %R to sysroot paths.
20363 * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
20364 (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
20365 * config/rs6000/aix51.h: As for aix43.h.
20366 * config/rs6000/aix52.h: Likewise.
20367 * config/rs6000/aix53.h: Likewise.
20368 * config/rs6000/aix61.h: Likewise.
20369 * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
20370 to the beginning of sysroot paths.
20371
20372 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
20373
20374 * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
20375 INSN_LISTs that are out of the REG_NOTE range.
20376
20377 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
20378
20379 * loop-unroll.c (struct iv_to_split): Add pointer to next.
20380 (struct var_to_expand): Likewise.
20381 (struct opt_info): Add head and tail for linked lists of the above.
20382 (analyze_insn_to_expand_var): Initialize next.
20383 (analyze_iv_to_split_insn): Likewise.
20384 (analyze_insns_in_loop): Create linked lists.
20385 (allocate_basic_variable): Simplify for use without hash table.
20386 (insert_var_expansion_initialization): Likewise, make it type-safer.
20387 (combine_var_copies_in_loop_exit): Likewise.
20388 (apply_opt_in_copies): Walk lists rather than hash tables.
20389 (release_var_copies): Simplified and inlined by hand into...
20390 (free_opt_info): ... this function.
20391
20392 2009-06-02 Richard Guenther <rguenther@suse.de>
20393
20394 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
20395 for field decls.
20396
20397 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
20398
20399 * cfgexpand.c (gimple_expand_cfg): Discard the source location
20400 only for builtins that are not overridden.
20401
20402 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
20403
20404 * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
20405 label string.
20406
20407 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
20408
20409 * df-core.c (df_ref_debug): Honor -fdump-noaddr.
20410
20411 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
20412
20413 * combine.c (move_deaths): Compare LUIDs within the same BB only.
20414
20415 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
20416
20417 * common.opt (fdump-unnumbered-links): New.
20418 * doc/invoke.texi (-fdump-unnumbered-links): Document it.
20419 * print-rtl.c (flag_dump_unnumbered_links): New.
20420 (print_rtx): Test it.
20421
20422 2009-06-02 Richard Earnshaw <rearnsha@arm.com>
20423
20424 * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
20425 push/pop multiple to 8-byte alignment.
20426
20427 2009-06-01 Jakub Jelinek <jakub@redhat.com>
20428
20429 * config/i386/i386.c (queued_cfa_restores): New static variable.
20430 (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
20431 functions.
20432 (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
20433 (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
20434 Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
20435 Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
20436 note unconditionally.
20437 (ix86_emit_restore_regs_using_mov): Likewise.
20438 (ix86_emit_restore_sse_regs_using_mov): Likewise.
20439 (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
20440 it through to ix86_emit_restore_reg_using_pop.
20441 (ix86_emit_leave): Add RED_OFFSET argument. Call
20442 ix86_add_queued_cfa_restore_notes. Call ix86_add_cfa_restore_note
20443 instead of adding REG_CFA_OFFSET note unconditionally.
20444 (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
20445 the above functions. Call ix86_add_queued_cfa_restore_notes when
20446 needed.
20447
20448 * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
20449 force output of the label even for dwarf2out_do_cfi_asm.
20450 (add_fde_cfi): If -g2 and above and cfi might change CFA,
20451 force creation of CFI label and chain DW_CFA_set_loc jumping to it
20452 for convert_cfa_to_fb_loc_list. Adjust other dwarf2out_cfi_label
20453 caller.
20454 (dwarf2out_stack_adjust, dwarf2out_frame_debug,
20455 dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
20456 dwarf2out_cfi_label callers.
20457 * tree.h (dwarf2out_cfi_label): Adjust prototype.
20458 * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
20459 Adjust dwarf2out_cfi_label callers.
20460 * config/vax/vax.c (vax_output_function_prologue): Likewise.
20461
20462 * config/i386/i386.h (struct machine_cfa_state,
20463 struct machine_function): Guard with ifndef USED_FOR_TARGET
20464 instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
20465
20466 PR other/40024
20467 * emutls.c (__emutls_get_address): Change arr->size to mean number
20468 of allocated arr->data entries instead of # of slots + 1.
20469
20470 PR middle-end/40316
20471 * recog.c (peep2_reinit_state): New function.
20472 (peephole2_init_state): Use it at the end of a basic block and also
20473 when seeing a RTX_FRAME_RELATED_P insn.
20474
20475 2009-06-01 Steve Ellcey <sje@cup.hp.com>
20476
20477 * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
20478 fixuns_truncrfdi2): New.
20479 (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
20480 *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
20481 *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
20482 *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
20483 *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
20484 *recip_approx): Remove.
20485 (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
20486 moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
20487 divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
20488 move to div.md.
20489 * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
20490 setf_exp_rf): New.
20491
20492 2009-06-01 Ian Lance Taylor <iant@google.com>
20493
20494 * attribs.c (register_attribute): Use CONST_CAST.
20495 * collect2.c (main): Use CONST_CAST2.
20496 (scan_prog_file): Likewise.
20497 * gcc.c (process_command, main): Likewise.
20498 * toplev.c (toplev_main): Likewise.
20499
20500 * c-typeck.c (handle_warn_cast_qual): New static function,
20501 partially broken out of build_c_cast.
20502 (build_c_cast): Call handle_warn_cast_qual.
20503 * doc/invoke.texi (Warning Options): Document new effect of
20504 -Wcast-qual.
20505
20506 2009-06-01 Aldy Hernandez <aldyh@redhat.com>
20507
20508 * diagnostic.c (diagnostic_build_prefix): Always print columns.
20509 (diagnostic_report_current_module): Print columns.
20510 * common.opt (flag_show_column): Enable by default.
20511
20512 2009-06-01 Luis Machado <luisgpm@br.ibm.com>
20513
20514 * alias.c (find_base_term): Check for NULL term before returning.
20515
20516 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
20517
20518 Revert due to PR40320:
20519 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
20520 * calls.c (emit_library_call_value_1): Don't force_operand for move
20521 and push insns.
20522
20523 2009-06-01 Olivier Hainque <hainque@adacore.com>
20524 Eric Botcazou <ebotcazou@adacore.com>
20525
20526 * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
20527 to be processed as a bitfield for constructor output purposes.
20528 * output.h (initializer_constant_valid_for_bitfield_p): Declare
20529 new function.
20530 * varasm.c (oc_local_state): New type, output_constructor
20531 local state to support communication with helpers.
20532 (oc_outer_state): New type, output_constructor outer state of
20533 relevance in recursive calls.
20534 (output_constructor_array_range): New output_constructor helper,
20535 extracted code for an array range element.
20536 (output_constructor_regular_field): New output_constructor helper,
20537 extracted code for an element that is not a bitfield.
20538 (output_constructor_bitfield): New output_constructor helper,
20539 extracted code for a bitfield element. Accept an OUTER state
20540 argument for recursive processing. Recurse on record or array
20541 CONSTRUCTOR values, possibly past noop conversions.
20542 (initializer_constant_valid_for_bitfield_p): New predicate. Whether
20543 VALUE is a valid constant-valued expression for use in a static
20544 bit-field initializer.
20545 (output_constructor): Rework to use helpers. Accept and honor an
20546 OUTER state argument for recursive calls. Return total size. Be
20547 prepared for nested constructors initializing bitfields.
20548 (output_constant): Feed OUTER in calls to output_constructor.
20549
20550 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
20551
20552 * calls.c (emit_library_call_value_1): Don't force_operand for move
20553 and push insns.
20554
20555 2009-06-01 Nick Clifton <nickc@redhat.com>
20556
20557 * doc/invoke.texi (IA-64 Options): Fix typo.
20558
20559 2009-06-01 Ira Rosen <irar@il.ibm.com>
20560
20561 PR tree-optimization/39129
20562 * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
20563 printed message.
20564 (vect_do_peeling_for_loop_bound): Use
20565 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
20566 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
20567 (vect_loop_versioning): Likewise.
20568 (vect_create_cond_for_alias_checks): Fix indentation.
20569 * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
20570 macros.
20571 (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
20572 (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
20573 * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
20574 "control flow in loop".
20575 (vect_estimate_min_profitable_iters): Use
20576 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
20577 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
20578 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
20579 (vect_create_data_ref_ptr): Don't mention array dimension in printing.
20580 * tree-vect-stmts.c (vectorizable_store): Replace the check that the
20581 statement belongs to a group of strided accesses with the exact code
20582 check.
20583 (vectorizable_load): Likewise.
20584 * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
20585 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
20586
20587 2009-06-01 Gerald Pfeifer <gerald@pfeifer.com>
20588
20589 * config/freebsd-stdint.h: New file.
20590 * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
20591 Add freebsd-stdint.h to tm_file.
20592
20593 2009-06-01 Richard Earnshaw <rearnsha@arm.com>
20594
20595 * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
20596 (thumb2_extendhidi2): Likewise.
20597
20598 2009-05-31 Ian Lance Taylor <iant@google.com>
20599
20600 * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
20601
20602 2009-05-31 Ian Lance Taylor <iant@google.com>
20603
20604 * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
20605 (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
20606 (ipa-reference.o): Depend upon gt-ipa-reference.h.
20607
20608 2009-05-31 Jason Merrill <jason@redhat.com>
20609
20610 * tree-pretty-print.c (print_call_name): Take the callee, not the
20611 call itself. Make non-static. Use dump_function_name for functions.
20612 (dump_generic_node): Adjust.
20613 * diagnostic.h: Declare print_call_name.
20614 * gimple-pretty-print.c (dump_gimple_call): Use it.
20615
20616 2009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
20617
20618 * config/sh/sh.md (ashldi3_std): New define_expand.
20619 (ashldi3): Use it.
20620
20621 2009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
20622
20623 PR target/40313
20624 * config/sh/sh.c: Include debug.h.
20625 (sh_expand_epilogue): Emit a blockage insn before the frame
20626 pointer adjustment also when dwarf2out_do_frame returns true.
20627
20628 2009-05-31 Richard Earnshaw <rearnsha@arm.com>
20629
20630 * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
20631 (thumb2_extendqidi2): New pattern.
20632
20633 2009-05-31 Ira Rosen <irar@il.ibm.com>
20634
20635 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
20636 mark phis for renaming.
20637 * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
20638 (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
20639 Call mark_sym_for_renaming.
20640 * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
20641 * tree-vect-loop.c (vect_transform_loop): Remove
20642 vect_memsyms_to_rename initialization and a call to
20643 mark_set_for_renaming.
20644
20645 2009-05-31 Jakub Jelinek <jakub@redhat.com>
20646
20647 PR middle-end/40304
20648 * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
20649 frame related even if !set_cfa && style < 0.
20650
20651 2009-05-30 Kai Tietz <kai.tietz@onevision.com>
20652
20653 * config/i386/mingw-tls.c: New file.
20654 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
20655 * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
20656 defining _WIN32 but not __CYGWIN__.
20657
20658 2009-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20659
20660 * configure.ac: Add MPC support.
20661
20662 * config.in, configure: Regenerate.
20663
20664 2009-05-29 Richard Henderson <rth@redhat.com>
20665
20666 * cfgcleanup.c (try_crossjump_to_edge): Only skip past
20667 NOTE_INSN_BASIC_BLOCK.
20668 * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
20669 Duplicate NOTE_INSN_EPILOGUE_BEG notes.
20670 * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
20671 to be deleted.
20672 * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
20673 add in_use field.
20674 (add_cfi): Disable check redefining cfa away from drap.
20675 (lookup_cfa_1): Add remember argument; handle remember/restore.
20676 (lookup_cfa): Pass remember argument.
20677 (cfa_remember): New.
20678 (compute_barrier_args_size_1): Remove sibcall check.
20679 (dwarf2out_frame_debug_def_cfa): New.
20680 (dwarf2out_frame_debug_adjust_cfa): New.
20681 (dwarf2out_frame_debug_cfa_offset): New.
20682 (dwarf2out_frame_debug_cfa_register): New.
20683 (dwarf2out_frame_debug_cfa_restore): New.
20684 (dwarf2out_frame_debug): Handle REG_CFA_* notes.
20685 (dwarf2out_begin_epilogue): New.
20686 (dwarf2out_frame_debug_restore_state): New.
20687 (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
20688 DW_CFA_restore_state.
20689 (output_cfi_directive): Likewise.
20690 (convert_cfa_to_fb_loc_list): Likewise.
20691 (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
20692 * dwarf2out.h: Update.
20693 * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
20694 (copy_insn_1): Early out for null.
20695 * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
20696 and dwarf2out_frame_debug_restore_state.
20697 * function.c (prologue, epilogue, sibcall_epilogue): Remove.
20698 (prologue_insn_hash, epilogue_insn_hash): New.
20699 (free_after_compilation): Adjust freeing accordingly.
20700 (record_insns): Create hash table if needed; push insns into
20701 hash instead of array.
20702 (maybe_copy_epilogue_insn): New.
20703 (contains): Search hash table instead of array.
20704 (sibcall_epilogue_contains): Remove.
20705 (thread_prologue_and_epilogue_insns): Split eh_return insns
20706 and mark them as epilogues.
20707 (reposition_prologue_and_epilogue_notes): Rewrite epilogue
20708 scanning in terms of basic blocks.
20709 * insn-notes.def (CFA_RESTORE_STATE): New.
20710 * jump.c (returnjump_p_1): Accept EH_RETURN.
20711 (eh_returnjump_p_1, eh_returnjump_p): New.
20712 * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
20713 CFA_REGISTER, CFA_RESTORE): New.
20714 * rtl.def (EH_RETURN): New.
20715 * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
20716
20717 * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
20718 (eh_return_internal): Use eh_return rtx; split w/ epilogue.
20719
20720 * config/i386/i386.c (gen_push): Update cfa state.
20721 (pro_epilogue_adjust_stack): Add set_cfa argument. When true,
20722 add a CFA_ADJUST_CFA note.
20723 (ix86_dwarf_handle_frame_unspec): Remove.
20724 (ix86_expand_prologue): Update cfa state.
20725 (ix86_emit_restore_reg_using_pop): New.
20726 (ix86_emit_restore_regs_using_pop): New.
20727 (ix86_emit_leave): New.
20728 (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
20729 (ix86_expand_epilogue): Add notes for unwinding the epilogue.
20730 * config/i386/i386.h (struct machine_cfa_state): New.
20731 (ix86_cfa_state): New.
20732 * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
20733 (eh_return_internal): Merge from eh_return_<mode>,
20734 use eh_return rtx, split w/ epilogue.
20735
20736 2009-05-29 Ian Lance Taylor <iant@google.com>
20737
20738 * builtins.c (validate_gimple_arglist): Don't use va_arg with
20739 enum type.
20740 * calls.c (emit_library_call_value_1): Likewise.
20741
20742 * c-typeck.c (c_build_va_arg): New function.
20743 * c-tree.h (c_build_va_arg): Declare.
20744 * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
20745 instead of build_va_arg.
20746
20747 2009-05-29 Eric Botcazou <ebotcazou@adacore.com>
20748
20749 * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
20750 (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
20751 (ptr_difference_cost): Use affine combinations to compute it.
20752 (difference_cost): Likewise.
20753 (get_computation_cost_at): Compute more accurate cost for addresses
20754 if the ratio is a multiplier allowed in addresses.
20755 For non-addresses, consider that an additional offset or symbol is
20756 added only once.
20757
20758 2009-05-29 Jakub Jelinek <jakub@redhat.com>
20759
20760 * config/i386/i386.c (ix86_decompose_address): Avoid useless
20761 0 displacement. Add 0 displacement if base is %[er]bp or %r13.
20762
20763 * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
20764 TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
20765 (prefix_rex): For UNIT_MMX don't imply the prefix by default
20766 if MODE_DI.
20767 (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
20768 to 1 for TYPE_SSE{IADD1,CVT1}.
20769 (prefix_vex_imm8): Removed.
20770 (length_vex): Only pass 1 as second argument to
20771 ix86_attr_length_vex_default if prefix_extra is 0.
20772 (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
20773 (length): For prefix vex computation use length_immediate
20774 attribute instead of prefix_vex_imm8.
20775 (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
20776 addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
20777 *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
20778 *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
20779 (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
20780 *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
20781 a space in between the operands.
20782 (*anddi_1_rex64, *andsi_1): Likewise. Override prefix_rex to 1
20783 if one operand is 0xff and the other one si, di, bp or sp.
20784 (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
20785 other one si, di, bp or sp.
20786 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
20787 (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
20788 type and mode attributes.
20789 (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
20790 (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
20791 prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
20792 (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
20793 prefix_data16 attribute iff MODE_DF.
20794 (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
20795 (fix_trunc<mode>di_sse): Set prefix_rex attribute.
20796 (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
20797 constm128_operand in length_immediate computation.
20798 (*addhi_4): Likewise. Fix mode attribute to MODE_HI.
20799 (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
20800 (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
20801 length_immediate attribute to 1.
20802 (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
20803 (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
20804 for certain alternatives.
20805 (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
20806 prefix_data16 attribute if MODE_V1DF.
20807 (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
20808 length_immediate to 1.
20809 (set_got_rex64, set_rip_rex64): Remove length attribute, set
20810 length_address to 4, set mode attribute to MODE_DI.
20811 (set_got_offset_rex64): Likewise. Set length_immediate to 0.
20812 (fxam<mode>2_i387): Set length attribute to 4.
20813 (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
20814 *prefetch_3dnow_rex): Override length_address attribute.
20815 (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
20816 attributes.
20817 * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
20818 (constm128_operand): Removed.
20819 * config/i386/i386.c (memory_address_length): For
20820 disp && !index && !base in 64-bit mode account for SIB byte if
20821 print_operand_address can't optimize disp32 into disp32(%rip)
20822 and UNSPEC doesn't imply (%rip) addressing. Add 1 to length
20823 for fs: or gs: segment.
20824 (ix86_attr_length_immediate_default): When checking if shortform
20825 is possible, truncate immediate to the length of the non-shortened
20826 immediate.
20827 (ix86_attr_length_address_default): Ignore MEM_P operands
20828 with X constraint.
20829 (ix86_attr_length_vex_default): Only check for DImode on
20830 GENERAL_REG_P operands.
20831 * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
20832 prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
20833 (sse_cvttps2pi): Clear prefix_rep attribute.
20834 (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
20835 attribute.
20836 (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
20837 (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
20838 *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
20839 iff operand 2 is const_int_operand.
20840 (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
20841 sse2_shufpd_<mode>): Set length_immediate attribute to 1.
20842 (sse2_pshufd_1): Likewise. Set prefix attribute to maybe_vex
20843 instead of vex.
20844 (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
20845 prefix_data16.
20846 (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
20847 prefix_data16 attribute for movlpd and movhpd instructions.
20848 (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise. Override
20849 length_immediate for shufpd instruction.
20850 (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
20851 (avx_cmpp<avxmodesuffixf2c><mode>3,
20852 avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
20853 <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
20854 avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
20855 *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
20856 (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
20857 (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
20858 (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
20859 prefix_data16 attribute for the first alternative to 1.
20860 (*avx_loadlps): Override length_immediate for the first alternative.
20861 (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
20862 attributes for second alternative.
20863 (*vec_concatv2sf_sse4_1): Override length_immediate and
20864 prefix_data16 attributes for second alternative.
20865 (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
20866 vec_extract_hi_<mode>, vec_extract_lo_v16hi,
20867 vec_extract_hi_v16hi, vec_extract_lo_v32qi,
20868 vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
20869 (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
20870 prefix_data16 and length_immediate to 1.
20871 (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
20872 to 1.
20873 (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
20874 prefix_extra attribute for variants that don't have 0f prefix alone.
20875 (*avx_pinsr<ssevecsize>): Likewise. Set length_immediate to 1.
20876 (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
20877 *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
20878 *sse4_1_pextrd): Set length_immediate to 1.
20879 (*sse4_1_pinsrd): Likewise. Set prefix_extra to 1.
20880 (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
20881 to 1.
20882 (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
20883 *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
20884 length_immediate to 1 for second alternative.
20885 (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
20886 prefix_extra and length_immediate attributes for the first
20887 alternative.
20888 (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
20889 first alternative.
20890 (*vec_concatv2di_rex64_sse4_1): Likewise. Override prefix_rex
20891 to 1 for the first and third alternative.
20892 (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
20893 alternative.
20894 (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
20895 attribute.
20896 (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
20897 attribute to 0.
20898 (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
20899 *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
20900 *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
20901 *avx_psign<mode>3): Set prefix_extra attribute to 1.
20902 (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
20903 ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
20904 ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
20905 ssse3_psign<mode>3): Override prefix_rex attribute.
20906 (*avx_palignrti): Override prefix_extra and length_immediate to 1.
20907 (ssse3_palignrti): Override length_immediate to 1.
20908 (ssse3_palignrdi): Override length_immediate to 1, override
20909 prefix_rex attribute.
20910 (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
20911 (sse4a_extrqi): Override length_immediate to 2.
20912 (sse4a_insertqi): Likewise. Override prefix_data16 to 0.
20913 (sse4a_insertq): Override prefix_data16 to 0.
20914 (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
20915 avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
20916 avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
20917 *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
20918 avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
20919 and length_immediate to 1.
20920 (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
20921 sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
20922 sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
20923 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
20924 and length_immediate to 1.
20925 (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
20926 (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
20927 (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
20928 avx_ptest256): Override prefix_extra to 1.
20929 (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
20930 Override prefix_data16 and length_immediate to 1.
20931 (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
20932 sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
20933 sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
20934 sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
20935 prefix_data16 to 0 and prefix_extra to 2.
20936 (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
20937 (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
20938 attribute.
20939 (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
20940 sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
20941 Override prefix_data16 and prefix_rep to 0, length_immediate to 1
20942 and prefix_extra to 2.
20943 (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
20944 prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
20945 (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
20946 avx_vpermilvar<mode>3,
20947 avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
20948 avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
20949 avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
20950 avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
20951 Override prefix_extra to 1.
20952 (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
20953 (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
20954 vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
20955 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
20956 prefix_extra and length_immediate to 1.
20957 (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
20958 modrm to 0.
20959 (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
20960 to 1 for the first alternative.
20961 * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
20962 prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
20963 cases.
20964 (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
20965 *movv2sf_internal_avx, *movv2sf_internal): Override
20966 prefix_rep attribute for certain alternatives.
20967 (*mov<mode>_internal): Override prefix_rep or prefix_data16
20968 attributes for certain alternatives.
20969 (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
20970 attributes for certain alternatives.
20971 (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
20972 *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
20973 mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
20974 mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
20975 *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
20976 mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
20977 mmx_pswapdv2si2): Set prefix_extra attribute to 1.
20978 (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
20979 length_immediate to 1 if operand 2 is const_int_operand.
20980 (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
20981 *vec_extractv2si_1): Set length_immediate attribute to 1.
20982 (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
20983 using old 3DNOW insn rather than SSE/3DNOW_A.
20984 (mmx_emms, mmx_femms): Clear modrm attribute.
20985
20986 2009-05-29 Martin Jambor <mjambor@suse.cz>
20987
20988 * tree-sra.c: New implementation of SRA.
20989
20990 * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
20991 (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
20992 (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
20993 * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
20994 (SRA_MAX_STRUCTURE_COUNT): Removed.
20995 (SRA_FIELD_STRUCTURE_RATIO): Removed.
20996 * doc/invoke.texi (sra-max-structure-size): Removed.
20997 (sra-field-structure-ratio): Removed.
20998
20999 2009-05-29 Jakub Jelinek <jakub@redhat.com>
21000
21001 PR middle-end/40291
21002 * builtins.c (expand_builtin_memcmp): Convert len to sizetype
21003 before expansion.
21004
21005 2009-05-29 Andrey Belevantsev <abel@ispras.ru>
21006
21007 PR rtl-optimization/40101
21008 * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
21009 seqno. Adjust comment.
21010 * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
21011 inserting bookkeeping before a jump, the jump is not scheduled.
21012 When no positive seqno found, provide a value. Add comment.
21013
21014 2009-05-29 Richard Guenther <rguenther@suse.de>
21015
21016 * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
21017 short-cutting on the first component.
21018
21019 2009-05-29 Jakub Jelinek <jakub@redhat.com>
21020
21021 PR middle-end/39958
21022 * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
21023 for trees other than decls/types.
21024
21025 2009-05-29 Richard Guenther <rguenther@suse.de>
21026
21027 * tree-ssa-operands.c (get_expr_operands): Do not handle
21028 INDIRECT_REFs in the handled-component case. Remove
21029 unused get_ref_base_and_extent case.
21030 * tree-dfa.c (get_ref_base_and_extent): Avoid calling
21031 tree_low_cst and host_integerp where possible.
21032 * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
21033 codes for equivalence.
21034 * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
21035
21036 2009-05-29 David Billinghurst <billingd@gcc.gnu.org>
21037
21038 * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
21039 to tmake_file for i[34567]86-*-cygwin*.
21040
21041 2009-05-29 Jakub Jelinek <jakub@redhat.com>
21042
21043 PR target/40017
21044 * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
21045 (altivec_categorize_keyword, init_vector_keywords,
21046 rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
21047 similar to bool.
21048
21049 2009-05-29 Kai Tietz <kai.tietz@onevision.com>
21050
21051 * tree.c (handle_dll_attribute): Check if node is
21052 of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
21053
21054 2009-05-29 Richard Earnshaw <rearnsha@arm.com>
21055
21056 * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
21057 component.
21058 (thumb2_zero_extendqidi2): Likewise.
21059
21060 2009-05-28 Kaz Kojima <kkojima@gcc.gnu.org>
21061
21062 * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
21063 instead of gen_movrt.
21064 * config/sh/sh.md (movrt): Remove.
21065
21066 2009-05-28 Steve Ellcey <sje@cup.hp.com>
21067
21068 * doc/invoke.texi (IA-64 Options):
21069 Add -msdata, -mfused-madd, -mno-inline-float-divide,
21070 -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
21071 -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
21072 -msched-prefer-non-control-spec-insns,
21073 -msched-stop-bits-after-every-cycle,
21074 -msched-count-spec-in-critical-path,
21075 -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
21076 -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
21077 Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
21078 and -msched-spec-verbose.
21079
21080 2009-05-28 Joseph Myers <joseph@codesourcery.com>
21081
21082 * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
21083 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
21084 error if used.
21085 * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
21086
21087 2009-05-28 Richard Guenther <rguenther@suse.de>
21088
21089 * tree-ssa-alias.c (ao_ref_init): New function.
21090 (ao_ref_base): Likewise.
21091 (ao_ref_base_alias_set): Likewise.
21092 (ao_ref_alias_set): Likewise.
21093 (refs_may_alias_p_1): Change signature.
21094 (refs_may_alias_p): Adjust.
21095 (refs_anti_dependent_p): Likewise.
21096 (refs_output_dependent_p): Likewise.
21097 (call_may_clobber_ref_p_1): Change signature.
21098 (call_may_clobber_ref_p): Adjust.
21099 (stmt_may_clobber_ref_p_1): New function split out from ...
21100 (stmt_may_clobber_ref_p): ... here.
21101 (maybe_skip_until): Adjust signature.
21102 (get_continuation_for_phi): Likewise.
21103 (walk_non_aliased_vuses): Likewise.
21104 * tree-ssa-alias.h (struct ao_ref_s): New structure type.
21105 (ao_ref_init): Declare.
21106 (ao_ref_base): Likewise.
21107 (ao_ref_alias_set): Likewise.
21108 (stmt_may_clobber_ref_p_1): Likewise.
21109 (walk_non_aliased_vuses): Adjust.
21110 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
21111 (get_ref_from_reference_ops): remove.
21112 (vn_reference_lookup_2): Adjust signature.
21113 (vn_reference_lookup_3): Do not re-build trees. Handle unions.
21114 (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
21115 (vn_reference_lookup): Adjust.
21116 (vn_reference_insert): Likewise.
21117 (vn_reference_insert_pieces): Adjust signature.
21118 (visit_reference_op_call): Adjust.
21119 * tree-ssa-pre.c (get_expr_type): Simplify.
21120 (phi_translate_1): Adjust.
21121 (compute_avail): Likewise.
21122 (translate_vuse_through_block): Do not re-build trees.
21123 (value_dies_in_block_x): Likewise.
21124 * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
21125 fields.
21126 (vn_reference_lookup_pieces): Adjust declaration.
21127 (vn_reference_insert_pieces): Likewise.
21128
21129 2009-05-28 Benjamin Kosnik <bkoz@redhat.com>
21130
21131 * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
21132 with checking disabled.
21133
21134 2009-05-28 Dave Korn <dave.korn.cygwin@gmail.com>
21135
21136 PR target/37216
21137
21138 * configure.ac (HAVE_GAS_ALIGNED_COMM): Add autoconf test and
21139 macro definition for support of three-operand format aligned
21140 .comm directive in assembler on cygwin/pe/mingw target OS.
21141 * configure: Regenerate.
21142 * config.h: Regenerate.
21143
21144 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Use
21145 aligned form of .comm directive if -mpe-aligned-commons is in effect.
21146 * config/i386/cygming.opt (-mpe-aligned-commons): Add new option.
21147
21148 * doc/invoke.texi (-mpe-aligned-commons): Document new target option.
21149 * doc/tm.texi (ASM_OUTPUT_COMMON): Document zero size commons.
21150
21151 2009-05-28 Ira Rosen <irar@il.ibm.com>
21152
21153 PR tree-optimization/40254
21154 * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
21155 in analysis of basic blocks.
21156
21157 2009-05-28 Adam Nemet <anemet@caviumnetworks.com>
21158
21159 PR middle-end/33699
21160 * target.h (struct gcc_target): Fix indentation. Add const_anchor.
21161 * target-def.h (TARGET_CONST_ANCHOR): New macro.
21162 (TARGET_INITIALIZER): Use it.
21163 * cse.c (CHEAPER): Move it up to the other macros.
21164 (insert): Rename this ...
21165 (insert_with_costs): ... to this. Add cost parameters. Update
21166 function comment.
21167 (insert): New function. Call insert_with_costs.
21168 (compute_const_anchors, insert_const_anchor, insert_const_anchors,
21169 find_reg_offset_for_const, try_const_anchors): New functions.
21170 (cse_insn): Call try_const_anchors. Adjust cost of src_related
21171 when using a const-anchor. Call insert_const_anchors.
21172 * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
21173 * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
21174
21175 2009-05-28 Alexandre Oliva <aoliva@redhat.com>
21176
21177 * tree-inline.c (remap_decls): Enable nonlocalized variables
21178 when not optimizing.
21179
21180 2009-05-28 Alexandre Oliva <aoliva@redhat.com>
21181
21182 * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
21183 Simplify other tests involving optimize.
21184
21185 2009-05-27 Tom Tromey <tromey@redhat.com>
21186
21187 * unwind-dw2.c (_Unwind_DebugHook): New function.
21188 (uw_install_context): Call _Unwind_DebugHook.
21189
21190 2009-05-27 Tom Tromey <tromey@redhat.com>
21191
21192 * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
21193
21194 2009-05-27 Ian Lance Taylor <iant@google.com>
21195
21196 * Makefile.in (LINKER, LINKER_FLAGS): Define.
21197 (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
21198 (ALL_LINKERFLAGS): Define.
21199 (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
21200 (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
21201 (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
21202 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
21203 (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
21204 $(LINKER_FOR_BUILD).
21205 (build/gcov-iov$(build_exeext)): Likewise.
21206
21207 2009-05-27 Julian Brown <julian@codesourcery.com>
21208
21209 * gcse.c (target.h): Include.
21210 (can_assign_to_reg_without_clobbers_p): Check that the target allows
21211 copy of argument to a pseudo register.
21212
21213 2009-05-27 Diego Novillo <dnovillo@google.com>
21214
21215 * tree-ssa-live.c (dump_scope_block): Document arguments.
21216 (dump_scope_blocks): Document.
21217 (debug_scope_blocks): New.
21218 * tree-flow.h (debug_scope_blocks): Declare.
21219
21220 2009-05-21 Denis Chertykov <denisc@overta.ru>
21221
21222 * doc/contrib.texi (Contributors): Add myself to the list.
21223
21224 2009-05-27 Olivier Hainque <hainque@adacore.com>
21225
21226 * expr.c (target_align): New function. Alignment the TARGET of an
21227 assignment may be assume to have.
21228 (highest_pow2_factor_for_target): Use it instead of relying on
21229 immediate tree attributes of TARGET, not necessarily honored when
21230 intermediate bitfields are involved.
21231
21232 2009-05-27 H.J. Lu <hongjiu.lu@intel.com>
21233
21234 PR target/40266
21235 * config/i386/driver-i386.c (host_detect_local_cpu): Support
21236 AVX, SSE4, AES, PCLMUL and POPCNT.
21237
21238 2009-05-27 Diego Novillo <dnovillo@google.com>
21239
21240 * tree-pretty-print.c (dump_location): New.
21241 (dump_generic_node): Call it.
21242 Factor code to handle BLOCK nodes ...
21243 (dump_block_node): ... here.
21244
21245 2009-05-27 Rafael Avila de Espindola <espindola@google.com>
21246
21247 * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
21248 with it.
21249 * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
21250 included.
21251 * gcc-plugin.h: Include config.h and system.h.
21252 (IN_GCC): Define if not defined.
21253
21254 2009-05-27 Hans-Peter Nilsson <hp@axis.com>
21255
21256 PR middle-end/40249
21257 * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
21258 with -fno-inline.
21259
21260 2009-05-27 Shujing Zhao <pearly.zhao@oracle.com>
21261
21262 * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
21263 applicable.
21264 * config/m32r/m32r.h: Ditto.
21265 * config/m32r/m32r.md: Ditto.
21266 * config/m32r/predicates.md: Ditto.
21267
21268 2009-05-27 Alexandre Oliva <aoliva@redhat.com>
21269
21270 * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
21271
21272 2009-05-26 Basile Starynkevitch <basile@starynkevitch.net>
21273
21274 * doc/plugins.texi
21275 (Loading plugins): typo.
21276 (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
21277 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
21278 (Interacting with the GCC Garbage Collector): Added new section.
21279 (Giving information about a plugin): Added new section for
21280 PLUGIN_INFO.
21281 * ggc.h (ggc_register_root_tab): Added declaration.
21282 * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
21283 (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
21284 (register_callback): Improved comment in declaration.
21285 * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
21286 (extra_root_vec) Added static variable for dynamic roots registration.
21287 (ggc_register_root_tab) Added new routine.
21288 (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
21289 PLUGIN_GGC_MARKING event.
21290 * ggc-zone.c: Include plugin.h.
21291 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
21292 * ggc-page.c: Include plugin.h.
21293 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
21294 * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
21295 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
21296 (register_callback): check lack of callbacks for
21297 pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
21298 PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
21299 (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
21300 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
21301 * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
21302 dependency on plugin.h.
21303 (plugin.o): Added dependency on ggc.h...
21304
21305 2009-05-26 Richard Guenther <rguenther@suse.de>
21306
21307 PR middle-end/40248
21308 Revert
21309 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
21310 with mismatched comparison modes.
21311
21312 * expr.c (expand_expr_real_1): Expand the operand of a
21313 VIEW_CONVERT_EXPR in its natural mode.
21314
21315 2009-05-26 Ian Lance Taylor <iant@google.com>
21316
21317 * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
21318 (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
21319 (ALL_COMPILERFLAGS): Define.
21320 (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
21321 (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
21322 (collect2$(exeext), collect2.o): Likewise.
21323 (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
21324 (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
21325 ($(out_object_file), mips-tfile, mips-tdump): Likewise.
21326 (libbackend.o, intl.o, cppdefault.o): Likewise.
21327 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
21328 (build/%.o): Use $(COMPILER_FOR_BUILD).
21329 (build/gen%$(build_exeext)): Likewise.
21330 (build/gcov-iov$(build_exeext)): LIkewise.
21331 * config/t-darwin (darwin.o): Use $(COMPILER).
21332 (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
21333 * config/t-sol2 (sol2-c.o): Likewise.
21334 (sol2.o): Likewise.
21335 * config/t-vxworks (vxworks.o): Likewise.
21336 * config/x-darwin (host-darwin.o): Likewise.
21337 * config/x-hpux (host-hpux.o): Likewise.
21338 * config/x-linux (host-linux.o): Likewise.
21339 * config/x-solaris (host-solaris.o): Likewise.
21340 * config/alpha/x-alpha (driver-alpha.o): Likewise.
21341 * config/arm/t-arm (arm-c.o): Likewise.
21342 * config/arm/t-pe (pe.o): Likewise.
21343 * config/arm/t-wince-pe (pe.o): Likewise.
21344 * config/i386/t-cygming (winnt.o): Likewise.
21345 (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
21346 * config/i386/t-cygwin (cygwin1.o): Likewise.
21347 (cygwin2.o): Likewise.
21348 * config/i386/t-i386 (i386-c.o): Likewise.
21349 * config/i386/t-interix (winnt.o): Likewise.
21350 * config/i386/t-netware (netware.o): Likewise.
21351 * config/i386/t-nwld (nwld.o): Likewise.
21352 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
21353 * config/i386/x-i386 (driver-i386.o): Likewise.
21354 * config/i386/x-cygwin (host-cygwin.o): Likewise.
21355 * config/i386/x-mingw32 (host-mingw32.o): Likewise.
21356 * config/ia64/t-ia64 (ia64-c.o): Likewise.
21357 * config/m32c/t-m32c (m32c-pragma.o): Likewise.
21358 * config/mips/x-native (driver-native.o): Likewise.
21359 * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
21360 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
21361 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
21362 * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
21363 * config/score/t-score-elf (score7.o): Likewise.
21364 (score3.o): Likewise.
21365 * config/sh/t-sh (sh-c.o): Likewise.
21366 * config/sh/t-symbian (sh-c.o): Likewise.
21367 (symbian.o): Likewise.
21368 * config/spu/t-spu-elf (spu-c.o): Likewise.
21369 * config/v850/t-v850 (v850-c.o): Likewise.
21370 * config/v850/t-v850e (v850-c.o): Likewise.
21371
21372 2009-05-26 Richard Guenther <rguenther@suse.de>
21373
21374 PR tree-optimization/40122
21375 * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
21376 VECTOR_CSTs if possible.
21377 (fold_gimple_assign): Likewise.
21378
21379 2009-05-26 Richard Guenther <rguenther@suse.de>
21380
21381 PR middle-end/40252
21382 * fold-const.c (fold_binary): Use the correct types for building
21383 rotates.
21384
21385 2009-05-26 Richard Guenther <rguenther@suse.de>
21386
21387 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
21388 redundant calls to merge_alias_info.
21389 (bump_vector_ptr): Likewise.
21390 * tree-ssa-copy.c (merge_alias_info): Remove.
21391 (replace_exp_1): Remove call to merge_alias_info.
21392 (propagate_tree_value): Likewise.
21393 (fini_copy_prop): Propagate points-to info.
21394 * tree-flow.h (merge_alias_info): Remove.
21395
21396 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
21397
21398 * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
21399
21400 2009-05-25 Jan Hubicka <jh@suse.cz>
21401
21402 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
21403 * cgraph.h (struct inline_summary): New filed self_wize,
21404 size_inlining_benefit, self_time and time_inlining_benefit.
21405 (struct cgraph_global_info): Replace insns by time ans size fields.
21406 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
21407 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
21408 (ipcp_update_callgraph): Do not touch function bodies.
21409 * ipa-inline.c: Include except.h
21410 (MAX_TIME): New constant.
21411 (overall_insns): Remove.
21412 (leaf_node_p): New.
21413 (overall_size, max_benefit): New static variables.
21414 (cgraph_estimate_time_after_inlining): New function.
21415 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
21416 (cgraph_clone_inlined_nodes): Update size.
21417 (cgraph_mark_inline_edge): Update size.
21418 (cgraph_estimate_growth): Use size info.
21419 (cgraph_check_inline_limits): Check size.
21420 (cgraph_default_inline_p): Likewise.
21421 (cgraph_edge_badness): Compute badness based on benefit and size cost.
21422 (cgraph_decide_recursive_inlining): Check size.
21423 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
21424 and times.
21425 (cgraph_decide_inlining): Likewise.
21426 (cgraph_decide_inlining_incrementally): Likewise; honor
21427 PARAM_EARLY_INLINING_INSNS.
21428 (likely_eliminated_by_inlining_p): New predicate.
21429 (estimate_function_body_sizes): New function.
21430 (compute_inline_parameters): Use it.
21431 * except.c (must_not_throw_labels): New function.
21432 * except.h (must_not_throw_labels): Declare.
21433 * tree-inline.c (init_inline_once): Kill inlining_weigths
21434 * tree-ssa-structalias.c: Avoid uninitialized warning.
21435 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
21436 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
21437 (PARAM_INLINE_CALL_COST): Remove.
21438 (PARAM_EARLY_INLINING_INSNS): New.
21439
21440 2009-05-25 Richard Guenther <rguenther@suse.de>
21441
21442 PR tree-optimization/36327
21443 * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
21444 callback for reference translation or lookup at the point of may-defs.
21445 * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
21446 * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
21447 for union COMPONENT_REFs.
21448 (vn_reference_lookup_3): New callback. Lookup from memset
21449 and CONSTRUCTOR assignment, translate through struct copies.
21450 (vn_reference_lookup_pieces): Make sure to not free the
21451 passed operands array. Adjust walk_non_aliased_vuses call.
21452 (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
21453 make sure we do not leak memory.
21454
21455 2009-05-25 Richard Guenther <rguenther@suse.de>
21456
21457 * tree-ssa-alias.h (dump_points_to_solution): Declare.
21458 * tree-inline.c (expand_call_inline): Reset the escaped and
21459 callused solutions.
21460 * tree-ssa-structalias.c (pass_build_ealias): New.
21461 * tree-pass.h (pass_build_ealias): Declare.
21462 * passes.c (init_optimization_passes): Add PTA during
21463 early optimizations.
21464 * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
21465 and CALLUSED solutions.
21466 (dump_points_to_solution): New function, split out from ...
21467 (dump_points_to_info_for): ... here.
21468 * tree-parloops.c (parallelize_loops): Reset the escaped and
21469 callused solutions.
21470
21471 2009-05-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
21472
21473 PR bootstrap/40027
21474 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
21475 * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
21476
21477 2009-05-25 Ira Rosen <irar@il.ibm.com>
21478
21479 PR tree-optimization/40238
21480 * tree-vect-stmts.c (vect_init_vector): Insert initialization
21481 statements after basic block's labels.
21482 * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
21483 to free the allocated memory.
21484
21485 2009-05-24 Kaz Kojima <kkojima@gcc.gnu.org>
21486
21487 * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
21488 return address with a USE.
21489
21490 2009-05-24 Richard Guenther <rguenther@suse.de>
21491
21492 PR middle-end/40233
21493 * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
21494 array type from the main variant of the inner type.
21495
21496 2009-05-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21497
21498 * config/vax/vax-protos.h (legitimate_constant_address_p): Change
21499 definition to bool (from int) to un-break build.
21500 (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
21501
21502 2009-05-24 Paolo Bonzini <bonzini@gnu.org>
21503
21504 * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
21505 discard_stmt_changes): Delete.
21506 * tree-ssa-operands.c (scb_stack): Delete.
21507 (init_ssa_operands): Do not initialize it.
21508 (fini_ssa_operands): Do not free it.
21509 (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
21510
21511 * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
21512 update_stmt, remove the others. Fix comments.
21513 * tree-dfa.c (optimize_stack_restore): Likewise.
21514 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
21515 * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
21516 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
21517 * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
21518 Likewise.
21519 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
21520 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
21521 (dom_opt_finalize_block): Likewise, adjusting access to
21522 stmts_to_rescan.
21523 (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
21524 (stmts_to_rescan): Change item type to gimple.
21525 (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
21526
21527 2009-05-24 Ira Rosen <irar@il.ibm.com>
21528
21529 * doc/passes.texi (Tree-SSA passes): Document SLP pass.
21530 * tree-pass.h (pass_slp_vectorize): New pass.
21531 * params.h (SLP_MAX_INSNS_IN_BB): Define.
21532 * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
21533 * tree-vectorizer.c (timevar.h): Include.
21534 (user_vect_verbosity_level): Declare.
21535 (vect_location): Fix comment.
21536 (vect_set_verbosity_level): Update user_vect_verbosity_level
21537 instead of vect_verbosity_level.
21538 (vect_set_dump_settings): Add an argument. Ignore user defined
21539 verbosity if dump flags require higher level of verbosity. Print to
21540 stderr only for loop vectorization.
21541 (vectorize_loops): Update call to vect_set_dump_settings.
21542 (execute_vect_slp): New function.
21543 (gate_vect_slp): Likewise.
21544 (struct gimple_opt_pass pass_slp_vectorize): New.
21545 * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
21546 access its members.
21547 (vec_info_for_bb): New function.
21548 (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
21549 (VECTORIZATION_ENABLED): New macro.
21550 (SLP_ENABLED, SLP_DISABLED): Likewise.
21551 (vect_is_simple_use): Add bb_vec_info argument.
21552 (new_stmt_vec_info, vect_analyze_data_ref_dependences,
21553 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
21554 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
21555 vect_schedule_slp, vect_analyze_slp): Likewise.
21556 (vect_analyze_stmt): Add slp_tree argument.
21557 (find_bb_location): Declare.
21558 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
21559 * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
21560 (vect_analyze_loop_operations, vect_analyze_loop,
21561 get_initial_def_for_induction, vect_create_epilog_for_reduction,
21562 vect_finalize_reduction, vectorizable_reduction,
21563 vectorizable_live_operation, vect_transform_loop): Likewise.
21564 * tree-data-ref.c (dr_analyze_innermost): Update comment,
21565 skip evolution analysis if analyzing a basic block.
21566 (dr_analyze_indices): Likewise.
21567 (initialize_data_dependence_relation): Skip the test whether the
21568 object is invariant for basic blocks.
21569 (compute_all_dependences): Skip dependence analysis for data
21570 references in basic blocks.
21571 (find_data_references_in_stmt): Don't fail in case of invariant
21572 access in basic block.
21573 (find_data_references_in_bb): New function.
21574 (find_data_references_in_loop): Move code to
21575 find_data_references_in_bb and add a call to it.
21576 (compute_data_dependences_for_bb): New function.
21577 * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
21578 * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
21579 that STEP is 0.
21580 (vect_analyze_data_ref_dependence): Check for interleaving in case of
21581 unknown dependence in basic block and fail in case of dependence in
21582 basic block.
21583 (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
21584 dependence instances from either loop or basic block vectorization
21585 info.
21586 (vect_compute_data_ref_alignment): Check if it is loop vectorization
21587 before calling nested_in_vect_loop_p.
21588 (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
21589 dependence instances from either loop or basic block vectorization
21590 info.
21591 (vect_verify_datarefs_alignment): Likewise.
21592 (vect_enhance_data_refs_alignment): Adjust function calls.
21593 (vect_analyze_data_refs_alignment): Likewise.
21594 (vect_analyze_group_access): Fix printing. Skip different checks if
21595 DR_STEP is 0. Keep strided stores either in loop or basic block
21596 vectorization data structure. Fix indentation.
21597 (vect_analyze_data_ref_access): Fix comments, allow zero step in
21598 basic blocks.
21599 (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
21600 dependence instances from either loop or basic block vectorization
21601 info.
21602 (vect_analyze_data_refs): Update comment. Call
21603 compute_data_dependences_for_bb to analyze basic blocks.
21604 (vect_create_addr_base_for_vector_ref): Check for outer loop only in
21605 case of loop vectorization. In case of basic block vectorization use
21606 data-ref itself as a base.
21607 (vect_create_data_ref_ptr): In case of basic block vectorization:
21608 don't advance the pointer, add new statements before the current
21609 statement. Adjust function calls.
21610 (vect_supportable_dr_alignment): Support only aligned accesses in
21611 basic block vectorization.
21612 * common.opt (ftree-slp-vectorize): New flag.
21613 * tree-vect-patterns.c (widened_name_p): Adjust function calls.
21614 (vect_pattern_recog_1): Likewise.
21615 * tree-vect-stmts.c (process_use): Likewise.
21616 (vect_init_vector): Add new statements in the beginning of the basic
21617 block in case of basic block SLP.
21618 (vect_get_vec_def_for_operand): Adjust function calls.
21619 (vect_finish_stmt_generation): Likewise.
21620 (vectorizable_call): Add assert that it is loop vectorization, adjust
21621 function calls.
21622 (vectorizable_conversion, vectorizable_assignment): Likewise.
21623 (vectorizable_operation): In case of basic block SLP, take
21624 vectorization factor from statement's type and skip the relevance
21625 check. Adjust function calls.
21626 (vectorizable_type_demotion): Add assert that it is loop
21627 vectorization, adjust function calls.
21628 (vectorizable_type_promotion): Likewise.
21629 (vectorizable_store): Check for outer loop only in case of loop
21630 vectorization. Adjust function calls. For basic blocks, skip the
21631 relevance check and don't advance pointers.
21632 (vectorizable_load): Likewise.
21633 (vectorizable_condition): Add assert that it is loop vectorization,
21634 adjust function calls.
21635 (vect_analyze_stmt): Add argument. In case of basic block SLP, check
21636 that it is not reduction, get vector type, call only supported
21637 functions, skip loop specific parts.
21638 (vect_transform_stmt): Check for outer loop only in case of loop
21639 vectorization.
21640 (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
21641 (vect_is_simple_use): Fix comment, add new argument, fix conditions
21642 for external definition.
21643 * passes.c (pass_slp_vectorize): New pass.
21644 * tree-vect-slp.c (find_bb_location): New function.
21645 (vect_get_and_check_slp_defs): Add argument, adjust function calls,
21646 check for patterns only in loops.
21647 (vect_build_slp_tree): Add argument, adjust function calls, fail in
21648 case of multiple types in basic block SLP.
21649 (vect_mark_slp_stmts_relevant): New function.
21650 (vect_supported_load_permutation_p): Fix comment.
21651 (vect_analyze_slp_instance): Add argument. In case of basic block
21652 SLP, take vectorization factor from statement's type, check that
21653 unrolling factor is 1. Adjust function call. Save SLP instance in
21654 either loop or basic block vectorization structure. Return FALSE,
21655 if SLP failed.
21656 (vect_analyze_slp): Add argument. Get strided stores groups from
21657 either loop or basic block vectorization structure. Return FALSE
21658 if basic block SLP failed.
21659 (new_bb_vec_info): New function.
21660 (destroy_bb_vec_info, vect_slp_analyze_node_operations,
21661 vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
21662 (vect_schedule_slp): Add argument. Get SLP instances from either
21663 loop or basic block vectorization structure. Set vectorization factor
21664 to be 1 for basic block SLP.
21665 (vect_slp_transform_bb): New function.
21666 * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
21667
21668 2009-05-23 Mark Mitchell <mark@codesourcery.com>
21669
21670 * final.c (shorten_branches): Do not align labels for jump tables.
21671 (final_scan_insn): Use JUMP_TABLE_DATA_P.
21672
21673 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
21674
21675 * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
21676 Remove outdated reference to flow.c and fix nits.
21677 * doc/gccint.texi: Tweak RTL description.
21678 * doc/rtl.texi: Likewise.
21679
21680 2009-05-23 Denis Chertykov <chertykov@gmail.com>
21681
21682 * config/avr/avr.c: Change my email address.
21683 * config/avr/avr.h: Likewise.
21684 * config/avr/avr.md: Likewise.
21685 * config/avr/avr-protos.h: Likewise.
21686 * config/avr/libgcc.S: Likewise.
21687
21688 2009-05-22 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
21689
21690 * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
21691 (spu_split_load, spu_split_store): Change return type to int.
21692 (spu_split_convert): Declare.
21693 * config/spu/predicates.md (spu_mem_operand): Remove.
21694 (spu_mov_operand): Update.
21695 (spu_dest_operand, shiftrt_operator, extend_operator): Define.
21696 * config/spu/spu.c (regno_aligned_for_load): Remove.
21697 (reg_aligned_for_addr, spu_expand_load): Define.
21698 (spu_expand_extv): Reimplement and handle MEM.
21699 (spu_expand_insv): Handle MEM.
21700 (spu_sched_reorder): Handle insn's with length 0.
21701 (spu_legitimate_address_p): Reimplement.
21702 (store_with_one_insn_p): Return TRUE for any mode with size
21703 larger than 16 bytes.
21704 (address_needs_split): Define.
21705 (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
21706 operands.
21707 (spu_convert_move): Define.
21708 (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
21709 (spu_split_store): Change all MEM's to TImode.
21710 (spu_init_expanders): Preallocate registers that correspond to
21711 LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
21712 mark_reg_pointer.
21713 (spu_split_convert): Define.
21714 * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
21715 (_move<mode>, _movdi, _movti): Update predicate and condition.
21716 (load, store): Change to define_split.
21717 (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
21718 extend<mode>ti2.
21719 (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
21720 (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
21721 define_insn_and_split of lshr<mode>3.
21722 (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
21723 (<v>ashr<mode>3_imm): Define.
21724 (extv, extzv, insv): Allow MEM operands.
21725 (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
21726 shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
21727 sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
21728 (_spu_convert2): Change to define_insn_and_split and remove the
21729 corresponding define_peephole2.
21730 (stack_protect_set, stack_protect_test, stack_protect_test_si):
21731 Change predicates to memory_operand.
21732
21733 2009-05-22 Mark Mitchell <mark@codesourcery.com>
21734
21735 * config/arm/thumb2.md: Add 16-bit multiply instructions.
21736
21737 2009-05-21 Michael Meissner <meissner@linux.vnet.ibm.com>
21738
21739 PR tree-optimization/40219
21740 * tree.c (iterative_hash_expr): Make sure the builtin function is
21741 a normal builtin function and not a front end or back end builtin
21742 before indexing into the built_in_decls array.
21743
21744 2009-05-22 Richard Guenther <rguenther@suse.de>
21745
21746 PR middle-end/38964
21747 * alias.c (write_dependence_p): Do not use TBAA for answering
21748 anti-dependence or output-dependence.
21749 * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
21750 (emit_pointer_definition): Remove.
21751 (emit_alias_warning): Likewise.
21752 (find_what_var_points_to): Remove TBAA pruning code.
21753 (find_what_p_points_to): Likewise. Do not warn about strict-aliasing
21754 violations.
21755 (compute_points_to_sets): Remove code computing the set of
21756 dereferenced pointers.
21757 * tree-data-ref.c (dr_may_alias_p): Properly use the split
21758 oracle for querying anti and output dependencies.
21759 * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
21760 if TBAA may be applied.
21761 (refs_anti_dependent_p): New function.
21762 (refs_output_dependent_p): Likewise.
21763 * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
21764 (refs_output_dependent_p): Likewise.
21765 * doc/tree-ssa.texi (Memory model): New section.
21766 * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
21767 * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
21768 * cfgexpand.c (expand_gimple_basic_block): Do not handle
21769 GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
21770 * expr.c (expand_expr_real_1): Likewise.
21771 * gimple-low.c (lower_stmt): Likewise.
21772 * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
21773 (dump_gimple_cdt): Remove.
21774 * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
21775 (gimple_size): Likewise.
21776 (walk_gimple_op): Likewise.
21777 (is_gimple_stmt): Likewise.
21778 (walk_stmt_load_store_addr_ops): Likewise.
21779 (gimple_build_cdt): Remove.
21780 * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
21781 * gimple.h (gimple_cdt_new_type): Remove.
21782 (gimple_cdt_new_type_ptr): Likewise.
21783 (gimple_cdt_set_new_type): Likewise.
21784 (gimple_cdt_location): Likewise.
21785 (gimple_cdt_location_ptr): Likewise.
21786 (gimple_cdt_set_location): Likewise.
21787 * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
21788 * tree-cfg.c (remove_useless_stmts_1): Do not handle
21789 GIMPLE_CHANGE_DYNAMIC_TYPE.
21790 (verify_types_in_gimple_stmt): Likewise.
21791 * tree-inline.c (estimate_num_insns): Likewise.
21792 (expand_call_inline): Do not copy DECL_NO_TBAA_P.
21793 (copy_decl_to_var): Likewise.
21794 (copy_result_decl_to_var): Likewise.
21795 * tree-pretty-print.c (dump_generic_node): Do not handle
21796 CHANGE_DYNAMIC_TYPE_EXPR.
21797 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
21798 * tree-ssa-operands.c (get_expr_operands): Likewise.
21799 * tree-ssa-structalias.c (struct variable_info): Remove
21800 no_tbaa_pruning member.
21801 (new_var_info): Do not set it based on DECL_NO_TBAA_P.
21802 (unify_nodes): Do not copy it.
21803 (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
21804 (dump_solution_for_var): Do not dump no_tbaa_pruning state.
21805 (set_uids_in_ptset): Do not check it.
21806 (find_what_var_points_to): Likewise.
21807 (compute_tbaa_pruning): Remove.
21808 (compute_points_to_sets): Do not call it.
21809 * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
21810 * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
21811 * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
21812 (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
21813 (DECL_NO_TBAA_P): Likewise.
21814 (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
21815 * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
21816 (expand_omp_atomic_pipeline): Do not set it.
21817 * print-tree.c (print_node): Do not dump it.
21818 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
21819 redundant check.
21820
21821 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
21822
21823 PR target/39856
21824 * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
21825 for clobber.
21826
21827 2009-05-22 Mark Mitchell <mark@codesourcery.com>
21828
21829 * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
21830 non-external.
21831
21832 2009-05-22 Ben Elliston <bje@au.ibm.com>
21833
21834 * Makefile.in (bversion.h, s-bversion): New targets.
21835 (TOPLEV_H): Add bversion.h.
21836 * toplev.h: Include "bversion.h".
21837 (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
21838 the __format__ attribute only if compiling with the same version
21839 of GCC as the sources (the "build version").
21840
21841 2009-05-22 Ben Elliston <bje@au.ibm.com>
21842
21843 * c-format.c (handle_format_attribute): Fix comment typo.
21844
21845 2009-05-21 Steve Ellcey <sje@cup.hp.com>
21846
21847 PR target/37846
21848 * config/ia64/ia64.opt (mfused-madd): New.
21849 * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
21850 * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
21851 * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
21852 madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
21853 nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
21854 msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
21855 nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
21856 * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
21857 instruction if !TARGET_FUSED_MADD.
21858 (fpma, fpms): Remove colon from name.
21859
21860 2009-05-22 Richard Guenther <rguenther@suse.de>
21861
21862 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
21863 TMR_ORIGINAL. Always either record TMR_SYMBOL or TMR_BASE.
21864 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
21865 TARGET_MEM_REF.
21866 (create_expression_by_pieces): Only convert if necessary.
21867 * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
21868 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
21869
21870 2009-05-21 Adam Nemet <anemet@caviumnetworks.com>
21871
21872 * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
21873 regular pattern from a template and rename it ...
21874 (*extzv_truncsi_exts): ... to this.
21875
21876 2009-05-21 Richard Guenther <rguenther@suse.de>
21877
21878 * cgraph.h (struct cgraph_node): Remove inline_decl member.
21879 * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
21880 (cgraph_default_inline_p): Likewise.
21881 (cgraph_decide_inlining_incrementally): Likewise.
21882
21883 2009-05-21 H.J. Lu <hongjiu.lu@intel.com>
21884 Uros Bizjak <ubizjak@gmail.com>
21885
21886 * config/i386/cpuid.h (bit_MOVBE): New.
21887
21888 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
21889
21890 * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
21891 (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
21892 (ix86_handle_option): Handle OPT_mmovbe.
21893 (ix86_target_string): Add -mmovbe.
21894 (pta_flags): Add PTA_MOVBE.
21895 (processor_alias_table): Add PTA_MOVBE to "atom".
21896 (override_options): Handle PTA_MOVBE.
21897
21898 * config/i386/i386.h (TARGET_MOVBE): New.
21899
21900 * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
21901 (*bswapsi_movbe): New.
21902 (*bswapdi_movbe): Likewise.
21903 (bswapdi2): Renamed to ...
21904 (*bswapdi_1): This.
21905 (bswapdi2): New expander.
21906
21907 * config/i386/i386.opt (mmovbe): New.
21908
21909 * doc/invoke.texi: Document -mmovbe.
21910
21911 2009-05-21 Taras Glek <tglek@mozilla.com>
21912
21913 * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
21914 * gcc-plugin.h (plugin_init): Updated signature.
21915 * gcc-plugin.h (plugin_name_args): Moved to this header.
21916 * doc/plugins.texi (plugin_init): Updated documention to reflect
21917 API change.
21918 * doc/plugins.texi (plugin_name_args): Added to documention.
21919
21920 2009-05-21 Mark Mitchell <mark@codesourcery.com>
21921
21922 * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
21923 (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
21924
21925 2009-05-21 Shujing Zhao <pearly.zhao@oracle.com>
21926
21927 * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
21928 JUMP_TABLE_DATA_P predicates where applicable.
21929 * config/i386/predicates.md: Ditto.
21930 * config/i386/sse.md: Ditto.
21931
21932 2009-05-21 Jakub Jelinek <jakub@redhat.com>
21933
21934 * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
21935 operand2 -128 override length_immediate attribute to 1.
21936 * config/i386/predicates.md (constm128_operand): New predicate.
21937
21938 * config/i386/i386.c (memory_address_length): Handle %r12
21939 the same as %rsp and %r13 the same as %rbp. For %rsp and %rbp
21940 also check REGNO.
21941 (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
21942 mode look through optional ZERO_EXTEND and SUBREG.
21943 * config/i386/i386.md (R12_REG): New define_constant.
21944 (prefix_data16): For sse unit set also for MODE_TI insns.
21945 (prefix_rex): For -m32 always return 0. For TYPE_IMOVX
21946 insns set if operand 1 is ext_QIreg_operand.
21947 (modrm): For TYPE_IMOV clear only if not MODE_DI. For
21948 TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
21949 immediate.
21950 (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
21951 mode from MODE_DI to MODE_SI.
21952 (movdi_1_rex64): Override modrm and length_immediate attributes
21953 only for movabs (TYPE_IMOV, alternative 2).
21954 (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
21955 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
21956 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
21957 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
21958 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
21959 prefix_rex attribute if DImode.
21960 (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
21961 *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
21962 *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
21963 *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
21964 attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
21965 (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
21966 Likewise. For TYPE_IMOV clear length_immediate attribute.
21967 (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
21968 *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
21969 *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
21970 *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
21971 *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
21972 or one operand TYPE_ISHIFT.
21973 (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
21974 *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
21975 *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
21976 *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
21977 *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
21978 *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
21979 *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
21980 *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
21981 *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
21982 *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
21983 *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
21984 *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
21985 *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
21986 *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
21987 *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
21988 *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
21989 *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
21990 set mode attribute, don't override length attribute.
21991 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
21992 to 1.
21993 (return_internal_long): Set length attribute to 2 instead of 1.
21994 (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
21995 *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
21996 prefix_rex attribute.
21997 * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
21998 New predicates.
21999 (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
22000
22001 2009-05-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22002
22003 * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
22004
22005 2009-05-20 Ian Lance Taylor <iant@google.com>
22006
22007 * tree.c (build_tree_list_vec_stat): New function.
22008 (ctor_to_vec): New function.
22009 (build_nt_call_vec): New function.
22010 (build_call_array): Change args to be a const pointer.
22011 (build_call_vec): New function.
22012 * tree.h (build_nt_call_vec): Declare.
22013 (build_tree_list_vec_stat): Declare.
22014 (build_tree_list_vec): Define.
22015 (build_call_array): Update declaration.
22016 (build_call_vec): Declare.
22017 (ctor_to_vec): Declare.
22018 * c-common.c (tree_vector_cache): New static variable.
22019 (make_tree_vector): New function.
22020 (release_tree_vector): New function.
22021 (make_tree_vector_single): New function.
22022 (make_tree_vector_copy): New function.
22023 * c-common.h (tree_vector_cache, make_tree_vector): Declare.
22024 (make_tree_vector_single, make_tree_vector_copy): Declare.
22025 * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
22026 (c_parser_expr_list): Don't manage cache here, instead call
22027 make_tree_vector.
22028 (c_parser_release_expr_list): Remove static function.
22029 (c_parser_vec_to_tree_list): Remove static function.
22030 (c_parser_attributes): Call build_tree_list_vec instead of
22031 c_parser_vec_to_tree_list. Call release_tree_vector instead of
22032 c_parser_release_expr_list.
22033 (c_parser_postfix_expression_after_primary): Likewise.
22034 (c_parser_objc_keywordexpr): Likewise.
22035
22036 2009-05-20 Sandra Loosemore <sandra@codesourcery.com>
22037
22038 * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
22039 TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
22040 TARGET_CONVERT_TO_TYPE.
22041 * hooks.c (hook_tree_const_tree_null): Define.
22042 * hooks.h (hook_tree_const_tree_null): Declare.
22043 * target.h (struct gcc_target): Add invalid_parameter_type,
22044 invalid_return_type, promoted_type, and convert_to_type fields.
22045 * target-def.h (TARGET_INVALID_PARAMETER_TYPE): Define.
22046 (TARGET_INVALID_RETURN_TYPE): Define.
22047 (TARGET_PROMOTED_TYPE): Define.
22048 (TARGET_CONVERT_TO_TYPE): Define.
22049 (TARGET_INITIALIZER): Update for new fields.
22050 * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
22051 (grokparms): Check targetm.invalid_parameter_type.
22052 * c-typeck.c (default_conversion): Check targetm.promoted_type.
22053 * c-convert.c (convert): Check targetm.convert_to_type.
22054
22055 2009-05-20 Adam Nemet <anemet@caviumnetworks.com>
22056
22057 * config/mips/mips.md (*extenddi_truncate<mode>,
22058 *extendsi_truncate<mode>): Emit exts if supported. Add attribute
22059 defintions.
22060 (*extendhi_truncateqi): New define_insn_and_sptit.
22061
22062 2009-05-20 Jakub Jelinek <jakub@redhat.com>
22063
22064 PR middle-end/40204
22065 * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
22066 recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
22067
22068 2009-05-20 Eric Botcazou <ebotcazou@adacore.com>
22069
22070 * fold-const.c (build_fold_addr_expr_with_type): Take the address of
22071 the operand of VIEW_CONVERT_EXPR.
22072
22073 2009-05-20 H.J. Lu <hongjiu.lu@intel.com>
22074
22075 * config/i386/driver-i386.c (host_detect_local_cpu): Check
22076 extended family and model for Intel processors. Support Intel Atom.
22077
22078 2009-05-20 Olivier Hainque <hainque@adacore.com>
22079
22080 * gstab.h (stab_code_type): Define, to be used instead of the
22081 __stab_debug_code enum, made anonymous. Add 2009 to the copyright
22082 notice.
22083 * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
22084 occurrences by stab_code_type.
22085 * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
22086
22087 2009-05-20 Martin Jambor <mjambor@suse.cz>
22088
22089 * tree-flow.h (insert_edge_copies_seq): Undeclare.
22090 (sra_insert_before): Likewise.
22091 (sra_insert_after): Likewise.
22092 (sra_init_cache): Likewise.
22093 (sra_type_can_be_decomposed_p): Likewise.
22094 * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
22095 * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
22096 (sra_insert_before): Likewise.
22097 (sra_insert_after): Likewise.
22098 (sra_init_cache): Likewise.
22099 (insert_edge_copies_seq): Made static and moved upwards.
22100
22101 * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
22102 case.
22103
22104 * tree-flow-inline.h (contains_view_convert_expr_p): New function.
22105
22106 * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
22107 (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
22108 simple copies.
22109
22110 2009-05-20 Richard Guenther <rguenther@suse.de>
22111
22112 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
22113 with mismatched comparison modes.
22114
22115 2009-05-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22116
22117 * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
22118 (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
22119 * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
22120 with shifts for Thumb2.
22121 (orsi_notsi): New for orn.
22122 (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
22123 (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
22124 * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
22125 (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
22126 Don't invert remainder for IOR.
22127
22128 2009-05-19 Zdenek Dvorak <ook@ucw.cz>
22129
22130 PR tree-optimization/40087
22131 * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
22132 number_of_iterations_ne): Rename never_infinite argument.
22133 (number_of_iterations_lt_to_ne, number_of_iterations_lt,
22134 number_of_iterations_le): Handle pointer-type ivs when
22135 exit_must_be_taken is false.
22136 (number_of_iterations_cond): Do not always assume that
22137 exit_must_be_taken if the control variable is a pointer.
22138
22139 2009-05-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
22140
22141 * c-typeck.c (build_binary_op): Allow % on integal vectors.
22142 * doc/extend.texi (Vector Extension): Document that % is allowed too.
22143
22144 2009-05-19 H.J. Lu <hongjiu.lu@intel.com>
22145
22146 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
22147 ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
22148
22149 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
22150
22151 PR c/40172
22152 * c.opt (Wlogical-op): Disabled by default.
22153 * c-opt (c_common_post_options): Do not enable Wlogical-op with
22154 Wextra.
22155 * doc/invoke.texi (Wlogical-op): Likewise.
22156
22157 2009-05-19 Eric Botcazou <ebotcazou@adacore.com>
22158
22159 * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
22160 into CASE_CONVERT.
22161 <PLUS_EXPR>: Strip useless type conversions instead of type nops.
22162 Propagate the type of the first operand.
22163 <ASSERT_EXPR>: Simplify.
22164 (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
22165 Rewrite using the RHS code as discriminant.
22166 <NOP_EXPR>: Turn into CASE_CONVERT.
22167 <PLUS_EXPR>: Propagate the type of the first operand.
22168
22169 2009-05-19 Steve Ellcey <sje@cup.hp.com>
22170
22171 * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
22172 (ia64_dconst_0_375): New.
22173 * config/ia64/ia64.c (ia64_override_options): Remove
22174 -minline-sqrt-min-latency warning.
22175 (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
22176 (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
22177 * config/ia64/ia64.md (*sqrt_approx): Remove.
22178 (sqrtsf2): Remove #if 0.
22179 (sqrtsf2_internal_thr): Rewrite and move to div.md.
22180 (sqrtdf): Remove assert.
22181 (sqrtdf2_internal_thr): Rewrite and move to div.md.
22182 (sqrtxf2): Remove #if 0.
22183 (sqrtxf2_internal_thr): Rewrite and move to div.md.
22184 * div.md (sqrt_approx_rf): New.
22185 (sqrtsf2_internal_thr): New implementation.
22186 (sqrtsf2_internal_lat): New.
22187 (sqrtdf2_internal_thr: New implementation.
22188 (sqrtxf2_internal): New implementation.
22189
22190 2009-05-19 Francois-Xavier Coudert <fxcoudert@gmail.com>
22191 Hans-Peter Nilsson <hp@axis.com>
22192
22193 * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
22194 (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
22195 (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
22196 (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
22197 (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
22198 (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
22199 (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
22200 (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
22201 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
22202 (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
22203 * c-common.c: ...from here.
22204
22205 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
22206
22207 * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
22208
22209 2009-05-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22210
22211 * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
22212
22213 2009-05-19 Ben Elliston <bje@au.ibm.com>
22214
22215 * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
22216 assignments with memcpy calls.
22217 (add_fdes): Likewise.
22218 (binary_search_unencoded_fdes): Likewise.
22219 (linear_search_fdes): Eliminate type puns.
22220
22221 2009-05-19 Richard Guenther <rguenther@suse.de>
22222
22223 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
22224 not falsely claim to have propagated into all uses.
22225
22226 2009-05-19 Ben Elliston <bje@au.ibm.com>
22227
22228 * doc/invoke.texi (C Dialect Options): Update OpenMP specification
22229 version to v3.0.
22230
22231 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
22232
22233 * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
22234 * config/sh/sh.c (sh_legitimate_address_p): Make static.
22235 (TARGET_LEGITIMATE_ADDRESS_P): New.
22236 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22237 * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
22238
22239 2009-05-18 Dodji Seketeli <dodji@redhat.com>
22240
22241 PR debug/40109
22242 * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
22243 child of the containing namespace's DIE.
22244
22245 2009-05-18 Adam Nemet <anemet@caviumnetworks.com>
22246
22247 * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
22248 *zero_extendhi_truncqi): Move after the zero_extend patterns.
22249 (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
22250 extend patterns.
22251
22252 2009-05-18 H.J. Lu <hongjiu.lu@intel.com>
22253
22254 PR target/39942
22255 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
22256 gen_align with gen_pad.
22257 (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
22258 #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
22259
22260 * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
22261 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
22262
22263 * config/i386/i386.md (align): Renamed to ...
22264 (pad): This. Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
22265 ASM_OUTPUT_MAX_SKIP_PAD.
22266
22267 2009-05-18 Andreas Schwab <schwab@linux-m68k.org>
22268
22269 * config.gcc: Fix variable syntax.
22270
22271 PR target/39531
22272 * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
22273 before calling exact_log2.
22274 (output_iorsi3): Likewise.
22275 (output_xorsi3): Likewise.
22276
22277 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
22278
22279 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
22280 for the none zero constant operand except for EQ and NE
22281 comprisons even when the first operand is R0.
22282
22283 2009-05-18 Andreas Krebbel <krebbel1@de.ibm.com>
22284
22285 * config/s390/2064.md: Remove trailing whitespaces.
22286 * config/s390/2084.md: Likewise.
22287 * config/s390/constraints.md: Likewise.
22288 * config/s390/fixdfdi.h: Likewise.
22289 * config/s390/libgcc-glibc.ver: Likewise.
22290 * config/s390/s390-modes.def: Likewise.
22291 * config/s390/s390-protos.h: Likewise.
22292 * config/s390/s390.c: Likewise.
22293 * config/s390/s390.h: Likewise.
22294 * config/s390/s390.md: Likewise.
22295 * config/s390/tpf-unwind.h: Likewise.
22296
22297 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
22298
22299 * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
22300
22301 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
22302
22303 M68K TLS support.
22304 * configure.ac (m68k-*-*): Check if binutils support TLS.
22305 * configure: Regenerate.
22306 * config/m68k/predicates.md (symbolic_operand): Extend comment.
22307 * config/m68k/constraints.md (Cu): New constraint.
22308 * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
22309 (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
22310 (movsi): Handle TLS symbols.
22311 (addsi3_5200): Handle XTLS symbols, indent.
22312 * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
22313 (m68k_tls_reference_p): Declare.
22314 (m68k_legitimize_address): Declare.
22315 (m68k_unwrap_symbol): Declare.
22316 * config/m68k/m68k.opt (mxtls): New option.
22317 * config/m68k/m68k.c (ggc.h): Include.
22318 (m68k_output_dwarf_dtprel): Implement hook.
22319 (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
22320 (m68k_expand_prologue): Load GOT pointer when function needs it.
22321 (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
22322 (m68k_legitimate_constant_address_p): Same.
22323 (m68k_decompose_address): Handle TLS references.
22324 (m68k_get_gp): New static function.
22325 (enum m68k_reloc): New contants.
22326 (TLS_RELOC_P): New macro.
22327 (m68k_wrap_symbol): New static function.
22328 (m68k_unwrap_symbol): New function.
22329 (m68k_final_prescan_insn_1): New static function.
22330 (m68k_final_prescan_insn): New function.
22331 (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
22332 functions.
22333 (legitimize_pic_address): Handle TLS references..
22334 (m68k_tls_get_addr, m68k_get_tls_get_addr)
22335 (m68k_libcall_value_in_a0_p)
22336 (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
22337 (m68k_call_m68k_read_tp): Helper variables and functions for ...
22338 (m68k_legitimize_tls_address): Handle TLS references.
22339 (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
22340 New functions.
22341 (m68k_legitimize_address): Handle TLS symbols.
22342 (m68k_get_reloc_decoration): New static function.
22343 (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
22344 UNSPEC_RELOC32.
22345 (m68k_output_dwarf_dtprel): Implement hook.
22346 (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
22347 (m68k_libcall_value): Return result in A0 instead of D0 when asked by
22348 m68k_call_* routines.
22349 (sched_attr_op_type): Handle TLS symbols.
22350 (gt-m68k.h): Include.
22351 * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
22352 (LEGITIMATE_PIC_OPERAND_P): Support TLS.
22353
22354 2009-05-18 Martin Jambor <mjambor@suse.cz>
22355
22356 * ipa-prop.c (ipa_check_stmt_modifications): Removed.
22357 (visit_store_addr_for_mod_analysis): New function.
22358 (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
22359 (determine_cst_member_ptr): Use gimple_assign_single_p.
22360 (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
22361 (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
22362 operands. Don't check number of operands of a NOP_EXPR.
22363
22364 2009-05-18 Eric Fisher <joefoxreal@gmail.com>
22365
22366 * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
22367
22368 2009-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
22369
22370 PR c/40172
22371 * c-common.c (warn_logical_operator): Don't warn if one of
22372 expression isn't always true or false.
22373
22374 2009-05-17 Kai Tietz <kai.tietz@onevision.com>
22375
22376 * config/i386/biarch32.h: New file.
22377 * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
22378
22379 2009-05-17 Adam Nemet <anemet@caviumnetworks.com>
22380
22381 * config/mips/mips.md (*zero_extend<mode>_trunchi,
22382 *zero_extend<mode>_truncqi): Merge these into ...
22383 (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
22384 Name the pattern following this as *zero_extendhi_truncqi.
22385
22386 2009-05-16 Brad Lucier <lucier@math.purdue.edu>
22387
22388 PR middle-end/39301
22389 * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
22390 * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
22391 (output_info): Make field HOST_WIDEST_INT.
22392 (print_statistics): Use HOST_WIDEST_INT_PRINT.
22393 (dump_bitmat_statistics): Same.
22394
22395 2009-05-16 Francois-Xavier Coudert <fxcoudert@gmail.com>
22396
22397 * config.gcc (use_gcc_stdint): Set to wrap.
22398 * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
22399 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
22400 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
22401 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
22402 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
22403 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
22404 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
22405 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
22406
22407 2009-05-16 Joseph Myers <joseph@codesourcery.com>
22408
22409 * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
22410 tune_64.
22411 * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
22412 Move definitions earlier.
22413 (OPT_ARCH64, OPT_ARCH32): Define.
22414 (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
22415 and tune_64.
22416
22417 2009-05-16 Richard Earnshaw <rearnsha@arm.com>
22418
22419 PR target/40153
22420 * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
22421 implies.
22422
22423 2009-05-16 Richard Earnshaw <rearnsha@arm.com>
22424
22425 * arm.md (movdi2): Copy non-reg values to DImode registers.
22426
22427 2009-05-16 Jakub Jelinek <jakub@redhat.com>
22428
22429 PR target/39942
22430 * final.c (label_to_max_skip): New function.
22431 (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
22432 CODE_LABEL_NUMBER <= max_labelno.
22433 * output.h (label_to_max_skip): New prototype.
22434 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
22435 (ix86_avoid_jump_mispredicts): ... this. Don't define if
22436 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined. Update comment.
22437 Handle CODE_LABELs with >= 16 byte alignment or with
22438 max_skip == (1 << align) - 1.
22439 (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
22440 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
22441
22442 PR target/39942
22443 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
22444 .p2align 3 if MAX_SKIP is smaller than 7.
22445 * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
22446
22447 2009-05-15 Ian Lance Taylor <iant@google.com>
22448
22449 * alias.c (struct alias_set_entry_d): Rename from struct
22450 alias_set_entry. Change all uses.
22451 * except.c (struct call_site_record_d): Rename from struct
22452 call_site_record. Change all uses.
22453 * except.h (struct eh_region_d): Rename from struct eh_region.
22454 Change all uses.
22455 * gcse.c (struct hash_table_d): Rename from struct hash_table.
22456 Change all uses.
22457 * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
22458 ivtype_map_elt. Change all uses.
22459 (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
22460 Change all uses.
22461 (struct ifsese_d): Rename fromstruct ifsese. Change all uses.
22462 * graphite.h (struct name_tree_d): Rename from struct name_tree.
22463 Change all uses.
22464 (struct sese_d): Rename from struct sese. Change all uses.
22465 * omega.h (struct eqn_d): Rename from struct eqn. Change all uses.
22466 (struct omega_pb_d): Rename from struct omega_pb. Change all uses.
22467 * optabs.h (struct optab_d): Rename from struct optab. Change all
22468 uses.
22469 (struct convert_optab_d): Rename from struct convert_optab.
22470 Change all uses.
22471 * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
22472 ipa_opt_pass. Change all uses.
22473 * tree-predcom.c (struct dref_d): Rename from struct dref. Change
22474 all uses.
22475
22476 * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
22477 defined as a typedef.
22478 (grokdeclarator): If -Wc++-compat, warn if a typedef is already
22479 defined as a tag.
22480
22481 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
22482
22483 PR 16302
22484 * fold-const.c (make_range,build_range_check,merge_ranges): Move
22485 declaration to...
22486 (merge_ranges): Returns bool.
22487 * tree.h (make_range): .. to here.
22488 (build_range_check): Likewise.
22489 (merge_ranges): Likewise. Renamed from merge_ranges.
22490 * c-typeck.c (parser_build_binary_op): Update calls to
22491 warn_logical_operator.
22492 * c-common.c (warn_logical_operator): Add new warning.
22493 * c-common.h (warn_logical_operator): Update declaration.
22494
22495 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
22496
22497 * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
22498
22499 2009-05-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22500
22501 * doc/install.texi: Document MPC requirements, flags etc.
22502
22503 * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
22504 (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
22505 Evaluate constant arguments.
22506 (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
22507 (fold_builtin_1): Likewise, also evaluate constant arguments.
22508 Remove superfluous break.
22509 (do_mpc_ckconv): New.
22510 * real.h: Include mpc.h.
22511 * toplev.c (print_version): Output MPC version info if available.
22512
22513 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
22514
22515 * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
22516
22517 2009-05-15 H.J. Lu <hongjiu.lu@intel.com>
22518
22519 * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
22520 only once.
22521
22522 2009-05-15 Jan Hubicka <jh@suse.cz>
22523
22524 * doc/invoke.texi (max-early-inliner-iterations): New flag.
22525 * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
22526 (try_inline): Fix return value.
22527 (cgraph_decide_inlining_incrementally): Honor new value.
22528 (cgraph_early_inlining): Handle indirect inlining.
22529 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
22530
22531 2009-05-15 Jan Hubicka <jh@suse.cz>
22532
22533 * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
22534 * cgraphunit.c (cgraph_finalize_function): Set it.
22535 (cgraph_expand_function): Use it.
22536
22537 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
22538
22539 * real.c (encode_ieee_half): Define.
22540 (decode_ieee_half): Define.
22541 (ieee_half_format): Define.
22542 (arm_half_format): Define.
22543 * real.h (ieee_half_format): Declare.
22544 (arm_half_format): Declare.
22545
22546 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
22547
22548 * optabs.c (prepare_float_lib_cmp): Test that the comparison,
22549 swapped, and reversed optabs exist before trying to use them.
22550
22551 2009-05-15 Paul Brook <paul@codesourcery.com>
22552 Sandra Loosemore <sandra@codesourcery.com>
22553
22554 * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
22555 loads. Allow PRE_DEC.
22556 (output_move_neon): Handle PRE_DEC.
22557 (arm_print_operand): Add 'A' for neon structure loads.
22558 * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
22559 * config/arm/neon.md (neon_mov): Update comment.
22560 * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
22561 calls.
22562 (Um): New constraint.
22563
22564 2009-05-15 Jan Hubicka <jh@suse.cz>
22565
22566 Revert the following patch until testsuite fallout is fixed:
22567 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
22568 * cgraph.h (struct inline_summary): New filed self_wize,
22569 size_inlining_benefit, self_time and time_inlining_benefit.
22570 (struct cgraph_global_info): Replace insns by time ans size fields.
22571 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
22572 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
22573 (ipcp_update_callgraph): Do not touch function bodies.
22574 * ipa-inline.c: Include except.h
22575 (MAX_TIME): New constant.
22576 (overall_insns): Remove
22577 (overall_size, max_benefit): New static variables.
22578 (cgraph_estimate_time_after_inlining): New function.
22579 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
22580 (cgraph_clone_inlined_nodes): Update size.
22581 (cgraph_mark_inline_edge): Update size.
22582 (cgraph_estimate_growth): Use size info.
22583 (cgraph_check_inline_limits): Check size.
22584 (cgraph_default_inline_p): Likewise.
22585 (cgraph_edge_badness): Compute badness based on benefit and size cost.
22586 (cgraph_decide_recursive_inlining): Check size.
22587 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
22588 and times.
22589 (cgraph_decide_inlining): Likewise.
22590 (cgraph_decide_inlining_incrementally): Likewise; honor
22591 PARAM_EARLY_INLINING_INSNS.
22592 (likely_eliminated_by_inlining_p): New predicate.
22593 (estimate_function_body_sizes): New function.
22594 (compute_inline_parameters): Use it.
22595 * except.c (must_not_throw_labels): New function.
22596 * except.h (must_not_throw_labels): Declare.
22597 * tree-inline.c (init_inline_once): Kill inlining_weigths
22598 * tree-ssa-structalias.c: Avoid uninitialized warning.
22599 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
22600 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
22601 (PARAM_INLINE_CALL_COST): Remove.
22602 (PARAM_EARLY_INLINING_INSNS): New.
22603
22604 2009-05-15 Richard Guenther <rguenther@suse.de>
22605
22606 * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
22607 not TODO_update_ssa.
22608
22609 2009-05-15 Richard Guenther <rguenther@suse.de>
22610
22611 PR tree-optimization/39999
22612 * gimple.h (gimple_expr_type): Use the expression type looking
22613 through useless conversions.
22614 * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
22615 (vn_nary_op_insert_stmt): Likewise.
22616 (simplify_binary_expression): Likewise.
22617
22618 2009-05-15 Richard Guenther <rguenther@suse.de>
22619
22620 * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
22621 New options, enabled by default.
22622 * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
22623 Document.
22624 * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
22625 * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
22626 * tree-ssa-structalias.c (gate_tree_pta): New function.
22627 (pass_build_alias): Use it.
22628
22629 2009-05-15 Joseph Myers <joseph@codesourcery.com>
22630
22631 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
22632 recurse on an invariant address if a conversion from a pointer
22633 type to a wider integer type is involved.
22634
22635 2009-05-15 Jan Hubicka <jh@suse.cz>
22636
22637 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
22638 * cgraph.h (struct inline_summary): New filed self_wize,
22639 size_inlining_benefit, self_time and time_inlining_benefit.
22640 (struct cgraph_global_info): Replace insns by time ans size fields.
22641 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
22642 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
22643 (ipcp_update_callgraph): Do not touch function bodies.
22644 * ipa-inline.c: Include except.h
22645 (MAX_TIME): New constant.
22646 (overall_insns): Remove
22647 (overall_size, max_benefit): New static variables.
22648 (cgraph_estimate_time_after_inlining): New function.
22649 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
22650 (cgraph_clone_inlined_nodes): Update size.
22651 (cgraph_mark_inline_edge): Update size.
22652 (cgraph_estimate_growth): Use size info.
22653 (cgraph_check_inline_limits): Check size.
22654 (cgraph_default_inline_p): Likewise.
22655 (cgraph_edge_badness): Compute badness based on benefit and size cost.
22656 (cgraph_decide_recursive_inlining): Check size.
22657 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
22658 and times.
22659 (cgraph_decide_inlining): Likewise.
22660 (cgraph_decide_inlining_incrementally): Likewise; honor
22661 PARAM_EARLY_INLINING_INSNS.
22662 (likely_eliminated_by_inlining_p): New predicate.
22663 (estimate_function_body_sizes): New function.
22664 (compute_inline_parameters): Use it.
22665 * except.c (must_not_throw_labels): New function.
22666 * except.h (must_not_throw_labels): Declare.
22667 * tree-inline.c (init_inline_once): Kill inlining_weigths
22668 * tree-ssa-structalias.c: Avoid uninitialized warning.
22669 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
22670 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
22671 (PARAM_INLINE_CALL_COST): Remove.
22672 (PARAM_EARLY_INLINING_INSNS): New.
22673 doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
22674 (inline-call-cost): Remove.
22675 (early-inlining-insns): New.
22676
22677 2009-05-15 Eric Botcazou <ebotcazou@adacore.com>
22678
22679 * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters. Use them
22680 for bounds.
22681 (print_int_cst_bounds_in_octal_p): Likewise.
22682 (dbxout_type): Adjust calls to above functions. Be prepared to deal
22683 with subtypes.
22684 * dwarf2out.c (base_type_die): Likewise.
22685 (is_subrange_type): Delete.
22686 (subrange_type_die): Add LOW and HIGH parameters. Use them for bounds.
22687 (modified_type_die): Call subrange_type_for_debug_p on subtypes.
22688 * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
22689 if the destination type is boolean.
22690 (build_range_check): Do not special-case subtypes.
22691 (fold_sign_changed_comparison): Likewise.
22692 (fold_unary): Likewise.
22693 * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
22694 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
22695 * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
22696 * tree.c (subrange_type_for_debug_p): New predicate based on the
22697 former is_subrange_type.
22698 * tree.h (subrange_type_for_debug_p): Declare.
22699 * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
22700 (convert_affine_scev): Remove call to above function.
22701 (chrec_convert_aggressive): Likewise.
22702 * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
22703 false for conversions involving subtypes.
22704 * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
22705 (vrp_val_min): Likewise.
22706 (needs_overflow_infinity): Likewise.
22707 (extract_range_from_unary_expr): Likewise.
22708
22709 2009-05-15 Paolo Bonzini <bonzini@gnu.org>
22710
22711 * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
22712 * config/frv/frv.c: Likewise.
22713 * config/s390/s390.c: Likewise.
22714 * config/sparc/sparc.h: Likewise.
22715 * config/i386/i386.h: Likewise.
22716 * config/i386/i386.c: Likewise.
22717 * config/crx/crx.c: Likewise.
22718 * config/m68hc11/m68hc11.h: Likewise.
22719 * config/iq2000/iq2000.c: Likewise.
22720 * config/mn10300/mn10300.h: Likewise.
22721 * config/mn10300/mn10300.c: Likewise.
22722 * config/m68k/m68k.c: Likewise.
22723 * config/rs6000/rs6000.c: Likewise.
22724 * config/rs6000/xcoff.h: Likewise.
22725 * config/rs6000/linux64.h: Likewise.
22726 * config/rs6000/sysv4.h: Likewise.
22727 * config/score/score3.c: Likewise.
22728 * config/score/score7.c: Likewise.
22729 * config/score/score.c: Likewise.
22730 * config/arm/arm.md: Likewise.
22731 * config/mips/mips.c: Likewise.
22732 * config/mips/mips.md: Likewise.
22733 * config/bfin/bfin.h: Likewise.
22734 * config/pa/pa.c: Likewise.
22735 * config/pa/constraints.md: Likewise.
22736
22737 * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
22738 * config/pdp11/pdp11.c (legitimate_address_p): Delete.
22739 * config/pdp11/pdp11.h: Use memory_address_p instead.
22740
22741 2009-05-14 Ian Lance Taylor <iant@google.com>
22742
22743 * passes.c (finish_optimization_passes): Change i to int.
22744 * plugin.c (plugins_active_p): Change event to int.
22745 (dump_active_plugins): Likewise.
22746 * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
22747 Add cast.
22748 * tree.c (tree_range_check_failed): Change c to unsigned int.
22749 (omp_clause_range_check_failed): Likewise.
22750 (build_common_builtin_nodes): Change mode to int. Add cast.
22751 * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
22752 (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
22753
22754 * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
22755 ++ or -- with a variable of enum type.
22756
22757 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
22758
22759 PR driver/40144
22760 * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
22761
22762 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
22763
22764 * store-motion.c: Do not include params.h
22765 * Makefile.in: Fix dependencies for various files.
22766
22767 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
22768
22769 * auto-inc-dec.c: Fix pass description, remove apparent
22770 accidental duplication.
22771
22772 2009-05-14 H.J. Lu <hongjiu.lu@intel.com>
22773
22774 PR middle-end/40147
22775 * ipa-utils.h (memory_identifier_string): Moved to ...
22776 * tree.h (memory_identifier_string): Here. Add GTY(()).
22777
22778 2009-05-14 Paolo Bonzini <bonzini@gnu.org>
22779
22780 * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
22781 in the former documentation of...
22782 (GO_IF_LEGITIMATE_ADDRESS): ... this.
22783 * ira-conflicts.c (get_dup_num): Use address_operand.
22784 * targhooks.c (default_legitimate_address_p): New.
22785 * targhooks.h (default_legitimate_address_p): New.
22786 * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
22787 Call hook.
22788 * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
22789 * target.h (struct target): Add legitimate_address_p.
22790 * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
22791 (TARGET_INITIALIZER): Include it.
22792
22793 * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22794 * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
22795 * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
22796 (TARGET_LEGITIMATE_ADDRESS_P): New.
22797
22798 * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22799 (REG_OK_STRICT_P): Delete.
22800 * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
22801 (frv_legitimate_address_p_1): ... this.
22802 * config/frv/frv.c (frv_legitimate_address_p): Forward to...
22803 (frv_legitimate_address_p_1): ... the renamed old
22804 frv_legitimate_address_p.
22805 * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
22806 (TARGET_LEGITIMATE_ADDRESS_P): New.
22807
22808 * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22809 * config/s390/s390-protos.h (legitimate_address_p): Remove.
22810 * config/s390/s390.c (legitimate_address_p): Rename to...
22811 (s390_legitimate_address_p): ... this, make static.
22812 (legitimize_address): Adjust call.
22813 (TARGET_LEGITIMATE_ADDRESS_P): New.
22814 * config/s390/constraints.md ("e"): Call strict_memory_address_p.
22815
22816 * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22817 * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
22818 * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
22819 (TARGET_LEGITIMATE_ADDRESS_P): New.
22820
22821 * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22822 * config/spu/spu-protos.h (spu_legitimate_address): Remove.
22823 * config/spu/spu.c (spu_legitimate_address): Rename to...
22824 (spu_legitimate_address_p): ... this, make static.
22825 (TARGET_LEGITIMATE_ADDRESS_P): New.
22826
22827 * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22828 * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
22829 * config/sparc/sparc.c (legitimate_address_p): Rename to...
22830 (sparc_legitimate_address_p): ... this, make static and return bool.
22831 (legitimize_address): Adjust call.
22832 (TARGET_LEGITIMATE_ADDRESS_P): New.
22833
22834 * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22835 * config/i386/i386-protos.h (legitimate_address_p): Remove.
22836 * config/i386/i386.c (legitimate_address_p): Rename to...
22837 (ix86_legitimate_address_p): ... this, make static.
22838 (constant_address_p): Move after it, adjust call.
22839 (TARGET_LEGITIMATE_ADDRESS_P): New.
22840
22841 * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22842 * config/avr/avr-protos.h (legitimate_address_p): Remove.
22843 * config/avr/avr.c (legitimate_address_p): Rename to...
22844 (avr_legitimate_address_p): ... this, make static.
22845 (legitimize_address): Adjust call.
22846 (TARGET_LEGITIMATE_ADDRESS_P): New.
22847
22848 * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22849 * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
22850 * config/crx/crx.c (crx_legitimate_address_p): Make static.
22851 (TARGET_LEGITIMATE_ADDRESS_P): New.
22852
22853 * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22854 * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
22855 * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
22856 (TARGET_LEGITIMATE_ADDRESS_P): New.
22857
22858 * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22859 * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
22860 Remove.
22861 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
22862 Make static.
22863 (TARGET_LEGITIMATE_ADDRESS_P): New.
22864
22865 * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22866 * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
22867 Remove.
22868 * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
22869 Rename to...
22870 (m68hc11_legitimate_address_p): ... this, make static.
22871 (go_if_legitimate_address_internal): Rename to...
22872 (m68hc11_legitimate_address_p_1): ... this.
22873 (legitimize_address): Adjust call.
22874 (TARGET_LEGITIMATE_ADDRESS_P): New.
22875
22876 * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22877 * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
22878 * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
22879 (TARGET_LEGITIMATE_ADDRESS_P): New.
22880
22881 * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22882 * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
22883 * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
22884 (mn10300_legitimate_address_p): ... this, make static.
22885 (TARGET_LEGITIMATE_ADDRESS_P): New.
22886
22887 * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22888 * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
22889 * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
22890 (TARGET_LEGITIMATE_ADDRESS_P): New.
22891
22892 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22893 (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
22894 (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
22895 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22896 * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
22897 * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
22898 (rs6000_legitimate_address_p): ... this, make static.
22899 (TARGET_LEGITIMATE_ADDRESS_P): New.
22900 (REG_MODE_OK_FOR_BASE_P): Delete.
22901 (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
22902
22903 * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22904 * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
22905 Delete.
22906 * config/picochip/picochip.c (picochip_legitimate_address_p): Make
22907 static, adjust types.
22908 (TARGET_LEGITIMATE_ADDRESS_P): New.
22909
22910 * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22911 * config/score/score.c (score_address_p): Rename to...
22912 (score_legitimate_address_p): ... this.
22913 (TARGET_LEGITIMATE_ADDRESS_P): New.
22914 * config/score/score3.c (score3_address_p): Rename to...
22915 (score3_legitimate_address_p): ... this.
22916 * config/score/score7.c (score7_address_p): Rename to...
22917 (score7_legitimate_address_p): ... this.
22918
22919 * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
22920 THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
22921 GO_IF_LEGITIMATE_ADDRESS): Delete.
22922 * config/arm/arm-protos.h (thumb1_legitimate_address_p,
22923 thumb2_legitimate_address_p): Delete.
22924 (arm_legitimate_address_p): Rename to...
22925 (arm_legitimate_address_outer_p): ... this.
22926 * config/arm/constraints.md ("Uq"): Adjust call.
22927 * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
22928 * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
22929 to...
22930 (arm_legitimate_address_outer_p): ... this.
22931 (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
22932 static.
22933 (TARGET_LEGITIMATE_ADDRESS_P): New.
22934
22935 * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22936 * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
22937 * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
22938 (TARGET_LEGITIMATE_ADDRESS_P): New.
22939
22940 * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22941 * config/vax/vax-protos.h (legitimate_address_p): Remove.
22942 * config/vax/vax.c (legitimate_address_p): Rename to...
22943 (vax_legitimate_address_p): ... this, make static.
22944 (TARGET_LEGITIMATE_ADDRESS_P): New.
22945
22946 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22947 * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
22948 * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
22949 (TARGET_LEGITIMATE_ADDRESS_P): New.
22950
22951 * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22952 * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
22953 * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
22954 (mmix_legitimate_address_p): ... this, make static.
22955 (TARGET_LEGITIMATE_ADDRESS_P): New.
22956
22957 * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22958 * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
22959 * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
22960 (TARGET_LEGITIMATE_ADDRESS_P): New.
22961
22962 2009-05-14 Paolo Bonzini <bonzini@gnu.org>
22963
22964 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
22965 of MODE_COMPLEX_INT.
22966
22967 2009-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
22968
22969 * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
22970 LCT_NORMAL in function call.
22971 * mips-tdump.c (print_file_desc): Add cast to enum type.
22972 * mips-tfile.c (add_ext_symbol): Add casts to enum types.
22973 (mark_stabs): Add casts to enum types.
22974 (parse_stabs_common): Add casts to enum types.
22975
22976 2009-05-13 Adam Nemet <anemet@caviumnetworks.com>
22977
22978 * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
22979 Check for invalid values of LETTER.
22980
22981 2009-05-13 Taras Glek <tglek@mozilla.com>
22982
22983 * attribs.c (register_attribute): moved out attribute registration
22984 into register_attribute.
22985 * doc/plugins.texi: Documented register_attribute and
22986 PLUGIN_ATTRIBUTES.
22987 * gcc-plugin.h: Added forward decl for register_attribute.
22988 * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
22989 * plugin.c (register_callback, invoke_plugin_callbacks): Added
22990 PLUGIN_ATTRIBUTES boilerplate.
22991
22992 2009-05-14 Dave Korn <dave.korn.cygwin@gmail.com>
22993
22994 * config/i386/msformat-c.c (ms_printf_length_specs): Use enumeration
22995 values even in sentinel and empty entries.
22996 (ms_printf_flag_specs): Likewise.
22997 (ms_scanf_flag_specs): Likewise.
22998 (ms_strftime_flag_specs): Likewise.
22999 (ms_print_char_table): Likewise.
23000 (ms_scan_char_table): Likewise.
23001 (ms_time_char_table): Likewise.
23002
23003 2009-05-13 Doug Kwan <dougkwan@google.com>
23004
23005 * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
23006
23007 2009-05-13 Adam Nemet <anemet@caviumnetworks.com>
23008
23009 * config/mips/mips.md (store): Add attributes for QI and HI.
23010 Update comment.
23011 (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
23012 (truncdi<mode>2): ... this new pattern.
23013
23014 2009-05-13 Brad Hards <bradh@kde.org>
23015
23016 * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
23017
23018 2009-05-14 Jakub Jelinek <jakub@redhat.com>
23019 Ben Elliston <bje@au.ibm.com>
23020
23021 PR middle-end/40035
23022 * dse.c (check_mem_read_rtx): Guard against width == -1.
23023
23024 2009-05-13 Michael Matz <matz@suse.de>
23025
23026 PR middle-end/39976
23027 * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
23028 (trivially_conflicts_p): New function.
23029 (insert_backedge_copies): Use it.
23030
23031 2009-05-13 Janis Johnson <janis187@us.ibm.com>
23032
23033 * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
23034 (handle_stdc_pragma): Use new enum constant names.
23035 (handle_pragma_float_const_decimal64): Ditto.
23036
23037 2009-05-13 Ian Lance Taylor <iant@google.com>
23038
23039 * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
23040 tree.def.
23041
23042 2009-05-13 Nathan Sidwell <nathan@codesourcery.com>
23043
23044 * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
23045 * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
23046 multilibs.
23047 * config/m68k/m68k.h (FL_UCLINUX): Define.
23048
23049 2009-05-13 Jan Hubicka <jh@suse.cz>
23050
23051 * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
23052
23053 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
23054
23055 * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
23056 unless -fschedule-insns is specified.
23057
23058 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
23059
23060 PR target/39561
23061 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
23062 TARGET_EXPAND_CBRANCHDI4.
23063 * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
23064 * config/sh/sh.opt (mexpand-cbranchdi): Remove.
23065 (cmpeqdi): Fix comment.
23066
23067 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
23068
23069 * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
23070 (sh_legitimate_address_p): Likewise.
23071 * config/sh/sh.c (sh_legitimate_index_p): New.
23072 (sh_legitimate_address_p): Likewise.
23073 * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
23074 (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
23075 (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
23076 (MAYBE_BASE_REGISTER_RTX_P): New macro.
23077 (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
23078 (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
23079 (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
23080 (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
23081 (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
23082
23083 2009-05-12 Jan Hubicka <jh@suse.cz>
23084
23085 * tree-inline.c (estimate_operator_cost): Add operands;
23086 when division happens by constant, it is cheap.
23087 (estimate_num_insns): Loads and stores are not having cost of 0;
23088 EH magic stuff is cheap; when computing runtime cost of switch,
23089 use log2 base of amount of its cases; builtin_expect has cost of 0;
23090 compute cost for moving return value of call.
23091 (init_inline_once): Initialize time_based flags.
23092 * tree-inline.h (eni_weights_d): Add time_based flag.
23093
23094 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
23095
23096 * df-core.c: Update head documentation.
23097
23098 2009-05-12 Michael Meissner <meissner@linux.vnet.ibm.com>
23099
23100 PR bootstrap/40118
23101 * rs6000.c (rs6000_generate_compare): Use op1b instead of
23102 shadowing exisiting variable op1.
23103
23104 2009-05-12 Uros Bizjak <ubizjak@gmail.com>
23105
23106 PR target/37179
23107 * config/i386/driver-i386.c (processor_signatures): New enum.
23108 (SIG_GEODE): Move from vendor_signatures to processor_signatures.
23109 (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
23110 processor signature to detect geode processor.
23111
23112 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
23113
23114 Revert:
23115
23116 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
23117
23118 * optabs.c (prepare_cmp_insn): Temporarily disable test that
23119 causes spurious differences between trunk and cond-optab branch.
23120
23121 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
23122
23123 * dojump.c (compare_from_rtx): Delete.
23124 * expmed.c (emit_store_flag): Only try cstore_optab. Canonicalize
23125 any MODE_CC mode to the cstorecc4 pattern. Use prepare_operand, fail
23126 if the comparison does not satisfy the predicate; test predicates for
23127 operands 2 and 3 of a cstore pattern. Don't try cstore optab
23128 further if one existing pattern fails.
23129 * expr.h (compare_from_rtx): Delete.
23130 (prepare_operand): Declare it.
23131 * optabs.c: Change "lib call" to "libcall" throughout.
23132 (bcc_gen_fctn, setcc_gen_code, trap_rtx,
23133 HAVE_conditional_trap, emit_cmp_insn): Delete.
23134 (can_compare_p): Delete cmp_optab case.
23135 (prepare_float_lib_cmp): Return an rtx and a machine mode.
23136 Accept other parameters by value.
23137 (prepare_operand): Make non-static.
23138 (prepare_cmp_insn): Return an rtx and a machine mode. Accept
23139 other parameters by value. Try to widen operands here based on
23140 an optab_methods argument and looking at cbranch_optab.
23141 (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
23142 loop. Use cbranch_optab directly.
23143 (emit_cmp_and_jump_insns): Fix comment. Adjust call to
23144 prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
23145 assertion.
23146 (emit_conditional_move, emit_conditional_add): Inline what's needed
23147 of compare_from_rtx, using new prepare_cmp_insn for the rest.
23148 (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
23149 with COMPARE. Move cmov_optab and cstore_optab above
23150 with cbranch_optab, move cmp_optab down with ucmp_optab,
23151 remove tst_otpab. Do not initialize trap_rtx.
23152 (gen_cond_trap): Do it here. Use ctrap_optab. Test predicate
23153 for trap code. Do not check HAVE_conditional_trap. Use
23154 prepare_cmp_insn. Accept no predicate for operand 3.
23155 * optabs.h (OTI_cmp): Mark as used only for libcalls.
23156 (OTI_ctrap, ctrap_optab): New.
23157 (tst_optab): Delete.
23158 (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
23159 * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
23160 with lookup of ctrap_optab.
23161 * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
23162 Delete.
23163 (ctrap_optab): New.
23164
23165 * combine.c (combine_simplify_rtx, simplify_set): Do not
23166 special case comparing against zero for cc0 machines.
23167 * simplify-rtx.c (simplify_binary_operation_1): Never remove
23168 COMPARE on cc0 machines.
23169 (simplify_relational_operation): Return a new expression when
23170 a COMPARE could be removed.
23171 * final.c (final_scan_insn): Compare cc_status values
23172 against LHS of a (compare FOO (const_int 0)) cc0 source.
23173 Also check if cc_status.value is the full compare.
23174
23175 * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
23176 (cstoreMM4): Document.
23177 (conditional_trap): Document ctrapMM4 instead.
23178 (sync_compare_and_swapMM): Refer to cbranchcc4.
23179 (Dependent Patterns): Eliminate obsolete information referring to
23180 the old jump optimization phase.
23181 (Canonicalization): Include cbranchcc4 case, omit canonicalization
23182 of compares with 0 on cc0 machines.
23183 (Jump Patterns): Refer to MODE_CC jump patterns preferably,
23184 avoiding references to cc0. Remove text about storing operands
23185 in cmpMM.
23186 * doc/tm.texi (Condition Codes): Include blurb on different
23187 condition code representations, separate into subsections for
23188 CC0, MODE_CC and conditional execution.
23189
23190 * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
23191 alpha_emit_setcc): Accept operands and a machine mode.
23192 * config/alpha/alpha.c (alpha_emit_conditional_branch):
23193 Get code/op0/op1 from operands, use machine mode argument
23194 instead of alpha_compare.fp_p. Emit the branch here.
23195 (alpha_emit_setcc): Likewise, and return boolean.
23196 (alpha_emit_conditional_move): Likewise. Assert that
23197 cmp_op_mode == cmp_mode, and simplify accordingly.
23198 * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
23199 * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
23200 (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
23201 Delete.
23202 (stack probe test): Use cbranchdi4.
23203 * config/alpha/predicates.md (alpha_cbranch_operator): New.
23204
23205 * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
23206 * config/arc/arc.h (movsicc, movsfcc): Use it.
23207 (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
23208 (cbranchsi4, cstoresi4): New.
23209 (cmpsi, bCC and sCC expanders): Remove.
23210
23211 * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
23212 * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
23213 * config/arm/predicates.md (arm_comparison_operator): Only include
23214 floating-point operators if there is a hardware floating-point unit.
23215 * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
23216 deferring to cbranch_cc and cstore_cc respectively.
23217 (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
23218 cbranch_cc, cstore_cc): New.
23219 (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
23220 arm_compare_op1.
23221 (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
23222
23223 * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
23224 * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
23225 as an argument.
23226 (adjust_insn_length): Adjust calls.
23227 (avr_reorg): Handle (compare (foo) (const_int 0)).
23228 * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
23229 (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
23230 (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
23231 (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
23232 (bCC): Remove.
23233 (cbranchqi4, cbranchhi4, cbranchsi4): New.
23234 (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
23235
23236 * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
23237 (cbranchsi4, cstorebi4, cstoresi4): New.
23238 (movbisi): This insn is duplicate, split it to zero_extend.
23239 * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
23240 (bfin_gen_compare): Do not use them. Emit VOIDmode SET, not BImode.
23241 (bfin_optimize_loop): Use cbranch expander.
23242 * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
23243 * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
23244 (bfin_bimode_comparison_operator): ... this.
23245 (bfin_direct_comparison_operator): New.
23246
23247 * config/cris/cris.c (cris_normal_notice_update_cc): Look
23248 inside (compare FOO (const_int 0)).
23249 (cris_rtx_costs): Handle ZERO_EXTRACT.
23250 * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
23251 (*tstdi_non_v32): Fold in *cmpdi_non_v32.
23252 (*tstdi_v32): Delete.
23253 (*cmpdi_non_v32): Add M alternative for operand 1.
23254 (cmpsi, cmp<mode>): Make private.
23255 (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
23256 with COMPARE.
23257 (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
23258
23259 * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
23260 (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
23261 (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
23262 (cc_reg_operand): New.
23263 (any_cond): Delete.
23264 * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
23265 crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
23266 * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
23267 * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
23268 crx_expand_scond): Delete.
23269
23270 * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
23271 (cbranchsi4): New.
23272 * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
23273 * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
23274
23275 * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
23276 cstoresi4, cstoresf4, cstoredf4): New.
23277 (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
23278 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
23279 Receive the entire operands array.
23280 * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
23281 * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
23282 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
23283 Get test/op0/op1 from the operands array.
23284 (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
23285
23286 * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
23287 (h8300_expand_store): New.
23288 * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
23289 (const_int 0)).
23290 (h8300_expand_branch): Emit compare here. Adjust for new arguments.
23291 (h8300_expand_store): New.
23292 * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
23293 or do not try to produce (set (cc0) REG).
23294 (peepholes): Wrap arguments with COMPARE. Add a peephole to
23295 change a compare into a move to a scratch register. Disable some
23296 peepholes when comparing with zero.
23297 (tstsi, tsthi, tstsi, cmpqi): Make private.
23298 (cmphi): Delete.
23299 (bCC, sCC): Delete.
23300 (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
23301 cstoresi4): New.
23302
23303 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
23304 ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
23305 (ix86_emit_i387_log1p): Use gen_cbranchxf4.
23306 (ix86_emit_i387_log1p): Use cbranchxf2.
23307 (ix86_expand_setcc): Return void.
23308 * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
23309 * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
23310 cmp<MODEF>, cmpcc): Remove.
23311 (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
23312 cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
23313 cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
23314 (sCC and bCC expanders): Remove.
23315 (stack_protect_test): Use cbranchcc4.
23316
23317 * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
23318 Delete.
23319 (ia64_expand_compare): Accept three rtx by reference and return void.
23320 * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
23321 (ia64_expand_compare): Replace op0/op1 with *op0/*op1. Get code
23322 from *expr. Update *expr with the BImode comparison to do.
23323 * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
23324 cmptf, bCC, sCC, conditional_trap): Delete.
23325 (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
23326 cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
23327 cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
23328 ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
23329 * config/ia64/predicates.md (ia64_cbranch_operator): New.
23330
23331 * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
23332 type of last argument.
23333 * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
23334 (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
23335 use machine mode argument instead of branch_type. Remove dead
23336 code for floating-point comparisons.
23337 * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
23338 * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
23339 Remove.
23340 (cbranchsi4, cstoresi4): New.
23341 * config/iq2000/predicates.md (reg_or_const_operand): New.
23342
23343 * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
23344 * config/m32c/m32c.md (any_cond, gl_cond): Delete.
23345 (b<code>_op): Rewrite to...
23346 (bcc_op): ... this, using match_operator.
23347 (s<code>_op): Rewrite to...
23348 (scc_op): ... this, using match_operator.
23349 (s<code>_24_op): Rewrite to...
23350 (scc_op_24): ... this, using match_operator.
23351 (s<code>_<mode>): Rewrite to...
23352 (cstore<mode>4): ... this, using match_operator.
23353 (s<code>_<mode>_24): Rewrite to...
23354 (cstore<mode>4_24): ... this, using match_operator.
23355 * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
23356 m32c_unpend_compare, m32c_expand_scc): Delete.
23357 * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
23358 m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
23359 (m32c_expand_movcc): Change NE to EQ if necessary.
23360 (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
23361
23362 * config/m32r/m32r-protos.h (gen_cond_store): New.
23363 * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
23364 (gen_cond_store): New, from sCC patterns.
23365 (m32r_expand_block_move): Use cbranchsi4.
23366 * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
23367 * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
23368 (cbranchsi4, cstoresi4): New.
23369
23370 * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
23371 Delete.
23372 (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
23373 (m68hc11_notice_update_cc): Look into a compare with 0.
23374 * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
23375 Delete.
23376 * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
23377 cmphi, cmpqi, bCC): Delete.
23378 (cbranchsi4, cbranchhi4, cbranchqi4): New.
23379 (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
23380 bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
23381 sets with COMPARE.
23382
23383 * config/m68k/predicates.md (m68k_cstore_comparison_operator,
23384 const0_operand, const1_operand, m68k_subword_comparison_operand): New.
23385 * config/m68k/constraints.md (H): New.
23386 * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
23387 the define_insn below.
23388 (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
23389 (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
23390 *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
23391 patterns): Wrap RHS with COMPARE.
23392 (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
23393 (*cmpdi_internal): Name this pattern.
23394 (cmpdi): Change to define_insn.
23395 (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
23396 cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
23397 (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
23398 predicate.
23399 (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
23400 sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
23401 (conditional_trap): Change to...
23402 (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
23403 (*conditional_trap): Use the ordered_comparison_operator and
23404 const1_operand predicates.
23405 * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
23406 (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
23407 (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
23408 * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
23409
23410 * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
23411 mcore_modify_comparison, mcore_gen_compare_reg): Remove.
23412 (mcore_gen_compare): New.
23413 * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
23414 (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
23415 (mcore_gen_compare): ... this.
23416 * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
23417 (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
23418 (stack probe pattern): Use cbranchsi4.
23419
23420 * config/mips/predicates.md (mips_cstore_operator): New.
23421 * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
23422 * config/mips/mips.md (any_cond): Delete.
23423 (conditional_trap): Rename to ctrap<GPR:mode>4. Adjust predicates,
23424 always succeed.
23425 (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
23426 fixuns_truncsfdi2): Use cbranch patterns.
23427 (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
23428 (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
23429 Adjust call to mips_expand_conditional_branch.
23430 (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
23431 cstore<GPR:mode>4.
23432 * config/mips/mips-protos.h (mips_expand_conditional_branch,
23433 mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
23434 * config/mips/mips.c (cmp_operands): Delete.
23435 (mips_emit_compare): Get comparison operands from *op0/*op1.
23436 (mips_expand_scc): Get code/op0/op1/target from operands. Assert
23437 that it succeeds. Use op0/op1 instead of cmp_operands.
23438 (mips_expand_conditional_branch, mips_expand_conditional_move,
23439 mips_expand_conditional_trap): Likewise.
23440 (mips_block_move_loop): Use cbranch patterns.
23441 * config/mips/mips.h (cmp_operands): Delete.
23442
23443 * config/mmix/mmix.c (mmix_valid_comparison): Delete.
23444 (mmix_gen_compare_reg): Just return a register in the right CC mode.
23445 * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
23446 * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
23447 (*cmpcc_folded): Rename to...
23448 (*cmpdi_folded): this.
23449 (*cmpcc): Rename to...
23450 (*cmps): ... this.
23451 (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
23452 (bCC): Remove.
23453 (cbranchdi4): New.
23454 (cbranchdf4): New. Handle invalid comparisons here.
23455 * config/mmix/predicates.md (float_comparison_operator): New.
23456
23457 * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
23458 zero_extract to be cheap in (compare (zero_extract) (const_int 0).
23459 * config/mn10300/mn10300.md (tst): Delete.
23460 (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
23461 Name these patterns and wrap RHS in a compare.
23462 (*cmpsi): Make this pattern private. Include tst.
23463 (*cmpsf): Make this pattern private.
23464 (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
23465 (compare with zero peepholes): Likewise.
23466 (bCC): Remove.
23467 (cbranchsi4, cbranchsf4): New.
23468 (casesi): Use cbranchsi4.
23469
23470 * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
23471 hppa_branch_type): Delete.
23472 (return_addr_rtx): Use cbranchsi4.
23473 (emit_bcond_fp): Accept all operands. Replace CODE with NE.
23474 Emit CCFPmode comparison here.
23475 (gen_cmp_fp): Delete, now part of emit_bcond_fp.
23476 * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
23477 hppa_branch_type): Delete.
23478 * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
23479 (movsicc, movdicc): Remove references to hppa_compare_op0,
23480 hppa_compare_op1 and compare_from_rtx.
23481 (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
23482 (casesi): Use cbranchsi4.
23483
23484 * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
23485 * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
23486 * config/pdp11/pdp11.md (register_or_const0_operand): New.
23487 (cmpdf, cmphi, cmpqi): Make private. Add tst alternatives.
23488 (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
23489 (bCC): Delete.
23490 (cbranchdf4, cbranchhi4, cbranchqi4): New.
23491 (*branch, *branch_inverted): New.
23492
23493 * config/picochip/picochip.md (cbranchhi4): Use
23494 ordered_comparison_operator.
23495 (cmphi, bCC): Remove.
23496
23497 * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
23498 (trap_comparison_operator): Delete.
23499 * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
23500 rs6000_emit_cbranch): Accept mode and operands.
23501 * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
23502 rs6000_compare_fp_p): Delete.
23503 (rs6000_generate_compare): Accept mode and comparison. Extract code
23504 and op0/op1 from there. Replace references to rs6000_compare_op0
23505 and rs6000_compare_op1.
23506 (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
23507 extract result from passed operands.
23508 (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
23509 extract loc from passed operands.
23510 (rs6000_emit_cmove): Likewise.
23511 * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
23512 rs6000_compare_fp_p): Delete.
23513 * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
23514 (cbranch<GPR>4, cbranch<FP>4): New.
23515 (cstore<mode>4): New. Consolidate here all choices about when to use
23516 portable or specialized sCC sequences.
23517 (stack_protect_test): Use cbranchsi4.
23518 (conditional_trap): Replace with ctrap<GPR>4.
23519 (conditional trap insn): Replace trap_comparison_operator with
23520 ordered_comparison_operator.
23521
23522 * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
23523 (s390_emit_prologue): Use ctrap.
23524 * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
23525 * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
23526 New predicates replacing...
23527 * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
23528 (cmp<GPR>, cmp<FP>, cmpcc): Delete.
23529 (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
23530 (add<mode>cc): Do not use s390_compare_op0/op1.
23531 (s<code>): Change to...
23532 (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
23533 (seq): Change to...
23534 (cstorecc4): ... this. Handle EQ or NE equally.
23535 (*sne): Un-privatize for use in cstorecc4.
23536 (b<code>): Change to...
23537 (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
23538 (conditional_trap): Replace with...
23539 (ctrap<GPR>4, ctrap<FP>4): ... these.
23540 (stack_protect): Use cbranchcc4.
23541
23542 * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
23543 * config/score/score-protos.h (score_gen_cmp): Delete.
23544 * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
23545 (score_block_move-loop): Use cbranchsi4.
23546 * config/score/score.md (cbranchsi4): New.
23547 (cmpsi, bCC): Delete.
23548 * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
23549 (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
23550 * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
23551 (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
23552 * config/score/score3.h (score3_gen_cmp): Delete.
23553 * config/score/score7.h (score7_gen_cmp): Delete.
23554
23555 * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
23556 (sh_emit_scc_to_t): ... this. Return void.
23557 (from_compare): Rename to...
23558 (sh_emit_compare_and_branch): ... this.
23559 (sh_emit_compare_and_set): New.
23560 (sh_expand_t_scc): Accept operands.
23561 * config/sh/predicates.md (sh_float_comparison_operator): New.
23562 * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
23563 (prepare_scc_operands): Rename to...
23564 (sh_emit_scc_to_t): ... this. Return void. Get op0/op1 from
23565 arguments.
23566 (sh_emit_cheap_store_flag): New.
23567 (sh_emit_set_t_insn): New.
23568 (from_compare): Rename to...
23569 (sh_emit_compare_and_branch): ... this. Accept mode. Rewrite
23570 handling of TARGET_SH2E floating point to avoid recursive call.
23571 Generate branch here.
23572 (sh_emit_compare_and_set): New.
23573 (sh_expand_t_scc): Get op0/op1 from arguments.
23574 (sh_emit_cheap_store_flag): New.
23575 * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
23576 cases.
23577 (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
23578 (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
23579 (movsicc, movdicc): Do nothing when it recreated operands from
23580 sh_compare_*. Use sh_emit_cheap_store_flag. Adjust call to
23581 prepare_scc_operands (now sh_emit_scc_to_t).
23582 (udivdi3): Use cstoresi4.
23583 (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
23584 bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
23585 (cbranchint4_media, cbranchfp4_media): New.
23586 (casesi): Use cbranchdi4.
23587 (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
23588 Delete.
23589 (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
23590 (movnegt): Remove second operand.
23591 (cbranchsf4, cbranchdf4): New.
23592 (stack_protect): Use cbranchdi4/cbranchsi4.
23593
23594 * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
23595 (gen_compare_reg): Accept comparison, extract part of it to...
23596 (gen_compare_reg_1): ... this.
23597 (gen_compare_operator): Delete.
23598 (gen_v9_scc): Accept separate destination, comparison code and arms.
23599 Do not use sparc_compare_op0/sparc_compare_op1.
23600 (emit_scc_insn, emit_conditional_branch_insn): New.
23601 (emit_v9_brxx): Make static. Remove useless assertion.
23602 (sparc_emit_float_lib_cmp): Return RTL instead of calling
23603 emit_cmp_insn.
23604 (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
23605 * config/sparc/sparc-protos.h (gen_compare_reg,
23606 sparc_emit_float_lib_cmp): Adjust prototype.
23607 (emit_scc_insn, emit_conditional_branch_insn): New.
23608 (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
23609 * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
23610 * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
23611 iterators to the top.
23612 (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
23613 snesi_special_extend, sCC, bCC, seqdi_special_trunc,
23614 snedi_special_trunc): Delete.
23615 (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
23616 and snedi_special_trunc.
23617 (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
23618 cbranchdi4, cbranch<F:mode>4): New.
23619 (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
23620 here. Use gen_compare_reg instead of gen_compare_operator.
23621 (conditional_trap): Replace with...
23622 (ctrapsi4, ctrapdi4): ... this.
23623 (stack_protect_test): Use cbranchcc4.
23624
23625 * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
23626 argument to rtx.
23627 * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
23628 (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
23629 Change spu_compare_op0/op1 to op0/op1 throughout. Get target
23630 from operands[0] or operands[3] depending on is_set.
23631 * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
23632 * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
23633 cmpdf, bCC), sCC: Remove.
23634 (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
23635 cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
23636 cstoredf4): New.
23637 (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
23638 spu_emit_branch_or_set.
23639
23640 * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
23641 Add two arguments.
23642 * config/stormy16/stormy16.h (xstormy16_compare_op0,
23643 xstormy16_compare_op1): Delete.
23644 * config/stormy16/stormy16.c (xstormy16_compare_op0,
23645 xstormy16_compare_op1): Delete.
23646 (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
23647 Adjust calls.
23648 * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
23649 (cmphi, cmpsi, bCC): Remove.
23650
23651 * config/v850/v850.md (tstsi, cmpsi): Fold into...
23652 (*cmpsi): ... this one.
23653 (cbranchsi4, cstoresi4): New.
23654 (bCC expanders): Delete.
23655 (sCC insns): Fold into...
23656 (*setcc): ... this one.
23657 (casesi): Do not use gen_cmpsi and gen_bgtu.
23658 (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
23659 (movsicc): Simplify.
23660 * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
23661
23662 * config/vax/vax-protos.h (cond_name): New.
23663 (vax_output_conditional_branch): Remove.
23664 * config/vax/vax.c (cond_name): New.
23665 (vax_output_conditional_branch): Remove.
23666 * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
23667 * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
23668 (cmp<VAXint>, cmp<VAXfp>): Privatize. Add constraints for tst.
23669 (bit<VAXint>): Wrap source with (compare).
23670 (b<code> and following unnamed pattern): Rename to *branch and
23671 *branch_reversed. Change macroization to match_operator.
23672 (cbranch<VAXint>4, cbranch<VAXfp>4): New.
23673
23674 * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
23675 * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
23676 Change last argument to machine_mode.
23677 (xtensa_expand_scc): Add machine_mode argument.
23678 * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
23679 (gen_conditional_move, xtensa_expand_conditional_branch,
23680 xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
23681 instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
23682 Adjust operand numbers.
23683 * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
23684 Delete.
23685 * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
23686 (cmpsi, cmpsf, b<code>, s<code>): Delete.
23687 (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
23688
23689 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
23690
23691 * optabs.c (prepare_cmp_insn): Temporarily disable test that
23692 causes spurious differences between trunk and cond-optab branch.
23693
23694 2009-05-12 Alexandre Oliva <aoliva@redhat.com>
23695
23696 PR target/37137
23697 * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
23698
23699 2009-05-12 Alexandre Oliva <aoliva@redhat.com>
23700
23701 * tree.c (iterative_hash_pointer): Delete.
23702 (iterative_hash_expr): Short-circuit handling of NULL pointer.
23703 Hash UIDs and versions of SSA names. Don't special-case built-in
23704 function declarations.
23705
23706 2009-05-11 Ian Lance Taylor <iant@google.com>
23707
23708 PR bootstrap/40103
23709 * graphite.c: Force -Wc++-compat to only be a warning before
23710 #including "cloog/cloog.h".
23711
23712 2009-05-11 Martin Jambor <mjambor@suse.cz>
23713
23714 * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
23715
23716 2009-05-11 Jan Hubicka <jh@suse.cz>
23717
23718 * tree-ssa-loop-ivcanon.c: Include target.h
23719 (struct loop_size): new structure.
23720 (constant_after_peeling): New predicate.
23721 (tree_estimate_loop_size): New function.
23722 (estimated_unrolled_size): Rewrite for new estimates.
23723 (try_unroll_loop_completely): Use new estimates.
23724 * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
23725
23726 2009-05-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
23727
23728 * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
23729 libcpp interface change.
23730 (spu_macro_to_expand): Likewise.
23731
23732 2009-05-11 Paolo Bonzini <bonzini@gnu.org>
23733
23734 PR tree-optimization/40026
23735 * gimplify.c (gimplify_init_constructor): Change initial conditional
23736 to assertion. Rewrite TREE_OPERAND (*expr_p, 1) after
23737 optimize_compound_literals_in_ctor.
23738
23739 2009-05-11 Nathan Sidwell <nathan@codesourcery.com>
23740
23741 * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
23742 New devices.
23743 * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
23744
23745 2009-05-11 H.J. Lu <hongjiu.lu@intel.com>
23746
23747 * tree-vect-data-refs.c (vect_analyze_group_access): Use
23748 HOST_WIDE_INT for gap.
23749
23750 2009-05-11 Ira Rosen <irar@il.ibm.com>
23751
23752 PR tree-optimization/40074
23753 * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
23754 account in group size and step comparison.
23755
23756 2009-05-11 Richard Guenther <rguenther@suse.de>
23757
23758 * passes.c (init_optimization_passes): Strip now incorrect comment.
23759 (execute_function_todo): Do not set PROP_alias.
23760 * tree-pass.h (PROP_alias): Remove.
23761 * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
23762 * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
23763 * tree-nrv.c (pass_return_slot): Likewise.
23764 * tree-object-size.c (pass_object_sizes): Likewise.
23765 * tree-ssa-dom.c (pass_dominator): Likewise.
23766 (pass_phi_only_cprop): Likewise.
23767 * tree-ssa-dse.c (pass_dse): Likewise.
23768 * tree-ssa-phiopt.c (pass_phiopt): Likewise.
23769 (pass_cselim): Likewise.
23770 * tree-ssa-pre.c (pass_pre): Likewise.
23771 (pass_fre): Likewise.
23772 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
23773 * tree-ssa-sink.c (pass_sink_code): Likewise.
23774 * tree-stdarg.c (pass_stdarg): Likewise.
23775 * tree-tailcall.c (pass_tail_calls): Likewise.
23776 * tree-vrp.c (pass_vrp): Likewise.
23777
23778 2009-05-10 Ian Lance Taylor <iant@google.com>
23779
23780 * basic-block.h (enum profile_status): Break out of struct
23781 control_flow_graph.
23782 * cgraph.h (struct inline_summary): Break out of struct
23783 cgraph_local_info.
23784 * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
23785 of struct cgraph_order_sort.
23786 * combine.c (enum undo_kind): New enum, broken out of struct undo.
23787 * cse.c (struct branch_path): Break out of struct
23788 cse_basic_block_data.
23789 * except.h (enum eh_region_type): Break out of struct eh_region.
23790 * gcc.c (enum add_del): Break out of struct modify_target.
23791 * genrecog.c (enum decision_type): Break out of struct decision_test.
23792 * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
23793 ggc_pch_data.
23794 * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
23795 * regmove.c (enum match_use): New enum, broken out of struct match.
23796 * sched-int.h (enum post_call_group): New enum, broken out of
23797 struct deps.
23798 (struct deps_reg): Break out of struct deps.
23799 * target.h (struct asm_int_op): Break out of struct gcc_target.
23800 * tree-eh.c (struct goto_queue_node): Break out of struct
23801 leh_tf_state.
23802 * tree-inline.h (enum copy_body_cge_which): Break out of
23803 copy_body_data.
23804 * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
23805
23806 * c-decl.c (in_struct, struct_types): New static variables.
23807 (pushtag): Add loc parameter. Change all callers.
23808 (lookup_tag): Add ploc parameter. Change all callers.
23809 (check_compound_literal_type): New function.
23810 (parser_xref_tag): Add loc parameter. Change all callers. If
23811 -Wc++-compat, warn about struct/union/enum types defined within a
23812 struct or union.
23813 (start_struct): Add enclosing_in_struct, enclosing_struct_types,
23814 and loc parameters. Change all callers. Change error calls to
23815 error_at, using loc. For a redefinition, if the location of the
23816 original definition is known, report it. Set in_struct and
23817 struct_types. If -Wc++-compat warn if in sizeof, typeof, or alignof.
23818 (finish_struct): Add new parameters enclosing_in_struct and
23819 enclosing_struct_types. Change all callers. Set
23820 C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
23821 in the struct. If in a struct, add this struct to struct_types.
23822 (start_enum): Add loc parameter. Change all callers. Use
23823 error_at for errors, using loc. For a redefinition, if the
23824 location of the original definition is known, report it. If in a
23825 struct, add this enum type to struct_types. If -Wc++-compat warn
23826 if in sizeof, typeof, or alignof.
23827 * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
23828 (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
23829 (c_parser_enum_specifier): Get enum location for start_enum.
23830 (c_parser_struct_or_union_specifier): Get struct location for
23831 start_struct. Save in_struct and struct_types status between
23832 start_struct and finish_struct.
23833 (c_parser_cast_expression): Get location of cast.
23834 (c_parser_alignof_expression): Get location of type.
23835 (c_parser_postfix_expression): Likewise.
23836 (c_parser_postfix_expression_after_paren_type): Add type_loc
23837 parameter. Change all callers. Call check_compound_literal_type.
23838 Use type_loc for error about variable size type.
23839 * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
23840 of an enum constant from an enum type defined in a struct or union.
23841 (c_cast_expr): Add loc parameter. Change all callers. If
23842 -Wc++-compat, warn about defining a type in a cast.
23843 * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
23844 (start_enum, start_struct, finish_struct): Update declarations.
23845 (parser_xref_tag, c_cast_expr): Update declarations.
23846 (check_compound_literal_type): Declare.
23847
23848 2009-05-11 Ben Elliston <bje@au.ibm.com>
23849
23850 * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
23851 for recent libcpp interface change.
23852 (rs6000_macro_to_expand): Likewise.
23853
23854 2009-05-10 Michael Matz <matz@suse.de>
23855
23856 PR target/40031
23857 * config/arm/arm.c (require_pic_register): Emit on entry edge,
23858 not at entry of function.
23859
23860 2009-05-10 Richard Guenther <rguenther@suse.de>
23861
23862 PR tree-optimization/40081
23863 Revert
23864 * tree-sra.c (instantiate_element): Instantiate scalar replacements
23865 using the main variant of the element type. Do not fiddle with
23866 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
23867
23868 * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
23869 structs with volatile fields.
23870
23871 2009-05-10 Jan Hubicka <jh@suse.cz>
23872
23873 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
23874 (estimate_move_cost): Assert that it does not get called for
23875 VOID_TYPE_P.
23876 (estimate_num_insns): Skip VOID types in argument handling.
23877 (optimize_inline_calls): Delete unreachable blocks and verify that
23878 callgraph is valid.
23879
23880 2009-05-10 Jan Hubicka <jh@suse.cz>
23881
23882 * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
23883 * cgraph.c (cgraph_mark_address_taken_node): New function.
23884 (dump_cgraph_node): Dump new flag.
23885 * cgraph.h (struct cgraph_node): Add address_taken.
23886 (cgraph_mark_address_taken_node): New function.
23887 * ipa.c (cgraph_postorder): Prioritize functions with address taken
23888 since new direct calls can be born.
23889
23890 2009-05-10 Joseph Myers <joseph@codesourcery.com>
23891
23892 * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
23893 tok->val.node.node.
23894
23895 2009-05-10 Jan Hubicka <jh@suse.cz>
23896
23897 PR middle-end/40084
23898 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
23899 argument; rewrite.
23900 (cgraph_update_edges_for_call_stmt): Take old_decl argument.
23901 * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
23902 * tree-inline.c (copy_bb): Set frequency correctly.
23903 (fold_marked_statements): Update call to
23904 cgraph_update_edges_for_call_stmt.
23905
23906 2009-05-10 Joseph Myers <joseph@codesourcery.com>
23907
23908 * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
23909 identifiers in diagnostics.
23910 * config/arm/arm.c (arm_handle_fndecl_attribute,
23911 arm_handle_isr_attribute): Likewise.
23912 * config/avr/avr.c (avr_handle_progmem_attribute,
23913 avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
23914 * config/bfin/bfin.c (handle_int_attribute,
23915 bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
23916 bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
23917 bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
23918 Likewise.
23919 * config/darwin.c (darwin_handle_kext_attribute,
23920 darwin_handle_weak_import_attribute): Likewise.
23921 * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
23922 h8300_handle_eightbit_data_attribute,
23923 h8300_handle_tiny_data_attribute): Likewise.
23924 * config/i386/i386.c (ix86_handle_cconv_attribute,
23925 ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
23926 * config/i386/winnt.c (ix86_handle_shared_attribute,
23927 ix86_handle_selectany_attribute): Likewise.
23928 * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
23929 * config/m32c/m32c.c (function_vector_handler): Likewise.
23930 * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
23931 m68hc11_handle_fntype_attribute): Likewise.
23932 * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
23933 * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
23934 * config/mips/mips.c (mips_insert_attributes,
23935 mips_merge_decl_attributes, mips_expand_builtin): Likewise.
23936 * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
23937 rs6000_handle_struct_attribute): Likewise.
23938 * config/sh/sh.c (sh_insert_attributes,
23939 sh_handle_resbank_handler_attribute,
23940 sh_handle_interrupt_handler_attribute,
23941 sh2a_handle_function_vector_handler_attribute,
23942 sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
23943 Likewise.
23944 * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
23945 * config/spu/spu.c (spu_handle_fndecl_attribute,
23946 spu_handle_vector_attribute): Likewise.
23947 * config/stormy16/stormy16.c
23948 (xstormy16_handle_interrupt_attribute): Likewise.
23949 * config/v850/v850-c.c (ghs_pragma_section): Likewise.
23950 * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
23951
23952 2009-05-10 Joseph Myers <joseph@codesourcery.com>
23953
23954 * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
23955 (pp_translate_identifiers): New.
23956 (pp_identifier): Only conditionally translate identifier to locale
23957 character set.
23958 * pretty-print.c (pp_construct): Set pp_translate_identifiers.
23959 (pp_base_tree_identifier): Only conditionally translate identifier
23960 to locale character set.
23961 * c-pretty-print.c (M_): Define.
23962 (pp_c_type_specifier, pp_c_primary_expression): Mark English
23963 fragments for conditional translation with M_.
23964 * tree-pretty-print.c (maybe_init_pretty_print): Disable
23965 identifier translation.
23966
23967 2009-05-10 Richard Guenther <rguenther@suse.de>
23968
23969 PR tree-optimization/40081
23970 * tree-sra.c (instantiate_element): Instantiate scalar replacements
23971 using the main variant of the element type. Do not fiddle with
23972 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
23973
23974 2009-05-09 Jan Hubicka <jh@suse.cz>
23975
23976 PR middle-end/40080
23977 * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
23978 indirect calls; verify cgraph afterwards.
23979
23980 2009-05-09 Jan Hubicka <jh@suse.cz>
23981
23982 PR bootstrap/40082
23983 * ipa.c (update_inlined_to_pointer): New function.
23984 (cgraph_remove_unreachable_nodes): Use it.
23985
23986 2009-05-09 Jan Hubicka <jh@suse.cz>
23987
23988 * tree-eh.c (struct leh_state): Remove prev_try.
23989 (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
23990 not track prev_try.
23991 * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
23992 copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
23993 remove_eh_handler_and_replace, foreach_reachable_handler,
23994 verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
23995 * except.h (struct eh_region): Remove eh_region_u_cleanup.
23996 (gen_eh_region_cleanup): Update prototype.
23997
23998 2009-05-09 Jan Hubicka <jh@suse.cz>
23999
24000 PR middle-end/40043
24001 * except.c (copy_eh_region): Always set prev_try.
24002 (redirect_eh_edge_to_label): Find outer try.
24003 (foreach_reachable_handler): When looking for prev try
24004 handle case where previous try is not going to be taken.
24005
24006 2009-05-07 Michael Meissner <meissner@linux.vnet.ibm.com>
24007
24008 PR tree-optimization/40049
24009 * tree-vect-stmts.c (vectorizable_operation): If the machine has
24010 only vector/vector shifts, convert the type of the constant to the
24011 appropriate type to avoid building incorrect trees, which
24012 eventually have problems with garbage collection.
24013
24014 2009-05-08 Joseph Myers <joseph@codesourcery.com>
24015
24016 * fold-const.c (fold_binary): Do not fold multiplication by 1 or
24017 -1 for complex floating-point types if honoring signed zeros.
24018
24019 2009-05-08 Jan Hubicka <jh@suse.cz>
24020
24021 * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
24022 argument; handle correctly when profile is absent.
24023 (build_cgraph_edges): Update.
24024 (rebuild_cgraph_edges): Update.
24025 * cgraph.c: Do not include varray.h.
24026 (cgraph_set_call_stmt_including_clones): New function.
24027 (cgraph_create_edge_including_clones): Likewise
24028 (cgraph_update_edges_for_call_stmt_node): New static cfunction.
24029 (cgraph_update_edges_for_call_stmt): Handle clones.
24030 (cgraph_remove_node): Handle clone tree.
24031 (cgraph_remove_node_and_inline_clones): New function.
24032 (dump_cgraph_node): Dump clone tree.
24033 (cgraph_clone_node): Handle clone tree.
24034 (clone_function_name): Bring here from tree-inline.c.
24035 (cgraph_create_virtual_clone): New function.
24036 * cgraph.h (ipa_replace_map): Move here from ipa.h.
24037 (cgraph_clone_info): New function.
24038 (strut cgraph_node): Add clone_info and new clone tree pointers.
24039 (cgraph_remove_node_and_inline_clones,
24040 cgraph_set_call_stmt_including_clones,
24041 cgraph_create_edge_including_clones,
24042 cgraph_create_virtual_clone): Declare.
24043 (cgraph_function_versioning): Use VEC argument.
24044 (compute_call_stmt_bb_frequency): Update prototype.
24045 (cgraph_materialize_all_clones): New function.
24046 * ipa-cp.c (ipcp_update_cloned_node): Remove.
24047 (ipcp_create_replace_map): Update to VECtors.
24048 (ipcp_update_callgraph): Use virtual clones.
24049 (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
24050 (ipcp_update_profiling): Do not update local profiling.
24051 (ipcp_insert_stage): Use VECtors and virtual clones.
24052 * cgraphunit.c (verify_cgraph_node): Verify clone tree.
24053 (clone_of_p): New function.
24054 (cgraph_preserve_function_body_p): Use clone tree.
24055 (cgraph_optimize): Materialize clones.
24056 (cgraph_function_versioning): Update for VECtors.
24057 (save_inline_function_body): Use clone tree.
24058 (cgraph_materialize_clone): New function.
24059 (cgraph_materialize_all_clones): Likewise.
24060 * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
24061 * ipa.c: Include gimple.h.
24062 (cgraph_remove_unreachable_nodes): Use clone tree.
24063 * ipa-prop.c (ipa_note_param_call): Update call to
24064 compute_call_stmt_bb_frequencycall.
24065 * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
24066 * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
24067 (copy_bb): Handle updating of clone tree; add new edge when new call
24068 appears.
24069 (expand_call_inline): Be strict about every call having edge.
24070 (clone_fn_id_num, clone_function_name): Move to cgraph.c.
24071 (delete_unreachable_blocks_update_callgraph): New function.
24072 (tree_function_versioning): Use VECtors; always remove unreachable
24073 blocks and fold conditionals.
24074 * tree-inline.h: Do not include varray.h.
24075 (tree_function_versioning): Remove.
24076 * Makefile.in (GTFILES): Remove tree-inline.c
24077 * passes.c (do_per_function): Do only functions having body.
24078 * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
24079 tree.
24080
24081 2009-05-08 H.J. Lu <hongjiu.lu@intel.com>
24082 Andrew Morrow <acm@google.com>
24083
24084 PR c/36892
24085 * c-common.c (c_common_attribute_table): Permit deprecated
24086 attribute to take an optional argument.
24087 (handle_deprecated_attribute): If the optional argument to
24088 __attribute__((deprecated)) is not a string ignore the attribute
24089 and emit a warning.
24090
24091 * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
24092 * c-typeck.c (build_component_ref): Likewise.
24093 (build_external_ref): Likewise.
24094
24095 * toplev.c (warn_deprecated_use): Add an attribute argument.
24096 Emit the message associated with __attribute__((deprecated)).
24097
24098 * toplev.h (warn_deprecated_use): Updated.
24099
24100 * doc/extend.texi: Document new optional parameter to
24101 __attribute__((deprecated))
24102
24103 2009-05-08 Michael Eager <eager@eagercon.com>
24104
24105 * config/rs6000/rs6000.md (*movdf_softfloat32): replace
24106 !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
24107
24108 2009-05-08 Richard Guenther <rguenther@suse.de>
24109
24110 PR tree-optimization/40062
24111 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
24112 Avoid exponential behavior.
24113
24114 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
24115
24116 PR rtl-optimization/33928
24117 PR 26854
24118 * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
24119 process_uses, build_single_def_use_links): New.
24120 (update_df): Update use_def_ref.
24121 (forward_propagate_into): Use get_def_for_use instead of use-def
24122 chains.
24123 (fwprop_init): Call build_single_def_use_links and let it initialize
24124 dataflow.
24125 (fwprop_done): Free use_def_ref.
24126 (fwprop_addr): Eliminate duplicate call to df_set_flags.
24127 * df-problems.c (df_rd_simulate_artificial_defs_at_top,
24128 df_rd_simulate_one_insn): New.
24129 (df_rd_bb_local_compute_process_def): Update head comment.
24130 (df_chain_create_bb): Use the new RD simulation functions.
24131 * df.h (df_rd_simulate_artificial_defs_at_top,
24132 df_rd_simulate_one_insn): New.
24133 * opts.c (decode_options): Enable fwprop at -O1.
24134 * doc/invoke.texi (-fforward-propagate): Document this.
24135
24136 2009-05-08 Joseph Myers <joseph@codesourcery.com>
24137
24138 PR c/24581
24139 * c-typeck.c (build_binary_op): Handle arithmetic between one real
24140 and one complex operand specially.
24141 * tree-complex.c (some_nonzerop): Do not identify a real value as
24142 zero if flag_signed_zeros.
24143
24144 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
24145
24146 PR rtl-optimization/33928
24147 * loop-invariant.c (record_use): Fix && vs. || mishap.
24148
24149 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
24150
24151 PR rtl-optimization/33928
24152 * loop-invariant.c (struct use): Add addr_use_p.
24153 (struct def): Add n_addr_uses.
24154 (struct invariant): Add cheap_address.
24155 (create_new_invariant): Set cheap_address.
24156 (record_use): Accept df_ref. Set addr_use_p and update n_addr_uses.
24157 (record_uses): Pass df_ref to record_use.
24158 (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
24159 used only as such.
24160
24161 2009-05-08 Kaz Kojima <kkojima@gcc.gnu.org>
24162
24163 * config/sh/sh.c: Do not include c-pragma.h.
24164
24165 2009-05-07 Andrew Pinski <andrew_pinski@playstation.sony.com>
24166
24167 * config/spu/spu.c: Remove include of c-common.h.
24168
24169 2009-05-07 Janis Johnson <janis187@us.ibm.com>
24170
24171 PR c/39037
24172 * c-common.h (mark_valid_location_for_stdc_pragma,
24173 valid_location_for_stdc_pragma_p, set_float_const_decimal64,
24174 clear_float_const_decimal64, float_const_decimal64_p): New.
24175 * c.opt (Wunsuffixed-float-constants): New.
24176 * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
24177 unsuffixed float constant, handle new warning.
24178 * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
24179 * c-decl.c (c_scope): New flag float_const_decimal64.
24180 (set_float_const_decimal64, clear_float_const_decimal64,
24181 float_const_decimal64_p): New.
24182 (push_scope): Set new flag.
24183 * c-parser.c (c_parser_translation_unit): Mark when it's valid
24184 to use STDC pragmas.
24185 (c_parser_external_declaration): Ditto.
24186 (c_parser_compound_statement_nostart): Ditto.
24187 * c-pragma.c (valid_location_for_stdc_pragma,
24188 mark_valid_location_for_stdc_pragma,
24189 valid_location_for_stdc_pragma_p, handle_stdc_pragma,
24190 handle_pragma_float_const_decimal64): New.
24191 (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
24192 * cp/semantics.c (valid_location_for_stdc_pragma_p,
24193 set_float_const_decimal64, clear_float_const_decimal64,
24194 float_const_decimal64_p): New dummy functions.
24195 * doc/extend.texi (Decimal Float): Remove statement that the
24196 pragma, and suffix for double constants, are not supported.
24197 * doc/invoke.texi (Warning Options): List new option.
24198 (-Wunsuffixed-float-constants): New.
24199
24200 2009-05-08 Steven Bosscher <steven@gcc.gnu.org>
24201
24202 * config/i386/i386.c: Do not include c-common.h.
24203
24204 2009-05-07 Mark Heffernan <meheff@google.com>
24205
24206 * doc/invoke.texi (Debugging Options): Document change of debugging
24207 dump location.
24208 * opts.c (decode_options): Make dump_base_name relative to
24209 aux_base_name directory.
24210
24211 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
24212
24213 * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
24214 * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
24215
24216 2009-05-07 Rafael Avila de Espindola <espindola@google.com>
24217
24218 * Makefile.in (install-plugin): Simplify a bit.
24219
24220 2009-05-07 Paolo Bonzini <bonzini@gnu.org>
24221
24222 * Makefile.in (OBJS-common): Add regcprop.o.
24223 (regcprop.o): New.
24224 * timevar.def (TV_CPROP_REGISTERS): New.
24225 * regrename.c (regrename_optimize): Return 0.
24226 (rest_of_handle_regrename): Delete.
24227 (pass_rename_registers): Point to regrename_optimize.
24228 (struct value_data_entry, struct value_data,
24229 kill_value_one_regno, kill_value_regno, kill_value,
24230 set_value_regno, init_value_data, kill_clobbered_value,
24231 kill_set_value, kill_autoinc_value, copy_value,
24232 mode_change_ok, maybe_mode_change, find_oldest_value_reg,
24233 replace_oldest_value_reg, replace_oldest_value_addr,
24234 replace_oldest_value_mem, copyprop_hardreg_forward_1,
24235 debug_value_data, validate_value_data): Move...
24236 * regcprop.c: ... here.
24237 (rest_of_handle_cprop): Delete.
24238 (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
24239
24240 2009-05-07 Jakub Jelinek <jakub@redhat.com>
24241
24242 PR middle-end/40057
24243 * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
24244 GEN_INT for 1 << bitnum.
24245 (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
24246 build_int_cst_type.
24247
24248 2009-05-07 Uros Bizjak <ubizjak@gmail.com>
24249
24250 * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
24251 Remove wrong description of "nand" operation.
24252
24253 2009-05-06 Richard Guenther <rguenther@suse.de>
24254 Adam Nemet <anemet@caviumnetworks.com>
24255
24256 * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
24257 comment. Add that if LHS is not a gimple register, then RHS1 has
24258 to be a single object (GIMPLE_SINGLE_RHS).
24259
24260 2009-05-06 Adam Nemet <anemet@caviumnetworks.com>
24261
24262 * expr.c (get_def_for_expr): Move it up in the file.
24263 (store_field): When expanding a bit-field store, look at the
24264 defining gimple stmt for the masking conversion.
24265
24266 2009-05-06 Janis Johnson <janis187@us.ibm.com>
24267
24268 PR middle-end/39986
24269 * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
24270 decode_decimal64, encode_decimal128, decode_decimal128): Avoid
24271 32-bit memcpy into long.
24272
24273 2009-05-06 Jakub Jelinek <jakub@redhat.com>
24274
24275 * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
24276 (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
24277 new_reg_loc_descr.
24278 (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
24279 instead of appending DW_OP_deref*.
24280
24281 2009-05-06 Michael Matz <matz@suse.de>
24282
24283 PR middle-end/40021
24284 * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
24285 (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
24286
24287 2009-05-06 Rafael Avila de Espindola <espindola@google.com>
24288
24289 * Makefile.in (install-plugin): Fix srcdir handling.
24290
24291 2009-05-06 Andrey Belevantsev <abel@ispras.ru>
24292
24293 * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
24294 when processing for not_regs_needed bitmap.
24295 * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
24296 handle TARGET_MEM_REF in lhs. Check TMR_BASE for NULL while
24297 handling it for rhs.
24298
24299 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
24300
24301 * config/i386/i386.md (unnamed inc/dec peephole): Use
24302 optimize_insn_for_size_p instead of optimize_size.
24303 * config/i386/predicates.md (incdec_operand): Likewise.
24304 (aligned_operand): Likewise.
24305 * config/i386/sse.md (divv8sf3): Likewise.
24306 (sqrtv8sf2): Likewise.
24307
24308 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
24309
24310 * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
24311
24312 * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
24313
24314 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
24315
24316 * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
24317 ssemodesuffixf2c with avxmodesuffixf2c.
24318
24319 2009-05-06 Joseph Myers <joseph@codesourcery.com>
24320
24321 PR c/40032
24322 * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
24323
24324 2009-05-05 Jakub Jelinek <jakub@redhat.com>
24325
24326 * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
24327 (struct tree_base): Adjust spacing for 8 bit boundaries.
24328 (struct tree_decl_common): Add decl_by_reference_flag bit.
24329 (DECL_BY_REFERENCE): Adjust.
24330 * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
24331 print DECL_BY_REFERENCE bit.
24332 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
24333 * dwarf2out.c (loc_by_reference, gen_decl_die): Check
24334 DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
24335 (gen_variable_die): Likewise. Check TREE_PRIVATE/TREE_PROTECTED
24336 unconditionally.
24337
24338 PR middle-end/39666
24339 * gimplify.c (gimplify_switch_expr): If case labels cover the whole
24340 range of the type, but default label is missing, add it with one
24341 of the existing labels instead of adding a new label for it.
24342
24343 2009-05-05 Joseph Myers <joseph@codesourcery.com>
24344
24345 * dwarf.h: Remove.
24346
24347 2009-05-05 Rafael Avila de Espindola <espindola@google.com>
24348
24349 * Makefile.in (enable_plugin, plugin_includedir): New.
24350 (install): Depend on install-plugin.
24351 (PLUGIN_HEADERS): New.
24352 (install-plugin): New.
24353 * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
24354
24355 2009-05-05 Richard Guenther <rguenther@suse.de>
24356
24357 PR tree-optimization/40022
24358 * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
24359 the only vuse.
24360 (phivn_valid_p): Fix tuplification error, simplify.
24361 (phiprop_insert_phi): Add dumps.
24362 (propagate_with_phi): Simplify.
24363
24364 2009-05-05 Richard Guenther <rguenther@suse.de>
24365
24366 PR middle-end/40023
24367 * builtins.c (gimplify_va_arg_expr): Properly build the address.
24368
24369 2009-05-05 Shujing Zhao <pearly.zhao@oracle.com>
24370
24371 * tree.h (strip_float_extensions): Remove duplicate declaration.
24372 (build_low_bits_mask, debug_fold_checksum, expand_function_end,
24373 expand_function_start, stack_protect_prologue, stack_protect_epilogue,
24374 block_ultimate_origin): Rearrange the declarations line to match the
24375 comment that indicates the .c file which the functions are defined.
24376 (dwarf2out_*, set_decl_rtl): Add comment.
24377 (get_base_address): Adjust comment.
24378 (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
24379 declarations line and add comment.
24380 (is_builtin_name): Add blank after function name, for clarity.
24381
24382 2009-05-04 Joseph Myers <joseph@codesourcery.com>
24383
24384 * attribs.c (decl_attributes): Use %qE for identifiers in
24385 diagnostics.
24386 * cgraphunit.c (verify_cgraph_node): Translate function names to
24387 locale character set in diagnostics.
24388 * coverage.c (get_coverage_counts): Use %qE for identifiers in
24389 diagnostics.
24390 * doc/invoke.texi (-finstrument-functions-exclude-function-list):
24391 Document that functions are named in UTF-8.
24392 * expr.c (expand_expr_real_1): Translate function names to locale
24393 character set in diagnostics.
24394 * gimplify.c (omp_notice_variable, omp_is_private,
24395 gimplify_scan_omp_clauses): Use %qE for identifiers in
24396 diagnostics.
24397 * langhooks.c (lhd_print_error_function): Translate function names
24398 to locale character set.
24399 * langhooks.h (decl_printable_name): Document that return value is
24400 in internal character set.
24401 * stmt.c: Include pretty-print.h
24402 (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
24403 diagnostics.
24404 (resolve_operand_name_1): Translate named operand name to locale
24405 character set.
24406 * stor-layout.c (finalize_record_size): Use %qE for identifiers in
24407 diagnostics.
24408 * toplev.c (announce_function): Translate function names to locale
24409 character set.
24410 (warn_deprecated_use): Use %qE for identifiers in diagnostics.
24411 (default_tree_printer): Use pp_identifier or translate identifiers
24412 to locale character set. Mark "<anonymous>" for translation.
24413 * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
24414 for identifiers in diagnostics.
24415 * tree.c (handle_dll_attribute): Use %qE for identifiers in
24416 diagnostics.
24417 * varasm.c (output_constructor): Use %qE for identifiers in
24418 diagnostics.
24419
24420 2009-05-04 Rafael Avila de Espindola <espindola@google.com>
24421
24422 * configure.ac: use ` ` instead of $()
24423 * configure: Regenerate.
24424
24425 2009-05-05 Ben Elliston <bje@au.ibm.com>
24426
24427 * config/pa/linux-atomic.c: Eliminate conditional include of
24428 errno.h on non-LP64 systems to simplify build requirements.
24429
24430 2009-05-04 Joseph Myers <joseph@codesourcery.com>
24431
24432 * c-common.c (handle_mode_attribute): Use %qE for identifiers in
24433 diagnostics.
24434 * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
24435 and pass value to identifier_to_locale.
24436 (warn_variable_length_array): Make name a tree.
24437 (grokdeclarator): Separate diagnostic texts for named and unnamed
24438 declarators. Use %qE for named declarators.
24439 * c-parser.c (c_lex_one_token): Use %qE for identifiers in
24440 diagnostics.
24441 * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
24442 identifiers in diagnostics.
24443 * c-typeck.c (push_member_name, start_init): Pass identifiers to
24444 identifier_to_locale. Mark "anonymous" strings for translation.
24445
24446 2009-05-04 Michael Eager <eager@eagercon.com>
24447
24448 * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
24449 address for DImode/DFmode only if double-precision FP regs.
24450
24451 2009-05-04 Michael Eager <eager@eagercon.com>
24452
24453 * config/rs6000/rs6000.c (rs6000_libcall_value): Add
24454 TARGET_SINGLE_FLOAT check.
24455
24456 2009-05-04 Michael Eager <eager@eagercon.com>
24457
24458 * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
24459
24460 2009-05-04 Michael Eager <eager@eagercon.com>
24461
24462 * gcc/config.gcc (powerpc-xilinx-eabi*): Add tm t-xilinx
24463 * config/rs6000/t-xilinx: New
24464
24465 2009-05-04 Paolo Bonzini <bonzini@gnu.org>
24466
24467 * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
24468 * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
24469 * gcc/explow.c (memory_address): Use target hook.
24470 * gcc/targhooks.c (default_legitimize_address): New.
24471 * gcc/targhooks.h (default_legitimize_address): New.
24472 * gcc/target.h (legitimize_address): New.
24473 * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
24474 (TARGET_INITIALIZER): Include it.
24475 * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
24476
24477 * config/bfin/bfin-protos.h (legitimize_address): Remove.
24478 * config/bfin/bfin.c (legitimize_address): Remove.
24479 * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
24480 * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
24481 Remove.
24482 * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
24483 * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
24484
24485 * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
24486 THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
24487 * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
24488 * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
24489 * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
24490 * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
24491 * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
24492 * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
24493 * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
24494 * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
24495 * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
24496 * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
24497 * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
24498 * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
24499 * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
24500 * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
24501 * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
24502 * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
24503 * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
24504 * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
24505 * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
24506 * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
24507 * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
24508
24509 * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
24510 * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
24511 * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
24512 * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
24513 * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
24514 * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
24515 * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
24516 * gcc/config/arm/arm-protos.h (arm_legitimize_address,
24517 (thumb_legitimize_address): Delete.
24518 * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
24519 * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
24520 * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
24521 * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
24522 * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
24523 * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
24524 Delete.
24525 * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
24526 Delete.
24527
24528 * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
24529 * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
24530 * config/m32r/m32r.c (m32r_legitimize_address): New.
24531 * config/m68k/m68k.c (m68k_legitimize_address): New.
24532 * config/score/score.c (score_legitimize_address): Standardize.
24533 * config/score/score3.c (score3_legitimize_address): Standardize.
24534 * config/score/score3.h (score3_legitimize_address): Adjust.
24535 * config/score/score7.c (score7_legitimize_address): Standardize.
24536 * config/score/score7.h (score7_legitimize_address): Adjust.
24537 * config/sh/sh.c (sh_legitimize_address): New.
24538 * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
24539
24540 * gcc/config/s390/s390.c (legitimize_address): Rename to...
24541 (s390_legitimize_address): ... this.
24542 * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
24543 (sparc_legitimize_address): ... this.
24544 * gcc/config/i386/i386.c (legitimize_address): Rename to...
24545 (ix86_legitimize_address): ... this.
24546 * gcc/config/avr/avr.c (legitimize_address): Rename to...
24547 (avr_legitimize_address): ... this.
24548 * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
24549 (mn10300_legitimize_address): ... this.
24550 * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
24551 (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
24552 (alpha_expand_mov): Adjust call.
24553
24554 * config/frv/frv.c (frv_legitimize_address): Return x on failure.
24555 * config/spu/spu.c (spu_legitimize_address): Likewise.
24556 * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
24557 * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
24558
24559 2009-05-04 Joseph Myers <joseph@codesourcery.com>
24560
24561 * intl.c (locale_encoding, locale_utf8): New.
24562 (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
24563 * intl.h (locale_encoding, locale_utf8): Declare.
24564 * pretty-print.c: Include ggc.h. Include iconv.h if HAVE_ICONV.
24565 (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
24566 New.
24567 * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
24568 argument.
24569 (pp_tree_identifier): Define to call pp_base_tree_identifier.
24570 (pp_base_tree_identifier): Declare as function.
24571 (identifier_to_locale): Declare.
24572 * Makefile.in (pretty-print.o): Update dependencies.
24573 * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
24574
24575 2009-05-04 Richard Guenther <rguenther@suse.de>
24576
24577 PR middle-end/40015
24578 * builtins.c (fold_builtin_memory_op): Do not decay to element
24579 type if the size matches the whole array.
24580
24581 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
24582
24583 * expmed.c (synth_mult): When trying out a shift, pass the result
24584 of a signed shift.
24585
24586 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
24587
24588 * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
24589 (shiftsub1_cost): New.
24590 (init_expmed): Compute shiftsub1_cost.
24591 (synth_mult): Optimize multiplications by constants of the form
24592 -(2^^m-1) for some constant positive integer m.
24593
24594 2009-05-03 Richard Guenther <rguenther@suse.de>
24595
24596 PR c/39983
24597 * c-typeck.c (array_to_pointer_conversion): Do not built
24598 ADDR_EXPRs of arrays of pointer-to-element type.
24599 * c-gimplify.c (c_gimplify_expr): Revert change fixing
24600 up wrong ADDR_EXPRs after-the-fact.
24601 * c-common.c (strict_aliasing_warning): Strip pointer
24602 conversions for obtaining the original type.
24603 * builtins.c (fold_builtin_memset): Handle array types.
24604 (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
24605 and array types
24606
24607 2009-05-03 Richard Guenther <rguenther@suse.de>
24608
24609 PR middle-end/23329
24610 * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
24611 Do not lose casts from array types with unknown extent to array
24612 types with known extent.
24613 * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
24614 alias set compatibility.
24615
24616 2009-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
24617
24618 * flags.h (extra_warnings): Delete.
24619 * toplev.c (process_options): Handle Wuninitialized here.
24620 * opts.c (extra_warnings): Delete.
24621 (set_Wextra): Delete.
24622 (common_handle_option): -Wextra can be handled automatically.
24623 * c-opts.c (c_common_handle_option): Delete obsolete code.
24624 (c_common_post_options): Simplify comment.
24625 * common.opt (W): Add Var.
24626 (Wextra): Add Var.
24627 (Wuninitialized): Initialize to -1.
24628
24629 2009-05-03 Adam Nemet <anemet@caviumnetworks.com>
24630 Richard Guenther <rguenther@suse.de>
24631
24632 * expr.c (get_def_for_expr): New function.
24633 (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
24634 SSA rather than trees.
24635 <MULT_EXPR>: Likewise. Use subexp0 and subexp1 instead of
24636 TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
24637
24638 2009-05-03 Joseph Myers <joseph@codesourcery.com>
24639
24640 * c-common.c (reswords): Add _Imaginary.
24641 * c-common.c (enum rid): Add RID_IMAGINARY.
24642
24643 2009-05-03 Paolo Bonzini <bonzini@gnu.org>
24644
24645 * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
24646 Patch by Richard Guenther.
24647
24648 2009-05-03 Anatoly Sokolov <aesok@post.ru>
24649
24650 * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
24651 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
24652 * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
24653 * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
24654 * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
24655 * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
24656 * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
24657 * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
24658 * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
24659 * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
24660 * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
24661 * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
24662 * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
24663 * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
24664 * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
24665 * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
24666 * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
24667 * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
24668
24669 2009-05-02 Richard Guenther <rguenther@suse.de>
24670
24671 PR tree-optimization/39940
24672 * tree-ssa-pre.c (eliminate): Make sure we may propagate before
24673 doing so.
24674
24675 2009-05-02 Richard Guenther <rguenther@suse.de>
24676
24677 PR middle-end/40001
24678 * tree-ssa.c (execute_update_addresses_taken): Properly check
24679 if we can mark a variable DECL_GIMPLE_REG_P.
24680 * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
24681 back to the end of the function.
24682 (is_gimple_reg_type): Remove complex type special casing.
24683 * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
24684 if not optimizing.
24685
24686 2009-05-02 Ben Elliston <bje@au.ibm.com>
24687
24688 * doc/collect2.texi (Collect2): Document search path behaviour
24689 when configured with --with-ld.
24690
24691 2009-05-02 Jan Hubicka <jh@suse.cz>
24692
24693 * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
24694 parameter; update callers.
24695 (coalesce_cost_edge): EH edges are costier because they needs
24696 splitting even if not critical and even more costier when there are
24697 multiple EH predecestors.
24698
24699 2009-05-02 Jan Hubicka <jh@suse.cz>
24700
24701 * except.c (remove_eh_handler_and_replace): Handle updating after
24702 removing TRY blocks.
24703
24704 2009-05-02 Eric Botcazou <ebotcazou@adacore.com>
24705
24706 * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
24707
24708 2009-05-02 Steven Bosscher <steven@gcc.gnu.org>
24709
24710 * varasm.c: Do not include c-pragma.h.
24711 * attribs.c: Do not incude c-common.h.
24712
24713 2009-05-01 Michael Matz <matz@suse.de>
24714
24715 * calls.c (initialize_argument_information): Handle SSA names like
24716 decls with a non MEM_P DECL_RTL.
24717
24718 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
24719
24720 * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
24721 * ipa-utils.c: Likewise.
24722 * ipa-type-escape.c: Likewise.
24723 * cgraphunit.c Do not include c-common.h.
24724 * ipa-pure-const.c: Likewise.
24725 * tree-if-conv.c: Likewise.
24726 * matrix-reorg.c: Do not include c-common.h and c-tree.h.
24727 * ipa-struct-reorg.c: Likewise.
24728 * tree-nomudflap.c: Likewise.
24729 * tree-ssa-structalias.c: Likewise.
24730
24731 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
24732
24733 * store-motion.c: Many cleanups to make this pass a first-class
24734 citizen instead of an appendix to gcse load motion. Add TODO list
24735 to make this pass faster/cleaner/better.
24736
24737 (struct ls_expr): Post gcse.c-split cleanups.
24738 Rename to st_expr. Rename "loads" field to "antic_stores". Rename
24739 "stores" field to "avail_stores".
24740 (pre_ldst_mems): Rename to store_motion_mems.
24741 (pre_ldst_table): Rename to store_motion_mems_table.
24742 (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
24743 (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
24744 (ldst_entry): Rename to st_expr_entry, update users.
24745 (free_ldst_entry): Rename to free_st_expr_entry, update users.
24746 (free_ldst_mems): Rename to free_store_motion_mems, update users.
24747 (enumerate_ldsts): Rename to enumerate_store_motion_mems,
24748 update caller.
24749 (first_ls_expr): Rename to first_st_expr, update users.
24750 (next_ls_expr): Rename to next_st_expr, update users.
24751 (print_ldst_list): Rename to print_store_motion_mems. Print names of
24752 fields properly for store motion instead of names inherited from load
24753 motion in gcse.c.
24754 (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
24755 (LAST_AVAIL_CHECK_FAILURE): Explain what this is. Undefine when we
24756 are done with it.
24757
24758 (ae_kill): Rename to st_kill, update users.
24759 (ae_gen): Rename to st_avloc, update users.
24760 (transp): Rename to st_transp, update users.
24761 (pre_insert_map): Rename to st_insert_map, update users.
24762 (pre_delete_map): Rename to st_delete_map, update users.
24763 (insert_store, build_store_vectors, free_store_memory,
24764 one_store_motion_pass): Update for abovementioned changes.
24765
24766 (gcse_subst_count, gcse_create_count): Remove.
24767 (one_store_motion_pass): New statistics counters "n_stores_deleted"
24768 and "n_stores_created", local variables.
24769
24770 (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
24771 use for_each_rtx.
24772
24773 (regvec, compute_store_table_current_insn): Remove.
24774 (reg_set_info, reg_clear_last_set): Remove.
24775 (compute_store_table): Use DF caches instead of local dataflow
24776 solvers.
24777
24778 2009-05-01 Joseph Myers <joseph@codesourcery.com>
24779
24780 * c-objc-common.c (c_tree_printer): Print identifiers with
24781 pp_identifier, not pp_string. Mark "({anonymous})" for
24782 translation.
24783 * c-pretty-print.c (pp_c_ws_string): New.
24784 (pp_c_cv_qualifier, pp_c_type_specifier,
24785 pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
24786 pp_c_storage_class_specifier, pp_c_function_specifier,
24787 pp_c_attributes, pp_c_bool_constant, pp_c_constant,
24788 pp_c_primary_expression, pp_c_postfix_expression,
24789 pp_c_unary_expression, pp_c_shift_expression,
24790 pp_c_relational_expression, pp_c_equality_expression,
24791 pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
24792 use pp_string and pp_c_ws_string in place of pp_identifier and
24793 pp_c_identifier for non-identifiers. Mark English strings for
24794 translation.
24795 * c-pretty-print.h (pp_c_ws_string): Declare.
24796
24797 2009-04-30 Paul Pluzhnikov <ppluzhnikov@google.com>
24798 Roland McGrath <roland@redhat.com>
24799
24800 * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
24801 (ENABLE_LD_BUILDID): New configuration option.
24802 * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
24803 (LINK_BUILDID_SPEC): New macro.
24804 (init_spec): If defined, prepend it between LINK_EH_SPEC and
24805 link_spec.
24806 * doc/install.texi: Document --enable-linker-build-id option.
24807 * configure: Rebuild.
24808 * config.in: Rebuild.
24809
24810 2009-04-30 Adam Nemet <anemet@caviumnetworks.com>
24811
24812 * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
24813 MIPS_GP_SAVE_AREA_SIZE): Define new macros.
24814 (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD. Use
24815 MIPS_GP_SAVE_AREA_SIZE.
24816 * config/mips/mips.c (struct mips_frame_info): Update comment
24817 before arg_pointer_offset and hard_frame_pointer_offset.
24818 (mips_compute_frame_info): Update diagram before function: to
24819 correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
24820 indicate the position of frame_pointer_rtx with -fstack-protector and
24821 to show args_size. Don't allocate cprestore area for leaf functions
24822 if FRAME_GROWS_DOWNWARD. Use MIPS_GP_SAVE_AREA_SIZE to set
24823 cprestore_size.
24824 (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
24825
24826 2009-04-30 Michael Matz <matz@suse.de>
24827
24828 PR tree-optimization/39955
24829 * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
24830
24831 2009-04-30 Dave Korn <dave.korn.cygwin@gmail.com>
24832
24833 * ira.c (setup_cover_and_important_classes): Use safe macro
24834 REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
24835 directly.
24836 * genpreds.c (write_tm_preds_h): Output suitable definition of
24837 REG_CLASS_FOR_CONSTRAINT.
24838
24839 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
24840
24841 * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
24842 instead of an int.
24843 * bitmap.c (bitmap_descriptor): Likewise.
24844 * ggc-common.c (loc_descriptor): Likewise.
24845 * varray.c (varray_descriptor): Likewise.
24846 * vec.c (vec_descriptor): Likewise.
24847
24848 2009-04-30 Eric Botcazou <ebotcazou@adacore.com>
24849
24850 * Makefile.in (dce.o): Add $(EXCEPT_H).
24851 * dce.c: Include except.h and delete redundant vector definitions.
24852 (deletable_insn_p): Return false for non-call insns that can throw
24853 if DF is running.
24854
24855 2009-04-30 Steven Bosscher <steven@gcc.gnu.org>
24856
24857 * gcse.c (ae_gen): Remove.
24858 (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
24859 and make non-static function to make it available in store-motion.c.
24860 Update call sites with search-and-replace.
24861 (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
24862 extract_mentioned_regs, extract_mentioned_regs_helper,
24863 find_moveable_store, compute_store_table, load_kills_store, find_loads,
24864 store_killed_in_insn, store_killed_after, store_killed_before,
24865 build_store_vectors, insert_insn_start_basic_block, insert-store,
24866 remove_reachable_equiv_notes, replace_store_insn, delete_store,
24867 free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
24868 execute_rtl_store_motion, pass_rtl_store_motion): Move to...
24869 * store-motion.c: ...new file. Also copy data structures from gcse.c
24870 and clean up to remove parts not used by store motion.
24871 * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
24872 * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
24873
24874 2009-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24875
24876 PR target/38571
24877 * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
24878 when optimizing for size.
24879
24880 2009-04-30 Hans-Peter Nilsson <hp@axis.com>
24881
24882 * gcse.c (gcse_constant_p): Fix typo in last change.
24883
24884 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
24885
24886 * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
24887
24888 2009-04-30 Andreas Krebbel <krebbel1@de.ibm.com>
24889
24890 * gcse.c (gcse_constant_p): Make sure the constant is sharable.
24891
24892 2009-04-29 James E. Wilson <wilson@codesourcery.com>
24893
24894 * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
24895 CONST_HIGH_PART result.
24896
24897 2009-04-29 Anatoly Sokolov <aesok@post.ru>
24898
24899 * config/avr/avr.c (initial_elimination_offset): Rename to
24900 avr_initial_elimination_offset.
24901 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
24902 change return type to bool.
24903 (avr_can_eliminate): New function.
24904 * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
24905 (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
24906 (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
24907 * config/avr/avr-protos.h (initial_elimination_offset): Rename to
24908 avr_initial_elimination_offset.
24909 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
24910 (avr_initial_elimination_offset): Define.
24911
24912 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
24913 Steven Bosscher <steven@gcc.gnu.org>
24914
24915 PR rtl-optimization/39938
24916 * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
24917 * cfgrtl.c: Include insn-attr.h.
24918 (rest_of_pass_free_cfg): New function.
24919 (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
24920 * resource.c (init_resource_info): Remove call to df_analyze.
24921
24922 2009-04-29 Richard Guenther <rguenther@suse.de>
24923
24924 PR target/39943
24925 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
24926 allow conversion to signed integers.
24927
24928 2009-04-29 Richard Guenther <rguenther@suse.de>
24929
24930 * tree-cfg.c (verify_gimple_assign_binary): Allow vector
24931 shifts of floating point vectors if the shift amount is
24932 a constant multiple of the element size.
24933
24934 2009-04-29 Andreas Krebbel <krebbel1@de.ibm.com>
24935 Michael Matz <matz@suse.de>
24936
24937 PR middle-end/39927
24938 PR bootstrap/39929
24939 * tree-outof-ssa.c (emit_partition_copy): New function.
24940 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
24941 insert_part_to_rtx_on_edge): Perform the partition base var
24942 copy using emit_partition_copy.
24943 (insert_value_copy_on_edge): Convert constants to the right mode.
24944 (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
24945 (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
24946
24947 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
24948
24949 * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
24950 scan backwards to try to find a constant to initialize it.
24951
24952 * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
24953 insn before the loop_end instruction, don't look past labels.
24954
24955 2009-04-29 Richard Guenther <rguenther@suse.de>
24956
24957 PR middle-end/39937
24958 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
24959 loose type conversions.
24960 (forward_propagate_addr_expr): Fix tuplification bug. Remove
24961 stmts only if there are no uses of its definition.
24962
24963 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
24964
24965 * config/bfin/bfin.h (splitting_loops): Declare.
24966 * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
24967 Reorder bit definitions to be ascending.
24968 (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
24969 * config/bfin/bfin.c (splitting_loops): New variable.
24970 (bfin_cpus): Add WA_LOAD_LCREGS as needed.
24971 (struct loop_info): Remove members INIT and LOOP_INIT.
24972 (bfin_optimize_loop): Don't set them. Reorder the code that generates
24973 the LSETUP sequence. Allow LC to be loaded from any register, but
24974 also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
24975 (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
24976 set to 1.
24977 * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
24978 of reload_completed.
24979
24980 From Jie Zhang:
24981 * config/bfin/bfin.md (movsi_insn): Refine constraints.
24982
24983 2009-04-29 Rafael Avila de Espindola <espindola@google.com>
24984
24985 * Makefile.in (PLUGIN_VERSION_H): New.
24986 (OBJS-common): Remove plugin-version.o.
24987 (plugin.o): Depend on (PLUGIN_VERSION_H).
24988 (plugin-version.o): Remove.
24989 * configure: Regenerate
24990 * configure.ac: Create plugin-version.h.
24991 * gcc-plugin.h (plugin_gcc_version): Remove.
24992 (plugin_default_version_check): Change signature.
24993 * plugin-version.c: Remove.
24994 * plugin.c: Include plugin-version.h.
24995 (str_plugin_gcc_version_name): Remove.
24996 (try_init_one_plugin): Pass gcc version to plugin_init.
24997 (plugin_default_version_check): Both gcc and plugin versions are now
24998 arguments.
24999
25000 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
25001
25002 * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
25003 problematic last insns. Test for TYPE_CALL rather than CALL_P.
25004 Remove special case testing for last insn of inner loops. Don't fail
25005 if the loop ends with a jump, emit an extra nop instead.
25006
25007 * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
25008 DREGS rather than comparing directly. Remove code that tries to
25009 account for latencies.
25010
25011 2009-04-29 Richard Guenther <rguenther@suse.de>
25012
25013 PR tree-optimization/39941
25014 * tree-ssa-pre.c (eliminate): Schedule update-ssa after
25015 eliminating an indirect call.
25016
25017 2009-04-29 Richard Guenther <rguenther@suse.de>
25018
25019 * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
25020 parameter. Allow invariants as base if !require_lvalue.
25021 (verify_gimple_assign_single): Adjust.
25022
25023 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
25024
25025 * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
25026 (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
25027 ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
25028 ssubhi3, ssaddhi3_parts and sssubhi3_parts.
25029 (flag_mulhi3_parts): Produce a HImode output rather than trying to set
25030 a VEC_SELECT.
25031 * config/bfin/bfin.c (bfin_expand_builtin,
25032 case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
25033
25034 2009-04-28 Richard Guenther <rguenther@suse.de>
25035
25036 * tree-vect-loop.c (get_initial_def_for_induction): Use
25037 correct types for pointer increment.
25038
25039 2009-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25040
25041 * toplev.c (print_version): Update GMP version string calculation.
25042
25043 2009-04-28 Eric Botcazou <ebotcazou@adacore.com>
25044
25045 PR rtl-optimization/39938
25046 * resource.c (init_resource_info): Add call to df_analyze.
25047
25048 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
25049
25050 * config/alpha/alpha.md (usegp): Cast the result of
25051 alpha_find_lo_sum_using_gp to enum attr_usegp.
25052 * config/alpha/alpha.c (override_options): Remove end-of-structure
25053 marker element from cpu_table. Use array size of cpu_table to handle
25054 -mcpu and -mtune options.
25055 (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
25056
25057 2009-04-28 Joseph Myers <joseph@codesourcery.com>
25058
25059 * config.gcc (powerpc*-*-* | rs6000-*-*): Add
25060 rs6000/option-defaults.h to tm_file. Support cpu_32, cpu_64,
25061 tune_32 and tune_64.
25062 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
25063 support on PowerPC.
25064 * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
25065 * config/rs6000/option-defaults.h: ... here. New file.
25066 (OPT_64, OPT_32): Define.
25067 (MASK_64BIT): Define to 0 if not already defined.
25068 (OPT_ARCH64, OPT_ARCH32): Define.
25069 (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
25070 and tune_64.
25071
25072 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25073
25074 * config/arm/arm.c (arm_override_options): Emit error on using
25075 fpa with AAPCS.
25076
25077 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
25078
25079 PR rtl-optimization/39914
25080 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
25081 registers for allocnos created from user-defined variables only
25082 when not optimizing.
25083
25084 2009-04-28 Richard Guenther <rguenther@suse.de>
25085
25086 PR middle-end/39937
25087 * fold-const.c (fold_binary): Use distribute_real_division only
25088 on float types.
25089
25090 2009-04-28 Steve Ellcey <sje@cup.hp.com>
25091
25092 * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
25093 add hpux-stdint.h to tm_file.
25094 (hppa[12]*-*-hpux11*): Ditto.
25095 (ia64*-*-hpux*): Ditto.
25096 * config/hpux-stdint.h: New.
25097 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
25098 __STDC_EXT__ for all compiles.
25099 * config/pa/pa-hpux.h: Ditto.
25100 * config/pa/pa-hpux10.h: Ditto.
25101 * config/pa/pa-hpux11.h: Ditto.
25102
25103 2009-04-28 Catherine Moore <clm@codesourcery.com>
25104
25105 * debug.h (set_name): Add comment.
25106
25107 2009-04-28 Andrew Pinski <pinskia@gmail.com>
25108
25109 PR target/39929
25110 * config/darwin.c (machopic_gen_offset): Check
25111 currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
25112 * config/arm/arm.c (require_pic_register): Likewise.
25113
25114 2009-04-28 Paolo Bonzini <bonzini@gnu.org>
25115
25116 * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
25117 m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
25118 m32c_promote_prototypes): Delete.
25119
25120 2009-04-28 Michael Matz <matz@suse.de>
25121
25122 PR middle-end/39922
25123 * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
25124 constants.
25125
25126 2009-04-28 Richard Guenther <rguenther@suse.de>
25127
25128 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
25129
25130 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25131
25132 * config/arm/arm-cores.def: Add support for arm1156t2f-s.
25133 * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
25134 * config/arm/arm-tune.md: Regenerate.
25135
25136 2009-04-28 Alexander Monakov <amonakov@ispras.ru>
25137
25138 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
25139 block if there are complex incoming edges.
25140 (sel_merge_blocks): Remove useless assert.
25141 (sel_redirect_edge_and_branch): Check that edge was redirected.
25142 * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
25143 (sel_find_rgns): Delete declaration.
25144 * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
25145 the region when it is not a preheader.
25146
25147 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
25148
25149 PR c/39323
25150 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
25151
25152 2009-04-28 Richard Guenther <rguenther@suse.de>
25153
25154 * tree.h (SSA_NAME_VALUE): Remove.
25155 (struct tree_ssa_name): Remove value_handle member.
25156 * tree-vrp.c (execute_vrp): Initialize/free the value-handle
25157 array for jump threading.
25158 * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
25159 SSA_NAME_VALUEs.
25160 * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
25161 * tree-flow.h (threadedge_initialize_values): Declare.
25162 (threadedge_finalize_values): Likewise.
25163 * tree-ssa-threadedge.c (ssa_name_values): New global variable.
25164 (SSA_NAME_VALUE): Define.
25165 (threadedge_initialize_values): New function.
25166 (threadedge_finalize_values): Likewise.
25167 * tree-ssa-dom.c (ssa_name_values): New global variable.
25168 (SSA_NAME_VALUE): Define.
25169 (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
25170
25171 2009-04-28 Ira Rosen <irar@il.ibm.com>
25172
25173 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
25174 Use REPORT_VECTORIZED_LOCATIONS instead
25175 REPORT_VECTORIZED_LOOPS.
25176 * tree-vectorizer.c (vect_verbosity_level): Make static.
25177 (vect_loop_location): Rename to vect_location.
25178 (vect_set_verbosity_level): Update comment.
25179 (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
25180 and vect_location.
25181 (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
25182 and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
25183 instead REPORT_UNVECTORIZED_LOOPS.
25184 * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
25185 and vect_loop_def to vect_external_def and vect_internal_def.
25186 (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
25187 and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
25188 REPORT_UNVECTORIZED_LOCATIONS.
25189 (enum vect_relevant): Update comment. Rename vect_unused_in_loop
25190 and vect_used_in_loop and to vect_unused_in_scope and
25191 vect_used_in_scope.
25192 (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
25193 (vect_verbosity_level): Remove declaration.
25194 (vect_analyze_operations): Likewise.
25195 (vect_analyze_stmt): Declare.
25196 * tree-vect-loop.c (vect_determine_vectorization_factor): Use
25197 REPORT_UNVECTORIZED_LOCATIONS.
25198 (vect_get_loop_niters): Fix indentation.
25199 (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
25200 (vect_analyze_loop_operations): New function.
25201 (vect_analyze_loop): Call vect_analyze_loop_operations instead of
25202 vect_analyze_operations.
25203 (vect_is_simple_reduction): Use new names.
25204 (vectorizable_live_operation, vect_transform_loop): Likewise.
25205 * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
25206 to specify whether the data references can be a part of interleaving
25207 chain.
25208 (vect_analyze_data_ref_dependence): Use new names.
25209 (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
25210 (vect_create_addr_base_for_vector_ref): Remove redundant code.
25211 * tree-vect-patterns.c (widened_name_p): Use new names.
25212 (vect_recog_dot_prod_pattern): Likewise.
25213 * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
25214 (process_use, vect_mark_stmts_to_be_vectorized,
25215 vect_model_simple_cost, vect_model_store_cost,
25216 vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
25217 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
25218 vectorizable_operation, vectorizable_type_demotion,
25219 vectorizable_type_promotion, vectorizable_store, vectorizable_load,
25220 vectorizable_condition): Likewise.
25221 (vect_analyze_operations): Split into vect_analyze_loop_operations
25222 and ...
25223 (vect_analyze_stmt): ... new function.
25224 (new_stmt_vec_info): Use new names.
25225 (vect_is_simple_use): Use new names and fix comment.
25226 * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
25227 (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
25228
25229 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
25230
25231 PR target/39911
25232 * config/i386/i386.c (print_operand) ['Z']: Handle floating point
25233 and integer modes for x87 operands. Do not ICE for unsupported size,
25234 generate error instead. Generate error for unsupported operand types.
25235 ['z']: Do not handle HImode memory operands specially. Warning
25236 for floating-point operands. Fallthru to 'Z' for unsupported operand
25237 types. Do not ICE for unsupported size, generate error instead.
25238 (output_387_binary_op): Use %Z to output operands.
25239 (output_fp_compare): Ditto.
25240 (output_387_reg_move): Ditto.
25241
25242 2009-04-28 Ben Elliston <bje@au.ibm.com>
25243
25244 PR c++/35652
25245 Revert:
25246
25247 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
25248
25249 * builtins.c (c_strlen): Do not warn here.
25250 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
25251 * c-common.c (pointer_int_sum): Take an explicit location.
25252 Warn about offsets out of bounds.
25253 * c-common.h (pointer_int_sum): Adjust declaration.
25254
25255 2009-04-27 Ian Lance Taylor <iant@google.com>
25256
25257 * collect2.c (is_ctor_dtor): Change type of ret field in struct
25258 names to symkind.
25259 * dce.c (run_fast_df_dce): Change type of old_flags to int.
25260 * df-core.c (df_set_flags): Change return type to int. Change
25261 type of old_flags to int.
25262 (df_clear_flags): Likewise.
25263 * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
25264 (df_get_conditional_uses): Likewise.
25265 * df.h (df_set_flags, df_clear_flags): Update declarations.
25266 * dwarf2out.c (struct indirect_string_node): Change type of form
25267 field to enum dwarf_form.
25268 (AT_string_form): Change return type to enum dwarf_form.
25269 * fixed-value.c (fixed_compare): Add cast to enum type.
25270 * fwprop.c (update_df): Change 0 to VOIDmode.
25271 * gensupport.c: Change 0 to UNKNOWN.
25272 * gimple.h (gimple_cond_code): Add cast to enum type.
25273 * haifa-sched.c (reemit_notes): Add cast to enum type.
25274 * hooks.c (hook_int_void_no_regs): Remove function.
25275 * hooks.h (hook_int_void_no_regs): Remove declaration.
25276 * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
25277 * predict.c (combine_predictions_for_insn): Add casts to enum type.
25278 * real.c (real_arithmetic): Add cast to enum type.
25279 (real_compare): Likewise.
25280 * target.h (struct gcc_target): Change return type of
25281 branch_target_register_class to enum reg_class.
25282 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
25283 default_branch_target_register_class.
25284 * targhooks.c (default_branch_target_register_class): New function.
25285 * targhooks.h (default_branch_target_register_class): Declare.
25286 * tree-data-ref.c (print_direction_vector): Add cast to enum type.
25287 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
25288 cast to int.
25289 * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
25290 ERROR_MARK.
25291 * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
25292 vect_uninitialized_def. Change 0 to ERROR_MARK.
25293 * tree-vect-stmts.c (supportable_widening_operation): Don't
25294 initialize icode1 and icode2.
25295 * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
25296 * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
25297 and to STD_C89.
25298 (cmn_err_flag_specs): Change 0 to STD_C89.
25299 (cmn_err_char_table): Likewise.
25300 * config/arm/arm.c (get_arm_condition_code): Change type of code
25301 to enum arm_cond_code.
25302 (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
25303 (IWMMXT_BUILTIN2): Likewise.
25304 (neon_builtin_type_bits): Don't define typedef.
25305 (neon_builtin_datum): Change type of bits field to int.
25306 (arm_expand_neon_args): Add cast to enum type.
25307 * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
25308 TLS_MODEL_NONE.
25309 * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN. Add
25310 casts to enum type.
25311 * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
25312 MIPS_FP_COND_f.
25313 * config/mips/mips.md (jal_macro): Return enum constant.
25314 (single_insn): Likewise.
25315 * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
25316 CODE_FOR_nothing.
25317 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25318 casts to enum type.
25319 * config/s390/s390.c (s390_tune_flags): Change type to int.
25320 (s390_arch_flags): Likewise.
25321 (s390_handle_arch_option): Change flags field of struct pta to int.
25322 * config/s390/s390.h (s390_tune_flags): Update declaration.
25323 (s390_arch_flags): Likewise.
25324 * config/sh/sh.c (prepare_move_operands): Compare
25325 tls_symbolic_operand result with enum constant.
25326 (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
25327 (sh_expand_prologue): Add cast to enum type.
25328 (sh_expand_epilogue): Likewise.
25329 (tls_symbolic_operand): Change return type to enum tls_model.
25330 (fpscr_set_from_mem): Add cast to enum type.
25331 (legitimize_pic_address): Compare tls_symbolic_operand result with
25332 enum constant.
25333 (sh_target_reg_class): Change return type to enum reg_class.
25334 * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
25335 PROCESSOR_xxx.
25336 * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
25337 * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
25338 * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
25339 (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
25340 (delayed_branch, tls_call_delay): Likewise.
25341 (eligible_for_sibcall_delay): Likewise.
25342 (eligible_for_return_delay): Likewise.
25343 * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
25344 (spu_expand_builtin_1): Likewise.
25345
25346 * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
25347 for all types of conversions.
25348 (output_init_element): Issue -Wc++-compat warning if needed when
25349 initializing a bitfield with enum type.
25350 * c-parser.c (c_parser_expression): Set original_type to
25351 original_type of right hand operand of comma operator.
25352
25353 2009-04-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25354
25355 * doc/c-tree.texi (Types, Functions, Expression trees): Fix
25356 grammar nits.
25357 * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
25358 * doc/cpp.texi (Standard Predefined Macros)
25359 (Implementation-defined behavior): Likewise.
25360 * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
25361 * doc/gimple.texi (GIMPLE Exception Handling)
25362 (@code{GIMPLE_ASSIGN}): Likewise.
25363 * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
25364 * doc/invoke.texi (Warning Options, Optimize Options)
25365 (AVR Options, Darwin Options): Likewise.
25366 (Optimize Options): Reformulate -fwhole-program description.
25367 * doc/loop.texi (Lambda): Likewise.
25368 * doc/md.texi (Output Template, Define Constraints)
25369 (Standard Names, Insn Splitting): Likewise.
25370 * doc/options.texi (Option properties): Likewise.
25371 * doc/passes.texi (Tree-SSA passes): Likewise.
25372 * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
25373 * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
25374 (File Names and DBX): Likewise.
25375 * doc/trouble.texi (Incompatibilities): Likewise.
25376
25377 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
25378
25379 * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
25380 instruction is correct.
25381
25382 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
25383
25384 Allow non-constant arguments to conversion intrinsics.
25385 * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
25386 * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
25387 * spu.c (print_operand): Handle 'v' and 'w'.
25388 (exp2_immediate_p, spu_gen_exp2): Define.
25389 * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
25390 spu_convtf_1): Update parameter descriptions.
25391 * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
25392 * constraints.md ('v', 'w'): New.
25393 * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
25394 Remove.
25395 (i2f, I2F): New define_mode_attr.
25396 (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
25397 floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
25398 fixuns_truncv4sfv4si2): Update to use mode attribute.
25399 (float<mode><i2f>2_mul, float<mode><i2f>2_div,
25400 fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
25401 floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
25402 patterns for combine.
25403
25404 2009-04-27 Steven Bosscher <steven@gcc.gnu.org>
25405
25406 * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
25407 (cprop, hoist, pre, store_motion): New debug counters.
25408 * tree-pass.h (pass_tracer): Move to list of gimple passes, it
25409 is not an RTL pass anymore.
25410 (pass_profiling): Remove extern decl for pass removed in 2005.
25411 (pass_gcse, pass_jump_bypass): Remove.
25412 * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
25413 to 0 for clean state.
25414 * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
25415 * cse.c (gate_handle_cse_after_global_opts,
25416 rest_of_handle_cse_after_global_opts): New functions.
25417 (pass_cse_after_global_opts): New pass, does local CSE.
25418 * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
25419 (TV_CPROP): New timevar.
25420 * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
25421 (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
25422 (gcse_main, recompute_all_luids): Remove.
25423 (compute_hash_table_work): Call max_reg_num instead of reading
25424 max_gcse_regno.
25425 (cprop_jump): Don't set run_jump_opt_after_gcse.
25426 (constprop_register): Always allow to alter jumps.
25427 (cprop_insn): Likewise.
25428 (do_local_cprop): Likewise.
25429 (local_cprop_pass): Likewise. Return non-zero if something changed.
25430 (cprop): Remove function, fold interesting bits into one_cprop_pass.
25431 (find_implicit_sets): Add note about missed optimization opportunity.
25432 (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
25433 pass_rtl_cprop execute function.
25434 Don't bother tracking the pass number, each pass gets its own dumpfile
25435 now anyway.
25436 Always allow to alter jumpsand bypass jumps.
25437 (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
25438 will just find no suitable set.
25439 (pre_edge_insert): Fix dumping, this function is for PRE only.
25440 (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
25441 pass_rtl_pre execute function.
25442 (hoist_code): Return non-zero if something changed. Keep track of
25443 substitutions and insertions for statistics gathering similar to PRE.
25444 (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
25445 called from the pass_rtl_hoist execute function. Show pass statistics.
25446 (compute_store_table): Use max_reg_num directly instead of using the
25447 formerly global max_gcse_regno.
25448 (build_store_vectors): Likewise.
25449 (replace_store_insn): Fix dumping.
25450 (store_motion): Rename to ...
25451 (one_store_motion_pass): ... this. Rewrite to be "the" STORE_MOTION
25452 pass, called from the pass_rtl_store_motion execute function. Keep
25453 track of substitutions and insertions for statistics gathering similar
25454 to PRE.
25455 (bypass_jumps): Remove, fold interesting bits into ...
25456 (one_cprop_pass): ... this. Rewrite to be "the" CPROP pass, called
25457 from the pass_rtl_cprop execute function.
25458 (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
25459 pass_jump_bypass): Remove.
25460 (gate_handle_gcse, rest_of_handle_gcse): Remove.
25461 (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
25462 (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
25463 (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
25464 (gate_rtl_store_motion, execute_rtl_store_motion,
25465 pass_rtl_store_motion): New.
25466 * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
25467 make it clear that -fcse-skip-blocks is a no-op for backward compat.
25468 * passes.c (init_optimization_passes): Remove pass_gcse and
25469 pass_jump_bypass. Schedule cprop, pre, hoist, cprop, store_motion,
25470 and cse_after_global_opts in place of pass_gcse. Schedule cprop
25471 instead of pass_jump_bypass.
25472
25473 2009-04-27 Richard Guenther <rguenther@suse.de>
25474
25475 PR middle-end/39928
25476 * gimplify.c (gimplify_expr): If we are required to create
25477 a temporary make sure it ends up as register.
25478
25479 2009-04-27 H.J. Lu <hongjiu.lu@intel.com>
25480
25481 PR target/39903
25482 * config/i386/i386.c (construct_container): Don't call
25483 gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
25484 X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
25485
25486 2009-04-27 Michael Matz <matz@suse.de>
25487
25488 * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
25489 (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
25490 * tree-ssa-live.h (find_replaceable_exprs): Return a bitmap.
25491 (dump_replaceable_exprs): Take a bitmap.
25492 * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
25493 array.
25494 (expand_gimple_basic_block): Likewise.
25495 * tree-ssa-ter.c (struct temp_expr_table_d): Make
25496 replaceable_expressions member a bitmap.
25497 (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
25498 (mark_replaceable): Likewise.
25499 (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
25500 * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
25501
25502 2009-04-27 Richard Guenther <rguenther@suse.de>
25503
25504 * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
25505 (verify_stmts): Dispatch to gimple/type verification code.
25506 * tree-inline.c (remap_gimple_op_r): Work around C++ FE
25507 issue with call argument types.
25508
25509 2009-04-27 Michael Matz <matz@suse.de>
25510
25511 * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
25512 (init_update_ssa, delete_update_ssa, update_ssa): Remove references
25513 to above.
25514
25515 2009-04-27 Richard Sandiford <rdsandiford@googlemail.com>
25516 Eric Botcazou <ebotcazou@adacore.com>
25517
25518 * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
25519 a label's basic block.
25520 (mark_target_live_regs): Tidy and rework obsolete comments.
25521 Change back DF problem to LIVE. If a label starts a basic block,
25522 assume that all registers that used to be live then still are.
25523 (init_resource_info): If a label starts a basic block, set its
25524 BLOCK_FOR_INSN accordingly.
25525 (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
25526
25527 2009-04-27 Richard Guenther <rguenther@suse.de>
25528
25529 * tree-flow-inline.h (function_ann): Remove.
25530 (get_function_ann): Likewise.
25531 * tree-dfa.c (create_function_ann): Remove.
25532 * tree-flow.h (struct static_var_ann_d): Remove.
25533 (struct function_ann_d): Likewise.
25534 (union tree_ann_d): Remove fdecl member.
25535 (function_ann_t): Remove.
25536 (function_ann, get_function_ann, create_function_ann): Remove
25537 declarations.
25538
25539 2009-04-27 Uros Bizjak <ubizjak@gmail.com>
25540
25541 * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
25542
25543 2009-04-27 Jan Hubicka <jh@suse.cz>
25544
25545 * ipa-pure-const.c (struct funct_state_d): New fields
25546 state_previously_known, looping_previously_known; remove
25547 state_set_in_source.
25548 (analyze_function): Use new fields.
25549 (propagate): Avoid assumption that state_set_in_source imply
25550 nonlooping.
25551
25552 * tree-ssa-loop-niter.c (finite_loop_p): New function.
25553 * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
25554 * cfgloop.h (finite_loop_p): Declare.
25555
25556 2009-04-26 Michael Matz <matz@suse.de>
25557
25558 * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
25559
25560 2009-04-26 Michael Matz <matz@suse.de>
25561
25562 * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
25563 pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
25564 * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
25565 pass_mark_used_blocks): Remove.
25566 * tree-optimize.c (pass_free_datastructures,
25567 execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
25568 * passes.c (init_optimization_passes): Don't call
25569 pass_mark_used_blocks, remove dead code.
25570
25571 2009-04-26 H.J. Lu <hongjiu.lu@intel.com>
25572
25573 * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
25574 * tree-ssa-live.h (register_ssa_partition): Likewise.
25575
25576 2009-04-26 Michael Matz <matz@suse.de>
25577
25578 Expand from SSA.
25579 * builtins.c (fold_builtin_next_arg): Handle SSA names.
25580 * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
25581 * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
25582 SSA names.
25583 (compare_pairs): Swap cost comparison.
25584 (coalesce_ssa_name): Don't use change_partition_var.
25585 * tree-nrv.c (struct nrv_data): Add modified member.
25586 (finalize_nrv_r): Set it.
25587 (tree_nrv): Use it to update statements.
25588 (pass_nrv): Require PROP_ssa.
25589 * tree-mudflap.c (mf_decl_cache_locals,
25590 mf_build_check_statement_for): Use make_rename_temp.
25591 (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
25592 * alias.c (find_base_decl): Handle SSA names.
25593 * emit-rtl (set_reg_attrs_for_parm): Make non-static.
25594 (component_ref_for_mem_expr): Don't leak SSA names into RTL.
25595 * rtl.h (set_reg_attrs_for_parm): Declare.
25596 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
25597 to "optimized", remove unused locals at finish.
25598 (execute_free_datastructures): Make global, call
25599 delete_tree_cfg_annotations.
25600 (execute_free_cfg_annotations): Don't call
25601 delete_tree_cfg_annotations.
25602
25603 * ssaexpand.h: New file.
25604 * expr.c (toplevel): Include ssaexpand.h.
25605 (expand_assignment): Handle SSA names the same as register variables.
25606 (expand_expr_real_1): Expand SSA names.
25607 * cfgexpand.c (toplevel): Include ssaexpand.h.
25608 (SA): New global variable.
25609 (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
25610 (SSAVAR): New macro.
25611 (set_rtl): New helper function.
25612 (add_stack_var): Deal with SSA names, use set_rtl.
25613 (expand_one_stack_var_at): Likewise.
25614 (expand_one_stack_var): Deal with SSA names.
25615 (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
25616 before unique numbers.
25617 (expand_stack_vars): Use set_rtl.
25618 (expand_one_var): Accept SSA names, add asserts for them, feed them
25619 to above subroutines.
25620 (expand_used_vars): Expand all partitions (without default defs),
25621 then only the local decls (ignoring those expanded already).
25622 (expand_gimple_cond): Remove edges when jumpif() expands an
25623 unconditional jump.
25624 (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
25625 or remove abnormal edges. Ignore insns setting the LHS of a TERed
25626 SSA name.
25627 (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
25628 members of SA; deal with PARM_DECL partitions here; expand
25629 all PHI nodes, free tree datastructures and SA. Commit instructions
25630 on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
25631 (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
25632 info and statements at start, collect garbage at finish.
25633 * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
25634 (VAR_ANN_PARTITION) Remove.
25635 (change_partition_var): Don't declare.
25636 (partition_to_var): Always return SSA names.
25637 (var_to_partition): Only accept SSA names.
25638 (register_ssa_partition): Only check argument.
25639 * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
25640 member.
25641 (delete_var_map): Don't free it.
25642 (var_union): Only accept SSA names, simplify.
25643 (partition_view_init): Mark only useful SSA names as used.
25644 (partition_view_fini): Only deal with SSA names.
25645 (change_partition_var): Remove.
25646 (dump_var_map): Use ssa_name instead of partition_to_var member.
25647 * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
25648 basic blocks.
25649 * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
25650 (struct _elim_graph): New member const_dests; nodes member vector of
25651 ints.
25652 (set_location_for_edge): New static helper.
25653 (create_temp): Remove.
25654 (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
25655 insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
25656 (new_elim_graph): Allocate const_dests member.
25657 (clean_elim_graph): Truncate const_dests member.
25658 (delete_elim_graph): Free const_dests member.
25659 (elim_graph_size): Adapt to new type of nodes member.
25660 (elim_graph_add_node): Likewise.
25661 (eliminate_name): Likewise.
25662 (eliminate_build): Don't take basic block argument, deal only with
25663 partition numbers, not variables.
25664 (get_temp_reg): New static helper.
25665 (elim_create): Use it, deal with RTL temporaries instead of trees.
25666 (eliminate_phi): Adjust all calls to new signature.
25667 (assign_vars, replace_use_variable, replace_def_variable): Remove.
25668 (rewrite_trees): Only do checking.
25669 (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
25670 (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
25671 init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
25672 contains_tree_r, MAX_STMTS_IN_LATCH,
25673 process_single_block_loop_latch, analyze_edges_for_bb,
25674 perform_edge_inserts): Remove.
25675 (expand_phi_nodes): New global function.
25676 (remove_ssa_form): Take ssaexpand parameter. Don't call removed
25677 functions, initialize new parameter, remember partitions having a
25678 default def.
25679 (finish_out_of_ssa): New global function.
25680 (rewrite_out_of_ssa): Make global. Adjust call to remove_ssa_form,
25681 don't reset in_ssa_p here, don't disable TER when mudflap.
25682 (pass_del_ssa): Remove.
25683 * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
25684 partition members.
25685 (execute_free_datastructures): Declare.
25686 * Makefile.in (SSAEXPAND_H): New variable.
25687 (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
25688 * basic-block.h (commit_one_edge_insertion): Declare.
25689 * passes.c (init_optimization_passes): Move pass_nrv and
25690 pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
25691 pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
25692 * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
25693 (redirect_branch_edge): Deal with super block when expanding, split
25694 out jump patching itself into ...
25695 (patch_jump_insn): ... here, new static helper.
25696
25697 2009-04-26 Michael Matz <matz@suse.de>
25698
25699 * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
25700 beyond num_ssa_names.
25701 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
25702 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
25703
25704 2009-04-26 Jakub Jelinek <jakub@redhat.com>
25705
25706 PR inline-asm/39543
25707 * fwprop.c (forward_propagate_asm): New function.
25708 (forward_propagate_and_simplify): Propagate also into __asm, if it
25709 doesn't increase the number of referenced registers.
25710
25711 PR c/39889
25712 * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
25713
25714 2009-04-26 Jakub Jelinek <jakub@redhat.com>
25715
25716 * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
25717 note_nonlocal_vla_type for nonlocal VLAs.
25718 (note_nonlocal_vla_type, note_nonlocal_block_vlas,
25719 contains_remapped_vars, remap_vla_decls): New functions.
25720 (convert_nonlocal_reference_stmt): If not optimizing, call
25721 note_nonlocal_block_vlas on GIMPLE_BIND block vars.
25722 (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
25723 if it wasn't found in var_map.
25724 (finalize_nesting_tree_1): Call remap_vla_decls. If outermost
25725 GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
25726 to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
25727 declare_vars.
25728 * gimplify.c (nonlocal_vlas): New variable.
25729 (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
25730 referenced VLAs.
25731 (gimplify_body): Create and destroy nonlocal_vlas.
25732
25733 * dwarf2out.c (loc_descr_plus_const): New function.
25734 (build_cfa_aligned_loc, tls_mem_loc_descriptor,
25735 mem_loc_descriptor, loc_descriptor_from_tree_1,
25736 descr_info_loc, gen_variable_die): Use it.
25737
25738 * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
25739 !TREE_STATIC VAR_DECLs.
25740 * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
25741 DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
25742 (gen_variable_die): Likewise. Don't look at TREE_PRIVATE if
25743 DECL_BY_REFERENCE is valid.
25744 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
25745 for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
25746 * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
25747 Copy DECL_BY_REFERENCE.
25748 (struct nesting_copy_body_data): New type.
25749 (nesting_copy_decl): New function.
25750 (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
25751 if they have variable length.
25752
25753 2009-04-26 Michael Matz <matz@suse.de>
25754
25755 * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
25756 mark new temporaries for renaming.
25757
25758 2009-04-26 Joseph Myers <joseph@codesourcery.com>
25759
25760 PR c/39581
25761 * c-decl.c (global_bindings_p): Return negative value.
25762 (c_variable_size): New. Based on variable_size from
25763 stor-layout.c.
25764 (grokdeclarator): Call c_variable_size not variable_size.
25765
25766 2009-04-26 Uros Bizjak <ubizjak@gmail.com>
25767
25768 * config/i386/i386.c (print_operand) ['z']: Fix typo.
25769
25770 2009-04-26 Kai Tietz <kai.tietz@onevision.com>
25771
25772 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
25773 Redefine it to just use mingw/include.
25774 (ASM_SPEC): Rules for -m32 and -m64.
25775 (LINK_SPEC): Use Likewise.
25776 (SPEC_32): New define.
25777 (SPEC_64): Likewise.
25778 (SUB_LINK_SPEC): Likewise.
25779 (MULTILIB_DEFAULTS): New define.
25780 * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
25781 Add multilib options.
25782 (MULTILIB_DIRNAMES): Likewise.
25783 (MULTILIB_OSDIRNAMES): Likewise.
25784 (LIBGCC): Likewise.
25785 (INSTALL_LIBGCC): Likewise.
25786
25787 2009-04-26 Joseph Myers <joseph@codesourcery.com>
25788
25789 PR c/39556
25790 * c-tree.h (enum c_inline_static_type): New.
25791 (record_inline_static): Declare.
25792 * c-decl.c (struct c_inline_static, c_inline_statics,
25793 record_inline_static, check_inline_statics): New.
25794 (pop_file_scope): Call check_inline_statics.
25795 (start_decl): Call record_inline_static instead of pedwarning
25796 directly for static in inline function.
25797 * c-typeck.c (build_external_ref): Call record_inline_static
25798 instead of pedwarning directly for static referenced in inline
25799 function.
25800
25801 2009-04-26 Steven Bosscher <steven@gcc.gnu.org>
25802
25803 * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
25804 not new but only being rescanned.
25805 * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
25806 reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
25807 alloc_reg_set_mem, free_reg_set_mem, record_one_set,
25808 record_set_info, compute_set, grealloc): Remove.
25809 (recompute_all_luids): New function.
25810 (gcse_main): Don't compute sets, and don't do related memory
25811 allocations/free-ing. If something changed before the end of the
25812 pass, update LUIDs using recompute_all_luids.
25813 (alloc_gcse_mem): Don't compute LUIDs. Don't allocate reg_set memory.
25814 (free_gcse_mem): Don't free it either.
25815 (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
25816 Use the df insn LUIDs.
25817 (load_killed_in_block): Likewise.
25818 (compute_hash_table_work): Don't compute reg_set_in_block.
25819 (compute_transp): Use DF_REG_DEF_CHAINs.
25820 (local_cprop_pass): Don't use compute_sets and related functions.
25821 (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
25822 Use get_max_uid() instead of max_cuid.
25823 (insert_insn_end_basic_block, pre_insert_copy_insn,
25824 update_ld_motion_stores): Don't try to
25825 keep reg_set tables up to date.
25826 (pre_insert_copies): Use df insn LUIDs.
25827 (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
25828 (reg_set_info): Don't use extra bitmap argument.
25829 (compute_store_table): Don't compute reg_set_in_block. Use DF scan
25830 information to compute regs_set_in_block.
25831 (free_store_memory, store_motion): Don't nullify reg_set_in_block.
25832 (bypass_jumps): Don't use compute_sets and friends.
25833
25834 2009-04-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25835
25836 PR testsuite/39710
25837 * opts.c (undocumented_msg): Do not leave blank even with
25838 ENABLE_CHECKING.
25839
25840 2009-04-25 Joseph Myers <joseph@codesourcery.com>
25841
25842 * c-decl.c (build_enumerator): Allow values folding to integer
25843 constants but not integer constant expressions with a pedwarn if
25844 pedantic.
25845
25846 2009-04-25 Joseph Myers <joseph@codesourcery.com>
25847
25848 PR c/39582
25849 * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
25850 with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
25851 type is an integer constant.
25852
25853 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
25854
25855 PR target/39897
25856 * config/i386/i386.c (print_operand) ['z']: Revert handling of
25857 HImode operands.
25858
25859 2009-04-25 Joseph Myers <joseph@codesourcery.com>
25860
25861 PR c/39564
25862 * c-decl.c (grokdeclarator): Diagnose declarations of functions
25863 with variably modified return type and no storage class
25864 specifiers, except for the case of nested functions. Distinguish
25865 extern declarations of functions with variably modified return
25866 types from those of objects with variably modified types.
25867
25868 2009-04-25 Jan Hubicka <jh@suse.cz>
25869
25870 * tree.c (list_equal_p): New function.
25871 * tree.h (list_equal_p): Declare.
25872 * coretypes.h (edge_def, edge, const_edge, basic_block_def
25873 basic_block_def, basic_block, const_basic_block): New.
25874 * tree-eh.c (make_eh_edge): EH edges are not abnormal.
25875 (redirect_eh_edge): New function.
25876 (make_eh_edge_update_phi): EH edges are not abnormal.
25877 * except.c: Include tree-flow.h.
25878 (list_match): New function.
25879 (eh_region_replaceable_by_p): New function.
25880 (replace_region): New function.
25881 (hash_type_list): New function.
25882 (hash_eh_region): New function.
25883 (eh_regions_equal_p): New function.
25884 (merge_peers): New function.
25885 (remove_unreachable_regions): Verify EH tree when checking;
25886 merge peers.
25887 (copy_eh_region_1): New function.
25888 (copy_eh_region): New function.
25889 (push_reachable_handler): New function.
25890 (build_post_landing_pads, dw2_build_landing_pads): Be ready for
25891 regions without label but with live RESX.
25892 * except.h (redirect_eh_edge_to_label): New.
25893 * tree-flow.h (redirect_eh_edge): New.
25894 * coretypes.h (edge_def, edge, const_edge, basic_block_def
25895 basic_block_def, basic_block, const_basic_block): Remove.
25896 * Makefile.in (except.o): Add dependency on tree-flow.h
25897 * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
25898 * basic-block.h (edge, const_edge, basic_block, const_basic_block):
25899 Remove.
25900
25901 2009-04-25 Eric Botcazou <ebotcazou@adacore.com>
25902
25903 PR bootstrap/39645
25904 * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
25905 on the destination of memcpy.
25906
25907 2009-04-25 Paolo Bonzini <bonzini@gnu.org>
25908
25909 * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
25910 REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
25911 REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
25912
25913 2009-04-25 Jan Hubicka <jh@suse.cz>
25914
25915 * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
25916 (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
25917 to be reached by different label than left.
25918 (update_eh_edges): Update comment; remove edge_to_remove if possible
25919 and return true if suceeded.
25920 (cleanup_empty_eh): Accept sharing map; handle shared regions.
25921 (cleanup_eh): Compute sharing map.
25922 * except.c (remove_eh_handler_and_replace): Add argument if we should
25923 update regions.
25924 (remove_unreachable_regions): Update for label sharing.
25925 (label_to_region_map): Likewise.
25926 (get_next_region_sharing_label): New function.
25927 (remove_eh_handler_and_replace): Add update_catch_try parameter; update
25928 prev_try pointers.
25929 (remove_eh_handler): Update.
25930 (remove_eh_region_and_replace_by_outer_of): New function.
25931 * except.h (struct eh_region): Add next_region_sharing_label.
25932 (remove_eh_region_and_replace_by_outer_of,
25933 get_next_region_sharing_label): Declare.
25934 * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
25935
25936 2009-04-25 Jan Hubicka <jh@suse.cz>
25937
25938 * tree-cfg.c (split_critical_edges): Split also edges where we can't
25939 insert code even if they are not critical.
25940
25941 2009-04-25 Jan Hubicka <jh@suse.cz>
25942
25943 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
25944 (gimple_can_remove_branch_p): EH edges won't remove branch by
25945 redirection.
25946 * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
25947 updating of non-abnormal EH edges.
25948 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
25949 (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
25950 (split_critical_edges): Split also edges where emitting code on them
25951 will lead to splitting later.
25952
25953 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
25954 H.J. Lu <hongjiu.lu@intel.com>
25955
25956 PR target/39590
25957 * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
25958 the configured assembler supports fildq and fistpq mnemonics.
25959 (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
25960 * configure: Regenerated.
25961 * config.in: Ditto.
25962
25963 * config/i386/i386.c (print_operand): Handle 'Z'.
25964 ['z']: Remove handling of special fild/fist suffixes.
25965 (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
25966 * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
25967 suffix of fild insn.
25968 (*floatsi<mode>2_vector_mixed): Ditto.
25969 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
25970 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
25971 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
25972 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
25973 * config/i386/gas.h (GAS_MNEMONICS): Remove.
25974
25975 2009-04-25 Ben Elliston <bje@au.ibm.com>
25976
25977 * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
25978 the source of a set operation.
25979
25980 2009-04-25 Anatoly Sokolov <aesok@post.ru>
25981
25982 * target.h (struct gcc_target): Add case_values_threshold field.
25983 * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
25984 (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
25985 * targhooks.c (default_case_values_threshold): New function.
25986 * targhooks.h (default_case_values_threshold): Declare function.
25987 * stmt.c (expand_case): Use case_values_threshold target hook.
25988 * expr.h (case_values_threshold): Remove declartation.
25989 * expr.c (case_values_threshold): Remove function.
25990 * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
25991
25992 * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
25993 * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
25994 (avr_case_values_threshold): Declare as static.
25995 * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
25996
25997 * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
25998 * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
25999 (mn10300_case_values_threshold): New function.
26000
26001 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
26002
26003 * ira.c (setup_cover_and_important_classes): Add enum cast.
26004
26005 2009-04-24 Vladimir Makarov <vmakarov@redhat.com>
26006
26007 * genpreds.c (write_enum_constraint_num): Output definition of
26008 CONSTRAINT_NUM_DEFINED_P macro.
26009 * ira.c (setup_cover_and_important_classes): Use
26010 CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
26011
26012 2009-04-24 DJ Delorie <dj@redhat.com>
26013
26014 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
26015 __SH2A_SINGLE_ONLY__ also.
26016
26017 2009-04-24 Steve Ellcey <sje@cup.hp.com>
26018
26019 * config/ia64/ia64.md (movfs_internal): Allow flt constants.
26020 (movdf_internal): Ditto.
26021 * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
26022 SFmode and DFmode constants.
26023 (ia64_print_operand): Add 'G' format for printing
26024 floating point constants.
26025
26026 2009-04-24 Richard Guenther <rguenther@suse.de>
26027
26028 * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
26029 from unsigned additions.
26030
26031 2009-04-24 Joseph Myers <joseph@codesourcery.com>
26032
26033 * c-typeck.c (set_init_index): Allow array designators that are
26034 not integer constant expressions with a pedwarn if pedantic.
26035
26036 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
26037
26038 * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
26039 zero if no overlap in nonzero bits between the operands.
26040
26041 2009-04-24 Ian Lance Taylor <iant@google.com>
26042
26043 * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
26044 (record_dead_and_set_regs): Likewise.
26045 * df.h (struct df_mw_hardreg): Change flags field to int.
26046 (struct df_base_ref): Likewise.
26047 (struct df): Change changeable_flags field to int.
26048 * df-scan.c (df_defs_record): Change clobber_flags to int.
26049 * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
26050 constants rather than #define macros.
26051 (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
26052 (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
26053 (enum dwarf_calling_convention): Likewise.
26054 (enum dwarf_line_number_x_ops): Likewise.
26055 (enum dwarf_call_frame_info): Likewise.
26056 (enum dwarf_source_language): Likewise.
26057 * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
26058 (add_calling_convention_attribute): Likewise.
26059 * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
26060 (combine_comparisons): Change compcode to int. Add cast to enum type.
26061 * genrecog.c (maybe_both_true_2): Change c to int.
26062 (write_switch): Likewise. Add cast to enum type.
26063 * gimplify.c (gimplify_omp_for): Handle return values from
26064 gimplify_expr using MIN rather than bitwise or.
26065 (gimplify_expr): Add cast to enum type.
26066 * ipa-prop.c (update_jump_functions_after_inlining): Change
26067 IPA_BOTTOM to IPA_JF_UNKNOWN.
26068 * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
26069 Add casts to enum type.
26070 (setup_cover_and_important_classes): Change cl to int. Add casts
26071 to enum type.
26072 (setup_class_translate): Change cl and mode to int.
26073 (ira_init_once): Change mode to int.
26074 (free_register_move_costs): Likewise.
26075 (setup_prohibited_mode_move_regs): Add casts to enum type.
26076 * langhooks.c (add_builtin_function_common): Rework assertion that
26077 value fits bitfield.
26078 * mcf.c (add_fixup_edge): Change type parameter to edge_type.
26079 * omega.c (omega_do_elimination): Avoid math on enum types.
26080 * optabs.c (expand_vec_shift_expr): Remove casts to int.
26081 * opts.c (set_debug_level): Change 2 to enum constant. Use new
26082 int local to handle integral_argment value.
26083 * regmove.c (try_auto_increment): Change PUT_MODE to
26084 PUT_REG_NOTE_KIND.
26085 * reload.c (push_secondary_reload): Add casts to enum type.
26086 (secondary_reload_class, find_valid_class): Likewise.
26087 * reload1.c (emit_input_reload_insns): Likewise.
26088 * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
26089 * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
26090 * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
26091 constant.
26092 * tree.c (build_common_builtin_nodes): Add casts to enum type.
26093 * tree-complex.c (complex_lattice_t): Typedef to int rather than
26094 enum type.
26095 (expand_complex_libcall): Add casts to enum type.
26096 * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
26097 * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
26098 with ERROR_MARK, not NUM_TREE_CODES.
26099 (vect_create_epilog_for_reduction): Likewise.
26100 (vectorizable_reduction): Don't initialize epiloc_reduc_code.
26101 When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
26102 * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
26103 enum machine_mode.
26104 * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
26105 vect_unused_in_loop. Change 0 to loop_vect.
26106 * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
26107 * var-tracking.c (get_init_value): Change return type to enum
26108 var_init_status.
26109 * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
26110 * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
26111 arm_fp_model.
26112 (arm_override_options): Add casts to enum type.
26113 (arm_emit_tls_decoration): Likewise.
26114 * config/i386/i386.c (ix86_function_specific_restore): Add casts
26115 to enum type.
26116 * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
26117 * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
26118 * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
26119 enum type.
26120 * config/s390/s390.c (code_for_builtin_64): Change to array of
26121 enum insn_code.
26122 (code_for_builtin_31): Likewise.
26123 (s390_expand_builtin): Change code_for_builtin to enum insn_code
26124 const *.
26125 * config/sparc/sparc.c (sparc_override_options): Change value
26126 field in struct code_model to enum cmodel. In initializer change
26127 0 to NULL and add cast to enum type.
26128
26129 * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
26130 Change all callers. Issue a -Wc++-compat warning using
26131 lhs_origtype if necessary.
26132 (convert_for_assignment): Issue -Wc++-compat warnings about
26133 invalid conversions to enum type on assignment.
26134 * c-common.h (build_modify_expr): Update declaration.
26135
26136 2009-04-24 Nick Clifton <nickc@redhat.com>
26137
26138 * config/iq2000/iq2000.c (function_arg): Handle TImode values.
26139 (function_arg_advance): Likewise.
26140 * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
26141 5th alternative.
26142
26143 2009-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
26144
26145 * config/s390/constraints.md ('I', 'J'): Fix condition.
26146
26147 2009-04-24 Diego Novillo <dnovillo@google.com>
26148
26149 * gengtype-parse.c (parse_error): Add newline after message.
26150
26151 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
26152
26153 * config/i386/sse.md (avxmodesuffixs): Removed.
26154 (*avx_pinsr<avxmodesuffixs>): Renamed to ...
26155 (*avx_pinsr<ssevecsize>): This.
26156
26157 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
26158
26159 * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
26160 follow chains of regs with a single definition, and allow expressions
26161 that are function_invariant_p.
26162 (simple_rhs_p): Allow expressions that are function_invariant_p.
26163
26164 2009-04-24 Paolo Bonzini <bonzini@gnu.org>
26165
26166 PR middle-end/39867
26167 * fold-const.c (fold_cond_expr_with_comparison): When folding
26168 > and >= to MAX, make sure the MAX uses the same type as the
26169 comparison's operands.
26170
26171 2009-04-24 Nick Clifton <nickc@redhat.com>
26172
26173 * config/frv/frv.c (frv_frame_access): Do not use reg+reg
26174 addressing for DImode accesses.
26175 (frv_print_operand_address): Handle PLUS case.
26176 * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
26177
26178 2009-04-24 Jakub Jelinek <jakub@redhat.com>
26179
26180 PR rtl-optimization/39794
26181 * alias.c (canon_true_dependence): Add x_addr argument.
26182 * rtl.h (canon_true_dependence): Adjust prototype.
26183 * cse.c (check_dependence): Adjust canon_true_dependence callers.
26184 * cselib.c (cselib_invalidate_mem): Likewise.
26185 * gcse.c (compute_transp): Likewise.
26186 * dse.c (scan_reads_nospill): Likewise.
26187 (record_store, check_mem_read_rtx): Likewise. For non-const-or-frame
26188 addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
26189 canon_base_addr of the group, plus optional offset.
26190 (struct group_info): Rename canon_base_mem to
26191 canon_base_addr.
26192 (get_group_info): Set canon_base_addr to canon_rtx of base, not
26193 canon_rtx of base_mem.
26194
26195 2009-04-23 Paolo Bonzini <bonzini@gnu.org>
26196
26197 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
26198 Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
26199
26200 2009-04-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26201
26202 * config/spu/spu-builtins.h: Delete file.
26203
26204 * config/spu/spu.h (enum spu_builtin_type): Move here from
26205 spu-builtins.h.
26206 (struct spu_builtin_description): Likewise. Add GTY marker.
26207 Do not use enum spu_function_code or enum insn_code.
26208 (spu_builtins): Add extern declaration.
26209
26210 * config/spu/spu.c: Do not include "spu-builtins.h".
26211 (enum spu_function_code, enum spu_builtin_type_index,
26212 V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
26213 V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
26214 unsigned_V8HI_type_node, unsigned_V4SI_type_node,
26215 unsigned_V2DI_type_node): Move here from spu-builtins.h.
26216 (spu_builtin_types): Make static. Add GTY marker.
26217 (spu_builtins): Add extern declaration with GTY marker.
26218 Include "gt-spu.h".
26219
26220 * config/spu/spu-c.c: Do not include "spu-builtins.h".
26221 (spu_resolve_overloaded_builtin): Do not use spu_function_code.
26222 Check programmatically whether all parameters are scalar.
26223
26224 * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
26225
26226 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
26227
26228 * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
26229 assignment from the constructor either if the target is volatile.
26230
26231 2009-04-23 Daniel Jacobowitz <dan@codesourcery.com>
26232
26233 * config/arm/arm.md (insv): Do not share operands[0].
26234
26235 2009-04-23 Nathan Sidwell <nathan@codesourcery.com>
26236
26237 * config/vxlib-tls.c (active_tls_threads): Delete.
26238 (delete_hook_installed): New.
26239 (tls_delete_hook): Don't delete the delete hook.
26240 (tls_destructor): Delete it here.
26241 (__gthread_set_specific): Adjust installing the delete hook.
26242 (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
26243 __gthread_leave_tsd_dtor_context.
26244
26245 2009-04-23 Rafael Avila de Espindola <espindola@google.com>
26246
26247 * c-format.c (gcc_tdiag_char_table): Add support for %E.
26248
26249 2009-04-23 Uros Bizjak <ubizjak@gmail.com>
26250
26251 * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
26252 enum type.
26253 (alpha_rtx_costs): Ditto.
26254 (emit_unlikely_jump): Use add_reg_note.
26255 (emit_frame_store_1): Ditto.
26256 (alpha_expand_prologue): Ditto.
26257 (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
26258 * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
26259
26260 2009-04-23 Nick Clifton <nickc@redhat.com>
26261
26262 * config/v850/v850.md (epilogue): Remove suppressed code.
26263 (return): Rename to return_simple and remove test of frame size.
26264 * config/v850/v850.c (expand_epilogue): Rename call to gen_return
26265 to gen_return_simple.
26266
26267 2009-04-22 Jing Yu <jingyu@google.com>
26268
26269 PR testsuite/39781
26270 * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
26271
26272 2009-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
26273
26274 PR C/31499
26275 * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
26276 and RECORD_TYPE/UNION_TYPE. When outputing the actual element and the
26277 value is a VECTOR_CST, the element type is the element type of the
26278 vector.
26279
26280 2009-04-22 DJ Delorie <dj@redhat.com>
26281
26282 * config/m32c/m32c.h: Update GTY annotations to new syntax.
26283
26284 2009-04-22 Jakub Jelinek <jakub@redhat.com>
26285
26286 * alias.c (find_base_term): Move around LO_SUM case, so that
26287 CONST falls through into PLUS/MINUS handling.
26288
26289 PR c/39855
26290 * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
26291 into 0, use omit_one_operand.
26292
26293 2009-04-23 Ben Elliston <bje@au.ibm.com>
26294
26295 * config/rs6000/linux-unwind.h (get_regs): Remove type
26296 puns. Change the type of `pc' to an array of unsigned ints and
26297 update all users. Constify frame24.
26298
26299 2009-04-22 DJ Delorie <dj@redhat.com>
26300
26301 * config/m32c/m32c.c (m32c_special_page_vector_p): Move
26302 declarations before code.
26303 (current_function_special_page_vector): Likewise.
26304 (m32c_expand_insv): Silence a warning.
26305
26306 2009-04-21 Taras Glek <tglek@mozilla.com>
26307
26308 * alias.c: Update GTY annotations to new syntax.
26309 * basic-block.h: Likewise.
26310 * bitmap.h: Likewise.
26311 * c-common.h: Likewise.
26312 * c-decl.c: Likewise.
26313 * c-parser.c: Likewise.
26314 * c-pragma.c: Likewise.
26315 * c-tree.h: Likewise.
26316 * cfgloop.h: Likewise.
26317 * cgraph.h: Likewise.
26318 * config/alpha/alpha.c: Likewise.
26319 * config/arm/arm.h: Likewise.
26320 * config/avr/avr.h: Likewise.
26321 * config/bfin/bfin.c: Likewise.
26322 * config/cris/cris.c: Likewise.
26323 * config/darwin.c: Likewise.
26324 * config/frv/frv.c: Likewise.
26325 * config/i386/i386.c: Likewise.
26326 * config/i386/i386.h: Likewise.
26327 * config/i386/winnt.c: Likewise.
26328 * config/ia64/ia64.h: Likewise.
26329 * config/iq2000/iq2000.c: Likewise.
26330 * config/mips/mips.c: Likewise.
26331 * config/mmix/mmix.h: Likewise.
26332 * config/pa/pa.c: Likewise.
26333 * config/pa/pa.h: Likewise.
26334 * config/rs6000/rs6000.c: Likewise.
26335 * config/s390/s390.c: Likewise.
26336 * config/sparc/sparc.c: Likewise.
26337 * config/xtensa/xtensa.c: Likewise.
26338 * cselib.h: Likewise.
26339 * dbxout.c: Likewise.
26340 * dwarf2out.c: Likewise.
26341 * except.c: Likewise.
26342 * except.h: Likewise.
26343 * fixed-value.h: Likewise.
26344 * function.c: Likewise.
26345 * function.h: Likewise.
26346 * gimple.h: Likewise.
26347 * integrate.c: Likewise.
26348 * optabs.c: Likewise.
26349 * output.h: Likewise.
26350 * real.h: Likewise.
26351 * rtl.h: Likewise.
26352 * stringpool.c: Likewise.
26353 * tree-data-ref.c: Likewise.
26354 * tree-flow.h: Likewise.
26355 * tree-scalar-evolution.c: Likewise.
26356 * tree-ssa-address.c: Likewise.
26357 * tree-ssa-alias.h: Likewise.
26358 * tree-ssa-operands.h: Likewise.
26359 * tree.c: Likewise.
26360 * tree.h: Likewise.
26361 * varasm.c: Likewise.
26362 * varray.h: Likewise.
26363 * vec.h: Likewise.
26364 * coretypes.h: Do not define GTY macro if it is already defined.
26365 * doc/gty.texi: Update GTY documentation to new syntax.
26366 * gengtype-lex.l: Enforce attribute-like syntax for GTY
26367 annotations on structs.
26368 * gengtype-parse.c: Likewise.
26369
26370 2009-04-22 Mark Heffernan <meheff@google.com>
26371
26372 * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
26373
26374 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
26375
26376 * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
26377 where appropriate.
26378
26379 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
26380
26381 * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
26382 the same as a PLUS without a shift. Increase the cost of a
26383 CONST_INT in MULT.
26384
26385 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
26386
26387 * Makefile.in: Update dependencies.
26388 * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
26389 * errors.h: Remove bogus comment about compatibility.
26390 (warning): Update declaration.
26391 * genautomata.c: Update all calls to warning.
26392 * gimple.c: Do not include errors.h. Include toplev.h.
26393 * tree-ssa-structalias.c: Do not include errors.h.
26394 * omega.c: Likewise.
26395 * tree-ssa-reassoc.c: Likewise.
26396 * config/spu/spu-c.c: Likewise.
26397 * config/spu/t-spu-elf: Update dependencies.
26398
26399 2009-04-22 Richard Guenther <rguenther@suse.de>
26400
26401 PR tree-optimization/39824
26402 * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
26403 make sure the types are compatible.
26404
26405 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
26406
26407 PR c++/14875
26408 * c-common.c (c_parse_error): Take a token_flags parameter.
26409 Use token_type for the token type instead.
26410 Pass token_flags to cpp_type2name.
26411 * c-common.h (c_parse_error): Update declaration.
26412 * c-parser.c (c_parser_error): Pass 0 as token flags.
26413
26414 2009-04-22 Andrey Belevantsev <abel@ispras.ru>
26415
26416 PR rtl-optimization/39580
26417 * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
26418
26419 2009-04-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26420
26421 * function.c (expand_function_end): Do not emit a jump to the "naked"
26422 return label for fall-through returns.
26423 * except.c (sjlj_emit_function_exit): Always place the call to the
26424 unregister function at the location installed by expand_function_end.
26425
26426 2009-04-22 Richard Guenther <rguenther@suse.de>
26427
26428 PR tree-optimization/39845
26429 * tree-switch-conversion.c (build_arrays): Add new referenced vars.
26430 (gen_inbound_check): Likewise.
26431
26432 2009-04-22 Nathan Sidwell <nathan@codesourcery.com>
26433
26434 * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
26435 padding for PPC.
26436 (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
26437 * config/vxlib.c (__gthread_once): Add race guard for PPC.
26438
26439 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
26440
26441 * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
26442 sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
26443 shift counts to avoid out-of-bounds array accesses.
26444
26445 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
26446
26447 * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
26448 (Pmode): Move above.
26449
26450 2009-04-22 Uros Bizjak <ubizjak@gmail.com>
26451
26452 * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
26453 NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
26454 GET_CODE macro. Use IN_RANGE macro where appropriate.
26455 * config/alpha/alpha.h: Ditto.
26456 * config/alpha/alpha.md: Ditto.
26457 * config/alpha/constraints.md: Ditto.
26458 * config/alpha/predicates.md: Ditto.
26459
26460 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
26461
26462 * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
26463 * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26464 * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26465 * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26466 * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26467 * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26468 * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26469 * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26470 * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26471 * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26472 * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26473 * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26474 * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26475 * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26476 * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26477 * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26478 * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26479 * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26480 * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26481 * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26482 * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26483 * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26484 * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26485 * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26486 * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26487 * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26488 * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26489
26490 2009-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
26491
26492 * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
26493 references from comments.
26494 * cfgbuild.c (count_basic_blocks): Delete.
26495 (find_basic_blocks_1): Delete.
26496 (find_basic_blocks): Delete.
26497 * except.c (finish_eh_generation): Make static. Move comment from
26498 except.h here. Remove find_basic_blocks references from comments.
26499 * except.h (finish_eh_generation): Delete.
26500 * basic-block.h (find_basic_blocks): Delete.
26501 * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
26502
26503 2009-04-22 Dave Korn <dave.korn.cygwin@gmail.com>
26504
26505 * sdbout.c (sdbout_symbol): Pass VOIDmode to eliminate_regs.
26506 (sdbout_parms): Likewise.
26507
26508 2009-04-21 Kaz Kojima <kkojima@gcc.gnu.org>
26509
26510 * config/sh/sh.c (prepare_cbranch_operands): Use
26511 LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
26512 (expand_cbranchdi4): Likewise.
26513 (from_compare): Add cast to enum type.
26514 (expand_cbranchsi4): Use add_reg_note.
26515 (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
26516 (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
26517 (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
26518 (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
26519 * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
26520 instead of CODE_FOR_nothing.
26521 (cbranchdi4): Likewise. Fix the order of arguments for
26522 gen_rtx_fmt_ee.
26523 (push_fpscr): Use add_reg_note.
26524 (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
26525 reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
26526
26527 2009-04-21 Joseph Myers <joseph@codesourcery.com>
26528
26529 * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
26530 ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
26531 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
26532 ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
26533 ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
26534 FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
26535 config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
26536 config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
26537 config/alpha/x-vms, config/arc/t-arc,
26538 config/arm/README-interworking, config/arm/arm-c.c,
26539 config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
26540 config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
26541 config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
26542 config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
26543 config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
26544 config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
26545 config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
26546 config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
26547 config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
26548 config/cris/t-elfmulti, config/crx/t-crx,
26549 config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
26550 config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
26551 config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
26552 config/h8300/t-h8300, config/i386/athlon.md,
26553 config/i386/darwin-libgcc.10.4.ver,
26554 config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
26555 config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
26556 config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
26557 config/i386/t-linux64, config/i386/t-nwld,
26558 config/i386/t-rtems-i386, config/i386/t-sol2-10,
26559 config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
26560 config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
26561 config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
26562 config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
26563 config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
26564 config/iq2000/t-iq2000, config/libgcc-glibc.ver,
26565 config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
26566 config/m32r/t-m32r, config/m68hc11/t-m68hc11,
26567 config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
26568 config/m68k/t-uclinux, config/mcore/t-mcore,
26569 config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
26570 config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
26571 config/mips/crtn.asm, config/mips/irix-crti.asm,
26572 config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
26573 config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
26574 config/mips/mips-fixed.md, config/mips/sb1.md,
26575 config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
26576 config/mips/t-iris6, config/mips/t-isa3264,
26577 config/mips/t-libgcc-mips16, config/mips/t-linux64,
26578 config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
26579 config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
26580 config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
26581 config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
26582 config/mn10300/t-linux, config/mn10300/t-mn10300,
26583 config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
26584 config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
26585 config/picochip/libgccExtras/clzsi2.asm,
26586 config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
26587 config/rs6000/darwin-libgcc.10.4.ver,
26588 config/rs6000/darwin-libgcc.10.5.ver,
26589 config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
26590 config/rs6000/t-aix43, config/rs6000/t-aix52,
26591 config/rs6000/t-darwin, config/rs6000/t-fprules,
26592 config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
26593 config/rs6000/t-lynx, config/rs6000/t-netbsd,
26594 config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
26595 config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
26596 config/rs6000/t-rtems, config/rs6000/t-spe,
26597 config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
26598 config/score/t-score-elf, config/sh/divcost-analysis,
26599 config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
26600 config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
26601 config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
26602 config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
26603 config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
26604 config/stormy16/stormy-abi, config/stormy16/t-stormy16,
26605 config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
26606 config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
26607 config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
26608 config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
26609 config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
26610 gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
26611 java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
26612 limitx.h, version.c, xcoff.h: Add copyright and license notices.
26613 * config/h8300/genmova.sh: Include copyright and license notices
26614 in generated output.
26615 * config/h8300/mova.md: Regenerate.
26616 * doc/install.texi2html: Include word "Copyright" in copyright
26617 notice and use name "Free Software Foundation, Inc.".
26618 * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
26619 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
26620 ChangeLog-2007, ChangeLog-2008: Correct dates.
26621
26622 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
26623
26624 * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
26625 NE_EXPR operations as well.
26626 * c-parser.c (c_parser_condition): Do not set location information on
26627 the condition.
26628 (c_parser_conditional_expression): Likewise.
26629 (c_parser_binary_expression): Set location information on operators.
26630 * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
26631 TRUTH_NOT_EXPR has been folded.
26632 * fold-const.c (fold_truth_not_expr): Copy location information from
26633 the incoming expression to the outgoing one.
26634 * gimplify.c (shortcut_cond_r): Add locus parameter. Pass it to
26635 recursive calls on the LHS of the operator but pass that of the
26636 operator to recursive calls on the RHS of the operator. Set it
26637 on the COND_EXPR.
26638 (shortcut_cond_expr): Set the locus of the operator on the second
26639 COND_EXPR and that of the expression on the first in degenerate cases.
26640 Pass the locus of the expression to calls to shortcut_cond_r.
26641 Set the locus of the 'then' block on the associated jump, if any.
26642 (gimplify_boolean_expr): Add locus parameter. Set it on the COND_EXPR.
26643 (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
26644 expression to call to gimplify_boolean_expr.
26645
26646 2009-04-21 Kai Tietz <kai.tietz@onevision.com>
26647
26648 * config.gcc: Add additional configuration for
26649 i686-w64-mingw* and x86_64-w64-mingw* triplet.
26650 * config/i386/mingw-w64.h: New mingw-w64 specific header.
26651 (CPP_SPEC): Redefine for allowing -municode option.
26652 (STARTFILE_SPEC): Likewise.
26653 * config/i386/t-mingw-w64: New.
26654 * config/i386/mingw-w64.opt: New.
26655 (municode): Add new target option.
26656 * doc/invoke.texi (municode): Add documentation for new option.
26657
26658 2009-04-21 Ian Lance Taylor <iant@google.com>
26659
26660 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26661 Correct test for number of arguments.
26662 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
26663
26664 2009-04-21 Andreas Schwab <schwab@linux-m68k.org>
26665
26666 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
26667 argument of emit_library_call.
26668
26669 2009-04-21 Richard Guenther <rguenther@suse.de>
26670
26671 PR middle-end/39829
26672 * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
26673 inside VIEW_CONVERT_EXPRs.
26674
26675 2009-04-21 Martin Jambor <mjambor@suse.cz>
26676
26677 * tree-switch-conversion.c (build_constructors): Split a long line.
26678 (constructor_contains_same_values_p): New function.
26679 (build_one_array): Create assigns of constants if possible, do not
26680 call mark_sym_for_renaming, call update_stmt.
26681 (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
26682 make_rename_temp. Do not call mark_symbols_for_renaming, call
26683 update_stmt.
26684 (gen_def_assigns): Do not call mark_symbols_for_renaming or
26685 find_new_referenced_vars, call update_stmt.
26686 (gen_inbound_check): Use create_tmp_var and create ssa names manually
26687 instead of calling make_rename_temp. Do not call
26688 find_new_referenced_vars or mark_symbols_for_renaming, call
26689 update_stmt.
26690
26691 2009-04-21 Richard Guenther <rguenther@suse.de>
26692
26693 PR tree-optimization/39827
26694 * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
26695 (tree_ssa_phiprop): Pass the correct array size.
26696
26697 2009-04-21 Uros Bizjak <ubizjak@gmail.com>
26698
26699 * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
26700
26701 2009-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
26702
26703 PR 16202
26704 * c-typeck.c (lvalue_p): Move declaration ...
26705 * c-common.h (lvalue_p): ... to here.
26706 * c-common.c (candidate_equal_p): New.
26707 (add_tlist): Use it.
26708 (merge_tlist): Use it.
26709 (warn_for_collisions_1): Likewise.
26710 (warning_candidate_p): Accept more candidates.
26711 (verify_tree): A warning candidate can be an expression. Use
26712 candidate_equal_p.
26713
26714 2009-04-21 Ben Elliston <bje@au.ibm.com>
26715
26716 PR target/5267
26717 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
26718 for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
26719 options. Remove -mcall-solaris documentation.
26720
26721 2009-04-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
26722
26723 PR c++/13358
26724 * doc/invoke.texi (-Wlong-long): Update description.
26725 * c-lex (interpret_integer): Only warn if there was no previous
26726 overflow and -Wlong-long is enabled.
26727 * c-decl.c (declspecs_add_type): Drop redundant flags.
26728 * c.opt (Wlong-long): Init to -1.
26729 * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
26730 and front-end warn_long_long. Wlong-long only depends on other
26731 flags if it is uninitialized.
26732 * c-parser.c (disable_extension_diagnostics): warn_long_long is
26733 the same for CPP and FE.
26734 (restore_extension_diagnostics): Likewise.
26735
26736 2009-04-20 Ian Lance Taylor <iant@google.com>
26737
26738 Fix enum conversions which are invalid in C++:
26739 * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
26740 * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
26741 * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
26742 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
26743 * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
26744 (dbxout_parms): Likewise.
26745 * df-core.c (df_set_flags): Change changeable_flags parameter to int.
26746 (df_clear_flags): Likewise.
26747 * df-problems.c (df_rd_bb_local_compute_process_def): Change
26748 top_flag parameter to int.
26749 (df_chain_create_bb_process_use): Likewise.
26750 (df_chain_add_problem): Change chain_flags parameter to unsigned int.
26751 Remove cast.
26752 * df-scan.c (df_ref_create): Change ref_flags parameter to int.
26753 (df_ref_create_structure, df_def_record_1): Likewise.
26754 (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
26755 (df_notes_rescan): Change 0 to VOIDmode in function call.
26756 (df_get_call_refs, df_insn_refs_collect): Likewise.
26757 (df_bb_regs_collect): Likewise.
26758 (df_entry_block_defs_collect): Likewise.
26759 (df_exit_block_uses_collect): Likewise.
26760 * df.h: Update declarations.
26761 * double-int.c (double_int_divmod): Add cast to enum type.
26762 * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
26763 * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
26764 (based_loc_descr): Likewise.
26765 (loc_descriptor_from_tree_1): Change first_op and second_op to
26766 enum dwarf_location_atom. Add cast to enum type.
26767 * expmed.c (init_expmed): Change 0 to SET in function call.
26768 * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
26769 (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
26770 (do_store_flag): Likewise.
26771 * fixed-value.h (struct fixed_value): Change mode to enum
26772 machine_mode.
26773 * function.c (assign_parms): Change 0 to VOIDmode in function call.
26774 * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
26775 function call.
26776 (insert_insn_decl, insert_decl, insert_state): Likewise.
26777 (automata_list_finish): Likewise.
26778 * genrecog.c (process_define_predicate): Add cast to enum type.
26779 * gensupport.c (init_predicate_table): Add cast to enum type.
26780 * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
26781 function call.
26782 (gimple_build_call_1, gimple_build_label): Likewise.
26783 (gimple_build_goto, gimple_build_asm_1): Likewise.
26784 (gimple_build_switch_1, gimple_build_cdt): Likewise.
26785 * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
26786 (enum fallback): Rename from enum fallback_t.
26787 (fallback_t): Typedef as int.
26788 * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
26789 GSI_SAME_STMT in function call.
26790 * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
26791 enum type.
26792 (setup_reg_class_relations): Likewise.
26793 (setup_reg_class_nregs): Change cl to int. Add casts to enum type.
26794 (setup_prohibited_class_mode_regs): Add cast to enum type.
26795 (setup_prohibited_mode_move_regs): Likewise.
26796 * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
26797 (record_address_regs): Change i to enum reg_class.
26798 * lists.c (alloc_EXPR_LIST): Add cast to enum type.
26799 * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
26800 (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
26801 (GET_MODE_2XWIDER_MODE): Likewise.
26802 (GET_CLASS_NARROWEST_MODE): Likewise.
26803 * omp-low.c (expand_omp_for): Add cast to enum type.
26804 * optabs.c (debug_optab_libfuncs): Add casts to enum type.
26805 * opts.c (enable_warning_as_error): Change kind to diagostic_t.
26806 * postreload.c (reload_cse_simplify_operands): Change rclass local
26807 to enum reg_class.
26808 * predict.c (combine_predictions_for_insn): Change best_predictor
26809 and predictor to enum br_predictor.
26810 (combine_predictions_for_bb): Likewise.
26811 (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
26812 use SET_PREDICT_EXPR_OUTCOME.
26813 * real.c (real_arithmetic): Change icode to code in function call.
26814 * reginfo.c (init_move_cost): Add casts to enum type.
26815 (init_reg_sets_1, init_fake_stack_mems): Likewise.
26816 * regmove.c (regclass_compatible_p): Change class0 and class1 to
26817 enum reg_class.
26818 * reload.c (find_valid_class): Add casts to enum type.
26819 (push_reload): Change 0 to NO_REGS in function call.
26820 (find_reloads): Change this_alternative to array of enum
26821 reg_class. Remove some now-unnecessary casts.
26822 (make_memloc): Change 0 to VOIDmode in function call.
26823 * reload1.c (reload): Change 0 to VOIDmode in function call.
26824 (eliminate_regs_1, elimination_effects): Likewise.
26825 (eliminate_regs_in_insn): Likewise.
26826 (emit_input_reload_insns): Add cast to enum type.
26827 (delete_output_reload): Change 0 to VOIDmode in function call.
26828 * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
26829 to enum type in function call.
26830 * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
26831 (SET_PREDICT_EXPR_OUTCOME): Define.
26832 * tree-dump.c (get_dump_file_info): Change phase parameter to int.
26833 (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
26834 (dump_initialized_p, dump_flag_name, dump_end): Likewise.
26835 (dump_function): Likewise.
26836 * tree-dump.h: Update declarations.
26837 * tree-pass.h: Update declarations.
26838 * varasm.c (assemble_integer): Change mclass to enum mode_class.
26839 * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
26840 enum type.
26841 (arm_rtx_costs_1): Correct parenthesization.
26842 (arm_rtx_costs): Add casts to enum type.
26843 (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
26844 (vfp_emit_fstmd): Use add_rg_note.
26845 (emit_multi_reg_push, emit_sfm): Likewise.
26846 (thumb_set_frame_pointer): Likewise.
26847 (arm_expand_prologue): Likewise.
26848 (arm_regno_class): Change return type to enum reg_class.
26849 (thumb1_expand_prologue): Use add_reg_note.
26850 * config/arm/arm-protos.h (arm_regno_class): Update declaration.
26851 * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
26852 in function call.
26853 * config/arm/gentune.sh: Add cast to enum type.
26854 * config/arm/arm-tune.md: Rebuild.
26855 * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
26856 (ix86_split_fp_branch, predict_jump): Likewise.
26857 (ix86_expand_multi_arg_builtin): Change sub_code from enum
26858 insn_code to enum rtx_code.
26859 (ix86_builtin_vectorized_function): Add cast to enum type.
26860 * config/i386/i386.md (truncdfsf2): Change slot to enum
26861 ix86_stack_slot.
26862 (truncxf<mode>2, isinf<mode>2): Likewise.
26863 * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
26864 enum type.
26865 * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
26866 (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
26867 (insert_bundle_state): Change 1 to INSERT in function call.
26868 (ia64_add_bundle_selector_before): Likewise.
26869 * config/ia64/ia64.md (cpu attr): Add cast to enum type.
26870 (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
26871 (restore_stack_nonlocal): Likewise.
26872 * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
26873 function call.
26874 * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
26875 function call.
26876 (mips_rtx_costs): Likewise.
26877 (mips_override_options): Add casts to enum type.
26878 * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
26879 in function call.
26880 * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
26881 (store_reg, set_reg_plus_d): Likewise.
26882 (hppa_expand_prologue, hppa_profile_hook): Likewise.
26883 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
26884 cast to enum type.
26885 (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
26886 function call.
26887 (emit_unlikely_jump): Use add_reg_note.
26888 (rs6000_emit_allocate_stack): Likewise.
26889 (rs6000_frame_related, rs6000_emit_prologue): Likewise.
26890 (output_toc): Change 1 to INSERT in function call.
26891 (output_profile_hook): Change 0 to LCT_NORMAL in function call.
26892 (rs6000_initialize_trampoline): Likewise.
26893 (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
26894 function call.
26895 * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
26896 (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
26897 (s390_expand_setmem, s390_expand_cmpmem): Likewise.
26898 (save_gprs): Use add_reg_note.
26899 (s390_emit_prologue): Likewise.
26900 (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
26901 * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
26902 (sparc_fold_builtin): Add cast to enum type.
26903 * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
26904 enum insn_code.
26905 (spu_expand_prologue): Use add_reg_note.
26906 (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
26907
26908 2009-04-20 Ian Lance Taylor <iant@google.com>
26909
26910 * c-parser.c (c_parser_attributes): Change VEC back to tree list.
26911 (c_parser_postfix_expression_after_primary): Get VEC for list of
26912 arguments. Get original types of arguments. Call
26913 build_function_call_vec.
26914 (cached_expr_list_1, cached_expr_list_2): New static variables.
26915 (c_parser_expr_list): Change return type to VEC *. Add
26916 p_orig_types parameter. Change all callers.
26917 (c_parser_release_expr): New static function.
26918 (c_parser_vec_to_tree_list): New static function.
26919 * c-typeck.c (build_function_call): Rewrite to build a VEC and
26920 call build_function_call_vec.
26921 (build_function_call_vec): New function, based on old
26922 build_function_call.
26923 (convert_arguments): Remove nargs and argarray parameters. Change
26924 values to a VEC. Add origtypes parameter.
26925 (build_modify_expr): Add rhs_origtype parameter. Change all callers.
26926 (convert_for_assignment): Add origtype parameter. Change all
26927 callers. If warn_cxx_compat, check for conversion to an enum
26928 type when calling a function.
26929 (store_init_value): Add origtype parameter. Change all callers.
26930 (digest_init): Likewise.
26931 (struct init_node): Add origtype field.
26932 (add_pending_init): Add origtype parameter. Change all callers.
26933 (output_init_element): Likewise.
26934 (output_pending_init_elements): Pass origtype from init_node to
26935 output_init_element.
26936 (process_init_element): Pass origtype from c_expr to
26937 output_init_element.
26938 (c_finish_return): Add origtype parameter. Change all callers.
26939 * c-common.c (sync_resolve_size): Change params to VEC *. Change
26940 caller.
26941 (sync_resolve_params): Likewise.
26942 (sync_resolve_return): Change params to first_param. Change caller.
26943 (resolve_overloaded_builtins): Change params to VEC *. Change
26944 callers. Save first parameter around call to build_function_call_vec.
26945 * c-decl.c (finish_decl): Add origtype parameter. Change all
26946 callers. Call build_function_call_vec rather than
26947 build_function_call for cleanup.
26948 * c-tree.h: Update declarations.
26949 * c-common.h: Update declarations.
26950 * stub-objc.c (objc_rewrite_function_call): Change parameter from
26951 params to first_param.
26952 * target.h (struct gcc_target): Change resolve_overloaded_builtin
26953 params parameter from tree to void *.
26954 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26955 Change arglist parameter to have type void *, and to be a pointer
26956 to a VEC.
26957 * config/rs6000/rs6000-protos.h
26958 (altivec_resolve_overloaded_builtin): Update declaration.
26959 * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
26960 fnargs parameter to have type void *, and to be a pointer to a
26961 VEC. Call build_function_call_vec instead of
26962 build_function_call.
26963 * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
26964
26965 2009-04-20 Joey Ye <joey.ye@intel.com>
26966 Xuepeng Guo <xuepeng.guo@intel.com>
26967 H.J. Lu <hongjiu.lu@intel.com>
26968
26969 * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
26970
26971 * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
26972 (IX86_LEA_PRIORITY): Likewise.
26973 (distance_non_agu_define): New function.
26974 (distance_agu_use): Likewise.
26975 (ix86_lea_for_add_ok): Likewise.
26976 (ix86_dep_by_shift_count): Likewise.
26977
26978 * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
26979 should split for LEA.
26980
26981 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
26982 function.
26983 (ix86_dep_by_shift_count): Likewise.
26984
26985 2009-04-20 Richard Guenther <rguenther@suse.de>
26986
26987 * expr.c (handled_component_p): Move ...
26988 * tree.h (handled_component_p): ... here.
26989 * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
26990 ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
26991 and REALPART_EXPR to be in one group.
26992
26993 2009-04-20 Richard Guenther <rguenther@suse.de>
26994
26995 * basic-block.h (get_all_dominated_blocks): Declare.
26996 * dominance.c (get_all_dominated_blocks): New function.
26997 * tree-cfg.c (get_all_dominated_blocks): Remove.
26998 (remove_edge_and_dominated_blocks): Adjust.
26999 * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
27000 (tree_ssa_phiprop): ... here. Use get_all_dominated_blocks
27001 instead of recursing.
27002
27003 2009-04-20 Doug Kwan <dougkwan@google.com>
27004
27005 * cgraph.h (cgraph_node_ptr): New type for vector functions.
27006 (struct cgraph_node_set_def): New type.
27007 (cgraph_node_set) New type. Also declare vector functions.
27008 (struct cgraph_node_set_element_def): New type.
27009 (cgraph_node_set_element): Ditto.
27010 (cgraph_node_set_iterator): New iterator type.
27011 (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
27012 cgraph_node_set_remove, dump_cgraph_node_set,
27013 debug_cgraph_node_set): New prototypes.
27014 (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
27015 cgraph_node_set_size): New inlines.
27016 * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
27017 including cgraph.h.
27018 (struct ipa_opt_pass): Add struct cgraph_node_set_def
27019 argument to function 'write_summary'.
27020 * ipa.c: Include ggc.h.
27021 (hash_cgraph_node_set_element,
27022 eq_cgraph_node_set_element, cgraph_node_set_new,
27023 cgraph_node_set_add, cgraph_node_set_remove,
27024 cgraph_node_set_find, dump_cgraph_node_set,
27025 debug_cgraph_node_set): New functions.
27026 * Makefile.in (ipa.o): Add dependency on GGC_H.
27027
27028 2009-04-20 Ira Rosen <irar@il.ibm.com>
27029
27030 PR tree-optimization/39675
27031 * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
27032 check of the return code of vect_schedule_slp. Check that
27033 stmt_vec_info still exists for the statement, before checking its
27034 vectorization type.
27035
27036 2009-04-20 Michael Matz <matz@suse.de>
27037
27038 * Makefile.in (generated_files): Take out $(simple_generated_c).
27039
27040 2009-04-19 Dave Korn <dave.korn.cygwin@gmail.com>
27041
27042 * config/i386/cygwin-stdint.h (INTPTR_TYPE): Remove "long".
27043 (UINTPTR_TYPE): Likewise.
27044
27045 2009-04-19 Joseph Myers <joseph@codesourcery.com>
27046
27047 PR c/37481
27048 * c-typeck.c (digest_init): Check for initializing an array with a
27049 string literal.
27050
27051 2009-04-19 Joseph Myers <joseph@codesourcery.com>
27052
27053 PR c/19771
27054 * c-semantics.c (pop_stmt_list): Propagate
27055 STATEMENT_LIST_HAS_LABEL to parent statement list.
27056
27057 2009-04-19 Adam Nemet <anemet@caviumnetworks.com>
27058
27059 * config/mips/mips.h (mips_tune_attr): New macro.
27060 * config/mips/mips.md (cpu): Use it.
27061
27062 2009-04-19 Joseph Myers <joseph@codesourcery.com>
27063
27064 PR c/38243
27065 * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
27066 declaring a tag.
27067
27068 2009-04-19 Diego Novillo <dnovillo@google.com>
27069
27070 * toplev.c (compile_file): Move call to coverage_finish ...
27071 * cgraphunit.c (ipa_passes): ... here.
27072 Call cgraph_process_new_functions.
27073 * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
27074 * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
27075
27076 2009-04-19 Jan Hubicka <jh@suse.cz>
27077
27078 * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
27079 cfun.
27080 (dump_cgraph_node): Dump can throw external flag.
27081 * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
27082
27083 2009-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
27084
27085 PR c/32061
27086 PR c++/36954
27087 * doc/invoke.texi: Add -Wlogical-op to -Wextra.
27088 * common.opt (Wlogical-op): Move from here...
27089 * c.opt (Wlogical-op): ... to here.
27090 * c-typeck.c (parser_build_binary_op): Update call to
27091 warn_logical_operator.
27092 * c-opts.c (c_common_post_options): Enable warn_logical_op with
27093 extra_warnings.
27094 * c-common.c (warn_logical_op): Update.
27095 * c-common.h (warn_logical_op): Update declaration.
27096
27097 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
27098
27099 * tree.c (protected_set_expr_location): Fix formatting.
27100
27101 2009-04-18 Joseph Myers <joseph@codesourcery.com>
27102
27103 PR c/27676
27104 * c-typeck.c (readonly_warning): new.
27105 (build_unary_op, build_modify_expr): Use readonly_warning for
27106 storing into something readonly but not const-qualified.
27107
27108 2009-04-18 Joseph Myers <joseph@codesourcery.com>
27109
27110 PR c/22367
27111 * c-typeck.c (build_unary_op): Check for taking address of
27112 expression of type void.
27113
27114 2009-04-18 Joseph Myers <joseph@codesourcery.com>
27115
27116 PR c/35210
27117 * c-typeck.c (build_function_call): Check for calling a function
27118 with qualified void return types. Call require_complete_type when
27119 generating a trap.
27120
27121 2009-04-18 Jan Hubicka <jh@suse.cz>
27122
27123 * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
27124 Set nothrow flag.
27125 * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
27126 can_throw_external flag.
27127 * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
27128 * ipa-pure-const.c (ignore_edge): New function.
27129 (propagate): Compute order for NOTHROW computation; set NOTHROWs
27130 only over can_throw_external edges.
27131 (local_pure_const): Add nothrow flag.
27132 * ipa-utils.c (searchc): Add ignore_edge callback.
27133 (ipa_utils_reduced_inorder): Add ignore_edge callback.
27134 * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
27135 (set_nothrow_function_flags): Update cgraph.
27136 * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
27137
27138 2009-04-18 Richard Guenther <rguenther@suse.de>
27139
27140 PR middle-end/39804
27141 * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
27142 (fold_stmt): ... this and ...
27143 (fold_stmt_inplace): ... this.
27144 (fold_stmt_1): Fold references in calls and asms.
27145 * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
27146
27147 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
27148
27149 * tree-vrp.c (ssa_name_nonzero_p): Remove.
27150 * tree.h: Remove the prototype for ssa_name_nonzero_p.
27151
27152 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
27153
27154 * tree.c (function_args_count): Remove.
27155 * tree.h: Remove the prototype for function_args_count.
27156
27157 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
27158
27159 * tree-iterator.c (expr_only): Remove.
27160 * tree.h: Remove the prototype for expr_only.
27161
27162 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
27163
27164 * reginfo.c (cannot_change_mode_set_regs): Remove.
27165 * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
27166
27167 2009-04-08 Anatoly Sokolov <aesok@post.ru>
27168
27169 * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
27170 whether operands 0 and 1 overlaps.
27171
27172 2009-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
27173
27174 PR middle-end/36902
27175 * tree-vrp.c (check_array_ref): Pass a location_t instead of a
27176 pointer. Use warning_at instead of warning.
27177 (search_for_addr_array): Likewise.
27178 (check_array_bounds): Likewise.
27179 (check_all_array_refs): Check that the incoming edge is not in the
27180 list of edges to be removed.
27181 (check_all_array_refs): Avoid the temporal pointer.
27182 (vrp_visit_cond_stmt): Fix typo.
27183 (simplify_switch_using_ranges): Handle the case where the switch
27184 index is an integer constant.
27185
27186 2009-04-18 Adam Nemet <anemet@caviumnetworks.com>
27187
27188 * config/mips/mips.c (mips_final_postscan_insn): Make it static.
27189
27190 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
27191
27192 * doc/extend.texi, doc/invoke.texi: Fix typos.
27193
27194 2009-04-17 Cary Coutant <ccoutant@google.com>
27195
27196 * tree-flow-inline.h (get_lineno): Fix inverted test.
27197
27198 2009-04-17 Diego Novillo <dnovillo@google.com>
27199
27200 * tree-ssa-pre.c (create_expression_by_pieces): Remove
27201 assertion for AVAIL_OUT.
27202
27203 2009-04-17 Mike Frysinger <vapier@gentoo.org>
27204
27205 PR target/38627
27206 * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
27207 * config/sh/linux-atomic.asm: Likewise.
27208
27209 2009-04-17 Diego Novillo <dnovillo@google.com>
27210
27211 * except.c (debug_eh_tree): New.
27212 (struct eh_region, struct eh_status): Move ...
27213 * except.h: ... here.
27214 (add_type_for_runtime): Declare extern.
27215 (lookup_type_for_runtime): Likewise.
27216 (debug_eh_tree): Declare.
27217 * Makefile.in (GTFILES): List except.h before except.c
27218
27219 2009-04-17 Diego Novillo <dnovillo@google.com>
27220
27221 * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
27222 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
27223 * tree-dfa.c (find_referenced_vars_in): Factor out of ...
27224 (find_vars_r): ... here.
27225 * tree-flow.h (find_referenced_vars_in): Declare.
27226 * tree-ssa-pre.c (create_expression_by_pieces): Assert
27227 that AVAIL_OUT exists for BLOCK.
27228 * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
27229 (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
27230 (tree-parloops.o): Likewise.
27231
27232 2009-04-17 Simon Baldwin <simonb@google.com>
27233
27234 * toplev.c (default_tree_printer): Add handling for %E format.
27235
27236 2009-04-17 Diego Novillo <dnovillo@google.com>
27237
27238 * tree-pretty-print.c (dump_generic_node): Add break after
27239 TREE_BINFO handler. Handle COMPLEX_TYPE, REAL_TYPE and
27240 FIXED_POINT_TYPE. Handle NULL TREE_TYPEs. Handle METHOD_TYPE and
27241 FUNCTION_TYPE together. Call print_struct_decl when printing
27242 structures and TDF_SLIM is not given.
27243 (print_struct_decl): Fix logic for detecting recursion.
27244
27245 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
27246
27247 PR 31567
27248 * gcc.c (create_at_file): New.
27249 (compile_input_file_p): New.
27250 (do_spec_1): Use @args files for %i. Use create_at_file for %o.
27251 * main.c (main): Update call to toplev_main.
27252 * toplev.c (toplev_main): Change signature. Call expandargv.
27253 * toplev.h (toplev_main): Change signature.
27254
27255 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
27256
27257 * dwarf2out.c (field_byte_offset): Use the type size as the field size
27258 if the latter is not constant.
27259
27260 2009-04-17 David Edelsohn <edelsohn@gnu.org>
27261
27262 * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
27263
27264 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
27265
27266 * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
27267 * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
27268
27269 2009-04-17 Richard Guenther <rguenther@suse.de>
27270
27271 * tree-ssa-structalias.c (get_constraint_for_component_ref):
27272 Handle component references view-converting an invariant address.
27273
27274 2009-04-17 Adam Nemet <anemet@caviumnetworks.com>
27275
27276 * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
27277 TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
27278 TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
27279 TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
27280 Use @deftypevr rather than @deftypevar.
27281
27282 2009-04-17 Richard Guenther <rguenther@suse.de>
27283
27284 * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
27285 (get_prop_source_stmt): Likewise.
27286 (can_propagate_from): Likewise.
27287
27288 2009-04-17 Andrew Stubbs <ams@codesourcery.com>
27289
27290 * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
27291 TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
27292 (--with-multilib-list): Add default value.
27293 * configure: Regenerate.
27294 * Makefile.in (TM_ENDIAN_CONFIG): Define.
27295 (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
27296 * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
27297 TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
27298 Don't add default cpu to multilib list unnecessarily, but do enable
27299 the relevant compiler option..
27300 Add support for --with-multilib-list=<blank> and
27301 --with-multilib-list=!<somelib> to supress unwanted multilibs.
27302 * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
27303 (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
27304 (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
27305 TM_MULTILIB_CONFIG.
27306 (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
27307 (MULTILIB_OSDIRNAMES): New variable.
27308 * config/sh/t-1e: Delete file.
27309 * config/sh/t-mlib-sh1: Delete file.
27310 * config/sh/t-mlib-sh2: Delete file.
27311 * config/sh/t-mlib-sh2a: Delete file.
27312 * config/sh/t-mlib-sh2a-nofpu: Delete file.
27313 * config/sh/t-mlib-sh2a-single: Delete file.
27314 * config/sh/t-mlib-sh2a-single-only: Delete file.
27315 * config/sh/t-mlib-sh2e: Delete file.
27316 * config/sh/t-mlib-sh3e: Delete file.
27317 * config/sh/t-mlib-sh4: Delete file.
27318 * config/sh/t-mlib-sh4-nofpu: Delete file.
27319 * config/sh/t-mlib-sh4-single: Delete file.
27320 * config/sh/t-mlib-sh4-single-only: Delete file.
27321 * config/sh/t-mlib-sh4a: Delete file.
27322 * config/sh/t-mlib-sh4a-nofpu: Delete file.
27323 * config/sh/t-mlib-sh4a-single: Delete file.
27324 * config/sh/t-mlib-sh4a-single-only: Delete file.
27325 * config/sh/t-mlib-sh4al: Delete file.
27326 * config/sh/t-mlib-sh5-32media: Delete file.
27327 * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
27328 * config/sh/t-mlib-sh5-64media: Delete file.
27329 * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
27330 * config/sh/t-mlib-sh5-compact: Delete file.
27331 * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
27332 * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
27333 * doc/install.texi (Options specification): Add
27334 --with-multilib-list and --with-endian.
27335
27336 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
27337
27338 * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
27339 REVISION_c.
27340 (OBJS-common): Add plugin-version.o.
27341 (plugin-version.o): New.
27342 * gcc-plugin.h (plugin_gcc_version): New.
27343 (plugin_default_version_check): New.
27344 (plugin_init_func, plugin_init): Add version argument.
27345 * plugin-version.c: New.
27346 * plugin.c (str_plugin_gcc_version_name): New.
27347 (try_init_one_plugin): Read plugin_gcc_version from the plugin and
27348 pass it to the init function.
27349 (plugin_default_version_check): New.
27350
27351 2009-04-17 Richard Guenther <rguenther@suse.de>
27352
27353 * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
27354 for decl-vs-decl disambiguation.
27355
27356 2009-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
27357
27358 * config/s390/s390.h (s390_tune_attr): New macro definition.
27359 * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
27360
27361 2009-04-17 Richard Guenther <rguenther@suse.de>
27362
27363 * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
27364 (fold_stmt_r): Likewise.
27365 (maybe_fold_reference): New function.
27366 (fold_gimple_assign): Handle cases fold_stmt_r did.
27367 (fold_stmt): Do not use fold_stmt_r.
27368 (fold_stmt_inplace): Likewise.
27369
27370 2009-04-17 Richard Guenther <rguenther@suse.de>
27371
27372 * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
27373 (record_equivalences_from_stmt): Remove useless checks and
27374 simplifications.
27375 * tree-ssa-pre.c (eliminate): Avoid converting a constant if
27376 the type is already suitable.
27377
27378 2009-04-17 Paolo Bonzini <bonzini@gnu.org>
27379
27380 * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
27381
27382 2009-04-17 Uros Bizjak <ubizjak@gmail.com>
27383
27384 * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
27385 (CMPtype): Define as __gcc_CMPtype.
27386
27387 2009-04-17 Aurelien Jarno <aurelien@aurel32.net>
27388
27389 * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
27390 for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
27391
27392 2009-04-17 Richard Guenther <rguenther@suse.de>
27393
27394 PR tree-optimization/39746
27395 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
27396 special-casing for builtins and static variable use/def.
27397 (call_may_clobber_ref_p_1): Likewise.
27398
27399 2009-04-16 Ian Lance Taylor <iant@google.com>
27400
27401 * df.h: Include "timevar.h".
27402 (struct df_problem): Change tv_id field to timevar_id_t.
27403 * tree-pass.h: Include "timevar.h".
27404 (struct opt_pass): Change tv_id field to timevar_id_t.
27405 * timevar.h (timevar_id_t): Define TV_NONE.
27406 * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
27407 TV_NONE rather than tv_id != 0.
27408 (execute_one_pass): Likewise.
27409 * Makefile.in (DF_H): Add $(TIMEVAR_H).
27410 (TREE_PASS_H): Define. Change all instances of tree-pass.h in
27411 dependencies to $(TREE_PASS_H).
27412 * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
27413 to TV_NONE.
27414 (pass_branch_target_load_optimize2): Likewise.
27415 * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
27416 (pass_outof_cfg_layout_mode): Likewise.
27417 * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
27418 (pass_rebuild_cgraph_edges): Likewise.
27419 (pass_remove_cgraph_callee_edges): Likewise.
27420 * df-core.c (pass_df_initialize_opt): Likewise.
27421 (pass_df_initialize_no_opt): Likewise.
27422 (pass_df_finish): Likewise.
27423 * emit-rtl.c (pass_unshare_all_rtl): Likewise.
27424 * except.c (pass_set_nothrow_function_flags): Likewise.
27425 (pass_convert_to_eh_region_ranges): Likewise.
27426 * final.c (pass_compute_alignments): Likewise.
27427 * function.c (pass_instantiate_virtual_regs): Likewise.
27428 (pass_init_function): Likewise.
27429 (pass_leaf_regs): Likewise.
27430 (pass_match_asm_constraints): Likewise.
27431 * gimple-low.c (pass_lower_cf): Likewise.
27432 (pass_mark_used_blocks): Likewise.
27433 * init-regs.c (pass_initialize_regs): Likewise.
27434 * integrate.c (pass_initial_value_sets): Likewise.
27435 * ira.c (pass_ira): Likewise.
27436 * jump.c (pass_cleanup_barriers): Likewise.
27437 * omp-low.c (pass_expand_omp): Likewise.
27438 (pass_lower_omp): Likewise.
27439 * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
27440 * recog.c (pass_split_all_insns): Likewise.
27441 (pass_split_after_reload): Likewise.
27442 (pass_split_before_regstack): Likewise.
27443 (pass_split_before_sched2): Likewise.
27444 (pass_split_for_shorten_branches): Likewise.
27445 * reginfo.c (pass_reginfo_init): Likewise.
27446 (pass_subregs_of_mode_init): Likewise.
27447 (pass_subregs_of_mode_finish): Likewise.
27448 * passes.c (pass_postreload): Likewise.
27449 * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
27450 * tree-cfg.c (pass_remove_useless_stmts): Likewise.
27451 (pass_warn_function_return): Likewise.
27452 (pass_warn_function_noreturn): Likewise.
27453 * tree-complex.c (pass_lower_complex): Likewise.
27454 (pass_lower_complex_O0): Likewise.
27455 * tree-if-conv.c (pass_if_conversion): Likewise.
27456 * tree-into-ssa.c (pass_build_ssa): Likewise.
27457 * tree-mudflap.c (pass_mudflap_1): Likewise.
27458 (pass_mudflap_2): Likewise.
27459 * tree-nomudflap.c (pass_mudflap_1): Likewise.
27460 (pass_mudflap_2): Likewise.
27461 * tree-nrv.c (pass_return_slot): Likewise.
27462 * tree-object-size.c (pass_object_sizes): Likewise.
27463 * tree-optimize.c (pass_all_optimizations): Likewise.
27464 (pass_early_local_passes): Likewise.
27465 (pass_all_early_optimizations): Likewise.
27466 (pass_cleanup_cfg): Likewise.
27467 (pass_cleanup_cfg_post_optimizing): Likewise.
27468 (pass_free_datastructures): Likewise.
27469 (pass_free_cfg_annotations): Likewise.
27470 (pass_fixup_cfg): Likewise.
27471 (pass_init_datastructures): Likewise.
27472 * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
27473 (pass_late_warn_uninitialized): Likewise.
27474 (pass_update_address_taken): Likewise.
27475 * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
27476 * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
27477 (pass_cse_sincos): Likewise.
27478 (pass_convert_to_rsqrt): Likewise.
27479 * tree-ssa-structalias.c (pass_build_alias): Likewise.
27480 * tree-stdarg.c (pass_stdarg): Likewise.
27481 * tree-tailcall.c (pass_tail_recursion): Likewise.
27482 (pass_tail_calls): Likewise.
27483 * tree-vect-generic.c (pass_lower_vector): Likewise.
27484 (pass_lower_vector_ssa): Likewise.
27485 * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
27486
27487 2009-04-16 Joseph Myers <joseph@codesourcery.com>
27488
27489 * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
27490 XLR entry.
27491 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
27492 Handle -march=xlr.
27493 * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
27494 logical and signext.
27495
27496 2009-04-16 Kaz Kojima <kkojima@gcc.gnu.org>
27497
27498 PR target/39767
27499 * config/sh/predicates.md (arith_operand): Check if the operand
27500 of TRUNCATE is a REG.
27501
27502 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
27503
27504 * cfgrtl.c (delete_insn_chain_and_edges): Remove.
27505 * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
27506
27507 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
27508
27509 * tree-iterator.c (tsi_split_statement_list_after,
27510 tsi_split_statement_list_before): Remove.
27511 * tree-iterator.h: Remove the prototypes for
27512 tsi_split_statement_list_after and tsi_split_statement_list_before.
27513
27514 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
27515
27516 * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
27517 * tree-ssa-propagate.h: Remove the prototype for
27518 stmt_makes_single_load.
27519
27520 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
27521
27522 * emit-rtl.c (set_mem_attrs_from_reg): Remove.
27523 * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
27524
27525 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
27526
27527 * tree-iterator.c (EXPR_LAST_BODY): Remove.
27528
27529 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
27530
27531 * except.c (eh_region_outer_p): Remove.
27532 * except.h: Remove the prototype for eh_region_outer_p.
27533
27534 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
27535
27536 * function.c (current_function_assembler_name): Remove.
27537 * function.h: Remove the prototype for
27538 current_function_assembler_name.
27539
27540 2009-04-16 Ian Lance Taylor <iant@google.com>
27541
27542 * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
27543 (add_reg_note): Call alloc_reg_note.
27544 * rtl.h (alloc_reg_note): Declare.
27545 * combine.c (try_combine): Use alloc_reg_note.
27546 (recog_for_combine, move_deaths): Likewise.
27547 (distribute_notes): Use alloc_reg_note and add_reg_note.
27548 * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
27549 * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
27550 * reload1.c (eliminate_regs_1): Use alloc_reg_note.
27551
27552 2009-04-16 Vladimir Makarov <vmakarov@redhat.com>
27553
27554 PR rtl-optimization/39762
27555 * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
27556 ira_may_move_out_cost): Add comments about way of their usage.
27557 (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
27558
27559 * ira-conflicts.c (process_regs_for_copy): Use function
27560 ira_get_register_move_cost instead of global
27561 ira_register_move_cost.
27562
27563 * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
27564 color_pass, move_spill_restore, update_curr_costs): Ditto.
27565
27566 * ira-lives.c (process_single_reg_class_operands): Ditto.
27567
27568 * ira-emit.c (emit_move_list): Ditto.
27569
27570 * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
27571 (record_reg_classes): Ditto. Use functions
27572 ira_get_register_move_cost and ira_get_may_move_cost instead of
27573 global vars ira_register_move_cost, ira_may_move_out_cost and
27574 ira_may_move_in_cost.
27575 (record_address_regs): Don't call ira_init_register_move_cost.
27576 Use function ira_get_may_move_cost instead of global
27577 ira_may_move_in_cost.
27578 (process_bb_node_for_hard_reg_moves): Use function
27579 ira_get_register_move_cost instead of global ira_register_move_cost.
27580 (ira_costs): Don't call ira_init_register_move_cost.
27581
27582 2009-04-16 Richard Guenther <rguenther@suse.de>
27583
27584 * tree-cfg.c (verify_gimple_assign_binary):
27585 Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
27586 * ipa-struct-reorg.c (gen_size): Fold the built expressions.
27587 (create_general_new_stmt): Note that this function is broken.
27588
27589 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
27590
27591 * common.opt (fhelp): Add Var(help_flag).
27592 * gcc-plugin.h (plugin_info): Add help.
27593 * plugin.c (plugin_name_args): Add help.
27594 (register_plugin_info): Set plugin->help.
27595 (print_help_one_plugin): New.
27596 (print_plugins_help): New.
27597 * plugin.h (print_plugins_help): New.
27598 * toplev.c (toplev_main): Call print_plugins_help if needed.
27599
27600 2009-04-16 Richard Guenther <rguenther@suse.de>
27601
27602 * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
27603 (gimple_ior_addresses_taken_1): New function.
27604 (gimple_ior_addresses_taken): Likewise.
27605 * gimple.h (struct gimple_statement_with_ops_base): Remove
27606 addresses_taken member.
27607 (gimple_ior_addresses_taken): Declare.
27608 (gimple_addresses_taken, gimple_addresses_taken_ptr,
27609 gimple_set_addresses_taken): Remove.
27610 * ipa-reference.c (mark_address): New function.
27611 (scan_stmt_for_static_refs): Use it for marking addresses taken.
27612 * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
27613 (mark_address_taken): ... this. Just set TREE_ADDRESSABLE.
27614 (gimple_add_to_addresses_taken): Remove.
27615 (get_tmr_operands): Call mark_address_taken.
27616 (get_asm_expr_operands): Likewise.
27617 (get_expr_operands): Likewise.
27618 (build_ssa_operands): Do not clear the addresses_taken bitmap.
27619 (free_stmt_operands): Do not free it.
27620 * tree-ssa.c (delete_tree_ssa): Likewise.
27621 (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
27622
27623 2009-04-16 Richard Guenther <rguenther@suse.de>
27624
27625 * gimple.h (walk_stmt_load_store_addr_ops): Declare.
27626 (walk_stmt_load_store_ops): Likewise.
27627 * gimple.c (get_base_loadstore): New function.
27628 (walk_stmt_load_store_addr_ops): Likewise.
27629 (walk_stmt_load_store_ops): Likewise.
27630 * ipa-pure-const.c (check_op): Simplify.
27631 (check_load, check_store): New functions.
27632 (check_stmt): Use walk_stmt_load_store_ops.
27633 * ipa-reference.c (mark_load): Adjust signature.
27634 (mark_store): Likewise.
27635 (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
27636
27637 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
27638
27639 * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
27640 (plugin_info): New.
27641 * opts.c (common_handle_option): Don't call print_version.
27642 * plugin.c (plugin_name_args): Add version.
27643 (register_plugin_info): New.
27644 (register_callback): Handle PLUGIN_INFO.
27645 (try_init_one_plugin): New.
27646 (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
27647 if failed to init.
27648 (finalize_one_plugin): New.
27649 (finalize_plugins): New.
27650 (print_one_plugin): New.
27651 (print_plugins_versions): New.
27652 * plugin.h (print_plugins_versions): New.
27653 (finalize_plugins): New.
27654 * toplev.c (compile_file): Don't call initialize_plugins.
27655 (print_version): Call print_plugins_versions.
27656 (toplev_main): Call initialize_plugins. Print version if needed.
27657 Call finalize_plugins.
27658
27659 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
27660
27661 * common.opt (fversion): New.
27662 * gcc.c (print_version): New.
27663 (process_command): Don't print the version. Just set print_version.
27664 (main): Print version. Call subprocesses if print_version and
27665 verbose_flag are set.
27666 * opts.c (common_handle_option): Handle OPT_fversion.
27667
27668 2009-04-16 Richard Guenther <rguenther@suse.de>
27669 Ira Rosen <irar@il.ibm.com>
27670
27671 PR tree-optimization/39698
27672 * tree-vect-loop.c (get_initial_def_for_reduction): Use the
27673 type of the reduction variable. Only generate the def if
27674 it is needed.
27675
27676 * omp-low.c (expand_omp_for_generic): When converting to a pointer
27677 make sure to first convert to an integer of the same precision.
27678 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
27679 the type of the evolution correctly in computing the new
27680 induction variable base.
27681
27682 2009-04-16 Richard Guenther <rguenther@suse.de>
27683
27684 PR middle-end/39625
27685 * tree-cfg.c (make_blocks): Split statements with to-be
27686 abnormal SSA names on the lhs.
27687
27688 2009-04-16 Paolo Bonzini <bonzini@gnu.org>
27689
27690 * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
27691 Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
27692 * c-typeck.c (really_start_incremental_init): Likewise.
27693 * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
27694 (TARGET_INITIALIZER): Remove it.
27695 * target.h (struct target): Remove vector_opaque_p.
27696 * tree.c (build_opaque_vector_type): New.
27697 * tree.h (TYPE_VECTOR_OPAQUE): New.
27698 (build_opaque_vector_type): Declare.
27699 * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
27700 * config/rs6000/rs6000.c (build_opaque_vector_type,
27701 rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
27702 (rs6000_init_builtins): Use build_opaque_vector_type for
27703 opaque_V4SI_type_node.
27704
27705 2009-04-15 Catherine Moore <clm@codesourcery.com>
27706
27707 * debug.h (set_name): Declare.
27708 * dwarf2out.c (dwarf2out_set_name): Declare.
27709 (dwarf2_debug_hooks): Add set_name.
27710 (find_AT_string): New.
27711 (add_AT_string): Call find_AT_string.
27712 (dwarf2out_set_name): New.
27713 * cp/decl.c (grokdeclarator): Call set_name.
27714 * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
27715 * debug.c (do_nothing_debug_hooks): Likewise.
27716 * dbxout.c (dbx_debug_hooks): Likewise.
27717 * sdbout.c (sdb_debug_hooks): Likewise.
27718
27719 2009-04-15 Michael Eager <eager@eagercon.com>
27720
27721 * config/rs6000/rs6000.c (rs6000_function_value): Set function return
27722 reg for single-precision FPU.
27723 * config/rs6000/rs6000.md (movsi_internal1): Only for
27724 !TARGET_SINGLE_FPU.
27725 (movsi_internal1_single): New. Add pattern to move SI values to/from
27726 single-precision FP regs.
27727
27728 2009-04-15 Richard Guenther <rguenther@suse.de>
27729
27730 * omp-low.c (lower_rec_input_clauses): Build correct address
27731 expressions.
27732 (expand_omp_for_generic): Fix multiplication type.
27733 * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
27734 (generate_memset_zero): Fix types.
27735 * tree-profile.c (prepare_instrumented_value): Correctly
27736 widen a pointer.
27737
27738 2009-04-15 Ian Lance Taylor <iant@google.com>
27739
27740 * c.opt (Wenum-compare): Enable for C and Objc. Initialize to -1.
27741 * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
27742 for -Wall and for -Wc++-compat.
27743 (c_common_post_options): For C++, set warn_enum_compare if not
27744 already set.
27745 * c-tree.h (struct c_expr): Add field original_type.
27746 (build_external_ref): Update declaration.
27747 * c-parser.c (c_parser_braced_init): Set original_type.
27748 (c_parser_initelt): Likewise.
27749 (c_parser_expr_no_commas): Likewise.
27750 (c_parser_conditional_expression): Likewise.
27751 (c_parser_cast_expression): Likewise.
27752 (c_parser_unary_expression): Likewise. Pull setting of
27753 original_code to top of function.
27754 (c_parser_sizeof_expression): Set original_type.
27755 (c_parser_alignof_expression): Likewise.
27756 (c_parser_postfix_expression): Likewise. Pull setting of
27757 original_code to top of function.
27758 (c_parser_postfix_expression_after_paren_type): Set original_type.
27759 (c_parser_postfix_expression_after_primary): Likewise.
27760 (c_parser_expression): Likewise.
27761 * c-typeck.c (build_external_ref): Add type parameter. Change all
27762 callers.
27763 (c_expr_sizeof_expr): Set original_type field.
27764 (parser_build_unary_op): Likewise.
27765 (parser_build_binary_op): Likewise. Optionally warn about
27766 comparisons of enums of different types.
27767 (digest_init): Set original_type field.
27768 (really_start_incremental_init): Likewise.
27769 (push_init_level, pop_init_level): Likewise.
27770 * doc/invoke.texi (Warning Options): -Wenum-compare now
27771 supported in C.
27772
27773 2009-04-15 Richard Guenther <rguenther@suse.de>
27774
27775 * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
27776 out a necessary conversion.
27777 * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
27778 names we didn't value number.
27779 * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
27780
27781 2009-04-15 Richard Guenther <rguenther@suse.de>
27782
27783 PR tree-optimization/39764
27784 * tree-ssa-ccp.c (get_value): Canonicalize value with
27785 canonicalize_float_value.
27786
27787 2009-04-15 Jan Hubicka <jh@suse.cz>
27788
27789 * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
27790 Wrong version of patch.
27791
27792 2009-04-15 Jan Hubicka <jh@suse.cz>
27793
27794 * builtins.def (va_start, va_end, va_copy): Mark nothrow.
27795
27796 2009-04-15 Nathan Sidwell <nathan@codesourcery.com>
27797
27798 * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
27799 our distinct integral and vector types.
27800
27801 2009-04-15 Rafael Avila de Espindola <espindola@google.com>
27802
27803 * class.c (build_vtbl_ref_1): Remove call to assemble_external.
27804 * init.c (build_vtbl_address): Remove call to assemble_external.
27805
27806 2009-04-14 Daniel Jacobowitz <dan@codesourcery.com>
27807
27808 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
27809 output for other floating point modes.
27810
27811 2009-04-14 Diego Novillo <dnovillo@google.com>
27812
27813 * diagnostic.c (diagnostic_report_diagnostic): Do not
27814 warn about loaded plugins for DK_ERROR and DK_WARNING.
27815 * c-decl.c (declspecs_add_type): Move call to
27816 invoke_plugin_callbacks ...
27817 * c-parser.c (c_parser_declspecs): ... here.
27818 * plugin.c (dump_active_plugins): Tidy output.
27819
27820 2009-04-14 Diego Novillo <dnovillo@google.com>
27821 Le-Chun Wu <lcwu@google.com>
27822
27823 * configure.ac: Add --enable-plugin support.
27824 Define ENABLE_PLUGIN and PLUGINLIBS when specified.
27825 * Makefile.in (PLUGIN_H): Define.
27826 Export ENABLE_PLUGIN and GMPINC to site.exp.
27827 Add PLUGINLIBS to link command.
27828 Add/modify dependencies for plugin.o and files including plugin.h.
27829 (plugin.o): New.
27830 * config.in: Regenerate.
27831
27832 * opts.c (common_handle_option): Handle OPT_fplugin_ and
27833 OPT_fplugin_arg_.
27834
27835 2009-04-14 Le-Chun Wu <lcwu@google.com>
27836
27837 * tree-pass.h (register_one_dump_file): Add a prototype for
27838 register_one_dump_file.
27839 * toplev.c (compile_file): Call initialize_plugins.
27840 (do_compile): Call invoke_plugin_callbacks.
27841 (toplev_main): Call invoke_plugin_callbacks.
27842 * common.opt: Add -fplugin= and -fplugin-arg-.
27843 * gcc-plugin.h: New public header file for plugins to include.
27844 * plugin.c: New source file.
27845 * plugin.h: New internal header file.
27846 * passes.c (register_one_dump_file): Make it external.
27847
27848 * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
27849
27850 2009-04-14 Diego Novillo <dnovillo@google.com>
27851
27852 * doc/plugins.texi: New.
27853 * doc/gccint.texi: Add reference to Plugins chapter.
27854 * doc/invoke.texi: Document -fplugin and -fplugin-arg
27855 * diagnostic.c (diagnostic_report_diagnostic): Warn about
27856 loaded plugins, if any.
27857 * timevar.def (TV_PLUGIN_INIT): Define.
27858 (TV_PLUGIN_RUN): Define.
27859 * plugin.c: Include timevar.h
27860 (plugins_active_p): New.
27861 (dump_active_plugins): New.
27862 (debug_active_plugins): New.
27863
27864 2009-04-14 Joseph Myers <joseph@codesourcery.com>
27865
27866 * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
27867 library paths.
27868 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
27869
27870 2009-04-14 Kazu Hirata <kazu@codesourcery.com>
27871
27872 * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
27873 the same as a minus without a shift.
27874
27875 2009-04-14 Nick Clifton <nickc@redhat.com>
27876
27877 * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
27878 comparisons with small integers will always produce a short
27879 branch.
27880
27881 2009-04-14 Rafael Avila de Espindola <espindola@google.com>
27882
27883 Merge:
27884 2008-12-19 Diego Novillo <dnovillo@google.com>
27885
27886 * cgraph.c (dump_cgraph_node): Show memory address of NODE.
27887
27888 2009-04-14 Richard Guenther <rguenther@suse.de>
27889
27890 * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
27891 verification.
27892 (verify_gimple_assign_binary): Likewise. Handle shifts and
27893 rotates correctly.
27894 (verify_gimple_phi): Print the mismatched argument position.
27895 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
27896 Fix types.
27897 (vect_update_init_of_dr): Likewise.
27898 * matrix-reorg.c (transform_access_sites): Do what the
27899 comment suggests.
27900 * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
27901
27902 2009-04-13 Michael Eager <eager@eagercon.com>
27903
27904 * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
27905 _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
27906 * config/rs6000/xilinx.h: New. Spec for powerpc-xilinx-eabi
27907 * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
27908 remove duplicate config
27909
27910 2009-04-13 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
27911
27912 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
27913 file_name:line_number type locator of the call site.
27914
27915 2009-04-13 Vladimir Makarov <vmakarov@redhat.com>
27916
27917 * genautomata.c: Put blank after comma.
27918 (automaton_decls): New.
27919 (struct unit_usage): Add comments to member next.
27920 (store_alt_unit_usage): Keep the list ordered.
27921 (unit_present_on_list_p, equal_alternatives_p): New.
27922 (check_regexp_units_distribution): Check units distribution
27923 correctness correctly.
27924 (main): Don't write automata if error is found. Return correct
27925 exit code.
27926
27927 * config/m68k/cf.md (cfv4_ds): Remove.
27928 (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
27929 cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
27930
27931 * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
27932 power4-load-ext, power4-store, power4-store-update,
27933 power4-fpstore, power4-fpstore-update, power4-two, power4-three,
27934 power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
27935 power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
27936 power4-sqrt, power4-isync): Modify reservation to make correct
27937 unit distribution to automata.
27938
27939 * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
27940 power5-store-update, power5-two, power5-three, power5-lmul,
27941 power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
27942
27943 2009-04-13 Adam Nemet <anemet@caviumnetworks.com>
27944
27945 * except.c (pass_set_nothrow_function_flags): Set name and add
27946 TODO_dump_func.
27947 (set_nothrow_function_flags): Mention in the dump file when
27948 changing a function to nothrow.
27949
27950 2009-04-13 Ozkan Sezer <sezeroz@gmail.com>
27951
27952 PR/39066
27953 * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
27954 instead of unsigned long.
27955
27956 2009-04-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27957
27958 * config/arm/arm.c (return_used_this_function): Remove.
27959 (arm_output_function_prologue): Remove use of
27960 return_used_this_function.
27961 (output_return_instruction): Replace use of
27962 return_used_this_function
27963 by cfun->machine->return_used_this_function.
27964 (arm_output_epilogue): Likewise.
27965 (arm_output_function_epilogue): Likewise.
27966 (thumb_unexpanded_epilogue): Likewise.
27967 * config/arm/arm.h (struct machine_function):
27968 New member return_used_this_function.
27969
27970 2009-04-12 Mark Mitchell <mark@codesourcery.com>
27971
27972 * doc/install.texi: Correct description of default directory for
27973 --with-gxx-include-dir.
27974
27975 2009-04-12 Eric Botcazou <ebotcazou@adacore.com>
27976
27977 * fold-const.c (build_range_check): Properly deal with enumeral and
27978 boolean base types.
27979
27980 2009-04-12 Steven Bosscher <steven@gcc.gnu.org>
27981
27982 * doc/invoke.texi (max_gcse_passes): Remove documentation.
27983 * params.def (PARAM_MAX_GCSE_PASSES): Remove.
27984 * params.h (MAX_GCSE_PASSES): Remove.
27985 * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
27986 in sequence. Remove ability to run multiple passes.
27987 (bypass_jumps): Report run as third CPROP pass.
27988
27989 2009-04-12 Adam Nemet <anemet@caviumnetworks.com>
27990
27991 PR middle-end/39651
27992 * except.c (can_throw_external): Look at each insn in a SEQUENCE
27993 when deciding whether the whole SEQUENCE can throw.
27994
27995 2009-04-12 Uros Bizjak <ubizjak@gmail.com>
27996
27997 PR target/39740
27998 * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
27999 offseted label references.
28000
28001 2009-04-11 Jan Hubicka <jh@suse.cz>
28002
28003 * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
28004
28005 2009-04-11 Richard Guenther <rguenther@suse.de>
28006
28007 PR middle-end/39732
28008 * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
28009 return variables as TREE_ADDRESSABLE.
28010
28011 2009-04-11 Richard Guenther <rguenther@suse.de>
28012
28013 PR tree-optimization/39713
28014 * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
28015 reference trees have SSA_NAME operands.
28016
28017 2009-04-11 Richard Guenther <rguenther@suse.de>
28018
28019 PR c/39712
28020 * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
28021 address expressions.
28022
28023 2009-04-11 Dave Korn <dave.korn.cygwin@gmail.com>
28024
28025 * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE): Update to
28026 match changes in Cygwin 1.7
28027 (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
28028 UINT_FAST16_TYPE, UINT_FAST32_TYPE): Likewise.
28029
28030 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
28031
28032 PR tree-optimization/39701
28033 * doc/invoke.texi (Optimization Options): Document change in
28034 meaning and initialization of -fdelete-null-pointer-checks.
28035
28036 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
28037
28038 PR middle-end/39701
28039 * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
28040
28041 * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
28042 here.
28043
28044 * doc/invoke.texi: Update -fdelete-null-pointer-checks.
28045
28046 2009-04-10 Chao-ying Fu <fu@mips.com>
28047
28048 * doc/tm.texi (Instruction Output): Document
28049 TARGET_ASM_FINAL_POSTSCAN_INSN.
28050 * target.h (final_postscan_insn): New field in asm_out.
28051 * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
28052 (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
28053 * final.c (final_scan_insn): Call
28054 targetm.asm_out.final_postscan_insn after outputting
28055 an asm macro and a normal instruction.
28056
28057 * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
28058 * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
28059 * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
28060 (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
28061 (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
28062
28063 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
28064
28065 PR middle-end/39701
28066 * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
28067 variables as non-NULL even with -fdelete-null-pointer-checks.
28068
28069 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
28070
28071 * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
28072
28073 2009-04-09 H.J. Lu <hongjiu.lu@intel.com>
28074
28075 PR target/39678
28076 * config/i386/i386.c (classify_argument): Handle SCmode with
28077 (bit_offset % 64) != 0.
28078
28079 2009-04-09 Sandra Loosemore <sandra@codesourcery.com>
28080
28081 * doc/invoke.texi (Optimize Options): Add cross-reference to
28082 -Q --help=optimizers examples.
28083
28084 2009-04-10 Ben Elliston <bje@au.ibm.com>
28085
28086 PR target/36800
28087 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
28088 regalign for the reg == fpr and TDmode case.
28089
28090 2009-04-09 David Ayers <ayers@fsfe.org>
28091
28092 PR objc/29200
28093 * objc/objc-act.c (warn_with_method): Remove helper function.
28094 (check_duplicates): Call warning and inform directly.
28095 (really_start_method): Likewise.
28096
28097 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
28098
28099 * expmed.c (expand_divmod): Always use a comparison for a division
28100 by a large unsigned integer.
28101
28102 * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
28103 for things others than variables or functions as nonzero.
28104
28105 2009-04-09 Nick Clifton <nickc@redhat.com>
28106
28107 * unwind-compat.c: Change copyright header to refer to version
28108 3 of the GNU General Public License with version 3.1 of the
28109 GCC Runtime Library Exception and to point readers at the
28110 COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
28111 * config/alpha/crtfastmath.c: Likewise.
28112 * config/alpha/linux-unwind.h: Likewise.
28113 * config/alpha/qrnnd.asm: Likewise.
28114 * config/alpha/vms-crt0-64.c: Likewise.
28115 * config/alpha/vms-crt0.c: Likewise.
28116 * config/alpha/vms-dwarf2.asm: Likewise.
28117 * config/alpha/vms-dwarf2eh.asm: Likewise.
28118 * config/alpha/vms-psxcrt0-64.c: Likewise.
28119 * config/alpha/vms-psxcrt0.c: Likewise.
28120 * config/alpha/vms_tramp.asm: Likewise.
28121 * config/arc/initfini.c: Likewise.
28122 * config/arc/lib1funcs.asm: Likewise.
28123 * config/arm/bpabi-v6m.S: Likewise.
28124 * config/arm/bpabi.S: Likewise.
28125 * config/arm/bpabi.c: Likewise.
28126 * config/arm/crti.asm: Likewise.
28127 * config/arm/crtn.asm: Likewise.
28128 * config/arm/ieee754-df.S: Likewise.
28129 * config/arm/ieee754-sf.S: Likewise.
28130 * config/arm/lib1funcs.asm: Likewise.
28131 * config/arm/libunwind.S: Likewise.
28132 * config/arm/linux-atomic.c: Likewise.
28133 * config/arm/mmintrin.h: Likewise.
28134 * config/arm/pr-support.c: Likewise.
28135 * config/arm/unaligned-funcs.c: Likewise.
28136 * config/arm/unwind-arm.c: Likewise.
28137 * config/arm/unwind-arm.h: Likewise.
28138 * config/avr/libgcc.S: Likewise.
28139 * config/bfin/crti.s: Likewise.
28140 * config/bfin/crtlibid.s: Likewise.
28141 * config/bfin/crtn.s: Likewise.
28142 * config/bfin/lib1funcs.asm: Likewise.
28143 * config/bfin/linux-unwind.h: Likewise.
28144 * config/cris/arit.c: Likewise.
28145 * config/cris/cris_abi_symbol.c: Likewise.
28146 * config/darwin-64.c: Likewise.
28147 * config/darwin-crt2.c: Likewise.
28148 * config/darwin-crt3.c: Likewise.
28149 * config/darwin.h: Likewise.
28150 * config/dbxelf.h: Likewise.
28151 * config/dfp-bit.c: Likewise.
28152 * config/dfp-bit.h: Likewise.
28153 * config/elfos.h: Likewise.
28154 * config/fixed-bit.c: Likewise.
28155 * config/fixed-bit.h: Likewise.
28156 * config/fp-bit.c: Likewise.
28157 * config/fp-bit.h: Likewise.
28158 * config/fr30/crti.asm: Likewise.
28159 * config/fr30/crtn.asm: Likewise.
28160 * config/fr30/lib1funcs.asm: Likewise.
28161 * config/freebsd-spec.h: Likewise.
28162 * config/frv/cmovd.c: Likewise.
28163 * config/frv/cmovh.c: Likewise.
28164 * config/frv/cmovw.c: Likewise.
28165 * config/frv/frvbegin.c: Likewise.
28166 * config/frv/frvend.c: Likewise.
28167 * config/frv/lib1funcs.asm: Likewise.
28168 * config/glibc-stdint.h: Likewise.
28169 * config/h8300/clzhi2.c: Likewise.
28170 * config/h8300/crti.asm: Likewise.
28171 * config/h8300/crtn.asm: Likewise.
28172 * config/h8300/ctzhi2.c: Likewise.
28173 * config/h8300/fixunssfsi.c: Likewise.
28174 * config/h8300/lib1funcs.asm: Likewise.
28175 * config/h8300/parityhi2.c: Likewise.
28176 * config/h8300/popcounthi2.c: Likewise.
28177 * config/i386/ammintrin.h: Likewise.
28178 * config/i386/att.h: Likewise.
28179 * config/i386/avxintrin.h: Likewise.
28180 * config/i386/biarch64.h: Likewise.
28181 * config/i386/bmmintrin.h: Likewise.
28182 * config/i386/cpuid.h: Likewise.
28183 * config/i386/cross-stdarg.h: Likewise.
28184 * config/i386/crtfastmath.c: Likewise.
28185 * config/i386/crtprec.c: Likewise.
28186 * config/i386/cygming-crtbegin.c: Likewise.
28187 * config/i386/cygming-crtend.c: Likewise.
28188 * config/i386/cygwin.asm: Likewise.
28189 * config/i386/emmintrin.h: Likewise.
28190 * config/i386/gmm_malloc.h: Likewise.
28191 * config/i386/gthr-win32.c: Likewise.
28192 * config/i386/i386.h: Likewise.
28193 * config/i386/immintrin.h: Likewise.
28194 * config/i386/linux-unwind.h: Likewise.
28195 * config/i386/linux64.h: Likewise.
28196 * config/i386/mm3dnow.h: Likewise.
28197 * config/i386/mmintrin-common.h: Likewise.
28198 * config/i386/mmintrin.h: Likewise.
28199 * config/i386/nmmintrin.h: Likewise.
28200 * config/i386/pmm_malloc.h: Likewise.
28201 * config/i386/pmmintrin.h: Likewise.
28202 * config/i386/smmintrin.h: Likewise.
28203 * config/i386/sol2-c1.asm: Likewise.
28204 * config/i386/sol2-ci.asm: Likewise.
28205 * config/i386/sol2-cn.asm: Likewise.
28206 * config/i386/sol2-gc1.asm: Likewise.
28207 * config/i386/tmmintrin.h: Likewise.
28208 * config/i386/unix.h: Likewise.
28209 * config/i386/w32-unwind.h: Likewise.
28210 * config/i386/wmmintrin.h: Likewise.
28211 * config/i386/x86-64.h: Likewise.
28212 * config/i386/x86intrin.h: Likewise.
28213 * config/i386/xmmintrin.h: Likewise.
28214 * config/ia64/crtbegin.asm: Likewise.
28215 * config/ia64/crtend.asm: Likewise.
28216 * config/ia64/crtfastmath.c: Likewise.
28217 * config/ia64/crti.asm: Likewise.
28218 * config/ia64/crtn.asm: Likewise.
28219 * config/ia64/fde-glibc.c: Likewise.
28220 * config/ia64/lib1funcs.asm: Likewise.
28221 * config/ia64/linux-unwind.h: Likewise.
28222 * config/ia64/quadlib.c: Likewise.
28223 * config/ia64/unwind-ia64.c: Likewise.
28224 * config/linux.h: Likewise.
28225 * config/m32c/m32c-lib1.S: Likewise.
28226 * config/m32c/m32c-lib2-trapv.c: Likewise.
28227 * config/m32c/m32c-lib2.c: Likewise.
28228 * config/m32r/initfini.c: Likewise.
28229 * config/m68hc11/larith.asm: Likewise.
28230 * config/m68hc11/m68hc11-crt0.S: Likewise.
28231 * config/m68k/cf.md: Likewise.
28232 * config/m68k/crti.s: Likewise.
28233 * config/m68k/crtn.s: Likewise.
28234 * config/m68k/lb1sf68.asm: Likewise.
28235 * config/m68k/linux-unwind.h: Likewise.
28236 * config/mcore/crti.asm: Likewise.
28237 * config/mcore/crtn.asm: Likewise.
28238 * config/mcore/lib1.asm: Likewise.
28239 * config/mips/linux-unwind.h: Likewise.
28240 * config/mips/loongson.h: Likewise.
28241 * config/mips/mips16.S: Likewise.
28242 * config/mmix/crti.asm: Likewise.
28243 * config/mmix/crtn.asm: Likewise.
28244 * config/pa/fptr.c: Likewise.
28245 * config/pa/hpux-unwind.h: Likewise.
28246 * config/pa/lib2funcs.asm: Likewise.
28247 * config/pa/linux-atomic.c: Likewise.
28248 * config/pa/linux-unwind.h: Likewise.
28249 * config/pa/milli64.S: Likewise.
28250 * config/pa/quadlib.c: Likewise.
28251 * config/pa/stublib.c: Likewise.
28252 * config/picochip/libgccExtras/adddi3.asm: Likewise.
28253 * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
28254 * config/picochip/libgccExtras/ashlsi3.c: Likewise.
28255 * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
28256 * config/picochip/libgccExtras/ashrsi3.c: Likewise.
28257 * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
28258 * config/picochip/libgccExtras/divmod15.asm: Likewise.
28259 * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
28260 * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
28261 * config/picochip/libgccExtras/longjmp.asm: Likewise.
28262 * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
28263 * config/picochip/libgccExtras/lshrsi3.c: Likewise.
28264 * config/picochip/libgccExtras/parityhi2.asm: Likewise.
28265 * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
28266 * config/picochip/libgccExtras/setjmp.asm: Likewise.
28267 * config/picochip/libgccExtras/subdi3.asm: Likewise.
28268 * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
28269 * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
28270 * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
28271 * config/rs6000/750cl.h: Likewise.
28272 * config/rs6000/altivec.h: Likewise.
28273 * config/rs6000/biarch64.h: Likewise.
28274 * config/rs6000/crtresfpr.asm: Likewise.
28275 * config/rs6000/crtresgpr.asm: Likewise.
28276 * config/rs6000/crtresxfpr.asm: Likewise.
28277 * config/rs6000/crtresxgpr.asm: Likewise.
28278 * config/rs6000/crtsavfpr.asm: Likewise.
28279 * config/rs6000/crtsavgpr.asm: Likewise.
28280 * config/rs6000/darwin-asm.h: Likewise.
28281 * config/rs6000/darwin-fallback.c: Likewise.
28282 * config/rs6000/darwin-fpsave.asm: Likewise.
28283 * config/rs6000/darwin-ldouble.c: Likewise.
28284 * config/rs6000/darwin-tramp.asm: Likewise.
28285 * config/rs6000/darwin-unwind.h: Likewise.
28286 * config/rs6000/darwin-vecsave.asm: Likewise.
28287 * config/rs6000/darwin-world.asm: Likewise.
28288 * config/rs6000/e500crtres32gpr.asm: Likewise.
28289 * config/rs6000/e500crtres64gpr.asm: Likewise.
28290 * config/rs6000/e500crtres64gprctr.asm: Likewise.
28291 * config/rs6000/e500crtrest32gpr.asm: Likewise.
28292 * config/rs6000/e500crtrest64gpr.asm: Likewise.
28293 * config/rs6000/e500crtresx32gpr.asm: Likewise.
28294 * config/rs6000/e500crtresx64gpr.asm: Likewise.
28295 * config/rs6000/e500crtsav32gpr.asm: Likewise.
28296 * config/rs6000/e500crtsav64gpr.asm: Likewise.
28297 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
28298 * config/rs6000/e500crtsavg32gpr.asm: Likewise.
28299 * config/rs6000/e500crtsavg64gpr.asm: Likewise.
28300 * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
28301 * config/rs6000/eabi-ci.asm: Likewise.
28302 * config/rs6000/eabi-cn.asm: Likewise.
28303 * config/rs6000/eabi.asm: Likewise.
28304 * config/rs6000/linux-unwind.h: Likewise.
28305 * config/rs6000/linux64.h: Likewise.
28306 * config/rs6000/paired.h: Likewise.
28307 * config/rs6000/paired.md: Likewise.
28308 * config/rs6000/ppc64-fp.c: Likewise.
28309 * config/rs6000/ppu_intrinsics.h: Likewise.
28310 * config/rs6000/rs6000.h: Likewise.
28311 * config/rs6000/si2vmx.h: Likewise.
28312 * config/rs6000/sol-ci.asm: Likewise.
28313 * config/rs6000/sol-cn.asm: Likewise.
28314 * config/rs6000/spe.h: Likewise.
28315 * config/rs6000/spu2vmx.h: Likewise.
28316 * config/rs6000/sysv4.h: Likewise.
28317 * config/rs6000/tramp.asm: Likewise.
28318 * config/rs6000/vec_types.h: Likewise.
28319 * config/s390/linux-unwind.h: Likewise.
28320 * config/s390/tpf-unwind.h: Likewise.
28321 * config/score/crti.asm: Likewise.
28322 * config/score/crtn.asm: Likewise.
28323 * config/sh/crt1.asm: Likewise.
28324 * config/sh/crti.asm: Likewise.
28325 * config/sh/crtn.asm: Likewise.
28326 * config/sh/divtab-sh4-300.c: Likewise.
28327 * config/sh/divtab-sh4.c: Likewise.
28328 * config/sh/divtab.c: Likewise.
28329 * config/sh/lib1funcs-4-300.asm: Likewise.
28330 * config/sh/lib1funcs-Os-4-200.asm: Likewise.
28331 * config/sh/lib1funcs.asm: Likewise.
28332 * config/sh/lib1funcs.h: Likewise.
28333 * config/sh/linux-atomic.asm: Likewise.
28334 * config/sh/linux-unwind.h: Likewise.
28335 * config/sh/shmedia.h: Likewise.
28336 * config/sh/sshmedia.h: Likewise.
28337 * config/sh/ushmedia.h: Likewise.
28338 * config/sparc/crtfastmath.c: Likewise.
28339 * config/sparc/linux-unwind.h: Likewise.
28340 * config/sparc/sol2-c1.asm: Likewise.
28341 * config/sparc/sol2-ci.asm: Likewise.
28342 * config/sparc/sol2-cn.asm: Likewise.
28343 * config/spu/divmodti4.c: Likewise.
28344 * config/spu/divv2df3.c: Likewise.
28345 * config/spu/float_disf.c: Likewise.
28346 * config/spu/float_unsdidf.c: Likewise.
28347 * config/spu/float_unsdisf.c: Likewise.
28348 * config/spu/float_unssidf.c: Likewise.
28349 * config/spu/mfc_multi_tag_release.c: Likewise.
28350 * config/spu/mfc_multi_tag_reserve.c: Likewise.
28351 * config/spu/mfc_tag_release.c: Likewise.
28352 * config/spu/mfc_tag_reserve.c: Likewise.
28353 * config/spu/mfc_tag_table.c: Likewise.
28354 * config/spu/multi3.c: Likewise.
28355 * config/spu/spu_internals.h: Likewise.
28356 * config/spu/spu_intrinsics.h: Likewise.
28357 * config/spu/spu_mfcio.h: Likewise.
28358 * config/spu/vec_types.h: Likewise.
28359 * config/spu/vmx2spu.h: Likewise.
28360 * config/stormy16/stormy16-lib2.c: Likewise.
28361 * config/svr4.h: Likewise.
28362 * config/sync.c: Likewise.
28363 * config/v850/lib1funcs.asm: Likewise.
28364 * config/vxlib-tls.c: Likewise.
28365 * config/vxlib.c: Likewise.
28366 * config/vxworks-dummy.h: Likewise.
28367 * config/xtensa/crti.asm: Likewise.
28368 * config/xtensa/crtn.asm: Likewise.
28369 * config/xtensa/ieee754-df.S: Likewise.
28370 * config/xtensa/ieee754-sf.S: Likewise.
28371 * config/xtensa/lib1funcs.asm: Likewise.
28372 * config/xtensa/lib2funcs.S: Likewise.
28373 * config/xtensa/linux-unwind.h: Likewise.
28374 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
28375 * config/xtensa/unwind-dw2-xtensa.h: Likewise.
28376 * coretypes.h: Likewise.
28377 * crtstuff.c: Likewise.
28378 * defaults.h: Likewise.
28379 * dwarf2.h: Likewise.
28380 * emutls.c: Likewise.
28381 * gbl-ctors.h: Likewise.
28382 * gcov-io.h: Likewise.
28383 * ginclude/float.h: Likewise.
28384 * ginclude/iso646.h: Likewise.
28385 * ginclude/stdarg.h: Likewise.
28386 * ginclude/stdbool.h: Likewise.
28387 * ginclude/stddef.h: Likewise.
28388 * ginclude/stdfix.h: Likewise.
28389 * ginclude/stdint-gcc.h: Likewise.
28390 * ginclude/tgmath.h: Likewise.
28391 * gthr-aix.h: Likewise.
28392 * gthr-dce.h: Likewise.
28393 * gthr-gnat.c: Likewise.
28394 * gthr-gnat.h: Likewise.
28395 * gthr-lynx.h: Likewise.
28396 * gthr-mipssde.h: Likewise.
28397 * gthr-nks.h: Likewise.
28398 * gthr-posix.c: Likewise.
28399 * gthr-posix.h: Likewise.
28400 * gthr-posix95.h: Likewise.
28401 * gthr-rtems.h: Likewise.
28402 * gthr-single.h: Likewise.
28403 * gthr-solaris.h: Likewise.
28404 * gthr-tpf.h: Likewise.
28405 * gthr-vxworks.h: Likewise.
28406 * gthr-win32.h: Likewise.
28407 * gthr.h: Likewise.
28408 * libgcc2.c: Likewise.
28409 * libgcc2.h: Likewise.
28410 * libgcov.c: Likewise.
28411 * tsystem.h: Likewise.
28412 * typeclass.h: Likewise.
28413 * unwind-c.c: Likewise.
28414 * unwind-compat.h: Likewise.
28415 * unwind-dw2-fde-compat.c: Likewise.
28416 * unwind-dw2-fde-darwin.c: Likewise.
28417 * unwind-dw2-fde-glibc.c: Likewise.
28418 * unwind-dw2-fde.c: Likewise.
28419 * unwind-dw2-fde.h: Likewise.
28420 * unwind-dw2.c: Likewise.
28421 * unwind-dw2.h: Likewise.
28422 * unwind-generic.h: Likewise.
28423 * unwind-pe.h: Likewise.
28424 * unwind-sjlj.c: Likewise.
28425 * unwind.inc: Likewise.
28426 * config/arm/neon-gen.ml: Change generated copyright header to
28427 refer to version 3 of the GNU General Public License with
28428 version 3.1 of the GCC Runtime Library Exception and to point
28429 readers at the COPYING3 and COPYING3.RUNTIME files and the
28430 FSF's license web page.
28431 * config/arm/arm_neon.h: Regenerate.
28432
28433 2009-04-09 Jakub Jelinek <jakub@redhat.com>
28434
28435 * config/cris/cris.md: Change copyright header to refer to version
28436 3 of the GNU General Public License.
28437 * doc/install.texi2html: Change copyright header to refer to version
28438 3 of the GNU General Public License and to point readers at the
28439 COPYING3 file and the FSF's license web page.
28440 * config/vax/linux.h: Likewise.
28441
28442 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
28443
28444 * config/i386/i386.md (cmpcc): New.
28445 * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
28446 (sync_compare_and_swap_cc*): Delete.
28447
28448 * config/s390/s390.c (s390_compare_emitted): Remove.
28449 (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
28450 s390_compare_emitted used to be handled. Assert that modes match.
28451 (s390_emit_compare_and_swap): Use s390_emit_compare, do not
28452 refer to sync_compare_and_swap_ccsi.
28453 * config/s390/s390.h (s390_compare_emitted): Remove.
28454 * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
28455 instead of s390_compare_emitted.
28456 (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
28457 instead of s390_compare_emitted.
28458 * config/s390/s390.md (cmpcc): New.
28459 (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
28460 CC_REGNUM, do not pretend it's set.
28461 (sync_compare_and_swap_cc*): Delete.
28462 * config/s390/predicates.md (cc_reg_operand): New.
28463
28464 * expr.c (sync_compare_and_swap_cc): Delete.
28465 * optabs.h (sync_compare_and_swap_cc): Delete.
28466 * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
28467 is being used with can_compare_p.
28468 (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
28469 (find_cc_set): New.
28470 (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
28471 look for a MODE_CC set instead. Use emit_store_flag.
28472 (expand_compare_and_swap_loop): Likewise, with some additional
28473 complication to avoid a force_reg when useless. Use
28474 emit_cmp_and_jump_insns.
28475 * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
28476 * doc/md.texi (sync_compare_and_swap_cc): Merge with
28477 sync_compare_and_swap documentation.
28478
28479 2009-04-09 Jan Hubicka <jh@suse.cz>
28480
28481 * except.c (find_prev_try): Break out from ....
28482 (duplicate_eh_regions): ... here; properly update prev_try pointers
28483 when duplication part of tree.
28484 (dump_eh_tree): Improve dumping.
28485 (verify_eh_region): New.
28486 (verify_eh_tree): Use it.
28487
28488 2009-04-06 Richard Guenther <rguenther@suse.de>
28489
28490 * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
28491 &ARRAY addresses by adjusting their types and prepending
28492 a conversion.
28493 * tree-cfg.c (verify_gimple_assign_single): Verify that
28494 addresses are correct.
28495
28496 2009-04-09 Richard Guenther <rguenther@suse.de>
28497
28498 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
28499 indices into an array reference if possible.
28500 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
28501 Fold POINTER_PLUS_EXPR statements with invariant address.
28502
28503 2009-04-09 Alan Modra <amodra@bigpond.net.au>
28504
28505 PR target/39634
28506 * config.gcc (powerpc64-*-linux*): Always build biarch.
28507
28508 2009-04-09 Joseph Myers <joseph@codesourcery.com>
28509
28510 PR c/39613
28511 * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
28512 it and pedwarn if this results in an INTEGER_CST.
28513
28514 2009-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
28515
28516 * doc/install.texi: Update minimum GMP version. Remove obsolete
28517 text in MPFR section.
28518
28519 2009-04-08 Jakub Jelinek <jakub@redhat.com>
28520
28521 * dwarf2out.c (class_scope_p): New static inline.
28522 (class_or_namespace_scope_p): Use it.
28523 (gen_variable_die): Use DW_TAG_member tag for static data member
28524 declarations instead of DW_TAG_variable.
28525
28526 PR middle-end/39573
28527 * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
28528 variables.
28529
28530 2009-04-08 Richard Guenther <rguenther@suse.de>
28531
28532 * tree-ssa-sccvn.c (valueize_refs): Do not continue to
28533 valueize random data.
28534
28535 2009-04-08 David Edelsohn <edelsohn@gnu.org>
28536
28537 * config.gcc (aix tm_file): Add aix-stdint.h.
28538 (aix tm clause use_gcc_stdint): Set to wrap.
28539 * config/rs6000/aix-stdint.h: New file.
28540
28541 2009-04-08 Richard Guenther <rguenther@suse.de>
28542
28543 PR middle-end/36291
28544 * tree-dfa.c (add_referenced_var): Do not recurse into
28545 global initializers.
28546 * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
28547 exposed variables.
28548 (fold_const_aggregate_ref): Likewise.
28549
28550 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
28551
28552 * recog.c (ordered_comparison_operator): New.
28553 * gensupport.c (std_preds): Add it.
28554 * doc/md.texi (Machine-Independent Predicates): Document it.
28555
28556 2009-04-08 Jan Hubicka <jh@suse.cz>
28557
28558 * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
28559 * function.h (rtl_eh): Remove exception_handler_label_map.
28560 * except.c (ehl_hash, ehl_eq, add_ehl_entry,
28561 remove_exception_handler_label, for_each_eh_label_1): Remove.
28562 (rtl_remove_unreachable_regions): Remove.
28563 (convert_from_eh_region_ranges): Do not remove unreachable regions.
28564 (find_exception_handler_labels): Don't build the hashtable.
28565 (maybe_remove_eh_handler): Remove.
28566 (for_each_eh_label): Rewrite to walk the tree.
28567 (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
28568 * except.h (maybe_remove_eh_handler): Remove.
28569 * passes.c (init_optimization_passes): Schedule second EH cleanup
28570 before out-of-ssa.
28571 * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
28572 cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
28573
28574 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
28575
28576 * genoutput.c (validate_optab_operands): New.
28577 (gen_insn, gen_expand): Call it.
28578
28579 * genflags.c (gen_insn): Detect misused iterators.
28580 (main): Pass line_no to gen_insn, exit with status 1 on error.
28581
28582 * genextract.c (line_no): Make global.
28583 (VEC_safe_set_locstr): Change assertion to error message.
28584 (main): Exit with status 1 on error.
28585
28586 2009-04-08 Joseph Myers <joseph@codesourcery.com>
28587
28588 PR c/39614
28589 PR c/39673
28590 * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
28591 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
28592 EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
28593 * c-convert.c (convert): Do not call fold on results of conversion
28594 functions when the result is a C_MAYBE_CONST_EXPR.
28595 * c-parser.c (c_parser_postfix_expression): Do not fold condition
28596 of __builtin_choose_expr.
28597 * c-typeck.c (remove_c_maybe_const_expr): New.
28598 (build_unary_op, build_conditional_expr, build_compound_expr,
28599 build_binary_op, c_objc_common_truthvalue_conversion): Call
28600 remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
28601 integer operands.
28602
28603 2009-04-08 Bingfeng Mei <bmei@broadcom.com>
28604
28605 * fold-const.c (const_binop): Combine two VECTOR_CST under operation
28606 CODE to produce a new one. Add a prototype to use fold_convert_const
28607
28608 2009-04-08 Danny Smith <dannysmith@users.sourceforge.net>
28609
28610 PR bootstrap/39660
28611 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
28612 mix declarations and code.
28613
28614 2009-04-08 Ben Elliston <bje@au.ibm.com>
28615
28616 * gcc.c: Replace `CC' with `GCC' throughout.
28617
28618 2009-04-07 H.J. Lu <hongjiu.lu@intel.com>
28619
28620 * doc/invoke.texi: Document Atom support.
28621
28622 2009-04-07 Jason Merrill <jason@redhat.com>
28623
28624 PR c++/25185
28625 * c-common.h, c-common.c: Add flag_pretty_templates.
28626 * c-opts.c (c_common_handle_option): Set it.
28627 * c.opt: Add -fno-pretty-templates.
28628 * doc/invoke.texi (C++ Dialect Options): Likewise.
28629
28630 2009-04-07 Uros Bizjak <ubizjak@gmail.com>
28631
28632 * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
28633 (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
28634 (ia64_expand_builtin): Likewise.
28635
28636 2009-04-07 Martin Jambor <mjambor@suse.cz>
28637
28638 * tree-ssa-alias.c (refs_may_alias_p_1): Check for
28639 is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
28640 ADDR_EXPRS are include too.
28641
28642 2009-04-07 Richard Guenther <rguenther@suse.de>
28643
28644 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
28645 decls are only used if passes as parameters or if they are
28646 local statics and the call is not to a builtin.
28647 (call_may_clobber_ref_p_1): Likewise.
28648
28649 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
28650
28651 * expr.c (do_store_flag): Remove last argument. Simplify code
28652 to avoid duplication of tests already done by can_compare_p.
28653 (expand_expr_real_1): Adjust caller.
28654
28655 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
28656
28657 * optabs.c (can_compare_p): Test the predicate of a
28658 cbranch and cstore pattern.
28659
28660 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
28661
28662 * expr.c (convert_move): Use emit_store_flag instead of
28663 "emulating" it.
28664
28665 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
28666
28667 * config/i386/i386.c (ix86_compare_emitted): Remove.
28668 (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
28669 ix86_compare_op0 like ix86_compare_emitted used to be handled.
28670 * config/i386/i386.h (ix86_compare_emitted): Remove.
28671 * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
28672 instead of ix86_compare_emitted.
28673 * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
28674
28675 2009-04-07 Andrew Stubbs <ams@codesourcery.com>
28676
28677 * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
28678 Add t-sysroot-suffix to tmake_file.
28679 * config/print-sysroot-suffix.sh: New file.
28680 * config/t-sysroot-suffix: New file.
28681
28682 2009-04-07 Ben Elliston <bje@au.ibm.com>
28683
28684 * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
28685 as the latter produces a warning when the target does not support
28686 infinity.
28687
28688 2009-04-07 Ben Elliston <bje@au.ibm.com>
28689
28690 * dfp.c: Replace type punning assignments with memcpy throughout.
28691 * Makefile.in (dfp.o-warn): Remove.
28692
28693 2009-04-07 Alan Modra <amodra@bigpond.net.au>
28694
28695 PR target/39634
28696 * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
28697 Include soft-fp/t-softfp after rs6000/t-linux64.
28698
28699 2009-04-06 Eric Botcazou <ebotcazou@adacore.com>
28700
28701 * stor-layout.c (set_sizetype): Use the full precision of their
28702 machine mode for bitsize types.
28703
28704 2009-04-06 H.J. Lu <hongjiu.lu@intel.com>
28705
28706 * config/i386/i386.md: Revert 2 accidental checkins.
28707
28708 2009-04-06 Joey Ye <joey.ye@intel.com>
28709 Xuepeng Guo <xuepeng.guo@intel.com>
28710 H.J. Lu <hongjiu.lu@intel.com>
28711
28712 Atom pipeline model, tuning and insn selection.
28713 * config.gcc (atom): Add atom config options and target.
28714
28715 * config/i386/atom.md: New.
28716
28717 * config/i386/i386.c (atom_cost): New cost.
28718 (m_ATOM): New macro flag.
28719 (initial_ix86_tune_features): Set m_ATOM.
28720 (x86_accumulate_outgoing_args): Likewise.
28721 (x86_arch_always_fancy_math_387): Likewise.
28722 (processor_target): Add Atom cost.
28723 (cpu_names): Add Atom cpu name.
28724 (override_options): Set Atom ISA.
28725 (ix86_issue_rate): New case PROCESSOR_ATOM.
28726 (ix86_adjust_cost): Likewise.
28727
28728 * config/i386/i386.h (TARGET_ATOM): New target macro.
28729 (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
28730 (TARGET_OPT_AGU): New target option.
28731 (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
28732 (processor_type): Add PROCESSOR_ATOM.
28733
28734 * config/i386/i386.md (cpu): Add new value "atom".
28735 (use_carry, movu): New attr.
28736 (atom.md): Include atom.md.
28737 (adddi3_carry_rex64): Set attr "use_carry".
28738 (addqi3_carry): Likewise.
28739 (addhi3_carry): Likewise.
28740 (addsi3_carry): Likewise.
28741 (*addsi3_carry_zext): Likewise.
28742 (subdi3_carry_rex64): Likewise.
28743 (subqi3_carry): Likewise.
28744 (subhi3_carry): Likewise.
28745 (subsi3_carry): Likewise.
28746 (x86_movdicc_0_m1_rex64): Likewise.
28747 (*x86_movdicc_0_m1_se): Likewise.
28748 (x86_movsicc_0_m1): Likewise.
28749 (*x86_movsicc_0_m1_se): Likewise.
28750 (*adddi_1_rex64): Emit add insn as much as possible.
28751 (*addsi_1): Likewise.
28752 (return_internal): Set atom_unit.
28753 (return_internal_long): Likewise.
28754 (return_pop_internal): Likewise.
28755 (*rcpsf2_sse): Set atom_sse_attr attr.
28756 (*qrt<mode>2_sse): Likewise.
28757 (*prefetch_sse): Likewise.
28758
28759 * config/i386/i386-c.c (ix86_target_macros_internal): New case
28760 PROCESSOR_ATOM.
28761 (ix86_target_macros_internal): Likewise.
28762
28763 * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
28764 (*prefetch_sse_rex): Likewise.
28765 (sse_rcpv4sf2): Likewise.
28766 (sse_vmrcpv4sf2): Likewise.
28767 (sse_sqrtv4sf2): Likewise.
28768 (<sse>_vmsqrt<mode>2): Likewise.
28769 (sse_ldmxcsr): Likewise.
28770 (sse_stmxcsr): Likewise.
28771 (*sse_sfence): Likewise.
28772 (sse2_clflush): Likewise.
28773 (*sse2_mfence): Likewise.
28774 (*sse2_lfence): Likewise.
28775 (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
28776 (<sse>_movup<ssemodesuffixf2c>): Likewise.
28777 (avx_movdqu<avxmodesuffix>): Likewise.
28778 (avx_lddqu<avxmodesuffix>): Likewise.
28779 (sse2_movntv2di): Change attr "type" to "ssemov".
28780 (sse2_movntsi): Likewise.
28781 (rsqrtv8sf2): Change attr "type" to "sseadd".
28782 (sse3_addsubv2df3): Set attr "atom_unit".
28783 (sse3_h<plusminus_insn>v4sf3): Likewise.
28784 (*sse2_pmaddwd): Likewise.
28785 (*vec_extractv2di_1_rex64): Likewise.
28786 (*vec_extractv2di_1_avx): Likewise.
28787 (sse2_psadbw): Likewise.
28788 (ssse3_phaddwv8hi3): Likewise.
28789 (ssse3_phaddwv4hi3): Likewise.
28790 (ssse3_phadddv4si3): Likewise.
28791 (ssse3_phadddv2si3): Likewise.
28792 (ssse3_phaddswv8hi3): Likewise.
28793 (ssse3_phaddswv4hi3): Likewise.
28794 (ssse3_phsubwv8hi3): Likewise.
28795 (ssse3_phsubwv4hi3): Likewise.
28796 (ssse3_phsubdv4si3): Likewise.
28797 (ssse3_phsubdv2si3): Likewise.
28798 (ssse3_phsubswv8hi3): Likewise.
28799 (ssse3_phsubswv4hi3): Likewise.
28800 (ssse3_pmaddubsw128): Likewise.
28801 (sse3_pmaddubsw: Likewise.
28802 (ssse3_palignrti): Likewise.
28803 (ssse3_palignrdi): Likewise.
28804
28805 2009-04-06 Gerald Pfeifer <gerald@pfeifer.com>
28806
28807 * doc/install.texi (Specific): Fix two cross-references to MinGW.
28808
28809 2009-04-06 Richard Guenther <rguenther@suse.de>
28810
28811 PR tree-optimization/28868
28812 * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
28813 of which PHI results we inserted.
28814 (insert_into_preds_of_block): Record inserted PHIs.
28815 (eliminate): Eliminate redundant PHI nodes.
28816 (init_pre): Init inserted_phi_names.
28817
28818 2009-04-06 Richard Guenther <rguenther@suse.de>
28819
28820 PR tree-optimization/39643
28821 * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
28822 IMAGPART_EXPRs of complex constants.
28823 (execute_fold_all_builtins): If we folded a call queue
28824 TODO_update_address_taken.
28825
28826 2009-04-06 Jan Hubicka <jh@suse.cz>
28827
28828 PR middle-end/39659
28829 * except.c (remove_unreachable_regions): Propagate may_contain_throw
28830 flag.
28831
28832 2009-04-06 Andrew Stubbs <ams@codesourcery.com>
28833
28834 * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
28835 delay slot.
28836 (ic_invalidate_array): Likewise.
28837
28838 2009-04-06 Hariharan Sandanagobalane <hariharan@picochip.com>
28839
28840 * calls.c (emit_library_call_value_1): Fix a problem with parameter
28841 alignment for library calls.
28842
28843 2009-04-06 Danny Smith <dannysmith@users.sourceforge.net>
28844
28845 * config.gcc (mingw32 tm_file): Add mingw-stdint.h.
28846 (mingw32 tm clause use_gcc_stdint): Set to wrap.
28847 * config/i386/mingw-stdint.h: New file.
28848
28849 2009-04-05 Richard Guenther <rguenther@suse.de>
28850
28851 PR tree-optimization/39648
28852 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
28853 our &A vs. &A[0] IL deficiencies.
28854
28855 2009-04-04 Jan Hubicka <jh@suse.cz>
28856
28857 * except.c (sjlj_find_directly_reachable_regions): Be ready for
28858 removed toplevel regions.
28859 (sjlj_mark_call_sites): Likewise.
28860
28861 2009-04-04 Dave Korn <dave.korn.cygwin@gmail.com>
28862
28863 * config.gcc (cygwin tm_file): Add cygwin-stdint.h.
28864 (cygwin tm clause use_gcc_stdint): Set to wrap.
28865 * config/i386/cygwin-stdint.h: New file.
28866
28867 2009-04-04 Richard Guenther <rguenther@suse.de>
28868
28869 * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
28870 * tree-ssa-copy.c (init_copy_prop): Do not propagate through
28871 single-argument PHIs if we are in loop-closed SSA form.
28872 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
28873 for the pre-condition.
28874 (slpeel_tree_peel_loop_to_edge): Likewise.
28875 (vect_build_loop_niters): Take an optional sequence to append stmts.
28876 (vect_generate_tmps_on_preheader): Likewise.
28877 (vect_do_peeling_for_loop_bound): Take extra guards for the
28878 pre-condition.
28879 (vect_do_peeling_for_alignment): Adjust. Unconditionally apply
28880 the cost model check.
28881 (vect_loop_versioning): Take stmt and stmt list to put pre-condition
28882 guards if we are going to peel. Do not apply versioning in that case.
28883 * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
28884 (vect_do_peeling_for_loop_bound): Likewise.
28885 * tree-vect-loop.c (vect_transform_loop): If we are peeling for
28886 loop bound only record extra pre-conditions, do not apply loop
28887 versioning.
28888
28889 2009-04-04 Richard Guenther <rguenther@suse.de>
28890
28891 * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
28892 renaming code.
28893
28894 2009-04-04 Jan Hubicka <jh@suse.cz>
28895
28896 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
28897 last_basic_block for size of bb->index indexed array.
28898 * bt-load.c (compute_defs_uses_and_gen, compute_kill,
28899 compute_out, link_btr_uses, build_btr_def_use_webs,
28900 build_btr_def_use_webs, migrate_btr_defs): Likewise.
28901
28902 2009-04-04 Jan Hubicka <jh@suse.cz>
28903
28904 * except.c (remove_eh_handler_and_replace): Break out from ...
28905 (remove_eh_handler): ... here.
28906 (bring_to_root): New function.
28907 (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
28908 handled ones, bring others to root of tree.
28909
28910 2009-04-04 Jan Hubicka <jh@suse.cz>
28911
28912 * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
28913 (all_phis_safe_to_merge): New function.
28914 (update_info): New structure.
28915 (make_eh_edge_and_update_phi, update_eh_edges): New functions.
28916 (cleanup_empty_eh): Update SSA if possible.
28917
28918 2009-04-04 Richard Guenther <rguenther@suse.de>
28919
28920 * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
28921 * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
28922 (append_vuse): Likewise.
28923
28924 2009-04-04 Jakub Jelinek <jakub@redhat.com>
28925
28926 * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
28927 * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
28928 instead of REG_UNSAVED for DW_CFA_undefined.
28929 (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
28930 (uw_update_context): If RA column is REG_UNDEFINED, mark it as
28931 outermost frame.
28932
28933 2009-04-04 Richard Earnshaw <rearnsha@arm.com>
28934
28935 PR target/39501
28936 * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
28937
28938 2009-04-04 Richard Guenther <rguenther@suse.de>
28939
28940 PR tree-optimization/8781
28941 PR tree-optimization/37892
28942 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
28943 * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
28944 (valueize_refs): Call it for *& valueizations.
28945 (shared_reference_ops_from_ref): Rename to ...
28946 (valueize_shared_reference_ops_from_ref): ... this and valueize.
28947 (shared_reference_ops_from_call): Rename to ...
28948 (valueize_shared_reference_ops_from_call): ... this and valueize.
28949 (vn_reference_lookup): Update.
28950 (visit_reference_op_call): Likewise.
28951 * tree-ssa-pre.c (phi_translate_1): Fold *&.
28952 (eliminate): Value-replace the call address in call statements.
28953
28954 2009-04-04 Richard Guenther <rguenther@suse.de>
28955
28956 PR tree-optimization/39636
28957 * tree-ssa-forwprop.c
28958 (forward_propagate_addr_into_variable_array_index): Check for
28959 GIMPLE_ASSIGN before accessing the rhs code.
28960
28961 2009-04-03 Jason Merrill <jason@redhat.com>
28962
28963 * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
28964
28965 2009-04-03 Steve Ellcey <sje@cup.hp.com>
28966
28967 * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
28968 truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
28969 fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
28970 floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
28971 fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
28972 smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
28973 divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
28974 umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
28975 *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
28976 *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
28977 adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
28978 smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
28979 *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
28980 *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
28981 sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
28982 Use fr_reg_or_fp01_operand instead of fr_register_operand
28983
28984 * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
28985 recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
28986 divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
28987
28988 2009-04-03 Vladimir Makarov <vmakarov@redhat.com>
28989
28990 PR rtl-optimization/39607
28991 PR rtl-optimization/39631
28992
28993 Revert:
28994
28995 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
28996 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
28997 instead of DF_LR_OUT.
28998 * ira-lives.c (process_bb_node_lives): Ditto.
28999 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
29000 instead of DF_LR_{OUT,IN}.
29001 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
29002 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
29003
29004 2009-04-03 Steven Bosscher <steven@gcc.gnu.org>
29005
29006 * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
29007 (execute_lower_omp): Always run but take the short way out if -fopenmp
29008 is not given.
29009 (gate_lower_omp): Remove, forcing the pass manager to always run the
29010 pass and always set PROP_gimple_lomp.
29011 (pass_lower_omp): Remove gate function.
29012 * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
29013 PROP_trees. Instead, require it.
29014 * ipa-cp.c (pass_ipa_cp): Likewise.
29015 * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
29016 (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
29017 * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
29018 and PROP_gimple_leh.
29019
29020 2009-04-03 Richard Guenther <rguenther@suse.de>
29021
29022 PR middle-end/13146
29023 PR tree-optimization/23940
29024 PR tree-optimization/33237
29025 PR middle-end/33974
29026 PR middle-end/34093
29027 PR tree-optimization/36201
29028 PR tree-optimization/36230
29029 PR tree-optimization/38049
29030 PR tree-optimization/38207
29031 PR tree-optimization/38230
29032 PR tree-optimization/38301
29033 PR tree-optimization/38585
29034 PR middle-end/38895
29035 PR tree-optimization/38985
29036 PR tree-optimization/39299
29037 * tree-ssa-structalias.h: Remove.
29038 * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
29039 (NULL_DEF_OPERAND_P): Make of type def_operand_p.
29040 (struct vuse_element_d): Remove.
29041 (struct vuse_vec_d): Likewise.
29042 (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
29043 VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
29044 SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
29045 VUSE_ELEMENT_VAR): Likewise.
29046 (struct voptype_d): Likewise.
29047 (NUM_VOP_FREE_BUCKETS): Likewise.
29048 (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
29049 (struct stmt_operands_d): Remove.
29050 (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
29051 VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
29052 VDEF_NUM, VDEF_VECT): Likewise.
29053 (copy_virtual_operands): Remove.
29054 (operand_build_cmp): Likewise.
29055 (create_ssa_artificial_load_stmt): Likewise.
29056 (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
29057 (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
29058 vuse_index and mayuse_index members. Pack and move done and iter_type
29059 members to the front.
29060 (SSA_OP_VMAYUSE): Remove.
29061 (SSA_OP_VIRTUAL_USES): Adjust.
29062 (FOR_EACH_SSA_VDEF_OPERAND): Remove.
29063 (unlink_stmt_vdef): Declare.
29064 (add_to_addressable_set): Remove.
29065 * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
29066 (vrp_visit_stmt): Likewise.
29067 * doc/tree-ssa.texi (Alias analysis): Update.
29068 * doc/invoke.texi (max-aliased-vops): Remove docs.
29069 (avg-aliased-vops): Likewise.
29070 * tree-into-ssa.c (syms_to_rename): Remove.
29071 (need_to_update_vops_p): Likewise.
29072 (need_to_initialize_update_ssa_p): Rename to ...
29073 (update_ssa_initialized_fn): ... this. Track function we are
29074 initialized for.
29075 (symbol_marked_for_renaming): Simplify.
29076 (add_new_name_mapping): Do not set need_to_update_vops_p.
29077 (dump_currdefs): Use SYMS_TO_RENAME.
29078 (rewrite_update_stmt): Always walk all uses/defs.
29079 (dump_update_ssa): Adjust.
29080 (init_update_ssa): Take function argument. Track what we are
29081 initialized for.
29082 (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
29083 (create_new_def_for): Initialize for cfun, assert we are initialized
29084 for cfun.
29085 (mark_sym_for_renaming): Simplify.
29086 (mark_set_for_renaming): Do not initialize update-ssa.
29087 (need_ssa_update_p): Simplify. Take function argument.
29088 (name_mappings_registered_p): Assert we ask for the correct function.
29089 (name_registered_for_update_p): Likewise.
29090 (ssa_names_to_replace): Likewise.
29091 (release_ssa_name_after_update_ssa): Likewise.
29092 (update_ssa): Likewise. Use SYMS_TO_RENAME.
29093 (dump_decl_set): Do not print a newline.
29094 (debug_decl_set): Do it here.
29095 (dump_update_ssa): And here.
29096 * tree-ssa-loop-im.c (move_computations): Adjust.
29097 (movement_possibility): Likewise.
29098 (determine_max_movement): Likewise.
29099 (gather_mem_refs_stmt): Likewise.
29100 * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
29101 or NAME_MEMORY_TAG.
29102 * tree-complex.c (update_all_vops): Remove.
29103 (expand_complex_move): Adjust.
29104 * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
29105 Simplify test for memory referencing statement. Exclude
29106 non-invariant ADDR_EXPRs.
29107 * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
29108 * tree-loop-distribution.c (generate_memset_zero): Adjust.
29109 (rdg_flag_uses): Likewise.
29110 * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
29111 related code.
29112 (tree_optimize_tail_calls_1): Also split the
29113 edge from the entry block if we have degenerate PHI nodes in
29114 the first basic block.
29115 * tree.c (init_ttree): Remove memory-tag related code.
29116 (tree_code_size): Likewise.
29117 (tree_node_structure): Likewise.
29118 (build7_stat): Re-write to be build6_stat.
29119 * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
29120 (SSA_VAR_P): Adjust.
29121 (struct tree_memory_tag): Remove.
29122 (struct tree_memory_partition_tag): Likewise.
29123 (union tree_node): Adjust.
29124 (build7): Re-write to be build6.
29125 * tree-pass.h (pass_reset_cc_flags): Remove.
29126 (TODO_update_address_taken): New flag.
29127 (pass_simple_dse): Remove.
29128 * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
29129 * params.h (MAX_ALIASED_VOPS): Remove.
29130 (AVG_ALIASED_VOPS): Likewise.
29131 * omp-low.c (expand_omp_taskreg): Update SSA form.
29132 * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
29133 aliases the lhs in a copy stmt.
29134 * tree-ssa-dse.c (struct address_walk_data): Remove.
29135 (memory_ssa_name_same): Likewise.
29136 (memory_address_same): Likewise.
29137 (get_kill_of_stmt_lhs): Likewise.
29138 (dse_possible_dead_store_p): Simplify, use the oracle. Handle
29139 unused stores. Look through PHI nodes into post-dominated regions.
29140 (dse_optimize_stmt): Simplify. Properly remove stores.
29141 (tree_ssa_dse): Compute dominators.
29142 (execute_simple_dse): Remove.
29143 (pass_simple_dse): Likewise.
29144 * ipa-reference.c (scan_stmt_for_static_refs): Open-code
29145 gimple_loaded_syms and gimple_stored_syms computation.
29146 * toplev.c (dump_memory_report): Dump alias and pta stats.
29147 * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
29148 (vn_reference_eq): Likewise.
29149 (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
29150 copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
29151 valueize_vuses): Remove.
29152 (get_def_ref_stmt_vuses): Simplify. Rename to ...
29153 (get_def_ref_stmt_vuse): ... this.
29154 (vn_reference_lookup_2): New function.
29155 (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
29156 walking equivalent vuses. Simplify.
29157 (vn_reference_lookup): Likewise.
29158 (vn_reference_insert): Likewise.
29159 (vn_reference_insert_pieces): Likewise.
29160 (visit_reference_op_call): Simplify.
29161 (visit_reference_op_load): Likewise.
29162 (visit_reference_op_store): Likewise.
29163 (init_scc_vn): Remove shared_lookup_vuses initialization.
29164 (free_scc_vn): Remove shared_lookup_vuses freeing.
29165 (sort_vuses, sort_vuses_heap): Remove.
29166 (get_ref_from_reference_ops): Export.
29167 * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
29168 vector with single vuse pointer.
29169 (vn_reference_lookup_pieces, vn_reference_lookup,
29170 vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
29171 (shared_vuses_from_stmt): Remove.
29172 (get_ref_from_reference_ops): Declare.
29173 * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
29174 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
29175 memory-tag related code.
29176 * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
29177 (likely_value): Add comment, skip static-chain of call statements.
29178 (surely_varying_stmt_p): Adjust.
29179 (gimplify_and_update_call_from_tree): Likewise.
29180 (execute_fold_all_builtins): Do not rebuild alias info.
29181 (gimplify_and_update_call_from_tree): Properly update VOPs.
29182 * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
29183 (copy_ref_info): Remove memory-tag related code.
29184 * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
29185 * ipa-pure-const.c (check_decl): Remove memory-tag related code.
29186 (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
29187 computation.
29188 * tree-ssa-dom.c (gimple_p): Remove typedef.
29189 (eliminate_redundant_computations): Adjust.
29190 (record_equivalences_from_stmt): Likewise.
29191 (avail_expr_hash): Likewise.
29192 (avail_expr_eq): Likewise.
29193 * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
29194 (stmt_makes_single_load): Likewise.
29195 (stmt_makes_single_store): Likewise.
29196 * tree-ssa-alias.c: Rewrite completely.
29197 (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
29198 debug_mem_sym_stats, dump_mem_sym_stats_for_var,
29199 debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
29200 delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
29201 dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
29202 Remove public functions.
29203 (pass_reset_cc_flags): Remove.
29204 (pass_build_alias): Move ...
29205 * tree-ssa-structalias.c (pass_build_alias): ... here.
29206 * tree-ssa-alias.c (may_be_aliased): Move ...
29207 * tree-flow-inline.h (may_be_aliased): ... here.
29208 tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
29209 count_uses_and_derefs): Move ...
29210 * gimple.c: ... here.
29211 * gimple.h (count_uses_and_derefs): Declare.
29212 * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
29213 ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
29214 same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
29215 indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
29216 ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
29217 call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
29218 get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
29219 New functions.
29220 * tree-dfa.c (refs_may_alias_p): Move ...
29221 * tree-ssa-alias.c (refs_may_alias_p): ... here. Extend.
29222 * tree-ssa-alias.h: New file.
29223 * tree-ssa-sink.c (is_hidden_global_store): Adjust.
29224 (statement_sink_location): Likewise.
29225 * opts.c (decode_options): Do not adjust max-aliased-vops or
29226 avg-aliased-vops values.
29227 * timevar.def (TV_TREE_MAY_ALIAS): Remove.
29228 (TV_CALL_CLOBBER): Likewise.
29229 (TV_FLOW_SENSITIVE): Likewise.
29230 (TV_FLOW_INSENSITIVE): Likewise.
29231 (TV_MEMORY_PARTITIONING): Likewise.
29232 (TV_ALIAS_STMT_WALK): New timevar.
29233 * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
29234 * tree-ssa-address.c (create_mem_ref_raw): Use build6.
29235 (get_address_description): Remove memory-tag related code.
29236 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
29237 * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
29238 * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
29239 and immediate uses in statements. Document.
29240 * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
29241 (dump_symbols): Remove.
29242 (dump_gimple_mem_ops): Do not dump loaded or stored syms.
29243 * alias.c (get_deref_alias_set): New function split out from ...
29244 (get_alias_set): ... here.
29245 * alias.h (get_deref_alias_set): Declare.
29246 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
29247 type parameter. Remove restrict pointer handling. Create a
29248 ref-all pointer in case type-based alias sets do not conflict.
29249 (vect_analyze_data_refs): Remove SMT related code.
29250 * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
29251 (vectorizable_load): Likewise.
29252 * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
29253 (DR_SYMBOL_TAG, DR_VOPS): Remove.
29254 * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
29255 Ignore vops and SMTs.
29256 (dr_analyze_alias): Likewise..
29257 (free_data_ref): Likewise.
29258 (create_data_ref): Likewise.
29259 (analyze_all_data_dependences): Likewise.
29260 (get_references_in_stmt): Adjust.
29261 * tree-flow-inline.h (gimple_aliases_computed_p,
29262 gimple_addressable_vars, gimple_call_clobbered_vars,
29263 gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
29264 factoring_name_p, mark_call_clobbered, clear_call_clobbered,
29265 compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
29266 gimple_mem_ref_stats): Remove.
29267 (gimple_vop): New function.
29268 (op_iter_next_use): Remove vuses and mayuses cases.
29269 (op_iter_next_def): Remove vdefs case.
29270 (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
29271 (clear_and_done_ssa_iter): Do not set removed fields.
29272 (op_iter_init): Likewise. Skip vuse and/or vdef if requested.
29273 Assert we are not iterating over vuses or vdefs if not also
29274 iterating over uses or defs.
29275 (op_iter_init_use): Likewise.
29276 (op_iter_init_def): Likewise.
29277 (op_iter_next_vdef): Remove.
29278 (op_iter_next_mustdef): Likewise.
29279 (op_iter_init_vdef): Likewise.
29280 (compare_ssa_operands_equal): Likewise.
29281 (link_use_stmts_after): Handle vuse operand.
29282 (is_call_used): Use is_call_clobbered.
29283 (is_call_clobbered): Global variables are always call clobbered,
29284 query the call-clobbers bitmap.
29285 (mark_call_clobbered): Ignore global variables.
29286 (clear_call_clobbered): Likewise.
29287 * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
29288 virtual operands sanity check.
29289 * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
29290 Remove.
29291 (TARGET_MEM_REF): Remove TMR_TAG operand.
29292 * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
29293 Remove call-clobber related code.
29294 (remove_referenced_var): Likewise. Do not clear mpt or symbol_mem_tag.
29295 (dump_variable): Do not dump SMTs, memory stats, may-aliases or
29296 partitions or escape reason.
29297 (get_single_def_stmt, get_single_def_stmt_from_phi,
29298 get_single_def_stmt_with_phi): Remove.
29299 (dump_referenced_vars): Tidy.
29300 (get_ref_base_and_extent): Allow bare decls.
29301 (collect_dfa_stats): Adjust.
29302 * graphite.c (rename_variables_in_stmt): Adjust.
29303 (graphite_copy_stmts_from_block): Likewise.
29304 (translate_clast): Likewise.
29305 * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
29306 (EXPR_DIES): New.
29307 (translate_vuse_through_block): Use the oracle.
29308 (phi_translate_1): Adjust.
29309 (value_dies_in_block_x): Use the oracle. Cache the outcome
29310 in EXPR_DIES.
29311 (valid_in_sets): Check if the VUSE for
29312 a REFERENCE is available.
29313 (eliminate): Do not remove stmts during elimination,
29314 instead queue and remove them afterwards.
29315 (do_pre): Do not rebuild alias info.
29316 (pass_pre): Run TODO_rebuild_alias before PRE.
29317 * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
29318 * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
29319 (mark_all_v_defs_stmt): Remove.
29320 (mark_all_v_defs_seq): Adjust.
29321 (sra_replace): Likewise.
29322 (scalarize_use): Likewise.
29323 (scalarize_copy): Likewise.
29324 (scalarize_init): Likewise.
29325 (scalarize_ldst): Likewise.
29326 (todoflags): Remove.
29327 (tree_sra): Do not rebuild alias info.
29328 (tree_sra_early): Adjust.
29329 (pass_sra): Run TODO_update_address_taken before SRA.
29330 * tree-predcom.c (set_alias_info): Remove.
29331 (prepare_initializers_chain): Do not call it.
29332 (mark_virtual_ops_for_renaming): Adjust.
29333 (mark_virtual_ops_for_renaming_list): Remove.
29334 (initialize_root_vars): Adjust.
29335 (initialize_root_vars_lm): Likewise.
29336 (prepare_initializers_chain): Likewise.
29337 * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
29338 (may_propagate_copy_into_stmt): Likewise.
29339 (merge_alias_info): Do nothing for now.
29340 (propagate_tree_value_into_stmt): Adjust.
29341 (stmt_may_generate_copy): Likewise.
29342 * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
29343 not mark symbols for renaming.
29344 (forward_propagate_addr_expr): Match up push/pop_stmt_changes
29345 with the same statement, make sure to update the new pointed-to one.
29346 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
29347 call statements, do not mark symbols for renaming.
29348 (mark_operand_necessary): Dump something.
29349 (ref_may_be_aliased): New function.
29350 (mark_aliased_reaching_defs_necessary_1): New helper function.
29351 (mark_aliased_reaching_defs_necessary): Likewise.
29352 (mark_all_reaching_defs_necessary_1): Likewise.
29353 (mark_all_reaching_defs_necessary): Likewise.
29354 (propagate_necessity): Do not process virtual PHIs. For
29355 non-aliased loads mark all reaching definitions as necessary.
29356 For aliased loads and stores mark the immediate dominating
29357 aliased clobbers as necessary.
29358 (visited): New global static.
29359 (perform_tree_ssa_dce): Free visited bitmap after propagating
29360 necessity.
29361 (remove_dead_phis): Perform simple dead virtual PHI removal.
29362 (remove_dead_stmt): Properly unlink virtual operands when
29363 removing stores.
29364 (eliminate_unnecessary_stmts): Schedule PHI removal after
29365 stmt removal.
29366 * tree-ssa-ter.c (is_replaceable_p): Adjust.
29367 (process_replaceable): Likewise.
29368 (find_replaceable_in_bb): Likewise.
29369 * tree-ssa.c (verify_ssa_name): Verify all VOPs are
29370 based on the single gimple vop.
29371 (verify_flow_insensitive_alias_info): Remove.
29372 (verify_flow_sensitive_alias_info): Likewise.
29373 (verify_call_clobbering): Likewise.
29374 (verify_memory_partitions): Likewise.
29375 (verify_alias_info): Likewise.
29376 (verify_ssa): Adjust..
29377 (execute_update_addresses_taken): Export. Update SSA
29378 manually. Optimize only when optimizing. Use a local bitmap.
29379 (pass_update_address_taken): Remove TODO_update_ssa, add
29380 TODO_dump_func.
29381 (pass_update_address_taken): Just use TODO_update_address_taken.
29382 (init_tree_ssa): Do not initialize addressable_vars.
29383 (verify_ssa): Verify new VUSE / VDEF properties.
29384 Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
29385 Do not call verify_alias_info.
29386 (delete_tree_ssa): Clear the VUSE, VDEF operands.
29387 Do not free the loaded and stored syms bitmaps. Reset the escaped
29388 and callused solutions. Do not free addressable_vars.
29389 Remove memory-tag related code.
29390 (warn_uninitialized_var): Aliases are always available.
29391 * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
29392 * lambda-code.c (can_put_in_inner_loop): Adjust.
29393 (can_put_after_inner_loop): Likewise.
29394 (perfect_nestify): Likewise.
29395 * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
29396 (vect_gen_widened_results_half): Remove CALL_EXPR handling.
29397 (vectorizable_conversion): Do not mark symbols for renaming.
29398 * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
29399 (expand_call_inline): Unlink the calls virtual operands before
29400 replacing it.
29401 (tree_function_versioning): Do not call update_ssa if we are not
29402 updating clones. Simplify.
29403 * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
29404 (propagate_with_phi): Likewise..
29405 * tree-outof-ssa.c (create_temp): Remove memory tag and call
29406 clobber code. Assert we are not aliased or global.
29407 * tree-flow.h: Include tree-ssa-alias.h
29408 (enum escape_type): Remove.
29409 (struct mem_sym_stats_d): Likewise.
29410 (struct mem_ref_stats_d): Likewise.
29411 (struct gimple_df): Add vop member. Remove global_var,
29412 call_clobbered_vars, call_used_vars, addressable_vars,
29413 aliases_compted_p and mem_ref_stats members. Add syms_to_rename,
29414 escaped and callused members.
29415 (struct ptr_info_def): Remove all members, add points-to solution
29416 member pt.
29417 (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
29418 call_clobbered, escape_mask, mpt and symbol_mem_tag members.
29419 * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
29420 (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
29421 (tree-ssa-alias.o): Likewise.
29422 (toplev.o): Add tree-ssa-alias.h
29423 (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
29424 * gimple.c (gimple_set_bb): Fix off-by-one error.
29425 (is_gimple_reg): Do not handle memory tags.
29426 (gimple_copy): Also copy virtual operands.
29427 Delay updating the statement. Do not reset loaded and stored syms.
29428 (gimple_set_stored_syms): Remove.
29429 (gimple_set_loaded_syms): Likewise.
29430 (gimple_call_copy_skip_args): Copy the virtual operands
29431 and mark the new statement modified.
29432 * tree-ssa-structalias.c (may_alias_p): Remove.
29433 (set_uids_in_ptset): Take the alias set to prune with as
29434 parameter. Fold in the alias test of may_alias_p.
29435 (compute_points_to_sets): Compute whether a ptr is dereferenced
29436 in a local sbitmap.
29437 (process_constraint): Deal with &ANYTHING on the lhs, reject all
29438 other ADDRESSOF constraints on the lhs.
29439 (get_constraint_for_component_ref): Assert that we don't get
29440 ADDRESSOF constraints from the base of the reference.
29441 Properly generate UNKNOWN_OFFSET for DEREF if needed.
29442 (struct variable_info): Remove collapsed_to member.
29443 (get_varinfo_fc): Remove.
29444 (new_var_info): Do not set collapsed_to.
29445 (dump_constraint): Do not follow cycles.
29446 (dump_constraint_graph): Likewise.
29447 (build_pred_graph): Likewise.
29448 (build_succ_graph): Likewise.
29449 (rewrite_constraints): Likewise.
29450 (do_simple_structure_copy): Remove.
29451 (do_rhs_deref_structure_copy): Remove.
29452 (do_lhs_deref_structure_copy): Remove.
29453 (collapse_rest_of_var): Remove.
29454 (do_structure_copy): Re-implement.
29455 (pta_stats): New global variable.
29456 (dump_pta_stats): New function.
29457 (struct constraint_expr): Make offset signed.
29458 (UNKNOWN_OFFSET): Define special value.
29459 (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
29460 (solution_set_expand): New helper function split out from ...
29461 (do_sd_constraint): ... here.
29462 (solution_set_add): Handle UNKNOWN_OFFSET. Handle negative offsets.
29463 (do_ds_constraint): Likewise.
29464 (do_sd_constraint): Likewise. Do not special-case ESCAPED = *ESCAPED
29465 and CALLUSED = *CALLUSED.
29466 (set_union_with_increment): Make inc argument signed.
29467 (type_safe): Remove.
29468 (get_constraint_for_ptr_offset): Handle unknown and negative
29469 constant offsets.
29470 (first_vi_for_offset): Handle offsets before start. Bail
29471 out early for offsets beyond the variable extent.
29472 (first_or_preceding_vi_for_offset): New function.
29473 (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
29474 Together with ESCAPED = *ESCAPED this properly computes reachability.
29475 (find_what_var_points_to): New function.
29476 (find_what_p_points_to): Implement in terms of find_what_var_points_to.
29477 (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
29478 pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
29479 pt_solutions_intersect): New functions.
29480 (compute_call_used_vars): Remove.
29481 (compute_may_aliases): New main entry into PTA computation.
29482 * gimple.h (gimple_p): New typedef.
29483 (struct gimple_statement_base): Remove references_memory_p.
29484 (struct gimple_statement_with_memory_ops_base): Remove
29485 vdef_ops, vuse_ops, stores and loads members. Add vdef and vuse
29486 members.
29487 (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
29488 gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
29489 gimple_set_references_memory): Remove.
29490 (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
29491 gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
29492 New functions.
29493 * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
29494 (verify_expr): Allow RESULT_DECL.
29495 (gimple_duplicate_bb): Do not copy virtual operands.
29496 (gimple_duplicate_sese_region): Adjust.
29497 (gimple_duplicate_sese_tail): Likewise.
29498 (mark_virtual_ops_in_region): Remove.
29499 (move_sese_region_to_fn): Do not call it.
29500 * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
29501 and pass_simple_dse.
29502 (execute_function_todo): Handle TODO_update_address_taken,
29503 call execute_update_addresses_taken for TODO_rebuild_alias.
29504 (execute_todo): Adjust.
29505 (execute_one_pass): Init dump files early.
29506 * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
29507 call-clobbered.
29508 (create_general_new_stmt): Clear vops.
29509 * tree-ssa-reassoc.c (get_rank): Adjust.
29510 * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
29511 symbols for renaming.
29512 * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
29513 (PARAM_AVG_ALIASED_VOPS): Likewise.
29514 * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
29515 (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
29516 * tree-ssa-operands.c: Simplify for new virtual operand representation.
29517 (operand_build_cmp, copy_virtual_operands,
29518 create_ssa_artificial_load_stmt, add_to_addressable_set,
29519 gimple_add_to_addresses_taken): Remove public functions.
29520 (unlink_stmt_vdef): New function.
29521
29522 2009-04-03 Alan Modra <amodra@bigpond.net.au>
29523
29524 * config.gcc (powerpc-*-linux*): Merge variants.
29525
29526 2009-04-02 Chao-ying Fu <fu@mips.com>
29527 James Grosbach <james.grosbach@microchip.com>
29528
29529 * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
29530 num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
29531 cop0_sp_offset.
29532 (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
29533 keep_interrupts_masked_p, use_debug_exception_return_p.
29534 (mips_attribute_table): Add interrupt, use_shadow_register_set,
29535 keep_interrupts_masked, use_debug_exception_return.
29536 (mips_interrupt_type_p, mips_use_shadow_register_set_p,
29537 mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
29538 New functions.
29539 (mips_function_ok_for_sibcall): Return false for interrupt handlers.
29540 (mips_print_operand): Process COP0 registers to print $0 .. $31
29541 correctly for GAS to process.
29542 (mips_interrupt_extra_call_saved_reg_p): New function.
29543 (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
29544 extra registers.
29545 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
29546 (mips_compute_frame_info): Add supports for interrupt context that
29547 includes doubleword accumulators and COP0 registers.
29548 (mips_for_each_saved_acc): New function.
29549 (mips_for_each_saved_gpr_and_fpr): Change the function name from
29550 mips_for_each_saved_reg.
29551 (mips_save_reg): Save accumulators.
29552 (mips_kernel_reg_p): A new for_each_rtx callback.
29553 (mips_expand_prologue): Support interrupt handlers.
29554 (mips_restore_reg): Restore accumulators.
29555 (mips_expand_epilogue): Support interrupt handlers.
29556 (mips_can_use_return_insn): Return false for interrupt handlers.
29557 (mips_epilogue_uses): New function.
29558 * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
29559 UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
29560 (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
29561 cop0_move): New instructions.
29562 * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
29563 * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
29564 defines.
29565 (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
29566 New defines.
29567 (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
29568 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
29569 interrupt handlers, we use K0 as the temporary register.
29570 (EPILOGUE_USES): Change to a function call.
29571 * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
29572 handlers, we use K0 as the temporary register.
29573
29574 * doc/extend.texi (Function Attributes): Document interrupt,
29575 use_shadow_register_set, keep_interrupts_masked,
29576 use_debug_exception_return for MIPS attributes.
29577
29578 2009-04-03 Alan Modra <amodra@bigpond.net.au>
29579
29580 * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
29581 Remove a number of t-files from tmake_file.
29582 * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
29583 * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
29584 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
29585 target_prototype, not TARGET_PROTOTYPE.
29586 (LINK_OS_GNU_SPEC): Define.
29587 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
29588 and darwin-ldoubdle.c.
29589
29590 2009-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
29591
29592 PR driver/39293
29593 * gcc.c (save_temps_flag): Add support for -save-temps=obj.
29594 (cpp_options): Ditto.
29595 (default_compilers): Ditto.
29596 (display_help): Ditto.
29597 (process_command): Ditto.
29598 (do_spec_1): Ditto.
29599 (set_input): Use lbasename instead of duplicate code.
29600 (save_temps_prefix): New static for -save-temps=obj.
29601 (save_temps_length): Ditto.
29602
29603 * doc/invoke.texi (-save-temps=obj): Document new variant to
29604 -save-temps switch.
29605
29606 2009-04-02 Jeff Law <law@redhat.com>
29607
29608 * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
29609 variable.
29610
29611 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
29612
29613 * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
29614 * configure: Regenerated.
29615
29616 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
29617
29618 * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
29619 share the argument list.
29620
29621 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
29622
29623 Merge
29624
29625 2009-02-12 Diego Novillo <dnovillo@google.com>
29626
29627 * varpool.c (debug_varpool): New.
29628 * cgraph.h (debug_varpool): Declare.
29629
29630 2009-04-02 Jan Hubicka <jh@suse.cz>
29631
29632 * passes.c (init_optimization_passes): Remove two copies of ehcleanup
29633 pass.
29634
29635 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
29636
29637 * config/i386/i386.c (ix86_abi): Move initialization to ...
29638 (override_options): Here.
29639
29640 2009-04-02 Christian Bruel <christian.bruel@st.com>
29641
29642 * config/sh/sh.c (sh_dwarf_register_span): New function.
29643 (TARGET_DWARF_REGISTER_SPAN): Define.
29644 * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
29645
29646 2009-04-02 Ira Rosen <irar@il.ibm.com>
29647
29648 PR tree-optimization/39595
29649 * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
29650 interleaved loads group is not greater than the SLP group size.
29651
29652 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
29653
29654 * builtins.c (is_builtin_name): New.
29655 (called_as_built_in): Use is_builtin_name.
29656 * tree.h (is_builtin_name): New.
29657 * varasm.c (incorporeal_function_p): Use is_builtin_name
29658
29659 2009-04-02 Andrew Stubbs <ams@codesourcery.com>
29660
29661 * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
29662
29663 2009-04-02 Dodji Seketeli <dodji@redhat.com>
29664
29665 PR c++/26693
29666 * c-decl.c (clone_underlying_type): Move this ...
29667 * c-common.c (set_underlying_type): ... here.
29668 Also, make sure the function properly sets TYPE_STUB_DECL() on
29669 the newly created typedef variant type.
29670 * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
29671 * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
29672 points.
29673
29674 2009-04-02 Richard Guenther <rguenther@suse.de>
29675
29676 PR tree-optimization/37221
29677 * tree-flow.h (degenerate_phi_result): Declare.
29678 * tree-ssa-dom.c (degenerate_phi_result): Export.
29679 * tree-scalar-evolution.c (analyze_initial_condition): If
29680 the initial condition is defined by a degenerate PHI node
29681 use the degenerate value.
29682
29683 2009-04-01 Eric Botcazou <ebotcazou@adacore.com>
29684
29685 PR rtl-optimization/39588
29686 * combine.c (merge_outer_ops): Do not set the constant when this
29687 is not necessary.
29688 (simplify_shift_const_1): Do not modify it either in this case.
29689
29690 2009-04-01 Steven Bosscher <steven@gcc.gnu.org>
29691
29692 * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
29693 tuning is deprecated if -mtune value is set to an Itanium1 variant.
29694
29695 2009-04-01 Janis Johnson <janis187@us.ibm.com>
29696
29697 PR c/29027
29698 * c-lex.c (interpret_float): Default (no suffix) is double.
29699
29700 2009-04-1 Xinliang David Li <davidxl@google.com>
29701
29702 * config/i386/i386.c (legitimate_constant_p): Recognize
29703 all one vector constant.
29704
29705 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
29706
29707 * config/vax/vax.c: Add #includes to silence warnings.
29708 Change #include order to silence two warnings.
29709
29710 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
29711
29712 * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
29713 (ASM_SPEC): Pass -k to the assembler for PIC code.
29714
29715 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
29716
29717 * config.gcc: Add vax-*-linux* to the switch.
29718 * config/vax/linux.h: New file. (TARGET_VERSION,
29719 TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
29720
29721 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
29722
29723 * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
29724 Use predicate macros instead of GET_CODE() == foo.
29725 * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
29726 ashlsi3, rotrsi3, <unnamed>): Likewise.
29727
29728 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
29729
29730 * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
29731 jbbccihi, jbbccisi): Remova trailing whitespace.
29732 * config/vax/constraints.md: Likewise.
29733 * config/vax/elf.h (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
29734 * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
29735 * config/vax/predicates.md: Likewise.
29736 * config/vax/vax.c (print_operand_address, vax_output_int_move,
29737 vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
29738 * config/vax/vax.h: Likewise.
29739 * config/vax/vax.md (nonlocal_goto): Likewise.
29740
29741 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
29742
29743 * config/vax/vax.c (vax_float_literal, vax_output_int_move)
29744 (indirectable_address_p, adjacent_operands_p): Add spaces around
29745 braces.
29746 * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
29747
29748 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
29749
29750 * config/vax/vax.c (legitimate_constant_address_p,
29751 legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
29752 index_term_p, reg_plus_index_p, legitimate_address_p,
29753 vax_mode_dependent_address_p): Update comments to match functions
29754 modified by the recent int->bool conversion.
29755
29756 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
29757
29758 * config/vax/builtins.md: Update copyright message.
29759 * config/vax/constraints.md: Likewise.
29760 * config/vax/netbsd-elf.h: Likewise.
29761 * config/vax/predicates.md: Likewise.
29762 * config/vax/vax-protos.h: Likewise.
29763 * config/vax/vax.c: Likewise.
29764 * config/vax/vax.h: Likewise.
29765 * config/vax/vax.md: Likewise.
29766 * config/vax/vax.opt: Likewise.
29767
29768 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
29769
29770 * config/vax/builtins.md (ffssi2, ffssi2_internal,
29771 sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
29772 * config/vax/constraints.md (B, R): Likewise.
29773 * config/vax/predicates.md (external_memory_operand,
29774 nonimmediate_addsub_di_operand): Likewise.
29775 * config/vax/vax.c (vax_output_int_add): Likewise.
29776 * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
29777 untyped_call): Likewise.
29778
29779 2009-04-01 Matt Thomas <matt@3am-software.com>
29780
29781 * config/vax/predicates.md: New file.
29782 (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
29783 external_const_operand, nonsymbolic_operand, external_memory_operand,
29784 indirect_memory_operand, indexed_memory_operand,
29785 illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
29786 nonimmediate_addsub_di_operand, general_addsub_di_operand): New
29787 predicate.
29788 * config/vax/constraints.md: New file.
29789 (Z0, U06, U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
29790 New constraint.
29791 * config/vax/builtins.md: New file.
29792 (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
29793 jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
29794 jbbccisi): Define.
29795 * config/vax/vax.opt (mqmath): Add option.
29796 * config/vax/vax.md (isfx): Extend with DI.
29797 (VAXintQH, VAXintQHSD): Define.
29798 (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
29799 mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
29800 and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
29801 one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
29802 (movdi): Update constraints and use vax_output_int_move().
29803 (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
29804 movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
29805 pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
29806 nonlocal_goto): New.
29807 (mov<mode>): Extend accepted operand types.
29808 (subdi3_old): Rename from subdi3, change update constraints and use
29809 a new implementation.
29810 * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
29811 (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
29812 MOVE_RATIO, CLEAR_RATIO): Define.
29813 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
29814 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
29815 (PRINT_OPERAND): Redefine using a function instead of inlined code.
29816 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
29817 (split_quadword_operands): Make static and really allow variable
29818 splitting.
29819 (print_operand_address): Update for PIC generation.
29820 (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
29821 indexable_address_p, fixup_mathdi_operand,
29822 vax_expand_addsub_di_operands, adjacent_operands_p): New.
29823 (vax_float_literal, legitimate_constant_p,
29824 indirectable_constant_address_p, index_term_p,
29825 reg_plus_index_p): Return bool instead of int.
29826 (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
29827 where needed.
29828 (vax_output_int_move, vax_output_int_add): Extend to allow PIC
29829 generation.
29830 (vax_output_conditional_branch): Indent.
29831 (legitimate_constant_address_p, indirectable_constant_address_p,
29832 indirectable_address_p, nonindexed_address_p, legitimate_address_p,
29833 vax_mode_dependent_address_p): Return bool instead of int, update for
29834 PIC generation.
29835 * config/vax/vax-protos.h (legitimate_constant_address_p,
29836 legitimate_constant_p, legitimate_address_p,
29837 vax_mode_dependent_address_p): Change declaration to bool.
29838 (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
29839 vax_expand_addsub_di_operands, vax_output_int_subtract,
29840 vax_output_movmemsi): Declare.
29841 (split_quadword_operands, vax_float_literal): Delete declaration.
29842 * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
29843 * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
29844 VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
29845 ASM_OUTPUT_DWARF_PCREL): Define.
29846 (ASM_SPEC): Change definition to allow PIC generation.
29847
29848 2009-04-01 Steve Ellcey <sje@cup.hp.com>
29849
29850 * doc/sourcebuild.texi: Update front-end requirements.
29851
29852 2009-04-01 Jakub Jelinek <jakub@redhat.com>
29853
29854 PR target/39226
29855 * config/rs6000/rs6000.md (andsi3_internal5_nomc,
29856 anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
29857 (booldi3_internal3): Use boolean_or_operator instead of
29858 boolean_operator.
29859
29860 2009-04-01 Joseph Myers <joseph@codesourcery.com>
29861
29862 PR c/39605
29863 * c-decl.c (grokdeclarator): Pedwarn for file-scope array
29864 declarator whose size is not an integer constant expression but
29865 folds to an integer constant, then treat it as a constant
29866 subsequently.
29867
29868 2009-04-01 Richard Guenther <rguenther@suse.de>
29869
29870 * fold-const.c (fold_plusminus_mult_expr): Do not fold
29871 i * 4 + 2 to (i * 2 + 1) * 2.
29872
29873 2009-04-01 Jakub Jelinek <jakub@redhat.com>
29874
29875 PR c/37772
29876 * c-parser.c (c_parser_asm_statement): Skip until close paren and
29877 return if c_parser_asm_string_literal returned NULL.
29878
29879 2009-04-01 Nick Clifton <nickc@redhat.com>
29880
29881 * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
29882 already defined.
29883 * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
29884 * config/m32c/m32c-lib2.c: Remove unused typedefs. Rename the
29885 other typedefs to avoid conflicts with libgcc2.c. Define labels
29886 to gain 16-bit bit-manipulation functions from libgcc2.c and then
29887 include it.
29888 * config/m32c/m32c-lib2-trapv.c: New file. Define labels
29889 to gain 16-bit trapping arithmetic functions from libgcc2.c and
29890 then include it.
29891
29892 2009-04-01 Rafael Avila de Espindola <espindola@google.com>
29893
29894 * varasm.c (default_function_rodata_section): Declare DOT as
29895 const char*.
29896
29897 2009-04-01 Kai Tietz <kai.tietz@onevision.com>
29898 Andrey Galkin <agalkin@hypercom.com>
29899
29900 PR/39492
29901 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
29902 Make object_name unique for each process.
29903
29904 2009-04-01 Jakub Jelinek <jakub@redhat.com>
29905
29906 PR other/39591
29907 * omp-low.c (remove_exit_barrier): Don't optimize if there are any
29908 addressable variables in the parallel that could go out of scope while
29909 running queued tasks.
29910
29911 2009-04-01 Anatoly Sokolov <aesok@post.ru>
29912
29913 * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
29914 (CASE_VALUES_THRESHOLD): Redefine.
29915 * config/avr/avr.c (avr_override_options): Remove initialization of
29916 avr_case_values_threshold variable.
29917 (avr_case_values_threshold): Remove variable. Add new function.
29918 * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
29919 * config/avr/avr.opt (mno-tablejump): Remove option.
29920 * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
29921
29922 2009-04-01 DJ Delorie <dj@redhat.com>
29923
29924 * varasm.c (default_function_rodata_section): Don't assume
29925 anything about where the first '.' in the section name is.
29926
29927 2009-04-01 Alan Modra <amodra@bigpond.net.au>
29928
29929 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
29930 rs6000_emit_stack_tie.
29931
29932 2009-03-31 Ian Lance Taylor <iant@google.com>
29933
29934 * tree-eh.c (tree_remove_unreachable_handlers): Compare
29935 gimple_code with GIMPLE_RESX, not RESX.
29936
29937 2009-03-31 Joseph Myers <joseph@codesourcery.com>
29938
29939 * c-common.c (c_get_ident): New.
29940 (c_common_nodes_and_builtins): Call it for type names that may be NULL.
29941
29942 2009-04-01 Ben Elliston <bje@au.ibm.com>
29943
29944 * config/rs6000/sysv4.opt (msdata): Improve option description.
29945
29946 2009-03-31 Steve Ellcey <sje@cup.hp.com>
29947
29948 * config/ia64/ia64.md (divsf3_internal_lat): Remove.
29949 (divdf3_internal_lat): Remove.
29950 (divxf3_internal_lat): Remove.
29951 (divxf3_internal_thr): Remove.
29952 (divxf): Use divxf3_internal.
29953 * config/ia64/div.md (divsf3_internal_lat): New.
29954 (divdf3_internal_lat): New.
29955 (divxf3_internal): New.
29956
29957 2009-03-31 Joseph Myers <joseph@codesourcery.com>
29958
29959 PR c/448
29960 * Makefile.in (USE_GCC_STDINT): Define.
29961 (stmp-int-hdrs): Install stdint.h if applicable.
29962 * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
29963 if known.
29964 (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
29965 (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
29966 UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
29967 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
29968 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
29969 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
29970 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
29971 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
29972 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
29973 (c_common_nodes_and_builtins): Initialize
29974 underlying_wchar_type_node. Do not initialize
29975 signed_wchar_type_node or unsigned_wchar_type_node. Initialize
29976 nodes for new types.
29977 (c_stddef_cpp_builtins): Define macros for new types.
29978 * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
29979 Remove.
29980 (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
29981 CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
29982 CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
29983 CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
29984 CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
29985 CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
29986 CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
29987 CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
29988 CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
29989 (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
29990 (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
29991 int16_type_node, int32_type_node, int64_type_node,
29992 uint8_type_node, uint16_type_node, c_uint32_type_node,
29993 c_uint64_type_node, int_least8_type_node, int_least16_type_node,
29994 int_least32_type_node, int_least64_type_node,
29995 uint_least8_type_node, uint_least16_type_node,
29996 uint_least32_type_node, uint_least64_type_node,
29997 int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
29998 int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
29999 uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
30000 uintptr_type_node): Define.
30001 * c-cppbuiltin.c (builtin_define_constants,
30002 builtin_define_type_minmax): New.
30003 (builtin_define_stdint_macros): Define more macros.
30004 (c_cpp_builtins): Define more limit macros.
30005 (type_suffix): New.
30006 (builtin_define_type_max): Define in terms of
30007 builtin_define_type_minmax. Remove is_long parameter. All
30008 callers changed.
30009 * config.gcc (use_gcc_stdint): Define.
30010 (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
30011 Add newlib-stdint.h for generic targets.
30012 * config/glibc-stdint.h, config/newlib-stdint.h,
30013 ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
30014 * config/m32c/m32c.h (UINTPTR_TYPE): Define.
30015 * config/score/score.h (UINTPTR_TYPE): Define.
30016 * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
30017 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
30018 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
30019 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
30020 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
30021 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
30022 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
30023 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
30024 * config/spu/spu.h (STDINT_LONG32): Define.
30025 * configure.ac (use_gcc_stdint): Substitute.
30026 * configure: Regenerate.
30027 * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
30028 __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
30029 __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
30030 __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
30031 __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
30032 __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
30033 __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
30034 __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
30035 __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
30036 __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
30037 __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
30038 __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
30039 __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
30040 __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
30041 __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
30042 __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
30043 __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
30044 __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
30045 __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
30046 __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
30047 __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
30048 * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
30049 INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
30050 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
30051 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
30052 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
30053 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
30054 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
30055 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
30056
30057 2009-03-31 Bernd Schmidt <bernd.schmidt@analog.com>
30058
30059 * loop-iv.c (suitable_set_for_replacement): Renamed from
30060 simplify_using_assignment; changed to return bool and to accept new
30061 args DEST and SRC. Return true iff we find a source/destination pair
30062 that can be used to make a replacement, and fill SRC and DEST if so.
30063 Remove arg ALTERED. Don't deal with altered regs here. All callers
30064 changed.
30065 (simplify_using_initial_values): Deal with altered regs here and track
30066 more precisely the effect they have on the validity of our expression.
30067
30068 * loop-iv.c (simplify_using_condition): A condition of the form
30069 (EQ REG CONST) can be used to simply make a substitution.
30070 (simplify_using_initial_values): Keep track of conditions we have seen
30071 and keep using them to simplify new expressions, while applying the
30072 same substitutions to them as to the expression.
30073
30074 * simplify-rtx.c (simplify_relational_operation_1): Simplify
30075 (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
30076 GEU/LTU reversed.
30077
30078 * loop-iv.c (determine_max_iter): New arg OLD_NITER. All callers
30079 changed. Use this when trying to improve the upper bound.
30080 Generate the comparison by using simplify_gen_relational.
30081
30082 * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
30083
30084 * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
30085 functions.
30086 (simplify_using_assignment, simplify_using_initial_values): Call
30087 replace_in_expr to make replacements. Call replace_single_def_regs
30088 once on the initial version of the expression.
30089
30090 2009-03-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30091
30092 PR target/27237
30093 * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
30094
30095 2009-03-31 Richard Guenther <rguenther@suse.de>
30096
30097 PR middle-end/31029
30098 * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
30099 equality comparisons. Fold C - X CMP X if C % 2 == 1.
30100
30101 2009-03-31 Richard Guenther <rguenther@suse.de>
30102
30103 * tree.h (div_if_zero_remainder): Declare.
30104 * fold-const.c (div_if_zero_remainder): Export.
30105 * tree-ssa-forwprop.c
30106 (forward_propagate_addr_into_variable_array_index): Handle
30107 constant array index addition outside of the variable index.
30108
30109 2009-03-31 Joseph Myers <joseph@codesourcery.com>
30110
30111 PR target/39592
30112 * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
30113 define_splits, floatunssi<mode>2): Require x87 conversions from
30114 DImode to be permitted.
30115
30116 2009-03-31 Joseph Myers <joseph@codesourcery.com>
30117
30118 PR preprocessor/15638
30119 * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
30120
30121 2009-03-31 Richard Guenther <rguenther@suse.de>
30122
30123 PR middle-end/23401
30124 PR middle-end/27810
30125 * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
30126 (struct tree_decl_with_vis): Remove gimple_formal_temp member.
30127 * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
30128 a separate statement.
30129 * gimplify.c (pop_gimplify_context): Remove formal temp handling.
30130 (lookup_tmp_var): Likewise.
30131 (is_gimple_formal_tmp_or_call_rhs): Remove.
30132 (is_gimple_reg_or_call_rhs): Rename to ...
30133 (is_gimple_reg_rhs_or_call): ... this.
30134 (is_gimple_mem_or_call_rhs): Rename to ...
30135 (is_gimple_mem_rhs_or_call): ... this.
30136 (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call. Set
30137 DECL_GIMPLE_REG_P only if is_formal is true.
30138 (gimplify_compound_lval): Use is_gimple_reg. Remove workaround
30139 for non-proper post-modify expression gimplification.
30140 (gimplify_self_mod_expr): For post-modify expressions gimplify
30141 the lvalue to a minimal lvalue.
30142 (rhs_predicate_for): Remove formal temp case.
30143 (gimplify_modify_expr_rhs): Likewise.
30144 (gimplify_addr_expr): Use is_gimple_reg.
30145 (gimplify_expr): Remove formal temp cases.
30146 (gimple_regimplify_operands): Likewise.
30147 * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
30148 and FILTER_EXPR like constants.
30149 * gimple.c (walk_gimple_op): Fix val_only initialization, use
30150 is_gimple_reg.
30151 (is_gimple_formal_tmp_rhs): Remove.
30152 (is_gimple_reg_rhs): Remove special casing.
30153 (is_gimple_mem_rhs): Fix.
30154 (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
30155 (is_gimple_formal_tmp_var): Remove.
30156 (is_gimple_formal_tmp_reg): Likewise.
30157 (is_gimple_min_lval): Allow invariant component ref parts.
30158 * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
30159 is_gimple_formal_tmp_reg): Remove declarations.
30160 * tree-cfg.c (verify_expr): Verify that variables with address
30161 taken do not have DECL_GIMPLE_REG_P set.
30162 * tree-mudflap.c (mf_build_check_statement_for): Use
30163 force_gimple_operand instead of gimplify_expr.
30164
30165 2009-03-31 Ayal Zaks <zaks@il.ibm.com>
30166
30167 * modulo-sched.c (sms_schedule_by_order): Pass the actual
30168 schedulable rows to compute_split_row.
30169
30170 2009-03-31 Ben Elliston <bje@au.ibm.com>
30171
30172 PR target/31635
30173 * config/rs6000/rs6000.c (rs6000_handle_option): Handle
30174 OPT_mvrsave.
30175
30176 2009-03-31 Alan Modra <amodra@bigpond.net.au>
30177
30178 * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
30179 * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
30180 * configure: Regenerate.
30181 * config.in: Regenerate.
30182 * config/rs6000/rs6000.opt (mtls-markers): Add.
30183 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
30184 * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
30185 (tls_ld_aix, tls_ld_sysv): Likewise.
30186 (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
30187 (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
30188
30189 2009-03-31 Alan Modra <amodra@bigpond.net.au>
30190
30191 * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
30192
30193 2009-03-30 Jan Hubicka <jh@suse.cz>
30194
30195 * tree-eh.c (make_eh_edges): Set probability 100% to first edge
30196 out of RESX.
30197 (tree_remove_unreachable_handlers): Cleanup EH predecestor
30198 detection and label handling.
30199
30200 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
30201
30202 * ira-int.h (ira_allocno): Rename left_conflicts_num to
30203 left_conflicts_size.
30204 (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
30205 ALLOCNO_LEFT_CONFLICTS_SIZE.
30206
30207 * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
30208 remove_allocno_from_bucket_and_push,
30209 allocno_spill_priority_compare, push_allocnos_to_stack,
30210 setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
30211 instead of ALLOCNO_LEFT_CONFLICTS_NUM.
30212 (setup_allocno_left_conflicts_num): Ditto. Rename to
30213 setup_allocno_left_conflicts_size.
30214 (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
30215 instead of ALLOCNO_LEFT_CONFLICTS_NUM and
30216 setup_allocno_left_conflicts_size instead of
30217 setup_allocno_left_conflicts_num.
30218
30219 * ira-build.c (ira_create_allocno): Use
30220 ALLOCNO_LEFT_CONFLICTS_SIZE instead of
30221 ALLOCNO_LEFT_CONFLICTS_NUM.
30222
30223 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
30224
30225 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
30226 instead of DF_LR_OUT.
30227
30228 * ira-lives.c (process_bb_node_lives): Ditto.
30229
30230 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
30231 instead of DF_LR_{OUT,IN}.
30232
30233 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
30234
30235 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
30236
30237 2009-03-30 Jan Hubicka <jh@suse.cz>
30238
30239 * except.c (label_to_region_map): Fix thinko.
30240
30241 2009-03-30 Steve Ellcey <sje@cup.hp.com>
30242
30243 PR middle-end/38237
30244 * tree.h (tree_find_value): New declaration.
30245 * tree.c (tree_find_value): New function.
30246 * varasm.c (assemble_external): Avoid duplicate entries on lists.
30247
30248 2009-03-30 Jakub Jelinek <jakub@redhat.com>
30249
30250 PR debug/39563
30251 * c-decl.c (struct c_binding): Add locus field.
30252 (bind): Add locus argument, set locus field from it.
30253 (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
30254 add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
30255 (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
30256 implicitly_declare, undeclared_variable, lookup_label,
30257 declare_label, c_make_fname_decl, c_builtin_function,
30258 c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
30259 bind callers.
30260
30261 2009-03-30 H.J. Lu <hongjiu.lu@intel.com>
30262
30263 PR target/38781
30264 * config/i386/i386.c (classify_argument): Check total size of
30265 structure.
30266
30267 2009-03-30 Martin Jambor <mjambor@suse.cz>
30268
30269 * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
30270 IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
30271 IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
30272 respectively.
30273
30274 * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
30275 seen_variable_array_ref while also traversing a union.
30276
30277 * tree-inline.c (optimize_inline_calls): Do not call
30278 cgraph_node_remove_callees.
30279 * cgraphbuild.c (remove_cgraph_callee_edges): New function.
30280 (pass_remove_cgraph_callee_edges): New variable.
30281 * passes.c (init_optimization_passes): Add
30282 pass_remove_cgraph_callee_edges after early inlining and before all
30283 late intraprocedural passes.
30284
30285 * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
30286
30287 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
30288
30289 * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
30290 Fix typos in names.
30291
30292 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
30293
30294 * combine.c (simplify_comparison): Use have_insn_for.
30295 * dojump.c (do_jump): Likewise.
30296
30297 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
30298
30299 * config/sparc/sparc.c (sparc_compare_emitted): Remove.
30300 (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
30301 sparc_compare_op0 like sparc_compare_emitted used to be handled.
30302 (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
30303 instead of sparc_compare_emitted.
30304 * config/sparc/sparc.h (sparc_compare_emitted): Remove.
30305 * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
30306 instead of sparc_compare_emitted.
30307
30308 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
30309
30310 * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
30311 enter/exit cfglayout mode.
30312 (pass_partition_block): Require it.
30313 * combine.c (find_single_use, reg_dead_at_p): Use CFG.
30314 (combine_instructions): Track basic blocks instead of labels.
30315 (update_cfg_for_uncondjump): New.
30316 (try_combine): Use it. Update jumps after rescanning.
30317 (pass_combine): Require PROP_cfglayout.
30318 * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
30319
30320 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
30321
30322 * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
30323 Provide/destroy PROP_cfglayout respectively.
30324 * gcse.c (pass_jump_bypass, pass_gcse): Require it.
30325 * tree-pass.h (PROP_cfglayout): New.
30326
30327 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
30328
30329 * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
30330 fold_convert_const_fixed_from_fixed,
30331 fold_convert_const_fixed_from_int,
30332 fold_convert_const_fixed_from_real, fold_negate_const): Do not
30333 set TREE_CONSTANT_OVERFLOW.
30334 * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
30335 * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
30336
30337 2009-03-30 Ira Rosen <irar@il.ibm.com>
30338
30339 * tree-vect-loop-manip.c: New file.
30340 * tree-vectorizer.c: Update documentation and included files.
30341 (vect_loop_location): Make extern.
30342 (rename_use_op): Move to tree-vect-loop-manip.c
30343 (rename_variables_in_bb, rename_variables_in_loop,
30344 slpeel_update_phis_for_duplicate_loop,
30345 slpeel_update_phi_nodes_for_guard1,
30346 slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
30347 slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
30348 slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
30349 set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
30350 find_loop_location): Likewise.
30351 (new_stmt_vec_info): Move to tree-vect-stmts.c.
30352 (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
30353 get_vectype_for_scalar_type, vect_is_simple_use,
30354 supportable_widening_operation, supportable_narrowing_operation):
30355 Likewise.
30356 (bb_in_loop_p): Move to tree-vect-loop.c.
30357 (new_loop_vec_info, destroy_loop_vec_info,
30358 reduction_code_for_scalar_code, report_vect_op,
30359 vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
30360 (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
30361 (vect_supportable_dr_alignment): Likewise.
30362 * tree-vectorizer.h (tree-data-ref.h): Include.
30363 (vect_loop_location): Declare.
30364 Reorganize function declarations according to the new file structure.
30365 * tree-vect-loop.c: New file.
30366 * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
30367 tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
30368 * tree-vect-data-refs.c: New file.
30369 * tree-vect-patterns.c (timevar.h): Don't include.
30370 * tree-vect-stmts.c: New file.
30371 * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
30372 tree-vect-slp.c, tree-vect-loop.c.
30373 * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
30374 tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
30375 tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
30376 (tree-vect-analyze.o): Remove.
30377 (tree-vect-transform.o): Likewise.
30378 (tree-vect-data-refs.o): Add rule.
30379 (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
30380 tree-vect-slp.o): Likewise.
30381 (tree-vect-patterns.o): Remove redundant dependencies.
30382 (tree-vectorizer.o): Likewise.
30383 * tree-vect-slp.c: New file.
30384
30385 2009-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30386
30387 * optc-gen.awk: Warn if an option flag has multiple different
30388 help strings.
30389
30390 2009-03-30 Sebastian Pop <sebastian.pop@amd.com>
30391
30392 * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
30393 -floop-block): Document dependences on PPL, CLooG and Graphite.
30394
30395 2009-03-30 Joseph Myers <joseph@codesourcery.com>
30396
30397 PR rtl-optimization/323
30398 * c-common.c (c_fully_fold, convert_and_check,
30399 c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
30400 (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
30401 * c-common.def (EXCESS_PRECISION_EXPR): New.
30402 * c-cppbuiltin.c (builtin_define_float_constants): Define
30403 constants with enough digits for long double.
30404 * c-lex.c (interpret_float): Interpret constant with excess
30405 precision where appropriate.
30406 * c-opts.c (c_common_post_options): Set
30407 flag_excess_precision_cmdline. Give an error for
30408 -fexcess-precision=standard for C++ for processors where the
30409 option is significant.
30410 * c-parser.c (c_parser_conditional_expression): Handle excess
30411 precision in condition.
30412 * c-typeck.c (convert_arguments): Handle arguments with excess
30413 precision.
30414 (build_unary_op): Move excess precision outside operation.
30415 (build_conditional_expr): Likewise.
30416 (build_compound_expr): Likewise.
30417 (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
30418 (build_modify_expr): Handle excess precision in RHS.
30419 (convert_for_assignment): Handle excess precision in converted
30420 value.
30421 (digest_init, output_init_element, process_init_element): Handle
30422 excess precision in initializer.
30423 (c_finish_return): Handle excess precision in return value.
30424 (build_binary_op): Handle excess precision in operands and add
30425 excess precision as needed for operation.
30426 * common.opt (-fexcess-precision=): New option.
30427 * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
30428 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
30429 For standard excess precision, output explicit conversion to and
30430 truncation from XFmode.
30431 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
30432 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
30433 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
30434 define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
30435 define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
30436 floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
30437 divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
30438 *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
30439 *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
30440 define_splits, sqrt<mode>2): Disable where appropriate for
30441 standard excess precision.
30442 * convert.c (convert_to_real): Do not shorten arithmetic to type
30443 for which excess precision would be used.
30444 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
30445 * doc/invoke.texi (-fexcess-precision=): Document option.
30446 (-mfpmath=): Correct index entry.
30447 * flags.h (enum excess_precision, flag_excess_precision_cmdline,
30448 flag_excess_precision): New.
30449 * langhooks.c (lhd_post_options): Set
30450 flag_excess_precision_cmdline.
30451 * opts.c (common_handle_option): Handle -fexcess-precision=.
30452 * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
30453 init_excess_precision): New.
30454 (lang_dependent_init_target): Call init_excess_precision.
30455 * tree.c (excess_precision_type): New.
30456 * tree.h (excess_precision_type): Declare.
30457
30458 2009-03-30 Joseph Myers <joseph@codesourcery.com>
30459
30460 PR c/35235
30461 * c-typeck.c (build_component_ref): Do not copy qualifiers from
30462 non-lvalue to component.
30463
30464 2009-03-29 Joseph Myers <joseph@codesourcery.com>
30465
30466 PR preprocessor/34695
30467 * Makefile.in (c-opts.o): Depend on c-tree.h.
30468 * c-common.c: Move down include of diagnostic.h.
30469 (done_lexing, c_cpp_error): New.
30470 * c-common.h (done_lexing): Declare.
30471 * c-decl.c (c_write_global_declarations): Don't check cpp_errors
30472 (parse_in).
30473 * c-opts.c: Include c-tree.h.
30474 (c_common_init_options): Set preprocessor error callback.
30475 (c_common_handle_option): Do not set preprocessor
30476 inhibit_warnings, warnings_are_errors, warn_system_headers,
30477 pedantic_errors or inhibit_warnings flags.
30478 (c_common_post_options): Do not check cpp_errors (parse_in).
30479 (c_common_finish): Do not output dependencies if there were
30480 errors. Do not check return value of cpp_finish.
30481 * c-ppoutput.c (pp_file_change): Set input_location.
30482 * c-tree.h (c_cpp_error): Declare.
30483 * diagnostic.c (diagnostic_set_info_translated): Also initialize
30484 override_column.
30485 (diagnostic_build_prefix): Check override_column.
30486 * diagnostic.h (diagnostic_info): Add override_column field.
30487 (diagnostic_override_column): Define.
30488
30489 2009-03-28 Paolo Bonzini <bonzini@gnu.org>
30490
30491 * c-common.c (c_expand_expr, c_staticp): Remove.
30492 * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
30493 * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
30494 COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
30495 * c-gimplify.c (gimplify_compound_literal_expr,
30496 optimize_compound_literals_in_ctor): Remove.
30497 (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
30498 * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
30499 * c-semantics.c (emit_local_var): Remove.
30500
30501 * langhooks-def.h (lhd_expand_expr): Remove.
30502 * langhooks.c (lhd_expand_expr): Remove.
30503 * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
30504
30505 * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
30506 handling from c-semantics.c; don't call into langhook.
30507 (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
30508 * gimplify.c (gimplify_compound_literal_expr,
30509 optimize_compound_literals_in_ctor): Move from c-gimplify.c.
30510 (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
30511 (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
30512 as was done in c-gimplify.c.
30513 * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
30514 * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
30515 Move from c-common.h.
30516 * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
30517
30518 * tree.c (staticp): Do not call langhook.
30519 * langhooks.c (lhd_staticp): Delete.
30520 * langhooks-def.h (lhd_staticp): Delete prototype.
30521 (LANG_HOOKS_STATICP): Delete.
30522 (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
30523
30524 * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
30525 instead of DECL_STMTs.
30526
30527 2009-03-29 Joseph Myers <joseph@codesourcery.com>
30528
30529 PR c/456
30530 PR c/5675
30531 PR c/19976
30532 PR c/29116
30533 PR c/31871
30534 PR c/35198
30535 * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
30536 void_type_node.
30537 (fold_call_expr): Return a NOP_EXPR from folding rather than the
30538 contained expression.
30539 * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
30540 (c_common_truthvalue_conversion): Use c_save_expr. Do not fold
30541 conditional expressions for C.
30542 (decl_constant_value_for_optimization): Move from
30543 decl_constant_value_for_broken_optimization in c-typeck.c. Check
30544 whether optimizing and that the expression is a VAR_DECL not of
30545 array type instead of doing such checks in the caller. Do not
30546 check pedantic. Call gcc_unreachable for C++.
30547 * c-common.def (C_MAYBE_CONST_EXPR): New.
30548 * c-common.h (c_fully_fold, c_save_expr,
30549 decl_constant_value_for_optimization): New prototypes.
30550 (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
30551 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
30552 EXPR_INT_CONST_OPERANDS): Define.
30553 * c-convert.c (convert): Strip nops from expression.
30554 * c-decl.c (groktypename): Take extra parameters expr and
30555 expr_const_operands. Update call to grokdeclarator.
30556 (start_decl): Update call to grokdeclarator. Add statement for
30557 expressions used in type of decl.
30558 (grokparm): Update call to grokdeclarator.
30559 (push_parm_decl): Update call to grokdeclarator.
30560 (build_compound_literal): Add parameter non_const and build a
30561 C_MAYBE_COSNT_EXPR if applicable.
30562 (grokdeclarator): Take extra parameters expr and
30563 expr_const_operands. Track expressions used in declaration
30564 specifiers and declarators. Fold array sizes and track whether
30565 they are constant expressions and whether they are integer
30566 constant expressions.
30567 (parser_xref_tag): Set expr and expr_const_operands fields in
30568 return value.
30569 (grokfield): Update call to grokdeclarator.
30570 (start_function): Update call to grokdeclarator.
30571 (build_null_declspecs): Set expr and expr_const_operands fields in
30572 return value.
30573 (declspecs_add_type): Handle expressions in typeof specifiers.
30574 * c-parser.c (c_parser_declspecs): Set expr and
30575 expr_const_operands fields for declaration specifiers.
30576 (c_parser_enum_specifier): Likewise.
30577 (c_parser_struct_or_union_specifier): Likewise.
30578 (c_parser_typeof_specifier): Likewise. Update call to
30579 groktypename. Fold expression as needed. Return expressions with
30580 type instead of adding statements.
30581 (c_parser_attributes): Update calls to c_parser_expr_list.
30582 (c_parser_statement_after_labels): Fold expression before passing
30583 to objc_build_throw_stmt.
30584 (c_parser_condition): Fold expression.
30585 (c_parser_asm_operands): Fold expression.
30586 (c_parser_conditional_expression): Use c_save_expr. Update call
30587 to build_conditional_expr.
30588 (c_parser_alignof_expression): Update call to groktypename.
30589 (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
30590 original_code. Fold expression argument of va_arg. Create
30591 C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
30592 argument to va_arg. Update calls to groktypename. Fold array
30593 index for offsetof. Verify that first argument to
30594 __builtin_choose_expr has integer type.
30595 (c_parser_postfix_expression_after_paren_type): Update calls to
30596 groktypename and build_compound_literal. Handle expressions with
30597 side effects in type name.
30598 (c_parser_postfix_expression_after_primary): Update call to
30599 c_parser_expr_list. Set original_code for calls to
30600 __builtin_constant_p.
30601 (c_parser_expr_list): Take extra parameter fold_p. Fold
30602 expressions if requested.
30603 (c_parser_objc_type_name): Update call to groktypename.
30604 (c_parser_objc_synchronized_statement): Fold expression.
30605 (c_parser_objc_receiver): Fold expression.
30606 (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
30607 (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
30608 c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
30609 * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
30610 (struct c_typespec): Add elements expr and expr_const_operands.
30611 (struct c_declspecs): Add elements expr and expr_const_operands.
30612 (groktypename, build_conditional_expr, build_compound_literal):
30613 Update prototypes.
30614 (in_late_binary_op): Declare.
30615 * c-typeck.c (note_integer_operands): New function.
30616 (in_late_binary_op): New variable.
30617 (decl_constant_value_for_broken_optimization): Move to c-common.c
30618 and rename to decl_constant_value_for_optimization.
30619 (default_function_array_conversion): Do not strip nops.
30620 (default_conversion): Do not call
30621 decl_constant_value_for_broken_optimization.
30622 (build_array_ref): Do not fold result.
30623 (c_expr_sizeof_expr): Fold operand. Use C_MAYBE_CONST_EXPR for
30624 result when operand is a VLA.
30625 (c_expr_sizeof_type): Update call to groktypename. Handle
30626 expressions included in type name. Use C_MAYBE_CONST_EXPR for
30627 result when operand names a VLA type.
30628 (build_function_call): Update call to build_compound_literal.
30629 Only fold result for calls to __builtin_* functions. Strip
30630 NOP_EXPR from INTEGER_CST returned from such functions. Fold
30631 the function designator.
30632 (convert_arguments): Fold arguments. Update call to
30633 convert_for_assignment.
30634 (build_unary_op): Handle increment and decrement of
30635 C_MAYBE_CONST_EXPR. Move lvalue checks for increment and
30636 decrement earlier. Fold operand of increment and decrement.
30637 Handle address of C_MAYBE_CONST_EXPR. Only fold expression being
30638 built for integer operand. Wrap returns that are INTEGER_CSTs
30639 without being integer constant expressions or that have integer
30640 constant operands without being INTEGER_CSTs.
30641 (lvalue_p): Handle C_MAYBE_CONST_EXPR.
30642 (build_conditional_expr): Add operand ifexp_bcp. Track whether
30643 result is an integer constant expression or can be used in
30644 unevaluated parts of one and avoid folding and wrap as
30645 appropriate. Fold operands before possibly doing -Wsign-compare
30646 warnings.
30647 (build_compound_expr): Wrap result for C99 if operands can be used
30648 in integer constant expressions.
30649 (build_c_cast): Update call to digest_init. Do not ignore
30650 overflow from casting floating-point constants to integers. Wrap
30651 results that could be confused with integer constant expressions,
30652 null pointer constants or floating-point constants.
30653 (c_cast_expr): Update call to groktypename. Handle expressions
30654 included in type name.
30655 (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR. Fold
30656 lhs inside possible SAVE_EXPR. Fold RHS before assignment.
30657 Update calls to convert_for_assignment.
30658 (convert_for_assignment): Take new parameter
30659 null_pointer_constant. Do not strip nops or call
30660 decl_constant_value_for_broken_optimization. Set
30661 in_late_binary_op for conversions to boolean.
30662 (store_init_value): Update call to digest_init.
30663 (digest_init): Take new parameter null_pointer_constant. Do not
30664 call decl_constant_value_for_broken_optimization. pedwarn for
30665 initializers not constant expressions. Update calls to
30666 convert_for_assignment.
30667 (constructor_nonconst): New.
30668 (struct constructor_stack): Add nonconst element.
30669 (really_start_incremental_init, push_init_level, pop_init_level):
30670 Handle constructor_nonconst and nonconst element.
30671 (set_init_index): Call constant_expression_warning for array
30672 designators.
30673 (output_init_element): Fold value. Set constructor_nonconst as
30674 applicable. pedwarn for initializers not constant expressions.
30675 Update call to digest_init. Call constant_expression_warning
30676 where constant initializers are required.
30677 (process_init_element): Use c_save_expr.
30678 (c_finish_goto_ptr): Fold expression.
30679 (c_finish_return): Fold return value. Update call to
30680 convert_for_assignment.
30681 (c_start_case): Fold switch expression.
30682 (c_process_expr_stmt): Fold expression.
30683 (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
30684 ensure statement expression is not evaluated in constant expression.
30685 (build_binary_op): Track whether results are integer constant
30686 expressions or may occur in such, disable folding and wrap results
30687 as applicable. Fold operands for -Wsign-compare warnings unless
30688 in_late_binary_op.
30689 (c_objc_common_truthvalue_conversion): Handle results folded to
30690 integer constants that are not integer constant expressions.
30691 * doc/extend.texi: Document when typeof operands are evaluated,
30692 that condition of __builtin_choose_expr is an integer constant
30693 expression, and more about use of __builtin_constant_p in
30694 initializers.
30695
30696 2009-03-29 Richard Guenther <rguenther@suse.de>
30697
30698 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
30699 propagate addresses of array references.
30700
30701 2009-03-29 Steven Bosscher <steven@gcc.gnu.org>
30702
30703 * regmove.c (perhaps_ends_bb_p): Remove.
30704 (optimize_reg_copy_1): Don't call perhaps_ends_bb_p. Get basic block
30705 from INSN and check that the main loop stays within that basic block.
30706 (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
30707 (regmove_forward_pass): Split out from regmove_optimize. Use
30708 FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
30709 (regmove_backward_pass): Split out from regmove_optimize. Use
30710 FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
30711 (regmove_optimize): Simplify.
30712
30713 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
30714
30715 PR target/39545
30716 * config/i386/i386.c (classify_argument): Ignore flexible array
30717 member in struct and warn ABI change.
30718
30719 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
30720
30721 * config/i386/i386-protos.h (ix86_agi_dependent): New.
30722
30723 * config/i386/i386.c (ix86_agi_dependent): Rewrite.
30724 (ix86_adjust_cost): Updated.
30725
30726 2009-03-29 Jan Hubicka <jh@suse.cz>
30727
30728 PR middle-end/28850
30729 * tree-pass.h (pass_cleanup_eh): New function.
30730 (remove_unreachable_regions): Break code handling RTL
30731 to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
30732 that can not be reached by runtime.
30733 (can_be_reached_by_runtime): New function.
30734 (label_to_region_map): New function.
30735 (num_eh_regions): New function.
30736 (rtl_remove_unreachable_regions): New function.
30737 (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
30738 (remove_eh_region): New function.
30739 * except.h: Include sbitmap and vecprim.
30740 (remove_eh_region, remove_unreachable_regions, label_to_region_map,
30741 num_eh_regions): Declare.
30742 * passes.c (init_optimization_passes): Schedule cleanup_eh.
30743 * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
30744 * tree-eh.c (tree_remove_unreachable_handlers): New function.
30745 (tree_empty_eh_handler_p): New function.
30746 (cleanup_empty_eh): New function.
30747 (cleanup_eh): New function.
30748 (pass_cleanup_eh): New function.
30749
30750 2009-03-29 Jan Hubicka <jh@suse.cz>
30751
30752 * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
30753 for removed regions.
30754
30755 2009-03-29 Jan Hubicka <jh@suse.cz>
30756
30757 * except.c (dump_eh_tree): Dump all datastructures.
30758
30759 2009-03-29 Jan Hubicka <jh@suse.cz>
30760
30761 * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
30762 (duplicate_eh_regions_1): Likewise.
30763 (duplicate_eh_regions): Likewise; cleanup code gorwing the region
30764 vector; call EH verification.
30765 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
30766 Be ready for region being removed.
30767
30768 2009-03-29 Jan Hubicka <jh@suse.cz>
30769
30770 * bitmap.c (bitmap_last_set_bit): New function.
30771 * bitmap.h (bitmap_last_set_bit): Declare.
30772
30773 2009-03-29 David Ayers <ayers@fsfe.org>
30774
30775 PR objc/27377
30776 * c-typeck.c (build_conditional_expr): Emit ObjC warnings
30777 by calling objc_compare_types and surpress warnings about
30778 incompatible C pointers that are compatible ObjC pointers.
30779
30780 2009-03-29 Adam Nemet <anemet@caviumnetworks.com>
30781
30782 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
30783 call initialize_inline_failed.
30784 (initialize_inline_failed): Move it from here ...
30785 * cgraph.c (initialize_inline_failed): ... to here.
30786 (cgraph_create_edge): Call initialize_inline_failed rather than
30787 setting inline_failed directly.
30788
30789 2009-03-29 Ben Elliston <bje@au.ibm.com>
30790
30791 PR target/32542
30792 * sysv4.opt (msdata): Improve comment.
30793 * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
30794 * sysv4.h (SVR4_ASM_SPEC): Likewise.
30795
30796 2009-03-29 Ben Elliston <bje@au.ibm.com>
30797
30798 PR target/30451
30799 * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
30800 load and store attributes.
30801
30802 2009-03-29 Ben Elliston <bje@au.ibm.com>
30803
30804 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
30805 (ix86_init_builtins): Add built-in function __builtin_huge_valq.
30806 (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
30807 * doc/extend.texi (X86 Built-in Functions): Add index entries for
30808 __builtin_infq and __builtin_huge_valq.
30809
30810 2009-03-28 Anatoly Sokolov <aesok@post.ru>
30811
30812 * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
30813 atmega8m1 devices.
30814 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
30815 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
30816
30817 2009-03-28 Xinliang David Li <davidxl@google.com>
30818
30819 * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
30820 (do_dbg_cnt): New function.
30821
30822 2009-03-28 Jan Hubicka <jh@suse.cz>
30823
30824 Merge from pretty-ipa:
30825
30826 2009-03-27 Jan Hubicka <jh@suse.cz>
30827
30828 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
30829 * tree-pass.h (function_called_by_processed_nodes_p): Declare.
30830 * passes.c (function_called_by_processed_nodes_p): New.
30831 * ipa-pure-const.c (check_call): Fix handling of operands.
30832 (analyze_function): Dump debug output for skipped bodies.
30833 (local_pure_const): Use function_called_by_processed_nodes_p.
30834 * dwarf2out.c (reference_to_unused): Use output.
30835 * passes.c (do_per_function_toporder): Likewise.
30836
30837 2008-11-12 Jan Hubicka <jh@suse.cz>
30838
30839 * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
30840 * ipa-pure-const.c (funct_state_d): Add can throw field; make
30841 state_set_in_source enum
30842 (check_decl): Ignore memory tags; do not set fake looping flags;
30843 dump diagnostics.
30844 (check_operand, check_tree, check_rhs_var, check_lhs_var,
30845 get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
30846 (check_call, analyze_function): Rewrite.
30847 (check_stmt): New.
30848 (add_new_function): Update call of analyze_function.
30849 (generate_summary): Add call of analyze_function.
30850 (propagate): Propagate can_throw; handle state_set_in_source correctly.
30851 (local_pure_const): New function.
30852 (pass_local_pure_const): New pass.
30853 * ipa-inline.c (inline_transform): Set after_inlining.
30854 * tree-eh.c (stmt_can_throw_external): New.
30855 * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
30856 work with aliasing built.
30857 * tree-flow.h (stmt_can_throw_external): New.
30858 * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
30859 and local pure/const pass in early and late optimization queue.
30860
30861 2009-03-28 Martin Jambor <mjambor@suse.cz>
30862
30863 * fold-const.c (get_pointer_modulus_and_residue): New parameter
30864 allow_func_align.
30865 (fold_binary): Allow function decl aligment consideration is the
30866 second argument is integer constant one.
30867 * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
30868 (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
30869 with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
30870
30871 2009-03-28 Jan Hubicka <jh@suse.cz>
30872
30873 * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
30874 * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
30875 * function.h (rtl_data): Add nothrow flag.
30876 * except.c (set_nothrow_function_flags): Use crtl->nothrow;
30877 set DECL_NOTHROW for AVAILABLE functions.
30878
30879 2009-03-28 Jakub Jelinek <jakub@redhat.com>
30880
30881 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
30882 following vector keyword has expansion starting with pixel or bool
30883 keyword, expand vector to __vector and pixel or bool to __pixel or
30884 __bool.
30885
30886 PR c++/39554
30887 * opts.c (warning_disallowed_functions, warn_disallowed_functions,
30888 warn_if_disallowed_function_p): Removed.
30889 (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
30890 * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
30891 warning_if_disallowed_function_p.
30892 * flags.h (warn_if_disallowed_function_p,
30893 warn_disallowed_functions): Removed.
30894 * common.opt (Wdisallowed-function-list=): Removed.
30895 * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
30896
30897 2009-03-28 Richard Guenther <rguenther@suse.de>
30898
30899 PR tree-optimization/38723
30900 * tree-ssa-pre.c (compute_avail): Add all default definitions to
30901 the entry block.
30902
30903 2009-03-28 Jan Hubicka <jh@suse.cz>
30904
30905 * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
30906 test introduced by my previous patch.
30907
30908 2009-03-28 Richard Guenther <rguenther@suse.de>
30909
30910 * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
30911 the PHIs value undefined.
30912
30913 2009-03-28 Jan Hubicka <jh@suse.cz>
30914
30915 * tree-pass.h (pass_fixup_cfg): New pass.
30916 * ipa-inline.c (inline_transform): Set
30917 always_inline_functions_inlined/after_inlining.
30918 * tree-optimize.c (execute_fixup_cfg): Do not set them here.
30919 (pass_fixup_cfg): New pass.
30920 * passes.c (init_optimization_passes): Add fixup_cfg.
30921
30922 2009-03-28 Richard Guenther <rguenther@suse.de>
30923
30924 PR tree-optimization/38458
30925 * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
30926 argument use the arguments copy-of value.
30927
30928 2009-03-28 Richard Guenther <rguenther@suse.de>
30929
30930 PR tree-optimization/38180
30931 * tree-ssa-ccp.c (get_default_value): Simplify.
30932 (likely_value): Likewise.
30933 (surely_varying_stmt_p): Properly handle VOP case.
30934 (ccp_initialize): Likewise.
30935 (ccp_fold): Handle propagating through *&.
30936 (fold_const_aggregate_ref): Also handle decls.
30937
30938 2009-03-28 Jan Hubicka <jh@suse.cz>
30939
30940 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
30941 * cgraph.h (cgraph_node): Likewise.
30942 * cgraphunit.c (cgraph_process_new_functions): Set process flag.
30943 (cgraph_reset_node): Use process flag.
30944 (cgraph_mark_functions_to_output): Likewise.
30945 (cgraph_expand_function): Likewise.
30946 (cgraph_expand_all_functions): Likewise.
30947 (cgraph_output_in_order): Likewise.
30948 * dwarf2out.c (reference_to_unused): Likewise.
30949 * passes.c do_per_function_toporder): Likewise.
30950
30951 2009-03-28 Jan Hubicka <jh@suse.cz>
30952
30953 Bring from lto-branch:
30954
30955 2008-09-03 Doug Kwan <dougkwan@google.com>
30956
30957 * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
30958 enums instead of reason strings.
30959 * cgraph.c (cgraph_create_edge): Same.
30960 (cgraph_inline_failed_string): New function.
30961 * cgraph.h (cgraph_inline_failed_t): New enum type.
30962 (cgraph_inline_failed_string): New prototype.
30963 (struct cgraph_edge): Change type of INLINED_FAILED from constant
30964 char pointer to cgraph_inline_failed_t.
30965 (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
30966 (cgraph_default_inline_p): Ditto.
30967 * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
30968 to cgraph_inline_failed_t pointer.
30969 * cif-code.def: New file.
30970 * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
30971 reason string.
30972 (cgraph_check_inline_limits): Change type of REASON to pointer to
30973 cgraph_inline_failed_t. Replace reason strings with enums.
30974 (cgraph_default_inline_p): Ditto.
30975 (cgraph_recursive_inlining_p): Ditto.
30976 (update_caller_keys): Change type of FAILED_REASON to
30977 cgraph_inline_failed_t.
30978 (cgraph_set_inline_failed): Change type of REASON to pointer to
30979 cgraph_inline_failed_t. Call cgraph_inline_failed_string to
30980 convert enums to strings for text output.
30981 (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
30982 to be of type cgraph_inline_failed_t. Replace reason strings with
30983 enums. Call cgraph_inline_failed_string to covert enums
30984 to strings for text output.
30985 (cgraph_decide_inlining): Replace reason strings with enums.
30986 (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
30987 to cgraph_inline_failed_t type. Call cgraph_inline_failed_string
30988 for text output.
30989 * tree-inline.c (expand_call_inline): Change type of REASON
30990 to cgraph_inline_failed_t. Replace reason strings with enums.
30991 Call cgraph_inline_failed_string for text output.
30992 * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
30993 (cgraph.o): Ditto.
30994
30995 2009-03-28 Jan Hubicka <jh@suse.cz>
30996
30997 * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
30998 cgraph_clone_node): Remove master clone handling.
30999 (cgraph_is_master_clone, cgraph_master_clone): Remove.
31000 * cgraph.h (master_clone): Remove.
31001 (cgraph_is_master_clone, cgraph_master_clone): Remove.
31002 * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
31003 (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
31004
31005 2009-03-28 Jan Hubicka <jh@suse.cz>
31006
31007 * cgraph.c (cgraph_function_body_availability): Functions declared
31008 inline are always safe to assume that it is not going to be replaced.
31009
31010 2009-03-28 Richard Guenther <rguenther@suse.de>
31011
31012 PR tree-optimization/38513
31013 * tree-ssa-pre.c (eliminate): Remove redundant stores.
31014 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
31015 EXC_PTR_EXPR and FILTER_EXPR.
31016 (get_ref_from_reference_ops): Likewise.
31017
31018 2009-03-28 Richard Guenther <rguenther@suse.de>
31019
31020 PR tree-optimization/38968
31021 * tree-vect-analyze.c (vect_compute_data_ref_alignment):
31022 Use FLOOR_MOD_EXPR to compute misalignment.
31023
31024 2009-03-28 Richard Guenther <rguenther@suse.de>
31025
31026 PR tree-optimization/37795
31027 * tree.h (combine_comparisons): Declare.
31028 * fold-const.c (combine_comparisons): Export.
31029 * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
31030 comparisons.
31031 (ifcombine_iforif): Use combine_comparisons.
31032
31033 2009-03-28 Jan Hubicka <jh@suse.cz>
31034
31035 * tree-eh.c (inlinable_call_p): New function.
31036 (make_eh_edges): Use it.
31037 (verify_eh_edges): Use it.
31038 (stmt_can_throw_external, stmt_can_throw_internal): Use it.
31039 * except.c (reachable_next_level): Add inlinable_function argument
31040 (sjlj_find_directly_reachable_regions): Update.
31041 (add_reachable_handler): Do not set saw_any_handlers.
31042 (reachable_next_level): Handle MUST_NOT_THROW more curefully.
31043 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
31044 Add new inlinable call parameter.
31045 (can_throw_internal, can_throw_external): Update.
31046 * except.h (can_throw_internal_1, can_throw_external_1,
31047 foreach_reachable_handler): Update declaration.
31048
31049 2009-03-28 Joseph Myers <joseph@codesourcery.com>
31050
31051 * config/arm/t-arm-coff, config/h8300/coff.h,
31052 config/i386/i386-aout.h, config/i386/i386-coff.h,
31053 config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
31054 config/pdp11/2bsd.h, config/rs6000/aix41.h,
31055 config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
31056 fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
31057 scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
31058 sys-types.h: Remove.
31059 * Makefile.in: Remove protoize and fixproto support and references
31060 in comments.
31061 (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
31062 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
31063 Remove.
31064 (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
31065 (MOSTLYCLEANFILES): Remove protoize$(exeext) and
31066 unprotoize$(exeext).
31067 (rest.encap): Don't depend on $(STMP_FIXPROTO)
31068 (.PHONY): Don't depend on proto.
31069 (libgcc-support): Don't depend on $(STMP_FIXPROTO).
31070 (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
31071 protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
31072 deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
31073 build/gen-protos.o, build/scan.o, xsys-protos.h,
31074 build/fix-header$(build_exeext), build/fix-header.o,
31075 build/scan-decls.o, fixhdr.ready, stmp-fixproto,
31076 stmp-install-fixproto): Remove.
31077 (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
31078 SYSCALLS.c or fixproto files.
31079 (install-common): Don't install protoize.
31080 (install-headers-tar, install-headers-cpio, install-headers-cp):
31081 Don't depend on $(STMP_FIXPROTO).
31082 (install-mkheaders): Don't depend on $(STMP_FIXPROTO). Don't
31083 install fixproto files or write out fixproto settings.
31084 (uninstall): Don't uninstall protoize.
31085 * config.gcc (use_fixproto): Remove.
31086 (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
31087 i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
31088 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
31089 * config/m32r/t-linux (STMP_FIXPROTO): Remove.
31090 * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
31091 * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
31092 * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
31093 * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
31094 * config/t-svr4 (FIXPROTO_DEFINES): Remove.
31095 * config/t-vxworks (STMP_FIXPROTO): Remove.
31096 * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
31097 STMP_FIXPROTO): Remove.
31098 * config.in, configure: Regenerate.
31099 * crtstuff.c (gid_t, uid_t): Don't undefine.
31100 * doc/install.texi: Change m68k-coff to m68k-elf in example.
31101 (arm-*-coff, arm-*-aout: Remove target entries.
31102 (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
31103 Remove mention of AIX 4.1.
31104 (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
31105 * doc/invoke.texi (Running Protoize): Remove.
31106 * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
31107 (Protoize Caveats): Remove.
31108 * tsystem.h: Update comments on headers assumed to exist.
31109
31110 2009-03-27 Vladimir Makarov <vmakarov@redhat.com>
31111
31112 * genautomata.c: Add a new year to the copyright. Add a new
31113 reference.
31114 (struct insn_reserv_decl): Add comments for member bypass_list.
31115 (find_bypass): Remove.
31116 (insert_bypass): New.
31117 (process_decls): Use insert_bypass.
31118 (output_internal_insn_latency_func): Output all bypasses with the
31119 same input insn in one switch case.
31120
31121 * rtl.def (define_bypass): Describe bypass choice.
31122 * doc/md.texi (define_bypass): Ditto.
31123
31124 2009-03-27 Richard Guenther <rguenther@suse.de>
31125
31126 * gimplify.c (mark_addressable): Export.
31127 * tree-flow.h (mark_addressable): Declare.
31128 * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
31129 * tree-ssa.c (verify_phi_args): Verify that address taken
31130 variables have TREE_ADDRESSABLE set.
31131
31132 2009-03-27 Richard Guenther <rguenther@suse.de>
31133
31134 * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
31135 (build_fold_addr_expr_with_type): ... this. Remove in_fold handling.
31136 Do not mark decls TREE_ADDRESSABLE.
31137 (build_fold_addr_expr): Adjust.
31138 (fold_addr_expr): Remove.
31139 (fold_unary): Use build_fold_addr_expr.
31140 (fold_comparison): Likewise.
31141 (split_address_to_core_and_offset): Likewise.
31142 * coverage.c (tree_coverage_counter_addr): Mark the array decl
31143 TREE_ADDRESSABLE.
31144 * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
31145 (gimplify_modify_expr_to_memcpy): Mark source and destination
31146 addressable.
31147 * omp-low.c (create_omp_child_function): Mark the object decl
31148 TREE_ADDRESSABLE.
31149 (lower_rec_input_clauses): Mark the var we take the address of
31150 TREE_ADDRESSABLE.
31151 (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
31152
31153 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
31154
31155 PR middle-end/39315
31156 * cfgexpand.c (expand_one_stack_var_at): Change alignment
31157 limit to MAX_SUPPORTED_STACK_ALIGNMENT.
31158
31159 2009-03-27 Richard Guenther <rguenther@suse.de>
31160
31161 PR tree-optimization/39120
31162 * tree-ssa-structalias.c (handle_rhs_call): Fill out return
31163 constraints.
31164 (handle_lhs_call): Process return constraints. Add escape
31165 constraints if necessary.
31166 (handle_const_call): Fill out return constraints. Make nested
31167 case more precise. Avoid consttmp if possible.
31168 (handle_pure_call): Fill out return constraints. Avoid
31169 callused if possible.
31170 (find_func_aliases): Simplify call handling.
31171
31172 2009-03-27 Richard Guenther <rguenther@suse.de>
31173
31174 PR tree-optimization/39120
31175 * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
31176 as a representative.
31177 (solve_graph): Do propagate CALLUSED.
31178 (handle_pure_call): Use a scalar constraint from CALLUSED for
31179 the return value.
31180 (find_what_p_points_to): CALLUSED shall not appear in poins-to
31181 solutions.
31182
31183 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
31184
31185 PR c/39323
31186 * c-common.c (handle_aligned_attribute): Properly check alignment
31187 overflow. Use (1U << i) instead of (1 << i).
31188
31189 * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
31190
31191 * expr.h (get_mem_align_offset): Updated.
31192
31193 * tree.h (tree_decl_common): Change align to "unsigned int" and
31194 move it before pointer_alias_set.
31195
31196 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
31197 Jakub Jelinek <jakub@redhat.com>
31198
31199 PR target/38034
31200 * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
31201 gr_register_operand with gr_reg_or_0_operand.
31202 (cmpxchg_rel_di): Likewise.
31203 (sync_lock_test_and_set<mode>): Likewise.
31204
31205 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
31206
31207 * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
31208 (true_regnum): Likewise.
31209
31210 * rtlanal.c (subreg_info): Moved to ...
31211 * rtl.h (subreg_info): Here. New.
31212 (subreg_get_info): New.
31213
31214 * rtlanal.c (subreg_get_info): Make it extern.
31215
31216 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
31217
31218 PR target/39472
31219 * config/i386/i386.c (ix86_abi): New.
31220 (override_options): Handle -mabi=.
31221 (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
31222 (ix86_call_abi_override): Likewise.
31223 (init_cumulative_args): Likewise.
31224 (function_arg_advance): Likewise.
31225 (function_arg_64): Likewise.
31226 (function_arg): Likewise.
31227 (ix86_pass_by_reference): Likewise.
31228 (ix86_function_value_regno_p): Likewise.
31229 (ix86_build_builtin_va_list_abi): Likewise.
31230 (setup_incoming_varargs_64): Likewise.
31231 (is_va_list_char_pointer): Likewise.
31232 (ix86_init_machine_status): Likewise.
31233 (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
31234 (ix86_function_type_abi): Return enum calling_abi. Rewrite
31235 for 64bit. Replace DEFAULT_ABI with ix86_abi.
31236 (ix86_function_abi): Make it static and return enum calling_abi.
31237 (ix86_cfun_abi): Return enum calling_abi. Replace DEFAULT_ABI
31238 with ix86_abi.
31239 (ix86_fn_abi_va_list): Updated.
31240
31241 * config/i386/i386.h (ix86_abi): New.
31242 (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
31243 (CONDITIONAL_REGISTER_USAGE): Likewise.
31244 (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
31245 (machine_function): Likewise.
31246
31247 * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
31248 with ix86_abi.
31249 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
31250 (STACK_BOUNDARY): Likewise.
31251 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
31252
31253 * config/i386/i386.opt (mabi=): New.
31254
31255 * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
31256 return enum calling_abi.
31257 (ix86_function_type_abi): Likewise.
31258 (ix86_function_abi): Removed.
31259
31260 * doc/invoke.texi: Document -mabi= option for x86.
31261
31262 2009-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
31263
31264 * builtins.c (real_dconstp): Delete.
31265 (fold_builtin_logarithm): Remove inaccurate log(e) special case.
31266
31267 2009-03-27 Dodji Seketeli <dodji@redhat.com>
31268 Jakub Jelinek <jakub@redhat.com>
31269
31270 PR debug/37959
31271 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
31272 (gen_subprogram_die): When a function is explicit, generate the
31273 DW_AT_explicit attribute.
31274 * langhooks.h (struct lang_hooks_for_decls): Add
31275 function_decl_explicit_p langhook.
31276 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
31277 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
31278
31279 2009-03-27 Jakub Jelinek <jakub@redhat.com>
31280
31281 * builtins.c (fold_builtin_memory_op): Optimize memmove
31282 into memcpy if we can prove source and destination don't overlap.
31283
31284 * tree-inline.c: Include gt-tree-inline.h.
31285 (clone_fn_id_num): New variable.
31286 (clone_function_name): New function.
31287 (tree_function_versioning): Use it.
31288 * Makefile.in (GTFILES): Add tree-inline.c.
31289
31290 2009-03-27 Mark Mitchell <mark@codesourcery.com>
31291
31292 * BASE-VER: Change to 4.5.0.
31293
31294 2009-03-27 Xinliang David Li <davidxl@google.com>
31295
31296 PR tree-optimization/39557
31297 * tree-ssa.c (warn_uninitialized_vars): free postdom info.
31298
31299 2009-03-27 Xinliang David Li <davidxl@google.com>
31300
31301 PR tree-optimization/39548
31302 * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
31303 candidate check.
31304
31305 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
31306
31307 * c-common.c (pointer_int_sum): Use %wd on return from
31308 tree_low_cst.
31309
31310 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
31311
31312 * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
31313 on return from tree_low_cst.
31314
31315 2009-03-27 Andrew Pinski <andrew_pinski@playstation.sony.com>
31316
31317 PR c++/36799
31318 * ginclude/stdarg.h (va_copy): Define also for
31319 __GXX_EXPERIMENTAL_CXX0X__.
31320
31321 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
31322
31323 PR c++/35652
31324 * builtins.h (c_strlen): Do not warn here.
31325 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
31326 * c-common.c (pointer_int_sum): Take an explicit location.
31327 Warn about offsets out of bounds.
31328 * c-common.h (pointer_int_sum): Adjust declaration.
31329
31330 2009-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31331
31332 * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
31333 markup glitch.
31334
31335 2009-03-26 Jakub Jelinek <jakub@redhat.com>
31336
31337 PR c++/39554
31338 * opts.c (warn_if_disallowed_function_p): Don't assume
31339 get_callee_fndecl must return non-NULL.
31340
31341 2009-03-26 Vladimir Makarov <vmakarov@redhat.com>
31342
31343 PR rtl-optimization/39522
31344 * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
31345 when reg_reloaded_valid is set.
31346
31347 2009-03-26 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31348
31349 * config/spu/divv2df3.c: New file.
31350 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
31351 (DPBIT_FUNCS): Filter out _div_df.
31352
31353 2009-03-26 Bernd Schmidt <bernd.schmidt@analog.com>
31354
31355 * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
31356 a jump insn, count that jump in the distance to the loop start.
31357
31358 2009-03-25 Kaz Kojima <kkojima@gcc.gnu.org>
31359
31360 PR target/39523
31361 * config/sh/sh.c (calc_live_regs): Fix condition for global
31362 registers except PIC_OFFSET_TABLE_REGNUM.
31363
31364 2009-03-25 Kai Tietz <kai.tietz@onevision.com>
31365
31366 PR/39518
31367 * doc/invoke.texi (-mconsole): New.
31368 (-mcygwin): New.
31369 (-mno-cygwin): New.
31370 (-mdll): New.
31371 (-mnop-fun-dllimport): New.
31372 (-mthread): New.
31373 (-mwin32): New.
31374 (-mwindows): New.
31375 (sub section "i386 and x86-64 Windows Options"): New.
31376
31377 2009-03-25 Ralf Corsépius <ralf.corsepius@rtems.org>
31378
31379 * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
31380 * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
31381
31382 2009-03-25 Richard Guenther <rguenther@suse.de>
31383
31384 PR middle-end/39497
31385 * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
31386 of -Wno-error.
31387
31388 2009-03-25 Andrey Belevantsev <abel@ispras.ru>
31389
31390 * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
31391 neither of haifa/selective schedulers are working.
31392
31393 2009-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31394
31395 * doc/invoke.texi (Debugging Options): Fix description of
31396 -fno-merge-debug-strings.
31397
31398 2009-03-24 Hans-Peter Nilsson <hp@axis.com>
31399
31400 * config/cris/libgcc.ver: New version-script.
31401 * config/cris/t-linux (SHLIB_MAPFILES): Use it.
31402
31403 * configure.ac <GAS features, nop mnemonic>: Add pattern
31404 crisv32-*-* for "nop".
31405 <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
31406 * configure: Regenerate.
31407
31408 2009-03-24 Ira Rosen <irar@il.ibm.com>
31409
31410 PR tree-optimization/39529
31411 * tree-vect-transform.c (vect_create_data_ref_ptr): Call
31412 mark_sym_for_renaming for the tag copied to the new vector
31413 pointer.
31414
31415 2009-03-24 Arthur Loiret <aloiret@debian.org>
31416
31417 * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
31418 * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
31419 EXTRA_SPEC_FUNCTIONS.
31420 (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
31421 * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
31422 * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
31423 -march and -mtune options.
31424
31425 2009-03-24 Ralf Corsépius <ralf.corsepius@rtems.org>
31426
31427 * config/m68k/t-rtems: Add m5329 multilib.
31428
31429 2009-03-24 Dodji Seketeli <dodji@redhat.com>
31430 Jakub Jelinek <jakub@redhat.com>
31431
31432 PR debug/39524
31433 * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
31434 nodes.
31435
31436 2009-03-23 Jakub Jelinek <jakub@redhat.com>
31437
31438 PR c/39495
31439 * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
31440 instead of c_parser_expression_conv, if original_code isn't one of the
31441 4 allowed comparison codes, fail.
31442
31443 2009-03-23 Richard Guenther <rguenther@suse.de>
31444
31445 * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
31446 * tree.h (struct tree_type): Likewise.
31447 * reload.h (struct insn_chain): Likewise.
31448 * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
31449 * function.h (struct function): Likewise.
31450 * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
31451
31452 2009-03-23 Jakub Jelinek <jakub@redhat.com>
31453
31454 PR tree-optimization/39516
31455 * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
31456
31457 2009-03-23 Bingfeng Mei <bmei@broadcom.com>
31458
31459 * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
31460 should be set true if BITS_PER_WORD of target is bigger than 32
31461
31462 2009-03-22 Hans-Peter Nilsson <hp@axis.com>
31463
31464 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
31465 Translate -B-options to -rpath-link. Correct existing
31466 rpath-link and conditionalize on !nostdlib.
31467
31468 2009-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31469
31470 * doc/extend.texi (Function Attributes, Variable Attributes):
31471 Fix typos.
31472 * doc/invoke.texi (Debugging Options, Optimize Options)
31473 (i386 and x86-64 Options, MCore Options): Likewise.
31474
31475 2009-03-20 Jakub Jelinek <jakub@redhat.com>
31476
31477 PR debug/37890
31478 * dwarf2out.c (gen_namespace_die): Add context_die argument and use
31479 it for block local namespace aliases.
31480 (gen_decl_die): Pass context_die to gen_namespace_die.
31481
31482 2009-03-19 Jakub Jelinek <jakub@redhat.com>
31483
31484 PR c/39495
31485 * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
31486 minimum or maximum value.
31487
31488 2009-03-19 Alexandre Oliva <aoliva@redhat.com>
31489
31490 * reginfo.c (globalize_reg): Recompute derived reg sets.
31491
31492 2009-03-19 Ozkan Sezer <sezeroz@gmail.com>
31493
31494 PR target/39063
31495 * libgcc2.c (mprotect): Do not use signed arguments for
31496 VirtualProtect, use DWORD arguments. Also fix the 'may
31497 be used uninitialized' warning for the np variable.
31498
31499 2009-03-19 Jakub Jelinek <jakub@redhat.com>
31500
31501 PR target/39496
31502 * config/i386/i386.c (ix86_function_regparm): Don't optimize local
31503 functions using regparm calling conventions when not optimizing.
31504 (ix86_function_sseregparm): Similarly for sseregparm calling
31505 conventions.
31506
31507 2009-03-19 Li Feng <nemokingdom@gmail.com>
31508
31509 PR middle-end/39500
31510 * tree-data-ref.c (analyze_subscript_affine_affine): There is no
31511 dependence if the first conflict is after niter iterations.
31512
31513 2009-03-19 Hans-Peter Nilsson <hp@axis.com>
31514
31515 PR middle-end/38609
31516 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
31517 functions with dynamic stack-pointer adjustments.
31518
31519 2009-03-19 Ben Elliston <bje@au.ibm.com>
31520
31521 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
31522 option; change to -msdata=data.
31523
31524 2009-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31525
31526 * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
31527 and -fopenmp.
31528
31529 2009-03-18 Eric Botcazou <ebotcazou@adacore.com>
31530
31531 PR target/35180
31532 * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
31533
31534 2009-03-18 Sandra Loosemore <sandra@codesourcery.com>
31535
31536 * doc/invoke.texi (Code Gen Options): Expand discussion of
31537 -fno-common.
31538
31539 2009-03-18 Jakub Jelinek <jakub@redhat.com>
31540
31541 * dse.c (struct group_info): Reorder fields for 64-bit hosts.
31542 * matrix-reorg.c (struct matrix_info): Likewise.
31543 * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
31544 * rtl.h (struct mem_attrs): Likewise.
31545 * df.h (struct df): Likewise.
31546 * tree-data-ref.h (struct data_dependence_relation): Likewise.
31547 * ira-int.h (struct ira_allocno): Likewise.
31548 * df-scan.c (struct df_collection_rec): Likewise.
31549 * ira.c (struct equivalence): Likewise.
31550 * function.c (struct temp_slot): Likewise.
31551 * cfgloop.h (struct loop): Likewise.
31552
31553 PR debug/39485
31554 * function.c (use_register_for_decl): When not optimizing, disregard
31555 register keyword for variables with types containing methods.
31556
31557 2009-03-18 Sebastian Pop <sebastian.pop@amd.com>
31558
31559 PR middle-end/39447
31560 * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
31561 (is_simple_operand): Call contains_component_ref_p before calling data
31562 reference analysis that would fail on COMPONENT_REFs.
31563
31564 * tree-vrp.c (search_for_addr_array): Fix formatting.
31565
31566 2009-03-18 Richard Guenther <rguenther@suse.de>
31567
31568 * tree-vect-transform.c (vect_loop_versioning): Fold the
31569 generated comparisons.
31570 * tree-vectorizer.c (set_prologue_iterations): Likewise.
31571 (slpeel_tree_peel_loop_to_edge): Likewise.
31572
31573 2009-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31574
31575 PR middle-end/37805
31576 * opts.c (print_specific_help): In addition to `undocumented',
31577 accept `separate' and `joined' flags if passed alone. Describe
31578 output by the first matched one of those.
31579 (common_handle_option): Skip over empty strings.
31580 * gcc.c (display_help): Fix help string for `--help='.
31581 * doc/invoke.texi (Option Summary, Overall Options): With
31582 `--help=', classes and qualifiers can both be repeated, but
31583 only the latter can be negated. One should not pass only
31584 negated qualifiers. Fix markup and examples.
31585
31586 Revert
31587 2008-10-14 Jakub Jelinek <jakub@redhat.com>
31588 PR middle-end/37805
31589 * opts.c (common_handle_option): Don't ICE on -fhelp=joined
31590 and -fhelp=separate.
31591
31592 2009-03-17 Jing Yu <jingyu@google.com>
31593
31594 PR middle-end/39378
31595 * function.h (struct rtl_data): Move is_thunk from here...
31596 (struct function): ...to here.
31597 * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
31598 * varasm.c (assemble_start_function): Change is_thunk from crtl to
31599 cfun.
31600 * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
31601 cfun.
31602 (alpha_does_function_need_gp, alpha_start_function): Likewise.
31603 (alpha_output_function_end_prologue): Likewise.
31604 (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
31605 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
31606 (rs6000_output_function_epilogue): Likewise.
31607 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
31608
31609 2009-03-17 Uros Bizjak <ubizjak@gmail.com>
31610
31611 PR target/39482
31612 * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
31613 from different units in a single alternative.
31614 (*truncdfsf_i387): Ditto.
31615 (*truncxfsf2_mixed): Ditto.
31616 (*truncxfdf2_mixed): Ditto.
31617
31618 2009-03-17 Jakub Jelinek <jakub@redhat.com>
31619
31620 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
31621 non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
31622
31623 PR debug/39474
31624 * tree-ssa-live.c (remove_unused_locals): Don't remove local
31625 unused non-artificial variables when not optimizing.
31626
31627 PR debug/39471
31628 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
31629 DW_TAG_imported_module even if decl is IMPORTED_DECL with
31630 NAMESPACE_DECL in its DECL_INITIAL.
31631
31632 PR middle-end/39443
31633 * optabs.c (set_user_assembler_libfunc): New function.
31634 * expr.h (set_user_assembler_libfunc): New prototype.
31635 * c-common.c: Include libfuncs.h.
31636 (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
31637 for memcmp, memset, memcpy, memmove and abort.
31638 * Makefile.in (c-common.o): Depend on libfuncs.h.
31639
31640 PR debug/39412
31641 * dwarf2out.c (gen_inlined_enumeration_type_die,
31642 gen_inlined_structure_type_die, gen_inlined_union_type_die,
31643 gen_tagged_type_instantiation_die): Removed.
31644 (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
31645 do nothing.
31646
31647 2009-03-17 Janis Johnson <janis187@us.ibm.com>
31648
31649 PR testsuite/38526
31650 * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
31651 its use.
31652 (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
31653 (check-parallel-%): Ditto.
31654 (check-consistency): Ditto.
31655
31656 2009-03-17 Kai Tietz <kai.tietz@onevision.com>
31657
31658 * ipa-struct-reorg.c (create_general_new_stmt): Initialize
31659 local variable rhs by NULL_TREE.
31660
31661 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
31662
31663 PR target/39477
31664 * doc/extend.texi: Correct register behavior for regparm on Intel 386.
31665
31666 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
31667
31668 PR target/39476
31669 * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
31670
31671 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
31672
31673 PR target/39473
31674 * config/i386/i386.c (ix86_expand_call): Check extra clobbers
31675 for ms->sysv ABI calls only in 64bit mode.
31676
31677 * config/i386/i386.md (untyped_call): Support 32bit.
31678
31679 2009-03-16 H.J. Lu <hongjiu.lu@intel.com>
31680
31681 * doc/extend.texi: Replace x86_65 with x86_64.
31682
31683 2009-03-16 Jakub Jelinek <jakub@redhat.com>
31684
31685 PR tree-optimization/39455
31686 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
31687 mismatches for POINTER_TYPE_P (type).
31688 (number_of_iterations_le): Likewise.
31689
31690 2009-03-16 Hariharan Sandanagobalane <hariharan@picochip.com>
31691
31692 * config/picochip/picochip.c: Removed profiling support.
31693 * config/picochip/picochip.md: Removed profiling instruction.
31694 * config/picochip/picochip.h: Removed profiling builtin.
31695
31696 2009-03-16 Joseph Myers <joseph@codesourcery.com>
31697
31698 * doc/install.texi (--with-host-libstdcxx): Document.
31699
31700 2009-03-14 Anatoly Sokolov <aesok@post.ru>
31701
31702 PR target/34299
31703 * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
31704 generate a warning if the function name does not begin with
31705 "__vector" and the function has either the 'signal' or 'interrupt'
31706 attribute, from here to ...
31707 (avr_declare_function_name): ...here. New function.
31708 * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
31709 * config/avr/avr-protos.h (avr_declare_function_name): Declare.
31710
31711 2009-03-14 Jakub Jelinek <jakub@redhat.com>
31712
31713 PR bootstrap/39454
31714 * cse.c (fold_rtx): Don't modify original const_arg1 when
31715 canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
31716 separate variable instead.
31717 * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
31718 from out of range shift counts.
31719 (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
31720
31721 2009-03-13 Catherine Moore <clm@codesourcery.com>
31722
31723 * config/i386/x-mingw32 (host-mingw32.o): Replace
31724 diagnostic.h with $(DIAGNOSTIC_H).
31725
31726 2009-03-12 Jakub Jelinek <jakub@redhat.com>
31727
31728 PR target/39431
31729 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
31730 predicate.
31731 * config/i386/sync.md (sync_compare_and_swap<mode>,
31732 sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
31733 if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
31734 into a register.
31735 (sync_double_compare_and_swapdi_pic,
31736 sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
31737 cmpxchg8b_pic_memory_operand instead of just memory_operand.
31738
31739 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
31740
31741 PR target/39445
31742 * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
31743
31744 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
31745
31746 PR target/39327
31747 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
31748 (avx_addsubv4df3): Likewise.
31749 (*avx_addsubv4sf3): Likewise.
31750 (sse3_addsubv4sf3): Likewise.
31751
31752 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
31753
31754 PR target/38824
31755 * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
31756
31757 2009-03-12 Vladimir Makarov <vmakarov@redhat.com>
31758
31759 PR debug/39432
31760 * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
31761 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
31762 registers for allocnos created from user-defined variables.
31763
31764 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31765
31766 PR target/39181
31767 * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
31768 of non-integer mode as well.
31769
31770 2009-03-11 Adam Nemet <anemet@caviumnetworks.com>
31771
31772 * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
31773 for functions for which the parameter types are unknown.
31774
31775 2009-03-11 Jakub Jelinek <jakub@redhat.com>
31776
31777 PR target/39137
31778 * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
31779 * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
31780 * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
31781 * config/i386/i386.c (ix86_local_alignment): For
31782 -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
31783 long long variables on the stack to avoid dynamic realignment.
31784 Allow the first argument to be a decl rather than type.
31785 * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
31786
31787 2009-03-11 Nick Clifton <nickc@redhat.com>
31788
31789 PR target/5362
31790 * config/mcore/mcore.opt: Remove deprecated m4align and m8align
31791 options.
31792 Add description to mno-lsim option.
31793 * config/mcore/mcore.h: Remove comment about deprecated m4align
31794 option.
31795 (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
31796 * doc/invoke.texi: Add description of mno-lsim and
31797 mstack-increment options.
31798
31799 * config/fr30/fr30.opt: Document the -mno-lsim option.
31800 * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
31801 and -mno-lsim options.
31802
31803 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31804
31805 * fold-const.c (fold_comparison): Only call fold_inf_compare
31806 if the mode supports infinities.
31807
31808 2009-03-11 Jason Merrill <jason@redhat.com>
31809
31810 PR debug/39086
31811 * tree-nrv.c (tree_nrv): Don't do this optimization if the front
31812 end already did. Notice GIMPLE_CALL modifications of the result.
31813 Don't copy debug information from an ignored decl or a decl from
31814 another function.
31815
31816 2009-03-10 Richard Guenther <rguenther@suse.de>
31817 Nathan Froyd <froydnj@codesourcery.com>
31818
31819 PR middle-end/37850
31820 * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
31821 (__divMODE3): Likewise.
31822
31823 2009-03-09 Jakub Jelinek <jakub@redhat.com>
31824
31825 PR tree-optimization/39394
31826 * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
31827 DECL_SIZE_UNIT of variable length FIELD_DECLs.
31828
31829 2009-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31830
31831 * recog.c (verfiy_changes): Disallow renaming of hard regs in
31832 inline asms for register asm ("") declarations.
31833
31834 2009-03-09 Eric Botcazou <ebotcazou@adacore.com>
31835
31836 * fold-const.c (fold_unary): Fix comment.
31837
31838 2009-03-07 Jan Hubicka <jh@suse.cz>
31839
31840 PR target/39361
31841 * tree-inline.c (setup_one_parameter): Do replacement of const
31842 argument by constant in SSA form.
31843
31844 2009-03-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31845
31846 PR middle-end/38028
31847 * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
31848 determine alignment passed to assign_stack_local.
31849 (assign_parms_unsplit_complex): Likewise.
31850 * except.c (sjlj_build_landing_pads): Likewise.
31851
31852 2009-03-06 Jakub Jelinek <jakub@redhat.com>
31853
31854 PR middle-end/39360
31855 * tree-flow.h (add_referenced_var): Return bool instead of void.
31856 * tree-dfa.c (add_referenced_var): Return result of
31857 referenced_var_check_and_insert call.
31858 * tree-inline.c (expand_call_inline): Call add_referenced_var instead
31859 of referenced_var_check_and_insert.
31860
31861 PR debug/39372
31862 * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
31863 (gen_variable_die): Emit DW_AT_location on abstract static variable's
31864 DIE, don't emit it if abstract origin already has it.
31865 * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
31866 BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
31867
31868 2009-03-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
31869
31870 * genpreds.c (needs_variable): Fix parentheses at variable name
31871 detection.
31872 (write_tm_constrs_h): Indent generated code.
31873
31874 2009-03-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31875
31876 * doc/extend.texi (Function Attributes): Add documentation
31877 for isr attributes.
31878
31879 2009-03-06 Jakub Jelinek <jakub@redhat.com>
31880
31881 PR debug/39387
31882 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
31883 take locus from its DECL_SOURCE_LOCATION instead of input_location.
31884
31885 2009-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
31886
31887 * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
31888 the loop as bad.
31889
31890 2009-03-05 Jakub Jelinek <jakub@redhat.com>
31891
31892 PR debug/39379
31893 * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
31894 with blocks containing IMPORTED_DECLs in BLOCK_VARS.
31895
31896 2009-03-05 Uros Bizjak <ubizjak@gmail.com>
31897
31898 * config/i386/i386.md (R8_REG, R9_REG): New constants.
31899 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
31900 constants instead of magic numbers.
31901 (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
31902 (QI_REG_P): Ditto.
31903 * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
31904 (x86_64_ms_abi_int_parameter_registers): Ditto.
31905 (x86_64_int_return_registers): Ditto.
31906 (ix86_maybe_switch_abi): Ditto.
31907 (ix86_expand_call): Ditto for clobbered_registers array.
31908 (ix86_hard_regno_mode_ok): Ditto.
31909 (x86_extended_QIreg_mentioned_p): Ditto.
31910
31911 2009-03-05 J"orn Rennecke <joern.rennecke@arc.com>
31912
31913 PR tree-optimization/39349
31914 * cse.c (cse_insn): Fix loop to stop at VOIDmode.
31915
31916 * combine.c (gen_lowpart_for_combine): Use omode when generating
31917 clobber.
31918
31919 2009-03-04 J"orn Rennecke <joern.rennecke@arc.com>
31920
31921 PR rtl-optimization/39235
31922 * loop-iv.c (get_simple_loop_desc): Use XCNEW.
31923
31924 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
31925
31926 * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
31927
31928 2009-03-04 Richard Guenther <rguenther@suse.de>
31929
31930 PR tree-optimization/39362
31931 * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
31932 that occur in abnormal PHIs should be varying.
31933
31934 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
31935
31936 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
31937 Extend comments.
31938 (simple_iv): Take loop as an argument instead of statement.
31939 * tree-scalar-evolution.h (simple_iv): Declaration changed.
31940 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
31941 to simple_iv.
31942 * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
31943 Ditto.
31944 * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
31945 * matrix-reorg.c (analyze_transpose): Ditto.
31946 * tree-data-ref.c (dr_analyze_innermost): Ditto.
31947 * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
31948 * tree-predcom.c (ref_at_iteration): Ditto.
31949 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
31950
31951 2009-03-04 Richard Guenther <rguenther@suse.de>
31952
31953 PR tree-optimization/39358
31954 * tree-ssa-structalias.c (do_sd_constraint): Fix check for
31955 escaped_id and callused_id.
31956 (solve_graph): Likewise.
31957
31958 2009-03-04 Richard Guenther <rguenther@suse.de>
31959
31960 PR tree-optimization/39339
31961 * tree-sra.c (try_instantiate_multiple_fields): Make it
31962 no longer ICE on the above.
31963
31964 2009-03-03 Joseph Myers <joseph@codesourcery.com>
31965
31966 * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
31967 that fits within Pmode.
31968
31969 2009-03-03 Steve Ellcey <sje@cup.hp.com>
31970
31971 PR middle-end/10109
31972 * tm.texi (LIBCALL_VALUE): Update description.
31973
31974 2009-03-03 Steve Ellcey <sje@cup.hp.com>
31975
31976 PR middle-end/34443
31977 * doc/extend.texi (section): Update description.
31978
31979 2009-03-03 H.J. Lu <hongjiu.lu@intel.com>
31980
31981 PR middle-end/39345
31982 * tree-inline.c (remapped_type): New.
31983 (can_be_nonlocal): Call remapped_type instead of remap_type.
31984
31985 2009-03-03 Jakub Jelinek <jakub@redhat.com>
31986
31987 PR fortran/39354
31988 * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
31989 TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
31990
31991 2009-03-03 Richard Guenther <rguenther@suse.de>
31992
31993 PR middle-end/39272
31994 * tree.c (tree_nonartificial_location): New function.
31995 * tree.h (tree_nonartificial_location): Declare.
31996 * builtins.c (expand_builtin_memory_chk): Provide location
31997 of the call location for artificial function pieces.
31998 (maybe_emit_chk_warning): Likewise.
31999 (maybe_emit_sprintf_chk_warning): Likewise.
32000 (maybe_emit_free_warning): Likewise.
32001 * expr.c (expand_expr_real_1): Likewise.
32002
32003 2009-03-03 Jakub Jelinek <jakub@redhat.com>
32004
32005 PR tree-optimization/39343
32006 * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
32007 COMPONENT_REF t has ARRAY_TYPE.
32008
32009 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
32010
32011 PR middle-end/39335
32012 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
32013 when the type precision of the induction variable should be
32014 larger than the type precision of nit.
32015 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
32016 * graphite.c (graphite_loop_normal_form): Same.
32017 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
32018
32019 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
32020
32021 * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
32022 (*call_1_rex64_ms_sysv): Use named constants instead of magic
32023 numbers to describe clobbered registers.
32024 (*call_value_0_rex64_ms_sysv): Ditto.
32025 * config/i386/mmx.md (mmx_emms): Ditto.
32026 (mmx_femms): Ditto.
32027
32028 2009-03-02 Richard Sandiford <rdsandiford@googlemail.com>
32029
32030 * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
32031 of ABI_64.
32032
32033 2009-03-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32034
32035 * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
32036 (spu_section_type_flags): New function.
32037
32038 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
32039
32040 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
32041 reg_class_contents of FLOAT_REGS into a temporary.
32042
32043 2009-03-02 Richard Guenther <rguenther@suse.de>
32044 Ira Rosen <irar@il.ibm.com>
32045
32046 PR tree-optimization/39318
32047 * tree-vect-transform.c (vectorizable_call): Transfer the EH region
32048 information to the vectorized statement.
32049
32050 2009-03-01 Uros Bizjak <ubizjak@gmail.com>
32051
32052 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
32053 variable. Use defined names instead of magic constants for REX SSE
32054 registers.
32055
32056 2009-03-01 Richard Guenther <rguenther@suse.de>
32057
32058 PR tree-optimization/39331
32059 * omp-low.c (lower_send_shared_vars): Do not receive new
32060 values for the reference of DECL_BY_REFERENCE parms or results.
32061
32062 2009-03-01 Jan Hubicka <jh@suse.cz>
32063
32064 PR debug/39267
32065 * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
32066 BLOCK_NONLOCALIZED_VAR): New macros.
32067 (tree_block): Add nonlocalized_vars.
32068 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
32069 gen_decl_die): Add origin argument. Allow generation of die with
32070 origin at hand only.
32071 (gen_member_die, gen_type_die_with_usage, force_decl_die,
32072 declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
32073 of gen_*.
32074 (gen_block_die): Fix checking for unused blocks.
32075 (process_scope_var): Break out from .... ; work with origins only.
32076 (decls_for_scope) ... here; process nonlocalized list.
32077 (dwarf2out_ignore_block): Look for nonlocalized vars.
32078 * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
32079 vars.
32080 (dump_scope_block): Dump them.
32081 * tree-inline.c (remap_decls): Handle nonlocalized vars.
32082 (remap_block): Likewise.
32083 (can_be_nonlocal): New predicate.
32084 (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
32085
32086 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32087
32088 * configure: Regenerate.
32089
32090 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32091
32092 * optc-gen.awk: No need to duplicate option flags twice.
32093 Reuse help texts for duplicate options which do not have any.
32094
32095 * gcc.c (display_help): Document --version.
32096
32097 * gcc.c (main): If print_help_list and verbose_flag, ensure
32098 driver output comes before subprocess output.
32099
32100 * optc-gen.awk: Assign all remaining fields to help string,
32101 space-separated, for multi-line help in *.opt.
32102
32103 * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
32104 -Wno-pedantic-ms-format is for MinGW targets only.
32105
32106 * doc/options.texi (Option file format): Fix bad indentation,
32107 restoring dropped sentence.
32108
32109 2009-02-28 Jan Hubicka <jh@suse.cz>
32110
32111 * tree-inline.c (tree_function_versioning): Output debug info.
32112
32113 2009-02-28 Jan Hubicka <jh@suse.cz>
32114
32115 PR debug/39267
32116 * tree-inline.c (setup_one_parameter): Do not copy propagate
32117 arguments when not optimizing.
32118
32119 2009-02-28 H.J. Lu <hongjiu.lu@intel.com>
32120
32121 PR target/39327
32122 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
32123 (avx_addsubv4df3): Likewise.
32124 (*avx_addsubv4sf3): Likewise.
32125 (sse3_addsubv4sf3): Likewise.
32126 (*avx_addsubv2df3): Likewise.
32127 (sse3_addsubv2df3): Likewise.
32128 (avx_unpckhps256): Correct item selectors.
32129 (avx_unpcklps256): Likewise.
32130 (avx_unpckhpd256): Likewise.
32131 (avx_unpcklpd256): Likewise.
32132
32133 2009-02-28 Jan Hubicka <jh@suse.cz>
32134
32135 * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
32136 static vars.
32137 (copy_arguments_for_versioning): If var is declared don't declare it.
32138 (tree_function_versioning): First setup substitutions and then copy
32139 args.
32140
32141 2009-02-27 Jan Hubicka <jh@suse.cz>
32142
32143 PR debug/39267
32144 * cgraph.h (varpool_output_debug_info): Remove.
32145 * cgraphunit.c (varpool_output_debug_info): Remove.
32146 * dwarf2out.c (deferred_locations_struct): New struct
32147 (deferred_locations): New type.
32148 (deferred_locations_list): New static var.
32149 (deffer_location): New function.
32150 (gen_variable_die): Use it.
32151 (decls_for_scope): Output info on local static vars.
32152 (dwarf2out_finish): Process deferred locations.
32153 * varpool.c (varpool_output_debug_info): Remove.
32154
32155 2009-02-27 Jan Hubicka <jh@suse.cz>
32156
32157 PR debug/39267
32158 * tree.h (TREE_PROTECTED): Fix comment.
32159 (BLOCK_HANDLER_BLOCK): Remove.
32160 (struct tree_block): Remove handler_block add body_block.
32161 (inlined_function_outer_scope_p): New.
32162 (is_body_block): Remove.
32163 * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
32164 * dwarf2out.c (is_inlined_entry_point): Remove.
32165 (add_high_low_attributes): Use inlined_function_outer_scope_p.
32166 (gen_block_die): Use is_inlined_entry_point check. Remove body block
32167 code.
32168 * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
32169 * gimplify.c (gimplify_expr): Gimplify body blocks.
32170 * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
32171 block with multiple subblocks.
32172 (dump_scope_block): Prettier output; dump more flags and info.
32173 (dump_scope_blocks): New.
32174 (remove_unused_locals): Use dump_scope_blocks.
32175 * tree-flow.h (dump_scope_blocks): Declare.
32176 * tree-cfg.c (execute_build_cfg): Dump scope blocks.
32177 * stmt.c (is_body_block): Remove.
32178 * tree-inline.c (remap_block): Copy BODY_BLOCK info.
32179 * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
32180
32181 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
32182
32183 PR middle-end/39308
32184 * graphite.c (graphite_loop_normal_form): Do not call
32185 number_of_iterations_exit from a gcc_assert.
32186
32187 2009-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32188
32189 * config/s390/s390.c (s390_swap_cmp): Look for conditional
32190 jumps if COND is NULL.
32191 (find_cond_jump): New function.
32192 (s390_z10_optimize_cmp): Handling for reg-reg compares added.
32193 * config/s390/s390.md: Remove z10_cobra attribute value.
32194
32195 2009-02-26 Uros Bizjak <ubizjak@gmail.com>
32196
32197 * config/alpha/alpha.h (alpha_expand_mov): Return false if
32198 force_const_mem returns NULL_RTX.
32199
32200 2009-02-26 Jan Hubicka <jh@suse.cz>
32201
32202 PR debug/39267
32203 * cgraph.h (varpool_output_debug_info): Remove.
32204 * cgraphunit.c (varpool_output_debug_info): Remove.
32205 * dwarf2out.c (deferred_locations_struct): New struct
32206 (deferred_locations): New type.
32207 (deferred_locations_list): New static var.
32208 (deffer_location): New function.
32209 (gen_variable_die): Use it.
32210 (decls_for_scope): Output info on local static vars.
32211 (dwarf2out_finish): Process deferred locations.
32212 * varpool.c (varpool_output_debug_info): Remove.
32213
32214 2009-02-25 H.J. Lu <hongjiu.lu@intel.com>
32215
32216 PR rtl-optimization/39241
32217 * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
32218 to subreg_offset_representable_p.
32219
32220 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
32221
32222 * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
32223 execute function prototype. Get f and nregs from max_reg_num
32224 and get_insns. Remove the first backward pass as it's dead,
32225 guard the forward pass by flag_expensive_optimizations.
32226 (rest_of_handle_regmove): Delete.
32227 (pass_regmove): Replace it with regmove_optimize.
32228
32229 2009-02-25 Martin Jambor <mjambor@suse.cz>
32230
32231 PR tree-optimization/39259
32232 * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
32233 calls_alloca function flags.
32234 (copy_bb): Set calls_setjmp and alls_alloca function flags if such
32235 calls are detected.
32236
32237 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
32238
32239 * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
32240 flags_set_1_rtx, flags_set_1_set): Delete.
32241 (regmove_optimize): Do not call mark_flags_life_zones.
32242
32243 2009-02-24 Julian Brown <julian@codesourcery.com>
32244
32245 PR target/35965
32246 * config/arm/arm.c (require_pic_register): Only set
32247 cfun->machine->pic_reg once per function.
32248
32249 2009-02-24 Sandra Loosemore <sandra@codesourcery.com>
32250
32251 * doc/invoke.texi (Link Options): Document an easier way to pass
32252 options that take arguments to the GNU linker using -Xlinker and -Wl.
32253
32254 2009-02-24 Steve Ellcey <sje@cup.hp.com>
32255
32256 PR target/33785
32257 * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
32258
32259 2009-02-24 Richard Guenther <rguenther@suse.de>
32260
32261 PR debug/39285
32262 * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
32263
32264 2009-02-24 Richard Guenther <rguenther@suse.de>
32265 Zdenek Dvorak <ook@ucw.cz>
32266
32267 PR tree-optimization/39233
32268 * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
32269 from converting them to a generic type.
32270
32271 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
32272
32273 PR tree-optimization/39260
32274 * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
32275 contains a condition with a real type.
32276 (build_scop_conditions_1): Conditions are always last_stmt of a bb.
32277
32278 2009-02-23 Jason Merrill <jason@redhat.com>
32279
32280 PR c++/38880
32281 * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
32282 narrowing_initializer_constant_valid_p.
32283 (narrowing_initializer_constant_valid_p): Don't return
32284 null_pointer_node for adding a pointer to itself.
32285
32286 2009-02-23 Jan Hubicka <jh@suse.cz>
32287
32288 PR c/12245
32289 * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
32290 resizing.
32291
32292 2009-02-23 Jan Hubicka <jh@suse.cz>
32293
32294 PR tree-optimization/37709
32295 * tree.c (block_ultimate_origin): Move here from dwarf2out.
32296 * tree.h (block_ultimate_origin): Declare.
32297 * dwarf2out.c (block_ultimate_origin): Move to tree.c
32298 * tree-ssa-live.c (remove_unused_scope_block_p):
32299 Eliminate blocks containig no instructions nor live variables nor
32300 nested blocks.
32301 (dump_scope_block): New function.
32302 (remove_unused_locals): Enable removal of dead blocks by default;
32303 enable dumping at TDF_DETAILS.
32304
32305 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
32306
32307 * config/i386/i386.c (classify_argument): Don't allow COImode
32308 and OImode.
32309 (function_arg_advance_32): Don't allow OImode.
32310 (function_arg_32): Likewise.
32311 (function_value_32): Likewise.
32312 (return_in_memory_32): Likewise.
32313 (function_arg_64): Remove OImode comment.
32314
32315 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
32316
32317 PR target/39261
32318 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
32319 ix86_expand_vector_set for V4DImode in 64bit mode only.
32320 (ix86_expand_vector_init_one_var): Likewise.
32321
32322 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
32323
32324 * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
32325
32326 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
32327
32328 PR bootstrap/39257
32329 * loop-iv.c: Revert last change.
32330 * emit-rtl.c: Likewise.
32331
32332 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
32333
32334 PR target/39256
32335 * config/i386/i386.c (type_natural_mode): Remove an extra
32336 space in the warning message.
32337 (function_value_32): Handle 32-byte vector modes.
32338 (return_in_memory_32): Likewise.
32339
32340 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
32341
32342 * loop-iv.c (truncate_value): New function.
32343 (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
32344 of lowpart_subreg.
32345 (lowpart_subreg): Move to...
32346 * emit-rtl.c: ...here.
32347
32348 2009-02-21 Danny Smith <dannysmith@users.sourceforge.net>
32349
32350 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
32351 accidental and undocumented change at revision 140860.
32352
32353 2009-02-21 Joseph Myers <joseph@codesourcery.com>
32354
32355 * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
32356 take gimple_seq * arguments.
32357 (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
32358 types_compatible_p langhook.
32359
32360 2009-02-20 Mark Mitchell <mark@codesourcery.com>
32361 Joseph Myers <joseph@codesourcery.com>
32362
32363 * config/arm/arm.c (arm_builtin_va_list): New function.
32364 (arm_expand_builtin_va_start): Likewise.
32365 (arm_gimplify_va_arg_expr): Likewise.
32366 (TARGET_BUILD_BUILTIN_VA_LIST): Define.
32367 (TARGET_BUILD_BUILTIN_VA_START): Likewise.
32368 (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
32369 (va_list_type): New variable.
32370 (arm_mangle_type): Mangle va_list_type appropriately.
32371
32372 2009-02-20 Jakub Jelinek <jakub@redhat.com>
32373
32374 PR middle-end/39157
32375 * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
32376 * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
32377 * params.def (loop-invariant-max-bbs-in-loop): New parameter.
32378 * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
32379 parameter to 1000 for -O1 by default.
32380 * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
32381 parameter.
32382 * loop-invariant.c: Include params.h.
32383 (move_loop_invariants): Don't call move_single_loop_invariants on
32384 very large loops.
32385
32386 2009-02-20 Jaka Mocnik <jaka@xlab.si>
32387
32388 * calls.c (emit_library_call_value_1): Use slot_offset instead of
32389 offset when calculating bounds for indexing stack_usage_map. Fixes
32390 a buffer overflow with certain target setups.
32391
32392 2009-02-20 Jakub Jelinek <jakub@redhat.com>
32393
32394 PR target/39240
32395 * calls.c (expand_call): Clear try_tail_call if caller and callee
32396 disagree in promotion of function return value.
32397
32398 2009-02-19 Jakub Jelinek <jakub@redhat.com>
32399
32400 PR target/39175
32401 * c-common.c (c_determine_visibility): If visibility changed and
32402 DECL_RTL has been already set, call make_decl_rtl to update symbol
32403 flags.
32404
32405 2009-02-19 H.J. Lu <hongjiu.lu@intel.com>
32406
32407 PR c++/39188
32408 * varasm.c (assemble_variable): Don't check DECL_NAME when
32409 globalizing a variable.
32410
32411 2009-02-19 Joseph Myers <joseph@codesourcery.com>
32412
32413 PR c/38483
32414 * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
32415 expression before any __builtin_trap call.
32416 * c-typeck.c (build_function_call): Convert and check function
32417 arguments before generating a call to a trap. Evaluate the
32418 function arguments before the trap.
32419
32420 2009-02-19 Uros Bizjak <ubizjak@gmail.com>
32421
32422 PR target/39228
32423 * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
32424 (UNSPEC_FXAM_MEM): New unspec.
32425 (fxam<mode>2_i387_with_temp): New insn and split pattern.
32426 (isinf<mode>2): Use MODEF mode iterator. Force operand[1] through
32427 memory using fxam<mode>2_i387_with_temp to remove excess precision.
32428
32429 2009-02-19 Richard Guenther <rguenther@suse.de>
32430
32431 PR tree-optimization/39207
32432 PR tree-optimization/39074
32433 * tree-ssa-structalias.c (storedanything_id, var_storedanything,
32434 storedanything_tree): New.
32435 (do_ds_constraint): Simplify ANYTHING shortcutting. Update
32436 the STOREDANYTHING solution if the lhs solution contains ANYTHING.
32437 (build_succ_graph): Add edges from STOREDANYTHING to all
32438 non-direct nodes.
32439 (init_base_vars): Initialize STOREDANYTHING.
32440 (compute_points_to_sets): Free substitution info after
32441 building the succ graph.
32442 (ipa_pta_execute): Likewise.
32443
32444 * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
32445 field.
32446 (do_ds_constraint): Do not add to special var or non-pointer
32447 field solutions.
32448 (type_could_have_pointers): Split out from ...
32449 (could_have_pointers): ... here. For arrays use the element type.
32450 (create_variable_info_for): Initialize may_have_pointers.
32451 (new_var_info): Likewise.
32452 (handle_lhs_call): Make the HEAP variable unknown-sized.
32453 (intra_create_variable_infos): Use a type with pointers for
32454 PARM_NOALIAS, make it unknown-sized.
32455
32456 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
32457
32458 PR target/39224
32459 * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
32460
32461 2009-02-18 Jason Merrill <jason@redhat.com>
32462
32463 PR target/39179
32464 * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
32465 value if DECL_EXTERNAL.
32466 * tree-sra.c (sra_walk_gimple_assign): Likewise.
32467 * target.h (gcc_target::binds_local_p): Clarify "module".
32468 * tree.h (TREE_PUBLIC): Clarify "module".
32469
32470 2009-02-17 Xuepeng Guo <xuepeng.guo@intel.com>
32471
32472 PR target/38891
32473 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
32474 initialization for MS_ABI prior to the hunk of !TARGET_MMX.
32475
32476 2009-02-17 H.J. Lu <hongjiu.lu@intel.com>
32477
32478 PR target/39082
32479 * c.opt (Wabi): Support C and ObjC.
32480 (Wpsabi): New.
32481
32482 * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
32483
32484 * config/i386/i386.c (classify_argument): Warn once about the ABI
32485 change when passing union with long double.
32486
32487 * doc/invoke.texi: Update -Wabi for warning psABI changes.
32488
32489 2009-02-18 Joseph Myers <joseph@codesourcery.com>
32490
32491 PR c/35447
32492 * c-parser.c (c_parser_compound_statement): Always enter and leave
32493 a scope.
32494
32495 2009-02-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32496
32497 PR target/34587
32498 * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
32499
32500 2009-02-18 Jakub Jelinek <jakub@redhat.com>
32501
32502 PR tree-optimization/36922
32503 * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
32504 * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
32505 Likewise.
32506
32507 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
32508
32509 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
32510 to 0 for EABI64.
32511
32512 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
32513
32514 * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
32515
32516 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
32517
32518 * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
32519 tree sharing.
32520
32521 2009-02-17 Ruan Beihong <ruanbeihong@gmail.com>
32522 Richard Sandiford <rdsandiford@googlemail.com>
32523
32524 * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
32525 * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
32526 (loongson_biadd): ...this.
32527
32528 2009-02-17 Richard Guenther <rguenther@suse.de>
32529
32530 PR tree-optimization/39202
32531 * tree-ssa-structalias.c (do_structure_copy): Before collapsing
32532 a var make sure to follow existing collapses.
32533
32534 2009-02-17 Richard Guenther <rguenther@suse.de>
32535
32536 PR middle-end/39214
32537 * langhooks.c (lhd_print_error_function): Check for NULL block.
32538
32539 2009-02-17 Richard Guenther <rguenther@suse.de>
32540
32541 PR tree-optimization/39204
32542 * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
32543 of the PHI arg.
32544
32545 2009-02-17 Uros Bizjak <ubizjak@gmail.com>
32546
32547 * config/soft-fp/double.h: Update from glibc CVS.
32548
32549 2009-02-17 Richard Guenther <rguenther@suse.de>
32550
32551 PR tree-optimization/39207
32552 * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
32553 strict-aliasing warnings for pointers pointing to NULL.
32554
32555 2009-02-16 Joseph Myers <joseph@codesourcery.com>
32556
32557 PR c/35446
32558 * c-parser.c (c_parser_braced_init): Call pop_init_level when
32559 skipping until next close brace.
32560
32561 2009-02-16 H.J. Lu <hongjiu.lu@intel.com>
32562
32563 PR target/37049
32564 * config/i386/i386.c (ix86_expand_push): Set memory alignment
32565 to function argument boundary.
32566
32567 2009-02-16 Hariharan Sandanagobalane <hariharan@picochip.com>
32568
32569 * config/picochip/picochip.md (lea_add): Allow any nonimmediate
32570 in the lea_add. Reload eventually constraints it properly.
32571 * config/picochip/constraints.md: Remove the target constraint
32572 "b", since it is not needed anymore.
32573
32574 2009-02-16 Jakub Jelinek <jakub@redhat.com>
32575
32576 * gthr-dce.h: Uglify function parameter and local variable names.
32577 * gthr-gnat.h: Likewise.
32578 * gthr-mipssde.h: Likewise.
32579 * gthr-nks.h: Likewise.
32580 * gthr-posix95.h: Likewise.
32581 * gthr-posix.h: Likewise.
32582 * gthr-rtems.h: Likewise.
32583 * gthr-single.h: Likewise.
32584 * gthr-solaris.h: Likewise.
32585 * gthr-tpf.h: Likewise.
32586 * gthr-vxworks.h: Likewise.
32587 * gthr-win32.h: Likewise.
32588
32589 2009-02-15 H.J. Lu <hongjiu.lu@intel.com>
32590
32591 PR target/39196
32592 * config/i386/i386.md: Restrict the new peephole2 to move
32593 between MMX/SSE registers.
32594
32595 2009-02-15 Richard Guenther <rguenther@suse.de>
32596
32597 Revert
32598 2009-02-13 Richard Guenther <rguenther@suse.de>
32599
32600 * configure.ac: Enable LFS.
32601 * configure: Re-generate.
32602 * config.in: Likewise.
32603
32604 2009-02-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32605
32606 * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
32607 spu_srqwbyte, spu_srqwbytebc): Define.
32608 * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
32609 spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
32610 * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
32611 "shrqby_<mode>"): New insn-and-split patterns.
32612 * config/spu/spu.c (expand_builtin_args): Determine and return
32613 number of operands using spu_builtin_description data.
32614 (spu_expand_builtin_1): Use it.
32615
32616 2009-02-13 Steve Ellcey <sje@cup.hp.com>
32617
32618 PR target/38056
32619 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
32620 TARGET_CONST_GP.
32621
32622 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
32623
32624 PR target/39149
32625 * config/i386/i386.c (override_options): Correct warning
32626 messages for -malign-loops, -malign-jumps and -malign-functions.
32627
32628 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
32629
32630 PR target/39152
32631 * config/i386/i386.md: Restrict the new peephole2 to move
32632 between the general purpose registers.
32633
32634 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
32635
32636 PR target/39162
32637 * config/i386/i386.c (type_natural_mode): Add a new argument.
32638 Return the original mode and warn ABI change if vector size is 32byte.
32639 (function_arg_advance): Updated.
32640 (function_arg): Likewise.
32641 (ix86_function_value): Likewise.
32642 (ix86_return_in_memory): Likewise.
32643 (ix86_sol10_return_in_memory): Likewise.
32644 (ix86_gimplify_va_arg): Likewise.
32645 (function_arg_32): Don't warn ABX ABI change here.
32646 (function_arg_64): Likewise.
32647
32648 2009-02-13 Bernd Schmidt <bernd.schmidt@analog.com>
32649
32650 * loop-iv.c (implies_p): In the final case, test that operands 0
32651 of the two comparisons match.
32652
32653 * config/bfin/bfin.c (find_prev_insn_start): New function.
32654 (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
32655 (find_next_insn_start): Move.
32656
32657 2009-02-13 Richard Guenther <rguenther@suse.de>
32658
32659 * configure.ac: Enable LFS.
32660 * configure: Re-generate.
32661 * config.in: Likewise.
32662
32663 2009-02-13 Joseph Myers <joseph@codesourcery.com>
32664
32665 PR c/35444
32666 * c-parser.c (c_parser_parms_list_declarator): Discard pending
32667 sizes on syntax error after some arguments have been parsed.
32668
32669 2009-02-12 Jakub Jelinek <jakub@redhat.com>
32670
32671 * doc/invoke.texi (-fira): Remove.
32672
32673 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
32674
32675 * caller-save.c: Replace regclass.c with reginfo.c in comments.
32676 * recog.c: Likewise.
32677 * rtl.h: Likewise.
32678
32679 2009-02-12 Uros Bizjak <ubizjak@gmail.com>
32680
32681 * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
32682 (umul_ppmm): Likewise.
32683 (count_leading_zeros): Likewise.
32684 (count_trailing_zeros): Likewise.
32685 (UMUL_TIME): Likewise.
32686
32687 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
32688
32689 * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
32690 soft-fp/t-softfp to tmake_file.
32691
32692 * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
32693 (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
32694 (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
32695 IA64_BUILTIN_INFQ]: New.
32696 (ia64_init_builtins): Initialize __builtin_infq,
32697 __builtin_fabsq and __builtin_copysignq if not HPUX.
32698 (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
32699 IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
32700
32701 * config/ia64/lib1funcs.asm (__divtf3): Define only if
32702 SHARED is defined.
32703 (__fixtfti): Likewise.
32704 (__fixunstfti): Likewise.
32705 (__floattitf): Likewise.
32706
32707 * config/ia64/libgcc-glibc.ver: New.
32708 * config/ia64/t-fprules-softfp: Likewise.
32709 * config/ia64/sfp-machine.h: Likewise.
32710
32711 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
32712 (LIBGCC2_TF_CEXT): Likewise.
32713 (TF_SIZE): Likewise.
32714 (TARGET_INIT_LIBFUNCS): Likewise.
32715
32716 * config/ia64/t-glibc (SHLINB_MAPFILES):
32717 Add $(srcdir)/config/ia64/libgcc-glibc.ver.
32718
32719 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
32720
32721 * config/i386/i386.c (construct_container): Rewrite processing
32722 BLKmode with X86_64_SSE_CLASS.
32723
32724 2009-02-12 Paolo Bonzini <bonzini@gnu.org>
32725
32726 PR target/39152
32727 * config/i386/i386.md: Replace simplify_replace_rtx with
32728 replace_rtx in the new peephole2.
32729
32730 2009-02-12 Nathan Sidwell <nathan@codesourcery.com>
32731
32732 * doc/invoke.texi (Optimize Options): Stop claiming inlining and
32733 loop unrolling do not happen at -O2.
32734
32735 2009-02-12 Michael Matz <matz@suse.de>
32736
32737 * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
32738
32739 2009-02-12 Jakub Jelinek <jakub@redhat.com>
32740
32741 * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
32742 for -g3.
32743
32744 2009-02-12 Ben Elliston <bje@au.ibm.com>
32745
32746 * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
32747 patterns when updating the back chain. Missed in the 2009-02-10
32748 change.
32749
32750 2009-02-11 Janis Johnson <janis187@us.ibm.com>
32751
32752 * doc/extend.texi (Decimal Floating Types): Update identifier of
32753 draft TR and list of missing support.
32754
32755 2009-02-11 Jakub Jelinek <jakub@redhat.com>
32756
32757 PR middle-end/39154
32758 * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
32759 bit to variable length decl's flags, add it also to its
32760 pointer replacement variable.
32761
32762 2009-02-11 Uros Bizjak <ubizjak@gmail.com>
32763 Jakub Jelinek <jakub@redhat.com>
32764
32765 PR target/39118
32766 * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
32767 (memory_blockage): New expander.
32768 (*memory_blockage): New insn pattern.
32769 * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
32770 instead of general blockage at the end of function prologue when
32771 frame pointer is used to access red zone area. Do not emit blockage
32772 when profiling, it is emitted in generic code.
32773 (ix86_expand_epilogue): Emit memory_blockage at the beginning of
32774 function epilogue when frame pointer is used to access red zone area.
32775
32776 2009-02-11 Paolo Bonzini <bonzini@gnu.org>
32777
32778 PR target/38824
32779 * config/i386/i386.md: Add two new peephole2 to avoid mov followed
32780 by arithmetic with memory operands.
32781 * config/i386/predicates.md (commutative_operator): New.
32782
32783 2009-02-10 Janis Johnson <janis187@us.ibm.com>
32784
32785 * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
32786 bulleted lists.
32787
32788 2009-02-10 Eric Botcazou <ebotcazou@adacore.com>
32789
32790 * alias.h (record_alias_subset): Declare.
32791 * alias.c (record_alias_subset): Make global.
32792
32793 2009-02-10 Nick Clifton <nickc@redhat.com>
32794
32795 * tree-parloops.c: Change license to GPLv3.
32796 * ipa-struct-reorg.c: Change license to GPLv3.
32797 * ipa-struct-reorg.h: Change license to GPLv3.
32798
32799 2009-02-10 Steve Ellcey <sje@cup.hp.com>
32800
32801 PR c/39084
32802 * c-decl.c (start_struct): Return NULL on error.
32803
32804 2009-02-10 Jakub Jelinek <jakub@redhat.com>
32805
32806 PR middle-end/39124
32807 * cfgloopmanip.c (remove_path): Call remove_bbs after
32808 cancel_loop_tree, not before it.
32809
32810 PR target/39139
32811 * function.h (struct function): Add has_local_explicit_reg_vars bit.
32812 * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
32813 VAR_DECLs were seen.
32814 * tree-ssa-live.c (remove_unused_locals): Recompute
32815 cfun->has_local_explicit_reg_vars.
32816 * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
32817 copies or clearings if cfun->has_local_explicit_reg_vars.
32818
32819 2009-02-10 Uros Bizjak <ubizjak@gmail.com>
32820
32821 PR target/39118
32822 * config/i386/i386.c (expand_prologue): Emit blockage at the end
32823 of function prologue when frame pointer is used to access
32824 red zone area.
32825
32826 2009-02-10 Richard Guenther <rguenther@suse.de>
32827
32828 PR middle-end/39127
32829 * gimplify.c (gimple_regimplify_operands): Always look if
32830 we need to create a temporary.
32831
32832 2009-02-10 Richard Guenther <rguenther@suse.de>
32833
32834 PR tree-optimization/39132
32835 * tree-loop-distribution.c (todo): New global var.
32836 (generate_memset_zero): Trigger TODO_rebuild_alias.
32837 (tree_loop_distribution): Return todo.
32838
32839 2009-02-10 H.J. Lu <hongjiu.lu@intel.com>
32840
32841 PR target/39119
32842 * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
32843 (x86_64_reg_class_name): Removed.
32844 (classify_argument): Return 0 if bytes > 32. Return 0 if the
32845 first one isn't X86_64_SSE_CLASS or any other ones aren't
32846 X86_64_SSEUP_CLASS when size > 16bytes. Don't turn
32847 X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
32848 is X86_64_SSEUP_CLASS. Set AVX modes to 1 X86_64_SSE_CLASS
32849 and 3 X86_64_SSEUP_CLASS.
32850 (construct_container): Remove X86_64_AVX_CLASS. Handle 4
32851 registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
32852
32853 2009-02-10 Ben Elliston <bje@au.ibm.com>
32854
32855 * config/rs6000/rs6000.md (allocate_stack): Always use an update
32856 form instruction to update the stack back chain word, even if the
32857 user has disabled the generation of update instructions.
32858 (movdi_<mode>_update_stack): New.
32859 (movsi_update_stack): Likewise.
32860 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
32861 always use an update form instruction to update the stack back
32862 chain word.
32863
32864 2009-02-09 Sebastian Pop <sebastian.pop@amd.com>
32865
32866 PR middle-end/38953
32867 * graphite.c (if_region_set_false_region): After moving a region in
32868 the false branch of a condition, remove the empty dummy basic block.
32869 (gloog): Remove wrong fix for PR38953.
32870
32871 2009-02-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32872
32873 * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
32874 generation due to implicit sign extension.
32875
32876 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
32877
32878 PR middle-end/38981
32879 * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
32880 at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
32881
32882 2009-02-09 Richard Guenther <rguenther@suse.de>
32883
32884 PR middle-end/35202
32885 * convert.c (convert_to_real): Disable (float)fn((double)x)
32886 to fnf(x) conversion if errno differences may occur and
32887 -fmath-errno is set.
32888
32889 2009-02-07 Anatoly Sokolov <aesok@post.ru>
32890
32891 * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
32892 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
32893 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
32894
32895 2009-02-06 Joseph Myers <joseph@codesourcery.com>
32896
32897 PR c/35434
32898 * c-common.c (handle_alias_attribute): Disallow attribute for
32899 anything not a FUNCTION_DECL or VAR_DECL.
32900
32901 2009-02-06 Janis Johnson <janis187@us.ibm.com>
32902
32903 PR c/39035
32904 * real.c (do_compare): Special-case compare of zero against
32905 decimal float value.
32906
32907 2009-02-06 Joseph Myers <joseph@codesourcery.com>
32908
32909 PR c/36432
32910 * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
32911 as indicating flexible array members unless the field itself is
32912 being declarared as the incomplete array.
32913
32914 2009-02-06 Jan Hubicka <jh@suse.cz>
32915
32916 PR tree-optimization/38844
32917 * ipa-inline.c (try_inline): Stop inlining recursion when edge
32918 is already inlined.
32919
32920 2009-02-06 Richard Guenther <rguenther@suse.de>
32921
32922 PR middle-end/38977
32923 * tree-cfg.c (need_fake_edge_p): Force a fake edge for
32924 fork because we may expand it as __gcov_fork.
32925
32926 2009-02-06 Nick Clifton <nickc@redhat.com>
32927
32928 * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
32929
32930 2009-02-06 Paolo Bonzini <bonzini@gnu.org>
32931
32932 PR tree-optimization/35659
32933 * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
32934 vn_phi_eq): Shortcut if hashcode does not match.
32935 (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
32936 NULL operands.
32937 * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
32938 and avoid iterative_hash_expr.
32939 (FOR_EACH_VALUE_ID_IN_SET): New.
32940 (value_id_compare): Remove.
32941 (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
32942 sort expressions by value id.
32943
32944 2009-02-05 Kaz Kojima <kkojima@gcc.gnu.org>
32945
32946 PR target/38991
32947 * config/sh/predicates.md (general_movsrc_operand): Don't check
32948 the subreg of system registers here.
32949
32950 2009-02-05 Jakub Jelinek <jakub@redhat.com>
32951
32952 PR c++/39106
32953 * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
32954 on the copied decl.
32955
32956 2009-02-05 Paolo Bonzini <bonzini@gnu.org>
32957
32958 PR rtl-optimization/39110
32959 * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
32960 addresses, not aligned ones.
32961
32962 2009-02-05 Daniel Berlin <dberlin@dberlin.org>
32963 Richard Guenther <rguenther@suse.de>
32964
32965 PR tree-optimization/39100
32966 * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
32967 comment says and add edges.
32968
32969 2009-02-05 Joseph Myers <joseph@codesourcery.com>
32970
32971 PR c/35435
32972 * c-common.c (handle_tls_model_attribute): Ignore attribute for
32973 non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
32974
32975 2009-02-04 Tobias Grosser <grosser@fim.uni-passau.de>
32976
32977 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
32978 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
32979 register_bb_in_sese, new_sese, free_sese): Moved.
32980 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
32981 outermost_loop_in_scop, build_scop_iteration_domain,
32982 expand_scalar_variables_ssa_name, get_vdef_before_scop,
32983 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
32984 Use loop_in_sese_p instead of loop_in_scop_p.
32985 (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
32986 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
32987 (scopdet_basic_block_info): Fix bug in scop detection.
32988 (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
32989 eq_loop_to_cloog_loop): Remove.
32990 (nb_loops_around_loop_in_scop, nb_loop
32991 ref_nb_loops): Moved here...
32992 * graphite.h (ref_nb_loops): ... from here.
32993 (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
32994 (loop_domain_dim, loop_iteration_vector_dim): Remove.
32995 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
32996
32997 2009-02-04 Paolo Bonzini <bonzini@gnu.org>
32998 Hans-Peter Nilsson <hp@axis.com>
32999
33000 PR rtl-optimization/37889
33001 * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
33002 Move offset handling from PLUS to before the switch. Use new
33003 arguments when considering SYMBOL_REFs too.
33004 (rtx_addr_can_trap_p): Pass dummy offset and size.
33005 (enum may_trap_p_flags): Remove.
33006 (may_trap_p_1): Pass size from MEM_SIZE.
33007
33008 PR rtl-optimization/38921
33009 * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
33010 * rtl.h (may_trap_after_code_motion_p): Delete prototype.
33011 * rtlanal.c (may_trap_after_code_motion_p): Delete.
33012 (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
33013
33014 2009-02-04 H.J. Lu <hongjiu.lu@intel.com>
33015
33016 AVX Programming Reference (January, 2009)
33017 * config/i386/sse.md (*vpclmulqdq): New.
33018
33019 2009-02-04 Jakub Jelinek <jakub@redhat.com>
33020
33021 PR tree-optimization/38977
33022 PR gcov-profile/38292
33023 * calls.c (special_function_p): Disregard __builtin_ prefix.
33024
33025 2009-02-04 Hariharan Sandanagobalane <hariharan@picochip.com>
33026
33027 * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
33028 non-indexable addresses even before reload.
33029
33030 2009-02-03 Joseph Myers <joseph@codesourcery.com>
33031
33032 PR c/29129
33033 * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
33034 as having variable size. Do not give an error for unnamed
33035 parameters with [*] declarators. Give a warning for type names
33036 with [*] declarators and mark them as variable size.
33037 * c-parser.c (c_parser_sizeof_expression): Do not give an error
33038 for sizeof applied to [*] type names.
33039
33040 2009-02-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
33041
33042 PR C++/36607
33043 * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
33044
33045 2009-02-03 Jakub Jelinek <jakub@redhat.com>
33046
33047 * gcc.c (process_command): Update copyright notice dates.
33048 * gcov.c (print_version): Likewise.
33049 * gcov-dump.c (print_version): Likewise.
33050 * mips-tfile.c (main): Likewise.
33051 * mips-tdump.c (main): Likewise.
33052
33053 2009-02-03 Joseph Myers <joseph@codesourcery.com>
33054
33055 PR c/35433
33056 * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
33057 for composite type involving a zero-length array type.
33058
33059 2009-02-03 Jakub Jelinek <jakub@redhat.com>
33060
33061 PR target/35318
33062 * function.c (match_asm_constraints_1): Skip over
33063 initial optional % in the constraint.
33064
33065 PR inline-asm/39059
33066 * c-parser.c (c_parser_postfix_expression): If fixed point is not
33067 supported, don't accept FIXED_CSTs.
33068 * c-decl.c (finish_declspecs): Error if fixed point is not supported
33069 and _Sat is used without _Fract/_Accum. Set specs->type to
33070 integer_type_node for cts_fract/cts_accum if fixed point is not
33071 supported.
33072
33073 2009-02-02 Catherine Moore <clm@codesourcery.com>
33074
33075 * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
33076
33077 2009-02-02 Richard Sandiford <rdsandiford@googlemail.com>
33078
33079 * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
33080 (ABI_HAS_64BIT_SYMBOLS): Use it.
33081 (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
33082
33083 2009-02-02 Paul Brook <paul@codesourcery.com>
33084
33085 * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
33086
33087 2009-02-02 Jakub Jelinek <jakub@redhat.com>
33088
33089 PR inline-asm/39058
33090 * recog.h (asm_operand_ok): Add constraints argument.
33091 * recog.c (asm_operand_ok): Likewise. If it is set, for digits
33092 recurse on matching constraint.
33093 (check_asm_operands): Pass constraints as 3rd argument to
33094 asm_operand_ok. Don't look up matching constraint here.
33095 * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
33096 to asm_operand_ok.
33097
33098 2009-02-02 Ben Elliston <bje@au.ibm.com>
33099
33100 * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
33101 TARGET_NARROW_VOLATILE_BITFIELD macro names.
33102
33103 2009-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33104
33105 * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
33106 information. Remove some obsolete information. Reorganize.
33107
33108 * config/pa/fptr.c: Revert license to GPL 2.
33109 * config/pa/milli64.S: Likewise.
33110
33111 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
33112
33113 PR target/38904
33114 * mkmap-flat.awk (END): Use pe_dll command-line arg to pass
33115 LIBRARY name in, instead of hard-coding it.
33116 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add an
33117 extra target make frag to tmake_files according to EH model.
33118 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
33119 * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Add new target
33120 frags that define makefile variable EH_MODEL appropriately.
33121 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Add comment.
33122 * config/i386/cygwin.h (LIBGCC_EH_EXTN): Define to nothing or
33123 to "-sjlj" according to type of EH configured.
33124 (LIBGCC_SONAME): Concatenate it to shared library base name.
33125 * config/i386/mingw32.h (LIBGCC_EH_EXTN): Define to "_dw2" or
33126 to "_sjlj" according to type of EH configured.
33127 (LIBGCC_SONAME): Concatenate it to shared library base name.
33128 * config/i386/t-cygming (SHLIB_SONAME): Use EH_MODEL.
33129 (SHLIB_LINK): Add missing semicolon to if-else construct.
33130 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
33131 string value of "pe_dll" command-line option.
33132 * config/i386/t-cygwin (SHLIB_EH_EXTENSION): New helper.
33133 (SHLIB_SONAME): Use it when overriding t-cygming default.
33134 (SHLIB_IMPLIB): Override t-cygming default.
33135 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
33136 string value of "pe_dll" command-line option.
33137
33138 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
33139
33140 PR target/38952
33141 * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
33142 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
33143
33144 2009-01-31 Richard Guenther <rguenther@suse.de>
33145
33146 PR tree-optimization/38937
33147 * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
33148 computing the transitive closure.
33149
33150 2009-01-30 Richard Guenther <rguenther@suse.de>
33151
33152 PR tree-optimization/39041
33153 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
33154 Propagate variable indices only if the types match for this stmt.
33155
33156 2009-01-30 Jakub Jelinek <jakub@redhat.com>
33157
33158 PR target/39013
33159 * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
33160 inline but never defined.
33161
33162 2009-01-30 Wolfgang Gellerich <gellerich@de.ibm.com>
33163
33164 * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
33165 (*insv_h_di_reg_extimm): New insn.
33166 (*insv_l<mode>_reg_extimm): New insn.
33167
33168 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
33169
33170 * config/picochip/picochip.c (flag_conserve_stack): set
33171 PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
33172 fconserve-stack. Reduce call-overhead used by inliner.
33173
33174 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
33175
33176 PR/38157
33177 * common.opt (flag_conserve_stack): Initialised to zero.
33178
33179 2009-01-30 Kai Tietz <kai.tietz@onevision.com>
33180
33181 PR/39002
33182 * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
33183 (ix86_expand_epilogue): Take nsseregs in account to use proper restore
33184 method.
33185
33186 2009-01-29 H.J. Lu <hongjiu.lu@intel.com>
33187
33188 * ira-color.c (allocno_reload_assign): Update comments.
33189 * regmove.c (regmove_optimize): Likewise.
33190
33191 * ra.h: Removed.
33192
33193 2009-01-29 Robert Millan <rmh@aybabtu.com>
33194
33195 * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
33196 * config/i386/kopensolaris-gnu.h: New file. Undefine
33197 `MD_UNWIND_SUPPORT'.
33198 * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
33199
33200 2009-01-29 Kazu Hirata <kazu@codesourcery.com>
33201
33202 PR tree-optimization/39007
33203 * tree-loop-distribution.c (generate_builtin): Use
33204 recompute_dominator to compute the immediate dominator of the
33205 basic block just after the loop.
33206
33207 2009-01-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
33208
33209 * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
33210 (ASM_OUTPUT_DWARF_PCREL): Define.
33211
33212 2009-01-29 Vladimir Makarov <vmakarov@redhat.com>
33213
33214 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
33215 * doc/passes.texi: Remove entries about regclass, local-alloc, and
33216 global. Modify entries about regmove and IRA.
33217
33218 * ra-conflict.c: Remove the file.
33219
33220 * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
33221
33222 * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
33223 (pass_regclass_init): Rename to pass_reginfo_init.
33224
33225 * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
33226
33227 * toplev.h (flag_ira): Remove.
33228
33229 * caller-save.c (setup_save_areas): Remove flag_ira.
33230
33231 * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
33232
33233 * global.c: Remove the file.
33234
33235 * opts.c (decode_options): Remove flag_ira.
33236
33237 * hard-reg-set.h (losing_caller_save_reg_set): Remove.
33238
33239 * regmove.c: Modify file description.
33240 (find_use_as_address, try_auto_increment): Define them only if
33241 AUTO_INC_DEC is defined.
33242 (replacement_quality, replace_in_call_usage, fixup_match_1,
33243 stable_and_no_regs_but_for_p): Remove.
33244 (reg_set_in_bb): Make it static.
33245 (regmove_optimize): Remove flag_ira and code which worked for
33246 !flag_ira.
33247
33248 * local-alloc.c: Remove the file.
33249
33250 * common.opt (fira): Remove.
33251
33252 * ira.c: Include except.h.
33253 (eliminable_regset): Move from global.c.
33254 (mark_elimination): Ditto. Remove flag_ira.
33255 (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
33256 equiv_mem_modified, validate_equiv_mem_from_store,
33257 validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
33258 contains_replace_regs, memref_referenced_p, memref_used_between_p,
33259 no_equiv, recorded_label_ref): Move from local-alloc.c.
33260 (update_equiv_regs): Ditto. Make it static.
33261 (print_insn_chain, print_insn_chains): Move it from global.c.
33262 (pseudo_for_reload_consideration_p): Ditto. Remove flag_ira.
33263 (build_insn_chain): Ditto. Make it static.
33264 (ra_init_live_subregs): Move from ra-conflict.c. Make it static.
33265 Rename to init_live_subregs.
33266 (gate_ira): Remove flag_ira.
33267
33268 * regclass.c: Rename reginfo.c. Change file description.
33269 (FORBIDDEN_INC_DEC_CLASSES): Remove.
33270 (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
33271 (init_reg_sets_1): Remove code for evaluation of
33272 reg_class_superclasses and losing_caller_save_reg_set.
33273 (init_regs): Remove init_reg_autoinc.
33274 (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
33275 ok_for_base_p_nonstrict): Remove.
33276 (regclass_init): Rename to reginfo_init. Don't initialize init_cost.
33277 (pass_regclass_init): Rename to pass_reginfo_init. Modify
33278 corresponding entries.
33279 (dump_regclass, record_operand_costs, scan_one_insn,
33280 init_reg_autoinc, regclass, record_reg_classes, copy_cost,
33281 record_address_regs, auto_inc_dec_reg_p): Remove.
33282 (gt-regclass.h): Rename to gt-reginfo.h.
33283
33284 * rtl.h (dump_global_regs, retry_global_alloc,
33285 build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
33286
33287 * Makefile.in (RA_H): Remove.
33288 (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
33289 Rename regclass.o to reginfo.o.
33290 (regclass.o): Rename to reginfo.o. Rename gt-regclass.h to
33291 gt-reginfo.h.
33292 (global.o, local-alloc.o, ra-conflict.o): Remove entries.
33293 (GTFILES): Rename regclass.c to reginfo.c.
33294
33295 * passes.c (init_optimization_passes): Remove pass_local_alloc and
33296 pass_global_alloc. Rename pass_regclass_init to pass_reginfo_init.
33297
33298 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
33299 count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
33300 Remove flag_ira.
33301 (finish_spills): Ditto. Remove code for !flag_ira.
33302
33303 2009-01-29 Kenneth Zadeck <zadeck@naturalbridge.com>
33304
33305 PR middle-end/35854
33306 * doc/invoke.texi (rtl debug options): Complete rewrite.
33307 * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
33308 to auto_inc_dec".
33309 * mode-switching.c (pass_mode_switching): Rename pass from
33310 "mode-sw" to "mode_sw".
33311 * except.c (pass_convert_to_eh_ranges): Rename pass from
33312 "eh-ranges" to "eh_ranges".
33313 * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
33314 to "subreg1".
33315
33316
33317 2009-01-29 Andrey Belevantsev <abel@ispras.ru>
33318 Alexander Monakov <amonakov@ispras.ru>
33319
33320 PR middle-end/38857
33321 * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
33322 register.
33323 (move_exprs_to_boundary): Change return type and pass through
33324 should_move from move_op. Relax assert. Update usage ...
33325 (schedule_expr_on_boundary): ... here. Use should_move instead of
33326 cant_move.
33327 (move_op_orig_expr_found): Indicate that insn was disconnected from
33328 stream.
33329 (code_motion_process_successors): Do not call after_merge_succs
33330 callback if original expression was not found when traversing any of
33331 the branches.
33332 (code_motion_path_driver): Change return type. Update prototype.
33333 (move_op): Update comment. Add a new parameter (should_move). Update
33334 prototype. Set *should_move based on indication provided by
33335 move_op_orig_expr_found.
33336
33337 2009-01-28 Pat Haugen <pthaugen@us.ibm.com>
33338
33339 * doc/invoke.texi (avoid-indexed-addresses): Document new option.
33340 * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
33341 * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
33342 * config/rs6000/rs6000.c (rs6000_override_options): Default
33343 avoid-indexed-addresses on for Power6, off for everything else.
33344 (avoiding_indexed_address_p): New function.
33345 (rs6000_legitimize_address): Use it.
33346 (rs6000_legitimate_address): Likewise.
33347 * config/rs6000/rs6000.md (movXX_updateX): Likewise
33348
33349 2009-01-28 Kazu Hirata <kazu@codesourcery.com>
33350
33351 PR tree-optimization/38997
33352 * tree-loop-distribution.c (generate_memset_zero): Use
33353 POINTER_PLUS_EXPR for a pointer addition.
33354
33355 2009-01-28 Andreas Krebbel <krebbel1@de.ibm.com>
33356
33357 * config/s390/s390.md (bswap<mode>2): New pattern added.
33358
33359 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
33360
33361 * config/s390/s390.md (*tls_load_31): Added type attribute.
33362
33363 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
33364
33365 * config/s390/s390.md: Fix a few comments.
33366
33367 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
33368
33369 * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
33370 (*tm<mode>_full): Fixed z10prop attribute.
33371 (*tst<mode>_extimm): Fixed z10prop attribute.
33372 (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
33373 (*tstqiCCT_cconly): Fixed z10prop attribute.
33374 (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
33375 (*movsi_larl): Fixed z10prop attribute.
33376 (*movsi_zarch): Fixed z10prop attribute.
33377 (*movsi_eas): Fixed z10prop attribute.
33378 (*movhi): Fixed z10prop attribute.
33379 (*movqi): Fixed z10prop attribute.
33380 (*movstrictqi): Fixed z10prop attribute.
33381 (*mov<mode>): Fixed z10prop attribute.
33382 (*movcc): Fixed z10prop attribute.
33383 (*sethighpartdi_64): Fixed z10prop attribute.
33384 (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
33385 (*negdi2_sign_cc): Fixed z10prop attribute.
33386 (*negdi2_sign): Fixed z10prop attribute.
33387 (*absdi2_sign_cc): Fixed z10prop attribute.
33388 (*absdi2_sign): Fixed z10prop attribute.
33389 (*negabsdi2_sign_cc): Fixed z10prop attribute.
33390 (*negabsdi2_sign): Fixed z10prop attribute.
33391 (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
33392 (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
33393 (doloop_si64): Fixed z10prop attribute.
33394 (doloop_si31): Fixed z10prop attribute.
33395 (doloop_long): Fixed z10prop attribute.
33396 (indirect_jump): Fixed z10prop attribute.
33397 (nop): Fixed z10prop attribute.
33398 (main_base_64): Fixed z10prop attribute.
33399 (reload_base_64): Fixed z10prop attribute.
33400
33401 2009-01-28 Jakub Jelinek <jakub@redhat.com>
33402
33403 PR rtl-optimization/38740
33404 * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
33405 if !optimize.
33406 * config/mips/mips.c (mips_reorg): Likewise.
33407
33408 2009-01-28 Richard Guenther <rguenther@suse.de>
33409
33410 PR tree-optimization/38926
33411 * tree-ssa-pre.c (add_to_value): Assert we add only expressions
33412 with the correct value id to a value.
33413 (do_regular_insertion): Use the value number of edoubleprime
33414 for the value number of the expr.
33415
33416 Revert
33417 2008-08-21 Richard Guenther <rguenther@suse.de>
33418
33419 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
33420 a PHI ask VN if it is already available.
33421 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
33422 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
33423
33424 2009-01-28 Jakub Jelinek <jakub@redhat.com>
33425
33426 PR middle-end/38934
33427 * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
33428 set to varying whenever max has TREE_OVERFLOW set, similarly
33429 for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
33430
33431 2009-01-28 Richard Guenther <rguenther@suse.de>
33432
33433 PR middle-end/38908
33434 * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
33435 uninitialized aggregate uses in call arguments.
33436
33437 2009-01-28 Paolo Bonzini <bonzini@gnu.org>
33438
33439 PR tree-optimization/38984
33440 * tree-ssa-structalias.c (get_constraints_for_1): Do not use
33441 the nothing_id variable if -fno-delete-null-pointer-checks.
33442
33443 2009-01-28 Uros Bizjak <ubizjak@gmail.com>
33444
33445 PR target/38988
33446 * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
33447 (set_got_offset_rex64): Ditto.
33448
33449 2009-01-27 H.J. Lu <hongjiu.lu@intel.com>
33450
33451 PR target/38941
33452 * doc/extend.texi: Improve local variable with asm reg.
33453
33454 2009-01-27 Adam Nemet <anemet@caviumnetworks.com>
33455
33456 * c.opt (Wpacked-bitfield-compat): Change init value to -1.
33457 * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
33458 was not supplied then set warn_packed_bitfield_compat to the
33459 default value of 1.
33460 * stor-layout.c (place_field): Check warn_packed_bitfield_compat
33461 against 1.
33462
33463 2009-01-27 Richard Guenther <rguenther@suse.de>
33464
33465 PR tree-optimization/38503
33466 * cfgexpand.c (expand_gimple_basic_block): Ignore
33467 GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
33468 * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
33469 variables that cannot have TBAA applied.
33470 (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
33471 statements.
33472
33473 2009-01-27 Uros Bizjak <ubizjak@gmail.com>
33474
33475 PR middle-end/38969
33476 * calls.c (initialize_argument_information): Do not wrap complex
33477 arguments in SAVE_EXPR.
33478
33479 2009-01-26 Andreas Tobler <a.tobler@schweiz.org>
33480
33481 * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
33482 (INSTALL_LIBGCC): Revert typo commit.
33483
33484 2009-01-26 Richard Guenther <rguenther@suse.de>
33485
33486 PR tree-optimization/38745
33487 * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
33488 from special handling.
33489
33490 2009-01-26 Richard Guenther <rguenther@suse.de>
33491
33492 PR tree-optimization/38745
33493 * tree-ssa.c (execute_update_addresses_taken): Do not include
33494 variables that cannot possibly be a register in not_reg_needs.
33495 Do not clear TREE_ADDRESSABLE on vars that may not become
33496 registers.
33497 * tree-ssa.c (update_alias_info_1): Include those in the set
33498 of addressable vars.
33499
33500 2009-01-26 Richard Guenther <rguenther@suse.de>
33501
33502 PR middle-end/38851
33503 * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
33504 * tree-ssa-dse.c: Include langhooks.h
33505 (execute_simple_dse): Remove stores with zero size.
33506
33507 2009-01-24 Jakub Jelinek <jakub@redhat.com>
33508
33509 PR c/38957
33510 * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
33511 as PLUS_EXPR.
33512
33513 2009-01-24 Julian Brown <julian@codesourcery.com>
33514
33515 * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
33516 config/arm/linux-atomic.c.
33517 * config/arm/linux-atomic.c: New.
33518
33519 2009-01-24 Eric Botcazou <ebotcazou@adacore.com>
33520
33521 * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
33522 * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
33523 * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
33524
33525 2009-01-24 H.J. Lu <hongjiu.lu@intel.com>
33526
33527 PR c/38938
33528 * c-opts.c (c_common_handle_option): Update warn_pointer_sign
33529 properly.
33530
33531 2009-01-24 Sebastian Pop <sebastian.pop@amd.com>
33532
33533 PR tree-optimization/38953
33534 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
33535 (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
33536 (gloog): Split the exit of the scop when the scop exit is a loop exit.
33537 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
33538 changed the CFG.
33539
33540 2009-01-24 Paul Brook <paul@codesourcery.com>
33541
33542 * config/arm/neon.md (neon_type): Move to arm.md.
33543 (neon_mov<VSTRUCT>): Add neon_type attribute.
33544 * config/arm/arm.md (neon_type): Move to here.
33545 (conds): Add "unconditioal" and use as default for NEON insns.
33546
33547 2009-01-24 Ben Elliston <bje@au.ibm.com>
33548
33549 * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
33550 void *' warning from -Wc++-compat.
33551 * Makefile.in (dominance.o-warn): Remove.
33552
33553 2009-01-23 Paolo Bonzini <bonzini@gnu.org>
33554
33555 PR tree-optimization/38932
33556 * fold-const.c (fold_unary_ignore_overflow): New.
33557 * tree.h (fold_unary_ignore_overflow): Declare.
33558 * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
33559 * tree-ssa-sccvn.c (visit_reference_op_load,
33560 simplify_unary_expression): Likewise.
33561
33562 2009-01-22 Adam Nemet <anemet@caviumnetworks.com>
33563
33564 * c-decl.c (finish_struct): Move code to set DECL_PACKED after
33565 DECL_BIT_FIELD is alreay known. Also inherit packed for bitfields
33566 regardless of their type.
33567 * c-common.c (handle_packed_attribute): Don't ignore packed on
33568 bitfields.
33569 * c.opt (Wpacked-bitfield-compat): New warning option.
33570 * stor-layout.c (place_field): Warn if offset of a field changed.
33571 * doc/extend.texi (packed): Mention the ABI change.
33572 * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
33573 (Warning Options): Add it to the list.
33574
33575 2009-01-22 H.J. Lu <hongjiu.lu@intel.com>
33576
33577 * c-opts.c (c_common_post_options): Fix a typo in comments.
33578
33579 2009-01-22 Steve Ellcey <sje@cup.hp.com>
33580
33581 PR middle-end/38615
33582 * gimplify.c (gimplify_init_constructor): Fix promotion of const
33583 variables to static.
33584 * doc/invoke.texi (-fmerge-all-constants): Update description.
33585
33586 2009-01-22 Uros Bizjak <ubizjak@gmail.com>
33587
33588 PR target/38931
33589 * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
33590 (*movdi_1_rex64): Use type "mmx" for alternative 5.
33591
33592 2009-01-22 Richard Earnshaw <rearnsha@arm.com>
33593
33594 * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
33595 a word boundary.
33596 (LOCAL_ALIGNMENT): Similarly.
33597
33598 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
33599 Joseph Myers <joseph@codesourcery.com>
33600
33601 * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
33602 * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
33603 * config/arm/arm-tune.md: Regenerate.
33604 * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
33605 -march=iwmmxt2.
33606
33607 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
33608
33609 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
33610 version number to five.
33611
33612 2009-01-22 Dodji Seketeli <dodji@redhat.com>
33613
33614 PR c++/38930
33615 * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
33616 * c-common.c (set_underlying_type): Likewise.
33617 (is_typedef_decl ): Likewise
33618 * tree.h: Likewise
33619 (set_underlying_type): Likewise.
33620 (is_typedef_type): Likewise.
33621
33622 2009-01-21 Vladimir Makarov <vmakarov@redhat.com>
33623
33624 PR middle-end/38587
33625 * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
33626 crossing setjmps.
33627
33628 2009-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
33629
33630 PR bootstrap/37660
33631 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): New helper macro.
33632 (LIBGCC_SPEC): Don't define.
33633 (REAL_LIBGCC_SPEC): Define instead, using SHARED_LIBGCC_SPEC.
33634
33635 2009-01-21 Uros Bizjak <ubizjak@gmail.com>
33636
33637 PR rtl-optimization/38879
33638 * alias.c (base_alias_check): Unaligned access via AND address can
33639 alias all surrounding object types except those with sizes equal
33640 or wider than the size of unaligned access.
33641
33642 2009-01-21 Dodji Seketeli <dodji@redhat.com>
33643
33644 PR c++/26693
33645 * c-decl.c (clone_underlying_type): Move this ...
33646 * c-common.c (set_underlying_type): ... here.
33647 Also, make sure the function properly sets TYPE_STUB_DECL() on
33648 the newly created typedef variant type.
33649 (is_typedef_decl ): New entry point.
33650 * tree.h: Added a new member member_types_needing_access_check to
33651 struct tree_decl_non_common.
33652 (set_underlying_type): New entry point.
33653 (is_typedef_type): Likewise.
33654
33655 2009-01-21 Bingfeng Mei <bmei@broadcom.com>
33656
33657 * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
33658 Check whether two instructions have memory references that
33659 belong to conflicting alias sets. walk_mems_1 and walk_mems_2
33660 are helper functions for traversing.
33661 * alias.h (insn_alias_sets_confilict_p): New prototypes.
33662 * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
33663 not to draw dependency edge for instructions with non-conflicting
33664 alias sets.
33665
33666 2009-01-20 Joseph Myers <joseph@codesourcery.com>
33667
33668 PR other/38758
33669 * longlong.h: Update copyright years. Use soft-fp license notice.
33670 Sync __clz_tab declaration with glibc.
33671
33672 2009-01-20 Steve Ellcey <sje@cup.hp.com>
33673
33674 PR target/30687
33675 * doc/extend.texi (syscall_linkage): New.
33676 (version_id): Modify.
33677
33678 2009-01-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
33679 Richard Guenther <rguenther@suse.de>
33680
33681 PR tree-optimization/38747
33682 PR tree-optimization/38748
33683 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
33684 conversion if the base address is an indirect reference and the
33685 aliasing sets could cause issues.
33686
33687 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
33688
33689 * common.opt (fgraphite, fgraphite-identity): Add comment for
33690 explaining why these options are not documented.
33691
33692 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
33693
33694 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
33695 gimple_call_lhs is NULL.
33696
33697 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
33698
33699 PR target/38868
33700 * emit-rtl.c (adjust_address_1): Make sure memref is never
33701 overwritten.
33702
33703 2009-01-20 Ben Elliston <bje@au.ibm.com>
33704
33705 * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
33706 const qualifier from arg parameter. Remove unnecessary cast to char *.
33707 * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
33708 const qualifier from arg 2.
33709
33710 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
33711
33712 * config/darwin.h: Add static-libgfortran to LINK_SPEC.
33713
33714 2009-01-19 Vladimir Makarov <vmakarov@redhat.com>
33715
33716 PR c/38869
33717 * rtl.h (reinit_regs): New prototype.
33718 * regclass.c: Include ira.h.
33719 (reinit_regs): New.
33720 * Makefile.in (regclass.o): Add ira.h.
33721 * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
33722
33723 2009-01-18 H.J. Lu <hongjiu.lu@intel.com>
33724
33725 PR target/38736
33726 * c-common.c (handle_aligned_attribute): Use
33727 ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
33728 default alignment value.
33729
33730 * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
33731
33732 * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
33733 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
33734
33735 * doc/extend.texi: Update __attribute__ ((aligned)). Document
33736 __BIGGEST_ALIGNMENT__.
33737
33738 * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
33739
33740 2009-01-18 Richard Guenther <rguenther@suse.de>
33741
33742 PR tree-optimization/38819
33743 * tree-flow.h (operation_could_trap_helper_p): Declare.
33744 * tree-eh.c (operation_could_trap_helper_p): Export.
33745 * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
33746 * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
33747 * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
33748 are about to insert a possibly trapping instruction and fail
33749 in this case.
33750
33751 2009-01-18 Andreas Schwab <schwab@suse.de>
33752
33753 * doc/install.texi (Configuration): Remove obsolete paragraph
33754 about use of --with-gnu-ld with --with-gnu-as.
33755
33756 2009-01-18 Kazu Hirata <kazu@codesourcery.com>
33757
33758 * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
33759 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
33760 Follow spelling conventions.
33761
33762 2009-01-18 Ben Elliston <bje@au.ibm.com>
33763
33764 * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
33765 C++ warning about implicit conversion from void * to struct
33766 bitmap_head_def *.
33767 (bitmap_obstack_free): Likewise for bitmap_element *.
33768 * Makefile.in (bitmap.o-warn): Remove.
33769
33770 2009-01-17 Dave Korn <dave.korn.cygwin@gmail.com>
33771
33772 * Makefile.in (BACKENDLIBS): Reorder to match dependencies.
33773
33774 2009-01-17 Sebastian Pop <sebastian.pop@amd.com>
33775 Tobias Grosser <tobi.grosser@amd.com>
33776
33777 * graphite.c (graphite_trans_scop_block): Do not block single
33778 nested loops.
33779
33780 2009-01-16 Alexandre Oliva <aoliva@redhat.com>
33781
33782 * ebitmap.h (ebitmap_iter_init): Initialize all fields.
33783 * ipa-struct-reorg.c (gen_struct_type): Replace known-true
33784 test with assertion.
33785
33786 2009-01-16 Richard Guenther <rguenther@suse.de>
33787
33788 PR tree-optimization/38835
33789 PR middle-end/36227
33790 * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
33791 and INT + PTR -> (INT)(PTR p+ INT) folding.
33792 * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
33793
33794 2009-01-16 Adam Nemet <anemet@caviumnetworks.com>
33795
33796 PR target/38554
33797 * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
33798 the subreg from a lowpart subreg if it is also casting the value.
33799
33800 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
33801 Tobias Grosser <tobi.grosser@amd.com>
33802
33803 * graphite.c (compare_prefix_loops): New.
33804 (build_scop_canonical_schedules): Rewritten.
33805 (graphite_transform_loops): Move build_scop_canonical_schedules
33806 after build_scop_iteration_domain.
33807
33808 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
33809 Tobias Grosser <tobi.grosser@amd.com>
33810
33811 * graphite.c (add_conditions_to_domain): Add the loops to
33812 the dimension of the iteration domain. Do copy the domain
33813 only when it exists.
33814 (build_scop_conditions_1): Do not call add_conditions_to_domain.
33815 (add_conditions_to_constraints): New.
33816 (can_generate_code_stmt, can_generate_code): Removed.
33817 (gloog): Do not call can_generate_code.
33818 (graphite_transform_loops): Call add_conditions_to_constraints
33819 after building the iteration domain.
33820
33821 2009-01-16 Jakub Jelinek <jakub@redhat.com>
33822
33823 PR tree-optimization/38789
33824 * tree-ssa-threadedge.c
33825 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
33826 __builtin_constant_p.
33827
33828 2009-01-16 Kenneth Zadeck <zadeck@naturalbridge.com>
33829
33830 * dce.c (delete_unmarked_insns): Reversed the order that insns are
33831 examined before deleting them.
33832
33833 2009-01-16 Richard Earnshaw <rearnsha@arm.com>
33834
33835 * function.c (aggregate_value_p): Correctly extract the function
33836 type from CALL_EXPR_FN lookup.
33837
33838 2009-01-16 Hariharan Sandanagobalane <hariharan@picochip.com>
33839
33840 * config/picochip/picochip.c (picochip_override_options): Revert
33841 CFI asm flag disable commited previously.
33842
33843 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
33844 Tobias Grosser <tobi.grosser@amd.com>
33845 Jan Sjodin <jan.sjodin@amd.com>
33846
33847 * graphite.c (scan_tree_for_params): On substractions negate
33848 all the coefficients of the term.
33849 (clast_to_gcc_expression_red): New. Handle reduction expressions
33850 of more than two operands.
33851 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
33852 (get_vdef_before_scop): Handle also the case of default definitions.
33853
33854 2009-01-15 Richard Sandiford <rdsandiford@googlemail.com>
33855
33856 * caller-save.c (add_used_regs_1, add_used_regs): New functions.
33857 (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
33858 Also use them when walking CALL_INSN_FUNCTION_USAGE.
33859
33860 2009-01-15 H.J. Lu <hongjiu.lu@intel.com>
33861 Joey Ye <joey.ye@intel.com>
33862
33863 PR middle-end/37843
33864 * cfgexpand.c (expand_stack_alignment): Don't update stack
33865 boundary nor check incoming stack boundary here.
33866 (gimple_expand_cfg): Update stack boundary and check incoming
33867 stack boundary here.
33868
33869 2009-01-15 Kenneth Zadeck <zadeck@naturalbridge.com>
33870
33871 * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
33872
33873 2009-01-14 Jakub Jelinek <jakub@redhat.com>
33874
33875 PR rtl-optimization/38245
33876 * calls.c (expand_call): Add stack arguments to
33877 CALL_INSN_FUNCTION_USAGE even for pure calls (when
33878 ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
33879 in regs and partially in memory or BLKmode arguments.
33880 (emit_library_call_value_1): Add stack arguments to
33881 CALL_INSN_FUNCTION_USAGE even for pure calls (when
33882 ACCUMULATE_OUTGOING_ARGS).
33883 * dce.c: Include tm_p.h.
33884 (find_call_stack_args): New function.
33885 (deletable_insn_p): Call it for CALL_P insns. Add ARG_STORES
33886 argument.
33887 (mark_insn): Call find_call_stack_args for CALL_Ps.
33888 (prescan_insns_for_dce): Walk insns backwards in bb rather than
33889 forwards. Allocate and free arg_stores bitmap if needed, pass it
33890 down to deletable_insn_p, don't mark stores set in arg_stores
33891 bitmap, clear the bitmap at the beginning of each bb.
33892 * Makefile.in (dce.o): Depend on $(TM_P_H).
33893
33894 2009-01-14 Michael Meissner <gnu@the-meissners.org>
33895
33896 PR target/22599
33897 * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
33898 to make sure the insn is a conditional test (bug 22599). Reformat a
33899 few long lines.
33900
33901 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
33902
33903 PR middle-end/38431
33904 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
33905 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
33906 (gloog): Do not call cleanup_tree_cfg.
33907 (graphite_transform_loops): Call cleanup_tree_cfg after all
33908 scops have been code generated.
33909
33910 2009-01-14 Basile Starynkevitch <basile@starynkevitch.net>
33911 * doc/gty.texi (Invoking the garbage collector): Added new node
33912 and section documenting ggc_collect.
33913
33914 2009-01-14 Richard Guenther <rguenther@suse.de>
33915
33916 PR tree-optimization/38826
33917 PR middle-end/38477
33918 * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
33919 initialization notes only if we actually emitted a warning.
33920 (intra_create_variable_infos): Add constraints for a result decl
33921 that is passed by hidden reference.
33922 (build_pred_graph): Mark all related variables non-direct on
33923 address-taking.
33924
33925 2009-01-14 Nick Clifton <nickc@redhat.com>
33926
33927 * ira-conflicts.c: Include addresses.h for the definition of
33928 base_reg_class.
33929 (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
33930 * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
33931
33932 2009-01-13 Vladimir Makarov <vmakarov@redhat.com>
33933
33934 PR target/38811
33935 * Makefile.in (ira-lives.o): Add except.h.
33936
33937 * ira-lives.c: Include except.h.
33938 (process_bb_node_lives): Process can_throw_internal.
33939
33940 2009-01-13 Jakub Jelinek <jakub@redhat.com>
33941
33942 PR rtl-optimization/38774
33943 * combine.c (simplify_set): When undoing cc_use change, don't do
33944 PUT_CODE on the newly created comparison, but instead put back the
33945 old comparison.
33946
33947 2009-01-13 Joseph Myers <joseph@codesourcery.com>
33948
33949 * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
33950 values. Remove duplicate arm8 entry.
33951
33952 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
33953
33954 PR tree-optimization/38786
33955 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
33956 the SSA_NAME case of expand_scalar_variables_expr.
33957 Set the type of an expression to the type of its assign statement.
33958 (expand_scalar_variables_expr): Also gather the scalar computation
33959 used to index the memory access. Do not pass loop_p.
33960 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
33961 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
33962 the gimple_stmt_iterator where it inserts new code.
33963 Do not pass loop_p.
33964 (copy_bb_and_scalar_dependences): Do not pass loop_p.
33965 (translate_clast): Update call to copy_bb_and_scalar_dependences.
33966
33967 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
33968
33969 * graphite.h (debug_value): Removed.
33970 * graphite.c (debug_value): Removed.
33971
33972 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
33973
33974 * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
33975 ldrd/strd with two 32-bit instructions.
33976
33977 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
33978
33979 * config/arm/arm.c (struct processors): Pass for speed down into
33980 cost helper functions.
33981 (const_ok_for_op): Handle COMPARE and inequality nodes.
33982 (arm_rtx_costs_1): Rewrite.
33983 (arm_size_rtx_costs): Update prototype.
33984 (arm_rtx_costs): Pass speed down to helper functions.
33985 (arm_slowmul_rtx_costs): Rework cost calculations.
33986 (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
33987 (arm_9e_rtx_costs): Likewise.
33988
33989 2009-01-13 Uros Bizjak <ubizjak@gmail.com>
33990
33991 * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
33992 relocations of local symbols wider than UNITS_PER_WORD are not valid.
33993 (alpha_legitimize_address): Do not split local symbols wider than
33994 UNITS_PER_WORD into HIGH/LO_SUM parts.
33995
33996 2009-01-13 Danny Smith <dannysmith@users.sourceforge.net>
33997
33998 PR bootstrap/38580
33999 * gcc.c (process_command): Replace call to execvp with calls
34000 to pex_one and exit.
34001
34002 2009-01-03 Anatoly Sokolov <aesok@post.ru>
34003
34004 PR target/29141
34005 * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
34006 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
34007 variant for devices with 3-byte PC.
34008 (__tablejump_elpm__): New.
34009
34010 2009-01-12 Jakub Jelinek <jakub@redhat.com>
34011
34012 PR c/32041
34013 * c-parser.c (c_parser_postfix_expression): Allow `->' in
34014 offsetof member-designator, handle it as `[0].'.
34015
34016 2009-01-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34017
34018 * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
34019 function when not using named sections on targets with named sections
34020 if branch distance is less than 262132.
34021
34022 2009-01-12 Richard Earnshaw <rearnsha@arm.com>
34023
34024 * combine.c (combine_instructions): Recompute
34025 optimize_this_for_speed_p for each BB in the main combine loop.
34026
34027 2009-01-12 Tomas Bily <tbily@suse.cz>
34028
34029 PR middlend/38385
34030 * tree-loop-distribution.c (prop_phis): New function.
34031 (generate_builtin): Call prop_phis.
34032
34033 2009-01-12 Jakub Jelinek <jakub@redhat.com>
34034
34035 PR tree-optimization/38807
34036 * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
34037 gimple_visited_p unless stmt is GIMPLE_ASSIGN.
34038
34039 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
34040
34041 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
34042 subreg of op0 to the original op0.
34043
34044 2009-01-11 Laurent GUERBY <laurent@guerby.net>
34045
34046 * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
34047
34048 2009-01-11 Markus Schoepflin <markus.schoepflin@comsoft.de>
34049
34050 PR debug/7055
34051 * mips-tfile.c (parse_def): Fix parsing of def strings
34052 starting with digits.
34053
34054 2009-01-10 Jakub Jelinek <jakub@redhat.com>
34055
34056 PR target/38695
34057 * config/arm/arm.c (arm_is_long_call_p): Don't call
34058 arm_function_in_section_p if decl isn't a FUNCTION_DECL.
34059
34060 2009-01-09 Steven Bosscher <steven@gcc.gnu.org>
34061
34062 * regrename.c (regrename_optimize): Fix dumping.
34063 (find_oldest_value_reg): Preserve REG_POINTER.
34064 (copy_hardreg_forward_1): Likewise.
34065
34066 2009-01-09 Diego Novillo <dnovillo@google.com>
34067
34068 * gimple.h (struct gimple_statement_base) <uid>: Document
34069 the restrictions on its use.
34070 (gimple_uid): Tidy.
34071 (gimple_set_uid): Tidy.
34072
34073 2009-01-09 Jakub Jelinek <jakub@redhat.com>
34074
34075 * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
34076 zero guard even if align_bytes != 0 and count is smaller than
34077 size_needed.
34078
34079 2009-01-09 Vladimir Makarov <vmakarov@redhat.com>
34080
34081 PR rtl-optimization/38495
34082 * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
34083 (add_range_and_copies_from_move_list): Print all added ranges.
34084 Add ranges to memory optimized destination.
34085
34086 2009-01-09 Jakub Jelinek <jakub@redhat.com>
34087
34088 PR target/38686
34089 PR target/38708
34090 * config/i386/i386.c (override_options): Reject
34091 -mstringop-strategy=rep_8byte with -m32.
34092 (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
34093 to 1. Do count comparison against epilogue_size_needed at compile
34094 time even when count_exp was constant forced into register. For
34095 size_needed don't jump to epilogue, instead just avoid aligning
34096 and invoke the body algorithm. If need_zero_guard, add zero guard
34097 even if count is non-zero, but smaller than size_needed + number of
34098 bytes that could be stored for alignment.
34099 (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
34100 to 1. If need_zero_guard, add zero guard even if count is non-zero,
34101 but smaller than size_needed + number of bytes that could be stored
34102 for alignment. Compare size_needed with epilogue_size_needed instead
34103 of desired_align - align, don't adjust size_needed, pass
34104 epilogue_size_needed to the epilogue expanders.
34105
34106 PR c/35742
34107 * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
34108
34109 2009-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34110
34111 * pa.c (last_address): Change to unsigned.
34112 (update_total_code_bytes): Change argument to unsigned. Don't
34113 check if insn addresses are set.
34114 (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
34115 addresses are not set.
34116 (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
34117
34118 2009-01-09 Nick Clifton <nickc@redhat.com>
34119
34120 * config/sh/symbian.c: Replace uses of DECL_INLINE with
34121 DECL_DECLARED_INLINE_P.
34122
34123 2009-01-09 Jakub Jelinek <jakub@redhat.com>
34124
34125 PR middle-end/38347
34126 * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
34127 GET_MODE (op0) in operand_subword_force calls.
34128
34129 PR middle-end/38771
34130 * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
34131 fold_convert arg0 operands to TREE_TYPE (op0) first.
34132
34133 2009-01-08 Vladimir Makarov <vmakarov@redhat.com>
34134
34135 * params.def (ira-max-conflict-table-size): Decrease default value
34136 to 1000.
34137
34138 2009-01-08 Jakub Jelinek <jakub@redhat.com>
34139
34140 PR tree-optimization/37031
34141 * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
34142 on parameter_set.
34143 (build_access_matrix): Reserve correct size for AM_MATRIX vector,
34144 allocate it using gc instead of heap, use VEC_quick_push instead of
34145 VEC_safe_push.
34146 * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
34147 instead of heap, use VEC_quick_push instead of VEC_safe_push.
34148 * tree-data-ref.h (struct access_matrix): Change matrix to gc
34149 allocated vector from heap allocated.
34150 * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
34151 * tree-loop-linear.c (linear_transform_loops): Allocate nest
34152 vector only after perfect_loop_nest_depth call.
34153
34154 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
34155 Jan Sjodin <jan.sjodin@amd.com>
34156
34157 PR tree-optimization/38559
34158 * graphite.c (debug_value, copy_constraint,
34159 swap_constraint_variables, scale_constraint_variable, ): New.
34160 (get_lower_bound, get_upper_bound): Removed.
34161 (graphite_trans_bb_strip_mine): Clean up this code that works
34162 only for constant number of iterations. Fully copy upper and
34163 lower bound constraints, not only the constant part of them.
34164 * graphite.h (debug_value): Declared.
34165
34166 2009-01-08 Ira Rosen <irar@il.ibm.com>
34167
34168 PR tree-optimization/37194
34169 * tree-vect-transform.c (vect_estimate_min_profitable_iters):
34170 Don't add the cost of cost model guard in prologue to scalar
34171 outside cost in case of known number of iterations.
34172
34173 2009-01-07 Nathan Froyd <froydnj@codesourcery.com>
34174 Alan Modra <amodra@bigpond.net.au>
34175
34176 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
34177 non-word-aligned REG+CONST addressing.
34178
34179 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
34180
34181 PR target/38706
34182 * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
34183 free_after_compilation when outputting a thunk.
34184 (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
34185 Do not call free_after_compilation here.
34186
34187 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
34188
34189 * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
34190 (ix86_valid_target_attribute_inner_p): Ditto.
34191
34192 2009-01-07 Jan Sjodin <jan.sjodin@amd.com>
34193
34194 PR tree-optimization/38492
34195 PR tree-optimization/38498
34196 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
34197 * tree-chrec.h (scev_is_linear_expression): Declared.
34198 * graphite.c (graphite_cannot_represent_loop_niter): New.
34199 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
34200 (graphite_loop_normal_form): Use gcc_assert.
34201 (scan_tree_for_params): Use CASE_CONVERT.
34202 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
34203 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
34204 Use gcc_assert. Discard scops that contain unhandled cases.
34205 (build_scop_conditions): Return a boolean status for unhandled cases.
34206 (strip_mine_profitable_p): Print the loop number, not its depth.
34207 (is_interchange_valid): Pass the depth of the loop nest, don't
34208 recompute it wrongly.
34209 (graphite_trans_bb_block): Same.
34210 (graphite_trans_bb_block): Print tentative of loop blocking.
34211 (graphite_trans_scop_block): Do not print that the loop has been
34212 blocked.
34213 (graphite_transform_loops): Do not handle scops that contain condition
34214 scalar phi nodes.
34215
34216 2009-01-07 H.J. Lu <hongjiu.lu@intel.com>
34217
34218 AVX Programming Reference (December, 2008)
34219 * config/i386/avxintrin.h (_mm256_stream_si256): New.
34220 (_mm256_stream_pd): Likewise.
34221 (_mm256_stream_ps): Likewise.
34222
34223 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
34224 IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
34225 (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
34226 (bdesc_special_args): Add __builtin_ia32_movntdq256,
34227 __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
34228 (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
34229 (ix86_expand_special_args_builtin): Likewise.
34230
34231 * config/i386/sse.md (AVXMODEDI): New.
34232 (avx_movnt<mode>): Likewise.
34233 (avx_movnt<mode>): Likewise.
34234 (<sse>_movnt<mode>): Remove AVX support.
34235 (sse2_movntv2di): Likewise.
34236
34237 2009-01-07 Richard Guenther <rguenther@suse.de>
34238
34239 PR middle-end/38751
34240 * fold-const.c (extract_muldiv): Remove obsolete comment.
34241 (fold_plusminus_mult_expr): Undo MINUS_EXPR
34242 to PLUS_EXPR canonicalization for the canonicalization.
34243
34244 2009-01-07 Gerald Pfeifer <gerald@pfeifer.com>
34245
34246 * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
34247 hosted cross-compilers generating less efficient code.
34248
34249 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
34250
34251 * function.h (rtl_data): Add a dbr_scheduled_p field.
34252 * reorg.c (dbr_schedule): Set it.
34253 (gate_handle_delay_slots): Check it.
34254 * config/mips/mips.c (mips_base_delayed_branch): Delete.
34255 (mips_reorg): Check flag_delayed_branch instead of
34256 mips_base_delayed_branch.
34257 (mips_override_options): Don't set mips_base_delayed_branch
34258 or flag_delayed_branch.
34259
34260 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
34261
34262 PR rtl-optimization/38426.
34263 * ira.c (ira): Set current_function_is_leaf earlier.
34264
34265 2009-01-06 Jakub Jelinek <jakub@redhat.com>
34266
34267 PR rtl-optimization/38722
34268 * combine.c (try_combine): Don't modify PATTERN (i3) and notes
34269 too early, only set a flag and modify after last possible
34270 undo_all point.
34271
34272 2009-01-06 Janis Johnson <janis187@us.ibm.com>
34273
34274 PR c/34252
34275 * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
34276 * real.c (decimal_single_format): Correct values of emin and emax.
34277 (decimal_double_format): Ditto.
34278 (decimal_quad_format): Ditto.
34279 * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
34280 computation of DECnn_MIN and DECnn_MAX for corrected values of
34281 emin and emax. Define __DECnn_SUBNORMAL_MIN__ instead of
34282 __DECnn_MIN__, and adjust its computation for the corrected value
34283 of emin.
34284
34285 2009-01-06 Jan Hubicka <jh@suse.cz>
34286
34287 PR target/38744
34288 * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
34289
34290 2009-01-06 Gerald Pfeifer <gerald@pfeifer.com>
34291
34292 * doc/contrib.texi (Contributors): Slightly adjust the end note.
34293 Add Robert Clark to the list of testers.
34294
34295 2009-01-06 Jan Hubicka <jh@suse.cz>
34296 Kai Tietz <kai.tietz@onevision.com>
34297
34298 * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
34299 * config/i386/i386.c (ix86_expand_call): Add clobbers.
34300
34301 2009-01-06 Jan Hubicka <jh@suse.cz>
34302 Kai Tietz <kai.tietz@onevision.com>
34303
34304 * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
34305 for w64 ABI.
34306 * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
34307 (ix86_nsaved_regs): Count only general purpose regs.
34308 (ix86_nsaved_sseregs): New.
34309 (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
34310 to 16 for w64; compute padding and size of sse reg save area.
34311 (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
34312 general purpose regs.
34313 (ix86_emit_save_sse_regs_using_mov): New.
34314 (ix86_expand_prologue): Save SSE regs if needed.
34315 (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
34316 (ix86_emit_restore_sse_regs_using_mov): New.
34317 (ix86_expand_epilogue): Save SSE regs if needed.
34318
34319 2009-01-06 Jan Hubicka <jh@suse.cz>
34320 Kai Tietz <kai.tietz@onevision.com>
34321
34322 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
34323 * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
34324 functions when accumulate outgoing args is off.
34325
34326 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
34327
34328 PR bootstrap/38742
34329 * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
34330 before using pseudos_have_intersected_live_ranges_p.
34331
34332 * ira-int.h (ira_assert): Always define.
34333
34334 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
34335
34336 AVX Programming Reference (December, 2008)
34337 * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
34338 (_mm256_permute2_pd): Likewise.
34339 (_mm_permute2_ps): Likewise.
34340 (_mm256_permute2_ps): Likewise.
34341 * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
34342 * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
34343
34344 * config/i386/i386.c (ix86_builtins): Remove
34345 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
34346 IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
34347 (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
34348 V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
34349 and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
34350 (bdesc_args): Remove __builtin_ia32_vpermil2pd,
34351 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
34352 __builtin_ia32_vpermil2ps256.
34353 (ix86_init_mmx_sse_builtins): Updated.
34354 (ix86_expand_args_builtin): Likewise.
34355
34356 2009-01-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34357
34358 * pa.c (output_call): Relocate non-jump insns in the delay slot of
34359 long absolute calls when generating PA 2.0 code.
34360
34361 2009-01-05 Vladimir Makarov <vmakarov@redhat.com>
34362
34363 PR rtl-optimization/38583
34364 * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
34365
34366 * params.def (ira-max-conflict-table-size): New.
34367
34368 * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
34369
34370 * ira.h (ira_conflicts_p): New external definition.
34371
34372 * ira-conflicts.c (build_conflict_bit_table): Do not build too big
34373 table. Report this. Return result of building.
34374 (ira_build_conflicts): Use ira_conflicts_p. Check result of
34375 building conflict table.
34376
34377 * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
34378 (ira_color): Use ira_conflicts_p.
34379
34380 * global.c: Include ira.h.
34381 (pseudo_for_reload_consideration_p, build_insn_chain): Use
34382 ira_conflicts_p.
34383
34384 * Makefile.in (global.o): Add ira.h.
34385
34386 * ira-build.c (mark_all_loops_for_removal,
34387 propagate_some_info_from_allocno): New.
34388 (remove_unnecessary_allocnos): Call
34389 propagate_some_info_from_allocno.
34390 (remove_low_level_allocnos): New.
34391 (remove_unnecessary_regions): Add parameter. Call
34392 mark_all_loops_for_removal and remove_low_level_allocnos. Pass
34393 parameter to remove_unnecessary_regions.
34394 (ira_build): Remove all regions but root if the conflict table was
34395 not built. Update conflict hard regs for allocnos crossing calls.
34396
34397 * ira.c (ira_conflicts_p): New global.
34398 (ira): Define and use ira_conflicts_p.
34399
34400 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
34401 count_spilled_pseudo, find_reg, alter_reg, finish_spills,
34402 emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
34403
34404 2009-01-06 Ben Elliston <bje@au.ibm.com>
34405
34406 * gengtype-lex.l (YY_NO_INPUT): Define.
34407
34408 2009-01-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
34409
34410 PR c/34911
34411 * c-common.c (handle_vector_size_attribute): Also reject
34412 BOOLEAN_TYPE types.
34413
34414 2009-01-05 Sebastian Pop <sebastian.pop@amd.com>
34415
34416 PR tree-optimization/38492
34417 * graphite.c (rename_map_elt, debug_rename_elt,
34418 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
34419 rename_map_elt_info, eq_rename_map_elts,
34420 get_new_name_from_old_name, bb_in_sese_p): Moved around.
34421 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
34422 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
34423 (sese_build_livein_liveouts): New.
34424 (new_sese, free_sese): New.
34425 (new_scop): Call new_sese.
34426 (free_scop): Call free_sese.
34427 (rename_variables_from_edge, rename_phis_end_scop): Removed.
34428 (register_old_new_names): Renamed register_old_and_new_names.
34429 (register_scop_liveout_renames, add_loop_exit_phis,
34430 insert_loop_close_phis, struct igp,
34431 default_liveout_before_guard, add_guard_exit_phis,
34432 insert_guard_phis, copy_renames): New.
34433 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
34434 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
34435 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
34436 (scop_adjust_phis_for_liveouts): New.
34437 (gloog): Call scop_adjust_phis_for_liveouts.
34438
34439 * graphite.h (struct sese): Documented. Added fields liveout,
34440 num_ver and livein.
34441 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
34442 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
34443 (struct scop): Added field liveout_renames.
34444 (SCOP_LIVEOUT_RENAMES): New.
34445
34446 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
34447
34448 PR tree-optimization/38510
34449 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
34450 (translate_clast): Call recompute_all_dominators before
34451 graphite_verify.
34452 (gloog): Call recompute_all_dominators before graphite_verify.
34453
34454 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
34455 Jan Sjodin <jan.sjodin@amd.com>
34456
34457 PR tree-optimization/38500
34458 * graphite.c (create_sese_edges): Call fix_loop_structure after
34459 splitting blocks.
34460
34461 2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
34462
34463 * config.gcc: Add m32r*-*-rtems*.
34464 * config/m32r/rtems.h: New file.
34465
34466 2009-01-05 Ben Elliston <bje@au.ibm.com>
34467
34468 * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
34469 (.po.pox): Likewise.
34470 (po/gcc.pot): Likewise.
34471
34472 2009-01-04 David S. Miller <davem@davemloft.net>
34473
34474 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
34475 (STARTING_FRAME_OFFSET): Always set to zero.
34476
34477 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
34478
34479 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
34480 * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
34481 fixed-point types, and vectors of the same.
34482
34483 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
34484
34485 * config/mips/sync.md (*mb_barrier): Rename to...
34486 (*memory_barrier): ...this.
34487
34488 2009-01-04 Jonathan Wakely <jwakely.gcc@gmail.com>
34489
34490 * doc/extend.texi (Function Attributes): Move @cindex after @item
34491 for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
34492 and put in alphabetical order. Fix 'target' name and put in order.
34493 * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
34494 typos.
34495
34496 2009-01-04 Uros Bizjak <ubizjak@gmail.com>
34497
34498 * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
34499 (memory_barrier): Expand as unspec instead of unspec_volatile.
34500 Remove mem:BLK from insn operands. Use Pmode scratch register.
34501 (*memory_barrier): Define as unspec instead of unspec_volatile.
34502 Use (match_dup 0) as input operand.
34503
34504 * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
34505 * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
34506 unspec_volatile. Remove mem:BLK from insn operands. Use Pmode
34507 scratch register. Remove operand 1.
34508 (*stbar): Define as unspec instead of unspec_volatile.
34509 Use (match_dup 0) as input operand, remove (const_int 8).
34510 (*membar): Define as unspec instead of unspec_volatile.
34511 Use (match_dup 0) as input operand, remove input operand 2.
34512
34513 * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
34514 (memory_barrier): Expand as unspec instead of unspec_volatile.
34515 Remove mem:BLK from insn operands. Use Pmode scratch register.
34516 (*memory_barrier): Define as unspec instead of unspec_volatile.
34517 Use (match_dup 0) as input operand.
34518
34519 * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
34520 Remove mem:BLK from insn operands. Use Pmode scratch register.
34521 Set volatile flag on operand 0.
34522 (*memory_barrier): New insn pattern.
34523
34524 * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
34525 insn operands.
34526 (*memory_barrier): Use (match_dup 0) as input operand.
34527
34528 * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
34529 Remove mem:BLK from insn operands. Use Pmode scratch register.
34530 Set volatile flag on operand 0.
34531 (*mb_internal): New insn pattern.
34532
34533 * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
34534
34535 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
34536
34537 PR middle-end/38586
34538 * function.c (struct temp_slot): Move to the section of the file
34539 that deals with temp slots. Remove field 'address'.
34540 (temp_slot_address_table): New hash table of address -> temp slot.
34541 (struct temp_slot_address_entry): New struct, items for the table.
34542 (temp_slot_address_compute_hash, temp_slot_address_hash,
34543 temp_slot_address_eq, insert_temp_slot_address): Support functions
34544 for the new table.
34545 (find_temp_slot_from_address): Rewrite to use the new hash table.
34546 (remove_unused_temp_slot_addresses): Remove addresses of temp
34547 slots that have been made available.
34548 (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
34549 worker function for remove_unused_temp_slot_addresses.
34550 (assign_stack_temp_for_type): Don't clear the temp slot address list.
34551 Add the temp slot address to the address -> temp slot map.
34552 (update_temp_slot_address): Update via insert_temp_slot_address.
34553 (free_temp_slots): Call remove_unused_temp_slot_addresses.
34554 (pop_temp_slots): Likewise.
34555 (init_temp_slots): Allocate the address -> temp slot map, or empty
34556 the map if it is already allocated.
34557 (prepare_function_start): Initialize temp slot processing.
34558
34559 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
34560
34561 PR middle-end/38584
34562 * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
34563 Calculate the size of all stack vars assuming no packing of stack
34564 vars will happen, replacing a quadratic algorithm with a linear one.
34565
34566 2009-01-03 Jakub Jelinek <jakub@redhat.com>
34567
34568 PR target/38707
34569 * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
34570 can't be used.
34571
34572 2009-01-03 Diego Novillo <dnovillo@google.com>
34573
34574 * doc/contrib.texi: Update contributions.
34575
34576 2009-01-03 Jakub Jelinek <jakub@redhat.com>
34577
34578 PR c++/38705
34579 * builtins.c (fold_builtin_memory_op): Give up if either operand
34580 is volatile. Set srctype or desttype to non-qualified version
34581 of the other type.
34582
34583 PR c/38700
34584 * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
34585 and FUNCTION_DECLs.
34586
34587 2009-01-02 Kenneth Zadeck <zadeck@naturalbridge.com>
34588
34589 PR rtl-optimization/35805
34590 * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
34591 problem if fast dce is able to remove any instructions.
34592 * dce.c (dce_process_block): Fix dump message.
34593
34594 2009-01-02 Mark Mitchell <mark@codesourcery.com>
34595
34596 PR 33649
34597 * tree-ssa-pre.c (compute_antic): Correct loop bounds.
34598
34599 2009-01-02 Jakub Jelinek <jakub@redhat.com>
34600
34601 PR middle-end/38690
34602 * tree-flow.h (op_code_prio, op_prio): New prototypes.
34603 * tree-pretty-print.c (op_code_prio): New function.
34604 (op_prio): No longer static. Use op_code_prio.
34605 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
34606 Use op_prio and op_code_prio to determine if () should be
34607 printed around operand(s) or not.
34608
34609 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
34610 dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
34611 dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
34612 dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
34613 pp_character instead of pp_string for single letter printing.
34614
34615 2009-01-02 Richard Sandiford <rdsandiford@googlemail.com>
34616
34617 * doc/extend.texi: Fix '#pragma GCC option' typo.
34618
34619 2009-01-02 Richard Guenther <rguenther@suse.de>
34620
34621 * doc/install.texi (--enable-checking): Mention different
34622 default for stage1.
34623 (--enable-stage1-checking): Document.
34624
34625 2009-01-01 Andrew Pinski <pinskia@gmail.com>
34626
34627 PR middle-end/30142
34628 * tree-cfg.c (verify_expr): Add INDIRECT_REF case. Change MODIFY_EXPR
34629 case to be an error.
34630
34631 2009-01-02 Ben Elliston <bje@au.ibm.com>
34632
34633 * config/fp-bit.h (pack_d): Constify argument.
34634 * config/fp-bit.c (makenan): Constify return type. Remove casts.
34635 (isnan): Constify argument.
34636 (isinf): Likewise.
34637 (iszero): Likewise.
34638 (pack_d): Likewise.
34639 (_fpadd_parts): Constify return type.
34640 (_fpmul_parts): Likewise.
34641 (_fpdiv_parts): Likewise.
34642
34643 2009-01-01 Jakub Jelinek <jakub@redhat.com>
34644
34645 PR c/36489
34646 * c-typeck.c (add_pending_init): Add IMPLICIT argument. Only
34647 warn about overwriting initializer with side-effects or
34648 -Woverride-init if !IMPLICIT.
34649 (output_init_element): Likewise. Pass IMPLICIT down to
34650 add_pending_init.
34651 (process_init_element): Add IMPLICIT argument. Pass it down
34652 to output_init_element.
34653 (push_init_element, pop_init_level, set_designator): Adjust
34654 process_init_element callers.
34655 (set_nonincremental_init, set_nonincremental_init_from_string):
34656 Adjust add_pending_init callers.
34657 (output_pending_init_elements): Adjust output_init_element callers.
34658 * c-tree.h (process_init_element): Adjust prototype.
34659 * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
34660 process_init_element callers.
34661
34662 \f
34663 Copyright (C) 2009 Free Software Foundation, Inc.
34664
34665 Copying and distribution of this file, with or without modification,
34666 are permitted in any medium without royalty provided the copyright
34667 notice and this notice are preserved.