OSDN Git Service

ffe2782057512a90059c86ad40d134b768b9930e
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2009-12-29  Dave Korn  <dave.korn.cygwin@gmail.com>
2
3   2009-10-06 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
4
5         PR objective-c++/41595
6         * config/darwin.c (darwin_label_is_anonymous_local_objc_name):
7         New function to recognize objective c/c++ internal symbols,
8         including mangled ones.
9         * config/darwin.h (ASM_OUTPUT_LABELREF): Use
10         darwin_label_is_anonymous_local_objc_name to detect both
11         mangled and clear ObjC internal symbols.
12
13 2009-12-28  H.J. Lu  <hongjiu.lu@intel.com>
14
15         PR middle-end/41344
16         * omp-low.c (diagnose_sb_2): Handle GIMPLE_COND.
17
18 2009-12-24  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
19
20         PR target/42457
21         * config/avr/avr.c (avr_extra_arch_macro): Remove static.
22         (avr_cpu_cpp_builtins): Remove.
23         * config/avr/avr.h (avr_extra_arch_macro): Add prototype.
24         * config/avr/avr-c.c: New File.
25         (avr_cpu_cpp_builtins) : Add.
26         * config/avr/t-avr: Add make information for avr-c.
27         * config.gcc (avr-*-*): Include avr-c.o as c and cpp object. 
28
29 2009-12-24  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
30
31         PR target/35013, 27192
32         * config/avr/avr.c (print_operand_address): Print correct program
33         memory address.
34         Add warning for large device offset addresses.
35         (avr_assemble_integer): Ditto.
36         (print_operand): Add warnings for incorrect addressing.
37         (out_movqi_r_mr): Tag assembler with new address codes.
38         (out_movhi_r_mr): Ditto.
39         (out_movsi_r_mr): Ditto.
40         (out_movqi_mr_r): Ditto.
41         (out_movhi_mr_r): Ditto.
42         (out_movsi_mr_r): Ditto.
43         * config/avr/predicates.md (text_segment_operand): New predicate.
44         * config/avr/avr.md (jump): Tag assembler with new address codes.
45         (call_insn): Ditto.
46         (call_value_insn): Ditto.
47         (*tablejump_lib): Ditto.
48         (*cbi): Ditto.
49         (*sbi): Ditto.
50         (indirect_jump): New define_expand.
51         (jcindirect_jump): New pattern for constant expression jump.
52         (njcindirect_jump): Renamed old indirect_jump.
53
54 2009-12-24  Steven Bosscher  <steven@gcc.gnu.org>
55
56         * store-motion.c (build_store_vectors): Clear regs_set_in_block at
57         the start of a loop over basic blocks.
58
59 2009-12-24  Julian Brown  <julian@codesourcery.com>
60             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
61
62         PR target/40887
63         * config/arm/arm.c (output_call_mem): Remove armv5 support.
64         * config/arm/arm.md (*call_mem): Disable for armv5. Add note.
65         (*call_value_mem): Likewise.
66
67 2009-12-23  Jakub Jelinek  <jakub@redhat.com>
68
69         PR rtl-optimization/42475
70         * combine.c (make_compound_operation) <case SUBREG>: Use mode of
71         SUBREG_REG (x) instead of tem's mode.
72
73 2009-12-23  Jakub Jelinek  <jakub@redhat.com>
74             Cary Coutant  <ccoutant@google.com>
75
76         PR debug/42454
77         * dwarf2out.c (add_ranges_by_labels): Conditionally Add DW_AT_ranges
78         attribute.
79         (dwarf2out_finish): Change calls to add_ranges_by_labels.
80
81 2009-12-23  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
82
83         PR target/42093
84         * config/arm/arm.h (CASE_VECTOR_PC_RELATIVE): Fix macro usage
85         to TARGET_THUMB1.
86         (CASE_VECTOR_SHORTEN_MODE): Allow signed offsets
87         only for TARGET_THUMB1.
88
89 2009-12-23  Ramana Radhakrishnan  <ramrad01@arm.com>
90
91         PR target/40670
92         * config/arm/arm.md: Split for Thumb1 as well.
93
94 2009-12-22  Cary Coutant  <ccoutant@google.com>
95
96         PR debug/42454
97         * dwarf2out.c (dwarf2out_finish): Don't output range for .text
98         section unless .text section was used.  Likewise for cold.
99
100 2009-12-22  Brian Hackett  <bhackett1024@gmail.com>
101
102         * doc/plugins.texi: Rename pre-genericize event.
103
104 2009-12-22  Paolo Carlini  <paolo.carlini@oracle.com>
105
106         PR driver/42463
107         * params.def ([PARAM_PREDICTABLE_BRANCH_OUTCOME]): Fix typo in
108         help string.
109
110         * doc/invoke.texi: Fix typo.
111
112 2009-12-22  Paul Brook <paul@codesourcery.com>
113
114         * doc/tm.texi (ARG_POINTER_CFA_OFFSET): Document new default.
115         * defaults.h (ARG_POINTER_CFA_OFFSET): Add pretend_args_size.
116         * config/spu/spu.h (ARG_POINTER_CFA_OFFSET): Add pretend_args_size.
117
118 2009-12-21  Brian Hackett  <bhackett1024@gmail.com>
119
120         * plugin.def: Rename pre-genericize event.
121         * plugin.c (register_callback, invoke_plugin_callbacks): Same.
122         * c-decl.c (finish_function): Invoke callbacks on above event.
123
124 2009-12-21  Jakub Jelinek  <jakub@redhat.com>
125
126         PR rtl-optimization/42429
127         * reload.c (find_reloads_subreg_address): When adjusting mode of
128         MEM, update also MEM_SIZE if it is set.
129
130 2009-12-21  H.J. Lu  <hongjiu.lu@intel.com>
131
132         PR bootstrap/42345
133         * acinclude.m4 (gcc_GAS_FLAGS): New.
134         (gcc_GAS_CHECK_FEATURE): Use gcc_GAS_FLAGS.
135         * configure: Regenerated.
136
137 2009-12-20  Michael Matz  <matz@suse.de>
138
139         PR tree-optimization/42027
140         * cfgexpand.c (expand_gimple_cond): Use jumpy sequence for &, &&, |
141         and || if jumps are cheap.
142
143 2009-12-19  Richard Guenther  <rguenther@suse.de>
144
145         PR lto/42401
146         * lto-streamer-out.c (tree_is_indexable): Local statics
147         are indexable.
148         (lto_output_tree_ref): Adjust assert.
149
150 2009-12-19  Richard Guenther  <rguenther@suse.de>
151
152         PR tree-optimization/42108
153         * tree-ssa-sccvn.c (last_vuse_ptr): New variable.
154         (vn_reference_lookup_2): Update last seen VUSE.
155         (vn_reference_lookup_3): Avoid updating last seen VUSE after
156         translating.
157         (visit_reference_op_load): Use last seen VUSE from the first
158         lookup when entering into the table.
159
160 2009-12-19  Joern Rennecke  <amylaar@spamcop.net>
161
162         * Makefile.in (PLUGIN_HEADERS): Add more headers.
163
164         * tree-pass.h (GCC_PASS_LISTS): Define.
165         (PASS_LIST_NO_all_lowering_passes): New enumeration value.
166         (PASS_LIST_NO_all_small_ipa_passes): Likewise.
167         (PASS_LIST_NO_all_regular_ipa_passes): Likewise.
168         (PASS_LIST_NO_all_lto_gen_passes): Likewise.
169         (PASS_LIST_NO_all_passes): Likewise.
170         (PASS_LIST_NUM): Likewise.
171         (gcc_pass_lists): Declare.
172         * passes.c (gcc_pass_lists): Define.
173
174 2009-12-18  Richard Guenther  <rguenther@suse.de>
175
176         * tree-ssa-sccvn.c (copy_nary): New function.
177         (copy_phis): Likewise.
178         (copy_references): Likewise.
179         (process_scc): Avoid last iteration by copying the
180         optimistic table to the valid table.
181
182 2009-12-17  Jakub Jelinek  <jakub@redhat.com>
183
184         * dwarf2out.c (loc_descriptor): For SYMBOL_REFs and LABEL_REFs
185         use DW_OP_addr+DW_OP_stack_value instead of DW_OP_implicit_value.
186         (add_const_value_attribute): For CONST_STRING, SYMBOL_REFs and
187         LABEL_REFs use DW_OP_addr+DW_OP_stack_value DW_AT_location instead of
188         DW_AT_const_value.
189
190 2009-12-17  Alexandre Oliva  <aoliva@redhat.com>
191
192         PR debug/41679
193         * var-tracking.c (count_uses): Count MO_VAL_USE of original
194         MO_VAL_SET value for COND_EXEC.
195         (add_stores): Handle conditional stores.
196
197         PR debug/41679
198         * var-tracking.c (use_type): Remove indirection from loc.
199         (count_uses): Dereference incoming loc early.
200         (add_uses): Dereference incoming loc early.
201
202         PR debug/41679
203         * var-tracking.c (add_stores): Avoid value mode mismatch for
204         promoted declarations.
205
206 2009-12-17  Jakub Jelinek  <jakub@redhat.com>
207
208         PR c++/42386
209         * ipa.c (function_and_variable_visibility): Clear same_comdat_group
210         links of DECL_EXTERNAL nodes.
211
212 2009-12-17  Sandra Loosemore  <sandra@codesourcery.com>
213
214         * doc/rtl.texi (Vector Operations): Clarify vec_select result mode.
215
216 2009-12-17  Julian Brown  <julian@codesourcery.com>
217
218         * config/arm/bpabi-v6m.S (test_div_by_zero): New macro.
219         (aeabi_ldivmod, aeabi_uldivmod): Use above macro.
220         * config/arm/bpabi.S (test_div_by_zero): New macro.
221         (aeabi_ldivmod, aeabi_uldivmod): Use above macro.
222         * config/arm/lib1funcs.asm (ARM_LDIV0): Tail-call int div-by-zero
223         handler for EABI. Add signed/unsigned argument, pass correct value
224         to that handler.
225         (THUMB_LDIV0): Same, for Thumb.
226         (DIV_FUNC_END): Add signed argument.
227         (WEAK): New macro (for EABI).
228         (__udivsi3, __umodsi3): Add unsigned argument to DIV_FUNC_END. For
229         __udivsi3, add entry point which skips division-by-zero test.
230         (__divsi3, __modsi3): Add signed argument to DIV_FUNC_END.
231         (__aeabi_uidivmod, __aeabi_idivmod): Check for division by zero.
232         Call __udivsi3 or __divsi3 via entry points which skip
233         division-by-zero tests.
234         (__div0): Rename to __aeabi_idiv0, __aeabi_ldiv0 for EABI, and
235         declare those names weak.
236
237 2009-12-17  Richard Guenther  <rguenther@suse.de>
238
239         PR middle-end/42397
240         * builtins.c (get_object_alignment): Properly deal with
241         a CONST_DECL base.
242         * expr.c (emit_block_move_hints): Assert the alignment makes
243         sense.
244
245 2009-12-17  Uros Bizjak  <ubizjak@gmail.com>
246
247         PR target/32280
248         * config/i386/i386-modes.def (V1TI): New vector mode.
249         * config/i386/i386.h (VALID_SSE_REG_MODE): Add V1TImode.
250         (SSE_REG_MODE_P): Ditto.
251         * config/i386/sse.md (SSEMODE16): New mode iterator.
252         (AVXMODE16): Ditto.
253         (avxvecmode): Handle V1TI mode.
254         (*avx_mov<mode>_internal): Use AVXMODE16 instead of AVXMODE.
255         (mov<mode>): Use SSEMODE16 instead of SSEMODE.
256         (*mov<mode>_internal): Ditto.
257         (push<mode>1): Ditto.
258         (movmisalign<mode>): Ditto.
259         (sse2_ashlv1ti): Rename from sse2_ashlti.
260         (sse2_lshrv1ti): Rename from sse2_lshrti.
261         (*avx_ashlv1ti): Rename from *avx_ashlti and move from i386.md.
262         (*avx_lshrv1ti): Rename from *avx_lshrti and move from i386.md.
263         (vec_shl_<mode>): Convert operands to V1TImode and use V1TI shift.
264         (vec_shr_<mode>): Ditto.
265         (*sse2_mulv4si3): Update for renamed sse2_ashlv1ti3.
266         (udot_prodv4si): Ditto.
267         * config/i386/i386.c (classify_argument): Handle V1TImode.
268         (function_arg_advance_32): Ditto.
269         (function_arg_32): Ditto.
270         (ix86_expand_sse4_unpack): Convert operands to V1TImode and update
271         for renamed gen_sse2_lshrv1ti3.
272         (ix86_expand_args_builtin) <V2DI_FTYPE_V2DI_INT_CONVERT>: Set rmode
273         to V1TImode.
274         (struct builtin_description) <__builtin_ia32_pslldqi128>: Update
275         for renamed sse2_ashlv1ti3.
276         <__builtin_ia32_psrldqi128>: Update for renamed sse2_lshrv1ti3.
277         
278         Revert:
279         2007-06-11  Uros Bizjak  <ubizjak@gmail.com>
280
281         PR target/32280
282         * config/i386/sse.md ("sse2_ashlti", "sse2_lshrti3"): Move ...
283         * config/i386/i386.md ("sse2_ashlti", "sse2_lshrti3"): ... to here.
284
285 2009-12-17  Richard Earnshaw  <rearnsha@arm.com>
286
287         PR target/42372
288         * arm.md (pic_add_dot_plus_eight): Change output constraint from
289         update to write.
290
291 2009-12-17  Shujing Zhao  <pearly.zhao@oracle.com>
292
293         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
294         Update build_indirect_ref calls.        
295
296 2009-12-17  Uros Bizjak  <ubizjak@gmail.com>
297
298         * config/i386/sync.md (IMODE): Remove mode iterator.
299         (modesuffix): Remove mode attribute.
300         (modeconstraint): Ditto.
301         (immconstraint): Ditto.
302         (*sync_compare_and_swap<mode>): Use SWI mode iterator instead of
303         IMODE mode iterator, imodesuffix mode attribute instead of modesuffix,
304         <r> mode attribute instead of modeconstraint and <i> mode attribute
305         instead of immconstraint.
306         (sync_double_compare_and_swap<mode>): Ditto.
307         (sync_old_add<mode>): Ditto.
308         (sync_lock_test_and_set<mode>): Ditto.
309         (sync_add<mode>): Ditto.
310         (sync_sub<mode>): Ditto.
311         (sync_and<mode>): Ditto.
312         (sync_ior<mode>): Ditto.
313         (sync_xor<mode>): Ditto.
314         (sync_<code><mode>): Macroize insn pattern from
315         sync_{and,ior,xor}<mode> using any_logic code iterator.
316
317 2009-12-17  Shujing Zhao  <pearly.zhao@oracle.com>
318
319         PR c/40885
320         * c-common.h (ref_operator): New type.
321         (build_indirect_ref): Adjust prototype with new argument.
322         * c-typeck.c (build_indirect_ref): Accept ref_operator as argument and
323         emit the diagnostics for easy translation.
324         (build_array_ref): Update calls to build_indirect_ref.
325         * c-omp.c (c_finish_omp_atomic): Likewise.
326         * c-parser.c (c_parser_unary_expression,
327         c_parser_postfix_expression_after_primary): Likewise.
328
329 2009-12-16  Richard Guenther  <rguenther@suse.de>
330
331         PR lto/42392
332         * langhooks.c (lhd_begin_section): Make sure to switch back
333         to the text section, not some random one.
334
335 2009-12-16  Jakub Jelinek  <jakub@redhat.com>
336
337         * tree-chrec.c (chrec_convert_1): Only fold (T2)(t +- x) to
338         (T2)t +- (T2)x if only integer types are involved.
339
340 2009-12-16  Ben Elliston  <bje@au.ibm.com>
341
342         * tree-data-ref.h (dot_rdg): Remove prototype.
343         * tree-data-ref.c (dog_rdg_1, dot_rdg): Remove.
344
345 2009-12-16  Kazu Hirata  <kazu@codesourcery.com>
346
347         * doc/invoke.texi, doc/options.texi, doc/plugins.texi,
348         doc/tm.texi: Fix typos.
349
350 2009-12-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
351
352         * doc/extend.texi (Function Attributes, Extended Asm):
353         Replace TABs with spaces.
354         * doc/md.texi (Standard Names): Likewise.
355         * doc/plugins.texi (Plugins): Likewise.
356
357         * doc/c-tree.texi (Expression trees): Use @itemx for all but
358         the first item for merged items.
359         * doc/extend.texi (Variable Attributes): Likewise.
360         * doc/install.texi (Configuration): Likewise.
361         * doc/invoke.texi (RS/6000 and PowerPC Options, RX Options):
362         Likewise.
363
364 2009-12-15  Richard Guenther  <rguenther@suse.de>
365
366         * tree.c (free_lang_data_in_binfo): Do not free BINFO_OFFSET
367         and BINFO_VPTR_FIELD.
368         (free_lang_data_in_type): Do not free TYPE_STUB_DECL if we
369         generate debug information.
370         (free_lang_data_in_decl): Do not free DECL_SIZE_UNIT,
371         DECL_SIZE, DECL_FIELD_OFFSET and DECL_FCONTEXT.
372         (free_lang_data): Do not disable debuginfo.
373         * lto-streamer-out.c (write_symbol_vec): Deal with
374         non-constant DECL_SIZE.
375         (pack_ts_base_value_fields): Write types with false
376         TREE_ASM_WRITTEN.
377         (lto_output_ts_type_tree_pointers): Stream TYPE_STUB_DECL.
378         * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Stream
379         TYPE_STUB_DECL.
380         * dwarf2out.c (add_pure_or_virtual_attribute): Check for
381         DECL_CONTEXT.
382         (gen_type_die_for_member): Test for TYPE_STUB_DECL.
383         * opts.c (decode_options): Do not disable var-tracking for lto.
384         * doc/invoke.texi (-flto): Document -flto vs. -g experimental
385         status.
386         (-fwhopr): Document experimental status.
387
388 2009-12-15  Aldy Hernandez  <aldyh@redhat.com>
389
390         PR graphite/42185
391         * graphite-sese-to-poly.c (is_reduction_operation_p): Assert that
392         we are a GIMPLE_ASSIGN.  Do not calculate rhs code twice.
393         (follow_ssa_with_commutative_ops): Return NULL on non assignment.
394
395 2009-12-15  Eric Botcazou  <ebotcazou@adacore.com>
396
397         * config/rs6000/rs6000.md (probe_stack): Use an enclosing SET.
398
399 2009-12-15  Richard Guenther  <rguenther@suse.de>
400
401         * gimple.h (compare_field_offset): Declare.
402         * gimple.c (compare_field_offset): Export.
403         * lto-streamer-in.c (input_gimple_stmt): Use compare_field_offset.
404
405 2009-12-15  Richard Guenther  <rguenther@suse.de>
406
407         * lto-cgraph.c (lto_output_node): Also stream the alias
408         for regular aliases.
409         (input_node): Likewise.
410
411 2009-12-15  Paolo Bonzini  <bonzini@gnu.org>
412             Shujing Zhao  <pearly.zhao@oracle.com>
413
414         * intl.c (get_spaces): New.
415         * intl.h (get_spaces): New.
416
417 2009-12-14  Jakub Jelinek  <jakub@redhat.com>
418
419         PR bootstrap/42369
420         * config/i386/i386.c (ix86_expand_special_args_builtin): Avoid
421         using switch with CODE_FOR_lwp_lwp* cases.
422
423         * config/i386/i386-builtin-types.def (PVOID_FTYPE_VOID): Use
424         DEF_FUNCTION_TYPE (PVOID) instead of DEF_FUNCTION_TYPE (PVOID, VOID).
425
426 2009-12-14  Eric Botcazou  <ebotcazou@adacore.com>
427
428         * cfgexpand.c (expand_debug_expr) <INDIRECT_REF>: Remove overzealous
429         assertion and useless code.
430         <TARGET_MEM_REF>: Likewise.
431
432 2009-12-14  Alexandre Oliva  <aoliva@redhat.com>
433
434         PR debug/41473
435         * dwarf2out.c (AT_loc_list_ptr): New.
436         (resolve_addr): Remove unresolved attributes and loc_list entries.
437
438         PR debug/41473
439         * dwarf2out.c (add_var_loc_to_decl): Don't drop initial empty
440         locations.
441         (new_loc_list): Drop gensym arg.  Move generation of ll_symbol...
442         (gen_llsym): ... here.  New function.
443         (add_loc_descr_to_loc_list): Removed.
444         (loc_descriptor): Infer mode from CONST_DOUBLEs and CONST_VECTORs.
445         (single_element_loc_list): Removed.
446         (dw_loc_list): Don't create entries without a location.  Don't
447         special-case the first node of the list, only single nodes.
448         (single_element_loc_list_p): Simplify.
449         (loc_list_from_tree): Don't use DECL_RTL if loc_list is nonempty.
450         (add_location_or_const_value_attribute): Test var loc for NULL.
451         (convert_cfa_to_fb_loc_list): Adjust calls to new new_loc_list,
452         call gen_llsym if needed.
453
454 2009-12-14  Jakub Jelinek  <jakub@redhat.com>
455
456         * cgraph.h (cgraph_set_nothrow_flag, cgraph_set_readonly_flag,
457         cgraph_set_pure_flag, cgraph_set_looping_const_or_pure_flag): New
458         prototypes.
459         * cgraph.c (cgraph_set_nothrow_flag, cgraph_set_readonly_flag,
460         cgraph_set_pure_flag, cgraph_set_looping_const_or_pure_flag): New
461         functions.
462         * except.h (set_nothrow_function_flags): Remove prototype.
463         * except.c (set_nothrow_function_flags): Use cgraph_set_nothrow_flag.
464         Make static.
465         * ipa-pure-const.c (propagate): Use cgraph_set_nothrow_flag,
466         cgraph_set_readonly_flag, cgraph_set_pure_flag
467         and cgraph_set_looping_const_or_pure_flag.
468         (local_pure_const): Likewise.
469
470 2009-12-14  Jakub Jelinek  <jakub@redhat.com>
471             Sebastian Pop  <sebastian.pop@amd.com>
472
473         * config/i386/i386-builtin-types.def (PVOID): Declared.
474         (VOID_FTYPE_PVOID): Declared.
475         (PVOID_FTYPE_VOID): Declared.
476         (UCHAR_FTYPE_USHORT_UINT_USHORT): Removed.
477         (VOID_FTYPE_USHORT_UINT_USHORT): Removed.
478         * config/i386/i386.c (IX86_BUILTIN_LLWPCB16, IX86_BUILTIN_LLWPCB32,
479         IX86_BUILTIN_LLWPCB64, IX86_BUILTIN_SLWPCB16, IX86_BUILTIN_SLWPCB32,
480         IX86_BUILTIN_SLWPCB64, IX86_BUILTIN_LWPVAL16, IX86_BUILTIN_LWPINS16):
481         Removed.
482         (IX86_BUILTIN_LLWPCB, IX86_BUILTIN_SLWPCB): New.
483         (bdesc_special_args): Adjust declaration of __builtin_ia32_llwpcb,
484         __builtin_ia32_slwpcb, __builtin_ia32_lwpval32,
485         __builtin_ia32_lwpval64, __builtin_ia32_lwpins32, and
486         __builtin_ia32_lwpins64.
487         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PVOID.
488         Do not handle VOID_FTYPE_USHORT_UINT_USHORT and
489         UCHAR_FTYPE_USHORT_UINT_USHORT.  Warn when the third operand is
490         not an immediate.  Also handle builtin functions with 3 arguments.
491         (ix86_expand_builtin): Handle IX86_BUILTIN_LLWPCB and
492         IX86_BUILTIN_SLWPCB.
493         * config/i386/i386.md (UNSPEC_LLWP_INTRINSIC, UNSPEC_SLWP_INTRINSIC):
494         Renamed UNSPECV_LLWP_INTRINSIC and UNSPECV_SLWP_INTRINSIC.
495         (memory attribute): Handle lwp.
496         (lwp*): Rewrite all the insn patterns for LWP.
497         * config/i386/lwpintrin.h (__llwpcb16, __llwpcb32, __llwpcb64,
498         __slwpcb16, __slwpcb32, __slwpcb64, __lwpval16, __lwpins16): Removed.
499         (__llwpcb, __slwpcb): New.
500
501 2009-12-14  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
502
503         * dominance.c (set_immediate_dominator): Don't mark as inline.
504
505 2009-12-14  Eric Botcazou  <ebotcazou@adacore.com>
506
507         * doc/tm.texi (STACK_CHECK_PROTECT): Document alternate default.
508         * doc/md.texi (check_stack): Clarify.
509         (probe_stack): Likewise.
510         * config/rs6000/rs6000.md (UNSPEC_PROBE_STACK): New constant.
511         (probe_stack): New insn.
512
513 2009-12-14  Ben Elliston  <bje@au.ibm.com>
514
515         * lto-streamer-in.c (lto_get_builtin_tree): fclass can only be a
516         BUILT_IN_NORMAL or BUILT_IN_MD.
517
518 2009-12-13  Eric Botcazou  <ebotcazou@adacore.com>
519
520         * doc/tm.texi (STACK_CHECK_PROBE_LOAD): Delete.
521         * expr.h (STACK_CHECK_PROBE_LOAD): Likewise.
522         * explow.c (emit_stack_probe): Do not test STACK_CHECK_PROBE_LOAD.
523         * system.h (STACK_CHECK_PROBE_LOAD): Poison.
524
525 2009-12-13  Michael Matz  <matz@suse.de>
526
527         PR tree-optimization/42027
528         * dojump.c (do_jump <TRUTH_AND_EXPR, TRUTH_OR_EXPR>): Go to
529         TRUTH_ANDIF_EXPR resp. TRUTH_ORIF_EXPR expander, instead of
530         falling through.
531
532 2009-12-13  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
533
534         PR target/23726
535         * config/avr/predicates.md (pseudo_register_operand): New predicate
536         for pseudos.
537         * config/avr/avr.md (divmodqi4): Replace with define_insn_and_split
538         to allow div/mod optimization.
539         (udivmodqi4): Ditto.
540         (divmodhi4): Ditto.
541         (udivmodhi4): Ditto.
542         (divmodsi4): Ditto.
543         (udivmodsi4): Ditto.
544
545 2009-12-13  Richard Guenther  <rguenther@suse.de>
546
547         PR tree-optimization/42357
548         * tree-sra.c (sra_modify_assign): Do not tear apart struct copies.
549
550 2009-12-12  Richard Guenther  <rguenther@suse.de>
551
552         * tree.c (need_assembler_name_p): Abstract decls do not need
553         an assembler name.
554         * dwarf2out.c (dwarf2out_abstract_function): Preserve
555         DECL_ABSTRACT properly.
556
557 2009-12-11  Richard Guenther  <rguenther@suse.de>
558
559         * lto-streamer-in.c (lto_input_tree_ref): Do not register
560         DEBUG_EXPR_DECLs with the varpool.
561
562 2009-12-11  Eric Botcazou  <ebotcazou@adacore.com>
563
564         * config/sparc/linux-unwind.h (MD_FROB_UPDATE_CONTEXT, 64-bit): Define.
565         (sparc64_frob_update_context): New function.
566
567 2009-12-11  Richard Guenther  <rguenther@suse.de>
568
569         PR lto/41658
570         PR lto/41657
571         * lto-streamer-out.c (write_global_stream): Do not make decls
572         weak but resort to TREE_ASM_WRITTEN to avoid multiple definitions.
573         Make sure to mark all decls that we have written.
574
575 2009-12-11  Sebastian Andrzej Siewior  <bigeasy@linutronix.de>
576
577         PR target/36047
578
579         * config/m68k/linux.h: Remove LABELNO from the mcount statement. It is
580         not used by glibc/uclibc and does not work with large binaries.
581
582 2009-12-11  Richard Guenther  <rguenther@suse.de>
583
584         PR lto/41662
585         * lto-streamer-in.c (lto_init_eh): Move eh_initialized_p
586         handling here.
587         (input_eh_regions): Adjust.
588         (lto_input_ts_function_decl_tree_pointers): Initialize EH
589         if a non-NULL DECL_FUNCTION_PERSONALITY was read in.
590
591 2009-12-11  Duncan Sands  <baldrick@free.fr>
592
593         * passes.c (make_pass_instance): Allocate and copy the right amount of
594         memory for ipa passes, which are not the same size as other passes.
595
596 2009-12-11  Joern Rennecke  <amylaar@spamcop.net>
597
598         * plugin.c (get_named_event_id): Fix hash table rebuild to include
599         dynamically allocated events.
600
601 2009-12-11  Richard Guenther  <rguenther@suse.de>
602
603         PR lto/42320
604         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Properly
605         detect non-prevailing decls.
606
607 2009-12-10  Jakub Jelinek  <jakub@redhat.com>
608
609         PR c++/42317
610         * cgraph.h (struct cgraph_node): Add same_comdat_group field.
611         * cgraph.c (cgraph_remove_node): Unchain node from same_comdat_group
612         circular list.
613         (cgraph_node_can_be_local_p): Return false for DECL_COMDAT with
614         node->same_comdat_group.
615         * ipa.c (cgraph_remove_unreachable_nodes): For any reachable node
616         mark all its same_comdat_group nodes as also reachable.
617         (cgraph_externally_visible_p): Return true even if any of
618         same_comdat_group nodes has address taken.
619         * lto-cgraph.c (lto_output_node): Stream out same_comdat_group.
620         (output_cgraph): Ensure other same_comdat_group nodes are also
621         included.
622         (input_node): Stream in same_comdat_group.
623         (input_cgraph_1): Fix up same_comdat_group fields from references
624         to pointers.
625         * cgraphunit.c (cgraph_analyze_functions): Mark all other
626         same_comdat_group nodes as reachable.
627         (cgraph_mark_functions_to_output): For each node->process process
628         also other same_comdat_group nodes.
629         * ipa-inline.c (cgraph_clone_inlined_nodes): Don't reuse nodes
630         with same_comdat_group non-NULL.
631         (cgraph_mark_inline_edge): Likewise.
632
633 2009-12-10  Jan Hubicka  <jh@suse.cz>
634
635         PR middle-end/42228
636         PR middle-end/42110
637         * cgraph.c (cgraph_create_edge_including_clones): Add old_stmt
638         parameter; update edge if it already exists.
639         (cgraph_remove_node): Handle correctly cases where we are removing
640         node having clones.
641         * cgraph.h (cgraph_create_edge_including_clones): Declare.
642         (verify_cgraph_node): Add missing error_found = true code.
643         (cgraph_materialize_all_clones): Remove call edges of dead nodes.
644         * ipa.c (cgraph_remove_unreachable_nodes): Correctly look for master
645         clone; fix double linked list removal.
646         * tree-inline.c (copy_bb): Update cgraph_create_edge_including_clones
647         call; fix frequency of newly created edge.
648
649 2009-12-10  Bernd Schmidt  <bernd.schmidt@analog.com>
650
651         PR rtl-opt/42216
652         * regrename.c: Error out if MAX_RECOG_OPERANDS is larger than
653         HOST_BITS_PER_WIDE_INT.
654         (verify_reg_in_set): New function, broken out of verify_reg_tracked.
655         (verify_reg_tracked): Use it.
656         (scan_rtx_reg): When seeing a use involving a superset of the
657         registers in an existing chain, enlarge that chain.  Otherwise,
658         allow subsets and set fail_current_block for all other kinds of
659         overlap.
660         (hide_operands): New argument UNTRACKED_OPERANDS; callers changed.
661         Do not modify operands when the bit with the corresponding number
662         is set in that bitmap.
663         (build_def_use): When we see matching operands with different
664         modes, don't set fail_current_block, but keep track of such
665         operands in a bitmap if their registers aren't already tracked
666         in an open chain.  Pass this bitmap to all hide_operands calls.
667
668 2009-12-10  Richard Guenther  <rguenther@suse.de>
669
670         PR tree-optimization/42337
671         * tree-ssa-pre.c (seen_during_translate): Remove.
672         (phi_translate_1): Collapse into ...
673         (phi_translate): ... this.  Remove seen parameter and
674         adjust recursive calls.
675
676 2009-12-10  Richard Guenther  <rguenther@suse.de>
677         Allan Sandfeld Jensen  <linux@carewolf.com>
678
679         * tree-vectorizer.c (vectorize_loops): Properly guard
680         vectorizer verboseness.
681
682 2009-12-10  Ben Elliston  <bje@au.ibm.com>
683
684         * fwprop.c (free_load_extend): Initialise `use'.
685
686 2009-12-09  David Edelsohn  <edelsohn@gnu.org>
687
688         * builtins.c (do_mpc_ckconv): Pass the component type to
689         real_from_mpfr().
690
691 2009-12-09  Xinliang David Li  <davidxl@google.com>
692
693         PR tree-optimization/42337
694         * tree-ssa-pre.c (phi_translate_1): Push and Pop SEEN set.
695
696 2009-12-09  Nathan Froyd  <froydnj@codesourcery.com>
697
698         * config/rs6000/vector.md (absv2sf2, negv2sf2, addv2sf3, subv2sf3,
699         mulv2sf3, divv2sf3): New expanders.
700         * config/rs6000/spe.md (spe_evabs, spe_evand, spe_evaddw, spe_evsubfw,
701         spe_evdivws): Rename to use standard GCC names.
702         * config/rs6000/paired.md (negv2sf, absv2sf2, addv2sf3, subv2sf3,
703         mulv2sf3, divv2sf3): Rename to avoid conflict with the new expanders.
704         * config/rs6000/rs6000.c (bdesc_2arg, bdesc_1arg): Use new CODE_FOR_
705         names for renamed patterns.
706
707 2009-12-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
708
709         * config/s390/s390.md ("copysign<mode>3"): Pattern removed.
710
711 2009-12-09  Jakub Jelinek  <jakub@redhat.com>
712
713         * configure.ac: Compute ld_ver, ld_vers, ld_date, ld_vers_major,
714         ld_vers_minor and ld_vers_path always, not just when gcc_cv_ld_hidden
715         isn't cached.
716         * configure: Regenerated.
717
718 2009-12-08  Richard Henderson  <rth@redhat.com>
719
720         * combine.c (setup_incoming_promotions): Fix sign-extend of
721         zero-extend case; tidy conditions.
722
723 2009-12-08  Michael Matz  <matz@suse.de>
724
725         PR middle-end/38474
726         * function.c (free_temp_slots): Only walk the temp slot
727         addresses and combine slots if we actually changes something.
728         (pop_temp_slots): Ditto.
729
730 2009-12-08  Olga Golovanevsky  <olga@il.ibm.com>
731
732         PR middle-end/41843
733         * ipa-struct-reorg.c (compare_fields): New function.
734         (find_field_in_struct_1): Use compare_fields function.
735         (is_equal_types): Likewise.
736
737 2009-12-07  DJ Delorie  <dj@redhat.com>
738
739         PR c/42312
740         * config/mep/mep.c (mep_expand_prologue): Set
741         really_need_stack_frame after frame_size is set.
742
743 2009-12-07  Richard Henderson  <rth@redhat.com>
744
745         PR rtl-opt/42269
746         * combine.c (setup_incoming_promotions): Improve the conditions
747         under which we respect the promotions applied.
748
749 2009-12-07  Eric Botcazou  <ebotcazou@adacore.com>
750
751         * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch.
752         * config/sparc/linux64.h (ASM_SPEC): Likewise.
753
754 2009-12-07  Richard Henderson  <rth@redhat.com>
755
756         PR debug/42299
757         PR debug/42166
758         * tree-ssa.c (insert_debug_temp_for_var_def): Skip propagation
759         for ssa names already registered for update.
760
761 2009-12-07  Jakub Jelinek  <jakub@redhat.com>
762
763         PR debug/42244
764         * ddg.c (add_inter_loop_mem_dep): Use ANTI_DEP if from or to
765         is a DEBUG_INSN.
766
767 2009-12-07  Sebastian Pop  <sebastian.pop@amd.com>
768
769         * config/i386/driver-i386.c (host_detect_local_cpu): Add -mlwp to the
770         options when bit_LWP is set.
771
772 2009-12-07  Sebastian Pop  <sebastian.pop@amd.com>
773
774         * config/i386/cpuid.h (bit_ABM): New.
775         * config/i386/driver-i386.c (host_detect_local_cpu): Add -mabm to the
776         options when bit_ABM is set.
777
778 2009-12-07  Jakub Jelinek  <jakub@redhat.com>
779
780         * config/i386/i386.c (bdesc_special_args): Move __builtin_clzs from
781         this array ...
782         (bdesc_args): ... here.
783         * config.gcc (i[34567]86-*-*): Include abmintrin.h.
784         (x86_64-*-*): Likewise.
785
786 2009-12-07  Sebastian Pop  <sebastian.pop@amd.com>
787
788         * config.gcc (i[34567]86-*-*, x86_64-*-*): Add popcntintrin.h.
789         * config/i386/abmintrin.h (_mm_popcnt_u32, _mm_popcnt_u64): Moved...
790         * config/i386/i386-c.c (__POPCNT__): Defined.
791         * config/i386/popcntintrin.h: ...here.  New file.
792         * config/i386/smmintrin.h (_mm_popcnt_u32, _mm_popcnt_u64): Moved...
793         Include popcntintrin.h.
794         * config/i386/x86intrin.h: Include popcntintrin.h when __POPCNT__
795         is defined.
796
797 2009-12-07  Sebastian Pop  <sebastian.pop@amd.com>
798
799         * config/i386/i386-protos.h (ix86_expand_fma4_multiple_memory):
800         Removed.
801         * config/i386/i386.c (ix86_expand_fma4_multiple_memory): Removed.
802         * config/i386/sse.md: Remove all XOP splitters.
803         Allow the second and fourth operands of XOP multiply-add insns
804         to be nonimmediate.
805
806 2009-12-07  Sebastian Pop  <sebastian.pop@amd.com>
807
808         * config/i386/sse.md: Remove all FMA4 splitters.
809         Allow the second operand of FMA4 insns to be a nonimmediate.
810         Fix comments punctuation.
811
812 2009-12-07  Julian Brown  <julian@codesourcery.com>
813
814         * config/arm/constraints.md (Ps, Pt): New constraint letters.
815         * config/arm/thumb2.md (*thumb2_addsi_short): Tighten constraints.
816
817 2009-12-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
818
819         PR other/40302
820         * configure.ac (HAVE_mpc): Don't define.
821         * config.in, configure: Regenerate.
822
823         PR other/40302
824         * builtins.c: Remove HAVE_mpc* checks throughout.
825         * fold-const.c: Likewise.
826         * real.h: Likewise.
827         * toplev.c: Likewise.
828
829 2009-12-07  Edmar Wienskoski  <edmar@freescale.com>
830
831         * config.gcc (cpu_is_64bit): Add new core e500mc64.
832         (powerpc*-*-*): Add new core e500mc64.
833         * config/rs6000/e500mc64.md: New file.
834         * config/rs6000/rs6000.c (processor_costs): Add new costs for
835         e500mc64.
836         (rs6000_override_options): Add e500mc64 case to
837         processor_target_table. Altivec and Spe options not allowed with
838         e500mc64. Disable string instructions for e500mc64. Enable branch
839         targets alignment for both e500mc and e500mc64. Initialize
840         rs6000_cost for e500mc64.
841         (rs6000_emit_sISEL): New function.
842         (rs6000_emit_sCOND): Call rs6000_emit_sISEL for isel targets.
843         (rs6000_emit_int_cmove): Fix mode of 64 bit isel pattern
844         generation.
845         (rs6000_issue_rate): Set issue rate for e500mc64.
846         (rs6000_rtx_costs): Set more accurate cost for mfcr instruction
847         on architectures with isel.
848         * config/rs6000/rs6000-protos.h (rs6000_emit_sISEL): Declare.
849         * config/rs6000/rs6000.h (processor_type): Add
850         PROCESSOR_PPCE500MC64.
851         (ASM_CPU_SPEC): Add e500mc64.
852         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc64.
853         Include e500mc64.md.
854         (abssi2_isel): Expand pattern to handle DImode.
855         (nabs<mode>2_isel): New pattern.
856         (absdi2): Change pattern to handle 64 bit isel targets.
857         (absdi2_internal): Exclude ISEL targets.
858         (nabsdi2): Exclude ISEL targets.
859         * doc/invoke.texi: Add e500mc64 to list of cpus.
860
861 2009-12-07  Uros Bizjak  <ubizjak@gmail.com>
862
863         * config/i386/i386.md (any_or): New code iterator.
864         (any_logic): Rename from plogic code iterator.
865         (logicprefix): Rename from plogicprefix code attribute.
866         (<code><mode>3): Macroize expander from {ior,xor}<mode>3 using
867         any_or code iterator.
868         (*<code><mode>_1): Macroize insn from *{ior,xor}<mode>_1 using
869         any_or code iterator.
870         (*<code><mode>_2): Ditto from *{ior,xor}<mode>_2.
871         (*<code><mode>_3): Ditto from *{ior,xor}<mode>_3.
872         (ior and xor splitters): Ditto.
873         * config/i386/mmx.md: Updated for rename.
874         * config/i386/sse.md: Ditto.
875
876 2009-12-07  Uros Bizjak  <ubizjak@gmail.com>
877
878         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
879         Remove quotes around condition logic code.
880
881 2009-12-06  Richard Henderson  <rth@redhat.com>
882
883         PR debug/42234
884         * tree-ssa-dom.c (degenerate_phi_result): Check for NULL phi
885         argument earlier.
886
887 2009-12-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
888
889         * doc/install.texi: Document MPC is required.
890
891 2009-12-06  Uros Bizjak  <ubizjak@gmail.com>
892
893         * config/i386/i386.md (g): Add HImode and QImode.
894         (general_szext_operand): New mode attribute.
895         (*test<mode>_1): Macroize insn from *test{qi,hi,si}_1 using
896         SWI124 mode iterator.
897         (and<mode>3): Macroize expander from and{qi,hi,si,di}3 using
898         SWIM mode iterator.
899         (*and<mode>_2): Macroize insn from *and{qi,hi,si}_2 using
900         SWI124 mode iterator.
901         (ior<mode>3): Macroize expander from ior{qi,hi,si,di}3 using
902         SWIM mode iterator.
903         (*ior<mode>_1): Macroize insn from *ior{hi,si,di}_1 using
904         SWI248 mode iterator.
905         (*ior<mode>_2): Macroize insn from *ior{qi,hi,si,di}_2 using
906         SWI mode iterator.
907         (*ior<mode>_3): Macroize insn from *ior{qi,hi,si,di}_3 using
908         SWI mode iterator.
909         (xor<mode>3): Macroize expander from xor{qi,hi,si,di}3 using
910         SWIM mode iterator.
911         (*xor<mode>_1): Macroize insn from *xor{hi,si,di}_1 using
912         SWI248 mode iterator.
913         (*xor<mode>_2): Macroize insn from *xor{qi,hi,si,di}_2 using
914         SWI mode iterator.
915         (*xor<mode>_3): Macroize insn from *xor{qi,hi,si,di}_3 using
916         SWI mode iterator.
917
918 2009-12-05  Sebastian Pop  <sebastian.pop@amd.com>
919
920         * config/i386/i386.c (TARGET_DEFAULT_TARGET_FLAGS): Add
921         MASK_FUSED_MADD.
922         * config/i386/i386.h (CC1_CPU_SPEC_1): Remove
923         "'-mfused-madd' was removed".
924         * config/i386/i386.opt (mfused-madd): New.
925         * config/i386/sse.md: Add TARGET_FUSED_MADD to FMA4 insns.
926         * doc/invoke.texi (-mfused-madd, -mno-fused-madd): Document.
927
928 2009-12-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
929
930         * pa64-hpux.h (LIB_SPEC): Handle -rdynamic.
931         * pa-hpux10.h (LIB_SPEC): Likewise.
932         * pa-hpux11.h (LIB_SPEC): Likewise.
933
934         PR ada/41912
935         * pa/linux-unwind.h (pa32_fallback_frame_state): Set fs->signal_frame
936         for signal frames.
937         * pa/hpux-unwind.h (pa32_fallback_frame_state): Likewise.
938
939 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
940
941         * configure: Regenerate.
942
943 2009-12-05  Richard Earnshaw  <rearnsha@arm.com>
944
945         * arm/thumb2.md (thumb2_mulsi_short_compare0): Use a low-register
946         for the scratch.
947
948 2009-12-04  David Daney  <ddaney@caviumnetworks.com>
949
950         PR rtl-optimization/42164
951         * combine.c (combine_simplify_rtx): Handle truncation of integer
952         constants.
953
954 2009-12-04  Richard Guenther  <rguenther@suse.de>
955
956         * lto-streamer-out.c (pack_ts_decl_common_value_fields):
957         Revert previous change.
958         (lto_output_ts_decl_common_tree_pointers): Stream DECL_VALUE_EXPR.
959         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
960         Likewise.
961
962 2009-12-04  Richard Guenther  <rguenther@suse.de>
963
964         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
965         BUILT_IN_MALLOC.
966         (call_may_clobber_ref_p_1): Likewise.
967
968 2009-12-04  Matthias Klose  <doko@ubuntu.com>
969             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
970
971         PR target/40134
972         * config.gcc (hppa*-*-linux*): Use config/t-slibgcc-libgcc.
973         * config/pa/pa-linux.h (LIB_SPEC): Remove.
974
975 2009-12-03  Sebastian Pop  <sebastian.pop@amd.com>
976             Richard Henderson  <rth@redhat.com>
977
978         * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Remove.
979         * config/i386/i386.c (ix86_fma4_valid_op_p): Remove.
980         * config/i386/i386.md: Do not use ix86_fma4_valid_op_p.
981         * config/i386/sse.md (fma4_*): Remove alternative with operand 1
982         matching a memory access.  Do not use ix86_fma4_valid_op_p.
983         (xop_*): Same.
984         Do not use ix86_fma4_valid_op_p in FMA4 and XOP splitters.
985
986 2009-12-03  Richard Henderson  <rth@redhat.com>
987
988         * config/i386/i386.c (ix86_fixup_binary_operands): For FMA4, force
989         all operands into registers.
990
991 2009-12-03  Sebastian Pop  <sebastian.pop@amd.com>
992
993         * config/i386/i386.c (ix86_expand_fma4_multiple_memory): Remove unused
994         parameter.
995         * config/i386/i386-protos.h (ix86_expand_fma4_multiple_memory): Same.
996         * config/i386/sse.md: Same.
997
998 2009-12-03  Richard Guenther  <rguenther@suse.de>
999
1000         * cgraphunit.c (assemble_thunk): Use DECL_ASSEMBLER_NAME
1001         instead of DECL_NAME for the entry point.
1002
1003 2009-12-03  Richard Earnshaw  <rearnsha@arm.com>
1004
1005         * arm/linux-atomic.c (SYNC_LOCK_RELEASE): Place memory barrier
1006         before the lock release.
1007
1008 2009-12-03  Michael Matz  <matz@suse.de>
1009
1010         PR middle-end/38474
1011         * cfgexpand.c (struct stack_var): Add conflicts member.
1012         (stack_vars_conflict, stack_vars_conflict_alloc,
1013         n_stack_vars_conflict): Remove.
1014         (add_stack_var): Initialize conflicts member.
1015         (triangular_index, resize_stack_vars_conflict): Remove.
1016         (add_stack_var_conflict, stack_var_conflict_p): Rewrite in
1017         terms of new member.
1018         (union_stack_vars): Only run over the conflicts.
1019         (partition_stack_vars): Remove special case.
1020         (expand_used_vars_for_block): Don't call resize_stack_vars_conflict,
1021         don't create self-conflicts.
1022         (account_used_vars_for_block): Don't create any conflicts.
1023         (fini_vars_expansion): Free bitmaps, don't free or clear removed
1024         globals.
1025
1026 2009-12-03  Bernd Schmidt  <bernd.schmidt@analog.com>
1027
1028         PR middle-end/42202
1029         * regrename.c (live_in_chains): New variable.
1030         (verify_reg_tracked): New static function.
1031         (scan_rtx_reg): Update live_in_chains.
1032         (scan_rtx): Only promote sets in COND_EXEC to OP_INOUT if
1033         we're already tracking the reg.
1034         (build_def_use): Likewise.  Initialize live_in_chains.
1035
1036 2009-12-03  Ken Werner  <ken.werner@de.ibm.com>
1037
1038         * config/spu/spu-elf.h (STARTFILE_SPEC): Add support for gprof
1039         startup files.
1040         * config/spu/spu-protos.h (spu_function_profiler): Add prototype.
1041         * config/spu/spu.c (spu_function_profiler): New function.
1042         * config/spu/spu.h (FUNCTION_PROFILER): Invoke
1043         spu_function_profiler.
1044         (NO_PROFILE_COUNTERS): Define.
1045         (PROFILE_BEFORE_PROLOGUE): Likewise.
1046
1047 2009-12-03  Dave Korn  <dave.korn.cygwin@gmail.com>
1048
1049         * ggc-page.c (struct free_object): Pull definition out ...
1050         (struct globals): .. from here.
1051
1052 2009-12-02  Richard Guenther  <rguenther@suse.de>
1053
1054         * fold-const.c (div_if_zero_remainder): Honor that sizetypes
1055         are sign-extending.  Simplify.
1056
1057 2009-12-02  Richard Henderson  <rth@redhat.com>
1058
1059         PR tree-opt/42215
1060         * tree-loop-distribution.c (build_size_arg_loc): Tidy.
1061         (generate_memset_zero): Convert to sizetype properly.  Tidy.
1062
1063 2009-12-02  Richard Guenther  <rguenther@suse.de>
1064
1065         * lto-streamer-out.c (pack_ts_decl_common_value_fields):
1066         Do not pretend we have value exprs.
1067
1068 2009-12-02  Richard Guenther  <rguenther@suse.de>
1069
1070         PR middle-end/41491
1071         * fold-const.c (try_move_mult_to_index): Do not leak
1072         domain types into the IL.
1073
1074 2009-12-02  Richard Guenther  <rguenther@suse.de>
1075
1076         PR middle-end/42088
1077         * tree.c (free_lang_data): Disable if not using LTO.
1078
1079 2009-12-02  Richard Guenther  <rguenther@suse.de>
1080
1081         PR middle-end/42229
1082         * cfgloopmanip.c (remove_path): Avoid cancelling loops twice.
1083
1084 2009-12-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1085
1086         PR middle-end/42224
1087         * tree.h (int_or_pointer_precision): Remove.
1088         * tree.c (int_or_pointer_precision): Remove.
1089         (integer_pow2p): Use TYPE_PRECISION instead.
1090         (tree_log2): Likewise.
1091         (tree_floor_log2): Likewise.
1092         (signed_or_unsigned_type_for): Likewise.
1093         * fold-const.c (fit_double_type): Likewise.
1094         * varasm.c (initializer_constant_valid_p): Likewise.
1095
1096 2009-12-02  Ira Rosen  <irar@il.ibm.com>
1097
1098         * doc/invoke.texi (-fdump-tree-slp): Document.
1099         (-ftree-vectorizer-verbose): Update.
1100         (-ftree-slp-vectorize): Document.
1101
1102 2009-12-02  Nick Clifton  <nickc@redhat.com>
1103
1104         * config/rx/rx.c (rx_conditional_register_usage): Do not warn if
1105         no fixed registers are available for interrupt handlers.  Do not
1106         fix normal registers.
1107         (MUST_SAVE_ACC_REGISTER): New macro.
1108         (rx_get_stack_layout): Create a stack frame for fast interrupt
1109         handlers, if necessary.  Push extra registers if needed in order
1110         to save the accumulator.
1111         (rx_expand_prologue): Create a stack frame for fast interrupt
1112         handlers, if necessary.
1113         (rx_expand_builtin_mvfc): Handle the case where there is no target.
1114
1115 2009-12-01  Sebastian Pop  <sebastian.pop@amd.com>
1116
1117         * config/i386/abmintrin.h (__lzcnt16): New.
1118         (__lzcnt): New.
1119         (__lzcnt64): New.
1120         * config/i386/i386-builtin-types.def (UINT16_FTYPE_UINT16): New.
1121         * config/i386/i386.c (IX86_BUILTIN_CLZS): New.
1122         (bdesc_special_args): Add __builtin_clzs.
1123         (ix86_expand_args_builtin): Handle UINT16_FTYPE_UINT16.
1124
1125 2009-12-01  Sebastian Pop  <sebastian.pop@amd.com>
1126
1127         * config/i386/abmintrin.h (_mm_popcnt_u32): New.
1128         (_mm_popcnt_u64): New.
1129
1130 2009-12-01  Sebastian Pop  <sebastian.pop@amd.com>
1131
1132         * config/i386/abmintrin.h: New.
1133         * config/i386/i386-c.c (ix86_target_macros_internal): Defined __ABM__.
1134         * config/i386/x86intrin.h: Include abmintrin.h when __ABM__ is defined.
1135
1136 2009-12-01  Uros Bizjak  <ubizjak@gmail.com>
1137
1138         * config/i386/i386.md (SWI124): Rename from CRC32MODE.
1139         (crc32modesuffix): Remove.
1140         (crc32modeconstraint): Ditto.
1141         (sse4_2_crc32<mode>): Update for renamed mode iterator.  Use
1142         imodesuffix instead of crc32modesuffix and <r>m instead of
1143         crc32modeconstraint.
1144
1145 2009-12-01  Jakub Jelinek  <jakub@redhat.com>
1146
1147         PR c++/42234
1148         * tree-cfgcleanup.c (cleanup_omp_return): Don't ICE if control_bb
1149         contains no statements.
1150
1151 2009-12-01  Grigori Fursin  <grigori.fursin@inria.fr>
1152             Joern Rennecke  <amylaar@spamcop.net>
1153
1154         * cgraphunit.c (plugin.h): Include.
1155         (ipa_passes): Invoke PLUGIN_ALL_IPA_PASSES_START /
1156         PLUGIN_ALL_IPA_PASSES_END at start / end of processing.
1157         * gcc-plugin.h (highlev-plugin-common.h, hashtab.h): Include.
1158         (enum plugin_event): Define by including plugin.def.
1159         Last enumerator is now called PLUGIN_EVENT_FIRST_DYNAMIC.
1160         (plugin_event_name): Change type to const char **.
1161         (get_event_last, get_named_event_id, unregister_callback): Declare.
1162         (register_callback): Change type of event argument to int.
1163         (highlev-plugin-common.h): New file.
1164         * Makefile.in (GCC_PLUGIN_H): Add highlev-plugin-common.h and
1165         $(HASHTAB_H)
1166         (tree-optimize.o passes.o): Depend on $(PLUGIN_H).
1167         (PLUGIN_HEADERS): Add opts.h, $(PARAMS_H) and plugin.def.
1168         (s-header-vars): New rule.
1169         (install-plugin): Depend on s-header-vars.  Install b-header-vars.
1170         * params.c (get_num_compiler_params): New function.
1171         * params.h (get_num_compiler_params): Declare.
1172         * passes.c (plugin.h): Include.
1173         (make_pass_instance): Invoke PLUGIN_NEW_PASS.
1174         (do_per_function_toporder, pass_init_dump_file): No longer static.
1175         (pass_fini_dump_file): Likewise.
1176         (execute_one_pass): Likewise.  Invoke PLUGIN_OVERRIDE_GATE and
1177         PLUGIN_PASS_EXECUTION.
1178         (execute_ipa_pass_list): Invoke PLUGIN_EARLY_GIMPLE_PASSES_START and
1179         PLUGIN_EARLY_GIMPLE_PASSES_END.
1180         * plugin.c (plugin_event_name_init): New array, defined by
1181         including plugin.def.
1182         (FMT_FOR_PLUGIN_EVENT): Update.
1183         (plugin_event_name): Change type to const char ** and initialize
1184         to plugin_event_name_init.
1185         (event_tab, event_last, event_horizon): New variable.
1186         (get_event_last): New function.
1187         (plugin_callbacks_init): New array.
1188         (plugin_callbacks: Change type to struct callback_info **.
1189         Initialize to plugin_callbacks_init.
1190         (htab_event_eq, get_named_event_id, unregister_callback): New function.
1191         (invoke_plugin_va_callbacks): Likewise.
1192         (register_callback): Change type of event argument to int.
1193         Handle new events.  Allow dynamic events.
1194         (invoke_plugin_callbacks): Likewise.  Return success status.
1195         (plugins_active_p): Allow dynamic callbacks.
1196         * plugin.def: New file.
1197         * plugin.h (invoke_plugin_callbacks): Update prototype.
1198         (invoke_plugin_va_callbacks): Declare.
1199         * tree-optimize.c (plugin.h): Include.
1200         (tree_rest_of_compilation): Invoke PLUGIN_ALL_PASSES_START and
1201         PLUGIN_ALL_PASSES_END.
1202         * tree-pass.h (execute_one_pass, pass_init_dump_file): Declare.
1203         (pass_fini_dump_file, do_per_function_toporder): Likewise.
1204         * doc/plugin.texi: Document new event types.
1205
1206 2009-12-01  Martin Jambor  <mjambor@suse.cz>
1207
1208         PR tree-optimization/42237
1209         * tree-sra.c (sra_ipa_modify_assign): Split gimple_reg_type assignments
1210         in between references into two.
1211
1212 2009-12-01  Richard Guenther  <rguenther@suse.de>
1213
1214         * tree-inline.c (copy_tree_body_r): Do not set TREE_BLOCK
1215         to the block of the call when remapping a type.
1216
1217 2009-12-01  Martin Jambor  <mjambor@suse.cz>
1218
1219         * cgraph.h (struct cgraph_edge): Reorder fields.  Make loop_nest
1220         unsigned short int.
1221         * ipa-prop.h (struct ipa_param_call_note): Likewise.
1222         * ipa-prop.c (ipa_note_param_call): Initialize note->loop_nest.
1223
1224 2009-12-01  Richard Guenther  <rguenther@suse.de>
1225
1226         * final.c (rest_of_clean_state): If -fcompare-debug is
1227         given dump final insns without UIDs.
1228         * tree-ssa-live.c (remove_unused_scope_block_p): Remove
1229         after_inlining checks.
1230
1231 2009-11-30  Chao-ying Fu  <fu@mips.com>
1232
1233         * config/mips/mips-dsp.md (mips_lhx_<mode>): Use sign_extend.
1234
1235 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
1236
1237         * configure.ac (USE_CYGWIN_LIBSTDCXX_WRAPPERS): Define to reflect
1238         status of AC_CHECK_FUNC for Cygwin DLL libstdc++ support wrappers.
1239         * configure: Regenerate.
1240         * config.in: Regenerate.
1241
1242         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Define list of --wrap
1243         options for Cygwin DLL libstdc++ support wrappers.
1244         (CXX_WRAP_SPEC_OPT): Define spec to use wrappers or not by default
1245         according to defined value of USE_CYGWIN_LIBSTDCXX_WRAPPERS.
1246         (CXX_WRAP_SPEC): Define entire wrapper spec in or out according to
1247         whether USE_CYGWIN_LIBSTDCXX_WRAPPERS is even defined or not.
1248         (LINK_SPEC): Include CXX_WRAP_SPEC.
1249         * gcc/config/i386/winnt.c (wrapper_strcmp): New qsort helper function.
1250         (i386_find_on_wrapper_list): Check if a function is found on the list
1251         of libstdc++ wrapper options.
1252         (i386_pe_file_end): If we are importing a wrapped function, also emit
1253         an external declaration for the real version.
1254         * config/i386/cygming.opt (muse-libstdc-wrappers): New option for
1255         Cygwin targets. Update copyright year.
1256
1257 2009-11-30  Steve Ellcey  <sje@cup.hp.com>
1258             Jakub Jelinek <jakub@redhat.com>
1259
1260         * function.c (instantiate_virtual_regs_in_insn): Copy to new reg
1261         before forcing mode.
1262
1263 2009-11-30  Anatoly Sokolov  <aesok@post.ru>
1264
1265         * config/sh/sh.c (sh_promote_prototypes): Make static.
1266         (sh_function_value, sh_libcall_value, sh_function_value_regno_p): New
1267         functions.
1268         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
1269         * config/sh/sh.h (FUNCTION_VALUE_REGNO_P): Redefine, use
1270         sh_function_value_regno_p.
1271         (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
1272         * config/sh/sh-protos.h (sh_function_value_regno_p): Declare.
1273         (sh_promote_prototypes) : Remove.
1274
1275 2009-11-30  Julian Brown  <julian@codesourcery.com>
1276
1277         * config/arm/arm.h (PREFERRED_RELOAD_CLASS): Don't restrict Thumb-2
1278         reloads to LO_REGS.
1279
1280 2009-11-30  Richard Henderson  <rth@redhat.com>
1281
1282         * config/i386/i386.c (ix86_vec_interleave_v2df_operator_ok): New.
1283         (bdesc_special_args): Update insn codes.
1284         (avx_vpermilp_parallel): Correct range check.
1285         (ix86_rtx_costs): Handle vector permutation rtx codes.
1286         (struct expand_vec_perm_d): Move earlier.
1287         (get_mode_wider_vector): New.
1288         (expand_vec_perm_broadcast_1): New.
1289         (ix86_expand_vector_init_duplicate): Use it.  Tidy AVX modes.
1290         (expand_vec_perm_broadcast): New.
1291         (ix86_expand_vec_perm_builtin_1): Use it.
1292         * config/i386/i386-protos.h: Update.
1293         * config/i386/predicates.md (avx_vbroadcast_operand): New.
1294         * config/i386/sse.md (AVX256MODE24P): New.
1295         (ssescalarmodesuffix2s): New.
1296         (avxhalfvecmode, avxscalarmode): Fill out to all modes.
1297         (avxmodesuffixf2c): Add V8SI, V4DI.
1298         (vec_dupv4sf): New expander.
1299         (*vec_dupv4sf_avx): Add vbroadcastss alternative.
1300         (*vec_set<mode>_0_avx, **vec_set<mode>_0_sse4_1): Macro-ize for
1301         V4SF and V4SI.  Move C alternatives to front.  Add insertps and
1302         pinsrd alternatives.
1303         (*vec_set<mode>_0_sse2): Split out from ...
1304         (vec_set<mode>_0): Macro-ize for V4SF and V4SI.
1305         (vec_interleave_highv2df, vec_interleave_lowv2df): Require register
1306         destination; use ix86_vec_interleave_v2df_operator_ok, instead of
1307         ix86_fixup_binary_operands.
1308         (*avx_interleave_highv2df, avx_interleave_lowv2df): Add movddup.
1309         (*sse3_interleave_highv2df, sse3_interleave_lowv2df): New.
1310         (*avx_movddup, *sse3_movddup): Remove.  New splitter from
1311         vec_select form to vec_duplicate form.
1312         (*sse2_interleave_highv2df, sse2_interleave_lowv2df): Use
1313         ix86_vec_interleave_v2df_operator_ok.
1314         (avx_movddup256, avx_unpcklpd256): Change to expanders, merge into ...
1315         (*avx_unpcklpd256): ... here.
1316         (*vec_dupv4si_avx): New.
1317         (*vec_dupv2di_avx): Add movddup alternative.
1318         (*vec_dupv2di_sse3): New.
1319         (vec_dup<AVX256MODE24P>): Replace avx_vbroadcasts<AVXMODEF4P> and
1320         avx_vbroadcastss256; represent with vec_duplicate instead of
1321         nested vec_concat operations.
1322         (avx_vbroadcastf128_<mode>): Rename from
1323         avx_vbroadcastf128_p<avxmodesuffixf2c>256.
1324         (*avx_vperm_broadcast_v4sf): New.
1325         (*avx_vperm_broadcast_<AVX256MODEF2P>): New.
1326
1327 2009-11-30  Martin Jambor  <mjambor@suse.cz>
1328
1329         PR middle-end/42196
1330         * tree-sra.c (struct access): New field grp_different_types.
1331         (dump_access): Dump grp_different_types.
1332         (compare_access_positions): Prefer scalars and vectors over other
1333         scalar types.
1334         (sort_and_splice_var_accesses): Set grp_different_types if appropriate.
1335         (sra_modify_expr): Use the original also when dealing with a complex
1336          or vector group accessed as multiple types.
1337
1338 2009-11-30  Richard Henderson  <rth@redhat.com>
1339
1340         * config/i386/i386.c (avx_vperm2f128_parallel): New.
1341         * config/i386/i386-protos.h: Declare it.
1342         * config/i386/predicates.md (avx_vperm2f128_v8sf_operand,
1343         avx_vperm2f128_v8si_operand, avx_vperm2f128_v4df_operand): New.
1344         * config/i386/sse.md (avx_vperm2f128<mode>3): Change to expander.
1345         (*avx_vperm2f128<mode>_full): Renamed from avx_vperm2f128<mode>3.
1346         (*avx_vperm2f128<mode>_nozero): New.
1347
1348 2009-11-30  Richard Henderson  <rth@redhat.com>
1349
1350         * config/i386/i386-builtin-types.def (V4DF_FTYPE_V4DF_V4DF_V4DI): New.
1351         (V8SF_FTYPE_V8SF_V8SF_V8SI): New.
1352         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Support
1353         V4DF and V8SF for AVX; relax constraint on V4SF to SSE1 from SSE2.
1354         (IX86_BUILTIN_VEC_PERM_V4DF, IX86_BUILTIN_VEC_PERM_V8SF): New.
1355         (bdesc_args): Add them.
1356         (ix86_expand_builtin): Expand them.
1357         (expand_vec_perm_pshufb2): Only operate on 16-byte vectors.
1358
1359 2009-11-30  Martin Jambor  <mjambor@suse.cz>
1360
1361         PR middle-end/42206
1362         * ipa-prop.c (ipa_write_node_info): Initialize note_count to zero.
1363
1364 2009-11-30  Jakub Jelinek  <jakub@redhat.com>
1365
1366         * ipa-reference.c (propagate): Only dump bitmaps if computed.
1367
1368 2009-11-30  Olga Golovanevsky  <olga@il.ibm.com>
1369
1370         PR middle-end/39806
1371         * ipa-struct-reorg.c (new_var_eq): Use DECL_UID to hash new variables.
1372         (new_var_hash): Likewise.
1373         (is_in_new_vars_htab): Likewise.
1374         (add_to_new_vars_htab): Likewise.
1375
1376 2009-11-30  Ira Rosen  <irar@il.ibm.com>
1377
1378         * tree-vect-stmts.c (vectorizable_assignment): Support
1379         multiple types.
1380
1381 2009-11-30  Richard Guenther  <rguenther@suse.de>
1382
1383         * doc/contrib.texi (Contributors): Add myself.
1384
1385 2009-11-30  Richard Guenther  <rguenther@suse.de>
1386
1387         * tree.c (free_lang_data): Do not set debug_info_level to
1388         none if terse.
1389
1390 2009-11-30  Richard Guenther  <rguenther@suse.de>
1391
1392         PR middle-end/42119
1393         PR fortran/38530
1394         * expr.c (expand_expr_addr_expr_1): Properly expand the initializer
1395         of CONST_DECLs.
1396
1397 2009-11-30  Richard Guenther  <rguenther@suse.de>
1398
1399         * tree-into-ssa.c (insert_phi_nodes): Add PHI nodes in
1400         variable UID order.
1401
1402 2009-11-30  Richard Guenther  <rguenther@suse.de>
1403
1404         * tree-dump.c (dump_option_value_in): Add TDF_NOUID.
1405         * tree-pass.h (TDF_NOUID): Likewise.
1406         * print-rtl.c: Include tree-pass.h.
1407         (print_mem_expr): Pass dump_flags.
1408         (print_rtx): Likewise.
1409         * print-tree.c: Include tree-pass.h.
1410         (print_node_brief): Handle TDF_NOUID.
1411         (print_node): Likewise.
1412         * tree-pretty-print.c (dump_decl_name): Likewise.
1413         (dump_generic_node): Likewise.
1414         * Makefile.in (print-rtl.o, print-tree.o): Add $(TREE_PASS_H)
1415         dependency.
1416
1417 2009-11-30  Nick Clifton  <nickc@redhat.com>
1418
1419         * config/stormy16/stormy16-lib2-count-leading-zeros.c: Delete.
1420         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Remove
1421         stormy16-lib2-count-leading-zeros.c.
1422         * config/stormy16/stormy16-lib2.c (__clzhi2): Move code from
1423         __stormy16_count_leading_zeros() into this function.
1424         (__ctzhi2): Use __builtin_clz.
1425         (__ffshi2): Likewise.
1426
1427 2009-11-30  Eric Botcazou  <ebotcazou@adacore.com>
1428
1429         * config/sparc/sparc.c (DF_MODES): Simplify.
1430         (TF_ONLY_MODES, OF_ONLY_MODES): Delete.
1431         (TF_MODES, OF_MODES): Adjust for above change.
1432         (TF_MODES_NO_S, OF_MODES_NO_S): Likewise.
1433         *  config/sparc/sparc.h (REGNO_REG_CLASS): Move around.
1434
1435 2009-11-30  Paolo Bonzini  <bonzini@gnu.org>
1436
1437         PR rtl-optimization/41812
1438         * fwprop.c (local_md, local_lr): New globals.
1439         (process_defs, process_uses): Remove local_md argument.  Never
1440         consider dead pseudos to have singleton def-use chains.
1441         (single_def_use_enter_block): Perform LR simulation.
1442         (build_single_def_use_links): Remove local_md local variable.
1443         Add DF_NOTE.  Allocate local_lr.
1444         (fwprop_done): Do not remove DF_CHAIN, we do not use it anymore.
1445         * df-problems.c (df_md_scratch): New.
1446         (df_md_alloc, df_md_free): Allocate/free it.
1447         (df_md_local_compute): Only include live registers in init.
1448         (df_md_transfer_function): Prune the in-set computed by
1449         the confluence function, and the gen-set too.
1450
1451 2009-11-30  Hans-Peter Nilsson  <hp@axis.com>
1452
1453         PR rtl-optimization/40086
1454         * reorg.c (relax_delay_slots): When looking for redundant insn at
1455         the branch target, use next_real_insn, not next_active_insn.
1456
1457 2009-11-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1458
1459         * doc/install.texi: Update minimum MPC version to 0.8.
1460
1461 2009-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
1462
1463         * config/rs6000/rs6000.md (fnmaddsf4_powerpc_1): Remove
1464         HONOR_SIGNED_ZEROS final condition.
1465         (fnmsubsf4_powerpc_1): Same.
1466         (fnmadddf4_fpr_1): Same.
1467         (fnmsubdf4_fpr_1): Same.
1468
1469 2009-11-29  Ira Rosen  <irar@il.ibm.com>
1470
1471         PR tree-optimization/42193
1472         * tree-vect-stmts.c (vectorizable_operation): Set vectorization factor
1473         to 1 in case of basic block SLP.
1474         (vectorizable_load): Likewise.
1475
1476 2009-11-28  Jan Hubicka  <jh@suse.cz>
1477
1478         * cgraph.c (same_body_alias_1): Break out of
1479         (same_body_alias): ... here; remove comdat check; it is handled
1480         in cp already.
1481         (cgraph_add_thunk): New.
1482         (dump_cgraph_node): Dump aliases and thunks.
1483         * cgraph.h (cgraph_thunk_info): New structure.
1484         (struct cgraph_node): Add thunk info.
1485         (cgraph_add_thunk): New.
1486         * cgraphunit.c (cgraph_emit_thunks): Remove.
1487         (cgraph_finalize_compilation_unit): Do not call cgraph_emit_thunks.
1488         (assemble_thunk): New function.
1489         (cgraph_expand_function): Handle thunks.
1490         (thunk_adjust): New.
1491         (init_lowered_empty_function): New.
1492         * cp-objcp-common.h (LANG_HOOKS_CALLGRAPH_EMIT_ASSOCIATED_THUNKS):
1493         Remove.
1494         * lto-cgraph.c (lto_output_node): Stream thunk info.
1495         (input_node): Likewise.
1496         * langhooks.h (lang_hooks_for_callgraph): Remove emit_associated_thunks.
1497         * langhooks-def.h (LANG_HOOKS_CALLGRAPH_EMIT_ASSOCIATED_THUNKS): Remove.
1498         (LANG_HOOKS_CALLGRAPH_INITIALIZER): Update.
1499         * i386.c (x86_output_mi_thunk): Make output prettier.
1500
1501 2009-11-28  Richard Guenther  <rguenther@suse.de>
1502
1503         PR tree-optimization/42183
1504         * tree-nrv.c (tree_nrv): Bail out if the RESULT_DECL has its
1505         address taken.  Merge the addressable state of the NRV
1506         variable and the result instead of copying it.
1507
1508 2009-11-28  Jakub Jelinek  <jakub@redhat.com>
1509
1510         * matrix-reorg.c (analyze_matrix_allocation_site): Remove unused
1511         malloc_fname variable.
1512         (check_allocation_function): Remove unused gsi and bb_level_0
1513         variables.
1514         (transform_access_sites): Remove unused d_type_size and d_type_size_k
1515         variables.
1516         * omega.c (resurrect_subs): Remove unused n variable.
1517         (omega_solve_geq): Remove unused neweqns variable.
1518         * lto-streamer-in.c (lto_read_tree): Remove unused end_marker variable.
1519         * tree-inline.c (declare_return_variable): Remove USE_P argument,
1520         return use instead of var.
1521         (remap_decl, remap_block): Remove unused fn variable.
1522         (expand_call_inline): Remove unused retvar variable, adjust
1523         declare_return_variable caller.
1524         (optimize_inline_calls): Remove unused prev_fn variable.
1525         * tree-vect-slp.c (vect_analyze_slp_instance): Remove unused ncopies
1526         variable.
1527         (vect_create_mask_and_perm): Remove unused group_size and dr_chain_size
1528         variables.
1529         * tree-ssa-loop-niter.c (split_to_var_and_offset): Handle MINUS_EXPR
1530         properly.
1531         * tree-vect-loop.c (vect_analyze_loop_form): Remove unused backedge
1532         variable.
1533         (vect_create_epilog_for_reduction): Remove unused bytesize variable.
1534         * omp-low.c (workshare_safe_to_combine_p): Remove par_entry_bb
1535         parameter.  Remove unused par_stmt variable.
1536         (determine_parallel_type): Adjust workshare_safe_to_combine_p caller.
1537         (expand_omp_sections): Remove unused l1 variable.
1538         (lower_omp_for): Remove unused ilist variable.
1539         * tree-loop-distribution.c (mark_nodes_having_upstream_mem_writes):
1540         Remove unused has_upstream_mem_write_p variable.
1541         * recog.c (decode_asm_operands): Remove unused noperands variable.
1542         * tree-ssa-alias.c (refs_may_alias_p_1): Remove unused size1 and
1543         size2 variable.
1544         * libgcov.c (__gcov_merge_delta): Remove unused last variable.
1545         * tree-call-cdce.c (gen_conditions_for_pow_int_base): Remove unused
1546         base_nm variable.
1547         (gen_conditions_for_pow): Remove unused ec variable.
1548         * tree-ssa-sccvn.c (vn_reference_lookup_3): Remove unused size
1549         variable.
1550         * ipa-struct-reorg.c (program_redefines_malloc_p): Remove unused
1551         fndecl variable.
1552         * tree-ssa-sink.c (statement_sink_location): Remove unused code
1553         variable.
1554         * regmove.c (copy_src_to_dest): Remove unused insn_uid and move_uid
1555         variables.
1556         * tree-complex.c (create_one_component_var): Remove unused inner_type
1557         variable.
1558         * calls.c (emit_call_1): Don't GEN_INT (struct_value_size)
1559         unnecessarily when GEN_*CALL omits that argument.
1560         * regrename.c (regrename_optimize): Remove unused regs_seen variable.
1561         (build_def_use): Remove unused icode variable.
1562         * ipa-pure-const.c (check_call): Remove unused callee and avail
1563         variables.
1564         * tree-dfa.c (add_referenced_var): Remove unused v_ann variable.
1565         * tree-vect-patterns.c (vect_recog_pow_pattern): Remove unused type
1566         variable.
1567         (vect_pattern_recog): Remove unused stmt variable.
1568         * sel-sched-ir.c (make_regions_from_the_rest): Remove unused
1569         new_regions variable.
1570         * postreload.c (reload_cse_simplify_operands): Remove unused mode
1571         variable.
1572         * tree-parloops.c (create_call_for_reduction_1): Remove unused
1573         addr_type variable.
1574         (create_parallel_loop): Remove unused res variable.
1575         (gen_parallel_loop): Remove unused nloop variable.
1576         * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
1577         * value-prof.c (gimple_mod_subtract_transform,
1578         gimple_stringops_transform): Remove unused value variable.
1579         (gimple_stringops_values_to_profile): Remove unused fcode variable.
1580         * tree-vrp.c (register_new_assert_for): Remove unused found variable.
1581         (vrp_visit_switch_stmt): Remove unused n variable.
1582         * tree-vect-stmts.c (vectorizable_conversion): Remove unused expr
1583         variable.
1584         (vectorizable_operation): Remove unused shift_p variable.
1585         (vectorizable_store): Remove unused first_stmt_vinfo variable.
1586         * tree-ssa-operands.c (add_stmt_operand): Remove unused v_ann variable.
1587         * tree-vect-data-refs.c (vect_analyze_data_refs): Remove unused bb
1588         variable.
1589         (vect_permute_store_chain): Remove unused scalar_dest variable.
1590         (vect_supportable_dr_alignment): Remove unused invariant_in_outerloop
1591         variable.
1592         * tree-ssa-threadupdate.c (thread_single_edge): Remove unused
1593         local_info variable.
1594         * tree-optimize.c (tree_rest_of_compilation): Remove unused node
1595         variable.
1596         * optabs.c (expand_binop): Remove unused equiv_value variable.
1597         (emit_libcall_block): Remove unused prev variable.
1598         (init_optabs): Remove unused int_mode variable.
1599         * tree-ssa-structalias.c (scc_visit): Remove unused have_ref_node
1600         variable.
1601         (do_structure_copy): Remove unused lhsbase and rhsbase variables.
1602         (find_func_aliases): Remove unused rhstype variable.
1603         (ipa_pta_execute): Remove unused varid variable.
1604
1605 2009-11-28  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
1606
1607         * config/avr/avr.h (ASM_OUTPUT_EXTERNAL): Add.
1608
1609 2009-11-28  David Binderman  <dcb314@hotmail.com>
1610
1611         * ira-color.c (put_allocno_into_bucket): Remove set but not used
1612         local variable hard_regs_num.
1613         * ira-lives.c (process_single_reg_class_operands): Remove cover_class.
1614         * loop-unswitch.c (unswitch_loop): Remove zero_bitmap.
1615         * lower-subreg.c (decompose_multiword_subregs): Remove next.
1616
1617 2009-11-27  Martin Jambor  <mjambor@suse.cz>
1618
1619         PR middle-end/42006
1620         * tree-sra.c (get_replaced_param_substitute): Call create_tmp_var
1621         instead of create_tmp_var.  Set DECL_GIMPLE_REG_P to one manually
1622         for vector and complex types.
1623         (get_adjustment_for_base): Describe return value in the comment.
1624
1625 2009-11-27  Nick Clifton  <nickc@redhat.com>
1626
1627         * longlong.h (count_leading_zeros): Define macro for stormy16 target.
1628         (COUNT_LEADING_ZEROS_0): Likewise.
1629         * config/stormy16/stormy16-lib2.c: Arrange for separate
1630         compilation of each function.
1631         (__ffshi2): New function.
1632         (__stormy16_count_leading_zeros): New function.
1633         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Use stub files to
1634         compile each function into its own object file.
1635         (stormy16-lib2-ashlsi3.c): New stub file.
1636         (stormy16-lib2-ashrsi3.c): New stub file.
1637         (stormy16-lib2-clzhi2.c): New stub file.
1638         (stormy16-lib2-count-leading-zeros.c): New stub file.
1639         (stormy16-lib2-ctzhi2.c): New stub file.
1640         (stormy16-lib2-divsi3.c): New stub file.
1641         (stormy16-lib2-ffshi2.c): New stub file.
1642         (stormy16-lib2-lshrsi3.c): New stub file.
1643         (stormy16-lib2-modsi3.c): New stub file.
1644         (stormy16-lib2-parityhi2.c): New stub file.
1645         (stormy16-lib2-popcounthi2.c): New stub file.
1646         (stormy16-lib2-udivmodsi4.c): New stub file.
1647         (stormy16-lib2-udivsi3.c): New stub file.
1648         (stormy16-lib2-umodsi3.c): New stub file.
1649
1650 2009-11-27  Richard Henderson  <rth@redhat.com>
1651
1652         * config/i386/sse.md (vec_interleave_highv16qi,
1653         vec_interleave_lowv16qi, vec_interleave_highv8hi,
1654         vec_interleave_lowv8hi, vec_interleave_highv4si,
1655         vec_interleave_lowv4si, vec_interleave_highv2di,
1656         vec_interleave_lowv2di, vec_interleave_highv4sf,
1657         vec_interleave_lowv4sf, vec_interleave_highv2df,
1658         vec_interleave_lowv2df): Remove expanders.
1659         (sse_unpcklps, sse_unpckhps, sse2_unpckhpd_exp, sse2_unpcklpd_exp,
1660         sse2_punpckhqdq, sse2_punpcklqdq, sse2_punpckhbw, sse2_punpcklbw,
1661         sse2_punpckhwd, sse2_punpcklwd, sse2_punpckhdq, sse2_punpckldq):
1662         Rename to their proper vec_interleave equivalent.  Update all users
1663         to the new name.
1664         * config/i386/i386.c, config/i386/i386.md: Update all users.
1665
1666 2009-11-27  Michael Matz  <matz@suse.de>
1667
1668         PR rtl-optimization/42084
1669         * cfgexpand.c (maybe_cleanup_end_of_block): Add new parameter,
1670         use it to stop walking.
1671         (expand_gimple_cond): Adjust call to above.
1672
1673 2009-11-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1674
1675         PR target/41810
1676         * gthr-solaris.h (__gthread_mutex_destroy): Remove UNUSED.
1677         [SUPPORTS_WEAK && GTHREAD_USE_WEAK] (__gthread_active_p): Use
1678         __extension__ to allow cast from function pointer to object
1679         pointer in C++.
1680         * doc/install.texi (--enable-threads): Clarify use of Solaris threads.
1681
1682 2009-11-27  Steven Bosscher  <steven@gcc.gnu.org>
1683
1684         * config/ia64/itanium1.md: Remove.
1685         * config/ia64/ia64.md: Do not include it.
1686         * config/ia64/ia64.c (ia64_handle_option): Remove "itanium",
1687         "itanium1", and "merced" from the processor alias table.
1688         (clocks, add_cycles): Remove global variables.
1689         (ia64_sched_reorder2): Don't set/use them.
1690         (ia64_dfa_new_cycle, ia64_h_i_d_extended, ia64_reorg): Likewise.
1691         (bundling): Likewise. Remove extra pass for MMMUL/MMSHF.
1692
1693 2009-11-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1694
1695         * config/s390/s390.c (last_scheduled_insn): New variable.
1696         (s390_fpload_toreg, s390_z10_prevent_earlyload_conflicts): New
1697         functions.
1698         (s390_sched_reorder, s390_sched_variable_issue): New functions.
1699         (TARGET_SCHED_VARIABLE_ISSUE, TARGET_SCHED_REORDER): Target hooks
1700         defined.
1701
1702 2009-11-27  Michael Matz  <matz@suse.de>
1703
1704         PR c++/41906
1705         * tree-eh.c (lower_catch): Stop after expanding a catch-all.
1706
1707 2009-11-27  Richard Guenther  <rguenther@suse.de>
1708
1709         * timevar.def (TV_LOOP_MOVE_INVARIANTS, TV_LOOP_UNSWITCH,
1710         TV_LOOP_UNROLL, TV_LOOP_DOLOOP): New timevars.
1711         * loop-init.c (pass_rtl_move_loop_invariants): Use
1712         TV_LOOP_MOVE_INVARIANTS.
1713         (pass_rtl_unswitch): Use TV_LOOP_UNSWITCH.
1714         (pass_rtl_unroll_and_peel): Use TV_LOOP_UNROLL.
1715         (pass_rtl_doloop): Use TV_LOOP_DOLOOP.
1716
1717 2009-11-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1718
1719         * emit-rtl.c (next_active_insn, prev_active_insn): Correct comment.
1720
1721 2009-11-27  Jakub Jelinek  <jakub@redhat.com>
1722
1723         * config/i386/i386.c (ix86_emit_restore_sse_regs_using_mov): Remove
1724         unused insn variable.
1725         * genemit.c (output_peephole2_scratches): Only declare and initialize
1726         _regs_allocated if it will be ever used.
1727         * cfgloopmanip.c (create_empty_if_region_on_edge): Remove unused
1728         succ_bb variable.
1729         (create_empty_loop_on_edge): Remove unused freq and cnt variables.
1730         * unwind-c.c (PERSONALITY_FUNCTION): Remove unused action_record
1731         variable.
1732
1733         * opts.c (decode_options): If optimize is bigger than 255,
1734         set it to 255.
1735
1736 2009-11-26  Richard Henderson  <rth@redhat.com>
1737
1738         * config/i386/sse.md (mulv16qi3): Change back from an expander
1739         to an insn-and-split.
1740         (mulv4si): Mention AVX not XOP for AVX exception.
1741         (*sse2_mulv4si3): Likewise.
1742         (mulv2di3): Use vmulld not vpmacsdd for XOP expansion.  Tidy.
1743
1744 2009-11-26  Bernd Schmidt  <bernd.schmidt@analog.com>
1745
1746         * cfgexpand (n_stack_vars_conflict): New static variable.
1747         (triangular_index): Reduce likelyhood of overflow by performing
1748         the division before the multiplication.
1749         (resize_stack_vars_conflict): Call fatal_error if overflow
1750         occurred in triangular_index.  Update n_stack_vars_conflict.
1751
1752         PR rtl-opt/38582
1753         * regrename.c (struct du_chain): Remove member earlyclobber.
1754         (scan_rtx_reg): Don't set it.  Remove argument earlyclobber,
1755         all callers changed.
1756         (scan_rtx): Remove argument earlyclobber, all callers changed.
1757         (hide_operands, restore_operands, record_out_operands): New functions,
1758         broken out of build_def_use.
1759         (build_def_use): Call them as necessary.
1760
1761         * regrename.c (struct du_head): New members id, conflicts,
1762         hard_conflicts and cannot_rename.
1763         (enum scan_actions): Remove terminate_all_read and
1764         terminate_overlapping_read; add mark_all_read.
1765         (scan_actions_name): Likewise.
1766         (du_head_p): New typedef.  Define a vector type for it.
1767         (id_to_chain): New static variable.
1768         (note_sets, clear_dead_regs): Delete functions.
1769         (free_chain_data): New function.
1770         (merge_overlapping_regs): Simply walk the conflicts bitmap.
1771         Remove argument B, all callers changed.
1772         (regrename_optimize): Allocate id_to_chain.  Ignore chains that have
1773         the cannot_rename bit set.  Update regno and nregs of a renamed chain.
1774         Call free_chain_data when done.
1775         (do_replace): Remove death notes when the renamed reg is set in the
1776         last insn; add them if not.
1777         (mark_conflict, note_sets_clobbers): New static function.
1778         (fail_current_block, current_id, open_chains_set, live_hard_regs): New
1779         static variables.
1780         (scan_rtx_reg): Keep track of conflicts between chains, and between
1781         chains and hard regs.  Don't terminate chains when we find a read we
1782         can't handle, mark it unrenameable instead.  For terminate_write,
1783         terminate chains that are written with an exact match or a superset
1784         of registers.  Set fail_current_block if multi-word lifetimes are too
1785         complex to handle.
1786         (scan_rtx_address): Use mark_all_read instead of terminate_all_read.
1787         (build_def_use): Initialize current_id, live_chains and live_hard_regs;
1788         free memory for them when done.
1789         Rearrange the steps so that earlyclobbers are noted before reads
1790         are processed.  Add new steps to keep track of hard register lifetimes
1791         outside insn operands.
1792
1793 2009-11-26  Richard Guenther  <rguenther@suse.de>
1794
1795         * tree-ssa-dce.c (nr_walks): New variable.
1796         (mark_aliased_reaching_defs_necessary): Adjust oracle cut-off.
1797         (perform_tree_ssa_dce): Init nr_walks.
1798
1799 2009-11-26  Michael Matz  <matz@suse.de>
1800
1801         PR tree-optimization/41905
1802         * tree-eh.c (lower_eh_constructs_2): Don't add assignments
1803         below statements that can't fall thru.
1804
1805 2009-11-26  Michael Matz  <matz@suse.de>
1806
1807         * builtins.c (expand_builtin_printf, expand_builtin_fprintf,
1808         expand_builtin_sprintf): Remove.
1809         (expand_builtin): Don't call them.
1810
1811 2009-11-26  Richard Guenther  <rguenther@suse.de>
1812
1813         * tree-ssa-dce.c (perform_tree_ssa_dce): Allocate visited bitmap.
1814
1815 2009-11-26  Nick Clifton  <nickc@redhat.com>
1816
1817         * config/rx/rx.c (rx_expand_epilogue): Add checks for sibcalls
1818         being used incorrectly.
1819         (rx_function_ok_for_sibcall): New function.  Do not allow indirect
1820         sibcalls, or sibcalls from interrupt functions.
1821         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define.
1822         * config/rx/rx.md (sibcall): Convert to a define_expand.  Check
1823         for a MEM inside a MEM.
1824         (sibcall_value): Likewise.
1825         (sibcall_internal): New pattern containing old sibcall pattern.
1826         (sibcall_value_internal): Likewise.
1827
1828 2009-11-25  Richard Henderson  <rth@redhat.com>
1829
1830         * config/i386/i386-builtin-types.awk (DEF_VECTOR_TYPE): Allow an
1831         optional 3rd argument to define the mode.
1832         * config/i386/i386-builtin-types.def (UQI, UHI, USI, UDI): New.
1833         (V2UDI, V4USI, V8UHI, V16UQI): New.
1834         (V4SF_FTYPE_V4SF_V4SF_V4SI, V2UDI_FTYPE_V2UDI_V2UDI_V2UDI,
1835         V4USI_FTYPE_V4USI_V4USI_V4USI, V8UHI_FTYPE_V8UHI_V8UHI_V8UHI,
1836         V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): New.
1837         * config/i386/i386-modes.def: Rearrange for double-wide AVX.
1838         * config/i386/i386-protos.h (ix86_expand_vec_extract_even_odd): New.
1839         * config/i386/i386.c (IX86_BUILTIN_VEC_PERM_*): New.
1840         (bdesc_args): Add the builtin definitions to match.
1841         (ix86_expand_builtin): Expand them.
1842         (ix86_builtin_vectorization_cost): Rename from
1843         x86_builtin_vectorization_cost.
1844         (ix86_vectorize_builtin_vec_perm, struct expand_vec_perm_d,
1845         doublesize_vector_mode, expand_vselect, expand_vselect_vconcat,
1846         expand_vec_perm_blend, expand_vec_perm_vpermil,
1847         expand_vec_perm_pshufb, expand_vec_perm_1,
1848         expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
1849         expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
1850         expand_vec_perm_even_odd_1, expand_vec_perm_even_odd,
1851         ix86_expand_vec_perm_builtin_1, extract_vec_perm_cst,
1852         ix86_expand_vec_perm_builtin, ix86_vectorize_builtin_vec_perm_ok,
1853         ix86_expand_vec_extract_even_odd, TARGET_VECTORIZE_BUILTIN_VEC_PERM,
1854         TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): New.
1855         * sse.md (SSEMODE_EO): New.
1856         (vec_extract_even<mode>): Use SSEMODE_EO and
1857         ix86_expand_vec_extract_even_odd.
1858         (vec_extract_odd<mode>): Likewise.
1859         (mulv16qi3, vec_pack_trunc_v8hi, vec_pack_trunc_v4si,
1860         vec_pack_trunc_v2di): Use ix86_expand_vec_extract_even_odd.
1861
1862 2009-11-25  Richard Henderson  <rth@redhat.com>
1863
1864         * target.h (targetm.vectorize.builtin_vec_perm_ok): New.
1865         * target-def.h (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): New.
1866         * hooks.h, hooks.c (hook_bool_tree_tree_true): New.
1867         * tree-vect-slp.c (vect_create_mask_and_perm): Don't create
1868         the vector constant here...
1869         (vect_transform_slp_perm_load): ... do it here instead.  Validate
1870         that the permutation vector is implementable by the target.
1871
1872 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
1873
1874         * config/rs6000/sysv4.opt (mregnames): Change Var to rs6000_regnames.
1875         * config/rs6000/sysv4.h (TARGET_REGNAMES): Define.
1876
1877         * print-rtl.c (print_rtx): When printing newline, append
1878         print_rtx_head and indentation after the newline.
1879
1880         PR target/42165
1881         * config/i386/i386.c (print_operand): For 32-byte memory use
1882         YMMWORD in -masm=intel mode.  Use TBYTE instead of XWORD.
1883         * config/i386/i386.md (crc32modesuffix): Expand to nothing
1884         in -masm=intel mode.
1885         (sse4_2_crc32di): Print just crc32 instead of crc32q in
1886         -masm=intel mode.
1887         * config/i386/mmx.md (*mmx_pinsrw): Print correct size of
1888         memory operand in -masm=intel mode.
1889         * config/i386/sse.md (*avx_pinsr<ssevecsize>, *sse4_1_pinsrb,
1890         *sse2_pinsrw): Likewise.
1891         (sse_cvtss2siq, sse_cvtss2siq_2, sse_cvttss2siq): Don't print
1892         q suffix in -masm=intel mode.
1893
1894 2009-11-25  Eric Botcazou  <ebotcazou@adacore.com>
1895
1896         PR target/10127
1897         PR ada/20548
1898         PR middle-end/42004
1899         * dwarf2out.c (dwarf2out_args_size_adjust): Rename to...
1900         (dwarf2out_stack_adjust): ...this.  Do not adjust the arg size for
1901         ACCUMULATE_OUTGOING_ARGS targets.  Rename former version to...
1902         (dwarf2out_notice_stack_adjust): ...this.  Adjust for above renaming.
1903         (dwarf2out_frame_debug_expr): Revert previous change and adjust for
1904         above renaming.
1905         (dwarf2out_frame_debug): Add ??? comment.  Adjust for above renaming.
1906
1907 2009-11-25  Uros Bizjak  <ubizjak@gmail.com>
1908
1909         * config/i386/predicates.md (emms_operation): New predicate.
1910         (vzeroupper_operation): Ditto.
1911         (vzeroall_operation): Improve pattern recognition.
1912         * config/i386/sse.md (avx_vzeroupper_rex64): Remove insn pattern.
1913         (avx_vzeroupper): Change insn pattern to expander.
1914         (*avx_vzeroupper): New insn pattern.  Use vzeroupper_operation
1915         predicate.
1916         (*avx_vzeroall): Remove operands 1 and 2.
1917         * config/i386/mmx.md (mmx_emms): Change insn pattern to expander.
1918         (mmx_femms): Ditto.
1919         (*mmx_emms): New insn pattern.  Use emms_operation predicate.
1920         (*mmx_femms): Ditto.
1921         * config/i386/i386.c (enum ix86_builtins)
1922         <IX86_BUILTIN_VZEROUPPER_REX64>: Remove.
1923         (struct builtin_description) <CODE_FOR_avx_vzeroupper_rex64>:
1924         Remove initailization.
1925         <CODE_FOR_avx_vzeroupper>: Unconditionally initialize here.
1926
1927 2009-11-25  Paul Brook  <paul@codesourcery.com>
1928
1929         * config/arm/arm.md (consttable_4): Handle (high ...).
1930
1931 2009-11-25  Robert Nelson  <robert.nelson@digikey.com>
1932             Richard Earnshaw  <rearnsha@arm.com>
1933
1934         * arm.h (enum vfp_reg_type): Add VFP_NONE.
1935         * arm.c (all_fpus): Use it for floating point units that aren't based
1936         on the VFP architecture.
1937         (aapcs_vfp_is_call_or_return_candidate): Make base_mode a pointer to
1938         enum machine_mode.
1939
1940 2009-11-25  H.J. Lu  <hongjiu.lu@intel.com>
1941
1942         * alias.c: Remove trailing white spaces.
1943         * alloc-pool.c: Likewise.
1944         * alloc-pool.h: Likewise.
1945         * attribs.c: Likewise.
1946         * auto-inc-dec.c: Likewise.
1947         * basic-block.h: Likewise.
1948         * bb-reorder.c: Likewise.
1949         * bt-load.c: Likewise.
1950         * builtins.c: Likewise.
1951         * builtins.def: Likewise.
1952         * c-common.c: Likewise.
1953         * c-common.h: Likewise.
1954         * c-cppbuiltin.c: Likewise.
1955         * c-decl.c: Likewise.
1956         * c-format.c: Likewise.
1957         * c-lex.c: Likewise.
1958         * c-omp.c: Likewise.
1959         * c-opts.c: Likewise.
1960         * c-parser.c: Likewise.
1961         * c-pretty-print.c: Likewise.
1962         * c-tree.h: Likewise.
1963         * c-typeck.c: Likewise.
1964         * caller-save.c: Likewise.
1965         * calls.c: Likewise.
1966         * cfg.c: Likewise.
1967         * cfganal.c: Likewise.
1968         * cfgexpand.c: Likewise.
1969         * cfghooks.c: Likewise.
1970         * cfghooks.h: Likewise.
1971         * cfglayout.c: Likewise.
1972         * cfgloop.c: Likewise.
1973         * cfgloop.h: Likewise.
1974         * cfgloopmanip.c: Likewise.
1975         * cfgrtl.c: Likewise.
1976         * cgraph.c: Likewise.
1977         * cgraph.h: Likewise.
1978         * cgraphbuild.c: Likewise.
1979         * cgraphunit.c: Likewise.
1980         * cif-code.def: Likewise.
1981         * collect2.c: Likewise.
1982         * combine.c: Likewise.
1983         * convert.c: Likewise.
1984         * coverage.c: Likewise.
1985         * crtstuff.c: Likewise.
1986         * cse.c: Likewise.
1987         * cselib.c: Likewise.
1988         * dbgcnt.c: Likewise.
1989         * dbgcnt.def: Likewise.
1990         * dbgcnt.h: Likewise.
1991         * dbxout.c: Likewise.
1992         * dce.c: Likewise.
1993         * ddg.c: Likewise.
1994         * ddg.h: Likewise.
1995         * defaults.h: Likewise.
1996         * df-byte-scan.c: Likewise.
1997         * df-core.c: Likewise.
1998         * df-problems.c: Likewise.
1999         * df-scan.c: Likewise.
2000         * df.h: Likewise.
2001         * dfp.c: Likewise.
2002         * diagnostic.c: Likewise.
2003         * diagnostic.h: Likewise.
2004         * dominance.c: Likewise.
2005         * domwalk.c: Likewise.
2006         * double-int.c: Likewise.
2007         * double-int.h: Likewise.
2008         * dse.c: Likewise.
2009         * dwarf2asm.c: Likewise.
2010         * dwarf2asm.h: Likewise.
2011         * dwarf2out.c: Likewise.
2012         * ebitmap.c: Likewise.
2013         * ebitmap.h: Likewise.
2014         * emit-rtl.c: Likewise.
2015         * et-forest.c: Likewise.
2016         * except.c: Likewise.
2017         * except.h: Likewise.
2018         * expmed.c: Likewise.
2019         * expr.c: Likewise.
2020         * expr.h: Likewise.
2021         * final.c: Likewise.
2022         * flags.h: Likewise.
2023         * fold-const.c: Likewise.
2024         * function.c: Likewise.
2025         * function.h: Likewise.
2026         * fwprop.c: Likewise.
2027         * gcc.c: Likewise.
2028         * gcov-dump.c: Likewise.
2029         * gcov-io.c: Likewise.
2030         * gcov-io.h: Likewise.
2031         * gcov.c: Likewise.
2032         * gcse.c: Likewise.
2033         * genattr.c: Likewise.
2034         * genattrtab.c: Likewise.
2035         * genautomata.c: Likewise.
2036         * genchecksum.c: Likewise.
2037         * genconfig.c: Likewise.
2038         * genflags.c: Likewise.
2039         * gengtype-parse.c: Likewise.
2040         * gengtype.c: Likewise.
2041         * gengtype.h: Likewise.
2042         * genmddeps.c: Likewise.
2043         * genmodes.c: Likewise.
2044         * genopinit.c: Likewise.
2045         * genpreds.c: Likewise.
2046         * gensupport.c: Likewise.
2047         * ggc-common.c: Likewise.
2048         * ggc-page.c: Likewise.
2049         * ggc-zone.c: Likewise.
2050         * ggc.h: Likewise.
2051         * gimple-iterator.c: Likewise.
2052         * gimple-low.c: Likewise.
2053         * gimple-pretty-print.c: Likewise.
2054         * gimple.c: Likewise.
2055         * gimple.def: Likewise.
2056         * gimple.h: Likewise.
2057         * gimplify.c: Likewise.
2058         * graphds.c: Likewise.
2059         * graphite-clast-to-gimple.c: Likewise.
2060         * gthr-nks.h: Likewise.
2061         * gthr-posix.c: Likewise.
2062         * gthr-posix.h: Likewise.
2063         * gthr-posix95.h: Likewise.
2064         * gthr-single.h: Likewise.
2065         * gthr-tpf.h: Likewise.
2066         * gthr-vxworks.h: Likewise.
2067         * gthr.h: Likewise.
2068         * haifa-sched.c: Likewise.
2069         * hard-reg-set.h: Likewise.
2070         * hooks.c: Likewise.
2071         * hooks.h: Likewise.
2072         * hosthooks.h: Likewise.
2073         * hwint.h: Likewise.
2074         * ifcvt.c: Likewise.
2075         * incpath.c: Likewise.
2076         * init-regs.c: Likewise.
2077         * integrate.c: Likewise.
2078         * ipa-cp.c: Likewise.
2079         * ipa-inline.c: Likewise.
2080         * ipa-prop.c: Likewise.
2081         * ipa-pure-const.c: Likewise.
2082         * ipa-reference.c: Likewise.
2083         * ipa-struct-reorg.c: Likewise.
2084         * ipa-struct-reorg.h: Likewise.
2085         * ipa-type-escape.c: Likewise.
2086         * ipa-type-escape.h: Likewise.
2087         * ipa-utils.c: Likewise.
2088         * ipa-utils.h: Likewise.
2089         * ipa.c: Likewise.
2090         * ira-build.c: Likewise.
2091         * ira-color.c: Likewise.
2092         * ira-conflicts.c: Likewise.
2093         * ira-costs.c: Likewise.
2094         * ira-emit.c: Likewise.
2095         * ira-int.h: Likewise.
2096         * ira-lives.c: Likewise.
2097         * ira.c: Likewise.
2098         * jump.c: Likewise.
2099         * lambda-code.c: Likewise.
2100         * lambda-mat.c: Likewise.
2101         * lambda-trans.c: Likewise.
2102         * lambda.h: Likewise.
2103         * langhooks.c: Likewise.
2104         * lcm.c: Likewise.
2105         * libgcov.c: Likewise.
2106         * lists.c: Likewise.
2107         * loop-doloop.c: Likewise.
2108         * loop-init.c: Likewise.
2109         * loop-invariant.c: Likewise.
2110         * loop-iv.c: Likewise.
2111         * loop-unroll.c: Likewise.
2112         * lower-subreg.c: Likewise.
2113         * lto-cgraph.c: Likewise.
2114         * lto-compress.c: Likewise.
2115         * lto-opts.c: Likewise.
2116         * lto-section-in.c: Likewise.
2117         * lto-section-out.c: Likewise.
2118         * lto-streamer-in.c: Likewise.
2119         * lto-streamer-out.c: Likewise.
2120         * lto-streamer.c: Likewise.
2121         * lto-streamer.h: Likewise.
2122         * lto-symtab.c: Likewise.
2123         * lto-wpa-fixup.c: Likewise.
2124         * matrix-reorg.c: Likewise.
2125         * mcf.c: Likewise.
2126         * mode-switching.c: Likewise.
2127         * modulo-sched.c: Likewise.
2128         * omega.c: Likewise.
2129         * omega.h: Likewise.
2130         * omp-low.c: Likewise.
2131         * optabs.c: Likewise.
2132         * optabs.h: Likewise.
2133         * opts-common.c: Likewise.
2134         * opts.c: Likewise.
2135         * params.def: Likewise.
2136         * params.h: Likewise.
2137         * passes.c: Likewise.
2138         * plugin.c: Likewise.
2139         * postreload-gcse.c: Likewise.
2140         * postreload.c: Likewise.
2141         * predict.c: Likewise.
2142         * predict.def: Likewise.
2143         * pretty-print.c: Likewise.
2144         * pretty-print.h: Likewise.
2145         * print-rtl.c: Likewise.
2146         * print-tree.c: Likewise.
2147         * profile.c: Likewise.
2148         * read-rtl.c: Likewise.
2149         * real.c: Likewise.
2150         * recog.c: Likewise.
2151         * reg-stack.c: Likewise.
2152         * regcprop.c: Likewise.
2153         * reginfo.c: Likewise.
2154         * regmove.c: Likewise.
2155         * regrename.c: Likewise.
2156         * regs.h: Likewise.
2157         * regstat.c: Likewise.
2158         * reload.c: Likewise.
2159         * reload1.c: Likewise.
2160         * resource.c: Likewise.
2161         * rtl.c: Likewise.
2162         * rtl.def: Likewise.
2163         * rtl.h: Likewise.
2164         * rtlanal.c: Likewise.
2165         * sbitmap.c: Likewise.
2166         * sched-deps.c: Likewise.
2167         * sched-ebb.c: Likewise.
2168         * sched-int.h: Likewise.
2169         * sched-rgn.c: Likewise.
2170         * sched-vis.c: Likewise.
2171         * sdbout.c: Likewise.
2172         * sel-sched-dump.c: Likewise.
2173         * sel-sched-dump.h: Likewise.
2174         * sel-sched-ir.c: Likewise.
2175         * sel-sched-ir.h: Likewise.
2176         * sel-sched.c: Likewise.
2177         * sel-sched.h: Likewise.
2178         * sese.c: Likewise.
2179         * sese.h: Likewise.
2180         * simplify-rtx.c: Likewise.
2181         * stack-ptr-mod.c: Likewise.
2182         * stmt.c: Likewise.
2183         * stor-layout.c: Likewise.
2184         * store-motion.c: Likewise.
2185         * stringpool.c: Likewise.
2186         * stub-objc.c: Likewise.
2187         * sync-builtins.def: Likewise.
2188         * target-def.h: Likewise.
2189         * target.h: Likewise.
2190         * targhooks.c: Likewise.
2191         * targhooks.h: Likewise.
2192         * timevar.c: Likewise.
2193         * tlink.c: Likewise.
2194         * toplev.c: Likewise.
2195         * toplev.h: Likewise.
2196         * tracer.c: Likewise.
2197         * tree-affine.c: Likewise.
2198         * tree-affine.h: Likewise.
2199         * tree-browser.def: Likewise.
2200         * tree-call-cdce.c: Likewise.
2201         * tree-cfg.c: Likewise.
2202         * tree-cfgcleanup.c: Likewise.
2203         * tree-chrec.c: Likewise.
2204         * tree-chrec.h: Likewise.
2205         * tree-complex.c: Likewise.
2206         * tree-data-ref.c: Likewise.
2207         * tree-data-ref.h: Likewise.
2208         * tree-dfa.c: Likewise.
2209         * tree-dump.c: Likewise.
2210         * tree-dump.h: Likewise.
2211         * tree-eh.c: Likewise.
2212         * tree-flow-inline.h: Likewise.
2213         * tree-flow.h: Likewise.
2214         * tree-if-conv.c: Likewise.
2215         * tree-inline.c: Likewise.
2216         * tree-into-ssa.c: Likewise.
2217         * tree-loop-distribution.c: Likewise.
2218         * tree-loop-linear.c: Likewise.
2219         * tree-mudflap.c: Likewise.
2220         * tree-nested.c: Likewise.
2221         * tree-nomudflap.c: Likewise.
2222         * tree-nrv.c: Likewise.
2223         * tree-object-size.c: Likewise.
2224         * tree-optimize.c: Likewise.
2225         * tree-outof-ssa.c: Likewise.
2226         * tree-parloops.c: Likewise.
2227         * tree-pass.h: Likewise.
2228         * tree-phinodes.c: Likewise.
2229         * tree-predcom.c: Likewise.
2230         * tree-pretty-print.c: Likewise.
2231         * tree-profile.c: Likewise.
2232         * tree-scalar-evolution.c: Likewise.
2233         * tree-ssa-address.c: Likewise.
2234         * tree-ssa-alias.c: Likewise.
2235         * tree-ssa-ccp.c: Likewise.
2236         * tree-ssa-coalesce.c: Likewise.
2237         * tree-ssa-copy.c: Likewise.
2238         * tree-ssa-copyrename.c: Likewise.
2239         * tree-ssa-dce.c: Likewise.
2240         * tree-ssa-dom.c: Likewise.
2241         * tree-ssa-dse.c: Likewise.
2242         * tree-ssa-forwprop.c: Likewise.
2243         * tree-ssa-ifcombine.c: Likewise.
2244         * tree-ssa-live.c: Likewise.
2245         * tree-ssa-live.h: Likewise.
2246         * tree-ssa-loop-ch.c: Likewise.
2247         * tree-ssa-loop-im.c: Likewise.
2248         * tree-ssa-loop-ivcanon.c: Likewise.
2249         * tree-ssa-loop-ivopts.c: Likewise.
2250         * tree-ssa-loop-manip.c: Likewise.
2251         * tree-ssa-loop-niter.c: Likewise.
2252         * tree-ssa-loop-prefetch.c: Likewise.
2253         * tree-ssa-loop-unswitch.c: Likewise.
2254         * tree-ssa-loop.c: Likewise.
2255         * tree-ssa-math-opts.c: Likewise.
2256         * tree-ssa-operands.c: Likewise.
2257         * tree-ssa-operands.h: Likewise.
2258         * tree-ssa-phiopt.c: Likewise.
2259         * tree-ssa-phiprop.c: Likewise.
2260         * tree-ssa-pre.c: Likewise.
2261         * tree-ssa-propagate.c: Likewise.
2262         * tree-ssa-reassoc.c: Likewise.
2263         * tree-ssa-sccvn.c: Likewise.
2264         * tree-ssa-sink.c: Likewise.
2265         * tree-ssa-structalias.c: Likewise.
2266         * tree-ssa-ter.c: Likewise.
2267         * tree-ssa-threadedge.c: Likewise.
2268         * tree-ssa-threadupdate.c: Likewise.
2269         * tree-ssa-uncprop.c: Likewise.
2270         * tree-ssa.c: Likewise.
2271         * tree-ssanames.c: Likewise.
2272         * tree-switch-conversion.c: Likewise.
2273         * tree-tailcall.c: Likewise.
2274         * tree-vect-data-refs.c: Likewise.
2275         * tree-vect-generic.c: Likewise.
2276         * tree-vect-loop-manip.c: Likewise.
2277         * tree-vect-loop.c: Likewise.
2278         * tree-vect-patterns.c: Likewise.
2279         * tree-vect-slp.c: Likewise.
2280         * tree-vect-stmts.c: Likewise.
2281         * tree-vectorizer.c: Likewise.
2282         * tree-vectorizer.h: Likewise.
2283         * tree-vrp.c: Likewise.
2284         * tree.c: Likewise.
2285         * tree.def: Likewise.
2286         * tree.h: Likewise.
2287         * treestruct.def: Likewise.
2288         * unwind-compat.c: Likewise.
2289         * unwind-dw2-fde-glibc.c: Likewise.
2290         * unwind-dw2.c: Likewise.
2291         * value-prof.c: Likewise.
2292         * value-prof.h: Likewise.
2293         * var-tracking.c: Likewise.
2294         * varasm.c: Likewise.
2295         * varpool.c: Likewise.
2296         * vec.c: Likewise.
2297         * vec.h: Likewise.
2298         * vmsdbgout.c: Likewise.
2299         * web.c: Likewise.
2300         * xcoffout.c: Likewise.
2301
2302 2009-11-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2303
2304         * pa.c (output_call): Only use sr4 for long interspace calls if
2305         call binds local and generating non PIC code.
2306         (attr_length_call): Adjust length calculation for above.
2307
2308 2009-11-25  Uros Bizjak  <ubizjak@gmail.com>
2309
2310         * config/i386/i386.md (plusminus_carry_mnemonic): New code attribute.
2311         (add<mode>3_carry): Change operand order of plus RTX.
2312         (*add<mode>3_carry): Ditto.
2313         (*addsi3_carry_zext): Ditto.
2314         (*add<dwi>3_doubleword): Update for changed operand order.
2315         (*negti2_1 splitter): Ditto.
2316         (*negdi2_1 splitter): Ditto.
2317         (<plusminus_insn><mode>3_carry): Macroize expander from
2318         {add,sub}<mode>3_carry patterns using plusminus code iterator.
2319         (*<plusminus_insn><mode>3_carry): Macroize insn from
2320         *{add,sub}<mode>3_carry patetrns using plusminus code iterator.
2321         (neg<mode>2): Macroize expander from neg{qi,hi,si,di,ti}2
2322         patterns using SDWIM mode iterator.
2323         (*neg<dwi>2_doubleword): New insn_and_split pattern.  Macroize
2324         pattern from *neg{di,ti}2_1 patterns and corresponding splitters
2325         using DWIH mode iterator.
2326         (*neg<mode>2_1): Macroize insn from neg{qi,hi,si,di}2_1 patterns
2327         using SWI mode iterator.
2328         (*neg<mode>2_cmpz): Ditto from neg{qi,hi,si,di}2_cmpz patterns.
2329         (one_cmpl<mode>2): Macroize expander from one_cmpl{qi,hi,si,di}2
2330         patterns using SWIM mode iterator.
2331         (*one_cmpl<mode>2_1): Macroize insn from one_cmpl{hi,si,di}2_1
2332         patterns using SWI248 mode iterator.
2333         (*one_cmpl<mode>2_2): Macroize insn from one_cmpl{qi,hi,si,di}2_2
2334         patterns using SWI mode iterator.
2335         (*one_cmpl<mode>2_2 splitter): Macroize splitter from
2336         one_cmpl{qi,hi,si,di}2_2 splitter patterns using SWI mode iterator.
2337
2338 2009-11-24  Michael Matz  <matz@suse.de>
2339
2340         * expr.c (set_storage_via_libcall): Fix build_call_expr call.
2341
2342 2009-11-24  David Binderman  <dcb314@hotmail.com>
2343
2344         * expr.c (store_field): Remove set but not used local variable
2345         width_mask.
2346         (expand_expr_real_2): Remove treeop2.
2347         * gcse.c (update_ld_motion_stores): Remove new_rtx.
2348         * haifa-sched.c (max_issue): Remove points.
2349         (sched_create_recovery_edges): Remove e.
2350         * ira-costs.c (setup_allocno_cover_class_and_costs): Remove mode.
2351
2352 2009-11-24  Nick Clifton  <nickc@redhat.com>
2353
2354         * config/v850/v850.c (function_arg): Fix handling of zero-length
2355         function arguments.
2356
2357 2009-11-24  Michael Matz  <matz@suse.de>
2358
2359         * tree.h (union tree_ann_d): Don't declare.
2360         (tree_base): Remove ann field.
2361         (struct var_ann_d): Declare forward.
2362         (tree_result_decl, tree_parm_decl, tree_var_decl): Add ann field.
2363         (DECL_VAR_ANN_PTR): New macro.
2364         * tree-dfa.c (create_var_ann): Rewrite in terms of above macro,
2365         accept only VAR, PARM or RESULT decls.
2366         (create_tree_common_ann): Remove.
2367         (remove_referenced_var): Use DECL_VAR_ANN_PTR.
2368         * tree-eh.c (lookup_expr_eh_lp): Remove.
2369         * tree-flow-inline.h (var_ann, get_var_ann): Rewrite in terms of
2370         DECL_VAR_ANN_PTR.
2371         (ann_type, tree_common_ann, get_tree_common_ann): Remove.
2372         * tree-flow.h (enum tree_ann_type): Remove.
2373         (struct tree_ann_common_d): Remove.
2374         (struct var_ann_d): Remove common field.
2375         (union tree_ann_d): Remove.
2376         (tree_ann_t, tree_ann_common_t): Remove typedefs.
2377         (tree_common_ann, get_tree_common_ann, ann_type,
2378         create_tree_common_ann, lookup_expr_eh_lp): Don't declare.
2379         * tree-ssa.c (delete_tree_ssa): Use DECL_VAR_ANN_PTR.
2380         * tree.c (copy_node_stat): Use DECL_VAR_ANN_PTR.
2381         * builtins.c (expand_builtin_memcpy): Use
2382         currently_expanding_gimple_stmt instead of tree annotation.
2383         (expand_builtin_memset_args): Ditto.
2384         * cfgexpand.c (currently_expanding_gimple_stmt): Add global variable.
2385         (expand_call_stmt): Don't set tree annotation.
2386         (expand_gimple_basic_block): Set currently_expanding_gimple_stmt.
2387         * expr.c (expand_expr_real): Don't call lookup_expr_eh_lp.
2388         * gimple.h (currently_expanding_gimple_stmt): Declare.
2389
2390 2009-11-24  Paolo Carlini  <paolo.carlini@oracle.com>
2391
2392         * dwarf2out.c (add_location_or_const_value_attribute): Remove
2393         useless NOTE_VAR_LOCATION_STATUS call.
2394         * cfgrtl.c (commit_one_edge_insertion): Remove useless loop, tidy.
2395
2396 2009-11-24  Rafael Avila de Espindola  <espindola@google.com>
2397
2398         * lto-wrapper.c (lto_wrapper_exit): Don't try to delete files if
2399         being called recursively.
2400
2401 2009-11-24  Basile Starynkevitch  <basile@starynkevitch.net>
2402
2403         * Makefile.in (PLUGIN_HEADERS): Added files: cppdefault.h flags.h
2404         $(MD5_H) params.def params.h prefix.h tree-inline.h.
2405
2406 2009-11-24  Paul Brook  <paul@codesourcery.com>
2407
2408         * gcc/config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Fix comment
2409         typo.
2410
2411 2009-11-24  Julian Brown  <julian@codesourcery.com>
2412             Paul Brook  <paul@codesourcery.com>
2413
2414         * config/arm/arm.c (TARGET_DWARF_REGISTER_SPAN): Define.
2415         (arm_dwarf_register_span): New function.
2416         (arm_dbx_register_number): Add VFPv3 dwarf numbering.
2417
2418 2009-11-24  David Binderman  <dcb314@hotmail.com>
2419
2420         * cfgrtl.c (commit_one_edge_insertion): Remove set but not used
2421         local variable bb_note.
2422         * dominance.c (get_dominated_by): Likewise local var n.
2423         (output_file_names): Likewise local var idx.
2424         (add_location_or_const_value_attribute): Likewise local var status.
2425         * dwarf2out.c (gen_variable_die): Likewise local var field.
2426         * emit-rtl.c (no_line_numbers): Remove.
2427         (init_emit_once): Remove line_numbers parameter.
2428         * rtl.h (init_emit_once): Adjust prototype.
2429         * toplev.c (backend_init): Adjust init_emit_once call.
2430
2431 2009-11-24  Richard Guenther  <rguenther@suse.de>
2432
2433         PR tree-optimization/42142
2434         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
2435         Handle iv-dependent (non-)kills properly.
2436         (mark_aliased_reaching_defs_necessary): Pass the basic-block
2437         of the reference statement to mark_aliased_reaching_defs_necessary_1.
2438
2439 2009-11-24  Martin Jambor  <mjambor@suse.cz>
2440
2441         PR tree-optimization/42154
2442         * tree-sra.c (struct access): Added comments.
2443         (sra_modify_expr): Build references to the old aggregate with
2444         build_ref_for_offset instead of reusing access->expr.
2445         (load_assign_lhs_subreplacements): Likewise.
2446
2447 2009-11-24  Uros Bizjak  <ubizjak@gmail.com>
2448
2449         * config/i386/i386.md (add<mode>3_carry): Change insn pattern
2450         to expander.
2451         (sub<mode>3_carry): Ditto.
2452         (x86_mov<mode>cc_0_m1): Ditto.
2453         (*add<mode>3_carry): New insn pattern.  Use VOIDmode match_operator
2454         for ix86_carry_flag_operator operator predicate.
2455         (*sub<mode>3_carry): Ditto.
2456         (*x86_mov<mode>cc_0_m1): Ditto.
2457         (*addsi3_carry_zext): Use VOIDmode match_operator for
2458         ix86_carry_flag_operator operator predicate.
2459         (*subsi3_carry_zext): Ditto.
2460         (*x86_mov<mode>cc_0_m1_s): Ditto.
2461         (*x86_mov<mode>cc_0_m1_neg): Ditto.
2462         * config/i386/predocates.md (ix86_carry_flag_operator): Do not
2463         check operator sub-expressions for FLAGS_REG and const0_rtx.
2464         * config/i386/i386.c (*ix86_gen_sub3_carry): Update prototype.
2465         (ix86_expand_int_movcc): Update calls to gen_x86_mov{si,di}cc_0_m1.
2466         (ix86_expand_int_addcc): Update calls to
2467         gen_{add,sub}{qi,hi,si,di}3_carry.  Do not set mode of compare_op.
2468         (ix86_expand_strlensi_unroll_1): Update calls to ix86_gen_sub3_carry.
2469         Do not set mode of compare operation.
2470
2471 2009-11-23  Jan Hubicka  <jh@suse.cz>
2472
2473         PR middle-end/42151
2474         * ipa-inline.c (inline_transform): Avoid ICE when transform is called
2475         twice.
2476
2477 2009-11-23  Jan Hubicka  <jh@suse.cz>
2478
2479         * ipa-cp.c (ipcp_compute_node_scale): Work around completely
2480         wrong profile updates.
2481         * predict.c (counts_to_freqs): Be expected for ENTRY/EXIT block
2482         having largest frequency.
2483         * ira-live.c (ira_implicitly_set_insn_hard_regs): Silecne
2484         used uninitalized warning.
2485         * tree-optimize.c (execute_fixup_cfg): Rescale entry and exit block
2486         frequencies.
2487
2488 2009-11-23  Uros Bizjak  <ubizjak@gmail.com>
2489
2490         * config/alpha/alpha.md (*cmp_sadd_sidi): Use gen_lowpart instead
2491         of gen_rtx_REG to generate operand 5.
2492         (*cmp_ssub_sidi): Ditto.
2493
2494 2009-11-23  Richard Henderson  <rth@redhat.com>
2495
2496         * config/i386/i386.c (avx_vpermilp_parallel): Fix sign compare
2497         mismatch.
2498
2499 2009-11-23  Paul Brook  <paul@codesourcery.com>
2500
2501         * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Add special
2502         case for noreturn functions.
2503         (arm_compute_save_reg_mask): Remove special noreturn handling.
2504
2505 2009-11-23  Richard Guenther  <rguenther@suse.de>
2506
2507         * tree-dfa.c (get_ref_base_and_extent): Adjust maximum access
2508         size for DECL bases.
2509
2510 2009-11-22  Richard Henderson  <rth@redhat.com>
2511
2512         * i386.c (avx_vpermilp_parallel): New function.
2513         * i386-protos.h: Declare it.
2514         * predicates.md (avx_vpermilp_v8sf_operand, avx_vpermilp_v4df_operand,
2515         avx_vpermilp_v4sf_operand, avx_vpermilp_v2df_operand): New.
2516         * sse.md (AVXMODEFDP, AVXMODEFSP): New iterators.
2517         (ssescalarnum, ssedoublesizemode): Add AVX modes.
2518         (vpermilbits): Remove.
2519         (avx_vpermil<mode>): Change insns to expanders.
2520         (*avx_vpermil<mode>): New.  Use vec_select.
2521
2522 2009-11-22  Richard Earnshaw  <rearnsha@arm.com>
2523
2524         * opts.c (decode_options): Don't enable flag_schedule_insns
2525         when optimizing for size.
2526         * doc/invoke.texi: Document change.
2527
2528 2009-11-22  Uros Bizjak  <ubizjak@gmail.com>
2529
2530         PR target/42113
2531         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
2532         of scratch register to SImode.
2533         (*cmp_sadd_sidi): Ditto.
2534         (*cmp_ssub_si): Ditto.
2535         (*cmp_ssub_sidi): Ditto.
2536
2537 2009-11-21  Ian Lance Taylor  <iant@google.com>
2538
2539         * Makefile.in (HOST_LIBS): Move higher in file.
2540         (LINKER, LINKER_FLAGS): If ENABLE_BUILD_WITH_CXX, but $(HOST_LIBS)
2541         is not empty, set to $(CC) and $(CFLAGS).
2542
2543 2009-11-22  Martin Jambor  <mjambor@suse.cz>
2544
2545         * tree-cfg.c (verify_types_in_gimple_reference): Error out on
2546         V_C_E of an SSA_NAME or an invariant if lvalue is required.
2547         (verify_gimple_call): Verify LHS also with with
2548         verify_types_in_gimple_reference.
2549
2550 2009-11-21  Martin Jambor  <mjambor@suse.cz>
2551
2552         PR middle-end/42025
2553         * tree-sra.c (access_precludes_ipa_sra_p): New function.
2554         (splice_param_accesses): Check all accesses by calling
2555         access_precludes_ipa_sra_p.
2556         (sra_ipa_modify_expr): Rename argument erite to dont_convert and do
2557         not convert types if it is true.
2558         (sra_ipa_modify_assign): Convert types in case of mismatch.
2559
2560 2009-11-21  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
2561
2562         * config/sh/sh.md (cmpeqsi_t-1): Use logical_operand predicate
2563         for operand 1.
2564
2565 2009-11-21  Adam Nemet  <adambnemet@gmail.com>
2566
2567         * config/mips/mips-protos.h (mulsidi3_gen_fn): New typedef.
2568         (mips_mulsidi3_gen_fn): Declare new function.
2569         * config/mips/mips.c (mips_mulsidi3_gen_fn): New function.
2570         * config/mips/mips.md (<u>mulsidi3): Change condition to use
2571         mips_mulsidi3_gen_fn.  Use mips_mulsidi3_gen_fn to generate the insn.
2572         (<u>mulsidi3_64bit): Don't match for ISA_HAS_DMUL3.
2573         (mulsidi3_64bit_dmul): New define_insn.
2574
2575 2009-11-21  Ben Elliston  <bje@au.ibm.com>
2576
2577         * gengtype-lex.l: Enable noinput flex option.
2578         (YY_NO_INPUT): Remove define.
2579
2580 2009-11-21  Alexandre Oliva  <aoliva@redhat.com>
2581
2582         * tree-ssa.c (find_released_ssa_name): Handle NULL wi.
2583         (insert_debug_temp_for_var_def): Handle degenerate PHI nodes.
2584         (insert_debug_temps_for_defs): Handle PHI nodes.
2585         * tree-ssa-dom.c (degenerate_phi_result): Don't crash on released
2586         SSA names.
2587
2588 2009-11-21  Alexandre Oliva  <aoliva@redhat.com>
2589
2590         * tree-ssa-pre.c (remove_dead_inserted_code): Don't release_defs
2591         after remove_phi_node.
2592
2593 2009-11-21  Alexandre Oliva  <aoliva@redhat.com>
2594
2595         PR tree-optimization/42078
2596         * gimple.h (gimple_replace_lhs): New declaration.
2597         * gimple.c (gimple_replace_lhs): New function.
2598         * tree-ssa-math-opts.c (execute_cse_reciprocals): Call it before
2599         modifying the call.
2600
2601 2009-11-20  Sebastian Pop  <sebastian.pop@amd.com>
2602
2603         * config/i386/sse.md (*xop_pmacsdql_mem): Don't call reg_mentioned_p.
2604         (xop_mulv2div2di3_low): Same.
2605         (*xop_pmacsdqh_mem): Same.
2606
2607 2009-11-20  Richard Henderson  <rth@redhat.com>
2608
2609         * config/i386/i386-builtin-types.awk: New file.
2610         * config/i386/i386-builtin-types.def: New file.
2611         * config/i386/t-i386: Use them to build i386-builtin-types.inc.
2612         * config/i386/i386.c: Include it.
2613         (ix86_builtin_type_tab, ix86_get_builtin_type): New.
2614         (ix86_builtin_func_type_tab, ix86_get_builtin_func_type): New.
2615         (struct builtin_isa): Remove GTY marker.  Replace tree type with
2616         ix86_builtin_func_type; add set_and_not_built_p.
2617         (def_builtin): Change type parameter to tcode; use
2618         ix86_get_builtin_func_type; update all callers.  Accept zero mask
2619         to mean the builtin is unconditionally available.
2620         (ix86_add_new_builtins): Use set_and_not_built_p instead of type
2621         being set to NULL.
2622         (enum ix86_special_builtin_type, enum ix86_builtin_type): Remove.
2623         Update some users to rationalized enumeration codes from new include.
2624         (enum multi_arg_type): Remove.  Replace all enumeration values
2625         with defines to new ix86_builtin_func_type.
2626         (ix86_init_mmx_sse_builtins): Don't build any types here.  Defer
2627         all type resolution to def_builtin.
2628         (ix86_init_builtin_types): Split out from ...
2629         (ix86_init_builtins): ... here.  Use ix86_get_builtin_func_type.
2630
2631 2009-11-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
2632
2633         PR target/41787
2634         * config/rs6000/rs6000.c (struct machine_function): Revert
2635         2009-10-23 change to set VRSAVE to non-0 if we use VSX.
2636         (rs6000_expand_to_rtl_hook): Ditto.
2637         (rs6000_check_vector_mode): Ditto.
2638         (compute_vrsave_mask): Ditto.
2639
2640 2009-11-20  Paul Brook  <paul@codesourcery.com>
2641
2642         * doc/invoke.texi: Document ARM -mcpu=cortex-a5.
2643         * config/arm/arm-cores.def: Add cortex-a5.
2644         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a5.
2645         * config/arm/arm-tune.md: Regenerate.
2646
2647 2009-11-20 Olga Golovanevsky <olga@il.ibm.com>
2648
2649         PR middle-end/39960
2650         * ipa-struct-reorg.c (find_pos_in_stmt): New parameter.
2651         (ref_pos): New field in structure.
2652         (insert_new_var_in_stmt): New function.
2653
2654
2655 2009-11-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2656
2657         * config.gcc (alpha*-dec-osf[45]*): Set use_gcc_stdint.
2658         * config/alpha/osf.h (SIG_ATOMIC_TYPE): Define.
2659         (INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE): Define.
2660         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
2661         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
2662         INT_LEAST64_TYPE): Define.
2663         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
2664         UINT_LEAST64_TYPE): Define.
2665         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
2666         INT_FAST64_TYPE): Define.
2667         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
2668         UINT_FAST64_TYPE): Define.
2669         (INTPTR_TYPE, UINTPTR_TYPE): Define.
2670
2671 2009-11-20  Julian Brown  <julian@codesourcery.com>
2672
2673         * config/arm/arm.h (ASM_OUTPUT_REG_PUSH): Handle STATIC_CHAIN_REGNUM
2674         specially for Thumb-1.
2675         (ASM_OUTPUT_REG_POP): Likewise.
2676
2677 2009-11-19  Jason Merrill  <jason@redhat.com>
2678
2679         * dwarf2out.c (get_context_die): Take TYPE_MAIN_VARIANT.
2680
2681 2009-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
2682             Rafael Avila de Espindola  <espindola@google.com>
2683
2684         * doc/plugins.texi (Plugin initialization): Added advices for
2685         retrieving the version of GCC at plugin compilation and loading times.
2686
2687 2009-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
2688
2689         * plugin.c (FMT_FOR_PLUGIN_EVENT): added definition.
2690         (dump_active_plugins): output to file everything. Use
2691         internationalized dump & FMT_FOR_PLUGIN_EVENT.
2692
2693 2009-11-19  Richard Guenther  <rguenther@suse.de>
2694
2695         * gimple.c (canonicalize_cond_expr_cond): Strip conversions
2696         around truth-valued expressions.
2697         * tree.c (free_lang_data): Untangle check for LTO frontend.
2698
2699 2009-11-19  Jakub Jelinek  <jakub@redhat.com>
2700
2701         * tree.c (need_assembler_name_p): Use cgraph_get_node instead
2702         of cgraph_node_for_decl.
2703         * cgraph.h (cgraph_node_for_decl): Remove prototype.
2704         * cgraph.c (cgraph_node_for_decl): Remove.
2705         (cgraph_get_node): Just return NULL if !cgraph_hash.
2706
2707 2009-11-19  Paul Brook  <paul@codesourcery.com>
2708
2709         * config.gcc: Add new ARM --with-fpu options.
2710         * doc/invoke.texi: Docuent ARM -mfpu=fpv4-sp-d16.
2711         * config/arm/arm.c (all_fpus): Add fpv4-sp-d16.
2712
2713 2009-11-18  Richard Guenther  <rguenther@suse.de>
2714
2715         * gimple.h (union gimple_statement_d): Add gsmembase member.
2716         (gimple_vuse_op): Use gsmembase for access.
2717         (gimple_vdef_op): Likewise.
2718         (gimple_vuse): Likewise.
2719         (gimple_vdef): Likewise.
2720         (gimple_vuse_ptr): Likewise.
2721         (gimple_vdef_ptr): Likewise.
2722         (gimple_set_vuse): Likewise.
2723         (gimple_set_vdef): Likewise.
2724         * gsstruct.def (GSS_WITH_MEM_OPS_BASE): Add.
2725
2726 2009-11-18  Daniel Jacobowitz  <dan@codesourcery.com>
2727
2728         * doc/arm-neon-intrinsics.texi: Regenerated.
2729
2730 2009-11-18  Daniel Jacobowitz  <dan@codesourcery.com>
2731
2732         * config/arm/neon-docgen.ml (analyze_shape_elt): Handle alternatives.
2733
2734 2009-11-18  Paul Brook  <paul@codesourcery.com>
2735             Daniel Jacobowitz  <dan@codesourcery.com>
2736
2737         * config/arm/arm.c (FL_ARCH7EM, FL_FOR_ARCH7EM): Define.
2738         (arm_arch7em): New variable.
2739         (all_architectures): Add armv7e-m.
2740         (arm_override_options): Set arm_arch7em.
2741         * config/arm/arm.h (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD):
2742         Include arm_arch7em.
2743         (arm_arch7em): Declare.
2744
2745 2009-11-18  Richard Guenther  <rguenther@suse.de>
2746
2747         * lto-streamer-in.c (input_gimple_stmt): Assert that we find
2748         a valid field decl if checking is enabled.
2749
2750 2009-11-18  Martin Jambor  <mjambor@suse.cz>
2751
2752         * ipa-prop.h (struct ipa_param_call_note): New field lto_stmt_uid.
2753         (lto_ipa_fixup_call_notes): Declare.
2754         * ipa-prop.c (ipa_note_param_call): Store gimple uid.
2755         (update_call_notes_after_inlining): Copy call stmt uid to the new
2756         edge.
2757         (ipa_write_param_call_note): New function.
2758         (ipa_read_param_call_note): New function
2759         (ipa_write_node_info): Write also param call notes.  Removed a bogus
2760         comment, reformatted to fit 80 columns.
2761         (ipa_read_node_info): Read also param call notes. Removed a bogus
2762         comment.  Remove ipa_edge_args_vector growth.
2763         (lto_ipa_fixup_call_notes): New function.
2764         * ipa-cp.c (pass_ipa_cp): Add stmt_fixup hook.
2765         * ipa-inline.c (cgraph_mark_inline_edge): Perform indirect
2766         inlining regardless of flag_wpa.
2767         (cgraph_decide_inlining_of_small_functions): Likewise.
2768         (cgraph_decide_inlining): Likewise.
2769         (inline_read_summary): Likewise.
2770
2771 2009-11-18  Jan Hubicka  <jh@suse.cz>
2772
2773         * predict.c (compute_function_frequency): Export.
2774         * predict.h (compute_function_frequency): Declare.
2775         * tree-optimize.c (execute_fixup_cfg): Rescale frequencies.
2776
2777 2009-11-18  Martin Jambor  <mjambor@suse.cz>
2778
2779         * passes.c (ipa_write_summaries): Call renumber_gimple_stmt_uids
2780         on all nodes we write summaries for.
2781
2782 2009-11-18  Shujing Zhao  <pearly.zhao@oracle.com>
2783
2784         PR middle-end/22201
2785         * params.def (PARAM_INLINE_UNIT_GROWTH, PARAM_IPCP_UNIT_GROWTH)
2786         (PARAM_EARLY_INLINING_INSNS, PARAM_IRA_MAX_LOOPS_NUM)
2787         (PARAM_IRA_MAX_CONFLICT_TABLE_SIZE)
2788         (PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP)
2789         (PARAM_MIN_INSN_TO_PREFETCH_RATIO)
2790         (PARAM_PREFETCH_MIN_INSN_TO_MEM_RATIO)
2791         (PARAM_IPA_SRA_PTR_GROWTH_FACTOR): Uppercase the first letter of the
2792         description string.
2793
2794 2009-11-18  Jakub Jelinek  <jakub@redhat.com>
2795
2796         * dwarf2out.c (loc_list_from_tree): Don't call rtl_for_decl_location
2797         unnecessarily.
2798         (rtl_for_decl_location): Try harder to get a rtl for TREE_STATIC vars.
2799
2800         PR c++/3187
2801         * cgraph.h (struct cgraph_node): Add same_body and same_body_alias
2802         fields.
2803         (cgraph_same_body_alias, cgraph_remove_same_body_alias): New
2804         prototypes.
2805         * cgraphunit.c (cgraph_expand_function, cgraph_emit_thunks,
2806         cgraph_materialize_all_clones): Handle same_body aliases.
2807         * cgraph.c (cgraph_allocate_node): New function.
2808         (cgraph_create_node): Use it.
2809         (cgraph_node_for_decl, cgraph_node, cgraph_get_node,
2810         cgraph_node_for_asm, cgraph_remove_node): Handle same_body aliases.
2811         (cgraph_same_body_alias, cgraph_remove_same_body_alias): New
2812         functions.
2813         * lto-cgraph.c (lto_output_node): Stream out same_body aliases.
2814         (input_node): Stream in same_body aliases.
2815         * lto-symtab.c (lto_cgraph_replace_node): Clear node pointers
2816         for same_body aliases.
2817         (lto_symtab_merge_cgraph_nodes_1): Handle same_body aliases.
2818
2819 2009-11-18  Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2820
2821         PR other/39888
2822         * config/darwin.h: Use the extension stub libraries to access
2823         current libgcc_s features.
2824
2825 2009-11-18  Alexandre Oliva  <aoliva@redhat.com>
2826
2827         PR debug/41926
2828         * tree-vect-loop.c (vect_loop_kill_debug_uses): New.
2829         (vect_transform_loop): Call it.
2830
2831 2009-11-18  Alexandre Oliva  <aoliva@redhat.com>
2832
2833         * tree-ssa.c (insert_debug_temp_for_var_def): Fix handling of
2834         released SSA names.
2835
2836 2009-11-18  Alexandre Oliva  <aoliva@redhat.com>
2837
2838         PR debug/41888
2839         PR debug/41886
2840         * graphite-scop-detection.c (stmt_simple_for_scop_p): Debug stmts
2841         are ok.
2842         * graphite-sese-to-poly.c (graphite_stmt_p): Likewise.
2843         (try_generate_gimple_bb): Skip debug stmts when finding data refs.
2844         * sese.c (sese_build_liveouts_bb): Skip debug stmts.
2845         (sese_bad_liveouts_use): New.
2846         (sese_reset_debug_liveouts_bb): New.
2847         (sese_build_liveouts): Use it.
2848         (rename_variables_in_stmt): Reset debug stmts rather than creating
2849         new vars for them.
2850         (expand_scalar_variable_stmt): Likewise.
2851
2852 2009-11-18  Alexandre Oliva  <aoliva@redhat.com>
2853
2854         * df-scan.c (df_ref_create): Don't mark BB as dirty on debug insns.
2855         (df_ref_remove): Likewise.
2856
2857 2009-11-17  Jan Hubicka  <jh@suse.cz>
2858
2859         * ipa-struct-reorg.c (update_cgraph_with_malloc_call): Fix profile
2860         info.
2861
2862 2009-11-17  Eric Botcazou  <ebotcazou@adacore.com>
2863
2864         * toplev.c (process_options): Remove dead code.
2865         * doc/invoke.texi (-frename-registers): Mention -fpeel-loops.
2866
2867 2009-11-17  Rafael Avila de Espindola  <espindola@google.com>
2868
2869         * lto-symtab.c (lto_symtab_resolve_symbols): Always initialize the
2870         nodes.
2871
2872 2009-11-17  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2873
2874         PR tree-optimization/41857
2875         * tree-ssa-address.c (move_hint_to_base): Use void pointer to
2876         TYPE's address space instead of pointer to TYPE.
2877
2878 2009-11-17  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2879
2880         * reload.c (find_reloads_address): Fix typo.
2881
2882 2009-11-17  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2883
2884         * config/spu/spu.c (get_pic_reg): Use LAST_ARG_REGNUM as PIC
2885         registers in leaf functions if possible.
2886
2887 2009-11-17  Maxim Kuvyrkov  <maxim@codesourcery.com>
2888
2889         * config/m68k/m68k-devices.def: Add MCF5441x family.
2890
2891 2009-11-17  Jan Hubicka  <jh@suse.cz>
2892
2893         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not access
2894         removed node.
2895         * cgraphunit.c (verify_cgraph_node): Verify frequencies for match.
2896
2897 2009-11-17  Uros Bizjak  <ubizjak@gmail.com>
2898
2899         * config/i386/predicates.md (x86_64_szext_general_operand): Do not
2900         nest ior expressions.
2901         (x86_64_szext_nonmemory_operand): Ditto.
2902         (call_insn_operand): Ditto.
2903
2904 2009-11-16  Alexandre Oliva  <aoliva@redhat.com>
2905
2906         * stmt.c (expand_asm_stmt): Get locus from stmt.
2907
2908 2009-11-16  Alexandre Oliva  <aoliva@redhat.com>
2909
2910         * tree-cfg.c (gimple_redirect_edge_and_branch) <case GIMPLE_ASM>:
2911         Create the decl label for the new dest block on demand.  Require
2912         a fallthrough edge if no asm labels were redirected.
2913
2914 2009-11-16  Uros Bizjak  <ubizjak@gmail.com>
2915
2916         * config/i386/i386.md (cbranchsi4): Use nonimmediate_operand for
2917         operand 1 predicate.
2918         (cstoresi4): Ditto for operand 2.
2919         (cbranch<mode>4): Macroize expander from cbranch{qi,hi,si,di,ti}4
2920         patterns using SDWIM mode iterator.
2921         (cstore<mode>4): Macroize expander from cstore{qi,hi,si,di}4 patterns
2922         using SWIM mode iterator.
2923         (cmpdi_1): Rename from cmpdi_1_rex64.
2924         (cmp<mode>_1): Macroize expander from cmp{si,di}_1 patterns using
2925         SWI48 mode iterator.
2926         (*cmp<mode>_1): Macroize insn from *cmp{qi,hi,si,di}_1_insn patterns
2927         using SWI mode iterator.
2928         (*cmp<mode>_ccno_1): Ditto from *cmp{qi,hi,si,di}_ccno_1.
2929         (*cmp<mode>_minus_1): Ditto from *cmp{qi,hi,si,di}_minus_1.
2930         (*cmpqi_ext_3_insn): Make private.
2931         (*cmpqi_ext_3_insn_rex64): Make private.
2932         (cmpstrnsi): Update for renamed cmpdi_1_rex64.
2933         * config/i386/predicates.md (cmpsi_operand): Remove.
2934
2935 2009-11-16  Paul Brook  <paul@codesourcery.com>
2936
2937         * doc/invoke.texi: Document ARM VFPv4 based FPUs.
2938         * config/arm/arm.c (all_fpus): Add VFPv4 entries.
2939
2940 2009-11-14  Jan Hubicka  <jh@suse.cz>
2941
2942         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use proper
2943         ENTRY_BLOCK_PTR.
2944         * cgraph.c (cgraph_clone_edge): Avoid freq_scale 0 to completely
2945         zero out all callees.
2946         * cgraphunit.c (verify_cgraph_node): Verify cgraph nodes for
2947         frequency and count match.
2948         * ipa-inline.c (update_noncloned_frequencies): New function.
2949         (cgraph_clone_inlined_nodes): Use it.
2950         * tree-inline.c (copy_bb): Fix frequency scaling; output
2951         diagnostic on frequency mismatches to dump file.
2952         (initialize_cfun): Do not scale frequency; fix count scaling;
2953         initialize entry and exit block frequencies; copy profile info.
2954         (copy_cfg_body): Use frequency_scale as argument; fix count scaling.
2955         (copy_body): Use frequency_scale as argument.
2956         (expand_call_inline): Compute frequency scale and output diagnostic
2957         to dump file.
2958         (delete_unreachable_blocks_update_callgrah): Remove checking that
2959         has to be done after edge redirection.
2960         (tree_function_versioning): Update initialize_cfun and copy_body call.
2961
2962 2009-11-14  Jan Hubicka  <jh@suse.cz>
2963
2964         * cgraph.c (cgraph_release_function_body): Update use of
2965         ipa_transforms_to_apply.
2966         (cgraph_remove_node): Remove ipa_transforms_to_apply.
2967         * cgraph.h (struct cgraph_node): Add ipa_transforms_to_apply.
2968         * cgraphunit.c (save_inline_function_body): Clear ipa_transforms for
2969         copied body.
2970         (cgraph_materialize_clone): Remove original if dead.
2971         * lto-streamer-in.c (lto_read_body): Remove FIXME and
2972         ipa_transforms_to_apply hack.
2973         * function.h (struct function): Add ipa_transforms_to_apply.
2974         * ipa.c (cgraph_remove_unreachable_nodes): Handle dead clone originals.
2975         * tree-inline.c (copy_bb): Update sanity check.
2976         (initialize_cfun): Do not copy ipa_transforms_to_apply.
2977         (expand_call_inline): remove dead clone originals.
2978         (tree_function_versioning): Merge transformation queues.
2979         * passes.c (add_ipa_transform_pass): Remove.
2980         (execute_one_ipa_transform_pass): Update ipa_transforms_to_apply
2981         tracking.
2982         (execute_all_ipa_transforms): Update.
2983         (execute_one_pass): Update.
2984
2985 2009-11-14  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
2986
2987         PR target/21078, 21080
2988         * config/avr/avr.c (avr_return_addr_rtx): New function for
2989         builtin_return_address.
2990         (expand_prologue): Calculate stack usage.
2991         (avr_asm_function_end_prologue): Output stack size and offset label.
2992         * config/avr/avr.h (RETURN_ADDR_RTX): Replace.
2993         (machine_function): Add stack_usage.
2994         * config/avr/avr-protos.h (avr_return_addr_rtx): New function.
2995
2996 2009-11-14  Anatoly Sokolov  <aesok@post.ru>
2997
2998         * config/iq2000/iq2000.c (iq2000_function_value): Make static, add
2999         new 'outgoing' argument.
3000         (iq2000_libcall_value, iq2000_function_value_regno_p): New functions.
3001         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
3002         * config/iq2000/iq2000.h (FUNCTION_VALUE_REGNO_P): Redefine, use
3003         iq2000_function_value_regno_p.
3004         (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
3005         * config/iq2000/iq2000-protos.h (iq2000_function_value_regno_p):
3006         Declare.
3007
3008 2009-11-14  Richard Earnshaw  <rearnsha@arm.com>
3009
3010         PR target/42031
3011         * arm.md (adddi_sesidi_di): Place tied contraint first.
3012         (adddi_zesidi_di, subdi_di_zesidi, subdi_di_sesidi): Likewise
3013         (subdi_zesidi_di, subdi_sesidi_di): Likewise.
3014         (mulsi3_compare0, mulsi_compare0_scratch): Likewise.
3015         (mulsi3addsi, mulsi3addsi_compare0): Likewise.
3016         (mulsi3addsi_compare0_scratch, smulsi3_highpart_nov6): Likewise.
3017         (umulsi3_highpart_nov6, anddi_zesidi_di, anddi_sesdi_di): Likewise.
3018         (anddi_notdi_di, iordi_sesidi_di, xordi_sesidi_di): Likewise.
3019         (andsi_iorsi3_notsi, arm_ashldi3_1bit, arm_ashrdi3_1_bit): Likewise.
3020         (arm_lshrdi3_1bit, one_cmpldi2): Likewise.
3021
3022 2009-11-14  Uros Bizjak  <ubizjak@gmail.com>
3023
3024         * config/i386/predicates.md (call_register_no_elim_operand):
3025         New predicate.  Reject stack register as valid call operand
3026         for 32bit targets.
3027         (call_insn_operand): Use call_register_no_elim_operand.
3028
3029 2009-11-13  Richard Henderson  <rth@redhat.com>
3030
3031         * function.c (stack_protect_prologue): Don't bypass expand_expr
3032         for stack_protect_guard and guard_decl.
3033         (stack_protect_epilogue): Likewise.
3034
3035 2009-11-13  Jan Hubicka  <jh@suse.cz>
3036
3037         * ipa.c (function_and_variable_visibility): Clear COMDAT on functions
3038         when to PUBLIC is set.
3039
3040 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
3041
3042         PR middle-end/42029
3043         * gimplify.c (gimplify_omp_atomic): Set DECL_GIMPLE_REG_P on
3044         tmp_load if needed.
3045
3046 2009-11-13  Uros Bizjak  <ubizjak@gmail.com>
3047
3048         PR target/41900
3049         * config/i386/i386.md (*call_pop_1, *call_1, *call_value_pop_1,
3050         *call_value_1): Use "lsm" as operand 1 constraint.
3051         * config/i386/predicates.md (call_insn_operand): Depend on
3052         index_register_operand to avoid %esp register.
3053
3054 2009-11-13  Uros Bizjak  <ubizjak@gmail.com>
3055
3056         Revert:
3057         2009-11-03  Uros Bizjak  <ubizjak@gmail.com>
3058
3059         PR target/41900
3060         * config/i386/i386.h (ix86_arch_indices) <X86_ARCH_CALL_ESP>: New.
3061         (TARGET_CALL_ESP): New define.
3062         * config/i386/i386.c (initial_ix86_tune_features): Initialize
3063         X86_ARCH_CALL_ESP.
3064         * config/i386/i386.md (*call_pop_1_esp, *call_1_esp,
3065         *call_value_pop_1_esp, *call_value_1_esp): Rename from *call_pop_1,
3066         *call_1, *call_value_pop_1 and *call_value_1.  Depend on
3067         TARGET_CALL_ESP.
3068         (*call_pop_1, *call_1, *call_value_pop_1, *call_value_1):
3069         New patterns, use "lsm" as operand 1 constraint.
3070         * config/i386/predicates.md (call_insn_operand): Depend on
3071         index_register_operand for !TARGET_CALL_ESP to avoid %esp register.
3072
3073 2009-11-13  Jason Merrill  <jason@redhat.com>
3074
3075         PR debug/26965
3076         * dwarf2out.c (gen_variable_die): Don't worry about DECL_COMDAT.
3077         Don't emit a second declaration at any scope.
3078
3079 2009-11-13  Andrey Belevantsev  <abel@ispras.ru>
3080
3081         PR rtl-optimization/41697
3082         * sel-sched-ir.c (fallthru_bb_of_jump): Bail out when a block with
3083         a conditional jump has a single successor.
3084
3085 2009-11-13  Andrey Belevantsev  <abel@ispras.ru>
3086
3087         * sched-deps.c (init_deps): New parameter lazy_reg_last.  Don't
3088         allocate reg_last when in case lazy_reg_last is true.
3089         (init_deps_reg_last): New.
3090         (free_deps): When max_reg is 0, this context is already freed.
3091         * sched-int.h (init_deps_reg_last): Export.
3092         (init_deps): Update prototype.
3093         * sched-ebb.c (schedule_ebb): Update the call to init_deps.
3094         * sched-rgn.c (sched_rgn_compute_dependencies): Likewise.
3095         * ddg.c (build_intra_loop_deps): Likewise.
3096         * sel-sched-ir.c (copy_deps_context, create_deps_context,
3097         reset_deps_context, deps_init_id): Likewise.
3098         (init_first_time_insn_data): Lazy allocate INSN_DEPS_CONTEXT.
3099         (free_data_for_scheduled_insn): New, break down from ...
3100         (free_first_time_insn_data): ... here.
3101         (has_dependence_p): Allocate reg_last now, when it is needed.
3102         (extend_insn_data): When maximal LUID is big enough, allocate
3103         per-insn data in smaller chunks.
3104         * sel-sched-ir.h (free_data_for_scheduled_insn): Export.
3105         * sel-sched.c (update_seqnos_and_stage): Free INSN_DEPS_CONTEXT
3106         in scheduled insn.
3107
3108 2009-11-13  Uros Bizjak  <ubizjak@gmail.com>
3109
3110         * config/i386/i386.md (call_value): Fix comment.
3111         (sibcall_value): Ditto.
3112
3113 2009-11-13  Eric Botcazou  <ebotcazou@adacore.com>
3114
3115         * config/i386/linux-unwind.h (x86_frob_update_context): New function.
3116         (MD_FROB_UPDATE_CONTEXT): Define.
3117
3118 2009-11-12  Eric Botcazou  <ebotcazou@adacore.com>
3119             Laurent GUERBY  <laurent@guerby.net>
3120
3121         * config/sparc/linux-unwind.h (sparc64_fallback_frame_state): Tidy.
3122         Do not schedule an %sp restore.  Compensate for RETURN_ADDR_OFFSET.
3123         (sparc_fallback_frame_state): Tidy.  Compensate for RETURN_ADDR_OFFSET.
3124
3125 2009-11-12  Jan Hubicka  <jh@suse.cz>
3126
3127         * ipa.c (function_and_variable_visibility): Fix my accidentail commit
3128         and clear DECL_COMMON on localized declarations.
3129
3130 2009-11-12  Bernd Schmidt  <bernd.schmidt@analog.com>
3131
3132         PR rtl-opt/38582
3133         * regrename.c (struct du_head): New structure; some elements moved
3134         from...
3135         (struct du_chain): ... this one.
3136         (open_chains, closed_chains): Now of type struct du_head *.
3137         (do_replace): Accept du_head argument, not du_chain.  All callers
3138         changed.  Modified code to match new data structures.
3139         (build_def_use): Return a list of du_head structures.  Modified code
3140         to match new data structures.
3141         (dump_def_use_chain): Accept du_head argument, not du_chain.  All
3142         callers changed.  Modified code to match new data structures.
3143         (merge_overlapping_regs): Accept du_head argument, not du_chain.  All
3144         callers changed.  Modified code to match new data structures.
3145         (scan_rtx_reg): Change type of this_regno and this_nregs to unsigned.
3146         Allocate a du_head structure as well as a du_chain when creating a
3147         new chain.  Modified other code to match new data structures.
3148
3149 2009-11-12  Jan Hubicka  <jh@suse.cz>
3150
3151         * cgraph.h (varpool_node_name): Declare.
3152         * cgraphunit.c (process_function_and_variable_attributes): Set
3153         force_output flag on used variables.
3154         * ipa.c (function_and_variable_visibility): Dump externally visible
3155         and needed variables.
3156         * varpool.c (varpool_node_name): Export.
3157         (decide_is_variable_needed): Check COMDAT for externally visible vars;
3158         ignore needed flag.
3159
3160 2009-11-12  Uros Bizjak  <ubizjak@gmail.com>
3161
3162         PR middle-end/41930
3163         * simplify-rtx.c (simplify_replace_fn_rtx) <case 'e'>: Skip
3164         processing if XEXP (x, i) is NULL.
3165
3166 2009-11-12  Jan Hubicka  <jh@suse.cz>
3167
3168         * ipa.c (function_and_variable_visibility): Verify that WEAK || COMMON
3169         imply PUBLIC || EXTERNAL.
3170
3171 2009-11-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
3172
3173         PR middle-end/41440
3174         * cfgexpand.c (expand_gimple_basic_block): Append NOP to a fallthru,
3175         single successor block, ending with jump created by RTL expander.
3176
3177 2009-11-11  Jan Hubicka  <jh@suse.cz>
3178
3179         PR middle-end/41729
3180         * ipa.c (function_and_variable_visibility): Do not privatize COMDAT
3181         and WEAK variables at -fwhole-program.
3182
3183         PR middle-end/41735
3184         * ipa.c (whole_program_function_and_variable_visility): COMDAT
3185         functions/variables are not needed even if they are externally visible.
3186
3187 2009-11-11  Jan Hubicka  <jh@suse.cz>
3188
3189         (patch by Richard Guenther)
3190         * lto-streamer-out.c (output_function): Output head of argument list
3191         earlier.
3192         * lto-streamer-in.c (input_function): Re-map arguments into merged
3193         declaration.
3194
3195 2009-11-11  Jan Hubicka  <jh@suse.cz>
3196
3197         * lto-cgraph.c: Include gcov-io.h
3198         (output_profile_summary): New function.
3199         (output_cgraph): Use it.
3200         (input_profile_summary): New function.
3201         (input_cgraph): Use it.
3202         * coverage.c (build_ctr_info_value): Use varpool; initalize
3203         DECL_ASSEMBLER_NAME.
3204         (create_coverage): Likewise.
3205         * tree-profile.c (tree_init_ic_make_global_vars): Likewise.
3206         (tree_init_edge_profiler): Likewise.
3207         * Makefile.in (lto-cgraph.o): Add dependency on gcov-io.h.
3208
3209 2009-11-11  Kai Tietz  <kai.tietz@onevision.com>
3210
3211         * config/i386/cygming.h (HANDLE_PRAGMA_PUSH_POP_MACRO): Removed.
3212         * c-pragma.c (def_pragma_macro_value): Likewise.
3213         (def_pragma_macro): Likewise.
3214         (pushed_macro_table): Likewise.
3215         (HANDLE_PRAGMA_PUSH_POP_MACRO): Remove guarded code.
3216         * doc/tm.texi (HANDLE_PRAGMA_PUSH_POP_MACRO): Removed.
3217
3218 2009-11-11  Basile Starynkevitch  <basile@starynkevitch.net>
3219
3220         * doc/plugins.texi (Registering custom attributes): section
3221         renamed as (Registering custom attributes or pragmas).
3222         Mentions custom attributes & pragmas, and c_register_pragma, with
3223         a small example.
3224         * doc/cpp.texi (Pragmas): Mentions that plugins can provide their
3225         pragmas.
3226         * doc/extend.texi (Function Attributes): Mentions that plugin can
3227         provide their attributes.
3228
3229 2009-11-11  Jon Beniston  <jon@beniston.com>
3230
3231         * config.gcc: Add lm32 elf and uclinux targets.
3232         * config/lm32: New directory.
3233         * config/lm32/lm32.c: New file.
3234         * config/lm32/lm32.h: New file.
3235         * config/lm32/lm32.md: New file.
3236         * config/lm32/lm32.opt: New file.
3237         * config/lm32/lm32-protos.h: New file.
3238         * config/lm32/constraints.md: New file.
3239         * config/lm32/predicates.md: New file.
3240         * config/lm32/sfp-machine.h: New file.
3241         * config/lm32/t-fprules-softfp: New file.
3242         * config/lm32/uclinux-elf.h: New file.
3243         * doc/invoke.texi: Document lm32 options.
3244         * doc/contrib.texi: Document lm32 porter.
3245         * doc/install.texi: Document lm32 targets.
3246
3247 2009-11-11  Martin Jambor  <mjambor@suse.cz>
3248
3249         PR lto/41932
3250         * ipa-prop.c (ipa_update_after_lto_read): Call
3251         ipa_check_create_node_params and ipa_check_create_edge_args.  Also
3252         call ipa_initialize_node_params instead of ipa_populate_param_decls.
3253
3254 2009-11-11  Daniel Jacobowitz  <dan@codesourcery.com>
3255
3256         * config/arm/arm.c (neon_vdup_constant, neon_make_constant): New.
3257         (neon_expand_vector_init): Use them.  Also handle non-constant
3258         vectors with identical elements and vectors with only one
3259         non-constant element.
3260         (arm_print_operand): Handle 'y' modifier.
3261         * config/arm/arm-protos.h (neon_make_constant): Declare.
3262         * config/arm/neon.md (neon_vdup_n<mode>): Split into two
3263         patterns.  Use VX instead of VDQW for the first one.  Allow
3264         a VFP alternative and V32 modes for the second one.
3265         * config/arm/neon.ml (shape_elt): Add Alternatives.
3266         (ops): Use Alternatives for vdup lane instructions.
3267         * config/arm/neon-testgen.ml (analyze_shape): Handle Alternatives.
3268         * config/arm/vec-common.md (mov<mode>): Use neon_make_constant.
3269
3270 2009-11-11  Daniel Jacobowitz  <dan@codesourcery.com>
3271
3272         * config/arm/neon.md (*neon_mov<mode>): Reject two non-register
3273         operands.
3274         (movti, mov<mode>): Call force_reg on one operand if required.
3275         * config/arm/vec-common.md (mov<mode>): Likewise.
3276
3277 2009-11-11  Daniel Jacobowitz  <dan@codesourcery.com>
3278
3279         * config/arm/arm.c (arm_override_options): Enable scheduling for
3280         Thumb-2.
3281
3282 2009-11-10  Eric Botcazou  <ebotcazou@adacore.com>
3283
3284         PR target/10127
3285         PR ada/20548
3286         * expr.h (anti_adjust_stack_and_probe): Declare.
3287         * explow.c (anti_adjust_stack_and_probe): Make global, add ADJUST_BACK
3288         parameter and rewrite head comment.
3289         (allocate_dynamic_stack_space): Adjust call to above function.
3290         * function.c (expand_function_end): Handle STACK_CHECK_MOVING_SP.
3291
3292         * tree.h (dwarf2out_args_size): Delete.
3293         * dwarf2out.c (dwarf2out_args_size): Make static and move around.
3294         (dwarf2out_args_size_adjust): Delete prototype and move around.
3295         (dwarf2out_frame_debug_expr): Do not record arg size adjustments for
3296         ACCUMULATE_OUTGOING_ARGS targets.
3297
3298 2009-11-10  Eric Botcazou  <ebotcazou@adacore.com>
3299
3300         * config/sparc/sparc.c (print_operand) <')'>: Test for a non-null
3301         DECL_SIZE of DECL_RESULT before evaluating it.
3302
3303 2009-11-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3304
3305         PR tree-optimization/41987
3306         * fold-const.c (const_binop): Avoid using fold_buildN().
3307
3308 2009-11-10  Martin Jambor  <mjambor@suse.cz>
3309
3310         * tree-pass.h (struct ipa_opt_pass_d): Added stmt_fixup field.
3311         (execute_all_ipa_stmt_fixups): Declare.
3312         * ipa-cp.c (pass_ipa_cp): Added stmt_fixup value.
3313         * ipa-inline.c (pass_ipa_inline): Likewise.
3314         * ipa-pure-const.c (pass_ipa_pure_cons): Likewise.
3315         * ipa-reference.c (pass_ipa_reference): Likewise.
3316         * ipa.c (pass_ipa_whole_program_visibility): Likewise.
3317         * lto-streamer-out.c (pass_ipa_lto_gimple_out): Likewise.
3318         (pass_ipa_lto_finish_out): Likewise.
3319         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Likewise.
3320         * passes.c (execute_ipa_stmt_fixups): New function.
3321         (execute_all_ipa_stmt_fixups): New function.
3322         * lto-streamer-in.c (input_function): Call execute_all_ipa_stmt_fixups.
3323
3324 2009-11-10  Eric Botcazou  <ebotcazou@adacore.com>
3325
3326         PR ada/20548
3327         * explow.c (probe_stack_range): Fix typo.
3328         * config/sparc/sparc.md (probe_stack): New expander.
3329
3330 2009-11-09  Dave Korn  <dave.korn.cygwin@gmail.com>
3331
3332         * config/i386/cygwin.h (LINK_SPEC): Add -tsaware flag if !mno-cygwin.
3333
3334 2009-11-09  Jason Merrill  <jason@redhat.com>
3335
3336         * gdbinit.in (pgq): New function for printing gimple sequence.
3337
3338 2009-11-09  Paul Brook  <paul@codesourcery.com>
3339             Daniel Jacobowitz  <dan@codesourcery.com>
3340             Sandra Loosemore  <sandra@codesourcery.com>
3341
3342         * doc/extend.texi (Half-Precision): Update wording to reflect
3343         that there are now multiple -mfpu options that enable fp16
3344         hardware support.
3345         * doc/invoke.texi: Update list of ARM -mfpu= options.
3346         * config.gcc: Update ARM --with-fpu option list.
3347         * config/arm/arm.c (all_fpus): Add vfpv3-fp16, vfpv3-d16-fp16,
3348         vfpv3xd and vfpv3xd-fp16.
3349         (use_vfp_abi): New function.
3350         (aapcs_vfp_is_call_or_return_candidate): Avoid double precision regs
3351         when undesirable.
3352         (aapcs_vfp_is_return_candidate, aapcs_vfp_is_call_candidate,
3353         aapcs_vfp_allocate_return_reg): Use use_vfp_abi.
3354         (arm_rtx_costs_1, arm_size_rtx_costs, arm_fastmul_rtx_costs,
3355         arm_9e_rtx_costs): Only expect double-precision operations if the FPU
3356         provides them.
3357         (coproc_secondary_reload_class): Reload HFmode via GENERAL_REGS if no
3358         NEON.
3359         (arm_print_operand): Handle 'p' modifier.
3360         (arm_hard_regno_mode_ok): : Allow HFmode in VFP registers if
3361         TARGET_FP16.
3362         * config/arm/arm.h (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Define.
3363         (TARGET_FP16): Define.
3364         * config/arm/vfp.md: Disable double-precision patterns if the FPU
3365         does not provide them.
3366         (arm_movdi_vfp, thumb2_movdi_vfp): Use fcpys to move
3367         double-precision values on a single-precision FPU.
3368         (movdf_vfp, thumb2_movdf_vfp): Likewise.  Use "Dy" for
3369         double-precision constants.
3370         (movhf_vfp_neon): New pattern (was movhf_vfp).
3371         (movhf_vfp): Remove NEON instructions.
3372         * config/arm/constraints.md: Add new "Dy" constraint for
3373         double-precision constants.  Update description of "Dv".
3374         * config/arm/arm.md: Disable double-precision patterns if the FPU
3375         does not provide them
3376
3377 2009-11-09  Jakub Jelinek  <jakub@redhat.com>
3378
3379         * config/i386/i386.c (print_operand) <case 'D'>: Fix formatting.
3380         (print_operand) <case 'Y'>: Likewise.  Fix a pasto in operand lossage
3381         diagnostics.
3382
3383 2009-11-08  H.J. Lu  <hongjiu.lu@intel.com>
3384
3385         * collect2.c (main): Search PLUGIN_LD for plugin linker.
3386
3387         * configure.ac (--with-plugin-ld): New.  Default to ld.
3388         * configure: Regenerated.
3389         * config.in: Likewise.
3390
3391         * exec-tool.in (ORIGINAL_PLUGIN_LD_FOR_TARGET): New.
3392         (collect-ld): Use ORIGINAL_PLUGIN_LD_FOR_TARGET for -plugin.
3393
3394 2009-11-08  Jonathan Gray  <jsg@openbsd.org>
3395
3396         * config/openbsd-stdint.h: Change to reflect what
3397         c_common_nodes_and_builtins expects.
3398
3399 2009-11-08  Paolo Carlini  <paolo.carlini@oracle.com>
3400
3401         * builtins.c (apply_args_reg_offset): Remove commented out delaration.
3402
3403 2009-11-08  Jakub Jelinek  <jakub@redhat.com>
3404
3405         PR target/41985
3406         * config/i386/i386.c (get_some_local_dynamic_name): Don't assert
3407         function contains at least one local dynamic name.
3408         (print_operand) <case '&'>: Instead output operand lossage diagnostics
3409         here if that happens.
3410
3411 2009-11-08  Zbigniew Chamski  <zbigniew.chamski@gmail.com>
3412             Joern Rennecke  <amylaar@spamcop.net>
3413
3414         * cfgrtl.c (pass_free_cfg): Add pass name.
3415         * cgraphbuild.c (pass_build_cgraph_edges): Likewise.
3416         (pass_rebuild_cgraph_edges, pass_remove_cgraph_callee_edges): Likewise.
3417         * dce.c (pass_ud_rtl_dce, pass_fast_rtl_dce): Change pass name.
3418         * df-core.c (pass_df_initialize_no_opt): Likewise.
3419         * except.c (pass_rtl_eh): Likewise.
3420         * function.c (pass_init_function, pass_leaf_regs): Likewise.
3421         * gcse.c (pass_rtl_pre): Change pass name.
3422         * passes.c (pass_postreload): Add pass name.
3423         (make_pass_instance): Don't use duplicate-tracking logic for
3424         names starting with '*'.
3425         (next_pass_1): Assert that pass has a name.
3426         (register_one_dump_file): If there is an space in the name,
3427         skip past it.
3428         * predict.c (pass_strip_predict_hints): Add pass name.
3429         * reg-stack.c (pass_stack_regs): Likewise.
3430         * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
3431         * tree-cfg.c (pass_warn_function_return,
3432         pass_warn_function_noreturn): Add pass name.
3433         * tree-dfa.c (pass_referenced_vars): Likewise.
3434         * tree-optimize.c (pass_cleanup_cfg_post_optimizing):
3435         Fix whitespace before comment.
3436         (pass_fixup_cfg): Add pass name, fix whitespace before comment.
3437         (pass_init_datastructures): Add pass name.
3438         * tree-ssa-loop.c (pass_record_bounds): Likewise.
3439         * tree-ssa.c (pass_early_warn_uninitialized,
3440         pass_late_warn_uninitialized): Likewise.
3441         * tree.c (pass_ipa_free_lang_data): Likewise.
3442         * doc/passes.texi (pass manager): Document how to disambiguate
3443         pass names.
3444
3445 2009-11-08  Paolo Bonzini  <bonzini@gnu.org>
3446
3447         * df-problems.c: Fix documentation for forward simulation of LR.
3448         (df_simulate_one_insn_forwards): Use df_simulate_find_defs.
3449         (df_simulate_finalize_forwards): Remove.
3450         * df.h (df_simulate_finalize_forwards): Remove.
3451
3452 2009-11-08  Richard Guenther  <rguenther@suse.de>
3453
3454         * tree-ssa-structalias.c (build_succ_graph): Properly make
3455         variables escape if they are stored to anything.
3456
3457 2009-11-08  Richard Guenther  <rguenther@suse.de>
3458
3459         PR rtl-optimization/41928
3460         * loop-invariant.c (free_loop_data): If we didn't allocate
3461         loop data do not try to free it.
3462
3463 2009-11-07  Jason Merrill  <jason@redhat.com>
3464
3465         * tree.c (reconstruct_complex_type): Preserve attributes.
3466
3467 2009-11-07  Richard Guenther  <rguenther@suse.de>
3468
3469         * tree-ssa-structalias.c (build_succ_graph): Feed stores
3470         to anything only to variables that can take pointers.
3471         (get_constraint_for_ssa_var): Properly exclude full
3472         variables from expanding.
3473         (first_vi_for_offset): Avoid overflow in arithmetic.
3474         (first_or_preceding_vi_for_offset): Likewise.
3475         (count_num_arguments): Fix implementation.
3476         (gate_ipa_pta): Do not run when not optimizing.
3477
3478 2009-11-07  David Binderman <dcb314@hotmail.com>
3479
3480         * builtins.c (apply_args_size, expand_builtin_mathfn, expand_powi,
3481         expand_builtin_expect, maybe_emit_sprintf_chk_warning): Remove some
3482         set but not used variables.
3483         (apply_args_reg_offset): Comment out as unused.
3484         * calls.c (flags_from_decl_or_type): Likewise.
3485         * genautomata.c (check_regexp_units_distribution): Likewise.
3486
3487 2009-11-07  Uros Bizjak  <ubizjak@gmail.com>
3488
3489         * config/i386/sse.md (xop_pmacsww, xop_pmacssww, xop_pmacsdd,
3490         xop_pmacssdd, xop_pmacssdql, xop_pmacssdqh, xop_pmacsdql,
3491         *xop_pmacsdql_mem, xop_pmacsdqh, *xop_pmacsdqh_mem, xop_pmacsswd,
3492         xop_pmacswd, xop_pmadcsswd, xop_pmadcswd, xop_pcmov_<mode>,
3493         xop_pcmov_<mode>256, xop_pperm, xop_pperm_pack_v2di_v4si,
3494         xop_pperm_pack_v4si_v8hi, xop_pperm_pack_v8hi_v16qi): Compress
3495         operand alternatives.
3496
3497 2009-11-06  Michael Matz  <matz@suse.de>
3498
3499         PR middle-end/41963
3500         * tree-ssa-math-opts.c (execute_cse_reciprocals): Check all uses
3501         of a potential reciprocal to really be reciprocals.
3502
3503 2009-11-06  Jakub Jelinek  <jakub@redhat.com>
3504
3505         * config/i386/x86intrin.h: Include fma4intrin.h, xopintrin.h and
3506         lwpintrin.h after immintrin.h.
3507         * config/i386/fma4intrin.h (__v8sf, __v4df, __m256, __m256d): Remove
3508         typedefs.
3509
3510         PR middle-end/41935
3511         * c-common.c (fold_offsetof_1) <case ARRAY_REF>: Don't crash for VLAs
3512         or non-constant index, allow index one past the last element and
3513         allow exceeding array bound in arrays that might be used as flexible
3514         array members.
3515
3516 2009-11-05  Richard Henderson  <rth@redhat.com>
3517
3518         * config/i386/ia32intrin.h: Protect CRC32 builtins with __SSE4_2__.
3519
3520 2009-11-05  Paul Brook  <paul@codesourcery.com>
3521
3522         * config/arm/arm.c (arm_fp_model, arm_fpu_arch, arm_fpu_tune): Remove.
3523         (arm_fpu_desc): New.
3524         (all_fpus): Add FPU details.
3525         (fp_model_for_fpu): Remove.
3526         (arm_override_options): Set and use arm_fpu_desc and arm_fpu_attr.
3527         (arm_output_epilogue, arm_save_coproc_regs): Use TARGET_FPA_EMU2.
3528         (arm_file_start): Use arm_fpu_desc.
3529         * config/arm/arm.h (TARGET_FPA, TARGET_MAVERICK, TARGET_VFP,
3530         TARGET_VFPD32, TARGET_VFP3, TARGET_NEON_FP16, TARGET_NEON): Use
3531         arm_fpu_desc.
3532         (TARGET_FPA_EMU2): Define.
3533         (arm_fp_model, fputype, arm_fpu_tune): Remove.
3534         (vfp_reg_type, arm_fpu_desc): New.
3535         * config/arm/arm.md (attr fpu): Simplify.
3536         * config/arm/fpa.md (movxf_fpa): Use TARGET_FPA_EMU2.
3537         * config/arm/linux-elf.h (FPUTYPE_DEFAULT): Use string value.
3538         * config/arm/bpabi.h (FPUTYPE_DEFAULT): Use string value.
3539         * config/arm/netbsd-elf.h (FPUTYPE_DEFAULT): Use string value.
3540         * config/arm/vxworks.h (FPUTYPE_DEFAULT): Use string value.
3541
3542 2009-11-05  Michael Matz  <matz@suse.de>
3543
3544         * config/i386/i386.c (ix86_builtin_reciprocal): Remove dependency
3545         on TARGET_RECIP.
3546         * doc/invoke.texi (-mrecip): Clarify that we don't need -mrecip
3547         for 1/sqrtf.
3548
3549 2009-11-04  Jason Merrill  <jason@redhat.com>
3550
3551         PR c++/36912
3552         * varasm.c (initializer_constant_valid_p): A PLUS_EXPR
3553         or MINUS_EXPR of REAL_TYPE is not a valid constant initializer.
3554         (output_constant): Avoid crash after error.
3555
3556 2009-11-05  Martin Jambor  <mjambor@suse.cz>
3557
3558         * tree-sra.c (struct access): Changed comment of next_sibling field.
3559         (analyze_modified_params): Loop over accesses of a group rather than
3560         over all with the ame base, pass a common bitmap to
3561         walk_aliased_vdefs.
3562         (unmodified_by_ref_scalar_representative): Build link lists of
3563         accesses of a group.
3564         (splice_param_accesses): Likewise.
3565
3566 2009-11-04  Kenneth Zadeck  <zadeck@naturalbridge.com>
3567
3568         * df-scan.c (df-uses-record): Add case zero_extract of mem.
3569
3570 2009-11-04  Eric Botcazou  <ebotcazou@adacore.com>
3571
3572         PR target/10127
3573         PR ada/20548
3574         * config/i386/i386.md (probe_stack): New expander.
3575         (logical operation peepholes): Do not split stack checking probes.
3576
3577 2009-11-04  Harsha Jagasia  <harsha.jagasia@amd.com>
3578             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
3579
3580         * doc/invoke.texi (-mlwp): Add documentation.
3581         * doc/extend.texi (x86 intrinsics): Add LWP intrinsics.
3582         * config.gcc (i[34567]86-*-*): Include lwpintrin.h.
3583         (x86_64-*-*): Ditto.
3584         * config/i386/lwpintrin.h: New file, provide x86 compiler
3585         intrinisics for LWP.
3586         * config/i386/cpuid.h (bit_LWP): Define LWP bit.
3587         * config/i386/x86intrin.h: Add LWP check and lwpintrin.h.
3588         * config/i386/i386-c.c (ix86_target_macros_internal): Check
3589         ISA_FLAG for LWP.
3590         * config/i386/i386.h (TARGET_LWP): New macro for LWP.
3591         * config/i386/i386.opt (-mlwp): New switch for LWP support.
3592         * config/i386/i386.c (OPTION_MASK_ISA_LWP_SET): New.
3593         (OPTION_MASK_ISA_LWP_UNSET): New.
3594         (ix86_handle_option): Handle -mlwp.
3595         (isa_opts): Handle -mlwp.
3596         (enum pta_flags): Add PTA_LWP.
3597         (override_options): Add LWP support.
3598         (IX86_BUILTIN_LLWPCB16): New for LWP intrinsic.
3599         (IX86_BUILTIN_LLWPCB32): Ditto.
3600         (IX86_BUILTIN_LLWPCB64): Ditto.
3601         (IX86_BUILTIN_SLWPCB16): Ditto.
3602         (IX86_BUILTIN_SLWPCB32): Ditto.
3603         (IX86_BUILTIN_SLWPCB64): Ditto.
3604         (IX86_BUILTIN_LWPVAL16): Ditto.
3605         (IX86_BUILTIN_LWPVAL32): Ditto.
3606         (IX86_BUILTIN_LWPVAL64): Ditto.
3607         (IX86_BUILTIN_LWPINS16): Ditto.
3608         (IX86_BUILTIN_LWPINS32): Ditto.
3609         (IX86_BUILTIN_LWPINS64): Ditto.
3610         (enum  ix86_special_builtin_type): Add LWP intrinsic support.
3611         (builtin_description): Ditto.
3612         (ix86_init_mmx_sse_builtins): Ditto.
3613         (ix86_expand_special_args_builtin): Ditto.
3614         * config/i386/i386.md (UNSPEC_LLWP_INTRINSIC): Add new UNSPEC for
3615         LWP support.
3616         (UNSPEC_SLWP_INTRINSIC): Ditto.
3617         (UNSPECV_LWPVAL_INTRINSIC): Ditto.
3618         (UNSPECV_LWPINS_INTRINSIC): Ditto.
3619         (lwp_llwpcbhi1): New lwp pattern.
3620         (lwp_llwpcbsi1): Ditto.
3621         (lwp_llwpcbdi1): Ditto.
3622         (lwp_slwpcbhi1): Ditto.
3623         (lwp_slwpcbsi1): Ditto.
3624         (lwp_slwpcbdi1): Ditto.
3625         (lwp_lwpvalhi3): Ditto.
3626         (lwp_lwpvalsi3): Ditto.
3627         (lwp_lwpvaldi3): Ditto.
3628         (lwp_lwpinshi3): Ditto.
3629         (lwp_lwpinssi3): Ditto.
3630         (lwp_lwpinsdi3): Ditto.
3631
3632 2009-11-04  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3633             Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
3634
3635         PR rtl-opt/41833
3636         * simplify-rtx.c (simplify_binary_operation_1): Simplify vec_select of
3637         a vec_duplicate.
3638
3639 2009-11-04  Richard Guenther  <rguenther@suse.de>
3640             Rafael Avila de Espindola  <espindola@google.com>
3641
3642         * gcc.c (process_command): Handle arguments name@offset.
3643
3644 2009-11-04  Harsha Jagasia  <harsha.jagasia@amd.com>
3645             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
3646
3647         * config.gcc (i[34567]86-*-*): Include xopintrin.h.
3648         (x86_64-*-*): Ditto.
3649         * config/i386/xopintrin.h: New file, provide common x86 compiler
3650         intrinisics for XOP.
3651         * config/i386/cpuid.h (bit_XOP): Define XOP bit.
3652         * config/i386/x86intrin.h: Add XOP check and xopintrin.h.
3653         * config/i386/i386-c.c(ix86_target_macros_internal): Check
3654         ISA_FLAG for XOP.
3655         * config/i386/i386.h(TARGET_XOP): New macro for XOP.
3656         * config/i386/i386.opt (-mxop): New switch for XOP support.
3657         * config/i386/i386.md (UNSPEC_XOP_UNSIGNED_CMP)
3658         (UNSPEC_XOP_TRUEFALSE)
3659         (UNSPEC_XOP_PERMUTE)
3660         (UNSPEC_FRCZ): Add new UNSPEC for XOP support.
3661         (PPERM_*): New constants for vpperm instruction.
3662         (xop_pcmov_<mode>): Add XOP conditional mov instructions.
3663         * config/i386/i386.c (OPTION_MASK_ISA_XOP_SET): New.
3664         (OPTION_MASK_ISA_XOP_UNSET): New.
3665         (OPTION_MASK_ISA_XOP_UNSET): Change definition to depend on XOP.
3666         (ix86_handle_option): Handle -mxop.
3667         (isa_opts): Handle -mxop.
3668         (enum pta_flags): Add PTA_XOP.
3669         (override_options): Add XOP support.
3670         (print_operand): Add code for XOP compare instructions.
3671         (ix86_expand_sse_movcc): Extend for XOP conditional move instruction.
3672         (ix86_expand_int_vcond): Extend for XOP compare instruction.
3673
3674         (IX86_BUILTIN_VPCMOV): New for XOP intrinsic.
3675         (IX86_BUILTIN_VPCMOV_V2DI): Ditto.
3676         (IX86_BUILTIN_VPCMOV_V4SI): Ditto.
3677         (IX86_BUILTIN_VPCMOV_V8HI): Ditto.
3678         (IX86_BUILTIN_VPCMOV_V16QI): Ditto.
3679         (IX86_BUILTIN_VPCMOV_V4SF): Ditto.
3680         (IX86_BUILTIN_VPCMOV_V2DF): Ditto.
3681
3682         (IX86_BUILTIN_VPCMOV256): Ditto.
3683         (IX86_BUILTIN_VPCMOV_V4DI256): Ditto.
3684         (IX86_BUILTIN_VPCMOV_V8SI256): Ditto.
3685         (IX86_BUILTIN_VPCMOV_V16HI256): Ditto.
3686         (IX86_BUILTIN_VPCMOV_V32QI256): Ditto.
3687         (IX86_BUILTIN_VPCMOV_V8SF256): Ditto.
3688         (IX86_BUILTIN_VPCMOV_V4DF256): Ditto.
3689
3690         (IX86_BUILTIN_VPPERM): Ditto.
3691
3692         (IX86_BUILTIN_VPMACSSWW): Ditto.
3693         (IX86_BUILTIN_VPMACSWW): Ditto.
3694         (IX86_BUILTIN_VPMACSSWD): Ditto.
3695         (IX86_BUILTIN_VPMACSWD): Ditto.
3696         (IX86_BUILTIN_VPMACSSDD): Ditto.
3697         (IX86_BUILTIN_VPMACSDD): Ditto.
3698         (IX86_BUILTIN_VPMACSSDQL): Ditto.
3699         (IX86_BUILTIN_VPMACSSDQH): Ditto.
3700         (IX86_BUILTIN_VPMACSDQL): Ditto.
3701         (IX86_BUILTIN_VPMACSDQH): Ditto.
3702         (IX86_BUILTIN_VPMADCSSWD): Ditto.
3703         (IX86_BUILTIN_VPMADCSWD): Ditto.
3704
3705         (IX86_BUILTIN_VPHADDBW): Ditto.
3706         (IX86_BUILTIN_VPHADDBD): Ditto.
3707         (IX86_BUILTIN_VPHADDBQ): Ditto.
3708         (IX86_BUILTIN_VPHADDWD): Ditto.
3709         (IX86_BUILTIN_VPHADDWQ): Ditto.
3710         (IX86_BUILTIN_VPHADDDQ): Ditto.
3711         (IX86_BUILTIN_VPHADDUBW): Ditto.
3712         (IX86_BUILTIN_VPHADDUBD): Ditto.
3713         (IX86_BUILTIN_VPHADDUBQ): Ditto.
3714         (IX86_BUILTIN_VPHADDUWD): Ditto.
3715         (IX86_BUILTIN_VPHADDUWQ): Ditto.
3716         (IX86_BUILTIN_VPHADDUDQ): Ditto.
3717         (IX86_BUILTIN_VPHSUBBW): Ditto.
3718         (IX86_BUILTIN_VPHSUBWD): Ditto.
3719         (IX86_BUILTIN_VPHSUBDQ): Ditto.
3720
3721         (IX86_BUILTIN_VPROTB): Ditto.
3722         (IX86_BUILTIN_VPROTW): Ditto.
3723         (IX86_BUILTIN_VPROTD): Ditto.
3724         (IX86_BUILTIN_VPROTQ): Ditto.
3725         (IX86_BUILTIN_VPROTB_IMM): Ditto.
3726         (IX86_BUILTIN_VPROTW_IMM): Ditto.
3727         (IX86_BUILTIN_VPROTD_IMM): Ditto.
3728         (IX86_BUILTIN_VPROTQ_IMM): Ditto.
3729
3730         (IX86_BUILTIN_VPSHLB): Ditto.
3731         (IX86_BUILTIN_VPSHLW): Ditto.
3732         (IX86_BUILTIN_VPSHLD): Ditto.
3733         (IX86_BUILTIN_VPSHLQ): Ditto.
3734         (IX86_BUILTIN_VPSHAB): Ditto.
3735         (IX86_BUILTIN_VPSHAW): Ditto.
3736         (IX86_BUILTIN_VPSHAD): Ditto.
3737         (IX86_BUILTIN_VPSHAQ): Ditto.
3738
3739         (IX86_BUILTIN_VFRCZSS): Ditto.
3740         (IX86_BUILTIN_VFRCZSD): Ditto.
3741         (IX86_BUILTIN_VFRCZPS): Ditto.
3742         (IX86_BUILTIN_VFRCZPD): Ditto.
3743         (IX86_BUILTIN_VFRCZPS256): Ditto.
3744         (IX86_BUILTIN_VFRCZPD256): Ditto.
3745
3746         (IX86_BUILTIN_VPCOMEQUB): Ditto.
3747         (IX86_BUILTIN_VPCOMNEUB): Ditto.
3748         (IX86_BUILTIN_VPCOMLTUB): Ditto.
3749         (IX86_BUILTIN_VPCOMLEUB): Ditto.
3750         (IX86_BUILTIN_VPCOMGTUB): Ditto.
3751         (IX86_BUILTIN_VPCOMGEUB): Ditto.
3752         (IX86_BUILTIN_VPCOMFALSEUB): Ditto.
3753         (IX86_BUILTIN_VPCOMTRUEUB): Ditto.
3754
3755         (IX86_BUILTIN_VPCOMEQUW): Ditto.
3756         (IX86_BUILTIN_VPCOMNEUW): Ditto.
3757         (IX86_BUILTIN_VPCOMLTUW): Ditto.
3758         (IX86_BUILTIN_VPCOMLEUW): Ditto.
3759         (IX86_BUILTIN_VPCOMGTUW): Ditto.
3760         (IX86_BUILTIN_VPCOMGEUW): Ditto.
3761         (IX86_BUILTIN_VPCOMFALSEUW): Ditto.
3762         (IX86_BUILTIN_VPCOMTRUEUW): Ditto.
3763
3764         (IX86_BUILTIN_VPCOMEQUD): Ditto.
3765         (IX86_BUILTIN_VPCOMNEUD): Ditto.
3766         (IX86_BUILTIN_VPCOMLTUD): Ditto.
3767         (IX86_BUILTIN_VPCOMLEUD): Ditto.
3768         (IX86_BUILTIN_VPCOMGTUD): Ditto.
3769         (IX86_BUILTIN_VPCOMGEUD): Ditto.
3770         (IX86_BUILTIN_VPCOMFALSEUD): Ditto.
3771         (IX86_BUILTIN_VPCOMTRUEUD): Ditto.
3772
3773         (IX86_BUILTIN_VPCOMEQUQ): Ditto.
3774         (IX86_BUILTIN_VPCOMNEUQ): Ditto.
3775         (IX86_BUILTIN_VPCOMLTUQ): Ditto.
3776         (IX86_BUILTIN_VPCOMLEUQ): Ditto.
3777         (IX86_BUILTIN_VPCOMGTUQ): Ditto.
3778         (IX86_BUILTIN_VPCOMGEUQ): Ditto.
3779         (IX86_BUILTIN_VPCOMFALSEUQ): Ditto.
3780         (IX86_BUILTIN_VPCOMTRUEUQ): Ditto.
3781
3782         (IX86_BUILTIN_VPCOMEQB): Ditto.
3783         (IX86_BUILTIN_VPCOMNEB): Ditto.
3784         (IX86_BUILTIN_VPCOMLTB): Ditto.
3785         (IX86_BUILTIN_VPCOMLEB): Ditto.
3786         (IX86_BUILTIN_VPCOMGTB): Ditto.
3787         (IX86_BUILTIN_VPCOMGEB): Ditto.
3788         (IX86_BUILTIN_VPCOMFALSEB): Ditto.
3789         (IX86_BUILTIN_VPCOMTRUEB): Ditto.
3790
3791         (IX86_BUILTIN_VPCOMEQW): Ditto.
3792         (IX86_BUILTIN_VPCOMNEW): Ditto.
3793         (IX86_BUILTIN_VPCOMLTW): Ditto.
3794         (IX86_BUILTIN_VPCOMLEW): Ditto.
3795         (IX86_BUILTIN_VPCOMGTW): Ditto.
3796         (IX86_BUILTIN_VPCOMGEW): Ditto.
3797         (IX86_BUILTIN_VPCOMFALSEW): Ditto.
3798         (IX86_BUILTIN_VPCOMTRUEW): Ditto.
3799
3800         (IX86_BUILTIN_VPCOMEQD): Ditto.
3801         (IX86_BUILTIN_VPCOMNED): Ditto.
3802         (IX86_BUILTIN_VPCOMLTD): Ditto.
3803         (IX86_BUILTIN_VPCOMLED): Ditto.
3804         (IX86_BUILTIN_VPCOMGTD): Ditto.
3805         (IX86_BUILTIN_VPCOMGED): Ditto.
3806         (IX86_BUILTIN_VPCOMFALSED): Ditto.
3807         (IX86_BUILTIN_VPCOMTRUED): Ditto.
3808
3809         (IX86_BUILTIN_VPCOMEQQ): Ditto.
3810         (IX86_BUILTIN_VPCOMNEQ): Ditto.
3811         (IX86_BUILTIN_VPCOMLTQ): Ditto.
3812         (IX86_BUILTIN_VPCOMLEQ): Ditto.
3813         (IX86_BUILTIN_VPCOMGTQ): Ditto.
3814         (IX86_BUILTIN_VPCOMGEQ): Ditto.
3815         (IX86_BUILTIN_VPCOMFALSEQ): Ditto.
3816         (IX86_BUILTIN_VPCOMTRUEQ): Ditto.
3817
3818         (enum multi_arg_type): New enum for describing the various XOP
3819         intrinsic argument types.
3820         (bdesc_multi_arg): New table for XOP intrinsics.
3821         (ix86_init_mmx_sse_builtins): Add XOP intrinsic support.
3822         (ix86_expand_multi_arg_builtin): New function for creating XOP
3823         intrinsics.
3824
3825         * config/i386/sse.md (sserotatemax): New mode attribute for XOP.
3826         (xop_pmacsww): Ditto.
3827         (xop_pmacssww): Ditto.
3828         (xop_pmacsdd): Ditto.
3829         (xop_pmacssdd): Ditto.
3830         (xop_pmacssdql): Ditto.
3831         (xop_pmacssdqh): Ditto.
3832         (xop_pmacsdql): Ditto.
3833         (xop_pmacsdql_mem): Ditto.
3834         (xop_mulv2div2di3_low): Ditto.
3835         (xop_pmacsdqh): Ditto.
3836         (xop_pmacsdqh_mem): Ditto.
3837         (xop_mulv2div2di3_high): Ditto.
3838         (xop_pmacsswd): Ditto.
3839         (xop_pmacswd): Ditto.
3840         (xop_pmadcsswd): Ditto.
3841         (xop_pmadcswd): Ditto.
3842         (xop_pcmov_<mode>): Ditto.
3843         (xop_pcmov_<mode>256): Ditto.
3844         (xop_phaddbw): Ditto.
3845         (xop_phaddbd): Ditto.
3846         (xop_phaddbq): Ditto.
3847         (xop_phaddwd): Ditto.
3848         (xop_phaddwq): Ditto.
3849         (xop_phadddq): Ditto.
3850         (xop_phaddubw): Ditto.
3851         (xop_phaddubd): Ditto.
3852         (xop_phaddubq): Ditto.
3853         (xop_phadduwd): Ditto.
3854         (xop_phadduwq): Ditto.
3855         (xop_phaddudq): Ditto.
3856         (xop_phsubbw): Ditto.
3857         (xop_phsubwd): Ditto.
3858         (xop_phsubdq): Ditto.
3859         (xop_pperm): Ditto.
3860         (rotl<mode>3): Ditto.
3861         (rotr<mode>3): Ditto.
3862         (xop_rotl<mode>3): Ditto.
3863         (xop_rotr<mode>3): Ditto.
3864         (vrotr<mode>3): Ditto.
3865         (vrotl<mode>3): Ditto.
3866         (xop_vrotl<mode>3): Ditto.
3867         (vlshr<mode>3): Ditto.
3868         (vashr<mode>3): Ditto.
3869         (vashl<mode>3
3870         (xop_ashl<mode>3): Ditto.
3871         (xop_lshl<mode>3): Ditto.
3872         (ashlv16qi3): Ditto.
3873         (lshlv16qi3): Ditto.
3874         (ashrv16qi3): Ditto.
3875         (ashrv2di3): Ditto.
3876         (xop_frcz<mode>2): Ditto.
3877         (xop_vmfrcz<mode>2): Ditto.
3878         (xop_frcz<mode>2256): Ditto.
3879         (xop_maskcmp<mode>3): Ditto.
3880         (xop_maskcmp_uns<mode>3): Ditto.
3881         (xop_maskcmp_uns2<mode>3): Ditto.
3882         (xop_pcom_tf<mode>3): Ditto.
3883
3884         * doc/invoke.texi (-mxop): Add documentation.
3885         * doc/extend.texi (x86 intrinsics): Add XOP intrinsics.
3886
3887 2009-11-03  Mark Mitchell  <mark@codesourcery.com>
3888
3889         PR driver/11810
3890         * gcc.c (SWITCHES_NEED_SPACES): Define to "o".
3891         * config/alpha/osf.h (SWITCHES_NEED_SPACES): Remove here.
3892         * config/mips/iris.h (SWITCHES_NEED_SPACES): Remove here.
3893
3894 2009-11-04  Richard Earnshaw  <rearnsha@arm.com>
3895
3896         PR target/40835
3897         * arm.md (peephole2 patterns for move and compare): New.
3898
3899 2009-11-04  Nick Clifton  <nickc@redhat.com>
3900
3901         * defaults.h (CONSTANT_ADDRESS_P): Provide a default definition.
3902         Make sure that it does not allow CONST_DOUBLEs.
3903         * doc/tm.texi (CONSTANT_ADDRESS_P): Update description.
3904         * config/avr/avr.h (CONSTANT_ADDRESS_P): Delete.
3905         * config/bfin/bfin.h (CONSTANT_ADDRESS_P): Delete.
3906         * config/cris/cris.h (CONSTANT_ADDRESS_P): Delete.
3907         * config/fr30/fr30.h (CONSTANT_ADDRESS_P): Delete.
3908         * config/frv/frv.h (CONSTANT_ADDRESS_P): Delete.
3909         * config/m32c/m32c.h (CONSTANT_ADDRESS_P): Delete.
3910         * config/m68hc11/m68hc11.h (CONSTANT_ADDRESS_P): Delete.
3911         * config/mep/mep.h (CONSTANT_ADDRESS_P): Delete.
3912         * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Delete.
3913         * config/moxie/moxie.h (CONSTANT_ADDRESS_P): Delete.
3914         * config/pdp11/pdp11.h (CONSTANT_ADDRESS_P): Delete.
3915         * config/picochip/picochip.h (CONSTANT_ADDRESS_P): Delete.
3916         * config/score/score.h (CONSTANT_ADDRESS_P): Delete.
3917         * config/stormy16/stormy16.h (CONSTANT_ADDRESS_P): Delete.
3918
3919 2009-11-04  Richard Guenther  <rguenther@suse.de>
3920
3921         PR tree-optimization/41919
3922         * tree-vrp.c (test_for_singularity): Properly compare values.
3923
3924 2009-11-04  Revital Eres  <eres@il.ibm.com>
3925
3926         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3927         Consider peeling for alignment only for stores and remove
3928         redundant assignment.
3929
3930 2009-11-04  Maxim Kuvyrkov  <maxim@codesourcery.com>
3931
3932         PR target/41302
3933         * config/m68k/m68k.c (m68k_reg_present_p): New static function.
3934         (m68k_ok_for_sibcall_p): Handle different result return locations.
3935
3936 2009-11-04  Richard Guenther  <rguenther@suse.de>
3937
3938         * c-opts.c (c_common_post_options): Move LTO option processing
3939         code ...
3940         * opts.c (decode_options): ... here.
3941
3942 2009-11-04  Jakub Jelinek  <jakub@redhat.com>
3943
3944         * c-common.c (fold_offsetof_1): Use %wd instead of
3945         HOST_WIDE_INT_PRINT_DEC.
3946
3947 2009-11-04  Maciej W. Rozycki  <macro@linux-mips.org>
3948
3949         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Don't define
3950         __pic__ or __PIC__.
3951
3952 2009-11-04  Maciej W. Rozycki  <macro@linux-mips.org>
3953
3954         * config.gcc (vax-*-linux*): Keep the original contents of
3955         tmake_file while adding vax/t-linux.
3956
3957 2009-11-03  Eric Botcazou  <ebotcazou@adacore.com>
3958
3959         PR target/10127
3960         PR ada/20548
3961         * expr.h (STACK_CHECK_PROBE_INTERVAL): Delete.
3962         (STACK_CHECK_PROBE_INTERVAL_EXP): New macro.
3963         (STACK_CHECK_MOVING_SP): Likewise.
3964         * system.h (STACK_CHECK_PROBE_INTERVAL): Poison it.
3965         * doc/tm.texi (Stack Checking): Delete STACK_CHECK_PROBE_INTERVAL.
3966         Document STACK_CHECK_PROBE_INTERVAL_EXP and STACK_CHECK_MOVING_SP.
3967         * doc/md.texi (Standard Pattern Names): Tweak entry of CHECK_STACK.
3968         Document PROBE_STACK.
3969         * explow.c (anti_adjust_stack_and_probe): New function.
3970         (allocate_dynamic_stack_space): Do not directly allocate space if
3971         STACK_CHECK_MOVING_SP, instead invoke above function.
3972         (emit_stack_probe): Handle probe_stack insn.
3973         (PROBE_INTERVAL): New macro.
3974         (STACK_GROW_OPTAB): Likewise.
3975         (STACK_GROW_OFF): Likewise.
3976         (probe_stack_range): Use Pmode and memory_address consistently.  Fix
3977         loop condition in the small constant case.  Rewrite in the general
3978         case to be immune to wraparounds.  Make sure the address of probes
3979         is valid.  Try to use [base + disp] addressing mode if possible.
3980         * ira.c (setup_eliminable_regset): Set frame_pointer_needed if stack
3981         checking is enabled and STACK_CHECK_MOVING_SP.
3982         * rtlanal.c (may_trap_p_1) <MEM>: If stack checking is enabled,
3983         return 1 for volatile references to the stack pointer.
3984         * tree.c (build_common_builtin_nodes): Do not set ECF_NOTHROW on
3985         __builtin_alloca if stack checking is enabled.
3986         * unwind-dw2.c (uw_identify_context): Take into account whether the
3987         context is that of a signal frame or not.
3988         * config/i386/linux.h (STACK_CHECK_MOVING_SP): Define to 1.
3989         * config/i386/linux64.h (STACK_CHECK_MOVING_SP): Likewise.
3990
3991 2009-11-03  Jakub Jelinek  <jakub@redhat.com>
3992
3993         PR rtl-optimization/41917
3994         * rtlanal.c (num_sign_bit_copies1) <case UMOD>: If sign bit of second
3995         operand isn't known to be 0, return 1.
3996
3997 2009-11-03  Richard Sandiford  <rdsandiford@googlemail.com>
3998
3999         * config/mips/mips.md: Fix typos.
4000
4001 2009-11-03  Richard Sandiford  <rdsandiford@googlemail.com>
4002
4003         * doc/invoke.texi: Fix typo.
4004
4005 2009-11-03  Paul Brook  <paul@codesourcery.com>
4006
4007         * config/arm/neon.ml (vectype): Add T_floatSF.
4008         (string_of_vectype): Ditto.
4009         * config/arm/neon-gen.ml (signed_ctype): Add T_floatSF.
4010         (deftypes): Use float for float32_t.
4011         * config/arm/arm_neon.h: Regenerate.
4012
4013 2009-11-03  Nick Clifton  <nickc@redhat.com>
4014             Kevin Buettner  <kevinb@redhat.com>
4015
4016         * config/rx/predicates.md (rx_store_multiple_vector): Reverse
4017         order of expected registers.
4018         (rx_load_multiple_vector): Likewise.
4019         (rx_rtsd_vector): Likewise.
4020         * config/rx/rx.c (rx_cpu_type): New variable.
4021         (rx_print_operand): Fix bug printing 64-bit constant values.
4022         (rx_emit_stack_pushm): Reverse order of pushed registers.
4023         (gen_rx_store_vector): Likewise.
4024         (is_fast_interrupt_func): Only accept "fast_interrupt" as the
4025         attribute name.
4026         (is_exception_func): Rename to is_interrupt_func and only accept
4027         "interrupt" as the attribute name.
4028         (rx_get_stack_layout): Use new function name.
4029         (rx_func_attr_inlinable): Likewise.
4030         (rx_attribute_table): Remove "exception".
4031         (rx_expand_prologue): If necessary push the accumulator register
4032         in the prologue of interrupt functions.
4033         (rx_expand_epilogue): If necessary pop the accumulator.
4034         (rx_builtins): Add RX_BUILTIN_MVTIPL.
4035         (rx_expand_builtin_stz): Remove.
4036         (rx_expand_builtin_mvtipl): New function.
4037         (rx_init_builtins): Handle RX_BUILTIN_MVTIPL.
4038         (rx_expand_builtin): Likewise.
4039         (rx_enable_fpu): New variable.
4040         (rx_handle_option): Handle -fpu, -nofpu, -mcpu and -patch.
4041         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Assert machine based
4042         on rx_cpu_type.  Define __RX_FPU_INSNS__ if FPU insns are allowed.
4043         (enum rx_cpu_types): Define.
4044         (ASM_SPEC): Pass -m32bit-doubles on to assembler.
4045         (INCOMING_FRAME_SP_OFFSET): Define.
4046         (ARG_POINTER_CFA_OFFSET): Define.
4047         (FRAME_POINTER_CFA_OFFSET): Define.
4048         (OVERRIDE_OPTIONS): Enable fast math if RX FPU insns are enabled.
4049         (ALLOW_RX_FPU_INSNS): Define.
4050         * config/rx/rx.md: Test ALLOW_RX_FPU_INSNS instead of
4051         fast_math_flags_set_p.
4052         (UNSPEC_BUILTIN_MVTIPL): Define.
4053         (revl): Rename to bswapsi2.
4054         (bswaphi2): New pattern.
4055         (mvtachi): Mark as volatile because it uses a register unknown to GCC.
4056         (mvtaclo): Likewise.
4057         (racw): Likewise.
4058         (mvtc): Remove clobber of cc0.
4059         (mvtcp): Delete.
4060         (opecp): Delete.
4061         * config/rx/rx.opt (mieee): Remove.
4062         (fpu): Add.
4063         (nofpu): Add.
4064         (mcpu=): Add.
4065         (patch=): Add.
4066         (msave-acc-in-interrupts): Add.
4067         * config/rx/t-rx (MULTILIB_OPTIONS): Change default to 64bit doubles.
4068         (MULTILIB_DIRS): Likewise.
4069         (MULTILIB_MATCHES): Treat -fpu as an alias for -m32bit-doubles.
4070         * doc/extend.texi: Remove description of "exception" function
4071         attribute.
4072         * doc/invoke.texi: Document -fpu, -nofpu, -mcpu=, -patch= and
4073         -msave-acc-in-interrupts options.
4074
4075 2009-11-03  Richard Guenther  <rguenther@suse.de>
4076
4077         * c-common.c (fold_offsetof_1): Use HOST_WIDE_INT_PRINT_DEC.
4078
4079 2009-11-03  Dodji Seketeli  <dodji@redhat.com>
4080
4081         PR c++/38699
4082         * c-common.c (fold_offsetof_1): Issue errors when the member
4083         designator of the offsetof expression is not legitimate.
4084
4085 2009-11-03  Uros Bizjak  <ubizjak@gmail.com>
4086
4087         * config/i386/i386.md (*call_value_1_rex64_ms_sysv): Use register
4088         names instead of numerical constants.
4089         (sse_prologue_save): Ditto.
4090         (*sse_prologue_save_insn): Ditto.
4091
4092 2009-11-03  Uros Bizjak  <ubizjak@gmail.com>
4093
4094         PR target/41900
4095         * config/i386/i386.h (ix86_arch_indices) <X86_ARCH_CALL_ESP>: New.
4096         (TARGET_CALL_ESP): New define.
4097         * config/i386/i386.c (initial_ix86_tune_features): Initialize
4098         X86_ARCH_CALL_ESP.
4099         * config/i386/i386.md (*call_pop_1_esp, *call_1_esp,
4100         *call_value_pop_1_esp, *call_value_1_esp): Rename from *call_pop_1,
4101         *call_1, *call_value_pop_1 and *call_value_1.  Depend on
4102         TARGET_CALL_ESP.
4103         (*call_pop_1, *call_1, *call_value_pop_1, *call_value_1):
4104         New patterns, use "lsm" as operand 1 constraint.
4105         * config/i386/predicates.md (call_insn_operand): Depend on
4106         index_register_operand for !TARGET_CALL_ESP to avoid %esp register.
4107
4108 2009-11-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4109
4110         PR tree-optimization/41857
4111         * tree-flow.h (rewrite_use_address): Add BASE_HINT argument.
4112         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass base hint
4113         to create_mem_ref.
4114         * tree-ssa-address.c (move_hint_to_base): New function.
4115         (most_expensive_mult_to_index): Add TYPE argument.  Use mode and
4116         address space associated with TYPE.
4117         (addr_to_parts): Add TYPE and BASE_HINT arguments.  Pass TYPE to
4118         most_expensive_mult_to_index.  Call move_hint_to_base.
4119         (create_mem_ref): Add BASE_HINT argument.  Pass BASE_HINT and
4120         TYPE to addr_to_parts.
4121
4122 2009-11-02  Martin Jambor  <mjambor@suse.cz>
4123
4124         PR tree-optimization/41750
4125         * tree-sra.c (analyze_modified_params): Loop over all
4126         representatives of components of a parameter.
4127
4128 2009-11-02  Jakub Jelinek  <jakub@redhat.com>
4129
4130         PR tree-optimization/41841
4131         * ipa-struct-reorg.c (build_data_structure): Don't attempt to look at
4132         local variables of not yet materialized clones.
4133
4134         PR debug/41893
4135         * cfgexpand.c (expand_debug_expr): Don't attempt to create DECL_RTL
4136         for a VOIDmode variable.
4137
4138         PR c++/41774
4139         * c-pragma.c (visstack): Change into vector of ints rather than
4140         enum symbol_visibility.
4141         (push_visibility): Add kind argument, push default_visibility together
4142         with kind.
4143         (pop_visibility): Add kind argument, return true if successful, fail
4144         if visibility stack is empty or if stack top is of different kind.
4145         (handle_pragma_visibility): Don't check length of visstack, instead
4146         call pop_visibility and issue diagnostics if it failed.  Pass 0
4147         as last argument to push_visibility and pop_visibility.
4148         * c-pragma.h (push_visibility): Add kind argument.
4149         (pop_visibility): Likewise.  Return bool instead of void.
4150
4151 2009-11-01  Eric Botcazou  <ebotcazou@adacore.com>
4152
4153         * tree.def (TARGET_MEM_REF): Update comment.
4154         * alias.c (get_alias_set): Retrieve the original memory reference for
4155         a TARGET_MEM_REF before proceeding.
4156
4157 2009-10-31  Anatoly Sokolov  <aesok@post.ru>
4158
4159         * config/frv/frv.c (frv_function_value, frv_libcall_value,
4160         frv_function_value_regno_p): New functions.
4161         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
4162         * config/frv/frv.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
4163         (FUNCTION_VALUE_REGNO_P): Redefine, use frv_function_value_regno_p.
4164         * config/frv/frv-protos.h (frv_function_value_regno_p): Declare.
4165
4166 2009-10-31  Anatoly Sokolov  <aesok@post.ru>
4167
4168         * config/mn10300/mn10300.c (mn10300_function_value): Make static, add
4169         new 'outgoing' argument.
4170         (mn10300_libcall_value, mn10300_function_value_regno_p): New functions.
4171         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
4172         * config/mn10300/mn10300.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
4173         LIBCALL_VALUE): Remove.
4174         (FUNCTION_VALUE_REGNO_P): Redefine, use mn10300_function_value_regno_p.
4175         * config/mn10300/mn10300-protos.h (mn10300_function_value): Remove.
4176         (mh10300_function_value_regno_p): Declare.
4177
4178 2009-10-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4179
4180         * config/arm/cortex-a9.md: New - integer pipeline description.
4181
4182 2009-10-31  Eric Botcazou  <ebotcazou@adacore.com>
4183
4184         * tree-ssa-sccvn.c (vn_reference_lookup_3): Bail out instead of
4185         aborting if the sizes of the two references don't match.
4186
4187 2009-10-31  Toon Moene  <toon@moene.org>
4188
4189         * ipa-inline.c (cgraph_decide_inlining):
4190         Include reason for not inlining called-once functions in dump file.
4191
4192 2009-10-30  Daniel Gutson  <dgutson@codesourcery.com>
4193
4194         * config/arm/linux-eabi.h (LINK_SPEC): BE8_LINK_SPEC added.
4195         * config/arm/bpapi.h (BE8_LINK_SPEC): New define.
4196         (LINK_SPEC): BE_LINK_SPEC added.
4197
4198 2009-10-30  Richard Guenther  <rguenther@suse.de>
4199
4200         PR lto/41858
4201         * lto-streamer.h (struct lto_file_decl_data): Remove fd member.
4202
4203 2009-10-30  Nathan Sidwell  <nathan@codesourcery.com>
4204
4205         * target-def.h (TARGET_ASM_TTYPE): Correct typo of TARGET_ARM_TTYPE.
4206         * config/arm/unwind-arm.c (__gnu_Unwind_Backtrace): Remove unused
4207         label.
4208
4209 2009-10-30  Martin Jambor  <mjambor@suse.cz>
4210
4211         * tree-sra.c (build_ref_for_offset_1): Remove a comment.
4212
4213 2009-10-30  H.J. Lu  <hongjiu.lu@intel.com>
4214
4215         PR target/40838
4216         * cfgexpand.c (expand_stack_alignment): Call update_stack_boundary
4217         first.  Move assert on stack_alignment_estimated just before
4218         setting stack_realign_needed.
4219         (gimple_expand_cfg): Initialize stack_alignment_estimated to 0.
4220         Don't call update_stack_boundary.
4221
4222         * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): New.
4223         (verride_options): Don't check ix86_force_align_arg_pointer here.
4224         (ix86_function_ok_for_sibcall): Use it.
4225         (ix86_update_stack_boundary): Likewise.
4226
4227         * config/i386/i386.h (STACK_REALIGN_DEFAULT): Update comments.
4228
4229 2009-10-30  Richard Earnshaw  <rearnsha@arm.com>
4230
4231         * arm.md (QHSI): New mode iterator.
4232         (movqi): If generating for thumb, then truncate any immediate to
4233         8 bits.
4234         * thumb2.md (thumb2_movsi_shortim and peephole2 generator): Replace
4235         with...
4236         (thumb2_mov<mode>_shortim and peephole2 generator): ... iterator based
4237         version.
4238
4239 2009-10-29  Cary Coutant  <ccoutant@google.com>
4240
4241         PR debug/41700
4242         * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hook (two
4243         locations in the source).
4244         (store_vcall_insn): New function.
4245         (lookup_vcall_insn): New function.
4246         (dwarf2out_virtual_call_token): Use store_vcall_insn.
4247         (dwarf2out_copy_call_info): New function.
4248         (dwarf2out_virtual_call): Use lookup_vcall_insn.
4249         * emit-rtl.c (try_split): Call copy_call_info debug hook.
4250         * debug.h (struct gcc_debug_hooks): Add copy_call_info hook.
4251         * debug.c (do_nothing_debug_hooks): Add dummy entry for new hook.
4252         (debug_nothing_rtx_rtx): New dummy hook.
4253         * dbxout.c (dbx_debug_hooks): Add dummy entry for new hook.
4254         (xcoff_debug_hooks): Likewise.
4255         * sdbout.c (sdb_debug_hooks): Likewise.
4256         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
4257
4258 2009-10-29  David Daney  <ddaney@caviumnetworks.com>
4259
4260         * doc/invoke.texi (mmcount-ra-address): Document new command line
4261         option.
4262         * config/mips/mips.opt (mmcount-ra-address): New option.
4263         * config/mips/mips-protos.h (mips_function_profiler): Declare new
4264         function.
4265         * config/mips/mips.c (struct mips_frame_info): Add ra_fp_offset
4266         member.
4267         (mips_for_each_saved_gpr_and_fpr): Set ra_fp_offset.
4268         (mips_function_profiler): Moved from FUNCTION_PROFILER, and
4269         rewritten.
4270         * config/mips/mips.h (FUNCTION_PROFILER): Body of macro moved to
4271         mips_function_profiler.
4272
4273 2009-10-29  Steve Ellcey  <sje@cup.hp.com>
4274
4275         PR middle-end/37565
4276         PR target/38018
4277         * doc/tm.texi (OVERRIDE_OPTIONS): Update.
4278         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
4279         * optc-gen.awk (cl_target_option_restore): Include call to
4280         targetm.override_options_after_change.
4281         * target-def.h (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
4282         * target.h (override_options_after_change): New.
4283         * c-common.c (parse_optimize_options): Call
4284         targetm.override_options_after_change.
4285         * config/ia64/ia64.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
4286         (ia64_override_options_after_change): New.
4287         (ia64_override_options) Add call to above.
4288
4289 2009-10-29  Michael Matz  <matz@suse.de>
4290
4291         * tree-ssa-math-opts.c (execute_convert_to_rsqrt): Remove.
4292         (gate_convert_to_rsqrt): Ditto.
4293         (pass_convert_to_rsqrt): Ditto.
4294         * tree-pass.h (pass_convert_to_rsqrt): Don't declare.
4295         * passes.c (init_optimization_passes): Don't add pass_convert_to_rsqrt
4296         to pass list.
4297
4298         * config/i386/i386.c (ix86_emit_swdivsf): Change evaluation order.
4299
4300 2009-10-29  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4301
4302         * config/arm/arm.c (find_best_start): Fix type of remainder to be
4303         unsigned.
4304
4305 2009-10-29  Martin Jambor  <mjambor@suse.cz>
4306
4307         PR tree-optimization/41775
4308         * tree-sra.c (build_ref_for_offset): Unshare *expr if not NULL.
4309         (generate_subtree_copies): Do not unshare agg.
4310         (load_assign_lhs_subreplacements): Do not unshare rhs.
4311         (sra_modify_assign): Do not unshare exprs.
4312         (propagate_subacesses_accross_link): Renamed to
4313         propagate_subaccesses_across_link.
4314
4315 2009-10-29  Richard Earnshaw  <rearnsha@arm.com>
4316
4317         * arm.c (count_insns_for_constant): Rework to support counting for
4318         thumb2 immediates as well.
4319         (find_best_start): Split out from arm_gen_constant.
4320         (arm_gen_constant): Rework to support XOR with immediate.
4321
4322 2009-10-29  Chao-ying Fu  <fu@mips.com>
4323
4324         * config/mips/mips.c (mips_emit_unary, mips_force_unary): New
4325         functions.
4326         (mips_expand_synci_loop):  Use the length rtx to control the
4327         synci loop from the begin rtx that points to the first byte of
4328         the cache line.
4329
4330 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
4331
4332         * doc/invoke.texi: Rename -use-linker-plugin -fuse-linker-plugin.
4333
4334 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
4335
4336         * dbxout.c (dbxout_common_check): Accept non public trees.
4337         * dwarf2out.c (fortran_common): Accept non public trees.
4338
4339 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
4340
4341         * common.opt (fuse-linker-plugin): New option.
4342         * gcc.c (LINK_COMMAND_SPEC, main): Rename use-linker-plugin to
4343         fuse-linker-plugin.
4344         * opts.c (common_handle_option): Ignore OPT_fuse_linker_plugin.
4345
4346 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
4347
4348         PR rtl-optimization/39715
4349         * config/arm/arm.md (cstoresi4): Use gen_cstoresi_ltu_thumb1.
4350         (gen_cstoresi_ltu_thumb1): New splitter.
4351
4352 2009-10-28  Richard Guenther  <rguenther@suse.de>
4353
4354         PR lto/41808
4355         PR lto/41839
4356         * tree-ssa.c (useless_type_conversion_p): Do not treat
4357         conversions to pointers to incomplete types as useless.
4358         * gimple.c (gimple_types_compatible_p): Compare struct tags,
4359         not typedef names.
4360
4361 2009-10-28  Jakub Jelinek  <jakub@redhat.com>
4362
4363         * var-tracking.c (emit_note_insn_var_location): Don't call the second
4364         vt_expand_loc unnecessarily when location is not a register nor
4365         memory.
4366
4367         PR middle-end/41837
4368         * ipa-struct-reorg.c (find_field_in_struct_1): Return NULL if
4369         fields don't have DECL_NAME.
4370
4371         PR debug/41801
4372         * builtins.c (get_builtin_sync_mem): Expand loc in ptr_mode,
4373         call convert_memory_address on addr.
4374
4375         PR target/41762
4376         * config/i386/i386.c (ix86_pic_register_p): Don't call
4377         rtx_equal_for_cselib_p for VALUEs discarded as useless.
4378
4379 2009-10-28  Richard Sandiford  <rdsandiford@googlemail.com>
4380
4381         * var-tracking.c (emit_note_insn_var_location): Get the mode of
4382         a variable part from its REG, MEM or VALUE.
4383
4384 2009-10-28  Richard Guenther  <rguenther@suse.de>
4385
4386         * gimple.c (gimple_get_alias_set): Fix comment typo.
4387
4388 2009-10-28  Richard Guenther  <rguenther@suse.de>
4389
4390         * tree.c (free_lang_data_in_type): Do not call get_alias_set.
4391         (free_lang_data): Unconditionally compute alias sets for all
4392         standard integer types.  Bail out if gate bailed out previously.
4393         Do not reset the types_compatible_p langhook.
4394         (gate_free_lang_data): Remove.
4395         (struct pass_ipa_free_lang_data): Enable unconditionally.
4396         * gimple.c (gimple_get_alias_set): Use the same alias-set for
4397         all pointer types.
4398
4399 2009-10-28  Richard Guenther  <rguenther@suse.de>
4400
4401         PR middle-end/41855
4402         * tree-ssa-alias.c (refs_may_alias_p_1): Deal with CONST_DECLs
4403         (ref_maybe_used_by_call_p_1): Fix bcopy handling.
4404         (call_may_clobber_ref_p_1): Likewise.
4405         * tree-ssa-structalias.c (find_func_aliases): Likewise.
4406         * alias.c (nonoverlapping_memrefs_p): Deal with CONST_DECLs.
4407
4408 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
4409
4410         PR rtl-optimization/41812
4411
4412         Revert:
4413         2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
4414
4415         * df-problems.c (df_md_scratch): New.
4416         (df_md_alloc, df_md_free): Allocate/free it.
4417         (df_md_local_compute): Only include live registers in init.
4418         (df_md_transfer_function): Prune the in-set computed by
4419         the confluence function, and the gen-set too.
4420
4421 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
4422
4423         PR rtl-optimization/39715
4424         * combine.c (simplify_comparison): Use extensions to
4425         widen comparisons.  Try an ANDing first.
4426
4427 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
4428
4429         PR rtl-optimization/40741
4430         * config/arm/arm.c (thumb1_rtx_costs): IOR or XOR with
4431         a small constant is cheap.
4432         * config/arm/arm.md (andsi3, iorsi3): Try to place the result of
4433         force_reg on the LHS.
4434         (xorsi3): Likewise, and split the XOR if the constant is complex
4435         and not in Thumb mode.
4436
4437 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
4438
4439         * expmed.c (emit_store_flag): Check costs before
4440         transforming to the opposite representation.
4441
4442 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
4443
4444         * config/sh/sh.md (cbranchfp4_media): Remove hack extending
4445         cstore result to DImode.
4446
4447 2009-10-28  Kaz Kojima  <kkojima@gcc.gnu.org>
4448
4449         * config/sh/sh.md (stuff_delay_slot): Move const_int pattern
4450         inside the unspec vector.
4451
4452 2009-10-27  Richard Henderson  <rth@redhat.com>
4453
4454         * cgraphunit.c (cgraph_optimize): Maintain timevar stack properly.
4455
4456 2009-10-27  Richard Henderson  <rth@redhat.com>
4457
4458         PR c++/41819
4459         * tree-eh.c (eh_region_may_contain_throw_map): Rename from
4460         eh_region_may_contain_throw; update users.
4461         (eh_region_may_contain_throw): New function.
4462         (lower_catch): Check flag_exceptions before creating exception region.
4463         (lower_eh_filter, lower_eh_must_not_throw): Likewise.
4464         (lower_cleanup): Tidy existing flag_exceptions check to match.
4465
4466 2009-10-27  Kai Tietz <kai.tietz@onevision.com>
4467
4468         PR/41799
4469         * config/i386/mingw32.h (CHECK_EXECUTE_STACK_ENABLED): New macro.
4470         * config/i386/mingw.opt: Add fset-stack-executable.
4471         * config/i386/i386.c (ix86_trampoline_init): Make call to
4472         emit_library_call conditional, if CHECK_EXECUTE_STACK_ENABLED is
4473         defined and its value is not zero.
4474         * doc/invoke.texi
4475
4476 2009-10-27  Richard Guenther  <rguenther@suse.de>
4477
4478         * tree-ssa-structalias.c (find_func_aliases): In IPA mode
4479         handle calls to externally visible functions like in regular mode.
4480         (create_variable_info_for): Do not create function infos here.
4481         (have_alias_info): Remove write-only variable.
4482         (solve_constraints): New function split out from common code
4483         in compute_points_to_sets and ipa_pta_execute.
4484         (compute_points_to_sets): Adjust.
4485         (ipa_pta_execute): Likewise.  Handle clones and externally visible
4486         functions like in non-IPA mode.
4487
4488 2009-10-27  Jakub Jelinek  <jakub@redhat.com>
4489
4490         PR c/41842
4491         * c-typeck.c (convert_arguments): Return -1 if any of the arguments is
4492         error_mark_node.
4493
4494 2009-10-27  Richard Guenther  <rguenther@suse.de>
4495
4496         * tree-complex.c (expand_complex_div_wide): Check for
4497         INTEGER_CST, not TREE_CONSTANT on comparison folding result.
4498
4499 2009-10-27  Revital Eres  <eres@il.ibm.com>
4500
4501         PR tree-optimization/40648
4502         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4503         Change decision of when to peel for alignment.
4504
4505 2009-10-27  Richard Guenther  <rguenther@suse.de>
4506
4507         PR lto/41821
4508         * gimple.c (gimple_types_compatible_p): Handle OFFSET_TYPE.
4509
4510 2009-10-27  Aldy Hernandez  <aldyh@redhat.com>
4511
4512         PR bootstrap/41451
4513         * fold-const.c (fold_binary_loc): Do not call
4514         protected_set_expr_location.
4515
4516 2009-10-27  Wei Guozhi  <carrot@google.com>
4517
4518         PR target/41705
4519         * target.h (have_conditional_execution): Add a new target hook
4520         function.
4521         * target-def.h (TARGET_HAVE_CONDITIONAL_EXECUTION): Likewise.
4522         * targhooks.h (default_have_conditional_execution): Likewise.
4523         * targhooks.c (default_have_conditional_execution): Likewise.
4524         * doc/tm.texi (TARGET_HAVE_CONDITIONAL_EXECUTION): Document it.
4525         * config/arm/arm.c (TARGET_HAVE_CONDITIONAL_EXECUTION): Define it.
4526         (arm_have_conditional_execution): New function.
4527         * ifcvt.c (noce_process_if_block, find_if_header,
4528         cond_exec_find_if_block, dead_or_predicable): Change the usage of
4529         macro HAVE_conditional_execution to a target hook call.
4530         * recog.c (peephole2_optimize): Likewise.
4531         * sched-rgn.c (add_branch_dependences): Likewise.
4532         * final.c (asm_insn_count, final_scan_insn): Likewise.
4533         * bb-reorder.c (HAVE_conditional_execution): Remove it.
4534
4535 2009-10-26  Ben Elliston  <bje@au.ibm.com>
4536             Michael Meissner  <meissner@linux.vnet.ibm.com>
4537             Ulrich Weigand  <uweigand@de.ibm.com>
4538
4539         * config.gcc (spu-*-elf*): Add spu_cache.h to extra_headers.
4540         * config/spu/spu_cache.h: New file.
4541
4542         * config/spu/cachemgr.c: New file.
4543         * config/spu/cache.S: New file.
4544
4545         * config/spu/spu.h (ASM_OUTPUT_SYMBOL_REF): Define.
4546         (ADDR_SPACE_EA): Define.
4547         (TARGET_ADDR_SPACE_KEYWORDS): Define.
4548         * config/spu/spu.c (EAmode): New macro.
4549         (TARGET_ADDR_SPACE_POINTER_MODE): Define.
4550         (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
4551         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
4552         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Likewise.
4553         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
4554         (TARGET_ADDR_SPACE_CONVERT): Likewise.
4555         (TARGET_ASM_SELECT_SECTION): Likewise.
4556         (TARGET_ASM_UNIQUE_SECTION): Likewise.
4557         (TARGET_ASM_UNALIGNED_SI_OP): Likewise.
4558         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
4559         (ea_symbol_ref): New function.
4560         (spu_legitimate_constant_p): Handle __ea qualified addresses.
4561         (spu_addr_space_legitimate_address_p): New function.
4562         (spu_addr_space_legitimize_address): Likewise.
4563         (cache_fetch): New global.
4564         (cache_fetch_dirty): Likewise.
4565         (ea_alias_set): Likewise.
4566         (ea_load_store): New function.
4567         (ea_load_store_inline): Likewise.
4568         (expand_ea_mem): Likewise.
4569         (spu_expand_mov): Handle __ea qualified memory references.
4570         (spu_addr_space_pointer_mode): New function.
4571         (spu_addr_space_address_mode): Likewise.
4572         (spu_addr_space_subset_p): Likewise.
4573         (spu_addr_space_convert): Likewise.
4574         (spu_section_type_flags): Handle "._ea" section.
4575         (spu_select_section): New function.
4576         (spu_unique_section): Likewise.
4577         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Support __EA32__
4578         and __EA64__ predefined macros.
4579         * config/spu/spu-elf.h (LIB_SPEC): Handle -mcache-size= and
4580         -matomic-updates switches.
4581
4582         * config/spu/t-spu-elf (MULTILIB_OPTIONS): Define.
4583         (EXTRA_MULTILIB_PARTS): Add libgcc_cachemgr.a,
4584         libgcc_cachemgr_nonatomic.a, libgcc_cache8k.a, libgcc_cache16k.a,
4585         libgcc_cache32k.a, libgcc_cache64k.a, libgcc_cache128k.a.
4586         ($(T)cachemgr.o, $(T)cachemgr_nonatomic.o): New target.
4587         ($(T)cache8k.o, $(T)cache16k.o, $(T)cache32k.o, $(T)cache64k.o,
4588         $(T)cache128k.o): Likewise.
4589         ($(T)libgcc_%.a): Likewise.
4590
4591         * config/spu/spu.h (TARGET_DEFAULT): Add MASK_ADDRESS_SPACE_CONVERSION.
4592         * config/spu/spu.opt (-mea32/-mea64): Add switches.
4593         (-maddress-space-conversion): Likewise.
4594         (-mcache-size=): Likewise.
4595         (-matomic-updates): Likewise.
4596         * doc/invoke.texi (-mea32/-mea64): Document.
4597         (-maddress-space-conversion): Likewise.
4598         (-mcache-size=): Likewise.
4599         (-matomic-updates): Likewise.
4600
4601 2009-10-26  Ben Elliston  <bje@au.ibm.com>
4602             Michael Meissner  <meissner@linux.vnet.ibm.com>
4603             Ulrich Weigand  <uweigand@de.ibm.com>
4604
4605         * doc/tm.texi (TARGET_ADDR_SPACE_KEYWORDS): Document.
4606
4607         * c-common.c (c_common_reswords): If TARGET_ADDR_SPACE_KEYWORDS is
4608         defined, add the named address space keywords.
4609         (c_addr_space_name): New function.
4610         (complete_array_type): Preserve named address space.
4611         (handle_mode_attribute): Use targetm.addr_space.valid_pointer_mode
4612         instead of targetm.valid_pointer_mode.
4613
4614         * c-common.h (enum rid): Add RID_ADDR_SPACE_0 .. RID_ADDR_SPACE_15,
4615         RID_FIRST_ADDR_SPACE and RID_LAST_ADDR_SPACE.
4616         (ADDR_SPACE_KEYWORD): New macro.
4617         (c_addr_space_name): Add prototype.
4618
4619         * c-tree.h (struct c_declspecs): Add address_space member.
4620         (declspecs_add_addrspace): Add prototype.
4621
4622         * c-pretty-print.c (pp_c_type_qualifier_list): Handle address spaces.
4623
4624         * c-parser.c (c_parse_init): Add assertion.
4625         (typedef enum c_id_kind): Add C_ID_ADDRSPACE.
4626         (c_lex_one_token): Handle address space keywords.
4627         (c_token_starts_typename): Likewise.
4628         (c_token_starts_declspecs): Likewise.
4629         (c_parser_declspecs): Likewise.
4630         (c_parser_postfix_expression_after_paren_type): Diagnose compound
4631         literal within function qualified with named address space.
4632
4633         * c-decl.c (diagnose_mismatched_decls): Diagnose conflicting named
4634         address space qualifiers.
4635         (shadow_tag_warned): Warn about useless address space qualifiers.
4636         (quals_from_declspecs): Handle address space qualifiers.
4637         (grokdeclarator): Likewise.
4638         (build_null_declspecs): Likewise.
4639         (declspecs_add_addrspace): New function.
4640
4641         * c-typeck.c (addr_space_superset): New function.
4642         (qualify_type): Handle named address spaces.
4643         (composite_type): Likewise.
4644         (common_pointer_type): Likewise.
4645         (comp_target_types): Likewise.
4646         (build_conditional_expr): Likewise.
4647         (handle_warn_cast_qual): Likewise.
4648         (build_c_cast): Likewise.
4649         (convert_for_assignment): Likewise.
4650         (build_binary_op): Likewise.
4651         (pointer_diff): Handle named address spaces.  Use intermediate
4652         integer type of sufficient size if required.
4653
4654 2009-10-26  Ben Elliston  <bje@au.ibm.com>
4655             Michael Meissner  <meissner@linux.vnet.ibm.com>
4656             Ulrich Weigand  <uweigand@de.ibm.com>
4657
4658         * doc/tm.texi (TARGET_ADDR_SPACE_POINTER_MODE): Document.
4659         (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
4660         (TARGET_ADDR_SPACE_VALID_POINTER_MODE): Likewise.
4661
4662         * target.h (struct target_def): Add pointer_mode, address_mode,
4663         and valid_pointer_mode to addr_space substructure.
4664         * target-def.h (TARGET_ADDR_SPACE_POINTER_MODE): Define.
4665         (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
4666         (TARGET_ADDR_SPACE_VALID_POINTER_MODE): Likewise.
4667         (TARGET_ADDR_SPACE_HOOKS): Add them.
4668         * targhooks.c (target_default_pointer_address_modes_p): New function.
4669         * target.h (target_default_pointer_address_modes_p): Add prototype.
4670         * targhooks.c (default_addr_space_pointer_mode): New function.
4671         (default_addr_space_address_mode): Likewise.
4672         (default_addr_space_valid_pointer_mode): Likewise.
4673         * targhooks.h (default_addr_space_pointer_mode): Add prototype.
4674         (default_addr_space_address_mode): Likewise.
4675         (default_addr_space_valid_pointer_mode): Likewise.
4676         * output.h (default_valid_pointer_mode): Move to ...
4677         * targhooks.h (default_valid_pointer_mode): ... here.
4678         * varasm.c (default_valid_pointer_mode): Move to ...
4679         * targhooks.c (default_valid_pointer_mode): ... here.
4680
4681         * varasm.c (output_constant): Use targetm.addr_space.valid_pointer_mode
4682         instead of targetm.valid_pointer_mode.
4683
4684         * fold-const.c (fit_double_type): Use int_or_pointer_precision.
4685         * tree.c (integer_pow2p): Likewise.
4686         (tree_log2): Likewise.
4687         (tree_floor_log2): Likewise.
4688         (signed_or_unsigned_type_for): Support pointer type of different size.
4689         (int_or_pointer_precision): New function.
4690         * tree.h (int_or_pointer_precision): Add prototype.
4691         * stor-layout.c (layout_type): Set TYPE_PRECISION for offset types.
4692         * varasm.c (initializer_constant_valid_p): Use TYPE_PRECISION of
4693         incoming pointer type instead of POINTER_SIZE.
4694
4695         * tree.c (build_pointer_type): Use appropriate pointer mode
4696         instead of ptr_mode.
4697         (build_reference_type): Likewise.
4698         * expr.c (store_expr): Likewise.
4699         (expand_expr_addr_expr): Likewise.
4700         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
4701         * cfgexpand.c (expand_debug_expr): Likewise.
4702
4703         * auto-inc-dec.c: Include "target.h".
4704         (try_merge): Use appropriate address mode instead of Pmode.
4705         (find_inc): Likewise.
4706         * combine.c (find_split_point): Likewise.
4707         * cselib.c (cselib_record_sets): Likewise.
4708         * dse.c (replace_inc_dec): Likewise.
4709         (canon_address): Likewise.
4710         * var-tracking.c (replace_expr_with_values): Likewise.
4711         (count_uses): Likewise.
4712         (add_uses): Likewise.
4713         (add_stores): Likewise.
4714         * emit-rtl.c: Include "target.h".
4715         (adjust_address_1): Use appropriate address mode instead of Pmode.
4716         (offset_address): Likewise.
4717         * explow.c (break_out_memory_refs): Likewise.
4718         (memory_address_addr_space): Likewise.
4719         (promote_mode): Likewise.
4720         * expr.c (move_by_pieces): Likewise.
4721         (emit_block_move_via_loop): Likewise.
4722         (store_by_pieces): Likewise.
4723         (store_by_pieces_1): Likewise.
4724         (expand_assignment): Likewise.
4725         (store_constructor): Likewise.
4726         (expand_expr_addr_expr): Likewise.
4727         (expand_expr_real_1): Likewise.
4728         * cfgexpand.c (expand_debug_expr): Likewise.
4729         * ifcvt.c (noce_try_cmove_arith): Likewise.
4730         * regcprop.c (kill_autoinc_value): Likewise.
4731         * regmove.c (try_auto_increment): Likewise.
4732         * reload.c (find_reloads): Likewise.
4733         (find_reloads_address): Likewise.
4734         (find_reloads_address_1): Likewise.
4735         * sched-deps.c: Include "target.h".
4736         (sched_analyze_1): Use appropriate address mode instead of Pmode.
4737         (sched_analyze_2): Likewise.
4738         * sel-sched-dump.c: Include "target.h".
4739         (debug_mem_addr_value): Use appropriate address mode instead of Pmode.
4740         * stor-layout.c (layout_type): Likewise.
4741         * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
4742         (multiplier_allowed_in_address_p): Likewise.
4743         (get_address_cost): Likewise.
4744         * varasm.c (make_decl_rtl): Likewise.
4745
4746         * expr.c (expand_assignment): Always convert offsets to appropriate
4747         address mode.
4748         (store_expr): Likewise.
4749         (store_constructor): Likewise.
4750         (expand_expr_real_1): Likewise.
4751
4752         * reload.h (form_sum): Add MODE argument.
4753         * reload.c (form_sum): Add MODE argument, use it instead of Pmode.
4754         Update recursive calls.
4755         (subst_indexed_address): Update calls to form_sum.
4756
4757         * tree-flow.h (addr_for_mem_ref): Add ADDRSPACE argument.
4758         * tree-ssa-address.c: Include "target.h".
4759         (templates): Replace by ...
4760         (mem_addr_template_list): ... this new vector.
4761         (TEMPL_IDX): Handle address space numbers.
4762         (gen_addr_rtx): Add address mode argument, use it instead of Pmode.
4763         (addr_for_mem_ref): Add ADDRSPACE argument.  Use per-address-space
4764         instead of global cache.  Update call to gen_addr_rtx.
4765         (valid_mem_ref_p): Update call to addr_for_mem_ref.
4766         * expr.c (expand_expr_real_1): Update call to addr_for_mem_ref.
4767
4768         * rtl.h (convert_memory_address_addr_space): Add prototype.
4769         (convert_memory_address): Define as macro.
4770         * explow.c (convert_memory_address): Rename to ...
4771         (convert_memory_address_addr_space): ... this.  Add ADDRSPACE argument.
4772         Use appropriate pointer and address modes instead of ptr_mode / Pmode.
4773         Update recursive calls.
4774         (memory_address_addr_space): Call convert_memory_address_addr_space.
4775         * expmed.c (make_tree): Likewise.
4776         * expr.c (expand_assignment): Likewise.
4777         (expand_expr_addr_expr_1): Likewise.  Also, add ADDRSPACE argument.
4778         (expand_expr_addr_expr): Likewise.  Also, update call.
4779
4780         * alias.c (find_base_value): Guard pointer size optimizations.
4781         (find_base_term): Likewise.
4782         * rtlanal.c (nonzero_bits1): Likewise.
4783         (num_sign_bit_copies1): Likewise.
4784         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
4785
4786         * Makefile.in (tree-ssa-address.o): Add $(TARGET_H) dependency.
4787         (emit-rtl.o): Likewise.
4788         (auto-inc-dec.o): Likewise.
4789         (sched-deps.o): Likewise.
4790
4791 2009-10-26  Ben Elliston  <bje@au.ibm.com>
4792             Michael Meissner  <meissner@linux.vnet.ibm.com>
4793             Ulrich Weigand  <uweigand@de.ibm.com>
4794
4795         * doc/extend.texi (Named Address Spaces): New section.
4796         * coretypes.h (addr_space_t): New type.
4797         (ADDR_SPACE_GENERIC): New define.
4798         (ADDR_SPACE_GENERIC_P): New macro.
4799
4800         * doc/tm.texi (Named Address Spaces): New section.
4801         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Document.
4802         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Document.
4803         (TARGET_ADDR_SPACE_SUBSET_P): Document.
4804         (TARGET_ADDR_SPACE_CONVERT): Document.
4805         * target.h (struct gcc_target): Add addr_space substructure.
4806         * target-def.h (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
4807         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Likewise.
4808         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
4809         (TARGET_ADDR_SPACE_CONVERT): Likewise.
4810         (TARGET_ADDR_SPACE_HOOKS): Likewise.
4811         (TARGET_INITIALIZER): Initialize addr_space hooks.
4812         * targhooks.c (default_addr_space_legitimate_address_p): New function.
4813         (default_addr_space_legitimize_address): Likewise.
4814         (default_addr_space_subset_p): Likewise.
4815         (default_addr_space_convert): Likewise.
4816         * targhooks.h (default_addr_space_legitimate_address_p): Add prototype.
4817         (default_addr_space_legitimize_address): Likewise.
4818         (default_addr_space_subset_p): Likewise.
4819         (default_addr_space_convert): Likewise.
4820
4821         * doc/rtl.texi (MEM_ADDR_SPACE): Document.
4822         * rtl.h (mem_attrs): Add ADDRSPACE memory attribute.
4823         (MEM_ADDR_SPACE): New macro.
4824         * emit-rtl.c (get_mem_attrs): Add ADDRSPACE argument and set
4825         address space memory attribute.
4826         (mem_attrs_htab_hash): Handle address space memory attribute.
4827         (mem_attrs_htab_eq): Likewise.
4828         (set_mem_attributes_minus_bitpos): Likewise.
4829         (set_mem_alias_set): Likewise.
4830         (set_mem_align): Likewise.
4831         (set_mem_expr): Likewise.
4832         (set_mem_offset): Likewise.
4833         (set_mem_size): Likewise.
4834         (adjust_address_1): Likewise.
4835         (offset_address): Likewise.
4836         (widen_memoy_address): Likewise.
4837         (get_spill_slot_decl): Likewise.
4838         (set_mem_attrs_for_spill): Likewise.
4839         (set_mem_addr_space): New function.
4840         * emit-rtl.h (set_mem_addr_space): Add prototype.
4841         * print-rtl.c (print_rtx): Print address space memory attribute.
4842         * expr.c (expand_assignment): Set address space memory attribute
4843         of generated MEM RTXes as appropriate.
4844         (expand_expr_real_1): Likewise.
4845         * cfgexpand.c (expand_debug_expr): Likewise.
4846         * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
4847
4848         * tree.h (struct tree_base): Add address_space bitfield.  Reduce
4849         size of "spare" bitfield.
4850         (TYPE_ADDR_SPACE): New macro.
4851         (ENCODE_QUAL_ADDR_SPACE): Likewise.
4852         (DECODE_QUAL_ADDR_SPACE): Likewise.
4853         (CLEAR_QUAL_ADDR_SPACE): Likewise.
4854         (KEEP_QUAL_ADDR_SPACE): Likewise.
4855         (TYPE_QUALS): Encode type address space.
4856         (TYPE_QUALS_NO_ADDR_SPACE): New macro.
4857         * tree.c (set_type_quals): Set type address space.
4858         (build_array_type): Inherit array address space from element type.
4859         * print-tree.c (print_node_brief): Print type address space.
4860         (print_node): Likewise.
4861         * tree-pretty-print.c (dump_generic_node): Likewise.
4862
4863         * explow.c (memory_address): Rename to ...
4864         (memory_address_addr_space): ... this.  Add ADDRSPACE argument.
4865         Use address-space aware variants of memory address routines.
4866         * recog.c (memory_address_p): Rename to ...
4867         (memory_address_addr_space_p): ... this.  Add ADDSPACE argument.
4868         Use address-space aware variants of memory address routines.
4869         (offsettable_address_p): Rename to ...
4870         (offsettable_address_addr_space_p): ... this.  Add ADDRSPACE argument.
4871         Use address-space aware variants of memory address routines.
4872         * reload.c (strict_memory_address_p): Rename to ...
4873         (strict_memory_address_addr_space_p): ... this.  Add ADDSPACE argument.
4874         Use address-space aware variants of memory address routines.
4875         (maybe_memory_address_p): Rename to ...
4876         (maybe_memory_address_addr_space_p): ... this.  Add ADDSPACE argument.
4877         Use address-space aware variants of memory address routines.
4878         * expr.h (memory_address_addr_space): Add prototype.
4879         (memory_address): Define as macro.
4880         * recog.h (memory_address_addr_space_p): Add prototype.
4881         (memory_address_p): Define as macro.
4882         (offsettable_address_addr_space_p): Add prototype.
4883         (offsettable_address_p): Define as macro.
4884         (strict_memory_address_addr_space_p): Add prototype.
4885         (strict_memory_address_p): Define as macro.
4886
4887         * combine.c (find_split_point): Use address-space aware variants
4888         of memory address routines.
4889         * emit-rtl.c (operand_subword): Likewise.
4890         (change_address_1): Likewise.
4891         (adjust_address_1): Likewise.
4892         (offset_address): Likewise.
4893         * expr.c (emit_move_insn): Likewise.
4894         (expand_assignment): Likewise.
4895         (expand_expr_real_1): Likewise.
4896         * recog.c (verify_changes): Likewise.
4897         (general_operand): Likewise.
4898         (offsettable_memref_p): Likewise.
4899         (offsettable_nonstrict_memref_p): Likewise.
4900         (constrain_operands): Likewise.
4901         * reload.c (get_secondary_mem): Likewise.
4902         (find_reloads_toplev): Likewise.
4903         (find_reloads_address): Likewise.
4904         (find_reloads_subreg_address): Likewise.
4905         * reload1.c (reload): Likewise.
4906         * rtlhooks.c (gen_lowpart_if_possible): Likewise.
4907         * rtl.h (address_cost): Add ADDRSPACE argument.
4908         * rtlanal.c (address_cost): Add ADDRSPACE argument.  Use address-space
4909         aware variant of memory address routines.
4910         * loop-invariant.c (create_new_invariant): Update address_cost call.
4911         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4912         * fwprop.c (should_replace_address): Add ADDRSPACE argument.
4913         Use address-space aware variant of memory address routines.
4914         (propagate_rtx_1): Update call to should_replace_address.
4915         * tree-flow.h (multiplier_allowed_in_address_p): Add ADDRSPACE
4916         argument.
4917         * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Add
4918         ADDRSPACE argument.  Use per-address-space instead of global cache.
4919         Use address-space aware variant of memory address routines.
4920         (get_address_cost): Likewise.
4921         (get_computation_cost_at): Update calls.
4922         * tree-ssa-address.c (valid_mem_ref_p): Add ADDRSPACE argument.
4923         Use address-space aware variant of memory address routines.
4924         (create_mem_ref_raw): Update call to valid_mem_ref_p.
4925         (most_expensive_mult_to_index): Update call to
4926         multiplier_allowed_in_address_p.
4927
4928         * dwarf2out.c (modified_type_die): Output DW_AT_address_class
4929         attribute to indicate named address spaces.
4930
4931         * varasm.c (get_variable_section): DECLs in named address spaces
4932         cannot be "common".
4933
4934         * reload.c (find_reloads_address): Do not use LEGITIMIZE_RELOAD_ADDRESS
4935         for addresses in a non-generic address space.
4936
4937         * expr.c (emit_block_move_hints): Do not use libcalls for
4938         memory in non-generic address spaces.
4939         (clear_storage_hints): Likewise.
4940         (expand_assignment): Likewise.
4941
4942         * fold-const.c (operand_equal_p): Expressions refering to different
4943         address spaces are not equivalent.
4944
4945         * rtl.c (rtx_equal_p_cb): MEMs refering to different address
4946         spaces are not equivalent.
4947         (rtx_equal_p): Likewise.
4948         * cse.c (exp_equiv_p): Likewise.
4949         * jump.c (rtx_renumbered_equal_p): Likewise.
4950         * reload.c (operands_match_p): Likewise.
4951
4952         * alias.c (nonoverlapping_memrefs_p): MEMs refering to different
4953         address spaces may alias.
4954         (true_dependence): Likewise.
4955         (canon_true_dependence): Likewise.
4956         (write_dependence_p): Likewise.
4957
4958         * dse.c (canon_address): Handle named address spaces.
4959         * ifcvt.c (noce_try_cmove_arith): Likewise.
4960
4961         * tree.def (ADDR_SPACE_CONVERT_EXPR): New tree code.
4962         * expr.c (expand_expr_real_2): Expand ADDR_SPACE_CONVERT_EXPR.
4963         * convert.c (convert_to_pointer): Generate ADDR_SPACE_CONVERT_EXPR
4964         to handle conversions between different address spaces.
4965         * fold-const.c (fold_convert_loc): Likewise.
4966         (fold_unary_loc): Handle ADDR_SPACE_CONVERT_EXPR.
4967         * tree-pretty-print.c (dump_generic_node): Likewise.
4968         * gimple-pretty-print.c (dump_unary_rhs): Likewise.
4969         * tree-cfg.c (verify_gimple_assign_unary): Likewise.
4970         * tree-inline.c (estimate_operator_cost): Likewise.
4971         * tree-ssa.c (useless_type_conversion_p): Conversions between pointers
4972         to different address spaces are not useless.
4973
4974 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
4975
4976         PR bootstrap/41345
4977         * cfgcleanup.c (trivially_empty_bb_p): New function.
4978         (try_optimize_bb): Use it instead of checking BB_HEAD == BB_END.
4979
4980         PR debug/41828
4981         * dwarf2out.c (add_pubname, add_pubtype, generic_parameter_die,
4982         add_name_and_src_coords_attributes, gen_namespace_die,
4983         dwarf2out_set_name): Handle dwarf2_name returning NULL.
4984
4985 2009-10-26  Nick Clifton  <nickc@redhat.com>
4986
4987         * config.gcc: Add support for RX target.
4988         * config/rx: New directory.
4989         * config/rx/constraints.md: New file.
4990         * config/rx/predicates.md: New file.
4991         * config/rx/rx.c: New file.
4992         * config/rx/rx.h: New file.
4993         * config/rx/rx.md: New file.
4994         * config/rx/rx.opt: New file.
4995         * config/rx/rx-protos.h: New file.
4996         * config/rx/t-rx: New file.
4997         * doc/extend.texi: Document RX function attributes.
4998         * doc/invoke.texi: Document RX specific command line options.
4999         * doc/contrib.texi: Document RX contribution.
5000         * doc/md.texi: Document RX constraints.
5001         * doc/install.texi: Document RX support.
5002
5003 2009-10-26  Michael Matz  <matz@suse.de>
5004
5005         PR tree-optimization/41783
5006         * tree-ssa-alias.c (get_continuation_for_phi): Export, add a special
5007         case for simple diamonds.
5008         * tree-ssa-alias.h (get_continuation_for_phi): Declare.
5009         * tree-ssa-pre.c (translate_vuse_through_block): Add same_valid
5010         argument, use alias oracle to skip some vdefs.
5011         (phi_translate_1): Change call to above, don't allocate new
5012         value ids if they can stay the same.
5013         (compute_avail): Allow vuse walking when looking up references.
5014
5015 2009-10-26  Richard Guenther  <rguenther@suse.de>
5016
5017         PR tree-optimization/41826
5018         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Avoid
5019         access to re-allocated vector fields.
5020
5021 2009-10-26  Richard Guenther  <rguenther@suse.de>
5022
5023         * graphite-sese-to-poly.c (check_poly_representation): Fix
5024         compile without checking.
5025
5026 2009-10-26  Janus Weil  <janus@gcc.gnu.org>
5027
5028         PR fortran/41714
5029         * gimple.h (tree_annotate_all_with_location): Remove prototype.
5030         * gimplify.c (tree_should_carry_location_p,
5031         tree_annotate_one_with_location,tree_annotate_all_with_location):
5032         Remove obsolete functions.
5033
5034 2009-10-25  Kaz Kojima  <kkojima@gcc.gnu.org>
5035
5036         PR target/41813
5037         * config/sh/sh.md (stuff_delay_slot): Don't set T_REG in pattern.
5038
5039 2009-10-25  Richard Guenther  <rguenther@suse.de>
5040
5041         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
5042         Stream DECL_RESTRICTED_P.
5043         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
5044
5045 2009-10-25  Richard Sandiford  <rdsandiford@googlemail.com>
5046
5047         * config/mips/mips.c (mips_restore_gp_from_cprestore_slot): Emit
5048         a note when expanding to nothing.
5049
5050 2009-10-25  Richard Guenther  <rguenther@suse.de>
5051
5052         PR middle-end/41814
5053         * tree.c (find_decls_types_r): Deal with Java overloading
5054         BINFO_VIRTUALS for its own purpose.
5055
5056 2009-10-24  Adam Nemet  <anemet@caviumnetworks.com>
5057
5058         * config/mips/predicates.md (hilo_operand): New predicate.
5059         * config/mips/mips.md (<u>mulsidi3_64bit): Change it to a
5060         define_insn.  Correct !ISA_HAS_EXT_INS length from 24 to 28.  Move
5061         splitter part from here ...:
5062         (<u>mulsidi3_64bit splitter for !ISA_HAS_EXT_INS): ... to here.  Swap
5063         op0 and op4 to match the DINS case.
5064         (<u>mulsidi3_64bit splitter for ISA_HAS_EXT_INS): New splitter.
5065
5066 2009-10-24  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
5067
5068         PR middle-end/19154
5069         * avr.md (QIDI): Add new mode iterator.
5070         (sbrx_branch<mode>): Create new zero extract bit, test and jump
5071         patterns for all QI thru DI modes combinations.
5072         (sbrx_and_branch<mode>): Create new and based bit test and jump
5073         patterns for QI thru SI modes.
5074         avr.c (avr_out_sbxx_branch): Use only bit number.
5075
5076 2009-10-24  Jan Hubicka  <jh@suse.cz>
5077
5078         * ipa-reference.c (check_call): Noreturn notrhow calls do not write
5079         to memory.
5080         (analyze_function): When analyzing noreturn nothrow call, do not
5081         compute written stats; free bitmaps of vars early if possible.
5082         (generate_summary): Only update bitmaps if computed.
5083         (propagate): Only dump bitmaps if computed.
5084         (ipa_reference_read_summary): Fix pasto.
5085
5086 2009-10-24  Eric Botcazou  <ebotcazou@adacore.com>
5087
5088         * tree-ssa-alias.c (nonaliasing_component_refs_p): Rename into...
5089         (aliasing_component_refs_p): ...this.  Return true if there is no
5090         common base and the base access types have the same alias set.
5091         (indirect_ref_may_alias_decl_p): Adjust for above renaming.
5092         (indirect_refs_may_alias_p): Likewise.
5093
5094 2009-10-23  Joseph Myers  <joseph@codesourcery.com>
5095
5096         PR c/40033
5097         * c-typeck.c (c_finish_stmt_expr): Do not wrap error_mark_node in
5098         a C_MAYBE_CONST_EXPR.
5099
5100 2009-10-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
5101
5102         PR target/41787
5103         * config/rs6000/rs6000.c (struct machine_function): Add
5104         vsx_or_altivec_used_p to record if vector types are used.
5105         (rs6000_expand_to_rtl_hook): Rename from
5106         rs6000_alloc_sdmode_stack_slot.  If VSX, check to see if there are
5107         any vector operations, so if there are, we can set VRSAVE to
5108         non-zero when only floating point vector registers are used.
5109         (TARGET_EXPAND_TO_RTL_HOOK): Use rs6000_expand_to_rtl_hook.
5110         (rs6000_check_vector_mode): Inner function to check if vector
5111         types are used in the code.
5112         (compute_vrsave_mask): If VSX, make sure VRSAVE is non-zero if
5113         vector instructions are used.
5114
5115         * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED):
5116         Indicate that VSX registers which overlap floating point
5117         registers, can't be used across a call, since the ABI only states
5118         the scalar part of the register will be saved and restored.
5119
5120 2009-10-23  Joseph Myers  <joseph@codesourcery.com>
5121
5122         PR c/41673
5123         * alias.c (get_alias_set): Call langhook before returning 0 for
5124         types with structural equality.
5125         * c-common.c (c_common_get_alias_set): Use alias set of element
5126         type for arrays with structural comparison.
5127
5128 2009-10-23  Richard Guenther  <rguenther@suse.de>
5129
5130         PR middle-end/41805
5131         * cfgexpand.c (expand_call_stmt): Use gimple_has_side_effects and
5132         gimple_call_nothrow_p.
5133
5134 2009-10-23  Richard Guenther  <rguenther@suse.de>
5135
5136         PR tree-optimization/41778
5137         * tree-ssa-pre.c (do_regular_insertion): Only insert if a
5138         redundancy along a path in the CFG we want to optimize for speed
5139         is going to be removed.
5140         (execute_pre): Do partial-PRE only if the function is to be
5141         optimized for speed.
5142         (gate_pre): Do not turn off all of PRE when not optimizing a
5143         function for speed.
5144
5145 2009-10-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5146
5147         * builtins.c (fold_builtin_cabs): Use validate_arg().
5148         (fold_builtin_cexp): Fix if-logic.
5149         (fold_builtin_1): Check subtype for BUILT_IN_CIMAG.
5150
5151 2009-10-22  Jeff Law  <law@redhat.com>
5152
5153         * ira-lives.c (process_single_reg_class_operands): Update the
5154         hard reg costs for all the hard registers desired by the
5155         single reg class operand.
5156
5157 2009-10-22  Richard Sandiford  <rdsandiford@googlemail.com>
5158
5159         * simplify-rtx.c (simplify_replace_fn_rtx): Add a fallback case
5160         for rtxes that aren't handled specially.
5161
5162 2009-10-22  Richard Sandiford  <rdsandiford@googlemail.com>
5163
5164         * rtl.h (shallow_copy_rtvec): Declare.
5165         * rtl.c (shallow_copy_rtvec): New function.
5166         * cselib.c (cselib_subst_to_values): Use it.  Only modify an
5167         rtx field if the subrtx has changed.
5168
5169 2009-10-22  Anatoly Sokolov  <aesok@post.ru>
5170
5171         * config/m32c/m32c.c (m32c_function_value_regno_p): New function.
5172         (m32c_function_value): Make static, add new 'outgoing' argument.
5173         (m32c_libcall_value): Make static, add new 'fun' argument.
5174         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
5175         * config/m32c/m32c.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
5176         (FUNCTION_VALUE_REGNO_P): Redefine, use m32c_function_value_regno_p.
5177         * config/m32c/m32c-protos.h (m32c_function_value_regno_p): Declare.
5178         (m32c_function_value, m32c_libcall_value): Delete declaration.
5179
5180 2009-10-22  Diego Novillo  <dnovillo@google.com>
5181
5182         * Makefile.in (PLUGIN_HEADERS): Add output.h and IPA_UTILS_H.
5183
5184 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
5185
5186         * tree-cfg.c (gimple_duplicate_sese_tail): Fix typos/indentation/white
5187         space.
5188
5189 2009-10-22  Richard Guenther  <rguenther@suse.de>
5190
5191         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Declare.
5192         * lto-symtab.c (struct lto_symtab_entry_def): Add node member.
5193         (lto_symtab_merge): Do not merge cgraph nodes here.
5194         (lto_symtab_resolve_can_prevail_p): Simplify.
5195         (lto_symtab_resolve_symbols): Store cgraph node.
5196         (lto_symtab_merge_decls_1): Simplify.  Do not drop non-prevailing
5197         functions from the symtab.
5198         (lto_symtab_merge_cgraph_nodes_1): New function.
5199         (lto_symtab_merge_cgraph_nodes): Likewise.
5200
5201 2009-10-22  Richard Guenther  <rguenther@suse.de>
5202
5203         PR lto/41791
5204         * lto-streamer-out.c (lto_output_location): Stream the
5205         system header flag.
5206         * lto-streamer-in.c (lto_input_location): Likewise.
5207
5208 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
5209
5210         * cfgloopmanip.c (duplicate_subloops): Export.
5211         * tree-parloops.c (loop_parallel_p): Dump if loop is innermost.
5212         (transform_to_exit_first_loop): Duplicate bbs starting from
5213         header up to loop->latch instead of exit->src.
5214         Initialize control variable to the correct number of iterations.
5215         (gather_scalar_reductions): Do not register double reductions.
5216         (parallelize_loops): Dump which loop is tested.
5217         Indicate whether the parallelized loop is inner or not.
5218         Remove the innermost-loop requirement.
5219         * cfgloop.h (duplicate_subloops): Export.
5220         * tree-cfg.c (add_phi_args_after_redirect): New function.
5221         (gimple_duplicate_sese_tail): Remove the no-subloops constraint.
5222         Call duplicate_subloops.
5223         Update number of iterations at the exit condition.
5224         Don't redirect nexits always to the loop exit.
5225         Redirect copied edges from latch to the loop exit.
5226
5227 2009-10-22  Jan Hubicka  <jh@suse.cz>
5228
5229         * ipa-cp.c (ipcp_read_summary): Remove now invalid FIXME and
5230         flag_ltrans check.
5231         * ipa-inline.c (cgraph_mark_inline_edge,
5232         cgraph_decide_inlining_of_small_function,
5233         cgraph_decide_inlining, inline_read_summary): Disable indirect
5234         inlining for WPA for time being.
5235
5236         PR tree-optimize/40556
5237         * ipa-inline.c (cgraph_early_inlining): Fix iterations condition.
5238
5239 2009-10-22  Richard Guenther  <rguenther@suse.de>
5240
5241         * lto-streamer.h (lto_symtab_clear_resolution): Remove.
5242         * lto-symtab.c (lto_symtab_clear_resolution): Likewise.
5243
5244 2009-10-22  Jan Hubicka  <jh@suse.cz>
5245
5246         PR lto/41730
5247         * ipa-reference.c (has_proper_scope_for_analysis): Add fixme about
5248         global vars.
5249         (check_call): Handle only indirect calls.
5250         (propagate_bits): Update comment.
5251         (write_node_summary_p): Turn bogus check to assert.
5252         (ipa_reference_write_summary): Stream calls_read_all properly.
5253         (ipa_reference_read_summary): Stream in calls_read_all properly.
5254         (read_write_all_from_decl): New function.
5255         (propagate): Handle OVERWRITABLE nodes and external calls here.
5256         * ipa-pre-const.c (check_call): In IPA mode handle indirect
5257         calls only.
5258         (analyze_function): Do not check visibility here.
5259         (add_new_function): We summary OVERWRITABLE too.
5260         (generate_summary): Stream OVERWRITABLE nodes too.
5261         (propagate): Handle external calls and OVERWRITABLE nodes here.
5262         (local_pure_const): Check visibility here.
5263
5264 2009-10-22  Jan Hubicka  <jh@suse.cz>
5265
5266         * ipa-cp.c (ipcp_write_summary, ipcp_read_summary): New functions.
5267         (pass_ipa_cp): Register them.
5268         (ipcp_init_stage): Analyze all functions for whopr/lto.
5269         (ipcp_propagate_stage): Skip external calls.
5270         (ipcp_iterate_stage): Call ipa_update_after_lto_read if needed.
5271         * ipa-reference.c (write_node_summary_p): Fix thinko about
5272         availability.
5273         * cgraphunit.c (ipa_passes): When in lto, ne er produce new summaries;
5274         when in ltrans, skip executing of ipa passes since everything
5275         should've been done.
5276         * ipa-inline.c (cgraph_decide_inlining): Remove FIXMEs.
5277         (inline_generate_summary): Likewise.
5278         (inline_read_summary): New function.
5279         (inline_write_summary): New function.
5280         (pass_ipa_inline): Register new hooks.
5281         * ipa-prop.c: Inlcude lto-streamer.h
5282         (ipa_edge_args_vector): Update declaration.
5283         (ipa_count_arguments, ipa_compute_jump_functions,
5284         ipa_free_edge_args_substructures): Move ipa_edge_args_vector into ggc.
5285         (ipa_write_jump_function, ipa_read_jump_function, ipa_write_node_info,
5286         ipa_read_node_info): New static functions.
5287         (ipa_prop_write_jump_functions, ipa_prop_read_jump_functions): Update.
5288         (duplicate_array): Use xmalloc.
5289         (duplicate_ggc_array): New.
5290         (ipa_edge_duplication_hook): Use it.
5291         (ipa_update_after_lto_read): New function.
5292         * ipa-prop.h (ipa_prop_write_jump_functions,
5293         ipa_prop_read_jump_functions): Declare.
5294         (ipa_pass_through_data, ipa_ancestor_jf_data, ipa_member_ptr_cst,
5295         jump_func_value, ipa_member_ptr_cst, ipa_edge_args): Add GTY markers.
5296         (ipa_edge_args_vector): Move into GGC.
5297         (ipa_check_create_edge_args): Update.
5298         (ipa_update_after_lto_read): New.
5299         * passes.c (ipa_write_summaries_1): When in wpa, do not write
5300         summaries.
5301         (ipa_read_summaries): When in ltrans, so not read summaries.
5302         * lto-streamer.c (lto_get_section_name): Add
5303         LTO_section_jump_functions.
5304         * lto-streamer.h (LTO_section_jump_functions): New section.
5305         (produce_asm): Declare.
5306         * lto-cgraph.c (output_cgraph): Output edges in reverse order.
5307         * lto-streamer-out.c (produce_asm): Export.
5308         * lto-streamer-in.c: Include tree-pass.h
5309         (input_function): Free dominance info when done.
5310         (lto_read_body): Push ipa_inline in ltrans stage.
5311         * gengtype.c (open_base_files): Add ipa-prop.h into includes.
5312         * Makefile.in (GTFILES): Add ipa-prop.h
5313
5314 2009-10-22  Matthias Klose  <doko@ubuntu.com>
5315
5316         * doc/install.texi: Document --enable-browser-plugin.
5317
5318 2009-10-21  Vladimir Makarov  <vmakarov@redhat.com>
5319
5320         * doc/invoke.texi (fira-loop-pressure): Update default value.
5321         * opts.c (decode_options): Remove default value setting for
5322         flag_ira_loop_pressure.
5323         * config/ia64/ia64.c (ia64_override_options): Set
5324         flag_ira_loop_pressure up for -O3.
5325         * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
5326
5327 2009-10-21  Sebastian Pop  <sebastian.pop@amd.com>
5328
5329         PR tree-optimization/41497
5330         * tree-scalar-evolution.c (analyze_evolution_in_loop): Return
5331         chrec_dont_know if the evolution function returned by follow_ssa_edge
5332         is constant in the analyzed loop and is not compatible with the
5333         initial value before the loop.
5334         * tree-chrec.h (no_evolution_in_loop_p): Call STRIP_NOPS.
5335
5336 2009-10-21  Joseph Myers  <joseph@codesourcery.com>
5337
5338         * config/sh/sh.c (nonpic_symbol_mentioned_p): Allow UNSPEC_TPOFF.
5339
5340 2009-10-21  Jakub Jelinek  <jakub@redhat.com>
5341
5342         PR other/25507
5343         * doc/invoke.texi: Document -print-multi-os-directory.
5344
5345 2009-10-21  Jack Howarth  <howarth@bromo.med.uc.edu>
5346
5347         PR c++/41313
5348         * gcc/config/darwin10.h: Use default_emit_unwind_label.
5349         * gcc/config/darwin.c: Disable -freorder-blocks-and-partition
5350         when darwin_emit_unwind_label is used.
5351
5352 2009-10-21  Eric Botcazou  <ebotcazou@adacore.com>
5353
5354         * tree-vect-stmts.c (exist_non_indexing_operands_for_use_p): Tweak
5355         order of checks.
5356
5357 2009-10-20  Richard Henderson  <rth@redhat.com>
5358
5359         * tree-eh.c (lower_try_finally_copy): Do lower_eh_constructs_1
5360         before emit_post_landing_pad.
5361
5362 2009-10-20  Adam Nemet  <anemet@caviumnetworks.com>
5363
5364         * config/mips/mips.c (mips_binary_cost): Add new argument speed.
5365         Use when calling rtx_costs.
5366         (mips_rtx_costs): Fix formatting.  Use argument speed rather than the
5367         global optimize_size.  Pass speed to mips_binary_cost.
5368
5369 2009-10-20  Jakub Jelinek  <jakub@redhat.com>
5370
5371         * config/rs6000/rs6000.c (def_builtin): Set TREE_READONLY instead
5372         of TREE_CONSTANT.
5373
5374 2009-10-20  Richard Sandiford  <rdsandiford@googlemail.com>
5375
5376         * rtl.h (simplify_replace_fn_rtx): Declare.
5377         (wrap_constant, unwrap_constant): Delete.
5378         * cfgexpand.c (unwrap_constant, wrap_constant): Delete.
5379         (expand_debug_expr): Don't call wrap_constant.
5380         * combine.c (rtx_subst_pair): Only define for AUTO_INC_DEC.
5381         (auto_adjust_pair): Fold into...
5382         (propagate_for_debug_subst): ...here.  Only define for AUTO_INC_DEC.
5383         Just return a new value.
5384         (propagate_for_debug): Use simplify_replace_fn_rtx for AUTO_INC_DEC,
5385         otherwise use simplify_replace_rtx.
5386         * cselib.c (wrap_constant): Reinstate old definition.
5387         (cselib_expand_value_rtx_1): Don't wrap constants.
5388         * gcse.c (try_replace_reg): Don't use copy_rtx in the call to
5389         simplify_replace_rtx.
5390         (bypass_block): Fix formatting in calls to simplify_replace_rtx.
5391         * reload1.c (reload): Skip all uses for an insn before adjusting it.
5392         Use simplify_replace_rtx.
5393         * simplify-rtx.c (simplify_replace_fn_rtx): New function,
5394         adapted from...
5395         (simplify_replace_rtx): ...here.  Turn into a wrapper for
5396         simplify_replace_fn_rtx.
5397         (simplify_unary_operation): Don't unwrap CONSTs.
5398         * var-tracking.c (check_wrap_constant): Delete.
5399         (vt_expand_loc_callback): Don't call it.
5400         (vt_expand_loc): Likewise.
5401
5402 2009-10-20  Pascal Obry  <obry@adacore.com>
5403             Eric Botcazou  <ebotcazou@adacore.com>
5404
5405         * config/i386/cygming.h (DWARF_FRAME_REGNUM): Add enclosing parens.
5406
5407 2009-10-20  Michael Matz  <matz@suse.de>
5408
5409         * loop-invariant.c (create_new_invariant): Use different magic number.
5410
5411 2009-10-20  Richard Earnshaw  <rearnsha@arm.com>
5412
5413         PR target/39247
5414         * arm.c (arm_override_options): Forcibly disable hot/cold block
5415         partitioning.
5416
5417 2009-10-20  Alexandre Oliva  <aoliva@redhat.com>
5418
5419         PR debug/41739
5420         * haifa-sched.c (try_ready): Skip debug deps updating speculation
5421         status.
5422
5423 2009-10-20  Richard Guenther  <rguenther@suse.de>
5424
5425         * ggc-page.c: Include cfgloop.h.
5426         (struct max_alignment): Drop long double, add void *.
5427         (extra_order_size_table): Add low non-power-of-two multiples
5428         of MAX_ALIGNMENT.  Drop small type-based entries, add
5429         tree_type, cgraph_node and loop.
5430         * alloc-pool.c (struct allocation_object_def): Drop long double
5431         aligning element.
5432
5433 2009-10-20  Jakub Jelinek  <jakub@redhat.com>
5434
5435         PR debug/41340
5436         * loop-invariant.c (calculate_loop_reg_pressure): Don't count regs
5437         referenced just in DEBUG_INSNs.
5438
5439 2009-10-20  Richard Guenther  <rguenther@suse.de>
5440
5441         PR lto/41761
5442         * gimple.c (gimple_register_type): Make sure we register
5443         the types main variant first.
5444
5445 2009-10-20  Richard Guenther  <rguenther@suse.de>
5446
5447         * gimple.c (gimple_types_compatible_p): Simplify.  Move
5448         cheap checks before hashtable queries.  Add checks for
5449         TYPE_NONALIASED_COMPONENT and DECL_NONADDRESSABLE_P.
5450
5451 2009-10-20  Eric Botcazou  <ebotcazou@adacore.com>
5452
5453         * tree-sra.c (build_ref_for_offset_1) <RECORD_TYPE>: Skip fields
5454         without size or with size that can't be represented as a host integer.
5455
5456 2009-10-20  Alexandre Oliva  <aoliva@redhat.com>
5457
5458         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't regard
5459         the removal of a debug stmt as a significant change.
5460
5461 2009-10-20  Wolfgang Gellerich  <gellerich@de.ibm.com>
5462
5463         * config/s390/s390.md: Added agen condition to operand
5464         forwarding bypasses.  Added bypass for early address generation
5465         use of int results.  Updated comments.
5466
5467 2009-10-20  Stefan Dösinger  <stefan@codeweavers.com>
5468
5469         * config/i386/i386.c: Remove signal.h #include.
5470
5471 2009-10-20  Jie Zhang  <jie.zhang@analog.com>
5472
5473         * simplify-rtx.c (simplify_const_unary_operation): Handle SS_ABS.
5474         * doc/rtl.texi: Document ss_abs.
5475
5476 2009-10-19  Jakub Jelinek  <jakub@redhat.com>
5477
5478         * c-common.c (c_parse_error): Handle CPP_UTF8STRING.
5479         * c-lex.c (c_lex_with_flags): Likewise.  Test C_LEX_STRING_NO_JOIN
5480         instead of C_LEX_RAW_STRINGS.
5481         (lex_string): Handle CPP_UTF8STRING.
5482         * c-parser.c (c_parser_postfix_expression): Likewise.
5483         * c-pragma.h (C_LEX_RAW_STRINGS): Rename to ...
5484         (C_LEX_STRING_NO_JOIN): ... this.
5485
5486 2009-10-19  Anatoly Sokolov  <aesok@post.ru>
5487
5488         * config/cris/cris.c (cris_function_value, cris_libcall_value,
5489         cris_function_value_regno_p): New functions.
5490         (cris_promote_function_mode): Update comment.
5491         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
5492         * config/cris/cris.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
5493         (FUNCTION_VALUE_REGNO_P): Redefine, use cris_function_value_regno_p.
5494         * config/cris/cris-protos.h (cris_function_value_regno_p): Declare.
5495
5496 2009-10-19  Jakub Jelinek  <jakub@redhat.com>
5497
5498         * unwind-dw2.c (execute_stack_op): Fix operand order for
5499         DW_OP_le, DW_OP_ge, DW_OP_lt and DW_OP_gt.
5500
5501 2009-10-19  Eric Botcazou  <ebotcazou@adacore.com>
5502
5503         * gimple-low.c (struct lower_data): Add cannot_fallthru field.
5504         (lower_stmt) <GIMPLE_BIND>: Add comment.
5505         <GIMPLE_COND, GIMPLE_GOTO, GIMPLE_SWITCH>: Set cannot_fallthru to true
5506         and return.
5507         <GIMPLE_RETURN>: Remove the statement if cannot_fallthru is set.
5508         Otherwise lower it and set cannot_fallthru to true.
5509         <GIMPLE_TRY>: Update cannot_fallthru for GIMPLE_TRY_FINALLY and return.
5510         <GIMPLE_CATCH, GIMPLE_EH_FILTER>: Set cannot_fallthru to false.
5511         <GIMPLE_CALL>: Set cannot_fallthru to false for BUILT_IN_SETJMP and
5512         to true for a noreturn call.  Do not remove statements.
5513         <GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TASK>: Set cannot_fallthru to false.
5514         Set cannot_fallthru to false on function exit.
5515         (gimple_stmt_may_fallthru) <GIMPLE_SWITCH>: Really return false.
5516         <GIMPLE_ASSIGN>: Remove.
5517
5518 2009-10-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5519
5520         * config/s390/s390.c (s390_z10_optimize_cmp): Don't touch FP compares.
5521
5522 2009-10-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5523
5524         * config/s390/s390.c (s390_z10_optimize_cmp): Use
5525         next/prev_active_insn to skip DEBUG_INSNs as well.
5526
5527 2009-10-19  Joseph Myers  <joseph@codesourcery.com>
5528
5529         * config/arm/arm.c (output_move_neon): Use DImode in call to
5530         adjust_address.
5531
5532 2009-10-19  Matthias Klose  <doko@ubuntu.com>
5533
5534         PR target/40134
5535         * config.gcc (arm*-*-linux-*eabi): Use config/t-slibgcc-libgcc.
5536
5537 2009-10-19  Jakub Jelinek  <jakub@redhat.com>
5538
5539         * cfgexpand.c (expand_debug_expr): Fail if bitpos < 0 for non-MEM op0.
5540
5541 2009-10-17  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
5542
5543         PR middle-end/41738
5544         * optabs.c (expand_binop): Make mode of shift count expression mode
5545         of shift count not target.
5546         Remove indent nit.
5547
5548 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
5549
5550         * tree-nested.c (convert_nonlocal_reference_stmt) <GIMPLE_COND>: New
5551         case.  Force using values to replace references within the statement.
5552         (convert_local_reference_stmt): Likewise.
5553
5554 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
5555
5556         * gimple-low.c (lower_stmt) <GIMPLE_CALL>: If the call is noreturn,
5557         remove a subsequent GOTO or RETURN statement.
5558
5559 2009-10-17  Andy Hutchinson  <hutchinsonandy@aim.com>
5560
5561         * config/avr.md (*movqi): Add zero as equally preferable constraint
5562         as general register.
5563         (*movhi): Ditto.
5564
5565 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
5566
5567         * print-tree.c (print_node): Fix string for DECL_STRUCT_FUNCTION.
5568
5569 2009-10-17  Richard Guenther  <rguenther@suse.de>
5570
5571         * lto-streamer-in.c (lto_input_location): Try to reuse previous maps.
5572
5573 2009-10-17  Richard Guenther  <rguenther@suse.de>
5574
5575         * lto-streamer-in.c (input_gimple_stmt): Fixup FIELD_DECL
5576         operands in COMPONENT_REFs.
5577
5578 2009-10-17  Anatoly Sokolov  <aesok@post.ru>
5579
5580         * targhooks.c (default_libcall_value): Don't use LIBCALL_VALUE macro
5581         if not defined. Change type of second argument to const_rtx.
5582         (default_function_value): Call gcc_unreachable if FUNCTION_VALUE
5583         macro not defined.
5584         * targhooks.h (default_libcall_value): Update prototype.
5585         * target.h (struct gcc_target): Change type of second argument of
5586         libcall_value to const_rtx.
5587         * config/arm/arm.c (arm_libcall_value): Change type of second argument
5588         to const_rtx.
5589         (arm_libcall_uses_aapcs_base): Change type of argument to const_rtx.
5590         * doc/tm.texi (TARGET_LIBCALL_VALUE):  Revise documentation.
5591
5592 2009-10-17  Jakub Jelinek  <jakub@redhat.com>
5593
5594         PR debug/40521
5595         * debug.h (struct gcc_debug_hooks): Add assembly_start hook.
5596         * cgraphunit.c (cgraph_optimize): Call it.
5597         * dwarf2out.c (dwarf2out_init): Move .cfi_sections printing into...
5598         (dwarf2out_assembly_start): ... here.  New hook.
5599         (dwarf2out_debug_hooks): Add dwarf2out_assembly_start.
5600         * debug.c (do_nothing_debug_hooks): Do nothing for assembly_start
5601         hook.
5602         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
5603         * sdbout.c (sdb_debug_hooks): Likewise.
5604         * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_assembly_start.
5605         (vmsdbgout_assembly_start): New hook.
5606
5607 2009-10-17  Alexandre Oliva  <aoliva@redhat.com>
5608
5609         * rtl.h (RTL_LOCATION): Fix typo.
5610
5611 2009-10-17  Alexandre Oliva  <aoliva@redhat.com>
5612
5613         * print-rtl.c (print_rtx): Print locators in asm_operands
5614         and asm_input.
5615
5616 2009-10-17  Alexandre Oliva  <aoliva@redhat.com>
5617
5618         PR debug/41535
5619         * sched-deps.c (depl_on_debug_p): New.
5620         (attach_dep_link): Reject debug deps before nondebug deps.
5621         (add_to_deps_list): Insert debug deps after nondebug deps.
5622         (sd_lists_empty_p): Stop at first nonempty list.  Disregard debug
5623         deps.
5624         (sd_add_dep): Do not reject debug deps.
5625         (add_insn_mem_dependence): Don't count debug deps.
5626         (remove_from_deps): Likewise.
5627         (sched_analyze_2): Set up mem deps on debug insns.
5628         (sched_analyze_insn): Record reg uses for deps on debug insns.
5629         * haifa-sched.c (schedule_insn): Reset deferred debug insn.  Don't
5630         try_ready nondebug insn after debug insn.
5631         * ddg.c (create_ddg_dep_from_intra_loop_link,
5632         create_ddg_dep_no_link): Don't reject debug deps.
5633
5634 2009-10-16  Richard Guenther  <rguenther@suse.de>
5635
5636         * lto-symtab.c (merge_incomplete_and_complete_type): Remove.
5637         (maybe_merge_incomplete_and_complete_type): Likewise.
5638         (lto_symtab_merge): Do not call them.  Do not warn for
5639         complete vs. incomplete compatible types.
5640         (lto_symtab_merge_decls_2): Simplify.
5641         * gimple.c (gimple_force_type_merge): Remove.
5642         (gimple_types_compatible_p): Make it static.
5643         * gimple.h (gimple_force_type_merge): Remove.
5644         (gimple_types_compatible_p): Likewise.
5645
5646 2009-10-16  Jakub Jelinek  <jakub@redhat.com>
5647
5648         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Cast
5649         DWARF2_ADDR_SIZE to int to avoid signed vs. unsigned warnings.
5650
5651 2009-10-16  Richard Guenther  <rguenther@suse.de>
5652
5653         PR tree-optimization/41728
5654         * tree-ssa-dom.c (optimize_stmt): Mark the stmt modified
5655         if fold_stmt did anything.
5656
5657 2009-10-16  Richard Guenther  <rguenther@suse.de>
5658
5659         PR lto/41715
5660         * lto-streamer-in.c (lto_input_tree_ref): Revert last change.
5661         (maybe_fixup_handled_component): New function.
5662         (input_gimple_stmt): Fixup mismatched decl replacements.
5663
5664 2009-10-16  Richard Guenther  <rguenther@suse.de>
5665
5666         PR lto/41713
5667         * lto-streamer-out.c (lto_output_tree_ref): Handle DEBUG_EXPR_DECL
5668         the same as VAR_DECL.
5669
5670 2009-10-16  Richard Guenther  <rguenther@suse.de>
5671
5672         * gimple.c (iterative_hash_gimple_type): For integer types
5673         also hash their minimum and maximum values and the string flag.
5674         For array types hash their domain and the string flag.
5675
5676 2009-10-16  Richard Guenther  <rguenther@suse.de>
5677
5678         * gimple.c (gimple_types_compatible_p): Restrict completing
5679         types to record or unions.  Simplify completion.
5680         Do not merge records or unions with different
5681         TYPE_STRUCTURAL_EQUALITY_P tag.
5682         (iterative_hash_gimple_type): Restrict non-recursing into
5683         pointer targets for records and unions.
5684
5685 2009-10-15  Jakub Jelinek  <jakub@redhat.com>
5686
5687         PR debug/41717
5688         * cfgexpand.c (expand_debug_expr): Handle CONJ_EXPR.
5689         * dwarf2out.c (mem_loc_descriptor): Don't handle
5690         POST_INT/POST_DEC/POST_MODIFY like SUBREG.  For SUBREG
5691         punt if it is not lowpart subreg or if inner mode isn't
5692         MODE_INT.
5693
5694 2009-10-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5695
5696         * config/s390/s390.c (s390_z10_optimize_cmp): Skip notes when
5697         investigating previous or next insns.
5698
5699 2009-10-16  Eric Botcazou  <ebotcazou@adacore.com>
5700
5701         * tree-sra.c (build_ref_for_offset_1): Update comment.
5702
5703 2009-10-16  Wolfgang Gellerich  <gellerich@de.ibm.com>
5704
5705         * config/s390/s390.md (atype): Added missing values.
5706
5707 2009-10-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5708
5709         PR target/41702
5710         * pa.md (casesi): Use sign extended index in call to gen_casesi64p.
5711         (casesi64p): Update pattern to reflect above.
5712
5713 2009-10-15  Steve Ellcey  <sje@cup.hp.com>
5714
5715         PR rtl-optimization/41697
5716         * sel-sched-ir.h (_eligible_successor_edge_p): Check successor count.
5717
5718 2009-10-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
5719
5720         PR target/23983
5721         * config/rs6000/predicates.md: Update copyright year.
5722         * config/rs6000/altivec.md: Ditto.
5723
5724         * config/rs6000/t-rs6000 (TM_H): Add rs6000-builtin.def.
5725         (MD_INCLUDES): Add a2.md.
5726
5727         * config/rs6000/rs6000.c (rs6000_builtin_decls): Change
5728         RS6000_BUILTIN_COUNT to MAX_RS6000_BUILTINS.
5729         (builtin_classify): New static vector to classify various builtins
5730         to get the tree attributes correct.
5731         (def_builtin): Set the attributes of builtins based on what the
5732         builtin does (i.e. memory operation, floating point, saturation
5733         need special attributes, others are pure functions).
5734
5735         * config/rs6000/rs6000.h (enum rs6000_btc): New enum to classify
5736         the builtins.
5737         (enum rs6000_builtins): Include rs6000-builtin.def to define the
5738         builtins.  Change the end marker to MAX_RS6000_BUILTINS from
5739         RS6000_BUILTIN_COUNT.
5740         (rs6000_builtin_decls): Change RS6000_BUILTIN_COUNT to
5741         MAX_RS6000_BUILTINS.
5742
5743         * config/rs6000/rs6000-builtin.def: New file that combines the
5744         builtin enumeration name and attributes.
5745
5746 2009-10-15  H.J. Lu  <hongjiu.lu@intel.com>
5747
5748         * config/i386/linux.h (ASM_SPEC): Add --32.
5749
5750 2009-10-15  Jakub Jelinek  <jakub@redhat.com>
5751
5752         * dwarf2out.c (dwarf_tag_name): Handle DW_TAG_rvalue_reference_type
5753         and DW_TAG_template_alias.
5754         (dwarf_attr_name): Handle DW_AT_main_subprogram,
5755         DW_AT_data_bit_offset, DW_AT_const_expr, DW_AT_enum_class,
5756         DW_AT_linkage_name, DW_AT_GNU_guarded_by, DW_AT_GNU_pt_guarded_by,
5757         DW_AT_GNU_guarded, DW_AT_GNU_pt_guarded, DW_AT_GNU_locks_excluded,
5758         DW_AT_GNU_exclusive_locks_required, DW_AT_GNU_shared_locks_required
5759         and DW_AT_GNU_odr_signature.
5760         (dwarf_form_name): Handle DW_FORM_sec_offset, DW_FORM_exprloc,
5761         DW_FORM_flag_present and DW_FORM_ref_sig8.
5762         (output_signature): Only print name on the first byte.
5763         (output_die): Likewise for dw_val_class_data8.
5764
5765 2009-10-15  Alexander Monakov  <amonakov@ispras.ru>
5766
5767         * doc/invoke.texi: Clarify that most optimizations are not enabled
5768         without -O.
5769
5770 2009-10-15  Richard Guenther  <rguenther@suse.de>
5771
5772         PR lto/41668
5773         * gimple.c (compare_type_names_p): Handle anonymous names
5774         differently based on new mode argument.
5775         (gimple_types_compatible_p): For structs also compare the tags.
5776         (iterative_hash_type_name): Rename to ...
5777         (iterative_hash_name): ... this.  Hash all names.
5778         (iterative_hash_gimple_type): Fix hashing the struct tag of
5779         pointer targets.  Hash field decl names.
5780
5781 2009-10-15  Richard Guenther  <rguenther@suse.de>
5782
5783         PR lto/41669
5784         * gimple.c (gimple_get_alias_set): Avoid recursing on
5785         invalid type topology.
5786
5787 2009-10-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5788
5789         * config/spu/spu.c (get_branch_target): Use extract_asm_operands.
5790
5791 2009-10-15  Richard Guenther  <rguenther@suse.de>
5792
5793         * tree.c (free_lang_data_in_decl): Free DECL_FCONTEXT.
5794
5795 2009-10-15  Jakub Jelinek  <jakub@redhat.com>
5796
5797         * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Don't
5798         add --with-tune{,-32,-64} configured default for -mtune if explicit
5799         -mcpu is used.
5800
5801 2009-10-14  Daniel Gutson  <dgutson@codesourcery.com>
5802
5803         * config/arm/neon.md (neon_vshll_n<mode>): Checking Bounds fixed.
5804
5805 2009-10-14  DJ Delorie  <dj@redhat.com>
5806
5807         * config/h8300/h8300.c (F): New.
5808         (Fpa): New.
5809         (h8300_emit_stack_adjustment): Call them.
5810         (push): Likewise.
5811         (h8300_push_pop): Likewise.
5812         (h8300_expand_prologue): Likewise.
5813         * config/h8300/h8300.h (DWARF2_DEBUGGING_INFO): Define.
5814         (MUST_USE_SJLJ_EXCEPTIONS): Define.
5815         (INCOMING_RETURN_ADDR_RTX): Define.
5816         (INCOMING_FRAME_SP_OFFSET): Define.
5817         (DWARF_CIE_DATA_ALIGNMENT): Define.
5818
5819 2009-10-14  Jakub Jelinek  <jakub@redhat.com>
5820
5821         * stor-layout.c (place_field): Don't emit -Wpadded warnings for
5822         fields in builtin structs.
5823         (finalize_record_size): Likewise.
5824
5825 2009-10-14  Richard Guenther  <rguenther@suse.de>
5826
5827         * gimple.c (gtc_ob): New global.
5828         (struct type_pair_d): Replace pointers with type UIDs.
5829         (type_pair_hash): Adjust.
5830         (type_pair_eq): Likewise.
5831         (lookup_type_pair): Likewise.  Allocate from an obstack.
5832         (gimple_force_type_merge): Adjust.
5833         (gimple_types_compatible_p): Likewise.
5834         (free_gimple_type_tables): Free the obstack.
5835
5836 2009-10-14  Jakub Jelinek  <jakub@redhat.com>
5837
5838         * tree-parloops.c (separate_decls_in_region_debug_bind): Drop debug
5839         stmts setting DEBUG_EXPR_DECLs.
5840
5841         * cfgexpand.c (expand_debug_expr): Ignore zero-length bitfields.
5842         Don't crash if mode1 is VOIDmode.
5843
5844 2009-09-26  Vladimir Makarov  <vmakarov@redhat.com>
5845
5846         * params.def (PARAM_IRA_LOOP_RESERVED_REGS): New.
5847         * params.h (IRA_LOOP_RESERVED_REGS): New.
5848         * tree-pass.h (pass_subregs_of_mode_init,
5849         pass_subregs_of_mode_finish): Remove.
5850         * passes.c (pass_subregs_of_mode_init,
5851         pass_subregs_of_mode_finish): Remove.
5852         (pass_reginfo_init): Move before loop optimizations.
5853         * config/i386/i386.h (STACK_REG_COVER_CLASS): Define.
5854         * common.opt (fira-loop-pressure): New.
5855         * toplev.h (flag_ira_loop_pressure): New.
5856         * rtl.h (init_subregs_of_mode, finish_subregs_of_mode): New externals.
5857         * reginfo.c (init_subregs_of_mode, finish_subregs_of_mode):
5858         Make external and void type functions.
5859         (gate_subregs_of_mode_init, pass_subregs_of_mode_init,
5860         pass_subregs_of_mode_finish): Remove.
5861         * ira-costs.c (init_costs): Call init_subregs_of_mode.
5862         * regmove.c: Include ira.h.
5863         (regmove_optimize): Call ira_set_pseudo_classes after IRA based
5864         register pressure calculation in loops.
5865         * loop-invariant.c: Include REGS_H and ira.h.
5866         (struct loop_data): New members max_reg_pressure, regs_ref, and
5867         regs_live.
5868         (struct invariant): New member orig_regno.
5869         (curr_loop): New variable.
5870         (find_exits): Initialize regs_ref and regs_live.
5871         (create_new_invariant): Initialize orig_regno.
5872         (get_cover_class_and_nregs): New.
5873         (get_inv_cost): Make aregs_needed an array.  Use regs_needed as an
5874         array.  Add code for flag_ira_loop_pressure.
5875         (gain_for_invariant): Make new_regs an array.  Add code for
5876         flag_ira_loop_pressure.
5877         (best_gain_for_invariant): Ditto.
5878         (set_move_mark): New parameter gain.  Use it for debugging output.
5879         (find_invariants_to_move): Make regs_needed and new_regs an array.
5880         Add code for flag_ira_loop_pressure.
5881         (move_invariant_reg): Set up orig_regno.
5882         (move_invariants): Set up reg classes for pseudos for
5883         flag_ira_loop_pressure.
5884         (free_loop_data): Clear regs_ref and regs_live.
5885         (curr_regs_live, curr_reg_pressure, regs_set, n_regs_set,
5886         get_regno_cover_class, change_pressure, mark_regno_live,
5887         mark_regno_death, mark_reg_store, mark_reg_clobber,
5888         mark_reg_death, mark_ref_regs, calculate_loop_reg_pressure): New.
5889         (move_loop_invariants): Calculate pressure.  Initialize curr_loop.
5890         * ira.c (ira): Call ira_set_pseudo_classes after IRA based
5891         register pressure calculation in loops if new regs were added.
5892         Call finish_subregs_of_mode.
5893         * opts.c (decode_options): Set up flag_ira_loop_pressure.
5894         * Makefile.in (loop-invariant.o): Add ira.h.
5895         (regmove.o): Ditto.
5896         * doc/invoke.texi (-fira-loop-pressure, ira-loop-reserved-regs):
5897         Describe.
5898         * doc/tm.texi (STACK_REG_COVER_CLASS): Describe.
5899
5900 2009-10-14  Richard Guenther  <rguenther@suse.de>
5901
5902         * lto-symtab.c (lto_symtab_compatible): Fold in ...
5903         (lto_symtab_merge): ... here.  Rewrite both to take the
5904         prevailing and a to-be-merged entry and to queue diagnostics properly.
5905         (lto_symtab_resolve_replaceable_p): New predicate for
5906         symbol resolution.
5907         (lto_symtab_resolve_can_prevail_p): Likewise.
5908         (lto_symtab_resolve_symbols): Rewrite.  Fold in code that
5909         handles merging commons by choosing the largest decl.  Fold
5910         in code that gives ODR errors.
5911         (lto_symtab_merge_decls_2): Simplify a lot.  Emit queued
5912         diagnostics here.
5913         (lto_symtab_merge_decls_1): Re-structure.  Deal with the
5914         case of no prevailing decl here.  Diagnose mismatches
5915         in object types here.  Drop all but the prevailing decls.
5916         (lto_symtab_prevailing_decl): Return the single prevailing decl.
5917         * lto-streamer-in.c (lto_input_tree_ref): Deal with
5918         VIEW_CONVERT_EXPRs in decl slots.  Unshare the tree in this case.
5919
5920 2009-10-14  Richard Guenther  <rguenther@suse.de>
5921
5922         PR lto/41521
5923         * lto-streamer-in.c (input_bb): Replace debug stmts with
5924         nops instead of dropping them.
5925
5926 2009-10-14  Nick Clifton  <nickc@redhat.com>
5927
5928         * gcc/doc/extended.texi: Replace the dash character with @minus{}
5929         in situations where it is being used as a minus symbol.
5930         * gcc/doc/tm.texi: Likewise.
5931         * gcc/doc/md.texi: Likewise.
5932
5933 2009-10-14  Jakub Jelinek  <jakub@redhat.com>
5934
5935         PR preprocessor/41543
5936         * input.h (BUILTINS_LOCATION): Change to 1 from 2.
5937         Assert BUILTINS_LOCATION < RESERVED_LOCATION_COUNT.
5938         * tree.c: Include intl.h.
5939         (expand_location): Handle BUILTINS_LOCATION.
5940         * Makefile.in (tree.o): Depend on intl.h.
5941
5942         PR debug/41695
5943         * dwarf2out.c (dwarf2out_var_location): Always clear
5944         last_postcall_label when changing last_label.
5945
5946 2009-10-14  Pascal Obry  <obry@adacore.com>
5947
5948         * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION): Add -E.
5949         (process_command): Handle -E as done with -c and -S.  Do not add
5950         the target executable suffix to the output file when -E is used.
5951         (main): Adjust error message accordingly.
5952
5953 2009-10-14  Alexandre Oliva  <aoliva@redhat.com>
5954
5955         PR debug/41343
5956         PR debug/41447
5957         PR debug/41264
5958         PR debug/41338
5959         * tree.c (tree_node_structure_for_code): DEBUG_EXPR_DECL uses
5960         decl with rtl.
5961         (tree_code_size): Likewise.
5962
5963 2009-10-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5964
5965         * builtins.c (fold_builtin_1): Support complex "arc" functions.
5966         * real.h (HAVE_mpc_arc): Define.
5967
5968 2009-10-14  Kaz Kojima  <kkojima@gcc.gnu.org>
5969
5970         * config/sh/sh.c (TARGET_BUILTIN_DECL): Define.
5971         (struct builtin_description): Add fndecl field.
5972         (bdesc): Remove const qualifier.  Update initializer.
5973         (sh_media_init_builtins): Remove const qualifier for d.  Record
5974         the result of add_builtin_function to the fndecl field.
5975         (sh_builtin_decl): New.
5976         (sh_media_builtin_decl): New.
5977
5978 2009-10-14  Hans-Peter Nilsson  <hp@axis.com>
5979
5980         PR target/38948
5981         * config/cris/cris.h (SECONDARY_RELOAD_CLASS): Handle reload
5982         requests between special registers.
5983
5984 2009-10-13  Eric Botcazou  <ebotcazou@adacore.com>
5985
5986         * dwarf2out.c (mem_loc_descriptor): Accept UNGT as well.
5987
5988 2009-10-13  Richard Henderson  <rth@redhat.com>
5989
5990         PR tree-optimization/41377
5991         * tree-eh.c (unsplit_eh): Propagate degenerate PHIs.
5992         (cleanup_empty_eh_merge_phis): New change_region parameter;
5993         pass it on to redirect_eh_edge_1.  Update callers.
5994         (cleanup_empty_eh_unsplit): Don't require an existing EH label
5995         at the destination block.
5996
5997 2009-10-13  Basile Starynkevitch  <basile@starynkevitch.net>
5998
5999         * passes.c (register_pass): Replaced gcc_unreachable by
6000         fatal_error on failure. Mentions plugins in comments & messages.
6001
6002 2009-10-13  Jakub Jelinek  <jakub@redhat.com>
6003
6004         PR target/41693
6005         * rtl.h (DEBUG_EXPR_TREE_DECL): Define.
6006         * sched-vis.c (print_value): Use it.
6007         * cselib.c (cselib_hash_rtx): Likewise.
6008         * print-rtl.c (print_rtx): Likewise.
6009         * cfgexpand.c (expand_debug_rtx): Likewise.
6010         * var-tracking.c (vt_expand_loc_callback): Likewise.
6011
6012 2009-10-13  Richard Guenther  <rguenther@suse.de>
6013
6014         PR lto/41565
6015         * opts.c (handle_option): Split out code to handle setting
6016         the options flag var ...
6017         (set_option): ... here.
6018         * opts.h (set_option): Declare.
6019         * lto-opts.c (register_user_option_p): Include -fexceptions
6020         and all position independent code variants.
6021         (handle_common_option): Remove.
6022         (lto_reissue_options): Use set_option.
6023
6024 2009-10-13  Martin Jambor  <mjambor@suse.cz>
6025
6026         PR tree-optimization/41661
6027         * ipa-prop.c (compute_complex_pass_through): Allow only operations
6028         that are tcc_comparisons or do not change the type in any
6029         un-usleless way.
6030         * ipa-cp.c (ipcp_lattice_from_jfunc): Request boolean type when
6031         folding tcc_comparison operations.
6032
6033 2009-10-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6034
6035         * config/s390/s390.c (s390_encode_section_info): Handle BLKmode
6036         properly.
6037
6038 2009-10-12  Alexandre Oliva  <aoliva@redhat.com>
6039
6040         PR debug/41343
6041         PR debug/41447
6042         PR debug/41264
6043         PR debug/41338
6044         * tree.def (DEBUG_EXPR_DECL): New.
6045         * rtl.def (DEBUG_EXPR): New.
6046         * gengtype.c (adjust_field_rtx_def): Handle it.
6047         * tree-ssa.c (propagate_var_def_into_debug_stmts): Rename to...
6048         (insert_debug_temp_for_var_def): ... this.  Drop support for
6049         moving.  Take iterator for def stmt; insert debug stmt before it.
6050         Scan early for use count and kind in debug stmts.
6051         (propagate_defs_into_debug_stmts): Rename to...
6052         (insert_debug_temps_for_defs): ... this.  Likewise.
6053         * tree.h (DEBUG_TEMP_UID): New.
6054         * tree.c (next_debug_decl_uid): New.
6055         (make_node_stat): Count debug decls separately.
6056         (copy_node_stat): Likewise.
6057         * cfgexpand.c (expand_debug_expr): Handle DEBUG_EXPR_DECL.
6058         * var-tracking.c (dv_is_decl_p): Recognize it.
6059         (VALUE_RECURSED_INTO): Apply to DEBUG_EXPRs too.
6060         (track_expr_p): Track expanded DEBUG_EXPR_DECLs.
6061         (vt_expand_loc_callback): Expand DEBUG_EXPRs.
6062         (emit_note_insn_var_location): Don't emit notes for DEBUG_EXPR_DECLs.
6063         * cselib.c (rtx_equal_for_cselib_p): Handle DEBUG_EXPR.
6064         (cselib_hash_rtx): Likewise.
6065         (cselib_expand_value_rtx_1): Use callback for DEBUG_EXPR.
6066         * tree-ssa-operands.c (get_expr_operands): Skip DEBUG_EXPR_DECLs in
6067         debug bind stmts.
6068         * emit-rtl.c (verify_rtx_sharing): Handle DEBUG_EXPR and VALUE.
6069         (copy_rtx_if_shared_1, reset_used_flags, set_used_flags): Likewise.
6070         * rtl.c (copy_rtx): Likewise.
6071         (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_EXPR.
6072         * print-rtl.c (print_rtx): Likewise.
6073         * sched-vis.c (print_value): Likewise.
6074         (print_insn): Handle DEBUG_EXPR_DECL.
6075         * tree-dump.c (dequeue_and_dump): Likewise.
6076         * tree-pretty-print.c (dump_decl_name, dump_generic_node): Likewise.
6077         * gimple-iterator (gsi_replace): Check for same lhs.
6078         (gsi_remove): Insert debug temps.
6079         * tree-ssa-loop-im.c (rewrite_reciprocal): Replace with same lhs.
6080         (move_computations_stmt): Drop explicit propagation into debug stmts.
6081         (rewrite_bittest): Likewise.  Use gsi_remove for propagation.
6082         * tree-ssa-reassoc.c (rewrite_expr_tree, linearize_expr): Likewise.
6083         * tree-ssa-sink.c (statement_sink_location): Likewise.
6084         * tree-ssa-forwprop (forward_propagate_addr_expr): Likewise.
6085         * tree-ssanames.c (release_ssa_name): Adjust for rename.
6086         * tree-flow.h: Likewise.
6087         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Don't mark
6088         debug temps without values.
6089         (eliminate_unnecessary_stmts): Don't discard just-inserted
6090         debug stmts.
6091
6092 2009-10-12  Hans-Peter Nilsson  <hp@axis.com>
6093
6094         PR target/26515
6095         * config/cris/cris.md (andu): Check that operand 1 is one of the
6096         general registers.  Fix typo in head comment.
6097
6098 2009-10-12  Stefan Dösinger  <stefan@codeweavers.com>
6099
6100         * config/i386/i386.md (vswapmov): New.
6101         * config/i386/i386.c (ix86_handle_fndecl_attribute): New.
6102         (ix86_function_ms_hook_prologue): New.
6103         (ix86_expand_prologue): Handle ms_hook_prologue attribute.
6104         * configure.ac: Test for swap suffix support in as.
6105         * configure: Rebuild.
6106
6107 2009-10-12  Jakub Jelinek  <jakub@redhat.com>
6108
6109         PR target/41680
6110         * config/i386/i386.md (split after *testqi_ext_3_rex64): Only narrow
6111         paradoxical subregs to prevent partial register stalls if the inner
6112         mode is integer mode.
6113
6114 2009-10-12  Uros Bizjak  <ubizjak@gmail.com>
6115
6116         * config/i386/i386.md (*setcc_<mode>_2): Remove insn pattern.
6117
6118 2009-10-12  Dodji Seketeli  <dodji@redhat.com>
6119
6120         PR c++/41570
6121         * gcc/dwarf2out.c (template_parameter_pack_die,
6122         gen_formal_parameter_pack_die): Use add_name_and_src_coords_attributes.
6123
6124 2009-10-12  Alexandre Oliva  <aoliva@redhat.com>
6125
6126         PR debug/41616
6127         * tree-into-ssa.c (insert_phi_nodes_for): Build debug bind stmts
6128         on updates too.
6129         (maybe_register_def): Likewise.  Take stmt iterator.
6130         (rewrite_update_stmt): Take stmt iterator and pass it on.
6131         (rewrite_update_enter_block): Pass stmt iterator.
6132
6133 2009-10-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6134
6135         * config/spu/spu.c (TARGET_BUILTIN_DECL): Define.
6136         (spu_builtin_decl): New function.
6137
6138 2009-10-12  Uros Bizjak  <ubizjak@gmail.com>
6139
6140         * config/i386/i386.md (SWIM): New mode iterator.
6141         (mov<mode>cc): Macroize expander from mov{qi,hi,si,di}cc patterns
6142         using SWIM mode iterator.
6143         (x86_mov<mode>cc_0_m1): Macroize insn from x86_mov{si,di}cc_0_m1
6144         patterns using SWI48 mode iterator.
6145         (*x86_mov<mode>cc_0_m1_se):  Macroize insn from
6146         *x86_mov{si,di}cc_0_m1_se patterns using SWI48 mode iterator.
6147         (*x86_mov<mode>cc_0_m1_neg): New insn pattern.
6148         (*mov<mode>cc_noc): Macroize insn from *mov{hi,si,di}cc_noc
6149         patterns using SWI248 mode iterator.
6150         * config/i386/i386.c (ix86_expand_int_movcc): Update the call to
6151         gen_x86_movdicc_0_m1_rex64 for renamed function
6152
6153 2009-10-11  Jose Ruiz  <ruiz@adacore.com>
6154             Eric Botcazou  <ebotcazou@adacore.com>
6155
6156         PR target/33743
6157         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Define.
6158         * config/sparc/sol2-unwind.h: New file.
6159
6160 2009-10-11  Olivier Hainque  <hainque@adacore.com>
6161             Eric Botcazou  <ebotcazou@adacore.com>
6162
6163         PR target/33743
6164         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Define.
6165         * config/i386/sol2-unwind.h: New file.
6166
6167 2009-10-11  H.J. Lu  <hongjiu.lu@intel.com>
6168
6169         PR target/41665
6170         * config/i386/i386.md (addsi_1_zext): Get the proper second
6171         operand for lea.
6172
6173 2009-10-11  Richard Sandiford  <rdsandiford@googlemail.com>
6174
6175         * simplify-rtx.c (simplify_replace_rtx): Use rtx_equal_p for
6176         all OLD_RTXes, not just REGs.  Use copy_rtx to create the
6177         replacement value.
6178
6179 2009-10-11  Richard Guenther  <rguenther@suse.de>
6180
6181         * gimple.c (iterative_hash_type_name): Do not handle special
6182         anonymous names.
6183
6184 2009-10-11  Uros Bizjak  <ubizjak@gmail.com>
6185
6186         * config/i386/i386.md (*setcc_di_1): New insn_and_split pattern.
6187         (*setcc_si_1_and): Ditto.
6188         (*setcc_si_1_movzbl): Ditto.
6189         (*setcc_<mode>_2): Ditto.
6190         (*setcc_qi): Rename from *setcc_1.
6191         (*setcc_qi_slp): Rename from *setcc_2.
6192
6193         (*zero_extendqihi2_movzbw_and splitter): Use ix86_expand_clear.
6194         (*zero_extendqisi2_movzbw_and splitter): Ditto.
6195
6196         * config/i386/i386.c (ix86_expand_clear): Remove reload_completed from
6197         "if" condition, there is already assert with reload_completed present.
6198
6199 2009-10-11  Gerald Pfeifer  <gerald@pfeifer.com>
6200
6201         * plugin.c (try_init_one_plugin): Improve constness of variable err.
6202
6203 2009-10-10  Gerald Pfeifer  <gerald@pfeifer.com>
6204
6205         * doc/install.texi (Final install): Refer to
6206         http://gcc.gnu.org/bugs/ for bug reporting.
6207
6208 2009-10-10  Peter Bergner  <bergner@vnet.ibm.com>
6209
6210         * configure.ac: Add test for dci instruction.
6211         * configure: Regenerate.
6212         * config.in: Likewise.
6213         * config.gcc: Handle --with-cpu=476 and --with-cpu=476fp.
6214         * doc/invoke.texi: Add cpu_type 476 and 476fp.
6215         (-mmulhw): Add 476 to description.
6216         (-mdlmzb): Likewise.
6217         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=476.
6218         * config/rs6000/rs6000.c (processor_costs): Add ppc476_cost.
6219         (processor_target_table): Add 476 and 476fp entries.
6220         (rs6000_override_options): Use ppc476_cost for PROCESSOR_PPC476.
6221         (rs6000_issue_rate): Add CPU_PPC476.
6222         * config/rs6000/rs6000.h (ASM_CPU_476_SPEC): Define.
6223         (ASM_CPU_SPEC): Pass %(asm_cpu_476) for -mcpu=476 and -mcpu=476fp.
6224         (processor_type): Add PROCESSOR_PPC476.
6225         (EXTRA_SPECS): Add asm_cpu_476 string.
6226         * config/rs6000/rs6000.md (define_attr "type"): Add isel attribute.
6227         (define_attr "cpu"): Add ppc476.
6228         Include 476.md.
6229         Update comments for 476.
6230         (isel_signed, isel_unsigned): Change to use "isel" type attribute.
6231         * config/rs6000/vxworks.h (CPP_SPEC): Handle 464 and 476.
6232         Update copyright year.
6233         * config/rs6000/476.md: New file.
6234         * config/rs6000/40x.md: Add description for "isel" attribute.
6235         Update copyright year.
6236         * config/rs6000/440.md: Likewise.
6237         * config/rs6000/603.md: Likewise.
6238         * config/rs6000/6xx.md: Likewise.
6239         * config/rs6000/7450.md: Likewise.
6240         * config/rs6000/7xx.md: Likewise.
6241         * config/rs6000/8540.md: Likewise.
6242         * config/rs6000/cell.md: Likewise.
6243         * config/rs6000/e300c2c3.md: Likewise.
6244         * config/rs6000/e500mc.md: Likewise.
6245         * config/rs6000/mpc.md: Likewise.
6246         * config/rs6000/power4.md: Likewise.
6247         * config/rs6000/power5.md: Likewise.
6248         * config/rs6000/power6.md: Likewise.
6249         * config/rs6000/power7.md: Likewise.
6250         * config/rs6000/rios1.md: Likewise.
6251         * config/rs6000/rios2.md: Likewise.
6252         * config/rs6000/rs64.md: Likewise.
6253
6254 2009-10-10  Richard Guenther  <rguenther@suse.de>
6255
6256         PR tree-optimization/41654
6257         * tree-ssa-ifcombine.c (ifcombine_ifandif): Properly canonicalize
6258         a cond expr before calling gimple_cond_set_condition_from_tree.
6259         (ifcombine_iforif): Likewise.
6260
6261 2009-10-09  Ian Lance Taylor  <iant@google.com>
6262
6263         * configure.ac: Use AC_SEARCH_LIBS to find dlopen.
6264         * configure: Rebuild.
6265
6266 2009-10-09  Neil Vachharajani <nvachhar@google.com>
6267
6268         * doc/cpp.texi (Other Directives): Do not list #ident and #sccs as
6269         deprecated.
6270
6271 2009-10-09  Richard Guenther  <rguenther@suse.de>
6272
6273         PR lto/41638
6274         * target-def.h (TARGET_BUILTIN_DECL): Define.
6275         (TARGET_INITIALIZER): Add TARGET_BUILTIN_DECL.
6276         * target.h (struct gcc_target): Add builtin_decl target hook.
6277         * doc/tm.texi (TARGET_BUILTIN_DECL): Document.
6278         * lto-streamer-in.c (lto_get_builtin_tree): Fix handling of
6279         target builtins.
6280         * lto-streamer-out.c (lto_output_tree_pointers): Use sorry,
6281         not gcc_unreachable.
6282         (lto_output_builtin_tree): Sorry if the target does not support
6283         streaming target builtins.
6284         * config/rs6000/rs6000.c (TARGET_BUILTIN_DECL): Define.
6285         (rs6000_builtin_decl): New function.
6286         * config/i386/i386.c (TARGET_BUILTIN_DECL): Define.
6287         (ix86_builtin_decl): New function.
6288
6289 2009-10-09  Jakub Jelinek  <jakub@redhat.com>
6290
6291         PR preprocessor/41445
6292         * c-ppoutput.c (do_line_change): New function.
6293         (cb_line_change): Use it.
6294         (scan_translation_unit): Call do_line_change if
6295         avoid_paste or PREV_WHITE and token location is on a different line
6296         than print.src_line.
6297
6298         PR debug/40521
6299         * dwarf2out.c (dwarf2out_init): Test whether
6300         HAVE_GAS_CFI_SECTIONS_DIRECTIVE is non-zero instead of checking
6301         it is defined.
6302
6303         PR rtl-optimization/41646
6304         * calls.c (expand_call): For BLKmode types returned in registers
6305         avoid likely spilled hard regs in copy_blkmode_from_reg generated
6306         insns.
6307
6308 2009-10-09  Richard Guenther  <rguenther@suse.de>
6309
6310         PR tree-optimization/41634
6311         * tree-ssa-dom.c (remove_local_expressions_from_table): Assert
6312         we remove the correct elements.
6313         (optimize_stmt): Make sure to update stmt operands before
6314         optimizing redundancies.
6315
6316 2009-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6317
6318         * config/s390/s390.md ("prefetch"): Remove stcmh for prefetching.
6319
6320 2009-10-09  Richard Guenther  <rguenther@suse.de>
6321
6322         PR driver/41637
6323         * lto-wrapper.c (ltrans_output_file, flto_out, args_name): New
6324         globals.
6325         (lto_wrapper_exit): New function.
6326         (fatal): Use it.
6327         (fatal_perror): Likewise.
6328         (fork_execute): Use global args_name, do not free it.
6329         (run_gcc): Use global ltrans_output_file, flto_out, do not free them.
6330         * lto-streamer.h: Remove duplicate prototypes.
6331
6332 2009-10-09  Richard Guenther  <rguenther@suse.de>
6333
6334         * cgraph.c (cgraph_create_edge): Check for NULL call_stmt
6335         before calling stmt_can_throw_external.
6336
6337 2009-10-09  Eric Botcazou  <ebotcazou@adacore.com>
6338
6339         PR tree-optimization/40071
6340         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Build a ref-all
6341         pointer if the original data reference doesn't conflict with the
6342         created vector data reference.  Fix long line.
6343
6344 2009-10-09  Uros Bizjak  <ubizjak@gmail.com>
6345
6346         * config/i386/i386.md (any_div): New code iterator.
6347         (u): Handle div and udiv.
6348         (sgnprefix): Ditto.
6349         (<u>divqi3): Macroize insn from {,u}divqi3  using any_div
6350         code iterator.
6351         (lfloor<MODEF:mode><SWI48:mode>2): Macroize insn from
6352         lfloor<mode>{si,di}2 patterns using SWI48 mode iterator.
6353         (lceil<MODEF:mode><SWI48:mode>2): Macroize insn from
6354         lceil<mode>{si,di}2 patterns using SWI48 mode iterator.
6355
6356 2009-10-08  Joseph Myers  <joseph@codesourcery.com>
6357
6358         * gcc.c (main): Remove trailing "." from diagnostics.
6359
6360 2009-10-08  Cary Coutant  <ccoutant@google.com>
6361
6362         Add support for debugging with ICF (Identical Code Folding).
6363         * calls.c (debug.h): New #include.
6364         (emit_call_1): Call virtual_call_token debug hook.
6365         * common.opt (-fenable-icf-debug): New option.
6366         * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hooks (two
6367         locations in the source).
6368         (poc_label_num): New variable.
6369         (dcall_entry, vcall_entry): New typedefs.
6370         (dcall_table, vcall_table): New variables.
6371         (struct vcall_insn): New type.
6372         (vcall_insn_table): New variable.
6373         (DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION): New macros.
6374         (size_of_dcall_table): New function.
6375         (output_dcall_table): New function.
6376         (size_of_vcall_table): New function.
6377         (output_vcall_table): New function.
6378         (dwarf2out_direct_call): New function.
6379         (vcall_insn_table_hash): New function.
6380         (vcall_insn_table_eq): New function.
6381         (dwarf2out_virtual_call_token): New function.
6382         (dwarf2out_virtual_call): New function.
6383         (dwarf2out_init): Allocate new tables and sections.
6384         (prune_unused_types): Mark DIEs referenced from direct call table.
6385         (dwarf2out_finish): Output direct and virtual call tables.
6386         * final.c (final_scan_insn): Call direct_call and virtual_call
6387         debug hooks.
6388         * debug.h (struct gcc_debug_hooks): Add direct_call,
6389         virtual_call_token, virtual_call hooks.
6390         (debug_nothing_uid): New function.
6391         * debug.c (do_nothing_debug_hooks): Add dummy entries for new hooks.
6392         (debug_nothing_uid): New function.
6393         * dbxout.c (dbx_debug_hooks): Add dummy entries for new hooks.
6394         (xcoff_debug_hooks): Likewise.
6395         * sdbout.c (sdb_debug_hooks): Likewise.
6396         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
6397         * doc/invoke.texi (-fenable-icf-debug): New option.
6398
6399 2009-10-08  Alexandre Oliva  <aoliva@redhat.com>
6400
6401         PR debug/41353
6402         * regmove.c (regmove_backward_pass): Replace src with dst in the
6403         debug insn, and check for dst before rather than after.
6404
6405 2009-10-08  Janis Johnson <janis187@us.ibm.com>
6406
6407         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove.
6408         (TARGET_DELEGITIMIZE_ADDRESS): Likewise.
6409
6410 2009-10-08  Jan Hubicka  <jh@suse.cz>
6411
6412         PR middle-end/41626
6413         * cgraphbuild.c (record_reference): When parameter DATA is NULL,
6414         do not mark cgraph nodes as needed.
6415         (record_references_in_initializer): Add new only_vars parameter.
6416         * cgraph.h (record_references_in_initializer): New parameter.
6417         * varasm.c (assemble_variable): Update call.
6418         * varpool.c (varpool_analyze_pending_decls): Always look for
6419         referenced vars.
6420
6421 2009-10-08  Anatoly Sokolov  <aesok@post.ru>
6422
6423         * config/avr/avr.c (last_insn_address) Remove variable.
6424         (expand_prologue): Don't initialise last_insn_address variable.
6425         (final_prescan_insn): Don't output insn size.
6426         * config/avr/avr.opt (msize): Remove switch.
6427         * doc/invoke.texi (AVR Options): Remove documentation of -msize
6428         switch.
6429
6430 2009-10-08  Adam Nemet  <anemet@caviumnetworks.com>
6431
6432         * combine.c (label_tick_ebb_start): Fix comment.
6433         (combine_instructions): Set label_tick and label_tick_ebb_start before
6434         calling setup_incoming_promotions.  Start them from 1.  Increment
6435         label_tick instead of deriving it from the BB index.  Rather than
6436         comparing ticks use the block from the previous iteration to decide
6437         whether to start a new EBB.  Remove empty lines before function.
6438
6439 2009-10-08  Michael Matz  <matz@suse.de>
6440
6441         PR middle-end/41573
6442         * builtins.c (fold_builtin_isascii): Use fold_build2.
6443         (fold_builtin_isdigit): Ditto.
6444         * except.c (duplicate_eh_regions_1): Tolerate NULL labels.
6445         * tree-cfg.c (struct rus_data, remove_useless_stmts_warn_notreached,
6446         remove_useless_stmts_cond, remove_useless_stmts_tf,
6447         remove_useless_stmts_tc, remove_useless_stmts_bind,
6448         remove_useless_stmts_goto, remove_useless_stmts_label,
6449         remove_useless_stmts_1, remove_useless_stmts,
6450         pass_remove_useless_stmts): Remove.
6451         * tree-pass.h (pass_remove_useless_stmts): Don't declare.
6452         * passes.c (init_optimization_passes): Don't add
6453         pass_remove_useless_stmts.
6454         * tree-eh.c (lower_eh_constructs_2): Handle empty cleanups.
6455         * tree.c (free_lang_data_in_decl): Don't clear DECL_INITIAL of
6456         static constants.
6457         * lto-symtab.c (lto_symtab_register_decl): Accepts DECL_INITIAL
6458         for static constants.
6459         * lto-streamer-out.c (output_gimple_stmt): Handle GIMPLE_NOP.
6460         * lto-streamer-in.c (input_gimple_stmt): Handle GIMPLE_NOP.
6461
6462 2009-10-08  Richard Guenther  <rguenther@suse.de>
6463
6464         * gimple.c (free_gimple_type_tables): New function.
6465         * gimple.h (free_gimple_type_tables): Declare.
6466
6467 2009-10-07  Mark Heffernan  <meheff@google.com>
6468
6469         * ipa-prop.c (ipa_print_node_params) Only print
6470         names of named arguments.
6471
6472 2009-10-08  Rafael Avila de Espindola  <espindola@google.com>
6473
6474         * gcc.c (LINK_COMMAND_SPEC): Pass libc with -pass-through if it is
6475         being statically linked.
6476
6477 2009-10-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6478
6479         * collect2.c (add_lto_object): Only define if OBJECT_FORMAT_NONE.
6480
6481 2009-10-08  Jan Hubicka  <jh@suse.cz>
6482
6483         PR bootstrap/41620
6484         * ipa.c (cgraph_externally_visible_p,
6485         function_and_variable_visibility,
6486         whole_program_function_and_variable_visibility): Skip non-finalized
6487         nodes.
6488
6489 2009-10-08  Nick Clifton  <nickc@redhat.com>
6490
6491         * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Do not allow
6492         CONST_DOUBLEs.
6493
6494 2009-10-08  Andreas Tobler  <a.tobler@schweiz.org>
6495
6496         PR bootstrap/37739
6497         * config.host: Use config/x-cflags-O1 for powerpc FreeBSD.
6498
6499 2009-10-07  Joseph Myers  <joseph@codesourcery.com>
6500
6501         PR c/41182
6502         * c-common.c (c_fully_fold_internal): Strip nops from the result
6503         of recursive calls to c_fully_fold_internal.
6504         (c_wrap_maybe_const): New.
6505         (c_save_expr): Use c_wrap_maybe_const.
6506         * c-common.h (c_wrap_maybe_const): Declare.
6507         * c-typeck.c (build_conditional_expr, c_finish_stmt_expr,
6508         build_binary_op): Use c_wrap_maybe_const.
6509
6510 2009-10-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6511
6512         * real.c: Fix comment to reflect actual exponent size.
6513
6514 2009-10-08  Ben Elliston  <bje@au.ibm.com>
6515
6516         * config/rs6000/a2.md: Add FSF comment header.
6517
6518 2009-10-07  Uros Bizjak  <ubizjak@gmail.com>
6519
6520         * config/i386/i386.md (any_extend): New code iterator.
6521         (u, s): New code attributes.
6522         (sgnprefix): Ditto.
6523         (DWIH): Rewrite as code iterator for SI and DI modes.
6524         (DWI): Rewrite as mode attribute.
6525         (dwi): New mode attribute.
6526         (di): Depend on SI mode and DI mode.
6527         (doubleint_general_operand): Remove mode attribute.
6528
6529         (*lea_1): Macroize insn from *lea_1_rex64 and *lea_1 patterns using
6530         DWIH mode iterator.
6531
6532         (*add<mode>3_doubleword): Use DWIH as the base mode iterator.
6533         (*sub<mode>3_doubleword): Ditto.
6534
6535         (mul<mode>3): Macroize expander from mul{hi,si,di}3 patterns
6536         using SWIM248 mode iterator.
6537         (*mul<mode>3_1): Macroize insn from mul{si,di}3_1 patterns
6538         using SWI48 mode iterator.
6539         (<u>mul<mode><dwi>3): Macroize expander from {,u}mul{sidi,diti}3
6540         patterns using DWIH mode iterator and any_extend code iterator.
6541         (<u>mulqihi3): Macroize expander from {,u}mulqihi3 patterns
6542         using any_extend code iterator.
6543         (*<u>mul<mode><dwi>3_1): Macroize insn from {,u}mul{sidi,diti}3_1
6544         patterns using DWIH mode iterator and any_extend code iterator.
6545         (*<u>mulqihi3_1): Macroize insn from {,u}mulqihi3_1 patterns
6546         using any_extend code iterator.
6547         (<s>mul<mode>3_highpart): Macroize expander from
6548         {s,u}mul{si,di}3_highpart patterns using DWIH mode iterator
6549         and any_extend code iterator.
6550         (*<s>muldi3_highpart_1): Macroize insn from
6551         *{s,u}muldi3_highpart_rex64 patterns using any_extend code iterator.
6552         (*<s>mulsi3_highpart_1): Macroize insn from *{s,u}mulsi3_highpart_1
6553         patterns using any_extend code iterator.
6554         (*<s>mulsi3_highpart_zext): Macroize insn from
6555         *{s,u}mulsi3_highpart_zext patterns using any_extend code iterator.
6556
6557 2009-10-07  Jakub Jelinek  <jakub@redhat.com>
6558
6559         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Don't add
6560         DW_AT_const_value if VAR_DIE already has DW_AT_abstract_origin
6561         refering to a DIE with DW_AT_const_value.
6562
6563 2009-10-07  Vladimir Makarov  <vmakarov@redhat.com>
6564
6565         PR middle-end/22072
6566         * ira-lives.c (check_and_make_def_conflict): Process all operands.
6567
6568 2009-10-06  Jan Hubicka  <jh@suse.cz>
6569
6570         * cgraph.c (cgraph_node_can_be_local): Handle externally visible nodes
6571         correctly.
6572
6573 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
6574
6575         * config/i386/i386.md (*lea_1_rex64, *lea_1, *lea_1_zext,
6576         *lea_2_rex64): Move before *add<mode>_1 pattern.
6577
6578 2009-10-07  Jan Hubicka  <jh@suse.cz>
6579
6580         * collect2.c (main): Add -fno-whole-program.
6581         * gcc.c (set_collect_gcc_options): Do not remove whole program here.
6582
6583 2009-10-07  Jan Hubicka  <jh@suse.cz>
6584
6585         * lto-symtab.c (lto_cgraph_replace_node): Assert that inline clones
6586         has no address taken.
6587         * cgraph.c (cgraph_mark_needed_node): Assert that inline clones are
6588         never needed.
6589         (cgraph_clone_node): Clear externally_visible flag for clones.
6590         * cgraph.h (cgraph_only_called_directly_p,
6591         cgraph_can_remove_if_no_direct_calls_p): New predicates.
6592         * tree-pass.h (pass_ipa_whole_program_visibility): Declare.
6593         * ipa-cp.c (ipcp_cloning_candidate_p): Use new predicate.
6594         (ipcp_initialize_node_lattices, ipcp_estimate_growth,
6595         ipcp_insert_stage): Likwise.
6596         * cgraphunit.c (cgraph_decide_is_function_needed): Do not compute
6597         externally_visible flag.
6598         (verify_cgraph_node): Verify that inline clones look right.
6599         (process_function_and_variable_attributes): Do not set
6600         externally_visible flags.
6601         (ipa_passes): Avoid executing small_ipa_passes at LTO stage; they've
6602         been already run.
6603         * lto-cgraph.c (lto_output_node): Assert that inline clones are not
6604         boundaries.
6605         * ipa-inline.c (cgraph_clone_inlined_nodes): Use new predicates;
6606         clear externally_visible when turning into inline clones
6607         (cgraph_mark_inline_edge): Use new predicates.
6608         (cgraph_estimate_growth): Likewise.
6609         (cgraph_decide_inlining): Likewise.
6610         * ipa.c (cgraph_postorder): Likewise.
6611         (cgraph_remove_unreachable_nodes): Likewise; sanity check
6612         that inline clones are not needed.
6613         (cgraph_externally_visible_p): New predicate.
6614         (function_and_variable_visibility): Add whole_program parameter;
6615         always set externally_visible flag; handle COMDAT function
6616         privatization.
6617         (local_function_and_variable_visibility): New function.
6618         (gate_whole_program_function_and_variable_visibility): New function.
6619         (whole_program_function_and_variable_visibility): New function.
6620         (pass_ipa_whole_program_visibility): New function.
6621         * passes.c  (init_optimization_passes): Add whole program visibility
6622         pass.
6623         (do_per_function_toporder, function_called_by_processed_nodes_p): Do
6624         not care about needed/reachable flags.
6625         * varpool.c: Include flags.h
6626         (decide_is_variable_needed): When doing LTO assume whole-program mode.
6627         (varpool_finalize_decl): When we are in LTO read-back, all variables
6628         are analyzed.
6629         (varpool_analyze_pending_decls): Skip analyzis of analyzed vars.
6630
6631 2009-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6632
6633         * config/s390/tpf.h (TARGET_DEFAULT): Remove MASK_HARD_FLOAT and
6634         add MASK_HARD_DFP.
6635
6636 2009-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6637
6638         * config.gcc: Don't include the makefile fragments intended for
6639         libgcc.
6640         * config/s390/fixdfdi.h: File removed.
6641         * config/s390/libgcc-glibc.ver: File removed.
6642         * config/s390/s390.h: Remove the fixdfdi.h hack.
6643         * config/s390/t-crtstuff: File moved to libgcc dir.
6644         * config/s390/t-linux: Likewise.
6645         * config/s390/t-tpf: libgcc specific parts removed.
6646         * config/s390/t-linux64: Likewise.
6647
6648 2009-10-06  Jerry Quinn  <jlquinn@optonline.net>
6649
6650         * Makefile.in (lto-wrapper): Use COMPILER and ALL_COMPILERFLAGS.
6651         (lto-compress.o): Likewise.
6652
6653 2009-10-07  Danny Smith  <dannysmith@users.sourceforge.net>
6654
6655         PR target/41512
6656         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't propagate
6657         dllexport to class members here.
6658         (i386_pe_determine_dllimport_p): Only check static class data for
6659         definition.
6660         (i386_pe_encode_section_info): Don't recheck DECL_DLLIMPORT_P.
6661         * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Only check
6662         functions for vague linkage.
6663         (i386_pe_type_dllexport_p): Fix formatting.
6664         (maybe_add_dllexport) New function.
6665         (i386_pe_adjust_class_at_definition): Use it to propagate dllexport
6666         to class members.
6667
6668 2009-10-07  Ben Elliston  <bje@au.ibm.com>
6669
6670         * config/rs6000/a2.md: Remove duplicated lines.
6671
6672 2009-10-07  Ben Elliston  <bje@au.ibm.com>
6673
6674         * config.gcc (powerpc*-*-*): Handle a2.
6675         * config/rs6000/rs6000.md (cpu): Add ppca2.  Include "a2.md".
6676         * config/rs6000/a2.md: New file.
6677         * config/rs6000/rs6000.opt (mno-update): New.
6678         (mupdate): Return to using a mask, not a var.
6679         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for a2.
6680         (enum processor_type): Add PROCESSOR_PPCA2.
6681         * config/rs6000/rs6000.c (ppca2_cost): New costs.
6682         (rs6000_override_options): Add "a2" to processor_target_table.
6683         Update rs6000_always_hint logic.  Correctly set rs6000_cost for a2.
6684         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=a2.
6685
6686 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
6687
6688         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
6689         Use explicit gen_truncxfsf2 and gen_truncxfdf2 references to avoid
6690         reference to nonexistent gen_truncxfxf2 function.
6691
6692 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
6693
6694         * config/i386/i386.md (SWI48, SDWIM, DWI): New mode iterators.
6695         (DWIH, g, di, doubleint_general_operand): New mode attributes.
6696         (general_operand): Handle TI mode.
6697         (add<mode>3): Macroize expander from add{qi,hi,si,di,ti}3 patterns
6698         using SDWIM mode iterator.
6699         (*add<mode>3_doubleword): New insn_and_split pattern.  Macroize
6700         pattern from *add{di,ti}3_1 patterns and corresponding splitters
6701         using DWI mode iterator.
6702         (add<mode>3_carry): Macroize insn from add{qi,hi,si,di}3_carry
6703         patterns using SWI mode iterator.
6704         (*add<mode>3_cc): Macroize insn from add{si,di}3_cc patterns
6705         using SWI48 mode iterator.
6706         (*add<mode>_1): Ditto from add{si,di}_1 patterns.
6707         (*add<mode>_2): Ditto from add{si,di}_2 patterns.
6708         (*add<mode>_3): Ditto from add{si,di}_3 patterns.
6709         (*add<mode>_5): Ditto from add{si,di}_5 patterns.
6710         (sub<mode>3): Macroize expander from sub{qi,hi,si,di,ti}3 patterns
6711         using SDWIM mode iterator.
6712         (*sub<mode>3_doubleword): New insn_and_split pattern.  Macroize
6713         pattern from *sub{di,ti}3_1 patterns and corresponding splitters
6714         using DWI mode iterator.
6715         (sub<mode>3_carry): Macroize insn from sub{qi,hi,si,di}3_carry
6716         patterns using SWI mode iterator.
6717         (*sub<mode>_1): Ditto from from sub{qi,hi,si,di}_1 patterns.
6718         (*sub<mode>_2): Ditto from sub{qi,hi,si,di}_2 patterns.
6719         (*sub<mode>_3): Ditto from sub{qi,hi,si,di}_3 patterns.
6720         (<plusminus_insn>xf3): Macroize expander from addxf3 and subxf3
6721         patterns using plusminus code iterator.
6722         (<plusminus_insn><mode>3): Macroize expander from add<mode>3 and
6723         sub<mode>3 patterns using plusminus code iterator.
6724         * config/i386/i386.c (override_options): Update the call to
6725         gen_subdi_carry_rex64 for renamed function.
6726         (ix86_expand_int_addcc): Update calls to gen_subdi3_carry_rex64
6727         and gen_adddi3_carry_rex64 for renamed functions.  Use indirect
6728         calls to instruction expanders.
6729
6730 2009-10-06  Martin Jambor  <mjambor@suse.cz>
6731
6732         PR bootstrap/41395
6733         * opts.c (decode_options): Run IPA-SRA at -O2.
6734
6735 2009-10-06  Richard Guenther  <rguenther@suse.de>
6736
6737         * lto-symtab.c (lto_symtab_entry_hash): Hash strings, not pointers.
6738
6739 2009-10-06  Tobias Burnus  <burnus@net-b.de>
6740
6741         PR lto/41591
6742         * doc/invoke.texi (-flto,-fwhole-program): Make clear that the
6743         -flto and -fwhole-program flags can be combined.
6744
6745 2009-10-06  Ryan Mansfield  <rmansfield@qnx.com>
6746
6747         PR driver/41217
6748         * gcc.c (process_command): Check that -o argument was specified.
6749
6750 2009-10-06  Jerry Quinn  <jlquinn@optonline.net>
6751
6752         * gimple.c (gimple_type_hash): Use CONST_CAST_TREE to fix compilation.
6753
6754 2009-10-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6755
6756         * c.opt (Wjump-misses-init): Fix typo to enable for ObjC.
6757         * doc/invoke.texi (Warning Options): Annotate allowed languages
6758         for -Wunsuffixed-float-constants.
6759
6760 2009-10-05  Jakub Jelinek  <jakub@redhat.com>
6761
6762         * dwarf2out.c (modified_type_die): Don't add DW_AT_name to
6763         DW_TAG_{const,volatile}_type if its DW_AT_type already has the
6764         same name and isn't the main variant.
6765
6766         PR debug/41558
6767         * dwarf2out.c (loc_by_reference): Removed.
6768         (dw_loc_list_1): New function.
6769         (dw_loc_list): Remove toplev argument, add want_address argument.
6770         Don't look at decl_by_reference_p at all.  Use dw_loc_list_1.
6771         (loc_list_from_tree) <case VAR_DECL>: Pass want_address rather than
6772         want_address == 2 to dw_loc_list.  For successful dw_loc_list
6773         set have_address to 1 only if want_address is not 0.
6774
6775 2009-10-05  Richard Sandiford  <rdsandiford@googlemail.com>
6776
6777         * config/mips/mips-protos.h (mips_trampoline_code_size): Declare.
6778         * config/mips/mips.h (TRAMPOLINE_SIZE): Redefine as the size of
6779         a code block followed by two pointers.
6780         (TRAMPOLINE_ALIGNMENT): Define to 64 for 32-bit targets too.
6781         * config/mips/mips.c (MIPS_LOAD_PTR): New macro.
6782         (MIPS_MOVE): Likewise.
6783         (MIPS_LUI): Likewise.
6784         (MIPS_JR): Likewise.
6785         (MIPS_BAL): Likewise.
6786         (MIPS_NOP): Likewise.
6787         (mips_asm_trampoline_template): Delete.
6788         (mips_trampoline_code_size): New function.
6789         (mips_trampoline_init): Add shorter sequences for all cases
6790         except Pmode == DImoe && !TARGET_USE_PIC_FN_ADDR_REG.
6791         Calculate the opcodes directly, rather than copying from a template.
6792         Only flush the code part of the trampoline.
6793         (TARGET_ASM_TRAMPOLINE_TEMPLATE): Delete.
6794
6795 2009-10-05  Richard Sandiford  <rdsandiford@googlemail.com>
6796
6797         * config/mips/mips.h (DWARF_FRAME_RETURN_COLUMN): Replace
6798         GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM.
6799         (INCOMING_RETURN_ADDR_RTX): Likewise.
6800         (FUNCTION_PROFILER): Likewise.  Replace GP_REG_FIRST + 1
6801         with AT_REGNUM.
6802         * config/mips/sdemtk.h (FUNCTION_PROFILER): Replace GP_REG_FIRST + 31
6803         with RETURN_ADDR_REGNUM.
6804         (MIPS_SAVE_REG_FOR_PROFILING_P): Likewise.
6805         * config/mips/mips.c (mips16_build_call_stub): Replace
6806         GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM, GP_REG_FIRST + 1
6807         with AT_REGNUM and 31 with RETURN_ADDR_REGNUM.
6808         (mips_print_operand_punctuation): Likewise.
6809         (mips_frame_set): Likewise.
6810         (mips16e_output_save_restore): Likewise.
6811         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
6812         (mips_save_reg_p): Likewise.
6813         (mips_return_addr): Likewise.
6814         (mips_set_return_address): Likewise.
6815         (mips_direct_save_slot_move_p): Likewise.
6816         (mips_output_function_prologue): Likewise.
6817         (mips_restore_reg): Likewise.
6818         (mips_expand_epilogue): Likewise.
6819         (mips_epilogue_uses): Likewise.
6820         * config/mips/mips.md (RETURN_ADD_REGNUM): Define.
6821         (*mov<mode>_ra): Use it instead of a hard-coded 31.
6822         (clear_hazard_<mode>): Likewise.
6823         (call_internal): Likewise.
6824         (call_internal_direct): Likewise.
6825         (call_direct_split): Likewise.
6826         (call_value_internal): Likewise.
6827         (call_value_split): Likewise.
6828         (call_value_internal_direct): Likewise.
6829         (call_value_direct_split): Likewise.
6830         (call_value_multiple_internal): Likewise.
6831         (call_value_multiple_split): Likewise.
6832
6833 2009-10-05  Eric Botcazou  <ebotcazou@adacore.com>
6834             Jakub Jelinek  <jakub@redhat.com>
6835
6836         PR rtl-optimization/41511
6837         * combine.c (record_value_for_reg): Pass explicit values as argument
6838         to get_last_value_validate.
6839         (get_last_value_validate): Document INSN parameter.
6840         For non-readonly MEMs, assume they might have been modified if INSN
6841         was in another basic block.
6842         (get_last_value): Minor reformatting.
6843
6844 2009-10-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6845
6846         PR tree-opt/40992
6847         * final.c (asm_str_count): Split out from asm_insn_count.
6848         * rtl.h (asm_str_count): New prototype.
6849         * tree-inline (estimate_num_insns) <case GIMPLE_ASM>: Call
6850         asm_str_count.
6851
6852 2009-10-05  Sriraman Tallam  <tmsriram@google.com>
6853
6854         * doc/plugins.texi: Change plugin_pass to register_pass_info.
6855
6856 2009-10-05  Basile Starynkevitch  <basile@starynkevitch.net>
6857             Rafael Espindola  <espindola@google.com>
6858
6859         * gengtype.c (write_types): Moved call to write_func_for_structure
6860         into seperate loops.
6861
6862 2009-10-05  Richard Guenther  <rguenther@suse.de>
6863
6864         PR lto/41281
6865         * lto-cgraph.c (output_cgraph): Output toplevel asms.
6866         (input_cgraph_1): Input toplevel asms.
6867
6868 2009-10-05  Richard Guenther  <rguenther@suse.de>
6869
6870         PR lto/40902
6871         * lto-symtab.c (lto_compatible_attributes_p): Remove.
6872         (external_aggregate_decl_p): Likewise.
6873         (lto_symtab_compatible): Re-structure.  Remove dead code.
6874         For variables ignore toplevel qualifiers when comparing types.
6875         Issue warnings, not errors for mismatched user-alignment.
6876
6877 2009-10-05  Richard Guenther  <rguenther@suse.de>
6878
6879         PR lto/41552
6880         PR lto/41487
6881         * lto-symtab.c (struct lto_symtab_base_def): Remove.
6882         (struct lto_symtab_identifier_def): Likewise.
6883         (struct lto_symtab_decl_def): Likewise.
6884         (struct lto_symtab_entry_def): New.
6885         (lto_symtab_identifier_t): Rename to ...
6886         (lto_symtab_entry_t): ... this.
6887         (lto_symtab_decls): Remove.
6888         (lto_symtab_base_hash): Rename to ...
6889         (lto_symtab_entry_hash): ... this.
6890         (lto_symtab_base_eq): Rename to ...
6891         (lto_symtab_entry_eq): ... this.
6892         (lto_symtab_base_marked_p): Rename to ...
6893         (lto_symtab_entry_marked_p): ... this.
6894         (lto_symtab_identifier_marked_p): Remove.
6895         (lto_symtab_decl_marked_p): Likewise.
6896         (lto_symtab_maybe_init_hash_tables): Rename to ...
6897         (lto_symtab_maybe_init_hash_table): ... this.
6898         (lto_symtab_set_resolution_and_file_data): Remove.
6899         (lto_symtab_register_decl): New function.
6900         (lto_symtab_get_identifier): Remove.
6901         (lto_symtab_get): New function.
6902         (lto_symtab_get_resolution): Adjust.
6903         (lto_symtab_get_identifier_decl): Remove.
6904         (lto_symtab_set_identifier_decl): Likewise.
6905         (lto_symtab_merge_decl): Rename to ...
6906         (lto_symtab_merge): ... this.  Rewrite.
6907         (lto_symtab_merge_var): Remove.
6908         (lto_symtab_merge_fn): Likewise.
6909         (lto_symtab_prevailing_decl): Adjust.
6910         (lto_cgraph_replace_node): New function.
6911         (lto_symtab_merge_decls_2): Likewise.
6912         (lto_symtab_merge_decls_1): Likewise.
6913         (lto_symtab_fixup_var_decls): Likewise.
6914         (lto_symtab_resolve_symbols): Likewise.
6915         (lto_symtab_merge_decls): Likewise.
6916         (lto_symtab_prevailing_decl): Adjust.
6917         (lto_symtab_get_symtab_def): Remove.
6918         (lto_symtab_get_file_data): Likewise.
6919         (lto_symtab_clear_resolution): Adjust.
6920         (lto_symtab_clear_resolution): Likewise.
6921         * lto-cgraph.c (input_edge): Do not merge cgraph nodes here.
6922         (input_cgraph_1): Likewise.
6923         * lto-streamer-in.c (get_resolution): Do not provide fake
6924         symbol resolutions here.
6925         (deferred_global_decls): Remove.
6926         (lto_register_deferred_decls_in_symtab): Likewise.
6927         (lto_register_var_decl_in_symtab): Change signature, register
6928         variable via lto_symtab_register_decl.
6929         (lto_register_function_decl_in_symtab): Likewise.
6930         (lto_read_tree): Adjust.
6931         * lto-streamer.h (lto_register_deferred_decls_in_symtab): Remove.
6932         (lto_symtab_merge_var): Likewise.
6933         (lto_symtab_merge_fn): Likewise.
6934         (lto_symtab_register_decl): Declare.
6935         (lto_symtab_merge_decls): Likewise.
6936
6937 2009-10-05  Richard Guenther  <rguenther@suse.de>
6938
6939         PR tree-optimization/23821
6940         * tree-vrp.c (vrp_finalize): Do not perform copy propagation.
6941         * tree-ssa-dom.c (cprop_operand): Do not propagate copies into
6942         simple IV increments.
6943
6944 2009-10-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6945
6946         * config/arm/arm.c (arm_override_options): Really initialize
6947         flag_dwarf2_cfi_asm to 0.
6948
6949 2009-10-05  Doug Kwan  <dougkwan@google.com>
6950
6951         PR rtl-optimization/41574
6952         * combine.c (distribute_and_simplify_rtx): Quit if RTX mode is
6953         floating point and we are not doing unsafe math optimizations.
6954
6955 2009-10-03  Simon Baldwin  <simonb@google.com>
6956             Cary Coutant  <ccoutant@google.com>
6957             Rafael Espindola  <espindola@google.com>
6958             Richard Guenther  <rguenther@suse.de>
6959             Jan Hubicka  <jh@suse.cz>
6960             Doug Kwan <dougkwan@google.com>
6961             H.J. Lu  <hongjiu.lu@intel.com>
6962             Bill Maddox  <maddox@google.com>
6963             Ryan Mansfield  <rmansfield@qnx.com>
6964             Diego Novillo  <dnovillo@google.com>
6965             Ollie Wild  <aaw@google.com>
6966             Kenneth Zadeck <zadeck@naturalbridge.com>
6967
6968         * lto-cgraph.c: New file.
6969         * lto-compress.c: New file.
6970         * lto-compress.h: New file.
6971         * lto-opts.c: New file.
6972         * lto-section-in.c: New file.
6973         * lto-section-out.c: New file.
6974         * lto-streamer-in.c: New file.
6975         * lto-streamer-out.c: New file.
6976         * lto-streamer.c: New file.
6977         * lto-streamer.h: New file.
6978         * lto-symtab.c: New file.
6979         * lto-wpa-fixup.c: New file.
6980         * lto-wrapper.c: New file.
6981
6982 2009-10-03  Simon Baldwin  <baldwin@google.com>
6983             Ben Elliston  <bje@au.ibm.com>
6984             Rafael Espindola  <espindola@google.com>
6985             Nathan Froyd  <froydnj@codesourcery.com>
6986             Jan Hubicka  <jh@suse.cz>
6987             Doug Kwan  <dougkwan@google.com>
6988             Diego Novillo  <dnovillo@google.com>
6989             Kenneth Zadeck  <zadeck@naturalbridge.com>
6990
6991         * Makefile.in (enable_lto): New.
6992         (site.exp): If @enable_lto@ is set to 'yes' define ENABLE_LTO.
6993         (LINKER_PLUGIN_API_H): Define.
6994         (LTO_SYMTAB_H): Define.
6995         (LTO_STREAMER_H): Define.
6996         (TREE_VECTORIZER_H): Define.
6997         (INCLUDES): Add LIBELFINC.
6998         (OBJS-common): Add lto-cgraph.o, lto-streamer-in.o,
6999         lto-streamer-out.o, lto-section-in.o, lto-section-out.o, lto-symtab.o,
7000         lto-opts.o, lto-streamer.o, lto-wpa-fixup.o, lto-compress.o.
7001         (MOSTLYCLEANFILES): Add lto-wrapper$(exeext)
7002         (native): Add lto-wrapper$(exeext)
7003         (lto-compress.o, lto-cgraph.o, lto-streamer-in.o,
7004         lto-streamer-out.o, lto-section-in.o, lto-section-out.o,
7005         lto-symtab.o, lto-opts.o, lto-streamer.o, lto-wpa-fixup.o): New rules.
7006         (gimple.o): Add dependency on LTO_HEADER_H and LTO_SECTION_OUT_H.
7007         (varasm.o): Add dependency on tree-iterator.h.
7008         (cgraph.o): Add dependency on cif-code.def.
7009         (ipa-reference.o): Add dependency on LTO_STREAMER_H.
7010         (ipa-pure-const.o): Likewise.
7011         (GTFILES): Add lto-symtab.c.
7012         (install-lto-wrapper): New.
7013         * configure.ac: If 'lto' is in enable_languages, define ENABLE_LTO
7014         and enable_lto.  If LIBELFLIBS is set, define HAVE_libelf.
7015         * config.in: Regenerate.
7016
7017 2009-10-03  Rafael Espindola  <espindola@google.com>
7018             Diego Novillo  <dnovillo@google.com>
7019
7020         * cgraphunit.c (ipa_passes): Prevent lto1 from calling
7021         ipa_write_summaries.
7022         Call execute_ipa_summary_passes for all_regular_ipa_passes and
7023         all_lto_gen_passes.
7024         (cgraph_optimize): Make extern.
7025
7026 2009-10-03  Nathan Froyd  <froydnj@codesourcery.com>
7027             Kenneth Zadeck <zadeck@naturalbridge.com>
7028
7029         * toplev.c (in_lto_p): Declare.
7030         * collect2.c (scan_prog_file): Read all the output when reading
7031         information for LTO.
7032         (enum lto_mode_d): Declare.
7033
7034 2009-10-03  Richard Guenther  <rguenther@suse.de>
7035             Diego Novillo  <dnovillo@google.com>
7036
7037         * gimple.c: Include target.h and alias.h.
7038         (gimple_types): Declare.
7039         (type_hash_cache): Declare.
7040         (gimple_alloc_stat): Make extern.
7041         (gimple_build_eh_must_not_throw): Call
7042         gimple_eh_must_not_throw_set_fndecl.
7043         (struct type_pair_d): Declare.
7044         (type_pair_t): Declare.
7045         (type_pair_hash): New.
7046         (type_pair_eq): New.
7047         (lookup_type_pair): New.
7048         (gimple_force_type_merge): New.
7049         (compare_type_names_p): New.
7050         (compare_field_offset): New.
7051         (gimple_types_compatible_p): New.
7052         (struct sccs): Declare.
7053         (next_dfs_num): Declare.
7054         (iterative_hash_gimple_type): New.
7055         (visit): New.
7056         (iterative_hash_type_name): New.
7057         (iterative_hash_gimple_type): New.
7058         (gimple_type_hash): New.
7059         (gimple_type_eq): New.
7060         (gimple_register_type): New.
7061         (print_gimple_types_stats): New.
7062         (gimple_signed_or_unsigned_type): New.
7063         (gimple_unsigned_type): New.
7064         (gimple_signed_type): New.
7065         (gimple_get_alias_set): New.
7066         (gimple_decl_printable_name): Do not use DMGL_TYPES.
7067         * gimple.h (gimple_alloc, gimple_alloc_stat): Declare.
7068         (gimple_force_type_merge): Declare.
7069         (gimple_types_compatible_p): Declare.
7070         (gimple_register_type): Declare.
7071         (print_gimple_types_stats): Declare.
7072         (gimple_unsigned_type): Declare.
7073         (gimple_signed_type): Declare.
7074         (gimple_get_alias_set): Declare.
7075         (gimple_eh_must_not_throw_set_fndecl): New.
7076
7077 2009-10-03  Jan Hubicka  <jh@suse.cz>
7078             Kenneth Zadeck <zadeck@naturalbridge.com>
7079
7080         * ipa-pure-const.c: Include lto-streamer.h.
7081         (register_hooks): Factor out of ...
7082         (generate_summary): ... here.
7083         (pure_const_write_summary): New.
7084         (pure_const_read_summary): New.
7085         (pass_ipa_pure_const): Add pure_const_write_summary and
7086         pure_const_read_summary.
7087         * ipa-reference.c: Include lto-streamer.h.
7088         (add_new_function): New.
7089         (remove_node_data): New.
7090         (duplicate_node_data): New.
7091         (ipa_init): Guard against multiple calls.
7092         Move hook setup from analyze_function.
7093         (write_node_summary_p): New.
7094         (ipa_reference_write_summary): New.
7095         (ipa_reference_read_summary): New.
7096         (pass_ipa_reference): Add ipa_reference_write_summary and
7097         ipa_reference_read_summary.
7098         * cgraph.h (cgraph_local_info): Add field lto_file_data.
7099         (struct cgraph_edge): Add fields lto_stmt_uid and
7100         call_stmt_cannot_inline_p.
7101         (cgraph_optimize): Declare.
7102         (cgraph_decide_is_function_needed): Declare.
7103         (reset_inline_failed): Declare.
7104         (enum LTO_cgraph_tags): Declare.
7105         (LTO_cgraph_tag_names): Declare.
7106         (LCC_NOT_FOUND): Define.
7107
7108 2009-10-03  Doug Kwan  <dougkwan@google.com>
7109             Rafael Espindola  <espindola@google.com>
7110             Jan Hubicka  <jh@suse.cz>
7111             Diego Novillo  <dnovillo@google.com>
7112             Kenneth Zadeck  <zadeck@naturalbridge.com>
7113
7114         * passes.c (all_regular_ipa_passes): New.
7115         (all_ipa_passes): Rename to all_small_ipa_passes.
7116         (init_optimization_passes): Init all_regular_ipa_passes.
7117         * tree-pass.h (all_regular_ipa_passes): New.
7118         (all_ipa_passes): Rename to all_small_ipa_passes.
7119         * passes.c (all_lto_gen_passes): New.
7120         (init_optimization_passes): Initialize all_lto_gen_passes.
7121         (execute_ipa_summary_passes): Make non-static.
7122         (ipa_write_summaries_1): New.
7123         (ipa_write_summaries_2): New.
7124         (ipa_write_summaries): New.
7125         (ipa_write_summaries_of_cgraph_node_set): New.
7126         (ipa_read_summaries_1): New.
7127         (ipa_read_summaries): New.
7128         (execute_ipa_pass_list): Call cgraph_process_new_functions.
7129         (execute_regular_ipa_pass_list): Remove.
7130         (init_optimization_passes): Schedule
7131         pass_rebuild_cgraph_edges and pass_early_inline outside
7132         of pass_all_early_optimizations.  Document reason.
7133         (pass_ipa_lto_gimple_out, pass_ipa_lto_wpa_fixup,
7134         pass_ipa_lto_finish_out): New pass.
7135         (pass_ipa_summary_passes): Start and stop timers if the pass has them.
7136         (execute_all_ipa_transforms): New.
7137         (execute_one_pass): Don't call execute_one_ipa_transform_pass.
7138         (dump_properties, debug_properties): New.
7139         * tree-optimize.c (gate_all_early_local_passes): Return
7140         false if we are in lto1.
7141         (tree_rest_of_compilation): Call execute_all_ipa_transforms.
7142         * tree-pass.h (execute_all_ipa_transforms): Declare.
7143         (pass_ipa_function_and_variable_visibility): Declare.
7144         (pass_ipa_early_inline): Declare.
7145         (pass_ipa_lto_gimple_out): Declare.
7146         (pass_ipa_lto_wpa_fixup): Declare.
7147         (pass_ipa_lto_finish_out): Declare.
7148         (all_small_ipa_passes, all_regular_ipa_passes,
7149         all_lto_gen_passes): Declare.
7150         (execute_ipa_summary_passes): Declare.
7151         (execute_all_ipa_transforms): Declare.
7152         (ipa_write_summaries): Declare
7153         (ipa_write_summaries_of_cgraph_node_set): Declare.
7154         (ipa_read_summaries): Declare.
7155
7156 2009-10-03  Doug Kwan  <dougkwan@google.com>
7157             Ollie Wild  <aaw@google.com>
7158
7159         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do nothing in WPA.
7160
7161         * collect2.c (LTO_MODE_NONE, LTO_MODE_LTO, LTO_MODE_WPA): New enums.
7162         (lto_mode): New variable.
7163         (maybe_run_lto_and_relink): Handle the -fwpa option.
7164         (main): Handle the -fwpa option.
7165         (maybe_unlink_list): New function.
7166         * gcc.c (link_lto_options): Replace -flto with -fwpa.
7167         * common.opt (flto): New flag.
7168         * toplev.c (flag_generate_lto): Declare.
7169
7170 2009-10-03  Simon Baldwin  <simonb@google.com>
7171
7172         * common.opt (flto-compression-level): New flag.
7173
7174         * opts.c: Include lto-opts.h.
7175         (handle_option): Call lto_register_user_option for each
7176         valid option handled.
7177         (decode_options): Clear registered options before the options
7178         handling loop.
7179
7180 2009-10-03  Cary Coutant  <ccoutant@google.com>
7181
7182         * collect2.c (is_elf): New function.
7183         (scan_prog_file): Require LTO object to be in ELF format.
7184
7185 2009-10-03  Rafael Espindola  <espindola@google.com>
7186
7187         * gcc.c (LINK_COMMAND_SPEC): Use the -pass-through option to pass
7188         libgcc to the linker.
7189
7190         * ipa-cp.c (cgraph_gate_cp): Return false if LTRANS is running.
7191
7192         * collect2.c (maybe_run_lto_and_relink): Execute lto-wrapper.
7193         (collect_execute): Add flags argument. Pass flags to pex_run. Update
7194         all callers.
7195         * collect2.h (collect_execute): Add flags argument.
7196         * tlink.c (tlink_execute): Update call to collect_execute.
7197         * gcc.c (main): Set the COLLECT_LTO_WRAPPER environment variable.
7198         (use_linker_plugin): New.
7199         (use_linker_plugin_spec_function): New.
7200         (LINK_COMMAND_SPEC): Pass plugin options to the linker.
7201         (linker_plugin_file_spec): New.
7202         (lto_wrapper_spec): New.
7203         (lto_gcc_spec): New.
7204         (static_specs): Add linker_plugin_file, lto_wrapper and lto_gcc.
7205         (static_spec_functions): Add use-linker-plugin.
7206         (process_command): Handle -use-linker-plugin.
7207         (main): Use lto_wrapper_spec instead of lto_wrapper. Set
7208         linker_plugin_file_spec and lto_gcc_spec.
7209         (use_linker_plugin_spec_function): New.
7210
7211 2009-10-03  Richard Guenther  <rguenther@suse.de>
7212
7213         PR lto/41547
7214         PR lto/41548
7215         * tree.h (is_lang_specific): Include LANG_TYPE.
7216         * tree.c (find_decls_types_r): Manually add interesting parts
7217         of TYPE_FIELDS.  Walk BINFO_VIRTUALS.  Do not walk TYPE_METHODS.
7218
7219         * gimple.c (type_pair_hash): Make symmetric.
7220         (type_pair_eq): Likewise.
7221         (lookup_type_pair): Increase initial hashtable size.
7222         (gimple_force_type_merge): Rely on type-pair symmetry.
7223         (visit): Remove excessive checking code.
7224         (iterative_hash_type_name): Do not hash TYPE_NAME of anonymous unions.
7225         (gimple_register_type): Remove getenv calls, shrink initial
7226         hashtable size.
7227
7228         PR middle-end/41502
7229         * cgraphunit.c (ipa_passes): Do not remove bodies of extern
7230         inline functions if not generating lto output.
7231
7232         PR lto/41379
7233         * toplev.c (finalize): In WPA mode remove the asm file.
7234
7235 2009-10-03  Doug Kwan  <dougkwan@google.com>
7236
7237         * ipa-inline.c (cgraph_mark_inline): Check
7238         edge->call_stmt_cannot_inline_p instead of calling
7239         gimple_call_cannot_inline_p.
7240         (cgraph_decide_inlining): Do nothing in WPA and LTRANS.
7241         (cgraph_gate_ipa_early_inlining): Return false if in_lto_p is set.
7242         (inline_generate_summary): Do nothing in LTRANS.
7243         * cgraph.c (initialize_inline_failed): Make sure e->call_stmt
7244         exists before calling gimple_call_cannot_inline_p.
7245         (cgraph_create_edge): Set edge->call_stmt_cannot_inline_p.
7246         (cgraph_clone_edge): Add argument STMT_UID.  Modify all callers.
7247         Update new_edge->lto_stmt_uid.
7248         * cgraphbuild.c (reset_inline_failed): New.
7249
7250         * common.opt (fwpa): New flag.
7251         (fltrans): New option.
7252         * gcc.c (gcc_lto_option_t): New type.
7253         (current_lto_option): New variable.
7254         (lto_single_spec_function): Remove and is replaced by ..
7255         (lto_option_spec_function): New function.
7256         (LINK_COMMAND_SPEC): Use link_lto_option spec instead of just
7257         passing the -flto flag.
7258         (cc1_options): Separate non-LTO related parts into ..
7259         (cc1_non_lto_options): Non-LTO related options shared by all FEs.
7260         (lto1_options): New spec for lto FE.
7261         (link_lto_options): New spec for handling LTO flags in linker.
7262         (invoke_lto_single): Re-format to fit in 80 column.  Replace
7263         lto-single with lto-option.
7264         (static_specs): Add cc1_non_lto_options, lto1_options and
7265         link_lto_options.
7266         (static_spec_function): Replace lto-single with lto-option.
7267         (process_command): Handle -flto, -fwpa and -fltran by setting
7268         current_lto_option and not passing it to subprocess unconditionally.
7269
7270 2009-10-03  Bill Maddox  <maddox@google.com>
7271
7272         Add `gcc' driver support for link-time code generation (LTO).
7273
7274         * collect2.c (enum pass): Add new literal PASS_LTOINFO.
7275         (lto_flag, lto_objects, lto_o_file): New variables.
7276         (struct lto_object, struct lto_object_list): New structures.
7277         (collect_exit, handler): Remove LTO temporary output file on exit.
7278         (add_lto_object): New function.
7279         (maybe_run_lto_and_relink): New function. Perform link time code
7280         generation and relinking for object files containing LTO information.
7281         (main): Invoke maybe_run_lto_and_relink().
7282         (dump_argv): New function.  For debugging, currently disabled.
7283         (scan_prog_file): Add LTO information pass.
7284         * gcc.c (LINK_COMMAND_SPEC): Pass `-flto' switch to linker, i.e.,
7285         collect2.
7286         * toplev.c (compile_file): Emit assembler directive to create
7287         the `gnu_lto_v1' marker symbol when compiling with `-flto'.
7288
7289 2009-10-03  Diego Novillo  <dnovillo@google.com>
7290
7291         * c.opt: Add LTO to warn_abi and warn_psabi.
7292
7293         * tree.c (fld_worklist_push): Rename from PUSH.  Convert to static
7294         inline function.  Ignore language-specific nodes.  Update all users.
7295         (find_decls_types_r): Do not traverse the subtrees of
7296         language-specific nodes.  Do not traverse DECL_INITIAL for TYPE_DECLs.
7297         * tree.h (is_lang_specific): New.
7298         * langhooks.h (struct lang_hooks_for_decls): Remove
7299         may_need_assembler_name_p.  Update all users.
7300
7301         * c-common.c (set_builtin_user_assembler_name): Move ...
7302         * builtins.c (set_builtin_user_assembler_name): ... here.
7303         (is_builtin_name): Add comment
7304         (is_builtin_fn): New.
7305         * except.c (output_ttype): Only call
7306         lookup_type_for_runtime if TYPE is not a runtime type.
7307
7308         * passes.c (register_pass): Call position_pass on
7309         all_small_ipa_passes, all_regular_ipa_passes and all_lto_gen_passes.
7310         * timevar.def (TV_IPA_LTO_GIMPLE_IO): Define.
7311         (TV_IPA_LTO_DECL_IO): Define.
7312         (TV_IPA_LTO_CGRAPH_IO): Define.
7313         (TV_LTO): Define.
7314         (TV_WHOPR_WPA): Define.
7315         (TV_WHOPR_WPA_IO): Define.
7316         (TV_WHOPR_LTRANS): Define.
7317         (TV_WHOPR_WPA_FIXUP): Define.
7318         (TV_WHOPR_WPA_LTRANS_EXEC): Define.
7319         * tree-cfg.c (tree_node_can_be_shared): Make extern.
7320         * tree-flow.h (tree_node_can_be_shared): Declare.
7321         * tree-inline.c (tree_can_inline_p): Check that E has a
7322         statement associated with it.
7323         * tree.c (free_lang_data_in_binf): Factor out of ...
7324         (free_lang_data_in_type): ... here.
7325         Call RECORD_OR_UNION_TYPE_P.
7326         (need_assembler_name_p): Ignore DECL if it does not have TREE_PUBLIC
7327         set.  Call lang_hooks.decls.may_need_assembler_name_p if set.
7328         (free_lang_data_in_decl): Do not clear DECL_CONTEXT for CONST_DECLs.
7329         (free_lang_data): Set debug_info_level to DINFO_LEVEL_NONE.  Set
7330         write_symbols to NO_DEBUG.  Set debug_hooks to do_nothing_debug_hooks.
7331         (gate_free_lang_data): Return true if flag_generate_lto is set.
7332         (walk_tree_1): Call RECORD_OR_UNION_TYPE_P.
7333         * c-common.h (set_builtin_user_assembler_name): Move ...
7334         * tree.h (set_builtin_user_assembler_name): ... here.
7335
7336         * common.opt (flto-report): New flag.
7337         * opts.c (complain_wrong_lang): Do not complain if running lto1.
7338         * collect2.c (scan_prog_file): Send the error output of
7339         'nm' to HOST_BIT_BUCKET.
7340
7341 2009-10-03  Ollie Wild  <aaw@google.com>
7342
7343         * langhooks-def.h (lhd_begin_section): New function declaration.
7344         (lhd_write_section): New function declaration.
7345         (lhd_end_section): New function declaration.
7346         (LANG_HOOKS_BEGIN_SECTION): New macro.
7347         (LANG_HOOKS_WRITE_SECTION_DATA): New macro.
7348         (LANG_HOOKS_END_SECTION): New macro.
7349         (LANG_HOOKS_LTO): New macro.
7350         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_LTO.
7351         * langhooks.c (output.h): Add include.
7352         (saved_section): New static variable.
7353         (lhd_begin_section): New function.
7354         (lhd_write_section_data): New function.
7355         (lhd_end_section): New function.
7356         * langhooks.h (struct lang_hooks_for_lto): New structure.
7357         (struct lang_hooks): Add member lto.
7358         * Makefile.in (langhooks.o): Add dependency on output.h.
7359
7360         * c-opts.c (c_common_post_options): Handle -flto and -fwhopr.
7361
7362 2009-10-03  Richard Guenther  <rguenther@suse.de>
7363
7364         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
7365         Handle LTO.
7366
7367 2009-10-03  Simon Baldwin  <simonb@google.com>
7368             Richard Guenther  <rguenther@suse.de>
7369             Janis Johnson  <janis187@us.ibm.com>
7370             Doug Kwan  <dougkwan@google.com>
7371             Diego Novillo  <dnovillo@google.com>
7372             Ramana Radhakrishnan  <ramana.r@gmail.com>
7373             Ollie Wild  <aaw@google.com>
7374
7375         * doc/install.texi: Add documentation for libelf and --enable-lto.
7376         * doc/invoke.texi: Document -fwpa, -flto, -fwhopr, -fltrans,
7377         -flto-report, -flto-compression-level and -use-linker-plugin.
7378         * doc/sourcebuild.texi: Document use of zlib.  Document lto-plugin.
7379         Add section for LTO Testing.
7380
7381 2009-10-02  Cary Coutant  <ccoutant@google.com>
7382
7383         Add support for comdat type sections for DWARF v4.
7384         Merge from dwarf4 branch.
7385
7386         * dwarf2out.c (DWARF_TYPE_SIGNATURE_SIZE): New constant.
7387         (dw_die_ref): Define vector type.
7388         (enum dw_val_class): Add dw_val_class_data8.
7389         (struct dw_val_struct): Add v.val_data8.
7390         (comdat_type_node_ref): New type.
7391         (struct die_struct): Move die_symbol into a union; add new field
7392         die_type_node.  Change all uses.
7393         (comdat_type_node): New type.
7394         (skeleton_chain_node): New type.
7395         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): New constant.
7396         (comdat_type_list): New variable.
7397         (dwarf_tag_name): Add DW_TAG_type_unit.
7398         (dwarf_attr_name): Add DW_AT_signature.
7399         (add_AT_data8): New function.
7400         (replace_child): New function.
7401         (move_all_children): New function.
7402         (print_signature): New function.
7403         (print_die): Print signature information; add dw_val_class_data8.
7404         (attr_checksum): Support dw_val_class_data8.
7405         (CHECKSUM_STRING): Redefine for DWARF-4 to include trailing NULL byte.
7406         (CHECKSUM_SLEB128, CHECKSUM_ULEB128): New macros.
7407         (checksum_sleb128, checksum_uleb128): New functions.
7408         (checksum_die_context): New function.
7409         (loc_checksum_ordered): New function.
7410         (attr_checksum_ordered): New function.
7411         (struct checksum_attributes): New structure.
7412         (collect_checksum_attributes): New function.
7413         (die_checksum_ordered): New function.
7414         (generate_type_signature): New function.
7415         (same_dw_val_p): Add dw_val_class_data8.
7416         (is_symbol_die): Use new is_declaration_die function.
7417         (is_declaration_die): New function.
7418         (should_move_die_to_comdat): New function.
7419         (clone_die): New function.
7420         (clone_tree): New function.
7421         (clone_as_declaration): New function.
7422         (copy_declaration_context): New function.
7423         (generate_skeleton_ancestor_tree): New function.
7424         (generate_skeleton_bottom_up): New function.
7425         (generate_skeleton): New function.
7426         (remove_child_or_replace_with_skeleton): New function.
7427         (break_out_comdat_types): New function.
7428         (struct decl_table_entry): New type.
7429         (htab_decl_hash): New function.
7430         (htab_decl_eq): New function.
7431         (htab_decl_del): New function.
7432         (copy_ancestor_tree): New function.
7433         (copy_decls_walk): New function.
7434         (copy_decls_for_unworthy_types): New function.
7435         (build_abbrev_table): Don't assert on missing die_symbol when doing
7436         comdat type sections.
7437         (size_of_die): Use DW_FORM_sig8 for external references.  Add
7438         dw_val_class_data8.
7439         (unmark_dies): Don't assert for unmarked dies when doing comdat
7440         type sections.
7441         (value_format): Support DW_FORM_sig8 and dw_val_class_data8.
7442         (output_signature): New function.
7443         (output_die): Likewise.
7444         (output_compilation_unit_header): Mark output as DWARF version 3
7445         even if generating DWARF 4.
7446         (output_comdat_type_unit): New function.
7447         (output_line_info): Mark output as DWARF version 3 even if generating
7448         DWARF 4.
7449         (dwarf2out_start_source_file): Don't do eliminate_dwarf2_dups with
7450         DWARF-4.
7451         (dwarf2out_end_source_file): Likewise.
7452         (prune_unused_types_walk_attribs): Don't follow references into
7453         comdat type sections.
7454         (prune_unused_types_mark): When generating type units, do not mark
7455         children of non-defining declarations of types; do mark children of
7456         type entries.
7457         (prune_unused_types): Process comdat type sections.
7458         (htab_ct_hash): New function.
7459         (htab_ct_eq): New function.
7460         (dwarf2out_finish): Move types to comdat sections when using DWARF-4.
7461         Add a pointer to the line table from type unit entries so
7462         DW_AT_decl_file has meaning.
7463         * varasm.c (default_elf_asm_named_section): Use identifier name as
7464         comdat key instead of lang hook.
7465
7466 2009-10-02  Neil Vachharajani  <nvachhar@google.com>
7467
7468         * gcov-io.c (gcov_open): Open files read-only when MODE < 0.
7469
7470 2009-10-02  Uros Bizjak  <ubizjak@gmail.com>
7471
7472         * config/i386/i386.md (SWIM248): New mode iterator.
7473         (divmod<mode>4) Macroize expander from divmoddi4, divmodsi4 and
7474         divmodhi4 patterns using SWIM248 macro.
7475         (*divmod<mode>4): Macroize insn_and_split pattern from
7476         *divmoddi4_cltd_rex64, *divmodsi4_cltd and divmodhi4 insn patterns
7477         and their corresponding splitters usign SWIM248 macro.  Split SImode
7478         insn to generate cltd and DImode insn to generate cqto instead of
7479         move+shift when optimizing for size or TARGET_USE_CLTD is in effect.
7480         (*divmoddi4_nocltd_rex64, *divmodsi4_nocltd): Remove insn patterns.
7481         (*divmod<mode>4_noext): Macroize insn from *divmoddi_noext_rex64 and
7482         *divmodsi_noext patterns using SWIM248 macro.
7483         (udivmod<mode>4): Macroize expander from udivmoddi4, udivmodsi4 and
7484         udivmodhi4 patterns using SWIM248 macro.
7485         (*udivmod<mode>4): Macroize insn_and_split pattern from
7486         *udivmoddi4, udivmodsi4 and udivmodhi4 patterns and their
7487         corresponding splitters using SWIM248 macro.
7488         (*udivmod<mode>4_noext): Macroize insn from *udivmoddi4_noext,
7489         *udivmodsi4_noext and *udivmodhi_noext patterns using SWIM248 macro.
7490
7491 2009-10-02  Eric Botcazou  <ebotcazou@adacore.com>
7492
7493         * stor-layout.c (layout_type) <ARRAY_TYPE>: Make sure that an array
7494         of zero-sized element is zero-sized regardless of its extent.
7495
7496 2009-10-02  Jakub Jelinek  <jakub@redhat.com>
7497
7498         PR debug/40521
7499         * configure.ac (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): New test.
7500         * configure: Regenerated.
7501         * config.in: Regenerated.
7502         * dwarf2out.c (dwarf2out_do_cfi_asm): Return false if
7503         !HAVE_GAS_CFI_SECTIONS_DIRECTIVE and not emitting .eh_frame.
7504         (dwarf2out_init): If HAVE_GAS_CFI_SECTIONS_DIRECTIVE and
7505         not emitting .eh_frame, emit .cfi_sections .debug_frame
7506         directive.
7507
7508         PR debug/41404
7509         PR debug/41353
7510         * cfgexpand.c (expand_debug_expr) <case STRING_CST>: Don't create
7511         CONST_STRING if STRING_CST contains embedded '\0's or doesn't end
7512         with '\0'.
7513         (expand_debug_expr) <case VAR_DECL>: For TREE_STATIC !DECL_EXTERNAL
7514         vars use DECL_RTL with resetting it back to NULL afterwards.
7515         * dwarf2out.c (same_dw_val_p): For dw_val_class_addr compare with
7516         rtx_equal_p instead of asserting it is a SYMBOL_REF.
7517         (value_format): For dw_val_class_addr only use DW_FORM_addr if
7518         the attribute type allows it, otherwise use DW_FORM_dataN.
7519         (mem_loc_descriptor): Handle CONST_STRING.
7520         (add_const_value_attribute): Handle CONST_STRING using add_AT_addr.
7521         Handle MEM with CONST_STRING address using add_AT_string.
7522         (rtl_for_decl_init): Return MEM with CONST_STRING address instead of
7523         CONST_STRING for const arrays initialized with a string literal.
7524         (resolve_one_addr, resolve_addr_in_expr, resolve_addr): New functions.
7525         (dwarf2out_finish): Call resolve_addr.
7526
7527 2009-10-02  Andreas Schwab  <schwab@linux-m68k.org>
7528             Maxim Kuvyrkov  <maxim@codesourcery.com>
7529
7530         * config/m68k/lb1sf68.asm (PICCALL): Use variable sized branch.
7531
7532 2009-10-02  Nick Clifton  <nickc@redhat.com>
7533
7534         * config/mn10300/mn10300.h (USER_LABEL_PREFIX): Define.
7535         (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
7536
7537 2009-10-01  Jan Hubicka  <jh@suse.cz>
7538
7539         * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
7540         (cgraph_create_virtual_clone): Just pass redirect_callers
7541         around.
7542         * cgraph.h (cgraph_clone_node): Update prototype.
7543         * ipa-pure-const.c (self_recursive_p): New function.
7544         (propagate): Use it.
7545         * ipa-inline.c (cgraph_clone_inlined_nodes,
7546         cgraph_decide_recursive_inlining): Update.
7547
7548 2009-10-01  David Daney  <ddaney@caviumnetworks.com>
7549
7550         * gcc/config/mips/mips.c (mips_process_sync_loop) Emit syncw
7551         instructions for TARGET_OCTEON.
7552
7553 2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7554
7555         * config/arm/arm.c (arm_override_options): Turn off
7556         flag_dwarf2_cfi_asm for AAPCS variants.
7557
7558 2009-10-01  Martin Jambor  <mjambor@suse.cz>
7559
7560         PR middle-end/12392
7561         * tree-sra.c (convert_callers): Do not call
7562         compute_inline_parameters on one caller more than once.
7563
7564 2009-10-01  Nick Clifton  <nickc@redhat.com>
7565
7566         * config/vax/netbsd-elf.h (NETBSD_CC1_AND_CC1PLUS_SPEC): Define as
7567         an empty string if not already defined.
7568
7569 2009-10-01  Martin Jambor  <mjambor@suse.cz>
7570
7571         PR bootstrap/41395
7572         * tree-sra.c (is_va_list_type): New function.
7573         (find_var_candidates): Call is_va_list_type.
7574         (find_param_candidates): Check that the type or the type pointed
7575         to are not va_list types.
7576
7577 2009-10-01  Martin Jambor  <mjambor@suse.cz>
7578
7579         PR c++/41503
7580         * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
7581         DECL_ARTIFICIAL (param_decl) is true.
7582
7583 2009-09-30  Gabriel Dos Reis  <gdr@cs.tamu.edu>
7584
7585         * tree.h (tree_decl_common::lang_flag_8): New.
7586         * c-common.c (c_common_reswords): Include "constexpr" as C++0x
7587         keyword.
7588         * c-common.h (RID_CONSTEXPR): New.
7589
7590 2009-09-30  Uros Bizjak  <ubizjak@gmail.com>
7591
7592         * config/alpha/alpha.c (alpha_gimplify_va_arg_1):
7593         Use ref-all pointers.
7594         (alpha_gimplify_va_arg): Ditto.
7595
7596 2009-09-30  Jakub Jelinek  <jakub@redhat.com>
7597
7598         PR target/41279
7599         * cfgloopanal.c (num_loop_insns): Don't increment ninsns for each bb
7600         before insn counting loop now that BB_END (bb) is counted.  Ensure
7601         the return value isn't zero.
7602
7603 2009-09-30  Nick Clifton  <nickc@redhat.com>
7604
7605         * config.gcc (sh-symbianelf): Replace definition of extra_objs
7606         with separate definitions of c_target_objs and cxx_target_objs.
7607         * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o
7608         and symbian-base.o.
7609         * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use
7610         sh_symbian_import_export_class.
7611         * config/sh/sh-protos.h: Fix names of exported symbian functions.
7612         * config/sh/symbian.c: Delete, moving code into...
7613         * config/sh/symbian-base.c: ... here
7614         * config/sh/symbian-c.c: ... and here
7615         * config/sh/symbian-cxx.c: ... and here.
7616
7617 2009-09-30  Uros Bizjak  <ubizjak@gmail.com>
7618
7619         PR target/22093
7620         * config/alpha/alpha.md (unaligned_storehi_be): Force operand
7621         of plus RTX into register.
7622
7623 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7624
7625         * doc/install.texi: Linguistic and markup fixes.
7626         (Configuration) <--disable-cpp>: Remove description.
7627         <--enable-maintainer-mode>: Autotools files are affected, too.
7628         <--with-sysroot>: Improve description.
7629         (Building): Bump required GNU make version.
7630
7631 2009-09-29  Harsha Jagasia  <harsha.jagasia@amd.com>
7632
7633         * config.gcc (i[34567]86-*-*): Include fma4intrin.h.
7634         (x86_64-*-*): Ditto.
7635
7636         * config/i386/fma4intrin.h: New file, provide common x86 compiler
7637         intrinisics for FMA4.
7638         * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit.
7639         * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a.
7640         Add FMA4 check and fma4intrin.h.
7641         * config/i386/i386-c.c(ix86_target_macros_internal): Check
7642         ISA_FLAG for FMA4.
7643         * config/i386/i386.h(TARGET_FMA4): New macro for FMA4.
7644         * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC
7645         constant for FMA4 support.
7646         (UNSPEC_FMA4_FMADDSUB): Ditto.
7647         (UNSPEC_FMA4_FMSUBADD): Ditto.
7648         * config/i386/i386.opt (-mfma4): New switch for FMA4 support.
7649         * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration.
7650         (ix86_expand_fma4_multiple_memory): Ditto.
7651         * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New.
7652         (OPTION_MASK_ISA_FMA4_UNSET): New.
7653         (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4.
7654         (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4.
7655         (ix86_handle_option): Handle -mfma4.
7656         (isa_opts): Handle -mfma4.
7657         (enum pta_flags): Add PTA_FMA4.
7658         (override_options): Add FMA4 support.
7659         (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic.
7660         (IX86_BUILTIN_VFMADDSD): Ditto.
7661         (IX86_BUILTIN_VFMADDPS): Ditto.
7662         (IX86_BUILTIN_VFMADDPD): Ditto.
7663         (IX86_BUILTIN_VFMSUBSS): Ditto.
7664         (IX86_BUILTIN_VFMSUBSD): Ditto.
7665         (IX86_BUILTIN_VFMSUBPS): Ditto.
7666         (IX86_BUILTIN_VFMSUBPD): Ditto.
7667         (IX86_BUILTIN_VFMADDSUBPS): Ditto.
7668         (IX86_BUILTIN_VFMADDSUBPD): Ditto.
7669         (IX86_BUILTIN_VFMSUBADDPS): Ditto.
7670         (IX86_BUILTIN_VFMSUBADDPD): Ditto.
7671         (IX86_BUILTIN_VFNMADDSS): Ditto.
7672         (IX86_BUILTIN_VFNMADDSD): Ditto.
7673         (IX86_BUILTIN_VFNMADDPS): Ditto.
7674         (IX86_BUILTIN_VFNMADDPD): Ditto.
7675         (IX86_BUILTIN_VFNMSUBSS): Ditto.
7676         (IX86_BUILTIN_VFNMSUBSD): Ditto.
7677         (IX86_BUILTIN_VFNMSUBPS): Ditto.
7678         (IX86_BUILTIN_VFNMSUBPD): Ditto.
7679         (IX86_BUILTIN_VFMADDPS256): Ditto.
7680         (IX86_BUILTIN_VFMADDPD256): Ditto.
7681         (IX86_BUILTIN_VFMSUBPS256): Ditto.
7682         (IX86_BUILTIN_VFMSUBPD256): Ditto.
7683         (IX86_BUILTIN_VFMADDSUBPS256): Ditto.
7684         (IX86_BUILTIN_VFMADDSUBPD256): Ditto.
7685         (IX86_BUILTIN_VFMSUBADDPS256): Ditto.
7686         (IX86_BUILTIN_VFMSUBADDPD256): Ditto.
7687         (IX86_BUILTIN_VFNMADDPS256): Ditto.
7688         (IX86_BUILTIN_VFNMADDPD256): Ditto.
7689         (IX86_BUILTIN_VFNMSUBPS256): Ditto.
7690         (IX86_BUILTIN_VFNMSUBPD256): Ditto.
7691         (enum multi_arg_type): New enum for describing the various FMA4
7692         intrinsic argument types.
7693         (bdesc_multi_arg): New table for FMA4 intrinsics.
7694         (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support.
7695         (ix86_expand_multi_arg_builtin): New function for creating FMA4
7696         intrinsics.
7697         (ix86_expand_builtin): Add FMA4 intrinsic support.
7698         (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4
7699         operand instructions.
7700         (ix86_expand_fma4_multiple_memory): New function to split the
7701         second memory reference from FMA4 instructions.
7702         * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4.
7703         (ssemodesuffixf2s): Ditto.
7704         (fma4_fmadd<mode>4): Add FMA4 floating point multiply/add
7705         instructions.
7706         (fma4_fmsub<mode>4): Ditto.
7707         (fma4_fnmadd<mode>4): Ditto.
7708         (fma4_fnmsub<mode>4): Ditto.
7709         (fma4_vmfmadd<mode>4): Ditto.
7710         (fma4_vmfmsub<mode>4): Ditto.
7711         (fma4_vmfnmadd<mode>4): Ditto.
7712         (fma4_vmfnmsub<mode>4): Ditto.
7713         (fma4_fmadd<mode>4256): Ditto.
7714         (fma4_fmsub<mode>4256): Ditto.
7715         (fma4_fnmadd<mode>4256): Ditto.
7716         (fma4_fnmsub<mode>4256): Ditto.
7717         (fma4_fmaddsubv8sf4): Ditto.
7718         (fma4_fmaddsubv4sf4): Ditto.
7719         (fma4_fmaddsubv4df4): Ditto.
7720         (fma4_fmaddsubv2df4): Ditto.
7721         (fma4_fmsubaddv8sf4): Ditto.
7722         (fma4_fmsubaddv4sf4): Ditto.
7723         (fma4_fmsubaddv4df4): Ditto.
7724         (fma4_fmsubaddv2df4): Ditto.
7725         (fma4i_fmadd<mode>4): Add FMA4 floating point multiply/add
7726         instructions for intrinsics.
7727         (fma4i_fmsub<mode>4): Ditto.
7728         (fma4i_fnmadd<mode>4): Ditto.
7729         (fma4i_fnmsub<mode>4): Ditto.
7730         (fma4i_vmfmadd<mode>4): Ditto.
7731         (fma4i_vmfmsub<mode>4): Ditto.
7732         (fma4i_vmfnmadd<mode>4): Ditto.
7733         (fma4i_vmfnmsub<mode>4): Ditto.
7734         (fma4i_fmadd<mode>4256): Ditto.
7735         (fma4i_fmsub<mode>4256): Ditto.
7736         (fma4i_fnmadd<mode>4256): Ditto.
7737         (fma4i_fnmsub<mode>4256): Ditto.
7738         (fma4i_fmaddsubv8sf4): Ditto.
7739         (fma4i_fmaddsubv4sf4): Ditto.
7740         (fma4i_fmaddsubv4df4): Ditto.
7741         (fma4i_fmaddsubv2df4): Ditto.
7742         (fma4i_fmsubaddv8sf4): Ditto.
7743         (fma4i_fmsubaddv4sf4): Ditto.
7744         (fma4i_fmsubaddv4df4): Ditto.
7745         (fma4i_fmsubaddv2df4): Ditto.
7746
7747         * doc/invoke.texi (-mfma4): Add documentation.
7748         * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics.
7749
7750 2009-09-29  Richard Henderson  <rth@redhat.com>
7751
7752         * tree-eh.c (unsplit_eh): Do not unsplit if there's already
7753         an edge to the new destination block.
7754
7755 2009-09-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7756
7757         PR target/41393
7758         * pa.c (hppa_profile_hook): Use
7759         make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
7760
7761 2009-09-29  Steve Ellcey  <sje@cup.hp.com>
7762             Alexander Monakov  <amonakov@ispras.ru>
7763
7764         PR target/41365
7765         * config/ia64/predicates.md (not_postinc_destination_operand): New.
7766         (not_postinc_memory_operand): New.
7767         (not_postinc_move_operand): New.
7768         * config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
7769         (*cmovsi_internal): Ditto.
7770
7771 2009-09-29  Pat Haugen  <pthaugen@us.ibm.com>
7772
7773         * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
7774         restrict issue_rate in first pass when scheduling for register
7775         pressure.
7776
7777 2009-09-29  Basile Starynkevitch  <basile@starynkevitch.net>
7778             Rafael Avila de Espindola  <espindola@google.com>
7779
7780         * gengtype.c (plugin_output): New.
7781         (get_output_file_with_visibility): Return plugin_output for plugins.
7782         (main): Parse and use the -P option.
7783         * gty.texi: Update the command line format.
7784
7785 2009-09-29  Jakub Jelinek  <jakub@redhat.com>
7786
7787         PR debug/41438
7788         * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
7789         functions.
7790         (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
7791         out if !const_ok_for_output.
7792
7793         PR debug/41474
7794         * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
7795         case VAR_LOCATION>: Remove gcc_unreachable ().
7796
7797 2009-09-29  Harsha Jagasia  <harsha.jagasia@amd.com>
7798
7799         * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
7800         (x86_64-*-*): Ditto.
7801         * config/i386/smmintrin.h: Move instructions in mmintrin-common.h
7802         back to smmintrin.h.
7803         * config/i386/cpuid.h (bit_SSE5): Remove SSE5 bit.
7804         * config/i386/x86intrin.h: Remove SSE5.
7805         * config/i386/mmintrin-common.h: Delete file.
7806         * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins.
7807
7808 2009-09-29  Richard Guenther  <rguenther@suse.de>
7809
7810         * alias.c (ao_ref_from_mem): Properly deal with off decl accesses
7811         resulting from stack temporaries on STRICT_ALIGNMENT targets.
7812
7813 2009-09-29  Nick Clifton  <nickc@redhat.com>
7814
7815         * function.c (current_function_name): If there is no current
7816         function just return "<none>".
7817
7818 2009-09-28  Sriraman Tallam  <tmsriram@google.com>
7819
7820         * tree-pass.h (register_pass_info): New structure.
7821         (pass_positioning_ops): Move enum from gcc-plugin.h.
7822         (register_pass): New function.
7823         * gcc-plugin.h (plugin_pass): Delete structure.
7824         (pass_positioning_ops): Delete enum.
7825         * plugin.c (regsiter_pass): Delete function.
7826         (position_pass): Delete function.
7827         (added_pass_nodes): Delete variable.
7828         (prev_added_pass_nodes): Delete variable.
7829         (pass_list_node): Delete structure.
7830         * passes.c (make_pass_instance): New function.
7831         (next_pass_1): Change to call make_pass_instance.
7832         (pass_list_node): Move structure from gcc-plugin.h.
7833         (added_pass_nodes): Move variable from plugin.c.
7834         (prev_added_pass_nodes): Move variable from plugin.c.
7835         (position_pass): New function.
7836         (register_pass): New function.
7837
7838 2009-09-28  Easwaran Raman  <eraman@google.com>
7839
7840         * ifcvt.c (noce_try_abs): Recognize pattern and call
7841         expand_one_cmpl_abs_nojump.
7842         * optabs.c (expand_one_cmpl_abs_nojump): New function.
7843         * optabs.h (expand_one_cmpl_abs_nojump): Declare.
7844
7845 2009-09-28  Ian Lance Taylor  <iant@google.com>
7846
7847         PR middle-end/40500
7848         * c-opts.c (c_common_handle_option): Don't set
7849         warn_jump_misses_init for -Wall.
7850         * doc/invoke.texi (Warning Options): Update documentation.
7851
7852 2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7853
7854         * Makefile.in ($(out_object_file)): Depend on
7855         gt-$(basename $(notdir $(out_file))).h.
7856
7857 2009-09-28  Richard Henderson  <rth@redhat.com>
7858
7859         * except.h (struct eh_region_d): Add use_cxa_end_cleanup.
7860         * except.c (gen_eh_region): Set it.
7861         (duplicate_eh_regions_1): Copy it.
7862         * tree-eh.c (lower_resx): Use it to determine which function
7863         to call to resume.
7864
7865         * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
7866         * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
7867         * builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
7868         * tree.c (build_common_builtin_nodes): Remove parameter.  Build
7869         BUILT_IN_CXA_END_CLEANUP if necessary.
7870
7871         * c-common.c (c_define_builtins): Update call to
7872         build_common_builtin_nodes.
7873
7874 2009-09-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7875
7876         * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
7877
7878 2009-09-28  Michael Matz  <matz@suse.de>
7879
7880         * builtins.c (interclass_mathfn_icode): New helper.
7881         (expand_builtin_interclass_mathfn): Use it here, and split folding
7882         into ...
7883         (fold_builtin_interclass_mathfn): ... this new folder.
7884         (build_call_nofold_loc): New static helper.
7885         (build_call_nofold): New wrapper macro for above.
7886         (expand_builtin_int_roundingfn): Use it instead of build_call_expr.
7887         (expand_builtin_pow): Ditto.
7888         (expand_builtin_memset_args): Ditto.
7889         (expand_builtin_printf): Ditto.
7890         (expand_builtin_fprintf): Ditto.
7891         (expand_builtin_sprintf): Ditto.
7892         (expand_builtin_memory_chk): Ditto.
7893         (expand_builtin_mempcpy_args): Ditto and don't call folders.
7894         (expand_builtin_stpcpy): Ditto.
7895         (expand_builtin_strcmp): Ditto.
7896         (expand_builtin_strncmp): Ditto.
7897         (expand_builtin_strcpy): Remove FNDECL and MODE arguments.
7898         (expand_builtin_strcpy_args): Don't call folders.
7899         (expand_builtin_memcmp): Ditto.
7900         (expand_builtin_strncpy): Ditto, and use target.
7901         (expand_builtin_memcpy): Ditto.
7902         (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
7903         expand_builtin_strpbrk, expand_builtin_memmove,
7904         expand_builtin_memmove_args, expand_builtin_bcopy,
7905         expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
7906         expand_builtin_strspn, expand_builtin_strcspn,
7907         expand_builtin_fputs): Remove these.
7908         (expand_builtin): Don't call the above, change calls to other
7909         expanders that changed prototype.
7910         (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
7911         (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
7912         fold_builtin_interclass_mathfn.
7913         (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
7914         (fold_builtin_strcat): Add folding split from expand_builtin_strcat.
7915
7916         * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
7917         * passes.c (init_optimization_passes): Move pass_fold_builtins
7918         after last phiopt pass.
7919         * tree-inline.c (fold_marked_statements): When folding builtins
7920         iterate over all instruction potentially generated.
7921         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
7922         earlier.
7923         (fold_gimple_call): Use it to always fold calls (into potentially
7924         multiple instructions).
7925         * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
7926         calls into zero at this time.
7927         * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple
7928         statements generated by builtin folding.
7929
7930 2009-09-28  Nick Clifton  <nickc@redhat.com>
7931
7932         * config/m32r/m32r.c (m32r_is_insn): Return false for debugging insns.
7933
7934 2009-09-28  Duncan Sands  <baldrick@free.fr>
7935
7936         * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
7937         * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
7938         (register_callback): Dispatch it.
7939         (invoke_plugin_callbacks): Incorporate in sanity check.
7940         * ggc.h (ggc_register_cache_tab): Add declaration.
7941         * ggc-common.c (ggc_register_root_tab): Simplify.
7942         (const_ggc_cache_tab_t): New typedef.
7943         (extra_cache_vec): New vector of dynamically added cache tables.
7944         (ggc_register_cache_tab): New function.
7945         (ggc_scan_cache_tab): New function.
7946         (ggc_mark_roots): Simplify dynamic roots.  Handle dynamic caches.
7947         * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
7948
7949 2009-09-27  Richard Henderson  <rth@redhat.com>
7950
7951         * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
7952         which we remove __builtin_stack_restore.
7953
7954 2009-09-27  Bernd Schmidt  <bernd.schmidt@analog.com>
7955
7956         * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
7957         to test for GRD_INVARIANT.
7958         (simple_rhs_p): Anything that's function_invariant_p is fine.
7959
7960 2009-09-27  Rafael Avila de Espindola  <espindola@google.com>
7961
7962         * gengtype.c (main): Use plunge_files instead of plugin_output.
7963
7964 2009-09-27  Basile Starynkevitch  <basile@starynkevitch.net>
7965             Rafael Avila de Espindola  <espindola@google.com>
7966
7967         * gengtype.c (write_root, write_roots): Add a emit_pch argument.
7968         Don't print pch related info if it is false.
7969         (main): Don't print pch info in plugin mode.
7970
7971 2009-09-27  Eric Botcazou  <ebotcazou@adacore.com>
7972
7973         * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
7974         with dw_val_class_const_double.
7975         (struct dw_val_struct): Replace val_long_long with val_double and
7976         adjust for above change.
7977         (output_loc_operands): Likewise.
7978         (add_AT_long_long): Rename into...
7979         (add_AT_double): ...this.
7980         (print_die): Replace dw_val_class_long_long with
7981         dw_val_class_const_double and adjust.
7982         (attr_checksum): Likewise.
7983         (same_dw_val_p): Likewise.
7984         (size_of_die): Likewise.
7985         (value_format): Likewise.
7986         (output_die): Likewise.
7987         (loc_descriptor) <CONST_DOUBLE>: Likewise.
7988         (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
7989         instead of add_AT_long_long.
7990         (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
7991         value with the precision of its type.
7992
7993 2009-09-27  Andreas Schwab  <schwab@linux-m68k.org>
7994
7995         PR c/41476
7996         * c-typeck.c (build_conditional_expr): Use the readonly and
7997         volatile flags of the operand types, not of the operands itself.
7998
7999 2009-09-27  Peter O'Gorman  <pogma@thewrittenword.com>
8000
8001         * collect2.c (main): Look for -brtl before adding libraries.
8002
8003 2009-09-27  Jonathan Gray  <jsg@openbsd.org>
8004
8005         * config.gcc: Update OpenBSD targets.
8006         * config/openbsd-stdint.h: New file.
8007         * config/openbsd-libpthread.h: New file.
8008         * config/openbsd.h: Update and break out LIB_SPEC definition.
8009         * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
8010         * config/i386/openbsdelf.h: Correct types.
8011         * config/m68k/openbsd.h: Likewise.
8012         * config/mips/openbsd.h: Likewise.
8013         * config/vax/openbsd.h: Likewise.
8014
8015 2009-09-27  Eric Botcazou  <ebotcazou@adacore.com>
8016
8017         * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
8018         (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
8019         * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
8020         of the length and zero.
8021
8022 2009-09-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8023
8024         * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
8025         (FLAGS_H): Add options.h $(REAL_H).
8026         (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
8027         (TREE_VECTORIZER_H): New.
8028         (EBITMAP_H): Renamed from EBIMAP_H.
8029         (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
8030         (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
8031         (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
8032         (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
8033         (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
8034         (graphite-clast-to-gimple.o, graphite-dependences.o)
8035         (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
8036         (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
8037         (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
8038         (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
8039         (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
8040         (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
8041         (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
8042         (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
8043         (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
8044         updated and fixed as per above changes and per
8045         check_makefile_deps.sh output.
8046
8047         PR bootstrap/40928
8048         * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
8049         * configure: Regenerate.
8050
8051 2009-09-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8052
8053         * doc/install.texi: Update minimum MPC version to 0.7.
8054
8055 2009-09-26  Gerald Pfeifer  <gerald@pfeifer.com>
8056
8057         * doc/install.texi (Binaries): Remove reference to the binary
8058         distribution CD-ROM from the FSF.
8059
8060 2009-09-26  Michael Matz  <matz@suse.de>
8061
8062         PR lto/40758
8063         PR middle-end/41470
8064         * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
8065         that are mentioned in the body.
8066
8067 2009-09-26  Michael Matz  <matz@suse.de>
8068
8069         PR tree-optimization/41454
8070         * tree-ssa-dom (stmts_to_rescan): Remove variable.
8071         (tree_ssa_dominator_optimize): Don't allocate and free it.
8072         (dom_opt_leave_block): Don't iterate over it.
8073         (eliminate_redundant_computations): Don't return a value.
8074         (cprop_operand, cprop_into_stmt): Ditto.
8075         (optimize_stmt): Don't defer updating stmts.
8076
8077 2009-09-25  Dodji Seketeli  <dodji@redhat.com>
8078
8079         * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
8080         generic_parameter_die, template_parameter_pack_die,
8081         gen_formal_parameter_die, gen_subprogram_die): Adjust after
8082         renaming DW_TAG_formal_parameter_pack and
8083         DW_TAG_template_parameter_pack into DW_TAG_GNU_formal_parameter_pack
8084         and DW_TAG_GNU_template_parameter_pack.
8085
8086 2009-09-25  Anatoly Sokolov  <aesok@post.ru>
8087
8088         * config/v850/v850.h (FUNCTION_VALUE): Remove.
8089         * config/v850/v850.c (v850_function_value): New function.
8090         (TARGET_FUNCTION_VALUE): Define.
8091
8092 2009-09-25  Jakub Jelinek  <jakub@redhat.com>
8093
8094         * tree-vect-stmts.c (vectorizable_call): Call
8095         mark_symbols_for_renaming after vect_finish_stmt_generation.
8096
8097         * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
8098         to loc_descriptor_from_tree.
8099         (add_location_or_const_value_attribute): Pass 0 instead of 2
8100         for decl_by_reference_p decls.
8101
8102 2009-09-25  Richard Guenther  <rguenther@suse.de>
8103
8104         PR middle-end/41463
8105         * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
8106         arrays again.
8107
8108 2009-09-25  Ben Elliston  <bje@au.ibm.com>
8109
8110         * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma
8111         after `power7'.
8112
8113 2009-09-25  Alan Modra  <amodra@bigpond.net.au>
8114
8115         * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
8116         form of instruction.
8117
8118 2009-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8119
8120         PR middle-end/41435
8121         * fold-const.c (const_binop): Handle complex int division.
8122         * tree-complex.c (expand_complex_div_straight,
8123         expand_complex_div_wide): Update comments.
8124
8125 2009-09-24  DJ Delorie  <dj@redhat.com>
8126
8127         PR target/41456
8128         * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13.
8129         (reg_class): Likewise.
8130         (REG_CLASS_NAMES): Likewise.
8131         * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
8132         (m32c_override_options): Disable -fivopts for M32C.
8133
8134 2009-09-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
8135
8136         * config/rs6000/predicates.md (indexed_or_indirect_operand):
8137         Delete VSX load/store with update support.
8138         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto.
8139         * config/rs6000/vsx.md (vsx_mov<mode>): Ditto.
8140         (vsx_movti): Ditto.
8141         (VSX_U): Delete.
8142         (VSbit): Ditto.
8143         (VStype_load_update): Ditto.
8144         (VStype_store_update): Ditto.
8145         (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto.
8146         (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto.
8147
8148         * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX
8149         load/store with update builtins.
8150
8151 2009-09-24  Kai Tietz  <kai.tietz@onevision.com>
8152
8153         * libgcc2.c (L_trampoline): Prototype for getpagesize
8154         and mprotect in WINNT case.
8155
8156 2009-09-24  Anatoly Sokolov  <aesok@post.ru>
8157
8158         * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro.
8159         * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove.
8160         * config/rs6000/rs6000.c (rs6000_function_value): Make static, add
8161         'outgoing' argument.
8162         (TARGET_FUNCTION_VALUE): Define.
8163
8164 2009-09-24  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
8165
8166         * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1.
8167
8168 2009-09-24  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
8169
8170         PR bootstrap/41405
8171         * common.opt: Initialize dwarf_strict to -1.
8172         * toplev.c (process_options): Catch unset dwarf_strict
8173         and set to 0 for all targets not overriding.
8174         * config/darwin.c (darwin_override_options): Catch unset
8175         dwarf_strict and override to 1.
8176
8177 2009-09-24  Jeff Law  <law@redhat.com>
8178
8179         * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
8180
8181 2009-09-24  Richard Guenther  <rguenther@suse.de>
8182
8183         PR tree-optimization/36143
8184         PR tree-optimization/38747
8185         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
8186         create VIEW_CONVERT_EXPRs for TBAA compatible accesses.
8187
8188 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
8189
8190         PR bootstrap/41457
8191         * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED,
8192         return false instead of gcc_unreachable ().  For CONST return the
8193         value returned by recursive call instead of always returning true.
8194         (tree_add_const_value_attribute): Return the value returned by
8195         add_const_value_attribute instead of always returning true if rtl
8196         is non-NULL.
8197
8198 2009-09-23  Justin Seyster  <jrseys@gmail.com>
8199
8200         * Makefile.in (PLUGIN_HEADERS): Include real.h.
8201
8202 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
8203
8204         * cgraphunit.c (cgraph_lower_function): Revert last change.
8205         * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
8206         instead of DECL_NO_STATIC_CHAIN.
8207         * tree-cfg.c (verify_gimple_call): Likewise.
8208         * tree-nested.c (get_chain_decl, get_chain_field,
8209         convert_tramp_reference_op, convert_gimple_call): Likewise.
8210         (convert_all_function_calls): Likewise.  Always set or clear
8211         DECL_STATIC_CHAIN initially, for !n->outer clear it.
8212         (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
8213         * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
8214         if nested.
8215         * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
8216         DECL_NO_STATIC_CHAIN.
8217         * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
8218         instead of DECL_NO_STATIC_CHAIN.
8219         (ix86_function_regparm, find_drap_reg): Likewise.  Don't test
8220         decl_function_context.
8221         * varasm.c (initializer_constant_valid_p): Likewise.
8222         * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
8223         (DECL_STATIC_CHAIN): ... this.
8224         * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
8225         instead of DECL_NO_STATIC_CHAIN.
8226
8227 2009-09-23  Basile Starynkevitch  <basile@starynkevitch.net>
8228             Rafael Avila de Espindola  <espindola@google.com>
8229
8230         * gengtype.c (nb_plugin_files): Make it unsigned to match
8231         num_gt_files. Adjust other variables to avoid warnings.
8232         (main): Allocate an all zero lang_bitmap before each plugin file name
8233         to match regular file names.
8234
8235 2009-09-23  Richard Henderson  <rth@redhat.com>
8236
8237         * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
8238         (TARGET_STATIC_CHAIN): Mention that this hook must be used for
8239         static chain passed in memory.
8240         * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison.
8241         * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN,
8242         STATIC_CHAIN_INCOMING.  Issue a sorry if there's no
8243         STATIC_CHAIN_REGNUM defined.
8244
8245         * config/picochip/picochip-protos.h: s/class/klass/.
8246         * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New.
8247         (picochip_static_chain): New.
8248         * config/picochip/picochip.h (STATIC_CHAIN): Remove.
8249         (STATIC_CHAIN_INCOMING): Remove.
8250
8251         * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New.
8252         (xtensa_static_chain): New.
8253         * config/xtensa/xtensa.h (STATIC_CHAIN): Remove.
8254         (STATIC_CHAIN_INCOMING): Remove.
8255
8256 2009-09-23  Anatoly Sokolov  <aesok@post.ru>
8257
8258         * config/pa/pa.h (FUNCTION_VALUE): Remove macro.
8259         * config/pa/pa-protos.h (function_value): Remove.
8260         * config/pa/pa.c (pa_function_value): Rename from function_value.
8261         Make static, add 'outgoing' argument.
8262         (TARGET_FUNCTION_VALUE): Define.
8263
8264 2009-09-23  Anatoly Sokolov  <aesok@post.ru>
8265
8266         * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
8267         instead of cfun->machine->is_leaf.
8268         * config/avr/avr.h (machine_function): Remove is_leaf field.
8269
8270 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
8271
8272         PR debug/41439
8273         * dwarf2out.c (address_of_int_loc_descriptor): Don't emit
8274         DW_OP_piece after DW_OP_stack_value, adjust size calculations
8275         for it, when DW_OP_stack_value and DW_OP_implicit_value has
8276         the same size, prefer DW_OP_stack_value.
8277         (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref,
8278         loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value.
8279
8280 2009-09-23  Alexandre Oliva  <aoliva@redhat.com>
8281
8282         PR debug/41353
8283         * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses.
8284
8285 2009-09-23  Alexandre Oliva  <aoliva@redhat.com>
8286
8287         PR debug/41248
8288         * cfgexpand.c (convert_debug_memory_address): New.
8289         (expand_debug_expr): Convert base address and offset to the same
8290         mode.  Use it to convert addresses to other modes.  Accept
8291         ptr_mode addresses.
8292
8293 2009-09-23  Dodji Seketeli <dodji@redhat.com>
8294
8295         PR debug/41065
8296         * function.h (types_used_by_vars_hash): Declare new hash table.
8297         (types_used_by_vars_eq, types_used_by_var_decl_insert): Declare
8298         equality and hash function for the hash table.
8299         (types_used_by_cur_var_decl): Declare a new global chained list.
8300         (types_used_by_var_decl_insert): Declare new function.
8301         * function.c (types_used_by_vars_hash): Define the hashtable ...
8302         (types_used_by_vars_eq, types_used_by_vars_do_hash): ... as well as
8303         its equality and hash functions.
8304         (hash_types_used_by_vars_entry): New hash helper.
8305         (types_used_by_cur_var_decl): Define the global chained list.
8306         (used_types_insert): Update the list of types used by the global
8307         variable being parsed.
8308         (types_used_by_var_decl_insert): Define new function.
8309         * c-common.h (record_types_used_by_current_var_decl): Declare ...
8310         * c-common.c (record_types_used_by_current_var_decl): ... new
8311         function.
8312         * c-decl.c (finish_decl): Record the types used by the global
8313         variable declaration we've just parsed.
8314         * dwarf2out.c (premark_used_types): Insert a new line between
8315         comment and function.
8316         (premark_used_types_helper): Fix comment.
8317         (premark_types_used_by_global_vars_helper,
8318         premark_types_used_by_global_vars): New functions.
8319         (prune_unused_types): Do not prune types used by global variables.
8320
8321 2009-09-23  Richard Guenther  <rguenther@suse.de>
8322
8323         * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET
8324         produced for bigendian targets with promoted subregs.
8325
8326 2009-09-23  Richard Guenther  <rguenther@suse.de>
8327
8328         * value-prof.c (gimple_ic): Purge old EH edges only after building
8329         the new ones.
8330
8331 2009-09-23  Nick Clifton  <nickc@redhat.com>
8332
8333         * config/arc/arc.c (arc_trampoline_init): Fix typo.
8334
8335 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
8336
8337         PR bootstrap/41405
8338         * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf.
8339
8340         PR bootstrap/41436
8341         * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
8342         on non-nested functions.
8343
8344 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
8345             Jan Hubicka  <jh@suse.cz>
8346
8347         * dwarf2out.c (loc_list_plus_const): Only define if
8348         DWARF2_DEBUGGING_INFO.
8349         (address_of_int_loc_descriptor): Likewise.
8350
8351         PR debug/41411
8352         * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
8353
8354 2009-09-23  Uros Bizjak  <ubizjak@gmail.com>
8355
8356         PR c/39779
8357         * c-typeck.c (build_binary_op) <short_shift>: Check that integer
8358         constant is more than zero.
8359
8360 2009-09-23  Alan Modra  <amodra@bigpond.net.au>
8361
8362         PR target/40473
8363         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
8364         call final to emit non-scheduled prologue, instead insert at entry.
8365
8366 2009-09-22  Loren J. Rittle  <ljrittle@acm.org>
8367             Joseph S. Myers  <joseph@codesourcery.com>
8368
8369         * doc/install.texi (*-*-freebsd*): Add proper format codes.
8370
8371 2009-09-22  Basile Starynkevitch  <basile@starynkevitch.net>
8372             Rafael Avila de Espindola  <espindola@google.com>
8373
8374         * gengtype.c (is_file_equal): New function.
8375         (close_output_files): Use is_file_equal. Free of->buf.
8376
8377 2009-09-22  Basile Starynkevitch  <basile@starynkevitch.net>
8378             Rafael Avila de Espindola  <espindola@google.com>
8379
8380         * gengtype.c (write_types, write_local): Add the output_header
8381         argument. Update all callers.
8382
8383 2009-09-22  Dodji Seketeli  <dodji@redhat.com>
8384
8385         * dwarf2out.c (template_parameter_pack_die,
8386         gen_formal_parameter_pack_die ): New functions.
8387         (make_ith_pack_parameter_name): Remove this function.
8388         (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
8389         DW_TAG_formal_parameter_pack.
8390         (gen_generic_params_dies): Represent each template parameter pack
8391         by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
8392         represented by usual DW_TAG_template_*_parameter DIEs that are
8393         children of the DW_TAG_template_parameter_pack element DIE.
8394         (generic_parameter_die): This doesn't deal with parameter pack
8395         names anymore. Don't generate DW_AT_name for some DIEs, e.g. children
8396         of parameter pack DIEs.
8397         (gen_formal_parameter_die): Add a flag to not emit DW_AT_name
8398         in certain cases, e.g. for pack elements.
8399         (gen_formal_types_die, gen_decl_die): Adjust usage of
8400         gen_formal_parameter_die.
8401         (gen_subprogram_die): Represent each function parameter pack by a
8402         DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
8403         represented by usual DW_TAG_formal_parameter DIEs that are children
8404         of the DW_TAG_formal_parameter_pack DIE. Remove references to
8405         ____builtin_va_alist decls as no part of the compiler uses those
8406         anymore.
8407         * langhooks.h (struct lang_hooks_for_decls): Add
8408         function_parm_expanded_from_pack_p, get_generic_function_decl
8409         and function_parameter_pack_p hooks.  Fix comment for
8410         get_innermost_generic_parms hook.
8411         * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
8412         LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
8413         macros and use them to initialize lang_hook.
8414
8415 2009-09-22  Richard Henderson  <rth@redhat.com>
8416
8417         * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
8418         (TRAMPOLINE_ADJUST_ADDRESS): Poison.
8419         * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
8420         on TRAMPOLINE_TEMPLATE.
8421         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
8422         TRAMPOLINE_ADJUST_ADDRESS.
8423         * targhooks.c (default_asm_trampoline_template): Remove.
8424         (default_trampoline_adjust_address): Remove.
8425         (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
8426         * targhooks.h: Update decls.
8427
8428 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
8429
8430         * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
8431         * config/i386/cygwin.h (LIBGCJ_SONAME): Define.
8432         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
8433
8434 2009-09-22  Alexandre Oliva  <aoliva@redhat.com>
8435
8436         PR debug/41295
8437         * reload1.c (reload): Reset debug insns with pseudos without
8438         equivalences.
8439
8440 2009-09-22  Janis Johnson  <janis187@us.ibm.com>
8441
8442         * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return
8443         unconditional true for decimal float modes.
8444         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto.
8445         * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto.
8446
8447 2009-09-22  Loren J. Rittle  <ljrittle@acm.org>
8448
8449         * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
8450         Enable a new case for __FreeBSD__ >= 7.
8451         * crtstuff.c:  Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7.
8452         * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP.
8453         * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC
8454         and USE_LD_AS_NEEDED.
8455
8456         * doc/install.texi (*-*-freebsd*): Update target information.
8457
8458 2009-09-22  Richard Guenther  <rguenther@suse.de>
8459
8460         PR middle-end/41395
8461         * tree-dfa.c (get_ref_base_and_extent): Handle trailing
8462         arrays really properly.
8463
8464 2009-09-22  Richard Henderson  <rth@redhat.com>
8465
8466         PR target/41246
8467         * target.h (struct gcc_target): Add asm_out.trampoline_template,
8468         calls.static_chain, calls.trampoline_init,
8469         calls.trampoline_adjust_address.
8470         * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
8471         (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
8472         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
8473         * builtins.c (expand_builtin_setjmp_receiver): Use
8474         targetm.calls.static_chain; only clobber registers.
8475         (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
8476         set up memory attributes properly for the trampoline block.
8477         (expand_builtin_adjust_trampoline): Use
8478         targetm.calls.trampoline_adjust_address.
8479         * calls.c (prepare_call_address): Add fndecl argument.  Use
8480         targetm.calls.static_chain.
8481         * df-scan.c (df_need_static_chain_reg): Remove.
8482         (df_get_entry_block_def_set): Use targetm.calls.static_chain;
8483         consolodate static chain handling.
8484         * doc/tm.texi: Document new hooks.
8485         * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
8486         (init_emit_regs): Don't initialize them.
8487         * expr.h (prepare_call_address): Update decl.
8488         * final.c (profile_function): Use targetm.calls.static_chain.
8489         * function.c (expand_function_start): Likewise.
8490         * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
8491         * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
8492         only clobber registers.
8493         * targhooks.c (default_static_chain): New.
8494         (default_asm_trampoline_template, default_trampoline_init): New.
8495         (default_trampoline_adjust_address): New.
8496         * targhooks.h: Declare them.
8497         * varasm.c (assemble_trampoline_template): Use
8498         targetm.asm_out.trampoline_template.  Make the memory block const
8499         and set its size.
8500
8501         * config/alpha/alpha.c (alpha_trampoline_init): Rename from
8502         alpha_initialize_trampoline.  Make static.  Merge VMS parameter
8503         differences into the TARGET_ABI_OPEN_VMS code block.
8504         (TARGET_TRAMPOLINE_INIT): New.
8505         * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
8506         (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
8507         * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove.
8508         (INITIALIZE_TRAMPOLINE): Remove.
8509
8510         * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
8511         (TRAMPOLINE_TEMPLATE): Merge with ...
8512         (INITIALIZE_TRAMPOLINE): ... this and move ...
8513         * config/arc/arc.c (arc_trampoline_init): ... here.
8514         (TARGET_TRAMPOLINE_INIT): New.
8515
8516         * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
8517         (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
8518         (arm_asm_trampoline_template): New.
8519         (arm_trampoline_init, arm_trampoline_adjust_address): New.
8520         * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE,
8521         THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
8522         code to arm_asm_trampoline_template.
8523         (TRAMPOLINE_ADJUST_ADDRESS): Move code to
8524         arm_trampoline_adjust_address.
8525         (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
8526         adjust for target hook parameters.
8527
8528         * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE):
8529         Remove.
8530
8531         * config/bfin/bfin-protos.h (initialize_trampoline): Remove.
8532         * config/bfin/bfin.c (bfin_asm_trampoline_template): New.
8533         (bfin_trampoline_init): Rename from initialize_trampoline;
8534         make static; update for target hook parameters.
8535         (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
8536         * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to
8537         bfin_asm_trampoline_template.
8538         (INITIALIZE_TRAMPOLINE): Remove.
8539
8540         * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
8541         TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template,
8542         cris_trampoline_init): New.
8543         * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to
8544         cris_asm_trampoline_template.
8545         (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init;
8546         adjust for target hook parameters.
8547
8548         * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove.
8549
8550         * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
8551         TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template,
8552         fr30_trampoline_init): New.
8553         * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to
8554         fr30_asm_trampoline_template.
8555         (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init;
8556         adjust for target hook parameters.
8557
8558         * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New.
8559         (frv_trampoline_init): Rename from frv_initialize_trampoline;
8560         make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook.
8561         * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove.
8562         * config/frv/frv-protos.h (frv_initialize_trampoline): Remove.
8563
8564         * config/h8300/h8300.c (h8300_trampoline_init): New.
8565         (TARGET_TRAMPOLINE_INIT): New.
8566         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code
8567         to h8300_trampoline_init and adjust for hook parameters.
8568
8569         * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove.
8570         * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New.
8571         (ia64_trampoline_init): Rename from ia64_initialize_trampoline;
8572         make static; adjust for hook parameters.
8573         * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove.
8574
8575         * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
8576         (TARGET_TRAMPOLINE_INIT): New.
8577         (iq2000_asm_trampoline_template, iq2000_trampoline_init): New.
8578         * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to
8579         iq2000_asm_trampoline_template.
8580         (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init.
8581         (TRAMPOLINE_CODE_SIZE): New.
8582         (TRAMPOLINE_SIZE): Use it.
8583         (TRAMPOLINE_ALIGNMENT): Follow Pmode.
8584
8585         * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove.
8586         * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New.
8587         (m32c_trampoline_init): Rename from m32c_initialize_trampoline;
8588         adjust for hook parameters.
8589         * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove.
8590
8591         * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New.
8592         (m32r_trampoline_init): New.
8593         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to
8594         m32r_trampoline_init.
8595
8596         * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New.
8597         (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline;
8598         make static; update for hook parameters.
8599         * config/m68hc11/m68hc11-protos.h: Update.
8600         * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove.
8601
8602         * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
8603         (TARGET_TRAMPOLINE_INIT): New.
8604         (mcore_function_value): Fix typo.
8605         (mcore_asm_trampoline_template, mcore_trampoline_init): New.
8606         * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
8607         to mcore_asm_trampoline_template.
8608         (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
8609
8610         * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove.
8611         * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New.
8612         (mep_trampoline_init): Rename from mep_init_trampoline; make static;
8613         update for hook parameters.
8614         * config/mep/mep-protos.h (mep_init_trampoline): Remove.
8615
8616         * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
8617         mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
8618         mips_trampoline_init): New.
8619         * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to
8620         mips_asm_trampoline_template.
8621         (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init;
8622         update for hook parameters.
8623
8624         * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
8625         (TARGET_TRAMPOLINE_INIT): New.
8626         (mmix_trampoline_size): Remove.
8627         (mmix_asm_trampoline_template): Rename from mmix_trampoline_template;
8628         make static.  Remove out-of-date tetra vs octa comment.
8629         (mmix_trampoline_init): Rename from mmix_initialize_trampoline;
8630         make static; update for hook parameters.
8631         * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove.
8632         (INITIALIZE_TRAMPOLINE): Remove.
8633         (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size.
8634         (TRAMPOLINE_ALIGNMENT): New.
8635         * gcc/config/mmix/mmix-protos.h: Update.
8636
8637         * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
8638         mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
8639         mn10300_trampoline_init): New.
8640         * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to
8641         mn10300_asm_trampoline_template.
8642         (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init.
8643
8644         * config/moxie/moxie.c (moxie_static_chain,
8645         moxie_asm_trampoline_template, moxie_trampoline_init,
8646         TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE,
8647         TARGET_TRAMPOLINE_INIT): New.
8648         * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to
8649         moxie_trampoline_init.
8650         (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template.
8651         (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
8652
8653         * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
8654         pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
8655         pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS,
8656         pa_trampoline_adjust_address): New.
8657         * config/pa/pa.h (TRAMPOLINE_TEMPLATE): Move code to
8658         pa_asm_trampoline_template.
8659         (TRAMPOLINE_ALIGNMENT): New.
8660         (TRAMPOLINE_CODE_SIZE): Move to pa.c.
8661         (INITIALIZE_TRAMPOLINE): Move code to pa_trampoline_init;
8662         adjust for hook parameters.
8663         (TRAMPOLINE_ADJUST_ADDRESS): Move code to pa_trampoline_adjust_address.
8664
8665         * config/pdp11/pdp11.c (pdp11_trampoline_init): New.
8666         (TARGET_TRAMPOLINE_INIT): New.
8667         * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Remove.
8668         (INITIALIZE_TRAMPOLINE): Move code to pdp11_trampoline_init.
8669
8670         * config/picochip/picochip.h (INITIALIZE_TRAMPOLINE): Remove.
8671
8672         * config/rs6000/rs6000-protos.h (rs6000_initialize_trampoline): Remove.
8673         * config/rs6000/rs6000.c (TARGET_TRAMPOLINE_INIT): New.
8674         (rs6000_trampoline_init): Rename from rs6000_initialize_trampoline;
8675         make static; adjust parameters for the hook.
8676         * config/rs6000/rs6000.h (INITIALIZE_TRAMPOLINE): Remove.
8677
8678         * config/s390/s390.c (s390_asm_trampoline_template): Rename from
8679         s390_trampoline_template; make static.
8680         (s390_trampoline_init): Rename from s390_initialize_trampoline;
8681         make static; adjust for target hook.
8682         (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
8683         * config/s390/s390-protos.h: Remove trampoline decls.
8684         * config/s390/s390.h (INITIALIZE_TRAMPOLINE): Remove.
8685         (TRAMPOLINE_TEMPLATE): Remove.
8686         (TRAMPOLINE_ALIGNMENT): New.
8687
8688         * config/score/score-protos.h (score_initialize_trampoline): Remove.
8689         * config/score/score.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
8690         (TARGET_TRAMPOLINE_INIT): New.
8691         (score_asm_trampoline_template): New.
8692         (score_trampoline_init): Rename from score_initialize_trampoline;
8693         make static; adjust for hook parameters.
8694         * config/score/score.h (TRAMPOLINE_TEMPLATE): Move code to
8695         score[37]_asm_trampoline_template.
8696         (INITIALIZE_TRAMPOLINE): Remove.
8697         * config/score/score3.c (score3_asm_trampoline_template): New.
8698         (score3_trampoline_init): Rename from score3_initialize_trampoline;
8699         adjust for target hook.
8700         * config/score/score7.c (score7_asm_trampoline_template): New.
8701         (score7_trampoline_init): Rename from score7_initialize_trampoline;
8702         adjust for target hook.
8703         * config/score/score3.h, config/score/score7.h: Update.
8704
8705         * config/sh/sh-protos.h (sh_initialize_trampoline): Remove.
8706         * config/sh/sh.c (TARGET_TRAMPOLINE_INIT): New.
8707         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
8708         (sh_trampoline_init): Rename from sh_initialize_trampoline;
8709         make static; adjust for target hook parameters.
8710         (sh_trampoline_adjust_address): New.
8711         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): New.
8712         (TRAMPOLINE_ADJUST_ADDRESS): Move code to sh_trampoline_adjust_address.
8713
8714         * config/sparc/sparc.c (TARGET_TRAMPOLINE_INIT): New.
8715         (sparc32_initialize_trampoline): Rename from
8716         sparc_initialize_trampoline; make static; replace tramp parameter
8717         with m_tramp and update memory accesses.
8718         (sparc64_initialize_trampoline): Similarly.
8719         (sparc_trampoline_init): New.
8720         * config/sparc/sparc-protos.h: Remove trampoline decls.
8721         * config/sparc/sparc.h (INITIALIZE_TRAMPOLINE): Remove.
8722         * config/sparc/sparc.md (nonlocal_goto): Don't use static_chain_rtx.
8723
8724         * config/spu/spu.c (TARGET_TRAMPOLINE_INIT): New.
8725         (array_to_constant): Make ARR parameter const.
8726         (spu_trampoline_init): Rename from spu_initialize_trampoline;
8727         make static; update for hook parameters.
8728         * config/spu/spu-protos.h: Update decls.
8729         * config/spu/spu.h (INITIALIZE_TRAMPOLINE): Remove.
8730
8731         * config/stormy16/stormy16.c (xstormy16_trampoline_init): Rename
8732         from xstormy16_initialize_trampoline; make static; update for
8733         hook parameters.
8734         (TARGET_TRAMPOLINE_INIT): New.
8735         * config/stormy16/stormy16.h (INITIALIZE_TRAMPOLINE): Remove.
8736
8737         * config/v850/v850.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
8738         (TARGET_TRAMPOLINE_INIT): New.
8739         (v850_can_eliminate): Make static.
8740         (v850_asm_trampoline_template, v850_trampoline_init): New.
8741         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Move code to
8742         v850_asm_trampoline_template.
8743         (INITIALIZE_TRAMPOLINE): Move code to v850_trampoline_init
8744         and adjust for target hook parameters.
8745
8746         * config/vax/vax.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
8747         (TARGET_TRAMPOLINE_INIT): New.
8748         (vax_asm_trampoline_template, vax_trampoline_init): New.
8749         * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Move code to
8750         vax_asm_trampoline_template.
8751         (INITIALIZE_TRAMPOLINE): Move code to vax_trampoline_init.
8752
8753         * config/xtensa/xtensa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
8754         (TARGET_TRAMPOLINE_INIT): New.
8755         (xtensa_asm_trampoline_template): Rename from
8756         xtensa_trampoline_template; make static.
8757         (xtensa_trampoline_init): Rename from xtensa_initialize_trampoline;
8758         make static; update for hook parameters.
8759         * config/xtensa/xtensa-protos.h: Remove trampoline decls.
8760         * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Remove.
8761         (INITIALIZE_TRAMPOLINE): Remove.
8762
8763         * config/i386/i386.c (ix86_function_regparm): Do not issue an
8764         error for nested functions with regparm=3.
8765         (ix86_compute_frame_layout): Adjust frame pointer offset for
8766         ix86_static_chain_on_stack.
8767         (ix86_expand_prologue): Handle ix86_static_chain_on_stack.
8768         (ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset,
8769         don't reset to UNITS_PER_WORD.
8770         (ix86_emit_leave): Adjust ix86_cfa_state.
8771         (ix86_expand_epilogue): Handle ix86_static_chain_on_stack.
8772         (ix86_static_chain): New.
8773         (ix86_trampoline_init): Rename from x86_initialize_trampoline;
8774         make static; update for target hook parameters; use ix86_static_chain.
8775         (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
8776         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove.
8777         (INITIALIZE_TRAMPOLINE): Remove.
8778         (TRAMPOLINE_SIZE): Use 24 for 64-bit.
8779         (struct machine_function): Use BOOL_BITFIELD; rearrange bitfields
8780         to the end.  Add static_chain_on_stack.
8781         (ix86_static_chain_on_stack): New.
8782
8783         * config/m68k/m68k.c (TARGET_TRAMPOLINE_INIT): New.
8784         (m68k_output_mi_thunk): Don't use static_chain_rtx.
8785         (m68k_trampoline_init): New.
8786         * config/m68k/m68k.h (INITIALIZE_TRAMPOLINE): Move code to
8787         m68k_trampoline_init and adjust for hook parameters.
8788         * config/m68k/netbsd-elf.h (TRAMPOLINE_TEMPLATE): Remove.
8789         (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Remove.
8790
8791 2009-09-22  Jakub Jelinek  <jakub@redhat.com>
8792
8793         * config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes
8794         for __builtin_altivec_vcmpgt{sb,uh,sh,uw}.
8795
8796         * reload1.c (reload): Call wrap_constant when substituting
8797         reg for equiv inside of DEBUG_INSNs.
8798
8799         PR bootstrap/41405
8800         * dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die,
8801         add_call_src_coords_attributes, add_high_low_attributes,
8802         gen_compile_unit_die, gen_type_die_with_usage force_decl_die,
8803         gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish,
8804         dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions
8805         when -gdwarf-2 -gstrict-dwarf.
8806         (loc_list_from_tree): Likewise.  Avoid using DWARF4 additions when
8807         -gdwarf-[23] -gstrict-dwarf.
8808         (address_of_int_loc_descriptor, loc_descriptor,
8809         loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using
8810         DWARF4 additions when -gdwarf-[23] -gstrict-dwarf.
8811         * common.opt (gno-strict-dwarf, gstrict-dwarf): New options.
8812
8813 2009-09-22  Richard Guenther  <rguenther@suse.de>
8814
8815         PR tree-optimization/41428
8816         * tree-ssa-ccp.c (ccp_fold_stmt): New function.
8817         (ccp_finalize): Pass it to substitute_and_fold.
8818
8819 2009-09-22  Richard Guenther  <rguenther@suse.de>
8820
8821         * tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
8822         (substitute_and_fold): Adjust prototype.
8823         * tree-vrp.c (vrp_evaluate_conditional): Make static.
8824         (simplify_stmt_using_ranges): Likewise.
8825         (fold_predicate_in): Move here from tree-ssa-propagate.c.
8826         (vrp_fold_stmt): New function.
8827         (vrp_finalize): Pass it to substitute_and_fold.
8828         * tree-flow.h (vrp_evaluate_conditional): Remove.
8829         (simplify_stmt_using_ranges): Likewise.
8830         * tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold.
8831         * tree-ssa-copy.c (fini_copy_prop): Likewise.
8832         * tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded
8833         member.
8834         (fold_predicate_in): Move to tree-vrp.c.
8835         (substitute_and_fold): Use the callback instead of calling into
8836         tree-vrp.c functions directly.
8837
8838 2009-09-22  Jakub Jelinek  <jakub@redhat.com>
8839
8840         * dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
8841         comparison warning on rs6000.
8842
8843         PR middle-end/41429
8844         * tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
8845         GIMPLE_EH_MUST_NOT_THROW cleanup.
8846         (verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
8847
8848 2009-09-22  Jack Howarth  <howarth@bromo.med.uc.edu>
8849
8850         PR middle-end/41260
8851         * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
8852         * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
8853         LIB_SPEC for darwin10 and later since it always uses the unwinder in
8854         libSystem which is derived from the gcc 4.2.1 unwinder.
8855
8856 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
8857
8858         PR middle-end/41357
8859         * varasm.c (default_encode_section_info): Copy TLS model into
8860         sym_ref flags regardless of backend support for TLS, for all
8861         model types except TLS_MODEL_EMULATED.
8862
8863 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
8864
8865         PR bootstrap/41404
8866         * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
8867         we can handle it correctly.
8868
8869 2009-09-21  Gerald Pfeifer  <gerald@pfeifer.com>
8870
8871         * doc/install.texi (os2): Remove section.
8872
8873 2009-09-21  Gerald Pfeifer  <gerald@pfeifer.com>
8874
8875         * doc/standards.texi (Objective-C): Adjust two URLs.
8876
8877 2009-09-21  Giuseppe Scrivano <gscrivano@gnu.org>
8878
8879         * tree-tailcall.c (process_assignment): Don't check if a
8880         multiplication or an addition are already present.
8881         (find_tail_calls): Combine multiple additions and multiplications.
8882         (adjust_accumulator_values): Emit accumulators.
8883
8884 2009-09-21  Kai Tietz  <kai.tietz@onevision.com>
8885
8886         * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for
8887         xmm register restore.
8888
8889 2009-09-21  Jan Hubicka  <jh@suse.cz>
8890
8891         * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL.
8892         (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and
8893         restore at the end.
8894
8895 2009-09-21  Eric Botcazou  <ebotcazou@adacore.com>
8896
8897         * stor-layout.c (layout_type): Remove obsolete code.
8898
8899 2009-09-20  H.J. Lu  <hongjiu.lu@intel.com>
8900
8901         PR middle-end/41395
8902         * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2.
8903
8904 2009-09-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8905
8906         PR middle-end/30789
8907         * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
8908         (do_mpc_ckconv): Accept FORCE_CONVERT parameter.
8909         (fold_builtin_2, do_mpc_arg1): Update accordingly.
8910         * fold-const.c (const_binop): Likewise.
8911         * real.h (do_mpc_arg2): Update prototype.
8912
8913 2009-09-20  Jan Hubicka  <jh@suse.cz>
8914
8915         * dwarf2out.c (add_const_value_attribute): Return true if successful.
8916         (add_location_or_const_value_attribute): Rewrite using
8917         loc_list_from_tree.
8918         (tree_add_const_value_attribute): Return true if successful.
8919         (tree_add_const_value_attribute_for_decl): Likewise.
8920
8921         * dwarf2out.c (address_of_int_loc_descriptor): Break out from ...
8922         (loc_descriptor): ... here;
8923         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
8924         (cst_pool_loc_descr): Break out from ...; do not reffer constant
8925         pool items that was not marked for output.
8926         (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR;
8927         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
8928         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
8929         handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR,
8930         IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of
8931         CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use
8932         DW_OP_stack_value to get address of items that are not available
8933         as addresses.
8934         (dw_loc_list): Handle single element lists correctly.
8935
8936 2009-09-20  Kai Tietz  <kai.tietz@onevision.com>
8937             Pascal Obry  <obry@adacore.com>
8938
8939         * unwind-dw2-fde.c (classify_object_over_fdes):
8940         Cast the constant 1 to _Unwind_Ptr.
8941         (add_fdes): Likewise.
8942         (linear_search_fdes): Likewise.
8943
8944 2009-09-20  Eric Botcazou  <ebotcazou@adacore.com>
8945
8946         * stor-layout.c (set_sizetype): Avoid useless type copy.
8947
8948 2009-09-20  Richard Sandiford  <rdsandiford@googlemail.com>
8949
8950         * configure.ac (gcc_cv_ld_mips_personality_relaxation): New
8951         feature check.
8952         (HAVE_LD_PERSONALITY_RELAXATION): New macro definition.
8953         * configure, config.in: Regenerate.
8954         * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect |
8955         DW_EH_PE_absptr.
8956         * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro.
8957         (ASM_PREFERRED_EH_DATA_FORMAT): Define.  Use MIPS_EH_INDIRECT
8958         for global data if the output could be used in a shared library.
8959         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
8960         to 0 if TARGET_WRITABLE_EH_FRAME.
8961
8962 2009-09-20  Paolo Bonzini <bonzini@gnu.org>
8963
8964         PR rtl-optimization/39886
8965         * combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU
8966         just when insn is equal to BB_END (bb).
8967
8968 2009-09-19  Adam Nemet  <anemet@caviumnetworks.com>
8969
8970         * config/mips/mips.opt (mrelax-pic-calls): New option.
8971         * config/mips/mips.c (mips_strip_unspec_address): Move it up in
8972         the file.
8973         (mips_unspec_call): Change "unspec_call" expander into this.
8974         (mips_strip_unspec_call): New function.
8975         (mips_got_load): Call mips_unspec_call instead of
8976         gen_unspec_call<mode>.
8977         (mips16_build_call_stub): Fix comment for fp_code.  Adjust call to
8978         MIPS_CALL.
8979         (mips_cfg_in_reorg): New function.
8980         (mips16_lay_out_constants): Use it to decide whether to call
8981         CFG-aware insn splitting.
8982         (r10k_insert_cache_barriers): Move CFG set-up code from here to
8983         mips_reorg.  Move DF set-up code from here ...
8984         (mips_df_reorg): ... to here.  Call r10k_insert_cache_barriers
8985         from here.
8986         (mips_reorg): Call mips_df_reorg instead of
8987         r10k_insert_cache_barriers.  Move CFG set-up code here from
8988         r10k_insert_cache_barriers.
8989         (mips_call_expr_from_insn): New function.
8990         (mips_pic_call_symbol_from_set): Likewise.
8991         (mips_find_pic_call_symbol): Likewise.
8992         (mips_annotate_pic_call_expr): Likewise.
8993         (mips_get_pic_call_symbol): Likewise.
8994         (mips_annotate_pic_calls): Likewise.
8995         (mips_override_options): Disable -mrelax-pic-calls unless PIC
8996         calls are used.
8997         (mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16.
8998         * config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it.
8999         * config/mips/mips.h (MIPS_CALL): Use it to print the .reloc
9000         directive.
9001         * config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec.
9002         (unspec_call<mode>): Remove it.
9003         (sibcall_internal, sibcall_value_internal,
9004         sibcall_value_multiple_internal, call_internal, call_split,
9005         call_value_internal, call_value_split,
9006         call_value_multiple_internal, call_value_multiple_split): Pass
9007         SIZE_OPNO to MIPS_CALL.
9008         (call_internal_direct, call_direct_split,
9009         call_value_internal_direct, call_value_direct_split): Pass -1 as
9010         SIZE_OPNO to MIPS_CALL.
9011         * configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR.
9012         * configure: Regenerate.
9013         * doc/invoke.texi (Option Summary): Add -mrelax-pic-calls
9014         and -mno-relax-pic-calls.
9015         (MIPS Options): Document -mrelax-pic-calls and -mno-relax-pic-calls.
9016
9017 2009-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9018
9019         PR bootstrap/35619
9020         * Makefile.in (stmp-fixinc): Ensure `include-fixed' is created
9021         in the directory this rule is called from, rather than the
9022         toplevel 'gcc' directory, to fix in-tree build.
9023
9024 2009-09-19  Chris Demetriou  <cgd@google.com>
9025
9026         PR preprocessor/28435:
9027         * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
9028         to cpplib that the preprocessor output is needed.
9029
9030 2009-09-19  Jakub Jelinek  <jakub@redhat.com>
9031
9032         * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>,
9033         *restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>,
9034         *return_and_restore_fpregs_<mode>,
9035         *return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier.
9036
9037         PR bootstrap/41397
9038         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse
9039         instead of assuming it has always a REG inside of it.
9040
9041 2009-09-18  Gerald Pfeifer  <gerald@pfeifer.com>
9042
9043         * config/freebsd.h: Update comment on types.
9044         (WINT_TYPE): Define.
9045
9046 2009-09-18  Jason Merrill  <jason@redhat.com>
9047
9048         * c.opt: Add -fno-deduce-init-list.
9049
9050 2009-09-18  Neil Vachharajani  <nvachhar@google.com>
9051
9052         * value-prof.c (interesting_stringop_to_profile_p): Added output
9053         argument to indicate which parameter is the size parameter.
9054         * value-prof.c (gimple_stringop_fixed_value): Use
9055         INTERESTING_STRINGOP_TO_PROFILE_P to find size argument.
9056         * value-prof.c (gimple_stringops_transform): Update call sites to
9057         INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change.
9058
9059 2009-09-18  Uros Bizjak  <ubizjak@gmail.com>
9060
9061         PR target/38288
9062         From David Binderman <dcb314@hotmail.com>:
9063         * gcc/config/i386/i386.c (ix86_function_regparm): Remove useless
9064         local variable f.  Remove stale comments.
9065         (ix86_compute_frame_layout): Remove useless local variable total_size.
9066         Remove #if 0'd code.
9067         (legitimate_address_p): Remove useless local variables
9068         reason_rtx and reason.
9069         (ix86_split_copysign_const): Remove useless local variable op1.
9070         (scale_counter): Remove useless local variable piece_size_mask.
9071
9072 2009-09-18  Jakub Jelinek  <jakub@redhat.com>
9073
9074         * stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
9075         output decl.
9076
9077 2009-09-17  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
9078
9079         PR target/40913
9080         * config/pa/t-hpux-shlib: Set soname in libgcc_s.sl.
9081
9082 2009-09-17  Jakub Jelinek  <jakub@redhat.com>
9083
9084         * c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of
9085         TYPE_STUB_DECL.
9086
9087 2009-09-17  Alexandre Oliva  <aoliva@redhat.com>
9088
9089         * dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and
9090         DW_OP_implicit_value even without dwarf_version 4.
9091
9092 2009-09-17  Jan Hubicka  <jh@suse.cz>
9093
9094         * dwarf2out.c: Include tree-pass.h and gimple.h.
9095         (loc_list_plus_const): New function.
9096         (loc_descriptor_from_tree_1): Rename to ...
9097         (loc_descriptor_from_tree): ... remove original.
9098         (loc_list_from_tree): New function.
9099         (add_AT_location_description): Accept location list.
9100         (tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree.
9101         (concatn_mem_loc_descriptor): Remove.
9102         (mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by
9103         returning NULL.
9104         (secname_for_decl): Move up.
9105         (hidden_reference_p): New function; break out from ...
9106         (loc_by_refernece): ... here; move up.
9107         (dw_loc_list): New function.
9108         (single_element_loc_list): New function.
9109         (single_element_loc_list_p): New function.
9110         (add_loc_descr_to_each): New function.
9111         (add_loc_list): New function.
9112         (loc_descr_from_tree): Make wraper of loc_list_from_tree.
9113         (loc_list_from_tree): Reroganized from loc_descr_from_tree;
9114         add diagnostics why expansion failed.
9115         (add_location_or_const_value_attribute): Support location lists.
9116         (add_bound_info): Likewise.
9117         (descr_info_loc): Update call of loc_descriptor_from_tree.
9118         (gen_variable_die): Work on location lists.
9119         * final.c (pass_final): Add dump file.
9120         * Makefile.in (dwarf2out.o): Add new dependencies.
9121
9122 2009-09-17  Janis Johnson  <janis187@us.ibm.com>
9123
9124         PR c/41049
9125         * real.c decimal_from_integer, decimal_integer_string): New.
9126         (real_from_integer): Use them as special case for decimal float.
9127         * config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding.
9128         (_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td):
9129         Do not append zero after the decimal point in string to convert.
9130
9131 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
9132
9133         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
9134         for ARRAY_REFs.  Use array_ref_{low,up}_bound to determine bounds.
9135
9136 2009-09-17  Martin Jambor  <mjambor@suse.cz>
9137
9138         * common.opt (fipa-sra): New switch.
9139         * opts.c (decode_options): Turn flag_ipa_sra on for opt2.
9140         * timevar.def (TV_IPA_SRA): New timevar.
9141         * params.def (ipa-sra-ptr-growth-factor): New parameter.
9142         * doc/invoke.texi: Document -fipa-sra and ipa-sra-ptr-growth-factor.
9143         * tree-sra.c: Include cgraph.c.
9144         (enum sra_mode): Added SRA_MODE_EARLY_IPA.
9145         (struct access): Added fields stmt, grp_maybe_modified, grp_scalar_ptr
9146         and grp_not_necessarilly_dereferenced.
9147         (func_param_count): New variable.
9148         (encountered_apply_args): New variable.
9149         (bb_dereferences): New variable.
9150         (final_bbs): New variable.
9151         (no_accesses_representant): New variable.
9152         (no_accesses_p): New function.
9153         (dump_access): Dump the new fields.
9154         (sra_initialize): Set encountered_apply_args to false.
9155         (get_ssa_base_param): New function.
9156         (mark_parm_dereference): New function.
9157         (create_access): Caring for INIDRECT_REFs and different handling of
9158         varialble length accesses in early IPA SRA.  Store the stmt - a new
9159         parameter - to the new access.
9160         (build_access_from_expr_1): New parameter stmt, passed to
9161         create_access.  Handle INDIRECT_REFs.
9162         (build_access_from_expr): Pass the current statement to
9163         build_access_from_expr_1.
9164         (disqualify_ops_if_throwing_stmt): Trigger only in intraprocedural
9165         passes.
9166         (build_accesses_from_assign): Pass the current statement to
9167         build_access_from_expr_1.  Do not create assign links in IPA-SRA.
9168         (scan_function): Call handle_ssa_defs on phi nodes.  Set bits in
9169         final_bbs when necessary.  Check for calls to __builtin_apply_args.
9170         Fixup EH info if anythng was changed.
9171         (is_unused_scalar_param): New function.
9172         (ptr_parm_has_direct_uses): New function.
9173         (find_param_candidates): New function.
9174         (mark_maybe_modified): New function.
9175         (analyze_modified_params): New function.
9176         (propagate_dereference_distances): New function.
9177         (dump_dereferences_table): New function.
9178         (analyze_caller_dereference_legality): New function.
9179         (unmodified_by_ref_scalar_representative): New function.
9180         (splice_param_accesses): New function.
9181         (decide_one_param_reduction): New function.
9182         (enum ipa_splicing_result): New type.
9183         (splice_all_param_accesses): New function.
9184         (get_param_index): New function.
9185         (turn_representatives_into_adjustments): New function.
9186         (analyze_all_param_acesses): New function.
9187         (get_replaced_param_substitute): New function.
9188         (get_adjustment_for_base): New function.
9189         (replace_removed_params_ssa_names): New function.
9190         (sra_ipa_reset_debug_stmts): New function.
9191         (sra_ipa_modify_expr): New function.
9192         (sra_ipa_modify_assign): New function.
9193         (convert_callers): New function.
9194         (modify_function): New function.
9195         (ipa_sra_preliminary_function_checks): New function.
9196         (ipa_early_sra): New function.
9197         (ipa_early_sra_gate): New function.
9198         (pass_early_ipa_sra): New variable.
9199         * Makefile.in (tree-sra.o): Add cgraph.h to dependencies.
9200
9201 2009-09-17  Michael Matz  <matz@suse.de>
9202
9203         PR middle-end/41347
9204         * tree.c (build_type_attribute_qual_variant): Export.
9205         * tree.h (build_type_attribute_qual_variant): Declare.
9206         * tree-inline.c (remap_type_1): Use it to build variants with
9207         the original qualifiers and attributes.
9208
9209 2009-09-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9210
9211         * cfglayout.c (fixup_reorder_chain): Accept conditional jumps
9212         without a fallthrough edge.
9213
9214 2009-09-16  DJ Delorie  <dj@redhat.com>
9215
9216         * config/m32c/m32c.c (m32c_emit_epilogue): Check for R8C or M16C
9217         chip and ignore the "fast_interrupt" attribute if so.
9218
9219 2009-09-16  Richard Henderson  <rth@redhat.com>
9220
9221         PR middle-end/41360
9222         * cfgbuild.c (find_bb_boundaries): Really re-instate 2009-09-02
9223         barrier fix.
9224
9225 2009-09-16  Richard Henderson  <rth@redhat.com>
9226
9227         PR target/41246
9228         * tree-cfg.c (verify_gimple_call): Validate that gimple_call_chain
9229         is set only if DECL_NO_STATIC_CHAIN is unset.
9230         * tree-nested.c (iter_nestinfo_start, iter_nestinfo_next): New.
9231         (FOR_EACH_NEST_INFO): New.
9232         (walk_all_functions): Use it.
9233         (finalize_nesting_tree): Likewise.
9234         (unnest_nesting_tree): Likewise.
9235         (free_nesting_tree): Use iter_nestinfo_start, iter_nestinfo_next.
9236         (get_chain_decl, get_chain_field): Reset DECL_NO_STATIC_CHAIN.
9237         (convert_gimple_call): Early out if gimple_call_chain already set.
9238         (convert_all_function_calls): Iterate until no new functions
9239         require a static chain.
9240         (finalize_nesting_tree_1): Assert DECL_NO_STATIC_CHAIN is unset
9241         when building a trampoline.  Use dump_function_to_file instead
9242         of dump_function.
9243         (lower_nested_functions): Open dump_file.  Validate that decls
9244         that have DECL_NO_STATIC_CHAIN from the front end don't have that
9245         bit reset by this pass.
9246
9247 2009-09-16  Michael Matz  <matz@suse.de>
9248
9249         PR fortran/41212
9250         * tree.h (struct tree_decl_common): Add decl_restricted_flag,
9251         shorten decl_common_unused.
9252         (DECL_RESTRICTED_P): New accessor.
9253         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use it
9254         to disambiguate marked decls and restrict pointers.
9255
9256 2009-09-16  Richard Henderson  <rth@redhat.com>
9257
9258         PR middle-end/41360
9259         * cfgbuild.c (find_bb_boundaries): Re-instate 2009-09-02 barrier fix.
9260
9261 2009-09-16  Jakub Jelinek  <jakub@redhat.com>
9262
9263         * integrate.c (set_block_abstract_flags): Call
9264         set_decl_abstract_flags also on BLOCK_NONLOCALIZED_VARs.
9265
9266 2009-09-16  Richard Guenther  <rguenther@suse.de>
9267
9268         PR middle-end/34011
9269         * tree-flow-inline.h (may_be_aliased): Compute readonly variables
9270         as non-aliased.
9271
9272 2009-09-16  DJ Delorie  <dj@redhat.com>
9273             Kaz Kojima  <kkojima@gcc.gnu.org>
9274
9275         * config/sh/sh.c (output_stack_adjust): Add new argument frame_p.
9276         (sh_expand_prologue): Update calls to output_stack_adjust.
9277         (sh_expand_epilogue): Likewise.
9278
9279 2009-09-15  Adam Nemet  <anemet@caviumnetworks.com>
9280
9281         PR bootstrap/41349
9282         * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when
9283         trying to limit the extent of searches in the insn stream.
9284
9285 2009-09-15  Nathan Froyd  <froydnj@codesourcery.com>
9286             Jakub Jelinek  <jakub@redhat.com>
9287
9288         PR target/41175
9289         PR target/40677
9290         * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
9291         problem.
9292         (SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
9293         SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): New strategy bits.
9294         (rs6000_savres_strategy): Always save FP registers inline if the
9295         target doesn't support hardware double-precision.  Set the above
9296         bits in return value when needed.
9297         (rs6000_savres_routine_sym): Fix computation for cache selector.
9298         Mark the generated symbol as a function.  Rename exitp argument to
9299         lr.  Move code for determining the name of the symbol...
9300         (rs6000_savres_routine_name): ...here.  New function.  Add cases for
9301         getting the names right on AIX and 64-bit Linux.
9302         (savres_routine_name): New variable.
9303         (rs6000_make_savres_rtx): Rename exitp argument to lr.  Don't assert
9304         lr isn't set when savep.  Use r12 resp. r1 instead of r11 depending
9305         on what the target routine uses as a base register.  If savep && lr
9306         describe saving of r0 into memory slot.
9307         (rs6000_emit_prologue): Correct use of call_used_regs.  Fix out of
9308         line calls for AIX ABI.
9309         (rs6000_output_function_prologue): Use rs6000_savres_routine_name to
9310         determine FP save/restore functions.
9311         (rs6000_emit_stack_reset): Handle savres if sp_offset != 0 and
9312         frame_reg_rtx != sp_reg_rtx.  Use gen_add3_insn instead of
9313         gen_addsi3.
9314         (rs6000_emit_epilogue): Adjust computation of restore_lr.
9315         Duplicate restoration of LR and execute the appropriate one
9316         depending on whether GPRs are being restored inline.  Set r11 from
9317         offsetted frame_reg_rtx instead of sp_reg_rtx; if frame_reg_rtx is
9318         r11, adjust sp_offset.  Use gen_add3_insn instead of gen_addsi3.
9319         Fix out of line calls for AIX ABI.
9320         * config/rs6000/rs6000.md (*return_and_restore_fpregs_aix_<mode>):
9321         New insn.
9322         * config/rs6000/spe.md (*save_gpregs_spe): Use explicit match for
9323         register 11.
9324         (*restore_gpregs_spe): Likewise.
9325         (*return_and_restore_gpregs_spe): Likewise.
9326         * config/rs6000/linux64.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
9327         Define to empty string unconditionally.
9328         * config/rs6000/sysv4.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
9329         Define to empty string unconditionally.
9330         (GP_SAVE_INLINE, FP_SAVE_INLINE): Handle TARGET_64BIT the same as
9331         !TARGET_64BIT.
9332
9333 2009-09-15  Jan Hubicka  <jh@suse.cz>
9334
9335         * doc/invoke.texi (inline-insns-auto): Drop from 60 to 50.
9336         * params.def (inline-insns-auto): Likewise.
9337
9338 2009-09-15  Martin Jambor  <mjambor@suse.cz>
9339
9340         * ipa-inline.c (estimate_function_body_sizes): Dump info about
9341         individual statements only at TDF_DETAILS dump level.  Format
9342         source for 80 characters per line.
9343
9344 2009-09-15  Christian Bruel  <christian.bruel@st.com>
9345
9346         * regrename.c (do_replace): Update REG_DEAD notes.
9347
9348 2009-09-15  Revital Eres  <eres@il.ibm.com>
9349
9350         * doc/tm.texi (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Document.
9351         * targhooks.c (default_builtin_support_vector_misalignment):
9352         New builtin function.
9353         * targhooks.h (default_builtin_support_vector_misalignment):
9354         Declare.
9355         * target.h (builtin_support_vector_misalignment):
9356         New field in struct gcc_target.
9357         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Call
9358         new builtin function.
9359         * target-def.h (TARGET_SUPPORT_VECTOR_MISALIGNMENT):
9360         Define.
9361         * config/rs6000/rs6000.c
9362         (rs6000_builtin_support_vector_misalignment): New function.
9363         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Define.
9364
9365 2009-09-15  Jie Zhang  <jie.zhang@analog.com>
9366
9367         * config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P
9368         instead of INSN_P.
9369         (bfin_optimize_loop): Likewise.
9370         (bfin_gen_bundles): Likewise.
9371         (workaround_speculation): Likewise.
9372         (find_load): Return NULL_RTX for debug_insn.
9373
9374 2009-09-15  Uros Bizjak  <ubizjak@gmail.com>
9375
9376         * config/alpha/alpha.md (smaxsf3): Disable for IEEE mode.
9377         (sminsf3): Ditto.
9378
9379 2009-09-14  DJ Delorie  <dj@redhat.com>
9380
9381         * config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
9382         * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in
9383         VLIW mode.
9384
9385 2009-09-14  Richard Henderson  <rth@redhat.com>
9386             Jakub Jelinek  <jakub@redhat.com>
9387
9388         * builtins.c (expand_builtin_synchronize): Use gimple_build_asm_vec.
9389         * cfgbuild.c (make_edges): Handle asm goto.
9390         * cfglayout.c (fixup_reorder_chain): Likewise.
9391         * cfgrtl.c (patch_jump_insn): Likewise.
9392         * gimple-pretty-print.c (dump_gimple_asm): Likewise.
9393         * gimple.c (gimple_build_asm_1): Add and use nlabels parameter.
9394         (gimple_build_asm_vec): Add and use labels parameter.
9395         (gimple_build_asm): Remove.
9396         (walk_gimple_asm): Walk labels too.
9397         * gimple.def (GIMPLE_ASM): Update docs.
9398         * gimple.h: Update decls.
9399         (struct gimple_statement_asm): Change nc to use unsigned char;
9400         add nl member.
9401         (gimple_asm_nlabels): New.
9402         (gimple_asm_label_op, gimple_asm_set_label_op): New.
9403         * gimplify.c (gimplify_asm_expr): Copy labels from ASM_EXPR
9404         into gimple_build_asm_vec.
9405         * jump.c (mark_jump_label_asm): New.
9406         (mark_jump_label): Use it.
9407         (redirect_jump_1): Handle asm goto.
9408         (invert_jump_1): Soft fail if X is null.
9409         * recog.c (extract_asm_operands): New.
9410         (asm_noperands): Use it; handle asm labels.
9411         (decode_asm_operands): Use extract_asm_operands.
9412         (asm_operand_ok): Properly handle empty string.
9413         * reg-stack.c (get_asm_operands_in_out): Rename from
9414         get_asm_operand_n_inputs; use extract_asm_operands; return both
9415         inputs and outputs by reference; update all callers.
9416         * rtl.def (ASM_OPERANDS): Add label vector as operand 6.
9417         * rtl.h (ASM_OPERANDS_LABEL_VEC): New.
9418         (ASM_OPERANDS_LABEL_LENGTH, ASM_OPERANDS_LABEL): New.
9419         (ASM_OPERANDS_SOURCE_LOCATION): Renumber.
9420         (extract_asm_operands): Declare.
9421         * stmt.c (expand_asm_operands): Add and use labels parameter.
9422         (check_unique_operand_names): Likewise.
9423         (resolve_asm_operand_names, resolve_operand_name_1): Likewise.
9424         (expand_asm_stmt): Handle asm labels.
9425         * tree-cfg.c (make_gimple_asm_edges): New.
9426         (make_edges): Use it.
9427         (cleanup_dead_labels): Handle asm labels.
9428         (is_ctrl_altering_stmt): Likewise.
9429         (gimple_redirect_edge_and_branch): Likewise.
9430         * tree.def (ASM_EXPR): Add 5th operand.
9431         * tree.h (ASM_LABELS): New.
9432         (resolve_asm_operand_names): Update decl.
9433
9434         * c-parser.c (c_parser_asm_statement): Parse asm goto.
9435         (c_parser_asm_goto_operands): New.
9436         * c-tree.h (build_asm_expr): Update decl.
9437         * c-typeck.c (build_asm_expr): Add and use labels parameter.
9438         * doc/extend.texi: Document asm goto.
9439
9440 2009-09-14  Richard Henderson  <rth@redhat.com>
9441
9442         * except.h: Update declarations.
9443         (struct pointer_map_t): Forward declare.
9444         (ERT_UNKNOWN, ERT_THROW, ERT_CATCH): Remove.
9445         (struct eh_landing_pad_d, eh_landing_pad): New.
9446         (struct eh_catch_d, eh_catch): New.
9447         (struct eh_region_d): Remove next_region_sharing_label, aka,
9448         label, tree_label, landing_pad, post_landing_pad, resume,
9449         may_contain_throw.  Rename region_number to index.  Remove
9450         u.eh_catch, u.eh_throw.  Rename u.eh_try.eh_catch to first_catch.
9451         Add u.must_not_throw, landing_pads, exc_ptr_reg, filter_reg.
9452         (VEC(eh_landing_pad,gc)): New.
9453         (struct eh_status): Remove last_region_number.  Add lp_array,
9454         throw_stmt_table, ttype_data, ehspec_data.
9455         (ehr_next, FOR_ALL_EH_REGION_AT): New.
9456         (FOR_ALL_EH_REGION_FN, FOR_ALL_EH_REGION): New.
9457         * except.c (lang_protect_cleanup_actions): Return tree.
9458         (struct ehl_map_entry): Remove.
9459         (init_eh_for_function): Push zero entries for region and lp_array.
9460         (gen_eh_region): Add to region_array immediately.
9461         (gen_eh_region_catch): Operate on eh_catch objects.
9462         (gen_eh_landing_pad): New.
9463         (get_eh_region_may_contain_throw, get_eh_region_tree_label): Remove.
9464         (get_eh_region_no_tree_label, set_eh_region_tree_label): Remove.
9465         (get_eh_region_from_number, get_eh_region_from_number_fn): New.
9466         (get_eh_landing_pad_from_number_fn): New.
9467         (get_eh_landing_pad_from_number): New.
9468         (get_eh_region_from_lp_number_fn): New.
9469         (get_eh_region_from_lp_number): New.
9470         (expand_resx_stmt, note_eh_region_may_contain_throw): Remove.
9471         (get_exception_pointer, get_exception_filter): Remove.
9472         (collect_eh_region_array, can_be_reached_by_runtime): Remove.
9473         (current_function_has_exception_handlers): Simplify.
9474         (bring_to_root, eh_region_replaceable_by_p): Remove.
9475         (replace_region, hash_type_list, hash_eh_region): Remove.
9476         (eh_regions_equal_p, merge_peers, remove_unreachable_regions): Remove.
9477         (label_to_region_map, num_eh_regions): Remove.
9478         (get_next_region_sharing_label, must_not_throw_labels): Remove.
9479         (find_exception_handler_labels): Remove.
9480         (duplicate_eh_regions_0, find_prev_try): Remove.
9481         (struct duplicate_eh_regions_data): New.
9482         (duplicate_eh_regions_1): Rewrite.
9483         (duplicate_eh_regions): Return a pointer map instead of an
9484         integer offset.
9485         (copy_eh_region_1, copy_eh_region, push_reachable_handler): Remove.
9486         (redirect_eh_edge_to_label): Remove.
9487         (eh_region_outermost): Rewrite using eh_region pointers
9488         instead of integers.
9489         (add_ttypes_entry): Update for ttype_data move to eh_status.
9490         (add_ehspec_entry): Rewrite with VEC instead of varray.
9491         (assign_filter_values): Likewise.  Export.
9492         (build_post_landing_pads, connect_post_landing_pads): Remove.
9493         (dw2_build_landing_pads): Rewrite to use lp_array.
9494         (struct sjlj_lp_info, sjlj_find_directly_reachable_regions): Remove.
9495         (sjlj_assign_call_site_values): Rewrite to use lp_array.
9496         (sjlj_emit_dispatch_table, sjlj_build_landing_pads): Likewise.
9497         (sjlj_mark_call_sites): Update for landing pad numbers.
9498         (finish_eh_generation): Rewrite.
9499         (gate_handle_eh): Do nothing for no eh tree.
9500         (pass_rtl_eh): Move up near finish_eh_generation.
9501         (remove_eh_landing_pad): New.
9502         (remove_eh_handler): Export.
9503         (remove_eh_region, remove_eh_handler_and_replace): Remove.
9504         (for_each_eh_label): Rewrite to use lp_array.
9505         (make_reg_eh_region_note): New.
9506         (make_reg_eh_region_note_nothrow_nononlocal): New.
9507         (insn_could_throw_p): New.
9508         (copy_reg_eh_region_note_forward): New.
9509         (copy_reg_eh_region_note_backward): New.
9510         (check_handled, add_reachable_handler): Remove.
9511         (reachable_next_level, foreach_reachable_handler): Remove.
9512         (arh_to_landing_pad, arh_to_label, reachable_handlers): Remove.
9513         (get_eh_region_and_lp_from_rtx): New.
9514         (get_eh_region_from_rtx): New.
9515         (can_throw_internal_1, can_throw_external_1): Remove.
9516         (can_throw_internal): Use get_eh_region_from_rtx.
9517         (can_throw_external): Use get_eh_region_and_lp_from_rtx.
9518         (insn_nothrow_p, can_nonlocal_goto): New.
9519         (expand_builtin_eh_common, expand_builtin_eh_pointer): New.
9520         (expand_builtin_eh_filter, expand_builtin_eh_copy_values): New.
9521         (add_action_record): Use VEC not varray.
9522         (collect_one_action_chain): Update for eh_region changes.
9523         (convert_to_eh_region_ranges): Make static.  Use VEC not varray.
9524         Use get_eh_region_and_lp_from_rtx.
9525         (gate_convert_to_eh_region_ranges): New.
9526         (pass_convert_to_eh_region_ranges): Use it.
9527         (push_uleb128, push_sleb128): Use VEC not varray.
9528         (output_one_function_exception_table): Likewise.
9529         (dump_eh_tree): Update for eh_region changes.
9530         (verify_eh_tree): Likewise.
9531         (verify_eh_region, default_init_unwind_resume_libfunc): Remove.
9532         * tree-eh.c: Include target.h.
9533         (add_stmt_to_eh_lp_fn): Rename from add_stmt_to_eh_region_fn.
9534         Don't disallow GIMPLE_RESX; adjust argument check.
9535         (add_stmt_to_eh_lp): Rename from add_stmt_to_eh_region.
9536         (record_stmt_eh_region): Update for landing pad numbers;
9537         generate a landing pad if necessary.
9538         (remove_stmt_from_eh_lp): Rename from remove_stmt_from_eh_region.
9539         (remove_stmt_from_eh_lp_fn): Similarly.
9540         (lookup_stmt_eh_lp_fn): Rename from lookup_stmt_eh_region_fn.
9541         Update for lp numbers; don't special case missing throw_stmt_table.
9542         (lookup_expr_eh_lp): Similarly.
9543         (lookup_stmt_eh_lp): Rename from lookup_stmt_eh_region.
9544         (eh_seq, eh_region_may_contain_throw): New.
9545         (struct leh_state): Add ehp_region.
9546         (struct leh_tf_state): Remove eh_label.
9547         (emit_post_landing_pad): New.
9548         (emit_resx, emit_eh_dispatch): New.
9549         (note_eh_region_may_contain_throw): New.
9550         (frob_into_branch_around): Take eh_region not eh label;
9551         emit eh code into eh_seq.
9552         (honor_protect_cleanup_actions): Early exit for no actions.  Don't
9553         handle EXC_PTR_EXPR, FILTER_EXPR.  Use gimple_build_eh_must_not_throw,
9554         lower_eh_must_not_throw.  Emit code to eh_seq.
9555         (lower_try_finally_nofallthru): Emit eh code to eh_seq.
9556         (lower_try_finally_onedest): Likewise.
9557         (lower_try_finally_copy): Likewise.
9558         (lower_try_finally_switch): Likewise.
9559         (lower_try_finally): Initialize ehp_region.
9560         (lower_catch): Update for eh_catch objects.
9561         (lower_eh_filter): Don't handle must_not_throw.
9562         (lower_eh_must_not_throw): New.
9563         (lower_cleanup): Don't set eh_label.
9564         (lower_eh_constructs_2): Resolve eh builtins.
9565         Handle GIMPLE_EH_MUST_NOT_THROW.
9566         (lower_eh_constructs): Initialize eh_region_may_contain_throw.
9567         Add eh_seq to the end of the function body.
9568         (make_eh_dispatch_edges): New.
9569         (make_eh_edge): Remove.
9570         (make_eh_edges): Simplify for landing pads.
9571         (redirect_eh_edge_1): New.
9572         (redirect_eh_edge): Use it.
9573         (redirect_eh_dispatch_edge): New.
9574         (stmt_could_throw_p): Use a switch.  Allow RESX.
9575         (stmt_can_throw_external): Use lookup_stmt_eh_lp.
9576         (stmt_can_throw_internal): Likewise.
9577         (maybe_clean_eh_stmt_fn, maybe_clean_eh_stmt): New.
9578         (maybe_clean_or_replace_eh_stmt): Update for landing pads.
9579         (maybe_duplicate_eh_stmt_fn, maybe_duplicate_eh_stmt): New.
9580         (gate_refactor_eh): New.
9581         (pass_refactor_eh): Use it.
9582         (lower_resx, execute_lower_resx, pass_lower_resx): New.
9583         (lower_eh_dispatch, execute_lower_eh_dispatch): New.
9584         (gate_lower_ehcontrol, pass_lower_eh_dispatch): New.
9585         (remove_unreachable_handlers): Rename from
9586         tree_remove_unreachable_handlers; rewrite for landing pads;
9587         call remove_eh_handler directly.
9588         (remove_unreachable_handlers_no_lp): New.
9589         (unsplit_eh, unsplit_all_eh): New.
9590         (tree_empty_eh_handler_p, all_phis_safe_to_merge): Remove.
9591         (cleanup_empty_eh_merge_phis, cleanup_empty_eh_move_lp): New.
9592         (cleanup_empty_eh_unsplit): New.
9593         (cleanup_empty_eh): Rewrite.
9594         (cleanup_all_empty_eh): New.
9595         (execute_cleanup_eh): Rename from cleanup_eh.  Remove unreachable
9596         handlers first.  Use unsplit_all_eh, cleanup_all_empty_eh.
9597         (gate_cleanup_eh): New.
9598         (pass_cleanup_eh): Use it.
9599         (verify_eh_edges): Move later in file.  Expect one EH edge.
9600         (verify_eh_dispatch_edge): New.
9601
9602         * Makefile.in (FUNCTION_H): Use vecprim.h, not varray.h.
9603         (gtype-desc.o): Add TARGET_H.
9604         (tree.o): Use EXCEPT_H, not except.h.
9605         (cfgbuild.o): Add EXPR_H.
9606         (GTFILES): Add vecprim.h.
9607         * builtins.c (expand_builtin): Handle BUILT_IN_EH_POINTER,
9608         BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES.
9609         * builtins.def (BUILT_IN_UNWIND_RESUME, BUILT_IN_EH_POINTER,
9610         BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES): New.
9611         * calls.c (emit_call_1): Use make_reg_eh_region_note.
9612         * cfgbuild.c (control_flow_insn_p): Use can_nonlocal_goto; tidy
9613         calls to can_throw_internal.
9614         (rtl_make_eh_edge): Use get_eh_landing_pad_from_rtx.
9615         (make_edges): Don't handle RESX; use can_nonlocal_goto.
9616         * cfgexpand.c (expand_gimple_stmt_1): Don't handle RESX.
9617         (expand_gimple_stmt): Use make_reg_eh_region_note.
9618         (expand_debug_expr): Don't handle EXC_PTR_EXPR and FILTER_EXPR.
9619         (gimple_expand_cfg): Don't call convert_from_eh_region_ranges,
9620         or find_exception_handler_labels.
9621         * cfgrtl.c (rtl_verify_flow_info_1): Don't handle RESX.  Assert
9622         there is exacly one EH edge.  Use can_nonlocal_goto and
9623         can_throw_internal.
9624         * cgraphunit.c (update_call_expr): Use maybe_clean_eh_stmt_fn.
9625         (cgraph_materialize_all_clones): Use maybe_clean_or_replace_eh_stmt.
9626         * combine.c (can_combine_p, try_combine): Use insn_nothrow_p.
9627         * cse.c (count_reg_usage, insn_live_p): Use insn_could_throw_p.
9628         * dce.c (deletable_insn_p_1): Don't test may_trap_p.
9629         (deletable_insn_p): Use insn_nothrow_p; reorder nonjump insn test.
9630         * dse.c (scan_insn): Use insn_could_throw_p.
9631         * emit-rtl.c (try_split): Use copy_reg_eh_region_note_backward.
9632         * expr.c (expand_expr_real): Use make_reg_eh_region_note.
9633         (expand_expr_real_1): Don't handle RESX, EXC_PTR, or FILTER_EXPR.
9634         * fold-const.c (tree_expr_nonnegative_warnv_p): Don't handle
9635         EXC_PTR_EXPR or FILTER_EXPR.
9636         (tree_expr_nonzero_warnv_p): Likewise.
9637         * function.h: Include vecprim.h, not varray.h
9638         (struct rtl_eh): Remove filter, exc_ptr, built_landing_pad members;
9639         move ttype_data and ehspec_data members to struct eh_status; change
9640         action_record_data member to a VEC.
9641         * gcse.c (hash_scan_set): Use can_throw_internal.
9642         * gengtype.c (open_base_files): Add target.h to gtype-desc.c.
9643         * gimple-iterator.c (gsi_replace): Use maybe_clean_or_replace_eh_stmt.
9644         * gimple-low.c (lower_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
9645         (block_may_fallthru): Don't handle RESX_EXPR.
9646         * gimple-pretty-print.c (dump_gimple_label): Dump EH_LANDING_PAD_NR.
9647         (dump_gimple_eh_must_not_throw, dump_gimple_eh_dispatch): New.
9648         (dump_gimple_stmt): Dump landing pad information with TDF_EH;
9649         handle GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH.
9650         * gimple.c (gss_for_code): Handle GIMPLE_EH_MUST_NOT_THROW,
9651         GIMPLE_EH_DISPATCH, GIMPLE_RESX.
9652         (gimple_size): Likewise.
9653         (gimple_build_eh_dispatch, gimple_build_eh_must_not_throw): New.
9654         (gimple_build_resx): Use gimple_build_with_ops.
9655         (DEFTREECODE): Don't handle EXC_PTR_EXPR, FILTER_EXPR.
9656         (is_gimple_val): Likewise.
9657         (is_gimple_stmt): Remove RESX_EXPR.
9658         * gimple.def (GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH): New.
9659         (GIMPLE_RESX): Reorder with other EH constructs.
9660         * gimple.h (struct gimple_statement_eh_mnt): New.
9661         (struct gimple_statement_eh_ctrl): Rename from gimple_statement_resx.
9662         (gimple_eh_filter_must_not_throw): Remove.
9663         (gimple_eh_filter_set_must_not_throw): Remove.
9664         (gimple_eh_must_not_throw_fndecl): New.
9665         (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region): New.
9666         (is_gimple_resx): New.
9667         * gimplify.c (gimplify_expr): Don't handle EXC_PTR_EXPR, RESX_EXPR.
9668         Don't copy EH_FILTER_MUST_NOT_THROW.
9669         * gsstruct.def (GSS_EH_MNT, GSS_EHCONTROL): New.
9670         * ipa-inline.c (estimate_function_body_sizes): Don't try to
9671         handle must_not_throw_labels specially.
9672         * ipa-pure-const.c (check_call): Update debug statement for LP.
9673         * ipa-type-escape.c (check_operand): Don't handle EXC_PTR or FILTER.
9674         * ipa-utils.c (get_base_var): Likewise.
9675         * libfunc.h (LTI_unwind_resume, unwind_resume_libfunc): Remove.
9676         * lower-subreg.c (move_eh_region_note): Remove.
9677         (resolve_simple_move): Use copy_reg_eh_region_note_forward.
9678         * omp-low.c (new_omp_context): Update for eh_lp_nr.
9679         (create_task_copyfn): Likewise.
9680         (maybe_catch_exception): Use gimple_build_eh_filter.
9681         * optabs.c (emit_libcall_block): Update test for no-nonlocal-goto
9682         REG_EH_REGION.  Use make_reg_eh_region_note_nothrow_nononlocal.
9683         * passes.c (init_optimization_passes): Add pass_lower_eh_dispatch
9684         and pass_lower_resx.
9685         * print-tree.c (print_node): Dump EH_LANDING_PAD_NR.
9686         * recog.c (peephole2_optimize): Use copy_reg_eh_region_note_backward,
9687         can_throw_internal, can_nonlocal_goto.
9688         * reload1.c (fixup_eh_region_note): Use insn_could_throw_p,
9689         copy_reg_eh_region_note_forward.
9690         (emit_input_reload_insns): Use copy_reg_eh_region_note_forward.
9691         (emit_output_reload_insns): Likewise.
9692         (copy_eh_notes): Remove.
9693         * rtl.def (RESX): Remove.
9694         * rtl.h: Update declarations.
9695         * sese.c (graphite_copy_stmts_from_block): Use maybe_duplicate_eh_stmt.
9696         * tree-cfg.c (make_edges): Handle GIMPLE_EH_DISPATCH.
9697         (update_eh_label): Remove.
9698         (cleanup_dead_labels_eh): New.
9699         (cleanup_deal_labels): Use it instead of update_eh_label.
9700         (gimple_merge_blocks): Update landing pad data structure when
9701         removing a landing pad label.
9702         (remove_useless_stmts_tc): Remove gimple_eh_filter_must_not_throw
9703         test; handle GIMPLE_EH_MUST_NOT_THROW.
9704         (is_ctrl_altering_stmt): Handle GIMPLE_EH_DISPATCH.
9705         (verify_gimple_assign_single): Don't handle EXC_PTR or FILTER_EXPR.
9706         (verify_types_in_gimple_stmt): Handle GIMPLE_EH_DISPATCH.
9707         (verify_stmt): Likewise.  Verify landing pads.
9708         (gimple_redirect_edge_and_branch): Handle GIMPLE_EH_DISPATCH.
9709         (gimple_duplicate_bb): Use maybe_duplicate_eh_stmt.
9710         (struct move_stmt_d): Add eh_map.
9711         (move_stmt_eh_region_nr, move_stmt_eh_region_tree_nr): New.
9712         (move_stmt_r): Remap eh region numbers in builtin calls,
9713         resx and eh_dispatch.
9714         (move_block_to_fn): Remove eh_offset parameter.  Use
9715         maybe_duplicate_eh_stmt_fn.
9716         (find_outermost_region_in_block): Operate on eh_region pointers
9717         instead of region numbers.
9718         (move_sese_region_to_fn): Expect eh_map instead of eh_offset from
9719         duplicate_eh_regions.
9720         * tree-cfgcleanup.c (tree_forwarder_block_p): Move entry block edge
9721         test earlier.  Disallow EH landing pads.
9722         * tree-cfa.c (create_tree_common_ann): Don't set ann->rn.
9723         * tree-flow.h: Update declarations.
9724         (struct tree_ann_common_d): Replace rn with lp_nr.
9725         * tree-inline.c (copy_tree_body_r): Don't handle RESX_EXPR.
9726         (remap_eh_region_nr, remap_eh_region_tree_nr): New.
9727         (remap_gimple_stmt): Remap eh region numbers in builtin calls,
9728         resx and eh_dispatch.
9729         (copy_bb): Use maybe_duplicate_eh_stmt_fn.
9730         (copy_edges_for_bb): Use make_eh_dispatch_edges.
9731         (copy_cfg_body): Expect eh_map instead of eh_region_offset
9732         from duplicate_eh_regions.
9733         (estimate_num_insns): Don't handle EXC_PTR_EXPR or FILTER_EXPR;
9734         update RESX; handle EH_DISPATCH.
9735         (expand_call_inline): Set eh_lp_nr, not eh_region.
9736         (maybe_inline_call_in_expr): Likewise.
9737         * tree-inline.h (struct copy_body_data): Replace eh_region with
9738         eh_lp_nr, eh_region_offset with eh_map.
9739         * tree-optimize.c (execute_fixup_cfg): Use maybe_clean_eh_stmt.
9740         * tree-pass.h (pass_lower_eh_dispatch, pass_lower_resx): New.
9741         * tree-pretty-print.c (dump_generic_node): Don't handle
9742         EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR.
9743         * tree-sra.c (scan_function): Use maybe_clean_eh_stmt.
9744         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Don't handle
9745         EXC_PTR_EXPR, FILTER_EXPR.
9746         * tree-ssa-operands.c (get_expr_operands): Likewise.
9747         * tree-ssa-propagate.c (valid_gimple_rhs_p): Likewise.
9748         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
9749         (ao_ref_init_from_vn_reference): Likewise.
9750         * tree-ssa-sink.c (statement_sink_location): Likewise.
9751         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
9752         (mark_virtual_phi_result_for_renaming): Export.  Tidy.
9753         * tree-ssa-pre.c (get_or_alloc_expr_for): Don't handle
9754         EXC_PTR_EXPR, FILTER_EXPR.
9755         (is_exception_related): Remove.
9756         (compute_avail): Don't call it.
9757         * tree-ssa-structalias.c: Remove VEC definitions for int and unsigned.
9758         * tree.c (find_decls_types_in_eh_region): Update for eh_region changes.
9759         (find_decls_types_in_node): Use FOR_ALL_EH_REGION_FN.
9760         (build_common_builtin_nodes): Add enable_cxa_end_cleanup parameter.
9761         Build EH builtins.
9762         (build_resx): Remove.
9763         * tree.def (EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR): Remove.
9764         * tree.h: Update declarations.
9765         (EH_FILTER_MUST_NOT_THROW): Remove.
9766         (struct tree_label_decl): Add eh_landing_pad_nr.
9767         (EH_LANDING_PAD_NR): New.
9768         * value-prof.c (gimple_ic): Tidy variable names.  Update for
9769         landing pad numbers.
9770         (gimple_stringop_fixed_value): Tidy variable names.  Assert
9771         that neither call stmt can throw.
9772         * vecprim.h (uchar): New.
9773         (VEC(uchar,heap), VEC(uchar,gc)): New.
9774
9775         * c-common.c (c_define_builtins): Update call to
9776         build_common_builtin_nodes.
9777         * c-parser.c (c_parse_file): Don't call
9778         default_init_unwind_resume_libfunc.
9779
9780 2009-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
9781
9782         * config/mips/mips-protos.h (mips_cfun_has_cprestore_slot_p): Declare.
9783         (mips_cprestore_address_p): Likewise.
9784         (mips_save_gp_to_cprestore_slot): Likewise.
9785         (mips_restore_gp): Rename to...
9786         (mips_restore_gp_from_cprestore_slot): ...this.
9787         (mips_must_initialize_gp_p): Declare.
9788         (mips_emit_save_slot_move): Likewise.
9789         (mips_output_load_label): Return nothing.
9790         (mips_eh_uses): Declare.
9791         * config/mips/mips.h (TARGET_SPLIT_CALLS): Require epilogue_completed.
9792         (TARGET_CPRESTORE_DIRECTIVE): New macro.
9793         (TARGET_ABSOLUTE_JUMPS): Likewise.
9794         (EH_USES): Likewise.
9795         (FIRST_PSEUDO_REGISTER): Update comment.
9796         (MIPS_ABSOLUTE_JUMP): New macro, extracted from...
9797         (MIPS_CALL): ...here.
9798         (REGISTER_NAMES): Add $cprestore.
9799         * config/mips/mips.c (machine_function): Remove has_gp_insn_p.
9800         Add load_label_length, has_inflexible_gp_insn_p,
9801         has_flexible_gp_insn_p, must_initialize_gp_p and
9802         must_restore_gp_when_clobbered_p.
9803         (mips_expand_call): Don't generate split instructions here.
9804         (mips_split_call): Update the call to mips_restore_gp after
9805         the above name change.
9806         (mips16_cfun_returns_in_fpr_p): Move earlier in file.
9807         (mips_find_gp_ref): New function.
9808         (mips_insn_has_inflexible_gp_ref_p): Likewise.
9809         (mips_cfun_has_inflexible_gp_ref_p): Likewise.
9810         (mips_insn_has_flexible_gp_ref_p): Likewise.
9811         (mips_cfun_has_flexible_gp_ref_p): Likewise.
9812         (mips_function_has_gp_insn): Delete.
9813         (mips_global_pointer): Drop the df_regs_ever_live_p check.
9814         Use the new functions above.  Only return INVALID_REGNUM
9815         for TARGET_ABSOLUTE_JUMPS.
9816         (mips_must_initialize_gp_p): New function.
9817         (mips_get_cprestore_base_and_offset): New function, extracted from...
9818         (mips_cprestore_slot): ...here.  Take a bool parameter.
9819         (mips_cfun_has_cprestore_slot_p): New function.
9820         (mips_cprestore_address_p): Likewise.
9821         (mips_save_gp_to_cprestore_slot): Likewise.
9822         (mips_restore_gp): Rename to...
9823         (mips_restore_gp_from_cprestore_slot): ...this.  Assert
9824         epilogue_completed.  Update the call to mips_cprestore_slot.
9825         Test cfun->machine->must_restore_gp_when_clobbered_p.
9826         (mips_direct_save_slot_move_p): New function.
9827         (mips_emit_save_slot_move): Likewise.
9828         (mips_output_cplocal): Test mips_must_initialize_gp_p () instead
9829         of cfun->machine->global_pointer.
9830         (mips_output_function_prologue): Check mips_must_initialize_gp_p ().
9831         (mips_save_reg): Use mips_emit_save_slot_move.
9832         (mips_expand_prologue): Set must_initialize_gp_p.
9833         Use mips_cfun_has_cprestore_slot_p.  Use gen_potential_cprestore
9834         for all cprestore saves.  Emit a use_cprestore instruction after
9835         setting up the cprestore slot.
9836         (mips_restore_reg): Use mips_emit_save_slot_move.
9837         (mips_process_load_label): New function.
9838         (mips_load_label_length): Likewise.
9839         (mips_output_load_label): Don't return asm: output it here instead.
9840         Use mips_process_load_label.
9841         (mips_adjust_insn_length): Adjust the length of branch instructions
9842         that have length MAX_PIC_BRANCH_LENGTH.
9843         (mips_output_conditional_branch): Update the call to
9844         mips_output_load_label.  Assume the branch target is OPERANDS[0]
9845         rather than OPERANDS[1].  Use MIPS_ABSOLUTE_JUMP for absolute jumps.
9846         (mips_output_order_conditional_branch): Swap the meaning of
9847         OPERANDS[0] and OPERANDS[1].
9848         (mips_variable_issue): Don't count ghost instructions.
9849         (mips_expand_ghost_gp_insns): New function.
9850         (mips_reorg): Rerun mips_reorg_process_insns if it returns true.
9851         (mips_output_mi_thunk): Set must_initialize_gp_p.
9852         (mips_eh_uses): New function.
9853         * config/mips/predicates.md (cprestore_save_slot_operand)
9854         (cprestore_load_slot_operand): New predicates.
9855         * config/mips/mips.md (UNSPEC_POTENTIAL_CPRESTORE): New unspec.
9856         (UNSPEC_MOVE_GP): Likewise.
9857         (UNSPEC_CPRESTORE, UNSPEC_RESTORE_GP, UNSPEC_EH_RETURN)
9858         (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT): Bump to make room.
9859         (CPRESTORE_SLOT_REGNUM): New register.
9860         (MAX_PIC_BRANCH_LENGTH): New constant.
9861         (jal_macro): Use MIPS_ABSOLUTE_JUMPS.
9862         (length): Use MAX_PIC_BRANCH_LENGTH as a placeholder for PIC long
9863         branches.  Fix commentary.
9864         (loadgp_newabi_<mode>): Change from unspec_volatile to unspec.
9865         Only split if mips_must_initialize_gp_p; expand to nothing otherwise.
9866         Change type to "ghost".
9867         (loadgp_absolute_<mode>): Likewise.
9868         (loadgp_rtp_<mode>): Likewise.
9869         (copygp_mips16): Likewise.
9870         (loadgp_blockage): Remove redundant mode attribute.
9871         (potential_cprestore): New instruction.
9872         (cprestore): Turn into an unspec set.
9873         (use_cprestore): New instruction.
9874         (*branch_fp): Swap operands 0 and 1.  Remove redundant mode attribute.
9875         (*branch_fp_inverted): Likewise.
9876         (*branch_order<mode>): Likewise.
9877         (*branch_order<mode>_inverted): Likewise.
9878         (*branch_equality<mode>): Likewise.
9879         (*branch_equality<mode>_inverted): Likewise.
9880         (*branch_bit<bbv><mode>): Likewise.
9881         (*branch_bit<bbv><mode>_inverted): Likewise.
9882         (*branch_equality<mode>_mips16): Remove redundant mode.
9883         (jump): Turn into a define_expand.
9884         (*jump_absolute): New instruction.
9885         (*jump_pic): Likewise.
9886         (*jump_mips16): Rename previously-unnamed pattern.  Remove
9887         redundant mode attribute.
9888         (restore_gp): Split on epilogue_completed rather than
9889         reload_completed.  Change type to "ghost".
9890         (move_gp<mode>): New instruction.
9891         * config/mips/mips-dsp.md (mips_bposge): Swap operands 0 and 1.
9892         Remove redundant mode attribute.
9893         * config/mips/mips-ps-3d.md (bc1any4t): Likewise.
9894         (bc1any4f, bc1any2t, bc1any2f): Likewise.
9895         (*branch_upper_lower, *branch_upper_lower_inverted): Likewise.
9896
9897 2009-09-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
9898
9899         PR target/41210
9900         * config/rs6000/rs6000.c (rs6000_function_value): V2DF and V2DI
9901         are returned in the same register (vs34 or v2) that Altivec vector
9902         types are returned in.
9903         (rs6000_libcall_value): Ditto.
9904
9905         PR target/41331
9906         * config/rs6000/rs6000.c (rs6000_emit_move): Use gen_add3_insn
9907         instead of explicit addsi3/adddi3 calls.
9908         (rs6000_split_multireg_move): Ditto.
9909         (rs6000_emit_allocate_stack): Ditto.
9910         (rs6000_emit_prologue): Ditto.
9911         (rs6000_output_mi_thunk): Ditto.
9912
9913         * config/rs6000/rs6000.md (bswapdi*): Don't assume the pointer
9914         size is 64 bits if we can use 64-bit registers.
9915
9916 2009-09-14  Bernd Schmidt  <bernd.schmidt@analog.com>
9917
9918         * config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak
9919         symbols.
9920
9921         From Jie Zhang <jie.zhang@analog.com>:
9922         * config/bfin/bfin.c (bfin_expand_prologue): Ask do_link to
9923         save FP and RETS with saveall attribute.
9924         (bfin_expand_epilogue): Ask do_unlink to restore FP and RETS
9925         with saveall attribute.
9926
9927         * config/bfin/bfin.c (bfin_expand_builtin,
9928         case BFIN_BUILTIN_MULT_1X32X32): Force constants to registers for the
9929         operands.
9930
9931         From Jie Zhang <jie.zhang@analog.com>:
9932         * config/bfin/bfin.c (bfin_expand_builtin): Initialize icodes
9933         before use in two places.
9934         * config/bfin/bfin.md (AREG): Define mode iterator.
9935         (reload_in, reload_out): Use mode iterator AREG.
9936
9937 2009-09-14  Richard Guenther  <rguenther@suse.de>
9938
9939         PR middle-end/41350
9940         * dwarf2out.c (dwarf2out_begin_prologue): Adjust non-CFI asm
9941         EH personality path.
9942
9943 2009-09-13  Richard Guenther  <rguenther@suse.de>
9944             Rafael Avila de Espindola  <espindola@google.com>
9945
9946         * langhooks-def.h (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
9947         (LANG_HOOKS_EH_PERSONALITY): Likewise.
9948         (LANG_HOOKS_INITIALIZER): Adjust.
9949         (lhd_pass_through_t): Declare.
9950         * langhooks.h (struct lang_hooks): Add eh_runtime_type and
9951         eh_personality.
9952         * langhooks.c (lhd_pass_through_t): New function.
9953         * dwarf2out.c (output_call_frame_info, dwarf2out_do_cfi_startproc,
9954         dwarf2out_begin_prologue): Use personality from current_function_decl.
9955         * expr.h (get_personality_function): Declare.
9956         * expr.c (get_personality_function): New function.
9957         (build_personality_function): Likewise.
9958         * libfuncs.h (libfunc_index): Remove LTI_eh_personality.
9959         (eh_personality_libfunc): Remove.
9960         * optabs.c (build_libfunc_function): New function split out from ...
9961         (init_one_libfunc): ... here.
9962         * tree.h (DECL_FUNCTION_PERSONALITY): New.
9963         (tree_function_decl): Add personality.
9964         (lhd_gcc_personality): Declare.
9965         (build_personality_function): Likewise.
9966         * tree.c (gcc_eh_personality_decl): New.
9967         (lhd_gcc_personality): New function.
9968         * except.h (lang_eh_runtime_type): Remove.
9969         (enum eh_personality_kind): New.
9970         (build_personality_function): Declare.
9971         (function_needs_eh_personality): Declare.
9972         * except.c (lang_eh_runtime_type): Remove.
9973         (function_needs_eh_personality): New function.
9974         (add_type_for_runtime): Call lang_hooks.type_for_runtime instead.
9975         (sjlj_emit_function_enter, output_function_exception_table):
9976         Use personality from current_function_decl.
9977         * tree-eh.c (lower_eh_constructs): Set DECL_FUNCTION_PERSONALITY.
9978         * tree-inline.c (tree_can_inline_p): Do not inline across different
9979         EH personalities.
9980         (expand_call_inline): Likewise.  Adjust the callers EH personality.
9981         (tree_function_versioning): Copy DECL_FUNCTION_PERSONALITY.
9982         * cgraph.c (cgraph_add_new_function): Set DECL_FUNCTION_PERSONALITY.
9983         * Makefile.in (cgraph.o): Add $(EXCEPT_H) dependency.
9984         (c-parser.o): Likewise
9985         * c-tree.h (c_eh_initialized_p): Remove.
9986         (c_maybe_initialize_eh): Likewise.
9987         * c-decl.c (finish_decl): Don't call c_maybe_initialize_eh.
9988         (finish_decl): Don't call c_maybe_initialize_eh.
9989         (c_eh_initialized_p): Remove.
9990         (c_maybe_initialize_eh): Likewise.
9991         * c-parser.c (c_parser_omp_construct): Likewise.
9992         (c_parse_file): Initialize exception handling.
9993
9994 2009-09-13  Kai Tietz  <kai.tietz@onevision.com>
9995
9996         * config.gcc (tm_file): Remove i386/biarch32.h
9997         for i?86-w64-mingw* case.
9998         (i?86-*-mingw* andx86_64-*-mingw*): Add multilib
9999         support.
10000         * config.host: Set for x64 mingw the option
10001         use_long_long_for_widest_fast_int to yes.
10002
10003 2009-09-13  Eric Botcazou  <ebotcazou@adacore.com>
10004
10005         * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
10006         * dbxout.c (dbxout_function_end): Do not test DECL_IGNORED_P.
10007         (dbxout_begin_function): Likewise.
10008         * final.c (dwarf2_debug_info_emitted_p): New predicate.
10009         (final_start_function): Do not emit debug info if DECL_IGNORED_P is
10010         set on the function.
10011         (final_end_function): Likewise.
10012         (final_scan_insn): Likewise.
10013         (rest_of_handle_final): Likewise.
10014         * varasm.c (assemble_start_function): Likewise.
10015         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
10016
10017 2009-09-12  Jason Merrill  <jason@redhat.com>
10018
10019         * dbgcnt.c (dbg_cnt_process_single_pair): constify.
10020         * opts.c (common_handle_option): constify.
10021
10022 2009-09-12  Gerald Pfeifer  <gerald@pfeifer.com>
10023
10024         * doc/install.texi (avr): Remove obsolete reference site.
10025
10026 2009-09-12  Gerald Pfeifer  <gerald@pfeifer.com>
10027
10028         * doc/install.texi (Binaries): Adjust AIX link.
10029
10030 2009-09-12  Akim Demaille  <demaille@gostai.com>
10031
10032         * doc/invoke.texi (-fstrict-aliasing): Correct two examples.
10033         Use an imperative sentence.
10034
10035 2009-09-11  Richard Henderson  <rth@redhat.com>
10036
10037         * gsstruct.def (DEFGSSTRUCT): Remove printable-name argument; add
10038         structure-name and has-tree-operands arguments; update all entries.
10039         * gimple.def (DEFGSCODE): Replace 3rd argument with GSS_symbol;
10040         update all entries.
10041         * gimple.c (gimple_ops_offset_): Use HAS_TREE_OP argument.
10042         (gsstruct_code_size): New.
10043         (gss_for_code_): New.
10044         (gss_for_code): Remove.
10045         (gimple_size): Rewrite using gsstruct_code_size.
10046         (gimple_statement_structure): Move to gimple.h.
10047         * gimple.h (gimple_ops_offset_, gss_for_code_): Declare.
10048         (gss_for_code, gimple_statement_structure): New.
10049         (gimple_ops): Use new arrays; tidy.
10050
10051 2009-09-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10052
10053         * config/pa/predicates.md (symbolic_operand): Require a CONST symbolic
10054         operand to be a PLUS expression.
10055         * config/pa/pa.c (pa_secondary_reload): Likewise.
10056
10057 2009-09-11  Jakub Jelinek  <jakub@redhat.com>
10058
10059         * combine.c (propagate_for_debug_subst): Call wrap_constant on top.
10060
10061         * print-rtl.c (print_rtx): Use JUMP_LABEL (in_rtx) instead of
10062         XEXP (in_rtx, 8).
10063
10064 2009-09-11  Bernd Schmidt  <bernd.schmidt@analog.com>
10065
10066         From Jie Zhang <jie.zhang@analog.com>:
10067         * doc/extend.texi (node Function Attributes): Document l2
10068         function attribute.
10069         (node Blackfin Variable Attributes): Document l2 variable attributes.
10070
10071 2009-09-11  Loren J. Rittle  <ljrittle@acm.org>
10072
10073         * config.gcc (*-*-freebsd*): Enable default_use_cxa_atexit
10074         to match the system compiler's configuration at inflection point.
10075         Add comment to remark a remaining difference with system compiler.
10076
10077         * configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.
10078         * configure: Regenerate.
10079
10080 2009-09-11  Bernd Schmidt  <bernd.schmidt@analog.com>
10081
10082         From Jie Zhang <jie.zhang@analog.com>:
10083         * config/bfin/bfin.c (bfin_expand_call): Handle L2 functions.
10084         (bfin_handle_l2_attribute): New.
10085         (bfin_attribute_table): Add l2 attribute.
10086
10087 2009-09-11  Michael Matz  <matz@suse.de>
10088
10089         PR middle-end/41275
10090         * tree-inline.c (remap_decls): Don't put DECL_EXTERNAL decls
10091         on the local_decls list.
10092
10093 2009-09-11  Alexandre Oliva  <aoliva@redhat.com>
10094
10095         PR debug/41276
10096         PR debug/41307
10097         * cselib.c (cselib_expand_value_rtx_cb): Document callback
10098         interface.
10099         (cselib_expand_value_rtx_1): Use callback for SUBREGs.  Adjust
10100         for VALUEs, to implement the documented interface.
10101         * var-tracking.c (vt_expand_loc_callback): Handle SUBREGs.
10102         Adjust for VALUEs and anything else, to implement the
10103         documented interface.
10104
10105 2009-09-10  Nathan Froyd  <froydnj@codesourcery.com>
10106
10107         * config/rs6000/rs6000.h (DATA_ALIGNMENT): Check that we are dealing
10108         with actual SPE/paired vector modes before using 64-bit alignment.
10109         Check that TYPE is a REAL_TYPE for TARGET_E500_DOUBLE.
10110
10111 2009-09-10  DJ Delorie  <dj@redhat.com>
10112
10113         * config/mep/mep.md (eh_epilogue): Defer until after epilogue is
10114         emitted.
10115
10116         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): New.
10117         * config/mep/mep.c (mep_legitimate_constant_p): New.
10118         * config/mep/mep-protos.h: Prototype it.
10119
10120 2009-09-10  Richard Henderson  <rth@redhat.com>
10121
10122         * print-rtl.c (print_rtx): Fix JUMP_LABEL index.
10123
10124 2009-09-10  Jason Merrill  <jason@redhat.com>
10125
10126         * tree.c (chain_index): New fn.
10127         * tree.h: Declare it.
10128
10129 2009-09-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10130
10131         * config/sol2-c.c (cmn_err_length_specs): Initialize
10132         scalar_identity_flag.
10133
10134 2009-09-10  Richard Henderson  <rth@redhat.com>
10135
10136         * tree.h (struct tree_decl_common): Move align member earlier;
10137         move label_decl_uid member ...
10138         (struct tree_label_decl): ... here.
10139         (LABEL_DECL_UID): Update to match.
10140
10141         * tree-cfg.c (dump_function_to_file): Dump eh tree with TDF_EH,
10142         not TDF_DETAILS.
10143
10144         * tree-cfg.c (gimple_redirect_edge_and_branch): Do
10145         gimple_try_redirect_by_replacing_jump test after no-op and EH tests.
10146
10147         * tree-cfg.c (split_edge_bb_loc): Don't disallow placement at
10148         dest_prev if the edge is complex.
10149
10150         * tree-cfg.c (is_ctrl_stmt): Use a switch.
10151
10152         * tree-cfg.c (gimple_can_merge_blocks_p): Move label and
10153         loop latch tests earlier.
10154
10155         * gimple-iterator.c (gimple_find_edge_insert_loc): Insert
10156         before GIMPLE_RETURN, not after its predecessor; insert
10157         before GIMPLE_RESX.
10158
10159         * gimple-iterator.c (gimple_find_edge_insert_loc): Use
10160         gimple_seq_empty_p to test for no PHI nodes.
10161         * tree-cfg.c (split_critical_edges): Likewise.
10162
10163         * c-common.h (c_dialect_cxx, c_dialect_objc): Boolify.
10164
10165 2009-09-10  Hariharan Sandanagobalane  <hariharan@picochip.com>
10166
10167         * final.c (shorten_branches) : Ignore DEBUG_INSN_P instructions
10168         introduced by the VTA branch merge.
10169
10170 2009-09-10  Uros Bizjak  <ubizjak@gmail.com>
10171
10172         * ira-conflicts.c: Use fputs or putc instead of fprintf
10173         where appropriate.
10174         * cfg.c: Ditto.
10175         * toplev.c: Ditto.
10176         * tree-switch-conversion.c: Ditto.
10177
10178 2009-09-10  Hariharan Sandanagobalane  <hariharan@picochip.com>
10179
10180         * config/picochip/picochip.c : Ignore DEBUG_INSN_P instructions
10181         introduced by the VTA branch merge.
10182
10183 2009-09-10  Uros Bizjak  <ubizjak@gmail.com>
10184
10185         Revert:
10186         2009-09-09  Uros Bizjak  <ubizjak@gmail.com>
10187
10188         PR rtl-optimization/39779
10189         * expr.c (convert_modes): Return when mode == oldmode after
10190         CONST_INTs are processed.
10191
10192 2009-09-10  Nick Clifton  <nickc@redhat.com>
10193
10194         * config/mep/mep.c (mep_encode_section_info): Copy weakness
10195         attribute and referring decl when creating renamed symbol.
10196
10197 2009-09-10  Richard Guenther  <rguenther@suse.de>
10198
10199         PR middle-end/41257
10200         * cgraphunit.c (cgraph_emit_thunks): Emit thunks only for
10201         reachable nodes.
10202         (cgraph_finalize_compilation_unit): Compute reachability
10203         before emitting thunks.  Properly process aliases before
10204         possibly removing unreachable nodes.
10205
10206 2009-09-10  Richard Guenther  <rguenther@suse.de>
10207
10208         PR middle-end/41254
10209         * tree.c (struct free_lang_data_d): Add worklist member.
10210         (find_decls_types_r): Push onto the worklist instead of recursing.
10211         Handle TREE_BINFOs properly.
10212         (find_decls_types): New function wrapped around find_decls_types_r
10213         to process the worklist.
10214         (find_decls_types_in_eh_region): Use it.
10215         (find_decls_types_in_node): Likewise.
10216         (find_decls_types_in_var): Likewise.
10217         (free_lang_data_in_cgraph): Likewise.  Free the worklist.
10218         * tree.h (RECORD_OR_UNION_TYPE_P): New.
10219         (AGGREGATE_TYPE_P): Adjust.
10220
10221 2009-09-09  Jason Merrill  <jason@redhat.com>
10222
10223         * configure.ac: Check glibc version even if we have an in-tree
10224         assembler.
10225
10226 2009-09-09  Anthony Green  <green@moxielogic.com>
10227
10228         * config/moxie/moxie.md (*movsi, *movhi, *movqi): Use xor to load
10229         the constant 0 when appropriate.
10230         * config/moxie/constraints.md: Add constraint O.
10231
10232         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Adjust
10233         to pass up to 6 32-bit argument values in registers.
10234         (moxie_function_arg): Ditto.
10235         (moxie_arg_partial_bytes): Ditto.
10236         * config/moxie/moxie.h (FUNCTION_ARG_ADVANCE): Ditto.
10237         (REG_PARM_STACK_SPACE): Ditto.
10238         (FUNCTION_ARG_REGNO_P): Ditto.
10239
10240         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
10241         instruction to allocate stack space.
10242
10243 2009-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
10244
10245         * config/rs6000/rs6000.md (bswapdi2_64bit): Fix
10246         unnecessarily stringent constraints.  Fix address
10247         calculation in the splitters.
10248
10249 2009-09-09  Uros Bizjak  <ubizjak@gmail.com>
10250
10251         PR rtl-optimization/39779
10252         * expr.c (convert_modes): Return when mode == oldmode after
10253         CONST_INTs are processed.
10254
10255 2009-09-09  Kai Tietz  <kai.tietz@onevision.com>
10256
10257         PR/41315
10258         * config/i386.c (ix86_can_use_return_insn_p): Check for padding0, too.
10259         (ix86_expand_prologue): Take frame.padding0 into logic of
10260         to_allocate checks.
10261         (ix86_expand_epilogue): Likewise.
10262
10263 2009-09-09  Jakub Jelinek  <jakub@redhat.com>
10264
10265         * config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK):
10266         New variables.
10267         (SHLIB_LINK, SHLIB_INSTALL): Use them.
10268         * config/t-slibgcc-libgcc: New file.
10269         * config.gcc (powerpc*-*-linux*, powerpc*-*-gnu*): Use it.
10270
10271 2009-09-09  Martin Jambor  <mjambor@suse.cz>
10272
10273         PR tree-optimization/41089
10274         * tree-sra.c (find_var_candidates): Do not consider va_lists in
10275         early SRA.
10276
10277 2009-09-09  Richard Henderson  <rth@redhat.com>
10278
10279         * gimple.h (CASE_GIMPLE_OMP): New.
10280         (is_gimple_omp): Use it.
10281         * tree-cfg.c (is_ctrl_altering_stmt): Likewise.
10282         (verify_gimple_debug): Likewise.
10283
10284 2009-09-09  Richard Guenther  <rguenther@suse.de>
10285
10286         PR tree-optimization/41101
10287         * tree-ssa-pre.c (maximal_set): Remove.
10288         (compute_antic_aux): Treat the maximal set as implicitly all ones.
10289         Defer all blocks we didn't visit at least one successor.
10290         (add_to_exp_gen): Do not add to the maximal set.
10291         (make_values_for_phi): Likewise.
10292         (compute_avail): Likewise.
10293         (init_pre): Do not allocate the maximal set.
10294         (execute_pre): Do not dump it.
10295
10296 2009-09-09  Martin Jambor  <mjambor@suse.cz>
10297
10298         * tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is
10299         an SSA_NAME rather than a is_gimple_variable.
10300
10301 2009-09-09  Richard Guenther  <rguenther@suse.de>
10302
10303         PR middle-end/41317
10304         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Remove
10305         code dealing with plain pointer bases.
10306         (maybe_fold_offset_to_reference): Likewise.
10307         (maybe_fold_stmt_addition): Adjust.
10308
10309 2009-09-09  Richard Guenther  <rguenther@suse.de>
10310
10311         * tree.c (free_lang_data_in_type): Do not free the type variant
10312         chains.
10313         (free_lang_data): Merge char_type_node with its properly signed
10314         variant.
10315         (pass_ipa_free): Collect after freeing language specific data.
10316
10317 2009-09-09  Michael Matz  <matz@suse.de>
10318
10319         PR middle-end/41268
10320         * cfgexpand.c (expand_gimple_stmt_1): Use an int for storing
10321         SUBREG_PROMOTED_UNSIGNED_P, instead of a bool.
10322         * rtl.h (struct rtx, SUBREG_PROMOTED_UNSIGNED_P): Update comments
10323         to reflect reality.
10324
10325 2009-09-08  DJ Delorie  <dj@redhat.com>
10326
10327         * config/mep/mep.c (conversions[]): Add "ml" pattern.
10328
10329 2009-09-04  Jason Merrill  <jason@redhat.com>
10330
10331         * tree.c (tree_find_value): Remove.
10332         * tree.h: Remove prototype.
10333         * varasm.c (assemble_external): Use value_member instead.
10334
10335 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
10336
10337         * toplev.c (process_options): Choose default debugging type when
10338         gtoggle enables debug info and type is unset.
10339
10340 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
10341
10342         PR debug/41276
10343         PR debug/41307
10344         * cselib.c (cselib_expand_value_rtx_1): Don't return copy of
10345         invalid subreg.
10346
10347 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
10348
10349         * configure: Rebuilt with modified libtool.m4.
10350
10351 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
10352
10353         PR debug/41229
10354         PR debug/41291
10355         PR debug/41300
10356         * tree-ssa.c (execute_update_addresses_taken): Update debug insns.
10357
10358 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
10359
10360         * tree-ssa-loop-ivopts.c (get_phi_with_result): Remove.
10361         (remove_statement): Likewise.
10362         (rewrite_use_nonlinear_expr): Adjust.
10363         (remove_unused_ivs): Collect SSA NAMEs to remove and call...
10364         * tree-ssa.c (release_defs_bitset): ... this.  New.
10365         * tree-flow.h (release_defs_bitset): Declare.
10366
10367 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
10368
10369         PR debug/41232
10370         * tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts
10371         in the middle block.
10372
10373 2009-09-08  Kai Tietz  <kai.tietz@onevision.com>
10374
10375         * tree-ssa-reassoc.c (find_operand_rank): Cast pointer
10376         via intptr_t to long type.
10377         (insert_operand_rank): Cast long type via intptr_t to
10378         pointer type.
10379         * genattrtab.c (RTL_HASH): Use intptr_t to cast from
10380         pointer to scalar.
10381         * c-pretty-print.c (pp_c_tree_decl_identifier): Cast
10382         from pointer to unsigned via uintptr_t.
10383
10384         * configure.ac (GCC_STDINT_TYPES): Initialize intptr_t,
10385         uintptr_t, HAVE_INTTYPES_H, HAVE_STDINT_H, HAVE_UINTPTR_T,
10386         and HAVE_INTPTR_T.
10387         * configure: Regenerated.
10388         * config.in: Regenerated
10389         * system.h (stdint.h): Add include.
10390         (inttypes.h): Likewise.
10391         * Makefile.in (aclocal): Add config/stdint.m4.
10392         * aclocal.m4: Regenerated.
10393
10394 2009-09-08  Bernd Schmidt  <bernd.schmidt@analog.com>
10395
10396         * config/bfin/bfin.c (np_check_regno, np_after_branch): New static
10397         variables.
10398         (note_np_check_stores): New function.
10399         (harmless_null_pointer_p): New function.
10400         (trapping_loads_p): New args NP_REG and AFTER_NP_BRANCH.  Callers
10401         changed.  Take into account whether we're in the shadow of a condjump
10402         that tested NP_REG for NULL.
10403         Lose all code that tested for SEQUENCEs.
10404         (workaround_speculation): Avoid inserting NOPs for loads that are
10405         either always executed or a NULL pointer.
10406
10407 2009-09-08  Jan Hubicka  <jh@suse.cz>
10408
10409         * doc/invoke.texi (early-inlining-insns): Reduce from 12 to 8.
10410         * params.def (early-inlining-insns): Likewise.
10411
10412 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
10413
10414         PR rtl-optimization/41239
10415         * sched-int.h (struct deps): Add last_function_call_may_noreturn field.
10416         * sched-rgn.c (deps_join): Join also last_function_call_may_noreturn
10417         lists.
10418         * sched-deps.c (sched_analyze_insn): Prevent moving trapping insns
10419         across calls, as the calls might not always return normally.
10420         (call_may_noreturn_p): New function.
10421         (deps_analyze_insn): Update last_function_call_may_noreturn list.
10422         (init_deps): Initialize it.
10423         (remove_from_deps): Also remove calls from
10424         last_function_call_may_noreturn list.
10425
10426 2009-09-07  Richard Henderson  <rth@redhat.com>
10427
10428         * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are
10429         more VR->OPERANDS than LHS operands.  Free LHS before returning.
10430
10431 2009-09-07  Bernd Schmidt  <bernd.schmidt@analog.com>
10432
10433         * config/bfin/bfin.md (UNSPEC_VOLATILE_STALL): New constant.
10434         (attr "addrtype"): New member "spreg".
10435         Use it if mem_spfp_address_operand is true for the address.
10436         (attr "type"): New entry "stall".
10437         (cpu_unit "load"): New.
10438         (insn_reservations "load32", "loadp", "loadi"): Add reservation of
10439         "load".
10440         (insn_reservation "loadsp"): New.
10441         (insn_reservation "load_stall1"): New.
10442         (insn_reservation "load_stall3"): New.
10443         (stall): New insn.
10444         * config/bfin/predicates.md (const1_operand, const3_operand): New.
10445         (mem_p_address_operand): Exclude stack and frame pointer based
10446         addresses.
10447         (mem_spfp_address_operand): New; match them here.
10448         * config/bfin/bfin.c (add_sched_insns_for_speculation): New function.
10449         (bfin_reorg): Call it if scheduling insns.
10450         (bfin_gen_bundles): Remove dummy insns created by
10451         add_sched_insns_for_speculation.
10452
10453         From Jie Zhang <jie.zhang@analog.com>:
10454         * config/bfin/bfin-protos.h (enum bfin_cpu_type, bfin_cpu_type,
10455         bfin_si_revision, bfin_workarounds): Move these ...
10456         * config/bfin/bfin.h: ... here.
10457
10458         From Mike Frysinger  <michael.frysinger@analog.com>
10459         * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF542M,
10460         BFIN_CPU_BF544M, BFIN_CPU_BF547M, BFIN_CPU_BF548M, and BFIN_CPU_BF549M.
10461         * config/bfin/bfin.c (bfin_cpus[]): Add 0.3 for bf542m, bf544m,
10462         bf547m, bf548m, and bf549m.
10463         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF542M__
10464         for BFIN_CPU_BF542M, __ADSPBF544M__ for BFIN_CPU_BF544M,
10465         __ADSPBF547M__ for BFIN_CPU_BF547M, __ADSPBF548M__ for
10466         BFIN_CPU_BF548M, and __ADSPBF549M__ for BFIN_CPU_BF549M.
10467         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
10468         bf542m-none, bf544m-none, bf547m-none, bf548m-none, and bf549m-none.
10469         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
10470         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
10471         * doc/invoke.texi (Blackfin Options): Document that -mcpu now accepts
10472         bf542m, bf544m, bf547m, bf548m, and bf549m.
10473
10474         From Jie Zhang <jie.zhang@analog.com>:
10475         * config/bfin/predicates.md (p_register_operand): New predicate.
10476         (dp_register_operand): New predicate.
10477         * config/bfin/bfin-protos.h (WA_05000074): Define.
10478         (ENABLE_WA_05000074): Define.
10479         * config/bfin/bfin.c (bfin_cpus[]): Add WA_05000074 for all cpus.
10480         (bfin_gen_bundles): Put dsp32shiftimm instruction in slot[0].
10481         * config/bfin/bfin.md (define_attr type): Add dsp32shiftimm.
10482         (define_attr addrtype): Allow load/store register to be P register.
10483         (define_attr storereg): New.
10484         (define_cpu_unit anomaly_05000074): New.
10485         (define_insn_reservation dsp32shiftimm): New.
10486         (define_insn_reservation dsp32shiftimm_anomaly_05000074): New.
10487         (define_insn_reservation loadp): Cannot use slot2.
10488         (define_insn_reservation loadsp): Cannot use slot2.
10489         (define_insn_reservation storep): Cannot use slot2. Does not
10490         apply when working around 05000074.
10491         (define_insn_reservation storep_anomaly_05000074): New.
10492         (define_insn_reservation storei): Does not apply when working
10493         around 05000074.
10494         (define_insn_reservation storei_anomaly_05000074): New.
10495         (define_attr length): Add dsp32shiftimm case.
10496         (define_insn movsi_insn32, movsi_insv, ashlsi3_insn, ashrsi3,
10497         ror_one, rol_one, lshrsi3, lshrpdi3, ashrpdi3, movhiv2hi_low,
10498         movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi,
10499         ssashiftv2hi3, ssashifthi3, ssashiftsi3, lshiftv2hi3, lshifthi3):
10500         Set type as dsp32shiftimm for dsp32shiftimm alternatives.
10501
10502 2009-09-07  Martin Jambor  <mjambor@suse.cz>
10503
10504         PR middle-end/41282
10505         * tree-sra.c (create_artificial_child_access): Return NULL if
10506         build_ref_for_offset fails.
10507         (propagate_subacesses_accross_link): Allow build_ref_for_offset
10508         and create_artificial_child_access to fail.
10509
10510 2009-09-06  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
10511
10512         PR c++/41214
10513         * unwind-dw2.c (uw_init_context_1): Mark noinline.
10514         * config/ia64/unwind-ia64.c (uw_init_context_1): Likewise.
10515         * config/xtensa/unwind-dw2-xtensa.c (uw_init_context_1): Likewise.
10516
10517 2009-09-07  Bernd Schmidt  <bernd.schmidt@analog.com>
10518
10519         * config/bfin/bfin.c (bfin_optimize_loop): When creating a new basic
10520         block, ensure it has an exit edge.  Emit a barrier after a jump.
10521
10522 2009-09-07  Nick Clifton  <nickc@redhat.com>
10523
10524         * gcc.c (this_is_linker_script): New variable.  Like
10525         this_is_library_file but for the %T constructor.
10526         (end_going_arg): If this_is_linker_script is set then locate the
10527         script and insert a --script switch before it
10528         (do_spec_2): Initialise this_is_linker_script.
10529         (do_spec_1): Likewise.  Handle %T construct.
10530         (eval_spec_function): Preserve this_is_linker_script.
10531         * doc/invoke.texi: Document %T construct in spec files.
10532         * config/m32c/m32c.h (LIB_SPEC): Use it.
10533
10534 2009-09-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10535
10536         * rtl.h (PREFETCH_SCHEDULE_BARRIER_P): New macro.
10537         * sched-deps.c (sched_analyze_2): Make prefetches a hard barrier
10538         when volatile flag is set.
10539         * doc/rtl.texi (PREFETCH_SCHEDULE_BARRIER_P): Add documentation pieces.
10540
10541 2009-09-06  Eric Botcazou  <ebotcazou@adacore.com>
10542
10543         PR bootstrap/41241
10544         * combine-stack-adj.c (try_apply_stack_adjustment): Handle stores.
10545         (combine_stack_adjustments_for_block): Allow insns between stack
10546         adjustments and stores with corresponding pre-(dec|inc)rement or
10547         pre-modify operation.
10548
10549 2009-09-06  Jakub Jelinek  <jakub@redhat.com>
10550
10551         PR bootstrap/41241
10552         * combine-stack-adj.c (struct csa_memlist): Rename to...
10553         (struct csa_reflist): ... this.  Rename mem field to ref.
10554         (free_csa_memlist): Rename to...
10555         (free_csa_reflist): ... this.
10556         (record_one_stack_memref): Rename to...
10557         (record_one_stack_ref): ... this.  Handle also REG_P.
10558         (try_apply_stack_adjustment): Handle also REG_P.
10559         (struct record_stack_memrefs_data): Rename to...
10560         (struct record_stack_refs_data): ... this.  Rename memlist field to
10561         reflist.
10562         (record_stack_memrefs): Rename to...
10563         (record_stack_refs): ... this.  For DEBUG_INSNs keep traversing
10564         subexpressions instead of failing when a MEM contains SP references.
10565         For SP itself in DEBUG_INSNs queue it also onto reflist chain.
10566         (combine_stack_adjustments_for_block): Adjust for mem to ref renaming.
10567
10568 2009-09-06  Richard Guenther  <rguenther@suse.de>
10569
10570         PR middle-end/41144
10571         * tree.c (build_array_type): Do not record types marked
10572         with structural equality in the canonical type hashtable.
10573
10574 2009-09-06  Richard Guenther  <rguenther@suse.de>
10575
10576         PR middle-end/41261
10577         * tree-ssa-alias.c (refs_may_alias_p_1): Bail out for function decls.
10578
10579 2009-09-05  Richard Guenther  <rguenther@suse.de>
10580
10581         PR middle-end/41181
10582         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use the correct type.
10583
10584 2009-09-05  Richard Guenther  <rguenther@suse.de>
10585
10586         PR debug/41273
10587         * tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops.
10588
10589 2009-09-05  Richard Guenther  <rguenther@suse.de>
10590
10591         PR middle-end/41271
10592         * tree-ssa.c (useless_type_conversion_p): Drop qualifiers
10593         before comparing function argument types.
10594
10595 2009-09-05  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
10596
10597         PR target/41024
10598         * config/i386/mingw-w64.h (ASM_SPEC): Pass -v instead of -V to
10599         the assembler.
10600
10601 2009-09-04  Uros Bizjak  <ubizjak@gmail.com>
10602
10603         Revert:
10604         2009-08-18  Uros Bizjak  <ubizjak@gmail.com>
10605
10606         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
10607         locators before emit_insn is called.
10608
10609 2009-09-04  Vladimir Makarov  <vmakarov@redhat.com>
10610
10611         PR bootstrap/41241
10612         * ira.c (update_equiv_reg): Revert my previous patch for the PR.
10613         * reginfo.c (resize_reg_info): Call allocate_reg_info if necessary.
10614         (reginfo_init): Don't call allocate_reg_info.
10615
10616 2009-09-04  Uros Bizjak  <ubizjak@gmail.com>
10617
10618         PR target/41262
10619         * config/alpha/alpha.c (alpha_does_function_need_gp): Use
10620         NONDEBUG_INSN_P instead of INSN_P.
10621
10622 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
10623
10624         PR debug/41225
10625         * tree-vect-stmts.c (vect_stmt_relevant_p): Skip debug uses.
10626
10627 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
10628
10629         PR target/41252
10630         * config/arm/vfp.md (*cmpdf_split_vfp): Fix src mode in the second
10631         pattern of the split.
10632
10633 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
10634
10635         * toplev.c (process_options): Move setter of flag_var_tracking
10636         before other tests that depend on it.  Move down setter of
10637         flag_rename_registers.  Don't enable var-tracking-assignments
10638         by default if selective scheduling is enabled.  Warn if both
10639         are enabled.
10640
10641 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
10642
10643         * var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match
10644         comment.  Use switch statement to catch overlaps between rtx
10645         and tree codes.  Accept FUNCTION_DECLs in addition to those in...
10646         (IS_DECL_CODE): ... here. Remove.
10647         (check_value_is_not_decl): Remove.
10648         (dv_from_decl, dv_from_value): Check after conversion.
10649
10650 2009-09-04  Richard Guenther  <rguenther@suse.de>
10651
10652         PR middle-end/41257
10653         * (cgraph_finalize_compilation_unit): Move finalizing aliases
10654         after emitting tunks.  Move emitting thunks and ctors from ...
10655         (cgraph_optimize): ... here.  Remove redundant
10656         cgraph_analyze_functions.
10657         * varasm.c (find_decl_and_mark_needed): Remove no longer
10658         necessary check.
10659         (finish_aliases_1): Adjust check for thunk aliases.
10660
10661 2009-09-04  Daniel Gutson  <dgutson@codesourcery.com>
10662
10663         * config/arm/arm.md (ctzsi2): Added braces
10664         to avoid warning that broke booststrap.
10665
10666 2009-09-04  Martin Jambor  <mjambor@suse.cz>
10667
10668         PR tree-optimization/41112
10669         * tree-sra.c (build_ref_for_offset_1): Signal that we cannot
10670         handle variable-bounded arrays.
10671         (expr_with_var_bounded_array_refs_p): New function.
10672         (analyze_access_subtree): Call expr_with_var_bounded_array_refs_p.
10673
10674 2009-09-04  Wolfgang Gellerich  <gellerich@de.ibm.com>
10675
10676         * config/s390/2097.md: Removed two incorrect bypasses.
10677         (z10_fsimpdf): Fixed latency.
10678         (z10_fhex): New insn_reservation.
10679         (z10_floaddf): Fixed latency.
10680         (z10_floadsf): Fixed latency.
10681         (z10_ftrunctf): Fixed latency.
10682         (z10_ftruncdf): Fixed latency.
10683         * config/s390/s390.c (z10_cost): Fixed values.
10684         (s390_adjust_priority): Added z10 path.
10685         * config/s390/s390.md (type): Added fhex.
10686         (*mov<mode>_64dfp): Updated type attribute.
10687         (*mov<mode>_64): Updated type attribute.
10688         (*mov<mode>_31): Updated type attribute.
10689         (*mov<mode>"): Likewise.
10690         * config/s390/2084.md (x_fsimpdf): Updated condition.
10691
10692 2009-09-04  Andreas Krebbel  <krebbel1@de.ibm.com>
10693
10694         * config/s390/s390.md ("*fmadd<mode>", "*fmsub<mode>"): Enable mem
10695         RTXs in the predicate for operand 1.
10696
10697 2009-09-03  Daniel Gutson  <dgutson@codesourcery.com>
10698
10699         * config/arm/arm.md (UNSPEC_RBIT): New constant.
10700         (rbitsi2): New insn.
10701         (ctzsi2): New expand.
10702         * config/arm/arm.h (CTZ_DEFINED_VALUE_AT_ZERO): New macro.
10703
10704 2009-09-03  Martin Jambor  <mjambor@suse.cz>
10705
10706         * tree-sra.c (duplicate_expr_for_different_base): Removed.
10707         (create_artificial_child_access): Use build_ref_for_offset instead
10708         of duplicate_expr_for_different_base.
10709         (propagate_subacesses_accross_link): Likewise.
10710
10711 2009-09-03  Richard Sandiford  <rdsandiford@googlemail.com>
10712
10713         * config/mips/mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead
10714         of INSN_P.
10715         (mips16e_collect_argument_saves): Skip debug instructions.
10716         (mips_74k_agen_init): Use CALL_P || JUMP_P instead of !NONJUMP_INSN_P.
10717         (mips16_lay_out_constants): Use USEFUL_INSN_P instead of INSN_P.
10718         (r10k_insert_cache_barriers): Likewise.
10719         (mips_reorg_process_insns): Likewise.
10720
10721 2009-09-03  Vladimir Makarov  <vmakarov@redhat.com>
10722
10723         PR bootstrap/41241
10724         * ira.c (update_equiv_reg): Remove check on class likely spill.
10725
10726 2009-09-03  Jakub Jelinek  <jakub@redhat.com>
10727
10728         PR debug/41236
10729         * dwarf2out.c (loc_descriptor): Don't use SUBREG_REG macro on
10730         SIGN_EXTEND or ZERO_EXTEND.  Don't assume there is a REG inside of
10731         it or SUBREG.
10732
10733         PR debug/41238
10734         * function.c (assign_parm_find_stack_rtl): Don't set mem attributes on
10735         the stack slot if it is passed by invisible reference.
10736         * var-tracking.c (vt_add_function_parameters): Handle arguments passed
10737         by invisible reference.
10738
10739 2009-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
10740
10741         * config/bfin/linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
10742         * config/bfin/uclinux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
10743         * config/bfin/bfin.h (TARGET_SUPPORTS_SYNC_CALLS): Provide default of
10744         0.
10745         * config/bfin/sync.md: New file.
10746         * config/bfin/bfin.md: Include it.
10747         (UNSPEC_ATOMIC): New.
10748         (UNSPEC_ONES): Provide a unique number.
10749
10750         From Jie Zhang <jie.zhang@analog.com>:
10751         * config/bfin/bfin.c (ret_regs): New.
10752         (must_save_fp_p): Don't return true because of frame_pointer_needed.
10753         (must_save_rets_p): New.
10754         (n_regs_saved_by_prologue): Use must_save_rets_p instead of
10755         current_function_is_leaf.
10756         (do_link): Likewise.
10757         (do_unlink): Likewise.
10758         (expand_interrupt_handler_prologue): Use ret_regs array.
10759         (expand_interrupt_handler_epilogue): Use ret_regs array and
10760         pass return register to gen_return_internal.
10761         (bfin_expand_epilogue): Pass return register to
10762         gen_return_internal.
10763         (bfin_expand_call): Explicitly clobber RETS.
10764         * config/bfin/bfin.h (FUNCTION_RETURN_REGISTERS): Define.
10765         * config/bfin/bfin.md (call_symbol_fdpic, call_value_symbol_fdpic,
10766         call_insn_fdpic, call_value_insn_fdpic, call_symbol,
10767         call_value_symbol, call_insn, call_value_insn): Explicitly clobber
10768         RETS.
10769         (return_internal): Take a reg rtx rather than the register number.
10770
10771 2009-09-03  H.J. Lu  <hongjiu.lu@intel.com>
10772
10773         * tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT
10774         when comparing against estimated_loop_iterations_int return.
10775
10776 2009-09-03  Richard Guenther  <rguenther@suse.de>
10777
10778         * dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
10779         eh_personality_libfunc.
10780
10781 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
10782
10783         * tree-parloops.c (separate_decls_in_region): Add space.
10784
10785 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
10786
10787         * tree-parloops.c (separate_decls_in_region): Change the condition
10788         checking if there are reductions in the loop.
10789
10790 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
10791
10792         PR tree-optimization/38275
10793         * tree-parloops.c (parallelize_loops): Replace profitability condition
10794         for expected number of iterations.
10795
10796 2009-09-03  Alexandre Oliva  <aoliva@redhat.com>
10797
10798         * doc/invoke.texi (BUILD_CONFIG): Document --with-build-config.
10799         (bootstrap-debug): Explain conditions in which it becomes default.
10800         (bootstrap-debug-big): Rather than duplicate bootstrap-debug,
10801         make it add to it.
10802
10803 2009-09-03  Namhyung Kim  <namhyung@gmail.com>
10804
10805         * doc/invoke.texi (Optimize Options): Move
10806         -finline-small-functions to the -O2 list.
10807
10808 2009-09-03  Alexandre Oliva  <aoliva@redhat.com>
10809
10810         * toplev.c (process_options): Enable var-tracking-assignments
10811         by default if var-tracking is enabled.
10812
10813 2009-09-02  David Daney  <ddaney@caviumnetworks.com>
10814
10815         * cfgbuild.c (find_bb_boundaries): Split blocks containing a
10816         barrier.
10817         * emit-rtl.c (prev_nonnote_insn_bb): New function.
10818         * rtl.h (prev_nonnote_insn_bb): Declare it.
10819
10820 2009-09-03  Diego Novillo  <dnovillo@google.com>
10821
10822         * cgraph.c (cgraph_node_for_decl): New.
10823         * cgraph.h (cgraph_node_for_decl): Declare.
10824         * tree.c (host_integerp): Return 0 if T is NULL.
10825
10826 2009-09-03  Diego Novillo  <dnovillo@google.com>
10827
10828         * tree.h (struct alias_pair): Move from varasm.c.
10829         (alias_pairs): Likewise.
10830         (TYPE_MAXVAL): Define.
10831         (TYPE_MINVAL): Define.
10832         (iterative_hash_host_wide_int): Declare.
10833         (remove_unreachable_alias_pairs): Declare.
10834         * tree-pass.h (pass_ipa_free_lang_data): Declare.
10835         * diagnostic.c (default_diagnostic_starter): Make extern.
10836         (default_diagnostic_finalizer): Make extern.
10837         * diagnostic.h (default_diagnostic_starter): Declare.
10838         (default_diagnostic_finalizer): Declare.
10839         (default_tree_printer): Declare.
10840         * toplev.c (default_tree_printer): Make extern.
10841
10842 2009-09-03  Richard Guenther  <rguenther@suse.de>
10843             Diego Novillo  <dnovillo@google.com>
10844
10845         * cgraph.c (cgraph_add_new_function): Remove gimplification.
10846         * cgraphunit.c (cgraph_expand_function): Do not emit
10847         associated thunks from here.
10848         (cgraph_emit_thunks): New.
10849         (cgraph_optimize): Call it.
10850         Return if any IPA pass finds an error.
10851         * varasm.c (finish_aliases_1): Ignore errorneous aliases used
10852         by thunks.
10853
10854 2009-09-03  Simon Baldwin  <simonb@google.com>
10855             Rafael Espindola  <espindola@google.com>
10856             Richard Guenther  <rguenther@suse.de>
10857             Doug Kwan  <dougkwan@google.com>
10858             Diego Novillo  <dnovillo@google.com>
10859
10860         * tree.c: Include tree-pass.h, langhooks-def.h,
10861         diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
10862         (free_lang_data_in_type): New.
10863         (need_assembler_name_p): New.
10864         (free_lang_data_in_block): New.
10865         (free_lang_data_in_decl): New.
10866         (struct free_lang_data_d): New.
10867         (add_tree_to_fld_list): New.
10868         (find_decls_types_r): New.
10869         (get_eh_types_for_runtime): New.
10870         (find_decls_types_in_eh_region): New.
10871         (find_decls_types_in_node): New.
10872         (find_decls_types_in_var): New.
10873         (free_lang_data_in_cgraph): New.
10874         (free_lang_data): New.
10875         (gate_free_lang_data): New.
10876         (pass_ipa_free_lang_data): New.
10877
10878 2009-09-03  Diego Novillo  <dnovillo@google.com>
10879
10880         * timevar.def (TV_IPA_FREE_LANG_DATA): Define.
10881         * langhooks.h (struct lang_hooks): Add field free_lang_data.
10882         (lang_hooks): Remove const qualifier.
10883         * ipa.c (cgraph_remove_unreachable_nodes): Call
10884         remove_unreachable_alias_pairs.
10885         * except.c (add_type_for_runtime): Check if TYPE has
10886         already been converted.
10887         (lookup_type_for_runtime): Likewise.
10888         (check_handled): Handle converted types.
10889         * varasm.c (remove_unreachable_alias_pairs): New.
10890         * gimple.c: Include demangle.h.
10891         (gimple_decl_printable_name): New.
10892         (gimple_fold_obj_type_ref): New.
10893         * gimple.h (gimple_decl_printable_name): Declare.
10894         (gimple_fold_obj_type_ref): Declare.
10895         * passes.c (init_optimization_passes): Add pass
10896         pass_ipa_free_lang_data.
10897         * langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
10898         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
10899
10900 2009-09-03  Diego Novillo  <dnovillo@google.com>
10901
10902         * c-lang.c (lang_hooks): Remove const qualifier.
10903
10904 2009-09-02  Loren James Rittle  <ljrittle@acm.org>
10905
10906         * doc/install.texi (*-*-freebsd*): Update target information.
10907
10908 2009-09-02  Anatoly Sokolov  <aesok@post.ru>
10909
10910         * hard-reg-set.h (call_fixed_regs): Remove.
10911         * reginfo.c (call_fixed_regs): Remove.
10912         (init_reg_sets_1): Remove initialization of call_fixed_regs.
10913         (globalize_reg): Don't use call_fixed_regs.
10914         * caller-save.c (init_caller_save): Use call_fixed_reg_set instead of
10915         call_fixed_regs.
10916
10917 2009-09-01  Michael Matz  <matz@suse.de>
10918
10919         * expr.h (emit_storent_insn, expand_expr_real_1,
10920         expand_expr_real_2): Declare.
10921         * expr.c (emit_storent_insn, expand_expr_real_1,
10922         expand_expr_real_2): Export.
10923         (store_expr): Setting and evaluating dont_return_target is useless.
10924         (expand_expr_real_1, <case GOTO_EXPR, RETURN_EXPR, SWITCH_EXPR,
10925         LABEL_EXPR and ASM_EXPR>): Move to gcc_unreachable.
10926         * except.c (expand_resx_expr): Rename to ...
10927         (expand_resx_stmt): ... this.  Rewrite to take gimple statement.
10928         * except.h (expand_resx_stmt): Declare.
10929         * stmt.c: Add include gimple.h
10930         (expand_asm_expr): Rename to ...
10931         (expand_asm_stmt): ... this. Rewrite to take gimple statement.
10932         (expand_case): Rewrite to take gimple statement.
10933         * tree.h (expand_asm_stmt): Declare.
10934         (expand_case): Change prototype.
10935         * Makefile.in (stmt.o): Depend on gimple.h.
10936         * builtins.c (expand_builtin_synchronize): Build gimple asm
10937         statement, not an ASM_EXPR.
10938         * cfgexpand.c (gimple_cond_pred_to_tree, set_expr_location_r,
10939         gimple_to_tree, release_stmt_tree): Remove.
10940         (expand_gimple_cond): Don't call gimple_cond_pred_to_tree or
10941         ggc_free, but hold comparison code and operands separately.
10942         Call jumpif_1 and jumpifnot_1 instead of jumpif and jumpifnot.
10943         (expand_call_stmt, expand_gimple_stmt_1,
10944         expand_gimple_stmt): New helpers.
10945         (expand_gimple_tailcall): Don't call gimple_to_tree, expand_expr_stmt,
10946         release_stmt_tree.  Call expand_gimple_stmt instead.
10947         (expand_gimple_basic_block): Ditto.
10948
10949         * calls.c (emit_call_1): Don't look at EH regions here, make
10950         fntree parameter useless.
10951         (expand_call): New local rettype for TREE_TYPE(exp), use it
10952         throughout.  Remove local p, use addr instead.
10953         Don't look at EH regions here.
10954
10955 2009-09-02  Vladimir Makarov  <vmakarov@redhat.com>
10956
10957         * doc/invoke.texi (-fsched-pressure): Document it.
10958         (-fsched-reg-pressure-heuristic): Remove it.
10959
10960         * reload.c (ira.h): Include.
10961         (find_reloads): Add choosing reload on number of small spilled
10962         classes.
10963
10964         * haifa-sched.c (ira.h): Include.
10965         (sched_pressure_p, sched_regno_cover_class, curr_reg_pressure,
10966         saved_reg_pressure, curr_reg_live, saved_reg_live,
10967         region_ref_regs): New variables.
10968         (sched_init_region_reg_pressure_info, mark_regno_birth_or_death,
10969         initiate_reg_pressure_info, setup_ref_regs,
10970         initiate_bb_reg_pressure_info, save_reg_pressure,
10971         restore_reg_pressure, dying_use_p, print_curr_reg_pressure): New
10972         functions.
10973         (setup_insn_reg_pressure_info): New function.
10974         (rank_for_schedule): Add pressure checking and insn issue time.
10975         Remove comparison of insn reg weights.
10976         (ready_sort): Set insn reg pressure info.
10977         (update_register_pressure, setup_insn_max_reg_pressure,
10978         update_reg_and_insn_max_reg_pressure,
10979         sched_setup_bb_reg_pressure_info): New functions.
10980         (schedule_insn): Add code for printing and updating reg pressure info.
10981         (find_set_reg_weight, find_insn_reg_weight): Remove.
10982         (ok_for_early_queue_removal): Do nothing if pressure_only_p.
10983         (debug_ready_list): Print reg pressure info.
10984         (schedule_block): Ditto.  Check insn issue time.
10985         (sched_init): Set up sched_pressure_p.  Allocate and set up some
10986         reg pressure related info.
10987         (sched_finish): Free some reg pressure related info.
10988         (fix_tick_ready): Make insn always ready if pressure_p.
10989         (init_h_i_d): Don't call find_insn_reg_weight.
10990         (haifa_finish_h_i_d): Free insn reg pressure info.
10991
10992         * ira-int.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
10993         ira_memory_move_cost, ira_class_hard_regs,
10994         ira_class_hard_regs_num, ira_no_alloc_regs,
10995         ira_available_class_regs, ira_reg_class_cover_size,
10996         ira_reg_class_cover, ira_class_translate): Move to ira.h.
10997
10998         * ira-lives.c (single_reg_class): Check mode to find how many
10999         registers are necessary for operand.
11000         (ira_implicitly_set_insn_hard_regs): New.
11001
11002         * common.opt (fsched-pressure): New options.
11003         (fsched-reg-pressure-heuristic): Remove.
11004
11005         * ira.c (setup_eliminable_regset): Rename to
11006         ira_setup_eliminable_regset.  Make it external.
11007         (expand_reg_info): Pass cover class to setup_reg_classes.
11008         (ira): Call resize_reg_info instead of allocate_reg_info.
11009
11010         * sched-deps.c: Include ira.h.
11011         (implicit_reg_pending_clobbers, implicit_reg_pending_uses): New.
11012         (create_insn_reg_use, create_insn_reg_set, setup_insn_reg_uses,
11013         reg_pressure_info, insn_use_p, mark_insn_pseudo_birth,
11014         mark_insn_hard_regno_birth, mark_insn_reg_birth,
11015         mark_pseudo_death, mark_hard_regno_death, mark_reg_death,
11016         mark_insn_reg_store, mark_insn_reg_clobber,
11017         setup_insn_reg_pressure_info): New.
11018         (sched_analyze_1): Update implicit_reg_pending_uses.
11019         (sched_analyze_insn): Find implicit sets, uses, clobbers of regs.
11020         Use them to create dependencies.  Set insn reg uses and pressure
11021         info.  Process reg_pending_uses in one place.
11022         (free_deps): Free implicit sets.
11023         (remove_from_deps): Remove implicit sets if necessary.  Check
11024         implicit sets when clearing reg_last_in_use.
11025         (init_deps_global): Clear implicit_reg_pending_clobbers and
11026         implicit_reg_pending_uses.
11027
11028         * ira.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
11029         ira_memory_move_cost, ira_class_hard_regs,
11030         ira_class_hard_regs_num, ira_no_alloc_regs,
11031         ira_available_class_regs, ira_reg_class_cover_size,
11032         ira_reg_class_cover, ira_class_translate): Move from ira-int.h.
11033         (ira_setup_eliminable_regset, ira_set_pseudo_classes,
11034         ira_implicitly_set_insn_hard_regs): New prototypes.
11035
11036         * ira-costs.c (pseudo_classes_defined_p, allocno_p,
11037         cost_elements_num): New variables.
11038         (allocno_costs, total_costs): Rename to costs and
11039         total_allocno_costs.
11040         (COSTS_OF_ALLOCNO): Rename to COSTS.
11041         (allocno_pref): Rename to pref.
11042         (allocno_pref_buffer): Rename to pref_buffer.
11043         (common_classes): Rename to regno_cover_class.
11044         (COST_INDEX): New.
11045         (record_reg_classes): Set allocno attributes only if allocno_p.
11046         (record_address_regs): Ditto.  Use COST_INDEX instead of ALLOCNO_NUM.
11047         (scan_one_insn): Use COST_INDEX and COSTS instead of ALLOCNO_NUM
11048         and COSTS_OF_ALLOCNO.
11049         (print_costs): Rename to print_allocno_costs.
11050         (print_pseudo_costs): New.
11051         (process_bb_node_for_costs): Split into 2 functions with new
11052         function process_bb_for_costs.  Pass BB to process_bb_for_costs.
11053         (find_allocno_class_costs): Rename to find_costs_and_classes.  Add
11054         new parameter dump_file.  Use cost_elements_num instead of
11055         ira_allocnos_num.  Make one iteration if preferred classes were
11056         already calculated for scheduler.  Make 2 versions of code
11057         depending on allocno_p.
11058         (setup_allocno_cover_class_and_costs): Check allocno_p.  Use
11059         regno_cover_class and COSTS instead of common_classes and
11060         COSTS_OF_ALLOCNO.
11061         (init_costs, finish_costs): New.
11062         (ira_costs): Set up allocno_p and cost_elements_num.  Call
11063         init_costs and finish_costs.
11064         (ira_set_pseudo_classes): New.
11065
11066         * rtl.h (allocate_reg_info): Remove.
11067         (resize_reg_info): Change return type.
11068         (reg_cover_class): New.
11069         (setup_reg_classes): Add new parameter.
11070
11071         * sched-int.h (struct deps_reg): New member implicit_sets.
11072         (sched_pressure_p, sched_regno_cover_class): New external definitions.
11073         (INCREASE_BITS): New macro.
11074         (struct reg_pressure_data, struct reg_use_data): New.
11075         (struct _haifa_insn_data): Remove reg_weight.  Add members
11076         reg_pressure, reg_use_list, reg_set_list, and
11077         reg_pressure_excess_cost_change.
11078         (struct deps): New member implicit_sets.
11079         (pressure_p): New variable.
11080         (COVER_CLASS_BITS, INCREASE_BITS): New macros.
11081         (struct reg_pressure_data, struct reg_use_data): New.
11082         (INSN_REG_WEIGHT): Remove.
11083         (INSN_REG_PRESSURE, INSN_MAX_REG_PRESSURE, INSN_REG_USE_LIST,
11084         INSN_REG_SET_LIST, INSN_REG_PRESSURE_EXCESS_COST_CHANGE): New macros.
11085         (sched_init_region_reg_pressure_info,
11086         sched_setup_bb_reg_pressure_info): New prototypes.
11087
11088         * reginfo.c (struct reg_pref): New member coverclass.
11089         (reg_cover_class): New function.
11090         (reginfo_init, pass_reginfo_init): Move after free_reg_info.
11091         (reg_info_size): New variable.
11092         (allocate_reg_info): Make static.  Setup reg_info_size.
11093         (resize_reg_info): Use reg_info_size.  Return flag of resizing.
11094         (setup_reg_classes): Add a new parameter.  Setup cover class too.
11095
11096         * Makefile.in (reload.o, haifa-sched.o, sched-deps.o): Add ira.h to
11097         the dependencies.
11098
11099         * sched-rgn.c (deps_join): Set up implicit_sets.
11100         (schedule_region): Set up region and basic blocks pressure
11101         relative info.
11102
11103         * passes.c (init_optimization_passes): Move
11104         pass_subregs_of_mode_init before pass_sched.
11105
11106 2009-09-02  Martin Jambor  <mjambor@suse.cz>
11107
11108         * tree-sra.c (struct access): New field grp_hint.
11109         (dump_access): Dump grp_hint.
11110         (sort_and_splice_var_accesses): Set grp_hint if a group is read
11111         multiple times.
11112         (analyze_access_subtree): Only scalarize accesses with grp_hint set or
11113         those which have been specifically read and somehow written to.
11114         (propagate_subacesses_accross_link): Set grp_hint of right child and
11115         also possibly of the left child.
11116
11117 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
11118
11119         * tree-object-size.c (addr_object_size): Always use object_size_type
11120         0 or 2 when determining the pointer pointed object size.
11121
11122 2009-09-02  Richard Guenther  <rguenther@suse.de>
11123
11124         Revert
11125         2009-08-31  Richard Guenther  <rguenther@suse.de>
11126
11127         * builtins.c (fold_builtin_memory_op): Use the alias oracle
11128         to query if the memory regions for memmove overlap.
11129         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
11130         asserts on pointers, instead deal with odd trees.
11131         (ptr_derefs_may_alias_p): Likewise.
11132         (refs_may_alias_p_1): Constructor bases also never alias.
11133
11134 2009-08-01  Christian Bruel  <christian.bruel@st.com>
11135
11136         Revert:
11137         2009-07-31  Christian Bruel  <christian.bruel@st.com>
11138         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
11139
11140 2009-09-01  Alexandre Oliva  <aoliva@redhat.com>
11141
11142         * doc/invoke.texi (-fvar-tracking-assignments): New.
11143         (-fvar-tracking-assignments-toggle): New.
11144         (-fdump-final-insns=file): Mark filename as optional.
11145         (--param min-nondebug-insn-uid): New.
11146         (-gdwarf-@{version}): Mention version 4.
11147         * opts.c (common_handle_option): Accept it.
11148         * tree-vrp.c (find_assert_locations_1): Skip debug stmts.
11149         * regrename.c (regrename_optimize): Drop last.  Don't count debug
11150         insns as uses.  Don't reject change because of debug insn.
11151         (do_replace): Reject DEBUG_INSN as chain starter.  Take base_regno
11152         from the chain starter, and check for inexact matches in DEBUG_INSNS.
11153         (scan_rtx_reg): Accept inexact matches in DEBUG_INSNs.
11154         (build_def_use): Simplify and fix the marking of DEBUG_INSNs.
11155         * sched-ebb.c (schedule_ebbs): Skip boundary debug insns.
11156         * fwprop.c (forward_propagate_and_simplify): ...into debug insns.
11157         * doc/gimple.texi (is_gimple_debug): New.
11158         (gimple_debug_bind_p): New.
11159         (is_gimple_call, gimple_assign_cast_p): End sentence with period.
11160         * doc/install.texi (bootstrap-debug): More details.
11161         (bootstrap-debug-big, bootstrap-debug-lean): Document.
11162         (bootstrap-debug-lib): More details.
11163         (bootstrap-debug-ckovw): Update.
11164         (bootstrap-time): New.
11165         * tree-into-ssa.c (mark_def_sites): Skip debug stmts.
11166         (insert_phi_nodes_for): Insert debug stmts.
11167         (rewrite_stmt): Take iterator.  Insert debug stmts.
11168         (rewrite_enter_block): Adjust.
11169         (maybe_replace_use_in_debug_stmt): New.
11170         (rewrite_update_stmt): Use it.
11171         (mark_use_interesting): Return early for debug stmts.
11172         * tree-ssa-loop-im.c (rewrite_bittest): Propagate DEFs into debug
11173         stmts before replacing stmt.
11174         (move_computations_stmt): Likewise.
11175         * ira-conflicts.c (add_copies): Skip debug insns.
11176         * regstat.c (regstat_init_n_sets_and_refs): Discount debug insns.
11177         (regstat_bb_compute_ri): Skip debug insns.
11178         * tree-ssa-threadupdate.c (redirection_block_p): Skip debug stmts.
11179         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
11180         check_loop_closed_ssa_stmt): Skip debug stmts.
11181         * tree-tailcall.c (find_tail_calls): Likewise.
11182         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
11183         * tree.h (MAY_HAVE_DEBUG_STMTS): New.
11184         (build_var_debug_value_stat): Declare.
11185         (build_var_debug_value): Define.
11186         (target_for_debug_bind): Declare.
11187         * reload.c (find_equiv_reg): Skip debug insns.
11188         * rtlanal.c (reg_used_between_p): Skip debug insns.
11189         (side_effects_p): Likewise.
11190         (canonicalize_condition): Likewise.
11191         * ddg.c (create_ddg_dep_from_intra_loop_link): Check that non-debug
11192         insns never depend on debug insns.
11193         (create_ddg_dep_no_link): Likewise.
11194         (add_cross_iteration_register_deps): Use ANTI_DEP for debug insns.
11195         Don't add inter-loop dependencies for debug insns.
11196         (build_intra_loop_deps): Likewise.
11197         (create_ddg): Count debug insns.
11198         * ddg.h (struct ddg::num_debug): New.
11199         (num_backargs): Pair up with previous int field.
11200         * diagnostic.c (diagnostic_report_diagnostic): Skip notes on
11201         -fcompare-debug-second.
11202         * final.c (get_attr_length_1): Skip debug insns.
11203         (rest_of_clean-state): Don't dump CFA_RESTORE_STATE.
11204         * gcc.c (invoke_as): Call compare-debug-dump-opt.
11205         (driver_self_specs): Map -fdump-final-insns to
11206         -fdump-final-insns=..
11207         (get_local_tick): New.
11208         (compare_debug_dump_opt_spec_function): Test for . argument and
11209         compute output name.  Compute temp output spec without flag name.
11210         Compute -frandom-seed.
11211         (OPT): Undef after use.
11212         * cfgloopanal.c (num_loop_insns): Skip debug insns.
11213         (average_num_loop_insns): Likewise.
11214         * params.h (MIN_NONDEBUG_INSN_UID): New.
11215         * gimple.def (GIMPLE_DEBUG): New.
11216         * ipa-reference.c (scan_stmt_for_static_refs): Skip debug stmts.
11217         * auto-inc-dec.c (merge_in_block): Skip debug insns.
11218         (merge_in_block): Fix whitespace.
11219         * toplev.c (flag_var_tracking): Update comment.
11220         (flag_var_tracking_assignments): New.
11221         (flag_var_tracking_assignments_toggle): New.
11222         (process_options): Don't open final insns dump file if we're not
11223         going to write to it.  Compute defaults for var_tracking.
11224         * df-scan.c (df_insn_rescan_debug_internal): New.
11225         (df_uses_record): Handle debug insns.
11226         * haifa-sched.c (ready): Initialize n_debug.
11227         (contributes_to_priority): Skip debug insns.
11228         (dep_list_size): New.
11229         (priority): Use it.
11230         (rank_for_schedule): Likewise.  Schedule debug insns as soon as
11231         they're ready.  Disregard previous debug insns to make decisions.
11232         (queue_insn): Never queue debug insns.
11233         (ready_add, ready_remove_first, ready_remove): Count debug insns.
11234         (schedule_insn): Don't reject debug insns because of issue rate.
11235         (get_ebb_head_tail, no_real_insns_p): Skip boundary debug insns.
11236         (queue_to_ready): Skip and discount debug insns.
11237         (choose_ready): Let debug insns through.
11238         (schedule_block): Check boundary debug insns.  Discount debug
11239         insns, schedule them early.  Adjust whitespace.
11240         (set_priorities): Check for boundary debug insns.
11241         (add_jump_dependencies): Use dep_list_size.
11242         (prev_non_location_insn): New.
11243         (check_cfg): Use it.
11244         * tree-ssa-loop-ivopts.c (find-interesting_users): Skip debug
11245         stmts.
11246         (remove_unused_ivs): Reset debug stmts.
11247         * modulo-sched.c (const_iteration_count): Skip debug insns.
11248         (res_MII): Discount debug insns.
11249         (loop_single_full_bb_p): Skip debug insns.
11250         (sms_schedule): Likewise.
11251         (sms_schedule_by_order): Likewise.
11252         (ps_has_conflicts): Likewise.
11253         * caller-save.c (refmarker_fn): New.
11254         (save_call_clobbered_regs): Replace regs with saved mem in
11255         debug insns.
11256         (mark_referenced_regs): Take pointer, mark and arg.  Adjust.
11257         Call refmarker_fn mark for hardregnos.
11258         (mark_reg_as_referenced): New.
11259         (replace_reg_with_saved_mem): New.
11260         * ipa-pure-const.c (check_stmt): Skip debug stmts.
11261         * cse.c (cse_insn): Canonicalize debug insns.  Skip them when
11262         searching back.
11263         (cse_extended_basic_block): Skip debug insns.
11264         (count_reg_usage): Likewise.
11265         (is_dead_reg): New, split out of...
11266         (set_live_p): ... here.
11267         (insn_live_p): Use it for debug insns.
11268         * tree-stdarg.c (check_all_va_list_escapes): Skip debug stmts.
11269         (execute_optimize_stdarg): Likewise.
11270         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
11271         * tree-ssa-propagate.c (substitute_and_fold): Don't regard
11272         changes in debug stmts as changes.
11273         * sel-sched.c (moving_insn_creates_bookkeeping_block_p): New.
11274         (moveup_expr): Don't move across debug insns.  Don't move
11275         debug insn if it would create a bookkeeping block.
11276         (moveup_expr_cached): Don't use cache for debug insns that
11277         are heads of blocks.
11278         (compute_av_set_inside_bb): Skip debug insns.
11279         (sel_rank_for_schedule): Schedule debug insns first.  Remove
11280         dead code.
11281         (block_valid_for_bookkeeping_p); Support lax searches.
11282         (create_block_for_bookkeeping): Adjust block numbers when
11283         encountering debug-only blocks.
11284         (find_place_for_bookkeeping): Deal with debug-only blocks.
11285         (generate_bookkeeping_insn): Accept no place to insert.
11286         (remove_temp_moveop_nops): New argument full_tidying.
11287         (prepare_place_to_insert): Deal with debug insns.
11288         (advance_state_on_fence): Debug insns don't start cycles.
11289         (update_boundaries): Take fence as argument.  Deal with
11290         debug insns.
11291         (schedule_expr_on_boundary): No full_tidying on debug insns.
11292         (fill_insns): Deal with debug insns.
11293         (track_scheduled_insns_and_blocks): Don't count debug insns.
11294         (need_nop_to_preserve_insn_bb): New, split out of...
11295         (remove_insn_from_stream): ... this.
11296         (fur_orig_expr_not_found): Skip debug insns.
11297         * rtl.def (VALUE): Move up.
11298         (DEBUG_INSN): New.
11299         * tree-ssa-sink.c (all_immediate_uses_same_place): Skip debug stmts.
11300         (nearest_common_dominator_of_uses): Take debug_stmts argument.
11301         Set it if debug stmts are found.
11302         (statement_sink_location): Skip debug stmts.  Propagate
11303         moving defs into debug stmts.
11304         * ifcvt.c (first_active_insn): Skip debug insns.
11305         (last_active_insns): Likewise.
11306         (cond_exec_process_insns): Likewise.
11307         (noce_process_if_block): Likewise.
11308         (check_cond_move_block): Likewise.
11309         (cond_move_convert_if_block): Likewise.
11310         (block_jumps_and_fallthru_p): Likewise.
11311         (dead_or_predicable): Likewise.
11312         * dwarf2out.c (debug_str_hash_forced): New.
11313         (find_AT_string): Add comment.
11314         (gen_label_for_indirect_string): New.
11315         (get_debug_string_label): New.
11316         (AT_string_form): Use it.
11317         (mem_loc_descriptor): Handle non-TLS symbols.  Handle MINUS , DIV,
11318         MOD, AND, IOR, XOR, NOT, ABS, NEG, and CONST_STRING.  Accept but
11319         discard COMPARE, IF_THEN_ELSE, ROTATE, ROTATERT, TRUNCATE and
11320         several operations that cannot be represented with DWARF opcodes.
11321         (loc_descriptor): Ignore SIGN_EXTEND and ZERO_EXTEND.  Require
11322         dwarf_version 4 for DW_OP_implicit_value and DW_OP_stack_value.
11323         (dwarf2out_var_location): Take during-call mark into account.
11324         (output_indirect_string): Update comment.  Output if there are
11325         label and references.
11326         (prune_indirect_string): New.
11327         (prune_unused_types): Call it if debug_str_hash_forced.
11328         More in dwarf2out.c, from Jakub Jelinek <jakub@redhat.com>:
11329         (dw_long_long_const): Remove.
11330         (struct dw_val_struct): Change val_long_long type to rtx.
11331         (print_die, attr_checksum, same_dw_val_p, loc_descriptor): Adjust for
11332         val_long_long change to CONST_DOUBLE rtx from a long hi/lo pair.
11333         (output_die): Likewise.  Use HOST_BITS_PER_WIDE_INT size of each
11334         component instead of HOST_BITS_PER_LONG.
11335         (output_loc_operands): Likewise.  For const8* assert
11336         HOST_BITS_PER_WIDE_INT rather than HOST_BITS_PER_LONG is >= 64.
11337         (output_loc_operands_raw): For const8* assert HOST_BITS_PER_WIDE_INT
11338         rather than HOST_BITS_PER_LONG is >= 64.
11339         (add_AT_long_long): Remove val_hi and val_lo arguments, add
11340         val_const_double.
11341         (size_of_die): Use HOST_BITS_PER_WIDE_INT size multiplier instead of
11342         HOST_BITS_PER_LONG for dw_val_class_long_long.
11343         (add_const_value_attribute): Adjust add_AT_long_long caller.  Don't
11344         handle TLS SYMBOL_REFs.  If CONST wraps a constant, tail recurse.
11345         (dwarf_stack_op_name): Handle DW_OP_implicit_value and
11346         DW_OP_stack_value.
11347         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
11348         Handle DW_OP_implicit_value.
11349         (extract_int): Move prototype earlier.
11350         (mem_loc_descriptor): For SUBREG punt if inner
11351         mode size is wider than DWARF2_ADDR_SIZE.  Handle SIGN_EXTEND
11352         and ZERO_EXTEND by DW_OP_shl and DW_OP_shr{a,}.  Handle
11353         EQ, NE, GT, GE, LT, LE, GTU, GEU, LTU, LEU, SMIN, SMAX, UMIN,
11354         UMAX, SIGN_EXTRACT, ZERO_EXTRACT.
11355         (loc_descriptor): Compare mode size with DWARF2_ADDR_SIZE
11356         instead of Pmode size.
11357         (loc_descriptor): Add MODE argument.  Handle CONST_INT, CONST_DOUBLE,
11358         CONST_VECTOR, CONST, LABEL_REF and SYMBOL_REF if mode != VOIDmode,
11359         attempt to handle other expressions.  Don't handle TLS SYMBOL_REFs.
11360         (concat_loc_descriptor, concatn_loc_descriptor,
11361         loc_descriptor_from_tree_1): Adjust loc_descriptor callers.
11362         (add_location_or_const_value_attribute): Likewise.  For single
11363         location loc_lists attempt to use add_const_value_attribute
11364         for constant decls.  Add DW_AT_const_value even if
11365         NOTE_VAR_LOCATION is VAR_LOCATION with CONSTANT_P or CONST_STRING
11366         in its expression.
11367         * cfgbuild.c (inside_basic_block_p): Handle debug insns.
11368         (control_flow_insn_p): Likewise.
11369         * tree-parloops.c (eliminate_local_variables_stmt): Handle debug stmt.
11370         (separate_decls_in_region_debug_bind): New.
11371         (separate_decls_in_region): Process debug bind stmts afterwards.
11372         * recog.c (verify_changes): Handle debug insns.
11373         (extract_insn): Likewise.
11374         (peephole2_optimize): Skip debug insns.
11375         * dse.c (scan_insn): Skip debug insns.
11376         * sel-sched-ir.c (return_nop_to_pool): Take full_tidying argument.
11377         Pass it on.
11378         (setup_id_for_insn): Handle debug insns.
11379         (maybe_tidy_empty_bb): Adjust whitespace.
11380         (tidy_control_flow): Skip debug insns.
11381         (sel_remove_insn): Adjust for debug insns.
11382         (sel_estimate_number_of_insns): Skip debug insns.
11383         (create_insn_rtx_from_pattern): Handle debug insns.
11384         (create_copy_of_insn_rtx): Likewise.
11385         * sel-sched-.h (sel_bb_end): Declare.
11386         (sel_bb_empty_or_nop_p): New.
11387         (get_all_loop_exits): Use it.
11388         (_eligible_successor_edge_p): Likewise.
11389         (return_nop_to_pool): Adjust.
11390         * tree-eh.c (tre_empty_eh_handler_p): Skip debug stmts.
11391         * ira-lives.c (process_bb_node_lives): Skip debug insns.
11392         * gimple-pretty-print.c (dump_gimple_debug): New.
11393         (dump_gimple_stmt): Use it.
11394         (dump_bb_header): Skip gimple debug stmts.
11395         * regmove.c (optimize_reg_copy_1): Discount debug insns.
11396         (fixup_match_2): Likewise.
11397         (regmove_backward_pass): Likewise.  Simplify combined
11398         replacement.  Handle debug insns.
11399         * function.c (instantiate_virtual_regs): Handle debug insns.
11400         * function.h (struct emit_status): Add x_cur_debug_insn_uid.
11401         * print-rtl.h: Include cselib.h.
11402         (print_rtx): Print VALUEs.  Split out and recurse for VAR_LOCATIONs.
11403         * df.h (df_inns_rescan_debug_internal): Declare.
11404         * gcse.c (alloc_hash_table): Estimate n_insns.
11405         (cprop_insn): Don't regard debug insns as changes.
11406         (bypass_conditional_jumps): Skip debug insns.
11407         (one_pre_gcse_pass): Adjust.
11408         (one_code_hoisting_pass): Likewise.
11409         (compute_ld_motion_mems): Skip debug insns.
11410         (one_cprop_pass): Adjust.
11411         * tree-if-conv.c (tree_if_convert_stmt): Reset debug stmts.
11412         (if_convertible_stmt_p): Handle debug stmts.
11413         * init-regs.c (initialize_uninitialized_regs): Skip debug insns.
11414         * tree-vect-loop.c (vect_is_simple_reduction): Skip debug stmts.
11415         * ira-build.c (create_bb_allocnos): Skip debug insns.
11416         * tree-flow-inline.h (has_zero_uses): Discount debug stmts.
11417         (has_single_use): Likewise.
11418         (single_imm_use): Likewise.
11419         (num_imm_uses): Likewise.
11420         * tree-ssa-phiopt.c (empty_block_p): Skip debug stmts.
11421         * tree-ssa-coalesce.c (build_ssa_conflict_graph): Skip debug stmts.
11422         (create_outofssa_var_map): Likewise.
11423         * lower-subreg.c (adjust_decomposed_uses): New.
11424         (resolve_debug): New.
11425         (decompose_multiword_subregs): Use it.
11426         * tree-dfa.c (find_referenced_vars): Skip debug stmts.
11427         * emit-rtl.c: Include params.h.
11428         (cur_debug_insn_uid): Define.
11429         (set_new_first_and_last_insn): Set cur_debug_insn_uid too.
11430         (copy_rtx_if_shared_1): Handle debug insns.
11431         (reset_used_flags): Likewise.
11432         (set_used_flags): LIkewise.
11433         (get_max_insn_count): New.
11434         (next_nondebug_insn): New.
11435         (prev_nondebug_insn): New.
11436         (make_debug_insn_raw): New.
11437         (emit_insn_before_noloc): Handle debug insns.
11438         (emit_jump_insn_before_noloc): Likewise.
11439         (emit_call_insn_before_noloc): Likewise.
11440         (emit_debug_insn_before_noloc): New.
11441         (emit_insn_after_noloc): Handle debug insns.
11442         (emit_jump_insn_after_noloc): Likewise.
11443         (emit_call_insn_after_noloc): Likewise.
11444         (emit_debug_insn_after_noloc): Likewise.
11445         (emit_insn_after): Take loc from earlier non-debug insn.
11446         (emit_jump_insn_after): Likewise.
11447         (emit_call_insn_after): Likewise.
11448         (emit_debug_insn_after_setloc): New.
11449         (emit_debug_insn_after): New.
11450         (emit_insn_before): Take loc from later non-debug insn.
11451         (emit_jump_insn_before): Likewise.
11452         (emit_call_insn_before): Likewise.
11453         (emit_debug_insn_before_setloc): New.
11454         (emit_debug_insn_before): New.
11455         (emit_insn): Handle debug insns.
11456         (emit_debug_insn): New.
11457         (emit_jump_insn): Handle debug insns.
11458         (emit_call_insn): Likewise.
11459         (emit): Likewise.
11460         (init_emit): Take min-nondebug-insn-uid into account.
11461         Initialize cur_debug_insn_uid.
11462         (emit_copy_of_insn_after): Handle debug insns.
11463         * cfgexpand.c (gimple_assign_rhs_to_tree): Do not overwrite
11464         location of single rhs in place.
11465         (maybe_dump_rtl_for_gimple_stmt): Dump lineno.
11466         (floor_sdiv_adjust): New.
11467         (cell_sdiv_adjust): New.
11468         (cell_udiv_adjust): New.
11469         (round_sdiv_adjust): New.
11470         (round_udiv_adjust): New.
11471         (wrap_constant): Moved from cselib.
11472         (unwrap_constant): New.
11473         (expand_debug_expr): New.
11474         (expand_debug_locations): New.
11475         (expand_gimple_basic_block): Drop hiding redeclaration.  Expand
11476         debug bind stmts.
11477         (gimple_expand_cfg): Expand debug locations.
11478         * cselib.c: Include tree-pass.h.
11479         (struct expand_value_data): New.
11480         (cselib_record_sets_hook): New.
11481         (PRESERVED_VALUE_P, LONG_TERM_PRESERVED_VALUE_P): New.
11482         (cselib_clear_table): Move, and implemnet in terms of...
11483         (cselib_reset_table_with_next_value): ... this.
11484         (cselib_get_next_unknown_value): New.
11485         (discard_useless_locs): Don't discard preserved values.
11486         (cselib_preserve_value): New.
11487         (cselib_preserved_value_p): New.
11488         (cselib_preserve_definitely): New.
11489         (cselib_clear_preserve): New.
11490         (cselib_preserve_only_values): New.
11491         (new_cselib_val): Take rtx argument.  Dump it in details.
11492         (cselib_lookup_mem): Adjust.
11493         (expand_loc): Take regs_active in struct.  Adjust.  Silence
11494         dumps unless details are requested.
11495         (cselib_expand_value_rtx_cb): New.
11496         (cselib_expand_value_rtx): Rename and reimplment in terms of...
11497         (cselib_expand_value_rtx_1): ... this.  Adjust.  Silence dumps
11498         without details.  Copy more subregs.  Try to resolve values
11499         using a callback.  Wrap constants.
11500         (cselib_subst_to_values): Adjust.
11501         (cselib_log_lookup): New.
11502         (cselib_lookup): Call it.
11503         (cselib_invalidate_regno): Don't count preserved values as useless.
11504         (cselib_invalidate_mem): Likewise.
11505         (cselib_record_set): Likewise.
11506         (struct set): Renamed to cselib_set, moved to cselib.h.
11507         (cselib_record_sets): Adjust.  Call hook.
11508         (cselib_process_insn): Reset table when it would be cleared.
11509         (dump_cselib_val): New.
11510         (dump_cselib_table): New.
11511         * tree-cfgcleanup.c (tree_forwarded_block_p): Skip debug stmts.
11512         (remove_forwarder_block): Support moving debug stmts.
11513         * cselib.h (cselib_record_sets_hook): Declare.
11514         (cselib_expand_callback): New type.
11515         (cselib_expand_value_rtx_cb): Declare.
11516         (cselib_reset_table_with_next_value): Declare.
11517         (cselib_get_next_unknown_value): Declare.
11518         (cselib_preserve_value): Declare.
11519         (cselib_preserved_value_p): Declare.
11520         (cselib_preserve_only_values): Declare.
11521         (dump_cselib_table): Declare.
11522         * cfgcleanup.c (flow_find_cross_jump): Skip debug insns.
11523         (try_crossjump_to_edge): Likewise.
11524         (delete_unreachable_blocks): Remove dominant GIMPLE blocks after
11525         dominated blocks when debug stmts are present.
11526         * simplify-rtx.c (delegitimize_mem_from_attrs): New.
11527         * tree-ssa-live.c (remove_unused_locals): Skip debug stmts.
11528         (set_var_live_on_entry): Likewise.
11529         * loop-invariant.c (find_invariants_bb): Skip debug insns.
11530         * cfglayout.c (curr_location, last_location): Make static.
11531         (set_curr_insn_source_location): Don't avoid bouncing.
11532         (get_curr_insn_source_location): New.
11533         (get_curr_insn_block): New.
11534         (duplicate_insn_chain): Handle debug insns.
11535         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Propagate
11536         into debug stmts.
11537         * common.opt (fcompare-debug): Move to sort order.
11538         (fdump-unnumbered-links): Likewise.
11539         (fvar-tracking-assignments): New.
11540         (fvar-tracking-assignments-toggle): New.
11541         * tree-ssa-dce.c (mark_stmt_necessary): Don't mark blocks
11542         because of debug stmts.
11543         (mark_stmt_if_obviously_necessary): Mark debug stmts.
11544         (eliminate_unnecessary_stmts): Walk dominated blocks before
11545         dominators.
11546         * tree-ssa-ter.c (find_replaceable_in_bb): Skip debug stmts.
11547         * ira.c (memref_used_between_p): Skip debug insns.
11548         (update_equiv_regs): Likewise.
11549         * sched-deps.c (sd_lists_size): Accept empty list.
11550         (sd_init_insn): Mark debug insns.
11551         (sd_finish_insn): Unmark them.
11552         (sd_add_dep): Reject non-debug deps on debug insns.
11553         (fixup_sched_groups): Give debug insns group treatment.
11554         Skip debug insns.
11555         (sched_analyze_reg): Don't mark debug insns for sched before call.
11556         (sched_analyze_2): Handle debug insns.
11557         (sched_analyze_insn): Compute next non-debug insn.  Handle debug
11558         insns.
11559         (deps_analyze_insn): Handle debug insns.
11560         (deps_start_bb): Skip debug insns.
11561         (init_deps): Initialize last_debug_insn.
11562         * tree-ssa.c (target_for_debug_bind): New.
11563         (find_released_ssa_name): New.
11564         (propagate_var_def_into_debug_stmts): New.
11565         (propagate_defs_into_debug_stmts): New.
11566         (verify_ssa): Skip debug bind stmts without values.
11567         (warn_uninialized_vars): Skip debug stmts.
11568         * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Set default.
11569         * rtl.c (rtx_equal_p_cb): Handle VALUEs.
11570         (rtx_equal_p): Likewise.
11571         * ira-costs.c (scan_one_insn): Skip debug insns.
11572         (process_bb_node_for_hard_reg_moves): Likewise.
11573         * rtl.h (DEBUG_INSN_P): New.
11574         (NONDEBUG_INSN_P): New.
11575         (MAY_HAVE_DEBUG_INSNS): New.
11576         (INSN_P): Accept debug insns.
11577         (RTX_FRAME_RELATED_P): Likewise.
11578         (INSN_DELETED_P): Likewise
11579         (PAT_VAR_LOCATION_DECL): New.
11580         (PAT_VAR_LOCATION_LOC): New.
11581         (PAT_VAR_OCATION_STATUS): New.
11582         (NOTE_VAR_LOCATION_DECL): Reimplement.
11583         (NOTE_VAR_LOCATION_LOC): Likewise.
11584         (NOTE_VAR_LOCATION_STATUS): Likewise.
11585         (INSN_VAR_LOCATION): New.
11586         (INSN_VAR_LOCATION_DECL): New.
11587         (INSN_VAR_LOCATION_LOC): New.
11588         (INSN_VAR_LOCATION_STATUS): New.
11589         (gen_rtx_UNKNOWN_VAR_LOC): New.
11590         (VAR_LOC_UNKNOWN_P): New.
11591         (NOTE_DURING_CALL_P): New.
11592         (SCHED_GROUP_P): Accept debug insns.
11593         (emit_debug_insn_before): Declare.
11594         (emit_debug_insn_before_noloc): Declare.
11595         (emit_debug_insn_beore_setloc): Declare.
11596         (emit_debug_insn_after): Declare.
11597         (emit_debug_insn_after_noloc): Declare.
11598         (emit_debug_insn_after_setloc): Declare.
11599         (emit_debug_insn): Declare.
11600         (make_debug_insn_raw): Declare.
11601         (prev_nondebug_insn): Declare.
11602         (next_nondebug_insn): Declare.
11603         (delegitimize_mem_from_attrs): Declare.
11604         (get_max_insn_count): Declare.
11605         (wrap_constant): Declare.
11606         (unwrap_constant): Declare.
11607         (get_curr_insn_source_location): Declare.
11608         (get_curr_insn_block): Declare.
11609         * tree-inline.c (insert_debug_decl_map): New.
11610         (processing_debug_stmt): New.
11611         (remap_decl): Don't create new mappings in debug stmts.
11612         (remap_gimple_op_r): Don't add references in debug stmts.
11613         (copy_tree_body_r): Likewise.
11614         (remap_gimple_stmt): Handle debug bind stmts.
11615         (copy_bb): Skip debug stmts.
11616         (copy_edges_for_bb): Likewise.
11617         (copy_debug_stmt): New.
11618         (copy_debug_stmts): New.
11619         (copy_body): Copy debug stmts at the end.
11620         (insert_init_debug_bind): New.
11621         (insert_init_stmt): Take id.  Skip and emit debug stmts.
11622         (setup_one_parameter): Remap variable earlier, register debug mapping.
11623         (estimate_num_insns): Skip debug stmts.
11624         (expand_call_inline): Preserve debug_map.
11625         (optimize_inline_calls): Check for no debug_stmts left-overs.
11626         (unsave_expr_now): Preserve debug_map.
11627         (copy_gimple_seq_and_replace_locals): Likewise.
11628         (tree_function_versioning): Check for no debug_stmts left-overs.
11629         Init and destroy debug_map as needed.  Split edges unconditionally.
11630         (build_duplicate_type): Init and destroy debug_map as needed.
11631         * tree-inline.h: Include gimple.h instead of pointer-set.h.
11632         (struct copy_body_data): Add debug_stmts and debug_map.
11633         * sched-int.h (struct ready_list): Add n_debug.
11634         (struct deps): Add last_debug_insn.
11635         (DEBUG_INSN_SCHED_P): New.
11636         (BOUNDARY_DEBUG_INSN_P): New.
11637         (SCHEDULE_DEBUG_INSN_P): New.
11638         (sd_iterator_cond): Accept empty list.
11639         * combine.c (create_log_links): Skip debug insns.
11640         (combine_instructions): Likewise.
11641         (cleanup_auto_inc_dec): New.  From Jakub Jelinek: Make sure the
11642         return value is always unshared.
11643         (struct rtx_subst_pair): New.
11644         (auto_adjust_pair): New.
11645         (propagate_for_debug_subst): New.
11646         (propagate_for_debug): New.
11647         (try_combine): Skip debug insns.  Propagate removed defs into
11648         debug insns.
11649         (next_nonnote_nondebug_insn): New.
11650         (distribute_notes): Use it.  Skip debug insns.
11651         (distribute_links): Skip debug insns.
11652         * tree-outof-ssa.c (set_location_for_edge): Likewise.
11653         * resource.c (mark_target_live_regs): Likewise.
11654         * var-tracking.c: Include cselib.h and target.h.
11655         (enum micro_operation_type): Add MO_VAL_USE, MO_VAL_LOC, and
11656         MO_VAL_SET.
11657         (micro_operation_type_name): New.
11658         (enum emit_note_where): Add EMIT_NOTE_AFTER_CALL_INSN.
11659         (struct micro_operation_def): Update comments.
11660         (decl_or_value): New type.  Use instead of decls.
11661         (struct emit_note_data_def): Add vars.
11662         (struct attrs_def): Use decl_or_value.
11663         (struct variable_tracking_info_def): Add permp, flooded.
11664         (struct location_chain_def): Update comment.
11665         (struct variable_part_def): Use decl_or_value.
11666         (struct variable_def): Make var_part a variable length array.
11667         (valvar_pool): New.
11668         (scratch_regs): New.
11669         (cselib_hook_called): New.
11670         (dv_is_decl_p): New.
11671         (dv_is_value_p): New.
11672         (dv_as_decl): New.
11673         (dv_as_value): New.
11674         (dv_as_opaque): New.
11675         (dv_onepart_p): New.
11676         (dv_pool): New.
11677         (IS_DECL_CODE): New.
11678         (check_value_is_not_decl): New.
11679         (dv_from_decl): New.
11680         (dv_from_value): New.
11681         (dv_htab_hash): New.
11682         (variable_htab_hash): Use it.
11683         (variable_htab_eq): Support values.
11684         (variable_htab_free): Free from the right pool.
11685         (attrs_list_member, attrs_list_insert): Use decl_or_value.
11686         (attrs_list_union): Adjust.
11687         (attrs_list_mpdv_union): New.
11688         (tie_break_pointers): New.
11689         (canon_value_cmp): New.
11690         (unshare_variable): Return possibly-modified slot.
11691         (vars_copy_1): Adjust.
11692         (var_reg_decl_set): Adjust.  Split out of...
11693         (var_reg_set): ... this.
11694         (get_init_value): Adjust.
11695         (var_reg_delete_and_set): Adjust.
11696         (var_reg_delete): Adjust.
11697         (var_regno_delete): Adjust.
11698         (var_mem_decl_set): Split out of...
11699         (var_mem_set): ... this.
11700         (var_mem_delete_and_set): Adjust.
11701         (var_mem_delete): Adjust.
11702         (val_store): New.
11703         (val_reset): New.
11704         (val_resolve): New.
11705         (variable_union): Adjust.  Speed up merge of 1-part vars.
11706         (variable_canonicalize): Use unshared slot.
11707         (VALUED_RECURSED_INTO): New.
11708         (find_loc_in_1pdv): New.
11709         (struct dfset_merge): New.
11710         (insert_into_intersection): New.
11711         (intersect_loc_chains): New.
11712         (loc_cmp): New.
11713         (canonicalize_loc_order_check): New.
11714         (canonicalize_values_mark): New.
11715         (canonicalize_values_star): New.
11716         (variable_merge_over_cur): New.
11717         (variable_merge_over_src): New.
11718         (dataflow_set_merge): New.
11719         (dataflow_set_equiv_regs): New.
11720         (remove_duplicate_values): New.
11721         (struct dfset_post_merge): New.
11722         (variable_post_merge_new_vals): New.
11723         (variable_post_merge_perm_vals): New.
11724         (dataflow_post_merge_adjust): New.
11725         (find_mem_expr_in_1pdv): New.
11726         (dataflow_set_preserve_mem_locs): New.
11727         (dataflow_set_remove_mem_locs): New.
11728         (dataflow_set_clear_at_call): New.
11729         (onepart_variable_different_p): New.
11730         (variable_different_p): Use it.
11731         (dataflow_set_different_1): Adjust.  Make detailed dump more verbose.
11732         (track_expr_p): Add need_rtl parameter.  Don't generate rtl
11733         if not needed.
11734         (track_loc_p): Pass it true.
11735         (struct count_use_info): New.
11736         (find_use_val): New.
11737         (replace_expr_with_values): New.
11738         (log_op_type): New.
11739         (use_type): New, partially split out of...
11740         (count_uses): ... this.  Count new micro-ops.
11741         (count_uses_1): Adjust.
11742         (count_stores): Adjust.
11743         (count_with_sets): New.
11744         (VAL_NEEDS_RESOLUTION): New.
11745         (VAL_HOLDS_TRACK_EXPR): New.
11746         (VAL_EXPR_IS_COPIED): New.
11747         (VAL_EXPR_IS_CLOBBERED): New.
11748         (add_uses): Adjust.  Generate new micro-ops.
11749         (add_uses_1): Adjust.
11750         (add_stores): Generate new micro-ops.
11751         (add_with_sets): New.
11752         (find_src_status): Adjust.
11753         (find_src_set_src): Adjust.
11754         (compute_bb_dataflow): Use dataflow_set_clear_at_call.
11755         Handle new micro-ops.  Canonicalize value equivalances.
11756         (vt_find_locations): Compute total size of hash tables for
11757         dumping.  Perform merge for var-tracking-assignments.  Don't
11758         disregard single-block loops.
11759         (dump_attrs_list): Handle decl_or_value.
11760         (dump_variable): Take variable.  Deal with decl_or_value.
11761         (dump_variable_slot): New.
11762         (dump_vars): Use it.
11763         (dump_dataflow_sets): Adjust.
11764         (set_slot_part): New, extended to support one-part variables
11765         after splitting out of...
11766         (set_variable_part): ... this.
11767         (clobber_slot_part): New, split out of...
11768         (clobber_variable_part): ... this.
11769         (delete_slot_part): New, split out of...
11770         (delete_variable_part): .... this.
11771         (check_wrap_constant): New.
11772         (vt_expand_loc_callback): New.
11773         (vt_expand_loc): New.
11774         (emit_note_insn_var_location): Adjust.  Handle values.  Handle
11775         EMIT_NOTE_AFTER_CALL_INSN.
11776         (emit_notes_for_differences_1): Adjust.  Handle values.
11777         (emit_notes_for_differences_2): Likewise.
11778         (emit_notes_for_differences): Adjust.
11779         (emit_notes_in_bb): Take pointer to set.  Emit AFTER_CALL_INSN notes.
11780         Adjust.  Handle new micro-ops.
11781         (vt_add_function_parameters): Adjust.  Create and bind values.
11782         (vt_initialize): Adjust.  Initialize scratch_regs and
11783         valvar_pool, flooded and perm..  Initialize and use cselib.  Log
11784         operations.  Move some code to count_with_sets and add_with_sets.
11785         (delete_debug_insns): New.
11786         (vt_debug_insns_local): New.
11787         (vt_finalize): Release permp, valvar_pool, scratch_regs.  Finish
11788         cselib.
11789         (var_tracking_main): If var-tracking-assignments is enabled
11790         but var-tracking isn't, delete debug insns and leave.  Likewise
11791         if we exceed limits or fail the stack adjustments tests, and
11792         after all var-tracking processing.
11793         More in var-tracking, from Jakub Jelinek <jakub@redhat.com>:
11794         (dataflow_set): Add traversed_vars.
11795         (value_chain, const_value_chain): New typedefs.
11796         (value_chain_pool, value_chains): New variables.
11797         (value_chain_htab_hash, value_chain_htab_eq, add_value_chain,
11798         add_value_chains, add_cselib_value_chains, remove_value_chain,
11799         remove_value_chains, remove_cselib_value_chains): New functions.
11800         (shared_hash_find_slot_unshare_1, shared_hash_find_slot_1,
11801         shared_hash_find_slot_noinsert_1, shared_hash_find_1): New
11802         static inlines.
11803         (shared_hash_find_slot_unshare, shared_hash_find_slot,
11804         shared_hash_find_slot_noinsert, shared_hash_find): Update.
11805         (dst_can_be_shared): New variable.
11806         (unshare_variable): Unshare set->vars if shared, use shared_hash_*.
11807         Clear dst_can_be_shared.  If set->traversed_vars is non-NULL and
11808         different from set->vars, look up slot again instead of using the
11809         passed in slot.
11810         (dataflow_set_init): Initialize traversed_vars.
11811         (variable_union): Use shared_hash_*.  Use initially NO_INSERT
11812         lookup if set->vars is shared.  Don't keep slot cleared before
11813         calling unshare_variable.  Unshare set->vars if needed.  Adjust
11814         unshare_variable callers.  Clear dst_can_be_shared if needed.
11815         Even ->refcount == 1 vars must be unshared if set->vars is shared
11816         and var needs to be modified.
11817         (dataflow_set_union): Set traversed_vars during canonicalization.
11818         (VALUE_CHANGED, DECL_CHANGED): Define.
11819         (set_dv_changed, dv_changed_p): New static inlines.
11820         (track_expr_p): Clear DECL_CHANGED.
11821         (dump_dataflow_sets): Set it.
11822         (variable_was_changed): Call set_dv_changed.
11823         (emit_note_insn_var_location): Likewise.
11824         (changed_variables_stack): New variable.
11825         (check_changed_vars_1, check_changed_vars_2): New functions.
11826         (emit_notes_for_changes): Do nothing if changed_variables is
11827         empty.  Traverse changed_variables with check_changed_vars_1,
11828         call check_changed_vars_2 on each changed_variables_stack entry.
11829         (emit_notes_in_bb): Add SET argument.  Just clear it at the
11830         beginning, use it instead of local &set, don't destroy it at the end.
11831         (vt_emit_notes): Call dataflow_set_clear early on all
11832         VTI(bb)->out sets, never use them, instead use emit_notes_in_bb
11833         computed set, dataflow_set_clear also VTI(bb)->in when we are
11834         done with the basic block.  Initialize changed_variables_stack,
11835         free it afterwards.  If ENABLE_CHECKING verify that after noting
11836         differences to an empty set value_chains hash table is empty.
11837         (vt_initialize): Initialize value_chains and value_chain_pool.
11838         (vt_finalize): Delete value_chains htab, free value_chain_pool.
11839         (variable_tracking_main): Call dump_dataflow_sets before calling
11840         vt_emit_notes, not after it.
11841         * tree-flow.h (propagate_defs_into_debug_stmts): Declare.
11842         (propagate_var_def_into_debug_stmts): Declare.
11843         * df-problems.c (df_lr_bb_local_compute): Skip debug insns.
11844         (df_set_note): Reject debug insns.
11845         (df_whole_mw_reg_dead_p): Take added_notes_p argument.  Don't
11846         add notes to debug insns.
11847         (df_note_bb_compute): Adjust.  Likewise.
11848         (df_simulate_uses): Skip debug insns.
11849         (df_simulate_initialize_backwards): Likewise.
11850         * reg-stack.c (subst_stack_regs_in_debug_insn): New.
11851         (subst_stack_regs_pat): Reject debug insns.
11852         (convert_regs_1): Handle debug insns.
11853         * Makefile.in (TREE_INLINE_H): Take pointer-set.h from GIMPLE_H.
11854         (print-rtl.o): Depend on cselib.h.
11855         (cselib.o): Depend on TREE_PASS_H.
11856         (var-tracking.o): Depend on cselib.h and TARGET_H.
11857         * sched-rgn.c (rgn_estimate_number_of_insns): Discount debug insns.
11858         (init_ready_list): Skip boundary debug insns.
11859         (add_branch_dependences): Skip debug insns.
11860         (free_block_dependencies): Check for blocks with only debug insns.
11861         (compute_priorities): Likewise.
11862         * gimple.c (gss_for_code): Handle GIMPLE_DEBUG.
11863         (gimple_build_with_ops_stat): Take subcode as unsigned.  Adjust
11864         all callers.
11865         (gimple_build_debug_bind_stat): New.
11866         (empty_body_p): Skip debug stmts.
11867         (gimple_has_side_effects): Likewise.
11868         (gimple_rhs_has_side_effects): Likewise.
11869         * gimple.h (enum gimple_debug_subcode, GIMPLE_DEBUG_BIND): New.
11870         (gimple_build_debug_bind_stat): Declare.
11871         (gimple_build_debug_bind): Define.
11872         (is_gimple_debug): New.
11873         (gimple_debug_bind_p): New.
11874         (gimple_debug_bind_get_var): New.
11875         (gimple_debug_bind_get_value): New.
11876         (gimple_debug_bind_get_value_ptr): New.
11877         (gimple_debug_bind_set_var): New.
11878         (gimple_debug_bind_set_value): New.
11879         (GIMPLE_DEBUG_BIND_NOVALUE): New internal temporary macro.
11880         (gimple_debug_bind_reset_value): New.
11881         (gimple_debug_bind_has_value_p): New.
11882         (gsi_next_nondebug): New.
11883         (gsi_prev_nondebug): New.
11884         (gsi_start_nondebug_bb): New.
11885         (gsi_last_nondebug_bb): New.
11886         * sched-vis.c (print_pattern): Handle VAR_LOCATION.
11887         (print_insn): Handle DEBUG_INSN.
11888         * tree-cfg.c (remove_bb): Walk stmts backwards.  Let loc
11889         of first insn prevail.
11890         (first_stmt): Skip debug stmts.
11891         (first_non_label_stmt): Likewise.
11892         (last_stmt): Likewise.
11893         (has_zero_uses_1): New.
11894         (single_imm_use_1): New.
11895         (verify_gimple_debug): New.
11896         (verify_types_in_gimple_stmt): Handle debug stmts.
11897         (verify_stmt): Likewise.
11898         (debug_loop_num): Skip debug stmts.
11899         (remove_edge_and_dominated_blocks): Remove dominators last.
11900         * tree-ssa-reasssoc.c (rewrite_expr_tree): Propagate into debug stmts.
11901         (linearize_expr): Likewise.
11902         * config/i386/i386.c (ix86_delegitimize_address): Call
11903         default implementation.
11904         * config/ia64/ia64.c (ia64_safe_itanium_class): Handle debug insns.
11905         (group_barrier_needed): Skip debug insns.
11906         (emit_insn_group_barriers): Likewise.
11907         (emit_all_insn_group_barriers): Likewise.
11908         (ia64_variable_issue): Handle debug insns.
11909         (ia64_dfa_new_cycle): Likewise.
11910         (final_emit_insn_group_barriers): Skip debug insns.
11911         (ia64_dwarf2out_def_steady_cfa): Take frame argument.  Don't
11912         def cfa without frame.
11913         (process_set): Likewise.
11914         (process_for_unwind_directive): Pass frame on.
11915         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
11916         (rs6000_delegitimize_address): New.
11917         (rs6000_debug_adjust_cost): Handle debug insns.
11918         (is_microcoded_insn): Likewise.
11919         (is_cracked_insn): Likewise.
11920         (is_nonpipeline_insn): Likewise.
11921         (insn_must_be_first_in_group): Likewise.
11922         (insn_must_be_last_in_group): Likewise.
11923         (force_new_group): Likewise.
11924         * cfgrtl.c (rtl_split_block): Emit INSN_DELETED note if block
11925         contains only debug insns.
11926         (rtl_merge_blocks): Skip debug insns.
11927         (purge_dead_edges): Likewise.
11928         (rtl_block_ends_with_call_p): Skip debug insns.
11929         * dce.c (deletable_insn_p): Handle VAR_LOCATION.
11930         (mark_reg_dependencies): Skip debug insns.
11931         * params.def (PARAM_MIN_NONDEBUG_INSN_UID): New.
11932         * tree-ssanames.c (release_ssa_name): Propagate def into debug stmts.
11933         * tree-ssa-threadedge.c
11934         (record_temporary_equivalences_from_stmts): Skip debug stmts.
11935         * regcprop.c (replace_oldest_value_addr): Skip debug insns.
11936         (replace_oldest_value_mem): Use ALL_REGS for debug insns.
11937         (copyprop_hardreg_forward_1): Handle debug insns.
11938         * reload1.c (reload): Skip debug insns.  Replace unassigned
11939         pseudos in debug insns with their equivalences.
11940         (eliminate_regs_in_insn): Skip debug insns.
11941         (emit_input_reload_insns): Skip debug insns at first, adjust
11942         them later.
11943         * tree-ssa-operands.c (add_virtual_operand): Reject debug stmts.
11944         (get_indirect_ref_operands): Pass opf_no_vops on.
11945         (get_expr_operands): Likewise.  Skip debug stmts.
11946         (parse_ssa_operands): Scan debug insns with opf_no_vops.
11947
11948 2009-09-01  Richard Henderson  <rth@redhat.com>
11949
11950         * tree-ssa-ccp.c (ccp_initialize): Make sure to simulate
11951         stmt_ends_pp_p statements at least once.
11952         * tree-vrp.c (vrp_initialize): Likewise.
11953         (vrp_visit_stmt): Be prepared for non-interesting stmts.
11954
11955 2009-09-01  Dodji Seketeli  <dodji@redhat.com>
11956
11957         PR bootstrap/41205
11958         Fix AIX bootstrap after PR debug/30161
11959         * dwarf2out.c (make_ith_pack_parameter_name): Don't used strnlen
11960         that is a GNU extension.
11961         (tmpl_value_parm_die_table): Move the definition of this global
11962         outside #ifdef DWARF2_DEBUGGING_INFO region.
11963
11964 2009-09-01  Richard Guenther  <rguenther@suse.de>
11965
11966         * tree.c (tree_expr_size): New function.
11967         * tree.h (tree_expr_size): Declare.
11968         * rtlanal.c (rtx_addr_can_trap_p_1): Adjust comment.
11969         * builtins.c (fold_builtin_memory_op): Use tree_expr_size.
11970         * langhooks.c (lhd_expr_size): Remove.
11971         * langhooks.h (struct lang_hooks): Remove expr_size.
11972         * explow.c (expr_size): Use tree_expr_size.
11973         (int_expr_size): Likewise.
11974         * langhooks-def.h (lhd_expr_size): Remove.
11975         (LANG_HOOKS_EXPR_SIZE): Likewise.
11976         (LANG_HOOKS_INITIALIZER): Adjust.
11977
11978 2009-09-01  Richard Guenther  <rguenther@suse.de>
11979
11980         * tree-flow.h (mark_addressable): Move declaration ...
11981         * tree.h (mark_addressable): ... here.
11982         * stmt.c (expand_asm_operands): Use mark_addressable, not
11983         lang_hooks.mark_addressable.
11984         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
11985         LANG_HOOKS_MARK_ADDRESSABLE.
11986         * langhooks.h (struct lang_hooks): Remove mark_addressable langhook.
11987         * c-objc-common.h (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
11988
11989 2009-08-31  Chris Demetriou  <cgd@google.com>
11990
11991         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never
11992         vectorize if not TARGET_SSE2.
11993
11994 2009-08-31  DJ Delorie  <dj@redhat.com>
11995
11996         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor
11997         registers if no coprocessor is enabled.
11998
11999 2009-08-31  Dodji Seketeli  <dodji@redhat.com>
12000
12001         PR debug/30161
12002         * cgraph.h (cgraph_get_node): Declare ...
12003         * cgraph.c (cgraph_get_node): ... new function.
12004         * dwarf2out.c (gen_generic_params_dies,
12005         generic_parameter_die, tree_add_const_value_attribute_for_decl,
12006         make_ith_pack_parameter_name,
12007         append_entry_to_tmpl_value_parm_die_table,
12008         gen_remaining_tmpl_value_param_die_attribute): New functions.
12009         (gen_subprogram_die): Generate debug info for template parameters
12010         if debug info level is higher than DINFO_LEVEL_TERSE.
12011         Use tree_add_const_value_attribute_for_decl instead of
12012         tree_add_const_value_attribute.
12013         (gen_const_die): Use tree_add_const_value_attribute_for_decl
12014         instead of tree_add_const_value_attribute.
12015         (gen_struct_or_union_type_die): Generate debug
12016         info for template parameters if debug info level is higher than
12017         DINFO_LEVEL_TERSE.
12018         (tree_add_const_value_attribute): Handle integral and pointer
12019         constants. Update comment.
12020         (dwarf_tag_name): Support DW_TAG_GNU_template_template_param.
12021         (dwarf_attr_name): Support DW_AT_GNU_template_name.
12022         (reference_to_unused): Fix thinko. Remove redundant predicates from
12023         tests.
12024         (tree_add_const_value_attribute): Make this work for constant
12025         expressions only.
12026         tree_add_const_value_attribute_for_decl is to be used for variable
12027         DECLs now.
12028         (add_location_or_const_value_attribute): Use
12029         tree_add_const_value_attribute_for_decl now.
12030         (dwarf2out_finish): Emit the DW_AT_const_value attribute of
12031         DW_TAG_template_value_param DIEs after function DIEs have been
12032         emitted.
12033         * langhooks.h (lang_hooks_for_types): Add
12034         get_argument_pack_elems.
12035         (lang_hooks_for_decls): Add generic_generic_parameter_decl_p.
12036         (lang_hooks): Added get_innermost_generic_parms,
12037         get_innermost_generic_args.
12038         * langhooks-def.h (LANG_HOOKS_GET_INNERMOST_GENERIC_PARMS,
12039         LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS,
12040         LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS,
12041         LANG_HOOKS_GENERIC_GENERIC_PARAMETER_DECL_P): New language hooks.
12042
12043 2009-08-31  DJ Delorie  <dj@redhat.com>
12044
12045         * config/mep/mep.c (machine_function): Add frame_locked flag.  Set
12046         it once we start generating the prologue or epilogue.
12047         (mep_call_saves_register): If the frame is locked, re-use
12048         cached values.
12049         (mep_assign_save_slots): New, broken out from mep_expand_prologue.
12050         (mep_expand_prologue): Call it.
12051         (mep_expand_epilogue): Likewise.
12052         (mep_start_function): Use the same logic as mep_expand_prologue.
12053         (mep_pass_by_reference): Make logic more readable.
12054         (mep_return_in_memory): Zero-sized objects are passed in memory.
12055         (mep_reorg_noframe): Make sure we have accurate REG_DEAD notes.
12056
12057 2009-08-31  Richard Guenther  <rguenther@suse.de>
12058
12059         * builtins.c (fold_builtin_memory_op): Use the alias oracle
12060         to query if the memory regions for memmove overlap.
12061         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
12062         asserts on pointers, instead deal with odd trees.
12063         (ptr_derefs_may_alias_p): Likewise.
12064         (refs_may_alias_p_1): Constructor bases also never alias.
12065
12066 2009-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
12067
12068         * doc/install.texi (Final install): Adjust reference on where to
12069         order printed manuals.
12070
12071 2009-08-30  Olivier Hainque  <hainque@adacore.com>
12072
12073         * dwarf2out.c (switch_to_frame_table_section): Move
12074         definition prior to first use.
12075
12076 2009-08-30  Richard Guenther  <rguenther@suse.de>
12077
12078         PR tree-optimization/41186
12079         * tree-ssa-alias.c (ptr_deref_may_alias_ref_p): Remove.
12080         (ao_ref_init_from_ptr_and_size): New function.
12081         (ref_maybe_used_by_call_p_1): Be more precise tracking
12082         used ranges for builtin functions.
12083         (ref_maybe_used_by_call_p): Adjust.
12084         (call_may_clobber_ref_p_1): Be more precise tracking clobbered
12085         ranges for builtin functions.
12086         * tree-ssa-alias.h (ao_ref_init_from_ptr_and_size): Declare.
12087
12088 2009-08-30  Alan Modra  <amodra@bigpond.net.au>
12089
12090         PR target/41081
12091         * fwprop.c (get_reg_use_in): Delete.
12092         (free_load_extend): New function.
12093         (forward_propagate_subreg): Use it.
12094
12095 2009-08-29  Kaz Kojima  <kkojima@gcc.gnu.org>
12096
12097         * config.gcc (sh*-*-elf): Add superh stuff only for sh*-superh-elf.
12098
12099 2009-08-29  Kai Tietz<kai.tietz@onevision.com>
12100
12101         PR/41184
12102         * config/i386.c (ix86_expand_epilogue): Correct stack adjustment for
12103         padding.
12104
12105 2009-08-29  Douglas B Rupp  <rupp@gnat.com>
12106
12107         * crtstuff.c (__do_global_dtors_aux): Use atexit if no
12108         fini or fini_array section.
12109
12110 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
12111
12112         * graphite-dependences.c (graphite_legal_transform_bb): Call
12113         pbb_remove_duplicate_pdrs.
12114         * graphite-poly.c (can_collapse_pdr): Removed.
12115         (pdr_find_duplicate): Removed.
12116         (can_collapse_pdrs): New.
12117         (pbb_remove_duplicate_pdrs): New.
12118         (new_poly_dr): Do not look for duplicates.
12119         * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
12120         (PBB_PDR_DUPLICATES_REMOVED): New.
12121         (pbb_remove_duplicate_pdrs): Declared.
12122
12123 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
12124
12125         * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
12126         the strides by multiplying by PDR_NB_REFS.
12127         * graphite-poly.c (can_collapse_pdr): New.
12128         (pdr_find_duplicate): New.
12129         (new_poly_dr): Call pdr_find_duplicate.  Collapse duplicate PDRs.
12130         Initialize PDR_NB_REFS.
12131         * graphite-poly.h (struct poly_dr): Add field nb_refs.
12132         (PDR_NB_REFS): New.
12133         (new_poly_dr): Number of subscripts is a graphite_dim_t.
12134
12135 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
12136
12137         PR middle-end/40965
12138         * graphite-poly.c (apply_poly_transforms): Remove legality test before
12139         any transform.
12140
12141 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
12142
12143         * graphite-dependences.c (pddr_original_scattering): Return NULL
12144         for read-read dependence relations.
12145         * graphite-poly.h (enum poly_dr_type): Fix comment.
12146         (pdr_read_p): New.
12147         (pdr_write_p): New.
12148         (pdr_may_write_p): New.
12149
12150 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
12151
12152         * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
12153         (struct poly_dr): Same.
12154         (new_poly_dr): Same.
12155         * graphite-poly.c (new_poly_dr): Same.
12156         * graphite-dependences.c (dot_deps): Disable call to system.
12157
12158 2009-08-28  Cary Coutant  <ccoutant@google.com>
12159
12160         PR debug/41063
12161         * dwarf2out.c (gen_type_die_with_usage): Use proper context for
12162         struct/union/enum types local to a function.
12163
12164 2009-08-28  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
12165             Sebastian Pop  <sebastian.pop@amd.com>
12166
12167         * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
12168         pbb_strip_mine_time_depth.  Changed the implementation so that
12169         transformation is expressed as a transformation on
12170         time (scatttering) dimensions.  Also, ensures that the 2d+1
12171         scheduling format is preserved.
12172         (pbb_strip_mine_profitable_p): Profitability is based on the
12173         iteration number of a given time (scattering) dimension,
12174         and not on a original loop depth dimension.
12175         (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
12176         (pbb_do_strip_mine): Call psct_dynamic_dim.
12177         * graphite-poly.c (pbb_number_of_iterations_at_time): New.
12178         * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
12179         (pbb_nb_dynamic_scattering_transform): New.
12180         (psct_dynamic_dim): New.
12181
12182 2009-08-28  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
12183
12184         * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
12185         * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
12186         * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
12187         * graphite-interchange.c (build_linearized_memory_access): Same.
12188         (memory_stride_in_loop): Same.
12189
12190 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
12191
12192         * graphite-dependences.c (pddr_original_scattering): New.
12193         (graphite_legal_transform_dr): Call pddr_original_scattering.
12194         (dot_deps_1): New.
12195         (dot_deps): New.
12196         * graphite-dependences.h (dot_deps): Declared.
12197         * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
12198         (print_pdr): Print PDR_ID.
12199         * graphite-poly.h (struct poly_dr): Add field id.
12200         (PDR_ID): New.
12201         (pbb_index): New.
12202         * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
12203
12204 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
12205
12206         * graphite-dependences.c (graphite_carried_dependence_level_k): Do
12207         not delete the original dependence relation.
12208
12209 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
12210
12211         * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
12212         (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
12213         (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
12214         (free_poly_ddr): New.
12215         (pddr_is_empty): New.
12216         (dependence_polyhedron_1): Now returns a poly_ddr_p.
12217         (dependence_polyhedron): Same.  Remove useless gcc_assert.
12218         Remove fprintfs.
12219         (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
12220         (graphite_carried_dependence_level_k): Call pddr_is_empty.
12221         * graphite-dependences.h (enum poly_dependence_kind): New.
12222         (poly_dr_pair): Renamed poly_ddr.  Added a field kind.
12223         (PDRP_SOURCE): Renamed PDDR_SOURCE.
12224         (PDRP_SINK): Renamed PDDR_SINK.
12225         (PDRP_DDP): Renamed PDDR_DDP.
12226         (PDDR_KIND): New.
12227         (free_poly_ddr): Declared.
12228         * graphite-poly.c (new_scop): Use the new hash function names.
12229         * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
12230         into original_pddrs.
12231         (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
12232
12233 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
12234
12235         * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
12236         bounds with LT_EXPR to make niter analysis more precise on code
12237         generated by Graphite.
12238
12239 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
12240
12241         * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
12242         (graphite_legal_transform_bb): Same.
12243         (poly_drs_may_alias_p): Same.
12244
12245 2009-08-28  Richard Guenther  <rguenther@suse.de>
12246
12247         * tree.def: Remove note about obsolete TYPE_NONCOPIED_PARTS.
12248
12249 2009-08-28  Jan Beulich  <jbeulich@novell.com>
12250
12251         * config/i386/netware.c: Include langhooks.h.
12252         (i386_nlm_encode_section_info): Simplify.
12253         (netware_override_options): Delete.
12254         * config/i386/netware.h (netware_override_options): Delete
12255         declaration.
12256         (OVERRIDE_OPTIONS): Delete definition.
12257         (SUBTARGET_OVERRIDE_OPTIONS): Define.
12258         (ASM_COMMENT_START): Define.
12259         * config/i386/nwld.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
12260
12261 2009-08-28  Jan Beulich  <jbeulich@novell.com>
12262
12263         * configure.ac: For in-tree ld, do a plain version check to
12264         determine whether comdat groups are supported.
12265         * configure: Regenerate.
12266
12267 2009-08-28  Olivier Hainque  <hainque@adacore.com>
12268
12269         * collect2.c (DO_COLLECT_EXPORT_LIST): New internal macro,
12270         always defined.  Reflect definition or absence of such for
12271         COLLECT_EXPORT_LIST.  Readability helper.
12272         (scanfilter): New enum, to help control what symbols
12273         are to be considered or ignored by scan_prog_file.
12274         (enum pass): Rename as "scanpass", moved together with scanfilter
12275         prior to scan_prog_file's prototype.
12276         (scan_prog_file): Accept and honor scanpass and scanfilter arguments.
12277         Group prototype with the scanpass/scanfilter definitions, factorize
12278         head comments for the several implementations at the prototype.
12279         (main): Reorganize the first pass link control to let AIX
12280         drag only the needed frame tables in executables.  Prevent
12281         frame tables collection during the scan aimed at static ctors.
12282         Pre-link and scan for frame tables later to compensate.
12283         * doc/tm.texi (ASM_OUTPUT_DWARF_TABLE_REF): New macro.
12284         A C statement to issue assembly directives that create a reference
12285         to the given DWARF table identifier label from the current function
12286         section.
12287         * dwarf2out.c (switch_to_eh_frame_section): Add a BACK argument
12288         to differentiate first time section entry.  Only emit a .data
12289         tables start identifier label the first time around.
12290         (switch_to_frame_table_section): New function.  Helper for
12291         output_call_frame_info to switch possibly BACK into the eh_frame
12292         or the debug_frame section depending on FOR_EH.
12293         (output_call_frame_info): Use helper to first enter the proper
12294         frame section.
12295         (output_fde): Use ASM_OUTPUT_DWARF_TABLE_REF when defined to
12296         emit a link to the frame table start label from each function
12297         section.
12298         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
12299         New function.  Implementation of ASM_OUTPUT_DWARF_TABLE_REF.
12300         * config/rs6000/rs6000-protos.h: Declare it.
12301         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Define.
12302
12303 2009-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
12304
12305         * config/sh/sh.c (split_branches): Check the result of
12306         next_active_insn.
12307
12308 2009-08-27  Steve Ellcey  <sje@cup.hp.com>
12309
12310         * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when
12311         using -pthread -fopenmp
12312
12313 2009-08-27  Gerald Pfeifer  <gerald@pfeifer.com>
12314
12315         * doc/service.texi (service directory): Update URL.
12316
12317 2009-08-27  Uros Bizjak  <ubizjak@gmail.com>
12318
12319         PR rtl-optimization/40861
12320         * simplify-rtx.c (simplify_subreg): Do not call simplify_gen_subreg to
12321         extract word from a multi-word subreg for negative byte positions.
12322
12323 2009-08-27  Tristan Gingold  <gingold@adacore.com>
12324             Douglas B Rupp  <rupp@gnat.com>
12325
12326         * config/ia64/ia64.c (ia64_attribute_table): Add "common_object" entry.
12327         (SECTION_VMS_OVERLAY): Define.
12328         (ia64_vms_common_object_attribute): Added.  Handle the "common_object"
12329         attribute.
12330         (ia64_vms_elf_asm_named_section): Added.  Generate .section pseudo-op
12331         for common_object.
12332         (ia64_vms_output_aligned_decl_common): Added.  Generate pseudo-op for
12333         common_object declarations.
12334         (ia64_section_type_flags): Set section flag for common_object.
12335         * config/ia64/ia64-protos.h
12336         (ia64_vms_output_aligned_decl_common): Declare.
12337         (ia64_vms_elf_asm_named_section): Declare.
12338
12339 2009-08-27  Michael Matz  <matz@suse.de>
12340
12341         * expr.c (expand_expr_real_2): New function taking exploded
12342         unary or binary expression, split out from ...
12343         (expand_expr_real_1): ... here.  Move over all unary/binary
12344         switch parts to above function, in particular these codes:
12345         PAREN_EXPR, NOP_EXPR, CONVERT_EXPR, POINTER_PLUS_EXPR, PLUS_EXPR,
12346         MINUS_EXPR, MULT_EXPR, TRUNC_DIV_EXPR, FLOOR_DIV_EXPR, CEIL_DIV_EXPR,
12347         ROUND_DIV_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, TRUNC_MOD_EXPR,
12348         FLOOR_MOD_EXPR, CEIL_MOD_EXPR, ROUND_MOD_EXPR, FIXED_CONVERT_EXPR,
12349         FIX_TRUNC_EXPR, FLOAT_EXPR, NEGATE_EXPR, ABS_EXPR, MAX_EXPR, MIN_EXPR,
12350         BIT_NOT_EXPR, TRUTH_AND_EXPR, BIT_AND_EXPR, TRUTH_OR_EXPR,
12351         BIT_IOR_EXPR, TRUTH_XOR_EXPR, BIT_XOR_EXPR, LROTATE_EXPR, RROTATE_EXPR,
12352         LSHIFT_EXPR, RSHIFT_EXPR, LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR,
12353         NE_EXPR, UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR,
12354         UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_NOT_EXPR, COMPLEX_EXPR,
12355         WIDEN_SUM_EXPR, REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR,
12356         VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
12357         VEC_INTERLEAVE_LOW_EXPR, VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR,
12358         VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR, VEC_UNPACK_FLOAT_HI_EXPR,
12359         VEC_UNPACK_FLOAT_LO_EXPR, VEC_WIDEN_MULT_HI_EXPR,
12360         VEC_WIDEN_MULT_LO_EXPR, VEC_PACK_TRUNC_EXPR, VEC_PACK_SAT_EXPR,
12361         VEC_PACK_FIX_TRUNC_EXPR.
12362         (<case PAREN_EXPR>): Call set_mem_attributes() with type, not the
12363         full expression.
12364
12365 2009-08-27  Richard Guenther  <rguenther@suse.de>
12366
12367         * gengtype.c (main): Handle uint64_t.
12368         * ipa-utils.c (get_base_var): Indent properly.
12369         * tree-ssa-live.c (debug_scope_block): New function.
12370         * tree-flow.h (debug_scope_block): Declare.
12371         * tree-ssa-copy.c (replace_exp_1): Add vertical space.
12372         * basic-block.h (enum profile_status): Rename to
12373         enum profile_status_d.
12374         (x_profile_status): Adjust type.
12375
12376 2009-08-27  Dodji Seketeli  <dodji@redhat.com>
12377
12378         PR debug/41170
12379         * dwarf2out.c (get_context_die): Declare this static function.
12380         (gen_type_die_with_usage): Make sure a DIE is a generated for
12381         the context of a typedef.
12382
12383 2009-08-26  Anatoly Sokolov  <aesok@post.ru>
12384
12385         * doc/invoke.texi (AVR Options): Remove documentation of -minit-stack
12386         switch.
12387
12388 2009-08-26  Richard Sandiford  <rdsandiford@googlemail.com>
12389
12390         * config/mips/mips-protos.h (mips_output_sync): Declare.
12391         (mips_sync_loop_insns): Likewise.
12392         (mips_output_sync_loop): Replace first two parameters with an rtx.
12393         * config/mips/mips.c (mips_multi_member): New structure.
12394         (mips_multi_members): New variable.
12395         (mips_multi_start): New function.
12396         (mips_multi_add): Likewise.
12397         (mips_multi_add_insn): Likewise.
12398         (mips_multi_add_label): Likewise.
12399         (mips_multi_last_index): Likewise.
12400         (mips_multi_copy_insn): Likewise.
12401         (mips_multi_set_operand): Likewise.
12402         (mips_multi_write): Likewise.
12403         (mips_print_operand_punctuation): Remove '%|' and '%-'.
12404         (mips_init_print_operand_punct): Update accordingly.
12405         (mips_start_ll_sc_sync_block): New function.
12406         (mips_end_ll_sc_sync_block): Likewise.
12407         (mips_output_sync): Likewise.
12408         (mips_sync_insn1_template): Likewise.
12409         (mips_sync_insn2_template): Likewise.
12410         (mips_get_sync_operand): Likewise.
12411         (mips_process_sync_loop): Likewise.
12412         (mips_output_sync_loop): Use mips_process_sync_loop.
12413         (mips_sync_loop_insns): New function.
12414         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Delete.
12415         (MIPS_COMPARE_AND_SWAP_12): Likewise.
12416         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP): Likewise.
12417         (MIPS_COMPARE_AND_SWAP_12_NONZERO_OP): Likewise.
12418         (MIPS_SYNC_OP, MIPS_SYNC_OP_12): Likewise.
12419         (MIPS_SYNC_OP_12_AND, MIPS_SYNC_OP_12_XOR): Likewise.
12420         (MIPS_SYNC_OLD_OP_12): Likewise.
12421         (MIPS_SYNC_OLD_OP_12_AND, MIPS_SYNC_OLD_OP_12_XOR): Likewise.
12422         (MIPS_SYNC_NEW_OP_12): Likewise.
12423         (MIPS_SYNC_NEW_OP_12_AND, MIPS_SYNC_NEW_OP_12_XOR): Likewise.
12424         (MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP): Likewise.
12425         (MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND): Likewise.
12426         (MIPS_SYNC_EXCHANGE, MIPS_SYNC_EXCHANGE_12): Likewise.
12427         (MIPS_SYNC_EXCHANGE_12_ZERO_OP): Likewise.
12428         (MIPS_SYNC_EXCHANGE_12_NONZER_OP): Likewise.
12429         * config/mips/mips.md (sync_mem): New attribute.
12430         (sync_oldval, sync_newval, sync_inclusive_mask): Likewise.
12431         (sync_exclusive_mask, sync_required_oldval): Likewise.
12432         (sync_insn1_op2, sync_insn1, sync_insn2): Likewise.
12433         (sync_release_barrier): Likewise.
12434         (length): Handle sync loops.
12435         (sync): Use mips_output_sync.
12436         * config/mips/sync.md (*memory_barrier): Use mips_output_sync.
12437         (sync_compare_and_swap<mode>): Set the new sync_* attributes
12438         and use mips_output_sync_loop.
12439         (compare_and_swap_12, sync_add<mode>, sync_<optab>_12): Likewise.
12440         (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
12441         (sync_old_nand_12, sync_new_nand_12, sync_sub<mode>): Likewise.
12442         (sync_old_add<mode>, sync_old_sub<mode>): Likewise.
12443         (sync_new_add<mode>, sync_new_sub<mode>): Likewise.
12444         (sync_<optab><mode>, sync_old_<optab><mode>): Likewise.
12445         (sync_new_<optab><mode>, sync_nand<mode>): Likewise.
12446         (sync_old_nand<mode>, sync_new_nand<mode>): Likewise.
12447         (sync_lock_test_and_set<mode>, test_and_set_12): Likewise.
12448
12449 2009-08-26  Richard Guenther  <rguenther@suse.de>
12450
12451         PR middle-end/41163
12452         * gimplify.c (gimplify_addr_expr): Canonicalize ADDR_EXPRs if
12453         the types to not match.
12454         * tree-cfg.c (verify_gimple_assign_single): Adjust ADDR_EXPR
12455         verification.
12456         * tree-ssa.c (useless_type_conversion_p): Conversions to
12457         pointers to unprototyped functions are useless.
12458
12459 2009-08-26  Richard Guenther  <rguenther@suse.de>
12460
12461         * tree-ssa-structalias.c (create_variable_info_for): Remove strange
12462         whole-program condition, prepare to be called for non-globals.
12463         (intra_create_variable_infos): For restrict qualified DECL_BY_REFERENCE
12464         params build a representative with known type and track its fields.
12465
12466 2009-08-26  Uros Bizjak  <ubizjak@gmail.com>
12467
12468         * config/alpha/sync.md: Update comment about unpredictable LL/SC lock
12469         clearing by a taken branch.
12470         (sync_<fetchop_name><mode>): Split when epilogue_completed is set,
12471         effectively after bbro pass.
12472         (sync_nand<mode>): Ditto.
12473         (sync_old_<fetchop_name><mode>): Ditto.
12474         (sync_old_nand<mode>): Ditto.
12475         (sync_new_<fetchop_name><mode>): Dito.
12476         (sync_new_nand<mode>): Ditto.
12477         (sync_compare_and_swap<mode>_1): Ditto.
12478         (*sync_compare_and_swap<mode>): Ditto.
12479         (sync_lock_test_and_set<mode>_1): Ditto.
12480         ("sync_lock_test_and_set<mode>): Ditto.
12481
12482 2009-08-25  Douglas B Rupp  <rupp@gnat.com>
12483
12484         * hwint.h (HOST_LONG_FORMAT): New macro
12485         * bitmap.c, c-decl.c, mips-tfile.c, print-rtl.c, print-tree.c:
12486         Use HOST_PTR_PRINTF.
12487         * system.h (HOST_PTR_PRINTF): Resurrect old macro
12488         * doc/hostconfig.texi (HOST_LONG_FORMAT): Document.
12489         (HOST_PTR_PRINTF): Document.
12490
12491 2009-08-25 Jan Hubicka  <jh@suse.cz>
12492
12493         * config/i386/bmmintrin.h: Replace by #error.
12494
12495         Revert:
12496         Michael Meissner  <michael.meissner@amd.com>
12497         Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
12498         Tony Linthicum  <tony.linthicum@amd.com>
12499
12500         * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
12501         (TARGET_ROUND): New macro for the round/ptest instructions which
12502         are shared between SSE4.1 and SSE5.
12503         (OPTION_MASK_ISA_ROUND): Ditto.
12504         (OPTION_ISA_ROUND): Ditto.
12505         (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
12506         (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
12507
12508         * config/i386/i386.opt (-msse5): New switch for SSE5 support.
12509         (-mfused-madd): New switch to give users control over whether the
12510         compiler optimizes to use the multiply/add SSE5 instructions.
12511
12512         * config/i386/i386.c (enum pta_flags): Add PTA_SSE5.
12513         (ix86_handle_option): Turn off 3dnow if -msse5.
12514         (override_options): Add SSE5 support.
12515         (print_operand): %Y prints comparison codes for SSE5 com/pcom
12516         instructions.
12517         (ix86_expand_sse_movcc): Add SSE5 support.
12518         (ix86_expand_sse5_unpack): New function to use pperm to unpack a
12519         vector type to the next largest size.
12520         (ix86_expand_sse5_pack): New function to use pperm to pack a
12521         vector type to the next smallest size.
12522         (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
12523         (IX86_BUILTIN_FMADDSD): Ditto.
12524         (IX86_BUILTIN_FMADDPS): Ditto.
12525         (IX86_BUILTIN_FMADDPD): Ditto.
12526         (IX86_BUILTIN_FMSUBSS): Ditto.
12527         (IX86_BUILTIN_FMSUBSD): Ditto.
12528         (IX86_BUILTIN_FMSUBPS): Ditto.
12529         (IX86_BUILTIN_FMSUBPD): Ditto.
12530         (IX86_BUILTIN_FNMADDSS): Ditto.
12531         (IX86_BUILTIN_FNMADDSD): Ditto.
12532         (IX86_BUILTIN_FNMADDPS): Ditto.
12533         (IX86_BUILTIN_FNMADDPD): Ditto.
12534         (IX86_BUILTIN_FNMSUBSS): Ditto.
12535         (IX86_BUILTIN_FNMSUBSD): Ditto.
12536         (IX86_BUILTIN_FNMSUBPS): Ditto.
12537         (IX86_BUILTIN_FNMSUBPD): Ditto.
12538         (IX86_BUILTIN_PCMOV_V2DI): Ditto.
12539         (IX86_BUILTIN_PCMOV_V4SI): Ditto.
12540         (IX86_BUILTIN_PCMOV_V8HI): Ditto.
12541         (IX86_BUILTIN_PCMOV_V16QI): Ditto.
12542         (IX86_BUILTIN_PCMOV_V4SF): Ditto.
12543         (IX86_BUILTIN_PCMOV_V2DF): Ditto.
12544         (IX86_BUILTIN_PPERM): Ditto.
12545         (IX86_BUILTIN_PERMPS): Ditto.
12546         (IX86_BUILTIN_PERMPD): Ditto.
12547         (IX86_BUILTIN_PMACSSWW): Ditto.
12548         (IX86_BUILTIN_PMACSWW): Ditto.
12549         (IX86_BUILTIN_PMACSSWD): Ditto.
12550         (IX86_BUILTIN_PMACSWD): Ditto.
12551         (IX86_BUILTIN_PMACSSDD): Ditto.
12552         (IX86_BUILTIN_PMACSDD): Ditto.
12553         (IX86_BUILTIN_PMACSSDQL): Ditto.
12554         (IX86_BUILTIN_PMACSSDQH): Ditto.
12555         (IX86_BUILTIN_PMACSDQL): Ditto.
12556         (IX86_BUILTIN_PMACSDQH): Ditto.
12557         (IX86_BUILTIN_PMADCSSWD): Ditto.
12558         (IX86_BUILTIN_PMADCSWD): Ditto.
12559         (IX86_BUILTIN_PHADDBW): Ditto.
12560         (IX86_BUILTIN_PHADDBD): Ditto.
12561         (IX86_BUILTIN_PHADDBQ): Ditto.
12562         (IX86_BUILTIN_PHADDWD): Ditto.
12563         (IX86_BUILTIN_PHADDWQ): Ditto.
12564         (IX86_BUILTIN_PHADDDQ): Ditto.
12565         (IX86_BUILTIN_PHADDUBW): Ditto.
12566         (IX86_BUILTIN_PHADDUBD): Ditto.
12567         (IX86_BUILTIN_PHADDUBQ): Ditto.
12568         (IX86_BUILTIN_PHADDUWD): Ditto.
12569         (IX86_BUILTIN_PHADDUWQ): Ditto.
12570         (IX86_BUILTIN_PHADDUDQ): Ditto.
12571         (IX86_BUILTIN_PHSUBBW): Ditto.
12572         (IX86_BUILTIN_PHSUBWD): Ditto.
12573         (IX86_BUILTIN_PHSUBDQ): Ditto.
12574         (IX86_BUILTIN_PROTB): Ditto.
12575         (IX86_BUILTIN_PROTW): Ditto.
12576         (IX86_BUILTIN_PROTD): Ditto.
12577         (IX86_BUILTIN_PROTQ): Ditto.
12578         (IX86_BUILTIN_PROTB_IMM): Ditto.
12579         (IX86_BUILTIN_PROTW_IMM): Ditto.
12580         (IX86_BUILTIN_PROTD_IMM): Ditto.
12581         (IX86_BUILTIN_PROTQ_IMM): Ditto.
12582         (IX86_BUILTIN_PSHLB): Ditto.
12583         (IX86_BUILTIN_PSHLW): Ditto.
12584         (IX86_BUILTIN_PSHLD): Ditto.
12585         (IX86_BUILTIN_PSHLQ): Ditto.
12586         (IX86_BUILTIN_PSHAB): Ditto.
12587         (IX86_BUILTIN_PSHAW): Ditto.
12588         (IX86_BUILTIN_PSHAD): Ditto.
12589         (IX86_BUILTIN_PSHAQ): Ditto.
12590         (IX86_BUILTIN_FRCZSS): Ditto.
12591         (IX86_BUILTIN_FRCZSD): Ditto.
12592         (IX86_BUILTIN_FRCZPS): Ditto.
12593         (IX86_BUILTIN_FRCZPD): Ditto.
12594         (IX86_BUILTIN_CVTPH2PS): Ditto.
12595         (IX86_BUILTIN_CVTPS2PH): Ditto.
12596         (IX86_BUILTIN_COMEQSS): Ditto.
12597         (IX86_BUILTIN_COMNESS): Ditto.
12598         (IX86_BUILTIN_COMLTSS): Ditto.
12599         (IX86_BUILTIN_COMLESS): Ditto.
12600         (IX86_BUILTIN_COMGTSS): Ditto.
12601         (IX86_BUILTIN_COMGESS): Ditto.
12602         (IX86_BUILTIN_COMUEQSS): Ditto.
12603         (IX86_BUILTIN_COMUNESS): Ditto.
12604         (IX86_BUILTIN_COMULTSS): Ditto.
12605         (IX86_BUILTIN_COMULESS): Ditto.
12606         (IX86_BUILTIN_COMUGTSS): Ditto.
12607         (IX86_BUILTIN_COMUGESS): Ditto.
12608         (IX86_BUILTIN_COMORDSS): Ditto.
12609         (IX86_BUILTIN_COMUNORDSS): Ditto.
12610         (IX86_BUILTIN_COMFALSESS): Ditto.
12611         (IX86_BUILTIN_COMTRUESS): Ditto.
12612         (IX86_BUILTIN_COMEQSD): Ditto.
12613         (IX86_BUILTIN_COMNESD): Ditto.
12614         (IX86_BUILTIN_COMLTSD): Ditto.
12615         (IX86_BUILTIN_COMLESD): Ditto.
12616         (IX86_BUILTIN_COMGTSD): Ditto.
12617         (IX86_BUILTIN_COMGESD): Ditto.
12618         (IX86_BUILTIN_COMUEQSD): Ditto.
12619         (IX86_BUILTIN_COMUNESD): Ditto.
12620         (IX86_BUILTIN_COMULTSD): Ditto.
12621         (IX86_BUILTIN_COMULESD): Ditto.
12622         (IX86_BUILTIN_COMUGTSD): Ditto.
12623         (IX86_BUILTIN_COMUGESD): Ditto.
12624         (IX86_BUILTIN_COMORDSD): Ditto.
12625         (IX86_BUILTIN_COMUNORDSD): Ditto.
12626         (IX86_BUILTIN_COMFALSESD): Ditto.
12627         (IX86_BUILTIN_COMTRUESD): Ditto.
12628         (IX86_BUILTIN_COMEQPS): Ditto.
12629         (IX86_BUILTIN_COMNEPS): Ditto.
12630         (IX86_BUILTIN_COMLTPS): Ditto.
12631         (IX86_BUILTIN_COMLEPS): Ditto.
12632         (IX86_BUILTIN_COMGTPS): Ditto.
12633         (IX86_BUILTIN_COMGEPS): Ditto.
12634         (IX86_BUILTIN_COMUEQPS): Ditto.
12635         (IX86_BUILTIN_COMUNEPS): Ditto.
12636         (IX86_BUILTIN_COMULTPS): Ditto.
12637         (IX86_BUILTIN_COMULEPS): Ditto.
12638         (IX86_BUILTIN_COMUGTPS): Ditto.
12639         (IX86_BUILTIN_COMUGEPS): Ditto.
12640         (IX86_BUILTIN_COMORDPS): Ditto.
12641         (IX86_BUILTIN_COMUNORDPS): Ditto.
12642         (IX86_BUILTIN_COMFALSEPS): Ditto.
12643         (IX86_BUILTIN_COMTRUEPS): Ditto.
12644         (IX86_BUILTIN_COMEQPD): Ditto.
12645         (IX86_BUILTIN_COMNEPD): Ditto.
12646         (IX86_BUILTIN_COMLTPD): Ditto.
12647         (IX86_BUILTIN_COMLEPD): Ditto.
12648         (IX86_BUILTIN_COMGTPD): Ditto.
12649         (IX86_BUILTIN_COMGEPD): Ditto.
12650         (IX86_BUILTIN_COMUEQPD): Ditto.
12651         (IX86_BUILTIN_COMUNEPD): Ditto.
12652         (IX86_BUILTIN_COMULTPD): Ditto.
12653         (IX86_BUILTIN_COMULEPD): Ditto.
12654         (IX86_BUILTIN_COMUGTPD): Ditto.
12655         (IX86_BUILTIN_COMUGEPD): Ditto.
12656         (IX86_BUILTIN_COMORDPD): Ditto.
12657         (IX86_BUILTIN_COMUNORDPD): Ditto.
12658         (IX86_BUILTIN_COMFALSEPD): Ditto.
12659         (IX86_BUILTIN_COMTRUEPD): Ditto.
12660         (IX86_BUILTIN_PCOMEQUB): Ditto.
12661         (IX86_BUILTIN_PCOMNEUB): Ditto.
12662         (IX86_BUILTIN_PCOMLTUB): Ditto.
12663         (IX86_BUILTIN_PCOMLEUB): Ditto.
12664         (IX86_BUILTIN_PCOMGTUB): Ditto.
12665         (IX86_BUILTIN_PCOMGEUB): Ditto.
12666         (IX86_BUILTIN_PCOMFALSEUB): Ditto.
12667         (IX86_BUILTIN_PCOMTRUEUB): Ditto.
12668         (IX86_BUILTIN_PCOMEQUW): Ditto.
12669         (IX86_BUILTIN_PCOMNEUW): Ditto.
12670         (IX86_BUILTIN_PCOMLTUW): Ditto.
12671         (IX86_BUILTIN_PCOMLEUW): Ditto.
12672         (IX86_BUILTIN_PCOMGTUW): Ditto.
12673         (IX86_BUILTIN_PCOMGEUW): Ditto.
12674         (IX86_BUILTIN_PCOMFALSEUW): Ditto.
12675         (IX86_BUILTIN_PCOMTRUEUW): Ditto.
12676         (IX86_BUILTIN_PCOMEQUD): Ditto.
12677         (IX86_BUILTIN_PCOMNEUD): Ditto.
12678         (IX86_BUILTIN_PCOMLTUD): Ditto.
12679         (IX86_BUILTIN_PCOMLEUD): Ditto.
12680         (IX86_BUILTIN_PCOMGTUD): Ditto.
12681         (IX86_BUILTIN_PCOMGEUD): Ditto.
12682         (IX86_BUILTIN_PCOMFALSEUD): Ditto.
12683         (IX86_BUILTIN_PCOMTRUEUD): Ditto.
12684         (IX86_BUILTIN_PCOMEQUQ): Ditto.
12685         (IX86_BUILTIN_PCOMNEUQ): Ditto.
12686         (IX86_BUILTIN_PCOMLTUQ): Ditto.
12687         (IX86_BUILTIN_PCOMLEUQ): Ditto.
12688         (IX86_BUILTIN_PCOMGTUQ): Ditto.
12689         (IX86_BUILTIN_PCOMGEUQ): Ditto.
12690         (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
12691         (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
12692         (IX86_BUILTIN_PCOMEQB): Ditto.
12693         (IX86_BUILTIN_PCOMNEB): Ditto.
12694         (IX86_BUILTIN_PCOMLTB): Ditto.
12695         (IX86_BUILTIN_PCOMLEB): Ditto.
12696         (IX86_BUILTIN_PCOMGTB): Ditto.
12697         (IX86_BUILTIN_PCOMGEB): Ditto.
12698         (IX86_BUILTIN_PCOMFALSEB): Ditto.
12699         (IX86_BUILTIN_PCOMTRUEB): Ditto.
12700         (IX86_BUILTIN_PCOMEQW): Ditto.
12701         (IX86_BUILTIN_PCOMNEW): Ditto.
12702         (IX86_BUILTIN_PCOMLTW): Ditto.
12703         (IX86_BUILTIN_PCOMLEW): Ditto.
12704         (IX86_BUILTIN_PCOMGTW): Ditto.
12705         (IX86_BUILTIN_PCOMGEW): Ditto.
12706         (IX86_BUILTIN_PCOMFALSEW): Ditto.
12707         (IX86_BUILTIN_PCOMTRUEW): Ditto.
12708         (IX86_BUILTIN_PCOMEQD): Ditto.
12709         (IX86_BUILTIN_PCOMNED): Ditto.
12710         (IX86_BUILTIN_PCOMLTD): Ditto.
12711         (IX86_BUILTIN_PCOMLED): Ditto.
12712         (IX86_BUILTIN_PCOMGTD): Ditto.
12713         (IX86_BUILTIN_PCOMGED): Ditto.
12714         (IX86_BUILTIN_PCOMFALSED): Ditto.
12715         (IX86_BUILTIN_PCOMTRUED): Ditto.
12716         (IX86_BUILTIN_PCOMEQQ): Ditto.
12717         (IX86_BUILTIN_PCOMNEQ): Ditto.
12718         (IX86_BUILTIN_PCOMLTQ): Ditto.
12719         (IX86_BUILTIN_PCOMLEQ): Ditto.
12720         (IX86_BUILTIN_PCOMGTQ): Ditto.
12721         (IX86_BUILTIN_PCOMGEQ): Ditto.
12722         (IX86_BUILTIN_PCOMFALSEQ): Ditto.
12723         (IX86_BUILTIN_PCOMTRUEQ): Ditto.
12724         (enum multi_arg_type): New enum for describing the various SSE5
12725         intrinsic argument types.
12726         (bdesc_multi_arg): New table for SSE5 intrinsics.
12727         (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
12728         (ix86_expand_multi_arg_builtin): New function for creating SSE5
12729         intrinsics.
12730         (ix86_expand_builtin): Add SSE5 intrinsic support.
12731         (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
12732         operand instructions.
12733         (ix86_expand_sse5_multiple_memory): New function to split the
12734         second memory reference from SSE5 instructions.
12735         (type_has_variadic_args_p): Delete in favor of stdarg_p.
12736         (ix86_return_pops_args): Use stdarg_p to determine if the function
12737         has variable arguments.
12738         (ix86_setup_incoming_varargs): Ditto.
12739         (x86_this_parameter): Ditto.
12740
12741         * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
12742         declaration.
12743         (ix86_expand_sse5_pack): Ditto.
12744         (ix86_sse5_valid_op_p): Ditto.
12745         (ix86_expand_sse5_multiple_memory): Ditto.
12746
12747         * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
12748         constant for SSE5 support.
12749         (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
12750         (UNSPEC_SSE5_TRUEFALSE): Ditto.
12751         (UNSPEC_SSE5_PERMUTE): Ditto.
12752         (UNSPEC_SSE5_ASHIFT): Ditto.
12753         (UNSPEC_SSE5_LSHIFT): Ditto.
12754         (UNSPEC_FRCZ): Ditto.
12755         (UNSPEC_CVTPH2PS): Ditto.
12756         (UNSPEC_CVTPS2PH): Ditto.
12757         (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
12758         (PCOM_TRUE): Ditto.
12759         (COM_FALSE_S): Ditto.
12760         (COM_FALSE_P): Ditto.
12761         (COM_TRUE_S): Ditto.
12762         (COM_TRUE_P): Ditto.
12763         (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
12764         (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
12765         types.
12766         (memory attribute): Ditto.
12767         (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
12768         Use SSE4_1_ROUND_* constants instead of hard coded numbers.
12769         (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
12770         (floor<mode>2): Ditto.
12771         (ceil<mode>2): Ditto.
12772         (btrunc<mode>2): Ditto.
12773         (nearbyintdf2): Ditto.
12774         (nearbyintsf2): Ditto.
12775         (sse_setccsf): Disable if SSE5.
12776         (sse_setccdf): Ditto.
12777         (sse5_setcc<mode>): New support for SSE5 conditional move.
12778         (sse5_pcmov_<mode>): Ditto.
12779
12780         * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
12781         (SSEMODEF4): Ditto.
12782         (SSEMODEF2P): Ditto.
12783         (ssemodesuffixf4): New mode attribute for SSE5.
12784         (ssemodesuffixf2s): Ditto.
12785         (ssemodesuffixf2c): Ditto.
12786         (sserotatemax): Ditto.
12787         (ssescalarmode): Ditto.
12788         (sse_maskcmpv4sf3): Disable if SSE5.
12789         (sse_maskcmpv2df3): Ditto.
12790         (sse_vmmaskcmpv4sf3): Ditto.
12791         (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add instructions.
12792         (sse5_vmfmadd<mode>4): Ditto.
12793         (sse5_fmsub<mode>4): Ditto.
12794         (sse5_vmfmsub<mode>4): Ditto.
12795         (sse5_fnmadd<mode>4): Ditto.
12796         (sse5_vmfnmadd<mode>4): Ditto.
12797         (sse5_fnmsub<mode>4): Ditto.
12798         (sse5_vmfnmsub<mode>4): Ditto.
12799         (sse5i_fmadd<mode>4): Ditto.
12800         (sse5i_fmsub<mode>4): Ditto.
12801         (sse5i_fnmadd<mode>4): Ditto.
12802         (sse5i_fnmsub<mode>4): Ditto.
12803         (sse5i_vmfmadd<mode>4): Ditto.
12804         (sse5i_vmfmsub<mode>4): Ditto.
12805         (sse5i_vmfnmadd<mode>4): Ditto.
12806         (sse5i_vmfnmsub<mode>4): Ditto.
12807         (mulv16qi3): Add SSE5 support.
12808         (mulv4si3): Ditto.
12809         (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
12810         (sse2_mulv4si3): Disable if SSE5.
12811         (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
12812         (sse4_1_roundps): Ditto.
12813         (sse4_1_roundsd): Ditto.
12814         (sse4_1_roundss): Ditto.
12815         (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
12816         be generated.
12817         (sse_maskcmpsf3): Ditto.
12818         (sse_vmmaskcmpv4sf3): Ditto.
12819         (sse2_maskcmpv2df3): Ditto.
12820         (sse2_maskcmpdf3): Ditto.
12821         (sse2_vmmaskcmpv2df3): Ditto.
12822         (sse2_eq<mode>3): Ditto.
12823         (sse2_gt<mode>3): Ditto.
12824         (sse5_pcmov_<mode>): Add SSE5 support.
12825         (vec_unpacku_hi_v16qi): Ditto.
12826         (vec_unpacks_hi_v16qi): Ditto.
12827         (vec_unpacku_lo_v16qi): Ditto.
12828         (vec_unpacks_lo_v16qi): Ditto.
12829         (vec_unpacku_hi_v8hi): Ditto.
12830         (vec_unpacks_hi_v8hi): Ditto.
12831         (vec_unpacku_lo_v8hi): Ditto.
12832         (vec_unpacks_lo_v8hi): Ditto.
12833         (vec_unpacku_hi_v4si): Ditto.
12834         (vec_unpacks_hi_v4si): Ditto.
12835         (vec_unpacku_lo_v4si): Ditto.
12836         (vec_unpacks_lo_v4si): Ditto.
12837         (sse5_pmacsww): New SSE5 intrinsic insn.
12838         (sse5_pmacssww): Ditto.
12839         (sse5_pmacsdd): Ditto.
12840         (sse5_pmacssdd): Ditto.
12841         (sse5_pmacssdql): Ditto.
12842         (sse5_pmacssdqh): Ditto.
12843         (sse5_pmacsdqh): Ditto.
12844         (sse5_pmacsswd): Ditto.
12845         (sse5_pmacswd): Ditto.
12846         (sse5_pmadcsswd): Ditto.
12847         (sse5_pmadcswd): Ditto.
12848         (sse5_pcmov_<move>): Conditional move support on SSE5.
12849         (sse5_phaddbw): New SSE5 intrinsic insn.
12850         (sse5_phaddbd): Ditto.
12851         (sse5_phaddbq): Ditto.
12852         (sse5_phaddwd): Ditto.
12853         (sse5_phaddwq): Ditto.
12854         (sse5_phadddq): Ditto.
12855         (sse5_phaddubw): Ditto.
12856         (sse5_phaddubd): Ditto.
12857         (sse5_phaddubq): Ditto.
12858         (sse5_phadduwd): Ditto.
12859         (sse5_phadduwq): Ditto.
12860         (sse5_phaddudq): Ditto.
12861         (sse5_phsubbw): Ditto.
12862         (sse5_phsubwd): Ditto.
12863         (sse5_phsubdq): Ditto.
12864         (sse5_pperm): Ditto.
12865         (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
12866         (sse5_pperm_zero_v16qi_v8hi): Ditto.
12867         (sse5_pperm_sign_v8hi_v4si): Ditto.
12868         (sse5_pperm_zero_v8hi_v4si): Ditto.
12869         (sse5_pperm_sign_v4si_v2di): Ditto.
12870         (sse5_pperm_sign_v4si_v2di): Ditto.
12871         (sse5_pperm_pack_v2di_v4si): Ditto.
12872         (sse5_pperm_pack_v4si_v8hi): Ditto.
12873         (sse5_pperm_pack_v8hi_v16qi): Ditto.
12874         (sse5_perm<mode>): New SSE5 intrinsic insn.
12875         (rotl<mode>3): Ditto.
12876         (sse5_rotl<mode>3): Ditto.
12877         (sse5_ashl<mode>3): Ditto.
12878         (sse5_lshl<mode>3): Ditto.
12879         (sse5_frcz<mode>2): Ditto.
12880         (sse5s_frcz<mode>2): Ditto.
12881         (sse5_cvtph2ps): Ditto.
12882         (sse5_cvtps2ph): Ditto.
12883         (sse5_vmmaskcmp<mode>3): Ditto.
12884         (sse5_com_tf<mode>3): Ditto.
12885         (sse5_maskcmp<mode>3): Ditto.
12886         (sse5_maskcmp_uns<mode>3): Ditto.
12887         (sse5_maskcmp_uns2<mode>3): Ditto.
12888         (sse5_pcom_tf<mode>3): Ditto.
12889
12890         * config/i386/predicates.md (sse5_comparison_float_operator):
12891         New predicate to match the comparison operators supported by
12892         the SSE5 com instruction.
12893         (ix86_comparison_int_operator): New predicate to match just the
12894         signed int comparisons.
12895         (ix86_comparison_uns_operator): New predicate to match just the
12896         unsigned int comparisons.
12897
12898         * doc/invoke.texi (-msse5): Add documentation.
12899         (-mfused-madd): Ditto.
12900
12901         * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
12902
12903         * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
12904         mmintrin-common.h.
12905         (x86_64-*-*): Ditto.
12906
12907         * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
12908
12909         * config/i386/bmmintrin.h: New file, provide common x86 compiler
12910         intrinisics for SSE5.
12911
12912         * config/i386/smmintrin.h: Move instructions shared with SSE5 to
12913         mmintrin-common.h.
12914
12915         * config/i386/mmintrin-common.h: New file, to contain common
12916         instructions between SSE4.1 and SSE5.
12917
12918         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
12919         FOREACH_FUNCTION_ARGS to iterate over the argument list.
12920         (gen_regparm_prefix): Ditto.
12921
12922         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
12923         FOREACH_FUNCTION_ARGS to iterate over the argument list.  Use
12924         prototype_p to determine if a function is prototyped.
12925
12926 2009-08-25 Ville Voutilainen <ville.voutilainen@gmail.com>
12927
12928         * c-common.c (c_common_reswords) add the alignof keyword,
12929         with same RID as __alignof and __alignof__
12930
12931 2009-08-25  Anatoly Sokolov  <aesok@post.ru>
12932
12933         * hooks.h (hook_bool_const_int_const_int_true): Declare.
12934         * hooks.c (hook_bool_const_int_const_int_true): New function.
12935         * target.h (struct gcc_target): Add can_eliminate field.
12936         * target-def.h (TARGET_CAN_ELIMINATE): Define.
12937         (TARGET_INITIALIZER): Use TARGET_CAN_ELIMINATE.
12938         * ira.c (setup_eliminable_regset): Use can_eliminate target hook.
12939         * reload1.c (update_eliminables, init_elim_table): (Ditto.).
12940         (elim_table): Revise comment.
12941         * system.h (CAN_ELIMINATE): Poison.
12942         * defaults.h (CAN_ELIMINATE): Remove.
12943         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
12944
12945         * config/alpha/vms.h (CAN_ELIMINATE): Remove macro.
12946         * config/alpha/alpha.c (TARGET_CAN_ELIMINATE) [TARGET_ABI_OPEN_VMS]:
12947         Define macro.
12948         (alpha_vms_can_eliminate): Declare as static, change return type to
12949         bool.
12950         * config/alpha/alpha-protos.h (alpha_vms_can_eliminate): Remove.
12951
12952         * config/arm/arm.h (CAN_ELIMINATE): Remove macro.
12953         * config/arm/arm.c (TARGET_CAN_ELIMINATE): Define macro.
12954         (arm_can_eliminate): New function.
12955
12956         * config/avr/avr.h (CAN_ELIMINATE): Remove macro.
12957         * config/avr/avr.c (TARGET_CAN_ELIMINATE): Define macro.
12958         (avr_can_eliminate): Declare as static.
12959         * config/avr/avr-protos.h (avr_can_eliminate): Remove.
12960
12961         * config/bfin/bfin.h (CAN_ELIMINATE): Remove macro.
12962         * config/bfin/bfin.c (TARGET_CAN_ELIMINATE): Define macro.
12963         (bfin_can_eliminate): New function.
12964
12965         * config/crx/crx.h (CAN_ELIMINATE): Remove macro.
12966         * config/crx/crx.c (TARGET_CAN_ELIMINATE): Define macro.
12967         (crx_can_eliminate): New function.
12968
12969         * config/fr30/fr30.h (CAN_ELIMINATE): Remove macro.
12970         * config/fr30/fr30.c (TARGET_CAN_ELIMINATE): Define macro.
12971         (fr30_can_eliminate): New function.
12972
12973         * config/frv/frv.h (CAN_ELIMINATE): Remove macro.
12974         * config/frv/frv.c (TARGET_CAN_ELIMINATE): Define macro.
12975         (frv_can_eliminate): New function.
12976
12977         * config/h8300/h8300.h (CAN_ELIMINATE): Remove macro.
12978         * config/h8300/h8300.c (TARGET_CAN_ELIMINATE): Define macro.
12979         (h8300_can_eliminate): New function.
12980
12981         * config/i386/i386.h (CAN_ELIMINATE): Remove macro.
12982         * config/i386/i386.c (TARGET_CAN_ELIMINATE): Define macro.
12983         (i386_can_eliminate): Declare as static, change return type to bool.
12984         * config/i386/i386-protos.h (i386_can_eliminate): Remove.
12985
12986         * config/ia64/ia64.h (CAN_ELIMINATE): Remove macro.
12987         * config/ia64/ia64.c (TARGET_CAN_ELIMINATE): Define macro.
12988         (ia64_can_eliminate): New function.
12989
12990         * config/iq2000/iq2000.h (CAN_ELIMINATE): Remove macro.
12991         * config/iq2000/iq2000.c (TARGET_CAN_ELIMINATE): Define macro.
12992         (iq2000_can_eliminate): New function.
12993
12994         * config/m32r/m32r.h (CAN_ELIMINATE): Remove macro.
12995         * config/m32r/m32r.c (TARGET_CAN_ELIMINATE): Define macro.
12996         (m32r_can_eliminate): New function.
12997
12998         * config/m68hc11/m68hc11.h (CAN_ELIMINATE): Remove macro.
12999         * config/m68hc11/m68hc11.c (TARGET_CAN_ELIMINATE): Define macro.
13000         (m68hc11_can_eliminate): New function.
13001
13002         * config/m68k/m68k.h (CAN_ELIMINATE): Remove macro.
13003         * config/m68k/m68k.c (TARGET_CAN_ELIMINATE): Define macro.
13004         (m68k_can_eliminate): New function.
13005
13006         * config/mep/mep.h (CAN_ELIMINATE): Remove macro.
13007         * config/mep/mep.c (TARGET_CAN_ELIMINATE): Define macro.
13008         (mep_can_eliminate): New function.
13009
13010         * config/mips/mips.h (CAN_ELIMINATE): Remove macro.
13011         * config/mips/mips.c (TARGET_CAN_ELIMINATE): Define macro.
13012         (mips_can_eliminate): New function.
13013
13014         * config/rs6000/rs6000.h (CAN_ELIMINATE): Remove macro.
13015         * config/rs6000/rs6000.c (TARGET_CAN_ELIMINATE): Define macro.
13016         (rs6000_can_eliminate): New function.
13017
13018         * config/s390/s390.h (CAN_ELIMINATE): Remove macro.
13019         * config/s390/s390.c (TARGET_CAN_ELIMINATE): Define macro.
13020         (s390_can_eliminate): Declare as static.
13021         * config/s390/s390-protos.h (sparc_can_eliminate): Remove.
13022
13023         * config/score/score.h (CAN_ELIMINATE): Remove macro.
13024         * config/score/score.c (TARGET_CAN_ELIMINATE): Define macro.
13025         (score_can_eliminate): New function.
13026
13027         * config/sparc/sparc.h (CAN_ELIMINATE): Remove macro.
13028         * config/sparc/sparc.c (TARGET_CAN_ELIMINATE): Define macro.
13029         (sparc_can_eliminate): Declare as static.
13030         * config/sparc/sparc-protos.h (sparc_can_eliminate): Remove.
13031
13032         * config/stormy16/stormy16.h (CAN_ELIMINATE): Remove macro.
13033         * config/stormy16/stormy16.c (TARGET_CAN_ELIMINATE): Define macro.
13034         (xstormy16_can_eliminate): New function.
13035
13036         * config/v850/v850.h (CAN_ELIMINATE): Remove macro.
13037         * config/v850/v850.c (TARGET_CAN_ELIMINATE): Define macro.
13038         (v850_can_eliminate): New function.
13039
13040 2009-08-25  Uros Bizjak  <ubizjak@gmail.com>
13041
13042         * config/alpha/alpha.md (*cmpdf_ieee_ext[123]): Remove.
13043         (*cmpdf_internal): Enable for all ALPHA_FPTM levels.
13044         (*movdfcc_ext[1234]): Disable for IEEE mode.
13045
13046 2009-08-25  Eric Botcazou  <ebotcazou@adacore.com>
13047
13048         * gimplify.c (prepare_gimple_addressable): New static function.
13049         (gimplify_modify_expr_to_memcpy): Invoke it on the RHS before marking
13050         it addressable.
13051         (gimplify_addr_expr): Invoke it similarly on the operand instead of
13052         manually fiddling with it.
13053
13054 2009-08-25  Michael Matz  <matz@suse.de>
13055
13056         * expr.h (jumpifnot_1, jumpif_1, do_jump_1): Declare.
13057         * dojump.c (do_jump_by_parts_greater): Take two operands instead of
13058         full expression.
13059         (do_jump_by_parts_equality, do_compare_and_jump): Ditto.
13060         (jumpifnot_1, jumpif_1): New wrappers for do_jump_1.
13061         (do_jump): Split out code for simple binary comparisons into ...
13062         (do_jump_1): ... this, taking the individual operands and code.
13063         Change callers to helper function above accordingly.
13064         * expr.c (expand_expr_real_1): Use jumpifnot_1 for simple binary
13065         comparisons.
13066
13067 2009-08-25  Michael Matz  <matz@suse.de>
13068
13069         * expr.h (struct separate_ops, sepops): New type for passing
13070         around an exploded simple expression.
13071         * optabs.c (expand_widen_pattern_expr, expand_vec_shift_expr):
13072         Use this structure instead of expression tree.
13073         (get_vcond_icode, expand_vec_cond_expr_p): Don't take whole
13074         expression, only its type.
13075         (expand_vec_cond_expr): Take type and individual operands instead
13076         of full expression.
13077         * optabs.h (expand_widen_pattern_expr, expand_vec_cond_expr,
13078         expand_vec_shift_expr): Change prototype accordingly.
13079         * tree-vect-stmts.c (vectorizable_condition): Change call of
13080         expand_vec_cond_expr_p to pass only type.
13081         * expr.c (do_store_flags): Change prototype and implementation
13082         to take an exploded expression.
13083         (expand_expr_real_1): New local ops initialized with details
13084         of the full expression.  Use it instead of full
13085         expression in calls to do_store_flags, expand_vec_cond_expr,
13086         expand_widen_pattern_expr and expand_vec_shift_expr.
13087
13088 2009-08-25  Michael Matz  <matz@suse.de>
13089
13090         * expr.c (expand_expr_real_1): New local treeop0, treeop1,
13091         treeop2 initialized with first three operands of the full expression.
13092         Substitute all TREE_OPERAND (exp, [012]) calls with them.
13093
13094 2009-08-25  Kai Tietz  <kai.tietz@onevision.com>
13095
13096         * gcc/gthr-win32.h (__UNUSED_PARAM): Define, if not already present.
13097         (__gthread_objc_condition_allocate): Mark arguments as unused.
13098         (__gthread_objc_condition_deallocate): Likewise.
13099         (__gthread_objc_condition_wait): Likewise.
13100         (__gthread_objc_condition_broadcast): Likewise.
13101         (__gthread_objc_condition_signal): Likewise.
13102         (__gthread_objc_thread_detach): Cast via INT_PTR to pointer.
13103         (__gthread_objc_thread_id): Likewise.
13104
13105 2009-08-25  Janus Weil  <janus@gcc.gnu.org>
13106
13107         PR middle-end/41149
13108         * tree-pretty-print.c (print_call_name): Print the correct call name
13109         for procedure pointer components.
13110
13111 2009-08-24  Steve Ellcey  <sje@cup.hp.com>
13112
13113         * config/ia64/ia64.c (ia64_promote_function_mode): Call
13114         default_promote_function_mode when not VMS.
13115
13116 2009-08-24  Olivier Hainque  <hainque@adacore.com>
13117
13118         * convert.c (convert_to_integer): Don't assume an input pointer is
13119         POINTER_SIZE wide.  Fetch from the type instead.
13120
13121 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13122
13123         * configure.ac (AC_PREREQ): Bump to 2.64.
13124
13125 2009-08-24  Rafael Avila de Espindola  <espindola@google.com>
13126
13127         * gcc.c (standard_exec_prefix_1,standard_exec_prefix_2): Remove.
13128         (process_command): Don't search standard_exec_prefix_1 and
13129         standard_exec_prefix_2.
13130
13131 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13132
13133         * config/arm/arm.c (output_return_instruction): Handle for
13134         unified syntax.
13135
13136 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13137
13138         * config/arm/arm.c (arm_select_cc_mode): Handle subreg.
13139
13140 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13141
13142         * config/arm/vfp.md (*arm_movdi_vfp): Mark as predicable.
13143         (*arm_movdf_vfp): Likewise.
13144
13145 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13146
13147         * config/arm/neon.md (vashl<mode>3): Rename from ashl<mode>3.
13148         (vashr<mode>3): Rename from ashr<mode>3.
13149         (vlshr<mode>3): Rename from lshr<mode>3.
13150
13151 2009-08-24  Kai Tietz  <kai.tietz@onevision.com>
13152
13153         PR/40786
13154         * c-format.c (format_wanted_type): Add new member scalar_identity_flag.
13155         (check_format_info_main): Use scalar_identify_flag.
13156         (check_format_types): Check for scalar size identity if
13157         scalar_identify_flag is set.
13158         (printf_length_specs): Extend by new field.
13159         (asm_fprintf_length_specs): Likewise.
13160         (gcc_diag_length_specs): Likewise.
13161         (scanf_length_specs): Likewise.
13162         (strfmon_length_specs): Likewise.
13163         (gcc_gfc_length_specs): Likewise.
13164         * config/i386/msformat-c.c (ms_printf_length_specs): Likewise.
13165         (ms_printf_flag_specs): Likewise.
13166         * c-format.h (format_length_info): Add new member scalar_identity_flag.
13167
13168 2009-08-23  Uros Bizjak  <ubizjak@gmail.com>
13169
13170         PR target/40718
13171         * config/i386/i386.c (*call_pop_1): Disable for sibling calls.
13172         (*call_value_pop_1): Ditto.
13173         (*sibcall_pop_1): New insn pattern.
13174         (*sibcall_value_pop_1): Ditto.
13175
13176 2009-08-23  Alan Modra  <amodra@bigpond.net.au>
13177
13178         PR target/41081
13179         * config/rs6000/rs6000.md (rotlsi3_64, ashlsi3_64, lshrsi3_64,
13180         ashrsi3_64): New.
13181
13182 2009-08-23  Alan Modra  <amodra@bigpond.net.au>
13183
13184         PR target/41081
13185         * fwprop.c (try_fwprop_subst): Allow multiple sets.
13186         (get_reg_use_in): New function.
13187         (forward_propagate_subreg): Propagate through subreg of zero_extend
13188         or sign_extend.
13189
13190 2009-08-22  Kaz Kojima  <kkojima@gcc.gnu.org>
13191
13192         * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS): Define.
13193         * config/sh/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -mieee.
13194
13195 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13196
13197         * configure.ac: Remove --with-datarootdir, --with-docdir,
13198         --with-htmldir switches.  No need to call AC_SUBST for
13199         datarootdir, docdir, htmldir any more.
13200         * configure: Regenerate.
13201         * doc/install.texi (Configuration): Document --datarootdir,
13202         --docdir, --htmldir, --pdfdir; update documentation for
13203         --infodir, --mandir.
13204         (Prerequisites): Bump Autoconf version to 2.64, Automake to 1.11,
13205         M4 to 1.4.6.
13206
13207         * aclocal.m4: Regenerate.
13208         * config.in: Regenerate.
13209         * configure: Regenerate.
13210
13211 2009-08-21  Douglas B Rupp  <rupp@gnat.com>
13212             Olivier Hainque  <hainque@adacore.com>
13213
13214         * config/ia64/ia64.c: Include libfuncs.h.
13215         (TARGET_PROMOTE_FUNCITON_MODE): Define target macro.
13216         (ia64_expand_call): Use reg 25 on VMS.
13217         (ia64_initialize_trampoline): Fix for VMS ABI.
13218         (ia64_function_arg_offset): Always returns 0 when TARGET_ABI_OPEN_VMS.
13219         (ia64_function_arg): Initialize reg 25 on VMS.
13220         Fix OpenVMS ABI issues for varargs.
13221         For OpenVMS, emit the Argument Information register set in the
13222         incoming/sibcall case as well.
13223         (ia64_arg_type): New function.
13224         (ia64_function_arg_advance): Keep track of cum->words.
13225         Fix OpenVMS ABI issues for varargs.
13226         (ia64_function_value): On VMS, promote mode of non-aggregate types.
13227         (ia64_override_options): Set flag_no_common on VMS.
13228         (ia64_init_builtins): Disable FWRITE builtin.
13229         (ia64_asm_output_external): Call DO_CRTL_NAMES.
13230         (ia64_vms_init_libfuncs): Add decc$ routines.
13231         (ia64_vms_valid_pointer_mode): New function.
13232         (ia64_struct_value_rtx): Allways NULL_RTX on VMS.
13233         (ia64_promote_function_mode): New function
13234         * config/ia64/ia64.h (TARGET_ABI_OPEN_VMS): Define as 0 for default.
13235         (LONG_DOUBLE_TYPE_SIZE): Force to 64 on VMS.
13236         (LIBCGC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
13237         (INIT_CUMULATIVE_ARGS): Add atypes for VMS.
13238         (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
13239         (ASM_OUTPUT_DEF): Use ISDIGIT instead of isdigit.
13240         Suppress trailing '#' if VALUE is numeric.
13241         * config/ia64/vms.h (PROMOTE_FUNCTION_MODE): Remove, code moved to
13242         ia64_promote_function_mode.
13243         (TARGET_VALID_POINTER_MODE): Define.
13244
13245 2009-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
13246
13247         PR target/40671
13248         * config/rs6000/rs6000.c (rs6000_override_options): Use
13249         TARGET_64BIT instead of TARGET_POWERPC64 to set the size of pointers.
13250
13251         PR target/41145
13252         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Fix
13253         reporting of vector + decimal/boolean/complex error.
13254
13255 2009-08-21  Jakub Jelinek  <jakub@redhat.com>
13256
13257         * config/rs6000/rs6000.c (rs6000_init_builtins): Fix type of
13258         __vector double TYPE_DECL.
13259
13260 2009-08-21  Richard Earnshaw  <rearnsha@arm.com>
13261
13262         * arm.h (MACHMODE): New define.  Include insn-modes.h if available.
13263         (CUMULATIVE_ARGS): Use MACHMODE for declaration of aapcs_vfp_mode.
13264         * arm.c (aapcs_vfp_is_call_or_return_candidate): Change base_mode
13265         to pointer to enum machine_mode.  Update all callers as needed.
13266
13267 2009-08-21  Uros Bizjak  <ubizjak@gmail.com>
13268
13269         * config/alpha/alpha.md (exception_receiver): Emit alternative
13270         GP load sequence if flag_reorder_blocks_and_partition is set.
13271         (*exception_receiver_2): Also enable when
13272         flag_reorder_blocks_and_partition is set.
13273
13274 2009-08-20  Matt Rice  <ratmice@gmail.com>
13275             Diego Novillo  <dnovillo@google.com>
13276
13277         * Makefile.in (PLUGIN_HEADERS): Include incpath.h and
13278         tree-ssa-sccvn.h.
13279
13280 2009-08-20  Richard Guenther  <rguenther@suse.de>
13281
13282         * c-objc-common.h (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Do not define.
13283         * c-tree.h (c_dup_lang_specific_decl): Remove.
13284         (struct lang_decl, struct lang_type): Move definitions ...
13285         * c-lang.h: ... here.  New file.
13286         * c-decl.c: Include c-lang.h.
13287         (c_dup_lang_specific_decl): Remove.
13288         * c-typeck.c: Include c-lang.h.
13289         * Makefile.in (c-decl.o): Add c-lang.h dependency.
13290         (c-typeck.o): Likewise.
13291         * c-config-lang.in (gtfiles): Add c-lang.h.
13292         * gengtype.c (get_output_file_with_visibility): Handle c-lang.h
13293         like c-tree.h.
13294
13295 2009-08-20  Uros Bizjak  <ubizjak@gmail.com>
13296
13297         * config/alpha/alpha.c (alpha_end_function): Do not clear
13298         crtl->emit structure and free insn locators if cfun->is_thunk is true,
13299         this is now handled in generic code.
13300
13301 2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>
13302
13303         * config/s390/s390.c (Z10_PREDICT_DISTANCE): New macro.
13304         (s390_z10_fix_long_loop_prediction): New function.
13305         (s390_z10_optimize_cmp): INSN walk moved to callee - s390_reorg.
13306         (s390_reorg): Walk over the INSNs and invoke
13307         s390_z10_fix_long_loop_prediction and s390_z10_optimize_cmp.
13308
13309 2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>
13310
13311         * config/s390/s390.md ("*brx_stage1_<GPR:mode>", "*brxg_64bit",
13312         "*brx_64bit", "*brx_31bit"): New patterns.
13313         * config/s390/s390.c ('E'): New output modifier.
13314
13315 2009-08-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13316             Richard Earnshaw  <richard.earnshaw@arm.com>
13317
13318         * config/arm/arm.c (arm_emit_movpair): Handle CONST_INT.
13319         * config/arm/arm.md (*arm_movtas_ze): New pattern for movt.
13320
13321 2009-08-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13322
13323         * pa.md (reload_inhi, reload_outhi, reload_inqi, reload_outqi): New
13324         patterns.
13325         * pa.c (emit_move_sequence): Check if address of operand1 is valid
13326         for mode mode of operand0 when doing secondary reload for SAR.
13327
13328 2009-08-19  Jakub Jelinek  <jakub@redhat.com>
13329
13330         PR middle-end/41123
13331         * expr.c (expand_expr_real_1) <normal_inner_ref>: Handle all kinds
13332         of CONCAT, not just bitpos 0 bitsize size of the whole CONCAT.
13333
13334 2009-08-19  Jason Merrill  <jason@redhat.com>
13335
13336         * doc/invoke.texi (C++ Dialect Options): Note change of minimum
13337         supported template depth in C++0x.
13338
13339 2009-08-19  Jakub Jelinek  <jakub@redhat.com>
13340
13341         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call
13342         free_after_compilation.
13343         * config/score/score7.c (score7_output_mi_thunk): Likewise.
13344         * config/score/score3.c (score3_output_mi_thunk): Likewise.
13345         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
13346         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
13347         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
13348         * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
13349         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
13350
13351 2009-08-19  Ian Lance Taylor  <iant@google.com>
13352
13353         * doc/md.texi (Insn Canonicalizations): Correct canonicalization
13354         of (plus (mult (neg B) C) A).
13355
13356 2009-08-18  Michael Matz  <matz@suse.de>
13357
13358         * omp-low.c (optimize_omp_library_calls): Use types_compatible_p
13359         instead of comparing TYPE_MAIN_VARIANT for equality.
13360         * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
13361         vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto.
13362         * tree-vect-loop.c (vect_is_simple_reduction): Ditto.
13363         * gimplify.c (goa_lhs_expr_p): Ditto and use
13364         STRIP_USELESS_TYPE_CONVERSION.
13365
13366 2009-08-18  Michael Matz  <matz@suse.de>
13367
13368         * tree-ssa-structalias.c (create_variable_info_for): Also mark
13369         first field in a struct.
13370         (intra_create_variable_infos): Don't deal with flag_argument_noalias.
13371
13372 2009-08-18  Uros Bizjak  <ubizjak@gmail.com>
13373
13374         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
13375         locators before emit_insn is called.  Remove assert that
13376         cfun->is_thunk.
13377         (alpha_end_function): Clear crtl->emit structure and free insn
13378         locators if cfun->is_thunk is true.
13379
13380 2009-08-18  Jason Merrill  <jason@redhat.com>
13381
13382         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
13383         type if available.
13384         * configure.ac: Test for it.
13385         * configure, config.in: Regenerate.
13386         * doc/install.texi: Document --enable-gnu-unique-object.
13387
13388 2009-08-18  Richard Guenther  <rguenther@suse.de>
13389
13390         PR middle-end/41094
13391         * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
13392         pow(x,y*z) only if x is nonnegative.
13393
13394 2009-08-18  Jakub Jelinek  <jakub@redhat.com>
13395
13396         * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
13397         on jumps.
13398
13399         PR target/40971
13400         * config/rs6000/rs6000.c (rs6000_legitimize_address): For
13401         [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.
13402
13403 2009-08-17  DJ Delorie  <dj@redhat.com>
13404
13405         * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
13406         * config/m32c/prologue.md (epilogue_freit): New.
13407         (fset_b): New.
13408         * config/m32c/m32c.c (m32c_function_needs_enter): Add prototype.
13409         (bank_switch_p): Likewise.
13410         (fast_interrupt_p): Likewise.
13411         (interrupt_p): Likewise.
13412         (m32c_conditional_register_usage): Round memregs size up.
13413         (need_to_save): We only need to save $a0 when we use ENTER.
13414         (interrupt_p): Check for fast_interrupt too.
13415         (bank_switch_p): New.
13416         (fast_interrupt_p): New.
13417         (m32c_attribute_table): Add bank_switch and fast_interrupt.
13418         (m32c_emit_prolog): Support bank switching and fast interrupts.
13419         * doc/extend.texi (Function Attributes): Add bank_switch and
13420         fast_interrupt.
13421
13422 2009-08-17  Douglas B Rupp  <rupp@gnat.com>
13423
13424         * config/alpha/alpha.c (vms_valid_pointer_mode): New function.
13425         * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.
13426
13427 2009-08-16  Douglas B Rupp  <rupp@gnat.com>
13428
13429         * doc/invoke.texi (Target options): Add new option list for IA-64/VMS.
13430         (menu): Add IA-64/VMS Options.
13431         (IA-64/VMS Options): Likewise.
13432
13433 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
13434
13435         PR target/38599
13436         * config/mips/mips.md (*lwxs): Use :P for pointer values.
13437
13438 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
13439
13440         * config/mips/mips-protos.h (mips_push_asm_switch): New function.
13441         (mips_pop_asm_switch): Likewise.
13442         * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
13443         with...
13444         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
13445         (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
13446         (mips_push_asm_switch, mips_pop_asm_switch): Likewise.
13447         (mips_print_operand_punctuation): Use them.  Check mips_noreorder
13448         instead of set_noreorder.
13449         (mips_output_function_prologue): Use the new functions.
13450         (mips_output_function_epilogue): Likewise.
13451         (mips_need_noat_wrapper_p): New function, split out from...
13452         (mips_final_prescan_insn, mips_final_postscan_insn): ...here.
13453         Use mips_push_asm_switch and mips_pop_asm_switch.
13454         * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
13455         and mips_pop_asm_switch.
13456         (ASM_OUTPUT_REG_POP): Likewise.
13457         (DBR_OUTPUT_SEQEND): Remove boilerplate comment.
13458         Use mips_pop_asm_switch.
13459         (mips_asm_switch): New structure.
13460         (set_noreorder, set_nomacro): Replace with...
13461         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
13462         * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
13463         instead of set_nomacro.
13464         (fix_truncsfsi2_macro): Likewise.
13465         (cprestore): Likewise.
13466         (hazard): Use mips_noreorder instead of set_noreorder.
13467         * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
13468
13469 2009-08-16  Uros Bizjak  <ubizjak@gmail.com>
13470
13471         * config/alpha/alpha.c (alpha_end_function): Handle NULL_RTX returned
13472         from prev_active_insn.
13473
13474 2009-08-16  Anatoly Sokolov  <aesok@post.ru>
13475
13476         * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
13477         * config/avr/avr.c (avr_override_options): Initialize
13478         avr_current_arch variable.
13479         (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
13480         __AVR_HAVE_16BIT_SP__ according to the device type.
13481         (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
13482         TARGET_TINY_STACK.
13483         (expand_epilogue): Use correct QI mode frame pointer for tiny stack.
13484         Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.
13485
13486 2009-08-16  Dodji Seketeli  <dodji@redhat.com>
13487
13488         PR debug/37801
13489         * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on
13490         generating inlined subroutine die only. We shouldn't be
13491         called for anything else.
13492         (gen_block_die): Don't generate inline subroutine debug info for
13493         abstract blocks.
13494
13495 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
13496
13497         * graphite-poly.c (print_pbb): Print PBB index.
13498
13499 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
13500
13501         PR middle-end/40981
13502         * graphite-interchange.c (ppl_max_for_le): Moved...
13503         * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
13504         * graphite-ppl.c (ppl_max_for_le): ... here.  Correct the use of
13505         ppl_Pointset_Powerset_C_Polyhedron_maximize.
13506         * graphite-ppl.h (ppl_max_for_le): Declared.
13507
13508 2009-08-14  Olatunji Ruwase <tjruwase@google.com>
13509
13510         * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
13511         supported on all platforms.
13512         * target.h (struct gcc_target): Remove handle_pragma_redefine_extname.
13513         * c-cppbuiltin.c: Remove use of targetm.handle_pragma_redefine_extname.
13514         * c-pragma.c: Likewise.
13515         * target-def.h (TARGET_INITIALIZER): Remove
13516         TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
13517         * config/sol2.h: Remove use of TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
13518
13519 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
13520
13521         * config/ia64/fde-vms.c: New file.
13522         * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg.
13523         * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h
13524         (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default.
13525         (uw_frame_state_for): Only register a personality routine if it is
13526         known to be compatible with our expectations.
13527         (_Unwind_FindEnclosingFunction, uw_frame_state_for):
13528         Declare unw_table_entry stack variable and
13529         mod all calls to _Unwind_FindTableEntry to add arg.
13530         * config/ia64/unwind-ia64.h (UNW_ accessors): Move here.
13531         (_Unwind_FindTableEntry): Add arg to prototype.
13532
13533 2009-08-14  Eric Botcazou  <ebotcazou@adacore.com>
13534
13535         * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new
13536         field 'signal_pfs_loc'.
13537         (uw_frame_state_for): Remove duplicate code dealing with leaf
13538         procedures without unwind info.
13539         If in the frame after unwinding through a signal handler, restore
13540         the AR.PFS register instead of the CFM if AR.PFS has not been saved.
13541         * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set
13542         'pfs_loc' to the AR.PFS location in the signal context; instead
13543         set 'signal_pfs_loc'.
13544         Manually generate the unwind info for the AR.PFS register.
13545         (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT,
13546         ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define.
13547         (ia64_handle_unwabi): Test 'fs->unwabi' against them.
13548         Do not set 'pfs_loc' to the AR.PFS location in the signal context;
13549         instead set 'signal_pfs_loc'.
13550         Remove code preventing the AR.PFS register from being restored
13551         from the signal context.
13552
13553 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
13554             Tristan Gingold  <gingold@adacore.com>
13555
13556         * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
13557         * config/ia64/t-vms: New file.
13558         * config/ia64/vms64.h: New file.
13559         * config/ia64/vms.h: New file.
13560         * config/ia64/vms-crtinit.asm: New file.
13561         * config/ia64/vms_symvec_libgcc_s.opt: New file.
13562         * config/ia64/vms-unwind.h: New file.
13563
13564 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
13565
13566         * config/alpha/alpha.c (alpha_emit_conditional_move): Handle
13567         TFmode compares.
13568
13569 2009-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13570
13571         PR middle-end/30789
13572         * builtins.c (do_mpc_arg2): Make extern, define for any MPC version.
13573         Move declaration...
13574         * real.h (do_mpc_arg2): ... here.
13575         * fold-const.c (const_binop): Use MPC for complex MULT_EXPR
13576         and RDIV_EXPR.
13577
13578 2009-08-14  Rafael Avila de Espindola  <espindola@google.com>
13579
13580         * final.c (add_debug_prefix_map): Don't use GC memory for
13581         old_prefix and new_prefix.
13582
13583 2009-08-14  Richard Guenther  <rguenther@suse.de>
13584
13585         * ipa-prop.c (compute_complex_pass_through): If we cannot
13586         compute a non-varying offset for IPA_JF_ANCESTOR punt.
13587
13588 2009-08-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13589
13590         * c-lex.c (c_lex_with_flags): Increase size of local variable
13591         to avoid memory clobber.
13592
13593 2009-08-14  Paolo Bonzini  <bonzini@gnu.org>
13594
13595         PR target/40934
13596         * config/i386/i386.c (ix86_fp_comparison_strategy):
13597         Only enable/disable sahf at function granularity.
13598
13599 2009-08-14  Hans-Peter Nilsson  <hp@axis.com>
13600
13601         PR rtl-optimization/41064
13602         * reload1.c (reload_as_needed): Don't call extract_insn
13603         for known invalid replacements after calling
13604         validate_replace_rtx_group and verify_changes.
13605
13606 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
13607
13608         PR target/41019
13609         * config/i386/sse.md (SSEMODE124C8): New mode iterator.
13610         (vcond<SSEMODEF2P:mode>): Assert that operation is supported by
13611         ix86_expand_fp_vcond.
13612         (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
13613         Assert that operation is supported by ix86_expand_int_vcond.
13614         (vcondu<SSEMODE124C8:mode>): Ditto.
13615
13616 2009-08-13  DJ Delorie  <dj@redhat.com>
13617
13618         * config/i386/djgpp-stdint.h: New.
13619         * config.gcc (djgpp): Use it.
13620
13621 2009-08-13  Kaz Kojima  <kkojima@gcc.gnu.org>
13622
13623         * config/sh/sh.c (sh_override_options): When flag_exceptions or
13624         flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off.
13625
13626 2009-08-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
13627
13628         * tree-ssa-loop-prefetch.c
13629         (prune_ref_by_group_reuse): Enhance probabilistic analysis
13630         for long-stride pruning.
13631         (compute_miss_rate): New function to compute the probability
13632         that two memory references access different cache lines.
13633
13634 2009-08-13  Dave Korn  <dave.korn.cygwin@gmail.com>
13635
13636         * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.
13637
13638 2009-08-13  Richard Guenther  <rguenther@suse.de>
13639
13640         PR middle-end/41047
13641         * tree-ssa-ccp.c (ccp_fold): When folding pointer additions
13642         use the constant pointer type.
13643         * gimplify.c (canonicalize_addr_expr): Canonicalize independent
13644         of CV qualifiers on the target pointer type.
13645         * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
13646         conversion check before restrict check.
13647
13648 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
13649
13650         PR target/41029
13651         * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
13652
13653 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
13654
13655         * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
13656
13657 2009-08-12  Richard Guenther  <rguenther@suse.de>
13658
13659         PR tree-optimization/41011
13660         * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
13661         and reference constructing.
13662
13663 2009-08-12  Xinliang David Li  <davidxl@google.com>
13664
13665         PR tree-optimization/41012
13666         * tree-flow.h : New external interface.
13667         * gimple-low.c (check_call_arg): Change to public function.
13668         Remove argument mismatch check in lowering.
13669         * tree-inline.h (tree_can_inline_p): Interface change.
13670         * tree-inline.c (tree_can_inline_p): Fold argument mismatch check
13671         into this function.
13672         * ipa-inline.c (cgraph_decide_inlining_of_small_functions):
13673         Call change to tree_can_inline_p function.
13674         (cgraph_decide_inlining_incrementally): Ditto.
13675
13676 2009-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
13677
13678         PR tree-optimization/41031
13679         * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
13680         on the partition variable rather than promote_mode on the source
13681         type.  Assert that the partition variable's type has the same
13682         mode as the source value's.
13683
13684 2009-08-12  Paolo Bonzini  <bonzini@gnu.org>
13685
13686         * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
13687         for for_return == 2.
13688         * function.c (assign_parm_setup_reg): Use for_return == 2, improve
13689         comments.
13690         * calls.c (expand_call): Fix typo.
13691         * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
13692         and PARM_DECL.
13693         * stmt.c (expand_value_return): Use promote_function_mode to copy out
13694         of pseudo.
13695         * targhooks.c (default_promote_function_mode): Handle for_return == 2.
13696         * config/cris/cris.c (cris_promote_function_mode): Likewise.
13697         * config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
13698         * config/pa/pa.c (pa_promote_function_mode): Likewise.
13699
13700 2009-08-12  Andrew Haley  <aph@redhat.com>
13701
13702         * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
13703
13704 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
13705
13706         PR bootstrap/40103
13707         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
13708
13709 2009-08-12  Richard Guenther  <rguenther@suse.de>
13710
13711         * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
13712         * gimplify.c (gimplify_modify_expr): Do not use
13713         lang_hooks.types_compatible_p.
13714         * tree-ssa.c (useless_type_conversion_p): For aggregates
13715         just return false if the canonical types differ.
13716
13717 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
13718
13719         PR middle-end/40980
13720         * sese.c (convert_for_phi_arg): New.
13721         (add_guard_exit_phis): Use convert_for_phi_arg.
13722
13723 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
13724
13725         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
13726         unknown subscript upper bounds.
13727
13728 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
13729             Pranav Garg  <pranav.garg2107@gmail.com>
13730
13731         * graphite-interchange.c (gather_access_strides): Removed.
13732         (ppl_max_for_le): New.
13733         (build_linearized_memory_access): New.
13734         (memory_stride_in_loop): New.
13735         (pbb_interchange_profitable_p): Reimplemented.
13736         * graphite-ppl.h (ppl_new_id_map): New.
13737         (ppl_interchange): New.
13738
13739 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
13740
13741         * graphite-interchange.c (compute_subscript): Removed.
13742         (compute_array_size_cstr): Removed.
13743         (compute_array_size_poly): Removed.
13744         (compute_array_size): Removed.
13745         (gather_access_strides_poly): Removed.
13746         (gather_access_strides): Empty.
13747
13748 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
13749
13750         * graphite-dependences.c (dependence_polyhedron_1): Replace
13751         pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
13752         (graphite_legal_transform_dr): Same.
13753         (graphite_carried_dependence_level_k): Same.
13754         * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
13755         Initialize PDR_NB_SUBSCRIPTS.
13756         (print_pdr_access_layout): Replace pdr_nb_subscripts with
13757         PDR_NB_SUBSCRIPTS.
13758         * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
13759         (PDR_NB_SUBSCRIPTS): New.
13760         (pdr_nb_subscripts): Removed.
13761         (pdr_dim): Simplified.
13762         * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
13763         with PDR_NB_SUBSCRIPTS.
13764
13765 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
13766
13767         * graphite-interchange.c (compute_array_size): Remove use of
13768         PDR_DATA_CONTAINER.
13769         * graphite-poly.c (new_poly_dr): Remove argument data_container.
13770         Do not initialize PDR_DATA_CONTAINER.
13771         (print_pdr): Do not print PDR_DATA_CONTAINER.
13772         * graphite-poly.h (struct poly_dr): Remove data_container field.
13773         (PDR_DATA_CONTAINER): Removed.
13774         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
13775         PDR_DATA_CONTAINER.
13776         (build_poly_dr): Same.
13777
13778 2009-08-12  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
13779             Sebastian Pop  <sebastian.pop@amd.com>
13780
13781         * graphite-dependences.c (graphite_legal_transform_dr): Work on a
13782         copy of the dependence polyhedron.  Free the temporary objects.
13783         (graphite_carried_dependence_level_k): Free unused objects before
13784         returning.
13785
13786 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
13787
13788         * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
13789         Early return without analyzing the data dependences if no
13790         transform has been done.  Call restore_scattering if the transform
13791         is not legal.
13792         (graphite-interchange.c): Same.
13793         * graphite-poly.c (print_scattering_function): Test for
13794         PBB_TRANSFORMED.
13795         (graphite_read_transforms): Initialize PBB_TRANSFORMED.
13796         (apply_poly_transforms): Do not gcc_assert that
13797         the transform is legal.
13798         (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL.
13799         Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
13800         PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
13801         (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
13802         * graphite-poly.h (struct poly_scattering): New.
13803         (struct poly_bb): Add original, transformed, and saved fields.
13804         Remove transformed_scattering, original_scattering,
13805         nb_local_variables and nb_scattering_transform fields.
13806         (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
13807         (poly_scattering_new): New.
13808         (poly_scattering_free): New.
13809         (poly_scattering_copy): New.
13810         (store_scattering_pbb): New.
13811         (store_scattering): New.
13812         (restore_scattering_pbb): New.
13813         (restore_scattering): New.
13814         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
13815         Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
13816
13817 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
13818
13819         * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
13820         (print_scop): Same.
13821
13822 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
13823
13824         * Makefile.in (graphite.o): Depends on PREDICT_H.
13825         * graphite.c: Include predict.h.
13826         (graphite_finalize): Call tree_estimate_probability.
13827         * predict.c (predict_loops): Do not call scev_initialize and
13828         scev_finalize.
13829         (tree_estimate_probability_bb): New.
13830         (tree_estimate_probability): Do not initialize loops: move that
13831         code to the driver.  Call tree_estimate_probability_bb.
13832         (tree_estimate_probability_driver): New.
13833         (pass_profile): Use tree_estimate_probability_driver.
13834         * predict.h (tree_estimate_probability): Declared.
13835
13836 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
13837
13838         * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
13839         * graphite-dependences.c (graphite_legal_transform): Add time to
13840         TV_GRAPHITE_DATA_DEPS.
13841         (dependency_between_pbbs_p): Same.
13842         * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
13843
13844 2009-08-12  Andrey Belevantsev  <abel@ispras.ru>
13845
13846         PR rtl-optimization/41033
13847         * alias.c (nonoverlapping_component_refs_p): Punt when strict
13848         aliasing is disabled.
13849
13850 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
13851
13852         * config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
13853         si_mask_operand, and_load_operand, low_bitmask_operand,
13854         and_reg_operand, and_operand): New predicates.
13855         * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
13856         * config/mips/mips.c (and_operands_ok): New function.
13857         * config/mips/mips-protos.h (and_operands_ok): Declare it.
13858         * config/mips/mips.md (move_type): Add ext_ins and logical.
13859         (type): Handle them.
13860         (and<mode>3): Use and_reg_operand as the second operand's predicate.
13861         (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
13862         shift_shift.  Remove commutative constraint modifier.
13863         (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
13864         shift_shift.
13865         (*clear_upper32_dext): Remove define_insn_and_split.
13866         (*clear_upper32): Turn this define_insn_and_split ...
13867         (splitter for ANDing register with 0xffff_ffff): .. into this.
13868
13869 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
13870
13871         * combine.c (try_widen_shift_mode): Factor out code to check if an
13872         integer constant is a low-order bitmask from here ...
13873         * rtlanal.c (low_bitmask_len): ... to here.
13874         * rtl.h (low_bitmask_len): Declare.
13875
13876 2009-08-11  Uros Bizjak  <ubizjak@gmail.com>
13877
13878         PR target/8603
13879         * config/alpha/alpha.md (addsi3): Remove expander.
13880         (addsi3): Rename from *addsi3_internal insn pattern.
13881         (subsi3): Remove expander.
13882         (subsi3): Rename from *subsi3_internal insn pattern.
13883
13884 2009-08-11  Douglas B Rupp  <rupp@gnat.com>
13885
13886         * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
13887         FWRITE_UNLOCKED.
13888
13889 2009-08-11  Vasiliy Fofanov  <fofanov@adacore.com>
13890             Eric Botcazou  <botcazou@adacore.com>
13891             Douglas B Rupp  <rupp@gnat.com>
13892
13893         * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
13894         that records that fit in 64 bits are returned by immediate value,
13895         as required by OpenVMS Calling Standard.
13896         (function_value): Adjust for above modification.
13897         (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
13898         virtual_incoming_args_rtx as base object, not next_arg.
13899         * config/alpha/vms.h (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
13900
13901 2009-08-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13902
13903         * reload.c (find_reloads_subreg_address): Check the original
13904         req_equiv_mem address to detect the case where an address is
13905         not valid in the outer mode.
13906
13907 2009-08-11  Richard Guenther  <rguenther@suse.de>
13908
13909         PR bootstrap/40788
13910         * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION.
13911
13912 2009-08-10  Douglas B Rupp  <rupp@gnat.com>
13913
13914         * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
13915         (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
13916
13917 2009-08-10  Olivier Hainque  <hainqueu@adacore.com>
13918             Douglas B Rupp  <rupp@gnat.com>
13919
13920         * config/alpha/alpha.c (alpha_sa_size): Force procedure type to
13921         PT_STACK when frame_pointer_needed on OpenVMS.
13922         (alpha_pv_save_size, alpha_using_fp): Remove.
13923         (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE
13924         with proper processing for PT_NULL.
13925         (alpha_vms_initial_elimination_offset): New function. Support for
13926         INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL.
13927         (alpha_sa_size): Force procedure type to PT_STACK when
13928         frame_pointer_needed on OpenVMS.
13929         * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype.
13930         (alpha_using_fp): Likewise.
13931         (alpha_vms_can_eliminate): Add prototype.
13932         (alpha_vms_initial_elimination_offset): Likewise.
13933         * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
13934         Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset.
13935
13936 2009-08-10  Eric Botcazou  <botcazou@adacore.com>
13937             Douglas B Rupp  <rupp@gnat.com>
13938
13939         * config/alpha/alpha.c (common_object_handler): New function.
13940         (vms_attribute_table): Declare a single attribute "common_object".
13941         (vms_output_aligned_decl_common): New global function.
13942         (SECTION_VMS_OVERLAY): Delete.
13943         (SECTION_VMS_GLOBAL): Likewise.
13944         (SECTION_VMS_INITIALIZE): Likewise.
13945         (vms_asm_named_section): Remove support for above flags.
13946         (vms_section_type_flags): Delete.
13947         (TARGET_SECTION_TYPE_FLAGS): Likewise.
13948         * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New.
13949         * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
13950         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro.
13951
13952 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
13953
13954         PR target/41015
13955         * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
13956         (sub_ddmmss): Likewise.
13957
13958 2009-08-10  Andreas Tobler  <a.tobler@schweiz.org>
13959
13960         PR bootstrap/41018
13961         * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright
13962         year.
13963
13964 2009-08-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13965
13966         PR target/37053
13967         * reload1.c (reload_as_needed): Use cancel_changes to completely
13968         undo a failed replacement attempt.
13969
13970 2009-08-10  Richard Guenther  <rguenther@suse.de>
13971
13972         PR middle-end/41006
13973         * tree-ssa.c (useless_type_conversion_p_1): Fold into ...
13974         (useless_type_conversion_p): ... here.  Require pointer targets
13975         to be compatible.
13976
13977 2009-08-10  Dodji Seketeli  <dodji@redhat.com>
13978
13979         PR c++/40866
13980         * tree-inline.c (copy_statement_list): The resulting copy shouldn't
13981         loose the original type of the statement list.
13982
13983 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
13984
13985         * config/alpha/alpha.c: Include libfuncs.h
13986         (avms_asm_output_extern): New function.
13987         (alpha_init_libfuncs): Init some decc libfuncs.
13988         * config/alpha/alpha-protos.h (avms_asm_output_external): Declare.
13989         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define.
13990         (DO_CRTL_NAMES): Define.
13991         (LIB_SPEC): Remove.
13992         * config/alpha/vms64.h (POINTERS_EXTEND_UNSIGNED): Remove undef.
13993         (LONG_TYPE_SIZE): Define.
13994         (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1
13995         (SUBTARGET_SWITCHES): Define malloc64 switch.
13996         (TARGET_DEFAULT): Default MASK_MALLOC64 set.
13997         (MASK_RETURN_ADDR): Define.
13998         doc/invoke.texi (mmalloc64): Document switch.
13999
14000 2009-08-09  Olivier Hainque  <hainque@adacore.com>
14001             Douglas B Rupp  <rupp@gnat.com>
14002
14003         * config/alpha/alpha.c (struct machine_function): New flag for VMS,
14004         uses_condition_handler.
14005         (alpha_expand_builtin_establish_vms_condition_handler): New expander.
14006         (alpha_expand_builtin_revert_vms_condition_handler): New expander.
14007         (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER
14008         and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values.
14009         (code_for_builtin): New insn codes for the new alpha_builtins.
14010         (alpha_init_builtins): Register the new functions as BUILT_IN_MD.
14011         (alpha_sa_size): Account for uses_condition_handler.
14012         (alpha_expand_prologue): Likewise.
14013         (alpha_start_function): Likewise.
14014         (alpha_expand_epilogue): Likewise.
14015         * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin
14016         establish/revert expanders.
14017         * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define.
14018         * config/alpha/alpha.md (builtin_establish_vms_condition_handler):
14019         New expander, resorting to the alpha.c associated function.
14020         (builtin_revert_vms_condition_handler): Likewise.
14021         * config/alpha/vms-gcc_shell_handler.c: New file. Implements
14022         __gcc_shell_handler, the static VMS condition handler used as
14023         an indirection wrapper to the current dynamically established
14024         handler.
14025         * config/alpha/vms-unwind.h: Complete rewrite.
14026         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c
14027         * config/alpha/vms.h (MD_UNWIND_SUPPORT):
14028
14029 2009-08-09  Eric Botcazou  <botcazou@adacore.com>
14030             Douglas B Rupp  <rupp@gnat.com>
14031
14032         * config/alpha/alpha.c (alpha_links): Add 'target' field.
14033         (alpha_need_linkage): Handle aliases.  Return function symbol.
14034         (alpha_use_linkage): Rename 'linkage' argument to 'func'.
14035         Use ultimate alias target for the linkage name.
14036         * config/alpha/alpha.md (movmemdi): Use the symbol returned
14037         by alpha_need_linkage for the function symbol.
14038         (setmemdi): Likewise.
14039
14040 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
14041
14042         * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS.
14043         * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define.
14044         (ASM_WEAKEN_LABEL): Define.
14045         (CRT_CALL_STATIC_FUNCTION): Define.
14046         (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o.
14047         (ENDFILE_SPEC): Define.
14048         (INIT_SECTION_ASM_OP): Define.
14049         * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove.
14050         * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o
14051         crtend.o crtendS.o.
14052         (MULTILIB_OSDIRNAMES): Define.
14053         (shlib_version): Define.
14054         (SHLIB_EXT): Define.
14055         (SHLIB_OBJS): Define.
14056         (SHLIB_NAME): Define.
14057         (SHLIB_MULTILIB): Define.
14058         (SHLIB_INSTALL): Define.
14059         (SHLIB_SYMVEC): Define.
14060         (SHLIB_SYMVECX2): Define.
14061         (SHLIB_LINK): Define.
14062
14063 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
14064
14065         * config/alpha/alpha.c (alpha_initialize_trampoline):
14066         Initialize VMS trampoline IAW ABI for bounded procedure calls.
14067         (alpha_start_function): Emit transfer address on nested functions
14068         for VMS trampoline call.
14069         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm
14070         since no longer used.
14071         * config/alpha/vms-tramp.asm: Remove.
14072         * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined
14073         since now only data initialized at runtime.
14074
14075 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
14076
14077         * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define.
14078         (LINK_GCC_C_SEQUENCE_SPEC): Define.
14079         (MD_EXEC_PREFIX): Remove, no longer used.
14080         (MD_STARTFILE_PREFIX): Likewise.
14081         (INCLUDE_DEFAULTS): Likewise.
14082         * config/alpha/t-vms:
14083         (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile.
14084
14085 2009-08-09  Richard Guenther  <rguenther@suse.de>
14086
14087         PR tree-optimization/41016
14088         * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug.
14089         (operand_precision): Remove.
14090         (integral_operand_p): Likewise.
14091         (recognize_single_bit_test): Adjust.
14092
14093 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
14094
14095         * c-common.c (c_fully_fold_internal): Issue a warning if a binary
14096         operation overflows.  Likewise non-cast unary arithmetic.
14097         If one arm of a conditional expression is always taken,
14098         inhibit evaluation warnings for the other arm.  Likewise inhibit
14099         evaluation warnings for the second && or || operand if the first
14100         operand is enough to determine the result.
14101         * c-typeck.c (build_conditional_expr): Apply the same inhibition
14102         rules here.
14103         (build_binary_op): Prevent duplicate evaluation warnings.
14104
14105 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
14106
14107         * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source
14108         and destination have different modes, Use promote_mode to
14109         determine the signedness of the conversion.  Assert that the
14110         promoted source mode matches the destination mode.  Don't pass
14111         the destination and destination mode to expand_expr if the source
14112         mode is different.  Simplify conversion logic.
14113
14114 2009-08-09  Ira Rosen  <irar@il.ibm.com>
14115
14116         PR tree-optimization/41008
14117         * tree-vect-loop.c (vect_is_simple_reduction): Get operands
14118         from condition only in case it's a comparison. Adjust checks.
14119
14120 2009-08-09  Bernd Schmidt  <bernd.schmidt@analog.com>
14121
14122         * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function.
14123         * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it.
14124         * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer.
14125         (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE.
14126         (dump_cand): Handle them.
14127         (struct iv_cand): New members COST_STEP and AINC_USE.
14128         (stmt_after_increment): Likewise.
14129         (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos.  All
14130         callers changed.  Use gimple_uid comparison instead of scanning.
14131         (add_candidate_1): When looking for identical candidates, take
14132         AINC_USE into account.  Set it for new candidates.
14133         (force_expr_to_var_cost): Cast target_spill_cost to int.
14134         (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC.
14135         All callers changed.  Check for availability of autoinc addressing
14136         modes, both in general for a given mode, and in the specific use case.
14137         (get_computation_cost_at): New argument CAN_AUTOINC.  All callers
14138         changed.
14139         (get_computation_cost): Likewise.
14140         (autoinc_possible_for_pair, set_autoinc_for_original_candidates,
14141         add_autoinc_candidates): New static functions.
14142         (add_candidate): Call add_autoinc_candidates for candidates based on
14143         a USE_ADDRESS use.
14144         (find_iv_candidates): Call set_autoinc_for_original_candidates.
14145         (determine_use_iv_cost_address): If we have an autoinc candidate at
14146         the matching use, verify autoinc is possible and subtract the cost
14147         of the candidate's step from the cost.
14148         (determine_iv_cost): Record the cost of the increment in the COST_STEP
14149         member of the candidate.
14150         (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and
14151         determine_use_iv_costs.  Call renumber_gimple_stmt_uids_in_blocks.
14152
14153 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
14154
14155         * config.build (ia64-hp-*vms*): New target.
14156         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
14157         with ia64-hp-*vms*.
14158         * config.gcc (ia64-hp-*vms*): New target.
14159         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
14160         with ia64-hp-*vms*.
14161         * config.host (ia64-hp-*vms*): New target.
14162         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
14163         with ia64-hp-*vms*.
14164
14165 2009-08-08  Richard Guenther  <rguenther@suse.de>
14166
14167         PR tree-optimization/40991
14168         * tree-ssa-pre.c (eliminate): Delay purging EH edges.
14169
14170 2009-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
14171
14172         * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
14173         mode check.  Do truncations in an integer mode.
14174         (force_to_mode): Handle subregs for all mode types.  Only do
14175         arithmetic simplifications on integer modes.
14176
14177 2009-08-07  Richard Guenther  <rguenther@suse.de>
14178
14179         PR tree-optimization/40999
14180         * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
14181         (maybe_fold_reference): Lookup constant initializers.
14182         (fold_gimple_assign): Likewise.
14183
14184 2009-08-07  Richard Guenther  <rguenther@suse.de>
14185
14186         * tree-ssa.c (useless_type_conversion_p_1): Only for types
14187         that require structural equality defer to the langhook.
14188
14189 2009-08-07  Martin Jambor  <mjambor@suse.cz>
14190
14191         * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
14192         comments.
14193         (struct ipa_pass_through_data): New type.
14194         (struct ipa_ancestor_jf_data): New type.
14195         (union jump_func_value): Removed field formal_id, added fields
14196         pass_through and ancestor.
14197         (struct ipa_param_call_note): Changed type of formal_id to int from
14198         unsigned.
14199         * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
14200         operations jump functions and ancestor jump functions.
14201         (compute_complex_pass_through): New function.
14202         (compute_scalar_jump_functions): Call compute_complex_pass_through,
14203         reflect changes in the jump function strucutre.
14204         (update_jump_functions_after_inlining): Ignore complex pass-through
14205         and ancestor jump functions.
14206         * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
14207         polynomial pass-through with operation jump functions.
14208
14209 2009-08-07  Jakub Jelinek  <jakub@redhat.com>
14210
14211         * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
14212         fde->dw_fde_begin as begin label instead of hot/cold label.
14213         Use LLSDAC label instead of LLSDA for second section lsda.
14214         (dwarf2out_do_cfi_startproc): Add SECOND argument.  Use LLSDAC
14215         label instead of LLSDA if it is true.
14216         (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
14217         callers.
14218         * except.c (add_call_site, dw2_size_of_call_site_table): Add
14219         SECTION argument.  Use it as index into crtl->eh.call_site_record
14220         array.
14221         (dw2_output_call_site_table): Likewise.  Add CS_FORMAT argument,
14222         use it to determine how to print table entries instead of using
14223         #ifdef HAVE_AS_LEB128.  For SECTION > 0 use hot resp. cold
14224         label instead of normal begin label as base.
14225         (sjlj_assign_call_site_values): Adjust add_call_site caller.
14226         (convert_to_eh_region_ranges): When doing hot/cold partitioning,
14227         ensure no EH range spans between sections and that landing pads
14228         are always in the corresponding section.
14229         (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
14230         for crtl->eh.call_site_record being an array rather than scalar.
14231         (output_one_function_exception_table): New function, copied
14232         from output_function_exception_table.  Adjust
14233         dw2_size_of_call_site_table, dw2_output_call_site_table
14234         callers.  For SECOND section use *C suffixed labels.
14235         (output_function_exception_table): Call
14236         output_one_function_exception_table and, when doing hot/cold
14237         partitioning, also another time for the second section.
14238         * opts.c: Include except.h.
14239         (decode_options): Allow -freorder-blocks-and-partition with
14240         exceptions, unless SJLJ or TARGET_UNWIND_INFO.
14241         * Makefile.in (opts.o): Depend on $(EXCEPT_H).
14242         * function.h (struct rtl_eh): Change call_site_record from
14243         scalar into array of 2 elements.
14244
14245 2009-08-07  Martin Jambor  <mjambor@suse.cz>
14246
14247         * ipa-prop.c (count_formal_params_1): New function.
14248         (ipa_get_vector_of_formal_parms): New function.
14249         (get_vector_of_formal_parm_types): New function.
14250         (ipa_modify_formal_parameters): New function.
14251         (ipa_modify_call_arguments): New function.
14252         (index_in_adjustments_multiple_times_p): New function.
14253         (ipa_combine_adjustments): New function.
14254         (ipa_dump_param_adjustments): New function.
14255         * ipa-prop.h (struct ipa_parm_adjustment): New type.
14256         (ipa_get_vector_of_formal_parms): Declare.
14257         (ipa_modify_formal_parameters): Declare.
14258         (ipa_modify_call_arguments): Declare.
14259         (ipa_combine_adjustments): Declare.
14260         (ipa_dump_param_adjustments): Declare.
14261         (build_ref_for_offset): Declare.
14262         * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
14263         * tree-sra.c: Include ipa-prop.c.
14264         (build_ref_for_offset): Make public.
14265
14266 2009-08-06  Neil Vachharajani  <nvachhar@gmail.com>
14267
14268         * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
14269
14270 2009-08-06  Thomas Schwinge  <tschwinge@gnu.org>
14271
14272         * gcc/doc/extend.texi (__builtin_extract_return_address)
14273         (__builtin_frob_return_address): Document.
14274
14275 2009-08-06  Paul Brook  <paul@codesourcery.com>
14276
14277         * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
14278         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
14279         implementation on ARMv6-M.
14280
14281 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
14282
14283         * doc/extend.texi (pcs): Document new attribute for ARM.
14284
14285 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
14286
14287         * arm.c (pcs_attribute_args): Comment out unsupported attribute
14288         variants.
14289
14290 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
14291
14292         * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
14293         warning ().
14294
14295 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
14296
14297         * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
14298
14299 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
14300
14301         Merge ARM/hard_vfp_branch to trunk.
14302
14303         2009-08-04  Richard Earnshaw  <rearnsha@arm.com>
14304
14305         * arm.c (libcall_eq): New function.
14306         (libcall_hash): New function.
14307         (add_libcall): New function.
14308         (arm_libcall_uses_aapcs_base): New function.
14309         (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
14310         libcalls using the base PCS.
14311         (arm_init_cumulative_args): Likewise.
14312
14313         2009-07-20  Joseph Myers  <joseph@codesourcery.com>
14314
14315         * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
14316         Use base ABI for conversion libfuncs between HFmode and SFmode.
14317
14318         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
14319
14320         * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
14321         V4SImode as representatives of all 64-bit and 128-bit vector
14322         types.  Allow vector types without vector modes.
14323         (aapcs_vfp_is_call_or_return_candidate): Handle vector types
14324         without vector modes like BLKmode.
14325         (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
14326         BLKmode.  Avoid unsupported vector modes or TImode moves for
14327         non-TARGET_NEON.
14328         (aapcs_vfp_allocate_return_reg): Likewise.
14329         (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
14330         V8QImode if TARGET_NEON || TARGET_IWMMXT.
14331
14332         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
14333
14334         * config/arm/arm.c (arm_handle_pcs_attribute): New.
14335         (arm_get_pcs_model): Pass attribute arguments to
14336         arm_pcs_from_attribute.
14337         (arm_init_cumulative_args): Use base AAPCS for conversions from
14338         floating-point types to DImode.
14339         (arm_attribute_table): Add pcs attribute.
14340         (arm_handle_pcs_attribute): New.
14341         * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
14342         conversions from floating-point types to DImode, also declare them
14343         to use base AAPCS and declare functions they call to use base
14344         AAPCS and their RTABI names.
14345
14346         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
14347
14348         * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
14349         -mfloat-abi=hard not being supported for VFP.
14350
14351         2009-05-11  Kazu Hirata  <kazu@codesourcery.com>
14352
14353         * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
14354         SYMBOL_REF to hard_libcall_value.
14355
14356         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
14357             Richard Earnshaw  <rearnsha@arm.com>
14358
14359         * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
14360         has been put on the stack, all remaining co-processory arguments for
14361         that co-processor also go on the stack.
14362
14363         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
14364
14365         * config/arm/arm.c (arm_return_in_memory): Handle returning
14366         vectors of suitable size in registers also for AAPCS case.
14367
14368         2009-01-13  Richard Earnshaw <rearnsha@arm.com>
14369
14370         * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
14371
14372         2008-12-09  Richard Earnshaw <rearnsha@arm.com>
14373
14374         ARM Hard-VFP calling convention
14375         * target-def.h (TARGET_LIBCALL_VALUE): New hook.
14376         * target.h (gcc_target): Add libcall_value to table of call hooks.
14377         * targhooks.h (default_libcall_value): Default implementation.
14378         * targhooks.c (default_libcall_value): Likewise.
14379         * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
14380         * optabs.c (expand_unop): Use it.
14381         * expr.h (hard_libcall_value): Pass the function RTX through.
14382         * calls.c (emit_library_call_value_1): Update call to
14383         hard_libcall_value.
14384         * explow.c (hard_libcall_value): Use new target hook.
14385         * config/arm/arm.c: Include cgraph.h
14386         (TARGET_FUNCTION_VALUE): Override default hook.
14387         (arm_pcs_default): New variable.
14388         (arm_override_options): Don't fault hard calling convention with VFP.
14389         Add support for AAPCS variants.
14390         (arm_function_value): Make static.  Handle AAPCS variants.
14391         (arm_libcall_value): New function.
14392         (arm_apply_result_size): Handle VFP registers in results.
14393         (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
14394         conventions.
14395         (pcs_attribute_args): New variable.
14396         (arm_pcs_from_attribute): New function.
14397         (arm_get_pcs_model): New function.
14398         (aapcs_vfp_cum_init): New function.
14399         (aapcs_vfp_sub_candidate): New function.
14400         (aapcs_vfp_is_return_candidate): New function.
14401         (aapcs_vfp_is_call_candidate): New function.
14402         (aapcs_vfp_allocate): New function.
14403         (aapcs_vfp_allocate_return_reg): New function.
14404         (aapcs_vfp_advance): New function.
14405         (aapcs_cp_arg_layout): New variable.
14406         (aapcs_select_call_coproc): New function.
14407         (aapcs_select_return_coproc): New function.
14408         (aapcs_allocate_return_reg): New function.
14409         (aapcs_libcall_value): New function.
14410         (aapcs_layout_arg): New function.
14411         (arm_init_cumulative_args): Initialize AAPCS args data.
14412         (arm_function_arg): Handle AAPCS variants using new interface.
14413         (arm_arg_parital_bytes): Likewise.
14414         (arm_function_arg_advance): New function.
14415         (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
14416         calling conventions.
14417         (arm_setup_incoming_varargs): Handle new AAPCS args data.
14418         * arm.h (NUM_VFP_ARG_REGS): Define.
14419         (LIBCALL_VALUE): Update.
14420         (FUNCTION_VALUE): Delete.
14421         (FUNCTION_VALUE_REGNO_P): Add VFP regs.
14422         (arm_pcs): New enum.
14423         (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
14424         (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
14425         (FUNCTION_ARG_REGNO_P): Add VFP regs.
14426         * arm-protos.h (arm_function_arg_advance): Add.
14427         (aapcs_libcall_value): Add.
14428         (arm_function_value): Delete.
14429
14430 2009-08-06  Uros Bizjak  <ubizjak@gmail.com>
14431             H.J. Lu  <hongjiu.lu@intel.com>
14432
14433         PR target/40957
14434         * config/i386/i386.c (standard_sse_mode_p): Remove.
14435         (standard_sse_constant_p): Return 2 for integer mode
14436         vector_all_ones_operand when SSE2 is enabled.
14437         (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
14438         (ix86_expand_vector_move): Do not check for negative values from
14439         standard_sse_constant_p.
14440
14441 2009-08-06  Richard Guenther  <rguenther@suse.de>
14442
14443         * tree-ssa.c (useless_type_conversion_p_1): Make function and
14444         array type comparisons frontend independent.
14445         * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
14446         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
14447         out array reference lower bound and element size operands.
14448         (ao_ref_init_from_vn_reference): Properly compute the offset
14449         for ARRAY_RANGE_REF.
14450         (vn_reference_fold_indirect): Fill out array reference lower
14451         bound and element size operands.
14452         * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
14453         a non gimple valued reference operand which can happen for
14454         array reference lower bound or element size.
14455         (create_component_ref_by_pieces_1): Properly generate the
14456         element size operand for array references.
14457
14458 2009-08-06  Richard Guenther  <rguenther@suse.de>
14459
14460         PR tree-optimization/40964
14461         * tree.c (iterative_hash_host_wide_int): Export.
14462         * tree.h (iterative_hash_host_wide_int): Declare.
14463         * tree-ssa-structalias.c (heapvar_map): New struct.
14464         (heapvar_map_eq): New function.
14465         (heapvar_map_hash): Likewise.
14466         (heapvar_lookup): Adjust.
14467         (heapvar_insert): Likewise.
14468         (make_constraint_from_heapvar): Allow multiple heap variables
14469         per decl at different offsets.
14470         (init_alias_heapvars): Adjust.
14471
14472 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
14473
14474         * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
14475         * mips_output_sync_loop (mips_output_sync_loop): Only emit
14476         trailing sync if TARGET_SYNC_AFTER_SC.
14477
14478 2009-08-05  David Daney  <ddaney@caviumnetworks.com>
14479
14480         * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
14481         compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
14482         sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
14483         sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
14484         sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
14485         sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
14486         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
14487         sync_new_nand<mode>, sync_lock_test_and_set<mode>,
14488         test_and_set_12): Rewrite calls to mips_output_sync_loop.
14489         * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
14490         the prototype declaration match the definition.
14491         * gcc/config/mips/mips.c (mips_output_sync_loop):  Emit sync
14492         instructions explicitly.  Add barrier_before and operands
14493         parameters.
14494         * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
14495         MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
14496         MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
14497         MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
14498         MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
14499         MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
14500
14501 2009-08-05  Andrew Pinski  <pinskia@gmail.com>
14502
14503         * tree-ssa-alias.c: Fix intervals to use [) syntax.
14504
14505 2009-08-05  Uros Bizjak  <ubizjak@gmail.com>
14506             Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
14507
14508         PR target/40906
14509         * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
14510         source operand.
14511
14512 2009-08-05  Jakub Jelinek  <jakub@redhat.com>
14513
14514         PR rtl-optimization/40924
14515         * dse.c (canon_address): Before calling cselib_expand_value_rtx
14516         make sure canon_rtx (mem_address) isn't simpler than
14517         canon_rtx (expanded_mem_address).
14518
14519 2009-08-05  Li Feng  <nemokingdom@gmail.com>
14520
14521         * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
14522         for each poly_bb_p.
14523         (build_scop_drs): Build alias set for each SCoP.
14524
14525 2009-08-04  Sandra Loosemore  <sandra@codesourcery.com>
14526
14527         * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
14528         * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
14529         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
14530         (MIPS_ARCH_FLOAT_SPEC): Likewise.
14531         (BASE_DRIVER_SELF_SPECS): Likewise.
14532
14533 2009-08-04  Andrew Pinski  <pinskia@gmail.com>
14534
14535         * tree-ssa-alias.c: Fix some comment typos.
14536
14537 2009-08-04  Kaz Kojima  <kkojima@gcc.gnu.org>
14538
14539         * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
14540         ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
14541
14542 2009-08-03  Janis Johnson  <janis187@us.ibm.com>
14543
14544         PR c/39902
14545         * simplify-rtx.c (simplify_binary_operation_1): Disable
14546         simplifications for decimal float operations.
14547
14548 2009-08-03  Jakub Jelinek  <jakub@redhat.com>
14549
14550         PR middle-end/40943
14551         * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
14552         operand of INDIRECT_REF.
14553
14554 2009-08-03  Uros Bizjak  <ubizjak@gmail.com>
14555
14556         * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
14557         constants referencing TLS symbols.
14558
14559 2009-08-03  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
14560
14561         * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
14562         __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
14563
14564 2009-08-03  Richard Guenther  <rguenther@suse.de>
14565
14566         * tree.c (make_vector_type): Build a main variant first,
14567         get the canonical one and then build the variant.
14568         * tree-ssa.c (useless_type_conversion_p_1): Handle
14569         fixed-point types.
14570         (useless_type_conversion_p): Conversions to pointers to
14571         incomplete record types are useless.
14572
14573 2009-08-03  Richard Guenther  <rguenther@suse.de>
14574
14575         * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
14576         file will be created.
14577         * omp-low.c (pass_diagnose_omp_blocks): Likewise.
14578         * toplev.c (compile_file): Adjust comment.
14579
14580 2009-08-03  Kaz Kojima  <kkojima@gcc.gnu.org>
14581
14582         * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
14583         * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
14584         (TARGET_PROMOTE_FUNCTION_MODE): Define.
14585         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
14586         (sh_promote_function_mode): Fix typo.
14587
14588 2009-08-03  Andreas Krebbel  <krebbel1@de.ibm.com>
14589
14590         * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
14591
14592 2009-08-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14593
14594         * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
14595         declaration arguments.
14596
14597 2009-08-02  Uros Bizjak  <ubizjak@gmail.com>
14598
14599         * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
14600         of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
14601         (ix86_split_ashl): Ditto.
14602         (ix86_expand_vector_init_one_nonzero): Ditto.
14603         (ix86_expand_vector_set): Ditto.
14604         (ix86_expand_reduc_v4sf): Ditto.
14605
14606 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
14607
14608         * explow.c (promote_function_mode): Remove assert.
14609         * config/sh/sh.c (sh_promote_function_mode): Declare.
14610
14611 2009-08-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14612
14613         * config/pa/pa.c (pa_promote_function_mode): Declare.
14614         Change to static.  Fix promote_mode call.
14615
14616         * gthr-dce.h (CONST_CAST2): Define if not defined.
14617         (__gthread_setspecific): Use CONST_CAST2 to fix warning.
14618
14619         * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
14620
14621 2009-08-01  Paolo Bonzini  <bonzini@gnu.org>
14622
14623         * expr.c (store_constructor): Use promote_decl_mode.  Remove
14624         now write-only variable unsignedp.
14625         (expand_expr_real_1): Use promote_decl_mode.
14626         * expr.h (promote_function_mode, promote_decl_mode): New.
14627         (promote_mode): Remove last argument.
14628         * function.c (assign_temp): Drop last argument of promote_mode.
14629         (assign_parm_find_data_types): Use promote_function_mode.
14630         (assign_parm_setup_reg): Likewise.
14631         (expand_function_end): Use promote_function_mode.
14632         * calls.c (initialize_argument_information): Use promote_function_mode.
14633         (precompute_arguments): Use promote_mode instead of checking if
14634         only PROMOTE_FUNCTION_MODE is defined.
14635         (expand_call): When making sibcall decisions, use promote_function_mode.
14636         Below, remove an if for targetm.calls.promote_function_return and
14637         and use promote_function_mode.
14638         (emit_library_call_value_1): Use promote_function_mode, fix bug
14639         where promote_mode was passed FOR_CALL == 0 for a return value in an
14640         assertion.
14641         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
14642         * explow.c (promote_function_mode, promote_decl_mode): New.
14643         (promote_mode): Keep only the FOR_CALL == 0 case.
14644         * combine.c (setup_incoming_promotion): Remove test of
14645         promote_function_args.  Use promote_function_mode.
14646         * stmt.c (expand_value_return): Use promote_decl_mode.
14647         (expand_decl): Use promote_decl_mode.
14648
14649         * expr.c (store_constructor): Use promote_decl_mode.  Remove
14650         now write-only variable unsignedp.
14651         (expand_expr_real_1): Use promote_decl_mode.
14652         * expr.h (promote_function_mode, promote_decl_mode): New.
14653         (promote_mode): Remove last argument.
14654         * function.c (assign_temp): Drop last argument of promote_mode.
14655         (assign_parm_find_data_types): Use promote_function_mode.
14656         (assign_parm_setup_reg): Likewise.
14657         (expand_function_end): Use promote_function_mode.
14658         * calls.c (initialize_argument_information): Use promote_function_mode.
14659         (precompute_arguments): Use promote_mode instead of checking if
14660         only PROMOTE_FUNCTION_MODE is defined.
14661         (expand_call): When making sibcall decisions, use promote_function_mode.
14662         Below, remove an if for targetm.calls.promote_function_return and
14663         and use promote_function_mode.
14664         (emit_library_call_value_1): Use promote_function_mode, fix bug
14665         where promote_mode was passed FOR_CALL == 0 for a return value in an
14666         assertion.
14667         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
14668         * explow.c (promote_function_mode, promote_decl_mode): New.
14669         (promote_mode): Keep only the FOR_CALL == 0 case.
14670         * combine.c (setup_incoming_promotion): Remove test of
14671         promote_function_args.  Use promote_function_mode.
14672         * stmt.c (expand_value_return): Use promote_decl_mode.
14673         (expand_decl): Use promote_decl_mode.
14674
14675         * explow.c (promote_function_mode): Just call the target hook.
14676         * targhooks.c (default_promote_function_mode,
14677         default_promote_function_mode_always_promote): New.
14678         * targhooks.h (default_promote_function_mode,
14679         default_promote_function_mode_always_promote): Declare.
14680         * target.h (promote_function_args, promote_function_return): Remove.
14681         (promote_function_mode): New.
14682         * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
14683         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
14684         (TARGET_PROMOTE_FUNCTION_MODE): New.
14685         (TARGET_CALLS): Adjust.
14686         * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
14687         TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
14688
14689         * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
14690         * config/s390/s390.c (s390_promote_function_mode): ... here,
14691         with pointer handling.
14692         (TARGET_PROMOTE_FUNCTION_MODE): Define.
14693         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
14694
14695         * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
14696         * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
14697         with pointer handling.
14698         (TARGET_PROMOTE_FUNCTION_MODE): Define.
14699         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
14700
14701         * config/sh/sh-protos.h (sh_promote_function_mode): New.
14702         * config/sh/sh.c (sh_promote_function_mode): New.
14703         (TARGET_PROMOTE_FUNCTION_MODE): Define.
14704         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
14705
14706         * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
14707         * config/cris/cris.c (cris_promote_function_mode): ... here.
14708         (TARGET_PROMOTE_FUNCTION_MODE): Define.
14709         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
14710
14711         * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
14712         * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
14713         (TARGET_PROMOTE_FUNCTION_MODE): Define.
14714         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
14715
14716         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
14717         * config/arm/arm.c (arm_promote_function_mode): ... here, without
14718         complex type handling.
14719         (TARGET_PROMOTE_FUNCTION_MODE): Define.
14720         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
14721
14722         * config/pa/pa.c (pa_promote_function_mode): New.
14723         (TARGET_PROMOTE_FUNCTION_MODE): Define.
14724         (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
14725
14726         * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
14727         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
14728         (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
14729         * config/xtensa/xtensa.c: Likewise.
14730         * config/stormy16/stormy16.c: Likewise.
14731         * config/iq2000/iq2000.c: Likewise.
14732         * config/rs6000/rs6000.c: Likewise.
14733         * config/picochip/picochip.c: Likewise.
14734         * config/arc/arc.c: Likewise.
14735         * config/mcore/mcore.c: Likewise.
14736         * config/score/score.c: Likewise.
14737         * config/mips/mips.c: Likewise.
14738         * config/bfin/bfin.c: Likewise.
14739         * config/ia64/ia64.c: Likewise (disabled though).
14740
14741         * config/frv/frv.h: Remove pointless remark.
14742
14743         * doc/tm.texi (PROMOTE_FUNCTION_MODE,
14744         TARGET_PROMOTE_FUNCTION_ARGS,
14745         TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
14746         (TARGET_PROMOTE_FUNCTION_MODE): ... this.
14747
14748 2009-08-01  Sebastian Pop  <sebastian.pop@amd.com>
14749
14750         * doc/invoke.texi (-fgraphite-force-parallel): Renamed
14751         -floop-parallelize-all.
14752         * toplev.c (process_options): Rename flag_graphite_force_parallel to
14753         flag_loop_parallelize_all.
14754         * tree-ssa-loop.c (gate_graphite_transforms): Same.
14755         * graphite.c (graphite_transform_loops): Same.
14756         * common.opt: Same.
14757         * graphite-poly.c (apply_poly_transforms): Same.
14758
14759 2009-07-31  Richard Earnshaw  <rearnsha@arm.com>
14760
14761         PR tree-optimization/40914
14762         * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
14763         if set, then check the delta field of the PMF record.
14764         (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
14765         (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
14766         call is stored in the delta.
14767
14768 2009-07-31  Adam Nemet  <anemet@caviumnetworks.com>
14769
14770         * config/mips/mips.md (*clear_upper32_dext): New pattern.
14771
14772 2009-07-31  Uros Bizjak  <ubizjak@gmail.com>
14773
14774         * config/i386/bsd.h (ASM_BYTE): New define.
14775         * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
14776         * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
14777         .byte.  Use fputs or putc instead of fprintf where appropriate.
14778         * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte.  Use
14779         fputs or putc instead of fprintf where appropriate.
14780         * config/i386/i386elf.h: Ditto.
14781         * config/i386/sysv4.h: Ditto.
14782
14783         * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
14784         * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
14785         (*tls_global_dynamic_64): Ditto.
14786
14787 2009-07-31  Christian Bruel  <christian.bruel@st.com>
14788
14789         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
14790
14791 2009-07-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14792
14793         * config/arm/arm.c (arm_arm_address_cost): Fix typo.
14794         Remove dead code for MINUS.
14795
14796 2009-07-31  Anthony Green  <green@moxielogic.com>
14797
14798         * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
14799         $r12 in prologue.
14800         (moxie_expand_epilogue): Ditto for epilogue.
14801         (moxie_setup_incoming_varargs): ABI change.  Use 5 registers for
14802         incoming arguments.
14803         (moxie_function_arg): Ditto.
14804         (moxie_pass_by_reference): Ditto.
14805         (moxie_arg_partial_bytes): Ditto.
14806         * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
14807         (FUNCTION_ARG_ADVANCE) Ditto.
14808         (REG_PARM_STACK_SPACE) Ditto.
14809         (FUNCTION_ARG_REGNO_P) Dito.
14810
14811         * config.gcc: Add moxie linux config support.
14812         * gcc/config/moxie/uclinux.h: New file.
14813
14814 2009-07-31  DJ Delorie  <dj@redhat.com>
14815
14816         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
14817         (UNSPECV_SP_SWITCH_E): New.
14818         (sp_switch_1): Change to an unspec.
14819         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
14820         replace $r15.
14821         * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
14822         reference the new stack's address
14823
14824 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
14825
14826         * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
14827         graphite-clast-to-gimple.o, graphite-dependences.o,
14828         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
14829         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
14830         (graphite-blocking.o,
14831         graphite-clast-to-gimple.o, graphite-dependences.o,
14832         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
14833         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
14834         * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
14835         * cfgloop.h (struct loop): Add can_be_parallel field.
14836         * common.opt (fgraphite-identity): Moved up.
14837         (fgraphite-force-parallel): New flag.
14838         * graphite.c: Rewrite.
14839         * graphite.h: Rewrite.
14840         * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
14841         after Graphite.
14842         * toplev.c (graphite_out_file): New file descriptor.
14843         (graphite_in_file): New.
14844         (process_options): flag_graphite_force_parallel cannot be used without
14845         Graphite.
14846         * tree-ssa-loop.c: Include toplev.h.
14847         (gate_graphite_transforms): Enable flag_graphite for
14848         flag_graphite_force_parallel.
14849
14850 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
14851
14852         * ChangeLog.graphite: New.
14853         * graphite-blocking.c: New.
14854         * graphite-clast-to-gimple.c: New.
14855         * graphite-clast-to-gimple.h: New.
14856         * graphite-dependences.c: New.
14857         * graphite-dependences.h: New.
14858         * graphite-interchange.c: New.
14859         * graphite-poly.c: New.
14860         * graphite-poly.h: New.
14861         * graphite-ppl.c: New.
14862         * graphite-ppl.h: New.
14863         * graphite-scop-detection.c: New.
14864         * graphite-scop-detection.h: New.
14865         * graphite-sese-to-poly.c: New.
14866         * graphite-sese-to-poly.h: New.
14867         * sese.c: New.
14868         * sese.h: New.
14869
14870 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
14871
14872         * tree-chrec.c (evolution_function_right_is_integer_cst): New.
14873         * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
14874
14875 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
14876
14877         * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
14878         (scev_is_linear_expression): Return false if the evolution is not
14879         affine multivariate.
14880
14881 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
14882
14883         * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
14884         * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
14885
14886 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
14887
14888         * tree-data-ref.c (debug_data_references): New.
14889         (debug_data_reference): New.
14890         * tree-data-ref.h (debug_data_references): Declared.
14891         (debug_data_reference): Declared.
14892
14893 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
14894
14895         * tree-data-ref.c (stmt_simple_memref_p: Removed.
14896         * tree-data-ref.h (scop_p): Removed.
14897         (struct data_reference): Remove field scop.
14898         (DR_SCOP): Removed.
14899         (stmt_simple_memref_p): Removed.
14900
14901 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
14902
14903         * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
14904         * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
14905         basic block empty.
14906
14907 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
14908
14909         * doc/invoke.texi (-fgraphite-force-parallel): Documented.
14910
14911 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
14912
14913         * doc/invoke.texi (-fgraphite-identity): Documented.
14914
14915 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
14916
14917         * tree-scalar-evolution.c: Fix comment.
14918         (instantiate_scev_1): Return unknow from scev instantiation if the
14919         result is not above instantiate_below.
14920
14921 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
14922
14923         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
14924         static anymore.  Instantiate the symbols that may have been introduced
14925         by chrec_apply.
14926         * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
14927         Declared.
14928
14929 2009-07-30  DJ Delorie  <dj@redhat.com>
14930
14931         * config/mep/mep.c (mep_asm_init_sections): Add section flags and
14932         .vliw directive to VLIW sections.
14933
14934 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14935
14936         * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
14937         New variables.
14938         ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
14939         (AUTOHEADER): New variable.
14940         ($(srcdir)/cstamp-h.in): Use it.
14941
14942 2009-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
14943             Pat Haugen  <pthaugen@us.ibm.com>
14944             Revital Eres <ERES@il.ibm.com>
14945
14946         * config/rs6000/vector.md (VEC_F): Add VSX support.
14947         (VEC_A): Ditto.
14948         (VEC_N): Ditto.
14949         (mov<mode>): Ditto.
14950         (vector_load_<mode>): Ditto.
14951         (vector_store_<mode>): Ditto.
14952         (vector GPR move split): Ditto.
14953         (vec_reload_and_plus_<mptrsize>): Ditto.
14954         (vec_reload_and_reg_<mptrsize>): Ditto.
14955         (add<mode>3): Ditto.
14956         (sub<mode>3): Ditto.
14957         (mul<mode>3): Ditto.
14958         (neg<mode>2): Ditto.
14959         (abs<mode>2): Ditto.
14960         (smin<mode>3): Ditto.
14961         (smax<mode>3): Ditto.
14962         (vector_eq<mode>): Ditto.
14963         (vector_gt<mode>): Ditto.
14964         (vector_ge<mode>): Ditto.
14965         (vector_gtu<mode>): Ditto.
14966         (vector_select_<mode>_uns): Ditto.
14967         (vector_eq_<mode>_p): Ditto.
14968         (vector_gt_<mode>_p): Ditto.
14969         (vector_ge_<mode>_p): Ditto.
14970         (vector_gtu_<mode>_p): Ditto.
14971         (cr6_test_for_zero): Ditto.
14972         (cr6_test_for_zero_reverse): Ditto.
14973         (cr6_test_for_lt): Ditto.
14974         (cr6_test_for_lt_reverse): Ditto.
14975         (xor<mode>3): Ditto.
14976         (ior<mode>3): Ditto.
14977         (and<mode>3): Ditto.
14978         (one_cmpl<mode>2): Ditto.
14979         (nor<mode>2): Ditto.
14980         (andc<mode>2): Ditto.
14981         (float<VEC_int<mode>2): Ditto.
14982         (unsigned_float<VEC_int><mode>2): Ditto.
14983         (fix_trunc<mode><VEC_int>2): Ditto.
14984         (fixuns_trunc<mode><VEC_int>2): Ditto.
14985         (vec_init<mode>):
14986         (vec_set<mode>): Ditto.
14987         (vec_extract<mode>): Ditto.
14988         (vec_interleave_highv4sf): Ditto.
14989         (vec_interleave_lowv4sf): Ditto.
14990         (vec_realign_load_<mode>): Ditto.
14991         (vec_shl_<mode>): Ditto.
14992         (vec_shr_<mode>): Ditto.
14993         (div<mode>3): New patterns for VSX.
14994         (vec_interleave_highv2df): Ditto.
14995         (vec_interleave_lowv2df): Ditto.
14996         (vec_pack_trunc_v2df): Ditto.
14997         (vec_pack_sfix_trunc_v2df): Ditto.
14998         (vec_pack_ufix_trunc_v2df): Ditto.
14999         (vec_unpacks_hi_v4sf): Ditto.
15000         (vec_unpacks_lo_v4sf): Ditto.
15001         (vec_unpacks_float_hi_v4si): Ditto.
15002         (vec_unpacks_float_lo_v4si): Ditto.
15003         (vec_unpacku_float_hi_v4si): Ditto.
15004         (vec_unpacku_float_lo_v4si): Ditto.
15005         (movmisalign<mode>): Ditto.
15006         (vector_ceil<mode>2): New patterns for vectorizing math library.
15007         (vector_floor<mode>2): Ditto.
15008         (vector_btrunc<mode>2): Ditto.
15009         (vector_copysign<mode>3): Ditto.
15010
15011         * config/rs6000/predicates.md (easy_vector_constant_msb): New
15012         predicate for setting the high bit in each word, used for copysign.
15013
15014         * config/rs6000/ppc-asm.h (f19): Whitespace.
15015         (f32-f63): Define if VSX.
15016         (v0-v31): Define if Altivec.
15017         (vs0-vs63): Define if VSX.
15018
15019         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
15020
15021         * config/rs6000/power7.md: New file, provide tuning parameters for
15022         -mcpu=power7.
15023
15024         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
15025         (rs6000_cpu_cpp_builtins): Ditto.
15026         (altivec_overloaded_builtins): Ditto.
15027         (altivec_resolve_overloaded_builtin): Ditto.
15028
15029         * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
15030         debug switch to disable vectorizing simple math builtin
15031         functions.
15032
15033         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
15034         Vectorize simple math builtin functions.
15035         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
15036         hook to vectorize math builtins.
15037         (rs6000_override_options): Enable -mvsx on -mcpu=power7.
15038         (rs6000_builtin_conversion): Add VSX/power7 support.
15039         (rs6000_builtin_vec_perm): Ditto.
15040         (vsplits_constant): Add support for loading up a vector constant
15041         with just the high bit set in each part.
15042         (rs6000_expand_vector_init): Add VSX/power7 support.
15043         (rs6000_expand_vector_set): Ditto.
15044         (rs6000_expand_vector_extract): Ditto.
15045         (rs6000_emit_move): Ditto.
15046         (bdesc_3arg): Ditto.
15047         (bdesc_2arg): Ditto.
15048         (bdesc_1arg): Ditto.
15049         (rs6000_expand_ternop_builtin): Ditto.
15050         (altivec_expand_builtin): Ditto.
15051         (rs6000_expand_unop_builtin): Ditto.
15052         (rs6000_init_builtins): Ditto.
15053         (altivec_init_builtins): Ditto.
15054         (builtin_function_type): Ditto.
15055         (rs6000_common_init_builtins): Ditto.
15056         (rs6000_handle_altivec_attribute); Ditto.
15057         (rs6000_mangle_type): Ditto.
15058         (rs6000_vector_mode_supported_p): Ditto.
15059         (rs6000_mode_dependent_address): Altivec addresses with AND -16
15060         are mode dependent.
15061
15062         * config/rs6000/vsx.md: New file for VSX support.
15063
15064         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
15065         identifing values with just the most significant bit set.
15066         (enum rs6000_builtins): Add builtins for VSX.  Add simple math
15067         vectorized builtins.
15068
15069         * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
15070         (UNSPEC_VRFIM): Delete.
15071         (splitter for loading up vector with most significant bit): New
15072         splitter for vectorizing copysign.
15073         (altivec_vrfiz): Rename from altivec_fturncv4sf2.  Add support for
15074         vectorizing simple math functions.
15075         (altivec_vrfip): Add support for vectorizing simple math functions.
15076         (altivec_vrfim): Ditto.
15077         (altivec_copysign_v4sf3): New insn for Altivec copysign support.
15078
15079         * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
15080         (power7.md, vsx.md): Include for power7 support.
15081         (copysigndf3): Use VSX instructions if -mvsx.
15082         (negdf2_fpr): Ditto.
15083         (absdf2_fpr): Ditto.
15084         (nabsdf2_fpr): Ditto.
15085         (adddf3_fpr): Ditto.
15086         (subdf3_fpr): Ditto.
15087         (muldf3_fpr): Ditto.
15088         (divdf3_fpr): Ditto.
15089         (fix_truncdfdi2_fpr): Ditto.
15090         (cmpdf_internal1): Ditto.
15091         (fred, fred_fpr): Convert into expander/insn to add VSX support.
15092         (btruncdf2, btruncdf2_fpr): Ditto.
15093         (ceildf2, ceildf2_fpr): Ditto.
15094         (floordf2, floordf2_fpr): Ditto.
15095         (floatdidf2, floatdidf2_fpr): Ditto.
15096         (fmadddf4_fpr): Name insn.  Use VSX instructions if -mvsx.
15097         (fmsubdf4_fpr): Ditto.
15098         (fnmadddf4_fpr_1): Ditto.
15099         (fnmadddf4_fpr_2): Ditto.
15100         (fnmsubdf4_fpr_1): Ditto.
15101         (fnmsubdf4_fpr_2): Ditto.
15102         (fixuns_truncdfdi2): Add expander for VSX support.
15103         (fix_truncdfdi2): Ditto.
15104         (fix_truncdfsi2): Ditto.
15105         (ftruncdf2): Ditto.
15106         (btruncsf2): Whitespace.
15107         (movdf_hardfloat32): Add support for VSX registers.
15108         (movdf_softfloat32): Ditto.
15109         (movdf_hardfloat64): Ditto.
15110         (movdf_hardfloat64_mfpgpr): Ditto.
15111         (movdf_softfloat64): Ditto.
15112         (movti splitters): Add check for vector registers supporting
15113         TImode in the future.
15114         (bpermd): Add power7 bpermd instruction.
15115
15116         * config/rs6000/altivec.h (vec_div): Define if VSX.
15117         (vec_mul): Ditto.
15118         (vec_msub): Ditto.
15119         (vec_nmadd): Ditto.
15120         (vec_nearbyint): Ditto.
15121         (vec_rint): Ditto.
15122         (vec_sqrt): Ditto.
15123         (all predicates): Use the generic builtin function, and not the V4SF
15124         specific function so that the predicates will work with VSX's V2DF.
15125         (vec_all_*): Ditto.
15126         (vec_any_*): Ditto.
15127
15128         * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
15129         Document new VSX functions and types.
15130
15131         * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
15132         switches.
15133
15134         * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
15135         "wa", and "j" constraints.  Modify "v" to talk about Altivec
15136         instead of just vector.
15137
15138 2009-07-30  Andrew MacLeod  <amacleod@redhat.com>
15139
15140         PR debug/26475
15141         * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
15142         location for phi arguments.
15143         (rewrite_update_phi_arguments): Find locations for reaching defs.
15144         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
15145         Add location to add_phi_arg calls.
15146         * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
15147         * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
15148         split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
15149         * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
15150         create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
15151         * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
15152         * tree-phinodes.c (make_phi_node): Initialize location.
15153         (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
15154         (add_phi_arg): Add location parameter.
15155         (remove_phi_arg_num): Move location when moving phi argument.
15156         * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
15157         location.
15158         * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
15159         slpeel_update_phi_nodes_for_guard1,
15160         slpeel_update_phi_nodes_for_guard2,
15161         slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
15162         vect_loop_versioning): Set locations.
15163         * tree-parloops.c (create_phi_for_local_result,
15164         transform_to_exit_first_loop, create_parallel_loop): Add locations.
15165         * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
15166         * tree-vect-loop.c (get_initial_def_for_induction,
15167         vect_create_epilog_for_reduction, vect_finalize_reduction): Add
15168         locations.
15169         * tree-flow-inline.h (gimple_phi_arg_location): New.  Return locus.
15170         (gimple_phi_arg_location_from_edge): New.  Return locus from an edge.
15171         (gimple_phi_arg_set_location): New.  Set locus.
15172         (gimple_phi_arg_has_location): New.  Check for locus.
15173         (redirect_edge_var_map_location): New.  Return locus from var_map.
15174         * tree-vect-data-refs.c (vect_setup_realignment): Set location.
15175         * tree-ssa-phiopt.c (conditional_replacement): Set locus when
15176         combining PHI arguments.
15177         (cond_store_replacement): Set location.
15178         * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
15179         * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
15180         scop_add_exit_phis_edge): Add locations.
15181         * tree-cfgcleanup.c (remove_forwarder_block,
15182         remove_forwarder_block_with_phi): Add locations.
15183         * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
15184         * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
15185         locations.
15186         * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
15187         * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
15188         flush_pending_stmts): Add source location.
15189         * lambda-code.c (perfect_nestify): Maintain location stack with argument
15190         stack to preserve locations.
15191         * tree-vect-stmts.c (vectorizable_load): Add location.
15192         * tree-inline.c (copy_phis_for_bb): Copy locus.
15193         (setup_one_parameter): Add call locus to inlined parameter stmts.
15194         (initialize_inlined_parameters): Pass in call location as parameter
15195         assignment locus.
15196         (tree_function_versioning): Pass location to setup_one_parameter.
15197         * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
15198         * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
15199         copy and edge lists.
15200         (insert_partition_copy_on_edge, insert_value_copy_on_edge,
15201         insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
15202         locus parameter and override the stmt default if provided.
15203         (new_elim_graph, clear_elim_graph, delete_elim_graph,
15204         elim_graph_add_edge, elim_graph_remove_succ_edge,
15205         FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
15206         elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
15207         eliminate_phi):  Add locus info in elimination graph for each edge and
15208         value copy.
15209         (insert_backedge_copies): Copy locus if present.
15210         * tree-flow.h (struct _edge_var_map): Add locus field.
15211         * tree-switch_conversions.c (fix_phi_nodes): Add locations.
15212         * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
15213         add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
15214         locations.
15215         * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
15216
15217 2009-07-30  Martin Jambor  <mjambor@suse.cz>
15218
15219         PR tree-optimization/40570
15220         * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
15221         use inlining loops.
15222
15223 2009-07-30  Razya Ladelsky <razya@il.ibm.com>
15224
15225         * ssa-loop-manip.c: Include langhooks.h.
15226         (rewrite_phi_with_iv): New.
15227         (rewrite_all_phi_nodes_with_iv): New.
15228         (canonicalize_loop_ivs): Move here from tree-parloops.c.
15229         Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
15230         * tree-parloops.c (loop_parallel_p): Move out all conditions
15231         except dependency check.
15232         (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
15233         (gen_parallel_loop): Call canonicalize_loop_ivs without
15234         reduction_list argument.
15235         (build_new_reduction): New.
15236         (gather_scalar_reductions): New.
15237         (try_get_loop_niter): New.
15238         (try_create_reduction_list): New.
15239         (parallleize_loops): Change the parallel conditions check.
15240         * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
15241         * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
15242
15243 2009-07-30  Dave Korn  <dave.korn.cygwin@gmail.com>
15244
15245         * opt-functions.awk (opt_args): Allow argument to be enclosed in
15246         curly braces.
15247         * doc/options.texi (Option properties):  Mention new quoting syntax.
15248
15249 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
15250
15251         * config/alpha/alpha.c (alpha_start_function):
15252         Handle VMS_DEBUG_MAIN_POINTER
15253         * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
15254         * doc/invoke.texi: Document -mdebug-main switch.
15255
15256 2009-07-29  Richard Henderson  <rth@redhat.com>
15257
15258         * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
15259         (cgraph_create_edge_including_clones): Likewise.
15260         * tree-inline.c (copy_bb): Operate on the correct edges
15261         when updating the callgraph.
15262
15263 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
15264
15265         * config/alpha/vms-cc.c: Deleted.
15266         * config/alpha/vms-ld.c: Deleted.
15267         * config/alpha/t-vms64: Moved to config/vms
15268         * config/alpha/vms-crt0-64.c: Moved to config/vms
15269         * config/alpha/vms-crt0.c: Moved to config/vms
15270         * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
15271         * config/alpha/vms-psxcrt0.c: Moved to config/vms
15272         * config/alpha/xm-vms.h: Moved to config/vms
15273         * config/alpha/x-vms: Moved to config/vms
15274         * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
15275         config/vms/t-vms.
15276         * config/vms/t-vms: Moved here from config/alpha. Alpha specific
15277         parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
15278         (version): Set.
15279         * config/vms/t-vms64: Moved here from config/alpha
15280         * config/vms/vms-crt0-64.c: Moved here from config/alpha.
15281         (argc,argv,envp): Enforce 32bit malloc'ing.
15282         * config/vms/vms-psxcrt0-64.c: Likewise.
15283         * config/vms/vms-crt0.c: Moved here from config/alpha.
15284         * config/vms/vms-psxcrt0.c: Likewise.
15285         * config/vms/vms-crtl-64.h: New file.
15286         * config/vms/vms-crtl.h: New file.
15287         * config/vms/vms.opt: New file.
15288         * config/vms/xm-vms64.h: New file.
15289         * config/vms/xm-vms.h: Moved here from config/alpha.
15290         (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
15291         Set.
15292         * config/vms/x-vms: Moved here from config/alpha.
15293         (version, VMS_EXTRA_PARTS): Moved to t-vms.
15294         (vms-ld.o, vms-cc.o): Removed.
15295         (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
15296
15297 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
15298
15299         * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
15300         correct stack (obvious VMS fix).
15301
15302 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
15303
15304         * dwarf2out.c (output_file_names): Output VMS style file name, size,
15305         date, version info if VMS_DEBUGGING_INFO defined.
15306         * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
15307         size, date calculating code moved here.
15308
15309 2009-07-29  Paul Brook  <paul@codesourcery.com>
15310
15311         * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
15312         do_push/do_pop.
15313
15314 2009-07-29  Uros Bizjak  <ubizjak@gmail.com>
15315
15316         PR target/40577
15317         * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
15318         to DImode when generating insq_le insn.
15319
15320 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
15321
15322         * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
15323         New macro set for VMS_DEBUGGGING_INFO.
15324         (AT_string_form): Use it.
15325
15326 2009-07-28  DJ Delorie  <dj@redhat.com>
15327
15328         * config/mep/mep.c (vtext_section): New.
15329         (vftext_section): New.
15330         (ftext_section): New.
15331         (mep_select_section): Add support for functions.
15332         (mep_unique_section): Likewise.
15333         (mep_asm_init_sections): Likewise.
15334         (mep_encode_section_info): Remove it from here.
15335
15336         * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
15337
15338 2009-07-28  Paolo Bonzini  <bonzinI@gnu.org>
15339
15340         * tree.h (TREE_DEPRECATED): Document it is used for types too.
15341         (TYPE_VECTOR_OPAQUE): Use default_def_flag
15342
15343 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
15344
15345         * dwarf2out.c (output_file_names): Test new macro
15346         DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
15347         (add_comp_dir_attribute): Likewise.
15348
15349 2009-07-28  Kai Tietz  <kai.tietz@onevision.com>
15350
15351         * config/i386/mingw-w64.h (LINK_SPEC): Add
15352         separating space between commands.
15353
15354 2009-07-28  Jan Hubicka  <jh@suse.cz>
15355
15356         PR tree-optimization/40759
15357         * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
15358         for renaming.
15359
15360 2009-07-27  DJ Delorie  <dj@redhat.com>
15361
15362         * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
15363         types are dword-aligned.
15364         (mep_expand_va_start): Likewise.
15365
15366 2009-07-27  Olivier Hainque  <hainque@adacore.com>
15367             Douglas B Rupp  <rupp@gnat.com>
15368
15369         * convert.c (convert_to_pointer): Don't assume the target
15370         pointer type is POINTER_SIZE long. Fetch its precision instead.
15371
15372 2009-07-27  Douglas B Rupp  <rupp@gnat.com>
15373
15374         * system.h (fopen): Undefine if macro.
15375
15376 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
15377
15378         * dwarf2out.c (output_cfi_p): Removed.
15379         (output_cfis): New function.
15380         (output_fde): New function, split from output_call_frame_info.
15381         (output_call_frame_info): Use it.
15382         (dwarf2out_switch_text_section): Use output_cfis.
15383
15384 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
15385
15386         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
15387         TARGET_BI_ARCH is specified without enabling SJLJ.
15388         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
15389         if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
15390
15391 2009-07-26  Mikael Pettersson <mikpe@it.uu.se>
15392
15393         * arm.md (negdi2): Use DImode if forcing a value into a register.
15394
15395 2009-07-26  Ira Rosen  <irar@il.ibm.com>
15396
15397         PR tree-optimization/40801
15398         * tree-vect-stmts.c (vectorizable_call): Get previous copy
15399         of vector operand from the previous copy of vector statement.
15400         Pass the correct definition type value to
15401         vect_get_vec_def_for_stmt_copy().
15402
15403 2009-07-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15404
15405         * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
15406         const char ** conversion.
15407
15408 2009-07-25 David Daney <ddaney@caviumnetworks.com>
15409
15410         * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
15411         fancy_abort() if !ENABLE_ASSERT_CHECKING.
15412         (gcc_unreachable): Invoke __builtin_unreachable() if
15413         !ENABLE_ASSERT_CHECKING.
15414
15415 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
15416
15417         PR rtl-optimization/40445
15418         * emit-rtl.c (next_nonnote_insn_bb): New function.
15419         * rtl.h (next_nonnote_insn_bb): Declare new function.
15420         * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
15421         with no successors that is the successor of the ENTRY_BLOCK.
15422         Continue from the top after removing an empty fallthrough block.
15423         * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
15424         of next_nonnote_insn.
15425
15426 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
15427
15428         * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
15429
15430 2009-07-25  Martin Jambor  <mjambor@suse.cz>
15431
15432         * c-common.c (c_common_attribute_table): New element for noclone.
15433         (handle_noclone_attribute): New function. Forward-declare.
15434         * tree-inline.c (tree_versionable_function_p): Check for noclone
15435         attribute.
15436         * doc/extend.texi (Labels as Values): Document need for noclone.
15437         (Function Attributes): Document noclone attribute.
15438
15439 2009-07-25  Jakub Jelinek  <jakub@redhat.com>
15440
15441         PR rtl-optimization/34999
15442         * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
15443         and dw_fde_switched_cold_to_hot fields.
15444         (output_cfi_p): New function.
15445         (output_call_frame_info): If fde->dw_fde_switched_sections,
15446         output 2 FDEs instead of one with corrupted header.
15447         (dwarf2out_do_cfi_startproc): New function.
15448         (dwarf2out_begin_prologue): Use it.  Initialize fde->dw_fde_switch_cfi
15449         and fde->dw_fde_switched_cold_to_hot.
15450         (dwarf2out_switch_text_section): Compute
15451         fde->dw_fde_switched_cold_to_hot.  Switch to new text section here.
15452         If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
15453         dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
15454         Otherwise, compute fde->dw_fde_switch_cfi.
15455
15456 2009-07-24  Cary Coutant  <ccoutant@google.com>
15457
15458         * tree-cfg.c (assign_discriminator): Add explicit parentheses.
15459
15460 2009-07-24  Cary Coutant  <ccoutant@google.com>
15461
15462         * cfghooks.c (split_block): Copy discriminator to new block.
15463         * tree-cfg.c (assign_discriminator): Check location of last
15464         instruction in block as well as first.
15465
15466 2009-07-24  Uros Bizjak  <ubizjak@gmail.com>
15467
15468         * config/i386/linux.c: Use fputs or putc instead of fprintf
15469         where appropriate.
15470         * config/i386/gas.h: Ditto.
15471         * config/i386/x86-64.h: Ditto.
15472         * config/i386/att.h: Ditto.
15473
15474 2009-07-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15475
15476         * expmed.c (emit_store_flag): Use a recursive call to optimize the
15477         xor case.
15478
15479 2009-07-24  Martin Jambor  <mjambor@suse.cz>
15480
15481         * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
15482         (ipa_push_func_to_list_1): Declare.
15483         (ipa_push_func_to_list): New function.
15484
15485         * ipa-prop.c (ipa_push_func_to_list_1): New function.
15486         (ipa_init_func_list): Call ipa_push_func_to_list_1.
15487         (ipa_push_func_to_list): Removed.
15488         (ipa_pop_func_from_list): Clear node_enqueued flag.
15489
15490 2009-07-24  Andreas Krebbel  <krebbel1@de.ibm.com>
15491
15492         * config/s390/s390.c (override_options): Default
15493         max-unrolled-insns to 100 for z10 tuning.
15494
15495 2009-07-24  Tobias Grosser  <grosser@fim.uni-passau.de>
15496
15497         * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
15498         tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
15499         tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
15500         tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
15501         tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
15502         tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
15503         lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
15504
15505 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
15506
15507         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
15508         use default set in mingw32.h header.
15509         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
15510         64-bit /mingw/include path.
15511         (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
15512         path.
15513
15514 2009-07-23  Neil Vachharajani  <nvachhar@google.com>
15515
15516         PR rtl-optimization/40209
15517         * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
15518
15519 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
15520
15521         * config/i386/i386.c: Use ASM_LONG instead of .long.  Concatenate
15522         ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
15523         with the rest of string where appropriate.  Use fputs or putc
15524         instead of fprintf where appropriate.
15525
15526 2009-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
15527             Pat Haugen  <pthaugen@us.ibm.com>
15528             Revital Eres <ERES@il.ibm.com>
15529
15530         * config/rs6000/vector.md: New file.  Move most of the vector
15531         expander support here from altivec.md to allow for the VSX vector
15532         unit in the future.  Add support for secondary_reload patterns.
15533         Rewrite the patterns for vector comparison, and vector comparison
15534         predicate instructions so that the RTL expresses the desired
15535         behavior, instead of using unspec.
15536
15537         * config/rs6000/constraints.md ("f" constraint): Use
15538         rs6000_constraints to hold the precalculated register class.
15539         ("d" constraint): Ditto.
15540         ("wd" constraint): New constraint for VSX.
15541         ("wf" constraint): Ditto.
15542         ("ws" constraint): Ditto.
15543         ("wa" constraint): Ditto.
15544         ("wZ" constraint): Ditto.
15545         ("j" constraint): Ditto.
15546
15547         * config/rs6000/predicates.md (vsx_register_operand): New
15548         predicate for VSX.
15549         (vfloat_operand): New predicate for vector.md.
15550         (vint_operand): Ditto.
15551         (vlogical_operand): Ditto.
15552         (easy_fp_constant): If VSX, 0.0 is an easy constant.
15553         (easy_vector_constant): Add VSX support.
15554         (altivec_indexed_or_indirect_operand): New predicate for
15555         recognizing Altivec style memory references with AND -16.
15556
15557         * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
15558         for vector secondary reload support.
15559         (rs6000_vector_reg_class): Delete, replacing it with
15560         rs6000_constraints.
15561         (rs6000_vsx_reg_class): Ditto.
15562         (rs6000_constraints): New array to hold the register classes of
15563         each of the register constraints that can vary at runtime.
15564         (builtin_mode_to_type): New static array for builtin function type
15565         creation.
15566         (builtin_hash_table): New static hash table for builtin function
15567         type creation.
15568         (TARGET_SECONDARY_RELOAD): Define target hook.
15569         (TARGET_IRA_COVER_CLASSES): Ditto.
15570         (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
15571         registers are 128 bits if VSX memory reference instructions are used.
15572         (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
15573         unit is being used.
15574         (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
15575         (rs6000_debug_reg_global): Move -mdebug=reg statements here.
15576         Print several of the scheduling related parameters.
15577         (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
15578         rs6000_constraints instead of rs6000_vector_reg_class.  Move
15579         -mdebug=reg code to rs6000_debug_reg_global.  Add support for
15580         -mvsx-align-128 debug switch.  Drop testing float_p if VSX or
15581         Altivec.  Add VSX support.  Setup for secondary reload support on
15582         Altivec/VSX registers.
15583         (rs6000_override_options): Make power7 set the scheduling groups
15584         like the power5.  Add support for new debug switches to override
15585         the scheduling defaults.  Temporarily disable -mcpu=power7 from
15586         setting -mvsx.  Add support for debug switches -malways-hint,
15587         -msched-groups, and -malign-branch-targets.
15588         (rs6000_buitlin_conversion): Add support for returning unsigned
15589         vector conversion functions to fix regressions due to stricter
15590         type checking.
15591         (rs6000_builtin_mul_widen_even): Ditto.
15592         (rs6000_builtin_mul_widen_odd): Ditto.
15593         (rs6000_builtin_vec_perm): Ditto.
15594         (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
15595         (rs6000_expand_vector_init): Initial VSX support for using xxlxor
15596         to zero a register.
15597         (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
15598         generated upstream.
15599         (bdesc_3arg): Add builtins for unsigned types.  Add builtins for
15600         VSX types for bit operations.  Changes to accomidate vector.md.
15601         (bdesc_2arg): Ditto.
15602         (bdesc_1arg): Ditto.
15603         (struct builtin_description_predicates): Rewrite predicate
15604         handling so that RTL describes the operation, instead of passing
15605         the instruction to be used as a string argument.
15606         (bdesc_altivec_preds): Ditto.
15607         (altivec_expand_predicate_builtin): Ditto.
15608         (altivec_expand_builtin): Ditto.
15609         (rs6000_expand_ternop_builtin): Use a switch instead of an if
15610         statement for vsldoi support.
15611         (altivec_expand_ld_builtin): Change to use new names from vector.md.
15612         (altivec_expand_st_builtin): Ditto.
15613         (paired_expand_builtin): Whitespace changes.
15614         (rs6000_init_builtins): Add V2DF/V2DI types.  Initialize the
15615         builtin_mode_to_type table for secondary reload.  Call
15616         builtin_function_type to build random builtin functions.
15617         (altivec_init_builtins): Change to use builtin_function_type to
15618         create builtin function types dynamically as we need them.
15619         (builtin_hash_function): New support for hashing the tree types
15620         for builtin function as we need it, rather than trying to build
15621         all of the trees that we need.  Add initial preliminary VSX support.
15622         (builtin_function_type): Ditto.
15623         (builtin_function_eq): Ditto.
15624         (builtin_hash_struct): Ditto.
15625         (rs6000_init_builtins): Ditto.
15626         (rs6000_common_init_builtins): Ditto.
15627         (altivec_init_builtins): Ditto.
15628         (rs6000_common_init_builtins): Ditto.
15629         (enum reload_reg_type): New enum for simplifing reg classes.
15630         (rs6000_reload_register_type): Simplify register classes into GPR,
15631         Vector, and other registers.  Altivec and VSX addresses in reload.
15632         (rs6000_secondary_reload_inner): Ditto.
15633         (rs6000_ira_cover_classes): New target hook, that returns the
15634         appropriate cover classes, based on -mvsx being used or not.
15635         (rs6000_secondary_reload_class): Add VSX support.
15636         (get_vec_cmp_insn): Delete, rewrite vector conditionals.
15637         (get_vsel_insn): Ditto.
15638         (rs6000_emit_vector_compare): Rewrite vector conditional support
15639         so that where we can, we use RTL operators, instead of blindly use
15640         UNSPEC.
15641         (rs6000_emit_vector_select): Ditto.
15642         (rs6000_emit_vector_cond_expr): Ditto.
15643         (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
15644         (create_TOC_reference): Add -mdebug=addr support.
15645         (emit_frame_save): VSX loads/stores need register indexed addressing.
15646
15647         * config/rs6000/rs6000.md: Include vector.md.
15648
15649         * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
15650
15651         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15652         support for V2DI, V2DF in logical, permute, select operations.
15653
15654         * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
15655         switch for vsx/power7.
15656         (-mvsx-scalar-memory): Ditto.
15657         (-mvsx-align-128): Ditto.
15658         (-mallow-movmisalign): Ditto.
15659         (-mallow-df-permute): Ditto.
15660         (-msched-groups): Ditto.
15661         (-malways-hint): Ditto.
15662         (-malign-branch-targets): Ditto.
15663
15664         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
15665         hook instead.
15666         (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
15667         (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
15668         (rs6000_vector_reg_class): Delete.
15669         (rs6000_vsx_reg_class): Ditto.
15670         (enum rs6000_reg_class_enum): New enum for the constraints that
15671         vary based on target switches.
15672         (rs6000_constraints): New array to hold the register class for all
15673         of the register constraints that vary based on the switches used.
15674         (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
15675         (enum rs6000_builtins): Add unsigned varients for the builtin
15676         declarations returned by target hooks for expanding multiplies,
15677         select, and permute operations.  Add VSX builtins.
15678         (enum rs6000_builtin_type_index): Add entries for VSX.
15679         (V2DI_type_node): Ditto.
15680         (V2DF_type_node): Ditto.
15681         (unsigned_V2DI_type_node): Ditto.
15682         (bool_long_type_node): Ditto.
15683         (intDI_type_internal_node): Ditto.
15684         (uintDI_type_internal_node): Ditto.
15685         (double_type_internal_node): Ditto.
15686
15687         * config/rs6000/altivec.md (whole file): Move all expanders to
15688         vector.md from altivec.md.  Rename insn matching functions to be
15689         altivec_foo.
15690         (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
15691         (altivec_vcmp*): Ditto.
15692         (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
15693         (VM): New iterator for moves that includes the VSX types.
15694         (altivec_vperm_<mode>): Add VSX types.  Add unsigned types.
15695         (altivec_vperm_<mode>_uns): New, for unsigned types.
15696         (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
15697         (altivec_eq<mode>): Ditto.
15698         (altivec_gt<mode>): Ditto.
15699         (altivec_gtu<mode>): Ditto.
15700         (altivec_eqv4sf): Ditto.
15701         (altivec_gev4sf): Ditto.
15702         (altivec_gtv4sf): Ditto.
15703         (altivec_vcmpbfp_p): Ditto.
15704
15705 2009-07-23  Richard Earnshaw  <rearnsha@arm.com>
15706
15707         * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to
15708         unsigned HWI.
15709
15710 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
15711
15712         PR target/40832
15713         * config/i386/i386.c (output_387_ffreep): Rewrite to use
15714         ASM_SHORT instead of .word.
15715         * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
15716         instead of .word in asm template.
15717
15718 2009-07-22  Vladimir Makarov  <vmakarov@redhat.com>
15719
15720         PR target/37488
15721         * ira-lives.c (bb_has_abnormal_call_pred): New function.
15722         (process_bb_node_lives): Use it.
15723
15724         * ira.c (setup_cover_and_important_classes): Don't setup
15725         ira_important_class_nums.  Add cover classes to the end of
15726         important classes.
15727         (cover_class_order, comp_reg_classes_func, reorder_important_classes):
15728         New.
15729         (find_reg_class_closure): Use reorder_important_classes.
15730
15731         * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
15732
15733         * config/i386/i386.c (i386_ira_cover_classes): New function.
15734         (TARGET_IRA_COVER_CLASSES): Redefine.
15735
15736         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
15737         importance of order of cover classes in the array.
15738
15739 2009-07-22  Diego Novillo  <dnovillo@google.com>
15740
15741         * tree-pass.h (TDF_EH): Define.
15742         * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
15743         contains TDF_EH, print the EH region number holding GS.
15744         * tree-dump.c (dump_options): Add "eh".
15745         * doc/invoke.texi: Document it.
15746
15747 2009-07-22  Doug Kwan  <dougkwan@google.com>
15748
15749         * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
15750
15751 2009-07-22  Michael Matz  <matz@suse.de>
15752
15753         PR tree-optimization/35229
15754         PR tree-optimization/39300
15755
15756         * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
15757         (inhibit_phi_insertion): New function.
15758         (insert_into_preds_of_block): Call it for REFERENCEs.
15759         (init_pre): Initialize and finalize scalar evolutions.
15760         * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
15761
15762 2009-07-22  Uros Bizjak  <ubizjak@gmail.com>
15763
15764         * config/i386/predicates.md (zero_extended_scalar_load_operand):
15765         Use CONST_VECTOR_NUNITS to determine number of elements.
15766
15767 2009-07-22  Andreas Krebbel  <krebbel1@de.ibm.com>
15768
15769         * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
15770         (U, W): Constraints are now deprecated and will be removed if we
15771         run out of letters.
15772         * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
15773         the file.
15774         ("prefetch"): Add the stcmh instruction for prefetching.
15775         * config/s390/s390.c (s390_symref_operand_p): Function moved. No
15776         changes.
15777         (s390_short_displacement): Return always true if compiling for
15778         machines not providing the long displacement facility.
15779         (s390_mem_constraint): Support the new constraint letter Z.
15780         (s390_check_qrst_address): New function.
15781
15782 2009-07-21  DJ Delorie  <dj@redhat.com>
15783
15784         * config/mep/mep.c (mep_legitimize_arg): Leave control registers
15785         alone too.
15786
15787 2009-07-21  Jason Merrill  <jason@redhat.com>
15788
15789         * c-common.c (max_tinst_depth): Increase default to 1024.
15790
15791 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
15792
15793         * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
15794         (vec_unpacku_float_lo_v4si): Ditto.
15795
15796 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
15797
15798         PR target/40811
15799         * config/i386/sse.md (sse2_cvtudq2ps): New expander.
15800         (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
15801         (builtin_description): Add __builtin_ia32_cvtudq2ps.
15802         (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
15803
15804 2009-07-21  Jakub Jelinek  <jakub@redhat.com>
15805
15806         PR tree-optimization/40813
15807         * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
15808         it.
15809
15810 2009-07-21  Kaz Kojima  <kkojima@gcc.gnu.org>
15811
15812         * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
15813         with a NOP_EXPR if needed.
15814
15815 2009-07-21  Paul Brook <paul@codesourcery.com>
15816
15817         * tree-vectorizer.c (increase_alignment): Handle nested arrays.
15818         Terminate debug dump with newline.
15819
15820 2009-07-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15821
15822         * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
15823         Cast "1" to unsigned HOST_WIDE_INT.
15824         (compute_zdepdi_operands): Limit maximum length to 64 bits.  Limit
15825         deposit length to the maximum length - lsb.  Extend length if
15826         HOST_BITS_PER_WIDE_INT is 32.
15827
15828 2009-07-20  Olatunji Ruwase <tjruwase@google.com>
15829
15830         * cgraph.h (constant_pool_htab): New function.
15831         (constant_descriptor_tree): Move from varasm.c.
15832         * varasm.c (constant_pool_htab): New function.
15833         (constant_descriptor_tree): Move to cgraph.h.
15834
15835 2009-07-20  Olatunji Ruwase  <tjruwase@google.com>
15836
15837         * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
15838
15839 2009-07-20  Shujing Zhao  <pearly.zhao@oracle.com>
15840
15841         * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
15842         $(VARRAY_H).
15843
15844 2009-07-20  Xinliang David Li  <davidxl@google.com>
15845
15846         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
15847
15848 2009-07-20  Adam Nemet  <anemet@caviumnetworks.com>
15849
15850         * config/mips/mips.md (move_type): Add arith.
15851         (type): Handle arith.
15852         (zero_extendsidi2): Rename this into ...
15853         (*zero_extendsidi2): ... this.  Don't match if ISA_HAS_EXT_INS.
15854         (zero_extendsidi2): New expander.
15855         (*zero_extendsidi2_dext): New pattern.
15856
15857 2009-07-20  Nick Clifton  <nickc@redhat.com>
15858
15859         * config.gcc (mips64-*-*): Add definition of tm_defines in order
15860         to set MIPS_ABI_DEFAULT.
15861         * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
15862
15863 2009-07-20  Jakub Jelinek  <jakub@redhat.com>
15864
15865         * tree-object-size.c (addr_object_size): Handle unions with
15866         array in it as last field of structs in __bos (, 1) as __bos (, 0).
15867
15868         PR tree-optimization/40792
15869         * tree.c (build_function_type_skip_args): Remove bogus assert.
15870
15871 2009-07-20  Jan Hubicka  <jh@suse.cz>
15872             Martin Jambor  <mjambor@suse.cz>
15873
15874         * cgraph.h (combined_args_to_skip): New field.
15875         * cgraph.c (cgraph_create_virtual_clone): Properly handle
15876         combined_args_to_skip and args_to_skip.
15877         * tree-inline.c (update_clone_info): New function.
15878         (tree_function_versioning): Call update_clone_info.
15879         * cgraphunit.c (cgraph_materialize_clone): Dump materialized
15880         functions.
15881         (cgraph_materialize_all_clones): More extensive dumping, working
15882         with combined_args_to_skip rather than args_to_skip.
15883
15884 2009-07-20  Ira Rosen  <irar@il.ibm.com>
15885
15886         * tree-vectorizer.h (vectorizable_condition): Add parameters.
15887         * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
15888         (get_initial_def_for_reduction): Likewise.
15889         (vectorizable_reduction): Skip the check of first operand in case
15890         of COND_EXPR. Add check that it is outer loop vectorization if
15891         nested cycle was detected. Call vectorizable_condition() for
15892         COND_EXPR. If reduction epilogue cannot be created do not fail for
15893         nested cycles (if it is not double reduction). Assert that there
15894         is only one type in the loop in case of COND_EXPR. Call
15895         vectorizable_condition() to vectorize COND_EXPR.
15896         * tree-vect-stmts.c (vectorizable_condition): Update comment.
15897         Add parameters. Allow nested cycles if called from
15898         vectorizable_reduction(). Use reduction vector variable if provided.
15899         (vect_analyze_stmt): Call vectorizable_reduction() before
15900         vectorizable_condition().
15901         (vect_transform_stmt): Update call to vectorizable_condition().
15902
15903 2009-07-20  Christian Bruel  <christian.bruel@st.com>
15904
15905         * config/sh/sh.opt (-mfmovd): Resurrect and document.
15906         * doc/invoke.texi (-mfmovd): Likewise.
15907         * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
15908
15909 2009-07-20  Jan Hubicka  <jh@suse.cz>
15910
15911         * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
15912         when handling SSA name.
15913
15914 2009-07-19  Jan Hubicka  <jh@suse.cz>
15915
15916         PR tree-optimization/40676
15917         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
15918         virtual PHIs in empty BBs.
15919
15920 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
15921
15922         * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
15923         re-expanded the compound use gen_lowpart instead to convert to the
15924         desired mode.
15925
15926 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
15927
15928         * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
15929         OUTER_CONST arguments.
15930         <LSHIFTRT>: Use them to allow widening if the bits shifted in from
15931         the new wider mode will be masked off.
15932         (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
15933
15934 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
15935
15936         * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
15937         high-order bits are zero.
15938
15939 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
15940
15941         * combine.c (simplify_shift_const_1): Split code to determine
15942         shift_mode into ...
15943         (try_widen_shift_mode): ... here.  Allow widening for ASHIFTRT if the
15944         new bits shifted in are identical to the old sign bit.
15945
15946 2009-07-18  Richard Guenther  <rguenther@suse.de>
15947
15948         PR c/40787
15949         * gimplify.c (gimplify_call_expr): Reject code using results from
15950         functions returning void.
15951
15952 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
15953
15954         * doc/md.texi: Document the new PowerPC "es" constraint.
15955         Document that "m" can include automodified addresses on this target,
15956         and explain how %U must be used.  Extend the "Q" and "Z" documentation
15957         to suggest "es" as well as "m".
15958         * config/rs6000/constraints.md (es): New memory constraint.
15959         (Q, Z): Update strings to match new documentation.
15960
15961 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
15962
15963         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
15964         offset from virtual_stack_vars_rtx and arg_pointer_rtx.
15965         * config/rs6000/predicates.md (volatile_mem_operand): Use
15966         offsettable_nonstrict_memref_p.
15967         * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
15968         (*floatunssidf2_internal): Likewise.
15969         (*fix_truncdfsi2_internal): Likewise.
15970         (*fix_trunctfsi2_internal): Likewise.
15971
15972 2009-07-17  Anatoly Sokolov  <aesok@post.ru>
15973
15974         * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
15975         atmega32u2 devices.
15976         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
15977
15978 2009-07-17  Richard Guenther  <rguenther@suse.de>
15979
15980         PR c/40401
15981         * tree-pass.h (pass_diagnose_omp_blocks): Declare.
15982         (pass_warn_unused_result): Likewise.
15983         (TODO_set_props): Remove.
15984         * omp-low.c (diagnose_omp_structured_block_errors): Change to
15985         run as a pass.
15986         (pass_diagnose_omp_blocks): Define.
15987         * c-decl.c (pop_file_scope): Do not finalize the CU here.
15988         (c_gimple_diagnostics_recursively): Remove.
15989         (finish_function): Do not call it.
15990         (c_write_global_declarations): Continue after errors.
15991         Finalize the CU here.
15992         * c-gimplify.c (c_genericize): Do not gimplify here.
15993         * c-common.c (c_warn_unused_result): Move ...
15994         * tree-cfg.c (do_warn_unused_result): ... here.
15995         (run_warn_unused_result): New function.
15996         (gate_warn_unused_result): New function.
15997         (pass_warn_unused_result): New pass.
15998         * c-common.h (c_warn_unused_result): Remove.
15999         * flags.h (flag_warn_unused_result): Declare.
16000         * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
16001         * opts.c (flag_warn_unused_result): Initialize to false.
16002         * toplev.c (compile_file): Add comment.
16003         * omp-low.c (create_omp_child_function): Do not register
16004         the function with the frontend.
16005         (diagnose_omp_structured_block_errors): Prepare to be
16006         called as optimization pass.
16007         (gate_diagnose_omp_blocks): New function.
16008         (pass_diagnose_omp_blocks): New pass.
16009         * cgraph.h (cgraph_optimize): Remove.
16010         (cgraph_analyze_function): Likewise.
16011         * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
16012         * cgraphunit.c (cgraph_lower_function): Lower nested functions
16013         before their parents here.
16014         (cgraph_finalize_function): Not here.
16015         (cgraph_analyze_function): Gimplify functions here.
16016         (cgraph_finalize_compilation_unit): Continue after errors.
16017         Optimize the callgraph from here.
16018         (cgraph_optimize): Make static.
16019         * langhooks.c (write_global_declarations): Finalize the CU.
16020         * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
16021         (gimplify_function_tree): Assert we gimplify only once.
16022         Set PROP_gimple_any property.
16023         * tree-nested.c (gimplify_all_functions): New function.
16024         (lower_nested_functions): Gimplify all nested functions.
16025         * gimple.h (diagnose_omp_structured_block_errors): Remove.
16026         * passes.c (init_optimization_passes): Add pass_warn_unused_result
16027         and pass_diagnose_omp_blocks after gimplification.  Do not
16028         set TODO_set_props on all_lowering_passes.
16029         (execute_one_pass): Do not handle TODO_set_props.
16030         * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
16031         (gimplify.o): Add tree-pass.h dependency.
16032         * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
16033         (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
16034         (unsave_r): Likewise.
16035         * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
16036         temporary variable.
16037
16038 2009-07-17  Sandra Loosemore  <sandra@codesourcery.com>
16039
16040         * doc/service.texi (Service): Restore previously removed link,
16041         which isn't broken after all.
16042
16043 2009-07-17  Richard Guenther  <rguenther@suse.de>
16044
16045         PR tree-optimization/40321
16046         * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
16047         PHI nodes to the maximal set.
16048         (make_values_for_phi): Add PHI arguments to the maximal set.
16049         (execute_pre): Dump PHI_GEN and the maximal set.
16050
16051 2009-07-17  Jakub Jelinek  <jakub@redhat.com>
16052
16053         PR c++/40780
16054         * gimplify.c (gimplify_conversion): Don't change non-conversions into
16055         VIEW_CONVERT_EXPR.
16056
16057 2009-07-16  Sandra Loosemore  <sandra@codesourcery.com>
16058
16059         * doc/extend.texi (Nested Functions): Replace broken link with
16060         textual reference.
16061         * doc/service.texi (Service): Remove broken link.
16062
16063 2009-07-16  H.J. Lu  <hongjiu.lu@intel.com>
16064
16065         PR bootstrap/40781
16066         * builtins.c (expand_builtin_memcmp): Use loc instead of
16067         EXPR_LOCATION (exp).
16068         (expand_builtin_strncmp): Likewise.
16069
16070 2009-07-17  Aldy Hernandez  <aldyh@redhat.com>
16071             Manuel López-Ibáñez  <manu@gcc.gnu.org>
16072
16073         PR 40435
16074         * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
16075         builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
16076         tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
16077         c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
16078         calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
16079         tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
16080         tree-inline.c, c-common.c, c-common.h, gimple.c,
16081         tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
16082         convert.c: Add location argument to fold_{unary,binary,ternary},
16083         fold_build[123], build_call_expr, build_size_arg,
16084         build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
16085         fold_build1_initializer, fold_build2_initializer,
16086         fold_build3_initializer, fold_build_call_array,
16087         fold_build_call_array_initializer, fold_single_bit_test,
16088         omit_one_operand, omit_two_operands, invert_truthvalue,
16089         fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
16090         combine_comparisons, fold_builtin_*, fold_call_expr,
16091         build_range_check, maybe_fold_offset_to_address, round_up,
16092         round_down.
16093
16094 2009-07-16  Jason Merrill  <jason@redhat.com>
16095
16096         PR libstdc++/37907
16097         * c-common.c (c_common_reswords): Add __is_standard_layout
16098         and __is_trivial.
16099         * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
16100         * doc/implement-cxx.texi: New.
16101         * doc/gcc.texi: Include it.
16102
16103 2009-07-16  DJ Delorie  <dj@redhat.com>
16104
16105         * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
16106         compares that may be indirectly affected by previous instructions.
16107
16108 2009-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16109
16110         * builtins.c (do_mpc_arg2): New.
16111         (fold_builtin_2): Fold builtin cpow.
16112         * real.h (HAVE_mpc_pow): New.
16113
16114 2009-07-16  Bingfeng Mei  <bmei@broadcom.com>
16115
16116         * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
16117         comparison to skip unprofitable schedule
16118
16119 2009-07-16  Simon Baldwin  <simonb@google.com>
16120
16121         * gcc.c (option_map): New flag -no-canonical-prefixes.
16122         * (display_help): Print help text for new flag.
16123         * (process_command): Move options translation and language specifics
16124         and handle new flag early.  Use it to set a function pointer to a
16125         prefix builder.  Replace make_relative_prefix calls with calls to
16126         the function pointed to.  Ignore new flag in regular options handling.
16127         * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
16128
16129 2009-07-15  DJ Delorie  <dj@redhat.com>
16130
16131         * config/mep/mep.md (sibcall_internal): Change register to avoid
16132         argument registers.
16133         (sibcall_value_internal): Likewise.
16134
16135 2009-07-15  Eric Botcazou  <ebotcazou@adacore.com>
16136
16137         PR rtl-optimization/40710
16138         * resource.c (mark_target_live_regs): Reset DF problem to LR.
16139
16140 2009-07-15  Adam Nemet  <anemet@caviumnetworks.com>
16141
16142         * config/mips/mips.md (*extenddi_truncate<mode>,
16143         *extendsi_truncate<mode>): Change type attribute to move_type
16144         with shift_shift.  Split out code handling exts from here ...
16145         (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
16146         pattern.
16147         (*extendhi_truncateqi): Change type attribute to move_type with
16148         shift_shift.  Split out code handling exts from here ...
16149         (*extendhi_truncateqi_exts): ... to this new pattern.
16150
16151 2009-07-15  Uros Bizjak  <ubizjak@gmail.com>
16152
16153         * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
16154         instead of "and" with inverted sign bit mask value.  Use
16155         "nonimmediate_operand" for operand 1 and operand 2 predicate.
16156         Allocate registers only for operand 4 and operand 5.
16157
16158 2009-07-15  Jakub Jelinek  <jakub@redhat.com>
16159
16160         PR middle-end/40747
16161         * fold-const.c (fold_cond_expr_with_comparison): When folding
16162         < and <= to MIN, make sure the MIN uses the same type as the
16163         comparison's operands.
16164
16165 2009-07-15  Richard Earnshaw  <rearnsha@arm.com>
16166
16167         * arm.md (ior_xor): New code iterator.
16168         (split for ior/xor with shift and zero-extend): New split pattern.
16169         * arm/predicates.md (subreg_lowpart_operator): New special predicate.
16170
16171 2009-07-15  Richard Guenther  <rguenther@suse.de>
16172
16173         * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
16174         offset member.
16175
16176 2009-07-15  Richard Guenther  <rguenther@suse.de>
16177
16178         PR middle-end/40753
16179         * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
16180
16181 2009-07-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
16182
16183         * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
16184         handle 2.6.30 kernel.
16185
16186 2009-07-15  DJ Delorie  <dj@redhat.com>
16187
16188         * config/mep/mep.md (sibcall_internal): Change register to allow
16189         for 24-bit addresses.
16190         (sibcall_value_internal): Likewise.
16191
16192 2009-07-14  Ghassan Shobaki  <ghassan.shobaki@amd.com>
16193
16194         * doc/invoke.texi: Added descriptions of the  scheduling heuristics
16195         that are enabled/disabled by the flags introduced by a previous patch.
16196
16197 2009-07-14  DJ Delorie  <dj@redhat.com>
16198
16199         * config/mep/mep.md (sibcall_internal): Include non-toggling
16200         non-jmp case.
16201         (sibcall_value_internal): Likewise.
16202
16203 2009-07-14  Taras Glek  <tglek@mozilla.com>
16204             Rafael Espindola  <espindola@google.com>
16205
16206         * doc/sourcebuild.texi: Document install-plugin target.
16207         * configure.ac: Added install-plugin target to language makefiles.
16208         * configure: Regenerate.
16209         * Makefile.in (install-plugin): Install more headers,
16210         depend on lang.install-plugin.
16211
16212 2009-07-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16213
16214         * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
16215         translation.
16216
16217 2009-07-14  DJ Delorie  <dj@redhat.com>
16218
16219         * config/mep/mep.c (mep_vliw_jmp_match): New function.
16220         * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
16221         * config/mep/mep.md (sibcall_internal): Change test from
16222         mep_vliw_mode_match to mep_vliw_jmp_match.
16223         (sibcall_value_internal): Likewise.
16224
16225 2009-07-14  Uros Bizjak  <ubizjak@gmail.com>
16226
16227         * config/i386/sse.md (copysign<mode>3): New expander.
16228         * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
16229         * config/i386/i386.c (ix86_build_signbit_mask): Make public.
16230         Use ix86_build_const_vector.
16231         (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
16232         IX86_BUILTIN_CPYSGNPD.
16233         (builtin_description): Add __builtin_ia32_copysignps and
16234         __builtin_ia32_copysignpd.
16235         (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
16236         and BUILT_IN_COPYSIGNF.
16237
16238 2009-07-13  Jason Merrill  <jason@redhat.com>
16239
16240         * builtins.c (can_trust_pointer_alignment): New fn.
16241         (get_pointer_alignment): Factor it out from here.
16242         * tree.h: Declare it.
16243
16244 2009-07-14  David Edelsohn  <edelsohn@gnu.org>
16245
16246         * config/rs6000/predicates.md (offsettable_mem_operand): Test
16247         RTX_AUTOINC class.
16248
16249 2009-07-14  Dodji Seketeli  <dodji@redhat.com>
16250
16251         PR debug/40705
16252         PR c++/403057
16253         * dwarf2.out.c (gen_type_die_with_usage): Added comment.
16254
16255 2009-07-14  Richard Guenther  <rguenther@suse.de>
16256             Andrey Belevantsev <abel@ispras.ru>
16257
16258         PR middle-end/40745
16259         * cfgexpand.c (partition_stack_vars): Do not bother to update
16260         alias information when not optimizing.
16261
16262 2009-07-14  Richard Guenther  <rguenther@suse.de>
16263             Andrey Belevantsev <abel@ispras.ru>
16264
16265         * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
16266         (pt_solution_set): Likewise.
16267         * tree-ssa-alias.c (refs_may_alias_p_1): Export.
16268         * tree-ssa-structalias.c (pt_solution_set): New function.
16269         * final.c (rest_of_clean_state): Free SSA data structures.
16270         * print-rtl.c (print_decl_name): Remove.
16271         (print_mem_expr): Implement in terms of print_generic_expr.
16272         * alias.c (ao_ref_from_mem): New function.
16273         (rtx_refs_may_alias_p): Likewise.
16274         (true_dependence): Query alias-export info.
16275         (canon_true_dependence): Likewise.
16276         (write_dependence_p): Likewise.
16277         * tree-dfa.c (get_ref_base_and_extent): For void types leave
16278         size unknown.
16279         * emit-rtl.c (component_ref_for_mem_expr): Remove.
16280         (mem_expr_equal_p): Use operand_equal_p.
16281         (set_mem_attributes_minus_bitpos): Do not use
16282         component_ref_for_mem_expr.
16283         * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
16284         (update_alias_info_with_stack_vars): Likewise.
16285         (partition_stack_vars): Call update_alias_info_with_stack_vars.
16286         * tree-ssa.c (delete_tree_ssa): Do not release SSA names
16287         explicitly nor clear stmt operands.
16288         Free the decl-to-pointer map.
16289         * tree-optimize.c (execute_free_datastructures): Do not free
16290         SSA data structures here.
16291         * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
16292         * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
16293         (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
16294         dependencies.
16295         (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
16296
16297 2009-07-13  DJ Delorie  <dj@redhat.com>
16298
16299         * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
16300         unrolling at the right iteration count.
16301
16302         * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
16303         calculations.
16304
16305 2009-07-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
16306
16307         * haifa-sched.c (rank_for_schedule): Introduced flags to
16308         enable/disable individual scheduling heuristics.
16309         * common.opt: Introduced flags to enable/disable individual
16310         heuristics in the scheduler.
16311         * doc/invoke.texi: Introduced flags to enable/disable individual
16312         heuristics in the scheduler.
16313
16314 2009-07-13  Kai Tietz  <kai.tietz@onevision.com>
16315
16316         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
16317         config/i386/mingw-tls.c.
16318         * config/i386/mingw-tls.c: Removed.
16319
16320 2009-07-13  Ira Rosen  <irar@il.ibm.com>
16321
16322         * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
16323         checks access only relevant statements.
16324         (vectorizable_reduction): Likewise.
16325
16326 2009-07-12  Kai Tietz  <kai.tietz@onevision.com>
16327
16328         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
16329         just for 32-bit case.
16330
16331 2009-07-12  Jan Hubicka  <jh@suse.cz>
16332
16333         PR tree-optimization/40585
16334         * except.c (expand_resx_expr): When there already is resume
16335         instruction, produce linked list.
16336         (build_post_landing_pads): Assert that resume is empty.
16337         (connect_post_landing_pads): Handle resume lists.
16338         (dump_eh_tree): Dump resume list.
16339
16340 2009-07-12  Ira Rosen  <irar@il.ibm.com>
16341
16342         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
16343         with additional argument.
16344         * tree-vectorizer.h (enum vect_def_type): Add
16345         vect_double_reduction_def.
16346         (vect_is_simple_reduction): Add argument.
16347         * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
16348         indentation.
16349         (vect_analyze_scalar_cycles_1): Detect double reduction. Call
16350         vect_is_simple_reduction with additional argument.
16351         (vect_analyze_loop_operations): Handle exit phi nodes in case of
16352         double reduction.
16353         (reduction_code_for_scalar_code): Handle additional codes by
16354         returning ERROR_MARK for them. Fix comment and indentation.
16355         (vect_is_simple_reduction): Fix comment, add argument to specify
16356         double reduction. Detect double reduction.
16357         (get_initial_def_for_induction): Fix indentation.
16358         (get_initial_def_for_reduction): Fix comment and indentation.
16359         Handle double reduction. Create initial definitions that do not
16360         require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
16361         (vect_create_epilog_for_reduction): Fix comment, add argument to
16362         handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
16363         epilogue result extraction. Create double reduction phi node and
16364         replace relevant uses.
16365         (vectorizable_reduction): Call vect_is_simple_reduction with
16366         additional argument. Fix indentation. Update epilogue code treatment
16367         according to the changes in reduction_code_for_scalar_code. Check
16368         for double reduction. Call vect_create_epilog_for_reduction with
16369         additional argument.
16370         * tree-vect-stmts.c (process_use): Handle double reduction, update
16371         documentation.
16372         (vect_mark_stmts_to_be_vectorized): Handle double reduction.
16373         (vect_get_vec_def_for_operand): Likewise.
16374
16375 2009-07-12  Danny Smith  <dansmister@gmail.com>
16376
16377         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
16378         dllexport if !TREE_PUBLIC.
16379         (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
16380
16381 2009-07-11  Anatoly Sokolov  <aesok@post.ru>
16382
16383         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
16384         (avr_extra_arch_macro) Remove declatation.
16385         * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
16386         (avr_extra_arch_macro) Declare as static.
16387         * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
16388
16389 2009-07-11  Jan Hubicka  <jh@suse.cz>
16390
16391         PR middle-end/48388
16392         * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
16393
16394 2009-07-11  Jakub Jelinek  <jakub@redhat.com>
16395
16396         PR debug/40713
16397         * dwarf2out.c (dw_fde_struct): Add in_std_section and
16398         cold_in_std_section bits.
16399         (dwarf2out_begin_prologue): Initialize them.
16400         (dwarf2out_finish): Don't emit FDE range into .debug_ranges
16401         if already covered by text_section or cold_text_section range.
16402
16403         PR rtl-optimization/40667
16404         * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
16405         * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
16406         * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
16407         * config/i386/i386.c (ix86_minimum_alignment): New function.
16408         * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
16409         * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
16410         * emit-rtl.c (gen_reg_rtx): Likewise.
16411         * function.c (assign_parms): Likewise.  If nominal_type needs
16412         bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
16413         rather than passed_type's alignment.
16414
16415         PR target/40668
16416         * function.c (assign_parm_setup_stack): Adjust
16417         MEM_OFFSET (data->stack_parm) if promoted_mode is different
16418         from nominal_mode on big endian.
16419
16420 2009-07-11  Paolo Bonzini  <bonzini@gnu.org>
16421
16422         * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
16423
16424 2009-07-10  DJ Delorie  <dj@redhat.com>
16425
16426         * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
16427
16428 2009-07-10  Mark Mitchell  <mark@codesourcery.com>
16429
16430         * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
16431         attribute.
16432         (thumb2_cbnz): Likewise.
16433
16434 2009-07-10  David Daney  <ddaney@caviumnetworks.com>
16435
16436         PR target/39079
16437         * config.gcc (supported_defaults): Add synci.
16438         (with_synci): Add validation.
16439         (all_defaults): Add synci.
16440         * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
16441         ISA_HAS_SYNCI.
16442         (synci): Same.
16443         * config/mips/mips.opt (msynci): New option.
16444         * config/mips/mips.c (mips_override_options): Warn on use of
16445         -msynci for targets that do now support it.
16446         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
16447         msynci.
16448         * gcc/doc/invoke.texi (-msynci): Document the new option.
16449         * doc/install.texi (--with-synci): Document the new option.
16450
16451 2009-07-10  Richard Guenther  <rguenther@suse.de>
16452
16453         PR tree-optimization/40496
16454         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
16455         the PHI result with a compatible type.
16456
16457 2009-07-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16458
16459         PR 25509
16460         PR 40614
16461         * c.opt (Wunused-result): New.
16462         * doc/invoke.texi: Document it.
16463         * c-common.c (c_warn_unused_result): Use it.
16464
16465 2009-07-09  DJ Delorie  <dj@redhat.com>
16466
16467         * targhooks.c (default_target_can_inline_p): Rename from
16468         default_target_option_can_inline_p.
16469         * targhooks.h (default_target_can_inline_p): Likewise.
16470         * target-def.h (TARGET_CAN_INLINE_P): Rename from
16471         TARGET_OPTION_CAN_INLINE_P.
16472         * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
16473         * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
16474         (mep_target_can_inline_p): Rename from
16475         mep_target_option_can_inline_p.
16476
16477         PR target/40626
16478         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
16479         registers used to pass vectors.
16480
16481         * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
16482
16483 2009-07-09  Tom Tromey  <tromey@redhat.com>
16484
16485         * unwind-dw2-fde-darwin.c: Include dwarf2.h.
16486         * config/mmix/mmix.c: Include dwarf2.h.
16487         * config/rs6000/darwin-fallback.c: Include dwarf2.h.
16488         * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
16489         * config/sh/sh.c: Include dwarf2.h.
16490         * config/i386/i386.c: Include dwarf2.h.
16491         * Makefile.in (DWARF2_H): Remove 'elf'.
16492         * except.c: Include dwarf2.h.
16493         * unwind-dw2.c: Include dwarf2.h.
16494         * dwarf2out.c: Include dwarf2.h.
16495         * unwind-dw2-fde-glibc.c: Include dwarf2.h.
16496         * unwind-dw2-fde.c: Include dwarf2.h.
16497         * dwarf2asm.c: Include dwarf2.h.
16498
16499 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
16500
16501         * haifa-sched.c (insn_finishes_cycle_p): New static function.
16502         (max_issue): Use it.
16503         * sched-int.h (struct sched_info: insn_finishes_block_p): New
16504         scheduler hook.
16505         * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
16506         (region_sched_info): Update.
16507         * sched-ebb.c (ebb_sched_info): Update.
16508         * modulo-sched.c (sms_sched_info): Update.
16509         * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
16510
16511 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
16512
16513         * varasm.c (build_constant_desc): Don't share RTL in pool entries.
16514
16515 2009-07-09  Basile Starynkevitch  <basile@starynkevitch.net>
16516
16517         * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
16518
16519 2009-07-09  Jakub Jelinek  <jakub@redhat.com>
16520
16521         PR middle-end/40692
16522         * fold-const.c (fold_cond_expr_with_comparison): Don't replace
16523         arg1 with arg01 if arg1 is already INTEGER_CST.
16524
16525 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
16526
16527         * simplify-rtx.c (simplify_binary_operation_1) <AND>:
16528         Transform (and (truncate)) into (truncate (and)).
16529
16530 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
16531
16532         * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
16533         creating LHS paradoxical subregs.  Fix surrounding returns to
16534         use NULL_RTX rather than 0.
16535
16536 2009-07-08  DJ Delorie  <dj@redhat.com>
16537
16538         * config/mep/mep.c (mep_option_can_inline_p): New.
16539         (TARGET_OPTION_CAN_INLINE_P): Define.
16540
16541 2009-07-08  Mark Wielaard  <mjw@redhat.com>
16542
16543         PR debug/40659
16544         * dwarf2out.c (add_data_member_location_attribute): When we have
16545         only a constant offset don't emit a new location description using
16546         DW_OP_plus_uconst, but just add the constant with add_AT_int, when
16547         dwarf_version > 2.
16548
16549 2009-07-08  Richard Henderson  <rth@redhat.com>
16550
16551         PR target/38900
16552         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
16553         (enum reg_class): Add CLOBBERED_REGS.
16554         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
16555         * config/i386/i386.c (ix86_conditional_register_usage): Moved
16556         from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
16557         (ix86_function_ok_for_sibcall): Tidy.  Disallow MS->SYSV sibcalls.
16558         (ix86_expand_call): Use sibcall_insn_operand when needed.  Don't
16559         force 64-bit sibcalls into R11.
16560         * config/i386/constraints.md (U): New constraint.
16561         * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
16562         (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
16563         (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
16564
16565 2009-07-08  Shujing Zhao  <pearly.zhao@oracle.com>
16566
16567         * basic-block.h (dump_regset, debug_regset): Remove duplicate
16568         prototypes.
16569         * c-objc-common.h (c_initialize_diagnostics): Ditto.
16570         * ebitmap.h (dump_ebitmap): Ditto.
16571         * optabs.h (optab_libfunc): Ditto.
16572         * tree.h (tree_expr_nonzero_warnv_p): Ditto.
16573         * tree-flow.h (vect_can_force_dr_alignment_p,
16574         get_vectype_for_scalar_type): Ditto.
16575         (vectorize_loops): Move prototype to ...
16576         * tree-vectorizer.h: ... here. Also, adjust comment.
16577         (vect_set_verbosity_level): Remove duplicate prototype.
16578         * tree-ssa-loop.c: Include tree-vectorizer.h.
16579         * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
16580
16581 2009-07-08  Nick Clifton  <nickc@redhat.com>
16582
16583         * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
16584         forward slash.
16585
16586 2009-07-08  DJ Delorie  <dj@redhat.com>
16587
16588         * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
16589         cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
16590         cpmovtocc_P0S_P1): Mark volatile.  Note which registers are
16591         written to.
16592         * config/mep/intrinsics.md: Regenerated.
16593         * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
16594         registers when asm() or calls are detected.
16595
16596 2009-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16597
16598         PR c++/31246
16599         * gimplify.c (gimplify_expr): Propagate no_warning flag when
16600         gimplifying.
16601         * gimple (gimple_build_call_from_tree): Likewise.
16602         * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
16603         no_warning flag before warning.
16604
16605 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16606
16607         * tree.c (set_expr_locus): Remove.
16608         * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
16609         * c-typeck.c (c_finish_stmt_expr):  Replace EXPR_LOCUS by
16610         EXPR_LOCATION.
16611         * gimplify.c (internal_get_tmp_var): Likewise.
16612         (gimplify_call_expr): Likewise.
16613         (gimplify_one_sizepos): Likewise.
16614
16615 2009-07-07  Eric Botcazou  <ebotcazou@adacore.com>
16616
16617         PR debug/40666
16618         * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
16619         to variables for debugging purposes.
16620
16621 2009-06-23  Mark Loeser  <mark@halcy0n.com>
16622
16623         PR build/40010
16624         * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
16625
16626 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16627
16628         * pretty-print.c (pp_base_format): Remove %J.
16629         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
16630         gcc_cxxdiag_char_table): Likewise.
16631         (init_dynamic_diag_info): Likewise.
16632
16633 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16634
16635         * pretty-print.c (pp_base_format): Remove %H.
16636         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
16637         gcc_cxxdiag_char_table): Likewise.
16638         (init_dynamic_diag_info): Likewise.
16639         * config/mep/mep.c (mep_select_section): Likewise.
16640
16641 2009-07-07  Duncan Sands  <baldrick@free.fr>
16642
16643         * final.c (pass_clean_state): Give the pass a name.
16644         * passes.c (pass_rest_of_compilation): Likewise.
16645         * tree-optimize.c (pass_all_optimizations): Likewise.
16646
16647 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
16648
16649         * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
16650         an extra 'decl' for error_at.
16651
16652 2009-07-07  Jakub Jelinek  <jakub@redhat.com>
16653
16654         PR middle-end/40669
16655         * tree-tailcall.c (adjust_return_value_with_ops,
16656         create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
16657         if it has complex or vector type.
16658
16659 2009-07-07  Olivier Hainque  <hainque@adacore.com>
16660
16661         * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
16662         pthread symbols.
16663
16664 2009-07-07  Basile Starynkevitch  <basile@starynkevitch.net>
16665
16666         * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
16667
16668 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16669
16670         * cgraphunit.c: Replace %J by an explicit location.  Update all calls.
16671         * c-decl.c: Likewise.
16672         * function.c: Likewise.
16673         * varasm.c: Likewise.
16674         * tree-ssa.c: Likewise.
16675         * c-common.c: Likewise.
16676         * tree-cfg.c: Likewise.
16677         * config/spu/spu.c: Likewise.
16678         * config/ia64/ia64.c: Likewise.
16679         * config/v850/v850.c: Likewise.
16680
16681 2009-07-06  DJ Delorie  <dj@redhat.com>
16682
16683         * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
16684         * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
16685         unspecified accesses to control registers.
16686         * config/mep/intrinsics.md: Regenerate.
16687         * config/mep/intrinsics.h: Regenerate.
16688         * config/mep/mep-intrin.h: Regenerate.
16689
16690 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16691
16692         * c-lex.c: Replace %H by an explicit location. Update all calls.
16693         * c-common.c: Likewise.
16694         * c-decl.c: Likewise.
16695         * c-typeck.c: Likewise.
16696         * fold-const.c: Likewise.
16697         * gimplify.c: Likewise.
16698         * stmt.c: Likewise.
16699         * tree-cfg.c: Likewise.
16700         * tree-ssa-loop-niter.c: Likewise.
16701         * tree-vrp.c: Likewise.
16702         * value-prof.c: Likewise.
16703
16704 2009-07-06  Diego Novillo  <dnovillo@google.com>
16705
16706         * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
16707         if it has one.  Handle cases where VAR does not have an
16708         annotation or cfun is NULL.
16709
16710 2009-07-06  Diego Novillo  <dnovillo@google.com>
16711
16712         * tree.c: Include debug.h.
16713         (initialize_tree_contains_struct): New.
16714         (init_ttree): Call it.
16715         (tree_node_structure_for_code): Factor out of ...
16716         (tree_node_structure): ... here.
16717         * treestruct.def (TS_PHI_NODE): Remove.
16718         (TS_GIMPLE_STATEMENT): Remove.
16719
16720 2009-07-06  Diego Novillo  <dnovillo@google.com>
16721
16722         * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
16723         (debug_tree_chain): Handle cycles.
16724
16725 2009-07-06  Nick Clifton  <nickc@redhat.com>
16726             DJ Delorie  <dj@redhat.com>
16727
16728         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
16729         __FMOVD_ENABLED__ is defined.
16730         * config/sh/sh.h
16731         (TARGET_FMOVD): Provide a default definition.
16732         (MASK_FMOVD): Likewise.
16733         (TARGET_CPU_CPP_BUILTINS): Define
16734         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
16735         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
16736         two fmov instructions depending upon whether TARGET_FMOVD is enabled.
16737         (split for DF load from memory into register): Also handle
16738         MEMs which consist of REG+DISP addressing.
16739         (split for DF store from register to memory): Likewise.
16740         (movsf_ie): Always use single fp_mode.
16741         * config/sh/sh.c (sh_override_options): Do not automatically
16742         enable TARGET_MOVD for the SH2A when supporting doubles - leave
16743         that to the -mfmovd command line switch.
16744         (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
16745         (fldi_ok): Always allow.
16746         * config/sh/sh.opt (mfmovd): Remove this switch.
16747         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
16748
16749 2009-07-06  J"orn Rennecke  <joern.rennecke@arc.com>
16750             Kaz Kojima  <kkojima@gcc.gnu.org>
16751
16752         PR rtl-optimization/30807
16753         * postreload.c (reload_combine): For every new use of REG_SUM,
16754         record the use of BASE.
16755
16756 2009-07-06  Jan Hubicka  <jh@suse.cz>
16757
16758         * params.def: Revert my accidental commit at 2009-06-30.
16759
16760 2009-07-04  Ian Lance Taylor  <iant@google.com>
16761
16762         PR target/40636
16763         * config/i386/msformat-c.c (mingw_format_attributes): Declare as
16764         EXPORTED_CONST.
16765         (mingw_format_attribute_overrides): Likewise.
16766
16767 2009-07-04  Jakub Jelinek  <jakub@redhat.com>
16768
16769         PR debug/40596
16770         * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
16771         don't check cfa.reg.  Instead of cfa.indirect use
16772         fde && fde->drap_reg != INVALID_REGNUM test.
16773
16774 2009-07-04  Eric Botcazou  <ebotcazou@adacore.com>
16775
16776         * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
16777
16778 2009-07-03  Vladimir Makarov  <vmakarov@redhat.com>
16779
16780         PR target/40587
16781         * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
16782
16783 2009-07-03  Richard Guenther  <rguenther@suse.de>
16784
16785         PR tree-optimization/40640
16786         * tree-switch-conversion.c (build_arrays): Perform arithmetic
16787         in original type.
16788
16789 2009-07-03  Jan Hubicka  <jh@suse.cz>
16790
16791         * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
16792         for size, reduce amount of inlining.
16793
16794 2009-07-03  Richard Guenther  <rguenther@suse.de>
16795
16796         PR middle-end/34163
16797         * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
16798         if t +- x is known to not overflow and the conversion widens the
16799         operation.
16800         * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
16801
16802 2009-07-03  Jan Hubicka  <jh@suse.cz>
16803
16804         * ipa-pure-const.c (analyze): Update loop optimizer init.
16805         * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
16806         try_remove_empty_loop, remove_empty_loops): Remove.
16807         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
16808         * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
16809         to mark regular loops as neccesary.
16810         (degenerate_phi_p): New function.
16811         (propagate_necessity, remove_dead_phis): Use it.
16812         (forward_edge_to_pdom): Likewise.
16813         (eliminate_unnecessary_stmts): Take care to remove uses of results of
16814         virtual PHI nodes that became unreachable.
16815         (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
16816         * tree-flow.h (remove_empty_loops): Remove.
16817         * passes.c (init_optimization_passes): Remove.
16818
16819 2009-07-03  Uros Bizjak  <ubizjak@gmail.com>
16820
16821         * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
16822         can_create_pseudo_p.
16823         (*fix_trunc<mode>_i387_1): Ditto.
16824         (*floathi<mode>2_1): Ditto.
16825         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
16826         (*fistdi2_1): Ditto.
16827         (*fist<mode>2_1): Ditto.
16828         (frndintxf2_floor): Ditto.
16829         (*fist<mode>2_floor_1): Ditto.
16830         (frndintxf2_ceil): Ditto.
16831         (*fist<mode>2_ceil_1): Ditto.
16832         (frndintxf2_trunc): Ditto.
16833         (frndintxf2_mask_pm): Ditto.
16834         (fxam<mode>2_i387_with_temp): Ditto.
16835         * config/i386/sse.md (mulv16qi3): Ditto.
16836         (*sse2_mulv4si3): Ditto.
16837         (mulv2di3): Ditto.
16838         (sse4_2_pcmpestr): Ditto.
16839         (sse4_2_pcmpistr): Ditto.
16840
16841 2009-07-03  Jan Hubicka  <jh@suse.cz>
16842
16843         * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
16844         (mark_stmt_necessary): Set it.
16845         (mark_operand_necessary): Set it.
16846         (mark_control_dependent_edges_necessary): Set it.
16847         (mark_virtual_phi_result_for_renaming): New function.
16848         (get_live_post_dom): New function.
16849         (forward_edge_to_pdom): New function.
16850         (remove_dead_stmt): Fix handling of control dependences.
16851         (tree_dce_init): Init new bitmap.
16852         (tree_dce_done): Free it.
16853
16854 2009-07-02  Richard Guenther  <rguenther@suse.de>
16855
16856         PR bootstrap/40617
16857         * tree-ssa-structalias.c (new_var_info): Initialize
16858         is_restrict_var.
16859
16860 2009-07-02  Jan Hubicka  <jh@suse.cz>
16861
16862         * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
16863         local.
16864
16865 2009-07-02  Paolo Bonzini  <bonzini@gnu.org>
16866
16867         * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
16868         instead of recomputing it.  Adjust calls.
16869         (emit_store_flag): Adjust recursive calls.
16870
16871 2009-07-02  Richard Guenther  <rguenther@suse.de>
16872
16873         * tree-ssa-live.c (remove_unused_locals): Do not remove
16874         heap variables.
16875         * tree-ssa-structalias.c (handle_lhs_call): Delay setting
16876         of DECL_EXTERNAL for HEAP variables.
16877         (compute_points_to_sets): Set DECL_EXTERNAL for escaped
16878         HEAP variables.  Do not adjust RESTRICT vars.
16879         (find_what_var_points_to): Nobody cares if something
16880         points to READONLY.
16881
16882 2009-07-02  Ben Elliston  <bje@au.ibm.com>
16883
16884         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
16885         pc_low and pc_high declarations to the top of the function.
16886
16887 2009-07-01  DJ Delorie  <dj@redhat.com>
16888
16889         * config/mep/mep.c (mep_handle_option): Leave IVC2 control
16890         registers as fixed.
16891         (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
16892         * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
16893         unspecified accesses to control registers.
16894         * config/mep/intrinsics.md: Regenerate.
16895         * config/mep/intrinsics.h: Regenerate.
16896         * config/mep/mep-intrin.h: Regenerate.
16897
16898 2009-07-01  Anthony Green  <green@moxielogic.com>
16899
16900         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
16901         instruction when possible.
16902         (moxie_expand_prologue): Ditto.  Also, save an instruction and
16903         some complexity by popping off of $r12 instead of $sp.
16904         * config/moxie/moxie.md (movsi_pop): Don't assume $sp.  Take two
16905         operands.
16906
16907 2009-07-01  Richard Henderson  <rth@redhat.com>
16908
16909         PR bootstrap/40347
16910         * function.c (reposition_prologue_and_epilogue_notes): If epilogue
16911         contained no insns, reposition note before last insn.
16912
16913 2009-07-01  Richard Henderson  <rth@redhat.com>
16914
16915         PR debug/40431
16916         * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
16917         DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
16918
16919 2009-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
16920
16921         PR bootstrap/40558
16922         * config/rs6000/rs6000.c (print_operand): Undo change that breaks
16923         darwin9 for printing reg addresses with %y.
16924
16925 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
16926
16927         * combine.c (force_to_mode): Handle TRUNCATE.  Factor out
16928         truncation from operands in binary operations.
16929
16930 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
16931
16932         Revert:
16933         2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
16934         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
16935         subreg of op0 to the original op0.
16936
16937         * expmed.c (store_bit_field_1): Use a temporary as the destination
16938         instead of a paradoxical subreg when we need to truncate the result.
16939
16940 2009-07-01  DJ Delorie  <dj@redhat.com>
16941
16942         * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
16943         names to VLIW variants.
16944         (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
16945         * config/mep/intrinsics.md: Regenerate.
16946         * config/mep/intrinsics.h: Regenerate.
16947         * config/mep/mep-intrin.h: Regenerate.
16948
16949 2009-07-01  Jakub Jelinek  <jakub@redhat.com>
16950
16951         PR debug/40462
16952         * jump.c (returnjump_p): Revert last patch.
16953         * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
16954
16955 2009-07-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16956
16957         PR target/40575
16958         * pa.md (casesi32p): Use jump table label to determine the offset
16959         of the jump table.
16960         (casesi64p): Likewise.
16961
16962         * pa.c (forward_branch_p): Return bool type.  Use instruction
16963         addresses when available.  Assert that INSN has a jump label.
16964         (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
16965         have a jump label.
16966
16967 2009-07-01  Richard Guenther  <rguenther@suse.de>
16968
16969         PR tree-optimization/19831
16970         * tree-ssa-dce.c (propagate_necessity): Calls to functions
16971         that only act as barriers do not make any previous stores necessary.
16972         * tree-ssa-structalias.c (handle_lhs_call): Delay making
16973         HEAP variables global, do not add a constraint from nonlocal.
16974         (find_func_aliases): Handle escapes through return statements.
16975         (compute_points_to_sets): Make escaped HEAP variables global.
16976
16977 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
16978
16979         PR bootstrap/40597
16980         * expmed.c (emit_store_flag): Perform a conversion if necessary,
16981         after reducing a DImode cstore to SImode.
16982
16983 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
16984
16985         * expr.c (expand_expr_real_1): Reinstate fallthrough to
16986         TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
16987
16988 2009-07-01  Maciej W. Rozycki  <macro@linux-mips.org>
16989
16990         * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro.  Set to 1.
16991         * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro.  Redefine the
16992         to 0.
16993         * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
16994         and umod_optab if TARGET_BSD_DIVMOD.
16995         * config/vax/lib1funcs.asm: New file.
16996         * config/vax/t-linux: New file.
16997         * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
16998
16999 2009-06-30  Jakub Jelinek  <jakub@redhat.com>
17000
17001         PR c++/40566
17002         * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
17003         to type arguments that have void type.
17004
17005         PR debug/40573
17006         * dwarf2out.c (gen_formal_parameter_die): Call
17007         equate_decl_number_to_die if node is different from origin.
17008
17009 2009-06-30  Anthony Green  <green@moxielogic.com>
17010
17011         Clean up moxie port for --enable-build-with-cxx.
17012         * config/moxie/moxie.c (moxie_function_value): First two
17013         parameters are const_tree, not tree.
17014         * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
17015         (REG_CLASS_NAMES): Ditto.
17016         (REGNO_REG_CLASS): Ditto.
17017         * config/moxie/moxie-protos.h (moxie_override_options): Declare.
17018         (moxie_function_value): Fix constyness of arguments.
17019
17020 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
17021
17022         * cgraphunit.c (cgraph_finalize_compilation_unit): Call
17023         finalize_size_functions before further processing.
17024         * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
17025         (variable_size): Call self_referential_size on size expressions
17026         that contain a PLACEHOLDER_EXPR.
17027         (size_functions): New static variable.
17028         (copy_self_referential_tree_r): New static function.
17029         (self_referential_size): Likewise.
17030         (finalize_size_functions): New global function.
17031         * tree.c: Include tree-inline.h.
17032         (push_without_duplicates): New static function.
17033         (find_placeholder_in_expr): New global function.
17034         (substitute_in_expr) <tcc_declaration>: Return the replacement object
17035         on equality.
17036         <tcc_expression>: Likewise.
17037         <tcc_vl_exp>: If the replacement object is a constant, try to inline
17038         the call in the expression.
17039         * tree.h (finalize_size_functions): Declare.
17040         (find_placeholder_in_expr): Likewise.
17041         (FIND_PLACEHOLDER_IN_EXPR): New macro.
17042         (substitute_placeholder_in_expr): Update comment.
17043         * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
17044         is true.
17045         (copy_tree_body_r): Likewise.
17046         (copy_tree_body): New static function.
17047         (maybe_inline_call_in_expr): New global function.
17048         * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
17049         (maybe_inline_call_in_expr): Declare.
17050         * Makefile.in (tree.o): Depend on TREE_INLINE_H.
17051         (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
17052         GIMPLE_H.
17053
17054 2009-06-30  Richard Guenther  <rguenther@suse.de>
17055
17056         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
17057         continue walking.
17058         (propagate_necessity): Do not mark reaching defs of stores
17059         as necessary.
17060
17061 2009-06-30  Jan Hubicka  <jh@suse.cz>
17062
17063         * cfgloopanal.c (check_irred): Move into ...
17064         (mark_irreducible_loops): ... here; return true if ireducible
17065         loops was found.
17066         * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
17067         (analyze_function): Try to prove loop finiteness.
17068         * cfgloop.h (mark_irreducible_loops): Update prototype.
17069         * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
17070
17071 2009-06-30  Basile Starynkevitch  <basile@starynkevitch.net>
17072
17073         * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
17074
17075 2009-06-30  Ira Rosen  <irar@il.ibm.com>
17076
17077         PR tree-optimization/40542
17078         * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
17079         types.
17080
17081 2009-06-30  Martin Jambor  <mjambor@suse.cz>
17082
17083         PR tree-optimization/40582
17084         * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
17085         than useless_type_conversion_p.
17086         (generate_subtree_copies): Increment sra_stats.subtree_copies at a
17087         proper place.
17088
17089 2009-06-30  Martin Jambor  <mjambor@suse.cz>
17090
17091         PR middle-end/40554
17092         * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
17093
17094 2009-06-30  Richard Guenther  <rguenther@suse.de>
17095
17096         * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
17097         use ao_ref references.
17098         (walk_aliased_vdefs): Likewise.
17099         * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
17100         * tree-ssa-dce.c (struct ref_data): Remove.
17101         (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
17102         (mark_aliased_reaching_defs_necessary): Adjust.
17103         (mark_all_reaching_defs_necessary_1): Likewise.
17104
17105 2009-06-30  Paolo Bonzini  <bonzini@gnu.org>
17106
17107         PR boostrap/40597
17108         * expmed.c (emit_cstore): New name of emit_store_flag_1.
17109         (emit_store_flag_1): Extract from emit_store_flag, adjust
17110         calls to (what now is) emit_cstore.
17111         (emit_store_flag): Call emit_store_flag_1 and also use it
17112         for what used to be recursive calls.
17113
17114 2009-06-30  Wei Guozhi  <carrot@google.com>
17115
17116         PR/40416
17117         * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
17118         if the target bb post dominates from bb.
17119         * config/i386/i386.c (memory_address_length): Check existence of base
17120         register before using it.
17121
17122 2009-06-30  Nick Clifton  <nickc@redhat.com>
17123             DJ Delorie  <dj@redhat.com>
17124
17125         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
17126         __FMOVD_ENABLED__ is defined.
17127         * config/sh/sh.h
17128         (TARGET_FMOVD): Provide a default definition.
17129         (MASK_FMOVD): Likewise.
17130         (TARGET_CPU_CPP_BUILTINS): Define
17131         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
17132         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
17133         two fmov instructions depending upon whether TARGET_FMOVD is
17134         enabled.
17135         (split for DF load from memory into register): Also handle
17136         MEMs which consist of REG+DISP addressing.
17137         (split for DF store from register to memory): Likewise.
17138         * config/sh/sh.opt (mfmovd): Remove this switch.
17139         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
17140         * config/sh/sh.c (sh_override_options): Do not automatically
17141         enable TARGET_MOVD for the SH2A when supporting doubles - leave
17142         that to the -mfmovd command line switch.
17143
17144         * config/sh/sh.c (broken_move): Do not restrict fldi test to only
17145         the SH4 and SH4A.
17146         (fldi_ok): Always allow.
17147         * config/sh/sh.md (movsf_ie): Always use single fp_mode.
17148
17149 2009-06-29  DJ Delorie  <dj@redhat.com>
17150
17151         * doc/install.texi (mep-x-elf): Correct chip's full name.
17152
17153 2009-06-29  H.J. Lu  <hongjiu.lu@intel.com>
17154
17155         * doc/extend.texi: Fix typo.
17156
17157 2009-06-29  Tom Tromey  <tromey@redhat.com>
17158
17159         * dwarf2.h: Remove.
17160         * Makefile.in (DWARF2_H): New variable.
17161         (except.o): Use it.
17162         (dwarf2out.o): Likewise.
17163         (dwarf2asm.o): Likewise.
17164         * config/i386/t-i386: Use DWARF2_H.
17165         * except.c: Include elf/dwarf2.h.
17166         * unwind-dw2.c: Include elf/dwarf2.h.
17167         * dwarf2out.c: Include elf/dwarf2.h.
17168         (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
17169         <dtprel>: New field.
17170         (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
17171         (size_of_loc_descr): Likewise.
17172         (output_loc_operands_raw): Likewise.
17173         (output_loc_operands): Handle new dtprel field.
17174         (loc_checksum): Update.
17175         (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
17176         * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
17177         * unwind-dw2-fde.c: Include elf/dwarf2.h.
17178         * dwarf2asm.c: Include elf/dwarf2.h.
17179         * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
17180         * config/mmix/mmix.c: Include elf/dwarf2.h.
17181         * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
17182         * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
17183         * config/sh/sh.c: Include elf/dwarf2.h.
17184         * config/i386/i386.c: Include elf/dwarf2.h.
17185
17186 2009-06-29  DJ Delorie  <dj@redhat.com>
17187
17188         * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
17189
17190         * doc/extend.texi: Add MeP attributes and pragmas.
17191         * doc/invoke.text: Add MeP Options.
17192         * doc/contrib.texi: Add MeP contribution.
17193         * doc/md.texi: Add MeP constraints.
17194         * doc/install.texi: Add MeP target.
17195
17196 2009-06-30  Anatoly Sokolov  <aesok@post.ru>
17197
17198         * target.h (struct gcc_target): Add frame_pointer_required field.
17199         * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
17200         (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
17201         * ira.c (setup_eliminable_regset): Use frame_pointer_required target
17202         hook.
17203         * reload1.c (update_eliminables): (Ditto.).
17204         * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
17205         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
17206         (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
17207
17208         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
17209
17210         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
17211         * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
17212         (arm_frame_pointer_required): New function.
17213
17214         * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
17215         * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
17216         (avr_frame_pointer_required_p): Declare as static.
17217         * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
17218
17219         * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
17220         * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
17221         (bfin_frame_pointer_required): Make as static, change return type
17222         to bool.
17223         * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
17224
17225         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
17226         * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
17227         (cris_frame_pointer_required): New function.
17228
17229         * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
17230
17231         * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
17232         * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
17233         (fr30_frame_pointer_required): New function.
17234
17235         * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
17236         * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
17237         (frv_frame_pointer_required): Make as static, change return type
17238         to bool.
17239         * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
17240
17241         * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
17242         * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
17243         (ix86_frame_pointer_required): Make as static, change return type to
17244         bool.
17245         * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
17246
17247         * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
17248         * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
17249
17250         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
17251
17252         * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
17253
17254         * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
17255
17256         * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
17257         * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
17258         (mips_frame_pointer_required): Make as static.
17259         * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
17260
17261         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
17262         * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
17263         (mmix_frame_pointer_required): Mew function.
17264
17265         * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
17266         * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
17267
17268         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
17269
17270         * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
17271
17272         * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
17273
17274         * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
17275         (CAN_ELIMINATE): Redefine.
17276         * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
17277         (sparc_frame_pointer_required): New function.
17278         (sparc_can_eliminate): New function.
17279         * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
17280
17281         * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
17282         * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
17283
17284         * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
17285         * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
17286         (xtensa_frame_pointer_required): Make as static, change return type
17287         to bool.
17288         * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
17289         Remove.
17290
17291 2009-06-29  Olatunji Ruwase  <tjruwase@google.com>
17292
17293         * doc/plugins.texi: Document PLUGIN_START_UNIT.
17294         * toplev.c (compile_file): Call PLUGIN_START_UNIT.
17295         * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
17296         * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
17297         (register_callback): Handle PLUGIN_START_UNIT.
17298         (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
17299
17300 2009-06-29  Eric Botcazou  <ebotcazou@adacore.com>
17301
17302         * tree.c (process_call_operands): Propagate TREE_READONLY from the
17303         operands.
17304         (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
17305         (build3_stat): Propagate TREE_READONLY for COND_EXPR.
17306
17307 2009-06-29  Daniel Jacobowitz  <dan@codesourcery.com>
17308
17309         * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
17310         move cost.
17311
17312 2009-06-29  Uros Bizjak  <ubizjak@gmail.com>
17313
17314         * doc/extend.texi (Additional Floating Types): __float128 is also
17315         supported on i386 targets.
17316
17317 2009-06-29  Richard Guenther  <rguenther@suse.de>
17318
17319         PR middle-end/14187
17320         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
17321         flag.
17322         (pt_solutions_same_restrict_base): Declare.
17323         * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
17324         flag.
17325         (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
17326         (make_constraint_from, make_copy_constraint): Move earlier.
17327         (make_constraint_from_heapvar): New function.
17328         (make_constraint_from_restrict): Likewise.
17329         (handle_lhs_call): Use it.
17330         (find_func_aliases): Use it to track conversions to restrict
17331         qualified pointers.
17332         (struct fieldoff): Add only_restrict_pointers flag.
17333         (push_fields_onto_fieldstack): Initialize it.
17334         (create_variable_info_for): Track global restrict qualified pointers.
17335         (intra_create_variable_infos): Use make_constraint_from_heapvar.
17336         Track restrict qualified pointer arguments.
17337         (set_uids_in_ptset): Use varinfo is_global_var flag.
17338         (find_what_var_points_to): Set the vars_contains_restrict flag.
17339         Always create the points-to solution for sets including restrict tags.
17340         (pt_solutions_same_restrict_base): New function.
17341         * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
17342         qualified pointers use pt_solutions_same_restrict_base as
17343         additional source for disambiguation.
17344
17345 2009-06-29  Richard Guenther  <rguenther@suse.de>
17346
17347         PR middle-end/38212
17348         * alias.c (find_base_decl): Remove.
17349         (get_deref_alias_set_1): Remove restrict handling.
17350         * c-common.c (c_apply_type_quals_to_decl): Do not set
17351         DECL_POINTER_ALIAS_SET.
17352         * gimplify.c (find_single_pointer_decl_1): Remove.
17353         (find_single_pointer_decl): Likewise.
17354         (internal_get_tmp_var): Remove restrict handling.
17355         (gimple_regimplify_operands): Likewise.
17356         * omp-low.c (expand_omp_atomic_pipeline): Do not set
17357         DECL_POINTER_ALIAS_SET. Use ref-all pointers.
17358         * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
17359         * tree.c (restrict_base_for_decl): Remove.
17360         (init_ttree): Do not allocate it.
17361         (make_node_stat): Do not set DECL_POINTER_ALIAS_SET.  Set
17362         LABEL_DECL_UID for label decls.
17363         (copy_node_stat): Do not copy restrict information.
17364         (decl_restrict_base_lookup): Remove.
17365         (decl_restrict_base_insert): Likewise.
17366         (print_restrict_base_statistics): Likewise.
17367         (dump_tree_statistics): Do not call print_restrict_base_statistics.
17368         * tree.h (DECL_POINTER_ALIAS_SET): Remove.
17369         (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
17370         (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
17371         (LABEL_DECL_UID): Adjust.
17372         (DECL_BASED_ON_RESTRICT_P): Remove.
17373         (DECL_GET_RESTRICT_BASE): Likewise.
17374         (SET_DECL_RESTRICT_BASE): Likewise.
17375         (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
17376
17377         * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
17378         instead of DECL_POINTER_ALIAS_SET.
17379         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
17380         * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
17381         * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
17382
17383 2009-06-29  Richard Guenther  <rguenther@suse.de>
17384
17385         PR tree-optimization/40579
17386         * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
17387         the IL to simplify has constants that overflowed.
17388
17389 2009-06-28  Uros Bizjak  <ubizjak@gmail.com>
17390
17391         PR tree-optimization/40550
17392         * tree-vect-generic.c (expand_vector_operations_1): Compute in
17393         vector_compute_type only when the size of vector_compute_type is
17394         less than the size of type.
17395
17396 2009-06-28  Eric Botcazou  <ebotcazou@adacore.com>
17397
17398         * fold-const.c (contains_label_1): Fix comments.
17399         (contains_label_p): Do not walk trees multiple time.
17400
17401 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
17402
17403         * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
17404         * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
17405         cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
17406         ix86_fp_comparison_operator.
17407         (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
17408         *fp_jcc_2_sse, *fp_jcc_2_387): Delete
17409         (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
17410         *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
17411         !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
17412         to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
17413         (related splits): Change predicate to ix86_fp_comparison_operator.
17414         * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
17415         instead of ix86_fp_comparison_codes.
17416         (ix86_trivial_fp_comparison_operator,
17417         ix86_fp_comparison_operator): New.
17418         * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
17419         (ix86_expand_compare): Eliminate last two parameters.
17420         (ix86_fp_jump_nontrivial_p): Kill.
17421         * config/i386/i386.c (put_condition_code): Eliminate call to
17422         ix86_fp_comparison_codes and subsequent assertion.
17423         (ix86_fp_comparison_codes): Eliminate.
17424         (ix86_fp_swap_condition): New.
17425         (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
17426         ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
17427         into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
17428         (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
17429         and ix86_fp_swap_condition.
17430         (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
17431         Use ix86_fp_comparison_strategy.
17432         (ix86_expand_compare): Likewise.  Eliminate last two arguments.
17433         (ix86_fp_jump_nontrivial_p): Eliminate.
17434         (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple.  Adjust
17435         call to ix86_expand_compare.
17436         (ix86_split_fp_branch, ix86_expand_setcc,
17437         ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
17438         ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
17439
17440 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
17441
17442         * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
17443         related to jump_clobbers.
17444         * config/arm/arm.md (conds): Remove jump_clob case.
17445         (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
17446         splits): Change comparison_operator to arm_comparison_operator.
17447         (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
17448         Eliminate.
17449
17450 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
17451
17452         * dojump.c (do_compare_rtx_and_jump): Try swapping the
17453         condition for floating point modes.
17454         * expmed.c (emit_store_flag_1): Move here a bigger part
17455         of emit_store_flag.
17456         (emit_store_flag): Try swapping the condition for floating point
17457         modes.
17458         * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
17459
17460 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
17461
17462         * expr.c (expand_expr_real_1): Just use do_store_flag.
17463         (do_store_flag): Drop support for TRUTH_NOT_EXPR.  Use
17464         emit_store_flag_force.
17465         * expmed.c (emit_store_flag_force): Copy here trick
17466         previously in expand_expr_real_1.  Try reversing the comparison.
17467         (emit_store_flag_1): Work if target is NULL.
17468         (emit_store_flag): Work if target is NULL, using the result mode
17469         from the comparison.  Use split_comparison, restructure final part
17470         to simplify conditionals.
17471
17472 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
17473
17474         * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
17475         * dojump.c (do_jump): Change handling of floating-point
17476         ops to use just do_compare_and_jump.
17477         (split_comparison): New.
17478         (do_compare_rtx_and_jump): Add here logic coming previously
17479         in do_jump, using split_comparison.
17480
17481 2009-06-27  H.J. Lu  <hongjiu.lu@intel.com>
17482
17483         PR target/40489
17484         * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
17485
17486 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
17487
17488         * tree-ssa-alias.c: Fix unintentional commit.
17489
17490 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
17491
17492         * passes.c (execute_one_pass): Fix unintentional commit.
17493
17494 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
17495
17496         * df-problems.c (df_set_seen, df_unset_seen): Delete.
17497         (df_rd_local_compute, df_md_local_compute): Inline them.
17498
17499         (df_md_scratch): New.
17500         (df_md_alloc, df_md_free): Allocate/free it.
17501         (df_md_local_compute): Only include live registers in init.
17502         (df_md_transfer_function): Prune the in-set computed by
17503         the confluence function, and the gen-set too.
17504
17505 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
17506
17507         PR rtl-optimization/26854
17508         * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
17509         * df-problems.c (df_rd_add_problem): Fix comment.
17510         (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
17511         df_md_simulate_artificial_defs_at_top,
17512         df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
17513         df_md_bb_local_compute, df_md_local_compute, df_md_reset,
17514         df_md_transfer_function, df_md_init, df_md_confluence_0,
17515         df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
17516         problem_MD, df_md_add_problem): New.
17517         * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
17518         df_md_get_bb_info): New.
17519         (DF_LAST_PROBLEM_PLUS1): Adjust.
17520
17521         * Makefile.in (fwprop.o): Include domwalk.h.
17522         * fwprop.c: Include domwalk.h.
17523         (reg_defs, reg_defs_stack): New.
17524         (bitmap_only_bit_between): Remove.
17525         (process_defs): New.
17526         (process_uses): Use reg_defs and local_md instead of
17527         bitmap_only_bit_between and local_rd.
17528         (single_def_use_enter_block): New, from build_single_def_use_links.
17529         (single_def_use_leave_block): New.
17530         (build_single_def_use_links): Remove code moved to
17531         single_def_use_enter_block, invoke domwalk.
17532         (use_killed_between): Adjust comment.
17533
17534 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
17535
17536         * bitmap.h (bitmap_ior_and_into): New.
17537         * bitmap.c (bitmap_ior_and_into): New.
17538
17539 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
17540
17541         * domwalk.h (struct dom_walk_data): Remove all callbacks except
17542         before_dom_children_before_stmts and after_dom_children_after_stmts.
17543         Rename the two remaining callbacks to just before_dom_children and
17544         after_dom_children. Remove other GIMPLE statement walking bits.
17545         * domwalk.c (walk_dominator_tree): Remove now unsupported features.
17546         * graphite.c: Do not include domwalk.h.
17547         * tree-into-ssa.c (interesting_blocks): New global.
17548         (struct mark_def_sites_global_data): Remove it and names_to_rename.
17549         (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
17550         rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
17551         now that they're not domwalk callbacks.
17552         (rewrite_initialize_block): Rename to...
17553         (rewrite_enter_block): ... this, place after called functions.  Test
17554         interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
17555         (rewrite_finalize_block): Rename to...
17556         (rewrite_leave_block): ... this, place after called functions.
17557         (rewrite_update_init_block): Rename to...
17558         (rewrite_update_enter_block): ... this, place after called functions.
17559         Test interesting_blocks, call rewrite_update_stmt and
17560         rewrite_update_phi_arguments.
17561         (rewrite_update_fini_block): Rename to...
17562         (rewrite_leave_block): ... this, place after called functions.
17563         (rewrite_blocks): Remove last argument, simplify initialization of
17564         walk_data.
17565         (mark_def_sites_initialize_block): Rename to...
17566         (mark_def_sites_block): ... this, call mark_def_sites.
17567         (mark_def_sites_blocks): Remove argument, simplify initialization of
17568         walk_data.
17569         (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
17570         (update_ssa): Likewise.
17571         * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
17572         callback.
17573         (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
17574         (dom_opt_initialize_block): Rename to...
17575         (dom_opt_enter_block): ... this, place after called functions.  Walk
17576         statements here, inline propagate_to_outgoing_edges.
17577         (dom_opt_finalize_block): Rename to...
17578         (dom_opt_leave_block): ... this, place after called functions.
17579         * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
17580         domwalk callback.
17581         (dse_enter_block, dse_record_phi): New.
17582         (dse_record_phis): Delete.
17583         (dse_finalize_block): Rename to...
17584         (dse_leave_block): ... this.
17585         (tree_ssa_dse): Simplify initialization of walk_data.
17586         * tree-ssa-loop-im.c (determine_invariantness, move_computations):
17587         Adjust initialization of walk_data.
17588         * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
17589         * tree-ssa-loop-phiopt.c (get_non_trapping):
17590         Adjust initialization of walk_data.
17591         * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
17592         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
17593         it's not a domwalk callback.
17594         (uncprop_initialize_block): Rename to...
17595         (dse_enter_block): ... this, call uncprop_into_successor_phis.
17596         (dse_finalize_block): Rename to...
17597         (dse_leave_block): ... this.
17598         (tree_ssa_uncprop): Simplify initialization of walk_data.
17599         * Makefile.in: Adjust dependencies.
17600
17601 2009-06-27  Richard Earnshaw  <rearnsha@arm.com>
17602
17603         * arm.md (casesi): Fix test for Thumb1.
17604         (thumb1_casesi_internal_pic): Likewise.
17605         (thumb1_casesi_dispatch): Likewise.
17606
17607 2009-06-26  Daniel Gutson  <dgutson@codesourcery.com>
17608
17609         * config/arm/arm-cores.def: Added core cortex-m0.
17610         * config/arm/arm-tune.md: Regenerated.
17611         * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
17612
17613 2009-06-26  DJ Delorie  <dj@redhat.com>
17614
17615         * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
17616
17617         * config/mep/mep.c (mep_bundle_insns): Account for the fact that
17618         the scheduler doesn't tag jump insns.
17619
17620 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
17621
17622         * c-decl.c (merge_decls): Re-indent.
17623
17624 2009-06-26  Janis Johnson  <janis187@us.ibm.com>
17625
17626         PR c/39902
17627         * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
17628         Special-case decimal float constants.
17629
17630 2009-06-26  Richard Henderson  <rth@redhat.com>
17631
17632         * function.h (struct function): Add cannot_be_copied_reason,
17633         and cannot_be_copied_set.
17634         * tree-inline.c (has_label_address_in_static_1): Rename from
17635         inline_forbidden_p_2; don't set inline_forbidden_reason here.
17636         (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
17637         don't set inline_forbidden_reason.
17638         (copy_forbidden): New function, split out of inline_forbidden_p.
17639         (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
17640         (inline_forbidden_p): Use copy_forbidden.
17641         (tree_versionable_function_p): Likewise.
17642         (inlinable_function_p): Merge into tree_inlinable_function_p.
17643         (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
17644         * ipa-cp.c (ipcp_versionable_function_p): New function.
17645         (ipcp_cloning_candidate_p): Use it.
17646         (ipcp_node_modifiable_p): Likewise.
17647
17648 2009-06-26  Olatunji Ruwase  <tjruwase@google.com>
17649
17650         * builtins.c (expand_builtin_alloca): Handle builtin alloca
17651         that is marked not to be inlined. Remove flag_mudflap use.
17652         * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
17653         (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
17654
17655 2009-06-26  Steve Ellcey  <sje@cup.hp.com>
17656
17657         PR bootstrap/40338
17658         * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
17659         * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
17660
17661 2009-06-26  Kai Tietz  <kai.tietz@onevision.com>
17662
17663         * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
17664         shared libgcc.
17665         (__mingwthr_remove_key_dtor): Likewise.
17666
17667 2009-06-26  Richard Guenther  <rguenther@suse.de>
17668
17669         * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
17670
17671 2009-06-26  Steven Bosscher  <steven@gcc.gnu.org>
17672
17673         PR middle-end/40525
17674         * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
17675         try the non-cond_exec path also.
17676
17677 2009-06-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17678
17679         PR target/40468
17680         * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
17681         (output_cbranch): Use new functions.
17682         (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
17683         Likewise.
17684
17685 2009-06-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
17686             Pat Haugen  <pthaugen@us.ibm.com>
17687             Revital Eres <ERES@il.ibm.com>
17688
17689         * config/rs6000/rs6000.c (print_operand): Correct lossage message
17690         for %c error.  Add %x support to print VSX registers as a unified
17691         register set, instead of separate float and altivec registers.
17692         Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
17693         %y case, and add support for VSX pre-modify addresses.
17694         (output_toc): Add assert for CONST containing an integer constant
17695         in the PLUS case.
17696         (rs6000_adjust_cost): Add POWER7 support.
17697         (insn_must_be_first_in_group): Ditto.
17698         (insn_must_be_last_in_group): Ditto.
17699         (rs6000_emit_popcount): Ditto.
17700         (rs6000_vector_mode_supported_p): Ditto.
17701
17702         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
17703         Change some of the functions called by macros to being called
17704         through a pointer, so debug functions can be inserted if
17705         -mdebug=addr or -mdebug=cost.
17706         (rs6000_preferred_reload_class_ptr): Ditto.
17707         (rs6000_secondary_reload_class_ptr): Ditto.
17708         (rs6000_secondary_memory_needed_ptr): Ditto.
17709         (rs6000_cannot_change_mode_class_ptr): Ditto.
17710         (rs6000_secondary_reload_inner): Ditto.
17711         (rs6000_legitimize_reload_address): Ditto.
17712         (rs6000_legitimize_reload_address_ptr): Ditto.
17713         (rs6000_mode_dependent_address): Ditto.
17714         (rs6000_mode_dependent_address_ptr): Ditto.
17715
17716         * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
17717         function to return true if the mode allows reg + integer
17718         addresses.
17719         (virtual_stack_registers_memory_p): New function to return true if
17720         the address refers to a virtual stack register.
17721         (rs6000_legitimate_offset_address_p): Move code to say whether a
17722         mode supports reg+int addressing to reg_offset_addressing_ok_p and
17723         call it.
17724         (rs6000_legitimate_address_p): Add checks for modes that only can
17725         do reg+reg addressing.  Start adding VSX support.
17726         (rs6000_legitimize_reload_address): Ditto.
17727         (rs6000_legitimize_address): Ditto.
17728         (rs6000_debug_legitimate_address_p): New debug functions for
17729         -mdebug=addr and -mdebug=cost.
17730         (rs6000_debug_rtx_costs): Ditto.
17731         (rs6000_debug_address_costs): Ditto.
17732         (rs6000_debug_adjust_cost): Ditto.
17733         (rs6000_debug_legitimize_address): Ditto.
17734         (rs6000_legitimize_reload_address_ptr): Point to call normal
17735         function or debug function.  Make functions called via pointer
17736         static.
17737         (rs6000_mode_dependent_address_ptr): Ditto.
17738         (rs6000_secondary_reload_class_ptr): Ditto.
17739         (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
17740         (rs6000_emit_move): Add -mdebug=addr support.  Change an abort
17741         into a friendlier error.
17742         (rs6000_init_builtins): Add initial VSX support.
17743         (rs6000_adjust_cost): Fix some spacing issues.
17744
17745         * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
17746         (REG_CLASS_NAMES): Ditto.
17747         (REG_CLASS_CONTENTS): Ditto.
17748         (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
17749         pointer, to add -mdebug=addr support.
17750         (CANNOT_CHANGE_MODE_CLASS): Ditto.
17751         (SECONDARY_RELOAD_CLASS): Call through a pointer to add
17752         -mdebug=addr support.
17753         (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
17754         (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
17755         (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
17756
17757         * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
17758         16-bit values.
17759         (bswapsi*): Set attribute types for load/store.  Add combiner
17760         patterns to eliminate zero extend on 64-bit.
17761         (bswapdi*): Add support for swapping 64-bit values.  Use ldbrx and
17762         stdbrx if the hardware supports those instructions.
17763
17764 2009-06-25  Ian Lance Taylor  <iant@google.com>
17765
17766         * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
17767         (Link Options): Document -static-libstdc++.
17768
17769 2009-06-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17770
17771         PR target/38731
17772         * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
17773         DATA_ALIGNMENT instead.
17774
17775 2009-06-25  Richard Guenther  <rguenther@suse.de>
17776
17777         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
17778         indirect references against the callused/escaped solutions.
17779         (call_may_clobber_ref_p_1): Likewise.
17780
17781 2009-06-25  Martin Jambor  <mjambor@suse.cz>
17782
17783         PR tree-optimization/40493
17784         * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
17785         (enum unscalarized_data_handling): New type.
17786         (handle_unscalarized_data_in_subtree): Return what has been done.
17787         (load_assign_lhs_subreplacements): Handle left flushes differently.
17788         (sra_modify_assign): Use unscalarized_data_handling, simplified
17789         condition determining whether to remove the statement.
17790
17791 2009-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
17792
17793         * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
17794         excerpt - @ should be doubled for texinfo.
17795
17796 2009-06-24  Ian Lance Taylor  <iant@google.com>
17797
17798         * config/arc/arc.c: Include "df.h".
17799         (arc_attribute_table): Make static.  Move higher in file.
17800         (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
17801         (output_shift): Initialize n later to avoid warning.
17802         * config/arm/arm.c (arm_attribute_table): Make static.  Move
17803         higher in file.
17804         * config/avr/avr.c (avr_attribute_table): Make static.  Move
17805         higher in file.
17806         (reg_class_tab): Change array type from int to enum reg_class.
17807         (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
17808         LABEL_REF.
17809         (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
17810         (lshrhi3_out): Likewise.
17811         (class_likely_spilled_p): Change return type to bool.
17812         (avr_rtx_costs): Use local code variable with enum type.
17813         * config/avr/avr.md (movmemhi): Use add_reg_note.
17814         (andhi3, andsi3): Don't use AS2 with "and".
17815         (iorhi3, iorsi3): Don't use AS2 with "or".
17816         * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
17817         * config/crx/crx.c: Include "df.h".
17818         (crx_attribute_table): Make static.
17819         * config/m32r/m32r.c: Include "df.h".
17820         (m32r_attribute_table): Make static.  Move higher in file.
17821         (pop): Use add_reg_note.
17822         (block_move_call): Change 0 to LCT_NORMAL in function call.
17823         * config/m32r/m32r.md (movsi_insn): Remove unused local value.
17824         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
17825         * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
17826         declare, not just when TREE_CODE is defined.
17827         * config/m68hc11/m68hc11.c: Include "expr.h".
17828         (m68hc11_attribute_table): Make static.  Move higher in file.
17829         (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
17830         function call.
17831         (m68hc11_register_indirect_p): Likewise.
17832         (m68hc11_function_arg_padding): Change return type to enum
17833         direction.
17834         (emit_move_after_reload): Use add_reg_note.
17835         (m68hc11_emit_logical): Change code parameter to enum rtx_code.
17836         (m68hc11_split_logical): Likewise.
17837         (m68hc11_rtx_costs): Add local code_and outer_code variables with
17838         enum type.
17839         * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
17840         to VOIDmode in function call.
17841         * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
17842         tree is defined.
17843         (m68hc11_split_logical): Update declaration.
17844         (m68hc11_function_arg_padding): Update declaration.
17845         * config/mcore/mcore.c (regno_reg_class): Change form array of int
17846         to array of enum reg_class.
17847         (mcore_attribute_table): Make static.  Move higher in file.
17848         (mcore_rtx_costs): Add cast to enum type.
17849         * config/mcore/mcore.h (regno_reg_class): Update declaration.
17850         (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
17851         * config/sh/sh.c (sh_attribute_table): Make static.  Move higher
17852         in file.
17853         * config/sh/predicates.md (trapping_target_operand): Rename and to
17854         and_expr.
17855         * config/sparc/sparc.c (sparc_attribute_table): Make static.  Move
17856         higher in file.
17857         * config/spu/spu.c (spu_attribute_table): Make static.  Move
17858         higher in file.
17859         * config/v850/v850.c (v850_attribute_table): Make static.  Move
17860         higher in file.
17861         (v850_rtx_costs): Use local code with enum type.
17862         (expand_epilogue): Add cast.
17863         * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
17864
17865 2009-06-23  Takashi YOSHII  <yoshii.takashi@renesas.com>
17866
17867         PR target/40515
17868         * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
17869         -m2a-single-only and -m2a-nofpu.
17870         * config/sh/sh.opt: Document m2a generates FPU code.
17871
17872 2009-06-24  Anatoly Sokolov  <aesok@post.ru>
17873
17874         * defaults.h (CAN_ELIMINATE): Provide default.
17875         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
17876         * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
17877         * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
17878         * config/spu/spu.h (CAN_ELIMINATE): Delete.
17879         * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
17880         * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
17881         * config/cris/cris.h (CAN_ELIMINATE): Delete.
17882         * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
17883         * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
17884         * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
17885
17886 2009-06-24  DJ Delorie  <dj@redhat.com>
17887
17888         * mep-ext-cop.cpu: Fix copyright notice.
17889         * mep-default: Fix copyright notice.
17890         * mep-core: Fix copyright notice.
17891         * mep: Fix copyright notice.
17892         * mep-ivc2: Fix copyright notice.
17893         * mep-c5: Fix copyright notice.
17894
17895 2009-06-24  Denis Chertykov  <chertykov@gmail.com>
17896
17897         * doc/contrib.texi (Contributors):
17898
17899 2009-06-24  Andreas Krebbel  <krebbel1@de.ibm.com>
17900
17901         PR middle-end/40501
17902         * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
17903         src and dst operands if necessary.
17904
17905 2009-06-23  DJ Delorie  <dj@redhat.com>
17906
17907         Add MeP port.
17908         * config.gcc: Add mep support.
17909         * recog.c: Resurrect validate_replace_rtx_subexp().
17910         * recog.h: Likewise.
17911         * config/mep/: Add new port:
17912         * config/mep/constraints.md: New file.
17913         * config/mep/default.h: New file.
17914         * config/mep/intrinsics.h: New file.
17915         * config/mep/intrinsics.md: New file.
17916         * config/mep/ivc2-template.h: New file.
17917         * config/mep/mep-c5.cpu: New file.
17918         * config/mep/mep-core.cpu: New file.
17919         * config/mep/mep-default.cpu: New file.
17920         * config/mep/mep-ext-cop.cpu: New file.
17921         * config/mep/mep-intrin.h: New file.
17922         * config/mep/mep-ivc2.cpu: New file.
17923         * config/mep/mep-lib1.asm: New file.
17924         * config/mep/mep-lib2.c: New file.
17925         * config/mep/mep-pragma.c: New file.
17926         * config/mep/mep-protos.h: New file.
17927         * config/mep/mep-tramp.c: New file.
17928         * config/mep/mep.c: New file.
17929         * config/mep/mep.cpu: New file.
17930         * config/mep/mep.h: New file.
17931         * config/mep/mep.md: New file.
17932         * config/mep/mep.opt: New file.
17933         * config/mep/predicates.md: New file.
17934         * config/mep/t-mep: New file.
17935
17936 2009-06-23  Ian Lance Taylor  <iant@google.com>
17937
17938         * configure.ac: Invoke AC_PROG_CXX.  Separate C specific warnings
17939         from loose_warn into c_loose_warn and from strict_warn into
17940         c_strict_warn.  Set and substitute warn_cxxflags.  Check for
17941         --enable-build-with-cxx.  Set and substitute
17942         ENABLE_BUILD_WITH_CXX.  Set and substitute HOST_LIBS.
17943         * Makefile.in (CXXFLAGS): New variable.
17944         (C_LOOSE_WARN, C_STRICT_WARN): New variables.
17945         (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN).  Add $(C_STRICT_WARN) if
17946         the default is the same as $(STRICT_WARN).
17947         (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
17948         (CXX): New variable.
17949         (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
17950         (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
17951         (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
17952         (HOST_LIBS): New variable.
17953         (GCC_CFLAGS): Add $(C_LOOSE_WARN).
17954         (ALL_CXXFLAGS): New variable.
17955         (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
17956         * doc/install.texi (Configuration): Document
17957         --enable-build-with-cxx, --with-stage1-ldflags,
17958         --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
17959         * configure: Rebuild.
17960
17961 2009-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17962
17963         * config/arm/arm.c (arm_override_options): Fix braces and formatting
17964         from previous commit.
17965
17966 2009-06-23  Ian Lance Taylor  <iant@google.com>
17967
17968         * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
17969
17970 2009-06-23  Ian Lance Taylor  <iant@google.com>
17971
17972         * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
17973         with ATTRIBUTE_UNUSED.
17974
17975 2009-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
17976             Pat Haugen  <pthaugen@us.ibm.com>
17977             Revital Eres  <eres@il.ibm.com>
17978
17979         * config.in (HAVE_AS_POPCNTD): Add default definition.
17980         (HAVE_AS_LWSYNC): Ditto.
17981
17982         * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
17983         release number.
17984         (gcc_cv_as_powerpc_cmpb): Ditto.
17985         (gcc_cv_as_powerpc_dfp): Ditto.
17986         (gcc_cv_as_powerpc_vsx): Ditto.
17987         (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
17988         supporting the popcntd/lwsync instructions.
17989         (gcc_cv_as_powerpc_lwsync): Ditto.
17990         * configure: Regenerate.
17991
17992         * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
17993         -mcpu=native and -mcpu=power7.
17994         * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
17995
17996         * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
17997         a variable instead of a mask to reduce the number of mask bits.
17998         * config/rs6000/sysv4.opt (-mbit-align): Ditto.
17999         (-mbit-word): Ditto.
18000         (-mregnames): Ditto.
18001         * config/rs6000/rs6000.opt (-mupdate): Ditto.
18002         (-mfused-madd): Ditto.
18003
18004         * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
18005         2.06 instructions.
18006         (-mvsx): New switch for VSX instructions.
18007         (-misel): Move from a variable to a mask to allow it to be set by
18008         -mcpu=.
18009
18010         * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
18011         function declaration to an array declaration.
18012         (rs6000_hard_regno_nregs): New external array declaration.
18013
18014         * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
18015         files included by rs6000.md.
18016
18017         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
18018         SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
18019
18020         * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
18021         a target mask.
18022         (rs6000_debug_reg): New -mdebug= variables.
18023         (rs6000_debug_addr): Ditto.
18024         (rs6000_debug_cost): Ditto.
18025         (rs6000_pmode): New variable to hold Pmode.
18026         (rs6000_pointer_size): New variable to hold POINTER_SIZE.
18027         (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
18028         calculated at compiler start.
18029         (rs6000_hard_regno_nregs): Change function to an array which holds
18030         HARD_REGNO_NREGS calculated at compiler start.
18031         (rs6000_explicit_options): Delete isel field.
18032         (rs6000_vector_unit): New array to hold which vector unit
18033         supports arithmetic options for a given type.
18034         (rs6000_vector_mem): New array to hold which vector unit supports
18035         memory reference operations for a given type.
18036         (rs6000_vector_align): New array to given the alignment of each
18037         vector type.
18038         (power7_cost): New basic costs for power7.
18039         (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
18040         (rs6000_hard_regno_nregs_internal): New function, moved from
18041         HARD_REGNO_NREGS, to calculate the number of registers each hard
18042         register takes for each type.
18043         (rs6000_debug_reg_print): New function for -mdebug=reg support.
18044         (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
18045         (+rs6000_init_hard_regno_mode_ok): New function, move calculation
18046         of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
18047         unit information here so it is calculated once at compiler startup
18048         time.
18049         (rs6000_override_options): Make -misel a target mask.  Add more
18050         power7 target masks.  Setup Pmode and POINTER_SIZE.  Add initial
18051         VSX support.  Add support for -mdebug=reg, -mdebug=addr, and
18052         -mdebug=cost.
18053         (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
18054         (rs6000_handle_option): Move -misel from variable to target mask.
18055         (rs6000_builtin_mask_for_load): Add VSX support.
18056         (rs6000_conditional_register_usage): Ditto.
18057         (USE_ALTIVEC_FOR_ARG_P): Ditto.
18058         (function_arg_boundary): Ditto.
18059         (rs6000_expand_builtin): Ditto.
18060         (def_builtin): Make abort message a little friendlier.
18061         (rs6000_emit_int_cmove): Add support for 64-bit isel.
18062
18063         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
18064         assembler support the popcntd instruction instead of a vsx
18065         instruction to enable power7 support.
18066         (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
18067         (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
18068         option to the assembler if -mcpu=native.
18069         (ASM_CPU_NATIVE_SPEC): Ditto.
18070         (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
18071         ISA 2.06 features.
18072         (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
18073         the lwsync instruction.
18074         (enum processor_type): Add PROCESSOR_POWER7.
18075         (rs6000_debug_reg): New -mdebug= options.
18076         (rs6000_debug_addr): Ditto.
18077         (rs6000_debug_cost): Ditto.
18078         (rs6000_isel): Delete.
18079         (enum rs6000_vector): New enum to say what vector unit we have.
18080         (VECTOR_UNIT_*): New macros to say which vector unit has
18081         arithmetic operations for a given type.
18082         (VECTOR_MEM_*): New macros to say which vector unit has memory
18083         operations for a given type.
18084         (TARGET_LDBRX): Whether the machine supports the ldbrx
18085         instruction.
18086         (TARGET_ISEL): Delete, -misel moved to be a mask.
18087         (TARGET_ISEL64): New macro for 64-bit isel support.
18088         (UNITS_PER_VSX_WORD): New macro.
18089         (POINTER_SIZE): Move to be an external variable, rather than
18090         calculating whether we are generating 32 ot 64-bit code.
18091         (Pmode): Ditto.
18092         (STACK_BOUNDARY): Add VSX support.
18093         (LOCAL_ALIGNMENT): Ditto.
18094         (SLOW_UNALIGNED_ACCESS): Ditto.
18095         (VSX_REGNO_P): New macro for VSX support.
18096         (VFLOAT_REGNO_P): Ditto.
18097         (VINT_REGNO_P): Ditto.
18098         (VLOGICAL_REGNO_P): Ditto.
18099         (VSX_VECTOR_MODE): Ditto.
18100         (VSX_SCALAR_MODE): Ditto.
18101         (VSX_MODE): Ditto.
18102         (VSX_MOVE_MODE): Ditto.
18103         (VSX_REG_CLASS_P): Ditto.
18104         (HARD_REGNO_NREGS): Instead of calling a function, use an array
18105         lookup.
18106         (UNITS_PER_SIMD_WORD): Add VSX support.
18107         (MODES_TIEABLE_P): Ditto.
18108         (STARTING_FRAME_OFFSET): Ditto.
18109         (STACK_DYNAMIC_OFFSET): Ditto.
18110         (EPILOGUE_USES): Ditto.
18111         (REGNO_REG_CLASS): Move to array lookup.
18112         (CLASS_MAX_NREGS): Ditto.
18113         (rs6000_vector_reg_class): Add declaration.
18114         (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
18115         overlap with the floating point and Altivec registers.
18116
18117         * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
18118
18119         * config/rs6000/driver-rs6000.c (asm_names): New static array to
18120         give the appropriate asm switches if -mcpu=native.
18121         (host_detect_local_cpu): Add support for "asm".
18122         (host_detect_local_cpu): Follow GNU code guidelines for name.
18123
18124         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
18125         -mbit-word to a variable instead of being a target mask.
18126
18127         * config/rs6000/sync.md (lwsync): If the assembler supports it,
18128         emit the lwsync instruction instead of emitting the instruction as
18129         an integer constant.
18130
18131         * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
18132         fixuns_trundfsi2, move expander into rs6000.md.
18133
18134         * config/rs6000/rs6000.md (cpu): Add power7.
18135         (sel, *ptrsize): New mode attributes for 32/64-bit isel.
18136         (logical predicate patterns): Change the single instruction
18137         primitives that set CR0 to be fast_compare instead of compare.
18138         (norsi*): Ditto.
18139         (popcntwsi2): Add support for ISA 2.06 popcount instructions.
18140         (popcntddi2): Ditto.
18141         (popcount<mode>): Ditto.
18142         (floating multiply/add insns): Name the floating point
18143         multiply/add insns.
18144         (isel_signed_<mode>): Add support for -misel on 64-bit systems.
18145         (isel_unsigned_<mode>): Ditto.
18146         (fixuns_trundfsi2): Move expander here from spe.md.
18147         (smindi3): Define if we have -misel on 64-bit systems.
18148         (smaxdi3): Ditto.
18149         (umindi3): Ditto.
18150         (umaxdi3): Ditto.
18151
18152 2009-06-23  Anatoly Sokolov  <aesok@post.ru>
18153
18154         * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
18155         extra_objs.
18156         * config/avr/avr.c (avr_current_device): New variable.
18157         (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
18158         (avr_arch, mcu_type_s): Move to avr.h.
18159         * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
18160         default_data_section_start fields.
18161         (avr_arch): Moved from avr.c.
18162         (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
18163         library_name fields.
18164         (avr_current_device, avr_mcu_types, avr_arch_types,
18165         avr_device_to_arch, avr_device_to_data_start,
18166         avr_device_to_startfiles, avr_device_to_devicelib): Declare.
18167         (EXTRA_SPEC_FUNCTIONS): Define.
18168         (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
18169         options mapping. Use device_to_arch and device_to_data_start insted.
18170         (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
18171         (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
18172         * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
18173         * config/avr/driver-avr.c: New file.
18174         * config/avr/avr-devices.c: New file.
18175
18176 2009-06-23  Jakub Jelinek  <jakub@redhat.com>
18177
18178         * var-tracking.c (unshare_variable): Force initialized to
18179         be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
18180         (set_variable_part): Likewise.
18181         (struct variable_union_info): Remove pos_src field.
18182         (vui_vec, vui_allocated): New variables.
18183         (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
18184         unconditionally.  Avoid XCVECNEW/free for every sorting, for dst_l
18185         == 1 use a simpler sorting algorithm.  Compute pos field right
18186         away, don't fill in pos_src.  For dst_l == 2 avoid qsort.
18187         Avoid quadratic comparison if !flag_var_tracking_uninit.
18188         (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
18189         unshare_variable unconditionally.
18190         (dataflow_set_different_2): Removed.
18191         (dataflow_set_different): Don't traverse second hash table.
18192         (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
18193         unconditionally to var_reg_set or var_mem_set.
18194         (emit_notes_in_bb): Likewise.
18195         (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
18196         unshare_variable.
18197         (emit_note_insn_var_location): Don't set initialized to
18198         VAR_INIT_STATUS_INITIALIZED early.
18199         (vt_finalize): Free vui_vec if needed, clear vui_vec and
18200         vui_allocated.
18201         * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
18202
18203         * tree-object-size.c (addr_object_size): Instead of checking
18204         for non-NULL TREE_CHAIN of the FIELD_DECL check that there
18205         are no FIELD_DECLs following it.
18206
18207 2009-06-23  Andreas Krebbel  <krebbel1@de.ibm.com>
18208
18209         * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
18210         order to match bswaps with signed source operands.
18211
18212 2009-06-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
18213
18214         * sdbout.c (sdbout_one_type): Fix braces in switch.
18215
18216 2009-06-23  Richard Guenther  <rguenther@suse.de>
18217
18218         * tree-ssa-structalias.c (struct variable_info): Add is_global_var
18219         member.
18220         (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
18221         readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
18222         var_callused, callused_tree, var_storedanything, storedanything_tree,
18223         var_integer, integer_tree): Remove global variables.
18224         (new_var_info): Do not pass new id, append the new var to the
18225         global variable vector.
18226         (do_ds_constraint): Use is_global_var member of the variable-info.
18227         (new_scalar_tmp_constraint_exp): Adjust.
18228         (create_function_info_for): Likewise.
18229         (create_variable_info_for): Likewise.
18230         (find_what_var_points_to): Remove dead code.
18231         (init_base_vars): Simplify.
18232         (compute_points_to_sets): Adjust.
18233
18234 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
18235
18236         * combine.c (try_combine): Dump information about the insns we're
18237         combining.
18238
18239 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
18240
18241         * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
18242         check when calling force_to_mode on TRUNCATE's operand.
18243
18244 2009-06-22  Ian Lance Taylor  <iant@google.com>
18245
18246         * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
18247
18248 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
18249
18250         * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
18251
18252 2009-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18253
18254         * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
18255         override library linkage flags such as -static-libgcc or
18256         -shared-libgcc.
18257
18258 2009-06-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
18259
18260         * config/m68k/m68k-devices.def: Add line for MCF5221x.
18261
18262 2009-06-22  Ian Lance Taylor  <iant@google.com>
18263
18264         * config/linux.opt: Put mglibc ahead of muclibc.
18265
18266         * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
18267         for duplicate decls.
18268
18269 2009-06-22  Matthias Klose  <doko@ubuntu.com>
18270
18271         * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
18272
18273 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
18274
18275         PR objc/28050
18276         * c-parser.c (c_parser_objc_message_args): Return error_mark_node
18277         instead of NULL if a parser error occurs.
18278
18279 2009-06-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
18280
18281         * dwarf2out.c (dwarf2_debug_hooks): Initialize
18282         non-DWARF2_DEBUGGING_INFO version.
18283
18284 2009-06-22  Kai Tietz  <kai.tietz@onevision.com>
18285
18286         * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
18287         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
18288
18289         * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
18290         (LIBGCC2_TF_CEXT): Define.
18291         (TF_SIZE): Define.
18292
18293 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18294
18295         PR target/40463
18296         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
18297
18298 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18299
18300         * config/arm/arm.c (arm_override_options): Disable
18301         -mcaller-super-interworking and -mcallee-super-interworking.
18302         * doc/invoke.texi (ARM Options): Document this.
18303
18304 2009-06-22  Nathan Sidwell  <nathan@codesourcery.com>
18305
18306         * config/arm/arm.c (arm_print_operand): Deal with HIGH.
18307         * config/arm/constraints.md (j): New constraint for movw operands.
18308         (N): Remove thumb2 meaning.
18309         * config/arm/arm.md (*arm_movw): Delete.
18310         (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
18311         * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
18312         * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
18313
18314 2009-06-22  Martin Jambor  <mjambor@suse.cz>
18315
18316         PR tree-optimization/40492
18317         * tree-sra.c (sra_modify_assign): Pass zero offsets to
18318         build_ref_for_offset.
18319
18320 2009-06-22  Shujing Zhao  <pearly.zhao@oracle.com>
18321
18322         * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
18323         JUMP_TABLE_DATA_P predicates where applicable.
18324         * auto-inc-dec.c: Ditto.
18325         * builtins.c: Ditto.
18326         * caller-save.c: Ditto.
18327         * calls.c: Ditto.
18328         * cfgcleanup.c: Ditto.
18329         * cfglayout.c: Ditto.
18330         * cfgrtl.c: Ditto.
18331         * combine.c: Ditto.
18332         * combine-stack-adj.c: Ditto.
18333         * cse.c: Ditto.
18334         * cselib.c: Ditto.
18335         * dbxout.c: Ditto.
18336         * df-scan.c: Ditto.
18337         * dse.c: Ditto.
18338         * dwarf2asm.c: Ditto.
18339         * dwarf2out.c: Ditto.
18340         * emit-rtl.c: Ditto.
18341         * except.c: Ditto.
18342         * explow.c: Ditto.
18343         * expmed.c: Ditto.
18344         * expr.c: Ditto.
18345         * final.c: Ditto.
18346         * function.c: Ditto.
18347         * fwprop.c: Ditto.
18348         * gcse.c: Ditto.
18349         * genpreds.c: Ditto.
18350         * genrecog.c: Ditto.
18351         * ifcvt.c: Ditto.
18352         * ira-costs.c: Ditto.
18353         * ira-lives.c: Ditto.
18354         * jump.c: Ditto.
18355         * loop-iv.c: Ditto.
18356         * lower-subreg.c: Ditto.
18357         * modulo-sched.c: Ditto.
18358         * optabs.c: Ditto.
18359         * postreload.c: Ditto.
18360         * print-rtl.c: Ditto.
18361         * recog.c: Ditto.
18362         * reginfo.c: Ditto.
18363         * regmove.c: Ditto.
18364         * reload1.c: Ditto.
18365         * reload.c: Ditto.
18366         * reorg.c: Ditto.
18367         * rtlanal.c: Ditto.
18368         * rtl.c: Ditto.
18369         * sched-vis.c: Ditto.
18370         * sdbout.c: Ditto.
18371         * sel-sched-ir.c: Ditto.
18372         * simplify-rtx.c: Ditto.
18373         * targhooks.c: Ditto.
18374         * var-tracking.c: Ditto.
18375         * vmsdbgout.c: Ditto.
18376
18377 2009-06-22  Matthias Klose  <doko@ubuntu.com>
18378
18379         * Makefile.in (install-plugin): Always use DESTDIR.
18380
18381 2009-06-22  Olivier Hainque  <hainque@adacore.com>
18382
18383         * config/pa/pa.c (output_call): Don't optimize post call jumps
18384         into return address adjustments if the call may throw.
18385
18386 2009-06-21  Richard Earnshaw  <rearnsha@arm.com>
18387
18388         * arm.c (thumb1_output_casesi): New function.
18389         * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
18390         optimizing for size or PIC.
18391         (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
18392         * arm.md (UNSPEC_THUMB1_CASESI): New constant.
18393         (casesi): Handle Thumb-1 when optimizing for size or PIC.
18394         (thumb1_casesi_internal_pic): New expand rule.
18395         (thumb1_casesi_dispatch): New pattern.
18396         * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
18397         thumb-1 mode.
18398         * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
18399         in the text seciton when PIC or optimizing for size.
18400         * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
18401         * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
18402         preservation properties of code.
18403         (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
18404         (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
18405         (__gnu_thumb1_case_si): New function.
18406         * t-arm (LIB1ASMSRC): Define here.
18407         (LIB1ASMFUNCS): Add some common functions.
18408         * t-arm-elf (LIB1ASMSRC): Delete.
18409         (LIB1ASMFUNCS): Append to existing set.
18410         * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
18411         * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
18412         * t-symbian (LIB1ASMFUNCS): Likewise.
18413         * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
18414         * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
18415
18416 2009-06-21  Richard Guenther  <rguenther@suse.de>
18417
18418         PR tree-optimization/38729
18419         * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
18420         to loops with a single exit if -fno-expensive-optimizations.
18421
18422 2009-06-21  Jakub Jelinek  <jakub@redhat.com>
18423
18424         * var-tracking.c (struct shared_hash_def, shared_hash): New types.
18425         (dataflow_set): Change vars type from htab_t to shared_hash.
18426         (shared_hash_pool, empty_shared_hash): New variables.
18427         (vars_clear): Removed.
18428         (shared_hash_shared, shared_hash_htab, shared_hash_copy,
18429         shared_hash_find_slot_unshare, shared_hash_find_slot,
18430         shared_hash_find_slot_noinsert, shared_hash_find): New
18431         static inlines.
18432         (shared_hash_unshare, shared_hash_destroy): New functions.
18433         (unshare_variable): Unshare set->vars if shared, use
18434         shared_hash_htab.
18435         (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
18436         (get_init_value, find_src_set_src, dump_dataflow_set,
18437         clobber_variable_part, emit_notes_for_differences): Use
18438         shared_hash_htab.
18439         (dataflow_set_init): Remove second argument, set vars to
18440         empty_shared_hash instead of creating a new htab.
18441         (dataflow_set_clear): Call shared_hash_destroy and set vars
18442         to empty_shared_hash instead of calling vars_clear.
18443         (dataflow_set_copy): Don't call vars_copy, instead just share
18444         the src htab with dst.
18445         (variable_union): Use shared_hash_*, use initially NO_INSERT
18446         lookup if set->vars is shared.  Don't keep slot cleared before
18447         calling unshare_variable.  Unshare set->vars if needed.
18448         Even ->refcount == 1 vars must be unshared if set->vars is shared
18449         and var needs to be modified.
18450         (variable_canonicalize): New function.
18451         (dataflow_set_union): If dst->vars is empty, just share src->vars
18452         with dst->vars and traverse with variable_canonicalize to canonicalize
18453         and unshare what is needed.
18454         (dataflow_set_different): If old_set and new_set use the same shared
18455         htab, they aren't different.  If number of htab elements is different,
18456         htabs are different.  Use shared_hash_*.
18457         (dataflow_set_destroy): Call shared_hash_destroy instead of
18458         htab_delete.
18459         (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
18460         second argument to dataflow_set_init.
18461         (vt_initialize): Likewise.  Initialize shared_hash_pool and
18462         empty_shared_hash, move bb in/out initialization afterwards.
18463         Use variable_htab_free instead of NULL as changed_variables del hook.
18464         (variable_was_changed): Change type of second argument to pointer to
18465         dataflow_set.  When inserting var into changed_variables, bump
18466         refcount.  Unshare set->vars if set is shared htab and slot needs to
18467         be cleared.
18468         (set_variable_part): Use shared_hash_*, use initially NO_INSERT
18469         lookup if set->vars is shared.  Unshare set->vars if needed.
18470         Even ->refcount == 1 vars must be unshared if set->vars is shared
18471         and var needs to be modified.  Adjust variable_was_changed caller.
18472         (delete_variable_part): Use shared_hash_*.  Even ->refcount == 1
18473         vars must be unshared if set->vars is shared and var needs to be
18474         modified.  Adjust variable_was_changed caller.
18475         (emit_note_insn_var_location): Don't pool_free var.
18476         (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
18477         instead of 1.
18478         (vt_finalize): Call htab_delete on empty_shared_hash->htab and
18479         free_alloc_pool on shared_hash_pool.
18480
18481 2009-06-20  Anthony Green  <green@moxielogic.com>
18482
18483         * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
18484         * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
18485
18486 2009-06-20  Richard Guenther  <rguenther@suse.de>
18487
18488         * tree-ssa-structalias.c (find_func_aliases): For memset use
18489         a constraint from NULL if we memset to zero.
18490         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
18491         we explicitly handle that do not read from memory.
18492         (call_may_clobber_ref_p_1): Properly handle builtins that may
18493         set errno.
18494
18495 2009-06-20  Richard Guenther  <rguenther@suse.de>
18496
18497         PR tree-optimization/40495
18498         * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
18499         (new_scalar_tmp_constraint_exp): New function.
18500         (process_constraint): Do not create temporary decls.
18501         (process_all_all_constraints): Likewise.
18502         (handle_const_call): Likewise.
18503         (create_function_info_for): Do not set decl.
18504
18505 2009-06-19  Ian Lance Taylor  <iant@google.com>
18506
18507         * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
18508         (rs6000_attribute_table): Make static; move before use.
18509
18510 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
18511
18512         * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
18513         <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
18514         Propagate the TREE_READONLY flag without overwriting it.
18515         (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
18516         Propagate the TREE_READONLY flag onto the result.
18517         (process_call_operands): Move around.  Use correct constant value.
18518
18519 2009-06-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18520
18521         PR target/40482
18522         * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
18523         * config/arm/arm.md: Likewise.
18524
18525 2009-06-19  Ian Lance Taylor  <iant@google.com>
18526
18527         * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
18528         to GIMPLE_ERROR_MARK.
18529
18530         * c-typeck.c (build_conditional_expr): Add op1_original_type and
18531         op2_original_type parameters.  Warn about using different enum types.
18532         * c-parser.c (c_parser_conditional_expression): Pass original
18533         types to build_conditional_expr.
18534         * c-tree.h (build_conditional_expr): Update declaration.
18535
18536 2009-06-19  Ian Lance Taylor  <iant@google.com>
18537
18538         * config/i386/i386.c (ix86_function_specific_save): Test that
18539         fields match values, rather than testing the values are in a
18540         certain range.
18541
18542 2009-06-19  Richard Guenther  <rguenther@suse.de>
18543
18544         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
18545         ADDR_EXPR pointers.
18546         (ptr_derefs_may_alias_p): Likewise.
18547         (ptr_deref_may_alias_ref_p_1): New function.
18548         (ptr_deref_may_alias_ref_p): Likewise.
18549         (ref_maybe_used_by_call_p_1): Handle builtins that are not
18550         covered by looking at the ESCAPED solution.
18551         (call_may_clobber_ref_p_1): Likewise.
18552         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
18553         Handle NULL_TREE offset.  Do not produce redundant constraints.
18554         (process_all_all_constraints): New helper function.
18555         (do_structure_copy): Use it.
18556         (handle_lhs_call): Likewise.
18557         (find_func_aliases): Handle some builtins with pointer arguments
18558         and/or return values explicitly.
18559
18560 2009-06-19  Ian Lance Taylor  <iant@google.com>
18561
18562         * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
18563
18564 2009-06-19  Ian Lance Taylor  <iant@google.com>
18565
18566         * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
18567
18568 2009-06-19  Ian Lance Taylor  <iant@google.com>
18569
18570         * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
18571         * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
18572         version.
18573
18574         * c-decl.c (finish_decl): If -Wc++-compat, warn about
18575         uninitialized const.
18576
18577 2009-06-19  Ian Lance Taylor  <iant@google.com>
18578
18579         * dse.c (struct store_info): Rename bitmap field to bmap.  Change
18580         all uses.
18581
18582         * c-decl.c (in_struct, struct_types): Remove.
18583         (struct c_binding): Add in_struct field.
18584         (c_binding_ptr): Define type, along with VEC.
18585         (struct c_struct_parse_info): Define.
18586         (struct_parse_info): New static variable.
18587         (bind): Initialize in_struct field.
18588         (start_struct): Remove enclosing_in_struct and
18589         enclosing_struct_types parameters.  Add
18590         enclosing_struct_parse_info parameter.  Change all callers.  Set
18591         struct_parse_info rather than in_struct and struct_types.
18592         (grokfield): If -Wc++-compat and there is a symbol binding for the
18593         field name, set the in_struct flag and push it on the
18594         struct_parse_info->fields vector.
18595         (warn_cxx_compat_finish_struct): New static function.
18596         (finish_struct): Remove enclosing_in_struct and
18597         enclosing_struct_types parameters.  Add
18598         enclosing_struct_parse_info parameter.  Change all callers.  Don't
18599         set C_TYPE_DEFINED_IN_STRUCT here.  Call
18600         warn_cxx_compat_finish_struct.  Free struct_parse_info and set to
18601         parameter.  Only push on struct_types if warn_cxx_compat.
18602         (finish_enum): Only push on struct_types if warn_cxx_compat.
18603         (declspecs_add_type): Add loc parameter.  Change all callers.
18604         Change all error calls to error_at.  Pass loc, not input_location,
18605         to pedwarn calls.  Warn if -Wc++-compat and a typedef name is
18606         defined in a struct.  If -Wc++-compat and parsing a struct, record
18607         that a typedef name was used.
18608         * c-parser.c (c_parser_declspecs): Get location to pass to
18609         declspecs_add_type.
18610         (c_parser_struct_or_union_specifier): Update calls to start_struct
18611         and finish_struct.
18612         * c-tree.h (struct c_struct_parse_info): Declare.
18613         (finish_struct, start_struct): Update declarations.
18614         (declspecs_add_type): Update declaration.
18615
18616 2009-06-19  Ian Lance Taylor  <iant@google.com>
18617
18618         * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
18619         variable with an anonymous type.
18620
18621 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
18622
18623         * see.c: Remove for real.
18624
18625 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
18626
18627         * optabs.h (enum optab_index): Add new OTI_significand.
18628         (significand_optab): Define corresponding macro.
18629         * optabs.c (init_optabs): Initialize significand_optab.
18630         * genopinit.c (optabs): Implement significand_optab using
18631         significand?f2 patterns.
18632         * builtins.c (expand_builtin_mathfn): Handle
18633         BUILT_IN_SIGNIFICAND{,F,L}.
18634         (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
18635         expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
18636
18637         * config/i386/i386.md (significandxf2, significand<mode>2): New
18638         expanders to implement significandf, significand and significandl
18639         built-ins as inline x87 intrinsics.
18640
18641 2009-06-18  Anatoly Sokolov  <aesok@post.ru>
18642
18643         * config/avr/avr.c (avr_override_options): Remove setting value of
18644         PARAM_INLINE_CALL_COST.
18645
18646 2009-06-18  Richard Henderson  <rth@redhat.com>
18647
18648         PR 40488
18649         * tree-pass.h (TDF_ASMNAME): New.
18650         * tree-dump.c (dump_options): Add asmname.
18651         * doc/invoke.texi: Document it.
18652
18653         * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
18654         (dump_decl_name): ...here.
18655         (dump_function_name): New flags arg; mind TDF_ASMNAME.
18656         (dump_generic_node): Update dump_function_name calls.
18657         (print_call_name): New flags arg; update all dump calls.
18658         * diagnostic.h (print_call_name): Update.
18659         * gimple-pretty-print.c (dump_gimple_call): Update.
18660
18661 2009-06-18  H.J. Lu  <hongjiu.lu@intel.com>
18662
18663         PR target/40470
18664         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
18665
18666 2009-06-18  Diego Novillo  <dnovillo@google.com>
18667
18668         * doc/plugins.texi: Document plugin_is_GPL_compatible.
18669         * plugin.c (str_license): Declare.
18670         (try_init_one_plugin): Assert that the symbol
18671         'plugin_is_GPL_compatible' exists.
18672
18673 2009-06-18  Sergei Dyshel  <sergeid@il.ibm.com>
18674
18675         * see.c: Remove.
18676         * Makefile.in (OBJS-common): Remove see.o.
18677         (see.o): Remove.
18678         * common.opt (fsee): Mark as preserved for backward compatibility.
18679         * opts.c (common_handle_option): Add OPT_fsee to the backward
18680         compatibility section.
18681         * passes.c (init_optimization_passes, pass_see): Remove pass.
18682         * timevar.def (TV_SEE): Remove.
18683         * tree-pass.h (pass_see): Remove declaration.
18684         * doc/invoke.texi (-fsee): Remove documentation.
18685
18686 2009-06-18  Martin Jambor  <mjambor@suse.cz>
18687
18688         * tree-sra.c: Include statistics.h
18689         (sra_stats): New variable.
18690         (sra_initialize): Clear sra_stats.
18691         (create_access_replacement): Increment sra_stats.replacements.
18692         (get_access_replacement): Do not return twice.
18693         (analyze_all_variable_accesses): Increment statistics counter by the
18694         number of scalarized aggregates.
18695         (generate_subtree_copies): Increment sra_stats.subtree_copies.
18696         (sra_modify_expr): Increment sra_stats.exprs.
18697         (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
18698         (sra_modify_assign): Increment sra_stats.exprs,
18699         sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
18700         (perform_intra_sra): Update statistics counters.
18701         * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
18702
18703 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
18704
18705         * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
18706         (arm_scalar_mode_supported_p): New function.
18707
18708 2009-06-18  Paul Brook  <paul@codesourcery.com>
18709             Sandra Loosemore  <sandra@codesourcery.com>
18710
18711         * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
18712         (__extendhfsf2, __truncsfhf2): Define.
18713         * config/arm/fp16.c: New file.
18714         * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
18715         * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA):  Add fp16.c.
18716
18717 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
18718
18719         * doc/extend.texi (Half-Precision): New section.
18720         * doc/invoke.texi (Option Summary): List -mfp16-format.
18721         (ARM Options): List neon-fp16 as -mfpu value.  Document -mfp16-format.
18722         * config/arm/arm.opt (mfp16-format=): New.
18723         * config/arm/arm.c: Include intl.h.
18724         (TARGET_INVALID_PARAMETER_TYPE): Redefine.
18725         (TARGET_INVALID_RETURN_TYPE): Redefine.
18726         (TARGET_PROMOTED_TYPE): Redefine.
18727         (TARGET_CONVERT_TO_TYPE): Redefine.
18728         (arm_fp16_format): Define.
18729         (all_fpus): Add entry for neon-fp16.
18730         (fp_model_for_fpu): Likewise.
18731         (struct fp16_format): Declare.
18732         (all_fp16_formats): Define.
18733         (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
18734         functions.
18735         (arm_override_options): Set arm_fp16_format. Call sorry for fp16
18736         and no ldrh.
18737         (arm_legitimate_index_p): Treat HFmode like HImode.
18738         (thumb1_legitimate_address_p): Make it recognize HFmode constants.
18739         (coproc_secondary_reload_class): Special-case HFmode.
18740         (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
18741         (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
18742         (arm_init_fp16_builtins): New.
18743         (arm_init_builtins): Call it.
18744         (arm_invalid_parameter_type): New.
18745         (arm_invalid_return_type): New.
18746         (arm_promoted_type): New.
18747         (arm_convert_to_type).
18748         (arm_file_start): Deal with neon-fp16 as fpu_name.  Emit tag for fp16
18749         format.
18750         (arm_emit_fp16_const): New function.
18751         (arm_mangle_type): Mangle __fp16 as "Dh".
18752         * config/arm/arm.h (TARGET_VFPD32): Make it know about
18753         FPUTYPE_NEON_FP16.
18754         (TARGET_NEON_FP16): New.
18755         (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
18756         (enum fputype): Add FPUTYPE_NEON_FP16.
18757         (enum arm_fp16_format_type): Declare.
18758         (arm_fp16_format): Declare.
18759         (LARGEST_EXPONENT_IS_NORMAL): Define.
18760         * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
18761         * config/arm/arm-modes.def (HFmode): Define.
18762         * config/arm/vfp.md (*movhf_vfp): New.
18763         (extendhfsf2): New.
18764         (truncsfhf2): New.
18765         * config/arm/arm.md (fpu): Add neon_fp16.
18766         (floatsihf2, floatdihf2): New.
18767         (fix_trunchfsi2, fix_trunchfdi2): New.
18768         (truncdfhf2): New.
18769         (extendhfdf2): New.
18770         (movhf): New.
18771         (*arm32_movhf): New.
18772         (*thumb1_movhf): New.
18773         (consttable_2): Add check for HFmode constants.
18774         (consttable_4): Handle HFmode constants.
18775
18776 2009-06-18  Uros Bizjak  <ubizjak@gmail.com>
18777
18778         * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
18779
18780 2009-06-17  Olivier Hainque  <hainque@adacore.com>
18781
18782         * collect2.c (main): Use CONST_CAST2 to perform char ** to
18783         const char ** conversion in AIX specific section.
18784
18785 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
18786
18787         * config/i386/i386.c (ix86_special_builtin_type): Remove
18788         UINT64_FTYPE_PINT.  Add UINT64_FTYPE_PUNSIGNED.
18789         (bdesc_special_args): Updated.
18790         (ix86_init_mmx_sse_builtins): Likewise.
18791         (ix86_expand_special_args_builtin): Likewise.
18792
18793 2009-06-17  Richard Henderson  <rth@redhat.com>
18794
18795         * tree-pretty-print.c (maybe_dump_asm_name): New.
18796         (dump_decl_name): Use it.
18797         (PRINT_FUNCTION_NAME): Merge into...
18798         (dump_function_name): ... here.  Use maybe_dump_asm_name.
18799
18800 2009-06-17  Cary Coutant  <ccoutant@google.com>
18801
18802         * dbxout.c (dbxout_source_line): Add is_stmt parameter.
18803         Change caller.
18804         * debug.c (struct gcc_debug_hooks): Change placeholder for
18805         source_line hook.
18806         (debug_nothing_int_charstar_int): Replaced by...
18807         (debug_nothing_int_charstar_int_bool): ...this.
18808         * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
18809         source_line prototype.
18810         (debug_nothing_int_charstar_int): Replaced by...
18811         (debug_nothing_int_charstar_int_bool): ...this.
18812         * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
18813         * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
18814         Output is_stmt operand when necessary.
18815         * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
18816         (notice_source_line): Add is_stmt parameter.
18817         * sdbout.c (sdbout_source_line): Add is_stmt parameter.
18818         * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
18819         Change callers.
18820         * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
18821         * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
18822
18823 2009-06-17  Ian Lance Taylor  <iant@google.com>
18824
18825         * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
18826         Change all uses.
18827         (struct store_by_pieces_d): Rename from store_by_pieces.  Change
18828         call uses.
18829
18830 2009-06-17  Adam Nemet  <anemet@caviumnetworks.com>
18831
18832         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
18833         STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
18834         tree_strip_sign_nop_conversions and
18835         tree_ssa_strip_useless_type_conversions rather than stripping
18836         the operations here.
18837         (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
18838         Declare them.
18839         * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
18840         * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
18841         * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
18842         tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
18843         functions.
18844
18845 2009-06-17  Michael Eager  <eager@eagercon.com>
18846
18847         * config/rs6000/constraints.md (register_constraint "d"): New.
18848         * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
18849         truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
18850         *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
18851         *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
18852         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
18853         divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
18854         fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
18855         * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
18856         __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
18857         __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
18858         __fctiwz): Same.
18859         * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
18860         *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
18861         *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
18862         *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
18863         *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
18864         fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
18865         stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
18866         *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
18867         *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
18868         trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
18869         *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
18870         *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
18871         *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
18872         * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
18873
18874 2009-06-16  Ian Lance Taylor  <iant@google.com>
18875
18876         * profile.c (total_num_never_executed): Don't define.
18877         (compute_branch_probabilities): Don't count or print
18878         num_never_executed.
18879         (init_branch_prob): Don't set total_num_never_executed.
18880         (end_branch_prob): Don't print total_num_never_executed.
18881
18882 2009-06-17  David Daney  <ddaney@caviumnetworks.com>
18883
18884         * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
18885
18886 2009-06-17  David Edelsohn  <edelsohn@gnu.org>
18887
18888         * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
18889         (nabstd2_fpr): Same.
18890
18891 2009-06-17  Steve Ellcey  <sje@cup.hp.com>
18892
18893         * expr.c (expand_assignment): Change complex type check.
18894
18895 2009-06-17  Basile Starynkevitch  <basile@starynkevitch.net>
18896
18897         * doc/plugins.texi (Building GCC plugins): Added new section.
18898
18899 2009-06-17  Ian Lance Taylor  <iant@google.com>
18900
18901         * c-pch.c (get_ident): Don't set size of templ array.
18902         (pch_init): Don't set size of partial_pch array.
18903
18904         * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
18905         string constant to intialize an array whose size is the length of
18906         the string.
18907
18908 2009-06-17  Richard Guenther  <rguenther@suse.de>
18909
18910         PR tree-optimization/40389
18911         * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
18912         to addressable types.
18913         * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
18914
18915 2009-06-17  Richard Guenther  <rguenther@suse.de>
18916
18917         PR middle-end/40460
18918         * tree-chrec.h (build_polynomial_chrec): If we cannot determine
18919         if there is no evolution of left in the loop bail out.
18920         * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
18921         chrec_fold_multiply.
18922
18923 2009-06-16  J"orn Rennecke  <joern.rennecke@arc.com>
18924             Janis Johnson  <janis187@us.ibm.com>
18925
18926         PR target/39254
18927         * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
18928         for the symbol ref of a constant that is the source of a move
18929         - nor for any other not-obvious-label-ref constants.
18930
18931 2009-06-16  Olatunji Ruwase  <tjruwase@google.com>
18932
18933         * plugin.c (position_pass): Skip newly inserted pass during list
18934         traversal to avoid repeated insertion.
18935
18936 2009-06-16  Ian Lance Taylor  <iant@google.com>
18937
18938         * vec.h (VEC_stack_alloc): Define different version if
18939         GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
18940         (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
18941         (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
18942         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
18943
18944 2009-06-16  H.J. Lu  <hongjiu.lu@intel.com>
18945
18946         * config.gcc (extra_headers): Add ia32intrin.h for x86.
18947
18948         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
18949         IX86_BUILTIN_BSRDI.  IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
18950         IX86_BUILTIN_RDTSCP.  IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
18951         IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
18952         (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
18953         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
18954         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
18955         (bdesc_special_args): Add __builtin_ia32_rdtsc and
18956         __builtin_ia32_rdtscp.
18957         (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
18958         __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
18959         and __builtin_ia32_rorhi.
18960         (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
18961         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
18962         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
18963         (ix86_expand_args_builtin): Likewise.
18964         (ix86_expand_special_args_builtin): Likewise.
18965
18966         * config/i386/i386.md (UNSPECV_RDTSCP): New.
18967         (UNSPECV_RDTSC): Likewise.
18968         (UNSPECV_RDPMC): Likewise.
18969         (*bsr): Renamed to ...
18970         (bsr): This
18971         (*bsr_rex64): Renamed to ...
18972         (bsr_rex64): This.
18973         (rdpmc): New.
18974         (*rdpmc): Likewise.
18975         (*rdpmc_rex64): Likewise.
18976         (rdtsc): Likewise.
18977         (*rdtsc): Likewise.
18978         (*rdtsc_rex64): Likewise.
18979         (rdtscp): Likewise.
18980         (*rdtscp): Likewise.
18981         (*rdtscp_rex64): Likewise.
18982
18983         * config/i386/ia32intrin.h: New.
18984
18985         * config/i386/x86intrin.h: Include <ia32intrin.h>.
18986
18987 2009-06-16  Ian Lance Taylor  <iant@google.com>
18988
18989         * ira-build.c (copy_info_to_removed_store_destinations):
18990         Initialize parent_a.
18991
18992 2009-06-16  Ian Lance Taylor  <iant@google.com>
18993
18994         * c-decl.c (grokdeclarator): Change size_varies to bool.
18995
18996 2009-06-16  Ian Lance Taylor  <iant@google.com>
18997
18998         * sel-sched.c: Make forward declarations of move_op_hooks and
18999         fur_hooks explicitly extern.
19000
19001 2009-06-16  Ian Lance Taylor  <iant@google.com>
19002
19003         * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
19004         * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
19005
19006 2009-06-16  Ian Lance Taylor  <iant@google.com>
19007
19008         * resource.c (mark_referenced_resources): Change
19009         include_delayed_effects parameter to bool.  Change all callers.
19010         (mark_end_of_function_resources): Likewise.
19011         * reorg.c (insn_references_resource_p): Likewise.
19012         (insn_sets_resource_p): Likewise.
19013         * resource.h (mark_referenced_resources): Update declaration.
19014         (mark_end_of_function_resources): Update declaration.
19015
19016 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
19017
19018         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
19019
19020 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
19021
19022         * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
19023         GCC can bootstrap on AIX with GNU Binutils 2.20.
19024
19025 2009-06-16  Ian Lance Taylor  <iant@google.com>
19026
19027         * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
19028
19029 2009-06-16  Ian Lance Taylor  <iant@google.com>
19030
19031         * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
19032         inline, not extern inline.
19033         (exact_log2): Likewise.
19034         * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
19035         test CLZ_HWI.
19036         (exact_log2): Likewise, but don't test CTZ_HWI.
19037
19038 2009-06-16  Ian Lance Taylor  <iant@google.com>
19039
19040         * bitmap.c (bitmap_clear): Don't declare as inline.
19041         * gimple.c (gimplify_assign): Likewise.
19042         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
19043         * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
19044         (sched_scan_info): Remove duplicate definition.
19045
19046 2009-06-16  Ian Lance Taylor  <iant@google.com>
19047
19048         * c-common.c (skip_evaluation): Don't define.
19049         (c_inhibit_evaluation_warnings): Define global variable.
19050         (overflow_warning): Check c_inhibit_evaluation_warnings rather
19051         than skip_evaluation.
19052         (convert_and_check, warn_for_div_by_zero): Likewise.
19053         * c-common.h (skip_evaluation): Don't declare.
19054         (c_inhibit_evaluation_warnings): Declare.
19055         * c-parser.c (c_parser_typeof_specifier): Set
19056         c_inhibit_evaluation_warnings rather than skip_evaluation.
19057         (c_parser_conditional_expression): Likewise.
19058         (c_parser_binary_expression): Likewise.
19059         (c_parser_sizeof_expression): Likewise.
19060         (c_parser_alignof_expression): Likewise.
19061         * c-typeck.c (build_indirect_ref): Check
19062         c_inhibit_evaluation_warnings rather than skip_evaluation.
19063         (build_conditional_expr, build_binary_op): Likewise.
19064
19065 2009-06-16  Richard Guenther  <rguenther@suse.de>
19066
19067         * tree-ssa-alias.c (is_escape_site): Remove.
19068         * tree-ssa-alias.h (enum escape_type): Remove.
19069         (is_escape_site): Likewise.
19070         * tree-ssa-structalias.c (find_func_aliases): Handle escapes
19071         via casts and asms without deferring to is_escape_site.
19072
19073 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
19074
19075         PR middle-end/40446
19076         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
19077         use gen_lowpart if op0 has complex mode.
19078
19079 2009-06-16  Richard Guenther  <rguenther@suse.de>
19080
19081         * tree-ssa-structalias.c (do_ds_constraint): Stores in global
19082         variables add them to ESCAPED.
19083         (find_func_aliases): Do not make all indirectly stored values escaped.
19084
19085 2009-06-16  Rafael Avila de Espindola  <espindola@google.com>
19086
19087         * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
19088         make_decl_one_only.
19089
19090 2009-06-16  Martin Jambor  <mjambor@suse.cz>
19091
19092         PR tree-optimization/40432
19093         * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
19094         check whether we need to force gimple register operand.
19095
19096 2009-06-16  Martin Jambor  <mjambor@suse.cz>
19097
19098         PR tree-optimization/40413
19099         * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
19100         build_ref_for_offset.
19101         (propagate_subacesses_accross_link): Fix a typo in a comment.
19102
19103 2009-06-16  Ira Rosen  <irar@il.ibm.com>
19104
19105         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
19106         with additional parameter.
19107         * tree-vectorizer.h (enum vect_def_type): Add new value
19108         vect_nested_cycle.
19109         (enum vect_relevant): Add comments.
19110         (vect_is_simple_reduction): Add new argument.
19111         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
19112         Detect nested cycles.
19113         (vect_is_simple_reduction): Update documentation, add an argument to
19114         distinguish inner-loop reduction from nested cycle, detect nested
19115         cycles, fix printings and indentation, don't swap operands in case
19116         of nested cycle.
19117         (get_initial_def_for_reduction): Handle subtraction.
19118         (vect_create_epilog_for_reduction): Add new argument to specify
19119         reduction variable.
19120         (vect_finalize_reduction): Handle subtraction, fix comments.
19121         (vectorizable_reduction): Handle nested cycles. In case of nested
19122         cycle keep track of the reduction variable position. Call
19123         vect_is_simple_reduction with additional parameter. Use original
19124         statement code in reduction epilogue for nested cycle. Call
19125         vect_create_epilog_for_reduction with additional parameter.
19126         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
19127         inner-loop vectorization.
19128         (vect_recog_widen_sum_pattern): Likewise.
19129         * tree-vect-stmts.c (process_use): Distinguish between nested cycles
19130         and reductions.
19131         (vect_mark_stmts_to_be_vectorized): Likewise.
19132         (vect_get_vec_def_for_operand): Handle nested cycles.
19133
19134 2009-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19135
19136         * doc/invoke.texi (Debugging Options): Fix option index entries
19137         for -fdump-statistics, -frandom-seed add entries for
19138         -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
19139         (FRV Options): Fix entries for -mTLS, -mtls.
19140         (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
19141         (i386 and x86-64 Options): Fix entry for -mno-red-zone.
19142         (M68hc1x Options): Fix @itemx for -mnominmax.
19143         (MCore Options): Fix entry for -mno-lsim.
19144         (MMIX Options): Fix entry for -mabi=mmixware.
19145         (PDP-11 Options): Fix entry for -mbcopy-builtin.
19146
19147 2009-06-16  Basile Starynkevitch  <basile@starynkevitch.net>
19148
19149         * doc/plugins.texi (Interacting with the GCC Garbage Collector):
19150         Mention the plugin mode of gengtype.
19151         * doc/gty.texi (Source Files Containing Type Information): Likewise.
19152         * gengtype.c: Updated copyright.
19153         (plugin_files, nb_plugin_files) Added new static variables.
19154         (measure_input_list) Care about plugin_files.
19155         (write_rtx_next): Added early return in plugin mode.
19156         (create_file): Updated copyright year in generated file. Added
19157         asserts.
19158         (oprintf): Added early return if NULL outf.
19159         (get_output_file_with_visibility): Care of plugin_files.
19160         (get_output_file_name): May return null.
19161         (write_local): Added early return.
19162         (put_mangled_filename): Ditto.
19163         (finish_root_table): Added check for base_files.
19164         (write_roots): Care about null when plugins.
19165         (main): Added plugin mode.
19166
19167 2009-06-15  Ian Lance Taylor  <iant@google.com>
19168
19169         * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
19170         * gcov.c (read_count_file): Add braces around variables declared
19171         before label.
19172
19173         * c.opt (Wjump-misses-init): New warning.
19174         * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
19175         -Wall and -Wc++-compat if not already set.
19176         (c_common_post_options): Clear warn_jump_misses_init if it was not
19177         set.
19178         * c-decl.c (struct c_binding): Change type field to a union with
19179         new label field.  Make it the first field in the struct.  Update
19180         references to type to use u.type instead.
19181         (struct c_spot_bindings): Define.
19182         (struct c_goto_bindings): Define.
19183         (c_goto_bindings_p): Define, along with VECs.
19184         (struct c_label_vars): Define.
19185         (struct c_scope): Add has_label_bindings field.
19186         (bind_label, set_spot_bindings): New static functions.
19187         (decl_jump_unsafe, update_spot_bindings): New static functions.
19188         (update_label_decls): New static function.
19189         (pop_scope): Call update_label_decls.  Don't call c_end_vm_scope.
19190         Update binding u.label field to shadowed field.
19191         (c_binding_start_stmt_expr): New function.
19192         (c_binding_end_stmt_expr): New function.
19193         (pushdecl): Don't call c_begin_vm_scope.
19194         (make_label): Add defining and p_label_vars parameters.  Change
19195         all callers.
19196         (lookup_label): Correct test for whether a label has not yet been
19197         defined.  Call bind_label rather than bind.
19198         (warn_about_goto): New static function.
19199         (lookup_label_for_goto): New function.
19200         (declare_label): Call bind_label rather than bind.
19201         (check_earlier_gotos): New static function.
19202         (define_label): Don't give errors about jumping into statement
19203         expressions or scopes of variably modified types.  Call
19204         set_spot_bindings and check_earlier_gotos.  Call bind_label
19205         instead of bind.  Don't set label_context_stack_se or
19206         label_context_stack_vm.
19207         (c_get_switch_bindings): New function.
19208         (c_release_switch_bindings): New function.
19209         (c_check_switch_jump_warnings): New function.
19210         (start_function): Don't set label_context_stack_se or
19211         label_context_stack_vm.
19212         (finish_function): Likewise.
19213         * c-typeck.c (label_context_stack_se): Don't define.
19214         (label_context_stack_vm): Don't define.
19215         (c_finish_goto_label): Call lookup_label_for_goto rather than
19216         lookup_label.  Don't give errors about jumping into a statement
19217         expression or the scope of a variably modified type.  Don't set
19218         label_context_stack_se or label_context_stack_vm.
19219         (struct c_switch): Remove blocked_stmt_expr and blocked_vm
19220         fields.  Add bindings field.
19221         (c_start_case): Don't set deleted fields.  Set bindings field.
19222         (do_case): Rework order of tests.  Don't check blocked_stmt_expr
19223         or blocked_vm.  Call c_check_switch_jump_warnings.
19224         (c_finish_case): Don't test blocked_stmt_expr field.  Call
19225         c_release_switch_bindings.
19226         (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
19227         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
19228         set label_context_stack_se.  Call c_bindings_start_stmt_expr.
19229         (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
19230         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
19231         set label_context_stack_se.  Call c_bindings_end_stmt_expr.
19232         (c_begin_vm_scope, c_end_vm_scope): Don't define.
19233         * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
19234         (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
19235         (C_DECL_UNJUMPABLE_VM): Don't define.
19236         (C_DECL_UNDEFINABLE_VM): Don't define.
19237         (struct c_label_list): Don't define.
19238         (struct c_label_context_se): Don't define.
19239         (struct c_label_context_vm): Don't define.
19240         (struct c_spot_bindings): Declare.
19241         (c_bindings_start_stmt_expr): Declare.
19242         (c_bindings_end_stmt_expr): Declare.
19243         (lookup_label_for_goto): Declare.
19244         (c_get_switch_bindings, c_release_switch_bindings): Declare.
19245         (c_check_switch_jump_warnings): Declare.
19246         (label_context_stack_se, label_context_stack_vm): Don't declare.
19247         (c_finish_goto_label): Update declaration.
19248         (c_begin_vm_scope, c_end_vm_scope): Don't declare.
19249         * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
19250         (Warning Options): Document -Wjump-misses-init.
19251
19252 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
19253
19254         * tree-object-size.c (addr_object_size): Fix a pasto in the last
19255         change.
19256
19257 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
19258
19259         * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
19260
19261 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
19262
19263         * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
19264
19265 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
19266
19267         * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
19268
19269 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
19270
19271         * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
19272         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
19273         * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
19274         * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
19275         * dwarf2asm.c (dw2_force_const_mem): Update call to
19276         make_decl_one_only.
19277         * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
19278         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
19279         * langhooks.c (lhd_comdat_group): Remove.
19280         * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
19281         * tree.h (DECL_COMDAT_GROUP): New.
19282         (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
19283         (tree_decl_with_vis): Add comdat_group. Remove one_only.
19284         (make_decl_one_only): Change signature.
19285         * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
19286         make_decl_one_only.
19287         (make_decl_one_only): Change signature.
19288         (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
19289
19290 2009-06-15  Richard Guenther  <rguenther@suse.de>
19291
19292         PR middle-end/40439
19293         * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
19294
19295 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19296
19297         * tree-ssa-math-opts.c: Remove extra divide.
19298
19299 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19300
19301         * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
19302
19303 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19304
19305         * passes.c: Add bswap pass.
19306         * tree-pass.h: Add pass_optimize_bswap declaration.
19307         * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
19308         Include rtl.h, expr.h and optabs.h for optab_handler check.
19309         (struct symbolic_number, pass_optimize_bswap): New definition.
19310         (do_shift_rotate, verify_symbolic_number_p): New functions.
19311         (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
19312         (gate_optimize_bswap): New function.
19313         * tree.c (widest_int_cst_value): New function.
19314         * tree.h (widest_int_cst_value): Prototype added.
19315
19316 2009-06-14  Steven Bosscher  <steven@gcc.gnu.org>
19317
19318         * cfgcleanup.c (old_insns_match_p): Remove code to substitute
19319         REG_EQUAL/REG_EQUIV notes.
19320
19321 2009-06-14  Richard Guenther  <rguenther@suse.de>
19322
19323         PR middle-end/40389
19324         * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
19325         has its address taken if NRV was applied and it is addressable.
19326         * tree-ssa-structalias.c (get_constraint_for_address_of): New
19327         function split out from ...
19328         (get_constraint_for_1): ... here.
19329         (handle_rhs_call): Use it to mark the return slot escaped if
19330         it is addressable and NRV was applied.
19331
19332 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
19333
19334         * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
19335         Change first argument type to location_t.
19336         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
19337         Do not set input_location.
19338         Use loc instead of input_location throughout.
19339
19340 2009-06-13  Richard Guenther  <rguenther@suse.de>
19341
19342         PR tree-optimization/40421
19343         * tree-predcom.c (should_unroll_loop_p): Remove.
19344         (tree_predictive_commoning_loop): Use can_unroll_loop_p.
19345
19346 2009-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
19347
19348         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
19349         Add location argument.
19350
19351 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
19352
19353         * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
19354         build_decl.
19355         * config/s390/s390.c (s390_build_builtin_va_list): Same.
19356         (s390_gimplify_va_arg): Pass location to create_artificial_label.
19357         * config/spu/spu-protos.h: Add location to
19358         spu_resolve_overloaded_builtin.
19359         * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
19360         spu_build_builtin_va_list.
19361         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
19362         argument.  Pass location to build_function_call_vec.
19363         * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
19364         build_decl.
19365         (emit_fpu_switch): Same.
19366         (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
19367         * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
19368         to build_decl and create_artificial_label.
19369         (xtensa_gimplify_va_arg_expr): Same.
19370         * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
19371         (xstormy16_gimplify_va_arg_expr): Same.
19372         * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
19373         * config/arm/arm.c (arm_build_builtin_va_list): Same.
19374         * config/mips/mips.c (mips_build_builtin_va_list): Same.
19375         (mips16_build_function_stub): Same.
19376         (mips16_build_call_stub): Same.
19377
19378 2009-06-13  Richard Earnshaw  <rearnsha@arm.com>
19379
19380         PR target/40327
19381         * arm/constraints.md (Pa, Pb): New constraints.
19382         * arm/arm.md (thumb1_addsi3): Support more complex additions.  Add a
19383         split pattern to deal with them.
19384
19385 2009-06-13  Joerg Sonnenberger  <joerg@britannica.bec.de>
19386
19387         * doc/invoke.texi: Add missing option -Wp,OPTION in list,
19388         fix index entry for -Xpreprocessor.
19389
19390 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
19391
19392         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
19393         Add location argument to build_decl call.
19394         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
19395         (rs6000_init_builtins): Same.
19396         (spe_init_builtins): Same.
19397         (rs6000_gimplify_va_arg): Add location argument to
19398         create_artificial_label call.
19399
19400 2009-06-12  Steven Bosscher  <steven@gcc.gnu.org>
19401
19402         * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
19403         * combine-stack-adj.c (pass_stack_adjustments): Use it.
19404         * Makefile.in: Fix GGC dependency for gcse.o.
19405
19406 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
19407
19408         * tree-pretty-print.c (dump_generic_node): Dump column numbers.
19409         * gimple-pretty-print.c (dump_gimple_stmt): Same.
19410         * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
19411         created.
19412         * c-parser.c (c_parser_binary_expression): Use current column while
19413         building binary operations.
19414         * common.opt (fshow-column): Enable by default.
19415         * tree-vrp.c (check_array_ref): Use warning_at.
19416         (check_array_bounds): Use location from call back if expr has no
19417         location.
19418         * tree.h: Add location argument to maybe_fold_*.
19419         * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
19420         (maybe_fold_offset_to_array_ref): Add location argument and use it.
19421         (maybe_fold_offset_to_component_ref): Same.
19422         (maybe_fold_offset_to_reference): Same.
19423         (maybe_fold_offset_to_address): Same.
19424         (maybe_fold_stmt_indirect): Same.
19425         (maybe_fold_stmt_addition): Same.
19426         (fold_stmt_r): Pass location to maybe_fold_*.
19427         (fold_gimple_assign): Same.
19428         * c-tree.h: Add location argument to finish_decl,
19429         default_function_array_conversion, store_init_value.
19430         * c-decl.c (define_label): Use error_at.
19431         (c_make_fname_decl): Pass location to finish_decl.
19432         (finish_decl): New location argument.
19433         (build_compound_literal): Pass location to store_init_value.
19434         (grokdeclarator): Pass location to finish_decl.
19435         (grokfield): Same.
19436         * c-typeck.c (array_to_pointer_conversion): New location argument.
19437         (function_to_pointer_conversion): Same.
19438         (default_function_array_conversion): Same.
19439         (parser_build_unary_op): Pass location to overflow_warning.
19440         (parser_build_binary_op): Same.  Use warning_at.
19441         (build_unary_op): Pass location to array_to_pointer_conversion.
19442         (build_c_cast): Pass location to digest_init.
19443         (build_modify_expr): New location argument.
19444         (convert_for_assignment): Same.
19445         (store_init_value): Same.
19446         (digest_init): Same.
19447         (output_init_element): Pass location to digest_init and
19448         array_to_pointer_conversion.
19449         (c_finish_return): Pass location to convert_for_assignment.
19450         * gimplify.c (gimplify_conversion): Pass location to
19451         maybe_fold_offset_to_address.
19452         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
19453         to maybe_fold_stmt_addition.
19454         * c-omp.c (c_finish_omp_atomic): Pass new location to
19455         build_modify_expr.
19456         (c_finish_omp_for): Same.
19457         * c-common.c (overflow_warning): New argument.
19458         * c-common.h: New argument to build_modify_expr, overflow_warning.
19459         * c-parser.c (c_parser_declaration_or_fndef): Pass location to
19460         finish_decl.
19461         (c_parser_initializer): Pass location to
19462         default_function_array_conversion.
19463         (c_parser_initelt): Same.
19464         (c_parser_initval): Same.
19465         (c_parser_asm_operands): Same.
19466         (c_parser_expr_no_commas): Same.  Pass location to build_modify_expr.
19467         (c_parser_conditional_expression): Same.
19468         (c_parser_binary_expression): Add location info to stack.  Use it.
19469         (c_parser_unary_expression): Pass location to
19470         default_function_array_conversion, parser_build_unary_op,
19471         build_indirect_ref, c_parser_postfix_expression_after_primary.
19472         (c_parser_postfix_expression_after_primary): New location argument.
19473         Use it.
19474         (c_parser_expression_conv): Pass location to
19475         default_function_array_conversion.
19476         (c_parser_expr_list): Same.
19477         (c_parser_omp_atomic): Same.
19478         (c_parser_omp_for_loop): Same.
19479         * c-tree.h (struct c_declarator): Add comment to id_loc.
19480         (build_array_declarator): New argument.
19481         * c-decl.c (build_array_declarator): Add location argument.
19482         (grokdeclarator): Set id_loc for cdk_array.
19483         * c-parser.c (c_parser_direct_declarator_inner): Pass location to
19484         build_array_declarator.
19485         * tree.c (build_omp_clause): Add location argument.
19486         * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
19487         (OMP_CLAUSE_LOCATION): New macro.
19488         (struct tree_omp_clause): Add location field.
19489         (build_omp_clause): Add argument.
19490         * cp/pt.c (tsubst_omp_for_iterator): Pass location to
19491         build_omp_clause.
19492         * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
19493         (cp_parser_omp_clause_collapse): Same.
19494         (cp_parser_omp_clause_default): Same.
19495         (cp_parser_omp_clause_if): Same.
19496         (cp_parser_omp_clause_nowait): Same.
19497         (cp_parser_omp_clause_num_threads): Same.
19498         (cp_parser_omp_clause_ordered): Same.
19499         (cp_parser_omp_clause_schedule): Same.
19500         (cp_parser_omp_clause_untied): Same.
19501         (cp_parser_omp_for_loop): Same.
19502         (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
19503         * c-tree.h (c_start_case): Add location argument.
19504         (c_process_expr_stmt): Same.
19505         (c_finish_goto_*): Same.
19506         * tree-parloops.c (initialize_reductions): Pass location to
19507         build_omp_clause.
19508         (create_parallel_loop): Same.
19509         * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
19510         (gfc_trans_omp_reduction_list): Same.
19511         (gfc_trans_omp_clauses): Same.
19512         (gfc_trans_omp_do): Same.
19513         * c-typeck.c (c_finish_goto_label): Same.
19514         (c_finish_goto_ptr): New location argument.
19515         (c_start_case): Same.
19516         (emit_side_effect_warnings): Same.
19517         (c_process_expr_stmt): Same.
19518         (c_finish_stmt_expr): Same.
19519         (c_finish_omp_clauses): Use error_at instead of error.
19520         * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
19521         build_omp_clause.
19522         * c-omp.c (c_split_parallel_clauses): New location argument.
19523         * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
19524         to build_omp_clause.
19525         (convert_local_reference_stmt): Same.
19526         (convert_gimple_call): Same.
19527         * c-common.h (c_split_parallel_clauses): New argument.
19528         * c-parser.c (c_parser_statement_after_labels): Pass location to
19529         c_finish_goto_label.
19530         (c_parser_switch_statement): Pass location to c_start_case.
19531         (c_parser_for_statement): Pass location to c_finish_expr_stmt,
19532         and c_process_expr_stmt.
19533         (c_parser_omp_variable_list): Add location argument.
19534         (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
19535         (c_parser_omp_clause_default): Same.
19536         (c_parser_omp_clause_if): Same.
19537         (c_parser_omp_clause_num_threads): Same.
19538         (-c_parser_omp_clause_ordered): Same.
19539         (c_parser_omp_clause_reduction): Pass location to
19540         c_parser_omp_variable_list.
19541         (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
19542         (c_parser_omp_clause_untied): Same.
19543         (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
19544         (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
19545
19546         * c-tree.h (check_for_loop_decls, undeclared_variable,
19547         build_component_ref, build_array_ref, build_external_ref,
19548         c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
19549         build_conditional_expr, build_compound_expr, c_cast_expr,
19550         build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
19551         c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
19552         argument.
19553         * c-semantics.c (build_stmt): Same.
19554         (build_case_label): Same.
19555         * c-decl.c (c_finish_incomplete_decl): Pass location on down.
19556         (undeclared_variable): New argument.
19557         (make_label): Same.
19558         (lookup_label): Pass location on down.
19559         (define_label): Same.
19560         (finish_decl): Same.
19561         (build_compound_literal): Same.
19562         (finish_struct): Same.
19563         (finish_function): Do not set location here.
19564         (check_for_loop_decls): New argument.
19565         * tree.c (save_expr): Set location.
19566         (build_empty_stmt): New argument.
19567         * tree.h (build_empty_stmt): New argument to build_empty_stmt.
19568         (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
19569         * builtins.c (gimplify_va_arg_expr): Use locations.
19570         (expand_builtin_sync_operation): Same.
19571         * c-typeck.c (build_component_ref): New argument.
19572         (build_array_ref): Same.
19573         (build_external_ref): Same.
19574         (c_expr_sizeof_expr): Same.
19575         (c_expr_sizeof_type): Same.
19576         (parser_build_unary_op): Same.
19577         (build_conditional_expr): Same.
19578         (build_compound_expr): Pass location on down.
19579         (build_compound_expr): New argument.
19580         (build_c_cast): Same.
19581         (c_cast_expr): Same.
19582         (build_asm_expr): Same.
19583         (c_finish_return): Same.
19584         (c_process_expr_stmt): Pass location on down.
19585         (c_finish_stmt_expr): New argument.
19586         (push_clenaup): Same.
19587         (c_finish_omp_parallel): Same.
19588         (c_finish_omp_task): Same.
19589         * gimplify.c (gimplify_call_expr): Pass location on down.
19590         * c-omp.c (c_finish_omp_master): New argument.
19591         (c_finish_omp_critical): Same.
19592         (c_finish_omp_ordered): Same.
19593         (c_finish_omp_barrier): Same.
19594         (-c_finish_omp_taskwait): Same.
19595         (c_finish_omp_atomic): Same.
19596         (c_finish_omp_flush): Same.
19597         * tree-inline.c (copy_tree_body_r): Pass location on down.
19598         (inline_forbidden_p): Remove use of input_location.
19599         * c-gimplify.c (c_build_bind_expr): New argument.
19600         * c-common.c (c_common_truthvalue_conversion): Pass location on down.
19601         (c_sizeof_or_alignof_type): New argument.
19602         (c_alignof_expr): Same.
19603         (build_va_arg): Same.
19604         (c_add_case_label): Same.
19605         * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
19606         c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
19607         c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
19608         c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
19609         c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
19610         c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
19611         New argument.
19612         * stub-objc.c (objc_build_selector_expr): Same.
19613         (objc_build_throw_stmt): Same.
19614         * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
19615         (c_parser_initelt): Same.
19616         (c_parser_compound_statement): Same.
19617         (c_parser_compound_statement_nostart): Same.
19618         (c_parser_label): Same.
19619         (c_parser_statement_after_labels): Same.
19620         (c_parser_if_body): Same.
19621         (c_parser_else_body): Same.
19622         (c_parser_if_statement): Same.
19623         (c_parser_switch_statement): Same.
19624         (c_parser_while_statement): Same.
19625         (c_parser_do_statement): Same.
19626         (c_parser_for_statement): Same.
19627         (c_parser_asm_statement): Same.
19628         (c_parser_conditional_expression): Same.
19629         (c_parser_binary_expression): Same.
19630         (c_parser_cast_expression): Same.
19631         (c_parser_unary_expression): Same.
19632         (c_parser_sizeof_expression): Same.
19633         (c_parser_alignof_expression): Same.
19634         (c_parser_postfix_expression): Same.
19635         (c_parser_expression): Same.
19636         (c_parser_objc_receiver): Same.
19637         (c_parser_omp_variable_list): Same.
19638         (c_parser_omp_structured_block): Same.
19639         (c_parser_omp_atomic): New argument.
19640         (c_parser_omp_barrier): Same.
19641         (c_parser_omp_critical): Same.
19642         (c_parser_omp_flush): Pass location on down.
19643         (c_parser_omp_for_loop): New argument.
19644         (c_parser_omp_for): Same.
19645         (c_parser_omp_master): Same.
19646         (c_parser_omp_ordered): Same.
19647         (c_parser_omp_sections_scope): Same.
19648         (c_parser_omp_sections): Same.
19649         (c_parser_omp_parallel): Same.
19650         (c_parser_omp_single): Same.
19651         (c_parser_omp_task): Same.
19652         (c_parser_omp_taskwait): Pass location on down.
19653         (c_parser_omp_construct): Same.
19654         (c_parser_omp_threadprivate): Same.
19655         * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
19656         builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
19657         tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
19658         c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
19659         c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
19660         emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
19661         rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
19662         tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
19663         config/i386/i386.c, stmt.c:
19664         Add location argument to the following function definitions and/or
19665         function calls: build_decl, objcp_start_struct, objcp_finish_struct,
19666         start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
19667         cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
19668         build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
19669         do_case, c_finish_bc_stmt, build_compound_literal,
19670         build_function_call.
19671         * c-decl.c (build_compound_literal): Add location argument.
19672         Make all diagnostic calls use location.
19673         (start_struct): Same.
19674         (finish_struct): Same.
19675         (start_enum): Same.
19676         (build_enumerator): Same.
19677         (start_function): Same.
19678         (grokdeclarator): Make all diagnostic calls use location.
19679         (store_parm_decls_oldstyle): Same.
19680         * c-typeck.c (build_function_call): Add location argument.
19681         Make all diagnostic calls use location.
19682         (do_case): Same.
19683         (c_finish_bc_stmt): Same.
19684         * tree-nested.c (get_trampoline_type): Add argument.
19685         Pass location to build_decl.
19686         (lookup_tramp_for_decl): Pass location to get_trampoline_type.
19687         * rtl.h (RTL_LOCATION): New.
19688         * c-common.c (c_add_case_label): Add location argument.
19689         Make all diagnostic calls use location.
19690         * c-common.h: Add location argument to make_fname_decl, do_case,
19691         c_add_case_label, build_function_call, resolve_overloaded_builtin.
19692         * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
19693         Set it appropriately for every case.  Pass enum_loc to start_enum
19694         call.  Pass value_loc first to build_enumerator.  Pass enum_loc to
19695         parser_xref_tag.
19696         (c_parser_struct_or_union_specifier): Save location.  Use it for
19697         start_struct, finish_struct, and parser_xref_tag.
19698
19699 2009-06-12  Ian Lance Taylor  <iant@google.com>
19700
19701         * fold-const.c (fold_unary): Rename local variable and to and_expr.
19702
19703         * c-opts.c (c_common_handle_option): For -Wc++-compat set
19704         cpp_opts->warn_cxx_operator_names.
19705
19706 2009-06-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19707
19708         PR tree-opt/38865
19709         * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
19710         is returns NULL and OP is a VCE, look through the VCE.
19711
19712 2009-06-12  Ian Lance Taylor  <iant@google.com>
19713
19714         PR bootstrap/40430
19715         * collect2.c (main): Use CONST_CAST2 in code inside #if
19716         LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
19717
19718 2009-06-12  Joey Ye  <joey.ye@intel.com>
19719
19720         PR middle-end/39146
19721         * cfgexpand.c (get_decl_align_unit): Update
19722         max_used_stack_slot_alignment with align instead of
19723         stack_alignment_needed.
19724
19725         * function.c (assign_stack_local_1): Update
19726         max_used_stack_slot_alignment with alignment_in_bits instead
19727         of stack_alignment_needed.
19728         (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
19729         here.
19730
19731 2009-06-12  Jakub Jelinek  <jakub@redhat.com>
19732
19733         * dwarf2out.c (last_var_location_insn): New variable.
19734         (dwarf2out_end_epilogue): Clear last_var_location_insn.
19735         (dwarf2out_var_location): Don't record anything after last real
19736         insn.  Only change labels if there were any real instructions
19737         in between last note and this one, or if changed sections.
19738
19739 2009-06-11  Richard Henderson  <rth@redhat.com>
19740
19741         * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
19742         note when storing the frame pointer in a register.
19743         (FRP): Don't redefine to nothing for epilogue.
19744         (alpha_expand_epilogue): Mark register and sp restores.
19745         (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
19746
19747         * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
19748         when gen_lowpart is needed.
19749
19750 2009-06-11  Richard Henderson  <rth@redhat.com>
19751
19752         * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
19753
19754         * dwarf2out.c (need_data_align_sf_opcode): New.
19755         (div_data_align): Move earlier.
19756         (def_cfa_1, reg_save): Use it.
19757
19758 2009-06-11  H.J. Lu  <hongjiu.lu@intel.com>
19759
19760         * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
19761         (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
19762         (ix86_handle_option): Handle OPT_mcrc32.
19763         (ix86_target_string): Add -mcrc32.
19764         (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
19765
19766         * config/i386/i386.h (TARGET_CRC32): New.
19767
19768         * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
19769         (sse4_2_crc32di): Likewise.
19770
19771         * config/i386/i386.opt (mcrc32): New.
19772
19773         * doc/invoke.texi: Document -mcrc32.
19774
19775 2009-06-11  Richard Henderson  <rth@redhat.com>
19776
19777         * common.opt (gdwarf-): Accept a version number.
19778         * doc/invoke.texi (gdwarf-): Update docs.
19779         * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
19780         * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
19781         version level, and record it.
19782
19783         * dwarf2.h (DW_CIE_VERSION): Remove.
19784         * dwarf2out.c (DWARF_VERSION): Remove.
19785         (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
19786         (output_call_frame_info): Use CIE version 3 for dwarf3,
19787         or if the return register column is out of range for version 1.
19788         (dwarf_stack_op_name): Add all dwarf3 values.
19789         (DEBUG_PUBTYPES_SECTION): New.
19790         (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
19791         encoding change for dwarf3.
19792         (output_die) [dw_val_class_die_ref]: Likewise.
19793         (output_compilation_unit_header): Emit correct version for dwarf3.
19794         (output_line_info): Likewise.
19795         (output_pubnames): Update for DWARF_VERSION removal.
19796         (output_aranges): Likewise.
19797         (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
19798         (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
19799         (dwarf2out_finish): Likewise.
19800
19801 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
19802
19803         * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
19804         in r148403.
19805
19806 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
19807
19808         PR c/39252
19809         * doc/extend.texi ( __builtin_unreachable): Document new builtin.
19810         * builtins.c (expand_builtin_unreachable): New function.
19811         (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
19812         * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
19813         * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
19814         successors.
19815         * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
19816         searching for missing barriers.
19817
19818 2009-06-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
19819
19820         * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
19821         when -fprofile-generate* was passed.
19822         * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
19823
19824 2009-06-11  Anthony Green  <green@moxielogic.com>
19825
19826         * config/moxie/moxie.md: Define length attribute for all instructions.
19827         (rCC): Define.
19828         (*b<cond:code>): Support limited branch ranges for new PC-relative
19829         branch instructions.
19830         * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
19831
19832 2009-06-11  Jakub Jelinek  <jakub@redhat.com>
19833
19834         * config/i386/i386.c (min_insn_size): Use get_attr_length
19835         for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
19836         For __asm return 0.
19837
19838         * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
19839         instead of emit_insn_before.
19840
19841 2009-06-10  Ian Lance Taylor  <iant@google.com>
19842
19843         PR bootstrap/40408
19844         * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
19845         GIMPLE_SWITCH.
19846
19847 2009-06-10  Revital Eres  <eres@il.ibm.com>
19848
19849         * passes.c (init_optimization_passes): Reschedule
19850         predictive-commoning pass before complete unroll pass.
19851
19852 2009-06-10  Martin Jambor  <mjambor@suse.cz>
19853
19854         * cgraph.c (cgraph_node_can_be_local_p): New function.
19855         (cgraph_make_node_local): New function.
19856         * cgraph.h (cgraph_node_can_be_local_p): Declare.
19857         (cgraph_make_node_local): Declare.
19858
19859 2009-06-10  Nathan Froyd  <froydnj@codesourcery.com>
19860
19861         * tree.h (tree_base): Add packed_flag and user_align fields.
19862         Decrease size of spare field.
19863         (TYPE_USER_ALIGN): Use user_align from tree_base.
19864         (DECL_USER_ALIGN): Likewise.
19865         (TYPE_PACKED): Use packed_flag from tree_base.
19866         (DECL_PACKED): Likewise.
19867         (tree_type): Delete packed_flag and user_align fields.  Widen
19868         precision field.  Widen mode field and shuffle fields to align
19869         mode on an 8-bit boundary.
19870         (tree_decl_common): Delete decl_flag_1 and user_align fields.
19871         Renumber decl_flag_* fields.  Fix comments.  Widen
19872         decl_common_unused field.
19873         (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
19874         (DECL_EXTERNAL): Likewise.
19875         (DECL_BIT_FIELD): Likewise.
19876         (DECL_NONADDRESSABLE_P): Likewise.
19877         (TYPE_DECL_SUPRESS_DEBUG): Likewise.
19878         * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
19879
19880 2009-06-10  Ian Lance Taylor  <iant@google.com>
19881
19882         * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
19883         (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
19884         (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
19885         (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
19886         (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
19887         DEF_VEC_ALLOC_FUNC_P.
19888         (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
19889         (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
19890         DEF_VEC_ALLOC_FUNC_O.
19891         (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
19892         (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
19893         DEF_VEC_ALLOC_FUNC_I.
19894         (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
19895         (vec_stack_p_reserve_exact_1): Declare.
19896         (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
19897         (vec_stack_free): Declare.
19898         (VEC_stack_alloc): Define.
19899         (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
19900         (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
19901         (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
19902         * vec.c (void_p): New type.  Call DEF_VEC_P and DEF_VEC_ALLOC_P
19903         for void_p.
19904         (stack_vecs): New static variable.
19905         (vec_stack_p_reserve_exact_1): New function.
19906         (vec_stack_o_reserve_1): New static function.
19907         (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
19908         (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
19909         (vec_stack_free): New function.
19910         * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
19911         (VEC_df_ref_stack_alloc): Define.
19912         (df_mw_hardreg_ptr): New type.  Use DEF_VEC_P and
19913         DEF_VEC_ALLOC_P_STACK.
19914         (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
19915         (struct df_collection_rec): Change _vec fields to VEC.  Remove
19916         _use fields.
19917         (df_free_collection_rec): Adjust for new fields.
19918         (df_insn_rescan): Use new df_collection_rec fields.
19919         (df_notes_rescan, df_canonize_collection_rec): Likewise.
19920         (df_ref_create_structure, df_ref_record): Likewise.
19921         (df_get_conditional_uses, df_get_call_refs): Likewise.
19922         (df_insn_refs_collect, df_bb_refs_collect): Likewise.
19923         (df_bb_refs_record, df_record_entry_block_defs): Likewise.
19924         (df_record_exit_block_uses, df_bb_verify): Likewise.
19925         (df_swap_refs): Change ref_vec parameter to VEC.  Change all callers.
19926         (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
19927         Remove count parameter.  Change return type to void.  Change all
19928         callers.
19929         (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
19930         Remove count parameter.  Change return type to void.  Change all
19931         callers.
19932         (df_install_refs): Change old_vec parameter to VEC.  Remove count
19933         parameter.  Change all callers.
19934         (df_install_mws): Change old_vec parameter to VEC.  Remove count
19935         parameter.  Change all callers.
19936         (df_refs_verify): Change new_rec parameter to VEC.  Change call
19937         callers.
19938         (df_mws_verify): Likewise.
19939
19940 2009-06-10  Alexandre Oliva  <aoliva@redhat.com>
19941
19942         * gcc.c (compare_files): Cast munmap argumento to caddr_t.
19943
19944 2009-06-10  H.J. Lu  <hongjiu.lu@intel.com>
19945
19946         * doc/extend.texi: Add description for __builtin_ia32_crc32di.
19947
19948 2009-06-10  Anthony Green  <green@moxielogic.com>
19949
19950         * config/moxie/crti.asm: New file.
19951         * config/moxie/crtn.asm: New file.
19952         * config/moxie/moxie.c: New file.
19953         * config/moxie/moxie.h: New file.
19954         * config/moxie/sfp-machine.h: New file.
19955         * config/moxie/moxie-protos.h: New file.
19956         * config/moxie/t-moxie: Created.
19957         * config/moxie/t-moxie-softfp: Created.
19958         * config/moxie/moxie.md: Created.
19959         * config/moxie/constraints.md: Created.
19960         * config.gcc: Add moxie support.
19961         * doc/md.texi (Machine Constraints): Add moxie constraints.
19962         * doc/contrib.texi (Contributors): Mention moxie port.
19963         * doc/install.texi (Specific): Mention the moxie port.
19964
19965 2009-06-09  Ian Lance Taylor  <iant@google.com>
19966
19967         * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
19968         compiling with C++.
19969         * optabs.c (optab_table): Only use designated initializers if
19970         HAVE_DESIGNATED_INITIALIZERS is defined.
19971         (convert_optab_table): Likewise.
19972         (init_optabs): Always call init_insn_codes if
19973         HAVE_DESIGNATED_INITIALIZERS is not defined.
19974
19975 2009-06-09  Ian Lance Taylor  <iant@google.com>
19976
19977         * targhooks.c (default_builtin_vectorized_function): Change fn
19978         parameter to unsigned int.
19979         (default_builtin_vectorized_conversion): Change code parameter to
19980         unsigned int.
19981         (default_builtin_reciprocal): Change fn parameter to unsigned int.
19982         * targhooks.h: Update declarations.
19983         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
19984         parameter to unsigned int.
19985
19986         * c-typeck.c (comptypes_check_enum_int): New static function.
19987         (comptypes_internal): Add enum_and_int_p parameter.  Change all
19988         callers.
19989         (comp_target_types): Add location parameter.  Change all callers.
19990         (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
19991         Change all callers.
19992         (function_types_compatible_p, type_lists_compatible_p): Likewise.
19993         (build_conditional_expr): Add colon_loc parameter.  Change all
19994         callers.
19995         (convert_for_assignment): Add location parameter.  Change all callers.
19996         * c-parser.c (c_parser_conditional_expression): Pass location of
19997         colon to build_conditional_expr.
19998         * c-tree.h (build_conditional_expr): Update declaration.
19999
20000 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
20001
20002         * graphite.c: Revert previous patch.
20003
20004 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
20005
20006         PR bootstrap/40103
20007         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
20008
20009 2009-06-09  Ghassan Shobaki  <ghassan.shobaki@amd.com>
20010
20011         * tree-ssa-loop-prefetch.c
20012         (loop_prefetch_arrays): Fixed a portability problem in printf format
20013         string.
20014
20015 2009-06-09  Martin Jambor  <mjambor@suse.cz>
20016
20017         PR tree-optimization/40351
20018         * tree-sra.c (propagate_subacesses_accross_link): Check that a
20019         refrence to a potential artifical subaccess can be constructed.
20020
20021 2009-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
20022
20023         * config/sh/sh-protos.h (sh_optimization_options): Declare.
20024         (sh_override_options): Likewise.
20025         * config/sh/sh.c: Include params.h.
20026         (sh_optimization_options): New.
20027         (sh_override_options): Likewise.
20028         * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
20029         (OVERRIDE_OPTIONS): Use sh_override_options.
20030
20031 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
20032
20033         * dwarf2out.c (emit_cfa_remember): New variable.
20034         (add_fde_cfi): If emit_cfa_remember, recurse to add
20035         DW_CFA_remember_state first.
20036         (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
20037         instead just set emit_cfa_remember.
20038
20039 2009-06-08  Jan Hubicka  <jh@suse.cz>
20040
20041         PR debug/40126
20042         * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
20043
20044 2009-06-08  Jan Hubicka  <jh@suse.cz>
20045
20046         PR middle-end/39834
20047         * cgraphunit.c (save_inline_function_body): Do not copy transform
20048         hooks for saved inline bodies.
20049         * ipa-passes.c (do_per_function): Do not add the hoks multiple times
20050         for given function.
20051
20052 2009-06-08  Adam Nemet  <anemet@caviumnetworks.com>
20053
20054         * jump.c (returnjump_p): Handle delayed branches.  Add missing
20055         function comment.
20056
20057 2009-06-08  Jan Hubicka  <jh@suse.cz>
20058
20059         PR middle-end/40102
20060         * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
20061         original node might've been modified.
20062         * tree-inline.c (copy_bb): Do not assume that all clones are the same.
20063
20064 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
20065
20066         * tree-object-size.c (addr_object_size): Add OSI argument.
20067         Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
20068         (compute_builtin_object_size, expr_object_size): Adjust callers.
20069         (plus_stmt_object_size): Call addr_object_size instead of
20070         compute_builtin_object_size.
20071
20072 2009-06-08  Ghassan Shobaki  <ghassan.shobaki@amd.com>
20073             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
20074
20075         * tree-ssa-loop-prefetch.c
20076         (gather_memory_references): Introduced a counter for the number of
20077         memory references.
20078         (anything_to_prefetch_p): Introduced a counter for the number of
20079         prefetches.
20080         (is_loop_prefetching_profitable): New function with a cost model
20081         for prefetching.
20082         (loop_prefetch_arrays): Use the new cost model to determine if
20083         prefetching is profitable.
20084         * params.def (MIN_INSN_TO_PREFETCH_RATIO,
20085         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
20086         * params.h (MIN_INSN_TO_PREFETCH_RATIO,
20087         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
20088         * doc/invoke.texi (MIN_INSN_TO_PREFETCT_RATIO,
20089         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
20090
20091 2009-06-08  Michael Matz  <matz@suse.de>
20092
20093         PR debug/40012
20094         * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
20095         partitions use the same.
20096         (expand_one_var): Deal with DECL_RTL sometimes begin set also
20097         for basevars of SSA_NAMEs.
20098         (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
20099         to not expand them twice.
20100         (gimple_expand_cfg): Clear DECL_RTL for those decls that have
20101         multiple places.
20102
20103 2009-06-08  Alexandre Oliva  <aoliva@redhat.com>
20104
20105         * common.opt (fcompare-debug=, fcompare-debug-second): New.
20106         (fdump-final-insns=, gtoggle): New.
20107         * doc/invoke.texi: Document them.
20108         * final.c (rest_of_clean_state): Dump final insn stream.
20109         * gcc.c (invoke_as): Hook in -fcompare-debug.
20110         (static_spec_functions): Add compare-debug-dump-opt,
20111         compare-debug-self-opt and compare-debug-auxbase-opt.
20112         (compare_debug, compare_debug_second, compare_debug_opt): New.
20113         (switches_debug_check, n_switches_debug_check): New.
20114         (debug_auxbase_opt, debug_check_temp_file): New.
20115         (process_command): Handle -fno-compare-debug, -fcompare-debug and
20116         -fcompare-debug=*.
20117         (do_self_spec): Handle arguments after switches.
20118         (do_spec_1): Add .gk extension to temp file basenames for compare.
20119         (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
20120         (cc1_options): Use it instead of normal auxbase computation for
20121         the second compare-debug compilation.
20122         (compare_files): New.
20123         (main): Set up and implement compare debug mode.
20124         (compare_debug_dump_opt_spec_function): New.
20125         (compare_debug_self_opt_spec_function): New.
20126         (compare_debug_auxbase_opt_spec_function): New.
20127         * toplev.c (process_options): Handle flag_gtoggle,
20128         flag_dump_final_insns.
20129         * coverage.c (coverage_begin_output): Don't overwrite .gcno file
20130         during -fcompare-debug-second compilation.
20131
20132 2009-06-07  Ian Lance Taylor  <iant@google.com>
20133
20134         * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
20135         * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
20136
20137         * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
20138         with no default node.  Change warning with %H to warning_at.
20139         Don't clear warn_switch around case checking.
20140         * doc/invoke.texi (Warning Options): Clarify distinction between
20141         -Wswitch and -Wswitch-enum.
20142
20143 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
20144
20145         * tree-pass.h (TODO_update_ssa_any): Document internal use only.
20146
20147 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
20148
20149         * gbl-ctors.h: Add header guard.
20150
20151 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
20152
20153         * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
20154         sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
20155         vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
20156         vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
20157         prototypes for removed functions.
20158         (expressions_equal_p): Move to ...
20159         * tree-ssa-sccvn.h: ... here and ...
20160         * matrix-reorg.c: ... adjust includes.
20161
20162 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
20163
20164         * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
20165
20166 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
20167
20168         * c-decl.c (finish_decl): Use bool for variable was_incomplete.
20169         (finish_function): Remove erroneous whitespace.
20170
20171 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
20172
20173         * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
20174         (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
20175
20176 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
20177
20178         * errors.c (internal_error): Commentary typo fix.
20179         * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
20180         * tree-ssa-pre.c: Ditto.
20181
20182 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
20183
20184         * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
20185         them is supposed to hold actual statements.
20186
20187 2009-06-06  Ian Lance Taylor  <iant@google.com>
20188
20189         * doc/extend.texi (Attribute Syntax): Document that C++ labels on
20190         empty statements can now have attributes.
20191
20192 2009-06-05  Shujing Zhao  <pearly.zhao@oracle.com>
20193
20194         * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
20195         * config/mips/mips.md: Ditto.
20196
20197 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
20198
20199         * config/rs6000/eabi.asm (__eabi_convert): Don't define if
20200         _RELOCATABLE.
20201         (__eabi_uconvert): Likewise.
20202
20203 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
20204
20205         * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
20206         CFI_* definitions with IN_GCC.
20207
20208 2009-06-05  David Edelsohn  <edelsohn@gnu.org>
20209
20210         * xcoffout.h (xcoffout_source_line): Update prototype.
20211
20212 2009-06-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20213
20214         * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
20215         mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
20216
20217 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
20218
20219         PR middle-end/40340
20220         * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
20221         inlined_function_outer_scope_p blocks for artificial inlines
20222         even at -g0/-g1.
20223         * tree.c (tree_nonartificial_location): Rewrite using
20224         block_nonartificial_location.
20225
20226 2009-06-05  Revital Eres  <eres@il.ibm.com>
20227             Leehod Baruch  <leehod@il.ibm.com>
20228
20229         * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
20230         (expand_expr_real_1): Remove comment.
20231         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
20232         Vectorize misaligned access when the target supports it.
20233         (vect_supportable_dr_alignment): Check for unaligned access support.
20234         * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
20235         and remove asset.
20236
20237 2009-06-05  Julian Brown  <julian@codesourcery.com>
20238
20239         * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
20240         * config/arm/ieee754-sf.S (cmpsf2): Likewise.
20241
20242 2009-06-05  Richard Guenther  <rguenther@suse.de>
20243
20244         PR bootstrap/40350
20245         * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
20246         as possibly unused.
20247
20248 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
20249
20250         * config/s390/s390.c (global_not_special_regno_p): New static inline.
20251         (save_gprs): Don't tell unwinder when a global register is saved.
20252         (s390_emit_epilogue): Emit needed epilogue unwind info.
20253
20254 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
20255
20256         * dwarf2out.c (deferred_asm_name): New.
20257         (add_name_and_src_coords_attributes): Defer creation of
20258         DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
20259         computed yet.
20260         (move_linkage_attr): New.
20261         (dwarf2out_finish): Revisit deferrals and emit attributes at the
20262         right place.
20263
20264 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
20265
20266         * tree-nested.c (finalize_nesting_tree_1): Declare the
20267         frame_decl in the binding tree.
20268
20269 2009-06-04  Cary Coutant  <ccoutant@google.com>
20270
20271         * basic-block.h (struct basic_block_def): Add discriminator field.
20272         * dbxout.c (dbxout_source_line): Add new parameter.  Change all
20273         callers.
20274         * debug.c (do_nothing_debug_hooks): Add additional entry.
20275         (debug_nothing_int_charstar_int): New function.
20276         * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
20277         (debug_nothing_int_charstar_int): New declaration.
20278         * dwarf2out.c (dwarf2out_source_line): Add new parameter.  Write
20279         discriminator value in .loc directive.
20280         * final.c (last_discriminator): New variable.
20281         (discriminator): New variable.
20282         (final_start_function): Initialize above variables, pass current
20283         discriminator to debug hook.
20284         (notice_source_line): Check for discriminator change.
20285         * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
20286         * sdbout.c (sdbout_source_line): New parameter.
20287         * tree-cfg.c (struct locus_discrim_map): New structure type.
20288         (discriminator_per_locus): New hash table.
20289         (build_gimple_cfg): Allocate and free discriminator hash table.
20290         (make_edges): Call assign_discriminator.
20291         (locus_map_hash): New function.
20292         (locus_map_eq): New function.
20293         (next_discriminator_for_locus): New function.
20294         (same_line_p): New function.
20295         (assign_discriminator): New function.
20296         (make_cond_expr_edges): Call assign_discriminator.
20297         (make_gimple_switch_edges): Likewise.
20298         (first_non_label_stmt): New function.
20299         * vmsdbgout.c (vmsdbgout_source_line): Add new parameter.  Change
20300         all callers.
20301         * xcoffout.c (xcoffout_source_line): Add new parameter.
20302
20303         * configure.ac (gcc_cv_as_discriminator): New configury check for
20304         gas support for discriminator.
20305         * configure: Regenerate.
20306         * config.in: Regenerate.
20307
20308 2009-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20309
20310         * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
20311         val after checking for integers.
20312
20313 2009-06-04  Uros Bizjak  <ubizjak@gmail.com>
20314
20315         * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
20316         X64_REGPARM_MAX.
20317         (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
20318         (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
20319         (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
20320         * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
20321         X64_REGPARM_MAX.  Use X86_64_MS_SSE_REGPARM_MAX instead of
20322         X64_SSE_REGPARM_MAX.
20323         * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
20324         X64_SSE_REGPARM_MAX.
20325
20326 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
20327
20328         * gcc.c (report_times_to_file): New.
20329         (execute): Implement it.
20330         (process_command): Support -time=.
20331         * doc/invoke.texi: Document it.
20332
20333 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
20334
20335         * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
20336         that have value exprs.
20337
20338 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
20339
20340         * dwarf2asm.c (dw2_force_const_mem): Defer creation of
20341         declarations for constants until...
20342         (dw2_output_indirect_constant_1): ... this point.
20343
20344 2009-06-04  Richard Earnshaw  <rearnsha@arm.com>
20345
20346         PR target/10242
20347         * arm.md (arm_addsi3): Don't try to split an add with an
20348         eliminable register until after reload has completed.
20349
20350 2009-06-03  Ian Lance Taylor  <iant@google.com>
20351
20352         * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
20353         * genattrtab.c (write_length_unit_log): Likewise.
20354         * genchecksum.c (dosum): Likewise.
20355         * gengtype.c (write_rtx_next): Likewise.
20356         (finish_root_table, write_roots): Likewise.
20357         * gimple.c (gimple_ops_offset_): Likewise.
20358         * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
20359         * config/arc/arc.c (arc_attribute_table): Likewise.
20360         * config/arm/arm.c (arm_attribute_table): Likewise.
20361         * config/avr/avr.c (avr_attribute_table): Likewise.
20362         * config/crx/crx.c (crx_attribute_table): Likewise.
20363         * config/m32r/m32r.c (m32r_attribute_table): Likewise.
20364         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
20365         * config/mcore/mcore.c (mcore_attribute_table): Likewise.
20366         * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
20367         * config/sh/sh.c (sh_attribute_table): Likewise.
20368         * config/sparc/sparc.c (sparc_attribute_table): Likewise.
20369         * config/spu/spu.c (spu_attribute_table): Likewise.
20370         * config/v850/v850.c (v850_attribute_table): Likewise.
20371
20372         * config/alpha/alpha.c (vms_attribute_table): Make static.
20373         * config/bfin/bfin.c (bfin_attribute_table): Likewise.
20374         * config/h8300/h8300.c (h8300_attribute_table): Likewise.
20375         * config/mips/mips.c (mips_attribute_table): Likewise.
20376
20377         * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
20378         $(SYSTEM_H).
20379         (cc1-checksum.o): Likewise.
20380
20381 2009-06-03  Steve Ellcey  <sje@cup.hp.com>
20382
20383         * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
20384
20385 2009-06-03  Jakub Jelinek  <jakub@redhat.com>
20386
20387         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
20388         insn if it is changing sp.  Use gen_add3_insn instead of
20389         conditionally gen_addsi3 and gen_adddi3.
20390         (offset_below_red_zone_p): New static inline function.
20391         (rs6000_emit_epilogue): Emit needed epilogue unwind info.
20392         Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
20393         * config/rs6000/ppc-asm.h: Include auto-host.h.
20394         (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
20395         CFI_RESTORE): Define.
20396         * config/rs6000/crtresxgpr.asm: Add unwind info.
20397         * config/rs6000/crtresxfpr.asm: Likewise.
20398         * config/rs6000/crtresgpr.asm: Likewise.
20399         * config/rs6000/crtresfpr.asm: Likewise.
20400         * config/rs6000/crtsavgpr.asm: Likewise.
20401         * config/rs6000/crtsavfpr.asm: Likewise.
20402
20403         * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
20404         argument of DWARF2_FRAME_REG_OUT macros.
20405
20406 2009-06-03  Julian Brown  <julian@codesourcery.com>
20407
20408         * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
20409         words or less (including TImode) in core registers.
20410
20411 2009-06-03  Richard Guenther  <rguenther@suse.de>
20412
20413         PR middle-end/40328
20414         * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
20415
20416 2009-06-03  Andrey Belevantsev  <abel@ispras.ru>
20417
20418         * statistics.c (statistics_counter_event): Do not record event
20419         in pass dump if its number == -1.
20420         (curr_statistics_hash): Add assert that we never get passes
20421         with static number == -1.
20422
20423 2009-06-03  Richard Guenther  <rguenther@suse.de>
20424             Andrey Belevantsev  <abel@ispras.ru>
20425
20426         * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
20427         non-BLKmode arrays addressable.
20428
20429 2009-06-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
20430
20431         * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
20432         * config/m68k/m68k.h: ... here.
20433
20434 2009-06-03  Martin Jambor  <mjambor@suse.cz>
20435
20436         PR tree-optimization/40323
20437         * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
20438         assignment.
20439
20440 2009-06-03  Richard Guenther  <rguenther@suse.de>
20441
20442         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
20443         consistently.
20444
20445 2009-06-03  Shujing Zhao  <pearly.zhao@oracle.com>
20446
20447         * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
20448         JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
20449         JUMP_TABLE_DATA_P where applicable.
20450         * config/sh/sh.c: Ditto.
20451         * config/sh/sh.h: Ditto.
20452         * config/sh/sh.md: Ditto.
20453         * config/sh/symbian.c: Ditto.
20454
20455 2009-06-03  Uros Bizjak  <ubizjak@gmail.com>
20456
20457         * config/i386/driver-i386.c (describe_cache): Optimize
20458         concatenation of strings.  Use snprintf instead of sprintf.
20459         (host_detect_local_cpu): Ditto.  Ignore -march and -mtune for native
20460         target when not compiling with GCC.
20461
20462 2009-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
20463
20464         * config/sh/sh.c: Revert last change.
20465         (sh_expand_epilogue): Emit a blockage insn before the frame
20466         pointer adjustment unconditionally.
20467
20468 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
20469
20470         * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
20471         * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
20472         * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
20473         * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
20474         to COLLECT_GCC_OPTIONS.
20475
20476 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
20477
20478         * collect2.c (target_system_root): New variable.
20479         (main): Handle --sysroot=.
20480         (ignore_library): Strip the sysroot from the library path.
20481
20482 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
20483
20484         * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
20485         (collect2.o): Depend on collect2-aix.h.
20486         (collect2-aix.o): New rule.
20487         * collect2-aix.h: New file.
20488         * collect2-aix.c: Likewise.
20489         * collect2.c: Include collect2-aix.h.  Don't undefine
20490         OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
20491         Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
20492         Use TARGET_AIX_VERSION instead of _AIX51.
20493         * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
20494         * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
20495         * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
20496         * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
20497         * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
20498
20499 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
20500
20501         * collect2.c (ignore_library): Avoid premature post-increment
20502         and null deference.
20503
20504 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
20505
20506         * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
20507         * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
20508         !CROSS_DIRECTORY_STRUCTURE alternative and use it for
20509         CROSS_DIRECTORY_STRUCTURE too.
20510         (LINK_LIBG_SPEC): Likewise.
20511         (LIB_SPEC): Add %R to sysroot paths.
20512         * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
20513         (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
20514         * config/rs6000/aix51.h: As for aix43.h.
20515         * config/rs6000/aix52.h: Likewise.
20516         * config/rs6000/aix53.h: Likewise.
20517         * config/rs6000/aix61.h: Likewise.
20518         * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
20519         to the beginning of sysroot paths.
20520
20521 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
20522
20523         * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
20524         INSN_LISTs that are out of the REG_NOTE range.
20525
20526 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
20527
20528         * loop-unroll.c (struct iv_to_split): Add pointer to next.
20529         (struct var_to_expand): Likewise.
20530         (struct opt_info): Add head and tail for linked lists of the above.
20531         (analyze_insn_to_expand_var): Initialize next.
20532         (analyze_iv_to_split_insn): Likewise.
20533         (analyze_insns_in_loop): Create linked lists.
20534         (allocate_basic_variable): Simplify for use without hash table.
20535         (insert_var_expansion_initialization): Likewise, make it type-safer.
20536         (combine_var_copies_in_loop_exit): Likewise.
20537         (apply_opt_in_copies): Walk lists rather than hash tables.
20538         (release_var_copies): Simplified and inlined by hand into...
20539         (free_opt_info): ... this function.
20540
20541 2009-06-02  Richard Guenther  <rguenther@suse.de>
20542
20543         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
20544         for field decls.
20545
20546 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
20547
20548         * cfgexpand.c (gimple_expand_cfg): Discard the source location
20549         only for builtins that are not overridden.
20550
20551 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
20552
20553         * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
20554         label string.
20555
20556 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
20557
20558         * df-core.c (df_ref_debug): Honor -fdump-noaddr.
20559
20560 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
20561
20562         * combine.c (move_deaths): Compare LUIDs within the same BB only.
20563
20564 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
20565
20566         * common.opt (fdump-unnumbered-links): New.
20567         * doc/invoke.texi (-fdump-unnumbered-links): Document it.
20568         * print-rtl.c (flag_dump_unnumbered_links): New.
20569         (print_rtx): Test it.
20570
20571 2009-06-02  Richard Earnshaw  <rearnsha@arm.com>
20572
20573         * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
20574         push/pop multiple to 8-byte alignment.
20575
20576 2009-06-01  Jakub Jelinek  <jakub@redhat.com>
20577
20578         * config/i386/i386.c (queued_cfa_restores): New static variable.
20579         (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
20580         functions.
20581         (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
20582         (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
20583         Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
20584         Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
20585         note unconditionally.
20586         (ix86_emit_restore_regs_using_mov): Likewise.
20587         (ix86_emit_restore_sse_regs_using_mov): Likewise.
20588         (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
20589         it through to ix86_emit_restore_reg_using_pop.
20590         (ix86_emit_leave): Add RED_OFFSET argument.  Call
20591         ix86_add_queued_cfa_restore_notes.  Call ix86_add_cfa_restore_note
20592         instead of adding REG_CFA_OFFSET note unconditionally.
20593         (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
20594         the above functions.  Call ix86_add_queued_cfa_restore_notes when
20595         needed.
20596
20597         * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
20598         force output of the label even for dwarf2out_do_cfi_asm.
20599         (add_fde_cfi): If -g2 and above and cfi might change CFA,
20600         force creation of CFI label and chain DW_CFA_set_loc jumping to it
20601         for convert_cfa_to_fb_loc_list.  Adjust other dwarf2out_cfi_label
20602         caller.
20603         (dwarf2out_stack_adjust, dwarf2out_frame_debug,
20604         dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
20605         dwarf2out_cfi_label callers.
20606         * tree.h (dwarf2out_cfi_label): Adjust prototype.
20607         * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
20608         Adjust dwarf2out_cfi_label callers.
20609         * config/vax/vax.c (vax_output_function_prologue): Likewise.
20610
20611         * config/i386/i386.h (struct machine_cfa_state,
20612         struct machine_function): Guard with ifndef USED_FOR_TARGET
20613         instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
20614
20615         PR other/40024
20616         * emutls.c (__emutls_get_address): Change arr->size to mean number
20617         of allocated arr->data entries instead of # of slots + 1.
20618
20619         PR middle-end/40316
20620         * recog.c (peep2_reinit_state): New function.
20621         (peephole2_init_state): Use it at the end of a basic block and also
20622         when seeing a RTX_FRAME_RELATED_P insn.
20623
20624 2009-06-01  Steve Ellcey  <sje@cup.hp.com>
20625
20626         * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
20627         fixuns_truncrfdi2): New.
20628         (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
20629         *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
20630         *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
20631         *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
20632         *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
20633         *recip_approx): Remove.
20634         (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
20635         moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
20636         divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
20637         move to div.md.
20638         * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
20639         setf_exp_rf): New.
20640
20641 2009-06-01  Ian Lance Taylor  <iant@google.com>
20642
20643         * attribs.c (register_attribute): Use CONST_CAST.
20644         * collect2.c (main): Use CONST_CAST2.
20645         (scan_prog_file): Likewise.
20646         * gcc.c (process_command, main): Likewise.
20647         * toplev.c (toplev_main): Likewise.
20648
20649         * c-typeck.c (handle_warn_cast_qual): New static function,
20650         partially broken out of build_c_cast.
20651         (build_c_cast): Call handle_warn_cast_qual.
20652         * doc/invoke.texi (Warning Options): Document new effect of
20653         -Wcast-qual.
20654
20655 2009-06-01  Aldy Hernandez  <aldyh@redhat.com>
20656
20657         * diagnostic.c (diagnostic_build_prefix): Always print columns.
20658         (diagnostic_report_current_module): Print columns.
20659         * common.opt (flag_show_column): Enable by default.
20660
20661 2009-06-01  Luis Machado  <luisgpm@br.ibm.com>
20662
20663         * alias.c (find_base_term): Check for NULL term before returning.
20664
20665 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
20666
20667         Revert due to PR40320:
20668         2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
20669         * calls.c (emit_library_call_value_1): Don't force_operand for move
20670         and push insns.
20671
20672 2009-06-01  Olivier Hainque  <hainque@adacore.com>
20673             Eric Botcazou  <ebotcazou@adacore.com>
20674
20675         * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
20676         to be processed as a bitfield for constructor output purposes.
20677         * output.h (initializer_constant_valid_for_bitfield_p): Declare
20678         new function.
20679         * varasm.c (oc_local_state): New type, output_constructor
20680         local state to support communication with helpers.
20681         (oc_outer_state): New type, output_constructor outer state of
20682         relevance in recursive calls.
20683         (output_constructor_array_range): New output_constructor helper,
20684         extracted code for an array range element.
20685         (output_constructor_regular_field): New output_constructor helper,
20686         extracted code for an element that is not a bitfield.
20687         (output_constructor_bitfield): New output_constructor helper,
20688         extracted code for a bitfield element.  Accept an OUTER state
20689         argument for recursive processing.  Recurse on record or array
20690         CONSTRUCTOR values, possibly past noop conversions.
20691         (initializer_constant_valid_for_bitfield_p): New predicate.  Whether
20692         VALUE is a valid constant-valued expression for use in a static
20693         bit-field initializer.
20694         (output_constructor): Rework to use helpers.  Accept and honor an
20695         OUTER state argument for recursive calls.  Return total size.  Be
20696         prepared for nested constructors initializing bitfields.
20697         (output_constant): Feed OUTER in calls to output_constructor.
20698
20699 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
20700
20701         * calls.c (emit_library_call_value_1): Don't force_operand for move
20702         and push insns.
20703
20704 2009-06-01  Nick Clifton  <nickc@redhat.com>
20705
20706         * doc/invoke.texi (IA-64 Options): Fix typo.
20707
20708 2009-06-01  Ira Rosen  <irar@il.ibm.com>
20709
20710         PR tree-optimization/39129
20711         * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
20712         printed message.
20713         (vect_do_peeling_for_loop_bound): Use
20714         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
20715         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
20716         (vect_loop_versioning): Likewise.
20717         (vect_create_cond_for_alias_checks): Fix indentation.
20718         * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
20719         macros.
20720         (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
20721         (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
20722         * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
20723         "control flow in loop".
20724         (vect_estimate_min_profitable_iters): Use
20725         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
20726         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
20727         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
20728         (vect_create_data_ref_ptr): Don't mention array dimension in printing.
20729         * tree-vect-stmts.c (vectorizable_store): Replace the check that the
20730         statement belongs to a group of strided accesses with the exact code
20731         check.
20732         (vectorizable_load): Likewise.
20733         * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
20734         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
20735
20736 2009-06-01  Gerald Pfeifer  <gerald@pfeifer.com>
20737
20738         * config/freebsd-stdint.h: New file.
20739         * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
20740         Add freebsd-stdint.h to tm_file.
20741
20742 2009-06-01  Richard Earnshaw  <rearnsha@arm.com>
20743
20744         * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
20745         (thumb2_extendhidi2): Likewise.
20746
20747 2009-05-31  Ian Lance Taylor  <iant@google.com>
20748
20749         * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
20750
20751 2009-05-31  Ian Lance Taylor  <iant@google.com>
20752
20753         * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
20754         (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
20755         (ipa-reference.o): Depend upon gt-ipa-reference.h.
20756
20757 2009-05-31  Jason Merrill  <jason@redhat.com>
20758
20759         * tree-pretty-print.c (print_call_name): Take the callee, not the
20760         call itself.  Make non-static.  Use dump_function_name for functions.
20761         (dump_generic_node): Adjust.
20762         * diagnostic.h: Declare print_call_name.
20763         * gimple-pretty-print.c (dump_gimple_call): Use it.
20764
20765 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
20766
20767         * config/sh/sh.md (ashldi3_std): New define_expand.
20768         (ashldi3): Use it.
20769
20770 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
20771
20772         PR target/40313
20773         * config/sh/sh.c: Include debug.h.
20774         (sh_expand_epilogue): Emit a blockage insn before the frame
20775         pointer adjustment also when dwarf2out_do_frame returns true.
20776
20777 2009-05-31  Richard Earnshaw  <rearnsha@arm.com>
20778
20779         * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
20780         (thumb2_extendqidi2): New pattern.
20781
20782 2009-05-31  Ira Rosen  <irar@il.ibm.com>
20783
20784         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
20785         mark phis for renaming.
20786         * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
20787         (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
20788         Call mark_sym_for_renaming.
20789         * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
20790         * tree-vect-loop.c (vect_transform_loop): Remove
20791         vect_memsyms_to_rename initialization and a call to
20792         mark_set_for_renaming.
20793
20794 2009-05-31  Jakub Jelinek  <jakub@redhat.com>
20795
20796         PR middle-end/40304
20797         * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
20798         frame related even if !set_cfa && style < 0.
20799
20800 2009-05-30  Kai Tietz  <kai.tietz@onevision.com>
20801
20802         * config/i386/mingw-tls.c: New file.
20803         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
20804         * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
20805         defining _WIN32 but not __CYGWIN__.
20806
20807 2009-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20808
20809         * configure.ac: Add MPC support.
20810
20811         * config.in, configure: Regenerate.
20812
20813 2009-05-29  Richard Henderson  <rth@redhat.com>
20814
20815         * cfgcleanup.c (try_crossjump_to_edge): Only skip past
20816         NOTE_INSN_BASIC_BLOCK.
20817         * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
20818         Duplicate NOTE_INSN_EPILOGUE_BEG notes.
20819         * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
20820         to be deleted.
20821         * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
20822         add in_use field.
20823         (add_cfi): Disable check redefining cfa away from drap.
20824         (lookup_cfa_1): Add remember argument; handle remember/restore.
20825         (lookup_cfa): Pass remember argument.
20826         (cfa_remember): New.
20827         (compute_barrier_args_size_1): Remove sibcall check.
20828         (dwarf2out_frame_debug_def_cfa): New.
20829         (dwarf2out_frame_debug_adjust_cfa): New.
20830         (dwarf2out_frame_debug_cfa_offset): New.
20831         (dwarf2out_frame_debug_cfa_register): New.
20832         (dwarf2out_frame_debug_cfa_restore): New.
20833         (dwarf2out_frame_debug): Handle REG_CFA_* notes.
20834         (dwarf2out_begin_epilogue): New.
20835         (dwarf2out_frame_debug_restore_state): New.
20836         (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
20837         DW_CFA_restore_state.
20838         (output_cfi_directive): Likewise.
20839         (convert_cfa_to_fb_loc_list): Likewise.
20840         (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
20841         * dwarf2out.h: Update.
20842         * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
20843         (copy_insn_1): Early out for null.
20844         * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
20845         and dwarf2out_frame_debug_restore_state.
20846         * function.c (prologue, epilogue, sibcall_epilogue): Remove.
20847         (prologue_insn_hash, epilogue_insn_hash): New.
20848         (free_after_compilation): Adjust freeing accordingly.
20849         (record_insns): Create hash table if needed; push insns into
20850         hash instead of array.
20851         (maybe_copy_epilogue_insn): New.
20852         (contains): Search hash table instead of array.
20853         (sibcall_epilogue_contains): Remove.
20854         (thread_prologue_and_epilogue_insns): Split eh_return insns
20855         and mark them as epilogues.
20856         (reposition_prologue_and_epilogue_notes): Rewrite epilogue
20857         scanning in terms of basic blocks.
20858         * insn-notes.def (CFA_RESTORE_STATE): New.
20859         * jump.c (returnjump_p_1): Accept EH_RETURN.
20860         (eh_returnjump_p_1, eh_returnjump_p): New.
20861         * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
20862         CFA_REGISTER, CFA_RESTORE): New.
20863         * rtl.def (EH_RETURN): New.
20864         * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
20865
20866         * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
20867         (eh_return_internal): Use eh_return rtx; split w/ epilogue.
20868
20869         * config/i386/i386.c (gen_push): Update cfa state.
20870         (pro_epilogue_adjust_stack): Add set_cfa argument.  When true,
20871         add a CFA_ADJUST_CFA note.
20872         (ix86_dwarf_handle_frame_unspec): Remove.
20873         (ix86_expand_prologue): Update cfa state.
20874         (ix86_emit_restore_reg_using_pop): New.
20875         (ix86_emit_restore_regs_using_pop): New.
20876         (ix86_emit_leave): New.
20877         (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
20878         (ix86_expand_epilogue): Add notes for unwinding the epilogue.
20879         * config/i386/i386.h (struct machine_cfa_state): New.
20880         (ix86_cfa_state): New.
20881         * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
20882         (eh_return_internal): Merge from eh_return_<mode>,
20883         use eh_return rtx, split w/ epilogue.
20884
20885 2009-05-29  Ian Lance Taylor  <iant@google.com>
20886
20887         * builtins.c (validate_gimple_arglist): Don't use va_arg with
20888         enum type.
20889         * calls.c (emit_library_call_value_1): Likewise.
20890
20891         * c-typeck.c (c_build_va_arg): New function.
20892         * c-tree.h (c_build_va_arg): Declare.
20893         * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
20894         instead of build_va_arg.
20895
20896 2009-05-29  Eric Botcazou  <ebotcazou@adacore.com>
20897
20898         * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
20899         (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
20900         (ptr_difference_cost): Use affine combinations to compute it.
20901         (difference_cost): Likewise.
20902         (get_computation_cost_at): Compute more accurate cost for addresses
20903         if the ratio is a multiplier allowed in addresses.
20904         For non-addresses, consider that an additional offset or symbol is
20905         added only once.
20906
20907 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
20908
20909         * config/i386/i386.c (ix86_decompose_address): Avoid useless
20910         0 displacement.  Add 0 displacement if base is %[er]bp or %r13.
20911
20912         * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
20913         TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
20914         (prefix_rex): For UNIT_MMX don't imply the prefix by default
20915         if MODE_DI.
20916         (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
20917         to 1 for TYPE_SSE{IADD1,CVT1}.
20918         (prefix_vex_imm8): Removed.
20919         (length_vex): Only pass 1 as second argument to
20920         ix86_attr_length_vex_default if prefix_extra is 0.
20921         (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
20922         (length): For prefix vex computation use length_immediate
20923         attribute instead of prefix_vex_imm8.
20924         (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
20925         addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
20926         *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
20927         *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
20928         (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
20929         *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
20930         a space in between the operands.
20931         (*anddi_1_rex64, *andsi_1): Likewise.  Override prefix_rex to 1
20932         if one operand is 0xff and the other one si, di, bp or sp.
20933         (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
20934         other one si, di, bp or sp.
20935         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
20936         (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
20937         type and mode attributes.
20938         (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
20939         (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
20940         prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
20941         (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
20942         prefix_data16 attribute iff MODE_DF.
20943         (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
20944         (fix_trunc<mode>di_sse): Set prefix_rex attribute.
20945         (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
20946         constm128_operand in length_immediate computation.
20947         (*addhi_4): Likewise.  Fix mode attribute to MODE_HI.
20948         (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
20949         (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
20950         length_immediate attribute to 1.
20951         (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
20952         (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
20953         for certain alternatives.
20954         (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
20955         prefix_data16 attribute if MODE_V1DF.
20956         (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
20957         length_immediate to 1.
20958         (set_got_rex64, set_rip_rex64): Remove length attribute, set
20959         length_address to 4, set mode attribute to MODE_DI.
20960         (set_got_offset_rex64): Likewise.  Set length_immediate to 0.
20961         (fxam<mode>2_i387): Set length attribute to 4.
20962         (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
20963         *prefetch_3dnow_rex): Override length_address attribute.
20964         (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
20965         attributes.
20966         * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
20967         (constm128_operand): Removed.
20968         * config/i386/i386.c (memory_address_length): For
20969         disp && !index && !base in 64-bit mode account for SIB byte if
20970         print_operand_address can't optimize disp32 into disp32(%rip)
20971         and UNSPEC doesn't imply (%rip) addressing.  Add 1 to length
20972         for fs: or gs: segment.
20973         (ix86_attr_length_immediate_default): When checking if shortform
20974         is possible, truncate immediate to the length of the non-shortened
20975         immediate.
20976         (ix86_attr_length_address_default): Ignore MEM_P operands
20977         with X constraint.
20978         (ix86_attr_length_vex_default): Only check for DImode on
20979         GENERAL_REG_P operands.
20980         * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
20981         prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
20982         (sse_cvttps2pi): Clear prefix_rep attribute.
20983         (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
20984         attribute.
20985         (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
20986         (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
20987         *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
20988         iff operand 2 is const_int_operand.
20989         (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
20990         sse2_shufpd_<mode>): Set length_immediate attribute to 1.
20991         (sse2_pshufd_1): Likewise.  Set prefix attribute to maybe_vex
20992         instead of vex.
20993         (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
20994         prefix_data16.
20995         (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
20996         prefix_data16 attribute for movlpd and movhpd instructions.
20997         (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise.  Override
20998         length_immediate for shufpd instruction.
20999         (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
21000         (avx_cmpp<avxmodesuffixf2c><mode>3,
21001         avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
21002         <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
21003         avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
21004         *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
21005         (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
21006         (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
21007         (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
21008         prefix_data16 attribute for the first alternative to 1.
21009         (*avx_loadlps): Override length_immediate for the first alternative.
21010         (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
21011         attributes for second alternative.
21012         (*vec_concatv2sf_sse4_1): Override length_immediate and
21013         prefix_data16 attributes for second alternative.
21014         (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
21015         vec_extract_hi_<mode>, vec_extract_lo_v16hi,
21016         vec_extract_hi_v16hi, vec_extract_lo_v32qi,
21017         vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
21018         (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
21019         prefix_data16 and length_immediate to 1.
21020         (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
21021         to 1.
21022         (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
21023         prefix_extra attribute for variants that don't have 0f prefix alone.
21024         (*avx_pinsr<ssevecsize>): Likewise.  Set length_immediate to 1.
21025         (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
21026         *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
21027         *sse4_1_pextrd): Set length_immediate to 1.
21028         (*sse4_1_pinsrd): Likewise.  Set prefix_extra to 1.
21029         (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
21030         to 1.
21031         (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
21032         *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
21033         length_immediate to 1 for second alternative.
21034         (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
21035         prefix_extra and length_immediate attributes for the first
21036         alternative.
21037         (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
21038         first alternative.
21039         (*vec_concatv2di_rex64_sse4_1): Likewise.  Override prefix_rex
21040         to 1 for the first and third alternative.
21041         (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
21042         alternative.
21043         (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
21044         attribute.
21045         (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
21046         attribute to 0.
21047         (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
21048         *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
21049         *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
21050         *avx_psign<mode>3): Set prefix_extra attribute to 1.
21051         (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
21052         ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
21053         ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
21054         ssse3_psign<mode>3): Override prefix_rex attribute.
21055         (*avx_palignrti): Override prefix_extra and length_immediate to 1.
21056         (ssse3_palignrti): Override length_immediate to 1.
21057         (ssse3_palignrdi): Override length_immediate to 1, override
21058         prefix_rex attribute.
21059         (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
21060         (sse4a_extrqi): Override length_immediate to 2.
21061         (sse4a_insertqi): Likewise.  Override prefix_data16 to 0.
21062         (sse4a_insertq): Override prefix_data16 to 0.
21063         (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
21064         avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
21065         avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
21066         *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
21067         avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
21068         and length_immediate to 1.
21069         (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
21070         sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
21071         sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
21072         sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
21073         and length_immediate to 1.
21074         (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
21075         (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
21076         (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
21077         avx_ptest256): Override prefix_extra to 1.
21078         (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
21079         Override prefix_data16 and length_immediate to 1.
21080         (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
21081         sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
21082         sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
21083         sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
21084         prefix_data16 to 0 and prefix_extra to 2.
21085         (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
21086         (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
21087         attribute.
21088         (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
21089         sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
21090         Override prefix_data16 and prefix_rep to 0, length_immediate to 1
21091         and prefix_extra to 2.
21092         (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
21093         prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
21094         (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
21095         avx_vpermilvar<mode>3,
21096         avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
21097         avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
21098         avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
21099         avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
21100         Override prefix_extra to 1.
21101         (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
21102         (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
21103         vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
21104         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
21105         prefix_extra and length_immediate to 1.
21106         (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
21107         modrm to 0.
21108         (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
21109         to 1 for the first alternative.
21110         * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
21111         prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
21112         cases.
21113         (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
21114         *movv2sf_internal_avx, *movv2sf_internal): Override
21115         prefix_rep attribute for certain alternatives.
21116         (*mov<mode>_internal): Override prefix_rep or prefix_data16
21117         attributes for certain alternatives.
21118         (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
21119         attributes for certain alternatives.
21120         (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
21121         *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
21122         mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
21123         mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
21124         *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
21125         mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
21126         mmx_pswapdv2si2): Set prefix_extra attribute to 1.
21127         (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
21128         length_immediate to 1 if operand 2 is const_int_operand.
21129         (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
21130         *vec_extractv2si_1): Set length_immediate attribute to 1.
21131         (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
21132         using old 3DNOW insn rather than SSE/3DNOW_A.
21133         (mmx_emms, mmx_femms): Clear modrm attribute.
21134
21135 2009-05-29  Martin Jambor  <mjambor@suse.cz>
21136
21137         * tree-sra.c:  New implementation of SRA.
21138
21139         * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
21140         (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
21141         (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
21142         * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
21143         (SRA_MAX_STRUCTURE_COUNT): Removed.
21144         (SRA_FIELD_STRUCTURE_RATIO): Removed.
21145         * doc/invoke.texi (sra-max-structure-size): Removed.
21146         (sra-field-structure-ratio): Removed.
21147
21148 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
21149
21150         PR middle-end/40291
21151         * builtins.c (expand_builtin_memcmp): Convert len to sizetype
21152         before expansion.
21153
21154 2009-05-29  Andrey Belevantsev  <abel@ispras.ru>
21155
21156         PR rtl-optimization/40101
21157         * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
21158         seqno.  Adjust comment.
21159         * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
21160         inserting bookkeeping before a jump, the jump is not scheduled.
21161         When no positive seqno found, provide a value.  Add comment.
21162
21163 2009-05-29  Richard Guenther  <rguenther@suse.de>
21164
21165         * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
21166         short-cutting on the first component.
21167
21168 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
21169
21170         PR middle-end/39958
21171         * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
21172         for trees other than decls/types.
21173
21174 2009-05-29  Richard Guenther  <rguenther@suse.de>
21175
21176         * tree-ssa-operands.c (get_expr_operands): Do not handle
21177         INDIRECT_REFs in the handled-component case.  Remove
21178         unused get_ref_base_and_extent case.
21179         * tree-dfa.c (get_ref_base_and_extent): Avoid calling
21180         tree_low_cst and host_integerp where possible.
21181         * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
21182         codes for equivalence.
21183         * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
21184
21185 2009-05-29  David Billinghurst <billingd@gcc.gnu.org>
21186
21187         * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
21188         to tmake_file for i[34567]86-*-cygwin*.
21189
21190 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
21191
21192         PR target/40017
21193         * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
21194         (altivec_categorize_keyword, init_vector_keywords,
21195         rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
21196         similar to bool.
21197
21198 2009-05-29  Kai Tietz  <kai.tietz@onevision.com>
21199
21200         * tree.c (handle_dll_attribute): Check if node is
21201         of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
21202
21203 2009-05-29  Richard Earnshaw  <rearnsha@arm.com>
21204
21205         * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
21206         component.
21207         (thumb2_zero_extendqidi2): Likewise.
21208
21209 2009-05-28  Kaz Kojima  <kkojima@gcc.gnu.org>
21210
21211         * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
21212         instead of gen_movrt.
21213         * config/sh/sh.md (movrt): Remove.
21214
21215 2009-05-28  Steve Ellcey  <sje@cup.hp.com>
21216
21217         * doc/invoke.texi (IA-64 Options):
21218         Add -msdata, -mfused-madd, -mno-inline-float-divide,
21219         -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
21220         -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
21221         -msched-prefer-non-control-spec-insns,
21222         -msched-stop-bits-after-every-cycle,
21223         -msched-count-spec-in-critical-path,
21224         -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
21225         -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
21226         Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
21227         and -msched-spec-verbose.
21228
21229 2009-05-28  Joseph Myers  <joseph@codesourcery.com>
21230
21231         * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
21232         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
21233         error if used.
21234         * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
21235
21236 2009-05-28  Richard Guenther  <rguenther@suse.de>
21237
21238         * tree-ssa-alias.c (ao_ref_init): New function.
21239         (ao_ref_base): Likewise.
21240         (ao_ref_base_alias_set): Likewise.
21241         (ao_ref_alias_set): Likewise.
21242         (refs_may_alias_p_1): Change signature.
21243         (refs_may_alias_p): Adjust.
21244         (refs_anti_dependent_p): Likewise.
21245         (refs_output_dependent_p): Likewise.
21246         (call_may_clobber_ref_p_1): Change signature.
21247         (call_may_clobber_ref_p): Adjust.
21248         (stmt_may_clobber_ref_p_1): New function split out from ...
21249         (stmt_may_clobber_ref_p): ... here.
21250         (maybe_skip_until): Adjust signature.
21251         (get_continuation_for_phi): Likewise.
21252         (walk_non_aliased_vuses): Likewise.
21253         * tree-ssa-alias.h (struct ao_ref_s): New structure type.
21254         (ao_ref_init): Declare.
21255         (ao_ref_base): Likewise.
21256         (ao_ref_alias_set): Likewise.
21257         (stmt_may_clobber_ref_p_1): Likewise.
21258         (walk_non_aliased_vuses): Adjust.
21259         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
21260         (get_ref_from_reference_ops): remove.
21261         (vn_reference_lookup_2): Adjust signature.
21262         (vn_reference_lookup_3): Do not re-build trees.  Handle unions.
21263         (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
21264         (vn_reference_lookup): Adjust.
21265         (vn_reference_insert): Likewise.
21266         (vn_reference_insert_pieces): Adjust signature.
21267         (visit_reference_op_call): Adjust.
21268         * tree-ssa-pre.c (get_expr_type): Simplify.
21269         (phi_translate_1): Adjust.
21270         (compute_avail): Likewise.
21271         (translate_vuse_through_block): Do not re-build trees.
21272         (value_dies_in_block_x): Likewise.
21273         * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
21274         fields.
21275         (vn_reference_lookup_pieces): Adjust declaration.
21276         (vn_reference_insert_pieces): Likewise.
21277
21278 2009-05-28  Benjamin Kosnik  <bkoz@redhat.com>
21279
21280         * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
21281         with checking disabled.
21282
21283 2009-05-28  Dave Korn  <dave.korn.cygwin@gmail.com>
21284
21285         PR target/37216
21286
21287         * configure.ac (HAVE_GAS_ALIGNED_COMM):  Add autoconf test and
21288         macro definition for support of three-operand format aligned
21289         .comm directive in assembler on cygwin/pe/mingw target OS.
21290         * configure:  Regenerate.
21291         * config.h:  Regenerate.
21292
21293         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common):  Use
21294         aligned form of .comm directive if -mpe-aligned-commons is in effect.
21295         * config/i386/cygming.opt (-mpe-aligned-commons):  Add new option.
21296
21297         * doc/invoke.texi (-mpe-aligned-commons):  Document new target option.
21298         * doc/tm.texi (ASM_OUTPUT_COMMON):  Document zero size commons.
21299
21300 2009-05-28  Ira Rosen  <irar@il.ibm.com>
21301
21302         PR tree-optimization/40254
21303         * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
21304         in analysis of basic blocks.
21305
21306 2009-05-28  Adam Nemet  <anemet@caviumnetworks.com>
21307
21308         PR middle-end/33699
21309         * target.h (struct gcc_target): Fix indentation.  Add const_anchor.
21310         * target-def.h (TARGET_CONST_ANCHOR): New macro.
21311         (TARGET_INITIALIZER): Use it.
21312         * cse.c (CHEAPER): Move it up to the other macros.
21313         (insert): Rename this ...
21314         (insert_with_costs): ... to this.  Add cost parameters.  Update
21315         function comment.
21316         (insert): New function.  Call insert_with_costs.
21317         (compute_const_anchors, insert_const_anchor, insert_const_anchors,
21318         find_reg_offset_for_const, try_const_anchors): New functions.
21319         (cse_insn): Call try_const_anchors.  Adjust cost of src_related
21320         when using a const-anchor.  Call insert_const_anchors.
21321         * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
21322         * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
21323
21324 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
21325
21326         * tree-inline.c (remap_decls): Enable nonlocalized variables
21327         when not optimizing.
21328
21329 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
21330
21331         * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
21332         Simplify other tests involving optimize.
21333
21334 2009-05-27  Tom Tromey  <tromey@redhat.com>
21335
21336         * unwind-dw2.c (_Unwind_DebugHook): New function.
21337         (uw_install_context): Call _Unwind_DebugHook.
21338
21339 2009-05-27  Tom Tromey  <tromey@redhat.com>
21340
21341         * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
21342
21343 2009-05-27  Ian Lance Taylor  <iant@google.com>
21344
21345         * Makefile.in (LINKER, LINKER_FLAGS): Define.
21346         (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
21347         (ALL_LINKERFLAGS): Define.
21348         (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
21349         (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
21350         (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
21351         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
21352         (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
21353         $(LINKER_FOR_BUILD).
21354         (build/gcov-iov$(build_exeext)): Likewise.
21355
21356 2009-05-27  Julian Brown  <julian@codesourcery.com>
21357
21358         * gcse.c (target.h): Include.
21359         (can_assign_to_reg_without_clobbers_p): Check that the target allows
21360         copy of argument to a pseudo register.
21361
21362 2009-05-27  Diego Novillo  <dnovillo@google.com>
21363
21364         * tree-ssa-live.c (dump_scope_block): Document arguments.
21365         (dump_scope_blocks): Document.
21366         (debug_scope_blocks): New.
21367         * tree-flow.h (debug_scope_blocks): Declare.
21368
21369 2009-05-21  Denis Chertykov  <denisc@overta.ru>
21370
21371         * doc/contrib.texi (Contributors): Add myself to the list.
21372
21373 2009-05-27  Olivier Hainque  <hainque@adacore.com>
21374
21375         * expr.c (target_align): New function.  Alignment the TARGET of an
21376         assignment may be assume to have.
21377         (highest_pow2_factor_for_target): Use it instead of relying on
21378         immediate tree attributes of TARGET, not necessarily honored when
21379         intermediate bitfields are involved.
21380
21381 2009-05-27  H.J. Lu  <hongjiu.lu@intel.com>
21382
21383         PR target/40266
21384         * config/i386/driver-i386.c (host_detect_local_cpu): Support
21385         AVX, SSE4, AES, PCLMUL and POPCNT.
21386
21387 2009-05-27  Diego Novillo  <dnovillo@google.com>
21388
21389         * tree-pretty-print.c (dump_location): New.
21390         (dump_generic_node): Call it.
21391         Factor code to handle BLOCK nodes ...
21392         (dump_block_node): ... here.
21393
21394 2009-05-27  Rafael Avila de Espindola  <espindola@google.com>
21395
21396         * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
21397         with it.
21398         * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
21399         included.
21400         * gcc-plugin.h: Include config.h and system.h.
21401         (IN_GCC): Define if not defined.
21402
21403 2009-05-27  Hans-Peter Nilsson  <hp@axis.com>
21404
21405         PR middle-end/40249
21406         * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
21407         with -fno-inline.
21408
21409 2009-05-27  Shujing Zhao  <pearly.zhao@oracle.com>
21410
21411         * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
21412         applicable.
21413         * config/m32r/m32r.h: Ditto.
21414         * config/m32r/m32r.md: Ditto.
21415         * config/m32r/predicates.md: Ditto.
21416
21417 2009-05-27  Alexandre Oliva  <aoliva@redhat.com>
21418
21419         * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
21420
21421 2009-05-26  Basile Starynkevitch  <basile@starynkevitch.net>
21422
21423         * doc/plugins.texi
21424         (Loading plugins): typo.
21425         (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
21426         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
21427         (Interacting with the GCC Garbage Collector): Added new section.
21428         (Giving information about a plugin): Added new section for
21429         PLUGIN_INFO.
21430         * ggc.h (ggc_register_root_tab): Added declaration.
21431         * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
21432         (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
21433         (register_callback): Improved comment in declaration.
21434         * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
21435         (extra_root_vec) Added static variable for dynamic roots registration.
21436         (ggc_register_root_tab) Added new routine.
21437         (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
21438         PLUGIN_GGC_MARKING event.
21439         * ggc-zone.c: Include plugin.h.
21440         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
21441         * ggc-page.c: Include plugin.h.
21442         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
21443         * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
21444         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
21445         (register_callback): check lack of callbacks for
21446         pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
21447         PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
21448         (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
21449         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
21450         * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
21451         dependency on plugin.h.
21452         (plugin.o): Added dependency on ggc.h...
21453
21454 2009-05-26  Richard Guenther  <rguenther@suse.de>
21455
21456         PR middle-end/40248
21457         Revert
21458         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
21459         with mismatched comparison modes.
21460
21461         * expr.c (expand_expr_real_1): Expand the operand of a
21462         VIEW_CONVERT_EXPR in its natural mode.
21463
21464 2009-05-26  Ian Lance Taylor  <iant@google.com>
21465
21466         * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
21467         (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
21468         (ALL_COMPILERFLAGS): Define.
21469         (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
21470         (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
21471         (collect2$(exeext), collect2.o): Likewise.
21472         (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
21473         (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
21474         ($(out_object_file), mips-tfile, mips-tdump): Likewise.
21475         (libbackend.o, intl.o, cppdefault.o): Likewise.
21476         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
21477         (build/%.o): Use $(COMPILER_FOR_BUILD).
21478         (build/gen%$(build_exeext)): Likewise.
21479         (build/gcov-iov$(build_exeext)): LIkewise.
21480         * config/t-darwin (darwin.o): Use $(COMPILER).
21481         (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
21482         * config/t-sol2 (sol2-c.o): Likewise.
21483         (sol2.o): Likewise.
21484         * config/t-vxworks (vxworks.o): Likewise.
21485         * config/x-darwin (host-darwin.o): Likewise.
21486         * config/x-hpux (host-hpux.o): Likewise.
21487         * config/x-linux (host-linux.o): Likewise.
21488         * config/x-solaris (host-solaris.o): Likewise.
21489         * config/alpha/x-alpha (driver-alpha.o): Likewise.
21490         * config/arm/t-arm (arm-c.o): Likewise.
21491         * config/arm/t-pe (pe.o): Likewise.
21492         * config/arm/t-wince-pe (pe.o): Likewise.
21493         * config/i386/t-cygming (winnt.o): Likewise.
21494         (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
21495         * config/i386/t-cygwin (cygwin1.o): Likewise.
21496         (cygwin2.o): Likewise.
21497         * config/i386/t-i386 (i386-c.o): Likewise.
21498         * config/i386/t-interix (winnt.o): Likewise.
21499         * config/i386/t-netware (netware.o): Likewise.
21500         * config/i386/t-nwld (nwld.o): Likewise.
21501         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
21502         * config/i386/x-i386 (driver-i386.o): Likewise.
21503         * config/i386/x-cygwin (host-cygwin.o): Likewise.
21504         * config/i386/x-mingw32 (host-mingw32.o): Likewise.
21505         * config/ia64/t-ia64 (ia64-c.o): Likewise.
21506         * config/m32c/t-m32c (m32c-pragma.o): Likewise.
21507         * config/mips/x-native (driver-native.o): Likewise.
21508         * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
21509         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
21510         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
21511         * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
21512         * config/score/t-score-elf (score7.o): Likewise.
21513         (score3.o): Likewise.
21514         * config/sh/t-sh (sh-c.o): Likewise.
21515         * config/sh/t-symbian (sh-c.o): Likewise.
21516         (symbian.o): Likewise.
21517         * config/spu/t-spu-elf (spu-c.o): Likewise.
21518         * config/v850/t-v850 (v850-c.o): Likewise.
21519         * config/v850/t-v850e (v850-c.o): Likewise.
21520
21521 2009-05-26  Richard Guenther  <rguenther@suse.de>
21522
21523         PR tree-optimization/40122
21524         * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
21525         VECTOR_CSTs if possible.
21526         (fold_gimple_assign): Likewise.
21527
21528 2009-05-26  Richard Guenther  <rguenther@suse.de>
21529
21530         PR middle-end/40252
21531         * fold-const.c (fold_binary): Use the correct types for building
21532         rotates.
21533
21534 2009-05-26  Richard Guenther  <rguenther@suse.de>
21535
21536         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
21537         redundant calls to merge_alias_info.
21538         (bump_vector_ptr): Likewise.
21539         * tree-ssa-copy.c (merge_alias_info): Remove.
21540         (replace_exp_1): Remove call to merge_alias_info.
21541         (propagate_tree_value): Likewise.
21542         (fini_copy_prop): Propagate points-to info.
21543         * tree-flow.h (merge_alias_info): Remove.
21544
21545 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
21546
21547         * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
21548
21549 2009-05-25  Jan Hubicka  <jh@suse.cz>
21550
21551         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
21552         * cgraph.h (struct inline_summary): New filed self_wize,
21553         size_inlining_benefit, self_time and time_inlining_benefit.
21554         (struct cgraph_global_info): Replace insns by time ans size fields.
21555         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
21556         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
21557         (ipcp_update_callgraph): Do not touch function bodies.
21558         * ipa-inline.c: Include except.h
21559         (MAX_TIME): New constant.
21560         (overall_insns): Remove.
21561         (leaf_node_p): New.
21562         (overall_size, max_benefit): New static variables.
21563         (cgraph_estimate_time_after_inlining): New function.
21564         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
21565         (cgraph_clone_inlined_nodes): Update size.
21566         (cgraph_mark_inline_edge): Update size.
21567         (cgraph_estimate_growth): Use size info.
21568         (cgraph_check_inline_limits): Check size.
21569         (cgraph_default_inline_p): Likewise.
21570         (cgraph_edge_badness): Compute badness based on benefit and size cost.
21571         (cgraph_decide_recursive_inlining): Check size.
21572         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
21573         and times.
21574         (cgraph_decide_inlining): Likewise.
21575         (cgraph_decide_inlining_incrementally): Likewise; honor
21576         PARAM_EARLY_INLINING_INSNS.
21577         (likely_eliminated_by_inlining_p): New predicate.
21578         (estimate_function_body_sizes): New function.
21579         (compute_inline_parameters): Use it.
21580         * except.c (must_not_throw_labels): New function.
21581         * except.h (must_not_throw_labels): Declare.
21582         * tree-inline.c (init_inline_once): Kill inlining_weigths
21583         * tree-ssa-structalias.c: Avoid uninitialized warning.
21584         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
21585         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
21586         (PARAM_INLINE_CALL_COST): Remove.
21587         (PARAM_EARLY_INLINING_INSNS): New.
21588
21589 2009-05-25  Richard Guenther  <rguenther@suse.de>
21590
21591         PR tree-optimization/36327
21592         * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
21593         callback for reference translation or lookup at the point of may-defs.
21594         * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
21595         * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
21596         for union COMPONENT_REFs.
21597         (vn_reference_lookup_3): New callback.  Lookup from memset
21598         and CONSTRUCTOR assignment, translate through struct copies.
21599         (vn_reference_lookup_pieces): Make sure to not free the
21600         passed operands array.  Adjust walk_non_aliased_vuses call.
21601         (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
21602         make sure we do not leak memory.
21603
21604 2009-05-25  Richard Guenther  <rguenther@suse.de>
21605
21606         * tree-ssa-alias.h (dump_points_to_solution): Declare.
21607         * tree-inline.c (expand_call_inline): Reset the escaped and
21608         callused solutions.
21609         * tree-ssa-structalias.c (pass_build_ealias): New.
21610         * tree-pass.h (pass_build_ealias): Declare.
21611         * passes.c (init_optimization_passes): Add PTA during
21612         early optimizations.
21613         * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
21614         and CALLUSED solutions.
21615         (dump_points_to_solution): New function, split out from ...
21616         (dump_points_to_info_for): ... here.
21617         * tree-parloops.c (parallelize_loops): Reset the escaped and
21618         callused solutions.
21619
21620 2009-05-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
21621
21622         PR bootstrap/40027
21623         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
21624         * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
21625
21626 2009-05-25  Ira Rosen  <irar@il.ibm.com>
21627
21628         PR tree-optimization/40238
21629         * tree-vect-stmts.c (vect_init_vector): Insert initialization
21630         statements after basic block's labels.
21631         * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
21632         to free the allocated memory.
21633
21634 2009-05-24  Kaz Kojima  <kkojima@gcc.gnu.org>
21635
21636         * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
21637         return address with a USE.
21638
21639 2009-05-24  Richard Guenther  <rguenther@suse.de>
21640
21641         PR middle-end/40233
21642         * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
21643         array type from the main variant of the inner type.
21644
21645 2009-05-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
21646
21647         * config/vax/vax-protos.h (legitimate_constant_address_p): Change
21648         definition to bool (from int) to un-break build.
21649         (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
21650
21651 2009-05-24  Paolo Bonzini  <bonzini@gnu.org>
21652
21653         * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
21654         discard_stmt_changes): Delete.
21655         * tree-ssa-operands.c (scb_stack): Delete.
21656         (init_ssa_operands): Do not initialize it.
21657         (fini_ssa_operands): Do not free it.
21658         (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
21659
21660         * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
21661         update_stmt, remove the others.  Fix comments.
21662         * tree-dfa.c (optimize_stack_restore): Likewise.
21663         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
21664         * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
21665         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
21666         * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
21667         Likewise.
21668         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
21669         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
21670         (dom_opt_finalize_block): Likewise, adjusting access to
21671         stmts_to_rescan.
21672         (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
21673         (stmts_to_rescan): Change item type to gimple.
21674         (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
21675
21676 2009-05-24  Ira Rosen  <irar@il.ibm.com>
21677
21678         * doc/passes.texi (Tree-SSA passes): Document SLP pass.
21679         * tree-pass.h (pass_slp_vectorize): New pass.
21680         * params.h (SLP_MAX_INSNS_IN_BB): Define.
21681         * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
21682         * tree-vectorizer.c (timevar.h): Include.
21683         (user_vect_verbosity_level): Declare.
21684         (vect_location): Fix comment.
21685         (vect_set_verbosity_level): Update user_vect_verbosity_level
21686         instead of vect_verbosity_level.
21687         (vect_set_dump_settings): Add an argument. Ignore user defined
21688         verbosity if dump flags require higher level of verbosity. Print to
21689         stderr only for loop vectorization.
21690         (vectorize_loops): Update call to vect_set_dump_settings.
21691         (execute_vect_slp): New function.
21692         (gate_vect_slp): Likewise.
21693         (struct gimple_opt_pass pass_slp_vectorize): New.
21694         * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
21695         access its members.
21696         (vec_info_for_bb): New function.
21697         (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
21698         (VECTORIZATION_ENABLED): New macro.
21699         (SLP_ENABLED, SLP_DISABLED): Likewise.
21700         (vect_is_simple_use): Add bb_vec_info argument.
21701         (new_stmt_vec_info, vect_analyze_data_ref_dependences,
21702         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
21703         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
21704         vect_schedule_slp, vect_analyze_slp): Likewise.
21705         (vect_analyze_stmt): Add slp_tree argument.
21706         (find_bb_location): Declare.
21707         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
21708         * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
21709         (vect_analyze_loop_operations, vect_analyze_loop,
21710         get_initial_def_for_induction, vect_create_epilog_for_reduction,
21711         vect_finalize_reduction, vectorizable_reduction,
21712         vectorizable_live_operation, vect_transform_loop): Likewise.
21713         * tree-data-ref.c (dr_analyze_innermost): Update comment,
21714         skip evolution analysis if analyzing a basic block.
21715         (dr_analyze_indices): Likewise.
21716         (initialize_data_dependence_relation): Skip the test whether the
21717         object is invariant for basic blocks.
21718         (compute_all_dependences): Skip dependence analysis for data
21719         references in basic blocks.
21720         (find_data_references_in_stmt): Don't fail in case of invariant
21721         access in basic block.
21722         (find_data_references_in_bb): New function.
21723         (find_data_references_in_loop): Move code to
21724         find_data_references_in_bb and add a call to it.
21725         (compute_data_dependences_for_bb): New function.
21726         * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
21727         * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
21728         that STEP is 0.
21729         (vect_analyze_data_ref_dependence): Check for interleaving in case of
21730         unknown dependence in basic block and fail in case of dependence in
21731         basic block.
21732         (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
21733         dependence instances from either loop or basic block vectorization
21734         info.
21735         (vect_compute_data_ref_alignment): Check if it is loop vectorization
21736         before calling nested_in_vect_loop_p.
21737         (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
21738         dependence instances from either loop or basic block vectorization
21739         info.
21740         (vect_verify_datarefs_alignment): Likewise.
21741         (vect_enhance_data_refs_alignment): Adjust function calls.
21742         (vect_analyze_data_refs_alignment): Likewise.
21743         (vect_analyze_group_access): Fix printing. Skip different checks if
21744         DR_STEP is 0. Keep strided stores either in loop or basic block
21745         vectorization data structure. Fix indentation.
21746         (vect_analyze_data_ref_access): Fix comments, allow zero step in
21747         basic blocks.
21748         (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
21749         dependence instances from either loop or basic block vectorization
21750         info.
21751         (vect_analyze_data_refs): Update comment. Call
21752         compute_data_dependences_for_bb to analyze basic blocks.
21753         (vect_create_addr_base_for_vector_ref): Check for outer loop only in
21754         case of loop vectorization. In case of basic block vectorization use
21755         data-ref itself as a base.
21756         (vect_create_data_ref_ptr): In case of basic block vectorization:
21757         don't advance the pointer, add new statements before the current
21758         statement.  Adjust function calls.
21759         (vect_supportable_dr_alignment): Support only aligned accesses in
21760         basic block vectorization.
21761         * common.opt (ftree-slp-vectorize): New flag.
21762         * tree-vect-patterns.c (widened_name_p): Adjust function calls.
21763         (vect_pattern_recog_1): Likewise.
21764         * tree-vect-stmts.c (process_use): Likewise.
21765         (vect_init_vector): Add new statements in the beginning of the basic
21766         block in case of basic block SLP.
21767         (vect_get_vec_def_for_operand): Adjust function calls.
21768         (vect_finish_stmt_generation): Likewise.
21769         (vectorizable_call): Add assert that it is loop vectorization, adjust
21770         function calls.
21771         (vectorizable_conversion, vectorizable_assignment): Likewise.
21772         (vectorizable_operation): In case of basic block SLP, take
21773         vectorization factor from statement's type and skip the relevance
21774         check. Adjust function calls.
21775         (vectorizable_type_demotion): Add assert that it is loop
21776         vectorization, adjust function calls.
21777         (vectorizable_type_promotion): Likewise.
21778         (vectorizable_store): Check for outer loop only in case of loop
21779         vectorization. Adjust function calls. For basic blocks, skip the
21780         relevance check and don't advance pointers.
21781         (vectorizable_load): Likewise.
21782         (vectorizable_condition): Add assert that it is loop vectorization,
21783         adjust function calls.
21784         (vect_analyze_stmt): Add argument. In case of basic block SLP, check
21785         that it is not reduction, get vector type, call only supported
21786         functions, skip loop specific parts.
21787         (vect_transform_stmt): Check for outer loop only in case of loop
21788         vectorization.
21789         (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
21790         (vect_is_simple_use): Fix comment, add new argument, fix conditions
21791         for external definition.
21792         * passes.c (pass_slp_vectorize): New pass.
21793         * tree-vect-slp.c (find_bb_location): New function.
21794         (vect_get_and_check_slp_defs): Add argument, adjust function calls,
21795         check for patterns only in loops.
21796         (vect_build_slp_tree): Add argument, adjust function calls, fail in
21797         case of multiple types in basic block SLP.
21798         (vect_mark_slp_stmts_relevant): New function.
21799         (vect_supported_load_permutation_p): Fix comment.
21800         (vect_analyze_slp_instance): Add argument. In case of basic block
21801         SLP, take vectorization factor from statement's type, check that
21802         unrolling factor is 1. Adjust function call. Save SLP instance in
21803         either loop or basic block vectorization structure. Return FALSE,
21804         if SLP failed.
21805         (vect_analyze_slp): Add argument. Get strided stores groups from
21806         either loop or basic block vectorization structure. Return FALSE
21807         if basic block SLP failed.
21808         (new_bb_vec_info): New function.
21809         (destroy_bb_vec_info, vect_slp_analyze_node_operations,
21810         vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
21811         (vect_schedule_slp): Add argument. Get SLP instances from either
21812         loop or basic block vectorization structure. Set vectorization factor
21813         to be 1 for basic block SLP.
21814         (vect_slp_transform_bb): New function.
21815         * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
21816
21817 2009-05-23  Mark Mitchell  <mark@codesourcery.com>
21818
21819         * final.c (shorten_branches): Do not align labels for jump tables.
21820         (final_scan_insn): Use JUMP_TABLE_DATA_P.
21821
21822 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
21823
21824         * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
21825         Remove outdated reference to flow.c and fix nits.
21826         * doc/gccint.texi: Tweak RTL description.
21827         * doc/rtl.texi: Likewise.
21828
21829 2009-05-23  Denis Chertykov  <chertykov@gmail.com>
21830
21831         * config/avr/avr.c: Change my email address.
21832         * config/avr/avr.h: Likewise.
21833         * config/avr/avr.md: Likewise.
21834         * config/avr/avr-protos.h: Likewise.
21835         * config/avr/libgcc.S: Likewise.
21836
21837 2009-05-22  Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
21838
21839         * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
21840         (spu_split_load, spu_split_store): Change return type to int.
21841         (spu_split_convert): Declare.
21842         * config/spu/predicates.md (spu_mem_operand): Remove.
21843         (spu_mov_operand): Update.
21844         (spu_dest_operand, shiftrt_operator, extend_operator): Define.
21845         * config/spu/spu.c (regno_aligned_for_load): Remove.
21846         (reg_aligned_for_addr, spu_expand_load): Define.
21847         (spu_expand_extv): Reimplement and handle MEM.
21848         (spu_expand_insv): Handle MEM.
21849         (spu_sched_reorder): Handle insn's with length 0.
21850         (spu_legitimate_address_p): Reimplement.
21851         (store_with_one_insn_p): Return TRUE for any mode with size
21852         larger than 16 bytes.
21853         (address_needs_split): Define.
21854         (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
21855         operands.
21856         (spu_convert_move): Define.
21857         (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
21858         (spu_split_store): Change all MEM's to TImode.
21859         (spu_init_expanders): Preallocate registers that correspond to
21860         LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
21861         mark_reg_pointer.
21862         (spu_split_convert): Define.
21863         * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
21864         (_move<mode>, _movdi, _movti): Update predicate and condition.
21865         (load, store): Change to define_split.
21866         (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
21867         extend<mode>ti2.
21868         (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
21869         (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
21870         define_insn_and_split of lshr<mode>3.
21871         (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
21872         (<v>ashr<mode>3_imm): Define.
21873         (extv, extzv, insv): Allow MEM operands.
21874         (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
21875         shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
21876         sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
21877         (_spu_convert2): Change to define_insn_and_split and remove the
21878         corresponding define_peephole2.
21879         (stack_protect_set, stack_protect_test, stack_protect_test_si):
21880         Change predicates to memory_operand.
21881
21882 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
21883
21884         * config/arm/thumb2.md: Add 16-bit multiply instructions.
21885
21886 2009-05-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
21887
21888         PR tree-optimization/40219
21889         * tree.c (iterative_hash_expr): Make sure the builtin function is
21890         a normal builtin function and not a front end or back end builtin
21891         before indexing into the built_in_decls array.
21892
21893 2009-05-22  Richard Guenther  <rguenther@suse.de>
21894
21895         PR middle-end/38964
21896         * alias.c (write_dependence_p): Do not use TBAA for answering
21897         anti-dependence or output-dependence.
21898         * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
21899         (emit_pointer_definition): Remove.
21900         (emit_alias_warning): Likewise.
21901         (find_what_var_points_to): Remove TBAA pruning code.
21902         (find_what_p_points_to): Likewise.  Do not warn about strict-aliasing
21903         violations.
21904         (compute_points_to_sets): Remove code computing the set of
21905         dereferenced pointers.
21906         * tree-data-ref.c (dr_may_alias_p): Properly use the split
21907         oracle for querying anti and output dependencies.
21908         * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
21909         if TBAA may be applied.
21910         (refs_anti_dependent_p): New function.
21911         (refs_output_dependent_p): Likewise.
21912         * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
21913         (refs_output_dependent_p): Likewise.
21914         * doc/tree-ssa.texi (Memory model): New section.
21915         * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
21916         * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
21917         * cfgexpand.c (expand_gimple_basic_block): Do not handle
21918         GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
21919         * expr.c (expand_expr_real_1): Likewise.
21920         * gimple-low.c (lower_stmt): Likewise.
21921         * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
21922         (dump_gimple_cdt): Remove.
21923         * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
21924         (gimple_size): Likewise.
21925         (walk_gimple_op): Likewise.
21926         (is_gimple_stmt): Likewise.
21927         (walk_stmt_load_store_addr_ops): Likewise.
21928         (gimple_build_cdt): Remove.
21929         * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
21930         * gimple.h (gimple_cdt_new_type): Remove.
21931         (gimple_cdt_new_type_ptr): Likewise.
21932         (gimple_cdt_set_new_type): Likewise.
21933         (gimple_cdt_location): Likewise.
21934         (gimple_cdt_location_ptr): Likewise.
21935         (gimple_cdt_set_location): Likewise.
21936         * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
21937         * tree-cfg.c (remove_useless_stmts_1): Do not handle
21938         GIMPLE_CHANGE_DYNAMIC_TYPE.
21939         (verify_types_in_gimple_stmt): Likewise.
21940         * tree-inline.c (estimate_num_insns): Likewise.
21941         (expand_call_inline): Do not copy DECL_NO_TBAA_P.
21942         (copy_decl_to_var): Likewise.
21943         (copy_result_decl_to_var): Likewise.
21944         * tree-pretty-print.c (dump_generic_node): Do not handle
21945         CHANGE_DYNAMIC_TYPE_EXPR.
21946         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
21947         * tree-ssa-operands.c (get_expr_operands): Likewise.
21948         * tree-ssa-structalias.c (struct variable_info): Remove
21949         no_tbaa_pruning member.
21950         (new_var_info): Do not set it based on DECL_NO_TBAA_P.
21951         (unify_nodes): Do not copy it.
21952         (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
21953         (dump_solution_for_var): Do not dump no_tbaa_pruning state.
21954         (set_uids_in_ptset): Do not check it.
21955         (find_what_var_points_to): Likewise.
21956         (compute_tbaa_pruning): Remove.
21957         (compute_points_to_sets): Do not call it.
21958         * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
21959         * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
21960         * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
21961         (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
21962         (DECL_NO_TBAA_P): Likewise.
21963         (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
21964         * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
21965         (expand_omp_atomic_pipeline): Do not set it.
21966         * print-tree.c (print_node): Do not dump it.
21967         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
21968         redundant check.
21969
21970 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
21971
21972         PR target/39856
21973         * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
21974         for clobber.
21975
21976 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
21977
21978         * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
21979         non-external.
21980
21981 2009-05-22  Ben Elliston  <bje@au.ibm.com>
21982
21983         * Makefile.in (bversion.h, s-bversion): New targets.
21984         (TOPLEV_H): Add bversion.h.
21985         * toplev.h: Include "bversion.h".
21986         (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
21987         the __format__ attribute only if compiling with the same version
21988         of GCC as the sources (the "build version").
21989
21990 2009-05-22  Ben Elliston  <bje@au.ibm.com>
21991
21992         * c-format.c (handle_format_attribute): Fix comment typo.
21993
21994 2009-05-21  Steve Ellcey  <sje@cup.hp.com>
21995
21996         PR target/37846
21997         * config/ia64/ia64.opt (mfused-madd): New.
21998         * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
21999         * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
22000         * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
22001         madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
22002         nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
22003         msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
22004         nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
22005         * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
22006         instruction if !TARGET_FUSED_MADD.
22007         (fpma, fpms): Remove colon from name.
22008
22009 2009-05-22  Richard Guenther  <rguenther@suse.de>
22010
22011         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
22012         TMR_ORIGINAL.  Always either record TMR_SYMBOL or TMR_BASE.
22013         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
22014         TARGET_MEM_REF.
22015         (create_expression_by_pieces): Only convert if necessary.
22016         * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
22017         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
22018
22019 2009-05-21  Adam Nemet  <anemet@caviumnetworks.com>
22020
22021         * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
22022         regular pattern from a template and rename it ...
22023         (*extzv_truncsi_exts): ... to this.
22024
22025 2009-05-21  Richard Guenther  <rguenther@suse.de>
22026
22027         * cgraph.h (struct cgraph_node): Remove inline_decl member.
22028         * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
22029         (cgraph_default_inline_p): Likewise.
22030         (cgraph_decide_inlining_incrementally): Likewise.
22031
22032 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
22033             Uros Bizjak  <ubizjak@gmail.com>
22034
22035         * config/i386/cpuid.h (bit_MOVBE): New.
22036
22037         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
22038
22039         * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
22040         (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
22041         (ix86_handle_option): Handle OPT_mmovbe.
22042         (ix86_target_string): Add -mmovbe.
22043         (pta_flags): Add PTA_MOVBE.
22044         (processor_alias_table): Add PTA_MOVBE to "atom".
22045         (override_options): Handle PTA_MOVBE.
22046
22047         * config/i386/i386.h (TARGET_MOVBE): New.
22048
22049         * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
22050         (*bswapsi_movbe): New.
22051         (*bswapdi_movbe): Likewise.
22052         (bswapdi2): Renamed to ...
22053         (*bswapdi_1): This.
22054         (bswapdi2): New expander.
22055
22056         * config/i386/i386.opt (mmovbe): New.
22057
22058         * doc/invoke.texi: Document -mmovbe.
22059
22060 2009-05-21  Taras Glek  <tglek@mozilla.com>
22061
22062         * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
22063         * gcc-plugin.h (plugin_init): Updated signature.
22064         * gcc-plugin.h (plugin_name_args): Moved to this header.
22065         * doc/plugins.texi (plugin_init): Updated documention to reflect
22066         API change.
22067         * doc/plugins.texi (plugin_name_args): Added to documention.
22068
22069 2009-05-21  Mark Mitchell  <mark@codesourcery.com>
22070
22071         * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
22072         (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
22073
22074 2009-05-21  Shujing Zhao  <pearly.zhao@oracle.com>
22075
22076         * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
22077         JUMP_TABLE_DATA_P predicates where applicable.
22078         * config/i386/predicates.md: Ditto.
22079         * config/i386/sse.md: Ditto.
22080
22081 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
22082
22083         * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
22084         operand2 -128 override length_immediate attribute to 1.
22085         * config/i386/predicates.md (constm128_operand): New predicate.
22086
22087         * config/i386/i386.c (memory_address_length): Handle %r12
22088         the same as %rsp and %r13 the same as %rbp.  For %rsp and %rbp
22089         also check REGNO.
22090         (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
22091         mode look through optional ZERO_EXTEND and SUBREG.
22092         * config/i386/i386.md (R12_REG): New define_constant.
22093         (prefix_data16): For sse unit set also for MODE_TI insns.
22094         (prefix_rex): For -m32 always return 0.  For TYPE_IMOVX
22095         insns set if operand 1 is ext_QIreg_operand.
22096         (modrm): For TYPE_IMOV clear only if not MODE_DI.  For
22097         TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
22098         immediate.
22099         (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
22100         mode from MODE_DI to MODE_SI.
22101         (movdi_1_rex64): Override modrm and length_immediate attributes
22102         only for movabs (TYPE_IMOV, alternative 2).
22103         (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
22104         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
22105         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
22106         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
22107         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
22108         prefix_rex attribute if DImode.
22109         (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
22110         *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
22111         *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
22112         *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
22113         attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
22114         (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
22115         Likewise.  For TYPE_IMOV clear length_immediate attribute.
22116         (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
22117         *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
22118         *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
22119         *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
22120         *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
22121         or one operand TYPE_ISHIFT.
22122         (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
22123         *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
22124         *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
22125         *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
22126         *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
22127         *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
22128         *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
22129         *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
22130         *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
22131         *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
22132         *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
22133         *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
22134         *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
22135         *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
22136         *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
22137         *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
22138         *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
22139         set mode attribute, don't override length attribute.
22140         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
22141         to 1.
22142         (return_internal_long): Set length attribute to 2 instead of 1.
22143         (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
22144         *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
22145         prefix_rex attribute.
22146         * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
22147         New predicates.
22148         (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
22149
22150 2009-05-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22151
22152         * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
22153
22154 2009-05-20  Ian Lance Taylor  <iant@google.com>
22155
22156         * tree.c (build_tree_list_vec_stat): New function.
22157         (ctor_to_vec): New function.
22158         (build_nt_call_vec): New function.
22159         (build_call_array): Change args to be a const pointer.
22160         (build_call_vec): New function.
22161         * tree.h (build_nt_call_vec): Declare.
22162         (build_tree_list_vec_stat): Declare.
22163         (build_tree_list_vec): Define.
22164         (build_call_array): Update declaration.
22165         (build_call_vec): Declare.
22166         (ctor_to_vec): Declare.
22167         * c-common.c (tree_vector_cache): New static variable.
22168         (make_tree_vector): New function.
22169         (release_tree_vector): New function.
22170         (make_tree_vector_single): New function.
22171         (make_tree_vector_copy): New function.
22172         * c-common.h (tree_vector_cache, make_tree_vector): Declare.
22173         (make_tree_vector_single, make_tree_vector_copy): Declare.
22174         * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
22175         (c_parser_expr_list): Don't manage cache here, instead call
22176         make_tree_vector.
22177         (c_parser_release_expr_list): Remove static function.
22178         (c_parser_vec_to_tree_list): Remove static function.
22179         (c_parser_attributes): Call build_tree_list_vec instead of
22180         c_parser_vec_to_tree_list.  Call release_tree_vector instead of
22181         c_parser_release_expr_list.
22182         (c_parser_postfix_expression_after_primary): Likewise.
22183         (c_parser_objc_keywordexpr): Likewise.
22184
22185 2009-05-20  Sandra Loosemore  <sandra@codesourcery.com>
22186
22187         * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
22188         TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
22189         TARGET_CONVERT_TO_TYPE.
22190         * hooks.c (hook_tree_const_tree_null): Define.
22191         * hooks.h (hook_tree_const_tree_null): Declare.
22192         * target.h (struct gcc_target):  Add invalid_parameter_type,
22193         invalid_return_type, promoted_type, and convert_to_type fields.
22194         * target-def.h (TARGET_INVALID_PARAMETER_TYPE): Define.
22195         (TARGET_INVALID_RETURN_TYPE): Define.
22196         (TARGET_PROMOTED_TYPE): Define.
22197         (TARGET_CONVERT_TO_TYPE): Define.
22198         (TARGET_INITIALIZER): Update for new fields.
22199         * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
22200         (grokparms): Check targetm.invalid_parameter_type.
22201         * c-typeck.c (default_conversion): Check targetm.promoted_type.
22202         * c-convert.c (convert): Check targetm.convert_to_type.
22203
22204 2009-05-20  Adam Nemet  <anemet@caviumnetworks.com>
22205
22206         * config/mips/mips.md (*extenddi_truncate<mode>,
22207         *extendsi_truncate<mode>): Emit exts if supported.  Add attribute
22208         defintions.
22209         (*extendhi_truncateqi): New define_insn_and_sptit.
22210
22211 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
22212
22213         PR middle-end/40204
22214         * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
22215         recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
22216
22217 2009-05-20  Eric Botcazou  <ebotcazou@adacore.com>
22218
22219         * fold-const.c (build_fold_addr_expr_with_type): Take the address of
22220         the operand of VIEW_CONVERT_EXPR.
22221
22222 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
22223
22224         * config/i386/driver-i386.c (host_detect_local_cpu): Check
22225         extended family and model for Intel processors.  Support Intel Atom.
22226
22227 2009-05-20  Olivier Hainque  <hainque@adacore.com>
22228
22229         * gstab.h (stab_code_type): Define, to be used instead of the
22230         __stab_debug_code enum, made anonymous.  Add 2009 to the copyright
22231         notice.
22232         * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
22233         occurrences by stab_code_type.
22234         * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
22235
22236 2009-05-20  Martin Jambor  <mjambor@suse.cz>
22237
22238         * tree-flow.h (insert_edge_copies_seq): Undeclare.
22239         (sra_insert_before): Likewise.
22240         (sra_insert_after): Likewise.
22241         (sra_init_cache): Likewise.
22242         (sra_type_can_be_decomposed_p): Likewise.
22243         * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
22244         * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
22245         (sra_insert_before): Likewise.
22246         (sra_insert_after): Likewise.
22247         (sra_init_cache): Likewise.
22248         (insert_edge_copies_seq): Made static and moved upwards.
22249
22250         * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
22251         case.
22252
22253         * tree-flow-inline.h (contains_view_convert_expr_p): New function.
22254
22255         * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
22256         (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
22257         simple copies.
22258
22259 2009-05-20  Richard Guenther  <rguenther@suse.de>
22260
22261         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
22262         with mismatched comparison modes.
22263
22264 2009-05-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22265
22266         * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
22267         (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
22268         * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
22269         with shifts for Thumb2.
22270         (orsi_notsi): New for orn.
22271         (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
22272         (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
22273         * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
22274         (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
22275         Don't invert remainder for IOR.
22276
22277 2009-05-19  Zdenek Dvorak  <ook@ucw.cz>
22278
22279         PR tree-optimization/40087
22280         * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
22281         number_of_iterations_ne): Rename never_infinite argument.
22282         (number_of_iterations_lt_to_ne, number_of_iterations_lt,
22283         number_of_iterations_le): Handle pointer-type ivs when
22284         exit_must_be_taken is false.
22285         (number_of_iterations_cond):  Do not always assume that
22286         exit_must_be_taken if the control variable is a pointer.
22287
22288 2009-05-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
22289
22290         * c-typeck.c (build_binary_op): Allow % on integal vectors.
22291         * doc/extend.texi (Vector Extension): Document that % is allowed too.
22292
22293 2009-05-19  H.J. Lu  <hongjiu.lu@intel.com>
22294
22295         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
22296         ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
22297
22298 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22299
22300         PR c/40172
22301         * c.opt (Wlogical-op): Disabled by default.
22302         * c-opt (c_common_post_options): Do not enable Wlogical-op with
22303         Wextra.
22304         * doc/invoke.texi (Wlogical-op): Likewise.
22305
22306 2009-05-19  Eric Botcazou  <ebotcazou@adacore.com>
22307
22308         * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
22309         into CASE_CONVERT.
22310         <PLUS_EXPR>: Strip useless type conversions instead of type nops.
22311         Propagate the type of the first operand.
22312         <ASSERT_EXPR>: Simplify.
22313         (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
22314         Rewrite using the RHS code as discriminant.
22315         <NOP_EXPR>: Turn into CASE_CONVERT.
22316         <PLUS_EXPR>: Propagate the type of the first operand.
22317
22318 2009-05-19  Steve Ellcey  <sje@cup.hp.com>
22319
22320         * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
22321         (ia64_dconst_0_375): New.
22322         * config/ia64/ia64.c (ia64_override_options): Remove
22323         -minline-sqrt-min-latency warning.
22324         (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
22325         (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
22326         * config/ia64/ia64.md (*sqrt_approx): Remove.
22327         (sqrtsf2): Remove #if 0.
22328         (sqrtsf2_internal_thr): Rewrite and move to div.md.
22329         (sqrtdf): Remove assert.
22330         (sqrtdf2_internal_thr): Rewrite and move to div.md.
22331         (sqrtxf2): Remove #if 0.
22332         (sqrtxf2_internal_thr): Rewrite and move to div.md.
22333         * div.md (sqrt_approx_rf): New.
22334         (sqrtsf2_internal_thr): New implementation.
22335         (sqrtsf2_internal_lat): New.
22336         (sqrtdf2_internal_thr: New implementation.
22337         (sqrtxf2_internal): New implementation.
22338
22339 2009-05-19  Francois-Xavier Coudert  <fxcoudert@gmail.com>
22340             Hans-Peter Nilsson  <hp@axis.com>
22341
22342         * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
22343         (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
22344         (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
22345         (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
22346         (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
22347         (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
22348         (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
22349         (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
22350         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
22351         (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
22352         * c-common.c: ...from here.
22353
22354 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22355
22356         * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
22357
22358 2009-05-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22359
22360         * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
22361
22362 2009-05-19  Ben Elliston  <bje@au.ibm.com>
22363
22364         * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
22365         assignments with memcpy calls.
22366         (add_fdes): Likewise.
22367         (binary_search_unencoded_fdes): Likewise.
22368         (linear_search_fdes): Eliminate type puns.
22369
22370 2009-05-19  Richard Guenther  <rguenther@suse.de>
22371
22372         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
22373         not falsely claim to have propagated into all uses.
22374
22375 2009-05-19  Ben Elliston  <bje@au.ibm.com>
22376
22377         * doc/invoke.texi (C Dialect Options): Update OpenMP specification
22378         version to v3.0.
22379
22380 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
22381
22382         * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
22383         * config/sh/sh.c (sh_legitimate_address_p): Make static.
22384         (TARGET_LEGITIMATE_ADDRESS_P): New.
22385         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22386         * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
22387
22388 2009-05-18  Dodji Seketeli  <dodji@redhat.com>
22389
22390         PR debug/40109
22391         * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
22392         child of the containing namespace's DIE.
22393
22394 2009-05-18  Adam Nemet  <anemet@caviumnetworks.com>
22395
22396         * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
22397         *zero_extendhi_truncqi):  Move after the zero_extend patterns.
22398         (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
22399         extend patterns.
22400
22401 2009-05-18  H.J. Lu  <hongjiu.lu@intel.com>
22402
22403         PR target/39942
22404         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
22405         gen_align with gen_pad.
22406         (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
22407         #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
22408
22409         * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
22410         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
22411
22412         * config/i386/i386.md (align): Renamed to ...
22413         (pad): This.  Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
22414         ASM_OUTPUT_MAX_SKIP_PAD.
22415
22416 2009-05-18  Andreas Schwab  <schwab@linux-m68k.org>
22417
22418         * config.gcc: Fix variable syntax.
22419
22420         PR target/39531
22421         * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
22422         before calling exact_log2.
22423         (output_iorsi3): Likewise.
22424         (output_xorsi3): Likewise.
22425
22426 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
22427
22428         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
22429         for the none zero constant operand except for EQ and NE
22430         comprisons even when the first operand is R0.
22431
22432 2009-05-18  Andreas Krebbel  <krebbel1@de.ibm.com>
22433
22434         * config/s390/2064.md: Remove trailing whitespaces.
22435         * config/s390/2084.md: Likewise.
22436         * config/s390/constraints.md: Likewise.
22437         * config/s390/fixdfdi.h: Likewise.
22438         * config/s390/libgcc-glibc.ver: Likewise.
22439         * config/s390/s390-modes.def: Likewise.
22440         * config/s390/s390-protos.h: Likewise.
22441         * config/s390/s390.c: Likewise.
22442         * config/s390/s390.h: Likewise.
22443         * config/s390/s390.md: Likewise.
22444         * config/s390/tpf-unwind.h: Likewise.
22445
22446 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
22447
22448         * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
22449
22450 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
22451
22452         M68K TLS support.
22453         * configure.ac (m68k-*-*): Check if binutils support TLS.
22454         * configure: Regenerate.
22455         * config/m68k/predicates.md (symbolic_operand): Extend comment.
22456         * config/m68k/constraints.md (Cu): New constraint.
22457         * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
22458         (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
22459         (movsi): Handle TLS symbols.
22460         (addsi3_5200): Handle XTLS symbols, indent.
22461         * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
22462         (m68k_tls_reference_p): Declare.
22463         (m68k_legitimize_address): Declare.
22464         (m68k_unwrap_symbol): Declare.
22465         * config/m68k/m68k.opt (mxtls): New option.
22466         * config/m68k/m68k.c (ggc.h): Include.
22467         (m68k_output_dwarf_dtprel): Implement hook.
22468         (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
22469         (m68k_expand_prologue): Load GOT pointer when function needs it.
22470         (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
22471         (m68k_legitimate_constant_address_p): Same.
22472         (m68k_decompose_address): Handle TLS references.
22473         (m68k_get_gp): New static function.
22474         (enum m68k_reloc): New contants.
22475         (TLS_RELOC_P): New macro.
22476         (m68k_wrap_symbol): New static function.
22477         (m68k_unwrap_symbol): New function.
22478         (m68k_final_prescan_insn_1): New static function.
22479         (m68k_final_prescan_insn): New function.
22480         (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
22481         functions.
22482         (legitimize_pic_address): Handle TLS references..
22483         (m68k_tls_get_addr, m68k_get_tls_get_addr)
22484         (m68k_libcall_value_in_a0_p)
22485         (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
22486         (m68k_call_m68k_read_tp): Helper variables and functions for ...
22487         (m68k_legitimize_tls_address): Handle TLS references.
22488         (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
22489         New functions.
22490         (m68k_legitimize_address): Handle TLS symbols.
22491         (m68k_get_reloc_decoration): New static function.
22492         (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
22493         UNSPEC_RELOC32.
22494         (m68k_output_dwarf_dtprel): Implement hook.
22495         (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
22496         (m68k_libcall_value): Return result in A0 instead of D0 when asked by
22497         m68k_call_* routines.
22498         (sched_attr_op_type): Handle TLS symbols.
22499         (gt-m68k.h): Include.
22500         * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
22501         (LEGITIMATE_PIC_OPERAND_P): Support TLS.
22502
22503 2009-05-18  Martin Jambor  <mjambor@suse.cz>
22504
22505         * ipa-prop.c (ipa_check_stmt_modifications): Removed.
22506         (visit_store_addr_for_mod_analysis): New function.
22507         (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
22508         (determine_cst_member_ptr): Use gimple_assign_single_p.
22509         (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
22510         (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
22511         operands.  Don't check number of operands of a NOP_EXPR.
22512
22513 2009-05-18  Eric Fisher  <joefoxreal@gmail.com>
22514
22515         * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
22516
22517 2009-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22518
22519         PR c/40172
22520         * c-common.c (warn_logical_operator): Don't warn if one of
22521         expression isn't always true or false.
22522
22523 2009-05-17  Kai Tietz  <kai.tietz@onevision.com>
22524
22525         * config/i386/biarch32.h: New file.
22526         * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
22527
22528 2009-05-17  Adam Nemet  <anemet@caviumnetworks.com>
22529
22530         * config/mips/mips.md (*zero_extend<mode>_trunchi,
22531         *zero_extend<mode>_truncqi): Merge these into ...
22532         (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
22533         Name the pattern following this as *zero_extendhi_truncqi.
22534
22535 2009-05-16  Brad Lucier  <lucier@math.purdue.edu>
22536
22537         PR middle-end/39301
22538         * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
22539         * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
22540         (output_info): Make field HOST_WIDEST_INT.
22541         (print_statistics): Use HOST_WIDEST_INT_PRINT.
22542         (dump_bitmat_statistics): Same.
22543
22544 2009-05-16  Francois-Xavier Coudert  <fxcoudert@gmail.com>
22545
22546         * config.gcc (use_gcc_stdint):  Set to wrap.
22547         * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
22548         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
22549         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
22550         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
22551         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
22552         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
22553         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
22554         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
22555
22556 2009-05-16  Joseph Myers  <joseph@codesourcery.com>
22557
22558         * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
22559         tune_64.
22560         * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
22561         Move definitions earlier.
22562         (OPT_ARCH64, OPT_ARCH32): Define.
22563         (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
22564         and tune_64.
22565
22566 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
22567
22568         PR target/40153
22569         * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
22570         implies.
22571
22572 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
22573
22574         * arm.md (movdi2): Copy non-reg values to DImode registers.
22575
22576 2009-05-16  Jakub Jelinek  <jakub@redhat.com>
22577
22578         PR target/39942
22579         * final.c (label_to_max_skip): New function.
22580         (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
22581         CODE_LABEL_NUMBER <= max_labelno.
22582         * output.h (label_to_max_skip): New prototype.
22583         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
22584         (ix86_avoid_jump_mispredicts): ... this.  Don't define if
22585         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.  Update comment.
22586         Handle CODE_LABELs with >= 16 byte alignment or with
22587         max_skip == (1 << align) - 1.
22588         (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
22589         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
22590
22591         PR target/39942
22592         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
22593         .p2align 3 if MAX_SKIP is smaller than 7.
22594         * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
22595
22596 2009-05-15  Ian Lance Taylor  <iant@google.com>
22597
22598         * alias.c (struct alias_set_entry_d): Rename from struct
22599         alias_set_entry.  Change all uses.
22600         * except.c (struct call_site_record_d): Rename from struct
22601         call_site_record.  Change all uses.
22602         * except.h (struct eh_region_d): Rename from struct eh_region.
22603         Change all uses.
22604         * gcse.c (struct hash_table_d): Rename from struct hash_table.
22605         Change all uses.
22606         * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
22607         ivtype_map_elt.  Change all uses.
22608         (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
22609         Change all uses.
22610         (struct ifsese_d): Rename fromstruct ifsese.  Change all uses.
22611         * graphite.h (struct name_tree_d): Rename from struct name_tree.
22612         Change all uses.
22613         (struct sese_d): Rename from struct sese.  Change all uses.
22614         * omega.h (struct eqn_d): Rename from struct eqn.  Change all uses.
22615         (struct omega_pb_d): Rename from struct omega_pb.  Change all uses.
22616         * optabs.h (struct optab_d): Rename from struct optab.  Change all
22617         uses.
22618         (struct convert_optab_d): Rename from struct convert_optab.
22619         Change all uses.
22620         * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
22621         ipa_opt_pass.  Change all uses.
22622         * tree-predcom.c (struct dref_d): Rename from struct dref.  Change
22623         all uses.
22624
22625         * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
22626         defined as a typedef.
22627         (grokdeclarator): If -Wc++-compat, warn if a typedef is already
22628         defined as a tag.
22629
22630 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22631
22632         PR 16302
22633         * fold-const.c (make_range,build_range_check,merge_ranges): Move
22634         declaration to...
22635         (merge_ranges): Returns bool.
22636         * tree.h (make_range): .. to here.
22637         (build_range_check): Likewise.
22638         (merge_ranges): Likewise. Renamed from merge_ranges.
22639         * c-typeck.c (parser_build_binary_op): Update calls to
22640         warn_logical_operator.
22641         * c-common.c (warn_logical_operator): Add new warning.
22642         * c-common.h (warn_logical_operator): Update declaration.
22643
22644 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22645
22646         * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
22647
22648 2009-05-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22649
22650         * doc/install.texi: Document MPC requirements, flags etc.
22651
22652         * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
22653         (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
22654         Evaluate constant arguments.
22655         (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
22656         (fold_builtin_1): Likewise, also evaluate constant arguments.
22657         Remove superfluous break.
22658         (do_mpc_ckconv): New.
22659         * real.h: Include mpc.h.
22660         * toplev.c (print_version): Output MPC version info if available.
22661
22662 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
22663
22664         * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
22665
22666 2009-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22667
22668         * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
22669         only once.
22670
22671 2009-05-15  Jan Hubicka  <jh@suse.cz>
22672
22673         * doc/invoke.texi (max-early-inliner-iterations): New flag.
22674         * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
22675         (try_inline): Fix return value.
22676         (cgraph_decide_inlining_incrementally): Honor new value.
22677         (cgraph_early_inlining): Handle indirect inlining.
22678         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
22679
22680 2009-05-15  Jan Hubicka  <jh@suse.cz>
22681
22682         * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
22683         * cgraphunit.c (cgraph_finalize_function): Set it.
22684         (cgraph_expand_function): Use it.
22685
22686 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
22687
22688         * real.c (encode_ieee_half): Define.
22689         (decode_ieee_half): Define.
22690         (ieee_half_format): Define.
22691         (arm_half_format): Define.
22692         * real.h (ieee_half_format): Declare.
22693         (arm_half_format): Declare.
22694
22695 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
22696
22697         * optabs.c (prepare_float_lib_cmp):  Test that the comparison,
22698         swapped, and reversed optabs exist before trying to use them.
22699
22700 2009-05-15  Paul Brook  <paul@codesourcery.com>
22701             Sandra Loosemore  <sandra@codesourcery.com>
22702
22703         * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
22704         loads.  Allow PRE_DEC.
22705         (output_move_neon): Handle PRE_DEC.
22706         (arm_print_operand): Add 'A' for neon structure loads.
22707         * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
22708         * config/arm/neon.md (neon_mov): Update comment.
22709         * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
22710         calls.
22711         (Um): New constraint.
22712
22713 2009-05-15  Jan Hubicka  <jh@suse.cz>
22714
22715         Revert the following patch until testsuite fallout is fixed:
22716         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
22717         * cgraph.h (struct inline_summary): New filed self_wize,
22718         size_inlining_benefit, self_time and time_inlining_benefit.
22719         (struct cgraph_global_info): Replace insns by time ans size fields.
22720         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
22721         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
22722         (ipcp_update_callgraph): Do not touch function bodies.
22723         * ipa-inline.c: Include except.h
22724         (MAX_TIME): New constant.
22725         (overall_insns): Remove
22726         (overall_size, max_benefit): New static variables.
22727         (cgraph_estimate_time_after_inlining): New function.
22728         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
22729         (cgraph_clone_inlined_nodes): Update size.
22730         (cgraph_mark_inline_edge): Update size.
22731         (cgraph_estimate_growth): Use size info.
22732         (cgraph_check_inline_limits): Check size.
22733         (cgraph_default_inline_p): Likewise.
22734         (cgraph_edge_badness): Compute badness based on benefit and size cost.
22735         (cgraph_decide_recursive_inlining): Check size.
22736         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
22737         and times.
22738         (cgraph_decide_inlining): Likewise.
22739         (cgraph_decide_inlining_incrementally): Likewise; honor
22740         PARAM_EARLY_INLINING_INSNS.
22741         (likely_eliminated_by_inlining_p): New predicate.
22742         (estimate_function_body_sizes): New function.
22743         (compute_inline_parameters): Use it.
22744         * except.c (must_not_throw_labels): New function.
22745         * except.h (must_not_throw_labels): Declare.
22746         * tree-inline.c (init_inline_once): Kill inlining_weigths
22747         * tree-ssa-structalias.c: Avoid uninitialized warning.
22748         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
22749         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
22750         (PARAM_INLINE_CALL_COST): Remove.
22751         (PARAM_EARLY_INLINING_INSNS): New.
22752
22753 2009-05-15  Richard Guenther  <rguenther@suse.de>
22754
22755         * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
22756         not TODO_update_ssa.
22757
22758 2009-05-15  Richard Guenther  <rguenther@suse.de>
22759
22760         PR tree-optimization/39999
22761         * gimple.h (gimple_expr_type): Use the expression type looking
22762         through useless conversions.
22763         * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
22764         (vn_nary_op_insert_stmt): Likewise.
22765         (simplify_binary_expression): Likewise.
22766
22767 2009-05-15  Richard Guenther  <rguenther@suse.de>
22768
22769         * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
22770         New options, enabled by default.
22771         * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
22772         Document.
22773         * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
22774         * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
22775         * tree-ssa-structalias.c (gate_tree_pta): New function.
22776         (pass_build_alias): Use it.
22777
22778 2009-05-15  Joseph Myers  <joseph@codesourcery.com>
22779
22780         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
22781         recurse on an invariant address if a conversion from a pointer
22782         type to a wider integer type is involved.
22783
22784 2009-05-15  Jan Hubicka  <jh@suse.cz>
22785
22786         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
22787         * cgraph.h (struct inline_summary): New filed self_wize,
22788         size_inlining_benefit, self_time and time_inlining_benefit.
22789         (struct cgraph_global_info): Replace insns by time ans size fields.
22790         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
22791         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
22792         (ipcp_update_callgraph): Do not touch function bodies.
22793         * ipa-inline.c: Include except.h
22794         (MAX_TIME): New constant.
22795         (overall_insns): Remove
22796         (overall_size, max_benefit): New static variables.
22797         (cgraph_estimate_time_after_inlining): New function.
22798         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
22799         (cgraph_clone_inlined_nodes): Update size.
22800         (cgraph_mark_inline_edge): Update size.
22801         (cgraph_estimate_growth): Use size info.
22802         (cgraph_check_inline_limits): Check size.
22803         (cgraph_default_inline_p): Likewise.
22804         (cgraph_edge_badness): Compute badness based on benefit and size cost.
22805         (cgraph_decide_recursive_inlining): Check size.
22806         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
22807         and times.
22808         (cgraph_decide_inlining): Likewise.
22809         (cgraph_decide_inlining_incrementally): Likewise; honor
22810         PARAM_EARLY_INLINING_INSNS.
22811         (likely_eliminated_by_inlining_p): New predicate.
22812         (estimate_function_body_sizes): New function.
22813         (compute_inline_parameters): Use it.
22814         * except.c (must_not_throw_labels): New function.
22815         * except.h (must_not_throw_labels): Declare.
22816         * tree-inline.c (init_inline_once): Kill inlining_weigths
22817         * tree-ssa-structalias.c: Avoid uninitialized warning.
22818         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
22819         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
22820         (PARAM_INLINE_CALL_COST): Remove.
22821         (PARAM_EARLY_INLINING_INSNS): New.
22822         doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
22823         (inline-call-cost): Remove.
22824         (early-inlining-insns): New.
22825
22826 2009-05-15  Eric Botcazou  <ebotcazou@adacore.com>
22827
22828         * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters.  Use them
22829         for bounds.
22830         (print_int_cst_bounds_in_octal_p): Likewise.
22831         (dbxout_type): Adjust calls to above functions.  Be prepared to deal
22832         with subtypes.
22833         * dwarf2out.c (base_type_die): Likewise.
22834         (is_subrange_type): Delete.
22835         (subrange_type_die): Add LOW and HIGH parameters.  Use them for bounds.
22836         (modified_type_die): Call subrange_type_for_debug_p on subtypes.
22837         * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
22838         if the destination type is boolean.
22839         (build_range_check): Do not special-case subtypes.
22840         (fold_sign_changed_comparison): Likewise.
22841         (fold_unary): Likewise.
22842         * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
22843         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
22844         * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
22845         * tree.c (subrange_type_for_debug_p): New predicate based on the
22846         former is_subrange_type.
22847         * tree.h (subrange_type_for_debug_p): Declare.
22848         * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
22849         (convert_affine_scev): Remove call to above function.
22850         (chrec_convert_aggressive): Likewise.
22851         * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
22852         false for conversions involving subtypes.
22853         * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
22854         (vrp_val_min): Likewise.
22855         (needs_overflow_infinity): Likewise.
22856         (extract_range_from_unary_expr): Likewise.
22857
22858 2009-05-15  Paolo Bonzini  <bonzini@gnu.org>
22859
22860         * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
22861         * config/frv/frv.c: Likewise.
22862         * config/s390/s390.c: Likewise.
22863         * config/sparc/sparc.h: Likewise.
22864         * config/i386/i386.h: Likewise.
22865         * config/i386/i386.c: Likewise.
22866         * config/crx/crx.c: Likewise.
22867         * config/m68hc11/m68hc11.h: Likewise.
22868         * config/iq2000/iq2000.c: Likewise.
22869         * config/mn10300/mn10300.h: Likewise.
22870         * config/mn10300/mn10300.c: Likewise.
22871         * config/m68k/m68k.c: Likewise.
22872         * config/rs6000/rs6000.c: Likewise.
22873         * config/rs6000/xcoff.h: Likewise.
22874         * config/rs6000/linux64.h: Likewise.
22875         * config/rs6000/sysv4.h: Likewise.
22876         * config/score/score3.c: Likewise.
22877         * config/score/score7.c: Likewise.
22878         * config/score/score.c: Likewise.
22879         * config/arm/arm.md: Likewise.
22880         * config/mips/mips.c: Likewise.
22881         * config/mips/mips.md: Likewise.
22882         * config/bfin/bfin.h: Likewise.
22883         * config/pa/pa.c: Likewise.
22884         * config/pa/constraints.md: Likewise.
22885
22886         * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
22887         * config/pdp11/pdp11.c (legitimate_address_p): Delete.
22888         * config/pdp11/pdp11.h: Use memory_address_p instead.
22889
22890 2009-05-14  Ian Lance Taylor  <iant@google.com>
22891
22892         * passes.c (finish_optimization_passes): Change i to int.
22893         * plugin.c (plugins_active_p): Change event to int.
22894         (dump_active_plugins): Likewise.
22895         * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
22896         Add cast.
22897         * tree.c (tree_range_check_failed): Change c to unsigned int.
22898         (omp_clause_range_check_failed): Likewise.
22899         (build_common_builtin_nodes): Change mode to int.  Add cast.
22900         * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
22901         (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
22902
22903         * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
22904         ++ or -- with a variable of enum type.
22905
22906 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
22907
22908         PR driver/40144
22909         * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
22910
22911 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
22912
22913         * store-motion.c: Do not include params.h
22914         * Makefile.in: Fix dependencies for various files.
22915
22916 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
22917
22918         * auto-inc-dec.c: Fix pass description, remove apparent
22919         accidental duplication.
22920
22921 2009-05-14  H.J. Lu  <hongjiu.lu@intel.com>
22922
22923         PR middle-end/40147
22924         * ipa-utils.h (memory_identifier_string): Moved to ...
22925         * tree.h (memory_identifier_string): Here.  Add GTY(()).
22926
22927 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
22928
22929         * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
22930         in the former documentation of...
22931         (GO_IF_LEGITIMATE_ADDRESS): ... this.
22932         * ira-conflicts.c (get_dup_num): Use address_operand.
22933         * targhooks.c (default_legitimate_address_p): New.
22934         * targhooks.h (default_legitimate_address_p): New.
22935         * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
22936         Call hook.
22937         * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
22938         * target.h (struct target): Add legitimate_address_p.
22939         * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
22940         (TARGET_INITIALIZER): Include it.
22941
22942         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22943         * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
22944         * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
22945         (TARGET_LEGITIMATE_ADDRESS_P): New.
22946
22947         * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22948         (REG_OK_STRICT_P): Delete.
22949         * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
22950         (frv_legitimate_address_p_1): ... this.
22951         * config/frv/frv.c (frv_legitimate_address_p): Forward to...
22952         (frv_legitimate_address_p_1): ... the renamed old
22953         frv_legitimate_address_p.
22954         * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
22955         (TARGET_LEGITIMATE_ADDRESS_P): New.
22956
22957         * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22958         * config/s390/s390-protos.h (legitimate_address_p): Remove.
22959         * config/s390/s390.c (legitimate_address_p): Rename to...
22960         (s390_legitimate_address_p): ... this, make static.
22961         (legitimize_address): Adjust call.
22962         (TARGET_LEGITIMATE_ADDRESS_P): New.
22963         * config/s390/constraints.md ("e"): Call strict_memory_address_p.
22964
22965         * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22966         * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
22967         * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
22968         (TARGET_LEGITIMATE_ADDRESS_P): New.
22969
22970         * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22971         * config/spu/spu-protos.h (spu_legitimate_address): Remove.
22972         * config/spu/spu.c (spu_legitimate_address): Rename to...
22973         (spu_legitimate_address_p): ... this, make static.
22974         (TARGET_LEGITIMATE_ADDRESS_P): New.
22975
22976         * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22977         * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
22978         * config/sparc/sparc.c (legitimate_address_p): Rename to...
22979         (sparc_legitimate_address_p): ... this, make static and return bool.
22980         (legitimize_address): Adjust call.
22981         (TARGET_LEGITIMATE_ADDRESS_P): New.
22982
22983         * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22984         * config/i386/i386-protos.h (legitimate_address_p): Remove.
22985         * config/i386/i386.c (legitimate_address_p): Rename to...
22986         (ix86_legitimate_address_p): ... this, make static.
22987         (constant_address_p): Move after it, adjust call.
22988         (TARGET_LEGITIMATE_ADDRESS_P): New.
22989
22990         * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22991         * config/avr/avr-protos.h (legitimate_address_p): Remove.
22992         * config/avr/avr.c (legitimate_address_p): Rename to...
22993         (avr_legitimate_address_p): ... this, make static.
22994         (legitimize_address): Adjust call.
22995         (TARGET_LEGITIMATE_ADDRESS_P): New.
22996
22997         * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22998         * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
22999         * config/crx/crx.c (crx_legitimate_address_p): Make static.
23000         (TARGET_LEGITIMATE_ADDRESS_P): New.
23001
23002         * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23003         * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
23004         * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
23005         (TARGET_LEGITIMATE_ADDRESS_P): New.
23006
23007         * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23008         * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
23009         Remove.
23010         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
23011         Make static.
23012         (TARGET_LEGITIMATE_ADDRESS_P): New.
23013
23014         * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23015         * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
23016         Remove.
23017         * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
23018         Rename to...
23019         (m68hc11_legitimate_address_p): ... this, make static.
23020         (go_if_legitimate_address_internal): Rename to...
23021         (m68hc11_legitimate_address_p_1): ... this.
23022         (legitimize_address): Adjust call.
23023         (TARGET_LEGITIMATE_ADDRESS_P): New.
23024
23025         * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23026         * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
23027         * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
23028         (TARGET_LEGITIMATE_ADDRESS_P): New.
23029
23030         * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23031         * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
23032         * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
23033         (mn10300_legitimate_address_p): ... this, make static.
23034         (TARGET_LEGITIMATE_ADDRESS_P): New.
23035
23036         * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23037         * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
23038         * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
23039         (TARGET_LEGITIMATE_ADDRESS_P): New.
23040
23041         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23042         (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
23043         (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
23044         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23045         * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
23046         * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
23047         (rs6000_legitimate_address_p): ... this, make static.
23048         (TARGET_LEGITIMATE_ADDRESS_P): New.
23049         (REG_MODE_OK_FOR_BASE_P): Delete.
23050         (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
23051
23052         * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23053         * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
23054         Delete.
23055         * config/picochip/picochip.c (picochip_legitimate_address_p): Make
23056         static, adjust types.
23057         (TARGET_LEGITIMATE_ADDRESS_P): New.
23058
23059         * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23060         * config/score/score.c (score_address_p): Rename to...
23061         (score_legitimate_address_p): ... this.
23062         (TARGET_LEGITIMATE_ADDRESS_P): New.
23063         * config/score/score3.c (score3_address_p): Rename to...
23064         (score3_legitimate_address_p): ... this.
23065         * config/score/score7.c (score7_address_p): Rename to...
23066         (score7_legitimate_address_p): ... this.
23067
23068         * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
23069         THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
23070         GO_IF_LEGITIMATE_ADDRESS): Delete.
23071         * config/arm/arm-protos.h (thumb1_legitimate_address_p,
23072         thumb2_legitimate_address_p): Delete.
23073         (arm_legitimate_address_p): Rename to...
23074         (arm_legitimate_address_outer_p): ... this.
23075         * config/arm/constraints.md ("Uq"): Adjust call.
23076         * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
23077         * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
23078         to...
23079         (arm_legitimate_address_outer_p): ... this.
23080         (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
23081         static.
23082         (TARGET_LEGITIMATE_ADDRESS_P): New.
23083
23084         * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23085         * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
23086         * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
23087         (TARGET_LEGITIMATE_ADDRESS_P): New.
23088
23089         * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23090         * config/vax/vax-protos.h (legitimate_address_p): Remove.
23091         * config/vax/vax.c (legitimate_address_p): Rename to...
23092         (vax_legitimate_address_p): ... this, make static.
23093         (TARGET_LEGITIMATE_ADDRESS_P): New.
23094
23095         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23096         * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
23097         * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
23098         (TARGET_LEGITIMATE_ADDRESS_P): New.
23099
23100         * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23101         * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
23102         * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
23103         (mmix_legitimate_address_p): ... this, make static.
23104         (TARGET_LEGITIMATE_ADDRESS_P): New.
23105
23106         * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23107         * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
23108         * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
23109         (TARGET_LEGITIMATE_ADDRESS_P): New.
23110
23111 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
23112
23113         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
23114         of MODE_COMPLEX_INT.
23115
23116 2009-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
23117
23118         * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
23119         LCT_NORMAL in function call.
23120         * mips-tdump.c (print_file_desc): Add cast to enum type.
23121         * mips-tfile.c (add_ext_symbol): Add casts to enum types.
23122         (mark_stabs): Add casts to enum types.
23123         (parse_stabs_common): Add casts to enum types.
23124
23125 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
23126
23127         * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
23128         Check for invalid values of LETTER.
23129
23130 2009-05-13  Taras Glek  <tglek@mozilla.com>
23131
23132         * attribs.c (register_attribute): moved out attribute registration
23133         into register_attribute.
23134         * doc/plugins.texi: Documented register_attribute and
23135         PLUGIN_ATTRIBUTES.
23136         * gcc-plugin.h: Added forward decl for register_attribute.
23137         * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
23138         * plugin.c (register_callback, invoke_plugin_callbacks): Added
23139         PLUGIN_ATTRIBUTES boilerplate.
23140
23141 2009-05-14  Dave Korn  <dave.korn.cygwin@gmail.com>
23142
23143         * config/i386/msformat-c.c (ms_printf_length_specs):  Use enumeration
23144         values even in sentinel and empty entries.
23145         (ms_printf_flag_specs):  Likewise.
23146         (ms_scanf_flag_specs):  Likewise.
23147         (ms_strftime_flag_specs):  Likewise.
23148         (ms_print_char_table):  Likewise.
23149         (ms_scan_char_table):  Likewise.
23150         (ms_time_char_table):  Likewise.
23151
23152 2009-05-13  Doug Kwan  <dougkwan@google.com>
23153
23154         * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
23155
23156 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
23157
23158         * config/mips/mips.md (store): Add attributes for QI and HI.
23159         Update comment.
23160         (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
23161         (truncdi<mode>2): ... this new pattern.
23162
23163 2009-05-13  Brad Hards  <bradh@kde.org>
23164
23165         * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
23166
23167 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
23168             Ben Elliston <bje@au.ibm.com>
23169
23170         PR middle-end/40035
23171         * dse.c (check_mem_read_rtx): Guard against width == -1.
23172
23173 2009-05-13  Michael Matz  <matz@suse.de>
23174
23175         PR middle-end/39976
23176         * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
23177         (trivially_conflicts_p): New function.
23178         (insert_backedge_copies): Use it.
23179
23180 2009-05-13  Janis Johnson  <janis187@us.ibm.com>
23181
23182         * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
23183         (handle_stdc_pragma): Use new enum constant names.
23184         (handle_pragma_float_const_decimal64): Ditto.
23185
23186 2009-05-13  Ian Lance Taylor  <iant@google.com>
23187
23188         * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
23189         tree.def.
23190
23191 2009-05-13  Nathan Sidwell  <nathan@codesourcery.com>
23192
23193         * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
23194         * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
23195         multilibs.
23196         * config/m68k/m68k.h (FL_UCLINUX): Define.
23197
23198 2009-05-13  Jan Hubicka  <jh@suse.cz>
23199
23200         * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
23201
23202 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
23203
23204         * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
23205         unless -fschedule-insns is specified.
23206
23207 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
23208
23209         PR target/39561
23210         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
23211         TARGET_EXPAND_CBRANCHDI4.
23212         * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
23213         * config/sh/sh.opt (mexpand-cbranchdi): Remove.
23214         (cmpeqdi): Fix comment.
23215
23216 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
23217
23218         * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
23219         (sh_legitimate_address_p): Likewise.
23220         * config/sh/sh.c (sh_legitimate_index_p): New.
23221         (sh_legitimate_address_p): Likewise.
23222         * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
23223         (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
23224         (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
23225         (MAYBE_BASE_REGISTER_RTX_P): New macro.
23226         (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
23227         (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
23228         (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
23229         (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
23230         (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
23231
23232 2009-05-12  Jan Hubicka  <jh@suse.cz>
23233
23234         * tree-inline.c (estimate_operator_cost): Add operands;
23235         when division happens by constant, it is cheap.
23236         (estimate_num_insns): Loads and stores are not having cost of 0;
23237         EH magic stuff is cheap; when computing runtime cost of switch,
23238         use log2 base of amount of its cases; builtin_expect has cost of 0;
23239         compute cost for moving return value of call.
23240         (init_inline_once): Initialize time_based flags.
23241         * tree-inline.h (eni_weights_d): Add time_based flag.
23242
23243 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
23244
23245         * df-core.c: Update head documentation.
23246
23247 2009-05-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
23248
23249         PR bootstrap/40118
23250         * rs6000.c (rs6000_generate_compare): Use op1b instead of
23251         shadowing exisiting variable op1.
23252
23253 2009-05-12  Uros Bizjak  <ubizjak@gmail.com>
23254
23255         PR target/37179
23256         * config/i386/driver-i386.c (processor_signatures): New enum.
23257         (SIG_GEODE): Move from vendor_signatures to processor_signatures.
23258         (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
23259         processor signature to detect geode processor.
23260
23261 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
23262
23263         Revert:
23264
23265         2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
23266
23267         * optabs.c (prepare_cmp_insn): Temporarily disable test that
23268         causes spurious differences between trunk and cond-optab branch.
23269
23270 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
23271
23272         * dojump.c (compare_from_rtx): Delete.
23273         * expmed.c (emit_store_flag): Only try cstore_optab.  Canonicalize
23274         any MODE_CC mode to the cstorecc4 pattern.  Use prepare_operand, fail
23275         if the comparison does not satisfy the predicate; test predicates for
23276         operands 2 and 3 of a cstore pattern.  Don't try cstore optab
23277         further if one existing pattern fails.
23278         * expr.h (compare_from_rtx): Delete.
23279         (prepare_operand): Declare it.
23280         * optabs.c: Change "lib call" to "libcall" throughout.
23281         (bcc_gen_fctn, setcc_gen_code, trap_rtx,
23282         HAVE_conditional_trap, emit_cmp_insn): Delete.
23283         (can_compare_p): Delete cmp_optab case.
23284         (prepare_float_lib_cmp): Return an rtx and a machine mode.
23285         Accept other parameters by value.
23286         (prepare_operand): Make non-static.
23287         (prepare_cmp_insn): Return an rtx and a machine mode.  Accept
23288         other parameters by value.  Try to widen operands here based on
23289         an optab_methods argument and looking at cbranch_optab.
23290         (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
23291         loop.  Use cbranch_optab directly.
23292         (emit_cmp_and_jump_insns): Fix comment.  Adjust call to
23293         prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
23294         assertion.
23295         (emit_conditional_move, emit_conditional_add): Inline what's needed
23296         of compare_from_rtx, using new prepare_cmp_insn for the rest.
23297         (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
23298         with COMPARE.  Move cmov_optab and cstore_optab above
23299         with cbranch_optab, move cmp_optab down with ucmp_optab,
23300         remove tst_otpab.  Do not initialize trap_rtx.
23301         (gen_cond_trap): Do it here.  Use ctrap_optab.  Test predicate
23302         for trap code.  Do not check HAVE_conditional_trap.  Use
23303         prepare_cmp_insn.  Accept no predicate for operand 3.
23304         * optabs.h (OTI_cmp): Mark as used only for libcalls.
23305         (OTI_ctrap, ctrap_optab): New.
23306         (tst_optab): Delete.
23307         (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
23308         * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
23309         with lookup of ctrap_optab.
23310         * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
23311         Delete.
23312         (ctrap_optab): New.
23313
23314         * combine.c (combine_simplify_rtx, simplify_set): Do not
23315         special case comparing against zero for cc0 machines.
23316         * simplify-rtx.c (simplify_binary_operation_1): Never remove
23317         COMPARE on cc0 machines.
23318         (simplify_relational_operation): Return a new expression when
23319         a COMPARE could be removed.
23320         * final.c (final_scan_insn): Compare cc_status values
23321         against LHS of a (compare FOO (const_int 0)) cc0 source.
23322         Also check if cc_status.value is the full compare.
23323
23324         * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
23325         (cstoreMM4): Document.
23326         (conditional_trap): Document ctrapMM4 instead.
23327         (sync_compare_and_swapMM): Refer to cbranchcc4.
23328         (Dependent Patterns): Eliminate obsolete information referring to
23329         the old jump optimization phase.
23330         (Canonicalization): Include cbranchcc4 case, omit canonicalization
23331         of compares with 0 on cc0 machines.
23332         (Jump Patterns): Refer to MODE_CC jump patterns preferably,
23333         avoiding references to cc0.  Remove text about storing operands
23334         in cmpMM.
23335         * doc/tm.texi (Condition Codes): Include blurb on different
23336         condition code representations, separate into subsections for
23337         CC0, MODE_CC and conditional execution.
23338
23339         * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
23340         alpha_emit_setcc): Accept operands and a machine mode.
23341         * config/alpha/alpha.c (alpha_emit_conditional_branch):
23342         Get code/op0/op1 from operands, use machine mode argument
23343         instead of alpha_compare.fp_p.  Emit the branch here.
23344         (alpha_emit_setcc): Likewise, and return boolean.
23345         (alpha_emit_conditional_move): Likewise.  Assert that
23346         cmp_op_mode == cmp_mode, and simplify accordingly.
23347         * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
23348         * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
23349         (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
23350         Delete.
23351         (stack probe test): Use cbranchdi4.
23352         * config/alpha/predicates.md (alpha_cbranch_operator): New.
23353
23354         * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
23355         * config/arc/arc.h (movsicc, movsfcc): Use it.
23356         (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
23357         (cbranchsi4, cstoresi4): New.
23358         (cmpsi, bCC and sCC expanders): Remove.
23359
23360         * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
23361         * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
23362         * config/arm/predicates.md (arm_comparison_operator): Only include
23363         floating-point operators if there is a hardware floating-point unit.
23364         * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
23365         deferring to cbranch_cc and cstore_cc respectively.
23366         (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
23367         cbranch_cc, cstore_cc): New.
23368         (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
23369         arm_compare_op1.
23370         (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
23371
23372         * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
23373         * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
23374         as an argument.
23375         (adjust_insn_length): Adjust calls.
23376         (avr_reorg): Handle (compare (foo) (const_int 0)).
23377         * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
23378         (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
23379         (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
23380         (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
23381         (bCC): Remove.
23382         (cbranchqi4, cbranchhi4, cbranchsi4): New.
23383         (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
23384
23385         * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
23386         (cbranchsi4, cstorebi4, cstoresi4): New.
23387         (movbisi): This insn is duplicate, split it to zero_extend.
23388         * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
23389         (bfin_gen_compare): Do not use them.  Emit VOIDmode SET, not BImode.
23390         (bfin_optimize_loop): Use cbranch expander.
23391         * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
23392         * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
23393         (bfin_bimode_comparison_operator): ... this.
23394         (bfin_direct_comparison_operator): New.
23395
23396         * config/cris/cris.c (cris_normal_notice_update_cc): Look
23397         inside (compare FOO (const_int 0)).
23398         (cris_rtx_costs): Handle ZERO_EXTRACT.
23399         * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
23400         (*tstdi_non_v32): Fold in *cmpdi_non_v32.
23401         (*tstdi_v32): Delete.
23402         (*cmpdi_non_v32): Add M alternative for operand 1.
23403         (cmpsi, cmp<mode>): Make private.
23404         (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
23405         with COMPARE.
23406         (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
23407
23408         * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
23409         (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
23410         (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
23411         (cc_reg_operand): New.
23412         (any_cond): Delete.
23413         * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
23414         crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
23415         * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
23416         * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
23417         crx_expand_scond): Delete.
23418
23419         * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
23420         (cbranchsi4): New.
23421         * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
23422         * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
23423
23424         * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
23425         cstoresi4, cstoresf4, cstoredf4): New.
23426         (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
23427         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
23428         Receive the entire operands array.
23429         * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
23430         * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
23431         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
23432         Get test/op0/op1 from the operands array.
23433         (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
23434
23435         * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
23436         (h8300_expand_store): New.
23437         * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
23438         (const_int 0)).
23439         (h8300_expand_branch): Emit compare here.  Adjust for new arguments.
23440         (h8300_expand_store): New.
23441         * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
23442         or do not try to produce (set (cc0) REG).
23443         (peepholes): Wrap arguments with COMPARE.  Add a peephole to
23444         change a compare into a move to a scratch register.  Disable some
23445         peepholes when comparing with zero.
23446         (tstsi, tsthi, tstsi, cmpqi): Make private.
23447         (cmphi): Delete.
23448         (bCC, sCC): Delete.
23449         (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
23450         cstoresi4): New.
23451
23452         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
23453         ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
23454         (ix86_emit_i387_log1p): Use gen_cbranchxf4.
23455         (ix86_emit_i387_log1p): Use cbranchxf2.
23456         (ix86_expand_setcc): Return void.
23457         * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
23458         * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
23459         cmp<MODEF>, cmpcc): Remove.
23460         (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
23461         cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
23462         cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
23463         (sCC and bCC expanders): Remove.
23464         (stack_protect_test): Use cbranchcc4.
23465
23466         * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
23467         Delete.
23468         (ia64_expand_compare): Accept three rtx by reference and return void.
23469         * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
23470         (ia64_expand_compare): Replace op0/op1 with *op0/*op1.  Get code
23471         from *expr.  Update *expr with the BImode comparison to do.
23472         * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
23473         cmptf, bCC, sCC, conditional_trap): Delete.
23474         (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
23475         cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
23476         cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
23477         ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
23478         * config/ia64/predicates.md (ia64_cbranch_operator): New.
23479
23480         * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
23481         type of last argument.
23482         * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
23483         (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
23484         use machine mode argument instead of branch_type.  Remove dead
23485         code for floating-point comparisons.
23486         * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
23487         * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
23488         Remove.
23489         (cbranchsi4, cstoresi4): New.
23490         * config/iq2000/predicates.md (reg_or_const_operand): New.
23491
23492         * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
23493         * config/m32c/m32c.md (any_cond, gl_cond): Delete.
23494         (b<code>_op): Rewrite to...
23495         (bcc_op): ... this, using match_operator.
23496         (s<code>_op): Rewrite to...
23497         (scc_op): ... this, using match_operator.
23498         (s<code>_24_op): Rewrite to...
23499         (scc_op_24): ... this, using match_operator.
23500         (s<code>_<mode>): Rewrite to...
23501         (cstore<mode>4): ... this, using match_operator.
23502         (s<code>_<mode>_24): Rewrite to...
23503         (cstore<mode>4_24): ... this, using match_operator.
23504         * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
23505         m32c_unpend_compare, m32c_expand_scc): Delete.
23506         * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
23507         m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
23508         (m32c_expand_movcc): Change NE to EQ if necessary.
23509         (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
23510
23511         * config/m32r/m32r-protos.h (gen_cond_store): New.
23512         * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
23513         (gen_cond_store): New, from sCC patterns.
23514         (m32r_expand_block_move): Use cbranchsi4.
23515         * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
23516         * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
23517         (cbranchsi4, cstoresi4): New.
23518
23519         * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
23520         Delete.
23521         (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
23522         (m68hc11_notice_update_cc): Look into a compare with 0.
23523         * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
23524         Delete.
23525         * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
23526         cmphi, cmpqi, bCC): Delete.
23527         (cbranchsi4, cbranchhi4, cbranchqi4): New.
23528         (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
23529         bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
23530         sets with COMPARE.
23531
23532         * config/m68k/predicates.md (m68k_cstore_comparison_operator,
23533         const0_operand, const1_operand, m68k_subword_comparison_operand): New.
23534         * config/m68k/constraints.md (H): New.
23535         * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
23536         the define_insn below.
23537         (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
23538         (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
23539         *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
23540         patterns): Wrap RHS with COMPARE.
23541         (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
23542         (*cmpdi_internal): Name this pattern.
23543         (cmpdi): Change to define_insn.
23544         (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
23545         cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
23546         (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
23547         predicate.
23548         (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
23549         sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
23550         (conditional_trap): Change to...
23551         (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
23552         (*conditional_trap): Use the ordered_comparison_operator and
23553         const1_operand predicates.
23554         * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
23555         (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
23556         (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
23557         * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
23558
23559         * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
23560         mcore_modify_comparison, mcore_gen_compare_reg): Remove.
23561         (mcore_gen_compare): New.
23562         * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
23563         (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
23564         (mcore_gen_compare): ... this.
23565         * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
23566         (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
23567         (stack probe pattern): Use cbranchsi4.
23568
23569         * config/mips/predicates.md (mips_cstore_operator): New.
23570         * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
23571         * config/mips/mips.md (any_cond): Delete.
23572         (conditional_trap): Rename to ctrap<GPR:mode>4.  Adjust predicates,
23573         always succeed.
23574         (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
23575         fixuns_truncsfdi2): Use cbranch patterns.
23576         (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
23577         (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
23578         Adjust call to mips_expand_conditional_branch.
23579         (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
23580         cstore<GPR:mode>4.
23581         * config/mips/mips-protos.h (mips_expand_conditional_branch,
23582         mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
23583         * config/mips/mips.c (cmp_operands): Delete.
23584         (mips_emit_compare): Get comparison operands from *op0/*op1.
23585         (mips_expand_scc): Get code/op0/op1/target from operands.  Assert
23586         that it succeeds.  Use op0/op1 instead of cmp_operands.
23587         (mips_expand_conditional_branch, mips_expand_conditional_move,
23588         mips_expand_conditional_trap): Likewise.
23589         (mips_block_move_loop): Use cbranch patterns.
23590         * config/mips/mips.h (cmp_operands): Delete.
23591
23592         * config/mmix/mmix.c (mmix_valid_comparison): Delete.
23593         (mmix_gen_compare_reg): Just return a register in the right CC mode.
23594         * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
23595         * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
23596         (*cmpcc_folded): Rename to...
23597         (*cmpdi_folded): this.
23598         (*cmpcc): Rename to...
23599         (*cmps): ... this.
23600         (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
23601         (bCC): Remove.
23602         (cbranchdi4): New.
23603         (cbranchdf4): New.  Handle invalid comparisons here.
23604         * config/mmix/predicates.md (float_comparison_operator): New.
23605
23606         * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
23607         zero_extract to be cheap in (compare (zero_extract) (const_int 0).
23608         * config/mn10300/mn10300.md (tst): Delete.
23609         (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
23610         Name these patterns and wrap RHS in a compare.
23611         (*cmpsi): Make this pattern private.  Include tst.
23612         (*cmpsf): Make this pattern private.
23613         (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
23614         (compare with zero peepholes): Likewise.
23615         (bCC): Remove.
23616         (cbranchsi4, cbranchsf4): New.
23617         (casesi): Use cbranchsi4.
23618
23619         * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
23620         hppa_branch_type): Delete.
23621         (return_addr_rtx): Use cbranchsi4.
23622         (emit_bcond_fp): Accept all operands.  Replace CODE with NE.
23623         Emit CCFPmode comparison here.
23624         (gen_cmp_fp): Delete, now part of emit_bcond_fp.
23625         * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
23626         hppa_branch_type): Delete.
23627         * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
23628         (movsicc, movdicc): Remove references to hppa_compare_op0,
23629         hppa_compare_op1 and compare_from_rtx.
23630         (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
23631         (casesi): Use cbranchsi4.
23632
23633         * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
23634         * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
23635         * config/pdp11/pdp11.md (register_or_const0_operand): New.
23636         (cmpdf, cmphi, cmpqi): Make private.  Add tst alternatives.
23637         (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
23638         (bCC): Delete.
23639         (cbranchdf4, cbranchhi4, cbranchqi4): New.
23640         (*branch, *branch_inverted): New.
23641
23642         * config/picochip/picochip.md (cbranchhi4): Use
23643         ordered_comparison_operator.
23644         (cmphi, bCC): Remove.
23645
23646         * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
23647         (trap_comparison_operator): Delete.
23648         * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
23649         rs6000_emit_cbranch): Accept mode and operands.
23650         * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
23651         rs6000_compare_fp_p): Delete.
23652         (rs6000_generate_compare): Accept mode and comparison.  Extract code
23653         and op0/op1 from there.  Replace references to rs6000_compare_op0
23654         and rs6000_compare_op1.
23655         (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
23656         extract result from passed operands.
23657         (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
23658         extract loc from passed operands.
23659         (rs6000_emit_cmove): Likewise.
23660         * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
23661         rs6000_compare_fp_p): Delete.
23662         * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
23663         (cbranch<GPR>4, cbranch<FP>4): New.
23664         (cstore<mode>4): New.  Consolidate here all choices about when to use
23665         portable or specialized sCC sequences.
23666         (stack_protect_test): Use cbranchsi4.
23667         (conditional_trap): Replace with ctrap<GPR>4.
23668         (conditional trap insn): Replace trap_comparison_operator with
23669         ordered_comparison_operator.
23670
23671         * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
23672         (s390_emit_prologue): Use ctrap.
23673         * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
23674         * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
23675         New predicates replacing...
23676         * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
23677         (cmp<GPR>, cmp<FP>, cmpcc): Delete.
23678         (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
23679         (add<mode>cc): Do not use s390_compare_op0/op1.
23680         (s<code>): Change to...
23681         (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
23682         (seq): Change to...
23683         (cstorecc4): ... this.  Handle EQ or NE equally.
23684         (*sne): Un-privatize for use in cstorecc4.
23685         (b<code>): Change to...
23686         (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
23687         (conditional_trap): Replace with...
23688         (ctrap<GPR>4, ctrap<FP>4): ... these.
23689         (stack_protect): Use cbranchcc4.
23690
23691         * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
23692         * config/score/score-protos.h (score_gen_cmp): Delete.
23693         * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
23694         (score_block_move-loop): Use cbranchsi4.
23695         * config/score/score.md (cbranchsi4): New.
23696         (cmpsi, bCC): Delete.
23697         * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
23698         (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
23699         * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
23700         (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
23701         * config/score/score3.h (score3_gen_cmp): Delete.
23702         * config/score/score7.h (score7_gen_cmp): Delete.
23703
23704         * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
23705         (sh_emit_scc_to_t): ... this.  Return void.
23706         (from_compare): Rename to...
23707         (sh_emit_compare_and_branch): ... this.
23708         (sh_emit_compare_and_set): New.
23709         (sh_expand_t_scc): Accept operands.
23710         * config/sh/predicates.md (sh_float_comparison_operator): New.
23711         * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
23712         (prepare_scc_operands): Rename to...
23713         (sh_emit_scc_to_t): ... this.  Return void.  Get op0/op1 from
23714         arguments.
23715         (sh_emit_cheap_store_flag): New.
23716         (sh_emit_set_t_insn): New.
23717         (from_compare): Rename to...
23718         (sh_emit_compare_and_branch): ... this.  Accept mode.  Rewrite
23719         handling of TARGET_SH2E floating point to avoid recursive call.
23720         Generate branch here.
23721         (sh_emit_compare_and_set): New.
23722         (sh_expand_t_scc): Get op0/op1 from arguments.
23723         (sh_emit_cheap_store_flag): New.
23724         * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
23725         cases.
23726         (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
23727         (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
23728         (movsicc, movdicc): Do nothing when it recreated operands from
23729         sh_compare_*. Use sh_emit_cheap_store_flag.  Adjust call to
23730         prepare_scc_operands (now sh_emit_scc_to_t).
23731         (udivdi3): Use cstoresi4.
23732         (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
23733         bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
23734         (cbranchint4_media, cbranchfp4_media): New.
23735         (casesi): Use cbranchdi4.
23736         (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
23737         Delete.
23738         (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
23739         (movnegt): Remove second operand.
23740         (cbranchsf4, cbranchdf4): New.
23741         (stack_protect): Use cbranchdi4/cbranchsi4.
23742
23743         * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
23744         (gen_compare_reg): Accept comparison, extract part of it to...
23745         (gen_compare_reg_1): ... this.
23746         (gen_compare_operator): Delete.
23747         (gen_v9_scc): Accept separate destination, comparison code and arms.
23748         Do not use sparc_compare_op0/sparc_compare_op1.
23749         (emit_scc_insn, emit_conditional_branch_insn): New.
23750         (emit_v9_brxx): Make static.  Remove useless assertion.
23751         (sparc_emit_float_lib_cmp): Return RTL instead of calling
23752         emit_cmp_insn.
23753         (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
23754         * config/sparc/sparc-protos.h (gen_compare_reg,
23755         sparc_emit_float_lib_cmp): Adjust prototype.
23756         (emit_scc_insn, emit_conditional_branch_insn): New.
23757         (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
23758         * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
23759         * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
23760         iterators to the top.
23761         (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
23762         snesi_special_extend, sCC, bCC, seqdi_special_trunc,
23763         snedi_special_trunc): Delete.
23764         (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
23765         and snedi_special_trunc.
23766         (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
23767         cbranchdi4, cbranch<F:mode>4): New.
23768         (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
23769         here.  Use gen_compare_reg instead of gen_compare_operator.
23770         (conditional_trap): Replace with...
23771         (ctrapsi4, ctrapdi4): ... this.
23772         (stack_protect_test): Use cbranchcc4.
23773
23774         * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
23775         argument to rtx.
23776         * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
23777         (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
23778         Change spu_compare_op0/op1 to op0/op1 throughout.  Get target
23779         from operands[0] or operands[3] depending on is_set.
23780         * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
23781         * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
23782         cmpdf, bCC), sCC: Remove.
23783         (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
23784         cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
23785         cstoredf4): New.
23786         (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
23787         spu_emit_branch_or_set.
23788
23789         * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
23790         Add two arguments.
23791         * config/stormy16/stormy16.h (xstormy16_compare_op0,
23792         xstormy16_compare_op1): Delete.
23793         * config/stormy16/stormy16.c (xstormy16_compare_op0,
23794         xstormy16_compare_op1): Delete.
23795         (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
23796         Adjust calls.
23797         * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
23798         (cmphi, cmpsi, bCC): Remove.
23799
23800         * config/v850/v850.md (tstsi, cmpsi): Fold into...
23801         (*cmpsi): ... this one.
23802         (cbranchsi4, cstoresi4): New.
23803         (bCC expanders): Delete.
23804         (sCC insns): Fold into...
23805         (*setcc): ... this one.
23806         (casesi): Do not use gen_cmpsi and gen_bgtu.
23807         (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
23808         (movsicc): Simplify.
23809         * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
23810
23811         * config/vax/vax-protos.h (cond_name): New.
23812         (vax_output_conditional_branch): Remove.
23813         * config/vax/vax.c (cond_name): New.
23814         (vax_output_conditional_branch): Remove.
23815         * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
23816         * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
23817         (cmp<VAXint>, cmp<VAXfp>): Privatize.  Add constraints for tst.
23818         (bit<VAXint>): Wrap source with (compare).
23819         (b<code> and following unnamed pattern): Rename to *branch and
23820         *branch_reversed.  Change macroization to match_operator.
23821         (cbranch<VAXint>4, cbranch<VAXfp>4): New.
23822
23823         * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
23824         * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
23825         Change last argument to machine_mode.
23826         (xtensa_expand_scc): Add machine_mode argument.
23827         * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
23828         (gen_conditional_move, xtensa_expand_conditional_branch,
23829         xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
23830         instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
23831         Adjust operand numbers.
23832         * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
23833         Delete.
23834         * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
23835         (cmpsi, cmpsf, b<code>, s<code>): Delete.
23836         (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
23837
23838 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
23839
23840         * optabs.c (prepare_cmp_insn): Temporarily disable test that
23841         causes spurious differences between trunk and cond-optab branch.
23842
23843 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
23844
23845         PR target/37137
23846         * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
23847
23848 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
23849
23850         * tree.c (iterative_hash_pointer): Delete.
23851         (iterative_hash_expr): Short-circuit handling of NULL pointer.
23852         Hash UIDs and versions of SSA names.  Don't special-case built-in
23853         function declarations.
23854
23855 2009-05-11  Ian Lance Taylor  <iant@google.com>
23856
23857         PR bootstrap/40103
23858         * graphite.c: Force -Wc++-compat to only be a warning before
23859         #including "cloog/cloog.h".
23860
23861 2009-05-11  Martin Jambor  <mjambor@suse.cz>
23862
23863         * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
23864
23865 2009-05-11  Jan Hubicka  <jh@suse.cz>
23866
23867         * tree-ssa-loop-ivcanon.c: Include target.h
23868         (struct loop_size): new structure.
23869         (constant_after_peeling): New predicate.
23870         (tree_estimate_loop_size): New function.
23871         (estimated_unrolled_size): Rewrite for new estimates.
23872         (try_unroll_loop_completely): Use new estimates.
23873         * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
23874
23875 2009-05-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
23876
23877         * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
23878         libcpp interface change.
23879         (spu_macro_to_expand): Likewise.
23880
23881 2009-05-11  Paolo Bonzini  <bonzini@gnu.org>
23882
23883         PR tree-optimization/40026
23884         * gimplify.c (gimplify_init_constructor): Change initial conditional
23885         to assertion.  Rewrite TREE_OPERAND (*expr_p, 1) after
23886         optimize_compound_literals_in_ctor.
23887
23888 2009-05-11  Nathan Sidwell  <nathan@codesourcery.com>
23889
23890         * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
23891         New devices.
23892         * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
23893
23894 2009-05-11  H.J. Lu  <hongjiu.lu@intel.com>
23895
23896         * tree-vect-data-refs.c (vect_analyze_group_access): Use
23897         HOST_WIDE_INT for gap.
23898
23899 2009-05-11  Ira Rosen  <irar@il.ibm.com>
23900
23901         PR tree-optimization/40074
23902         * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
23903         account in group size and step comparison.
23904
23905 2009-05-11  Richard Guenther  <rguenther@suse.de>
23906
23907         * passes.c (init_optimization_passes): Strip now incorrect comment.
23908         (execute_function_todo): Do not set PROP_alias.
23909         * tree-pass.h (PROP_alias): Remove.
23910         * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
23911         * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
23912         * tree-nrv.c (pass_return_slot): Likewise.
23913         * tree-object-size.c (pass_object_sizes): Likewise.
23914         * tree-ssa-dom.c (pass_dominator): Likewise.
23915         (pass_phi_only_cprop): Likewise.
23916         * tree-ssa-dse.c (pass_dse): Likewise.
23917         * tree-ssa-phiopt.c (pass_phiopt): Likewise.
23918         (pass_cselim): Likewise.
23919         * tree-ssa-pre.c (pass_pre): Likewise.
23920         (pass_fre): Likewise.
23921         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
23922         * tree-ssa-sink.c (pass_sink_code): Likewise.
23923         * tree-stdarg.c (pass_stdarg): Likewise.
23924         * tree-tailcall.c (pass_tail_calls): Likewise.
23925         * tree-vrp.c (pass_vrp): Likewise.
23926
23927 2009-05-10  Ian Lance Taylor  <iant@google.com>
23928
23929         * basic-block.h (enum profile_status): Break out of struct
23930         control_flow_graph.
23931         * cgraph.h (struct inline_summary): Break out of struct
23932         cgraph_local_info.
23933         * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
23934         of struct cgraph_order_sort.
23935         * combine.c (enum undo_kind): New enum, broken out of struct undo.
23936         * cse.c (struct branch_path): Break out of struct
23937         cse_basic_block_data.
23938         * except.h (enum eh_region_type): Break out of struct eh_region.
23939         * gcc.c (enum add_del): Break out of struct modify_target.
23940         * genrecog.c (enum decision_type): Break out of struct decision_test.
23941         * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
23942         ggc_pch_data.
23943         * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
23944         * regmove.c (enum match_use): New enum, broken out of struct match.
23945         * sched-int.h (enum post_call_group): New enum, broken out of
23946         struct deps.
23947         (struct deps_reg): Break out of struct deps.
23948         * target.h (struct asm_int_op): Break out of struct gcc_target.
23949         * tree-eh.c (struct goto_queue_node): Break out of struct
23950         leh_tf_state.
23951         * tree-inline.h (enum copy_body_cge_which): Break out of
23952         copy_body_data.
23953         * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
23954
23955         * c-decl.c (in_struct, struct_types): New static variables.
23956         (pushtag): Add loc parameter.  Change all callers.
23957         (lookup_tag): Add ploc parameter.  Change all callers.
23958         (check_compound_literal_type): New function.
23959         (parser_xref_tag): Add loc parameter.  Change all callers.  If
23960         -Wc++-compat, warn about struct/union/enum types defined within a
23961         struct or union.
23962         (start_struct): Add enclosing_in_struct, enclosing_struct_types,
23963         and loc parameters.  Change all callers.  Change error calls to
23964         error_at, using loc.  For a redefinition, if the location of the
23965         original definition is known, report it.  Set in_struct and
23966         struct_types.  If -Wc++-compat warn if in sizeof, typeof, or alignof.
23967         (finish_struct): Add new parameters enclosing_in_struct and
23968         enclosing_struct_types.  Change all callers.  Set
23969         C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
23970         in the struct.  If in a struct, add this struct to struct_types.
23971         (start_enum): Add loc parameter.  Change all callers.  Use
23972         error_at for errors, using loc.  For a redefinition, if the
23973         location of the original definition is known, report it.  If in a
23974         struct, add this enum type to struct_types.  If -Wc++-compat warn
23975         if in sizeof, typeof, or alignof.
23976         * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
23977         (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
23978         (c_parser_enum_specifier): Get enum location for start_enum.
23979         (c_parser_struct_or_union_specifier): Get struct location for
23980         start_struct.  Save in_struct and struct_types status between
23981         start_struct and finish_struct.
23982         (c_parser_cast_expression): Get location of cast.
23983         (c_parser_alignof_expression): Get location of type.
23984         (c_parser_postfix_expression): Likewise.
23985         (c_parser_postfix_expression_after_paren_type): Add type_loc
23986         parameter.  Change all callers.  Call check_compound_literal_type.
23987         Use type_loc for error about variable size type.
23988         * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
23989         of an enum constant from an enum type defined in a struct or union.
23990         (c_cast_expr): Add loc parameter.  Change all callers.  If
23991         -Wc++-compat, warn about defining a type in a cast.
23992         * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
23993         (start_enum, start_struct, finish_struct): Update declarations.
23994         (parser_xref_tag, c_cast_expr): Update declarations.
23995         (check_compound_literal_type): Declare.
23996
23997 2009-05-11  Ben Elliston  <bje@au.ibm.com>
23998
23999         * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
24000         for recent libcpp interface change.
24001         (rs6000_macro_to_expand): Likewise.
24002
24003 2009-05-10  Michael Matz  <matz@suse.de>
24004
24005         PR target/40031
24006         * config/arm/arm.c (require_pic_register): Emit on entry edge,
24007         not at entry of function.
24008
24009 2009-05-10  Richard Guenther  <rguenther@suse.de>
24010
24011         PR tree-optimization/40081
24012         Revert
24013         * tree-sra.c (instantiate_element): Instantiate scalar replacements
24014         using the main variant of the element type.  Do not fiddle with
24015         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
24016
24017         * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
24018         structs with volatile fields.
24019
24020 2009-05-10  Jan Hubicka  <jh@suse.cz>
24021
24022         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
24023         (estimate_move_cost): Assert that it does not get called for
24024         VOID_TYPE_P.
24025         (estimate_num_insns): Skip VOID types in argument handling.
24026         (optimize_inline_calls): Delete unreachable blocks and verify that
24027         callgraph is valid.
24028
24029 2009-05-10  Jan Hubicka  <jh@suse.cz>
24030
24031         * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
24032         * cgraph.c (cgraph_mark_address_taken_node): New function.
24033         (dump_cgraph_node): Dump new flag.
24034         * cgraph.h (struct cgraph_node): Add address_taken.
24035         (cgraph_mark_address_taken_node): New function.
24036         * ipa.c (cgraph_postorder): Prioritize functions with address taken
24037         since new direct calls can be born.
24038
24039 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
24040
24041         * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
24042         tok->val.node.node.
24043
24044 2009-05-10  Jan Hubicka  <jh@suse.cz>
24045
24046         PR middle-end/40084
24047         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
24048         argument; rewrite.
24049         (cgraph_update_edges_for_call_stmt): Take old_decl argument.
24050         * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
24051         * tree-inline.c (copy_bb): Set frequency correctly.
24052         (fold_marked_statements): Update call to
24053         cgraph_update_edges_for_call_stmt.
24054
24055 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
24056
24057         * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
24058         identifiers in diagnostics.
24059         * config/arm/arm.c (arm_handle_fndecl_attribute,
24060         arm_handle_isr_attribute): Likewise.
24061         * config/avr/avr.c (avr_handle_progmem_attribute,
24062         avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
24063         * config/bfin/bfin.c (handle_int_attribute,
24064         bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
24065         bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
24066         bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
24067         Likewise.
24068         * config/darwin.c (darwin_handle_kext_attribute,
24069         darwin_handle_weak_import_attribute): Likewise.
24070         * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
24071         h8300_handle_eightbit_data_attribute,
24072         h8300_handle_tiny_data_attribute): Likewise.
24073         * config/i386/i386.c (ix86_handle_cconv_attribute,
24074         ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
24075         * config/i386/winnt.c (ix86_handle_shared_attribute,
24076         ix86_handle_selectany_attribute): Likewise.
24077         * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
24078         * config/m32c/m32c.c (function_vector_handler): Likewise.
24079         * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
24080         m68hc11_handle_fntype_attribute): Likewise.
24081         * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
24082         * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
24083         * config/mips/mips.c (mips_insert_attributes,
24084         mips_merge_decl_attributes, mips_expand_builtin): Likewise.
24085         * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
24086         rs6000_handle_struct_attribute): Likewise.
24087         * config/sh/sh.c (sh_insert_attributes,
24088         sh_handle_resbank_handler_attribute,
24089         sh_handle_interrupt_handler_attribute,
24090         sh2a_handle_function_vector_handler_attribute,
24091         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
24092         Likewise.
24093         * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
24094         * config/spu/spu.c (spu_handle_fndecl_attribute,
24095         spu_handle_vector_attribute): Likewise.
24096         * config/stormy16/stormy16.c
24097         (xstormy16_handle_interrupt_attribute): Likewise.
24098         * config/v850/v850-c.c (ghs_pragma_section): Likewise.
24099         * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
24100
24101 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
24102
24103         * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
24104         (pp_translate_identifiers): New.
24105         (pp_identifier): Only conditionally translate identifier to locale
24106         character set.
24107         * pretty-print.c (pp_construct): Set pp_translate_identifiers.
24108         (pp_base_tree_identifier): Only conditionally translate identifier
24109         to locale character set.
24110         * c-pretty-print.c (M_): Define.
24111         (pp_c_type_specifier, pp_c_primary_expression): Mark English
24112         fragments for conditional translation with M_.
24113         * tree-pretty-print.c (maybe_init_pretty_print): Disable
24114         identifier translation.
24115
24116 2009-05-10  Richard Guenther  <rguenther@suse.de>
24117
24118         PR tree-optimization/40081
24119         * tree-sra.c (instantiate_element): Instantiate scalar replacements
24120         using the main variant of the element type.  Do not fiddle with
24121         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
24122
24123 2009-05-09  Jan Hubicka  <jh@suse.cz>
24124
24125         PR middle-end/40080
24126         * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
24127         indirect calls; verify cgraph afterwards.
24128
24129 2009-05-09  Jan Hubicka  <jh@suse.cz>
24130
24131         PR bootstrap/40082
24132         * ipa.c (update_inlined_to_pointer): New function.
24133         (cgraph_remove_unreachable_nodes): Use it.
24134
24135 2009-05-09  Jan Hubicka  <jh@suse.cz>
24136
24137         * tree-eh.c (struct leh_state): Remove prev_try.
24138         (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
24139         not track prev_try.
24140         * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
24141         copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
24142         remove_eh_handler_and_replace, foreach_reachable_handler,
24143         verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
24144         * except.h (struct eh_region): Remove eh_region_u_cleanup.
24145         (gen_eh_region_cleanup): Update prototype.
24146
24147 2009-05-09  Jan Hubicka  <jh@suse.cz>
24148
24149         PR middle-end/40043
24150         * except.c (copy_eh_region): Always set prev_try.
24151         (redirect_eh_edge_to_label): Find outer try.
24152         (foreach_reachable_handler): When looking for prev try
24153         handle case where previous try is not going to be taken.
24154
24155 2009-05-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
24156
24157         PR tree-optimization/40049
24158         * tree-vect-stmts.c (vectorizable_operation): If the machine has
24159         only vector/vector shifts, convert the type of the constant to the
24160         appropriate type to avoid building incorrect trees, which
24161         eventually have problems with garbage collection.
24162
24163 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
24164
24165         * fold-const.c (fold_binary): Do not fold multiplication by 1 or
24166         -1 for complex floating-point types if honoring signed zeros.
24167
24168 2009-05-08  Jan Hubicka  <jh@suse.cz>
24169
24170         * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
24171         argument; handle correctly when profile is absent.
24172         (build_cgraph_edges): Update.
24173         (rebuild_cgraph_edges): Update.
24174         * cgraph.c: Do not include varray.h.
24175         (cgraph_set_call_stmt_including_clones): New function.
24176         (cgraph_create_edge_including_clones): Likewise
24177         (cgraph_update_edges_for_call_stmt_node): New static cfunction.
24178         (cgraph_update_edges_for_call_stmt): Handle clones.
24179         (cgraph_remove_node): Handle clone tree.
24180         (cgraph_remove_node_and_inline_clones): New function.
24181         (dump_cgraph_node): Dump clone tree.
24182         (cgraph_clone_node): Handle clone tree.
24183         (clone_function_name): Bring here from tree-inline.c.
24184         (cgraph_create_virtual_clone): New function.
24185         * cgraph.h (ipa_replace_map): Move here from ipa.h.
24186         (cgraph_clone_info): New function.
24187         (strut cgraph_node): Add clone_info and new clone tree pointers.
24188         (cgraph_remove_node_and_inline_clones,
24189         cgraph_set_call_stmt_including_clones,
24190         cgraph_create_edge_including_clones,
24191         cgraph_create_virtual_clone): Declare.
24192         (cgraph_function_versioning): Use VEC argument.
24193         (compute_call_stmt_bb_frequency): Update prototype.
24194         (cgraph_materialize_all_clones): New function.
24195         * ipa-cp.c (ipcp_update_cloned_node): Remove.
24196         (ipcp_create_replace_map): Update to VECtors.
24197         (ipcp_update_callgraph): Use virtual clones.
24198         (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
24199         (ipcp_update_profiling): Do not update local profiling.
24200         (ipcp_insert_stage): Use VECtors and virtual clones.
24201         * cgraphunit.c (verify_cgraph_node): Verify clone tree.
24202         (clone_of_p): New function.
24203         (cgraph_preserve_function_body_p): Use clone tree.
24204         (cgraph_optimize): Materialize clones.
24205         (cgraph_function_versioning): Update for VECtors.
24206         (save_inline_function_body): Use clone tree.
24207         (cgraph_materialize_clone): New function.
24208         (cgraph_materialize_all_clones): Likewise.
24209         * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
24210         * ipa.c: Include gimple.h.
24211         (cgraph_remove_unreachable_nodes): Use clone tree.
24212         * ipa-prop.c (ipa_note_param_call): Update call to
24213         compute_call_stmt_bb_frequencycall.
24214         * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
24215         * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
24216         (copy_bb): Handle updating of clone tree; add new edge when new call
24217         appears.
24218         (expand_call_inline): Be strict about every call having edge.
24219         (clone_fn_id_num, clone_function_name): Move to cgraph.c.
24220         (delete_unreachable_blocks_update_callgraph): New function.
24221         (tree_function_versioning): Use VECtors; always remove unreachable
24222         blocks and fold conditionals.
24223         * tree-inline.h: Do not include varray.h.
24224         (tree_function_versioning): Remove.
24225         * Makefile.in (GTFILES): Remove tree-inline.c
24226         * passes.c (do_per_function): Do only functions having body.
24227         * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
24228         tree.
24229
24230 2009-05-08  H.J. Lu  <hongjiu.lu@intel.com>
24231             Andrew Morrow  <acm@google.com>
24232
24233         PR c/36892
24234         * c-common.c (c_common_attribute_table): Permit deprecated
24235         attribute to take an optional argument.
24236         (handle_deprecated_attribute): If the optional argument to
24237         __attribute__((deprecated)) is not a string ignore the attribute
24238         and emit a warning.
24239
24240         * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
24241         * c-typeck.c (build_component_ref): Likewise.
24242         (build_external_ref): Likewise.
24243
24244         * toplev.c (warn_deprecated_use): Add an attribute argument.
24245         Emit the message associated with __attribute__((deprecated)).
24246
24247         * toplev.h (warn_deprecated_use): Updated.
24248
24249         * doc/extend.texi: Document new optional parameter to
24250         __attribute__((deprecated))
24251
24252 2009-05-08  Michael Eager <eager@eagercon.com>
24253
24254         * config/rs6000/rs6000.md (*movdf_softfloat32): replace
24255         !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
24256
24257 2009-05-08  Richard Guenther  <rguenther@suse.de>
24258
24259         PR tree-optimization/40062
24260         * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
24261         Avoid exponential behavior.
24262
24263 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
24264
24265         PR rtl-optimization/33928
24266         PR 26854
24267         * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
24268         process_uses, build_single_def_use_links): New.
24269         (update_df): Update use_def_ref.
24270         (forward_propagate_into): Use get_def_for_use instead of use-def
24271         chains.
24272         (fwprop_init): Call build_single_def_use_links and let it initialize
24273         dataflow.
24274         (fwprop_done): Free use_def_ref.
24275         (fwprop_addr): Eliminate duplicate call to df_set_flags.
24276         * df-problems.c (df_rd_simulate_artificial_defs_at_top,
24277         df_rd_simulate_one_insn): New.
24278         (df_rd_bb_local_compute_process_def): Update head comment.
24279         (df_chain_create_bb): Use the new RD simulation functions.
24280         * df.h (df_rd_simulate_artificial_defs_at_top,
24281         df_rd_simulate_one_insn): New.
24282         * opts.c (decode_options): Enable fwprop at -O1.
24283         * doc/invoke.texi (-fforward-propagate): Document this.
24284
24285 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
24286
24287         PR c/24581
24288         * c-typeck.c (build_binary_op): Handle arithmetic between one real
24289         and one complex operand specially.
24290         * tree-complex.c (some_nonzerop): Do not identify a real value as
24291         zero if flag_signed_zeros.
24292
24293 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
24294
24295         PR rtl-optimization/33928
24296         * loop-invariant.c (record_use): Fix && vs. || mishap.
24297
24298 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
24299
24300         PR rtl-optimization/33928
24301         * loop-invariant.c (struct use): Add addr_use_p.
24302         (struct def): Add n_addr_uses.
24303         (struct invariant): Add cheap_address.
24304         (create_new_invariant): Set cheap_address.
24305         (record_use): Accept df_ref.  Set addr_use_p and update n_addr_uses.
24306         (record_uses): Pass df_ref to record_use.
24307         (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
24308         used only as such.
24309
24310 2009-05-08  Kaz Kojima  <kkojima@gcc.gnu.org>
24311
24312         * config/sh/sh.c: Do not include c-pragma.h.
24313
24314 2009-05-07  Andrew Pinski  <andrew_pinski@playstation.sony.com>
24315
24316         * config/spu/spu.c: Remove include of c-common.h.
24317
24318 2009-05-07  Janis Johnson  <janis187@us.ibm.com>
24319
24320         PR c/39037
24321         * c-common.h (mark_valid_location_for_stdc_pragma,
24322         valid_location_for_stdc_pragma_p, set_float_const_decimal64,
24323         clear_float_const_decimal64, float_const_decimal64_p): New.
24324         * c.opt (Wunsuffixed-float-constants): New.
24325         * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
24326         unsuffixed float constant, handle new warning.
24327         * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
24328         * c-decl.c (c_scope): New flag float_const_decimal64.
24329         (set_float_const_decimal64, clear_float_const_decimal64,
24330         float_const_decimal64_p): New.
24331         (push_scope): Set new flag.
24332         * c-parser.c (c_parser_translation_unit): Mark when it's valid
24333         to use STDC pragmas.
24334         (c_parser_external_declaration): Ditto.
24335         (c_parser_compound_statement_nostart): Ditto.
24336         * c-pragma.c (valid_location_for_stdc_pragma,
24337         mark_valid_location_for_stdc_pragma,
24338         valid_location_for_stdc_pragma_p, handle_stdc_pragma,
24339         handle_pragma_float_const_decimal64): New.
24340         (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
24341         * cp/semantics.c (valid_location_for_stdc_pragma_p,
24342         set_float_const_decimal64, clear_float_const_decimal64,
24343         float_const_decimal64_p): New dummy functions.
24344         * doc/extend.texi (Decimal Float): Remove statement that the
24345         pragma, and suffix for double constants, are not supported.
24346         * doc/invoke.texi (Warning Options): List new option.
24347         (-Wunsuffixed-float-constants): New.
24348
24349 2009-05-08  Steven Bosscher  <steven@gcc.gnu.org>
24350
24351         * config/i386/i386.c: Do not include c-common.h.
24352
24353 2009-05-07  Mark Heffernan  <meheff@google.com>
24354
24355         * doc/invoke.texi (Debugging Options): Document change of debugging
24356         dump location.
24357         * opts.c (decode_options): Make dump_base_name relative to
24358         aux_base_name directory.
24359
24360 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
24361
24362         * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
24363         * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
24364
24365 2009-05-07  Rafael Avila de Espindola  <espindola@google.com>
24366
24367         * Makefile.in (install-plugin): Simplify a bit.
24368
24369 2009-05-07  Paolo Bonzini  <bonzini@gnu.org>
24370
24371         * Makefile.in (OBJS-common): Add regcprop.o.
24372         (regcprop.o): New.
24373         * timevar.def (TV_CPROP_REGISTERS): New.
24374         * regrename.c (regrename_optimize): Return 0.
24375         (rest_of_handle_regrename): Delete.
24376         (pass_rename_registers): Point to regrename_optimize.
24377         (struct value_data_entry, struct value_data,
24378         kill_value_one_regno, kill_value_regno, kill_value,
24379         set_value_regno, init_value_data, kill_clobbered_value,
24380         kill_set_value, kill_autoinc_value, copy_value,
24381         mode_change_ok, maybe_mode_change, find_oldest_value_reg,
24382         replace_oldest_value_reg, replace_oldest_value_addr,
24383         replace_oldest_value_mem, copyprop_hardreg_forward_1,
24384         debug_value_data, validate_value_data): Move...
24385         * regcprop.c: ... here.
24386         (rest_of_handle_cprop): Delete.
24387         (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
24388
24389 2009-05-07  Jakub Jelinek  <jakub@redhat.com>
24390
24391         PR middle-end/40057
24392         * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
24393         GEN_INT for 1 << bitnum.
24394         (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
24395         build_int_cst_type.
24396
24397 2009-05-07  Uros Bizjak  <ubizjak@gmail.com>
24398
24399         * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
24400         Remove wrong description of "nand" operation.
24401
24402 2009-05-06  Richard Guenther  <rguenther@suse.de>
24403             Adam Nemet  <anemet@caviumnetworks.com>
24404
24405         * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
24406         comment.  Add that if LHS is not a gimple register, then RHS1 has
24407         to be a single object (GIMPLE_SINGLE_RHS).
24408
24409 2009-05-06  Adam Nemet  <anemet@caviumnetworks.com>
24410
24411         * expr.c (get_def_for_expr): Move it up in the file.
24412         (store_field): When expanding a bit-field store, look at the
24413         defining gimple stmt for the masking conversion.
24414
24415 2009-05-06  Janis Johnson  <janis187@us.ibm.com>
24416
24417         PR middle-end/39986
24418         * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
24419         decode_decimal64, encode_decimal128, decode_decimal128): Avoid
24420         32-bit memcpy into long.
24421
24422 2009-05-06  Jakub Jelinek  <jakub@redhat.com>
24423
24424         * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
24425         (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
24426         new_reg_loc_descr.
24427         (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
24428         instead of appending DW_OP_deref*.
24429
24430 2009-05-06  Michael Matz  <matz@suse.de>
24431
24432         PR middle-end/40021
24433         * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
24434         (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
24435
24436 2009-05-06  Rafael Avila de Espindola  <espindola@google.com>
24437
24438         * Makefile.in (install-plugin): Fix srcdir handling.
24439
24440 2009-05-06  Andrey Belevantsev  <abel@ispras.ru>
24441
24442         * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
24443         when processing for not_regs_needed bitmap.
24444         * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
24445         handle TARGET_MEM_REF in lhs.  Check TMR_BASE for NULL while
24446         handling it for rhs.
24447
24448 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
24449
24450         * config/i386/i386.md (unnamed inc/dec peephole): Use
24451         optimize_insn_for_size_p instead of optimize_size.
24452         * config/i386/predicates.md (incdec_operand): Likewise.
24453         (aligned_operand): Likewise.
24454         * config/i386/sse.md (divv8sf3): Likewise.
24455         (sqrtv8sf2): Likewise.
24456
24457 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
24458
24459         * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
24460
24461         * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
24462
24463 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
24464
24465         * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
24466         ssemodesuffixf2c with avxmodesuffixf2c.
24467
24468 2009-05-06  Joseph Myers  <joseph@codesourcery.com>
24469
24470         PR c/40032
24471         * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
24472
24473 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
24474
24475         * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
24476         (struct tree_base): Adjust spacing for 8 bit boundaries.
24477         (struct tree_decl_common): Add decl_by_reference_flag bit.
24478         (DECL_BY_REFERENCE): Adjust.
24479         * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
24480         print DECL_BY_REFERENCE bit.
24481         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
24482         * dwarf2out.c (loc_by_reference, gen_decl_die): Check
24483         DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
24484         (gen_variable_die): Likewise.  Check TREE_PRIVATE/TREE_PROTECTED
24485         unconditionally.
24486
24487         PR middle-end/39666
24488         * gimplify.c (gimplify_switch_expr): If case labels cover the whole
24489         range of the type, but default label is missing, add it with one
24490         of the existing labels instead of adding a new label for it.
24491
24492 2009-05-05  Joseph Myers  <joseph@codesourcery.com>
24493
24494         * dwarf.h: Remove.
24495
24496 2009-05-05  Rafael Avila de Espindola  <espindola@google.com>
24497
24498         * Makefile.in (enable_plugin, plugin_includedir): New.
24499         (install): Depend on install-plugin.
24500         (PLUGIN_HEADERS): New.
24501         (install-plugin): New.
24502         * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
24503
24504 2009-05-05  Richard Guenther  <rguenther@suse.de>
24505
24506         PR tree-optimization/40022
24507         * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
24508         the only vuse.
24509         (phivn_valid_p): Fix tuplification error, simplify.
24510         (phiprop_insert_phi): Add dumps.
24511         (propagate_with_phi): Simplify.
24512
24513 2009-05-05  Richard Guenther  <rguenther@suse.de>
24514
24515         PR middle-end/40023
24516         * builtins.c (gimplify_va_arg_expr): Properly build the address.
24517
24518 2009-05-05  Shujing Zhao  <pearly.zhao@oracle.com>
24519
24520         * tree.h (strip_float_extensions): Remove duplicate declaration.
24521         (build_low_bits_mask, debug_fold_checksum, expand_function_end,
24522         expand_function_start, stack_protect_prologue, stack_protect_epilogue,
24523         block_ultimate_origin): Rearrange the declarations line to match the
24524         comment that indicates the .c file which the functions are defined.
24525         (dwarf2out_*, set_decl_rtl): Add comment.
24526         (get_base_address): Adjust comment.
24527         (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
24528         declarations line and add comment.
24529         (is_builtin_name): Add blank after function name, for clarity.
24530
24531 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
24532
24533         * attribs.c (decl_attributes): Use %qE for identifiers in
24534         diagnostics.
24535         * cgraphunit.c (verify_cgraph_node): Translate function names to
24536         locale character set in diagnostics.
24537         * coverage.c (get_coverage_counts): Use %qE for identifiers in
24538         diagnostics.
24539         * doc/invoke.texi (-finstrument-functions-exclude-function-list):
24540         Document that functions are named in UTF-8.
24541         * expr.c (expand_expr_real_1): Translate function names to locale
24542         character set in diagnostics.
24543         * gimplify.c (omp_notice_variable, omp_is_private,
24544         gimplify_scan_omp_clauses): Use %qE for identifiers in
24545         diagnostics.
24546         * langhooks.c (lhd_print_error_function): Translate function names
24547         to locale character set.
24548         * langhooks.h (decl_printable_name): Document that return value is
24549         in internal character set.
24550         * stmt.c: Include pretty-print.h
24551         (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
24552         diagnostics.
24553         (resolve_operand_name_1): Translate named operand name to locale
24554         character set.
24555         * stor-layout.c (finalize_record_size): Use %qE for identifiers in
24556         diagnostics.
24557         * toplev.c (announce_function): Translate function names to locale
24558         character set.
24559         (warn_deprecated_use): Use %qE for identifiers in diagnostics.
24560         (default_tree_printer): Use pp_identifier or translate identifiers
24561         to locale character set.  Mark "<anonymous>" for translation.
24562         * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
24563         for identifiers in diagnostics.
24564         * tree.c (handle_dll_attribute): Use %qE for identifiers in
24565         diagnostics.
24566         * varasm.c (output_constructor): Use %qE for identifiers in
24567         diagnostics.
24568
24569 2009-05-04  Rafael Avila de Espindola  <espindola@google.com>
24570
24571         * configure.ac: use ` ` instead of $()
24572         * configure: Regenerate.
24573
24574 2009-05-05  Ben Elliston  <bje@au.ibm.com>
24575
24576         * config/pa/linux-atomic.c: Eliminate conditional include of
24577         errno.h on non-LP64 systems to simplify build requirements.
24578
24579 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
24580
24581         * c-common.c (handle_mode_attribute): Use %qE for identifiers in
24582         diagnostics.
24583         * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
24584         and pass value to identifier_to_locale.
24585         (warn_variable_length_array): Make name a tree.
24586         (grokdeclarator): Separate diagnostic texts for named and unnamed
24587         declarators.  Use %qE for named declarators.
24588         * c-parser.c (c_lex_one_token): Use %qE for identifiers in
24589         diagnostics.
24590         * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
24591         identifiers in diagnostics.
24592         * c-typeck.c (push_member_name, start_init): Pass identifiers to
24593         identifier_to_locale.  Mark "anonymous" strings for translation.
24594
24595 2009-05-04  Michael Eager <eager@eagercon.com>
24596
24597         * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
24598         address for DImode/DFmode only if double-precision FP regs.
24599
24600 2009-05-04  Michael Eager <eager@eagercon.com>
24601
24602         * config/rs6000/rs6000.c (rs6000_libcall_value): Add
24603         TARGET_SINGLE_FLOAT check.
24604
24605 2009-05-04  Michael Eager <eager@eagercon.com>
24606
24607         * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
24608
24609 2009-05-04  Michael Eager <eager@eagercon.com>
24610
24611         * gcc/config.gcc (powerpc-xilinx-eabi*): Add tm t-xilinx
24612         * config/rs6000/t-xilinx: New
24613
24614 2009-05-04  Paolo Bonzini  <bonzini@gnu.org>
24615
24616         * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
24617         * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
24618         * gcc/explow.c (memory_address): Use target hook.
24619         * gcc/targhooks.c (default_legitimize_address): New.
24620         * gcc/targhooks.h (default_legitimize_address): New.
24621         * gcc/target.h (legitimize_address): New.
24622         * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
24623         (TARGET_INITIALIZER): Include it.
24624         * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
24625
24626         * config/bfin/bfin-protos.h (legitimize_address): Remove.
24627         * config/bfin/bfin.c (legitimize_address): Remove.
24628         * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
24629         * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
24630         Remove.
24631         * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
24632         * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
24633
24634         * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
24635         THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
24636         * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
24637         * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
24638         * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
24639         * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
24640         * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
24641         * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
24642         * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
24643         * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
24644         * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
24645         * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
24646         * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
24647         * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
24648         * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
24649         * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
24650         * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
24651         * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
24652         * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
24653         * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
24654         * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
24655         * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
24656         * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
24657
24658         * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
24659         * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
24660         * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
24661         * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
24662         * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
24663         * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
24664         * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
24665         * gcc/config/arm/arm-protos.h (arm_legitimize_address,
24666         (thumb_legitimize_address): Delete.
24667         * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
24668         * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
24669         * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
24670         * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
24671         * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
24672         * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
24673         Delete.
24674         * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
24675         Delete.
24676
24677         * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
24678         * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
24679         * config/m32r/m32r.c (m32r_legitimize_address): New.
24680         * config/m68k/m68k.c (m68k_legitimize_address): New.
24681         * config/score/score.c (score_legitimize_address): Standardize.
24682         * config/score/score3.c (score3_legitimize_address): Standardize.
24683         * config/score/score3.h (score3_legitimize_address): Adjust.
24684         * config/score/score7.c (score7_legitimize_address): Standardize.
24685         * config/score/score7.h (score7_legitimize_address): Adjust.
24686         * config/sh/sh.c (sh_legitimize_address): New.
24687         * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
24688
24689         * gcc/config/s390/s390.c (legitimize_address): Rename to...
24690         (s390_legitimize_address): ... this.
24691         * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
24692         (sparc_legitimize_address): ... this.
24693         * gcc/config/i386/i386.c (legitimize_address): Rename to...
24694         (ix86_legitimize_address): ... this.
24695         * gcc/config/avr/avr.c (legitimize_address): Rename to...
24696         (avr_legitimize_address): ... this.
24697         * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
24698         (mn10300_legitimize_address): ... this.
24699         * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
24700         (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
24701         (alpha_expand_mov): Adjust call.
24702
24703         * config/frv/frv.c (frv_legitimize_address): Return x on failure.
24704         * config/spu/spu.c (spu_legitimize_address): Likewise.
24705         * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
24706         * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
24707
24708 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
24709
24710         * intl.c (locale_encoding, locale_utf8): New.
24711         (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
24712         * intl.h (locale_encoding, locale_utf8): Declare.
24713         * pretty-print.c: Include ggc.h.  Include iconv.h if HAVE_ICONV.
24714         (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
24715         New.
24716         * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
24717         argument.
24718         (pp_tree_identifier): Define to call pp_base_tree_identifier.
24719         (pp_base_tree_identifier): Declare as function.
24720         (identifier_to_locale): Declare.
24721         * Makefile.in (pretty-print.o): Update dependencies.
24722         * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
24723
24724 2009-05-04  Richard Guenther  <rguenther@suse.de>
24725
24726         PR middle-end/40015
24727         * builtins.c (fold_builtin_memory_op): Do not decay to element
24728         type if the size matches the whole array.
24729
24730 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
24731
24732         * expmed.c (synth_mult): When trying out a shift, pass the result
24733         of a signed shift.
24734
24735 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
24736
24737         * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
24738         (shiftsub1_cost): New.
24739         (init_expmed): Compute shiftsub1_cost.
24740         (synth_mult): Optimize multiplications by constants of the form
24741         -(2^^m-1) for some constant positive integer m.
24742
24743 2009-05-03  Richard Guenther  <rguenther@suse.de>
24744
24745         PR c/39983
24746         * c-typeck.c (array_to_pointer_conversion): Do not built
24747         ADDR_EXPRs of arrays of pointer-to-element type.
24748         * c-gimplify.c (c_gimplify_expr): Revert change fixing
24749         up wrong ADDR_EXPRs after-the-fact.
24750         * c-common.c (strict_aliasing_warning): Strip pointer
24751         conversions for obtaining the original type.
24752         * builtins.c (fold_builtin_memset): Handle array types.
24753         (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
24754         and array types
24755
24756 2009-05-03  Richard Guenther  <rguenther@suse.de>
24757
24758         PR middle-end/23329
24759         * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
24760         Do not lose casts from array types with unknown extent to array
24761         types with known extent.
24762         * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
24763         alias set compatibility.
24764
24765 2009-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24766
24767         * flags.h (extra_warnings): Delete.
24768         * toplev.c (process_options): Handle Wuninitialized here.
24769         * opts.c (extra_warnings): Delete.
24770         (set_Wextra): Delete.
24771         (common_handle_option): -Wextra can be handled automatically.
24772         * c-opts.c (c_common_handle_option): Delete obsolete code.
24773         (c_common_post_options): Simplify comment.
24774         * common.opt (W): Add Var.
24775         (Wextra): Add Var.
24776         (Wuninitialized): Initialize to -1.
24777
24778 2009-05-03  Adam Nemet  <anemet@caviumnetworks.com>
24779             Richard Guenther  <rguenther@suse.de>
24780
24781         * expr.c (get_def_for_expr): New function.
24782         (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
24783         SSA rather than trees.
24784         <MULT_EXPR>: Likewise.  Use subexp0 and subexp1 instead of
24785         TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
24786
24787 2009-05-03  Joseph Myers  <joseph@codesourcery.com>
24788
24789         * c-common.c (reswords): Add _Imaginary.
24790         * c-common.c (enum rid): Add RID_IMAGINARY.
24791
24792 2009-05-03  Paolo Bonzini  <bonzini@gnu.org>
24793
24794         * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
24795         Patch by Richard Guenther.
24796
24797 2009-05-03  Anatoly Sokolov  <aesok@post.ru>
24798
24799         * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
24800         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
24801         * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
24802         * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
24803         * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
24804         * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
24805         * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
24806         * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
24807         * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
24808         * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
24809         * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
24810         * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
24811         * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
24812         * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
24813         * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
24814         * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
24815         * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
24816         * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
24817
24818 2009-05-02  Richard Guenther  <rguenther@suse.de>
24819
24820         PR tree-optimization/39940
24821         * tree-ssa-pre.c (eliminate): Make sure we may propagate before
24822         doing so.
24823
24824 2009-05-02  Richard Guenther  <rguenther@suse.de>
24825
24826         PR middle-end/40001
24827         * tree-ssa.c (execute_update_addresses_taken): Properly check
24828         if we can mark a variable DECL_GIMPLE_REG_P.
24829         * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
24830         back to the end of the function.
24831         (is_gimple_reg_type): Remove complex type special casing.
24832         * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
24833         if not optimizing.
24834
24835 2009-05-02  Ben Elliston  <bje@au.ibm.com>
24836
24837         * doc/collect2.texi (Collect2): Document search path behaviour
24838         when configured with --with-ld.
24839
24840 2009-05-02  Jan Hubicka  <jh@suse.cz>
24841
24842         * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
24843         parameter; update callers.
24844         (coalesce_cost_edge): EH edges are costier because they needs
24845         splitting even if not critical and even more costier when there are
24846         multiple EH predecestors.
24847
24848 2009-05-02  Jan Hubicka  <jh@suse.cz>
24849
24850         * except.c (remove_eh_handler_and_replace): Handle updating after
24851         removing TRY blocks.
24852
24853 2009-05-02  Eric Botcazou  <ebotcazou@adacore.com>
24854
24855         * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
24856
24857 2009-05-02  Steven Bosscher  <steven@gcc.gnu.org>
24858
24859         * varasm.c: Do not include c-pragma.h.
24860         * attribs.c: Do not incude c-common.h.
24861
24862 2009-05-01  Michael Matz  <matz@suse.de>
24863
24864         * calls.c (initialize_argument_information): Handle SSA names like
24865         decls with a non MEM_P DECL_RTL.
24866
24867 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
24868
24869         * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
24870         * ipa-utils.c: Likewise.
24871         * ipa-type-escape.c: Likewise.
24872         * cgraphunit.c Do not include c-common.h.
24873         * ipa-pure-const.c: Likewise.
24874         * tree-if-conv.c: Likewise.
24875         * matrix-reorg.c: Do not include c-common.h and c-tree.h.
24876         * ipa-struct-reorg.c: Likewise.
24877         * tree-nomudflap.c: Likewise.
24878         * tree-ssa-structalias.c: Likewise.
24879
24880 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
24881
24882         * store-motion.c: Many cleanups to make this pass a first-class
24883         citizen instead of an appendix to gcse load motion.  Add TODO list
24884         to make this pass faster/cleaner/better.
24885
24886         (struct ls_expr): Post gcse.c-split cleanups.
24887         Rename to st_expr.  Rename "loads" field to "antic_stores".  Rename
24888         "stores" field to "avail_stores".
24889         (pre_ldst_mems): Rename to store_motion_mems.
24890         (pre_ldst_table): Rename to store_motion_mems_table.
24891         (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
24892         (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
24893         (ldst_entry): Rename to st_expr_entry, update users.
24894         (free_ldst_entry): Rename to free_st_expr_entry, update users.
24895         (free_ldst_mems): Rename to free_store_motion_mems, update users.
24896         (enumerate_ldsts): Rename to enumerate_store_motion_mems,
24897         update caller.
24898         (first_ls_expr): Rename to first_st_expr, update users.
24899         (next_ls_expr): Rename to next_st_expr, update users.
24900         (print_ldst_list): Rename to print_store_motion_mems.  Print names of
24901         fields properly for store motion instead of names inherited from load
24902         motion in gcse.c.
24903         (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
24904         (LAST_AVAIL_CHECK_FAILURE): Explain what this is.  Undefine when we
24905         are done with it.
24906
24907         (ae_kill): Rename to st_kill, update users.
24908         (ae_gen): Rename to st_avloc, update users.
24909         (transp): Rename to st_transp, update users.
24910         (pre_insert_map): Rename to st_insert_map, update users.
24911         (pre_delete_map): Rename to st_delete_map, update users.
24912         (insert_store, build_store_vectors, free_store_memory,
24913         one_store_motion_pass): Update for abovementioned changes.
24914
24915         (gcse_subst_count, gcse_create_count): Remove.
24916         (one_store_motion_pass): New statistics counters "n_stores_deleted"
24917         and "n_stores_created", local variables.
24918
24919         (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
24920         use for_each_rtx.
24921
24922         (regvec, compute_store_table_current_insn): Remove.
24923         (reg_set_info, reg_clear_last_set): Remove.
24924         (compute_store_table): Use DF caches instead of local dataflow
24925         solvers.
24926
24927 2009-05-01  Joseph Myers  <joseph@codesourcery.com>
24928
24929         * c-objc-common.c (c_tree_printer): Print identifiers with
24930         pp_identifier, not pp_string.  Mark "({anonymous})" for
24931         translation.
24932         * c-pretty-print.c (pp_c_ws_string): New.
24933         (pp_c_cv_qualifier, pp_c_type_specifier,
24934         pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
24935         pp_c_storage_class_specifier, pp_c_function_specifier,
24936         pp_c_attributes, pp_c_bool_constant, pp_c_constant,
24937         pp_c_primary_expression, pp_c_postfix_expression,
24938         pp_c_unary_expression, pp_c_shift_expression,
24939         pp_c_relational_expression, pp_c_equality_expression,
24940         pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
24941         use pp_string and pp_c_ws_string in place of pp_identifier and
24942         pp_c_identifier for non-identifiers.  Mark English strings for
24943         translation.
24944         * c-pretty-print.h (pp_c_ws_string): Declare.
24945
24946 2009-04-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
24947             Roland McGrath <roland@redhat.com>
24948
24949         * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
24950         (ENABLE_LD_BUILDID): New configuration option.
24951         * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
24952         (LINK_BUILDID_SPEC): New macro.
24953         (init_spec): If defined, prepend it between LINK_EH_SPEC and
24954         link_spec.
24955         * doc/install.texi: Document --enable-linker-build-id option.
24956         * configure: Rebuild.
24957         * config.in: Rebuild.
24958
24959 2009-04-30  Adam Nemet  <anemet@caviumnetworks.com>
24960
24961         * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
24962         MIPS_GP_SAVE_AREA_SIZE): Define new macros.
24963         (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD.  Use
24964         MIPS_GP_SAVE_AREA_SIZE.
24965         * config/mips/mips.c (struct mips_frame_info): Update comment
24966         before arg_pointer_offset and hard_frame_pointer_offset.
24967         (mips_compute_frame_info): Update diagram before function: to
24968         correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
24969         indicate the position of frame_pointer_rtx with -fstack-protector and
24970         to show args_size.  Don't allocate cprestore area for leaf functions
24971         if FRAME_GROWS_DOWNWARD.  Use MIPS_GP_SAVE_AREA_SIZE to set
24972         cprestore_size.
24973         (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
24974
24975 2009-04-30  Michael Matz  <matz@suse.de>
24976
24977         PR tree-optimization/39955
24978         * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
24979
24980 2009-04-30  Dave Korn  <dave.korn.cygwin@gmail.com>
24981
24982         * ira.c (setup_cover_and_important_classes):  Use safe macro
24983         REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
24984         directly.
24985         * genpreds.c (write_tm_preds_h):  Output suitable definition of
24986         REG_CLASS_FOR_CONSTRAINT.
24987
24988 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
24989
24990         * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
24991         instead of an int.
24992         * bitmap.c (bitmap_descriptor): Likewise.
24993         * ggc-common.c (loc_descriptor): Likewise.
24994         * varray.c (varray_descriptor): Likewise.
24995         * vec.c (vec_descriptor): Likewise.
24996
24997 2009-04-30  Eric Botcazou  <ebotcazou@adacore.com>
24998
24999         * Makefile.in (dce.o): Add $(EXCEPT_H).
25000         * dce.c: Include except.h and delete redundant vector definitions.
25001         (deletable_insn_p): Return false for non-call insns that can throw
25002         if DF is running.
25003
25004 2009-04-30  Steven Bosscher  <steven@gcc.gnu.org>
25005
25006         * gcse.c (ae_gen): Remove.
25007         (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
25008         and make non-static function to make it available in store-motion.c.
25009         Update call sites with search-and-replace.
25010         (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
25011         extract_mentioned_regs, extract_mentioned_regs_helper,
25012         find_moveable_store, compute_store_table, load_kills_store, find_loads,
25013         store_killed_in_insn, store_killed_after, store_killed_before,
25014         build_store_vectors, insert_insn_start_basic_block, insert-store,
25015         remove_reachable_equiv_notes, replace_store_insn, delete_store,
25016         free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
25017         execute_rtl_store_motion, pass_rtl_store_motion): Move to...
25018         * store-motion.c: ...new file.  Also copy data structures from gcse.c
25019         and clean up to remove parts not used by store motion.
25020         * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
25021         * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
25022
25023 2009-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25024
25025         PR target/38571
25026         * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
25027         when optimizing for size.
25028
25029 2009-04-30  Hans-Peter Nilsson  <hp@axis.com>
25030
25031         * gcse.c (gcse_constant_p): Fix typo in last change.
25032
25033 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
25034
25035         * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
25036
25037 2009-04-30  Andreas Krebbel  <krebbel1@de.ibm.com>
25038
25039         * gcse.c (gcse_constant_p): Make sure the constant is sharable.
25040
25041 2009-04-29  James E. Wilson  <wilson@codesourcery.com>
25042
25043         * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
25044         CONST_HIGH_PART result.
25045
25046 2009-04-29  Anatoly Sokolov  <aesok@post.ru>
25047
25048         * config/avr/avr.c (initial_elimination_offset): Rename to
25049         avr_initial_elimination_offset.
25050         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
25051         change return type to bool.
25052         (avr_can_eliminate): New function.
25053         * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
25054         (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
25055         (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
25056         * config/avr/avr-protos.h (initial_elimination_offset): Rename to
25057         avr_initial_elimination_offset.
25058         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
25059         (avr_initial_elimination_offset): Define.
25060
25061 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
25062             Steven Bosscher  <steven@gcc.gnu.org>
25063
25064         PR rtl-optimization/39938
25065         * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
25066         * cfgrtl.c: Include insn-attr.h.
25067         (rest_of_pass_free_cfg): New function.
25068         (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
25069         * resource.c (init_resource_info): Remove call to df_analyze.
25070
25071 2009-04-29  Richard Guenther  <rguenther@suse.de>
25072
25073         PR target/39943
25074         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
25075         allow conversion to signed integers.
25076
25077 2009-04-29  Richard Guenther  <rguenther@suse.de>
25078
25079         * tree-cfg.c (verify_gimple_assign_binary): Allow vector
25080         shifts of floating point vectors if the shift amount is
25081         a constant multiple of the element size.
25082
25083 2009-04-29  Andreas Krebbel  <krebbel1@de.ibm.com>
25084             Michael Matz  <matz@suse.de>
25085
25086         PR middle-end/39927
25087         PR bootstrap/39929
25088         * tree-outof-ssa.c (emit_partition_copy): New function.
25089         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
25090         insert_part_to_rtx_on_edge): Perform the partition base var
25091         copy using emit_partition_copy.
25092         (insert_value_copy_on_edge): Convert constants to the right mode.
25093         (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
25094         (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
25095
25096 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
25097
25098         * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
25099         scan backwards to try to find a constant to initialize it.
25100
25101         * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
25102         insn before the loop_end instruction, don't look past labels.
25103
25104 2009-04-29  Richard Guenther  <rguenther@suse.de>
25105
25106         PR middle-end/39937
25107         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
25108         loose type conversions.
25109         (forward_propagate_addr_expr): Fix tuplification bug.  Remove
25110         stmts only if there are no uses of its definition.
25111
25112 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
25113
25114         * config/bfin/bfin.h (splitting_loops): Declare.
25115         * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
25116         Reorder bit definitions to be ascending.
25117         (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
25118         * config/bfin/bfin.c (splitting_loops): New variable.
25119         (bfin_cpus): Add WA_LOAD_LCREGS as needed.
25120         (struct loop_info): Remove members INIT and LOOP_INIT.
25121         (bfin_optimize_loop): Don't set them.  Reorder the code that generates
25122         the LSETUP sequence.  Allow LC to be loaded from any register, but
25123         also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
25124         (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
25125         set to 1.
25126         * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
25127         of reload_completed.
25128
25129         From Jie Zhang:
25130         * config/bfin/bfin.md (movsi_insn): Refine constraints.
25131
25132 2009-04-29  Rafael Avila de Espindola  <espindola@google.com>
25133
25134         * Makefile.in (PLUGIN_VERSION_H): New.
25135         (OBJS-common): Remove plugin-version.o.
25136         (plugin.o): Depend on (PLUGIN_VERSION_H).
25137         (plugin-version.o): Remove.
25138         * configure: Regenerate
25139         * configure.ac: Create plugin-version.h.
25140         * gcc-plugin.h (plugin_gcc_version): Remove.
25141         (plugin_default_version_check): Change signature.
25142         * plugin-version.c: Remove.
25143         * plugin.c: Include plugin-version.h.
25144         (str_plugin_gcc_version_name): Remove.
25145         (try_init_one_plugin): Pass gcc version to plugin_init.
25146         (plugin_default_version_check): Both gcc and plugin versions are now
25147         arguments.
25148
25149 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
25150
25151         * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
25152         problematic last insns.  Test for TYPE_CALL rather than CALL_P.
25153         Remove special case testing for last insn of inner loops. Don't fail
25154         if the loop ends with a jump, emit an extra nop instead.
25155
25156         * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
25157         DREGS rather than comparing directly.  Remove code that tries to
25158         account for latencies.
25159
25160 2009-04-29  Richard Guenther  <rguenther@suse.de>
25161
25162         PR tree-optimization/39941
25163         * tree-ssa-pre.c (eliminate): Schedule update-ssa after
25164         eliminating an indirect call.
25165
25166 2009-04-29  Richard Guenther  <rguenther@suse.de>
25167
25168         * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
25169         parameter.  Allow invariants as base if !require_lvalue.
25170         (verify_gimple_assign_single): Adjust.
25171
25172 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
25173
25174         * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
25175         (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
25176         ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
25177         ssubhi3, ssaddhi3_parts and sssubhi3_parts.
25178         (flag_mulhi3_parts): Produce a HImode output rather than trying to set
25179         a VEC_SELECT.
25180         * config/bfin/bfin.c (bfin_expand_builtin,
25181         case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
25182
25183 2009-04-28  Richard Guenther  <rguenther@suse.de>
25184
25185         * tree-vect-loop.c (get_initial_def_for_induction): Use
25186         correct types for pointer increment.
25187
25188 2009-04-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
25189
25190         * toplev.c (print_version): Update GMP version string calculation.
25191
25192 2009-04-28  Eric Botcazou  <ebotcazou@adacore.com>
25193
25194         PR rtl-optimization/39938
25195         * resource.c (init_resource_info): Add call to df_analyze.
25196
25197 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
25198
25199         * config/alpha/alpha.md (usegp): Cast the result of
25200         alpha_find_lo_sum_using_gp to enum attr_usegp.
25201         * config/alpha/alpha.c (override_options): Remove end-of-structure
25202         marker element from cpu_table.  Use array size of cpu_table to handle
25203         -mcpu and -mtune options.
25204         (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
25205
25206 2009-04-28  Joseph Myers  <joseph@codesourcery.com>
25207
25208         * config.gcc (powerpc*-*-* | rs6000-*-*): Add
25209         rs6000/option-defaults.h to tm_file.  Support cpu_32, cpu_64,
25210         tune_32 and tune_64.
25211         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
25212         support on PowerPC.
25213         * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
25214         * config/rs6000/option-defaults.h: ... here.  New file.
25215         (OPT_64, OPT_32): Define.
25216         (MASK_64BIT): Define to 0 if not already defined.
25217         (OPT_ARCH64, OPT_ARCH32): Define.
25218         (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
25219         and tune_64.
25220
25221 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25222
25223         * config/arm/arm.c (arm_override_options): Emit error on using
25224         fpa with AAPCS.
25225
25226 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
25227
25228         PR rtl-optimization/39914
25229         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
25230         registers for allocnos created from user-defined variables only
25231         when not optimizing.
25232
25233 2009-04-28  Richard Guenther  <rguenther@suse.de>
25234
25235         PR middle-end/39937
25236         * fold-const.c (fold_binary): Use distribute_real_division only
25237         on float types.
25238
25239 2009-04-28  Steve Ellcey  <sje@cup.hp.com>
25240
25241         * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
25242         add hpux-stdint.h to tm_file.
25243         (hppa[12]*-*-hpux11*): Ditto.
25244         (ia64*-*-hpux*): Ditto.
25245         * config/hpux-stdint.h: New.
25246         * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
25247         __STDC_EXT__ for all compiles.
25248         * config/pa/pa-hpux.h: Ditto.
25249         * config/pa/pa-hpux10.h: Ditto.
25250         * config/pa/pa-hpux11.h: Ditto.
25251
25252 2009-04-28  Catherine Moore  <clm@codesourcery.com>
25253
25254         * debug.h (set_name): Add comment.
25255
25256 2009-04-28  Andrew Pinski  <pinskia@gmail.com>
25257
25258         PR target/39929
25259         * config/darwin.c (machopic_gen_offset): Check
25260         currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
25261         * config/arm/arm.c (require_pic_register): Likewise.
25262
25263 2009-04-28  Paolo Bonzini  <bonzini@gnu.org>
25264
25265         * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
25266         m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
25267         m32c_promote_prototypes): Delete.
25268
25269 2009-04-28  Michael Matz  <matz@suse.de>
25270
25271         PR middle-end/39922
25272         * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
25273         constants.
25274
25275 2009-04-28  Richard Guenther  <rguenther@suse.de>
25276
25277         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
25278
25279 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25280
25281         * config/arm/arm-cores.def: Add support for arm1156t2f-s.
25282         * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
25283         * config/arm/arm-tune.md: Regenerate.
25284
25285 2009-04-28  Alexander Monakov  <amonakov@ispras.ru>
25286
25287         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
25288         block if there are complex incoming edges.
25289         (sel_merge_blocks): Remove useless assert.
25290         (sel_redirect_edge_and_branch): Check that edge was redirected.
25291         * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
25292         (sel_find_rgns): Delete declaration.
25293         * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
25294         the region when it is not a preheader.
25295
25296 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
25297
25298         PR c/39323
25299         * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
25300
25301 2009-04-28  Richard Guenther  <rguenther@suse.de>
25302
25303         * tree.h (SSA_NAME_VALUE): Remove.
25304         (struct tree_ssa_name): Remove value_handle member.
25305         * tree-vrp.c (execute_vrp): Initialize/free the value-handle
25306         array for jump threading.
25307         * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
25308         SSA_NAME_VALUEs.
25309         * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
25310         * tree-flow.h (threadedge_initialize_values): Declare.
25311         (threadedge_finalize_values): Likewise.
25312         * tree-ssa-threadedge.c (ssa_name_values): New global variable.
25313         (SSA_NAME_VALUE): Define.
25314         (threadedge_initialize_values): New function.
25315         (threadedge_finalize_values): Likewise.
25316         * tree-ssa-dom.c (ssa_name_values): New global variable.
25317         (SSA_NAME_VALUE): Define.
25318         (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
25319
25320 2009-04-28  Ira Rosen  <irar@il.ibm.com>
25321
25322         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
25323         Use REPORT_VECTORIZED_LOCATIONS instead
25324         REPORT_VECTORIZED_LOOPS.
25325         * tree-vectorizer.c (vect_verbosity_level): Make static.
25326         (vect_loop_location): Rename to vect_location.
25327         (vect_set_verbosity_level): Update comment.
25328         (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
25329         and vect_location.
25330         (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
25331         and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
25332         instead REPORT_UNVECTORIZED_LOOPS.
25333         * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
25334         and vect_loop_def to vect_external_def and vect_internal_def.
25335         (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
25336         and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
25337         REPORT_UNVECTORIZED_LOCATIONS.
25338         (enum vect_relevant): Update comment. Rename vect_unused_in_loop
25339         and vect_used_in_loop and to vect_unused_in_scope and
25340         vect_used_in_scope.
25341         (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
25342         (vect_verbosity_level): Remove declaration.
25343         (vect_analyze_operations): Likewise.
25344         (vect_analyze_stmt): Declare.
25345         * tree-vect-loop.c (vect_determine_vectorization_factor): Use
25346         REPORT_UNVECTORIZED_LOCATIONS.
25347         (vect_get_loop_niters): Fix indentation.
25348         (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
25349         (vect_analyze_loop_operations): New function.
25350         (vect_analyze_loop): Call vect_analyze_loop_operations instead of
25351         vect_analyze_operations.
25352         (vect_is_simple_reduction): Use new names.
25353         (vectorizable_live_operation, vect_transform_loop): Likewise.
25354         * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
25355         to specify whether the data references can be a part of interleaving
25356         chain.
25357         (vect_analyze_data_ref_dependence): Use new names.
25358         (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
25359         (vect_create_addr_base_for_vector_ref): Remove redundant code.
25360         * tree-vect-patterns.c (widened_name_p): Use new names.
25361         (vect_recog_dot_prod_pattern): Likewise.
25362         * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
25363         (process_use, vect_mark_stmts_to_be_vectorized,
25364         vect_model_simple_cost, vect_model_store_cost,
25365         vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
25366         vectorizable_call, vectorizable_conversion, vectorizable_assignment,
25367         vectorizable_operation, vectorizable_type_demotion,
25368         vectorizable_type_promotion, vectorizable_store, vectorizable_load,
25369         vectorizable_condition): Likewise.
25370         (vect_analyze_operations): Split into vect_analyze_loop_operations
25371         and ...
25372         (vect_analyze_stmt): ... new function.
25373         (new_stmt_vec_info): Use new names.
25374         (vect_is_simple_use): Use new names and fix comment.
25375         * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
25376         (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
25377
25378 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
25379
25380         PR target/39911
25381         * config/i386/i386.c (print_operand) ['Z']: Handle floating point
25382         and integer modes for x87 operands.  Do not ICE for unsupported size,
25383         generate error instead.  Generate error for unsupported operand types.
25384         ['z']: Do not handle HImode memory operands specially.  Warning
25385         for floating-point operands.  Fallthru to 'Z' for unsupported operand
25386         types.  Do not ICE for unsupported size, generate error instead.
25387         (output_387_binary_op): Use %Z to output operands.
25388         (output_fp_compare): Ditto.
25389         (output_387_reg_move): Ditto.
25390
25391 2009-04-28  Ben Elliston  <bje@au.ibm.com>
25392
25393         PR c++/35652
25394         Revert:
25395
25396         2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
25397
25398         * builtins.c (c_strlen): Do not warn here.
25399         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
25400         * c-common.c (pointer_int_sum): Take an explicit location.
25401         Warn about offsets out of bounds.
25402         * c-common.h (pointer_int_sum): Adjust declaration.
25403
25404 2009-04-27  Ian Lance Taylor  <iant@google.com>
25405
25406         * collect2.c (is_ctor_dtor): Change type of ret field in struct
25407         names to symkind.
25408         * dce.c (run_fast_df_dce): Change type of old_flags to int.
25409         * df-core.c (df_set_flags): Change return type to int.  Change
25410         type of old_flags to int.
25411         (df_clear_flags): Likewise.
25412         * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
25413         (df_get_conditional_uses): Likewise.
25414         * df.h (df_set_flags, df_clear_flags): Update declarations.
25415         * dwarf2out.c (struct indirect_string_node): Change type of form
25416         field to enum dwarf_form.
25417         (AT_string_form): Change return type to enum dwarf_form.
25418         * fixed-value.c (fixed_compare): Add cast to enum type.
25419         * fwprop.c (update_df): Change 0 to VOIDmode.
25420         * gensupport.c: Change 0 to UNKNOWN.
25421         * gimple.h (gimple_cond_code): Add cast to enum type.
25422         * haifa-sched.c (reemit_notes): Add cast to enum type.
25423         * hooks.c (hook_int_void_no_regs): Remove function.
25424         * hooks.h (hook_int_void_no_regs): Remove declaration.
25425         * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
25426         * predict.c (combine_predictions_for_insn): Add casts to enum type.
25427         * real.c (real_arithmetic): Add cast to enum type.
25428         (real_compare): Likewise.
25429         * target.h (struct gcc_target): Change return type of
25430         branch_target_register_class to enum reg_class.
25431         * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
25432         default_branch_target_register_class.
25433         * targhooks.c (default_branch_target_register_class): New function.
25434         * targhooks.h (default_branch_target_register_class): Declare.
25435         * tree-data-ref.c (print_direction_vector): Add cast to enum type.
25436         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
25437         cast to int.
25438         * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
25439         ERROR_MARK.
25440         * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
25441         vect_uninitialized_def.  Change 0 to ERROR_MARK.
25442         * tree-vect-stmts.c (supportable_widening_operation): Don't
25443         initialize icode1 and icode2.
25444         * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
25445         * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
25446         and to STD_C89.
25447         (cmn_err_flag_specs): Change 0 to STD_C89.
25448         (cmn_err_char_table): Likewise.
25449         * config/arm/arm.c (get_arm_condition_code): Change type of code
25450         to enum arm_cond_code.
25451         (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
25452         (IWMMXT_BUILTIN2): Likewise.
25453         (neon_builtin_type_bits): Don't define typedef.
25454         (neon_builtin_datum): Change type of bits field to int.
25455         (arm_expand_neon_args): Add cast to enum type.
25456         * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
25457         TLS_MODEL_NONE.
25458         * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN.  Add
25459         casts to enum type.
25460         * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
25461         MIPS_FP_COND_f.
25462         * config/mips/mips.md (jal_macro): Return enum constant.
25463         (single_insn): Likewise.
25464         * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
25465         CODE_FOR_nothing.
25466         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25467         casts to enum type.
25468         * config/s390/s390.c (s390_tune_flags): Change type to int.
25469         (s390_arch_flags): Likewise.
25470         (s390_handle_arch_option): Change flags field of struct pta to int.
25471         * config/s390/s390.h (s390_tune_flags): Update declaration.
25472         (s390_arch_flags): Likewise.
25473         * config/sh/sh.c (prepare_move_operands): Compare
25474         tls_symbolic_operand result with enum constant.
25475         (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
25476         (sh_expand_prologue): Add cast to enum type.
25477         (sh_expand_epilogue): Likewise.
25478         (tls_symbolic_operand): Change return type to enum tls_model.
25479         (fpscr_set_from_mem): Add cast to enum type.
25480         (legitimize_pic_address): Compare tls_symbolic_operand result with
25481         enum constant.
25482         (sh_target_reg_class): Change return type to enum reg_class.
25483         * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
25484         PROCESSOR_xxx.
25485         * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
25486         * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
25487         * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
25488         (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
25489         (delayed_branch, tls_call_delay): Likewise.
25490         (eligible_for_sibcall_delay): Likewise.
25491         (eligible_for_return_delay): Likewise.
25492         * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
25493         (spu_expand_builtin_1): Likewise.
25494
25495         * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
25496         for all types of conversions.
25497         (output_init_element): Issue -Wc++-compat warning if needed when
25498         initializing a bitfield with enum type.
25499         * c-parser.c (c_parser_expression): Set original_type to
25500         original_type of right hand operand of comma operator.
25501
25502 2009-04-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25503
25504         * doc/c-tree.texi (Types, Functions, Expression trees): Fix
25505         grammar nits.
25506         * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
25507         * doc/cpp.texi (Standard Predefined Macros)
25508         (Implementation-defined behavior): Likewise.
25509         * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
25510         * doc/gimple.texi (GIMPLE Exception Handling)
25511         (@code{GIMPLE_ASSIGN}): Likewise.
25512         * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
25513         * doc/invoke.texi (Warning Options, Optimize Options)
25514         (AVR Options, Darwin Options): Likewise.
25515         (Optimize Options): Reformulate -fwhole-program description.
25516         * doc/loop.texi (Lambda): Likewise.
25517         * doc/md.texi (Output Template, Define Constraints)
25518         (Standard Names, Insn Splitting): Likewise.
25519         * doc/options.texi (Option properties): Likewise.
25520         * doc/passes.texi (Tree-SSA passes): Likewise.
25521         * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
25522         * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
25523         (File Names and DBX): Likewise.
25524         * doc/trouble.texi (Incompatibilities): Likewise.
25525
25526 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
25527
25528         * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
25529         instruction is correct.
25530
25531 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
25532
25533         Allow non-constant arguments to conversion intrinsics.
25534         * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
25535         * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
25536         * spu.c (print_operand): Handle 'v' and 'w'.
25537         (exp2_immediate_p, spu_gen_exp2): Define.
25538         * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
25539         spu_convtf_1): Update parameter descriptions.
25540         * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
25541         * constraints.md ('v', 'w'): New.
25542         * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
25543         Remove.
25544         (i2f, I2F): New define_mode_attr.
25545         (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
25546         floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
25547         fixuns_truncv4sfv4si2):  Update to use mode attribute.
25548         (float<mode><i2f>2_mul, float<mode><i2f>2_div,
25549         fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
25550         floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
25551         patterns for combine.
25552
25553 2009-04-27  Steven Bosscher  <steven@gcc.gnu.org>
25554
25555         * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
25556         (cprop, hoist, pre, store_motion): New debug counters.
25557         * tree-pass.h (pass_tracer): Move to list of gimple passes, it
25558         is not an RTL pass anymore.
25559         (pass_profiling): Remove extern decl for pass removed in 2005.
25560         (pass_gcse, pass_jump_bypass): Remove.
25561         * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
25562         to 0 for clean state.
25563         * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
25564         * cse.c (gate_handle_cse_after_global_opts,
25565         rest_of_handle_cse_after_global_opts): New functions.
25566         (pass_cse_after_global_opts): New pass, does local CSE.
25567         * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
25568         (TV_CPROP): New timevar.
25569         * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
25570         (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
25571         (gcse_main, recompute_all_luids): Remove.
25572         (compute_hash_table_work): Call max_reg_num instead of reading
25573         max_gcse_regno.
25574         (cprop_jump): Don't set run_jump_opt_after_gcse.
25575         (constprop_register): Always allow to alter jumps.
25576         (cprop_insn): Likewise.
25577         (do_local_cprop): Likewise.
25578         (local_cprop_pass): Likewise.  Return non-zero if something changed.
25579         (cprop): Remove function, fold interesting bits into one_cprop_pass.
25580         (find_implicit_sets): Add note about missed optimization opportunity.
25581         (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
25582         pass_rtl_cprop execute function.
25583         Don't bother tracking the pass number, each pass gets its own dumpfile
25584         now anyway.
25585         Always allow to alter jumpsand bypass jumps.
25586         (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
25587         will just find no suitable set.
25588         (pre_edge_insert): Fix dumping, this function is for PRE only.
25589         (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
25590         pass_rtl_pre execute function.
25591         (hoist_code): Return non-zero if something changed.  Keep track of
25592         substitutions and insertions for statistics gathering similar to PRE.
25593         (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
25594         called from the pass_rtl_hoist execute function.  Show pass statistics.
25595         (compute_store_table): Use max_reg_num directly instead of using the
25596         formerly global max_gcse_regno.
25597         (build_store_vectors): Likewise.
25598         (replace_store_insn): Fix dumping.
25599         (store_motion): Rename to ...
25600         (one_store_motion_pass): ... this.  Rewrite to be "the" STORE_MOTION
25601         pass, called from the pass_rtl_store_motion execute function.  Keep
25602         track of substitutions and insertions for statistics gathering similar
25603         to PRE.
25604         (bypass_jumps): Remove, fold interesting bits into ...
25605         (one_cprop_pass): ... this.  Rewrite to be "the" CPROP pass, called
25606         from the pass_rtl_cprop execute function.
25607         (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
25608         pass_jump_bypass): Remove.
25609         (gate_handle_gcse, rest_of_handle_gcse): Remove.
25610         (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
25611         (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
25612         (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
25613         (gate_rtl_store_motion, execute_rtl_store_motion,
25614         pass_rtl_store_motion): New.
25615         * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
25616         make it clear that -fcse-skip-blocks is a no-op for backward compat.
25617         * passes.c (init_optimization_passes): Remove pass_gcse and
25618         pass_jump_bypass.  Schedule cprop, pre, hoist, cprop, store_motion,
25619         and cse_after_global_opts in place of pass_gcse.  Schedule cprop
25620         instead of pass_jump_bypass.
25621
25622 2009-04-27  Richard Guenther  <rguenther@suse.de>
25623
25624         PR middle-end/39928
25625         * gimplify.c (gimplify_expr): If we are required to create
25626         a temporary make sure it ends up as register.
25627
25628 2009-04-27  H.J. Lu  <hongjiu.lu@intel.com>
25629
25630         PR target/39903
25631         * config/i386/i386.c (construct_container): Don't call
25632         gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
25633         X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
25634
25635 2009-04-27  Michael Matz  <matz@suse.de>
25636
25637         * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
25638         (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
25639         * tree-ssa-live.h (find_replaceable_exprs): Return a bitmap.
25640         (dump_replaceable_exprs): Take a bitmap.
25641         * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
25642         array.
25643         (expand_gimple_basic_block): Likewise.
25644         * tree-ssa-ter.c (struct temp_expr_table_d): Make
25645         replaceable_expressions member a bitmap.
25646         (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
25647         (mark_replaceable): Likewise.
25648         (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
25649         * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
25650
25651 2009-04-27  Richard Guenther  <rguenther@suse.de>
25652
25653         * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
25654         (verify_stmts): Dispatch to gimple/type verification code.
25655         * tree-inline.c (remap_gimple_op_r): Work around C++ FE
25656         issue with call argument types.
25657
25658 2009-04-27  Michael Matz  <matz@suse.de>
25659
25660         * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
25661         (init_update_ssa, delete_update_ssa, update_ssa): Remove references
25662         to above.
25663
25664 2009-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
25665             Eric Botcazou  <ebotcazou@adacore.com>
25666
25667         * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
25668         a label's basic block.
25669         (mark_target_live_regs): Tidy and rework obsolete comments.
25670         Change back DF problem to LIVE.  If a label starts a basic block,
25671         assume that all registers that used to be live then still are.
25672         (init_resource_info): If a label starts a basic block, set its
25673         BLOCK_FOR_INSN accordingly.
25674         (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
25675
25676 2009-04-27  Richard Guenther  <rguenther@suse.de>
25677
25678         * tree-flow-inline.h (function_ann): Remove.
25679         (get_function_ann): Likewise.
25680         * tree-dfa.c (create_function_ann): Remove.
25681         * tree-flow.h (struct static_var_ann_d): Remove.
25682         (struct function_ann_d): Likewise.
25683         (union tree_ann_d): Remove fdecl member.
25684         (function_ann_t): Remove.
25685         (function_ann, get_function_ann, create_function_ann): Remove
25686         declarations.
25687
25688 2009-04-27  Uros Bizjak  <ubizjak@gmail.com>
25689
25690         * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
25691
25692 2009-04-27  Jan Hubicka  <jh@suse.cz>
25693
25694         * ipa-pure-const.c (struct funct_state_d): New fields
25695         state_previously_known, looping_previously_known; remove
25696         state_set_in_source.
25697         (analyze_function): Use new fields.
25698         (propagate): Avoid assumption that state_set_in_source imply
25699         nonlooping.
25700
25701         * tree-ssa-loop-niter.c (finite_loop_p): New function.
25702         * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
25703         * cfgloop.h (finite_loop_p): Declare.
25704
25705 2009-04-26  Michael Matz  <matz@suse.de>
25706
25707         * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
25708
25709 2009-04-26  Michael Matz  <matz@suse.de>
25710
25711         * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
25712         pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
25713         * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
25714         pass_mark_used_blocks): Remove.
25715         * tree-optimize.c (pass_free_datastructures,
25716         execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
25717         * passes.c (init_optimization_passes): Don't call
25718         pass_mark_used_blocks, remove dead code.
25719
25720 2009-04-26  H.J. Lu  <hongjiu.lu@intel.com>
25721
25722         * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
25723         * tree-ssa-live.h (register_ssa_partition): Likewise.
25724
25725 2009-04-26  Michael Matz  <matz@suse.de>
25726
25727         Expand from SSA.
25728         * builtins.c (fold_builtin_next_arg): Handle SSA names.
25729         * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
25730         * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
25731         SSA names.
25732         (compare_pairs): Swap cost comparison.
25733         (coalesce_ssa_name): Don't use change_partition_var.
25734         * tree-nrv.c (struct nrv_data): Add modified member.
25735         (finalize_nrv_r): Set it.
25736         (tree_nrv): Use it to update statements.
25737         (pass_nrv): Require PROP_ssa.
25738         * tree-mudflap.c (mf_decl_cache_locals,
25739         mf_build_check_statement_for): Use make_rename_temp.
25740         (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
25741         * alias.c (find_base_decl): Handle SSA names.
25742         * emit-rtl (set_reg_attrs_for_parm): Make non-static.
25743         (component_ref_for_mem_expr): Don't leak SSA names into RTL.
25744         * rtl.h (set_reg_attrs_for_parm): Declare.
25745         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
25746         to "optimized", remove unused locals at finish.
25747         (execute_free_datastructures): Make global, call
25748         delete_tree_cfg_annotations.
25749         (execute_free_cfg_annotations): Don't call
25750         delete_tree_cfg_annotations.
25751
25752         * ssaexpand.h: New file.
25753         * expr.c (toplevel): Include ssaexpand.h.
25754         (expand_assignment): Handle SSA names the same as register variables.
25755         (expand_expr_real_1): Expand SSA names.
25756         * cfgexpand.c (toplevel): Include ssaexpand.h.
25757         (SA): New global variable.
25758         (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
25759         (SSAVAR): New macro.
25760         (set_rtl): New helper function.
25761         (add_stack_var): Deal with SSA names, use set_rtl.
25762         (expand_one_stack_var_at): Likewise.
25763         (expand_one_stack_var): Deal with SSA names.
25764         (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
25765         before unique numbers.
25766         (expand_stack_vars): Use set_rtl.
25767         (expand_one_var): Accept SSA names, add asserts for them, feed them
25768         to above subroutines.
25769         (expand_used_vars): Expand all partitions (without default defs),
25770         then only the local decls (ignoring those expanded already).
25771         (expand_gimple_cond): Remove edges when jumpif() expands an
25772         unconditional jump.
25773         (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
25774         or remove abnormal edges.  Ignore insns setting the LHS of a TERed
25775         SSA name.
25776         (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
25777         members of SA; deal with PARM_DECL partitions here; expand
25778         all PHI nodes, free tree datastructures and SA.  Commit instructions
25779         on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
25780         (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
25781         info and statements at start, collect garbage at finish.
25782         * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
25783         (VAR_ANN_PARTITION) Remove.
25784         (change_partition_var): Don't declare.
25785         (partition_to_var): Always return SSA names.
25786         (var_to_partition): Only accept SSA names.
25787         (register_ssa_partition): Only check argument.
25788         * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
25789         member.
25790         (delete_var_map): Don't free it.
25791         (var_union): Only accept SSA names, simplify.
25792         (partition_view_init): Mark only useful SSA names as used.
25793         (partition_view_fini): Only deal with SSA names.
25794         (change_partition_var): Remove.
25795         (dump_var_map): Use ssa_name instead of partition_to_var member.
25796         * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
25797         basic blocks.
25798         * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
25799         (struct _elim_graph): New member const_dests; nodes member vector of
25800         ints.
25801         (set_location_for_edge): New static helper.
25802         (create_temp): Remove.
25803         (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
25804         insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
25805         (new_elim_graph): Allocate const_dests member.
25806         (clean_elim_graph): Truncate const_dests member.
25807         (delete_elim_graph): Free const_dests member.
25808         (elim_graph_size): Adapt to new type of nodes member.
25809         (elim_graph_add_node): Likewise.
25810         (eliminate_name): Likewise.
25811         (eliminate_build): Don't take basic block argument, deal only with
25812         partition numbers, not variables.
25813         (get_temp_reg): New static helper.
25814         (elim_create): Use it, deal with RTL temporaries instead of trees.
25815         (eliminate_phi): Adjust all calls to new signature.
25816         (assign_vars, replace_use_variable, replace_def_variable): Remove.
25817         (rewrite_trees): Only do checking.
25818         (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
25819         (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
25820         init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
25821         contains_tree_r, MAX_STMTS_IN_LATCH,
25822         process_single_block_loop_latch, analyze_edges_for_bb,
25823         perform_edge_inserts): Remove.
25824         (expand_phi_nodes): New global function.
25825         (remove_ssa_form): Take ssaexpand parameter.  Don't call removed
25826         functions, initialize new parameter, remember partitions having a
25827         default def.
25828         (finish_out_of_ssa): New global function.
25829         (rewrite_out_of_ssa): Make global.  Adjust call to remove_ssa_form,
25830         don't reset in_ssa_p here, don't disable TER when mudflap.
25831         (pass_del_ssa): Remove.
25832         * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
25833         partition members.
25834         (execute_free_datastructures): Declare.
25835         * Makefile.in (SSAEXPAND_H): New variable.
25836         (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
25837         * basic-block.h (commit_one_edge_insertion): Declare.
25838         * passes.c (init_optimization_passes): Move pass_nrv and
25839         pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
25840         pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
25841         * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
25842         (redirect_branch_edge): Deal with super block when expanding, split
25843         out jump patching itself into ...
25844         (patch_jump_insn): ... here, new static helper.
25845
25846 2009-04-26  Michael Matz  <matz@suse.de>
25847
25848         * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
25849         beyond num_ssa_names.
25850         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
25851         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
25852
25853 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
25854
25855         PR inline-asm/39543
25856         * fwprop.c (forward_propagate_asm): New function.
25857         (forward_propagate_and_simplify): Propagate also into __asm, if it
25858         doesn't increase the number of referenced registers.
25859
25860         PR c/39889
25861         * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
25862
25863 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
25864
25865         * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
25866         note_nonlocal_vla_type for nonlocal VLAs.
25867         (note_nonlocal_vla_type, note_nonlocal_block_vlas,
25868         contains_remapped_vars, remap_vla_decls): New functions.
25869         (convert_nonlocal_reference_stmt): If not optimizing, call
25870         note_nonlocal_block_vlas on GIMPLE_BIND block vars.
25871         (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
25872         if it wasn't found in var_map.
25873         (finalize_nesting_tree_1): Call remap_vla_decls.  If outermost
25874         GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
25875         to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
25876         declare_vars.
25877         * gimplify.c (nonlocal_vlas): New variable.
25878         (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
25879         referenced VLAs.
25880         (gimplify_body): Create and destroy nonlocal_vlas.
25881
25882         * dwarf2out.c (loc_descr_plus_const): New function.
25883         (build_cfa_aligned_loc, tls_mem_loc_descriptor,
25884         mem_loc_descriptor, loc_descriptor_from_tree_1,
25885         descr_info_loc, gen_variable_die): Use it.
25886
25887         * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
25888         !TREE_STATIC VAR_DECLs.
25889         * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
25890         DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
25891         (gen_variable_die): Likewise.  Don't look at TREE_PRIVATE if
25892         DECL_BY_REFERENCE is valid.
25893         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
25894         for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
25895         * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
25896         Copy DECL_BY_REFERENCE.
25897         (struct nesting_copy_body_data): New type.
25898         (nesting_copy_decl): New function.
25899         (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
25900         if they have variable length.
25901
25902 2009-04-26  Michael Matz  <matz@suse.de>
25903
25904         * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
25905         mark new temporaries for renaming.
25906
25907 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
25908
25909         PR c/39581
25910         * c-decl.c (global_bindings_p): Return negative value.
25911         (c_variable_size): New.  Based on variable_size from
25912         stor-layout.c.
25913         (grokdeclarator): Call c_variable_size not variable_size.
25914
25915 2009-04-26  Uros Bizjak  <ubizjak@gmail.com>
25916
25917         * config/i386/i386.c (print_operand) ['z']: Fix typo.
25918
25919 2009-04-26  Kai Tietz  <kai.tietz@onevision.com>
25920
25921         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
25922         Redefine it to just use mingw/include.
25923         (ASM_SPEC): Rules for -m32 and -m64.
25924         (LINK_SPEC): Use Likewise.
25925         (SPEC_32): New define.
25926         (SPEC_64): Likewise.
25927         (SUB_LINK_SPEC): Likewise.
25928         (MULTILIB_DEFAULTS): New define.
25929         * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
25930         Add multilib options.
25931         (MULTILIB_DIRNAMES): Likewise.
25932         (MULTILIB_OSDIRNAMES): Likewise.
25933         (LIBGCC): Likewise.
25934         (INSTALL_LIBGCC): Likewise.
25935
25936 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
25937
25938         PR c/39556
25939         * c-tree.h (enum c_inline_static_type): New.
25940         (record_inline_static): Declare.
25941         * c-decl.c (struct c_inline_static, c_inline_statics,
25942         record_inline_static, check_inline_statics): New.
25943         (pop_file_scope): Call check_inline_statics.
25944         (start_decl): Call record_inline_static instead of pedwarning
25945         directly for static in inline function.
25946         * c-typeck.c (build_external_ref): Call record_inline_static
25947         instead of pedwarning directly for static referenced in inline
25948         function.
25949
25950 2009-04-26  Steven Bosscher  <steven@gcc.gnu.org>
25951
25952         * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
25953         not new but only being rescanned.
25954         * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
25955         reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
25956         alloc_reg_set_mem, free_reg_set_mem, record_one_set,
25957         record_set_info, compute_set, grealloc): Remove.
25958         (recompute_all_luids): New function.
25959         (gcse_main): Don't compute sets, and don't do related memory
25960         allocations/free-ing.  If something changed before the end of the
25961         pass, update LUIDs using recompute_all_luids.
25962         (alloc_gcse_mem): Don't compute LUIDs.  Don't allocate reg_set memory.
25963         (free_gcse_mem): Don't free it either.
25964         (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
25965         Use the df insn LUIDs.
25966         (load_killed_in_block): Likewise.
25967         (compute_hash_table_work): Don't compute reg_set_in_block.
25968         (compute_transp): Use DF_REG_DEF_CHAINs.
25969         (local_cprop_pass): Don't use compute_sets and related functions.
25970         (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
25971         Use get_max_uid() instead of max_cuid.
25972         (insert_insn_end_basic_block, pre_insert_copy_insn,
25973         update_ld_motion_stores): Don't try to
25974         keep reg_set tables up to date.
25975         (pre_insert_copies): Use df insn LUIDs.
25976         (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
25977         (reg_set_info): Don't use extra bitmap argument.
25978         (compute_store_table): Don't compute reg_set_in_block.  Use DF scan
25979         information to compute regs_set_in_block.
25980         (free_store_memory, store_motion): Don't nullify reg_set_in_block.
25981         (bypass_jumps): Don't use compute_sets and friends.
25982
25983 2009-04-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25984
25985         PR testsuite/39710
25986         * opts.c (undocumented_msg): Do not leave blank even with
25987         ENABLE_CHECKING.
25988
25989 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
25990
25991         * c-decl.c (build_enumerator): Allow values folding to integer
25992         constants but not integer constant expressions with a pedwarn if
25993         pedantic.
25994
25995 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
25996
25997         PR c/39582
25998         * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
25999         with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
26000         type is an integer constant.
26001
26002 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
26003
26004         PR target/39897
26005         * config/i386/i386.c (print_operand) ['z']: Revert handling of
26006         HImode operands.
26007
26008 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
26009
26010         PR c/39564
26011         * c-decl.c (grokdeclarator): Diagnose declarations of functions
26012         with variably modified return type and no storage class
26013         specifiers, except for the case of nested functions.  Distinguish
26014         extern declarations of functions with variably modified return
26015         types from those of objects with variably modified types.
26016
26017 2009-04-25  Jan Hubicka  <jh@suse.cz>
26018
26019         * tree.c (list_equal_p): New function.
26020         * tree.h (list_equal_p): Declare.
26021         * coretypes.h (edge_def, edge, const_edge, basic_block_def
26022         basic_block_def, basic_block, const_basic_block): New.
26023         * tree-eh.c (make_eh_edge): EH edges are not abnormal.
26024         (redirect_eh_edge): New function.
26025         (make_eh_edge_update_phi): EH edges are not abnormal.
26026         * except.c: Include tree-flow.h.
26027         (list_match): New function.
26028         (eh_region_replaceable_by_p): New function.
26029         (replace_region): New function.
26030         (hash_type_list): New function.
26031         (hash_eh_region): New function.
26032         (eh_regions_equal_p): New function.
26033         (merge_peers): New function.
26034         (remove_unreachable_regions): Verify EH tree when checking;
26035         merge peers.
26036         (copy_eh_region_1): New function.
26037         (copy_eh_region): New function.
26038         (push_reachable_handler): New function.
26039         (build_post_landing_pads, dw2_build_landing_pads): Be ready for
26040         regions without label but with live RESX.
26041         * except.h (redirect_eh_edge_to_label): New.
26042         * tree-flow.h (redirect_eh_edge): New.
26043         * coretypes.h (edge_def, edge, const_edge, basic_block_def
26044         basic_block_def, basic_block, const_basic_block): Remove.
26045         * Makefile.in (except.o): Add dependency on tree-flow.h
26046         * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
26047         * basic-block.h (edge, const_edge, basic_block, const_basic_block):
26048         Remove.
26049
26050 2009-04-25  Eric Botcazou  <ebotcazou@adacore.com>
26051
26052         PR bootstrap/39645
26053         * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
26054         on the destination of memcpy.
26055
26056 2009-04-25  Paolo Bonzini  <bonzini@gnu.org>
26057
26058         * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
26059         REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
26060         REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
26061
26062 2009-04-25  Jan Hubicka  <jh@suse.cz>
26063
26064         * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
26065         (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
26066         to be reached by different label than left.
26067         (update_eh_edges): Update comment; remove edge_to_remove if possible
26068         and return true if suceeded.
26069         (cleanup_empty_eh): Accept sharing map; handle shared regions.
26070         (cleanup_eh): Compute sharing map.
26071         * except.c (remove_eh_handler_and_replace): Add argument if we should
26072         update regions.
26073         (remove_unreachable_regions): Update for label sharing.
26074         (label_to_region_map): Likewise.
26075         (get_next_region_sharing_label): New function.
26076         (remove_eh_handler_and_replace): Add update_catch_try parameter; update
26077         prev_try pointers.
26078         (remove_eh_handler): Update.
26079         (remove_eh_region_and_replace_by_outer_of): New function.
26080         * except.h (struct eh_region): Add next_region_sharing_label.
26081         (remove_eh_region_and_replace_by_outer_of,
26082         get_next_region_sharing_label): Declare.
26083         * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
26084
26085 2009-04-25  Jan Hubicka  <jh@suse.cz>
26086
26087         * tree-cfg.c (split_critical_edges): Split also edges where we can't
26088         insert code even if they are not critical.
26089
26090 2009-04-25  Jan Hubicka  <jh@suse.cz>
26091
26092         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
26093         (gimple_can_remove_branch_p): EH edges won't remove branch by
26094         redirection.
26095         * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
26096         updating of non-abnormal EH edges.
26097         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
26098         (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
26099         (split_critical_edges): Split also edges where emitting code on them
26100         will lead to splitting later.
26101
26102 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
26103             H.J. Lu  <hongjiu.lu@intel.com>
26104
26105         PR target/39590
26106         * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
26107         the configured assembler supports fildq and fistpq mnemonics.
26108         (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
26109         * configure: Regenerated.
26110         * config.in: Ditto.
26111
26112         * config/i386/i386.c (print_operand): Handle 'Z'.
26113         ['z']: Remove handling of special fild/fist suffixes.
26114         (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
26115         * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
26116         suffix of fild insn.
26117         (*floatsi<mode>2_vector_mixed): Ditto.
26118         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
26119         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
26120         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
26121         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
26122         * config/i386/gas.h (GAS_MNEMONICS): Remove.
26123
26124 2009-04-25  Ben Elliston  <bje@au.ibm.com>
26125
26126         * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
26127         the source of a set operation.
26128
26129 2009-04-25  Anatoly Sokolov  <aesok@post.ru>
26130
26131         * target.h (struct gcc_target): Add case_values_threshold field.
26132         * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
26133         (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
26134         * targhooks.c (default_case_values_threshold): New function.
26135         * targhooks.h (default_case_values_threshold): Declare function.
26136         * stmt.c (expand_case): Use case_values_threshold target hook.
26137         * expr.h (case_values_threshold): Remove declartation.
26138         * expr.c (case_values_threshold): Remove function.
26139         * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
26140
26141         * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
26142         * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
26143         (avr_case_values_threshold): Declare as static.
26144         * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
26145
26146         * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
26147         * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
26148         (mn10300_case_values_threshold): New function.
26149
26150 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
26151
26152         * ira.c (setup_cover_and_important_classes): Add enum cast.
26153
26154 2009-04-24  Vladimir Makarov  <vmakarov@redhat.com>
26155
26156         * genpreds.c (write_enum_constraint_num): Output definition of
26157         CONSTRAINT_NUM_DEFINED_P macro.
26158         * ira.c (setup_cover_and_important_classes): Use
26159         CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
26160
26161 2009-04-24  DJ Delorie  <dj@redhat.com>
26162
26163         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
26164         __SH2A_SINGLE_ONLY__ also.
26165
26166 2009-04-24  Steve Ellcey  <sje@cup.hp.com>
26167
26168         * config/ia64/ia64.md (movfs_internal): Allow flt constants.
26169         (movdf_internal): Ditto.
26170         * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
26171         SFmode and DFmode constants.
26172         (ia64_print_operand): Add 'G' format for printing
26173         floating point constants.
26174
26175 2009-04-24  Richard Guenther  <rguenther@suse.de>
26176
26177         * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
26178         from unsigned additions.
26179
26180 2009-04-24  Joseph Myers  <joseph@codesourcery.com>
26181
26182         * c-typeck.c (set_init_index): Allow array designators that are
26183         not integer constant expressions with a pedwarn if pedantic.
26184
26185 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
26186
26187         * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
26188         zero if no overlap in nonzero bits between the operands.
26189
26190 2009-04-24  Ian Lance Taylor  <iant@google.com>
26191
26192         * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
26193         (record_dead_and_set_regs): Likewise.
26194         * df.h (struct df_mw_hardreg): Change flags field to int.
26195         (struct df_base_ref): Likewise.
26196         (struct df): Change changeable_flags field to int.
26197         * df-scan.c (df_defs_record): Change clobber_flags to int.
26198         * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
26199         constants rather than #define macros.
26200         (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
26201         (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
26202         (enum dwarf_calling_convention): Likewise.
26203         (enum dwarf_line_number_x_ops): Likewise.
26204         (enum dwarf_call_frame_info): Likewise.
26205         (enum dwarf_source_language): Likewise.
26206         * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
26207         (add_calling_convention_attribute): Likewise.
26208         * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
26209         (combine_comparisons): Change compcode to int.  Add cast to enum type.
26210         * genrecog.c (maybe_both_true_2): Change c to int.
26211         (write_switch): Likewise.  Add cast to enum type.
26212         * gimplify.c (gimplify_omp_for): Handle return values from
26213         gimplify_expr using MIN rather than bitwise or.
26214         (gimplify_expr): Add cast to enum type.
26215         * ipa-prop.c (update_jump_functions_after_inlining): Change
26216         IPA_BOTTOM to IPA_JF_UNKNOWN.
26217         * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
26218         Add casts to enum type.
26219         (setup_cover_and_important_classes): Change cl to int.  Add casts
26220         to enum type.
26221         (setup_class_translate): Change cl and mode to int.
26222         (ira_init_once): Change mode to int.
26223         (free_register_move_costs): Likewise.
26224         (setup_prohibited_mode_move_regs): Add casts to enum type.
26225         * langhooks.c (add_builtin_function_common): Rework assertion that
26226         value fits bitfield.
26227         * mcf.c (add_fixup_edge): Change type parameter to edge_type.
26228         * omega.c (omega_do_elimination): Avoid math on enum types.
26229         * optabs.c (expand_vec_shift_expr): Remove casts to int.
26230         * opts.c (set_debug_level): Change 2 to enum constant.  Use new
26231         int local to handle integral_argment value.
26232         * regmove.c (try_auto_increment): Change PUT_MODE to
26233         PUT_REG_NOTE_KIND.
26234         * reload.c (push_secondary_reload): Add casts to enum type.
26235         (secondary_reload_class, find_valid_class): Likewise.
26236         * reload1.c (emit_input_reload_insns): Likewise.
26237         * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
26238         * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
26239         * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
26240         constant.
26241         * tree.c (build_common_builtin_nodes): Add casts to enum type.
26242         * tree-complex.c (complex_lattice_t): Typedef to int rather than
26243         enum type.
26244         (expand_complex_libcall): Add casts to enum type.
26245         * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
26246         * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
26247         with ERROR_MARK, not NUM_TREE_CODES.
26248         (vect_create_epilog_for_reduction): Likewise.
26249         (vectorizable_reduction): Don't initialize epiloc_reduc_code.
26250         When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
26251         * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
26252         enum machine_mode.
26253         * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
26254         vect_unused_in_loop.  Change 0 to loop_vect.
26255         * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
26256         * var-tracking.c (get_init_value): Change return type to enum
26257         var_init_status.
26258         * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
26259         * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
26260         arm_fp_model.
26261         (arm_override_options): Add casts to enum type.
26262         (arm_emit_tls_decoration): Likewise.
26263         * config/i386/i386.c (ix86_function_specific_restore): Add casts
26264         to enum type.
26265         * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
26266         * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
26267         * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
26268         enum type.
26269         * config/s390/s390.c (code_for_builtin_64): Change to array of
26270         enum insn_code.
26271         (code_for_builtin_31): Likewise.
26272         (s390_expand_builtin): Change code_for_builtin to enum insn_code
26273         const *.
26274         * config/sparc/sparc.c (sparc_override_options): Change value
26275         field in struct code_model to enum cmodel.  In initializer change
26276         0 to NULL and add cast to enum type.
26277
26278         * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
26279         Change all callers.  Issue a -Wc++-compat warning using
26280         lhs_origtype if necessary.
26281         (convert_for_assignment): Issue -Wc++-compat warnings about
26282         invalid conversions to enum type on assignment.
26283         * c-common.h (build_modify_expr): Update declaration.
26284
26285 2009-04-24  Nick Clifton  <nickc@redhat.com>
26286
26287         * config/iq2000/iq2000.c (function_arg): Handle TImode values.
26288         (function_arg_advance): Likewise.
26289         * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
26290         5th alternative.
26291
26292 2009-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
26293
26294         * config/s390/constraints.md ('I', 'J'): Fix condition.
26295
26296 2009-04-24  Diego Novillo  <dnovillo@google.com>
26297
26298         * gengtype-parse.c (parse_error): Add newline after message.
26299
26300 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
26301
26302         * config/i386/sse.md (avxmodesuffixs): Removed.
26303         (*avx_pinsr<avxmodesuffixs>): Renamed to ...
26304         (*avx_pinsr<ssevecsize>): This.
26305
26306 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
26307
26308         * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
26309         follow chains of regs with a single definition, and allow expressions
26310         that are function_invariant_p.
26311         (simple_rhs_p): Allow expressions that are function_invariant_p.
26312
26313 2009-04-24  Paolo Bonzini  <bonzini@gnu.org>
26314
26315         PR middle-end/39867
26316         * fold-const.c (fold_cond_expr_with_comparison): When folding
26317         > and >= to MAX, make sure the MAX uses the same type as the
26318         comparison's operands.
26319
26320 2009-04-24  Nick Clifton  <nickc@redhat.com>
26321
26322         * config/frv/frv.c (frv_frame_access): Do not use reg+reg
26323         addressing for DImode accesses.
26324         (frv_print_operand_address): Handle PLUS case.
26325         * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
26326
26327 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
26328
26329         PR rtl-optimization/39794
26330         * alias.c (canon_true_dependence): Add x_addr argument.
26331         * rtl.h (canon_true_dependence): Adjust prototype.
26332         * cse.c (check_dependence): Adjust canon_true_dependence callers.
26333         * cselib.c (cselib_invalidate_mem): Likewise.
26334         * gcse.c (compute_transp): Likewise.
26335         * dse.c (scan_reads_nospill): Likewise.
26336         (record_store, check_mem_read_rtx): Likewise.  For non-const-or-frame
26337         addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
26338         canon_base_addr of the group, plus optional offset.
26339         (struct group_info): Rename canon_base_mem to
26340         canon_base_addr.
26341         (get_group_info): Set canon_base_addr to canon_rtx of base, not
26342         canon_rtx of base_mem.
26343
26344 2009-04-23  Paolo Bonzini  <bonzini@gnu.org>
26345
26346         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
26347         Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
26348
26349 2009-04-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26350
26351         * config/spu/spu-builtins.h: Delete file.
26352
26353         * config/spu/spu.h (enum spu_builtin_type): Move here from
26354         spu-builtins.h.
26355         (struct spu_builtin_description): Likewise.  Add GTY marker.
26356         Do not use enum spu_function_code or enum insn_code.
26357         (spu_builtins): Add extern declaration.
26358
26359         * config/spu/spu.c: Do not include "spu-builtins.h".
26360         (enum spu_function_code, enum spu_builtin_type_index,
26361         V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
26362         V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
26363         unsigned_V8HI_type_node, unsigned_V4SI_type_node,
26364         unsigned_V2DI_type_node): Move here from spu-builtins.h.
26365         (spu_builtin_types): Make static.  Add GTY marker.
26366         (spu_builtins): Add extern declaration with GTY marker.
26367         Include "gt-spu.h".
26368
26369         * config/spu/spu-c.c: Do not include "spu-builtins.h".
26370         (spu_resolve_overloaded_builtin): Do not use spu_function_code.
26371         Check programmatically whether all parameters are scalar.
26372
26373         * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
26374
26375 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
26376
26377         * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
26378         assignment from the constructor either if the target is volatile.
26379
26380 2009-04-23  Daniel Jacobowitz  <dan@codesourcery.com>
26381
26382         * config/arm/arm.md (insv): Do not share operands[0].
26383
26384 2009-04-23  Nathan Sidwell  <nathan@codesourcery.com>
26385
26386         * config/vxlib-tls.c (active_tls_threads): Delete.
26387         (delete_hook_installed): New.
26388         (tls_delete_hook): Don't delete the delete hook.
26389         (tls_destructor): Delete it here.
26390         (__gthread_set_specific): Adjust installing the delete hook.
26391         (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
26392         __gthread_leave_tsd_dtor_context.
26393
26394 2009-04-23  Rafael Avila de Espindola  <espindola@google.com>
26395
26396         * c-format.c (gcc_tdiag_char_table): Add support for %E.
26397
26398 2009-04-23  Uros Bizjak  <ubizjak@gmail.com>
26399
26400         * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
26401         enum type.
26402         (alpha_rtx_costs): Ditto.
26403         (emit_unlikely_jump): Use add_reg_note.
26404         (emit_frame_store_1): Ditto.
26405         (alpha_expand_prologue): Ditto.
26406         (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
26407         * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
26408
26409 2009-04-23  Nick Clifton  <nickc@redhat.com>
26410
26411         * config/v850/v850.md (epilogue): Remove suppressed code.
26412         (return): Rename to return_simple and remove test of frame size.
26413         * config/v850/v850.c (expand_epilogue): Rename call to gen_return
26414         to gen_return_simple.
26415
26416 2009-04-22  Jing Yu  <jingyu@google.com>
26417
26418         PR testsuite/39781
26419         * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
26420
26421 2009-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
26422
26423         PR C/31499
26424         * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
26425         and RECORD_TYPE/UNION_TYPE.  When outputing the actual element and the
26426         value is a VECTOR_CST, the element type is the element type of the
26427         vector.
26428
26429 2009-04-22  DJ Delorie  <dj@redhat.com>
26430
26431         * config/m32c/m32c.h: Update GTY annotations to new syntax.
26432
26433 2009-04-22  Jakub Jelinek  <jakub@redhat.com>
26434
26435         * alias.c (find_base_term): Move around LO_SUM case, so that
26436         CONST falls through into PLUS/MINUS handling.
26437
26438         PR c/39855
26439         * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
26440         into 0, use omit_one_operand.
26441
26442 2009-04-23  Ben Elliston  <bje@au.ibm.com>
26443
26444         * config/rs6000/linux-unwind.h (get_regs): Remove type
26445         puns. Change the type of `pc' to an array of unsigned ints and
26446         update all users.  Constify frame24.
26447
26448 2009-04-22  DJ Delorie  <dj@redhat.com>
26449
26450         * config/m32c/m32c.c (m32c_special_page_vector_p): Move
26451         declarations before code.
26452         (current_function_special_page_vector): Likewise.
26453         (m32c_expand_insv): Silence a warning.
26454
26455 2009-04-21  Taras Glek  <tglek@mozilla.com>
26456
26457         * alias.c: Update GTY annotations to new syntax.
26458         * basic-block.h: Likewise.
26459         * bitmap.h: Likewise.
26460         * c-common.h: Likewise.
26461         * c-decl.c: Likewise.
26462         * c-parser.c: Likewise.
26463         * c-pragma.c: Likewise.
26464         * c-tree.h: Likewise.
26465         * cfgloop.h: Likewise.
26466         * cgraph.h: Likewise.
26467         * config/alpha/alpha.c: Likewise.
26468         * config/arm/arm.h: Likewise.
26469         * config/avr/avr.h: Likewise.
26470         * config/bfin/bfin.c: Likewise.
26471         * config/cris/cris.c: Likewise.
26472         * config/darwin.c: Likewise.
26473         * config/frv/frv.c: Likewise.
26474         * config/i386/i386.c: Likewise.
26475         * config/i386/i386.h: Likewise.
26476         * config/i386/winnt.c: Likewise.
26477         * config/ia64/ia64.h: Likewise.
26478         * config/iq2000/iq2000.c: Likewise.
26479         * config/mips/mips.c: Likewise.
26480         * config/mmix/mmix.h: Likewise.
26481         * config/pa/pa.c: Likewise.
26482         * config/pa/pa.h: Likewise.
26483         * config/rs6000/rs6000.c: Likewise.
26484         * config/s390/s390.c: Likewise.
26485         * config/sparc/sparc.c: Likewise.
26486         * config/xtensa/xtensa.c: Likewise.
26487         * cselib.h: Likewise.
26488         * dbxout.c: Likewise.
26489         * dwarf2out.c: Likewise.
26490         * except.c: Likewise.
26491         * except.h: Likewise.
26492         * fixed-value.h: Likewise.
26493         * function.c: Likewise.
26494         * function.h: Likewise.
26495         * gimple.h: Likewise.
26496         * integrate.c: Likewise.
26497         * optabs.c: Likewise.
26498         * output.h: Likewise.
26499         * real.h: Likewise.
26500         * rtl.h: Likewise.
26501         * stringpool.c: Likewise.
26502         * tree-data-ref.c: Likewise.
26503         * tree-flow.h: Likewise.
26504         * tree-scalar-evolution.c: Likewise.
26505         * tree-ssa-address.c: Likewise.
26506         * tree-ssa-alias.h: Likewise.
26507         * tree-ssa-operands.h: Likewise.
26508         * tree.c: Likewise.
26509         * tree.h: Likewise.
26510         * varasm.c: Likewise.
26511         * varray.h: Likewise.
26512         * vec.h: Likewise.
26513         * coretypes.h: Do not define GTY macro if it is already defined.
26514         * doc/gty.texi: Update GTY documentation to new syntax.
26515         * gengtype-lex.l: Enforce attribute-like syntax for GTY
26516         annotations on structs.
26517         * gengtype-parse.c: Likewise.
26518
26519 2009-04-22  Mark Heffernan  <meheff@google.com>
26520
26521         * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
26522
26523 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
26524
26525         * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
26526         where appropriate.
26527
26528 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
26529
26530         * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
26531         the same as a PLUS without a shift.  Increase the cost of a
26532         CONST_INT in MULT.
26533
26534 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
26535
26536         * Makefile.in: Update dependencies.
26537         * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
26538         * errors.h: Remove bogus comment about compatibility.
26539         (warning): Update declaration.
26540         * genautomata.c: Update all calls to warning.
26541         * gimple.c: Do not include errors.h. Include toplev.h.
26542         * tree-ssa-structalias.c: Do not include errors.h.
26543         * omega.c: Likewise.
26544         * tree-ssa-reassoc.c: Likewise.
26545         * config/spu/spu-c.c: Likewise.
26546         * config/spu/t-spu-elf: Update dependencies.
26547
26548 2009-04-22  Richard Guenther  <rguenther@suse.de>
26549
26550         PR tree-optimization/39824
26551         * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
26552         make sure the types are compatible.
26553
26554 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
26555
26556         PR c++/14875
26557         * c-common.c (c_parse_error): Take a token_flags parameter.
26558         Use token_type for the token type instead.
26559         Pass token_flags to cpp_type2name.
26560         * c-common.h (c_parse_error): Update declaration.
26561         * c-parser.c (c_parser_error): Pass 0 as token flags.
26562
26563 2009-04-22  Andrey Belevantsev  <abel@ispras.ru>
26564
26565         PR rtl-optimization/39580
26566         * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
26567
26568 2009-04-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26569
26570         * function.c (expand_function_end): Do not emit a jump to the "naked"
26571         return label for fall-through returns.
26572         * except.c (sjlj_emit_function_exit): Always place the call to the
26573         unregister function at the location installed by expand_function_end.
26574
26575 2009-04-22  Richard Guenther  <rguenther@suse.de>
26576
26577         PR tree-optimization/39845
26578         * tree-switch-conversion.c (build_arrays): Add new referenced vars.
26579         (gen_inbound_check): Likewise.
26580
26581 2009-04-22  Nathan Sidwell  <nathan@codesourcery.com>
26582
26583         * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
26584         padding for PPC.
26585         (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
26586         * config/vxlib.c (__gthread_once): Add race guard for PPC.
26587
26588 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
26589
26590         * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
26591         sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
26592         shift counts to avoid out-of-bounds array accesses.
26593
26594 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
26595
26596         * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
26597         (Pmode): Move above.
26598
26599 2009-04-22  Uros Bizjak  <ubizjak@gmail.com>
26600
26601         * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
26602         NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
26603         GET_CODE macro.  Use IN_RANGE macro where appropriate.
26604         * config/alpha/alpha.h: Ditto.
26605         * config/alpha/alpha.md: Ditto.
26606         * config/alpha/constraints.md: Ditto.
26607         * config/alpha/predicates.md: Ditto.
26608
26609 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
26610
26611         * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
26612         * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26613         * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26614         * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26615         * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26616         * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26617         * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26618         * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26619         * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26620         * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26621         * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26622         * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26623         * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26624         * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26625         * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26626         * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26627         * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26628         * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26629         * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26630         * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26631         * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26632         * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26633         * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26634         * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26635         * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26636         * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26637         * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26638
26639 2009-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
26640
26641         * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
26642         references from comments.
26643         * cfgbuild.c (count_basic_blocks): Delete.
26644         (find_basic_blocks_1): Delete.
26645         (find_basic_blocks): Delete.
26646         * except.c (finish_eh_generation): Make static.  Move comment from
26647         except.h here.  Remove find_basic_blocks references from comments.
26648         * except.h (finish_eh_generation): Delete.
26649         * basic-block.h (find_basic_blocks): Delete.
26650         * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
26651
26652 2009-04-22  Dave Korn  <dave.korn.cygwin@gmail.com>
26653
26654         * sdbout.c (sdbout_symbol):  Pass VOIDmode to eliminate_regs.
26655         (sdbout_parms):  Likewise.
26656
26657 2009-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
26658
26659         * config/sh/sh.c (prepare_cbranch_operands): Use
26660         LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
26661         (expand_cbranchdi4): Likewise.
26662         (from_compare): Add cast to enum type.
26663         (expand_cbranchsi4): Use add_reg_note.
26664         (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
26665         (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
26666         (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
26667         (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
26668         * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
26669         instead of CODE_FOR_nothing.
26670         (cbranchdi4): Likewise.  Fix the order of arguments for
26671         gen_rtx_fmt_ee.
26672         (push_fpscr): Use add_reg_note.
26673         (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
26674         reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
26675
26676 2009-04-21  Joseph Myers  <joseph@codesourcery.com>
26677
26678         * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
26679         ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
26680         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
26681         ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
26682         ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
26683         FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
26684         config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
26685         config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
26686         config/alpha/x-vms, config/arc/t-arc,
26687         config/arm/README-interworking, config/arm/arm-c.c,
26688         config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
26689         config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
26690         config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
26691         config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
26692         config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
26693         config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
26694         config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
26695         config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
26696         config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
26697         config/cris/t-elfmulti, config/crx/t-crx,
26698         config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
26699         config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
26700         config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
26701         config/h8300/t-h8300, config/i386/athlon.md,
26702         config/i386/darwin-libgcc.10.4.ver,
26703         config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
26704         config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
26705         config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
26706         config/i386/t-linux64, config/i386/t-nwld,
26707         config/i386/t-rtems-i386, config/i386/t-sol2-10,
26708         config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
26709         config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
26710         config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
26711         config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
26712         config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
26713         config/iq2000/t-iq2000, config/libgcc-glibc.ver,
26714         config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
26715         config/m32r/t-m32r, config/m68hc11/t-m68hc11,
26716         config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
26717         config/m68k/t-uclinux, config/mcore/t-mcore,
26718         config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
26719         config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
26720         config/mips/crtn.asm, config/mips/irix-crti.asm,
26721         config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
26722         config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
26723         config/mips/mips-fixed.md, config/mips/sb1.md,
26724         config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
26725         config/mips/t-iris6, config/mips/t-isa3264,
26726         config/mips/t-libgcc-mips16, config/mips/t-linux64,
26727         config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
26728         config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
26729         config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
26730         config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
26731         config/mn10300/t-linux, config/mn10300/t-mn10300,
26732         config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
26733         config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
26734         config/picochip/libgccExtras/clzsi2.asm,
26735         config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
26736         config/rs6000/darwin-libgcc.10.4.ver,
26737         config/rs6000/darwin-libgcc.10.5.ver,
26738         config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
26739         config/rs6000/t-aix43, config/rs6000/t-aix52,
26740         config/rs6000/t-darwin, config/rs6000/t-fprules,
26741         config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
26742         config/rs6000/t-lynx, config/rs6000/t-netbsd,
26743         config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
26744         config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
26745         config/rs6000/t-rtems, config/rs6000/t-spe,
26746         config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
26747         config/score/t-score-elf, config/sh/divcost-analysis,
26748         config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
26749         config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
26750         config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
26751         config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
26752         config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
26753         config/stormy16/stormy-abi, config/stormy16/t-stormy16,
26754         config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
26755         config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
26756         config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
26757         config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
26758         config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
26759         gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
26760         java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
26761         limitx.h, version.c, xcoff.h: Add copyright and license notices.
26762         * config/h8300/genmova.sh: Include copyright and license notices
26763         in generated output.
26764         * config/h8300/mova.md: Regenerate.
26765         * doc/install.texi2html: Include word "Copyright" in copyright
26766         notice and use name "Free Software Foundation, Inc.".
26767         * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
26768         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
26769         ChangeLog-2007, ChangeLog-2008: Correct dates.
26770
26771 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
26772
26773         * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
26774         NE_EXPR operations as well.
26775         * c-parser.c (c_parser_condition): Do not set location information on
26776         the condition.
26777         (c_parser_conditional_expression): Likewise.
26778         (c_parser_binary_expression): Set location information on operators.
26779         * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
26780         TRUTH_NOT_EXPR has been folded.
26781         * fold-const.c (fold_truth_not_expr): Copy location information from
26782         the incoming expression to the outgoing one.
26783         * gimplify.c (shortcut_cond_r): Add locus parameter.  Pass it to
26784         recursive calls on the LHS of the operator but pass that of the
26785         operator to recursive calls on the RHS of the operator.  Set it
26786         on the COND_EXPR.
26787         (shortcut_cond_expr): Set the locus of the operator on the second
26788         COND_EXPR and that of the expression on the first in degenerate cases.
26789         Pass the locus of the expression to calls to shortcut_cond_r.
26790         Set the locus of the 'then' block on the associated jump, if any.
26791         (gimplify_boolean_expr): Add locus parameter.  Set it on the COND_EXPR.
26792         (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
26793         expression to call to gimplify_boolean_expr.
26794
26795 2009-04-21  Kai Tietz  <kai.tietz@onevision.com>
26796
26797         * config.gcc: Add additional configuration for
26798         i686-w64-mingw* and x86_64-w64-mingw* triplet.
26799         * config/i386/mingw-w64.h: New mingw-w64 specific header.
26800         (CPP_SPEC): Redefine for allowing -municode option.
26801         (STARTFILE_SPEC): Likewise.
26802         * config/i386/t-mingw-w64: New.
26803         * config/i386/mingw-w64.opt: New.
26804         (municode): Add new target option.
26805         * doc/invoke.texi (municode): Add documentation for new option.
26806
26807 2009-04-21  Ian Lance Taylor  <iant@google.com>
26808
26809         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26810         Correct test for number of arguments.
26811         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
26812
26813 2009-04-21  Andreas Schwab  <schwab@linux-m68k.org>
26814
26815         * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
26816         argument of emit_library_call.
26817
26818 2009-04-21  Richard Guenther  <rguenther@suse.de>
26819
26820         PR middle-end/39829
26821         * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
26822         inside VIEW_CONVERT_EXPRs.
26823
26824 2009-04-21  Martin Jambor  <mjambor@suse.cz>
26825
26826         * tree-switch-conversion.c (build_constructors): Split a long line.
26827         (constructor_contains_same_values_p): New function.
26828         (build_one_array): Create assigns of constants if possible, do not
26829         call mark_sym_for_renaming, call update_stmt.
26830         (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
26831         make_rename_temp.  Do not call mark_symbols_for_renaming, call
26832         update_stmt.
26833         (gen_def_assigns): Do not call mark_symbols_for_renaming or
26834         find_new_referenced_vars, call update_stmt.
26835         (gen_inbound_check): Use create_tmp_var and create ssa names manually
26836         instead of calling make_rename_temp.  Do not call
26837         find_new_referenced_vars or mark_symbols_for_renaming, call
26838         update_stmt.
26839
26840 2009-04-21  Richard Guenther  <rguenther@suse.de>
26841
26842         PR tree-optimization/39827
26843         * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
26844         (tree_ssa_phiprop): Pass the correct array size.
26845
26846 2009-04-21  Uros Bizjak  <ubizjak@gmail.com>
26847
26848         * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
26849
26850 2009-04-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26851
26852         PR 16202
26853         * c-typeck.c (lvalue_p): Move declaration ...
26854         * c-common.h (lvalue_p): ... to here.
26855         * c-common.c (candidate_equal_p): New.
26856         (add_tlist): Use it.
26857         (merge_tlist): Use it.
26858         (warn_for_collisions_1): Likewise.
26859         (warning_candidate_p): Accept more candidates.
26860         (verify_tree): A warning candidate can be an expression. Use
26861         candidate_equal_p.
26862
26863 2009-04-21  Ben Elliston  <bje@au.ibm.com>
26864
26865         PR target/5267
26866         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
26867         for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
26868         options.  Remove -mcall-solaris documentation.
26869
26870 2009-04-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
26871
26872         PR c++/13358
26873         * doc/invoke.texi (-Wlong-long): Update description.
26874         * c-lex (interpret_integer): Only warn if there was no previous
26875         overflow and -Wlong-long is enabled.
26876         * c-decl.c (declspecs_add_type): Drop redundant flags.
26877         * c.opt (Wlong-long): Init to -1.
26878         * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
26879         and front-end warn_long_long. Wlong-long only depends on other
26880         flags if it is uninitialized.
26881         * c-parser.c (disable_extension_diagnostics): warn_long_long is
26882         the same for CPP and FE.
26883         (restore_extension_diagnostics): Likewise.
26884
26885 2009-04-20  Ian Lance Taylor  <iant@google.com>
26886
26887         Fix enum conversions which are invalid in C++:
26888         * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
26889         * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
26890         * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
26891         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
26892         * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
26893         (dbxout_parms): Likewise.
26894         * df-core.c (df_set_flags): Change changeable_flags parameter to int.
26895         (df_clear_flags): Likewise.
26896         * df-problems.c (df_rd_bb_local_compute_process_def): Change
26897         top_flag parameter to int.
26898         (df_chain_create_bb_process_use): Likewise.
26899         (df_chain_add_problem): Change chain_flags parameter to unsigned int.
26900         Remove cast.
26901         * df-scan.c (df_ref_create): Change ref_flags parameter to int.
26902         (df_ref_create_structure, df_def_record_1): Likewise.
26903         (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
26904         (df_notes_rescan): Change 0 to VOIDmode in function call.
26905         (df_get_call_refs, df_insn_refs_collect): Likewise.
26906         (df_bb_regs_collect): Likewise.
26907         (df_entry_block_defs_collect): Likewise.
26908         (df_exit_block_uses_collect): Likewise.
26909         * df.h: Update declarations.
26910         * double-int.c (double_int_divmod): Add cast to enum type.
26911         * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
26912         * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
26913         (based_loc_descr): Likewise.
26914         (loc_descriptor_from_tree_1): Change first_op and second_op to
26915         enum dwarf_location_atom.  Add cast to enum type.
26916         * expmed.c (init_expmed): Change 0 to SET in function call.
26917         * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
26918         (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
26919         (do_store_flag): Likewise.
26920         * fixed-value.h (struct fixed_value): Change mode to enum
26921         machine_mode.
26922         * function.c (assign_parms): Change 0 to VOIDmode in function call.
26923         * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
26924         function call.
26925         (insert_insn_decl, insert_decl, insert_state): Likewise.
26926         (automata_list_finish): Likewise.
26927         * genrecog.c (process_define_predicate): Add cast to enum type.
26928         * gensupport.c (init_predicate_table): Add cast to enum type.
26929         * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
26930         function call.
26931         (gimple_build_call_1, gimple_build_label): Likewise.
26932         (gimple_build_goto, gimple_build_asm_1): Likewise.
26933         (gimple_build_switch_1, gimple_build_cdt): Likewise.
26934         * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
26935         (enum fallback): Rename from enum fallback_t.
26936         (fallback_t): Typedef as int.
26937         * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
26938         GSI_SAME_STMT in function call.
26939         * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
26940         enum type.
26941         (setup_reg_class_relations): Likewise.
26942         (setup_reg_class_nregs): Change cl to int.  Add casts to enum type.
26943         (setup_prohibited_class_mode_regs): Add cast to enum type.
26944         (setup_prohibited_mode_move_regs): Likewise.
26945         * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
26946         (record_address_regs): Change i to enum reg_class.
26947         * lists.c (alloc_EXPR_LIST): Add cast to enum type.
26948         * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
26949         (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
26950         (GET_MODE_2XWIDER_MODE): Likewise.
26951         (GET_CLASS_NARROWEST_MODE): Likewise.
26952         * omp-low.c (expand_omp_for): Add cast to enum type.
26953         * optabs.c (debug_optab_libfuncs): Add casts to enum type.
26954         * opts.c (enable_warning_as_error): Change kind to diagostic_t.
26955         * postreload.c (reload_cse_simplify_operands): Change rclass local
26956         to enum reg_class.
26957         * predict.c (combine_predictions_for_insn): Change best_predictor
26958         and predictor to enum br_predictor.
26959         (combine_predictions_for_bb): Likewise.
26960         (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
26961         use SET_PREDICT_EXPR_OUTCOME.
26962         * real.c (real_arithmetic): Change icode to code in function call.
26963         * reginfo.c (init_move_cost): Add casts to enum type.
26964         (init_reg_sets_1, init_fake_stack_mems): Likewise.
26965         * regmove.c (regclass_compatible_p): Change class0 and class1 to
26966         enum reg_class.
26967         * reload.c (find_valid_class): Add casts to enum type.
26968         (push_reload): Change 0 to NO_REGS in function call.
26969         (find_reloads): Change this_alternative to array of enum
26970         reg_class.  Remove some now-unnecessary casts.
26971         (make_memloc): Change 0 to VOIDmode in function call.
26972         * reload1.c (reload): Change 0 to VOIDmode in function call.
26973         (eliminate_regs_1, elimination_effects): Likewise.
26974         (eliminate_regs_in_insn): Likewise.
26975         (emit_input_reload_insns): Add cast to enum type.
26976         (delete_output_reload): Change 0 to VOIDmode in function call.
26977         * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
26978         to enum type in function call.
26979         * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
26980         (SET_PREDICT_EXPR_OUTCOME): Define.
26981         * tree-dump.c (get_dump_file_info): Change phase parameter to int.
26982         (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
26983         (dump_initialized_p, dump_flag_name, dump_end): Likewise.
26984         (dump_function): Likewise.
26985         * tree-dump.h: Update declarations.
26986         * tree-pass.h: Update declarations.
26987         * varasm.c (assemble_integer): Change mclass to enum mode_class.
26988         * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
26989         enum type.
26990         (arm_rtx_costs_1): Correct parenthesization.
26991         (arm_rtx_costs): Add casts to enum type.
26992         (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
26993         (vfp_emit_fstmd): Use add_rg_note.
26994         (emit_multi_reg_push, emit_sfm): Likewise.
26995         (thumb_set_frame_pointer): Likewise.
26996         (arm_expand_prologue): Likewise.
26997         (arm_regno_class): Change return type to enum reg_class.
26998         (thumb1_expand_prologue): Use add_reg_note.
26999         * config/arm/arm-protos.h (arm_regno_class): Update declaration.
27000         * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
27001         in function call.
27002         * config/arm/gentune.sh: Add cast to enum type.
27003         * config/arm/arm-tune.md: Rebuild.
27004         * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
27005         (ix86_split_fp_branch, predict_jump): Likewise.
27006         (ix86_expand_multi_arg_builtin): Change sub_code from enum
27007         insn_code to enum rtx_code.
27008         (ix86_builtin_vectorized_function): Add cast to enum type.
27009         * config/i386/i386.md (truncdfsf2): Change slot to enum
27010         ix86_stack_slot.
27011         (truncxf<mode>2, isinf<mode>2): Likewise.
27012         * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
27013         enum type.
27014         * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
27015         (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
27016         (insert_bundle_state): Change 1 to INSERT in function call.
27017         (ia64_add_bundle_selector_before): Likewise.
27018         * config/ia64/ia64.md (cpu attr): Add cast to enum type.
27019         (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
27020         (restore_stack_nonlocal): Likewise.
27021         * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
27022         function call.
27023         * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
27024         function call.
27025         (mips_rtx_costs): Likewise.
27026         (mips_override_options): Add casts to enum type.
27027         * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
27028         in function call.
27029         * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
27030         (store_reg, set_reg_plus_d): Likewise.
27031         (hppa_expand_prologue, hppa_profile_hook): Likewise.
27032         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
27033         cast to enum type.
27034         (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
27035         function call.
27036         (emit_unlikely_jump): Use add_reg_note.
27037         (rs6000_emit_allocate_stack): Likewise.
27038         (rs6000_frame_related, rs6000_emit_prologue): Likewise.
27039         (output_toc): Change 1 to INSERT in function call.
27040         (output_profile_hook): Change 0 to LCT_NORMAL in function call.
27041         (rs6000_initialize_trampoline): Likewise.
27042         (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
27043         function call.
27044         * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
27045         (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
27046         (s390_expand_setmem, s390_expand_cmpmem): Likewise.
27047         (save_gprs): Use add_reg_note.
27048         (s390_emit_prologue): Likewise.
27049         (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
27050         * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
27051         (sparc_fold_builtin): Add cast to enum type.
27052         * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
27053         enum insn_code.
27054         (spu_expand_prologue): Use add_reg_note.
27055         (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
27056
27057 2009-04-20  Ian Lance Taylor  <iant@google.com>
27058
27059         * c-parser.c (c_parser_attributes): Change VEC back to tree list.
27060         (c_parser_postfix_expression_after_primary): Get VEC for list of
27061         arguments.  Get original types of arguments.  Call
27062         build_function_call_vec.
27063         (cached_expr_list_1, cached_expr_list_2): New static variables.
27064         (c_parser_expr_list): Change return type to VEC *.  Add
27065         p_orig_types parameter.  Change all callers.
27066         (c_parser_release_expr): New static function.
27067         (c_parser_vec_to_tree_list): New static function.
27068         * c-typeck.c (build_function_call): Rewrite to build a VEC and
27069         call build_function_call_vec.
27070         (build_function_call_vec): New function, based on old
27071         build_function_call.
27072         (convert_arguments): Remove nargs and argarray parameters.  Change
27073         values to a VEC.  Add origtypes parameter.
27074         (build_modify_expr): Add rhs_origtype parameter.  Change all callers.
27075         (convert_for_assignment): Add origtype parameter.  Change all
27076         callers.  If warn_cxx_compat, check for conversion to an enum
27077         type when calling a function.
27078         (store_init_value): Add origtype parameter.  Change all callers.
27079         (digest_init): Likewise.
27080         (struct init_node): Add origtype field.
27081         (add_pending_init): Add origtype parameter.  Change all callers.
27082         (output_init_element): Likewise.
27083         (output_pending_init_elements): Pass origtype from init_node to
27084         output_init_element.
27085         (process_init_element): Pass origtype from c_expr to
27086         output_init_element.
27087         (c_finish_return): Add origtype parameter.  Change all callers.
27088         * c-common.c (sync_resolve_size): Change params to VEC *.  Change
27089         caller.
27090         (sync_resolve_params): Likewise.
27091         (sync_resolve_return): Change params to first_param.  Change caller.
27092         (resolve_overloaded_builtins): Change params to VEC *.  Change
27093         callers.  Save first parameter around call to build_function_call_vec.
27094         * c-decl.c (finish_decl): Add origtype parameter.  Change all
27095         callers.  Call build_function_call_vec rather than
27096         build_function_call for cleanup.
27097         * c-tree.h: Update declarations.
27098         * c-common.h: Update declarations.
27099         * stub-objc.c (objc_rewrite_function_call): Change parameter from
27100         params to first_param.
27101         * target.h (struct gcc_target): Change resolve_overloaded_builtin
27102         params parameter from tree to void *.
27103         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27104         Change arglist parameter to have type void *, and to be a pointer
27105         to a VEC.
27106         * config/rs6000/rs6000-protos.h
27107         (altivec_resolve_overloaded_builtin): Update declaration.
27108         * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
27109         fnargs parameter to have type void *, and to be a pointer to a
27110         VEC.  Call build_function_call_vec instead of
27111         build_function_call.
27112         * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
27113
27114 2009-04-20  Joey Ye  <joey.ye@intel.com>
27115             Xuepeng Guo  <xuepeng.guo@intel.com>
27116             H.J. Lu  <hongjiu.lu@intel.com>
27117
27118         * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
27119
27120         * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
27121         (IX86_LEA_PRIORITY): Likewise.
27122         (distance_non_agu_define): New function.
27123         (distance_agu_use): Likewise.
27124         (ix86_lea_for_add_ok): Likewise.
27125         (ix86_dep_by_shift_count): Likewise.
27126
27127         * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
27128         should split for LEA.
27129
27130         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
27131         function.
27132         (ix86_dep_by_shift_count): Likewise.
27133
27134 2009-04-20  Richard Guenther  <rguenther@suse.de>
27135
27136         * expr.c (handled_component_p): Move ...
27137         * tree.h (handled_component_p): ... here.
27138         * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
27139         ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
27140         and REALPART_EXPR to be in one group.
27141
27142 2009-04-20  Richard Guenther  <rguenther@suse.de>
27143
27144         * basic-block.h (get_all_dominated_blocks): Declare.
27145         * dominance.c (get_all_dominated_blocks): New function.
27146         * tree-cfg.c (get_all_dominated_blocks): Remove.
27147         (remove_edge_and_dominated_blocks): Adjust.
27148         * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
27149         (tree_ssa_phiprop): ... here.  Use get_all_dominated_blocks
27150         instead of recursing.
27151
27152 2009-04-20  Doug Kwan  <dougkwan@google.com>
27153
27154         * cgraph.h (cgraph_node_ptr): New type for vector functions.
27155         (struct cgraph_node_set_def): New type.
27156         (cgraph_node_set) New type. Also declare vector functions.
27157         (struct cgraph_node_set_element_def): New type.
27158         (cgraph_node_set_element): Ditto.
27159         (cgraph_node_set_iterator): New iterator type.
27160         (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
27161         cgraph_node_set_remove, dump_cgraph_node_set,
27162         debug_cgraph_node_set): New prototypes.
27163         (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
27164         cgraph_node_set_size): New inlines.
27165         * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
27166         including cgraph.h.
27167         (struct ipa_opt_pass): Add struct cgraph_node_set_def
27168         argument to function 'write_summary'.
27169         * ipa.c: Include ggc.h.
27170         (hash_cgraph_node_set_element,
27171         eq_cgraph_node_set_element, cgraph_node_set_new,
27172         cgraph_node_set_add, cgraph_node_set_remove,
27173         cgraph_node_set_find, dump_cgraph_node_set,
27174         debug_cgraph_node_set): New functions.
27175         * Makefile.in (ipa.o): Add dependency on GGC_H.
27176
27177 2009-04-20  Ira Rosen  <irar@il.ibm.com>
27178
27179         PR tree-optimization/39675
27180         * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
27181         check of the return code of vect_schedule_slp. Check that
27182         stmt_vec_info still exists for the statement, before checking its
27183         vectorization type.
27184
27185 2009-04-20  Michael Matz  <matz@suse.de>
27186
27187         * Makefile.in (generated_files): Take out $(simple_generated_c).
27188
27189 2009-04-19  Dave Korn  <dave.korn.cygwin@gmail.com>
27190
27191         * config/i386/cygwin-stdint.h (INTPTR_TYPE):  Remove "long".
27192         (UINTPTR_TYPE):  Likewise.
27193
27194 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
27195
27196         PR c/37481
27197         * c-typeck.c (digest_init): Check for initializing an array with a
27198         string literal.
27199
27200 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
27201
27202         PR c/19771
27203         * c-semantics.c (pop_stmt_list): Propagate
27204         STATEMENT_LIST_HAS_LABEL to parent statement list.
27205
27206 2009-04-19  Adam Nemet  <anemet@caviumnetworks.com>
27207
27208         * config/mips/mips.h (mips_tune_attr): New macro.
27209         * config/mips/mips.md (cpu): Use it.
27210
27211 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
27212
27213         PR c/38243
27214         * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
27215         declaring a tag.
27216
27217 2009-04-19  Diego Novillo  <dnovillo@google.com>
27218
27219         * toplev.c (compile_file): Move call to coverage_finish ...
27220         * cgraphunit.c (ipa_passes): ... here.
27221         Call cgraph_process_new_functions.
27222         * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
27223         * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
27224
27225 2009-04-19  Jan Hubicka  <jh@suse.cz>
27226
27227         * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
27228         cfun.
27229         (dump_cgraph_node): Dump can throw external flag.
27230         * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
27231
27232 2009-04-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27233
27234         PR c/32061
27235         PR c++/36954
27236         * doc/invoke.texi: Add -Wlogical-op to -Wextra.
27237         * common.opt (Wlogical-op): Move from here...
27238         * c.opt (Wlogical-op): ... to here.
27239         * c-typeck.c (parser_build_binary_op): Update call to
27240         warn_logical_operator.
27241         * c-opts.c (c_common_post_options): Enable warn_logical_op with
27242         extra_warnings.
27243         * c-common.c (warn_logical_op): Update.
27244         * c-common.h (warn_logical_op): Update declaration.
27245
27246 2009-04-19  Eric Botcazou  <ebotcazou@adacore.com>
27247
27248         * tree.c (protected_set_expr_location): Fix formatting.
27249
27250 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
27251
27252         PR c/27676
27253         * c-typeck.c (readonly_warning): new.
27254         (build_unary_op, build_modify_expr): Use readonly_warning for
27255         storing into something readonly but not const-qualified.
27256
27257 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
27258
27259         PR c/22367
27260         * c-typeck.c (build_unary_op): Check for taking address of
27261         expression of type void.
27262
27263 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
27264
27265         PR c/35210
27266         * c-typeck.c (build_function_call): Check for calling a function
27267         with qualified void return types.  Call require_complete_type when
27268         generating a trap.
27269
27270 2009-04-18  Jan Hubicka  <jh@suse.cz>
27271
27272         * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
27273         Set nothrow flag.
27274         * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
27275         can_throw_external flag.
27276         * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
27277         * ipa-pure-const.c (ignore_edge): New function.
27278         (propagate): Compute order for NOTHROW computation; set NOTHROWs
27279         only over can_throw_external edges.
27280         (local_pure_const): Add nothrow flag.
27281         * ipa-utils.c (searchc): Add ignore_edge callback.
27282         (ipa_utils_reduced_inorder): Add ignore_edge callback.
27283         * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
27284         (set_nothrow_function_flags): Update cgraph.
27285         * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
27286
27287 2009-04-18  Richard Guenther  <rguenther@suse.de>
27288
27289         PR middle-end/39804
27290         * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
27291         (fold_stmt): ... this and ...
27292         (fold_stmt_inplace): ... this.
27293         (fold_stmt_1): Fold references in calls and asms.
27294         * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
27295
27296 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
27297
27298         * tree-vrp.c (ssa_name_nonzero_p): Remove.
27299         * tree.h: Remove the prototype for ssa_name_nonzero_p.
27300
27301 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
27302
27303         * tree.c (function_args_count): Remove.
27304         * tree.h: Remove the prototype for function_args_count.
27305
27306 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
27307
27308         * tree-iterator.c (expr_only): Remove.
27309         * tree.h: Remove the prototype for expr_only.
27310
27311 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
27312
27313         * reginfo.c (cannot_change_mode_set_regs): Remove.
27314         * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
27315
27316 2009-04-08  Anatoly Sokolov  <aesok@post.ru>
27317
27318         * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
27319         whether operands 0 and 1 overlaps.
27320
27321 2009-04-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27322
27323         PR middle-end/36902
27324         * tree-vrp.c (check_array_ref): Pass a location_t instead of a
27325         pointer. Use warning_at instead of warning.
27326         (search_for_addr_array): Likewise.
27327         (check_array_bounds): Likewise.
27328         (check_all_array_refs): Check that the incoming edge is not in the
27329         list of edges to be removed.
27330         (check_all_array_refs): Avoid the temporal pointer.
27331         (vrp_visit_cond_stmt): Fix typo.
27332         (simplify_switch_using_ranges): Handle the case where the switch
27333         index is an integer constant.
27334
27335 2009-04-18  Adam Nemet  <anemet@caviumnetworks.com>
27336
27337         * config/mips/mips.c (mips_final_postscan_insn): Make it static.
27338
27339 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
27340
27341         * doc/extend.texi, doc/invoke.texi: Fix typos.
27342
27343 2009-04-17  Cary Coutant  <ccoutant@google.com>
27344
27345         * tree-flow-inline.h (get_lineno): Fix inverted test.
27346
27347 2009-04-17  Diego Novillo  <dnovillo@google.com>
27348
27349         * tree-ssa-pre.c (create_expression_by_pieces): Remove
27350         assertion for AVAIL_OUT.
27351
27352 2009-04-17  Mike Frysinger  <vapier@gentoo.org>
27353
27354         PR target/38627
27355         * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
27356         * config/sh/linux-atomic.asm: Likewise.
27357
27358 2009-04-17  Diego Novillo  <dnovillo@google.com>
27359
27360         * except.c (debug_eh_tree): New.
27361         (struct eh_region, struct eh_status): Move ...
27362         * except.h: ... here.
27363         (add_type_for_runtime): Declare extern.
27364         (lookup_type_for_runtime): Likewise.
27365         (debug_eh_tree): Declare.
27366         * Makefile.in (GTFILES): List except.h before except.c
27367
27368 2009-04-17  Diego Novillo  <dnovillo@google.com>
27369
27370         * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
27371         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
27372         * tree-dfa.c (find_referenced_vars_in): Factor out of ...
27373         (find_vars_r): ... here.
27374         * tree-flow.h (find_referenced_vars_in): Declare.
27375         * tree-ssa-pre.c (create_expression_by_pieces): Assert
27376         that AVAIL_OUT exists for BLOCK.
27377         * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
27378         (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
27379         (tree-parloops.o): Likewise.
27380
27381 2009-04-17  Simon Baldwin  <simonb@google.com>
27382
27383         * toplev.c (default_tree_printer): Add handling for %E format.
27384
27385 2009-04-17  Diego Novillo  <dnovillo@google.com>
27386
27387         * tree-pretty-print.c (dump_generic_node): Add break after
27388         TREE_BINFO handler.  Handle COMPLEX_TYPE, REAL_TYPE and
27389         FIXED_POINT_TYPE.  Handle NULL TREE_TYPEs.  Handle METHOD_TYPE and
27390         FUNCTION_TYPE together.  Call print_struct_decl when printing
27391         structures and TDF_SLIM is not given.
27392         (print_struct_decl): Fix logic for detecting recursion.
27393
27394 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
27395
27396         PR 31567
27397         * gcc.c (create_at_file): New.
27398         (compile_input_file_p): New.
27399         (do_spec_1): Use @args files for %i. Use create_at_file for %o.
27400         * main.c (main): Update call to toplev_main.
27401         * toplev.c (toplev_main): Change signature. Call expandargv.
27402         * toplev.h (toplev_main): Change signature.
27403
27404 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
27405
27406         * dwarf2out.c (field_byte_offset): Use the type size as the field size
27407         if the latter is not constant.
27408
27409 2009-04-17  David Edelsohn  <edelsohn@gnu.org>
27410
27411         * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
27412
27413 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
27414
27415         * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
27416         * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
27417
27418 2009-04-17  Richard Guenther  <rguenther@suse.de>
27419
27420         * tree-ssa-structalias.c (get_constraint_for_component_ref):
27421         Handle component references view-converting an invariant address.
27422
27423 2009-04-17  Adam Nemet  <anemet@caviumnetworks.com>
27424
27425         * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
27426         TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
27427         TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
27428         TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
27429         Use @deftypevr rather than @deftypevar.
27430
27431 2009-04-17  Richard Guenther  <rguenther@suse.de>
27432
27433         * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
27434         (get_prop_source_stmt): Likewise.
27435         (can_propagate_from): Likewise.
27436
27437 2009-04-17  Andrew Stubbs  <ams@codesourcery.com>
27438
27439         * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
27440         TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
27441         (--with-multilib-list): Add default value.
27442         * configure: Regenerate.
27443         * Makefile.in (TM_ENDIAN_CONFIG): Define.
27444         (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
27445         * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
27446         TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
27447         Don't add default cpu to multilib list unnecessarily, but do enable
27448         the relevant compiler option..
27449         Add support for --with-multilib-list=<blank> and
27450         --with-multilib-list=!<somelib> to supress unwanted multilibs.
27451         * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
27452         (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
27453         (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
27454         TM_MULTILIB_CONFIG.
27455         (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
27456         (MULTILIB_OSDIRNAMES): New variable.
27457         * config/sh/t-1e: Delete file.
27458         * config/sh/t-mlib-sh1: Delete file.
27459         * config/sh/t-mlib-sh2: Delete file.
27460         * config/sh/t-mlib-sh2a: Delete file.
27461         * config/sh/t-mlib-sh2a-nofpu: Delete file.
27462         * config/sh/t-mlib-sh2a-single: Delete file.
27463         * config/sh/t-mlib-sh2a-single-only: Delete file.
27464         * config/sh/t-mlib-sh2e: Delete file.
27465         * config/sh/t-mlib-sh3e: Delete file.
27466         * config/sh/t-mlib-sh4: Delete file.
27467         * config/sh/t-mlib-sh4-nofpu: Delete file.
27468         * config/sh/t-mlib-sh4-single: Delete file.
27469         * config/sh/t-mlib-sh4-single-only: Delete file.
27470         * config/sh/t-mlib-sh4a: Delete file.
27471         * config/sh/t-mlib-sh4a-nofpu: Delete file.
27472         * config/sh/t-mlib-sh4a-single: Delete file.
27473         * config/sh/t-mlib-sh4a-single-only: Delete file.
27474         * config/sh/t-mlib-sh4al: Delete file.
27475         * config/sh/t-mlib-sh5-32media: Delete file.
27476         * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
27477         * config/sh/t-mlib-sh5-64media: Delete file.
27478         * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
27479         * config/sh/t-mlib-sh5-compact: Delete file.
27480         * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
27481         * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
27482         * doc/install.texi (Options specification): Add
27483         --with-multilib-list and --with-endian.
27484
27485 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
27486
27487         * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
27488         REVISION_c.
27489         (OBJS-common): Add plugin-version.o.
27490         (plugin-version.o): New.
27491         * gcc-plugin.h (plugin_gcc_version): New.
27492         (plugin_default_version_check): New.
27493         (plugin_init_func, plugin_init): Add version argument.
27494         * plugin-version.c: New.
27495         * plugin.c (str_plugin_gcc_version_name): New.
27496         (try_init_one_plugin): Read plugin_gcc_version from the plugin and
27497         pass it to the init function.
27498         (plugin_default_version_check): New.
27499
27500 2009-04-17  Richard Guenther  <rguenther@suse.de>
27501
27502         * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
27503         for decl-vs-decl disambiguation.
27504
27505 2009-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
27506
27507         * config/s390/s390.h (s390_tune_attr): New macro definition.
27508         * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
27509
27510 2009-04-17  Richard Guenther  <rguenther@suse.de>
27511
27512         * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
27513         (fold_stmt_r): Likewise.
27514         (maybe_fold_reference): New function.
27515         (fold_gimple_assign): Handle cases fold_stmt_r did.
27516         (fold_stmt): Do not use fold_stmt_r.
27517         (fold_stmt_inplace): Likewise.
27518
27519 2009-04-17  Richard Guenther  <rguenther@suse.de>
27520
27521         * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
27522         (record_equivalences_from_stmt): Remove useless checks and
27523         simplifications.
27524         * tree-ssa-pre.c (eliminate): Avoid converting a constant if
27525         the type is already suitable.
27526
27527 2009-04-17  Paolo Bonzini  <bonzini@gnu.org>
27528
27529         * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
27530
27531 2009-04-17  Uros Bizjak  <ubizjak@gmail.com>
27532
27533         * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
27534         (CMPtype): Define as __gcc_CMPtype.
27535
27536 2009-04-17  Aurelien Jarno  <aurelien@aurel32.net>
27537
27538         * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
27539         for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
27540
27541 2009-04-17  Richard Guenther  <rguenther@suse.de>
27542
27543         PR tree-optimization/39746
27544         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
27545         special-casing for builtins and static variable use/def.
27546         (call_may_clobber_ref_p_1): Likewise.
27547
27548 2009-04-16  Ian Lance Taylor  <iant@google.com>
27549
27550         * df.h: Include "timevar.h".
27551         (struct df_problem): Change tv_id field to timevar_id_t.
27552         * tree-pass.h: Include "timevar.h".
27553         (struct opt_pass): Change tv_id field to timevar_id_t.
27554         * timevar.h (timevar_id_t): Define TV_NONE.
27555         * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
27556         TV_NONE rather than tv_id != 0.
27557         (execute_one_pass): Likewise.
27558         * Makefile.in (DF_H): Add $(TIMEVAR_H).
27559         (TREE_PASS_H): Define.  Change all instances of tree-pass.h in
27560         dependencies to $(TREE_PASS_H).
27561         * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
27562         to TV_NONE.
27563         (pass_branch_target_load_optimize2): Likewise.
27564         * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
27565         (pass_outof_cfg_layout_mode): Likewise.
27566         * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
27567         (pass_rebuild_cgraph_edges): Likewise.
27568         (pass_remove_cgraph_callee_edges): Likewise.
27569         * df-core.c (pass_df_initialize_opt): Likewise.
27570         (pass_df_initialize_no_opt): Likewise.
27571         (pass_df_finish): Likewise.
27572         * emit-rtl.c (pass_unshare_all_rtl): Likewise.
27573         * except.c (pass_set_nothrow_function_flags): Likewise.
27574         (pass_convert_to_eh_region_ranges): Likewise.
27575         * final.c (pass_compute_alignments): Likewise.
27576         * function.c (pass_instantiate_virtual_regs): Likewise.
27577         (pass_init_function): Likewise.
27578         (pass_leaf_regs): Likewise.
27579         (pass_match_asm_constraints): Likewise.
27580         * gimple-low.c (pass_lower_cf): Likewise.
27581         (pass_mark_used_blocks): Likewise.
27582         * init-regs.c (pass_initialize_regs): Likewise.
27583         * integrate.c (pass_initial_value_sets): Likewise.
27584         * ira.c (pass_ira): Likewise.
27585         * jump.c (pass_cleanup_barriers): Likewise.
27586         * omp-low.c (pass_expand_omp): Likewise.
27587         (pass_lower_omp): Likewise.
27588         * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
27589         * recog.c (pass_split_all_insns): Likewise.
27590         (pass_split_after_reload): Likewise.
27591         (pass_split_before_regstack): Likewise.
27592         (pass_split_before_sched2): Likewise.
27593         (pass_split_for_shorten_branches): Likewise.
27594         * reginfo.c (pass_reginfo_init): Likewise.
27595         (pass_subregs_of_mode_init): Likewise.
27596         (pass_subregs_of_mode_finish): Likewise.
27597         * passes.c (pass_postreload): Likewise.
27598         * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
27599         * tree-cfg.c (pass_remove_useless_stmts): Likewise.
27600         (pass_warn_function_return): Likewise.
27601         (pass_warn_function_noreturn): Likewise.
27602         * tree-complex.c (pass_lower_complex): Likewise.
27603         (pass_lower_complex_O0): Likewise.
27604         * tree-if-conv.c (pass_if_conversion): Likewise.
27605         * tree-into-ssa.c (pass_build_ssa): Likewise.
27606         * tree-mudflap.c (pass_mudflap_1): Likewise.
27607         (pass_mudflap_2): Likewise.
27608         * tree-nomudflap.c (pass_mudflap_1): Likewise.
27609         (pass_mudflap_2): Likewise.
27610         * tree-nrv.c (pass_return_slot): Likewise.
27611         * tree-object-size.c (pass_object_sizes): Likewise.
27612         * tree-optimize.c (pass_all_optimizations): Likewise.
27613         (pass_early_local_passes): Likewise.
27614         (pass_all_early_optimizations): Likewise.
27615         (pass_cleanup_cfg): Likewise.
27616         (pass_cleanup_cfg_post_optimizing): Likewise.
27617         (pass_free_datastructures): Likewise.
27618         (pass_free_cfg_annotations): Likewise.
27619         (pass_fixup_cfg): Likewise.
27620         (pass_init_datastructures): Likewise.
27621         * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
27622         (pass_late_warn_uninitialized): Likewise.
27623         (pass_update_address_taken): Likewise.
27624         * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
27625         * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
27626         (pass_cse_sincos): Likewise.
27627         (pass_convert_to_rsqrt): Likewise.
27628         * tree-ssa-structalias.c (pass_build_alias): Likewise.
27629         * tree-stdarg.c (pass_stdarg): Likewise.
27630         * tree-tailcall.c (pass_tail_recursion): Likewise.
27631         (pass_tail_calls): Likewise.
27632         * tree-vect-generic.c (pass_lower_vector): Likewise.
27633         (pass_lower_vector_ssa): Likewise.
27634         * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
27635
27636 2009-04-16  Joseph Myers  <joseph@codesourcery.com>
27637
27638         * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
27639         XLR entry.
27640         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
27641         Handle -march=xlr.
27642         * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
27643         logical and signext.
27644
27645 2009-04-16  Kaz Kojima  <kkojima@gcc.gnu.org>
27646
27647         PR target/39767
27648         * config/sh/predicates.md (arith_operand): Check if the operand
27649         of TRUNCATE is a REG.
27650
27651 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
27652
27653         * cfgrtl.c (delete_insn_chain_and_edges): Remove.
27654         * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
27655
27656 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
27657
27658         * tree-iterator.c (tsi_split_statement_list_after,
27659         tsi_split_statement_list_before): Remove.
27660         * tree-iterator.h: Remove the prototypes for
27661         tsi_split_statement_list_after and tsi_split_statement_list_before.
27662
27663 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
27664
27665         * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
27666         * tree-ssa-propagate.h: Remove the prototype for
27667         stmt_makes_single_load.
27668
27669 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
27670
27671         * emit-rtl.c (set_mem_attrs_from_reg): Remove.
27672         * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
27673
27674 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
27675
27676         * tree-iterator.c (EXPR_LAST_BODY): Remove.
27677
27678 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
27679
27680         * except.c (eh_region_outer_p): Remove.
27681         * except.h: Remove the prototype for eh_region_outer_p.
27682
27683 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
27684
27685         * function.c (current_function_assembler_name): Remove.
27686         * function.h: Remove the prototype for
27687         current_function_assembler_name.
27688
27689 2009-04-16  Ian Lance Taylor  <iant@google.com>
27690
27691         * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
27692         (add_reg_note): Call alloc_reg_note.
27693         * rtl.h (alloc_reg_note): Declare.
27694         * combine.c (try_combine): Use alloc_reg_note.
27695         (recog_for_combine, move_deaths): Likewise.
27696         (distribute_notes): Use alloc_reg_note and add_reg_note.
27697         * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
27698         * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
27699         * reload1.c (eliminate_regs_1): Use alloc_reg_note.
27700
27701 2009-04-16  Vladimir Makarov  <vmakarov@redhat.com>
27702
27703         PR rtl-optimization/39762
27704         * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
27705         ira_may_move_out_cost): Add comments about way of their usage.
27706         (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
27707
27708         * ira-conflicts.c (process_regs_for_copy): Use function
27709         ira_get_register_move_cost instead of global
27710         ira_register_move_cost.
27711
27712         * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
27713         color_pass, move_spill_restore, update_curr_costs): Ditto.
27714
27715         * ira-lives.c (process_single_reg_class_operands): Ditto.
27716
27717         * ira-emit.c (emit_move_list): Ditto.
27718
27719         * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
27720         (record_reg_classes): Ditto.  Use functions
27721         ira_get_register_move_cost and ira_get_may_move_cost instead of
27722         global vars ira_register_move_cost, ira_may_move_out_cost and
27723         ira_may_move_in_cost.
27724         (record_address_regs): Don't call ira_init_register_move_cost.
27725         Use function ira_get_may_move_cost instead of global
27726         ira_may_move_in_cost.
27727         (process_bb_node_for_hard_reg_moves): Use function
27728         ira_get_register_move_cost instead of global ira_register_move_cost.
27729         (ira_costs): Don't call ira_init_register_move_cost.
27730
27731 2009-04-16  Richard Guenther  <rguenther@suse.de>
27732
27733         * tree-cfg.c (verify_gimple_assign_binary):
27734         Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
27735         * ipa-struct-reorg.c (gen_size): Fold the built expressions.
27736         (create_general_new_stmt): Note that this function is broken.
27737
27738 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
27739
27740         * common.opt (fhelp): Add Var(help_flag).
27741         * gcc-plugin.h (plugin_info): Add help.
27742         * plugin.c (plugin_name_args): Add help.
27743         (register_plugin_info): Set plugin->help.
27744         (print_help_one_plugin): New.
27745         (print_plugins_help): New.
27746         * plugin.h (print_plugins_help): New.
27747         * toplev.c (toplev_main): Call print_plugins_help if needed.
27748
27749 2009-04-16  Richard Guenther  <rguenther@suse.de>
27750
27751         * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
27752         (gimple_ior_addresses_taken_1): New function.
27753         (gimple_ior_addresses_taken): Likewise.
27754         * gimple.h (struct gimple_statement_with_ops_base): Remove
27755         addresses_taken member.
27756         (gimple_ior_addresses_taken): Declare.
27757         (gimple_addresses_taken, gimple_addresses_taken_ptr,
27758         gimple_set_addresses_taken): Remove.
27759         * ipa-reference.c (mark_address): New function.
27760         (scan_stmt_for_static_refs): Use it for marking addresses taken.
27761         * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
27762         (mark_address_taken): ... this.  Just set TREE_ADDRESSABLE.
27763         (gimple_add_to_addresses_taken): Remove.
27764         (get_tmr_operands): Call mark_address_taken.
27765         (get_asm_expr_operands): Likewise.
27766         (get_expr_operands): Likewise.
27767         (build_ssa_operands): Do not clear the addresses_taken bitmap.
27768         (free_stmt_operands): Do not free it.
27769         * tree-ssa.c (delete_tree_ssa): Likewise.
27770         (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
27771
27772 2009-04-16  Richard Guenther  <rguenther@suse.de>
27773
27774         * gimple.h (walk_stmt_load_store_addr_ops): Declare.
27775         (walk_stmt_load_store_ops): Likewise.
27776         * gimple.c (get_base_loadstore): New function.
27777         (walk_stmt_load_store_addr_ops): Likewise.
27778         (walk_stmt_load_store_ops): Likewise.
27779         * ipa-pure-const.c (check_op): Simplify.
27780         (check_load, check_store): New functions.
27781         (check_stmt): Use walk_stmt_load_store_ops.
27782         * ipa-reference.c (mark_load): Adjust signature.
27783         (mark_store): Likewise.
27784         (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
27785
27786 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
27787
27788         * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
27789         (plugin_info): New.
27790         * opts.c (common_handle_option): Don't call print_version.
27791         * plugin.c (plugin_name_args): Add version.
27792         (register_plugin_info): New.
27793         (register_callback): Handle PLUGIN_INFO.
27794         (try_init_one_plugin): New.
27795         (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
27796         if failed to init.
27797         (finalize_one_plugin): New.
27798         (finalize_plugins): New.
27799         (print_one_plugin): New.
27800         (print_plugins_versions): New.
27801         * plugin.h (print_plugins_versions): New.
27802         (finalize_plugins): New.
27803         * toplev.c (compile_file): Don't call initialize_plugins.
27804         (print_version): Call print_plugins_versions.
27805         (toplev_main): Call initialize_plugins. Print version if needed.
27806         Call finalize_plugins.
27807
27808 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
27809
27810         * common.opt (fversion): New.
27811         * gcc.c (print_version): New.
27812         (process_command): Don't print the version. Just set print_version.
27813         (main): Print version. Call subprocesses if print_version and
27814         verbose_flag are set.
27815         * opts.c (common_handle_option): Handle OPT_fversion.
27816
27817 2009-04-16  Richard Guenther  <rguenther@suse.de>
27818             Ira Rosen  <irar@il.ibm.com>
27819
27820         PR tree-optimization/39698
27821         * tree-vect-loop.c (get_initial_def_for_reduction): Use the
27822         type of the reduction variable.  Only generate the def if
27823         it is needed.
27824
27825         * omp-low.c (expand_omp_for_generic): When converting to a pointer
27826         make sure to first convert to an integer of the same precision.
27827         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
27828         the type of the evolution correctly in computing the new
27829         induction variable base.
27830
27831 2009-04-16  Richard Guenther  <rguenther@suse.de>
27832
27833         PR middle-end/39625
27834         * tree-cfg.c (make_blocks): Split statements with to-be
27835         abnormal SSA names on the lhs.
27836
27837 2009-04-16  Paolo Bonzini  <bonzini@gnu.org>
27838
27839         * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
27840         Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
27841         * c-typeck.c (really_start_incremental_init): Likewise.
27842         * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
27843         (TARGET_INITIALIZER): Remove it.
27844         * target.h (struct target): Remove vector_opaque_p.
27845         * tree.c (build_opaque_vector_type): New.
27846         * tree.h (TYPE_VECTOR_OPAQUE): New.
27847         (build_opaque_vector_type): Declare.
27848         * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
27849         * config/rs6000/rs6000.c (build_opaque_vector_type,
27850         rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
27851         (rs6000_init_builtins): Use build_opaque_vector_type for
27852         opaque_V4SI_type_node.
27853
27854 2009-04-15  Catherine Moore  <clm@codesourcery.com>
27855
27856         * debug.h (set_name):  Declare.
27857         * dwarf2out.c (dwarf2out_set_name): Declare.
27858         (dwarf2_debug_hooks): Add set_name.
27859         (find_AT_string): New.
27860         (add_AT_string): Call find_AT_string.
27861         (dwarf2out_set_name): New.
27862         * cp/decl.c (grokdeclarator): Call set_name.
27863         * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
27864         * debug.c (do_nothing_debug_hooks):  Likewise.
27865         * dbxout.c (dbx_debug_hooks): Likewise.
27866         * sdbout.c (sdb_debug_hooks): Likewise.
27867
27868 2009-04-15  Michael Eager  <eager@eagercon.com>
27869
27870         * config/rs6000/rs6000.c (rs6000_function_value): Set function return
27871         reg for single-precision FPU.
27872         * config/rs6000/rs6000.md (movsi_internal1): Only for
27873         !TARGET_SINGLE_FPU.
27874         (movsi_internal1_single): New. Add pattern to move SI values to/from
27875         single-precision FP regs.
27876
27877 2009-04-15  Richard Guenther  <rguenther@suse.de>
27878
27879         * omp-low.c (lower_rec_input_clauses): Build correct address
27880         expressions.
27881         (expand_omp_for_generic): Fix multiplication type.
27882         * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
27883         (generate_memset_zero): Fix types.
27884         * tree-profile.c (prepare_instrumented_value): Correctly
27885         widen a pointer.
27886
27887 2009-04-15  Ian Lance Taylor  <iant@google.com>
27888
27889         * c.opt (Wenum-compare): Enable for C and Objc.  Initialize to -1.
27890         * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
27891         for -Wall and for -Wc++-compat.
27892         (c_common_post_options): For C++, set warn_enum_compare if not
27893         already set.
27894         * c-tree.h (struct c_expr): Add field original_type.
27895         (build_external_ref): Update declaration.
27896         * c-parser.c (c_parser_braced_init): Set original_type.
27897         (c_parser_initelt): Likewise.
27898         (c_parser_expr_no_commas): Likewise.
27899         (c_parser_conditional_expression): Likewise.
27900         (c_parser_cast_expression): Likewise.
27901         (c_parser_unary_expression): Likewise.  Pull setting of
27902         original_code to top of function.
27903         (c_parser_sizeof_expression): Set original_type.
27904         (c_parser_alignof_expression): Likewise.
27905         (c_parser_postfix_expression): Likewise.  Pull setting of
27906         original_code to top of function.
27907         (c_parser_postfix_expression_after_paren_type): Set original_type.
27908         (c_parser_postfix_expression_after_primary): Likewise.
27909         (c_parser_expression): Likewise.
27910         * c-typeck.c (build_external_ref): Add type parameter.  Change all
27911         callers.
27912         (c_expr_sizeof_expr): Set original_type field.
27913         (parser_build_unary_op): Likewise.
27914         (parser_build_binary_op): Likewise.  Optionally warn about
27915         comparisons of enums of different types.
27916         (digest_init): Set original_type field.
27917         (really_start_incremental_init): Likewise.
27918         (push_init_level, pop_init_level): Likewise.
27919         * doc/invoke.texi (Warning Options): -Wenum-compare now
27920         supported in C.
27921
27922 2009-04-15  Richard Guenther  <rguenther@suse.de>
27923
27924         * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
27925         out a necessary conversion.
27926         * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
27927         names we didn't value number.
27928         * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
27929
27930 2009-04-15  Richard Guenther  <rguenther@suse.de>
27931
27932         PR tree-optimization/39764
27933         * tree-ssa-ccp.c (get_value): Canonicalize value with
27934         canonicalize_float_value.
27935
27936 2009-04-15  Jan Hubicka  <jh@suse.cz>
27937
27938         * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
27939         Wrong version of patch.
27940
27941 2009-04-15  Jan Hubicka  <jh@suse.cz>
27942
27943         * builtins.def (va_start, va_end, va_copy): Mark nothrow.
27944
27945 2009-04-15  Nathan Sidwell  <nathan@codesourcery.com>
27946
27947         * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
27948         our distinct integral and vector types.
27949
27950 2009-04-15  Rafael Avila de Espindola  <espindola@google.com>
27951
27952         * class.c (build_vtbl_ref_1): Remove call to assemble_external.
27953         * init.c (build_vtbl_address): Remove call to assemble_external.
27954
27955 2009-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
27956
27957         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
27958         output for other floating point modes.
27959
27960 2009-04-14  Diego Novillo  <dnovillo@google.com>
27961
27962         * diagnostic.c (diagnostic_report_diagnostic): Do not
27963         warn about loaded plugins for DK_ERROR and DK_WARNING.
27964         * c-decl.c (declspecs_add_type): Move call to
27965         invoke_plugin_callbacks ...
27966         * c-parser.c (c_parser_declspecs): ... here.
27967         * plugin.c (dump_active_plugins): Tidy output.
27968
27969 2009-04-14  Diego Novillo  <dnovillo@google.com>
27970             Le-Chun Wu  <lcwu@google.com>
27971
27972         * configure.ac: Add --enable-plugin support.
27973         Define ENABLE_PLUGIN and PLUGINLIBS when specified.
27974         * Makefile.in (PLUGIN_H): Define.
27975         Export ENABLE_PLUGIN and GMPINC to site.exp.
27976         Add PLUGINLIBS to link command.
27977         Add/modify dependencies for plugin.o and files including plugin.h.
27978         (plugin.o): New.
27979         * config.in: Regenerate.
27980
27981         * opts.c (common_handle_option): Handle OPT_fplugin_ and
27982         OPT_fplugin_arg_.
27983
27984 2009-04-14  Le-Chun Wu  <lcwu@google.com>
27985
27986         * tree-pass.h (register_one_dump_file): Add a prototype for
27987         register_one_dump_file.
27988         * toplev.c (compile_file): Call initialize_plugins.
27989         (do_compile): Call invoke_plugin_callbacks.
27990         (toplev_main): Call invoke_plugin_callbacks.
27991         * common.opt: Add -fplugin= and -fplugin-arg-.
27992         * gcc-plugin.h: New public header file for plugins to include.
27993         * plugin.c: New source file.
27994         * plugin.h: New internal header file.
27995         * passes.c (register_one_dump_file): Make it external.
27996
27997         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
27998
27999 2009-04-14  Diego Novillo  <dnovillo@google.com>
28000
28001         * doc/plugins.texi: New.
28002         * doc/gccint.texi: Add reference to Plugins chapter.
28003         * doc/invoke.texi: Document -fplugin and -fplugin-arg
28004         * diagnostic.c (diagnostic_report_diagnostic): Warn about
28005         loaded plugins, if any.
28006         * timevar.def (TV_PLUGIN_INIT): Define.
28007         (TV_PLUGIN_RUN): Define.
28008         * plugin.c: Include timevar.h
28009         (plugins_active_p): New.
28010         (dump_active_plugins): New.
28011         (debug_active_plugins): New.
28012
28013 2009-04-14  Joseph Myers  <joseph@codesourcery.com>
28014
28015         * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
28016         library paths.
28017         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
28018
28019 2009-04-14  Kazu Hirata  <kazu@codesourcery.com>
28020
28021         * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
28022         the same as a minus without a shift.
28023
28024 2009-04-14  Nick Clifton  <nickc@redhat.com>
28025
28026         * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
28027         comparisons with small integers will always produce a short
28028         branch.
28029
28030 2009-04-14  Rafael Avila de Espindola  <espindola@google.com>
28031
28032         Merge:
28033         2008-12-19  Diego Novillo  <dnovillo@google.com>
28034
28035         * cgraph.c (dump_cgraph_node): Show memory address of NODE.
28036
28037 2009-04-14  Richard Guenther  <rguenther@suse.de>
28038
28039         * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
28040         verification.
28041         (verify_gimple_assign_binary): Likewise.  Handle shifts and
28042         rotates correctly.
28043         (verify_gimple_phi): Print the mismatched argument position.
28044         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
28045         Fix types.
28046         (vect_update_init_of_dr): Likewise.
28047         * matrix-reorg.c (transform_access_sites): Do what the
28048         comment suggests.
28049         * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
28050
28051 2009-04-13  Michael Eager  <eager@eagercon.com>
28052
28053         * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
28054         _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
28055         * config/rs6000/xilinx.h: New.  Spec for powerpc-xilinx-eabi
28056         * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
28057         remove duplicate config
28058
28059 2009-04-13  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
28060
28061         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
28062         file_name:line_number type locator of the call site.
28063
28064 2009-04-13  Vladimir Makarov  <vmakarov@redhat.com>
28065
28066         * genautomata.c: Put blank after comma.
28067         (automaton_decls): New.
28068         (struct unit_usage): Add comments to member next.
28069         (store_alt_unit_usage): Keep the list ordered.
28070         (unit_present_on_list_p, equal_alternatives_p): New.
28071         (check_regexp_units_distribution): Check units distribution
28072         correctness correctly.
28073         (main): Don't write automata if error is found.  Return correct
28074         exit code.
28075
28076         * config/m68k/cf.md (cfv4_ds): Remove.
28077         (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
28078         cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
28079
28080         * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
28081         power4-load-ext, power4-store, power4-store-update,
28082         power4-fpstore, power4-fpstore-update, power4-two, power4-three,
28083         power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
28084         power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
28085         power4-sqrt, power4-isync): Modify reservation to make correct
28086         unit distribution to automata.
28087
28088         * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
28089         power5-store-update, power5-two, power5-three, power5-lmul,
28090         power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
28091
28092 2009-04-13  Adam Nemet  <anemet@caviumnetworks.com>
28093
28094         * except.c (pass_set_nothrow_function_flags): Set name and add
28095         TODO_dump_func.
28096         (set_nothrow_function_flags): Mention in the dump file when
28097         changing a function to nothrow.
28098
28099 2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>
28100
28101         PR/39066
28102         * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
28103         instead of unsigned long.
28104
28105 2009-04-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28106
28107         * config/arm/arm.c (return_used_this_function): Remove.
28108         (arm_output_function_prologue): Remove use of
28109         return_used_this_function.
28110         (output_return_instruction): Replace use of
28111         return_used_this_function
28112         by cfun->machine->return_used_this_function.
28113         (arm_output_epilogue): Likewise.
28114         (arm_output_function_epilogue): Likewise.
28115         (thumb_unexpanded_epilogue): Likewise.
28116         * config/arm/arm.h (struct machine_function):
28117         New member return_used_this_function.
28118
28119 2009-04-12  Mark Mitchell  <mark@codesourcery.com>
28120
28121         * doc/install.texi: Correct description of default directory for
28122         --with-gxx-include-dir.
28123
28124 2009-04-12  Eric Botcazou  <ebotcazou@adacore.com>
28125
28126         * fold-const.c (build_range_check): Properly deal with enumeral and
28127         boolean base types.
28128
28129 2009-04-12  Steven Bosscher  <steven@gcc.gnu.org>
28130
28131         * doc/invoke.texi (max_gcse_passes): Remove documentation.
28132         * params.def (PARAM_MAX_GCSE_PASSES): Remove.
28133         * params.h (MAX_GCSE_PASSES): Remove.
28134         * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
28135         in sequence.  Remove ability to run multiple passes.
28136         (bypass_jumps): Report run as third CPROP pass.
28137
28138 2009-04-12  Adam Nemet  <anemet@caviumnetworks.com>
28139
28140         PR middle-end/39651
28141         * except.c (can_throw_external): Look at each insn in a SEQUENCE
28142         when deciding whether the whole SEQUENCE can throw.
28143
28144 2009-04-12  Uros Bizjak  <ubizjak@gmail.com>
28145
28146         PR target/39740
28147         * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
28148         offseted label references.
28149
28150 2009-04-11  Jan Hubicka  <jh@suse.cz>
28151
28152         * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
28153
28154 2009-04-11  Richard Guenther  <rguenther@suse.de>
28155
28156         PR middle-end/39732
28157         * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
28158         return variables as TREE_ADDRESSABLE.
28159
28160 2009-04-11  Richard Guenther  <rguenther@suse.de>
28161
28162         PR tree-optimization/39713
28163         * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
28164         reference trees have SSA_NAME operands.
28165
28166 2009-04-11  Richard Guenther  <rguenther@suse.de>
28167
28168         PR c/39712
28169         * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
28170         address expressions.
28171
28172 2009-04-11  Dave Korn  <dave.korn.cygwin@gmail.com>
28173
28174         * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE):  Update to
28175         match changes in Cygwin 1.7
28176         (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
28177         UINT_FAST16_TYPE, UINT_FAST32_TYPE):  Likewise.
28178
28179 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
28180
28181         PR tree-optimization/39701
28182         * doc/invoke.texi (Optimization Options): Document change in
28183         meaning and initialization of -fdelete-null-pointer-checks.
28184
28185 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
28186
28187         PR middle-end/39701
28188         * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
28189
28190         * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
28191         here.
28192
28193         * doc/invoke.texi: Update -fdelete-null-pointer-checks.
28194
28195 2009-04-10  Chao-ying Fu  <fu@mips.com>
28196
28197         * doc/tm.texi (Instruction Output): Document
28198         TARGET_ASM_FINAL_POSTSCAN_INSN.
28199         * target.h (final_postscan_insn): New field in asm_out.
28200         * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
28201         (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
28202         * final.c (final_scan_insn): Call
28203         targetm.asm_out.final_postscan_insn after outputting
28204         an asm macro and a normal instruction.
28205
28206         * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
28207         * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
28208         * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
28209         (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
28210         (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
28211
28212 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
28213
28214         PR middle-end/39701
28215         * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
28216         variables as non-NULL even with -fdelete-null-pointer-checks.
28217
28218 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
28219
28220         * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
28221
28222 2009-04-09  H.J. Lu  <hongjiu.lu@intel.com>
28223
28224         PR target/39678
28225         * config/i386/i386.c (classify_argument): Handle SCmode with
28226         (bit_offset % 64) != 0.
28227
28228 2009-04-09  Sandra Loosemore  <sandra@codesourcery.com>
28229
28230         * doc/invoke.texi (Optimize Options): Add cross-reference to
28231         -Q --help=optimizers examples.
28232
28233 2009-04-10  Ben Elliston  <bje@au.ibm.com>
28234
28235         PR target/36800
28236         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
28237         regalign for the reg == fpr and TDmode case.
28238
28239 2009-04-09  David Ayers  <ayers@fsfe.org>
28240
28241         PR objc/29200
28242         * objc/objc-act.c (warn_with_method): Remove helper function.
28243         (check_duplicates): Call warning and inform directly.
28244         (really_start_method): Likewise.
28245
28246 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
28247
28248         * expmed.c (expand_divmod): Always use a comparison for a division
28249         by a large unsigned integer.
28250
28251         * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
28252         for things others than variables or functions as nonzero.
28253
28254 2009-04-09  Nick Clifton  <nickc@redhat.com>
28255
28256         * unwind-compat.c: Change copyright header to refer to version
28257         3 of the GNU General Public License with version 3.1 of the
28258         GCC Runtime Library Exception and to point readers at the
28259         COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
28260         * config/alpha/crtfastmath.c: Likewise.
28261         * config/alpha/linux-unwind.h: Likewise.
28262         * config/alpha/qrnnd.asm: Likewise.
28263         * config/alpha/vms-crt0-64.c: Likewise.
28264         * config/alpha/vms-crt0.c: Likewise.
28265         * config/alpha/vms-dwarf2.asm: Likewise.
28266         * config/alpha/vms-dwarf2eh.asm: Likewise.
28267         * config/alpha/vms-psxcrt0-64.c: Likewise.
28268         * config/alpha/vms-psxcrt0.c: Likewise.
28269         * config/alpha/vms_tramp.asm: Likewise.
28270         * config/arc/initfini.c: Likewise.
28271         * config/arc/lib1funcs.asm: Likewise.
28272         * config/arm/bpabi-v6m.S: Likewise.
28273         * config/arm/bpabi.S: Likewise.
28274         * config/arm/bpabi.c: Likewise.
28275         * config/arm/crti.asm: Likewise.
28276         * config/arm/crtn.asm: Likewise.
28277         * config/arm/ieee754-df.S: Likewise.
28278         * config/arm/ieee754-sf.S: Likewise.
28279         * config/arm/lib1funcs.asm: Likewise.
28280         * config/arm/libunwind.S: Likewise.
28281         * config/arm/linux-atomic.c: Likewise.
28282         * config/arm/mmintrin.h: Likewise.
28283         * config/arm/pr-support.c: Likewise.
28284         * config/arm/unaligned-funcs.c: Likewise.
28285         * config/arm/unwind-arm.c: Likewise.
28286         * config/arm/unwind-arm.h: Likewise.
28287         * config/avr/libgcc.S: Likewise.
28288         * config/bfin/crti.s: Likewise.
28289         * config/bfin/crtlibid.s: Likewise.
28290         * config/bfin/crtn.s: Likewise.
28291         * config/bfin/lib1funcs.asm: Likewise.
28292         * config/bfin/linux-unwind.h: Likewise.
28293         * config/cris/arit.c: Likewise.
28294         * config/cris/cris_abi_symbol.c: Likewise.
28295         * config/darwin-64.c: Likewise.
28296         * config/darwin-crt2.c: Likewise.
28297         * config/darwin-crt3.c: Likewise.
28298         * config/darwin.h: Likewise.
28299         * config/dbxelf.h: Likewise.
28300         * config/dfp-bit.c: Likewise.
28301         * config/dfp-bit.h: Likewise.
28302         * config/elfos.h: Likewise.
28303         * config/fixed-bit.c: Likewise.
28304         * config/fixed-bit.h: Likewise.
28305         * config/fp-bit.c: Likewise.
28306         * config/fp-bit.h: Likewise.
28307         * config/fr30/crti.asm: Likewise.
28308         * config/fr30/crtn.asm: Likewise.
28309         * config/fr30/lib1funcs.asm: Likewise.
28310         * config/freebsd-spec.h: Likewise.
28311         * config/frv/cmovd.c: Likewise.
28312         * config/frv/cmovh.c: Likewise.
28313         * config/frv/cmovw.c: Likewise.
28314         * config/frv/frvbegin.c: Likewise.
28315         * config/frv/frvend.c: Likewise.
28316         * config/frv/lib1funcs.asm: Likewise.
28317         * config/glibc-stdint.h: Likewise.
28318         * config/h8300/clzhi2.c: Likewise.
28319         * config/h8300/crti.asm: Likewise.
28320         * config/h8300/crtn.asm: Likewise.
28321         * config/h8300/ctzhi2.c: Likewise.
28322         * config/h8300/fixunssfsi.c: Likewise.
28323         * config/h8300/lib1funcs.asm: Likewise.
28324         * config/h8300/parityhi2.c: Likewise.
28325         * config/h8300/popcounthi2.c: Likewise.
28326         * config/i386/ammintrin.h: Likewise.
28327         * config/i386/att.h: Likewise.
28328         * config/i386/avxintrin.h: Likewise.
28329         * config/i386/biarch64.h: Likewise.
28330         * config/i386/bmmintrin.h: Likewise.
28331         * config/i386/cpuid.h: Likewise.
28332         * config/i386/cross-stdarg.h: Likewise.
28333         * config/i386/crtfastmath.c: Likewise.
28334         * config/i386/crtprec.c: Likewise.
28335         * config/i386/cygming-crtbegin.c: Likewise.
28336         * config/i386/cygming-crtend.c: Likewise.
28337         * config/i386/cygwin.asm: Likewise.
28338         * config/i386/emmintrin.h: Likewise.
28339         * config/i386/gmm_malloc.h: Likewise.
28340         * config/i386/gthr-win32.c: Likewise.
28341         * config/i386/i386.h: Likewise.
28342         * config/i386/immintrin.h: Likewise.
28343         * config/i386/linux-unwind.h: Likewise.
28344         * config/i386/linux64.h: Likewise.
28345         * config/i386/mm3dnow.h: Likewise.
28346         * config/i386/mmintrin-common.h: Likewise.
28347         * config/i386/mmintrin.h: Likewise.
28348         * config/i386/nmmintrin.h: Likewise.
28349         * config/i386/pmm_malloc.h: Likewise.
28350         * config/i386/pmmintrin.h: Likewise.
28351         * config/i386/smmintrin.h: Likewise.
28352         * config/i386/sol2-c1.asm: Likewise.
28353         * config/i386/sol2-ci.asm: Likewise.
28354         * config/i386/sol2-cn.asm: Likewise.
28355         * config/i386/sol2-gc1.asm: Likewise.
28356         * config/i386/tmmintrin.h: Likewise.
28357         * config/i386/unix.h: Likewise.
28358         * config/i386/w32-unwind.h: Likewise.
28359         * config/i386/wmmintrin.h: Likewise.
28360         * config/i386/x86-64.h: Likewise.
28361         * config/i386/x86intrin.h: Likewise.
28362         * config/i386/xmmintrin.h: Likewise.
28363         * config/ia64/crtbegin.asm: Likewise.
28364         * config/ia64/crtend.asm: Likewise.
28365         * config/ia64/crtfastmath.c: Likewise.
28366         * config/ia64/crti.asm: Likewise.
28367         * config/ia64/crtn.asm: Likewise.
28368         * config/ia64/fde-glibc.c: Likewise.
28369         * config/ia64/lib1funcs.asm: Likewise.
28370         * config/ia64/linux-unwind.h: Likewise.
28371         * config/ia64/quadlib.c: Likewise.
28372         * config/ia64/unwind-ia64.c: Likewise.
28373         * config/linux.h: Likewise.
28374         * config/m32c/m32c-lib1.S: Likewise.
28375         * config/m32c/m32c-lib2-trapv.c: Likewise.
28376         * config/m32c/m32c-lib2.c: Likewise.
28377         * config/m32r/initfini.c: Likewise.
28378         * config/m68hc11/larith.asm: Likewise.
28379         * config/m68hc11/m68hc11-crt0.S: Likewise.
28380         * config/m68k/cf.md: Likewise.
28381         * config/m68k/crti.s: Likewise.
28382         * config/m68k/crtn.s: Likewise.
28383         * config/m68k/lb1sf68.asm: Likewise.
28384         * config/m68k/linux-unwind.h: Likewise.
28385         * config/mcore/crti.asm: Likewise.
28386         * config/mcore/crtn.asm: Likewise.
28387         * config/mcore/lib1.asm: Likewise.
28388         * config/mips/linux-unwind.h: Likewise.
28389         * config/mips/loongson.h: Likewise.
28390         * config/mips/mips16.S: Likewise.
28391         * config/mmix/crti.asm: Likewise.
28392         * config/mmix/crtn.asm: Likewise.
28393         * config/pa/fptr.c: Likewise.
28394         * config/pa/hpux-unwind.h: Likewise.
28395         * config/pa/lib2funcs.asm: Likewise.
28396         * config/pa/linux-atomic.c: Likewise.
28397         * config/pa/linux-unwind.h: Likewise.
28398         * config/pa/milli64.S: Likewise.
28399         * config/pa/quadlib.c: Likewise.
28400         * config/pa/stublib.c: Likewise.
28401         * config/picochip/libgccExtras/adddi3.asm: Likewise.
28402         * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
28403         * config/picochip/libgccExtras/ashlsi3.c: Likewise.
28404         * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
28405         * config/picochip/libgccExtras/ashrsi3.c: Likewise.
28406         * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
28407         * config/picochip/libgccExtras/divmod15.asm: Likewise.
28408         * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
28409         * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
28410         * config/picochip/libgccExtras/longjmp.asm: Likewise.
28411         * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
28412         * config/picochip/libgccExtras/lshrsi3.c: Likewise.
28413         * config/picochip/libgccExtras/parityhi2.asm: Likewise.
28414         * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
28415         * config/picochip/libgccExtras/setjmp.asm: Likewise.
28416         * config/picochip/libgccExtras/subdi3.asm: Likewise.
28417         * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
28418         * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
28419         * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
28420         * config/rs6000/750cl.h: Likewise.
28421         * config/rs6000/altivec.h: Likewise.
28422         * config/rs6000/biarch64.h: Likewise.
28423         * config/rs6000/crtresfpr.asm: Likewise.
28424         * config/rs6000/crtresgpr.asm: Likewise.
28425         * config/rs6000/crtresxfpr.asm: Likewise.
28426         * config/rs6000/crtresxgpr.asm: Likewise.
28427         * config/rs6000/crtsavfpr.asm: Likewise.
28428         * config/rs6000/crtsavgpr.asm: Likewise.
28429         * config/rs6000/darwin-asm.h: Likewise.
28430         * config/rs6000/darwin-fallback.c: Likewise.
28431         * config/rs6000/darwin-fpsave.asm: Likewise.
28432         * config/rs6000/darwin-ldouble.c: Likewise.
28433         * config/rs6000/darwin-tramp.asm: Likewise.
28434         * config/rs6000/darwin-unwind.h: Likewise.
28435         * config/rs6000/darwin-vecsave.asm: Likewise.
28436         * config/rs6000/darwin-world.asm: Likewise.
28437         * config/rs6000/e500crtres32gpr.asm: Likewise.
28438         * config/rs6000/e500crtres64gpr.asm: Likewise.
28439         * config/rs6000/e500crtres64gprctr.asm: Likewise.
28440         * config/rs6000/e500crtrest32gpr.asm: Likewise.
28441         * config/rs6000/e500crtrest64gpr.asm: Likewise.
28442         * config/rs6000/e500crtresx32gpr.asm: Likewise.
28443         * config/rs6000/e500crtresx64gpr.asm: Likewise.
28444         * config/rs6000/e500crtsav32gpr.asm: Likewise.
28445         * config/rs6000/e500crtsav64gpr.asm: Likewise.
28446         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
28447         * config/rs6000/e500crtsavg32gpr.asm: Likewise.
28448         * config/rs6000/e500crtsavg64gpr.asm: Likewise.
28449         * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
28450         * config/rs6000/eabi-ci.asm: Likewise.
28451         * config/rs6000/eabi-cn.asm: Likewise.
28452         * config/rs6000/eabi.asm: Likewise.
28453         * config/rs6000/linux-unwind.h: Likewise.
28454         * config/rs6000/linux64.h: Likewise.
28455         * config/rs6000/paired.h: Likewise.
28456         * config/rs6000/paired.md: Likewise.
28457         * config/rs6000/ppc64-fp.c: Likewise.
28458         * config/rs6000/ppu_intrinsics.h: Likewise.
28459         * config/rs6000/rs6000.h: Likewise.
28460         * config/rs6000/si2vmx.h: Likewise.
28461         * config/rs6000/sol-ci.asm: Likewise.
28462         * config/rs6000/sol-cn.asm: Likewise.
28463         * config/rs6000/spe.h: Likewise.
28464         * config/rs6000/spu2vmx.h: Likewise.
28465         * config/rs6000/sysv4.h: Likewise.
28466         * config/rs6000/tramp.asm: Likewise.
28467         * config/rs6000/vec_types.h: Likewise.
28468         * config/s390/linux-unwind.h: Likewise.
28469         * config/s390/tpf-unwind.h: Likewise.
28470         * config/score/crti.asm: Likewise.
28471         * config/score/crtn.asm: Likewise.
28472         * config/sh/crt1.asm: Likewise.
28473         * config/sh/crti.asm: Likewise.
28474         * config/sh/crtn.asm: Likewise.
28475         * config/sh/divtab-sh4-300.c: Likewise.
28476         * config/sh/divtab-sh4.c: Likewise.
28477         * config/sh/divtab.c: Likewise.
28478         * config/sh/lib1funcs-4-300.asm: Likewise.
28479         * config/sh/lib1funcs-Os-4-200.asm: Likewise.
28480         * config/sh/lib1funcs.asm: Likewise.
28481         * config/sh/lib1funcs.h: Likewise.
28482         * config/sh/linux-atomic.asm: Likewise.
28483         * config/sh/linux-unwind.h: Likewise.
28484         * config/sh/shmedia.h: Likewise.
28485         * config/sh/sshmedia.h: Likewise.
28486         * config/sh/ushmedia.h: Likewise.
28487         * config/sparc/crtfastmath.c: Likewise.
28488         * config/sparc/linux-unwind.h: Likewise.
28489         * config/sparc/sol2-c1.asm: Likewise.
28490         * config/sparc/sol2-ci.asm: Likewise.
28491         * config/sparc/sol2-cn.asm: Likewise.
28492         * config/spu/divmodti4.c: Likewise.
28493         * config/spu/divv2df3.c: Likewise.
28494         * config/spu/float_disf.c: Likewise.
28495         * config/spu/float_unsdidf.c: Likewise.
28496         * config/spu/float_unsdisf.c: Likewise.
28497         * config/spu/float_unssidf.c: Likewise.
28498         * config/spu/mfc_multi_tag_release.c: Likewise.
28499         * config/spu/mfc_multi_tag_reserve.c: Likewise.
28500         * config/spu/mfc_tag_release.c: Likewise.
28501         * config/spu/mfc_tag_reserve.c: Likewise.
28502         * config/spu/mfc_tag_table.c: Likewise.
28503         * config/spu/multi3.c: Likewise.
28504         * config/spu/spu_internals.h: Likewise.
28505         * config/spu/spu_intrinsics.h: Likewise.
28506         * config/spu/spu_mfcio.h: Likewise.
28507         * config/spu/vec_types.h: Likewise.
28508         * config/spu/vmx2spu.h: Likewise.
28509         * config/stormy16/stormy16-lib2.c: Likewise.
28510         * config/svr4.h: Likewise.
28511         * config/sync.c: Likewise.
28512         * config/v850/lib1funcs.asm: Likewise.
28513         * config/vxlib-tls.c: Likewise.
28514         * config/vxlib.c: Likewise.
28515         * config/vxworks-dummy.h: Likewise.
28516         * config/xtensa/crti.asm: Likewise.
28517         * config/xtensa/crtn.asm: Likewise.
28518         * config/xtensa/ieee754-df.S: Likewise.
28519         * config/xtensa/ieee754-sf.S: Likewise.
28520         * config/xtensa/lib1funcs.asm: Likewise.
28521         * config/xtensa/lib2funcs.S: Likewise.
28522         * config/xtensa/linux-unwind.h: Likewise.
28523         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
28524         * config/xtensa/unwind-dw2-xtensa.h: Likewise.
28525         * coretypes.h: Likewise.
28526         * crtstuff.c: Likewise.
28527         * defaults.h: Likewise.
28528         * dwarf2.h: Likewise.
28529         * emutls.c: Likewise.
28530         * gbl-ctors.h: Likewise.
28531         * gcov-io.h: Likewise.
28532         * ginclude/float.h: Likewise.
28533         * ginclude/iso646.h: Likewise.
28534         * ginclude/stdarg.h: Likewise.
28535         * ginclude/stdbool.h: Likewise.
28536         * ginclude/stddef.h: Likewise.
28537         * ginclude/stdfix.h: Likewise.
28538         * ginclude/stdint-gcc.h: Likewise.
28539         * ginclude/tgmath.h: Likewise.
28540         * gthr-aix.h: Likewise.
28541         * gthr-dce.h: Likewise.
28542         * gthr-gnat.c: Likewise.
28543         * gthr-gnat.h: Likewise.
28544         * gthr-lynx.h: Likewise.
28545         * gthr-mipssde.h: Likewise.
28546         * gthr-nks.h: Likewise.
28547         * gthr-posix.c: Likewise.
28548         * gthr-posix.h: Likewise.
28549         * gthr-posix95.h: Likewise.
28550         * gthr-rtems.h: Likewise.
28551         * gthr-single.h: Likewise.
28552         * gthr-solaris.h: Likewise.
28553         * gthr-tpf.h: Likewise.
28554         * gthr-vxworks.h: Likewise.
28555         * gthr-win32.h: Likewise.
28556         * gthr.h: Likewise.
28557         * libgcc2.c: Likewise.
28558         * libgcc2.h: Likewise.
28559         * libgcov.c: Likewise.
28560         * tsystem.h: Likewise.
28561         * typeclass.h: Likewise.
28562         * unwind-c.c: Likewise.
28563         * unwind-compat.h: Likewise.
28564         * unwind-dw2-fde-compat.c: Likewise.
28565         * unwind-dw2-fde-darwin.c: Likewise.
28566         * unwind-dw2-fde-glibc.c: Likewise.
28567         * unwind-dw2-fde.c: Likewise.
28568         * unwind-dw2-fde.h: Likewise.
28569         * unwind-dw2.c: Likewise.
28570         * unwind-dw2.h: Likewise.
28571         * unwind-generic.h: Likewise.
28572         * unwind-pe.h: Likewise.
28573         * unwind-sjlj.c: Likewise.
28574         * unwind.inc: Likewise.
28575         * config/arm/neon-gen.ml: Change generated copyright header to
28576         refer to version 3 of the GNU General Public License with
28577         version 3.1 of the GCC Runtime Library Exception and to point
28578         readers at the COPYING3 and COPYING3.RUNTIME files and the
28579         FSF's license web page.
28580         * config/arm/arm_neon.h: Regenerate.
28581
28582 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
28583
28584         * config/cris/cris.md: Change copyright header to refer to version
28585         3 of the GNU General Public License.
28586         * doc/install.texi2html: Change copyright header to refer to version
28587         3 of the GNU General Public License and to point readers at the
28588         COPYING3 file and the FSF's license web page.
28589         * config/vax/linux.h: Likewise.
28590
28591 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
28592
28593         * config/i386/i386.md (cmpcc): New.
28594         * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
28595         (sync_compare_and_swap_cc*): Delete.
28596
28597         * config/s390/s390.c (s390_compare_emitted): Remove.
28598         (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
28599         s390_compare_emitted used to be handled.  Assert that modes match.
28600         (s390_emit_compare_and_swap): Use s390_emit_compare, do not
28601         refer to sync_compare_and_swap_ccsi.
28602         * config/s390/s390.h (s390_compare_emitted): Remove.
28603         * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
28604         instead of s390_compare_emitted.
28605         (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
28606         instead of s390_compare_emitted.
28607         * config/s390/s390.md (cmpcc): New.
28608         (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
28609         CC_REGNUM, do not pretend it's set.
28610         (sync_compare_and_swap_cc*): Delete.
28611         * config/s390/predicates.md (cc_reg_operand): New.
28612
28613         * expr.c (sync_compare_and_swap_cc): Delete.
28614         * optabs.h (sync_compare_and_swap_cc): Delete.
28615         * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
28616         is being used with can_compare_p.
28617         (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
28618         (find_cc_set): New.
28619         (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
28620         look for a MODE_CC set instead.  Use emit_store_flag.
28621         (expand_compare_and_swap_loop): Likewise, with some additional
28622         complication to avoid a force_reg when useless.  Use
28623         emit_cmp_and_jump_insns.
28624         * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
28625         * doc/md.texi (sync_compare_and_swap_cc): Merge with
28626         sync_compare_and_swap documentation.
28627
28628 2009-04-09  Jan Hubicka  <jh@suse.cz>
28629
28630         * except.c (find_prev_try): Break out from ....
28631         (duplicate_eh_regions): ... here; properly update prev_try pointers
28632         when duplication part of tree.
28633         (dump_eh_tree): Improve dumping.
28634         (verify_eh_region): New.
28635         (verify_eh_tree): Use it.
28636
28637 2009-04-06  Richard Guenther  <rguenther@suse.de>
28638
28639         * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
28640         &ARRAY addresses by adjusting their types and prepending
28641         a conversion.
28642         * tree-cfg.c (verify_gimple_assign_single): Verify that
28643         addresses are correct.
28644
28645 2009-04-09  Richard Guenther  <rguenther@suse.de>
28646
28647         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
28648         indices into an array reference if possible.
28649         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
28650         Fold POINTER_PLUS_EXPR statements with invariant address.
28651
28652 2009-04-09  Alan Modra  <amodra@bigpond.net.au>
28653
28654         PR target/39634
28655         * config.gcc (powerpc64-*-linux*): Always build biarch.
28656
28657 2009-04-09  Joseph Myers  <joseph@codesourcery.com>
28658
28659         PR c/39613
28660         * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
28661         it and pedwarn if this results in an INTEGER_CST.
28662
28663 2009-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
28664
28665         * doc/install.texi: Update minimum GMP version.  Remove obsolete
28666         text in MPFR section.
28667
28668 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
28669
28670         * dwarf2out.c (class_scope_p): New static inline.
28671         (class_or_namespace_scope_p): Use it.
28672         (gen_variable_die): Use DW_TAG_member tag for static data member
28673         declarations instead of DW_TAG_variable.
28674
28675         PR middle-end/39573
28676         * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
28677         variables.
28678
28679 2009-04-08  Richard Guenther  <rguenther@suse.de>
28680
28681         * tree-ssa-sccvn.c (valueize_refs): Do not continue to
28682         valueize random data.
28683
28684 2009-04-08  David Edelsohn  <edelsohn@gnu.org>
28685
28686         * config.gcc (aix tm_file):  Add aix-stdint.h.
28687         (aix tm clause use_gcc_stdint):  Set to wrap.
28688         * config/rs6000/aix-stdint.h:  New file.
28689
28690 2009-04-08  Richard Guenther  <rguenther@suse.de>
28691
28692         PR middle-end/36291
28693         * tree-dfa.c (add_referenced_var): Do not recurse into
28694         global initializers.
28695         * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
28696         exposed variables.
28697         (fold_const_aggregate_ref): Likewise.
28698
28699 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
28700
28701         * recog.c (ordered_comparison_operator): New.
28702         * gensupport.c (std_preds): Add it.
28703         * doc/md.texi (Machine-Independent Predicates): Document it.
28704
28705 2009-04-08  Jan Hubicka  <jh@suse.cz>
28706
28707         * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
28708         * function.h (rtl_eh): Remove exception_handler_label_map.
28709         * except.c (ehl_hash, ehl_eq, add_ehl_entry,
28710         remove_exception_handler_label, for_each_eh_label_1): Remove.
28711         (rtl_remove_unreachable_regions): Remove.
28712         (convert_from_eh_region_ranges): Do not remove unreachable regions.
28713         (find_exception_handler_labels): Don't build the hashtable.
28714         (maybe_remove_eh_handler): Remove.
28715         (for_each_eh_label): Rewrite to walk the tree.
28716         (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
28717         * except.h (maybe_remove_eh_handler): Remove.
28718         * passes.c (init_optimization_passes): Schedule second EH cleanup
28719         before out-of-ssa.
28720         * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
28721         cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
28722
28723 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
28724
28725         * genoutput.c (validate_optab_operands): New.
28726         (gen_insn, gen_expand): Call it.
28727
28728         * genflags.c (gen_insn): Detect misused iterators.
28729         (main): Pass line_no to gen_insn, exit with status 1 on error.
28730
28731         * genextract.c (line_no): Make global.
28732         (VEC_safe_set_locstr): Change assertion to error message.
28733         (main): Exit with status 1 on error.
28734
28735 2009-04-08  Joseph Myers  <joseph@codesourcery.com>
28736
28737         PR c/39614
28738         PR c/39673
28739         * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
28740         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
28741         EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
28742         * c-convert.c (convert): Do not call fold on results of conversion
28743         functions when the result is a C_MAYBE_CONST_EXPR.
28744         * c-parser.c (c_parser_postfix_expression): Do not fold condition
28745         of __builtin_choose_expr.
28746         * c-typeck.c (remove_c_maybe_const_expr): New.
28747         (build_unary_op, build_conditional_expr, build_compound_expr,
28748         build_binary_op, c_objc_common_truthvalue_conversion): Call
28749         remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
28750         integer operands.
28751
28752 2009-04-08  Bingfeng Mei  <bmei@broadcom.com>
28753
28754         * fold-const.c (const_binop): Combine two VECTOR_CST under operation
28755         CODE to produce a new one. Add a prototype to use fold_convert_const
28756
28757 2009-04-08  Danny Smith  <dannysmith@users.sourceforge.net>
28758
28759         PR bootstrap/39660
28760         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
28761         mix declarations and code.
28762
28763 2009-04-08  Ben Elliston  <bje@au.ibm.com>
28764
28765         * gcc.c: Replace `CC' with `GCC' throughout.
28766
28767 2009-04-07  H.J. Lu  <hongjiu.lu@intel.com>
28768
28769         * doc/invoke.texi: Document Atom support.
28770
28771 2009-04-07  Jason Merrill  <jason@redhat.com>
28772
28773         PR c++/25185
28774         * c-common.h, c-common.c: Add flag_pretty_templates.
28775         * c-opts.c (c_common_handle_option): Set it.
28776         * c.opt: Add -fno-pretty-templates.
28777         * doc/invoke.texi (C++ Dialect Options): Likewise.
28778
28779 2009-04-07  Uros Bizjak  <ubizjak@gmail.com>
28780
28781         * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
28782         (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
28783         (ia64_expand_builtin): Likewise.
28784
28785 2009-04-07  Martin Jambor  <mjambor@suse.cz>
28786
28787         * tree-ssa-alias.c (refs_may_alias_p_1): Check for
28788         is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
28789         ADDR_EXPRS are include too.
28790
28791 2009-04-07  Richard Guenther  <rguenther@suse.de>
28792
28793         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
28794         decls are only used if passes as parameters or if they are
28795         local statics and the call is not to a builtin.
28796         (call_may_clobber_ref_p_1): Likewise.
28797
28798 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
28799
28800         * expr.c (do_store_flag): Remove last argument.  Simplify code
28801         to avoid duplication of tests already done by can_compare_p.
28802         (expand_expr_real_1): Adjust caller.
28803
28804 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
28805
28806         * optabs.c (can_compare_p): Test the predicate of a
28807         cbranch and cstore pattern.
28808
28809 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
28810
28811         * expr.c (convert_move): Use emit_store_flag instead of
28812         "emulating" it.
28813
28814 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
28815
28816         * config/i386/i386.c (ix86_compare_emitted): Remove.
28817         (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
28818         ix86_compare_op0 like ix86_compare_emitted used to be handled.
28819         * config/i386/i386.h (ix86_compare_emitted): Remove.
28820         * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
28821         instead of ix86_compare_emitted.
28822         * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
28823
28824 2009-04-07  Andrew Stubbs  <ams@codesourcery.com>
28825
28826         * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
28827         Add t-sysroot-suffix to tmake_file.
28828         * config/print-sysroot-suffix.sh: New file.
28829         * config/t-sysroot-suffix: New file.
28830
28831 2009-04-07  Ben Elliston  <bje@au.ibm.com>
28832
28833         * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
28834         as the latter produces a warning when the target does not support
28835         infinity.
28836
28837 2009-04-07  Ben Elliston  <bje@au.ibm.com>
28838
28839         * dfp.c: Replace type punning assignments with memcpy throughout.
28840         * Makefile.in (dfp.o-warn): Remove.
28841
28842 2009-04-07  Alan Modra  <amodra@bigpond.net.au>
28843
28844         PR target/39634
28845         * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
28846         Include soft-fp/t-softfp after rs6000/t-linux64.
28847
28848 2009-04-06  Eric Botcazou  <ebotcazou@adacore.com>
28849
28850         * stor-layout.c (set_sizetype): Use the full precision of their
28851         machine mode for bitsize types.
28852
28853 2009-04-06  H.J. Lu  <hongjiu.lu@intel.com>
28854
28855         * config/i386/i386.md: Revert 2 accidental checkins.
28856
28857 2009-04-06  Joey Ye  <joey.ye@intel.com>
28858             Xuepeng Guo  <xuepeng.guo@intel.com>
28859             H.J. Lu  <hongjiu.lu@intel.com>
28860
28861         Atom pipeline model, tuning and insn selection.
28862         * config.gcc (atom): Add atom config options and target.
28863
28864         * config/i386/atom.md: New.
28865
28866         * config/i386/i386.c (atom_cost): New cost.
28867         (m_ATOM): New macro flag.
28868         (initial_ix86_tune_features): Set m_ATOM.
28869         (x86_accumulate_outgoing_args): Likewise.
28870         (x86_arch_always_fancy_math_387): Likewise.
28871         (processor_target): Add Atom cost.
28872         (cpu_names): Add Atom cpu name.
28873         (override_options): Set Atom ISA.
28874         (ix86_issue_rate): New case PROCESSOR_ATOM.
28875         (ix86_adjust_cost): Likewise.
28876
28877         * config/i386/i386.h (TARGET_ATOM): New target macro.
28878         (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
28879         (TARGET_OPT_AGU): New target option.
28880         (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
28881         (processor_type): Add PROCESSOR_ATOM.
28882
28883         * config/i386/i386.md (cpu): Add new value "atom".
28884         (use_carry, movu): New attr.
28885         (atom.md): Include atom.md.
28886         (adddi3_carry_rex64): Set attr "use_carry".
28887         (addqi3_carry): Likewise.
28888         (addhi3_carry): Likewise.
28889         (addsi3_carry): Likewise.
28890         (*addsi3_carry_zext): Likewise.
28891         (subdi3_carry_rex64): Likewise.
28892         (subqi3_carry): Likewise.
28893         (subhi3_carry): Likewise.
28894         (subsi3_carry): Likewise.
28895         (x86_movdicc_0_m1_rex64): Likewise.
28896         (*x86_movdicc_0_m1_se): Likewise.
28897         (x86_movsicc_0_m1): Likewise.
28898         (*x86_movsicc_0_m1_se): Likewise.
28899         (*adddi_1_rex64): Emit add insn as much as possible.
28900         (*addsi_1): Likewise.
28901         (return_internal): Set atom_unit.
28902         (return_internal_long): Likewise.
28903         (return_pop_internal): Likewise.
28904         (*rcpsf2_sse): Set atom_sse_attr attr.
28905         (*qrt<mode>2_sse): Likewise.
28906         (*prefetch_sse): Likewise.
28907
28908         * config/i386/i386-c.c (ix86_target_macros_internal): New case
28909         PROCESSOR_ATOM.
28910         (ix86_target_macros_internal): Likewise.
28911
28912         * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
28913         (*prefetch_sse_rex): Likewise.
28914         (sse_rcpv4sf2): Likewise.
28915         (sse_vmrcpv4sf2): Likewise.
28916         (sse_sqrtv4sf2): Likewise.
28917         (<sse>_vmsqrt<mode>2): Likewise.
28918         (sse_ldmxcsr): Likewise.
28919         (sse_stmxcsr): Likewise.
28920         (*sse_sfence): Likewise.
28921         (sse2_clflush): Likewise.
28922         (*sse2_mfence): Likewise.
28923         (*sse2_lfence): Likewise.
28924         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
28925         (<sse>_movup<ssemodesuffixf2c>): Likewise.
28926         (avx_movdqu<avxmodesuffix>): Likewise.
28927         (avx_lddqu<avxmodesuffix>): Likewise.
28928         (sse2_movntv2di): Change attr "type" to "ssemov".
28929         (sse2_movntsi): Likewise.
28930         (rsqrtv8sf2): Change attr "type" to "sseadd".
28931         (sse3_addsubv2df3): Set attr "atom_unit".
28932         (sse3_h<plusminus_insn>v4sf3): Likewise.
28933         (*sse2_pmaddwd): Likewise.
28934         (*vec_extractv2di_1_rex64): Likewise.
28935         (*vec_extractv2di_1_avx): Likewise.
28936         (sse2_psadbw): Likewise.
28937         (ssse3_phaddwv8hi3): Likewise.
28938         (ssse3_phaddwv4hi3): Likewise.
28939         (ssse3_phadddv4si3): Likewise.
28940         (ssse3_phadddv2si3): Likewise.
28941         (ssse3_phaddswv8hi3): Likewise.
28942         (ssse3_phaddswv4hi3): Likewise.
28943         (ssse3_phsubwv8hi3): Likewise.
28944         (ssse3_phsubwv4hi3): Likewise.
28945         (ssse3_phsubdv4si3): Likewise.
28946         (ssse3_phsubdv2si3): Likewise.
28947         (ssse3_phsubswv8hi3): Likewise.
28948         (ssse3_phsubswv4hi3): Likewise.
28949         (ssse3_pmaddubsw128): Likewise.
28950         (sse3_pmaddubsw: Likewise.
28951         (ssse3_palignrti): Likewise.
28952         (ssse3_palignrdi): Likewise.
28953
28954 2009-04-06  Gerald Pfeifer  <gerald@pfeifer.com>
28955
28956         * doc/install.texi (Specific): Fix two cross-references to MinGW.
28957
28958 2009-04-06  Richard Guenther  <rguenther@suse.de>
28959
28960         PR tree-optimization/28868
28961         * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
28962         of which PHI results we inserted.
28963         (insert_into_preds_of_block): Record inserted PHIs.
28964         (eliminate): Eliminate redundant PHI nodes.
28965         (init_pre): Init inserted_phi_names.
28966
28967 2009-04-06  Richard Guenther  <rguenther@suse.de>
28968
28969         PR tree-optimization/39643
28970         * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
28971         IMAGPART_EXPRs of complex constants.
28972         (execute_fold_all_builtins): If we folded a call queue
28973         TODO_update_address_taken.
28974
28975 2009-04-06  Jan Hubicka  <jh@suse.cz>
28976
28977         PR middle-end/39659
28978         * except.c (remove_unreachable_regions): Propagate may_contain_throw
28979         flag.
28980
28981 2009-04-06  Andrew Stubbs  <ams@codesourcery.com>
28982
28983         * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
28984         delay slot.
28985         (ic_invalidate_array): Likewise.
28986
28987 2009-04-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
28988
28989         * calls.c (emit_library_call_value_1): Fix a problem with parameter
28990         alignment for library calls.
28991
28992 2009-04-06  Danny Smith  <dannysmith@users.sourceforge.net>
28993
28994         * config.gcc (mingw32 tm_file):  Add mingw-stdint.h.
28995         (mingw32 tm clause use_gcc_stdint):  Set to wrap.
28996         * config/i386/mingw-stdint.h:  New file.
28997
28998 2009-04-05  Richard Guenther  <rguenther@suse.de>
28999
29000         PR tree-optimization/39648
29001         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
29002         our &A vs. &A[0] IL deficiencies.
29003
29004 2009-04-04  Jan Hubicka  <jh@suse.cz>
29005
29006         * except.c (sjlj_find_directly_reachable_regions): Be ready for
29007         removed toplevel regions.
29008         (sjlj_mark_call_sites): Likewise.
29009
29010 2009-04-04  Dave Korn  <dave.korn.cygwin@gmail.com>
29011
29012         * config.gcc (cygwin tm_file):  Add cygwin-stdint.h.
29013         (cygwin tm clause use_gcc_stdint):  Set to wrap.
29014         * config/i386/cygwin-stdint.h:  New file.
29015
29016 2009-04-04  Richard Guenther  <rguenther@suse.de>
29017
29018         * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
29019         * tree-ssa-copy.c (init_copy_prop): Do not propagate through
29020         single-argument PHIs if we are in loop-closed SSA form.
29021         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
29022         for the pre-condition.
29023         (slpeel_tree_peel_loop_to_edge): Likewise.
29024         (vect_build_loop_niters): Take an optional sequence to append stmts.
29025         (vect_generate_tmps_on_preheader): Likewise.
29026         (vect_do_peeling_for_loop_bound): Take extra guards for the
29027         pre-condition.
29028         (vect_do_peeling_for_alignment): Adjust.  Unconditionally apply
29029         the cost model check.
29030         (vect_loop_versioning): Take stmt and stmt list to put pre-condition
29031         guards if we are going to peel.  Do not apply versioning in that case.
29032         * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
29033         (vect_do_peeling_for_loop_bound): Likewise.
29034         * tree-vect-loop.c (vect_transform_loop): If we are peeling for
29035         loop bound only record extra pre-conditions, do not apply loop
29036         versioning.
29037
29038 2009-04-04  Richard Guenther  <rguenther@suse.de>
29039
29040         * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
29041         renaming code.
29042
29043 2009-04-04  Jan Hubicka  <jh@suse.cz>
29044
29045         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
29046         last_basic_block for size of bb->index indexed array.
29047         * bt-load.c (compute_defs_uses_and_gen, compute_kill,
29048         compute_out, link_btr_uses, build_btr_def_use_webs,
29049         build_btr_def_use_webs, migrate_btr_defs): Likewise.
29050
29051 2009-04-04  Jan Hubicka  <jh@suse.cz>
29052
29053         * except.c (remove_eh_handler_and_replace): Break out from ...
29054         (remove_eh_handler): ... here.
29055         (bring_to_root): New function.
29056         (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
29057         handled ones, bring others to root of tree.
29058
29059 2009-04-04  Jan Hubicka  <jh@suse.cz>
29060
29061         * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
29062         (all_phis_safe_to_merge): New function.
29063         (update_info): New structure.
29064         (make_eh_edge_and_update_phi, update_eh_edges): New functions.
29065         (cleanup_empty_eh): Update SSA if possible.
29066
29067 2009-04-04  Richard Guenther  <rguenther@suse.de>
29068
29069         * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
29070         * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
29071         (append_vuse): Likewise.
29072
29073 2009-04-04  Jakub Jelinek  <jakub@redhat.com>
29074
29075         * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
29076         * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
29077         instead of REG_UNSAVED for DW_CFA_undefined.
29078         (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
29079         (uw_update_context): If RA column is REG_UNDEFINED, mark it as
29080         outermost frame.
29081
29082 2009-04-04  Richard Earnshaw  <rearnsha@arm.com>
29083
29084         PR target/39501
29085         * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
29086
29087 2009-04-04  Richard Guenther  <rguenther@suse.de>
29088
29089         PR tree-optimization/8781
29090         PR tree-optimization/37892
29091         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
29092         * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
29093         (valueize_refs): Call it for *& valueizations.
29094         (shared_reference_ops_from_ref): Rename to ...
29095         (valueize_shared_reference_ops_from_ref): ... this and valueize.
29096         (shared_reference_ops_from_call): Rename to ...
29097         (valueize_shared_reference_ops_from_call): ... this and valueize.
29098         (vn_reference_lookup): Update.
29099         (visit_reference_op_call): Likewise.
29100         * tree-ssa-pre.c (phi_translate_1): Fold *&.
29101         (eliminate): Value-replace the call address in call statements.
29102
29103 2009-04-04  Richard Guenther  <rguenther@suse.de>
29104
29105         PR tree-optimization/39636
29106         * tree-ssa-forwprop.c
29107         (forward_propagate_addr_into_variable_array_index): Check for
29108         GIMPLE_ASSIGN before accessing the rhs code.
29109
29110 2009-04-03  Jason Merrill  <jason@redhat.com>
29111
29112         * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
29113
29114 2009-04-03  Steve Ellcey  <sje@cup.hp.com>
29115
29116         * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
29117         truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
29118         fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
29119         floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
29120         fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
29121         smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
29122         divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
29123         umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
29124         *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
29125         *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
29126         adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
29127         smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
29128         *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
29129         *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
29130         sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
29131         Use fr_reg_or_fp01_operand instead of fr_register_operand
29132
29133         * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
29134         recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
29135         divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
29136
29137 2009-04-03  Vladimir Makarov  <vmakarov@redhat.com>
29138
29139         PR rtl-optimization/39607
29140         PR rtl-optimization/39631
29141
29142         Revert:
29143
29144         2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
29145         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
29146         instead of DF_LR_OUT.
29147         * ira-lives.c (process_bb_node_lives): Ditto.
29148         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
29149         instead of DF_LR_{OUT,IN}.
29150         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
29151         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
29152
29153 2009-04-03  Steven Bosscher  <steven@gcc.gnu.org>
29154
29155         * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
29156         (execute_lower_omp): Always run but take the short way out if -fopenmp
29157         is not given.
29158         (gate_lower_omp): Remove, forcing the pass manager to always run the
29159         pass and always set PROP_gimple_lomp.
29160         (pass_lower_omp): Remove gate function.
29161         * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
29162         PROP_trees.  Instead, require it.
29163         * ipa-cp.c (pass_ipa_cp): Likewise.
29164         * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
29165         (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
29166         * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
29167         and PROP_gimple_leh.
29168
29169 2009-04-03  Richard Guenther  <rguenther@suse.de>
29170
29171         PR middle-end/13146
29172         PR tree-optimization/23940
29173         PR tree-optimization/33237
29174         PR middle-end/33974
29175         PR middle-end/34093
29176         PR tree-optimization/36201
29177         PR tree-optimization/36230
29178         PR tree-optimization/38049
29179         PR tree-optimization/38207
29180         PR tree-optimization/38230
29181         PR tree-optimization/38301
29182         PR tree-optimization/38585
29183         PR middle-end/38895
29184         PR tree-optimization/38985
29185         PR tree-optimization/39299
29186         * tree-ssa-structalias.h: Remove.
29187         * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
29188         (NULL_DEF_OPERAND_P): Make of type def_operand_p.
29189         (struct vuse_element_d): Remove.
29190         (struct vuse_vec_d): Likewise.
29191         (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
29192         VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
29193         SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
29194         VUSE_ELEMENT_VAR): Likewise.
29195         (struct voptype_d): Likewise.
29196         (NUM_VOP_FREE_BUCKETS): Likewise.
29197         (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
29198         (struct stmt_operands_d): Remove.
29199         (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
29200         VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
29201         VDEF_NUM, VDEF_VECT): Likewise.
29202         (copy_virtual_operands): Remove.
29203         (operand_build_cmp): Likewise.
29204         (create_ssa_artificial_load_stmt): Likewise.
29205         (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
29206         (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
29207         vuse_index and mayuse_index members.  Pack and move done and iter_type
29208         members to the front.
29209         (SSA_OP_VMAYUSE): Remove.
29210         (SSA_OP_VIRTUAL_USES): Adjust.
29211         (FOR_EACH_SSA_VDEF_OPERAND): Remove.
29212         (unlink_stmt_vdef): Declare.
29213         (add_to_addressable_set): Remove.
29214         * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
29215         (vrp_visit_stmt): Likewise.
29216         * doc/tree-ssa.texi (Alias analysis): Update.
29217         * doc/invoke.texi (max-aliased-vops): Remove docs.
29218         (avg-aliased-vops): Likewise.
29219         * tree-into-ssa.c (syms_to_rename): Remove.
29220         (need_to_update_vops_p): Likewise.
29221         (need_to_initialize_update_ssa_p): Rename to ...
29222         (update_ssa_initialized_fn): ... this.  Track function we are
29223         initialized for.
29224         (symbol_marked_for_renaming): Simplify.
29225         (add_new_name_mapping): Do not set need_to_update_vops_p.
29226         (dump_currdefs): Use SYMS_TO_RENAME.
29227         (rewrite_update_stmt): Always walk all uses/defs.
29228         (dump_update_ssa): Adjust.
29229         (init_update_ssa): Take function argument.  Track what we are
29230         initialized for.
29231         (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
29232         (create_new_def_for): Initialize for cfun, assert we are initialized
29233         for cfun.
29234         (mark_sym_for_renaming): Simplify.
29235         (mark_set_for_renaming): Do not initialize update-ssa.
29236         (need_ssa_update_p): Simplify.  Take function argument.
29237         (name_mappings_registered_p): Assert we ask for the correct function.
29238         (name_registered_for_update_p): Likewise.
29239         (ssa_names_to_replace): Likewise.
29240         (release_ssa_name_after_update_ssa): Likewise.
29241         (update_ssa): Likewise.  Use SYMS_TO_RENAME.
29242         (dump_decl_set): Do not print a newline.
29243         (debug_decl_set): Do it here.
29244         (dump_update_ssa): And here.
29245         * tree-ssa-loop-im.c (move_computations): Adjust.
29246         (movement_possibility): Likewise.
29247         (determine_max_movement): Likewise.
29248         (gather_mem_refs_stmt): Likewise.
29249         * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
29250         or NAME_MEMORY_TAG.
29251         * tree-complex.c (update_all_vops): Remove.
29252         (expand_complex_move): Adjust.
29253         * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
29254         Simplify test for memory referencing statement.  Exclude
29255         non-invariant ADDR_EXPRs.
29256         * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
29257         * tree-loop-distribution.c (generate_memset_zero): Adjust.
29258         (rdg_flag_uses): Likewise.
29259         * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
29260         related code.
29261         (tree_optimize_tail_calls_1): Also split the
29262         edge from the entry block if we have degenerate PHI nodes in
29263         the first basic block.
29264         * tree.c (init_ttree): Remove memory-tag related code.
29265         (tree_code_size): Likewise.
29266         (tree_node_structure): Likewise.
29267         (build7_stat): Re-write to be build6_stat.
29268         * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
29269         (SSA_VAR_P): Adjust.
29270         (struct tree_memory_tag): Remove.
29271         (struct tree_memory_partition_tag): Likewise.
29272         (union tree_node): Adjust.
29273         (build7): Re-write to be build6.
29274         * tree-pass.h (pass_reset_cc_flags): Remove.
29275         (TODO_update_address_taken): New flag.
29276         (pass_simple_dse): Remove.
29277         * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
29278         * params.h (MAX_ALIASED_VOPS): Remove.
29279         (AVG_ALIASED_VOPS): Likewise.
29280         * omp-low.c (expand_omp_taskreg): Update SSA form.
29281         * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
29282         aliases the lhs in a copy stmt.
29283         * tree-ssa-dse.c (struct address_walk_data): Remove.
29284         (memory_ssa_name_same): Likewise.
29285         (memory_address_same): Likewise.
29286         (get_kill_of_stmt_lhs): Likewise.
29287         (dse_possible_dead_store_p): Simplify, use the oracle.  Handle
29288         unused stores.  Look through PHI nodes into post-dominated regions.
29289         (dse_optimize_stmt): Simplify.  Properly remove stores.
29290         (tree_ssa_dse): Compute dominators.
29291         (execute_simple_dse): Remove.
29292         (pass_simple_dse): Likewise.
29293         * ipa-reference.c (scan_stmt_for_static_refs): Open-code
29294         gimple_loaded_syms and gimple_stored_syms computation.
29295         * toplev.c (dump_memory_report): Dump alias and pta stats.
29296         * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
29297         (vn_reference_eq): Likewise.
29298         (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
29299         copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
29300         valueize_vuses): Remove.
29301         (get_def_ref_stmt_vuses): Simplify.  Rename to ...
29302         (get_def_ref_stmt_vuse): ... this.
29303         (vn_reference_lookup_2): New function.
29304         (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
29305         walking equivalent vuses.  Simplify.
29306         (vn_reference_lookup): Likewise.
29307         (vn_reference_insert): Likewise.
29308         (vn_reference_insert_pieces): Likewise.
29309         (visit_reference_op_call): Simplify.
29310         (visit_reference_op_load): Likewise.
29311         (visit_reference_op_store): Likewise.
29312         (init_scc_vn): Remove shared_lookup_vuses initialization.
29313         (free_scc_vn): Remove shared_lookup_vuses freeing.
29314         (sort_vuses, sort_vuses_heap): Remove.
29315         (get_ref_from_reference_ops): Export.
29316         * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
29317         vector with single vuse pointer.
29318         (vn_reference_lookup_pieces, vn_reference_lookup,
29319         vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
29320         (shared_vuses_from_stmt): Remove.
29321         (get_ref_from_reference_ops): Declare.
29322         * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
29323         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
29324         memory-tag related code.
29325         * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
29326         (likely_value): Add comment, skip static-chain of call statements.
29327         (surely_varying_stmt_p): Adjust.
29328         (gimplify_and_update_call_from_tree): Likewise.
29329         (execute_fold_all_builtins): Do not rebuild alias info.
29330         (gimplify_and_update_call_from_tree): Properly update VOPs.
29331         * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
29332         (copy_ref_info): Remove memory-tag related code.
29333         * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
29334         * ipa-pure-const.c (check_decl): Remove memory-tag related code.
29335         (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
29336         computation.
29337         * tree-ssa-dom.c (gimple_p): Remove typedef.
29338         (eliminate_redundant_computations): Adjust.
29339         (record_equivalences_from_stmt): Likewise.
29340         (avail_expr_hash): Likewise.
29341         (avail_expr_eq): Likewise.
29342         * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
29343         (stmt_makes_single_load): Likewise.
29344         (stmt_makes_single_store): Likewise.
29345         * tree-ssa-alias.c: Rewrite completely.
29346         (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
29347         debug_mem_sym_stats, dump_mem_sym_stats_for_var,
29348         debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
29349         delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
29350         dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
29351         Remove public functions.
29352         (pass_reset_cc_flags): Remove.
29353         (pass_build_alias): Move ...
29354         * tree-ssa-structalias.c (pass_build_alias): ... here.
29355         * tree-ssa-alias.c (may_be_aliased): Move ...
29356         * tree-flow-inline.h (may_be_aliased): ... here.
29357         tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
29358         count_uses_and_derefs): Move ...
29359         * gimple.c: ... here.
29360         * gimple.h (count_uses_and_derefs): Declare.
29361         * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
29362         ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
29363         same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
29364         indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
29365         ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
29366         call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
29367         get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
29368         New functions.
29369         * tree-dfa.c (refs_may_alias_p): Move ...
29370         * tree-ssa-alias.c (refs_may_alias_p): ... here.  Extend.
29371         * tree-ssa-alias.h: New file.
29372         * tree-ssa-sink.c (is_hidden_global_store): Adjust.
29373         (statement_sink_location): Likewise.
29374         * opts.c (decode_options): Do not adjust max-aliased-vops or
29375         avg-aliased-vops values.
29376         * timevar.def (TV_TREE_MAY_ALIAS): Remove.
29377         (TV_CALL_CLOBBER): Likewise.
29378         (TV_FLOW_SENSITIVE): Likewise.
29379         (TV_FLOW_INSENSITIVE): Likewise.
29380         (TV_MEMORY_PARTITIONING): Likewise.
29381         (TV_ALIAS_STMT_WALK): New timevar.
29382         * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
29383         * tree-ssa-address.c (create_mem_ref_raw): Use build6.
29384         (get_address_description): Remove memory-tag related code.
29385         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
29386         * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
29387         * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
29388         and immediate uses in statements.  Document.
29389         * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
29390         (dump_symbols): Remove.
29391         (dump_gimple_mem_ops): Do not dump loaded or stored syms.
29392         * alias.c (get_deref_alias_set): New function split out from ...
29393         (get_alias_set): ... here.
29394         * alias.h (get_deref_alias_set): Declare.
29395         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
29396         type parameter.  Remove restrict pointer handling.  Create a
29397         ref-all pointer in case type-based alias sets do not conflict.
29398         (vect_analyze_data_refs): Remove SMT related code.
29399         * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
29400         (vectorizable_load): Likewise.
29401         * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
29402         (DR_SYMBOL_TAG, DR_VOPS): Remove.
29403         * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
29404         Ignore vops and SMTs.
29405         (dr_analyze_alias): Likewise..
29406         (free_data_ref): Likewise.
29407         (create_data_ref): Likewise.
29408         (analyze_all_data_dependences): Likewise.
29409         (get_references_in_stmt): Adjust.
29410         * tree-flow-inline.h (gimple_aliases_computed_p,
29411         gimple_addressable_vars, gimple_call_clobbered_vars,
29412         gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
29413         factoring_name_p, mark_call_clobbered, clear_call_clobbered,
29414         compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
29415         gimple_mem_ref_stats): Remove.
29416         (gimple_vop): New function.
29417         (op_iter_next_use): Remove vuses and mayuses cases.
29418         (op_iter_next_def): Remove vdefs case.
29419         (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
29420         (clear_and_done_ssa_iter): Do not set removed fields.
29421         (op_iter_init): Likewise.  Skip vuse and/or vdef if requested.
29422         Assert we are not iterating over vuses or vdefs if not also
29423         iterating over uses or defs.
29424         (op_iter_init_use): Likewise.
29425         (op_iter_init_def): Likewise.
29426         (op_iter_next_vdef): Remove.
29427         (op_iter_next_mustdef): Likewise.
29428         (op_iter_init_vdef): Likewise.
29429         (compare_ssa_operands_equal): Likewise.
29430         (link_use_stmts_after): Handle vuse operand.
29431         (is_call_used): Use is_call_clobbered.
29432         (is_call_clobbered): Global variables are always call clobbered,
29433         query the call-clobbers bitmap.
29434         (mark_call_clobbered): Ignore global variables.
29435         (clear_call_clobbered): Likewise.
29436         * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
29437         virtual operands sanity check.
29438         * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
29439         Remove.
29440         (TARGET_MEM_REF): Remove TMR_TAG operand.
29441         * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
29442         Remove call-clobber related code.
29443         (remove_referenced_var): Likewise.  Do not clear mpt or symbol_mem_tag.
29444         (dump_variable): Do not dump SMTs, memory stats, may-aliases or
29445         partitions or escape reason.
29446         (get_single_def_stmt, get_single_def_stmt_from_phi,
29447         get_single_def_stmt_with_phi): Remove.
29448         (dump_referenced_vars): Tidy.
29449         (get_ref_base_and_extent): Allow bare decls.
29450         (collect_dfa_stats): Adjust.
29451         * graphite.c (rename_variables_in_stmt): Adjust.
29452         (graphite_copy_stmts_from_block): Likewise.
29453         (translate_clast): Likewise.
29454         * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
29455         (EXPR_DIES): New.
29456         (translate_vuse_through_block): Use the oracle.
29457         (phi_translate_1): Adjust.
29458         (value_dies_in_block_x): Use the oracle.  Cache the outcome
29459         in EXPR_DIES.
29460         (valid_in_sets): Check if the VUSE for
29461         a REFERENCE is available.
29462         (eliminate): Do not remove stmts during elimination,
29463         instead queue and remove them afterwards.
29464         (do_pre): Do not rebuild alias info.
29465         (pass_pre): Run TODO_rebuild_alias before PRE.
29466         * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
29467         * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
29468         (mark_all_v_defs_stmt): Remove.
29469         (mark_all_v_defs_seq): Adjust.
29470         (sra_replace): Likewise.
29471         (scalarize_use): Likewise.
29472         (scalarize_copy): Likewise.
29473         (scalarize_init): Likewise.
29474         (scalarize_ldst): Likewise.
29475         (todoflags): Remove.
29476         (tree_sra): Do not rebuild alias info.
29477         (tree_sra_early): Adjust.
29478         (pass_sra): Run TODO_update_address_taken before SRA.
29479         * tree-predcom.c (set_alias_info): Remove.
29480         (prepare_initializers_chain): Do not call it.
29481         (mark_virtual_ops_for_renaming): Adjust.
29482         (mark_virtual_ops_for_renaming_list): Remove.
29483         (initialize_root_vars): Adjust.
29484         (initialize_root_vars_lm): Likewise.
29485         (prepare_initializers_chain): Likewise.
29486         * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
29487         (may_propagate_copy_into_stmt): Likewise.
29488         (merge_alias_info): Do nothing for now.
29489         (propagate_tree_value_into_stmt): Adjust.
29490         (stmt_may_generate_copy): Likewise.
29491         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
29492         not mark symbols for renaming.
29493         (forward_propagate_addr_expr): Match up push/pop_stmt_changes
29494         with the same statement, make sure to update the new pointed-to one.
29495         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
29496         call statements, do not mark symbols for renaming.
29497         (mark_operand_necessary): Dump something.
29498         (ref_may_be_aliased): New function.
29499         (mark_aliased_reaching_defs_necessary_1): New helper function.
29500         (mark_aliased_reaching_defs_necessary): Likewise.
29501         (mark_all_reaching_defs_necessary_1): Likewise.
29502         (mark_all_reaching_defs_necessary): Likewise.
29503         (propagate_necessity): Do not process virtual PHIs.  For
29504         non-aliased loads mark all reaching definitions as necessary.
29505         For aliased loads and stores mark the immediate dominating
29506         aliased clobbers as necessary.
29507         (visited): New global static.
29508         (perform_tree_ssa_dce): Free visited bitmap after propagating
29509         necessity.
29510         (remove_dead_phis): Perform simple dead virtual PHI removal.
29511         (remove_dead_stmt): Properly unlink virtual operands when
29512         removing stores.
29513         (eliminate_unnecessary_stmts): Schedule PHI removal after
29514         stmt removal.
29515         * tree-ssa-ter.c (is_replaceable_p): Adjust.
29516         (process_replaceable): Likewise.
29517         (find_replaceable_in_bb): Likewise.
29518         * tree-ssa.c (verify_ssa_name): Verify all VOPs are
29519         based on the single gimple vop.
29520         (verify_flow_insensitive_alias_info): Remove.
29521         (verify_flow_sensitive_alias_info): Likewise.
29522         (verify_call_clobbering): Likewise.
29523         (verify_memory_partitions): Likewise.
29524         (verify_alias_info): Likewise.
29525         (verify_ssa): Adjust..
29526         (execute_update_addresses_taken): Export.  Update SSA
29527         manually.  Optimize only when optimizing.  Use a local bitmap.
29528         (pass_update_address_taken): Remove TODO_update_ssa, add
29529         TODO_dump_func.
29530         (pass_update_address_taken): Just use TODO_update_address_taken.
29531         (init_tree_ssa): Do not initialize addressable_vars.
29532         (verify_ssa): Verify new VUSE / VDEF properties.
29533         Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
29534         Do not call verify_alias_info.
29535         (delete_tree_ssa): Clear the VUSE, VDEF operands.
29536         Do not free the loaded and stored syms bitmaps.  Reset the escaped
29537         and callused solutions.  Do not free addressable_vars.
29538         Remove memory-tag related code.
29539         (warn_uninitialized_var): Aliases are always available.
29540         * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
29541         * lambda-code.c (can_put_in_inner_loop): Adjust.
29542         (can_put_after_inner_loop): Likewise.
29543         (perfect_nestify): Likewise.
29544         * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
29545         (vect_gen_widened_results_half): Remove CALL_EXPR handling.
29546         (vectorizable_conversion): Do not mark symbols for renaming.
29547         * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
29548         (expand_call_inline): Unlink the calls virtual operands before
29549         replacing it.
29550         (tree_function_versioning): Do not call update_ssa if we are not
29551         updating clones.  Simplify.
29552         * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
29553         (propagate_with_phi): Likewise..
29554         * tree-outof-ssa.c (create_temp): Remove memory tag and call
29555         clobber code.  Assert we are not aliased or global.
29556         * tree-flow.h: Include tree-ssa-alias.h
29557         (enum escape_type): Remove.
29558         (struct mem_sym_stats_d): Likewise.
29559         (struct mem_ref_stats_d): Likewise.
29560         (struct gimple_df): Add vop member.  Remove global_var,
29561         call_clobbered_vars, call_used_vars, addressable_vars,
29562         aliases_compted_p and mem_ref_stats members.  Add syms_to_rename,
29563         escaped and callused members.
29564         (struct ptr_info_def): Remove all members, add points-to solution
29565         member pt.
29566         (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
29567         call_clobbered, escape_mask, mpt and symbol_mem_tag members.
29568         * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
29569         (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
29570         (tree-ssa-alias.o): Likewise.
29571         (toplev.o): Add tree-ssa-alias.h
29572         (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
29573         * gimple.c (gimple_set_bb): Fix off-by-one error.
29574         (is_gimple_reg): Do not handle memory tags.
29575         (gimple_copy): Also copy virtual operands.
29576         Delay updating the statement.  Do not reset loaded and stored syms.
29577         (gimple_set_stored_syms): Remove.
29578         (gimple_set_loaded_syms): Likewise.
29579         (gimple_call_copy_skip_args): Copy the virtual operands
29580         and mark the new statement modified.
29581         * tree-ssa-structalias.c (may_alias_p): Remove.
29582         (set_uids_in_ptset): Take the alias set to prune with as
29583         parameter.  Fold in the alias test of may_alias_p.
29584         (compute_points_to_sets): Compute whether a ptr is dereferenced
29585         in a local sbitmap.
29586         (process_constraint): Deal with &ANYTHING on the lhs, reject all
29587         other ADDRESSOF constraints on the lhs.
29588         (get_constraint_for_component_ref): Assert that we don't get
29589         ADDRESSOF constraints from the base of the reference.
29590         Properly generate UNKNOWN_OFFSET for DEREF if needed.
29591         (struct variable_info): Remove collapsed_to member.
29592         (get_varinfo_fc): Remove.
29593         (new_var_info): Do not set collapsed_to.
29594         (dump_constraint): Do not follow cycles.
29595         (dump_constraint_graph): Likewise.
29596         (build_pred_graph): Likewise.
29597         (build_succ_graph): Likewise.
29598         (rewrite_constraints): Likewise.
29599         (do_simple_structure_copy): Remove.
29600         (do_rhs_deref_structure_copy): Remove.
29601         (do_lhs_deref_structure_copy): Remove.
29602         (collapse_rest_of_var): Remove.
29603         (do_structure_copy): Re-implement.
29604         (pta_stats): New global variable.
29605         (dump_pta_stats): New function.
29606         (struct constraint_expr): Make offset signed.
29607         (UNKNOWN_OFFSET): Define special value.
29608         (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
29609         (solution_set_expand): New helper function split out from ...
29610         (do_sd_constraint): ... here.
29611         (solution_set_add): Handle UNKNOWN_OFFSET.  Handle negative offsets.
29612         (do_ds_constraint): Likewise.
29613         (do_sd_constraint): Likewise.  Do not special-case ESCAPED = *ESCAPED
29614         and CALLUSED = *CALLUSED.
29615         (set_union_with_increment): Make inc argument signed.
29616         (type_safe): Remove.
29617         (get_constraint_for_ptr_offset): Handle unknown and negative
29618         constant offsets.
29619         (first_vi_for_offset): Handle offsets before start.  Bail
29620         out early for offsets beyond the variable extent.
29621         (first_or_preceding_vi_for_offset): New function.
29622         (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
29623         Together with ESCAPED = *ESCAPED this properly computes reachability.
29624         (find_what_var_points_to): New function.
29625         (find_what_p_points_to): Implement in terms of find_what_var_points_to.
29626         (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
29627         pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
29628         pt_solutions_intersect): New functions.
29629         (compute_call_used_vars): Remove.
29630         (compute_may_aliases): New main entry into PTA computation.
29631         * gimple.h (gimple_p): New typedef.
29632         (struct gimple_statement_base): Remove references_memory_p.
29633         (struct gimple_statement_with_memory_ops_base): Remove
29634         vdef_ops, vuse_ops, stores and loads members.  Add vdef and vuse
29635         members.
29636         (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
29637         gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
29638         gimple_set_references_memory): Remove.
29639         (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
29640         gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
29641         New functions.
29642         * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
29643         (verify_expr): Allow RESULT_DECL.
29644         (gimple_duplicate_bb): Do not copy virtual operands.
29645         (gimple_duplicate_sese_region): Adjust.
29646         (gimple_duplicate_sese_tail): Likewise.
29647         (mark_virtual_ops_in_region): Remove.
29648         (move_sese_region_to_fn): Do not call it.
29649         * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
29650         and pass_simple_dse.
29651         (execute_function_todo): Handle TODO_update_address_taken,
29652         call execute_update_addresses_taken for TODO_rebuild_alias.
29653         (execute_todo): Adjust.
29654         (execute_one_pass): Init dump files early.
29655         * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
29656         call-clobbered.
29657         (create_general_new_stmt): Clear vops.
29658         * tree-ssa-reassoc.c (get_rank): Adjust.
29659         * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
29660         symbols for renaming.
29661         * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
29662         (PARAM_AVG_ALIASED_VOPS): Likewise.
29663         * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
29664         (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
29665         * tree-ssa-operands.c: Simplify for new virtual operand representation.
29666         (operand_build_cmp, copy_virtual_operands,
29667         create_ssa_artificial_load_stmt, add_to_addressable_set,
29668         gimple_add_to_addresses_taken): Remove public functions.
29669         (unlink_stmt_vdef): New function.
29670
29671 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
29672
29673         * config.gcc (powerpc-*-linux*): Merge variants.
29674
29675 2009-04-02  Chao-ying Fu  <fu@mips.com>
29676             James Grosbach  <james.grosbach@microchip.com>
29677
29678         * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
29679         num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
29680         cop0_sp_offset.
29681         (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
29682         keep_interrupts_masked_p, use_debug_exception_return_p.
29683         (mips_attribute_table): Add interrupt, use_shadow_register_set,
29684         keep_interrupts_masked, use_debug_exception_return.
29685         (mips_interrupt_type_p, mips_use_shadow_register_set_p,
29686         mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
29687         New functions.
29688         (mips_function_ok_for_sibcall): Return false for interrupt handlers.
29689         (mips_print_operand): Process COP0 registers to print $0 .. $31
29690         correctly for GAS to process.
29691         (mips_interrupt_extra_call_saved_reg_p): New function.
29692         (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
29693         extra registers.
29694         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
29695         (mips_compute_frame_info): Add supports for interrupt context that
29696         includes doubleword accumulators and COP0 registers.
29697         (mips_for_each_saved_acc): New function.
29698         (mips_for_each_saved_gpr_and_fpr): Change the function name from
29699         mips_for_each_saved_reg.
29700         (mips_save_reg): Save accumulators.
29701         (mips_kernel_reg_p): A new for_each_rtx callback.
29702         (mips_expand_prologue): Support interrupt handlers.
29703         (mips_restore_reg): Restore accumulators.
29704         (mips_expand_epilogue): Support interrupt handlers.
29705         (mips_can_use_return_insn): Return false for interrupt handlers.
29706         (mips_epilogue_uses): New function.
29707         * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
29708         UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
29709         (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
29710         cop0_move): New instructions.
29711         * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
29712         * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
29713         defines.
29714         (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
29715         New defines.
29716         (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
29717         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
29718         interrupt handlers, we use K0 as the temporary register.
29719         (EPILOGUE_USES): Change to a function call.
29720         * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
29721         handlers, we use K0 as the temporary register.
29722
29723         * doc/extend.texi (Function Attributes): Document interrupt,
29724         use_shadow_register_set, keep_interrupts_masked,
29725         use_debug_exception_return for MIPS attributes.
29726
29727 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
29728
29729         * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
29730         Remove a number of t-files from tmake_file.
29731         * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
29732         * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
29733         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
29734         target_prototype, not TARGET_PROTOTYPE.
29735         (LINK_OS_GNU_SPEC): Define.
29736         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
29737         and darwin-ldoubdle.c.
29738
29739 2009-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
29740
29741         PR driver/39293
29742         * gcc.c (save_temps_flag): Add support for -save-temps=obj.
29743         (cpp_options): Ditto.
29744         (default_compilers): Ditto.
29745         (display_help): Ditto.
29746         (process_command): Ditto.
29747         (do_spec_1): Ditto.
29748         (set_input): Use lbasename instead of duplicate code.
29749         (save_temps_prefix): New static for -save-temps=obj.
29750         (save_temps_length): Ditto.
29751
29752         * doc/invoke.texi (-save-temps=obj): Document new variant to
29753         -save-temps switch.
29754
29755 2009-04-02  Jeff Law  <law@redhat.com>
29756
29757         * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
29758         variable.
29759
29760 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
29761
29762         * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
29763         * configure: Regenerated.
29764
29765 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
29766
29767         * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
29768         share the argument list.
29769
29770 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
29771
29772         Merge
29773
29774         2009-02-12  Diego Novillo  <dnovillo@google.com>
29775
29776         * varpool.c (debug_varpool): New.
29777         * cgraph.h (debug_varpool): Declare.
29778
29779 2009-04-02  Jan Hubicka  <jh@suse.cz>
29780
29781         * passes.c (init_optimization_passes): Remove two copies of ehcleanup
29782         pass.
29783
29784 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
29785
29786         * config/i386/i386.c (ix86_abi): Move initialization to ...
29787         (override_options): Here.
29788
29789 2009-04-02  Christian Bruel  <christian.bruel@st.com>
29790
29791         * config/sh/sh.c (sh_dwarf_register_span): New function.
29792         (TARGET_DWARF_REGISTER_SPAN): Define.
29793         * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
29794
29795 2009-04-02  Ira Rosen  <irar@il.ibm.com>
29796
29797         PR tree-optimization/39595
29798         * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
29799         interleaved loads group is not  greater than the SLP group size.
29800
29801 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
29802
29803         * builtins.c (is_builtin_name): New.
29804         (called_as_built_in): Use is_builtin_name.
29805         * tree.h (is_builtin_name): New.
29806         * varasm.c (incorporeal_function_p): Use is_builtin_name
29807
29808 2009-04-02  Andrew Stubbs  <ams@codesourcery.com>
29809
29810         * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
29811
29812 2009-04-02  Dodji Seketeli  <dodji@redhat.com>
29813
29814         PR c++/26693
29815         * c-decl.c (clone_underlying_type): Move this ...
29816         * c-common.c (set_underlying_type): ... here.
29817         Also, make sure the function properly sets TYPE_STUB_DECL() on
29818         the newly created typedef variant type.
29819         * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
29820         * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
29821         points.
29822
29823 2009-04-02  Richard Guenther  <rguenther@suse.de>
29824
29825         PR tree-optimization/37221
29826         * tree-flow.h (degenerate_phi_result): Declare.
29827         * tree-ssa-dom.c (degenerate_phi_result): Export.
29828         * tree-scalar-evolution.c (analyze_initial_condition): If
29829         the initial condition is defined by a degenerate PHI node
29830         use the degenerate value.
29831
29832 2009-04-01  Eric Botcazou  <ebotcazou@adacore.com>
29833
29834         PR rtl-optimization/39588
29835         * combine.c (merge_outer_ops): Do not set the constant when this
29836         is not necessary.
29837         (simplify_shift_const_1): Do not modify it either in this case.
29838
29839 2009-04-01  Steven Bosscher  <steven@gcc.gnu.org>
29840
29841         * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
29842         tuning is deprecated if -mtune value is set to an Itanium1 variant.
29843
29844 2009-04-01  Janis Johnson  <janis187@us.ibm.com>
29845
29846         PR c/29027
29847         * c-lex.c (interpret_float): Default (no suffix) is double.
29848
29849 2009-04-1  Xinliang David Li  <davidxl@google.com>
29850
29851         * config/i386/i386.c (legitimate_constant_p): Recognize
29852         all one vector constant.
29853
29854 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
29855
29856         * config/vax/vax.c: Add #includes to silence warnings.
29857         Change #include order to silence two warnings.
29858
29859 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
29860
29861         * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
29862         (ASM_SPEC): Pass -k to the assembler for PIC code.
29863
29864 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
29865
29866         * config.gcc: Add vax-*-linux* to the switch.
29867         * config/vax/linux.h: New file. (TARGET_VERSION,
29868         TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
29869
29870 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
29871
29872         * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
29873         Use predicate macros instead of GET_CODE() == foo.
29874         * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
29875         ashlsi3, rotrsi3, <unnamed>): Likewise.
29876
29877 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
29878
29879         * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
29880         jbbccihi, jbbccisi): Remova trailing whitespace.
29881         * config/vax/constraints.md: Likewise.
29882         * config/vax/elf.h (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
29883         * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
29884         * config/vax/predicates.md: Likewise.
29885         * config/vax/vax.c (print_operand_address, vax_output_int_move,
29886         vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
29887         * config/vax/vax.h: Likewise.
29888         * config/vax/vax.md (nonlocal_goto): Likewise.
29889
29890 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
29891
29892         * config/vax/vax.c (vax_float_literal, vax_output_int_move)
29893         (indirectable_address_p, adjacent_operands_p): Add spaces around
29894         braces.
29895         * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
29896
29897 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
29898
29899         * config/vax/vax.c (legitimate_constant_address_p,
29900         legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
29901         index_term_p, reg_plus_index_p, legitimate_address_p,
29902         vax_mode_dependent_address_p): Update comments to match functions
29903         modified by the recent int->bool conversion.
29904
29905 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
29906
29907         * config/vax/builtins.md: Update copyright message.
29908         * config/vax/constraints.md: Likewise.
29909         * config/vax/netbsd-elf.h: Likewise.
29910         * config/vax/predicates.md: Likewise.
29911         * config/vax/vax-protos.h: Likewise.
29912         * config/vax/vax.c: Likewise.
29913         * config/vax/vax.h: Likewise.
29914         * config/vax/vax.md: Likewise.
29915         * config/vax/vax.opt: Likewise.
29916
29917 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
29918
29919         * config/vax/builtins.md (ffssi2, ffssi2_internal,
29920         sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
29921         * config/vax/constraints.md (B, R): Likewise.
29922         * config/vax/predicates.md (external_memory_operand,
29923         nonimmediate_addsub_di_operand): Likewise.
29924         * config/vax/vax.c (vax_output_int_add): Likewise.
29925         * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
29926         untyped_call): Likewise.
29927
29928 2009-04-01  Matt Thomas  <matt@3am-software.com>
29929
29930         * config/vax/predicates.md: New file.
29931         (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
29932         external_const_operand, nonsymbolic_operand, external_memory_operand,
29933         indirect_memory_operand, indexed_memory_operand,
29934         illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
29935         nonimmediate_addsub_di_operand, general_addsub_di_operand): New
29936         predicate.
29937         * config/vax/constraints.md: New file.
29938         (Z0, U06,  U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
29939         New constraint.
29940         * config/vax/builtins.md: New file.
29941         (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
29942         jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
29943         jbbccisi): Define.
29944         * config/vax/vax.opt (mqmath): Add option.
29945         * config/vax/vax.md (isfx): Extend with DI.
29946         (VAXintQH, VAXintQHSD): Define.
29947         (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
29948         mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
29949         and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
29950         one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
29951         (movdi): Update constraints and use vax_output_int_move().
29952         (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
29953         movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
29954         pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
29955         nonlocal_goto): New.
29956         (mov<mode>): Extend accepted operand types.
29957         (subdi3_old): Rename from subdi3, change update constraints and use
29958         a new implementation.
29959         * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
29960         (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
29961         MOVE_RATIO, CLEAR_RATIO): Define.
29962         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
29963         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
29964         (PRINT_OPERAND): Redefine using a function instead of inlined code.
29965         * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
29966         (split_quadword_operands): Make static and really allow variable
29967         splitting.
29968         (print_operand_address): Update for PIC generation.
29969         (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
29970         indexable_address_p, fixup_mathdi_operand,
29971         vax_expand_addsub_di_operands, adjacent_operands_p): New.
29972         (vax_float_literal, legitimate_constant_p,
29973         indirectable_constant_address_p, index_term_p,
29974         reg_plus_index_p): Return bool instead of int.
29975         (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
29976         where needed.
29977         (vax_output_int_move, vax_output_int_add): Extend to allow PIC
29978         generation.
29979         (vax_output_conditional_branch): Indent.
29980         (legitimate_constant_address_p, indirectable_constant_address_p,
29981         indirectable_address_p, nonindexed_address_p, legitimate_address_p,
29982         vax_mode_dependent_address_p): Return bool instead of int, update for
29983         PIC generation.
29984         * config/vax/vax-protos.h (legitimate_constant_address_p,
29985         legitimate_constant_p, legitimate_address_p,
29986         vax_mode_dependent_address_p): Change declaration to bool.
29987         (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
29988         vax_expand_addsub_di_operands, vax_output_int_subtract,
29989         vax_output_movmemsi): Declare.
29990         (split_quadword_operands, vax_float_literal): Delete declaration.
29991         * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
29992         * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
29993         VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
29994         ASM_OUTPUT_DWARF_PCREL): Define.
29995         (ASM_SPEC): Change definition to allow PIC generation.
29996
29997 2009-04-01  Steve Ellcey  <sje@cup.hp.com>
29998
29999         * doc/sourcebuild.texi: Update front-end requirements.
30000
30001 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
30002
30003         PR target/39226
30004         * config/rs6000/rs6000.md (andsi3_internal5_nomc,
30005         anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
30006         (booldi3_internal3): Use boolean_or_operator instead of
30007         boolean_operator.
30008
30009 2009-04-01  Joseph Myers  <joseph@codesourcery.com>
30010
30011         PR c/39605
30012         * c-decl.c (grokdeclarator): Pedwarn for file-scope array
30013         declarator whose size is not an integer constant expression but
30014         folds to an integer constant, then treat it as a constant
30015         subsequently.
30016
30017 2009-04-01  Richard Guenther  <rguenther@suse.de>
30018
30019         * fold-const.c (fold_plusminus_mult_expr): Do not fold
30020         i * 4 + 2 to (i * 2 + 1) * 2.
30021
30022 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
30023
30024         PR c/37772
30025         * c-parser.c (c_parser_asm_statement): Skip until close paren and
30026         return if c_parser_asm_string_literal returned NULL.
30027
30028 2009-04-01  Nick Clifton  <nickc@redhat.com>
30029
30030         * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
30031         already defined.
30032         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
30033         * config/m32c/m32c-lib2.c: Remove unused typedefs.  Rename the
30034         other typedefs to avoid conflicts with libgcc2.c.  Define labels
30035         to gain 16-bit bit-manipulation functions from libgcc2.c and then
30036         include it.
30037         * config/m32c/m32c-lib2-trapv.c: New file.  Define labels
30038         to gain 16-bit trapping arithmetic functions from libgcc2.c and
30039         then include it.
30040
30041 2009-04-01  Rafael Avila de Espindola  <espindola@google.com>
30042
30043         * varasm.c (default_function_rodata_section): Declare DOT as
30044         const char*.
30045
30046 2009-04-01  Kai Tietz  <kai.tietz@onevision.com>
30047             Andrey Galkin  <agalkin@hypercom.com>
30048
30049         PR/39492
30050         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
30051         Make object_name unique for each process.
30052
30053 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
30054
30055         PR other/39591
30056         * omp-low.c (remove_exit_barrier): Don't optimize if there are any
30057         addressable variables in the parallel that could go out of scope while
30058         running queued tasks.
30059
30060 2009-04-01  Anatoly Sokolov  <aesok@post.ru>
30061
30062         * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
30063         (CASE_VALUES_THRESHOLD): Redefine.
30064         * config/avr/avr.c (avr_override_options): Remove initialization of
30065         avr_case_values_threshold variable.
30066         (avr_case_values_threshold): Remove variable. Add new function.
30067         * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
30068         * config/avr/avr.opt (mno-tablejump): Remove option.
30069         * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
30070
30071 2009-04-01  DJ Delorie  <dj@redhat.com>
30072
30073         * varasm.c (default_function_rodata_section): Don't assume
30074         anything about where the first '.' in the section name is.
30075
30076 2009-04-01  Alan Modra  <amodra@bigpond.net.au>
30077
30078         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
30079         rs6000_emit_stack_tie.
30080
30081 2009-03-31  Ian Lance Taylor  <iant@google.com>
30082
30083         * tree-eh.c (tree_remove_unreachable_handlers): Compare
30084         gimple_code with GIMPLE_RESX, not RESX.
30085
30086 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
30087
30088         * c-common.c (c_get_ident): New.
30089         (c_common_nodes_and_builtins): Call it for type names that may be NULL.
30090
30091 2009-04-01  Ben Elliston  <bje@au.ibm.com>
30092
30093         * config/rs6000/sysv4.opt (msdata): Improve option description.
30094
30095 2009-03-31  Steve Ellcey  <sje@cup.hp.com>
30096
30097         * config/ia64/ia64.md (divsf3_internal_lat): Remove.
30098         (divdf3_internal_lat): Remove.
30099         (divxf3_internal_lat): Remove.
30100         (divxf3_internal_thr): Remove.
30101         (divxf): Use divxf3_internal.
30102         * config/ia64/div.md (divsf3_internal_lat): New.
30103         (divdf3_internal_lat): New.
30104         (divxf3_internal): New.
30105
30106 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
30107
30108         PR c/448
30109         * Makefile.in (USE_GCC_STDINT): Define.
30110         (stmp-int-hdrs): Install stdint.h if applicable.
30111         * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
30112         if known.
30113         (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
30114         (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
30115         UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
30116         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
30117         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
30118         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
30119         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
30120         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
30121         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
30122         (c_common_nodes_and_builtins): Initialize
30123         underlying_wchar_type_node.  Do not initialize
30124         signed_wchar_type_node or unsigned_wchar_type_node.  Initialize
30125         nodes for new types.
30126         (c_stddef_cpp_builtins): Define macros for new types.
30127         * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
30128         Remove.
30129         (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
30130         CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
30131         CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
30132         CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
30133         CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
30134         CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
30135         CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
30136         CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
30137         CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
30138         (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
30139         (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
30140         int16_type_node, int32_type_node, int64_type_node,
30141         uint8_type_node, uint16_type_node, c_uint32_type_node,
30142         c_uint64_type_node, int_least8_type_node, int_least16_type_node,
30143         int_least32_type_node, int_least64_type_node,
30144         uint_least8_type_node, uint_least16_type_node,
30145         uint_least32_type_node, uint_least64_type_node,
30146         int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
30147         int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
30148         uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
30149         uintptr_type_node): Define.
30150         * c-cppbuiltin.c (builtin_define_constants,
30151         builtin_define_type_minmax): New.
30152         (builtin_define_stdint_macros): Define more macros.
30153         (c_cpp_builtins): Define more limit macros.
30154         (type_suffix): New.
30155         (builtin_define_type_max): Define in terms of
30156         builtin_define_type_minmax.  Remove is_long parameter.  All
30157         callers changed.
30158         * config.gcc (use_gcc_stdint): Define.
30159         (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
30160         Add newlib-stdint.h for generic targets.
30161         * config/glibc-stdint.h, config/newlib-stdint.h,
30162         ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
30163         * config/m32c/m32c.h (UINTPTR_TYPE): Define.
30164         * config/score/score.h (UINTPTR_TYPE): Define.
30165         * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
30166         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
30167         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
30168         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
30169         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
30170         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
30171         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
30172         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
30173         * config/spu/spu.h (STDINT_LONG32): Define.
30174         * configure.ac (use_gcc_stdint): Substitute.
30175         * configure: Regenerate.
30176         * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
30177         __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
30178         __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
30179         __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
30180         __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
30181         __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
30182         __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
30183         __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
30184         __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
30185         __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
30186         __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
30187         __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
30188         __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
30189         __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
30190         __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
30191         __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
30192         __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
30193         __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
30194         __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
30195         __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
30196         __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
30197         * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
30198         INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
30199         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
30200         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
30201         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
30202         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
30203         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
30204         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
30205
30206 2009-03-31  Bernd Schmidt  <bernd.schmidt@analog.com>
30207
30208         * loop-iv.c (suitable_set_for_replacement): Renamed from
30209         simplify_using_assignment; changed to return bool and to accept new
30210         args DEST and SRC.  Return true iff we find a source/destination pair
30211         that can be used to make a replacement, and fill SRC and DEST if so.
30212         Remove arg ALTERED.  Don't deal with altered regs here.  All callers
30213         changed.
30214         (simplify_using_initial_values): Deal with altered regs here and track
30215         more precisely the effect they have on the validity of our expression.
30216
30217         * loop-iv.c (simplify_using_condition): A condition of the form
30218         (EQ REG CONST) can be used to simply make a substitution.
30219         (simplify_using_initial_values): Keep track of conditions we have seen
30220         and keep using them to simplify new expressions, while applying the
30221         same substitutions to them as to the expression.
30222
30223         * simplify-rtx.c (simplify_relational_operation_1): Simplify
30224         (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
30225         GEU/LTU reversed.
30226
30227         * loop-iv.c (determine_max_iter): New arg OLD_NITER.  All callers
30228         changed.  Use this when trying to improve the upper bound.
30229         Generate the comparison by using simplify_gen_relational.
30230
30231         * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
30232
30233         * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
30234         functions.
30235         (simplify_using_assignment, simplify_using_initial_values): Call
30236         replace_in_expr to make replacements.  Call replace_single_def_regs
30237         once on the initial version of the expression.
30238
30239 2009-03-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30240
30241         PR target/27237
30242         * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
30243
30244 2009-03-31  Richard Guenther  <rguenther@suse.de>
30245
30246         PR middle-end/31029
30247         * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
30248         equality comparisons.  Fold C - X CMP X if C % 2 == 1.
30249
30250 2009-03-31  Richard Guenther  <rguenther@suse.de>
30251
30252         * tree.h (div_if_zero_remainder): Declare.
30253         * fold-const.c (div_if_zero_remainder): Export.
30254         * tree-ssa-forwprop.c
30255         (forward_propagate_addr_into_variable_array_index): Handle
30256         constant array index addition outside of the variable index.
30257
30258 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
30259
30260         PR target/39592
30261         * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
30262         define_splits, floatunssi<mode>2): Require x87 conversions from
30263         DImode to be permitted.
30264
30265 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
30266
30267         PR preprocessor/15638
30268         * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
30269
30270 2009-03-31  Richard Guenther  <rguenther@suse.de>
30271
30272         PR middle-end/23401
30273         PR middle-end/27810
30274         * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
30275         (struct tree_decl_with_vis): Remove gimple_formal_temp member.
30276         * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
30277         a separate statement.
30278         * gimplify.c (pop_gimplify_context): Remove formal temp handling.
30279         (lookup_tmp_var): Likewise.
30280         (is_gimple_formal_tmp_or_call_rhs): Remove.
30281         (is_gimple_reg_or_call_rhs): Rename to ...
30282         (is_gimple_reg_rhs_or_call): ... this.
30283         (is_gimple_mem_or_call_rhs): Rename to ...
30284         (is_gimple_mem_rhs_or_call): ... this.
30285         (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call.  Set
30286         DECL_GIMPLE_REG_P only if is_formal is true.
30287         (gimplify_compound_lval): Use is_gimple_reg.  Remove workaround
30288         for non-proper post-modify expression gimplification.
30289         (gimplify_self_mod_expr): For post-modify expressions gimplify
30290         the lvalue to a minimal lvalue.
30291         (rhs_predicate_for): Remove formal temp case.
30292         (gimplify_modify_expr_rhs): Likewise.
30293         (gimplify_addr_expr): Use is_gimple_reg.
30294         (gimplify_expr): Remove formal temp cases.
30295         (gimple_regimplify_operands): Likewise.
30296         * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
30297         and FILTER_EXPR like constants.
30298         * gimple.c (walk_gimple_op): Fix val_only initialization, use
30299         is_gimple_reg.
30300         (is_gimple_formal_tmp_rhs): Remove.
30301         (is_gimple_reg_rhs): Remove special casing.
30302         (is_gimple_mem_rhs): Fix.
30303         (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
30304         (is_gimple_formal_tmp_var): Remove.
30305         (is_gimple_formal_tmp_reg): Likewise.
30306         (is_gimple_min_lval): Allow invariant component ref parts.
30307         * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
30308         is_gimple_formal_tmp_reg): Remove declarations.
30309         * tree-cfg.c (verify_expr): Verify that variables with address
30310         taken do not have DECL_GIMPLE_REG_P set.
30311         * tree-mudflap.c (mf_build_check_statement_for): Use
30312         force_gimple_operand instead of gimplify_expr.
30313
30314 2009-03-31  Ayal Zaks  <zaks@il.ibm.com>
30315
30316         * modulo-sched.c (sms_schedule_by_order): Pass the actual
30317         schedulable rows to compute_split_row.
30318
30319 2009-03-31  Ben Elliston  <bje@au.ibm.com>
30320
30321         PR target/31635
30322         * config/rs6000/rs6000.c (rs6000_handle_option): Handle
30323         OPT_mvrsave.
30324
30325 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
30326
30327         * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
30328         * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
30329         * configure: Regenerate.
30330         * config.in: Regenerate.
30331         * config/rs6000/rs6000.opt (mtls-markers): Add.
30332         * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
30333         * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
30334         (tls_ld_aix, tls_ld_sysv): Likewise.
30335         (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
30336         (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
30337
30338 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
30339
30340         * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
30341
30342 2009-03-30  Jan Hubicka  <jh@suse.cz>
30343
30344         * tree-eh.c (make_eh_edges): Set probability 100% to first edge
30345         out of RESX.
30346         (tree_remove_unreachable_handlers): Cleanup EH predecestor
30347         detection and label handling.
30348
30349 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
30350
30351         * ira-int.h (ira_allocno): Rename left_conflicts_num to
30352         left_conflicts_size.
30353         (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
30354         ALLOCNO_LEFT_CONFLICTS_SIZE.
30355
30356         * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
30357         remove_allocno_from_bucket_and_push,
30358         allocno_spill_priority_compare, push_allocnos_to_stack,
30359         setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
30360         instead of ALLOCNO_LEFT_CONFLICTS_NUM.
30361         (setup_allocno_left_conflicts_num): Ditto.  Rename to
30362         setup_allocno_left_conflicts_size.
30363         (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
30364         instead of ALLOCNO_LEFT_CONFLICTS_NUM and
30365         setup_allocno_left_conflicts_size instead of
30366         setup_allocno_left_conflicts_num.
30367
30368         * ira-build.c (ira_create_allocno): Use
30369         ALLOCNO_LEFT_CONFLICTS_SIZE instead of
30370         ALLOCNO_LEFT_CONFLICTS_NUM.
30371
30372 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
30373
30374         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
30375         instead of DF_LR_OUT.
30376
30377         * ira-lives.c (process_bb_node_lives): Ditto.
30378
30379         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
30380         instead of DF_LR_{OUT,IN}.
30381
30382         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
30383
30384         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
30385
30386 2009-03-30  Jan Hubicka  <jh@suse.cz>
30387
30388         * except.c (label_to_region_map): Fix thinko.
30389
30390 2009-03-30  Steve Ellcey  <sje@cup.hp.com>
30391
30392         PR middle-end/38237
30393         * tree.h (tree_find_value): New declaration.
30394         * tree.c (tree_find_value): New function.
30395         * varasm.c (assemble_external): Avoid duplicate entries on lists.
30396
30397 2009-03-30  Jakub Jelinek  <jakub@redhat.com>
30398
30399         PR debug/39563
30400         * c-decl.c (struct c_binding): Add locus field.
30401         (bind): Add locus argument, set locus field from it.
30402         (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
30403         add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
30404         (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
30405         implicitly_declare, undeclared_variable, lookup_label,
30406         declare_label, c_make_fname_decl, c_builtin_function,
30407         c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
30408         bind callers.
30409
30410 2009-03-30  H.J. Lu  <hongjiu.lu@intel.com>
30411
30412         PR target/38781
30413         * config/i386/i386.c (classify_argument): Check total size of
30414         structure.
30415
30416 2009-03-30  Martin Jambor  <mjambor@suse.cz>
30417
30418         * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
30419         IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
30420         IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
30421         respectively.
30422
30423         * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
30424         seen_variable_array_ref while also traversing a union.
30425
30426         * tree-inline.c (optimize_inline_calls): Do not call
30427         cgraph_node_remove_callees.
30428         * cgraphbuild.c (remove_cgraph_callee_edges): New function.
30429         (pass_remove_cgraph_callee_edges): New variable.
30430         * passes.c (init_optimization_passes): Add
30431         pass_remove_cgraph_callee_edges after early inlining and before all
30432         late intraprocedural passes.
30433
30434         * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
30435
30436 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
30437
30438         * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
30439         Fix typos in names.
30440
30441 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
30442
30443         * combine.c (simplify_comparison): Use have_insn_for.
30444         * dojump.c (do_jump): Likewise.
30445
30446 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
30447
30448         * config/sparc/sparc.c (sparc_compare_emitted): Remove.
30449         (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
30450         sparc_compare_op0 like sparc_compare_emitted used to be handled.
30451         (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
30452         instead of sparc_compare_emitted.
30453         * config/sparc/sparc.h (sparc_compare_emitted): Remove.
30454         * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
30455         instead of sparc_compare_emitted.
30456
30457 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
30458
30459         * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
30460         enter/exit cfglayout mode.
30461         (pass_partition_block): Require it.
30462         * combine.c (find_single_use, reg_dead_at_p): Use CFG.
30463         (combine_instructions): Track basic blocks instead of labels.
30464         (update_cfg_for_uncondjump): New.
30465         (try_combine): Use it.  Update jumps after rescanning.
30466         (pass_combine): Require PROP_cfglayout.
30467         * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
30468
30469 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
30470
30471         * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
30472         Provide/destroy PROP_cfglayout respectively.
30473         * gcse.c (pass_jump_bypass, pass_gcse): Require it.
30474         * tree-pass.h (PROP_cfglayout): New.
30475
30476 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
30477
30478         * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
30479         fold_convert_const_fixed_from_fixed,
30480         fold_convert_const_fixed_from_int,
30481         fold_convert_const_fixed_from_real, fold_negate_const): Do not
30482         set TREE_CONSTANT_OVERFLOW.
30483         * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
30484         * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
30485
30486 2009-03-30  Ira Rosen  <irar@il.ibm.com>
30487
30488         * tree-vect-loop-manip.c: New file.
30489         * tree-vectorizer.c: Update documentation and included files.
30490         (vect_loop_location): Make extern.
30491         (rename_use_op): Move to tree-vect-loop-manip.c
30492         (rename_variables_in_bb, rename_variables_in_loop,
30493         slpeel_update_phis_for_duplicate_loop,
30494         slpeel_update_phi_nodes_for_guard1,
30495         slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
30496         slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
30497         slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
30498         set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
30499         find_loop_location): Likewise.
30500         (new_stmt_vec_info): Move to tree-vect-stmts.c.
30501         (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
30502         get_vectype_for_scalar_type, vect_is_simple_use,
30503         supportable_widening_operation, supportable_narrowing_operation):
30504         Likewise.
30505         (bb_in_loop_p): Move to tree-vect-loop.c.
30506         (new_loop_vec_info, destroy_loop_vec_info,
30507         reduction_code_for_scalar_code, report_vect_op,
30508         vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
30509         (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
30510         (vect_supportable_dr_alignment): Likewise.
30511         * tree-vectorizer.h (tree-data-ref.h): Include.
30512         (vect_loop_location): Declare.
30513         Reorganize function declarations according to the new file structure.
30514         * tree-vect-loop.c: New file.
30515         * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
30516         tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
30517         * tree-vect-data-refs.c: New file.
30518         * tree-vect-patterns.c (timevar.h): Don't include.
30519         * tree-vect-stmts.c: New file.
30520         * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
30521         tree-vect-slp.c, tree-vect-loop.c.
30522         * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
30523         tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
30524         tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
30525         (tree-vect-analyze.o): Remove.
30526         (tree-vect-transform.o): Likewise.
30527         (tree-vect-data-refs.o): Add rule.
30528         (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
30529         tree-vect-slp.o): Likewise.
30530         (tree-vect-patterns.o): Remove redundant dependencies.
30531         (tree-vectorizer.o): Likewise.
30532         * tree-vect-slp.c: New file.
30533
30534 2009-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30535
30536         * optc-gen.awk: Warn if an option flag has multiple different
30537         help strings.
30538
30539 2009-03-30  Sebastian Pop  <sebastian.pop@amd.com>
30540
30541         * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
30542         -floop-block): Document dependences on PPL, CLooG and Graphite.
30543
30544 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
30545
30546         PR rtl-optimization/323
30547         * c-common.c (c_fully_fold, convert_and_check,
30548         c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
30549         (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
30550         * c-common.def (EXCESS_PRECISION_EXPR): New.
30551         * c-cppbuiltin.c (builtin_define_float_constants): Define
30552         constants with enough digits for long double.
30553         * c-lex.c (interpret_float): Interpret constant with excess
30554         precision where appropriate.
30555         * c-opts.c (c_common_post_options): Set
30556         flag_excess_precision_cmdline.  Give an error for
30557         -fexcess-precision=standard for C++ for processors where the
30558         option is significant.
30559         * c-parser.c (c_parser_conditional_expression): Handle excess
30560         precision in condition.
30561         * c-typeck.c (convert_arguments): Handle arguments with excess
30562         precision.
30563         (build_unary_op): Move excess precision outside operation.
30564         (build_conditional_expr): Likewise.
30565         (build_compound_expr): Likewise.
30566         (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
30567         (build_modify_expr): Handle excess precision in RHS.
30568         (convert_for_assignment): Handle excess precision in converted
30569         value.
30570         (digest_init, output_init_element, process_init_element): Handle
30571         excess precision in initializer.
30572         (c_finish_return): Handle excess precision in return value.
30573         (build_binary_op): Handle excess precision in operands and add
30574         excess precision as needed for operation.
30575         * common.opt (-fexcess-precision=): New option.
30576         * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
30577         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
30578         For standard excess precision, output explicit conversion to and
30579         truncation from XFmode.
30580         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
30581         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
30582         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
30583         define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
30584         define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
30585         floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
30586         divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
30587         *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
30588         *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
30589         define_splits, sqrt<mode>2): Disable where appropriate for
30590         standard excess precision.
30591         * convert.c (convert_to_real): Do not shorten arithmetic to type
30592         for which excess precision would be used.
30593         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
30594         * doc/invoke.texi (-fexcess-precision=): Document option.
30595         (-mfpmath=): Correct index entry.
30596         * flags.h (enum excess_precision, flag_excess_precision_cmdline,
30597         flag_excess_precision): New.
30598         * langhooks.c (lhd_post_options): Set
30599         flag_excess_precision_cmdline.
30600         * opts.c (common_handle_option): Handle -fexcess-precision=.
30601         * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
30602         init_excess_precision): New.
30603         (lang_dependent_init_target): Call init_excess_precision.
30604         * tree.c (excess_precision_type): New.
30605         * tree.h (excess_precision_type): Declare.
30606
30607 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
30608
30609         PR c/35235
30610         * c-typeck.c (build_component_ref): Do not copy qualifiers from
30611         non-lvalue to component.
30612
30613 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
30614
30615         PR preprocessor/34695
30616         * Makefile.in (c-opts.o): Depend on c-tree.h.
30617         * c-common.c: Move down include of diagnostic.h.
30618         (done_lexing, c_cpp_error): New.
30619         * c-common.h (done_lexing): Declare.
30620         * c-decl.c (c_write_global_declarations): Don't check cpp_errors
30621         (parse_in).
30622         * c-opts.c: Include c-tree.h.
30623         (c_common_init_options): Set preprocessor error callback.
30624         (c_common_handle_option): Do not set preprocessor
30625         inhibit_warnings, warnings_are_errors, warn_system_headers,
30626         pedantic_errors or inhibit_warnings flags.
30627         (c_common_post_options): Do not check cpp_errors (parse_in).
30628         (c_common_finish): Do not output dependencies if there were
30629         errors.  Do not check return value of cpp_finish.
30630         * c-ppoutput.c (pp_file_change): Set input_location.
30631         * c-tree.h (c_cpp_error): Declare.
30632         * diagnostic.c (diagnostic_set_info_translated): Also initialize
30633         override_column.
30634         (diagnostic_build_prefix): Check override_column.
30635         * diagnostic.h (diagnostic_info): Add override_column field.
30636         (diagnostic_override_column): Define.
30637
30638 2009-03-28  Paolo Bonzini  <bonzini@gnu.org>
30639
30640         * c-common.c (c_expand_expr, c_staticp): Remove.
30641         * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
30642         * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
30643         COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
30644         * c-gimplify.c (gimplify_compound_literal_expr,
30645         optimize_compound_literals_in_ctor): Remove.
30646         (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
30647         * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
30648         * c-semantics.c (emit_local_var): Remove.
30649
30650         * langhooks-def.h (lhd_expand_expr): Remove.
30651         * langhooks.c (lhd_expand_expr): Remove.
30652         * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
30653
30654         * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
30655         handling from c-semantics.c; don't call into langhook.
30656         (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
30657         * gimplify.c (gimplify_compound_literal_expr,
30658         optimize_compound_literals_in_ctor): Move from c-gimplify.c.
30659         (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
30660         (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
30661         as was done in c-gimplify.c.
30662         * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
30663         * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
30664         Move from c-common.h.
30665         * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
30666
30667         * tree.c (staticp): Do not call langhook.
30668         * langhooks.c (lhd_staticp): Delete.
30669         * langhooks-def.h (lhd_staticp): Delete prototype.
30670         (LANG_HOOKS_STATICP): Delete.
30671         (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
30672
30673         * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
30674         instead of DECL_STMTs.
30675
30676 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
30677
30678         PR c/456
30679         PR c/5675
30680         PR c/19976
30681         PR c/29116
30682         PR c/31871
30683         PR c/35198
30684         * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
30685         void_type_node.
30686         (fold_call_expr): Return a NOP_EXPR from folding rather than the
30687         contained expression.
30688         * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
30689         (c_common_truthvalue_conversion): Use c_save_expr.  Do not fold
30690         conditional expressions for C.
30691         (decl_constant_value_for_optimization): Move from
30692         decl_constant_value_for_broken_optimization in c-typeck.c.  Check
30693         whether optimizing and that the expression is a VAR_DECL not of
30694         array type instead of doing such checks in the caller.  Do not
30695         check pedantic.  Call gcc_unreachable for C++.
30696         * c-common.def (C_MAYBE_CONST_EXPR): New.
30697         * c-common.h (c_fully_fold, c_save_expr,
30698         decl_constant_value_for_optimization): New prototypes.
30699         (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
30700         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
30701         EXPR_INT_CONST_OPERANDS): Define.
30702         * c-convert.c (convert): Strip nops from expression.
30703         * c-decl.c (groktypename): Take extra parameters expr and
30704         expr_const_operands.  Update call to grokdeclarator.
30705         (start_decl): Update call to grokdeclarator.  Add statement for
30706         expressions used in type of decl.
30707         (grokparm): Update call to grokdeclarator.
30708         (push_parm_decl): Update call to grokdeclarator.
30709         (build_compound_literal): Add parameter non_const and build a
30710         C_MAYBE_COSNT_EXPR if applicable.
30711         (grokdeclarator): Take extra parameters expr and
30712         expr_const_operands.  Track expressions used in declaration
30713         specifiers and declarators.  Fold array sizes and track whether
30714         they are constant expressions and whether they are integer
30715         constant expressions.
30716         (parser_xref_tag): Set expr and expr_const_operands fields in
30717         return value.
30718         (grokfield): Update call to grokdeclarator.
30719         (start_function): Update call to grokdeclarator.
30720         (build_null_declspecs): Set expr and expr_const_operands fields in
30721         return value.
30722         (declspecs_add_type): Handle expressions in typeof specifiers.
30723         * c-parser.c (c_parser_declspecs): Set expr and
30724         expr_const_operands fields for declaration specifiers.
30725         (c_parser_enum_specifier): Likewise.
30726         (c_parser_struct_or_union_specifier): Likewise.
30727         (c_parser_typeof_specifier): Likewise.  Update call to
30728         groktypename.  Fold expression as needed.  Return expressions with
30729         type instead of adding statements.
30730         (c_parser_attributes): Update calls to c_parser_expr_list.
30731         (c_parser_statement_after_labels): Fold expression before passing
30732         to objc_build_throw_stmt.
30733         (c_parser_condition): Fold expression.
30734         (c_parser_asm_operands): Fold expression.
30735         (c_parser_conditional_expression): Use c_save_expr.  Update call
30736         to build_conditional_expr.
30737         (c_parser_alignof_expression): Update call to groktypename.
30738         (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
30739         original_code.  Fold expression argument of va_arg.  Create
30740         C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
30741         argument to va_arg.  Update calls to groktypename.  Fold array
30742         index for offsetof.  Verify that first argument to
30743         __builtin_choose_expr has integer type.
30744         (c_parser_postfix_expression_after_paren_type): Update calls to
30745         groktypename and build_compound_literal.  Handle expressions with
30746         side effects in type name.
30747         (c_parser_postfix_expression_after_primary): Update call to
30748         c_parser_expr_list.  Set original_code for calls to
30749         __builtin_constant_p.
30750         (c_parser_expr_list): Take extra parameter fold_p.  Fold
30751         expressions if requested.
30752         (c_parser_objc_type_name): Update call to groktypename.
30753         (c_parser_objc_synchronized_statement): Fold expression.
30754         (c_parser_objc_receiver): Fold expression.
30755         (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
30756         (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
30757         c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
30758         * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
30759         (struct c_typespec): Add elements expr and expr_const_operands.
30760         (struct c_declspecs): Add elements expr and expr_const_operands.
30761         (groktypename, build_conditional_expr, build_compound_literal):
30762         Update prototypes.
30763         (in_late_binary_op): Declare.
30764         * c-typeck.c (note_integer_operands): New function.
30765         (in_late_binary_op): New variable.
30766         (decl_constant_value_for_broken_optimization): Move to c-common.c
30767         and rename to decl_constant_value_for_optimization.
30768         (default_function_array_conversion): Do not strip nops.
30769         (default_conversion): Do not call
30770         decl_constant_value_for_broken_optimization.
30771         (build_array_ref): Do not fold result.
30772         (c_expr_sizeof_expr): Fold operand.  Use C_MAYBE_CONST_EXPR for
30773         result when operand is a VLA.
30774         (c_expr_sizeof_type): Update call to groktypename.  Handle
30775         expressions included in type name.  Use C_MAYBE_CONST_EXPR for
30776         result when operand names a VLA type.
30777         (build_function_call): Update call to build_compound_literal.
30778         Only fold result for calls to __builtin_* functions.  Strip
30779         NOP_EXPR from INTEGER_CST returned from such functions.  Fold
30780         the function designator.
30781         (convert_arguments): Fold arguments.  Update call to
30782         convert_for_assignment.
30783         (build_unary_op): Handle increment and decrement of
30784         C_MAYBE_CONST_EXPR.  Move lvalue checks for increment and
30785         decrement earlier.  Fold operand of increment and decrement.
30786         Handle address of C_MAYBE_CONST_EXPR.  Only fold expression being
30787         built for integer operand.  Wrap returns that are INTEGER_CSTs
30788         without being integer constant expressions or that have integer
30789         constant operands without being INTEGER_CSTs.
30790         (lvalue_p): Handle C_MAYBE_CONST_EXPR.
30791         (build_conditional_expr): Add operand ifexp_bcp.  Track whether
30792         result is an integer constant expression or can be used in
30793         unevaluated parts of one and avoid folding and wrap as
30794         appropriate.  Fold operands before possibly doing -Wsign-compare
30795         warnings.
30796         (build_compound_expr): Wrap result for C99 if operands can be used
30797         in integer constant expressions.
30798         (build_c_cast): Update call to digest_init.  Do not ignore
30799         overflow from casting floating-point constants to integers.  Wrap
30800         results that could be confused with integer constant expressions,
30801         null pointer constants or floating-point constants.
30802         (c_cast_expr): Update call to groktypename.  Handle expressions
30803         included in type name.
30804         (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR.  Fold
30805         lhs inside possible SAVE_EXPR.  Fold RHS before assignment.
30806         Update calls to convert_for_assignment.
30807         (convert_for_assignment): Take new parameter
30808         null_pointer_constant.  Do not strip nops or call
30809         decl_constant_value_for_broken_optimization.  Set
30810         in_late_binary_op for conversions to boolean.
30811         (store_init_value): Update call to digest_init.
30812         (digest_init): Take new parameter null_pointer_constant.  Do not
30813         call decl_constant_value_for_broken_optimization.  pedwarn for
30814         initializers not constant expressions.  Update calls to
30815         convert_for_assignment.
30816         (constructor_nonconst): New.
30817         (struct constructor_stack): Add nonconst element.
30818         (really_start_incremental_init, push_init_level, pop_init_level):
30819         Handle constructor_nonconst and nonconst element.
30820         (set_init_index): Call constant_expression_warning for array
30821         designators.
30822         (output_init_element): Fold value.  Set constructor_nonconst as
30823         applicable.  pedwarn for initializers not constant expressions.
30824         Update call to digest_init.  Call constant_expression_warning
30825         where constant initializers are required.
30826         (process_init_element): Use c_save_expr.
30827         (c_finish_goto_ptr): Fold expression.
30828         (c_finish_return): Fold return value.  Update call to
30829         convert_for_assignment.
30830         (c_start_case): Fold switch expression.
30831         (c_process_expr_stmt): Fold expression.
30832         (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
30833         ensure statement expression is not evaluated in constant expression.
30834         (build_binary_op): Track whether results are integer constant
30835         expressions or may occur in such, disable folding and wrap results
30836         as applicable.  Fold operands for -Wsign-compare warnings unless
30837         in_late_binary_op.
30838         (c_objc_common_truthvalue_conversion): Handle results folded to
30839         integer constants that are not integer constant expressions.
30840         * doc/extend.texi: Document when typeof operands are evaluated,
30841         that condition of __builtin_choose_expr is an integer constant
30842         expression, and more about use of __builtin_constant_p in
30843         initializers.
30844
30845 2009-03-29  Richard Guenther  <rguenther@suse.de>
30846
30847         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
30848         propagate addresses of array references.
30849
30850 2009-03-29  Steven Bosscher  <steven@gcc.gnu.org>
30851
30852         * regmove.c (perhaps_ends_bb_p): Remove.
30853         (optimize_reg_copy_1): Don't call perhaps_ends_bb_p.  Get basic block
30854         from INSN and check that the main loop stays within that basic block.
30855         (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
30856         (regmove_forward_pass): Split out from regmove_optimize.  Use
30857         FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
30858         (regmove_backward_pass): Split out from regmove_optimize.  Use
30859         FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
30860         (regmove_optimize): Simplify.
30861
30862 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
30863
30864         PR target/39545
30865         * config/i386/i386.c (classify_argument): Ignore flexible array
30866         member in struct and warn ABI change.
30867
30868 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
30869
30870         * config/i386/i386-protos.h (ix86_agi_dependent): New.
30871
30872         * config/i386/i386.c (ix86_agi_dependent): Rewrite.
30873         (ix86_adjust_cost): Updated.
30874
30875 2009-03-29  Jan Hubicka  <jh@suse.cz>
30876
30877         PR middle-end/28850
30878         * tree-pass.h (pass_cleanup_eh): New function.
30879         (remove_unreachable_regions): Break code handling RTL
30880         to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
30881         that can not be reached by runtime.
30882         (can_be_reached_by_runtime): New function.
30883         (label_to_region_map): New function.
30884         (num_eh_regions): New function.
30885         (rtl_remove_unreachable_regions): New function.
30886         (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
30887         (remove_eh_region): New function.
30888         * except.h: Include sbitmap and vecprim.
30889         (remove_eh_region, remove_unreachable_regions, label_to_region_map,
30890         num_eh_regions): Declare.
30891         * passes.c (init_optimization_passes): Schedule cleanup_eh.
30892         * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
30893         * tree-eh.c (tree_remove_unreachable_handlers): New function.
30894         (tree_empty_eh_handler_p): New function.
30895         (cleanup_empty_eh): New function.
30896         (cleanup_eh): New function.
30897         (pass_cleanup_eh): New function.
30898
30899 2009-03-29  Jan Hubicka  <jh@suse.cz>
30900
30901         * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
30902         for removed regions.
30903
30904 2009-03-29  Jan Hubicka  <jh@suse.cz>
30905
30906         * except.c (dump_eh_tree): Dump all datastructures.
30907
30908 2009-03-29  Jan Hubicka  <jh@suse.cz>
30909
30910         * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
30911         (duplicate_eh_regions_1): Likewise.
30912         (duplicate_eh_regions): Likewise; cleanup code gorwing the region
30913         vector; call EH verification.
30914         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
30915         Be ready for region being removed.
30916
30917 2009-03-29  Jan Hubicka  <jh@suse.cz>
30918
30919         * bitmap.c (bitmap_last_set_bit): New function.
30920         * bitmap.h (bitmap_last_set_bit): Declare.
30921
30922 2009-03-29  David Ayers  <ayers@fsfe.org>
30923
30924         PR objc/27377
30925         * c-typeck.c (build_conditional_expr): Emit ObjC warnings
30926         by calling objc_compare_types and surpress warnings about
30927         incompatible C pointers that are compatible ObjC pointers.
30928
30929 2009-03-29  Adam Nemet  <anemet@caviumnetworks.com>
30930
30931         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
30932         call initialize_inline_failed.
30933         (initialize_inline_failed): Move it from here ...
30934         * cgraph.c (initialize_inline_failed): ... to here.
30935         (cgraph_create_edge): Call initialize_inline_failed rather than
30936         setting inline_failed directly.
30937
30938 2009-03-29  Ben Elliston  <bje@au.ibm.com>
30939
30940         PR target/32542
30941         * sysv4.opt (msdata): Improve comment.
30942         * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
30943         * sysv4.h (SVR4_ASM_SPEC): Likewise.
30944
30945 2009-03-29  Ben Elliston  <bje@au.ibm.com>
30946
30947         PR target/30451
30948         * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
30949         load and store attributes.
30950
30951 2009-03-29  Ben Elliston  <bje@au.ibm.com>
30952
30953         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
30954         (ix86_init_builtins): Add built-in function __builtin_huge_valq.
30955         (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
30956         * doc/extend.texi (X86 Built-in Functions): Add index entries for
30957         __builtin_infq and __builtin_huge_valq.
30958
30959 2009-03-28  Anatoly Sokolov  <aesok@post.ru>
30960
30961         * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
30962         atmega8m1 devices.
30963         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
30964         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
30965
30966 2009-03-28  Xinliang David Li  <davidxl@google.com>
30967
30968         * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
30969         (do_dbg_cnt): New function.
30970
30971 2009-03-28  Jan Hubicka  <jh@suse.cz>
30972
30973         Merge from pretty-ipa:
30974
30975         2009-03-27  Jan Hubicka  <jh@suse.cz>
30976
30977         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
30978         * tree-pass.h (function_called_by_processed_nodes_p): Declare.
30979         * passes.c (function_called_by_processed_nodes_p): New.
30980         * ipa-pure-const.c (check_call): Fix handling of operands.
30981         (analyze_function): Dump debug output for skipped bodies.
30982         (local_pure_const): Use function_called_by_processed_nodes_p.
30983         * dwarf2out.c (reference_to_unused): Use output.
30984         * passes.c (do_per_function_toporder): Likewise.
30985
30986         2008-11-12  Jan Hubicka  <jh@suse.cz>
30987
30988         * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
30989         * ipa-pure-const.c (funct_state_d): Add can throw field; make
30990         state_set_in_source enum
30991         (check_decl): Ignore memory tags; do not set fake looping flags;
30992         dump diagnostics.
30993         (check_operand, check_tree, check_rhs_var, check_lhs_var,
30994         get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
30995         (check_call, analyze_function): Rewrite.
30996         (check_stmt): New.
30997         (add_new_function): Update call of analyze_function.
30998         (generate_summary): Add call of analyze_function.
30999         (propagate): Propagate can_throw; handle state_set_in_source correctly.
31000         (local_pure_const): New function.
31001         (pass_local_pure_const): New pass.
31002         * ipa-inline.c (inline_transform): Set after_inlining.
31003         * tree-eh.c (stmt_can_throw_external): New.
31004         * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
31005         work with aliasing built.
31006         * tree-flow.h (stmt_can_throw_external): New.
31007         * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
31008         and local pure/const pass in early and late optimization queue.
31009
31010 2009-03-28  Martin Jambor  <mjambor@suse.cz>
31011
31012         * fold-const.c (get_pointer_modulus_and_residue): New parameter
31013         allow_func_align.
31014         (fold_binary): Allow function decl aligment consideration is the
31015         second argument is integer constant one.
31016         * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
31017         (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
31018         with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
31019
31020 2009-03-28  Jan Hubicka  <jh@suse.cz>
31021
31022         * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
31023         * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
31024         * function.h (rtl_data): Add nothrow flag.
31025         * except.c (set_nothrow_function_flags): Use crtl->nothrow;
31026         set DECL_NOTHROW for AVAILABLE functions.
31027
31028 2009-03-28  Jakub Jelinek  <jakub@redhat.com>
31029
31030         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
31031         following vector keyword has expansion starting with pixel or bool
31032         keyword, expand vector to __vector and pixel or bool to __pixel or
31033         __bool.
31034
31035         PR c++/39554
31036         * opts.c (warning_disallowed_functions, warn_disallowed_functions,
31037         warn_if_disallowed_function_p): Removed.
31038         (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
31039         * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
31040         warning_if_disallowed_function_p.
31041         * flags.h (warn_if_disallowed_function_p,
31042         warn_disallowed_functions): Removed.
31043         * common.opt (Wdisallowed-function-list=): Removed.
31044         * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
31045
31046 2009-03-28  Richard Guenther  <rguenther@suse.de>
31047
31048         PR tree-optimization/38723
31049         * tree-ssa-pre.c (compute_avail): Add all default definitions to
31050         the entry block.
31051
31052 2009-03-28  Jan Hubicka  <jh@suse.cz>
31053
31054         * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
31055         test introduced by my previous patch.
31056
31057 2009-03-28  Richard Guenther  <rguenther@suse.de>
31058
31059         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
31060         the PHIs value undefined.
31061
31062 2009-03-28  Jan Hubicka  <jh@suse.cz>
31063
31064         * tree-pass.h (pass_fixup_cfg): New pass.
31065         * ipa-inline.c (inline_transform): Set
31066         always_inline_functions_inlined/after_inlining.
31067         * tree-optimize.c (execute_fixup_cfg): Do not set them here.
31068         (pass_fixup_cfg): New pass.
31069         * passes.c (init_optimization_passes): Add fixup_cfg.
31070
31071 2009-03-28  Richard Guenther  <rguenther@suse.de>
31072
31073         PR tree-optimization/38458
31074         * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
31075         argument use the arguments copy-of value.
31076
31077 2009-03-28  Richard Guenther  <rguenther@suse.de>
31078
31079         PR tree-optimization/38180
31080         * tree-ssa-ccp.c (get_default_value): Simplify.
31081         (likely_value): Likewise.
31082         (surely_varying_stmt_p): Properly handle VOP case.
31083         (ccp_initialize): Likewise.
31084         (ccp_fold): Handle propagating through *&.
31085         (fold_const_aggregate_ref): Also handle decls.
31086
31087 2009-03-28  Jan Hubicka  <jh@suse.cz>
31088
31089         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
31090         * cgraph.h (cgraph_node): Likewise.
31091         * cgraphunit.c (cgraph_process_new_functions): Set process flag.
31092         (cgraph_reset_node): Use process flag.
31093         (cgraph_mark_functions_to_output): Likewise.
31094         (cgraph_expand_function): Likewise.
31095         (cgraph_expand_all_functions): Likewise.
31096         (cgraph_output_in_order): Likewise.
31097         * dwarf2out.c (reference_to_unused): Likewise.
31098         * passes.c do_per_function_toporder): Likewise.
31099
31100 2009-03-28  Jan Hubicka  <jh@suse.cz>
31101
31102         Bring from lto-branch:
31103
31104         2008-09-03  Doug Kwan  <dougkwan@google.com>
31105
31106         * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
31107         enums instead of reason strings.
31108         * cgraph.c (cgraph_create_edge): Same.
31109         (cgraph_inline_failed_string): New function.
31110         * cgraph.h (cgraph_inline_failed_t): New enum type.
31111         (cgraph_inline_failed_string): New prototype.
31112         (struct cgraph_edge): Change type of INLINED_FAILED from constant
31113         char pointer to cgraph_inline_failed_t.
31114         (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
31115         (cgraph_default_inline_p): Ditto.
31116         * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
31117         to cgraph_inline_failed_t pointer.
31118         * cif-code.def: New file.
31119         * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
31120         reason string.
31121         (cgraph_check_inline_limits): Change type of REASON to pointer to
31122         cgraph_inline_failed_t.  Replace reason strings with enums.
31123         (cgraph_default_inline_p): Ditto.
31124         (cgraph_recursive_inlining_p): Ditto.
31125         (update_caller_keys): Change type of FAILED_REASON to
31126         cgraph_inline_failed_t.
31127         (cgraph_set_inline_failed): Change type of REASON to pointer to
31128         cgraph_inline_failed_t.  Call cgraph_inline_failed_string to
31129         convert enums to strings for text output.
31130         (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
31131         to be of type cgraph_inline_failed_t.  Replace reason strings with
31132         enums.  Call cgraph_inline_failed_string to covert enums
31133         to strings for text output.
31134         (cgraph_decide_inlining): Replace reason strings with enums.
31135         (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
31136         to cgraph_inline_failed_t type.  Call cgraph_inline_failed_string
31137         for text output.
31138         * tree-inline.c (expand_call_inline): Change type of REASON
31139         to cgraph_inline_failed_t.  Replace reason strings with enums.
31140         Call cgraph_inline_failed_string for text output.
31141         * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
31142         (cgraph.o): Ditto.
31143
31144 2009-03-28  Jan Hubicka  <jh@suse.cz>
31145
31146         * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
31147         cgraph_clone_node): Remove master clone handling.
31148         (cgraph_is_master_clone, cgraph_master_clone): Remove.
31149         * cgraph.h (master_clone): Remove.
31150         (cgraph_is_master_clone, cgraph_master_clone): Remove.
31151         * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
31152         (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
31153
31154 2009-03-28  Jan Hubicka  <jh@suse.cz>
31155
31156         * cgraph.c (cgraph_function_body_availability): Functions declared
31157         inline are always safe to assume that it is not going to be replaced.
31158
31159 2009-03-28  Richard Guenther  <rguenther@suse.de>
31160
31161         PR tree-optimization/38513
31162         * tree-ssa-pre.c (eliminate): Remove redundant stores.
31163         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
31164         EXC_PTR_EXPR and FILTER_EXPR.
31165         (get_ref_from_reference_ops): Likewise.
31166
31167 2009-03-28  Richard Guenther  <rguenther@suse.de>
31168
31169         PR tree-optimization/38968
31170         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
31171         Use FLOOR_MOD_EXPR to compute misalignment.
31172
31173 2009-03-28  Richard Guenther  <rguenther@suse.de>
31174
31175         PR tree-optimization/37795
31176         * tree.h (combine_comparisons): Declare.
31177         * fold-const.c (combine_comparisons): Export.
31178         * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
31179         comparisons.
31180         (ifcombine_iforif): Use combine_comparisons.
31181
31182 2009-03-28  Jan Hubicka  <jh@suse.cz>
31183
31184         * tree-eh.c (inlinable_call_p): New function.
31185         (make_eh_edges): Use it.
31186         (verify_eh_edges): Use it.
31187         (stmt_can_throw_external, stmt_can_throw_internal): Use it.
31188         * except.c (reachable_next_level): Add inlinable_function argument
31189         (sjlj_find_directly_reachable_regions): Update.
31190         (add_reachable_handler): Do not set saw_any_handlers.
31191         (reachable_next_level): Handle MUST_NOT_THROW more curefully.
31192         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
31193         Add new inlinable call parameter.
31194         (can_throw_internal, can_throw_external): Update.
31195         * except.h (can_throw_internal_1, can_throw_external_1,
31196         foreach_reachable_handler): Update declaration.
31197
31198 2009-03-28  Joseph Myers  <joseph@codesourcery.com>
31199
31200         * config/arm/t-arm-coff, config/h8300/coff.h,
31201         config/i386/i386-aout.h, config/i386/i386-coff.h,
31202         config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
31203         config/pdp11/2bsd.h, config/rs6000/aix41.h,
31204         config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
31205         fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
31206         scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
31207         sys-types.h: Remove.
31208         * Makefile.in: Remove protoize and fixproto support and references
31209         in comments.
31210         (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
31211         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
31212         Remove.
31213         (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
31214         (MOSTLYCLEANFILES): Remove protoize$(exeext) and
31215         unprotoize$(exeext).
31216         (rest.encap): Don't depend on $(STMP_FIXPROTO)
31217         (.PHONY): Don't depend on proto.
31218         (libgcc-support): Don't depend on $(STMP_FIXPROTO).
31219         (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
31220         protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
31221         deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
31222         build/gen-protos.o, build/scan.o, xsys-protos.h,
31223         build/fix-header$(build_exeext), build/fix-header.o,
31224         build/scan-decls.o, fixhdr.ready, stmp-fixproto,
31225         stmp-install-fixproto): Remove.
31226         (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
31227         SYSCALLS.c or fixproto files.
31228         (install-common): Don't install protoize.
31229         (install-headers-tar, install-headers-cpio, install-headers-cp):
31230         Don't depend on $(STMP_FIXPROTO).
31231         (install-mkheaders): Don't depend on $(STMP_FIXPROTO).  Don't
31232         install fixproto files or write out fixproto settings.
31233         (uninstall): Don't uninstall protoize.
31234         * config.gcc (use_fixproto): Remove.
31235         (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
31236         i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
31237         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
31238         * config/m32r/t-linux (STMP_FIXPROTO): Remove.
31239         * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
31240         * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
31241         * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
31242         * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
31243         * config/t-svr4 (FIXPROTO_DEFINES): Remove.
31244         * config/t-vxworks (STMP_FIXPROTO): Remove.
31245         * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
31246         STMP_FIXPROTO): Remove.
31247         * config.in, configure: Regenerate.
31248         * crtstuff.c (gid_t, uid_t): Don't undefine.
31249         * doc/install.texi: Change m68k-coff to m68k-elf in example.
31250         (arm-*-coff, arm-*-aout: Remove target entries.
31251         (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
31252         Remove mention of AIX 4.1.
31253         (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
31254         * doc/invoke.texi (Running Protoize): Remove.
31255         * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
31256         (Protoize Caveats): Remove.
31257         * tsystem.h: Update comments on headers assumed to exist.
31258
31259 2009-03-27  Vladimir Makarov  <vmakarov@redhat.com>
31260
31261         * genautomata.c: Add a new year to the copyright.  Add a new
31262         reference.
31263         (struct insn_reserv_decl): Add comments for member bypass_list.
31264         (find_bypass): Remove.
31265         (insert_bypass): New.
31266         (process_decls): Use insert_bypass.
31267         (output_internal_insn_latency_func): Output all bypasses with the
31268         same input insn in one switch case.
31269
31270         * rtl.def (define_bypass): Describe bypass choice.
31271         * doc/md.texi (define_bypass): Ditto.
31272
31273 2009-03-27  Richard Guenther  <rguenther@suse.de>
31274
31275         * gimplify.c (mark_addressable): Export.
31276         * tree-flow.h (mark_addressable): Declare.
31277         * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
31278         * tree-ssa.c (verify_phi_args): Verify that address taken
31279         variables have TREE_ADDRESSABLE set.
31280
31281 2009-03-27  Richard Guenther  <rguenther@suse.de>
31282
31283         * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
31284         (build_fold_addr_expr_with_type): ... this.  Remove in_fold handling.
31285         Do not mark decls TREE_ADDRESSABLE.
31286         (build_fold_addr_expr): Adjust.
31287         (fold_addr_expr): Remove.
31288         (fold_unary): Use build_fold_addr_expr.
31289         (fold_comparison): Likewise.
31290         (split_address_to_core_and_offset): Likewise.
31291         * coverage.c (tree_coverage_counter_addr): Mark the array decl
31292         TREE_ADDRESSABLE.
31293         * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
31294         (gimplify_modify_expr_to_memcpy): Mark source and destination
31295         addressable.
31296         * omp-low.c (create_omp_child_function): Mark the object decl
31297         TREE_ADDRESSABLE.
31298         (lower_rec_input_clauses): Mark the var we take the address of
31299         TREE_ADDRESSABLE.
31300         (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
31301
31302 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
31303
31304         PR middle-end/39315
31305         * cfgexpand.c (expand_one_stack_var_at): Change alignment
31306         limit to MAX_SUPPORTED_STACK_ALIGNMENT.
31307
31308 2009-03-27  Richard Guenther  <rguenther@suse.de>
31309
31310         PR tree-optimization/39120
31311         * tree-ssa-structalias.c (handle_rhs_call): Fill out return
31312         constraints.
31313         (handle_lhs_call): Process return constraints.  Add escape
31314         constraints if necessary.
31315         (handle_const_call): Fill out return constraints.  Make nested
31316         case more precise.  Avoid consttmp if possible.
31317         (handle_pure_call): Fill out return constraints.  Avoid
31318         callused if possible.
31319         (find_func_aliases): Simplify call handling.
31320
31321 2009-03-27  Richard Guenther  <rguenther@suse.de>
31322
31323         PR tree-optimization/39120
31324         * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
31325         as a representative.
31326         (solve_graph): Do propagate CALLUSED.
31327         (handle_pure_call): Use a scalar constraint from CALLUSED for
31328         the return value.
31329         (find_what_p_points_to): CALLUSED shall not appear in poins-to
31330         solutions.
31331
31332 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
31333
31334         PR c/39323
31335         * c-common.c (handle_aligned_attribute): Properly check alignment
31336         overflow.  Use (1U << i) instead of (1 << i).
31337
31338         * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
31339
31340         * expr.h (get_mem_align_offset): Updated.
31341
31342         * tree.h (tree_decl_common): Change align to "unsigned int" and
31343         move it before pointer_alias_set.
31344
31345 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
31346             Jakub Jelinek  <jakub@redhat.com>
31347
31348         PR target/38034
31349         * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
31350         gr_register_operand with gr_reg_or_0_operand.
31351         (cmpxchg_rel_di): Likewise.
31352         (sync_lock_test_and_set<mode>): Likewise.
31353
31354 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
31355
31356         * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
31357         (true_regnum): Likewise.
31358
31359         * rtlanal.c (subreg_info): Moved to ...
31360         * rtl.h (subreg_info): Here.  New.
31361         (subreg_get_info): New.
31362
31363         * rtlanal.c (subreg_get_info): Make it extern.
31364
31365 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
31366
31367         PR target/39472
31368         * config/i386/i386.c (ix86_abi): New.
31369         (override_options): Handle -mabi=.
31370         (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
31371         (ix86_call_abi_override): Likewise.
31372         (init_cumulative_args): Likewise.
31373         (function_arg_advance): Likewise.
31374         (function_arg_64): Likewise.
31375         (function_arg): Likewise.
31376         (ix86_pass_by_reference): Likewise.
31377         (ix86_function_value_regno_p): Likewise.
31378         (ix86_build_builtin_va_list_abi): Likewise.
31379         (setup_incoming_varargs_64): Likewise.
31380         (is_va_list_char_pointer): Likewise.
31381         (ix86_init_machine_status): Likewise.
31382         (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
31383         (ix86_function_type_abi): Return enum calling_abi.  Rewrite
31384         for 64bit.  Replace DEFAULT_ABI with ix86_abi.
31385         (ix86_function_abi): Make it static and return enum calling_abi.
31386         (ix86_cfun_abi): Return enum calling_abi.  Replace DEFAULT_ABI
31387         with ix86_abi.
31388         (ix86_fn_abi_va_list): Updated.
31389
31390         * config/i386/i386.h (ix86_abi): New.
31391         (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
31392         (CONDITIONAL_REGISTER_USAGE): Likewise.
31393         (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
31394         (machine_function): Likewise.
31395
31396         * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
31397         with ix86_abi.
31398         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
31399         (STACK_BOUNDARY): Likewise.
31400         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
31401
31402         * config/i386/i386.opt (mabi=): New.
31403
31404         * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
31405         return enum calling_abi.
31406         (ix86_function_type_abi): Likewise.
31407         (ix86_function_abi): Removed.
31408
31409         * doc/invoke.texi: Document -mabi= option for x86.
31410
31411 2009-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
31412
31413         * builtins.c (real_dconstp): Delete.
31414         (fold_builtin_logarithm): Remove inaccurate log(e) special case.
31415
31416 2009-03-27  Dodji Seketeli  <dodji@redhat.com>
31417             Jakub Jelinek  <jakub@redhat.com>
31418
31419         PR debug/37959
31420         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
31421         (gen_subprogram_die): When a function is explicit, generate the
31422         DW_AT_explicit attribute.
31423         * langhooks.h (struct lang_hooks_for_decls): Add
31424         function_decl_explicit_p langhook.
31425         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
31426         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
31427
31428 2009-03-27  Jakub Jelinek  <jakub@redhat.com>
31429
31430         * builtins.c (fold_builtin_memory_op): Optimize memmove
31431         into memcpy if we can prove source and destination don't overlap.
31432
31433         * tree-inline.c: Include gt-tree-inline.h.
31434         (clone_fn_id_num): New variable.
31435         (clone_function_name): New function.
31436         (tree_function_versioning): Use it.
31437         * Makefile.in (GTFILES): Add tree-inline.c.
31438
31439 2009-03-27  Mark Mitchell  <mark@codesourcery.com>
31440
31441         * BASE-VER: Change to 4.5.0.
31442
31443 2009-03-27  Xinliang David Li  <davidxl@google.com>
31444
31445         PR tree-optimization/39557
31446         * tree-ssa.c (warn_uninitialized_vars): free postdom info.
31447
31448 2009-03-27  Xinliang David Li  <davidxl@google.com>
31449
31450         PR tree-optimization/39548
31451         * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
31452         candidate check.
31453
31454 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
31455
31456         * c-common.c (pointer_int_sum): Use %wd on return from
31457         tree_low_cst.
31458
31459 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
31460
31461         * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
31462         on return from tree_low_cst.
31463
31464 2009-03-27  Andrew Pinski  <andrew_pinski@playstation.sony.com>
31465
31466         PR c++/36799
31467         * ginclude/stdarg.h (va_copy): Define also for
31468         __GXX_EXPERIMENTAL_CXX0X__.
31469
31470 2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
31471
31472         PR c++/35652
31473         * builtins.h (c_strlen): Do not warn here.
31474         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
31475         * c-common.c (pointer_int_sum): Take an explicit location.
31476         Warn about offsets out of bounds.
31477         * c-common.h (pointer_int_sum): Adjust declaration.
31478
31479 2009-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31480
31481         * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
31482         markup glitch.
31483
31484 2009-03-26  Jakub Jelinek  <jakub@redhat.com>
31485
31486         PR c++/39554
31487         * opts.c (warn_if_disallowed_function_p): Don't assume
31488         get_callee_fndecl must return non-NULL.
31489
31490 2009-03-26  Vladimir Makarov  <vmakarov@redhat.com>
31491
31492         PR rtl-optimization/39522
31493         * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
31494         when reg_reloaded_valid is set.
31495
31496 2009-03-26  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31497
31498         * config/spu/divv2df3.c: New file.
31499         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
31500         (DPBIT_FUNCS): Filter out _div_df.
31501
31502 2009-03-26  Bernd Schmidt  <bernd.schmidt@analog.com>
31503
31504         * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
31505         a jump insn, count that jump in the distance to the loop start.
31506
31507 2009-03-25  Kaz Kojima  <kkojima@gcc.gnu.org>
31508
31509         PR target/39523
31510         * config/sh/sh.c (calc_live_regs): Fix condition for global
31511         registers except PIC_OFFSET_TABLE_REGNUM.
31512
31513 2009-03-25  Kai Tietz  <kai.tietz@onevision.com>
31514
31515         PR/39518
31516         * doc/invoke.texi (-mconsole): New.
31517         (-mcygwin): New.
31518         (-mno-cygwin): New.
31519         (-mdll): New.
31520         (-mnop-fun-dllimport): New.
31521         (-mthread): New.
31522         (-mwin32): New.
31523         (-mwindows): New.
31524         (sub section "i386 and x86-64 Windows Options"): New.
31525
31526 2009-03-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
31527
31528         * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
31529         * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
31530
31531 2009-03-25  Richard Guenther  <rguenther@suse.de>
31532
31533         PR middle-end/39497
31534         * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
31535         of -Wno-error.
31536
31537 2009-03-25  Andrey Belevantsev  <abel@ispras.ru>
31538
31539         * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
31540         neither of haifa/selective schedulers are working.
31541
31542 2009-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31543
31544         * doc/invoke.texi (Debugging Options): Fix description of
31545         -fno-merge-debug-strings.
31546
31547 2009-03-24  Hans-Peter Nilsson  <hp@axis.com>
31548
31549         * config/cris/libgcc.ver: New version-script.
31550         * config/cris/t-linux (SHLIB_MAPFILES): Use it.
31551
31552         * configure.ac <GAS features, nop mnemonic>: Add pattern
31553         crisv32-*-* for "nop".
31554         <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
31555         * configure: Regenerate.
31556
31557 2009-03-24  Ira Rosen  <irar@il.ibm.com>
31558
31559         PR tree-optimization/39529
31560         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
31561         mark_sym_for_renaming for the tag copied to the new vector
31562         pointer.
31563
31564 2009-03-24  Arthur Loiret  <aloiret@debian.org>
31565
31566         * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
31567         * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
31568         EXTRA_SPEC_FUNCTIONS.
31569         (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
31570         * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
31571         * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
31572         -march and -mtune options.
31573
31574 2009-03-24  Ralf Corsépius  <ralf.corsepius@rtems.org>
31575
31576         * config/m68k/t-rtems: Add m5329 multilib.
31577
31578 2009-03-24  Dodji Seketeli  <dodji@redhat.com>
31579             Jakub Jelinek  <jakub@redhat.com>
31580
31581         PR debug/39524
31582         * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
31583         nodes.
31584
31585 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
31586
31587         PR c/39495
31588         * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
31589         instead of c_parser_expression_conv, if original_code isn't one of the
31590         4 allowed comparison codes, fail.
31591
31592 2009-03-23  Richard Guenther  <rguenther@suse.de>
31593
31594         * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
31595         * tree.h (struct tree_type): Likewise.
31596         * reload.h (struct insn_chain): Likewise.
31597         * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
31598         * function.h (struct function): Likewise.
31599         * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
31600
31601 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
31602
31603         PR tree-optimization/39516
31604         * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
31605
31606 2009-03-23  Bingfeng Mei  <bmei@broadcom.com>
31607
31608         * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
31609         should be set true if BITS_PER_WORD of target is bigger than 32
31610
31611 2009-03-22  Hans-Peter Nilsson  <hp@axis.com>
31612
31613         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
31614         Translate -B-options to -rpath-link.  Correct existing
31615         rpath-link and conditionalize on !nostdlib.
31616
31617 2009-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31618
31619         * doc/extend.texi (Function Attributes, Variable Attributes):
31620         Fix typos.
31621         * doc/invoke.texi (Debugging Options, Optimize Options)
31622         (i386 and x86-64 Options, MCore Options): Likewise.
31623
31624 2009-03-20  Jakub Jelinek  <jakub@redhat.com>
31625
31626         PR debug/37890
31627         * dwarf2out.c (gen_namespace_die): Add context_die argument and use
31628         it for block local namespace aliases.
31629         (gen_decl_die): Pass context_die to gen_namespace_die.
31630
31631 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
31632
31633         PR c/39495
31634         * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
31635         minimum or maximum value.
31636
31637 2009-03-19  Alexandre Oliva  <aoliva@redhat.com>
31638
31639         * reginfo.c (globalize_reg): Recompute derived reg sets.
31640
31641 2009-03-19  Ozkan Sezer  <sezeroz@gmail.com>
31642
31643         PR target/39063
31644         * libgcc2.c (mprotect): Do not use signed arguments for
31645         VirtualProtect, use DWORD arguments.  Also fix the 'may
31646         be used uninitialized' warning for the np variable.
31647
31648 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
31649
31650         PR target/39496
31651         * config/i386/i386.c (ix86_function_regparm): Don't optimize local
31652         functions using regparm calling conventions when not optimizing.
31653         (ix86_function_sseregparm): Similarly for sseregparm calling
31654         conventions.
31655
31656 2009-03-19  Li Feng  <nemokingdom@gmail.com>
31657
31658         PR middle-end/39500
31659         * tree-data-ref.c (analyze_subscript_affine_affine): There is no
31660         dependence if the first conflict is after niter iterations.
31661
31662 2009-03-19  Hans-Peter Nilsson  <hp@axis.com>
31663
31664         PR middle-end/38609
31665         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
31666         functions with dynamic stack-pointer adjustments.
31667
31668 2009-03-19  Ben Elliston  <bje@au.ibm.com>
31669
31670         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
31671         option; change to -msdata=data.
31672
31673 2009-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31674
31675         * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
31676         and -fopenmp.
31677
31678 2009-03-18  Eric Botcazou  <ebotcazou@adacore.com>
31679
31680         PR target/35180
31681         * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
31682
31683 2009-03-18  Sandra Loosemore  <sandra@codesourcery.com>
31684
31685         * doc/invoke.texi (Code Gen Options): Expand discussion of
31686         -fno-common.
31687
31688 2009-03-18  Jakub Jelinek  <jakub@redhat.com>
31689
31690         * dse.c (struct group_info): Reorder fields for 64-bit hosts.
31691         * matrix-reorg.c (struct matrix_info): Likewise.
31692         * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
31693         * rtl.h (struct mem_attrs): Likewise.
31694         * df.h (struct df): Likewise.
31695         * tree-data-ref.h (struct data_dependence_relation): Likewise.
31696         * ira-int.h (struct ira_allocno): Likewise.
31697         * df-scan.c (struct df_collection_rec): Likewise.
31698         * ira.c (struct equivalence): Likewise.
31699         * function.c (struct temp_slot): Likewise.
31700         * cfgloop.h (struct loop): Likewise.
31701
31702         PR debug/39485
31703         * function.c (use_register_for_decl): When not optimizing, disregard
31704         register keyword for variables with types containing methods.
31705
31706 2009-03-18  Sebastian Pop  <sebastian.pop@amd.com>
31707
31708         PR middle-end/39447
31709         * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
31710         (is_simple_operand): Call contains_component_ref_p before calling data
31711         reference analysis that would fail on COMPONENT_REFs.
31712
31713         * tree-vrp.c (search_for_addr_array): Fix formatting.
31714
31715 2009-03-18  Richard Guenther  <rguenther@suse.de>
31716
31717         * tree-vect-transform.c (vect_loop_versioning): Fold the
31718         generated comparisons.
31719         * tree-vectorizer.c (set_prologue_iterations): Likewise.
31720         (slpeel_tree_peel_loop_to_edge): Likewise.
31721
31722 2009-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31723
31724         PR middle-end/37805
31725         * opts.c (print_specific_help): In addition to `undocumented',
31726         accept `separate' and `joined' flags if passed alone.  Describe
31727         output by the first matched one of those.
31728         (common_handle_option): Skip over empty strings.
31729         * gcc.c (display_help): Fix help string for `--help='.
31730         * doc/invoke.texi (Option Summary, Overall Options): With
31731         `--help=', classes and qualifiers can both be repeated, but
31732         only the latter can be negated.  One should not pass only
31733         negated qualifiers.  Fix markup and examples.
31734
31735         Revert
31736         2008-10-14  Jakub Jelinek  <jakub@redhat.com>
31737         PR middle-end/37805
31738         * opts.c (common_handle_option): Don't ICE on -fhelp=joined
31739         and -fhelp=separate.
31740
31741 2009-03-17  Jing Yu  <jingyu@google.com>
31742
31743         PR middle-end/39378
31744         * function.h (struct rtl_data): Move is_thunk from here...
31745         (struct function): ...to here.
31746         * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
31747         * varasm.c (assemble_start_function): Change is_thunk from crtl to
31748         cfun.
31749         * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
31750         cfun.
31751         (alpha_does_function_need_gp, alpha_start_function): Likewise.
31752         (alpha_output_function_end_prologue): Likewise.
31753         (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
31754         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
31755         (rs6000_output_function_epilogue): Likewise.
31756         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
31757
31758 2009-03-17  Uros Bizjak  <ubizjak@gmail.com>
31759
31760         PR target/39482
31761         * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
31762         from different units in a single alternative.
31763         (*truncdfsf_i387): Ditto.
31764         (*truncxfsf2_mixed): Ditto.
31765         (*truncxfdf2_mixed): Ditto.
31766
31767 2009-03-17  Jakub Jelinek  <jakub@redhat.com>
31768
31769         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
31770         non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
31771
31772         PR debug/39474
31773         * tree-ssa-live.c (remove_unused_locals): Don't remove local
31774         unused non-artificial variables when not optimizing.
31775
31776         PR debug/39471
31777         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
31778         DW_TAG_imported_module even if decl is IMPORTED_DECL with
31779         NAMESPACE_DECL in its DECL_INITIAL.
31780
31781         PR middle-end/39443
31782         * optabs.c (set_user_assembler_libfunc): New function.
31783         * expr.h (set_user_assembler_libfunc): New prototype.
31784         * c-common.c: Include libfuncs.h.
31785         (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
31786         for memcmp, memset, memcpy, memmove and abort.
31787         * Makefile.in (c-common.o): Depend on libfuncs.h.
31788
31789         PR debug/39412
31790         * dwarf2out.c (gen_inlined_enumeration_type_die,
31791         gen_inlined_structure_type_die, gen_inlined_union_type_die,
31792         gen_tagged_type_instantiation_die): Removed.
31793         (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
31794         do nothing.
31795
31796 2009-03-17  Janis Johnson  <janis187@us.ibm.com>
31797
31798         PR testsuite/38526
31799         * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
31800         its use.
31801         (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
31802         (check-parallel-%): Ditto.
31803         (check-consistency): Ditto.
31804
31805 2009-03-17  Kai Tietz  <kai.tietz@onevision.com>
31806
31807         * ipa-struct-reorg.c (create_general_new_stmt): Initialize
31808         local variable rhs by NULL_TREE.
31809
31810 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
31811
31812         PR target/39477
31813         * doc/extend.texi: Correct register behavior for regparm on Intel 386.
31814
31815 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
31816
31817         PR target/39476
31818         * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
31819
31820 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
31821
31822         PR target/39473
31823         * config/i386/i386.c (ix86_expand_call): Check extra clobbers
31824         for ms->sysv ABI calls only in 64bit mode.
31825
31826         * config/i386/i386.md (untyped_call): Support 32bit.
31827
31828 2009-03-16  H.J. Lu  <hongjiu.lu@intel.com>
31829
31830         * doc/extend.texi: Replace x86_65 with x86_64.
31831
31832 2009-03-16  Jakub Jelinek  <jakub@redhat.com>
31833
31834         PR tree-optimization/39455
31835         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
31836         mismatches for POINTER_TYPE_P (type).
31837         (number_of_iterations_le): Likewise.
31838
31839 2009-03-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
31840
31841         * config/picochip/picochip.c: Removed profiling support.
31842         * config/picochip/picochip.md: Removed profiling instruction.
31843         * config/picochip/picochip.h: Removed profiling builtin.
31844
31845 2009-03-16  Joseph Myers  <joseph@codesourcery.com>
31846
31847         * doc/install.texi (--with-host-libstdcxx): Document.
31848
31849 2009-03-14  Anatoly Sokolov  <aesok@post.ru>
31850
31851         PR target/34299
31852         * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
31853         generate a warning if the function name does not begin with
31854         "__vector" and the function has either the 'signal' or 'interrupt'
31855         attribute, from here to ...
31856         (avr_declare_function_name): ...here. New function.
31857         * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
31858         * config/avr/avr-protos.h (avr_declare_function_name): Declare.
31859
31860 2009-03-14  Jakub Jelinek  <jakub@redhat.com>
31861
31862         PR bootstrap/39454
31863         * cse.c (fold_rtx): Don't modify original const_arg1 when
31864         canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
31865         separate variable instead.
31866         * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
31867         from out of range shift counts.
31868         (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
31869
31870 2009-03-13  Catherine Moore  <clm@codesourcery.com>
31871
31872         * config/i386/x-mingw32 (host-mingw32.o): Replace
31873         diagnostic.h with $(DIAGNOSTIC_H).
31874
31875 2009-03-12  Jakub Jelinek  <jakub@redhat.com>
31876
31877         PR target/39431
31878         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
31879         predicate.
31880         * config/i386/sync.md (sync_compare_and_swap<mode>,
31881         sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
31882         if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
31883         into a register.
31884         (sync_double_compare_and_swapdi_pic,
31885         sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
31886         cmpxchg8b_pic_memory_operand instead of just memory_operand.
31887
31888 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
31889
31890         PR target/39445
31891         * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
31892
31893 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
31894
31895         PR target/39327
31896         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
31897         (avx_addsubv4df3): Likewise.
31898         (*avx_addsubv4sf3): Likewise.
31899         (sse3_addsubv4sf3): Likewise.
31900
31901 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
31902
31903         PR target/38824
31904         * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
31905
31906 2009-03-12  Vladimir Makarov  <vmakarov@redhat.com>
31907
31908         PR debug/39432
31909         * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
31910         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
31911         registers for allocnos created from user-defined variables.
31912
31913 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31914
31915         PR target/39181
31916         * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
31917         of non-integer mode as well.
31918
31919 2009-03-11  Adam Nemet  <anemet@caviumnetworks.com>
31920
31921         * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
31922         for functions for which the parameter types are unknown.
31923
31924 2009-03-11  Jakub Jelinek  <jakub@redhat.com>
31925
31926         PR target/39137
31927         * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
31928         * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
31929         * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
31930         * config/i386/i386.c (ix86_local_alignment): For
31931         -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
31932         long long variables on the stack to avoid dynamic realignment.
31933         Allow the first argument to be a decl rather than type.
31934         * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
31935
31936 2009-03-11  Nick Clifton  <nickc@redhat.com>
31937
31938         PR target/5362
31939         * config/mcore/mcore.opt: Remove deprecated m4align and m8align
31940         options.
31941         Add description to mno-lsim option.
31942         * config/mcore/mcore.h: Remove comment about deprecated m4align
31943         option.
31944         (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
31945         * doc/invoke.texi: Add description of mno-lsim and
31946         mstack-increment options.
31947
31948         * config/fr30/fr30.opt: Document the -mno-lsim option.
31949         * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
31950         and -mno-lsim options.
31951
31952 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31953
31954         * fold-const.c (fold_comparison): Only call fold_inf_compare
31955         if the mode supports infinities.
31956
31957 2009-03-11  Jason Merrill  <jason@redhat.com>
31958
31959         PR debug/39086
31960         * tree-nrv.c (tree_nrv): Don't do this optimization if the front
31961         end already did.  Notice GIMPLE_CALL modifications of the result.
31962         Don't copy debug information from an ignored decl or a decl from
31963         another function.
31964
31965 2009-03-10  Richard Guenther  <rguenther@suse.de>
31966             Nathan Froyd  <froydnj@codesourcery.com>
31967
31968         PR middle-end/37850
31969         * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
31970         (__divMODE3): Likewise.
31971
31972 2009-03-09  Jakub Jelinek  <jakub@redhat.com>
31973
31974         PR tree-optimization/39394
31975         * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
31976         DECL_SIZE_UNIT of variable length FIELD_DECLs.
31977
31978 2009-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31979
31980         * recog.c (verfiy_changes): Disallow renaming of hard regs in
31981         inline asms for register asm ("") declarations.
31982
31983 2009-03-09  Eric Botcazou  <ebotcazou@adacore.com>
31984
31985         * fold-const.c (fold_unary): Fix comment.
31986
31987 2009-03-07  Jan Hubicka  <jh@suse.cz>
31988
31989         PR target/39361
31990         * tree-inline.c (setup_one_parameter): Do replacement of const
31991         argument by constant in SSA form.
31992
31993 2009-03-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31994
31995         PR middle-end/38028
31996         * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
31997         determine alignment passed to assign_stack_local.
31998         (assign_parms_unsplit_complex): Likewise.
31999         * except.c (sjlj_build_landing_pads): Likewise.
32000
32001 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
32002
32003         PR middle-end/39360
32004         * tree-flow.h (add_referenced_var): Return bool instead of void.
32005         * tree-dfa.c (add_referenced_var): Return result of
32006         referenced_var_check_and_insert call.
32007         * tree-inline.c (expand_call_inline): Call add_referenced_var instead
32008         of referenced_var_check_and_insert.
32009
32010         PR debug/39372
32011         * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
32012         (gen_variable_die): Emit DW_AT_location on abstract static variable's
32013         DIE, don't emit it if abstract origin already has it.
32014         * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
32015         BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
32016
32017 2009-03-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
32018
32019         * genpreds.c (needs_variable): Fix parentheses at variable name
32020         detection.
32021         (write_tm_constrs_h): Indent generated code.
32022
32023 2009-03-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
32024
32025         * doc/extend.texi (Function Attributes): Add documentation
32026         for isr attributes.
32027
32028 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
32029
32030         PR debug/39387
32031         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
32032         take locus from its DECL_SOURCE_LOCATION instead of input_location.
32033
32034 2009-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
32035
32036         * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
32037         the loop as bad.
32038
32039 2009-03-05  Jakub Jelinek  <jakub@redhat.com>
32040
32041         PR debug/39379
32042         * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
32043         with blocks containing IMPORTED_DECLs in BLOCK_VARS.
32044
32045 2009-03-05  Uros Bizjak  <ubizjak@gmail.com>
32046
32047         * config/i386/i386.md (R8_REG, R9_REG): New constants.
32048         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
32049         constants instead of magic numbers.
32050         (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
32051         (QI_REG_P): Ditto.
32052         * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
32053         (x86_64_ms_abi_int_parameter_registers): Ditto.
32054         (x86_64_int_return_registers): Ditto.
32055         (ix86_maybe_switch_abi): Ditto.
32056         (ix86_expand_call): Ditto for clobbered_registers array.
32057         (ix86_hard_regno_mode_ok): Ditto.
32058         (x86_extended_QIreg_mentioned_p): Ditto.
32059
32060 2009-03-05  J"orn Rennecke  <joern.rennecke@arc.com>
32061
32062         PR tree-optimization/39349
32063         * cse.c (cse_insn): Fix loop to stop at VOIDmode.
32064
32065         * combine.c (gen_lowpart_for_combine): Use omode when generating
32066         clobber.
32067
32068 2009-03-04  J"orn Rennecke  <joern.rennecke@arc.com>
32069
32070         PR rtl-optimization/39235
32071         * loop-iv.c (get_simple_loop_desc): Use XCNEW.
32072
32073 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
32074
32075         * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
32076
32077 2009-03-04  Richard Guenther  <rguenther@suse.de>
32078
32079         PR tree-optimization/39362
32080         * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
32081         that occur in abnormal PHIs should be varying.
32082
32083 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
32084
32085         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
32086         Extend comments.
32087         (simple_iv):  Take loop as an argument instead of statement.
32088         * tree-scalar-evolution.h (simple_iv): Declaration changed.
32089         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
32090         to simple_iv.
32091         * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
32092         Ditto.
32093         * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
32094         * matrix-reorg.c (analyze_transpose): Ditto.
32095         * tree-data-ref.c (dr_analyze_innermost): Ditto.
32096         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
32097         * tree-predcom.c (ref_at_iteration): Ditto.
32098         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
32099
32100 2009-03-04  Richard Guenther  <rguenther@suse.de>
32101
32102         PR tree-optimization/39358
32103         * tree-ssa-structalias.c (do_sd_constraint): Fix check for
32104         escaped_id and callused_id.
32105         (solve_graph): Likewise.
32106
32107 2009-03-04  Richard Guenther  <rguenther@suse.de>
32108
32109         PR tree-optimization/39339
32110         * tree-sra.c (try_instantiate_multiple_fields): Make it
32111         no longer ICE on the above.
32112
32113 2009-03-03  Joseph Myers  <joseph@codesourcery.com>
32114
32115         * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
32116         that fits within Pmode.
32117
32118 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
32119
32120         PR middle-end/10109
32121         * tm.texi (LIBCALL_VALUE): Update description.
32122
32123 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
32124
32125         PR middle-end/34443
32126         * doc/extend.texi (section): Update description.
32127
32128 2009-03-03  H.J. Lu  <hongjiu.lu@intel.com>
32129
32130         PR middle-end/39345
32131         * tree-inline.c (remapped_type): New.
32132         (can_be_nonlocal): Call remapped_type instead of remap_type.
32133
32134 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
32135
32136         PR fortran/39354
32137         * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
32138         TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
32139
32140 2009-03-03  Richard Guenther  <rguenther@suse.de>
32141
32142         PR middle-end/39272
32143         * tree.c (tree_nonartificial_location): New function.
32144         * tree.h (tree_nonartificial_location): Declare.
32145         * builtins.c (expand_builtin_memory_chk): Provide location
32146         of the call location for artificial function pieces.
32147         (maybe_emit_chk_warning): Likewise.
32148         (maybe_emit_sprintf_chk_warning): Likewise.
32149         (maybe_emit_free_warning): Likewise.
32150         * expr.c (expand_expr_real_1): Likewise.
32151
32152 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
32153
32154         PR tree-optimization/39343
32155         * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
32156         COMPONENT_REF t has ARRAY_TYPE.
32157
32158 2009-03-02  Sebastian Pop  <sebastian.pop@amd.com>
32159
32160         PR middle-end/39335
32161         * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
32162         when the type precision of the induction variable should be
32163         larger than the type precision of nit.
32164         (gen_parallel_loop): Update use of canonicalize_loop_ivs.
32165         * graphite.c (graphite_loop_normal_form): Same.
32166         * tree-flow.h (canonicalize_loop_ivs): Update declaration.
32167
32168 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
32169
32170         * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
32171         (*call_1_rex64_ms_sysv): Use named constants instead of magic
32172         numbers to describe clobbered registers.
32173         (*call_value_0_rex64_ms_sysv): Ditto.
32174         * config/i386/mmx.md (mmx_emms): Ditto.
32175         (mmx_femms): Ditto.
32176
32177 2009-03-02  Richard Sandiford  <rdsandiford@googlemail.com>
32178
32179         * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
32180         of ABI_64.
32181
32182 2009-03-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
32183
32184         * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
32185         (spu_section_type_flags): New function.
32186
32187 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
32188
32189         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
32190         reg_class_contents of FLOAT_REGS into a temporary.
32191
32192 2009-03-02  Richard Guenther  <rguenther@suse.de>
32193             Ira Rosen  <irar@il.ibm.com>
32194
32195         PR tree-optimization/39318
32196         * tree-vect-transform.c (vectorizable_call): Transfer the EH region
32197         information to the vectorized statement.
32198
32199 2009-03-01  Uros Bizjak  <ubizjak@gmail.com>
32200
32201         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
32202         variable.  Use defined names instead of magic constants for REX SSE
32203         registers.
32204
32205 2009-03-01  Richard Guenther  <rguenther@suse.de>
32206
32207         PR tree-optimization/39331
32208         * omp-low.c (lower_send_shared_vars): Do not receive new
32209         values for the reference of DECL_BY_REFERENCE parms or results.
32210
32211 2009-03-01  Jan Hubicka  <jh@suse.cz>
32212
32213         PR debug/39267
32214         * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
32215         BLOCK_NONLOCALIZED_VAR): New macros.
32216         (tree_block): Add nonlocalized_vars.
32217         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
32218         gen_decl_die): Add origin argument.  Allow generation of die with
32219         origin at hand only.
32220         (gen_member_die, gen_type_die_with_usage, force_decl_die,
32221         declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
32222         of gen_*.
32223         (gen_block_die): Fix checking for unused blocks.
32224         (process_scope_var): Break out from .... ; work with origins only.
32225         (decls_for_scope) ... here; process nonlocalized list.
32226         (dwarf2out_ignore_block): Look for nonlocalized vars.
32227         * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
32228         vars.
32229         (dump_scope_block): Dump them.
32230         * tree-inline.c (remap_decls): Handle nonlocalized vars.
32231         (remap_block): Likewise.
32232         (can_be_nonlocal): New predicate.
32233         (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
32234
32235 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32236
32237         * configure: Regenerate.
32238
32239 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32240
32241         * optc-gen.awk: No need to duplicate option flags twice.
32242         Reuse help texts for duplicate options which do not have any.
32243
32244         * gcc.c (display_help): Document --version.
32245
32246         * gcc.c (main): If print_help_list and verbose_flag, ensure
32247         driver output comes before subprocess output.
32248
32249         * optc-gen.awk: Assign all remaining fields to help string,
32250         space-separated, for multi-line help in *.opt.
32251
32252         * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
32253         -Wno-pedantic-ms-format is for MinGW targets only.
32254
32255         * doc/options.texi (Option file format): Fix bad indentation,
32256         restoring dropped sentence.
32257
32258 2009-02-28  Jan Hubicka  <jh@suse.cz>
32259
32260         * tree-inline.c (tree_function_versioning): Output debug info.
32261
32262 2009-02-28  Jan Hubicka  <jh@suse.cz>
32263
32264         PR debug/39267
32265         * tree-inline.c (setup_one_parameter): Do not copy propagate
32266         arguments when not optimizing.
32267
32268 2009-02-28  H.J. Lu  <hongjiu.lu@intel.com>
32269
32270         PR target/39327
32271         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
32272         (avx_addsubv4df3): Likewise.
32273         (*avx_addsubv4sf3): Likewise.
32274         (sse3_addsubv4sf3): Likewise.
32275         (*avx_addsubv2df3): Likewise.
32276         (sse3_addsubv2df3): Likewise.
32277         (avx_unpckhps256): Correct item selectors.
32278         (avx_unpcklps256): Likewise.
32279         (avx_unpckhpd256): Likewise.
32280         (avx_unpcklpd256): Likewise.
32281
32282 2009-02-28  Jan Hubicka  <jh@suse.cz>
32283
32284         * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
32285         static vars.
32286         (copy_arguments_for_versioning): If var is declared don't declare it.
32287         (tree_function_versioning): First setup substitutions and then copy
32288         args.
32289
32290 2009-02-27  Jan Hubicka  <jh@suse.cz>
32291
32292         PR debug/39267
32293         * cgraph.h (varpool_output_debug_info): Remove.
32294         * cgraphunit.c (varpool_output_debug_info): Remove.
32295         * dwarf2out.c (deferred_locations_struct): New struct
32296         (deferred_locations): New type.
32297         (deferred_locations_list): New static var.
32298         (deffer_location): New function.
32299         (gen_variable_die): Use it.
32300         (decls_for_scope): Output info on local static vars.
32301         (dwarf2out_finish): Process deferred locations.
32302         * varpool.c (varpool_output_debug_info): Remove.
32303
32304 2009-02-27  Jan Hubicka  <jh@suse.cz>
32305
32306         PR debug/39267
32307         * tree.h (TREE_PROTECTED): Fix comment.
32308         (BLOCK_HANDLER_BLOCK): Remove.
32309         (struct tree_block): Remove handler_block add body_block.
32310         (inlined_function_outer_scope_p): New.
32311         (is_body_block): Remove.
32312         * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
32313         * dwarf2out.c (is_inlined_entry_point): Remove.
32314         (add_high_low_attributes): Use inlined_function_outer_scope_p.
32315         (gen_block_die): Use is_inlined_entry_point check.  Remove body block
32316         code.
32317         * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
32318         * gimplify.c (gimplify_expr): Gimplify body blocks.
32319         * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
32320         block with multiple subblocks.
32321         (dump_scope_block): Prettier output; dump more flags and info.
32322         (dump_scope_blocks): New.
32323         (remove_unused_locals): Use dump_scope_blocks.
32324         * tree-flow.h (dump_scope_blocks): Declare.
32325         * tree-cfg.c (execute_build_cfg): Dump scope blocks.
32326         * stmt.c (is_body_block): Remove.
32327         * tree-inline.c (remap_block): Copy BODY_BLOCK info.
32328         * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
32329
32330 2009-02-27  Sebastian Pop  <sebastian.pop@amd.com>
32331
32332         PR middle-end/39308
32333         * graphite.c (graphite_loop_normal_form): Do not call
32334         number_of_iterations_exit from a gcc_assert.
32335
32336 2009-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32337
32338         * config/s390/s390.c (s390_swap_cmp): Look for conditional
32339         jumps if COND is NULL.
32340         (find_cond_jump): New function.
32341         (s390_z10_optimize_cmp): Handling for reg-reg compares added.
32342         * config/s390/s390.md: Remove z10_cobra attribute value.
32343
32344 2009-02-26  Uros Bizjak  <ubizjak@gmail.com>
32345
32346         * config/alpha/alpha.h (alpha_expand_mov): Return false if
32347         force_const_mem returns NULL_RTX.
32348
32349 2009-02-26  Jan Hubicka  <jh@suse.cz>
32350
32351         PR debug/39267
32352         * cgraph.h (varpool_output_debug_info): Remove.
32353         * cgraphunit.c (varpool_output_debug_info): Remove.
32354         * dwarf2out.c (deferred_locations_struct): New struct
32355         (deferred_locations): New type.
32356         (deferred_locations_list): New static var.
32357         (deffer_location): New function.
32358         (gen_variable_die): Use it.
32359         (decls_for_scope): Output info on local static vars.
32360         (dwarf2out_finish): Process deferred locations.
32361         * varpool.c (varpool_output_debug_info): Remove.
32362
32363 2009-02-25  H.J. Lu  <hongjiu.lu@intel.com>
32364
32365         PR rtl-optimization/39241
32366         * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
32367         to subreg_offset_representable_p.
32368
32369 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
32370
32371         * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
32372         execute function prototype.  Get f and nregs from max_reg_num
32373         and get_insns.  Remove the first backward pass as it's dead,
32374         guard the forward pass by flag_expensive_optimizations.
32375         (rest_of_handle_regmove): Delete.
32376         (pass_regmove): Replace it with regmove_optimize.
32377
32378 2009-02-25  Martin Jambor  <mjambor@suse.cz>
32379
32380         PR tree-optimization/39259
32381         * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
32382         calls_alloca function flags.
32383         (copy_bb): Set calls_setjmp and alls_alloca function flags if such
32384         calls are detected.
32385
32386 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
32387
32388         * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
32389         flags_set_1_rtx, flags_set_1_set): Delete.
32390         (regmove_optimize): Do not call mark_flags_life_zones.
32391
32392 2009-02-24  Julian Brown  <julian@codesourcery.com>
32393
32394         PR target/35965
32395         * config/arm/arm.c (require_pic_register): Only set
32396         cfun->machine->pic_reg once per function.
32397
32398 2009-02-24  Sandra Loosemore  <sandra@codesourcery.com>
32399
32400         * doc/invoke.texi (Link Options): Document an easier way to pass
32401         options that take arguments to the GNU linker using -Xlinker and -Wl.
32402
32403 2009-02-24  Steve Ellcey  <sje@cup.hp.com>
32404
32405         PR target/33785
32406         * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
32407
32408 2009-02-24  Richard Guenther  <rguenther@suse.de>
32409
32410         PR debug/39285
32411         * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
32412
32413 2009-02-24  Richard Guenther  <rguenther@suse.de>
32414             Zdenek Dvorak  <ook@ucw.cz>
32415
32416         PR tree-optimization/39233
32417         * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
32418         from converting them to a generic type.
32419
32420 2009-02-23  Sebastian Pop  <sebastian.pop@amd.com>
32421
32422         PR tree-optimization/39260
32423         * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
32424         contains a condition with a real type.
32425         (build_scop_conditions_1): Conditions are always last_stmt of a bb.
32426
32427 2009-02-23  Jason Merrill  <jason@redhat.com>
32428
32429         PR c++/38880
32430         * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
32431         narrowing_initializer_constant_valid_p.
32432         (narrowing_initializer_constant_valid_p): Don't return
32433         null_pointer_node for adding a pointer to itself.
32434
32435 2009-02-23  Jan Hubicka  <jh@suse.cz>
32436
32437         PR c/12245
32438         * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
32439         resizing.
32440
32441 2009-02-23  Jan Hubicka  <jh@suse.cz>
32442
32443         PR tree-optimization/37709
32444         * tree.c (block_ultimate_origin): Move here from dwarf2out.
32445         * tree.h (block_ultimate_origin): Declare.
32446         * dwarf2out.c (block_ultimate_origin): Move to tree.c
32447         * tree-ssa-live.c (remove_unused_scope_block_p):
32448         Eliminate blocks containig no instructions nor live variables nor
32449         nested blocks.
32450         (dump_scope_block): New function.
32451         (remove_unused_locals): Enable removal of dead blocks by default;
32452         enable dumping at TDF_DETAILS.
32453
32454 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
32455
32456         * config/i386/i386.c (classify_argument): Don't allow COImode
32457         and OImode.
32458         (function_arg_advance_32): Don't allow OImode.
32459         (function_arg_32): Likewise.
32460         (function_value_32): Likewise.
32461         (return_in_memory_32): Likewise.
32462         (function_arg_64): Remove OImode comment.
32463
32464 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
32465
32466         PR target/39261
32467         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
32468         ix86_expand_vector_set for V4DImode in 64bit mode only.
32469         (ix86_expand_vector_init_one_var): Likewise.
32470
32471 2009-02-21  Sebastian Pop  <sebastian.pop@amd.com>
32472
32473         * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
32474
32475 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
32476
32477         PR bootstrap/39257
32478         * loop-iv.c: Revert last change.
32479         * emit-rtl.c: Likewise.
32480
32481 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
32482
32483         PR target/39256
32484         * config/i386/i386.c (type_natural_mode): Remove an extra
32485         space in the warning message.
32486         (function_value_32): Handle 32-byte vector modes.
32487         (return_in_memory_32): Likewise.
32488
32489 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
32490
32491         * loop-iv.c (truncate_value): New function.
32492         (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
32493         of lowpart_subreg.
32494         (lowpart_subreg): Move to...
32495         * emit-rtl.c: ...here.
32496
32497 2009-02-21  Danny Smith  <dannysmith@users.sourceforge.net>
32498
32499         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
32500         accidental and undocumented change at revision 140860.
32501
32502 2009-02-21  Joseph Myers  <joseph@codesourcery.com>
32503
32504         * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
32505         take gimple_seq * arguments.
32506         (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
32507         types_compatible_p langhook.
32508
32509 2009-02-20  Mark Mitchell  <mark@codesourcery.com>
32510             Joseph Myers  <joseph@codesourcery.com>
32511
32512         * config/arm/arm.c (arm_builtin_va_list): New function.
32513         (arm_expand_builtin_va_start): Likewise.
32514         (arm_gimplify_va_arg_expr): Likewise.
32515         (TARGET_BUILD_BUILTIN_VA_LIST): Define.
32516         (TARGET_BUILD_BUILTIN_VA_START): Likewise.
32517         (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
32518         (va_list_type): New variable.
32519         (arm_mangle_type): Mangle va_list_type appropriately.
32520
32521 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
32522
32523         PR middle-end/39157
32524         * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
32525         * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
32526         * params.def (loop-invariant-max-bbs-in-loop): New parameter.
32527         * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
32528         parameter to 1000 for -O1 by default.
32529         * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
32530         parameter.
32531         * loop-invariant.c: Include params.h.
32532         (move_loop_invariants): Don't call move_single_loop_invariants on
32533         very large loops.
32534
32535 2009-02-20  Jaka Mocnik  <jaka@xlab.si>
32536
32537         * calls.c (emit_library_call_value_1): Use slot_offset instead of
32538         offset when calculating bounds for indexing stack_usage_map.  Fixes
32539         a buffer overflow with certain target setups.
32540
32541 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
32542
32543         PR target/39240
32544         * calls.c (expand_call): Clear try_tail_call if caller and callee
32545         disagree in promotion of function return value.
32546
32547 2009-02-19  Jakub Jelinek  <jakub@redhat.com>
32548
32549         PR target/39175
32550         * c-common.c (c_determine_visibility): If visibility changed and
32551         DECL_RTL has been already set, call make_decl_rtl to update symbol
32552         flags.
32553
32554 2009-02-19  H.J. Lu  <hongjiu.lu@intel.com>
32555
32556         PR c++/39188
32557         * varasm.c (assemble_variable): Don't check DECL_NAME when
32558         globalizing a variable.
32559
32560 2009-02-19  Joseph Myers  <joseph@codesourcery.com>
32561
32562         PR c/38483
32563         * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
32564         expression before any __builtin_trap call.
32565         * c-typeck.c (build_function_call): Convert and check function
32566         arguments before generating a call to a trap.  Evaluate the
32567         function arguments before the trap.
32568
32569 2009-02-19  Uros Bizjak  <ubizjak@gmail.com>
32570
32571         PR target/39228
32572         * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
32573         (UNSPEC_FXAM_MEM): New unspec.
32574         (fxam<mode>2_i387_with_temp): New insn and split pattern.
32575         (isinf<mode>2): Use MODEF mode iterator.  Force operand[1] through
32576         memory using fxam<mode>2_i387_with_temp to remove excess precision.
32577
32578 2009-02-19  Richard Guenther  <rguenther@suse.de>
32579
32580         PR tree-optimization/39207
32581         PR tree-optimization/39074
32582         * tree-ssa-structalias.c (storedanything_id, var_storedanything,
32583         storedanything_tree): New.
32584         (do_ds_constraint): Simplify ANYTHING shortcutting.  Update
32585         the STOREDANYTHING solution if the lhs solution contains ANYTHING.
32586         (build_succ_graph): Add edges from STOREDANYTHING to all
32587         non-direct nodes.
32588         (init_base_vars): Initialize STOREDANYTHING.
32589         (compute_points_to_sets): Free substitution info after
32590         building the succ graph.
32591         (ipa_pta_execute): Likewise.
32592
32593         * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
32594         field.
32595         (do_ds_constraint): Do not add to special var or non-pointer
32596         field solutions.
32597         (type_could_have_pointers): Split out from ...
32598         (could_have_pointers): ... here.  For arrays use the element type.
32599         (create_variable_info_for): Initialize may_have_pointers.
32600         (new_var_info): Likewise.
32601         (handle_lhs_call): Make the HEAP variable unknown-sized.
32602         (intra_create_variable_infos): Use a type with pointers for
32603         PARM_NOALIAS, make it unknown-sized.
32604
32605 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
32606
32607         PR target/39224
32608         * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
32609
32610 2009-02-18  Jason Merrill  <jason@redhat.com>
32611
32612         PR target/39179
32613         * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
32614         value if DECL_EXTERNAL.
32615         * tree-sra.c (sra_walk_gimple_assign): Likewise.
32616         * target.h (gcc_target::binds_local_p): Clarify "module".
32617         * tree.h (TREE_PUBLIC): Clarify "module".
32618
32619 2009-02-17  Xuepeng Guo  <xuepeng.guo@intel.com>
32620
32621         PR target/38891
32622         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
32623         initialization for MS_ABI prior to the hunk of !TARGET_MMX.
32624
32625 2009-02-17  H.J. Lu  <hongjiu.lu@intel.com>
32626
32627         PR target/39082
32628         * c.opt (Wabi): Support C and ObjC.
32629         (Wpsabi): New.
32630
32631         * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
32632
32633         * config/i386/i386.c (classify_argument): Warn once about the ABI
32634         change when passing union with long double.
32635
32636         * doc/invoke.texi: Update -Wabi for warning psABI changes.
32637
32638 2009-02-18  Joseph Myers  <joseph@codesourcery.com>
32639
32640         PR c/35447
32641         * c-parser.c (c_parser_compound_statement): Always enter and leave
32642         a scope.
32643
32644 2009-02-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
32645
32646         PR target/34587
32647         * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
32648
32649 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
32650
32651         PR tree-optimization/36922
32652         * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
32653         * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
32654         Likewise.
32655
32656 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
32657
32658         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
32659         to 0 for EABI64.
32660
32661 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
32662
32663         * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
32664
32665 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
32666
32667         * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
32668         tree sharing.
32669
32670 2009-02-17  Ruan Beihong  <ruanbeihong@gmail.com>
32671             Richard Sandiford  <rdsandiford@googlemail.com>
32672
32673         * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
32674         * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
32675         (loongson_biadd): ...this.
32676
32677 2009-02-17  Richard Guenther  <rguenther@suse.de>
32678
32679         PR tree-optimization/39202
32680         * tree-ssa-structalias.c (do_structure_copy): Before collapsing
32681         a var make sure to follow existing collapses.
32682
32683 2009-02-17  Richard Guenther  <rguenther@suse.de>
32684
32685         PR middle-end/39214
32686         * langhooks.c (lhd_print_error_function): Check for NULL block.
32687
32688 2009-02-17  Richard Guenther  <rguenther@suse.de>
32689
32690         PR tree-optimization/39204
32691         * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
32692         of the PHI arg.
32693
32694 2009-02-17  Uros Bizjak  <ubizjak@gmail.com>
32695
32696         * config/soft-fp/double.h: Update from glibc CVS.
32697
32698 2009-02-17  Richard Guenther  <rguenther@suse.de>
32699
32700         PR tree-optimization/39207
32701         * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
32702         strict-aliasing warnings for pointers pointing to NULL.
32703
32704 2009-02-16  Joseph Myers  <joseph@codesourcery.com>
32705
32706         PR c/35446
32707         * c-parser.c (c_parser_braced_init): Call pop_init_level when
32708         skipping until next close brace.
32709
32710 2009-02-16  H.J. Lu  <hongjiu.lu@intel.com>
32711
32712         PR target/37049
32713         * config/i386/i386.c (ix86_expand_push): Set memory alignment
32714         to function argument boundary.
32715
32716 2009-02-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
32717
32718         * config/picochip/picochip.md (lea_add): Allow any nonimmediate
32719         in the lea_add. Reload eventually constraints it properly.
32720         * config/picochip/constraints.md: Remove the target constraint
32721         "b", since it is not needed anymore.
32722
32723 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
32724
32725         * gthr-dce.h: Uglify function parameter and local variable names.
32726         * gthr-gnat.h: Likewise.
32727         * gthr-mipssde.h: Likewise.
32728         * gthr-nks.h: Likewise.
32729         * gthr-posix95.h: Likewise.
32730         * gthr-posix.h: Likewise.
32731         * gthr-rtems.h: Likewise.
32732         * gthr-single.h: Likewise.
32733         * gthr-solaris.h: Likewise.
32734         * gthr-tpf.h: Likewise.
32735         * gthr-vxworks.h: Likewise.
32736         * gthr-win32.h: Likewise.
32737
32738 2009-02-15  H.J. Lu  <hongjiu.lu@intel.com>
32739
32740         PR target/39196
32741         * config/i386/i386.md: Restrict the new peephole2 to move
32742         between MMX/SSE registers.
32743
32744 2009-02-15  Richard Guenther  <rguenther@suse.de>
32745
32746         Revert
32747         2009-02-13  Richard Guenther  <rguenther@suse.de>
32748
32749         * configure.ac: Enable LFS.
32750         * configure: Re-generate.
32751         * config.in: Likewise.
32752
32753 2009-02-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
32754
32755         * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
32756         spu_srqwbyte, spu_srqwbytebc): Define.
32757         * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
32758         spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
32759         * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
32760         "shrqby_<mode>"): New insn-and-split patterns.
32761         * config/spu/spu.c (expand_builtin_args): Determine and return
32762         number of operands using spu_builtin_description data.
32763         (spu_expand_builtin_1): Use it.
32764
32765 2009-02-13  Steve Ellcey  <sje@cup.hp.com>
32766
32767         PR target/38056
32768         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
32769         TARGET_CONST_GP.
32770
32771 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
32772
32773         PR target/39149
32774         * config/i386/i386.c (override_options): Correct warning
32775         messages for -malign-loops, -malign-jumps and -malign-functions.
32776
32777 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
32778
32779         PR target/39152
32780         * config/i386/i386.md: Restrict the new peephole2 to move
32781         between the general purpose registers.
32782
32783 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
32784
32785         PR target/39162
32786         * config/i386/i386.c (type_natural_mode): Add a new argument.
32787         Return the original mode and warn ABI change if vector size is 32byte.
32788         (function_arg_advance): Updated.
32789         (function_arg): Likewise.
32790         (ix86_function_value): Likewise.
32791         (ix86_return_in_memory): Likewise.
32792         (ix86_sol10_return_in_memory): Likewise.
32793         (ix86_gimplify_va_arg): Likewise.
32794         (function_arg_32): Don't warn ABX ABI change here.
32795         (function_arg_64): Likewise.
32796
32797 2009-02-13  Bernd Schmidt  <bernd.schmidt@analog.com>
32798
32799         * loop-iv.c (implies_p): In the final case, test that operands 0
32800         of the two comparisons match.
32801
32802         * config/bfin/bfin.c (find_prev_insn_start): New function.
32803         (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
32804         (find_next_insn_start): Move.
32805
32806 2009-02-13  Richard Guenther  <rguenther@suse.de>
32807
32808         * configure.ac: Enable LFS.
32809         * configure: Re-generate.
32810         * config.in: Likewise.
32811
32812 2009-02-13  Joseph Myers  <joseph@codesourcery.com>
32813
32814         PR c/35444
32815         * c-parser.c (c_parser_parms_list_declarator): Discard pending
32816         sizes on syntax error after some arguments have been parsed.
32817
32818 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
32819
32820         * doc/invoke.texi (-fira): Remove.
32821
32822 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
32823
32824         * caller-save.c: Replace regclass.c with reginfo.c in comments.
32825         * recog.c: Likewise.
32826         * rtl.h: Likewise.
32827
32828 2009-02-12  Uros Bizjak  <ubizjak@gmail.com>
32829
32830         * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
32831         (umul_ppmm): Likewise.
32832         (count_leading_zeros): Likewise.
32833         (count_trailing_zeros): Likewise.
32834         (UMUL_TIME): Likewise.
32835
32836 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
32837
32838         * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
32839         soft-fp/t-softfp to tmake_file.
32840
32841         * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
32842         (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
32843         (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
32844         IA64_BUILTIN_INFQ]: New.
32845         (ia64_init_builtins): Initialize __builtin_infq,
32846         __builtin_fabsq and __builtin_copysignq if not HPUX.
32847         (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
32848         IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
32849
32850         * config/ia64/lib1funcs.asm (__divtf3): Define only if
32851         SHARED is defined.
32852         (__fixtfti): Likewise.
32853         (__fixunstfti): Likewise.
32854         (__floattitf): Likewise.
32855
32856         * config/ia64/libgcc-glibc.ver: New.
32857         * config/ia64/t-fprules-softfp: Likewise.
32858         * config/ia64/sfp-machine.h: Likewise.
32859
32860         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
32861         (LIBGCC2_TF_CEXT): Likewise.
32862         (TF_SIZE): Likewise.
32863         (TARGET_INIT_LIBFUNCS): Likewise.
32864
32865         * config/ia64/t-glibc (SHLINB_MAPFILES):
32866         Add $(srcdir)/config/ia64/libgcc-glibc.ver.
32867
32868 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
32869
32870         * config/i386/i386.c (construct_container): Rewrite processing
32871         BLKmode with X86_64_SSE_CLASS.
32872
32873 2009-02-12  Paolo Bonzini  <bonzini@gnu.org>
32874
32875         PR target/39152
32876         * config/i386/i386.md: Replace simplify_replace_rtx with
32877         replace_rtx in the new peephole2.
32878
32879 2009-02-12  Nathan Sidwell  <nathan@codesourcery.com>
32880
32881         * doc/invoke.texi (Optimize Options): Stop claiming inlining and
32882         loop unrolling do not happen at -O2.
32883
32884 2009-02-12  Michael Matz  <matz@suse.de>
32885
32886         * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
32887
32888 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
32889
32890         * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
32891         for -g3.
32892
32893 2009-02-12  Ben Elliston  <bje@au.ibm.com>
32894
32895         * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
32896         patterns when updating the back chain.  Missed in the 2009-02-10
32897         change.
32898
32899 2009-02-11  Janis Johnson  <janis187@us.ibm.com>
32900
32901         * doc/extend.texi (Decimal Floating Types): Update identifier of
32902         draft TR and list of missing support.
32903
32904 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
32905
32906         PR middle-end/39154
32907         * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
32908         bit to variable length decl's flags, add it also to its
32909         pointer replacement variable.
32910
32911 2009-02-11  Uros Bizjak  <ubizjak@gmail.com>
32912             Jakub Jelinek  <jakub@redhat.com>
32913
32914         PR target/39118
32915         * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
32916         (memory_blockage): New expander.
32917         (*memory_blockage): New insn pattern.
32918         * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
32919         instead of general blockage at the end of function prologue when
32920         frame pointer is used to access red zone area.  Do not emit blockage
32921         when profiling, it is emitted in generic code.
32922         (ix86_expand_epilogue): Emit memory_blockage at the beginning of
32923         function epilogue when frame pointer is used to access red zone area.
32924
32925 2009-02-11  Paolo Bonzini  <bonzini@gnu.org>
32926
32927         PR target/38824
32928         * config/i386/i386.md: Add two new peephole2 to avoid mov followed
32929         by arithmetic with memory operands.
32930         * config/i386/predicates.md (commutative_operator): New.
32931
32932 2009-02-10  Janis Johnson  <janis187@us.ibm.com>
32933
32934         * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
32935         bulleted lists.
32936
32937 2009-02-10  Eric Botcazou  <ebotcazou@adacore.com>
32938
32939         * alias.h (record_alias_subset): Declare.
32940         * alias.c (record_alias_subset): Make global.
32941
32942 2009-02-10  Nick Clifton  <nickc@redhat.com>
32943
32944         * tree-parloops.c: Change license to GPLv3.
32945         * ipa-struct-reorg.c: Change license to GPLv3.
32946         * ipa-struct-reorg.h: Change license to GPLv3.
32947
32948 2009-02-10  Steve Ellcey  <sje@cup.hp.com>
32949
32950         PR c/39084
32951         * c-decl.c (start_struct): Return NULL on error.
32952
32953 2009-02-10  Jakub Jelinek  <jakub@redhat.com>
32954
32955         PR middle-end/39124
32956         * cfgloopmanip.c (remove_path): Call remove_bbs after
32957         cancel_loop_tree, not before it.
32958
32959         PR target/39139
32960         * function.h (struct function): Add has_local_explicit_reg_vars bit.
32961         * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
32962         VAR_DECLs were seen.
32963         * tree-ssa-live.c (remove_unused_locals): Recompute
32964         cfun->has_local_explicit_reg_vars.
32965         * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
32966         copies or clearings if cfun->has_local_explicit_reg_vars.
32967
32968 2009-02-10  Uros Bizjak  <ubizjak@gmail.com>
32969
32970         PR target/39118
32971         * config/i386/i386.c (expand_prologue): Emit blockage at the end
32972         of function prologue when frame pointer is used to access
32973         red zone area.
32974
32975 2009-02-10  Richard Guenther  <rguenther@suse.de>
32976
32977         PR middle-end/39127
32978         * gimplify.c (gimple_regimplify_operands): Always look if
32979         we need to create a temporary.
32980
32981 2009-02-10  Richard Guenther  <rguenther@suse.de>
32982
32983         PR tree-optimization/39132
32984         * tree-loop-distribution.c (todo): New global var.
32985         (generate_memset_zero): Trigger TODO_rebuild_alias.
32986         (tree_loop_distribution): Return todo.
32987
32988 2009-02-10  H.J. Lu  <hongjiu.lu@intel.com>
32989
32990         PR target/39119
32991         * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
32992         (x86_64_reg_class_name): Removed.
32993         (classify_argument): Return 0 if bytes > 32.  Return 0 if the
32994         first one isn't X86_64_SSE_CLASS or any other ones aren't
32995         X86_64_SSEUP_CLASS when size > 16bytes.  Don't turn
32996         X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
32997         is X86_64_SSEUP_CLASS.  Set AVX modes to 1 X86_64_SSE_CLASS
32998         and 3 X86_64_SSEUP_CLASS.
32999         (construct_container): Remove X86_64_AVX_CLASS.  Handle 4
33000         registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
33001
33002 2009-02-10  Ben Elliston  <bje@au.ibm.com>
33003
33004         * config/rs6000/rs6000.md (allocate_stack): Always use an update
33005         form instruction to update the stack back chain word, even if the
33006         user has disabled the generation of update instructions.
33007         (movdi_<mode>_update_stack): New.
33008         (movsi_update_stack): Likewise.
33009         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
33010         always use an update form instruction to update the stack back
33011         chain word.
33012
33013 2009-02-09  Sebastian Pop  <sebastian.pop@amd.com>
33014
33015         PR middle-end/38953
33016         * graphite.c (if_region_set_false_region): After moving a region in
33017         the false branch of a condition, remove the empty dummy basic block.
33018         (gloog): Remove wrong fix for PR38953.
33019
33020 2009-02-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
33021
33022         * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
33023         generation due to implicit sign extension.
33024
33025 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
33026
33027         PR middle-end/38981
33028         * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
33029         at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
33030
33031 2009-02-09  Richard Guenther  <rguenther@suse.de>
33032
33033         PR middle-end/35202
33034         * convert.c (convert_to_real): Disable (float)fn((double)x)
33035         to fnf(x) conversion if errno differences may occur and
33036         -fmath-errno is set.
33037
33038 2009-02-07  Anatoly Sokolov  <aesok@post.ru>
33039
33040         * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
33041         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
33042         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
33043
33044 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
33045
33046         PR c/35434
33047         * c-common.c (handle_alias_attribute): Disallow attribute for
33048         anything not a FUNCTION_DECL or VAR_DECL.
33049
33050 2009-02-06  Janis Johnson  <janis187@us.ibm.com>
33051
33052         PR c/39035
33053         * real.c (do_compare): Special-case compare of zero against
33054         decimal float value.
33055
33056 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
33057
33058         PR c/36432
33059         * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
33060         as indicating flexible array members unless the field itself is
33061         being declarared as the incomplete array.
33062
33063 2009-02-06  Jan Hubicka  <jh@suse.cz>
33064
33065         PR tree-optimization/38844
33066         * ipa-inline.c (try_inline): Stop inlining recursion when edge
33067         is already inlined.
33068
33069 2009-02-06  Richard Guenther  <rguenther@suse.de>
33070
33071         PR middle-end/38977
33072         * tree-cfg.c (need_fake_edge_p): Force a fake edge for
33073         fork because we may expand it as __gcov_fork.
33074
33075 2009-02-06  Nick Clifton  <nickc@redhat.com>
33076
33077         * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
33078
33079 2009-02-06  Paolo Bonzini  <bonzini@gnu.org>
33080
33081         PR tree-optimization/35659
33082         * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
33083         vn_phi_eq): Shortcut if hashcode does not match.
33084         (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
33085         NULL operands.
33086         * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
33087         and avoid iterative_hash_expr.
33088         (FOR_EACH_VALUE_ID_IN_SET): New.
33089         (value_id_compare): Remove.
33090         (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
33091         sort expressions by value id.
33092
33093 2009-02-05  Kaz Kojima  <kkojima@gcc.gnu.org>
33094
33095         PR target/38991
33096         * config/sh/predicates.md (general_movsrc_operand): Don't check
33097         the subreg of system registers here.
33098
33099 2009-02-05  Jakub Jelinek  <jakub@redhat.com>
33100
33101         PR c++/39106
33102         * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
33103         on the copied decl.
33104
33105 2009-02-05  Paolo Bonzini  <bonzini@gnu.org>
33106
33107         PR rtl-optimization/39110
33108         * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
33109         addresses, not aligned ones.
33110
33111 2009-02-05  Daniel Berlin  <dberlin@dberlin.org>
33112             Richard Guenther  <rguenther@suse.de>
33113
33114         PR tree-optimization/39100
33115         * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
33116         comment says and add edges.
33117
33118 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
33119
33120         PR c/35435
33121         * c-common.c (handle_tls_model_attribute): Ignore attribute for
33122         non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
33123
33124 2009-02-04  Tobias Grosser  <grosser@fim.uni-passau.de>
33125
33126         * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
33127         sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
33128         register_bb_in_sese, new_sese, free_sese): Moved.
33129         (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
33130         outermost_loop_in_scop, build_scop_iteration_domain,
33131         expand_scalar_variables_ssa_name, get_vdef_before_scop,
33132         limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
33133         Use loop_in_sese_p instead of loop_in_scop_p.
33134         (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
33135         (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
33136         (scopdet_basic_block_info): Fix bug in scop detection.
33137         (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
33138         eq_loop_to_cloog_loop): Remove.
33139         (nb_loops_around_loop_in_scop, nb_loop
33140         ref_nb_loops): Moved here...
33141         * graphite.h (ref_nb_loops): ... from here.
33142         (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
33143         (loop_domain_dim, loop_iteration_vector_dim): Remove.
33144         (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
33145
33146 2009-02-04  Paolo Bonzini  <bonzini@gnu.org>
33147             Hans-Peter Nilsson  <hp@axis.com>
33148
33149         PR rtl-optimization/37889
33150         * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
33151         Move offset handling from PLUS to before the switch.  Use new
33152         arguments when considering SYMBOL_REFs too.
33153         (rtx_addr_can_trap_p): Pass dummy offset and size.
33154         (enum may_trap_p_flags): Remove.
33155         (may_trap_p_1): Pass size from MEM_SIZE.
33156
33157         PR rtl-optimization/38921
33158         * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
33159         * rtl.h (may_trap_after_code_motion_p): Delete prototype.
33160         * rtlanal.c (may_trap_after_code_motion_p): Delete.
33161         (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
33162
33163 2009-02-04  H.J. Lu  <hongjiu.lu@intel.com>
33164
33165         AVX Programming Reference (January, 2009)
33166         * config/i386/sse.md (*vpclmulqdq): New.
33167
33168 2009-02-04  Jakub Jelinek  <jakub@redhat.com>
33169
33170         PR tree-optimization/38977
33171         PR gcov-profile/38292
33172         * calls.c (special_function_p): Disregard __builtin_ prefix.
33173
33174 2009-02-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
33175
33176         * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
33177         non-indexable addresses even before reload.
33178
33179 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
33180
33181         PR c/29129
33182         * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
33183         as having variable size.  Do not give an error for unnamed
33184         parameters with [*] declarators.  Give a warning for type names
33185         with [*] declarators and mark them as variable size.
33186         * c-parser.c (c_parser_sizeof_expression): Do not give an error
33187         for sizeof applied to [*] type names.
33188
33189 2009-02-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
33190
33191         PR C++/36607
33192         * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
33193
33194 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
33195
33196         * gcc.c (process_command): Update copyright notice dates.
33197         * gcov.c (print_version): Likewise.
33198         * gcov-dump.c (print_version): Likewise.
33199         * mips-tfile.c (main): Likewise.
33200         * mips-tdump.c (main): Likewise.
33201
33202 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
33203
33204         PR c/35433
33205         * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
33206         for composite type involving a zero-length array type.
33207
33208 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
33209
33210         PR target/35318
33211         * function.c (match_asm_constraints_1): Skip over
33212         initial optional % in the constraint.
33213
33214         PR inline-asm/39059
33215         * c-parser.c (c_parser_postfix_expression): If fixed point is not
33216         supported, don't accept FIXED_CSTs.
33217         * c-decl.c (finish_declspecs): Error if fixed point is not supported
33218         and _Sat is used without _Fract/_Accum.  Set specs->type to
33219         integer_type_node for cts_fract/cts_accum if fixed point is not
33220         supported.
33221
33222 2009-02-02  Catherine Moore  <clm@codesourcery.com>
33223
33224         * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
33225
33226 2009-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
33227
33228         * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
33229         (ABI_HAS_64BIT_SYMBOLS): Use it.
33230         (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
33231
33232 2009-02-02  Paul Brook  <paul@codesourcery.com>
33233
33234         * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
33235
33236 2009-02-02  Jakub Jelinek  <jakub@redhat.com>
33237
33238         PR inline-asm/39058
33239         * recog.h (asm_operand_ok): Add constraints argument.
33240         * recog.c (asm_operand_ok): Likewise.  If it is set, for digits
33241         recurse on matching constraint.
33242         (check_asm_operands): Pass constraints as 3rd argument to
33243         asm_operand_ok.  Don't look up matching constraint here.
33244         * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
33245         to asm_operand_ok.
33246
33247 2009-02-02  Ben Elliston  <bje@au.ibm.com>
33248
33249         * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
33250         TARGET_NARROW_VOLATILE_BITFIELD macro names.
33251
33252 2009-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33253
33254         * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
33255         information.  Remove some obsolete information.  Reorganize.
33256
33257         * config/pa/fptr.c: Revert license to GPL 2.
33258         * config/pa/milli64.S: Likewise.
33259
33260 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
33261
33262         PR target/38904
33263         * mkmap-flat.awk (END):  Use pe_dll command-line arg to pass
33264         LIBRARY name in, instead of hard-coding it.
33265         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*):  Add an
33266         extra target make frag to tmake_files according to EH model.
33267         (i[34567]86-*-mingw* | x86_64-*-mingw*):  Likewise.
33268         * config/i386/t-dw2-eh, config/i386/t-sjlj-eh:  Add new target
33269         frags that define makefile variable EH_MODEL appropriately.
33270         * config/i386/cygming.h (DWARF2_UNWIND_INFO):  Add comment.
33271         * config/i386/cygwin.h (LIBGCC_EH_EXTN):  Define to nothing or
33272         to "-sjlj" according to type of EH configured.
33273         (LIBGCC_SONAME):  Concatenate it to shared library base name.
33274         * config/i386/mingw32.h (LIBGCC_EH_EXTN):  Define to "_dw2" or
33275         to "_sjlj" according to type of EH configured.
33276         (LIBGCC_SONAME):  Concatenate it to shared library base name.
33277         * config/i386/t-cygming (SHLIB_SONAME):  Use EH_MODEL.
33278         (SHLIB_LINK):  Add missing semicolon to if-else construct.
33279         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
33280         string value of "pe_dll" command-line option.
33281         * config/i386/t-cygwin (SHLIB_EH_EXTENSION):  New helper.
33282         (SHLIB_SONAME):  Use it when overriding t-cygming default.
33283         (SHLIB_IMPLIB):  Override t-cygming default.
33284         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
33285         string value of "pe_dll" command-line option.
33286
33287 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
33288
33289         PR target/38952
33290         * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
33291         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
33292
33293 2009-01-31  Richard Guenther  <rguenther@suse.de>
33294
33295         PR tree-optimization/38937
33296         * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
33297         computing the transitive closure.
33298
33299 2009-01-30  Richard Guenther  <rguenther@suse.de>
33300
33301         PR tree-optimization/39041
33302         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
33303         Propagate variable indices only if the types match for this stmt.
33304
33305 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
33306
33307         PR target/39013
33308         * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
33309         inline but never defined.
33310
33311 2009-01-30  Wolfgang Gellerich  <gellerich@de.ibm.com>
33312
33313         * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
33314         (*insv_h_di_reg_extimm): New insn.
33315         (*insv_l<mode>_reg_extimm): New insn.
33316
33317 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
33318
33319         * config/picochip/picochip.c (flag_conserve_stack): set
33320         PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
33321         fconserve-stack. Reduce call-overhead used by inliner.
33322
33323 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
33324
33325         PR/38157
33326         * common.opt (flag_conserve_stack): Initialised to zero.
33327
33328 2009-01-30  Kai Tietz  <kai.tietz@onevision.com>
33329
33330         PR/39002
33331         * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
33332         (ix86_expand_epilogue): Take nsseregs in account to use proper restore
33333         method.
33334
33335 2009-01-29  H.J. Lu  <hongjiu.lu@intel.com>
33336
33337         * ira-color.c (allocno_reload_assign): Update comments.
33338         * regmove.c (regmove_optimize): Likewise.
33339
33340         * ra.h: Removed.
33341
33342 2009-01-29  Robert Millan  <rmh@aybabtu.com>
33343
33344         * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
33345         * config/i386/kopensolaris-gnu.h: New file.  Undefine
33346         `MD_UNWIND_SUPPORT'.
33347         * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
33348
33349 2009-01-29  Kazu Hirata  <kazu@codesourcery.com>
33350
33351         PR tree-optimization/39007
33352         * tree-loop-distribution.c (generate_builtin): Use
33353         recompute_dominator to compute the immediate dominator of the
33354         basic block just after the loop.
33355
33356 2009-01-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
33357
33358         * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
33359         (ASM_OUTPUT_DWARF_PCREL): Define.
33360
33361 2009-01-29  Vladimir Makarov  <vmakarov@redhat.com>
33362
33363         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
33364         * doc/passes.texi: Remove entries about regclass, local-alloc, and
33365         global.  Modify entries about regmove and IRA.
33366
33367         * ra-conflict.c: Remove the file.
33368
33369         * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
33370
33371         * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
33372         (pass_regclass_init): Rename to pass_reginfo_init.
33373
33374         * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
33375
33376         * toplev.h (flag_ira): Remove.
33377
33378         * caller-save.c (setup_save_areas): Remove flag_ira.
33379
33380         * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
33381
33382         * global.c: Remove the file.
33383
33384         * opts.c (decode_options): Remove flag_ira.
33385
33386         * hard-reg-set.h (losing_caller_save_reg_set): Remove.
33387
33388         * regmove.c: Modify file description.
33389         (find_use_as_address, try_auto_increment): Define them only if
33390         AUTO_INC_DEC is defined.
33391         (replacement_quality, replace_in_call_usage, fixup_match_1,
33392         stable_and_no_regs_but_for_p): Remove.
33393         (reg_set_in_bb): Make it static.
33394         (regmove_optimize): Remove flag_ira and code which worked for
33395         !flag_ira.
33396
33397         * local-alloc.c: Remove the file.
33398
33399         * common.opt (fira): Remove.
33400
33401         * ira.c: Include except.h.
33402         (eliminable_regset): Move from global.c.
33403         (mark_elimination): Ditto.  Remove flag_ira.
33404         (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
33405         equiv_mem_modified, validate_equiv_mem_from_store,
33406         validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
33407         contains_replace_regs, memref_referenced_p, memref_used_between_p,
33408         no_equiv, recorded_label_ref): Move from local-alloc.c.
33409         (update_equiv_regs): Ditto.  Make it static.
33410         (print_insn_chain, print_insn_chains): Move it from global.c.
33411         (pseudo_for_reload_consideration_p): Ditto.  Remove flag_ira.
33412         (build_insn_chain): Ditto.  Make it static.
33413         (ra_init_live_subregs): Move from ra-conflict.c.  Make it static.
33414         Rename to init_live_subregs.
33415         (gate_ira): Remove flag_ira.
33416
33417         * regclass.c: Rename reginfo.c.  Change file description.
33418         (FORBIDDEN_INC_DEC_CLASSES): Remove.
33419         (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
33420         (init_reg_sets_1): Remove code for evaluation of
33421         reg_class_superclasses and losing_caller_save_reg_set.
33422         (init_regs): Remove init_reg_autoinc.
33423         (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
33424         ok_for_base_p_nonstrict): Remove.
33425         (regclass_init): Rename to reginfo_init.  Don't initialize init_cost.
33426         (pass_regclass_init): Rename to pass_reginfo_init.  Modify
33427         corresponding entries.
33428         (dump_regclass, record_operand_costs, scan_one_insn,
33429         init_reg_autoinc, regclass, record_reg_classes, copy_cost,
33430         record_address_regs, auto_inc_dec_reg_p): Remove.
33431         (gt-regclass.h): Rename to gt-reginfo.h.
33432
33433         * rtl.h (dump_global_regs, retry_global_alloc,
33434         build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
33435
33436         * Makefile.in (RA_H): Remove.
33437         (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
33438         Rename regclass.o to reginfo.o.
33439         (regclass.o): Rename to reginfo.o.  Rename gt-regclass.h to
33440         gt-reginfo.h.
33441         (global.o, local-alloc.o, ra-conflict.o): Remove entries.
33442         (GTFILES): Rename regclass.c to reginfo.c.
33443
33444         * passes.c (init_optimization_passes): Remove pass_local_alloc and
33445         pass_global_alloc.  Rename pass_regclass_init to pass_reginfo_init.
33446
33447         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
33448         count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
33449         Remove flag_ira.
33450         (finish_spills): Ditto.  Remove code for !flag_ira.
33451
33452 2009-01-29  Kenneth Zadeck  <zadeck@naturalbridge.com>
33453
33454         PR middle-end/35854
33455         * doc/invoke.texi (rtl debug options): Complete rewrite.
33456         * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
33457         to auto_inc_dec".
33458         * mode-switching.c (pass_mode_switching): Rename pass from
33459         "mode-sw" to "mode_sw".
33460         * except.c (pass_convert_to_eh_ranges): Rename pass from
33461         "eh-ranges" to "eh_ranges".
33462         * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
33463         to "subreg1".
33464
33465
33466 2009-01-29  Andrey Belevantsev  <abel@ispras.ru>
33467             Alexander Monakov  <amonakov@ispras.ru>
33468
33469         PR middle-end/38857
33470         * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
33471         register.
33472         (move_exprs_to_boundary): Change return type and pass through
33473         should_move from move_op.  Relax assert.  Update usage ...
33474         (schedule_expr_on_boundary): ... here.  Use should_move instead of
33475         cant_move.
33476         (move_op_orig_expr_found): Indicate that insn was disconnected from
33477         stream.
33478         (code_motion_process_successors): Do not call after_merge_succs
33479         callback if original expression was not found when traversing any of
33480         the branches.
33481         (code_motion_path_driver): Change return type.  Update prototype.
33482         (move_op): Update comment.  Add a new parameter (should_move).  Update
33483         prototype.  Set *should_move based on indication provided by
33484         move_op_orig_expr_found.
33485
33486 2009-01-28  Pat Haugen  <pthaugen@us.ibm.com>
33487
33488         * doc/invoke.texi (avoid-indexed-addresses): Document new option.
33489         * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
33490         * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
33491         * config/rs6000/rs6000.c (rs6000_override_options): Default
33492         avoid-indexed-addresses on for Power6, off for everything else.
33493         (avoiding_indexed_address_p): New function.
33494         (rs6000_legitimize_address): Use it.
33495         (rs6000_legitimate_address): Likewise.
33496         * config/rs6000/rs6000.md (movXX_updateX): Likewise
33497
33498 2009-01-28  Kazu Hirata  <kazu@codesourcery.com>
33499
33500         PR tree-optimization/38997
33501         * tree-loop-distribution.c (generate_memset_zero): Use
33502         POINTER_PLUS_EXPR for a pointer addition.
33503
33504 2009-01-28  Andreas Krebbel  <krebbel1@de.ibm.com>
33505
33506         * config/s390/s390.md (bswap<mode>2): New pattern added.
33507
33508 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
33509
33510         * config/s390/s390.md (*tls_load_31): Added type attribute.
33511
33512 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
33513
33514         * config/s390/s390.md: Fix a few comments.
33515
33516 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
33517
33518         * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
33519         (*tm<mode>_full): Fixed z10prop attribute.
33520         (*tst<mode>_extimm): Fixed z10prop attribute.
33521         (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
33522         (*tstqiCCT_cconly): Fixed z10prop attribute.
33523         (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
33524         (*movsi_larl): Fixed z10prop attribute.
33525         (*movsi_zarch): Fixed z10prop attribute.
33526         (*movsi_eas): Fixed z10prop attribute.
33527         (*movhi): Fixed z10prop attribute.
33528         (*movqi): Fixed z10prop attribute.
33529         (*movstrictqi): Fixed z10prop attribute.
33530         (*mov<mode>): Fixed z10prop attribute.
33531         (*movcc): Fixed z10prop attribute.
33532         (*sethighpartdi_64): Fixed z10prop attribute.
33533         (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
33534         (*negdi2_sign_cc): Fixed z10prop attribute.
33535         (*negdi2_sign): Fixed z10prop attribute.
33536         (*absdi2_sign_cc): Fixed z10prop attribute.
33537         (*absdi2_sign): Fixed z10prop attribute.
33538         (*negabsdi2_sign_cc): Fixed z10prop attribute.
33539         (*negabsdi2_sign): Fixed z10prop attribute.
33540         (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
33541         (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
33542         (doloop_si64): Fixed z10prop attribute.
33543         (doloop_si31): Fixed z10prop attribute.
33544         (doloop_long): Fixed z10prop attribute.
33545         (indirect_jump): Fixed z10prop attribute.
33546         (nop): Fixed z10prop attribute.
33547         (main_base_64): Fixed z10prop attribute.
33548         (reload_base_64): Fixed z10prop attribute.
33549
33550 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
33551
33552         PR rtl-optimization/38740
33553         * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
33554         if !optimize.
33555         * config/mips/mips.c (mips_reorg): Likewise.
33556
33557 2009-01-28  Richard Guenther  <rguenther@suse.de>
33558
33559         PR tree-optimization/38926
33560         * tree-ssa-pre.c (add_to_value): Assert we add only expressions
33561         with the correct value id to a value.
33562         (do_regular_insertion): Use the value number of edoubleprime
33563         for the value number of the expr.
33564
33565         Revert
33566         2008-08-21  Richard Guenther  <rguenther@suse.de>
33567
33568         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
33569         a PHI ask VN if it is already available.
33570         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
33571         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
33572
33573 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
33574
33575         PR middle-end/38934
33576         * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
33577         set to varying whenever max has TREE_OVERFLOW set, similarly
33578         for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
33579
33580 2009-01-28  Richard Guenther  <rguenther@suse.de>
33581
33582         PR middle-end/38908
33583         * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
33584         uninitialized aggregate uses in call arguments.
33585
33586 2009-01-28  Paolo Bonzini  <bonzini@gnu.org>
33587
33588         PR tree-optimization/38984
33589         * tree-ssa-structalias.c (get_constraints_for_1): Do not use
33590         the nothing_id variable if -fno-delete-null-pointer-checks.
33591
33592 2009-01-28  Uros Bizjak  <ubizjak@gmail.com>
33593
33594         PR target/38988
33595         * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
33596         (set_got_offset_rex64): Ditto.
33597
33598 2009-01-27  H.J. Lu  <hongjiu.lu@intel.com>
33599
33600         PR target/38941
33601         * doc/extend.texi: Improve local variable with asm reg.
33602
33603 2009-01-27  Adam Nemet  <anemet@caviumnetworks.com>
33604
33605         * c.opt (Wpacked-bitfield-compat): Change init value to -1.
33606         * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
33607         was not supplied then set warn_packed_bitfield_compat to the
33608         default value of 1.
33609         * stor-layout.c (place_field): Check warn_packed_bitfield_compat
33610         against 1.
33611
33612 2009-01-27  Richard Guenther  <rguenther@suse.de>
33613
33614         PR tree-optimization/38503
33615         * cfgexpand.c (expand_gimple_basic_block): Ignore
33616         GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
33617         * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
33618         variables that cannot have TBAA applied.
33619         (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
33620         statements.
33621
33622 2009-01-27  Uros Bizjak  <ubizjak@gmail.com>
33623
33624         PR middle-end/38969
33625         * calls.c (initialize_argument_information): Do not wrap complex
33626         arguments in SAVE_EXPR.
33627
33628 2009-01-26  Andreas Tobler  <a.tobler@schweiz.org>
33629
33630         * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
33631         (INSTALL_LIBGCC): Revert typo commit.
33632
33633 2009-01-26  Richard Guenther  <rguenther@suse.de>
33634
33635         PR tree-optimization/38745
33636         * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
33637         from special handling.
33638
33639 2009-01-26  Richard Guenther  <rguenther@suse.de>
33640
33641         PR tree-optimization/38745
33642         * tree-ssa.c (execute_update_addresses_taken): Do not include
33643         variables that cannot possibly be a register in not_reg_needs.
33644         Do not clear TREE_ADDRESSABLE on vars that may not become
33645         registers.
33646         * tree-ssa.c (update_alias_info_1): Include those in the set
33647         of addressable vars.
33648
33649 2009-01-26  Richard Guenther  <rguenther@suse.de>
33650
33651         PR middle-end/38851
33652         * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
33653         * tree-ssa-dse.c: Include langhooks.h
33654         (execute_simple_dse): Remove stores with zero size.
33655
33656 2009-01-24  Jakub Jelinek  <jakub@redhat.com>
33657
33658         PR c/38957
33659         * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
33660         as PLUS_EXPR.
33661
33662 2009-01-24  Julian Brown  <julian@codesourcery.com>
33663
33664         * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
33665         config/arm/linux-atomic.c.
33666         * config/arm/linux-atomic.c: New.
33667
33668 2009-01-24  Eric Botcazou  <ebotcazou@adacore.com>
33669
33670         * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
33671         * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
33672         * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
33673
33674 2009-01-24  H.J. Lu  <hongjiu.lu@intel.com>
33675
33676         PR c/38938
33677         * c-opts.c (c_common_handle_option): Update warn_pointer_sign
33678         properly.
33679
33680 2009-01-24  Sebastian Pop  <sebastian.pop@amd.com>
33681
33682         PR tree-optimization/38953
33683         * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
33684         (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
33685         (gloog): Split the exit of the scop when the scop exit is a loop exit.
33686         (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
33687         changed the CFG.
33688
33689 2009-01-24  Paul Brook  <paul@codesourcery.com>
33690
33691         * config/arm/neon.md (neon_type): Move to arm.md.
33692         (neon_mov<VSTRUCT>): Add neon_type attribute.
33693         * config/arm/arm.md (neon_type): Move to here.
33694         (conds): Add "unconditioal" and use as default for NEON insns.
33695
33696 2009-01-24  Ben Elliston  <bje@au.ibm.com>
33697
33698         * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
33699         void *' warning from -Wc++-compat.
33700         * Makefile.in (dominance.o-warn): Remove.
33701
33702 2009-01-23  Paolo Bonzini  <bonzini@gnu.org>
33703
33704         PR tree-optimization/38932
33705         * fold-const.c (fold_unary_ignore_overflow): New.
33706         * tree.h (fold_unary_ignore_overflow): Declare.
33707         * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
33708         * tree-ssa-sccvn.c (visit_reference_op_load,
33709         simplify_unary_expression): Likewise.
33710
33711 2009-01-22  Adam Nemet  <anemet@caviumnetworks.com>
33712
33713         * c-decl.c (finish_struct): Move code to set DECL_PACKED after
33714         DECL_BIT_FIELD is alreay known.  Also inherit packed for bitfields
33715         regardless of their type.
33716         * c-common.c (handle_packed_attribute): Don't ignore packed on
33717         bitfields.
33718         * c.opt (Wpacked-bitfield-compat): New warning option.
33719         * stor-layout.c (place_field): Warn if offset of a field changed.
33720         * doc/extend.texi (packed): Mention the ABI change.
33721         * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
33722         (Warning Options): Add it to the list.
33723
33724 2009-01-22  H.J. Lu  <hongjiu.lu@intel.com>
33725
33726         * c-opts.c (c_common_post_options): Fix a typo in comments.
33727
33728 2009-01-22  Steve Ellcey  <sje@cup.hp.com>
33729
33730         PR middle-end/38615
33731         * gimplify.c (gimplify_init_constructor): Fix promotion of const
33732         variables to static.
33733         * doc/invoke.texi (-fmerge-all-constants): Update description.
33734
33735 2009-01-22  Uros Bizjak  <ubizjak@gmail.com>
33736
33737         PR target/38931
33738         * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
33739         (*movdi_1_rex64): Use type "mmx" for alternative 5.
33740
33741 2009-01-22  Richard Earnshaw  <rearnsha@arm.com>
33742
33743         * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
33744         a word boundary.
33745         (LOCAL_ALIGNMENT): Similarly.
33746
33747 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
33748             Joseph Myers  <joseph@codesourcery.com>
33749
33750         * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
33751         * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
33752         * config/arm/arm-tune.md: Regenerate.
33753         * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
33754         -march=iwmmxt2.
33755
33756 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
33757
33758         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
33759         version number to five.
33760
33761 2009-01-22  Dodji Seketeli  <dodji@redhat.com>
33762
33763         PR c++/38930
33764         * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
33765         * c-common.c (set_underlying_type): Likewise.
33766         (is_typedef_decl ): Likewise
33767         * tree.h: Likewise
33768         (set_underlying_type): Likewise.
33769         (is_typedef_type): Likewise.
33770
33771 2009-01-21  Vladimir Makarov  <vmakarov@redhat.com>
33772
33773         PR middle-end/38587
33774         * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
33775         crossing setjmps.
33776
33777 2009-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
33778
33779         PR bootstrap/37660
33780         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC):  New helper macro.
33781         (LIBGCC_SPEC):  Don't define.
33782         (REAL_LIBGCC_SPEC):  Define instead, using SHARED_LIBGCC_SPEC.
33783
33784 2009-01-21  Uros Bizjak  <ubizjak@gmail.com>
33785
33786         PR rtl-optimization/38879
33787         * alias.c (base_alias_check): Unaligned access via AND address can
33788         alias all surrounding object types except those with sizes equal
33789         or wider than the size of unaligned access.
33790
33791 2009-01-21  Dodji Seketeli  <dodji@redhat.com>
33792
33793         PR c++/26693
33794         * c-decl.c (clone_underlying_type): Move this ...
33795         * c-common.c (set_underlying_type): ... here.
33796         Also, make sure the function properly sets TYPE_STUB_DECL() on
33797         the newly created typedef variant type.
33798         (is_typedef_decl ): New entry point.
33799         * tree.h: Added a new member member_types_needing_access_check to
33800         struct tree_decl_non_common.
33801         (set_underlying_type): New entry point.
33802         (is_typedef_type): Likewise.
33803
33804 2009-01-21  Bingfeng Mei  <bmei@broadcom.com>
33805
33806         * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
33807         Check whether two instructions have memory references that
33808         belong to conflicting alias sets.  walk_mems_1 and walk_mems_2
33809         are helper functions for traversing.
33810         * alias.h (insn_alias_sets_confilict_p): New prototypes.
33811         * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
33812         not to draw dependency edge for instructions with non-conflicting
33813         alias sets.
33814
33815 2009-01-20  Joseph Myers  <joseph@codesourcery.com>
33816
33817         PR other/38758
33818         * longlong.h: Update copyright years.  Use soft-fp license notice.
33819         Sync __clz_tab declaration with glibc.
33820
33821 2009-01-20  Steve Ellcey  <sje@cup.hp.com>
33822
33823         PR target/30687
33824         * doc/extend.texi (syscall_linkage): New.
33825         (version_id): Modify.
33826
33827 2009-01-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
33828             Richard Guenther  <rguenther@suse.de>
33829
33830         PR tree-optimization/38747
33831         PR tree-optimization/38748
33832         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
33833         conversion if the base address is an indirect reference and the
33834         aliasing sets could cause issues.
33835
33836 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
33837
33838         * common.opt (fgraphite, fgraphite-identity): Add comment for
33839         explaining why these options are not documented.
33840
33841 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
33842
33843         * graphite.c (stmt_simple_for_scop_p): Also handle cases when
33844         gimple_call_lhs is NULL.
33845
33846 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
33847
33848         PR target/38868
33849         * emit-rtl.c (adjust_address_1): Make sure memref is never
33850         overwritten.
33851
33852 2009-01-20  Ben Elliston  <bje@au.ibm.com>
33853
33854         * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
33855         const qualifier from arg parameter. Remove unnecessary cast to char *.
33856         * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
33857         const qualifier from arg 2.
33858
33859 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
33860
33861         * config/darwin.h: Add static-libgfortran to LINK_SPEC.
33862
33863 2009-01-19  Vladimir Makarov  <vmakarov@redhat.com>
33864
33865         PR c/38869
33866         * rtl.h (reinit_regs): New prototype.
33867         * regclass.c: Include ira.h.
33868         (reinit_regs): New.
33869         * Makefile.in (regclass.o): Add ira.h.
33870         * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
33871
33872 2009-01-18  H.J. Lu  <hongjiu.lu@intel.com>
33873
33874         PR target/38736
33875         * c-common.c (handle_aligned_attribute): Use
33876         ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
33877         default alignment value.
33878
33879         * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
33880
33881         * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
33882         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
33883
33884         * doc/extend.texi: Update __attribute__ ((aligned)).  Document
33885         __BIGGEST_ALIGNMENT__.
33886
33887         * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
33888
33889 2009-01-18  Richard Guenther  <rguenther@suse.de>
33890
33891         PR tree-optimization/38819
33892         * tree-flow.h (operation_could_trap_helper_p): Declare.
33893         * tree-eh.c (operation_could_trap_helper_p): Export.
33894         * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
33895         * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
33896         * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
33897         are about to insert a possibly trapping instruction and fail
33898         in this case.
33899
33900 2009-01-18  Andreas Schwab  <schwab@suse.de>
33901
33902         * doc/install.texi (Configuration): Remove obsolete paragraph
33903         about use of --with-gnu-ld with --with-gnu-as.
33904
33905 2009-01-18  Kazu Hirata  <kazu@codesourcery.com>
33906
33907         * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
33908         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
33909         Follow spelling conventions.
33910
33911 2009-01-18  Ben Elliston  <bje@au.ibm.com>
33912
33913         * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
33914         C++ warning about implicit conversion from void * to struct
33915         bitmap_head_def *.
33916         (bitmap_obstack_free): Likewise for bitmap_element *.
33917         * Makefile.in (bitmap.o-warn): Remove.
33918
33919 2009-01-17  Dave Korn  <dave.korn.cygwin@gmail.com>
33920
33921         * Makefile.in (BACKENDLIBS):  Reorder to match dependencies.
33922
33923 2009-01-17  Sebastian Pop  <sebastian.pop@amd.com>
33924             Tobias Grosser  <tobi.grosser@amd.com>
33925
33926         * graphite.c (graphite_trans_scop_block): Do not block single
33927         nested loops.
33928
33929 2009-01-16  Alexandre Oliva  <aoliva@redhat.com>
33930
33931         * ebitmap.h (ebitmap_iter_init): Initialize all fields.
33932         * ipa-struct-reorg.c (gen_struct_type): Replace known-true
33933         test with assertion.
33934
33935 2009-01-16  Richard Guenther  <rguenther@suse.de>
33936
33937         PR tree-optimization/38835
33938         PR middle-end/36227
33939         * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
33940         and INT + PTR -> (INT)(PTR p+ INT) folding.
33941         * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
33942
33943 2009-01-16  Adam Nemet  <anemet@caviumnetworks.com>
33944
33945         PR target/38554
33946         * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
33947         the subreg from a lowpart subreg if it is also casting the value.
33948
33949 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
33950             Tobias Grosser  <tobi.grosser@amd.com>
33951
33952         * graphite.c (compare_prefix_loops): New.
33953         (build_scop_canonical_schedules): Rewritten.
33954         (graphite_transform_loops): Move build_scop_canonical_schedules
33955         after build_scop_iteration_domain.
33956
33957 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
33958             Tobias Grosser  <tobi.grosser@amd.com>
33959
33960         * graphite.c (add_conditions_to_domain): Add the loops to
33961         the dimension of the iteration domain.  Do copy the domain
33962         only when it exists.
33963         (build_scop_conditions_1): Do not call add_conditions_to_domain.
33964         (add_conditions_to_constraints): New.
33965         (can_generate_code_stmt, can_generate_code): Removed.
33966         (gloog): Do not call can_generate_code.
33967         (graphite_transform_loops): Call add_conditions_to_constraints
33968         after building the iteration domain.
33969
33970 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
33971
33972         PR tree-optimization/38789
33973         * tree-ssa-threadedge.c
33974         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
33975         __builtin_constant_p.
33976
33977 2009-01-16  Kenneth Zadeck  <zadeck@naturalbridge.com>
33978
33979         * dce.c (delete_unmarked_insns): Reversed the order that insns are
33980         examined before deleting them.
33981
33982 2009-01-16  Richard Earnshaw  <rearnsha@arm.com>
33983
33984         * function.c (aggregate_value_p): Correctly extract the function
33985         type from CALL_EXPR_FN lookup.
33986
33987 2009-01-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
33988
33989         * config/picochip/picochip.c (picochip_override_options): Revert
33990         CFI asm flag disable commited previously.
33991
33992 2009-01-15  Sebastian Pop  <sebastian.pop@amd.com>
33993             Tobias Grosser  <tobi.grosser@amd.com>
33994             Jan Sjodin  <jan.sjodin@amd.com>
33995
33996         * graphite.c (scan_tree_for_params): On substractions negate
33997         all the coefficients of the term.
33998         (clast_to_gcc_expression_red): New.  Handle reduction expressions
33999         of more than two operands.
34000         (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
34001         (get_vdef_before_scop): Handle also the case of default definitions.
34002
34003 2009-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
34004
34005         * caller-save.c (add_used_regs_1, add_used_regs): New functions.
34006         (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
34007         Also use them when walking CALL_INSN_FUNCTION_USAGE.
34008
34009 2009-01-15  H.J. Lu  <hongjiu.lu@intel.com>
34010             Joey Ye  <joey.ye@intel.com>
34011
34012         PR middle-end/37843
34013         * cfgexpand.c (expand_stack_alignment): Don't update stack
34014         boundary nor check incoming stack boundary here.
34015         (gimple_expand_cfg): Update stack boundary and check incoming
34016         stack boundary here.
34017
34018 2009-01-15  Kenneth Zadeck  <zadeck@naturalbridge.com>
34019
34020         * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
34021
34022 2009-01-14  Jakub Jelinek  <jakub@redhat.com>
34023
34024         PR rtl-optimization/38245
34025         * calls.c (expand_call): Add stack arguments to
34026         CALL_INSN_FUNCTION_USAGE even for pure calls (when
34027         ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
34028         in regs and partially in memory or BLKmode arguments.
34029         (emit_library_call_value_1): Add stack arguments to
34030         CALL_INSN_FUNCTION_USAGE even for pure calls (when
34031         ACCUMULATE_OUTGOING_ARGS).
34032         * dce.c: Include tm_p.h.
34033         (find_call_stack_args): New function.
34034         (deletable_insn_p): Call it for CALL_P insns.  Add ARG_STORES
34035         argument.
34036         (mark_insn): Call find_call_stack_args for CALL_Ps.
34037         (prescan_insns_for_dce): Walk insns backwards in bb rather than
34038         forwards.  Allocate and free arg_stores bitmap if needed, pass it
34039         down to deletable_insn_p, don't mark stores set in arg_stores
34040         bitmap, clear the bitmap at the beginning of each bb.
34041         * Makefile.in (dce.o): Depend on $(TM_P_H).
34042
34043 2009-01-14  Michael Meissner  <gnu@the-meissners.org>
34044
34045         PR target/22599
34046         * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
34047         to make sure the insn is a conditional test (bug 22599).  Reformat a
34048         few long lines.
34049
34050 2009-01-14  Sebastian Pop  <sebastian.pop@amd.com>
34051
34052         PR middle-end/38431
34053         * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
34054         (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
34055         (gloog): Do not call cleanup_tree_cfg.
34056         (graphite_transform_loops): Call cleanup_tree_cfg after all
34057         scops have been code generated.
34058
34059 2009-01-14  Basile Starynkevitch  <basile@starynkevitch.net>
34060         * doc/gty.texi (Invoking the garbage collector): Added new node
34061         and section documenting ggc_collect.
34062
34063 2009-01-14  Richard Guenther  <rguenther@suse.de>
34064
34065         PR tree-optimization/38826
34066         PR middle-end/38477
34067         * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
34068         initialization notes only if we actually emitted a warning.
34069         (intra_create_variable_infos): Add constraints for a result decl
34070         that is passed by hidden reference.
34071         (build_pred_graph): Mark all related variables non-direct on
34072         address-taking.
34073
34074 2009-01-14  Nick Clifton  <nickc@redhat.com>
34075
34076         * ira-conflicts.c: Include addresses.h for the definition of
34077         base_reg_class.
34078         (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
34079         * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
34080
34081 2009-01-13  Vladimir Makarov  <vmakarov@redhat.com>
34082
34083         PR target/38811
34084         * Makefile.in (ira-lives.o): Add except.h.
34085
34086         * ira-lives.c: Include except.h.
34087         (process_bb_node_lives): Process can_throw_internal.
34088
34089 2009-01-13  Jakub Jelinek  <jakub@redhat.com>
34090
34091         PR rtl-optimization/38774
34092         * combine.c (simplify_set): When undoing cc_use change, don't do
34093         PUT_CODE on the newly created comparison, but instead put back the
34094         old comparison.
34095
34096 2009-01-13  Joseph Myers  <joseph@codesourcery.com>
34097
34098         * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
34099         values.  Remove duplicate arm8 entry.
34100
34101 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
34102
34103         PR tree-optimization/38786
34104         * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
34105         the SSA_NAME case of expand_scalar_variables_expr.
34106         Set the type of an expression to the type of its assign statement.
34107         (expand_scalar_variables_expr): Also gather the scalar computation
34108         used to index the memory access.  Do not pass loop_p.
34109         Fix comment.  Stop recursion on tcc_constant or tcc_declaration.
34110         (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
34111         the gimple_stmt_iterator where it inserts new code.
34112         Do not pass loop_p.
34113         (copy_bb_and_scalar_dependences): Do not pass loop_p.
34114         (translate_clast): Update call to copy_bb_and_scalar_dependences.
34115
34116 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
34117
34118         * graphite.h (debug_value): Removed.
34119         * graphite.c (debug_value): Removed.
34120
34121 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
34122
34123         * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
34124         ldrd/strd with two 32-bit instructions.
34125
34126 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
34127
34128         * config/arm/arm.c (struct processors): Pass for speed down into
34129         cost helper functions.
34130         (const_ok_for_op): Handle COMPARE and inequality nodes.
34131         (arm_rtx_costs_1): Rewrite.
34132         (arm_size_rtx_costs): Update prototype.
34133         (arm_rtx_costs): Pass speed down to helper functions.
34134         (arm_slowmul_rtx_costs): Rework cost calculations.
34135         (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
34136         (arm_9e_rtx_costs): Likewise.
34137
34138 2009-01-13  Uros Bizjak  <ubizjak@gmail.com>
34139
34140         * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
34141         relocations of local symbols wider than UNITS_PER_WORD are not valid.
34142         (alpha_legitimize_address): Do not split local symbols wider than
34143         UNITS_PER_WORD into HIGH/LO_SUM parts.
34144
34145 2009-01-13  Danny Smith  <dannysmith@users.sourceforge.net>
34146
34147         PR bootstrap/38580
34148         * gcc.c (process_command): Replace call to execvp with calls
34149         to pex_one and exit.
34150
34151 2009-01-03  Anatoly Sokolov  <aesok@post.ru>
34152
34153         PR target/29141
34154         * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
34155         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
34156         variant for devices with 3-byte PC.
34157         (__tablejump_elpm__): New.
34158
34159 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
34160
34161         PR c/32041
34162         * c-parser.c (c_parser_postfix_expression): Allow `->' in
34163         offsetof member-designator, handle it as `[0].'.
34164
34165 2009-01-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34166
34167         * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
34168         function when not using named sections on targets with named sections
34169         if branch distance is less than 262132.
34170
34171 2009-01-12  Richard Earnshaw  <rearnsha@arm.com>
34172
34173         * combine.c (combine_instructions):  Recompute
34174         optimize_this_for_speed_p  for each BB in the main combine loop.
34175
34176 2009-01-12  Tomas Bily  <tbily@suse.cz>
34177
34178         PR middlend/38385
34179         * tree-loop-distribution.c (prop_phis): New function.
34180         (generate_builtin): Call prop_phis.
34181
34182 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
34183
34184         PR tree-optimization/38807
34185         * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
34186         gimple_visited_p unless stmt is GIMPLE_ASSIGN.
34187
34188 2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
34189
34190         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
34191         subreg of op0 to the original op0.
34192
34193 2009-01-11  Laurent GUERBY  <laurent@guerby.net>
34194
34195         * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
34196
34197 2009-01-11  Markus Schoepflin  <markus.schoepflin@comsoft.de>
34198
34199         PR debug/7055
34200         * mips-tfile.c (parse_def): Fix parsing of def strings
34201         starting with digits.
34202
34203 2009-01-10  Jakub Jelinek  <jakub@redhat.com>
34204
34205         PR target/38695
34206         * config/arm/arm.c (arm_is_long_call_p): Don't call
34207         arm_function_in_section_p if decl isn't a FUNCTION_DECL.
34208
34209 2009-01-09  Steven Bosscher  <steven@gcc.gnu.org>
34210
34211         * regrename.c (regrename_optimize): Fix dumping.
34212         (find_oldest_value_reg): Preserve REG_POINTER.
34213         (copy_hardreg_forward_1): Likewise.
34214
34215 2009-01-09  Diego Novillo  <dnovillo@google.com>
34216
34217         * gimple.h (struct gimple_statement_base) <uid>: Document
34218         the restrictions on its use.
34219         (gimple_uid): Tidy.
34220         (gimple_set_uid): Tidy.
34221
34222 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
34223
34224         * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
34225         zero guard even if align_bytes != 0 and count is smaller than
34226         size_needed.
34227
34228 2009-01-09  Vladimir Makarov  <vmakarov@redhat.com>
34229
34230         PR rtl-optimization/38495
34231         * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
34232         (add_range_and_copies_from_move_list): Print all added ranges.
34233         Add ranges to memory optimized destination.
34234
34235 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
34236
34237         PR target/38686
34238         PR target/38708
34239         * config/i386/i386.c (override_options): Reject
34240         -mstringop-strategy=rep_8byte with -m32.
34241         (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
34242         to 1.  Do count comparison against epilogue_size_needed at compile
34243         time even when count_exp was constant forced into register.  For
34244         size_needed don't jump to epilogue, instead just avoid aligning
34245         and invoke the body algorithm.  If need_zero_guard, add zero guard
34246         even if count is non-zero, but smaller than size_needed + number of
34247         bytes that could be stored for alignment.
34248         (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
34249         to 1.  If need_zero_guard, add zero guard even if count is non-zero,
34250         but smaller than size_needed + number of bytes that could be stored
34251         for alignment.  Compare size_needed with epilogue_size_needed instead
34252         of desired_align - align, don't adjust size_needed, pass
34253         epilogue_size_needed to the epilogue expanders.
34254
34255         PR c/35742
34256         * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
34257
34258 2009-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34259
34260         * pa.c (last_address): Change to unsigned.
34261         (update_total_code_bytes): Change argument to unsigned.  Don't
34262         check if insn addresses are set.
34263         (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
34264         addresses are not set.
34265         (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
34266
34267 2009-01-09  Nick Clifton  <nickc@redhat.com>
34268
34269         * config/sh/symbian.c: Replace uses of DECL_INLINE with
34270         DECL_DECLARED_INLINE_P.
34271
34272 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
34273
34274         PR middle-end/38347
34275         * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
34276         GET_MODE (op0) in operand_subword_force calls.
34277
34278         PR middle-end/38771
34279         * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
34280         fold_convert arg0 operands to TREE_TYPE (op0) first.
34281
34282 2009-01-08  Vladimir Makarov  <vmakarov@redhat.com>
34283
34284         * params.def (ira-max-conflict-table-size): Decrease default value
34285         to 1000.
34286
34287 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
34288
34289         PR tree-optimization/37031
34290         * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
34291         on parameter_set.
34292         (build_access_matrix): Reserve correct size for AM_MATRIX vector,
34293         allocate it using gc instead of heap, use VEC_quick_push instead of
34294         VEC_safe_push.
34295         * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
34296         instead of heap, use VEC_quick_push instead of VEC_safe_push.
34297         * tree-data-ref.h (struct access_matrix): Change matrix to gc
34298         allocated vector from heap allocated.
34299         * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
34300         * tree-loop-linear.c (linear_transform_loops): Allocate nest
34301         vector only after perfect_loop_nest_depth call.
34302
34303 2009-01-08  Sebastian Pop  <sebastian.pop@amd.com>
34304             Jan Sjodin  <jan.sjodin@amd.com>
34305
34306         PR tree-optimization/38559
34307         * graphite.c (debug_value, copy_constraint,
34308         swap_constraint_variables, scale_constraint_variable, ): New.
34309         (get_lower_bound, get_upper_bound): Removed.
34310         (graphite_trans_bb_strip_mine): Clean up this code that works
34311         only for constant number of iterations.  Fully copy upper and
34312         lower bound constraints, not only the constant part of them.
34313         * graphite.h (debug_value): Declared.
34314
34315 2009-01-08  Ira Rosen  <irar@il.ibm.com>
34316
34317         PR tree-optimization/37194
34318         * tree-vect-transform.c (vect_estimate_min_profitable_iters):
34319         Don't add the cost of cost model guard in prologue to scalar
34320         outside cost in case of known number of iterations.
34321
34322 2009-01-07  Nathan Froyd  <froydnj@codesourcery.com>
34323             Alan Modra  <amodra@bigpond.net.au>
34324
34325         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
34326         non-word-aligned REG+CONST addressing.
34327
34328 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
34329
34330         PR target/38706
34331         * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
34332         free_after_compilation when outputting a thunk.
34333         (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
34334         Do not call free_after_compilation here.
34335
34336 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
34337
34338         * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
34339         (ix86_valid_target_attribute_inner_p): Ditto.
34340
34341 2009-01-07  Jan Sjodin  <jan.sjodin@amd.com>
34342
34343         PR tree-optimization/38492
34344         PR tree-optimization/38498
34345         * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
34346         * tree-chrec.h (scev_is_linear_expression): Declared.
34347         * graphite.c (graphite_cannot_represent_loop_niter): New.
34348         (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
34349         (graphite_loop_normal_form): Use gcc_assert.
34350         (scan_tree_for_params): Use CASE_CONVERT.
34351         (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
34352         (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
34353         Use gcc_assert.  Discard scops that contain unhandled cases.
34354         (build_scop_conditions): Return a boolean status for unhandled cases.
34355         (strip_mine_profitable_p): Print the loop number, not its depth.
34356         (is_interchange_valid): Pass the depth of the loop nest, don't
34357         recompute it wrongly.
34358         (graphite_trans_bb_block): Same.
34359         (graphite_trans_bb_block): Print tentative of loop blocking.
34360         (graphite_trans_scop_block): Do not print that the loop has been
34361         blocked.
34362         (graphite_transform_loops): Do not handle scops that contain condition
34363         scalar phi nodes.
34364
34365 2009-01-07  H.J. Lu  <hongjiu.lu@intel.com>
34366
34367         AVX Programming Reference (December, 2008)
34368         * config/i386/avxintrin.h (_mm256_stream_si256): New.
34369         (_mm256_stream_pd): Likewise.
34370         (_mm256_stream_ps): Likewise.
34371
34372         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
34373         IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
34374         (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
34375         (bdesc_special_args): Add __builtin_ia32_movntdq256,
34376         __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
34377         (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
34378         (ix86_expand_special_args_builtin): Likewise.
34379
34380         * config/i386/sse.md (AVXMODEDI): New.
34381         (avx_movnt<mode>): Likewise.
34382         (avx_movnt<mode>): Likewise.
34383         (<sse>_movnt<mode>): Remove AVX support.
34384         (sse2_movntv2di): Likewise.
34385
34386 2009-01-07  Richard Guenther  <rguenther@suse.de>
34387
34388         PR middle-end/38751
34389         * fold-const.c (extract_muldiv): Remove obsolete comment.
34390         (fold_plusminus_mult_expr): Undo MINUS_EXPR
34391         to PLUS_EXPR canonicalization for the canonicalization.
34392
34393 2009-01-07  Gerald Pfeifer  <gerald@pfeifer.com>
34394
34395         * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
34396         hosted cross-compilers generating less efficient code.
34397
34398 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
34399
34400         * function.h (rtl_data): Add a dbr_scheduled_p field.
34401         * reorg.c (dbr_schedule): Set it.
34402         (gate_handle_delay_slots): Check it.
34403         * config/mips/mips.c (mips_base_delayed_branch): Delete.
34404         (mips_reorg): Check flag_delayed_branch instead of
34405         mips_base_delayed_branch.
34406         (mips_override_options): Don't set mips_base_delayed_branch
34407         or flag_delayed_branch.
34408
34409 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
34410
34411         PR rtl-optimization/38426.
34412         * ira.c (ira): Set current_function_is_leaf earlier.
34413
34414 2009-01-06  Jakub Jelinek  <jakub@redhat.com>
34415
34416         PR rtl-optimization/38722
34417         * combine.c (try_combine): Don't modify PATTERN (i3) and notes
34418         too early, only set a flag and modify after last possible
34419         undo_all point.
34420
34421 2009-01-06  Janis Johnson  <janis187@us.ibm.com>
34422
34423         PR c/34252
34424         * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
34425         * real.c (decimal_single_format): Correct values of emin and emax.
34426         (decimal_double_format): Ditto.
34427         (decimal_quad_format): Ditto.
34428         * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
34429         computation of DECnn_MIN and DECnn_MAX for corrected values of
34430         emin and emax.  Define __DECnn_SUBNORMAL_MIN__ instead of
34431         __DECnn_MIN__, and adjust its computation for the corrected value
34432         of emin.
34433
34434 2009-01-06  Jan Hubicka  <jh@suse.cz>
34435
34436         PR target/38744
34437         * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
34438
34439 2009-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
34440
34441         * doc/contrib.texi (Contributors): Slightly adjust the end note.
34442         Add Robert Clark to the list of testers.
34443
34444 2009-01-06  Jan Hubicka  <jh@suse.cz>
34445             Kai Tietz  <kai.tietz@onevision.com>
34446
34447         * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
34448         * config/i386/i386.c (ix86_expand_call): Add clobbers.
34449
34450 2009-01-06  Jan Hubicka  <jh@suse.cz>
34451             Kai Tietz  <kai.tietz@onevision.com>
34452
34453         * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
34454         for w64 ABI.
34455         * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
34456         (ix86_nsaved_regs): Count only general purpose regs.
34457         (ix86_nsaved_sseregs): New.
34458         (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
34459         to 16 for w64; compute padding and size of sse reg save area.
34460         (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
34461         general purpose regs.
34462         (ix86_emit_save_sse_regs_using_mov): New.
34463         (ix86_expand_prologue): Save SSE regs if needed.
34464         (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
34465         (ix86_emit_restore_sse_regs_using_mov): New.
34466         (ix86_expand_epilogue): Save SSE regs if needed.
34467
34468 2009-01-06  Jan Hubicka  <jh@suse.cz>
34469             Kai Tietz  <kai.tietz@onevision.com>
34470
34471         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
34472         * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
34473         functions when accumulate outgoing args is off.
34474
34475 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
34476
34477         PR bootstrap/38742
34478         * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
34479         before using pseudos_have_intersected_live_ranges_p.
34480
34481         * ira-int.h (ira_assert): Always define.
34482
34483 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
34484
34485         AVX Programming Reference (December, 2008)
34486         * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
34487         (_mm256_permute2_pd): Likewise.
34488         (_mm_permute2_ps): Likewise.
34489         (_mm256_permute2_ps): Likewise.
34490         * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
34491         * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
34492
34493         * config/i386/i386.c (ix86_builtins): Remove
34494         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
34495         IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
34496         (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
34497         V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
34498         and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
34499         (bdesc_args): Remove __builtin_ia32_vpermil2pd,
34500         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
34501         __builtin_ia32_vpermil2ps256.
34502         (ix86_init_mmx_sse_builtins): Updated.
34503         (ix86_expand_args_builtin): Likewise.
34504
34505 2009-01-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34506
34507         * pa.c (output_call): Relocate non-jump insns in the delay slot of
34508         long absolute calls when generating PA 2.0 code.
34509
34510 2009-01-05  Vladimir Makarov  <vmakarov@redhat.com>
34511
34512         PR rtl-optimization/38583
34513         * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
34514
34515         * params.def (ira-max-conflict-table-size): New.
34516
34517         * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
34518
34519         * ira.h (ira_conflicts_p): New external definition.
34520
34521         * ira-conflicts.c (build_conflict_bit_table): Do not build too big
34522         table.  Report this.  Return result of building.
34523         (ira_build_conflicts): Use ira_conflicts_p.  Check result of
34524         building conflict table.
34525
34526         * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
34527         (ira_color): Use ira_conflicts_p.
34528
34529         * global.c: Include ira.h.
34530         (pseudo_for_reload_consideration_p, build_insn_chain): Use
34531         ira_conflicts_p.
34532
34533         * Makefile.in (global.o): Add ira.h.
34534
34535         * ira-build.c (mark_all_loops_for_removal,
34536         propagate_some_info_from_allocno): New.
34537         (remove_unnecessary_allocnos): Call
34538         propagate_some_info_from_allocno.
34539         (remove_low_level_allocnos): New.
34540         (remove_unnecessary_regions): Add parameter.  Call
34541         mark_all_loops_for_removal and remove_low_level_allocnos.  Pass
34542         parameter to remove_unnecessary_regions.
34543         (ira_build): Remove all regions but root if the conflict table was
34544         not built.  Update conflict hard regs for allocnos crossing calls.
34545
34546         * ira.c (ira_conflicts_p): New global.
34547         (ira): Define and use ira_conflicts_p.
34548
34549         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
34550         count_spilled_pseudo, find_reg, alter_reg, finish_spills,
34551         emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
34552
34553 2009-01-06  Ben Elliston  <bje@au.ibm.com>
34554
34555         * gengtype-lex.l (YY_NO_INPUT): Define.
34556
34557 2009-01-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
34558
34559         PR c/34911
34560         * c-common.c (handle_vector_size_attribute): Also reject
34561         BOOLEAN_TYPE types.
34562
34563 2009-01-05  Sebastian Pop  <sebastian.pop@amd.com>
34564
34565         PR tree-optimization/38492
34566         * graphite.c (rename_map_elt, debug_rename_elt,
34567         debug_rename_map_1, debug_rename_map, new_rename_map_elt,
34568         rename_map_elt_info, eq_rename_map_elts,
34569         get_new_name_from_old_name, bb_in_sese_p): Moved around.
34570         (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
34571         (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
34572         (sese_build_livein_liveouts): New.
34573         (new_sese, free_sese): New.
34574         (new_scop): Call new_sese.
34575         (free_scop): Call free_sese.
34576         (rename_variables_from_edge, rename_phis_end_scop): Removed.
34577         (register_old_new_names): Renamed register_old_and_new_names.
34578         (register_scop_liveout_renames, add_loop_exit_phis,
34579         insert_loop_close_phis, struct igp,
34580         default_liveout_before_guard, add_guard_exit_phis,
34581         insert_guard_phis, copy_renames): New.
34582         (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
34583         (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
34584         (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
34585         (scop_adjust_phis_for_liveouts): New.
34586         (gloog): Call scop_adjust_phis_for_liveouts.
34587
34588         * graphite.h (struct sese): Documented.  Added fields liveout,
34589         num_ver and livein.
34590         (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
34591         (new_sese, free_sese, sese_build_livein_liveouts): Declared.
34592         (struct scop): Added field liveout_renames.
34593         (SCOP_LIVEOUT_RENAMES): New.
34594
34595 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
34596
34597         PR tree-optimization/38510
34598         * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
34599         (translate_clast): Call recompute_all_dominators before
34600         graphite_verify.
34601         (gloog): Call recompute_all_dominators before graphite_verify.
34602
34603 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
34604             Jan Sjodin  <jan.sjodin@amd.com>
34605
34606         PR tree-optimization/38500
34607         * graphite.c (create_sese_edges): Call fix_loop_structure after
34608         splitting blocks.
34609
34610 2009-01-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
34611
34612         * config.gcc: Add m32r*-*-rtems*.
34613         * config/m32r/rtems.h: New file.
34614
34615 2009-01-05  Ben Elliston  <bje@au.ibm.com>
34616
34617         * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
34618         (.po.pox): Likewise.
34619         (po/gcc.pot): Likewise.
34620
34621 2009-01-04  David S. Miller  <davem@davemloft.net>
34622
34623         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
34624         (STARTING_FRAME_OFFSET): Always set to zero.
34625
34626 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
34627
34628         * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
34629         * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
34630         fixed-point types, and vectors of the same.
34631
34632 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
34633
34634         * config/mips/sync.md (*mb_barrier): Rename to...
34635         (*memory_barrier): ...this.
34636
34637 2009-01-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
34638
34639         * doc/extend.texi (Function Attributes): Move @cindex after @item
34640         for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
34641         and put in alphabetical order. Fix 'target' name and put in order.
34642         * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
34643         typos.
34644
34645 2009-01-04  Uros Bizjak  <ubizjak@gmail.com>
34646
34647         * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
34648         (memory_barrier): Expand as unspec instead of unspec_volatile.
34649         Remove mem:BLK from insn operands.  Use Pmode scratch register.
34650         (*memory_barrier): Define as unspec instead of unspec_volatile.
34651         Use (match_dup 0) as input operand.
34652
34653         * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
34654         * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
34655         unspec_volatile.  Remove mem:BLK from insn operands.  Use Pmode
34656         scratch register.  Remove operand 1.
34657         (*stbar): Define as unspec instead of unspec_volatile.
34658         Use (match_dup 0) as input operand, remove (const_int 8).
34659         (*membar): Define as unspec instead of unspec_volatile.
34660         Use (match_dup 0) as input operand, remove input operand 2.
34661
34662         * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
34663         (memory_barrier): Expand as unspec instead of unspec_volatile.
34664         Remove mem:BLK from insn operands.  Use Pmode scratch register.
34665         (*memory_barrier): Define as unspec instead of unspec_volatile.
34666         Use (match_dup 0) as input operand.
34667
34668         * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
34669         Remove mem:BLK from insn operands.  Use Pmode scratch register.
34670         Set volatile flag on operand 0.
34671         (*memory_barrier): New insn pattern.
34672
34673         * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
34674         insn operands.
34675         (*memory_barrier): Use (match_dup 0) as input operand.
34676
34677         * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
34678         Remove mem:BLK from insn operands.  Use Pmode scratch register.
34679         Set volatile flag on operand 0.
34680         (*mb_internal): New insn pattern.
34681
34682         * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
34683
34684 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
34685
34686         PR middle-end/38586
34687         * function.c (struct temp_slot): Move to the section of the file
34688         that deals with temp slots.  Remove field 'address'.
34689         (temp_slot_address_table): New hash table of address -> temp slot.
34690         (struct temp_slot_address_entry): New struct, items for the table.
34691         (temp_slot_address_compute_hash, temp_slot_address_hash,
34692         temp_slot_address_eq, insert_temp_slot_address): Support functions
34693         for the new table.
34694         (find_temp_slot_from_address): Rewrite to use the new hash table.
34695         (remove_unused_temp_slot_addresses): Remove addresses of temp
34696         slots that have been made available.
34697         (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
34698         worker function for remove_unused_temp_slot_addresses.
34699         (assign_stack_temp_for_type): Don't clear the temp slot address list.
34700         Add the temp slot address to the address -> temp slot map.
34701         (update_temp_slot_address): Update via insert_temp_slot_address.
34702         (free_temp_slots): Call remove_unused_temp_slot_addresses.
34703         (pop_temp_slots): Likewise.
34704         (init_temp_slots): Allocate the address -> temp slot map, or empty
34705         the map if it is already allocated.
34706         (prepare_function_start): Initialize temp slot processing.
34707
34708 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
34709
34710         PR middle-end/38584
34711         * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
34712         Calculate the size of all stack vars assuming no packing of stack
34713         vars will happen, replacing a quadratic algorithm with a linear one.
34714
34715 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
34716
34717         PR target/38707
34718         * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
34719         can't be used.
34720
34721 2009-01-03  Diego Novillo  <dnovillo@google.com>
34722
34723         * doc/contrib.texi: Update contributions.
34724
34725 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
34726
34727         PR c++/38705
34728         * builtins.c (fold_builtin_memory_op): Give up if either operand
34729         is volatile.  Set srctype or desttype to non-qualified version
34730         of the other type.
34731
34732         PR c/38700
34733         * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
34734         and FUNCTION_DECLs.
34735
34736 2009-01-02  Kenneth Zadeck  <zadeck@naturalbridge.com>
34737
34738         PR rtl-optimization/35805
34739         * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
34740         problem if fast dce is able to remove any instructions.
34741         * dce.c (dce_process_block): Fix dump message.
34742
34743 2009-01-02  Mark Mitchell  <mark@codesourcery.com>
34744
34745         PR 33649
34746         * tree-ssa-pre.c (compute_antic): Correct loop bounds.
34747
34748 2009-01-02  Jakub Jelinek  <jakub@redhat.com>
34749
34750         PR middle-end/38690
34751         * tree-flow.h (op_code_prio, op_prio): New prototypes.
34752         * tree-pretty-print.c (op_code_prio): New function.
34753         (op_prio): No longer static.  Use op_code_prio.
34754         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
34755         Use op_prio and op_code_prio to determine if () should be
34756         printed around operand(s) or not.
34757
34758         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
34759         dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
34760         dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
34761         dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
34762         pp_character instead of pp_string for single letter printing.
34763
34764 2009-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
34765
34766         * doc/extend.texi: Fix '#pragma GCC option' typo.
34767
34768 2009-01-02  Richard Guenther  <rguenther@suse.de>
34769
34770         * doc/install.texi (--enable-checking): Mention different
34771         default for stage1.
34772         (--enable-stage1-checking): Document.
34773
34774 2009-01-01  Andrew Pinski  <pinskia@gmail.com>
34775
34776         PR middle-end/30142
34777         * tree-cfg.c (verify_expr): Add INDIRECT_REF case.  Change MODIFY_EXPR
34778         case to be an error.
34779
34780 2009-01-02  Ben Elliston  <bje@au.ibm.com>
34781
34782         * config/fp-bit.h (pack_d): Constify argument.
34783         * config/fp-bit.c (makenan): Constify return type. Remove casts.
34784         (isnan): Constify argument.
34785         (isinf): Likewise.
34786         (iszero): Likewise.
34787         (pack_d): Likewise.
34788         (_fpadd_parts): Constify return type.
34789         (_fpmul_parts): Likewise.
34790         (_fpdiv_parts): Likewise.
34791
34792 2009-01-01  Jakub Jelinek  <jakub@redhat.com>
34793
34794         PR c/36489
34795         * c-typeck.c (add_pending_init): Add IMPLICIT argument.  Only
34796         warn about overwriting initializer with side-effects or
34797         -Woverride-init if !IMPLICIT.
34798         (output_init_element): Likewise.  Pass IMPLICIT down to
34799         add_pending_init.
34800         (process_init_element): Add IMPLICIT argument.  Pass it down
34801         to output_init_element.
34802         (push_init_element, pop_init_level, set_designator): Adjust
34803         process_init_element callers.
34804         (set_nonincremental_init, set_nonincremental_init_from_string):
34805         Adjust add_pending_init callers.
34806         (output_pending_init_elements): Adjust output_init_element callers.
34807         * c-tree.h (process_init_element): Adjust prototype.
34808         * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
34809         process_init_element callers.
34810
34811 \f
34812 Copyright (C) 2009 Free Software Foundation, Inc.
34813
34814 Copying and distribution of this file, with or without modification,
34815 are permitted in any medium without royalty provided the copyright
34816 notice and this notice are preserved.