i386.c (ix86_expand_int_vcond): Reformat.
[gcc.git] / gcc / ChangeLog
1 2009-12-29 H.J. Lu <hongjiu.lu@intel.com>
2
3 * config/i386/i386.c (ix86_expand_int_vcond): Reformat.
4
5 2009-12-29 Dave Korn <dave.korn.cygwin@gmail.com>
6
7 2009-10-06 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
8
9 PR objective-c++/41595
10 * config/darwin.c (darwin_label_is_anonymous_local_objc_name):
11 New function to recognize objective c/c++ internal symbols,
12 including mangled ones.
13 * config/darwin.h (ASM_OUTPUT_LABELREF): Use
14 darwin_label_is_anonymous_local_objc_name to detect both
15 mangled and clear ObjC internal symbols.
16
17 2009-12-28 H.J. Lu <hongjiu.lu@intel.com>
18
19 PR middle-end/41344
20 * omp-low.c (diagnose_sb_2): Handle GIMPLE_COND.
21
22 2009-12-24 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
23
24 PR target/42457
25 * config/avr/avr.c (avr_extra_arch_macro): Remove static.
26 (avr_cpu_cpp_builtins): Remove.
27 * config/avr/avr.h (avr_extra_arch_macro): Add prototype.
28 * config/avr/avr-c.c: New File.
29 (avr_cpu_cpp_builtins) : Add.
30 * config/avr/t-avr: Add make information for avr-c.
31 * config.gcc (avr-*-*): Include avr-c.o as c and cpp object.
32
33 2009-12-24 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
34
35 PR target/35013, 27192
36 * config/avr/avr.c (print_operand_address): Print correct program
37 memory address.
38 Add warning for large device offset addresses.
39 (avr_assemble_integer): Ditto.
40 (print_operand): Add warnings for incorrect addressing.
41 (out_movqi_r_mr): Tag assembler with new address codes.
42 (out_movhi_r_mr): Ditto.
43 (out_movsi_r_mr): Ditto.
44 (out_movqi_mr_r): Ditto.
45 (out_movhi_mr_r): Ditto.
46 (out_movsi_mr_r): Ditto.
47 * config/avr/predicates.md (text_segment_operand): New predicate.
48 * config/avr/avr.md (jump): Tag assembler with new address codes.
49 (call_insn): Ditto.
50 (call_value_insn): Ditto.
51 (*tablejump_lib): Ditto.
52 (*cbi): Ditto.
53 (*sbi): Ditto.
54 (indirect_jump): New define_expand.
55 (jcindirect_jump): New pattern for constant expression jump.
56 (njcindirect_jump): Renamed old indirect_jump.
57
58 2009-12-24 Steven Bosscher <steven@gcc.gnu.org>
59
60 * store-motion.c (build_store_vectors): Clear regs_set_in_block at
61 the start of a loop over basic blocks.
62
63 2009-12-24 Julian Brown <julian@codesourcery.com>
64 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
65
66 PR target/40887
67 * config/arm/arm.c (output_call_mem): Remove armv5 support.
68 * config/arm/arm.md (*call_mem): Disable for armv5. Add note.
69 (*call_value_mem): Likewise.
70
71 2009-12-23 Jakub Jelinek <jakub@redhat.com>
72
73 PR rtl-optimization/42475
74 * combine.c (make_compound_operation) <case SUBREG>: Use mode of
75 SUBREG_REG (x) instead of tem's mode.
76
77 2009-12-23 Jakub Jelinek <jakub@redhat.com>
78 Cary Coutant <ccoutant@google.com>
79
80 PR debug/42454
81 * dwarf2out.c (add_ranges_by_labels): Conditionally Add DW_AT_ranges
82 attribute.
83 (dwarf2out_finish): Change calls to add_ranges_by_labels.
84
85 2009-12-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
86
87 PR target/42093
88 * config/arm/arm.h (CASE_VECTOR_PC_RELATIVE): Fix macro usage
89 to TARGET_THUMB1.
90 (CASE_VECTOR_SHORTEN_MODE): Allow signed offsets
91 only for TARGET_THUMB1.
92
93 2009-12-23 Ramana Radhakrishnan <ramrad01@arm.com>
94
95 PR target/40670
96 * config/arm/arm.md: Split for Thumb1 as well.
97
98 2009-12-22 Cary Coutant <ccoutant@google.com>
99
100 PR debug/42454
101 * dwarf2out.c (dwarf2out_finish): Don't output range for .text
102 section unless .text section was used. Likewise for cold.
103
104 2009-12-22 Brian Hackett <bhackett1024@gmail.com>
105
106 * doc/plugins.texi: Rename pre-genericize event.
107
108 2009-12-22 Paolo Carlini <paolo.carlini@oracle.com>
109
110 PR driver/42463
111 * params.def ([PARAM_PREDICTABLE_BRANCH_OUTCOME]): Fix typo in
112 help string.
113
114 * doc/invoke.texi: Fix typo.
115
116 2009-12-22 Paul Brook <paul@codesourcery.com>
117
118 * doc/tm.texi (ARG_POINTER_CFA_OFFSET): Document new default.
119 * defaults.h (ARG_POINTER_CFA_OFFSET): Add pretend_args_size.
120 * config/spu/spu.h (ARG_POINTER_CFA_OFFSET): Add pretend_args_size.
121
122 2009-12-21 Brian Hackett <bhackett1024@gmail.com>
123
124 * plugin.def: Rename pre-genericize event.
125 * plugin.c (register_callback, invoke_plugin_callbacks): Same.
126 * c-decl.c (finish_function): Invoke callbacks on above event.
127
128 2009-12-21 Jakub Jelinek <jakub@redhat.com>
129
130 PR rtl-optimization/42429
131 * reload.c (find_reloads_subreg_address): When adjusting mode of
132 MEM, update also MEM_SIZE if it is set.
133
134 2009-12-21 H.J. Lu <hongjiu.lu@intel.com>
135
136 PR bootstrap/42345
137 * acinclude.m4 (gcc_GAS_FLAGS): New.
138 (gcc_GAS_CHECK_FEATURE): Use gcc_GAS_FLAGS.
139 * configure: Regenerated.
140
141 2009-12-20 Michael Matz <matz@suse.de>
142
143 PR tree-optimization/42027
144 * cfgexpand.c (expand_gimple_cond): Use jumpy sequence for &, &&, |
145 and || if jumps are cheap.
146
147 2009-12-19 Richard Guenther <rguenther@suse.de>
148
149 PR lto/42401
150 * lto-streamer-out.c (tree_is_indexable): Local statics
151 are indexable.
152 (lto_output_tree_ref): Adjust assert.
153
154 2009-12-19 Richard Guenther <rguenther@suse.de>
155
156 PR tree-optimization/42108
157 * tree-ssa-sccvn.c (last_vuse_ptr): New variable.
158 (vn_reference_lookup_2): Update last seen VUSE.
159 (vn_reference_lookup_3): Avoid updating last seen VUSE after
160 translating.
161 (visit_reference_op_load): Use last seen VUSE from the first
162 lookup when entering into the table.
163
164 2009-12-19 Joern Rennecke <amylaar@spamcop.net>
165
166 * Makefile.in (PLUGIN_HEADERS): Add more headers.
167
168 * tree-pass.h (GCC_PASS_LISTS): Define.
169 (PASS_LIST_NO_all_lowering_passes): New enumeration value.
170 (PASS_LIST_NO_all_small_ipa_passes): Likewise.
171 (PASS_LIST_NO_all_regular_ipa_passes): Likewise.
172 (PASS_LIST_NO_all_lto_gen_passes): Likewise.
173 (PASS_LIST_NO_all_passes): Likewise.
174 (PASS_LIST_NUM): Likewise.
175 (gcc_pass_lists): Declare.
176 * passes.c (gcc_pass_lists): Define.
177
178 2009-12-18 Richard Guenther <rguenther@suse.de>
179
180 * tree-ssa-sccvn.c (copy_nary): New function.
181 (copy_phis): Likewise.
182 (copy_references): Likewise.
183 (process_scc): Avoid last iteration by copying the
184 optimistic table to the valid table.
185
186 2009-12-17 Jakub Jelinek <jakub@redhat.com>
187
188 * dwarf2out.c (loc_descriptor): For SYMBOL_REFs and LABEL_REFs
189 use DW_OP_addr+DW_OP_stack_value instead of DW_OP_implicit_value.
190 (add_const_value_attribute): For CONST_STRING, SYMBOL_REFs and
191 LABEL_REFs use DW_OP_addr+DW_OP_stack_value DW_AT_location instead of
192 DW_AT_const_value.
193
194 2009-12-17 Alexandre Oliva <aoliva@redhat.com>
195
196 PR debug/41679
197 * var-tracking.c (count_uses): Count MO_VAL_USE of original
198 MO_VAL_SET value for COND_EXEC.
199 (add_stores): Handle conditional stores.
200
201 PR debug/41679
202 * var-tracking.c (use_type): Remove indirection from loc.
203 (count_uses): Dereference incoming loc early.
204 (add_uses): Dereference incoming loc early.
205
206 PR debug/41679
207 * var-tracking.c (add_stores): Avoid value mode mismatch for
208 promoted declarations.
209
210 2009-12-17 Jakub Jelinek <jakub@redhat.com>
211
212 PR c++/42386
213 * ipa.c (function_and_variable_visibility): Clear same_comdat_group
214 links of DECL_EXTERNAL nodes.
215
216 2009-12-17 Sandra Loosemore <sandra@codesourcery.com>
217
218 * doc/rtl.texi (Vector Operations): Clarify vec_select result mode.
219
220 2009-12-17 Julian Brown <julian@codesourcery.com>
221
222 * config/arm/bpabi-v6m.S (test_div_by_zero): New macro.
223 (aeabi_ldivmod, aeabi_uldivmod): Use above macro.
224 * config/arm/bpabi.S (test_div_by_zero): New macro.
225 (aeabi_ldivmod, aeabi_uldivmod): Use above macro.
226 * config/arm/lib1funcs.asm (ARM_LDIV0): Tail-call int div-by-zero
227 handler for EABI. Add signed/unsigned argument, pass correct value
228 to that handler.
229 (THUMB_LDIV0): Same, for Thumb.
230 (DIV_FUNC_END): Add signed argument.
231 (WEAK): New macro (for EABI).
232 (__udivsi3, __umodsi3): Add unsigned argument to DIV_FUNC_END. For
233 __udivsi3, add entry point which skips division-by-zero test.
234 (__divsi3, __modsi3): Add signed argument to DIV_FUNC_END.
235 (__aeabi_uidivmod, __aeabi_idivmod): Check for division by zero.
236 Call __udivsi3 or __divsi3 via entry points which skip
237 division-by-zero tests.
238 (__div0): Rename to __aeabi_idiv0, __aeabi_ldiv0 for EABI, and
239 declare those names weak.
240
241 2009-12-17 Richard Guenther <rguenther@suse.de>
242
243 PR middle-end/42397
244 * builtins.c (get_object_alignment): Properly deal with
245 a CONST_DECL base.
246 * expr.c (emit_block_move_hints): Assert the alignment makes
247 sense.
248
249 2009-12-17 Uros Bizjak <ubizjak@gmail.com>
250
251 PR target/32280
252 * config/i386/i386-modes.def (V1TI): New vector mode.
253 * config/i386/i386.h (VALID_SSE_REG_MODE): Add V1TImode.
254 (SSE_REG_MODE_P): Ditto.
255 * config/i386/sse.md (SSEMODE16): New mode iterator.
256 (AVXMODE16): Ditto.
257 (avxvecmode): Handle V1TI mode.
258 (*avx_mov<mode>_internal): Use AVXMODE16 instead of AVXMODE.
259 (mov<mode>): Use SSEMODE16 instead of SSEMODE.
260 (*mov<mode>_internal): Ditto.
261 (push<mode>1): Ditto.
262 (movmisalign<mode>): Ditto.
263 (sse2_ashlv1ti): Rename from sse2_ashlti.
264 (sse2_lshrv1ti): Rename from sse2_lshrti.
265 (*avx_ashlv1ti): Rename from *avx_ashlti and move from i386.md.
266 (*avx_lshrv1ti): Rename from *avx_lshrti and move from i386.md.
267 (vec_shl_<mode>): Convert operands to V1TImode and use V1TI shift.
268 (vec_shr_<mode>): Ditto.
269 (*sse2_mulv4si3): Update for renamed sse2_ashlv1ti3.
270 (udot_prodv4si): Ditto.
271 * config/i386/i386.c (classify_argument): Handle V1TImode.
272 (function_arg_advance_32): Ditto.
273 (function_arg_32): Ditto.
274 (ix86_expand_sse4_unpack): Convert operands to V1TImode and update
275 for renamed gen_sse2_lshrv1ti3.
276 (ix86_expand_args_builtin) <V2DI_FTYPE_V2DI_INT_CONVERT>: Set rmode
277 to V1TImode.
278 (struct builtin_description) <__builtin_ia32_pslldqi128>: Update
279 for renamed sse2_ashlv1ti3.
280 <__builtin_ia32_psrldqi128>: Update for renamed sse2_lshrv1ti3.
281
282 Revert:
283 2007-06-11 Uros Bizjak <ubizjak@gmail.com>
284
285 PR target/32280
286 * config/i386/sse.md ("sse2_ashlti", "sse2_lshrti3"): Move ...
287 * config/i386/i386.md ("sse2_ashlti", "sse2_lshrti3"): ... to here.
288
289 2009-12-17 Richard Earnshaw <rearnsha@arm.com>
290
291 PR target/42372
292 * arm.md (pic_add_dot_plus_eight): Change output constraint from
293 update to write.
294
295 2009-12-17 Shujing Zhao <pearly.zhao@oracle.com>
296
297 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
298 Update build_indirect_ref calls.
299
300 2009-12-17 Uros Bizjak <ubizjak@gmail.com>
301
302 * config/i386/sync.md (IMODE): Remove mode iterator.
303 (modesuffix): Remove mode attribute.
304 (modeconstraint): Ditto.
305 (immconstraint): Ditto.
306 (*sync_compare_and_swap<mode>): Use SWI mode iterator instead of
307 IMODE mode iterator, imodesuffix mode attribute instead of modesuffix,
308 <r> mode attribute instead of modeconstraint and <i> mode attribute
309 instead of immconstraint.
310 (sync_double_compare_and_swap<mode>): Ditto.
311 (sync_old_add<mode>): Ditto.
312 (sync_lock_test_and_set<mode>): Ditto.
313 (sync_add<mode>): Ditto.
314 (sync_sub<mode>): Ditto.
315 (sync_and<mode>): Ditto.
316 (sync_ior<mode>): Ditto.
317 (sync_xor<mode>): Ditto.
318 (sync_<code><mode>): Macroize insn pattern from
319 sync_{and,ior,xor}<mode> using any_logic code iterator.
320
321 2009-12-17 Shujing Zhao <pearly.zhao@oracle.com>
322
323 PR c/40885
324 * c-common.h (ref_operator): New type.
325 (build_indirect_ref): Adjust prototype with new argument.
326 * c-typeck.c (build_indirect_ref): Accept ref_operator as argument and
327 emit the diagnostics for easy translation.
328 (build_array_ref): Update calls to build_indirect_ref.
329 * c-omp.c (c_finish_omp_atomic): Likewise.
330 * c-parser.c (c_parser_unary_expression,
331 c_parser_postfix_expression_after_primary): Likewise.
332
333 2009-12-16 Richard Guenther <rguenther@suse.de>
334
335 PR lto/42392
336 * langhooks.c (lhd_begin_section): Make sure to switch back
337 to the text section, not some random one.
338
339 2009-12-16 Jakub Jelinek <jakub@redhat.com>
340
341 * tree-chrec.c (chrec_convert_1): Only fold (T2)(t +- x) to
342 (T2)t +- (T2)x if only integer types are involved.
343
344 2009-12-16 Ben Elliston <bje@au.ibm.com>
345
346 * tree-data-ref.h (dot_rdg): Remove prototype.
347 * tree-data-ref.c (dog_rdg_1, dot_rdg): Remove.
348
349 2009-12-16 Kazu Hirata <kazu@codesourcery.com>
350
351 * doc/invoke.texi, doc/options.texi, doc/plugins.texi,
352 doc/tm.texi: Fix typos.
353
354 2009-12-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
355
356 * doc/extend.texi (Function Attributes, Extended Asm):
357 Replace TABs with spaces.
358 * doc/md.texi (Standard Names): Likewise.
359 * doc/plugins.texi (Plugins): Likewise.
360
361 * doc/c-tree.texi (Expression trees): Use @itemx for all but
362 the first item for merged items.
363 * doc/extend.texi (Variable Attributes): Likewise.
364 * doc/install.texi (Configuration): Likewise.
365 * doc/invoke.texi (RS/6000 and PowerPC Options, RX Options):
366 Likewise.
367
368 2009-12-15 Richard Guenther <rguenther@suse.de>
369
370 * tree.c (free_lang_data_in_binfo): Do not free BINFO_OFFSET
371 and BINFO_VPTR_FIELD.
372 (free_lang_data_in_type): Do not free TYPE_STUB_DECL if we
373 generate debug information.
374 (free_lang_data_in_decl): Do not free DECL_SIZE_UNIT,
375 DECL_SIZE, DECL_FIELD_OFFSET and DECL_FCONTEXT.
376 (free_lang_data): Do not disable debuginfo.
377 * lto-streamer-out.c (write_symbol_vec): Deal with
378 non-constant DECL_SIZE.
379 (pack_ts_base_value_fields): Write types with false
380 TREE_ASM_WRITTEN.
381 (lto_output_ts_type_tree_pointers): Stream TYPE_STUB_DECL.
382 * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Stream
383 TYPE_STUB_DECL.
384 * dwarf2out.c (add_pure_or_virtual_attribute): Check for
385 DECL_CONTEXT.
386 (gen_type_die_for_member): Test for TYPE_STUB_DECL.
387 * opts.c (decode_options): Do not disable var-tracking for lto.
388 * doc/invoke.texi (-flto): Document -flto vs. -g experimental
389 status.
390 (-fwhopr): Document experimental status.
391
392 2009-12-15 Aldy Hernandez <aldyh@redhat.com>
393
394 PR graphite/42185
395 * graphite-sese-to-poly.c (is_reduction_operation_p): Assert that
396 we are a GIMPLE_ASSIGN. Do not calculate rhs code twice.
397 (follow_ssa_with_commutative_ops): Return NULL on non assignment.
398
399 2009-12-15 Eric Botcazou <ebotcazou@adacore.com>
400
401 * config/rs6000/rs6000.md (probe_stack): Use an enclosing SET.
402
403 2009-12-15 Richard Guenther <rguenther@suse.de>
404
405 * gimple.h (compare_field_offset): Declare.
406 * gimple.c (compare_field_offset): Export.
407 * lto-streamer-in.c (input_gimple_stmt): Use compare_field_offset.
408
409 2009-12-15 Richard Guenther <rguenther@suse.de>
410
411 * lto-cgraph.c (lto_output_node): Also stream the alias
412 for regular aliases.
413 (input_node): Likewise.
414
415 2009-12-15 Paolo Bonzini <bonzini@gnu.org>
416 Shujing Zhao <pearly.zhao@oracle.com>
417
418 * intl.c (get_spaces): New.
419 * intl.h (get_spaces): New.
420
421 2009-12-14 Jakub Jelinek <jakub@redhat.com>
422
423 PR bootstrap/42369
424 * config/i386/i386.c (ix86_expand_special_args_builtin): Avoid
425 using switch with CODE_FOR_lwp_lwp* cases.
426
427 * config/i386/i386-builtin-types.def (PVOID_FTYPE_VOID): Use
428 DEF_FUNCTION_TYPE (PVOID) instead of DEF_FUNCTION_TYPE (PVOID, VOID).
429
430 2009-12-14 Eric Botcazou <ebotcazou@adacore.com>
431
432 * cfgexpand.c (expand_debug_expr) <INDIRECT_REF>: Remove overzealous
433 assertion and useless code.
434 <TARGET_MEM_REF>: Likewise.
435
436 2009-12-14 Alexandre Oliva <aoliva@redhat.com>
437
438 PR debug/41473
439 * dwarf2out.c (AT_loc_list_ptr): New.
440 (resolve_addr): Remove unresolved attributes and loc_list entries.
441
442 PR debug/41473
443 * dwarf2out.c (add_var_loc_to_decl): Don't drop initial empty
444 locations.
445 (new_loc_list): Drop gensym arg. Move generation of ll_symbol...
446 (gen_llsym): ... here. New function.
447 (add_loc_descr_to_loc_list): Removed.
448 (loc_descriptor): Infer mode from CONST_DOUBLEs and CONST_VECTORs.
449 (single_element_loc_list): Removed.
450 (dw_loc_list): Don't create entries without a location. Don't
451 special-case the first node of the list, only single nodes.
452 (single_element_loc_list_p): Simplify.
453 (loc_list_from_tree): Don't use DECL_RTL if loc_list is nonempty.
454 (add_location_or_const_value_attribute): Test var loc for NULL.
455 (convert_cfa_to_fb_loc_list): Adjust calls to new new_loc_list,
456 call gen_llsym if needed.
457
458 2009-12-14 Jakub Jelinek <jakub@redhat.com>
459
460 * cgraph.h (cgraph_set_nothrow_flag, cgraph_set_readonly_flag,
461 cgraph_set_pure_flag, cgraph_set_looping_const_or_pure_flag): New
462 prototypes.
463 * cgraph.c (cgraph_set_nothrow_flag, cgraph_set_readonly_flag,
464 cgraph_set_pure_flag, cgraph_set_looping_const_or_pure_flag): New
465 functions.
466 * except.h (set_nothrow_function_flags): Remove prototype.
467 * except.c (set_nothrow_function_flags): Use cgraph_set_nothrow_flag.
468 Make static.
469 * ipa-pure-const.c (propagate): Use cgraph_set_nothrow_flag,
470 cgraph_set_readonly_flag, cgraph_set_pure_flag
471 and cgraph_set_looping_const_or_pure_flag.
472 (local_pure_const): Likewise.
473
474 2009-12-14 Jakub Jelinek <jakub@redhat.com>
475 Sebastian Pop <sebastian.pop@amd.com>
476
477 * config/i386/i386-builtin-types.def (PVOID): Declared.
478 (VOID_FTYPE_PVOID): Declared.
479 (PVOID_FTYPE_VOID): Declared.
480 (UCHAR_FTYPE_USHORT_UINT_USHORT): Removed.
481 (VOID_FTYPE_USHORT_UINT_USHORT): Removed.
482 * config/i386/i386.c (IX86_BUILTIN_LLWPCB16, IX86_BUILTIN_LLWPCB32,
483 IX86_BUILTIN_LLWPCB64, IX86_BUILTIN_SLWPCB16, IX86_BUILTIN_SLWPCB32,
484 IX86_BUILTIN_SLWPCB64, IX86_BUILTIN_LWPVAL16, IX86_BUILTIN_LWPINS16):
485 Removed.
486 (IX86_BUILTIN_LLWPCB, IX86_BUILTIN_SLWPCB): New.
487 (bdesc_special_args): Adjust declaration of __builtin_ia32_llwpcb,
488 __builtin_ia32_slwpcb, __builtin_ia32_lwpval32,
489 __builtin_ia32_lwpval64, __builtin_ia32_lwpins32, and
490 __builtin_ia32_lwpins64.
491 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PVOID.
492 Do not handle VOID_FTYPE_USHORT_UINT_USHORT and
493 UCHAR_FTYPE_USHORT_UINT_USHORT. Warn when the third operand is
494 not an immediate. Also handle builtin functions with 3 arguments.
495 (ix86_expand_builtin): Handle IX86_BUILTIN_LLWPCB and
496 IX86_BUILTIN_SLWPCB.
497 * config/i386/i386.md (UNSPEC_LLWP_INTRINSIC, UNSPEC_SLWP_INTRINSIC):
498 Renamed UNSPECV_LLWP_INTRINSIC and UNSPECV_SLWP_INTRINSIC.
499 (memory attribute): Handle lwp.
500 (lwp*): Rewrite all the insn patterns for LWP.
501 * config/i386/lwpintrin.h (__llwpcb16, __llwpcb32, __llwpcb64,
502 __slwpcb16, __slwpcb32, __slwpcb64, __lwpval16, __lwpins16): Removed.
503 (__llwpcb, __slwpcb): New.
504
505 2009-12-14 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
506
507 * dominance.c (set_immediate_dominator): Don't mark as inline.
508
509 2009-12-14 Eric Botcazou <ebotcazou@adacore.com>
510
511 * doc/tm.texi (STACK_CHECK_PROTECT): Document alternate default.
512 * doc/md.texi (check_stack): Clarify.
513 (probe_stack): Likewise.
514 * config/rs6000/rs6000.md (UNSPEC_PROBE_STACK): New constant.
515 (probe_stack): New insn.
516
517 2009-12-14 Ben Elliston <bje@au.ibm.com>
518
519 * lto-streamer-in.c (lto_get_builtin_tree): fclass can only be a
520 BUILT_IN_NORMAL or BUILT_IN_MD.
521
522 2009-12-13 Eric Botcazou <ebotcazou@adacore.com>
523
524 * doc/tm.texi (STACK_CHECK_PROBE_LOAD): Delete.
525 * expr.h (STACK_CHECK_PROBE_LOAD): Likewise.
526 * explow.c (emit_stack_probe): Do not test STACK_CHECK_PROBE_LOAD.
527 * system.h (STACK_CHECK_PROBE_LOAD): Poison.
528
529 2009-12-13 Michael Matz <matz@suse.de>
530
531 PR tree-optimization/42027
532 * dojump.c (do_jump <TRUTH_AND_EXPR, TRUTH_OR_EXPR>): Go to
533 TRUTH_ANDIF_EXPR resp. TRUTH_ORIF_EXPR expander, instead of
534 falling through.
535
536 2009-12-13 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
537
538 PR target/23726
539 * config/avr/predicates.md (pseudo_register_operand): New predicate
540 for pseudos.
541 * config/avr/avr.md (divmodqi4): Replace with define_insn_and_split
542 to allow div/mod optimization.
543 (udivmodqi4): Ditto.
544 (divmodhi4): Ditto.
545 (udivmodhi4): Ditto.
546 (divmodsi4): Ditto.
547 (udivmodsi4): Ditto.
548
549 2009-12-13 Richard Guenther <rguenther@suse.de>
550
551 PR tree-optimization/42357
552 * tree-sra.c (sra_modify_assign): Do not tear apart struct copies.
553
554 2009-12-12 Richard Guenther <rguenther@suse.de>
555
556 * tree.c (need_assembler_name_p): Abstract decls do not need
557 an assembler name.
558 * dwarf2out.c (dwarf2out_abstract_function): Preserve
559 DECL_ABSTRACT properly.
560
561 2009-12-11 Richard Guenther <rguenther@suse.de>
562
563 * lto-streamer-in.c (lto_input_tree_ref): Do not register
564 DEBUG_EXPR_DECLs with the varpool.
565
566 2009-12-11 Eric Botcazou <ebotcazou@adacore.com>
567
568 * config/sparc/linux-unwind.h (MD_FROB_UPDATE_CONTEXT, 64-bit): Define.
569 (sparc64_frob_update_context): New function.
570
571 2009-12-11 Richard Guenther <rguenther@suse.de>
572
573 PR lto/41658
574 PR lto/41657
575 * lto-streamer-out.c (write_global_stream): Do not make decls
576 weak but resort to TREE_ASM_WRITTEN to avoid multiple definitions.
577 Make sure to mark all decls that we have written.
578
579 2009-12-11 Sebastian Andrzej Siewior <bigeasy@linutronix.de>
580
581 PR target/36047
582
583 * config/m68k/linux.h: Remove LABELNO from the mcount statement. It is
584 not used by glibc/uclibc and does not work with large binaries.
585
586 2009-12-11 Richard Guenther <rguenther@suse.de>
587
588 PR lto/41662
589 * lto-streamer-in.c (lto_init_eh): Move eh_initialized_p
590 handling here.
591 (input_eh_regions): Adjust.
592 (lto_input_ts_function_decl_tree_pointers): Initialize EH
593 if a non-NULL DECL_FUNCTION_PERSONALITY was read in.
594
595 2009-12-11 Duncan Sands <baldrick@free.fr>
596
597 * passes.c (make_pass_instance): Allocate and copy the right amount of
598 memory for ipa passes, which are not the same size as other passes.
599
600 2009-12-11 Joern Rennecke <amylaar@spamcop.net>
601
602 * plugin.c (get_named_event_id): Fix hash table rebuild to include
603 dynamically allocated events.
604
605 2009-12-11 Richard Guenther <rguenther@suse.de>
606
607 PR lto/42320
608 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Properly
609 detect non-prevailing decls.
610
611 2009-12-10 Jakub Jelinek <jakub@redhat.com>
612
613 PR c++/42317
614 * cgraph.h (struct cgraph_node): Add same_comdat_group field.
615 * cgraph.c (cgraph_remove_node): Unchain node from same_comdat_group
616 circular list.
617 (cgraph_node_can_be_local_p): Return false for DECL_COMDAT with
618 node->same_comdat_group.
619 * ipa.c (cgraph_remove_unreachable_nodes): For any reachable node
620 mark all its same_comdat_group nodes as also reachable.
621 (cgraph_externally_visible_p): Return true even if any of
622 same_comdat_group nodes has address taken.
623 * lto-cgraph.c (lto_output_node): Stream out same_comdat_group.
624 (output_cgraph): Ensure other same_comdat_group nodes are also
625 included.
626 (input_node): Stream in same_comdat_group.
627 (input_cgraph_1): Fix up same_comdat_group fields from references
628 to pointers.
629 * cgraphunit.c (cgraph_analyze_functions): Mark all other
630 same_comdat_group nodes as reachable.
631 (cgraph_mark_functions_to_output): For each node->process process
632 also other same_comdat_group nodes.
633 * ipa-inline.c (cgraph_clone_inlined_nodes): Don't reuse nodes
634 with same_comdat_group non-NULL.
635 (cgraph_mark_inline_edge): Likewise.
636
637 2009-12-10 Jan Hubicka <jh@suse.cz>
638
639 PR middle-end/42228
640 PR middle-end/42110
641 * cgraph.c (cgraph_create_edge_including_clones): Add old_stmt
642 parameter; update edge if it already exists.
643 (cgraph_remove_node): Handle correctly cases where we are removing
644 node having clones.
645 * cgraph.h (cgraph_create_edge_including_clones): Declare.
646 (verify_cgraph_node): Add missing error_found = true code.
647 (cgraph_materialize_all_clones): Remove call edges of dead nodes.
648 * ipa.c (cgraph_remove_unreachable_nodes): Correctly look for master
649 clone; fix double linked list removal.
650 * tree-inline.c (copy_bb): Update cgraph_create_edge_including_clones
651 call; fix frequency of newly created edge.
652
653 2009-12-10 Bernd Schmidt <bernd.schmidt@analog.com>
654
655 PR rtl-opt/42216
656 * regrename.c: Error out if MAX_RECOG_OPERANDS is larger than
657 HOST_BITS_PER_WIDE_INT.
658 (verify_reg_in_set): New function, broken out of verify_reg_tracked.
659 (verify_reg_tracked): Use it.
660 (scan_rtx_reg): When seeing a use involving a superset of the
661 registers in an existing chain, enlarge that chain. Otherwise,
662 allow subsets and set fail_current_block for all other kinds of
663 overlap.
664 (hide_operands): New argument UNTRACKED_OPERANDS; callers changed.
665 Do not modify operands when the bit with the corresponding number
666 is set in that bitmap.
667 (build_def_use): When we see matching operands with different
668 modes, don't set fail_current_block, but keep track of such
669 operands in a bitmap if their registers aren't already tracked
670 in an open chain. Pass this bitmap to all hide_operands calls.
671
672 2009-12-10 Richard Guenther <rguenther@suse.de>
673
674 PR tree-optimization/42337
675 * tree-ssa-pre.c (seen_during_translate): Remove.
676 (phi_translate_1): Collapse into ...
677 (phi_translate): ... this. Remove seen parameter and
678 adjust recursive calls.
679
680 2009-12-10 Richard Guenther <rguenther@suse.de>
681 Allan Sandfeld Jensen <linux@carewolf.com>
682
683 * tree-vectorizer.c (vectorize_loops): Properly guard
684 vectorizer verboseness.
685
686 2009-12-10 Ben Elliston <bje@au.ibm.com>
687
688 * fwprop.c (free_load_extend): Initialise `use'.
689
690 2009-12-09 David Edelsohn <edelsohn@gnu.org>
691
692 * builtins.c (do_mpc_ckconv): Pass the component type to
693 real_from_mpfr().
694
695 2009-12-09 Xinliang David Li <davidxl@google.com>
696
697 PR tree-optimization/42337
698 * tree-ssa-pre.c (phi_translate_1): Push and Pop SEEN set.
699
700 2009-12-09 Nathan Froyd <froydnj@codesourcery.com>
701
702 * config/rs6000/vector.md (absv2sf2, negv2sf2, addv2sf3, subv2sf3,
703 mulv2sf3, divv2sf3): New expanders.
704 * config/rs6000/spe.md (spe_evabs, spe_evand, spe_evaddw, spe_evsubfw,
705 spe_evdivws): Rename to use standard GCC names.
706 * config/rs6000/paired.md (negv2sf, absv2sf2, addv2sf3, subv2sf3,
707 mulv2sf3, divv2sf3): Rename to avoid conflict with the new expanders.
708 * config/rs6000/rs6000.c (bdesc_2arg, bdesc_1arg): Use new CODE_FOR_
709 names for renamed patterns.
710
711 2009-12-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
712
713 * config/s390/s390.md ("copysign<mode>3"): Pattern removed.
714
715 2009-12-09 Jakub Jelinek <jakub@redhat.com>
716
717 * configure.ac: Compute ld_ver, ld_vers, ld_date, ld_vers_major,
718 ld_vers_minor and ld_vers_path always, not just when gcc_cv_ld_hidden
719 isn't cached.
720 * configure: Regenerated.
721
722 2009-12-08 Richard Henderson <rth@redhat.com>
723
724 * combine.c (setup_incoming_promotions): Fix sign-extend of
725 zero-extend case; tidy conditions.
726
727 2009-12-08 Michael Matz <matz@suse.de>
728
729 PR middle-end/38474
730 * function.c (free_temp_slots): Only walk the temp slot
731 addresses and combine slots if we actually changes something.
732 (pop_temp_slots): Ditto.
733
734 2009-12-08 Olga Golovanevsky <olga@il.ibm.com>
735
736 PR middle-end/41843
737 * ipa-struct-reorg.c (compare_fields): New function.
738 (find_field_in_struct_1): Use compare_fields function.
739 (is_equal_types): Likewise.
740
741 2009-12-07 DJ Delorie <dj@redhat.com>
742
743 PR c/42312
744 * config/mep/mep.c (mep_expand_prologue): Set
745 really_need_stack_frame after frame_size is set.
746
747 2009-12-07 Richard Henderson <rth@redhat.com>
748
749 PR rtl-opt/42269
750 * combine.c (setup_incoming_promotions): Improve the conditions
751 under which we respect the promotions applied.
752
753 2009-12-07 Eric Botcazou <ebotcazou@adacore.com>
754
755 * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch.
756 * config/sparc/linux64.h (ASM_SPEC): Likewise.
757
758 2009-12-07 Richard Henderson <rth@redhat.com>
759
760 PR debug/42299
761 PR debug/42166
762 * tree-ssa.c (insert_debug_temp_for_var_def): Skip propagation
763 for ssa names already registered for update.
764
765 2009-12-07 Jakub Jelinek <jakub@redhat.com>
766
767 PR debug/42244
768 * ddg.c (add_inter_loop_mem_dep): Use ANTI_DEP if from or to
769 is a DEBUG_INSN.
770
771 2009-12-07 Sebastian Pop <sebastian.pop@amd.com>
772
773 * config/i386/driver-i386.c (host_detect_local_cpu): Add -mlwp to the
774 options when bit_LWP is set.
775
776 2009-12-07 Sebastian Pop <sebastian.pop@amd.com>
777
778 * config/i386/cpuid.h (bit_ABM): New.
779 * config/i386/driver-i386.c (host_detect_local_cpu): Add -mabm to the
780 options when bit_ABM is set.
781
782 2009-12-07 Jakub Jelinek <jakub@redhat.com>
783
784 * config/i386/i386.c (bdesc_special_args): Move __builtin_clzs from
785 this array ...
786 (bdesc_args): ... here.
787 * config.gcc (i[34567]86-*-*): Include abmintrin.h.
788 (x86_64-*-*): Likewise.
789
790 2009-12-07 Sebastian Pop <sebastian.pop@amd.com>
791
792 * config.gcc (i[34567]86-*-*, x86_64-*-*): Add popcntintrin.h.
793 * config/i386/abmintrin.h (_mm_popcnt_u32, _mm_popcnt_u64): Moved...
794 * config/i386/i386-c.c (__POPCNT__): Defined.
795 * config/i386/popcntintrin.h: ...here. New file.
796 * config/i386/smmintrin.h (_mm_popcnt_u32, _mm_popcnt_u64): Moved...
797 Include popcntintrin.h.
798 * config/i386/x86intrin.h: Include popcntintrin.h when __POPCNT__
799 is defined.
800
801 2009-12-07 Sebastian Pop <sebastian.pop@amd.com>
802
803 * config/i386/i386-protos.h (ix86_expand_fma4_multiple_memory):
804 Removed.
805 * config/i386/i386.c (ix86_expand_fma4_multiple_memory): Removed.
806 * config/i386/sse.md: Remove all XOP splitters.
807 Allow the second and fourth operands of XOP multiply-add insns
808 to be nonimmediate.
809
810 2009-12-07 Sebastian Pop <sebastian.pop@amd.com>
811
812 * config/i386/sse.md: Remove all FMA4 splitters.
813 Allow the second operand of FMA4 insns to be a nonimmediate.
814 Fix comments punctuation.
815
816 2009-12-07 Julian Brown <julian@codesourcery.com>
817
818 * config/arm/constraints.md (Ps, Pt): New constraint letters.
819 * config/arm/thumb2.md (*thumb2_addsi_short): Tighten constraints.
820
821 2009-12-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
822
823 PR other/40302
824 * configure.ac (HAVE_mpc): Don't define.
825 * config.in, configure: Regenerate.
826
827 PR other/40302
828 * builtins.c: Remove HAVE_mpc* checks throughout.
829 * fold-const.c: Likewise.
830 * real.h: Likewise.
831 * toplev.c: Likewise.
832
833 2009-12-07 Edmar Wienskoski <edmar@freescale.com>
834
835 * config.gcc (cpu_is_64bit): Add new core e500mc64.
836 (powerpc*-*-*): Add new core e500mc64.
837 * config/rs6000/e500mc64.md: New file.
838 * config/rs6000/rs6000.c (processor_costs): Add new costs for
839 e500mc64.
840 (rs6000_override_options): Add e500mc64 case to
841 processor_target_table. Altivec and Spe options not allowed with
842 e500mc64. Disable string instructions for e500mc64. Enable branch
843 targets alignment for both e500mc and e500mc64. Initialize
844 rs6000_cost for e500mc64.
845 (rs6000_emit_sISEL): New function.
846 (rs6000_emit_sCOND): Call rs6000_emit_sISEL for isel targets.
847 (rs6000_emit_int_cmove): Fix mode of 64 bit isel pattern
848 generation.
849 (rs6000_issue_rate): Set issue rate for e500mc64.
850 (rs6000_rtx_costs): Set more accurate cost for mfcr instruction
851 on architectures with isel.
852 * config/rs6000/rs6000-protos.h (rs6000_emit_sISEL): Declare.
853 * config/rs6000/rs6000.h (processor_type): Add
854 PROCESSOR_PPCE500MC64.
855 (ASM_CPU_SPEC): Add e500mc64.
856 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc64.
857 Include e500mc64.md.
858 (abssi2_isel): Expand pattern to handle DImode.
859 (nabs<mode>2_isel): New pattern.
860 (absdi2): Change pattern to handle 64 bit isel targets.
861 (absdi2_internal): Exclude ISEL targets.
862 (nabsdi2): Exclude ISEL targets.
863 * doc/invoke.texi: Add e500mc64 to list of cpus.
864
865 2009-12-07 Uros Bizjak <ubizjak@gmail.com>
866
867 * config/i386/i386.md (any_or): New code iterator.
868 (any_logic): Rename from plogic code iterator.
869 (logicprefix): Rename from plogicprefix code attribute.
870 (<code><mode>3): Macroize expander from {ior,xor}<mode>3 using
871 any_or code iterator.
872 (*<code><mode>_1): Macroize insn from *{ior,xor}<mode>_1 using
873 any_or code iterator.
874 (*<code><mode>_2): Ditto from *{ior,xor}<mode>_2.
875 (*<code><mode>_3): Ditto from *{ior,xor}<mode>_3.
876 (ior and xor splitters): Ditto.
877 * config/i386/mmx.md: Updated for rename.
878 * config/i386/sse.md: Ditto.
879
880 2009-12-07 Uros Bizjak <ubizjak@gmail.com>
881
882 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
883 Remove quotes around condition logic code.
884
885 2009-12-06 Richard Henderson <rth@redhat.com>
886
887 PR debug/42234
888 * tree-ssa-dom.c (degenerate_phi_result): Check for NULL phi
889 argument earlier.
890
891 2009-12-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
892
893 * doc/install.texi: Document MPC is required.
894
895 2009-12-06 Uros Bizjak <ubizjak@gmail.com>
896
897 * config/i386/i386.md (g): Add HImode and QImode.
898 (general_szext_operand): New mode attribute.
899 (*test<mode>_1): Macroize insn from *test{qi,hi,si}_1 using
900 SWI124 mode iterator.
901 (and<mode>3): Macroize expander from and{qi,hi,si,di}3 using
902 SWIM mode iterator.
903 (*and<mode>_2): Macroize insn from *and{qi,hi,si}_2 using
904 SWI124 mode iterator.
905 (ior<mode>3): Macroize expander from ior{qi,hi,si,di}3 using
906 SWIM mode iterator.
907 (*ior<mode>_1): Macroize insn from *ior{hi,si,di}_1 using
908 SWI248 mode iterator.
909 (*ior<mode>_2): Macroize insn from *ior{qi,hi,si,di}_2 using
910 SWI mode iterator.
911 (*ior<mode>_3): Macroize insn from *ior{qi,hi,si,di}_3 using
912 SWI mode iterator.
913 (xor<mode>3): Macroize expander from xor{qi,hi,si,di}3 using
914 SWIM mode iterator.
915 (*xor<mode>_1): Macroize insn from *xor{hi,si,di}_1 using
916 SWI248 mode iterator.
917 (*xor<mode>_2): Macroize insn from *xor{qi,hi,si,di}_2 using
918 SWI mode iterator.
919 (*xor<mode>_3): Macroize insn from *xor{qi,hi,si,di}_3 using
920 SWI mode iterator.
921
922 2009-12-05 Sebastian Pop <sebastian.pop@amd.com>
923
924 * config/i386/i386.c (TARGET_DEFAULT_TARGET_FLAGS): Add
925 MASK_FUSED_MADD.
926 * config/i386/i386.h (CC1_CPU_SPEC_1): Remove
927 "'-mfused-madd' was removed".
928 * config/i386/i386.opt (mfused-madd): New.
929 * config/i386/sse.md: Add TARGET_FUSED_MADD to FMA4 insns.
930 * doc/invoke.texi (-mfused-madd, -mno-fused-madd): Document.
931
932 2009-12-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
933
934 * pa64-hpux.h (LIB_SPEC): Handle -rdynamic.
935 * pa-hpux10.h (LIB_SPEC): Likewise.
936 * pa-hpux11.h (LIB_SPEC): Likewise.
937
938 PR ada/41912
939 * pa/linux-unwind.h (pa32_fallback_frame_state): Set fs->signal_frame
940 for signal frames.
941 * pa/hpux-unwind.h (pa32_fallback_frame_state): Likewise.
942
943 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
944
945 * configure: Regenerate.
946
947 2009-12-05 Richard Earnshaw <rearnsha@arm.com>
948
949 * arm/thumb2.md (thumb2_mulsi_short_compare0): Use a low-register
950 for the scratch.
951
952 2009-12-04 David Daney <ddaney@caviumnetworks.com>
953
954 PR rtl-optimization/42164
955 * combine.c (combine_simplify_rtx): Handle truncation of integer
956 constants.
957
958 2009-12-04 Richard Guenther <rguenther@suse.de>
959
960 * lto-streamer-out.c (pack_ts_decl_common_value_fields):
961 Revert previous change.
962 (lto_output_ts_decl_common_tree_pointers): Stream DECL_VALUE_EXPR.
963 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
964 Likewise.
965
966 2009-12-04 Richard Guenther <rguenther@suse.de>
967
968 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
969 BUILT_IN_MALLOC.
970 (call_may_clobber_ref_p_1): Likewise.
971
972 2009-12-04 Matthias Klose <doko@ubuntu.com>
973 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
974
975 PR target/40134
976 * config.gcc (hppa*-*-linux*): Use config/t-slibgcc-libgcc.
977 * config/pa/pa-linux.h (LIB_SPEC): Remove.
978
979 2009-12-03 Sebastian Pop <sebastian.pop@amd.com>
980 Richard Henderson <rth@redhat.com>
981
982 * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Remove.
983 * config/i386/i386.c (ix86_fma4_valid_op_p): Remove.
984 * config/i386/i386.md: Do not use ix86_fma4_valid_op_p.
985 * config/i386/sse.md (fma4_*): Remove alternative with operand 1
986 matching a memory access. Do not use ix86_fma4_valid_op_p.
987 (xop_*): Same.
988 Do not use ix86_fma4_valid_op_p in FMA4 and XOP splitters.
989
990 2009-12-03 Richard Henderson <rth@redhat.com>
991
992 * config/i386/i386.c (ix86_fixup_binary_operands): For FMA4, force
993 all operands into registers.
994
995 2009-12-03 Sebastian Pop <sebastian.pop@amd.com>
996
997 * config/i386/i386.c (ix86_expand_fma4_multiple_memory): Remove unused
998 parameter.
999 * config/i386/i386-protos.h (ix86_expand_fma4_multiple_memory): Same.
1000 * config/i386/sse.md: Same.
1001
1002 2009-12-03 Richard Guenther <rguenther@suse.de>
1003
1004 * cgraphunit.c (assemble_thunk): Use DECL_ASSEMBLER_NAME
1005 instead of DECL_NAME for the entry point.
1006
1007 2009-12-03 Richard Earnshaw <rearnsha@arm.com>
1008
1009 * arm/linux-atomic.c (SYNC_LOCK_RELEASE): Place memory barrier
1010 before the lock release.
1011
1012 2009-12-03 Michael Matz <matz@suse.de>
1013
1014 PR middle-end/38474
1015 * cfgexpand.c (struct stack_var): Add conflicts member.
1016 (stack_vars_conflict, stack_vars_conflict_alloc,
1017 n_stack_vars_conflict): Remove.
1018 (add_stack_var): Initialize conflicts member.
1019 (triangular_index, resize_stack_vars_conflict): Remove.
1020 (add_stack_var_conflict, stack_var_conflict_p): Rewrite in
1021 terms of new member.
1022 (union_stack_vars): Only run over the conflicts.
1023 (partition_stack_vars): Remove special case.
1024 (expand_used_vars_for_block): Don't call resize_stack_vars_conflict,
1025 don't create self-conflicts.
1026 (account_used_vars_for_block): Don't create any conflicts.
1027 (fini_vars_expansion): Free bitmaps, don't free or clear removed
1028 globals.
1029
1030 2009-12-03 Bernd Schmidt <bernd.schmidt@analog.com>
1031
1032 PR middle-end/42202
1033 * regrename.c (live_in_chains): New variable.
1034 (verify_reg_tracked): New static function.
1035 (scan_rtx_reg): Update live_in_chains.
1036 (scan_rtx): Only promote sets in COND_EXEC to OP_INOUT if
1037 we're already tracking the reg.
1038 (build_def_use): Likewise. Initialize live_in_chains.
1039
1040 2009-12-03 Ken Werner <ken.werner@de.ibm.com>
1041
1042 * config/spu/spu-elf.h (STARTFILE_SPEC): Add support for gprof
1043 startup files.
1044 * config/spu/spu-protos.h (spu_function_profiler): Add prototype.
1045 * config/spu/spu.c (spu_function_profiler): New function.
1046 * config/spu/spu.h (FUNCTION_PROFILER): Invoke
1047 spu_function_profiler.
1048 (NO_PROFILE_COUNTERS): Define.
1049 (PROFILE_BEFORE_PROLOGUE): Likewise.
1050
1051 2009-12-03 Dave Korn <dave.korn.cygwin@gmail.com>
1052
1053 * ggc-page.c (struct free_object): Pull definition out ...
1054 (struct globals): .. from here.
1055
1056 2009-12-02 Richard Guenther <rguenther@suse.de>
1057
1058 * fold-const.c (div_if_zero_remainder): Honor that sizetypes
1059 are sign-extending. Simplify.
1060
1061 2009-12-02 Richard Henderson <rth@redhat.com>
1062
1063 PR tree-opt/42215
1064 * tree-loop-distribution.c (build_size_arg_loc): Tidy.
1065 (generate_memset_zero): Convert to sizetype properly. Tidy.
1066
1067 2009-12-02 Richard Guenther <rguenther@suse.de>
1068
1069 * lto-streamer-out.c (pack_ts_decl_common_value_fields):
1070 Do not pretend we have value exprs.
1071
1072 2009-12-02 Richard Guenther <rguenther@suse.de>
1073
1074 PR middle-end/41491
1075 * fold-const.c (try_move_mult_to_index): Do not leak
1076 domain types into the IL.
1077
1078 2009-12-02 Richard Guenther <rguenther@suse.de>
1079
1080 PR middle-end/42088
1081 * tree.c (free_lang_data): Disable if not using LTO.
1082
1083 2009-12-02 Richard Guenther <rguenther@suse.de>
1084
1085 PR middle-end/42229
1086 * cfgloopmanip.c (remove_path): Avoid cancelling loops twice.
1087
1088 2009-12-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1089
1090 PR middle-end/42224
1091 * tree.h (int_or_pointer_precision): Remove.
1092 * tree.c (int_or_pointer_precision): Remove.
1093 (integer_pow2p): Use TYPE_PRECISION instead.
1094 (tree_log2): Likewise.
1095 (tree_floor_log2): Likewise.
1096 (signed_or_unsigned_type_for): Likewise.
1097 * fold-const.c (fit_double_type): Likewise.
1098 * varasm.c (initializer_constant_valid_p): Likewise.
1099
1100 2009-12-02 Ira Rosen <irar@il.ibm.com>
1101
1102 * doc/invoke.texi (-fdump-tree-slp): Document.
1103 (-ftree-vectorizer-verbose): Update.
1104 (-ftree-slp-vectorize): Document.
1105
1106 2009-12-02 Nick Clifton <nickc@redhat.com>
1107
1108 * config/rx/rx.c (rx_conditional_register_usage): Do not warn if
1109 no fixed registers are available for interrupt handlers. Do not
1110 fix normal registers.
1111 (MUST_SAVE_ACC_REGISTER): New macro.
1112 (rx_get_stack_layout): Create a stack frame for fast interrupt
1113 handlers, if necessary. Push extra registers if needed in order
1114 to save the accumulator.
1115 (rx_expand_prologue): Create a stack frame for fast interrupt
1116 handlers, if necessary.
1117 (rx_expand_builtin_mvfc): Handle the case where there is no target.
1118
1119 2009-12-01 Sebastian Pop <sebastian.pop@amd.com>
1120
1121 * config/i386/abmintrin.h (__lzcnt16): New.
1122 (__lzcnt): New.
1123 (__lzcnt64): New.
1124 * config/i386/i386-builtin-types.def (UINT16_FTYPE_UINT16): New.
1125 * config/i386/i386.c (IX86_BUILTIN_CLZS): New.
1126 (bdesc_special_args): Add __builtin_clzs.
1127 (ix86_expand_args_builtin): Handle UINT16_FTYPE_UINT16.
1128
1129 2009-12-01 Sebastian Pop <sebastian.pop@amd.com>
1130
1131 * config/i386/abmintrin.h (_mm_popcnt_u32): New.
1132 (_mm_popcnt_u64): New.
1133
1134 2009-12-01 Sebastian Pop <sebastian.pop@amd.com>
1135
1136 * config/i386/abmintrin.h: New.
1137 * config/i386/i386-c.c (ix86_target_macros_internal): Defined __ABM__.
1138 * config/i386/x86intrin.h: Include abmintrin.h when __ABM__ is defined.
1139
1140 2009-12-01 Uros Bizjak <ubizjak@gmail.com>
1141
1142 * config/i386/i386.md (SWI124): Rename from CRC32MODE.
1143 (crc32modesuffix): Remove.
1144 (crc32modeconstraint): Ditto.
1145 (sse4_2_crc32<mode>): Update for renamed mode iterator. Use
1146 imodesuffix instead of crc32modesuffix and <r>m instead of
1147 crc32modeconstraint.
1148
1149 2009-12-01 Jakub Jelinek <jakub@redhat.com>
1150
1151 PR c++/42234
1152 * tree-cfgcleanup.c (cleanup_omp_return): Don't ICE if control_bb
1153 contains no statements.
1154
1155 2009-12-01 Grigori Fursin <grigori.fursin@inria.fr>
1156 Joern Rennecke <amylaar@spamcop.net>
1157
1158 * cgraphunit.c (plugin.h): Include.
1159 (ipa_passes): Invoke PLUGIN_ALL_IPA_PASSES_START /
1160 PLUGIN_ALL_IPA_PASSES_END at start / end of processing.
1161 * gcc-plugin.h (highlev-plugin-common.h, hashtab.h): Include.
1162 (enum plugin_event): Define by including plugin.def.
1163 Last enumerator is now called PLUGIN_EVENT_FIRST_DYNAMIC.
1164 (plugin_event_name): Change type to const char **.
1165 (get_event_last, get_named_event_id, unregister_callback): Declare.
1166 (register_callback): Change type of event argument to int.
1167 (highlev-plugin-common.h): New file.
1168 * Makefile.in (GCC_PLUGIN_H): Add highlev-plugin-common.h and
1169 $(HASHTAB_H)
1170 (tree-optimize.o passes.o): Depend on $(PLUGIN_H).
1171 (PLUGIN_HEADERS): Add opts.h, $(PARAMS_H) and plugin.def.
1172 (s-header-vars): New rule.
1173 (install-plugin): Depend on s-header-vars. Install b-header-vars.
1174 * params.c (get_num_compiler_params): New function.
1175 * params.h (get_num_compiler_params): Declare.
1176 * passes.c (plugin.h): Include.
1177 (make_pass_instance): Invoke PLUGIN_NEW_PASS.
1178 (do_per_function_toporder, pass_init_dump_file): No longer static.
1179 (pass_fini_dump_file): Likewise.
1180 (execute_one_pass): Likewise. Invoke PLUGIN_OVERRIDE_GATE and
1181 PLUGIN_PASS_EXECUTION.
1182 (execute_ipa_pass_list): Invoke PLUGIN_EARLY_GIMPLE_PASSES_START and
1183 PLUGIN_EARLY_GIMPLE_PASSES_END.
1184 * plugin.c (plugin_event_name_init): New array, defined by
1185 including plugin.def.
1186 (FMT_FOR_PLUGIN_EVENT): Update.
1187 (plugin_event_name): Change type to const char ** and initialize
1188 to plugin_event_name_init.
1189 (event_tab, event_last, event_horizon): New variable.
1190 (get_event_last): New function.
1191 (plugin_callbacks_init): New array.
1192 (plugin_callbacks: Change type to struct callback_info **.
1193 Initialize to plugin_callbacks_init.
1194 (htab_event_eq, get_named_event_id, unregister_callback): New function.
1195 (invoke_plugin_va_callbacks): Likewise.
1196 (register_callback): Change type of event argument to int.
1197 Handle new events. Allow dynamic events.
1198 (invoke_plugin_callbacks): Likewise. Return success status.
1199 (plugins_active_p): Allow dynamic callbacks.
1200 * plugin.def: New file.
1201 * plugin.h (invoke_plugin_callbacks): Update prototype.
1202 (invoke_plugin_va_callbacks): Declare.
1203 * tree-optimize.c (plugin.h): Include.
1204 (tree_rest_of_compilation): Invoke PLUGIN_ALL_PASSES_START and
1205 PLUGIN_ALL_PASSES_END.
1206 * tree-pass.h (execute_one_pass, pass_init_dump_file): Declare.
1207 (pass_fini_dump_file, do_per_function_toporder): Likewise.
1208 * doc/plugin.texi: Document new event types.
1209
1210 2009-12-01 Martin Jambor <mjambor@suse.cz>
1211
1212 PR tree-optimization/42237
1213 * tree-sra.c (sra_ipa_modify_assign): Split gimple_reg_type assignments
1214 in between references into two.
1215
1216 2009-12-01 Richard Guenther <rguenther@suse.de>
1217
1218 * tree-inline.c (copy_tree_body_r): Do not set TREE_BLOCK
1219 to the block of the call when remapping a type.
1220
1221 2009-12-01 Martin Jambor <mjambor@suse.cz>
1222
1223 * cgraph.h (struct cgraph_edge): Reorder fields. Make loop_nest
1224 unsigned short int.
1225 * ipa-prop.h (struct ipa_param_call_note): Likewise.
1226 * ipa-prop.c (ipa_note_param_call): Initialize note->loop_nest.
1227
1228 2009-12-01 Richard Guenther <rguenther@suse.de>
1229
1230 * final.c (rest_of_clean_state): If -fcompare-debug is
1231 given dump final insns without UIDs.
1232 * tree-ssa-live.c (remove_unused_scope_block_p): Remove
1233 after_inlining checks.
1234
1235 2009-11-30 Chao-ying Fu <fu@mips.com>
1236
1237 * config/mips/mips-dsp.md (mips_lhx_<mode>): Use sign_extend.
1238
1239 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
1240
1241 * configure.ac (USE_CYGWIN_LIBSTDCXX_WRAPPERS): Define to reflect
1242 status of AC_CHECK_FUNC for Cygwin DLL libstdc++ support wrappers.
1243 * configure: Regenerate.
1244 * config.in: Regenerate.
1245
1246 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Define list of --wrap
1247 options for Cygwin DLL libstdc++ support wrappers.
1248 (CXX_WRAP_SPEC_OPT): Define spec to use wrappers or not by default
1249 according to defined value of USE_CYGWIN_LIBSTDCXX_WRAPPERS.
1250 (CXX_WRAP_SPEC): Define entire wrapper spec in or out according to
1251 whether USE_CYGWIN_LIBSTDCXX_WRAPPERS is even defined or not.
1252 (LINK_SPEC): Include CXX_WRAP_SPEC.
1253 * gcc/config/i386/winnt.c (wrapper_strcmp): New qsort helper function.
1254 (i386_find_on_wrapper_list): Check if a function is found on the list
1255 of libstdc++ wrapper options.
1256 (i386_pe_file_end): If we are importing a wrapped function, also emit
1257 an external declaration for the real version.
1258 * config/i386/cygming.opt (muse-libstdc-wrappers): New option for
1259 Cygwin targets. Update copyright year.
1260
1261 2009-11-30 Steve Ellcey <sje@cup.hp.com>
1262 Jakub Jelinek <jakub@redhat.com>
1263
1264 * function.c (instantiate_virtual_regs_in_insn): Copy to new reg
1265 before forcing mode.
1266
1267 2009-11-30 Anatoly Sokolov <aesok@post.ru>
1268
1269 * config/sh/sh.c (sh_promote_prototypes): Make static.
1270 (sh_function_value, sh_libcall_value, sh_function_value_regno_p): New
1271 functions.
1272 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
1273 * config/sh/sh.h (FUNCTION_VALUE_REGNO_P): Redefine, use
1274 sh_function_value_regno_p.
1275 (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
1276 * config/sh/sh-protos.h (sh_function_value_regno_p): Declare.
1277 (sh_promote_prototypes) : Remove.
1278
1279 2009-11-30 Julian Brown <julian@codesourcery.com>
1280
1281 * config/arm/arm.h (PREFERRED_RELOAD_CLASS): Don't restrict Thumb-2
1282 reloads to LO_REGS.
1283
1284 2009-11-30 Richard Henderson <rth@redhat.com>
1285
1286 * config/i386/i386.c (ix86_vec_interleave_v2df_operator_ok): New.
1287 (bdesc_special_args): Update insn codes.
1288 (avx_vpermilp_parallel): Correct range check.
1289 (ix86_rtx_costs): Handle vector permutation rtx codes.
1290 (struct expand_vec_perm_d): Move earlier.
1291 (get_mode_wider_vector): New.
1292 (expand_vec_perm_broadcast_1): New.
1293 (ix86_expand_vector_init_duplicate): Use it. Tidy AVX modes.
1294 (expand_vec_perm_broadcast): New.
1295 (ix86_expand_vec_perm_builtin_1): Use it.
1296 * config/i386/i386-protos.h: Update.
1297 * config/i386/predicates.md (avx_vbroadcast_operand): New.
1298 * config/i386/sse.md (AVX256MODE24P): New.
1299 (ssescalarmodesuffix2s): New.
1300 (avxhalfvecmode, avxscalarmode): Fill out to all modes.
1301 (avxmodesuffixf2c): Add V8SI, V4DI.
1302 (vec_dupv4sf): New expander.
1303 (*vec_dupv4sf_avx): Add vbroadcastss alternative.
1304 (*vec_set<mode>_0_avx, **vec_set<mode>_0_sse4_1): Macro-ize for
1305 V4SF and V4SI. Move C alternatives to front. Add insertps and
1306 pinsrd alternatives.
1307 (*vec_set<mode>_0_sse2): Split out from ...
1308 (vec_set<mode>_0): Macro-ize for V4SF and V4SI.
1309 (vec_interleave_highv2df, vec_interleave_lowv2df): Require register
1310 destination; use ix86_vec_interleave_v2df_operator_ok, instead of
1311 ix86_fixup_binary_operands.
1312 (*avx_interleave_highv2df, avx_interleave_lowv2df): Add movddup.
1313 (*sse3_interleave_highv2df, sse3_interleave_lowv2df): New.
1314 (*avx_movddup, *sse3_movddup): Remove. New splitter from
1315 vec_select form to vec_duplicate form.
1316 (*sse2_interleave_highv2df, sse2_interleave_lowv2df): Use
1317 ix86_vec_interleave_v2df_operator_ok.
1318 (avx_movddup256, avx_unpcklpd256): Change to expanders, merge into ...
1319 (*avx_unpcklpd256): ... here.
1320 (*vec_dupv4si_avx): New.
1321 (*vec_dupv2di_avx): Add movddup alternative.
1322 (*vec_dupv2di_sse3): New.
1323 (vec_dup<AVX256MODE24P>): Replace avx_vbroadcasts<AVXMODEF4P> and
1324 avx_vbroadcastss256; represent with vec_duplicate instead of
1325 nested vec_concat operations.
1326 (avx_vbroadcastf128_<mode>): Rename from
1327 avx_vbroadcastf128_p<avxmodesuffixf2c>256.
1328 (*avx_vperm_broadcast_v4sf): New.
1329 (*avx_vperm_broadcast_<AVX256MODEF2P>): New.
1330
1331 2009-11-30 Martin Jambor <mjambor@suse.cz>
1332
1333 PR middle-end/42196
1334 * tree-sra.c (struct access): New field grp_different_types.
1335 (dump_access): Dump grp_different_types.
1336 (compare_access_positions): Prefer scalars and vectors over other
1337 scalar types.
1338 (sort_and_splice_var_accesses): Set grp_different_types if appropriate.
1339 (sra_modify_expr): Use the original also when dealing with a complex
1340 or vector group accessed as multiple types.
1341
1342 2009-11-30 Richard Henderson <rth@redhat.com>
1343
1344 * config/i386/i386.c (avx_vperm2f128_parallel): New.
1345 * config/i386/i386-protos.h: Declare it.
1346 * config/i386/predicates.md (avx_vperm2f128_v8sf_operand,
1347 avx_vperm2f128_v8si_operand, avx_vperm2f128_v4df_operand): New.
1348 * config/i386/sse.md (avx_vperm2f128<mode>3): Change to expander.
1349 (*avx_vperm2f128<mode>_full): Renamed from avx_vperm2f128<mode>3.
1350 (*avx_vperm2f128<mode>_nozero): New.
1351
1352 2009-11-30 Richard Henderson <rth@redhat.com>
1353
1354 * config/i386/i386-builtin-types.def (V4DF_FTYPE_V4DF_V4DF_V4DI): New.
1355 (V8SF_FTYPE_V8SF_V8SF_V8SI): New.
1356 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Support
1357 V4DF and V8SF for AVX; relax constraint on V4SF to SSE1 from SSE2.
1358 (IX86_BUILTIN_VEC_PERM_V4DF, IX86_BUILTIN_VEC_PERM_V8SF): New.
1359 (bdesc_args): Add them.
1360 (ix86_expand_builtin): Expand them.
1361 (expand_vec_perm_pshufb2): Only operate on 16-byte vectors.
1362
1363 2009-11-30 Martin Jambor <mjambor@suse.cz>
1364
1365 PR middle-end/42206
1366 * ipa-prop.c (ipa_write_node_info): Initialize note_count to zero.
1367
1368 2009-11-30 Jakub Jelinek <jakub@redhat.com>
1369
1370 * ipa-reference.c (propagate): Only dump bitmaps if computed.
1371
1372 2009-11-30 Olga Golovanevsky <olga@il.ibm.com>
1373
1374 PR middle-end/39806
1375 * ipa-struct-reorg.c (new_var_eq): Use DECL_UID to hash new variables.
1376 (new_var_hash): Likewise.
1377 (is_in_new_vars_htab): Likewise.
1378 (add_to_new_vars_htab): Likewise.
1379
1380 2009-11-30 Ira Rosen <irar@il.ibm.com>
1381
1382 * tree-vect-stmts.c (vectorizable_assignment): Support
1383 multiple types.
1384
1385 2009-11-30 Richard Guenther <rguenther@suse.de>
1386
1387 * doc/contrib.texi (Contributors): Add myself.
1388
1389 2009-11-30 Richard Guenther <rguenther@suse.de>
1390
1391 * tree.c (free_lang_data): Do not set debug_info_level to
1392 none if terse.
1393
1394 2009-11-30 Richard Guenther <rguenther@suse.de>
1395
1396 PR middle-end/42119
1397 PR fortran/38530
1398 * expr.c (expand_expr_addr_expr_1): Properly expand the initializer
1399 of CONST_DECLs.
1400
1401 2009-11-30 Richard Guenther <rguenther@suse.de>
1402
1403 * tree-into-ssa.c (insert_phi_nodes): Add PHI nodes in
1404 variable UID order.
1405
1406 2009-11-30 Richard Guenther <rguenther@suse.de>
1407
1408 * tree-dump.c (dump_option_value_in): Add TDF_NOUID.
1409 * tree-pass.h (TDF_NOUID): Likewise.
1410 * print-rtl.c: Include tree-pass.h.
1411 (print_mem_expr): Pass dump_flags.
1412 (print_rtx): Likewise.
1413 * print-tree.c: Include tree-pass.h.
1414 (print_node_brief): Handle TDF_NOUID.
1415 (print_node): Likewise.
1416 * tree-pretty-print.c (dump_decl_name): Likewise.
1417 (dump_generic_node): Likewise.
1418 * Makefile.in (print-rtl.o, print-tree.o): Add $(TREE_PASS_H)
1419 dependency.
1420
1421 2009-11-30 Nick Clifton <nickc@redhat.com>
1422
1423 * config/stormy16/stormy16-lib2-count-leading-zeros.c: Delete.
1424 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Remove
1425 stormy16-lib2-count-leading-zeros.c.
1426 * config/stormy16/stormy16-lib2.c (__clzhi2): Move code from
1427 __stormy16_count_leading_zeros() into this function.
1428 (__ctzhi2): Use __builtin_clz.
1429 (__ffshi2): Likewise.
1430
1431 2009-11-30 Eric Botcazou <ebotcazou@adacore.com>
1432
1433 * config/sparc/sparc.c (DF_MODES): Simplify.
1434 (TF_ONLY_MODES, OF_ONLY_MODES): Delete.
1435 (TF_MODES, OF_MODES): Adjust for above change.
1436 (TF_MODES_NO_S, OF_MODES_NO_S): Likewise.
1437 * config/sparc/sparc.h (REGNO_REG_CLASS): Move around.
1438
1439 2009-11-30 Paolo Bonzini <bonzini@gnu.org>
1440
1441 PR rtl-optimization/41812
1442 * fwprop.c (local_md, local_lr): New globals.
1443 (process_defs, process_uses): Remove local_md argument. Never
1444 consider dead pseudos to have singleton def-use chains.
1445 (single_def_use_enter_block): Perform LR simulation.
1446 (build_single_def_use_links): Remove local_md local variable.
1447 Add DF_NOTE. Allocate local_lr.
1448 (fwprop_done): Do not remove DF_CHAIN, we do not use it anymore.
1449 * df-problems.c (df_md_scratch): New.
1450 (df_md_alloc, df_md_free): Allocate/free it.
1451 (df_md_local_compute): Only include live registers in init.
1452 (df_md_transfer_function): Prune the in-set computed by
1453 the confluence function, and the gen-set too.
1454
1455 2009-11-30 Hans-Peter Nilsson <hp@axis.com>
1456
1457 PR rtl-optimization/40086
1458 * reorg.c (relax_delay_slots): When looking for redundant insn at
1459 the branch target, use next_real_insn, not next_active_insn.
1460
1461 2009-11-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1462
1463 * doc/install.texi: Update minimum MPC version to 0.8.
1464
1465 2009-09-09 Segher Boessenkool <segher@kernel.crashing.org>
1466
1467 * config/rs6000/rs6000.md (fnmaddsf4_powerpc_1): Remove
1468 HONOR_SIGNED_ZEROS final condition.
1469 (fnmsubsf4_powerpc_1): Same.
1470 (fnmadddf4_fpr_1): Same.
1471 (fnmsubdf4_fpr_1): Same.
1472
1473 2009-11-29 Ira Rosen <irar@il.ibm.com>
1474
1475 PR tree-optimization/42193
1476 * tree-vect-stmts.c (vectorizable_operation): Set vectorization factor
1477 to 1 in case of basic block SLP.
1478 (vectorizable_load): Likewise.
1479
1480 2009-11-28 Jan Hubicka <jh@suse.cz>
1481
1482 * cgraph.c (same_body_alias_1): Break out of
1483 (same_body_alias): ... here; remove comdat check; it is handled
1484 in cp already.
1485 (cgraph_add_thunk): New.
1486 (dump_cgraph_node): Dump aliases and thunks.
1487 * cgraph.h (cgraph_thunk_info): New structure.
1488 (struct cgraph_node): Add thunk info.
1489 (cgraph_add_thunk): New.
1490 * cgraphunit.c (cgraph_emit_thunks): Remove.
1491 (cgraph_finalize_compilation_unit): Do not call cgraph_emit_thunks.
1492 (assemble_thunk): New function.
1493 (cgraph_expand_function): Handle thunks.
1494 (thunk_adjust): New.
1495 (init_lowered_empty_function): New.
1496 * cp-objcp-common.h (LANG_HOOKS_CALLGRAPH_EMIT_ASSOCIATED_THUNKS):
1497 Remove.
1498 * lto-cgraph.c (lto_output_node): Stream thunk info.
1499 (input_node): Likewise.
1500 * langhooks.h (lang_hooks_for_callgraph): Remove emit_associated_thunks.
1501 * langhooks-def.h (LANG_HOOKS_CALLGRAPH_EMIT_ASSOCIATED_THUNKS): Remove.
1502 (LANG_HOOKS_CALLGRAPH_INITIALIZER): Update.
1503 * i386.c (x86_output_mi_thunk): Make output prettier.
1504
1505 2009-11-28 Richard Guenther <rguenther@suse.de>
1506
1507 PR tree-optimization/42183
1508 * tree-nrv.c (tree_nrv): Bail out if the RESULT_DECL has its
1509 address taken. Merge the addressable state of the NRV
1510 variable and the result instead of copying it.
1511
1512 2009-11-28 Jakub Jelinek <jakub@redhat.com>
1513
1514 * matrix-reorg.c (analyze_matrix_allocation_site): Remove unused
1515 malloc_fname variable.
1516 (check_allocation_function): Remove unused gsi and bb_level_0
1517 variables.
1518 (transform_access_sites): Remove unused d_type_size and d_type_size_k
1519 variables.
1520 * omega.c (resurrect_subs): Remove unused n variable.
1521 (omega_solve_geq): Remove unused neweqns variable.
1522 * lto-streamer-in.c (lto_read_tree): Remove unused end_marker variable.
1523 * tree-inline.c (declare_return_variable): Remove USE_P argument,
1524 return use instead of var.
1525 (remap_decl, remap_block): Remove unused fn variable.
1526 (expand_call_inline): Remove unused retvar variable, adjust
1527 declare_return_variable caller.
1528 (optimize_inline_calls): Remove unused prev_fn variable.
1529 * tree-vect-slp.c (vect_analyze_slp_instance): Remove unused ncopies
1530 variable.
1531 (vect_create_mask_and_perm): Remove unused group_size and dr_chain_size
1532 variables.
1533 * tree-ssa-loop-niter.c (split_to_var_and_offset): Handle MINUS_EXPR
1534 properly.
1535 * tree-vect-loop.c (vect_analyze_loop_form): Remove unused backedge
1536 variable.
1537 (vect_create_epilog_for_reduction): Remove unused bytesize variable.
1538 * omp-low.c (workshare_safe_to_combine_p): Remove par_entry_bb
1539 parameter. Remove unused par_stmt variable.
1540 (determine_parallel_type): Adjust workshare_safe_to_combine_p caller.
1541 (expand_omp_sections): Remove unused l1 variable.
1542 (lower_omp_for): Remove unused ilist variable.
1543 * tree-loop-distribution.c (mark_nodes_having_upstream_mem_writes):
1544 Remove unused has_upstream_mem_write_p variable.
1545 * recog.c (decode_asm_operands): Remove unused noperands variable.
1546 * tree-ssa-alias.c (refs_may_alias_p_1): Remove unused size1 and
1547 size2 variable.
1548 * libgcov.c (__gcov_merge_delta): Remove unused last variable.
1549 * tree-call-cdce.c (gen_conditions_for_pow_int_base): Remove unused
1550 base_nm variable.
1551 (gen_conditions_for_pow): Remove unused ec variable.
1552 * tree-ssa-sccvn.c (vn_reference_lookup_3): Remove unused size
1553 variable.
1554 * ipa-struct-reorg.c (program_redefines_malloc_p): Remove unused
1555 fndecl variable.
1556 * tree-ssa-sink.c (statement_sink_location): Remove unused code
1557 variable.
1558 * regmove.c (copy_src_to_dest): Remove unused insn_uid and move_uid
1559 variables.
1560 * tree-complex.c (create_one_component_var): Remove unused inner_type
1561 variable.
1562 * calls.c (emit_call_1): Don't GEN_INT (struct_value_size)
1563 unnecessarily when GEN_*CALL omits that argument.
1564 * regrename.c (regrename_optimize): Remove unused regs_seen variable.
1565 (build_def_use): Remove unused icode variable.
1566 * ipa-pure-const.c (check_call): Remove unused callee and avail
1567 variables.
1568 * tree-dfa.c (add_referenced_var): Remove unused v_ann variable.
1569 * tree-vect-patterns.c (vect_recog_pow_pattern): Remove unused type
1570 variable.
1571 (vect_pattern_recog): Remove unused stmt variable.
1572 * sel-sched-ir.c (make_regions_from_the_rest): Remove unused
1573 new_regions variable.
1574 * postreload.c (reload_cse_simplify_operands): Remove unused mode
1575 variable.
1576 * tree-parloops.c (create_call_for_reduction_1): Remove unused
1577 addr_type variable.
1578 (create_parallel_loop): Remove unused res variable.
1579 (gen_parallel_loop): Remove unused nloop variable.
1580 * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
1581 * value-prof.c (gimple_mod_subtract_transform,
1582 gimple_stringops_transform): Remove unused value variable.
1583 (gimple_stringops_values_to_profile): Remove unused fcode variable.
1584 * tree-vrp.c (register_new_assert_for): Remove unused found variable.
1585 (vrp_visit_switch_stmt): Remove unused n variable.
1586 * tree-vect-stmts.c (vectorizable_conversion): Remove unused expr
1587 variable.
1588 (vectorizable_operation): Remove unused shift_p variable.
1589 (vectorizable_store): Remove unused first_stmt_vinfo variable.
1590 * tree-ssa-operands.c (add_stmt_operand): Remove unused v_ann variable.
1591 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove unused bb
1592 variable.
1593 (vect_permute_store_chain): Remove unused scalar_dest variable.
1594 (vect_supportable_dr_alignment): Remove unused invariant_in_outerloop
1595 variable.
1596 * tree-ssa-threadupdate.c (thread_single_edge): Remove unused
1597 local_info variable.
1598 * tree-optimize.c (tree_rest_of_compilation): Remove unused node
1599 variable.
1600 * optabs.c (expand_binop): Remove unused equiv_value variable.
1601 (emit_libcall_block): Remove unused prev variable.
1602 (init_optabs): Remove unused int_mode variable.
1603 * tree-ssa-structalias.c (scc_visit): Remove unused have_ref_node
1604 variable.
1605 (do_structure_copy): Remove unused lhsbase and rhsbase variables.
1606 (find_func_aliases): Remove unused rhstype variable.
1607 (ipa_pta_execute): Remove unused varid variable.
1608
1609 2009-11-28 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
1610
1611 * config/avr/avr.h (ASM_OUTPUT_EXTERNAL): Add.
1612
1613 2009-11-28 David Binderman <dcb314@hotmail.com>
1614
1615 * ira-color.c (put_allocno_into_bucket): Remove set but not used
1616 local variable hard_regs_num.
1617 * ira-lives.c (process_single_reg_class_operands): Remove cover_class.
1618 * loop-unswitch.c (unswitch_loop): Remove zero_bitmap.
1619 * lower-subreg.c (decompose_multiword_subregs): Remove next.
1620
1621 2009-11-27 Martin Jambor <mjambor@suse.cz>
1622
1623 PR middle-end/42006
1624 * tree-sra.c (get_replaced_param_substitute): Call create_tmp_var
1625 instead of create_tmp_var. Set DECL_GIMPLE_REG_P to one manually
1626 for vector and complex types.
1627 (get_adjustment_for_base): Describe return value in the comment.
1628
1629 2009-11-27 Nick Clifton <nickc@redhat.com>
1630
1631 * longlong.h (count_leading_zeros): Define macro for stormy16 target.
1632 (COUNT_LEADING_ZEROS_0): Likewise.
1633 * config/stormy16/stormy16-lib2.c: Arrange for separate
1634 compilation of each function.
1635 (__ffshi2): New function.
1636 (__stormy16_count_leading_zeros): New function.
1637 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Use stub files to
1638 compile each function into its own object file.
1639 (stormy16-lib2-ashlsi3.c): New stub file.
1640 (stormy16-lib2-ashrsi3.c): New stub file.
1641 (stormy16-lib2-clzhi2.c): New stub file.
1642 (stormy16-lib2-count-leading-zeros.c): New stub file.
1643 (stormy16-lib2-ctzhi2.c): New stub file.
1644 (stormy16-lib2-divsi3.c): New stub file.
1645 (stormy16-lib2-ffshi2.c): New stub file.
1646 (stormy16-lib2-lshrsi3.c): New stub file.
1647 (stormy16-lib2-modsi3.c): New stub file.
1648 (stormy16-lib2-parityhi2.c): New stub file.
1649 (stormy16-lib2-popcounthi2.c): New stub file.
1650 (stormy16-lib2-udivmodsi4.c): New stub file.
1651 (stormy16-lib2-udivsi3.c): New stub file.
1652 (stormy16-lib2-umodsi3.c): New stub file.
1653
1654 2009-11-27 Richard Henderson <rth@redhat.com>
1655
1656 * config/i386/sse.md (vec_interleave_highv16qi,
1657 vec_interleave_lowv16qi, vec_interleave_highv8hi,
1658 vec_interleave_lowv8hi, vec_interleave_highv4si,
1659 vec_interleave_lowv4si, vec_interleave_highv2di,
1660 vec_interleave_lowv2di, vec_interleave_highv4sf,
1661 vec_interleave_lowv4sf, vec_interleave_highv2df,
1662 vec_interleave_lowv2df): Remove expanders.
1663 (sse_unpcklps, sse_unpckhps, sse2_unpckhpd_exp, sse2_unpcklpd_exp,
1664 sse2_punpckhqdq, sse2_punpcklqdq, sse2_punpckhbw, sse2_punpcklbw,
1665 sse2_punpckhwd, sse2_punpcklwd, sse2_punpckhdq, sse2_punpckldq):
1666 Rename to their proper vec_interleave equivalent. Update all users
1667 to the new name.
1668 * config/i386/i386.c, config/i386/i386.md: Update all users.
1669
1670 2009-11-27 Michael Matz <matz@suse.de>
1671
1672 PR rtl-optimization/42084
1673 * cfgexpand.c (maybe_cleanup_end_of_block): Add new parameter,
1674 use it to stop walking.
1675 (expand_gimple_cond): Adjust call to above.
1676
1677 2009-11-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1678
1679 PR target/41810
1680 * gthr-solaris.h (__gthread_mutex_destroy): Remove UNUSED.
1681 [SUPPORTS_WEAK && GTHREAD_USE_WEAK] (__gthread_active_p): Use
1682 __extension__ to allow cast from function pointer to object
1683 pointer in C++.
1684 * doc/install.texi (--enable-threads): Clarify use of Solaris threads.
1685
1686 2009-11-27 Steven Bosscher <steven@gcc.gnu.org>
1687
1688 * config/ia64/itanium1.md: Remove.
1689 * config/ia64/ia64.md: Do not include it.
1690 * config/ia64/ia64.c (ia64_handle_option): Remove "itanium",
1691 "itanium1", and "merced" from the processor alias table.
1692 (clocks, add_cycles): Remove global variables.
1693 (ia64_sched_reorder2): Don't set/use them.
1694 (ia64_dfa_new_cycle, ia64_h_i_d_extended, ia64_reorg): Likewise.
1695 (bundling): Likewise. Remove extra pass for MMMUL/MMSHF.
1696
1697 2009-11-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1698
1699 * config/s390/s390.c (last_scheduled_insn): New variable.
1700 (s390_fpload_toreg, s390_z10_prevent_earlyload_conflicts): New
1701 functions.
1702 (s390_sched_reorder, s390_sched_variable_issue): New functions.
1703 (TARGET_SCHED_VARIABLE_ISSUE, TARGET_SCHED_REORDER): Target hooks
1704 defined.
1705
1706 2009-11-27 Michael Matz <matz@suse.de>
1707
1708 PR c++/41906
1709 * tree-eh.c (lower_catch): Stop after expanding a catch-all.
1710
1711 2009-11-27 Richard Guenther <rguenther@suse.de>
1712
1713 * timevar.def (TV_LOOP_MOVE_INVARIANTS, TV_LOOP_UNSWITCH,
1714 TV_LOOP_UNROLL, TV_LOOP_DOLOOP): New timevars.
1715 * loop-init.c (pass_rtl_move_loop_invariants): Use
1716 TV_LOOP_MOVE_INVARIANTS.
1717 (pass_rtl_unswitch): Use TV_LOOP_UNSWITCH.
1718 (pass_rtl_unroll_and_peel): Use TV_LOOP_UNROLL.
1719 (pass_rtl_doloop): Use TV_LOOP_DOLOOP.
1720
1721 2009-11-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1722
1723 * emit-rtl.c (next_active_insn, prev_active_insn): Correct comment.
1724
1725 2009-11-27 Jakub Jelinek <jakub@redhat.com>
1726
1727 * config/i386/i386.c (ix86_emit_restore_sse_regs_using_mov): Remove
1728 unused insn variable.
1729 * genemit.c (output_peephole2_scratches): Only declare and initialize
1730 _regs_allocated if it will be ever used.
1731 * cfgloopmanip.c (create_empty_if_region_on_edge): Remove unused
1732 succ_bb variable.
1733 (create_empty_loop_on_edge): Remove unused freq and cnt variables.
1734 * unwind-c.c (PERSONALITY_FUNCTION): Remove unused action_record
1735 variable.
1736
1737 * opts.c (decode_options): If optimize is bigger than 255,
1738 set it to 255.
1739
1740 2009-11-26 Richard Henderson <rth@redhat.com>
1741
1742 * config/i386/sse.md (mulv16qi3): Change back from an expander
1743 to an insn-and-split.
1744 (mulv4si): Mention AVX not XOP for AVX exception.
1745 (*sse2_mulv4si3): Likewise.
1746 (mulv2di3): Use vmulld not vpmacsdd for XOP expansion. Tidy.
1747
1748 2009-11-26 Bernd Schmidt <bernd.schmidt@analog.com>
1749
1750 * cfgexpand (n_stack_vars_conflict): New static variable.
1751 (triangular_index): Reduce likelyhood of overflow by performing
1752 the division before the multiplication.
1753 (resize_stack_vars_conflict): Call fatal_error if overflow
1754 occurred in triangular_index. Update n_stack_vars_conflict.
1755
1756 PR rtl-opt/38582
1757 * regrename.c (struct du_chain): Remove member earlyclobber.
1758 (scan_rtx_reg): Don't set it. Remove argument earlyclobber,
1759 all callers changed.
1760 (scan_rtx): Remove argument earlyclobber, all callers changed.
1761 (hide_operands, restore_operands, record_out_operands): New functions,
1762 broken out of build_def_use.
1763 (build_def_use): Call them as necessary.
1764
1765 * regrename.c (struct du_head): New members id, conflicts,
1766 hard_conflicts and cannot_rename.
1767 (enum scan_actions): Remove terminate_all_read and
1768 terminate_overlapping_read; add mark_all_read.
1769 (scan_actions_name): Likewise.
1770 (du_head_p): New typedef. Define a vector type for it.
1771 (id_to_chain): New static variable.
1772 (note_sets, clear_dead_regs): Delete functions.
1773 (free_chain_data): New function.
1774 (merge_overlapping_regs): Simply walk the conflicts bitmap.
1775 Remove argument B, all callers changed.
1776 (regrename_optimize): Allocate id_to_chain. Ignore chains that have
1777 the cannot_rename bit set. Update regno and nregs of a renamed chain.
1778 Call free_chain_data when done.
1779 (do_replace): Remove death notes when the renamed reg is set in the
1780 last insn; add them if not.
1781 (mark_conflict, note_sets_clobbers): New static function.
1782 (fail_current_block, current_id, open_chains_set, live_hard_regs): New
1783 static variables.
1784 (scan_rtx_reg): Keep track of conflicts between chains, and between
1785 chains and hard regs. Don't terminate chains when we find a read we
1786 can't handle, mark it unrenameable instead. For terminate_write,
1787 terminate chains that are written with an exact match or a superset
1788 of registers. Set fail_current_block if multi-word lifetimes are too
1789 complex to handle.
1790 (scan_rtx_address): Use mark_all_read instead of terminate_all_read.
1791 (build_def_use): Initialize current_id, live_chains and live_hard_regs;
1792 free memory for them when done.
1793 Rearrange the steps so that earlyclobbers are noted before reads
1794 are processed. Add new steps to keep track of hard register lifetimes
1795 outside insn operands.
1796
1797 2009-11-26 Richard Guenther <rguenther@suse.de>
1798
1799 * tree-ssa-dce.c (nr_walks): New variable.
1800 (mark_aliased_reaching_defs_necessary): Adjust oracle cut-off.
1801 (perform_tree_ssa_dce): Init nr_walks.
1802
1803 2009-11-26 Michael Matz <matz@suse.de>
1804
1805 PR tree-optimization/41905
1806 * tree-eh.c (lower_eh_constructs_2): Don't add assignments
1807 below statements that can't fall thru.
1808
1809 2009-11-26 Michael Matz <matz@suse.de>
1810
1811 * builtins.c (expand_builtin_printf, expand_builtin_fprintf,
1812 expand_builtin_sprintf): Remove.
1813 (expand_builtin): Don't call them.
1814
1815 2009-11-26 Richard Guenther <rguenther@suse.de>
1816
1817 * tree-ssa-dce.c (perform_tree_ssa_dce): Allocate visited bitmap.
1818
1819 2009-11-26 Nick Clifton <nickc@redhat.com>
1820
1821 * config/rx/rx.c (rx_expand_epilogue): Add checks for sibcalls
1822 being used incorrectly.
1823 (rx_function_ok_for_sibcall): New function. Do not allow indirect
1824 sibcalls, or sibcalls from interrupt functions.
1825 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define.
1826 * config/rx/rx.md (sibcall): Convert to a define_expand. Check
1827 for a MEM inside a MEM.
1828 (sibcall_value): Likewise.
1829 (sibcall_internal): New pattern containing old sibcall pattern.
1830 (sibcall_value_internal): Likewise.
1831
1832 2009-11-25 Richard Henderson <rth@redhat.com>
1833
1834 * config/i386/i386-builtin-types.awk (DEF_VECTOR_TYPE): Allow an
1835 optional 3rd argument to define the mode.
1836 * config/i386/i386-builtin-types.def (UQI, UHI, USI, UDI): New.
1837 (V2UDI, V4USI, V8UHI, V16UQI): New.
1838 (V4SF_FTYPE_V4SF_V4SF_V4SI, V2UDI_FTYPE_V2UDI_V2UDI_V2UDI,
1839 V4USI_FTYPE_V4USI_V4USI_V4USI, V8UHI_FTYPE_V8UHI_V8UHI_V8UHI,
1840 V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): New.
1841 * config/i386/i386-modes.def: Rearrange for double-wide AVX.
1842 * config/i386/i386-protos.h (ix86_expand_vec_extract_even_odd): New.
1843 * config/i386/i386.c (IX86_BUILTIN_VEC_PERM_*): New.
1844 (bdesc_args): Add the builtin definitions to match.
1845 (ix86_expand_builtin): Expand them.
1846 (ix86_builtin_vectorization_cost): Rename from
1847 x86_builtin_vectorization_cost.
1848 (ix86_vectorize_builtin_vec_perm, struct expand_vec_perm_d,
1849 doublesize_vector_mode, expand_vselect, expand_vselect_vconcat,
1850 expand_vec_perm_blend, expand_vec_perm_vpermil,
1851 expand_vec_perm_pshufb, expand_vec_perm_1,
1852 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
1853 expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
1854 expand_vec_perm_even_odd_1, expand_vec_perm_even_odd,
1855 ix86_expand_vec_perm_builtin_1, extract_vec_perm_cst,
1856 ix86_expand_vec_perm_builtin, ix86_vectorize_builtin_vec_perm_ok,
1857 ix86_expand_vec_extract_even_odd, TARGET_VECTORIZE_BUILTIN_VEC_PERM,
1858 TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): New.
1859 * sse.md (SSEMODE_EO): New.
1860 (vec_extract_even<mode>): Use SSEMODE_EO and
1861 ix86_expand_vec_extract_even_odd.
1862 (vec_extract_odd<mode>): Likewise.
1863 (mulv16qi3, vec_pack_trunc_v8hi, vec_pack_trunc_v4si,
1864 vec_pack_trunc_v2di): Use ix86_expand_vec_extract_even_odd.
1865
1866 2009-11-25 Richard Henderson <rth@redhat.com>
1867
1868 * target.h (targetm.vectorize.builtin_vec_perm_ok): New.
1869 * target-def.h (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): New.
1870 * hooks.h, hooks.c (hook_bool_tree_tree_true): New.
1871 * tree-vect-slp.c (vect_create_mask_and_perm): Don't create
1872 the vector constant here...
1873 (vect_transform_slp_perm_load): ... do it here instead. Validate
1874 that the permutation vector is implementable by the target.
1875
1876 2009-11-25 Jakub Jelinek <jakub@redhat.com>
1877
1878 * config/rs6000/sysv4.opt (mregnames): Change Var to rs6000_regnames.
1879 * config/rs6000/sysv4.h (TARGET_REGNAMES): Define.
1880
1881 * print-rtl.c (print_rtx): When printing newline, append
1882 print_rtx_head and indentation after the newline.
1883
1884 PR target/42165
1885 * config/i386/i386.c (print_operand): For 32-byte memory use
1886 YMMWORD in -masm=intel mode. Use TBYTE instead of XWORD.
1887 * config/i386/i386.md (crc32modesuffix): Expand to nothing
1888 in -masm=intel mode.
1889 (sse4_2_crc32di): Print just crc32 instead of crc32q in
1890 -masm=intel mode.
1891 * config/i386/mmx.md (*mmx_pinsrw): Print correct size of
1892 memory operand in -masm=intel mode.
1893 * config/i386/sse.md (*avx_pinsr<ssevecsize>, *sse4_1_pinsrb,
1894 *sse2_pinsrw): Likewise.
1895 (sse_cvtss2siq, sse_cvtss2siq_2, sse_cvttss2siq): Don't print
1896 q suffix in -masm=intel mode.
1897
1898 2009-11-25 Eric Botcazou <ebotcazou@adacore.com>
1899
1900 PR target/10127
1901 PR ada/20548
1902 PR middle-end/42004
1903 * dwarf2out.c (dwarf2out_args_size_adjust): Rename to...
1904 (dwarf2out_stack_adjust): ...this. Do not adjust the arg size for
1905 ACCUMULATE_OUTGOING_ARGS targets. Rename former version to...
1906 (dwarf2out_notice_stack_adjust): ...this. Adjust for above renaming.
1907 (dwarf2out_frame_debug_expr): Revert previous change and adjust for
1908 above renaming.
1909 (dwarf2out_frame_debug): Add ??? comment. Adjust for above renaming.
1910
1911 2009-11-25 Uros Bizjak <ubizjak@gmail.com>
1912
1913 * config/i386/predicates.md (emms_operation): New predicate.
1914 (vzeroupper_operation): Ditto.
1915 (vzeroall_operation): Improve pattern recognition.
1916 * config/i386/sse.md (avx_vzeroupper_rex64): Remove insn pattern.
1917 (avx_vzeroupper): Change insn pattern to expander.
1918 (*avx_vzeroupper): New insn pattern. Use vzeroupper_operation
1919 predicate.
1920 (*avx_vzeroall): Remove operands 1 and 2.
1921 * config/i386/mmx.md (mmx_emms): Change insn pattern to expander.
1922 (mmx_femms): Ditto.
1923 (*mmx_emms): New insn pattern. Use emms_operation predicate.
1924 (*mmx_femms): Ditto.
1925 * config/i386/i386.c (enum ix86_builtins)
1926 <IX86_BUILTIN_VZEROUPPER_REX64>: Remove.
1927 (struct builtin_description) <CODE_FOR_avx_vzeroupper_rex64>:
1928 Remove initailization.
1929 <CODE_FOR_avx_vzeroupper>: Unconditionally initialize here.
1930
1931 2009-11-25 Paul Brook <paul@codesourcery.com>
1932
1933 * config/arm/arm.md (consttable_4): Handle (high ...).
1934
1935 2009-11-25 Robert Nelson <robert.nelson@digikey.com>
1936 Richard Earnshaw <rearnsha@arm.com>
1937
1938 * arm.h (enum vfp_reg_type): Add VFP_NONE.
1939 * arm.c (all_fpus): Use it for floating point units that aren't based
1940 on the VFP architecture.
1941 (aapcs_vfp_is_call_or_return_candidate): Make base_mode a pointer to
1942 enum machine_mode.
1943
1944 2009-11-25 H.J. Lu <hongjiu.lu@intel.com>
1945
1946 * alias.c: Remove trailing white spaces.
1947 * alloc-pool.c: Likewise.
1948 * alloc-pool.h: Likewise.
1949 * attribs.c: Likewise.
1950 * auto-inc-dec.c: Likewise.
1951 * basic-block.h: Likewise.
1952 * bb-reorder.c: Likewise.
1953 * bt-load.c: Likewise.
1954 * builtins.c: Likewise.
1955 * builtins.def: Likewise.
1956 * c-common.c: Likewise.
1957 * c-common.h: Likewise.
1958 * c-cppbuiltin.c: Likewise.
1959 * c-decl.c: Likewise.
1960 * c-format.c: Likewise.
1961 * c-lex.c: Likewise.
1962 * c-omp.c: Likewise.
1963 * c-opts.c: Likewise.
1964 * c-parser.c: Likewise.
1965 * c-pretty-print.c: Likewise.
1966 * c-tree.h: Likewise.
1967 * c-typeck.c: Likewise.
1968 * caller-save.c: Likewise.
1969 * calls.c: Likewise.
1970 * cfg.c: Likewise.
1971 * cfganal.c: Likewise.
1972 * cfgexpand.c: Likewise.
1973 * cfghooks.c: Likewise.
1974 * cfghooks.h: Likewise.
1975 * cfglayout.c: Likewise.
1976 * cfgloop.c: Likewise.
1977 * cfgloop.h: Likewise.
1978 * cfgloopmanip.c: Likewise.
1979 * cfgrtl.c: Likewise.
1980 * cgraph.c: Likewise.
1981 * cgraph.h: Likewise.
1982 * cgraphbuild.c: Likewise.
1983 * cgraphunit.c: Likewise.
1984 * cif-code.def: Likewise.
1985 * collect2.c: Likewise.
1986 * combine.c: Likewise.
1987 * convert.c: Likewise.
1988 * coverage.c: Likewise.
1989 * crtstuff.c: Likewise.
1990 * cse.c: Likewise.
1991 * cselib.c: Likewise.
1992 * dbgcnt.c: Likewise.
1993 * dbgcnt.def: Likewise.
1994 * dbgcnt.h: Likewise.
1995 * dbxout.c: Likewise.
1996 * dce.c: Likewise.
1997 * ddg.c: Likewise.
1998 * ddg.h: Likewise.
1999 * defaults.h: Likewise.
2000 * df-byte-scan.c: Likewise.
2001 * df-core.c: Likewise.
2002 * df-problems.c: Likewise.
2003 * df-scan.c: Likewise.
2004 * df.h: Likewise.
2005 * dfp.c: Likewise.
2006 * diagnostic.c: Likewise.
2007 * diagnostic.h: Likewise.
2008 * dominance.c: Likewise.
2009 * domwalk.c: Likewise.
2010 * double-int.c: Likewise.
2011 * double-int.h: Likewise.
2012 * dse.c: Likewise.
2013 * dwarf2asm.c: Likewise.
2014 * dwarf2asm.h: Likewise.
2015 * dwarf2out.c: Likewise.
2016 * ebitmap.c: Likewise.
2017 * ebitmap.h: Likewise.
2018 * emit-rtl.c: Likewise.
2019 * et-forest.c: Likewise.
2020 * except.c: Likewise.
2021 * except.h: Likewise.
2022 * expmed.c: Likewise.
2023 * expr.c: Likewise.
2024 * expr.h: Likewise.
2025 * final.c: Likewise.
2026 * flags.h: Likewise.
2027 * fold-const.c: Likewise.
2028 * function.c: Likewise.
2029 * function.h: Likewise.
2030 * fwprop.c: Likewise.
2031 * gcc.c: Likewise.
2032 * gcov-dump.c: Likewise.
2033 * gcov-io.c: Likewise.
2034 * gcov-io.h: Likewise.
2035 * gcov.c: Likewise.
2036 * gcse.c: Likewise.
2037 * genattr.c: Likewise.
2038 * genattrtab.c: Likewise.
2039 * genautomata.c: Likewise.
2040 * genchecksum.c: Likewise.
2041 * genconfig.c: Likewise.
2042 * genflags.c: Likewise.
2043 * gengtype-parse.c: Likewise.
2044 * gengtype.c: Likewise.
2045 * gengtype.h: Likewise.
2046 * genmddeps.c: Likewise.
2047 * genmodes.c: Likewise.
2048 * genopinit.c: Likewise.
2049 * genpreds.c: Likewise.
2050 * gensupport.c: Likewise.
2051 * ggc-common.c: Likewise.
2052 * ggc-page.c: Likewise.
2053 * ggc-zone.c: Likewise.
2054 * ggc.h: Likewise.
2055 * gimple-iterator.c: Likewise.
2056 * gimple-low.c: Likewise.
2057 * gimple-pretty-print.c: Likewise.
2058 * gimple.c: Likewise.
2059 * gimple.def: Likewise.
2060 * gimple.h: Likewise.
2061 * gimplify.c: Likewise.
2062 * graphds.c: Likewise.
2063 * graphite-clast-to-gimple.c: Likewise.
2064 * gthr-nks.h: Likewise.
2065 * gthr-posix.c: Likewise.
2066 * gthr-posix.h: Likewise.
2067 * gthr-posix95.h: Likewise.
2068 * gthr-single.h: Likewise.
2069 * gthr-tpf.h: Likewise.
2070 * gthr-vxworks.h: Likewise.
2071 * gthr.h: Likewise.
2072 * haifa-sched.c: Likewise.
2073 * hard-reg-set.h: Likewise.
2074 * hooks.c: Likewise.
2075 * hooks.h: Likewise.
2076 * hosthooks.h: Likewise.
2077 * hwint.h: Likewise.
2078 * ifcvt.c: Likewise.
2079 * incpath.c: Likewise.
2080 * init-regs.c: Likewise.
2081 * integrate.c: Likewise.
2082 * ipa-cp.c: Likewise.
2083 * ipa-inline.c: Likewise.
2084 * ipa-prop.c: Likewise.
2085 * ipa-pure-const.c: Likewise.
2086 * ipa-reference.c: Likewise.
2087 * ipa-struct-reorg.c: Likewise.
2088 * ipa-struct-reorg.h: Likewise.
2089 * ipa-type-escape.c: Likewise.
2090 * ipa-type-escape.h: Likewise.
2091 * ipa-utils.c: Likewise.
2092 * ipa-utils.h: Likewise.
2093 * ipa.c: Likewise.
2094 * ira-build.c: Likewise.
2095 * ira-color.c: Likewise.
2096 * ira-conflicts.c: Likewise.
2097 * ira-costs.c: Likewise.
2098 * ira-emit.c: Likewise.
2099 * ira-int.h: Likewise.
2100 * ira-lives.c: Likewise.
2101 * ira.c: Likewise.
2102 * jump.c: Likewise.
2103 * lambda-code.c: Likewise.
2104 * lambda-mat.c: Likewise.
2105 * lambda-trans.c: Likewise.
2106 * lambda.h: Likewise.
2107 * langhooks.c: Likewise.
2108 * lcm.c: Likewise.
2109 * libgcov.c: Likewise.
2110 * lists.c: Likewise.
2111 * loop-doloop.c: Likewise.
2112 * loop-init.c: Likewise.
2113 * loop-invariant.c: Likewise.
2114 * loop-iv.c: Likewise.
2115 * loop-unroll.c: Likewise.
2116 * lower-subreg.c: Likewise.
2117 * lto-cgraph.c: Likewise.
2118 * lto-compress.c: Likewise.
2119 * lto-opts.c: Likewise.
2120 * lto-section-in.c: Likewise.
2121 * lto-section-out.c: Likewise.
2122 * lto-streamer-in.c: Likewise.
2123 * lto-streamer-out.c: Likewise.
2124 * lto-streamer.c: Likewise.
2125 * lto-streamer.h: Likewise.
2126 * lto-symtab.c: Likewise.
2127 * lto-wpa-fixup.c: Likewise.
2128 * matrix-reorg.c: Likewise.
2129 * mcf.c: Likewise.
2130 * mode-switching.c: Likewise.
2131 * modulo-sched.c: Likewise.
2132 * omega.c: Likewise.
2133 * omega.h: Likewise.
2134 * omp-low.c: Likewise.
2135 * optabs.c: Likewise.
2136 * optabs.h: Likewise.
2137 * opts-common.c: Likewise.
2138 * opts.c: Likewise.
2139 * params.def: Likewise.
2140 * params.h: Likewise.
2141 * passes.c: Likewise.
2142 * plugin.c: Likewise.
2143 * postreload-gcse.c: Likewise.
2144 * postreload.c: Likewise.
2145 * predict.c: Likewise.
2146 * predict.def: Likewise.
2147 * pretty-print.c: Likewise.
2148 * pretty-print.h: Likewise.
2149 * print-rtl.c: Likewise.
2150 * print-tree.c: Likewise.
2151 * profile.c: Likewise.
2152 * read-rtl.c: Likewise.
2153 * real.c: Likewise.
2154 * recog.c: Likewise.
2155 * reg-stack.c: Likewise.
2156 * regcprop.c: Likewise.
2157 * reginfo.c: Likewise.
2158 * regmove.c: Likewise.
2159 * regrename.c: Likewise.
2160 * regs.h: Likewise.
2161 * regstat.c: Likewise.
2162 * reload.c: Likewise.
2163 * reload1.c: Likewise.
2164 * resource.c: Likewise.
2165 * rtl.c: Likewise.
2166 * rtl.def: Likewise.
2167 * rtl.h: Likewise.
2168 * rtlanal.c: Likewise.
2169 * sbitmap.c: Likewise.
2170 * sched-deps.c: Likewise.
2171 * sched-ebb.c: Likewise.
2172 * sched-int.h: Likewise.
2173 * sched-rgn.c: Likewise.
2174 * sched-vis.c: Likewise.
2175 * sdbout.c: Likewise.
2176 * sel-sched-dump.c: Likewise.
2177 * sel-sched-dump.h: Likewise.
2178 * sel-sched-ir.c: Likewise.
2179 * sel-sched-ir.h: Likewise.
2180 * sel-sched.c: Likewise.
2181 * sel-sched.h: Likewise.
2182 * sese.c: Likewise.
2183 * sese.h: Likewise.
2184 * simplify-rtx.c: Likewise.
2185 * stack-ptr-mod.c: Likewise.
2186 * stmt.c: Likewise.
2187 * stor-layout.c: Likewise.
2188 * store-motion.c: Likewise.
2189 * stringpool.c: Likewise.
2190 * stub-objc.c: Likewise.
2191 * sync-builtins.def: Likewise.
2192 * target-def.h: Likewise.
2193 * target.h: Likewise.
2194 * targhooks.c: Likewise.
2195 * targhooks.h: Likewise.
2196 * timevar.c: Likewise.
2197 * tlink.c: Likewise.
2198 * toplev.c: Likewise.
2199 * toplev.h: Likewise.
2200 * tracer.c: Likewise.
2201 * tree-affine.c: Likewise.
2202 * tree-affine.h: Likewise.
2203 * tree-browser.def: Likewise.
2204 * tree-call-cdce.c: Likewise.
2205 * tree-cfg.c: Likewise.
2206 * tree-cfgcleanup.c: Likewise.
2207 * tree-chrec.c: Likewise.
2208 * tree-chrec.h: Likewise.
2209 * tree-complex.c: Likewise.
2210 * tree-data-ref.c: Likewise.
2211 * tree-data-ref.h: Likewise.
2212 * tree-dfa.c: Likewise.
2213 * tree-dump.c: Likewise.
2214 * tree-dump.h: Likewise.
2215 * tree-eh.c: Likewise.
2216 * tree-flow-inline.h: Likewise.
2217 * tree-flow.h: Likewise.
2218 * tree-if-conv.c: Likewise.
2219 * tree-inline.c: Likewise.
2220 * tree-into-ssa.c: Likewise.
2221 * tree-loop-distribution.c: Likewise.
2222 * tree-loop-linear.c: Likewise.
2223 * tree-mudflap.c: Likewise.
2224 * tree-nested.c: Likewise.
2225 * tree-nomudflap.c: Likewise.
2226 * tree-nrv.c: Likewise.
2227 * tree-object-size.c: Likewise.
2228 * tree-optimize.c: Likewise.
2229 * tree-outof-ssa.c: Likewise.
2230 * tree-parloops.c: Likewise.
2231 * tree-pass.h: Likewise.
2232 * tree-phinodes.c: Likewise.
2233 * tree-predcom.c: Likewise.
2234 * tree-pretty-print.c: Likewise.
2235 * tree-profile.c: Likewise.
2236 * tree-scalar-evolution.c: Likewise.
2237 * tree-ssa-address.c: Likewise.
2238 * tree-ssa-alias.c: Likewise.
2239 * tree-ssa-ccp.c: Likewise.
2240 * tree-ssa-coalesce.c: Likewise.
2241 * tree-ssa-copy.c: Likewise.
2242 * tree-ssa-copyrename.c: Likewise.
2243 * tree-ssa-dce.c: Likewise.
2244 * tree-ssa-dom.c: Likewise.
2245 * tree-ssa-dse.c: Likewise.
2246 * tree-ssa-forwprop.c: Likewise.
2247 * tree-ssa-ifcombine.c: Likewise.
2248 * tree-ssa-live.c: Likewise.
2249 * tree-ssa-live.h: Likewise.
2250 * tree-ssa-loop-ch.c: Likewise.
2251 * tree-ssa-loop-im.c: Likewise.
2252 * tree-ssa-loop-ivcanon.c: Likewise.
2253 * tree-ssa-loop-ivopts.c: Likewise.
2254 * tree-ssa-loop-manip.c: Likewise.
2255 * tree-ssa-loop-niter.c: Likewise.
2256 * tree-ssa-loop-prefetch.c: Likewise.
2257 * tree-ssa-loop-unswitch.c: Likewise.
2258 * tree-ssa-loop.c: Likewise.
2259 * tree-ssa-math-opts.c: Likewise.
2260 * tree-ssa-operands.c: Likewise.
2261 * tree-ssa-operands.h: Likewise.
2262 * tree-ssa-phiopt.c: Likewise.
2263 * tree-ssa-phiprop.c: Likewise.
2264 * tree-ssa-pre.c: Likewise.
2265 * tree-ssa-propagate.c: Likewise.
2266 * tree-ssa-reassoc.c: Likewise.
2267 * tree-ssa-sccvn.c: Likewise.
2268 * tree-ssa-sink.c: Likewise.
2269 * tree-ssa-structalias.c: Likewise.
2270 * tree-ssa-ter.c: Likewise.
2271 * tree-ssa-threadedge.c: Likewise.
2272 * tree-ssa-threadupdate.c: Likewise.
2273 * tree-ssa-uncprop.c: Likewise.
2274 * tree-ssa.c: Likewise.
2275 * tree-ssanames.c: Likewise.
2276 * tree-switch-conversion.c: Likewise.
2277 * tree-tailcall.c: Likewise.
2278 * tree-vect-data-refs.c: Likewise.
2279 * tree-vect-generic.c: Likewise.
2280 * tree-vect-loop-manip.c: Likewise.
2281 * tree-vect-loop.c: Likewise.
2282 * tree-vect-patterns.c: Likewise.
2283 * tree-vect-slp.c: Likewise.
2284 * tree-vect-stmts.c: Likewise.
2285 * tree-vectorizer.c: Likewise.
2286 * tree-vectorizer.h: Likewise.
2287 * tree-vrp.c: Likewise.
2288 * tree.c: Likewise.
2289 * tree.def: Likewise.
2290 * tree.h: Likewise.
2291 * treestruct.def: Likewise.
2292 * unwind-compat.c: Likewise.
2293 * unwind-dw2-fde-glibc.c: Likewise.
2294 * unwind-dw2.c: Likewise.
2295 * value-prof.c: Likewise.
2296 * value-prof.h: Likewise.
2297 * var-tracking.c: Likewise.
2298 * varasm.c: Likewise.
2299 * varpool.c: Likewise.
2300 * vec.c: Likewise.
2301 * vec.h: Likewise.
2302 * vmsdbgout.c: Likewise.
2303 * web.c: Likewise.
2304 * xcoffout.c: Likewise.
2305
2306 2009-11-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2307
2308 * pa.c (output_call): Only use sr4 for long interspace calls if
2309 call binds local and generating non PIC code.
2310 (attr_length_call): Adjust length calculation for above.
2311
2312 2009-11-25 Uros Bizjak <ubizjak@gmail.com>
2313
2314 * config/i386/i386.md (plusminus_carry_mnemonic): New code attribute.
2315 (add<mode>3_carry): Change operand order of plus RTX.
2316 (*add<mode>3_carry): Ditto.
2317 (*addsi3_carry_zext): Ditto.
2318 (*add<dwi>3_doubleword): Update for changed operand order.
2319 (*negti2_1 splitter): Ditto.
2320 (*negdi2_1 splitter): Ditto.
2321 (<plusminus_insn><mode>3_carry): Macroize expander from
2322 {add,sub}<mode>3_carry patterns using plusminus code iterator.
2323 (*<plusminus_insn><mode>3_carry): Macroize insn from
2324 *{add,sub}<mode>3_carry patetrns using plusminus code iterator.
2325 (neg<mode>2): Macroize expander from neg{qi,hi,si,di,ti}2
2326 patterns using SDWIM mode iterator.
2327 (*neg<dwi>2_doubleword): New insn_and_split pattern. Macroize
2328 pattern from *neg{di,ti}2_1 patterns and corresponding splitters
2329 using DWIH mode iterator.
2330 (*neg<mode>2_1): Macroize insn from neg{qi,hi,si,di}2_1 patterns
2331 using SWI mode iterator.
2332 (*neg<mode>2_cmpz): Ditto from neg{qi,hi,si,di}2_cmpz patterns.
2333 (one_cmpl<mode>2): Macroize expander from one_cmpl{qi,hi,si,di}2
2334 patterns using SWIM mode iterator.
2335 (*one_cmpl<mode>2_1): Macroize insn from one_cmpl{hi,si,di}2_1
2336 patterns using SWI248 mode iterator.
2337 (*one_cmpl<mode>2_2): Macroize insn from one_cmpl{qi,hi,si,di}2_2
2338 patterns using SWI mode iterator.
2339 (*one_cmpl<mode>2_2 splitter): Macroize splitter from
2340 one_cmpl{qi,hi,si,di}2_2 splitter patterns using SWI mode iterator.
2341
2342 2009-11-24 Michael Matz <matz@suse.de>
2343
2344 * expr.c (set_storage_via_libcall): Fix build_call_expr call.
2345
2346 2009-11-24 David Binderman <dcb314@hotmail.com>
2347
2348 * expr.c (store_field): Remove set but not used local variable
2349 width_mask.
2350 (expand_expr_real_2): Remove treeop2.
2351 * gcse.c (update_ld_motion_stores): Remove new_rtx.
2352 * haifa-sched.c (max_issue): Remove points.
2353 (sched_create_recovery_edges): Remove e.
2354 * ira-costs.c (setup_allocno_cover_class_and_costs): Remove mode.
2355
2356 2009-11-24 Nick Clifton <nickc@redhat.com>
2357
2358 * config/v850/v850.c (function_arg): Fix handling of zero-length
2359 function arguments.
2360
2361 2009-11-24 Michael Matz <matz@suse.de>
2362
2363 * tree.h (union tree_ann_d): Don't declare.
2364 (tree_base): Remove ann field.
2365 (struct var_ann_d): Declare forward.
2366 (tree_result_decl, tree_parm_decl, tree_var_decl): Add ann field.
2367 (DECL_VAR_ANN_PTR): New macro.
2368 * tree-dfa.c (create_var_ann): Rewrite in terms of above macro,
2369 accept only VAR, PARM or RESULT decls.
2370 (create_tree_common_ann): Remove.
2371 (remove_referenced_var): Use DECL_VAR_ANN_PTR.
2372 * tree-eh.c (lookup_expr_eh_lp): Remove.
2373 * tree-flow-inline.h (var_ann, get_var_ann): Rewrite in terms of
2374 DECL_VAR_ANN_PTR.
2375 (ann_type, tree_common_ann, get_tree_common_ann): Remove.
2376 * tree-flow.h (enum tree_ann_type): Remove.
2377 (struct tree_ann_common_d): Remove.
2378 (struct var_ann_d): Remove common field.
2379 (union tree_ann_d): Remove.
2380 (tree_ann_t, tree_ann_common_t): Remove typedefs.
2381 (tree_common_ann, get_tree_common_ann, ann_type,
2382 create_tree_common_ann, lookup_expr_eh_lp): Don't declare.
2383 * tree-ssa.c (delete_tree_ssa): Use DECL_VAR_ANN_PTR.
2384 * tree.c (copy_node_stat): Use DECL_VAR_ANN_PTR.
2385 * builtins.c (expand_builtin_memcpy): Use
2386 currently_expanding_gimple_stmt instead of tree annotation.
2387 (expand_builtin_memset_args): Ditto.
2388 * cfgexpand.c (currently_expanding_gimple_stmt): Add global variable.
2389 (expand_call_stmt): Don't set tree annotation.
2390 (expand_gimple_basic_block): Set currently_expanding_gimple_stmt.
2391 * expr.c (expand_expr_real): Don't call lookup_expr_eh_lp.
2392 * gimple.h (currently_expanding_gimple_stmt): Declare.
2393
2394 2009-11-24 Paolo Carlini <paolo.carlini@oracle.com>
2395
2396 * dwarf2out.c (add_location_or_const_value_attribute): Remove
2397 useless NOTE_VAR_LOCATION_STATUS call.
2398 * cfgrtl.c (commit_one_edge_insertion): Remove useless loop, tidy.
2399
2400 2009-11-24 Rafael Avila de Espindola <espindola@google.com>
2401
2402 * lto-wrapper.c (lto_wrapper_exit): Don't try to delete files if
2403 being called recursively.
2404
2405 2009-11-24 Basile Starynkevitch <basile@starynkevitch.net>
2406
2407 * Makefile.in (PLUGIN_HEADERS): Added files: cppdefault.h flags.h
2408 $(MD5_H) params.def params.h prefix.h tree-inline.h.
2409
2410 2009-11-24 Paul Brook <paul@codesourcery.com>
2411
2412 * gcc/config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Fix comment
2413 typo.
2414
2415 2009-11-24 Julian Brown <julian@codesourcery.com>
2416 Paul Brook <paul@codesourcery.com>
2417
2418 * config/arm/arm.c (TARGET_DWARF_REGISTER_SPAN): Define.
2419 (arm_dwarf_register_span): New function.
2420 (arm_dbx_register_number): Add VFPv3 dwarf numbering.
2421
2422 2009-11-24 David Binderman <dcb314@hotmail.com>
2423
2424 * cfgrtl.c (commit_one_edge_insertion): Remove set but not used
2425 local variable bb_note.
2426 * dominance.c (get_dominated_by): Likewise local var n.
2427 (output_file_names): Likewise local var idx.
2428 (add_location_or_const_value_attribute): Likewise local var status.
2429 * dwarf2out.c (gen_variable_die): Likewise local var field.
2430 * emit-rtl.c (no_line_numbers): Remove.
2431 (init_emit_once): Remove line_numbers parameter.
2432 * rtl.h (init_emit_once): Adjust prototype.
2433 * toplev.c (backend_init): Adjust init_emit_once call.
2434
2435 2009-11-24 Richard Guenther <rguenther@suse.de>
2436
2437 PR tree-optimization/42142
2438 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
2439 Handle iv-dependent (non-)kills properly.
2440 (mark_aliased_reaching_defs_necessary): Pass the basic-block
2441 of the reference statement to mark_aliased_reaching_defs_necessary_1.
2442
2443 2009-11-24 Martin Jambor <mjambor@suse.cz>
2444
2445 PR tree-optimization/42154
2446 * tree-sra.c (struct access): Added comments.
2447 (sra_modify_expr): Build references to the old aggregate with
2448 build_ref_for_offset instead of reusing access->expr.
2449 (load_assign_lhs_subreplacements): Likewise.
2450
2451 2009-11-24 Uros Bizjak <ubizjak@gmail.com>
2452
2453 * config/i386/i386.md (add<mode>3_carry): Change insn pattern
2454 to expander.
2455 (sub<mode>3_carry): Ditto.
2456 (x86_mov<mode>cc_0_m1): Ditto.
2457 (*add<mode>3_carry): New insn pattern. Use VOIDmode match_operator
2458 for ix86_carry_flag_operator operator predicate.
2459 (*sub<mode>3_carry): Ditto.
2460 (*x86_mov<mode>cc_0_m1): Ditto.
2461 (*addsi3_carry_zext): Use VOIDmode match_operator for
2462 ix86_carry_flag_operator operator predicate.
2463 (*subsi3_carry_zext): Ditto.
2464 (*x86_mov<mode>cc_0_m1_s): Ditto.
2465 (*x86_mov<mode>cc_0_m1_neg): Ditto.
2466 * config/i386/predocates.md (ix86_carry_flag_operator): Do not
2467 check operator sub-expressions for FLAGS_REG and const0_rtx.
2468 * config/i386/i386.c (*ix86_gen_sub3_carry): Update prototype.
2469 (ix86_expand_int_movcc): Update calls to gen_x86_mov{si,di}cc_0_m1.
2470 (ix86_expand_int_addcc): Update calls to
2471 gen_{add,sub}{qi,hi,si,di}3_carry. Do not set mode of compare_op.
2472 (ix86_expand_strlensi_unroll_1): Update calls to ix86_gen_sub3_carry.
2473 Do not set mode of compare operation.
2474
2475 2009-11-23 Jan Hubicka <jh@suse.cz>
2476
2477 PR middle-end/42151
2478 * ipa-inline.c (inline_transform): Avoid ICE when transform is called
2479 twice.
2480
2481 2009-11-23 Jan Hubicka <jh@suse.cz>
2482
2483 * ipa-cp.c (ipcp_compute_node_scale): Work around completely
2484 wrong profile updates.
2485 * predict.c (counts_to_freqs): Be expected for ENTRY/EXIT block
2486 having largest frequency.
2487 * ira-live.c (ira_implicitly_set_insn_hard_regs): Silecne
2488 used uninitalized warning.
2489 * tree-optimize.c (execute_fixup_cfg): Rescale entry and exit block
2490 frequencies.
2491
2492 2009-11-23 Uros Bizjak <ubizjak@gmail.com>
2493
2494 * config/alpha/alpha.md (*cmp_sadd_sidi): Use gen_lowpart instead
2495 of gen_rtx_REG to generate operand 5.
2496 (*cmp_ssub_sidi): Ditto.
2497
2498 2009-11-23 Richard Henderson <rth@redhat.com>
2499
2500 * config/i386/i386.c (avx_vpermilp_parallel): Fix sign compare
2501 mismatch.
2502
2503 2009-11-23 Paul Brook <paul@codesourcery.com>
2504
2505 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Add special
2506 case for noreturn functions.
2507 (arm_compute_save_reg_mask): Remove special noreturn handling.
2508
2509 2009-11-23 Richard Guenther <rguenther@suse.de>
2510
2511 * tree-dfa.c (get_ref_base_and_extent): Adjust maximum access
2512 size for DECL bases.
2513
2514 2009-11-22 Richard Henderson <rth@redhat.com>
2515
2516 * i386.c (avx_vpermilp_parallel): New function.
2517 * i386-protos.h: Declare it.
2518 * predicates.md (avx_vpermilp_v8sf_operand, avx_vpermilp_v4df_operand,
2519 avx_vpermilp_v4sf_operand, avx_vpermilp_v2df_operand): New.
2520 * sse.md (AVXMODEFDP, AVXMODEFSP): New iterators.
2521 (ssescalarnum, ssedoublesizemode): Add AVX modes.
2522 (vpermilbits): Remove.
2523 (avx_vpermil<mode>): Change insns to expanders.
2524 (*avx_vpermil<mode>): New. Use vec_select.
2525
2526 2009-11-22 Richard Earnshaw <rearnsha@arm.com>
2527
2528 * opts.c (decode_options): Don't enable flag_schedule_insns
2529 when optimizing for size.
2530 * doc/invoke.texi: Document change.
2531
2532 2009-11-22 Uros Bizjak <ubizjak@gmail.com>
2533
2534 PR target/42113
2535 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
2536 of scratch register to SImode.
2537 (*cmp_sadd_sidi): Ditto.
2538 (*cmp_ssub_si): Ditto.
2539 (*cmp_ssub_sidi): Ditto.
2540
2541 2009-11-21 Ian Lance Taylor <iant@google.com>
2542
2543 * Makefile.in (HOST_LIBS): Move higher in file.
2544 (LINKER, LINKER_FLAGS): If ENABLE_BUILD_WITH_CXX, but $(HOST_LIBS)
2545 is not empty, set to $(CC) and $(CFLAGS).
2546
2547 2009-11-22 Martin Jambor <mjambor@suse.cz>
2548
2549 * tree-cfg.c (verify_types_in_gimple_reference): Error out on
2550 V_C_E of an SSA_NAME or an invariant if lvalue is required.
2551 (verify_gimple_call): Verify LHS also with with
2552 verify_types_in_gimple_reference.
2553
2554 2009-11-21 Martin Jambor <mjambor@suse.cz>
2555
2556 PR middle-end/42025
2557 * tree-sra.c (access_precludes_ipa_sra_p): New function.
2558 (splice_param_accesses): Check all accesses by calling
2559 access_precludes_ipa_sra_p.
2560 (sra_ipa_modify_expr): Rename argument erite to dont_convert and do
2561 not convert types if it is true.
2562 (sra_ipa_modify_assign): Convert types in case of mismatch.
2563
2564 2009-11-21 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
2565
2566 * config/sh/sh.md (cmpeqsi_t-1): Use logical_operand predicate
2567 for operand 1.
2568
2569 2009-11-21 Adam Nemet <adambnemet@gmail.com>
2570
2571 * config/mips/mips-protos.h (mulsidi3_gen_fn): New typedef.
2572 (mips_mulsidi3_gen_fn): Declare new function.
2573 * config/mips/mips.c (mips_mulsidi3_gen_fn): New function.
2574 * config/mips/mips.md (<u>mulsidi3): Change condition to use
2575 mips_mulsidi3_gen_fn. Use mips_mulsidi3_gen_fn to generate the insn.
2576 (<u>mulsidi3_64bit): Don't match for ISA_HAS_DMUL3.
2577 (mulsidi3_64bit_dmul): New define_insn.
2578
2579 2009-11-21 Ben Elliston <bje@au.ibm.com>
2580
2581 * gengtype-lex.l: Enable noinput flex option.
2582 (YY_NO_INPUT): Remove define.
2583
2584 2009-11-21 Alexandre Oliva <aoliva@redhat.com>
2585
2586 * tree-ssa.c (find_released_ssa_name): Handle NULL wi.
2587 (insert_debug_temp_for_var_def): Handle degenerate PHI nodes.
2588 (insert_debug_temps_for_defs): Handle PHI nodes.
2589 * tree-ssa-dom.c (degenerate_phi_result): Don't crash on released
2590 SSA names.
2591
2592 2009-11-21 Alexandre Oliva <aoliva@redhat.com>
2593
2594 * tree-ssa-pre.c (remove_dead_inserted_code): Don't release_defs
2595 after remove_phi_node.
2596
2597 2009-11-21 Alexandre Oliva <aoliva@redhat.com>
2598
2599 PR tree-optimization/42078
2600 * gimple.h (gimple_replace_lhs): New declaration.
2601 * gimple.c (gimple_replace_lhs): New function.
2602 * tree-ssa-math-opts.c (execute_cse_reciprocals): Call it before
2603 modifying the call.
2604
2605 2009-11-20 Sebastian Pop <sebastian.pop@amd.com>
2606
2607 * config/i386/sse.md (*xop_pmacsdql_mem): Don't call reg_mentioned_p.
2608 (xop_mulv2div2di3_low): Same.
2609 (*xop_pmacsdqh_mem): Same.
2610
2611 2009-11-20 Richard Henderson <rth@redhat.com>
2612
2613 * config/i386/i386-builtin-types.awk: New file.
2614 * config/i386/i386-builtin-types.def: New file.
2615 * config/i386/t-i386: Use them to build i386-builtin-types.inc.
2616 * config/i386/i386.c: Include it.
2617 (ix86_builtin_type_tab, ix86_get_builtin_type): New.
2618 (ix86_builtin_func_type_tab, ix86_get_builtin_func_type): New.
2619 (struct builtin_isa): Remove GTY marker. Replace tree type with
2620 ix86_builtin_func_type; add set_and_not_built_p.
2621 (def_builtin): Change type parameter to tcode; use
2622 ix86_get_builtin_func_type; update all callers. Accept zero mask
2623 to mean the builtin is unconditionally available.
2624 (ix86_add_new_builtins): Use set_and_not_built_p instead of type
2625 being set to NULL.
2626 (enum ix86_special_builtin_type, enum ix86_builtin_type): Remove.
2627 Update some users to rationalized enumeration codes from new include.
2628 (enum multi_arg_type): Remove. Replace all enumeration values
2629 with defines to new ix86_builtin_func_type.
2630 (ix86_init_mmx_sse_builtins): Don't build any types here. Defer
2631 all type resolution to def_builtin.
2632 (ix86_init_builtin_types): Split out from ...
2633 (ix86_init_builtins): ... here. Use ix86_get_builtin_func_type.
2634
2635 2009-11-20 Michael Meissner <meissner@linux.vnet.ibm.com>
2636
2637 PR target/41787
2638 * config/rs6000/rs6000.c (struct machine_function): Revert
2639 2009-10-23 change to set VRSAVE to non-0 if we use VSX.
2640 (rs6000_expand_to_rtl_hook): Ditto.
2641 (rs6000_check_vector_mode): Ditto.
2642 (compute_vrsave_mask): Ditto.
2643
2644 2009-11-20 Paul Brook <paul@codesourcery.com>
2645
2646 * doc/invoke.texi: Document ARM -mcpu=cortex-a5.
2647 * config/arm/arm-cores.def: Add cortex-a5.
2648 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a5.
2649 * config/arm/arm-tune.md: Regenerate.
2650
2651 2009-11-20 Olga Golovanevsky <olga@il.ibm.com>
2652
2653 PR middle-end/39960
2654 * ipa-struct-reorg.c (find_pos_in_stmt): New parameter.
2655 (ref_pos): New field in structure.
2656 (insert_new_var_in_stmt): New function.
2657
2658
2659 2009-11-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2660
2661 * config.gcc (alpha*-dec-osf[45]*): Set use_gcc_stdint.
2662 * config/alpha/osf.h (SIG_ATOMIC_TYPE): Define.
2663 (INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE): Define.
2664 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
2665 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
2666 INT_LEAST64_TYPE): Define.
2667 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
2668 UINT_LEAST64_TYPE): Define.
2669 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
2670 INT_FAST64_TYPE): Define.
2671 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
2672 UINT_FAST64_TYPE): Define.
2673 (INTPTR_TYPE, UINTPTR_TYPE): Define.
2674
2675 2009-11-20 Julian Brown <julian@codesourcery.com>
2676
2677 * config/arm/arm.h (ASM_OUTPUT_REG_PUSH): Handle STATIC_CHAIN_REGNUM
2678 specially for Thumb-1.
2679 (ASM_OUTPUT_REG_POP): Likewise.
2680
2681 2009-11-19 Jason Merrill <jason@redhat.com>
2682
2683 * dwarf2out.c (get_context_die): Take TYPE_MAIN_VARIANT.
2684
2685 2009-11-19 Basile Starynkevitch <basile@starynkevitch.net>
2686 Rafael Avila de Espindola <espindola@google.com>
2687
2688 * doc/plugins.texi (Plugin initialization): Added advices for
2689 retrieving the version of GCC at plugin compilation and loading times.
2690
2691 2009-11-19 Basile Starynkevitch <basile@starynkevitch.net>
2692
2693 * plugin.c (FMT_FOR_PLUGIN_EVENT): added definition.
2694 (dump_active_plugins): output to file everything. Use
2695 internationalized dump & FMT_FOR_PLUGIN_EVENT.
2696
2697 2009-11-19 Richard Guenther <rguenther@suse.de>
2698
2699 * gimple.c (canonicalize_cond_expr_cond): Strip conversions
2700 around truth-valued expressions.
2701 * tree.c (free_lang_data): Untangle check for LTO frontend.
2702
2703 2009-11-19 Jakub Jelinek <jakub@redhat.com>
2704
2705 * tree.c (need_assembler_name_p): Use cgraph_get_node instead
2706 of cgraph_node_for_decl.
2707 * cgraph.h (cgraph_node_for_decl): Remove prototype.
2708 * cgraph.c (cgraph_node_for_decl): Remove.
2709 (cgraph_get_node): Just return NULL if !cgraph_hash.
2710
2711 2009-11-19 Paul Brook <paul@codesourcery.com>
2712
2713 * config.gcc: Add new ARM --with-fpu options.
2714 * doc/invoke.texi: Docuent ARM -mfpu=fpv4-sp-d16.
2715 * config/arm/arm.c (all_fpus): Add fpv4-sp-d16.
2716
2717 2009-11-18 Richard Guenther <rguenther@suse.de>
2718
2719 * gimple.h (union gimple_statement_d): Add gsmembase member.
2720 (gimple_vuse_op): Use gsmembase for access.
2721 (gimple_vdef_op): Likewise.
2722 (gimple_vuse): Likewise.
2723 (gimple_vdef): Likewise.
2724 (gimple_vuse_ptr): Likewise.
2725 (gimple_vdef_ptr): Likewise.
2726 (gimple_set_vuse): Likewise.
2727 (gimple_set_vdef): Likewise.
2728 * gsstruct.def (GSS_WITH_MEM_OPS_BASE): Add.
2729
2730 2009-11-18 Daniel Jacobowitz <dan@codesourcery.com>
2731
2732 * doc/arm-neon-intrinsics.texi: Regenerated.
2733
2734 2009-11-18 Daniel Jacobowitz <dan@codesourcery.com>
2735
2736 * config/arm/neon-docgen.ml (analyze_shape_elt): Handle alternatives.
2737
2738 2009-11-18 Paul Brook <paul@codesourcery.com>
2739 Daniel Jacobowitz <dan@codesourcery.com>
2740
2741 * config/arm/arm.c (FL_ARCH7EM, FL_FOR_ARCH7EM): Define.
2742 (arm_arch7em): New variable.
2743 (all_architectures): Add armv7e-m.
2744 (arm_override_options): Set arm_arch7em.
2745 * config/arm/arm.h (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD):
2746 Include arm_arch7em.
2747 (arm_arch7em): Declare.
2748
2749 2009-11-18 Richard Guenther <rguenther@suse.de>
2750
2751 * lto-streamer-in.c (input_gimple_stmt): Assert that we find
2752 a valid field decl if checking is enabled.
2753
2754 2009-11-18 Martin Jambor <mjambor@suse.cz>
2755
2756 * ipa-prop.h (struct ipa_param_call_note): New field lto_stmt_uid.
2757 (lto_ipa_fixup_call_notes): Declare.
2758 * ipa-prop.c (ipa_note_param_call): Store gimple uid.
2759 (update_call_notes_after_inlining): Copy call stmt uid to the new
2760 edge.
2761 (ipa_write_param_call_note): New function.
2762 (ipa_read_param_call_note): New function
2763 (ipa_write_node_info): Write also param call notes. Removed a bogus
2764 comment, reformatted to fit 80 columns.
2765 (ipa_read_node_info): Read also param call notes. Removed a bogus
2766 comment. Remove ipa_edge_args_vector growth.
2767 (lto_ipa_fixup_call_notes): New function.
2768 * ipa-cp.c (pass_ipa_cp): Add stmt_fixup hook.
2769 * ipa-inline.c (cgraph_mark_inline_edge): Perform indirect
2770 inlining regardless of flag_wpa.
2771 (cgraph_decide_inlining_of_small_functions): Likewise.
2772 (cgraph_decide_inlining): Likewise.
2773 (inline_read_summary): Likewise.
2774
2775 2009-11-18 Jan Hubicka <jh@suse.cz>
2776
2777 * predict.c (compute_function_frequency): Export.
2778 * predict.h (compute_function_frequency): Declare.
2779 * tree-optimize.c (execute_fixup_cfg): Rescale frequencies.
2780
2781 2009-11-18 Martin Jambor <mjambor@suse.cz>
2782
2783 * passes.c (ipa_write_summaries): Call renumber_gimple_stmt_uids
2784 on all nodes we write summaries for.
2785
2786 2009-11-18 Shujing Zhao <pearly.zhao@oracle.com>
2787
2788 PR middle-end/22201
2789 * params.def (PARAM_INLINE_UNIT_GROWTH, PARAM_IPCP_UNIT_GROWTH)
2790 (PARAM_EARLY_INLINING_INSNS, PARAM_IRA_MAX_LOOPS_NUM)
2791 (PARAM_IRA_MAX_CONFLICT_TABLE_SIZE)
2792 (PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP)
2793 (PARAM_MIN_INSN_TO_PREFETCH_RATIO)
2794 (PARAM_PREFETCH_MIN_INSN_TO_MEM_RATIO)
2795 (PARAM_IPA_SRA_PTR_GROWTH_FACTOR): Uppercase the first letter of the
2796 description string.
2797
2798 2009-11-18 Jakub Jelinek <jakub@redhat.com>
2799
2800 * dwarf2out.c (loc_list_from_tree): Don't call rtl_for_decl_location
2801 unnecessarily.
2802 (rtl_for_decl_location): Try harder to get a rtl for TREE_STATIC vars.
2803
2804 PR c++/3187
2805 * cgraph.h (struct cgraph_node): Add same_body and same_body_alias
2806 fields.
2807 (cgraph_same_body_alias, cgraph_remove_same_body_alias): New
2808 prototypes.
2809 * cgraphunit.c (cgraph_expand_function, cgraph_emit_thunks,
2810 cgraph_materialize_all_clones): Handle same_body aliases.
2811 * cgraph.c (cgraph_allocate_node): New function.
2812 (cgraph_create_node): Use it.
2813 (cgraph_node_for_decl, cgraph_node, cgraph_get_node,
2814 cgraph_node_for_asm, cgraph_remove_node): Handle same_body aliases.
2815 (cgraph_same_body_alias, cgraph_remove_same_body_alias): New
2816 functions.
2817 * lto-cgraph.c (lto_output_node): Stream out same_body aliases.
2818 (input_node): Stream in same_body aliases.
2819 * lto-symtab.c (lto_cgraph_replace_node): Clear node pointers
2820 for same_body aliases.
2821 (lto_symtab_merge_cgraph_nodes_1): Handle same_body aliases.
2822
2823 2009-11-18 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2824
2825 PR other/39888
2826 * config/darwin.h: Use the extension stub libraries to access
2827 current libgcc_s features.
2828
2829 2009-11-18 Alexandre Oliva <aoliva@redhat.com>
2830
2831 PR debug/41926
2832 * tree-vect-loop.c (vect_loop_kill_debug_uses): New.
2833 (vect_transform_loop): Call it.
2834
2835 2009-11-18 Alexandre Oliva <aoliva@redhat.com>
2836
2837 * tree-ssa.c (insert_debug_temp_for_var_def): Fix handling of
2838 released SSA names.
2839
2840 2009-11-18 Alexandre Oliva <aoliva@redhat.com>
2841
2842 PR debug/41888
2843 PR debug/41886
2844 * graphite-scop-detection.c (stmt_simple_for_scop_p): Debug stmts
2845 are ok.
2846 * graphite-sese-to-poly.c (graphite_stmt_p): Likewise.
2847 (try_generate_gimple_bb): Skip debug stmts when finding data refs.
2848 * sese.c (sese_build_liveouts_bb): Skip debug stmts.
2849 (sese_bad_liveouts_use): New.
2850 (sese_reset_debug_liveouts_bb): New.
2851 (sese_build_liveouts): Use it.
2852 (rename_variables_in_stmt): Reset debug stmts rather than creating
2853 new vars for them.
2854 (expand_scalar_variable_stmt): Likewise.
2855
2856 2009-11-18 Alexandre Oliva <aoliva@redhat.com>
2857
2858 * df-scan.c (df_ref_create): Don't mark BB as dirty on debug insns.
2859 (df_ref_remove): Likewise.
2860
2861 2009-11-17 Jan Hubicka <jh@suse.cz>
2862
2863 * ipa-struct-reorg.c (update_cgraph_with_malloc_call): Fix profile
2864 info.
2865
2866 2009-11-17 Eric Botcazou <ebotcazou@adacore.com>
2867
2868 * toplev.c (process_options): Remove dead code.
2869 * doc/invoke.texi (-frename-registers): Mention -fpeel-loops.
2870
2871 2009-11-17 Rafael Avila de Espindola <espindola@google.com>
2872
2873 * lto-symtab.c (lto_symtab_resolve_symbols): Always initialize the
2874 nodes.
2875
2876 2009-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2877
2878 PR tree-optimization/41857
2879 * tree-ssa-address.c (move_hint_to_base): Use void pointer to
2880 TYPE's address space instead of pointer to TYPE.
2881
2882 2009-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2883
2884 * reload.c (find_reloads_address): Fix typo.
2885
2886 2009-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2887
2888 * config/spu/spu.c (get_pic_reg): Use LAST_ARG_REGNUM as PIC
2889 registers in leaf functions if possible.
2890
2891 2009-11-17 Maxim Kuvyrkov <maxim@codesourcery.com>
2892
2893 * config/m68k/m68k-devices.def: Add MCF5441x family.
2894
2895 2009-11-17 Jan Hubicka <jh@suse.cz>
2896
2897 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not access
2898 removed node.
2899 * cgraphunit.c (verify_cgraph_node): Verify frequencies for match.
2900
2901 2009-11-17 Uros Bizjak <ubizjak@gmail.com>
2902
2903 * config/i386/predicates.md (x86_64_szext_general_operand): Do not
2904 nest ior expressions.
2905 (x86_64_szext_nonmemory_operand): Ditto.
2906 (call_insn_operand): Ditto.
2907
2908 2009-11-16 Alexandre Oliva <aoliva@redhat.com>
2909
2910 * stmt.c (expand_asm_stmt): Get locus from stmt.
2911
2912 2009-11-16 Alexandre Oliva <aoliva@redhat.com>
2913
2914 * tree-cfg.c (gimple_redirect_edge_and_branch) <case GIMPLE_ASM>:
2915 Create the decl label for the new dest block on demand. Require
2916 a fallthrough edge if no asm labels were redirected.
2917
2918 2009-11-16 Uros Bizjak <ubizjak@gmail.com>
2919
2920 * config/i386/i386.md (cbranchsi4): Use nonimmediate_operand for
2921 operand 1 predicate.
2922 (cstoresi4): Ditto for operand 2.
2923 (cbranch<mode>4): Macroize expander from cbranch{qi,hi,si,di,ti}4
2924 patterns using SDWIM mode iterator.
2925 (cstore<mode>4): Macroize expander from cstore{qi,hi,si,di}4 patterns
2926 using SWIM mode iterator.
2927 (cmpdi_1): Rename from cmpdi_1_rex64.
2928 (cmp<mode>_1): Macroize expander from cmp{si,di}_1 patterns using
2929 SWI48 mode iterator.
2930 (*cmp<mode>_1): Macroize insn from *cmp{qi,hi,si,di}_1_insn patterns
2931 using SWI mode iterator.
2932 (*cmp<mode>_ccno_1): Ditto from *cmp{qi,hi,si,di}_ccno_1.
2933 (*cmp<mode>_minus_1): Ditto from *cmp{qi,hi,si,di}_minus_1.
2934 (*cmpqi_ext_3_insn): Make private.
2935 (*cmpqi_ext_3_insn_rex64): Make private.
2936 (cmpstrnsi): Update for renamed cmpdi_1_rex64.
2937 * config/i386/predicates.md (cmpsi_operand): Remove.
2938
2939 2009-11-16 Paul Brook <paul@codesourcery.com>
2940
2941 * doc/invoke.texi: Document ARM VFPv4 based FPUs.
2942 * config/arm/arm.c (all_fpus): Add VFPv4 entries.
2943
2944 2009-11-14 Jan Hubicka <jh@suse.cz>
2945
2946 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use proper
2947 ENTRY_BLOCK_PTR.
2948 * cgraph.c (cgraph_clone_edge): Avoid freq_scale 0 to completely
2949 zero out all callees.
2950 * cgraphunit.c (verify_cgraph_node): Verify cgraph nodes for
2951 frequency and count match.
2952 * ipa-inline.c (update_noncloned_frequencies): New function.
2953 (cgraph_clone_inlined_nodes): Use it.
2954 * tree-inline.c (copy_bb): Fix frequency scaling; output
2955 diagnostic on frequency mismatches to dump file.
2956 (initialize_cfun): Do not scale frequency; fix count scaling;
2957 initialize entry and exit block frequencies; copy profile info.
2958 (copy_cfg_body): Use frequency_scale as argument; fix count scaling.
2959 (copy_body): Use frequency_scale as argument.
2960 (expand_call_inline): Compute frequency scale and output diagnostic
2961 to dump file.
2962 (delete_unreachable_blocks_update_callgrah): Remove checking that
2963 has to be done after edge redirection.
2964 (tree_function_versioning): Update initialize_cfun and copy_body call.
2965
2966 2009-11-14 Jan Hubicka <jh@suse.cz>
2967
2968 * cgraph.c (cgraph_release_function_body): Update use of
2969 ipa_transforms_to_apply.
2970 (cgraph_remove_node): Remove ipa_transforms_to_apply.
2971 * cgraph.h (struct cgraph_node): Add ipa_transforms_to_apply.
2972 * cgraphunit.c (save_inline_function_body): Clear ipa_transforms for
2973 copied body.
2974 (cgraph_materialize_clone): Remove original if dead.
2975 * lto-streamer-in.c (lto_read_body): Remove FIXME and
2976 ipa_transforms_to_apply hack.
2977 * function.h (struct function): Add ipa_transforms_to_apply.
2978 * ipa.c (cgraph_remove_unreachable_nodes): Handle dead clone originals.
2979 * tree-inline.c (copy_bb): Update sanity check.
2980 (initialize_cfun): Do not copy ipa_transforms_to_apply.
2981 (expand_call_inline): remove dead clone originals.
2982 (tree_function_versioning): Merge transformation queues.
2983 * passes.c (add_ipa_transform_pass): Remove.
2984 (execute_one_ipa_transform_pass): Update ipa_transforms_to_apply
2985 tracking.
2986 (execute_all_ipa_transforms): Update.
2987 (execute_one_pass): Update.
2988
2989 2009-11-14 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
2990
2991 PR target/21078, 21080
2992 * config/avr/avr.c (avr_return_addr_rtx): New function for
2993 builtin_return_address.
2994 (expand_prologue): Calculate stack usage.
2995 (avr_asm_function_end_prologue): Output stack size and offset label.
2996 * config/avr/avr.h (RETURN_ADDR_RTX): Replace.
2997 (machine_function): Add stack_usage.
2998 * config/avr/avr-protos.h (avr_return_addr_rtx): New function.
2999
3000 2009-11-14 Anatoly Sokolov <aesok@post.ru>
3001
3002 * config/iq2000/iq2000.c (iq2000_function_value): Make static, add
3003 new 'outgoing' argument.
3004 (iq2000_libcall_value, iq2000_function_value_regno_p): New functions.
3005 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
3006 * config/iq2000/iq2000.h (FUNCTION_VALUE_REGNO_P): Redefine, use
3007 iq2000_function_value_regno_p.
3008 (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
3009 * config/iq2000/iq2000-protos.h (iq2000_function_value_regno_p):
3010 Declare.
3011
3012 2009-11-14 Richard Earnshaw <rearnsha@arm.com>
3013
3014 PR target/42031
3015 * arm.md (adddi_sesidi_di): Place tied contraint first.
3016 (adddi_zesidi_di, subdi_di_zesidi, subdi_di_sesidi): Likewise
3017 (subdi_zesidi_di, subdi_sesidi_di): Likewise.
3018 (mulsi3_compare0, mulsi_compare0_scratch): Likewise.
3019 (mulsi3addsi, mulsi3addsi_compare0): Likewise.
3020 (mulsi3addsi_compare0_scratch, smulsi3_highpart_nov6): Likewise.
3021 (umulsi3_highpart_nov6, anddi_zesidi_di, anddi_sesdi_di): Likewise.
3022 (anddi_notdi_di, iordi_sesidi_di, xordi_sesidi_di): Likewise.
3023 (andsi_iorsi3_notsi, arm_ashldi3_1bit, arm_ashrdi3_1_bit): Likewise.
3024 (arm_lshrdi3_1bit, one_cmpldi2): Likewise.
3025
3026 2009-11-14 Uros Bizjak <ubizjak@gmail.com>
3027
3028 * config/i386/predicates.md (call_register_no_elim_operand):
3029 New predicate. Reject stack register as valid call operand
3030 for 32bit targets.
3031 (call_insn_operand): Use call_register_no_elim_operand.
3032
3033 2009-11-13 Richard Henderson <rth@redhat.com>
3034
3035 * function.c (stack_protect_prologue): Don't bypass expand_expr
3036 for stack_protect_guard and guard_decl.
3037 (stack_protect_epilogue): Likewise.
3038
3039 2009-11-13 Jan Hubicka <jh@suse.cz>
3040
3041 * ipa.c (function_and_variable_visibility): Clear COMDAT on functions
3042 when to PUBLIC is set.
3043
3044 2009-11-13 Jakub Jelinek <jakub@redhat.com>
3045
3046 PR middle-end/42029
3047 * gimplify.c (gimplify_omp_atomic): Set DECL_GIMPLE_REG_P on
3048 tmp_load if needed.
3049
3050 2009-11-13 Uros Bizjak <ubizjak@gmail.com>
3051
3052 PR target/41900
3053 * config/i386/i386.md (*call_pop_1, *call_1, *call_value_pop_1,
3054 *call_value_1): Use "lsm" as operand 1 constraint.
3055 * config/i386/predicates.md (call_insn_operand): Depend on
3056 index_register_operand to avoid %esp register.
3057
3058 2009-11-13 Uros Bizjak <ubizjak@gmail.com>
3059
3060 Revert:
3061 2009-11-03 Uros Bizjak <ubizjak@gmail.com>
3062
3063 PR target/41900
3064 * config/i386/i386.h (ix86_arch_indices) <X86_ARCH_CALL_ESP>: New.
3065 (TARGET_CALL_ESP): New define.
3066 * config/i386/i386.c (initial_ix86_tune_features): Initialize
3067 X86_ARCH_CALL_ESP.
3068 * config/i386/i386.md (*call_pop_1_esp, *call_1_esp,
3069 *call_value_pop_1_esp, *call_value_1_esp): Rename from *call_pop_1,
3070 *call_1, *call_value_pop_1 and *call_value_1. Depend on
3071 TARGET_CALL_ESP.
3072 (*call_pop_1, *call_1, *call_value_pop_1, *call_value_1):
3073 New patterns, use "lsm" as operand 1 constraint.
3074 * config/i386/predicates.md (call_insn_operand): Depend on
3075 index_register_operand for !TARGET_CALL_ESP to avoid %esp register.
3076
3077 2009-11-13 Jason Merrill <jason@redhat.com>
3078
3079 PR debug/26965
3080 * dwarf2out.c (gen_variable_die): Don't worry about DECL_COMDAT.
3081 Don't emit a second declaration at any scope.
3082
3083 2009-11-13 Andrey Belevantsev <abel@ispras.ru>
3084
3085 PR rtl-optimization/41697
3086 * sel-sched-ir.c (fallthru_bb_of_jump): Bail out when a block with
3087 a conditional jump has a single successor.
3088
3089 2009-11-13 Andrey Belevantsev <abel@ispras.ru>
3090
3091 * sched-deps.c (init_deps): New parameter lazy_reg_last. Don't
3092 allocate reg_last when in case lazy_reg_last is true.
3093 (init_deps_reg_last): New.
3094 (free_deps): When max_reg is 0, this context is already freed.
3095 * sched-int.h (init_deps_reg_last): Export.
3096 (init_deps): Update prototype.
3097 * sched-ebb.c (schedule_ebb): Update the call to init_deps.
3098 * sched-rgn.c (sched_rgn_compute_dependencies): Likewise.
3099 * ddg.c (build_intra_loop_deps): Likewise.
3100 * sel-sched-ir.c (copy_deps_context, create_deps_context,
3101 reset_deps_context, deps_init_id): Likewise.
3102 (init_first_time_insn_data): Lazy allocate INSN_DEPS_CONTEXT.
3103 (free_data_for_scheduled_insn): New, break down from ...
3104 (free_first_time_insn_data): ... here.
3105 (has_dependence_p): Allocate reg_last now, when it is needed.
3106 (extend_insn_data): When maximal LUID is big enough, allocate
3107 per-insn data in smaller chunks.
3108 * sel-sched-ir.h (free_data_for_scheduled_insn): Export.
3109 * sel-sched.c (update_seqnos_and_stage): Free INSN_DEPS_CONTEXT
3110 in scheduled insn.
3111
3112 2009-11-13 Uros Bizjak <ubizjak@gmail.com>
3113
3114 * config/i386/i386.md (call_value): Fix comment.
3115 (sibcall_value): Ditto.
3116
3117 2009-11-13 Eric Botcazou <ebotcazou@adacore.com>
3118
3119 * config/i386/linux-unwind.h (x86_frob_update_context): New function.
3120 (MD_FROB_UPDATE_CONTEXT): Define.
3121
3122 2009-11-12 Eric Botcazou <ebotcazou@adacore.com>
3123 Laurent GUERBY <laurent@guerby.net>
3124
3125 * config/sparc/linux-unwind.h (sparc64_fallback_frame_state): Tidy.
3126 Do not schedule an %sp restore. Compensate for RETURN_ADDR_OFFSET.
3127 (sparc_fallback_frame_state): Tidy. Compensate for RETURN_ADDR_OFFSET.
3128
3129 2009-11-12 Jan Hubicka <jh@suse.cz>
3130
3131 * ipa.c (function_and_variable_visibility): Fix my accidentail commit
3132 and clear DECL_COMMON on localized declarations.
3133
3134 2009-11-12 Bernd Schmidt <bernd.schmidt@analog.com>
3135
3136 PR rtl-opt/38582
3137 * regrename.c (struct du_head): New structure; some elements moved
3138 from...
3139 (struct du_chain): ... this one.
3140 (open_chains, closed_chains): Now of type struct du_head *.
3141 (do_replace): Accept du_head argument, not du_chain. All callers
3142 changed. Modified code to match new data structures.
3143 (build_def_use): Return a list of du_head structures. Modified code
3144 to match new data structures.
3145 (dump_def_use_chain): Accept du_head argument, not du_chain. All
3146 callers changed. Modified code to match new data structures.
3147 (merge_overlapping_regs): Accept du_head argument, not du_chain. All
3148 callers changed. Modified code to match new data structures.
3149 (scan_rtx_reg): Change type of this_regno and this_nregs to unsigned.
3150 Allocate a du_head structure as well as a du_chain when creating a
3151 new chain. Modified other code to match new data structures.
3152
3153 2009-11-12 Jan Hubicka <jh@suse.cz>
3154
3155 * cgraph.h (varpool_node_name): Declare.
3156 * cgraphunit.c (process_function_and_variable_attributes): Set
3157 force_output flag on used variables.
3158 * ipa.c (function_and_variable_visibility): Dump externally visible
3159 and needed variables.
3160 * varpool.c (varpool_node_name): Export.
3161 (decide_is_variable_needed): Check COMDAT for externally visible vars;
3162 ignore needed flag.
3163
3164 2009-11-12 Uros Bizjak <ubizjak@gmail.com>
3165
3166 PR middle-end/41930
3167 * simplify-rtx.c (simplify_replace_fn_rtx) <case 'e'>: Skip
3168 processing if XEXP (x, i) is NULL.
3169
3170 2009-11-12 Jan Hubicka <jh@suse.cz>
3171
3172 * ipa.c (function_and_variable_visibility): Verify that WEAK || COMMON
3173 imply PUBLIC || EXTERNAL.
3174
3175 2009-11-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
3176
3177 PR middle-end/41440
3178 * cfgexpand.c (expand_gimple_basic_block): Append NOP to a fallthru,
3179 single successor block, ending with jump created by RTL expander.
3180
3181 2009-11-11 Jan Hubicka <jh@suse.cz>
3182
3183 PR middle-end/41729
3184 * ipa.c (function_and_variable_visibility): Do not privatize COMDAT
3185 and WEAK variables at -fwhole-program.
3186
3187 PR middle-end/41735
3188 * ipa.c (whole_program_function_and_variable_visility): COMDAT
3189 functions/variables are not needed even if they are externally visible.
3190
3191 2009-11-11 Jan Hubicka <jh@suse.cz>
3192
3193 (patch by Richard Guenther)
3194 * lto-streamer-out.c (output_function): Output head of argument list
3195 earlier.
3196 * lto-streamer-in.c (input_function): Re-map arguments into merged
3197 declaration.
3198
3199 2009-11-11 Jan Hubicka <jh@suse.cz>
3200
3201 * lto-cgraph.c: Include gcov-io.h
3202 (output_profile_summary): New function.
3203 (output_cgraph): Use it.
3204 (input_profile_summary): New function.
3205 (input_cgraph): Use it.
3206 * coverage.c (build_ctr_info_value): Use varpool; initalize
3207 DECL_ASSEMBLER_NAME.
3208 (create_coverage): Likewise.
3209 * tree-profile.c (tree_init_ic_make_global_vars): Likewise.
3210 (tree_init_edge_profiler): Likewise.
3211 * Makefile.in (lto-cgraph.o): Add dependency on gcov-io.h.
3212
3213 2009-11-11 Kai Tietz <kai.tietz@onevision.com>
3214
3215 * config/i386/cygming.h (HANDLE_PRAGMA_PUSH_POP_MACRO): Removed.
3216 * c-pragma.c (def_pragma_macro_value): Likewise.
3217 (def_pragma_macro): Likewise.
3218 (pushed_macro_table): Likewise.
3219 (HANDLE_PRAGMA_PUSH_POP_MACRO): Remove guarded code.
3220 * doc/tm.texi (HANDLE_PRAGMA_PUSH_POP_MACRO): Removed.
3221
3222 2009-11-11 Basile Starynkevitch <basile@starynkevitch.net>
3223
3224 * doc/plugins.texi (Registering custom attributes): section
3225 renamed as (Registering custom attributes or pragmas).
3226 Mentions custom attributes & pragmas, and c_register_pragma, with
3227 a small example.
3228 * doc/cpp.texi (Pragmas): Mentions that plugins can provide their
3229 pragmas.
3230 * doc/extend.texi (Function Attributes): Mentions that plugin can
3231 provide their attributes.
3232
3233 2009-11-11 Jon Beniston <jon@beniston.com>
3234
3235 * config.gcc: Add lm32 elf and uclinux targets.
3236 * config/lm32: New directory.
3237 * config/lm32/lm32.c: New file.
3238 * config/lm32/lm32.h: New file.
3239 * config/lm32/lm32.md: New file.
3240 * config/lm32/lm32.opt: New file.
3241 * config/lm32/lm32-protos.h: New file.
3242 * config/lm32/constraints.md: New file.
3243 * config/lm32/predicates.md: New file.
3244 * config/lm32/sfp-machine.h: New file.
3245 * config/lm32/t-fprules-softfp: New file.
3246 * config/lm32/uclinux-elf.h: New file.
3247 * doc/invoke.texi: Document lm32 options.
3248 * doc/contrib.texi: Document lm32 porter.
3249 * doc/install.texi: Document lm32 targets.
3250
3251 2009-11-11 Martin Jambor <mjambor@suse.cz>
3252
3253 PR lto/41932
3254 * ipa-prop.c (ipa_update_after_lto_read): Call
3255 ipa_check_create_node_params and ipa_check_create_edge_args. Also
3256 call ipa_initialize_node_params instead of ipa_populate_param_decls.
3257
3258 2009-11-11 Daniel Jacobowitz <dan@codesourcery.com>
3259
3260 * config/arm/arm.c (neon_vdup_constant, neon_make_constant): New.
3261 (neon_expand_vector_init): Use them. Also handle non-constant
3262 vectors with identical elements and vectors with only one
3263 non-constant element.
3264 (arm_print_operand): Handle 'y' modifier.
3265 * config/arm/arm-protos.h (neon_make_constant): Declare.
3266 * config/arm/neon.md (neon_vdup_n<mode>): Split into two
3267 patterns. Use VX instead of VDQW for the first one. Allow
3268 a VFP alternative and V32 modes for the second one.
3269 * config/arm/neon.ml (shape_elt): Add Alternatives.
3270 (ops): Use Alternatives for vdup lane instructions.
3271 * config/arm/neon-testgen.ml (analyze_shape): Handle Alternatives.
3272 * config/arm/vec-common.md (mov<mode>): Use neon_make_constant.
3273
3274 2009-11-11 Daniel Jacobowitz <dan@codesourcery.com>
3275
3276 * config/arm/neon.md (*neon_mov<mode>): Reject two non-register
3277 operands.
3278 (movti, mov<mode>): Call force_reg on one operand if required.
3279 * config/arm/vec-common.md (mov<mode>): Likewise.
3280
3281 2009-11-11 Daniel Jacobowitz <dan@codesourcery.com>
3282
3283 * config/arm/arm.c (arm_override_options): Enable scheduling for
3284 Thumb-2.
3285
3286 2009-11-10 Eric Botcazou <ebotcazou@adacore.com>
3287
3288 PR target/10127
3289 PR ada/20548
3290 * expr.h (anti_adjust_stack_and_probe): Declare.
3291 * explow.c (anti_adjust_stack_and_probe): Make global, add ADJUST_BACK
3292 parameter and rewrite head comment.
3293 (allocate_dynamic_stack_space): Adjust call to above function.
3294 * function.c (expand_function_end): Handle STACK_CHECK_MOVING_SP.
3295
3296 * tree.h (dwarf2out_args_size): Delete.
3297 * dwarf2out.c (dwarf2out_args_size): Make static and move around.
3298 (dwarf2out_args_size_adjust): Delete prototype and move around.
3299 (dwarf2out_frame_debug_expr): Do not record arg size adjustments for
3300 ACCUMULATE_OUTGOING_ARGS targets.
3301
3302 2009-11-10 Eric Botcazou <ebotcazou@adacore.com>
3303
3304 * config/sparc/sparc.c (print_operand) <')'>: Test for a non-null
3305 DECL_SIZE of DECL_RESULT before evaluating it.
3306
3307 2009-11-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3308
3309 PR tree-optimization/41987
3310 * fold-const.c (const_binop): Avoid using fold_buildN().
3311
3312 2009-11-10 Martin Jambor <mjambor@suse.cz>
3313
3314 * tree-pass.h (struct ipa_opt_pass_d): Added stmt_fixup field.
3315 (execute_all_ipa_stmt_fixups): Declare.
3316 * ipa-cp.c (pass_ipa_cp): Added stmt_fixup value.
3317 * ipa-inline.c (pass_ipa_inline): Likewise.
3318 * ipa-pure-const.c (pass_ipa_pure_cons): Likewise.
3319 * ipa-reference.c (pass_ipa_reference): Likewise.
3320 * ipa.c (pass_ipa_whole_program_visibility): Likewise.
3321 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Likewise.
3322 (pass_ipa_lto_finish_out): Likewise.
3323 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Likewise.
3324 * passes.c (execute_ipa_stmt_fixups): New function.
3325 (execute_all_ipa_stmt_fixups): New function.
3326 * lto-streamer-in.c (input_function): Call execute_all_ipa_stmt_fixups.
3327
3328 2009-11-10 Eric Botcazou <ebotcazou@adacore.com>
3329
3330 PR ada/20548
3331 * explow.c (probe_stack_range): Fix typo.
3332 * config/sparc/sparc.md (probe_stack): New expander.
3333
3334 2009-11-09 Dave Korn <dave.korn.cygwin@gmail.com>
3335
3336 * config/i386/cygwin.h (LINK_SPEC): Add -tsaware flag if !mno-cygwin.
3337
3338 2009-11-09 Jason Merrill <jason@redhat.com>
3339
3340 * gdbinit.in (pgq): New function for printing gimple sequence.
3341
3342 2009-11-09 Paul Brook <paul@codesourcery.com>
3343 Daniel Jacobowitz <dan@codesourcery.com>
3344 Sandra Loosemore <sandra@codesourcery.com>
3345
3346 * doc/extend.texi (Half-Precision): Update wording to reflect
3347 that there are now multiple -mfpu options that enable fp16
3348 hardware support.
3349 * doc/invoke.texi: Update list of ARM -mfpu= options.
3350 * config.gcc: Update ARM --with-fpu option list.
3351 * config/arm/arm.c (all_fpus): Add vfpv3-fp16, vfpv3-d16-fp16,
3352 vfpv3xd and vfpv3xd-fp16.
3353 (use_vfp_abi): New function.
3354 (aapcs_vfp_is_call_or_return_candidate): Avoid double precision regs
3355 when undesirable.
3356 (aapcs_vfp_is_return_candidate, aapcs_vfp_is_call_candidate,
3357 aapcs_vfp_allocate_return_reg): Use use_vfp_abi.
3358 (arm_rtx_costs_1, arm_size_rtx_costs, arm_fastmul_rtx_costs,
3359 arm_9e_rtx_costs): Only expect double-precision operations if the FPU
3360 provides them.
3361 (coproc_secondary_reload_class): Reload HFmode via GENERAL_REGS if no
3362 NEON.
3363 (arm_print_operand): Handle 'p' modifier.
3364 (arm_hard_regno_mode_ok): : Allow HFmode in VFP registers if
3365 TARGET_FP16.
3366 * config/arm/arm.h (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Define.
3367 (TARGET_FP16): Define.
3368 * config/arm/vfp.md: Disable double-precision patterns if the FPU
3369 does not provide them.
3370 (arm_movdi_vfp, thumb2_movdi_vfp): Use fcpys to move
3371 double-precision values on a single-precision FPU.
3372 (movdf_vfp, thumb2_movdf_vfp): Likewise. Use "Dy" for
3373 double-precision constants.
3374 (movhf_vfp_neon): New pattern (was movhf_vfp).
3375 (movhf_vfp): Remove NEON instructions.
3376 * config/arm/constraints.md: Add new "Dy" constraint for
3377 double-precision constants. Update description of "Dv".
3378 * config/arm/arm.md: Disable double-precision patterns if the FPU
3379 does not provide them
3380
3381 2009-11-09 Jakub Jelinek <jakub@redhat.com>
3382
3383 * config/i386/i386.c (print_operand) <case 'D'>: Fix formatting.
3384 (print_operand) <case 'Y'>: Likewise. Fix a pasto in operand lossage
3385 diagnostics.
3386
3387 2009-11-08 H.J. Lu <hongjiu.lu@intel.com>
3388
3389 * collect2.c (main): Search PLUGIN_LD for plugin linker.
3390
3391 * configure.ac (--with-plugin-ld): New. Default to ld.
3392 * configure: Regenerated.
3393 * config.in: Likewise.
3394
3395 * exec-tool.in (ORIGINAL_PLUGIN_LD_FOR_TARGET): New.
3396 (collect-ld): Use ORIGINAL_PLUGIN_LD_FOR_TARGET for -plugin.
3397
3398 2009-11-08 Jonathan Gray <jsg@openbsd.org>
3399
3400 * config/openbsd-stdint.h: Change to reflect what
3401 c_common_nodes_and_builtins expects.
3402
3403 2009-11-08 Paolo Carlini <paolo.carlini@oracle.com>
3404
3405 * builtins.c (apply_args_reg_offset): Remove commented out delaration.
3406
3407 2009-11-08 Jakub Jelinek <jakub@redhat.com>
3408
3409 PR target/41985
3410 * config/i386/i386.c (get_some_local_dynamic_name): Don't assert
3411 function contains at least one local dynamic name.
3412 (print_operand) <case '&'>: Instead output operand lossage diagnostics
3413 here if that happens.
3414
3415 2009-11-08 Zbigniew Chamski <zbigniew.chamski@gmail.com>
3416 Joern Rennecke <amylaar@spamcop.net>
3417
3418 * cfgrtl.c (pass_free_cfg): Add pass name.
3419 * cgraphbuild.c (pass_build_cgraph_edges): Likewise.
3420 (pass_rebuild_cgraph_edges, pass_remove_cgraph_callee_edges): Likewise.
3421 * dce.c (pass_ud_rtl_dce, pass_fast_rtl_dce): Change pass name.
3422 * df-core.c (pass_df_initialize_no_opt): Likewise.
3423 * except.c (pass_rtl_eh): Likewise.
3424 * function.c (pass_init_function, pass_leaf_regs): Likewise.
3425 * gcse.c (pass_rtl_pre): Change pass name.
3426 * passes.c (pass_postreload): Add pass name.
3427 (make_pass_instance): Don't use duplicate-tracking logic for
3428 names starting with '*'.
3429 (next_pass_1): Assert that pass has a name.
3430 (register_one_dump_file): If there is an space in the name,
3431 skip past it.
3432 * predict.c (pass_strip_predict_hints): Add pass name.
3433 * reg-stack.c (pass_stack_regs): Likewise.
3434 * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
3435 * tree-cfg.c (pass_warn_function_return,
3436 pass_warn_function_noreturn): Add pass name.
3437 * tree-dfa.c (pass_referenced_vars): Likewise.
3438 * tree-optimize.c (pass_cleanup_cfg_post_optimizing):
3439 Fix whitespace before comment.
3440 (pass_fixup_cfg): Add pass name, fix whitespace before comment.
3441 (pass_init_datastructures): Add pass name.
3442 * tree-ssa-loop.c (pass_record_bounds): Likewise.
3443 * tree-ssa.c (pass_early_warn_uninitialized,
3444 pass_late_warn_uninitialized): Likewise.
3445 * tree.c (pass_ipa_free_lang_data): Likewise.
3446 * doc/passes.texi (pass manager): Document how to disambiguate
3447 pass names.
3448
3449 2009-11-08 Paolo Bonzini <bonzini@gnu.org>
3450
3451 * df-problems.c: Fix documentation for forward simulation of LR.
3452 (df_simulate_one_insn_forwards): Use df_simulate_find_defs.
3453 (df_simulate_finalize_forwards): Remove.
3454 * df.h (df_simulate_finalize_forwards): Remove.
3455
3456 2009-11-08 Richard Guenther <rguenther@suse.de>
3457
3458 * tree-ssa-structalias.c (build_succ_graph): Properly make
3459 variables escape if they are stored to anything.
3460
3461 2009-11-08 Richard Guenther <rguenther@suse.de>
3462
3463 PR rtl-optimization/41928
3464 * loop-invariant.c (free_loop_data): If we didn't allocate
3465 loop data do not try to free it.
3466
3467 2009-11-07 Jason Merrill <jason@redhat.com>
3468
3469 * tree.c (reconstruct_complex_type): Preserve attributes.
3470
3471 2009-11-07 Richard Guenther <rguenther@suse.de>
3472
3473 * tree-ssa-structalias.c (build_succ_graph): Feed stores
3474 to anything only to variables that can take pointers.
3475 (get_constraint_for_ssa_var): Properly exclude full
3476 variables from expanding.
3477 (first_vi_for_offset): Avoid overflow in arithmetic.
3478 (first_or_preceding_vi_for_offset): Likewise.
3479 (count_num_arguments): Fix implementation.
3480 (gate_ipa_pta): Do not run when not optimizing.
3481
3482 2009-11-07 David Binderman <dcb314@hotmail.com>
3483
3484 * builtins.c (apply_args_size, expand_builtin_mathfn, expand_powi,
3485 expand_builtin_expect, maybe_emit_sprintf_chk_warning): Remove some
3486 set but not used variables.
3487 (apply_args_reg_offset): Comment out as unused.
3488 * calls.c (flags_from_decl_or_type): Likewise.
3489 * genautomata.c (check_regexp_units_distribution): Likewise.
3490
3491 2009-11-07 Uros Bizjak <ubizjak@gmail.com>
3492
3493 * config/i386/sse.md (xop_pmacsww, xop_pmacssww, xop_pmacsdd,
3494 xop_pmacssdd, xop_pmacssdql, xop_pmacssdqh, xop_pmacsdql,
3495 *xop_pmacsdql_mem, xop_pmacsdqh, *xop_pmacsdqh_mem, xop_pmacsswd,
3496 xop_pmacswd, xop_pmadcsswd, xop_pmadcswd, xop_pcmov_<mode>,
3497 xop_pcmov_<mode>256, xop_pperm, xop_pperm_pack_v2di_v4si,
3498 xop_pperm_pack_v4si_v8hi, xop_pperm_pack_v8hi_v16qi): Compress
3499 operand alternatives.
3500
3501 2009-11-06 Michael Matz <matz@suse.de>
3502
3503 PR middle-end/41963
3504 * tree-ssa-math-opts.c (execute_cse_reciprocals): Check all uses
3505 of a potential reciprocal to really be reciprocals.
3506
3507 2009-11-06 Jakub Jelinek <jakub@redhat.com>
3508
3509 * config/i386/x86intrin.h: Include fma4intrin.h, xopintrin.h and
3510 lwpintrin.h after immintrin.h.
3511 * config/i386/fma4intrin.h (__v8sf, __v4df, __m256, __m256d): Remove
3512 typedefs.
3513
3514 PR middle-end/41935
3515 * c-common.c (fold_offsetof_1) <case ARRAY_REF>: Don't crash for VLAs
3516 or non-constant index, allow index one past the last element and
3517 allow exceeding array bound in arrays that might be used as flexible
3518 array members.
3519
3520 2009-11-05 Richard Henderson <rth@redhat.com>
3521
3522 * config/i386/ia32intrin.h: Protect CRC32 builtins with __SSE4_2__.
3523
3524 2009-11-05 Paul Brook <paul@codesourcery.com>
3525
3526 * config/arm/arm.c (arm_fp_model, arm_fpu_arch, arm_fpu_tune): Remove.
3527 (arm_fpu_desc): New.
3528 (all_fpus): Add FPU details.
3529 (fp_model_for_fpu): Remove.
3530 (arm_override_options): Set and use arm_fpu_desc and arm_fpu_attr.
3531 (arm_output_epilogue, arm_save_coproc_regs): Use TARGET_FPA_EMU2.
3532 (arm_file_start): Use arm_fpu_desc.
3533 * config/arm/arm.h (TARGET_FPA, TARGET_MAVERICK, TARGET_VFP,
3534 TARGET_VFPD32, TARGET_VFP3, TARGET_NEON_FP16, TARGET_NEON): Use
3535 arm_fpu_desc.
3536 (TARGET_FPA_EMU2): Define.
3537 (arm_fp_model, fputype, arm_fpu_tune): Remove.
3538 (vfp_reg_type, arm_fpu_desc): New.
3539 * config/arm/arm.md (attr fpu): Simplify.
3540 * config/arm/fpa.md (movxf_fpa): Use TARGET_FPA_EMU2.
3541 * config/arm/linux-elf.h (FPUTYPE_DEFAULT): Use string value.
3542 * config/arm/bpabi.h (FPUTYPE_DEFAULT): Use string value.
3543 * config/arm/netbsd-elf.h (FPUTYPE_DEFAULT): Use string value.
3544 * config/arm/vxworks.h (FPUTYPE_DEFAULT): Use string value.
3545
3546 2009-11-05 Michael Matz <matz@suse.de>
3547
3548 * config/i386/i386.c (ix86_builtin_reciprocal): Remove dependency
3549 on TARGET_RECIP.
3550 * doc/invoke.texi (-mrecip): Clarify that we don't need -mrecip
3551 for 1/sqrtf.
3552
3553 2009-11-04 Jason Merrill <jason@redhat.com>
3554
3555 PR c++/36912
3556 * varasm.c (initializer_constant_valid_p): A PLUS_EXPR
3557 or MINUS_EXPR of REAL_TYPE is not a valid constant initializer.
3558 (output_constant): Avoid crash after error.
3559
3560 2009-11-05 Martin Jambor <mjambor@suse.cz>
3561
3562 * tree-sra.c (struct access): Changed comment of next_sibling field.
3563 (analyze_modified_params): Loop over accesses of a group rather than
3564 over all with the ame base, pass a common bitmap to
3565 walk_aliased_vdefs.
3566 (unmodified_by_ref_scalar_representative): Build link lists of
3567 accesses of a group.
3568 (splice_param_accesses): Likewise.
3569
3570 2009-11-04 Kenneth Zadeck <zadeck@naturalbridge.com>
3571
3572 * df-scan.c (df-uses-record): Add case zero_extract of mem.
3573
3574 2009-11-04 Eric Botcazou <ebotcazou@adacore.com>
3575
3576 PR target/10127
3577 PR ada/20548
3578 * config/i386/i386.md (probe_stack): New expander.
3579 (logical operation peepholes): Do not split stack checking probes.
3580
3581 2009-11-04 Harsha Jagasia <harsha.jagasia@amd.com>
3582 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3583
3584 * doc/invoke.texi (-mlwp): Add documentation.
3585 * doc/extend.texi (x86 intrinsics): Add LWP intrinsics.
3586 * config.gcc (i[34567]86-*-*): Include lwpintrin.h.
3587 (x86_64-*-*): Ditto.
3588 * config/i386/lwpintrin.h: New file, provide x86 compiler
3589 intrinisics for LWP.
3590 * config/i386/cpuid.h (bit_LWP): Define LWP bit.
3591 * config/i386/x86intrin.h: Add LWP check and lwpintrin.h.
3592 * config/i386/i386-c.c (ix86_target_macros_internal): Check
3593 ISA_FLAG for LWP.
3594 * config/i386/i386.h (TARGET_LWP): New macro for LWP.
3595 * config/i386/i386.opt (-mlwp): New switch for LWP support.
3596 * config/i386/i386.c (OPTION_MASK_ISA_LWP_SET): New.
3597 (OPTION_MASK_ISA_LWP_UNSET): New.
3598 (ix86_handle_option): Handle -mlwp.
3599 (isa_opts): Handle -mlwp.
3600 (enum pta_flags): Add PTA_LWP.
3601 (override_options): Add LWP support.
3602 (IX86_BUILTIN_LLWPCB16): New for LWP intrinsic.
3603 (IX86_BUILTIN_LLWPCB32): Ditto.
3604 (IX86_BUILTIN_LLWPCB64): Ditto.
3605 (IX86_BUILTIN_SLWPCB16): Ditto.
3606 (IX86_BUILTIN_SLWPCB32): Ditto.
3607 (IX86_BUILTIN_SLWPCB64): Ditto.
3608 (IX86_BUILTIN_LWPVAL16): Ditto.
3609 (IX86_BUILTIN_LWPVAL32): Ditto.
3610 (IX86_BUILTIN_LWPVAL64): Ditto.
3611 (IX86_BUILTIN_LWPINS16): Ditto.
3612 (IX86_BUILTIN_LWPINS32): Ditto.
3613 (IX86_BUILTIN_LWPINS64): Ditto.
3614 (enum ix86_special_builtin_type): Add LWP intrinsic support.
3615 (builtin_description): Ditto.
3616 (ix86_init_mmx_sse_builtins): Ditto.
3617 (ix86_expand_special_args_builtin): Ditto.
3618 * config/i386/i386.md (UNSPEC_LLWP_INTRINSIC): Add new UNSPEC for
3619 LWP support.
3620 (UNSPEC_SLWP_INTRINSIC): Ditto.
3621 (UNSPECV_LWPVAL_INTRINSIC): Ditto.
3622 (UNSPECV_LWPINS_INTRINSIC): Ditto.
3623 (lwp_llwpcbhi1): New lwp pattern.
3624 (lwp_llwpcbsi1): Ditto.
3625 (lwp_llwpcbdi1): Ditto.
3626 (lwp_slwpcbhi1): Ditto.
3627 (lwp_slwpcbsi1): Ditto.
3628 (lwp_slwpcbdi1): Ditto.
3629 (lwp_lwpvalhi3): Ditto.
3630 (lwp_lwpvalsi3): Ditto.
3631 (lwp_lwpvaldi3): Ditto.
3632 (lwp_lwpinshi3): Ditto.
3633 (lwp_lwpinssi3): Ditto.
3634 (lwp_lwpinsdi3): Ditto.
3635
3636 2009-11-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
3637 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
3638
3639 PR rtl-opt/41833
3640 * simplify-rtx.c (simplify_binary_operation_1): Simplify vec_select of
3641 a vec_duplicate.
3642
3643 2009-11-04 Richard Guenther <rguenther@suse.de>
3644 Rafael Avila de Espindola <espindola@google.com>
3645
3646 * gcc.c (process_command): Handle arguments name@offset.
3647
3648 2009-11-04 Harsha Jagasia <harsha.jagasia@amd.com>
3649 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3650
3651 * config.gcc (i[34567]86-*-*): Include xopintrin.h.
3652 (x86_64-*-*): Ditto.
3653 * config/i386/xopintrin.h: New file, provide common x86 compiler
3654 intrinisics for XOP.
3655 * config/i386/cpuid.h (bit_XOP): Define XOP bit.
3656 * config/i386/x86intrin.h: Add XOP check and xopintrin.h.
3657 * config/i386/i386-c.c(ix86_target_macros_internal): Check
3658 ISA_FLAG for XOP.
3659 * config/i386/i386.h(TARGET_XOP): New macro for XOP.
3660 * config/i386/i386.opt (-mxop): New switch for XOP support.
3661 * config/i386/i386.md (UNSPEC_XOP_UNSIGNED_CMP)
3662 (UNSPEC_XOP_TRUEFALSE)
3663 (UNSPEC_XOP_PERMUTE)
3664 (UNSPEC_FRCZ): Add new UNSPEC for XOP support.
3665 (PPERM_*): New constants for vpperm instruction.
3666 (xop_pcmov_<mode>): Add XOP conditional mov instructions.
3667 * config/i386/i386.c (OPTION_MASK_ISA_XOP_SET): New.
3668 (OPTION_MASK_ISA_XOP_UNSET): New.
3669 (OPTION_MASK_ISA_XOP_UNSET): Change definition to depend on XOP.
3670 (ix86_handle_option): Handle -mxop.
3671 (isa_opts): Handle -mxop.
3672 (enum pta_flags): Add PTA_XOP.
3673 (override_options): Add XOP support.
3674 (print_operand): Add code for XOP compare instructions.
3675 (ix86_expand_sse_movcc): Extend for XOP conditional move instruction.
3676 (ix86_expand_int_vcond): Extend for XOP compare instruction.
3677
3678 (IX86_BUILTIN_VPCMOV): New for XOP intrinsic.
3679 (IX86_BUILTIN_VPCMOV_V2DI): Ditto.
3680 (IX86_BUILTIN_VPCMOV_V4SI): Ditto.
3681 (IX86_BUILTIN_VPCMOV_V8HI): Ditto.
3682 (IX86_BUILTIN_VPCMOV_V16QI): Ditto.
3683 (IX86_BUILTIN_VPCMOV_V4SF): Ditto.
3684 (IX86_BUILTIN_VPCMOV_V2DF): Ditto.
3685
3686 (IX86_BUILTIN_VPCMOV256): Ditto.
3687 (IX86_BUILTIN_VPCMOV_V4DI256): Ditto.
3688 (IX86_BUILTIN_VPCMOV_V8SI256): Ditto.
3689 (IX86_BUILTIN_VPCMOV_V16HI256): Ditto.
3690 (IX86_BUILTIN_VPCMOV_V32QI256): Ditto.
3691 (IX86_BUILTIN_VPCMOV_V8SF256): Ditto.
3692 (IX86_BUILTIN_VPCMOV_V4DF256): Ditto.
3693
3694 (IX86_BUILTIN_VPPERM): Ditto.
3695
3696 (IX86_BUILTIN_VPMACSSWW): Ditto.
3697 (IX86_BUILTIN_VPMACSWW): Ditto.
3698 (IX86_BUILTIN_VPMACSSWD): Ditto.
3699 (IX86_BUILTIN_VPMACSWD): Ditto.
3700 (IX86_BUILTIN_VPMACSSDD): Ditto.
3701 (IX86_BUILTIN_VPMACSDD): Ditto.
3702 (IX86_BUILTIN_VPMACSSDQL): Ditto.
3703 (IX86_BUILTIN_VPMACSSDQH): Ditto.
3704 (IX86_BUILTIN_VPMACSDQL): Ditto.
3705 (IX86_BUILTIN_VPMACSDQH): Ditto.
3706 (IX86_BUILTIN_VPMADCSSWD): Ditto.
3707 (IX86_BUILTIN_VPMADCSWD): Ditto.
3708
3709 (IX86_BUILTIN_VPHADDBW): Ditto.
3710 (IX86_BUILTIN_VPHADDBD): Ditto.
3711 (IX86_BUILTIN_VPHADDBQ): Ditto.
3712 (IX86_BUILTIN_VPHADDWD): Ditto.
3713 (IX86_BUILTIN_VPHADDWQ): Ditto.
3714 (IX86_BUILTIN_VPHADDDQ): Ditto.
3715 (IX86_BUILTIN_VPHADDUBW): Ditto.
3716 (IX86_BUILTIN_VPHADDUBD): Ditto.
3717 (IX86_BUILTIN_VPHADDUBQ): Ditto.
3718 (IX86_BUILTIN_VPHADDUWD): Ditto.
3719 (IX86_BUILTIN_VPHADDUWQ): Ditto.
3720 (IX86_BUILTIN_VPHADDUDQ): Ditto.
3721 (IX86_BUILTIN_VPHSUBBW): Ditto.
3722 (IX86_BUILTIN_VPHSUBWD): Ditto.
3723 (IX86_BUILTIN_VPHSUBDQ): Ditto.
3724
3725 (IX86_BUILTIN_VPROTB): Ditto.
3726 (IX86_BUILTIN_VPROTW): Ditto.
3727 (IX86_BUILTIN_VPROTD): Ditto.
3728 (IX86_BUILTIN_VPROTQ): Ditto.
3729 (IX86_BUILTIN_VPROTB_IMM): Ditto.
3730 (IX86_BUILTIN_VPROTW_IMM): Ditto.
3731 (IX86_BUILTIN_VPROTD_IMM): Ditto.
3732 (IX86_BUILTIN_VPROTQ_IMM): Ditto.
3733
3734 (IX86_BUILTIN_VPSHLB): Ditto.
3735 (IX86_BUILTIN_VPSHLW): Ditto.
3736 (IX86_BUILTIN_VPSHLD): Ditto.
3737 (IX86_BUILTIN_VPSHLQ): Ditto.
3738 (IX86_BUILTIN_VPSHAB): Ditto.
3739 (IX86_BUILTIN_VPSHAW): Ditto.
3740 (IX86_BUILTIN_VPSHAD): Ditto.
3741 (IX86_BUILTIN_VPSHAQ): Ditto.
3742
3743 (IX86_BUILTIN_VFRCZSS): Ditto.
3744 (IX86_BUILTIN_VFRCZSD): Ditto.
3745 (IX86_BUILTIN_VFRCZPS): Ditto.
3746 (IX86_BUILTIN_VFRCZPD): Ditto.
3747 (IX86_BUILTIN_VFRCZPS256): Ditto.
3748 (IX86_BUILTIN_VFRCZPD256): Ditto.
3749
3750 (IX86_BUILTIN_VPCOMEQUB): Ditto.
3751 (IX86_BUILTIN_VPCOMNEUB): Ditto.
3752 (IX86_BUILTIN_VPCOMLTUB): Ditto.
3753 (IX86_BUILTIN_VPCOMLEUB): Ditto.
3754 (IX86_BUILTIN_VPCOMGTUB): Ditto.
3755 (IX86_BUILTIN_VPCOMGEUB): Ditto.
3756 (IX86_BUILTIN_VPCOMFALSEUB): Ditto.
3757 (IX86_BUILTIN_VPCOMTRUEUB): Ditto.
3758
3759 (IX86_BUILTIN_VPCOMEQUW): Ditto.
3760 (IX86_BUILTIN_VPCOMNEUW): Ditto.
3761 (IX86_BUILTIN_VPCOMLTUW): Ditto.
3762 (IX86_BUILTIN_VPCOMLEUW): Ditto.
3763 (IX86_BUILTIN_VPCOMGTUW): Ditto.
3764 (IX86_BUILTIN_VPCOMGEUW): Ditto.
3765 (IX86_BUILTIN_VPCOMFALSEUW): Ditto.
3766 (IX86_BUILTIN_VPCOMTRUEUW): Ditto.
3767
3768 (IX86_BUILTIN_VPCOMEQUD): Ditto.
3769 (IX86_BUILTIN_VPCOMNEUD): Ditto.
3770 (IX86_BUILTIN_VPCOMLTUD): Ditto.
3771 (IX86_BUILTIN_VPCOMLEUD): Ditto.
3772 (IX86_BUILTIN_VPCOMGTUD): Ditto.
3773 (IX86_BUILTIN_VPCOMGEUD): Ditto.
3774 (IX86_BUILTIN_VPCOMFALSEUD): Ditto.
3775 (IX86_BUILTIN_VPCOMTRUEUD): Ditto.
3776
3777 (IX86_BUILTIN_VPCOMEQUQ): Ditto.
3778 (IX86_BUILTIN_VPCOMNEUQ): Ditto.
3779 (IX86_BUILTIN_VPCOMLTUQ): Ditto.
3780 (IX86_BUILTIN_VPCOMLEUQ): Ditto.
3781 (IX86_BUILTIN_VPCOMGTUQ): Ditto.
3782 (IX86_BUILTIN_VPCOMGEUQ): Ditto.
3783 (IX86_BUILTIN_VPCOMFALSEUQ): Ditto.
3784 (IX86_BUILTIN_VPCOMTRUEUQ): Ditto.
3785
3786 (IX86_BUILTIN_VPCOMEQB): Ditto.
3787 (IX86_BUILTIN_VPCOMNEB): Ditto.
3788 (IX86_BUILTIN_VPCOMLTB): Ditto.
3789 (IX86_BUILTIN_VPCOMLEB): Ditto.
3790 (IX86_BUILTIN_VPCOMGTB): Ditto.
3791 (IX86_BUILTIN_VPCOMGEB): Ditto.
3792 (IX86_BUILTIN_VPCOMFALSEB): Ditto.
3793 (IX86_BUILTIN_VPCOMTRUEB): Ditto.
3794
3795 (IX86_BUILTIN_VPCOMEQW): Ditto.
3796 (IX86_BUILTIN_VPCOMNEW): Ditto.
3797 (IX86_BUILTIN_VPCOMLTW): Ditto.
3798 (IX86_BUILTIN_VPCOMLEW): Ditto.
3799 (IX86_BUILTIN_VPCOMGTW): Ditto.
3800 (IX86_BUILTIN_VPCOMGEW): Ditto.
3801 (IX86_BUILTIN_VPCOMFALSEW): Ditto.
3802 (IX86_BUILTIN_VPCOMTRUEW): Ditto.
3803
3804 (IX86_BUILTIN_VPCOMEQD): Ditto.
3805 (IX86_BUILTIN_VPCOMNED): Ditto.
3806 (IX86_BUILTIN_VPCOMLTD): Ditto.
3807 (IX86_BUILTIN_VPCOMLED): Ditto.
3808 (IX86_BUILTIN_VPCOMGTD): Ditto.
3809 (IX86_BUILTIN_VPCOMGED): Ditto.
3810 (IX86_BUILTIN_VPCOMFALSED): Ditto.
3811 (IX86_BUILTIN_VPCOMTRUED): Ditto.
3812
3813 (IX86_BUILTIN_VPCOMEQQ): Ditto.
3814 (IX86_BUILTIN_VPCOMNEQ): Ditto.
3815 (IX86_BUILTIN_VPCOMLTQ): Ditto.
3816 (IX86_BUILTIN_VPCOMLEQ): Ditto.
3817 (IX86_BUILTIN_VPCOMGTQ): Ditto.
3818 (IX86_BUILTIN_VPCOMGEQ): Ditto.
3819 (IX86_BUILTIN_VPCOMFALSEQ): Ditto.
3820 (IX86_BUILTIN_VPCOMTRUEQ): Ditto.
3821
3822 (enum multi_arg_type): New enum for describing the various XOP
3823 intrinsic argument types.
3824 (bdesc_multi_arg): New table for XOP intrinsics.
3825 (ix86_init_mmx_sse_builtins): Add XOP intrinsic support.
3826 (ix86_expand_multi_arg_builtin): New function for creating XOP
3827 intrinsics.
3828
3829 * config/i386/sse.md (sserotatemax): New mode attribute for XOP.
3830 (xop_pmacsww): Ditto.
3831 (xop_pmacssww): Ditto.
3832 (xop_pmacsdd): Ditto.
3833 (xop_pmacssdd): Ditto.
3834 (xop_pmacssdql): Ditto.
3835 (xop_pmacssdqh): Ditto.
3836 (xop_pmacsdql): Ditto.
3837 (xop_pmacsdql_mem): Ditto.
3838 (xop_mulv2div2di3_low): Ditto.
3839 (xop_pmacsdqh): Ditto.
3840 (xop_pmacsdqh_mem): Ditto.
3841 (xop_mulv2div2di3_high): Ditto.
3842 (xop_pmacsswd): Ditto.
3843 (xop_pmacswd): Ditto.
3844 (xop_pmadcsswd): Ditto.
3845 (xop_pmadcswd): Ditto.
3846 (xop_pcmov_<mode>): Ditto.
3847 (xop_pcmov_<mode>256): Ditto.
3848 (xop_phaddbw): Ditto.
3849 (xop_phaddbd): Ditto.
3850 (xop_phaddbq): Ditto.
3851 (xop_phaddwd): Ditto.
3852 (xop_phaddwq): Ditto.
3853 (xop_phadddq): Ditto.
3854 (xop_phaddubw): Ditto.
3855 (xop_phaddubd): Ditto.
3856 (xop_phaddubq): Ditto.
3857 (xop_phadduwd): Ditto.
3858 (xop_phadduwq): Ditto.
3859 (xop_phaddudq): Ditto.
3860 (xop_phsubbw): Ditto.
3861 (xop_phsubwd): Ditto.
3862 (xop_phsubdq): Ditto.
3863 (xop_pperm): Ditto.
3864 (rotl<mode>3): Ditto.
3865 (rotr<mode>3): Ditto.
3866 (xop_rotl<mode>3): Ditto.
3867 (xop_rotr<mode>3): Ditto.
3868 (vrotr<mode>3): Ditto.
3869 (vrotl<mode>3): Ditto.
3870 (xop_vrotl<mode>3): Ditto.
3871 (vlshr<mode>3): Ditto.
3872 (vashr<mode>3): Ditto.
3873 (vashl<mode>3
3874 (xop_ashl<mode>3): Ditto.
3875 (xop_lshl<mode>3): Ditto.
3876 (ashlv16qi3): Ditto.
3877 (lshlv16qi3): Ditto.
3878 (ashrv16qi3): Ditto.
3879 (ashrv2di3): Ditto.
3880 (xop_frcz<mode>2): Ditto.
3881 (xop_vmfrcz<mode>2): Ditto.
3882 (xop_frcz<mode>2256): Ditto.
3883 (xop_maskcmp<mode>3): Ditto.
3884 (xop_maskcmp_uns<mode>3): Ditto.
3885 (xop_maskcmp_uns2<mode>3): Ditto.
3886 (xop_pcom_tf<mode>3): Ditto.
3887
3888 * doc/invoke.texi (-mxop): Add documentation.
3889 * doc/extend.texi (x86 intrinsics): Add XOP intrinsics.
3890
3891 2009-11-03 Mark Mitchell <mark@codesourcery.com>
3892
3893 PR driver/11810
3894 * gcc.c (SWITCHES_NEED_SPACES): Define to "o".
3895 * config/alpha/osf.h (SWITCHES_NEED_SPACES): Remove here.
3896 * config/mips/iris.h (SWITCHES_NEED_SPACES): Remove here.
3897
3898 2009-11-04 Richard Earnshaw <rearnsha@arm.com>
3899
3900 PR target/40835
3901 * arm.md (peephole2 patterns for move and compare): New.
3902
3903 2009-11-04 Nick Clifton <nickc@redhat.com>
3904
3905 * defaults.h (CONSTANT_ADDRESS_P): Provide a default definition.
3906 Make sure that it does not allow CONST_DOUBLEs.
3907 * doc/tm.texi (CONSTANT_ADDRESS_P): Update description.
3908 * config/avr/avr.h (CONSTANT_ADDRESS_P): Delete.
3909 * config/bfin/bfin.h (CONSTANT_ADDRESS_P): Delete.
3910 * config/cris/cris.h (CONSTANT_ADDRESS_P): Delete.
3911 * config/fr30/fr30.h (CONSTANT_ADDRESS_P): Delete.
3912 * config/frv/frv.h (CONSTANT_ADDRESS_P): Delete.
3913 * config/m32c/m32c.h (CONSTANT_ADDRESS_P): Delete.
3914 * config/m68hc11/m68hc11.h (CONSTANT_ADDRESS_P): Delete.
3915 * config/mep/mep.h (CONSTANT_ADDRESS_P): Delete.
3916 * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Delete.
3917 * config/moxie/moxie.h (CONSTANT_ADDRESS_P): Delete.
3918 * config/pdp11/pdp11.h (CONSTANT_ADDRESS_P): Delete.
3919 * config/picochip/picochip.h (CONSTANT_ADDRESS_P): Delete.
3920 * config/score/score.h (CONSTANT_ADDRESS_P): Delete.
3921 * config/stormy16/stormy16.h (CONSTANT_ADDRESS_P): Delete.
3922
3923 2009-11-04 Richard Guenther <rguenther@suse.de>
3924
3925 PR tree-optimization/41919
3926 * tree-vrp.c (test_for_singularity): Properly compare values.
3927
3928 2009-11-04 Revital Eres <eres@il.ibm.com>
3929
3930 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3931 Consider peeling for alignment only for stores and remove
3932 redundant assignment.
3933
3934 2009-11-04 Maxim Kuvyrkov <maxim@codesourcery.com>
3935
3936 PR target/41302
3937 * config/m68k/m68k.c (m68k_reg_present_p): New static function.
3938 (m68k_ok_for_sibcall_p): Handle different result return locations.
3939
3940 2009-11-04 Richard Guenther <rguenther@suse.de>
3941
3942 * c-opts.c (c_common_post_options): Move LTO option processing
3943 code ...
3944 * opts.c (decode_options): ... here.
3945
3946 2009-11-04 Jakub Jelinek <jakub@redhat.com>
3947
3948 * c-common.c (fold_offsetof_1): Use %wd instead of
3949 HOST_WIDE_INT_PRINT_DEC.
3950
3951 2009-11-04 Maciej W. Rozycki <macro@linux-mips.org>
3952
3953 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Don't define
3954 __pic__ or __PIC__.
3955
3956 2009-11-04 Maciej W. Rozycki <macro@linux-mips.org>
3957
3958 * config.gcc (vax-*-linux*): Keep the original contents of
3959 tmake_file while adding vax/t-linux.
3960
3961 2009-11-03 Eric Botcazou <ebotcazou@adacore.com>
3962
3963 PR target/10127
3964 PR ada/20548
3965 * expr.h (STACK_CHECK_PROBE_INTERVAL): Delete.
3966 (STACK_CHECK_PROBE_INTERVAL_EXP): New macro.
3967 (STACK_CHECK_MOVING_SP): Likewise.
3968 * system.h (STACK_CHECK_PROBE_INTERVAL): Poison it.
3969 * doc/tm.texi (Stack Checking): Delete STACK_CHECK_PROBE_INTERVAL.
3970 Document STACK_CHECK_PROBE_INTERVAL_EXP and STACK_CHECK_MOVING_SP.
3971 * doc/md.texi (Standard Pattern Names): Tweak entry of CHECK_STACK.
3972 Document PROBE_STACK.
3973 * explow.c (anti_adjust_stack_and_probe): New function.
3974 (allocate_dynamic_stack_space): Do not directly allocate space if
3975 STACK_CHECK_MOVING_SP, instead invoke above function.
3976 (emit_stack_probe): Handle probe_stack insn.
3977 (PROBE_INTERVAL): New macro.
3978 (STACK_GROW_OPTAB): Likewise.
3979 (STACK_GROW_OFF): Likewise.
3980 (probe_stack_range): Use Pmode and memory_address consistently. Fix
3981 loop condition in the small constant case. Rewrite in the general
3982 case to be immune to wraparounds. Make sure the address of probes
3983 is valid. Try to use [base + disp] addressing mode if possible.
3984 * ira.c (setup_eliminable_regset): Set frame_pointer_needed if stack
3985 checking is enabled and STACK_CHECK_MOVING_SP.
3986 * rtlanal.c (may_trap_p_1) <MEM>: If stack checking is enabled,
3987 return 1 for volatile references to the stack pointer.
3988 * tree.c (build_common_builtin_nodes): Do not set ECF_NOTHROW on
3989 __builtin_alloca if stack checking is enabled.
3990 * unwind-dw2.c (uw_identify_context): Take into account whether the
3991 context is that of a signal frame or not.
3992 * config/i386/linux.h (STACK_CHECK_MOVING_SP): Define to 1.
3993 * config/i386/linux64.h (STACK_CHECK_MOVING_SP): Likewise.
3994
3995 2009-11-03 Jakub Jelinek <jakub@redhat.com>
3996
3997 PR rtl-optimization/41917
3998 * rtlanal.c (num_sign_bit_copies1) <case UMOD>: If sign bit of second
3999 operand isn't known to be 0, return 1.
4000
4001 2009-11-03 Richard Sandiford <rdsandiford@googlemail.com>
4002
4003 * config/mips/mips.md: Fix typos.
4004
4005 2009-11-03 Richard Sandiford <rdsandiford@googlemail.com>
4006
4007 * doc/invoke.texi: Fix typo.
4008
4009 2009-11-03 Paul Brook <paul@codesourcery.com>
4010
4011 * config/arm/neon.ml (vectype): Add T_floatSF.
4012 (string_of_vectype): Ditto.
4013 * config/arm/neon-gen.ml (signed_ctype): Add T_floatSF.
4014 (deftypes): Use float for float32_t.
4015 * config/arm/arm_neon.h: Regenerate.
4016
4017 2009-11-03 Nick Clifton <nickc@redhat.com>
4018 Kevin Buettner <kevinb@redhat.com>
4019
4020 * config/rx/predicates.md (rx_store_multiple_vector): Reverse
4021 order of expected registers.
4022 (rx_load_multiple_vector): Likewise.
4023 (rx_rtsd_vector): Likewise.
4024 * config/rx/rx.c (rx_cpu_type): New variable.
4025 (rx_print_operand): Fix bug printing 64-bit constant values.
4026 (rx_emit_stack_pushm): Reverse order of pushed registers.
4027 (gen_rx_store_vector): Likewise.
4028 (is_fast_interrupt_func): Only accept "fast_interrupt" as the
4029 attribute name.
4030 (is_exception_func): Rename to is_interrupt_func and only accept
4031 "interrupt" as the attribute name.
4032 (rx_get_stack_layout): Use new function name.
4033 (rx_func_attr_inlinable): Likewise.
4034 (rx_attribute_table): Remove "exception".
4035 (rx_expand_prologue): If necessary push the accumulator register
4036 in the prologue of interrupt functions.
4037 (rx_expand_epilogue): If necessary pop the accumulator.
4038 (rx_builtins): Add RX_BUILTIN_MVTIPL.
4039 (rx_expand_builtin_stz): Remove.
4040 (rx_expand_builtin_mvtipl): New function.
4041 (rx_init_builtins): Handle RX_BUILTIN_MVTIPL.
4042 (rx_expand_builtin): Likewise.
4043 (rx_enable_fpu): New variable.
4044 (rx_handle_option): Handle -fpu, -nofpu, -mcpu and -patch.
4045 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Assert machine based
4046 on rx_cpu_type. Define __RX_FPU_INSNS__ if FPU insns are allowed.
4047 (enum rx_cpu_types): Define.
4048 (ASM_SPEC): Pass -m32bit-doubles on to assembler.
4049 (INCOMING_FRAME_SP_OFFSET): Define.
4050 (ARG_POINTER_CFA_OFFSET): Define.
4051 (FRAME_POINTER_CFA_OFFSET): Define.
4052 (OVERRIDE_OPTIONS): Enable fast math if RX FPU insns are enabled.
4053 (ALLOW_RX_FPU_INSNS): Define.
4054 * config/rx/rx.md: Test ALLOW_RX_FPU_INSNS instead of
4055 fast_math_flags_set_p.
4056 (UNSPEC_BUILTIN_MVTIPL): Define.
4057 (revl): Rename to bswapsi2.
4058 (bswaphi2): New pattern.
4059 (mvtachi): Mark as volatile because it uses a register unknown to GCC.
4060 (mvtaclo): Likewise.
4061 (racw): Likewise.
4062 (mvtc): Remove clobber of cc0.
4063 (mvtcp): Delete.
4064 (opecp): Delete.
4065 * config/rx/rx.opt (mieee): Remove.
4066 (fpu): Add.
4067 (nofpu): Add.
4068 (mcpu=): Add.
4069 (patch=): Add.
4070 (msave-acc-in-interrupts): Add.
4071 * config/rx/t-rx (MULTILIB_OPTIONS): Change default to 64bit doubles.
4072 (MULTILIB_DIRS): Likewise.
4073 (MULTILIB_MATCHES): Treat -fpu as an alias for -m32bit-doubles.
4074 * doc/extend.texi: Remove description of "exception" function
4075 attribute.
4076 * doc/invoke.texi: Document -fpu, -nofpu, -mcpu=, -patch= and
4077 -msave-acc-in-interrupts options.
4078
4079 2009-11-03 Richard Guenther <rguenther@suse.de>
4080
4081 * c-common.c (fold_offsetof_1): Use HOST_WIDE_INT_PRINT_DEC.
4082
4083 2009-11-03 Dodji Seketeli <dodji@redhat.com>
4084
4085 PR c++/38699
4086 * c-common.c (fold_offsetof_1): Issue errors when the member
4087 designator of the offsetof expression is not legitimate.
4088
4089 2009-11-03 Uros Bizjak <ubizjak@gmail.com>
4090
4091 * config/i386/i386.md (*call_value_1_rex64_ms_sysv): Use register
4092 names instead of numerical constants.
4093 (sse_prologue_save): Ditto.
4094 (*sse_prologue_save_insn): Ditto.
4095
4096 2009-11-03 Uros Bizjak <ubizjak@gmail.com>
4097
4098 PR target/41900
4099 * config/i386/i386.h (ix86_arch_indices) <X86_ARCH_CALL_ESP>: New.
4100 (TARGET_CALL_ESP): New define.
4101 * config/i386/i386.c (initial_ix86_tune_features): Initialize
4102 X86_ARCH_CALL_ESP.
4103 * config/i386/i386.md (*call_pop_1_esp, *call_1_esp,
4104 *call_value_pop_1_esp, *call_value_1_esp): Rename from *call_pop_1,
4105 *call_1, *call_value_pop_1 and *call_value_1. Depend on
4106 TARGET_CALL_ESP.
4107 (*call_pop_1, *call_1, *call_value_pop_1, *call_value_1):
4108 New patterns, use "lsm" as operand 1 constraint.
4109 * config/i386/predicates.md (call_insn_operand): Depend on
4110 index_register_operand for !TARGET_CALL_ESP to avoid %esp register.
4111
4112 2009-11-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4113
4114 PR tree-optimization/41857
4115 * tree-flow.h (rewrite_use_address): Add BASE_HINT argument.
4116 * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass base hint
4117 to create_mem_ref.
4118 * tree-ssa-address.c (move_hint_to_base): New function.
4119 (most_expensive_mult_to_index): Add TYPE argument. Use mode and
4120 address space associated with TYPE.
4121 (addr_to_parts): Add TYPE and BASE_HINT arguments. Pass TYPE to
4122 most_expensive_mult_to_index. Call move_hint_to_base.
4123 (create_mem_ref): Add BASE_HINT argument. Pass BASE_HINT and
4124 TYPE to addr_to_parts.
4125
4126 2009-11-02 Martin Jambor <mjambor@suse.cz>
4127
4128 PR tree-optimization/41750
4129 * tree-sra.c (analyze_modified_params): Loop over all
4130 representatives of components of a parameter.
4131
4132 2009-11-02 Jakub Jelinek <jakub@redhat.com>
4133
4134 PR tree-optimization/41841
4135 * ipa-struct-reorg.c (build_data_structure): Don't attempt to look at
4136 local variables of not yet materialized clones.
4137
4138 PR debug/41893
4139 * cfgexpand.c (expand_debug_expr): Don't attempt to create DECL_RTL
4140 for a VOIDmode variable.
4141
4142 PR c++/41774
4143 * c-pragma.c (visstack): Change into vector of ints rather than
4144 enum symbol_visibility.
4145 (push_visibility): Add kind argument, push default_visibility together
4146 with kind.
4147 (pop_visibility): Add kind argument, return true if successful, fail
4148 if visibility stack is empty or if stack top is of different kind.
4149 (handle_pragma_visibility): Don't check length of visstack, instead
4150 call pop_visibility and issue diagnostics if it failed. Pass 0
4151 as last argument to push_visibility and pop_visibility.
4152 * c-pragma.h (push_visibility): Add kind argument.
4153 (pop_visibility): Likewise. Return bool instead of void.
4154
4155 2009-11-01 Eric Botcazou <ebotcazou@adacore.com>
4156
4157 * tree.def (TARGET_MEM_REF): Update comment.
4158 * alias.c (get_alias_set): Retrieve the original memory reference for
4159 a TARGET_MEM_REF before proceeding.
4160
4161 2009-10-31 Anatoly Sokolov <aesok@post.ru>
4162
4163 * config/frv/frv.c (frv_function_value, frv_libcall_value,
4164 frv_function_value_regno_p): New functions.
4165 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
4166 * config/frv/frv.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
4167 (FUNCTION_VALUE_REGNO_P): Redefine, use frv_function_value_regno_p.
4168 * config/frv/frv-protos.h (frv_function_value_regno_p): Declare.
4169
4170 2009-10-31 Anatoly Sokolov <aesok@post.ru>
4171
4172 * config/mn10300/mn10300.c (mn10300_function_value): Make static, add
4173 new 'outgoing' argument.
4174 (mn10300_libcall_value, mn10300_function_value_regno_p): New functions.
4175 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
4176 * config/mn10300/mn10300.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
4177 LIBCALL_VALUE): Remove.
4178 (FUNCTION_VALUE_REGNO_P): Redefine, use mn10300_function_value_regno_p.
4179 * config/mn10300/mn10300-protos.h (mn10300_function_value): Remove.
4180 (mh10300_function_value_regno_p): Declare.
4181
4182 2009-10-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4183
4184 * config/arm/cortex-a9.md: New - integer pipeline description.
4185
4186 2009-10-31 Eric Botcazou <ebotcazou@adacore.com>
4187
4188 * tree-ssa-sccvn.c (vn_reference_lookup_3): Bail out instead of
4189 aborting if the sizes of the two references don't match.
4190
4191 2009-10-31 Toon Moene <toon@moene.org>
4192
4193 * ipa-inline.c (cgraph_decide_inlining):
4194 Include reason for not inlining called-once functions in dump file.
4195
4196 2009-10-30 Daniel Gutson <dgutson@codesourcery.com>
4197
4198 * config/arm/linux-eabi.h (LINK_SPEC): BE8_LINK_SPEC added.
4199 * config/arm/bpapi.h (BE8_LINK_SPEC): New define.
4200 (LINK_SPEC): BE_LINK_SPEC added.
4201
4202 2009-10-30 Richard Guenther <rguenther@suse.de>
4203
4204 PR lto/41858
4205 * lto-streamer.h (struct lto_file_decl_data): Remove fd member.
4206
4207 2009-10-30 Nathan Sidwell <nathan@codesourcery.com>
4208
4209 * target-def.h (TARGET_ASM_TTYPE): Correct typo of TARGET_ARM_TTYPE.
4210 * config/arm/unwind-arm.c (__gnu_Unwind_Backtrace): Remove unused
4211 label.
4212
4213 2009-10-30 Martin Jambor <mjambor@suse.cz>
4214
4215 * tree-sra.c (build_ref_for_offset_1): Remove a comment.
4216
4217 2009-10-30 H.J. Lu <hongjiu.lu@intel.com>
4218
4219 PR target/40838
4220 * cfgexpand.c (expand_stack_alignment): Call update_stack_boundary
4221 first. Move assert on stack_alignment_estimated just before
4222 setting stack_realign_needed.
4223 (gimple_expand_cfg): Initialize stack_alignment_estimated to 0.
4224 Don't call update_stack_boundary.
4225
4226 * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): New.
4227 (verride_options): Don't check ix86_force_align_arg_pointer here.
4228 (ix86_function_ok_for_sibcall): Use it.
4229 (ix86_update_stack_boundary): Likewise.
4230
4231 * config/i386/i386.h (STACK_REALIGN_DEFAULT): Update comments.
4232
4233 2009-10-30 Richard Earnshaw <rearnsha@arm.com>
4234
4235 * arm.md (QHSI): New mode iterator.
4236 (movqi): If generating for thumb, then truncate any immediate to
4237 8 bits.
4238 * thumb2.md (thumb2_movsi_shortim and peephole2 generator): Replace
4239 with...
4240 (thumb2_mov<mode>_shortim and peephole2 generator): ... iterator based
4241 version.
4242
4243 2009-10-29 Cary Coutant <ccoutant@google.com>
4244
4245 PR debug/41700
4246 * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hook (two
4247 locations in the source).
4248 (store_vcall_insn): New function.
4249 (lookup_vcall_insn): New function.
4250 (dwarf2out_virtual_call_token): Use store_vcall_insn.
4251 (dwarf2out_copy_call_info): New function.
4252 (dwarf2out_virtual_call): Use lookup_vcall_insn.
4253 * emit-rtl.c (try_split): Call copy_call_info debug hook.
4254 * debug.h (struct gcc_debug_hooks): Add copy_call_info hook.
4255 * debug.c (do_nothing_debug_hooks): Add dummy entry for new hook.
4256 (debug_nothing_rtx_rtx): New dummy hook.
4257 * dbxout.c (dbx_debug_hooks): Add dummy entry for new hook.
4258 (xcoff_debug_hooks): Likewise.
4259 * sdbout.c (sdb_debug_hooks): Likewise.
4260 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
4261
4262 2009-10-29 David Daney <ddaney@caviumnetworks.com>
4263
4264 * doc/invoke.texi (mmcount-ra-address): Document new command line
4265 option.
4266 * config/mips/mips.opt (mmcount-ra-address): New option.
4267 * config/mips/mips-protos.h (mips_function_profiler): Declare new
4268 function.
4269 * config/mips/mips.c (struct mips_frame_info): Add ra_fp_offset
4270 member.
4271 (mips_for_each_saved_gpr_and_fpr): Set ra_fp_offset.
4272 (mips_function_profiler): Moved from FUNCTION_PROFILER, and
4273 rewritten.
4274 * config/mips/mips.h (FUNCTION_PROFILER): Body of macro moved to
4275 mips_function_profiler.
4276
4277 2009-10-29 Steve Ellcey <sje@cup.hp.com>
4278
4279 PR middle-end/37565
4280 PR target/38018
4281 * doc/tm.texi (OVERRIDE_OPTIONS): Update.
4282 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
4283 * optc-gen.awk (cl_target_option_restore): Include call to
4284 targetm.override_options_after_change.
4285 * target-def.h (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
4286 * target.h (override_options_after_change): New.
4287 * c-common.c (parse_optimize_options): Call
4288 targetm.override_options_after_change.
4289 * config/ia64/ia64.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
4290 (ia64_override_options_after_change): New.
4291 (ia64_override_options) Add call to above.
4292
4293 2009-10-29 Michael Matz <matz@suse.de>
4294
4295 * tree-ssa-math-opts.c (execute_convert_to_rsqrt): Remove.
4296 (gate_convert_to_rsqrt): Ditto.
4297 (pass_convert_to_rsqrt): Ditto.
4298 * tree-pass.h (pass_convert_to_rsqrt): Don't declare.
4299 * passes.c (init_optimization_passes): Don't add pass_convert_to_rsqrt
4300 to pass list.
4301
4302 * config/i386/i386.c (ix86_emit_swdivsf): Change evaluation order.
4303
4304 2009-10-29 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4305
4306 * config/arm/arm.c (find_best_start): Fix type of remainder to be
4307 unsigned.
4308
4309 2009-10-29 Martin Jambor <mjambor@suse.cz>
4310
4311 PR tree-optimization/41775
4312 * tree-sra.c (build_ref_for_offset): Unshare *expr if not NULL.
4313 (generate_subtree_copies): Do not unshare agg.
4314 (load_assign_lhs_subreplacements): Do not unshare rhs.
4315 (sra_modify_assign): Do not unshare exprs.
4316 (propagate_subacesses_accross_link): Renamed to
4317 propagate_subaccesses_across_link.
4318
4319 2009-10-29 Richard Earnshaw <rearnsha@arm.com>
4320
4321 * arm.c (count_insns_for_constant): Rework to support counting for
4322 thumb2 immediates as well.
4323 (find_best_start): Split out from arm_gen_constant.
4324 (arm_gen_constant): Rework to support XOR with immediate.
4325
4326 2009-10-29 Chao-ying Fu <fu@mips.com>
4327
4328 * config/mips/mips.c (mips_emit_unary, mips_force_unary): New
4329 functions.
4330 (mips_expand_synci_loop): Use the length rtx to control the
4331 synci loop from the begin rtx that points to the first byte of
4332 the cache line.
4333
4334 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
4335
4336 * doc/invoke.texi: Rename -use-linker-plugin -fuse-linker-plugin.
4337
4338 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
4339
4340 * dbxout.c (dbxout_common_check): Accept non public trees.
4341 * dwarf2out.c (fortran_common): Accept non public trees.
4342
4343 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
4344
4345 * common.opt (fuse-linker-plugin): New option.
4346 * gcc.c (LINK_COMMAND_SPEC, main): Rename use-linker-plugin to
4347 fuse-linker-plugin.
4348 * opts.c (common_handle_option): Ignore OPT_fuse_linker_plugin.
4349
4350 2009-10-28 Paolo Bonzini <bonzini@gnu.org>
4351
4352 PR rtl-optimization/39715
4353 * config/arm/arm.md (cstoresi4): Use gen_cstoresi_ltu_thumb1.
4354 (gen_cstoresi_ltu_thumb1): New splitter.
4355
4356 2009-10-28 Richard Guenther <rguenther@suse.de>
4357
4358 PR lto/41808
4359 PR lto/41839
4360 * tree-ssa.c (useless_type_conversion_p): Do not treat
4361 conversions to pointers to incomplete types as useless.
4362 * gimple.c (gimple_types_compatible_p): Compare struct tags,
4363 not typedef names.
4364
4365 2009-10-28 Jakub Jelinek <jakub@redhat.com>
4366
4367 * var-tracking.c (emit_note_insn_var_location): Don't call the second
4368 vt_expand_loc unnecessarily when location is not a register nor
4369 memory.
4370
4371 PR middle-end/41837
4372 * ipa-struct-reorg.c (find_field_in_struct_1): Return NULL if
4373 fields don't have DECL_NAME.
4374
4375 PR debug/41801
4376 * builtins.c (get_builtin_sync_mem): Expand loc in ptr_mode,
4377 call convert_memory_address on addr.
4378
4379 PR target/41762
4380 * config/i386/i386.c (ix86_pic_register_p): Don't call
4381 rtx_equal_for_cselib_p for VALUEs discarded as useless.
4382
4383 2009-10-28 Richard Sandiford <rdsandiford@googlemail.com>
4384
4385 * var-tracking.c (emit_note_insn_var_location): Get the mode of
4386 a variable part from its REG, MEM or VALUE.
4387
4388 2009-10-28 Richard Guenther <rguenther@suse.de>
4389
4390 * gimple.c (gimple_get_alias_set): Fix comment typo.
4391
4392 2009-10-28 Richard Guenther <rguenther@suse.de>
4393
4394 * tree.c (free_lang_data_in_type): Do not call get_alias_set.
4395 (free_lang_data): Unconditionally compute alias sets for all
4396 standard integer types. Bail out if gate bailed out previously.
4397 Do not reset the types_compatible_p langhook.
4398 (gate_free_lang_data): Remove.
4399 (struct pass_ipa_free_lang_data): Enable unconditionally.
4400 * gimple.c (gimple_get_alias_set): Use the same alias-set for
4401 all pointer types.
4402
4403 2009-10-28 Richard Guenther <rguenther@suse.de>
4404
4405 PR middle-end/41855
4406 * tree-ssa-alias.c (refs_may_alias_p_1): Deal with CONST_DECLs
4407 (ref_maybe_used_by_call_p_1): Fix bcopy handling.
4408 (call_may_clobber_ref_p_1): Likewise.
4409 * tree-ssa-structalias.c (find_func_aliases): Likewise.
4410 * alias.c (nonoverlapping_memrefs_p): Deal with CONST_DECLs.
4411
4412 2009-10-28 Paolo Bonzini <bonzini@gnu.org>
4413
4414 PR rtl-optimization/41812
4415
4416 Revert:
4417 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
4418
4419 * df-problems.c (df_md_scratch): New.
4420 (df_md_alloc, df_md_free): Allocate/free it.
4421 (df_md_local_compute): Only include live registers in init.
4422 (df_md_transfer_function): Prune the in-set computed by
4423 the confluence function, and the gen-set too.
4424
4425 2009-10-28 Paolo Bonzini <bonzini@gnu.org>
4426
4427 PR rtl-optimization/39715
4428 * combine.c (simplify_comparison): Use extensions to
4429 widen comparisons. Try an ANDing first.
4430
4431 2009-10-28 Paolo Bonzini <bonzini@gnu.org>
4432
4433 PR rtl-optimization/40741
4434 * config/arm/arm.c (thumb1_rtx_costs): IOR or XOR with
4435 a small constant is cheap.
4436 * config/arm/arm.md (andsi3, iorsi3): Try to place the result of
4437 force_reg on the LHS.
4438 (xorsi3): Likewise, and split the XOR if the constant is complex
4439 and not in Thumb mode.
4440
4441 2009-10-28 Paolo Bonzini <bonzini@gnu.org>
4442
4443 * expmed.c (emit_store_flag): Check costs before
4444 transforming to the opposite representation.
4445
4446 2009-10-28 Paolo Bonzini <bonzini@gnu.org>
4447
4448 * config/sh/sh.md (cbranchfp4_media): Remove hack extending
4449 cstore result to DImode.
4450
4451 2009-10-28 Kaz Kojima <kkojima@gcc.gnu.org>
4452
4453 * config/sh/sh.md (stuff_delay_slot): Move const_int pattern
4454 inside the unspec vector.
4455
4456 2009-10-27 Richard Henderson <rth@redhat.com>
4457
4458 * cgraphunit.c (cgraph_optimize): Maintain timevar stack properly.
4459
4460 2009-10-27 Richard Henderson <rth@redhat.com>
4461
4462 PR c++/41819
4463 * tree-eh.c (eh_region_may_contain_throw_map): Rename from
4464 eh_region_may_contain_throw; update users.
4465 (eh_region_may_contain_throw): New function.
4466 (lower_catch): Check flag_exceptions before creating exception region.
4467 (lower_eh_filter, lower_eh_must_not_throw): Likewise.
4468 (lower_cleanup): Tidy existing flag_exceptions check to match.
4469
4470 2009-10-27 Kai Tietz <kai.tietz@onevision.com>
4471
4472 PR/41799
4473 * config/i386/mingw32.h (CHECK_EXECUTE_STACK_ENABLED): New macro.
4474 * config/i386/mingw.opt: Add fset-stack-executable.
4475 * config/i386/i386.c (ix86_trampoline_init): Make call to
4476 emit_library_call conditional, if CHECK_EXECUTE_STACK_ENABLED is
4477 defined and its value is not zero.
4478 * doc/invoke.texi
4479
4480 2009-10-27 Richard Guenther <rguenther@suse.de>
4481
4482 * tree-ssa-structalias.c (find_func_aliases): In IPA mode
4483 handle calls to externally visible functions like in regular mode.
4484 (create_variable_info_for): Do not create function infos here.
4485 (have_alias_info): Remove write-only variable.
4486 (solve_constraints): New function split out from common code
4487 in compute_points_to_sets and ipa_pta_execute.
4488 (compute_points_to_sets): Adjust.
4489 (ipa_pta_execute): Likewise. Handle clones and externally visible
4490 functions like in non-IPA mode.
4491
4492 2009-10-27 Jakub Jelinek <jakub@redhat.com>
4493
4494 PR c/41842
4495 * c-typeck.c (convert_arguments): Return -1 if any of the arguments is
4496 error_mark_node.
4497
4498 2009-10-27 Richard Guenther <rguenther@suse.de>
4499
4500 * tree-complex.c (expand_complex_div_wide): Check for
4501 INTEGER_CST, not TREE_CONSTANT on comparison folding result.
4502
4503 2009-10-27 Revital Eres <eres@il.ibm.com>
4504
4505 PR tree-optimization/40648
4506 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4507 Change decision of when to peel for alignment.
4508
4509 2009-10-27 Richard Guenther <rguenther@suse.de>
4510
4511 PR lto/41821
4512 * gimple.c (gimple_types_compatible_p): Handle OFFSET_TYPE.
4513
4514 2009-10-27 Aldy Hernandez <aldyh@redhat.com>
4515
4516 PR bootstrap/41451
4517 * fold-const.c (fold_binary_loc): Do not call
4518 protected_set_expr_location.
4519
4520 2009-10-27 Wei Guozhi <carrot@google.com>
4521
4522 PR target/41705
4523 * target.h (have_conditional_execution): Add a new target hook
4524 function.
4525 * target-def.h (TARGET_HAVE_CONDITIONAL_EXECUTION): Likewise.
4526 * targhooks.h (default_have_conditional_execution): Likewise.
4527 * targhooks.c (default_have_conditional_execution): Likewise.
4528 * doc/tm.texi (TARGET_HAVE_CONDITIONAL_EXECUTION): Document it.
4529 * config/arm/arm.c (TARGET_HAVE_CONDITIONAL_EXECUTION): Define it.
4530 (arm_have_conditional_execution): New function.
4531 * ifcvt.c (noce_process_if_block, find_if_header,
4532 cond_exec_find_if_block, dead_or_predicable): Change the usage of
4533 macro HAVE_conditional_execution to a target hook call.
4534 * recog.c (peephole2_optimize): Likewise.
4535 * sched-rgn.c (add_branch_dependences): Likewise.
4536 * final.c (asm_insn_count, final_scan_insn): Likewise.
4537 * bb-reorder.c (HAVE_conditional_execution): Remove it.
4538
4539 2009-10-26 Ben Elliston <bje@au.ibm.com>
4540 Michael Meissner <meissner@linux.vnet.ibm.com>
4541 Ulrich Weigand <uweigand@de.ibm.com>
4542
4543 * config.gcc (spu-*-elf*): Add spu_cache.h to extra_headers.
4544 * config/spu/spu_cache.h: New file.
4545
4546 * config/spu/cachemgr.c: New file.
4547 * config/spu/cache.S: New file.
4548
4549 * config/spu/spu.h (ASM_OUTPUT_SYMBOL_REF): Define.
4550 (ADDR_SPACE_EA): Define.
4551 (TARGET_ADDR_SPACE_KEYWORDS): Define.
4552 * config/spu/spu.c (EAmode): New macro.
4553 (TARGET_ADDR_SPACE_POINTER_MODE): Define.
4554 (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
4555 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
4556 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Likewise.
4557 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
4558 (TARGET_ADDR_SPACE_CONVERT): Likewise.
4559 (TARGET_ASM_SELECT_SECTION): Likewise.
4560 (TARGET_ASM_UNIQUE_SECTION): Likewise.
4561 (TARGET_ASM_UNALIGNED_SI_OP): Likewise.
4562 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
4563 (ea_symbol_ref): New function.
4564 (spu_legitimate_constant_p): Handle __ea qualified addresses.
4565 (spu_addr_space_legitimate_address_p): New function.
4566 (spu_addr_space_legitimize_address): Likewise.
4567 (cache_fetch): New global.
4568 (cache_fetch_dirty): Likewise.
4569 (ea_alias_set): Likewise.
4570 (ea_load_store): New function.
4571 (ea_load_store_inline): Likewise.
4572 (expand_ea_mem): Likewise.
4573 (spu_expand_mov): Handle __ea qualified memory references.
4574 (spu_addr_space_pointer_mode): New function.
4575 (spu_addr_space_address_mode): Likewise.
4576 (spu_addr_space_subset_p): Likewise.
4577 (spu_addr_space_convert): Likewise.
4578 (spu_section_type_flags): Handle "._ea" section.
4579 (spu_select_section): New function.
4580 (spu_unique_section): Likewise.
4581 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Support __EA32__
4582 and __EA64__ predefined macros.
4583 * config/spu/spu-elf.h (LIB_SPEC): Handle -mcache-size= and
4584 -matomic-updates switches.
4585
4586 * config/spu/t-spu-elf (MULTILIB_OPTIONS): Define.
4587 (EXTRA_MULTILIB_PARTS): Add libgcc_cachemgr.a,
4588 libgcc_cachemgr_nonatomic.a, libgcc_cache8k.a, libgcc_cache16k.a,
4589 libgcc_cache32k.a, libgcc_cache64k.a, libgcc_cache128k.a.
4590 ($(T)cachemgr.o, $(T)cachemgr_nonatomic.o): New target.
4591 ($(T)cache8k.o, $(T)cache16k.o, $(T)cache32k.o, $(T)cache64k.o,
4592 $(T)cache128k.o): Likewise.
4593 ($(T)libgcc_%.a): Likewise.
4594
4595 * config/spu/spu.h (TARGET_DEFAULT): Add MASK_ADDRESS_SPACE_CONVERSION.
4596 * config/spu/spu.opt (-mea32/-mea64): Add switches.
4597 (-maddress-space-conversion): Likewise.
4598 (-mcache-size=): Likewise.
4599 (-matomic-updates): Likewise.
4600 * doc/invoke.texi (-mea32/-mea64): Document.
4601 (-maddress-space-conversion): Likewise.
4602 (-mcache-size=): Likewise.
4603 (-matomic-updates): Likewise.
4604
4605 2009-10-26 Ben Elliston <bje@au.ibm.com>
4606 Michael Meissner <meissner@linux.vnet.ibm.com>
4607 Ulrich Weigand <uweigand@de.ibm.com>
4608
4609 * doc/tm.texi (TARGET_ADDR_SPACE_KEYWORDS): Document.
4610
4611 * c-common.c (c_common_reswords): If TARGET_ADDR_SPACE_KEYWORDS is
4612 defined, add the named address space keywords.
4613 (c_addr_space_name): New function.
4614 (complete_array_type): Preserve named address space.
4615 (handle_mode_attribute): Use targetm.addr_space.valid_pointer_mode
4616 instead of targetm.valid_pointer_mode.
4617
4618 * c-common.h (enum rid): Add RID_ADDR_SPACE_0 .. RID_ADDR_SPACE_15,
4619 RID_FIRST_ADDR_SPACE and RID_LAST_ADDR_SPACE.
4620 (ADDR_SPACE_KEYWORD): New macro.
4621 (c_addr_space_name): Add prototype.
4622
4623 * c-tree.h (struct c_declspecs): Add address_space member.
4624 (declspecs_add_addrspace): Add prototype.
4625
4626 * c-pretty-print.c (pp_c_type_qualifier_list): Handle address spaces.
4627
4628 * c-parser.c (c_parse_init): Add assertion.
4629 (typedef enum c_id_kind): Add C_ID_ADDRSPACE.
4630 (c_lex_one_token): Handle address space keywords.
4631 (c_token_starts_typename): Likewise.
4632 (c_token_starts_declspecs): Likewise.
4633 (c_parser_declspecs): Likewise.
4634 (c_parser_postfix_expression_after_paren_type): Diagnose compound
4635 literal within function qualified with named address space.
4636
4637 * c-decl.c (diagnose_mismatched_decls): Diagnose conflicting named
4638 address space qualifiers.
4639 (shadow_tag_warned): Warn about useless address space qualifiers.
4640 (quals_from_declspecs): Handle address space qualifiers.
4641 (grokdeclarator): Likewise.
4642 (build_null_declspecs): Likewise.
4643 (declspecs_add_addrspace): New function.
4644
4645 * c-typeck.c (addr_space_superset): New function.
4646 (qualify_type): Handle named address spaces.
4647 (composite_type): Likewise.
4648 (common_pointer_type): Likewise.
4649 (comp_target_types): Likewise.
4650 (build_conditional_expr): Likewise.
4651 (handle_warn_cast_qual): Likewise.
4652 (build_c_cast): Likewise.
4653 (convert_for_assignment): Likewise.
4654 (build_binary_op): Likewise.
4655 (pointer_diff): Handle named address spaces. Use intermediate
4656 integer type of sufficient size if required.
4657
4658 2009-10-26 Ben Elliston <bje@au.ibm.com>
4659 Michael Meissner <meissner@linux.vnet.ibm.com>
4660 Ulrich Weigand <uweigand@de.ibm.com>
4661
4662 * doc/tm.texi (TARGET_ADDR_SPACE_POINTER_MODE): Document.
4663 (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
4664 (TARGET_ADDR_SPACE_VALID_POINTER_MODE): Likewise.
4665
4666 * target.h (struct target_def): Add pointer_mode, address_mode,
4667 and valid_pointer_mode to addr_space substructure.
4668 * target-def.h (TARGET_ADDR_SPACE_POINTER_MODE): Define.
4669 (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
4670 (TARGET_ADDR_SPACE_VALID_POINTER_MODE): Likewise.
4671 (TARGET_ADDR_SPACE_HOOKS): Add them.
4672 * targhooks.c (target_default_pointer_address_modes_p): New function.
4673 * target.h (target_default_pointer_address_modes_p): Add prototype.
4674 * targhooks.c (default_addr_space_pointer_mode): New function.
4675 (default_addr_space_address_mode): Likewise.
4676 (default_addr_space_valid_pointer_mode): Likewise.
4677 * targhooks.h (default_addr_space_pointer_mode): Add prototype.
4678 (default_addr_space_address_mode): Likewise.
4679 (default_addr_space_valid_pointer_mode): Likewise.
4680 * output.h (default_valid_pointer_mode): Move to ...
4681 * targhooks.h (default_valid_pointer_mode): ... here.
4682 * varasm.c (default_valid_pointer_mode): Move to ...
4683 * targhooks.c (default_valid_pointer_mode): ... here.
4684
4685 * varasm.c (output_constant): Use targetm.addr_space.valid_pointer_mode
4686 instead of targetm.valid_pointer_mode.
4687
4688 * fold-const.c (fit_double_type): Use int_or_pointer_precision.
4689 * tree.c (integer_pow2p): Likewise.
4690 (tree_log2): Likewise.
4691 (tree_floor_log2): Likewise.
4692 (signed_or_unsigned_type_for): Support pointer type of different size.
4693 (int_or_pointer_precision): New function.
4694 * tree.h (int_or_pointer_precision): Add prototype.
4695 * stor-layout.c (layout_type): Set TYPE_PRECISION for offset types.
4696 * varasm.c (initializer_constant_valid_p): Use TYPE_PRECISION of
4697 incoming pointer type instead of POINTER_SIZE.
4698
4699 * tree.c (build_pointer_type): Use appropriate pointer mode
4700 instead of ptr_mode.
4701 (build_reference_type): Likewise.
4702 * expr.c (store_expr): Likewise.
4703 (expand_expr_addr_expr): Likewise.
4704 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
4705 * cfgexpand.c (expand_debug_expr): Likewise.
4706
4707 * auto-inc-dec.c: Include "target.h".
4708 (try_merge): Use appropriate address mode instead of Pmode.
4709 (find_inc): Likewise.
4710 * combine.c (find_split_point): Likewise.
4711 * cselib.c (cselib_record_sets): Likewise.
4712 * dse.c (replace_inc_dec): Likewise.
4713 (canon_address): Likewise.
4714 * var-tracking.c (replace_expr_with_values): Likewise.
4715 (count_uses): Likewise.
4716 (add_uses): Likewise.
4717 (add_stores): Likewise.
4718 * emit-rtl.c: Include "target.h".
4719 (adjust_address_1): Use appropriate address mode instead of Pmode.
4720 (offset_address): Likewise.
4721 * explow.c (break_out_memory_refs): Likewise.
4722 (memory_address_addr_space): Likewise.
4723 (promote_mode): Likewise.
4724 * expr.c (move_by_pieces): Likewise.
4725 (emit_block_move_via_loop): Likewise.
4726 (store_by_pieces): Likewise.
4727 (store_by_pieces_1): Likewise.
4728 (expand_assignment): Likewise.
4729 (store_constructor): Likewise.
4730 (expand_expr_addr_expr): Likewise.
4731 (expand_expr_real_1): Likewise.
4732 * cfgexpand.c (expand_debug_expr): Likewise.
4733 * ifcvt.c (noce_try_cmove_arith): Likewise.
4734 * regcprop.c (kill_autoinc_value): Likewise.
4735 * regmove.c (try_auto_increment): Likewise.
4736 * reload.c (find_reloads): Likewise.
4737 (find_reloads_address): Likewise.
4738 (find_reloads_address_1): Likewise.
4739 * sched-deps.c: Include "target.h".
4740 (sched_analyze_1): Use appropriate address mode instead of Pmode.
4741 (sched_analyze_2): Likewise.
4742 * sel-sched-dump.c: Include "target.h".
4743 (debug_mem_addr_value): Use appropriate address mode instead of Pmode.
4744 * stor-layout.c (layout_type): Likewise.
4745 * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
4746 (multiplier_allowed_in_address_p): Likewise.
4747 (get_address_cost): Likewise.
4748 * varasm.c (make_decl_rtl): Likewise.
4749
4750 * expr.c (expand_assignment): Always convert offsets to appropriate
4751 address mode.
4752 (store_expr): Likewise.
4753 (store_constructor): Likewise.
4754 (expand_expr_real_1): Likewise.
4755
4756 * reload.h (form_sum): Add MODE argument.
4757 * reload.c (form_sum): Add MODE argument, use it instead of Pmode.
4758 Update recursive calls.
4759 (subst_indexed_address): Update calls to form_sum.
4760
4761 * tree-flow.h (addr_for_mem_ref): Add ADDRSPACE argument.
4762 * tree-ssa-address.c: Include "target.h".
4763 (templates): Replace by ...
4764 (mem_addr_template_list): ... this new vector.
4765 (TEMPL_IDX): Handle address space numbers.
4766 (gen_addr_rtx): Add address mode argument, use it instead of Pmode.
4767 (addr_for_mem_ref): Add ADDRSPACE argument. Use per-address-space
4768 instead of global cache. Update call to gen_addr_rtx.
4769 (valid_mem_ref_p): Update call to addr_for_mem_ref.
4770 * expr.c (expand_expr_real_1): Update call to addr_for_mem_ref.
4771
4772 * rtl.h (convert_memory_address_addr_space): Add prototype.
4773 (convert_memory_address): Define as macro.
4774 * explow.c (convert_memory_address): Rename to ...
4775 (convert_memory_address_addr_space): ... this. Add ADDRSPACE argument.
4776 Use appropriate pointer and address modes instead of ptr_mode / Pmode.
4777 Update recursive calls.
4778 (memory_address_addr_space): Call convert_memory_address_addr_space.
4779 * expmed.c (make_tree): Likewise.
4780 * expr.c (expand_assignment): Likewise.
4781 (expand_expr_addr_expr_1): Likewise. Also, add ADDRSPACE argument.
4782 (expand_expr_addr_expr): Likewise. Also, update call.
4783
4784 * alias.c (find_base_value): Guard pointer size optimizations.
4785 (find_base_term): Likewise.
4786 * rtlanal.c (nonzero_bits1): Likewise.
4787 (num_sign_bit_copies1): Likewise.
4788 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
4789
4790 * Makefile.in (tree-ssa-address.o): Add $(TARGET_H) dependency.
4791 (emit-rtl.o): Likewise.
4792 (auto-inc-dec.o): Likewise.
4793 (sched-deps.o): Likewise.
4794
4795 2009-10-26 Ben Elliston <bje@au.ibm.com>
4796 Michael Meissner <meissner@linux.vnet.ibm.com>
4797 Ulrich Weigand <uweigand@de.ibm.com>
4798
4799 * doc/extend.texi (Named Address Spaces): New section.
4800 * coretypes.h (addr_space_t): New type.
4801 (ADDR_SPACE_GENERIC): New define.
4802 (ADDR_SPACE_GENERIC_P): New macro.
4803
4804 * doc/tm.texi (Named Address Spaces): New section.
4805 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Document.
4806 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Document.
4807 (TARGET_ADDR_SPACE_SUBSET_P): Document.
4808 (TARGET_ADDR_SPACE_CONVERT): Document.
4809 * target.h (struct gcc_target): Add addr_space substructure.
4810 * target-def.h (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
4811 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Likewise.
4812 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
4813 (TARGET_ADDR_SPACE_CONVERT): Likewise.
4814 (TARGET_ADDR_SPACE_HOOKS): Likewise.
4815 (TARGET_INITIALIZER): Initialize addr_space hooks.
4816 * targhooks.c (default_addr_space_legitimate_address_p): New function.
4817 (default_addr_space_legitimize_address): Likewise.
4818 (default_addr_space_subset_p): Likewise.
4819 (default_addr_space_convert): Likewise.
4820 * targhooks.h (default_addr_space_legitimate_address_p): Add prototype.
4821 (default_addr_space_legitimize_address): Likewise.
4822 (default_addr_space_subset_p): Likewise.
4823 (default_addr_space_convert): Likewise.
4824
4825 * doc/rtl.texi (MEM_ADDR_SPACE): Document.
4826 * rtl.h (mem_attrs): Add ADDRSPACE memory attribute.
4827 (MEM_ADDR_SPACE): New macro.
4828 * emit-rtl.c (get_mem_attrs): Add ADDRSPACE argument and set
4829 address space memory attribute.
4830 (mem_attrs_htab_hash): Handle address space memory attribute.
4831 (mem_attrs_htab_eq): Likewise.
4832 (set_mem_attributes_minus_bitpos): Likewise.
4833 (set_mem_alias_set): Likewise.
4834 (set_mem_align): Likewise.
4835 (set_mem_expr): Likewise.
4836 (set_mem_offset): Likewise.
4837 (set_mem_size): Likewise.
4838 (adjust_address_1): Likewise.
4839 (offset_address): Likewise.
4840 (widen_memoy_address): Likewise.
4841 (get_spill_slot_decl): Likewise.
4842 (set_mem_attrs_for_spill): Likewise.
4843 (set_mem_addr_space): New function.
4844 * emit-rtl.h (set_mem_addr_space): Add prototype.
4845 * print-rtl.c (print_rtx): Print address space memory attribute.
4846 * expr.c (expand_assignment): Set address space memory attribute
4847 of generated MEM RTXes as appropriate.
4848 (expand_expr_real_1): Likewise.
4849 * cfgexpand.c (expand_debug_expr): Likewise.
4850 * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
4851
4852 * tree.h (struct tree_base): Add address_space bitfield. Reduce
4853 size of "spare" bitfield.
4854 (TYPE_ADDR_SPACE): New macro.
4855 (ENCODE_QUAL_ADDR_SPACE): Likewise.
4856 (DECODE_QUAL_ADDR_SPACE): Likewise.
4857 (CLEAR_QUAL_ADDR_SPACE): Likewise.
4858 (KEEP_QUAL_ADDR_SPACE): Likewise.
4859 (TYPE_QUALS): Encode type address space.
4860 (TYPE_QUALS_NO_ADDR_SPACE): New macro.
4861 * tree.c (set_type_quals): Set type address space.
4862 (build_array_type): Inherit array address space from element type.
4863 * print-tree.c (print_node_brief): Print type address space.
4864 (print_node): Likewise.
4865 * tree-pretty-print.c (dump_generic_node): Likewise.
4866
4867 * explow.c (memory_address): Rename to ...
4868 (memory_address_addr_space): ... this. Add ADDRSPACE argument.
4869 Use address-space aware variants of memory address routines.
4870 * recog.c (memory_address_p): Rename to ...
4871 (memory_address_addr_space_p): ... this. Add ADDSPACE argument.
4872 Use address-space aware variants of memory address routines.
4873 (offsettable_address_p): Rename to ...
4874 (offsettable_address_addr_space_p): ... this. Add ADDRSPACE argument.
4875 Use address-space aware variants of memory address routines.
4876 * reload.c (strict_memory_address_p): Rename to ...
4877 (strict_memory_address_addr_space_p): ... this. Add ADDSPACE argument.
4878 Use address-space aware variants of memory address routines.
4879 (maybe_memory_address_p): Rename to ...
4880 (maybe_memory_address_addr_space_p): ... this. Add ADDSPACE argument.
4881 Use address-space aware variants of memory address routines.
4882 * expr.h (memory_address_addr_space): Add prototype.
4883 (memory_address): Define as macro.
4884 * recog.h (memory_address_addr_space_p): Add prototype.
4885 (memory_address_p): Define as macro.
4886 (offsettable_address_addr_space_p): Add prototype.
4887 (offsettable_address_p): Define as macro.
4888 (strict_memory_address_addr_space_p): Add prototype.
4889 (strict_memory_address_p): Define as macro.
4890
4891 * combine.c (find_split_point): Use address-space aware variants
4892 of memory address routines.
4893 * emit-rtl.c (operand_subword): Likewise.
4894 (change_address_1): Likewise.
4895 (adjust_address_1): Likewise.
4896 (offset_address): Likewise.
4897 * expr.c (emit_move_insn): Likewise.
4898 (expand_assignment): Likewise.
4899 (expand_expr_real_1): Likewise.
4900 * recog.c (verify_changes): Likewise.
4901 (general_operand): Likewise.
4902 (offsettable_memref_p): Likewise.
4903 (offsettable_nonstrict_memref_p): Likewise.
4904 (constrain_operands): Likewise.
4905 * reload.c (get_secondary_mem): Likewise.
4906 (find_reloads_toplev): Likewise.
4907 (find_reloads_address): Likewise.
4908 (find_reloads_subreg_address): Likewise.
4909 * reload1.c (reload): Likewise.
4910 * rtlhooks.c (gen_lowpart_if_possible): Likewise.
4911 * rtl.h (address_cost): Add ADDRSPACE argument.
4912 * rtlanal.c (address_cost): Add ADDRSPACE argument. Use address-space
4913 aware variant of memory address routines.
4914 * loop-invariant.c (create_new_invariant): Update address_cost call.
4915 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4916 * fwprop.c (should_replace_address): Add ADDRSPACE argument.
4917 Use address-space aware variant of memory address routines.
4918 (propagate_rtx_1): Update call to should_replace_address.
4919 * tree-flow.h (multiplier_allowed_in_address_p): Add ADDRSPACE
4920 argument.
4921 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Add
4922 ADDRSPACE argument. Use per-address-space instead of global cache.
4923 Use address-space aware variant of memory address routines.
4924 (get_address_cost): Likewise.
4925 (get_computation_cost_at): Update calls.
4926 * tree-ssa-address.c (valid_mem_ref_p): Add ADDRSPACE argument.
4927 Use address-space aware variant of memory address routines.
4928 (create_mem_ref_raw): Update call to valid_mem_ref_p.
4929 (most_expensive_mult_to_index): Update call to
4930 multiplier_allowed_in_address_p.
4931
4932 * dwarf2out.c (modified_type_die): Output DW_AT_address_class
4933 attribute to indicate named address spaces.
4934
4935 * varasm.c (get_variable_section): DECLs in named address spaces
4936 cannot be "common".
4937
4938 * reload.c (find_reloads_address): Do not use LEGITIMIZE_RELOAD_ADDRESS
4939 for addresses in a non-generic address space.
4940
4941 * expr.c (emit_block_move_hints): Do not use libcalls for
4942 memory in non-generic address spaces.
4943 (clear_storage_hints): Likewise.
4944 (expand_assignment): Likewise.
4945
4946 * fold-const.c (operand_equal_p): Expressions refering to different
4947 address spaces are not equivalent.
4948
4949 * rtl.c (rtx_equal_p_cb): MEMs refering to different address
4950 spaces are not equivalent.
4951 (rtx_equal_p): Likewise.
4952 * cse.c (exp_equiv_p): Likewise.
4953 * jump.c (rtx_renumbered_equal_p): Likewise.
4954 * reload.c (operands_match_p): Likewise.
4955
4956 * alias.c (nonoverlapping_memrefs_p): MEMs refering to different
4957 address spaces may alias.
4958 (true_dependence): Likewise.
4959 (canon_true_dependence): Likewise.
4960 (write_dependence_p): Likewise.
4961
4962 * dse.c (canon_address): Handle named address spaces.
4963 * ifcvt.c (noce_try_cmove_arith): Likewise.
4964
4965 * tree.def (ADDR_SPACE_CONVERT_EXPR): New tree code.
4966 * expr.c (expand_expr_real_2): Expand ADDR_SPACE_CONVERT_EXPR.
4967 * convert.c (convert_to_pointer): Generate ADDR_SPACE_CONVERT_EXPR
4968 to handle conversions between different address spaces.
4969 * fold-const.c (fold_convert_loc): Likewise.
4970 (fold_unary_loc): Handle ADDR_SPACE_CONVERT_EXPR.
4971 * tree-pretty-print.c (dump_generic_node): Likewise.
4972 * gimple-pretty-print.c (dump_unary_rhs): Likewise.
4973 * tree-cfg.c (verify_gimple_assign_unary): Likewise.
4974 * tree-inline.c (estimate_operator_cost): Likewise.
4975 * tree-ssa.c (useless_type_conversion_p): Conversions between pointers
4976 to different address spaces are not useless.
4977
4978 2009-10-26 Jakub Jelinek <jakub@redhat.com>
4979
4980 PR bootstrap/41345
4981 * cfgcleanup.c (trivially_empty_bb_p): New function.
4982 (try_optimize_bb): Use it instead of checking BB_HEAD == BB_END.
4983
4984 PR debug/41828
4985 * dwarf2out.c (add_pubname, add_pubtype, generic_parameter_die,
4986 add_name_and_src_coords_attributes, gen_namespace_die,
4987 dwarf2out_set_name): Handle dwarf2_name returning NULL.
4988
4989 2009-10-26 Nick Clifton <nickc@redhat.com>
4990
4991 * config.gcc: Add support for RX target.
4992 * config/rx: New directory.
4993 * config/rx/constraints.md: New file.
4994 * config/rx/predicates.md: New file.
4995 * config/rx/rx.c: New file.
4996 * config/rx/rx.h: New file.
4997 * config/rx/rx.md: New file.
4998 * config/rx/rx.opt: New file.
4999 * config/rx/rx-protos.h: New file.
5000 * config/rx/t-rx: New file.
5001 * doc/extend.texi: Document RX function attributes.
5002 * doc/invoke.texi: Document RX specific command line options.
5003 * doc/contrib.texi: Document RX contribution.
5004 * doc/md.texi: Document RX constraints.
5005 * doc/install.texi: Document RX support.
5006
5007 2009-10-26 Michael Matz <matz@suse.de>
5008
5009 PR tree-optimization/41783
5010 * tree-ssa-alias.c (get_continuation_for_phi): Export, add a special
5011 case for simple diamonds.
5012 * tree-ssa-alias.h (get_continuation_for_phi): Declare.
5013 * tree-ssa-pre.c (translate_vuse_through_block): Add same_valid
5014 argument, use alias oracle to skip some vdefs.
5015 (phi_translate_1): Change call to above, don't allocate new
5016 value ids if they can stay the same.
5017 (compute_avail): Allow vuse walking when looking up references.
5018
5019 2009-10-26 Richard Guenther <rguenther@suse.de>
5020
5021 PR tree-optimization/41826
5022 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Avoid
5023 access to re-allocated vector fields.
5024
5025 2009-10-26 Richard Guenther <rguenther@suse.de>
5026
5027 * graphite-sese-to-poly.c (check_poly_representation): Fix
5028 compile without checking.
5029
5030 2009-10-26 Janus Weil <janus@gcc.gnu.org>
5031
5032 PR fortran/41714
5033 * gimple.h (tree_annotate_all_with_location): Remove prototype.
5034 * gimplify.c (tree_should_carry_location_p,
5035 tree_annotate_one_with_location,tree_annotate_all_with_location):
5036 Remove obsolete functions.
5037
5038 2009-10-25 Kaz Kojima <kkojima@gcc.gnu.org>
5039
5040 PR target/41813
5041 * config/sh/sh.md (stuff_delay_slot): Don't set T_REG in pattern.
5042
5043 2009-10-25 Richard Guenther <rguenther@suse.de>
5044
5045 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
5046 Stream DECL_RESTRICTED_P.
5047 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
5048
5049 2009-10-25 Richard Sandiford <rdsandiford@googlemail.com>
5050
5051 * config/mips/mips.c (mips_restore_gp_from_cprestore_slot): Emit
5052 a note when expanding to nothing.
5053
5054 2009-10-25 Richard Guenther <rguenther@suse.de>
5055
5056 PR middle-end/41814
5057 * tree.c (find_decls_types_r): Deal with Java overloading
5058 BINFO_VIRTUALS for its own purpose.
5059
5060 2009-10-24 Adam Nemet <anemet@caviumnetworks.com>
5061
5062 * config/mips/predicates.md (hilo_operand): New predicate.
5063 * config/mips/mips.md (<u>mulsidi3_64bit): Change it to a
5064 define_insn. Correct !ISA_HAS_EXT_INS length from 24 to 28. Move
5065 splitter part from here ...:
5066 (<u>mulsidi3_64bit splitter for !ISA_HAS_EXT_INS): ... to here. Swap
5067 op0 and op4 to match the DINS case.
5068 (<u>mulsidi3_64bit splitter for ISA_HAS_EXT_INS): New splitter.
5069
5070 2009-10-24 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
5071
5072 PR middle-end/19154
5073 * avr.md (QIDI): Add new mode iterator.
5074 (sbrx_branch<mode>): Create new zero extract bit, test and jump
5075 patterns for all QI thru DI modes combinations.
5076 (sbrx_and_branch<mode>): Create new and based bit test and jump
5077 patterns for QI thru SI modes.
5078 avr.c (avr_out_sbxx_branch): Use only bit number.
5079
5080 2009-10-24 Jan Hubicka <jh@suse.cz>
5081
5082 * ipa-reference.c (check_call): Noreturn notrhow calls do not write
5083 to memory.
5084 (analyze_function): When analyzing noreturn nothrow call, do not
5085 compute written stats; free bitmaps of vars early if possible.
5086 (generate_summary): Only update bitmaps if computed.
5087 (propagate): Only dump bitmaps if computed.
5088 (ipa_reference_read_summary): Fix pasto.
5089
5090 2009-10-24 Eric Botcazou <ebotcazou@adacore.com>
5091
5092 * tree-ssa-alias.c (nonaliasing_component_refs_p): Rename into...
5093 (aliasing_component_refs_p): ...this. Return true if there is no
5094 common base and the base access types have the same alias set.
5095 (indirect_ref_may_alias_decl_p): Adjust for above renaming.
5096 (indirect_refs_may_alias_p): Likewise.
5097
5098 2009-10-23 Joseph Myers <joseph@codesourcery.com>
5099
5100 PR c/40033
5101 * c-typeck.c (c_finish_stmt_expr): Do not wrap error_mark_node in
5102 a C_MAYBE_CONST_EXPR.
5103
5104 2009-10-23 Michael Meissner <meissner@linux.vnet.ibm.com>
5105
5106 PR target/41787
5107 * config/rs6000/rs6000.c (struct machine_function): Add
5108 vsx_or_altivec_used_p to record if vector types are used.
5109 (rs6000_expand_to_rtl_hook): Rename from
5110 rs6000_alloc_sdmode_stack_slot. If VSX, check to see if there are
5111 any vector operations, so if there are, we can set VRSAVE to
5112 non-zero when only floating point vector registers are used.
5113 (TARGET_EXPAND_TO_RTL_HOOK): Use rs6000_expand_to_rtl_hook.
5114 (rs6000_check_vector_mode): Inner function to check if vector
5115 types are used in the code.
5116 (compute_vrsave_mask): If VSX, make sure VRSAVE is non-zero if
5117 vector instructions are used.
5118
5119 * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED):
5120 Indicate that VSX registers which overlap floating point
5121 registers, can't be used across a call, since the ABI only states
5122 the scalar part of the register will be saved and restored.
5123
5124 2009-10-23 Joseph Myers <joseph@codesourcery.com>
5125
5126 PR c/41673
5127 * alias.c (get_alias_set): Call langhook before returning 0 for
5128 types with structural equality.
5129 * c-common.c (c_common_get_alias_set): Use alias set of element
5130 type for arrays with structural comparison.
5131
5132 2009-10-23 Richard Guenther <rguenther@suse.de>
5133
5134 PR middle-end/41805
5135 * cfgexpand.c (expand_call_stmt): Use gimple_has_side_effects and
5136 gimple_call_nothrow_p.
5137
5138 2009-10-23 Richard Guenther <rguenther@suse.de>
5139
5140 PR tree-optimization/41778
5141 * tree-ssa-pre.c (do_regular_insertion): Only insert if a
5142 redundancy along a path in the CFG we want to optimize for speed
5143 is going to be removed.
5144 (execute_pre): Do partial-PRE only if the function is to be
5145 optimized for speed.
5146 (gate_pre): Do not turn off all of PRE when not optimizing a
5147 function for speed.
5148
5149 2009-10-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5150
5151 * builtins.c (fold_builtin_cabs): Use validate_arg().
5152 (fold_builtin_cexp): Fix if-logic.
5153 (fold_builtin_1): Check subtype for BUILT_IN_CIMAG.
5154
5155 2009-10-22 Jeff Law <law@redhat.com>
5156
5157 * ira-lives.c (process_single_reg_class_operands): Update the
5158 hard reg costs for all the hard registers desired by the
5159 single reg class operand.
5160
5161 2009-10-22 Richard Sandiford <rdsandiford@googlemail.com>
5162
5163 * simplify-rtx.c (simplify_replace_fn_rtx): Add a fallback case
5164 for rtxes that aren't handled specially.
5165
5166 2009-10-22 Richard Sandiford <rdsandiford@googlemail.com>
5167
5168 * rtl.h (shallow_copy_rtvec): Declare.
5169 * rtl.c (shallow_copy_rtvec): New function.
5170 * cselib.c (cselib_subst_to_values): Use it. Only modify an
5171 rtx field if the subrtx has changed.
5172
5173 2009-10-22 Anatoly Sokolov <aesok@post.ru>
5174
5175 * config/m32c/m32c.c (m32c_function_value_regno_p): New function.
5176 (m32c_function_value): Make static, add new 'outgoing' argument.
5177 (m32c_libcall_value): Make static, add new 'fun' argument.
5178 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
5179 * config/m32c/m32c.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
5180 (FUNCTION_VALUE_REGNO_P): Redefine, use m32c_function_value_regno_p.
5181 * config/m32c/m32c-protos.h (m32c_function_value_regno_p): Declare.
5182 (m32c_function_value, m32c_libcall_value): Delete declaration.
5183
5184 2009-10-22 Diego Novillo <dnovillo@google.com>
5185
5186 * Makefile.in (PLUGIN_HEADERS): Add output.h and IPA_UTILS_H.
5187
5188 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
5189
5190 * tree-cfg.c (gimple_duplicate_sese_tail): Fix typos/indentation/white
5191 space.
5192
5193 2009-10-22 Richard Guenther <rguenther@suse.de>
5194
5195 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Declare.
5196 * lto-symtab.c (struct lto_symtab_entry_def): Add node member.
5197 (lto_symtab_merge): Do not merge cgraph nodes here.
5198 (lto_symtab_resolve_can_prevail_p): Simplify.
5199 (lto_symtab_resolve_symbols): Store cgraph node.
5200 (lto_symtab_merge_decls_1): Simplify. Do not drop non-prevailing
5201 functions from the symtab.
5202 (lto_symtab_merge_cgraph_nodes_1): New function.
5203 (lto_symtab_merge_cgraph_nodes): Likewise.
5204
5205 2009-10-22 Richard Guenther <rguenther@suse.de>
5206
5207 PR lto/41791
5208 * lto-streamer-out.c (lto_output_location): Stream the
5209 system header flag.
5210 * lto-streamer-in.c (lto_input_location): Likewise.
5211
5212 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
5213
5214 * cfgloopmanip.c (duplicate_subloops): Export.
5215 * tree-parloops.c (loop_parallel_p): Dump if loop is innermost.
5216 (transform_to_exit_first_loop): Duplicate bbs starting from
5217 header up to loop->latch instead of exit->src.
5218 Initialize control variable to the correct number of iterations.
5219 (gather_scalar_reductions): Do not register double reductions.
5220 (parallelize_loops): Dump which loop is tested.
5221 Indicate whether the parallelized loop is inner or not.
5222 Remove the innermost-loop requirement.
5223 * cfgloop.h (duplicate_subloops): Export.
5224 * tree-cfg.c (add_phi_args_after_redirect): New function.
5225 (gimple_duplicate_sese_tail): Remove the no-subloops constraint.
5226 Call duplicate_subloops.
5227 Update number of iterations at the exit condition.
5228 Don't redirect nexits always to the loop exit.
5229 Redirect copied edges from latch to the loop exit.
5230
5231 2009-10-22 Jan Hubicka <jh@suse.cz>
5232
5233 * ipa-cp.c (ipcp_read_summary): Remove now invalid FIXME and
5234 flag_ltrans check.
5235 * ipa-inline.c (cgraph_mark_inline_edge,
5236 cgraph_decide_inlining_of_small_function,
5237 cgraph_decide_inlining, inline_read_summary): Disable indirect
5238 inlining for WPA for time being.
5239
5240 PR tree-optimize/40556
5241 * ipa-inline.c (cgraph_early_inlining): Fix iterations condition.
5242
5243 2009-10-22 Richard Guenther <rguenther@suse.de>
5244
5245 * lto-streamer.h (lto_symtab_clear_resolution): Remove.
5246 * lto-symtab.c (lto_symtab_clear_resolution): Likewise.
5247
5248 2009-10-22 Jan Hubicka <jh@suse.cz>
5249
5250 PR lto/41730
5251 * ipa-reference.c (has_proper_scope_for_analysis): Add fixme about
5252 global vars.
5253 (check_call): Handle only indirect calls.
5254 (propagate_bits): Update comment.
5255 (write_node_summary_p): Turn bogus check to assert.
5256 (ipa_reference_write_summary): Stream calls_read_all properly.
5257 (ipa_reference_read_summary): Stream in calls_read_all properly.
5258 (read_write_all_from_decl): New function.
5259 (propagate): Handle OVERWRITABLE nodes and external calls here.
5260 * ipa-pre-const.c (check_call): In IPA mode handle indirect
5261 calls only.
5262 (analyze_function): Do not check visibility here.
5263 (add_new_function): We summary OVERWRITABLE too.
5264 (generate_summary): Stream OVERWRITABLE nodes too.
5265 (propagate): Handle external calls and OVERWRITABLE nodes here.
5266 (local_pure_const): Check visibility here.
5267
5268 2009-10-22 Jan Hubicka <jh@suse.cz>
5269
5270 * ipa-cp.c (ipcp_write_summary, ipcp_read_summary): New functions.
5271 (pass_ipa_cp): Register them.
5272 (ipcp_init_stage): Analyze all functions for whopr/lto.
5273 (ipcp_propagate_stage): Skip external calls.
5274 (ipcp_iterate_stage): Call ipa_update_after_lto_read if needed.
5275 * ipa-reference.c (write_node_summary_p): Fix thinko about
5276 availability.
5277 * cgraphunit.c (ipa_passes): When in lto, ne er produce new summaries;
5278 when in ltrans, skip executing of ipa passes since everything
5279 should've been done.
5280 * ipa-inline.c (cgraph_decide_inlining): Remove FIXMEs.
5281 (inline_generate_summary): Likewise.
5282 (inline_read_summary): New function.
5283 (inline_write_summary): New function.
5284 (pass_ipa_inline): Register new hooks.
5285 * ipa-prop.c: Inlcude lto-streamer.h
5286 (ipa_edge_args_vector): Update declaration.
5287 (ipa_count_arguments, ipa_compute_jump_functions,
5288 ipa_free_edge_args_substructures): Move ipa_edge_args_vector into ggc.
5289 (ipa_write_jump_function, ipa_read_jump_function, ipa_write_node_info,
5290 ipa_read_node_info): New static functions.
5291 (ipa_prop_write_jump_functions, ipa_prop_read_jump_functions): Update.
5292 (duplicate_array): Use xmalloc.
5293 (duplicate_ggc_array): New.
5294 (ipa_edge_duplication_hook): Use it.
5295 (ipa_update_after_lto_read): New function.
5296 * ipa-prop.h (ipa_prop_write_jump_functions,
5297 ipa_prop_read_jump_functions): Declare.
5298 (ipa_pass_through_data, ipa_ancestor_jf_data, ipa_member_ptr_cst,
5299 jump_func_value, ipa_member_ptr_cst, ipa_edge_args): Add GTY markers.
5300 (ipa_edge_args_vector): Move into GGC.
5301 (ipa_check_create_edge_args): Update.
5302 (ipa_update_after_lto_read): New.
5303 * passes.c (ipa_write_summaries_1): When in wpa, do not write
5304 summaries.
5305 (ipa_read_summaries): When in ltrans, so not read summaries.
5306 * lto-streamer.c (lto_get_section_name): Add
5307 LTO_section_jump_functions.
5308 * lto-streamer.h (LTO_section_jump_functions): New section.
5309 (produce_asm): Declare.
5310 * lto-cgraph.c (output_cgraph): Output edges in reverse order.
5311 * lto-streamer-out.c (produce_asm): Export.
5312 * lto-streamer-in.c: Include tree-pass.h
5313 (input_function): Free dominance info when done.
5314 (lto_read_body): Push ipa_inline in ltrans stage.
5315 * gengtype.c (open_base_files): Add ipa-prop.h into includes.
5316 * Makefile.in (GTFILES): Add ipa-prop.h
5317
5318 2009-10-22 Matthias Klose <doko@ubuntu.com>
5319
5320 * doc/install.texi: Document --enable-browser-plugin.
5321
5322 2009-10-21 Vladimir Makarov <vmakarov@redhat.com>
5323
5324 * doc/invoke.texi (fira-loop-pressure): Update default value.
5325 * opts.c (decode_options): Remove default value setting for
5326 flag_ira_loop_pressure.
5327 * config/ia64/ia64.c (ia64_override_options): Set
5328 flag_ira_loop_pressure up for -O3.
5329 * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
5330
5331 2009-10-21 Sebastian Pop <sebastian.pop@amd.com>
5332
5333 PR tree-optimization/41497
5334 * tree-scalar-evolution.c (analyze_evolution_in_loop): Return
5335 chrec_dont_know if the evolution function returned by follow_ssa_edge
5336 is constant in the analyzed loop and is not compatible with the
5337 initial value before the loop.
5338 * tree-chrec.h (no_evolution_in_loop_p): Call STRIP_NOPS.
5339
5340 2009-10-21 Joseph Myers <joseph@codesourcery.com>
5341
5342 * config/sh/sh.c (nonpic_symbol_mentioned_p): Allow UNSPEC_TPOFF.
5343
5344 2009-10-21 Jakub Jelinek <jakub@redhat.com>
5345
5346 PR other/25507
5347 * doc/invoke.texi: Document -print-multi-os-directory.
5348
5349 2009-10-21 Jack Howarth <howarth@bromo.med.uc.edu>
5350
5351 PR c++/41313
5352 * gcc/config/darwin10.h: Use default_emit_unwind_label.
5353 * gcc/config/darwin.c: Disable -freorder-blocks-and-partition
5354 when darwin_emit_unwind_label is used.
5355
5356 2009-10-21 Eric Botcazou <ebotcazou@adacore.com>
5357
5358 * tree-vect-stmts.c (exist_non_indexing_operands_for_use_p): Tweak
5359 order of checks.
5360
5361 2009-10-20 Richard Henderson <rth@redhat.com>
5362
5363 * tree-eh.c (lower_try_finally_copy): Do lower_eh_constructs_1
5364 before emit_post_landing_pad.
5365
5366 2009-10-20 Adam Nemet <anemet@caviumnetworks.com>
5367
5368 * config/mips/mips.c (mips_binary_cost): Add new argument speed.
5369 Use when calling rtx_costs.
5370 (mips_rtx_costs): Fix formatting. Use argument speed rather than the
5371 global optimize_size. Pass speed to mips_binary_cost.
5372
5373 2009-10-20 Jakub Jelinek <jakub@redhat.com>
5374
5375 * config/rs6000/rs6000.c (def_builtin): Set TREE_READONLY instead
5376 of TREE_CONSTANT.
5377
5378 2009-10-20 Richard Sandiford <rdsandiford@googlemail.com>
5379
5380 * rtl.h (simplify_replace_fn_rtx): Declare.
5381 (wrap_constant, unwrap_constant): Delete.
5382 * cfgexpand.c (unwrap_constant, wrap_constant): Delete.
5383 (expand_debug_expr): Don't call wrap_constant.
5384 * combine.c (rtx_subst_pair): Only define for AUTO_INC_DEC.
5385 (auto_adjust_pair): Fold into...
5386 (propagate_for_debug_subst): ...here. Only define for AUTO_INC_DEC.
5387 Just return a new value.
5388 (propagate_for_debug): Use simplify_replace_fn_rtx for AUTO_INC_DEC,
5389 otherwise use simplify_replace_rtx.
5390 * cselib.c (wrap_constant): Reinstate old definition.
5391 (cselib_expand_value_rtx_1): Don't wrap constants.
5392 * gcse.c (try_replace_reg): Don't use copy_rtx in the call to
5393 simplify_replace_rtx.
5394 (bypass_block): Fix formatting in calls to simplify_replace_rtx.
5395 * reload1.c (reload): Skip all uses for an insn before adjusting it.
5396 Use simplify_replace_rtx.
5397 * simplify-rtx.c (simplify_replace_fn_rtx): New function,
5398 adapted from...
5399 (simplify_replace_rtx): ...here. Turn into a wrapper for
5400 simplify_replace_fn_rtx.
5401 (simplify_unary_operation): Don't unwrap CONSTs.
5402 * var-tracking.c (check_wrap_constant): Delete.
5403 (vt_expand_loc_callback): Don't call it.
5404 (vt_expand_loc): Likewise.
5405
5406 2009-10-20 Pascal Obry <obry@adacore.com>
5407 Eric Botcazou <ebotcazou@adacore.com>
5408
5409 * config/i386/cygming.h (DWARF_FRAME_REGNUM): Add enclosing parens.
5410
5411 2009-10-20 Michael Matz <matz@suse.de>
5412
5413 * loop-invariant.c (create_new_invariant): Use different magic number.
5414
5415 2009-10-20 Richard Earnshaw <rearnsha@arm.com>
5416
5417 PR target/39247
5418 * arm.c (arm_override_options): Forcibly disable hot/cold block
5419 partitioning.
5420
5421 2009-10-20 Alexandre Oliva <aoliva@redhat.com>
5422
5423 PR debug/41739
5424 * haifa-sched.c (try_ready): Skip debug deps updating speculation
5425 status.
5426
5427 2009-10-20 Richard Guenther <rguenther@suse.de>
5428
5429 * ggc-page.c: Include cfgloop.h.
5430 (struct max_alignment): Drop long double, add void *.
5431 (extra_order_size_table): Add low non-power-of-two multiples
5432 of MAX_ALIGNMENT. Drop small type-based entries, add
5433 tree_type, cgraph_node and loop.
5434 * alloc-pool.c (struct allocation_object_def): Drop long double
5435 aligning element.
5436
5437 2009-10-20 Jakub Jelinek <jakub@redhat.com>
5438
5439 PR debug/41340
5440 * loop-invariant.c (calculate_loop_reg_pressure): Don't count regs
5441 referenced just in DEBUG_INSNs.
5442
5443 2009-10-20 Richard Guenther <rguenther@suse.de>
5444
5445 PR lto/41761
5446 * gimple.c (gimple_register_type): Make sure we register
5447 the types main variant first.
5448
5449 2009-10-20 Richard Guenther <rguenther@suse.de>
5450
5451 * gimple.c (gimple_types_compatible_p): Simplify. Move
5452 cheap checks before hashtable queries. Add checks for
5453 TYPE_NONALIASED_COMPONENT and DECL_NONADDRESSABLE_P.
5454
5455 2009-10-20 Eric Botcazou <ebotcazou@adacore.com>
5456
5457 * tree-sra.c (build_ref_for_offset_1) <RECORD_TYPE>: Skip fields
5458 without size or with size that can't be represented as a host integer.
5459
5460 2009-10-20 Alexandre Oliva <aoliva@redhat.com>
5461
5462 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't regard
5463 the removal of a debug stmt as a significant change.
5464
5465 2009-10-20 Wolfgang Gellerich <gellerich@de.ibm.com>
5466
5467 * config/s390/s390.md: Added agen condition to operand
5468 forwarding bypasses. Added bypass for early address generation
5469 use of int results. Updated comments.
5470
5471 2009-10-20 Stefan Dösinger <stefan@codeweavers.com>
5472
5473 * config/i386/i386.c: Remove signal.h #include.
5474
5475 2009-10-20 Jie Zhang <jie.zhang@analog.com>
5476
5477 * simplify-rtx.c (simplify_const_unary_operation): Handle SS_ABS.
5478 * doc/rtl.texi: Document ss_abs.
5479
5480 2009-10-19 Jakub Jelinek <jakub@redhat.com>
5481
5482 * c-common.c (c_parse_error): Handle CPP_UTF8STRING.
5483 * c-lex.c (c_lex_with_flags): Likewise. Test C_LEX_STRING_NO_JOIN
5484 instead of C_LEX_RAW_STRINGS.
5485 (lex_string): Handle CPP_UTF8STRING.
5486 * c-parser.c (c_parser_postfix_expression): Likewise.
5487 * c-pragma.h (C_LEX_RAW_STRINGS): Rename to ...
5488 (C_LEX_STRING_NO_JOIN): ... this.
5489
5490 2009-10-19 Anatoly Sokolov <aesok@post.ru>
5491
5492 * config/cris/cris.c (cris_function_value, cris_libcall_value,
5493 cris_function_value_regno_p): New functions.
5494 (cris_promote_function_mode): Update comment.
5495 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
5496 * config/cris/cris.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
5497 (FUNCTION_VALUE_REGNO_P): Redefine, use cris_function_value_regno_p.
5498 * config/cris/cris-protos.h (cris_function_value_regno_p): Declare.
5499
5500 2009-10-19 Jakub Jelinek <jakub@redhat.com>
5501
5502 * unwind-dw2.c (execute_stack_op): Fix operand order for
5503 DW_OP_le, DW_OP_ge, DW_OP_lt and DW_OP_gt.
5504
5505 2009-10-19 Eric Botcazou <ebotcazou@adacore.com>
5506
5507 * gimple-low.c (struct lower_data): Add cannot_fallthru field.
5508 (lower_stmt) <GIMPLE_BIND>: Add comment.
5509 <GIMPLE_COND, GIMPLE_GOTO, GIMPLE_SWITCH>: Set cannot_fallthru to true
5510 and return.
5511 <GIMPLE_RETURN>: Remove the statement if cannot_fallthru is set.
5512 Otherwise lower it and set cannot_fallthru to true.
5513 <GIMPLE_TRY>: Update cannot_fallthru for GIMPLE_TRY_FINALLY and return.
5514 <GIMPLE_CATCH, GIMPLE_EH_FILTER>: Set cannot_fallthru to false.
5515 <GIMPLE_CALL>: Set cannot_fallthru to false for BUILT_IN_SETJMP and
5516 to true for a noreturn call. Do not remove statements.
5517 <GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TASK>: Set cannot_fallthru to false.
5518 Set cannot_fallthru to false on function exit.
5519 (gimple_stmt_may_fallthru) <GIMPLE_SWITCH>: Really return false.
5520 <GIMPLE_ASSIGN>: Remove.
5521
5522 2009-10-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5523
5524 * config/s390/s390.c (s390_z10_optimize_cmp): Don't touch FP compares.
5525
5526 2009-10-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5527
5528 * config/s390/s390.c (s390_z10_optimize_cmp): Use
5529 next/prev_active_insn to skip DEBUG_INSNs as well.
5530
5531 2009-10-19 Joseph Myers <joseph@codesourcery.com>
5532
5533 * config/arm/arm.c (output_move_neon): Use DImode in call to
5534 adjust_address.
5535
5536 2009-10-19 Matthias Klose <doko@ubuntu.com>
5537
5538 PR target/40134
5539 * config.gcc (arm*-*-linux-*eabi): Use config/t-slibgcc-libgcc.
5540
5541 2009-10-19 Jakub Jelinek <jakub@redhat.com>
5542
5543 * cfgexpand.c (expand_debug_expr): Fail if bitpos < 0 for non-MEM op0.
5544
5545 2009-10-17 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
5546
5547 PR middle-end/41738
5548 * optabs.c (expand_binop): Make mode of shift count expression mode
5549 of shift count not target.
5550 Remove indent nit.
5551
5552 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
5553
5554 * tree-nested.c (convert_nonlocal_reference_stmt) <GIMPLE_COND>: New
5555 case. Force using values to replace references within the statement.
5556 (convert_local_reference_stmt): Likewise.
5557
5558 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
5559
5560 * gimple-low.c (lower_stmt) <GIMPLE_CALL>: If the call is noreturn,
5561 remove a subsequent GOTO or RETURN statement.
5562
5563 2009-10-17 Andy Hutchinson <hutchinsonandy@aim.com>
5564
5565 * config/avr.md (*movqi): Add zero as equally preferable constraint
5566 as general register.
5567 (*movhi): Ditto.
5568
5569 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
5570
5571 * print-tree.c (print_node): Fix string for DECL_STRUCT_FUNCTION.
5572
5573 2009-10-17 Richard Guenther <rguenther@suse.de>
5574
5575 * lto-streamer-in.c (lto_input_location): Try to reuse previous maps.
5576
5577 2009-10-17 Richard Guenther <rguenther@suse.de>
5578
5579 * lto-streamer-in.c (input_gimple_stmt): Fixup FIELD_DECL
5580 operands in COMPONENT_REFs.
5581
5582 2009-10-17 Anatoly Sokolov <aesok@post.ru>
5583
5584 * targhooks.c (default_libcall_value): Don't use LIBCALL_VALUE macro
5585 if not defined. Change type of second argument to const_rtx.
5586 (default_function_value): Call gcc_unreachable if FUNCTION_VALUE
5587 macro not defined.
5588 * targhooks.h (default_libcall_value): Update prototype.
5589 * target.h (struct gcc_target): Change type of second argument of
5590 libcall_value to const_rtx.
5591 * config/arm/arm.c (arm_libcall_value): Change type of second argument
5592 to const_rtx.
5593 (arm_libcall_uses_aapcs_base): Change type of argument to const_rtx.
5594 * doc/tm.texi (TARGET_LIBCALL_VALUE): Revise documentation.
5595
5596 2009-10-17 Jakub Jelinek <jakub@redhat.com>
5597
5598 PR debug/40521
5599 * debug.h (struct gcc_debug_hooks): Add assembly_start hook.
5600 * cgraphunit.c (cgraph_optimize): Call it.
5601 * dwarf2out.c (dwarf2out_init): Move .cfi_sections printing into...
5602 (dwarf2out_assembly_start): ... here. New hook.
5603 (dwarf2out_debug_hooks): Add dwarf2out_assembly_start.
5604 * debug.c (do_nothing_debug_hooks): Do nothing for assembly_start
5605 hook.
5606 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
5607 * sdbout.c (sdb_debug_hooks): Likewise.
5608 * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_assembly_start.
5609 (vmsdbgout_assembly_start): New hook.
5610
5611 2009-10-17 Alexandre Oliva <aoliva@redhat.com>
5612
5613 * rtl.h (RTL_LOCATION): Fix typo.
5614
5615 2009-10-17 Alexandre Oliva <aoliva@redhat.com>
5616
5617 * print-rtl.c (print_rtx): Print locators in asm_operands
5618 and asm_input.
5619
5620 2009-10-17 Alexandre Oliva <aoliva@redhat.com>
5621
5622 PR debug/41535
5623 * sched-deps.c (depl_on_debug_p): New.
5624 (attach_dep_link): Reject debug deps before nondebug deps.
5625 (add_to_deps_list): Insert debug deps after nondebug deps.
5626 (sd_lists_empty_p): Stop at first nonempty list. Disregard debug
5627 deps.
5628 (sd_add_dep): Do not reject debug deps.
5629 (add_insn_mem_dependence): Don't count debug deps.
5630 (remove_from_deps): Likewise.
5631 (sched_analyze_2): Set up mem deps on debug insns.
5632 (sched_analyze_insn): Record reg uses for deps on debug insns.
5633 * haifa-sched.c (schedule_insn): Reset deferred debug insn. Don't
5634 try_ready nondebug insn after debug insn.
5635 * ddg.c (create_ddg_dep_from_intra_loop_link,
5636 create_ddg_dep_no_link): Don't reject debug deps.
5637
5638 2009-10-16 Richard Guenther <rguenther@suse.de>
5639
5640 * lto-symtab.c (merge_incomplete_and_complete_type): Remove.
5641 (maybe_merge_incomplete_and_complete_type): Likewise.
5642 (lto_symtab_merge): Do not call them. Do not warn for
5643 complete vs. incomplete compatible types.
5644 (lto_symtab_merge_decls_2): Simplify.
5645 * gimple.c (gimple_force_type_merge): Remove.
5646 (gimple_types_compatible_p): Make it static.
5647 * gimple.h (gimple_force_type_merge): Remove.
5648 (gimple_types_compatible_p): Likewise.
5649
5650 2009-10-16 Jakub Jelinek <jakub@redhat.com>
5651
5652 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Cast
5653 DWARF2_ADDR_SIZE to int to avoid signed vs. unsigned warnings.
5654
5655 2009-10-16 Richard Guenther <rguenther@suse.de>
5656
5657 PR tree-optimization/41728
5658 * tree-ssa-dom.c (optimize_stmt): Mark the stmt modified
5659 if fold_stmt did anything.
5660
5661 2009-10-16 Richard Guenther <rguenther@suse.de>
5662
5663 PR lto/41715
5664 * lto-streamer-in.c (lto_input_tree_ref): Revert last change.
5665 (maybe_fixup_handled_component): New function.
5666 (input_gimple_stmt): Fixup mismatched decl replacements.
5667
5668 2009-10-16 Richard Guenther <rguenther@suse.de>
5669
5670 PR lto/41713
5671 * lto-streamer-out.c (lto_output_tree_ref): Handle DEBUG_EXPR_DECL
5672 the same as VAR_DECL.
5673
5674 2009-10-16 Richard Guenther <rguenther@suse.de>
5675
5676 * gimple.c (iterative_hash_gimple_type): For integer types
5677 also hash their minimum and maximum values and the string flag.
5678 For array types hash their domain and the string flag.
5679
5680 2009-10-16 Richard Guenther <rguenther@suse.de>
5681
5682 * gimple.c (gimple_types_compatible_p): Restrict completing
5683 types to record or unions. Simplify completion.
5684 Do not merge records or unions with different
5685 TYPE_STRUCTURAL_EQUALITY_P tag.
5686 (iterative_hash_gimple_type): Restrict non-recursing into
5687 pointer targets for records and unions.
5688
5689 2009-10-15 Jakub Jelinek <jakub@redhat.com>
5690
5691 PR debug/41717
5692 * cfgexpand.c (expand_debug_expr): Handle CONJ_EXPR.
5693 * dwarf2out.c (mem_loc_descriptor): Don't handle
5694 POST_INT/POST_DEC/POST_MODIFY like SUBREG. For SUBREG
5695 punt if it is not lowpart subreg or if inner mode isn't
5696 MODE_INT.
5697
5698 2009-10-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5699
5700 * config/s390/s390.c (s390_z10_optimize_cmp): Skip notes when
5701 investigating previous or next insns.
5702
5703 2009-10-16 Eric Botcazou <ebotcazou@adacore.com>
5704
5705 * tree-sra.c (build_ref_for_offset_1): Update comment.
5706
5707 2009-10-16 Wolfgang Gellerich <gellerich@de.ibm.com>
5708
5709 * config/s390/s390.md (atype): Added missing values.
5710
5711 2009-10-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5712
5713 PR target/41702
5714 * pa.md (casesi): Use sign extended index in call to gen_casesi64p.
5715 (casesi64p): Update pattern to reflect above.
5716
5717 2009-10-15 Steve Ellcey <sje@cup.hp.com>
5718
5719 PR rtl-optimization/41697
5720 * sel-sched-ir.h (_eligible_successor_edge_p): Check successor count.
5721
5722 2009-10-15 Michael Meissner <meissner@linux.vnet.ibm.com>
5723
5724 PR target/23983
5725 * config/rs6000/predicates.md: Update copyright year.
5726 * config/rs6000/altivec.md: Ditto.
5727
5728 * config/rs6000/t-rs6000 (TM_H): Add rs6000-builtin.def.
5729 (MD_INCLUDES): Add a2.md.
5730
5731 * config/rs6000/rs6000.c (rs6000_builtin_decls): Change
5732 RS6000_BUILTIN_COUNT to MAX_RS6000_BUILTINS.
5733 (builtin_classify): New static vector to classify various builtins
5734 to get the tree attributes correct.
5735 (def_builtin): Set the attributes of builtins based on what the
5736 builtin does (i.e. memory operation, floating point, saturation
5737 need special attributes, others are pure functions).
5738
5739 * config/rs6000/rs6000.h (enum rs6000_btc): New enum to classify
5740 the builtins.
5741 (enum rs6000_builtins): Include rs6000-builtin.def to define the
5742 builtins. Change the end marker to MAX_RS6000_BUILTINS from
5743 RS6000_BUILTIN_COUNT.
5744 (rs6000_builtin_decls): Change RS6000_BUILTIN_COUNT to
5745 MAX_RS6000_BUILTINS.
5746
5747 * config/rs6000/rs6000-builtin.def: New file that combines the
5748 builtin enumeration name and attributes.
5749
5750 2009-10-15 H.J. Lu <hongjiu.lu@intel.com>
5751
5752 * config/i386/linux.h (ASM_SPEC): Add --32.
5753
5754 2009-10-15 Jakub Jelinek <jakub@redhat.com>
5755
5756 * dwarf2out.c (dwarf_tag_name): Handle DW_TAG_rvalue_reference_type
5757 and DW_TAG_template_alias.
5758 (dwarf_attr_name): Handle DW_AT_main_subprogram,
5759 DW_AT_data_bit_offset, DW_AT_const_expr, DW_AT_enum_class,
5760 DW_AT_linkage_name, DW_AT_GNU_guarded_by, DW_AT_GNU_pt_guarded_by,
5761 DW_AT_GNU_guarded, DW_AT_GNU_pt_guarded, DW_AT_GNU_locks_excluded,
5762 DW_AT_GNU_exclusive_locks_required, DW_AT_GNU_shared_locks_required
5763 and DW_AT_GNU_odr_signature.
5764 (dwarf_form_name): Handle DW_FORM_sec_offset, DW_FORM_exprloc,
5765 DW_FORM_flag_present and DW_FORM_ref_sig8.
5766 (output_signature): Only print name on the first byte.
5767 (output_die): Likewise for dw_val_class_data8.
5768
5769 2009-10-15 Alexander Monakov <amonakov@ispras.ru>
5770
5771 * doc/invoke.texi: Clarify that most optimizations are not enabled
5772 without -O.
5773
5774 2009-10-15 Richard Guenther <rguenther@suse.de>
5775
5776 PR lto/41668
5777 * gimple.c (compare_type_names_p): Handle anonymous names
5778 differently based on new mode argument.
5779 (gimple_types_compatible_p): For structs also compare the tags.
5780 (iterative_hash_type_name): Rename to ...
5781 (iterative_hash_name): ... this. Hash all names.
5782 (iterative_hash_gimple_type): Fix hashing the struct tag of
5783 pointer targets. Hash field decl names.
5784
5785 2009-10-15 Richard Guenther <rguenther@suse.de>
5786
5787 PR lto/41669
5788 * gimple.c (gimple_get_alias_set): Avoid recursing on
5789 invalid type topology.
5790
5791 2009-10-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
5792
5793 * config/spu/spu.c (get_branch_target): Use extract_asm_operands.
5794
5795 2009-10-15 Richard Guenther <rguenther@suse.de>
5796
5797 * tree.c (free_lang_data_in_decl): Free DECL_FCONTEXT.
5798
5799 2009-10-15 Jakub Jelinek <jakub@redhat.com>
5800
5801 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Don't
5802 add --with-tune{,-32,-64} configured default for -mtune if explicit
5803 -mcpu is used.
5804
5805 2009-10-14 Daniel Gutson <dgutson@codesourcery.com>
5806
5807 * config/arm/neon.md (neon_vshll_n<mode>): Checking Bounds fixed.
5808
5809 2009-10-14 DJ Delorie <dj@redhat.com>
5810
5811 * config/h8300/h8300.c (F): New.
5812 (Fpa): New.
5813 (h8300_emit_stack_adjustment): Call them.
5814 (push): Likewise.
5815 (h8300_push_pop): Likewise.
5816 (h8300_expand_prologue): Likewise.
5817 * config/h8300/h8300.h (DWARF2_DEBUGGING_INFO): Define.
5818 (MUST_USE_SJLJ_EXCEPTIONS): Define.
5819 (INCOMING_RETURN_ADDR_RTX): Define.
5820 (INCOMING_FRAME_SP_OFFSET): Define.
5821 (DWARF_CIE_DATA_ALIGNMENT): Define.
5822
5823 2009-10-14 Jakub Jelinek <jakub@redhat.com>
5824
5825 * stor-layout.c (place_field): Don't emit -Wpadded warnings for
5826 fields in builtin structs.
5827 (finalize_record_size): Likewise.
5828
5829 2009-10-14 Richard Guenther <rguenther@suse.de>
5830
5831 * gimple.c (gtc_ob): New global.
5832 (struct type_pair_d): Replace pointers with type UIDs.
5833 (type_pair_hash): Adjust.
5834 (type_pair_eq): Likewise.
5835 (lookup_type_pair): Likewise. Allocate from an obstack.
5836 (gimple_force_type_merge): Adjust.
5837 (gimple_types_compatible_p): Likewise.
5838 (free_gimple_type_tables): Free the obstack.
5839
5840 2009-10-14 Jakub Jelinek <jakub@redhat.com>
5841
5842 * tree-parloops.c (separate_decls_in_region_debug_bind): Drop debug
5843 stmts setting DEBUG_EXPR_DECLs.
5844
5845 * cfgexpand.c (expand_debug_expr): Ignore zero-length bitfields.
5846 Don't crash if mode1 is VOIDmode.
5847
5848 2009-09-26 Vladimir Makarov <vmakarov@redhat.com>
5849
5850 * params.def (PARAM_IRA_LOOP_RESERVED_REGS): New.
5851 * params.h (IRA_LOOP_RESERVED_REGS): New.
5852 * tree-pass.h (pass_subregs_of_mode_init,
5853 pass_subregs_of_mode_finish): Remove.
5854 * passes.c (pass_subregs_of_mode_init,
5855 pass_subregs_of_mode_finish): Remove.
5856 (pass_reginfo_init): Move before loop optimizations.
5857 * config/i386/i386.h (STACK_REG_COVER_CLASS): Define.
5858 * common.opt (fira-loop-pressure): New.
5859 * toplev.h (flag_ira_loop_pressure): New.
5860 * rtl.h (init_subregs_of_mode, finish_subregs_of_mode): New externals.
5861 * reginfo.c (init_subregs_of_mode, finish_subregs_of_mode):
5862 Make external and void type functions.
5863 (gate_subregs_of_mode_init, pass_subregs_of_mode_init,
5864 pass_subregs_of_mode_finish): Remove.
5865 * ira-costs.c (init_costs): Call init_subregs_of_mode.
5866 * regmove.c: Include ira.h.
5867 (regmove_optimize): Call ira_set_pseudo_classes after IRA based
5868 register pressure calculation in loops.
5869 * loop-invariant.c: Include REGS_H and ira.h.
5870 (struct loop_data): New members max_reg_pressure, regs_ref, and
5871 regs_live.
5872 (struct invariant): New member orig_regno.
5873 (curr_loop): New variable.
5874 (find_exits): Initialize regs_ref and regs_live.
5875 (create_new_invariant): Initialize orig_regno.
5876 (get_cover_class_and_nregs): New.
5877 (get_inv_cost): Make aregs_needed an array. Use regs_needed as an
5878 array. Add code for flag_ira_loop_pressure.
5879 (gain_for_invariant): Make new_regs an array. Add code for
5880 flag_ira_loop_pressure.
5881 (best_gain_for_invariant): Ditto.
5882 (set_move_mark): New parameter gain. Use it for debugging output.
5883 (find_invariants_to_move): Make regs_needed and new_regs an array.
5884 Add code for flag_ira_loop_pressure.
5885 (move_invariant_reg): Set up orig_regno.
5886 (move_invariants): Set up reg classes for pseudos for
5887 flag_ira_loop_pressure.
5888 (free_loop_data): Clear regs_ref and regs_live.
5889 (curr_regs_live, curr_reg_pressure, regs_set, n_regs_set,
5890 get_regno_cover_class, change_pressure, mark_regno_live,
5891 mark_regno_death, mark_reg_store, mark_reg_clobber,
5892 mark_reg_death, mark_ref_regs, calculate_loop_reg_pressure): New.
5893 (move_loop_invariants): Calculate pressure. Initialize curr_loop.
5894 * ira.c (ira): Call ira_set_pseudo_classes after IRA based
5895 register pressure calculation in loops if new regs were added.
5896 Call finish_subregs_of_mode.
5897 * opts.c (decode_options): Set up flag_ira_loop_pressure.
5898 * Makefile.in (loop-invariant.o): Add ira.h.
5899 (regmove.o): Ditto.
5900 * doc/invoke.texi (-fira-loop-pressure, ira-loop-reserved-regs):
5901 Describe.
5902 * doc/tm.texi (STACK_REG_COVER_CLASS): Describe.
5903
5904 2009-10-14 Richard Guenther <rguenther@suse.de>
5905
5906 * lto-symtab.c (lto_symtab_compatible): Fold in ...
5907 (lto_symtab_merge): ... here. Rewrite both to take the
5908 prevailing and a to-be-merged entry and to queue diagnostics properly.
5909 (lto_symtab_resolve_replaceable_p): New predicate for
5910 symbol resolution.
5911 (lto_symtab_resolve_can_prevail_p): Likewise.
5912 (lto_symtab_resolve_symbols): Rewrite. Fold in code that
5913 handles merging commons by choosing the largest decl. Fold
5914 in code that gives ODR errors.
5915 (lto_symtab_merge_decls_2): Simplify a lot. Emit queued
5916 diagnostics here.
5917 (lto_symtab_merge_decls_1): Re-structure. Deal with the
5918 case of no prevailing decl here. Diagnose mismatches
5919 in object types here. Drop all but the prevailing decls.
5920 (lto_symtab_prevailing_decl): Return the single prevailing decl.
5921 * lto-streamer-in.c (lto_input_tree_ref): Deal with
5922 VIEW_CONVERT_EXPRs in decl slots. Unshare the tree in this case.
5923
5924 2009-10-14 Richard Guenther <rguenther@suse.de>
5925
5926 PR lto/41521
5927 * lto-streamer-in.c (input_bb): Replace debug stmts with
5928 nops instead of dropping them.
5929
5930 2009-10-14 Nick Clifton <nickc@redhat.com>
5931
5932 * gcc/doc/extended.texi: Replace the dash character with @minus{}
5933 in situations where it is being used as a minus symbol.
5934 * gcc/doc/tm.texi: Likewise.
5935 * gcc/doc/md.texi: Likewise.
5936
5937 2009-10-14 Jakub Jelinek <jakub@redhat.com>
5938
5939 PR preprocessor/41543
5940 * input.h (BUILTINS_LOCATION): Change to 1 from 2.
5941 Assert BUILTINS_LOCATION < RESERVED_LOCATION_COUNT.
5942 * tree.c: Include intl.h.
5943 (expand_location): Handle BUILTINS_LOCATION.
5944 * Makefile.in (tree.o): Depend on intl.h.
5945
5946 PR debug/41695
5947 * dwarf2out.c (dwarf2out_var_location): Always clear
5948 last_postcall_label when changing last_label.
5949
5950 2009-10-14 Pascal Obry <obry@adacore.com>
5951
5952 * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION): Add -E.
5953 (process_command): Handle -E as done with -c and -S. Do not add
5954 the target executable suffix to the output file when -E is used.
5955 (main): Adjust error message accordingly.
5956
5957 2009-10-14 Alexandre Oliva <aoliva@redhat.com>
5958
5959 PR debug/41343
5960 PR debug/41447
5961 PR debug/41264
5962 PR debug/41338
5963 * tree.c (tree_node_structure_for_code): DEBUG_EXPR_DECL uses
5964 decl with rtl.
5965 (tree_code_size): Likewise.
5966
5967 2009-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5968
5969 * builtins.c (fold_builtin_1): Support complex "arc" functions.
5970 * real.h (HAVE_mpc_arc): Define.
5971
5972 2009-10-14 Kaz Kojima <kkojima@gcc.gnu.org>
5973
5974 * config/sh/sh.c (TARGET_BUILTIN_DECL): Define.
5975 (struct builtin_description): Add fndecl field.
5976 (bdesc): Remove const qualifier. Update initializer.
5977 (sh_media_init_builtins): Remove const qualifier for d. Record
5978 the result of add_builtin_function to the fndecl field.
5979 (sh_builtin_decl): New.
5980 (sh_media_builtin_decl): New.
5981
5982 2009-10-14 Hans-Peter Nilsson <hp@axis.com>
5983
5984 PR target/38948
5985 * config/cris/cris.h (SECONDARY_RELOAD_CLASS): Handle reload
5986 requests between special registers.
5987
5988 2009-10-13 Eric Botcazou <ebotcazou@adacore.com>
5989
5990 * dwarf2out.c (mem_loc_descriptor): Accept UNGT as well.
5991
5992 2009-10-13 Richard Henderson <rth@redhat.com>
5993
5994 PR tree-optimization/41377
5995 * tree-eh.c (unsplit_eh): Propagate degenerate PHIs.
5996 (cleanup_empty_eh_merge_phis): New change_region parameter;
5997 pass it on to redirect_eh_edge_1. Update callers.
5998 (cleanup_empty_eh_unsplit): Don't require an existing EH label
5999 at the destination block.
6000
6001 2009-10-13 Basile Starynkevitch <basile@starynkevitch.net>
6002
6003 * passes.c (register_pass): Replaced gcc_unreachable by
6004 fatal_error on failure. Mentions plugins in comments & messages.
6005
6006 2009-10-13 Jakub Jelinek <jakub@redhat.com>
6007
6008 PR target/41693
6009 * rtl.h (DEBUG_EXPR_TREE_DECL): Define.
6010 * sched-vis.c (print_value): Use it.
6011 * cselib.c (cselib_hash_rtx): Likewise.
6012 * print-rtl.c (print_rtx): Likewise.
6013 * cfgexpand.c (expand_debug_rtx): Likewise.
6014 * var-tracking.c (vt_expand_loc_callback): Likewise.
6015
6016 2009-10-13 Richard Guenther <rguenther@suse.de>
6017
6018 PR lto/41565
6019 * opts.c (handle_option): Split out code to handle setting
6020 the options flag var ...
6021 (set_option): ... here.
6022 * opts.h (set_option): Declare.
6023 * lto-opts.c (register_user_option_p): Include -fexceptions
6024 and all position independent code variants.
6025 (handle_common_option): Remove.
6026 (lto_reissue_options): Use set_option.
6027
6028 2009-10-13 Martin Jambor <mjambor@suse.cz>
6029
6030 PR tree-optimization/41661
6031 * ipa-prop.c (compute_complex_pass_through): Allow only operations
6032 that are tcc_comparisons or do not change the type in any
6033 un-usleless way.
6034 * ipa-cp.c (ipcp_lattice_from_jfunc): Request boolean type when
6035 folding tcc_comparison operations.
6036
6037 2009-10-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6038
6039 * config/s390/s390.c (s390_encode_section_info): Handle BLKmode
6040 properly.
6041
6042 2009-10-12 Alexandre Oliva <aoliva@redhat.com>
6043
6044 PR debug/41343
6045 PR debug/41447
6046 PR debug/41264
6047 PR debug/41338
6048 * tree.def (DEBUG_EXPR_DECL): New.
6049 * rtl.def (DEBUG_EXPR): New.
6050 * gengtype.c (adjust_field_rtx_def): Handle it.
6051 * tree-ssa.c (propagate_var_def_into_debug_stmts): Rename to...
6052 (insert_debug_temp_for_var_def): ... this. Drop support for
6053 moving. Take iterator for def stmt; insert debug stmt before it.
6054 Scan early for use count and kind in debug stmts.
6055 (propagate_defs_into_debug_stmts): Rename to...
6056 (insert_debug_temps_for_defs): ... this. Likewise.
6057 * tree.h (DEBUG_TEMP_UID): New.
6058 * tree.c (next_debug_decl_uid): New.
6059 (make_node_stat): Count debug decls separately.
6060 (copy_node_stat): Likewise.
6061 * cfgexpand.c (expand_debug_expr): Handle DEBUG_EXPR_DECL.
6062 * var-tracking.c (dv_is_decl_p): Recognize it.
6063 (VALUE_RECURSED_INTO): Apply to DEBUG_EXPRs too.
6064 (track_expr_p): Track expanded DEBUG_EXPR_DECLs.
6065 (vt_expand_loc_callback): Expand DEBUG_EXPRs.
6066 (emit_note_insn_var_location): Don't emit notes for DEBUG_EXPR_DECLs.
6067 * cselib.c (rtx_equal_for_cselib_p): Handle DEBUG_EXPR.
6068 (cselib_hash_rtx): Likewise.
6069 (cselib_expand_value_rtx_1): Use callback for DEBUG_EXPR.
6070 * tree-ssa-operands.c (get_expr_operands): Skip DEBUG_EXPR_DECLs in
6071 debug bind stmts.
6072 * emit-rtl.c (verify_rtx_sharing): Handle DEBUG_EXPR and VALUE.
6073 (copy_rtx_if_shared_1, reset_used_flags, set_used_flags): Likewise.
6074 * rtl.c (copy_rtx): Likewise.
6075 (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_EXPR.
6076 * print-rtl.c (print_rtx): Likewise.
6077 * sched-vis.c (print_value): Likewise.
6078 (print_insn): Handle DEBUG_EXPR_DECL.
6079 * tree-dump.c (dequeue_and_dump): Likewise.
6080 * tree-pretty-print.c (dump_decl_name, dump_generic_node): Likewise.
6081 * gimple-iterator (gsi_replace): Check for same lhs.
6082 (gsi_remove): Insert debug temps.
6083 * tree-ssa-loop-im.c (rewrite_reciprocal): Replace with same lhs.
6084 (move_computations_stmt): Drop explicit propagation into debug stmts.
6085 (rewrite_bittest): Likewise. Use gsi_remove for propagation.
6086 * tree-ssa-reassoc.c (rewrite_expr_tree, linearize_expr): Likewise.
6087 * tree-ssa-sink.c (statement_sink_location): Likewise.
6088 * tree-ssa-forwprop (forward_propagate_addr_expr): Likewise.
6089 * tree-ssanames.c (release_ssa_name): Adjust for rename.
6090 * tree-flow.h: Likewise.
6091 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Don't mark
6092 debug temps without values.
6093 (eliminate_unnecessary_stmts): Don't discard just-inserted
6094 debug stmts.
6095
6096 2009-10-12 Hans-Peter Nilsson <hp@axis.com>
6097
6098 PR target/26515
6099 * config/cris/cris.md (andu): Check that operand 1 is one of the
6100 general registers. Fix typo in head comment.
6101
6102 2009-10-12 Stefan Dösinger <stefan@codeweavers.com>
6103
6104 * config/i386/i386.md (vswapmov): New.
6105 * config/i386/i386.c (ix86_handle_fndecl_attribute): New.
6106 (ix86_function_ms_hook_prologue): New.
6107 (ix86_expand_prologue): Handle ms_hook_prologue attribute.
6108 * configure.ac: Test for swap suffix support in as.
6109 * configure: Rebuild.
6110
6111 2009-10-12 Jakub Jelinek <jakub@redhat.com>
6112
6113 PR target/41680
6114 * config/i386/i386.md (split after *testqi_ext_3_rex64): Only narrow
6115 paradoxical subregs to prevent partial register stalls if the inner
6116 mode is integer mode.
6117
6118 2009-10-12 Uros Bizjak <ubizjak@gmail.com>
6119
6120 * config/i386/i386.md (*setcc_<mode>_2): Remove insn pattern.
6121
6122 2009-10-12 Dodji Seketeli <dodji@redhat.com>
6123
6124 PR c++/41570
6125 * gcc/dwarf2out.c (template_parameter_pack_die,
6126 gen_formal_parameter_pack_die): Use add_name_and_src_coords_attributes.
6127
6128 2009-10-12 Alexandre Oliva <aoliva@redhat.com>
6129
6130 PR debug/41616
6131 * tree-into-ssa.c (insert_phi_nodes_for): Build debug bind stmts
6132 on updates too.
6133 (maybe_register_def): Likewise. Take stmt iterator.
6134 (rewrite_update_stmt): Take stmt iterator and pass it on.
6135 (rewrite_update_enter_block): Pass stmt iterator.
6136
6137 2009-10-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
6138
6139 * config/spu/spu.c (TARGET_BUILTIN_DECL): Define.
6140 (spu_builtin_decl): New function.
6141
6142 2009-10-12 Uros Bizjak <ubizjak@gmail.com>
6143
6144 * config/i386/i386.md (SWIM): New mode iterator.
6145 (mov<mode>cc): Macroize expander from mov{qi,hi,si,di}cc patterns
6146 using SWIM mode iterator.
6147 (x86_mov<mode>cc_0_m1): Macroize insn from x86_mov{si,di}cc_0_m1
6148 patterns using SWI48 mode iterator.
6149 (*x86_mov<mode>cc_0_m1_se): Macroize insn from
6150 *x86_mov{si,di}cc_0_m1_se patterns using SWI48 mode iterator.
6151 (*x86_mov<mode>cc_0_m1_neg): New insn pattern.
6152 (*mov<mode>cc_noc): Macroize insn from *mov{hi,si,di}cc_noc
6153 patterns using SWI248 mode iterator.
6154 * config/i386/i386.c (ix86_expand_int_movcc): Update the call to
6155 gen_x86_movdicc_0_m1_rex64 for renamed function
6156
6157 2009-10-11 Jose Ruiz <ruiz@adacore.com>
6158 Eric Botcazou <ebotcazou@adacore.com>
6159
6160 PR target/33743
6161 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Define.
6162 * config/sparc/sol2-unwind.h: New file.
6163
6164 2009-10-11 Olivier Hainque <hainque@adacore.com>
6165 Eric Botcazou <ebotcazou@adacore.com>
6166
6167 PR target/33743
6168 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Define.
6169 * config/i386/sol2-unwind.h: New file.
6170
6171 2009-10-11 H.J. Lu <hongjiu.lu@intel.com>
6172
6173 PR target/41665
6174 * config/i386/i386.md (addsi_1_zext): Get the proper second
6175 operand for lea.
6176
6177 2009-10-11 Richard Sandiford <rdsandiford@googlemail.com>
6178
6179 * simplify-rtx.c (simplify_replace_rtx): Use rtx_equal_p for
6180 all OLD_RTXes, not just REGs. Use copy_rtx to create the
6181 replacement value.
6182
6183 2009-10-11 Richard Guenther <rguenther@suse.de>
6184
6185 * gimple.c (iterative_hash_type_name): Do not handle special
6186 anonymous names.
6187
6188 2009-10-11 Uros Bizjak <ubizjak@gmail.com>
6189
6190 * config/i386/i386.md (*setcc_di_1): New insn_and_split pattern.
6191 (*setcc_si_1_and): Ditto.
6192 (*setcc_si_1_movzbl): Ditto.
6193 (*setcc_<mode>_2): Ditto.
6194 (*setcc_qi): Rename from *setcc_1.
6195 (*setcc_qi_slp): Rename from *setcc_2.
6196
6197 (*zero_extendqihi2_movzbw_and splitter): Use ix86_expand_clear.
6198 (*zero_extendqisi2_movzbw_and splitter): Ditto.
6199
6200 * config/i386/i386.c (ix86_expand_clear): Remove reload_completed from
6201 "if" condition, there is already assert with reload_completed present.
6202
6203 2009-10-11 Gerald Pfeifer <gerald@pfeifer.com>
6204
6205 * plugin.c (try_init_one_plugin): Improve constness of variable err.
6206
6207 2009-10-10 Gerald Pfeifer <gerald@pfeifer.com>
6208
6209 * doc/install.texi (Final install): Refer to
6210 http://gcc.gnu.org/bugs/ for bug reporting.
6211
6212 2009-10-10 Peter Bergner <bergner@vnet.ibm.com>
6213
6214 * configure.ac: Add test for dci instruction.
6215 * configure: Regenerate.
6216 * config.in: Likewise.
6217 * config.gcc: Handle --with-cpu=476 and --with-cpu=476fp.
6218 * doc/invoke.texi: Add cpu_type 476 and 476fp.
6219 (-mmulhw): Add 476 to description.
6220 (-mdlmzb): Likewise.
6221 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=476.
6222 * config/rs6000/rs6000.c (processor_costs): Add ppc476_cost.
6223 (processor_target_table): Add 476 and 476fp entries.
6224 (rs6000_override_options): Use ppc476_cost for PROCESSOR_PPC476.
6225 (rs6000_issue_rate): Add CPU_PPC476.
6226 * config/rs6000/rs6000.h (ASM_CPU_476_SPEC): Define.
6227 (ASM_CPU_SPEC): Pass %(asm_cpu_476) for -mcpu=476 and -mcpu=476fp.
6228 (processor_type): Add PROCESSOR_PPC476.
6229 (EXTRA_SPECS): Add asm_cpu_476 string.
6230 * config/rs6000/rs6000.md (define_attr "type"): Add isel attribute.
6231 (define_attr "cpu"): Add ppc476.
6232 Include 476.md.
6233 Update comments for 476.
6234 (isel_signed, isel_unsigned): Change to use "isel" type attribute.
6235 * config/rs6000/vxworks.h (CPP_SPEC): Handle 464 and 476.
6236 Update copyright year.
6237 * config/rs6000/476.md: New file.
6238 * config/rs6000/40x.md: Add description for "isel" attribute.
6239 Update copyright year.
6240 * config/rs6000/440.md: Likewise.
6241 * config/rs6000/603.md: Likewise.
6242 * config/rs6000/6xx.md: Likewise.
6243 * config/rs6000/7450.md: Likewise.
6244 * config/rs6000/7xx.md: Likewise.
6245 * config/rs6000/8540.md: Likewise.
6246 * config/rs6000/cell.md: Likewise.
6247 * config/rs6000/e300c2c3.md: Likewise.
6248 * config/rs6000/e500mc.md: Likewise.
6249 * config/rs6000/mpc.md: Likewise.
6250 * config/rs6000/power4.md: Likewise.
6251 * config/rs6000/power5.md: Likewise.
6252 * config/rs6000/power6.md: Likewise.
6253 * config/rs6000/power7.md: Likewise.
6254 * config/rs6000/rios1.md: Likewise.
6255 * config/rs6000/rios2.md: Likewise.
6256 * config/rs6000/rs64.md: Likewise.
6257
6258 2009-10-10 Richard Guenther <rguenther@suse.de>
6259
6260 PR tree-optimization/41654
6261 * tree-ssa-ifcombine.c (ifcombine_ifandif): Properly canonicalize
6262 a cond expr before calling gimple_cond_set_condition_from_tree.
6263 (ifcombine_iforif): Likewise.
6264
6265 2009-10-09 Ian Lance Taylor <iant@google.com>
6266
6267 * configure.ac: Use AC_SEARCH_LIBS to find dlopen.
6268 * configure: Rebuild.
6269
6270 2009-10-09 Neil Vachharajani <nvachhar@google.com>
6271
6272 * doc/cpp.texi (Other Directives): Do not list #ident and #sccs as
6273 deprecated.
6274
6275 2009-10-09 Richard Guenther <rguenther@suse.de>
6276
6277 PR lto/41638
6278 * target-def.h (TARGET_BUILTIN_DECL): Define.
6279 (TARGET_INITIALIZER): Add TARGET_BUILTIN_DECL.
6280 * target.h (struct gcc_target): Add builtin_decl target hook.
6281 * doc/tm.texi (TARGET_BUILTIN_DECL): Document.
6282 * lto-streamer-in.c (lto_get_builtin_tree): Fix handling of
6283 target builtins.
6284 * lto-streamer-out.c (lto_output_tree_pointers): Use sorry,
6285 not gcc_unreachable.
6286 (lto_output_builtin_tree): Sorry if the target does not support
6287 streaming target builtins.
6288 * config/rs6000/rs6000.c (TARGET_BUILTIN_DECL): Define.
6289 (rs6000_builtin_decl): New function.
6290 * config/i386/i386.c (TARGET_BUILTIN_DECL): Define.
6291 (ix86_builtin_decl): New function.
6292
6293 2009-10-09 Jakub Jelinek <jakub@redhat.com>
6294
6295 PR preprocessor/41445
6296 * c-ppoutput.c (do_line_change): New function.
6297 (cb_line_change): Use it.
6298 (scan_translation_unit): Call do_line_change if
6299 avoid_paste or PREV_WHITE and token location is on a different line
6300 than print.src_line.
6301
6302 PR debug/40521
6303 * dwarf2out.c (dwarf2out_init): Test whether
6304 HAVE_GAS_CFI_SECTIONS_DIRECTIVE is non-zero instead of checking
6305 it is defined.
6306
6307 PR rtl-optimization/41646
6308 * calls.c (expand_call): For BLKmode types returned in registers
6309 avoid likely spilled hard regs in copy_blkmode_from_reg generated
6310 insns.
6311
6312 2009-10-09 Richard Guenther <rguenther@suse.de>
6313
6314 PR tree-optimization/41634
6315 * tree-ssa-dom.c (remove_local_expressions_from_table): Assert
6316 we remove the correct elements.
6317 (optimize_stmt): Make sure to update stmt operands before
6318 optimizing redundancies.
6319
6320 2009-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6321
6322 * config/s390/s390.md ("prefetch"): Remove stcmh for prefetching.
6323
6324 2009-10-09 Richard Guenther <rguenther@suse.de>
6325
6326 PR driver/41637
6327 * lto-wrapper.c (ltrans_output_file, flto_out, args_name): New
6328 globals.
6329 (lto_wrapper_exit): New function.
6330 (fatal): Use it.
6331 (fatal_perror): Likewise.
6332 (fork_execute): Use global args_name, do not free it.
6333 (run_gcc): Use global ltrans_output_file, flto_out, do not free them.
6334 * lto-streamer.h: Remove duplicate prototypes.
6335
6336 2009-10-09 Richard Guenther <rguenther@suse.de>
6337
6338 * cgraph.c (cgraph_create_edge): Check for NULL call_stmt
6339 before calling stmt_can_throw_external.
6340
6341 2009-10-09 Eric Botcazou <ebotcazou@adacore.com>
6342
6343 PR tree-optimization/40071
6344 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Build a ref-all
6345 pointer if the original data reference doesn't conflict with the
6346 created vector data reference. Fix long line.
6347
6348 2009-10-09 Uros Bizjak <ubizjak@gmail.com>
6349
6350 * config/i386/i386.md (any_div): New code iterator.
6351 (u): Handle div and udiv.
6352 (sgnprefix): Ditto.
6353 (<u>divqi3): Macroize insn from {,u}divqi3 using any_div
6354 code iterator.
6355 (lfloor<MODEF:mode><SWI48:mode>2): Macroize insn from
6356 lfloor<mode>{si,di}2 patterns using SWI48 mode iterator.
6357 (lceil<MODEF:mode><SWI48:mode>2): Macroize insn from
6358 lceil<mode>{si,di}2 patterns using SWI48 mode iterator.
6359
6360 2009-10-08 Joseph Myers <joseph@codesourcery.com>
6361
6362 * gcc.c (main): Remove trailing "." from diagnostics.
6363
6364 2009-10-08 Cary Coutant <ccoutant@google.com>
6365
6366 Add support for debugging with ICF (Identical Code Folding).
6367 * calls.c (debug.h): New #include.
6368 (emit_call_1): Call virtual_call_token debug hook.
6369 * common.opt (-fenable-icf-debug): New option.
6370 * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hooks (two
6371 locations in the source).
6372 (poc_label_num): New variable.
6373 (dcall_entry, vcall_entry): New typedefs.
6374 (dcall_table, vcall_table): New variables.
6375 (struct vcall_insn): New type.
6376 (vcall_insn_table): New variable.
6377 (DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION): New macros.
6378 (size_of_dcall_table): New function.
6379 (output_dcall_table): New function.
6380 (size_of_vcall_table): New function.
6381 (output_vcall_table): New function.
6382 (dwarf2out_direct_call): New function.
6383 (vcall_insn_table_hash): New function.
6384 (vcall_insn_table_eq): New function.
6385 (dwarf2out_virtual_call_token): New function.
6386 (dwarf2out_virtual_call): New function.
6387 (dwarf2out_init): Allocate new tables and sections.
6388 (prune_unused_types): Mark DIEs referenced from direct call table.
6389 (dwarf2out_finish): Output direct and virtual call tables.
6390 * final.c (final_scan_insn): Call direct_call and virtual_call
6391 debug hooks.
6392 * debug.h (struct gcc_debug_hooks): Add direct_call,
6393 virtual_call_token, virtual_call hooks.
6394 (debug_nothing_uid): New function.
6395 * debug.c (do_nothing_debug_hooks): Add dummy entries for new hooks.
6396 (debug_nothing_uid): New function.
6397 * dbxout.c (dbx_debug_hooks): Add dummy entries for new hooks.
6398 (xcoff_debug_hooks): Likewise.
6399 * sdbout.c (sdb_debug_hooks): Likewise.
6400 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
6401 * doc/invoke.texi (-fenable-icf-debug): New option.
6402
6403 2009-10-08 Alexandre Oliva <aoliva@redhat.com>
6404
6405 PR debug/41353
6406 * regmove.c (regmove_backward_pass): Replace src with dst in the
6407 debug insn, and check for dst before rather than after.
6408
6409 2009-10-08 Janis Johnson <janis187@us.ibm.com>
6410
6411 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove.
6412 (TARGET_DELEGITIMIZE_ADDRESS): Likewise.
6413
6414 2009-10-08 Jan Hubicka <jh@suse.cz>
6415
6416 PR middle-end/41626
6417 * cgraphbuild.c (record_reference): When parameter DATA is NULL,
6418 do not mark cgraph nodes as needed.
6419 (record_references_in_initializer): Add new only_vars parameter.
6420 * cgraph.h (record_references_in_initializer): New parameter.
6421 * varasm.c (assemble_variable): Update call.
6422 * varpool.c (varpool_analyze_pending_decls): Always look for
6423 referenced vars.
6424
6425 2009-10-08 Anatoly Sokolov <aesok@post.ru>
6426
6427 * config/avr/avr.c (last_insn_address) Remove variable.
6428 (expand_prologue): Don't initialise last_insn_address variable.
6429 (final_prescan_insn): Don't output insn size.
6430 * config/avr/avr.opt (msize): Remove switch.
6431 * doc/invoke.texi (AVR Options): Remove documentation of -msize
6432 switch.
6433
6434 2009-10-08 Adam Nemet <anemet@caviumnetworks.com>
6435
6436 * combine.c (label_tick_ebb_start): Fix comment.
6437 (combine_instructions): Set label_tick and label_tick_ebb_start before
6438 calling setup_incoming_promotions. Start them from 1. Increment
6439 label_tick instead of deriving it from the BB index. Rather than
6440 comparing ticks use the block from the previous iteration to decide
6441 whether to start a new EBB. Remove empty lines before function.
6442
6443 2009-10-08 Michael Matz <matz@suse.de>
6444
6445 PR middle-end/41573
6446 * builtins.c (fold_builtin_isascii): Use fold_build2.
6447 (fold_builtin_isdigit): Ditto.
6448 * except.c (duplicate_eh_regions_1): Tolerate NULL labels.
6449 * tree-cfg.c (struct rus_data, remove_useless_stmts_warn_notreached,
6450 remove_useless_stmts_cond, remove_useless_stmts_tf,
6451 remove_useless_stmts_tc, remove_useless_stmts_bind,
6452 remove_useless_stmts_goto, remove_useless_stmts_label,
6453 remove_useless_stmts_1, remove_useless_stmts,
6454 pass_remove_useless_stmts): Remove.
6455 * tree-pass.h (pass_remove_useless_stmts): Don't declare.
6456 * passes.c (init_optimization_passes): Don't add
6457 pass_remove_useless_stmts.
6458 * tree-eh.c (lower_eh_constructs_2): Handle empty cleanups.
6459 * tree.c (free_lang_data_in_decl): Don't clear DECL_INITIAL of
6460 static constants.
6461 * lto-symtab.c (lto_symtab_register_decl): Accepts DECL_INITIAL
6462 for static constants.
6463 * lto-streamer-out.c (output_gimple_stmt): Handle GIMPLE_NOP.
6464 * lto-streamer-in.c (input_gimple_stmt): Handle GIMPLE_NOP.
6465
6466 2009-10-08 Richard Guenther <rguenther@suse.de>
6467
6468 * gimple.c (free_gimple_type_tables): New function.
6469 * gimple.h (free_gimple_type_tables): Declare.
6470
6471 2009-10-07 Mark Heffernan <meheff@google.com>
6472
6473 * ipa-prop.c (ipa_print_node_params) Only print
6474 names of named arguments.
6475
6476 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
6477
6478 * gcc.c (LINK_COMMAND_SPEC): Pass libc with -pass-through if it is
6479 being statically linked.
6480
6481 2009-10-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6482
6483 * collect2.c (add_lto_object): Only define if OBJECT_FORMAT_NONE.
6484
6485 2009-10-08 Jan Hubicka <jh@suse.cz>
6486
6487 PR bootstrap/41620
6488 * ipa.c (cgraph_externally_visible_p,
6489 function_and_variable_visibility,
6490 whole_program_function_and_variable_visibility): Skip non-finalized
6491 nodes.
6492
6493 2009-10-08 Nick Clifton <nickc@redhat.com>
6494
6495 * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Do not allow
6496 CONST_DOUBLEs.
6497
6498 2009-10-08 Andreas Tobler <a.tobler@schweiz.org>
6499
6500 PR bootstrap/37739
6501 * config.host: Use config/x-cflags-O1 for powerpc FreeBSD.
6502
6503 2009-10-07 Joseph Myers <joseph@codesourcery.com>
6504
6505 PR c/41182
6506 * c-common.c (c_fully_fold_internal): Strip nops from the result
6507 of recursive calls to c_fully_fold_internal.
6508 (c_wrap_maybe_const): New.
6509 (c_save_expr): Use c_wrap_maybe_const.
6510 * c-common.h (c_wrap_maybe_const): Declare.
6511 * c-typeck.c (build_conditional_expr, c_finish_stmt_expr,
6512 build_binary_op): Use c_wrap_maybe_const.
6513
6514 2009-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6515
6516 * real.c: Fix comment to reflect actual exponent size.
6517
6518 2009-10-08 Ben Elliston <bje@au.ibm.com>
6519
6520 * config/rs6000/a2.md: Add FSF comment header.
6521
6522 2009-10-07 Uros Bizjak <ubizjak@gmail.com>
6523
6524 * config/i386/i386.md (any_extend): New code iterator.
6525 (u, s): New code attributes.
6526 (sgnprefix): Ditto.
6527 (DWIH): Rewrite as code iterator for SI and DI modes.
6528 (DWI): Rewrite as mode attribute.
6529 (dwi): New mode attribute.
6530 (di): Depend on SI mode and DI mode.
6531 (doubleint_general_operand): Remove mode attribute.
6532
6533 (*lea_1): Macroize insn from *lea_1_rex64 and *lea_1 patterns using
6534 DWIH mode iterator.
6535
6536 (*add<mode>3_doubleword): Use DWIH as the base mode iterator.
6537 (*sub<mode>3_doubleword): Ditto.
6538
6539 (mul<mode>3): Macroize expander from mul{hi,si,di}3 patterns
6540 using SWIM248 mode iterator.
6541 (*mul<mode>3_1): Macroize insn from mul{si,di}3_1 patterns
6542 using SWI48 mode iterator.
6543 (<u>mul<mode><dwi>3): Macroize expander from {,u}mul{sidi,diti}3
6544 patterns using DWIH mode iterator and any_extend code iterator.
6545 (<u>mulqihi3): Macroize expander from {,u}mulqihi3 patterns
6546 using any_extend code iterator.
6547 (*<u>mul<mode><dwi>3_1): Macroize insn from {,u}mul{sidi,diti}3_1
6548 patterns using DWIH mode iterator and any_extend code iterator.
6549 (*<u>mulqihi3_1): Macroize insn from {,u}mulqihi3_1 patterns
6550 using any_extend code iterator.
6551 (<s>mul<mode>3_highpart): Macroize expander from
6552 {s,u}mul{si,di}3_highpart patterns using DWIH mode iterator
6553 and any_extend code iterator.
6554 (*<s>muldi3_highpart_1): Macroize insn from
6555 *{s,u}muldi3_highpart_rex64 patterns using any_extend code iterator.
6556 (*<s>mulsi3_highpart_1): Macroize insn from *{s,u}mulsi3_highpart_1
6557 patterns using any_extend code iterator.
6558 (*<s>mulsi3_highpart_zext): Macroize insn from
6559 *{s,u}mulsi3_highpart_zext patterns using any_extend code iterator.
6560
6561 2009-10-07 Jakub Jelinek <jakub@redhat.com>
6562
6563 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Don't add
6564 DW_AT_const_value if VAR_DIE already has DW_AT_abstract_origin
6565 refering to a DIE with DW_AT_const_value.
6566
6567 2009-10-07 Vladimir Makarov <vmakarov@redhat.com>
6568
6569 PR middle-end/22072
6570 * ira-lives.c (check_and_make_def_conflict): Process all operands.
6571
6572 2009-10-06 Jan Hubicka <jh@suse.cz>
6573
6574 * cgraph.c (cgraph_node_can_be_local): Handle externally visible nodes
6575 correctly.
6576
6577 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
6578
6579 * config/i386/i386.md (*lea_1_rex64, *lea_1, *lea_1_zext,
6580 *lea_2_rex64): Move before *add<mode>_1 pattern.
6581
6582 2009-10-07 Jan Hubicka <jh@suse.cz>
6583
6584 * collect2.c (main): Add -fno-whole-program.
6585 * gcc.c (set_collect_gcc_options): Do not remove whole program here.
6586
6587 2009-10-07 Jan Hubicka <jh@suse.cz>
6588
6589 * lto-symtab.c (lto_cgraph_replace_node): Assert that inline clones
6590 has no address taken.
6591 * cgraph.c (cgraph_mark_needed_node): Assert that inline clones are
6592 never needed.
6593 (cgraph_clone_node): Clear externally_visible flag for clones.
6594 * cgraph.h (cgraph_only_called_directly_p,
6595 cgraph_can_remove_if_no_direct_calls_p): New predicates.
6596 * tree-pass.h (pass_ipa_whole_program_visibility): Declare.
6597 * ipa-cp.c (ipcp_cloning_candidate_p): Use new predicate.
6598 (ipcp_initialize_node_lattices, ipcp_estimate_growth,
6599 ipcp_insert_stage): Likwise.
6600 * cgraphunit.c (cgraph_decide_is_function_needed): Do not compute
6601 externally_visible flag.
6602 (verify_cgraph_node): Verify that inline clones look right.
6603 (process_function_and_variable_attributes): Do not set
6604 externally_visible flags.
6605 (ipa_passes): Avoid executing small_ipa_passes at LTO stage; they've
6606 been already run.
6607 * lto-cgraph.c (lto_output_node): Assert that inline clones are not
6608 boundaries.
6609 * ipa-inline.c (cgraph_clone_inlined_nodes): Use new predicates;
6610 clear externally_visible when turning into inline clones
6611 (cgraph_mark_inline_edge): Use new predicates.
6612 (cgraph_estimate_growth): Likewise.
6613 (cgraph_decide_inlining): Likewise.
6614 * ipa.c (cgraph_postorder): Likewise.
6615 (cgraph_remove_unreachable_nodes): Likewise; sanity check
6616 that inline clones are not needed.
6617 (cgraph_externally_visible_p): New predicate.
6618 (function_and_variable_visibility): Add whole_program parameter;
6619 always set externally_visible flag; handle COMDAT function
6620 privatization.
6621 (local_function_and_variable_visibility): New function.
6622 (gate_whole_program_function_and_variable_visibility): New function.
6623 (whole_program_function_and_variable_visibility): New function.
6624 (pass_ipa_whole_program_visibility): New function.
6625 * passes.c (init_optimization_passes): Add whole program visibility
6626 pass.
6627 (do_per_function_toporder, function_called_by_processed_nodes_p): Do
6628 not care about needed/reachable flags.
6629 * varpool.c: Include flags.h
6630 (decide_is_variable_needed): When doing LTO assume whole-program mode.
6631 (varpool_finalize_decl): When we are in LTO read-back, all variables
6632 are analyzed.
6633 (varpool_analyze_pending_decls): Skip analyzis of analyzed vars.
6634
6635 2009-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6636
6637 * config/s390/tpf.h (TARGET_DEFAULT): Remove MASK_HARD_FLOAT and
6638 add MASK_HARD_DFP.
6639
6640 2009-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6641
6642 * config.gcc: Don't include the makefile fragments intended for
6643 libgcc.
6644 * config/s390/fixdfdi.h: File removed.
6645 * config/s390/libgcc-glibc.ver: File removed.
6646 * config/s390/s390.h: Remove the fixdfdi.h hack.
6647 * config/s390/t-crtstuff: File moved to libgcc dir.
6648 * config/s390/t-linux: Likewise.
6649 * config/s390/t-tpf: libgcc specific parts removed.
6650 * config/s390/t-linux64: Likewise.
6651
6652 2009-10-06 Jerry Quinn <jlquinn@optonline.net>
6653
6654 * Makefile.in (lto-wrapper): Use COMPILER and ALL_COMPILERFLAGS.
6655 (lto-compress.o): Likewise.
6656
6657 2009-10-07 Danny Smith <dannysmith@users.sourceforge.net>
6658
6659 PR target/41512
6660 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't propagate
6661 dllexport to class members here.
6662 (i386_pe_determine_dllimport_p): Only check static class data for
6663 definition.
6664 (i386_pe_encode_section_info): Don't recheck DECL_DLLIMPORT_P.
6665 * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Only check
6666 functions for vague linkage.
6667 (i386_pe_type_dllexport_p): Fix formatting.
6668 (maybe_add_dllexport) New function.
6669 (i386_pe_adjust_class_at_definition): Use it to propagate dllexport
6670 to class members.
6671
6672 2009-10-07 Ben Elliston <bje@au.ibm.com>
6673
6674 * config/rs6000/a2.md: Remove duplicated lines.
6675
6676 2009-10-07 Ben Elliston <bje@au.ibm.com>
6677
6678 * config.gcc (powerpc*-*-*): Handle a2.
6679 * config/rs6000/rs6000.md (cpu): Add ppca2. Include "a2.md".
6680 * config/rs6000/a2.md: New file.
6681 * config/rs6000/rs6000.opt (mno-update): New.
6682 (mupdate): Return to using a mask, not a var.
6683 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for a2.
6684 (enum processor_type): Add PROCESSOR_PPCA2.
6685 * config/rs6000/rs6000.c (ppca2_cost): New costs.
6686 (rs6000_override_options): Add "a2" to processor_target_table.
6687 Update rs6000_always_hint logic. Correctly set rs6000_cost for a2.
6688 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=a2.
6689
6690 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
6691
6692 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
6693 Use explicit gen_truncxfsf2 and gen_truncxfdf2 references to avoid
6694 reference to nonexistent gen_truncxfxf2 function.
6695
6696 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
6697
6698 * config/i386/i386.md (SWI48, SDWIM, DWI): New mode iterators.
6699 (DWIH, g, di, doubleint_general_operand): New mode attributes.
6700 (general_operand): Handle TI mode.
6701 (add<mode>3): Macroize expander from add{qi,hi,si,di,ti}3 patterns
6702 using SDWIM mode iterator.
6703 (*add<mode>3_doubleword): New insn_and_split pattern. Macroize
6704 pattern from *add{di,ti}3_1 patterns and corresponding splitters
6705 using DWI mode iterator.
6706 (add<mode>3_carry): Macroize insn from add{qi,hi,si,di}3_carry
6707 patterns using SWI mode iterator.
6708 (*add<mode>3_cc): Macroize insn from add{si,di}3_cc patterns
6709 using SWI48 mode iterator.
6710 (*add<mode>_1): Ditto from add{si,di}_1 patterns.
6711 (*add<mode>_2): Ditto from add{si,di}_2 patterns.
6712 (*add<mode>_3): Ditto from add{si,di}_3 patterns.
6713 (*add<mode>_5): Ditto from add{si,di}_5 patterns.
6714 (sub<mode>3): Macroize expander from sub{qi,hi,si,di,ti}3 patterns
6715 using SDWIM mode iterator.
6716 (*sub<mode>3_doubleword): New insn_and_split pattern. Macroize
6717 pattern from *sub{di,ti}3_1 patterns and corresponding splitters
6718 using DWI mode iterator.
6719 (sub<mode>3_carry): Macroize insn from sub{qi,hi,si,di}3_carry
6720 patterns using SWI mode iterator.
6721 (*sub<mode>_1): Ditto from from sub{qi,hi,si,di}_1 patterns.
6722 (*sub<mode>_2): Ditto from sub{qi,hi,si,di}_2 patterns.
6723 (*sub<mode>_3): Ditto from sub{qi,hi,si,di}_3 patterns.
6724 (<plusminus_insn>xf3): Macroize expander from addxf3 and subxf3
6725 patterns using plusminus code iterator.
6726 (<plusminus_insn><mode>3): Macroize expander from add<mode>3 and
6727 sub<mode>3 patterns using plusminus code iterator.
6728 * config/i386/i386.c (override_options): Update the call to
6729 gen_subdi_carry_rex64 for renamed function.
6730 (ix86_expand_int_addcc): Update calls to gen_subdi3_carry_rex64
6731 and gen_adddi3_carry_rex64 for renamed functions. Use indirect
6732 calls to instruction expanders.
6733
6734 2009-10-06 Martin Jambor <mjambor@suse.cz>
6735
6736 PR bootstrap/41395
6737 * opts.c (decode_options): Run IPA-SRA at -O2.
6738
6739 2009-10-06 Richard Guenther <rguenther@suse.de>
6740
6741 * lto-symtab.c (lto_symtab_entry_hash): Hash strings, not pointers.
6742
6743 2009-10-06 Tobias Burnus <burnus@net-b.de>
6744
6745 PR lto/41591
6746 * doc/invoke.texi (-flto,-fwhole-program): Make clear that the
6747 -flto and -fwhole-program flags can be combined.
6748
6749 2009-10-06 Ryan Mansfield <rmansfield@qnx.com>
6750
6751 PR driver/41217
6752 * gcc.c (process_command): Check that -o argument was specified.
6753
6754 2009-10-06 Jerry Quinn <jlquinn@optonline.net>
6755
6756 * gimple.c (gimple_type_hash): Use CONST_CAST_TREE to fix compilation.
6757
6758 2009-10-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6759
6760 * c.opt (Wjump-misses-init): Fix typo to enable for ObjC.
6761 * doc/invoke.texi (Warning Options): Annotate allowed languages
6762 for -Wunsuffixed-float-constants.
6763
6764 2009-10-05 Jakub Jelinek <jakub@redhat.com>
6765
6766 * dwarf2out.c (modified_type_die): Don't add DW_AT_name to
6767 DW_TAG_{const,volatile}_type if its DW_AT_type already has the
6768 same name and isn't the main variant.
6769
6770 PR debug/41558
6771 * dwarf2out.c (loc_by_reference): Removed.
6772 (dw_loc_list_1): New function.
6773 (dw_loc_list): Remove toplev argument, add want_address argument.
6774 Don't look at decl_by_reference_p at all. Use dw_loc_list_1.
6775 (loc_list_from_tree) <case VAR_DECL>: Pass want_address rather than
6776 want_address == 2 to dw_loc_list. For successful dw_loc_list
6777 set have_address to 1 only if want_address is not 0.
6778
6779 2009-10-05 Richard Sandiford <rdsandiford@googlemail.com>
6780
6781 * config/mips/mips-protos.h (mips_trampoline_code_size): Declare.
6782 * config/mips/mips.h (TRAMPOLINE_SIZE): Redefine as the size of
6783 a code block followed by two pointers.
6784 (TRAMPOLINE_ALIGNMENT): Define to 64 for 32-bit targets too.
6785 * config/mips/mips.c (MIPS_LOAD_PTR): New macro.
6786 (MIPS_MOVE): Likewise.
6787 (MIPS_LUI): Likewise.
6788 (MIPS_JR): Likewise.
6789 (MIPS_BAL): Likewise.
6790 (MIPS_NOP): Likewise.
6791 (mips_asm_trampoline_template): Delete.
6792 (mips_trampoline_code_size): New function.
6793 (mips_trampoline_init): Add shorter sequences for all cases
6794 except Pmode == DImoe && !TARGET_USE_PIC_FN_ADDR_REG.
6795 Calculate the opcodes directly, rather than copying from a template.
6796 Only flush the code part of the trampoline.
6797 (TARGET_ASM_TRAMPOLINE_TEMPLATE): Delete.
6798
6799 2009-10-05 Richard Sandiford <rdsandiford@googlemail.com>
6800
6801 * config/mips/mips.h (DWARF_FRAME_RETURN_COLUMN): Replace
6802 GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM.
6803 (INCOMING_RETURN_ADDR_RTX): Likewise.
6804 (FUNCTION_PROFILER): Likewise. Replace GP_REG_FIRST + 1
6805 with AT_REGNUM.
6806 * config/mips/sdemtk.h (FUNCTION_PROFILER): Replace GP_REG_FIRST + 31
6807 with RETURN_ADDR_REGNUM.
6808 (MIPS_SAVE_REG_FOR_PROFILING_P): Likewise.
6809 * config/mips/mips.c (mips16_build_call_stub): Replace
6810 GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM, GP_REG_FIRST + 1
6811 with AT_REGNUM and 31 with RETURN_ADDR_REGNUM.
6812 (mips_print_operand_punctuation): Likewise.
6813 (mips_frame_set): Likewise.
6814 (mips16e_output_save_restore): Likewise.
6815 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
6816 (mips_save_reg_p): Likewise.
6817 (mips_return_addr): Likewise.
6818 (mips_set_return_address): Likewise.
6819 (mips_direct_save_slot_move_p): Likewise.
6820 (mips_output_function_prologue): Likewise.
6821 (mips_restore_reg): Likewise.
6822 (mips_expand_epilogue): Likewise.
6823 (mips_epilogue_uses): Likewise.
6824 * config/mips/mips.md (RETURN_ADD_REGNUM): Define.
6825 (*mov<mode>_ra): Use it instead of a hard-coded 31.
6826 (clear_hazard_<mode>): Likewise.
6827 (call_internal): Likewise.
6828 (call_internal_direct): Likewise.
6829 (call_direct_split): Likewise.
6830 (call_value_internal): Likewise.
6831 (call_value_split): Likewise.
6832 (call_value_internal_direct): Likewise.
6833 (call_value_direct_split): Likewise.
6834 (call_value_multiple_internal): Likewise.
6835 (call_value_multiple_split): Likewise.
6836
6837 2009-10-05 Eric Botcazou <ebotcazou@adacore.com>
6838 Jakub Jelinek <jakub@redhat.com>
6839
6840 PR rtl-optimization/41511
6841 * combine.c (record_value_for_reg): Pass explicit values as argument
6842 to get_last_value_validate.
6843 (get_last_value_validate): Document INSN parameter.
6844 For non-readonly MEMs, assume they might have been modified if INSN
6845 was in another basic block.
6846 (get_last_value): Minor reformatting.
6847
6848 2009-10-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
6849
6850 PR tree-opt/40992
6851 * final.c (asm_str_count): Split out from asm_insn_count.
6852 * rtl.h (asm_str_count): New prototype.
6853 * tree-inline (estimate_num_insns) <case GIMPLE_ASM>: Call
6854 asm_str_count.
6855
6856 2009-10-05 Sriraman Tallam <tmsriram@google.com>
6857
6858 * doc/plugins.texi: Change plugin_pass to register_pass_info.
6859
6860 2009-10-05 Basile Starynkevitch <basile@starynkevitch.net>
6861 Rafael Espindola <espindola@google.com>
6862
6863 * gengtype.c (write_types): Moved call to write_func_for_structure
6864 into seperate loops.
6865
6866 2009-10-05 Richard Guenther <rguenther@suse.de>
6867
6868 PR lto/41281
6869 * lto-cgraph.c (output_cgraph): Output toplevel asms.
6870 (input_cgraph_1): Input toplevel asms.
6871
6872 2009-10-05 Richard Guenther <rguenther@suse.de>
6873
6874 PR lto/40902
6875 * lto-symtab.c (lto_compatible_attributes_p): Remove.
6876 (external_aggregate_decl_p): Likewise.
6877 (lto_symtab_compatible): Re-structure. Remove dead code.
6878 For variables ignore toplevel qualifiers when comparing types.
6879 Issue warnings, not errors for mismatched user-alignment.
6880
6881 2009-10-05 Richard Guenther <rguenther@suse.de>
6882
6883 PR lto/41552
6884 PR lto/41487
6885 * lto-symtab.c (struct lto_symtab_base_def): Remove.
6886 (struct lto_symtab_identifier_def): Likewise.
6887 (struct lto_symtab_decl_def): Likewise.
6888 (struct lto_symtab_entry_def): New.
6889 (lto_symtab_identifier_t): Rename to ...
6890 (lto_symtab_entry_t): ... this.
6891 (lto_symtab_decls): Remove.
6892 (lto_symtab_base_hash): Rename to ...
6893 (lto_symtab_entry_hash): ... this.
6894 (lto_symtab_base_eq): Rename to ...
6895 (lto_symtab_entry_eq): ... this.
6896 (lto_symtab_base_marked_p): Rename to ...
6897 (lto_symtab_entry_marked_p): ... this.
6898 (lto_symtab_identifier_marked_p): Remove.
6899 (lto_symtab_decl_marked_p): Likewise.
6900 (lto_symtab_maybe_init_hash_tables): Rename to ...
6901 (lto_symtab_maybe_init_hash_table): ... this.
6902 (lto_symtab_set_resolution_and_file_data): Remove.
6903 (lto_symtab_register_decl): New function.
6904 (lto_symtab_get_identifier): Remove.
6905 (lto_symtab_get): New function.
6906 (lto_symtab_get_resolution): Adjust.
6907 (lto_symtab_get_identifier_decl): Remove.
6908 (lto_symtab_set_identifier_decl): Likewise.
6909 (lto_symtab_merge_decl): Rename to ...
6910 (lto_symtab_merge): ... this. Rewrite.
6911 (lto_symtab_merge_var): Remove.
6912 (lto_symtab_merge_fn): Likewise.
6913 (lto_symtab_prevailing_decl): Adjust.
6914 (lto_cgraph_replace_node): New function.
6915 (lto_symtab_merge_decls_2): Likewise.
6916 (lto_symtab_merge_decls_1): Likewise.
6917 (lto_symtab_fixup_var_decls): Likewise.
6918 (lto_symtab_resolve_symbols): Likewise.
6919 (lto_symtab_merge_decls): Likewise.
6920 (lto_symtab_prevailing_decl): Adjust.
6921 (lto_symtab_get_symtab_def): Remove.
6922 (lto_symtab_get_file_data): Likewise.
6923 (lto_symtab_clear_resolution): Adjust.
6924 (lto_symtab_clear_resolution): Likewise.
6925 * lto-cgraph.c (input_edge): Do not merge cgraph nodes here.
6926 (input_cgraph_1): Likewise.
6927 * lto-streamer-in.c (get_resolution): Do not provide fake
6928 symbol resolutions here.
6929 (deferred_global_decls): Remove.
6930 (lto_register_deferred_decls_in_symtab): Likewise.
6931 (lto_register_var_decl_in_symtab): Change signature, register
6932 variable via lto_symtab_register_decl.
6933 (lto_register_function_decl_in_symtab): Likewise.
6934 (lto_read_tree): Adjust.
6935 * lto-streamer.h (lto_register_deferred_decls_in_symtab): Remove.
6936 (lto_symtab_merge_var): Likewise.
6937 (lto_symtab_merge_fn): Likewise.
6938 (lto_symtab_register_decl): Declare.
6939 (lto_symtab_merge_decls): Likewise.
6940
6941 2009-10-05 Richard Guenther <rguenther@suse.de>
6942
6943 PR tree-optimization/23821
6944 * tree-vrp.c (vrp_finalize): Do not perform copy propagation.
6945 * tree-ssa-dom.c (cprop_operand): Do not propagate copies into
6946 simple IV increments.
6947
6948 2009-10-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6949
6950 * config/arm/arm.c (arm_override_options): Really initialize
6951 flag_dwarf2_cfi_asm to 0.
6952
6953 2009-10-05 Doug Kwan <dougkwan@google.com>
6954
6955 PR rtl-optimization/41574
6956 * combine.c (distribute_and_simplify_rtx): Quit if RTX mode is
6957 floating point and we are not doing unsafe math optimizations.
6958
6959 2009-10-03 Simon Baldwin <simonb@google.com>
6960 Cary Coutant <ccoutant@google.com>
6961 Rafael Espindola <espindola@google.com>
6962 Richard Guenther <rguenther@suse.de>
6963 Jan Hubicka <jh@suse.cz>
6964 Doug Kwan <dougkwan@google.com>
6965 H.J. Lu <hongjiu.lu@intel.com>
6966 Bill Maddox <maddox@google.com>
6967 Ryan Mansfield <rmansfield@qnx.com>
6968 Diego Novillo <dnovillo@google.com>
6969 Ollie Wild <aaw@google.com>
6970 Kenneth Zadeck <zadeck@naturalbridge.com>
6971
6972 * lto-cgraph.c: New file.
6973 * lto-compress.c: New file.
6974 * lto-compress.h: New file.
6975 * lto-opts.c: New file.
6976 * lto-section-in.c: New file.
6977 * lto-section-out.c: New file.
6978 * lto-streamer-in.c: New file.
6979 * lto-streamer-out.c: New file.
6980 * lto-streamer.c: New file.
6981 * lto-streamer.h: New file.
6982 * lto-symtab.c: New file.
6983 * lto-wpa-fixup.c: New file.
6984 * lto-wrapper.c: New file.
6985
6986 2009-10-03 Simon Baldwin <baldwin@google.com>
6987 Ben Elliston <bje@au.ibm.com>
6988 Rafael Espindola <espindola@google.com>
6989 Nathan Froyd <froydnj@codesourcery.com>
6990 Jan Hubicka <jh@suse.cz>
6991 Doug Kwan <dougkwan@google.com>
6992 Diego Novillo <dnovillo@google.com>
6993 Kenneth Zadeck <zadeck@naturalbridge.com>
6994
6995 * Makefile.in (enable_lto): New.
6996 (site.exp): If @enable_lto@ is set to 'yes' define ENABLE_LTO.
6997 (LINKER_PLUGIN_API_H): Define.
6998 (LTO_SYMTAB_H): Define.
6999 (LTO_STREAMER_H): Define.
7000 (TREE_VECTORIZER_H): Define.
7001 (INCLUDES): Add LIBELFINC.
7002 (OBJS-common): Add lto-cgraph.o, lto-streamer-in.o,
7003 lto-streamer-out.o, lto-section-in.o, lto-section-out.o, lto-symtab.o,
7004 lto-opts.o, lto-streamer.o, lto-wpa-fixup.o, lto-compress.o.
7005 (MOSTLYCLEANFILES): Add lto-wrapper$(exeext)
7006 (native): Add lto-wrapper$(exeext)
7007 (lto-compress.o, lto-cgraph.o, lto-streamer-in.o,
7008 lto-streamer-out.o, lto-section-in.o, lto-section-out.o,
7009 lto-symtab.o, lto-opts.o, lto-streamer.o, lto-wpa-fixup.o): New rules.
7010 (gimple.o): Add dependency on LTO_HEADER_H and LTO_SECTION_OUT_H.
7011 (varasm.o): Add dependency on tree-iterator.h.
7012 (cgraph.o): Add dependency on cif-code.def.
7013 (ipa-reference.o): Add dependency on LTO_STREAMER_H.
7014 (ipa-pure-const.o): Likewise.
7015 (GTFILES): Add lto-symtab.c.
7016 (install-lto-wrapper): New.
7017 * configure.ac: If 'lto' is in enable_languages, define ENABLE_LTO
7018 and enable_lto. If LIBELFLIBS is set, define HAVE_libelf.
7019 * config.in: Regenerate.
7020
7021 2009-10-03 Rafael Espindola <espindola@google.com>
7022 Diego Novillo <dnovillo@google.com>
7023
7024 * cgraphunit.c (ipa_passes): Prevent lto1 from calling
7025 ipa_write_summaries.
7026 Call execute_ipa_summary_passes for all_regular_ipa_passes and
7027 all_lto_gen_passes.
7028 (cgraph_optimize): Make extern.
7029
7030 2009-10-03 Nathan Froyd <froydnj@codesourcery.com>
7031 Kenneth Zadeck <zadeck@naturalbridge.com>
7032
7033 * toplev.c (in_lto_p): Declare.
7034 * collect2.c (scan_prog_file): Read all the output when reading
7035 information for LTO.
7036 (enum lto_mode_d): Declare.
7037
7038 2009-10-03 Richard Guenther <rguenther@suse.de>
7039 Diego Novillo <dnovillo@google.com>
7040
7041 * gimple.c: Include target.h and alias.h.
7042 (gimple_types): Declare.
7043 (type_hash_cache): Declare.
7044 (gimple_alloc_stat): Make extern.
7045 (gimple_build_eh_must_not_throw): Call
7046 gimple_eh_must_not_throw_set_fndecl.
7047 (struct type_pair_d): Declare.
7048 (type_pair_t): Declare.
7049 (type_pair_hash): New.
7050 (type_pair_eq): New.
7051 (lookup_type_pair): New.
7052 (gimple_force_type_merge): New.
7053 (compare_type_names_p): New.
7054 (compare_field_offset): New.
7055 (gimple_types_compatible_p): New.
7056 (struct sccs): Declare.
7057 (next_dfs_num): Declare.
7058 (iterative_hash_gimple_type): New.
7059 (visit): New.
7060 (iterative_hash_type_name): New.
7061 (iterative_hash_gimple_type): New.
7062 (gimple_type_hash): New.
7063 (gimple_type_eq): New.
7064 (gimple_register_type): New.
7065 (print_gimple_types_stats): New.
7066 (gimple_signed_or_unsigned_type): New.
7067 (gimple_unsigned_type): New.
7068 (gimple_signed_type): New.
7069 (gimple_get_alias_set): New.
7070 (gimple_decl_printable_name): Do not use DMGL_TYPES.
7071 * gimple.h (gimple_alloc, gimple_alloc_stat): Declare.
7072 (gimple_force_type_merge): Declare.
7073 (gimple_types_compatible_p): Declare.
7074 (gimple_register_type): Declare.
7075 (print_gimple_types_stats): Declare.
7076 (gimple_unsigned_type): Declare.
7077 (gimple_signed_type): Declare.
7078 (gimple_get_alias_set): Declare.
7079 (gimple_eh_must_not_throw_set_fndecl): New.
7080
7081 2009-10-03 Jan Hubicka <jh@suse.cz>
7082 Kenneth Zadeck <zadeck@naturalbridge.com>
7083
7084 * ipa-pure-const.c: Include lto-streamer.h.
7085 (register_hooks): Factor out of ...
7086 (generate_summary): ... here.
7087 (pure_const_write_summary): New.
7088 (pure_const_read_summary): New.
7089 (pass_ipa_pure_const): Add pure_const_write_summary and
7090 pure_const_read_summary.
7091 * ipa-reference.c: Include lto-streamer.h.
7092 (add_new_function): New.
7093 (remove_node_data): New.
7094 (duplicate_node_data): New.
7095 (ipa_init): Guard against multiple calls.
7096 Move hook setup from analyze_function.
7097 (write_node_summary_p): New.
7098 (ipa_reference_write_summary): New.
7099 (ipa_reference_read_summary): New.
7100 (pass_ipa_reference): Add ipa_reference_write_summary and
7101 ipa_reference_read_summary.
7102 * cgraph.h (cgraph_local_info): Add field lto_file_data.
7103 (struct cgraph_edge): Add fields lto_stmt_uid and
7104 call_stmt_cannot_inline_p.
7105 (cgraph_optimize): Declare.
7106 (cgraph_decide_is_function_needed): Declare.
7107 (reset_inline_failed): Declare.
7108 (enum LTO_cgraph_tags): Declare.
7109 (LTO_cgraph_tag_names): Declare.
7110 (LCC_NOT_FOUND): Define.
7111
7112 2009-10-03 Doug Kwan <dougkwan@google.com>
7113 Rafael Espindola <espindola@google.com>
7114 Jan Hubicka <jh@suse.cz>
7115 Diego Novillo <dnovillo@google.com>
7116 Kenneth Zadeck <zadeck@naturalbridge.com>
7117
7118 * passes.c (all_regular_ipa_passes): New.
7119 (all_ipa_passes): Rename to all_small_ipa_passes.
7120 (init_optimization_passes): Init all_regular_ipa_passes.
7121 * tree-pass.h (all_regular_ipa_passes): New.
7122 (all_ipa_passes): Rename to all_small_ipa_passes.
7123 * passes.c (all_lto_gen_passes): New.
7124 (init_optimization_passes): Initialize all_lto_gen_passes.
7125 (execute_ipa_summary_passes): Make non-static.
7126 (ipa_write_summaries_1): New.
7127 (ipa_write_summaries_2): New.
7128 (ipa_write_summaries): New.
7129 (ipa_write_summaries_of_cgraph_node_set): New.
7130 (ipa_read_summaries_1): New.
7131 (ipa_read_summaries): New.
7132 (execute_ipa_pass_list): Call cgraph_process_new_functions.
7133 (execute_regular_ipa_pass_list): Remove.
7134 (init_optimization_passes): Schedule
7135 pass_rebuild_cgraph_edges and pass_early_inline outside
7136 of pass_all_early_optimizations. Document reason.
7137 (pass_ipa_lto_gimple_out, pass_ipa_lto_wpa_fixup,
7138 pass_ipa_lto_finish_out): New pass.
7139 (pass_ipa_summary_passes): Start and stop timers if the pass has them.
7140 (execute_all_ipa_transforms): New.
7141 (execute_one_pass): Don't call execute_one_ipa_transform_pass.
7142 (dump_properties, debug_properties): New.
7143 * tree-optimize.c (gate_all_early_local_passes): Return
7144 false if we are in lto1.
7145 (tree_rest_of_compilation): Call execute_all_ipa_transforms.
7146 * tree-pass.h (execute_all_ipa_transforms): Declare.
7147 (pass_ipa_function_and_variable_visibility): Declare.
7148 (pass_ipa_early_inline): Declare.
7149 (pass_ipa_lto_gimple_out): Declare.
7150 (pass_ipa_lto_wpa_fixup): Declare.
7151 (pass_ipa_lto_finish_out): Declare.
7152 (all_small_ipa_passes, all_regular_ipa_passes,
7153 all_lto_gen_passes): Declare.
7154 (execute_ipa_summary_passes): Declare.
7155 (execute_all_ipa_transforms): Declare.
7156 (ipa_write_summaries): Declare
7157 (ipa_write_summaries_of_cgraph_node_set): Declare.
7158 (ipa_read_summaries): Declare.
7159
7160 2009-10-03 Doug Kwan <dougkwan@google.com>
7161 Ollie Wild <aaw@google.com>
7162
7163 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do nothing in WPA.
7164
7165 * collect2.c (LTO_MODE_NONE, LTO_MODE_LTO, LTO_MODE_WPA): New enums.
7166 (lto_mode): New variable.
7167 (maybe_run_lto_and_relink): Handle the -fwpa option.
7168 (main): Handle the -fwpa option.
7169 (maybe_unlink_list): New function.
7170 * gcc.c (link_lto_options): Replace -flto with -fwpa.
7171 * common.opt (flto): New flag.
7172 * toplev.c (flag_generate_lto): Declare.
7173
7174 2009-10-03 Simon Baldwin <simonb@google.com>
7175
7176 * common.opt (flto-compression-level): New flag.
7177
7178 * opts.c: Include lto-opts.h.
7179 (handle_option): Call lto_register_user_option for each
7180 valid option handled.
7181 (decode_options): Clear registered options before the options
7182 handling loop.
7183
7184 2009-10-03 Cary Coutant <ccoutant@google.com>
7185
7186 * collect2.c (is_elf): New function.
7187 (scan_prog_file): Require LTO object to be in ELF format.
7188
7189 2009-10-03 Rafael Espindola <espindola@google.com>
7190
7191 * gcc.c (LINK_COMMAND_SPEC): Use the -pass-through option to pass
7192 libgcc to the linker.
7193
7194 * ipa-cp.c (cgraph_gate_cp): Return false if LTRANS is running.
7195
7196 * collect2.c (maybe_run_lto_and_relink): Execute lto-wrapper.
7197 (collect_execute): Add flags argument. Pass flags to pex_run. Update
7198 all callers.
7199 * collect2.h (collect_execute): Add flags argument.
7200 * tlink.c (tlink_execute): Update call to collect_execute.
7201 * gcc.c (main): Set the COLLECT_LTO_WRAPPER environment variable.
7202 (use_linker_plugin): New.
7203 (use_linker_plugin_spec_function): New.
7204 (LINK_COMMAND_SPEC): Pass plugin options to the linker.
7205 (linker_plugin_file_spec): New.
7206 (lto_wrapper_spec): New.
7207 (lto_gcc_spec): New.
7208 (static_specs): Add linker_plugin_file, lto_wrapper and lto_gcc.
7209 (static_spec_functions): Add use-linker-plugin.
7210 (process_command): Handle -use-linker-plugin.
7211 (main): Use lto_wrapper_spec instead of lto_wrapper. Set
7212 linker_plugin_file_spec and lto_gcc_spec.
7213 (use_linker_plugin_spec_function): New.
7214
7215 2009-10-03 Richard Guenther <rguenther@suse.de>
7216
7217 PR lto/41547
7218 PR lto/41548
7219 * tree.h (is_lang_specific): Include LANG_TYPE.
7220 * tree.c (find_decls_types_r): Manually add interesting parts
7221 of TYPE_FIELDS. Walk BINFO_VIRTUALS. Do not walk TYPE_METHODS.
7222
7223 * gimple.c (type_pair_hash): Make symmetric.
7224 (type_pair_eq): Likewise.
7225 (lookup_type_pair): Increase initial hashtable size.
7226 (gimple_force_type_merge): Rely on type-pair symmetry.
7227 (visit): Remove excessive checking code.
7228 (iterative_hash_type_name): Do not hash TYPE_NAME of anonymous unions.
7229 (gimple_register_type): Remove getenv calls, shrink initial
7230 hashtable size.
7231
7232 PR middle-end/41502
7233 * cgraphunit.c (ipa_passes): Do not remove bodies of extern
7234 inline functions if not generating lto output.
7235
7236 PR lto/41379
7237 * toplev.c (finalize): In WPA mode remove the asm file.
7238
7239 2009-10-03 Doug Kwan <dougkwan@google.com>
7240
7241 * ipa-inline.c (cgraph_mark_inline): Check
7242 edge->call_stmt_cannot_inline_p instead of calling
7243 gimple_call_cannot_inline_p.
7244 (cgraph_decide_inlining): Do nothing in WPA and LTRANS.
7245 (cgraph_gate_ipa_early_inlining): Return false if in_lto_p is set.
7246 (inline_generate_summary): Do nothing in LTRANS.
7247 * cgraph.c (initialize_inline_failed): Make sure e->call_stmt
7248 exists before calling gimple_call_cannot_inline_p.
7249 (cgraph_create_edge): Set edge->call_stmt_cannot_inline_p.
7250 (cgraph_clone_edge): Add argument STMT_UID. Modify all callers.
7251 Update new_edge->lto_stmt_uid.
7252 * cgraphbuild.c (reset_inline_failed): New.
7253
7254 * common.opt (fwpa): New flag.
7255 (fltrans): New option.
7256 * gcc.c (gcc_lto_option_t): New type.
7257 (current_lto_option): New variable.
7258 (lto_single_spec_function): Remove and is replaced by ..
7259 (lto_option_spec_function): New function.
7260 (LINK_COMMAND_SPEC): Use link_lto_option spec instead of just
7261 passing the -flto flag.
7262 (cc1_options): Separate non-LTO related parts into ..
7263 (cc1_non_lto_options): Non-LTO related options shared by all FEs.
7264 (lto1_options): New spec for lto FE.
7265 (link_lto_options): New spec for handling LTO flags in linker.
7266 (invoke_lto_single): Re-format to fit in 80 column. Replace
7267 lto-single with lto-option.
7268 (static_specs): Add cc1_non_lto_options, lto1_options and
7269 link_lto_options.
7270 (static_spec_function): Replace lto-single with lto-option.
7271 (process_command): Handle -flto, -fwpa and -fltran by setting
7272 current_lto_option and not passing it to subprocess unconditionally.
7273
7274 2009-10-03 Bill Maddox <maddox@google.com>
7275
7276 Add `gcc' driver support for link-time code generation (LTO).
7277
7278 * collect2.c (enum pass): Add new literal PASS_LTOINFO.
7279 (lto_flag, lto_objects, lto_o_file): New variables.
7280 (struct lto_object, struct lto_object_list): New structures.
7281 (collect_exit, handler): Remove LTO temporary output file on exit.
7282 (add_lto_object): New function.
7283 (maybe_run_lto_and_relink): New function. Perform link time code
7284 generation and relinking for object files containing LTO information.
7285 (main): Invoke maybe_run_lto_and_relink().
7286 (dump_argv): New function. For debugging, currently disabled.
7287 (scan_prog_file): Add LTO information pass.
7288 * gcc.c (LINK_COMMAND_SPEC): Pass `-flto' switch to linker, i.e.,
7289 collect2.
7290 * toplev.c (compile_file): Emit assembler directive to create
7291 the `gnu_lto_v1' marker symbol when compiling with `-flto'.
7292
7293 2009-10-03 Diego Novillo <dnovillo@google.com>
7294
7295 * c.opt: Add LTO to warn_abi and warn_psabi.
7296
7297 * tree.c (fld_worklist_push): Rename from PUSH. Convert to static
7298 inline function. Ignore language-specific nodes. Update all users.
7299 (find_decls_types_r): Do not traverse the subtrees of
7300 language-specific nodes. Do not traverse DECL_INITIAL for TYPE_DECLs.
7301 * tree.h (is_lang_specific): New.
7302 * langhooks.h (struct lang_hooks_for_decls): Remove
7303 may_need_assembler_name_p. Update all users.
7304
7305 * c-common.c (set_builtin_user_assembler_name): Move ...
7306 * builtins.c (set_builtin_user_assembler_name): ... here.
7307 (is_builtin_name): Add comment
7308 (is_builtin_fn): New.
7309 * except.c (output_ttype): Only call
7310 lookup_type_for_runtime if TYPE is not a runtime type.
7311
7312 * passes.c (register_pass): Call position_pass on
7313 all_small_ipa_passes, all_regular_ipa_passes and all_lto_gen_passes.
7314 * timevar.def (TV_IPA_LTO_GIMPLE_IO): Define.
7315 (TV_IPA_LTO_DECL_IO): Define.
7316 (TV_IPA_LTO_CGRAPH_IO): Define.
7317 (TV_LTO): Define.
7318 (TV_WHOPR_WPA): Define.
7319 (TV_WHOPR_WPA_IO): Define.
7320 (TV_WHOPR_LTRANS): Define.
7321 (TV_WHOPR_WPA_FIXUP): Define.
7322 (TV_WHOPR_WPA_LTRANS_EXEC): Define.
7323 * tree-cfg.c (tree_node_can_be_shared): Make extern.
7324 * tree-flow.h (tree_node_can_be_shared): Declare.
7325 * tree-inline.c (tree_can_inline_p): Check that E has a
7326 statement associated with it.
7327 * tree.c (free_lang_data_in_binf): Factor out of ...
7328 (free_lang_data_in_type): ... here.
7329 Call RECORD_OR_UNION_TYPE_P.
7330 (need_assembler_name_p): Ignore DECL if it does not have TREE_PUBLIC
7331 set. Call lang_hooks.decls.may_need_assembler_name_p if set.
7332 (free_lang_data_in_decl): Do not clear DECL_CONTEXT for CONST_DECLs.
7333 (free_lang_data): Set debug_info_level to DINFO_LEVEL_NONE. Set
7334 write_symbols to NO_DEBUG. Set debug_hooks to do_nothing_debug_hooks.
7335 (gate_free_lang_data): Return true if flag_generate_lto is set.
7336 (walk_tree_1): Call RECORD_OR_UNION_TYPE_P.
7337 * c-common.h (set_builtin_user_assembler_name): Move ...
7338 * tree.h (set_builtin_user_assembler_name): ... here.
7339
7340 * common.opt (flto-report): New flag.
7341 * opts.c (complain_wrong_lang): Do not complain if running lto1.
7342 * collect2.c (scan_prog_file): Send the error output of
7343 'nm' to HOST_BIT_BUCKET.
7344
7345 2009-10-03 Ollie Wild <aaw@google.com>
7346
7347 * langhooks-def.h (lhd_begin_section): New function declaration.
7348 (lhd_write_section): New function declaration.
7349 (lhd_end_section): New function declaration.
7350 (LANG_HOOKS_BEGIN_SECTION): New macro.
7351 (LANG_HOOKS_WRITE_SECTION_DATA): New macro.
7352 (LANG_HOOKS_END_SECTION): New macro.
7353 (LANG_HOOKS_LTO): New macro.
7354 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_LTO.
7355 * langhooks.c (output.h): Add include.
7356 (saved_section): New static variable.
7357 (lhd_begin_section): New function.
7358 (lhd_write_section_data): New function.
7359 (lhd_end_section): New function.
7360 * langhooks.h (struct lang_hooks_for_lto): New structure.
7361 (struct lang_hooks): Add member lto.
7362 * Makefile.in (langhooks.o): Add dependency on output.h.
7363
7364 * c-opts.c (c_common_post_options): Handle -flto and -fwhopr.
7365
7366 2009-10-03 Richard Guenther <rguenther@suse.de>
7367
7368 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
7369 Handle LTO.
7370
7371 2009-10-03 Simon Baldwin <simonb@google.com>
7372 Richard Guenther <rguenther@suse.de>
7373 Janis Johnson <janis187@us.ibm.com>
7374 Doug Kwan <dougkwan@google.com>
7375 Diego Novillo <dnovillo@google.com>
7376 Ramana Radhakrishnan <ramana.r@gmail.com>
7377 Ollie Wild <aaw@google.com>
7378
7379 * doc/install.texi: Add documentation for libelf and --enable-lto.
7380 * doc/invoke.texi: Document -fwpa, -flto, -fwhopr, -fltrans,
7381 -flto-report, -flto-compression-level and -use-linker-plugin.
7382 * doc/sourcebuild.texi: Document use of zlib. Document lto-plugin.
7383 Add section for LTO Testing.
7384
7385 2009-10-02 Cary Coutant <ccoutant@google.com>
7386
7387 Add support for comdat type sections for DWARF v4.
7388 Merge from dwarf4 branch.
7389
7390 * dwarf2out.c (DWARF_TYPE_SIGNATURE_SIZE): New constant.
7391 (dw_die_ref): Define vector type.
7392 (enum dw_val_class): Add dw_val_class_data8.
7393 (struct dw_val_struct): Add v.val_data8.
7394 (comdat_type_node_ref): New type.
7395 (struct die_struct): Move die_symbol into a union; add new field
7396 die_type_node. Change all uses.
7397 (comdat_type_node): New type.
7398 (skeleton_chain_node): New type.
7399 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): New constant.
7400 (comdat_type_list): New variable.
7401 (dwarf_tag_name): Add DW_TAG_type_unit.
7402 (dwarf_attr_name): Add DW_AT_signature.
7403 (add_AT_data8): New function.
7404 (replace_child): New function.
7405 (move_all_children): New function.
7406 (print_signature): New function.
7407 (print_die): Print signature information; add dw_val_class_data8.
7408 (attr_checksum): Support dw_val_class_data8.
7409 (CHECKSUM_STRING): Redefine for DWARF-4 to include trailing NULL byte.
7410 (CHECKSUM_SLEB128, CHECKSUM_ULEB128): New macros.
7411 (checksum_sleb128, checksum_uleb128): New functions.
7412 (checksum_die_context): New function.
7413 (loc_checksum_ordered): New function.
7414 (attr_checksum_ordered): New function.
7415 (struct checksum_attributes): New structure.
7416 (collect_checksum_attributes): New function.
7417 (die_checksum_ordered): New function.
7418 (generate_type_signature): New function.
7419 (same_dw_val_p): Add dw_val_class_data8.
7420 (is_symbol_die): Use new is_declaration_die function.
7421 (is_declaration_die): New function.
7422 (should_move_die_to_comdat): New function.
7423 (clone_die): New function.
7424 (clone_tree): New function.
7425 (clone_as_declaration): New function.
7426 (copy_declaration_context): New function.
7427 (generate_skeleton_ancestor_tree): New function.
7428 (generate_skeleton_bottom_up): New function.
7429 (generate_skeleton): New function.
7430 (remove_child_or_replace_with_skeleton): New function.
7431 (break_out_comdat_types): New function.
7432 (struct decl_table_entry): New type.
7433 (htab_decl_hash): New function.
7434 (htab_decl_eq): New function.
7435 (htab_decl_del): New function.
7436 (copy_ancestor_tree): New function.
7437 (copy_decls_walk): New function.
7438 (copy_decls_for_unworthy_types): New function.
7439 (build_abbrev_table): Don't assert on missing die_symbol when doing
7440 comdat type sections.
7441 (size_of_die): Use DW_FORM_sig8 for external references. Add
7442 dw_val_class_data8.
7443 (unmark_dies): Don't assert for unmarked dies when doing comdat
7444 type sections.
7445 (value_format): Support DW_FORM_sig8 and dw_val_class_data8.
7446 (output_signature): New function.
7447 (output_die): Likewise.
7448 (output_compilation_unit_header): Mark output as DWARF version 3
7449 even if generating DWARF 4.
7450 (output_comdat_type_unit): New function.
7451 (output_line_info): Mark output as DWARF version 3 even if generating
7452 DWARF 4.
7453 (dwarf2out_start_source_file): Don't do eliminate_dwarf2_dups with
7454 DWARF-4.
7455 (dwarf2out_end_source_file): Likewise.
7456 (prune_unused_types_walk_attribs): Don't follow references into
7457 comdat type sections.
7458 (prune_unused_types_mark): When generating type units, do not mark
7459 children of non-defining declarations of types; do mark children of
7460 type entries.
7461 (prune_unused_types): Process comdat type sections.
7462 (htab_ct_hash): New function.
7463 (htab_ct_eq): New function.
7464 (dwarf2out_finish): Move types to comdat sections when using DWARF-4.
7465 Add a pointer to the line table from type unit entries so
7466 DW_AT_decl_file has meaning.
7467 * varasm.c (default_elf_asm_named_section): Use identifier name as
7468 comdat key instead of lang hook.
7469
7470 2009-10-02 Neil Vachharajani <nvachhar@google.com>
7471
7472 * gcov-io.c (gcov_open): Open files read-only when MODE < 0.
7473
7474 2009-10-02 Uros Bizjak <ubizjak@gmail.com>
7475
7476 * config/i386/i386.md (SWIM248): New mode iterator.
7477 (divmod<mode>4) Macroize expander from divmoddi4, divmodsi4 and
7478 divmodhi4 patterns using SWIM248 macro.
7479 (*divmod<mode>4): Macroize insn_and_split pattern from
7480 *divmoddi4_cltd_rex64, *divmodsi4_cltd and divmodhi4 insn patterns
7481 and their corresponding splitters usign SWIM248 macro. Split SImode
7482 insn to generate cltd and DImode insn to generate cqto instead of
7483 move+shift when optimizing for size or TARGET_USE_CLTD is in effect.
7484 (*divmoddi4_nocltd_rex64, *divmodsi4_nocltd): Remove insn patterns.
7485 (*divmod<mode>4_noext): Macroize insn from *divmoddi_noext_rex64 and
7486 *divmodsi_noext patterns using SWIM248 macro.
7487 (udivmod<mode>4): Macroize expander from udivmoddi4, udivmodsi4 and
7488 udivmodhi4 patterns using SWIM248 macro.
7489 (*udivmod<mode>4): Macroize insn_and_split pattern from
7490 *udivmoddi4, udivmodsi4 and udivmodhi4 patterns and their
7491 corresponding splitters using SWIM248 macro.
7492 (*udivmod<mode>4_noext): Macroize insn from *udivmoddi4_noext,
7493 *udivmodsi4_noext and *udivmodhi_noext patterns using SWIM248 macro.
7494
7495 2009-10-02 Eric Botcazou <ebotcazou@adacore.com>
7496
7497 * stor-layout.c (layout_type) <ARRAY_TYPE>: Make sure that an array
7498 of zero-sized element is zero-sized regardless of its extent.
7499
7500 2009-10-02 Jakub Jelinek <jakub@redhat.com>
7501
7502 PR debug/40521
7503 * configure.ac (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): New test.
7504 * configure: Regenerated.
7505 * config.in: Regenerated.
7506 * dwarf2out.c (dwarf2out_do_cfi_asm): Return false if
7507 !HAVE_GAS_CFI_SECTIONS_DIRECTIVE and not emitting .eh_frame.
7508 (dwarf2out_init): If HAVE_GAS_CFI_SECTIONS_DIRECTIVE and
7509 not emitting .eh_frame, emit .cfi_sections .debug_frame
7510 directive.
7511
7512 PR debug/41404
7513 PR debug/41353
7514 * cfgexpand.c (expand_debug_expr) <case STRING_CST>: Don't create
7515 CONST_STRING if STRING_CST contains embedded '\0's or doesn't end
7516 with '\0'.
7517 (expand_debug_expr) <case VAR_DECL>: For TREE_STATIC !DECL_EXTERNAL
7518 vars use DECL_RTL with resetting it back to NULL afterwards.
7519 * dwarf2out.c (same_dw_val_p): For dw_val_class_addr compare with
7520 rtx_equal_p instead of asserting it is a SYMBOL_REF.
7521 (value_format): For dw_val_class_addr only use DW_FORM_addr if
7522 the attribute type allows it, otherwise use DW_FORM_dataN.
7523 (mem_loc_descriptor): Handle CONST_STRING.
7524 (add_const_value_attribute): Handle CONST_STRING using add_AT_addr.
7525 Handle MEM with CONST_STRING address using add_AT_string.
7526 (rtl_for_decl_init): Return MEM with CONST_STRING address instead of
7527 CONST_STRING for const arrays initialized with a string literal.
7528 (resolve_one_addr, resolve_addr_in_expr, resolve_addr): New functions.
7529 (dwarf2out_finish): Call resolve_addr.
7530
7531 2009-10-02 Andreas Schwab <schwab@linux-m68k.org>
7532 Maxim Kuvyrkov <maxim@codesourcery.com>
7533
7534 * config/m68k/lb1sf68.asm (PICCALL): Use variable sized branch.
7535
7536 2009-10-02 Nick Clifton <nickc@redhat.com>
7537
7538 * config/mn10300/mn10300.h (USER_LABEL_PREFIX): Define.
7539 (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
7540
7541 2009-10-01 Jan Hubicka <jh@suse.cz>
7542
7543 * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
7544 (cgraph_create_virtual_clone): Just pass redirect_callers
7545 around.
7546 * cgraph.h (cgraph_clone_node): Update prototype.
7547 * ipa-pure-const.c (self_recursive_p): New function.
7548 (propagate): Use it.
7549 * ipa-inline.c (cgraph_clone_inlined_nodes,
7550 cgraph_decide_recursive_inlining): Update.
7551
7552 2009-10-01 David Daney <ddaney@caviumnetworks.com>
7553
7554 * gcc/config/mips/mips.c (mips_process_sync_loop) Emit syncw
7555 instructions for TARGET_OCTEON.
7556
7557 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7558
7559 * config/arm/arm.c (arm_override_options): Turn off
7560 flag_dwarf2_cfi_asm for AAPCS variants.
7561
7562 2009-10-01 Martin Jambor <mjambor@suse.cz>
7563
7564 PR middle-end/12392
7565 * tree-sra.c (convert_callers): Do not call
7566 compute_inline_parameters on one caller more than once.
7567
7568 2009-10-01 Nick Clifton <nickc@redhat.com>
7569
7570 * config/vax/netbsd-elf.h (NETBSD_CC1_AND_CC1PLUS_SPEC): Define as
7571 an empty string if not already defined.
7572
7573 2009-10-01 Martin Jambor <mjambor@suse.cz>
7574
7575 PR bootstrap/41395
7576 * tree-sra.c (is_va_list_type): New function.
7577 (find_var_candidates): Call is_va_list_type.
7578 (find_param_candidates): Check that the type or the type pointed
7579 to are not va_list types.
7580
7581 2009-10-01 Martin Jambor <mjambor@suse.cz>
7582
7583 PR c++/41503
7584 * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
7585 DECL_ARTIFICIAL (param_decl) is true.
7586
7587 2009-09-30 Gabriel Dos Reis <gdr@cs.tamu.edu>
7588
7589 * tree.h (tree_decl_common::lang_flag_8): New.
7590 * c-common.c (c_common_reswords): Include "constexpr" as C++0x
7591 keyword.
7592 * c-common.h (RID_CONSTEXPR): New.
7593
7594 2009-09-30 Uros Bizjak <ubizjak@gmail.com>
7595
7596 * config/alpha/alpha.c (alpha_gimplify_va_arg_1):
7597 Use ref-all pointers.
7598 (alpha_gimplify_va_arg): Ditto.
7599
7600 2009-09-30 Jakub Jelinek <jakub@redhat.com>
7601
7602 PR target/41279
7603 * cfgloopanal.c (num_loop_insns): Don't increment ninsns for each bb
7604 before insn counting loop now that BB_END (bb) is counted. Ensure
7605 the return value isn't zero.
7606
7607 2009-09-30 Nick Clifton <nickc@redhat.com>
7608
7609 * config.gcc (sh-symbianelf): Replace definition of extra_objs
7610 with separate definitions of c_target_objs and cxx_target_objs.
7611 * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o
7612 and symbian-base.o.
7613 * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use
7614 sh_symbian_import_export_class.
7615 * config/sh/sh-protos.h: Fix names of exported symbian functions.
7616 * config/sh/symbian.c: Delete, moving code into...
7617 * config/sh/symbian-base.c: ... here
7618 * config/sh/symbian-c.c: ... and here
7619 * config/sh/symbian-cxx.c: ... and here.
7620
7621 2009-09-30 Uros Bizjak <ubizjak@gmail.com>
7622
7623 PR target/22093
7624 * config/alpha/alpha.md (unaligned_storehi_be): Force operand
7625 of plus RTX into register.
7626
7627 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7628
7629 * doc/install.texi: Linguistic and markup fixes.
7630 (Configuration) <--disable-cpp>: Remove description.
7631 <--enable-maintainer-mode>: Autotools files are affected, too.
7632 <--with-sysroot>: Improve description.
7633 (Building): Bump required GNU make version.
7634
7635 2009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
7636
7637 * config.gcc (i[34567]86-*-*): Include fma4intrin.h.
7638 (x86_64-*-*): Ditto.
7639
7640 * config/i386/fma4intrin.h: New file, provide common x86 compiler
7641 intrinisics for FMA4.
7642 * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit.
7643 * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a.
7644 Add FMA4 check and fma4intrin.h.
7645 * config/i386/i386-c.c(ix86_target_macros_internal): Check
7646 ISA_FLAG for FMA4.
7647 * config/i386/i386.h(TARGET_FMA4): New macro for FMA4.
7648 * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC
7649 constant for FMA4 support.
7650 (UNSPEC_FMA4_FMADDSUB): Ditto.
7651 (UNSPEC_FMA4_FMSUBADD): Ditto.
7652 * config/i386/i386.opt (-mfma4): New switch for FMA4 support.
7653 * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration.
7654 (ix86_expand_fma4_multiple_memory): Ditto.
7655 * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New.
7656 (OPTION_MASK_ISA_FMA4_UNSET): New.
7657 (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4.
7658 (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4.
7659 (ix86_handle_option): Handle -mfma4.
7660 (isa_opts): Handle -mfma4.
7661 (enum pta_flags): Add PTA_FMA4.
7662 (override_options): Add FMA4 support.
7663 (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic.
7664 (IX86_BUILTIN_VFMADDSD): Ditto.
7665 (IX86_BUILTIN_VFMADDPS): Ditto.
7666 (IX86_BUILTIN_VFMADDPD): Ditto.
7667 (IX86_BUILTIN_VFMSUBSS): Ditto.
7668 (IX86_BUILTIN_VFMSUBSD): Ditto.
7669 (IX86_BUILTIN_VFMSUBPS): Ditto.
7670 (IX86_BUILTIN_VFMSUBPD): Ditto.
7671 (IX86_BUILTIN_VFMADDSUBPS): Ditto.
7672 (IX86_BUILTIN_VFMADDSUBPD): Ditto.
7673 (IX86_BUILTIN_VFMSUBADDPS): Ditto.
7674 (IX86_BUILTIN_VFMSUBADDPD): Ditto.
7675 (IX86_BUILTIN_VFNMADDSS): Ditto.
7676 (IX86_BUILTIN_VFNMADDSD): Ditto.
7677 (IX86_BUILTIN_VFNMADDPS): Ditto.
7678 (IX86_BUILTIN_VFNMADDPD): Ditto.
7679 (IX86_BUILTIN_VFNMSUBSS): Ditto.
7680 (IX86_BUILTIN_VFNMSUBSD): Ditto.
7681 (IX86_BUILTIN_VFNMSUBPS): Ditto.
7682 (IX86_BUILTIN_VFNMSUBPD): Ditto.
7683 (IX86_BUILTIN_VFMADDPS256): Ditto.
7684 (IX86_BUILTIN_VFMADDPD256): Ditto.
7685 (IX86_BUILTIN_VFMSUBPS256): Ditto.
7686 (IX86_BUILTIN_VFMSUBPD256): Ditto.
7687 (IX86_BUILTIN_VFMADDSUBPS256): Ditto.
7688 (IX86_BUILTIN_VFMADDSUBPD256): Ditto.
7689 (IX86_BUILTIN_VFMSUBADDPS256): Ditto.
7690 (IX86_BUILTIN_VFMSUBADDPD256): Ditto.
7691 (IX86_BUILTIN_VFNMADDPS256): Ditto.
7692 (IX86_BUILTIN_VFNMADDPD256): Ditto.
7693 (IX86_BUILTIN_VFNMSUBPS256): Ditto.
7694 (IX86_BUILTIN_VFNMSUBPD256): Ditto.
7695 (enum multi_arg_type): New enum for describing the various FMA4
7696 intrinsic argument types.
7697 (bdesc_multi_arg): New table for FMA4 intrinsics.
7698 (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support.
7699 (ix86_expand_multi_arg_builtin): New function for creating FMA4
7700 intrinsics.
7701 (ix86_expand_builtin): Add FMA4 intrinsic support.
7702 (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4
7703 operand instructions.
7704 (ix86_expand_fma4_multiple_memory): New function to split the
7705 second memory reference from FMA4 instructions.
7706 * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4.
7707 (ssemodesuffixf2s): Ditto.
7708 (fma4_fmadd<mode>4): Add FMA4 floating point multiply/add
7709 instructions.
7710 (fma4_fmsub<mode>4): Ditto.
7711 (fma4_fnmadd<mode>4): Ditto.
7712 (fma4_fnmsub<mode>4): Ditto.
7713 (fma4_vmfmadd<mode>4): Ditto.
7714 (fma4_vmfmsub<mode>4): Ditto.
7715 (fma4_vmfnmadd<mode>4): Ditto.
7716 (fma4_vmfnmsub<mode>4): Ditto.
7717 (fma4_fmadd<mode>4256): Ditto.
7718 (fma4_fmsub<mode>4256): Ditto.
7719 (fma4_fnmadd<mode>4256): Ditto.
7720 (fma4_fnmsub<mode>4256): Ditto.
7721 (fma4_fmaddsubv8sf4): Ditto.
7722 (fma4_fmaddsubv4sf4): Ditto.
7723 (fma4_fmaddsubv4df4): Ditto.
7724 (fma4_fmaddsubv2df4): Ditto.
7725 (fma4_fmsubaddv8sf4): Ditto.
7726 (fma4_fmsubaddv4sf4): Ditto.
7727 (fma4_fmsubaddv4df4): Ditto.
7728 (fma4_fmsubaddv2df4): Ditto.
7729 (fma4i_fmadd<mode>4): Add FMA4 floating point multiply/add
7730 instructions for intrinsics.
7731 (fma4i_fmsub<mode>4): Ditto.
7732 (fma4i_fnmadd<mode>4): Ditto.
7733 (fma4i_fnmsub<mode>4): Ditto.
7734 (fma4i_vmfmadd<mode>4): Ditto.
7735 (fma4i_vmfmsub<mode>4): Ditto.
7736 (fma4i_vmfnmadd<mode>4): Ditto.
7737 (fma4i_vmfnmsub<mode>4): Ditto.
7738 (fma4i_fmadd<mode>4256): Ditto.
7739 (fma4i_fmsub<mode>4256): Ditto.
7740 (fma4i_fnmadd<mode>4256): Ditto.
7741 (fma4i_fnmsub<mode>4256): Ditto.
7742 (fma4i_fmaddsubv8sf4): Ditto.
7743 (fma4i_fmaddsubv4sf4): Ditto.
7744 (fma4i_fmaddsubv4df4): Ditto.
7745 (fma4i_fmaddsubv2df4): Ditto.
7746 (fma4i_fmsubaddv8sf4): Ditto.
7747 (fma4i_fmsubaddv4sf4): Ditto.
7748 (fma4i_fmsubaddv4df4): Ditto.
7749 (fma4i_fmsubaddv2df4): Ditto.
7750
7751 * doc/invoke.texi (-mfma4): Add documentation.
7752 * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics.
7753
7754 2009-09-29 Richard Henderson <rth@redhat.com>
7755
7756 * tree-eh.c (unsplit_eh): Do not unsplit if there's already
7757 an edge to the new destination block.
7758
7759 2009-09-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7760
7761 PR target/41393
7762 * pa.c (hppa_profile_hook): Use
7763 make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
7764
7765 2009-09-29 Steve Ellcey <sje@cup.hp.com>
7766 Alexander Monakov <amonakov@ispras.ru>
7767
7768 PR target/41365
7769 * config/ia64/predicates.md (not_postinc_destination_operand): New.
7770 (not_postinc_memory_operand): New.
7771 (not_postinc_move_operand): New.
7772 * config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
7773 (*cmovsi_internal): Ditto.
7774
7775 2009-09-29 Pat Haugen <pthaugen@us.ibm.com>
7776
7777 * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
7778 restrict issue_rate in first pass when scheduling for register
7779 pressure.
7780
7781 2009-09-29 Basile Starynkevitch <basile@starynkevitch.net>
7782 Rafael Avila de Espindola <espindola@google.com>
7783
7784 * gengtype.c (plugin_output): New.
7785 (get_output_file_with_visibility): Return plugin_output for plugins.
7786 (main): Parse and use the -P option.
7787 * gty.texi: Update the command line format.
7788
7789 2009-09-29 Jakub Jelinek <jakub@redhat.com>
7790
7791 PR debug/41438
7792 * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
7793 functions.
7794 (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
7795 out if !const_ok_for_output.
7796
7797 PR debug/41474
7798 * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
7799 case VAR_LOCATION>: Remove gcc_unreachable ().
7800
7801 2009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
7802
7803 * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
7804 (x86_64-*-*): Ditto.
7805 * config/i386/smmintrin.h: Move instructions in mmintrin-common.h
7806 back to smmintrin.h.
7807 * config/i386/cpuid.h (bit_SSE5): Remove SSE5 bit.
7808 * config/i386/x86intrin.h: Remove SSE5.
7809 * config/i386/mmintrin-common.h: Delete file.
7810 * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins.
7811
7812 2009-09-29 Richard Guenther <rguenther@suse.de>
7813
7814 * alias.c (ao_ref_from_mem): Properly deal with off decl accesses
7815 resulting from stack temporaries on STRICT_ALIGNMENT targets.
7816
7817 2009-09-29 Nick Clifton <nickc@redhat.com>
7818
7819 * function.c (current_function_name): If there is no current
7820 function just return "<none>".
7821
7822 2009-09-28 Sriraman Tallam <tmsriram@google.com>
7823
7824 * tree-pass.h (register_pass_info): New structure.
7825 (pass_positioning_ops): Move enum from gcc-plugin.h.
7826 (register_pass): New function.
7827 * gcc-plugin.h (plugin_pass): Delete structure.
7828 (pass_positioning_ops): Delete enum.
7829 * plugin.c (regsiter_pass): Delete function.
7830 (position_pass): Delete function.
7831 (added_pass_nodes): Delete variable.
7832 (prev_added_pass_nodes): Delete variable.
7833 (pass_list_node): Delete structure.
7834 * passes.c (make_pass_instance): New function.
7835 (next_pass_1): Change to call make_pass_instance.
7836 (pass_list_node): Move structure from gcc-plugin.h.
7837 (added_pass_nodes): Move variable from plugin.c.
7838 (prev_added_pass_nodes): Move variable from plugin.c.
7839 (position_pass): New function.
7840 (register_pass): New function.
7841
7842 2009-09-28 Easwaran Raman <eraman@google.com>
7843
7844 * ifcvt.c (noce_try_abs): Recognize pattern and call
7845 expand_one_cmpl_abs_nojump.
7846 * optabs.c (expand_one_cmpl_abs_nojump): New function.
7847 * optabs.h (expand_one_cmpl_abs_nojump): Declare.
7848
7849 2009-09-28 Ian Lance Taylor <iant@google.com>
7850
7851 PR middle-end/40500
7852 * c-opts.c (c_common_handle_option): Don't set
7853 warn_jump_misses_init for -Wall.
7854 * doc/invoke.texi (Warning Options): Update documentation.
7855
7856 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7857
7858 * Makefile.in ($(out_object_file)): Depend on
7859 gt-$(basename $(notdir $(out_file))).h.
7860
7861 2009-09-28 Richard Henderson <rth@redhat.com>
7862
7863 * except.h (struct eh_region_d): Add use_cxa_end_cleanup.
7864 * except.c (gen_eh_region): Set it.
7865 (duplicate_eh_regions_1): Copy it.
7866 * tree-eh.c (lower_resx): Use it to determine which function
7867 to call to resume.
7868
7869 * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
7870 * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
7871 * builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
7872 * tree.c (build_common_builtin_nodes): Remove parameter. Build
7873 BUILT_IN_CXA_END_CLEANUP if necessary.
7874
7875 * c-common.c (c_define_builtins): Update call to
7876 build_common_builtin_nodes.
7877
7878 2009-09-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
7879
7880 * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
7881
7882 2009-09-28 Michael Matz <matz@suse.de>
7883
7884 * builtins.c (interclass_mathfn_icode): New helper.
7885 (expand_builtin_interclass_mathfn): Use it here, and split folding
7886 into ...
7887 (fold_builtin_interclass_mathfn): ... this new folder.
7888 (build_call_nofold_loc): New static helper.
7889 (build_call_nofold): New wrapper macro for above.
7890 (expand_builtin_int_roundingfn): Use it instead of build_call_expr.
7891 (expand_builtin_pow): Ditto.
7892 (expand_builtin_memset_args): Ditto.
7893 (expand_builtin_printf): Ditto.
7894 (expand_builtin_fprintf): Ditto.
7895 (expand_builtin_sprintf): Ditto.
7896 (expand_builtin_memory_chk): Ditto.
7897 (expand_builtin_mempcpy_args): Ditto and don't call folders.
7898 (expand_builtin_stpcpy): Ditto.
7899 (expand_builtin_strcmp): Ditto.
7900 (expand_builtin_strncmp): Ditto.
7901 (expand_builtin_strcpy): Remove FNDECL and MODE arguments.
7902 (expand_builtin_strcpy_args): Don't call folders.
7903 (expand_builtin_memcmp): Ditto.
7904 (expand_builtin_strncpy): Ditto, and use target.
7905 (expand_builtin_memcpy): Ditto.
7906 (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
7907 expand_builtin_strpbrk, expand_builtin_memmove,
7908 expand_builtin_memmove_args, expand_builtin_bcopy,
7909 expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
7910 expand_builtin_strspn, expand_builtin_strcspn,
7911 expand_builtin_fputs): Remove these.
7912 (expand_builtin): Don't call the above, change calls to other
7913 expanders that changed prototype.
7914 (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
7915 (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
7916 fold_builtin_interclass_mathfn.
7917 (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
7918 (fold_builtin_strcat): Add folding split from expand_builtin_strcat.
7919
7920 * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
7921 * passes.c (init_optimization_passes): Move pass_fold_builtins
7922 after last phiopt pass.
7923 * tree-inline.c (fold_marked_statements): When folding builtins
7924 iterate over all instruction potentially generated.
7925 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
7926 earlier.
7927 (fold_gimple_call): Use it to always fold calls (into potentially
7928 multiple instructions).
7929 * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
7930 calls into zero at this time.
7931 * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple
7932 statements generated by builtin folding.
7933
7934 2009-09-28 Nick Clifton <nickc@redhat.com>
7935
7936 * config/m32r/m32r.c (m32r_is_insn): Return false for debugging insns.
7937
7938 2009-09-28 Duncan Sands <baldrick@free.fr>
7939
7940 * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
7941 * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
7942 (register_callback): Dispatch it.
7943 (invoke_plugin_callbacks): Incorporate in sanity check.
7944 * ggc.h (ggc_register_cache_tab): Add declaration.
7945 * ggc-common.c (ggc_register_root_tab): Simplify.
7946 (const_ggc_cache_tab_t): New typedef.
7947 (extra_cache_vec): New vector of dynamically added cache tables.
7948 (ggc_register_cache_tab): New function.
7949 (ggc_scan_cache_tab): New function.
7950 (ggc_mark_roots): Simplify dynamic roots. Handle dynamic caches.
7951 * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
7952
7953 2009-09-27 Richard Henderson <rth@redhat.com>
7954
7955 * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
7956 which we remove __builtin_stack_restore.
7957
7958 2009-09-27 Bernd Schmidt <bernd.schmidt@analog.com>
7959
7960 * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
7961 to test for GRD_INVARIANT.
7962 (simple_rhs_p): Anything that's function_invariant_p is fine.
7963
7964 2009-09-27 Rafael Avila de Espindola <espindola@google.com>
7965
7966 * gengtype.c (main): Use plunge_files instead of plugin_output.
7967
7968 2009-09-27 Basile Starynkevitch <basile@starynkevitch.net>
7969 Rafael Avila de Espindola <espindola@google.com>
7970
7971 * gengtype.c (write_root, write_roots): Add a emit_pch argument.
7972 Don't print pch related info if it is false.
7973 (main): Don't print pch info in plugin mode.
7974
7975 2009-09-27 Eric Botcazou <ebotcazou@adacore.com>
7976
7977 * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
7978 with dw_val_class_const_double.
7979 (struct dw_val_struct): Replace val_long_long with val_double and
7980 adjust for above change.
7981 (output_loc_operands): Likewise.
7982 (add_AT_long_long): Rename into...
7983 (add_AT_double): ...this.
7984 (print_die): Replace dw_val_class_long_long with
7985 dw_val_class_const_double and adjust.
7986 (attr_checksum): Likewise.
7987 (same_dw_val_p): Likewise.
7988 (size_of_die): Likewise.
7989 (value_format): Likewise.
7990 (output_die): Likewise.
7991 (loc_descriptor) <CONST_DOUBLE>: Likewise.
7992 (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
7993 instead of add_AT_long_long.
7994 (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
7995 value with the precision of its type.
7996
7997 2009-09-27 Andreas Schwab <schwab@linux-m68k.org>
7998
7999 PR c/41476
8000 * c-typeck.c (build_conditional_expr): Use the readonly and
8001 volatile flags of the operand types, not of the operands itself.
8002
8003 2009-09-27 Peter O'Gorman <pogma@thewrittenword.com>
8004
8005 * collect2.c (main): Look for -brtl before adding libraries.
8006
8007 2009-09-27 Jonathan Gray <jsg@openbsd.org>
8008
8009 * config.gcc: Update OpenBSD targets.
8010 * config/openbsd-stdint.h: New file.
8011 * config/openbsd-libpthread.h: New file.
8012 * config/openbsd.h: Update and break out LIB_SPEC definition.
8013 * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
8014 * config/i386/openbsdelf.h: Correct types.
8015 * config/m68k/openbsd.h: Likewise.
8016 * config/mips/openbsd.h: Likewise.
8017 * config/vax/openbsd.h: Likewise.
8018
8019 2009-09-27 Eric Botcazou <ebotcazou@adacore.com>
8020
8021 * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
8022 (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
8023 * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
8024 of the length and zero.
8025
8026 2009-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8027
8028 * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
8029 (FLAGS_H): Add options.h $(REAL_H).
8030 (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
8031 (TREE_VECTORIZER_H): New.
8032 (EBITMAP_H): Renamed from EBIMAP_H.
8033 (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
8034 (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
8035 (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
8036 (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
8037 (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
8038 (graphite-clast-to-gimple.o, graphite-dependences.o)
8039 (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
8040 (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
8041 (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
8042 (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
8043 (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
8044 (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
8045 (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
8046 (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
8047 (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
8048 updated and fixed as per above changes and per
8049 check_makefile_deps.sh output.
8050
8051 PR bootstrap/40928
8052 * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
8053 * configure: Regenerate.
8054
8055 2009-09-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8056
8057 * doc/install.texi: Update minimum MPC version to 0.7.
8058
8059 2009-09-26 Gerald Pfeifer <gerald@pfeifer.com>
8060
8061 * doc/install.texi (Binaries): Remove reference to the binary
8062 distribution CD-ROM from the FSF.
8063
8064 2009-09-26 Michael Matz <matz@suse.de>
8065
8066 PR lto/40758
8067 PR middle-end/41470
8068 * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
8069 that are mentioned in the body.
8070
8071 2009-09-26 Michael Matz <matz@suse.de>
8072
8073 PR tree-optimization/41454
8074 * tree-ssa-dom (stmts_to_rescan): Remove variable.
8075 (tree_ssa_dominator_optimize): Don't allocate and free it.
8076 (dom_opt_leave_block): Don't iterate over it.
8077 (eliminate_redundant_computations): Don't return a value.
8078 (cprop_operand, cprop_into_stmt): Ditto.
8079 (optimize_stmt): Don't defer updating stmts.
8080
8081 2009-09-25 Dodji Seketeli <dodji@redhat.com>
8082
8083 * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
8084 generic_parameter_die, template_parameter_pack_die,
8085 gen_formal_parameter_die, gen_subprogram_die): Adjust after
8086 renaming DW_TAG_formal_parameter_pack and
8087 DW_TAG_template_parameter_pack into DW_TAG_GNU_formal_parameter_pack
8088 and DW_TAG_GNU_template_parameter_pack.
8089
8090 2009-09-25 Anatoly Sokolov <aesok@post.ru>
8091
8092 * config/v850/v850.h (FUNCTION_VALUE): Remove.
8093 * config/v850/v850.c (v850_function_value): New function.
8094 (TARGET_FUNCTION_VALUE): Define.
8095
8096 2009-09-25 Jakub Jelinek <jakub@redhat.com>
8097
8098 * tree-vect-stmts.c (vectorizable_call): Call
8099 mark_symbols_for_renaming after vect_finish_stmt_generation.
8100
8101 * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
8102 to loc_descriptor_from_tree.
8103 (add_location_or_const_value_attribute): Pass 0 instead of 2
8104 for decl_by_reference_p decls.
8105
8106 2009-09-25 Richard Guenther <rguenther@suse.de>
8107
8108 PR middle-end/41463
8109 * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
8110 arrays again.
8111
8112 2009-09-25 Ben Elliston <bje@au.ibm.com>
8113
8114 * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma
8115 after `power7'.
8116
8117 2009-09-25 Alan Modra <amodra@bigpond.net.au>
8118
8119 * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
8120 form of instruction.
8121
8122 2009-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8123
8124 PR middle-end/41435
8125 * fold-const.c (const_binop): Handle complex int division.
8126 * tree-complex.c (expand_complex_div_straight,
8127 expand_complex_div_wide): Update comments.
8128
8129 2009-09-24 DJ Delorie <dj@redhat.com>
8130
8131 PR target/41456
8132 * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13.
8133 (reg_class): Likewise.
8134 (REG_CLASS_NAMES): Likewise.
8135 * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
8136 (m32c_override_options): Disable -fivopts for M32C.
8137
8138 2009-09-24 Michael Meissner <meissner@linux.vnet.ibm.com>
8139
8140 * config/rs6000/predicates.md (indexed_or_indirect_operand):
8141 Delete VSX load/store with update support.
8142 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto.
8143 * config/rs6000/vsx.md (vsx_mov<mode>): Ditto.
8144 (vsx_movti): Ditto.
8145 (VSX_U): Delete.
8146 (VSbit): Ditto.
8147 (VStype_load_update): Ditto.
8148 (VStype_store_update): Ditto.
8149 (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto.
8150 (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto.
8151
8152 * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX
8153 load/store with update builtins.
8154
8155 2009-09-24 Kai Tietz <kai.tietz@onevision.com>
8156
8157 * libgcc2.c (L_trampoline): Prototype for getpagesize
8158 and mprotect in WINNT case.
8159
8160 2009-09-24 Anatoly Sokolov <aesok@post.ru>
8161
8162 * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro.
8163 * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove.
8164 * config/rs6000/rs6000.c (rs6000_function_value): Make static, add
8165 'outgoing' argument.
8166 (TARGET_FUNCTION_VALUE): Define.
8167
8168 2009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
8169
8170 * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1.
8171
8172 2009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
8173
8174 PR bootstrap/41405
8175 * common.opt: Initialize dwarf_strict to -1.
8176 * toplev.c (process_options): Catch unset dwarf_strict
8177 and set to 0 for all targets not overriding.
8178 * config/darwin.c (darwin_override_options): Catch unset
8179 dwarf_strict and override to 1.
8180
8181 2009-09-24 Jeff Law <law@redhat.com>
8182
8183 * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
8184
8185 2009-09-24 Richard Guenther <rguenther@suse.de>
8186
8187 PR tree-optimization/36143
8188 PR tree-optimization/38747
8189 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
8190 create VIEW_CONVERT_EXPRs for TBAA compatible accesses.
8191
8192 2009-09-24 Jakub Jelinek <jakub@redhat.com>
8193
8194 PR bootstrap/41457
8195 * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED,
8196 return false instead of gcc_unreachable (). For CONST return the
8197 value returned by recursive call instead of always returning true.
8198 (tree_add_const_value_attribute): Return the value returned by
8199 add_const_value_attribute instead of always returning true if rtl
8200 is non-NULL.
8201
8202 2009-09-23 Justin Seyster <jrseys@gmail.com>
8203
8204 * Makefile.in (PLUGIN_HEADERS): Include real.h.
8205
8206 2009-09-24 Jakub Jelinek <jakub@redhat.com>
8207
8208 * cgraphunit.c (cgraph_lower_function): Revert last change.
8209 * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
8210 instead of DECL_NO_STATIC_CHAIN.
8211 * tree-cfg.c (verify_gimple_call): Likewise.
8212 * tree-nested.c (get_chain_decl, get_chain_field,
8213 convert_tramp_reference_op, convert_gimple_call): Likewise.
8214 (convert_all_function_calls): Likewise. Always set or clear
8215 DECL_STATIC_CHAIN initially, for !n->outer clear it.
8216 (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
8217 * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
8218 if nested.
8219 * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
8220 DECL_NO_STATIC_CHAIN.
8221 * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
8222 instead of DECL_NO_STATIC_CHAIN.
8223 (ix86_function_regparm, find_drap_reg): Likewise. Don't test
8224 decl_function_context.
8225 * varasm.c (initializer_constant_valid_p): Likewise.
8226 * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
8227 (DECL_STATIC_CHAIN): ... this.
8228 * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
8229 instead of DECL_NO_STATIC_CHAIN.
8230
8231 2009-09-23 Basile Starynkevitch <basile@starynkevitch.net>
8232 Rafael Avila de Espindola <espindola@google.com>
8233
8234 * gengtype.c (nb_plugin_files): Make it unsigned to match
8235 num_gt_files. Adjust other variables to avoid warnings.
8236 (main): Allocate an all zero lang_bitmap before each plugin file name
8237 to match regular file names.
8238
8239 2009-09-23 Richard Henderson <rth@redhat.com>
8240
8241 * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
8242 (TARGET_STATIC_CHAIN): Mention that this hook must be used for
8243 static chain passed in memory.
8244 * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison.
8245 * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN,
8246 STATIC_CHAIN_INCOMING. Issue a sorry if there's no
8247 STATIC_CHAIN_REGNUM defined.
8248
8249 * config/picochip/picochip-protos.h: s/class/klass/.
8250 * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New.
8251 (picochip_static_chain): New.
8252 * config/picochip/picochip.h (STATIC_CHAIN): Remove.
8253 (STATIC_CHAIN_INCOMING): Remove.
8254
8255 * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New.
8256 (xtensa_static_chain): New.
8257 * config/xtensa/xtensa.h (STATIC_CHAIN): Remove.
8258 (STATIC_CHAIN_INCOMING): Remove.
8259
8260 2009-09-23 Anatoly Sokolov <aesok@post.ru>
8261
8262 * config/pa/pa.h (FUNCTION_VALUE): Remove macro.
8263 * config/pa/pa-protos.h (function_value): Remove.
8264 * config/pa/pa.c (pa_function_value): Rename from function_value.
8265 Make static, add 'outgoing' argument.
8266 (TARGET_FUNCTION_VALUE): Define.
8267
8268 2009-09-23 Anatoly Sokolov <aesok@post.ru>
8269
8270 * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
8271 instead of cfun->machine->is_leaf.
8272 * config/avr/avr.h (machine_function): Remove is_leaf field.
8273
8274 2009-09-23 Jakub Jelinek <jakub@redhat.com>
8275
8276 PR debug/41439
8277 * dwarf2out.c (address_of_int_loc_descriptor): Don't emit
8278 DW_OP_piece after DW_OP_stack_value, adjust size calculations
8279 for it, when DW_OP_stack_value and DW_OP_implicit_value has
8280 the same size, prefer DW_OP_stack_value.
8281 (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref,
8282 loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value.
8283
8284 2009-09-23 Alexandre Oliva <aoliva@redhat.com>
8285
8286 PR debug/41353
8287 * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses.
8288
8289 2009-09-23 Alexandre Oliva <aoliva@redhat.com>
8290
8291 PR debug/41248
8292 * cfgexpand.c (convert_debug_memory_address): New.
8293 (expand_debug_expr): Convert base address and offset to the same
8294 mode. Use it to convert addresses to other modes. Accept
8295 ptr_mode addresses.
8296
8297 2009-09-23 Dodji Seketeli <dodji@redhat.com>
8298
8299 PR debug/41065
8300 * function.h (types_used_by_vars_hash): Declare new hash table.
8301 (types_used_by_vars_eq, types_used_by_var_decl_insert): Declare
8302 equality and hash function for the hash table.
8303 (types_used_by_cur_var_decl): Declare a new global chained list.
8304 (types_used_by_var_decl_insert): Declare new function.
8305 * function.c (types_used_by_vars_hash): Define the hashtable ...
8306 (types_used_by_vars_eq, types_used_by_vars_do_hash): ... as well as
8307 its equality and hash functions.
8308 (hash_types_used_by_vars_entry): New hash helper.
8309 (types_used_by_cur_var_decl): Define the global chained list.
8310 (used_types_insert): Update the list of types used by the global
8311 variable being parsed.
8312 (types_used_by_var_decl_insert): Define new function.
8313 * c-common.h (record_types_used_by_current_var_decl): Declare ...
8314 * c-common.c (record_types_used_by_current_var_decl): ... new
8315 function.
8316 * c-decl.c (finish_decl): Record the types used by the global
8317 variable declaration we've just parsed.
8318 * dwarf2out.c (premark_used_types): Insert a new line between
8319 comment and function.
8320 (premark_used_types_helper): Fix comment.
8321 (premark_types_used_by_global_vars_helper,
8322 premark_types_used_by_global_vars): New functions.
8323 (prune_unused_types): Do not prune types used by global variables.
8324
8325 2009-09-23 Richard Guenther <rguenther@suse.de>
8326
8327 * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET
8328 produced for bigendian targets with promoted subregs.
8329
8330 2009-09-23 Richard Guenther <rguenther@suse.de>
8331
8332 * value-prof.c (gimple_ic): Purge old EH edges only after building
8333 the new ones.
8334
8335 2009-09-23 Nick Clifton <nickc@redhat.com>
8336
8337 * config/arc/arc.c (arc_trampoline_init): Fix typo.
8338
8339 2009-09-23 Jakub Jelinek <jakub@redhat.com>
8340
8341 PR bootstrap/41405
8342 * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf.
8343
8344 PR bootstrap/41436
8345 * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
8346 on non-nested functions.
8347
8348 2009-09-23 Jakub Jelinek <jakub@redhat.com>
8349 Jan Hubicka <jh@suse.cz>
8350
8351 * dwarf2out.c (loc_list_plus_const): Only define if
8352 DWARF2_DEBUGGING_INFO.
8353 (address_of_int_loc_descriptor): Likewise.
8354
8355 PR debug/41411
8356 * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
8357
8358 2009-09-23 Uros Bizjak <ubizjak@gmail.com>
8359
8360 PR c/39779
8361 * c-typeck.c (build_binary_op) <short_shift>: Check that integer
8362 constant is more than zero.
8363
8364 2009-09-23 Alan Modra <amodra@bigpond.net.au>
8365
8366 PR target/40473
8367 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
8368 call final to emit non-scheduled prologue, instead insert at entry.
8369
8370 2009-09-22 Loren J. Rittle <ljrittle@acm.org>
8371 Joseph S. Myers <joseph@codesourcery.com>
8372
8373 * doc/install.texi (*-*-freebsd*): Add proper format codes.
8374
8375 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
8376 Rafael Avila de Espindola <espindola@google.com>
8377
8378 * gengtype.c (is_file_equal): New function.
8379 (close_output_files): Use is_file_equal. Free of->buf.
8380
8381 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
8382 Rafael Avila de Espindola <espindola@google.com>
8383
8384 * gengtype.c (write_types, write_local): Add the output_header
8385 argument. Update all callers.
8386
8387 2009-09-22 Dodji Seketeli <dodji@redhat.com>
8388
8389 * dwarf2out.c (template_parameter_pack_die,
8390 gen_formal_parameter_pack_die ): New functions.
8391 (make_ith_pack_parameter_name): Remove this function.
8392 (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
8393 DW_TAG_formal_parameter_pack.
8394 (gen_generic_params_dies): Represent each template parameter pack
8395 by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
8396 represented by usual DW_TAG_template_*_parameter DIEs that are
8397 children of the DW_TAG_template_parameter_pack element DIE.
8398 (generic_parameter_die): This doesn't deal with parameter pack
8399 names anymore. Don't generate DW_AT_name for some DIEs, e.g. children
8400 of parameter pack DIEs.
8401 (gen_formal_parameter_die): Add a flag to not emit DW_AT_name
8402 in certain cases, e.g. for pack elements.
8403 (gen_formal_types_die, gen_decl_die): Adjust usage of
8404 gen_formal_parameter_die.
8405 (gen_subprogram_die): Represent each function parameter pack by a
8406 DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
8407 represented by usual DW_TAG_formal_parameter DIEs that are children
8408 of the DW_TAG_formal_parameter_pack DIE. Remove references to
8409 ____builtin_va_alist decls as no part of the compiler uses those
8410 anymore.
8411 * langhooks.h (struct lang_hooks_for_decls): Add
8412 function_parm_expanded_from_pack_p, get_generic_function_decl
8413 and function_parameter_pack_p hooks. Fix comment for
8414 get_innermost_generic_parms hook.
8415 * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
8416 LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
8417 macros and use them to initialize lang_hook.
8418
8419 2009-09-22 Richard Henderson <rth@redhat.com>
8420
8421 * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
8422 (TRAMPOLINE_ADJUST_ADDRESS): Poison.
8423 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
8424 on TRAMPOLINE_TEMPLATE.
8425 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
8426 TRAMPOLINE_ADJUST_ADDRESS.
8427 * targhooks.c (default_asm_trampoline_template): Remove.
8428 (default_trampoline_adjust_address): Remove.
8429 (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
8430 * targhooks.h: Update decls.
8431
8432 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
8433
8434 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
8435 * config/i386/cygwin.h (LIBGCJ_SONAME): Define.
8436 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
8437
8438 2009-09-22 Alexandre Oliva <aoliva@redhat.com>
8439
8440 PR debug/41295
8441 * reload1.c (reload): Reset debug insns with pseudos without
8442 equivalences.
8443
8444 2009-09-22 Janis Johnson <janis187@us.ibm.com>
8445
8446 * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return
8447 unconditional true for decimal float modes.
8448 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto.
8449 * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto.
8450
8451 2009-09-22 Loren J. Rittle <ljrittle@acm.org>
8452
8453 * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
8454 Enable a new case for __FreeBSD__ >= 7.
8455 * crtstuff.c: Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7.
8456 * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP.
8457 * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC
8458 and USE_LD_AS_NEEDED.
8459
8460 * doc/install.texi (*-*-freebsd*): Update target information.
8461
8462 2009-09-22 Richard Guenther <rguenther@suse.de>
8463
8464 PR middle-end/41395
8465 * tree-dfa.c (get_ref_base_and_extent): Handle trailing
8466 arrays really properly.
8467
8468 2009-09-22 Richard Henderson <rth@redhat.com>
8469
8470 PR target/41246
8471 * target.h (struct gcc_target): Add asm_out.trampoline_template,
8472 calls.static_chain, calls.trampoline_init,
8473 calls.trampoline_adjust_address.
8474 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
8475 (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
8476 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
8477 * builtins.c (expand_builtin_setjmp_receiver): Use
8478 targetm.calls.static_chain; only clobber registers.
8479 (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
8480 set up memory attributes properly for the trampoline block.
8481 (expand_builtin_adjust_trampoline): Use
8482 targetm.calls.trampoline_adjust_address.
8483 * calls.c (prepare_call_address): Add fndecl argument. Use
8484 targetm.calls.static_chain.
8485 * df-scan.c (df_need_static_chain_reg): Remove.
8486 (df_get_entry_block_def_set): Use targetm.calls.static_chain;
8487 consolodate static chain handling.
8488 * doc/tm.texi: Document new hooks.
8489 * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
8490 (init_emit_regs): Don't initialize them.
8491 * expr.h (prepare_call_address): Update decl.
8492 * final.c (profile_function): Use targetm.calls.static_chain.
8493 * function.c (expand_function_start): Likewise.
8494 * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
8495 * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
8496 only clobber registers.
8497 * targhooks.c (default_static_chain): New.
8498 (default_asm_trampoline_template, default_trampoline_init): New.
8499 (default_trampoline_adjust_address): New.
8500 * targhooks.h: Declare them.
8501 * varasm.c (assemble_trampoline_template): Use
8502 targetm.asm_out.trampoline_template. Make the memory block const
8503 and set its size.
8504
8505 * config/alpha/alpha.c (alpha_trampoline_init): Rename from
8506 alpha_initialize_trampoline. Make static. Merge VMS parameter
8507 differences into the TARGET_ABI_OPEN_VMS code block.
8508 (TARGET_TRAMPOLINE_INIT): New.
8509 * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
8510 (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
8511 * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove.
8512 (INITIALIZE_TRAMPOLINE): Remove.
8513
8514 * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
8515 (TRAMPOLINE_TEMPLATE): Merge with ...
8516 (INITIALIZE_TRAMPOLINE): ... this and move ...
8517 * config/arc/arc.c (arc_trampoline_init): ... here.
8518 (TARGET_TRAMPOLINE_INIT): New.
8519
8520 * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
8521 (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
8522 (arm_asm_trampoline_template): New.
8523 (arm_trampoline_init, arm_trampoline_adjust_address): New.
8524 * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE,
8525 THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
8526 code to arm_asm_trampoline_template.
8527 (TRAMPOLINE_ADJUST_ADDRESS): Move code to
8528 arm_trampoline_adjust_address.
8529 (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
8530 adjust for target hook parameters.
8531
8532 * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE):
8533 Remove.
8534
8535 * config/bfin/bfin-protos.h (initialize_trampoline): Remove.
8536 * config/bfin/bfin.c (bfin_asm_trampoline_template): New.
8537 (bfin_trampoline_init): Rename from initialize_trampoline;
8538 make static; update for target hook parameters.
8539 (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
8540 * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to
8541 bfin_asm_trampoline_template.
8542 (INITIALIZE_TRAMPOLINE): Remove.
8543
8544 * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
8545 TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template,
8546 cris_trampoline_init): New.
8547 * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to
8548 cris_asm_trampoline_template.
8549 (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init;
8550 adjust for target hook parameters.
8551
8552 * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove.
8553
8554 * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
8555 TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template,
8556 fr30_trampoline_init): New.
8557 * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to
8558 fr30_asm_trampoline_template.
8559 (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init;
8560 adjust for target hook parameters.
8561
8562 * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New.
8563 (frv_trampoline_init): Rename from frv_initialize_trampoline;
8564 make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook.
8565 * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove.
8566 * config/frv/frv-protos.h (frv_initialize_trampoline): Remove.
8567
8568 * config/h8300/h8300.c (h8300_trampoline_init): New.
8569 (TARGET_TRAMPOLINE_INIT): New.
8570 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code
8571 to h8300_trampoline_init and adjust for hook parameters.
8572
8573 * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove.
8574 * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New.
8575 (ia64_trampoline_init): Rename from ia64_initialize_trampoline;
8576 make static; adjust for hook parameters.
8577 * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove.
8578
8579 * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
8580 (TARGET_TRAMPOLINE_INIT): New.
8581 (iq2000_asm_trampoline_template, iq2000_trampoline_init): New.
8582 * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to
8583 iq2000_asm_trampoline_template.
8584 (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init.
8585 (TRAMPOLINE_CODE_SIZE): New.
8586 (TRAMPOLINE_SIZE): Use it.
8587 (TRAMPOLINE_ALIGNMENT): Follow Pmode.
8588
8589 * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove.
8590 * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New.
8591 (m32c_trampoline_init): Rename from m32c_initialize_trampoline;
8592 adjust for hook parameters.
8593 * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove.
8594
8595 * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New.
8596 (m32r_trampoline_init): New.
8597 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to
8598 m32r_trampoline_init.
8599
8600 * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New.
8601 (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline;
8602 make static; update for hook parameters.
8603 * config/m68hc11/m68hc11-protos.h: Update.
8604 * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove.
8605
8606 * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
8607 (TARGET_TRAMPOLINE_INIT): New.
8608 (mcore_function_value): Fix typo.
8609 (mcore_asm_trampoline_template, mcore_trampoline_init): New.
8610 * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
8611 to mcore_asm_trampoline_template.
8612 (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
8613
8614 * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove.
8615 * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New.
8616 (mep_trampoline_init): Rename from mep_init_trampoline; make static;
8617 update for hook parameters.
8618 * config/mep/mep-protos.h (mep_init_trampoline): Remove.
8619
8620 * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
8621 mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
8622 mips_trampoline_init): New.
8623 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to
8624 mips_asm_trampoline_template.
8625 (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init;
8626 update for hook parameters.
8627
8628 * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
8629 (TARGET_TRAMPOLINE_INIT): New.
8630 (mmix_trampoline_size): Remove.
8631 (mmix_asm_trampoline_template): Rename from mmix_trampoline_template;
8632 make static. Remove out-of-date tetra vs octa comment.
8633 (mmix_trampoline_init): Rename from mmix_initialize_trampoline;
8634 make static; update for hook parameters.
8635 * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove.
8636 (INITIALIZE_TRAMPOLINE): Remove.
8637 (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size.
8638 (TRAMPOLINE_ALIGNMENT): New.
8639 * gcc/config/mmix/mmix-protos.h: Update.
8640
8641 * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
8642 mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
8643 mn10300_trampoline_init): New.
8644 * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to
8645 mn10300_asm_trampoline_template.
8646 (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init.
8647
8648 * config/moxie/moxie.c (moxie_static_chain,
8649 moxie_asm_trampoline_template, moxie_trampoline_init,
8650 TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE,
8651 TARGET_TRAMPOLINE_INIT): New.
8652 * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to
8653 moxie_trampoline_init.
8654 (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template.
8655 (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
8656
8657 * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
8658 pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
8659 pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS,
8660 pa_trampoline_adjust_address): New.
8661 * config/pa/pa.h (TRAMPOLINE_TEMPLATE): Move code to
8662 pa_asm_trampoline_template.
8663 (TRAMPOLINE_ALIGNMENT): New.
8664 (TRAMPOLINE_CODE_SIZE): Move to pa.c.
8665 (INITIALIZE_TRAMPOLINE): Move code to pa_trampoline_init;
8666 adjust for hook parameters.
8667 (TRAMPOLINE_ADJUST_ADDRESS): Move code to pa_trampoline_adjust_address.
8668
8669 * config/pdp11/pdp11.c (pdp11_trampoline_init): New.
8670 (TARGET_TRAMPOLINE_INIT): New.
8671 * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Remove.
8672 (INITIALIZE_TRAMPOLINE): Move code to pdp11_trampoline_init.
8673
8674 * config/picochip/picochip.h (INITIALIZE_TRAMPOLINE): Remove.
8675
8676 * config/rs6000/rs6000-protos.h (rs6000_initialize_trampoline): Remove.
8677 * config/rs6000/rs6000.c (TARGET_TRAMPOLINE_INIT): New.
8678 (rs6000_trampoline_init): Rename from rs6000_initialize_trampoline;
8679 make static; adjust parameters for the hook.
8680 * config/rs6000/rs6000.h (INITIALIZE_TRAMPOLINE): Remove.
8681
8682 * config/s390/s390.c (s390_asm_trampoline_template): Rename from
8683 s390_trampoline_template; make static.
8684 (s390_trampoline_init): Rename from s390_initialize_trampoline;
8685 make static; adjust for target hook.
8686 (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
8687 * config/s390/s390-protos.h: Remove trampoline decls.
8688 * config/s390/s390.h (INITIALIZE_TRAMPOLINE): Remove.
8689 (TRAMPOLINE_TEMPLATE): Remove.
8690 (TRAMPOLINE_ALIGNMENT): New.
8691
8692 * config/score/score-protos.h (score_initialize_trampoline): Remove.
8693 * config/score/score.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
8694 (TARGET_TRAMPOLINE_INIT): New.
8695 (score_asm_trampoline_template): New.
8696 (score_trampoline_init): Rename from score_initialize_trampoline;
8697 make static; adjust for hook parameters.
8698 * config/score/score.h (TRAMPOLINE_TEMPLATE): Move code to
8699 score[37]_asm_trampoline_template.
8700 (INITIALIZE_TRAMPOLINE): Remove.
8701 * config/score/score3.c (score3_asm_trampoline_template): New.
8702 (score3_trampoline_init): Rename from score3_initialize_trampoline;
8703 adjust for target hook.
8704 * config/score/score7.c (score7_asm_trampoline_template): New.
8705 (score7_trampoline_init): Rename from score7_initialize_trampoline;
8706 adjust for target hook.
8707 * config/score/score3.h, config/score/score7.h: Update.
8708
8709 * config/sh/sh-protos.h (sh_initialize_trampoline): Remove.
8710 * config/sh/sh.c (TARGET_TRAMPOLINE_INIT): New.
8711 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
8712 (sh_trampoline_init): Rename from sh_initialize_trampoline;
8713 make static; adjust for target hook parameters.
8714 (sh_trampoline_adjust_address): New.
8715 * config/sh/sh.h (INITIALIZE_TRAMPOLINE): New.
8716 (TRAMPOLINE_ADJUST_ADDRESS): Move code to sh_trampoline_adjust_address.
8717
8718 * config/sparc/sparc.c (TARGET_TRAMPOLINE_INIT): New.
8719 (sparc32_initialize_trampoline): Rename from
8720 sparc_initialize_trampoline; make static; replace tramp parameter
8721 with m_tramp and update memory accesses.
8722 (sparc64_initialize_trampoline): Similarly.
8723 (sparc_trampoline_init): New.
8724 * config/sparc/sparc-protos.h: Remove trampoline decls.
8725 * config/sparc/sparc.h (INITIALIZE_TRAMPOLINE): Remove.
8726 * config/sparc/sparc.md (nonlocal_goto): Don't use static_chain_rtx.
8727
8728 * config/spu/spu.c (TARGET_TRAMPOLINE_INIT): New.
8729 (array_to_constant): Make ARR parameter const.
8730 (spu_trampoline_init): Rename from spu_initialize_trampoline;
8731 make static; update for hook parameters.
8732 * config/spu/spu-protos.h: Update decls.
8733 * config/spu/spu.h (INITIALIZE_TRAMPOLINE): Remove.
8734
8735 * config/stormy16/stormy16.c (xstormy16_trampoline_init): Rename
8736 from xstormy16_initialize_trampoline; make static; update for
8737 hook parameters.
8738 (TARGET_TRAMPOLINE_INIT): New.
8739 * config/stormy16/stormy16.h (INITIALIZE_TRAMPOLINE): Remove.
8740
8741 * config/v850/v850.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
8742 (TARGET_TRAMPOLINE_INIT): New.
8743 (v850_can_eliminate): Make static.
8744 (v850_asm_trampoline_template, v850_trampoline_init): New.
8745 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Move code to
8746 v850_asm_trampoline_template.
8747 (INITIALIZE_TRAMPOLINE): Move code to v850_trampoline_init
8748 and adjust for target hook parameters.
8749
8750 * config/vax/vax.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
8751 (TARGET_TRAMPOLINE_INIT): New.
8752 (vax_asm_trampoline_template, vax_trampoline_init): New.
8753 * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Move code to
8754 vax_asm_trampoline_template.
8755 (INITIALIZE_TRAMPOLINE): Move code to vax_trampoline_init.
8756
8757 * config/xtensa/xtensa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
8758 (TARGET_TRAMPOLINE_INIT): New.
8759 (xtensa_asm_trampoline_template): Rename from
8760 xtensa_trampoline_template; make static.
8761 (xtensa_trampoline_init): Rename from xtensa_initialize_trampoline;
8762 make static; update for hook parameters.
8763 * config/xtensa/xtensa-protos.h: Remove trampoline decls.
8764 * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Remove.
8765 (INITIALIZE_TRAMPOLINE): Remove.
8766
8767 * config/i386/i386.c (ix86_function_regparm): Do not issue an
8768 error for nested functions with regparm=3.
8769 (ix86_compute_frame_layout): Adjust frame pointer offset for
8770 ix86_static_chain_on_stack.
8771 (ix86_expand_prologue): Handle ix86_static_chain_on_stack.
8772 (ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset,
8773 don't reset to UNITS_PER_WORD.
8774 (ix86_emit_leave): Adjust ix86_cfa_state.
8775 (ix86_expand_epilogue): Handle ix86_static_chain_on_stack.
8776 (ix86_static_chain): New.
8777 (ix86_trampoline_init): Rename from x86_initialize_trampoline;
8778 make static; update for target hook parameters; use ix86_static_chain.
8779 (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
8780 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove.
8781 (INITIALIZE_TRAMPOLINE): Remove.
8782 (TRAMPOLINE_SIZE): Use 24 for 64-bit.
8783 (struct machine_function): Use BOOL_BITFIELD; rearrange bitfields
8784 to the end. Add static_chain_on_stack.
8785 (ix86_static_chain_on_stack): New.
8786
8787 * config/m68k/m68k.c (TARGET_TRAMPOLINE_INIT): New.
8788 (m68k_output_mi_thunk): Don't use static_chain_rtx.
8789 (m68k_trampoline_init): New.
8790 * config/m68k/m68k.h (INITIALIZE_TRAMPOLINE): Move code to
8791 m68k_trampoline_init and adjust for hook parameters.
8792 * config/m68k/netbsd-elf.h (TRAMPOLINE_TEMPLATE): Remove.
8793 (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Remove.
8794
8795 2009-09-22 Jakub Jelinek <jakub@redhat.com>
8796
8797 * config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes
8798 for __builtin_altivec_vcmpgt{sb,uh,sh,uw}.
8799
8800 * reload1.c (reload): Call wrap_constant when substituting
8801 reg for equiv inside of DEBUG_INSNs.
8802
8803 PR bootstrap/41405
8804 * dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die,
8805 add_call_src_coords_attributes, add_high_low_attributes,
8806 gen_compile_unit_die, gen_type_die_with_usage force_decl_die,
8807 gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish,
8808 dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions
8809 when -gdwarf-2 -gstrict-dwarf.
8810 (loc_list_from_tree): Likewise. Avoid using DWARF4 additions when
8811 -gdwarf-[23] -gstrict-dwarf.
8812 (address_of_int_loc_descriptor, loc_descriptor,
8813 loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using
8814 DWARF4 additions when -gdwarf-[23] -gstrict-dwarf.
8815 * common.opt (gno-strict-dwarf, gstrict-dwarf): New options.
8816
8817 2009-09-22 Richard Guenther <rguenther@suse.de>
8818
8819 PR tree-optimization/41428
8820 * tree-ssa-ccp.c (ccp_fold_stmt): New function.
8821 (ccp_finalize): Pass it to substitute_and_fold.
8822
8823 2009-09-22 Richard Guenther <rguenther@suse.de>
8824
8825 * tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
8826 (substitute_and_fold): Adjust prototype.
8827 * tree-vrp.c (vrp_evaluate_conditional): Make static.
8828 (simplify_stmt_using_ranges): Likewise.
8829 (fold_predicate_in): Move here from tree-ssa-propagate.c.
8830 (vrp_fold_stmt): New function.
8831 (vrp_finalize): Pass it to substitute_and_fold.
8832 * tree-flow.h (vrp_evaluate_conditional): Remove.
8833 (simplify_stmt_using_ranges): Likewise.
8834 * tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold.
8835 * tree-ssa-copy.c (fini_copy_prop): Likewise.
8836 * tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded
8837 member.
8838 (fold_predicate_in): Move to tree-vrp.c.
8839 (substitute_and_fold): Use the callback instead of calling into
8840 tree-vrp.c functions directly.
8841
8842 2009-09-22 Jakub Jelinek <jakub@redhat.com>
8843
8844 * dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
8845 comparison warning on rs6000.
8846
8847 PR middle-end/41429
8848 * tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
8849 GIMPLE_EH_MUST_NOT_THROW cleanup.
8850 (verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
8851
8852 2009-09-22 Jack Howarth <howarth@bromo.med.uc.edu>
8853
8854 PR middle-end/41260
8855 * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
8856 * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
8857 LIB_SPEC for darwin10 and later since it always uses the unwinder in
8858 libSystem which is derived from the gcc 4.2.1 unwinder.
8859
8860 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
8861
8862 PR middle-end/41357
8863 * varasm.c (default_encode_section_info): Copy TLS model into
8864 sym_ref flags regardless of backend support for TLS, for all
8865 model types except TLS_MODEL_EMULATED.
8866
8867 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
8868
8869 PR bootstrap/41404
8870 * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
8871 we can handle it correctly.
8872
8873 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
8874
8875 * doc/install.texi (os2): Remove section.
8876
8877 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
8878
8879 * doc/standards.texi (Objective-C): Adjust two URLs.
8880
8881 2009-09-21 Giuseppe Scrivano <gscrivano@gnu.org>
8882
8883 * tree-tailcall.c (process_assignment): Don't check if a
8884 multiplication or an addition are already present.
8885 (find_tail_calls): Combine multiple additions and multiplications.
8886 (adjust_accumulator_values): Emit accumulators.
8887
8888 2009-09-21 Kai Tietz <kai.tietz@onevision.com>
8889
8890 * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for
8891 xmm register restore.
8892
8893 2009-09-21 Jan Hubicka <jh@suse.cz>
8894
8895 * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL.
8896 (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and
8897 restore at the end.
8898
8899 2009-09-21 Eric Botcazou <ebotcazou@adacore.com>
8900
8901 * stor-layout.c (layout_type): Remove obsolete code.
8902
8903 2009-09-20 H.J. Lu <hongjiu.lu@intel.com>
8904
8905 PR middle-end/41395
8906 * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2.
8907
8908 2009-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8909
8910 PR middle-end/30789
8911 * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
8912 (do_mpc_ckconv): Accept FORCE_CONVERT parameter.
8913 (fold_builtin_2, do_mpc_arg1): Update accordingly.
8914 * fold-const.c (const_binop): Likewise.
8915 * real.h (do_mpc_arg2): Update prototype.
8916
8917 2009-09-20 Jan Hubicka <jh@suse.cz>
8918
8919 * dwarf2out.c (add_const_value_attribute): Return true if successful.
8920 (add_location_or_const_value_attribute): Rewrite using
8921 loc_list_from_tree.
8922 (tree_add_const_value_attribute): Return true if successful.
8923 (tree_add_const_value_attribute_for_decl): Likewise.
8924
8925 * dwarf2out.c (address_of_int_loc_descriptor): Break out from ...
8926 (loc_descriptor): ... here;
8927 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
8928 (cst_pool_loc_descr): Break out from ...; do not reffer constant
8929 pool items that was not marked for output.
8930 (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR;
8931 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
8932 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
8933 handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR,
8934 IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of
8935 CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use
8936 DW_OP_stack_value to get address of items that are not available
8937 as addresses.
8938 (dw_loc_list): Handle single element lists correctly.
8939
8940 2009-09-20 Kai Tietz <kai.tietz@onevision.com>
8941 Pascal Obry <obry@adacore.com>
8942
8943 * unwind-dw2-fde.c (classify_object_over_fdes):
8944 Cast the constant 1 to _Unwind_Ptr.
8945 (add_fdes): Likewise.
8946 (linear_search_fdes): Likewise.
8947
8948 2009-09-20 Eric Botcazou <ebotcazou@adacore.com>
8949
8950 * stor-layout.c (set_sizetype): Avoid useless type copy.
8951
8952 2009-09-20 Richard Sandiford <rdsandiford@googlemail.com>
8953
8954 * configure.ac (gcc_cv_ld_mips_personality_relaxation): New
8955 feature check.
8956 (HAVE_LD_PERSONALITY_RELAXATION): New macro definition.
8957 * configure, config.in: Regenerate.
8958 * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect |
8959 DW_EH_PE_absptr.
8960 * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro.
8961 (ASM_PREFERRED_EH_DATA_FORMAT): Define. Use MIPS_EH_INDIRECT
8962 for global data if the output could be used in a shared library.
8963 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
8964 to 0 if TARGET_WRITABLE_EH_FRAME.
8965
8966 2009-09-20 Paolo Bonzini <bonzini@gnu.org>
8967
8968 PR rtl-optimization/39886
8969 * combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU
8970 just when insn is equal to BB_END (bb).
8971
8972 2009-09-19 Adam Nemet <anemet@caviumnetworks.com>
8973
8974 * config/mips/mips.opt (mrelax-pic-calls): New option.
8975 * config/mips/mips.c (mips_strip_unspec_address): Move it up in
8976 the file.
8977 (mips_unspec_call): Change "unspec_call" expander into this.
8978 (mips_strip_unspec_call): New function.
8979 (mips_got_load): Call mips_unspec_call instead of
8980 gen_unspec_call<mode>.
8981 (mips16_build_call_stub): Fix comment for fp_code. Adjust call to
8982 MIPS_CALL.
8983 (mips_cfg_in_reorg): New function.
8984 (mips16_lay_out_constants): Use it to decide whether to call
8985 CFG-aware insn splitting.
8986 (r10k_insert_cache_barriers): Move CFG set-up code from here to
8987 mips_reorg. Move DF set-up code from here ...
8988 (mips_df_reorg): ... to here. Call r10k_insert_cache_barriers
8989 from here.
8990 (mips_reorg): Call mips_df_reorg instead of
8991 r10k_insert_cache_barriers. Move CFG set-up code here from
8992 r10k_insert_cache_barriers.
8993 (mips_call_expr_from_insn): New function.
8994 (mips_pic_call_symbol_from_set): Likewise.
8995 (mips_find_pic_call_symbol): Likewise.
8996 (mips_annotate_pic_call_expr): Likewise.
8997 (mips_get_pic_call_symbol): Likewise.
8998 (mips_annotate_pic_calls): Likewise.
8999 (mips_override_options): Disable -mrelax-pic-calls unless PIC
9000 calls are used.
9001 (mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16.
9002 * config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it.
9003 * config/mips/mips.h (MIPS_CALL): Use it to print the .reloc
9004 directive.
9005 * config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec.
9006 (unspec_call<mode>): Remove it.
9007 (sibcall_internal, sibcall_value_internal,
9008 sibcall_value_multiple_internal, call_internal, call_split,
9009 call_value_internal, call_value_split,
9010 call_value_multiple_internal, call_value_multiple_split): Pass
9011 SIZE_OPNO to MIPS_CALL.
9012 (call_internal_direct, call_direct_split,
9013 call_value_internal_direct, call_value_direct_split): Pass -1 as
9014 SIZE_OPNO to MIPS_CALL.
9015 * configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR.
9016 * configure: Regenerate.
9017 * doc/invoke.texi (Option Summary): Add -mrelax-pic-calls
9018 and -mno-relax-pic-calls.
9019 (MIPS Options): Document -mrelax-pic-calls and -mno-relax-pic-calls.
9020
9021 2009-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9022
9023 PR bootstrap/35619
9024 * Makefile.in (stmp-fixinc): Ensure `include-fixed' is created
9025 in the directory this rule is called from, rather than the
9026 toplevel 'gcc' directory, to fix in-tree build.
9027
9028 2009-09-19 Chris Demetriou <cgd@google.com>
9029
9030 PR preprocessor/28435:
9031 * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
9032 to cpplib that the preprocessor output is needed.
9033
9034 2009-09-19 Jakub Jelinek <jakub@redhat.com>
9035
9036 * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>,
9037 *restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>,
9038 *return_and_restore_fpregs_<mode>,
9039 *return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier.
9040
9041 PR bootstrap/41397
9042 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse
9043 instead of assuming it has always a REG inside of it.
9044
9045 2009-09-18 Gerald Pfeifer <gerald@pfeifer.com>
9046
9047 * config/freebsd.h: Update comment on types.
9048 (WINT_TYPE): Define.
9049
9050 2009-09-18 Jason Merrill <jason@redhat.com>
9051
9052 * c.opt: Add -fno-deduce-init-list.
9053
9054 2009-09-18 Neil Vachharajani <nvachhar@google.com>
9055
9056 * value-prof.c (interesting_stringop_to_profile_p): Added output
9057 argument to indicate which parameter is the size parameter.
9058 * value-prof.c (gimple_stringop_fixed_value): Use
9059 INTERESTING_STRINGOP_TO_PROFILE_P to find size argument.
9060 * value-prof.c (gimple_stringops_transform): Update call sites to
9061 INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change.
9062
9063 2009-09-18 Uros Bizjak <ubizjak@gmail.com>
9064
9065 PR target/38288
9066 From David Binderman <dcb314@hotmail.com>:
9067 * gcc/config/i386/i386.c (ix86_function_regparm): Remove useless
9068 local variable f. Remove stale comments.
9069 (ix86_compute_frame_layout): Remove useless local variable total_size.
9070 Remove #if 0'd code.
9071 (legitimate_address_p): Remove useless local variables
9072 reason_rtx and reason.
9073 (ix86_split_copysign_const): Remove useless local variable op1.
9074 (scale_counter): Remove useless local variable piece_size_mask.
9075
9076 2009-09-18 Jakub Jelinek <jakub@redhat.com>
9077
9078 * stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
9079 output decl.
9080
9081 2009-09-17 Michael Haubenwallner <michael.haubenwallner@salomon.at>
9082
9083 PR target/40913
9084 * config/pa/t-hpux-shlib: Set soname in libgcc_s.sl.
9085
9086 2009-09-17 Jakub Jelinek <jakub@redhat.com>
9087
9088 * c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of
9089 TYPE_STUB_DECL.
9090
9091 2009-09-17 Alexandre Oliva <aoliva@redhat.com>
9092
9093 * dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and
9094 DW_OP_implicit_value even without dwarf_version 4.
9095
9096 2009-09-17 Jan Hubicka <jh@suse.cz>
9097
9098 * dwarf2out.c: Include tree-pass.h and gimple.h.
9099 (loc_list_plus_const): New function.
9100 (loc_descriptor_from_tree_1): Rename to ...
9101 (loc_descriptor_from_tree): ... remove original.
9102 (loc_list_from_tree): New function.
9103 (add_AT_location_description): Accept location list.
9104 (tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree.
9105 (concatn_mem_loc_descriptor): Remove.
9106 (mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by
9107 returning NULL.
9108 (secname_for_decl): Move up.
9109 (hidden_reference_p): New function; break out from ...
9110 (loc_by_refernece): ... here; move up.
9111 (dw_loc_list): New function.
9112 (single_element_loc_list): New function.
9113 (single_element_loc_list_p): New function.
9114 (add_loc_descr_to_each): New function.
9115 (add_loc_list): New function.
9116 (loc_descr_from_tree): Make wraper of loc_list_from_tree.
9117 (loc_list_from_tree): Reroganized from loc_descr_from_tree;
9118 add diagnostics why expansion failed.
9119 (add_location_or_const_value_attribute): Support location lists.
9120 (add_bound_info): Likewise.
9121 (descr_info_loc): Update call of loc_descriptor_from_tree.
9122 (gen_variable_die): Work on location lists.
9123 * final.c (pass_final): Add dump file.
9124 * Makefile.in (dwarf2out.o): Add new dependencies.
9125
9126 2009-09-17 Janis Johnson <janis187@us.ibm.com>
9127
9128 PR c/41049
9129 * real.c decimal_from_integer, decimal_integer_string): New.
9130 (real_from_integer): Use them as special case for decimal float.
9131 * config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding.
9132 (_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td):
9133 Do not append zero after the decimal point in string to convert.
9134
9135 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
9136
9137 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
9138 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
9139
9140 2009-09-17 Martin Jambor <mjambor@suse.cz>
9141
9142 * common.opt (fipa-sra): New switch.
9143 * opts.c (decode_options): Turn flag_ipa_sra on for opt2.
9144 * timevar.def (TV_IPA_SRA): New timevar.
9145 * params.def (ipa-sra-ptr-growth-factor): New parameter.
9146 * doc/invoke.texi: Document -fipa-sra and ipa-sra-ptr-growth-factor.
9147 * tree-sra.c: Include cgraph.c.
9148 (enum sra_mode): Added SRA_MODE_EARLY_IPA.
9149 (struct access): Added fields stmt, grp_maybe_modified, grp_scalar_ptr
9150 and grp_not_necessarilly_dereferenced.
9151 (func_param_count): New variable.
9152 (encountered_apply_args): New variable.
9153 (bb_dereferences): New variable.
9154 (final_bbs): New variable.
9155 (no_accesses_representant): New variable.
9156 (no_accesses_p): New function.
9157 (dump_access): Dump the new fields.
9158 (sra_initialize): Set encountered_apply_args to false.
9159 (get_ssa_base_param): New function.
9160 (mark_parm_dereference): New function.
9161 (create_access): Caring for INIDRECT_REFs and different handling of
9162 varialble length accesses in early IPA SRA. Store the stmt - a new
9163 parameter - to the new access.
9164 (build_access_from_expr_1): New parameter stmt, passed to
9165 create_access. Handle INDIRECT_REFs.
9166 (build_access_from_expr): Pass the current statement to
9167 build_access_from_expr_1.
9168 (disqualify_ops_if_throwing_stmt): Trigger only in intraprocedural
9169 passes.
9170 (build_accesses_from_assign): Pass the current statement to
9171 build_access_from_expr_1. Do not create assign links in IPA-SRA.
9172 (scan_function): Call handle_ssa_defs on phi nodes. Set bits in
9173 final_bbs when necessary. Check for calls to __builtin_apply_args.
9174 Fixup EH info if anythng was changed.
9175 (is_unused_scalar_param): New function.
9176 (ptr_parm_has_direct_uses): New function.
9177 (find_param_candidates): New function.
9178 (mark_maybe_modified): New function.
9179 (analyze_modified_params): New function.
9180 (propagate_dereference_distances): New function.
9181 (dump_dereferences_table): New function.
9182 (analyze_caller_dereference_legality): New function.
9183 (unmodified_by_ref_scalar_representative): New function.
9184 (splice_param_accesses): New function.
9185 (decide_one_param_reduction): New function.
9186 (enum ipa_splicing_result): New type.
9187 (splice_all_param_accesses): New function.
9188 (get_param_index): New function.
9189 (turn_representatives_into_adjustments): New function.
9190 (analyze_all_param_acesses): New function.
9191 (get_replaced_param_substitute): New function.
9192 (get_adjustment_for_base): New function.
9193 (replace_removed_params_ssa_names): New function.
9194 (sra_ipa_reset_debug_stmts): New function.
9195 (sra_ipa_modify_expr): New function.
9196 (sra_ipa_modify_assign): New function.
9197 (convert_callers): New function.
9198 (modify_function): New function.
9199 (ipa_sra_preliminary_function_checks): New function.
9200 (ipa_early_sra): New function.
9201 (ipa_early_sra_gate): New function.
9202 (pass_early_ipa_sra): New variable.
9203 * Makefile.in (tree-sra.o): Add cgraph.h to dependencies.
9204
9205 2009-09-17 Michael Matz <matz@suse.de>
9206
9207 PR middle-end/41347
9208 * tree.c (build_type_attribute_qual_variant): Export.
9209 * tree.h (build_type_attribute_qual_variant): Declare.
9210 * tree-inline.c (remap_type_1): Use it to build variants with
9211 the original qualifiers and attributes.
9212
9213 2009-09-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9214
9215 * cfglayout.c (fixup_reorder_chain): Accept conditional jumps
9216 without a fallthrough edge.
9217
9218 2009-09-16 DJ Delorie <dj@redhat.com>
9219
9220 * config/m32c/m32c.c (m32c_emit_epilogue): Check for R8C or M16C
9221 chip and ignore the "fast_interrupt" attribute if so.
9222
9223 2009-09-16 Richard Henderson <rth@redhat.com>
9224
9225 PR middle-end/41360
9226 * cfgbuild.c (find_bb_boundaries): Really re-instate 2009-09-02
9227 barrier fix.
9228
9229 2009-09-16 Richard Henderson <rth@redhat.com>
9230
9231 PR target/41246
9232 * tree-cfg.c (verify_gimple_call): Validate that gimple_call_chain
9233 is set only if DECL_NO_STATIC_CHAIN is unset.
9234 * tree-nested.c (iter_nestinfo_start, iter_nestinfo_next): New.
9235 (FOR_EACH_NEST_INFO): New.
9236 (walk_all_functions): Use it.
9237 (finalize_nesting_tree): Likewise.
9238 (unnest_nesting_tree): Likewise.
9239 (free_nesting_tree): Use iter_nestinfo_start, iter_nestinfo_next.
9240 (get_chain_decl, get_chain_field): Reset DECL_NO_STATIC_CHAIN.
9241 (convert_gimple_call): Early out if gimple_call_chain already set.
9242 (convert_all_function_calls): Iterate until no new functions
9243 require a static chain.
9244 (finalize_nesting_tree_1): Assert DECL_NO_STATIC_CHAIN is unset
9245 when building a trampoline. Use dump_function_to_file instead
9246 of dump_function.
9247 (lower_nested_functions): Open dump_file. Validate that decls
9248 that have DECL_NO_STATIC_CHAIN from the front end don't have that
9249 bit reset by this pass.
9250
9251 2009-09-16 Michael Matz <matz@suse.de>
9252
9253 PR fortran/41212
9254 * tree.h (struct tree_decl_common): Add decl_restricted_flag,
9255 shorten decl_common_unused.
9256 (DECL_RESTRICTED_P): New accessor.
9257 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use it
9258 to disambiguate marked decls and restrict pointers.
9259
9260 2009-09-16 Richard Henderson <rth@redhat.com>
9261
9262 PR middle-end/41360
9263 * cfgbuild.c (find_bb_boundaries): Re-instate 2009-09-02 barrier fix.
9264
9265 2009-09-16 Jakub Jelinek <jakub@redhat.com>
9266
9267 * integrate.c (set_block_abstract_flags): Call
9268 set_decl_abstract_flags also on BLOCK_NONLOCALIZED_VARs.
9269
9270 2009-09-16 Richard Guenther <rguenther@suse.de>
9271
9272 PR middle-end/34011
9273 * tree-flow-inline.h (may_be_aliased): Compute readonly variables
9274 as non-aliased.
9275
9276 2009-09-16 DJ Delorie <dj@redhat.com>
9277 Kaz Kojima <kkojima@gcc.gnu.org>
9278
9279 * config/sh/sh.c (output_stack_adjust): Add new argument frame_p.
9280 (sh_expand_prologue): Update calls to output_stack_adjust.
9281 (sh_expand_epilogue): Likewise.
9282
9283 2009-09-15 Adam Nemet <anemet@caviumnetworks.com>
9284
9285 PR bootstrap/41349
9286 * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when
9287 trying to limit the extent of searches in the insn stream.
9288
9289 2009-09-15 Nathan Froyd <froydnj@codesourcery.com>
9290 Jakub Jelinek <jakub@redhat.com>
9291
9292 PR target/41175
9293 PR target/40677
9294 * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
9295 problem.
9296 (SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
9297 SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): New strategy bits.
9298 (rs6000_savres_strategy): Always save FP registers inline if the
9299 target doesn't support hardware double-precision. Set the above
9300 bits in return value when needed.
9301 (rs6000_savres_routine_sym): Fix computation for cache selector.
9302 Mark the generated symbol as a function. Rename exitp argument to
9303 lr. Move code for determining the name of the symbol...
9304 (rs6000_savres_routine_name): ...here. New function. Add cases for
9305 getting the names right on AIX and 64-bit Linux.
9306 (savres_routine_name): New variable.
9307 (rs6000_make_savres_rtx): Rename exitp argument to lr. Don't assert
9308 lr isn't set when savep. Use r12 resp. r1 instead of r11 depending
9309 on what the target routine uses as a base register. If savep && lr
9310 describe saving of r0 into memory slot.
9311 (rs6000_emit_prologue): Correct use of call_used_regs. Fix out of
9312 line calls for AIX ABI.
9313 (rs6000_output_function_prologue): Use rs6000_savres_routine_name to
9314 determine FP save/restore functions.
9315 (rs6000_emit_stack_reset): Handle savres if sp_offset != 0 and
9316 frame_reg_rtx != sp_reg_rtx. Use gen_add3_insn instead of
9317 gen_addsi3.
9318 (rs6000_emit_epilogue): Adjust computation of restore_lr.
9319 Duplicate restoration of LR and execute the appropriate one
9320 depending on whether GPRs are being restored inline. Set r11 from
9321 offsetted frame_reg_rtx instead of sp_reg_rtx; if frame_reg_rtx is
9322 r11, adjust sp_offset. Use gen_add3_insn instead of gen_addsi3.
9323 Fix out of line calls for AIX ABI.
9324 * config/rs6000/rs6000.md (*return_and_restore_fpregs_aix_<mode>):
9325 New insn.
9326 * config/rs6000/spe.md (*save_gpregs_spe): Use explicit match for
9327 register 11.
9328 (*restore_gpregs_spe): Likewise.
9329 (*return_and_restore_gpregs_spe): Likewise.
9330 * config/rs6000/linux64.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
9331 Define to empty string unconditionally.
9332 * config/rs6000/sysv4.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
9333 Define to empty string unconditionally.
9334 (GP_SAVE_INLINE, FP_SAVE_INLINE): Handle TARGET_64BIT the same as
9335 !TARGET_64BIT.
9336
9337 2009-09-15 Jan Hubicka <jh@suse.cz>
9338
9339 * doc/invoke.texi (inline-insns-auto): Drop from 60 to 50.
9340 * params.def (inline-insns-auto): Likewise.
9341
9342 2009-09-15 Martin Jambor <mjambor@suse.cz>
9343
9344 * ipa-inline.c (estimate_function_body_sizes): Dump info about
9345 individual statements only at TDF_DETAILS dump level. Format
9346 source for 80 characters per line.
9347
9348 2009-09-15 Christian Bruel <christian.bruel@st.com>
9349
9350 * regrename.c (do_replace): Update REG_DEAD notes.
9351
9352 2009-09-15 Revital Eres <eres@il.ibm.com>
9353
9354 * doc/tm.texi (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Document.
9355 * targhooks.c (default_builtin_support_vector_misalignment):
9356 New builtin function.
9357 * targhooks.h (default_builtin_support_vector_misalignment):
9358 Declare.
9359 * target.h (builtin_support_vector_misalignment):
9360 New field in struct gcc_target.
9361 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Call
9362 new builtin function.
9363 * target-def.h (TARGET_SUPPORT_VECTOR_MISALIGNMENT):
9364 Define.
9365 * config/rs6000/rs6000.c
9366 (rs6000_builtin_support_vector_misalignment): New function.
9367 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Define.
9368
9369 2009-09-15 Jie Zhang <jie.zhang@analog.com>
9370
9371 * config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P
9372 instead of INSN_P.
9373 (bfin_optimize_loop): Likewise.
9374 (bfin_gen_bundles): Likewise.
9375 (workaround_speculation): Likewise.
9376 (find_load): Return NULL_RTX for debug_insn.
9377
9378 2009-09-15 Uros Bizjak <ubizjak@gmail.com>
9379
9380 * config/alpha/alpha.md (smaxsf3): Disable for IEEE mode.
9381 (sminsf3): Ditto.
9382
9383 2009-09-14 DJ Delorie <dj@redhat.com>
9384
9385 * config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
9386 * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in
9387 VLIW mode.
9388
9389 2009-09-14 Richard Henderson <rth@redhat.com>
9390 Jakub Jelinek <jakub@redhat.com>
9391
9392 * builtins.c (expand_builtin_synchronize): Use gimple_build_asm_vec.
9393 * cfgbuild.c (make_edges): Handle asm goto.
9394 * cfglayout.c (fixup_reorder_chain): Likewise.
9395 * cfgrtl.c (patch_jump_insn): Likewise.
9396 * gimple-pretty-print.c (dump_gimple_asm): Likewise.
9397 * gimple.c (gimple_build_asm_1): Add and use nlabels parameter.
9398 (gimple_build_asm_vec): Add and use labels parameter.
9399 (gimple_build_asm): Remove.
9400 (walk_gimple_asm): Walk labels too.
9401 * gimple.def (GIMPLE_ASM): Update docs.
9402 * gimple.h: Update decls.
9403 (struct gimple_statement_asm): Change nc to use unsigned char;
9404 add nl member.
9405 (gimple_asm_nlabels): New.
9406 (gimple_asm_label_op, gimple_asm_set_label_op): New.
9407 * gimplify.c (gimplify_asm_expr): Copy labels from ASM_EXPR
9408 into gimple_build_asm_vec.
9409 * jump.c (mark_jump_label_asm): New.
9410 (mark_jump_label): Use it.
9411 (redirect_jump_1): Handle asm goto.
9412 (invert_jump_1): Soft fail if X is null.
9413 * recog.c (extract_asm_operands): New.
9414 (asm_noperands): Use it; handle asm labels.
9415 (decode_asm_operands): Use extract_asm_operands.
9416 (asm_operand_ok): Properly handle empty string.
9417 * reg-stack.c (get_asm_operands_in_out): Rename from
9418 get_asm_operand_n_inputs; use extract_asm_operands; return both
9419 inputs and outputs by reference; update all callers.
9420 * rtl.def (ASM_OPERANDS): Add label vector as operand 6.
9421 * rtl.h (ASM_OPERANDS_LABEL_VEC): New.
9422 (ASM_OPERANDS_LABEL_LENGTH, ASM_OPERANDS_LABEL): New.
9423 (ASM_OPERANDS_SOURCE_LOCATION): Renumber.
9424 (extract_asm_operands): Declare.
9425 * stmt.c (expand_asm_operands): Add and use labels parameter.
9426 (check_unique_operand_names): Likewise.
9427 (resolve_asm_operand_names, resolve_operand_name_1): Likewise.
9428 (expand_asm_stmt): Handle asm labels.
9429 * tree-cfg.c (make_gimple_asm_edges): New.
9430 (make_edges): Use it.
9431 (cleanup_dead_labels): Handle asm labels.
9432 (is_ctrl_altering_stmt): Likewise.
9433 (gimple_redirect_edge_and_branch): Likewise.
9434 * tree.def (ASM_EXPR): Add 5th operand.
9435 * tree.h (ASM_LABELS): New.
9436 (resolve_asm_operand_names): Update decl.
9437
9438 * c-parser.c (c_parser_asm_statement): Parse asm goto.
9439 (c_parser_asm_goto_operands): New.
9440 * c-tree.h (build_asm_expr): Update decl.
9441 * c-typeck.c (build_asm_expr): Add and use labels parameter.
9442 * doc/extend.texi: Document asm goto.
9443
9444 2009-09-14 Richard Henderson <rth@redhat.com>
9445
9446 * except.h: Update declarations.
9447 (struct pointer_map_t): Forward declare.
9448 (ERT_UNKNOWN, ERT_THROW, ERT_CATCH): Remove.
9449 (struct eh_landing_pad_d, eh_landing_pad): New.
9450 (struct eh_catch_d, eh_catch): New.
9451 (struct eh_region_d): Remove next_region_sharing_label, aka,
9452 label, tree_label, landing_pad, post_landing_pad, resume,
9453 may_contain_throw. Rename region_number to index. Remove
9454 u.eh_catch, u.eh_throw. Rename u.eh_try.eh_catch to first_catch.
9455 Add u.must_not_throw, landing_pads, exc_ptr_reg, filter_reg.
9456 (VEC(eh_landing_pad,gc)): New.
9457 (struct eh_status): Remove last_region_number. Add lp_array,
9458 throw_stmt_table, ttype_data, ehspec_data.
9459 (ehr_next, FOR_ALL_EH_REGION_AT): New.
9460 (FOR_ALL_EH_REGION_FN, FOR_ALL_EH_REGION): New.
9461 * except.c (lang_protect_cleanup_actions): Return tree.
9462 (struct ehl_map_entry): Remove.
9463 (init_eh_for_function): Push zero entries for region and lp_array.
9464 (gen_eh_region): Add to region_array immediately.
9465 (gen_eh_region_catch): Operate on eh_catch objects.
9466 (gen_eh_landing_pad): New.
9467 (get_eh_region_may_contain_throw, get_eh_region_tree_label): Remove.
9468 (get_eh_region_no_tree_label, set_eh_region_tree_label): Remove.
9469 (get_eh_region_from_number, get_eh_region_from_number_fn): New.
9470 (get_eh_landing_pad_from_number_fn): New.
9471 (get_eh_landing_pad_from_number): New.
9472 (get_eh_region_from_lp_number_fn): New.
9473 (get_eh_region_from_lp_number): New.
9474 (expand_resx_stmt, note_eh_region_may_contain_throw): Remove.
9475 (get_exception_pointer, get_exception_filter): Remove.
9476 (collect_eh_region_array, can_be_reached_by_runtime): Remove.
9477 (current_function_has_exception_handlers): Simplify.
9478 (bring_to_root, eh_region_replaceable_by_p): Remove.
9479 (replace_region, hash_type_list, hash_eh_region): Remove.
9480 (eh_regions_equal_p, merge_peers, remove_unreachable_regions): Remove.
9481 (label_to_region_map, num_eh_regions): Remove.
9482 (get_next_region_sharing_label, must_not_throw_labels): Remove.
9483 (find_exception_handler_labels): Remove.
9484 (duplicate_eh_regions_0, find_prev_try): Remove.
9485 (struct duplicate_eh_regions_data): New.
9486 (duplicate_eh_regions_1): Rewrite.
9487 (duplicate_eh_regions): Return a pointer map instead of an
9488 integer offset.
9489 (copy_eh_region_1, copy_eh_region, push_reachable_handler): Remove.
9490 (redirect_eh_edge_to_label): Remove.
9491 (eh_region_outermost): Rewrite using eh_region pointers
9492 instead of integers.
9493 (add_ttypes_entry): Update for ttype_data move to eh_status.
9494 (add_ehspec_entry): Rewrite with VEC instead of varray.
9495 (assign_filter_values): Likewise. Export.
9496 (build_post_landing_pads, connect_post_landing_pads): Remove.
9497 (dw2_build_landing_pads): Rewrite to use lp_array.
9498 (struct sjlj_lp_info, sjlj_find_directly_reachable_regions): Remove.
9499 (sjlj_assign_call_site_values): Rewrite to use lp_array.
9500 (sjlj_emit_dispatch_table, sjlj_build_landing_pads): Likewise.
9501 (sjlj_mark_call_sites): Update for landing pad numbers.
9502 (finish_eh_generation): Rewrite.
9503 (gate_handle_eh): Do nothing for no eh tree.
9504 (pass_rtl_eh): Move up near finish_eh_generation.
9505 (remove_eh_landing_pad): New.
9506 (remove_eh_handler): Export.
9507 (remove_eh_region, remove_eh_handler_and_replace): Remove.
9508 (for_each_eh_label): Rewrite to use lp_array.
9509 (make_reg_eh_region_note): New.
9510 (make_reg_eh_region_note_nothrow_nononlocal): New.
9511 (insn_could_throw_p): New.
9512 (copy_reg_eh_region_note_forward): New.
9513 (copy_reg_eh_region_note_backward): New.
9514 (check_handled, add_reachable_handler): Remove.
9515 (reachable_next_level, foreach_reachable_handler): Remove.
9516 (arh_to_landing_pad, arh_to_label, reachable_handlers): Remove.
9517 (get_eh_region_and_lp_from_rtx): New.
9518 (get_eh_region_from_rtx): New.
9519 (can_throw_internal_1, can_throw_external_1): Remove.
9520 (can_throw_internal): Use get_eh_region_from_rtx.
9521 (can_throw_external): Use get_eh_region_and_lp_from_rtx.
9522 (insn_nothrow_p, can_nonlocal_goto): New.
9523 (expand_builtin_eh_common, expand_builtin_eh_pointer): New.
9524 (expand_builtin_eh_filter, expand_builtin_eh_copy_values): New.
9525 (add_action_record): Use VEC not varray.
9526 (collect_one_action_chain): Update for eh_region changes.
9527 (convert_to_eh_region_ranges): Make static. Use VEC not varray.
9528 Use get_eh_region_and_lp_from_rtx.
9529 (gate_convert_to_eh_region_ranges): New.
9530 (pass_convert_to_eh_region_ranges): Use it.
9531 (push_uleb128, push_sleb128): Use VEC not varray.
9532 (output_one_function_exception_table): Likewise.
9533 (dump_eh_tree): Update for eh_region changes.
9534 (verify_eh_tree): Likewise.
9535 (verify_eh_region, default_init_unwind_resume_libfunc): Remove.
9536 * tree-eh.c: Include target.h.
9537 (add_stmt_to_eh_lp_fn): Rename from add_stmt_to_eh_region_fn.
9538 Don't disallow GIMPLE_RESX; adjust argument check.
9539 (add_stmt_to_eh_lp): Rename from add_stmt_to_eh_region.
9540 (record_stmt_eh_region): Update for landing pad numbers;
9541 generate a landing pad if necessary.
9542 (remove_stmt_from_eh_lp): Rename from remove_stmt_from_eh_region.
9543 (remove_stmt_from_eh_lp_fn): Similarly.
9544 (lookup_stmt_eh_lp_fn): Rename from lookup_stmt_eh_region_fn.
9545 Update for lp numbers; don't special case missing throw_stmt_table.
9546 (lookup_expr_eh_lp): Similarly.
9547 (lookup_stmt_eh_lp): Rename from lookup_stmt_eh_region.
9548 (eh_seq, eh_region_may_contain_throw): New.
9549 (struct leh_state): Add ehp_region.
9550 (struct leh_tf_state): Remove eh_label.
9551 (emit_post_landing_pad): New.
9552 (emit_resx, emit_eh_dispatch): New.
9553 (note_eh_region_may_contain_throw): New.
9554 (frob_into_branch_around): Take eh_region not eh label;
9555 emit eh code into eh_seq.
9556 (honor_protect_cleanup_actions): Early exit for no actions. Don't
9557 handle EXC_PTR_EXPR, FILTER_EXPR. Use gimple_build_eh_must_not_throw,
9558 lower_eh_must_not_throw. Emit code to eh_seq.
9559 (lower_try_finally_nofallthru): Emit eh code to eh_seq.
9560 (lower_try_finally_onedest): Likewise.
9561 (lower_try_finally_copy): Likewise.
9562 (lower_try_finally_switch): Likewise.
9563 (lower_try_finally): Initialize ehp_region.
9564 (lower_catch): Update for eh_catch objects.
9565 (lower_eh_filter): Don't handle must_not_throw.
9566 (lower_eh_must_not_throw): New.
9567 (lower_cleanup): Don't set eh_label.
9568 (lower_eh_constructs_2): Resolve eh builtins.
9569 Handle GIMPLE_EH_MUST_NOT_THROW.
9570 (lower_eh_constructs): Initialize eh_region_may_contain_throw.
9571 Add eh_seq to the end of the function body.
9572 (make_eh_dispatch_edges): New.
9573 (make_eh_edge): Remove.
9574 (make_eh_edges): Simplify for landing pads.
9575 (redirect_eh_edge_1): New.
9576 (redirect_eh_edge): Use it.
9577 (redirect_eh_dispatch_edge): New.
9578 (stmt_could_throw_p): Use a switch. Allow RESX.
9579 (stmt_can_throw_external): Use lookup_stmt_eh_lp.
9580 (stmt_can_throw_internal): Likewise.
9581 (maybe_clean_eh_stmt_fn, maybe_clean_eh_stmt): New.
9582 (maybe_clean_or_replace_eh_stmt): Update for landing pads.
9583 (maybe_duplicate_eh_stmt_fn, maybe_duplicate_eh_stmt): New.
9584 (gate_refactor_eh): New.
9585 (pass_refactor_eh): Use it.
9586 (lower_resx, execute_lower_resx, pass_lower_resx): New.
9587 (lower_eh_dispatch, execute_lower_eh_dispatch): New.
9588 (gate_lower_ehcontrol, pass_lower_eh_dispatch): New.
9589 (remove_unreachable_handlers): Rename from
9590 tree_remove_unreachable_handlers; rewrite for landing pads;
9591 call remove_eh_handler directly.
9592 (remove_unreachable_handlers_no_lp): New.
9593 (unsplit_eh, unsplit_all_eh): New.
9594 (tree_empty_eh_handler_p, all_phis_safe_to_merge): Remove.
9595 (cleanup_empty_eh_merge_phis, cleanup_empty_eh_move_lp): New.
9596 (cleanup_empty_eh_unsplit): New.
9597 (cleanup_empty_eh): Rewrite.
9598 (cleanup_all_empty_eh): New.
9599 (execute_cleanup_eh): Rename from cleanup_eh. Remove unreachable
9600 handlers first. Use unsplit_all_eh, cleanup_all_empty_eh.
9601 (gate_cleanup_eh): New.
9602 (pass_cleanup_eh): Use it.
9603 (verify_eh_edges): Move later in file. Expect one EH edge.
9604 (verify_eh_dispatch_edge): New.
9605
9606 * Makefile.in (FUNCTION_H): Use vecprim.h, not varray.h.
9607 (gtype-desc.o): Add TARGET_H.
9608 (tree.o): Use EXCEPT_H, not except.h.
9609 (cfgbuild.o): Add EXPR_H.
9610 (GTFILES): Add vecprim.h.
9611 * builtins.c (expand_builtin): Handle BUILT_IN_EH_POINTER,
9612 BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES.
9613 * builtins.def (BUILT_IN_UNWIND_RESUME, BUILT_IN_EH_POINTER,
9614 BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES): New.
9615 * calls.c (emit_call_1): Use make_reg_eh_region_note.
9616 * cfgbuild.c (control_flow_insn_p): Use can_nonlocal_goto; tidy
9617 calls to can_throw_internal.
9618 (rtl_make_eh_edge): Use get_eh_landing_pad_from_rtx.
9619 (make_edges): Don't handle RESX; use can_nonlocal_goto.
9620 * cfgexpand.c (expand_gimple_stmt_1): Don't handle RESX.
9621 (expand_gimple_stmt): Use make_reg_eh_region_note.
9622 (expand_debug_expr): Don't handle EXC_PTR_EXPR and FILTER_EXPR.
9623 (gimple_expand_cfg): Don't call convert_from_eh_region_ranges,
9624 or find_exception_handler_labels.
9625 * cfgrtl.c (rtl_verify_flow_info_1): Don't handle RESX. Assert
9626 there is exacly one EH edge. Use can_nonlocal_goto and
9627 can_throw_internal.
9628 * cgraphunit.c (update_call_expr): Use maybe_clean_eh_stmt_fn.
9629 (cgraph_materialize_all_clones): Use maybe_clean_or_replace_eh_stmt.
9630 * combine.c (can_combine_p, try_combine): Use insn_nothrow_p.
9631 * cse.c (count_reg_usage, insn_live_p): Use insn_could_throw_p.
9632 * dce.c (deletable_insn_p_1): Don't test may_trap_p.
9633 (deletable_insn_p): Use insn_nothrow_p; reorder nonjump insn test.
9634 * dse.c (scan_insn): Use insn_could_throw_p.
9635 * emit-rtl.c (try_split): Use copy_reg_eh_region_note_backward.
9636 * expr.c (expand_expr_real): Use make_reg_eh_region_note.
9637 (expand_expr_real_1): Don't handle RESX, EXC_PTR, or FILTER_EXPR.
9638 * fold-const.c (tree_expr_nonnegative_warnv_p): Don't handle
9639 EXC_PTR_EXPR or FILTER_EXPR.
9640 (tree_expr_nonzero_warnv_p): Likewise.
9641 * function.h: Include vecprim.h, not varray.h
9642 (struct rtl_eh): Remove filter, exc_ptr, built_landing_pad members;
9643 move ttype_data and ehspec_data members to struct eh_status; change
9644 action_record_data member to a VEC.
9645 * gcse.c (hash_scan_set): Use can_throw_internal.
9646 * gengtype.c (open_base_files): Add target.h to gtype-desc.c.
9647 * gimple-iterator.c (gsi_replace): Use maybe_clean_or_replace_eh_stmt.
9648 * gimple-low.c (lower_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
9649 (block_may_fallthru): Don't handle RESX_EXPR.
9650 * gimple-pretty-print.c (dump_gimple_label): Dump EH_LANDING_PAD_NR.
9651 (dump_gimple_eh_must_not_throw, dump_gimple_eh_dispatch): New.
9652 (dump_gimple_stmt): Dump landing pad information with TDF_EH;
9653 handle GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH.
9654 * gimple.c (gss_for_code): Handle GIMPLE_EH_MUST_NOT_THROW,
9655 GIMPLE_EH_DISPATCH, GIMPLE_RESX.
9656 (gimple_size): Likewise.
9657 (gimple_build_eh_dispatch, gimple_build_eh_must_not_throw): New.
9658 (gimple_build_resx): Use gimple_build_with_ops.
9659 (DEFTREECODE): Don't handle EXC_PTR_EXPR, FILTER_EXPR.
9660 (is_gimple_val): Likewise.
9661 (is_gimple_stmt): Remove RESX_EXPR.
9662 * gimple.def (GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH): New.
9663 (GIMPLE_RESX): Reorder with other EH constructs.
9664 * gimple.h (struct gimple_statement_eh_mnt): New.
9665 (struct gimple_statement_eh_ctrl): Rename from gimple_statement_resx.
9666 (gimple_eh_filter_must_not_throw): Remove.
9667 (gimple_eh_filter_set_must_not_throw): Remove.
9668 (gimple_eh_must_not_throw_fndecl): New.
9669 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region): New.
9670 (is_gimple_resx): New.
9671 * gimplify.c (gimplify_expr): Don't handle EXC_PTR_EXPR, RESX_EXPR.
9672 Don't copy EH_FILTER_MUST_NOT_THROW.
9673 * gsstruct.def (GSS_EH_MNT, GSS_EHCONTROL): New.
9674 * ipa-inline.c (estimate_function_body_sizes): Don't try to
9675 handle must_not_throw_labels specially.
9676 * ipa-pure-const.c (check_call): Update debug statement for LP.
9677 * ipa-type-escape.c (check_operand): Don't handle EXC_PTR or FILTER.
9678 * ipa-utils.c (get_base_var): Likewise.
9679 * libfunc.h (LTI_unwind_resume, unwind_resume_libfunc): Remove.
9680 * lower-subreg.c (move_eh_region_note): Remove.
9681 (resolve_simple_move): Use copy_reg_eh_region_note_forward.
9682 * omp-low.c (new_omp_context): Update for eh_lp_nr.
9683 (create_task_copyfn): Likewise.
9684 (maybe_catch_exception): Use gimple_build_eh_filter.
9685 * optabs.c (emit_libcall_block): Update test for no-nonlocal-goto
9686 REG_EH_REGION. Use make_reg_eh_region_note_nothrow_nononlocal.
9687 * passes.c (init_optimization_passes): Add pass_lower_eh_dispatch
9688 and pass_lower_resx.
9689 * print-tree.c (print_node): Dump EH_LANDING_PAD_NR.
9690 * recog.c (peephole2_optimize): Use copy_reg_eh_region_note_backward,
9691 can_throw_internal, can_nonlocal_goto.
9692 * reload1.c (fixup_eh_region_note): Use insn_could_throw_p,
9693 copy_reg_eh_region_note_forward.
9694 (emit_input_reload_insns): Use copy_reg_eh_region_note_forward.
9695 (emit_output_reload_insns): Likewise.
9696 (copy_eh_notes): Remove.
9697 * rtl.def (RESX): Remove.
9698 * rtl.h: Update declarations.
9699 * sese.c (graphite_copy_stmts_from_block): Use maybe_duplicate_eh_stmt.
9700 * tree-cfg.c (make_edges): Handle GIMPLE_EH_DISPATCH.
9701 (update_eh_label): Remove.
9702 (cleanup_dead_labels_eh): New.
9703 (cleanup_deal_labels): Use it instead of update_eh_label.
9704 (gimple_merge_blocks): Update landing pad data structure when
9705 removing a landing pad label.
9706 (remove_useless_stmts_tc): Remove gimple_eh_filter_must_not_throw
9707 test; handle GIMPLE_EH_MUST_NOT_THROW.
9708 (is_ctrl_altering_stmt): Handle GIMPLE_EH_DISPATCH.
9709 (verify_gimple_assign_single): Don't handle EXC_PTR or FILTER_EXPR.
9710 (verify_types_in_gimple_stmt): Handle GIMPLE_EH_DISPATCH.
9711 (verify_stmt): Likewise. Verify landing pads.
9712 (gimple_redirect_edge_and_branch): Handle GIMPLE_EH_DISPATCH.
9713 (gimple_duplicate_bb): Use maybe_duplicate_eh_stmt.
9714 (struct move_stmt_d): Add eh_map.
9715 (move_stmt_eh_region_nr, move_stmt_eh_region_tree_nr): New.
9716 (move_stmt_r): Remap eh region numbers in builtin calls,
9717 resx and eh_dispatch.
9718 (move_block_to_fn): Remove eh_offset parameter. Use
9719 maybe_duplicate_eh_stmt_fn.
9720 (find_outermost_region_in_block): Operate on eh_region pointers
9721 instead of region numbers.
9722 (move_sese_region_to_fn): Expect eh_map instead of eh_offset from
9723 duplicate_eh_regions.
9724 * tree-cfgcleanup.c (tree_forwarder_block_p): Move entry block edge
9725 test earlier. Disallow EH landing pads.
9726 * tree-cfa.c (create_tree_common_ann): Don't set ann->rn.
9727 * tree-flow.h: Update declarations.
9728 (struct tree_ann_common_d): Replace rn with lp_nr.
9729 * tree-inline.c (copy_tree_body_r): Don't handle RESX_EXPR.
9730 (remap_eh_region_nr, remap_eh_region_tree_nr): New.
9731 (remap_gimple_stmt): Remap eh region numbers in builtin calls,
9732 resx and eh_dispatch.
9733 (copy_bb): Use maybe_duplicate_eh_stmt_fn.
9734 (copy_edges_for_bb): Use make_eh_dispatch_edges.
9735 (copy_cfg_body): Expect eh_map instead of eh_region_offset
9736 from duplicate_eh_regions.
9737 (estimate_num_insns): Don't handle EXC_PTR_EXPR or FILTER_EXPR;
9738 update RESX; handle EH_DISPATCH.
9739 (expand_call_inline): Set eh_lp_nr, not eh_region.
9740 (maybe_inline_call_in_expr): Likewise.
9741 * tree-inline.h (struct copy_body_data): Replace eh_region with
9742 eh_lp_nr, eh_region_offset with eh_map.
9743 * tree-optimize.c (execute_fixup_cfg): Use maybe_clean_eh_stmt.
9744 * tree-pass.h (pass_lower_eh_dispatch, pass_lower_resx): New.
9745 * tree-pretty-print.c (dump_generic_node): Don't handle
9746 EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR.
9747 * tree-sra.c (scan_function): Use maybe_clean_eh_stmt.
9748 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Don't handle
9749 EXC_PTR_EXPR, FILTER_EXPR.
9750 * tree-ssa-operands.c (get_expr_operands): Likewise.
9751 * tree-ssa-propagate.c (valid_gimple_rhs_p): Likewise.
9752 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
9753 (ao_ref_init_from_vn_reference): Likewise.
9754 * tree-ssa-sink.c (statement_sink_location): Likewise.
9755 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
9756 (mark_virtual_phi_result_for_renaming): Export. Tidy.
9757 * tree-ssa-pre.c (get_or_alloc_expr_for): Don't handle
9758 EXC_PTR_EXPR, FILTER_EXPR.
9759 (is_exception_related): Remove.
9760 (compute_avail): Don't call it.
9761 * tree-ssa-structalias.c: Remove VEC definitions for int and unsigned.
9762 * tree.c (find_decls_types_in_eh_region): Update for eh_region changes.
9763 (find_decls_types_in_node): Use FOR_ALL_EH_REGION_FN.
9764 (build_common_builtin_nodes): Add enable_cxa_end_cleanup parameter.
9765 Build EH builtins.
9766 (build_resx): Remove.
9767 * tree.def (EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR): Remove.
9768 * tree.h: Update declarations.
9769 (EH_FILTER_MUST_NOT_THROW): Remove.
9770 (struct tree_label_decl): Add eh_landing_pad_nr.
9771 (EH_LANDING_PAD_NR): New.
9772 * value-prof.c (gimple_ic): Tidy variable names. Update for
9773 landing pad numbers.
9774 (gimple_stringop_fixed_value): Tidy variable names. Assert
9775 that neither call stmt can throw.
9776 * vecprim.h (uchar): New.
9777 (VEC(uchar,heap), VEC(uchar,gc)): New.
9778
9779 * c-common.c (c_define_builtins): Update call to
9780 build_common_builtin_nodes.
9781 * c-parser.c (c_parse_file): Don't call
9782 default_init_unwind_resume_libfunc.
9783
9784 2009-09-14 Richard Sandiford <rdsandiford@googlemail.com>
9785
9786 * config/mips/mips-protos.h (mips_cfun_has_cprestore_slot_p): Declare.
9787 (mips_cprestore_address_p): Likewise.
9788 (mips_save_gp_to_cprestore_slot): Likewise.
9789 (mips_restore_gp): Rename to...
9790 (mips_restore_gp_from_cprestore_slot): ...this.
9791 (mips_must_initialize_gp_p): Declare.
9792 (mips_emit_save_slot_move): Likewise.
9793 (mips_output_load_label): Return nothing.
9794 (mips_eh_uses): Declare.
9795 * config/mips/mips.h (TARGET_SPLIT_CALLS): Require epilogue_completed.
9796 (TARGET_CPRESTORE_DIRECTIVE): New macro.
9797 (TARGET_ABSOLUTE_JUMPS): Likewise.
9798 (EH_USES): Likewise.
9799 (FIRST_PSEUDO_REGISTER): Update comment.
9800 (MIPS_ABSOLUTE_JUMP): New macro, extracted from...
9801 (MIPS_CALL): ...here.
9802 (REGISTER_NAMES): Add $cprestore.
9803 * config/mips/mips.c (machine_function): Remove has_gp_insn_p.
9804 Add load_label_length, has_inflexible_gp_insn_p,
9805 has_flexible_gp_insn_p, must_initialize_gp_p and
9806 must_restore_gp_when_clobbered_p.
9807 (mips_expand_call): Don't generate split instructions here.
9808 (mips_split_call): Update the call to mips_restore_gp after
9809 the above name change.
9810 (mips16_cfun_returns_in_fpr_p): Move earlier in file.
9811 (mips_find_gp_ref): New function.
9812 (mips_insn_has_inflexible_gp_ref_p): Likewise.
9813 (mips_cfun_has_inflexible_gp_ref_p): Likewise.
9814 (mips_insn_has_flexible_gp_ref_p): Likewise.
9815 (mips_cfun_has_flexible_gp_ref_p): Likewise.
9816 (mips_function_has_gp_insn): Delete.
9817 (mips_global_pointer): Drop the df_regs_ever_live_p check.
9818 Use the new functions above. Only return INVALID_REGNUM
9819 for TARGET_ABSOLUTE_JUMPS.
9820 (mips_must_initialize_gp_p): New function.
9821 (mips_get_cprestore_base_and_offset): New function, extracted from...
9822 (mips_cprestore_slot): ...here. Take a bool parameter.
9823 (mips_cfun_has_cprestore_slot_p): New function.
9824 (mips_cprestore_address_p): Likewise.
9825 (mips_save_gp_to_cprestore_slot): Likewise.
9826 (mips_restore_gp): Rename to...
9827 (mips_restore_gp_from_cprestore_slot): ...this. Assert
9828 epilogue_completed. Update the call to mips_cprestore_slot.
9829 Test cfun->machine->must_restore_gp_when_clobbered_p.
9830 (mips_direct_save_slot_move_p): New function.
9831 (mips_emit_save_slot_move): Likewise.
9832 (mips_output_cplocal): Test mips_must_initialize_gp_p () instead
9833 of cfun->machine->global_pointer.
9834 (mips_output_function_prologue): Check mips_must_initialize_gp_p ().
9835 (mips_save_reg): Use mips_emit_save_slot_move.
9836 (mips_expand_prologue): Set must_initialize_gp_p.
9837 Use mips_cfun_has_cprestore_slot_p. Use gen_potential_cprestore
9838 for all cprestore saves. Emit a use_cprestore instruction after
9839 setting up the cprestore slot.
9840 (mips_restore_reg): Use mips_emit_save_slot_move.
9841 (mips_process_load_label): New function.
9842 (mips_load_label_length): Likewise.
9843 (mips_output_load_label): Don't return asm: output it here instead.
9844 Use mips_process_load_label.
9845 (mips_adjust_insn_length): Adjust the length of branch instructions
9846 that have length MAX_PIC_BRANCH_LENGTH.
9847 (mips_output_conditional_branch): Update the call to
9848 mips_output_load_label. Assume the branch target is OPERANDS[0]
9849 rather than OPERANDS[1]. Use MIPS_ABSOLUTE_JUMP for absolute jumps.
9850 (mips_output_order_conditional_branch): Swap the meaning of
9851 OPERANDS[0] and OPERANDS[1].
9852 (mips_variable_issue): Don't count ghost instructions.
9853 (mips_expand_ghost_gp_insns): New function.
9854 (mips_reorg): Rerun mips_reorg_process_insns if it returns true.
9855 (mips_output_mi_thunk): Set must_initialize_gp_p.
9856 (mips_eh_uses): New function.
9857 * config/mips/predicates.md (cprestore_save_slot_operand)
9858 (cprestore_load_slot_operand): New predicates.
9859 * config/mips/mips.md (UNSPEC_POTENTIAL_CPRESTORE): New unspec.
9860 (UNSPEC_MOVE_GP): Likewise.
9861 (UNSPEC_CPRESTORE, UNSPEC_RESTORE_GP, UNSPEC_EH_RETURN)
9862 (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT): Bump to make room.
9863 (CPRESTORE_SLOT_REGNUM): New register.
9864 (MAX_PIC_BRANCH_LENGTH): New constant.
9865 (jal_macro): Use MIPS_ABSOLUTE_JUMPS.
9866 (length): Use MAX_PIC_BRANCH_LENGTH as a placeholder for PIC long
9867 branches. Fix commentary.
9868 (loadgp_newabi_<mode>): Change from unspec_volatile to unspec.
9869 Only split if mips_must_initialize_gp_p; expand to nothing otherwise.
9870 Change type to "ghost".
9871 (loadgp_absolute_<mode>): Likewise.
9872 (loadgp_rtp_<mode>): Likewise.
9873 (copygp_mips16): Likewise.
9874 (loadgp_blockage): Remove redundant mode attribute.
9875 (potential_cprestore): New instruction.
9876 (cprestore): Turn into an unspec set.
9877 (use_cprestore): New instruction.
9878 (*branch_fp): Swap operands 0 and 1. Remove redundant mode attribute.
9879 (*branch_fp_inverted): Likewise.
9880 (*branch_order<mode>): Likewise.
9881 (*branch_order<mode>_inverted): Likewise.
9882 (*branch_equality<mode>): Likewise.
9883 (*branch_equality<mode>_inverted): Likewise.
9884 (*branch_bit<bbv><mode>): Likewise.
9885 (*branch_bit<bbv><mode>_inverted): Likewise.
9886 (*branch_equality<mode>_mips16): Remove redundant mode.
9887 (jump): Turn into a define_expand.
9888 (*jump_absolute): New instruction.
9889 (*jump_pic): Likewise.
9890 (*jump_mips16): Rename previously-unnamed pattern. Remove
9891 redundant mode attribute.
9892 (restore_gp): Split on epilogue_completed rather than
9893 reload_completed. Change type to "ghost".
9894 (move_gp<mode>): New instruction.
9895 * config/mips/mips-dsp.md (mips_bposge): Swap operands 0 and 1.
9896 Remove redundant mode attribute.
9897 * config/mips/mips-ps-3d.md (bc1any4t): Likewise.
9898 (bc1any4f, bc1any2t, bc1any2f): Likewise.
9899 (*branch_upper_lower, *branch_upper_lower_inverted): Likewise.
9900
9901 2009-09-14 Michael Meissner <meissner@linux.vnet.ibm.com>
9902
9903 PR target/41210
9904 * config/rs6000/rs6000.c (rs6000_function_value): V2DF and V2DI
9905 are returned in the same register (vs34 or v2) that Altivec vector
9906 types are returned in.
9907 (rs6000_libcall_value): Ditto.
9908
9909 PR target/41331
9910 * config/rs6000/rs6000.c (rs6000_emit_move): Use gen_add3_insn
9911 instead of explicit addsi3/adddi3 calls.
9912 (rs6000_split_multireg_move): Ditto.
9913 (rs6000_emit_allocate_stack): Ditto.
9914 (rs6000_emit_prologue): Ditto.
9915 (rs6000_output_mi_thunk): Ditto.
9916
9917 * config/rs6000/rs6000.md (bswapdi*): Don't assume the pointer
9918 size is 64 bits if we can use 64-bit registers.
9919
9920 2009-09-14 Bernd Schmidt <bernd.schmidt@analog.com>
9921
9922 * config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak
9923 symbols.
9924
9925 From Jie Zhang <jie.zhang@analog.com>:
9926 * config/bfin/bfin.c (bfin_expand_prologue): Ask do_link to
9927 save FP and RETS with saveall attribute.
9928 (bfin_expand_epilogue): Ask do_unlink to restore FP and RETS
9929 with saveall attribute.
9930
9931 * config/bfin/bfin.c (bfin_expand_builtin,
9932 case BFIN_BUILTIN_MULT_1X32X32): Force constants to registers for the
9933 operands.
9934
9935 From Jie Zhang <jie.zhang@analog.com>:
9936 * config/bfin/bfin.c (bfin_expand_builtin): Initialize icodes
9937 before use in two places.
9938 * config/bfin/bfin.md (AREG): Define mode iterator.
9939 (reload_in, reload_out): Use mode iterator AREG.
9940
9941 2009-09-14 Richard Guenther <rguenther@suse.de>
9942
9943 PR middle-end/41350
9944 * dwarf2out.c (dwarf2out_begin_prologue): Adjust non-CFI asm
9945 EH personality path.
9946
9947 2009-09-13 Richard Guenther <rguenther@suse.de>
9948 Rafael Avila de Espindola <espindola@google.com>
9949
9950 * langhooks-def.h (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
9951 (LANG_HOOKS_EH_PERSONALITY): Likewise.
9952 (LANG_HOOKS_INITIALIZER): Adjust.
9953 (lhd_pass_through_t): Declare.
9954 * langhooks.h (struct lang_hooks): Add eh_runtime_type and
9955 eh_personality.
9956 * langhooks.c (lhd_pass_through_t): New function.
9957 * dwarf2out.c (output_call_frame_info, dwarf2out_do_cfi_startproc,
9958 dwarf2out_begin_prologue): Use personality from current_function_decl.
9959 * expr.h (get_personality_function): Declare.
9960 * expr.c (get_personality_function): New function.
9961 (build_personality_function): Likewise.
9962 * libfuncs.h (libfunc_index): Remove LTI_eh_personality.
9963 (eh_personality_libfunc): Remove.
9964 * optabs.c (build_libfunc_function): New function split out from ...
9965 (init_one_libfunc): ... here.
9966 * tree.h (DECL_FUNCTION_PERSONALITY): New.
9967 (tree_function_decl): Add personality.
9968 (lhd_gcc_personality): Declare.
9969 (build_personality_function): Likewise.
9970 * tree.c (gcc_eh_personality_decl): New.
9971 (lhd_gcc_personality): New function.
9972 * except.h (lang_eh_runtime_type): Remove.
9973 (enum eh_personality_kind): New.
9974 (build_personality_function): Declare.
9975 (function_needs_eh_personality): Declare.
9976 * except.c (lang_eh_runtime_type): Remove.
9977 (function_needs_eh_personality): New function.
9978 (add_type_for_runtime): Call lang_hooks.type_for_runtime instead.
9979 (sjlj_emit_function_enter, output_function_exception_table):
9980 Use personality from current_function_decl.
9981 * tree-eh.c (lower_eh_constructs): Set DECL_FUNCTION_PERSONALITY.
9982 * tree-inline.c (tree_can_inline_p): Do not inline across different
9983 EH personalities.
9984 (expand_call_inline): Likewise. Adjust the callers EH personality.
9985 (tree_function_versioning): Copy DECL_FUNCTION_PERSONALITY.
9986 * cgraph.c (cgraph_add_new_function): Set DECL_FUNCTION_PERSONALITY.
9987 * Makefile.in (cgraph.o): Add $(EXCEPT_H) dependency.
9988 (c-parser.o): Likewise
9989 * c-tree.h (c_eh_initialized_p): Remove.
9990 (c_maybe_initialize_eh): Likewise.
9991 * c-decl.c (finish_decl): Don't call c_maybe_initialize_eh.
9992 (finish_decl): Don't call c_maybe_initialize_eh.
9993 (c_eh_initialized_p): Remove.
9994 (c_maybe_initialize_eh): Likewise.
9995 * c-parser.c (c_parser_omp_construct): Likewise.
9996 (c_parse_file): Initialize exception handling.
9997
9998 2009-09-13 Kai Tietz <kai.tietz@onevision.com>
9999
10000 * config.gcc (tm_file): Remove i386/biarch32.h
10001 for i?86-w64-mingw* case.
10002 (i?86-*-mingw* andx86_64-*-mingw*): Add multilib
10003 support.
10004 * config.host: Set for x64 mingw the option
10005 use_long_long_for_widest_fast_int to yes.
10006
10007 2009-09-13 Eric Botcazou <ebotcazou@adacore.com>
10008
10009 * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
10010 * dbxout.c (dbxout_function_end): Do not test DECL_IGNORED_P.
10011 (dbxout_begin_function): Likewise.
10012 * final.c (dwarf2_debug_info_emitted_p): New predicate.
10013 (final_start_function): Do not emit debug info if DECL_IGNORED_P is
10014 set on the function.
10015 (final_end_function): Likewise.
10016 (final_scan_insn): Likewise.
10017 (rest_of_handle_final): Likewise.
10018 * varasm.c (assemble_start_function): Likewise.
10019 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
10020
10021 2009-09-12 Jason Merrill <jason@redhat.com>
10022
10023 * dbgcnt.c (dbg_cnt_process_single_pair): constify.
10024 * opts.c (common_handle_option): constify.
10025
10026 2009-09-12 Gerald Pfeifer <gerald@pfeifer.com>
10027
10028 * doc/install.texi (avr): Remove obsolete reference site.
10029
10030 2009-09-12 Gerald Pfeifer <gerald@pfeifer.com>
10031
10032 * doc/install.texi (Binaries): Adjust AIX link.
10033
10034 2009-09-12 Akim Demaille <demaille@gostai.com>
10035
10036 * doc/invoke.texi (-fstrict-aliasing): Correct two examples.
10037 Use an imperative sentence.
10038
10039 2009-09-11 Richard Henderson <rth@redhat.com>
10040
10041 * gsstruct.def (DEFGSSTRUCT): Remove printable-name argument; add
10042 structure-name and has-tree-operands arguments; update all entries.
10043 * gimple.def (DEFGSCODE): Replace 3rd argument with GSS_symbol;
10044 update all entries.
10045 * gimple.c (gimple_ops_offset_): Use HAS_TREE_OP argument.
10046 (gsstruct_code_size): New.
10047 (gss_for_code_): New.
10048 (gss_for_code): Remove.
10049 (gimple_size): Rewrite using gsstruct_code_size.
10050 (gimple_statement_structure): Move to gimple.h.
10051 * gimple.h (gimple_ops_offset_, gss_for_code_): Declare.
10052 (gss_for_code, gimple_statement_structure): New.
10053 (gimple_ops): Use new arrays; tidy.
10054
10055 2009-09-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10056
10057 * config/pa/predicates.md (symbolic_operand): Require a CONST symbolic
10058 operand to be a PLUS expression.
10059 * config/pa/pa.c (pa_secondary_reload): Likewise.
10060
10061 2009-09-11 Jakub Jelinek <jakub@redhat.com>
10062
10063 * combine.c (propagate_for_debug_subst): Call wrap_constant on top.
10064
10065 * print-rtl.c (print_rtx): Use JUMP_LABEL (in_rtx) instead of
10066 XEXP (in_rtx, 8).
10067
10068 2009-09-11 Bernd Schmidt <bernd.schmidt@analog.com>
10069
10070 From Jie Zhang <jie.zhang@analog.com>:
10071 * doc/extend.texi (node Function Attributes): Document l2
10072 function attribute.
10073 (node Blackfin Variable Attributes): Document l2 variable attributes.
10074
10075 2009-09-11 Loren J. Rittle <ljrittle@acm.org>
10076
10077 * config.gcc (*-*-freebsd*): Enable default_use_cxa_atexit
10078 to match the system compiler's configuration at inflection point.
10079 Add comment to remark a remaining difference with system compiler.
10080
10081 * configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.
10082 * configure: Regenerate.
10083
10084 2009-09-11 Bernd Schmidt <bernd.schmidt@analog.com>
10085
10086 From Jie Zhang <jie.zhang@analog.com>:
10087 * config/bfin/bfin.c (bfin_expand_call): Handle L2 functions.
10088 (bfin_handle_l2_attribute): New.
10089 (bfin_attribute_table): Add l2 attribute.
10090
10091 2009-09-11 Michael Matz <matz@suse.de>
10092
10093 PR middle-end/41275
10094 * tree-inline.c (remap_decls): Don't put DECL_EXTERNAL decls
10095 on the local_decls list.
10096
10097 2009-09-11 Alexandre Oliva <aoliva@redhat.com>
10098
10099 PR debug/41276
10100 PR debug/41307
10101 * cselib.c (cselib_expand_value_rtx_cb): Document callback
10102 interface.
10103 (cselib_expand_value_rtx_1): Use callback for SUBREGs. Adjust
10104 for VALUEs, to implement the documented interface.
10105 * var-tracking.c (vt_expand_loc_callback): Handle SUBREGs.
10106 Adjust for VALUEs and anything else, to implement the
10107 documented interface.
10108
10109 2009-09-10 Nathan Froyd <froydnj@codesourcery.com>
10110
10111 * config/rs6000/rs6000.h (DATA_ALIGNMENT): Check that we are dealing
10112 with actual SPE/paired vector modes before using 64-bit alignment.
10113 Check that TYPE is a REAL_TYPE for TARGET_E500_DOUBLE.
10114
10115 2009-09-10 DJ Delorie <dj@redhat.com>
10116
10117 * config/mep/mep.md (eh_epilogue): Defer until after epilogue is
10118 emitted.
10119
10120 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): New.
10121 * config/mep/mep.c (mep_legitimate_constant_p): New.
10122 * config/mep/mep-protos.h: Prototype it.
10123
10124 2009-09-10 Richard Henderson <rth@redhat.com>
10125
10126 * print-rtl.c (print_rtx): Fix JUMP_LABEL index.
10127
10128 2009-09-10 Jason Merrill <jason@redhat.com>
10129
10130 * tree.c (chain_index): New fn.
10131 * tree.h: Declare it.
10132
10133 2009-09-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10134
10135 * config/sol2-c.c (cmn_err_length_specs): Initialize
10136 scalar_identity_flag.
10137
10138 2009-09-10 Richard Henderson <rth@redhat.com>
10139
10140 * tree.h (struct tree_decl_common): Move align member earlier;
10141 move label_decl_uid member ...
10142 (struct tree_label_decl): ... here.
10143 (LABEL_DECL_UID): Update to match.
10144
10145 * tree-cfg.c (dump_function_to_file): Dump eh tree with TDF_EH,
10146 not TDF_DETAILS.
10147
10148 * tree-cfg.c (gimple_redirect_edge_and_branch): Do
10149 gimple_try_redirect_by_replacing_jump test after no-op and EH tests.
10150
10151 * tree-cfg.c (split_edge_bb_loc): Don't disallow placement at
10152 dest_prev if the edge is complex.
10153
10154 * tree-cfg.c (is_ctrl_stmt): Use a switch.
10155
10156 * tree-cfg.c (gimple_can_merge_blocks_p): Move label and
10157 loop latch tests earlier.
10158
10159 * gimple-iterator.c (gimple_find_edge_insert_loc): Insert
10160 before GIMPLE_RETURN, not after its predecessor; insert
10161 before GIMPLE_RESX.
10162
10163 * gimple-iterator.c (gimple_find_edge_insert_loc): Use
10164 gimple_seq_empty_p to test for no PHI nodes.
10165 * tree-cfg.c (split_critical_edges): Likewise.
10166
10167 * c-common.h (c_dialect_cxx, c_dialect_objc): Boolify.
10168
10169 2009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com>
10170
10171 * final.c (shorten_branches) : Ignore DEBUG_INSN_P instructions
10172 introduced by the VTA branch merge.
10173
10174 2009-09-10 Uros Bizjak <ubizjak@gmail.com>
10175
10176 * ira-conflicts.c: Use fputs or putc instead of fprintf
10177 where appropriate.
10178 * cfg.c: Ditto.
10179 * toplev.c: Ditto.
10180 * tree-switch-conversion.c: Ditto.
10181
10182 2009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com>
10183
10184 * config/picochip/picochip.c : Ignore DEBUG_INSN_P instructions
10185 introduced by the VTA branch merge.
10186
10187 2009-09-10 Uros Bizjak <ubizjak@gmail.com>
10188
10189 Revert:
10190 2009-09-09 Uros Bizjak <ubizjak@gmail.com>
10191
10192 PR rtl-optimization/39779
10193 * expr.c (convert_modes): Return when mode == oldmode after
10194 CONST_INTs are processed.
10195
10196 2009-09-10 Nick Clifton <nickc@redhat.com>
10197
10198 * config/mep/mep.c (mep_encode_section_info): Copy weakness
10199 attribute and referring decl when creating renamed symbol.
10200
10201 2009-09-10 Richard Guenther <rguenther@suse.de>
10202
10203 PR middle-end/41257
10204 * cgraphunit.c (cgraph_emit_thunks): Emit thunks only for
10205 reachable nodes.
10206 (cgraph_finalize_compilation_unit): Compute reachability
10207 before emitting thunks. Properly process aliases before
10208 possibly removing unreachable nodes.
10209
10210 2009-09-10 Richard Guenther <rguenther@suse.de>
10211
10212 PR middle-end/41254
10213 * tree.c (struct free_lang_data_d): Add worklist member.
10214 (find_decls_types_r): Push onto the worklist instead of recursing.
10215 Handle TREE_BINFOs properly.
10216 (find_decls_types): New function wrapped around find_decls_types_r
10217 to process the worklist.
10218 (find_decls_types_in_eh_region): Use it.
10219 (find_decls_types_in_node): Likewise.
10220 (find_decls_types_in_var): Likewise.
10221 (free_lang_data_in_cgraph): Likewise. Free the worklist.
10222 * tree.h (RECORD_OR_UNION_TYPE_P): New.
10223 (AGGREGATE_TYPE_P): Adjust.
10224
10225 2009-09-09 Jason Merrill <jason@redhat.com>
10226
10227 * configure.ac: Check glibc version even if we have an in-tree
10228 assembler.
10229
10230 2009-09-09 Anthony Green <green@moxielogic.com>
10231
10232 * config/moxie/moxie.md (*movsi, *movhi, *movqi): Use xor to load
10233 the constant 0 when appropriate.
10234 * config/moxie/constraints.md: Add constraint O.
10235
10236 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Adjust
10237 to pass up to 6 32-bit argument values in registers.
10238 (moxie_function_arg): Ditto.
10239 (moxie_arg_partial_bytes): Ditto.
10240 * config/moxie/moxie.h (FUNCTION_ARG_ADVANCE): Ditto.
10241 (REG_PARM_STACK_SPACE): Ditto.
10242 (FUNCTION_ARG_REGNO_P): Ditto.
10243
10244 * config/moxie/moxie.c (moxie_expand_prologue): Use dec
10245 instruction to allocate stack space.
10246
10247 2009-09-09 Segher Boessenkool <segher@kernel.crashing.org>
10248
10249 * config/rs6000/rs6000.md (bswapdi2_64bit): Fix
10250 unnecessarily stringent constraints. Fix address
10251 calculation in the splitters.
10252
10253 2009-09-09 Uros Bizjak <ubizjak@gmail.com>
10254
10255 PR rtl-optimization/39779
10256 * expr.c (convert_modes): Return when mode == oldmode after
10257 CONST_INTs are processed.
10258
10259 2009-09-09 Kai Tietz <kai.tietz@onevision.com>
10260
10261 PR/41315
10262 * config/i386.c (ix86_can_use_return_insn_p): Check for padding0, too.
10263 (ix86_expand_prologue): Take frame.padding0 into logic of
10264 to_allocate checks.
10265 (ix86_expand_epilogue): Likewise.
10266
10267 2009-09-09 Jakub Jelinek <jakub@redhat.com>
10268
10269 * config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK):
10270 New variables.
10271 (SHLIB_LINK, SHLIB_INSTALL): Use them.
10272 * config/t-slibgcc-libgcc: New file.
10273 * config.gcc (powerpc*-*-linux*, powerpc*-*-gnu*): Use it.
10274
10275 2009-09-09 Martin Jambor <mjambor@suse.cz>
10276
10277 PR tree-optimization/41089
10278 * tree-sra.c (find_var_candidates): Do not consider va_lists in
10279 early SRA.
10280
10281 2009-09-09 Richard Henderson <rth@redhat.com>
10282
10283 * gimple.h (CASE_GIMPLE_OMP): New.
10284 (is_gimple_omp): Use it.
10285 * tree-cfg.c (is_ctrl_altering_stmt): Likewise.
10286 (verify_gimple_debug): Likewise.
10287
10288 2009-09-09 Richard Guenther <rguenther@suse.de>
10289
10290 PR tree-optimization/41101
10291 * tree-ssa-pre.c (maximal_set): Remove.
10292 (compute_antic_aux): Treat the maximal set as implicitly all ones.
10293 Defer all blocks we didn't visit at least one successor.
10294 (add_to_exp_gen): Do not add to the maximal set.
10295 (make_values_for_phi): Likewise.
10296 (compute_avail): Likewise.
10297 (init_pre): Do not allocate the maximal set.
10298 (execute_pre): Do not dump it.
10299
10300 2009-09-09 Martin Jambor <mjambor@suse.cz>
10301
10302 * tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is
10303 an SSA_NAME rather than a is_gimple_variable.
10304
10305 2009-09-09 Richard Guenther <rguenther@suse.de>
10306
10307 PR middle-end/41317
10308 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Remove
10309 code dealing with plain pointer bases.
10310 (maybe_fold_offset_to_reference): Likewise.
10311 (maybe_fold_stmt_addition): Adjust.
10312
10313 2009-09-09 Richard Guenther <rguenther@suse.de>
10314
10315 * tree.c (free_lang_data_in_type): Do not free the type variant
10316 chains.
10317 (free_lang_data): Merge char_type_node with its properly signed
10318 variant.
10319 (pass_ipa_free): Collect after freeing language specific data.
10320
10321 2009-09-09 Michael Matz <matz@suse.de>
10322
10323 PR middle-end/41268
10324 * cfgexpand.c (expand_gimple_stmt_1): Use an int for storing
10325 SUBREG_PROMOTED_UNSIGNED_P, instead of a bool.
10326 * rtl.h (struct rtx, SUBREG_PROMOTED_UNSIGNED_P): Update comments
10327 to reflect reality.
10328
10329 2009-09-08 DJ Delorie <dj@redhat.com>
10330
10331 * config/mep/mep.c (conversions[]): Add "ml" pattern.
10332
10333 2009-09-04 Jason Merrill <jason@redhat.com>
10334
10335 * tree.c (tree_find_value): Remove.
10336 * tree.h: Remove prototype.
10337 * varasm.c (assemble_external): Use value_member instead.
10338
10339 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
10340
10341 * toplev.c (process_options): Choose default debugging type when
10342 gtoggle enables debug info and type is unset.
10343
10344 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
10345
10346 PR debug/41276
10347 PR debug/41307
10348 * cselib.c (cselib_expand_value_rtx_1): Don't return copy of
10349 invalid subreg.
10350
10351 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
10352
10353 * configure: Rebuilt with modified libtool.m4.
10354
10355 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
10356
10357 PR debug/41229
10358 PR debug/41291
10359 PR debug/41300
10360 * tree-ssa.c (execute_update_addresses_taken): Update debug insns.
10361
10362 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
10363
10364 * tree-ssa-loop-ivopts.c (get_phi_with_result): Remove.
10365 (remove_statement): Likewise.
10366 (rewrite_use_nonlinear_expr): Adjust.
10367 (remove_unused_ivs): Collect SSA NAMEs to remove and call...
10368 * tree-ssa.c (release_defs_bitset): ... this. New.
10369 * tree-flow.h (release_defs_bitset): Declare.
10370
10371 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
10372
10373 PR debug/41232
10374 * tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts
10375 in the middle block.
10376
10377 2009-09-08 Kai Tietz <kai.tietz@onevision.com>
10378
10379 * tree-ssa-reassoc.c (find_operand_rank): Cast pointer
10380 via intptr_t to long type.
10381 (insert_operand_rank): Cast long type via intptr_t to
10382 pointer type.
10383 * genattrtab.c (RTL_HASH): Use intptr_t to cast from
10384 pointer to scalar.
10385 * c-pretty-print.c (pp_c_tree_decl_identifier): Cast
10386 from pointer to unsigned via uintptr_t.
10387
10388 * configure.ac (GCC_STDINT_TYPES): Initialize intptr_t,
10389 uintptr_t, HAVE_INTTYPES_H, HAVE_STDINT_H, HAVE_UINTPTR_T,
10390 and HAVE_INTPTR_T.
10391 * configure: Regenerated.
10392 * config.in: Regenerated
10393 * system.h (stdint.h): Add include.
10394 (inttypes.h): Likewise.
10395 * Makefile.in (aclocal): Add config/stdint.m4.
10396 * aclocal.m4: Regenerated.
10397
10398 2009-09-08 Bernd Schmidt <bernd.schmidt@analog.com>
10399
10400 * config/bfin/bfin.c (np_check_regno, np_after_branch): New static
10401 variables.
10402 (note_np_check_stores): New function.
10403 (harmless_null_pointer_p): New function.
10404 (trapping_loads_p): New args NP_REG and AFTER_NP_BRANCH. Callers
10405 changed. Take into account whether we're in the shadow of a condjump
10406 that tested NP_REG for NULL.
10407 Lose all code that tested for SEQUENCEs.
10408 (workaround_speculation): Avoid inserting NOPs for loads that are
10409 either always executed or a NULL pointer.
10410
10411 2009-09-08 Jan Hubicka <jh@suse.cz>
10412
10413 * doc/invoke.texi (early-inlining-insns): Reduce from 12 to 8.
10414 * params.def (early-inlining-insns): Likewise.
10415
10416 2009-09-08 Jakub Jelinek <jakub@redhat.com>
10417
10418 PR rtl-optimization/41239
10419 * sched-int.h (struct deps): Add last_function_call_may_noreturn field.
10420 * sched-rgn.c (deps_join): Join also last_function_call_may_noreturn
10421 lists.
10422 * sched-deps.c (sched_analyze_insn): Prevent moving trapping insns
10423 across calls, as the calls might not always return normally.
10424 (call_may_noreturn_p): New function.
10425 (deps_analyze_insn): Update last_function_call_may_noreturn list.
10426 (init_deps): Initialize it.
10427 (remove_from_deps): Also remove calls from
10428 last_function_call_may_noreturn list.
10429
10430 2009-09-07 Richard Henderson <rth@redhat.com>
10431
10432 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are
10433 more VR->OPERANDS than LHS operands. Free LHS before returning.
10434
10435 2009-09-07 Bernd Schmidt <bernd.schmidt@analog.com>
10436
10437 * config/bfin/bfin.md (UNSPEC_VOLATILE_STALL): New constant.
10438 (attr "addrtype"): New member "spreg".
10439 Use it if mem_spfp_address_operand is true for the address.
10440 (attr "type"): New entry "stall".
10441 (cpu_unit "load"): New.
10442 (insn_reservations "load32", "loadp", "loadi"): Add reservation of
10443 "load".
10444 (insn_reservation "loadsp"): New.
10445 (insn_reservation "load_stall1"): New.
10446 (insn_reservation "load_stall3"): New.
10447 (stall): New insn.
10448 * config/bfin/predicates.md (const1_operand, const3_operand): New.
10449 (mem_p_address_operand): Exclude stack and frame pointer based
10450 addresses.
10451 (mem_spfp_address_operand): New; match them here.
10452 * config/bfin/bfin.c (add_sched_insns_for_speculation): New function.
10453 (bfin_reorg): Call it if scheduling insns.
10454 (bfin_gen_bundles): Remove dummy insns created by
10455 add_sched_insns_for_speculation.
10456
10457 From Jie Zhang <jie.zhang@analog.com>:
10458 * config/bfin/bfin-protos.h (enum bfin_cpu_type, bfin_cpu_type,
10459 bfin_si_revision, bfin_workarounds): Move these ...
10460 * config/bfin/bfin.h: ... here.
10461
10462 From Mike Frysinger <michael.frysinger@analog.com>
10463 * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF542M,
10464 BFIN_CPU_BF544M, BFIN_CPU_BF547M, BFIN_CPU_BF548M, and BFIN_CPU_BF549M.
10465 * config/bfin/bfin.c (bfin_cpus[]): Add 0.3 for bf542m, bf544m,
10466 bf547m, bf548m, and bf549m.
10467 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF542M__
10468 for BFIN_CPU_BF542M, __ADSPBF544M__ for BFIN_CPU_BF544M,
10469 __ADSPBF547M__ for BFIN_CPU_BF547M, __ADSPBF548M__ for
10470 BFIN_CPU_BF548M, and __ADSPBF549M__ for BFIN_CPU_BF549M.
10471 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
10472 bf542m-none, bf544m-none, bf547m-none, bf548m-none, and bf549m-none.
10473 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
10474 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
10475 * doc/invoke.texi (Blackfin Options): Document that -mcpu now accepts
10476 bf542m, bf544m, bf547m, bf548m, and bf549m.
10477
10478 From Jie Zhang <jie.zhang@analog.com>:
10479 * config/bfin/predicates.md (p_register_operand): New predicate.
10480 (dp_register_operand): New predicate.
10481 * config/bfin/bfin-protos.h (WA_05000074): Define.
10482 (ENABLE_WA_05000074): Define.
10483 * config/bfin/bfin.c (bfin_cpus[]): Add WA_05000074 for all cpus.
10484 (bfin_gen_bundles): Put dsp32shiftimm instruction in slot[0].
10485 * config/bfin/bfin.md (define_attr type): Add dsp32shiftimm.
10486 (define_attr addrtype): Allow load/store register to be P register.
10487 (define_attr storereg): New.
10488 (define_cpu_unit anomaly_05000074): New.
10489 (define_insn_reservation dsp32shiftimm): New.
10490 (define_insn_reservation dsp32shiftimm_anomaly_05000074): New.
10491 (define_insn_reservation loadp): Cannot use slot2.
10492 (define_insn_reservation loadsp): Cannot use slot2.
10493 (define_insn_reservation storep): Cannot use slot2. Does not
10494 apply when working around 05000074.
10495 (define_insn_reservation storep_anomaly_05000074): New.
10496 (define_insn_reservation storei): Does not apply when working
10497 around 05000074.
10498 (define_insn_reservation storei_anomaly_05000074): New.
10499 (define_attr length): Add dsp32shiftimm case.
10500 (define_insn movsi_insn32, movsi_insv, ashlsi3_insn, ashrsi3,
10501 ror_one, rol_one, lshrsi3, lshrpdi3, ashrpdi3, movhiv2hi_low,
10502 movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi,
10503 ssashiftv2hi3, ssashifthi3, ssashiftsi3, lshiftv2hi3, lshifthi3):
10504 Set type as dsp32shiftimm for dsp32shiftimm alternatives.
10505
10506 2009-09-07 Martin Jambor <mjambor@suse.cz>
10507
10508 PR middle-end/41282
10509 * tree-sra.c (create_artificial_child_access): Return NULL if
10510 build_ref_for_offset fails.
10511 (propagate_subacesses_accross_link): Allow build_ref_for_offset
10512 and create_artificial_child_access to fail.
10513
10514 2009-09-06 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
10515
10516 PR c++/41214
10517 * unwind-dw2.c (uw_init_context_1): Mark noinline.
10518 * config/ia64/unwind-ia64.c (uw_init_context_1): Likewise.
10519 * config/xtensa/unwind-dw2-xtensa.c (uw_init_context_1): Likewise.
10520
10521 2009-09-07 Bernd Schmidt <bernd.schmidt@analog.com>
10522
10523 * config/bfin/bfin.c (bfin_optimize_loop): When creating a new basic
10524 block, ensure it has an exit edge. Emit a barrier after a jump.
10525
10526 2009-09-07 Nick Clifton <nickc@redhat.com>
10527
10528 * gcc.c (this_is_linker_script): New variable. Like
10529 this_is_library_file but for the %T constructor.
10530 (end_going_arg): If this_is_linker_script is set then locate the
10531 script and insert a --script switch before it
10532 (do_spec_2): Initialise this_is_linker_script.
10533 (do_spec_1): Likewise. Handle %T construct.
10534 (eval_spec_function): Preserve this_is_linker_script.
10535 * doc/invoke.texi: Document %T construct in spec files.
10536 * config/m32c/m32c.h (LIB_SPEC): Use it.
10537
10538 2009-09-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10539
10540 * rtl.h (PREFETCH_SCHEDULE_BARRIER_P): New macro.
10541 * sched-deps.c (sched_analyze_2): Make prefetches a hard barrier
10542 when volatile flag is set.
10543 * doc/rtl.texi (PREFETCH_SCHEDULE_BARRIER_P): Add documentation pieces.
10544
10545 2009-09-06 Eric Botcazou <ebotcazou@adacore.com>
10546
10547 PR bootstrap/41241
10548 * combine-stack-adj.c (try_apply_stack_adjustment): Handle stores.
10549 (combine_stack_adjustments_for_block): Allow insns between stack
10550 adjustments and stores with corresponding pre-(dec|inc)rement or
10551 pre-modify operation.
10552
10553 2009-09-06 Jakub Jelinek <jakub@redhat.com>
10554
10555 PR bootstrap/41241
10556 * combine-stack-adj.c (struct csa_memlist): Rename to...
10557 (struct csa_reflist): ... this. Rename mem field to ref.
10558 (free_csa_memlist): Rename to...
10559 (free_csa_reflist): ... this.
10560 (record_one_stack_memref): Rename to...
10561 (record_one_stack_ref): ... this. Handle also REG_P.
10562 (try_apply_stack_adjustment): Handle also REG_P.
10563 (struct record_stack_memrefs_data): Rename to...
10564 (struct record_stack_refs_data): ... this. Rename memlist field to
10565 reflist.
10566 (record_stack_memrefs): Rename to...
10567 (record_stack_refs): ... this. For DEBUG_INSNs keep traversing
10568 subexpressions instead of failing when a MEM contains SP references.
10569 For SP itself in DEBUG_INSNs queue it also onto reflist chain.
10570 (combine_stack_adjustments_for_block): Adjust for mem to ref renaming.
10571
10572 2009-09-06 Richard Guenther <rguenther@suse.de>
10573
10574 PR middle-end/41144
10575 * tree.c (build_array_type): Do not record types marked
10576 with structural equality in the canonical type hashtable.
10577
10578 2009-09-06 Richard Guenther <rguenther@suse.de>
10579
10580 PR middle-end/41261
10581 * tree-ssa-alias.c (refs_may_alias_p_1): Bail out for function decls.
10582
10583 2009-09-05 Richard Guenther <rguenther@suse.de>
10584
10585 PR middle-end/41181
10586 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use the correct type.
10587
10588 2009-09-05 Richard Guenther <rguenther@suse.de>
10589
10590 PR debug/41273
10591 * tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops.
10592
10593 2009-09-05 Richard Guenther <rguenther@suse.de>
10594
10595 PR middle-end/41271
10596 * tree-ssa.c (useless_type_conversion_p): Drop qualifiers
10597 before comparing function argument types.
10598
10599 2009-09-05 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10600
10601 PR target/41024
10602 * config/i386/mingw-w64.h (ASM_SPEC): Pass -v instead of -V to
10603 the assembler.
10604
10605 2009-09-04 Uros Bizjak <ubizjak@gmail.com>
10606
10607 Revert:
10608 2009-08-18 Uros Bizjak <ubizjak@gmail.com>
10609
10610 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
10611 locators before emit_insn is called.
10612
10613 2009-09-04 Vladimir Makarov <vmakarov@redhat.com>
10614
10615 PR bootstrap/41241
10616 * ira.c (update_equiv_reg): Revert my previous patch for the PR.
10617 * reginfo.c (resize_reg_info): Call allocate_reg_info if necessary.
10618 (reginfo_init): Don't call allocate_reg_info.
10619
10620 2009-09-04 Uros Bizjak <ubizjak@gmail.com>
10621
10622 PR target/41262
10623 * config/alpha/alpha.c (alpha_does_function_need_gp): Use
10624 NONDEBUG_INSN_P instead of INSN_P.
10625
10626 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
10627
10628 PR debug/41225
10629 * tree-vect-stmts.c (vect_stmt_relevant_p): Skip debug uses.
10630
10631 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
10632
10633 PR target/41252
10634 * config/arm/vfp.md (*cmpdf_split_vfp): Fix src mode in the second
10635 pattern of the split.
10636
10637 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
10638
10639 * toplev.c (process_options): Move setter of flag_var_tracking
10640 before other tests that depend on it. Move down setter of
10641 flag_rename_registers. Don't enable var-tracking-assignments
10642 by default if selective scheduling is enabled. Warn if both
10643 are enabled.
10644
10645 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
10646
10647 * var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match
10648 comment. Use switch statement to catch overlaps between rtx
10649 and tree codes. Accept FUNCTION_DECLs in addition to those in...
10650 (IS_DECL_CODE): ... here. Remove.
10651 (check_value_is_not_decl): Remove.
10652 (dv_from_decl, dv_from_value): Check after conversion.
10653
10654 2009-09-04 Richard Guenther <rguenther@suse.de>
10655
10656 PR middle-end/41257
10657 * (cgraph_finalize_compilation_unit): Move finalizing aliases
10658 after emitting tunks. Move emitting thunks and ctors from ...
10659 (cgraph_optimize): ... here. Remove redundant
10660 cgraph_analyze_functions.
10661 * varasm.c (find_decl_and_mark_needed): Remove no longer
10662 necessary check.
10663 (finish_aliases_1): Adjust check for thunk aliases.
10664
10665 2009-09-04 Daniel Gutson <dgutson@codesourcery.com>
10666
10667 * config/arm/arm.md (ctzsi2): Added braces
10668 to avoid warning that broke booststrap.
10669
10670 2009-09-04 Martin Jambor <mjambor@suse.cz>
10671
10672 PR tree-optimization/41112
10673 * tree-sra.c (build_ref_for_offset_1): Signal that we cannot
10674 handle variable-bounded arrays.
10675 (expr_with_var_bounded_array_refs_p): New function.
10676 (analyze_access_subtree): Call expr_with_var_bounded_array_refs_p.
10677
10678 2009-09-04 Wolfgang Gellerich <gellerich@de.ibm.com>
10679
10680 * config/s390/2097.md: Removed two incorrect bypasses.
10681 (z10_fsimpdf): Fixed latency.
10682 (z10_fhex): New insn_reservation.
10683 (z10_floaddf): Fixed latency.
10684 (z10_floadsf): Fixed latency.
10685 (z10_ftrunctf): Fixed latency.
10686 (z10_ftruncdf): Fixed latency.
10687 * config/s390/s390.c (z10_cost): Fixed values.
10688 (s390_adjust_priority): Added z10 path.
10689 * config/s390/s390.md (type): Added fhex.
10690 (*mov<mode>_64dfp): Updated type attribute.
10691 (*mov<mode>_64): Updated type attribute.
10692 (*mov<mode>_31): Updated type attribute.
10693 (*mov<mode>"): Likewise.
10694 * config/s390/2084.md (x_fsimpdf): Updated condition.
10695
10696 2009-09-04 Andreas Krebbel <krebbel1@de.ibm.com>
10697
10698 * config/s390/s390.md ("*fmadd<mode>", "*fmsub<mode>"): Enable mem
10699 RTXs in the predicate for operand 1.
10700
10701 2009-09-03 Daniel Gutson <dgutson@codesourcery.com>
10702
10703 * config/arm/arm.md (UNSPEC_RBIT): New constant.
10704 (rbitsi2): New insn.
10705 (ctzsi2): New expand.
10706 * config/arm/arm.h (CTZ_DEFINED_VALUE_AT_ZERO): New macro.
10707
10708 2009-09-03 Martin Jambor <mjambor@suse.cz>
10709
10710 * tree-sra.c (duplicate_expr_for_different_base): Removed.
10711 (create_artificial_child_access): Use build_ref_for_offset instead
10712 of duplicate_expr_for_different_base.
10713 (propagate_subacesses_accross_link): Likewise.
10714
10715 2009-09-03 Richard Sandiford <rdsandiford@googlemail.com>
10716
10717 * config/mips/mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead
10718 of INSN_P.
10719 (mips16e_collect_argument_saves): Skip debug instructions.
10720 (mips_74k_agen_init): Use CALL_P || JUMP_P instead of !NONJUMP_INSN_P.
10721 (mips16_lay_out_constants): Use USEFUL_INSN_P instead of INSN_P.
10722 (r10k_insert_cache_barriers): Likewise.
10723 (mips_reorg_process_insns): Likewise.
10724
10725 2009-09-03 Vladimir Makarov <vmakarov@redhat.com>
10726
10727 PR bootstrap/41241
10728 * ira.c (update_equiv_reg): Remove check on class likely spill.
10729
10730 2009-09-03 Jakub Jelinek <jakub@redhat.com>
10731
10732 PR debug/41236
10733 * dwarf2out.c (loc_descriptor): Don't use SUBREG_REG macro on
10734 SIGN_EXTEND or ZERO_EXTEND. Don't assume there is a REG inside of
10735 it or SUBREG.
10736
10737 PR debug/41238
10738 * function.c (assign_parm_find_stack_rtl): Don't set mem attributes on
10739 the stack slot if it is passed by invisible reference.
10740 * var-tracking.c (vt_add_function_parameters): Handle arguments passed
10741 by invisible reference.
10742
10743 2009-09-03 Bernd Schmidt <bernd.schmidt@analog.com>
10744
10745 * config/bfin/linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
10746 * config/bfin/uclinux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
10747 * config/bfin/bfin.h (TARGET_SUPPORTS_SYNC_CALLS): Provide default of
10748 0.
10749 * config/bfin/sync.md: New file.
10750 * config/bfin/bfin.md: Include it.
10751 (UNSPEC_ATOMIC): New.
10752 (UNSPEC_ONES): Provide a unique number.
10753
10754 From Jie Zhang <jie.zhang@analog.com>:
10755 * config/bfin/bfin.c (ret_regs): New.
10756 (must_save_fp_p): Don't return true because of frame_pointer_needed.
10757 (must_save_rets_p): New.
10758 (n_regs_saved_by_prologue): Use must_save_rets_p instead of
10759 current_function_is_leaf.
10760 (do_link): Likewise.
10761 (do_unlink): Likewise.
10762 (expand_interrupt_handler_prologue): Use ret_regs array.
10763 (expand_interrupt_handler_epilogue): Use ret_regs array and
10764 pass return register to gen_return_internal.
10765 (bfin_expand_epilogue): Pass return register to
10766 gen_return_internal.
10767 (bfin_expand_call): Explicitly clobber RETS.
10768 * config/bfin/bfin.h (FUNCTION_RETURN_REGISTERS): Define.
10769 * config/bfin/bfin.md (call_symbol_fdpic, call_value_symbol_fdpic,
10770 call_insn_fdpic, call_value_insn_fdpic, call_symbol,
10771 call_value_symbol, call_insn, call_value_insn): Explicitly clobber
10772 RETS.
10773 (return_internal): Take a reg rtx rather than the register number.
10774
10775 2009-09-03 H.J. Lu <hongjiu.lu@intel.com>
10776
10777 * tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT
10778 when comparing against estimated_loop_iterations_int return.
10779
10780 2009-09-03 Richard Guenther <rguenther@suse.de>
10781
10782 * dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
10783 eh_personality_libfunc.
10784
10785 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
10786
10787 * tree-parloops.c (separate_decls_in_region): Add space.
10788
10789 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
10790
10791 * tree-parloops.c (separate_decls_in_region): Change the condition
10792 checking if there are reductions in the loop.
10793
10794 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
10795
10796 PR tree-optimization/38275
10797 * tree-parloops.c (parallelize_loops): Replace profitability condition
10798 for expected number of iterations.
10799
10800 2009-09-03 Alexandre Oliva <aoliva@redhat.com>
10801
10802 * doc/invoke.texi (BUILD_CONFIG): Document --with-build-config.
10803 (bootstrap-debug): Explain conditions in which it becomes default.
10804 (bootstrap-debug-big): Rather than duplicate bootstrap-debug,
10805 make it add to it.
10806
10807 2009-09-03 Namhyung Kim <namhyung@gmail.com>
10808
10809 * doc/invoke.texi (Optimize Options): Move
10810 -finline-small-functions to the -O2 list.
10811
10812 2009-09-03 Alexandre Oliva <aoliva@redhat.com>
10813
10814 * toplev.c (process_options): Enable var-tracking-assignments
10815 by default if var-tracking is enabled.
10816
10817 2009-09-02 David Daney <ddaney@caviumnetworks.com>
10818
10819 * cfgbuild.c (find_bb_boundaries): Split blocks containing a
10820 barrier.
10821 * emit-rtl.c (prev_nonnote_insn_bb): New function.
10822 * rtl.h (prev_nonnote_insn_bb): Declare it.
10823
10824 2009-09-03 Diego Novillo <dnovillo@google.com>
10825
10826 * cgraph.c (cgraph_node_for_decl): New.
10827 * cgraph.h (cgraph_node_for_decl): Declare.
10828 * tree.c (host_integerp): Return 0 if T is NULL.
10829
10830 2009-09-03 Diego Novillo <dnovillo@google.com>
10831
10832 * tree.h (struct alias_pair): Move from varasm.c.
10833 (alias_pairs): Likewise.
10834 (TYPE_MAXVAL): Define.
10835 (TYPE_MINVAL): Define.
10836 (iterative_hash_host_wide_int): Declare.
10837 (remove_unreachable_alias_pairs): Declare.
10838 * tree-pass.h (pass_ipa_free_lang_data): Declare.
10839 * diagnostic.c (default_diagnostic_starter): Make extern.
10840 (default_diagnostic_finalizer): Make extern.
10841 * diagnostic.h (default_diagnostic_starter): Declare.
10842 (default_diagnostic_finalizer): Declare.
10843 (default_tree_printer): Declare.
10844 * toplev.c (default_tree_printer): Make extern.
10845
10846 2009-09-03 Richard Guenther <rguenther@suse.de>
10847 Diego Novillo <dnovillo@google.com>
10848
10849 * cgraph.c (cgraph_add_new_function): Remove gimplification.
10850 * cgraphunit.c (cgraph_expand_function): Do not emit
10851 associated thunks from here.
10852 (cgraph_emit_thunks): New.
10853 (cgraph_optimize): Call it.
10854 Return if any IPA pass finds an error.
10855 * varasm.c (finish_aliases_1): Ignore errorneous aliases used
10856 by thunks.
10857
10858 2009-09-03 Simon Baldwin <simonb@google.com>
10859 Rafael Espindola <espindola@google.com>
10860 Richard Guenther <rguenther@suse.de>
10861 Doug Kwan <dougkwan@google.com>
10862 Diego Novillo <dnovillo@google.com>
10863
10864 * tree.c: Include tree-pass.h, langhooks-def.h,
10865 diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
10866 (free_lang_data_in_type): New.
10867 (need_assembler_name_p): New.
10868 (free_lang_data_in_block): New.
10869 (free_lang_data_in_decl): New.
10870 (struct free_lang_data_d): New.
10871 (add_tree_to_fld_list): New.
10872 (find_decls_types_r): New.
10873 (get_eh_types_for_runtime): New.
10874 (find_decls_types_in_eh_region): New.
10875 (find_decls_types_in_node): New.
10876 (find_decls_types_in_var): New.
10877 (free_lang_data_in_cgraph): New.
10878 (free_lang_data): New.
10879 (gate_free_lang_data): New.
10880 (pass_ipa_free_lang_data): New.
10881
10882 2009-09-03 Diego Novillo <dnovillo@google.com>
10883
10884 * timevar.def (TV_IPA_FREE_LANG_DATA): Define.
10885 * langhooks.h (struct lang_hooks): Add field free_lang_data.
10886 (lang_hooks): Remove const qualifier.
10887 * ipa.c (cgraph_remove_unreachable_nodes): Call
10888 remove_unreachable_alias_pairs.
10889 * except.c (add_type_for_runtime): Check if TYPE has
10890 already been converted.
10891 (lookup_type_for_runtime): Likewise.
10892 (check_handled): Handle converted types.
10893 * varasm.c (remove_unreachable_alias_pairs): New.
10894 * gimple.c: Include demangle.h.
10895 (gimple_decl_printable_name): New.
10896 (gimple_fold_obj_type_ref): New.
10897 * gimple.h (gimple_decl_printable_name): Declare.
10898 (gimple_fold_obj_type_ref): Declare.
10899 * passes.c (init_optimization_passes): Add pass
10900 pass_ipa_free_lang_data.
10901 * langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
10902 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
10903
10904 2009-09-03 Diego Novillo <dnovillo@google.com>
10905
10906 * c-lang.c (lang_hooks): Remove const qualifier.
10907
10908 2009-09-02 Loren James Rittle <ljrittle@acm.org>
10909
10910 * doc/install.texi (*-*-freebsd*): Update target information.
10911
10912 2009-09-02 Anatoly Sokolov <aesok@post.ru>
10913
10914 * hard-reg-set.h (call_fixed_regs): Remove.
10915 * reginfo.c (call_fixed_regs): Remove.
10916 (init_reg_sets_1): Remove initialization of call_fixed_regs.
10917 (globalize_reg): Don't use call_fixed_regs.
10918 * caller-save.c (init_caller_save): Use call_fixed_reg_set instead of
10919 call_fixed_regs.
10920
10921 2009-09-01 Michael Matz <matz@suse.de>
10922
10923 * expr.h (emit_storent_insn, expand_expr_real_1,
10924 expand_expr_real_2): Declare.
10925 * expr.c (emit_storent_insn, expand_expr_real_1,
10926 expand_expr_real_2): Export.
10927 (store_expr): Setting and evaluating dont_return_target is useless.
10928 (expand_expr_real_1, <case GOTO_EXPR, RETURN_EXPR, SWITCH_EXPR,
10929 LABEL_EXPR and ASM_EXPR>): Move to gcc_unreachable.
10930 * except.c (expand_resx_expr): Rename to ...
10931 (expand_resx_stmt): ... this. Rewrite to take gimple statement.
10932 * except.h (expand_resx_stmt): Declare.
10933 * stmt.c: Add include gimple.h
10934 (expand_asm_expr): Rename to ...
10935 (expand_asm_stmt): ... this. Rewrite to take gimple statement.
10936 (expand_case): Rewrite to take gimple statement.
10937 * tree.h (expand_asm_stmt): Declare.
10938 (expand_case): Change prototype.
10939 * Makefile.in (stmt.o): Depend on gimple.h.
10940 * builtins.c (expand_builtin_synchronize): Build gimple asm
10941 statement, not an ASM_EXPR.
10942 * cfgexpand.c (gimple_cond_pred_to_tree, set_expr_location_r,
10943 gimple_to_tree, release_stmt_tree): Remove.
10944 (expand_gimple_cond): Don't call gimple_cond_pred_to_tree or
10945 ggc_free, but hold comparison code and operands separately.
10946 Call jumpif_1 and jumpifnot_1 instead of jumpif and jumpifnot.
10947 (expand_call_stmt, expand_gimple_stmt_1,
10948 expand_gimple_stmt): New helpers.
10949 (expand_gimple_tailcall): Don't call gimple_to_tree, expand_expr_stmt,
10950 release_stmt_tree. Call expand_gimple_stmt instead.
10951 (expand_gimple_basic_block): Ditto.
10952
10953 * calls.c (emit_call_1): Don't look at EH regions here, make
10954 fntree parameter useless.
10955 (expand_call): New local rettype for TREE_TYPE(exp), use it
10956 throughout. Remove local p, use addr instead.
10957 Don't look at EH regions here.
10958
10959 2009-09-02 Vladimir Makarov <vmakarov@redhat.com>
10960
10961 * doc/invoke.texi (-fsched-pressure): Document it.
10962 (-fsched-reg-pressure-heuristic): Remove it.
10963
10964 * reload.c (ira.h): Include.
10965 (find_reloads): Add choosing reload on number of small spilled
10966 classes.
10967
10968 * haifa-sched.c (ira.h): Include.
10969 (sched_pressure_p, sched_regno_cover_class, curr_reg_pressure,
10970 saved_reg_pressure, curr_reg_live, saved_reg_live,
10971 region_ref_regs): New variables.
10972 (sched_init_region_reg_pressure_info, mark_regno_birth_or_death,
10973 initiate_reg_pressure_info, setup_ref_regs,
10974 initiate_bb_reg_pressure_info, save_reg_pressure,
10975 restore_reg_pressure, dying_use_p, print_curr_reg_pressure): New
10976 functions.
10977 (setup_insn_reg_pressure_info): New function.
10978 (rank_for_schedule): Add pressure checking and insn issue time.
10979 Remove comparison of insn reg weights.
10980 (ready_sort): Set insn reg pressure info.
10981 (update_register_pressure, setup_insn_max_reg_pressure,
10982 update_reg_and_insn_max_reg_pressure,
10983 sched_setup_bb_reg_pressure_info): New functions.
10984 (schedule_insn): Add code for printing and updating reg pressure info.
10985 (find_set_reg_weight, find_insn_reg_weight): Remove.
10986 (ok_for_early_queue_removal): Do nothing if pressure_only_p.
10987 (debug_ready_list): Print reg pressure info.
10988 (schedule_block): Ditto. Check insn issue time.
10989 (sched_init): Set up sched_pressure_p. Allocate and set up some
10990 reg pressure related info.
10991 (sched_finish): Free some reg pressure related info.
10992 (fix_tick_ready): Make insn always ready if pressure_p.
10993 (init_h_i_d): Don't call find_insn_reg_weight.
10994 (haifa_finish_h_i_d): Free insn reg pressure info.
10995
10996 * ira-int.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
10997 ira_memory_move_cost, ira_class_hard_regs,
10998 ira_class_hard_regs_num, ira_no_alloc_regs,
10999 ira_available_class_regs, ira_reg_class_cover_size,
11000 ira_reg_class_cover, ira_class_translate): Move to ira.h.
11001
11002 * ira-lives.c (single_reg_class): Check mode to find how many
11003 registers are necessary for operand.
11004 (ira_implicitly_set_insn_hard_regs): New.
11005
11006 * common.opt (fsched-pressure): New options.
11007 (fsched-reg-pressure-heuristic): Remove.
11008
11009 * ira.c (setup_eliminable_regset): Rename to
11010 ira_setup_eliminable_regset. Make it external.
11011 (expand_reg_info): Pass cover class to setup_reg_classes.
11012 (ira): Call resize_reg_info instead of allocate_reg_info.
11013
11014 * sched-deps.c: Include ira.h.
11015 (implicit_reg_pending_clobbers, implicit_reg_pending_uses): New.
11016 (create_insn_reg_use, create_insn_reg_set, setup_insn_reg_uses,
11017 reg_pressure_info, insn_use_p, mark_insn_pseudo_birth,
11018 mark_insn_hard_regno_birth, mark_insn_reg_birth,
11019 mark_pseudo_death, mark_hard_regno_death, mark_reg_death,
11020 mark_insn_reg_store, mark_insn_reg_clobber,
11021 setup_insn_reg_pressure_info): New.
11022 (sched_analyze_1): Update implicit_reg_pending_uses.
11023 (sched_analyze_insn): Find implicit sets, uses, clobbers of regs.
11024 Use them to create dependencies. Set insn reg uses and pressure
11025 info. Process reg_pending_uses in one place.
11026 (free_deps): Free implicit sets.
11027 (remove_from_deps): Remove implicit sets if necessary. Check
11028 implicit sets when clearing reg_last_in_use.
11029 (init_deps_global): Clear implicit_reg_pending_clobbers and
11030 implicit_reg_pending_uses.
11031
11032 * ira.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
11033 ira_memory_move_cost, ira_class_hard_regs,
11034 ira_class_hard_regs_num, ira_no_alloc_regs,
11035 ira_available_class_regs, ira_reg_class_cover_size,
11036 ira_reg_class_cover, ira_class_translate): Move from ira-int.h.
11037 (ira_setup_eliminable_regset, ira_set_pseudo_classes,
11038 ira_implicitly_set_insn_hard_regs): New prototypes.
11039
11040 * ira-costs.c (pseudo_classes_defined_p, allocno_p,
11041 cost_elements_num): New variables.
11042 (allocno_costs, total_costs): Rename to costs and
11043 total_allocno_costs.
11044 (COSTS_OF_ALLOCNO): Rename to COSTS.
11045 (allocno_pref): Rename to pref.
11046 (allocno_pref_buffer): Rename to pref_buffer.
11047 (common_classes): Rename to regno_cover_class.
11048 (COST_INDEX): New.
11049 (record_reg_classes): Set allocno attributes only if allocno_p.
11050 (record_address_regs): Ditto. Use COST_INDEX instead of ALLOCNO_NUM.
11051 (scan_one_insn): Use COST_INDEX and COSTS instead of ALLOCNO_NUM
11052 and COSTS_OF_ALLOCNO.
11053 (print_costs): Rename to print_allocno_costs.
11054 (print_pseudo_costs): New.
11055 (process_bb_node_for_costs): Split into 2 functions with new
11056 function process_bb_for_costs. Pass BB to process_bb_for_costs.
11057 (find_allocno_class_costs): Rename to find_costs_and_classes. Add
11058 new parameter dump_file. Use cost_elements_num instead of
11059 ira_allocnos_num. Make one iteration if preferred classes were
11060 already calculated for scheduler. Make 2 versions of code
11061 depending on allocno_p.
11062 (setup_allocno_cover_class_and_costs): Check allocno_p. Use
11063 regno_cover_class and COSTS instead of common_classes and
11064 COSTS_OF_ALLOCNO.
11065 (init_costs, finish_costs): New.
11066 (ira_costs): Set up allocno_p and cost_elements_num. Call
11067 init_costs and finish_costs.
11068 (ira_set_pseudo_classes): New.
11069
11070 * rtl.h (allocate_reg_info): Remove.
11071 (resize_reg_info): Change return type.
11072 (reg_cover_class): New.
11073 (setup_reg_classes): Add new parameter.
11074
11075 * sched-int.h (struct deps_reg): New member implicit_sets.
11076 (sched_pressure_p, sched_regno_cover_class): New external definitions.
11077 (INCREASE_BITS): New macro.
11078 (struct reg_pressure_data, struct reg_use_data): New.
11079 (struct _haifa_insn_data): Remove reg_weight. Add members
11080 reg_pressure, reg_use_list, reg_set_list, and
11081 reg_pressure_excess_cost_change.
11082 (struct deps): New member implicit_sets.
11083 (pressure_p): New variable.
11084 (COVER_CLASS_BITS, INCREASE_BITS): New macros.
11085 (struct reg_pressure_data, struct reg_use_data): New.
11086 (INSN_REG_WEIGHT): Remove.
11087 (INSN_REG_PRESSURE, INSN_MAX_REG_PRESSURE, INSN_REG_USE_LIST,
11088 INSN_REG_SET_LIST, INSN_REG_PRESSURE_EXCESS_COST_CHANGE): New macros.
11089 (sched_init_region_reg_pressure_info,
11090 sched_setup_bb_reg_pressure_info): New prototypes.
11091
11092 * reginfo.c (struct reg_pref): New member coverclass.
11093 (reg_cover_class): New function.
11094 (reginfo_init, pass_reginfo_init): Move after free_reg_info.
11095 (reg_info_size): New variable.
11096 (allocate_reg_info): Make static. Setup reg_info_size.
11097 (resize_reg_info): Use reg_info_size. Return flag of resizing.
11098 (setup_reg_classes): Add a new parameter. Setup cover class too.
11099
11100 * Makefile.in (reload.o, haifa-sched.o, sched-deps.o): Add ira.h to
11101 the dependencies.
11102
11103 * sched-rgn.c (deps_join): Set up implicit_sets.
11104 (schedule_region): Set up region and basic blocks pressure
11105 relative info.
11106
11107 * passes.c (init_optimization_passes): Move
11108 pass_subregs_of_mode_init before pass_sched.
11109
11110 2009-09-02 Martin Jambor <mjambor@suse.cz>
11111
11112 * tree-sra.c (struct access): New field grp_hint.
11113 (dump_access): Dump grp_hint.
11114 (sort_and_splice_var_accesses): Set grp_hint if a group is read
11115 multiple times.
11116 (analyze_access_subtree): Only scalarize accesses with grp_hint set or
11117 those which have been specifically read and somehow written to.
11118 (propagate_subacesses_accross_link): Set grp_hint of right child and
11119 also possibly of the left child.
11120
11121 2009-09-02 Jakub Jelinek <jakub@redhat.com>
11122
11123 * tree-object-size.c (addr_object_size): Always use object_size_type
11124 0 or 2 when determining the pointer pointed object size.
11125
11126 2009-09-02 Richard Guenther <rguenther@suse.de>
11127
11128 Revert
11129 2009-08-31 Richard Guenther <rguenther@suse.de>
11130
11131 * builtins.c (fold_builtin_memory_op): Use the alias oracle
11132 to query if the memory regions for memmove overlap.
11133 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
11134 asserts on pointers, instead deal with odd trees.
11135 (ptr_derefs_may_alias_p): Likewise.
11136 (refs_may_alias_p_1): Constructor bases also never alias.
11137
11138 2009-08-01 Christian Bruel <christian.bruel@st.com>
11139
11140 Revert:
11141 2009-07-31 Christian Bruel <christian.bruel@st.com>
11142 * gcc/config.gcc (sh*-*-elf): test with_libgloss.
11143
11144 2009-09-01 Alexandre Oliva <aoliva@redhat.com>
11145
11146 * doc/invoke.texi (-fvar-tracking-assignments): New.
11147 (-fvar-tracking-assignments-toggle): New.
11148 (-fdump-final-insns=file): Mark filename as optional.
11149 (--param min-nondebug-insn-uid): New.
11150 (-gdwarf-@{version}): Mention version 4.
11151 * opts.c (common_handle_option): Accept it.
11152 * tree-vrp.c (find_assert_locations_1): Skip debug stmts.
11153 * regrename.c (regrename_optimize): Drop last. Don't count debug
11154 insns as uses. Don't reject change because of debug insn.
11155 (do_replace): Reject DEBUG_INSN as chain starter. Take base_regno
11156 from the chain starter, and check for inexact matches in DEBUG_INSNS.
11157 (scan_rtx_reg): Accept inexact matches in DEBUG_INSNs.
11158 (build_def_use): Simplify and fix the marking of DEBUG_INSNs.
11159 * sched-ebb.c (schedule_ebbs): Skip boundary debug insns.
11160 * fwprop.c (forward_propagate_and_simplify): ...into debug insns.
11161 * doc/gimple.texi (is_gimple_debug): New.
11162 (gimple_debug_bind_p): New.
11163 (is_gimple_call, gimple_assign_cast_p): End sentence with period.
11164 * doc/install.texi (bootstrap-debug): More details.
11165 (bootstrap-debug-big, bootstrap-debug-lean): Document.
11166 (bootstrap-debug-lib): More details.
11167 (bootstrap-debug-ckovw): Update.
11168 (bootstrap-time): New.
11169 * tree-into-ssa.c (mark_def_sites): Skip debug stmts.
11170 (insert_phi_nodes_for): Insert debug stmts.
11171 (rewrite_stmt): Take iterator. Insert debug stmts.
11172 (rewrite_enter_block): Adjust.
11173 (maybe_replace_use_in_debug_stmt): New.
11174 (rewrite_update_stmt): Use it.
11175 (mark_use_interesting): Return early for debug stmts.
11176 * tree-ssa-loop-im.c (rewrite_bittest): Propagate DEFs into debug
11177 stmts before replacing stmt.
11178 (move_computations_stmt): Likewise.
11179 * ira-conflicts.c (add_copies): Skip debug insns.
11180 * regstat.c (regstat_init_n_sets_and_refs): Discount debug insns.
11181 (regstat_bb_compute_ri): Skip debug insns.
11182 * tree-ssa-threadupdate.c (redirection_block_p): Skip debug stmts.
11183 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
11184 check_loop_closed_ssa_stmt): Skip debug stmts.
11185 * tree-tailcall.c (find_tail_calls): Likewise.
11186 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
11187 * tree.h (MAY_HAVE_DEBUG_STMTS): New.
11188 (build_var_debug_value_stat): Declare.
11189 (build_var_debug_value): Define.
11190 (target_for_debug_bind): Declare.
11191 * reload.c (find_equiv_reg): Skip debug insns.
11192 * rtlanal.c (reg_used_between_p): Skip debug insns.
11193 (side_effects_p): Likewise.
11194 (canonicalize_condition): Likewise.
11195 * ddg.c (create_ddg_dep_from_intra_loop_link): Check that non-debug
11196 insns never depend on debug insns.
11197 (create_ddg_dep_no_link): Likewise.
11198 (add_cross_iteration_register_deps): Use ANTI_DEP for debug insns.
11199 Don't add inter-loop dependencies for debug insns.
11200 (build_intra_loop_deps): Likewise.
11201 (create_ddg): Count debug insns.
11202 * ddg.h (struct ddg::num_debug): New.
11203 (num_backargs): Pair up with previous int field.
11204 * diagnostic.c (diagnostic_report_diagnostic): Skip notes on
11205 -fcompare-debug-second.
11206 * final.c (get_attr_length_1): Skip debug insns.
11207 (rest_of_clean-state): Don't dump CFA_RESTORE_STATE.
11208 * gcc.c (invoke_as): Call compare-debug-dump-opt.
11209 (driver_self_specs): Map -fdump-final-insns to
11210 -fdump-final-insns=..
11211 (get_local_tick): New.
11212 (compare_debug_dump_opt_spec_function): Test for . argument and
11213 compute output name. Compute temp output spec without flag name.
11214 Compute -frandom-seed.
11215 (OPT): Undef after use.
11216 * cfgloopanal.c (num_loop_insns): Skip debug insns.
11217 (average_num_loop_insns): Likewise.
11218 * params.h (MIN_NONDEBUG_INSN_UID): New.
11219 * gimple.def (GIMPLE_DEBUG): New.
11220 * ipa-reference.c (scan_stmt_for_static_refs): Skip debug stmts.
11221 * auto-inc-dec.c (merge_in_block): Skip debug insns.
11222 (merge_in_block): Fix whitespace.
11223 * toplev.c (flag_var_tracking): Update comment.
11224 (flag_var_tracking_assignments): New.
11225 (flag_var_tracking_assignments_toggle): New.
11226 (process_options): Don't open final insns dump file if we're not
11227 going to write to it. Compute defaults for var_tracking.
11228 * df-scan.c (df_insn_rescan_debug_internal): New.
11229 (df_uses_record): Handle debug insns.
11230 * haifa-sched.c (ready): Initialize n_debug.
11231 (contributes_to_priority): Skip debug insns.
11232 (dep_list_size): New.
11233 (priority): Use it.
11234 (rank_for_schedule): Likewise. Schedule debug insns as soon as
11235 they're ready. Disregard previous debug insns to make decisions.
11236 (queue_insn): Never queue debug insns.
11237 (ready_add, ready_remove_first, ready_remove): Count debug insns.
11238 (schedule_insn): Don't reject debug insns because of issue rate.
11239 (get_ebb_head_tail, no_real_insns_p): Skip boundary debug insns.
11240 (queue_to_ready): Skip and discount debug insns.
11241 (choose_ready): Let debug insns through.
11242 (schedule_block): Check boundary debug insns. Discount debug
11243 insns, schedule them early. Adjust whitespace.
11244 (set_priorities): Check for boundary debug insns.
11245 (add_jump_dependencies): Use dep_list_size.
11246 (prev_non_location_insn): New.
11247 (check_cfg): Use it.
11248 * tree-ssa-loop-ivopts.c (find-interesting_users): Skip debug
11249 stmts.
11250 (remove_unused_ivs): Reset debug stmts.
11251 * modulo-sched.c (const_iteration_count): Skip debug insns.
11252 (res_MII): Discount debug insns.
11253 (loop_single_full_bb_p): Skip debug insns.
11254 (sms_schedule): Likewise.
11255 (sms_schedule_by_order): Likewise.
11256 (ps_has_conflicts): Likewise.
11257 * caller-save.c (refmarker_fn): New.
11258 (save_call_clobbered_regs): Replace regs with saved mem in
11259 debug insns.
11260 (mark_referenced_regs): Take pointer, mark and arg. Adjust.
11261 Call refmarker_fn mark for hardregnos.
11262 (mark_reg_as_referenced): New.
11263 (replace_reg_with_saved_mem): New.
11264 * ipa-pure-const.c (check_stmt): Skip debug stmts.
11265 * cse.c (cse_insn): Canonicalize debug insns. Skip them when
11266 searching back.
11267 (cse_extended_basic_block): Skip debug insns.
11268 (count_reg_usage): Likewise.
11269 (is_dead_reg): New, split out of...
11270 (set_live_p): ... here.
11271 (insn_live_p): Use it for debug insns.
11272 * tree-stdarg.c (check_all_va_list_escapes): Skip debug stmts.
11273 (execute_optimize_stdarg): Likewise.
11274 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
11275 * tree-ssa-propagate.c (substitute_and_fold): Don't regard
11276 changes in debug stmts as changes.
11277 * sel-sched.c (moving_insn_creates_bookkeeping_block_p): New.
11278 (moveup_expr): Don't move across debug insns. Don't move
11279 debug insn if it would create a bookkeeping block.
11280 (moveup_expr_cached): Don't use cache for debug insns that
11281 are heads of blocks.
11282 (compute_av_set_inside_bb): Skip debug insns.
11283 (sel_rank_for_schedule): Schedule debug insns first. Remove
11284 dead code.
11285 (block_valid_for_bookkeeping_p); Support lax searches.
11286 (create_block_for_bookkeeping): Adjust block numbers when
11287 encountering debug-only blocks.
11288 (find_place_for_bookkeeping): Deal with debug-only blocks.
11289 (generate_bookkeeping_insn): Accept no place to insert.
11290 (remove_temp_moveop_nops): New argument full_tidying.
11291 (prepare_place_to_insert): Deal with debug insns.
11292 (advance_state_on_fence): Debug insns don't start cycles.
11293 (update_boundaries): Take fence as argument. Deal with
11294 debug insns.
11295 (schedule_expr_on_boundary): No full_tidying on debug insns.
11296 (fill_insns): Deal with debug insns.
11297 (track_scheduled_insns_and_blocks): Don't count debug insns.
11298 (need_nop_to_preserve_insn_bb): New, split out of...
11299 (remove_insn_from_stream): ... this.
11300 (fur_orig_expr_not_found): Skip debug insns.
11301 * rtl.def (VALUE): Move up.
11302 (DEBUG_INSN): New.
11303 * tree-ssa-sink.c (all_immediate_uses_same_place): Skip debug stmts.
11304 (nearest_common_dominator_of_uses): Take debug_stmts argument.
11305 Set it if debug stmts are found.
11306 (statement_sink_location): Skip debug stmts. Propagate
11307 moving defs into debug stmts.
11308 * ifcvt.c (first_active_insn): Skip debug insns.
11309 (last_active_insns): Likewise.
11310 (cond_exec_process_insns): Likewise.
11311 (noce_process_if_block): Likewise.
11312 (check_cond_move_block): Likewise.
11313 (cond_move_convert_if_block): Likewise.
11314 (block_jumps_and_fallthru_p): Likewise.
11315 (dead_or_predicable): Likewise.
11316 * dwarf2out.c (debug_str_hash_forced): New.
11317 (find_AT_string): Add comment.
11318 (gen_label_for_indirect_string): New.
11319 (get_debug_string_label): New.
11320 (AT_string_form): Use it.
11321 (mem_loc_descriptor): Handle non-TLS symbols. Handle MINUS , DIV,
11322 MOD, AND, IOR, XOR, NOT, ABS, NEG, and CONST_STRING. Accept but
11323 discard COMPARE, IF_THEN_ELSE, ROTATE, ROTATERT, TRUNCATE and
11324 several operations that cannot be represented with DWARF opcodes.
11325 (loc_descriptor): Ignore SIGN_EXTEND and ZERO_EXTEND. Require
11326 dwarf_version 4 for DW_OP_implicit_value and DW_OP_stack_value.
11327 (dwarf2out_var_location): Take during-call mark into account.
11328 (output_indirect_string): Update comment. Output if there are
11329 label and references.
11330 (prune_indirect_string): New.
11331 (prune_unused_types): Call it if debug_str_hash_forced.
11332 More in dwarf2out.c, from Jakub Jelinek <jakub@redhat.com>:
11333 (dw_long_long_const): Remove.
11334 (struct dw_val_struct): Change val_long_long type to rtx.
11335 (print_die, attr_checksum, same_dw_val_p, loc_descriptor): Adjust for
11336 val_long_long change to CONST_DOUBLE rtx from a long hi/lo pair.
11337 (output_die): Likewise. Use HOST_BITS_PER_WIDE_INT size of each
11338 component instead of HOST_BITS_PER_LONG.
11339 (output_loc_operands): Likewise. For const8* assert
11340 HOST_BITS_PER_WIDE_INT rather than HOST_BITS_PER_LONG is >= 64.
11341 (output_loc_operands_raw): For const8* assert HOST_BITS_PER_WIDE_INT
11342 rather than HOST_BITS_PER_LONG is >= 64.
11343 (add_AT_long_long): Remove val_hi and val_lo arguments, add
11344 val_const_double.
11345 (size_of_die): Use HOST_BITS_PER_WIDE_INT size multiplier instead of
11346 HOST_BITS_PER_LONG for dw_val_class_long_long.
11347 (add_const_value_attribute): Adjust add_AT_long_long caller. Don't
11348 handle TLS SYMBOL_REFs. If CONST wraps a constant, tail recurse.
11349 (dwarf_stack_op_name): Handle DW_OP_implicit_value and
11350 DW_OP_stack_value.
11351 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
11352 Handle DW_OP_implicit_value.
11353 (extract_int): Move prototype earlier.
11354 (mem_loc_descriptor): For SUBREG punt if inner
11355 mode size is wider than DWARF2_ADDR_SIZE. Handle SIGN_EXTEND
11356 and ZERO_EXTEND by DW_OP_shl and DW_OP_shr{a,}. Handle
11357 EQ, NE, GT, GE, LT, LE, GTU, GEU, LTU, LEU, SMIN, SMAX, UMIN,
11358 UMAX, SIGN_EXTRACT, ZERO_EXTRACT.
11359 (loc_descriptor): Compare mode size with DWARF2_ADDR_SIZE
11360 instead of Pmode size.
11361 (loc_descriptor): Add MODE argument. Handle CONST_INT, CONST_DOUBLE,
11362 CONST_VECTOR, CONST, LABEL_REF and SYMBOL_REF if mode != VOIDmode,
11363 attempt to handle other expressions. Don't handle TLS SYMBOL_REFs.
11364 (concat_loc_descriptor, concatn_loc_descriptor,
11365 loc_descriptor_from_tree_1): Adjust loc_descriptor callers.
11366 (add_location_or_const_value_attribute): Likewise. For single
11367 location loc_lists attempt to use add_const_value_attribute
11368 for constant decls. Add DW_AT_const_value even if
11369 NOTE_VAR_LOCATION is VAR_LOCATION with CONSTANT_P or CONST_STRING
11370 in its expression.
11371 * cfgbuild.c (inside_basic_block_p): Handle debug insns.
11372 (control_flow_insn_p): Likewise.
11373 * tree-parloops.c (eliminate_local_variables_stmt): Handle debug stmt.
11374 (separate_decls_in_region_debug_bind): New.
11375 (separate_decls_in_region): Process debug bind stmts afterwards.
11376 * recog.c (verify_changes): Handle debug insns.
11377 (extract_insn): Likewise.
11378 (peephole2_optimize): Skip debug insns.
11379 * dse.c (scan_insn): Skip debug insns.
11380 * sel-sched-ir.c (return_nop_to_pool): Take full_tidying argument.
11381 Pass it on.
11382 (setup_id_for_insn): Handle debug insns.
11383 (maybe_tidy_empty_bb): Adjust whitespace.
11384 (tidy_control_flow): Skip debug insns.
11385 (sel_remove_insn): Adjust for debug insns.
11386 (sel_estimate_number_of_insns): Skip debug insns.
11387 (create_insn_rtx_from_pattern): Handle debug insns.
11388 (create_copy_of_insn_rtx): Likewise.
11389 * sel-sched-.h (sel_bb_end): Declare.
11390 (sel_bb_empty_or_nop_p): New.
11391 (get_all_loop_exits): Use it.
11392 (_eligible_successor_edge_p): Likewise.
11393 (return_nop_to_pool): Adjust.
11394 * tree-eh.c (tre_empty_eh_handler_p): Skip debug stmts.
11395 * ira-lives.c (process_bb_node_lives): Skip debug insns.
11396 * gimple-pretty-print.c (dump_gimple_debug): New.
11397 (dump_gimple_stmt): Use it.
11398 (dump_bb_header): Skip gimple debug stmts.
11399 * regmove.c (optimize_reg_copy_1): Discount debug insns.
11400 (fixup_match_2): Likewise.
11401 (regmove_backward_pass): Likewise. Simplify combined
11402 replacement. Handle debug insns.
11403 * function.c (instantiate_virtual_regs): Handle debug insns.
11404 * function.h (struct emit_status): Add x_cur_debug_insn_uid.
11405 * print-rtl.h: Include cselib.h.
11406 (print_rtx): Print VALUEs. Split out and recurse for VAR_LOCATIONs.
11407 * df.h (df_inns_rescan_debug_internal): Declare.
11408 * gcse.c (alloc_hash_table): Estimate n_insns.
11409 (cprop_insn): Don't regard debug insns as changes.
11410 (bypass_conditional_jumps): Skip debug insns.
11411 (one_pre_gcse_pass): Adjust.
11412 (one_code_hoisting_pass): Likewise.
11413 (compute_ld_motion_mems): Skip debug insns.
11414 (one_cprop_pass): Adjust.
11415 * tree-if-conv.c (tree_if_convert_stmt): Reset debug stmts.
11416 (if_convertible_stmt_p): Handle debug stmts.
11417 * init-regs.c (initialize_uninitialized_regs): Skip debug insns.
11418 * tree-vect-loop.c (vect_is_simple_reduction): Skip debug stmts.
11419 * ira-build.c (create_bb_allocnos): Skip debug insns.
11420 * tree-flow-inline.h (has_zero_uses): Discount debug stmts.
11421 (has_single_use): Likewise.
11422 (single_imm_use): Likewise.
11423 (num_imm_uses): Likewise.
11424 * tree-ssa-phiopt.c (empty_block_p): Skip debug stmts.
11425 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Skip debug stmts.
11426 (create_outofssa_var_map): Likewise.
11427 * lower-subreg.c (adjust_decomposed_uses): New.
11428 (resolve_debug): New.
11429 (decompose_multiword_subregs): Use it.
11430 * tree-dfa.c (find_referenced_vars): Skip debug stmts.
11431 * emit-rtl.c: Include params.h.
11432 (cur_debug_insn_uid): Define.
11433 (set_new_first_and_last_insn): Set cur_debug_insn_uid too.
11434 (copy_rtx_if_shared_1): Handle debug insns.
11435 (reset_used_flags): Likewise.
11436 (set_used_flags): LIkewise.
11437 (get_max_insn_count): New.
11438 (next_nondebug_insn): New.
11439 (prev_nondebug_insn): New.
11440 (make_debug_insn_raw): New.
11441 (emit_insn_before_noloc): Handle debug insns.
11442 (emit_jump_insn_before_noloc): Likewise.
11443 (emit_call_insn_before_noloc): Likewise.
11444 (emit_debug_insn_before_noloc): New.
11445 (emit_insn_after_noloc): Handle debug insns.
11446 (emit_jump_insn_after_noloc): Likewise.
11447 (emit_call_insn_after_noloc): Likewise.
11448 (emit_debug_insn_after_noloc): Likewise.
11449 (emit_insn_after): Take loc from earlier non-debug insn.
11450 (emit_jump_insn_after): Likewise.
11451 (emit_call_insn_after): Likewise.
11452 (emit_debug_insn_after_setloc): New.
11453 (emit_debug_insn_after): New.
11454 (emit_insn_before): Take loc from later non-debug insn.
11455 (emit_jump_insn_before): Likewise.
11456 (emit_call_insn_before): Likewise.
11457 (emit_debug_insn_before_setloc): New.
11458 (emit_debug_insn_before): New.
11459 (emit_insn): Handle debug insns.
11460 (emit_debug_insn): New.
11461 (emit_jump_insn): Handle debug insns.
11462 (emit_call_insn): Likewise.
11463 (emit): Likewise.
11464 (init_emit): Take min-nondebug-insn-uid into account.
11465 Initialize cur_debug_insn_uid.
11466 (emit_copy_of_insn_after): Handle debug insns.
11467 * cfgexpand.c (gimple_assign_rhs_to_tree): Do not overwrite
11468 location of single rhs in place.
11469 (maybe_dump_rtl_for_gimple_stmt): Dump lineno.
11470 (floor_sdiv_adjust): New.
11471 (cell_sdiv_adjust): New.
11472 (cell_udiv_adjust): New.
11473 (round_sdiv_adjust): New.
11474 (round_udiv_adjust): New.
11475 (wrap_constant): Moved from cselib.
11476 (unwrap_constant): New.
11477 (expand_debug_expr): New.
11478 (expand_debug_locations): New.
11479 (expand_gimple_basic_block): Drop hiding redeclaration. Expand
11480 debug bind stmts.
11481 (gimple_expand_cfg): Expand debug locations.
11482 * cselib.c: Include tree-pass.h.
11483 (struct expand_value_data): New.
11484 (cselib_record_sets_hook): New.
11485 (PRESERVED_VALUE_P, LONG_TERM_PRESERVED_VALUE_P): New.
11486 (cselib_clear_table): Move, and implemnet in terms of...
11487 (cselib_reset_table_with_next_value): ... this.
11488 (cselib_get_next_unknown_value): New.
11489 (discard_useless_locs): Don't discard preserved values.
11490 (cselib_preserve_value): New.
11491 (cselib_preserved_value_p): New.
11492 (cselib_preserve_definitely): New.
11493 (cselib_clear_preserve): New.
11494 (cselib_preserve_only_values): New.
11495 (new_cselib_val): Take rtx argument. Dump it in details.
11496 (cselib_lookup_mem): Adjust.
11497 (expand_loc): Take regs_active in struct. Adjust. Silence
11498 dumps unless details are requested.
11499 (cselib_expand_value_rtx_cb): New.
11500 (cselib_expand_value_rtx): Rename and reimplment in terms of...
11501 (cselib_expand_value_rtx_1): ... this. Adjust. Silence dumps
11502 without details. Copy more subregs. Try to resolve values
11503 using a callback. Wrap constants.
11504 (cselib_subst_to_values): Adjust.
11505 (cselib_log_lookup): New.
11506 (cselib_lookup): Call it.
11507 (cselib_invalidate_regno): Don't count preserved values as useless.
11508 (cselib_invalidate_mem): Likewise.
11509 (cselib_record_set): Likewise.
11510 (struct set): Renamed to cselib_set, moved to cselib.h.
11511 (cselib_record_sets): Adjust. Call hook.
11512 (cselib_process_insn): Reset table when it would be cleared.
11513 (dump_cselib_val): New.
11514 (dump_cselib_table): New.
11515 * tree-cfgcleanup.c (tree_forwarded_block_p): Skip debug stmts.
11516 (remove_forwarder_block): Support moving debug stmts.
11517 * cselib.h (cselib_record_sets_hook): Declare.
11518 (cselib_expand_callback): New type.
11519 (cselib_expand_value_rtx_cb): Declare.
11520 (cselib_reset_table_with_next_value): Declare.
11521 (cselib_get_next_unknown_value): Declare.
11522 (cselib_preserve_value): Declare.
11523 (cselib_preserved_value_p): Declare.
11524 (cselib_preserve_only_values): Declare.
11525 (dump_cselib_table): Declare.
11526 * cfgcleanup.c (flow_find_cross_jump): Skip debug insns.
11527 (try_crossjump_to_edge): Likewise.
11528 (delete_unreachable_blocks): Remove dominant GIMPLE blocks after
11529 dominated blocks when debug stmts are present.
11530 * simplify-rtx.c (delegitimize_mem_from_attrs): New.
11531 * tree-ssa-live.c (remove_unused_locals): Skip debug stmts.
11532 (set_var_live_on_entry): Likewise.
11533 * loop-invariant.c (find_invariants_bb): Skip debug insns.
11534 * cfglayout.c (curr_location, last_location): Make static.
11535 (set_curr_insn_source_location): Don't avoid bouncing.
11536 (get_curr_insn_source_location): New.
11537 (get_curr_insn_block): New.
11538 (duplicate_insn_chain): Handle debug insns.
11539 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Propagate
11540 into debug stmts.
11541 * common.opt (fcompare-debug): Move to sort order.
11542 (fdump-unnumbered-links): Likewise.
11543 (fvar-tracking-assignments): New.
11544 (fvar-tracking-assignments-toggle): New.
11545 * tree-ssa-dce.c (mark_stmt_necessary): Don't mark blocks
11546 because of debug stmts.
11547 (mark_stmt_if_obviously_necessary): Mark debug stmts.
11548 (eliminate_unnecessary_stmts): Walk dominated blocks before
11549 dominators.
11550 * tree-ssa-ter.c (find_replaceable_in_bb): Skip debug stmts.
11551 * ira.c (memref_used_between_p): Skip debug insns.
11552 (update_equiv_regs): Likewise.
11553 * sched-deps.c (sd_lists_size): Accept empty list.
11554 (sd_init_insn): Mark debug insns.
11555 (sd_finish_insn): Unmark them.
11556 (sd_add_dep): Reject non-debug deps on debug insns.
11557 (fixup_sched_groups): Give debug insns group treatment.
11558 Skip debug insns.
11559 (sched_analyze_reg): Don't mark debug insns for sched before call.
11560 (sched_analyze_2): Handle debug insns.
11561 (sched_analyze_insn): Compute next non-debug insn. Handle debug
11562 insns.
11563 (deps_analyze_insn): Handle debug insns.
11564 (deps_start_bb): Skip debug insns.
11565 (init_deps): Initialize last_debug_insn.
11566 * tree-ssa.c (target_for_debug_bind): New.
11567 (find_released_ssa_name): New.
11568 (propagate_var_def_into_debug_stmts): New.
11569 (propagate_defs_into_debug_stmts): New.
11570 (verify_ssa): Skip debug bind stmts without values.
11571 (warn_uninialized_vars): Skip debug stmts.
11572 * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Set default.
11573 * rtl.c (rtx_equal_p_cb): Handle VALUEs.
11574 (rtx_equal_p): Likewise.
11575 * ira-costs.c (scan_one_insn): Skip debug insns.
11576 (process_bb_node_for_hard_reg_moves): Likewise.
11577 * rtl.h (DEBUG_INSN_P): New.
11578 (NONDEBUG_INSN_P): New.
11579 (MAY_HAVE_DEBUG_INSNS): New.
11580 (INSN_P): Accept debug insns.
11581 (RTX_FRAME_RELATED_P): Likewise.
11582 (INSN_DELETED_P): Likewise
11583 (PAT_VAR_LOCATION_DECL): New.
11584 (PAT_VAR_LOCATION_LOC): New.
11585 (PAT_VAR_OCATION_STATUS): New.
11586 (NOTE_VAR_LOCATION_DECL): Reimplement.
11587 (NOTE_VAR_LOCATION_LOC): Likewise.
11588 (NOTE_VAR_LOCATION_STATUS): Likewise.
11589 (INSN_VAR_LOCATION): New.
11590 (INSN_VAR_LOCATION_DECL): New.
11591 (INSN_VAR_LOCATION_LOC): New.
11592 (INSN_VAR_LOCATION_STATUS): New.
11593 (gen_rtx_UNKNOWN_VAR_LOC): New.
11594 (VAR_LOC_UNKNOWN_P): New.
11595 (NOTE_DURING_CALL_P): New.
11596 (SCHED_GROUP_P): Accept debug insns.
11597 (emit_debug_insn_before): Declare.
11598 (emit_debug_insn_before_noloc): Declare.
11599 (emit_debug_insn_beore_setloc): Declare.
11600 (emit_debug_insn_after): Declare.
11601 (emit_debug_insn_after_noloc): Declare.
11602 (emit_debug_insn_after_setloc): Declare.
11603 (emit_debug_insn): Declare.
11604 (make_debug_insn_raw): Declare.
11605 (prev_nondebug_insn): Declare.
11606 (next_nondebug_insn): Declare.
11607 (delegitimize_mem_from_attrs): Declare.
11608 (get_max_insn_count): Declare.
11609 (wrap_constant): Declare.
11610 (unwrap_constant): Declare.
11611 (get_curr_insn_source_location): Declare.
11612 (get_curr_insn_block): Declare.
11613 * tree-inline.c (insert_debug_decl_map): New.
11614 (processing_debug_stmt): New.
11615 (remap_decl): Don't create new mappings in debug stmts.
11616 (remap_gimple_op_r): Don't add references in debug stmts.
11617 (copy_tree_body_r): Likewise.
11618 (remap_gimple_stmt): Handle debug bind stmts.
11619 (copy_bb): Skip debug stmts.
11620 (copy_edges_for_bb): Likewise.
11621 (copy_debug_stmt): New.
11622 (copy_debug_stmts): New.
11623 (copy_body): Copy debug stmts at the end.
11624 (insert_init_debug_bind): New.
11625 (insert_init_stmt): Take id. Skip and emit debug stmts.
11626 (setup_one_parameter): Remap variable earlier, register debug mapping.
11627 (estimate_num_insns): Skip debug stmts.
11628 (expand_call_inline): Preserve debug_map.
11629 (optimize_inline_calls): Check for no debug_stmts left-overs.
11630 (unsave_expr_now): Preserve debug_map.
11631 (copy_gimple_seq_and_replace_locals): Likewise.
11632 (tree_function_versioning): Check for no debug_stmts left-overs.
11633 Init and destroy debug_map as needed. Split edges unconditionally.
11634 (build_duplicate_type): Init and destroy debug_map as needed.
11635 * tree-inline.h: Include gimple.h instead of pointer-set.h.
11636 (struct copy_body_data): Add debug_stmts and debug_map.
11637 * sched-int.h (struct ready_list): Add n_debug.
11638 (struct deps): Add last_debug_insn.
11639 (DEBUG_INSN_SCHED_P): New.
11640 (BOUNDARY_DEBUG_INSN_P): New.
11641 (SCHEDULE_DEBUG_INSN_P): New.
11642 (sd_iterator_cond): Accept empty list.
11643 * combine.c (create_log_links): Skip debug insns.
11644 (combine_instructions): Likewise.
11645 (cleanup_auto_inc_dec): New. From Jakub Jelinek: Make sure the
11646 return value is always unshared.
11647 (struct rtx_subst_pair): New.
11648 (auto_adjust_pair): New.
11649 (propagate_for_debug_subst): New.
11650 (propagate_for_debug): New.
11651 (try_combine): Skip debug insns. Propagate removed defs into
11652 debug insns.
11653 (next_nonnote_nondebug_insn): New.
11654 (distribute_notes): Use it. Skip debug insns.
11655 (distribute_links): Skip debug insns.
11656 * tree-outof-ssa.c (set_location_for_edge): Likewise.
11657 * resource.c (mark_target_live_regs): Likewise.
11658 * var-tracking.c: Include cselib.h and target.h.
11659 (enum micro_operation_type): Add MO_VAL_USE, MO_VAL_LOC, and
11660 MO_VAL_SET.
11661 (micro_operation_type_name): New.
11662 (enum emit_note_where): Add EMIT_NOTE_AFTER_CALL_INSN.
11663 (struct micro_operation_def): Update comments.
11664 (decl_or_value): New type. Use instead of decls.
11665 (struct emit_note_data_def): Add vars.
11666 (struct attrs_def): Use decl_or_value.
11667 (struct variable_tracking_info_def): Add permp, flooded.
11668 (struct location_chain_def): Update comment.
11669 (struct variable_part_def): Use decl_or_value.
11670 (struct variable_def): Make var_part a variable length array.
11671 (valvar_pool): New.
11672 (scratch_regs): New.
11673 (cselib_hook_called): New.
11674 (dv_is_decl_p): New.
11675 (dv_is_value_p): New.
11676 (dv_as_decl): New.
11677 (dv_as_value): New.
11678 (dv_as_opaque): New.
11679 (dv_onepart_p): New.
11680 (dv_pool): New.
11681 (IS_DECL_CODE): New.
11682 (check_value_is_not_decl): New.
11683 (dv_from_decl): New.
11684 (dv_from_value): New.
11685 (dv_htab_hash): New.
11686 (variable_htab_hash): Use it.
11687 (variable_htab_eq): Support values.
11688 (variable_htab_free): Free from the right pool.
11689 (attrs_list_member, attrs_list_insert): Use decl_or_value.
11690 (attrs_list_union): Adjust.
11691 (attrs_list_mpdv_union): New.
11692 (tie_break_pointers): New.
11693 (canon_value_cmp): New.
11694 (unshare_variable): Return possibly-modified slot.
11695 (vars_copy_1): Adjust.
11696 (var_reg_decl_set): Adjust. Split out of...
11697 (var_reg_set): ... this.
11698 (get_init_value): Adjust.
11699 (var_reg_delete_and_set): Adjust.
11700 (var_reg_delete): Adjust.
11701 (var_regno_delete): Adjust.
11702 (var_mem_decl_set): Split out of...
11703 (var_mem_set): ... this.
11704 (var_mem_delete_and_set): Adjust.
11705 (var_mem_delete): Adjust.
11706 (val_store): New.
11707 (val_reset): New.
11708 (val_resolve): New.
11709 (variable_union): Adjust. Speed up merge of 1-part vars.
11710 (variable_canonicalize): Use unshared slot.
11711 (VALUED_RECURSED_INTO): New.
11712 (find_loc_in_1pdv): New.
11713 (struct dfset_merge): New.
11714 (insert_into_intersection): New.
11715 (intersect_loc_chains): New.
11716 (loc_cmp): New.
11717 (canonicalize_loc_order_check): New.
11718 (canonicalize_values_mark): New.
11719 (canonicalize_values_star): New.
11720 (variable_merge_over_cur): New.
11721 (variable_merge_over_src): New.
11722 (dataflow_set_merge): New.
11723 (dataflow_set_equiv_regs): New.
11724 (remove_duplicate_values): New.
11725 (struct dfset_post_merge): New.
11726 (variable_post_merge_new_vals): New.
11727 (variable_post_merge_perm_vals): New.
11728 (dataflow_post_merge_adjust): New.
11729 (find_mem_expr_in_1pdv): New.
11730 (dataflow_set_preserve_mem_locs): New.
11731 (dataflow_set_remove_mem_locs): New.
11732 (dataflow_set_clear_at_call): New.
11733 (onepart_variable_different_p): New.
11734 (variable_different_p): Use it.
11735 (dataflow_set_different_1): Adjust. Make detailed dump more verbose.
11736 (track_expr_p): Add need_rtl parameter. Don't generate rtl
11737 if not needed.
11738 (track_loc_p): Pass it true.
11739 (struct count_use_info): New.
11740 (find_use_val): New.
11741 (replace_expr_with_values): New.
11742 (log_op_type): New.
11743 (use_type): New, partially split out of...
11744 (count_uses): ... this. Count new micro-ops.
11745 (count_uses_1): Adjust.
11746 (count_stores): Adjust.
11747 (count_with_sets): New.
11748 (VAL_NEEDS_RESOLUTION): New.
11749 (VAL_HOLDS_TRACK_EXPR): New.
11750 (VAL_EXPR_IS_COPIED): New.
11751 (VAL_EXPR_IS_CLOBBERED): New.
11752 (add_uses): Adjust. Generate new micro-ops.
11753 (add_uses_1): Adjust.
11754 (add_stores): Generate new micro-ops.
11755 (add_with_sets): New.
11756 (find_src_status): Adjust.
11757 (find_src_set_src): Adjust.
11758 (compute_bb_dataflow): Use dataflow_set_clear_at_call.
11759 Handle new micro-ops. Canonicalize value equivalances.
11760 (vt_find_locations): Compute total size of hash tables for
11761 dumping. Perform merge for var-tracking-assignments. Don't
11762 disregard single-block loops.
11763 (dump_attrs_list): Handle decl_or_value.
11764 (dump_variable): Take variable. Deal with decl_or_value.
11765 (dump_variable_slot): New.
11766 (dump_vars): Use it.
11767 (dump_dataflow_sets): Adjust.
11768 (set_slot_part): New, extended to support one-part variables
11769 after splitting out of...
11770 (set_variable_part): ... this.
11771 (clobber_slot_part): New, split out of...
11772 (clobber_variable_part): ... this.
11773 (delete_slot_part): New, split out of...
11774 (delete_variable_part): .... this.
11775 (check_wrap_constant): New.
11776 (vt_expand_loc_callback): New.
11777 (vt_expand_loc): New.
11778 (emit_note_insn_var_location): Adjust. Handle values. Handle
11779 EMIT_NOTE_AFTER_CALL_INSN.
11780 (emit_notes_for_differences_1): Adjust. Handle values.
11781 (emit_notes_for_differences_2): Likewise.
11782 (emit_notes_for_differences): Adjust.
11783 (emit_notes_in_bb): Take pointer to set. Emit AFTER_CALL_INSN notes.
11784 Adjust. Handle new micro-ops.
11785 (vt_add_function_parameters): Adjust. Create and bind values.
11786 (vt_initialize): Adjust. Initialize scratch_regs and
11787 valvar_pool, flooded and perm.. Initialize and use cselib. Log
11788 operations. Move some code to count_with_sets and add_with_sets.
11789 (delete_debug_insns): New.
11790 (vt_debug_insns_local): New.
11791 (vt_finalize): Release permp, valvar_pool, scratch_regs. Finish
11792 cselib.
11793 (var_tracking_main): If var-tracking-assignments is enabled
11794 but var-tracking isn't, delete debug insns and leave. Likewise
11795 if we exceed limits or fail the stack adjustments tests, and
11796 after all var-tracking processing.
11797 More in var-tracking, from Jakub Jelinek <jakub@redhat.com>:
11798 (dataflow_set): Add traversed_vars.
11799 (value_chain, const_value_chain): New typedefs.
11800 (value_chain_pool, value_chains): New variables.
11801 (value_chain_htab_hash, value_chain_htab_eq, add_value_chain,
11802 add_value_chains, add_cselib_value_chains, remove_value_chain,
11803 remove_value_chains, remove_cselib_value_chains): New functions.
11804 (shared_hash_find_slot_unshare_1, shared_hash_find_slot_1,
11805 shared_hash_find_slot_noinsert_1, shared_hash_find_1): New
11806 static inlines.
11807 (shared_hash_find_slot_unshare, shared_hash_find_slot,
11808 shared_hash_find_slot_noinsert, shared_hash_find): Update.
11809 (dst_can_be_shared): New variable.
11810 (unshare_variable): Unshare set->vars if shared, use shared_hash_*.
11811 Clear dst_can_be_shared. If set->traversed_vars is non-NULL and
11812 different from set->vars, look up slot again instead of using the
11813 passed in slot.
11814 (dataflow_set_init): Initialize traversed_vars.
11815 (variable_union): Use shared_hash_*. Use initially NO_INSERT
11816 lookup if set->vars is shared. Don't keep slot cleared before
11817 calling unshare_variable. Unshare set->vars if needed. Adjust
11818 unshare_variable callers. Clear dst_can_be_shared if needed.
11819 Even ->refcount == 1 vars must be unshared if set->vars is shared
11820 and var needs to be modified.
11821 (dataflow_set_union): Set traversed_vars during canonicalization.
11822 (VALUE_CHANGED, DECL_CHANGED): Define.
11823 (set_dv_changed, dv_changed_p): New static inlines.
11824 (track_expr_p): Clear DECL_CHANGED.
11825 (dump_dataflow_sets): Set it.
11826 (variable_was_changed): Call set_dv_changed.
11827 (emit_note_insn_var_location): Likewise.
11828 (changed_variables_stack): New variable.
11829 (check_changed_vars_1, check_changed_vars_2): New functions.
11830 (emit_notes_for_changes): Do nothing if changed_variables is
11831 empty. Traverse changed_variables with check_changed_vars_1,
11832 call check_changed_vars_2 on each changed_variables_stack entry.
11833 (emit_notes_in_bb): Add SET argument. Just clear it at the
11834 beginning, use it instead of local &set, don't destroy it at the end.
11835 (vt_emit_notes): Call dataflow_set_clear early on all
11836 VTI(bb)->out sets, never use them, instead use emit_notes_in_bb
11837 computed set, dataflow_set_clear also VTI(bb)->in when we are
11838 done with the basic block. Initialize changed_variables_stack,
11839 free it afterwards. If ENABLE_CHECKING verify that after noting
11840 differences to an empty set value_chains hash table is empty.
11841 (vt_initialize): Initialize value_chains and value_chain_pool.
11842 (vt_finalize): Delete value_chains htab, free value_chain_pool.
11843 (variable_tracking_main): Call dump_dataflow_sets before calling
11844 vt_emit_notes, not after it.
11845 * tree-flow.h (propagate_defs_into_debug_stmts): Declare.
11846 (propagate_var_def_into_debug_stmts): Declare.
11847 * df-problems.c (df_lr_bb_local_compute): Skip debug insns.
11848 (df_set_note): Reject debug insns.
11849 (df_whole_mw_reg_dead_p): Take added_notes_p argument. Don't
11850 add notes to debug insns.
11851 (df_note_bb_compute): Adjust. Likewise.
11852 (df_simulate_uses): Skip debug insns.
11853 (df_simulate_initialize_backwards): Likewise.
11854 * reg-stack.c (subst_stack_regs_in_debug_insn): New.
11855 (subst_stack_regs_pat): Reject debug insns.
11856 (convert_regs_1): Handle debug insns.
11857 * Makefile.in (TREE_INLINE_H): Take pointer-set.h from GIMPLE_H.
11858 (print-rtl.o): Depend on cselib.h.
11859 (cselib.o): Depend on TREE_PASS_H.
11860 (var-tracking.o): Depend on cselib.h and TARGET_H.
11861 * sched-rgn.c (rgn_estimate_number_of_insns): Discount debug insns.
11862 (init_ready_list): Skip boundary debug insns.
11863 (add_branch_dependences): Skip debug insns.
11864 (free_block_dependencies): Check for blocks with only debug insns.
11865 (compute_priorities): Likewise.
11866 * gimple.c (gss_for_code): Handle GIMPLE_DEBUG.
11867 (gimple_build_with_ops_stat): Take subcode as unsigned. Adjust
11868 all callers.
11869 (gimple_build_debug_bind_stat): New.
11870 (empty_body_p): Skip debug stmts.
11871 (gimple_has_side_effects): Likewise.
11872 (gimple_rhs_has_side_effects): Likewise.
11873 * gimple.h (enum gimple_debug_subcode, GIMPLE_DEBUG_BIND): New.
11874 (gimple_build_debug_bind_stat): Declare.
11875 (gimple_build_debug_bind): Define.
11876 (is_gimple_debug): New.
11877 (gimple_debug_bind_p): New.
11878 (gimple_debug_bind_get_var): New.
11879 (gimple_debug_bind_get_value): New.
11880 (gimple_debug_bind_get_value_ptr): New.
11881 (gimple_debug_bind_set_var): New.
11882 (gimple_debug_bind_set_value): New.
11883 (GIMPLE_DEBUG_BIND_NOVALUE): New internal temporary macro.
11884 (gimple_debug_bind_reset_value): New.
11885 (gimple_debug_bind_has_value_p): New.
11886 (gsi_next_nondebug): New.
11887 (gsi_prev_nondebug): New.
11888 (gsi_start_nondebug_bb): New.
11889 (gsi_last_nondebug_bb): New.
11890 * sched-vis.c (print_pattern): Handle VAR_LOCATION.
11891 (print_insn): Handle DEBUG_INSN.
11892 * tree-cfg.c (remove_bb): Walk stmts backwards. Let loc
11893 of first insn prevail.
11894 (first_stmt): Skip debug stmts.
11895 (first_non_label_stmt): Likewise.
11896 (last_stmt): Likewise.
11897 (has_zero_uses_1): New.
11898 (single_imm_use_1): New.
11899 (verify_gimple_debug): New.
11900 (verify_types_in_gimple_stmt): Handle debug stmts.
11901 (verify_stmt): Likewise.
11902 (debug_loop_num): Skip debug stmts.
11903 (remove_edge_and_dominated_blocks): Remove dominators last.
11904 * tree-ssa-reasssoc.c (rewrite_expr_tree): Propagate into debug stmts.
11905 (linearize_expr): Likewise.
11906 * config/i386/i386.c (ix86_delegitimize_address): Call
11907 default implementation.
11908 * config/ia64/ia64.c (ia64_safe_itanium_class): Handle debug insns.
11909 (group_barrier_needed): Skip debug insns.
11910 (emit_insn_group_barriers): Likewise.
11911 (emit_all_insn_group_barriers): Likewise.
11912 (ia64_variable_issue): Handle debug insns.
11913 (ia64_dfa_new_cycle): Likewise.
11914 (final_emit_insn_group_barriers): Skip debug insns.
11915 (ia64_dwarf2out_def_steady_cfa): Take frame argument. Don't
11916 def cfa without frame.
11917 (process_set): Likewise.
11918 (process_for_unwind_directive): Pass frame on.
11919 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
11920 (rs6000_delegitimize_address): New.
11921 (rs6000_debug_adjust_cost): Handle debug insns.
11922 (is_microcoded_insn): Likewise.
11923 (is_cracked_insn): Likewise.
11924 (is_nonpipeline_insn): Likewise.
11925 (insn_must_be_first_in_group): Likewise.
11926 (insn_must_be_last_in_group): Likewise.
11927 (force_new_group): Likewise.
11928 * cfgrtl.c (rtl_split_block): Emit INSN_DELETED note if block
11929 contains only debug insns.
11930 (rtl_merge_blocks): Skip debug insns.
11931 (purge_dead_edges): Likewise.
11932 (rtl_block_ends_with_call_p): Skip debug insns.
11933 * dce.c (deletable_insn_p): Handle VAR_LOCATION.
11934 (mark_reg_dependencies): Skip debug insns.
11935 * params.def (PARAM_MIN_NONDEBUG_INSN_UID): New.
11936 * tree-ssanames.c (release_ssa_name): Propagate def into debug stmts.
11937 * tree-ssa-threadedge.c
11938 (record_temporary_equivalences_from_stmts): Skip debug stmts.
11939 * regcprop.c (replace_oldest_value_addr): Skip debug insns.
11940 (replace_oldest_value_mem): Use ALL_REGS for debug insns.
11941 (copyprop_hardreg_forward_1): Handle debug insns.
11942 * reload1.c (reload): Skip debug insns. Replace unassigned
11943 pseudos in debug insns with their equivalences.
11944 (eliminate_regs_in_insn): Skip debug insns.
11945 (emit_input_reload_insns): Skip debug insns at first, adjust
11946 them later.
11947 * tree-ssa-operands.c (add_virtual_operand): Reject debug stmts.
11948 (get_indirect_ref_operands): Pass opf_no_vops on.
11949 (get_expr_operands): Likewise. Skip debug stmts.
11950 (parse_ssa_operands): Scan debug insns with opf_no_vops.
11951
11952 2009-09-01 Richard Henderson <rth@redhat.com>
11953
11954 * tree-ssa-ccp.c (ccp_initialize): Make sure to simulate
11955 stmt_ends_pp_p statements at least once.
11956 * tree-vrp.c (vrp_initialize): Likewise.
11957 (vrp_visit_stmt): Be prepared for non-interesting stmts.
11958
11959 2009-09-01 Dodji Seketeli <dodji@redhat.com>
11960
11961 PR bootstrap/41205
11962 Fix AIX bootstrap after PR debug/30161
11963 * dwarf2out.c (make_ith_pack_parameter_name): Don't used strnlen
11964 that is a GNU extension.
11965 (tmpl_value_parm_die_table): Move the definition of this global
11966 outside #ifdef DWARF2_DEBUGGING_INFO region.
11967
11968 2009-09-01 Richard Guenther <rguenther@suse.de>
11969
11970 * tree.c (tree_expr_size): New function.
11971 * tree.h (tree_expr_size): Declare.
11972 * rtlanal.c (rtx_addr_can_trap_p_1): Adjust comment.
11973 * builtins.c (fold_builtin_memory_op): Use tree_expr_size.
11974 * langhooks.c (lhd_expr_size): Remove.
11975 * langhooks.h (struct lang_hooks): Remove expr_size.
11976 * explow.c (expr_size): Use tree_expr_size.
11977 (int_expr_size): Likewise.
11978 * langhooks-def.h (lhd_expr_size): Remove.
11979 (LANG_HOOKS_EXPR_SIZE): Likewise.
11980 (LANG_HOOKS_INITIALIZER): Adjust.
11981
11982 2009-09-01 Richard Guenther <rguenther@suse.de>
11983
11984 * tree-flow.h (mark_addressable): Move declaration ...
11985 * tree.h (mark_addressable): ... here.
11986 * stmt.c (expand_asm_operands): Use mark_addressable, not
11987 lang_hooks.mark_addressable.
11988 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
11989 LANG_HOOKS_MARK_ADDRESSABLE.
11990 * langhooks.h (struct lang_hooks): Remove mark_addressable langhook.
11991 * c-objc-common.h (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
11992
11993 2009-08-31 Chris Demetriou <cgd@google.com>
11994
11995 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never
11996 vectorize if not TARGET_SSE2.
11997
11998 2009-08-31 DJ Delorie <dj@redhat.com>
11999
12000 * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor
12001 registers if no coprocessor is enabled.
12002
12003 2009-08-31 Dodji Seketeli <dodji@redhat.com>
12004
12005 PR debug/30161
12006 * cgraph.h (cgraph_get_node): Declare ...
12007 * cgraph.c (cgraph_get_node): ... new function.
12008 * dwarf2out.c (gen_generic_params_dies,
12009 generic_parameter_die, tree_add_const_value_attribute_for_decl,
12010 make_ith_pack_parameter_name,
12011 append_entry_to_tmpl_value_parm_die_table,
12012 gen_remaining_tmpl_value_param_die_attribute): New functions.
12013 (gen_subprogram_die): Generate debug info for template parameters
12014 if debug info level is higher than DINFO_LEVEL_TERSE.
12015 Use tree_add_const_value_attribute_for_decl instead of
12016 tree_add_const_value_attribute.
12017 (gen_const_die): Use tree_add_const_value_attribute_for_decl
12018 instead of tree_add_const_value_attribute.
12019 (gen_struct_or_union_type_die): Generate debug
12020 info for template parameters if debug info level is higher than
12021 DINFO_LEVEL_TERSE.
12022 (tree_add_const_value_attribute): Handle integral and pointer
12023 constants. Update comment.
12024 (dwarf_tag_name): Support DW_TAG_GNU_template_template_param.
12025 (dwarf_attr_name): Support DW_AT_GNU_template_name.
12026 (reference_to_unused): Fix thinko. Remove redundant predicates from
12027 tests.
12028 (tree_add_const_value_attribute): Make this work for constant
12029 expressions only.
12030 tree_add_const_value_attribute_for_decl is to be used for variable
12031 DECLs now.
12032 (add_location_or_const_value_attribute): Use
12033 tree_add_const_value_attribute_for_decl now.
12034 (dwarf2out_finish): Emit the DW_AT_const_value attribute of
12035 DW_TAG_template_value_param DIEs after function DIEs have been
12036 emitted.
12037 * langhooks.h (lang_hooks_for_types): Add
12038 get_argument_pack_elems.
12039 (lang_hooks_for_decls): Add generic_generic_parameter_decl_p.
12040 (lang_hooks): Added get_innermost_generic_parms,
12041 get_innermost_generic_args.
12042 * langhooks-def.h (LANG_HOOKS_GET_INNERMOST_GENERIC_PARMS,
12043 LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS,
12044 LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS,
12045 LANG_HOOKS_GENERIC_GENERIC_PARAMETER_DECL_P): New language hooks.
12046
12047 2009-08-31 DJ Delorie <dj@redhat.com>
12048
12049 * config/mep/mep.c (machine_function): Add frame_locked flag. Set
12050 it once we start generating the prologue or epilogue.
12051 (mep_call_saves_register): If the frame is locked, re-use
12052 cached values.
12053 (mep_assign_save_slots): New, broken out from mep_expand_prologue.
12054 (mep_expand_prologue): Call it.
12055 (mep_expand_epilogue): Likewise.
12056 (mep_start_function): Use the same logic as mep_expand_prologue.
12057 (mep_pass_by_reference): Make logic more readable.
12058 (mep_return_in_memory): Zero-sized objects are passed in memory.
12059 (mep_reorg_noframe): Make sure we have accurate REG_DEAD notes.
12060
12061 2009-08-31 Richard Guenther <rguenther@suse.de>
12062
12063 * builtins.c (fold_builtin_memory_op): Use the alias oracle
12064 to query if the memory regions for memmove overlap.
12065 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
12066 asserts on pointers, instead deal with odd trees.
12067 (ptr_derefs_may_alias_p): Likewise.
12068 (refs_may_alias_p_1): Constructor bases also never alias.
12069
12070 2009-08-31 Gerald Pfeifer <gerald@pfeifer.com>
12071
12072 * doc/install.texi (Final install): Adjust reference on where to
12073 order printed manuals.
12074
12075 2009-08-30 Olivier Hainque <hainque@adacore.com>
12076
12077 * dwarf2out.c (switch_to_frame_table_section): Move
12078 definition prior to first use.
12079
12080 2009-08-30 Richard Guenther <rguenther@suse.de>
12081
12082 PR tree-optimization/41186
12083 * tree-ssa-alias.c (ptr_deref_may_alias_ref_p): Remove.
12084 (ao_ref_init_from_ptr_and_size): New function.
12085 (ref_maybe_used_by_call_p_1): Be more precise tracking
12086 used ranges for builtin functions.
12087 (ref_maybe_used_by_call_p): Adjust.
12088 (call_may_clobber_ref_p_1): Be more precise tracking clobbered
12089 ranges for builtin functions.
12090 * tree-ssa-alias.h (ao_ref_init_from_ptr_and_size): Declare.
12091
12092 2009-08-30 Alan Modra <amodra@bigpond.net.au>
12093
12094 PR target/41081
12095 * fwprop.c (get_reg_use_in): Delete.
12096 (free_load_extend): New function.
12097 (forward_propagate_subreg): Use it.
12098
12099 2009-08-29 Kaz Kojima <kkojima@gcc.gnu.org>
12100
12101 * config.gcc (sh*-*-elf): Add superh stuff only for sh*-superh-elf.
12102
12103 2009-08-29 Kai Tietz<kai.tietz@onevision.com>
12104
12105 PR/41184
12106 * config/i386.c (ix86_expand_epilogue): Correct stack adjustment for
12107 padding.
12108
12109 2009-08-29 Douglas B Rupp <rupp@gnat.com>
12110
12111 * crtstuff.c (__do_global_dtors_aux): Use atexit if no
12112 fini or fini_array section.
12113
12114 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
12115
12116 * graphite-dependences.c (graphite_legal_transform_bb): Call
12117 pbb_remove_duplicate_pdrs.
12118 * graphite-poly.c (can_collapse_pdr): Removed.
12119 (pdr_find_duplicate): Removed.
12120 (can_collapse_pdrs): New.
12121 (pbb_remove_duplicate_pdrs): New.
12122 (new_poly_dr): Do not look for duplicates.
12123 * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
12124 (PBB_PDR_DUPLICATES_REMOVED): New.
12125 (pbb_remove_duplicate_pdrs): Declared.
12126
12127 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
12128
12129 * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
12130 the strides by multiplying by PDR_NB_REFS.
12131 * graphite-poly.c (can_collapse_pdr): New.
12132 (pdr_find_duplicate): New.
12133 (new_poly_dr): Call pdr_find_duplicate. Collapse duplicate PDRs.
12134 Initialize PDR_NB_REFS.
12135 * graphite-poly.h (struct poly_dr): Add field nb_refs.
12136 (PDR_NB_REFS): New.
12137 (new_poly_dr): Number of subscripts is a graphite_dim_t.
12138
12139 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
12140
12141 PR middle-end/40965
12142 * graphite-poly.c (apply_poly_transforms): Remove legality test before
12143 any transform.
12144
12145 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
12146
12147 * graphite-dependences.c (pddr_original_scattering): Return NULL
12148 for read-read dependence relations.
12149 * graphite-poly.h (enum poly_dr_type): Fix comment.
12150 (pdr_read_p): New.
12151 (pdr_write_p): New.
12152 (pdr_may_write_p): New.
12153
12154 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
12155
12156 * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
12157 (struct poly_dr): Same.
12158 (new_poly_dr): Same.
12159 * graphite-poly.c (new_poly_dr): Same.
12160 * graphite-dependences.c (dot_deps): Disable call to system.
12161
12162 2009-08-28 Cary Coutant <ccoutant@google.com>
12163
12164 PR debug/41063
12165 * dwarf2out.c (gen_type_die_with_usage): Use proper context for
12166 struct/union/enum types local to a function.
12167
12168 2009-08-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
12169 Sebastian Pop <sebastian.pop@amd.com>
12170
12171 * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
12172 pbb_strip_mine_time_depth. Changed the implementation so that
12173 transformation is expressed as a transformation on
12174 time (scatttering) dimensions. Also, ensures that the 2d+1
12175 scheduling format is preserved.
12176 (pbb_strip_mine_profitable_p): Profitability is based on the
12177 iteration number of a given time (scattering) dimension,
12178 and not on a original loop depth dimension.
12179 (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
12180 (pbb_do_strip_mine): Call psct_dynamic_dim.
12181 * graphite-poly.c (pbb_number_of_iterations_at_time): New.
12182 * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
12183 (pbb_nb_dynamic_scattering_transform): New.
12184 (psct_dynamic_dim): New.
12185
12186 2009-08-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
12187
12188 * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
12189 * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
12190 * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
12191 * graphite-interchange.c (build_linearized_memory_access): Same.
12192 (memory_stride_in_loop): Same.
12193
12194 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
12195
12196 * graphite-dependences.c (pddr_original_scattering): New.
12197 (graphite_legal_transform_dr): Call pddr_original_scattering.
12198 (dot_deps_1): New.
12199 (dot_deps): New.
12200 * graphite-dependences.h (dot_deps): Declared.
12201 * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
12202 (print_pdr): Print PDR_ID.
12203 * graphite-poly.h (struct poly_dr): Add field id.
12204 (PDR_ID): New.
12205 (pbb_index): New.
12206 * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
12207
12208 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
12209
12210 * graphite-dependences.c (graphite_carried_dependence_level_k): Do
12211 not delete the original dependence relation.
12212
12213 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
12214
12215 * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
12216 (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
12217 (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
12218 (free_poly_ddr): New.
12219 (pddr_is_empty): New.
12220 (dependence_polyhedron_1): Now returns a poly_ddr_p.
12221 (dependence_polyhedron): Same. Remove useless gcc_assert.
12222 Remove fprintfs.
12223 (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
12224 (graphite_carried_dependence_level_k): Call pddr_is_empty.
12225 * graphite-dependences.h (enum poly_dependence_kind): New.
12226 (poly_dr_pair): Renamed poly_ddr. Added a field kind.
12227 (PDRP_SOURCE): Renamed PDDR_SOURCE.
12228 (PDRP_SINK): Renamed PDDR_SINK.
12229 (PDRP_DDP): Renamed PDDR_DDP.
12230 (PDDR_KIND): New.
12231 (free_poly_ddr): Declared.
12232 * graphite-poly.c (new_scop): Use the new hash function names.
12233 * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
12234 into original_pddrs.
12235 (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
12236
12237 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
12238
12239 * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
12240 bounds with LT_EXPR to make niter analysis more precise on code
12241 generated by Graphite.
12242
12243 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
12244
12245 * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
12246 (graphite_legal_transform_bb): Same.
12247 (poly_drs_may_alias_p): Same.
12248
12249 2009-08-28 Richard Guenther <rguenther@suse.de>
12250
12251 * tree.def: Remove note about obsolete TYPE_NONCOPIED_PARTS.
12252
12253 2009-08-28 Jan Beulich <jbeulich@novell.com>
12254
12255 * config/i386/netware.c: Include langhooks.h.
12256 (i386_nlm_encode_section_info): Simplify.
12257 (netware_override_options): Delete.
12258 * config/i386/netware.h (netware_override_options): Delete
12259 declaration.
12260 (OVERRIDE_OPTIONS): Delete definition.
12261 (SUBTARGET_OVERRIDE_OPTIONS): Define.
12262 (ASM_COMMENT_START): Define.
12263 * config/i386/nwld.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
12264
12265 2009-08-28 Jan Beulich <jbeulich@novell.com>
12266
12267 * configure.ac: For in-tree ld, do a plain version check to
12268 determine whether comdat groups are supported.
12269 * configure: Regenerate.
12270
12271 2009-08-28 Olivier Hainque <hainque@adacore.com>
12272
12273 * collect2.c (DO_COLLECT_EXPORT_LIST): New internal macro,
12274 always defined. Reflect definition or absence of such for
12275 COLLECT_EXPORT_LIST. Readability helper.
12276 (scanfilter): New enum, to help control what symbols
12277 are to be considered or ignored by scan_prog_file.
12278 (enum pass): Rename as "scanpass", moved together with scanfilter
12279 prior to scan_prog_file's prototype.
12280 (scan_prog_file): Accept and honor scanpass and scanfilter arguments.
12281 Group prototype with the scanpass/scanfilter definitions, factorize
12282 head comments for the several implementations at the prototype.
12283 (main): Reorganize the first pass link control to let AIX
12284 drag only the needed frame tables in executables. Prevent
12285 frame tables collection during the scan aimed at static ctors.
12286 Pre-link and scan for frame tables later to compensate.
12287 * doc/tm.texi (ASM_OUTPUT_DWARF_TABLE_REF): New macro.
12288 A C statement to issue assembly directives that create a reference
12289 to the given DWARF table identifier label from the current function
12290 section.
12291 * dwarf2out.c (switch_to_eh_frame_section): Add a BACK argument
12292 to differentiate first time section entry. Only emit a .data
12293 tables start identifier label the first time around.
12294 (switch_to_frame_table_section): New function. Helper for
12295 output_call_frame_info to switch possibly BACK into the eh_frame
12296 or the debug_frame section depending on FOR_EH.
12297 (output_call_frame_info): Use helper to first enter the proper
12298 frame section.
12299 (output_fde): Use ASM_OUTPUT_DWARF_TABLE_REF when defined to
12300 emit a link to the frame table start label from each function
12301 section.
12302 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
12303 New function. Implementation of ASM_OUTPUT_DWARF_TABLE_REF.
12304 * config/rs6000/rs6000-protos.h: Declare it.
12305 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Define.
12306
12307 2009-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
12308
12309 * config/sh/sh.c (split_branches): Check the result of
12310 next_active_insn.
12311
12312 2009-08-27 Steve Ellcey <sje@cup.hp.com>
12313
12314 * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when
12315 using -pthread -fopenmp
12316
12317 2009-08-27 Gerald Pfeifer <gerald@pfeifer.com>
12318
12319 * doc/service.texi (service directory): Update URL.
12320
12321 2009-08-27 Uros Bizjak <ubizjak@gmail.com>
12322
12323 PR rtl-optimization/40861
12324 * simplify-rtx.c (simplify_subreg): Do not call simplify_gen_subreg to
12325 extract word from a multi-word subreg for negative byte positions.
12326
12327 2009-08-27 Tristan Gingold <gingold@adacore.com>
12328 Douglas B Rupp <rupp@gnat.com>
12329
12330 * config/ia64/ia64.c (ia64_attribute_table): Add "common_object" entry.
12331 (SECTION_VMS_OVERLAY): Define.
12332 (ia64_vms_common_object_attribute): Added. Handle the "common_object"
12333 attribute.
12334 (ia64_vms_elf_asm_named_section): Added. Generate .section pseudo-op
12335 for common_object.
12336 (ia64_vms_output_aligned_decl_common): Added. Generate pseudo-op for
12337 common_object declarations.
12338 (ia64_section_type_flags): Set section flag for common_object.
12339 * config/ia64/ia64-protos.h
12340 (ia64_vms_output_aligned_decl_common): Declare.
12341 (ia64_vms_elf_asm_named_section): Declare.
12342
12343 2009-08-27 Michael Matz <matz@suse.de>
12344
12345 * expr.c (expand_expr_real_2): New function taking exploded
12346 unary or binary expression, split out from ...
12347 (expand_expr_real_1): ... here. Move over all unary/binary
12348 switch parts to above function, in particular these codes:
12349 PAREN_EXPR, NOP_EXPR, CONVERT_EXPR, POINTER_PLUS_EXPR, PLUS_EXPR,
12350 MINUS_EXPR, MULT_EXPR, TRUNC_DIV_EXPR, FLOOR_DIV_EXPR, CEIL_DIV_EXPR,
12351 ROUND_DIV_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, TRUNC_MOD_EXPR,
12352 FLOOR_MOD_EXPR, CEIL_MOD_EXPR, ROUND_MOD_EXPR, FIXED_CONVERT_EXPR,
12353 FIX_TRUNC_EXPR, FLOAT_EXPR, NEGATE_EXPR, ABS_EXPR, MAX_EXPR, MIN_EXPR,
12354 BIT_NOT_EXPR, TRUTH_AND_EXPR, BIT_AND_EXPR, TRUTH_OR_EXPR,
12355 BIT_IOR_EXPR, TRUTH_XOR_EXPR, BIT_XOR_EXPR, LROTATE_EXPR, RROTATE_EXPR,
12356 LSHIFT_EXPR, RSHIFT_EXPR, LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR,
12357 NE_EXPR, UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR,
12358 UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_NOT_EXPR, COMPLEX_EXPR,
12359 WIDEN_SUM_EXPR, REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR,
12360 VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
12361 VEC_INTERLEAVE_LOW_EXPR, VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR,
12362 VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR, VEC_UNPACK_FLOAT_HI_EXPR,
12363 VEC_UNPACK_FLOAT_LO_EXPR, VEC_WIDEN_MULT_HI_EXPR,
12364 VEC_WIDEN_MULT_LO_EXPR, VEC_PACK_TRUNC_EXPR, VEC_PACK_SAT_EXPR,
12365 VEC_PACK_FIX_TRUNC_EXPR.
12366 (<case PAREN_EXPR>): Call set_mem_attributes() with type, not the
12367 full expression.
12368
12369 2009-08-27 Richard Guenther <rguenther@suse.de>
12370
12371 * gengtype.c (main): Handle uint64_t.
12372 * ipa-utils.c (get_base_var): Indent properly.
12373 * tree-ssa-live.c (debug_scope_block): New function.
12374 * tree-flow.h (debug_scope_block): Declare.
12375 * tree-ssa-copy.c (replace_exp_1): Add vertical space.
12376 * basic-block.h (enum profile_status): Rename to
12377 enum profile_status_d.
12378 (x_profile_status): Adjust type.
12379
12380 2009-08-27 Dodji Seketeli <dodji@redhat.com>
12381
12382 PR debug/41170
12383 * dwarf2out.c (get_context_die): Declare this static function.
12384 (gen_type_die_with_usage): Make sure a DIE is a generated for
12385 the context of a typedef.
12386
12387 2009-08-26 Anatoly Sokolov <aesok@post.ru>
12388
12389 * doc/invoke.texi (AVR Options): Remove documentation of -minit-stack
12390 switch.
12391
12392 2009-08-26 Richard Sandiford <rdsandiford@googlemail.com>
12393
12394 * config/mips/mips-protos.h (mips_output_sync): Declare.
12395 (mips_sync_loop_insns): Likewise.
12396 (mips_output_sync_loop): Replace first two parameters with an rtx.
12397 * config/mips/mips.c (mips_multi_member): New structure.
12398 (mips_multi_members): New variable.
12399 (mips_multi_start): New function.
12400 (mips_multi_add): Likewise.
12401 (mips_multi_add_insn): Likewise.
12402 (mips_multi_add_label): Likewise.
12403 (mips_multi_last_index): Likewise.
12404 (mips_multi_copy_insn): Likewise.
12405 (mips_multi_set_operand): Likewise.
12406 (mips_multi_write): Likewise.
12407 (mips_print_operand_punctuation): Remove '%|' and '%-'.
12408 (mips_init_print_operand_punct): Update accordingly.
12409 (mips_start_ll_sc_sync_block): New function.
12410 (mips_end_ll_sc_sync_block): Likewise.
12411 (mips_output_sync): Likewise.
12412 (mips_sync_insn1_template): Likewise.
12413 (mips_sync_insn2_template): Likewise.
12414 (mips_get_sync_operand): Likewise.
12415 (mips_process_sync_loop): Likewise.
12416 (mips_output_sync_loop): Use mips_process_sync_loop.
12417 (mips_sync_loop_insns): New function.
12418 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Delete.
12419 (MIPS_COMPARE_AND_SWAP_12): Likewise.
12420 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP): Likewise.
12421 (MIPS_COMPARE_AND_SWAP_12_NONZERO_OP): Likewise.
12422 (MIPS_SYNC_OP, MIPS_SYNC_OP_12): Likewise.
12423 (MIPS_SYNC_OP_12_AND, MIPS_SYNC_OP_12_XOR): Likewise.
12424 (MIPS_SYNC_OLD_OP_12): Likewise.
12425 (MIPS_SYNC_OLD_OP_12_AND, MIPS_SYNC_OLD_OP_12_XOR): Likewise.
12426 (MIPS_SYNC_NEW_OP_12): Likewise.
12427 (MIPS_SYNC_NEW_OP_12_AND, MIPS_SYNC_NEW_OP_12_XOR): Likewise.
12428 (MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP): Likewise.
12429 (MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND): Likewise.
12430 (MIPS_SYNC_EXCHANGE, MIPS_SYNC_EXCHANGE_12): Likewise.
12431 (MIPS_SYNC_EXCHANGE_12_ZERO_OP): Likewise.
12432 (MIPS_SYNC_EXCHANGE_12_NONZER_OP): Likewise.
12433 * config/mips/mips.md (sync_mem): New attribute.
12434 (sync_oldval, sync_newval, sync_inclusive_mask): Likewise.
12435 (sync_exclusive_mask, sync_required_oldval): Likewise.
12436 (sync_insn1_op2, sync_insn1, sync_insn2): Likewise.
12437 (sync_release_barrier): Likewise.
12438 (length): Handle sync loops.
12439 (sync): Use mips_output_sync.
12440 * config/mips/sync.md (*memory_barrier): Use mips_output_sync.
12441 (sync_compare_and_swap<mode>): Set the new sync_* attributes
12442 and use mips_output_sync_loop.
12443 (compare_and_swap_12, sync_add<mode>, sync_<optab>_12): Likewise.
12444 (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
12445 (sync_old_nand_12, sync_new_nand_12, sync_sub<mode>): Likewise.
12446 (sync_old_add<mode>, sync_old_sub<mode>): Likewise.
12447 (sync_new_add<mode>, sync_new_sub<mode>): Likewise.
12448 (sync_<optab><mode>, sync_old_<optab><mode>): Likewise.
12449 (sync_new_<optab><mode>, sync_nand<mode>): Likewise.
12450 (sync_old_nand<mode>, sync_new_nand<mode>): Likewise.
12451 (sync_lock_test_and_set<mode>, test_and_set_12): Likewise.
12452
12453 2009-08-26 Richard Guenther <rguenther@suse.de>
12454
12455 PR middle-end/41163
12456 * gimplify.c (gimplify_addr_expr): Canonicalize ADDR_EXPRs if
12457 the types to not match.
12458 * tree-cfg.c (verify_gimple_assign_single): Adjust ADDR_EXPR
12459 verification.
12460 * tree-ssa.c (useless_type_conversion_p): Conversions to
12461 pointers to unprototyped functions are useless.
12462
12463 2009-08-26 Richard Guenther <rguenther@suse.de>
12464
12465 * tree-ssa-structalias.c (create_variable_info_for): Remove strange
12466 whole-program condition, prepare to be called for non-globals.
12467 (intra_create_variable_infos): For restrict qualified DECL_BY_REFERENCE
12468 params build a representative with known type and track its fields.
12469
12470 2009-08-26 Uros Bizjak <ubizjak@gmail.com>
12471
12472 * config/alpha/sync.md: Update comment about unpredictable LL/SC lock
12473 clearing by a taken branch.
12474 (sync_<fetchop_name><mode>): Split when epilogue_completed is set,
12475 effectively after bbro pass.
12476 (sync_nand<mode>): Ditto.
12477 (sync_old_<fetchop_name><mode>): Ditto.
12478 (sync_old_nand<mode>): Ditto.
12479 (sync_new_<fetchop_name><mode>): Dito.
12480 (sync_new_nand<mode>): Ditto.
12481 (sync_compare_and_swap<mode>_1): Ditto.
12482 (*sync_compare_and_swap<mode>): Ditto.
12483 (sync_lock_test_and_set<mode>_1): Ditto.
12484 ("sync_lock_test_and_set<mode>): Ditto.
12485
12486 2009-08-25 Douglas B Rupp <rupp@gnat.com>
12487
12488 * hwint.h (HOST_LONG_FORMAT): New macro
12489 * bitmap.c, c-decl.c, mips-tfile.c, print-rtl.c, print-tree.c:
12490 Use HOST_PTR_PRINTF.
12491 * system.h (HOST_PTR_PRINTF): Resurrect old macro
12492 * doc/hostconfig.texi (HOST_LONG_FORMAT): Document.
12493 (HOST_PTR_PRINTF): Document.
12494
12495 2009-08-25 Jan Hubicka <jh@suse.cz>
12496
12497 * config/i386/bmmintrin.h: Replace by #error.
12498
12499 Revert:
12500 Michael Meissner <michael.meissner@amd.com>
12501 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
12502 Tony Linthicum <tony.linthicum@amd.com>
12503
12504 * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
12505 (TARGET_ROUND): New macro for the round/ptest instructions which
12506 are shared between SSE4.1 and SSE5.
12507 (OPTION_MASK_ISA_ROUND): Ditto.
12508 (OPTION_ISA_ROUND): Ditto.
12509 (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
12510 (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
12511
12512 * config/i386/i386.opt (-msse5): New switch for SSE5 support.
12513 (-mfused-madd): New switch to give users control over whether the
12514 compiler optimizes to use the multiply/add SSE5 instructions.
12515
12516 * config/i386/i386.c (enum pta_flags): Add PTA_SSE5.
12517 (ix86_handle_option): Turn off 3dnow if -msse5.
12518 (override_options): Add SSE5 support.
12519 (print_operand): %Y prints comparison codes for SSE5 com/pcom
12520 instructions.
12521 (ix86_expand_sse_movcc): Add SSE5 support.
12522 (ix86_expand_sse5_unpack): New function to use pperm to unpack a
12523 vector type to the next largest size.
12524 (ix86_expand_sse5_pack): New function to use pperm to pack a
12525 vector type to the next smallest size.
12526 (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
12527 (IX86_BUILTIN_FMADDSD): Ditto.
12528 (IX86_BUILTIN_FMADDPS): Ditto.
12529 (IX86_BUILTIN_FMADDPD): Ditto.
12530 (IX86_BUILTIN_FMSUBSS): Ditto.
12531 (IX86_BUILTIN_FMSUBSD): Ditto.
12532 (IX86_BUILTIN_FMSUBPS): Ditto.
12533 (IX86_BUILTIN_FMSUBPD): Ditto.
12534 (IX86_BUILTIN_FNMADDSS): Ditto.
12535 (IX86_BUILTIN_FNMADDSD): Ditto.
12536 (IX86_BUILTIN_FNMADDPS): Ditto.
12537 (IX86_BUILTIN_FNMADDPD): Ditto.
12538 (IX86_BUILTIN_FNMSUBSS): Ditto.
12539 (IX86_BUILTIN_FNMSUBSD): Ditto.
12540 (IX86_BUILTIN_FNMSUBPS): Ditto.
12541 (IX86_BUILTIN_FNMSUBPD): Ditto.
12542 (IX86_BUILTIN_PCMOV_V2DI): Ditto.
12543 (IX86_BUILTIN_PCMOV_V4SI): Ditto.
12544 (IX86_BUILTIN_PCMOV_V8HI): Ditto.
12545 (IX86_BUILTIN_PCMOV_V16QI): Ditto.
12546 (IX86_BUILTIN_PCMOV_V4SF): Ditto.
12547 (IX86_BUILTIN_PCMOV_V2DF): Ditto.
12548 (IX86_BUILTIN_PPERM): Ditto.
12549 (IX86_BUILTIN_PERMPS): Ditto.
12550 (IX86_BUILTIN_PERMPD): Ditto.
12551 (IX86_BUILTIN_PMACSSWW): Ditto.
12552 (IX86_BUILTIN_PMACSWW): Ditto.
12553 (IX86_BUILTIN_PMACSSWD): Ditto.
12554 (IX86_BUILTIN_PMACSWD): Ditto.
12555 (IX86_BUILTIN_PMACSSDD): Ditto.
12556 (IX86_BUILTIN_PMACSDD): Ditto.
12557 (IX86_BUILTIN_PMACSSDQL): Ditto.
12558 (IX86_BUILTIN_PMACSSDQH): Ditto.
12559 (IX86_BUILTIN_PMACSDQL): Ditto.
12560 (IX86_BUILTIN_PMACSDQH): Ditto.
12561 (IX86_BUILTIN_PMADCSSWD): Ditto.
12562 (IX86_BUILTIN_PMADCSWD): Ditto.
12563 (IX86_BUILTIN_PHADDBW): Ditto.
12564 (IX86_BUILTIN_PHADDBD): Ditto.
12565 (IX86_BUILTIN_PHADDBQ): Ditto.
12566 (IX86_BUILTIN_PHADDWD): Ditto.
12567 (IX86_BUILTIN_PHADDWQ): Ditto.
12568 (IX86_BUILTIN_PHADDDQ): Ditto.
12569 (IX86_BUILTIN_PHADDUBW): Ditto.
12570 (IX86_BUILTIN_PHADDUBD): Ditto.
12571 (IX86_BUILTIN_PHADDUBQ): Ditto.
12572 (IX86_BUILTIN_PHADDUWD): Ditto.
12573 (IX86_BUILTIN_PHADDUWQ): Ditto.
12574 (IX86_BUILTIN_PHADDUDQ): Ditto.
12575 (IX86_BUILTIN_PHSUBBW): Ditto.
12576 (IX86_BUILTIN_PHSUBWD): Ditto.
12577 (IX86_BUILTIN_PHSUBDQ): Ditto.
12578 (IX86_BUILTIN_PROTB): Ditto.
12579 (IX86_BUILTIN_PROTW): Ditto.
12580 (IX86_BUILTIN_PROTD): Ditto.
12581 (IX86_BUILTIN_PROTQ): Ditto.
12582 (IX86_BUILTIN_PROTB_IMM): Ditto.
12583 (IX86_BUILTIN_PROTW_IMM): Ditto.
12584 (IX86_BUILTIN_PROTD_IMM): Ditto.
12585 (IX86_BUILTIN_PROTQ_IMM): Ditto.
12586 (IX86_BUILTIN_PSHLB): Ditto.
12587 (IX86_BUILTIN_PSHLW): Ditto.
12588 (IX86_BUILTIN_PSHLD): Ditto.
12589 (IX86_BUILTIN_PSHLQ): Ditto.
12590 (IX86_BUILTIN_PSHAB): Ditto.
12591 (IX86_BUILTIN_PSHAW): Ditto.
12592 (IX86_BUILTIN_PSHAD): Ditto.
12593 (IX86_BUILTIN_PSHAQ): Ditto.
12594 (IX86_BUILTIN_FRCZSS): Ditto.
12595 (IX86_BUILTIN_FRCZSD): Ditto.
12596 (IX86_BUILTIN_FRCZPS): Ditto.
12597 (IX86_BUILTIN_FRCZPD): Ditto.
12598 (IX86_BUILTIN_CVTPH2PS): Ditto.
12599 (IX86_BUILTIN_CVTPS2PH): Ditto.
12600 (IX86_BUILTIN_COMEQSS): Ditto.
12601 (IX86_BUILTIN_COMNESS): Ditto.
12602 (IX86_BUILTIN_COMLTSS): Ditto.
12603 (IX86_BUILTIN_COMLESS): Ditto.
12604 (IX86_BUILTIN_COMGTSS): Ditto.
12605 (IX86_BUILTIN_COMGESS): Ditto.
12606 (IX86_BUILTIN_COMUEQSS): Ditto.
12607 (IX86_BUILTIN_COMUNESS): Ditto.
12608 (IX86_BUILTIN_COMULTSS): Ditto.
12609 (IX86_BUILTIN_COMULESS): Ditto.
12610 (IX86_BUILTIN_COMUGTSS): Ditto.
12611 (IX86_BUILTIN_COMUGESS): Ditto.
12612 (IX86_BUILTIN_COMORDSS): Ditto.
12613 (IX86_BUILTIN_COMUNORDSS): Ditto.
12614 (IX86_BUILTIN_COMFALSESS): Ditto.
12615 (IX86_BUILTIN_COMTRUESS): Ditto.
12616 (IX86_BUILTIN_COMEQSD): Ditto.
12617 (IX86_BUILTIN_COMNESD): Ditto.
12618 (IX86_BUILTIN_COMLTSD): Ditto.
12619 (IX86_BUILTIN_COMLESD): Ditto.
12620 (IX86_BUILTIN_COMGTSD): Ditto.
12621 (IX86_BUILTIN_COMGESD): Ditto.
12622 (IX86_BUILTIN_COMUEQSD): Ditto.
12623 (IX86_BUILTIN_COMUNESD): Ditto.
12624 (IX86_BUILTIN_COMULTSD): Ditto.
12625 (IX86_BUILTIN_COMULESD): Ditto.
12626 (IX86_BUILTIN_COMUGTSD): Ditto.
12627 (IX86_BUILTIN_COMUGESD): Ditto.
12628 (IX86_BUILTIN_COMORDSD): Ditto.
12629 (IX86_BUILTIN_COMUNORDSD): Ditto.
12630 (IX86_BUILTIN_COMFALSESD): Ditto.
12631 (IX86_BUILTIN_COMTRUESD): Ditto.
12632 (IX86_BUILTIN_COMEQPS): Ditto.
12633 (IX86_BUILTIN_COMNEPS): Ditto.
12634 (IX86_BUILTIN_COMLTPS): Ditto.
12635 (IX86_BUILTIN_COMLEPS): Ditto.
12636 (IX86_BUILTIN_COMGTPS): Ditto.
12637 (IX86_BUILTIN_COMGEPS): Ditto.
12638 (IX86_BUILTIN_COMUEQPS): Ditto.
12639 (IX86_BUILTIN_COMUNEPS): Ditto.
12640 (IX86_BUILTIN_COMULTPS): Ditto.
12641 (IX86_BUILTIN_COMULEPS): Ditto.
12642 (IX86_BUILTIN_COMUGTPS): Ditto.
12643 (IX86_BUILTIN_COMUGEPS): Ditto.
12644 (IX86_BUILTIN_COMORDPS): Ditto.
12645 (IX86_BUILTIN_COMUNORDPS): Ditto.
12646 (IX86_BUILTIN_COMFALSEPS): Ditto.
12647 (IX86_BUILTIN_COMTRUEPS): Ditto.
12648 (IX86_BUILTIN_COMEQPD): Ditto.
12649 (IX86_BUILTIN_COMNEPD): Ditto.
12650 (IX86_BUILTIN_COMLTPD): Ditto.
12651 (IX86_BUILTIN_COMLEPD): Ditto.
12652 (IX86_BUILTIN_COMGTPD): Ditto.
12653 (IX86_BUILTIN_COMGEPD): Ditto.
12654 (IX86_BUILTIN_COMUEQPD): Ditto.
12655 (IX86_BUILTIN_COMUNEPD): Ditto.
12656 (IX86_BUILTIN_COMULTPD): Ditto.
12657 (IX86_BUILTIN_COMULEPD): Ditto.
12658 (IX86_BUILTIN_COMUGTPD): Ditto.
12659 (IX86_BUILTIN_COMUGEPD): Ditto.
12660 (IX86_BUILTIN_COMORDPD): Ditto.
12661 (IX86_BUILTIN_COMUNORDPD): Ditto.
12662 (IX86_BUILTIN_COMFALSEPD): Ditto.
12663 (IX86_BUILTIN_COMTRUEPD): Ditto.
12664 (IX86_BUILTIN_PCOMEQUB): Ditto.
12665 (IX86_BUILTIN_PCOMNEUB): Ditto.
12666 (IX86_BUILTIN_PCOMLTUB): Ditto.
12667 (IX86_BUILTIN_PCOMLEUB): Ditto.
12668 (IX86_BUILTIN_PCOMGTUB): Ditto.
12669 (IX86_BUILTIN_PCOMGEUB): Ditto.
12670 (IX86_BUILTIN_PCOMFALSEUB): Ditto.
12671 (IX86_BUILTIN_PCOMTRUEUB): Ditto.
12672 (IX86_BUILTIN_PCOMEQUW): Ditto.
12673 (IX86_BUILTIN_PCOMNEUW): Ditto.
12674 (IX86_BUILTIN_PCOMLTUW): Ditto.
12675 (IX86_BUILTIN_PCOMLEUW): Ditto.
12676 (IX86_BUILTIN_PCOMGTUW): Ditto.
12677 (IX86_BUILTIN_PCOMGEUW): Ditto.
12678 (IX86_BUILTIN_PCOMFALSEUW): Ditto.
12679 (IX86_BUILTIN_PCOMTRUEUW): Ditto.
12680 (IX86_BUILTIN_PCOMEQUD): Ditto.
12681 (IX86_BUILTIN_PCOMNEUD): Ditto.
12682 (IX86_BUILTIN_PCOMLTUD): Ditto.
12683 (IX86_BUILTIN_PCOMLEUD): Ditto.
12684 (IX86_BUILTIN_PCOMGTUD): Ditto.
12685 (IX86_BUILTIN_PCOMGEUD): Ditto.
12686 (IX86_BUILTIN_PCOMFALSEUD): Ditto.
12687 (IX86_BUILTIN_PCOMTRUEUD): Ditto.
12688 (IX86_BUILTIN_PCOMEQUQ): Ditto.
12689 (IX86_BUILTIN_PCOMNEUQ): Ditto.
12690 (IX86_BUILTIN_PCOMLTUQ): Ditto.
12691 (IX86_BUILTIN_PCOMLEUQ): Ditto.
12692 (IX86_BUILTIN_PCOMGTUQ): Ditto.
12693 (IX86_BUILTIN_PCOMGEUQ): Ditto.
12694 (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
12695 (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
12696 (IX86_BUILTIN_PCOMEQB): Ditto.
12697 (IX86_BUILTIN_PCOMNEB): Ditto.
12698 (IX86_BUILTIN_PCOMLTB): Ditto.
12699 (IX86_BUILTIN_PCOMLEB): Ditto.
12700 (IX86_BUILTIN_PCOMGTB): Ditto.
12701 (IX86_BUILTIN_PCOMGEB): Ditto.
12702 (IX86_BUILTIN_PCOMFALSEB): Ditto.
12703 (IX86_BUILTIN_PCOMTRUEB): Ditto.
12704 (IX86_BUILTIN_PCOMEQW): Ditto.
12705 (IX86_BUILTIN_PCOMNEW): Ditto.
12706 (IX86_BUILTIN_PCOMLTW): Ditto.
12707 (IX86_BUILTIN_PCOMLEW): Ditto.
12708 (IX86_BUILTIN_PCOMGTW): Ditto.
12709 (IX86_BUILTIN_PCOMGEW): Ditto.
12710 (IX86_BUILTIN_PCOMFALSEW): Ditto.
12711 (IX86_BUILTIN_PCOMTRUEW): Ditto.
12712 (IX86_BUILTIN_PCOMEQD): Ditto.
12713 (IX86_BUILTIN_PCOMNED): Ditto.
12714 (IX86_BUILTIN_PCOMLTD): Ditto.
12715 (IX86_BUILTIN_PCOMLED): Ditto.
12716 (IX86_BUILTIN_PCOMGTD): Ditto.
12717 (IX86_BUILTIN_PCOMGED): Ditto.
12718 (IX86_BUILTIN_PCOMFALSED): Ditto.
12719 (IX86_BUILTIN_PCOMTRUED): Ditto.
12720 (IX86_BUILTIN_PCOMEQQ): Ditto.
12721 (IX86_BUILTIN_PCOMNEQ): Ditto.
12722 (IX86_BUILTIN_PCOMLTQ): Ditto.
12723 (IX86_BUILTIN_PCOMLEQ): Ditto.
12724 (IX86_BUILTIN_PCOMGTQ): Ditto.
12725 (IX86_BUILTIN_PCOMGEQ): Ditto.
12726 (IX86_BUILTIN_PCOMFALSEQ): Ditto.
12727 (IX86_BUILTIN_PCOMTRUEQ): Ditto.
12728 (enum multi_arg_type): New enum for describing the various SSE5
12729 intrinsic argument types.
12730 (bdesc_multi_arg): New table for SSE5 intrinsics.
12731 (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
12732 (ix86_expand_multi_arg_builtin): New function for creating SSE5
12733 intrinsics.
12734 (ix86_expand_builtin): Add SSE5 intrinsic support.
12735 (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
12736 operand instructions.
12737 (ix86_expand_sse5_multiple_memory): New function to split the
12738 second memory reference from SSE5 instructions.
12739 (type_has_variadic_args_p): Delete in favor of stdarg_p.
12740 (ix86_return_pops_args): Use stdarg_p to determine if the function
12741 has variable arguments.
12742 (ix86_setup_incoming_varargs): Ditto.
12743 (x86_this_parameter): Ditto.
12744
12745 * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
12746 declaration.
12747 (ix86_expand_sse5_pack): Ditto.
12748 (ix86_sse5_valid_op_p): Ditto.
12749 (ix86_expand_sse5_multiple_memory): Ditto.
12750
12751 * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
12752 constant for SSE5 support.
12753 (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
12754 (UNSPEC_SSE5_TRUEFALSE): Ditto.
12755 (UNSPEC_SSE5_PERMUTE): Ditto.
12756 (UNSPEC_SSE5_ASHIFT): Ditto.
12757 (UNSPEC_SSE5_LSHIFT): Ditto.
12758 (UNSPEC_FRCZ): Ditto.
12759 (UNSPEC_CVTPH2PS): Ditto.
12760 (UNSPEC_CVTPS2PH): Ditto.
12761 (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
12762 (PCOM_TRUE): Ditto.
12763 (COM_FALSE_S): Ditto.
12764 (COM_FALSE_P): Ditto.
12765 (COM_TRUE_S): Ditto.
12766 (COM_TRUE_P): Ditto.
12767 (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
12768 (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
12769 types.
12770 (memory attribute): Ditto.
12771 (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
12772 Use SSE4_1_ROUND_* constants instead of hard coded numbers.
12773 (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
12774 (floor<mode>2): Ditto.
12775 (ceil<mode>2): Ditto.
12776 (btrunc<mode>2): Ditto.
12777 (nearbyintdf2): Ditto.
12778 (nearbyintsf2): Ditto.
12779 (sse_setccsf): Disable if SSE5.
12780 (sse_setccdf): Ditto.
12781 (sse5_setcc<mode>): New support for SSE5 conditional move.
12782 (sse5_pcmov_<mode>): Ditto.
12783
12784 * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
12785 (SSEMODEF4): Ditto.
12786 (SSEMODEF2P): Ditto.
12787 (ssemodesuffixf4): New mode attribute for SSE5.
12788 (ssemodesuffixf2s): Ditto.
12789 (ssemodesuffixf2c): Ditto.
12790 (sserotatemax): Ditto.
12791 (ssescalarmode): Ditto.
12792 (sse_maskcmpv4sf3): Disable if SSE5.
12793 (sse_maskcmpv2df3): Ditto.
12794 (sse_vmmaskcmpv4sf3): Ditto.
12795 (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add instructions.
12796 (sse5_vmfmadd<mode>4): Ditto.
12797 (sse5_fmsub<mode>4): Ditto.
12798 (sse5_vmfmsub<mode>4): Ditto.
12799 (sse5_fnmadd<mode>4): Ditto.
12800 (sse5_vmfnmadd<mode>4): Ditto.
12801 (sse5_fnmsub<mode>4): Ditto.
12802 (sse5_vmfnmsub<mode>4): Ditto.
12803 (sse5i_fmadd<mode>4): Ditto.
12804 (sse5i_fmsub<mode>4): Ditto.
12805 (sse5i_fnmadd<mode>4): Ditto.
12806 (sse5i_fnmsub<mode>4): Ditto.
12807 (sse5i_vmfmadd<mode>4): Ditto.
12808 (sse5i_vmfmsub<mode>4): Ditto.
12809 (sse5i_vmfnmadd<mode>4): Ditto.
12810 (sse5i_vmfnmsub<mode>4): Ditto.
12811 (mulv16qi3): Add SSE5 support.
12812 (mulv4si3): Ditto.
12813 (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
12814 (sse2_mulv4si3): Disable if SSE5.
12815 (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
12816 (sse4_1_roundps): Ditto.
12817 (sse4_1_roundsd): Ditto.
12818 (sse4_1_roundss): Ditto.
12819 (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
12820 be generated.
12821 (sse_maskcmpsf3): Ditto.
12822 (sse_vmmaskcmpv4sf3): Ditto.
12823 (sse2_maskcmpv2df3): Ditto.
12824 (sse2_maskcmpdf3): Ditto.
12825 (sse2_vmmaskcmpv2df3): Ditto.
12826 (sse2_eq<mode>3): Ditto.
12827 (sse2_gt<mode>3): Ditto.
12828 (sse5_pcmov_<mode>): Add SSE5 support.
12829 (vec_unpacku_hi_v16qi): Ditto.
12830 (vec_unpacks_hi_v16qi): Ditto.
12831 (vec_unpacku_lo_v16qi): Ditto.
12832 (vec_unpacks_lo_v16qi): Ditto.
12833 (vec_unpacku_hi_v8hi): Ditto.
12834 (vec_unpacks_hi_v8hi): Ditto.
12835 (vec_unpacku_lo_v8hi): Ditto.
12836 (vec_unpacks_lo_v8hi): Ditto.
12837 (vec_unpacku_hi_v4si): Ditto.
12838 (vec_unpacks_hi_v4si): Ditto.
12839 (vec_unpacku_lo_v4si): Ditto.
12840 (vec_unpacks_lo_v4si): Ditto.
12841 (sse5_pmacsww): New SSE5 intrinsic insn.
12842 (sse5_pmacssww): Ditto.
12843 (sse5_pmacsdd): Ditto.
12844 (sse5_pmacssdd): Ditto.
12845 (sse5_pmacssdql): Ditto.
12846 (sse5_pmacssdqh): Ditto.
12847 (sse5_pmacsdqh): Ditto.
12848 (sse5_pmacsswd): Ditto.
12849 (sse5_pmacswd): Ditto.
12850 (sse5_pmadcsswd): Ditto.
12851 (sse5_pmadcswd): Ditto.
12852 (sse5_pcmov_<move>): Conditional move support on SSE5.
12853 (sse5_phaddbw): New SSE5 intrinsic insn.
12854 (sse5_phaddbd): Ditto.
12855 (sse5_phaddbq): Ditto.
12856 (sse5_phaddwd): Ditto.
12857 (sse5_phaddwq): Ditto.
12858 (sse5_phadddq): Ditto.
12859 (sse5_phaddubw): Ditto.
12860 (sse5_phaddubd): Ditto.
12861 (sse5_phaddubq): Ditto.
12862 (sse5_phadduwd): Ditto.
12863 (sse5_phadduwq): Ditto.
12864 (sse5_phaddudq): Ditto.
12865 (sse5_phsubbw): Ditto.
12866 (sse5_phsubwd): Ditto.
12867 (sse5_phsubdq): Ditto.
12868 (sse5_pperm): Ditto.
12869 (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
12870 (sse5_pperm_zero_v16qi_v8hi): Ditto.
12871 (sse5_pperm_sign_v8hi_v4si): Ditto.
12872 (sse5_pperm_zero_v8hi_v4si): Ditto.
12873 (sse5_pperm_sign_v4si_v2di): Ditto.
12874 (sse5_pperm_sign_v4si_v2di): Ditto.
12875 (sse5_pperm_pack_v2di_v4si): Ditto.
12876 (sse5_pperm_pack_v4si_v8hi): Ditto.
12877 (sse5_pperm_pack_v8hi_v16qi): Ditto.
12878 (sse5_perm<mode>): New SSE5 intrinsic insn.
12879 (rotl<mode>3): Ditto.
12880 (sse5_rotl<mode>3): Ditto.
12881 (sse5_ashl<mode>3): Ditto.
12882 (sse5_lshl<mode>3): Ditto.
12883 (sse5_frcz<mode>2): Ditto.
12884 (sse5s_frcz<mode>2): Ditto.
12885 (sse5_cvtph2ps): Ditto.
12886 (sse5_cvtps2ph): Ditto.
12887 (sse5_vmmaskcmp<mode>3): Ditto.
12888 (sse5_com_tf<mode>3): Ditto.
12889 (sse5_maskcmp<mode>3): Ditto.
12890 (sse5_maskcmp_uns<mode>3): Ditto.
12891 (sse5_maskcmp_uns2<mode>3): Ditto.
12892 (sse5_pcom_tf<mode>3): Ditto.
12893
12894 * config/i386/predicates.md (sse5_comparison_float_operator):
12895 New predicate to match the comparison operators supported by
12896 the SSE5 com instruction.
12897 (ix86_comparison_int_operator): New predicate to match just the
12898 signed int comparisons.
12899 (ix86_comparison_uns_operator): New predicate to match just the
12900 unsigned int comparisons.
12901
12902 * doc/invoke.texi (-msse5): Add documentation.
12903 (-mfused-madd): Ditto.
12904
12905 * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
12906
12907 * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
12908 mmintrin-common.h.
12909 (x86_64-*-*): Ditto.
12910
12911 * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
12912
12913 * config/i386/bmmintrin.h: New file, provide common x86 compiler
12914 intrinisics for SSE5.
12915
12916 * config/i386/smmintrin.h: Move instructions shared with SSE5 to
12917 mmintrin-common.h.
12918
12919 * config/i386/mmintrin-common.h: New file, to contain common
12920 instructions between SSE4.1 and SSE5.
12921
12922 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
12923 FOREACH_FUNCTION_ARGS to iterate over the argument list.
12924 (gen_regparm_prefix): Ditto.
12925
12926 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
12927 FOREACH_FUNCTION_ARGS to iterate over the argument list. Use
12928 prototype_p to determine if a function is prototyped.
12929
12930 2009-08-25 Ville Voutilainen <ville.voutilainen@gmail.com>
12931
12932 * c-common.c (c_common_reswords) add the alignof keyword,
12933 with same RID as __alignof and __alignof__
12934
12935 2009-08-25 Anatoly Sokolov <aesok@post.ru>
12936
12937 * hooks.h (hook_bool_const_int_const_int_true): Declare.
12938 * hooks.c (hook_bool_const_int_const_int_true): New function.
12939 * target.h (struct gcc_target): Add can_eliminate field.
12940 * target-def.h (TARGET_CAN_ELIMINATE): Define.
12941 (TARGET_INITIALIZER): Use TARGET_CAN_ELIMINATE.
12942 * ira.c (setup_eliminable_regset): Use can_eliminate target hook.
12943 * reload1.c (update_eliminables, init_elim_table): (Ditto.).
12944 (elim_table): Revise comment.
12945 * system.h (CAN_ELIMINATE): Poison.
12946 * defaults.h (CAN_ELIMINATE): Remove.
12947 * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
12948
12949 * config/alpha/vms.h (CAN_ELIMINATE): Remove macro.
12950 * config/alpha/alpha.c (TARGET_CAN_ELIMINATE) [TARGET_ABI_OPEN_VMS]:
12951 Define macro.
12952 (alpha_vms_can_eliminate): Declare as static, change return type to
12953 bool.
12954 * config/alpha/alpha-protos.h (alpha_vms_can_eliminate): Remove.
12955
12956 * config/arm/arm.h (CAN_ELIMINATE): Remove macro.
12957 * config/arm/arm.c (TARGET_CAN_ELIMINATE): Define macro.
12958 (arm_can_eliminate): New function.
12959
12960 * config/avr/avr.h (CAN_ELIMINATE): Remove macro.
12961 * config/avr/avr.c (TARGET_CAN_ELIMINATE): Define macro.
12962 (avr_can_eliminate): Declare as static.
12963 * config/avr/avr-protos.h (avr_can_eliminate): Remove.
12964
12965 * config/bfin/bfin.h (CAN_ELIMINATE): Remove macro.
12966 * config/bfin/bfin.c (TARGET_CAN_ELIMINATE): Define macro.
12967 (bfin_can_eliminate): New function.
12968
12969 * config/crx/crx.h (CAN_ELIMINATE): Remove macro.
12970 * config/crx/crx.c (TARGET_CAN_ELIMINATE): Define macro.
12971 (crx_can_eliminate): New function.
12972
12973 * config/fr30/fr30.h (CAN_ELIMINATE): Remove macro.
12974 * config/fr30/fr30.c (TARGET_CAN_ELIMINATE): Define macro.
12975 (fr30_can_eliminate): New function.
12976
12977 * config/frv/frv.h (CAN_ELIMINATE): Remove macro.
12978 * config/frv/frv.c (TARGET_CAN_ELIMINATE): Define macro.
12979 (frv_can_eliminate): New function.
12980
12981 * config/h8300/h8300.h (CAN_ELIMINATE): Remove macro.
12982 * config/h8300/h8300.c (TARGET_CAN_ELIMINATE): Define macro.
12983 (h8300_can_eliminate): New function.
12984
12985 * config/i386/i386.h (CAN_ELIMINATE): Remove macro.
12986 * config/i386/i386.c (TARGET_CAN_ELIMINATE): Define macro.
12987 (i386_can_eliminate): Declare as static, change return type to bool.
12988 * config/i386/i386-protos.h (i386_can_eliminate): Remove.
12989
12990 * config/ia64/ia64.h (CAN_ELIMINATE): Remove macro.
12991 * config/ia64/ia64.c (TARGET_CAN_ELIMINATE): Define macro.
12992 (ia64_can_eliminate): New function.
12993
12994 * config/iq2000/iq2000.h (CAN_ELIMINATE): Remove macro.
12995 * config/iq2000/iq2000.c (TARGET_CAN_ELIMINATE): Define macro.
12996 (iq2000_can_eliminate): New function.
12997
12998 * config/m32r/m32r.h (CAN_ELIMINATE): Remove macro.
12999 * config/m32r/m32r.c (TARGET_CAN_ELIMINATE): Define macro.
13000 (m32r_can_eliminate): New function.
13001
13002 * config/m68hc11/m68hc11.h (CAN_ELIMINATE): Remove macro.
13003 * config/m68hc11/m68hc11.c (TARGET_CAN_ELIMINATE): Define macro.
13004 (m68hc11_can_eliminate): New function.
13005
13006 * config/m68k/m68k.h (CAN_ELIMINATE): Remove macro.
13007 * config/m68k/m68k.c (TARGET_CAN_ELIMINATE): Define macro.
13008 (m68k_can_eliminate): New function.
13009
13010 * config/mep/mep.h (CAN_ELIMINATE): Remove macro.
13011 * config/mep/mep.c (TARGET_CAN_ELIMINATE): Define macro.
13012 (mep_can_eliminate): New function.
13013
13014 * config/mips/mips.h (CAN_ELIMINATE): Remove macro.
13015 * config/mips/mips.c (TARGET_CAN_ELIMINATE): Define macro.
13016 (mips_can_eliminate): New function.
13017
13018 * config/rs6000/rs6000.h (CAN_ELIMINATE): Remove macro.
13019 * config/rs6000/rs6000.c (TARGET_CAN_ELIMINATE): Define macro.
13020 (rs6000_can_eliminate): New function.
13021
13022 * config/s390/s390.h (CAN_ELIMINATE): Remove macro.
13023 * config/s390/s390.c (TARGET_CAN_ELIMINATE): Define macro.
13024 (s390_can_eliminate): Declare as static.
13025 * config/s390/s390-protos.h (sparc_can_eliminate): Remove.
13026
13027 * config/score/score.h (CAN_ELIMINATE): Remove macro.
13028 * config/score/score.c (TARGET_CAN_ELIMINATE): Define macro.
13029 (score_can_eliminate): New function.
13030
13031 * config/sparc/sparc.h (CAN_ELIMINATE): Remove macro.
13032 * config/sparc/sparc.c (TARGET_CAN_ELIMINATE): Define macro.
13033 (sparc_can_eliminate): Declare as static.
13034 * config/sparc/sparc-protos.h (sparc_can_eliminate): Remove.
13035
13036 * config/stormy16/stormy16.h (CAN_ELIMINATE): Remove macro.
13037 * config/stormy16/stormy16.c (TARGET_CAN_ELIMINATE): Define macro.
13038 (xstormy16_can_eliminate): New function.
13039
13040 * config/v850/v850.h (CAN_ELIMINATE): Remove macro.
13041 * config/v850/v850.c (TARGET_CAN_ELIMINATE): Define macro.
13042 (v850_can_eliminate): New function.
13043
13044 2009-08-25 Uros Bizjak <ubizjak@gmail.com>
13045
13046 * config/alpha/alpha.md (*cmpdf_ieee_ext[123]): Remove.
13047 (*cmpdf_internal): Enable for all ALPHA_FPTM levels.
13048 (*movdfcc_ext[1234]): Disable for IEEE mode.
13049
13050 2009-08-25 Eric Botcazou <ebotcazou@adacore.com>
13051
13052 * gimplify.c (prepare_gimple_addressable): New static function.
13053 (gimplify_modify_expr_to_memcpy): Invoke it on the RHS before marking
13054 it addressable.
13055 (gimplify_addr_expr): Invoke it similarly on the operand instead of
13056 manually fiddling with it.
13057
13058 2009-08-25 Michael Matz <matz@suse.de>
13059
13060 * expr.h (jumpifnot_1, jumpif_1, do_jump_1): Declare.
13061 * dojump.c (do_jump_by_parts_greater): Take two operands instead of
13062 full expression.
13063 (do_jump_by_parts_equality, do_compare_and_jump): Ditto.
13064 (jumpifnot_1, jumpif_1): New wrappers for do_jump_1.
13065 (do_jump): Split out code for simple binary comparisons into ...
13066 (do_jump_1): ... this, taking the individual operands and code.
13067 Change callers to helper function above accordingly.
13068 * expr.c (expand_expr_real_1): Use jumpifnot_1 for simple binary
13069 comparisons.
13070
13071 2009-08-25 Michael Matz <matz@suse.de>
13072
13073 * expr.h (struct separate_ops, sepops): New type for passing
13074 around an exploded simple expression.
13075 * optabs.c (expand_widen_pattern_expr, expand_vec_shift_expr):
13076 Use this structure instead of expression tree.
13077 (get_vcond_icode, expand_vec_cond_expr_p): Don't take whole
13078 expression, only its type.
13079 (expand_vec_cond_expr): Take type and individual operands instead
13080 of full expression.
13081 * optabs.h (expand_widen_pattern_expr, expand_vec_cond_expr,
13082 expand_vec_shift_expr): Change prototype accordingly.
13083 * tree-vect-stmts.c (vectorizable_condition): Change call of
13084 expand_vec_cond_expr_p to pass only type.
13085 * expr.c (do_store_flags): Change prototype and implementation
13086 to take an exploded expression.
13087 (expand_expr_real_1): New local ops initialized with details
13088 of the full expression. Use it instead of full
13089 expression in calls to do_store_flags, expand_vec_cond_expr,
13090 expand_widen_pattern_expr and expand_vec_shift_expr.
13091
13092 2009-08-25 Michael Matz <matz@suse.de>
13093
13094 * expr.c (expand_expr_real_1): New local treeop0, treeop1,
13095 treeop2 initialized with first three operands of the full expression.
13096 Substitute all TREE_OPERAND (exp, [012]) calls with them.
13097
13098 2009-08-25 Kai Tietz <kai.tietz@onevision.com>
13099
13100 * gcc/gthr-win32.h (__UNUSED_PARAM): Define, if not already present.
13101 (__gthread_objc_condition_allocate): Mark arguments as unused.
13102 (__gthread_objc_condition_deallocate): Likewise.
13103 (__gthread_objc_condition_wait): Likewise.
13104 (__gthread_objc_condition_broadcast): Likewise.
13105 (__gthread_objc_condition_signal): Likewise.
13106 (__gthread_objc_thread_detach): Cast via INT_PTR to pointer.
13107 (__gthread_objc_thread_id): Likewise.
13108
13109 2009-08-25 Janus Weil <janus@gcc.gnu.org>
13110
13111 PR middle-end/41149
13112 * tree-pretty-print.c (print_call_name): Print the correct call name
13113 for procedure pointer components.
13114
13115 2009-08-24 Steve Ellcey <sje@cup.hp.com>
13116
13117 * config/ia64/ia64.c (ia64_promote_function_mode): Call
13118 default_promote_function_mode when not VMS.
13119
13120 2009-08-24 Olivier Hainque <hainque@adacore.com>
13121
13122 * convert.c (convert_to_integer): Don't assume an input pointer is
13123 POINTER_SIZE wide. Fetch from the type instead.
13124
13125 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13126
13127 * configure.ac (AC_PREREQ): Bump to 2.64.
13128
13129 2009-08-24 Rafael Avila de Espindola <espindola@google.com>
13130
13131 * gcc.c (standard_exec_prefix_1,standard_exec_prefix_2): Remove.
13132 (process_command): Don't search standard_exec_prefix_1 and
13133 standard_exec_prefix_2.
13134
13135 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13136
13137 * config/arm/arm.c (output_return_instruction): Handle for
13138 unified syntax.
13139
13140 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13141
13142 * config/arm/arm.c (arm_select_cc_mode): Handle subreg.
13143
13144 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13145
13146 * config/arm/vfp.md (*arm_movdi_vfp): Mark as predicable.
13147 (*arm_movdf_vfp): Likewise.
13148
13149 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13150
13151 * config/arm/neon.md (vashl<mode>3): Rename from ashl<mode>3.
13152 (vashr<mode>3): Rename from ashr<mode>3.
13153 (vlshr<mode>3): Rename from lshr<mode>3.
13154
13155 2009-08-24 Kai Tietz <kai.tietz@onevision.com>
13156
13157 PR/40786
13158 * c-format.c (format_wanted_type): Add new member scalar_identity_flag.
13159 (check_format_info_main): Use scalar_identify_flag.
13160 (check_format_types): Check for scalar size identity if
13161 scalar_identify_flag is set.
13162 (printf_length_specs): Extend by new field.
13163 (asm_fprintf_length_specs): Likewise.
13164 (gcc_diag_length_specs): Likewise.
13165 (scanf_length_specs): Likewise.
13166 (strfmon_length_specs): Likewise.
13167 (gcc_gfc_length_specs): Likewise.
13168 * config/i386/msformat-c.c (ms_printf_length_specs): Likewise.
13169 (ms_printf_flag_specs): Likewise.
13170 * c-format.h (format_length_info): Add new member scalar_identity_flag.
13171
13172 2009-08-23 Uros Bizjak <ubizjak@gmail.com>
13173
13174 PR target/40718
13175 * config/i386/i386.c (*call_pop_1): Disable for sibling calls.
13176 (*call_value_pop_1): Ditto.
13177 (*sibcall_pop_1): New insn pattern.
13178 (*sibcall_value_pop_1): Ditto.
13179
13180 2009-08-23 Alan Modra <amodra@bigpond.net.au>
13181
13182 PR target/41081
13183 * config/rs6000/rs6000.md (rotlsi3_64, ashlsi3_64, lshrsi3_64,
13184 ashrsi3_64): New.
13185
13186 2009-08-23 Alan Modra <amodra@bigpond.net.au>
13187
13188 PR target/41081
13189 * fwprop.c (try_fwprop_subst): Allow multiple sets.
13190 (get_reg_use_in): New function.
13191 (forward_propagate_subreg): Propagate through subreg of zero_extend
13192 or sign_extend.
13193
13194 2009-08-22 Kaz Kojima <kkojima@gcc.gnu.org>
13195
13196 * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS): Define.
13197 * config/sh/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -mieee.
13198
13199 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13200
13201 * configure.ac: Remove --with-datarootdir, --with-docdir,
13202 --with-htmldir switches. No need to call AC_SUBST for
13203 datarootdir, docdir, htmldir any more.
13204 * configure: Regenerate.
13205 * doc/install.texi (Configuration): Document --datarootdir,
13206 --docdir, --htmldir, --pdfdir; update documentation for
13207 --infodir, --mandir.
13208 (Prerequisites): Bump Autoconf version to 2.64, Automake to 1.11,
13209 M4 to 1.4.6.
13210
13211 * aclocal.m4: Regenerate.
13212 * config.in: Regenerate.
13213 * configure: Regenerate.
13214
13215 2009-08-21 Douglas B Rupp <rupp@gnat.com>
13216 Olivier Hainque <hainque@adacore.com>
13217
13218 * config/ia64/ia64.c: Include libfuncs.h.
13219 (TARGET_PROMOTE_FUNCITON_MODE): Define target macro.
13220 (ia64_expand_call): Use reg 25 on VMS.
13221 (ia64_initialize_trampoline): Fix for VMS ABI.
13222 (ia64_function_arg_offset): Always returns 0 when TARGET_ABI_OPEN_VMS.
13223 (ia64_function_arg): Initialize reg 25 on VMS.
13224 Fix OpenVMS ABI issues for varargs.
13225 For OpenVMS, emit the Argument Information register set in the
13226 incoming/sibcall case as well.
13227 (ia64_arg_type): New function.
13228 (ia64_function_arg_advance): Keep track of cum->words.
13229 Fix OpenVMS ABI issues for varargs.
13230 (ia64_function_value): On VMS, promote mode of non-aggregate types.
13231 (ia64_override_options): Set flag_no_common on VMS.
13232 (ia64_init_builtins): Disable FWRITE builtin.
13233 (ia64_asm_output_external): Call DO_CRTL_NAMES.
13234 (ia64_vms_init_libfuncs): Add decc$ routines.
13235 (ia64_vms_valid_pointer_mode): New function.
13236 (ia64_struct_value_rtx): Allways NULL_RTX on VMS.
13237 (ia64_promote_function_mode): New function
13238 * config/ia64/ia64.h (TARGET_ABI_OPEN_VMS): Define as 0 for default.
13239 (LONG_DOUBLE_TYPE_SIZE): Force to 64 on VMS.
13240 (LIBCGC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
13241 (INIT_CUMULATIVE_ARGS): Add atypes for VMS.
13242 (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
13243 (ASM_OUTPUT_DEF): Use ISDIGIT instead of isdigit.
13244 Suppress trailing '#' if VALUE is numeric.
13245 * config/ia64/vms.h (PROMOTE_FUNCTION_MODE): Remove, code moved to
13246 ia64_promote_function_mode.
13247 (TARGET_VALID_POINTER_MODE): Define.
13248
13249 2009-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
13250
13251 PR target/40671
13252 * config/rs6000/rs6000.c (rs6000_override_options): Use
13253 TARGET_64BIT instead of TARGET_POWERPC64 to set the size of pointers.
13254
13255 PR target/41145
13256 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Fix
13257 reporting of vector + decimal/boolean/complex error.
13258
13259 2009-08-21 Jakub Jelinek <jakub@redhat.com>
13260
13261 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix type of
13262 __vector double TYPE_DECL.
13263
13264 2009-08-21 Richard Earnshaw <rearnsha@arm.com>
13265
13266 * arm.h (MACHMODE): New define. Include insn-modes.h if available.
13267 (CUMULATIVE_ARGS): Use MACHMODE for declaration of aapcs_vfp_mode.
13268 * arm.c (aapcs_vfp_is_call_or_return_candidate): Change base_mode
13269 to pointer to enum machine_mode. Update all callers as needed.
13270
13271 2009-08-21 Uros Bizjak <ubizjak@gmail.com>
13272
13273 * config/alpha/alpha.md (exception_receiver): Emit alternative
13274 GP load sequence if flag_reorder_blocks_and_partition is set.
13275 (*exception_receiver_2): Also enable when
13276 flag_reorder_blocks_and_partition is set.
13277
13278 2009-08-20 Matt Rice <ratmice@gmail.com>
13279 Diego Novillo <dnovillo@google.com>
13280
13281 * Makefile.in (PLUGIN_HEADERS): Include incpath.h and
13282 tree-ssa-sccvn.h.
13283
13284 2009-08-20 Richard Guenther <rguenther@suse.de>
13285
13286 * c-objc-common.h (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Do not define.
13287 * c-tree.h (c_dup_lang_specific_decl): Remove.
13288 (struct lang_decl, struct lang_type): Move definitions ...
13289 * c-lang.h: ... here. New file.
13290 * c-decl.c: Include c-lang.h.
13291 (c_dup_lang_specific_decl): Remove.
13292 * c-typeck.c: Include c-lang.h.
13293 * Makefile.in (c-decl.o): Add c-lang.h dependency.
13294 (c-typeck.o): Likewise.
13295 * c-config-lang.in (gtfiles): Add c-lang.h.
13296 * gengtype.c (get_output_file_with_visibility): Handle c-lang.h
13297 like c-tree.h.
13298
13299 2009-08-20 Uros Bizjak <ubizjak@gmail.com>
13300
13301 * config/alpha/alpha.c (alpha_end_function): Do not clear
13302 crtl->emit structure and free insn locators if cfun->is_thunk is true,
13303 this is now handled in generic code.
13304
13305 2009-08-20 Andreas Krebbel <krebbel1@de.ibm.com>
13306
13307 * config/s390/s390.c (Z10_PREDICT_DISTANCE): New macro.
13308 (s390_z10_fix_long_loop_prediction): New function.
13309 (s390_z10_optimize_cmp): INSN walk moved to callee - s390_reorg.
13310 (s390_reorg): Walk over the INSNs and invoke
13311 s390_z10_fix_long_loop_prediction and s390_z10_optimize_cmp.
13312
13313 2009-08-20 Andreas Krebbel <krebbel1@de.ibm.com>
13314
13315 * config/s390/s390.md ("*brx_stage1_<GPR:mode>", "*brxg_64bit",
13316 "*brx_64bit", "*brx_31bit"): New patterns.
13317 * config/s390/s390.c ('E'): New output modifier.
13318
13319 2009-08-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13320 Richard Earnshaw <richard.earnshaw@arm.com>
13321
13322 * config/arm/arm.c (arm_emit_movpair): Handle CONST_INT.
13323 * config/arm/arm.md (*arm_movtas_ze): New pattern for movt.
13324
13325 2009-08-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13326
13327 * pa.md (reload_inhi, reload_outhi, reload_inqi, reload_outqi): New
13328 patterns.
13329 * pa.c (emit_move_sequence): Check if address of operand1 is valid
13330 for mode mode of operand0 when doing secondary reload for SAR.
13331
13332 2009-08-19 Jakub Jelinek <jakub@redhat.com>
13333
13334 PR middle-end/41123
13335 * expr.c (expand_expr_real_1) <normal_inner_ref>: Handle all kinds
13336 of CONCAT, not just bitpos 0 bitsize size of the whole CONCAT.
13337
13338 2009-08-19 Jason Merrill <jason@redhat.com>
13339
13340 * doc/invoke.texi (C++ Dialect Options): Note change of minimum
13341 supported template depth in C++0x.
13342
13343 2009-08-19 Jakub Jelinek <jakub@redhat.com>
13344
13345 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call
13346 free_after_compilation.
13347 * config/score/score7.c (score7_output_mi_thunk): Likewise.
13348 * config/score/score3.c (score3_output_mi_thunk): Likewise.
13349 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
13350 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
13351 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
13352 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
13353 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
13354
13355 2009-08-19 Ian Lance Taylor <iant@google.com>
13356
13357 * doc/md.texi (Insn Canonicalizations): Correct canonicalization
13358 of (plus (mult (neg B) C) A).
13359
13360 2009-08-18 Michael Matz <matz@suse.de>
13361
13362 * omp-low.c (optimize_omp_library_calls): Use types_compatible_p
13363 instead of comparing TYPE_MAIN_VARIANT for equality.
13364 * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
13365 vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto.
13366 * tree-vect-loop.c (vect_is_simple_reduction): Ditto.
13367 * gimplify.c (goa_lhs_expr_p): Ditto and use
13368 STRIP_USELESS_TYPE_CONVERSION.
13369
13370 2009-08-18 Michael Matz <matz@suse.de>
13371
13372 * tree-ssa-structalias.c (create_variable_info_for): Also mark
13373 first field in a struct.
13374 (intra_create_variable_infos): Don't deal with flag_argument_noalias.
13375
13376 2009-08-18 Uros Bizjak <ubizjak@gmail.com>
13377
13378 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
13379 locators before emit_insn is called. Remove assert that
13380 cfun->is_thunk.
13381 (alpha_end_function): Clear crtl->emit structure and free insn
13382 locators if cfun->is_thunk is true.
13383
13384 2009-08-18 Jason Merrill <jason@redhat.com>
13385
13386 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
13387 type if available.
13388 * configure.ac: Test for it.
13389 * configure, config.in: Regenerate.
13390 * doc/install.texi: Document --enable-gnu-unique-object.
13391
13392 2009-08-18 Richard Guenther <rguenther@suse.de>
13393
13394 PR middle-end/41094
13395 * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
13396 pow(x,y*z) only if x is nonnegative.
13397
13398 2009-08-18 Jakub Jelinek <jakub@redhat.com>
13399
13400 * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
13401 on jumps.
13402
13403 PR target/40971
13404 * config/rs6000/rs6000.c (rs6000_legitimize_address): For
13405 [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.
13406
13407 2009-08-17 DJ Delorie <dj@redhat.com>
13408
13409 * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
13410 * config/m32c/prologue.md (epilogue_freit): New.
13411 (fset_b): New.
13412 * config/m32c/m32c.c (m32c_function_needs_enter): Add prototype.
13413 (bank_switch_p): Likewise.
13414 (fast_interrupt_p): Likewise.
13415 (interrupt_p): Likewise.
13416 (m32c_conditional_register_usage): Round memregs size up.
13417 (need_to_save): We only need to save $a0 when we use ENTER.
13418 (interrupt_p): Check for fast_interrupt too.
13419 (bank_switch_p): New.
13420 (fast_interrupt_p): New.
13421 (m32c_attribute_table): Add bank_switch and fast_interrupt.
13422 (m32c_emit_prolog): Support bank switching and fast interrupts.
13423 * doc/extend.texi (Function Attributes): Add bank_switch and
13424 fast_interrupt.
13425
13426 2009-08-17 Douglas B Rupp <rupp@gnat.com>
13427
13428 * config/alpha/alpha.c (vms_valid_pointer_mode): New function.
13429 * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.
13430
13431 2009-08-16 Douglas B Rupp <rupp@gnat.com>
13432
13433 * doc/invoke.texi (Target options): Add new option list for IA-64/VMS.
13434 (menu): Add IA-64/VMS Options.
13435 (IA-64/VMS Options): Likewise.
13436
13437 2009-08-16 Richard Sandiford <rdsandiford@googlemail.com>
13438
13439 PR target/38599
13440 * config/mips/mips.md (*lwxs): Use :P for pointer values.
13441
13442 2009-08-16 Richard Sandiford <rdsandiford@googlemail.com>
13443
13444 * config/mips/mips-protos.h (mips_push_asm_switch): New function.
13445 (mips_pop_asm_switch): Likewise.
13446 * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
13447 with...
13448 (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
13449 (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
13450 (mips_push_asm_switch, mips_pop_asm_switch): Likewise.
13451 (mips_print_operand_punctuation): Use them. Check mips_noreorder
13452 instead of set_noreorder.
13453 (mips_output_function_prologue): Use the new functions.
13454 (mips_output_function_epilogue): Likewise.
13455 (mips_need_noat_wrapper_p): New function, split out from...
13456 (mips_final_prescan_insn, mips_final_postscan_insn): ...here.
13457 Use mips_push_asm_switch and mips_pop_asm_switch.
13458 * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
13459 and mips_pop_asm_switch.
13460 (ASM_OUTPUT_REG_POP): Likewise.
13461 (DBR_OUTPUT_SEQEND): Remove boilerplate comment.
13462 Use mips_pop_asm_switch.
13463 (mips_asm_switch): New structure.
13464 (set_noreorder, set_nomacro): Replace with...
13465 (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
13466 * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
13467 instead of set_nomacro.
13468 (fix_truncsfsi2_macro): Likewise.
13469 (cprestore): Likewise.
13470 (hazard): Use mips_noreorder instead of set_noreorder.
13471 * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
13472
13473 2009-08-16 Uros Bizjak <ubizjak@gmail.com>
13474
13475 * config/alpha/alpha.c (alpha_end_function): Handle NULL_RTX returned
13476 from prev_active_insn.
13477
13478 2009-08-16 Anatoly Sokolov <aesok@post.ru>
13479
13480 * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
13481 * config/avr/avr.c (avr_override_options): Initialize
13482 avr_current_arch variable.
13483 (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
13484 __AVR_HAVE_16BIT_SP__ according to the device type.
13485 (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
13486 TARGET_TINY_STACK.
13487 (expand_epilogue): Use correct QI mode frame pointer for tiny stack.
13488 Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.
13489
13490 2009-08-16 Dodji Seketeli <dodji@redhat.com>
13491
13492 PR debug/37801
13493 * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on
13494 generating inlined subroutine die only. We shouldn't be
13495 called for anything else.
13496 (gen_block_die): Don't generate inline subroutine debug info for
13497 abstract blocks.
13498
13499 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
13500
13501 * graphite-poly.c (print_pbb): Print PBB index.
13502
13503 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
13504
13505 PR middle-end/40981
13506 * graphite-interchange.c (ppl_max_for_le): Moved...
13507 * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
13508 * graphite-ppl.c (ppl_max_for_le): ... here. Correct the use of
13509 ppl_Pointset_Powerset_C_Polyhedron_maximize.
13510 * graphite-ppl.h (ppl_max_for_le): Declared.
13511
13512 2009-08-14 Olatunji Ruwase <tjruwase@google.com>
13513
13514 * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
13515 supported on all platforms.
13516 * target.h (struct gcc_target): Remove handle_pragma_redefine_extname.
13517 * c-cppbuiltin.c: Remove use of targetm.handle_pragma_redefine_extname.
13518 * c-pragma.c: Likewise.
13519 * target-def.h (TARGET_INITIALIZER): Remove
13520 TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
13521 * config/sol2.h: Remove use of TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
13522
13523 2009-08-14 Douglas B Rupp <rupp@gnat.com>
13524
13525 * config/ia64/fde-vms.c: New file.
13526 * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg.
13527 * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h
13528 (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default.
13529 (uw_frame_state_for): Only register a personality routine if it is
13530 known to be compatible with our expectations.
13531 (_Unwind_FindEnclosingFunction, uw_frame_state_for):
13532 Declare unw_table_entry stack variable and
13533 mod all calls to _Unwind_FindTableEntry to add arg.
13534 * config/ia64/unwind-ia64.h (UNW_ accessors): Move here.
13535 (_Unwind_FindTableEntry): Add arg to prototype.
13536
13537 2009-08-14 Eric Botcazou <ebotcazou@adacore.com>
13538
13539 * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new
13540 field 'signal_pfs_loc'.
13541 (uw_frame_state_for): Remove duplicate code dealing with leaf
13542 procedures without unwind info.
13543 If in the frame after unwinding through a signal handler, restore
13544 the AR.PFS register instead of the CFM if AR.PFS has not been saved.
13545 * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set
13546 'pfs_loc' to the AR.PFS location in the signal context; instead
13547 set 'signal_pfs_loc'.
13548 Manually generate the unwind info for the AR.PFS register.
13549 (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT,
13550 ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define.
13551 (ia64_handle_unwabi): Test 'fs->unwabi' against them.
13552 Do not set 'pfs_loc' to the AR.PFS location in the signal context;
13553 instead set 'signal_pfs_loc'.
13554 Remove code preventing the AR.PFS register from being restored
13555 from the signal context.
13556
13557 2009-08-14 Douglas B Rupp <rupp@gnat.com>
13558 Tristan Gingold <gingold@adacore.com>
13559
13560 * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
13561 * config/ia64/t-vms: New file.
13562 * config/ia64/vms64.h: New file.
13563 * config/ia64/vms.h: New file.
13564 * config/ia64/vms-crtinit.asm: New file.
13565 * config/ia64/vms_symvec_libgcc_s.opt: New file.
13566 * config/ia64/vms-unwind.h: New file.
13567
13568 2009-08-14 Uros Bizjak <ubizjak@gmail.com>
13569
13570 * config/alpha/alpha.c (alpha_emit_conditional_move): Handle
13571 TFmode compares.
13572
13573 2009-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13574
13575 PR middle-end/30789
13576 * builtins.c (do_mpc_arg2): Make extern, define for any MPC version.
13577 Move declaration...
13578 * real.h (do_mpc_arg2): ... here.
13579 * fold-const.c (const_binop): Use MPC for complex MULT_EXPR
13580 and RDIV_EXPR.
13581
13582 2009-08-14 Rafael Avila de Espindola <espindola@google.com>
13583
13584 * final.c (add_debug_prefix_map): Don't use GC memory for
13585 old_prefix and new_prefix.
13586
13587 2009-08-14 Richard Guenther <rguenther@suse.de>
13588
13589 * ipa-prop.c (compute_complex_pass_through): If we cannot
13590 compute a non-varying offset for IPA_JF_ANCESTOR punt.
13591
13592 2009-08-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13593
13594 * c-lex.c (c_lex_with_flags): Increase size of local variable
13595 to avoid memory clobber.
13596
13597 2009-08-14 Paolo Bonzini <bonzini@gnu.org>
13598
13599 PR target/40934
13600 * config/i386/i386.c (ix86_fp_comparison_strategy):
13601 Only enable/disable sahf at function granularity.
13602
13603 2009-08-14 Hans-Peter Nilsson <hp@axis.com>
13604
13605 PR rtl-optimization/41064
13606 * reload1.c (reload_as_needed): Don't call extract_insn
13607 for known invalid replacements after calling
13608 validate_replace_rtx_group and verify_changes.
13609
13610 2009-08-14 Uros Bizjak <ubizjak@gmail.com>
13611
13612 PR target/41019
13613 * config/i386/sse.md (SSEMODE124C8): New mode iterator.
13614 (vcond<SSEMODEF2P:mode>): Assert that operation is supported by
13615 ix86_expand_fp_vcond.
13616 (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
13617 Assert that operation is supported by ix86_expand_int_vcond.
13618 (vcondu<SSEMODE124C8:mode>): Ditto.
13619
13620 2009-08-13 DJ Delorie <dj@redhat.com>
13621
13622 * config/i386/djgpp-stdint.h: New.
13623 * config.gcc (djgpp): Use it.
13624
13625 2009-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
13626
13627 * config/sh/sh.c (sh_override_options): When flag_exceptions or
13628 flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off.
13629
13630 2009-08-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
13631
13632 * tree-ssa-loop-prefetch.c
13633 (prune_ref_by_group_reuse): Enhance probabilistic analysis
13634 for long-stride pruning.
13635 (compute_miss_rate): New function to compute the probability
13636 that two memory references access different cache lines.
13637
13638 2009-08-13 Dave Korn <dave.korn.cygwin@gmail.com>
13639
13640 * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.
13641
13642 2009-08-13 Richard Guenther <rguenther@suse.de>
13643
13644 PR middle-end/41047
13645 * tree-ssa-ccp.c (ccp_fold): When folding pointer additions
13646 use the constant pointer type.
13647 * gimplify.c (canonicalize_addr_expr): Canonicalize independent
13648 of CV qualifiers on the target pointer type.
13649 * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
13650 conversion check before restrict check.
13651
13652 2009-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
13653
13654 PR target/41029
13655 * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
13656
13657 2009-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
13658
13659 * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
13660
13661 2009-08-12 Richard Guenther <rguenther@suse.de>
13662
13663 PR tree-optimization/41011
13664 * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
13665 and reference constructing.
13666
13667 2009-08-12 Xinliang David Li <davidxl@google.com>
13668
13669 PR tree-optimization/41012
13670 * tree-flow.h : New external interface.
13671 * gimple-low.c (check_call_arg): Change to public function.
13672 Remove argument mismatch check in lowering.
13673 * tree-inline.h (tree_can_inline_p): Interface change.
13674 * tree-inline.c (tree_can_inline_p): Fold argument mismatch check
13675 into this function.
13676 * ipa-inline.c (cgraph_decide_inlining_of_small_functions):
13677 Call change to tree_can_inline_p function.
13678 (cgraph_decide_inlining_incrementally): Ditto.
13679
13680 2009-08-12 Richard Sandiford <rdsandiford@googlemail.com>
13681
13682 PR tree-optimization/41031
13683 * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
13684 on the partition variable rather than promote_mode on the source
13685 type. Assert that the partition variable's type has the same
13686 mode as the source value's.
13687
13688 2009-08-12 Paolo Bonzini <bonzini@gnu.org>
13689
13690 * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
13691 for for_return == 2.
13692 * function.c (assign_parm_setup_reg): Use for_return == 2, improve
13693 comments.
13694 * calls.c (expand_call): Fix typo.
13695 * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
13696 and PARM_DECL.
13697 * stmt.c (expand_value_return): Use promote_function_mode to copy out
13698 of pseudo.
13699 * targhooks.c (default_promote_function_mode): Handle for_return == 2.
13700 * config/cris/cris.c (cris_promote_function_mode): Likewise.
13701 * config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
13702 * config/pa/pa.c (pa_promote_function_mode): Likewise.
13703
13704 2009-08-12 Andrew Haley <aph@redhat.com>
13705
13706 * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
13707
13708 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
13709
13710 PR bootstrap/40103
13711 * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
13712
13713 2009-08-12 Richard Guenther <rguenther@suse.de>
13714
13715 * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
13716 * gimplify.c (gimplify_modify_expr): Do not use
13717 lang_hooks.types_compatible_p.
13718 * tree-ssa.c (useless_type_conversion_p): For aggregates
13719 just return false if the canonical types differ.
13720
13721 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
13722
13723 PR middle-end/40980
13724 * sese.c (convert_for_phi_arg): New.
13725 (add_guard_exit_phis): Use convert_for_phi_arg.
13726
13727 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
13728
13729 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
13730 unknown subscript upper bounds.
13731
13732 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
13733 Pranav Garg <pranav.garg2107@gmail.com>
13734
13735 * graphite-interchange.c (gather_access_strides): Removed.
13736 (ppl_max_for_le): New.
13737 (build_linearized_memory_access): New.
13738 (memory_stride_in_loop): New.
13739 (pbb_interchange_profitable_p): Reimplemented.
13740 * graphite-ppl.h (ppl_new_id_map): New.
13741 (ppl_interchange): New.
13742
13743 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
13744
13745 * graphite-interchange.c (compute_subscript): Removed.
13746 (compute_array_size_cstr): Removed.
13747 (compute_array_size_poly): Removed.
13748 (compute_array_size): Removed.
13749 (gather_access_strides_poly): Removed.
13750 (gather_access_strides): Empty.
13751
13752 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
13753
13754 * graphite-dependences.c (dependence_polyhedron_1): Replace
13755 pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
13756 (graphite_legal_transform_dr): Same.
13757 (graphite_carried_dependence_level_k): Same.
13758 * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
13759 Initialize PDR_NB_SUBSCRIPTS.
13760 (print_pdr_access_layout): Replace pdr_nb_subscripts with
13761 PDR_NB_SUBSCRIPTS.
13762 * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
13763 (PDR_NB_SUBSCRIPTS): New.
13764 (pdr_nb_subscripts): Removed.
13765 (pdr_dim): Simplified.
13766 * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
13767 with PDR_NB_SUBSCRIPTS.
13768
13769 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
13770
13771 * graphite-interchange.c (compute_array_size): Remove use of
13772 PDR_DATA_CONTAINER.
13773 * graphite-poly.c (new_poly_dr): Remove argument data_container.
13774 Do not initialize PDR_DATA_CONTAINER.
13775 (print_pdr): Do not print PDR_DATA_CONTAINER.
13776 * graphite-poly.h (struct poly_dr): Remove data_container field.
13777 (PDR_DATA_CONTAINER): Removed.
13778 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
13779 PDR_DATA_CONTAINER.
13780 (build_poly_dr): Same.
13781
13782 2009-08-12 Konrad Trifunovic <konrad.trifunovic@gmail.com>
13783 Sebastian Pop <sebastian.pop@amd.com>
13784
13785 * graphite-dependences.c (graphite_legal_transform_dr): Work on a
13786 copy of the dependence polyhedron. Free the temporary objects.
13787 (graphite_carried_dependence_level_k): Free unused objects before
13788 returning.
13789
13790 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
13791
13792 * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
13793 Early return without analyzing the data dependences if no
13794 transform has been done. Call restore_scattering if the transform
13795 is not legal.
13796 (graphite-interchange.c): Same.
13797 * graphite-poly.c (print_scattering_function): Test for
13798 PBB_TRANSFORMED.
13799 (graphite_read_transforms): Initialize PBB_TRANSFORMED.
13800 (apply_poly_transforms): Do not gcc_assert that
13801 the transform is legal.
13802 (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL.
13803 Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
13804 PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
13805 (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
13806 * graphite-poly.h (struct poly_scattering): New.
13807 (struct poly_bb): Add original, transformed, and saved fields.
13808 Remove transformed_scattering, original_scattering,
13809 nb_local_variables and nb_scattering_transform fields.
13810 (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
13811 (poly_scattering_new): New.
13812 (poly_scattering_free): New.
13813 (poly_scattering_copy): New.
13814 (store_scattering_pbb): New.
13815 (store_scattering): New.
13816 (restore_scattering_pbb): New.
13817 (restore_scattering): New.
13818 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
13819 Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
13820
13821 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
13822
13823 * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
13824 (print_scop): Same.
13825
13826 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
13827
13828 * Makefile.in (graphite.o): Depends on PREDICT_H.
13829 * graphite.c: Include predict.h.
13830 (graphite_finalize): Call tree_estimate_probability.
13831 * predict.c (predict_loops): Do not call scev_initialize and
13832 scev_finalize.
13833 (tree_estimate_probability_bb): New.
13834 (tree_estimate_probability): Do not initialize loops: move that
13835 code to the driver. Call tree_estimate_probability_bb.
13836 (tree_estimate_probability_driver): New.
13837 (pass_profile): Use tree_estimate_probability_driver.
13838 * predict.h (tree_estimate_probability): Declared.
13839
13840 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
13841
13842 * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
13843 * graphite-dependences.c (graphite_legal_transform): Add time to
13844 TV_GRAPHITE_DATA_DEPS.
13845 (dependency_between_pbbs_p): Same.
13846 * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
13847
13848 2009-08-12 Andrey Belevantsev <abel@ispras.ru>
13849
13850 PR rtl-optimization/41033
13851 * alias.c (nonoverlapping_component_refs_p): Punt when strict
13852 aliasing is disabled.
13853
13854 2009-08-11 Adam Nemet <anemet@caviumnetworks.com>
13855
13856 * config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
13857 si_mask_operand, and_load_operand, low_bitmask_operand,
13858 and_reg_operand, and_operand): New predicates.
13859 * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
13860 * config/mips/mips.c (and_operands_ok): New function.
13861 * config/mips/mips-protos.h (and_operands_ok): Declare it.
13862 * config/mips/mips.md (move_type): Add ext_ins and logical.
13863 (type): Handle them.
13864 (and<mode>3): Use and_reg_operand as the second operand's predicate.
13865 (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
13866 shift_shift. Remove commutative constraint modifier.
13867 (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
13868 shift_shift.
13869 (*clear_upper32_dext): Remove define_insn_and_split.
13870 (*clear_upper32): Turn this define_insn_and_split ...
13871 (splitter for ANDing register with 0xffff_ffff): .. into this.
13872
13873 2009-08-11 Adam Nemet <anemet@caviumnetworks.com>
13874
13875 * combine.c (try_widen_shift_mode): Factor out code to check if an
13876 integer constant is a low-order bitmask from here ...
13877 * rtlanal.c (low_bitmask_len): ... to here.
13878 * rtl.h (low_bitmask_len): Declare.
13879
13880 2009-08-11 Uros Bizjak <ubizjak@gmail.com>
13881
13882 PR target/8603
13883 * config/alpha/alpha.md (addsi3): Remove expander.
13884 (addsi3): Rename from *addsi3_internal insn pattern.
13885 (subsi3): Remove expander.
13886 (subsi3): Rename from *subsi3_internal insn pattern.
13887
13888 2009-08-11 Douglas B Rupp <rupp@gnat.com>
13889
13890 * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
13891 FWRITE_UNLOCKED.
13892
13893 2009-08-11 Vasiliy Fofanov <fofanov@adacore.com>
13894 Eric Botcazou <botcazou@adacore.com>
13895 Douglas B Rupp <rupp@gnat.com>
13896
13897 * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
13898 that records that fit in 64 bits are returned by immediate value,
13899 as required by OpenVMS Calling Standard.
13900 (function_value): Adjust for above modification.
13901 (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
13902 virtual_incoming_args_rtx as base object, not next_arg.
13903 * config/alpha/vms.h (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
13904
13905 2009-08-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13906
13907 * reload.c (find_reloads_subreg_address): Check the original
13908 req_equiv_mem address to detect the case where an address is
13909 not valid in the outer mode.
13910
13911 2009-08-11 Richard Guenther <rguenther@suse.de>
13912
13913 PR bootstrap/40788
13914 * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION.
13915
13916 2009-08-10 Douglas B Rupp <rupp@gnat.com>
13917
13918 * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
13919 (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
13920
13921 2009-08-10 Olivier Hainque <hainqueu@adacore.com>
13922 Douglas B Rupp <rupp@gnat.com>
13923
13924 * config/alpha/alpha.c (alpha_sa_size): Force procedure type to
13925 PT_STACK when frame_pointer_needed on OpenVMS.
13926 (alpha_pv_save_size, alpha_using_fp): Remove.
13927 (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE
13928 with proper processing for PT_NULL.
13929 (alpha_vms_initial_elimination_offset): New function. Support for
13930 INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL.
13931 (alpha_sa_size): Force procedure type to PT_STACK when
13932 frame_pointer_needed on OpenVMS.
13933 * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype.
13934 (alpha_using_fp): Likewise.
13935 (alpha_vms_can_eliminate): Add prototype.
13936 (alpha_vms_initial_elimination_offset): Likewise.
13937 * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
13938 Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset.
13939
13940 2009-08-10 Eric Botcazou <botcazou@adacore.com>
13941 Douglas B Rupp <rupp@gnat.com>
13942
13943 * config/alpha/alpha.c (common_object_handler): New function.
13944 (vms_attribute_table): Declare a single attribute "common_object".
13945 (vms_output_aligned_decl_common): New global function.
13946 (SECTION_VMS_OVERLAY): Delete.
13947 (SECTION_VMS_GLOBAL): Likewise.
13948 (SECTION_VMS_INITIALIZE): Likewise.
13949 (vms_asm_named_section): Remove support for above flags.
13950 (vms_section_type_flags): Delete.
13951 (TARGET_SECTION_TYPE_FLAGS): Likewise.
13952 * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New.
13953 * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
13954 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro.
13955
13956 2009-08-10 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
13957
13958 PR target/41015
13959 * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
13960 (sub_ddmmss): Likewise.
13961
13962 2009-08-10 Andreas Tobler <a.tobler@schweiz.org>
13963
13964 PR bootstrap/41018
13965 * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright
13966 year.
13967
13968 2009-08-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13969
13970 PR target/37053
13971 * reload1.c (reload_as_needed): Use cancel_changes to completely
13972 undo a failed replacement attempt.
13973
13974 2009-08-10 Richard Guenther <rguenther@suse.de>
13975
13976 PR middle-end/41006
13977 * tree-ssa.c (useless_type_conversion_p_1): Fold into ...
13978 (useless_type_conversion_p): ... here. Require pointer targets
13979 to be compatible.
13980
13981 2009-08-10 Dodji Seketeli <dodji@redhat.com>
13982
13983 PR c++/40866
13984 * tree-inline.c (copy_statement_list): The resulting copy shouldn't
13985 loose the original type of the statement list.
13986
13987 2009-08-09 Douglas B Rupp <rupp@gnat.com>
13988
13989 * config/alpha/alpha.c: Include libfuncs.h
13990 (avms_asm_output_extern): New function.
13991 (alpha_init_libfuncs): Init some decc libfuncs.
13992 * config/alpha/alpha-protos.h (avms_asm_output_external): Declare.
13993 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define.
13994 (DO_CRTL_NAMES): Define.
13995 (LIB_SPEC): Remove.
13996 * config/alpha/vms64.h (POINTERS_EXTEND_UNSIGNED): Remove undef.
13997 (LONG_TYPE_SIZE): Define.
13998 (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1
13999 (SUBTARGET_SWITCHES): Define malloc64 switch.
14000 (TARGET_DEFAULT): Default MASK_MALLOC64 set.
14001 (MASK_RETURN_ADDR): Define.
14002 doc/invoke.texi (mmalloc64): Document switch.
14003
14004 2009-08-09 Olivier Hainque <hainque@adacore.com>
14005 Douglas B Rupp <rupp@gnat.com>
14006
14007 * config/alpha/alpha.c (struct machine_function): New flag for VMS,
14008 uses_condition_handler.
14009 (alpha_expand_builtin_establish_vms_condition_handler): New expander.
14010 (alpha_expand_builtin_revert_vms_condition_handler): New expander.
14011 (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER
14012 and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values.
14013 (code_for_builtin): New insn codes for the new alpha_builtins.
14014 (alpha_init_builtins): Register the new functions as BUILT_IN_MD.
14015 (alpha_sa_size): Account for uses_condition_handler.
14016 (alpha_expand_prologue): Likewise.
14017 (alpha_start_function): Likewise.
14018 (alpha_expand_epilogue): Likewise.
14019 * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin
14020 establish/revert expanders.
14021 * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define.
14022 * config/alpha/alpha.md (builtin_establish_vms_condition_handler):
14023 New expander, resorting to the alpha.c associated function.
14024 (builtin_revert_vms_condition_handler): Likewise.
14025 * config/alpha/vms-gcc_shell_handler.c: New file. Implements
14026 __gcc_shell_handler, the static VMS condition handler used as
14027 an indirection wrapper to the current dynamically established
14028 handler.
14029 * config/alpha/vms-unwind.h: Complete rewrite.
14030 * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c
14031 * config/alpha/vms.h (MD_UNWIND_SUPPORT):
14032
14033 2009-08-09 Eric Botcazou <botcazou@adacore.com>
14034 Douglas B Rupp <rupp@gnat.com>
14035
14036 * config/alpha/alpha.c (alpha_links): Add 'target' field.
14037 (alpha_need_linkage): Handle aliases. Return function symbol.
14038 (alpha_use_linkage): Rename 'linkage' argument to 'func'.
14039 Use ultimate alias target for the linkage name.
14040 * config/alpha/alpha.md (movmemdi): Use the symbol returned
14041 by alpha_need_linkage for the function symbol.
14042 (setmemdi): Likewise.
14043
14044 2009-08-09 Douglas B Rupp <rupp@gnat.com>
14045
14046 * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS.
14047 * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define.
14048 (ASM_WEAKEN_LABEL): Define.
14049 (CRT_CALL_STATIC_FUNCTION): Define.
14050 (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o.
14051 (ENDFILE_SPEC): Define.
14052 (INIT_SECTION_ASM_OP): Define.
14053 * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove.
14054 * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o
14055 crtend.o crtendS.o.
14056 (MULTILIB_OSDIRNAMES): Define.
14057 (shlib_version): Define.
14058 (SHLIB_EXT): Define.
14059 (SHLIB_OBJS): Define.
14060 (SHLIB_NAME): Define.
14061 (SHLIB_MULTILIB): Define.
14062 (SHLIB_INSTALL): Define.
14063 (SHLIB_SYMVEC): Define.
14064 (SHLIB_SYMVECX2): Define.
14065 (SHLIB_LINK): Define.
14066
14067 2009-08-09 Douglas B Rupp <rupp@gnat.com>
14068
14069 * config/alpha/alpha.c (alpha_initialize_trampoline):
14070 Initialize VMS trampoline IAW ABI for bounded procedure calls.
14071 (alpha_start_function): Emit transfer address on nested functions
14072 for VMS trampoline call.
14073 * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm
14074 since no longer used.
14075 * config/alpha/vms-tramp.asm: Remove.
14076 * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined
14077 since now only data initialized at runtime.
14078
14079 2009-08-09 Douglas B Rupp <rupp@gnat.com>
14080
14081 * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define.
14082 (LINK_GCC_C_SEQUENCE_SPEC): Define.
14083 (MD_EXEC_PREFIX): Remove, no longer used.
14084 (MD_STARTFILE_PREFIX): Likewise.
14085 (INCLUDE_DEFAULTS): Likewise.
14086 * config/alpha/t-vms:
14087 (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile.
14088
14089 2009-08-09 Richard Guenther <rguenther@suse.de>
14090
14091 PR tree-optimization/41016
14092 * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug.
14093 (operand_precision): Remove.
14094 (integral_operand_p): Likewise.
14095 (recognize_single_bit_test): Adjust.
14096
14097 2009-08-09 Richard Sandiford <rdsandiford@googlemail.com>
14098
14099 * c-common.c (c_fully_fold_internal): Issue a warning if a binary
14100 operation overflows. Likewise non-cast unary arithmetic.
14101 If one arm of a conditional expression is always taken,
14102 inhibit evaluation warnings for the other arm. Likewise inhibit
14103 evaluation warnings for the second && or || operand if the first
14104 operand is enough to determine the result.
14105 * c-typeck.c (build_conditional_expr): Apply the same inhibition
14106 rules here.
14107 (build_binary_op): Prevent duplicate evaluation warnings.
14108
14109 2009-08-09 Richard Sandiford <rdsandiford@googlemail.com>
14110
14111 * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source
14112 and destination have different modes, Use promote_mode to
14113 determine the signedness of the conversion. Assert that the
14114 promoted source mode matches the destination mode. Don't pass
14115 the destination and destination mode to expand_expr if the source
14116 mode is different. Simplify conversion logic.
14117
14118 2009-08-09 Ira Rosen <irar@il.ibm.com>
14119
14120 PR tree-optimization/41008
14121 * tree-vect-loop.c (vect_is_simple_reduction): Get operands
14122 from condition only in case it's a comparison. Adjust checks.
14123
14124 2009-08-09 Bernd Schmidt <bernd.schmidt@analog.com>
14125
14126 * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function.
14127 * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it.
14128 * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer.
14129 (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE.
14130 (dump_cand): Handle them.
14131 (struct iv_cand): New members COST_STEP and AINC_USE.
14132 (stmt_after_increment): Likewise.
14133 (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos. All
14134 callers changed. Use gimple_uid comparison instead of scanning.
14135 (add_candidate_1): When looking for identical candidates, take
14136 AINC_USE into account. Set it for new candidates.
14137 (force_expr_to_var_cost): Cast target_spill_cost to int.
14138 (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC.
14139 All callers changed. Check for availability of autoinc addressing
14140 modes, both in general for a given mode, and in the specific use case.
14141 (get_computation_cost_at): New argument CAN_AUTOINC. All callers
14142 changed.
14143 (get_computation_cost): Likewise.
14144 (autoinc_possible_for_pair, set_autoinc_for_original_candidates,
14145 add_autoinc_candidates): New static functions.
14146 (add_candidate): Call add_autoinc_candidates for candidates based on
14147 a USE_ADDRESS use.
14148 (find_iv_candidates): Call set_autoinc_for_original_candidates.
14149 (determine_use_iv_cost_address): If we have an autoinc candidate at
14150 the matching use, verify autoinc is possible and subtract the cost
14151 of the candidate's step from the cost.
14152 (determine_iv_cost): Record the cost of the increment in the COST_STEP
14153 member of the candidate.
14154 (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and
14155 determine_use_iv_costs. Call renumber_gimple_stmt_uids_in_blocks.
14156
14157 2009-08-09 Douglas B Rupp <rupp@gnat.com>
14158
14159 * config.build (ia64-hp-*vms*): New target.
14160 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
14161 with ia64-hp-*vms*.
14162 * config.gcc (ia64-hp-*vms*): New target.
14163 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
14164 with ia64-hp-*vms*.
14165 * config.host (ia64-hp-*vms*): New target.
14166 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
14167 with ia64-hp-*vms*.
14168
14169 2009-08-08 Richard Guenther <rguenther@suse.de>
14170
14171 PR tree-optimization/40991
14172 * tree-ssa-pre.c (eliminate): Delay purging EH edges.
14173
14174 2009-08-08 Richard Sandiford <rdsandiford@googlemail.com>
14175
14176 * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
14177 mode check. Do truncations in an integer mode.
14178 (force_to_mode): Handle subregs for all mode types. Only do
14179 arithmetic simplifications on integer modes.
14180
14181 2009-08-07 Richard Guenther <rguenther@suse.de>
14182
14183 PR tree-optimization/40999
14184 * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
14185 (maybe_fold_reference): Lookup constant initializers.
14186 (fold_gimple_assign): Likewise.
14187
14188 2009-08-07 Richard Guenther <rguenther@suse.de>
14189
14190 * tree-ssa.c (useless_type_conversion_p_1): Only for types
14191 that require structural equality defer to the langhook.
14192
14193 2009-08-07 Martin Jambor <mjambor@suse.cz>
14194
14195 * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
14196 comments.
14197 (struct ipa_pass_through_data): New type.
14198 (struct ipa_ancestor_jf_data): New type.
14199 (union jump_func_value): Removed field formal_id, added fields
14200 pass_through and ancestor.
14201 (struct ipa_param_call_note): Changed type of formal_id to int from
14202 unsigned.
14203 * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
14204 operations jump functions and ancestor jump functions.
14205 (compute_complex_pass_through): New function.
14206 (compute_scalar_jump_functions): Call compute_complex_pass_through,
14207 reflect changes in the jump function strucutre.
14208 (update_jump_functions_after_inlining): Ignore complex pass-through
14209 and ancestor jump functions.
14210 * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
14211 polynomial pass-through with operation jump functions.
14212
14213 2009-08-07 Jakub Jelinek <jakub@redhat.com>
14214
14215 * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
14216 fde->dw_fde_begin as begin label instead of hot/cold label.
14217 Use LLSDAC label instead of LLSDA for second section lsda.
14218 (dwarf2out_do_cfi_startproc): Add SECOND argument. Use LLSDAC
14219 label instead of LLSDA if it is true.
14220 (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
14221 callers.
14222 * except.c (add_call_site, dw2_size_of_call_site_table): Add
14223 SECTION argument. Use it as index into crtl->eh.call_site_record
14224 array.
14225 (dw2_output_call_site_table): Likewise. Add CS_FORMAT argument,
14226 use it to determine how to print table entries instead of using
14227 #ifdef HAVE_AS_LEB128. For SECTION > 0 use hot resp. cold
14228 label instead of normal begin label as base.
14229 (sjlj_assign_call_site_values): Adjust add_call_site caller.
14230 (convert_to_eh_region_ranges): When doing hot/cold partitioning,
14231 ensure no EH range spans between sections and that landing pads
14232 are always in the corresponding section.
14233 (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
14234 for crtl->eh.call_site_record being an array rather than scalar.
14235 (output_one_function_exception_table): New function, copied
14236 from output_function_exception_table. Adjust
14237 dw2_size_of_call_site_table, dw2_output_call_site_table
14238 callers. For SECOND section use *C suffixed labels.
14239 (output_function_exception_table): Call
14240 output_one_function_exception_table and, when doing hot/cold
14241 partitioning, also another time for the second section.
14242 * opts.c: Include except.h.
14243 (decode_options): Allow -freorder-blocks-and-partition with
14244 exceptions, unless SJLJ or TARGET_UNWIND_INFO.
14245 * Makefile.in (opts.o): Depend on $(EXCEPT_H).
14246 * function.h (struct rtl_eh): Change call_site_record from
14247 scalar into array of 2 elements.
14248
14249 2009-08-07 Martin Jambor <mjambor@suse.cz>
14250
14251 * ipa-prop.c (count_formal_params_1): New function.
14252 (ipa_get_vector_of_formal_parms): New function.
14253 (get_vector_of_formal_parm_types): New function.
14254 (ipa_modify_formal_parameters): New function.
14255 (ipa_modify_call_arguments): New function.
14256 (index_in_adjustments_multiple_times_p): New function.
14257 (ipa_combine_adjustments): New function.
14258 (ipa_dump_param_adjustments): New function.
14259 * ipa-prop.h (struct ipa_parm_adjustment): New type.
14260 (ipa_get_vector_of_formal_parms): Declare.
14261 (ipa_modify_formal_parameters): Declare.
14262 (ipa_modify_call_arguments): Declare.
14263 (ipa_combine_adjustments): Declare.
14264 (ipa_dump_param_adjustments): Declare.
14265 (build_ref_for_offset): Declare.
14266 * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
14267 * tree-sra.c: Include ipa-prop.c.
14268 (build_ref_for_offset): Make public.
14269
14270 2009-08-06 Neil Vachharajani <nvachhar@gmail.com>
14271
14272 * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
14273
14274 2009-08-06 Thomas Schwinge <tschwinge@gnu.org>
14275
14276 * gcc/doc/extend.texi (__builtin_extract_return_address)
14277 (__builtin_frob_return_address): Document.
14278
14279 2009-08-06 Paul Brook <paul@codesourcery.com>
14280
14281 * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
14282 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
14283 implementation on ARMv6-M.
14284
14285 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
14286
14287 * doc/extend.texi (pcs): Document new attribute for ARM.
14288
14289 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
14290
14291 * arm.c (pcs_attribute_args): Comment out unsupported attribute
14292 variants.
14293
14294 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
14295
14296 * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
14297 warning ().
14298
14299 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
14300
14301 * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
14302
14303 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
14304
14305 Merge ARM/hard_vfp_branch to trunk.
14306
14307 2009-08-04 Richard Earnshaw <rearnsha@arm.com>
14308
14309 * arm.c (libcall_eq): New function.
14310 (libcall_hash): New function.
14311 (add_libcall): New function.
14312 (arm_libcall_uses_aapcs_base): New function.
14313 (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
14314 libcalls using the base PCS.
14315 (arm_init_cumulative_args): Likewise.
14316
14317 2009-07-20 Joseph Myers <joseph@codesourcery.com>
14318
14319 * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
14320 Use base ABI for conversion libfuncs between HFmode and SFmode.
14321
14322 2009-05-12 Joseph Myers <joseph@codesourcery.com>
14323
14324 * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
14325 V4SImode as representatives of all 64-bit and 128-bit vector
14326 types. Allow vector types without vector modes.
14327 (aapcs_vfp_is_call_or_return_candidate): Handle vector types
14328 without vector modes like BLKmode.
14329 (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
14330 BLKmode. Avoid unsupported vector modes or TImode moves for
14331 non-TARGET_NEON.
14332 (aapcs_vfp_allocate_return_reg): Likewise.
14333 (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
14334 V8QImode if TARGET_NEON || TARGET_IWMMXT.
14335
14336 2009-05-12 Joseph Myers <joseph@codesourcery.com>
14337
14338 * config/arm/arm.c (arm_handle_pcs_attribute): New.
14339 (arm_get_pcs_model): Pass attribute arguments to
14340 arm_pcs_from_attribute.
14341 (arm_init_cumulative_args): Use base AAPCS for conversions from
14342 floating-point types to DImode.
14343 (arm_attribute_table): Add pcs attribute.
14344 (arm_handle_pcs_attribute): New.
14345 * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
14346 conversions from floating-point types to DImode, also declare them
14347 to use base AAPCS and declare functions they call to use base
14348 AAPCS and their RTABI names.
14349
14350 2009-05-12 Joseph Myers <joseph@codesourcery.com>
14351
14352 * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
14353 -mfloat-abi=hard not being supported for VFP.
14354
14355 2009-05-11 Kazu Hirata <kazu@codesourcery.com>
14356
14357 * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
14358 SYMBOL_REF to hard_libcall_value.
14359
14360 2009-03-05 Joseph Myers <joseph@codesourcery.com>
14361 Richard Earnshaw <rearnsha@arm.com>
14362
14363 * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
14364 has been put on the stack, all remaining co-processory arguments for
14365 that co-processor also go on the stack.
14366
14367 2009-03-05 Joseph Myers <joseph@codesourcery.com>
14368
14369 * config/arm/arm.c (arm_return_in_memory): Handle returning
14370 vectors of suitable size in registers also for AAPCS case.
14371
14372 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
14373
14374 * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
14375
14376 2008-12-09 Richard Earnshaw <rearnsha@arm.com>
14377
14378 ARM Hard-VFP calling convention
14379 * target-def.h (TARGET_LIBCALL_VALUE): New hook.
14380 * target.h (gcc_target): Add libcall_value to table of call hooks.
14381 * targhooks.h (default_libcall_value): Default implementation.
14382 * targhooks.c (default_libcall_value): Likewise.
14383 * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
14384 * optabs.c (expand_unop): Use it.
14385 * expr.h (hard_libcall_value): Pass the function RTX through.
14386 * calls.c (emit_library_call_value_1): Update call to
14387 hard_libcall_value.
14388 * explow.c (hard_libcall_value): Use new target hook.
14389 * config/arm/arm.c: Include cgraph.h
14390 (TARGET_FUNCTION_VALUE): Override default hook.
14391 (arm_pcs_default): New variable.
14392 (arm_override_options): Don't fault hard calling convention with VFP.
14393 Add support for AAPCS variants.
14394 (arm_function_value): Make static. Handle AAPCS variants.
14395 (arm_libcall_value): New function.
14396 (arm_apply_result_size): Handle VFP registers in results.
14397 (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
14398 conventions.
14399 (pcs_attribute_args): New variable.
14400 (arm_pcs_from_attribute): New function.
14401 (arm_get_pcs_model): New function.
14402 (aapcs_vfp_cum_init): New function.
14403 (aapcs_vfp_sub_candidate): New function.
14404 (aapcs_vfp_is_return_candidate): New function.
14405 (aapcs_vfp_is_call_candidate): New function.
14406 (aapcs_vfp_allocate): New function.
14407 (aapcs_vfp_allocate_return_reg): New function.
14408 (aapcs_vfp_advance): New function.
14409 (aapcs_cp_arg_layout): New variable.
14410 (aapcs_select_call_coproc): New function.
14411 (aapcs_select_return_coproc): New function.
14412 (aapcs_allocate_return_reg): New function.
14413 (aapcs_libcall_value): New function.
14414 (aapcs_layout_arg): New function.
14415 (arm_init_cumulative_args): Initialize AAPCS args data.
14416 (arm_function_arg): Handle AAPCS variants using new interface.
14417 (arm_arg_parital_bytes): Likewise.
14418 (arm_function_arg_advance): New function.
14419 (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
14420 calling conventions.
14421 (arm_setup_incoming_varargs): Handle new AAPCS args data.
14422 * arm.h (NUM_VFP_ARG_REGS): Define.
14423 (LIBCALL_VALUE): Update.
14424 (FUNCTION_VALUE): Delete.
14425 (FUNCTION_VALUE_REGNO_P): Add VFP regs.
14426 (arm_pcs): New enum.
14427 (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
14428 (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
14429 (FUNCTION_ARG_REGNO_P): Add VFP regs.
14430 * arm-protos.h (arm_function_arg_advance): Add.
14431 (aapcs_libcall_value): Add.
14432 (arm_function_value): Delete.
14433
14434 2009-08-06 Uros Bizjak <ubizjak@gmail.com>
14435 H.J. Lu <hongjiu.lu@intel.com>
14436
14437 PR target/40957
14438 * config/i386/i386.c (standard_sse_mode_p): Remove.
14439 (standard_sse_constant_p): Return 2 for integer mode
14440 vector_all_ones_operand when SSE2 is enabled.
14441 (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
14442 (ix86_expand_vector_move): Do not check for negative values from
14443 standard_sse_constant_p.
14444
14445 2009-08-06 Richard Guenther <rguenther@suse.de>
14446
14447 * tree-ssa.c (useless_type_conversion_p_1): Make function and
14448 array type comparisons frontend independent.
14449 * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
14450 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
14451 out array reference lower bound and element size operands.
14452 (ao_ref_init_from_vn_reference): Properly compute the offset
14453 for ARRAY_RANGE_REF.
14454 (vn_reference_fold_indirect): Fill out array reference lower
14455 bound and element size operands.
14456 * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
14457 a non gimple valued reference operand which can happen for
14458 array reference lower bound or element size.
14459 (create_component_ref_by_pieces_1): Properly generate the
14460 element size operand for array references.
14461
14462 2009-08-06 Richard Guenther <rguenther@suse.de>
14463
14464 PR tree-optimization/40964
14465 * tree.c (iterative_hash_host_wide_int): Export.
14466 * tree.h (iterative_hash_host_wide_int): Declare.
14467 * tree-ssa-structalias.c (heapvar_map): New struct.
14468 (heapvar_map_eq): New function.
14469 (heapvar_map_hash): Likewise.
14470 (heapvar_lookup): Adjust.
14471 (heapvar_insert): Likewise.
14472 (make_constraint_from_heapvar): Allow multiple heap variables
14473 per decl at different offsets.
14474 (init_alias_heapvars): Adjust.
14475
14476 2009-08-04 David Daney <ddaney@caviumnetworks.com>
14477
14478 * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
14479 * mips_output_sync_loop (mips_output_sync_loop): Only emit
14480 trailing sync if TARGET_SYNC_AFTER_SC.
14481
14482 2009-08-05 David Daney <ddaney@caviumnetworks.com>
14483
14484 * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
14485 compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
14486 sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
14487 sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
14488 sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
14489 sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
14490 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
14491 sync_new_nand<mode>, sync_lock_test_and_set<mode>,
14492 test_and_set_12): Rewrite calls to mips_output_sync_loop.
14493 * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
14494 the prototype declaration match the definition.
14495 * gcc/config/mips/mips.c (mips_output_sync_loop): Emit sync
14496 instructions explicitly. Add barrier_before and operands
14497 parameters.
14498 * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
14499 MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
14500 MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
14501 MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
14502 MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
14503 MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
14504
14505 2009-08-05 Andrew Pinski <pinskia@gmail.com>
14506
14507 * tree-ssa-alias.c: Fix intervals to use [) syntax.
14508
14509 2009-08-05 Uros Bizjak <ubizjak@gmail.com>
14510 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
14511
14512 PR target/40906
14513 * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
14514 source operand.
14515
14516 2009-08-05 Jakub Jelinek <jakub@redhat.com>
14517
14518 PR rtl-optimization/40924
14519 * dse.c (canon_address): Before calling cselib_expand_value_rtx
14520 make sure canon_rtx (mem_address) isn't simpler than
14521 canon_rtx (expanded_mem_address).
14522
14523 2009-08-05 Li Feng <nemokingdom@gmail.com>
14524
14525 * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
14526 for each poly_bb_p.
14527 (build_scop_drs): Build alias set for each SCoP.
14528
14529 2009-08-04 Sandra Loosemore <sandra@codesourcery.com>
14530
14531 * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
14532 * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
14533 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
14534 (MIPS_ARCH_FLOAT_SPEC): Likewise.
14535 (BASE_DRIVER_SELF_SPECS): Likewise.
14536
14537 2009-08-04 Andrew Pinski <pinskia@gmail.com>
14538
14539 * tree-ssa-alias.c: Fix some comment typos.
14540
14541 2009-08-04 Kaz Kojima <kkojima@gcc.gnu.org>
14542
14543 * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
14544 ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
14545
14546 2009-08-03 Janis Johnson <janis187@us.ibm.com>
14547
14548 PR c/39902
14549 * simplify-rtx.c (simplify_binary_operation_1): Disable
14550 simplifications for decimal float operations.
14551
14552 2009-08-03 Jakub Jelinek <jakub@redhat.com>
14553
14554 PR middle-end/40943
14555 * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
14556 operand of INDIRECT_REF.
14557
14558 2009-08-03 Uros Bizjak <ubizjak@gmail.com>
14559
14560 * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
14561 constants referencing TLS symbols.
14562
14563 2009-08-03 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
14564
14565 * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
14566 __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
14567
14568 2009-08-03 Richard Guenther <rguenther@suse.de>
14569
14570 * tree.c (make_vector_type): Build a main variant first,
14571 get the canonical one and then build the variant.
14572 * tree-ssa.c (useless_type_conversion_p_1): Handle
14573 fixed-point types.
14574 (useless_type_conversion_p): Conversions to pointers to
14575 incomplete record types are useless.
14576
14577 2009-08-03 Richard Guenther <rguenther@suse.de>
14578
14579 * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
14580 file will be created.
14581 * omp-low.c (pass_diagnose_omp_blocks): Likewise.
14582 * toplev.c (compile_file): Adjust comment.
14583
14584 2009-08-03 Kaz Kojima <kkojima@gcc.gnu.org>
14585
14586 * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
14587 * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
14588 (TARGET_PROMOTE_FUNCTION_MODE): Define.
14589 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
14590 (sh_promote_function_mode): Fix typo.
14591
14592 2009-08-03 Andreas Krebbel <krebbel1@de.ibm.com>
14593
14594 * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
14595
14596 2009-08-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14597
14598 * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
14599 declaration arguments.
14600
14601 2009-08-02 Uros Bizjak <ubizjak@gmail.com>
14602
14603 * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
14604 of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
14605 (ix86_split_ashl): Ditto.
14606 (ix86_expand_vector_init_one_nonzero): Ditto.
14607 (ix86_expand_vector_set): Ditto.
14608 (ix86_expand_reduc_v4sf): Ditto.
14609
14610 2009-08-02 Paolo Bonzini <bonzini@gnu.org>
14611
14612 * explow.c (promote_function_mode): Remove assert.
14613 * config/sh/sh.c (sh_promote_function_mode): Declare.
14614
14615 2009-08-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14616
14617 * config/pa/pa.c (pa_promote_function_mode): Declare.
14618 Change to static. Fix promote_mode call.
14619
14620 * gthr-dce.h (CONST_CAST2): Define if not defined.
14621 (__gthread_setspecific): Use CONST_CAST2 to fix warning.
14622
14623 * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
14624
14625 2009-08-01 Paolo Bonzini <bonzini@gnu.org>
14626
14627 * expr.c (store_constructor): Use promote_decl_mode. Remove
14628 now write-only variable unsignedp.
14629 (expand_expr_real_1): Use promote_decl_mode.
14630 * expr.h (promote_function_mode, promote_decl_mode): New.
14631 (promote_mode): Remove last argument.
14632 * function.c (assign_temp): Drop last argument of promote_mode.
14633 (assign_parm_find_data_types): Use promote_function_mode.
14634 (assign_parm_setup_reg): Likewise.
14635 (expand_function_end): Use promote_function_mode.
14636 * calls.c (initialize_argument_information): Use promote_function_mode.
14637 (precompute_arguments): Use promote_mode instead of checking if
14638 only PROMOTE_FUNCTION_MODE is defined.
14639 (expand_call): When making sibcall decisions, use promote_function_mode.
14640 Below, remove an if for targetm.calls.promote_function_return and
14641 and use promote_function_mode.
14642 (emit_library_call_value_1): Use promote_function_mode, fix bug
14643 where promote_mode was passed FOR_CALL == 0 for a return value in an
14644 assertion.
14645 * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
14646 * explow.c (promote_function_mode, promote_decl_mode): New.
14647 (promote_mode): Keep only the FOR_CALL == 0 case.
14648 * combine.c (setup_incoming_promotion): Remove test of
14649 promote_function_args. Use promote_function_mode.
14650 * stmt.c (expand_value_return): Use promote_decl_mode.
14651 (expand_decl): Use promote_decl_mode.
14652
14653 * expr.c (store_constructor): Use promote_decl_mode. Remove
14654 now write-only variable unsignedp.
14655 (expand_expr_real_1): Use promote_decl_mode.
14656 * expr.h (promote_function_mode, promote_decl_mode): New.
14657 (promote_mode): Remove last argument.
14658 * function.c (assign_temp): Drop last argument of promote_mode.
14659 (assign_parm_find_data_types): Use promote_function_mode.
14660 (assign_parm_setup_reg): Likewise.
14661 (expand_function_end): Use promote_function_mode.
14662 * calls.c (initialize_argument_information): Use promote_function_mode.
14663 (precompute_arguments): Use promote_mode instead of checking if
14664 only PROMOTE_FUNCTION_MODE is defined.
14665 (expand_call): When making sibcall decisions, use promote_function_mode.
14666 Below, remove an if for targetm.calls.promote_function_return and
14667 and use promote_function_mode.
14668 (emit_library_call_value_1): Use promote_function_mode, fix bug
14669 where promote_mode was passed FOR_CALL == 0 for a return value in an
14670 assertion.
14671 * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
14672 * explow.c (promote_function_mode, promote_decl_mode): New.
14673 (promote_mode): Keep only the FOR_CALL == 0 case.
14674 * combine.c (setup_incoming_promotion): Remove test of
14675 promote_function_args. Use promote_function_mode.
14676 * stmt.c (expand_value_return): Use promote_decl_mode.
14677 (expand_decl): Use promote_decl_mode.
14678
14679 * explow.c (promote_function_mode): Just call the target hook.
14680 * targhooks.c (default_promote_function_mode,
14681 default_promote_function_mode_always_promote): New.
14682 * targhooks.h (default_promote_function_mode,
14683 default_promote_function_mode_always_promote): Declare.
14684 * target.h (promote_function_args, promote_function_return): Remove.
14685 (promote_function_mode): New.
14686 * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
14687 TARGET_PROMOTE_FUNCTION_RETURN): Remove.
14688 (TARGET_PROMOTE_FUNCTION_MODE): New.
14689 (TARGET_CALLS): Adjust.
14690 * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
14691 TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
14692
14693 * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
14694 * config/s390/s390.c (s390_promote_function_mode): ... here,
14695 with pointer handling.
14696 (TARGET_PROMOTE_FUNCTION_MODE): Define.
14697 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
14698
14699 * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
14700 * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
14701 with pointer handling.
14702 (TARGET_PROMOTE_FUNCTION_MODE): Define.
14703 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
14704
14705 * config/sh/sh-protos.h (sh_promote_function_mode): New.
14706 * config/sh/sh.c (sh_promote_function_mode): New.
14707 (TARGET_PROMOTE_FUNCTION_MODE): Define.
14708 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
14709
14710 * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
14711 * config/cris/cris.c (cris_promote_function_mode): ... here.
14712 (TARGET_PROMOTE_FUNCTION_MODE): Define.
14713 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
14714
14715 * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
14716 * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
14717 (TARGET_PROMOTE_FUNCTION_MODE): Define.
14718 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
14719
14720 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
14721 * config/arm/arm.c (arm_promote_function_mode): ... here, without
14722 complex type handling.
14723 (TARGET_PROMOTE_FUNCTION_MODE): Define.
14724 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
14725
14726 * config/pa/pa.c (pa_promote_function_mode): New.
14727 (TARGET_PROMOTE_FUNCTION_MODE): Define.
14728 (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
14729
14730 * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
14731 TARGET_PROMOTE_FUNCTION_RETURN): Remove.
14732 (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
14733 * config/xtensa/xtensa.c: Likewise.
14734 * config/stormy16/stormy16.c: Likewise.
14735 * config/iq2000/iq2000.c: Likewise.
14736 * config/rs6000/rs6000.c: Likewise.
14737 * config/picochip/picochip.c: Likewise.
14738 * config/arc/arc.c: Likewise.
14739 * config/mcore/mcore.c: Likewise.
14740 * config/score/score.c: Likewise.
14741 * config/mips/mips.c: Likewise.
14742 * config/bfin/bfin.c: Likewise.
14743 * config/ia64/ia64.c: Likewise (disabled though).
14744
14745 * config/frv/frv.h: Remove pointless remark.
14746
14747 * doc/tm.texi (PROMOTE_FUNCTION_MODE,
14748 TARGET_PROMOTE_FUNCTION_ARGS,
14749 TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
14750 (TARGET_PROMOTE_FUNCTION_MODE): ... this.
14751
14752 2009-08-01 Sebastian Pop <sebastian.pop@amd.com>
14753
14754 * doc/invoke.texi (-fgraphite-force-parallel): Renamed
14755 -floop-parallelize-all.
14756 * toplev.c (process_options): Rename flag_graphite_force_parallel to
14757 flag_loop_parallelize_all.
14758 * tree-ssa-loop.c (gate_graphite_transforms): Same.
14759 * graphite.c (graphite_transform_loops): Same.
14760 * common.opt: Same.
14761 * graphite-poly.c (apply_poly_transforms): Same.
14762
14763 2009-07-31 Richard Earnshaw <rearnsha@arm.com>
14764
14765 PR tree-optimization/40914
14766 * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
14767 if set, then check the delta field of the PMF record.
14768 (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
14769 (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
14770 call is stored in the delta.
14771
14772 2009-07-31 Adam Nemet <anemet@caviumnetworks.com>
14773
14774 * config/mips/mips.md (*clear_upper32_dext): New pattern.
14775
14776 2009-07-31 Uros Bizjak <ubizjak@gmail.com>
14777
14778 * config/i386/bsd.h (ASM_BYTE): New define.
14779 * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
14780 * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
14781 .byte. Use fputs or putc instead of fprintf where appropriate.
14782 * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte. Use
14783 fputs or putc instead of fprintf where appropriate.
14784 * config/i386/i386elf.h: Ditto.
14785 * config/i386/sysv4.h: Ditto.
14786
14787 * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
14788 * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
14789 (*tls_global_dynamic_64): Ditto.
14790
14791 2009-07-31 Christian Bruel <christian.bruel@st.com>
14792
14793 * gcc/config.gcc (sh*-*-elf): test with_libgloss.
14794
14795 2009-07-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14796
14797 * config/arm/arm.c (arm_arm_address_cost): Fix typo.
14798 Remove dead code for MINUS.
14799
14800 2009-07-31 Anthony Green <green@moxielogic.com>
14801
14802 * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
14803 $r12 in prologue.
14804 (moxie_expand_epilogue): Ditto for epilogue.
14805 (moxie_setup_incoming_varargs): ABI change. Use 5 registers for
14806 incoming arguments.
14807 (moxie_function_arg): Ditto.
14808 (moxie_pass_by_reference): Ditto.
14809 (moxie_arg_partial_bytes): Ditto.
14810 * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
14811 (FUNCTION_ARG_ADVANCE) Ditto.
14812 (REG_PARM_STACK_SPACE) Ditto.
14813 (FUNCTION_ARG_REGNO_P) Dito.
14814
14815 * config.gcc: Add moxie linux config support.
14816 * gcc/config/moxie/uclinux.h: New file.
14817
14818 2009-07-31 DJ Delorie <dj@redhat.com>
14819
14820 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
14821 (UNSPECV_SP_SWITCH_E): New.
14822 (sp_switch_1): Change to an unspec.
14823 (sp_switch_2): Change to an unspec. Don't use post-inc when we
14824 replace $r15.
14825 * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
14826 reference the new stack's address
14827
14828 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
14829
14830 * Makefile.in (OBJS-common): Added dependence on 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.
14834 (graphite-blocking.o,
14835 graphite-clast-to-gimple.o, graphite-dependences.o,
14836 graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
14837 graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
14838 * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
14839 * cfgloop.h (struct loop): Add can_be_parallel field.
14840 * common.opt (fgraphite-identity): Moved up.
14841 (fgraphite-force-parallel): New flag.
14842 * graphite.c: Rewrite.
14843 * graphite.h: Rewrite.
14844 * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
14845 after Graphite.
14846 * toplev.c (graphite_out_file): New file descriptor.
14847 (graphite_in_file): New.
14848 (process_options): flag_graphite_force_parallel cannot be used without
14849 Graphite.
14850 * tree-ssa-loop.c: Include toplev.h.
14851 (gate_graphite_transforms): Enable flag_graphite for
14852 flag_graphite_force_parallel.
14853
14854 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
14855
14856 * ChangeLog.graphite: New.
14857 * graphite-blocking.c: New.
14858 * graphite-clast-to-gimple.c: New.
14859 * graphite-clast-to-gimple.h: New.
14860 * graphite-dependences.c: New.
14861 * graphite-dependences.h: New.
14862 * graphite-interchange.c: New.
14863 * graphite-poly.c: New.
14864 * graphite-poly.h: New.
14865 * graphite-ppl.c: New.
14866 * graphite-ppl.h: New.
14867 * graphite-scop-detection.c: New.
14868 * graphite-scop-detection.h: New.
14869 * graphite-sese-to-poly.c: New.
14870 * graphite-sese-to-poly.h: New.
14871 * sese.c: New.
14872 * sese.h: New.
14873
14874 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
14875
14876 * tree-chrec.c (evolution_function_right_is_integer_cst): New.
14877 * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
14878
14879 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
14880
14881 * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
14882 (scev_is_linear_expression): Return false if the evolution is not
14883 affine multivariate.
14884
14885 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
14886
14887 * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
14888 * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
14889
14890 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
14891
14892 * tree-data-ref.c (debug_data_references): New.
14893 (debug_data_reference): New.
14894 * tree-data-ref.h (debug_data_references): Declared.
14895 (debug_data_reference): Declared.
14896
14897 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
14898
14899 * tree-data-ref.c (stmt_simple_memref_p: Removed.
14900 * tree-data-ref.h (scop_p): Removed.
14901 (struct data_reference): Remove field scop.
14902 (DR_SCOP): Removed.
14903 (stmt_simple_memref_p): Removed.
14904
14905 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
14906
14907 * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
14908 * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
14909 basic block empty.
14910
14911 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
14912
14913 * doc/invoke.texi (-fgraphite-force-parallel): Documented.
14914
14915 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
14916
14917 * doc/invoke.texi (-fgraphite-identity): Documented.
14918
14919 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
14920
14921 * tree-scalar-evolution.c: Fix comment.
14922 (instantiate_scev_1): Return unknow from scev instantiation if the
14923 result is not above instantiate_below.
14924
14925 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
14926
14927 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
14928 static anymore. Instantiate the symbols that may have been introduced
14929 by chrec_apply.
14930 * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
14931 Declared.
14932
14933 2009-07-30 DJ Delorie <dj@redhat.com>
14934
14935 * config/mep/mep.c (mep_asm_init_sections): Add section flags and
14936 .vliw directive to VLIW sections.
14937
14938 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14939
14940 * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
14941 New variables.
14942 ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
14943 (AUTOHEADER): New variable.
14944 ($(srcdir)/cstamp-h.in): Use it.
14945
14946 2009-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
14947 Pat Haugen <pthaugen@us.ibm.com>
14948 Revital Eres <ERES@il.ibm.com>
14949
14950 * config/rs6000/vector.md (VEC_F): Add VSX support.
14951 (VEC_A): Ditto.
14952 (VEC_N): Ditto.
14953 (mov<mode>): Ditto.
14954 (vector_load_<mode>): Ditto.
14955 (vector_store_<mode>): Ditto.
14956 (vector GPR move split): Ditto.
14957 (vec_reload_and_plus_<mptrsize>): Ditto.
14958 (vec_reload_and_reg_<mptrsize>): Ditto.
14959 (add<mode>3): Ditto.
14960 (sub<mode>3): Ditto.
14961 (mul<mode>3): Ditto.
14962 (neg<mode>2): Ditto.
14963 (abs<mode>2): Ditto.
14964 (smin<mode>3): Ditto.
14965 (smax<mode>3): Ditto.
14966 (vector_eq<mode>): Ditto.
14967 (vector_gt<mode>): Ditto.
14968 (vector_ge<mode>): Ditto.
14969 (vector_gtu<mode>): Ditto.
14970 (vector_select_<mode>_uns): Ditto.
14971 (vector_eq_<mode>_p): Ditto.
14972 (vector_gt_<mode>_p): Ditto.
14973 (vector_ge_<mode>_p): Ditto.
14974 (vector_gtu_<mode>_p): Ditto.
14975 (cr6_test_for_zero): Ditto.
14976 (cr6_test_for_zero_reverse): Ditto.
14977 (cr6_test_for_lt): Ditto.
14978 (cr6_test_for_lt_reverse): Ditto.
14979 (xor<mode>3): Ditto.
14980 (ior<mode>3): Ditto.
14981 (and<mode>3): Ditto.
14982 (one_cmpl<mode>2): Ditto.
14983 (nor<mode>2): Ditto.
14984 (andc<mode>2): Ditto.
14985 (float<VEC_int<mode>2): Ditto.
14986 (unsigned_float<VEC_int><mode>2): Ditto.
14987 (fix_trunc<mode><VEC_int>2): Ditto.
14988 (fixuns_trunc<mode><VEC_int>2): Ditto.
14989 (vec_init<mode>):
14990 (vec_set<mode>): Ditto.
14991 (vec_extract<mode>): Ditto.
14992 (vec_interleave_highv4sf): Ditto.
14993 (vec_interleave_lowv4sf): Ditto.
14994 (vec_realign_load_<mode>): Ditto.
14995 (vec_shl_<mode>): Ditto.
14996 (vec_shr_<mode>): Ditto.
14997 (div<mode>3): New patterns for VSX.
14998 (vec_interleave_highv2df): Ditto.
14999 (vec_interleave_lowv2df): Ditto.
15000 (vec_pack_trunc_v2df): Ditto.
15001 (vec_pack_sfix_trunc_v2df): Ditto.
15002 (vec_pack_ufix_trunc_v2df): Ditto.
15003 (vec_unpacks_hi_v4sf): Ditto.
15004 (vec_unpacks_lo_v4sf): Ditto.
15005 (vec_unpacks_float_hi_v4si): Ditto.
15006 (vec_unpacks_float_lo_v4si): Ditto.
15007 (vec_unpacku_float_hi_v4si): Ditto.
15008 (vec_unpacku_float_lo_v4si): Ditto.
15009 (movmisalign<mode>): Ditto.
15010 (vector_ceil<mode>2): New patterns for vectorizing math library.
15011 (vector_floor<mode>2): Ditto.
15012 (vector_btrunc<mode>2): Ditto.
15013 (vector_copysign<mode>3): Ditto.
15014
15015 * config/rs6000/predicates.md (easy_vector_constant_msb): New
15016 predicate for setting the high bit in each word, used for copysign.
15017
15018 * config/rs6000/ppc-asm.h (f19): Whitespace.
15019 (f32-f63): Define if VSX.
15020 (v0-v31): Define if Altivec.
15021 (vs0-vs63): Define if VSX.
15022
15023 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
15024
15025 * config/rs6000/power7.md: New file, provide tuning parameters for
15026 -mcpu=power7.
15027
15028 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
15029 (rs6000_cpu_cpp_builtins): Ditto.
15030 (altivec_overloaded_builtins): Ditto.
15031 (altivec_resolve_overloaded_builtin): Ditto.
15032
15033 * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
15034 debug switch to disable vectorizing simple math builtin
15035 functions.
15036
15037 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
15038 Vectorize simple math builtin functions.
15039 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
15040 hook to vectorize math builtins.
15041 (rs6000_override_options): Enable -mvsx on -mcpu=power7.
15042 (rs6000_builtin_conversion): Add VSX/power7 support.
15043 (rs6000_builtin_vec_perm): Ditto.
15044 (vsplits_constant): Add support for loading up a vector constant
15045 with just the high bit set in each part.
15046 (rs6000_expand_vector_init): Add VSX/power7 support.
15047 (rs6000_expand_vector_set): Ditto.
15048 (rs6000_expand_vector_extract): Ditto.
15049 (rs6000_emit_move): Ditto.
15050 (bdesc_3arg): Ditto.
15051 (bdesc_2arg): Ditto.
15052 (bdesc_1arg): Ditto.
15053 (rs6000_expand_ternop_builtin): Ditto.
15054 (altivec_expand_builtin): Ditto.
15055 (rs6000_expand_unop_builtin): Ditto.
15056 (rs6000_init_builtins): Ditto.
15057 (altivec_init_builtins): Ditto.
15058 (builtin_function_type): Ditto.
15059 (rs6000_common_init_builtins): Ditto.
15060 (rs6000_handle_altivec_attribute); Ditto.
15061 (rs6000_mangle_type): Ditto.
15062 (rs6000_vector_mode_supported_p): Ditto.
15063 (rs6000_mode_dependent_address): Altivec addresses with AND -16
15064 are mode dependent.
15065
15066 * config/rs6000/vsx.md: New file for VSX support.
15067
15068 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
15069 identifing values with just the most significant bit set.
15070 (enum rs6000_builtins): Add builtins for VSX. Add simple math
15071 vectorized builtins.
15072
15073 * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
15074 (UNSPEC_VRFIM): Delete.
15075 (splitter for loading up vector with most significant bit): New
15076 splitter for vectorizing copysign.
15077 (altivec_vrfiz): Rename from altivec_fturncv4sf2. Add support for
15078 vectorizing simple math functions.
15079 (altivec_vrfip): Add support for vectorizing simple math functions.
15080 (altivec_vrfim): Ditto.
15081 (altivec_copysign_v4sf3): New insn for Altivec copysign support.
15082
15083 * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
15084 (power7.md, vsx.md): Include for power7 support.
15085 (copysigndf3): Use VSX instructions if -mvsx.
15086 (negdf2_fpr): Ditto.
15087 (absdf2_fpr): Ditto.
15088 (nabsdf2_fpr): Ditto.
15089 (adddf3_fpr): Ditto.
15090 (subdf3_fpr): Ditto.
15091 (muldf3_fpr): Ditto.
15092 (divdf3_fpr): Ditto.
15093 (fix_truncdfdi2_fpr): Ditto.
15094 (cmpdf_internal1): Ditto.
15095 (fred, fred_fpr): Convert into expander/insn to add VSX support.
15096 (btruncdf2, btruncdf2_fpr): Ditto.
15097 (ceildf2, ceildf2_fpr): Ditto.
15098 (floordf2, floordf2_fpr): Ditto.
15099 (floatdidf2, floatdidf2_fpr): Ditto.
15100 (fmadddf4_fpr): Name insn. Use VSX instructions if -mvsx.
15101 (fmsubdf4_fpr): Ditto.
15102 (fnmadddf4_fpr_1): Ditto.
15103 (fnmadddf4_fpr_2): Ditto.
15104 (fnmsubdf4_fpr_1): Ditto.
15105 (fnmsubdf4_fpr_2): Ditto.
15106 (fixuns_truncdfdi2): Add expander for VSX support.
15107 (fix_truncdfdi2): Ditto.
15108 (fix_truncdfsi2): Ditto.
15109 (ftruncdf2): Ditto.
15110 (btruncsf2): Whitespace.
15111 (movdf_hardfloat32): Add support for VSX registers.
15112 (movdf_softfloat32): Ditto.
15113 (movdf_hardfloat64): Ditto.
15114 (movdf_hardfloat64_mfpgpr): Ditto.
15115 (movdf_softfloat64): Ditto.
15116 (movti splitters): Add check for vector registers supporting
15117 TImode in the future.
15118 (bpermd): Add power7 bpermd instruction.
15119
15120 * config/rs6000/altivec.h (vec_div): Define if VSX.
15121 (vec_mul): Ditto.
15122 (vec_msub): Ditto.
15123 (vec_nmadd): Ditto.
15124 (vec_nearbyint): Ditto.
15125 (vec_rint): Ditto.
15126 (vec_sqrt): Ditto.
15127 (all predicates): Use the generic builtin function, and not the V4SF
15128 specific function so that the predicates will work with VSX's V2DF.
15129 (vec_all_*): Ditto.
15130 (vec_any_*): Ditto.
15131
15132 * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
15133 Document new VSX functions and types.
15134
15135 * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
15136 switches.
15137
15138 * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
15139 "wa", and "j" constraints. Modify "v" to talk about Altivec
15140 instead of just vector.
15141
15142 2009-07-30 Andrew MacLeod <amacleod@redhat.com>
15143
15144 PR debug/26475
15145 * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
15146 location for phi arguments.
15147 (rewrite_update_phi_arguments): Find locations for reaching defs.
15148 * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
15149 Add location to add_phi_arg calls.
15150 * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
15151 * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
15152 split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
15153 * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
15154 create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
15155 * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
15156 * tree-phinodes.c (make_phi_node): Initialize location.
15157 (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
15158 (add_phi_arg): Add location parameter.
15159 (remove_phi_arg_num): Move location when moving phi argument.
15160 * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
15161 location.
15162 * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
15163 slpeel_update_phi_nodes_for_guard1,
15164 slpeel_update_phi_nodes_for_guard2,
15165 slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
15166 vect_loop_versioning): Set locations.
15167 * tree-parloops.c (create_phi_for_local_result,
15168 transform_to_exit_first_loop, create_parallel_loop): Add locations.
15169 * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
15170 * tree-vect-loop.c (get_initial_def_for_induction,
15171 vect_create_epilog_for_reduction, vect_finalize_reduction): Add
15172 locations.
15173 * tree-flow-inline.h (gimple_phi_arg_location): New. Return locus.
15174 (gimple_phi_arg_location_from_edge): New. Return locus from an edge.
15175 (gimple_phi_arg_set_location): New. Set locus.
15176 (gimple_phi_arg_has_location): New. Check for locus.
15177 (redirect_edge_var_map_location): New. Return locus from var_map.
15178 * tree-vect-data-refs.c (vect_setup_realignment): Set location.
15179 * tree-ssa-phiopt.c (conditional_replacement): Set locus when
15180 combining PHI arguments.
15181 (cond_store_replacement): Set location.
15182 * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
15183 * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
15184 scop_add_exit_phis_edge): Add locations.
15185 * tree-cfgcleanup.c (remove_forwarder_block,
15186 remove_forwarder_block_with_phi): Add locations.
15187 * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
15188 * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
15189 locations.
15190 * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
15191 * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
15192 flush_pending_stmts): Add source location.
15193 * lambda-code.c (perfect_nestify): Maintain location stack with argument
15194 stack to preserve locations.
15195 * tree-vect-stmts.c (vectorizable_load): Add location.
15196 * tree-inline.c (copy_phis_for_bb): Copy locus.
15197 (setup_one_parameter): Add call locus to inlined parameter stmts.
15198 (initialize_inlined_parameters): Pass in call location as parameter
15199 assignment locus.
15200 (tree_function_versioning): Pass location to setup_one_parameter.
15201 * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
15202 * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
15203 copy and edge lists.
15204 (insert_partition_copy_on_edge, insert_value_copy_on_edge,
15205 insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
15206 locus parameter and override the stmt default if provided.
15207 (new_elim_graph, clear_elim_graph, delete_elim_graph,
15208 elim_graph_add_edge, elim_graph_remove_succ_edge,
15209 FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
15210 elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
15211 eliminate_phi): Add locus info in elimination graph for each edge and
15212 value copy.
15213 (insert_backedge_copies): Copy locus if present.
15214 * tree-flow.h (struct _edge_var_map): Add locus field.
15215 * tree-switch_conversions.c (fix_phi_nodes): Add locations.
15216 * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
15217 add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
15218 locations.
15219 * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
15220
15221 2009-07-30 Martin Jambor <mjambor@suse.cz>
15222
15223 PR tree-optimization/40570
15224 * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
15225 use inlining loops.
15226
15227 2009-07-30 Razya Ladelsky <razya@il.ibm.com>
15228
15229 * ssa-loop-manip.c: Include langhooks.h.
15230 (rewrite_phi_with_iv): New.
15231 (rewrite_all_phi_nodes_with_iv): New.
15232 (canonicalize_loop_ivs): Move here from tree-parloops.c.
15233 Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
15234 * tree-parloops.c (loop_parallel_p): Move out all conditions
15235 except dependency check.
15236 (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
15237 (gen_parallel_loop): Call canonicalize_loop_ivs without
15238 reduction_list argument.
15239 (build_new_reduction): New.
15240 (gather_scalar_reductions): New.
15241 (try_get_loop_niter): New.
15242 (try_create_reduction_list): New.
15243 (parallleize_loops): Change the parallel conditions check.
15244 * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
15245 * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
15246
15247 2009-07-30 Dave Korn <dave.korn.cygwin@gmail.com>
15248
15249 * opt-functions.awk (opt_args): Allow argument to be enclosed in
15250 curly braces.
15251 * doc/options.texi (Option properties): Mention new quoting syntax.
15252
15253 2009-07-29 Douglas B Rupp <rupp@gnat.com>
15254
15255 * config/alpha/alpha.c (alpha_start_function):
15256 Handle VMS_DEBUG_MAIN_POINTER
15257 * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
15258 * doc/invoke.texi: Document -mdebug-main switch.
15259
15260 2009-07-29 Richard Henderson <rth@redhat.com>
15261
15262 * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
15263 (cgraph_create_edge_including_clones): Likewise.
15264 * tree-inline.c (copy_bb): Operate on the correct edges
15265 when updating the callgraph.
15266
15267 2009-07-29 Douglas B Rupp <rupp@gnat.com>
15268
15269 * config/alpha/vms-cc.c: Deleted.
15270 * config/alpha/vms-ld.c: Deleted.
15271 * config/alpha/t-vms64: Moved to config/vms
15272 * config/alpha/vms-crt0-64.c: Moved to config/vms
15273 * config/alpha/vms-crt0.c: Moved to config/vms
15274 * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
15275 * config/alpha/vms-psxcrt0.c: Moved to config/vms
15276 * config/alpha/xm-vms.h: Moved to config/vms
15277 * config/alpha/x-vms: Moved to config/vms
15278 * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
15279 config/vms/t-vms.
15280 * config/vms/t-vms: Moved here from config/alpha. Alpha specific
15281 parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
15282 (version): Set.
15283 * config/vms/t-vms64: Moved here from config/alpha
15284 * config/vms/vms-crt0-64.c: Moved here from config/alpha.
15285 (argc,argv,envp): Enforce 32bit malloc'ing.
15286 * config/vms/vms-psxcrt0-64.c: Likewise.
15287 * config/vms/vms-crt0.c: Moved here from config/alpha.
15288 * config/vms/vms-psxcrt0.c: Likewise.
15289 * config/vms/vms-crtl-64.h: New file.
15290 * config/vms/vms-crtl.h: New file.
15291 * config/vms/vms.opt: New file.
15292 * config/vms/xm-vms64.h: New file.
15293 * config/vms/xm-vms.h: Moved here from config/alpha.
15294 (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
15295 Set.
15296 * config/vms/x-vms: Moved here from config/alpha.
15297 (version, VMS_EXTRA_PARTS): Moved to t-vms.
15298 (vms-ld.o, vms-cc.o): Removed.
15299 (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
15300
15301 2009-07-29 Douglas B Rupp <rupp@gnat.com>
15302
15303 * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
15304 correct stack (obvious VMS fix).
15305
15306 2009-07-29 Douglas B Rupp <rupp@gnat.com>
15307
15308 * dwarf2out.c (output_file_names): Output VMS style file name, size,
15309 date, version info if VMS_DEBUGGING_INFO defined.
15310 * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
15311 size, date calculating code moved here.
15312
15313 2009-07-29 Paul Brook <paul@codesourcery.com>
15314
15315 * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
15316 do_push/do_pop.
15317
15318 2009-07-29 Uros Bizjak <ubizjak@gmail.com>
15319
15320 PR target/40577
15321 * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
15322 to DImode when generating insq_le insn.
15323
15324 2009-07-28 Douglas B Rupp <rupp@gnat.com>
15325
15326 * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
15327 New macro set for VMS_DEBUGGGING_INFO.
15328 (AT_string_form): Use it.
15329
15330 2009-07-28 DJ Delorie <dj@redhat.com>
15331
15332 * config/mep/mep.c (vtext_section): New.
15333 (vftext_section): New.
15334 (ftext_section): New.
15335 (mep_select_section): Add support for functions.
15336 (mep_unique_section): Likewise.
15337 (mep_asm_init_sections): Likewise.
15338 (mep_encode_section_info): Remove it from here.
15339
15340 * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
15341
15342 2009-07-28 Paolo Bonzini <bonzinI@gnu.org>
15343
15344 * tree.h (TREE_DEPRECATED): Document it is used for types too.
15345 (TYPE_VECTOR_OPAQUE): Use default_def_flag
15346
15347 2009-07-28 Douglas B Rupp <rupp@gnat.com>
15348
15349 * dwarf2out.c (output_file_names): Test new macro
15350 DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
15351 (add_comp_dir_attribute): Likewise.
15352
15353 2009-07-28 Kai Tietz <kai.tietz@onevision.com>
15354
15355 * config/i386/mingw-w64.h (LINK_SPEC): Add
15356 separating space between commands.
15357
15358 2009-07-28 Jan Hubicka <jh@suse.cz>
15359
15360 PR tree-optimization/40759
15361 * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
15362 for renaming.
15363
15364 2009-07-27 DJ Delorie <dj@redhat.com>
15365
15366 * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
15367 types are dword-aligned.
15368 (mep_expand_va_start): Likewise.
15369
15370 2009-07-27 Olivier Hainque <hainque@adacore.com>
15371 Douglas B Rupp <rupp@gnat.com>
15372
15373 * convert.c (convert_to_pointer): Don't assume the target
15374 pointer type is POINTER_SIZE long. Fetch its precision instead.
15375
15376 2009-07-27 Douglas B Rupp <rupp@gnat.com>
15377
15378 * system.h (fopen): Undefine if macro.
15379
15380 2009-07-27 Jakub Jelinek <jakub@redhat.com>
15381
15382 * dwarf2out.c (output_cfi_p): Removed.
15383 (output_cfis): New function.
15384 (output_fde): New function, split from output_call_frame_info.
15385 (output_call_frame_info): Use it.
15386 (dwarf2out_switch_text_section): Use output_cfis.
15387
15388 2009-07-24 Kai Tietz <kai.tietz@onevision.com>
15389
15390 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
15391 TARGET_BI_ARCH is specified without enabling SJLJ.
15392 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
15393 if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
15394
15395 2009-07-26 Mikael Pettersson <mikpe@it.uu.se>
15396
15397 * arm.md (negdi2): Use DImode if forcing a value into a register.
15398
15399 2009-07-26 Ira Rosen <irar@il.ibm.com>
15400
15401 PR tree-optimization/40801
15402 * tree-vect-stmts.c (vectorizable_call): Get previous copy
15403 of vector operand from the previous copy of vector statement.
15404 Pass the correct definition type value to
15405 vect_get_vec_def_for_stmt_copy().
15406
15407 2009-07-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15408
15409 * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
15410 const char ** conversion.
15411
15412 2009-07-25 David Daney <ddaney@caviumnetworks.com>
15413
15414 * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
15415 fancy_abort() if !ENABLE_ASSERT_CHECKING.
15416 (gcc_unreachable): Invoke __builtin_unreachable() if
15417 !ENABLE_ASSERT_CHECKING.
15418
15419 2009-07-25 David Daney <ddaney@caviumnetworks.com>
15420
15421 PR rtl-optimization/40445
15422 * emit-rtl.c (next_nonnote_insn_bb): New function.
15423 * rtl.h (next_nonnote_insn_bb): Declare new function.
15424 * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
15425 with no successors that is the successor of the ENTRY_BLOCK.
15426 Continue from the top after removing an empty fallthrough block.
15427 * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
15428 of next_nonnote_insn.
15429
15430 2009-07-25 David Daney <ddaney@caviumnetworks.com>
15431
15432 * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
15433
15434 2009-07-25 Martin Jambor <mjambor@suse.cz>
15435
15436 * c-common.c (c_common_attribute_table): New element for noclone.
15437 (handle_noclone_attribute): New function. Forward-declare.
15438 * tree-inline.c (tree_versionable_function_p): Check for noclone
15439 attribute.
15440 * doc/extend.texi (Labels as Values): Document need for noclone.
15441 (Function Attributes): Document noclone attribute.
15442
15443 2009-07-25 Jakub Jelinek <jakub@redhat.com>
15444
15445 PR rtl-optimization/34999
15446 * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
15447 and dw_fde_switched_cold_to_hot fields.
15448 (output_cfi_p): New function.
15449 (output_call_frame_info): If fde->dw_fde_switched_sections,
15450 output 2 FDEs instead of one with corrupted header.
15451 (dwarf2out_do_cfi_startproc): New function.
15452 (dwarf2out_begin_prologue): Use it. Initialize fde->dw_fde_switch_cfi
15453 and fde->dw_fde_switched_cold_to_hot.
15454 (dwarf2out_switch_text_section): Compute
15455 fde->dw_fde_switched_cold_to_hot. Switch to new text section here.
15456 If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
15457 dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
15458 Otherwise, compute fde->dw_fde_switch_cfi.
15459
15460 2009-07-24 Cary Coutant <ccoutant@google.com>
15461
15462 * tree-cfg.c (assign_discriminator): Add explicit parentheses.
15463
15464 2009-07-24 Cary Coutant <ccoutant@google.com>
15465
15466 * cfghooks.c (split_block): Copy discriminator to new block.
15467 * tree-cfg.c (assign_discriminator): Check location of last
15468 instruction in block as well as first.
15469
15470 2009-07-24 Uros Bizjak <ubizjak@gmail.com>
15471
15472 * config/i386/linux.c: Use fputs or putc instead of fprintf
15473 where appropriate.
15474 * config/i386/gas.h: Ditto.
15475 * config/i386/x86-64.h: Ditto.
15476 * config/i386/att.h: Ditto.
15477
15478 2009-07-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15479
15480 * expmed.c (emit_store_flag): Use a recursive call to optimize the
15481 xor case.
15482
15483 2009-07-24 Martin Jambor <mjambor@suse.cz>
15484
15485 * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
15486 (ipa_push_func_to_list_1): Declare.
15487 (ipa_push_func_to_list): New function.
15488
15489 * ipa-prop.c (ipa_push_func_to_list_1): New function.
15490 (ipa_init_func_list): Call ipa_push_func_to_list_1.
15491 (ipa_push_func_to_list): Removed.
15492 (ipa_pop_func_from_list): Clear node_enqueued flag.
15493
15494 2009-07-24 Andreas Krebbel <krebbel1@de.ibm.com>
15495
15496 * config/s390/s390.c (override_options): Default
15497 max-unrolled-insns to 100 for z10 tuning.
15498
15499 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
15500
15501 * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
15502 tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
15503 tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
15504 tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
15505 tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
15506 tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
15507 lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
15508
15509 2009-07-24 Kai Tietz <kai.tietz@onevision.com>
15510
15511 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
15512 use default set in mingw32.h header.
15513 * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
15514 64-bit /mingw/include path.
15515 (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
15516 path.
15517
15518 2009-07-23 Neil Vachharajani <nvachhar@google.com>
15519
15520 PR rtl-optimization/40209
15521 * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
15522
15523 2009-07-23 Uros Bizjak <ubizjak@gmail.com>
15524
15525 * config/i386/i386.c: Use ASM_LONG instead of .long. Concatenate
15526 ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
15527 with the rest of string where appropriate. Use fputs or putc
15528 instead of fprintf where appropriate.
15529
15530 2009-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
15531 Pat Haugen <pthaugen@us.ibm.com>
15532 Revital Eres <ERES@il.ibm.com>
15533
15534 * config/rs6000/vector.md: New file. Move most of the vector
15535 expander support here from altivec.md to allow for the VSX vector
15536 unit in the future. Add support for secondary_reload patterns.
15537 Rewrite the patterns for vector comparison, and vector comparison
15538 predicate instructions so that the RTL expresses the desired
15539 behavior, instead of using unspec.
15540
15541 * config/rs6000/constraints.md ("f" constraint): Use
15542 rs6000_constraints to hold the precalculated register class.
15543 ("d" constraint): Ditto.
15544 ("wd" constraint): New constraint for VSX.
15545 ("wf" constraint): Ditto.
15546 ("ws" constraint): Ditto.
15547 ("wa" constraint): Ditto.
15548 ("wZ" constraint): Ditto.
15549 ("j" constraint): Ditto.
15550
15551 * config/rs6000/predicates.md (vsx_register_operand): New
15552 predicate for VSX.
15553 (vfloat_operand): New predicate for vector.md.
15554 (vint_operand): Ditto.
15555 (vlogical_operand): Ditto.
15556 (easy_fp_constant): If VSX, 0.0 is an easy constant.
15557 (easy_vector_constant): Add VSX support.
15558 (altivec_indexed_or_indirect_operand): New predicate for
15559 recognizing Altivec style memory references with AND -16.
15560
15561 * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
15562 for vector secondary reload support.
15563 (rs6000_vector_reg_class): Delete, replacing it with
15564 rs6000_constraints.
15565 (rs6000_vsx_reg_class): Ditto.
15566 (rs6000_constraints): New array to hold the register classes of
15567 each of the register constraints that can vary at runtime.
15568 (builtin_mode_to_type): New static array for builtin function type
15569 creation.
15570 (builtin_hash_table): New static hash table for builtin function
15571 type creation.
15572 (TARGET_SECONDARY_RELOAD): Define target hook.
15573 (TARGET_IRA_COVER_CLASSES): Ditto.
15574 (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
15575 registers are 128 bits if VSX memory reference instructions are used.
15576 (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
15577 unit is being used.
15578 (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
15579 (rs6000_debug_reg_global): Move -mdebug=reg statements here.
15580 Print several of the scheduling related parameters.
15581 (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
15582 rs6000_constraints instead of rs6000_vector_reg_class. Move
15583 -mdebug=reg code to rs6000_debug_reg_global. Add support for
15584 -mvsx-align-128 debug switch. Drop testing float_p if VSX or
15585 Altivec. Add VSX support. Setup for secondary reload support on
15586 Altivec/VSX registers.
15587 (rs6000_override_options): Make power7 set the scheduling groups
15588 like the power5. Add support for new debug switches to override
15589 the scheduling defaults. Temporarily disable -mcpu=power7 from
15590 setting -mvsx. Add support for debug switches -malways-hint,
15591 -msched-groups, and -malign-branch-targets.
15592 (rs6000_buitlin_conversion): Add support for returning unsigned
15593 vector conversion functions to fix regressions due to stricter
15594 type checking.
15595 (rs6000_builtin_mul_widen_even): Ditto.
15596 (rs6000_builtin_mul_widen_odd): Ditto.
15597 (rs6000_builtin_vec_perm): Ditto.
15598 (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
15599 (rs6000_expand_vector_init): Initial VSX support for using xxlxor
15600 to zero a register.
15601 (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
15602 generated upstream.
15603 (bdesc_3arg): Add builtins for unsigned types. Add builtins for
15604 VSX types for bit operations. Changes to accomidate vector.md.
15605 (bdesc_2arg): Ditto.
15606 (bdesc_1arg): Ditto.
15607 (struct builtin_description_predicates): Rewrite predicate
15608 handling so that RTL describes the operation, instead of passing
15609 the instruction to be used as a string argument.
15610 (bdesc_altivec_preds): Ditto.
15611 (altivec_expand_predicate_builtin): Ditto.
15612 (altivec_expand_builtin): Ditto.
15613 (rs6000_expand_ternop_builtin): Use a switch instead of an if
15614 statement for vsldoi support.
15615 (altivec_expand_ld_builtin): Change to use new names from vector.md.
15616 (altivec_expand_st_builtin): Ditto.
15617 (paired_expand_builtin): Whitespace changes.
15618 (rs6000_init_builtins): Add V2DF/V2DI types. Initialize the
15619 builtin_mode_to_type table for secondary reload. Call
15620 builtin_function_type to build random builtin functions.
15621 (altivec_init_builtins): Change to use builtin_function_type to
15622 create builtin function types dynamically as we need them.
15623 (builtin_hash_function): New support for hashing the tree types
15624 for builtin function as we need it, rather than trying to build
15625 all of the trees that we need. Add initial preliminary VSX support.
15626 (builtin_function_type): Ditto.
15627 (builtin_function_eq): Ditto.
15628 (builtin_hash_struct): Ditto.
15629 (rs6000_init_builtins): Ditto.
15630 (rs6000_common_init_builtins): Ditto.
15631 (altivec_init_builtins): Ditto.
15632 (rs6000_common_init_builtins): Ditto.
15633 (enum reload_reg_type): New enum for simplifing reg classes.
15634 (rs6000_reload_register_type): Simplify register classes into GPR,
15635 Vector, and other registers. Altivec and VSX addresses in reload.
15636 (rs6000_secondary_reload_inner): Ditto.
15637 (rs6000_ira_cover_classes): New target hook, that returns the
15638 appropriate cover classes, based on -mvsx being used or not.
15639 (rs6000_secondary_reload_class): Add VSX support.
15640 (get_vec_cmp_insn): Delete, rewrite vector conditionals.
15641 (get_vsel_insn): Ditto.
15642 (rs6000_emit_vector_compare): Rewrite vector conditional support
15643 so that where we can, we use RTL operators, instead of blindly use
15644 UNSPEC.
15645 (rs6000_emit_vector_select): Ditto.
15646 (rs6000_emit_vector_cond_expr): Ditto.
15647 (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
15648 (create_TOC_reference): Add -mdebug=addr support.
15649 (emit_frame_save): VSX loads/stores need register indexed addressing.
15650
15651 * config/rs6000/rs6000.md: Include vector.md.
15652
15653 * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
15654
15655 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15656 support for V2DI, V2DF in logical, permute, select operations.
15657
15658 * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
15659 switch for vsx/power7.
15660 (-mvsx-scalar-memory): Ditto.
15661 (-mvsx-align-128): Ditto.
15662 (-mallow-movmisalign): Ditto.
15663 (-mallow-df-permute): Ditto.
15664 (-msched-groups): Ditto.
15665 (-malways-hint): Ditto.
15666 (-malign-branch-targets): Ditto.
15667
15668 * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
15669 hook instead.
15670 (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
15671 (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
15672 (rs6000_vector_reg_class): Delete.
15673 (rs6000_vsx_reg_class): Ditto.
15674 (enum rs6000_reg_class_enum): New enum for the constraints that
15675 vary based on target switches.
15676 (rs6000_constraints): New array to hold the register class for all
15677 of the register constraints that vary based on the switches used.
15678 (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
15679 (enum rs6000_builtins): Add unsigned varients for the builtin
15680 declarations returned by target hooks for expanding multiplies,
15681 select, and permute operations. Add VSX builtins.
15682 (enum rs6000_builtin_type_index): Add entries for VSX.
15683 (V2DI_type_node): Ditto.
15684 (V2DF_type_node): Ditto.
15685 (unsigned_V2DI_type_node): Ditto.
15686 (bool_long_type_node): Ditto.
15687 (intDI_type_internal_node): Ditto.
15688 (uintDI_type_internal_node): Ditto.
15689 (double_type_internal_node): Ditto.
15690
15691 * config/rs6000/altivec.md (whole file): Move all expanders to
15692 vector.md from altivec.md. Rename insn matching functions to be
15693 altivec_foo.
15694 (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
15695 (altivec_vcmp*): Ditto.
15696 (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
15697 (VM): New iterator for moves that includes the VSX types.
15698 (altivec_vperm_<mode>): Add VSX types. Add unsigned types.
15699 (altivec_vperm_<mode>_uns): New, for unsigned types.
15700 (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
15701 (altivec_eq<mode>): Ditto.
15702 (altivec_gt<mode>): Ditto.
15703 (altivec_gtu<mode>): Ditto.
15704 (altivec_eqv4sf): Ditto.
15705 (altivec_gev4sf): Ditto.
15706 (altivec_gtv4sf): Ditto.
15707 (altivec_vcmpbfp_p): Ditto.
15708
15709 2009-07-23 Richard Earnshaw <rearnsha@arm.com>
15710
15711 * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to
15712 unsigned HWI.
15713
15714 2009-07-23 Uros Bizjak <ubizjak@gmail.com>
15715
15716 PR target/40832
15717 * config/i386/i386.c (output_387_ffreep): Rewrite to use
15718 ASM_SHORT instead of .word.
15719 * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
15720 instead of .word in asm template.
15721
15722 2009-07-22 Vladimir Makarov <vmakarov@redhat.com>
15723
15724 PR target/37488
15725 * ira-lives.c (bb_has_abnormal_call_pred): New function.
15726 (process_bb_node_lives): Use it.
15727
15728 * ira.c (setup_cover_and_important_classes): Don't setup
15729 ira_important_class_nums. Add cover classes to the end of
15730 important classes.
15731 (cover_class_order, comp_reg_classes_func, reorder_important_classes):
15732 New.
15733 (find_reg_class_closure): Use reorder_important_classes.
15734
15735 * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
15736
15737 * config/i386/i386.c (i386_ira_cover_classes): New function.
15738 (TARGET_IRA_COVER_CLASSES): Redefine.
15739
15740 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
15741 importance of order of cover classes in the array.
15742
15743 2009-07-22 Diego Novillo <dnovillo@google.com>
15744
15745 * tree-pass.h (TDF_EH): Define.
15746 * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
15747 contains TDF_EH, print the EH region number holding GS.
15748 * tree-dump.c (dump_options): Add "eh".
15749 * doc/invoke.texi: Document it.
15750
15751 2009-07-22 Doug Kwan <dougkwan@google.com>
15752
15753 * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
15754
15755 2009-07-22 Michael Matz <matz@suse.de>
15756
15757 PR tree-optimization/35229
15758 PR tree-optimization/39300
15759
15760 * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
15761 (inhibit_phi_insertion): New function.
15762 (insert_into_preds_of_block): Call it for REFERENCEs.
15763 (init_pre): Initialize and finalize scalar evolutions.
15764 * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
15765
15766 2009-07-22 Uros Bizjak <ubizjak@gmail.com>
15767
15768 * config/i386/predicates.md (zero_extended_scalar_load_operand):
15769 Use CONST_VECTOR_NUNITS to determine number of elements.
15770
15771 2009-07-22 Andreas Krebbel <krebbel1@de.ibm.com>
15772
15773 * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
15774 (U, W): Constraints are now deprecated and will be removed if we
15775 run out of letters.
15776 * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
15777 the file.
15778 ("prefetch"): Add the stcmh instruction for prefetching.
15779 * config/s390/s390.c (s390_symref_operand_p): Function moved. No
15780 changes.
15781 (s390_short_displacement): Return always true if compiling for
15782 machines not providing the long displacement facility.
15783 (s390_mem_constraint): Support the new constraint letter Z.
15784 (s390_check_qrst_address): New function.
15785
15786 2009-07-21 DJ Delorie <dj@redhat.com>
15787
15788 * config/mep/mep.c (mep_legitimize_arg): Leave control registers
15789 alone too.
15790
15791 2009-07-21 Jason Merrill <jason@redhat.com>
15792
15793 * c-common.c (max_tinst_depth): Increase default to 1024.
15794
15795 2009-07-21 Uros Bizjak <ubizjak@gmail.com>
15796
15797 * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
15798 (vec_unpacku_float_lo_v4si): Ditto.
15799
15800 2009-07-21 Uros Bizjak <ubizjak@gmail.com>
15801
15802 PR target/40811
15803 * config/i386/sse.md (sse2_cvtudq2ps): New expander.
15804 (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
15805 (builtin_description): Add __builtin_ia32_cvtudq2ps.
15806 (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
15807
15808 2009-07-21 Jakub Jelinek <jakub@redhat.com>
15809
15810 PR tree-optimization/40813
15811 * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
15812 it.
15813
15814 2009-07-21 Kaz Kojima <kkojima@gcc.gnu.org>
15815
15816 * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
15817 with a NOP_EXPR if needed.
15818
15819 2009-07-21 Paul Brook <paul@codesourcery.com>
15820
15821 * tree-vectorizer.c (increase_alignment): Handle nested arrays.
15822 Terminate debug dump with newline.
15823
15824 2009-07-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15825
15826 * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
15827 Cast "1" to unsigned HOST_WIDE_INT.
15828 (compute_zdepdi_operands): Limit maximum length to 64 bits. Limit
15829 deposit length to the maximum length - lsb. Extend length if
15830 HOST_BITS_PER_WIDE_INT is 32.
15831
15832 2009-07-20 Olatunji Ruwase <tjruwase@google.com>
15833
15834 * cgraph.h (constant_pool_htab): New function.
15835 (constant_descriptor_tree): Move from varasm.c.
15836 * varasm.c (constant_pool_htab): New function.
15837 (constant_descriptor_tree): Move to cgraph.h.
15838
15839 2009-07-20 Olatunji Ruwase <tjruwase@google.com>
15840
15841 * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
15842
15843 2009-07-20 Shujing Zhao <pearly.zhao@oracle.com>
15844
15845 * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
15846 $(VARRAY_H).
15847
15848 2009-07-20 Xinliang David Li <davidxl@google.com>
15849
15850 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
15851
15852 2009-07-20 Adam Nemet <anemet@caviumnetworks.com>
15853
15854 * config/mips/mips.md (move_type): Add arith.
15855 (type): Handle arith.
15856 (zero_extendsidi2): Rename this into ...
15857 (*zero_extendsidi2): ... this. Don't match if ISA_HAS_EXT_INS.
15858 (zero_extendsidi2): New expander.
15859 (*zero_extendsidi2_dext): New pattern.
15860
15861 2009-07-20 Nick Clifton <nickc@redhat.com>
15862
15863 * config.gcc (mips64-*-*): Add definition of tm_defines in order
15864 to set MIPS_ABI_DEFAULT.
15865 * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
15866
15867 2009-07-20 Jakub Jelinek <jakub@redhat.com>
15868
15869 * tree-object-size.c (addr_object_size): Handle unions with
15870 array in it as last field of structs in __bos (, 1) as __bos (, 0).
15871
15872 PR tree-optimization/40792
15873 * tree.c (build_function_type_skip_args): Remove bogus assert.
15874
15875 2009-07-20 Jan Hubicka <jh@suse.cz>
15876 Martin Jambor <mjambor@suse.cz>
15877
15878 * cgraph.h (combined_args_to_skip): New field.
15879 * cgraph.c (cgraph_create_virtual_clone): Properly handle
15880 combined_args_to_skip and args_to_skip.
15881 * tree-inline.c (update_clone_info): New function.
15882 (tree_function_versioning): Call update_clone_info.
15883 * cgraphunit.c (cgraph_materialize_clone): Dump materialized
15884 functions.
15885 (cgraph_materialize_all_clones): More extensive dumping, working
15886 with combined_args_to_skip rather than args_to_skip.
15887
15888 2009-07-20 Ira Rosen <irar@il.ibm.com>
15889
15890 * tree-vectorizer.h (vectorizable_condition): Add parameters.
15891 * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
15892 (get_initial_def_for_reduction): Likewise.
15893 (vectorizable_reduction): Skip the check of first operand in case
15894 of COND_EXPR. Add check that it is outer loop vectorization if
15895 nested cycle was detected. Call vectorizable_condition() for
15896 COND_EXPR. If reduction epilogue cannot be created do not fail for
15897 nested cycles (if it is not double reduction). Assert that there
15898 is only one type in the loop in case of COND_EXPR. Call
15899 vectorizable_condition() to vectorize COND_EXPR.
15900 * tree-vect-stmts.c (vectorizable_condition): Update comment.
15901 Add parameters. Allow nested cycles if called from
15902 vectorizable_reduction(). Use reduction vector variable if provided.
15903 (vect_analyze_stmt): Call vectorizable_reduction() before
15904 vectorizable_condition().
15905 (vect_transform_stmt): Update call to vectorizable_condition().
15906
15907 2009-07-20 Christian Bruel <christian.bruel@st.com>
15908
15909 * config/sh/sh.opt (-mfmovd): Resurrect and document.
15910 * doc/invoke.texi (-mfmovd): Likewise.
15911 * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
15912
15913 2009-07-20 Jan Hubicka <jh@suse.cz>
15914
15915 * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
15916 when handling SSA name.
15917
15918 2009-07-19 Jan Hubicka <jh@suse.cz>
15919
15920 PR tree-optimization/40676
15921 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
15922 virtual PHIs in empty BBs.
15923
15924 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
15925
15926 * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
15927 re-expanded the compound use gen_lowpart instead to convert to the
15928 desired mode.
15929
15930 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
15931
15932 * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
15933 OUTER_CONST arguments.
15934 <LSHIFTRT>: Use them to allow widening if the bits shifted in from
15935 the new wider mode will be masked off.
15936 (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
15937
15938 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
15939
15940 * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
15941 high-order bits are zero.
15942
15943 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
15944
15945 * combine.c (simplify_shift_const_1): Split code to determine
15946 shift_mode into ...
15947 (try_widen_shift_mode): ... here. Allow widening for ASHIFTRT if the
15948 new bits shifted in are identical to the old sign bit.
15949
15950 2009-07-18 Richard Guenther <rguenther@suse.de>
15951
15952 PR c/40787
15953 * gimplify.c (gimplify_call_expr): Reject code using results from
15954 functions returning void.
15955
15956 2009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
15957
15958 * doc/md.texi: Document the new PowerPC "es" constraint.
15959 Document that "m" can include automodified addresses on this target,
15960 and explain how %U must be used. Extend the "Q" and "Z" documentation
15961 to suggest "es" as well as "m".
15962 * config/rs6000/constraints.md (es): New memory constraint.
15963 (Q, Z): Update strings to match new documentation.
15964
15965 2009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
15966
15967 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
15968 offset from virtual_stack_vars_rtx and arg_pointer_rtx.
15969 * config/rs6000/predicates.md (volatile_mem_operand): Use
15970 offsettable_nonstrict_memref_p.
15971 * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
15972 (*floatunssidf2_internal): Likewise.
15973 (*fix_truncdfsi2_internal): Likewise.
15974 (*fix_trunctfsi2_internal): Likewise.
15975
15976 2009-07-17 Anatoly Sokolov <aesok@post.ru>
15977
15978 * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
15979 atmega32u2 devices.
15980 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
15981
15982 2009-07-17 Richard Guenther <rguenther@suse.de>
15983
15984 PR c/40401
15985 * tree-pass.h (pass_diagnose_omp_blocks): Declare.
15986 (pass_warn_unused_result): Likewise.
15987 (TODO_set_props): Remove.
15988 * omp-low.c (diagnose_omp_structured_block_errors): Change to
15989 run as a pass.
15990 (pass_diagnose_omp_blocks): Define.
15991 * c-decl.c (pop_file_scope): Do not finalize the CU here.
15992 (c_gimple_diagnostics_recursively): Remove.
15993 (finish_function): Do not call it.
15994 (c_write_global_declarations): Continue after errors.
15995 Finalize the CU here.
15996 * c-gimplify.c (c_genericize): Do not gimplify here.
15997 * c-common.c (c_warn_unused_result): Move ...
15998 * tree-cfg.c (do_warn_unused_result): ... here.
15999 (run_warn_unused_result): New function.
16000 (gate_warn_unused_result): New function.
16001 (pass_warn_unused_result): New pass.
16002 * c-common.h (c_warn_unused_result): Remove.
16003 * flags.h (flag_warn_unused_result): Declare.
16004 * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
16005 * opts.c (flag_warn_unused_result): Initialize to false.
16006 * toplev.c (compile_file): Add comment.
16007 * omp-low.c (create_omp_child_function): Do not register
16008 the function with the frontend.
16009 (diagnose_omp_structured_block_errors): Prepare to be
16010 called as optimization pass.
16011 (gate_diagnose_omp_blocks): New function.
16012 (pass_diagnose_omp_blocks): New pass.
16013 * cgraph.h (cgraph_optimize): Remove.
16014 (cgraph_analyze_function): Likewise.
16015 * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
16016 * cgraphunit.c (cgraph_lower_function): Lower nested functions
16017 before their parents here.
16018 (cgraph_finalize_function): Not here.
16019 (cgraph_analyze_function): Gimplify functions here.
16020 (cgraph_finalize_compilation_unit): Continue after errors.
16021 Optimize the callgraph from here.
16022 (cgraph_optimize): Make static.
16023 * langhooks.c (write_global_declarations): Finalize the CU.
16024 * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
16025 (gimplify_function_tree): Assert we gimplify only once.
16026 Set PROP_gimple_any property.
16027 * tree-nested.c (gimplify_all_functions): New function.
16028 (lower_nested_functions): Gimplify all nested functions.
16029 * gimple.h (diagnose_omp_structured_block_errors): Remove.
16030 * passes.c (init_optimization_passes): Add pass_warn_unused_result
16031 and pass_diagnose_omp_blocks after gimplification. Do not
16032 set TODO_set_props on all_lowering_passes.
16033 (execute_one_pass): Do not handle TODO_set_props.
16034 * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
16035 (gimplify.o): Add tree-pass.h dependency.
16036 * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
16037 (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
16038 (unsave_r): Likewise.
16039 * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
16040 temporary variable.
16041
16042 2009-07-17 Sandra Loosemore <sandra@codesourcery.com>
16043
16044 * doc/service.texi (Service): Restore previously removed link,
16045 which isn't broken after all.
16046
16047 2009-07-17 Richard Guenther <rguenther@suse.de>
16048
16049 PR tree-optimization/40321
16050 * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
16051 PHI nodes to the maximal set.
16052 (make_values_for_phi): Add PHI arguments to the maximal set.
16053 (execute_pre): Dump PHI_GEN and the maximal set.
16054
16055 2009-07-17 Jakub Jelinek <jakub@redhat.com>
16056
16057 PR c++/40780
16058 * gimplify.c (gimplify_conversion): Don't change non-conversions into
16059 VIEW_CONVERT_EXPR.
16060
16061 2009-07-16 Sandra Loosemore <sandra@codesourcery.com>
16062
16063 * doc/extend.texi (Nested Functions): Replace broken link with
16064 textual reference.
16065 * doc/service.texi (Service): Remove broken link.
16066
16067 2009-07-16 H.J. Lu <hongjiu.lu@intel.com>
16068
16069 PR bootstrap/40781
16070 * builtins.c (expand_builtin_memcmp): Use loc instead of
16071 EXPR_LOCATION (exp).
16072 (expand_builtin_strncmp): Likewise.
16073
16074 2009-07-17 Aldy Hernandez <aldyh@redhat.com>
16075 Manuel López-Ibáñez <manu@gcc.gnu.org>
16076
16077 PR 40435
16078 * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
16079 builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
16080 tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
16081 c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
16082 calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
16083 tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
16084 tree-inline.c, c-common.c, c-common.h, gimple.c,
16085 tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
16086 convert.c: Add location argument to fold_{unary,binary,ternary},
16087 fold_build[123], build_call_expr, build_size_arg,
16088 build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
16089 fold_build1_initializer, fold_build2_initializer,
16090 fold_build3_initializer, fold_build_call_array,
16091 fold_build_call_array_initializer, fold_single_bit_test,
16092 omit_one_operand, omit_two_operands, invert_truthvalue,
16093 fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
16094 combine_comparisons, fold_builtin_*, fold_call_expr,
16095 build_range_check, maybe_fold_offset_to_address, round_up,
16096 round_down.
16097
16098 2009-07-16 Jason Merrill <jason@redhat.com>
16099
16100 PR libstdc++/37907
16101 * c-common.c (c_common_reswords): Add __is_standard_layout
16102 and __is_trivial.
16103 * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
16104 * doc/implement-cxx.texi: New.
16105 * doc/gcc.texi: Include it.
16106
16107 2009-07-16 DJ Delorie <dj@redhat.com>
16108
16109 * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
16110 compares that may be indirectly affected by previous instructions.
16111
16112 2009-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16113
16114 * builtins.c (do_mpc_arg2): New.
16115 (fold_builtin_2): Fold builtin cpow.
16116 * real.h (HAVE_mpc_pow): New.
16117
16118 2009-07-16 Bingfeng Mei <bmei@broadcom.com>
16119
16120 * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
16121 comparison to skip unprofitable schedule
16122
16123 2009-07-16 Simon Baldwin <simonb@google.com>
16124
16125 * gcc.c (option_map): New flag -no-canonical-prefixes.
16126 * (display_help): Print help text for new flag.
16127 * (process_command): Move options translation and language specifics
16128 and handle new flag early. Use it to set a function pointer to a
16129 prefix builder. Replace make_relative_prefix calls with calls to
16130 the function pointed to. Ignore new flag in regular options handling.
16131 * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
16132
16133 2009-07-15 DJ Delorie <dj@redhat.com>
16134
16135 * config/mep/mep.md (sibcall_internal): Change register to avoid
16136 argument registers.
16137 (sibcall_value_internal): Likewise.
16138
16139 2009-07-15 Eric Botcazou <ebotcazou@adacore.com>
16140
16141 PR rtl-optimization/40710
16142 * resource.c (mark_target_live_regs): Reset DF problem to LR.
16143
16144 2009-07-15 Adam Nemet <anemet@caviumnetworks.com>
16145
16146 * config/mips/mips.md (*extenddi_truncate<mode>,
16147 *extendsi_truncate<mode>): Change type attribute to move_type
16148 with shift_shift. Split out code handling exts from here ...
16149 (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
16150 pattern.
16151 (*extendhi_truncateqi): Change type attribute to move_type with
16152 shift_shift. Split out code handling exts from here ...
16153 (*extendhi_truncateqi_exts): ... to this new pattern.
16154
16155 2009-07-15 Uros Bizjak <ubizjak@gmail.com>
16156
16157 * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
16158 instead of "and" with inverted sign bit mask value. Use
16159 "nonimmediate_operand" for operand 1 and operand 2 predicate.
16160 Allocate registers only for operand 4 and operand 5.
16161
16162 2009-07-15 Jakub Jelinek <jakub@redhat.com>
16163
16164 PR middle-end/40747
16165 * fold-const.c (fold_cond_expr_with_comparison): When folding
16166 < and <= to MIN, make sure the MIN uses the same type as the
16167 comparison's operands.
16168
16169 2009-07-15 Richard Earnshaw <rearnsha@arm.com>
16170
16171 * arm.md (ior_xor): New code iterator.
16172 (split for ior/xor with shift and zero-extend): New split pattern.
16173 * arm/predicates.md (subreg_lowpart_operator): New special predicate.
16174
16175 2009-07-15 Richard Guenther <rguenther@suse.de>
16176
16177 * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
16178 offset member.
16179
16180 2009-07-15 Richard Guenther <rguenther@suse.de>
16181
16182 PR middle-end/40753
16183 * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
16184
16185 2009-07-15 Maxim Kuvyrkov <maxim@codesourcery.com>
16186
16187 * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
16188 handle 2.6.30 kernel.
16189
16190 2009-07-15 DJ Delorie <dj@redhat.com>
16191
16192 * config/mep/mep.md (sibcall_internal): Change register to allow
16193 for 24-bit addresses.
16194 (sibcall_value_internal): Likewise.
16195
16196 2009-07-14 Ghassan Shobaki <ghassan.shobaki@amd.com>
16197
16198 * doc/invoke.texi: Added descriptions of the scheduling heuristics
16199 that are enabled/disabled by the flags introduced by a previous patch.
16200
16201 2009-07-14 DJ Delorie <dj@redhat.com>
16202
16203 * config/mep/mep.md (sibcall_internal): Include non-toggling
16204 non-jmp case.
16205 (sibcall_value_internal): Likewise.
16206
16207 2009-07-14 Taras Glek <tglek@mozilla.com>
16208 Rafael Espindola <espindola@google.com>
16209
16210 * doc/sourcebuild.texi: Document install-plugin target.
16211 * configure.ac: Added install-plugin target to language makefiles.
16212 * configure: Regenerate.
16213 * Makefile.in (install-plugin): Install more headers,
16214 depend on lang.install-plugin.
16215
16216 2009-07-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
16217
16218 * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
16219 translation.
16220
16221 2009-07-14 DJ Delorie <dj@redhat.com>
16222
16223 * config/mep/mep.c (mep_vliw_jmp_match): New function.
16224 * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
16225 * config/mep/mep.md (sibcall_internal): Change test from
16226 mep_vliw_mode_match to mep_vliw_jmp_match.
16227 (sibcall_value_internal): Likewise.
16228
16229 2009-07-14 Uros Bizjak <ubizjak@gmail.com>
16230
16231 * config/i386/sse.md (copysign<mode>3): New expander.
16232 * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
16233 * config/i386/i386.c (ix86_build_signbit_mask): Make public.
16234 Use ix86_build_const_vector.
16235 (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
16236 IX86_BUILTIN_CPYSGNPD.
16237 (builtin_description): Add __builtin_ia32_copysignps and
16238 __builtin_ia32_copysignpd.
16239 (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
16240 and BUILT_IN_COPYSIGNF.
16241
16242 2009-07-13 Jason Merrill <jason@redhat.com>
16243
16244 * builtins.c (can_trust_pointer_alignment): New fn.
16245 (get_pointer_alignment): Factor it out from here.
16246 * tree.h: Declare it.
16247
16248 2009-07-14 David Edelsohn <edelsohn@gnu.org>
16249
16250 * config/rs6000/predicates.md (offsettable_mem_operand): Test
16251 RTX_AUTOINC class.
16252
16253 2009-07-14 Dodji Seketeli <dodji@redhat.com>
16254
16255 PR debug/40705
16256 PR c++/403057
16257 * dwarf2.out.c (gen_type_die_with_usage): Added comment.
16258
16259 2009-07-14 Richard Guenther <rguenther@suse.de>
16260 Andrey Belevantsev <abel@ispras.ru>
16261
16262 PR middle-end/40745
16263 * cfgexpand.c (partition_stack_vars): Do not bother to update
16264 alias information when not optimizing.
16265
16266 2009-07-14 Richard Guenther <rguenther@suse.de>
16267 Andrey Belevantsev <abel@ispras.ru>
16268
16269 * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
16270 (pt_solution_set): Likewise.
16271 * tree-ssa-alias.c (refs_may_alias_p_1): Export.
16272 * tree-ssa-structalias.c (pt_solution_set): New function.
16273 * final.c (rest_of_clean_state): Free SSA data structures.
16274 * print-rtl.c (print_decl_name): Remove.
16275 (print_mem_expr): Implement in terms of print_generic_expr.
16276 * alias.c (ao_ref_from_mem): New function.
16277 (rtx_refs_may_alias_p): Likewise.
16278 (true_dependence): Query alias-export info.
16279 (canon_true_dependence): Likewise.
16280 (write_dependence_p): Likewise.
16281 * tree-dfa.c (get_ref_base_and_extent): For void types leave
16282 size unknown.
16283 * emit-rtl.c (component_ref_for_mem_expr): Remove.
16284 (mem_expr_equal_p): Use operand_equal_p.
16285 (set_mem_attributes_minus_bitpos): Do not use
16286 component_ref_for_mem_expr.
16287 * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
16288 (update_alias_info_with_stack_vars): Likewise.
16289 (partition_stack_vars): Call update_alias_info_with_stack_vars.
16290 * tree-ssa.c (delete_tree_ssa): Do not release SSA names
16291 explicitly nor clear stmt operands.
16292 Free the decl-to-pointer map.
16293 * tree-optimize.c (execute_free_datastructures): Do not free
16294 SSA data structures here.
16295 * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
16296 * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
16297 (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
16298 dependencies.
16299 (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
16300
16301 2009-07-13 DJ Delorie <dj@redhat.com>
16302
16303 * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
16304 unrolling at the right iteration count.
16305
16306 * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
16307 calculations.
16308
16309 2009-07-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
16310
16311 * haifa-sched.c (rank_for_schedule): Introduced flags to
16312 enable/disable individual scheduling heuristics.
16313 * common.opt: Introduced flags to enable/disable individual
16314 heuristics in the scheduler.
16315 * doc/invoke.texi: Introduced flags to enable/disable individual
16316 heuristics in the scheduler.
16317
16318 2009-07-13 Kai Tietz <kai.tietz@onevision.com>
16319
16320 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
16321 config/i386/mingw-tls.c.
16322 * config/i386/mingw-tls.c: Removed.
16323
16324 2009-07-13 Ira Rosen <irar@il.ibm.com>
16325
16326 * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
16327 checks access only relevant statements.
16328 (vectorizable_reduction): Likewise.
16329
16330 2009-07-12 Kai Tietz <kai.tietz@onevision.com>
16331
16332 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
16333 just for 32-bit case.
16334
16335 2009-07-12 Jan Hubicka <jh@suse.cz>
16336
16337 PR tree-optimization/40585
16338 * except.c (expand_resx_expr): When there already is resume
16339 instruction, produce linked list.
16340 (build_post_landing_pads): Assert that resume is empty.
16341 (connect_post_landing_pads): Handle resume lists.
16342 (dump_eh_tree): Dump resume list.
16343
16344 2009-07-12 Ira Rosen <irar@il.ibm.com>
16345
16346 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
16347 with additional argument.
16348 * tree-vectorizer.h (enum vect_def_type): Add
16349 vect_double_reduction_def.
16350 (vect_is_simple_reduction): Add argument.
16351 * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
16352 indentation.
16353 (vect_analyze_scalar_cycles_1): Detect double reduction. Call
16354 vect_is_simple_reduction with additional argument.
16355 (vect_analyze_loop_operations): Handle exit phi nodes in case of
16356 double reduction.
16357 (reduction_code_for_scalar_code): Handle additional codes by
16358 returning ERROR_MARK for them. Fix comment and indentation.
16359 (vect_is_simple_reduction): Fix comment, add argument to specify
16360 double reduction. Detect double reduction.
16361 (get_initial_def_for_induction): Fix indentation.
16362 (get_initial_def_for_reduction): Fix comment and indentation.
16363 Handle double reduction. Create initial definitions that do not
16364 require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
16365 (vect_create_epilog_for_reduction): Fix comment, add argument to
16366 handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
16367 epilogue result extraction. Create double reduction phi node and
16368 replace relevant uses.
16369 (vectorizable_reduction): Call vect_is_simple_reduction with
16370 additional argument. Fix indentation. Update epilogue code treatment
16371 according to the changes in reduction_code_for_scalar_code. Check
16372 for double reduction. Call vect_create_epilog_for_reduction with
16373 additional argument.
16374 * tree-vect-stmts.c (process_use): Handle double reduction, update
16375 documentation.
16376 (vect_mark_stmts_to_be_vectorized): Handle double reduction.
16377 (vect_get_vec_def_for_operand): Likewise.
16378
16379 2009-07-12 Danny Smith <dansmister@gmail.com>
16380
16381 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
16382 dllexport if !TREE_PUBLIC.
16383 (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
16384
16385 2009-07-11 Anatoly Sokolov <aesok@post.ru>
16386
16387 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
16388 (avr_extra_arch_macro) Remove declatation.
16389 * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
16390 (avr_extra_arch_macro) Declare as static.
16391 * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
16392
16393 2009-07-11 Jan Hubicka <jh@suse.cz>
16394
16395 PR middle-end/48388
16396 * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
16397
16398 2009-07-11 Jakub Jelinek <jakub@redhat.com>
16399
16400 PR debug/40713
16401 * dwarf2out.c (dw_fde_struct): Add in_std_section and
16402 cold_in_std_section bits.
16403 (dwarf2out_begin_prologue): Initialize them.
16404 (dwarf2out_finish): Don't emit FDE range into .debug_ranges
16405 if already covered by text_section or cold_text_section range.
16406
16407 PR rtl-optimization/40667
16408 * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
16409 * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
16410 * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
16411 * config/i386/i386.c (ix86_minimum_alignment): New function.
16412 * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
16413 * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
16414 * emit-rtl.c (gen_reg_rtx): Likewise.
16415 * function.c (assign_parms): Likewise. If nominal_type needs
16416 bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
16417 rather than passed_type's alignment.
16418
16419 PR target/40668
16420 * function.c (assign_parm_setup_stack): Adjust
16421 MEM_OFFSET (data->stack_parm) if promoted_mode is different
16422 from nominal_mode on big endian.
16423
16424 2009-07-11 Paolo Bonzini <bonzini@gnu.org>
16425
16426 * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
16427
16428 2009-07-10 DJ Delorie <dj@redhat.com>
16429
16430 * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
16431
16432 2009-07-10 Mark Mitchell <mark@codesourcery.com>
16433
16434 * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
16435 attribute.
16436 (thumb2_cbnz): Likewise.
16437
16438 2009-07-10 David Daney <ddaney@caviumnetworks.com>
16439
16440 PR target/39079
16441 * config.gcc (supported_defaults): Add synci.
16442 (with_synci): Add validation.
16443 (all_defaults): Add synci.
16444 * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
16445 ISA_HAS_SYNCI.
16446 (synci): Same.
16447 * config/mips/mips.opt (msynci): New option.
16448 * config/mips/mips.c (mips_override_options): Warn on use of
16449 -msynci for targets that do now support it.
16450 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
16451 msynci.
16452 * gcc/doc/invoke.texi (-msynci): Document the new option.
16453 * doc/install.texi (--with-synci): Document the new option.
16454
16455 2009-07-10 Richard Guenther <rguenther@suse.de>
16456
16457 PR tree-optimization/40496
16458 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
16459 the PHI result with a compatible type.
16460
16461 2009-07-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
16462
16463 PR 25509
16464 PR 40614
16465 * c.opt (Wunused-result): New.
16466 * doc/invoke.texi: Document it.
16467 * c-common.c (c_warn_unused_result): Use it.
16468
16469 2009-07-09 DJ Delorie <dj@redhat.com>
16470
16471 * targhooks.c (default_target_can_inline_p): Rename from
16472 default_target_option_can_inline_p.
16473 * targhooks.h (default_target_can_inline_p): Likewise.
16474 * target-def.h (TARGET_CAN_INLINE_P): Rename from
16475 TARGET_OPTION_CAN_INLINE_P.
16476 * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
16477 * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
16478 (mep_target_can_inline_p): Rename from
16479 mep_target_option_can_inline_p.
16480
16481 PR target/40626
16482 * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
16483 registers used to pass vectors.
16484
16485 * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
16486
16487 2009-07-09 Tom Tromey <tromey@redhat.com>
16488
16489 * unwind-dw2-fde-darwin.c: Include dwarf2.h.
16490 * config/mmix/mmix.c: Include dwarf2.h.
16491 * config/rs6000/darwin-fallback.c: Include dwarf2.h.
16492 * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
16493 * config/sh/sh.c: Include dwarf2.h.
16494 * config/i386/i386.c: Include dwarf2.h.
16495 * Makefile.in (DWARF2_H): Remove 'elf'.
16496 * except.c: Include dwarf2.h.
16497 * unwind-dw2.c: Include dwarf2.h.
16498 * dwarf2out.c: Include dwarf2.h.
16499 * unwind-dw2-fde-glibc.c: Include dwarf2.h.
16500 * unwind-dw2-fde.c: Include dwarf2.h.
16501 * dwarf2asm.c: Include dwarf2.h.
16502
16503 2009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
16504
16505 * haifa-sched.c (insn_finishes_cycle_p): New static function.
16506 (max_issue): Use it.
16507 * sched-int.h (struct sched_info: insn_finishes_block_p): New
16508 scheduler hook.
16509 * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
16510 (region_sched_info): Update.
16511 * sched-ebb.c (ebb_sched_info): Update.
16512 * modulo-sched.c (sms_sched_info): Update.
16513 * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
16514
16515 2009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
16516
16517 * varasm.c (build_constant_desc): Don't share RTL in pool entries.
16518
16519 2009-07-09 Basile Starynkevitch <basile@starynkevitch.net>
16520
16521 * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
16522
16523 2009-07-09 Jakub Jelinek <jakub@redhat.com>
16524
16525 PR middle-end/40692
16526 * fold-const.c (fold_cond_expr_with_comparison): Don't replace
16527 arg1 with arg01 if arg1 is already INTEGER_CST.
16528
16529 2009-07-08 Adam Nemet <anemet@caviumnetworks.com>
16530
16531 * simplify-rtx.c (simplify_binary_operation_1) <AND>:
16532 Transform (and (truncate)) into (truncate (and)).
16533
16534 2009-07-08 Adam Nemet <anemet@caviumnetworks.com>
16535
16536 * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
16537 creating LHS paradoxical subregs. Fix surrounding returns to
16538 use NULL_RTX rather than 0.
16539
16540 2009-07-08 DJ Delorie <dj@redhat.com>
16541
16542 * config/mep/mep.c (mep_option_can_inline_p): New.
16543 (TARGET_OPTION_CAN_INLINE_P): Define.
16544
16545 2009-07-08 Mark Wielaard <mjw@redhat.com>
16546
16547 PR debug/40659
16548 * dwarf2out.c (add_data_member_location_attribute): When we have
16549 only a constant offset don't emit a new location description using
16550 DW_OP_plus_uconst, but just add the constant with add_AT_int, when
16551 dwarf_version > 2.
16552
16553 2009-07-08 Richard Henderson <rth@redhat.com>
16554
16555 PR target/38900
16556 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
16557 (enum reg_class): Add CLOBBERED_REGS.
16558 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
16559 * config/i386/i386.c (ix86_conditional_register_usage): Moved
16560 from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
16561 (ix86_function_ok_for_sibcall): Tidy. Disallow MS->SYSV sibcalls.
16562 (ix86_expand_call): Use sibcall_insn_operand when needed. Don't
16563 force 64-bit sibcalls into R11.
16564 * config/i386/constraints.md (U): New constraint.
16565 * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
16566 (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
16567 (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
16568
16569 2009-07-08 Shujing Zhao <pearly.zhao@oracle.com>
16570
16571 * basic-block.h (dump_regset, debug_regset): Remove duplicate
16572 prototypes.
16573 * c-objc-common.h (c_initialize_diagnostics): Ditto.
16574 * ebitmap.h (dump_ebitmap): Ditto.
16575 * optabs.h (optab_libfunc): Ditto.
16576 * tree.h (tree_expr_nonzero_warnv_p): Ditto.
16577 * tree-flow.h (vect_can_force_dr_alignment_p,
16578 get_vectype_for_scalar_type): Ditto.
16579 (vectorize_loops): Move prototype to ...
16580 * tree-vectorizer.h: ... here. Also, adjust comment.
16581 (vect_set_verbosity_level): Remove duplicate prototype.
16582 * tree-ssa-loop.c: Include tree-vectorizer.h.
16583 * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
16584
16585 2009-07-08 Nick Clifton <nickc@redhat.com>
16586
16587 * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
16588 forward slash.
16589
16590 2009-07-08 DJ Delorie <dj@redhat.com>
16591
16592 * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
16593 cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
16594 cpmovtocc_P0S_P1): Mark volatile. Note which registers are
16595 written to.
16596 * config/mep/intrinsics.md: Regenerated.
16597 * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
16598 registers when asm() or calls are detected.
16599
16600 2009-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
16601
16602 PR c++/31246
16603 * gimplify.c (gimplify_expr): Propagate no_warning flag when
16604 gimplifying.
16605 * gimple (gimple_build_call_from_tree): Likewise.
16606 * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
16607 no_warning flag before warning.
16608
16609 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
16610
16611 * tree.c (set_expr_locus): Remove.
16612 * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
16613 * c-typeck.c (c_finish_stmt_expr): Replace EXPR_LOCUS by
16614 EXPR_LOCATION.
16615 * gimplify.c (internal_get_tmp_var): Likewise.
16616 (gimplify_call_expr): Likewise.
16617 (gimplify_one_sizepos): Likewise.
16618
16619 2009-07-07 Eric Botcazou <ebotcazou@adacore.com>
16620
16621 PR debug/40666
16622 * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
16623 to variables for debugging purposes.
16624
16625 2009-06-23 Mark Loeser <mark@halcy0n.com>
16626
16627 PR build/40010
16628 * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
16629
16630 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
16631
16632 * pretty-print.c (pp_base_format): Remove %J.
16633 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
16634 gcc_cxxdiag_char_table): Likewise.
16635 (init_dynamic_diag_info): Likewise.
16636
16637 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
16638
16639 * pretty-print.c (pp_base_format): Remove %H.
16640 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
16641 gcc_cxxdiag_char_table): Likewise.
16642 (init_dynamic_diag_info): Likewise.
16643 * config/mep/mep.c (mep_select_section): Likewise.
16644
16645 2009-07-07 Duncan Sands <baldrick@free.fr>
16646
16647 * final.c (pass_clean_state): Give the pass a name.
16648 * passes.c (pass_rest_of_compilation): Likewise.
16649 * tree-optimize.c (pass_all_optimizations): Likewise.
16650
16651 2009-07-07 H.J. Lu <hongjiu.lu@intel.com>
16652
16653 * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
16654 an extra 'decl' for error_at.
16655
16656 2009-07-07 Jakub Jelinek <jakub@redhat.com>
16657
16658 PR middle-end/40669
16659 * tree-tailcall.c (adjust_return_value_with_ops,
16660 create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
16661 if it has complex or vector type.
16662
16663 2009-07-07 Olivier Hainque <hainque@adacore.com>
16664
16665 * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
16666 pthread symbols.
16667
16668 2009-07-07 Basile Starynkevitch <basile@starynkevitch.net>
16669
16670 * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
16671
16672 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
16673
16674 * cgraphunit.c: Replace %J by an explicit location. Update all calls.
16675 * c-decl.c: Likewise.
16676 * function.c: Likewise.
16677 * varasm.c: Likewise.
16678 * tree-ssa.c: Likewise.
16679 * c-common.c: Likewise.
16680 * tree-cfg.c: Likewise.
16681 * config/spu/spu.c: Likewise.
16682 * config/ia64/ia64.c: Likewise.
16683 * config/v850/v850.c: Likewise.
16684
16685 2009-07-06 DJ Delorie <dj@redhat.com>
16686
16687 * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
16688 * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
16689 unspecified accesses to control registers.
16690 * config/mep/intrinsics.md: Regenerate.
16691 * config/mep/intrinsics.h: Regenerate.
16692 * config/mep/mep-intrin.h: Regenerate.
16693
16694 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
16695
16696 * c-lex.c: Replace %H by an explicit location. Update all calls.
16697 * c-common.c: Likewise.
16698 * c-decl.c: Likewise.
16699 * c-typeck.c: Likewise.
16700 * fold-const.c: Likewise.
16701 * gimplify.c: Likewise.
16702 * stmt.c: Likewise.
16703 * tree-cfg.c: Likewise.
16704 * tree-ssa-loop-niter.c: Likewise.
16705 * tree-vrp.c: Likewise.
16706 * value-prof.c: Likewise.
16707
16708 2009-07-06 Diego Novillo <dnovillo@google.com>
16709
16710 * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
16711 if it has one. Handle cases where VAR does not have an
16712 annotation or cfun is NULL.
16713
16714 2009-07-06 Diego Novillo <dnovillo@google.com>
16715
16716 * tree.c: Include debug.h.
16717 (initialize_tree_contains_struct): New.
16718 (init_ttree): Call it.
16719 (tree_node_structure_for_code): Factor out of ...
16720 (tree_node_structure): ... here.
16721 * treestruct.def (TS_PHI_NODE): Remove.
16722 (TS_GIMPLE_STATEMENT): Remove.
16723
16724 2009-07-06 Diego Novillo <dnovillo@google.com>
16725
16726 * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
16727 (debug_tree_chain): Handle cycles.
16728
16729 2009-07-06 Nick Clifton <nickc@redhat.com>
16730 DJ Delorie <dj@redhat.com>
16731
16732 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
16733 __FMOVD_ENABLED__ is defined.
16734 * config/sh/sh.h
16735 (TARGET_FMOVD): Provide a default definition.
16736 (MASK_FMOVD): Likewise.
16737 (TARGET_CPU_CPP_BUILTINS): Define
16738 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
16739 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
16740 two fmov instructions depending upon whether TARGET_FMOVD is enabled.
16741 (split for DF load from memory into register): Also handle
16742 MEMs which consist of REG+DISP addressing.
16743 (split for DF store from register to memory): Likewise.
16744 (movsf_ie): Always use single fp_mode.
16745 * config/sh/sh.c (sh_override_options): Do not automatically
16746 enable TARGET_MOVD for the SH2A when supporting doubles - leave
16747 that to the -mfmovd command line switch.
16748 (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
16749 (fldi_ok): Always allow.
16750 * config/sh/sh.opt (mfmovd): Remove this switch.
16751 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
16752
16753 2009-07-06 J"orn Rennecke <joern.rennecke@arc.com>
16754 Kaz Kojima <kkojima@gcc.gnu.org>
16755
16756 PR rtl-optimization/30807
16757 * postreload.c (reload_combine): For every new use of REG_SUM,
16758 record the use of BASE.
16759
16760 2009-07-06 Jan Hubicka <jh@suse.cz>
16761
16762 * params.def: Revert my accidental commit at 2009-06-30.
16763
16764 2009-07-04 Ian Lance Taylor <iant@google.com>
16765
16766 PR target/40636
16767 * config/i386/msformat-c.c (mingw_format_attributes): Declare as
16768 EXPORTED_CONST.
16769 (mingw_format_attribute_overrides): Likewise.
16770
16771 2009-07-04 Jakub Jelinek <jakub@redhat.com>
16772
16773 PR debug/40596
16774 * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
16775 don't check cfa.reg. Instead of cfa.indirect use
16776 fde && fde->drap_reg != INVALID_REGNUM test.
16777
16778 2009-07-04 Eric Botcazou <ebotcazou@adacore.com>
16779
16780 * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
16781
16782 2009-07-03 Vladimir Makarov <vmakarov@redhat.com>
16783
16784 PR target/40587
16785 * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
16786
16787 2009-07-03 Richard Guenther <rguenther@suse.de>
16788
16789 PR tree-optimization/40640
16790 * tree-switch-conversion.c (build_arrays): Perform arithmetic
16791 in original type.
16792
16793 2009-07-03 Jan Hubicka <jh@suse.cz>
16794
16795 * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
16796 for size, reduce amount of inlining.
16797
16798 2009-07-03 Richard Guenther <rguenther@suse.de>
16799
16800 PR middle-end/34163
16801 * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
16802 if t +- x is known to not overflow and the conversion widens the
16803 operation.
16804 * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
16805
16806 2009-07-03 Jan Hubicka <jh@suse.cz>
16807
16808 * ipa-pure-const.c (analyze): Update loop optimizer init.
16809 * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
16810 try_remove_empty_loop, remove_empty_loops): Remove.
16811 * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
16812 * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
16813 to mark regular loops as neccesary.
16814 (degenerate_phi_p): New function.
16815 (propagate_necessity, remove_dead_phis): Use it.
16816 (forward_edge_to_pdom): Likewise.
16817 (eliminate_unnecessary_stmts): Take care to remove uses of results of
16818 virtual PHI nodes that became unreachable.
16819 (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
16820 * tree-flow.h (remove_empty_loops): Remove.
16821 * passes.c (init_optimization_passes): Remove.
16822
16823 2009-07-03 Uros Bizjak <ubizjak@gmail.com>
16824
16825 * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
16826 can_create_pseudo_p.
16827 (*fix_trunc<mode>_i387_1): Ditto.
16828 (*floathi<mode>2_1): Ditto.
16829 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
16830 (*fistdi2_1): Ditto.
16831 (*fist<mode>2_1): Ditto.
16832 (frndintxf2_floor): Ditto.
16833 (*fist<mode>2_floor_1): Ditto.
16834 (frndintxf2_ceil): Ditto.
16835 (*fist<mode>2_ceil_1): Ditto.
16836 (frndintxf2_trunc): Ditto.
16837 (frndintxf2_mask_pm): Ditto.
16838 (fxam<mode>2_i387_with_temp): Ditto.
16839 * config/i386/sse.md (mulv16qi3): Ditto.
16840 (*sse2_mulv4si3): Ditto.
16841 (mulv2di3): Ditto.
16842 (sse4_2_pcmpestr): Ditto.
16843 (sse4_2_pcmpistr): Ditto.
16844
16845 2009-07-03 Jan Hubicka <jh@suse.cz>
16846
16847 * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
16848 (mark_stmt_necessary): Set it.
16849 (mark_operand_necessary): Set it.
16850 (mark_control_dependent_edges_necessary): Set it.
16851 (mark_virtual_phi_result_for_renaming): New function.
16852 (get_live_post_dom): New function.
16853 (forward_edge_to_pdom): New function.
16854 (remove_dead_stmt): Fix handling of control dependences.
16855 (tree_dce_init): Init new bitmap.
16856 (tree_dce_done): Free it.
16857
16858 2009-07-02 Richard Guenther <rguenther@suse.de>
16859
16860 PR bootstrap/40617
16861 * tree-ssa-structalias.c (new_var_info): Initialize
16862 is_restrict_var.
16863
16864 2009-07-02 Jan Hubicka <jh@suse.cz>
16865
16866 * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
16867 local.
16868
16869 2009-07-02 Paolo Bonzini <bonzini@gnu.org>
16870
16871 * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
16872 instead of recomputing it. Adjust calls.
16873 (emit_store_flag): Adjust recursive calls.
16874
16875 2009-07-02 Richard Guenther <rguenther@suse.de>
16876
16877 * tree-ssa-live.c (remove_unused_locals): Do not remove
16878 heap variables.
16879 * tree-ssa-structalias.c (handle_lhs_call): Delay setting
16880 of DECL_EXTERNAL for HEAP variables.
16881 (compute_points_to_sets): Set DECL_EXTERNAL for escaped
16882 HEAP variables. Do not adjust RESTRICT vars.
16883 (find_what_var_points_to): Nobody cares if something
16884 points to READONLY.
16885
16886 2009-07-02 Ben Elliston <bje@au.ibm.com>
16887
16888 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
16889 pc_low and pc_high declarations to the top of the function.
16890
16891 2009-07-01 DJ Delorie <dj@redhat.com>
16892
16893 * config/mep/mep.c (mep_handle_option): Leave IVC2 control
16894 registers as fixed.
16895 (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
16896 * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
16897 unspecified accesses to control registers.
16898 * config/mep/intrinsics.md: Regenerate.
16899 * config/mep/intrinsics.h: Regenerate.
16900 * config/mep/mep-intrin.h: Regenerate.
16901
16902 2009-07-01 Anthony Green <green@moxielogic.com>
16903
16904 * config/moxie/moxie.c (moxie_expand_prologue): Use dec
16905 instruction when possible.
16906 (moxie_expand_prologue): Ditto. Also, save an instruction and
16907 some complexity by popping off of $r12 instead of $sp.
16908 * config/moxie/moxie.md (movsi_pop): Don't assume $sp. Take two
16909 operands.
16910
16911 2009-07-01 Richard Henderson <rth@redhat.com>
16912
16913 PR bootstrap/40347
16914 * function.c (reposition_prologue_and_epilogue_notes): If epilogue
16915 contained no insns, reposition note before last insn.
16916
16917 2009-07-01 Richard Henderson <rth@redhat.com>
16918
16919 PR debug/40431
16920 * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
16921 DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
16922
16923 2009-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
16924
16925 PR bootstrap/40558
16926 * config/rs6000/rs6000.c (print_operand): Undo change that breaks
16927 darwin9 for printing reg addresses with %y.
16928
16929 2009-07-01 Adam Nemet <anemet@caviumnetworks.com>
16930
16931 * combine.c (force_to_mode): Handle TRUNCATE. Factor out
16932 truncation from operands in binary operations.
16933
16934 2009-07-01 Adam Nemet <anemet@caviumnetworks.com>
16935
16936 Revert:
16937 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
16938 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
16939 subreg of op0 to the original op0.
16940
16941 * expmed.c (store_bit_field_1): Use a temporary as the destination
16942 instead of a paradoxical subreg when we need to truncate the result.
16943
16944 2009-07-01 DJ Delorie <dj@redhat.com>
16945
16946 * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
16947 names to VLIW variants.
16948 (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
16949 * config/mep/intrinsics.md: Regenerate.
16950 * config/mep/intrinsics.h: Regenerate.
16951 * config/mep/mep-intrin.h: Regenerate.
16952
16953 2009-07-01 Jakub Jelinek <jakub@redhat.com>
16954
16955 PR debug/40462
16956 * jump.c (returnjump_p): Revert last patch.
16957 * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
16958
16959 2009-07-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16960
16961 PR target/40575
16962 * pa.md (casesi32p): Use jump table label to determine the offset
16963 of the jump table.
16964 (casesi64p): Likewise.
16965
16966 * pa.c (forward_branch_p): Return bool type. Use instruction
16967 addresses when available. Assert that INSN has a jump label.
16968 (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
16969 have a jump label.
16970
16971 2009-07-01 Richard Guenther <rguenther@suse.de>
16972
16973 PR tree-optimization/19831
16974 * tree-ssa-dce.c (propagate_necessity): Calls to functions
16975 that only act as barriers do not make any previous stores necessary.
16976 * tree-ssa-structalias.c (handle_lhs_call): Delay making
16977 HEAP variables global, do not add a constraint from nonlocal.
16978 (find_func_aliases): Handle escapes through return statements.
16979 (compute_points_to_sets): Make escaped HEAP variables global.
16980
16981 2009-07-01 Paolo Bonzini <bonzini@gnu.org>
16982
16983 PR bootstrap/40597
16984 * expmed.c (emit_store_flag): Perform a conversion if necessary,
16985 after reducing a DImode cstore to SImode.
16986
16987 2009-07-01 Paolo Bonzini <bonzini@gnu.org>
16988
16989 * expr.c (expand_expr_real_1): Reinstate fallthrough to
16990 TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
16991
16992 2009-07-01 Maciej W. Rozycki <macro@linux-mips.org>
16993
16994 * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro. Set to 1.
16995 * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro. Redefine the
16996 to 0.
16997 * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
16998 and umod_optab if TARGET_BSD_DIVMOD.
16999 * config/vax/lib1funcs.asm: New file.
17000 * config/vax/t-linux: New file.
17001 * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
17002
17003 2009-06-30 Jakub Jelinek <jakub@redhat.com>
17004
17005 PR c++/40566
17006 * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
17007 to type arguments that have void type.
17008
17009 PR debug/40573
17010 * dwarf2out.c (gen_formal_parameter_die): Call
17011 equate_decl_number_to_die if node is different from origin.
17012
17013 2009-06-30 Anthony Green <green@moxielogic.com>
17014
17015 Clean up moxie port for --enable-build-with-cxx.
17016 * config/moxie/moxie.c (moxie_function_value): First two
17017 parameters are const_tree, not tree.
17018 * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
17019 (REG_CLASS_NAMES): Ditto.
17020 (REGNO_REG_CLASS): Ditto.
17021 * config/moxie/moxie-protos.h (moxie_override_options): Declare.
17022 (moxie_function_value): Fix constyness of arguments.
17023
17024 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
17025
17026 * cgraphunit.c (cgraph_finalize_compilation_unit): Call
17027 finalize_size_functions before further processing.
17028 * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
17029 (variable_size): Call self_referential_size on size expressions
17030 that contain a PLACEHOLDER_EXPR.
17031 (size_functions): New static variable.
17032 (copy_self_referential_tree_r): New static function.
17033 (self_referential_size): Likewise.
17034 (finalize_size_functions): New global function.
17035 * tree.c: Include tree-inline.h.
17036 (push_without_duplicates): New static function.
17037 (find_placeholder_in_expr): New global function.
17038 (substitute_in_expr) <tcc_declaration>: Return the replacement object
17039 on equality.
17040 <tcc_expression>: Likewise.
17041 <tcc_vl_exp>: If the replacement object is a constant, try to inline
17042 the call in the expression.
17043 * tree.h (finalize_size_functions): Declare.
17044 (find_placeholder_in_expr): Likewise.
17045 (FIND_PLACEHOLDER_IN_EXPR): New macro.
17046 (substitute_placeholder_in_expr): Update comment.
17047 * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
17048 is true.
17049 (copy_tree_body_r): Likewise.
17050 (copy_tree_body): New static function.
17051 (maybe_inline_call_in_expr): New global function.
17052 * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
17053 (maybe_inline_call_in_expr): Declare.
17054 * Makefile.in (tree.o): Depend on TREE_INLINE_H.
17055 (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
17056 GIMPLE_H.
17057
17058 2009-06-30 Richard Guenther <rguenther@suse.de>
17059
17060 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
17061 continue walking.
17062 (propagate_necessity): Do not mark reaching defs of stores
17063 as necessary.
17064
17065 2009-06-30 Jan Hubicka <jh@suse.cz>
17066
17067 * cfgloopanal.c (check_irred): Move into ...
17068 (mark_irreducible_loops): ... here; return true if ireducible
17069 loops was found.
17070 * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
17071 (analyze_function): Try to prove loop finiteness.
17072 * cfgloop.h (mark_irreducible_loops): Update prototype.
17073 * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
17074
17075 2009-06-30 Basile Starynkevitch <basile@starynkevitch.net>
17076
17077 * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
17078
17079 2009-06-30 Ira Rosen <irar@il.ibm.com>
17080
17081 PR tree-optimization/40542
17082 * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
17083 types.
17084
17085 2009-06-30 Martin Jambor <mjambor@suse.cz>
17086
17087 PR tree-optimization/40582
17088 * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
17089 than useless_type_conversion_p.
17090 (generate_subtree_copies): Increment sra_stats.subtree_copies at a
17091 proper place.
17092
17093 2009-06-30 Martin Jambor <mjambor@suse.cz>
17094
17095 PR middle-end/40554
17096 * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
17097
17098 2009-06-30 Richard Guenther <rguenther@suse.de>
17099
17100 * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
17101 use ao_ref references.
17102 (walk_aliased_vdefs): Likewise.
17103 * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
17104 * tree-ssa-dce.c (struct ref_data): Remove.
17105 (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
17106 (mark_aliased_reaching_defs_necessary): Adjust.
17107 (mark_all_reaching_defs_necessary_1): Likewise.
17108
17109 2009-06-30 Paolo Bonzini <bonzini@gnu.org>
17110
17111 PR boostrap/40597
17112 * expmed.c (emit_cstore): New name of emit_store_flag_1.
17113 (emit_store_flag_1): Extract from emit_store_flag, adjust
17114 calls to (what now is) emit_cstore.
17115 (emit_store_flag): Call emit_store_flag_1 and also use it
17116 for what used to be recursive calls.
17117
17118 2009-06-30 Wei Guozhi <carrot@google.com>
17119
17120 PR/40416
17121 * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
17122 if the target bb post dominates from bb.
17123 * config/i386/i386.c (memory_address_length): Check existence of base
17124 register before using it.
17125
17126 2009-06-30 Nick Clifton <nickc@redhat.com>
17127 DJ Delorie <dj@redhat.com>
17128
17129 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
17130 __FMOVD_ENABLED__ is defined.
17131 * config/sh/sh.h
17132 (TARGET_FMOVD): Provide a default definition.
17133 (MASK_FMOVD): Likewise.
17134 (TARGET_CPU_CPP_BUILTINS): Define
17135 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
17136 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
17137 two fmov instructions depending upon whether TARGET_FMOVD is
17138 enabled.
17139 (split for DF load from memory into register): Also handle
17140 MEMs which consist of REG+DISP addressing.
17141 (split for DF store from register to memory): Likewise.
17142 * config/sh/sh.opt (mfmovd): Remove this switch.
17143 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
17144 * config/sh/sh.c (sh_override_options): Do not automatically
17145 enable TARGET_MOVD for the SH2A when supporting doubles - leave
17146 that to the -mfmovd command line switch.
17147
17148 * config/sh/sh.c (broken_move): Do not restrict fldi test to only
17149 the SH4 and SH4A.
17150 (fldi_ok): Always allow.
17151 * config/sh/sh.md (movsf_ie): Always use single fp_mode.
17152
17153 2009-06-29 DJ Delorie <dj@redhat.com>
17154
17155 * doc/install.texi (mep-x-elf): Correct chip's full name.
17156
17157 2009-06-29 H.J. Lu <hongjiu.lu@intel.com>
17158
17159 * doc/extend.texi: Fix typo.
17160
17161 2009-06-29 Tom Tromey <tromey@redhat.com>
17162
17163 * dwarf2.h: Remove.
17164 * Makefile.in (DWARF2_H): New variable.
17165 (except.o): Use it.
17166 (dwarf2out.o): Likewise.
17167 (dwarf2asm.o): Likewise.
17168 * config/i386/t-i386: Use DWARF2_H.
17169 * except.c: Include elf/dwarf2.h.
17170 * unwind-dw2.c: Include elf/dwarf2.h.
17171 * dwarf2out.c: Include elf/dwarf2.h.
17172 (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
17173 <dtprel>: New field.
17174 (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
17175 (size_of_loc_descr): Likewise.
17176 (output_loc_operands_raw): Likewise.
17177 (output_loc_operands): Handle new dtprel field.
17178 (loc_checksum): Update.
17179 (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
17180 * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
17181 * unwind-dw2-fde.c: Include elf/dwarf2.h.
17182 * dwarf2asm.c: Include elf/dwarf2.h.
17183 * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
17184 * config/mmix/mmix.c: Include elf/dwarf2.h.
17185 * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
17186 * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
17187 * config/sh/sh.c: Include elf/dwarf2.h.
17188 * config/i386/i386.c: Include elf/dwarf2.h.
17189
17190 2009-06-29 DJ Delorie <dj@redhat.com>
17191
17192 * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
17193
17194 * doc/extend.texi: Add MeP attributes and pragmas.
17195 * doc/invoke.text: Add MeP Options.
17196 * doc/contrib.texi: Add MeP contribution.
17197 * doc/md.texi: Add MeP constraints.
17198 * doc/install.texi: Add MeP target.
17199
17200 2009-06-30 Anatoly Sokolov <aesok@post.ru>
17201
17202 * target.h (struct gcc_target): Add frame_pointer_required field.
17203 * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
17204 (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
17205 * ira.c (setup_eliminable_regset): Use frame_pointer_required target
17206 hook.
17207 * reload1.c (update_eliminables): (Ditto.).
17208 * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
17209 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
17210 (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
17211
17212 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
17213
17214 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
17215 * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
17216 (arm_frame_pointer_required): New function.
17217
17218 * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
17219 * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
17220 (avr_frame_pointer_required_p): Declare as static.
17221 * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
17222
17223 * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
17224 * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
17225 (bfin_frame_pointer_required): Make as static, change return type
17226 to bool.
17227 * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
17228
17229 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
17230 * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
17231 (cris_frame_pointer_required): New function.
17232
17233 * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
17234
17235 * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
17236 * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
17237 (fr30_frame_pointer_required): New function.
17238
17239 * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
17240 * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
17241 (frv_frame_pointer_required): Make as static, change return type
17242 to bool.
17243 * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
17244
17245 * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
17246 * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
17247 (ix86_frame_pointer_required): Make as static, change return type to
17248 bool.
17249 * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
17250
17251 * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
17252 * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
17253
17254 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
17255
17256 * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
17257
17258 * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
17259
17260 * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
17261 * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
17262 (mips_frame_pointer_required): Make as static.
17263 * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
17264
17265 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
17266 * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
17267 (mmix_frame_pointer_required): Mew function.
17268
17269 * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
17270 * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
17271
17272 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
17273
17274 * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
17275
17276 * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
17277
17278 * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
17279 (CAN_ELIMINATE): Redefine.
17280 * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
17281 (sparc_frame_pointer_required): New function.
17282 (sparc_can_eliminate): New function.
17283 * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
17284
17285 * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
17286 * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
17287
17288 * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
17289 * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
17290 (xtensa_frame_pointer_required): Make as static, change return type
17291 to bool.
17292 * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
17293 Remove.
17294
17295 2009-06-29 Olatunji Ruwase <tjruwase@google.com>
17296
17297 * doc/plugins.texi: Document PLUGIN_START_UNIT.
17298 * toplev.c (compile_file): Call PLUGIN_START_UNIT.
17299 * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
17300 * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
17301 (register_callback): Handle PLUGIN_START_UNIT.
17302 (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
17303
17304 2009-06-29 Eric Botcazou <ebotcazou@adacore.com>
17305
17306 * tree.c (process_call_operands): Propagate TREE_READONLY from the
17307 operands.
17308 (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
17309 (build3_stat): Propagate TREE_READONLY for COND_EXPR.
17310
17311 2009-06-29 Daniel Jacobowitz <dan@codesourcery.com>
17312
17313 * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
17314 move cost.
17315
17316 2009-06-29 Uros Bizjak <ubizjak@gmail.com>
17317
17318 * doc/extend.texi (Additional Floating Types): __float128 is also
17319 supported on i386 targets.
17320
17321 2009-06-29 Richard Guenther <rguenther@suse.de>
17322
17323 PR middle-end/14187
17324 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
17325 flag.
17326 (pt_solutions_same_restrict_base): Declare.
17327 * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
17328 flag.
17329 (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
17330 (make_constraint_from, make_copy_constraint): Move earlier.
17331 (make_constraint_from_heapvar): New function.
17332 (make_constraint_from_restrict): Likewise.
17333 (handle_lhs_call): Use it.
17334 (find_func_aliases): Use it to track conversions to restrict
17335 qualified pointers.
17336 (struct fieldoff): Add only_restrict_pointers flag.
17337 (push_fields_onto_fieldstack): Initialize it.
17338 (create_variable_info_for): Track global restrict qualified pointers.
17339 (intra_create_variable_infos): Use make_constraint_from_heapvar.
17340 Track restrict qualified pointer arguments.
17341 (set_uids_in_ptset): Use varinfo is_global_var flag.
17342 (find_what_var_points_to): Set the vars_contains_restrict flag.
17343 Always create the points-to solution for sets including restrict tags.
17344 (pt_solutions_same_restrict_base): New function.
17345 * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
17346 qualified pointers use pt_solutions_same_restrict_base as
17347 additional source for disambiguation.
17348
17349 2009-06-29 Richard Guenther <rguenther@suse.de>
17350
17351 PR middle-end/38212
17352 * alias.c (find_base_decl): Remove.
17353 (get_deref_alias_set_1): Remove restrict handling.
17354 * c-common.c (c_apply_type_quals_to_decl): Do not set
17355 DECL_POINTER_ALIAS_SET.
17356 * gimplify.c (find_single_pointer_decl_1): Remove.
17357 (find_single_pointer_decl): Likewise.
17358 (internal_get_tmp_var): Remove restrict handling.
17359 (gimple_regimplify_operands): Likewise.
17360 * omp-low.c (expand_omp_atomic_pipeline): Do not set
17361 DECL_POINTER_ALIAS_SET. Use ref-all pointers.
17362 * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
17363 * tree.c (restrict_base_for_decl): Remove.
17364 (init_ttree): Do not allocate it.
17365 (make_node_stat): Do not set DECL_POINTER_ALIAS_SET. Set
17366 LABEL_DECL_UID for label decls.
17367 (copy_node_stat): Do not copy restrict information.
17368 (decl_restrict_base_lookup): Remove.
17369 (decl_restrict_base_insert): Likewise.
17370 (print_restrict_base_statistics): Likewise.
17371 (dump_tree_statistics): Do not call print_restrict_base_statistics.
17372 * tree.h (DECL_POINTER_ALIAS_SET): Remove.
17373 (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
17374 (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
17375 (LABEL_DECL_UID): Adjust.
17376 (DECL_BASED_ON_RESTRICT_P): Remove.
17377 (DECL_GET_RESTRICT_BASE): Likewise.
17378 (SET_DECL_RESTRICT_BASE): Likewise.
17379 (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
17380
17381 * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
17382 instead of DECL_POINTER_ALIAS_SET.
17383 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
17384 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
17385 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
17386
17387 2009-06-29 Richard Guenther <rguenther@suse.de>
17388
17389 PR tree-optimization/40579
17390 * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
17391 the IL to simplify has constants that overflowed.
17392
17393 2009-06-28 Uros Bizjak <ubizjak@gmail.com>
17394
17395 PR tree-optimization/40550
17396 * tree-vect-generic.c (expand_vector_operations_1): Compute in
17397 vector_compute_type only when the size of vector_compute_type is
17398 less than the size of type.
17399
17400 2009-06-28 Eric Botcazou <ebotcazou@adacore.com>
17401
17402 * fold-const.c (contains_label_1): Fix comments.
17403 (contains_label_p): Do not walk trees multiple time.
17404
17405 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
17406
17407 * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
17408 * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
17409 cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
17410 ix86_fp_comparison_operator.
17411 (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
17412 *fp_jcc_2_sse, *fp_jcc_2_387): Delete
17413 (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
17414 *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
17415 !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
17416 to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
17417 (related splits): Change predicate to ix86_fp_comparison_operator.
17418 * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
17419 instead of ix86_fp_comparison_codes.
17420 (ix86_trivial_fp_comparison_operator,
17421 ix86_fp_comparison_operator): New.
17422 * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
17423 (ix86_expand_compare): Eliminate last two parameters.
17424 (ix86_fp_jump_nontrivial_p): Kill.
17425 * config/i386/i386.c (put_condition_code): Eliminate call to
17426 ix86_fp_comparison_codes and subsequent assertion.
17427 (ix86_fp_comparison_codes): Eliminate.
17428 (ix86_fp_swap_condition): New.
17429 (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
17430 ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
17431 into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
17432 (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
17433 and ix86_fp_swap_condition.
17434 (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
17435 Use ix86_fp_comparison_strategy.
17436 (ix86_expand_compare): Likewise. Eliminate last two arguments.
17437 (ix86_fp_jump_nontrivial_p): Eliminate.
17438 (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple. Adjust
17439 call to ix86_expand_compare.
17440 (ix86_split_fp_branch, ix86_expand_setcc,
17441 ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
17442 ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
17443
17444 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
17445
17446 * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
17447 related to jump_clobbers.
17448 * config/arm/arm.md (conds): Remove jump_clob case.
17449 (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
17450 splits): Change comparison_operator to arm_comparison_operator.
17451 (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
17452 Eliminate.
17453
17454 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
17455
17456 * dojump.c (do_compare_rtx_and_jump): Try swapping the
17457 condition for floating point modes.
17458 * expmed.c (emit_store_flag_1): Move here a bigger part
17459 of emit_store_flag.
17460 (emit_store_flag): Try swapping the condition for floating point
17461 modes.
17462 * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
17463
17464 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
17465
17466 * expr.c (expand_expr_real_1): Just use do_store_flag.
17467 (do_store_flag): Drop support for TRUTH_NOT_EXPR. Use
17468 emit_store_flag_force.
17469 * expmed.c (emit_store_flag_force): Copy here trick
17470 previously in expand_expr_real_1. Try reversing the comparison.
17471 (emit_store_flag_1): Work if target is NULL.
17472 (emit_store_flag): Work if target is NULL, using the result mode
17473 from the comparison. Use split_comparison, restructure final part
17474 to simplify conditionals.
17475
17476 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
17477
17478 * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
17479 * dojump.c (do_jump): Change handling of floating-point
17480 ops to use just do_compare_and_jump.
17481 (split_comparison): New.
17482 (do_compare_rtx_and_jump): Add here logic coming previously
17483 in do_jump, using split_comparison.
17484
17485 2009-06-27 H.J. Lu <hongjiu.lu@intel.com>
17486
17487 PR target/40489
17488 * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
17489
17490 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
17491
17492 * tree-ssa-alias.c: Fix unintentional commit.
17493
17494 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
17495
17496 * passes.c (execute_one_pass): Fix unintentional commit.
17497
17498 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
17499
17500 * df-problems.c (df_set_seen, df_unset_seen): Delete.
17501 (df_rd_local_compute, df_md_local_compute): Inline them.
17502
17503 (df_md_scratch): New.
17504 (df_md_alloc, df_md_free): Allocate/free it.
17505 (df_md_local_compute): Only include live registers in init.
17506 (df_md_transfer_function): Prune the in-set computed by
17507 the confluence function, and the gen-set too.
17508
17509 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
17510
17511 PR rtl-optimization/26854
17512 * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
17513 * df-problems.c (df_rd_add_problem): Fix comment.
17514 (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
17515 df_md_simulate_artificial_defs_at_top,
17516 df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
17517 df_md_bb_local_compute, df_md_local_compute, df_md_reset,
17518 df_md_transfer_function, df_md_init, df_md_confluence_0,
17519 df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
17520 problem_MD, df_md_add_problem): New.
17521 * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
17522 df_md_get_bb_info): New.
17523 (DF_LAST_PROBLEM_PLUS1): Adjust.
17524
17525 * Makefile.in (fwprop.o): Include domwalk.h.
17526 * fwprop.c: Include domwalk.h.
17527 (reg_defs, reg_defs_stack): New.
17528 (bitmap_only_bit_between): Remove.
17529 (process_defs): New.
17530 (process_uses): Use reg_defs and local_md instead of
17531 bitmap_only_bit_between and local_rd.
17532 (single_def_use_enter_block): New, from build_single_def_use_links.
17533 (single_def_use_leave_block): New.
17534 (build_single_def_use_links): Remove code moved to
17535 single_def_use_enter_block, invoke domwalk.
17536 (use_killed_between): Adjust comment.
17537
17538 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
17539
17540 * bitmap.h (bitmap_ior_and_into): New.
17541 * bitmap.c (bitmap_ior_and_into): New.
17542
17543 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
17544
17545 * domwalk.h (struct dom_walk_data): Remove all callbacks except
17546 before_dom_children_before_stmts and after_dom_children_after_stmts.
17547 Rename the two remaining callbacks to just before_dom_children and
17548 after_dom_children. Remove other GIMPLE statement walking bits.
17549 * domwalk.c (walk_dominator_tree): Remove now unsupported features.
17550 * graphite.c: Do not include domwalk.h.
17551 * tree-into-ssa.c (interesting_blocks): New global.
17552 (struct mark_def_sites_global_data): Remove it and names_to_rename.
17553 (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
17554 rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
17555 now that they're not domwalk callbacks.
17556 (rewrite_initialize_block): Rename to...
17557 (rewrite_enter_block): ... this, place after called functions. Test
17558 interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
17559 (rewrite_finalize_block): Rename to...
17560 (rewrite_leave_block): ... this, place after called functions.
17561 (rewrite_update_init_block): Rename to...
17562 (rewrite_update_enter_block): ... this, place after called functions.
17563 Test interesting_blocks, call rewrite_update_stmt and
17564 rewrite_update_phi_arguments.
17565 (rewrite_update_fini_block): Rename to...
17566 (rewrite_leave_block): ... this, place after called functions.
17567 (rewrite_blocks): Remove last argument, simplify initialization of
17568 walk_data.
17569 (mark_def_sites_initialize_block): Rename to...
17570 (mark_def_sites_block): ... this, call mark_def_sites.
17571 (mark_def_sites_blocks): Remove argument, simplify initialization of
17572 walk_data.
17573 (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
17574 (update_ssa): Likewise.
17575 * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
17576 callback.
17577 (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
17578 (dom_opt_initialize_block): Rename to...
17579 (dom_opt_enter_block): ... this, place after called functions. Walk
17580 statements here, inline propagate_to_outgoing_edges.
17581 (dom_opt_finalize_block): Rename to...
17582 (dom_opt_leave_block): ... this, place after called functions.
17583 * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
17584 domwalk callback.
17585 (dse_enter_block, dse_record_phi): New.
17586 (dse_record_phis): Delete.
17587 (dse_finalize_block): Rename to...
17588 (dse_leave_block): ... this.
17589 (tree_ssa_dse): Simplify initialization of walk_data.
17590 * tree-ssa-loop-im.c (determine_invariantness, move_computations):
17591 Adjust initialization of walk_data.
17592 * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
17593 * tree-ssa-loop-phiopt.c (get_non_trapping):
17594 Adjust initialization of walk_data.
17595 * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
17596 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
17597 it's not a domwalk callback.
17598 (uncprop_initialize_block): Rename to...
17599 (dse_enter_block): ... this, call uncprop_into_successor_phis.
17600 (dse_finalize_block): Rename to...
17601 (dse_leave_block): ... this.
17602 (tree_ssa_uncprop): Simplify initialization of walk_data.
17603 * Makefile.in: Adjust dependencies.
17604
17605 2009-06-27 Richard Earnshaw <rearnsha@arm.com>
17606
17607 * arm.md (casesi): Fix test for Thumb1.
17608 (thumb1_casesi_internal_pic): Likewise.
17609 (thumb1_casesi_dispatch): Likewise.
17610
17611 2009-06-26 Daniel Gutson <dgutson@codesourcery.com>
17612
17613 * config/arm/arm-cores.def: Added core cortex-m0.
17614 * config/arm/arm-tune.md: Regenerated.
17615 * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
17616
17617 2009-06-26 DJ Delorie <dj@redhat.com>
17618
17619 * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
17620
17621 * config/mep/mep.c (mep_bundle_insns): Account for the fact that
17622 the scheduler doesn't tag jump insns.
17623
17624 2009-06-26 H.J. Lu <hongjiu.lu@intel.com>
17625
17626 * c-decl.c (merge_decls): Re-indent.
17627
17628 2009-06-26 Janis Johnson <janis187@us.ibm.com>
17629
17630 PR c/39902
17631 * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
17632 Special-case decimal float constants.
17633
17634 2009-06-26 Richard Henderson <rth@redhat.com>
17635
17636 * function.h (struct function): Add cannot_be_copied_reason,
17637 and cannot_be_copied_set.
17638 * tree-inline.c (has_label_address_in_static_1): Rename from
17639 inline_forbidden_p_2; don't set inline_forbidden_reason here.
17640 (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
17641 don't set inline_forbidden_reason.
17642 (copy_forbidden): New function, split out of inline_forbidden_p.
17643 (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
17644 (inline_forbidden_p): Use copy_forbidden.
17645 (tree_versionable_function_p): Likewise.
17646 (inlinable_function_p): Merge into tree_inlinable_function_p.
17647 (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
17648 * ipa-cp.c (ipcp_versionable_function_p): New function.
17649 (ipcp_cloning_candidate_p): Use it.
17650 (ipcp_node_modifiable_p): Likewise.
17651
17652 2009-06-26 Olatunji Ruwase <tjruwase@google.com>
17653
17654 * builtins.c (expand_builtin_alloca): Handle builtin alloca
17655 that is marked not to be inlined. Remove flag_mudflap use.
17656 * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
17657 (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
17658
17659 2009-06-26 Steve Ellcey <sje@cup.hp.com>
17660
17661 PR bootstrap/40338
17662 * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
17663 * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
17664
17665 2009-06-26 Kai Tietz <kai.tietz@onevision.com>
17666
17667 * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
17668 shared libgcc.
17669 (__mingwthr_remove_key_dtor): Likewise.
17670
17671 2009-06-26 Richard Guenther <rguenther@suse.de>
17672
17673 * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
17674
17675 2009-06-26 Steven Bosscher <steven@gcc.gnu.org>
17676
17677 PR middle-end/40525
17678 * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
17679 try the non-cond_exec path also.
17680
17681 2009-06-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17682
17683 PR target/40468
17684 * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
17685 (output_cbranch): Use new functions.
17686 (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
17687 Likewise.
17688
17689 2009-06-25 Michael Meissner <meissner@linux.vnet.ibm.com>
17690 Pat Haugen <pthaugen@us.ibm.com>
17691 Revital Eres <ERES@il.ibm.com>
17692
17693 * config/rs6000/rs6000.c (print_operand): Correct lossage message
17694 for %c error. Add %x support to print VSX registers as a unified
17695 register set, instead of separate float and altivec registers.
17696 Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
17697 %y case, and add support for VSX pre-modify addresses.
17698 (output_toc): Add assert for CONST containing an integer constant
17699 in the PLUS case.
17700 (rs6000_adjust_cost): Add POWER7 support.
17701 (insn_must_be_first_in_group): Ditto.
17702 (insn_must_be_last_in_group): Ditto.
17703 (rs6000_emit_popcount): Ditto.
17704 (rs6000_vector_mode_supported_p): Ditto.
17705
17706 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
17707 Change some of the functions called by macros to being called
17708 through a pointer, so debug functions can be inserted if
17709 -mdebug=addr or -mdebug=cost.
17710 (rs6000_preferred_reload_class_ptr): Ditto.
17711 (rs6000_secondary_reload_class_ptr): Ditto.
17712 (rs6000_secondary_memory_needed_ptr): Ditto.
17713 (rs6000_cannot_change_mode_class_ptr): Ditto.
17714 (rs6000_secondary_reload_inner): Ditto.
17715 (rs6000_legitimize_reload_address): Ditto.
17716 (rs6000_legitimize_reload_address_ptr): Ditto.
17717 (rs6000_mode_dependent_address): Ditto.
17718 (rs6000_mode_dependent_address_ptr): Ditto.
17719
17720 * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
17721 function to return true if the mode allows reg + integer
17722 addresses.
17723 (virtual_stack_registers_memory_p): New function to return true if
17724 the address refers to a virtual stack register.
17725 (rs6000_legitimate_offset_address_p): Move code to say whether a
17726 mode supports reg+int addressing to reg_offset_addressing_ok_p and
17727 call it.
17728 (rs6000_legitimate_address_p): Add checks for modes that only can
17729 do reg+reg addressing. Start adding VSX support.
17730 (rs6000_legitimize_reload_address): Ditto.
17731 (rs6000_legitimize_address): Ditto.
17732 (rs6000_debug_legitimate_address_p): New debug functions for
17733 -mdebug=addr and -mdebug=cost.
17734 (rs6000_debug_rtx_costs): Ditto.
17735 (rs6000_debug_address_costs): Ditto.
17736 (rs6000_debug_adjust_cost): Ditto.
17737 (rs6000_debug_legitimize_address): Ditto.
17738 (rs6000_legitimize_reload_address_ptr): Point to call normal
17739 function or debug function. Make functions called via pointer
17740 static.
17741 (rs6000_mode_dependent_address_ptr): Ditto.
17742 (rs6000_secondary_reload_class_ptr): Ditto.
17743 (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
17744 (rs6000_emit_move): Add -mdebug=addr support. Change an abort
17745 into a friendlier error.
17746 (rs6000_init_builtins): Add initial VSX support.
17747 (rs6000_adjust_cost): Fix some spacing issues.
17748
17749 * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
17750 (REG_CLASS_NAMES): Ditto.
17751 (REG_CLASS_CONTENTS): Ditto.
17752 (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
17753 pointer, to add -mdebug=addr support.
17754 (CANNOT_CHANGE_MODE_CLASS): Ditto.
17755 (SECONDARY_RELOAD_CLASS): Call through a pointer to add
17756 -mdebug=addr support.
17757 (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
17758 (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
17759 (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
17760
17761 * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
17762 16-bit values.
17763 (bswapsi*): Set attribute types for load/store. Add combiner
17764 patterns to eliminate zero extend on 64-bit.
17765 (bswapdi*): Add support for swapping 64-bit values. Use ldbrx and
17766 stdbrx if the hardware supports those instructions.
17767
17768 2009-06-25 Ian Lance Taylor <iant@google.com>
17769
17770 * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
17771 (Link Options): Document -static-libstdc++.
17772
17773 2009-06-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
17774
17775 PR target/38731
17776 * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
17777 DATA_ALIGNMENT instead.
17778
17779 2009-06-25 Richard Guenther <rguenther@suse.de>
17780
17781 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
17782 indirect references against the callused/escaped solutions.
17783 (call_may_clobber_ref_p_1): Likewise.
17784
17785 2009-06-25 Martin Jambor <mjambor@suse.cz>
17786
17787 PR tree-optimization/40493
17788 * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
17789 (enum unscalarized_data_handling): New type.
17790 (handle_unscalarized_data_in_subtree): Return what has been done.
17791 (load_assign_lhs_subreplacements): Handle left flushes differently.
17792 (sra_modify_assign): Use unscalarized_data_handling, simplified
17793 condition determining whether to remove the statement.
17794
17795 2009-06-25 Basile Starynkevitch <basile@starynkevitch.net>
17796
17797 * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
17798 excerpt - @ should be doubled for texinfo.
17799
17800 2009-06-24 Ian Lance Taylor <iant@google.com>
17801
17802 * config/arc/arc.c: Include "df.h".
17803 (arc_attribute_table): Make static. Move higher in file.
17804 (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
17805 (output_shift): Initialize n later to avoid warning.
17806 * config/arm/arm.c (arm_attribute_table): Make static. Move
17807 higher in file.
17808 * config/avr/avr.c (avr_attribute_table): Make static. Move
17809 higher in file.
17810 (reg_class_tab): Change array type from int to enum reg_class.
17811 (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
17812 LABEL_REF.
17813 (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
17814 (lshrhi3_out): Likewise.
17815 (class_likely_spilled_p): Change return type to bool.
17816 (avr_rtx_costs): Use local code variable with enum type.
17817 * config/avr/avr.md (movmemhi): Use add_reg_note.
17818 (andhi3, andsi3): Don't use AS2 with "and".
17819 (iorhi3, iorsi3): Don't use AS2 with "or".
17820 * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
17821 * config/crx/crx.c: Include "df.h".
17822 (crx_attribute_table): Make static.
17823 * config/m32r/m32r.c: Include "df.h".
17824 (m32r_attribute_table): Make static. Move higher in file.
17825 (pop): Use add_reg_note.
17826 (block_move_call): Change 0 to LCT_NORMAL in function call.
17827 * config/m32r/m32r.md (movsi_insn): Remove unused local value.
17828 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
17829 * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
17830 declare, not just when TREE_CODE is defined.
17831 * config/m68hc11/m68hc11.c: Include "expr.h".
17832 (m68hc11_attribute_table): Make static. Move higher in file.
17833 (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
17834 function call.
17835 (m68hc11_register_indirect_p): Likewise.
17836 (m68hc11_function_arg_padding): Change return type to enum
17837 direction.
17838 (emit_move_after_reload): Use add_reg_note.
17839 (m68hc11_emit_logical): Change code parameter to enum rtx_code.
17840 (m68hc11_split_logical): Likewise.
17841 (m68hc11_rtx_costs): Add local code_and outer_code variables with
17842 enum type.
17843 * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
17844 to VOIDmode in function call.
17845 * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
17846 tree is defined.
17847 (m68hc11_split_logical): Update declaration.
17848 (m68hc11_function_arg_padding): Update declaration.
17849 * config/mcore/mcore.c (regno_reg_class): Change form array of int
17850 to array of enum reg_class.
17851 (mcore_attribute_table): Make static. Move higher in file.
17852 (mcore_rtx_costs): Add cast to enum type.
17853 * config/mcore/mcore.h (regno_reg_class): Update declaration.
17854 (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
17855 * config/sh/sh.c (sh_attribute_table): Make static. Move higher
17856 in file.
17857 * config/sh/predicates.md (trapping_target_operand): Rename and to
17858 and_expr.
17859 * config/sparc/sparc.c (sparc_attribute_table): Make static. Move
17860 higher in file.
17861 * config/spu/spu.c (spu_attribute_table): Make static. Move
17862 higher in file.
17863 * config/v850/v850.c (v850_attribute_table): Make static. Move
17864 higher in file.
17865 (v850_rtx_costs): Use local code with enum type.
17866 (expand_epilogue): Add cast.
17867 * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
17868
17869 2009-06-23 Takashi YOSHII <yoshii.takashi@renesas.com>
17870
17871 PR target/40515
17872 * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
17873 -m2a-single-only and -m2a-nofpu.
17874 * config/sh/sh.opt: Document m2a generates FPU code.
17875
17876 2009-06-24 Anatoly Sokolov <aesok@post.ru>
17877
17878 * defaults.h (CAN_ELIMINATE): Provide default.
17879 * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
17880 * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
17881 * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
17882 * config/spu/spu.h (CAN_ELIMINATE): Delete.
17883 * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
17884 * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
17885 * config/cris/cris.h (CAN_ELIMINATE): Delete.
17886 * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
17887 * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
17888 * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
17889
17890 2009-06-24 DJ Delorie <dj@redhat.com>
17891
17892 * mep-ext-cop.cpu: Fix copyright notice.
17893 * mep-default: Fix copyright notice.
17894 * mep-core: Fix copyright notice.
17895 * mep: Fix copyright notice.
17896 * mep-ivc2: Fix copyright notice.
17897 * mep-c5: Fix copyright notice.
17898
17899 2009-06-24 Denis Chertykov <chertykov@gmail.com>
17900
17901 * doc/contrib.texi (Contributors):
17902
17903 2009-06-24 Andreas Krebbel <krebbel1@de.ibm.com>
17904
17905 PR middle-end/40501
17906 * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
17907 src and dst operands if necessary.
17908
17909 2009-06-23 DJ Delorie <dj@redhat.com>
17910
17911 Add MeP port.
17912 * config.gcc: Add mep support.
17913 * recog.c: Resurrect validate_replace_rtx_subexp().
17914 * recog.h: Likewise.
17915 * config/mep/: Add new port:
17916 * config/mep/constraints.md: New file.
17917 * config/mep/default.h: New file.
17918 * config/mep/intrinsics.h: New file.
17919 * config/mep/intrinsics.md: New file.
17920 * config/mep/ivc2-template.h: New file.
17921 * config/mep/mep-c5.cpu: New file.
17922 * config/mep/mep-core.cpu: New file.
17923 * config/mep/mep-default.cpu: New file.
17924 * config/mep/mep-ext-cop.cpu: New file.
17925 * config/mep/mep-intrin.h: New file.
17926 * config/mep/mep-ivc2.cpu: New file.
17927 * config/mep/mep-lib1.asm: New file.
17928 * config/mep/mep-lib2.c: New file.
17929 * config/mep/mep-pragma.c: New file.
17930 * config/mep/mep-protos.h: New file.
17931 * config/mep/mep-tramp.c: New file.
17932 * config/mep/mep.c: New file.
17933 * config/mep/mep.cpu: New file.
17934 * config/mep/mep.h: New file.
17935 * config/mep/mep.md: New file.
17936 * config/mep/mep.opt: New file.
17937 * config/mep/predicates.md: New file.
17938 * config/mep/t-mep: New file.
17939
17940 2009-06-23 Ian Lance Taylor <iant@google.com>
17941
17942 * configure.ac: Invoke AC_PROG_CXX. Separate C specific warnings
17943 from loose_warn into c_loose_warn and from strict_warn into
17944 c_strict_warn. Set and substitute warn_cxxflags. Check for
17945 --enable-build-with-cxx. Set and substitute
17946 ENABLE_BUILD_WITH_CXX. Set and substitute HOST_LIBS.
17947 * Makefile.in (CXXFLAGS): New variable.
17948 (C_LOOSE_WARN, C_STRICT_WARN): New variables.
17949 (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN). Add $(C_STRICT_WARN) if
17950 the default is the same as $(STRICT_WARN).
17951 (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
17952 (CXX): New variable.
17953 (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
17954 (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
17955 (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
17956 (HOST_LIBS): New variable.
17957 (GCC_CFLAGS): Add $(C_LOOSE_WARN).
17958 (ALL_CXXFLAGS): New variable.
17959 (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
17960 * doc/install.texi (Configuration): Document
17961 --enable-build-with-cxx, --with-stage1-ldflags,
17962 --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
17963 * configure: Rebuild.
17964
17965 2009-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17966
17967 * config/arm/arm.c (arm_override_options): Fix braces and formatting
17968 from previous commit.
17969
17970 2009-06-23 Ian Lance Taylor <iant@google.com>
17971
17972 * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
17973
17974 2009-06-23 Ian Lance Taylor <iant@google.com>
17975
17976 * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
17977 with ATTRIBUTE_UNUSED.
17978
17979 2009-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
17980 Pat Haugen <pthaugen@us.ibm.com>
17981 Revital Eres <eres@il.ibm.com>
17982
17983 * config.in (HAVE_AS_POPCNTD): Add default definition.
17984 (HAVE_AS_LWSYNC): Ditto.
17985
17986 * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
17987 release number.
17988 (gcc_cv_as_powerpc_cmpb): Ditto.
17989 (gcc_cv_as_powerpc_dfp): Ditto.
17990 (gcc_cv_as_powerpc_vsx): Ditto.
17991 (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
17992 supporting the popcntd/lwsync instructions.
17993 (gcc_cv_as_powerpc_lwsync): Ditto.
17994 * configure: Regenerate.
17995
17996 * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
17997 -mcpu=native and -mcpu=power7.
17998 * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
17999
18000 * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
18001 a variable instead of a mask to reduce the number of mask bits.
18002 * config/rs6000/sysv4.opt (-mbit-align): Ditto.
18003 (-mbit-word): Ditto.
18004 (-mregnames): Ditto.
18005 * config/rs6000/rs6000.opt (-mupdate): Ditto.
18006 (-mfused-madd): Ditto.
18007
18008 * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
18009 2.06 instructions.
18010 (-mvsx): New switch for VSX instructions.
18011 (-misel): Move from a variable to a mask to allow it to be set by
18012 -mcpu=.
18013
18014 * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
18015 function declaration to an array declaration.
18016 (rs6000_hard_regno_nregs): New external array declaration.
18017
18018 * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
18019 files included by rs6000.md.
18020
18021 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
18022 SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
18023
18024 * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
18025 a target mask.
18026 (rs6000_debug_reg): New -mdebug= variables.
18027 (rs6000_debug_addr): Ditto.
18028 (rs6000_debug_cost): Ditto.
18029 (rs6000_pmode): New variable to hold Pmode.
18030 (rs6000_pointer_size): New variable to hold POINTER_SIZE.
18031 (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
18032 calculated at compiler start.
18033 (rs6000_hard_regno_nregs): Change function to an array which holds
18034 HARD_REGNO_NREGS calculated at compiler start.
18035 (rs6000_explicit_options): Delete isel field.
18036 (rs6000_vector_unit): New array to hold which vector unit
18037 supports arithmetic options for a given type.
18038 (rs6000_vector_mem): New array to hold which vector unit supports
18039 memory reference operations for a given type.
18040 (rs6000_vector_align): New array to given the alignment of each
18041 vector type.
18042 (power7_cost): New basic costs for power7.
18043 (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
18044 (rs6000_hard_regno_nregs_internal): New function, moved from
18045 HARD_REGNO_NREGS, to calculate the number of registers each hard
18046 register takes for each type.
18047 (rs6000_debug_reg_print): New function for -mdebug=reg support.
18048 (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
18049 (+rs6000_init_hard_regno_mode_ok): New function, move calculation
18050 of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
18051 unit information here so it is calculated once at compiler startup
18052 time.
18053 (rs6000_override_options): Make -misel a target mask. Add more
18054 power7 target masks. Setup Pmode and POINTER_SIZE. Add initial
18055 VSX support. Add support for -mdebug=reg, -mdebug=addr, and
18056 -mdebug=cost.
18057 (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
18058 (rs6000_handle_option): Move -misel from variable to target mask.
18059 (rs6000_builtin_mask_for_load): Add VSX support.
18060 (rs6000_conditional_register_usage): Ditto.
18061 (USE_ALTIVEC_FOR_ARG_P): Ditto.
18062 (function_arg_boundary): Ditto.
18063 (rs6000_expand_builtin): Ditto.
18064 (def_builtin): Make abort message a little friendlier.
18065 (rs6000_emit_int_cmove): Add support for 64-bit isel.
18066
18067 * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
18068 assembler support the popcntd instruction instead of a vsx
18069 instruction to enable power7 support.
18070 (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
18071 (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
18072 option to the assembler if -mcpu=native.
18073 (ASM_CPU_NATIVE_SPEC): Ditto.
18074 (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
18075 ISA 2.06 features.
18076 (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
18077 the lwsync instruction.
18078 (enum processor_type): Add PROCESSOR_POWER7.
18079 (rs6000_debug_reg): New -mdebug= options.
18080 (rs6000_debug_addr): Ditto.
18081 (rs6000_debug_cost): Ditto.
18082 (rs6000_isel): Delete.
18083 (enum rs6000_vector): New enum to say what vector unit we have.
18084 (VECTOR_UNIT_*): New macros to say which vector unit has
18085 arithmetic operations for a given type.
18086 (VECTOR_MEM_*): New macros to say which vector unit has memory
18087 operations for a given type.
18088 (TARGET_LDBRX): Whether the machine supports the ldbrx
18089 instruction.
18090 (TARGET_ISEL): Delete, -misel moved to be a mask.
18091 (TARGET_ISEL64): New macro for 64-bit isel support.
18092 (UNITS_PER_VSX_WORD): New macro.
18093 (POINTER_SIZE): Move to be an external variable, rather than
18094 calculating whether we are generating 32 ot 64-bit code.
18095 (Pmode): Ditto.
18096 (STACK_BOUNDARY): Add VSX support.
18097 (LOCAL_ALIGNMENT): Ditto.
18098 (SLOW_UNALIGNED_ACCESS): Ditto.
18099 (VSX_REGNO_P): New macro for VSX support.
18100 (VFLOAT_REGNO_P): Ditto.
18101 (VINT_REGNO_P): Ditto.
18102 (VLOGICAL_REGNO_P): Ditto.
18103 (VSX_VECTOR_MODE): Ditto.
18104 (VSX_SCALAR_MODE): Ditto.
18105 (VSX_MODE): Ditto.
18106 (VSX_MOVE_MODE): Ditto.
18107 (VSX_REG_CLASS_P): Ditto.
18108 (HARD_REGNO_NREGS): Instead of calling a function, use an array
18109 lookup.
18110 (UNITS_PER_SIMD_WORD): Add VSX support.
18111 (MODES_TIEABLE_P): Ditto.
18112 (STARTING_FRAME_OFFSET): Ditto.
18113 (STACK_DYNAMIC_OFFSET): Ditto.
18114 (EPILOGUE_USES): Ditto.
18115 (REGNO_REG_CLASS): Move to array lookup.
18116 (CLASS_MAX_NREGS): Ditto.
18117 (rs6000_vector_reg_class): Add declaration.
18118 (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
18119 overlap with the floating point and Altivec registers.
18120
18121 * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
18122
18123 * config/rs6000/driver-rs6000.c (asm_names): New static array to
18124 give the appropriate asm switches if -mcpu=native.
18125 (host_detect_local_cpu): Add support for "asm".
18126 (host_detect_local_cpu): Follow GNU code guidelines for name.
18127
18128 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
18129 -mbit-word to a variable instead of being a target mask.
18130
18131 * config/rs6000/sync.md (lwsync): If the assembler supports it,
18132 emit the lwsync instruction instead of emitting the instruction as
18133 an integer constant.
18134
18135 * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
18136 fixuns_trundfsi2, move expander into rs6000.md.
18137
18138 * config/rs6000/rs6000.md (cpu): Add power7.
18139 (sel, *ptrsize): New mode attributes for 32/64-bit isel.
18140 (logical predicate patterns): Change the single instruction
18141 primitives that set CR0 to be fast_compare instead of compare.
18142 (norsi*): Ditto.
18143 (popcntwsi2): Add support for ISA 2.06 popcount instructions.
18144 (popcntddi2): Ditto.
18145 (popcount<mode>): Ditto.
18146 (floating multiply/add insns): Name the floating point
18147 multiply/add insns.
18148 (isel_signed_<mode>): Add support for -misel on 64-bit systems.
18149 (isel_unsigned_<mode>): Ditto.
18150 (fixuns_trundfsi2): Move expander here from spe.md.
18151 (smindi3): Define if we have -misel on 64-bit systems.
18152 (smaxdi3): Ditto.
18153 (umindi3): Ditto.
18154 (umaxdi3): Ditto.
18155
18156 2009-06-23 Anatoly Sokolov <aesok@post.ru>
18157
18158 * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
18159 extra_objs.
18160 * config/avr/avr.c (avr_current_device): New variable.
18161 (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
18162 (avr_arch, mcu_type_s): Move to avr.h.
18163 * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
18164 default_data_section_start fields.
18165 (avr_arch): Moved from avr.c.
18166 (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
18167 library_name fields.
18168 (avr_current_device, avr_mcu_types, avr_arch_types,
18169 avr_device_to_arch, avr_device_to_data_start,
18170 avr_device_to_startfiles, avr_device_to_devicelib): Declare.
18171 (EXTRA_SPEC_FUNCTIONS): Define.
18172 (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
18173 options mapping. Use device_to_arch and device_to_data_start insted.
18174 (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
18175 (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
18176 * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
18177 * config/avr/driver-avr.c: New file.
18178 * config/avr/avr-devices.c: New file.
18179
18180 2009-06-23 Jakub Jelinek <jakub@redhat.com>
18181
18182 * var-tracking.c (unshare_variable): Force initialized to
18183 be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
18184 (set_variable_part): Likewise.
18185 (struct variable_union_info): Remove pos_src field.
18186 (vui_vec, vui_allocated): New variables.
18187 (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
18188 unconditionally. Avoid XCVECNEW/free for every sorting, for dst_l
18189 == 1 use a simpler sorting algorithm. Compute pos field right
18190 away, don't fill in pos_src. For dst_l == 2 avoid qsort.
18191 Avoid quadratic comparison if !flag_var_tracking_uninit.
18192 (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
18193 unshare_variable unconditionally.
18194 (dataflow_set_different_2): Removed.
18195 (dataflow_set_different): Don't traverse second hash table.
18196 (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
18197 unconditionally to var_reg_set or var_mem_set.
18198 (emit_notes_in_bb): Likewise.
18199 (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
18200 unshare_variable.
18201 (emit_note_insn_var_location): Don't set initialized to
18202 VAR_INIT_STATUS_INITIALIZED early.
18203 (vt_finalize): Free vui_vec if needed, clear vui_vec and
18204 vui_allocated.
18205 * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
18206
18207 * tree-object-size.c (addr_object_size): Instead of checking
18208 for non-NULL TREE_CHAIN of the FIELD_DECL check that there
18209 are no FIELD_DECLs following it.
18210
18211 2009-06-23 Andreas Krebbel <krebbel1@de.ibm.com>
18212
18213 * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
18214 order to match bswaps with signed source operands.
18215
18216 2009-06-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
18217
18218 * sdbout.c (sdbout_one_type): Fix braces in switch.
18219
18220 2009-06-23 Richard Guenther <rguenther@suse.de>
18221
18222 * tree-ssa-structalias.c (struct variable_info): Add is_global_var
18223 member.
18224 (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
18225 readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
18226 var_callused, callused_tree, var_storedanything, storedanything_tree,
18227 var_integer, integer_tree): Remove global variables.
18228 (new_var_info): Do not pass new id, append the new var to the
18229 global variable vector.
18230 (do_ds_constraint): Use is_global_var member of the variable-info.
18231 (new_scalar_tmp_constraint_exp): Adjust.
18232 (create_function_info_for): Likewise.
18233 (create_variable_info_for): Likewise.
18234 (find_what_var_points_to): Remove dead code.
18235 (init_base_vars): Simplify.
18236 (compute_points_to_sets): Adjust.
18237
18238 2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
18239
18240 * combine.c (try_combine): Dump information about the insns we're
18241 combining.
18242
18243 2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
18244
18245 * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
18246 check when calling force_to_mode on TRUNCATE's operand.
18247
18248 2009-06-22 Ian Lance Taylor <iant@google.com>
18249
18250 * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
18251
18252 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
18253
18254 * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
18255
18256 2009-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18257
18258 * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
18259 override library linkage flags such as -static-libgcc or
18260 -shared-libgcc.
18261
18262 2009-06-22 Maxim Kuvyrkov <maxim@codesourcery.com>
18263
18264 * config/m68k/m68k-devices.def: Add line for MCF5221x.
18265
18266 2009-06-22 Ian Lance Taylor <iant@google.com>
18267
18268 * config/linux.opt: Put mglibc ahead of muclibc.
18269
18270 * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
18271 for duplicate decls.
18272
18273 2009-06-22 Matthias Klose <doko@ubuntu.com>
18274
18275 * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
18276
18277 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
18278
18279 PR objc/28050
18280 * c-parser.c (c_parser_objc_message_args): Return error_mark_node
18281 instead of NULL if a parser error occurs.
18282
18283 2009-06-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
18284
18285 * dwarf2out.c (dwarf2_debug_hooks): Initialize
18286 non-DWARF2_DEBUGGING_INFO version.
18287
18288 2009-06-22 Kai Tietz <kai.tietz@onevision.com>
18289
18290 * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
18291 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
18292
18293 * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
18294 (LIBGCC2_TF_CEXT): Define.
18295 (TF_SIZE): Define.
18296
18297 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18298
18299 PR target/40463
18300 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
18301
18302 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18303
18304 * config/arm/arm.c (arm_override_options): Disable
18305 -mcaller-super-interworking and -mcallee-super-interworking.
18306 * doc/invoke.texi (ARM Options): Document this.
18307
18308 2009-06-22 Nathan Sidwell <nathan@codesourcery.com>
18309
18310 * config/arm/arm.c (arm_print_operand): Deal with HIGH.
18311 * config/arm/constraints.md (j): New constraint for movw operands.
18312 (N): Remove thumb2 meaning.
18313 * config/arm/arm.md (*arm_movw): Delete.
18314 (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
18315 * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
18316 * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
18317
18318 2009-06-22 Martin Jambor <mjambor@suse.cz>
18319
18320 PR tree-optimization/40492
18321 * tree-sra.c (sra_modify_assign): Pass zero offsets to
18322 build_ref_for_offset.
18323
18324 2009-06-22 Shujing Zhao <pearly.zhao@oracle.com>
18325
18326 * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
18327 JUMP_TABLE_DATA_P predicates where applicable.
18328 * auto-inc-dec.c: Ditto.
18329 * builtins.c: Ditto.
18330 * caller-save.c: Ditto.
18331 * calls.c: Ditto.
18332 * cfgcleanup.c: Ditto.
18333 * cfglayout.c: Ditto.
18334 * cfgrtl.c: Ditto.
18335 * combine.c: Ditto.
18336 * combine-stack-adj.c: Ditto.
18337 * cse.c: Ditto.
18338 * cselib.c: Ditto.
18339 * dbxout.c: Ditto.
18340 * df-scan.c: Ditto.
18341 * dse.c: Ditto.
18342 * dwarf2asm.c: Ditto.
18343 * dwarf2out.c: Ditto.
18344 * emit-rtl.c: Ditto.
18345 * except.c: Ditto.
18346 * explow.c: Ditto.
18347 * expmed.c: Ditto.
18348 * expr.c: Ditto.
18349 * final.c: Ditto.
18350 * function.c: Ditto.
18351 * fwprop.c: Ditto.
18352 * gcse.c: Ditto.
18353 * genpreds.c: Ditto.
18354 * genrecog.c: Ditto.
18355 * ifcvt.c: Ditto.
18356 * ira-costs.c: Ditto.
18357 * ira-lives.c: Ditto.
18358 * jump.c: Ditto.
18359 * loop-iv.c: Ditto.
18360 * lower-subreg.c: Ditto.
18361 * modulo-sched.c: Ditto.
18362 * optabs.c: Ditto.
18363 * postreload.c: Ditto.
18364 * print-rtl.c: Ditto.
18365 * recog.c: Ditto.
18366 * reginfo.c: Ditto.
18367 * regmove.c: Ditto.
18368 * reload1.c: Ditto.
18369 * reload.c: Ditto.
18370 * reorg.c: Ditto.
18371 * rtlanal.c: Ditto.
18372 * rtl.c: Ditto.
18373 * sched-vis.c: Ditto.
18374 * sdbout.c: Ditto.
18375 * sel-sched-ir.c: Ditto.
18376 * simplify-rtx.c: Ditto.
18377 * targhooks.c: Ditto.
18378 * var-tracking.c: Ditto.
18379 * vmsdbgout.c: Ditto.
18380
18381 2009-06-22 Matthias Klose <doko@ubuntu.com>
18382
18383 * Makefile.in (install-plugin): Always use DESTDIR.
18384
18385 2009-06-22 Olivier Hainque <hainque@adacore.com>
18386
18387 * config/pa/pa.c (output_call): Don't optimize post call jumps
18388 into return address adjustments if the call may throw.
18389
18390 2009-06-21 Richard Earnshaw <rearnsha@arm.com>
18391
18392 * arm.c (thumb1_output_casesi): New function.
18393 * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
18394 optimizing for size or PIC.
18395 (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
18396 * arm.md (UNSPEC_THUMB1_CASESI): New constant.
18397 (casesi): Handle Thumb-1 when optimizing for size or PIC.
18398 (thumb1_casesi_internal_pic): New expand rule.
18399 (thumb1_casesi_dispatch): New pattern.
18400 * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
18401 thumb-1 mode.
18402 * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
18403 in the text seciton when PIC or optimizing for size.
18404 * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
18405 * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
18406 preservation properties of code.
18407 (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
18408 (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
18409 (__gnu_thumb1_case_si): New function.
18410 * t-arm (LIB1ASMSRC): Define here.
18411 (LIB1ASMFUNCS): Add some common functions.
18412 * t-arm-elf (LIB1ASMSRC): Delete.
18413 (LIB1ASMFUNCS): Append to existing set.
18414 * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
18415 * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
18416 * t-symbian (LIB1ASMFUNCS): Likewise.
18417 * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
18418 * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
18419
18420 2009-06-21 Richard Guenther <rguenther@suse.de>
18421
18422 PR tree-optimization/38729
18423 * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
18424 to loops with a single exit if -fno-expensive-optimizations.
18425
18426 2009-06-21 Jakub Jelinek <jakub@redhat.com>
18427
18428 * var-tracking.c (struct shared_hash_def, shared_hash): New types.
18429 (dataflow_set): Change vars type from htab_t to shared_hash.
18430 (shared_hash_pool, empty_shared_hash): New variables.
18431 (vars_clear): Removed.
18432 (shared_hash_shared, shared_hash_htab, shared_hash_copy,
18433 shared_hash_find_slot_unshare, shared_hash_find_slot,
18434 shared_hash_find_slot_noinsert, shared_hash_find): New
18435 static inlines.
18436 (shared_hash_unshare, shared_hash_destroy): New functions.
18437 (unshare_variable): Unshare set->vars if shared, use
18438 shared_hash_htab.
18439 (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
18440 (get_init_value, find_src_set_src, dump_dataflow_set,
18441 clobber_variable_part, emit_notes_for_differences): Use
18442 shared_hash_htab.
18443 (dataflow_set_init): Remove second argument, set vars to
18444 empty_shared_hash instead of creating a new htab.
18445 (dataflow_set_clear): Call shared_hash_destroy and set vars
18446 to empty_shared_hash instead of calling vars_clear.
18447 (dataflow_set_copy): Don't call vars_copy, instead just share
18448 the src htab with dst.
18449 (variable_union): Use shared_hash_*, use initially NO_INSERT
18450 lookup if set->vars is shared. Don't keep slot cleared before
18451 calling unshare_variable. Unshare set->vars if needed.
18452 Even ->refcount == 1 vars must be unshared if set->vars is shared
18453 and var needs to be modified.
18454 (variable_canonicalize): New function.
18455 (dataflow_set_union): If dst->vars is empty, just share src->vars
18456 with dst->vars and traverse with variable_canonicalize to canonicalize
18457 and unshare what is needed.
18458 (dataflow_set_different): If old_set and new_set use the same shared
18459 htab, they aren't different. If number of htab elements is different,
18460 htabs are different. Use shared_hash_*.
18461 (dataflow_set_destroy): Call shared_hash_destroy instead of
18462 htab_delete.
18463 (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
18464 second argument to dataflow_set_init.
18465 (vt_initialize): Likewise. Initialize shared_hash_pool and
18466 empty_shared_hash, move bb in/out initialization afterwards.
18467 Use variable_htab_free instead of NULL as changed_variables del hook.
18468 (variable_was_changed): Change type of second argument to pointer to
18469 dataflow_set. When inserting var into changed_variables, bump
18470 refcount. Unshare set->vars if set is shared htab and slot needs to
18471 be cleared.
18472 (set_variable_part): Use shared_hash_*, use initially NO_INSERT
18473 lookup if set->vars is shared. Unshare set->vars if needed.
18474 Even ->refcount == 1 vars must be unshared if set->vars is shared
18475 and var needs to be modified. Adjust variable_was_changed caller.
18476 (delete_variable_part): Use shared_hash_*. Even ->refcount == 1
18477 vars must be unshared if set->vars is shared and var needs to be
18478 modified. Adjust variable_was_changed caller.
18479 (emit_note_insn_var_location): Don't pool_free var.
18480 (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
18481 instead of 1.
18482 (vt_finalize): Call htab_delete on empty_shared_hash->htab and
18483 free_alloc_pool on shared_hash_pool.
18484
18485 2009-06-20 Anthony Green <green@moxielogic.com>
18486
18487 * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
18488 * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
18489
18490 2009-06-20 Richard Guenther <rguenther@suse.de>
18491
18492 * tree-ssa-structalias.c (find_func_aliases): For memset use
18493 a constraint from NULL if we memset to zero.
18494 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
18495 we explicitly handle that do not read from memory.
18496 (call_may_clobber_ref_p_1): Properly handle builtins that may
18497 set errno.
18498
18499 2009-06-20 Richard Guenther <rguenther@suse.de>
18500
18501 PR tree-optimization/40495
18502 * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
18503 (new_scalar_tmp_constraint_exp): New function.
18504 (process_constraint): Do not create temporary decls.
18505 (process_all_all_constraints): Likewise.
18506 (handle_const_call): Likewise.
18507 (create_function_info_for): Do not set decl.
18508
18509 2009-06-19 Ian Lance Taylor <iant@google.com>
18510
18511 * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
18512 (rs6000_attribute_table): Make static; move before use.
18513
18514 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
18515
18516 * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
18517 <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
18518 Propagate the TREE_READONLY flag without overwriting it.
18519 (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
18520 Propagate the TREE_READONLY flag onto the result.
18521 (process_call_operands): Move around. Use correct constant value.
18522
18523 2009-06-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18524
18525 PR target/40482
18526 * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
18527 * config/arm/arm.md: Likewise.
18528
18529 2009-06-19 Ian Lance Taylor <iant@google.com>
18530
18531 * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
18532 to GIMPLE_ERROR_MARK.
18533
18534 * c-typeck.c (build_conditional_expr): Add op1_original_type and
18535 op2_original_type parameters. Warn about using different enum types.
18536 * c-parser.c (c_parser_conditional_expression): Pass original
18537 types to build_conditional_expr.
18538 * c-tree.h (build_conditional_expr): Update declaration.
18539
18540 2009-06-19 Ian Lance Taylor <iant@google.com>
18541
18542 * config/i386/i386.c (ix86_function_specific_save): Test that
18543 fields match values, rather than testing the values are in a
18544 certain range.
18545
18546 2009-06-19 Richard Guenther <rguenther@suse.de>
18547
18548 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
18549 ADDR_EXPR pointers.
18550 (ptr_derefs_may_alias_p): Likewise.
18551 (ptr_deref_may_alias_ref_p_1): New function.
18552 (ptr_deref_may_alias_ref_p): Likewise.
18553 (ref_maybe_used_by_call_p_1): Handle builtins that are not
18554 covered by looking at the ESCAPED solution.
18555 (call_may_clobber_ref_p_1): Likewise.
18556 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
18557 Handle NULL_TREE offset. Do not produce redundant constraints.
18558 (process_all_all_constraints): New helper function.
18559 (do_structure_copy): Use it.
18560 (handle_lhs_call): Likewise.
18561 (find_func_aliases): Handle some builtins with pointer arguments
18562 and/or return values explicitly.
18563
18564 2009-06-19 Ian Lance Taylor <iant@google.com>
18565
18566 * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
18567
18568 2009-06-19 Ian Lance Taylor <iant@google.com>
18569
18570 * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
18571
18572 2009-06-19 Ian Lance Taylor <iant@google.com>
18573
18574 * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
18575 * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
18576 version.
18577
18578 * c-decl.c (finish_decl): If -Wc++-compat, warn about
18579 uninitialized const.
18580
18581 2009-06-19 Ian Lance Taylor <iant@google.com>
18582
18583 * dse.c (struct store_info): Rename bitmap field to bmap. Change
18584 all uses.
18585
18586 * c-decl.c (in_struct, struct_types): Remove.
18587 (struct c_binding): Add in_struct field.
18588 (c_binding_ptr): Define type, along with VEC.
18589 (struct c_struct_parse_info): Define.
18590 (struct_parse_info): New static variable.
18591 (bind): Initialize in_struct field.
18592 (start_struct): Remove enclosing_in_struct and
18593 enclosing_struct_types parameters. Add
18594 enclosing_struct_parse_info parameter. Change all callers. Set
18595 struct_parse_info rather than in_struct and struct_types.
18596 (grokfield): If -Wc++-compat and there is a symbol binding for the
18597 field name, set the in_struct flag and push it on the
18598 struct_parse_info->fields vector.
18599 (warn_cxx_compat_finish_struct): New static function.
18600 (finish_struct): Remove enclosing_in_struct and
18601 enclosing_struct_types parameters. Add
18602 enclosing_struct_parse_info parameter. Change all callers. Don't
18603 set C_TYPE_DEFINED_IN_STRUCT here. Call
18604 warn_cxx_compat_finish_struct. Free struct_parse_info and set to
18605 parameter. Only push on struct_types if warn_cxx_compat.
18606 (finish_enum): Only push on struct_types if warn_cxx_compat.
18607 (declspecs_add_type): Add loc parameter. Change all callers.
18608 Change all error calls to error_at. Pass loc, not input_location,
18609 to pedwarn calls. Warn if -Wc++-compat and a typedef name is
18610 defined in a struct. If -Wc++-compat and parsing a struct, record
18611 that a typedef name was used.
18612 * c-parser.c (c_parser_declspecs): Get location to pass to
18613 declspecs_add_type.
18614 (c_parser_struct_or_union_specifier): Update calls to start_struct
18615 and finish_struct.
18616 * c-tree.h (struct c_struct_parse_info): Declare.
18617 (finish_struct, start_struct): Update declarations.
18618 (declspecs_add_type): Update declaration.
18619
18620 2009-06-19 Ian Lance Taylor <iant@google.com>
18621
18622 * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
18623 variable with an anonymous type.
18624
18625 2009-06-19 Uros Bizjak <ubizjak@gmail.com>
18626
18627 * see.c: Remove for real.
18628
18629 2009-06-19 Uros Bizjak <ubizjak@gmail.com>
18630
18631 * optabs.h (enum optab_index): Add new OTI_significand.
18632 (significand_optab): Define corresponding macro.
18633 * optabs.c (init_optabs): Initialize significand_optab.
18634 * genopinit.c (optabs): Implement significand_optab using
18635 significand?f2 patterns.
18636 * builtins.c (expand_builtin_mathfn): Handle
18637 BUILT_IN_SIGNIFICAND{,F,L}.
18638 (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
18639 expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
18640
18641 * config/i386/i386.md (significandxf2, significand<mode>2): New
18642 expanders to implement significandf, significand and significandl
18643 built-ins as inline x87 intrinsics.
18644
18645 2009-06-18 Anatoly Sokolov <aesok@post.ru>
18646
18647 * config/avr/avr.c (avr_override_options): Remove setting value of
18648 PARAM_INLINE_CALL_COST.
18649
18650 2009-06-18 Richard Henderson <rth@redhat.com>
18651
18652 PR 40488
18653 * tree-pass.h (TDF_ASMNAME): New.
18654 * tree-dump.c (dump_options): Add asmname.
18655 * doc/invoke.texi: Document it.
18656
18657 * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
18658 (dump_decl_name): ...here.
18659 (dump_function_name): New flags arg; mind TDF_ASMNAME.
18660 (dump_generic_node): Update dump_function_name calls.
18661 (print_call_name): New flags arg; update all dump calls.
18662 * diagnostic.h (print_call_name): Update.
18663 * gimple-pretty-print.c (dump_gimple_call): Update.
18664
18665 2009-06-18 H.J. Lu <hongjiu.lu@intel.com>
18666
18667 PR target/40470
18668 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
18669
18670 2009-06-18 Diego Novillo <dnovillo@google.com>
18671
18672 * doc/plugins.texi: Document plugin_is_GPL_compatible.
18673 * plugin.c (str_license): Declare.
18674 (try_init_one_plugin): Assert that the symbol
18675 'plugin_is_GPL_compatible' exists.
18676
18677 2009-06-18 Sergei Dyshel <sergeid@il.ibm.com>
18678
18679 * see.c: Remove.
18680 * Makefile.in (OBJS-common): Remove see.o.
18681 (see.o): Remove.
18682 * common.opt (fsee): Mark as preserved for backward compatibility.
18683 * opts.c (common_handle_option): Add OPT_fsee to the backward
18684 compatibility section.
18685 * passes.c (init_optimization_passes, pass_see): Remove pass.
18686 * timevar.def (TV_SEE): Remove.
18687 * tree-pass.h (pass_see): Remove declaration.
18688 * doc/invoke.texi (-fsee): Remove documentation.
18689
18690 2009-06-18 Martin Jambor <mjambor@suse.cz>
18691
18692 * tree-sra.c: Include statistics.h
18693 (sra_stats): New variable.
18694 (sra_initialize): Clear sra_stats.
18695 (create_access_replacement): Increment sra_stats.replacements.
18696 (get_access_replacement): Do not return twice.
18697 (analyze_all_variable_accesses): Increment statistics counter by the
18698 number of scalarized aggregates.
18699 (generate_subtree_copies): Increment sra_stats.subtree_copies.
18700 (sra_modify_expr): Increment sra_stats.exprs.
18701 (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
18702 (sra_modify_assign): Increment sra_stats.exprs,
18703 sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
18704 (perform_intra_sra): Update statistics counters.
18705 * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
18706
18707 2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
18708
18709 * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
18710 (arm_scalar_mode_supported_p): New function.
18711
18712 2009-06-18 Paul Brook <paul@codesourcery.com>
18713 Sandra Loosemore <sandra@codesourcery.com>
18714
18715 * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
18716 (__extendhfsf2, __truncsfhf2): Define.
18717 * config/arm/fp16.c: New file.
18718 * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
18719 * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
18720
18721 2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
18722
18723 * doc/extend.texi (Half-Precision): New section.
18724 * doc/invoke.texi (Option Summary): List -mfp16-format.
18725 (ARM Options): List neon-fp16 as -mfpu value. Document -mfp16-format.
18726 * config/arm/arm.opt (mfp16-format=): New.
18727 * config/arm/arm.c: Include intl.h.
18728 (TARGET_INVALID_PARAMETER_TYPE): Redefine.
18729 (TARGET_INVALID_RETURN_TYPE): Redefine.
18730 (TARGET_PROMOTED_TYPE): Redefine.
18731 (TARGET_CONVERT_TO_TYPE): Redefine.
18732 (arm_fp16_format): Define.
18733 (all_fpus): Add entry for neon-fp16.
18734 (fp_model_for_fpu): Likewise.
18735 (struct fp16_format): Declare.
18736 (all_fp16_formats): Define.
18737 (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
18738 functions.
18739 (arm_override_options): Set arm_fp16_format. Call sorry for fp16
18740 and no ldrh.
18741 (arm_legitimate_index_p): Treat HFmode like HImode.
18742 (thumb1_legitimate_address_p): Make it recognize HFmode constants.
18743 (coproc_secondary_reload_class): Special-case HFmode.
18744 (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
18745 (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
18746 (arm_init_fp16_builtins): New.
18747 (arm_init_builtins): Call it.
18748 (arm_invalid_parameter_type): New.
18749 (arm_invalid_return_type): New.
18750 (arm_promoted_type): New.
18751 (arm_convert_to_type).
18752 (arm_file_start): Deal with neon-fp16 as fpu_name. Emit tag for fp16
18753 format.
18754 (arm_emit_fp16_const): New function.
18755 (arm_mangle_type): Mangle __fp16 as "Dh".
18756 * config/arm/arm.h (TARGET_VFPD32): Make it know about
18757 FPUTYPE_NEON_FP16.
18758 (TARGET_NEON_FP16): New.
18759 (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
18760 (enum fputype): Add FPUTYPE_NEON_FP16.
18761 (enum arm_fp16_format_type): Declare.
18762 (arm_fp16_format): Declare.
18763 (LARGEST_EXPONENT_IS_NORMAL): Define.
18764 * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
18765 * config/arm/arm-modes.def (HFmode): Define.
18766 * config/arm/vfp.md (*movhf_vfp): New.
18767 (extendhfsf2): New.
18768 (truncsfhf2): New.
18769 * config/arm/arm.md (fpu): Add neon_fp16.
18770 (floatsihf2, floatdihf2): New.
18771 (fix_trunchfsi2, fix_trunchfdi2): New.
18772 (truncdfhf2): New.
18773 (extendhfdf2): New.
18774 (movhf): New.
18775 (*arm32_movhf): New.
18776 (*thumb1_movhf): New.
18777 (consttable_2): Add check for HFmode constants.
18778 (consttable_4): Handle HFmode constants.
18779
18780 2009-06-18 Uros Bizjak <ubizjak@gmail.com>
18781
18782 * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
18783
18784 2009-06-17 Olivier Hainque <hainque@adacore.com>
18785
18786 * collect2.c (main): Use CONST_CAST2 to perform char ** to
18787 const char ** conversion in AIX specific section.
18788
18789 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
18790
18791 * config/i386/i386.c (ix86_special_builtin_type): Remove
18792 UINT64_FTYPE_PINT. Add UINT64_FTYPE_PUNSIGNED.
18793 (bdesc_special_args): Updated.
18794 (ix86_init_mmx_sse_builtins): Likewise.
18795 (ix86_expand_special_args_builtin): Likewise.
18796
18797 2009-06-17 Richard Henderson <rth@redhat.com>
18798
18799 * tree-pretty-print.c (maybe_dump_asm_name): New.
18800 (dump_decl_name): Use it.
18801 (PRINT_FUNCTION_NAME): Merge into...
18802 (dump_function_name): ... here. Use maybe_dump_asm_name.
18803
18804 2009-06-17 Cary Coutant <ccoutant@google.com>
18805
18806 * dbxout.c (dbxout_source_line): Add is_stmt parameter.
18807 Change caller.
18808 * debug.c (struct gcc_debug_hooks): Change placeholder for
18809 source_line hook.
18810 (debug_nothing_int_charstar_int): Replaced by...
18811 (debug_nothing_int_charstar_int_bool): ...this.
18812 * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
18813 source_line prototype.
18814 (debug_nothing_int_charstar_int): Replaced by...
18815 (debug_nothing_int_charstar_int_bool): ...this.
18816 * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
18817 * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
18818 Output is_stmt operand when necessary.
18819 * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
18820 (notice_source_line): Add is_stmt parameter.
18821 * sdbout.c (sdbout_source_line): Add is_stmt parameter.
18822 * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
18823 Change callers.
18824 * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
18825 * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
18826
18827 2009-06-17 Ian Lance Taylor <iant@google.com>
18828
18829 * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
18830 Change all uses.
18831 (struct store_by_pieces_d): Rename from store_by_pieces. Change
18832 call uses.
18833
18834 2009-06-17 Adam Nemet <anemet@caviumnetworks.com>
18835
18836 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
18837 STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
18838 tree_strip_sign_nop_conversions and
18839 tree_ssa_strip_useless_type_conversions rather than stripping
18840 the operations here.
18841 (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
18842 Declare them.
18843 * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
18844 * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
18845 * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
18846 tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
18847 functions.
18848
18849 2009-06-17 Michael Eager <eager@eagercon.com>
18850
18851 * config/rs6000/constraints.md (register_constraint "d"): New.
18852 * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
18853 truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
18854 *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
18855 *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
18856 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
18857 divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
18858 fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
18859 * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
18860 __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
18861 __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
18862 __fctiwz): Same.
18863 * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
18864 *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
18865 *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
18866 *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
18867 *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
18868 fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
18869 stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
18870 *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
18871 *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
18872 trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
18873 *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
18874 *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
18875 *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
18876 * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
18877
18878 2009-06-16 Ian Lance Taylor <iant@google.com>
18879
18880 * profile.c (total_num_never_executed): Don't define.
18881 (compute_branch_probabilities): Don't count or print
18882 num_never_executed.
18883 (init_branch_prob): Don't set total_num_never_executed.
18884 (end_branch_prob): Don't print total_num_never_executed.
18885
18886 2009-06-17 David Daney <ddaney@caviumnetworks.com>
18887
18888 * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
18889
18890 2009-06-17 David Edelsohn <edelsohn@gnu.org>
18891
18892 * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
18893 (nabstd2_fpr): Same.
18894
18895 2009-06-17 Steve Ellcey <sje@cup.hp.com>
18896
18897 * expr.c (expand_assignment): Change complex type check.
18898
18899 2009-06-17 Basile Starynkevitch <basile@starynkevitch.net>
18900
18901 * doc/plugins.texi (Building GCC plugins): Added new section.
18902
18903 2009-06-17 Ian Lance Taylor <iant@google.com>
18904
18905 * c-pch.c (get_ident): Don't set size of templ array.
18906 (pch_init): Don't set size of partial_pch array.
18907
18908 * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
18909 string constant to intialize an array whose size is the length of
18910 the string.
18911
18912 2009-06-17 Richard Guenther <rguenther@suse.de>
18913
18914 PR tree-optimization/40389
18915 * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
18916 to addressable types.
18917 * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
18918
18919 2009-06-17 Richard Guenther <rguenther@suse.de>
18920
18921 PR middle-end/40460
18922 * tree-chrec.h (build_polynomial_chrec): If we cannot determine
18923 if there is no evolution of left in the loop bail out.
18924 * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
18925 chrec_fold_multiply.
18926
18927 2009-06-16 J"orn Rennecke <joern.rennecke@arc.com>
18928 Janis Johnson <janis187@us.ibm.com>
18929
18930 PR target/39254
18931 * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
18932 for the symbol ref of a constant that is the source of a move
18933 - nor for any other not-obvious-label-ref constants.
18934
18935 2009-06-16 Olatunji Ruwase <tjruwase@google.com>
18936
18937 * plugin.c (position_pass): Skip newly inserted pass during list
18938 traversal to avoid repeated insertion.
18939
18940 2009-06-16 Ian Lance Taylor <iant@google.com>
18941
18942 * vec.h (VEC_stack_alloc): Define different version if
18943 GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
18944 (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
18945 (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
18946 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
18947
18948 2009-06-16 H.J. Lu <hongjiu.lu@intel.com>
18949
18950 * config.gcc (extra_headers): Add ia32intrin.h for x86.
18951
18952 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
18953 IX86_BUILTIN_BSRDI. IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
18954 IX86_BUILTIN_RDTSCP. IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
18955 IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
18956 (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
18957 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
18958 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
18959 (bdesc_special_args): Add __builtin_ia32_rdtsc and
18960 __builtin_ia32_rdtscp.
18961 (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
18962 __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
18963 and __builtin_ia32_rorhi.
18964 (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
18965 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
18966 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
18967 (ix86_expand_args_builtin): Likewise.
18968 (ix86_expand_special_args_builtin): Likewise.
18969
18970 * config/i386/i386.md (UNSPECV_RDTSCP): New.
18971 (UNSPECV_RDTSC): Likewise.
18972 (UNSPECV_RDPMC): Likewise.
18973 (*bsr): Renamed to ...
18974 (bsr): This
18975 (*bsr_rex64): Renamed to ...
18976 (bsr_rex64): This.
18977 (rdpmc): New.
18978 (*rdpmc): Likewise.
18979 (*rdpmc_rex64): Likewise.
18980 (rdtsc): Likewise.
18981 (*rdtsc): Likewise.
18982 (*rdtsc_rex64): Likewise.
18983 (rdtscp): Likewise.
18984 (*rdtscp): Likewise.
18985 (*rdtscp_rex64): Likewise.
18986
18987 * config/i386/ia32intrin.h: New.
18988
18989 * config/i386/x86intrin.h: Include <ia32intrin.h>.
18990
18991 2009-06-16 Ian Lance Taylor <iant@google.com>
18992
18993 * ira-build.c (copy_info_to_removed_store_destinations):
18994 Initialize parent_a.
18995
18996 2009-06-16 Ian Lance Taylor <iant@google.com>
18997
18998 * c-decl.c (grokdeclarator): Change size_varies to bool.
18999
19000 2009-06-16 Ian Lance Taylor <iant@google.com>
19001
19002 * sel-sched.c: Make forward declarations of move_op_hooks and
19003 fur_hooks explicitly extern.
19004
19005 2009-06-16 Ian Lance Taylor <iant@google.com>
19006
19007 * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
19008 * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
19009
19010 2009-06-16 Ian Lance Taylor <iant@google.com>
19011
19012 * resource.c (mark_referenced_resources): Change
19013 include_delayed_effects parameter to bool. Change all callers.
19014 (mark_end_of_function_resources): Likewise.
19015 * reorg.c (insn_references_resource_p): Likewise.
19016 (insn_sets_resource_p): Likewise.
19017 * resource.h (mark_referenced_resources): Update declaration.
19018 (mark_end_of_function_resources): Update declaration.
19019
19020 2009-06-16 David Edelsohn <edelsohn@gnu.org>
19021
19022 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
19023
19024 2009-06-16 David Edelsohn <edelsohn@gnu.org>
19025
19026 * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
19027 GCC can bootstrap on AIX with GNU Binutils 2.20.
19028
19029 2009-06-16 Ian Lance Taylor <iant@google.com>
19030
19031 * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
19032
19033 2009-06-16 Ian Lance Taylor <iant@google.com>
19034
19035 * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
19036 inline, not extern inline.
19037 (exact_log2): Likewise.
19038 * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
19039 test CLZ_HWI.
19040 (exact_log2): Likewise, but don't test CTZ_HWI.
19041
19042 2009-06-16 Ian Lance Taylor <iant@google.com>
19043
19044 * bitmap.c (bitmap_clear): Don't declare as inline.
19045 * gimple.c (gimplify_assign): Likewise.
19046 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
19047 * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
19048 (sched_scan_info): Remove duplicate definition.
19049
19050 2009-06-16 Ian Lance Taylor <iant@google.com>
19051
19052 * c-common.c (skip_evaluation): Don't define.
19053 (c_inhibit_evaluation_warnings): Define global variable.
19054 (overflow_warning): Check c_inhibit_evaluation_warnings rather
19055 than skip_evaluation.
19056 (convert_and_check, warn_for_div_by_zero): Likewise.
19057 * c-common.h (skip_evaluation): Don't declare.
19058 (c_inhibit_evaluation_warnings): Declare.
19059 * c-parser.c (c_parser_typeof_specifier): Set
19060 c_inhibit_evaluation_warnings rather than skip_evaluation.
19061 (c_parser_conditional_expression): Likewise.
19062 (c_parser_binary_expression): Likewise.
19063 (c_parser_sizeof_expression): Likewise.
19064 (c_parser_alignof_expression): Likewise.
19065 * c-typeck.c (build_indirect_ref): Check
19066 c_inhibit_evaluation_warnings rather than skip_evaluation.
19067 (build_conditional_expr, build_binary_op): Likewise.
19068
19069 2009-06-16 Richard Guenther <rguenther@suse.de>
19070
19071 * tree-ssa-alias.c (is_escape_site): Remove.
19072 * tree-ssa-alias.h (enum escape_type): Remove.
19073 (is_escape_site): Likewise.
19074 * tree-ssa-structalias.c (find_func_aliases): Handle escapes
19075 via casts and asms without deferring to is_escape_site.
19076
19077 2009-06-16 Jakub Jelinek <jakub@redhat.com>
19078
19079 PR middle-end/40446
19080 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
19081 use gen_lowpart if op0 has complex mode.
19082
19083 2009-06-16 Richard Guenther <rguenther@suse.de>
19084
19085 * tree-ssa-structalias.c (do_ds_constraint): Stores in global
19086 variables add them to ESCAPED.
19087 (find_func_aliases): Do not make all indirectly stored values escaped.
19088
19089 2009-06-16 Rafael Avila de Espindola <espindola@google.com>
19090
19091 * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
19092 make_decl_one_only.
19093
19094 2009-06-16 Martin Jambor <mjambor@suse.cz>
19095
19096 PR tree-optimization/40432
19097 * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
19098 check whether we need to force gimple register operand.
19099
19100 2009-06-16 Martin Jambor <mjambor@suse.cz>
19101
19102 PR tree-optimization/40413
19103 * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
19104 build_ref_for_offset.
19105 (propagate_subacesses_accross_link): Fix a typo in a comment.
19106
19107 2009-06-16 Ira Rosen <irar@il.ibm.com>
19108
19109 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
19110 with additional parameter.
19111 * tree-vectorizer.h (enum vect_def_type): Add new value
19112 vect_nested_cycle.
19113 (enum vect_relevant): Add comments.
19114 (vect_is_simple_reduction): Add new argument.
19115 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
19116 Detect nested cycles.
19117 (vect_is_simple_reduction): Update documentation, add an argument to
19118 distinguish inner-loop reduction from nested cycle, detect nested
19119 cycles, fix printings and indentation, don't swap operands in case
19120 of nested cycle.
19121 (get_initial_def_for_reduction): Handle subtraction.
19122 (vect_create_epilog_for_reduction): Add new argument to specify
19123 reduction variable.
19124 (vect_finalize_reduction): Handle subtraction, fix comments.
19125 (vectorizable_reduction): Handle nested cycles. In case of nested
19126 cycle keep track of the reduction variable position. Call
19127 vect_is_simple_reduction with additional parameter. Use original
19128 statement code in reduction epilogue for nested cycle. Call
19129 vect_create_epilog_for_reduction with additional parameter.
19130 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
19131 inner-loop vectorization.
19132 (vect_recog_widen_sum_pattern): Likewise.
19133 * tree-vect-stmts.c (process_use): Distinguish between nested cycles
19134 and reductions.
19135 (vect_mark_stmts_to_be_vectorized): Likewise.
19136 (vect_get_vec_def_for_operand): Handle nested cycles.
19137
19138 2009-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19139
19140 * doc/invoke.texi (Debugging Options): Fix option index entries
19141 for -fdump-statistics, -frandom-seed add entries for
19142 -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
19143 (FRV Options): Fix entries for -mTLS, -mtls.
19144 (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
19145 (i386 and x86-64 Options): Fix entry for -mno-red-zone.
19146 (M68hc1x Options): Fix @itemx for -mnominmax.
19147 (MCore Options): Fix entry for -mno-lsim.
19148 (MMIX Options): Fix entry for -mabi=mmixware.
19149 (PDP-11 Options): Fix entry for -mbcopy-builtin.
19150
19151 2009-06-16 Basile Starynkevitch <basile@starynkevitch.net>
19152
19153 * doc/plugins.texi (Interacting with the GCC Garbage Collector):
19154 Mention the plugin mode of gengtype.
19155 * doc/gty.texi (Source Files Containing Type Information): Likewise.
19156 * gengtype.c: Updated copyright.
19157 (plugin_files, nb_plugin_files) Added new static variables.
19158 (measure_input_list) Care about plugin_files.
19159 (write_rtx_next): Added early return in plugin mode.
19160 (create_file): Updated copyright year in generated file. Added
19161 asserts.
19162 (oprintf): Added early return if NULL outf.
19163 (get_output_file_with_visibility): Care of plugin_files.
19164 (get_output_file_name): May return null.
19165 (write_local): Added early return.
19166 (put_mangled_filename): Ditto.
19167 (finish_root_table): Added check for base_files.
19168 (write_roots): Care about null when plugins.
19169 (main): Added plugin mode.
19170
19171 2009-06-15 Ian Lance Taylor <iant@google.com>
19172
19173 * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
19174 * gcov.c (read_count_file): Add braces around variables declared
19175 before label.
19176
19177 * c.opt (Wjump-misses-init): New warning.
19178 * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
19179 -Wall and -Wc++-compat if not already set.
19180 (c_common_post_options): Clear warn_jump_misses_init if it was not
19181 set.
19182 * c-decl.c (struct c_binding): Change type field to a union with
19183 new label field. Make it the first field in the struct. Update
19184 references to type to use u.type instead.
19185 (struct c_spot_bindings): Define.
19186 (struct c_goto_bindings): Define.
19187 (c_goto_bindings_p): Define, along with VECs.
19188 (struct c_label_vars): Define.
19189 (struct c_scope): Add has_label_bindings field.
19190 (bind_label, set_spot_bindings): New static functions.
19191 (decl_jump_unsafe, update_spot_bindings): New static functions.
19192 (update_label_decls): New static function.
19193 (pop_scope): Call update_label_decls. Don't call c_end_vm_scope.
19194 Update binding u.label field to shadowed field.
19195 (c_binding_start_stmt_expr): New function.
19196 (c_binding_end_stmt_expr): New function.
19197 (pushdecl): Don't call c_begin_vm_scope.
19198 (make_label): Add defining and p_label_vars parameters. Change
19199 all callers.
19200 (lookup_label): Correct test for whether a label has not yet been
19201 defined. Call bind_label rather than bind.
19202 (warn_about_goto): New static function.
19203 (lookup_label_for_goto): New function.
19204 (declare_label): Call bind_label rather than bind.
19205 (check_earlier_gotos): New static function.
19206 (define_label): Don't give errors about jumping into statement
19207 expressions or scopes of variably modified types. Call
19208 set_spot_bindings and check_earlier_gotos. Call bind_label
19209 instead of bind. Don't set label_context_stack_se or
19210 label_context_stack_vm.
19211 (c_get_switch_bindings): New function.
19212 (c_release_switch_bindings): New function.
19213 (c_check_switch_jump_warnings): New function.
19214 (start_function): Don't set label_context_stack_se or
19215 label_context_stack_vm.
19216 (finish_function): Likewise.
19217 * c-typeck.c (label_context_stack_se): Don't define.
19218 (label_context_stack_vm): Don't define.
19219 (c_finish_goto_label): Call lookup_label_for_goto rather than
19220 lookup_label. Don't give errors about jumping into a statement
19221 expression or the scope of a variably modified type. Don't set
19222 label_context_stack_se or label_context_stack_vm.
19223 (struct c_switch): Remove blocked_stmt_expr and blocked_vm
19224 fields. Add bindings field.
19225 (c_start_case): Don't set deleted fields. Set bindings field.
19226 (do_case): Rework order of tests. Don't check blocked_stmt_expr
19227 or blocked_vm. Call c_check_switch_jump_warnings.
19228 (c_finish_case): Don't test blocked_stmt_expr field. Call
19229 c_release_switch_bindings.
19230 (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
19231 c_switch_stack. Don't walk label_context_stack_se labels. Don't
19232 set label_context_stack_se. Call c_bindings_start_stmt_expr.
19233 (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
19234 c_switch_stack. Don't walk label_context_stack_se labels. Don't
19235 set label_context_stack_se. Call c_bindings_end_stmt_expr.
19236 (c_begin_vm_scope, c_end_vm_scope): Don't define.
19237 * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
19238 (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
19239 (C_DECL_UNJUMPABLE_VM): Don't define.
19240 (C_DECL_UNDEFINABLE_VM): Don't define.
19241 (struct c_label_list): Don't define.
19242 (struct c_label_context_se): Don't define.
19243 (struct c_label_context_vm): Don't define.
19244 (struct c_spot_bindings): Declare.
19245 (c_bindings_start_stmt_expr): Declare.
19246 (c_bindings_end_stmt_expr): Declare.
19247 (lookup_label_for_goto): Declare.
19248 (c_get_switch_bindings, c_release_switch_bindings): Declare.
19249 (c_check_switch_jump_warnings): Declare.
19250 (label_context_stack_se, label_context_stack_vm): Don't declare.
19251 (c_finish_goto_label): Update declaration.
19252 (c_begin_vm_scope, c_end_vm_scope): Don't declare.
19253 * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
19254 (Warning Options): Document -Wjump-misses-init.
19255
19256 2009-06-15 Jakub Jelinek <jakub@redhat.com>
19257
19258 * tree-object-size.c (addr_object_size): Fix a pasto in the last
19259 change.
19260
19261 2009-06-15 Rafael Avila de Espindola <espindola@google.com>
19262
19263 * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
19264
19265 2009-06-15 Aldy Hernandez <aldyh@redhat.com>
19266
19267 * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
19268
19269 2009-06-15 Aldy Hernandez <aldyh@redhat.com>
19270
19271 * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
19272
19273 2009-06-15 Rafael Avila de Espindola <espindola@google.com>
19274
19275 * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
19276 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
19277 * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
19278 * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
19279 * dwarf2asm.c (dw2_force_const_mem): Update call to
19280 make_decl_one_only.
19281 * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
19282 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
19283 * langhooks.c (lhd_comdat_group): Remove.
19284 * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
19285 * tree.h (DECL_COMDAT_GROUP): New.
19286 (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
19287 (tree_decl_with_vis): Add comdat_group. Remove one_only.
19288 (make_decl_one_only): Change signature.
19289 * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
19290 make_decl_one_only.
19291 (make_decl_one_only): Change signature.
19292 (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
19293
19294 2009-06-15 Richard Guenther <rguenther@suse.de>
19295
19296 PR middle-end/40439
19297 * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
19298
19299 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19300
19301 * tree-ssa-math-opts.c: Remove extra divide.
19302
19303 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19304
19305 * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
19306
19307 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19308
19309 * passes.c: Add bswap pass.
19310 * tree-pass.h: Add pass_optimize_bswap declaration.
19311 * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
19312 Include rtl.h, expr.h and optabs.h for optab_handler check.
19313 (struct symbolic_number, pass_optimize_bswap): New definition.
19314 (do_shift_rotate, verify_symbolic_number_p): New functions.
19315 (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
19316 (gate_optimize_bswap): New function.
19317 * tree.c (widest_int_cst_value): New function.
19318 * tree.h (widest_int_cst_value): Prototype added.
19319
19320 2009-06-14 Steven Bosscher <steven@gcc.gnu.org>
19321
19322 * cfgcleanup.c (old_insns_match_p): Remove code to substitute
19323 REG_EQUAL/REG_EQUIV notes.
19324
19325 2009-06-14 Richard Guenther <rguenther@suse.de>
19326
19327 PR middle-end/40389
19328 * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
19329 has its address taken if NRV was applied and it is addressable.
19330 * tree-ssa-structalias.c (get_constraint_for_address_of): New
19331 function split out from ...
19332 (get_constraint_for_1): ... here.
19333 (handle_rhs_call): Use it to mark the return slot escaped if
19334 it is addressable and NRV was applied.
19335
19336 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
19337
19338 * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
19339 Change first argument type to location_t.
19340 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
19341 Do not set input_location.
19342 Use loc instead of input_location throughout.
19343
19344 2009-06-13 Richard Guenther <rguenther@suse.de>
19345
19346 PR tree-optimization/40421
19347 * tree-predcom.c (should_unroll_loop_p): Remove.
19348 (tree_predictive_commoning_loop): Use can_unroll_loop_p.
19349
19350 2009-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
19351
19352 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
19353 Add location argument.
19354
19355 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
19356
19357 * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
19358 build_decl.
19359 * config/s390/s390.c (s390_build_builtin_va_list): Same.
19360 (s390_gimplify_va_arg): Pass location to create_artificial_label.
19361 * config/spu/spu-protos.h: Add location to
19362 spu_resolve_overloaded_builtin.
19363 * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
19364 spu_build_builtin_va_list.
19365 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
19366 argument. Pass location to build_function_call_vec.
19367 * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
19368 build_decl.
19369 (emit_fpu_switch): Same.
19370 (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
19371 * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
19372 to build_decl and create_artificial_label.
19373 (xtensa_gimplify_va_arg_expr): Same.
19374 * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
19375 (xstormy16_gimplify_va_arg_expr): Same.
19376 * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
19377 * config/arm/arm.c (arm_build_builtin_va_list): Same.
19378 * config/mips/mips.c (mips_build_builtin_va_list): Same.
19379 (mips16_build_function_stub): Same.
19380 (mips16_build_call_stub): Same.
19381
19382 2009-06-13 Richard Earnshaw <rearnsha@arm.com>
19383
19384 PR target/40327
19385 * arm/constraints.md (Pa, Pb): New constraints.
19386 * arm/arm.md (thumb1_addsi3): Support more complex additions. Add a
19387 split pattern to deal with them.
19388
19389 2009-06-13 Joerg Sonnenberger <joerg@britannica.bec.de>
19390
19391 * doc/invoke.texi: Add missing option -Wp,OPTION in list,
19392 fix index entry for -Xpreprocessor.
19393
19394 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
19395
19396 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
19397 Add location argument to build_decl call.
19398 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
19399 (rs6000_init_builtins): Same.
19400 (spe_init_builtins): Same.
19401 (rs6000_gimplify_va_arg): Add location argument to
19402 create_artificial_label call.
19403
19404 2009-06-12 Steven Bosscher <steven@gcc.gnu.org>
19405
19406 * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
19407 * combine-stack-adj.c (pass_stack_adjustments): Use it.
19408 * Makefile.in: Fix GGC dependency for gcse.o.
19409
19410 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
19411
19412 * tree-pretty-print.c (dump_generic_node): Dump column numbers.
19413 * gimple-pretty-print.c (dump_gimple_stmt): Same.
19414 * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
19415 created.
19416 * c-parser.c (c_parser_binary_expression): Use current column while
19417 building binary operations.
19418 * common.opt (fshow-column): Enable by default.
19419 * tree-vrp.c (check_array_ref): Use warning_at.
19420 (check_array_bounds): Use location from call back if expr has no
19421 location.
19422 * tree.h: Add location argument to maybe_fold_*.
19423 * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
19424 (maybe_fold_offset_to_array_ref): Add location argument and use it.
19425 (maybe_fold_offset_to_component_ref): Same.
19426 (maybe_fold_offset_to_reference): Same.
19427 (maybe_fold_offset_to_address): Same.
19428 (maybe_fold_stmt_indirect): Same.
19429 (maybe_fold_stmt_addition): Same.
19430 (fold_stmt_r): Pass location to maybe_fold_*.
19431 (fold_gimple_assign): Same.
19432 * c-tree.h: Add location argument to finish_decl,
19433 default_function_array_conversion, store_init_value.
19434 * c-decl.c (define_label): Use error_at.
19435 (c_make_fname_decl): Pass location to finish_decl.
19436 (finish_decl): New location argument.
19437 (build_compound_literal): Pass location to store_init_value.
19438 (grokdeclarator): Pass location to finish_decl.
19439 (grokfield): Same.
19440 * c-typeck.c (array_to_pointer_conversion): New location argument.
19441 (function_to_pointer_conversion): Same.
19442 (default_function_array_conversion): Same.
19443 (parser_build_unary_op): Pass location to overflow_warning.
19444 (parser_build_binary_op): Same. Use warning_at.
19445 (build_unary_op): Pass location to array_to_pointer_conversion.
19446 (build_c_cast): Pass location to digest_init.
19447 (build_modify_expr): New location argument.
19448 (convert_for_assignment): Same.
19449 (store_init_value): Same.
19450 (digest_init): Same.
19451 (output_init_element): Pass location to digest_init and
19452 array_to_pointer_conversion.
19453 (c_finish_return): Pass location to convert_for_assignment.
19454 * gimplify.c (gimplify_conversion): Pass location to
19455 maybe_fold_offset_to_address.
19456 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
19457 to maybe_fold_stmt_addition.
19458 * c-omp.c (c_finish_omp_atomic): Pass new location to
19459 build_modify_expr.
19460 (c_finish_omp_for): Same.
19461 * c-common.c (overflow_warning): New argument.
19462 * c-common.h: New argument to build_modify_expr, overflow_warning.
19463 * c-parser.c (c_parser_declaration_or_fndef): Pass location to
19464 finish_decl.
19465 (c_parser_initializer): Pass location to
19466 default_function_array_conversion.
19467 (c_parser_initelt): Same.
19468 (c_parser_initval): Same.
19469 (c_parser_asm_operands): Same.
19470 (c_parser_expr_no_commas): Same. Pass location to build_modify_expr.
19471 (c_parser_conditional_expression): Same.
19472 (c_parser_binary_expression): Add location info to stack. Use it.
19473 (c_parser_unary_expression): Pass location to
19474 default_function_array_conversion, parser_build_unary_op,
19475 build_indirect_ref, c_parser_postfix_expression_after_primary.
19476 (c_parser_postfix_expression_after_primary): New location argument.
19477 Use it.
19478 (c_parser_expression_conv): Pass location to
19479 default_function_array_conversion.
19480 (c_parser_expr_list): Same.
19481 (c_parser_omp_atomic): Same.
19482 (c_parser_omp_for_loop): Same.
19483 * c-tree.h (struct c_declarator): Add comment to id_loc.
19484 (build_array_declarator): New argument.
19485 * c-decl.c (build_array_declarator): Add location argument.
19486 (grokdeclarator): Set id_loc for cdk_array.
19487 * c-parser.c (c_parser_direct_declarator_inner): Pass location to
19488 build_array_declarator.
19489 * tree.c (build_omp_clause): Add location argument.
19490 * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
19491 (OMP_CLAUSE_LOCATION): New macro.
19492 (struct tree_omp_clause): Add location field.
19493 (build_omp_clause): Add argument.
19494 * cp/pt.c (tsubst_omp_for_iterator): Pass location to
19495 build_omp_clause.
19496 * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
19497 (cp_parser_omp_clause_collapse): Same.
19498 (cp_parser_omp_clause_default): Same.
19499 (cp_parser_omp_clause_if): Same.
19500 (cp_parser_omp_clause_nowait): Same.
19501 (cp_parser_omp_clause_num_threads): Same.
19502 (cp_parser_omp_clause_ordered): Same.
19503 (cp_parser_omp_clause_schedule): Same.
19504 (cp_parser_omp_clause_untied): Same.
19505 (cp_parser_omp_for_loop): Same.
19506 (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
19507 * c-tree.h (c_start_case): Add location argument.
19508 (c_process_expr_stmt): Same.
19509 (c_finish_goto_*): Same.
19510 * tree-parloops.c (initialize_reductions): Pass location to
19511 build_omp_clause.
19512 (create_parallel_loop): Same.
19513 * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
19514 (gfc_trans_omp_reduction_list): Same.
19515 (gfc_trans_omp_clauses): Same.
19516 (gfc_trans_omp_do): Same.
19517 * c-typeck.c (c_finish_goto_label): Same.
19518 (c_finish_goto_ptr): New location argument.
19519 (c_start_case): Same.
19520 (emit_side_effect_warnings): Same.
19521 (c_process_expr_stmt): Same.
19522 (c_finish_stmt_expr): Same.
19523 (c_finish_omp_clauses): Use error_at instead of error.
19524 * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
19525 build_omp_clause.
19526 * c-omp.c (c_split_parallel_clauses): New location argument.
19527 * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
19528 to build_omp_clause.
19529 (convert_local_reference_stmt): Same.
19530 (convert_gimple_call): Same.
19531 * c-common.h (c_split_parallel_clauses): New argument.
19532 * c-parser.c (c_parser_statement_after_labels): Pass location to
19533 c_finish_goto_label.
19534 (c_parser_switch_statement): Pass location to c_start_case.
19535 (c_parser_for_statement): Pass location to c_finish_expr_stmt,
19536 and c_process_expr_stmt.
19537 (c_parser_omp_variable_list): Add location argument.
19538 (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
19539 (c_parser_omp_clause_default): Same.
19540 (c_parser_omp_clause_if): Same.
19541 (c_parser_omp_clause_num_threads): Same.
19542 (-c_parser_omp_clause_ordered): Same.
19543 (c_parser_omp_clause_reduction): Pass location to
19544 c_parser_omp_variable_list.
19545 (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
19546 (c_parser_omp_clause_untied): Same.
19547 (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
19548 (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
19549
19550 * c-tree.h (check_for_loop_decls, undeclared_variable,
19551 build_component_ref, build_array_ref, build_external_ref,
19552 c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
19553 build_conditional_expr, build_compound_expr, c_cast_expr,
19554 build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
19555 c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
19556 argument.
19557 * c-semantics.c (build_stmt): Same.
19558 (build_case_label): Same.
19559 * c-decl.c (c_finish_incomplete_decl): Pass location on down.
19560 (undeclared_variable): New argument.
19561 (make_label): Same.
19562 (lookup_label): Pass location on down.
19563 (define_label): Same.
19564 (finish_decl): Same.
19565 (build_compound_literal): Same.
19566 (finish_struct): Same.
19567 (finish_function): Do not set location here.
19568 (check_for_loop_decls): New argument.
19569 * tree.c (save_expr): Set location.
19570 (build_empty_stmt): New argument.
19571 * tree.h (build_empty_stmt): New argument to build_empty_stmt.
19572 (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
19573 * builtins.c (gimplify_va_arg_expr): Use locations.
19574 (expand_builtin_sync_operation): Same.
19575 * c-typeck.c (build_component_ref): New argument.
19576 (build_array_ref): Same.
19577 (build_external_ref): Same.
19578 (c_expr_sizeof_expr): Same.
19579 (c_expr_sizeof_type): Same.
19580 (parser_build_unary_op): Same.
19581 (build_conditional_expr): Same.
19582 (build_compound_expr): Pass location on down.
19583 (build_compound_expr): New argument.
19584 (build_c_cast): Same.
19585 (c_cast_expr): Same.
19586 (build_asm_expr): Same.
19587 (c_finish_return): Same.
19588 (c_process_expr_stmt): Pass location on down.
19589 (c_finish_stmt_expr): New argument.
19590 (push_clenaup): Same.
19591 (c_finish_omp_parallel): Same.
19592 (c_finish_omp_task): Same.
19593 * gimplify.c (gimplify_call_expr): Pass location on down.
19594 * c-omp.c (c_finish_omp_master): New argument.
19595 (c_finish_omp_critical): Same.
19596 (c_finish_omp_ordered): Same.
19597 (c_finish_omp_barrier): Same.
19598 (-c_finish_omp_taskwait): Same.
19599 (c_finish_omp_atomic): Same.
19600 (c_finish_omp_flush): Same.
19601 * tree-inline.c (copy_tree_body_r): Pass location on down.
19602 (inline_forbidden_p): Remove use of input_location.
19603 * c-gimplify.c (c_build_bind_expr): New argument.
19604 * c-common.c (c_common_truthvalue_conversion): Pass location on down.
19605 (c_sizeof_or_alignof_type): New argument.
19606 (c_alignof_expr): Same.
19607 (build_va_arg): Same.
19608 (c_add_case_label): Same.
19609 * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
19610 c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
19611 c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
19612 c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
19613 c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
19614 c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
19615 New argument.
19616 * stub-objc.c (objc_build_selector_expr): Same.
19617 (objc_build_throw_stmt): Same.
19618 * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
19619 (c_parser_initelt): Same.
19620 (c_parser_compound_statement): Same.
19621 (c_parser_compound_statement_nostart): Same.
19622 (c_parser_label): Same.
19623 (c_parser_statement_after_labels): Same.
19624 (c_parser_if_body): Same.
19625 (c_parser_else_body): Same.
19626 (c_parser_if_statement): Same.
19627 (c_parser_switch_statement): Same.
19628 (c_parser_while_statement): Same.
19629 (c_parser_do_statement): Same.
19630 (c_parser_for_statement): Same.
19631 (c_parser_asm_statement): Same.
19632 (c_parser_conditional_expression): Same.
19633 (c_parser_binary_expression): Same.
19634 (c_parser_cast_expression): Same.
19635 (c_parser_unary_expression): Same.
19636 (c_parser_sizeof_expression): Same.
19637 (c_parser_alignof_expression): Same.
19638 (c_parser_postfix_expression): Same.
19639 (c_parser_expression): Same.
19640 (c_parser_objc_receiver): Same.
19641 (c_parser_omp_variable_list): Same.
19642 (c_parser_omp_structured_block): Same.
19643 (c_parser_omp_atomic): New argument.
19644 (c_parser_omp_barrier): Same.
19645 (c_parser_omp_critical): Same.
19646 (c_parser_omp_flush): Pass location on down.
19647 (c_parser_omp_for_loop): New argument.
19648 (c_parser_omp_for): Same.
19649 (c_parser_omp_master): Same.
19650 (c_parser_omp_ordered): Same.
19651 (c_parser_omp_sections_scope): Same.
19652 (c_parser_omp_sections): Same.
19653 (c_parser_omp_parallel): Same.
19654 (c_parser_omp_single): Same.
19655 (c_parser_omp_task): Same.
19656 (c_parser_omp_taskwait): Pass location on down.
19657 (c_parser_omp_construct): Same.
19658 (c_parser_omp_threadprivate): Same.
19659 * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
19660 builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
19661 tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
19662 c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
19663 c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
19664 emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
19665 rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
19666 tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
19667 config/i386/i386.c, stmt.c:
19668 Add location argument to the following function definitions and/or
19669 function calls: build_decl, objcp_start_struct, objcp_finish_struct,
19670 start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
19671 cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
19672 build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
19673 do_case, c_finish_bc_stmt, build_compound_literal,
19674 build_function_call.
19675 * c-decl.c (build_compound_literal): Add location argument.
19676 Make all diagnostic calls use location.
19677 (start_struct): Same.
19678 (finish_struct): Same.
19679 (start_enum): Same.
19680 (build_enumerator): Same.
19681 (start_function): Same.
19682 (grokdeclarator): Make all diagnostic calls use location.
19683 (store_parm_decls_oldstyle): Same.
19684 * c-typeck.c (build_function_call): Add location argument.
19685 Make all diagnostic calls use location.
19686 (do_case): Same.
19687 (c_finish_bc_stmt): Same.
19688 * tree-nested.c (get_trampoline_type): Add argument.
19689 Pass location to build_decl.
19690 (lookup_tramp_for_decl): Pass location to get_trampoline_type.
19691 * rtl.h (RTL_LOCATION): New.
19692 * c-common.c (c_add_case_label): Add location argument.
19693 Make all diagnostic calls use location.
19694 * c-common.h: Add location argument to make_fname_decl, do_case,
19695 c_add_case_label, build_function_call, resolve_overloaded_builtin.
19696 * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
19697 Set it appropriately for every case. Pass enum_loc to start_enum
19698 call. Pass value_loc first to build_enumerator. Pass enum_loc to
19699 parser_xref_tag.
19700 (c_parser_struct_or_union_specifier): Save location. Use it for
19701 start_struct, finish_struct, and parser_xref_tag.
19702
19703 2009-06-12 Ian Lance Taylor <iant@google.com>
19704
19705 * fold-const.c (fold_unary): Rename local variable and to and_expr.
19706
19707 * c-opts.c (c_common_handle_option): For -Wc++-compat set
19708 cpp_opts->warn_cxx_operator_names.
19709
19710 2009-06-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
19711
19712 PR tree-opt/38865
19713 * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
19714 is returns NULL and OP is a VCE, look through the VCE.
19715
19716 2009-06-12 Ian Lance Taylor <iant@google.com>
19717
19718 PR bootstrap/40430
19719 * collect2.c (main): Use CONST_CAST2 in code inside #if
19720 LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
19721
19722 2009-06-12 Joey Ye <joey.ye@intel.com>
19723
19724 PR middle-end/39146
19725 * cfgexpand.c (get_decl_align_unit): Update
19726 max_used_stack_slot_alignment with align instead of
19727 stack_alignment_needed.
19728
19729 * function.c (assign_stack_local_1): Update
19730 max_used_stack_slot_alignment with alignment_in_bits instead
19731 of stack_alignment_needed.
19732 (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
19733 here.
19734
19735 2009-06-12 Jakub Jelinek <jakub@redhat.com>
19736
19737 * dwarf2out.c (last_var_location_insn): New variable.
19738 (dwarf2out_end_epilogue): Clear last_var_location_insn.
19739 (dwarf2out_var_location): Don't record anything after last real
19740 insn. Only change labels if there were any real instructions
19741 in between last note and this one, or if changed sections.
19742
19743 2009-06-11 Richard Henderson <rth@redhat.com>
19744
19745 * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
19746 note when storing the frame pointer in a register.
19747 (FRP): Don't redefine to nothing for epilogue.
19748 (alpha_expand_epilogue): Mark register and sp restores.
19749 (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
19750
19751 * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
19752 when gen_lowpart is needed.
19753
19754 2009-06-11 Richard Henderson <rth@redhat.com>
19755
19756 * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
19757
19758 * dwarf2out.c (need_data_align_sf_opcode): New.
19759 (div_data_align): Move earlier.
19760 (def_cfa_1, reg_save): Use it.
19761
19762 2009-06-11 H.J. Lu <hongjiu.lu@intel.com>
19763
19764 * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
19765 (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
19766 (ix86_handle_option): Handle OPT_mcrc32.
19767 (ix86_target_string): Add -mcrc32.
19768 (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
19769
19770 * config/i386/i386.h (TARGET_CRC32): New.
19771
19772 * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
19773 (sse4_2_crc32di): Likewise.
19774
19775 * config/i386/i386.opt (mcrc32): New.
19776
19777 * doc/invoke.texi: Document -mcrc32.
19778
19779 2009-06-11 Richard Henderson <rth@redhat.com>
19780
19781 * common.opt (gdwarf-): Accept a version number.
19782 * doc/invoke.texi (gdwarf-): Update docs.
19783 * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
19784 * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
19785 version level, and record it.
19786
19787 * dwarf2.h (DW_CIE_VERSION): Remove.
19788 * dwarf2out.c (DWARF_VERSION): Remove.
19789 (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
19790 (output_call_frame_info): Use CIE version 3 for dwarf3,
19791 or if the return register column is out of range for version 1.
19792 (dwarf_stack_op_name): Add all dwarf3 values.
19793 (DEBUG_PUBTYPES_SECTION): New.
19794 (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
19795 encoding change for dwarf3.
19796 (output_die) [dw_val_class_die_ref]: Likewise.
19797 (output_compilation_unit_header): Emit correct version for dwarf3.
19798 (output_line_info): Likewise.
19799 (output_pubnames): Update for DWARF_VERSION removal.
19800 (output_aranges): Likewise.
19801 (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
19802 (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
19803 (dwarf2out_finish): Likewise.
19804
19805 2009-06-11 David Daney <ddaney@caviumnetworks.com>
19806
19807 * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
19808 in r148403.
19809
19810 2009-06-11 David Daney <ddaney@caviumnetworks.com>
19811
19812 PR c/39252
19813 * doc/extend.texi ( __builtin_unreachable): Document new builtin.
19814 * builtins.c (expand_builtin_unreachable): New function.
19815 (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
19816 * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
19817 * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
19818 successors.
19819 * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
19820 searching for missing barriers.
19821
19822 2009-06-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
19823
19824 * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
19825 when -fprofile-generate* was passed.
19826 * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
19827
19828 2009-06-11 Anthony Green <green@moxielogic.com>
19829
19830 * config/moxie/moxie.md: Define length attribute for all instructions.
19831 (rCC): Define.
19832 (*b<cond:code>): Support limited branch ranges for new PC-relative
19833 branch instructions.
19834 * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
19835
19836 2009-06-11 Jakub Jelinek <jakub@redhat.com>
19837
19838 * config/i386/i386.c (min_insn_size): Use get_attr_length
19839 for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
19840 For __asm return 0.
19841
19842 * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
19843 instead of emit_insn_before.
19844
19845 2009-06-10 Ian Lance Taylor <iant@google.com>
19846
19847 PR bootstrap/40408
19848 * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
19849 GIMPLE_SWITCH.
19850
19851 2009-06-10 Revital Eres <eres@il.ibm.com>
19852
19853 * passes.c (init_optimization_passes): Reschedule
19854 predictive-commoning pass before complete unroll pass.
19855
19856 2009-06-10 Martin Jambor <mjambor@suse.cz>
19857
19858 * cgraph.c (cgraph_node_can_be_local_p): New function.
19859 (cgraph_make_node_local): New function.
19860 * cgraph.h (cgraph_node_can_be_local_p): Declare.
19861 (cgraph_make_node_local): Declare.
19862
19863 2009-06-10 Nathan Froyd <froydnj@codesourcery.com>
19864
19865 * tree.h (tree_base): Add packed_flag and user_align fields.
19866 Decrease size of spare field.
19867 (TYPE_USER_ALIGN): Use user_align from tree_base.
19868 (DECL_USER_ALIGN): Likewise.
19869 (TYPE_PACKED): Use packed_flag from tree_base.
19870 (DECL_PACKED): Likewise.
19871 (tree_type): Delete packed_flag and user_align fields. Widen
19872 precision field. Widen mode field and shuffle fields to align
19873 mode on an 8-bit boundary.
19874 (tree_decl_common): Delete decl_flag_1 and user_align fields.
19875 Renumber decl_flag_* fields. Fix comments. Widen
19876 decl_common_unused field.
19877 (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
19878 (DECL_EXTERNAL): Likewise.
19879 (DECL_BIT_FIELD): Likewise.
19880 (DECL_NONADDRESSABLE_P): Likewise.
19881 (TYPE_DECL_SUPRESS_DEBUG): Likewise.
19882 * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
19883
19884 2009-06-10 Ian Lance Taylor <iant@google.com>
19885
19886 * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
19887 (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
19888 (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
19889 (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
19890 (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
19891 DEF_VEC_ALLOC_FUNC_P.
19892 (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
19893 (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
19894 DEF_VEC_ALLOC_FUNC_O.
19895 (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
19896 (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
19897 DEF_VEC_ALLOC_FUNC_I.
19898 (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
19899 (vec_stack_p_reserve_exact_1): Declare.
19900 (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
19901 (vec_stack_free): Declare.
19902 (VEC_stack_alloc): Define.
19903 (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
19904 (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
19905 (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
19906 * vec.c (void_p): New type. Call DEF_VEC_P and DEF_VEC_ALLOC_P
19907 for void_p.
19908 (stack_vecs): New static variable.
19909 (vec_stack_p_reserve_exact_1): New function.
19910 (vec_stack_o_reserve_1): New static function.
19911 (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
19912 (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
19913 (vec_stack_free): New function.
19914 * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
19915 (VEC_df_ref_stack_alloc): Define.
19916 (df_mw_hardreg_ptr): New type. Use DEF_VEC_P and
19917 DEF_VEC_ALLOC_P_STACK.
19918 (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
19919 (struct df_collection_rec): Change _vec fields to VEC. Remove
19920 _use fields.
19921 (df_free_collection_rec): Adjust for new fields.
19922 (df_insn_rescan): Use new df_collection_rec fields.
19923 (df_notes_rescan, df_canonize_collection_rec): Likewise.
19924 (df_ref_create_structure, df_ref_record): Likewise.
19925 (df_get_conditional_uses, df_get_call_refs): Likewise.
19926 (df_insn_refs_collect, df_bb_refs_collect): Likewise.
19927 (df_bb_refs_record, df_record_entry_block_defs): Likewise.
19928 (df_record_exit_block_uses, df_bb_verify): Likewise.
19929 (df_swap_refs): Change ref_vec parameter to VEC. Change all callers.
19930 (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
19931 Remove count parameter. Change return type to void. Change all
19932 callers.
19933 (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
19934 Remove count parameter. Change return type to void. Change all
19935 callers.
19936 (df_install_refs): Change old_vec parameter to VEC. Remove count
19937 parameter. Change all callers.
19938 (df_install_mws): Change old_vec parameter to VEC. Remove count
19939 parameter. Change all callers.
19940 (df_refs_verify): Change new_rec parameter to VEC. Change call
19941 callers.
19942 (df_mws_verify): Likewise.
19943
19944 2009-06-10 Alexandre Oliva <aoliva@redhat.com>
19945
19946 * gcc.c (compare_files): Cast munmap argumento to caddr_t.
19947
19948 2009-06-10 H.J. Lu <hongjiu.lu@intel.com>
19949
19950 * doc/extend.texi: Add description for __builtin_ia32_crc32di.
19951
19952 2009-06-10 Anthony Green <green@moxielogic.com>
19953
19954 * config/moxie/crti.asm: New file.
19955 * config/moxie/crtn.asm: New file.
19956 * config/moxie/moxie.c: New file.
19957 * config/moxie/moxie.h: New file.
19958 * config/moxie/sfp-machine.h: New file.
19959 * config/moxie/moxie-protos.h: New file.
19960 * config/moxie/t-moxie: Created.
19961 * config/moxie/t-moxie-softfp: Created.
19962 * config/moxie/moxie.md: Created.
19963 * config/moxie/constraints.md: Created.
19964 * config.gcc: Add moxie support.
19965 * doc/md.texi (Machine Constraints): Add moxie constraints.
19966 * doc/contrib.texi (Contributors): Mention moxie port.
19967 * doc/install.texi (Specific): Mention the moxie port.
19968
19969 2009-06-09 Ian Lance Taylor <iant@google.com>
19970
19971 * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
19972 compiling with C++.
19973 * optabs.c (optab_table): Only use designated initializers if
19974 HAVE_DESIGNATED_INITIALIZERS is defined.
19975 (convert_optab_table): Likewise.
19976 (init_optabs): Always call init_insn_codes if
19977 HAVE_DESIGNATED_INITIALIZERS is not defined.
19978
19979 2009-06-09 Ian Lance Taylor <iant@google.com>
19980
19981 * targhooks.c (default_builtin_vectorized_function): Change fn
19982 parameter to unsigned int.
19983 (default_builtin_vectorized_conversion): Change code parameter to
19984 unsigned int.
19985 (default_builtin_reciprocal): Change fn parameter to unsigned int.
19986 * targhooks.h: Update declarations.
19987 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
19988 parameter to unsigned int.
19989
19990 * c-typeck.c (comptypes_check_enum_int): New static function.
19991 (comptypes_internal): Add enum_and_int_p parameter. Change all
19992 callers.
19993 (comp_target_types): Add location parameter. Change all callers.
19994 (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
19995 Change all callers.
19996 (function_types_compatible_p, type_lists_compatible_p): Likewise.
19997 (build_conditional_expr): Add colon_loc parameter. Change all
19998 callers.
19999 (convert_for_assignment): Add location parameter. Change all callers.
20000 * c-parser.c (c_parser_conditional_expression): Pass location of
20001 colon to build_conditional_expr.
20002 * c-tree.h (build_conditional_expr): Update declaration.
20003
20004 2009-06-09 Sebastian Pop <sebastian.pop@amd.com>
20005
20006 * graphite.c: Revert previous patch.
20007
20008 2009-06-09 Sebastian Pop <sebastian.pop@amd.com>
20009
20010 PR bootstrap/40103
20011 * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
20012
20013 2009-06-09 Ghassan Shobaki <ghassan.shobaki@amd.com>
20014
20015 * tree-ssa-loop-prefetch.c
20016 (loop_prefetch_arrays): Fixed a portability problem in printf format
20017 string.
20018
20019 2009-06-09 Martin Jambor <mjambor@suse.cz>
20020
20021 PR tree-optimization/40351
20022 * tree-sra.c (propagate_subacesses_accross_link): Check that a
20023 refrence to a potential artifical subaccess can be constructed.
20024
20025 2009-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
20026
20027 * config/sh/sh-protos.h (sh_optimization_options): Declare.
20028 (sh_override_options): Likewise.
20029 * config/sh/sh.c: Include params.h.
20030 (sh_optimization_options): New.
20031 (sh_override_options): Likewise.
20032 * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
20033 (OVERRIDE_OPTIONS): Use sh_override_options.
20034
20035 2009-06-08 Jakub Jelinek <jakub@redhat.com>
20036
20037 * dwarf2out.c (emit_cfa_remember): New variable.
20038 (add_fde_cfi): If emit_cfa_remember, recurse to add
20039 DW_CFA_remember_state first.
20040 (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
20041 instead just set emit_cfa_remember.
20042
20043 2009-06-08 Jan Hubicka <jh@suse.cz>
20044
20045 PR debug/40126
20046 * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
20047
20048 2009-06-08 Jan Hubicka <jh@suse.cz>
20049
20050 PR middle-end/39834
20051 * cgraphunit.c (save_inline_function_body): Do not copy transform
20052 hooks for saved inline bodies.
20053 * ipa-passes.c (do_per_function): Do not add the hoks multiple times
20054 for given function.
20055
20056 2009-06-08 Adam Nemet <anemet@caviumnetworks.com>
20057
20058 * jump.c (returnjump_p): Handle delayed branches. Add missing
20059 function comment.
20060
20061 2009-06-08 Jan Hubicka <jh@suse.cz>
20062
20063 PR middle-end/40102
20064 * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
20065 original node might've been modified.
20066 * tree-inline.c (copy_bb): Do not assume that all clones are the same.
20067
20068 2009-06-08 Jakub Jelinek <jakub@redhat.com>
20069
20070 * tree-object-size.c (addr_object_size): Add OSI argument.
20071 Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
20072 (compute_builtin_object_size, expr_object_size): Adjust callers.
20073 (plus_stmt_object_size): Call addr_object_size instead of
20074 compute_builtin_object_size.
20075
20076 2009-06-08 Ghassan Shobaki <ghassan.shobaki@amd.com>
20077 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
20078
20079 * tree-ssa-loop-prefetch.c
20080 (gather_memory_references): Introduced a counter for the number of
20081 memory references.
20082 (anything_to_prefetch_p): Introduced a counter for the number of
20083 prefetches.
20084 (is_loop_prefetching_profitable): New function with a cost model
20085 for prefetching.
20086 (loop_prefetch_arrays): Use the new cost model to determine if
20087 prefetching is profitable.
20088 * params.def (MIN_INSN_TO_PREFETCH_RATIO,
20089 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
20090 * params.h (MIN_INSN_TO_PREFETCH_RATIO,
20091 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
20092 * doc/invoke.texi (MIN_INSN_TO_PREFETCT_RATIO,
20093 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
20094
20095 2009-06-08 Michael Matz <matz@suse.de>
20096
20097 PR debug/40012
20098 * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
20099 partitions use the same.
20100 (expand_one_var): Deal with DECL_RTL sometimes begin set also
20101 for basevars of SSA_NAMEs.
20102 (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
20103 to not expand them twice.
20104 (gimple_expand_cfg): Clear DECL_RTL for those decls that have
20105 multiple places.
20106
20107 2009-06-08 Alexandre Oliva <aoliva@redhat.com>
20108
20109 * common.opt (fcompare-debug=, fcompare-debug-second): New.
20110 (fdump-final-insns=, gtoggle): New.
20111 * doc/invoke.texi: Document them.
20112 * final.c (rest_of_clean_state): Dump final insn stream.
20113 * gcc.c (invoke_as): Hook in -fcompare-debug.
20114 (static_spec_functions): Add compare-debug-dump-opt,
20115 compare-debug-self-opt and compare-debug-auxbase-opt.
20116 (compare_debug, compare_debug_second, compare_debug_opt): New.
20117 (switches_debug_check, n_switches_debug_check): New.
20118 (debug_auxbase_opt, debug_check_temp_file): New.
20119 (process_command): Handle -fno-compare-debug, -fcompare-debug and
20120 -fcompare-debug=*.
20121 (do_self_spec): Handle arguments after switches.
20122 (do_spec_1): Add .gk extension to temp file basenames for compare.
20123 (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
20124 (cc1_options): Use it instead of normal auxbase computation for
20125 the second compare-debug compilation.
20126 (compare_files): New.
20127 (main): Set up and implement compare debug mode.
20128 (compare_debug_dump_opt_spec_function): New.
20129 (compare_debug_self_opt_spec_function): New.
20130 (compare_debug_auxbase_opt_spec_function): New.
20131 * toplev.c (process_options): Handle flag_gtoggle,
20132 flag_dump_final_insns.
20133 * coverage.c (coverage_begin_output): Don't overwrite .gcno file
20134 during -fcompare-debug-second compilation.
20135
20136 2009-06-07 Ian Lance Taylor <iant@google.com>
20137
20138 * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
20139 * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
20140
20141 * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
20142 with no default node. Change warning with %H to warning_at.
20143 Don't clear warn_switch around case checking.
20144 * doc/invoke.texi (Warning Options): Clarify distinction between
20145 -Wswitch and -Wswitch-enum.
20146
20147 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20148
20149 * tree-pass.h (TODO_update_ssa_any): Document internal use only.
20150
20151 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20152
20153 * gbl-ctors.h: Add header guard.
20154
20155 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20156
20157 * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
20158 sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
20159 vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
20160 vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
20161 prototypes for removed functions.
20162 (expressions_equal_p): Move to ...
20163 * tree-ssa-sccvn.h: ... here and ...
20164 * matrix-reorg.c: ... adjust includes.
20165
20166 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20167
20168 * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
20169
20170 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20171
20172 * c-decl.c (finish_decl): Use bool for variable was_incomplete.
20173 (finish_function): Remove erroneous whitespace.
20174
20175 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20176
20177 * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
20178 (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
20179
20180 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20181
20182 * errors.c (internal_error): Commentary typo fix.
20183 * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
20184 * tree-ssa-pre.c: Ditto.
20185
20186 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20187
20188 * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
20189 them is supposed to hold actual statements.
20190
20191 2009-06-06 Ian Lance Taylor <iant@google.com>
20192
20193 * doc/extend.texi (Attribute Syntax): Document that C++ labels on
20194 empty statements can now have attributes.
20195
20196 2009-06-05 Shujing Zhao <pearly.zhao@oracle.com>
20197
20198 * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
20199 * config/mips/mips.md: Ditto.
20200
20201 2009-06-05 Nathan Froyd <froydnj@codesourcery.com>
20202
20203 * config/rs6000/eabi.asm (__eabi_convert): Don't define if
20204 _RELOCATABLE.
20205 (__eabi_uconvert): Likewise.
20206
20207 2009-06-05 Nathan Froyd <froydnj@codesourcery.com>
20208
20209 * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
20210 CFI_* definitions with IN_GCC.
20211
20212 2009-06-05 David Edelsohn <edelsohn@gnu.org>
20213
20214 * xcoffout.h (xcoffout_source_line): Update prototype.
20215
20216 2009-06-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20217
20218 * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
20219 mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
20220
20221 2009-06-05 Jakub Jelinek <jakub@redhat.com>
20222
20223 PR middle-end/40340
20224 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
20225 inlined_function_outer_scope_p blocks for artificial inlines
20226 even at -g0/-g1.
20227 * tree.c (tree_nonartificial_location): Rewrite using
20228 block_nonartificial_location.
20229
20230 2009-06-05 Revital Eres <eres@il.ibm.com>
20231 Leehod Baruch <leehod@il.ibm.com>
20232
20233 * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
20234 (expand_expr_real_1): Remove comment.
20235 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
20236 Vectorize misaligned access when the target supports it.
20237 (vect_supportable_dr_alignment): Check for unaligned access support.
20238 * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
20239 and remove asset.
20240
20241 2009-06-05 Julian Brown <julian@codesourcery.com>
20242
20243 * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
20244 * config/arm/ieee754-sf.S (cmpsf2): Likewise.
20245
20246 2009-06-05 Richard Guenther <rguenther@suse.de>
20247
20248 PR bootstrap/40350
20249 * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
20250 as possibly unused.
20251
20252 2009-06-05 Jakub Jelinek <jakub@redhat.com>
20253
20254 * config/s390/s390.c (global_not_special_regno_p): New static inline.
20255 (save_gprs): Don't tell unwinder when a global register is saved.
20256 (s390_emit_epilogue): Emit needed epilogue unwind info.
20257
20258 2009-06-05 Alexandre Oliva <aoliva@redhat.com>
20259
20260 * dwarf2out.c (deferred_asm_name): New.
20261 (add_name_and_src_coords_attributes): Defer creation of
20262 DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
20263 computed yet.
20264 (move_linkage_attr): New.
20265 (dwarf2out_finish): Revisit deferrals and emit attributes at the
20266 right place.
20267
20268 2009-06-05 Alexandre Oliva <aoliva@redhat.com>
20269
20270 * tree-nested.c (finalize_nesting_tree_1): Declare the
20271 frame_decl in the binding tree.
20272
20273 2009-06-04 Cary Coutant <ccoutant@google.com>
20274
20275 * basic-block.h (struct basic_block_def): Add discriminator field.
20276 * dbxout.c (dbxout_source_line): Add new parameter. Change all
20277 callers.
20278 * debug.c (do_nothing_debug_hooks): Add additional entry.
20279 (debug_nothing_int_charstar_int): New function.
20280 * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
20281 (debug_nothing_int_charstar_int): New declaration.
20282 * dwarf2out.c (dwarf2out_source_line): Add new parameter. Write
20283 discriminator value in .loc directive.
20284 * final.c (last_discriminator): New variable.
20285 (discriminator): New variable.
20286 (final_start_function): Initialize above variables, pass current
20287 discriminator to debug hook.
20288 (notice_source_line): Check for discriminator change.
20289 * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
20290 * sdbout.c (sdbout_source_line): New parameter.
20291 * tree-cfg.c (struct locus_discrim_map): New structure type.
20292 (discriminator_per_locus): New hash table.
20293 (build_gimple_cfg): Allocate and free discriminator hash table.
20294 (make_edges): Call assign_discriminator.
20295 (locus_map_hash): New function.
20296 (locus_map_eq): New function.
20297 (next_discriminator_for_locus): New function.
20298 (same_line_p): New function.
20299 (assign_discriminator): New function.
20300 (make_cond_expr_edges): Call assign_discriminator.
20301 (make_gimple_switch_edges): Likewise.
20302 (first_non_label_stmt): New function.
20303 * vmsdbgout.c (vmsdbgout_source_line): Add new parameter. Change
20304 all callers.
20305 * xcoffout.c (xcoffout_source_line): Add new parameter.
20306
20307 * configure.ac (gcc_cv_as_discriminator): New configury check for
20308 gas support for discriminator.
20309 * configure: Regenerate.
20310 * config.in: Regenerate.
20311
20312 2009-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20313
20314 * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
20315 val after checking for integers.
20316
20317 2009-06-04 Uros Bizjak <ubizjak@gmail.com>
20318
20319 * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
20320 X64_REGPARM_MAX.
20321 (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
20322 (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
20323 (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
20324 * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
20325 X64_REGPARM_MAX. Use X86_64_MS_SSE_REGPARM_MAX instead of
20326 X64_SSE_REGPARM_MAX.
20327 * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
20328 X64_SSE_REGPARM_MAX.
20329
20330 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
20331
20332 * gcc.c (report_times_to_file): New.
20333 (execute): Implement it.
20334 (process_command): Support -time=.
20335 * doc/invoke.texi: Document it.
20336
20337 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
20338
20339 * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
20340 that have value exprs.
20341
20342 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
20343
20344 * dwarf2asm.c (dw2_force_const_mem): Defer creation of
20345 declarations for constants until...
20346 (dw2_output_indirect_constant_1): ... this point.
20347
20348 2009-06-04 Richard Earnshaw <rearnsha@arm.com>
20349
20350 PR target/10242
20351 * arm.md (arm_addsi3): Don't try to split an add with an
20352 eliminable register until after reload has completed.
20353
20354 2009-06-03 Ian Lance Taylor <iant@google.com>
20355
20356 * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
20357 * genattrtab.c (write_length_unit_log): Likewise.
20358 * genchecksum.c (dosum): Likewise.
20359 * gengtype.c (write_rtx_next): Likewise.
20360 (finish_root_table, write_roots): Likewise.
20361 * gimple.c (gimple_ops_offset_): Likewise.
20362 * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
20363 * config/arc/arc.c (arc_attribute_table): Likewise.
20364 * config/arm/arm.c (arm_attribute_table): Likewise.
20365 * config/avr/avr.c (avr_attribute_table): Likewise.
20366 * config/crx/crx.c (crx_attribute_table): Likewise.
20367 * config/m32r/m32r.c (m32r_attribute_table): Likewise.
20368 * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
20369 * config/mcore/mcore.c (mcore_attribute_table): Likewise.
20370 * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
20371 * config/sh/sh.c (sh_attribute_table): Likewise.
20372 * config/sparc/sparc.c (sparc_attribute_table): Likewise.
20373 * config/spu/spu.c (spu_attribute_table): Likewise.
20374 * config/v850/v850.c (v850_attribute_table): Likewise.
20375
20376 * config/alpha/alpha.c (vms_attribute_table): Make static.
20377 * config/bfin/bfin.c (bfin_attribute_table): Likewise.
20378 * config/h8300/h8300.c (h8300_attribute_table): Likewise.
20379 * config/mips/mips.c (mips_attribute_table): Likewise.
20380
20381 * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
20382 $(SYSTEM_H).
20383 (cc1-checksum.o): Likewise.
20384
20385 2009-06-03 Steve Ellcey <sje@cup.hp.com>
20386
20387 * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
20388
20389 2009-06-03 Jakub Jelinek <jakub@redhat.com>
20390
20391 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
20392 insn if it is changing sp. Use gen_add3_insn instead of
20393 conditionally gen_addsi3 and gen_adddi3.
20394 (offset_below_red_zone_p): New static inline function.
20395 (rs6000_emit_epilogue): Emit needed epilogue unwind info.
20396 Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
20397 * config/rs6000/ppc-asm.h: Include auto-host.h.
20398 (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
20399 CFI_RESTORE): Define.
20400 * config/rs6000/crtresxgpr.asm: Add unwind info.
20401 * config/rs6000/crtresxfpr.asm: Likewise.
20402 * config/rs6000/crtresgpr.asm: Likewise.
20403 * config/rs6000/crtresfpr.asm: Likewise.
20404 * config/rs6000/crtsavgpr.asm: Likewise.
20405 * config/rs6000/crtsavfpr.asm: Likewise.
20406
20407 * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
20408 argument of DWARF2_FRAME_REG_OUT macros.
20409
20410 2009-06-03 Julian Brown <julian@codesourcery.com>
20411
20412 * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
20413 words or less (including TImode) in core registers.
20414
20415 2009-06-03 Richard Guenther <rguenther@suse.de>
20416
20417 PR middle-end/40328
20418 * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
20419
20420 2009-06-03 Andrey Belevantsev <abel@ispras.ru>
20421
20422 * statistics.c (statistics_counter_event): Do not record event
20423 in pass dump if its number == -1.
20424 (curr_statistics_hash): Add assert that we never get passes
20425 with static number == -1.
20426
20427 2009-06-03 Richard Guenther <rguenther@suse.de>
20428 Andrey Belevantsev <abel@ispras.ru>
20429
20430 * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
20431 non-BLKmode arrays addressable.
20432
20433 2009-06-03 Maxim Kuvyrkov <maxim@codesourcery.com>
20434
20435 * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
20436 * config/m68k/m68k.h: ... here.
20437
20438 2009-06-03 Martin Jambor <mjambor@suse.cz>
20439
20440 PR tree-optimization/40323
20441 * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
20442 assignment.
20443
20444 2009-06-03 Richard Guenther <rguenther@suse.de>
20445
20446 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
20447 consistently.
20448
20449 2009-06-03 Shujing Zhao <pearly.zhao@oracle.com>
20450
20451 * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
20452 JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
20453 JUMP_TABLE_DATA_P where applicable.
20454 * config/sh/sh.c: Ditto.
20455 * config/sh/sh.h: Ditto.
20456 * config/sh/sh.md: Ditto.
20457 * config/sh/symbian.c: Ditto.
20458
20459 2009-06-03 Uros Bizjak <ubizjak@gmail.com>
20460
20461 * config/i386/driver-i386.c (describe_cache): Optimize
20462 concatenation of strings. Use snprintf instead of sprintf.
20463 (host_detect_local_cpu): Ditto. Ignore -march and -mtune for native
20464 target when not compiling with GCC.
20465
20466 2009-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
20467
20468 * config/sh/sh.c: Revert last change.
20469 (sh_expand_epilogue): Emit a blockage insn before the frame
20470 pointer adjustment unconditionally.
20471
20472 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
20473
20474 * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
20475 * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
20476 * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
20477 * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
20478 to COLLECT_GCC_OPTIONS.
20479
20480 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
20481
20482 * collect2.c (target_system_root): New variable.
20483 (main): Handle --sysroot=.
20484 (ignore_library): Strip the sysroot from the library path.
20485
20486 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
20487
20488 * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
20489 (collect2.o): Depend on collect2-aix.h.
20490 (collect2-aix.o): New rule.
20491 * collect2-aix.h: New file.
20492 * collect2-aix.c: Likewise.
20493 * collect2.c: Include collect2-aix.h. Don't undefine
20494 OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
20495 Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
20496 Use TARGET_AIX_VERSION instead of _AIX51.
20497 * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
20498 * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
20499 * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
20500 * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
20501 * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
20502
20503 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
20504
20505 * collect2.c (ignore_library): Avoid premature post-increment
20506 and null deference.
20507
20508 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
20509
20510 * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
20511 * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
20512 !CROSS_DIRECTORY_STRUCTURE alternative and use it for
20513 CROSS_DIRECTORY_STRUCTURE too.
20514 (LINK_LIBG_SPEC): Likewise.
20515 (LIB_SPEC): Add %R to sysroot paths.
20516 * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
20517 (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
20518 * config/rs6000/aix51.h: As for aix43.h.
20519 * config/rs6000/aix52.h: Likewise.
20520 * config/rs6000/aix53.h: Likewise.
20521 * config/rs6000/aix61.h: Likewise.
20522 * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
20523 to the beginning of sysroot paths.
20524
20525 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
20526
20527 * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
20528 INSN_LISTs that are out of the REG_NOTE range.
20529
20530 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
20531
20532 * loop-unroll.c (struct iv_to_split): Add pointer to next.
20533 (struct var_to_expand): Likewise.
20534 (struct opt_info): Add head and tail for linked lists of the above.
20535 (analyze_insn_to_expand_var): Initialize next.
20536 (analyze_iv_to_split_insn): Likewise.
20537 (analyze_insns_in_loop): Create linked lists.
20538 (allocate_basic_variable): Simplify for use without hash table.
20539 (insert_var_expansion_initialization): Likewise, make it type-safer.
20540 (combine_var_copies_in_loop_exit): Likewise.
20541 (apply_opt_in_copies): Walk lists rather than hash tables.
20542 (release_var_copies): Simplified and inlined by hand into...
20543 (free_opt_info): ... this function.
20544
20545 2009-06-02 Richard Guenther <rguenther@suse.de>
20546
20547 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
20548 for field decls.
20549
20550 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
20551
20552 * cfgexpand.c (gimple_expand_cfg): Discard the source location
20553 only for builtins that are not overridden.
20554
20555 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
20556
20557 * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
20558 label string.
20559
20560 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
20561
20562 * df-core.c (df_ref_debug): Honor -fdump-noaddr.
20563
20564 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
20565
20566 * combine.c (move_deaths): Compare LUIDs within the same BB only.
20567
20568 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
20569
20570 * common.opt (fdump-unnumbered-links): New.
20571 * doc/invoke.texi (-fdump-unnumbered-links): Document it.
20572 * print-rtl.c (flag_dump_unnumbered_links): New.
20573 (print_rtx): Test it.
20574
20575 2009-06-02 Richard Earnshaw <rearnsha@arm.com>
20576
20577 * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
20578 push/pop multiple to 8-byte alignment.
20579
20580 2009-06-01 Jakub Jelinek <jakub@redhat.com>
20581
20582 * config/i386/i386.c (queued_cfa_restores): New static variable.
20583 (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
20584 functions.
20585 (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
20586 (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
20587 Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
20588 Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
20589 note unconditionally.
20590 (ix86_emit_restore_regs_using_mov): Likewise.
20591 (ix86_emit_restore_sse_regs_using_mov): Likewise.
20592 (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
20593 it through to ix86_emit_restore_reg_using_pop.
20594 (ix86_emit_leave): Add RED_OFFSET argument. Call
20595 ix86_add_queued_cfa_restore_notes. Call ix86_add_cfa_restore_note
20596 instead of adding REG_CFA_OFFSET note unconditionally.
20597 (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
20598 the above functions. Call ix86_add_queued_cfa_restore_notes when
20599 needed.
20600
20601 * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
20602 force output of the label even for dwarf2out_do_cfi_asm.
20603 (add_fde_cfi): If -g2 and above and cfi might change CFA,
20604 force creation of CFI label and chain DW_CFA_set_loc jumping to it
20605 for convert_cfa_to_fb_loc_list. Adjust other dwarf2out_cfi_label
20606 caller.
20607 (dwarf2out_stack_adjust, dwarf2out_frame_debug,
20608 dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
20609 dwarf2out_cfi_label callers.
20610 * tree.h (dwarf2out_cfi_label): Adjust prototype.
20611 * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
20612 Adjust dwarf2out_cfi_label callers.
20613 * config/vax/vax.c (vax_output_function_prologue): Likewise.
20614
20615 * config/i386/i386.h (struct machine_cfa_state,
20616 struct machine_function): Guard with ifndef USED_FOR_TARGET
20617 instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
20618
20619 PR other/40024
20620 * emutls.c (__emutls_get_address): Change arr->size to mean number
20621 of allocated arr->data entries instead of # of slots + 1.
20622
20623 PR middle-end/40316
20624 * recog.c (peep2_reinit_state): New function.
20625 (peephole2_init_state): Use it at the end of a basic block and also
20626 when seeing a RTX_FRAME_RELATED_P insn.
20627
20628 2009-06-01 Steve Ellcey <sje@cup.hp.com>
20629
20630 * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
20631 fixuns_truncrfdi2): New.
20632 (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
20633 *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
20634 *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
20635 *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
20636 *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
20637 *recip_approx): Remove.
20638 (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
20639 moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
20640 divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
20641 move to div.md.
20642 * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
20643 setf_exp_rf): New.
20644
20645 2009-06-01 Ian Lance Taylor <iant@google.com>
20646
20647 * attribs.c (register_attribute): Use CONST_CAST.
20648 * collect2.c (main): Use CONST_CAST2.
20649 (scan_prog_file): Likewise.
20650 * gcc.c (process_command, main): Likewise.
20651 * toplev.c (toplev_main): Likewise.
20652
20653 * c-typeck.c (handle_warn_cast_qual): New static function,
20654 partially broken out of build_c_cast.
20655 (build_c_cast): Call handle_warn_cast_qual.
20656 * doc/invoke.texi (Warning Options): Document new effect of
20657 -Wcast-qual.
20658
20659 2009-06-01 Aldy Hernandez <aldyh@redhat.com>
20660
20661 * diagnostic.c (diagnostic_build_prefix): Always print columns.
20662 (diagnostic_report_current_module): Print columns.
20663 * common.opt (flag_show_column): Enable by default.
20664
20665 2009-06-01 Luis Machado <luisgpm@br.ibm.com>
20666
20667 * alias.c (find_base_term): Check for NULL term before returning.
20668
20669 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
20670
20671 Revert due to PR40320:
20672 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
20673 * calls.c (emit_library_call_value_1): Don't force_operand for move
20674 and push insns.
20675
20676 2009-06-01 Olivier Hainque <hainque@adacore.com>
20677 Eric Botcazou <ebotcazou@adacore.com>
20678
20679 * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
20680 to be processed as a bitfield for constructor output purposes.
20681 * output.h (initializer_constant_valid_for_bitfield_p): Declare
20682 new function.
20683 * varasm.c (oc_local_state): New type, output_constructor
20684 local state to support communication with helpers.
20685 (oc_outer_state): New type, output_constructor outer state of
20686 relevance in recursive calls.
20687 (output_constructor_array_range): New output_constructor helper,
20688 extracted code for an array range element.
20689 (output_constructor_regular_field): New output_constructor helper,
20690 extracted code for an element that is not a bitfield.
20691 (output_constructor_bitfield): New output_constructor helper,
20692 extracted code for a bitfield element. Accept an OUTER state
20693 argument for recursive processing. Recurse on record or array
20694 CONSTRUCTOR values, possibly past noop conversions.
20695 (initializer_constant_valid_for_bitfield_p): New predicate. Whether
20696 VALUE is a valid constant-valued expression for use in a static
20697 bit-field initializer.
20698 (output_constructor): Rework to use helpers. Accept and honor an
20699 OUTER state argument for recursive calls. Return total size. Be
20700 prepared for nested constructors initializing bitfields.
20701 (output_constant): Feed OUTER in calls to output_constructor.
20702
20703 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
20704
20705 * calls.c (emit_library_call_value_1): Don't force_operand for move
20706 and push insns.
20707
20708 2009-06-01 Nick Clifton <nickc@redhat.com>
20709
20710 * doc/invoke.texi (IA-64 Options): Fix typo.
20711
20712 2009-06-01 Ira Rosen <irar@il.ibm.com>
20713
20714 PR tree-optimization/39129
20715 * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
20716 printed message.
20717 (vect_do_peeling_for_loop_bound): Use
20718 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
20719 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
20720 (vect_loop_versioning): Likewise.
20721 (vect_create_cond_for_alias_checks): Fix indentation.
20722 * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
20723 macros.
20724 (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
20725 (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
20726 * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
20727 "control flow in loop".
20728 (vect_estimate_min_profitable_iters): Use
20729 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
20730 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
20731 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
20732 (vect_create_data_ref_ptr): Don't mention array dimension in printing.
20733 * tree-vect-stmts.c (vectorizable_store): Replace the check that the
20734 statement belongs to a group of strided accesses with the exact code
20735 check.
20736 (vectorizable_load): Likewise.
20737 * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
20738 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
20739
20740 2009-06-01 Gerald Pfeifer <gerald@pfeifer.com>
20741
20742 * config/freebsd-stdint.h: New file.
20743 * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
20744 Add freebsd-stdint.h to tm_file.
20745
20746 2009-06-01 Richard Earnshaw <rearnsha@arm.com>
20747
20748 * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
20749 (thumb2_extendhidi2): Likewise.
20750
20751 2009-05-31 Ian Lance Taylor <iant@google.com>
20752
20753 * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
20754
20755 2009-05-31 Ian Lance Taylor <iant@google.com>
20756
20757 * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
20758 (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
20759 (ipa-reference.o): Depend upon gt-ipa-reference.h.
20760
20761 2009-05-31 Jason Merrill <jason@redhat.com>
20762
20763 * tree-pretty-print.c (print_call_name): Take the callee, not the
20764 call itself. Make non-static. Use dump_function_name for functions.
20765 (dump_generic_node): Adjust.
20766 * diagnostic.h: Declare print_call_name.
20767 * gimple-pretty-print.c (dump_gimple_call): Use it.
20768
20769 2009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
20770
20771 * config/sh/sh.md (ashldi3_std): New define_expand.
20772 (ashldi3): Use it.
20773
20774 2009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
20775
20776 PR target/40313
20777 * config/sh/sh.c: Include debug.h.
20778 (sh_expand_epilogue): Emit a blockage insn before the frame
20779 pointer adjustment also when dwarf2out_do_frame returns true.
20780
20781 2009-05-31 Richard Earnshaw <rearnsha@arm.com>
20782
20783 * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
20784 (thumb2_extendqidi2): New pattern.
20785
20786 2009-05-31 Ira Rosen <irar@il.ibm.com>
20787
20788 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
20789 mark phis for renaming.
20790 * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
20791 (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
20792 Call mark_sym_for_renaming.
20793 * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
20794 * tree-vect-loop.c (vect_transform_loop): Remove
20795 vect_memsyms_to_rename initialization and a call to
20796 mark_set_for_renaming.
20797
20798 2009-05-31 Jakub Jelinek <jakub@redhat.com>
20799
20800 PR middle-end/40304
20801 * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
20802 frame related even if !set_cfa && style < 0.
20803
20804 2009-05-30 Kai Tietz <kai.tietz@onevision.com>
20805
20806 * config/i386/mingw-tls.c: New file.
20807 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
20808 * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
20809 defining _WIN32 but not __CYGWIN__.
20810
20811 2009-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20812
20813 * configure.ac: Add MPC support.
20814
20815 * config.in, configure: Regenerate.
20816
20817 2009-05-29 Richard Henderson <rth@redhat.com>
20818
20819 * cfgcleanup.c (try_crossjump_to_edge): Only skip past
20820 NOTE_INSN_BASIC_BLOCK.
20821 * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
20822 Duplicate NOTE_INSN_EPILOGUE_BEG notes.
20823 * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
20824 to be deleted.
20825 * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
20826 add in_use field.
20827 (add_cfi): Disable check redefining cfa away from drap.
20828 (lookup_cfa_1): Add remember argument; handle remember/restore.
20829 (lookup_cfa): Pass remember argument.
20830 (cfa_remember): New.
20831 (compute_barrier_args_size_1): Remove sibcall check.
20832 (dwarf2out_frame_debug_def_cfa): New.
20833 (dwarf2out_frame_debug_adjust_cfa): New.
20834 (dwarf2out_frame_debug_cfa_offset): New.
20835 (dwarf2out_frame_debug_cfa_register): New.
20836 (dwarf2out_frame_debug_cfa_restore): New.
20837 (dwarf2out_frame_debug): Handle REG_CFA_* notes.
20838 (dwarf2out_begin_epilogue): New.
20839 (dwarf2out_frame_debug_restore_state): New.
20840 (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
20841 DW_CFA_restore_state.
20842 (output_cfi_directive): Likewise.
20843 (convert_cfa_to_fb_loc_list): Likewise.
20844 (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
20845 * dwarf2out.h: Update.
20846 * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
20847 (copy_insn_1): Early out for null.
20848 * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
20849 and dwarf2out_frame_debug_restore_state.
20850 * function.c (prologue, epilogue, sibcall_epilogue): Remove.
20851 (prologue_insn_hash, epilogue_insn_hash): New.
20852 (free_after_compilation): Adjust freeing accordingly.
20853 (record_insns): Create hash table if needed; push insns into
20854 hash instead of array.
20855 (maybe_copy_epilogue_insn): New.
20856 (contains): Search hash table instead of array.
20857 (sibcall_epilogue_contains): Remove.
20858 (thread_prologue_and_epilogue_insns): Split eh_return insns
20859 and mark them as epilogues.
20860 (reposition_prologue_and_epilogue_notes): Rewrite epilogue
20861 scanning in terms of basic blocks.
20862 * insn-notes.def (CFA_RESTORE_STATE): New.
20863 * jump.c (returnjump_p_1): Accept EH_RETURN.
20864 (eh_returnjump_p_1, eh_returnjump_p): New.
20865 * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
20866 CFA_REGISTER, CFA_RESTORE): New.
20867 * rtl.def (EH_RETURN): New.
20868 * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
20869
20870 * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
20871 (eh_return_internal): Use eh_return rtx; split w/ epilogue.
20872
20873 * config/i386/i386.c (gen_push): Update cfa state.
20874 (pro_epilogue_adjust_stack): Add set_cfa argument. When true,
20875 add a CFA_ADJUST_CFA note.
20876 (ix86_dwarf_handle_frame_unspec): Remove.
20877 (ix86_expand_prologue): Update cfa state.
20878 (ix86_emit_restore_reg_using_pop): New.
20879 (ix86_emit_restore_regs_using_pop): New.
20880 (ix86_emit_leave): New.
20881 (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
20882 (ix86_expand_epilogue): Add notes for unwinding the epilogue.
20883 * config/i386/i386.h (struct machine_cfa_state): New.
20884 (ix86_cfa_state): New.
20885 * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
20886 (eh_return_internal): Merge from eh_return_<mode>,
20887 use eh_return rtx, split w/ epilogue.
20888
20889 2009-05-29 Ian Lance Taylor <iant@google.com>
20890
20891 * builtins.c (validate_gimple_arglist): Don't use va_arg with
20892 enum type.
20893 * calls.c (emit_library_call_value_1): Likewise.
20894
20895 * c-typeck.c (c_build_va_arg): New function.
20896 * c-tree.h (c_build_va_arg): Declare.
20897 * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
20898 instead of build_va_arg.
20899
20900 2009-05-29 Eric Botcazou <ebotcazou@adacore.com>
20901
20902 * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
20903 (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
20904 (ptr_difference_cost): Use affine combinations to compute it.
20905 (difference_cost): Likewise.
20906 (get_computation_cost_at): Compute more accurate cost for addresses
20907 if the ratio is a multiplier allowed in addresses.
20908 For non-addresses, consider that an additional offset or symbol is
20909 added only once.
20910
20911 2009-05-29 Jakub Jelinek <jakub@redhat.com>
20912
20913 * config/i386/i386.c (ix86_decompose_address): Avoid useless
20914 0 displacement. Add 0 displacement if base is %[er]bp or %r13.
20915
20916 * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
20917 TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
20918 (prefix_rex): For UNIT_MMX don't imply the prefix by default
20919 if MODE_DI.
20920 (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
20921 to 1 for TYPE_SSE{IADD1,CVT1}.
20922 (prefix_vex_imm8): Removed.
20923 (length_vex): Only pass 1 as second argument to
20924 ix86_attr_length_vex_default if prefix_extra is 0.
20925 (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
20926 (length): For prefix vex computation use length_immediate
20927 attribute instead of prefix_vex_imm8.
20928 (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
20929 addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
20930 *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
20931 *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
20932 (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
20933 *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
20934 a space in between the operands.
20935 (*anddi_1_rex64, *andsi_1): Likewise. Override prefix_rex to 1
20936 if one operand is 0xff and the other one si, di, bp or sp.
20937 (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
20938 other one si, di, bp or sp.
20939 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
20940 (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
20941 type and mode attributes.
20942 (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
20943 (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
20944 prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
20945 (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
20946 prefix_data16 attribute iff MODE_DF.
20947 (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
20948 (fix_trunc<mode>di_sse): Set prefix_rex attribute.
20949 (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
20950 constm128_operand in length_immediate computation.
20951 (*addhi_4): Likewise. Fix mode attribute to MODE_HI.
20952 (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
20953 (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
20954 length_immediate attribute to 1.
20955 (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
20956 (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
20957 for certain alternatives.
20958 (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
20959 prefix_data16 attribute if MODE_V1DF.
20960 (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
20961 length_immediate to 1.
20962 (set_got_rex64, set_rip_rex64): Remove length attribute, set
20963 length_address to 4, set mode attribute to MODE_DI.
20964 (set_got_offset_rex64): Likewise. Set length_immediate to 0.
20965 (fxam<mode>2_i387): Set length attribute to 4.
20966 (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
20967 *prefetch_3dnow_rex): Override length_address attribute.
20968 (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
20969 attributes.
20970 * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
20971 (constm128_operand): Removed.
20972 * config/i386/i386.c (memory_address_length): For
20973 disp && !index && !base in 64-bit mode account for SIB byte if
20974 print_operand_address can't optimize disp32 into disp32(%rip)
20975 and UNSPEC doesn't imply (%rip) addressing. Add 1 to length
20976 for fs: or gs: segment.
20977 (ix86_attr_length_immediate_default): When checking if shortform
20978 is possible, truncate immediate to the length of the non-shortened
20979 immediate.
20980 (ix86_attr_length_address_default): Ignore MEM_P operands
20981 with X constraint.
20982 (ix86_attr_length_vex_default): Only check for DImode on
20983 GENERAL_REG_P operands.
20984 * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
20985 prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
20986 (sse_cvttps2pi): Clear prefix_rep attribute.
20987 (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
20988 attribute.
20989 (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
20990 (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
20991 *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
20992 iff operand 2 is const_int_operand.
20993 (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
20994 sse2_shufpd_<mode>): Set length_immediate attribute to 1.
20995 (sse2_pshufd_1): Likewise. Set prefix attribute to maybe_vex
20996 instead of vex.
20997 (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
20998 prefix_data16.
20999 (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
21000 prefix_data16 attribute for movlpd and movhpd instructions.
21001 (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise. Override
21002 length_immediate for shufpd instruction.
21003 (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
21004 (avx_cmpp<avxmodesuffixf2c><mode>3,
21005 avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
21006 <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
21007 avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
21008 *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
21009 (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
21010 (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
21011 (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
21012 prefix_data16 attribute for the first alternative to 1.
21013 (*avx_loadlps): Override length_immediate for the first alternative.
21014 (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
21015 attributes for second alternative.
21016 (*vec_concatv2sf_sse4_1): Override length_immediate and
21017 prefix_data16 attributes for second alternative.
21018 (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
21019 vec_extract_hi_<mode>, vec_extract_lo_v16hi,
21020 vec_extract_hi_v16hi, vec_extract_lo_v32qi,
21021 vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
21022 (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
21023 prefix_data16 and length_immediate to 1.
21024 (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
21025 to 1.
21026 (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
21027 prefix_extra attribute for variants that don't have 0f prefix alone.
21028 (*avx_pinsr<ssevecsize>): Likewise. Set length_immediate to 1.
21029 (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
21030 *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
21031 *sse4_1_pextrd): Set length_immediate to 1.
21032 (*sse4_1_pinsrd): Likewise. Set prefix_extra to 1.
21033 (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
21034 to 1.
21035 (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
21036 *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
21037 length_immediate to 1 for second alternative.
21038 (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
21039 prefix_extra and length_immediate attributes for the first
21040 alternative.
21041 (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
21042 first alternative.
21043 (*vec_concatv2di_rex64_sse4_1): Likewise. Override prefix_rex
21044 to 1 for the first and third alternative.
21045 (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
21046 alternative.
21047 (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
21048 attribute.
21049 (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
21050 attribute to 0.
21051 (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
21052 *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
21053 *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
21054 *avx_psign<mode>3): Set prefix_extra attribute to 1.
21055 (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
21056 ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
21057 ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
21058 ssse3_psign<mode>3): Override prefix_rex attribute.
21059 (*avx_palignrti): Override prefix_extra and length_immediate to 1.
21060 (ssse3_palignrti): Override length_immediate to 1.
21061 (ssse3_palignrdi): Override length_immediate to 1, override
21062 prefix_rex attribute.
21063 (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
21064 (sse4a_extrqi): Override length_immediate to 2.
21065 (sse4a_insertqi): Likewise. Override prefix_data16 to 0.
21066 (sse4a_insertq): Override prefix_data16 to 0.
21067 (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
21068 avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
21069 avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
21070 *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
21071 avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
21072 and length_immediate to 1.
21073 (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
21074 sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
21075 sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
21076 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
21077 and length_immediate to 1.
21078 (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
21079 (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
21080 (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
21081 avx_ptest256): Override prefix_extra to 1.
21082 (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
21083 Override prefix_data16 and length_immediate to 1.
21084 (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
21085 sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
21086 sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
21087 sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
21088 prefix_data16 to 0 and prefix_extra to 2.
21089 (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
21090 (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
21091 attribute.
21092 (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
21093 sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
21094 Override prefix_data16 and prefix_rep to 0, length_immediate to 1
21095 and prefix_extra to 2.
21096 (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
21097 prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
21098 (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
21099 avx_vpermilvar<mode>3,
21100 avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
21101 avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
21102 avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
21103 avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
21104 Override prefix_extra to 1.
21105 (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
21106 (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
21107 vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
21108 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
21109 prefix_extra and length_immediate to 1.
21110 (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
21111 modrm to 0.
21112 (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
21113 to 1 for the first alternative.
21114 * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
21115 prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
21116 cases.
21117 (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
21118 *movv2sf_internal_avx, *movv2sf_internal): Override
21119 prefix_rep attribute for certain alternatives.
21120 (*mov<mode>_internal): Override prefix_rep or prefix_data16
21121 attributes for certain alternatives.
21122 (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
21123 attributes for certain alternatives.
21124 (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
21125 *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
21126 mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
21127 mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
21128 *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
21129 mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
21130 mmx_pswapdv2si2): Set prefix_extra attribute to 1.
21131 (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
21132 length_immediate to 1 if operand 2 is const_int_operand.
21133 (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
21134 *vec_extractv2si_1): Set length_immediate attribute to 1.
21135 (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
21136 using old 3DNOW insn rather than SSE/3DNOW_A.
21137 (mmx_emms, mmx_femms): Clear modrm attribute.
21138
21139 2009-05-29 Martin Jambor <mjambor@suse.cz>
21140
21141 * tree-sra.c: New implementation of SRA.
21142
21143 * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
21144 (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
21145 (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
21146 * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
21147 (SRA_MAX_STRUCTURE_COUNT): Removed.
21148 (SRA_FIELD_STRUCTURE_RATIO): Removed.
21149 * doc/invoke.texi (sra-max-structure-size): Removed.
21150 (sra-field-structure-ratio): Removed.
21151
21152 2009-05-29 Jakub Jelinek <jakub@redhat.com>
21153
21154 PR middle-end/40291
21155 * builtins.c (expand_builtin_memcmp): Convert len to sizetype
21156 before expansion.
21157
21158 2009-05-29 Andrey Belevantsev <abel@ispras.ru>
21159
21160 PR rtl-optimization/40101
21161 * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
21162 seqno. Adjust comment.
21163 * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
21164 inserting bookkeeping before a jump, the jump is not scheduled.
21165 When no positive seqno found, provide a value. Add comment.
21166
21167 2009-05-29 Richard Guenther <rguenther@suse.de>
21168
21169 * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
21170 short-cutting on the first component.
21171
21172 2009-05-29 Jakub Jelinek <jakub@redhat.com>
21173
21174 PR middle-end/39958
21175 * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
21176 for trees other than decls/types.
21177
21178 2009-05-29 Richard Guenther <rguenther@suse.de>
21179
21180 * tree-ssa-operands.c (get_expr_operands): Do not handle
21181 INDIRECT_REFs in the handled-component case. Remove
21182 unused get_ref_base_and_extent case.
21183 * tree-dfa.c (get_ref_base_and_extent): Avoid calling
21184 tree_low_cst and host_integerp where possible.
21185 * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
21186 codes for equivalence.
21187 * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
21188
21189 2009-05-29 David Billinghurst <billingd@gcc.gnu.org>
21190
21191 * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
21192 to tmake_file for i[34567]86-*-cygwin*.
21193
21194 2009-05-29 Jakub Jelinek <jakub@redhat.com>
21195
21196 PR target/40017
21197 * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
21198 (altivec_categorize_keyword, init_vector_keywords,
21199 rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
21200 similar to bool.
21201
21202 2009-05-29 Kai Tietz <kai.tietz@onevision.com>
21203
21204 * tree.c (handle_dll_attribute): Check if node is
21205 of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
21206
21207 2009-05-29 Richard Earnshaw <rearnsha@arm.com>
21208
21209 * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
21210 component.
21211 (thumb2_zero_extendqidi2): Likewise.
21212
21213 2009-05-28 Kaz Kojima <kkojima@gcc.gnu.org>
21214
21215 * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
21216 instead of gen_movrt.
21217 * config/sh/sh.md (movrt): Remove.
21218
21219 2009-05-28 Steve Ellcey <sje@cup.hp.com>
21220
21221 * doc/invoke.texi (IA-64 Options):
21222 Add -msdata, -mfused-madd, -mno-inline-float-divide,
21223 -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
21224 -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
21225 -msched-prefer-non-control-spec-insns,
21226 -msched-stop-bits-after-every-cycle,
21227 -msched-count-spec-in-critical-path,
21228 -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
21229 -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
21230 Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
21231 and -msched-spec-verbose.
21232
21233 2009-05-28 Joseph Myers <joseph@codesourcery.com>
21234
21235 * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
21236 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
21237 error if used.
21238 * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
21239
21240 2009-05-28 Richard Guenther <rguenther@suse.de>
21241
21242 * tree-ssa-alias.c (ao_ref_init): New function.
21243 (ao_ref_base): Likewise.
21244 (ao_ref_base_alias_set): Likewise.
21245 (ao_ref_alias_set): Likewise.
21246 (refs_may_alias_p_1): Change signature.
21247 (refs_may_alias_p): Adjust.
21248 (refs_anti_dependent_p): Likewise.
21249 (refs_output_dependent_p): Likewise.
21250 (call_may_clobber_ref_p_1): Change signature.
21251 (call_may_clobber_ref_p): Adjust.
21252 (stmt_may_clobber_ref_p_1): New function split out from ...
21253 (stmt_may_clobber_ref_p): ... here.
21254 (maybe_skip_until): Adjust signature.
21255 (get_continuation_for_phi): Likewise.
21256 (walk_non_aliased_vuses): Likewise.
21257 * tree-ssa-alias.h (struct ao_ref_s): New structure type.
21258 (ao_ref_init): Declare.
21259 (ao_ref_base): Likewise.
21260 (ao_ref_alias_set): Likewise.
21261 (stmt_may_clobber_ref_p_1): Likewise.
21262 (walk_non_aliased_vuses): Adjust.
21263 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
21264 (get_ref_from_reference_ops): remove.
21265 (vn_reference_lookup_2): Adjust signature.
21266 (vn_reference_lookup_3): Do not re-build trees. Handle unions.
21267 (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
21268 (vn_reference_lookup): Adjust.
21269 (vn_reference_insert): Likewise.
21270 (vn_reference_insert_pieces): Adjust signature.
21271 (visit_reference_op_call): Adjust.
21272 * tree-ssa-pre.c (get_expr_type): Simplify.
21273 (phi_translate_1): Adjust.
21274 (compute_avail): Likewise.
21275 (translate_vuse_through_block): Do not re-build trees.
21276 (value_dies_in_block_x): Likewise.
21277 * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
21278 fields.
21279 (vn_reference_lookup_pieces): Adjust declaration.
21280 (vn_reference_insert_pieces): Likewise.
21281
21282 2009-05-28 Benjamin Kosnik <bkoz@redhat.com>
21283
21284 * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
21285 with checking disabled.
21286
21287 2009-05-28 Dave Korn <dave.korn.cygwin@gmail.com>
21288
21289 PR target/37216
21290
21291 * configure.ac (HAVE_GAS_ALIGNED_COMM): Add autoconf test and
21292 macro definition for support of three-operand format aligned
21293 .comm directive in assembler on cygwin/pe/mingw target OS.
21294 * configure: Regenerate.
21295 * config.h: Regenerate.
21296
21297 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Use
21298 aligned form of .comm directive if -mpe-aligned-commons is in effect.
21299 * config/i386/cygming.opt (-mpe-aligned-commons): Add new option.
21300
21301 * doc/invoke.texi (-mpe-aligned-commons): Document new target option.
21302 * doc/tm.texi (ASM_OUTPUT_COMMON): Document zero size commons.
21303
21304 2009-05-28 Ira Rosen <irar@il.ibm.com>
21305
21306 PR tree-optimization/40254
21307 * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
21308 in analysis of basic blocks.
21309
21310 2009-05-28 Adam Nemet <anemet@caviumnetworks.com>
21311
21312 PR middle-end/33699
21313 * target.h (struct gcc_target): Fix indentation. Add const_anchor.
21314 * target-def.h (TARGET_CONST_ANCHOR): New macro.
21315 (TARGET_INITIALIZER): Use it.
21316 * cse.c (CHEAPER): Move it up to the other macros.
21317 (insert): Rename this ...
21318 (insert_with_costs): ... to this. Add cost parameters. Update
21319 function comment.
21320 (insert): New function. Call insert_with_costs.
21321 (compute_const_anchors, insert_const_anchor, insert_const_anchors,
21322 find_reg_offset_for_const, try_const_anchors): New functions.
21323 (cse_insn): Call try_const_anchors. Adjust cost of src_related
21324 when using a const-anchor. Call insert_const_anchors.
21325 * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
21326 * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
21327
21328 2009-05-28 Alexandre Oliva <aoliva@redhat.com>
21329
21330 * tree-inline.c (remap_decls): Enable nonlocalized variables
21331 when not optimizing.
21332
21333 2009-05-28 Alexandre Oliva <aoliva@redhat.com>
21334
21335 * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
21336 Simplify other tests involving optimize.
21337
21338 2009-05-27 Tom Tromey <tromey@redhat.com>
21339
21340 * unwind-dw2.c (_Unwind_DebugHook): New function.
21341 (uw_install_context): Call _Unwind_DebugHook.
21342
21343 2009-05-27 Tom Tromey <tromey@redhat.com>
21344
21345 * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
21346
21347 2009-05-27 Ian Lance Taylor <iant@google.com>
21348
21349 * Makefile.in (LINKER, LINKER_FLAGS): Define.
21350 (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
21351 (ALL_LINKERFLAGS): Define.
21352 (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
21353 (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
21354 (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
21355 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
21356 (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
21357 $(LINKER_FOR_BUILD).
21358 (build/gcov-iov$(build_exeext)): Likewise.
21359
21360 2009-05-27 Julian Brown <julian@codesourcery.com>
21361
21362 * gcse.c (target.h): Include.
21363 (can_assign_to_reg_without_clobbers_p): Check that the target allows
21364 copy of argument to a pseudo register.
21365
21366 2009-05-27 Diego Novillo <dnovillo@google.com>
21367
21368 * tree-ssa-live.c (dump_scope_block): Document arguments.
21369 (dump_scope_blocks): Document.
21370 (debug_scope_blocks): New.
21371 * tree-flow.h (debug_scope_blocks): Declare.
21372
21373 2009-05-21 Denis Chertykov <denisc@overta.ru>
21374
21375 * doc/contrib.texi (Contributors): Add myself to the list.
21376
21377 2009-05-27 Olivier Hainque <hainque@adacore.com>
21378
21379 * expr.c (target_align): New function. Alignment the TARGET of an
21380 assignment may be assume to have.
21381 (highest_pow2_factor_for_target): Use it instead of relying on
21382 immediate tree attributes of TARGET, not necessarily honored when
21383 intermediate bitfields are involved.
21384
21385 2009-05-27 H.J. Lu <hongjiu.lu@intel.com>
21386
21387 PR target/40266
21388 * config/i386/driver-i386.c (host_detect_local_cpu): Support
21389 AVX, SSE4, AES, PCLMUL and POPCNT.
21390
21391 2009-05-27 Diego Novillo <dnovillo@google.com>
21392
21393 * tree-pretty-print.c (dump_location): New.
21394 (dump_generic_node): Call it.
21395 Factor code to handle BLOCK nodes ...
21396 (dump_block_node): ... here.
21397
21398 2009-05-27 Rafael Avila de Espindola <espindola@google.com>
21399
21400 * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
21401 with it.
21402 * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
21403 included.
21404 * gcc-plugin.h: Include config.h and system.h.
21405 (IN_GCC): Define if not defined.
21406
21407 2009-05-27 Hans-Peter Nilsson <hp@axis.com>
21408
21409 PR middle-end/40249
21410 * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
21411 with -fno-inline.
21412
21413 2009-05-27 Shujing Zhao <pearly.zhao@oracle.com>
21414
21415 * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
21416 applicable.
21417 * config/m32r/m32r.h: Ditto.
21418 * config/m32r/m32r.md: Ditto.
21419 * config/m32r/predicates.md: Ditto.
21420
21421 2009-05-27 Alexandre Oliva <aoliva@redhat.com>
21422
21423 * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
21424
21425 2009-05-26 Basile Starynkevitch <basile@starynkevitch.net>
21426
21427 * doc/plugins.texi
21428 (Loading plugins): typo.
21429 (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
21430 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
21431 (Interacting with the GCC Garbage Collector): Added new section.
21432 (Giving information about a plugin): Added new section for
21433 PLUGIN_INFO.
21434 * ggc.h (ggc_register_root_tab): Added declaration.
21435 * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
21436 (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
21437 (register_callback): Improved comment in declaration.
21438 * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
21439 (extra_root_vec) Added static variable for dynamic roots registration.
21440 (ggc_register_root_tab) Added new routine.
21441 (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
21442 PLUGIN_GGC_MARKING event.
21443 * ggc-zone.c: Include plugin.h.
21444 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
21445 * ggc-page.c: Include plugin.h.
21446 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
21447 * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
21448 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
21449 (register_callback): check lack of callbacks for
21450 pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
21451 PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
21452 (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
21453 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
21454 * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
21455 dependency on plugin.h.
21456 (plugin.o): Added dependency on ggc.h...
21457
21458 2009-05-26 Richard Guenther <rguenther@suse.de>
21459
21460 PR middle-end/40248
21461 Revert
21462 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
21463 with mismatched comparison modes.
21464
21465 * expr.c (expand_expr_real_1): Expand the operand of a
21466 VIEW_CONVERT_EXPR in its natural mode.
21467
21468 2009-05-26 Ian Lance Taylor <iant@google.com>
21469
21470 * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
21471 (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
21472 (ALL_COMPILERFLAGS): Define.
21473 (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
21474 (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
21475 (collect2$(exeext), collect2.o): Likewise.
21476 (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
21477 (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
21478 ($(out_object_file), mips-tfile, mips-tdump): Likewise.
21479 (libbackend.o, intl.o, cppdefault.o): Likewise.
21480 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
21481 (build/%.o): Use $(COMPILER_FOR_BUILD).
21482 (build/gen%$(build_exeext)): Likewise.
21483 (build/gcov-iov$(build_exeext)): LIkewise.
21484 * config/t-darwin (darwin.o): Use $(COMPILER).
21485 (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
21486 * config/t-sol2 (sol2-c.o): Likewise.
21487 (sol2.o): Likewise.
21488 * config/t-vxworks (vxworks.o): Likewise.
21489 * config/x-darwin (host-darwin.o): Likewise.
21490 * config/x-hpux (host-hpux.o): Likewise.
21491 * config/x-linux (host-linux.o): Likewise.
21492 * config/x-solaris (host-solaris.o): Likewise.
21493 * config/alpha/x-alpha (driver-alpha.o): Likewise.
21494 * config/arm/t-arm (arm-c.o): Likewise.
21495 * config/arm/t-pe (pe.o): Likewise.
21496 * config/arm/t-wince-pe (pe.o): Likewise.
21497 * config/i386/t-cygming (winnt.o): Likewise.
21498 (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
21499 * config/i386/t-cygwin (cygwin1.o): Likewise.
21500 (cygwin2.o): Likewise.
21501 * config/i386/t-i386 (i386-c.o): Likewise.
21502 * config/i386/t-interix (winnt.o): Likewise.
21503 * config/i386/t-netware (netware.o): Likewise.
21504 * config/i386/t-nwld (nwld.o): Likewise.
21505 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
21506 * config/i386/x-i386 (driver-i386.o): Likewise.
21507 * config/i386/x-cygwin (host-cygwin.o): Likewise.
21508 * config/i386/x-mingw32 (host-mingw32.o): Likewise.
21509 * config/ia64/t-ia64 (ia64-c.o): Likewise.
21510 * config/m32c/t-m32c (m32c-pragma.o): Likewise.
21511 * config/mips/x-native (driver-native.o): Likewise.
21512 * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
21513 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
21514 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
21515 * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
21516 * config/score/t-score-elf (score7.o): Likewise.
21517 (score3.o): Likewise.
21518 * config/sh/t-sh (sh-c.o): Likewise.
21519 * config/sh/t-symbian (sh-c.o): Likewise.
21520 (symbian.o): Likewise.
21521 * config/spu/t-spu-elf (spu-c.o): Likewise.
21522 * config/v850/t-v850 (v850-c.o): Likewise.
21523 * config/v850/t-v850e (v850-c.o): Likewise.
21524
21525 2009-05-26 Richard Guenther <rguenther@suse.de>
21526
21527 PR tree-optimization/40122
21528 * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
21529 VECTOR_CSTs if possible.
21530 (fold_gimple_assign): Likewise.
21531
21532 2009-05-26 Richard Guenther <rguenther@suse.de>
21533
21534 PR middle-end/40252
21535 * fold-const.c (fold_binary): Use the correct types for building
21536 rotates.
21537
21538 2009-05-26 Richard Guenther <rguenther@suse.de>
21539
21540 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
21541 redundant calls to merge_alias_info.
21542 (bump_vector_ptr): Likewise.
21543 * tree-ssa-copy.c (merge_alias_info): Remove.
21544 (replace_exp_1): Remove call to merge_alias_info.
21545 (propagate_tree_value): Likewise.
21546 (fini_copy_prop): Propagate points-to info.
21547 * tree-flow.h (merge_alias_info): Remove.
21548
21549 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
21550
21551 * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
21552
21553 2009-05-25 Jan Hubicka <jh@suse.cz>
21554
21555 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
21556 * cgraph.h (struct inline_summary): New filed self_wize,
21557 size_inlining_benefit, self_time and time_inlining_benefit.
21558 (struct cgraph_global_info): Replace insns by time ans size fields.
21559 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
21560 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
21561 (ipcp_update_callgraph): Do not touch function bodies.
21562 * ipa-inline.c: Include except.h
21563 (MAX_TIME): New constant.
21564 (overall_insns): Remove.
21565 (leaf_node_p): New.
21566 (overall_size, max_benefit): New static variables.
21567 (cgraph_estimate_time_after_inlining): New function.
21568 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
21569 (cgraph_clone_inlined_nodes): Update size.
21570 (cgraph_mark_inline_edge): Update size.
21571 (cgraph_estimate_growth): Use size info.
21572 (cgraph_check_inline_limits): Check size.
21573 (cgraph_default_inline_p): Likewise.
21574 (cgraph_edge_badness): Compute badness based on benefit and size cost.
21575 (cgraph_decide_recursive_inlining): Check size.
21576 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
21577 and times.
21578 (cgraph_decide_inlining): Likewise.
21579 (cgraph_decide_inlining_incrementally): Likewise; honor
21580 PARAM_EARLY_INLINING_INSNS.
21581 (likely_eliminated_by_inlining_p): New predicate.
21582 (estimate_function_body_sizes): New function.
21583 (compute_inline_parameters): Use it.
21584 * except.c (must_not_throw_labels): New function.
21585 * except.h (must_not_throw_labels): Declare.
21586 * tree-inline.c (init_inline_once): Kill inlining_weigths
21587 * tree-ssa-structalias.c: Avoid uninitialized warning.
21588 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
21589 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
21590 (PARAM_INLINE_CALL_COST): Remove.
21591 (PARAM_EARLY_INLINING_INSNS): New.
21592
21593 2009-05-25 Richard Guenther <rguenther@suse.de>
21594
21595 PR tree-optimization/36327
21596 * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
21597 callback for reference translation or lookup at the point of may-defs.
21598 * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
21599 * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
21600 for union COMPONENT_REFs.
21601 (vn_reference_lookup_3): New callback. Lookup from memset
21602 and CONSTRUCTOR assignment, translate through struct copies.
21603 (vn_reference_lookup_pieces): Make sure to not free the
21604 passed operands array. Adjust walk_non_aliased_vuses call.
21605 (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
21606 make sure we do not leak memory.
21607
21608 2009-05-25 Richard Guenther <rguenther@suse.de>
21609
21610 * tree-ssa-alias.h (dump_points_to_solution): Declare.
21611 * tree-inline.c (expand_call_inline): Reset the escaped and
21612 callused solutions.
21613 * tree-ssa-structalias.c (pass_build_ealias): New.
21614 * tree-pass.h (pass_build_ealias): Declare.
21615 * passes.c (init_optimization_passes): Add PTA during
21616 early optimizations.
21617 * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
21618 and CALLUSED solutions.
21619 (dump_points_to_solution): New function, split out from ...
21620 (dump_points_to_info_for): ... here.
21621 * tree-parloops.c (parallelize_loops): Reset the escaped and
21622 callused solutions.
21623
21624 2009-05-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
21625
21626 PR bootstrap/40027
21627 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
21628 * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
21629
21630 2009-05-25 Ira Rosen <irar@il.ibm.com>
21631
21632 PR tree-optimization/40238
21633 * tree-vect-stmts.c (vect_init_vector): Insert initialization
21634 statements after basic block's labels.
21635 * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
21636 to free the allocated memory.
21637
21638 2009-05-24 Kaz Kojima <kkojima@gcc.gnu.org>
21639
21640 * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
21641 return address with a USE.
21642
21643 2009-05-24 Richard Guenther <rguenther@suse.de>
21644
21645 PR middle-end/40233
21646 * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
21647 array type from the main variant of the inner type.
21648
21649 2009-05-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21650
21651 * config/vax/vax-protos.h (legitimate_constant_address_p): Change
21652 definition to bool (from int) to un-break build.
21653 (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
21654
21655 2009-05-24 Paolo Bonzini <bonzini@gnu.org>
21656
21657 * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
21658 discard_stmt_changes): Delete.
21659 * tree-ssa-operands.c (scb_stack): Delete.
21660 (init_ssa_operands): Do not initialize it.
21661 (fini_ssa_operands): Do not free it.
21662 (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
21663
21664 * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
21665 update_stmt, remove the others. Fix comments.
21666 * tree-dfa.c (optimize_stack_restore): Likewise.
21667 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
21668 * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
21669 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
21670 * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
21671 Likewise.
21672 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
21673 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
21674 (dom_opt_finalize_block): Likewise, adjusting access to
21675 stmts_to_rescan.
21676 (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
21677 (stmts_to_rescan): Change item type to gimple.
21678 (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
21679
21680 2009-05-24 Ira Rosen <irar@il.ibm.com>
21681
21682 * doc/passes.texi (Tree-SSA passes): Document SLP pass.
21683 * tree-pass.h (pass_slp_vectorize): New pass.
21684 * params.h (SLP_MAX_INSNS_IN_BB): Define.
21685 * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
21686 * tree-vectorizer.c (timevar.h): Include.
21687 (user_vect_verbosity_level): Declare.
21688 (vect_location): Fix comment.
21689 (vect_set_verbosity_level): Update user_vect_verbosity_level
21690 instead of vect_verbosity_level.
21691 (vect_set_dump_settings): Add an argument. Ignore user defined
21692 verbosity if dump flags require higher level of verbosity. Print to
21693 stderr only for loop vectorization.
21694 (vectorize_loops): Update call to vect_set_dump_settings.
21695 (execute_vect_slp): New function.
21696 (gate_vect_slp): Likewise.
21697 (struct gimple_opt_pass pass_slp_vectorize): New.
21698 * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
21699 access its members.
21700 (vec_info_for_bb): New function.
21701 (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
21702 (VECTORIZATION_ENABLED): New macro.
21703 (SLP_ENABLED, SLP_DISABLED): Likewise.
21704 (vect_is_simple_use): Add bb_vec_info argument.
21705 (new_stmt_vec_info, vect_analyze_data_ref_dependences,
21706 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
21707 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
21708 vect_schedule_slp, vect_analyze_slp): Likewise.
21709 (vect_analyze_stmt): Add slp_tree argument.
21710 (find_bb_location): Declare.
21711 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
21712 * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
21713 (vect_analyze_loop_operations, vect_analyze_loop,
21714 get_initial_def_for_induction, vect_create_epilog_for_reduction,
21715 vect_finalize_reduction, vectorizable_reduction,
21716 vectorizable_live_operation, vect_transform_loop): Likewise.
21717 * tree-data-ref.c (dr_analyze_innermost): Update comment,
21718 skip evolution analysis if analyzing a basic block.
21719 (dr_analyze_indices): Likewise.
21720 (initialize_data_dependence_relation): Skip the test whether the
21721 object is invariant for basic blocks.
21722 (compute_all_dependences): Skip dependence analysis for data
21723 references in basic blocks.
21724 (find_data_references_in_stmt): Don't fail in case of invariant
21725 access in basic block.
21726 (find_data_references_in_bb): New function.
21727 (find_data_references_in_loop): Move code to
21728 find_data_references_in_bb and add a call to it.
21729 (compute_data_dependences_for_bb): New function.
21730 * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
21731 * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
21732 that STEP is 0.
21733 (vect_analyze_data_ref_dependence): Check for interleaving in case of
21734 unknown dependence in basic block and fail in case of dependence in
21735 basic block.
21736 (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
21737 dependence instances from either loop or basic block vectorization
21738 info.
21739 (vect_compute_data_ref_alignment): Check if it is loop vectorization
21740 before calling nested_in_vect_loop_p.
21741 (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
21742 dependence instances from either loop or basic block vectorization
21743 info.
21744 (vect_verify_datarefs_alignment): Likewise.
21745 (vect_enhance_data_refs_alignment): Adjust function calls.
21746 (vect_analyze_data_refs_alignment): Likewise.
21747 (vect_analyze_group_access): Fix printing. Skip different checks if
21748 DR_STEP is 0. Keep strided stores either in loop or basic block
21749 vectorization data structure. Fix indentation.
21750 (vect_analyze_data_ref_access): Fix comments, allow zero step in
21751 basic blocks.
21752 (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
21753 dependence instances from either loop or basic block vectorization
21754 info.
21755 (vect_analyze_data_refs): Update comment. Call
21756 compute_data_dependences_for_bb to analyze basic blocks.
21757 (vect_create_addr_base_for_vector_ref): Check for outer loop only in
21758 case of loop vectorization. In case of basic block vectorization use
21759 data-ref itself as a base.
21760 (vect_create_data_ref_ptr): In case of basic block vectorization:
21761 don't advance the pointer, add new statements before the current
21762 statement. Adjust function calls.
21763 (vect_supportable_dr_alignment): Support only aligned accesses in
21764 basic block vectorization.
21765 * common.opt (ftree-slp-vectorize): New flag.
21766 * tree-vect-patterns.c (widened_name_p): Adjust function calls.
21767 (vect_pattern_recog_1): Likewise.
21768 * tree-vect-stmts.c (process_use): Likewise.
21769 (vect_init_vector): Add new statements in the beginning of the basic
21770 block in case of basic block SLP.
21771 (vect_get_vec_def_for_operand): Adjust function calls.
21772 (vect_finish_stmt_generation): Likewise.
21773 (vectorizable_call): Add assert that it is loop vectorization, adjust
21774 function calls.
21775 (vectorizable_conversion, vectorizable_assignment): Likewise.
21776 (vectorizable_operation): In case of basic block SLP, take
21777 vectorization factor from statement's type and skip the relevance
21778 check. Adjust function calls.
21779 (vectorizable_type_demotion): Add assert that it is loop
21780 vectorization, adjust function calls.
21781 (vectorizable_type_promotion): Likewise.
21782 (vectorizable_store): Check for outer loop only in case of loop
21783 vectorization. Adjust function calls. For basic blocks, skip the
21784 relevance check and don't advance pointers.
21785 (vectorizable_load): Likewise.
21786 (vectorizable_condition): Add assert that it is loop vectorization,
21787 adjust function calls.
21788 (vect_analyze_stmt): Add argument. In case of basic block SLP, check
21789 that it is not reduction, get vector type, call only supported
21790 functions, skip loop specific parts.
21791 (vect_transform_stmt): Check for outer loop only in case of loop
21792 vectorization.
21793 (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
21794 (vect_is_simple_use): Fix comment, add new argument, fix conditions
21795 for external definition.
21796 * passes.c (pass_slp_vectorize): New pass.
21797 * tree-vect-slp.c (find_bb_location): New function.
21798 (vect_get_and_check_slp_defs): Add argument, adjust function calls,
21799 check for patterns only in loops.
21800 (vect_build_slp_tree): Add argument, adjust function calls, fail in
21801 case of multiple types in basic block SLP.
21802 (vect_mark_slp_stmts_relevant): New function.
21803 (vect_supported_load_permutation_p): Fix comment.
21804 (vect_analyze_slp_instance): Add argument. In case of basic block
21805 SLP, take vectorization factor from statement's type, check that
21806 unrolling factor is 1. Adjust function call. Save SLP instance in
21807 either loop or basic block vectorization structure. Return FALSE,
21808 if SLP failed.
21809 (vect_analyze_slp): Add argument. Get strided stores groups from
21810 either loop or basic block vectorization structure. Return FALSE
21811 if basic block SLP failed.
21812 (new_bb_vec_info): New function.
21813 (destroy_bb_vec_info, vect_slp_analyze_node_operations,
21814 vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
21815 (vect_schedule_slp): Add argument. Get SLP instances from either
21816 loop or basic block vectorization structure. Set vectorization factor
21817 to be 1 for basic block SLP.
21818 (vect_slp_transform_bb): New function.
21819 * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
21820
21821 2009-05-23 Mark Mitchell <mark@codesourcery.com>
21822
21823 * final.c (shorten_branches): Do not align labels for jump tables.
21824 (final_scan_insn): Use JUMP_TABLE_DATA_P.
21825
21826 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
21827
21828 * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
21829 Remove outdated reference to flow.c and fix nits.
21830 * doc/gccint.texi: Tweak RTL description.
21831 * doc/rtl.texi: Likewise.
21832
21833 2009-05-23 Denis Chertykov <chertykov@gmail.com>
21834
21835 * config/avr/avr.c: Change my email address.
21836 * config/avr/avr.h: Likewise.
21837 * config/avr/avr.md: Likewise.
21838 * config/avr/avr-protos.h: Likewise.
21839 * config/avr/libgcc.S: Likewise.
21840
21841 2009-05-22 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
21842
21843 * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
21844 (spu_split_load, spu_split_store): Change return type to int.
21845 (spu_split_convert): Declare.
21846 * config/spu/predicates.md (spu_mem_operand): Remove.
21847 (spu_mov_operand): Update.
21848 (spu_dest_operand, shiftrt_operator, extend_operator): Define.
21849 * config/spu/spu.c (regno_aligned_for_load): Remove.
21850 (reg_aligned_for_addr, spu_expand_load): Define.
21851 (spu_expand_extv): Reimplement and handle MEM.
21852 (spu_expand_insv): Handle MEM.
21853 (spu_sched_reorder): Handle insn's with length 0.
21854 (spu_legitimate_address_p): Reimplement.
21855 (store_with_one_insn_p): Return TRUE for any mode with size
21856 larger than 16 bytes.
21857 (address_needs_split): Define.
21858 (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
21859 operands.
21860 (spu_convert_move): Define.
21861 (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
21862 (spu_split_store): Change all MEM's to TImode.
21863 (spu_init_expanders): Preallocate registers that correspond to
21864 LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
21865 mark_reg_pointer.
21866 (spu_split_convert): Define.
21867 * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
21868 (_move<mode>, _movdi, _movti): Update predicate and condition.
21869 (load, store): Change to define_split.
21870 (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
21871 extend<mode>ti2.
21872 (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
21873 (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
21874 define_insn_and_split of lshr<mode>3.
21875 (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
21876 (<v>ashr<mode>3_imm): Define.
21877 (extv, extzv, insv): Allow MEM operands.
21878 (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
21879 shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
21880 sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
21881 (_spu_convert2): Change to define_insn_and_split and remove the
21882 corresponding define_peephole2.
21883 (stack_protect_set, stack_protect_test, stack_protect_test_si):
21884 Change predicates to memory_operand.
21885
21886 2009-05-22 Mark Mitchell <mark@codesourcery.com>
21887
21888 * config/arm/thumb2.md: Add 16-bit multiply instructions.
21889
21890 2009-05-21 Michael Meissner <meissner@linux.vnet.ibm.com>
21891
21892 PR tree-optimization/40219
21893 * tree.c (iterative_hash_expr): Make sure the builtin function is
21894 a normal builtin function and not a front end or back end builtin
21895 before indexing into the built_in_decls array.
21896
21897 2009-05-22 Richard Guenther <rguenther@suse.de>
21898
21899 PR middle-end/38964
21900 * alias.c (write_dependence_p): Do not use TBAA for answering
21901 anti-dependence or output-dependence.
21902 * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
21903 (emit_pointer_definition): Remove.
21904 (emit_alias_warning): Likewise.
21905 (find_what_var_points_to): Remove TBAA pruning code.
21906 (find_what_p_points_to): Likewise. Do not warn about strict-aliasing
21907 violations.
21908 (compute_points_to_sets): Remove code computing the set of
21909 dereferenced pointers.
21910 * tree-data-ref.c (dr_may_alias_p): Properly use the split
21911 oracle for querying anti and output dependencies.
21912 * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
21913 if TBAA may be applied.
21914 (refs_anti_dependent_p): New function.
21915 (refs_output_dependent_p): Likewise.
21916 * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
21917 (refs_output_dependent_p): Likewise.
21918 * doc/tree-ssa.texi (Memory model): New section.
21919 * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
21920 * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
21921 * cfgexpand.c (expand_gimple_basic_block): Do not handle
21922 GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
21923 * expr.c (expand_expr_real_1): Likewise.
21924 * gimple-low.c (lower_stmt): Likewise.
21925 * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
21926 (dump_gimple_cdt): Remove.
21927 * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
21928 (gimple_size): Likewise.
21929 (walk_gimple_op): Likewise.
21930 (is_gimple_stmt): Likewise.
21931 (walk_stmt_load_store_addr_ops): Likewise.
21932 (gimple_build_cdt): Remove.
21933 * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
21934 * gimple.h (gimple_cdt_new_type): Remove.
21935 (gimple_cdt_new_type_ptr): Likewise.
21936 (gimple_cdt_set_new_type): Likewise.
21937 (gimple_cdt_location): Likewise.
21938 (gimple_cdt_location_ptr): Likewise.
21939 (gimple_cdt_set_location): Likewise.
21940 * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
21941 * tree-cfg.c (remove_useless_stmts_1): Do not handle
21942 GIMPLE_CHANGE_DYNAMIC_TYPE.
21943 (verify_types_in_gimple_stmt): Likewise.
21944 * tree-inline.c (estimate_num_insns): Likewise.
21945 (expand_call_inline): Do not copy DECL_NO_TBAA_P.
21946 (copy_decl_to_var): Likewise.
21947 (copy_result_decl_to_var): Likewise.
21948 * tree-pretty-print.c (dump_generic_node): Do not handle
21949 CHANGE_DYNAMIC_TYPE_EXPR.
21950 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
21951 * tree-ssa-operands.c (get_expr_operands): Likewise.
21952 * tree-ssa-structalias.c (struct variable_info): Remove
21953 no_tbaa_pruning member.
21954 (new_var_info): Do not set it based on DECL_NO_TBAA_P.
21955 (unify_nodes): Do not copy it.
21956 (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
21957 (dump_solution_for_var): Do not dump no_tbaa_pruning state.
21958 (set_uids_in_ptset): Do not check it.
21959 (find_what_var_points_to): Likewise.
21960 (compute_tbaa_pruning): Remove.
21961 (compute_points_to_sets): Do not call it.
21962 * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
21963 * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
21964 * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
21965 (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
21966 (DECL_NO_TBAA_P): Likewise.
21967 (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
21968 * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
21969 (expand_omp_atomic_pipeline): Do not set it.
21970 * print-tree.c (print_node): Do not dump it.
21971 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
21972 redundant check.
21973
21974 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
21975
21976 PR target/39856
21977 * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
21978 for clobber.
21979
21980 2009-05-22 Mark Mitchell <mark@codesourcery.com>
21981
21982 * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
21983 non-external.
21984
21985 2009-05-22 Ben Elliston <bje@au.ibm.com>
21986
21987 * Makefile.in (bversion.h, s-bversion): New targets.
21988 (TOPLEV_H): Add bversion.h.
21989 * toplev.h: Include "bversion.h".
21990 (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
21991 the __format__ attribute only if compiling with the same version
21992 of GCC as the sources (the "build version").
21993
21994 2009-05-22 Ben Elliston <bje@au.ibm.com>
21995
21996 * c-format.c (handle_format_attribute): Fix comment typo.
21997
21998 2009-05-21 Steve Ellcey <sje@cup.hp.com>
21999
22000 PR target/37846
22001 * config/ia64/ia64.opt (mfused-madd): New.
22002 * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
22003 * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
22004 * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
22005 madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
22006 nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
22007 msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
22008 nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
22009 * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
22010 instruction if !TARGET_FUSED_MADD.
22011 (fpma, fpms): Remove colon from name.
22012
22013 2009-05-22 Richard Guenther <rguenther@suse.de>
22014
22015 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
22016 TMR_ORIGINAL. Always either record TMR_SYMBOL or TMR_BASE.
22017 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
22018 TARGET_MEM_REF.
22019 (create_expression_by_pieces): Only convert if necessary.
22020 * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
22021 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
22022
22023 2009-05-21 Adam Nemet <anemet@caviumnetworks.com>
22024
22025 * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
22026 regular pattern from a template and rename it ...
22027 (*extzv_truncsi_exts): ... to this.
22028
22029 2009-05-21 Richard Guenther <rguenther@suse.de>
22030
22031 * cgraph.h (struct cgraph_node): Remove inline_decl member.
22032 * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
22033 (cgraph_default_inline_p): Likewise.
22034 (cgraph_decide_inlining_incrementally): Likewise.
22035
22036 2009-05-21 H.J. Lu <hongjiu.lu@intel.com>
22037 Uros Bizjak <ubizjak@gmail.com>
22038
22039 * config/i386/cpuid.h (bit_MOVBE): New.
22040
22041 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
22042
22043 * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
22044 (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
22045 (ix86_handle_option): Handle OPT_mmovbe.
22046 (ix86_target_string): Add -mmovbe.
22047 (pta_flags): Add PTA_MOVBE.
22048 (processor_alias_table): Add PTA_MOVBE to "atom".
22049 (override_options): Handle PTA_MOVBE.
22050
22051 * config/i386/i386.h (TARGET_MOVBE): New.
22052
22053 * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
22054 (*bswapsi_movbe): New.
22055 (*bswapdi_movbe): Likewise.
22056 (bswapdi2): Renamed to ...
22057 (*bswapdi_1): This.
22058 (bswapdi2): New expander.
22059
22060 * config/i386/i386.opt (mmovbe): New.
22061
22062 * doc/invoke.texi: Document -mmovbe.
22063
22064 2009-05-21 Taras Glek <tglek@mozilla.com>
22065
22066 * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
22067 * gcc-plugin.h (plugin_init): Updated signature.
22068 * gcc-plugin.h (plugin_name_args): Moved to this header.
22069 * doc/plugins.texi (plugin_init): Updated documention to reflect
22070 API change.
22071 * doc/plugins.texi (plugin_name_args): Added to documention.
22072
22073 2009-05-21 Mark Mitchell <mark@codesourcery.com>
22074
22075 * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
22076 (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
22077
22078 2009-05-21 Shujing Zhao <pearly.zhao@oracle.com>
22079
22080 * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
22081 JUMP_TABLE_DATA_P predicates where applicable.
22082 * config/i386/predicates.md: Ditto.
22083 * config/i386/sse.md: Ditto.
22084
22085 2009-05-21 Jakub Jelinek <jakub@redhat.com>
22086
22087 * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
22088 operand2 -128 override length_immediate attribute to 1.
22089 * config/i386/predicates.md (constm128_operand): New predicate.
22090
22091 * config/i386/i386.c (memory_address_length): Handle %r12
22092 the same as %rsp and %r13 the same as %rbp. For %rsp and %rbp
22093 also check REGNO.
22094 (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
22095 mode look through optional ZERO_EXTEND and SUBREG.
22096 * config/i386/i386.md (R12_REG): New define_constant.
22097 (prefix_data16): For sse unit set also for MODE_TI insns.
22098 (prefix_rex): For -m32 always return 0. For TYPE_IMOVX
22099 insns set if operand 1 is ext_QIreg_operand.
22100 (modrm): For TYPE_IMOV clear only if not MODE_DI. For
22101 TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
22102 immediate.
22103 (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
22104 mode from MODE_DI to MODE_SI.
22105 (movdi_1_rex64): Override modrm and length_immediate attributes
22106 only for movabs (TYPE_IMOV, alternative 2).
22107 (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
22108 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
22109 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
22110 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
22111 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
22112 prefix_rex attribute if DImode.
22113 (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
22114 *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
22115 *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
22116 *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
22117 attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
22118 (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
22119 Likewise. For TYPE_IMOV clear length_immediate attribute.
22120 (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
22121 *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
22122 *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
22123 *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
22124 *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
22125 or one operand TYPE_ISHIFT.
22126 (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
22127 *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
22128 *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
22129 *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
22130 *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
22131 *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
22132 *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
22133 *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
22134 *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
22135 *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
22136 *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
22137 *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
22138 *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
22139 *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
22140 *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
22141 *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
22142 *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
22143 set mode attribute, don't override length attribute.
22144 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
22145 to 1.
22146 (return_internal_long): Set length attribute to 2 instead of 1.
22147 (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
22148 *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
22149 prefix_rex attribute.
22150 * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
22151 New predicates.
22152 (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
22153
22154 2009-05-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22155
22156 * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
22157
22158 2009-05-20 Ian Lance Taylor <iant@google.com>
22159
22160 * tree.c (build_tree_list_vec_stat): New function.
22161 (ctor_to_vec): New function.
22162 (build_nt_call_vec): New function.
22163 (build_call_array): Change args to be a const pointer.
22164 (build_call_vec): New function.
22165 * tree.h (build_nt_call_vec): Declare.
22166 (build_tree_list_vec_stat): Declare.
22167 (build_tree_list_vec): Define.
22168 (build_call_array): Update declaration.
22169 (build_call_vec): Declare.
22170 (ctor_to_vec): Declare.
22171 * c-common.c (tree_vector_cache): New static variable.
22172 (make_tree_vector): New function.
22173 (release_tree_vector): New function.
22174 (make_tree_vector_single): New function.
22175 (make_tree_vector_copy): New function.
22176 * c-common.h (tree_vector_cache, make_tree_vector): Declare.
22177 (make_tree_vector_single, make_tree_vector_copy): Declare.
22178 * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
22179 (c_parser_expr_list): Don't manage cache here, instead call
22180 make_tree_vector.
22181 (c_parser_release_expr_list): Remove static function.
22182 (c_parser_vec_to_tree_list): Remove static function.
22183 (c_parser_attributes): Call build_tree_list_vec instead of
22184 c_parser_vec_to_tree_list. Call release_tree_vector instead of
22185 c_parser_release_expr_list.
22186 (c_parser_postfix_expression_after_primary): Likewise.
22187 (c_parser_objc_keywordexpr): Likewise.
22188
22189 2009-05-20 Sandra Loosemore <sandra@codesourcery.com>
22190
22191 * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
22192 TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
22193 TARGET_CONVERT_TO_TYPE.
22194 * hooks.c (hook_tree_const_tree_null): Define.
22195 * hooks.h (hook_tree_const_tree_null): Declare.
22196 * target.h (struct gcc_target): Add invalid_parameter_type,
22197 invalid_return_type, promoted_type, and convert_to_type fields.
22198 * target-def.h (TARGET_INVALID_PARAMETER_TYPE): Define.
22199 (TARGET_INVALID_RETURN_TYPE): Define.
22200 (TARGET_PROMOTED_TYPE): Define.
22201 (TARGET_CONVERT_TO_TYPE): Define.
22202 (TARGET_INITIALIZER): Update for new fields.
22203 * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
22204 (grokparms): Check targetm.invalid_parameter_type.
22205 * c-typeck.c (default_conversion): Check targetm.promoted_type.
22206 * c-convert.c (convert): Check targetm.convert_to_type.
22207
22208 2009-05-20 Adam Nemet <anemet@caviumnetworks.com>
22209
22210 * config/mips/mips.md (*extenddi_truncate<mode>,
22211 *extendsi_truncate<mode>): Emit exts if supported. Add attribute
22212 defintions.
22213 (*extendhi_truncateqi): New define_insn_and_sptit.
22214
22215 2009-05-20 Jakub Jelinek <jakub@redhat.com>
22216
22217 PR middle-end/40204
22218 * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
22219 recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
22220
22221 2009-05-20 Eric Botcazou <ebotcazou@adacore.com>
22222
22223 * fold-const.c (build_fold_addr_expr_with_type): Take the address of
22224 the operand of VIEW_CONVERT_EXPR.
22225
22226 2009-05-20 H.J. Lu <hongjiu.lu@intel.com>
22227
22228 * config/i386/driver-i386.c (host_detect_local_cpu): Check
22229 extended family and model for Intel processors. Support Intel Atom.
22230
22231 2009-05-20 Olivier Hainque <hainque@adacore.com>
22232
22233 * gstab.h (stab_code_type): Define, to be used instead of the
22234 __stab_debug_code enum, made anonymous. Add 2009 to the copyright
22235 notice.
22236 * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
22237 occurrences by stab_code_type.
22238 * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
22239
22240 2009-05-20 Martin Jambor <mjambor@suse.cz>
22241
22242 * tree-flow.h (insert_edge_copies_seq): Undeclare.
22243 (sra_insert_before): Likewise.
22244 (sra_insert_after): Likewise.
22245 (sra_init_cache): Likewise.
22246 (sra_type_can_be_decomposed_p): Likewise.
22247 * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
22248 * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
22249 (sra_insert_before): Likewise.
22250 (sra_insert_after): Likewise.
22251 (sra_init_cache): Likewise.
22252 (insert_edge_copies_seq): Made static and moved upwards.
22253
22254 * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
22255 case.
22256
22257 * tree-flow-inline.h (contains_view_convert_expr_p): New function.
22258
22259 * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
22260 (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
22261 simple copies.
22262
22263 2009-05-20 Richard Guenther <rguenther@suse.de>
22264
22265 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
22266 with mismatched comparison modes.
22267
22268 2009-05-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22269
22270 * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
22271 (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
22272 * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
22273 with shifts for Thumb2.
22274 (orsi_notsi): New for orn.
22275 (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
22276 (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
22277 * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
22278 (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
22279 Don't invert remainder for IOR.
22280
22281 2009-05-19 Zdenek Dvorak <ook@ucw.cz>
22282
22283 PR tree-optimization/40087
22284 * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
22285 number_of_iterations_ne): Rename never_infinite argument.
22286 (number_of_iterations_lt_to_ne, number_of_iterations_lt,
22287 number_of_iterations_le): Handle pointer-type ivs when
22288 exit_must_be_taken is false.
22289 (number_of_iterations_cond): Do not always assume that
22290 exit_must_be_taken if the control variable is a pointer.
22291
22292 2009-05-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
22293
22294 * c-typeck.c (build_binary_op): Allow % on integal vectors.
22295 * doc/extend.texi (Vector Extension): Document that % is allowed too.
22296
22297 2009-05-19 H.J. Lu <hongjiu.lu@intel.com>
22298
22299 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
22300 ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
22301
22302 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
22303
22304 PR c/40172
22305 * c.opt (Wlogical-op): Disabled by default.
22306 * c-opt (c_common_post_options): Do not enable Wlogical-op with
22307 Wextra.
22308 * doc/invoke.texi (Wlogical-op): Likewise.
22309
22310 2009-05-19 Eric Botcazou <ebotcazou@adacore.com>
22311
22312 * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
22313 into CASE_CONVERT.
22314 <PLUS_EXPR>: Strip useless type conversions instead of type nops.
22315 Propagate the type of the first operand.
22316 <ASSERT_EXPR>: Simplify.
22317 (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
22318 Rewrite using the RHS code as discriminant.
22319 <NOP_EXPR>: Turn into CASE_CONVERT.
22320 <PLUS_EXPR>: Propagate the type of the first operand.
22321
22322 2009-05-19 Steve Ellcey <sje@cup.hp.com>
22323
22324 * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
22325 (ia64_dconst_0_375): New.
22326 * config/ia64/ia64.c (ia64_override_options): Remove
22327 -minline-sqrt-min-latency warning.
22328 (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
22329 (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
22330 * config/ia64/ia64.md (*sqrt_approx): Remove.
22331 (sqrtsf2): Remove #if 0.
22332 (sqrtsf2_internal_thr): Rewrite and move to div.md.
22333 (sqrtdf): Remove assert.
22334 (sqrtdf2_internal_thr): Rewrite and move to div.md.
22335 (sqrtxf2): Remove #if 0.
22336 (sqrtxf2_internal_thr): Rewrite and move to div.md.
22337 * div.md (sqrt_approx_rf): New.
22338 (sqrtsf2_internal_thr): New implementation.
22339 (sqrtsf2_internal_lat): New.
22340 (sqrtdf2_internal_thr: New implementation.
22341 (sqrtxf2_internal): New implementation.
22342
22343 2009-05-19 Francois-Xavier Coudert <fxcoudert@gmail.com>
22344 Hans-Peter Nilsson <hp@axis.com>
22345
22346 * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
22347 (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
22348 (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
22349 (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
22350 (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
22351 (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
22352 (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
22353 (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
22354 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
22355 (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
22356 * c-common.c: ...from here.
22357
22358 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
22359
22360 * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
22361
22362 2009-05-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22363
22364 * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
22365
22366 2009-05-19 Ben Elliston <bje@au.ibm.com>
22367
22368 * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
22369 assignments with memcpy calls.
22370 (add_fdes): Likewise.
22371 (binary_search_unencoded_fdes): Likewise.
22372 (linear_search_fdes): Eliminate type puns.
22373
22374 2009-05-19 Richard Guenther <rguenther@suse.de>
22375
22376 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
22377 not falsely claim to have propagated into all uses.
22378
22379 2009-05-19 Ben Elliston <bje@au.ibm.com>
22380
22381 * doc/invoke.texi (C Dialect Options): Update OpenMP specification
22382 version to v3.0.
22383
22384 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
22385
22386 * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
22387 * config/sh/sh.c (sh_legitimate_address_p): Make static.
22388 (TARGET_LEGITIMATE_ADDRESS_P): New.
22389 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22390 * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
22391
22392 2009-05-18 Dodji Seketeli <dodji@redhat.com>
22393
22394 PR debug/40109
22395 * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
22396 child of the containing namespace's DIE.
22397
22398 2009-05-18 Adam Nemet <anemet@caviumnetworks.com>
22399
22400 * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
22401 *zero_extendhi_truncqi): Move after the zero_extend patterns.
22402 (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
22403 extend patterns.
22404
22405 2009-05-18 H.J. Lu <hongjiu.lu@intel.com>
22406
22407 PR target/39942
22408 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
22409 gen_align with gen_pad.
22410 (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
22411 #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
22412
22413 * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
22414 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
22415
22416 * config/i386/i386.md (align): Renamed to ...
22417 (pad): This. Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
22418 ASM_OUTPUT_MAX_SKIP_PAD.
22419
22420 2009-05-18 Andreas Schwab <schwab@linux-m68k.org>
22421
22422 * config.gcc: Fix variable syntax.
22423
22424 PR target/39531
22425 * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
22426 before calling exact_log2.
22427 (output_iorsi3): Likewise.
22428 (output_xorsi3): Likewise.
22429
22430 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
22431
22432 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
22433 for the none zero constant operand except for EQ and NE
22434 comprisons even when the first operand is R0.
22435
22436 2009-05-18 Andreas Krebbel <krebbel1@de.ibm.com>
22437
22438 * config/s390/2064.md: Remove trailing whitespaces.
22439 * config/s390/2084.md: Likewise.
22440 * config/s390/constraints.md: Likewise.
22441 * config/s390/fixdfdi.h: Likewise.
22442 * config/s390/libgcc-glibc.ver: Likewise.
22443 * config/s390/s390-modes.def: Likewise.
22444 * config/s390/s390-protos.h: Likewise.
22445 * config/s390/s390.c: Likewise.
22446 * config/s390/s390.h: Likewise.
22447 * config/s390/s390.md: Likewise.
22448 * config/s390/tpf-unwind.h: Likewise.
22449
22450 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
22451
22452 * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
22453
22454 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
22455
22456 M68K TLS support.
22457 * configure.ac (m68k-*-*): Check if binutils support TLS.
22458 * configure: Regenerate.
22459 * config/m68k/predicates.md (symbolic_operand): Extend comment.
22460 * config/m68k/constraints.md (Cu): New constraint.
22461 * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
22462 (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
22463 (movsi): Handle TLS symbols.
22464 (addsi3_5200): Handle XTLS symbols, indent.
22465 * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
22466 (m68k_tls_reference_p): Declare.
22467 (m68k_legitimize_address): Declare.
22468 (m68k_unwrap_symbol): Declare.
22469 * config/m68k/m68k.opt (mxtls): New option.
22470 * config/m68k/m68k.c (ggc.h): Include.
22471 (m68k_output_dwarf_dtprel): Implement hook.
22472 (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
22473 (m68k_expand_prologue): Load GOT pointer when function needs it.
22474 (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
22475 (m68k_legitimate_constant_address_p): Same.
22476 (m68k_decompose_address): Handle TLS references.
22477 (m68k_get_gp): New static function.
22478 (enum m68k_reloc): New contants.
22479 (TLS_RELOC_P): New macro.
22480 (m68k_wrap_symbol): New static function.
22481 (m68k_unwrap_symbol): New function.
22482 (m68k_final_prescan_insn_1): New static function.
22483 (m68k_final_prescan_insn): New function.
22484 (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
22485 functions.
22486 (legitimize_pic_address): Handle TLS references..
22487 (m68k_tls_get_addr, m68k_get_tls_get_addr)
22488 (m68k_libcall_value_in_a0_p)
22489 (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
22490 (m68k_call_m68k_read_tp): Helper variables and functions for ...
22491 (m68k_legitimize_tls_address): Handle TLS references.
22492 (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
22493 New functions.
22494 (m68k_legitimize_address): Handle TLS symbols.
22495 (m68k_get_reloc_decoration): New static function.
22496 (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
22497 UNSPEC_RELOC32.
22498 (m68k_output_dwarf_dtprel): Implement hook.
22499 (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
22500 (m68k_libcall_value): Return result in A0 instead of D0 when asked by
22501 m68k_call_* routines.
22502 (sched_attr_op_type): Handle TLS symbols.
22503 (gt-m68k.h): Include.
22504 * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
22505 (LEGITIMATE_PIC_OPERAND_P): Support TLS.
22506
22507 2009-05-18 Martin Jambor <mjambor@suse.cz>
22508
22509 * ipa-prop.c (ipa_check_stmt_modifications): Removed.
22510 (visit_store_addr_for_mod_analysis): New function.
22511 (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
22512 (determine_cst_member_ptr): Use gimple_assign_single_p.
22513 (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
22514 (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
22515 operands. Don't check number of operands of a NOP_EXPR.
22516
22517 2009-05-18 Eric Fisher <joefoxreal@gmail.com>
22518
22519 * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
22520
22521 2009-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
22522
22523 PR c/40172
22524 * c-common.c (warn_logical_operator): Don't warn if one of
22525 expression isn't always true or false.
22526
22527 2009-05-17 Kai Tietz <kai.tietz@onevision.com>
22528
22529 * config/i386/biarch32.h: New file.
22530 * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
22531
22532 2009-05-17 Adam Nemet <anemet@caviumnetworks.com>
22533
22534 * config/mips/mips.md (*zero_extend<mode>_trunchi,
22535 *zero_extend<mode>_truncqi): Merge these into ...
22536 (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
22537 Name the pattern following this as *zero_extendhi_truncqi.
22538
22539 2009-05-16 Brad Lucier <lucier@math.purdue.edu>
22540
22541 PR middle-end/39301
22542 * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
22543 * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
22544 (output_info): Make field HOST_WIDEST_INT.
22545 (print_statistics): Use HOST_WIDEST_INT_PRINT.
22546 (dump_bitmat_statistics): Same.
22547
22548 2009-05-16 Francois-Xavier Coudert <fxcoudert@gmail.com>
22549
22550 * config.gcc (use_gcc_stdint): Set to wrap.
22551 * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
22552 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
22553 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
22554 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
22555 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
22556 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
22557 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
22558 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
22559
22560 2009-05-16 Joseph Myers <joseph@codesourcery.com>
22561
22562 * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
22563 tune_64.
22564 * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
22565 Move definitions earlier.
22566 (OPT_ARCH64, OPT_ARCH32): Define.
22567 (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
22568 and tune_64.
22569
22570 2009-05-16 Richard Earnshaw <rearnsha@arm.com>
22571
22572 PR target/40153
22573 * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
22574 implies.
22575
22576 2009-05-16 Richard Earnshaw <rearnsha@arm.com>
22577
22578 * arm.md (movdi2): Copy non-reg values to DImode registers.
22579
22580 2009-05-16 Jakub Jelinek <jakub@redhat.com>
22581
22582 PR target/39942
22583 * final.c (label_to_max_skip): New function.
22584 (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
22585 CODE_LABEL_NUMBER <= max_labelno.
22586 * output.h (label_to_max_skip): New prototype.
22587 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
22588 (ix86_avoid_jump_mispredicts): ... this. Don't define if
22589 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined. Update comment.
22590 Handle CODE_LABELs with >= 16 byte alignment or with
22591 max_skip == (1 << align) - 1.
22592 (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
22593 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
22594
22595 PR target/39942
22596 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
22597 .p2align 3 if MAX_SKIP is smaller than 7.
22598 * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
22599
22600 2009-05-15 Ian Lance Taylor <iant@google.com>
22601
22602 * alias.c (struct alias_set_entry_d): Rename from struct
22603 alias_set_entry. Change all uses.
22604 * except.c (struct call_site_record_d): Rename from struct
22605 call_site_record. Change all uses.
22606 * except.h (struct eh_region_d): Rename from struct eh_region.
22607 Change all uses.
22608 * gcse.c (struct hash_table_d): Rename from struct hash_table.
22609 Change all uses.
22610 * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
22611 ivtype_map_elt. Change all uses.
22612 (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
22613 Change all uses.
22614 (struct ifsese_d): Rename fromstruct ifsese. Change all uses.
22615 * graphite.h (struct name_tree_d): Rename from struct name_tree.
22616 Change all uses.
22617 (struct sese_d): Rename from struct sese. Change all uses.
22618 * omega.h (struct eqn_d): Rename from struct eqn. Change all uses.
22619 (struct omega_pb_d): Rename from struct omega_pb. Change all uses.
22620 * optabs.h (struct optab_d): Rename from struct optab. Change all
22621 uses.
22622 (struct convert_optab_d): Rename from struct convert_optab.
22623 Change all uses.
22624 * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
22625 ipa_opt_pass. Change all uses.
22626 * tree-predcom.c (struct dref_d): Rename from struct dref. Change
22627 all uses.
22628
22629 * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
22630 defined as a typedef.
22631 (grokdeclarator): If -Wc++-compat, warn if a typedef is already
22632 defined as a tag.
22633
22634 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
22635
22636 PR 16302
22637 * fold-const.c (make_range,build_range_check,merge_ranges): Move
22638 declaration to...
22639 (merge_ranges): Returns bool.
22640 * tree.h (make_range): .. to here.
22641 (build_range_check): Likewise.
22642 (merge_ranges): Likewise. Renamed from merge_ranges.
22643 * c-typeck.c (parser_build_binary_op): Update calls to
22644 warn_logical_operator.
22645 * c-common.c (warn_logical_operator): Add new warning.
22646 * c-common.h (warn_logical_operator): Update declaration.
22647
22648 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
22649
22650 * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
22651
22652 2009-05-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22653
22654 * doc/install.texi: Document MPC requirements, flags etc.
22655
22656 * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
22657 (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
22658 Evaluate constant arguments.
22659 (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
22660 (fold_builtin_1): Likewise, also evaluate constant arguments.
22661 Remove superfluous break.
22662 (do_mpc_ckconv): New.
22663 * real.h: Include mpc.h.
22664 * toplev.c (print_version): Output MPC version info if available.
22665
22666 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
22667
22668 * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
22669
22670 2009-05-15 H.J. Lu <hongjiu.lu@intel.com>
22671
22672 * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
22673 only once.
22674
22675 2009-05-15 Jan Hubicka <jh@suse.cz>
22676
22677 * doc/invoke.texi (max-early-inliner-iterations): New flag.
22678 * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
22679 (try_inline): Fix return value.
22680 (cgraph_decide_inlining_incrementally): Honor new value.
22681 (cgraph_early_inlining): Handle indirect inlining.
22682 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
22683
22684 2009-05-15 Jan Hubicka <jh@suse.cz>
22685
22686 * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
22687 * cgraphunit.c (cgraph_finalize_function): Set it.
22688 (cgraph_expand_function): Use it.
22689
22690 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
22691
22692 * real.c (encode_ieee_half): Define.
22693 (decode_ieee_half): Define.
22694 (ieee_half_format): Define.
22695 (arm_half_format): Define.
22696 * real.h (ieee_half_format): Declare.
22697 (arm_half_format): Declare.
22698
22699 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
22700
22701 * optabs.c (prepare_float_lib_cmp): Test that the comparison,
22702 swapped, and reversed optabs exist before trying to use them.
22703
22704 2009-05-15 Paul Brook <paul@codesourcery.com>
22705 Sandra Loosemore <sandra@codesourcery.com>
22706
22707 * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
22708 loads. Allow PRE_DEC.
22709 (output_move_neon): Handle PRE_DEC.
22710 (arm_print_operand): Add 'A' for neon structure loads.
22711 * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
22712 * config/arm/neon.md (neon_mov): Update comment.
22713 * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
22714 calls.
22715 (Um): New constraint.
22716
22717 2009-05-15 Jan Hubicka <jh@suse.cz>
22718
22719 Revert the following patch until testsuite fallout is fixed:
22720 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
22721 * cgraph.h (struct inline_summary): New filed self_wize,
22722 size_inlining_benefit, self_time and time_inlining_benefit.
22723 (struct cgraph_global_info): Replace insns by time ans size fields.
22724 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
22725 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
22726 (ipcp_update_callgraph): Do not touch function bodies.
22727 * ipa-inline.c: Include except.h
22728 (MAX_TIME): New constant.
22729 (overall_insns): Remove
22730 (overall_size, max_benefit): New static variables.
22731 (cgraph_estimate_time_after_inlining): New function.
22732 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
22733 (cgraph_clone_inlined_nodes): Update size.
22734 (cgraph_mark_inline_edge): Update size.
22735 (cgraph_estimate_growth): Use size info.
22736 (cgraph_check_inline_limits): Check size.
22737 (cgraph_default_inline_p): Likewise.
22738 (cgraph_edge_badness): Compute badness based on benefit and size cost.
22739 (cgraph_decide_recursive_inlining): Check size.
22740 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
22741 and times.
22742 (cgraph_decide_inlining): Likewise.
22743 (cgraph_decide_inlining_incrementally): Likewise; honor
22744 PARAM_EARLY_INLINING_INSNS.
22745 (likely_eliminated_by_inlining_p): New predicate.
22746 (estimate_function_body_sizes): New function.
22747 (compute_inline_parameters): Use it.
22748 * except.c (must_not_throw_labels): New function.
22749 * except.h (must_not_throw_labels): Declare.
22750 * tree-inline.c (init_inline_once): Kill inlining_weigths
22751 * tree-ssa-structalias.c: Avoid uninitialized warning.
22752 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
22753 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
22754 (PARAM_INLINE_CALL_COST): Remove.
22755 (PARAM_EARLY_INLINING_INSNS): New.
22756
22757 2009-05-15 Richard Guenther <rguenther@suse.de>
22758
22759 * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
22760 not TODO_update_ssa.
22761
22762 2009-05-15 Richard Guenther <rguenther@suse.de>
22763
22764 PR tree-optimization/39999
22765 * gimple.h (gimple_expr_type): Use the expression type looking
22766 through useless conversions.
22767 * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
22768 (vn_nary_op_insert_stmt): Likewise.
22769 (simplify_binary_expression): Likewise.
22770
22771 2009-05-15 Richard Guenther <rguenther@suse.de>
22772
22773 * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
22774 New options, enabled by default.
22775 * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
22776 Document.
22777 * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
22778 * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
22779 * tree-ssa-structalias.c (gate_tree_pta): New function.
22780 (pass_build_alias): Use it.
22781
22782 2009-05-15 Joseph Myers <joseph@codesourcery.com>
22783
22784 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
22785 recurse on an invariant address if a conversion from a pointer
22786 type to a wider integer type is involved.
22787
22788 2009-05-15 Jan Hubicka <jh@suse.cz>
22789
22790 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
22791 * cgraph.h (struct inline_summary): New filed self_wize,
22792 size_inlining_benefit, self_time and time_inlining_benefit.
22793 (struct cgraph_global_info): Replace insns by time ans size fields.
22794 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
22795 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
22796 (ipcp_update_callgraph): Do not touch function bodies.
22797 * ipa-inline.c: Include except.h
22798 (MAX_TIME): New constant.
22799 (overall_insns): Remove
22800 (overall_size, max_benefit): New static variables.
22801 (cgraph_estimate_time_after_inlining): New function.
22802 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
22803 (cgraph_clone_inlined_nodes): Update size.
22804 (cgraph_mark_inline_edge): Update size.
22805 (cgraph_estimate_growth): Use size info.
22806 (cgraph_check_inline_limits): Check size.
22807 (cgraph_default_inline_p): Likewise.
22808 (cgraph_edge_badness): Compute badness based on benefit and size cost.
22809 (cgraph_decide_recursive_inlining): Check size.
22810 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
22811 and times.
22812 (cgraph_decide_inlining): Likewise.
22813 (cgraph_decide_inlining_incrementally): Likewise; honor
22814 PARAM_EARLY_INLINING_INSNS.
22815 (likely_eliminated_by_inlining_p): New predicate.
22816 (estimate_function_body_sizes): New function.
22817 (compute_inline_parameters): Use it.
22818 * except.c (must_not_throw_labels): New function.
22819 * except.h (must_not_throw_labels): Declare.
22820 * tree-inline.c (init_inline_once): Kill inlining_weigths
22821 * tree-ssa-structalias.c: Avoid uninitialized warning.
22822 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
22823 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
22824 (PARAM_INLINE_CALL_COST): Remove.
22825 (PARAM_EARLY_INLINING_INSNS): New.
22826 doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
22827 (inline-call-cost): Remove.
22828 (early-inlining-insns): New.
22829
22830 2009-05-15 Eric Botcazou <ebotcazou@adacore.com>
22831
22832 * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters. Use them
22833 for bounds.
22834 (print_int_cst_bounds_in_octal_p): Likewise.
22835 (dbxout_type): Adjust calls to above functions. Be prepared to deal
22836 with subtypes.
22837 * dwarf2out.c (base_type_die): Likewise.
22838 (is_subrange_type): Delete.
22839 (subrange_type_die): Add LOW and HIGH parameters. Use them for bounds.
22840 (modified_type_die): Call subrange_type_for_debug_p on subtypes.
22841 * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
22842 if the destination type is boolean.
22843 (build_range_check): Do not special-case subtypes.
22844 (fold_sign_changed_comparison): Likewise.
22845 (fold_unary): Likewise.
22846 * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
22847 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
22848 * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
22849 * tree.c (subrange_type_for_debug_p): New predicate based on the
22850 former is_subrange_type.
22851 * tree.h (subrange_type_for_debug_p): Declare.
22852 * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
22853 (convert_affine_scev): Remove call to above function.
22854 (chrec_convert_aggressive): Likewise.
22855 * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
22856 false for conversions involving subtypes.
22857 * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
22858 (vrp_val_min): Likewise.
22859 (needs_overflow_infinity): Likewise.
22860 (extract_range_from_unary_expr): Likewise.
22861
22862 2009-05-15 Paolo Bonzini <bonzini@gnu.org>
22863
22864 * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
22865 * config/frv/frv.c: Likewise.
22866 * config/s390/s390.c: Likewise.
22867 * config/sparc/sparc.h: Likewise.
22868 * config/i386/i386.h: Likewise.
22869 * config/i386/i386.c: Likewise.
22870 * config/crx/crx.c: Likewise.
22871 * config/m68hc11/m68hc11.h: Likewise.
22872 * config/iq2000/iq2000.c: Likewise.
22873 * config/mn10300/mn10300.h: Likewise.
22874 * config/mn10300/mn10300.c: Likewise.
22875 * config/m68k/m68k.c: Likewise.
22876 * config/rs6000/rs6000.c: Likewise.
22877 * config/rs6000/xcoff.h: Likewise.
22878 * config/rs6000/linux64.h: Likewise.
22879 * config/rs6000/sysv4.h: Likewise.
22880 * config/score/score3.c: Likewise.
22881 * config/score/score7.c: Likewise.
22882 * config/score/score.c: Likewise.
22883 * config/arm/arm.md: Likewise.
22884 * config/mips/mips.c: Likewise.
22885 * config/mips/mips.md: Likewise.
22886 * config/bfin/bfin.h: Likewise.
22887 * config/pa/pa.c: Likewise.
22888 * config/pa/constraints.md: Likewise.
22889
22890 * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
22891 * config/pdp11/pdp11.c (legitimate_address_p): Delete.
22892 * config/pdp11/pdp11.h: Use memory_address_p instead.
22893
22894 2009-05-14 Ian Lance Taylor <iant@google.com>
22895
22896 * passes.c (finish_optimization_passes): Change i to int.
22897 * plugin.c (plugins_active_p): Change event to int.
22898 (dump_active_plugins): Likewise.
22899 * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
22900 Add cast.
22901 * tree.c (tree_range_check_failed): Change c to unsigned int.
22902 (omp_clause_range_check_failed): Likewise.
22903 (build_common_builtin_nodes): Change mode to int. Add cast.
22904 * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
22905 (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
22906
22907 * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
22908 ++ or -- with a variable of enum type.
22909
22910 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
22911
22912 PR driver/40144
22913 * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
22914
22915 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
22916
22917 * store-motion.c: Do not include params.h
22918 * Makefile.in: Fix dependencies for various files.
22919
22920 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
22921
22922 * auto-inc-dec.c: Fix pass description, remove apparent
22923 accidental duplication.
22924
22925 2009-05-14 H.J. Lu <hongjiu.lu@intel.com>
22926
22927 PR middle-end/40147
22928 * ipa-utils.h (memory_identifier_string): Moved to ...
22929 * tree.h (memory_identifier_string): Here. Add GTY(()).
22930
22931 2009-05-14 Paolo Bonzini <bonzini@gnu.org>
22932
22933 * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
22934 in the former documentation of...
22935 (GO_IF_LEGITIMATE_ADDRESS): ... this.
22936 * ira-conflicts.c (get_dup_num): Use address_operand.
22937 * targhooks.c (default_legitimate_address_p): New.
22938 * targhooks.h (default_legitimate_address_p): New.
22939 * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
22940 Call hook.
22941 * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
22942 * target.h (struct target): Add legitimate_address_p.
22943 * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
22944 (TARGET_INITIALIZER): Include it.
22945
22946 * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22947 * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
22948 * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
22949 (TARGET_LEGITIMATE_ADDRESS_P): New.
22950
22951 * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22952 (REG_OK_STRICT_P): Delete.
22953 * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
22954 (frv_legitimate_address_p_1): ... this.
22955 * config/frv/frv.c (frv_legitimate_address_p): Forward to...
22956 (frv_legitimate_address_p_1): ... the renamed old
22957 frv_legitimate_address_p.
22958 * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
22959 (TARGET_LEGITIMATE_ADDRESS_P): New.
22960
22961 * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22962 * config/s390/s390-protos.h (legitimate_address_p): Remove.
22963 * config/s390/s390.c (legitimate_address_p): Rename to...
22964 (s390_legitimate_address_p): ... this, make static.
22965 (legitimize_address): Adjust call.
22966 (TARGET_LEGITIMATE_ADDRESS_P): New.
22967 * config/s390/constraints.md ("e"): Call strict_memory_address_p.
22968
22969 * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22970 * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
22971 * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
22972 (TARGET_LEGITIMATE_ADDRESS_P): New.
22973
22974 * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22975 * config/spu/spu-protos.h (spu_legitimate_address): Remove.
22976 * config/spu/spu.c (spu_legitimate_address): Rename to...
22977 (spu_legitimate_address_p): ... this, make static.
22978 (TARGET_LEGITIMATE_ADDRESS_P): New.
22979
22980 * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22981 * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
22982 * config/sparc/sparc.c (legitimate_address_p): Rename to...
22983 (sparc_legitimate_address_p): ... this, make static and return bool.
22984 (legitimize_address): Adjust call.
22985 (TARGET_LEGITIMATE_ADDRESS_P): New.
22986
22987 * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22988 * config/i386/i386-protos.h (legitimate_address_p): Remove.
22989 * config/i386/i386.c (legitimate_address_p): Rename to...
22990 (ix86_legitimate_address_p): ... this, make static.
22991 (constant_address_p): Move after it, adjust call.
22992 (TARGET_LEGITIMATE_ADDRESS_P): New.
22993
22994 * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22995 * config/avr/avr-protos.h (legitimate_address_p): Remove.
22996 * config/avr/avr.c (legitimate_address_p): Rename to...
22997 (avr_legitimate_address_p): ... this, make static.
22998 (legitimize_address): Adjust call.
22999 (TARGET_LEGITIMATE_ADDRESS_P): New.
23000
23001 * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23002 * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
23003 * config/crx/crx.c (crx_legitimate_address_p): Make static.
23004 (TARGET_LEGITIMATE_ADDRESS_P): New.
23005
23006 * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23007 * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
23008 * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
23009 (TARGET_LEGITIMATE_ADDRESS_P): New.
23010
23011 * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23012 * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
23013 Remove.
23014 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
23015 Make static.
23016 (TARGET_LEGITIMATE_ADDRESS_P): New.
23017
23018 * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23019 * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
23020 Remove.
23021 * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
23022 Rename to...
23023 (m68hc11_legitimate_address_p): ... this, make static.
23024 (go_if_legitimate_address_internal): Rename to...
23025 (m68hc11_legitimate_address_p_1): ... this.
23026 (legitimize_address): Adjust call.
23027 (TARGET_LEGITIMATE_ADDRESS_P): New.
23028
23029 * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23030 * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
23031 * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
23032 (TARGET_LEGITIMATE_ADDRESS_P): New.
23033
23034 * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23035 * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
23036 * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
23037 (mn10300_legitimate_address_p): ... this, make static.
23038 (TARGET_LEGITIMATE_ADDRESS_P): New.
23039
23040 * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23041 * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
23042 * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
23043 (TARGET_LEGITIMATE_ADDRESS_P): New.
23044
23045 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23046 (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
23047 (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
23048 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23049 * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
23050 * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
23051 (rs6000_legitimate_address_p): ... this, make static.
23052 (TARGET_LEGITIMATE_ADDRESS_P): New.
23053 (REG_MODE_OK_FOR_BASE_P): Delete.
23054 (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
23055
23056 * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23057 * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
23058 Delete.
23059 * config/picochip/picochip.c (picochip_legitimate_address_p): Make
23060 static, adjust types.
23061 (TARGET_LEGITIMATE_ADDRESS_P): New.
23062
23063 * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23064 * config/score/score.c (score_address_p): Rename to...
23065 (score_legitimate_address_p): ... this.
23066 (TARGET_LEGITIMATE_ADDRESS_P): New.
23067 * config/score/score3.c (score3_address_p): Rename to...
23068 (score3_legitimate_address_p): ... this.
23069 * config/score/score7.c (score7_address_p): Rename to...
23070 (score7_legitimate_address_p): ... this.
23071
23072 * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
23073 THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
23074 GO_IF_LEGITIMATE_ADDRESS): Delete.
23075 * config/arm/arm-protos.h (thumb1_legitimate_address_p,
23076 thumb2_legitimate_address_p): Delete.
23077 (arm_legitimate_address_p): Rename to...
23078 (arm_legitimate_address_outer_p): ... this.
23079 * config/arm/constraints.md ("Uq"): Adjust call.
23080 * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
23081 * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
23082 to...
23083 (arm_legitimate_address_outer_p): ... this.
23084 (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
23085 static.
23086 (TARGET_LEGITIMATE_ADDRESS_P): New.
23087
23088 * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23089 * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
23090 * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
23091 (TARGET_LEGITIMATE_ADDRESS_P): New.
23092
23093 * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23094 * config/vax/vax-protos.h (legitimate_address_p): Remove.
23095 * config/vax/vax.c (legitimate_address_p): Rename to...
23096 (vax_legitimate_address_p): ... this, make static.
23097 (TARGET_LEGITIMATE_ADDRESS_P): New.
23098
23099 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23100 * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
23101 * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
23102 (TARGET_LEGITIMATE_ADDRESS_P): New.
23103
23104 * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23105 * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
23106 * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
23107 (mmix_legitimate_address_p): ... this, make static.
23108 (TARGET_LEGITIMATE_ADDRESS_P): New.
23109
23110 * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23111 * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
23112 * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
23113 (TARGET_LEGITIMATE_ADDRESS_P): New.
23114
23115 2009-05-14 Paolo Bonzini <bonzini@gnu.org>
23116
23117 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
23118 of MODE_COMPLEX_INT.
23119
23120 2009-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
23121
23122 * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
23123 LCT_NORMAL in function call.
23124 * mips-tdump.c (print_file_desc): Add cast to enum type.
23125 * mips-tfile.c (add_ext_symbol): Add casts to enum types.
23126 (mark_stabs): Add casts to enum types.
23127 (parse_stabs_common): Add casts to enum types.
23128
23129 2009-05-13 Adam Nemet <anemet@caviumnetworks.com>
23130
23131 * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
23132 Check for invalid values of LETTER.
23133
23134 2009-05-13 Taras Glek <tglek@mozilla.com>
23135
23136 * attribs.c (register_attribute): moved out attribute registration
23137 into register_attribute.
23138 * doc/plugins.texi: Documented register_attribute and
23139 PLUGIN_ATTRIBUTES.
23140 * gcc-plugin.h: Added forward decl for register_attribute.
23141 * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
23142 * plugin.c (register_callback, invoke_plugin_callbacks): Added
23143 PLUGIN_ATTRIBUTES boilerplate.
23144
23145 2009-05-14 Dave Korn <dave.korn.cygwin@gmail.com>
23146
23147 * config/i386/msformat-c.c (ms_printf_length_specs): Use enumeration
23148 values even in sentinel and empty entries.
23149 (ms_printf_flag_specs): Likewise.
23150 (ms_scanf_flag_specs): Likewise.
23151 (ms_strftime_flag_specs): Likewise.
23152 (ms_print_char_table): Likewise.
23153 (ms_scan_char_table): Likewise.
23154 (ms_time_char_table): Likewise.
23155
23156 2009-05-13 Doug Kwan <dougkwan@google.com>
23157
23158 * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
23159
23160 2009-05-13 Adam Nemet <anemet@caviumnetworks.com>
23161
23162 * config/mips/mips.md (store): Add attributes for QI and HI.
23163 Update comment.
23164 (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
23165 (truncdi<mode>2): ... this new pattern.
23166
23167 2009-05-13 Brad Hards <bradh@kde.org>
23168
23169 * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
23170
23171 2009-05-14 Jakub Jelinek <jakub@redhat.com>
23172 Ben Elliston <bje@au.ibm.com>
23173
23174 PR middle-end/40035
23175 * dse.c (check_mem_read_rtx): Guard against width == -1.
23176
23177 2009-05-13 Michael Matz <matz@suse.de>
23178
23179 PR middle-end/39976
23180 * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
23181 (trivially_conflicts_p): New function.
23182 (insert_backedge_copies): Use it.
23183
23184 2009-05-13 Janis Johnson <janis187@us.ibm.com>
23185
23186 * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
23187 (handle_stdc_pragma): Use new enum constant names.
23188 (handle_pragma_float_const_decimal64): Ditto.
23189
23190 2009-05-13 Ian Lance Taylor <iant@google.com>
23191
23192 * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
23193 tree.def.
23194
23195 2009-05-13 Nathan Sidwell <nathan@codesourcery.com>
23196
23197 * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
23198 * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
23199 multilibs.
23200 * config/m68k/m68k.h (FL_UCLINUX): Define.
23201
23202 2009-05-13 Jan Hubicka <jh@suse.cz>
23203
23204 * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
23205
23206 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
23207
23208 * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
23209 unless -fschedule-insns is specified.
23210
23211 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
23212
23213 PR target/39561
23214 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
23215 TARGET_EXPAND_CBRANCHDI4.
23216 * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
23217 * config/sh/sh.opt (mexpand-cbranchdi): Remove.
23218 (cmpeqdi): Fix comment.
23219
23220 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
23221
23222 * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
23223 (sh_legitimate_address_p): Likewise.
23224 * config/sh/sh.c (sh_legitimate_index_p): New.
23225 (sh_legitimate_address_p): Likewise.
23226 * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
23227 (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
23228 (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
23229 (MAYBE_BASE_REGISTER_RTX_P): New macro.
23230 (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
23231 (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
23232 (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
23233 (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
23234 (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
23235
23236 2009-05-12 Jan Hubicka <jh@suse.cz>
23237
23238 * tree-inline.c (estimate_operator_cost): Add operands;
23239 when division happens by constant, it is cheap.
23240 (estimate_num_insns): Loads and stores are not having cost of 0;
23241 EH magic stuff is cheap; when computing runtime cost of switch,
23242 use log2 base of amount of its cases; builtin_expect has cost of 0;
23243 compute cost for moving return value of call.
23244 (init_inline_once): Initialize time_based flags.
23245 * tree-inline.h (eni_weights_d): Add time_based flag.
23246
23247 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
23248
23249 * df-core.c: Update head documentation.
23250
23251 2009-05-12 Michael Meissner <meissner@linux.vnet.ibm.com>
23252
23253 PR bootstrap/40118
23254 * rs6000.c (rs6000_generate_compare): Use op1b instead of
23255 shadowing exisiting variable op1.
23256
23257 2009-05-12 Uros Bizjak <ubizjak@gmail.com>
23258
23259 PR target/37179
23260 * config/i386/driver-i386.c (processor_signatures): New enum.
23261 (SIG_GEODE): Move from vendor_signatures to processor_signatures.
23262 (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
23263 processor signature to detect geode processor.
23264
23265 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
23266
23267 Revert:
23268
23269 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
23270
23271 * optabs.c (prepare_cmp_insn): Temporarily disable test that
23272 causes spurious differences between trunk and cond-optab branch.
23273
23274 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
23275
23276 * dojump.c (compare_from_rtx): Delete.
23277 * expmed.c (emit_store_flag): Only try cstore_optab. Canonicalize
23278 any MODE_CC mode to the cstorecc4 pattern. Use prepare_operand, fail
23279 if the comparison does not satisfy the predicate; test predicates for
23280 operands 2 and 3 of a cstore pattern. Don't try cstore optab
23281 further if one existing pattern fails.
23282 * expr.h (compare_from_rtx): Delete.
23283 (prepare_operand): Declare it.
23284 * optabs.c: Change "lib call" to "libcall" throughout.
23285 (bcc_gen_fctn, setcc_gen_code, trap_rtx,
23286 HAVE_conditional_trap, emit_cmp_insn): Delete.
23287 (can_compare_p): Delete cmp_optab case.
23288 (prepare_float_lib_cmp): Return an rtx and a machine mode.
23289 Accept other parameters by value.
23290 (prepare_operand): Make non-static.
23291 (prepare_cmp_insn): Return an rtx and a machine mode. Accept
23292 other parameters by value. Try to widen operands here based on
23293 an optab_methods argument and looking at cbranch_optab.
23294 (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
23295 loop. Use cbranch_optab directly.
23296 (emit_cmp_and_jump_insns): Fix comment. Adjust call to
23297 prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
23298 assertion.
23299 (emit_conditional_move, emit_conditional_add): Inline what's needed
23300 of compare_from_rtx, using new prepare_cmp_insn for the rest.
23301 (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
23302 with COMPARE. Move cmov_optab and cstore_optab above
23303 with cbranch_optab, move cmp_optab down with ucmp_optab,
23304 remove tst_otpab. Do not initialize trap_rtx.
23305 (gen_cond_trap): Do it here. Use ctrap_optab. Test predicate
23306 for trap code. Do not check HAVE_conditional_trap. Use
23307 prepare_cmp_insn. Accept no predicate for operand 3.
23308 * optabs.h (OTI_cmp): Mark as used only for libcalls.
23309 (OTI_ctrap, ctrap_optab): New.
23310 (tst_optab): Delete.
23311 (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
23312 * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
23313 with lookup of ctrap_optab.
23314 * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
23315 Delete.
23316 (ctrap_optab): New.
23317
23318 * combine.c (combine_simplify_rtx, simplify_set): Do not
23319 special case comparing against zero for cc0 machines.
23320 * simplify-rtx.c (simplify_binary_operation_1): Never remove
23321 COMPARE on cc0 machines.
23322 (simplify_relational_operation): Return a new expression when
23323 a COMPARE could be removed.
23324 * final.c (final_scan_insn): Compare cc_status values
23325 against LHS of a (compare FOO (const_int 0)) cc0 source.
23326 Also check if cc_status.value is the full compare.
23327
23328 * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
23329 (cstoreMM4): Document.
23330 (conditional_trap): Document ctrapMM4 instead.
23331 (sync_compare_and_swapMM): Refer to cbranchcc4.
23332 (Dependent Patterns): Eliminate obsolete information referring to
23333 the old jump optimization phase.
23334 (Canonicalization): Include cbranchcc4 case, omit canonicalization
23335 of compares with 0 on cc0 machines.
23336 (Jump Patterns): Refer to MODE_CC jump patterns preferably,
23337 avoiding references to cc0. Remove text about storing operands
23338 in cmpMM.
23339 * doc/tm.texi (Condition Codes): Include blurb on different
23340 condition code representations, separate into subsections for
23341 CC0, MODE_CC and conditional execution.
23342
23343 * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
23344 alpha_emit_setcc): Accept operands and a machine mode.
23345 * config/alpha/alpha.c (alpha_emit_conditional_branch):
23346 Get code/op0/op1 from operands, use machine mode argument
23347 instead of alpha_compare.fp_p. Emit the branch here.
23348 (alpha_emit_setcc): Likewise, and return boolean.
23349 (alpha_emit_conditional_move): Likewise. Assert that
23350 cmp_op_mode == cmp_mode, and simplify accordingly.
23351 * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
23352 * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
23353 (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
23354 Delete.
23355 (stack probe test): Use cbranchdi4.
23356 * config/alpha/predicates.md (alpha_cbranch_operator): New.
23357
23358 * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
23359 * config/arc/arc.h (movsicc, movsfcc): Use it.
23360 (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
23361 (cbranchsi4, cstoresi4): New.
23362 (cmpsi, bCC and sCC expanders): Remove.
23363
23364 * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
23365 * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
23366 * config/arm/predicates.md (arm_comparison_operator): Only include
23367 floating-point operators if there is a hardware floating-point unit.
23368 * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
23369 deferring to cbranch_cc and cstore_cc respectively.
23370 (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
23371 cbranch_cc, cstore_cc): New.
23372 (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
23373 arm_compare_op1.
23374 (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
23375
23376 * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
23377 * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
23378 as an argument.
23379 (adjust_insn_length): Adjust calls.
23380 (avr_reorg): Handle (compare (foo) (const_int 0)).
23381 * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
23382 (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
23383 (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
23384 (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
23385 (bCC): Remove.
23386 (cbranchqi4, cbranchhi4, cbranchsi4): New.
23387 (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
23388
23389 * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
23390 (cbranchsi4, cstorebi4, cstoresi4): New.
23391 (movbisi): This insn is duplicate, split it to zero_extend.
23392 * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
23393 (bfin_gen_compare): Do not use them. Emit VOIDmode SET, not BImode.
23394 (bfin_optimize_loop): Use cbranch expander.
23395 * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
23396 * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
23397 (bfin_bimode_comparison_operator): ... this.
23398 (bfin_direct_comparison_operator): New.
23399
23400 * config/cris/cris.c (cris_normal_notice_update_cc): Look
23401 inside (compare FOO (const_int 0)).
23402 (cris_rtx_costs): Handle ZERO_EXTRACT.
23403 * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
23404 (*tstdi_non_v32): Fold in *cmpdi_non_v32.
23405 (*tstdi_v32): Delete.
23406 (*cmpdi_non_v32): Add M alternative for operand 1.
23407 (cmpsi, cmp<mode>): Make private.
23408 (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
23409 with COMPARE.
23410 (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
23411
23412 * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
23413 (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
23414 (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
23415 (cc_reg_operand): New.
23416 (any_cond): Delete.
23417 * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
23418 crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
23419 * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
23420 * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
23421 crx_expand_scond): Delete.
23422
23423 * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
23424 (cbranchsi4): New.
23425 * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
23426 * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
23427
23428 * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
23429 cstoresi4, cstoresf4, cstoredf4): New.
23430 (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
23431 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
23432 Receive the entire operands array.
23433 * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
23434 * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
23435 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
23436 Get test/op0/op1 from the operands array.
23437 (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
23438
23439 * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
23440 (h8300_expand_store): New.
23441 * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
23442 (const_int 0)).
23443 (h8300_expand_branch): Emit compare here. Adjust for new arguments.
23444 (h8300_expand_store): New.
23445 * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
23446 or do not try to produce (set (cc0) REG).
23447 (peepholes): Wrap arguments with COMPARE. Add a peephole to
23448 change a compare into a move to a scratch register. Disable some
23449 peepholes when comparing with zero.
23450 (tstsi, tsthi, tstsi, cmpqi): Make private.
23451 (cmphi): Delete.
23452 (bCC, sCC): Delete.
23453 (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
23454 cstoresi4): New.
23455
23456 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
23457 ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
23458 (ix86_emit_i387_log1p): Use gen_cbranchxf4.
23459 (ix86_emit_i387_log1p): Use cbranchxf2.
23460 (ix86_expand_setcc): Return void.
23461 * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
23462 * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
23463 cmp<MODEF>, cmpcc): Remove.
23464 (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
23465 cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
23466 cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
23467 (sCC and bCC expanders): Remove.
23468 (stack_protect_test): Use cbranchcc4.
23469
23470 * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
23471 Delete.
23472 (ia64_expand_compare): Accept three rtx by reference and return void.
23473 * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
23474 (ia64_expand_compare): Replace op0/op1 with *op0/*op1. Get code
23475 from *expr. Update *expr with the BImode comparison to do.
23476 * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
23477 cmptf, bCC, sCC, conditional_trap): Delete.
23478 (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
23479 cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
23480 cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
23481 ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
23482 * config/ia64/predicates.md (ia64_cbranch_operator): New.
23483
23484 * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
23485 type of last argument.
23486 * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
23487 (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
23488 use machine mode argument instead of branch_type. Remove dead
23489 code for floating-point comparisons.
23490 * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
23491 * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
23492 Remove.
23493 (cbranchsi4, cstoresi4): New.
23494 * config/iq2000/predicates.md (reg_or_const_operand): New.
23495
23496 * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
23497 * config/m32c/m32c.md (any_cond, gl_cond): Delete.
23498 (b<code>_op): Rewrite to...
23499 (bcc_op): ... this, using match_operator.
23500 (s<code>_op): Rewrite to...
23501 (scc_op): ... this, using match_operator.
23502 (s<code>_24_op): Rewrite to...
23503 (scc_op_24): ... this, using match_operator.
23504 (s<code>_<mode>): Rewrite to...
23505 (cstore<mode>4): ... this, using match_operator.
23506 (s<code>_<mode>_24): Rewrite to...
23507 (cstore<mode>4_24): ... this, using match_operator.
23508 * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
23509 m32c_unpend_compare, m32c_expand_scc): Delete.
23510 * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
23511 m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
23512 (m32c_expand_movcc): Change NE to EQ if necessary.
23513 (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
23514
23515 * config/m32r/m32r-protos.h (gen_cond_store): New.
23516 * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
23517 (gen_cond_store): New, from sCC patterns.
23518 (m32r_expand_block_move): Use cbranchsi4.
23519 * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
23520 * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
23521 (cbranchsi4, cstoresi4): New.
23522
23523 * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
23524 Delete.
23525 (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
23526 (m68hc11_notice_update_cc): Look into a compare with 0.
23527 * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
23528 Delete.
23529 * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
23530 cmphi, cmpqi, bCC): Delete.
23531 (cbranchsi4, cbranchhi4, cbranchqi4): New.
23532 (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
23533 bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
23534 sets with COMPARE.
23535
23536 * config/m68k/predicates.md (m68k_cstore_comparison_operator,
23537 const0_operand, const1_operand, m68k_subword_comparison_operand): New.
23538 * config/m68k/constraints.md (H): New.
23539 * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
23540 the define_insn below.
23541 (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
23542 (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
23543 *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
23544 patterns): Wrap RHS with COMPARE.
23545 (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
23546 (*cmpdi_internal): Name this pattern.
23547 (cmpdi): Change to define_insn.
23548 (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
23549 cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
23550 (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
23551 predicate.
23552 (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
23553 sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
23554 (conditional_trap): Change to...
23555 (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
23556 (*conditional_trap): Use the ordered_comparison_operator and
23557 const1_operand predicates.
23558 * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
23559 (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
23560 (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
23561 * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
23562
23563 * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
23564 mcore_modify_comparison, mcore_gen_compare_reg): Remove.
23565 (mcore_gen_compare): New.
23566 * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
23567 (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
23568 (mcore_gen_compare): ... this.
23569 * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
23570 (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
23571 (stack probe pattern): Use cbranchsi4.
23572
23573 * config/mips/predicates.md (mips_cstore_operator): New.
23574 * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
23575 * config/mips/mips.md (any_cond): Delete.
23576 (conditional_trap): Rename to ctrap<GPR:mode>4. Adjust predicates,
23577 always succeed.
23578 (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
23579 fixuns_truncsfdi2): Use cbranch patterns.
23580 (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
23581 (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
23582 Adjust call to mips_expand_conditional_branch.
23583 (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
23584 cstore<GPR:mode>4.
23585 * config/mips/mips-protos.h (mips_expand_conditional_branch,
23586 mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
23587 * config/mips/mips.c (cmp_operands): Delete.
23588 (mips_emit_compare): Get comparison operands from *op0/*op1.
23589 (mips_expand_scc): Get code/op0/op1/target from operands. Assert
23590 that it succeeds. Use op0/op1 instead of cmp_operands.
23591 (mips_expand_conditional_branch, mips_expand_conditional_move,
23592 mips_expand_conditional_trap): Likewise.
23593 (mips_block_move_loop): Use cbranch patterns.
23594 * config/mips/mips.h (cmp_operands): Delete.
23595
23596 * config/mmix/mmix.c (mmix_valid_comparison): Delete.
23597 (mmix_gen_compare_reg): Just return a register in the right CC mode.
23598 * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
23599 * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
23600 (*cmpcc_folded): Rename to...
23601 (*cmpdi_folded): this.
23602 (*cmpcc): Rename to...
23603 (*cmps): ... this.
23604 (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
23605 (bCC): Remove.
23606 (cbranchdi4): New.
23607 (cbranchdf4): New. Handle invalid comparisons here.
23608 * config/mmix/predicates.md (float_comparison_operator): New.
23609
23610 * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
23611 zero_extract to be cheap in (compare (zero_extract) (const_int 0).
23612 * config/mn10300/mn10300.md (tst): Delete.
23613 (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
23614 Name these patterns and wrap RHS in a compare.
23615 (*cmpsi): Make this pattern private. Include tst.
23616 (*cmpsf): Make this pattern private.
23617 (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
23618 (compare with zero peepholes): Likewise.
23619 (bCC): Remove.
23620 (cbranchsi4, cbranchsf4): New.
23621 (casesi): Use cbranchsi4.
23622
23623 * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
23624 hppa_branch_type): Delete.
23625 (return_addr_rtx): Use cbranchsi4.
23626 (emit_bcond_fp): Accept all operands. Replace CODE with NE.
23627 Emit CCFPmode comparison here.
23628 (gen_cmp_fp): Delete, now part of emit_bcond_fp.
23629 * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
23630 hppa_branch_type): Delete.
23631 * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
23632 (movsicc, movdicc): Remove references to hppa_compare_op0,
23633 hppa_compare_op1 and compare_from_rtx.
23634 (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
23635 (casesi): Use cbranchsi4.
23636
23637 * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
23638 * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
23639 * config/pdp11/pdp11.md (register_or_const0_operand): New.
23640 (cmpdf, cmphi, cmpqi): Make private. Add tst alternatives.
23641 (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
23642 (bCC): Delete.
23643 (cbranchdf4, cbranchhi4, cbranchqi4): New.
23644 (*branch, *branch_inverted): New.
23645
23646 * config/picochip/picochip.md (cbranchhi4): Use
23647 ordered_comparison_operator.
23648 (cmphi, bCC): Remove.
23649
23650 * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
23651 (trap_comparison_operator): Delete.
23652 * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
23653 rs6000_emit_cbranch): Accept mode and operands.
23654 * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
23655 rs6000_compare_fp_p): Delete.
23656 (rs6000_generate_compare): Accept mode and comparison. Extract code
23657 and op0/op1 from there. Replace references to rs6000_compare_op0
23658 and rs6000_compare_op1.
23659 (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
23660 extract result from passed operands.
23661 (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
23662 extract loc from passed operands.
23663 (rs6000_emit_cmove): Likewise.
23664 * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
23665 rs6000_compare_fp_p): Delete.
23666 * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
23667 (cbranch<GPR>4, cbranch<FP>4): New.
23668 (cstore<mode>4): New. Consolidate here all choices about when to use
23669 portable or specialized sCC sequences.
23670 (stack_protect_test): Use cbranchsi4.
23671 (conditional_trap): Replace with ctrap<GPR>4.
23672 (conditional trap insn): Replace trap_comparison_operator with
23673 ordered_comparison_operator.
23674
23675 * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
23676 (s390_emit_prologue): Use ctrap.
23677 * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
23678 * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
23679 New predicates replacing...
23680 * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
23681 (cmp<GPR>, cmp<FP>, cmpcc): Delete.
23682 (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
23683 (add<mode>cc): Do not use s390_compare_op0/op1.
23684 (s<code>): Change to...
23685 (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
23686 (seq): Change to...
23687 (cstorecc4): ... this. Handle EQ or NE equally.
23688 (*sne): Un-privatize for use in cstorecc4.
23689 (b<code>): Change to...
23690 (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
23691 (conditional_trap): Replace with...
23692 (ctrap<GPR>4, ctrap<FP>4): ... these.
23693 (stack_protect): Use cbranchcc4.
23694
23695 * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
23696 * config/score/score-protos.h (score_gen_cmp): Delete.
23697 * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
23698 (score_block_move-loop): Use cbranchsi4.
23699 * config/score/score.md (cbranchsi4): New.
23700 (cmpsi, bCC): Delete.
23701 * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
23702 (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
23703 * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
23704 (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
23705 * config/score/score3.h (score3_gen_cmp): Delete.
23706 * config/score/score7.h (score7_gen_cmp): Delete.
23707
23708 * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
23709 (sh_emit_scc_to_t): ... this. Return void.
23710 (from_compare): Rename to...
23711 (sh_emit_compare_and_branch): ... this.
23712 (sh_emit_compare_and_set): New.
23713 (sh_expand_t_scc): Accept operands.
23714 * config/sh/predicates.md (sh_float_comparison_operator): New.
23715 * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
23716 (prepare_scc_operands): Rename to...
23717 (sh_emit_scc_to_t): ... this. Return void. Get op0/op1 from
23718 arguments.
23719 (sh_emit_cheap_store_flag): New.
23720 (sh_emit_set_t_insn): New.
23721 (from_compare): Rename to...
23722 (sh_emit_compare_and_branch): ... this. Accept mode. Rewrite
23723 handling of TARGET_SH2E floating point to avoid recursive call.
23724 Generate branch here.
23725 (sh_emit_compare_and_set): New.
23726 (sh_expand_t_scc): Get op0/op1 from arguments.
23727 (sh_emit_cheap_store_flag): New.
23728 * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
23729 cases.
23730 (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
23731 (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
23732 (movsicc, movdicc): Do nothing when it recreated operands from
23733 sh_compare_*. Use sh_emit_cheap_store_flag. Adjust call to
23734 prepare_scc_operands (now sh_emit_scc_to_t).
23735 (udivdi3): Use cstoresi4.
23736 (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
23737 bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
23738 (cbranchint4_media, cbranchfp4_media): New.
23739 (casesi): Use cbranchdi4.
23740 (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
23741 Delete.
23742 (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
23743 (movnegt): Remove second operand.
23744 (cbranchsf4, cbranchdf4): New.
23745 (stack_protect): Use cbranchdi4/cbranchsi4.
23746
23747 * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
23748 (gen_compare_reg): Accept comparison, extract part of it to...
23749 (gen_compare_reg_1): ... this.
23750 (gen_compare_operator): Delete.
23751 (gen_v9_scc): Accept separate destination, comparison code and arms.
23752 Do not use sparc_compare_op0/sparc_compare_op1.
23753 (emit_scc_insn, emit_conditional_branch_insn): New.
23754 (emit_v9_brxx): Make static. Remove useless assertion.
23755 (sparc_emit_float_lib_cmp): Return RTL instead of calling
23756 emit_cmp_insn.
23757 (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
23758 * config/sparc/sparc-protos.h (gen_compare_reg,
23759 sparc_emit_float_lib_cmp): Adjust prototype.
23760 (emit_scc_insn, emit_conditional_branch_insn): New.
23761 (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
23762 * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
23763 * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
23764 iterators to the top.
23765 (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
23766 snesi_special_extend, sCC, bCC, seqdi_special_trunc,
23767 snedi_special_trunc): Delete.
23768 (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
23769 and snedi_special_trunc.
23770 (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
23771 cbranchdi4, cbranch<F:mode>4): New.
23772 (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
23773 here. Use gen_compare_reg instead of gen_compare_operator.
23774 (conditional_trap): Replace with...
23775 (ctrapsi4, ctrapdi4): ... this.
23776 (stack_protect_test): Use cbranchcc4.
23777
23778 * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
23779 argument to rtx.
23780 * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
23781 (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
23782 Change spu_compare_op0/op1 to op0/op1 throughout. Get target
23783 from operands[0] or operands[3] depending on is_set.
23784 * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
23785 * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
23786 cmpdf, bCC), sCC: Remove.
23787 (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
23788 cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
23789 cstoredf4): New.
23790 (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
23791 spu_emit_branch_or_set.
23792
23793 * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
23794 Add two arguments.
23795 * config/stormy16/stormy16.h (xstormy16_compare_op0,
23796 xstormy16_compare_op1): Delete.
23797 * config/stormy16/stormy16.c (xstormy16_compare_op0,
23798 xstormy16_compare_op1): Delete.
23799 (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
23800 Adjust calls.
23801 * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
23802 (cmphi, cmpsi, bCC): Remove.
23803
23804 * config/v850/v850.md (tstsi, cmpsi): Fold into...
23805 (*cmpsi): ... this one.
23806 (cbranchsi4, cstoresi4): New.
23807 (bCC expanders): Delete.
23808 (sCC insns): Fold into...
23809 (*setcc): ... this one.
23810 (casesi): Do not use gen_cmpsi and gen_bgtu.
23811 (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
23812 (movsicc): Simplify.
23813 * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
23814
23815 * config/vax/vax-protos.h (cond_name): New.
23816 (vax_output_conditional_branch): Remove.
23817 * config/vax/vax.c (cond_name): New.
23818 (vax_output_conditional_branch): Remove.
23819 * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
23820 * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
23821 (cmp<VAXint>, cmp<VAXfp>): Privatize. Add constraints for tst.
23822 (bit<VAXint>): Wrap source with (compare).
23823 (b<code> and following unnamed pattern): Rename to *branch and
23824 *branch_reversed. Change macroization to match_operator.
23825 (cbranch<VAXint>4, cbranch<VAXfp>4): New.
23826
23827 * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
23828 * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
23829 Change last argument to machine_mode.
23830 (xtensa_expand_scc): Add machine_mode argument.
23831 * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
23832 (gen_conditional_move, xtensa_expand_conditional_branch,
23833 xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
23834 instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
23835 Adjust operand numbers.
23836 * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
23837 Delete.
23838 * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
23839 (cmpsi, cmpsf, b<code>, s<code>): Delete.
23840 (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
23841
23842 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
23843
23844 * optabs.c (prepare_cmp_insn): Temporarily disable test that
23845 causes spurious differences between trunk and cond-optab branch.
23846
23847 2009-05-12 Alexandre Oliva <aoliva@redhat.com>
23848
23849 PR target/37137
23850 * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
23851
23852 2009-05-12 Alexandre Oliva <aoliva@redhat.com>
23853
23854 * tree.c (iterative_hash_pointer): Delete.
23855 (iterative_hash_expr): Short-circuit handling of NULL pointer.
23856 Hash UIDs and versions of SSA names. Don't special-case built-in
23857 function declarations.
23858
23859 2009-05-11 Ian Lance Taylor <iant@google.com>
23860
23861 PR bootstrap/40103
23862 * graphite.c: Force -Wc++-compat to only be a warning before
23863 #including "cloog/cloog.h".
23864
23865 2009-05-11 Martin Jambor <mjambor@suse.cz>
23866
23867 * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
23868
23869 2009-05-11 Jan Hubicka <jh@suse.cz>
23870
23871 * tree-ssa-loop-ivcanon.c: Include target.h
23872 (struct loop_size): new structure.
23873 (constant_after_peeling): New predicate.
23874 (tree_estimate_loop_size): New function.
23875 (estimated_unrolled_size): Rewrite for new estimates.
23876 (try_unroll_loop_completely): Use new estimates.
23877 * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
23878
23879 2009-05-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
23880
23881 * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
23882 libcpp interface change.
23883 (spu_macro_to_expand): Likewise.
23884
23885 2009-05-11 Paolo Bonzini <bonzini@gnu.org>
23886
23887 PR tree-optimization/40026
23888 * gimplify.c (gimplify_init_constructor): Change initial conditional
23889 to assertion. Rewrite TREE_OPERAND (*expr_p, 1) after
23890 optimize_compound_literals_in_ctor.
23891
23892 2009-05-11 Nathan Sidwell <nathan@codesourcery.com>
23893
23894 * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
23895 New devices.
23896 * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
23897
23898 2009-05-11 H.J. Lu <hongjiu.lu@intel.com>
23899
23900 * tree-vect-data-refs.c (vect_analyze_group_access): Use
23901 HOST_WIDE_INT for gap.
23902
23903 2009-05-11 Ira Rosen <irar@il.ibm.com>
23904
23905 PR tree-optimization/40074
23906 * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
23907 account in group size and step comparison.
23908
23909 2009-05-11 Richard Guenther <rguenther@suse.de>
23910
23911 * passes.c (init_optimization_passes): Strip now incorrect comment.
23912 (execute_function_todo): Do not set PROP_alias.
23913 * tree-pass.h (PROP_alias): Remove.
23914 * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
23915 * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
23916 * tree-nrv.c (pass_return_slot): Likewise.
23917 * tree-object-size.c (pass_object_sizes): Likewise.
23918 * tree-ssa-dom.c (pass_dominator): Likewise.
23919 (pass_phi_only_cprop): Likewise.
23920 * tree-ssa-dse.c (pass_dse): Likewise.
23921 * tree-ssa-phiopt.c (pass_phiopt): Likewise.
23922 (pass_cselim): Likewise.
23923 * tree-ssa-pre.c (pass_pre): Likewise.
23924 (pass_fre): Likewise.
23925 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
23926 * tree-ssa-sink.c (pass_sink_code): Likewise.
23927 * tree-stdarg.c (pass_stdarg): Likewise.
23928 * tree-tailcall.c (pass_tail_calls): Likewise.
23929 * tree-vrp.c (pass_vrp): Likewise.
23930
23931 2009-05-10 Ian Lance Taylor <iant@google.com>
23932
23933 * basic-block.h (enum profile_status): Break out of struct
23934 control_flow_graph.
23935 * cgraph.h (struct inline_summary): Break out of struct
23936 cgraph_local_info.
23937 * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
23938 of struct cgraph_order_sort.
23939 * combine.c (enum undo_kind): New enum, broken out of struct undo.
23940 * cse.c (struct branch_path): Break out of struct
23941 cse_basic_block_data.
23942 * except.h (enum eh_region_type): Break out of struct eh_region.
23943 * gcc.c (enum add_del): Break out of struct modify_target.
23944 * genrecog.c (enum decision_type): Break out of struct decision_test.
23945 * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
23946 ggc_pch_data.
23947 * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
23948 * regmove.c (enum match_use): New enum, broken out of struct match.
23949 * sched-int.h (enum post_call_group): New enum, broken out of
23950 struct deps.
23951 (struct deps_reg): Break out of struct deps.
23952 * target.h (struct asm_int_op): Break out of struct gcc_target.
23953 * tree-eh.c (struct goto_queue_node): Break out of struct
23954 leh_tf_state.
23955 * tree-inline.h (enum copy_body_cge_which): Break out of
23956 copy_body_data.
23957 * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
23958
23959 * c-decl.c (in_struct, struct_types): New static variables.
23960 (pushtag): Add loc parameter. Change all callers.
23961 (lookup_tag): Add ploc parameter. Change all callers.
23962 (check_compound_literal_type): New function.
23963 (parser_xref_tag): Add loc parameter. Change all callers. If
23964 -Wc++-compat, warn about struct/union/enum types defined within a
23965 struct or union.
23966 (start_struct): Add enclosing_in_struct, enclosing_struct_types,
23967 and loc parameters. Change all callers. Change error calls to
23968 error_at, using loc. For a redefinition, if the location of the
23969 original definition is known, report it. Set in_struct and
23970 struct_types. If -Wc++-compat warn if in sizeof, typeof, or alignof.
23971 (finish_struct): Add new parameters enclosing_in_struct and
23972 enclosing_struct_types. Change all callers. Set
23973 C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
23974 in the struct. If in a struct, add this struct to struct_types.
23975 (start_enum): Add loc parameter. Change all callers. Use
23976 error_at for errors, using loc. For a redefinition, if the
23977 location of the original definition is known, report it. If in a
23978 struct, add this enum type to struct_types. If -Wc++-compat warn
23979 if in sizeof, typeof, or alignof.
23980 * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
23981 (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
23982 (c_parser_enum_specifier): Get enum location for start_enum.
23983 (c_parser_struct_or_union_specifier): Get struct location for
23984 start_struct. Save in_struct and struct_types status between
23985 start_struct and finish_struct.
23986 (c_parser_cast_expression): Get location of cast.
23987 (c_parser_alignof_expression): Get location of type.
23988 (c_parser_postfix_expression): Likewise.
23989 (c_parser_postfix_expression_after_paren_type): Add type_loc
23990 parameter. Change all callers. Call check_compound_literal_type.
23991 Use type_loc for error about variable size type.
23992 * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
23993 of an enum constant from an enum type defined in a struct or union.
23994 (c_cast_expr): Add loc parameter. Change all callers. If
23995 -Wc++-compat, warn about defining a type in a cast.
23996 * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
23997 (start_enum, start_struct, finish_struct): Update declarations.
23998 (parser_xref_tag, c_cast_expr): Update declarations.
23999 (check_compound_literal_type): Declare.
24000
24001 2009-05-11 Ben Elliston <bje@au.ibm.com>
24002
24003 * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
24004 for recent libcpp interface change.
24005 (rs6000_macro_to_expand): Likewise.
24006
24007 2009-05-10 Michael Matz <matz@suse.de>
24008
24009 PR target/40031
24010 * config/arm/arm.c (require_pic_register): Emit on entry edge,
24011 not at entry of function.
24012
24013 2009-05-10 Richard Guenther <rguenther@suse.de>
24014
24015 PR tree-optimization/40081
24016 Revert
24017 * tree-sra.c (instantiate_element): Instantiate scalar replacements
24018 using the main variant of the element type. Do not fiddle with
24019 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
24020
24021 * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
24022 structs with volatile fields.
24023
24024 2009-05-10 Jan Hubicka <jh@suse.cz>
24025
24026 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
24027 (estimate_move_cost): Assert that it does not get called for
24028 VOID_TYPE_P.
24029 (estimate_num_insns): Skip VOID types in argument handling.
24030 (optimize_inline_calls): Delete unreachable blocks and verify that
24031 callgraph is valid.
24032
24033 2009-05-10 Jan Hubicka <jh@suse.cz>
24034
24035 * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
24036 * cgraph.c (cgraph_mark_address_taken_node): New function.
24037 (dump_cgraph_node): Dump new flag.
24038 * cgraph.h (struct cgraph_node): Add address_taken.
24039 (cgraph_mark_address_taken_node): New function.
24040 * ipa.c (cgraph_postorder): Prioritize functions with address taken
24041 since new direct calls can be born.
24042
24043 2009-05-10 Joseph Myers <joseph@codesourcery.com>
24044
24045 * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
24046 tok->val.node.node.
24047
24048 2009-05-10 Jan Hubicka <jh@suse.cz>
24049
24050 PR middle-end/40084
24051 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
24052 argument; rewrite.
24053 (cgraph_update_edges_for_call_stmt): Take old_decl argument.
24054 * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
24055 * tree-inline.c (copy_bb): Set frequency correctly.
24056 (fold_marked_statements): Update call to
24057 cgraph_update_edges_for_call_stmt.
24058
24059 2009-05-10 Joseph Myers <joseph@codesourcery.com>
24060
24061 * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
24062 identifiers in diagnostics.
24063 * config/arm/arm.c (arm_handle_fndecl_attribute,
24064 arm_handle_isr_attribute): Likewise.
24065 * config/avr/avr.c (avr_handle_progmem_attribute,
24066 avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
24067 * config/bfin/bfin.c (handle_int_attribute,
24068 bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
24069 bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
24070 bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
24071 Likewise.
24072 * config/darwin.c (darwin_handle_kext_attribute,
24073 darwin_handle_weak_import_attribute): Likewise.
24074 * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
24075 h8300_handle_eightbit_data_attribute,
24076 h8300_handle_tiny_data_attribute): Likewise.
24077 * config/i386/i386.c (ix86_handle_cconv_attribute,
24078 ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
24079 * config/i386/winnt.c (ix86_handle_shared_attribute,
24080 ix86_handle_selectany_attribute): Likewise.
24081 * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
24082 * config/m32c/m32c.c (function_vector_handler): Likewise.
24083 * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
24084 m68hc11_handle_fntype_attribute): Likewise.
24085 * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
24086 * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
24087 * config/mips/mips.c (mips_insert_attributes,
24088 mips_merge_decl_attributes, mips_expand_builtin): Likewise.
24089 * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
24090 rs6000_handle_struct_attribute): Likewise.
24091 * config/sh/sh.c (sh_insert_attributes,
24092 sh_handle_resbank_handler_attribute,
24093 sh_handle_interrupt_handler_attribute,
24094 sh2a_handle_function_vector_handler_attribute,
24095 sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
24096 Likewise.
24097 * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
24098 * config/spu/spu.c (spu_handle_fndecl_attribute,
24099 spu_handle_vector_attribute): Likewise.
24100 * config/stormy16/stormy16.c
24101 (xstormy16_handle_interrupt_attribute): Likewise.
24102 * config/v850/v850-c.c (ghs_pragma_section): Likewise.
24103 * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
24104
24105 2009-05-10 Joseph Myers <joseph@codesourcery.com>
24106
24107 * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
24108 (pp_translate_identifiers): New.
24109 (pp_identifier): Only conditionally translate identifier to locale
24110 character set.
24111 * pretty-print.c (pp_construct): Set pp_translate_identifiers.
24112 (pp_base_tree_identifier): Only conditionally translate identifier
24113 to locale character set.
24114 * c-pretty-print.c (M_): Define.
24115 (pp_c_type_specifier, pp_c_primary_expression): Mark English
24116 fragments for conditional translation with M_.
24117 * tree-pretty-print.c (maybe_init_pretty_print): Disable
24118 identifier translation.
24119
24120 2009-05-10 Richard Guenther <rguenther@suse.de>
24121
24122 PR tree-optimization/40081
24123 * tree-sra.c (instantiate_element): Instantiate scalar replacements
24124 using the main variant of the element type. Do not fiddle with
24125 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
24126
24127 2009-05-09 Jan Hubicka <jh@suse.cz>
24128
24129 PR middle-end/40080
24130 * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
24131 indirect calls; verify cgraph afterwards.
24132
24133 2009-05-09 Jan Hubicka <jh@suse.cz>
24134
24135 PR bootstrap/40082
24136 * ipa.c (update_inlined_to_pointer): New function.
24137 (cgraph_remove_unreachable_nodes): Use it.
24138
24139 2009-05-09 Jan Hubicka <jh@suse.cz>
24140
24141 * tree-eh.c (struct leh_state): Remove prev_try.
24142 (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
24143 not track prev_try.
24144 * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
24145 copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
24146 remove_eh_handler_and_replace, foreach_reachable_handler,
24147 verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
24148 * except.h (struct eh_region): Remove eh_region_u_cleanup.
24149 (gen_eh_region_cleanup): Update prototype.
24150
24151 2009-05-09 Jan Hubicka <jh@suse.cz>
24152
24153 PR middle-end/40043
24154 * except.c (copy_eh_region): Always set prev_try.
24155 (redirect_eh_edge_to_label): Find outer try.
24156 (foreach_reachable_handler): When looking for prev try
24157 handle case where previous try is not going to be taken.
24158
24159 2009-05-07 Michael Meissner <meissner@linux.vnet.ibm.com>
24160
24161 PR tree-optimization/40049
24162 * tree-vect-stmts.c (vectorizable_operation): If the machine has
24163 only vector/vector shifts, convert the type of the constant to the
24164 appropriate type to avoid building incorrect trees, which
24165 eventually have problems with garbage collection.
24166
24167 2009-05-08 Joseph Myers <joseph@codesourcery.com>
24168
24169 * fold-const.c (fold_binary): Do not fold multiplication by 1 or
24170 -1 for complex floating-point types if honoring signed zeros.
24171
24172 2009-05-08 Jan Hubicka <jh@suse.cz>
24173
24174 * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
24175 argument; handle correctly when profile is absent.
24176 (build_cgraph_edges): Update.
24177 (rebuild_cgraph_edges): Update.
24178 * cgraph.c: Do not include varray.h.
24179 (cgraph_set_call_stmt_including_clones): New function.
24180 (cgraph_create_edge_including_clones): Likewise
24181 (cgraph_update_edges_for_call_stmt_node): New static cfunction.
24182 (cgraph_update_edges_for_call_stmt): Handle clones.
24183 (cgraph_remove_node): Handle clone tree.
24184 (cgraph_remove_node_and_inline_clones): New function.
24185 (dump_cgraph_node): Dump clone tree.
24186 (cgraph_clone_node): Handle clone tree.
24187 (clone_function_name): Bring here from tree-inline.c.
24188 (cgraph_create_virtual_clone): New function.
24189 * cgraph.h (ipa_replace_map): Move here from ipa.h.
24190 (cgraph_clone_info): New function.
24191 (strut cgraph_node): Add clone_info and new clone tree pointers.
24192 (cgraph_remove_node_and_inline_clones,
24193 cgraph_set_call_stmt_including_clones,
24194 cgraph_create_edge_including_clones,
24195 cgraph_create_virtual_clone): Declare.
24196 (cgraph_function_versioning): Use VEC argument.
24197 (compute_call_stmt_bb_frequency): Update prototype.
24198 (cgraph_materialize_all_clones): New function.
24199 * ipa-cp.c (ipcp_update_cloned_node): Remove.
24200 (ipcp_create_replace_map): Update to VECtors.
24201 (ipcp_update_callgraph): Use virtual clones.
24202 (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
24203 (ipcp_update_profiling): Do not update local profiling.
24204 (ipcp_insert_stage): Use VECtors and virtual clones.
24205 * cgraphunit.c (verify_cgraph_node): Verify clone tree.
24206 (clone_of_p): New function.
24207 (cgraph_preserve_function_body_p): Use clone tree.
24208 (cgraph_optimize): Materialize clones.
24209 (cgraph_function_versioning): Update for VECtors.
24210 (save_inline_function_body): Use clone tree.
24211 (cgraph_materialize_clone): New function.
24212 (cgraph_materialize_all_clones): Likewise.
24213 * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
24214 * ipa.c: Include gimple.h.
24215 (cgraph_remove_unreachable_nodes): Use clone tree.
24216 * ipa-prop.c (ipa_note_param_call): Update call to
24217 compute_call_stmt_bb_frequencycall.
24218 * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
24219 * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
24220 (copy_bb): Handle updating of clone tree; add new edge when new call
24221 appears.
24222 (expand_call_inline): Be strict about every call having edge.
24223 (clone_fn_id_num, clone_function_name): Move to cgraph.c.
24224 (delete_unreachable_blocks_update_callgraph): New function.
24225 (tree_function_versioning): Use VECtors; always remove unreachable
24226 blocks and fold conditionals.
24227 * tree-inline.h: Do not include varray.h.
24228 (tree_function_versioning): Remove.
24229 * Makefile.in (GTFILES): Remove tree-inline.c
24230 * passes.c (do_per_function): Do only functions having body.
24231 * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
24232 tree.
24233
24234 2009-05-08 H.J. Lu <hongjiu.lu@intel.com>
24235 Andrew Morrow <acm@google.com>
24236
24237 PR c/36892
24238 * c-common.c (c_common_attribute_table): Permit deprecated
24239 attribute to take an optional argument.
24240 (handle_deprecated_attribute): If the optional argument to
24241 __attribute__((deprecated)) is not a string ignore the attribute
24242 and emit a warning.
24243
24244 * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
24245 * c-typeck.c (build_component_ref): Likewise.
24246 (build_external_ref): Likewise.
24247
24248 * toplev.c (warn_deprecated_use): Add an attribute argument.
24249 Emit the message associated with __attribute__((deprecated)).
24250
24251 * toplev.h (warn_deprecated_use): Updated.
24252
24253 * doc/extend.texi: Document new optional parameter to
24254 __attribute__((deprecated))
24255
24256 2009-05-08 Michael Eager <eager@eagercon.com>
24257
24258 * config/rs6000/rs6000.md (*movdf_softfloat32): replace
24259 !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
24260
24261 2009-05-08 Richard Guenther <rguenther@suse.de>
24262
24263 PR tree-optimization/40062
24264 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
24265 Avoid exponential behavior.
24266
24267 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
24268
24269 PR rtl-optimization/33928
24270 PR 26854
24271 * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
24272 process_uses, build_single_def_use_links): New.
24273 (update_df): Update use_def_ref.
24274 (forward_propagate_into): Use get_def_for_use instead of use-def
24275 chains.
24276 (fwprop_init): Call build_single_def_use_links and let it initialize
24277 dataflow.
24278 (fwprop_done): Free use_def_ref.
24279 (fwprop_addr): Eliminate duplicate call to df_set_flags.
24280 * df-problems.c (df_rd_simulate_artificial_defs_at_top,
24281 df_rd_simulate_one_insn): New.
24282 (df_rd_bb_local_compute_process_def): Update head comment.
24283 (df_chain_create_bb): Use the new RD simulation functions.
24284 * df.h (df_rd_simulate_artificial_defs_at_top,
24285 df_rd_simulate_one_insn): New.
24286 * opts.c (decode_options): Enable fwprop at -O1.
24287 * doc/invoke.texi (-fforward-propagate): Document this.
24288
24289 2009-05-08 Joseph Myers <joseph@codesourcery.com>
24290
24291 PR c/24581
24292 * c-typeck.c (build_binary_op): Handle arithmetic between one real
24293 and one complex operand specially.
24294 * tree-complex.c (some_nonzerop): Do not identify a real value as
24295 zero if flag_signed_zeros.
24296
24297 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
24298
24299 PR rtl-optimization/33928
24300 * loop-invariant.c (record_use): Fix && vs. || mishap.
24301
24302 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
24303
24304 PR rtl-optimization/33928
24305 * loop-invariant.c (struct use): Add addr_use_p.
24306 (struct def): Add n_addr_uses.
24307 (struct invariant): Add cheap_address.
24308 (create_new_invariant): Set cheap_address.
24309 (record_use): Accept df_ref. Set addr_use_p and update n_addr_uses.
24310 (record_uses): Pass df_ref to record_use.
24311 (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
24312 used only as such.
24313
24314 2009-05-08 Kaz Kojima <kkojima@gcc.gnu.org>
24315
24316 * config/sh/sh.c: Do not include c-pragma.h.
24317
24318 2009-05-07 Andrew Pinski <andrew_pinski@playstation.sony.com>
24319
24320 * config/spu/spu.c: Remove include of c-common.h.
24321
24322 2009-05-07 Janis Johnson <janis187@us.ibm.com>
24323
24324 PR c/39037
24325 * c-common.h (mark_valid_location_for_stdc_pragma,
24326 valid_location_for_stdc_pragma_p, set_float_const_decimal64,
24327 clear_float_const_decimal64, float_const_decimal64_p): New.
24328 * c.opt (Wunsuffixed-float-constants): New.
24329 * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
24330 unsuffixed float constant, handle new warning.
24331 * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
24332 * c-decl.c (c_scope): New flag float_const_decimal64.
24333 (set_float_const_decimal64, clear_float_const_decimal64,
24334 float_const_decimal64_p): New.
24335 (push_scope): Set new flag.
24336 * c-parser.c (c_parser_translation_unit): Mark when it's valid
24337 to use STDC pragmas.
24338 (c_parser_external_declaration): Ditto.
24339 (c_parser_compound_statement_nostart): Ditto.
24340 * c-pragma.c (valid_location_for_stdc_pragma,
24341 mark_valid_location_for_stdc_pragma,
24342 valid_location_for_stdc_pragma_p, handle_stdc_pragma,
24343 handle_pragma_float_const_decimal64): New.
24344 (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
24345 * cp/semantics.c (valid_location_for_stdc_pragma_p,
24346 set_float_const_decimal64, clear_float_const_decimal64,
24347 float_const_decimal64_p): New dummy functions.
24348 * doc/extend.texi (Decimal Float): Remove statement that the
24349 pragma, and suffix for double constants, are not supported.
24350 * doc/invoke.texi (Warning Options): List new option.
24351 (-Wunsuffixed-float-constants): New.
24352
24353 2009-05-08 Steven Bosscher <steven@gcc.gnu.org>
24354
24355 * config/i386/i386.c: Do not include c-common.h.
24356
24357 2009-05-07 Mark Heffernan <meheff@google.com>
24358
24359 * doc/invoke.texi (Debugging Options): Document change of debugging
24360 dump location.
24361 * opts.c (decode_options): Make dump_base_name relative to
24362 aux_base_name directory.
24363
24364 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
24365
24366 * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
24367 * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
24368
24369 2009-05-07 Rafael Avila de Espindola <espindola@google.com>
24370
24371 * Makefile.in (install-plugin): Simplify a bit.
24372
24373 2009-05-07 Paolo Bonzini <bonzini@gnu.org>
24374
24375 * Makefile.in (OBJS-common): Add regcprop.o.
24376 (regcprop.o): New.
24377 * timevar.def (TV_CPROP_REGISTERS): New.
24378 * regrename.c (regrename_optimize): Return 0.
24379 (rest_of_handle_regrename): Delete.
24380 (pass_rename_registers): Point to regrename_optimize.
24381 (struct value_data_entry, struct value_data,
24382 kill_value_one_regno, kill_value_regno, kill_value,
24383 set_value_regno, init_value_data, kill_clobbered_value,
24384 kill_set_value, kill_autoinc_value, copy_value,
24385 mode_change_ok, maybe_mode_change, find_oldest_value_reg,
24386 replace_oldest_value_reg, replace_oldest_value_addr,
24387 replace_oldest_value_mem, copyprop_hardreg_forward_1,
24388 debug_value_data, validate_value_data): Move...
24389 * regcprop.c: ... here.
24390 (rest_of_handle_cprop): Delete.
24391 (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
24392
24393 2009-05-07 Jakub Jelinek <jakub@redhat.com>
24394
24395 PR middle-end/40057
24396 * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
24397 GEN_INT for 1 << bitnum.
24398 (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
24399 build_int_cst_type.
24400
24401 2009-05-07 Uros Bizjak <ubizjak@gmail.com>
24402
24403 * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
24404 Remove wrong description of "nand" operation.
24405
24406 2009-05-06 Richard Guenther <rguenther@suse.de>
24407 Adam Nemet <anemet@caviumnetworks.com>
24408
24409 * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
24410 comment. Add that if LHS is not a gimple register, then RHS1 has
24411 to be a single object (GIMPLE_SINGLE_RHS).
24412
24413 2009-05-06 Adam Nemet <anemet@caviumnetworks.com>
24414
24415 * expr.c (get_def_for_expr): Move it up in the file.
24416 (store_field): When expanding a bit-field store, look at the
24417 defining gimple stmt for the masking conversion.
24418
24419 2009-05-06 Janis Johnson <janis187@us.ibm.com>
24420
24421 PR middle-end/39986
24422 * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
24423 decode_decimal64, encode_decimal128, decode_decimal128): Avoid
24424 32-bit memcpy into long.
24425
24426 2009-05-06 Jakub Jelinek <jakub@redhat.com>
24427
24428 * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
24429 (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
24430 new_reg_loc_descr.
24431 (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
24432 instead of appending DW_OP_deref*.
24433
24434 2009-05-06 Michael Matz <matz@suse.de>
24435
24436 PR middle-end/40021
24437 * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
24438 (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
24439
24440 2009-05-06 Rafael Avila de Espindola <espindola@google.com>
24441
24442 * Makefile.in (install-plugin): Fix srcdir handling.
24443
24444 2009-05-06 Andrey Belevantsev <abel@ispras.ru>
24445
24446 * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
24447 when processing for not_regs_needed bitmap.
24448 * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
24449 handle TARGET_MEM_REF in lhs. Check TMR_BASE for NULL while
24450 handling it for rhs.
24451
24452 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
24453
24454 * config/i386/i386.md (unnamed inc/dec peephole): Use
24455 optimize_insn_for_size_p instead of optimize_size.
24456 * config/i386/predicates.md (incdec_operand): Likewise.
24457 (aligned_operand): Likewise.
24458 * config/i386/sse.md (divv8sf3): Likewise.
24459 (sqrtv8sf2): Likewise.
24460
24461 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
24462
24463 * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
24464
24465 * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
24466
24467 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
24468
24469 * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
24470 ssemodesuffixf2c with avxmodesuffixf2c.
24471
24472 2009-05-06 Joseph Myers <joseph@codesourcery.com>
24473
24474 PR c/40032
24475 * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
24476
24477 2009-05-05 Jakub Jelinek <jakub@redhat.com>
24478
24479 * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
24480 (struct tree_base): Adjust spacing for 8 bit boundaries.
24481 (struct tree_decl_common): Add decl_by_reference_flag bit.
24482 (DECL_BY_REFERENCE): Adjust.
24483 * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
24484 print DECL_BY_REFERENCE bit.
24485 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
24486 * dwarf2out.c (loc_by_reference, gen_decl_die): Check
24487 DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
24488 (gen_variable_die): Likewise. Check TREE_PRIVATE/TREE_PROTECTED
24489 unconditionally.
24490
24491 PR middle-end/39666
24492 * gimplify.c (gimplify_switch_expr): If case labels cover the whole
24493 range of the type, but default label is missing, add it with one
24494 of the existing labels instead of adding a new label for it.
24495
24496 2009-05-05 Joseph Myers <joseph@codesourcery.com>
24497
24498 * dwarf.h: Remove.
24499
24500 2009-05-05 Rafael Avila de Espindola <espindola@google.com>
24501
24502 * Makefile.in (enable_plugin, plugin_includedir): New.
24503 (install): Depend on install-plugin.
24504 (PLUGIN_HEADERS): New.
24505 (install-plugin): New.
24506 * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
24507
24508 2009-05-05 Richard Guenther <rguenther@suse.de>
24509
24510 PR tree-optimization/40022
24511 * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
24512 the only vuse.
24513 (phivn_valid_p): Fix tuplification error, simplify.
24514 (phiprop_insert_phi): Add dumps.
24515 (propagate_with_phi): Simplify.
24516
24517 2009-05-05 Richard Guenther <rguenther@suse.de>
24518
24519 PR middle-end/40023
24520 * builtins.c (gimplify_va_arg_expr): Properly build the address.
24521
24522 2009-05-05 Shujing Zhao <pearly.zhao@oracle.com>
24523
24524 * tree.h (strip_float_extensions): Remove duplicate declaration.
24525 (build_low_bits_mask, debug_fold_checksum, expand_function_end,
24526 expand_function_start, stack_protect_prologue, stack_protect_epilogue,
24527 block_ultimate_origin): Rearrange the declarations line to match the
24528 comment that indicates the .c file which the functions are defined.
24529 (dwarf2out_*, set_decl_rtl): Add comment.
24530 (get_base_address): Adjust comment.
24531 (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
24532 declarations line and add comment.
24533 (is_builtin_name): Add blank after function name, for clarity.
24534
24535 2009-05-04 Joseph Myers <joseph@codesourcery.com>
24536
24537 * attribs.c (decl_attributes): Use %qE for identifiers in
24538 diagnostics.
24539 * cgraphunit.c (verify_cgraph_node): Translate function names to
24540 locale character set in diagnostics.
24541 * coverage.c (get_coverage_counts): Use %qE for identifiers in
24542 diagnostics.
24543 * doc/invoke.texi (-finstrument-functions-exclude-function-list):
24544 Document that functions are named in UTF-8.
24545 * expr.c (expand_expr_real_1): Translate function names to locale
24546 character set in diagnostics.
24547 * gimplify.c (omp_notice_variable, omp_is_private,
24548 gimplify_scan_omp_clauses): Use %qE for identifiers in
24549 diagnostics.
24550 * langhooks.c (lhd_print_error_function): Translate function names
24551 to locale character set.
24552 * langhooks.h (decl_printable_name): Document that return value is
24553 in internal character set.
24554 * stmt.c: Include pretty-print.h
24555 (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
24556 diagnostics.
24557 (resolve_operand_name_1): Translate named operand name to locale
24558 character set.
24559 * stor-layout.c (finalize_record_size): Use %qE for identifiers in
24560 diagnostics.
24561 * toplev.c (announce_function): Translate function names to locale
24562 character set.
24563 (warn_deprecated_use): Use %qE for identifiers in diagnostics.
24564 (default_tree_printer): Use pp_identifier or translate identifiers
24565 to locale character set. Mark "<anonymous>" for translation.
24566 * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
24567 for identifiers in diagnostics.
24568 * tree.c (handle_dll_attribute): Use %qE for identifiers in
24569 diagnostics.
24570 * varasm.c (output_constructor): Use %qE for identifiers in
24571 diagnostics.
24572
24573 2009-05-04 Rafael Avila de Espindola <espindola@google.com>
24574
24575 * configure.ac: use ` ` instead of $()
24576 * configure: Regenerate.
24577
24578 2009-05-05 Ben Elliston <bje@au.ibm.com>
24579
24580 * config/pa/linux-atomic.c: Eliminate conditional include of
24581 errno.h on non-LP64 systems to simplify build requirements.
24582
24583 2009-05-04 Joseph Myers <joseph@codesourcery.com>
24584
24585 * c-common.c (handle_mode_attribute): Use %qE for identifiers in
24586 diagnostics.
24587 * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
24588 and pass value to identifier_to_locale.
24589 (warn_variable_length_array): Make name a tree.
24590 (grokdeclarator): Separate diagnostic texts for named and unnamed
24591 declarators. Use %qE for named declarators.
24592 * c-parser.c (c_lex_one_token): Use %qE for identifiers in
24593 diagnostics.
24594 * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
24595 identifiers in diagnostics.
24596 * c-typeck.c (push_member_name, start_init): Pass identifiers to
24597 identifier_to_locale. Mark "anonymous" strings for translation.
24598
24599 2009-05-04 Michael Eager <eager@eagercon.com>
24600
24601 * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
24602 address for DImode/DFmode only if double-precision FP regs.
24603
24604 2009-05-04 Michael Eager <eager@eagercon.com>
24605
24606 * config/rs6000/rs6000.c (rs6000_libcall_value): Add
24607 TARGET_SINGLE_FLOAT check.
24608
24609 2009-05-04 Michael Eager <eager@eagercon.com>
24610
24611 * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
24612
24613 2009-05-04 Michael Eager <eager@eagercon.com>
24614
24615 * gcc/config.gcc (powerpc-xilinx-eabi*): Add tm t-xilinx
24616 * config/rs6000/t-xilinx: New
24617
24618 2009-05-04 Paolo Bonzini <bonzini@gnu.org>
24619
24620 * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
24621 * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
24622 * gcc/explow.c (memory_address): Use target hook.
24623 * gcc/targhooks.c (default_legitimize_address): New.
24624 * gcc/targhooks.h (default_legitimize_address): New.
24625 * gcc/target.h (legitimize_address): New.
24626 * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
24627 (TARGET_INITIALIZER): Include it.
24628 * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
24629
24630 * config/bfin/bfin-protos.h (legitimize_address): Remove.
24631 * config/bfin/bfin.c (legitimize_address): Remove.
24632 * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
24633 * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
24634 Remove.
24635 * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
24636 * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
24637
24638 * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
24639 THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
24640 * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
24641 * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
24642 * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
24643 * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
24644 * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
24645 * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
24646 * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
24647 * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
24648 * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
24649 * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
24650 * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
24651 * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
24652 * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
24653 * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
24654 * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
24655 * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
24656 * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
24657 * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
24658 * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
24659 * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
24660 * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
24661
24662 * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
24663 * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
24664 * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
24665 * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
24666 * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
24667 * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
24668 * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
24669 * gcc/config/arm/arm-protos.h (arm_legitimize_address,
24670 (thumb_legitimize_address): Delete.
24671 * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
24672 * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
24673 * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
24674 * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
24675 * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
24676 * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
24677 Delete.
24678 * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
24679 Delete.
24680
24681 * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
24682 * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
24683 * config/m32r/m32r.c (m32r_legitimize_address): New.
24684 * config/m68k/m68k.c (m68k_legitimize_address): New.
24685 * config/score/score.c (score_legitimize_address): Standardize.
24686 * config/score/score3.c (score3_legitimize_address): Standardize.
24687 * config/score/score3.h (score3_legitimize_address): Adjust.
24688 * config/score/score7.c (score7_legitimize_address): Standardize.
24689 * config/score/score7.h (score7_legitimize_address): Adjust.
24690 * config/sh/sh.c (sh_legitimize_address): New.
24691 * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
24692
24693 * gcc/config/s390/s390.c (legitimize_address): Rename to...
24694 (s390_legitimize_address): ... this.
24695 * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
24696 (sparc_legitimize_address): ... this.
24697 * gcc/config/i386/i386.c (legitimize_address): Rename to...
24698 (ix86_legitimize_address): ... this.
24699 * gcc/config/avr/avr.c (legitimize_address): Rename to...
24700 (avr_legitimize_address): ... this.
24701 * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
24702 (mn10300_legitimize_address): ... this.
24703 * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
24704 (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
24705 (alpha_expand_mov): Adjust call.
24706
24707 * config/frv/frv.c (frv_legitimize_address): Return x on failure.
24708 * config/spu/spu.c (spu_legitimize_address): Likewise.
24709 * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
24710 * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
24711
24712 2009-05-04 Joseph Myers <joseph@codesourcery.com>
24713
24714 * intl.c (locale_encoding, locale_utf8): New.
24715 (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
24716 * intl.h (locale_encoding, locale_utf8): Declare.
24717 * pretty-print.c: Include ggc.h. Include iconv.h if HAVE_ICONV.
24718 (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
24719 New.
24720 * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
24721 argument.
24722 (pp_tree_identifier): Define to call pp_base_tree_identifier.
24723 (pp_base_tree_identifier): Declare as function.
24724 (identifier_to_locale): Declare.
24725 * Makefile.in (pretty-print.o): Update dependencies.
24726 * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
24727
24728 2009-05-04 Richard Guenther <rguenther@suse.de>
24729
24730 PR middle-end/40015
24731 * builtins.c (fold_builtin_memory_op): Do not decay to element
24732 type if the size matches the whole array.
24733
24734 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
24735
24736 * expmed.c (synth_mult): When trying out a shift, pass the result
24737 of a signed shift.
24738
24739 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
24740
24741 * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
24742 (shiftsub1_cost): New.
24743 (init_expmed): Compute shiftsub1_cost.
24744 (synth_mult): Optimize multiplications by constants of the form
24745 -(2^^m-1) for some constant positive integer m.
24746
24747 2009-05-03 Richard Guenther <rguenther@suse.de>
24748
24749 PR c/39983
24750 * c-typeck.c (array_to_pointer_conversion): Do not built
24751 ADDR_EXPRs of arrays of pointer-to-element type.
24752 * c-gimplify.c (c_gimplify_expr): Revert change fixing
24753 up wrong ADDR_EXPRs after-the-fact.
24754 * c-common.c (strict_aliasing_warning): Strip pointer
24755 conversions for obtaining the original type.
24756 * builtins.c (fold_builtin_memset): Handle array types.
24757 (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
24758 and array types
24759
24760 2009-05-03 Richard Guenther <rguenther@suse.de>
24761
24762 PR middle-end/23329
24763 * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
24764 Do not lose casts from array types with unknown extent to array
24765 types with known extent.
24766 * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
24767 alias set compatibility.
24768
24769 2009-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
24770
24771 * flags.h (extra_warnings): Delete.
24772 * toplev.c (process_options): Handle Wuninitialized here.
24773 * opts.c (extra_warnings): Delete.
24774 (set_Wextra): Delete.
24775 (common_handle_option): -Wextra can be handled automatically.
24776 * c-opts.c (c_common_handle_option): Delete obsolete code.
24777 (c_common_post_options): Simplify comment.
24778 * common.opt (W): Add Var.
24779 (Wextra): Add Var.
24780 (Wuninitialized): Initialize to -1.
24781
24782 2009-05-03 Adam Nemet <anemet@caviumnetworks.com>
24783 Richard Guenther <rguenther@suse.de>
24784
24785 * expr.c (get_def_for_expr): New function.
24786 (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
24787 SSA rather than trees.
24788 <MULT_EXPR>: Likewise. Use subexp0 and subexp1 instead of
24789 TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
24790
24791 2009-05-03 Joseph Myers <joseph@codesourcery.com>
24792
24793 * c-common.c (reswords): Add _Imaginary.
24794 * c-common.c (enum rid): Add RID_IMAGINARY.
24795
24796 2009-05-03 Paolo Bonzini <bonzini@gnu.org>
24797
24798 * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
24799 Patch by Richard Guenther.
24800
24801 2009-05-03 Anatoly Sokolov <aesok@post.ru>
24802
24803 * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
24804 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
24805 * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
24806 * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
24807 * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
24808 * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
24809 * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
24810 * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
24811 * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
24812 * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
24813 * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
24814 * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
24815 * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
24816 * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
24817 * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
24818 * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
24819 * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
24820 * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
24821
24822 2009-05-02 Richard Guenther <rguenther@suse.de>
24823
24824 PR tree-optimization/39940
24825 * tree-ssa-pre.c (eliminate): Make sure we may propagate before
24826 doing so.
24827
24828 2009-05-02 Richard Guenther <rguenther@suse.de>
24829
24830 PR middle-end/40001
24831 * tree-ssa.c (execute_update_addresses_taken): Properly check
24832 if we can mark a variable DECL_GIMPLE_REG_P.
24833 * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
24834 back to the end of the function.
24835 (is_gimple_reg_type): Remove complex type special casing.
24836 * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
24837 if not optimizing.
24838
24839 2009-05-02 Ben Elliston <bje@au.ibm.com>
24840
24841 * doc/collect2.texi (Collect2): Document search path behaviour
24842 when configured with --with-ld.
24843
24844 2009-05-02 Jan Hubicka <jh@suse.cz>
24845
24846 * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
24847 parameter; update callers.
24848 (coalesce_cost_edge): EH edges are costier because they needs
24849 splitting even if not critical and even more costier when there are
24850 multiple EH predecestors.
24851
24852 2009-05-02 Jan Hubicka <jh@suse.cz>
24853
24854 * except.c (remove_eh_handler_and_replace): Handle updating after
24855 removing TRY blocks.
24856
24857 2009-05-02 Eric Botcazou <ebotcazou@adacore.com>
24858
24859 * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
24860
24861 2009-05-02 Steven Bosscher <steven@gcc.gnu.org>
24862
24863 * varasm.c: Do not include c-pragma.h.
24864 * attribs.c: Do not incude c-common.h.
24865
24866 2009-05-01 Michael Matz <matz@suse.de>
24867
24868 * calls.c (initialize_argument_information): Handle SSA names like
24869 decls with a non MEM_P DECL_RTL.
24870
24871 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
24872
24873 * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
24874 * ipa-utils.c: Likewise.
24875 * ipa-type-escape.c: Likewise.
24876 * cgraphunit.c Do not include c-common.h.
24877 * ipa-pure-const.c: Likewise.
24878 * tree-if-conv.c: Likewise.
24879 * matrix-reorg.c: Do not include c-common.h and c-tree.h.
24880 * ipa-struct-reorg.c: Likewise.
24881 * tree-nomudflap.c: Likewise.
24882 * tree-ssa-structalias.c: Likewise.
24883
24884 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
24885
24886 * store-motion.c: Many cleanups to make this pass a first-class
24887 citizen instead of an appendix to gcse load motion. Add TODO list
24888 to make this pass faster/cleaner/better.
24889
24890 (struct ls_expr): Post gcse.c-split cleanups.
24891 Rename to st_expr. Rename "loads" field to "antic_stores". Rename
24892 "stores" field to "avail_stores".
24893 (pre_ldst_mems): Rename to store_motion_mems.
24894 (pre_ldst_table): Rename to store_motion_mems_table.
24895 (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
24896 (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
24897 (ldst_entry): Rename to st_expr_entry, update users.
24898 (free_ldst_entry): Rename to free_st_expr_entry, update users.
24899 (free_ldst_mems): Rename to free_store_motion_mems, update users.
24900 (enumerate_ldsts): Rename to enumerate_store_motion_mems,
24901 update caller.
24902 (first_ls_expr): Rename to first_st_expr, update users.
24903 (next_ls_expr): Rename to next_st_expr, update users.
24904 (print_ldst_list): Rename to print_store_motion_mems. Print names of
24905 fields properly for store motion instead of names inherited from load
24906 motion in gcse.c.
24907 (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
24908 (LAST_AVAIL_CHECK_FAILURE): Explain what this is. Undefine when we
24909 are done with it.
24910
24911 (ae_kill): Rename to st_kill, update users.
24912 (ae_gen): Rename to st_avloc, update users.
24913 (transp): Rename to st_transp, update users.
24914 (pre_insert_map): Rename to st_insert_map, update users.
24915 (pre_delete_map): Rename to st_delete_map, update users.
24916 (insert_store, build_store_vectors, free_store_memory,
24917 one_store_motion_pass): Update for abovementioned changes.
24918
24919 (gcse_subst_count, gcse_create_count): Remove.
24920 (one_store_motion_pass): New statistics counters "n_stores_deleted"
24921 and "n_stores_created", local variables.
24922
24923 (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
24924 use for_each_rtx.
24925
24926 (regvec, compute_store_table_current_insn): Remove.
24927 (reg_set_info, reg_clear_last_set): Remove.
24928 (compute_store_table): Use DF caches instead of local dataflow
24929 solvers.
24930
24931 2009-05-01 Joseph Myers <joseph@codesourcery.com>
24932
24933 * c-objc-common.c (c_tree_printer): Print identifiers with
24934 pp_identifier, not pp_string. Mark "({anonymous})" for
24935 translation.
24936 * c-pretty-print.c (pp_c_ws_string): New.
24937 (pp_c_cv_qualifier, pp_c_type_specifier,
24938 pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
24939 pp_c_storage_class_specifier, pp_c_function_specifier,
24940 pp_c_attributes, pp_c_bool_constant, pp_c_constant,
24941 pp_c_primary_expression, pp_c_postfix_expression,
24942 pp_c_unary_expression, pp_c_shift_expression,
24943 pp_c_relational_expression, pp_c_equality_expression,
24944 pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
24945 use pp_string and pp_c_ws_string in place of pp_identifier and
24946 pp_c_identifier for non-identifiers. Mark English strings for
24947 translation.
24948 * c-pretty-print.h (pp_c_ws_string): Declare.
24949
24950 2009-04-30 Paul Pluzhnikov <ppluzhnikov@google.com>
24951 Roland McGrath <roland@redhat.com>
24952
24953 * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
24954 (ENABLE_LD_BUILDID): New configuration option.
24955 * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
24956 (LINK_BUILDID_SPEC): New macro.
24957 (init_spec): If defined, prepend it between LINK_EH_SPEC and
24958 link_spec.
24959 * doc/install.texi: Document --enable-linker-build-id option.
24960 * configure: Rebuild.
24961 * config.in: Rebuild.
24962
24963 2009-04-30 Adam Nemet <anemet@caviumnetworks.com>
24964
24965 * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
24966 MIPS_GP_SAVE_AREA_SIZE): Define new macros.
24967 (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD. Use
24968 MIPS_GP_SAVE_AREA_SIZE.
24969 * config/mips/mips.c (struct mips_frame_info): Update comment
24970 before arg_pointer_offset and hard_frame_pointer_offset.
24971 (mips_compute_frame_info): Update diagram before function: to
24972 correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
24973 indicate the position of frame_pointer_rtx with -fstack-protector and
24974 to show args_size. Don't allocate cprestore area for leaf functions
24975 if FRAME_GROWS_DOWNWARD. Use MIPS_GP_SAVE_AREA_SIZE to set
24976 cprestore_size.
24977 (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
24978
24979 2009-04-30 Michael Matz <matz@suse.de>
24980
24981 PR tree-optimization/39955
24982 * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
24983
24984 2009-04-30 Dave Korn <dave.korn.cygwin@gmail.com>
24985
24986 * ira.c (setup_cover_and_important_classes): Use safe macro
24987 REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
24988 directly.
24989 * genpreds.c (write_tm_preds_h): Output suitable definition of
24990 REG_CLASS_FOR_CONSTRAINT.
24991
24992 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
24993
24994 * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
24995 instead of an int.
24996 * bitmap.c (bitmap_descriptor): Likewise.
24997 * ggc-common.c (loc_descriptor): Likewise.
24998 * varray.c (varray_descriptor): Likewise.
24999 * vec.c (vec_descriptor): Likewise.
25000
25001 2009-04-30 Eric Botcazou <ebotcazou@adacore.com>
25002
25003 * Makefile.in (dce.o): Add $(EXCEPT_H).
25004 * dce.c: Include except.h and delete redundant vector definitions.
25005 (deletable_insn_p): Return false for non-call insns that can throw
25006 if DF is running.
25007
25008 2009-04-30 Steven Bosscher <steven@gcc.gnu.org>
25009
25010 * gcse.c (ae_gen): Remove.
25011 (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
25012 and make non-static function to make it available in store-motion.c.
25013 Update call sites with search-and-replace.
25014 (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
25015 extract_mentioned_regs, extract_mentioned_regs_helper,
25016 find_moveable_store, compute_store_table, load_kills_store, find_loads,
25017 store_killed_in_insn, store_killed_after, store_killed_before,
25018 build_store_vectors, insert_insn_start_basic_block, insert-store,
25019 remove_reachable_equiv_notes, replace_store_insn, delete_store,
25020 free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
25021 execute_rtl_store_motion, pass_rtl_store_motion): Move to...
25022 * store-motion.c: ...new file. Also copy data structures from gcse.c
25023 and clean up to remove parts not used by store motion.
25024 * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
25025 * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
25026
25027 2009-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25028
25029 PR target/38571
25030 * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
25031 when optimizing for size.
25032
25033 2009-04-30 Hans-Peter Nilsson <hp@axis.com>
25034
25035 * gcse.c (gcse_constant_p): Fix typo in last change.
25036
25037 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
25038
25039 * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
25040
25041 2009-04-30 Andreas Krebbel <krebbel1@de.ibm.com>
25042
25043 * gcse.c (gcse_constant_p): Make sure the constant is sharable.
25044
25045 2009-04-29 James E. Wilson <wilson@codesourcery.com>
25046
25047 * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
25048 CONST_HIGH_PART result.
25049
25050 2009-04-29 Anatoly Sokolov <aesok@post.ru>
25051
25052 * config/avr/avr.c (initial_elimination_offset): Rename to
25053 avr_initial_elimination_offset.
25054 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
25055 change return type to bool.
25056 (avr_can_eliminate): New function.
25057 * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
25058 (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
25059 (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
25060 * config/avr/avr-protos.h (initial_elimination_offset): Rename to
25061 avr_initial_elimination_offset.
25062 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
25063 (avr_initial_elimination_offset): Define.
25064
25065 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
25066 Steven Bosscher <steven@gcc.gnu.org>
25067
25068 PR rtl-optimization/39938
25069 * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
25070 * cfgrtl.c: Include insn-attr.h.
25071 (rest_of_pass_free_cfg): New function.
25072 (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
25073 * resource.c (init_resource_info): Remove call to df_analyze.
25074
25075 2009-04-29 Richard Guenther <rguenther@suse.de>
25076
25077 PR target/39943
25078 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
25079 allow conversion to signed integers.
25080
25081 2009-04-29 Richard Guenther <rguenther@suse.de>
25082
25083 * tree-cfg.c (verify_gimple_assign_binary): Allow vector
25084 shifts of floating point vectors if the shift amount is
25085 a constant multiple of the element size.
25086
25087 2009-04-29 Andreas Krebbel <krebbel1@de.ibm.com>
25088 Michael Matz <matz@suse.de>
25089
25090 PR middle-end/39927
25091 PR bootstrap/39929
25092 * tree-outof-ssa.c (emit_partition_copy): New function.
25093 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
25094 insert_part_to_rtx_on_edge): Perform the partition base var
25095 copy using emit_partition_copy.
25096 (insert_value_copy_on_edge): Convert constants to the right mode.
25097 (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
25098 (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
25099
25100 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
25101
25102 * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
25103 scan backwards to try to find a constant to initialize it.
25104
25105 * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
25106 insn before the loop_end instruction, don't look past labels.
25107
25108 2009-04-29 Richard Guenther <rguenther@suse.de>
25109
25110 PR middle-end/39937
25111 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
25112 loose type conversions.
25113 (forward_propagate_addr_expr): Fix tuplification bug. Remove
25114 stmts only if there are no uses of its definition.
25115
25116 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
25117
25118 * config/bfin/bfin.h (splitting_loops): Declare.
25119 * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
25120 Reorder bit definitions to be ascending.
25121 (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
25122 * config/bfin/bfin.c (splitting_loops): New variable.
25123 (bfin_cpus): Add WA_LOAD_LCREGS as needed.
25124 (struct loop_info): Remove members INIT and LOOP_INIT.
25125 (bfin_optimize_loop): Don't set them. Reorder the code that generates
25126 the LSETUP sequence. Allow LC to be loaded from any register, but
25127 also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
25128 (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
25129 set to 1.
25130 * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
25131 of reload_completed.
25132
25133 From Jie Zhang:
25134 * config/bfin/bfin.md (movsi_insn): Refine constraints.
25135
25136 2009-04-29 Rafael Avila de Espindola <espindola@google.com>
25137
25138 * Makefile.in (PLUGIN_VERSION_H): New.
25139 (OBJS-common): Remove plugin-version.o.
25140 (plugin.o): Depend on (PLUGIN_VERSION_H).
25141 (plugin-version.o): Remove.
25142 * configure: Regenerate
25143 * configure.ac: Create plugin-version.h.
25144 * gcc-plugin.h (plugin_gcc_version): Remove.
25145 (plugin_default_version_check): Change signature.
25146 * plugin-version.c: Remove.
25147 * plugin.c: Include plugin-version.h.
25148 (str_plugin_gcc_version_name): Remove.
25149 (try_init_one_plugin): Pass gcc version to plugin_init.
25150 (plugin_default_version_check): Both gcc and plugin versions are now
25151 arguments.
25152
25153 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
25154
25155 * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
25156 problematic last insns. Test for TYPE_CALL rather than CALL_P.
25157 Remove special case testing for last insn of inner loops. Don't fail
25158 if the loop ends with a jump, emit an extra nop instead.
25159
25160 * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
25161 DREGS rather than comparing directly. Remove code that tries to
25162 account for latencies.
25163
25164 2009-04-29 Richard Guenther <rguenther@suse.de>
25165
25166 PR tree-optimization/39941
25167 * tree-ssa-pre.c (eliminate): Schedule update-ssa after
25168 eliminating an indirect call.
25169
25170 2009-04-29 Richard Guenther <rguenther@suse.de>
25171
25172 * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
25173 parameter. Allow invariants as base if !require_lvalue.
25174 (verify_gimple_assign_single): Adjust.
25175
25176 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
25177
25178 * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
25179 (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
25180 ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
25181 ssubhi3, ssaddhi3_parts and sssubhi3_parts.
25182 (flag_mulhi3_parts): Produce a HImode output rather than trying to set
25183 a VEC_SELECT.
25184 * config/bfin/bfin.c (bfin_expand_builtin,
25185 case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
25186
25187 2009-04-28 Richard Guenther <rguenther@suse.de>
25188
25189 * tree-vect-loop.c (get_initial_def_for_induction): Use
25190 correct types for pointer increment.
25191
25192 2009-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25193
25194 * toplev.c (print_version): Update GMP version string calculation.
25195
25196 2009-04-28 Eric Botcazou <ebotcazou@adacore.com>
25197
25198 PR rtl-optimization/39938
25199 * resource.c (init_resource_info): Add call to df_analyze.
25200
25201 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
25202
25203 * config/alpha/alpha.md (usegp): Cast the result of
25204 alpha_find_lo_sum_using_gp to enum attr_usegp.
25205 * config/alpha/alpha.c (override_options): Remove end-of-structure
25206 marker element from cpu_table. Use array size of cpu_table to handle
25207 -mcpu and -mtune options.
25208 (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
25209
25210 2009-04-28 Joseph Myers <joseph@codesourcery.com>
25211
25212 * config.gcc (powerpc*-*-* | rs6000-*-*): Add
25213 rs6000/option-defaults.h to tm_file. Support cpu_32, cpu_64,
25214 tune_32 and tune_64.
25215 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
25216 support on PowerPC.
25217 * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
25218 * config/rs6000/option-defaults.h: ... here. New file.
25219 (OPT_64, OPT_32): Define.
25220 (MASK_64BIT): Define to 0 if not already defined.
25221 (OPT_ARCH64, OPT_ARCH32): Define.
25222 (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
25223 and tune_64.
25224
25225 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25226
25227 * config/arm/arm.c (arm_override_options): Emit error on using
25228 fpa with AAPCS.
25229
25230 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
25231
25232 PR rtl-optimization/39914
25233 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
25234 registers for allocnos created from user-defined variables only
25235 when not optimizing.
25236
25237 2009-04-28 Richard Guenther <rguenther@suse.de>
25238
25239 PR middle-end/39937
25240 * fold-const.c (fold_binary): Use distribute_real_division only
25241 on float types.
25242
25243 2009-04-28 Steve Ellcey <sje@cup.hp.com>
25244
25245 * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
25246 add hpux-stdint.h to tm_file.
25247 (hppa[12]*-*-hpux11*): Ditto.
25248 (ia64*-*-hpux*): Ditto.
25249 * config/hpux-stdint.h: New.
25250 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
25251 __STDC_EXT__ for all compiles.
25252 * config/pa/pa-hpux.h: Ditto.
25253 * config/pa/pa-hpux10.h: Ditto.
25254 * config/pa/pa-hpux11.h: Ditto.
25255
25256 2009-04-28 Catherine Moore <clm@codesourcery.com>
25257
25258 * debug.h (set_name): Add comment.
25259
25260 2009-04-28 Andrew Pinski <pinskia@gmail.com>
25261
25262 PR target/39929
25263 * config/darwin.c (machopic_gen_offset): Check
25264 currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
25265 * config/arm/arm.c (require_pic_register): Likewise.
25266
25267 2009-04-28 Paolo Bonzini <bonzini@gnu.org>
25268
25269 * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
25270 m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
25271 m32c_promote_prototypes): Delete.
25272
25273 2009-04-28 Michael Matz <matz@suse.de>
25274
25275 PR middle-end/39922
25276 * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
25277 constants.
25278
25279 2009-04-28 Richard Guenther <rguenther@suse.de>
25280
25281 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
25282
25283 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25284
25285 * config/arm/arm-cores.def: Add support for arm1156t2f-s.
25286 * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
25287 * config/arm/arm-tune.md: Regenerate.
25288
25289 2009-04-28 Alexander Monakov <amonakov@ispras.ru>
25290
25291 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
25292 block if there are complex incoming edges.
25293 (sel_merge_blocks): Remove useless assert.
25294 (sel_redirect_edge_and_branch): Check that edge was redirected.
25295 * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
25296 (sel_find_rgns): Delete declaration.
25297 * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
25298 the region when it is not a preheader.
25299
25300 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
25301
25302 PR c/39323
25303 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
25304
25305 2009-04-28 Richard Guenther <rguenther@suse.de>
25306
25307 * tree.h (SSA_NAME_VALUE): Remove.
25308 (struct tree_ssa_name): Remove value_handle member.
25309 * tree-vrp.c (execute_vrp): Initialize/free the value-handle
25310 array for jump threading.
25311 * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
25312 SSA_NAME_VALUEs.
25313 * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
25314 * tree-flow.h (threadedge_initialize_values): Declare.
25315 (threadedge_finalize_values): Likewise.
25316 * tree-ssa-threadedge.c (ssa_name_values): New global variable.
25317 (SSA_NAME_VALUE): Define.
25318 (threadedge_initialize_values): New function.
25319 (threadedge_finalize_values): Likewise.
25320 * tree-ssa-dom.c (ssa_name_values): New global variable.
25321 (SSA_NAME_VALUE): Define.
25322 (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
25323
25324 2009-04-28 Ira Rosen <irar@il.ibm.com>
25325
25326 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
25327 Use REPORT_VECTORIZED_LOCATIONS instead
25328 REPORT_VECTORIZED_LOOPS.
25329 * tree-vectorizer.c (vect_verbosity_level): Make static.
25330 (vect_loop_location): Rename to vect_location.
25331 (vect_set_verbosity_level): Update comment.
25332 (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
25333 and vect_location.
25334 (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
25335 and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
25336 instead REPORT_UNVECTORIZED_LOOPS.
25337 * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
25338 and vect_loop_def to vect_external_def and vect_internal_def.
25339 (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
25340 and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
25341 REPORT_UNVECTORIZED_LOCATIONS.
25342 (enum vect_relevant): Update comment. Rename vect_unused_in_loop
25343 and vect_used_in_loop and to vect_unused_in_scope and
25344 vect_used_in_scope.
25345 (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
25346 (vect_verbosity_level): Remove declaration.
25347 (vect_analyze_operations): Likewise.
25348 (vect_analyze_stmt): Declare.
25349 * tree-vect-loop.c (vect_determine_vectorization_factor): Use
25350 REPORT_UNVECTORIZED_LOCATIONS.
25351 (vect_get_loop_niters): Fix indentation.
25352 (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
25353 (vect_analyze_loop_operations): New function.
25354 (vect_analyze_loop): Call vect_analyze_loop_operations instead of
25355 vect_analyze_operations.
25356 (vect_is_simple_reduction): Use new names.
25357 (vectorizable_live_operation, vect_transform_loop): Likewise.
25358 * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
25359 to specify whether the data references can be a part of interleaving
25360 chain.
25361 (vect_analyze_data_ref_dependence): Use new names.
25362 (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
25363 (vect_create_addr_base_for_vector_ref): Remove redundant code.
25364 * tree-vect-patterns.c (widened_name_p): Use new names.
25365 (vect_recog_dot_prod_pattern): Likewise.
25366 * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
25367 (process_use, vect_mark_stmts_to_be_vectorized,
25368 vect_model_simple_cost, vect_model_store_cost,
25369 vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
25370 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
25371 vectorizable_operation, vectorizable_type_demotion,
25372 vectorizable_type_promotion, vectorizable_store, vectorizable_load,
25373 vectorizable_condition): Likewise.
25374 (vect_analyze_operations): Split into vect_analyze_loop_operations
25375 and ...
25376 (vect_analyze_stmt): ... new function.
25377 (new_stmt_vec_info): Use new names.
25378 (vect_is_simple_use): Use new names and fix comment.
25379 * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
25380 (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
25381
25382 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
25383
25384 PR target/39911
25385 * config/i386/i386.c (print_operand) ['Z']: Handle floating point
25386 and integer modes for x87 operands. Do not ICE for unsupported size,
25387 generate error instead. Generate error for unsupported operand types.
25388 ['z']: Do not handle HImode memory operands specially. Warning
25389 for floating-point operands. Fallthru to 'Z' for unsupported operand
25390 types. Do not ICE for unsupported size, generate error instead.
25391 (output_387_binary_op): Use %Z to output operands.
25392 (output_fp_compare): Ditto.
25393 (output_387_reg_move): Ditto.
25394
25395 2009-04-28 Ben Elliston <bje@au.ibm.com>
25396
25397 PR c++/35652
25398 Revert:
25399
25400 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
25401
25402 * builtins.c (c_strlen): Do not warn here.
25403 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
25404 * c-common.c (pointer_int_sum): Take an explicit location.
25405 Warn about offsets out of bounds.
25406 * c-common.h (pointer_int_sum): Adjust declaration.
25407
25408 2009-04-27 Ian Lance Taylor <iant@google.com>
25409
25410 * collect2.c (is_ctor_dtor): Change type of ret field in struct
25411 names to symkind.
25412 * dce.c (run_fast_df_dce): Change type of old_flags to int.
25413 * df-core.c (df_set_flags): Change return type to int. Change
25414 type of old_flags to int.
25415 (df_clear_flags): Likewise.
25416 * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
25417 (df_get_conditional_uses): Likewise.
25418 * df.h (df_set_flags, df_clear_flags): Update declarations.
25419 * dwarf2out.c (struct indirect_string_node): Change type of form
25420 field to enum dwarf_form.
25421 (AT_string_form): Change return type to enum dwarf_form.
25422 * fixed-value.c (fixed_compare): Add cast to enum type.
25423 * fwprop.c (update_df): Change 0 to VOIDmode.
25424 * gensupport.c: Change 0 to UNKNOWN.
25425 * gimple.h (gimple_cond_code): Add cast to enum type.
25426 * haifa-sched.c (reemit_notes): Add cast to enum type.
25427 * hooks.c (hook_int_void_no_regs): Remove function.
25428 * hooks.h (hook_int_void_no_regs): Remove declaration.
25429 * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
25430 * predict.c (combine_predictions_for_insn): Add casts to enum type.
25431 * real.c (real_arithmetic): Add cast to enum type.
25432 (real_compare): Likewise.
25433 * target.h (struct gcc_target): Change return type of
25434 branch_target_register_class to enum reg_class.
25435 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
25436 default_branch_target_register_class.
25437 * targhooks.c (default_branch_target_register_class): New function.
25438 * targhooks.h (default_branch_target_register_class): Declare.
25439 * tree-data-ref.c (print_direction_vector): Add cast to enum type.
25440 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
25441 cast to int.
25442 * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
25443 ERROR_MARK.
25444 * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
25445 vect_uninitialized_def. Change 0 to ERROR_MARK.
25446 * tree-vect-stmts.c (supportable_widening_operation): Don't
25447 initialize icode1 and icode2.
25448 * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
25449 * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
25450 and to STD_C89.
25451 (cmn_err_flag_specs): Change 0 to STD_C89.
25452 (cmn_err_char_table): Likewise.
25453 * config/arm/arm.c (get_arm_condition_code): Change type of code
25454 to enum arm_cond_code.
25455 (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
25456 (IWMMXT_BUILTIN2): Likewise.
25457 (neon_builtin_type_bits): Don't define typedef.
25458 (neon_builtin_datum): Change type of bits field to int.
25459 (arm_expand_neon_args): Add cast to enum type.
25460 * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
25461 TLS_MODEL_NONE.
25462 * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN. Add
25463 casts to enum type.
25464 * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
25465 MIPS_FP_COND_f.
25466 * config/mips/mips.md (jal_macro): Return enum constant.
25467 (single_insn): Likewise.
25468 * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
25469 CODE_FOR_nothing.
25470 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25471 casts to enum type.
25472 * config/s390/s390.c (s390_tune_flags): Change type to int.
25473 (s390_arch_flags): Likewise.
25474 (s390_handle_arch_option): Change flags field of struct pta to int.
25475 * config/s390/s390.h (s390_tune_flags): Update declaration.
25476 (s390_arch_flags): Likewise.
25477 * config/sh/sh.c (prepare_move_operands): Compare
25478 tls_symbolic_operand result with enum constant.
25479 (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
25480 (sh_expand_prologue): Add cast to enum type.
25481 (sh_expand_epilogue): Likewise.
25482 (tls_symbolic_operand): Change return type to enum tls_model.
25483 (fpscr_set_from_mem): Add cast to enum type.
25484 (legitimize_pic_address): Compare tls_symbolic_operand result with
25485 enum constant.
25486 (sh_target_reg_class): Change return type to enum reg_class.
25487 * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
25488 PROCESSOR_xxx.
25489 * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
25490 * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
25491 * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
25492 (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
25493 (delayed_branch, tls_call_delay): Likewise.
25494 (eligible_for_sibcall_delay): Likewise.
25495 (eligible_for_return_delay): Likewise.
25496 * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
25497 (spu_expand_builtin_1): Likewise.
25498
25499 * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
25500 for all types of conversions.
25501 (output_init_element): Issue -Wc++-compat warning if needed when
25502 initializing a bitfield with enum type.
25503 * c-parser.c (c_parser_expression): Set original_type to
25504 original_type of right hand operand of comma operator.
25505
25506 2009-04-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25507
25508 * doc/c-tree.texi (Types, Functions, Expression trees): Fix
25509 grammar nits.
25510 * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
25511 * doc/cpp.texi (Standard Predefined Macros)
25512 (Implementation-defined behavior): Likewise.
25513 * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
25514 * doc/gimple.texi (GIMPLE Exception Handling)
25515 (@code{GIMPLE_ASSIGN}): Likewise.
25516 * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
25517 * doc/invoke.texi (Warning Options, Optimize Options)
25518 (AVR Options, Darwin Options): Likewise.
25519 (Optimize Options): Reformulate -fwhole-program description.
25520 * doc/loop.texi (Lambda): Likewise.
25521 * doc/md.texi (Output Template, Define Constraints)
25522 (Standard Names, Insn Splitting): Likewise.
25523 * doc/options.texi (Option properties): Likewise.
25524 * doc/passes.texi (Tree-SSA passes): Likewise.
25525 * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
25526 * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
25527 (File Names and DBX): Likewise.
25528 * doc/trouble.texi (Incompatibilities): Likewise.
25529
25530 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
25531
25532 * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
25533 instruction is correct.
25534
25535 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
25536
25537 Allow non-constant arguments to conversion intrinsics.
25538 * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
25539 * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
25540 * spu.c (print_operand): Handle 'v' and 'w'.
25541 (exp2_immediate_p, spu_gen_exp2): Define.
25542 * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
25543 spu_convtf_1): Update parameter descriptions.
25544 * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
25545 * constraints.md ('v', 'w'): New.
25546 * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
25547 Remove.
25548 (i2f, I2F): New define_mode_attr.
25549 (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
25550 floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
25551 fixuns_truncv4sfv4si2): Update to use mode attribute.
25552 (float<mode><i2f>2_mul, float<mode><i2f>2_div,
25553 fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
25554 floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
25555 patterns for combine.
25556
25557 2009-04-27 Steven Bosscher <steven@gcc.gnu.org>
25558
25559 * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
25560 (cprop, hoist, pre, store_motion): New debug counters.
25561 * tree-pass.h (pass_tracer): Move to list of gimple passes, it
25562 is not an RTL pass anymore.
25563 (pass_profiling): Remove extern decl for pass removed in 2005.
25564 (pass_gcse, pass_jump_bypass): Remove.
25565 * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
25566 to 0 for clean state.
25567 * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
25568 * cse.c (gate_handle_cse_after_global_opts,
25569 rest_of_handle_cse_after_global_opts): New functions.
25570 (pass_cse_after_global_opts): New pass, does local CSE.
25571 * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
25572 (TV_CPROP): New timevar.
25573 * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
25574 (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
25575 (gcse_main, recompute_all_luids): Remove.
25576 (compute_hash_table_work): Call max_reg_num instead of reading
25577 max_gcse_regno.
25578 (cprop_jump): Don't set run_jump_opt_after_gcse.
25579 (constprop_register): Always allow to alter jumps.
25580 (cprop_insn): Likewise.
25581 (do_local_cprop): Likewise.
25582 (local_cprop_pass): Likewise. Return non-zero if something changed.
25583 (cprop): Remove function, fold interesting bits into one_cprop_pass.
25584 (find_implicit_sets): Add note about missed optimization opportunity.
25585 (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
25586 pass_rtl_cprop execute function.
25587 Don't bother tracking the pass number, each pass gets its own dumpfile
25588 now anyway.
25589 Always allow to alter jumpsand bypass jumps.
25590 (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
25591 will just find no suitable set.
25592 (pre_edge_insert): Fix dumping, this function is for PRE only.
25593 (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
25594 pass_rtl_pre execute function.
25595 (hoist_code): Return non-zero if something changed. Keep track of
25596 substitutions and insertions for statistics gathering similar to PRE.
25597 (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
25598 called from the pass_rtl_hoist execute function. Show pass statistics.
25599 (compute_store_table): Use max_reg_num directly instead of using the
25600 formerly global max_gcse_regno.
25601 (build_store_vectors): Likewise.
25602 (replace_store_insn): Fix dumping.
25603 (store_motion): Rename to ...
25604 (one_store_motion_pass): ... this. Rewrite to be "the" STORE_MOTION
25605 pass, called from the pass_rtl_store_motion execute function. Keep
25606 track of substitutions and insertions for statistics gathering similar
25607 to PRE.
25608 (bypass_jumps): Remove, fold interesting bits into ...
25609 (one_cprop_pass): ... this. Rewrite to be "the" CPROP pass, called
25610 from the pass_rtl_cprop execute function.
25611 (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
25612 pass_jump_bypass): Remove.
25613 (gate_handle_gcse, rest_of_handle_gcse): Remove.
25614 (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
25615 (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
25616 (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
25617 (gate_rtl_store_motion, execute_rtl_store_motion,
25618 pass_rtl_store_motion): New.
25619 * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
25620 make it clear that -fcse-skip-blocks is a no-op for backward compat.
25621 * passes.c (init_optimization_passes): Remove pass_gcse and
25622 pass_jump_bypass. Schedule cprop, pre, hoist, cprop, store_motion,
25623 and cse_after_global_opts in place of pass_gcse. Schedule cprop
25624 instead of pass_jump_bypass.
25625
25626 2009-04-27 Richard Guenther <rguenther@suse.de>
25627
25628 PR middle-end/39928
25629 * gimplify.c (gimplify_expr): If we are required to create
25630 a temporary make sure it ends up as register.
25631
25632 2009-04-27 H.J. Lu <hongjiu.lu@intel.com>
25633
25634 PR target/39903
25635 * config/i386/i386.c (construct_container): Don't call
25636 gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
25637 X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
25638
25639 2009-04-27 Michael Matz <matz@suse.de>
25640
25641 * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
25642 (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
25643 * tree-ssa-live.h (find_replaceable_exprs): Return a bitmap.
25644 (dump_replaceable_exprs): Take a bitmap.
25645 * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
25646 array.
25647 (expand_gimple_basic_block): Likewise.
25648 * tree-ssa-ter.c (struct temp_expr_table_d): Make
25649 replaceable_expressions member a bitmap.
25650 (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
25651 (mark_replaceable): Likewise.
25652 (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
25653 * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
25654
25655 2009-04-27 Richard Guenther <rguenther@suse.de>
25656
25657 * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
25658 (verify_stmts): Dispatch to gimple/type verification code.
25659 * tree-inline.c (remap_gimple_op_r): Work around C++ FE
25660 issue with call argument types.
25661
25662 2009-04-27 Michael Matz <matz@suse.de>
25663
25664 * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
25665 (init_update_ssa, delete_update_ssa, update_ssa): Remove references
25666 to above.
25667
25668 2009-04-27 Richard Sandiford <rdsandiford@googlemail.com>
25669 Eric Botcazou <ebotcazou@adacore.com>
25670
25671 * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
25672 a label's basic block.
25673 (mark_target_live_regs): Tidy and rework obsolete comments.
25674 Change back DF problem to LIVE. If a label starts a basic block,
25675 assume that all registers that used to be live then still are.
25676 (init_resource_info): If a label starts a basic block, set its
25677 BLOCK_FOR_INSN accordingly.
25678 (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
25679
25680 2009-04-27 Richard Guenther <rguenther@suse.de>
25681
25682 * tree-flow-inline.h (function_ann): Remove.
25683 (get_function_ann): Likewise.
25684 * tree-dfa.c (create_function_ann): Remove.
25685 * tree-flow.h (struct static_var_ann_d): Remove.
25686 (struct function_ann_d): Likewise.
25687 (union tree_ann_d): Remove fdecl member.
25688 (function_ann_t): Remove.
25689 (function_ann, get_function_ann, create_function_ann): Remove
25690 declarations.
25691
25692 2009-04-27 Uros Bizjak <ubizjak@gmail.com>
25693
25694 * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
25695
25696 2009-04-27 Jan Hubicka <jh@suse.cz>
25697
25698 * ipa-pure-const.c (struct funct_state_d): New fields
25699 state_previously_known, looping_previously_known; remove
25700 state_set_in_source.
25701 (analyze_function): Use new fields.
25702 (propagate): Avoid assumption that state_set_in_source imply
25703 nonlooping.
25704
25705 * tree-ssa-loop-niter.c (finite_loop_p): New function.
25706 * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
25707 * cfgloop.h (finite_loop_p): Declare.
25708
25709 2009-04-26 Michael Matz <matz@suse.de>
25710
25711 * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
25712
25713 2009-04-26 Michael Matz <matz@suse.de>
25714
25715 * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
25716 pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
25717 * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
25718 pass_mark_used_blocks): Remove.
25719 * tree-optimize.c (pass_free_datastructures,
25720 execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
25721 * passes.c (init_optimization_passes): Don't call
25722 pass_mark_used_blocks, remove dead code.
25723
25724 2009-04-26 H.J. Lu <hongjiu.lu@intel.com>
25725
25726 * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
25727 * tree-ssa-live.h (register_ssa_partition): Likewise.
25728
25729 2009-04-26 Michael Matz <matz@suse.de>
25730
25731 Expand from SSA.
25732 * builtins.c (fold_builtin_next_arg): Handle SSA names.
25733 * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
25734 * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
25735 SSA names.
25736 (compare_pairs): Swap cost comparison.
25737 (coalesce_ssa_name): Don't use change_partition_var.
25738 * tree-nrv.c (struct nrv_data): Add modified member.
25739 (finalize_nrv_r): Set it.
25740 (tree_nrv): Use it to update statements.
25741 (pass_nrv): Require PROP_ssa.
25742 * tree-mudflap.c (mf_decl_cache_locals,
25743 mf_build_check_statement_for): Use make_rename_temp.
25744 (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
25745 * alias.c (find_base_decl): Handle SSA names.
25746 * emit-rtl (set_reg_attrs_for_parm): Make non-static.
25747 (component_ref_for_mem_expr): Don't leak SSA names into RTL.
25748 * rtl.h (set_reg_attrs_for_parm): Declare.
25749 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
25750 to "optimized", remove unused locals at finish.
25751 (execute_free_datastructures): Make global, call
25752 delete_tree_cfg_annotations.
25753 (execute_free_cfg_annotations): Don't call
25754 delete_tree_cfg_annotations.
25755
25756 * ssaexpand.h: New file.
25757 * expr.c (toplevel): Include ssaexpand.h.
25758 (expand_assignment): Handle SSA names the same as register variables.
25759 (expand_expr_real_1): Expand SSA names.
25760 * cfgexpand.c (toplevel): Include ssaexpand.h.
25761 (SA): New global variable.
25762 (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
25763 (SSAVAR): New macro.
25764 (set_rtl): New helper function.
25765 (add_stack_var): Deal with SSA names, use set_rtl.
25766 (expand_one_stack_var_at): Likewise.
25767 (expand_one_stack_var): Deal with SSA names.
25768 (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
25769 before unique numbers.
25770 (expand_stack_vars): Use set_rtl.
25771 (expand_one_var): Accept SSA names, add asserts for them, feed them
25772 to above subroutines.
25773 (expand_used_vars): Expand all partitions (without default defs),
25774 then only the local decls (ignoring those expanded already).
25775 (expand_gimple_cond): Remove edges when jumpif() expands an
25776 unconditional jump.
25777 (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
25778 or remove abnormal edges. Ignore insns setting the LHS of a TERed
25779 SSA name.
25780 (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
25781 members of SA; deal with PARM_DECL partitions here; expand
25782 all PHI nodes, free tree datastructures and SA. Commit instructions
25783 on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
25784 (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
25785 info and statements at start, collect garbage at finish.
25786 * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
25787 (VAR_ANN_PARTITION) Remove.
25788 (change_partition_var): Don't declare.
25789 (partition_to_var): Always return SSA names.
25790 (var_to_partition): Only accept SSA names.
25791 (register_ssa_partition): Only check argument.
25792 * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
25793 member.
25794 (delete_var_map): Don't free it.
25795 (var_union): Only accept SSA names, simplify.
25796 (partition_view_init): Mark only useful SSA names as used.
25797 (partition_view_fini): Only deal with SSA names.
25798 (change_partition_var): Remove.
25799 (dump_var_map): Use ssa_name instead of partition_to_var member.
25800 * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
25801 basic blocks.
25802 * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
25803 (struct _elim_graph): New member const_dests; nodes member vector of
25804 ints.
25805 (set_location_for_edge): New static helper.
25806 (create_temp): Remove.
25807 (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
25808 insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
25809 (new_elim_graph): Allocate const_dests member.
25810 (clean_elim_graph): Truncate const_dests member.
25811 (delete_elim_graph): Free const_dests member.
25812 (elim_graph_size): Adapt to new type of nodes member.
25813 (elim_graph_add_node): Likewise.
25814 (eliminate_name): Likewise.
25815 (eliminate_build): Don't take basic block argument, deal only with
25816 partition numbers, not variables.
25817 (get_temp_reg): New static helper.
25818 (elim_create): Use it, deal with RTL temporaries instead of trees.
25819 (eliminate_phi): Adjust all calls to new signature.
25820 (assign_vars, replace_use_variable, replace_def_variable): Remove.
25821 (rewrite_trees): Only do checking.
25822 (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
25823 (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
25824 init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
25825 contains_tree_r, MAX_STMTS_IN_LATCH,
25826 process_single_block_loop_latch, analyze_edges_for_bb,
25827 perform_edge_inserts): Remove.
25828 (expand_phi_nodes): New global function.
25829 (remove_ssa_form): Take ssaexpand parameter. Don't call removed
25830 functions, initialize new parameter, remember partitions having a
25831 default def.
25832 (finish_out_of_ssa): New global function.
25833 (rewrite_out_of_ssa): Make global. Adjust call to remove_ssa_form,
25834 don't reset in_ssa_p here, don't disable TER when mudflap.
25835 (pass_del_ssa): Remove.
25836 * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
25837 partition members.
25838 (execute_free_datastructures): Declare.
25839 * Makefile.in (SSAEXPAND_H): New variable.
25840 (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
25841 * basic-block.h (commit_one_edge_insertion): Declare.
25842 * passes.c (init_optimization_passes): Move pass_nrv and
25843 pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
25844 pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
25845 * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
25846 (redirect_branch_edge): Deal with super block when expanding, split
25847 out jump patching itself into ...
25848 (patch_jump_insn): ... here, new static helper.
25849
25850 2009-04-26 Michael Matz <matz@suse.de>
25851
25852 * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
25853 beyond num_ssa_names.
25854 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
25855 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
25856
25857 2009-04-26 Jakub Jelinek <jakub@redhat.com>
25858
25859 PR inline-asm/39543
25860 * fwprop.c (forward_propagate_asm): New function.
25861 (forward_propagate_and_simplify): Propagate also into __asm, if it
25862 doesn't increase the number of referenced registers.
25863
25864 PR c/39889
25865 * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
25866
25867 2009-04-26 Jakub Jelinek <jakub@redhat.com>
25868
25869 * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
25870 note_nonlocal_vla_type for nonlocal VLAs.
25871 (note_nonlocal_vla_type, note_nonlocal_block_vlas,
25872 contains_remapped_vars, remap_vla_decls): New functions.
25873 (convert_nonlocal_reference_stmt): If not optimizing, call
25874 note_nonlocal_block_vlas on GIMPLE_BIND block vars.
25875 (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
25876 if it wasn't found in var_map.
25877 (finalize_nesting_tree_1): Call remap_vla_decls. If outermost
25878 GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
25879 to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
25880 declare_vars.
25881 * gimplify.c (nonlocal_vlas): New variable.
25882 (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
25883 referenced VLAs.
25884 (gimplify_body): Create and destroy nonlocal_vlas.
25885
25886 * dwarf2out.c (loc_descr_plus_const): New function.
25887 (build_cfa_aligned_loc, tls_mem_loc_descriptor,
25888 mem_loc_descriptor, loc_descriptor_from_tree_1,
25889 descr_info_loc, gen_variable_die): Use it.
25890
25891 * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
25892 !TREE_STATIC VAR_DECLs.
25893 * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
25894 DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
25895 (gen_variable_die): Likewise. Don't look at TREE_PRIVATE if
25896 DECL_BY_REFERENCE is valid.
25897 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
25898 for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
25899 * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
25900 Copy DECL_BY_REFERENCE.
25901 (struct nesting_copy_body_data): New type.
25902 (nesting_copy_decl): New function.
25903 (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
25904 if they have variable length.
25905
25906 2009-04-26 Michael Matz <matz@suse.de>
25907
25908 * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
25909 mark new temporaries for renaming.
25910
25911 2009-04-26 Joseph Myers <joseph@codesourcery.com>
25912
25913 PR c/39581
25914 * c-decl.c (global_bindings_p): Return negative value.
25915 (c_variable_size): New. Based on variable_size from
25916 stor-layout.c.
25917 (grokdeclarator): Call c_variable_size not variable_size.
25918
25919 2009-04-26 Uros Bizjak <ubizjak@gmail.com>
25920
25921 * config/i386/i386.c (print_operand) ['z']: Fix typo.
25922
25923 2009-04-26 Kai Tietz <kai.tietz@onevision.com>
25924
25925 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
25926 Redefine it to just use mingw/include.
25927 (ASM_SPEC): Rules for -m32 and -m64.
25928 (LINK_SPEC): Use Likewise.
25929 (SPEC_32): New define.
25930 (SPEC_64): Likewise.
25931 (SUB_LINK_SPEC): Likewise.
25932 (MULTILIB_DEFAULTS): New define.
25933 * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
25934 Add multilib options.
25935 (MULTILIB_DIRNAMES): Likewise.
25936 (MULTILIB_OSDIRNAMES): Likewise.
25937 (LIBGCC): Likewise.
25938 (INSTALL_LIBGCC): Likewise.
25939
25940 2009-04-26 Joseph Myers <joseph@codesourcery.com>
25941
25942 PR c/39556
25943 * c-tree.h (enum c_inline_static_type): New.
25944 (record_inline_static): Declare.
25945 * c-decl.c (struct c_inline_static, c_inline_statics,
25946 record_inline_static, check_inline_statics): New.
25947 (pop_file_scope): Call check_inline_statics.
25948 (start_decl): Call record_inline_static instead of pedwarning
25949 directly for static in inline function.
25950 * c-typeck.c (build_external_ref): Call record_inline_static
25951 instead of pedwarning directly for static referenced in inline
25952 function.
25953
25954 2009-04-26 Steven Bosscher <steven@gcc.gnu.org>
25955
25956 * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
25957 not new but only being rescanned.
25958 * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
25959 reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
25960 alloc_reg_set_mem, free_reg_set_mem, record_one_set,
25961 record_set_info, compute_set, grealloc): Remove.
25962 (recompute_all_luids): New function.
25963 (gcse_main): Don't compute sets, and don't do related memory
25964 allocations/free-ing. If something changed before the end of the
25965 pass, update LUIDs using recompute_all_luids.
25966 (alloc_gcse_mem): Don't compute LUIDs. Don't allocate reg_set memory.
25967 (free_gcse_mem): Don't free it either.
25968 (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
25969 Use the df insn LUIDs.
25970 (load_killed_in_block): Likewise.
25971 (compute_hash_table_work): Don't compute reg_set_in_block.
25972 (compute_transp): Use DF_REG_DEF_CHAINs.
25973 (local_cprop_pass): Don't use compute_sets and related functions.
25974 (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
25975 Use get_max_uid() instead of max_cuid.
25976 (insert_insn_end_basic_block, pre_insert_copy_insn,
25977 update_ld_motion_stores): Don't try to
25978 keep reg_set tables up to date.
25979 (pre_insert_copies): Use df insn LUIDs.
25980 (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
25981 (reg_set_info): Don't use extra bitmap argument.
25982 (compute_store_table): Don't compute reg_set_in_block. Use DF scan
25983 information to compute regs_set_in_block.
25984 (free_store_memory, store_motion): Don't nullify reg_set_in_block.
25985 (bypass_jumps): Don't use compute_sets and friends.
25986
25987 2009-04-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25988
25989 PR testsuite/39710
25990 * opts.c (undocumented_msg): Do not leave blank even with
25991 ENABLE_CHECKING.
25992
25993 2009-04-25 Joseph Myers <joseph@codesourcery.com>
25994
25995 * c-decl.c (build_enumerator): Allow values folding to integer
25996 constants but not integer constant expressions with a pedwarn if
25997 pedantic.
25998
25999 2009-04-25 Joseph Myers <joseph@codesourcery.com>
26000
26001 PR c/39582
26002 * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
26003 with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
26004 type is an integer constant.
26005
26006 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
26007
26008 PR target/39897
26009 * config/i386/i386.c (print_operand) ['z']: Revert handling of
26010 HImode operands.
26011
26012 2009-04-25 Joseph Myers <joseph@codesourcery.com>
26013
26014 PR c/39564
26015 * c-decl.c (grokdeclarator): Diagnose declarations of functions
26016 with variably modified return type and no storage class
26017 specifiers, except for the case of nested functions. Distinguish
26018 extern declarations of functions with variably modified return
26019 types from those of objects with variably modified types.
26020
26021 2009-04-25 Jan Hubicka <jh@suse.cz>
26022
26023 * tree.c (list_equal_p): New function.
26024 * tree.h (list_equal_p): Declare.
26025 * coretypes.h (edge_def, edge, const_edge, basic_block_def
26026 basic_block_def, basic_block, const_basic_block): New.
26027 * tree-eh.c (make_eh_edge): EH edges are not abnormal.
26028 (redirect_eh_edge): New function.
26029 (make_eh_edge_update_phi): EH edges are not abnormal.
26030 * except.c: Include tree-flow.h.
26031 (list_match): New function.
26032 (eh_region_replaceable_by_p): New function.
26033 (replace_region): New function.
26034 (hash_type_list): New function.
26035 (hash_eh_region): New function.
26036 (eh_regions_equal_p): New function.
26037 (merge_peers): New function.
26038 (remove_unreachable_regions): Verify EH tree when checking;
26039 merge peers.
26040 (copy_eh_region_1): New function.
26041 (copy_eh_region): New function.
26042 (push_reachable_handler): New function.
26043 (build_post_landing_pads, dw2_build_landing_pads): Be ready for
26044 regions without label but with live RESX.
26045 * except.h (redirect_eh_edge_to_label): New.
26046 * tree-flow.h (redirect_eh_edge): New.
26047 * coretypes.h (edge_def, edge, const_edge, basic_block_def
26048 basic_block_def, basic_block, const_basic_block): Remove.
26049 * Makefile.in (except.o): Add dependency on tree-flow.h
26050 * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
26051 * basic-block.h (edge, const_edge, basic_block, const_basic_block):
26052 Remove.
26053
26054 2009-04-25 Eric Botcazou <ebotcazou@adacore.com>
26055
26056 PR bootstrap/39645
26057 * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
26058 on the destination of memcpy.
26059
26060 2009-04-25 Paolo Bonzini <bonzini@gnu.org>
26061
26062 * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
26063 REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
26064 REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
26065
26066 2009-04-25 Jan Hubicka <jh@suse.cz>
26067
26068 * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
26069 (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
26070 to be reached by different label than left.
26071 (update_eh_edges): Update comment; remove edge_to_remove if possible
26072 and return true if suceeded.
26073 (cleanup_empty_eh): Accept sharing map; handle shared regions.
26074 (cleanup_eh): Compute sharing map.
26075 * except.c (remove_eh_handler_and_replace): Add argument if we should
26076 update regions.
26077 (remove_unreachable_regions): Update for label sharing.
26078 (label_to_region_map): Likewise.
26079 (get_next_region_sharing_label): New function.
26080 (remove_eh_handler_and_replace): Add update_catch_try parameter; update
26081 prev_try pointers.
26082 (remove_eh_handler): Update.
26083 (remove_eh_region_and_replace_by_outer_of): New function.
26084 * except.h (struct eh_region): Add next_region_sharing_label.
26085 (remove_eh_region_and_replace_by_outer_of,
26086 get_next_region_sharing_label): Declare.
26087 * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
26088
26089 2009-04-25 Jan Hubicka <jh@suse.cz>
26090
26091 * tree-cfg.c (split_critical_edges): Split also edges where we can't
26092 insert code even if they are not critical.
26093
26094 2009-04-25 Jan Hubicka <jh@suse.cz>
26095
26096 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
26097 (gimple_can_remove_branch_p): EH edges won't remove branch by
26098 redirection.
26099 * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
26100 updating of non-abnormal EH edges.
26101 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
26102 (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
26103 (split_critical_edges): Split also edges where emitting code on them
26104 will lead to splitting later.
26105
26106 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
26107 H.J. Lu <hongjiu.lu@intel.com>
26108
26109 PR target/39590
26110 * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
26111 the configured assembler supports fildq and fistpq mnemonics.
26112 (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
26113 * configure: Regenerated.
26114 * config.in: Ditto.
26115
26116 * config/i386/i386.c (print_operand): Handle 'Z'.
26117 ['z']: Remove handling of special fild/fist suffixes.
26118 (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
26119 * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
26120 suffix of fild insn.
26121 (*floatsi<mode>2_vector_mixed): Ditto.
26122 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
26123 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
26124 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
26125 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
26126 * config/i386/gas.h (GAS_MNEMONICS): Remove.
26127
26128 2009-04-25 Ben Elliston <bje@au.ibm.com>
26129
26130 * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
26131 the source of a set operation.
26132
26133 2009-04-25 Anatoly Sokolov <aesok@post.ru>
26134
26135 * target.h (struct gcc_target): Add case_values_threshold field.
26136 * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
26137 (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
26138 * targhooks.c (default_case_values_threshold): New function.
26139 * targhooks.h (default_case_values_threshold): Declare function.
26140 * stmt.c (expand_case): Use case_values_threshold target hook.
26141 * expr.h (case_values_threshold): Remove declartation.
26142 * expr.c (case_values_threshold): Remove function.
26143 * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
26144
26145 * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
26146 * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
26147 (avr_case_values_threshold): Declare as static.
26148 * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
26149
26150 * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
26151 * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
26152 (mn10300_case_values_threshold): New function.
26153
26154 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
26155
26156 * ira.c (setup_cover_and_important_classes): Add enum cast.
26157
26158 2009-04-24 Vladimir Makarov <vmakarov@redhat.com>
26159
26160 * genpreds.c (write_enum_constraint_num): Output definition of
26161 CONSTRAINT_NUM_DEFINED_P macro.
26162 * ira.c (setup_cover_and_important_classes): Use
26163 CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
26164
26165 2009-04-24 DJ Delorie <dj@redhat.com>
26166
26167 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
26168 __SH2A_SINGLE_ONLY__ also.
26169
26170 2009-04-24 Steve Ellcey <sje@cup.hp.com>
26171
26172 * config/ia64/ia64.md (movfs_internal): Allow flt constants.
26173 (movdf_internal): Ditto.
26174 * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
26175 SFmode and DFmode constants.
26176 (ia64_print_operand): Add 'G' format for printing
26177 floating point constants.
26178
26179 2009-04-24 Richard Guenther <rguenther@suse.de>
26180
26181 * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
26182 from unsigned additions.
26183
26184 2009-04-24 Joseph Myers <joseph@codesourcery.com>
26185
26186 * c-typeck.c (set_init_index): Allow array designators that are
26187 not integer constant expressions with a pedwarn if pedantic.
26188
26189 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
26190
26191 * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
26192 zero if no overlap in nonzero bits between the operands.
26193
26194 2009-04-24 Ian Lance Taylor <iant@google.com>
26195
26196 * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
26197 (record_dead_and_set_regs): Likewise.
26198 * df.h (struct df_mw_hardreg): Change flags field to int.
26199 (struct df_base_ref): Likewise.
26200 (struct df): Change changeable_flags field to int.
26201 * df-scan.c (df_defs_record): Change clobber_flags to int.
26202 * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
26203 constants rather than #define macros.
26204 (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
26205 (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
26206 (enum dwarf_calling_convention): Likewise.
26207 (enum dwarf_line_number_x_ops): Likewise.
26208 (enum dwarf_call_frame_info): Likewise.
26209 (enum dwarf_source_language): Likewise.
26210 * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
26211 (add_calling_convention_attribute): Likewise.
26212 * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
26213 (combine_comparisons): Change compcode to int. Add cast to enum type.
26214 * genrecog.c (maybe_both_true_2): Change c to int.
26215 (write_switch): Likewise. Add cast to enum type.
26216 * gimplify.c (gimplify_omp_for): Handle return values from
26217 gimplify_expr using MIN rather than bitwise or.
26218 (gimplify_expr): Add cast to enum type.
26219 * ipa-prop.c (update_jump_functions_after_inlining): Change
26220 IPA_BOTTOM to IPA_JF_UNKNOWN.
26221 * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
26222 Add casts to enum type.
26223 (setup_cover_and_important_classes): Change cl to int. Add casts
26224 to enum type.
26225 (setup_class_translate): Change cl and mode to int.
26226 (ira_init_once): Change mode to int.
26227 (free_register_move_costs): Likewise.
26228 (setup_prohibited_mode_move_regs): Add casts to enum type.
26229 * langhooks.c (add_builtin_function_common): Rework assertion that
26230 value fits bitfield.
26231 * mcf.c (add_fixup_edge): Change type parameter to edge_type.
26232 * omega.c (omega_do_elimination): Avoid math on enum types.
26233 * optabs.c (expand_vec_shift_expr): Remove casts to int.
26234 * opts.c (set_debug_level): Change 2 to enum constant. Use new
26235 int local to handle integral_argment value.
26236 * regmove.c (try_auto_increment): Change PUT_MODE to
26237 PUT_REG_NOTE_KIND.
26238 * reload.c (push_secondary_reload): Add casts to enum type.
26239 (secondary_reload_class, find_valid_class): Likewise.
26240 * reload1.c (emit_input_reload_insns): Likewise.
26241 * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
26242 * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
26243 * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
26244 constant.
26245 * tree.c (build_common_builtin_nodes): Add casts to enum type.
26246 * tree-complex.c (complex_lattice_t): Typedef to int rather than
26247 enum type.
26248 (expand_complex_libcall): Add casts to enum type.
26249 * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
26250 * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
26251 with ERROR_MARK, not NUM_TREE_CODES.
26252 (vect_create_epilog_for_reduction): Likewise.
26253 (vectorizable_reduction): Don't initialize epiloc_reduc_code.
26254 When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
26255 * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
26256 enum machine_mode.
26257 * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
26258 vect_unused_in_loop. Change 0 to loop_vect.
26259 * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
26260 * var-tracking.c (get_init_value): Change return type to enum
26261 var_init_status.
26262 * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
26263 * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
26264 arm_fp_model.
26265 (arm_override_options): Add casts to enum type.
26266 (arm_emit_tls_decoration): Likewise.
26267 * config/i386/i386.c (ix86_function_specific_restore): Add casts
26268 to enum type.
26269 * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
26270 * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
26271 * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
26272 enum type.
26273 * config/s390/s390.c (code_for_builtin_64): Change to array of
26274 enum insn_code.
26275 (code_for_builtin_31): Likewise.
26276 (s390_expand_builtin): Change code_for_builtin to enum insn_code
26277 const *.
26278 * config/sparc/sparc.c (sparc_override_options): Change value
26279 field in struct code_model to enum cmodel. In initializer change
26280 0 to NULL and add cast to enum type.
26281
26282 * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
26283 Change all callers. Issue a -Wc++-compat warning using
26284 lhs_origtype if necessary.
26285 (convert_for_assignment): Issue -Wc++-compat warnings about
26286 invalid conversions to enum type on assignment.
26287 * c-common.h (build_modify_expr): Update declaration.
26288
26289 2009-04-24 Nick Clifton <nickc@redhat.com>
26290
26291 * config/iq2000/iq2000.c (function_arg): Handle TImode values.
26292 (function_arg_advance): Likewise.
26293 * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
26294 5th alternative.
26295
26296 2009-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
26297
26298 * config/s390/constraints.md ('I', 'J'): Fix condition.
26299
26300 2009-04-24 Diego Novillo <dnovillo@google.com>
26301
26302 * gengtype-parse.c (parse_error): Add newline after message.
26303
26304 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
26305
26306 * config/i386/sse.md (avxmodesuffixs): Removed.
26307 (*avx_pinsr<avxmodesuffixs>): Renamed to ...
26308 (*avx_pinsr<ssevecsize>): This.
26309
26310 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
26311
26312 * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
26313 follow chains of regs with a single definition, and allow expressions
26314 that are function_invariant_p.
26315 (simple_rhs_p): Allow expressions that are function_invariant_p.
26316
26317 2009-04-24 Paolo Bonzini <bonzini@gnu.org>
26318
26319 PR middle-end/39867
26320 * fold-const.c (fold_cond_expr_with_comparison): When folding
26321 > and >= to MAX, make sure the MAX uses the same type as the
26322 comparison's operands.
26323
26324 2009-04-24 Nick Clifton <nickc@redhat.com>
26325
26326 * config/frv/frv.c (frv_frame_access): Do not use reg+reg
26327 addressing for DImode accesses.
26328 (frv_print_operand_address): Handle PLUS case.
26329 * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
26330
26331 2009-04-24 Jakub Jelinek <jakub@redhat.com>
26332
26333 PR rtl-optimization/39794
26334 * alias.c (canon_true_dependence): Add x_addr argument.
26335 * rtl.h (canon_true_dependence): Adjust prototype.
26336 * cse.c (check_dependence): Adjust canon_true_dependence callers.
26337 * cselib.c (cselib_invalidate_mem): Likewise.
26338 * gcse.c (compute_transp): Likewise.
26339 * dse.c (scan_reads_nospill): Likewise.
26340 (record_store, check_mem_read_rtx): Likewise. For non-const-or-frame
26341 addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
26342 canon_base_addr of the group, plus optional offset.
26343 (struct group_info): Rename canon_base_mem to
26344 canon_base_addr.
26345 (get_group_info): Set canon_base_addr to canon_rtx of base, not
26346 canon_rtx of base_mem.
26347
26348 2009-04-23 Paolo Bonzini <bonzini@gnu.org>
26349
26350 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
26351 Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
26352
26353 2009-04-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26354
26355 * config/spu/spu-builtins.h: Delete file.
26356
26357 * config/spu/spu.h (enum spu_builtin_type): Move here from
26358 spu-builtins.h.
26359 (struct spu_builtin_description): Likewise. Add GTY marker.
26360 Do not use enum spu_function_code or enum insn_code.
26361 (spu_builtins): Add extern declaration.
26362
26363 * config/spu/spu.c: Do not include "spu-builtins.h".
26364 (enum spu_function_code, enum spu_builtin_type_index,
26365 V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
26366 V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
26367 unsigned_V8HI_type_node, unsigned_V4SI_type_node,
26368 unsigned_V2DI_type_node): Move here from spu-builtins.h.
26369 (spu_builtin_types): Make static. Add GTY marker.
26370 (spu_builtins): Add extern declaration with GTY marker.
26371 Include "gt-spu.h".
26372
26373 * config/spu/spu-c.c: Do not include "spu-builtins.h".
26374 (spu_resolve_overloaded_builtin): Do not use spu_function_code.
26375 Check programmatically whether all parameters are scalar.
26376
26377 * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
26378
26379 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
26380
26381 * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
26382 assignment from the constructor either if the target is volatile.
26383
26384 2009-04-23 Daniel Jacobowitz <dan@codesourcery.com>
26385
26386 * config/arm/arm.md (insv): Do not share operands[0].
26387
26388 2009-04-23 Nathan Sidwell <nathan@codesourcery.com>
26389
26390 * config/vxlib-tls.c (active_tls_threads): Delete.
26391 (delete_hook_installed): New.
26392 (tls_delete_hook): Don't delete the delete hook.
26393 (tls_destructor): Delete it here.
26394 (__gthread_set_specific): Adjust installing the delete hook.
26395 (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
26396 __gthread_leave_tsd_dtor_context.
26397
26398 2009-04-23 Rafael Avila de Espindola <espindola@google.com>
26399
26400 * c-format.c (gcc_tdiag_char_table): Add support for %E.
26401
26402 2009-04-23 Uros Bizjak <ubizjak@gmail.com>
26403
26404 * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
26405 enum type.
26406 (alpha_rtx_costs): Ditto.
26407 (emit_unlikely_jump): Use add_reg_note.
26408 (emit_frame_store_1): Ditto.
26409 (alpha_expand_prologue): Ditto.
26410 (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
26411 * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
26412
26413 2009-04-23 Nick Clifton <nickc@redhat.com>
26414
26415 * config/v850/v850.md (epilogue): Remove suppressed code.
26416 (return): Rename to return_simple and remove test of frame size.
26417 * config/v850/v850.c (expand_epilogue): Rename call to gen_return
26418 to gen_return_simple.
26419
26420 2009-04-22 Jing Yu <jingyu@google.com>
26421
26422 PR testsuite/39781
26423 * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
26424
26425 2009-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
26426
26427 PR C/31499
26428 * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
26429 and RECORD_TYPE/UNION_TYPE. When outputing the actual element and the
26430 value is a VECTOR_CST, the element type is the element type of the
26431 vector.
26432
26433 2009-04-22 DJ Delorie <dj@redhat.com>
26434
26435 * config/m32c/m32c.h: Update GTY annotations to new syntax.
26436
26437 2009-04-22 Jakub Jelinek <jakub@redhat.com>
26438
26439 * alias.c (find_base_term): Move around LO_SUM case, so that
26440 CONST falls through into PLUS/MINUS handling.
26441
26442 PR c/39855
26443 * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
26444 into 0, use omit_one_operand.
26445
26446 2009-04-23 Ben Elliston <bje@au.ibm.com>
26447
26448 * config/rs6000/linux-unwind.h (get_regs): Remove type
26449 puns. Change the type of `pc' to an array of unsigned ints and
26450 update all users. Constify frame24.
26451
26452 2009-04-22 DJ Delorie <dj@redhat.com>
26453
26454 * config/m32c/m32c.c (m32c_special_page_vector_p): Move
26455 declarations before code.
26456 (current_function_special_page_vector): Likewise.
26457 (m32c_expand_insv): Silence a warning.
26458
26459 2009-04-21 Taras Glek <tglek@mozilla.com>
26460
26461 * alias.c: Update GTY annotations to new syntax.
26462 * basic-block.h: Likewise.
26463 * bitmap.h: Likewise.
26464 * c-common.h: Likewise.
26465 * c-decl.c: Likewise.
26466 * c-parser.c: Likewise.
26467 * c-pragma.c: Likewise.
26468 * c-tree.h: Likewise.
26469 * cfgloop.h: Likewise.
26470 * cgraph.h: Likewise.
26471 * config/alpha/alpha.c: Likewise.
26472 * config/arm/arm.h: Likewise.
26473 * config/avr/avr.h: Likewise.
26474 * config/bfin/bfin.c: Likewise.
26475 * config/cris/cris.c: Likewise.
26476 * config/darwin.c: Likewise.
26477 * config/frv/frv.c: Likewise.
26478 * config/i386/i386.c: Likewise.
26479 * config/i386/i386.h: Likewise.
26480 * config/i386/winnt.c: Likewise.
26481 * config/ia64/ia64.h: Likewise.
26482 * config/iq2000/iq2000.c: Likewise.
26483 * config/mips/mips.c: Likewise.
26484 * config/mmix/mmix.h: Likewise.
26485 * config/pa/pa.c: Likewise.
26486 * config/pa/pa.h: Likewise.
26487 * config/rs6000/rs6000.c: Likewise.
26488 * config/s390/s390.c: Likewise.
26489 * config/sparc/sparc.c: Likewise.
26490 * config/xtensa/xtensa.c: Likewise.
26491 * cselib.h: Likewise.
26492 * dbxout.c: Likewise.
26493 * dwarf2out.c: Likewise.
26494 * except.c: Likewise.
26495 * except.h: Likewise.
26496 * fixed-value.h: Likewise.
26497 * function.c: Likewise.
26498 * function.h: Likewise.
26499 * gimple.h: Likewise.
26500 * integrate.c: Likewise.
26501 * optabs.c: Likewise.
26502 * output.h: Likewise.
26503 * real.h: Likewise.
26504 * rtl.h: Likewise.
26505 * stringpool.c: Likewise.
26506 * tree-data-ref.c: Likewise.
26507 * tree-flow.h: Likewise.
26508 * tree-scalar-evolution.c: Likewise.
26509 * tree-ssa-address.c: Likewise.
26510 * tree-ssa-alias.h: Likewise.
26511 * tree-ssa-operands.h: Likewise.
26512 * tree.c: Likewise.
26513 * tree.h: Likewise.
26514 * varasm.c: Likewise.
26515 * varray.h: Likewise.
26516 * vec.h: Likewise.
26517 * coretypes.h: Do not define GTY macro if it is already defined.
26518 * doc/gty.texi: Update GTY documentation to new syntax.
26519 * gengtype-lex.l: Enforce attribute-like syntax for GTY
26520 annotations on structs.
26521 * gengtype-parse.c: Likewise.
26522
26523 2009-04-22 Mark Heffernan <meheff@google.com>
26524
26525 * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
26526
26527 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
26528
26529 * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
26530 where appropriate.
26531
26532 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
26533
26534 * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
26535 the same as a PLUS without a shift. Increase the cost of a
26536 CONST_INT in MULT.
26537
26538 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
26539
26540 * Makefile.in: Update dependencies.
26541 * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
26542 * errors.h: Remove bogus comment about compatibility.
26543 (warning): Update declaration.
26544 * genautomata.c: Update all calls to warning.
26545 * gimple.c: Do not include errors.h. Include toplev.h.
26546 * tree-ssa-structalias.c: Do not include errors.h.
26547 * omega.c: Likewise.
26548 * tree-ssa-reassoc.c: Likewise.
26549 * config/spu/spu-c.c: Likewise.
26550 * config/spu/t-spu-elf: Update dependencies.
26551
26552 2009-04-22 Richard Guenther <rguenther@suse.de>
26553
26554 PR tree-optimization/39824
26555 * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
26556 make sure the types are compatible.
26557
26558 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
26559
26560 PR c++/14875
26561 * c-common.c (c_parse_error): Take a token_flags parameter.
26562 Use token_type for the token type instead.
26563 Pass token_flags to cpp_type2name.
26564 * c-common.h (c_parse_error): Update declaration.
26565 * c-parser.c (c_parser_error): Pass 0 as token flags.
26566
26567 2009-04-22 Andrey Belevantsev <abel@ispras.ru>
26568
26569 PR rtl-optimization/39580
26570 * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
26571
26572 2009-04-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26573
26574 * function.c (expand_function_end): Do not emit a jump to the "naked"
26575 return label for fall-through returns.
26576 * except.c (sjlj_emit_function_exit): Always place the call to the
26577 unregister function at the location installed by expand_function_end.
26578
26579 2009-04-22 Richard Guenther <rguenther@suse.de>
26580
26581 PR tree-optimization/39845
26582 * tree-switch-conversion.c (build_arrays): Add new referenced vars.
26583 (gen_inbound_check): Likewise.
26584
26585 2009-04-22 Nathan Sidwell <nathan@codesourcery.com>
26586
26587 * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
26588 padding for PPC.
26589 (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
26590 * config/vxlib.c (__gthread_once): Add race guard for PPC.
26591
26592 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
26593
26594 * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
26595 sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
26596 shift counts to avoid out-of-bounds array accesses.
26597
26598 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
26599
26600 * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
26601 (Pmode): Move above.
26602
26603 2009-04-22 Uros Bizjak <ubizjak@gmail.com>
26604
26605 * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
26606 NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
26607 GET_CODE macro. Use IN_RANGE macro where appropriate.
26608 * config/alpha/alpha.h: Ditto.
26609 * config/alpha/alpha.md: Ditto.
26610 * config/alpha/constraints.md: Ditto.
26611 * config/alpha/predicates.md: Ditto.
26612
26613 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
26614
26615 * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
26616 * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26617 * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26618 * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26619 * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26620 * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26621 * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26622 * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26623 * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26624 * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26625 * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26626 * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26627 * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26628 * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26629 * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26630 * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26631 * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26632 * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26633 * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26634 * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26635 * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26636 * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26637 * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26638 * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26639 * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26640 * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26641 * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26642
26643 2009-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
26644
26645 * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
26646 references from comments.
26647 * cfgbuild.c (count_basic_blocks): Delete.
26648 (find_basic_blocks_1): Delete.
26649 (find_basic_blocks): Delete.
26650 * except.c (finish_eh_generation): Make static. Move comment from
26651 except.h here. Remove find_basic_blocks references from comments.
26652 * except.h (finish_eh_generation): Delete.
26653 * basic-block.h (find_basic_blocks): Delete.
26654 * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
26655
26656 2009-04-22 Dave Korn <dave.korn.cygwin@gmail.com>
26657
26658 * sdbout.c (sdbout_symbol): Pass VOIDmode to eliminate_regs.
26659 (sdbout_parms): Likewise.
26660
26661 2009-04-21 Kaz Kojima <kkojima@gcc.gnu.org>
26662
26663 * config/sh/sh.c (prepare_cbranch_operands): Use
26664 LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
26665 (expand_cbranchdi4): Likewise.
26666 (from_compare): Add cast to enum type.
26667 (expand_cbranchsi4): Use add_reg_note.
26668 (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
26669 (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
26670 (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
26671 (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
26672 * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
26673 instead of CODE_FOR_nothing.
26674 (cbranchdi4): Likewise. Fix the order of arguments for
26675 gen_rtx_fmt_ee.
26676 (push_fpscr): Use add_reg_note.
26677 (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
26678 reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
26679
26680 2009-04-21 Joseph Myers <joseph@codesourcery.com>
26681
26682 * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
26683 ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
26684 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
26685 ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
26686 ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
26687 FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
26688 config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
26689 config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
26690 config/alpha/x-vms, config/arc/t-arc,
26691 config/arm/README-interworking, config/arm/arm-c.c,
26692 config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
26693 config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
26694 config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
26695 config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
26696 config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
26697 config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
26698 config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
26699 config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
26700 config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
26701 config/cris/t-elfmulti, config/crx/t-crx,
26702 config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
26703 config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
26704 config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
26705 config/h8300/t-h8300, config/i386/athlon.md,
26706 config/i386/darwin-libgcc.10.4.ver,
26707 config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
26708 config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
26709 config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
26710 config/i386/t-linux64, config/i386/t-nwld,
26711 config/i386/t-rtems-i386, config/i386/t-sol2-10,
26712 config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
26713 config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
26714 config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
26715 config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
26716 config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
26717 config/iq2000/t-iq2000, config/libgcc-glibc.ver,
26718 config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
26719 config/m32r/t-m32r, config/m68hc11/t-m68hc11,
26720 config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
26721 config/m68k/t-uclinux, config/mcore/t-mcore,
26722 config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
26723 config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
26724 config/mips/crtn.asm, config/mips/irix-crti.asm,
26725 config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
26726 config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
26727 config/mips/mips-fixed.md, config/mips/sb1.md,
26728 config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
26729 config/mips/t-iris6, config/mips/t-isa3264,
26730 config/mips/t-libgcc-mips16, config/mips/t-linux64,
26731 config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
26732 config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
26733 config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
26734 config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
26735 config/mn10300/t-linux, config/mn10300/t-mn10300,
26736 config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
26737 config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
26738 config/picochip/libgccExtras/clzsi2.asm,
26739 config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
26740 config/rs6000/darwin-libgcc.10.4.ver,
26741 config/rs6000/darwin-libgcc.10.5.ver,
26742 config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
26743 config/rs6000/t-aix43, config/rs6000/t-aix52,
26744 config/rs6000/t-darwin, config/rs6000/t-fprules,
26745 config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
26746 config/rs6000/t-lynx, config/rs6000/t-netbsd,
26747 config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
26748 config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
26749 config/rs6000/t-rtems, config/rs6000/t-spe,
26750 config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
26751 config/score/t-score-elf, config/sh/divcost-analysis,
26752 config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
26753 config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
26754 config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
26755 config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
26756 config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
26757 config/stormy16/stormy-abi, config/stormy16/t-stormy16,
26758 config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
26759 config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
26760 config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
26761 config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
26762 config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
26763 gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
26764 java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
26765 limitx.h, version.c, xcoff.h: Add copyright and license notices.
26766 * config/h8300/genmova.sh: Include copyright and license notices
26767 in generated output.
26768 * config/h8300/mova.md: Regenerate.
26769 * doc/install.texi2html: Include word "Copyright" in copyright
26770 notice and use name "Free Software Foundation, Inc.".
26771 * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
26772 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
26773 ChangeLog-2007, ChangeLog-2008: Correct dates.
26774
26775 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
26776
26777 * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
26778 NE_EXPR operations as well.
26779 * c-parser.c (c_parser_condition): Do not set location information on
26780 the condition.
26781 (c_parser_conditional_expression): Likewise.
26782 (c_parser_binary_expression): Set location information on operators.
26783 * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
26784 TRUTH_NOT_EXPR has been folded.
26785 * fold-const.c (fold_truth_not_expr): Copy location information from
26786 the incoming expression to the outgoing one.
26787 * gimplify.c (shortcut_cond_r): Add locus parameter. Pass it to
26788 recursive calls on the LHS of the operator but pass that of the
26789 operator to recursive calls on the RHS of the operator. Set it
26790 on the COND_EXPR.
26791 (shortcut_cond_expr): Set the locus of the operator on the second
26792 COND_EXPR and that of the expression on the first in degenerate cases.
26793 Pass the locus of the expression to calls to shortcut_cond_r.
26794 Set the locus of the 'then' block on the associated jump, if any.
26795 (gimplify_boolean_expr): Add locus parameter. Set it on the COND_EXPR.
26796 (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
26797 expression to call to gimplify_boolean_expr.
26798
26799 2009-04-21 Kai Tietz <kai.tietz@onevision.com>
26800
26801 * config.gcc: Add additional configuration for
26802 i686-w64-mingw* and x86_64-w64-mingw* triplet.
26803 * config/i386/mingw-w64.h: New mingw-w64 specific header.
26804 (CPP_SPEC): Redefine for allowing -municode option.
26805 (STARTFILE_SPEC): Likewise.
26806 * config/i386/t-mingw-w64: New.
26807 * config/i386/mingw-w64.opt: New.
26808 (municode): Add new target option.
26809 * doc/invoke.texi (municode): Add documentation for new option.
26810
26811 2009-04-21 Ian Lance Taylor <iant@google.com>
26812
26813 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26814 Correct test for number of arguments.
26815 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
26816
26817 2009-04-21 Andreas Schwab <schwab@linux-m68k.org>
26818
26819 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
26820 argument of emit_library_call.
26821
26822 2009-04-21 Richard Guenther <rguenther@suse.de>
26823
26824 PR middle-end/39829
26825 * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
26826 inside VIEW_CONVERT_EXPRs.
26827
26828 2009-04-21 Martin Jambor <mjambor@suse.cz>
26829
26830 * tree-switch-conversion.c (build_constructors): Split a long line.
26831 (constructor_contains_same_values_p): New function.
26832 (build_one_array): Create assigns of constants if possible, do not
26833 call mark_sym_for_renaming, call update_stmt.
26834 (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
26835 make_rename_temp. Do not call mark_symbols_for_renaming, call
26836 update_stmt.
26837 (gen_def_assigns): Do not call mark_symbols_for_renaming or
26838 find_new_referenced_vars, call update_stmt.
26839 (gen_inbound_check): Use create_tmp_var and create ssa names manually
26840 instead of calling make_rename_temp. Do not call
26841 find_new_referenced_vars or mark_symbols_for_renaming, call
26842 update_stmt.
26843
26844 2009-04-21 Richard Guenther <rguenther@suse.de>
26845
26846 PR tree-optimization/39827
26847 * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
26848 (tree_ssa_phiprop): Pass the correct array size.
26849
26850 2009-04-21 Uros Bizjak <ubizjak@gmail.com>
26851
26852 * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
26853
26854 2009-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
26855
26856 PR 16202
26857 * c-typeck.c (lvalue_p): Move declaration ...
26858 * c-common.h (lvalue_p): ... to here.
26859 * c-common.c (candidate_equal_p): New.
26860 (add_tlist): Use it.
26861 (merge_tlist): Use it.
26862 (warn_for_collisions_1): Likewise.
26863 (warning_candidate_p): Accept more candidates.
26864 (verify_tree): A warning candidate can be an expression. Use
26865 candidate_equal_p.
26866
26867 2009-04-21 Ben Elliston <bje@au.ibm.com>
26868
26869 PR target/5267
26870 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
26871 for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
26872 options. Remove -mcall-solaris documentation.
26873
26874 2009-04-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
26875
26876 PR c++/13358
26877 * doc/invoke.texi (-Wlong-long): Update description.
26878 * c-lex (interpret_integer): Only warn if there was no previous
26879 overflow and -Wlong-long is enabled.
26880 * c-decl.c (declspecs_add_type): Drop redundant flags.
26881 * c.opt (Wlong-long): Init to -1.
26882 * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
26883 and front-end warn_long_long. Wlong-long only depends on other
26884 flags if it is uninitialized.
26885 * c-parser.c (disable_extension_diagnostics): warn_long_long is
26886 the same for CPP and FE.
26887 (restore_extension_diagnostics): Likewise.
26888
26889 2009-04-20 Ian Lance Taylor <iant@google.com>
26890
26891 Fix enum conversions which are invalid in C++:
26892 * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
26893 * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
26894 * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
26895 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
26896 * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
26897 (dbxout_parms): Likewise.
26898 * df-core.c (df_set_flags): Change changeable_flags parameter to int.
26899 (df_clear_flags): Likewise.
26900 * df-problems.c (df_rd_bb_local_compute_process_def): Change
26901 top_flag parameter to int.
26902 (df_chain_create_bb_process_use): Likewise.
26903 (df_chain_add_problem): Change chain_flags parameter to unsigned int.
26904 Remove cast.
26905 * df-scan.c (df_ref_create): Change ref_flags parameter to int.
26906 (df_ref_create_structure, df_def_record_1): Likewise.
26907 (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
26908 (df_notes_rescan): Change 0 to VOIDmode in function call.
26909 (df_get_call_refs, df_insn_refs_collect): Likewise.
26910 (df_bb_regs_collect): Likewise.
26911 (df_entry_block_defs_collect): Likewise.
26912 (df_exit_block_uses_collect): Likewise.
26913 * df.h: Update declarations.
26914 * double-int.c (double_int_divmod): Add cast to enum type.
26915 * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
26916 * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
26917 (based_loc_descr): Likewise.
26918 (loc_descriptor_from_tree_1): Change first_op and second_op to
26919 enum dwarf_location_atom. Add cast to enum type.
26920 * expmed.c (init_expmed): Change 0 to SET in function call.
26921 * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
26922 (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
26923 (do_store_flag): Likewise.
26924 * fixed-value.h (struct fixed_value): Change mode to enum
26925 machine_mode.
26926 * function.c (assign_parms): Change 0 to VOIDmode in function call.
26927 * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
26928 function call.
26929 (insert_insn_decl, insert_decl, insert_state): Likewise.
26930 (automata_list_finish): Likewise.
26931 * genrecog.c (process_define_predicate): Add cast to enum type.
26932 * gensupport.c (init_predicate_table): Add cast to enum type.
26933 * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
26934 function call.
26935 (gimple_build_call_1, gimple_build_label): Likewise.
26936 (gimple_build_goto, gimple_build_asm_1): Likewise.
26937 (gimple_build_switch_1, gimple_build_cdt): Likewise.
26938 * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
26939 (enum fallback): Rename from enum fallback_t.
26940 (fallback_t): Typedef as int.
26941 * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
26942 GSI_SAME_STMT in function call.
26943 * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
26944 enum type.
26945 (setup_reg_class_relations): Likewise.
26946 (setup_reg_class_nregs): Change cl to int. Add casts to enum type.
26947 (setup_prohibited_class_mode_regs): Add cast to enum type.
26948 (setup_prohibited_mode_move_regs): Likewise.
26949 * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
26950 (record_address_regs): Change i to enum reg_class.
26951 * lists.c (alloc_EXPR_LIST): Add cast to enum type.
26952 * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
26953 (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
26954 (GET_MODE_2XWIDER_MODE): Likewise.
26955 (GET_CLASS_NARROWEST_MODE): Likewise.
26956 * omp-low.c (expand_omp_for): Add cast to enum type.
26957 * optabs.c (debug_optab_libfuncs): Add casts to enum type.
26958 * opts.c (enable_warning_as_error): Change kind to diagostic_t.
26959 * postreload.c (reload_cse_simplify_operands): Change rclass local
26960 to enum reg_class.
26961 * predict.c (combine_predictions_for_insn): Change best_predictor
26962 and predictor to enum br_predictor.
26963 (combine_predictions_for_bb): Likewise.
26964 (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
26965 use SET_PREDICT_EXPR_OUTCOME.
26966 * real.c (real_arithmetic): Change icode to code in function call.
26967 * reginfo.c (init_move_cost): Add casts to enum type.
26968 (init_reg_sets_1, init_fake_stack_mems): Likewise.
26969 * regmove.c (regclass_compatible_p): Change class0 and class1 to
26970 enum reg_class.
26971 * reload.c (find_valid_class): Add casts to enum type.
26972 (push_reload): Change 0 to NO_REGS in function call.
26973 (find_reloads): Change this_alternative to array of enum
26974 reg_class. Remove some now-unnecessary casts.
26975 (make_memloc): Change 0 to VOIDmode in function call.
26976 * reload1.c (reload): Change 0 to VOIDmode in function call.
26977 (eliminate_regs_1, elimination_effects): Likewise.
26978 (eliminate_regs_in_insn): Likewise.
26979 (emit_input_reload_insns): Add cast to enum type.
26980 (delete_output_reload): Change 0 to VOIDmode in function call.
26981 * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
26982 to enum type in function call.
26983 * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
26984 (SET_PREDICT_EXPR_OUTCOME): Define.
26985 * tree-dump.c (get_dump_file_info): Change phase parameter to int.
26986 (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
26987 (dump_initialized_p, dump_flag_name, dump_end): Likewise.
26988 (dump_function): Likewise.
26989 * tree-dump.h: Update declarations.
26990 * tree-pass.h: Update declarations.
26991 * varasm.c (assemble_integer): Change mclass to enum mode_class.
26992 * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
26993 enum type.
26994 (arm_rtx_costs_1): Correct parenthesization.
26995 (arm_rtx_costs): Add casts to enum type.
26996 (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
26997 (vfp_emit_fstmd): Use add_rg_note.
26998 (emit_multi_reg_push, emit_sfm): Likewise.
26999 (thumb_set_frame_pointer): Likewise.
27000 (arm_expand_prologue): Likewise.
27001 (arm_regno_class): Change return type to enum reg_class.
27002 (thumb1_expand_prologue): Use add_reg_note.
27003 * config/arm/arm-protos.h (arm_regno_class): Update declaration.
27004 * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
27005 in function call.
27006 * config/arm/gentune.sh: Add cast to enum type.
27007 * config/arm/arm-tune.md: Rebuild.
27008 * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
27009 (ix86_split_fp_branch, predict_jump): Likewise.
27010 (ix86_expand_multi_arg_builtin): Change sub_code from enum
27011 insn_code to enum rtx_code.
27012 (ix86_builtin_vectorized_function): Add cast to enum type.
27013 * config/i386/i386.md (truncdfsf2): Change slot to enum
27014 ix86_stack_slot.
27015 (truncxf<mode>2, isinf<mode>2): Likewise.
27016 * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
27017 enum type.
27018 * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
27019 (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
27020 (insert_bundle_state): Change 1 to INSERT in function call.
27021 (ia64_add_bundle_selector_before): Likewise.
27022 * config/ia64/ia64.md (cpu attr): Add cast to enum type.
27023 (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
27024 (restore_stack_nonlocal): Likewise.
27025 * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
27026 function call.
27027 * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
27028 function call.
27029 (mips_rtx_costs): Likewise.
27030 (mips_override_options): Add casts to enum type.
27031 * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
27032 in function call.
27033 * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
27034 (store_reg, set_reg_plus_d): Likewise.
27035 (hppa_expand_prologue, hppa_profile_hook): Likewise.
27036 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
27037 cast to enum type.
27038 (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
27039 function call.
27040 (emit_unlikely_jump): Use add_reg_note.
27041 (rs6000_emit_allocate_stack): Likewise.
27042 (rs6000_frame_related, rs6000_emit_prologue): Likewise.
27043 (output_toc): Change 1 to INSERT in function call.
27044 (output_profile_hook): Change 0 to LCT_NORMAL in function call.
27045 (rs6000_initialize_trampoline): Likewise.
27046 (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
27047 function call.
27048 * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
27049 (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
27050 (s390_expand_setmem, s390_expand_cmpmem): Likewise.
27051 (save_gprs): Use add_reg_note.
27052 (s390_emit_prologue): Likewise.
27053 (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
27054 * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
27055 (sparc_fold_builtin): Add cast to enum type.
27056 * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
27057 enum insn_code.
27058 (spu_expand_prologue): Use add_reg_note.
27059 (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
27060
27061 2009-04-20 Ian Lance Taylor <iant@google.com>
27062
27063 * c-parser.c (c_parser_attributes): Change VEC back to tree list.
27064 (c_parser_postfix_expression_after_primary): Get VEC for list of
27065 arguments. Get original types of arguments. Call
27066 build_function_call_vec.
27067 (cached_expr_list_1, cached_expr_list_2): New static variables.
27068 (c_parser_expr_list): Change return type to VEC *. Add
27069 p_orig_types parameter. Change all callers.
27070 (c_parser_release_expr): New static function.
27071 (c_parser_vec_to_tree_list): New static function.
27072 * c-typeck.c (build_function_call): Rewrite to build a VEC and
27073 call build_function_call_vec.
27074 (build_function_call_vec): New function, based on old
27075 build_function_call.
27076 (convert_arguments): Remove nargs and argarray parameters. Change
27077 values to a VEC. Add origtypes parameter.
27078 (build_modify_expr): Add rhs_origtype parameter. Change all callers.
27079 (convert_for_assignment): Add origtype parameter. Change all
27080 callers. If warn_cxx_compat, check for conversion to an enum
27081 type when calling a function.
27082 (store_init_value): Add origtype parameter. Change all callers.
27083 (digest_init): Likewise.
27084 (struct init_node): Add origtype field.
27085 (add_pending_init): Add origtype parameter. Change all callers.
27086 (output_init_element): Likewise.
27087 (output_pending_init_elements): Pass origtype from init_node to
27088 output_init_element.
27089 (process_init_element): Pass origtype from c_expr to
27090 output_init_element.
27091 (c_finish_return): Add origtype parameter. Change all callers.
27092 * c-common.c (sync_resolve_size): Change params to VEC *. Change
27093 caller.
27094 (sync_resolve_params): Likewise.
27095 (sync_resolve_return): Change params to first_param. Change caller.
27096 (resolve_overloaded_builtins): Change params to VEC *. Change
27097 callers. Save first parameter around call to build_function_call_vec.
27098 * c-decl.c (finish_decl): Add origtype parameter. Change all
27099 callers. Call build_function_call_vec rather than
27100 build_function_call for cleanup.
27101 * c-tree.h: Update declarations.
27102 * c-common.h: Update declarations.
27103 * stub-objc.c (objc_rewrite_function_call): Change parameter from
27104 params to first_param.
27105 * target.h (struct gcc_target): Change resolve_overloaded_builtin
27106 params parameter from tree to void *.
27107 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27108 Change arglist parameter to have type void *, and to be a pointer
27109 to a VEC.
27110 * config/rs6000/rs6000-protos.h
27111 (altivec_resolve_overloaded_builtin): Update declaration.
27112 * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
27113 fnargs parameter to have type void *, and to be a pointer to a
27114 VEC. Call build_function_call_vec instead of
27115 build_function_call.
27116 * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
27117
27118 2009-04-20 Joey Ye <joey.ye@intel.com>
27119 Xuepeng Guo <xuepeng.guo@intel.com>
27120 H.J. Lu <hongjiu.lu@intel.com>
27121
27122 * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
27123
27124 * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
27125 (IX86_LEA_PRIORITY): Likewise.
27126 (distance_non_agu_define): New function.
27127 (distance_agu_use): Likewise.
27128 (ix86_lea_for_add_ok): Likewise.
27129 (ix86_dep_by_shift_count): Likewise.
27130
27131 * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
27132 should split for LEA.
27133
27134 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
27135 function.
27136 (ix86_dep_by_shift_count): Likewise.
27137
27138 2009-04-20 Richard Guenther <rguenther@suse.de>
27139
27140 * expr.c (handled_component_p): Move ...
27141 * tree.h (handled_component_p): ... here.
27142 * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
27143 ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
27144 and REALPART_EXPR to be in one group.
27145
27146 2009-04-20 Richard Guenther <rguenther@suse.de>
27147
27148 * basic-block.h (get_all_dominated_blocks): Declare.
27149 * dominance.c (get_all_dominated_blocks): New function.
27150 * tree-cfg.c (get_all_dominated_blocks): Remove.
27151 (remove_edge_and_dominated_blocks): Adjust.
27152 * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
27153 (tree_ssa_phiprop): ... here. Use get_all_dominated_blocks
27154 instead of recursing.
27155
27156 2009-04-20 Doug Kwan <dougkwan@google.com>
27157
27158 * cgraph.h (cgraph_node_ptr): New type for vector functions.
27159 (struct cgraph_node_set_def): New type.
27160 (cgraph_node_set) New type. Also declare vector functions.
27161 (struct cgraph_node_set_element_def): New type.
27162 (cgraph_node_set_element): Ditto.
27163 (cgraph_node_set_iterator): New iterator type.
27164 (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
27165 cgraph_node_set_remove, dump_cgraph_node_set,
27166 debug_cgraph_node_set): New prototypes.
27167 (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
27168 cgraph_node_set_size): New inlines.
27169 * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
27170 including cgraph.h.
27171 (struct ipa_opt_pass): Add struct cgraph_node_set_def
27172 argument to function 'write_summary'.
27173 * ipa.c: Include ggc.h.
27174 (hash_cgraph_node_set_element,
27175 eq_cgraph_node_set_element, cgraph_node_set_new,
27176 cgraph_node_set_add, cgraph_node_set_remove,
27177 cgraph_node_set_find, dump_cgraph_node_set,
27178 debug_cgraph_node_set): New functions.
27179 * Makefile.in (ipa.o): Add dependency on GGC_H.
27180
27181 2009-04-20 Ira Rosen <irar@il.ibm.com>
27182
27183 PR tree-optimization/39675
27184 * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
27185 check of the return code of vect_schedule_slp. Check that
27186 stmt_vec_info still exists for the statement, before checking its
27187 vectorization type.
27188
27189 2009-04-20 Michael Matz <matz@suse.de>
27190
27191 * Makefile.in (generated_files): Take out $(simple_generated_c).
27192
27193 2009-04-19 Dave Korn <dave.korn.cygwin@gmail.com>
27194
27195 * config/i386/cygwin-stdint.h (INTPTR_TYPE): Remove "long".
27196 (UINTPTR_TYPE): Likewise.
27197
27198 2009-04-19 Joseph Myers <joseph@codesourcery.com>
27199
27200 PR c/37481
27201 * c-typeck.c (digest_init): Check for initializing an array with a
27202 string literal.
27203
27204 2009-04-19 Joseph Myers <joseph@codesourcery.com>
27205
27206 PR c/19771
27207 * c-semantics.c (pop_stmt_list): Propagate
27208 STATEMENT_LIST_HAS_LABEL to parent statement list.
27209
27210 2009-04-19 Adam Nemet <anemet@caviumnetworks.com>
27211
27212 * config/mips/mips.h (mips_tune_attr): New macro.
27213 * config/mips/mips.md (cpu): Use it.
27214
27215 2009-04-19 Joseph Myers <joseph@codesourcery.com>
27216
27217 PR c/38243
27218 * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
27219 declaring a tag.
27220
27221 2009-04-19 Diego Novillo <dnovillo@google.com>
27222
27223 * toplev.c (compile_file): Move call to coverage_finish ...
27224 * cgraphunit.c (ipa_passes): ... here.
27225 Call cgraph_process_new_functions.
27226 * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
27227 * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
27228
27229 2009-04-19 Jan Hubicka <jh@suse.cz>
27230
27231 * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
27232 cfun.
27233 (dump_cgraph_node): Dump can throw external flag.
27234 * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
27235
27236 2009-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
27237
27238 PR c/32061
27239 PR c++/36954
27240 * doc/invoke.texi: Add -Wlogical-op to -Wextra.
27241 * common.opt (Wlogical-op): Move from here...
27242 * c.opt (Wlogical-op): ... to here.
27243 * c-typeck.c (parser_build_binary_op): Update call to
27244 warn_logical_operator.
27245 * c-opts.c (c_common_post_options): Enable warn_logical_op with
27246 extra_warnings.
27247 * c-common.c (warn_logical_op): Update.
27248 * c-common.h (warn_logical_op): Update declaration.
27249
27250 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
27251
27252 * tree.c (protected_set_expr_location): Fix formatting.
27253
27254 2009-04-18 Joseph Myers <joseph@codesourcery.com>
27255
27256 PR c/27676
27257 * c-typeck.c (readonly_warning): new.
27258 (build_unary_op, build_modify_expr): Use readonly_warning for
27259 storing into something readonly but not const-qualified.
27260
27261 2009-04-18 Joseph Myers <joseph@codesourcery.com>
27262
27263 PR c/22367
27264 * c-typeck.c (build_unary_op): Check for taking address of
27265 expression of type void.
27266
27267 2009-04-18 Joseph Myers <joseph@codesourcery.com>
27268
27269 PR c/35210
27270 * c-typeck.c (build_function_call): Check for calling a function
27271 with qualified void return types. Call require_complete_type when
27272 generating a trap.
27273
27274 2009-04-18 Jan Hubicka <jh@suse.cz>
27275
27276 * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
27277 Set nothrow flag.
27278 * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
27279 can_throw_external flag.
27280 * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
27281 * ipa-pure-const.c (ignore_edge): New function.
27282 (propagate): Compute order for NOTHROW computation; set NOTHROWs
27283 only over can_throw_external edges.
27284 (local_pure_const): Add nothrow flag.
27285 * ipa-utils.c (searchc): Add ignore_edge callback.
27286 (ipa_utils_reduced_inorder): Add ignore_edge callback.
27287 * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
27288 (set_nothrow_function_flags): Update cgraph.
27289 * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
27290
27291 2009-04-18 Richard Guenther <rguenther@suse.de>
27292
27293 PR middle-end/39804
27294 * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
27295 (fold_stmt): ... this and ...
27296 (fold_stmt_inplace): ... this.
27297 (fold_stmt_1): Fold references in calls and asms.
27298 * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
27299
27300 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
27301
27302 * tree-vrp.c (ssa_name_nonzero_p): Remove.
27303 * tree.h: Remove the prototype for ssa_name_nonzero_p.
27304
27305 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
27306
27307 * tree.c (function_args_count): Remove.
27308 * tree.h: Remove the prototype for function_args_count.
27309
27310 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
27311
27312 * tree-iterator.c (expr_only): Remove.
27313 * tree.h: Remove the prototype for expr_only.
27314
27315 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
27316
27317 * reginfo.c (cannot_change_mode_set_regs): Remove.
27318 * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
27319
27320 2009-04-08 Anatoly Sokolov <aesok@post.ru>
27321
27322 * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
27323 whether operands 0 and 1 overlaps.
27324
27325 2009-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
27326
27327 PR middle-end/36902
27328 * tree-vrp.c (check_array_ref): Pass a location_t instead of a
27329 pointer. Use warning_at instead of warning.
27330 (search_for_addr_array): Likewise.
27331 (check_array_bounds): Likewise.
27332 (check_all_array_refs): Check that the incoming edge is not in the
27333 list of edges to be removed.
27334 (check_all_array_refs): Avoid the temporal pointer.
27335 (vrp_visit_cond_stmt): Fix typo.
27336 (simplify_switch_using_ranges): Handle the case where the switch
27337 index is an integer constant.
27338
27339 2009-04-18 Adam Nemet <anemet@caviumnetworks.com>
27340
27341 * config/mips/mips.c (mips_final_postscan_insn): Make it static.
27342
27343 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
27344
27345 * doc/extend.texi, doc/invoke.texi: Fix typos.
27346
27347 2009-04-17 Cary Coutant <ccoutant@google.com>
27348
27349 * tree-flow-inline.h (get_lineno): Fix inverted test.
27350
27351 2009-04-17 Diego Novillo <dnovillo@google.com>
27352
27353 * tree-ssa-pre.c (create_expression_by_pieces): Remove
27354 assertion for AVAIL_OUT.
27355
27356 2009-04-17 Mike Frysinger <vapier@gentoo.org>
27357
27358 PR target/38627
27359 * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
27360 * config/sh/linux-atomic.asm: Likewise.
27361
27362 2009-04-17 Diego Novillo <dnovillo@google.com>
27363
27364 * except.c (debug_eh_tree): New.
27365 (struct eh_region, struct eh_status): Move ...
27366 * except.h: ... here.
27367 (add_type_for_runtime): Declare extern.
27368 (lookup_type_for_runtime): Likewise.
27369 (debug_eh_tree): Declare.
27370 * Makefile.in (GTFILES): List except.h before except.c
27371
27372 2009-04-17 Diego Novillo <dnovillo@google.com>
27373
27374 * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
27375 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
27376 * tree-dfa.c (find_referenced_vars_in): Factor out of ...
27377 (find_vars_r): ... here.
27378 * tree-flow.h (find_referenced_vars_in): Declare.
27379 * tree-ssa-pre.c (create_expression_by_pieces): Assert
27380 that AVAIL_OUT exists for BLOCK.
27381 * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
27382 (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
27383 (tree-parloops.o): Likewise.
27384
27385 2009-04-17 Simon Baldwin <simonb@google.com>
27386
27387 * toplev.c (default_tree_printer): Add handling for %E format.
27388
27389 2009-04-17 Diego Novillo <dnovillo@google.com>
27390
27391 * tree-pretty-print.c (dump_generic_node): Add break after
27392 TREE_BINFO handler. Handle COMPLEX_TYPE, REAL_TYPE and
27393 FIXED_POINT_TYPE. Handle NULL TREE_TYPEs. Handle METHOD_TYPE and
27394 FUNCTION_TYPE together. Call print_struct_decl when printing
27395 structures and TDF_SLIM is not given.
27396 (print_struct_decl): Fix logic for detecting recursion.
27397
27398 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
27399
27400 PR 31567
27401 * gcc.c (create_at_file): New.
27402 (compile_input_file_p): New.
27403 (do_spec_1): Use @args files for %i. Use create_at_file for %o.
27404 * main.c (main): Update call to toplev_main.
27405 * toplev.c (toplev_main): Change signature. Call expandargv.
27406 * toplev.h (toplev_main): Change signature.
27407
27408 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
27409
27410 * dwarf2out.c (field_byte_offset): Use the type size as the field size
27411 if the latter is not constant.
27412
27413 2009-04-17 David Edelsohn <edelsohn@gnu.org>
27414
27415 * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
27416
27417 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
27418
27419 * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
27420 * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
27421
27422 2009-04-17 Richard Guenther <rguenther@suse.de>
27423
27424 * tree-ssa-structalias.c (get_constraint_for_component_ref):
27425 Handle component references view-converting an invariant address.
27426
27427 2009-04-17 Adam Nemet <anemet@caviumnetworks.com>
27428
27429 * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
27430 TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
27431 TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
27432 TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
27433 Use @deftypevr rather than @deftypevar.
27434
27435 2009-04-17 Richard Guenther <rguenther@suse.de>
27436
27437 * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
27438 (get_prop_source_stmt): Likewise.
27439 (can_propagate_from): Likewise.
27440
27441 2009-04-17 Andrew Stubbs <ams@codesourcery.com>
27442
27443 * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
27444 TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
27445 (--with-multilib-list): Add default value.
27446 * configure: Regenerate.
27447 * Makefile.in (TM_ENDIAN_CONFIG): Define.
27448 (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
27449 * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
27450 TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
27451 Don't add default cpu to multilib list unnecessarily, but do enable
27452 the relevant compiler option..
27453 Add support for --with-multilib-list=<blank> and
27454 --with-multilib-list=!<somelib> to supress unwanted multilibs.
27455 * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
27456 (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
27457 (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
27458 TM_MULTILIB_CONFIG.
27459 (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
27460 (MULTILIB_OSDIRNAMES): New variable.
27461 * config/sh/t-1e: Delete file.
27462 * config/sh/t-mlib-sh1: Delete file.
27463 * config/sh/t-mlib-sh2: Delete file.
27464 * config/sh/t-mlib-sh2a: Delete file.
27465 * config/sh/t-mlib-sh2a-nofpu: Delete file.
27466 * config/sh/t-mlib-sh2a-single: Delete file.
27467 * config/sh/t-mlib-sh2a-single-only: Delete file.
27468 * config/sh/t-mlib-sh2e: Delete file.
27469 * config/sh/t-mlib-sh3e: Delete file.
27470 * config/sh/t-mlib-sh4: Delete file.
27471 * config/sh/t-mlib-sh4-nofpu: Delete file.
27472 * config/sh/t-mlib-sh4-single: Delete file.
27473 * config/sh/t-mlib-sh4-single-only: Delete file.
27474 * config/sh/t-mlib-sh4a: Delete file.
27475 * config/sh/t-mlib-sh4a-nofpu: Delete file.
27476 * config/sh/t-mlib-sh4a-single: Delete file.
27477 * config/sh/t-mlib-sh4a-single-only: Delete file.
27478 * config/sh/t-mlib-sh4al: Delete file.
27479 * config/sh/t-mlib-sh5-32media: Delete file.
27480 * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
27481 * config/sh/t-mlib-sh5-64media: Delete file.
27482 * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
27483 * config/sh/t-mlib-sh5-compact: Delete file.
27484 * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
27485 * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
27486 * doc/install.texi (Options specification): Add
27487 --with-multilib-list and --with-endian.
27488
27489 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
27490
27491 * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
27492 REVISION_c.
27493 (OBJS-common): Add plugin-version.o.
27494 (plugin-version.o): New.
27495 * gcc-plugin.h (plugin_gcc_version): New.
27496 (plugin_default_version_check): New.
27497 (plugin_init_func, plugin_init): Add version argument.
27498 * plugin-version.c: New.
27499 * plugin.c (str_plugin_gcc_version_name): New.
27500 (try_init_one_plugin): Read plugin_gcc_version from the plugin and
27501 pass it to the init function.
27502 (plugin_default_version_check): New.
27503
27504 2009-04-17 Richard Guenther <rguenther@suse.de>
27505
27506 * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
27507 for decl-vs-decl disambiguation.
27508
27509 2009-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
27510
27511 * config/s390/s390.h (s390_tune_attr): New macro definition.
27512 * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
27513
27514 2009-04-17 Richard Guenther <rguenther@suse.de>
27515
27516 * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
27517 (fold_stmt_r): Likewise.
27518 (maybe_fold_reference): New function.
27519 (fold_gimple_assign): Handle cases fold_stmt_r did.
27520 (fold_stmt): Do not use fold_stmt_r.
27521 (fold_stmt_inplace): Likewise.
27522
27523 2009-04-17 Richard Guenther <rguenther@suse.de>
27524
27525 * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
27526 (record_equivalences_from_stmt): Remove useless checks and
27527 simplifications.
27528 * tree-ssa-pre.c (eliminate): Avoid converting a constant if
27529 the type is already suitable.
27530
27531 2009-04-17 Paolo Bonzini <bonzini@gnu.org>
27532
27533 * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
27534
27535 2009-04-17 Uros Bizjak <ubizjak@gmail.com>
27536
27537 * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
27538 (CMPtype): Define as __gcc_CMPtype.
27539
27540 2009-04-17 Aurelien Jarno <aurelien@aurel32.net>
27541
27542 * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
27543 for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
27544
27545 2009-04-17 Richard Guenther <rguenther@suse.de>
27546
27547 PR tree-optimization/39746
27548 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
27549 special-casing for builtins and static variable use/def.
27550 (call_may_clobber_ref_p_1): Likewise.
27551
27552 2009-04-16 Ian Lance Taylor <iant@google.com>
27553
27554 * df.h: Include "timevar.h".
27555 (struct df_problem): Change tv_id field to timevar_id_t.
27556 * tree-pass.h: Include "timevar.h".
27557 (struct opt_pass): Change tv_id field to timevar_id_t.
27558 * timevar.h (timevar_id_t): Define TV_NONE.
27559 * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
27560 TV_NONE rather than tv_id != 0.
27561 (execute_one_pass): Likewise.
27562 * Makefile.in (DF_H): Add $(TIMEVAR_H).
27563 (TREE_PASS_H): Define. Change all instances of tree-pass.h in
27564 dependencies to $(TREE_PASS_H).
27565 * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
27566 to TV_NONE.
27567 (pass_branch_target_load_optimize2): Likewise.
27568 * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
27569 (pass_outof_cfg_layout_mode): Likewise.
27570 * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
27571 (pass_rebuild_cgraph_edges): Likewise.
27572 (pass_remove_cgraph_callee_edges): Likewise.
27573 * df-core.c (pass_df_initialize_opt): Likewise.
27574 (pass_df_initialize_no_opt): Likewise.
27575 (pass_df_finish): Likewise.
27576 * emit-rtl.c (pass_unshare_all_rtl): Likewise.
27577 * except.c (pass_set_nothrow_function_flags): Likewise.
27578 (pass_convert_to_eh_region_ranges): Likewise.
27579 * final.c (pass_compute_alignments): Likewise.
27580 * function.c (pass_instantiate_virtual_regs): Likewise.
27581 (pass_init_function): Likewise.
27582 (pass_leaf_regs): Likewise.
27583 (pass_match_asm_constraints): Likewise.
27584 * gimple-low.c (pass_lower_cf): Likewise.
27585 (pass_mark_used_blocks): Likewise.
27586 * init-regs.c (pass_initialize_regs): Likewise.
27587 * integrate.c (pass_initial_value_sets): Likewise.
27588 * ira.c (pass_ira): Likewise.
27589 * jump.c (pass_cleanup_barriers): Likewise.
27590 * omp-low.c (pass_expand_omp): Likewise.
27591 (pass_lower_omp): Likewise.
27592 * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
27593 * recog.c (pass_split_all_insns): Likewise.
27594 (pass_split_after_reload): Likewise.
27595 (pass_split_before_regstack): Likewise.
27596 (pass_split_before_sched2): Likewise.
27597 (pass_split_for_shorten_branches): Likewise.
27598 * reginfo.c (pass_reginfo_init): Likewise.
27599 (pass_subregs_of_mode_init): Likewise.
27600 (pass_subregs_of_mode_finish): Likewise.
27601 * passes.c (pass_postreload): Likewise.
27602 * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
27603 * tree-cfg.c (pass_remove_useless_stmts): Likewise.
27604 (pass_warn_function_return): Likewise.
27605 (pass_warn_function_noreturn): Likewise.
27606 * tree-complex.c (pass_lower_complex): Likewise.
27607 (pass_lower_complex_O0): Likewise.
27608 * tree-if-conv.c (pass_if_conversion): Likewise.
27609 * tree-into-ssa.c (pass_build_ssa): Likewise.
27610 * tree-mudflap.c (pass_mudflap_1): Likewise.
27611 (pass_mudflap_2): Likewise.
27612 * tree-nomudflap.c (pass_mudflap_1): Likewise.
27613 (pass_mudflap_2): Likewise.
27614 * tree-nrv.c (pass_return_slot): Likewise.
27615 * tree-object-size.c (pass_object_sizes): Likewise.
27616 * tree-optimize.c (pass_all_optimizations): Likewise.
27617 (pass_early_local_passes): Likewise.
27618 (pass_all_early_optimizations): Likewise.
27619 (pass_cleanup_cfg): Likewise.
27620 (pass_cleanup_cfg_post_optimizing): Likewise.
27621 (pass_free_datastructures): Likewise.
27622 (pass_free_cfg_annotations): Likewise.
27623 (pass_fixup_cfg): Likewise.
27624 (pass_init_datastructures): Likewise.
27625 * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
27626 (pass_late_warn_uninitialized): Likewise.
27627 (pass_update_address_taken): Likewise.
27628 * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
27629 * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
27630 (pass_cse_sincos): Likewise.
27631 (pass_convert_to_rsqrt): Likewise.
27632 * tree-ssa-structalias.c (pass_build_alias): Likewise.
27633 * tree-stdarg.c (pass_stdarg): Likewise.
27634 * tree-tailcall.c (pass_tail_recursion): Likewise.
27635 (pass_tail_calls): Likewise.
27636 * tree-vect-generic.c (pass_lower_vector): Likewise.
27637 (pass_lower_vector_ssa): Likewise.
27638 * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
27639
27640 2009-04-16 Joseph Myers <joseph@codesourcery.com>
27641
27642 * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
27643 XLR entry.
27644 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
27645 Handle -march=xlr.
27646 * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
27647 logical and signext.
27648
27649 2009-04-16 Kaz Kojima <kkojima@gcc.gnu.org>
27650
27651 PR target/39767
27652 * config/sh/predicates.md (arith_operand): Check if the operand
27653 of TRUNCATE is a REG.
27654
27655 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
27656
27657 * cfgrtl.c (delete_insn_chain_and_edges): Remove.
27658 * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
27659
27660 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
27661
27662 * tree-iterator.c (tsi_split_statement_list_after,
27663 tsi_split_statement_list_before): Remove.
27664 * tree-iterator.h: Remove the prototypes for
27665 tsi_split_statement_list_after and tsi_split_statement_list_before.
27666
27667 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
27668
27669 * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
27670 * tree-ssa-propagate.h: Remove the prototype for
27671 stmt_makes_single_load.
27672
27673 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
27674
27675 * emit-rtl.c (set_mem_attrs_from_reg): Remove.
27676 * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
27677
27678 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
27679
27680 * tree-iterator.c (EXPR_LAST_BODY): Remove.
27681
27682 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
27683
27684 * except.c (eh_region_outer_p): Remove.
27685 * except.h: Remove the prototype for eh_region_outer_p.
27686
27687 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
27688
27689 * function.c (current_function_assembler_name): Remove.
27690 * function.h: Remove the prototype for
27691 current_function_assembler_name.
27692
27693 2009-04-16 Ian Lance Taylor <iant@google.com>
27694
27695 * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
27696 (add_reg_note): Call alloc_reg_note.
27697 * rtl.h (alloc_reg_note): Declare.
27698 * combine.c (try_combine): Use alloc_reg_note.
27699 (recog_for_combine, move_deaths): Likewise.
27700 (distribute_notes): Use alloc_reg_note and add_reg_note.
27701 * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
27702 * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
27703 * reload1.c (eliminate_regs_1): Use alloc_reg_note.
27704
27705 2009-04-16 Vladimir Makarov <vmakarov@redhat.com>
27706
27707 PR rtl-optimization/39762
27708 * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
27709 ira_may_move_out_cost): Add comments about way of their usage.
27710 (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
27711
27712 * ira-conflicts.c (process_regs_for_copy): Use function
27713 ira_get_register_move_cost instead of global
27714 ira_register_move_cost.
27715
27716 * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
27717 color_pass, move_spill_restore, update_curr_costs): Ditto.
27718
27719 * ira-lives.c (process_single_reg_class_operands): Ditto.
27720
27721 * ira-emit.c (emit_move_list): Ditto.
27722
27723 * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
27724 (record_reg_classes): Ditto. Use functions
27725 ira_get_register_move_cost and ira_get_may_move_cost instead of
27726 global vars ira_register_move_cost, ira_may_move_out_cost and
27727 ira_may_move_in_cost.
27728 (record_address_regs): Don't call ira_init_register_move_cost.
27729 Use function ira_get_may_move_cost instead of global
27730 ira_may_move_in_cost.
27731 (process_bb_node_for_hard_reg_moves): Use function
27732 ira_get_register_move_cost instead of global ira_register_move_cost.
27733 (ira_costs): Don't call ira_init_register_move_cost.
27734
27735 2009-04-16 Richard Guenther <rguenther@suse.de>
27736
27737 * tree-cfg.c (verify_gimple_assign_binary):
27738 Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
27739 * ipa-struct-reorg.c (gen_size): Fold the built expressions.
27740 (create_general_new_stmt): Note that this function is broken.
27741
27742 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
27743
27744 * common.opt (fhelp): Add Var(help_flag).
27745 * gcc-plugin.h (plugin_info): Add help.
27746 * plugin.c (plugin_name_args): Add help.
27747 (register_plugin_info): Set plugin->help.
27748 (print_help_one_plugin): New.
27749 (print_plugins_help): New.
27750 * plugin.h (print_plugins_help): New.
27751 * toplev.c (toplev_main): Call print_plugins_help if needed.
27752
27753 2009-04-16 Richard Guenther <rguenther@suse.de>
27754
27755 * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
27756 (gimple_ior_addresses_taken_1): New function.
27757 (gimple_ior_addresses_taken): Likewise.
27758 * gimple.h (struct gimple_statement_with_ops_base): Remove
27759 addresses_taken member.
27760 (gimple_ior_addresses_taken): Declare.
27761 (gimple_addresses_taken, gimple_addresses_taken_ptr,
27762 gimple_set_addresses_taken): Remove.
27763 * ipa-reference.c (mark_address): New function.
27764 (scan_stmt_for_static_refs): Use it for marking addresses taken.
27765 * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
27766 (mark_address_taken): ... this. Just set TREE_ADDRESSABLE.
27767 (gimple_add_to_addresses_taken): Remove.
27768 (get_tmr_operands): Call mark_address_taken.
27769 (get_asm_expr_operands): Likewise.
27770 (get_expr_operands): Likewise.
27771 (build_ssa_operands): Do not clear the addresses_taken bitmap.
27772 (free_stmt_operands): Do not free it.
27773 * tree-ssa.c (delete_tree_ssa): Likewise.
27774 (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
27775
27776 2009-04-16 Richard Guenther <rguenther@suse.de>
27777
27778 * gimple.h (walk_stmt_load_store_addr_ops): Declare.
27779 (walk_stmt_load_store_ops): Likewise.
27780 * gimple.c (get_base_loadstore): New function.
27781 (walk_stmt_load_store_addr_ops): Likewise.
27782 (walk_stmt_load_store_ops): Likewise.
27783 * ipa-pure-const.c (check_op): Simplify.
27784 (check_load, check_store): New functions.
27785 (check_stmt): Use walk_stmt_load_store_ops.
27786 * ipa-reference.c (mark_load): Adjust signature.
27787 (mark_store): Likewise.
27788 (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
27789
27790 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
27791
27792 * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
27793 (plugin_info): New.
27794 * opts.c (common_handle_option): Don't call print_version.
27795 * plugin.c (plugin_name_args): Add version.
27796 (register_plugin_info): New.
27797 (register_callback): Handle PLUGIN_INFO.
27798 (try_init_one_plugin): New.
27799 (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
27800 if failed to init.
27801 (finalize_one_plugin): New.
27802 (finalize_plugins): New.
27803 (print_one_plugin): New.
27804 (print_plugins_versions): New.
27805 * plugin.h (print_plugins_versions): New.
27806 (finalize_plugins): New.
27807 * toplev.c (compile_file): Don't call initialize_plugins.
27808 (print_version): Call print_plugins_versions.
27809 (toplev_main): Call initialize_plugins. Print version if needed.
27810 Call finalize_plugins.
27811
27812 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
27813
27814 * common.opt (fversion): New.
27815 * gcc.c (print_version): New.
27816 (process_command): Don't print the version. Just set print_version.
27817 (main): Print version. Call subprocesses if print_version and
27818 verbose_flag are set.
27819 * opts.c (common_handle_option): Handle OPT_fversion.
27820
27821 2009-04-16 Richard Guenther <rguenther@suse.de>
27822 Ira Rosen <irar@il.ibm.com>
27823
27824 PR tree-optimization/39698
27825 * tree-vect-loop.c (get_initial_def_for_reduction): Use the
27826 type of the reduction variable. Only generate the def if
27827 it is needed.
27828
27829 * omp-low.c (expand_omp_for_generic): When converting to a pointer
27830 make sure to first convert to an integer of the same precision.
27831 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
27832 the type of the evolution correctly in computing the new
27833 induction variable base.
27834
27835 2009-04-16 Richard Guenther <rguenther@suse.de>
27836
27837 PR middle-end/39625
27838 * tree-cfg.c (make_blocks): Split statements with to-be
27839 abnormal SSA names on the lhs.
27840
27841 2009-04-16 Paolo Bonzini <bonzini@gnu.org>
27842
27843 * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
27844 Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
27845 * c-typeck.c (really_start_incremental_init): Likewise.
27846 * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
27847 (TARGET_INITIALIZER): Remove it.
27848 * target.h (struct target): Remove vector_opaque_p.
27849 * tree.c (build_opaque_vector_type): New.
27850 * tree.h (TYPE_VECTOR_OPAQUE): New.
27851 (build_opaque_vector_type): Declare.
27852 * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
27853 * config/rs6000/rs6000.c (build_opaque_vector_type,
27854 rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
27855 (rs6000_init_builtins): Use build_opaque_vector_type for
27856 opaque_V4SI_type_node.
27857
27858 2009-04-15 Catherine Moore <clm@codesourcery.com>
27859
27860 * debug.h (set_name): Declare.
27861 * dwarf2out.c (dwarf2out_set_name): Declare.
27862 (dwarf2_debug_hooks): Add set_name.
27863 (find_AT_string): New.
27864 (add_AT_string): Call find_AT_string.
27865 (dwarf2out_set_name): New.
27866 * cp/decl.c (grokdeclarator): Call set_name.
27867 * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
27868 * debug.c (do_nothing_debug_hooks): Likewise.
27869 * dbxout.c (dbx_debug_hooks): Likewise.
27870 * sdbout.c (sdb_debug_hooks): Likewise.
27871
27872 2009-04-15 Michael Eager <eager@eagercon.com>
27873
27874 * config/rs6000/rs6000.c (rs6000_function_value): Set function return
27875 reg for single-precision FPU.
27876 * config/rs6000/rs6000.md (movsi_internal1): Only for
27877 !TARGET_SINGLE_FPU.
27878 (movsi_internal1_single): New. Add pattern to move SI values to/from
27879 single-precision FP regs.
27880
27881 2009-04-15 Richard Guenther <rguenther@suse.de>
27882
27883 * omp-low.c (lower_rec_input_clauses): Build correct address
27884 expressions.
27885 (expand_omp_for_generic): Fix multiplication type.
27886 * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
27887 (generate_memset_zero): Fix types.
27888 * tree-profile.c (prepare_instrumented_value): Correctly
27889 widen a pointer.
27890
27891 2009-04-15 Ian Lance Taylor <iant@google.com>
27892
27893 * c.opt (Wenum-compare): Enable for C and Objc. Initialize to -1.
27894 * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
27895 for -Wall and for -Wc++-compat.
27896 (c_common_post_options): For C++, set warn_enum_compare if not
27897 already set.
27898 * c-tree.h (struct c_expr): Add field original_type.
27899 (build_external_ref): Update declaration.
27900 * c-parser.c (c_parser_braced_init): Set original_type.
27901 (c_parser_initelt): Likewise.
27902 (c_parser_expr_no_commas): Likewise.
27903 (c_parser_conditional_expression): Likewise.
27904 (c_parser_cast_expression): Likewise.
27905 (c_parser_unary_expression): Likewise. Pull setting of
27906 original_code to top of function.
27907 (c_parser_sizeof_expression): Set original_type.
27908 (c_parser_alignof_expression): Likewise.
27909 (c_parser_postfix_expression): Likewise. Pull setting of
27910 original_code to top of function.
27911 (c_parser_postfix_expression_after_paren_type): Set original_type.
27912 (c_parser_postfix_expression_after_primary): Likewise.
27913 (c_parser_expression): Likewise.
27914 * c-typeck.c (build_external_ref): Add type parameter. Change all
27915 callers.
27916 (c_expr_sizeof_expr): Set original_type field.
27917 (parser_build_unary_op): Likewise.
27918 (parser_build_binary_op): Likewise. Optionally warn about
27919 comparisons of enums of different types.
27920 (digest_init): Set original_type field.
27921 (really_start_incremental_init): Likewise.
27922 (push_init_level, pop_init_level): Likewise.
27923 * doc/invoke.texi (Warning Options): -Wenum-compare now
27924 supported in C.
27925
27926 2009-04-15 Richard Guenther <rguenther@suse.de>
27927
27928 * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
27929 out a necessary conversion.
27930 * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
27931 names we didn't value number.
27932 * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
27933
27934 2009-04-15 Richard Guenther <rguenther@suse.de>
27935
27936 PR tree-optimization/39764
27937 * tree-ssa-ccp.c (get_value): Canonicalize value with
27938 canonicalize_float_value.
27939
27940 2009-04-15 Jan Hubicka <jh@suse.cz>
27941
27942 * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
27943 Wrong version of patch.
27944
27945 2009-04-15 Jan Hubicka <jh@suse.cz>
27946
27947 * builtins.def (va_start, va_end, va_copy): Mark nothrow.
27948
27949 2009-04-15 Nathan Sidwell <nathan@codesourcery.com>
27950
27951 * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
27952 our distinct integral and vector types.
27953
27954 2009-04-15 Rafael Avila de Espindola <espindola@google.com>
27955
27956 * class.c (build_vtbl_ref_1): Remove call to assemble_external.
27957 * init.c (build_vtbl_address): Remove call to assemble_external.
27958
27959 2009-04-14 Daniel Jacobowitz <dan@codesourcery.com>
27960
27961 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
27962 output for other floating point modes.
27963
27964 2009-04-14 Diego Novillo <dnovillo@google.com>
27965
27966 * diagnostic.c (diagnostic_report_diagnostic): Do not
27967 warn about loaded plugins for DK_ERROR and DK_WARNING.
27968 * c-decl.c (declspecs_add_type): Move call to
27969 invoke_plugin_callbacks ...
27970 * c-parser.c (c_parser_declspecs): ... here.
27971 * plugin.c (dump_active_plugins): Tidy output.
27972
27973 2009-04-14 Diego Novillo <dnovillo@google.com>
27974 Le-Chun Wu <lcwu@google.com>
27975
27976 * configure.ac: Add --enable-plugin support.
27977 Define ENABLE_PLUGIN and PLUGINLIBS when specified.
27978 * Makefile.in (PLUGIN_H): Define.
27979 Export ENABLE_PLUGIN and GMPINC to site.exp.
27980 Add PLUGINLIBS to link command.
27981 Add/modify dependencies for plugin.o and files including plugin.h.
27982 (plugin.o): New.
27983 * config.in: Regenerate.
27984
27985 * opts.c (common_handle_option): Handle OPT_fplugin_ and
27986 OPT_fplugin_arg_.
27987
27988 2009-04-14 Le-Chun Wu <lcwu@google.com>
27989
27990 * tree-pass.h (register_one_dump_file): Add a prototype for
27991 register_one_dump_file.
27992 * toplev.c (compile_file): Call initialize_plugins.
27993 (do_compile): Call invoke_plugin_callbacks.
27994 (toplev_main): Call invoke_plugin_callbacks.
27995 * common.opt: Add -fplugin= and -fplugin-arg-.
27996 * gcc-plugin.h: New public header file for plugins to include.
27997 * plugin.c: New source file.
27998 * plugin.h: New internal header file.
27999 * passes.c (register_one_dump_file): Make it external.
28000
28001 * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
28002
28003 2009-04-14 Diego Novillo <dnovillo@google.com>
28004
28005 * doc/plugins.texi: New.
28006 * doc/gccint.texi: Add reference to Plugins chapter.
28007 * doc/invoke.texi: Document -fplugin and -fplugin-arg
28008 * diagnostic.c (diagnostic_report_diagnostic): Warn about
28009 loaded plugins, if any.
28010 * timevar.def (TV_PLUGIN_INIT): Define.
28011 (TV_PLUGIN_RUN): Define.
28012 * plugin.c: Include timevar.h
28013 (plugins_active_p): New.
28014 (dump_active_plugins): New.
28015 (debug_active_plugins): New.
28016
28017 2009-04-14 Joseph Myers <joseph@codesourcery.com>
28018
28019 * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
28020 library paths.
28021 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
28022
28023 2009-04-14 Kazu Hirata <kazu@codesourcery.com>
28024
28025 * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
28026 the same as a minus without a shift.
28027
28028 2009-04-14 Nick Clifton <nickc@redhat.com>
28029
28030 * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
28031 comparisons with small integers will always produce a short
28032 branch.
28033
28034 2009-04-14 Rafael Avila de Espindola <espindola@google.com>
28035
28036 Merge:
28037 2008-12-19 Diego Novillo <dnovillo@google.com>
28038
28039 * cgraph.c (dump_cgraph_node): Show memory address of NODE.
28040
28041 2009-04-14 Richard Guenther <rguenther@suse.de>
28042
28043 * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
28044 verification.
28045 (verify_gimple_assign_binary): Likewise. Handle shifts and
28046 rotates correctly.
28047 (verify_gimple_phi): Print the mismatched argument position.
28048 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
28049 Fix types.
28050 (vect_update_init_of_dr): Likewise.
28051 * matrix-reorg.c (transform_access_sites): Do what the
28052 comment suggests.
28053 * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
28054
28055 2009-04-13 Michael Eager <eager@eagercon.com>
28056
28057 * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
28058 _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
28059 * config/rs6000/xilinx.h: New. Spec for powerpc-xilinx-eabi
28060 * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
28061 remove duplicate config
28062
28063 2009-04-13 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
28064
28065 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
28066 file_name:line_number type locator of the call site.
28067
28068 2009-04-13 Vladimir Makarov <vmakarov@redhat.com>
28069
28070 * genautomata.c: Put blank after comma.
28071 (automaton_decls): New.
28072 (struct unit_usage): Add comments to member next.
28073 (store_alt_unit_usage): Keep the list ordered.
28074 (unit_present_on_list_p, equal_alternatives_p): New.
28075 (check_regexp_units_distribution): Check units distribution
28076 correctness correctly.
28077 (main): Don't write automata if error is found. Return correct
28078 exit code.
28079
28080 * config/m68k/cf.md (cfv4_ds): Remove.
28081 (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
28082 cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
28083
28084 * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
28085 power4-load-ext, power4-store, power4-store-update,
28086 power4-fpstore, power4-fpstore-update, power4-two, power4-three,
28087 power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
28088 power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
28089 power4-sqrt, power4-isync): Modify reservation to make correct
28090 unit distribution to automata.
28091
28092 * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
28093 power5-store-update, power5-two, power5-three, power5-lmul,
28094 power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
28095
28096 2009-04-13 Adam Nemet <anemet@caviumnetworks.com>
28097
28098 * except.c (pass_set_nothrow_function_flags): Set name and add
28099 TODO_dump_func.
28100 (set_nothrow_function_flags): Mention in the dump file when
28101 changing a function to nothrow.
28102
28103 2009-04-13 Ozkan Sezer <sezeroz@gmail.com>
28104
28105 PR/39066
28106 * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
28107 instead of unsigned long.
28108
28109 2009-04-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28110
28111 * config/arm/arm.c (return_used_this_function): Remove.
28112 (arm_output_function_prologue): Remove use of
28113 return_used_this_function.
28114 (output_return_instruction): Replace use of
28115 return_used_this_function
28116 by cfun->machine->return_used_this_function.
28117 (arm_output_epilogue): Likewise.
28118 (arm_output_function_epilogue): Likewise.
28119 (thumb_unexpanded_epilogue): Likewise.
28120 * config/arm/arm.h (struct machine_function):
28121 New member return_used_this_function.
28122
28123 2009-04-12 Mark Mitchell <mark@codesourcery.com>
28124
28125 * doc/install.texi: Correct description of default directory for
28126 --with-gxx-include-dir.
28127
28128 2009-04-12 Eric Botcazou <ebotcazou@adacore.com>
28129
28130 * fold-const.c (build_range_check): Properly deal with enumeral and
28131 boolean base types.
28132
28133 2009-04-12 Steven Bosscher <steven@gcc.gnu.org>
28134
28135 * doc/invoke.texi (max_gcse_passes): Remove documentation.
28136 * params.def (PARAM_MAX_GCSE_PASSES): Remove.
28137 * params.h (MAX_GCSE_PASSES): Remove.
28138 * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
28139 in sequence. Remove ability to run multiple passes.
28140 (bypass_jumps): Report run as third CPROP pass.
28141
28142 2009-04-12 Adam Nemet <anemet@caviumnetworks.com>
28143
28144 PR middle-end/39651
28145 * except.c (can_throw_external): Look at each insn in a SEQUENCE
28146 when deciding whether the whole SEQUENCE can throw.
28147
28148 2009-04-12 Uros Bizjak <ubizjak@gmail.com>
28149
28150 PR target/39740
28151 * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
28152 offseted label references.
28153
28154 2009-04-11 Jan Hubicka <jh@suse.cz>
28155
28156 * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
28157
28158 2009-04-11 Richard Guenther <rguenther@suse.de>
28159
28160 PR middle-end/39732
28161 * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
28162 return variables as TREE_ADDRESSABLE.
28163
28164 2009-04-11 Richard Guenther <rguenther@suse.de>
28165
28166 PR tree-optimization/39713
28167 * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
28168 reference trees have SSA_NAME operands.
28169
28170 2009-04-11 Richard Guenther <rguenther@suse.de>
28171
28172 PR c/39712
28173 * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
28174 address expressions.
28175
28176 2009-04-11 Dave Korn <dave.korn.cygwin@gmail.com>
28177
28178 * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE): Update to
28179 match changes in Cygwin 1.7
28180 (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
28181 UINT_FAST16_TYPE, UINT_FAST32_TYPE): Likewise.
28182
28183 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
28184
28185 PR tree-optimization/39701
28186 * doc/invoke.texi (Optimization Options): Document change in
28187 meaning and initialization of -fdelete-null-pointer-checks.
28188
28189 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
28190
28191 PR middle-end/39701
28192 * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
28193
28194 * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
28195 here.
28196
28197 * doc/invoke.texi: Update -fdelete-null-pointer-checks.
28198
28199 2009-04-10 Chao-ying Fu <fu@mips.com>
28200
28201 * doc/tm.texi (Instruction Output): Document
28202 TARGET_ASM_FINAL_POSTSCAN_INSN.
28203 * target.h (final_postscan_insn): New field in asm_out.
28204 * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
28205 (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
28206 * final.c (final_scan_insn): Call
28207 targetm.asm_out.final_postscan_insn after outputting
28208 an asm macro and a normal instruction.
28209
28210 * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
28211 * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
28212 * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
28213 (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
28214 (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
28215
28216 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
28217
28218 PR middle-end/39701
28219 * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
28220 variables as non-NULL even with -fdelete-null-pointer-checks.
28221
28222 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
28223
28224 * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
28225
28226 2009-04-09 H.J. Lu <hongjiu.lu@intel.com>
28227
28228 PR target/39678
28229 * config/i386/i386.c (classify_argument): Handle SCmode with
28230 (bit_offset % 64) != 0.
28231
28232 2009-04-09 Sandra Loosemore <sandra@codesourcery.com>
28233
28234 * doc/invoke.texi (Optimize Options): Add cross-reference to
28235 -Q --help=optimizers examples.
28236
28237 2009-04-10 Ben Elliston <bje@au.ibm.com>
28238
28239 PR target/36800
28240 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
28241 regalign for the reg == fpr and TDmode case.
28242
28243 2009-04-09 David Ayers <ayers@fsfe.org>
28244
28245 PR objc/29200
28246 * objc/objc-act.c (warn_with_method): Remove helper function.
28247 (check_duplicates): Call warning and inform directly.
28248 (really_start_method): Likewise.
28249
28250 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
28251
28252 * expmed.c (expand_divmod): Always use a comparison for a division
28253 by a large unsigned integer.
28254
28255 * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
28256 for things others than variables or functions as nonzero.
28257
28258 2009-04-09 Nick Clifton <nickc@redhat.com>
28259
28260 * unwind-compat.c: Change copyright header to refer to version
28261 3 of the GNU General Public License with version 3.1 of the
28262 GCC Runtime Library Exception and to point readers at the
28263 COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
28264 * config/alpha/crtfastmath.c: Likewise.
28265 * config/alpha/linux-unwind.h: Likewise.
28266 * config/alpha/qrnnd.asm: Likewise.
28267 * config/alpha/vms-crt0-64.c: Likewise.
28268 * config/alpha/vms-crt0.c: Likewise.
28269 * config/alpha/vms-dwarf2.asm: Likewise.
28270 * config/alpha/vms-dwarf2eh.asm: Likewise.
28271 * config/alpha/vms-psxcrt0-64.c: Likewise.
28272 * config/alpha/vms-psxcrt0.c: Likewise.
28273 * config/alpha/vms_tramp.asm: Likewise.
28274 * config/arc/initfini.c: Likewise.
28275 * config/arc/lib1funcs.asm: Likewise.
28276 * config/arm/bpabi-v6m.S: Likewise.
28277 * config/arm/bpabi.S: Likewise.
28278 * config/arm/bpabi.c: Likewise.
28279 * config/arm/crti.asm: Likewise.
28280 * config/arm/crtn.asm: Likewise.
28281 * config/arm/ieee754-df.S: Likewise.
28282 * config/arm/ieee754-sf.S: Likewise.
28283 * config/arm/lib1funcs.asm: Likewise.
28284 * config/arm/libunwind.S: Likewise.
28285 * config/arm/linux-atomic.c: Likewise.
28286 * config/arm/mmintrin.h: Likewise.
28287 * config/arm/pr-support.c: Likewise.
28288 * config/arm/unaligned-funcs.c: Likewise.
28289 * config/arm/unwind-arm.c: Likewise.
28290 * config/arm/unwind-arm.h: Likewise.
28291 * config/avr/libgcc.S: Likewise.
28292 * config/bfin/crti.s: Likewise.
28293 * config/bfin/crtlibid.s: Likewise.
28294 * config/bfin/crtn.s: Likewise.
28295 * config/bfin/lib1funcs.asm: Likewise.
28296 * config/bfin/linux-unwind.h: Likewise.
28297 * config/cris/arit.c: Likewise.
28298 * config/cris/cris_abi_symbol.c: Likewise.
28299 * config/darwin-64.c: Likewise.
28300 * config/darwin-crt2.c: Likewise.
28301 * config/darwin-crt3.c: Likewise.
28302 * config/darwin.h: Likewise.
28303 * config/dbxelf.h: Likewise.
28304 * config/dfp-bit.c: Likewise.
28305 * config/dfp-bit.h: Likewise.
28306 * config/elfos.h: Likewise.
28307 * config/fixed-bit.c: Likewise.
28308 * config/fixed-bit.h: Likewise.
28309 * config/fp-bit.c: Likewise.
28310 * config/fp-bit.h: Likewise.
28311 * config/fr30/crti.asm: Likewise.
28312 * config/fr30/crtn.asm: Likewise.
28313 * config/fr30/lib1funcs.asm: Likewise.
28314 * config/freebsd-spec.h: Likewise.
28315 * config/frv/cmovd.c: Likewise.
28316 * config/frv/cmovh.c: Likewise.
28317 * config/frv/cmovw.c: Likewise.
28318 * config/frv/frvbegin.c: Likewise.
28319 * config/frv/frvend.c: Likewise.
28320 * config/frv/lib1funcs.asm: Likewise.
28321 * config/glibc-stdint.h: Likewise.
28322 * config/h8300/clzhi2.c: Likewise.
28323 * config/h8300/crti.asm: Likewise.
28324 * config/h8300/crtn.asm: Likewise.
28325 * config/h8300/ctzhi2.c: Likewise.
28326 * config/h8300/fixunssfsi.c: Likewise.
28327 * config/h8300/lib1funcs.asm: Likewise.
28328 * config/h8300/parityhi2.c: Likewise.
28329 * config/h8300/popcounthi2.c: Likewise.
28330 * config/i386/ammintrin.h: Likewise.
28331 * config/i386/att.h: Likewise.
28332 * config/i386/avxintrin.h: Likewise.
28333 * config/i386/biarch64.h: Likewise.
28334 * config/i386/bmmintrin.h: Likewise.
28335 * config/i386/cpuid.h: Likewise.
28336 * config/i386/cross-stdarg.h: Likewise.
28337 * config/i386/crtfastmath.c: Likewise.
28338 * config/i386/crtprec.c: Likewise.
28339 * config/i386/cygming-crtbegin.c: Likewise.
28340 * config/i386/cygming-crtend.c: Likewise.
28341 * config/i386/cygwin.asm: Likewise.
28342 * config/i386/emmintrin.h: Likewise.
28343 * config/i386/gmm_malloc.h: Likewise.
28344 * config/i386/gthr-win32.c: Likewise.
28345 * config/i386/i386.h: Likewise.
28346 * config/i386/immintrin.h: Likewise.
28347 * config/i386/linux-unwind.h: Likewise.
28348 * config/i386/linux64.h: Likewise.
28349 * config/i386/mm3dnow.h: Likewise.
28350 * config/i386/mmintrin-common.h: Likewise.
28351 * config/i386/mmintrin.h: Likewise.
28352 * config/i386/nmmintrin.h: Likewise.
28353 * config/i386/pmm_malloc.h: Likewise.
28354 * config/i386/pmmintrin.h: Likewise.
28355 * config/i386/smmintrin.h: Likewise.
28356 * config/i386/sol2-c1.asm: Likewise.
28357 * config/i386/sol2-ci.asm: Likewise.
28358 * config/i386/sol2-cn.asm: Likewise.
28359 * config/i386/sol2-gc1.asm: Likewise.
28360 * config/i386/tmmintrin.h: Likewise.
28361 * config/i386/unix.h: Likewise.
28362 * config/i386/w32-unwind.h: Likewise.
28363 * config/i386/wmmintrin.h: Likewise.
28364 * config/i386/x86-64.h: Likewise.
28365 * config/i386/x86intrin.h: Likewise.
28366 * config/i386/xmmintrin.h: Likewise.
28367 * config/ia64/crtbegin.asm: Likewise.
28368 * config/ia64/crtend.asm: Likewise.
28369 * config/ia64/crtfastmath.c: Likewise.
28370 * config/ia64/crti.asm: Likewise.
28371 * config/ia64/crtn.asm: Likewise.
28372 * config/ia64/fde-glibc.c: Likewise.
28373 * config/ia64/lib1funcs.asm: Likewise.
28374 * config/ia64/linux-unwind.h: Likewise.
28375 * config/ia64/quadlib.c: Likewise.
28376 * config/ia64/unwind-ia64.c: Likewise.
28377 * config/linux.h: Likewise.
28378 * config/m32c/m32c-lib1.S: Likewise.
28379 * config/m32c/m32c-lib2-trapv.c: Likewise.
28380 * config/m32c/m32c-lib2.c: Likewise.
28381 * config/m32r/initfini.c: Likewise.
28382 * config/m68hc11/larith.asm: Likewise.
28383 * config/m68hc11/m68hc11-crt0.S: Likewise.
28384 * config/m68k/cf.md: Likewise.
28385 * config/m68k/crti.s: Likewise.
28386 * config/m68k/crtn.s: Likewise.
28387 * config/m68k/lb1sf68.asm: Likewise.
28388 * config/m68k/linux-unwind.h: Likewise.
28389 * config/mcore/crti.asm: Likewise.
28390 * config/mcore/crtn.asm: Likewise.
28391 * config/mcore/lib1.asm: Likewise.
28392 * config/mips/linux-unwind.h: Likewise.
28393 * config/mips/loongson.h: Likewise.
28394 * config/mips/mips16.S: Likewise.
28395 * config/mmix/crti.asm: Likewise.
28396 * config/mmix/crtn.asm: Likewise.
28397 * config/pa/fptr.c: Likewise.
28398 * config/pa/hpux-unwind.h: Likewise.
28399 * config/pa/lib2funcs.asm: Likewise.
28400 * config/pa/linux-atomic.c: Likewise.
28401 * config/pa/linux-unwind.h: Likewise.
28402 * config/pa/milli64.S: Likewise.
28403 * config/pa/quadlib.c: Likewise.
28404 * config/pa/stublib.c: Likewise.
28405 * config/picochip/libgccExtras/adddi3.asm: Likewise.
28406 * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
28407 * config/picochip/libgccExtras/ashlsi3.c: Likewise.
28408 * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
28409 * config/picochip/libgccExtras/ashrsi3.c: Likewise.
28410 * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
28411 * config/picochip/libgccExtras/divmod15.asm: Likewise.
28412 * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
28413 * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
28414 * config/picochip/libgccExtras/longjmp.asm: Likewise.
28415 * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
28416 * config/picochip/libgccExtras/lshrsi3.c: Likewise.
28417 * config/picochip/libgccExtras/parityhi2.asm: Likewise.
28418 * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
28419 * config/picochip/libgccExtras/setjmp.asm: Likewise.
28420 * config/picochip/libgccExtras/subdi3.asm: Likewise.
28421 * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
28422 * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
28423 * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
28424 * config/rs6000/750cl.h: Likewise.
28425 * config/rs6000/altivec.h: Likewise.
28426 * config/rs6000/biarch64.h: Likewise.
28427 * config/rs6000/crtresfpr.asm: Likewise.
28428 * config/rs6000/crtresgpr.asm: Likewise.
28429 * config/rs6000/crtresxfpr.asm: Likewise.
28430 * config/rs6000/crtresxgpr.asm: Likewise.
28431 * config/rs6000/crtsavfpr.asm: Likewise.
28432 * config/rs6000/crtsavgpr.asm: Likewise.
28433 * config/rs6000/darwin-asm.h: Likewise.
28434 * config/rs6000/darwin-fallback.c: Likewise.
28435 * config/rs6000/darwin-fpsave.asm: Likewise.
28436 * config/rs6000/darwin-ldouble.c: Likewise.
28437 * config/rs6000/darwin-tramp.asm: Likewise.
28438 * config/rs6000/darwin-unwind.h: Likewise.
28439 * config/rs6000/darwin-vecsave.asm: Likewise.
28440 * config/rs6000/darwin-world.asm: Likewise.
28441 * config/rs6000/e500crtres32gpr.asm: Likewise.
28442 * config/rs6000/e500crtres64gpr.asm: Likewise.
28443 * config/rs6000/e500crtres64gprctr.asm: Likewise.
28444 * config/rs6000/e500crtrest32gpr.asm: Likewise.
28445 * config/rs6000/e500crtrest64gpr.asm: Likewise.
28446 * config/rs6000/e500crtresx32gpr.asm: Likewise.
28447 * config/rs6000/e500crtresx64gpr.asm: Likewise.
28448 * config/rs6000/e500crtsav32gpr.asm: Likewise.
28449 * config/rs6000/e500crtsav64gpr.asm: Likewise.
28450 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
28451 * config/rs6000/e500crtsavg32gpr.asm: Likewise.
28452 * config/rs6000/e500crtsavg64gpr.asm: Likewise.
28453 * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
28454 * config/rs6000/eabi-ci.asm: Likewise.
28455 * config/rs6000/eabi-cn.asm: Likewise.
28456 * config/rs6000/eabi.asm: Likewise.
28457 * config/rs6000/linux-unwind.h: Likewise.
28458 * config/rs6000/linux64.h: Likewise.
28459 * config/rs6000/paired.h: Likewise.
28460 * config/rs6000/paired.md: Likewise.
28461 * config/rs6000/ppc64-fp.c: Likewise.
28462 * config/rs6000/ppu_intrinsics.h: Likewise.
28463 * config/rs6000/rs6000.h: Likewise.
28464 * config/rs6000/si2vmx.h: Likewise.
28465 * config/rs6000/sol-ci.asm: Likewise.
28466 * config/rs6000/sol-cn.asm: Likewise.
28467 * config/rs6000/spe.h: Likewise.
28468 * config/rs6000/spu2vmx.h: Likewise.
28469 * config/rs6000/sysv4.h: Likewise.
28470 * config/rs6000/tramp.asm: Likewise.
28471 * config/rs6000/vec_types.h: Likewise.
28472 * config/s390/linux-unwind.h: Likewise.
28473 * config/s390/tpf-unwind.h: Likewise.
28474 * config/score/crti.asm: Likewise.
28475 * config/score/crtn.asm: Likewise.
28476 * config/sh/crt1.asm: Likewise.
28477 * config/sh/crti.asm: Likewise.
28478 * config/sh/crtn.asm: Likewise.
28479 * config/sh/divtab-sh4-300.c: Likewise.
28480 * config/sh/divtab-sh4.c: Likewise.
28481 * config/sh/divtab.c: Likewise.
28482 * config/sh/lib1funcs-4-300.asm: Likewise.
28483 * config/sh/lib1funcs-Os-4-200.asm: Likewise.
28484 * config/sh/lib1funcs.asm: Likewise.
28485 * config/sh/lib1funcs.h: Likewise.
28486 * config/sh/linux-atomic.asm: Likewise.
28487 * config/sh/linux-unwind.h: Likewise.
28488 * config/sh/shmedia.h: Likewise.
28489 * config/sh/sshmedia.h: Likewise.
28490 * config/sh/ushmedia.h: Likewise.
28491 * config/sparc/crtfastmath.c: Likewise.
28492 * config/sparc/linux-unwind.h: Likewise.
28493 * config/sparc/sol2-c1.asm: Likewise.
28494 * config/sparc/sol2-ci.asm: Likewise.
28495 * config/sparc/sol2-cn.asm: Likewise.
28496 * config/spu/divmodti4.c: Likewise.
28497 * config/spu/divv2df3.c: Likewise.
28498 * config/spu/float_disf.c: Likewise.
28499 * config/spu/float_unsdidf.c: Likewise.
28500 * config/spu/float_unsdisf.c: Likewise.
28501 * config/spu/float_unssidf.c: Likewise.
28502 * config/spu/mfc_multi_tag_release.c: Likewise.
28503 * config/spu/mfc_multi_tag_reserve.c: Likewise.
28504 * config/spu/mfc_tag_release.c: Likewise.
28505 * config/spu/mfc_tag_reserve.c: Likewise.
28506 * config/spu/mfc_tag_table.c: Likewise.
28507 * config/spu/multi3.c: Likewise.
28508 * config/spu/spu_internals.h: Likewise.
28509 * config/spu/spu_intrinsics.h: Likewise.
28510 * config/spu/spu_mfcio.h: Likewise.
28511 * config/spu/vec_types.h: Likewise.
28512 * config/spu/vmx2spu.h: Likewise.
28513 * config/stormy16/stormy16-lib2.c: Likewise.
28514 * config/svr4.h: Likewise.
28515 * config/sync.c: Likewise.
28516 * config/v850/lib1funcs.asm: Likewise.
28517 * config/vxlib-tls.c: Likewise.
28518 * config/vxlib.c: Likewise.
28519 * config/vxworks-dummy.h: Likewise.
28520 * config/xtensa/crti.asm: Likewise.
28521 * config/xtensa/crtn.asm: Likewise.
28522 * config/xtensa/ieee754-df.S: Likewise.
28523 * config/xtensa/ieee754-sf.S: Likewise.
28524 * config/xtensa/lib1funcs.asm: Likewise.
28525 * config/xtensa/lib2funcs.S: Likewise.
28526 * config/xtensa/linux-unwind.h: Likewise.
28527 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
28528 * config/xtensa/unwind-dw2-xtensa.h: Likewise.
28529 * coretypes.h: Likewise.
28530 * crtstuff.c: Likewise.
28531 * defaults.h: Likewise.
28532 * dwarf2.h: Likewise.
28533 * emutls.c: Likewise.
28534 * gbl-ctors.h: Likewise.
28535 * gcov-io.h: Likewise.
28536 * ginclude/float.h: Likewise.
28537 * ginclude/iso646.h: Likewise.
28538 * ginclude/stdarg.h: Likewise.
28539 * ginclude/stdbool.h: Likewise.
28540 * ginclude/stddef.h: Likewise.
28541 * ginclude/stdfix.h: Likewise.
28542 * ginclude/stdint-gcc.h: Likewise.
28543 * ginclude/tgmath.h: Likewise.
28544 * gthr-aix.h: Likewise.
28545 * gthr-dce.h: Likewise.
28546 * gthr-gnat.c: Likewise.
28547 * gthr-gnat.h: Likewise.
28548 * gthr-lynx.h: Likewise.
28549 * gthr-mipssde.h: Likewise.
28550 * gthr-nks.h: Likewise.
28551 * gthr-posix.c: Likewise.
28552 * gthr-posix.h: Likewise.
28553 * gthr-posix95.h: Likewise.
28554 * gthr-rtems.h: Likewise.
28555 * gthr-single.h: Likewise.
28556 * gthr-solaris.h: Likewise.
28557 * gthr-tpf.h: Likewise.
28558 * gthr-vxworks.h: Likewise.
28559 * gthr-win32.h: Likewise.
28560 * gthr.h: Likewise.
28561 * libgcc2.c: Likewise.
28562 * libgcc2.h: Likewise.
28563 * libgcov.c: Likewise.
28564 * tsystem.h: Likewise.
28565 * typeclass.h: Likewise.
28566 * unwind-c.c: Likewise.
28567 * unwind-compat.h: Likewise.
28568 * unwind-dw2-fde-compat.c: Likewise.
28569 * unwind-dw2-fde-darwin.c: Likewise.
28570 * unwind-dw2-fde-glibc.c: Likewise.
28571 * unwind-dw2-fde.c: Likewise.
28572 * unwind-dw2-fde.h: Likewise.
28573 * unwind-dw2.c: Likewise.
28574 * unwind-dw2.h: Likewise.
28575 * unwind-generic.h: Likewise.
28576 * unwind-pe.h: Likewise.
28577 * unwind-sjlj.c: Likewise.
28578 * unwind.inc: Likewise.
28579 * config/arm/neon-gen.ml: Change generated copyright header to
28580 refer to version 3 of the GNU General Public License with
28581 version 3.1 of the GCC Runtime Library Exception and to point
28582 readers at the COPYING3 and COPYING3.RUNTIME files and the
28583 FSF's license web page.
28584 * config/arm/arm_neon.h: Regenerate.
28585
28586 2009-04-09 Jakub Jelinek <jakub@redhat.com>
28587
28588 * config/cris/cris.md: Change copyright header to refer to version
28589 3 of the GNU General Public License.
28590 * doc/install.texi2html: Change copyright header to refer to version
28591 3 of the GNU General Public License and to point readers at the
28592 COPYING3 file and the FSF's license web page.
28593 * config/vax/linux.h: Likewise.
28594
28595 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
28596
28597 * config/i386/i386.md (cmpcc): New.
28598 * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
28599 (sync_compare_and_swap_cc*): Delete.
28600
28601 * config/s390/s390.c (s390_compare_emitted): Remove.
28602 (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
28603 s390_compare_emitted used to be handled. Assert that modes match.
28604 (s390_emit_compare_and_swap): Use s390_emit_compare, do not
28605 refer to sync_compare_and_swap_ccsi.
28606 * config/s390/s390.h (s390_compare_emitted): Remove.
28607 * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
28608 instead of s390_compare_emitted.
28609 (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
28610 instead of s390_compare_emitted.
28611 * config/s390/s390.md (cmpcc): New.
28612 (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
28613 CC_REGNUM, do not pretend it's set.
28614 (sync_compare_and_swap_cc*): Delete.
28615 * config/s390/predicates.md (cc_reg_operand): New.
28616
28617 * expr.c (sync_compare_and_swap_cc): Delete.
28618 * optabs.h (sync_compare_and_swap_cc): Delete.
28619 * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
28620 is being used with can_compare_p.
28621 (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
28622 (find_cc_set): New.
28623 (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
28624 look for a MODE_CC set instead. Use emit_store_flag.
28625 (expand_compare_and_swap_loop): Likewise, with some additional
28626 complication to avoid a force_reg when useless. Use
28627 emit_cmp_and_jump_insns.
28628 * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
28629 * doc/md.texi (sync_compare_and_swap_cc): Merge with
28630 sync_compare_and_swap documentation.
28631
28632 2009-04-09 Jan Hubicka <jh@suse.cz>
28633
28634 * except.c (find_prev_try): Break out from ....
28635 (duplicate_eh_regions): ... here; properly update prev_try pointers
28636 when duplication part of tree.
28637 (dump_eh_tree): Improve dumping.
28638 (verify_eh_region): New.
28639 (verify_eh_tree): Use it.
28640
28641 2009-04-06 Richard Guenther <rguenther@suse.de>
28642
28643 * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
28644 &ARRAY addresses by adjusting their types and prepending
28645 a conversion.
28646 * tree-cfg.c (verify_gimple_assign_single): Verify that
28647 addresses are correct.
28648
28649 2009-04-09 Richard Guenther <rguenther@suse.de>
28650
28651 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
28652 indices into an array reference if possible.
28653 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
28654 Fold POINTER_PLUS_EXPR statements with invariant address.
28655
28656 2009-04-09 Alan Modra <amodra@bigpond.net.au>
28657
28658 PR target/39634
28659 * config.gcc (powerpc64-*-linux*): Always build biarch.
28660
28661 2009-04-09 Joseph Myers <joseph@codesourcery.com>
28662
28663 PR c/39613
28664 * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
28665 it and pedwarn if this results in an INTEGER_CST.
28666
28667 2009-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
28668
28669 * doc/install.texi: Update minimum GMP version. Remove obsolete
28670 text in MPFR section.
28671
28672 2009-04-08 Jakub Jelinek <jakub@redhat.com>
28673
28674 * dwarf2out.c (class_scope_p): New static inline.
28675 (class_or_namespace_scope_p): Use it.
28676 (gen_variable_die): Use DW_TAG_member tag for static data member
28677 declarations instead of DW_TAG_variable.
28678
28679 PR middle-end/39573
28680 * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
28681 variables.
28682
28683 2009-04-08 Richard Guenther <rguenther@suse.de>
28684
28685 * tree-ssa-sccvn.c (valueize_refs): Do not continue to
28686 valueize random data.
28687
28688 2009-04-08 David Edelsohn <edelsohn@gnu.org>
28689
28690 * config.gcc (aix tm_file): Add aix-stdint.h.
28691 (aix tm clause use_gcc_stdint): Set to wrap.
28692 * config/rs6000/aix-stdint.h: New file.
28693
28694 2009-04-08 Richard Guenther <rguenther@suse.de>
28695
28696 PR middle-end/36291
28697 * tree-dfa.c (add_referenced_var): Do not recurse into
28698 global initializers.
28699 * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
28700 exposed variables.
28701 (fold_const_aggregate_ref): Likewise.
28702
28703 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
28704
28705 * recog.c (ordered_comparison_operator): New.
28706 * gensupport.c (std_preds): Add it.
28707 * doc/md.texi (Machine-Independent Predicates): Document it.
28708
28709 2009-04-08 Jan Hubicka <jh@suse.cz>
28710
28711 * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
28712 * function.h (rtl_eh): Remove exception_handler_label_map.
28713 * except.c (ehl_hash, ehl_eq, add_ehl_entry,
28714 remove_exception_handler_label, for_each_eh_label_1): Remove.
28715 (rtl_remove_unreachable_regions): Remove.
28716 (convert_from_eh_region_ranges): Do not remove unreachable regions.
28717 (find_exception_handler_labels): Don't build the hashtable.
28718 (maybe_remove_eh_handler): Remove.
28719 (for_each_eh_label): Rewrite to walk the tree.
28720 (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
28721 * except.h (maybe_remove_eh_handler): Remove.
28722 * passes.c (init_optimization_passes): Schedule second EH cleanup
28723 before out-of-ssa.
28724 * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
28725 cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
28726
28727 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
28728
28729 * genoutput.c (validate_optab_operands): New.
28730 (gen_insn, gen_expand): Call it.
28731
28732 * genflags.c (gen_insn): Detect misused iterators.
28733 (main): Pass line_no to gen_insn, exit with status 1 on error.
28734
28735 * genextract.c (line_no): Make global.
28736 (VEC_safe_set_locstr): Change assertion to error message.
28737 (main): Exit with status 1 on error.
28738
28739 2009-04-08 Joseph Myers <joseph@codesourcery.com>
28740
28741 PR c/39614
28742 PR c/39673
28743 * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
28744 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
28745 EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
28746 * c-convert.c (convert): Do not call fold on results of conversion
28747 functions when the result is a C_MAYBE_CONST_EXPR.
28748 * c-parser.c (c_parser_postfix_expression): Do not fold condition
28749 of __builtin_choose_expr.
28750 * c-typeck.c (remove_c_maybe_const_expr): New.
28751 (build_unary_op, build_conditional_expr, build_compound_expr,
28752 build_binary_op, c_objc_common_truthvalue_conversion): Call
28753 remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
28754 integer operands.
28755
28756 2009-04-08 Bingfeng Mei <bmei@broadcom.com>
28757
28758 * fold-const.c (const_binop): Combine two VECTOR_CST under operation
28759 CODE to produce a new one. Add a prototype to use fold_convert_const
28760
28761 2009-04-08 Danny Smith <dannysmith@users.sourceforge.net>
28762
28763 PR bootstrap/39660
28764 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
28765 mix declarations and code.
28766
28767 2009-04-08 Ben Elliston <bje@au.ibm.com>
28768
28769 * gcc.c: Replace `CC' with `GCC' throughout.
28770
28771 2009-04-07 H.J. Lu <hongjiu.lu@intel.com>
28772
28773 * doc/invoke.texi: Document Atom support.
28774
28775 2009-04-07 Jason Merrill <jason@redhat.com>
28776
28777 PR c++/25185
28778 * c-common.h, c-common.c: Add flag_pretty_templates.
28779 * c-opts.c (c_common_handle_option): Set it.
28780 * c.opt: Add -fno-pretty-templates.
28781 * doc/invoke.texi (C++ Dialect Options): Likewise.
28782
28783 2009-04-07 Uros Bizjak <ubizjak@gmail.com>
28784
28785 * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
28786 (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
28787 (ia64_expand_builtin): Likewise.
28788
28789 2009-04-07 Martin Jambor <mjambor@suse.cz>
28790
28791 * tree-ssa-alias.c (refs_may_alias_p_1): Check for
28792 is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
28793 ADDR_EXPRS are include too.
28794
28795 2009-04-07 Richard Guenther <rguenther@suse.de>
28796
28797 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
28798 decls are only used if passes as parameters or if they are
28799 local statics and the call is not to a builtin.
28800 (call_may_clobber_ref_p_1): Likewise.
28801
28802 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
28803
28804 * expr.c (do_store_flag): Remove last argument. Simplify code
28805 to avoid duplication of tests already done by can_compare_p.
28806 (expand_expr_real_1): Adjust caller.
28807
28808 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
28809
28810 * optabs.c (can_compare_p): Test the predicate of a
28811 cbranch and cstore pattern.
28812
28813 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
28814
28815 * expr.c (convert_move): Use emit_store_flag instead of
28816 "emulating" it.
28817
28818 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
28819
28820 * config/i386/i386.c (ix86_compare_emitted): Remove.
28821 (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
28822 ix86_compare_op0 like ix86_compare_emitted used to be handled.
28823 * config/i386/i386.h (ix86_compare_emitted): Remove.
28824 * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
28825 instead of ix86_compare_emitted.
28826 * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
28827
28828 2009-04-07 Andrew Stubbs <ams@codesourcery.com>
28829
28830 * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
28831 Add t-sysroot-suffix to tmake_file.
28832 * config/print-sysroot-suffix.sh: New file.
28833 * config/t-sysroot-suffix: New file.
28834
28835 2009-04-07 Ben Elliston <bje@au.ibm.com>
28836
28837 * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
28838 as the latter produces a warning when the target does not support
28839 infinity.
28840
28841 2009-04-07 Ben Elliston <bje@au.ibm.com>
28842
28843 * dfp.c: Replace type punning assignments with memcpy throughout.
28844 * Makefile.in (dfp.o-warn): Remove.
28845
28846 2009-04-07 Alan Modra <amodra@bigpond.net.au>
28847
28848 PR target/39634
28849 * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
28850 Include soft-fp/t-softfp after rs6000/t-linux64.
28851
28852 2009-04-06 Eric Botcazou <ebotcazou@adacore.com>
28853
28854 * stor-layout.c (set_sizetype): Use the full precision of their
28855 machine mode for bitsize types.
28856
28857 2009-04-06 H.J. Lu <hongjiu.lu@intel.com>
28858
28859 * config/i386/i386.md: Revert 2 accidental checkins.
28860
28861 2009-04-06 Joey Ye <joey.ye@intel.com>
28862 Xuepeng Guo <xuepeng.guo@intel.com>
28863 H.J. Lu <hongjiu.lu@intel.com>
28864
28865 Atom pipeline model, tuning and insn selection.
28866 * config.gcc (atom): Add atom config options and target.
28867
28868 * config/i386/atom.md: New.
28869
28870 * config/i386/i386.c (atom_cost): New cost.
28871 (m_ATOM): New macro flag.
28872 (initial_ix86_tune_features): Set m_ATOM.
28873 (x86_accumulate_outgoing_args): Likewise.
28874 (x86_arch_always_fancy_math_387): Likewise.
28875 (processor_target): Add Atom cost.
28876 (cpu_names): Add Atom cpu name.
28877 (override_options): Set Atom ISA.
28878 (ix86_issue_rate): New case PROCESSOR_ATOM.
28879 (ix86_adjust_cost): Likewise.
28880
28881 * config/i386/i386.h (TARGET_ATOM): New target macro.
28882 (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
28883 (TARGET_OPT_AGU): New target option.
28884 (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
28885 (processor_type): Add PROCESSOR_ATOM.
28886
28887 * config/i386/i386.md (cpu): Add new value "atom".
28888 (use_carry, movu): New attr.
28889 (atom.md): Include atom.md.
28890 (adddi3_carry_rex64): Set attr "use_carry".
28891 (addqi3_carry): Likewise.
28892 (addhi3_carry): Likewise.
28893 (addsi3_carry): Likewise.
28894 (*addsi3_carry_zext): Likewise.
28895 (subdi3_carry_rex64): Likewise.
28896 (subqi3_carry): Likewise.
28897 (subhi3_carry): Likewise.
28898 (subsi3_carry): Likewise.
28899 (x86_movdicc_0_m1_rex64): Likewise.
28900 (*x86_movdicc_0_m1_se): Likewise.
28901 (x86_movsicc_0_m1): Likewise.
28902 (*x86_movsicc_0_m1_se): Likewise.
28903 (*adddi_1_rex64): Emit add insn as much as possible.
28904 (*addsi_1): Likewise.
28905 (return_internal): Set atom_unit.
28906 (return_internal_long): Likewise.
28907 (return_pop_internal): Likewise.
28908 (*rcpsf2_sse): Set atom_sse_attr attr.
28909 (*qrt<mode>2_sse): Likewise.
28910 (*prefetch_sse): Likewise.
28911
28912 * config/i386/i386-c.c (ix86_target_macros_internal): New case
28913 PROCESSOR_ATOM.
28914 (ix86_target_macros_internal): Likewise.
28915
28916 * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
28917 (*prefetch_sse_rex): Likewise.
28918 (sse_rcpv4sf2): Likewise.
28919 (sse_vmrcpv4sf2): Likewise.
28920 (sse_sqrtv4sf2): Likewise.
28921 (<sse>_vmsqrt<mode>2): Likewise.
28922 (sse_ldmxcsr): Likewise.
28923 (sse_stmxcsr): Likewise.
28924 (*sse_sfence): Likewise.
28925 (sse2_clflush): Likewise.
28926 (*sse2_mfence): Likewise.
28927 (*sse2_lfence): Likewise.
28928 (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
28929 (<sse>_movup<ssemodesuffixf2c>): Likewise.
28930 (avx_movdqu<avxmodesuffix>): Likewise.
28931 (avx_lddqu<avxmodesuffix>): Likewise.
28932 (sse2_movntv2di): Change attr "type" to "ssemov".
28933 (sse2_movntsi): Likewise.
28934 (rsqrtv8sf2): Change attr "type" to "sseadd".
28935 (sse3_addsubv2df3): Set attr "atom_unit".
28936 (sse3_h<plusminus_insn>v4sf3): Likewise.
28937 (*sse2_pmaddwd): Likewise.
28938 (*vec_extractv2di_1_rex64): Likewise.
28939 (*vec_extractv2di_1_avx): Likewise.
28940 (sse2_psadbw): Likewise.
28941 (ssse3_phaddwv8hi3): Likewise.
28942 (ssse3_phaddwv4hi3): Likewise.
28943 (ssse3_phadddv4si3): Likewise.
28944 (ssse3_phadddv2si3): Likewise.
28945 (ssse3_phaddswv8hi3): Likewise.
28946 (ssse3_phaddswv4hi3): Likewise.
28947 (ssse3_phsubwv8hi3): Likewise.
28948 (ssse3_phsubwv4hi3): Likewise.
28949 (ssse3_phsubdv4si3): Likewise.
28950 (ssse3_phsubdv2si3): Likewise.
28951 (ssse3_phsubswv8hi3): Likewise.
28952 (ssse3_phsubswv4hi3): Likewise.
28953 (ssse3_pmaddubsw128): Likewise.
28954 (sse3_pmaddubsw: Likewise.
28955 (ssse3_palignrti): Likewise.
28956 (ssse3_palignrdi): Likewise.
28957
28958 2009-04-06 Gerald Pfeifer <gerald@pfeifer.com>
28959
28960 * doc/install.texi (Specific): Fix two cross-references to MinGW.
28961
28962 2009-04-06 Richard Guenther <rguenther@suse.de>
28963
28964 PR tree-optimization/28868
28965 * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
28966 of which PHI results we inserted.
28967 (insert_into_preds_of_block): Record inserted PHIs.
28968 (eliminate): Eliminate redundant PHI nodes.
28969 (init_pre): Init inserted_phi_names.
28970
28971 2009-04-06 Richard Guenther <rguenther@suse.de>
28972
28973 PR tree-optimization/39643
28974 * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
28975 IMAGPART_EXPRs of complex constants.
28976 (execute_fold_all_builtins): If we folded a call queue
28977 TODO_update_address_taken.
28978
28979 2009-04-06 Jan Hubicka <jh@suse.cz>
28980
28981 PR middle-end/39659
28982 * except.c (remove_unreachable_regions): Propagate may_contain_throw
28983 flag.
28984
28985 2009-04-06 Andrew Stubbs <ams@codesourcery.com>
28986
28987 * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
28988 delay slot.
28989 (ic_invalidate_array): Likewise.
28990
28991 2009-04-06 Hariharan Sandanagobalane <hariharan@picochip.com>
28992
28993 * calls.c (emit_library_call_value_1): Fix a problem with parameter
28994 alignment for library calls.
28995
28996 2009-04-06 Danny Smith <dannysmith@users.sourceforge.net>
28997
28998 * config.gcc (mingw32 tm_file): Add mingw-stdint.h.
28999 (mingw32 tm clause use_gcc_stdint): Set to wrap.
29000 * config/i386/mingw-stdint.h: New file.
29001
29002 2009-04-05 Richard Guenther <rguenther@suse.de>
29003
29004 PR tree-optimization/39648
29005 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
29006 our &A vs. &A[0] IL deficiencies.
29007
29008 2009-04-04 Jan Hubicka <jh@suse.cz>
29009
29010 * except.c (sjlj_find_directly_reachable_regions): Be ready for
29011 removed toplevel regions.
29012 (sjlj_mark_call_sites): Likewise.
29013
29014 2009-04-04 Dave Korn <dave.korn.cygwin@gmail.com>
29015
29016 * config.gcc (cygwin tm_file): Add cygwin-stdint.h.
29017 (cygwin tm clause use_gcc_stdint): Set to wrap.
29018 * config/i386/cygwin-stdint.h: New file.
29019
29020 2009-04-04 Richard Guenther <rguenther@suse.de>
29021
29022 * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
29023 * tree-ssa-copy.c (init_copy_prop): Do not propagate through
29024 single-argument PHIs if we are in loop-closed SSA form.
29025 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
29026 for the pre-condition.
29027 (slpeel_tree_peel_loop_to_edge): Likewise.
29028 (vect_build_loop_niters): Take an optional sequence to append stmts.
29029 (vect_generate_tmps_on_preheader): Likewise.
29030 (vect_do_peeling_for_loop_bound): Take extra guards for the
29031 pre-condition.
29032 (vect_do_peeling_for_alignment): Adjust. Unconditionally apply
29033 the cost model check.
29034 (vect_loop_versioning): Take stmt and stmt list to put pre-condition
29035 guards if we are going to peel. Do not apply versioning in that case.
29036 * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
29037 (vect_do_peeling_for_loop_bound): Likewise.
29038 * tree-vect-loop.c (vect_transform_loop): If we are peeling for
29039 loop bound only record extra pre-conditions, do not apply loop
29040 versioning.
29041
29042 2009-04-04 Richard Guenther <rguenther@suse.de>
29043
29044 * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
29045 renaming code.
29046
29047 2009-04-04 Jan Hubicka <jh@suse.cz>
29048
29049 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
29050 last_basic_block for size of bb->index indexed array.
29051 * bt-load.c (compute_defs_uses_and_gen, compute_kill,
29052 compute_out, link_btr_uses, build_btr_def_use_webs,
29053 build_btr_def_use_webs, migrate_btr_defs): Likewise.
29054
29055 2009-04-04 Jan Hubicka <jh@suse.cz>
29056
29057 * except.c (remove_eh_handler_and_replace): Break out from ...
29058 (remove_eh_handler): ... here.
29059 (bring_to_root): New function.
29060 (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
29061 handled ones, bring others to root of tree.
29062
29063 2009-04-04 Jan Hubicka <jh@suse.cz>
29064
29065 * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
29066 (all_phis_safe_to_merge): New function.
29067 (update_info): New structure.
29068 (make_eh_edge_and_update_phi, update_eh_edges): New functions.
29069 (cleanup_empty_eh): Update SSA if possible.
29070
29071 2009-04-04 Richard Guenther <rguenther@suse.de>
29072
29073 * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
29074 * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
29075 (append_vuse): Likewise.
29076
29077 2009-04-04 Jakub Jelinek <jakub@redhat.com>
29078
29079 * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
29080 * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
29081 instead of REG_UNSAVED for DW_CFA_undefined.
29082 (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
29083 (uw_update_context): If RA column is REG_UNDEFINED, mark it as
29084 outermost frame.
29085
29086 2009-04-04 Richard Earnshaw <rearnsha@arm.com>
29087
29088 PR target/39501
29089 * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
29090
29091 2009-04-04 Richard Guenther <rguenther@suse.de>
29092
29093 PR tree-optimization/8781
29094 PR tree-optimization/37892
29095 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
29096 * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
29097 (valueize_refs): Call it for *& valueizations.
29098 (shared_reference_ops_from_ref): Rename to ...
29099 (valueize_shared_reference_ops_from_ref): ... this and valueize.
29100 (shared_reference_ops_from_call): Rename to ...
29101 (valueize_shared_reference_ops_from_call): ... this and valueize.
29102 (vn_reference_lookup): Update.
29103 (visit_reference_op_call): Likewise.
29104 * tree-ssa-pre.c (phi_translate_1): Fold *&.
29105 (eliminate): Value-replace the call address in call statements.
29106
29107 2009-04-04 Richard Guenther <rguenther@suse.de>
29108
29109 PR tree-optimization/39636
29110 * tree-ssa-forwprop.c
29111 (forward_propagate_addr_into_variable_array_index): Check for
29112 GIMPLE_ASSIGN before accessing the rhs code.
29113
29114 2009-04-03 Jason Merrill <jason@redhat.com>
29115
29116 * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
29117
29118 2009-04-03 Steve Ellcey <sje@cup.hp.com>
29119
29120 * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
29121 truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
29122 fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
29123 floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
29124 fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
29125 smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
29126 divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
29127 umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
29128 *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
29129 *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
29130 adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
29131 smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
29132 *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
29133 *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
29134 sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
29135 Use fr_reg_or_fp01_operand instead of fr_register_operand
29136
29137 * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
29138 recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
29139 divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
29140
29141 2009-04-03 Vladimir Makarov <vmakarov@redhat.com>
29142
29143 PR rtl-optimization/39607
29144 PR rtl-optimization/39631
29145
29146 Revert:
29147
29148 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
29149 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
29150 instead of DF_LR_OUT.
29151 * ira-lives.c (process_bb_node_lives): Ditto.
29152 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
29153 instead of DF_LR_{OUT,IN}.
29154 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
29155 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
29156
29157 2009-04-03 Steven Bosscher <steven@gcc.gnu.org>
29158
29159 * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
29160 (execute_lower_omp): Always run but take the short way out if -fopenmp
29161 is not given.
29162 (gate_lower_omp): Remove, forcing the pass manager to always run the
29163 pass and always set PROP_gimple_lomp.
29164 (pass_lower_omp): Remove gate function.
29165 * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
29166 PROP_trees. Instead, require it.
29167 * ipa-cp.c (pass_ipa_cp): Likewise.
29168 * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
29169 (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
29170 * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
29171 and PROP_gimple_leh.
29172
29173 2009-04-03 Richard Guenther <rguenther@suse.de>
29174
29175 PR middle-end/13146
29176 PR tree-optimization/23940
29177 PR tree-optimization/33237
29178 PR middle-end/33974
29179 PR middle-end/34093
29180 PR tree-optimization/36201
29181 PR tree-optimization/36230
29182 PR tree-optimization/38049
29183 PR tree-optimization/38207
29184 PR tree-optimization/38230
29185 PR tree-optimization/38301
29186 PR tree-optimization/38585
29187 PR middle-end/38895
29188 PR tree-optimization/38985
29189 PR tree-optimization/39299
29190 * tree-ssa-structalias.h: Remove.
29191 * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
29192 (NULL_DEF_OPERAND_P): Make of type def_operand_p.
29193 (struct vuse_element_d): Remove.
29194 (struct vuse_vec_d): Likewise.
29195 (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
29196 VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
29197 SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
29198 VUSE_ELEMENT_VAR): Likewise.
29199 (struct voptype_d): Likewise.
29200 (NUM_VOP_FREE_BUCKETS): Likewise.
29201 (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
29202 (struct stmt_operands_d): Remove.
29203 (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
29204 VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
29205 VDEF_NUM, VDEF_VECT): Likewise.
29206 (copy_virtual_operands): Remove.
29207 (operand_build_cmp): Likewise.
29208 (create_ssa_artificial_load_stmt): Likewise.
29209 (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
29210 (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
29211 vuse_index and mayuse_index members. Pack and move done and iter_type
29212 members to the front.
29213 (SSA_OP_VMAYUSE): Remove.
29214 (SSA_OP_VIRTUAL_USES): Adjust.
29215 (FOR_EACH_SSA_VDEF_OPERAND): Remove.
29216 (unlink_stmt_vdef): Declare.
29217 (add_to_addressable_set): Remove.
29218 * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
29219 (vrp_visit_stmt): Likewise.
29220 * doc/tree-ssa.texi (Alias analysis): Update.
29221 * doc/invoke.texi (max-aliased-vops): Remove docs.
29222 (avg-aliased-vops): Likewise.
29223 * tree-into-ssa.c (syms_to_rename): Remove.
29224 (need_to_update_vops_p): Likewise.
29225 (need_to_initialize_update_ssa_p): Rename to ...
29226 (update_ssa_initialized_fn): ... this. Track function we are
29227 initialized for.
29228 (symbol_marked_for_renaming): Simplify.
29229 (add_new_name_mapping): Do not set need_to_update_vops_p.
29230 (dump_currdefs): Use SYMS_TO_RENAME.
29231 (rewrite_update_stmt): Always walk all uses/defs.
29232 (dump_update_ssa): Adjust.
29233 (init_update_ssa): Take function argument. Track what we are
29234 initialized for.
29235 (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
29236 (create_new_def_for): Initialize for cfun, assert we are initialized
29237 for cfun.
29238 (mark_sym_for_renaming): Simplify.
29239 (mark_set_for_renaming): Do not initialize update-ssa.
29240 (need_ssa_update_p): Simplify. Take function argument.
29241 (name_mappings_registered_p): Assert we ask for the correct function.
29242 (name_registered_for_update_p): Likewise.
29243 (ssa_names_to_replace): Likewise.
29244 (release_ssa_name_after_update_ssa): Likewise.
29245 (update_ssa): Likewise. Use SYMS_TO_RENAME.
29246 (dump_decl_set): Do not print a newline.
29247 (debug_decl_set): Do it here.
29248 (dump_update_ssa): And here.
29249 * tree-ssa-loop-im.c (move_computations): Adjust.
29250 (movement_possibility): Likewise.
29251 (determine_max_movement): Likewise.
29252 (gather_mem_refs_stmt): Likewise.
29253 * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
29254 or NAME_MEMORY_TAG.
29255 * tree-complex.c (update_all_vops): Remove.
29256 (expand_complex_move): Adjust.
29257 * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
29258 Simplify test for memory referencing statement. Exclude
29259 non-invariant ADDR_EXPRs.
29260 * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
29261 * tree-loop-distribution.c (generate_memset_zero): Adjust.
29262 (rdg_flag_uses): Likewise.
29263 * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
29264 related code.
29265 (tree_optimize_tail_calls_1): Also split the
29266 edge from the entry block if we have degenerate PHI nodes in
29267 the first basic block.
29268 * tree.c (init_ttree): Remove memory-tag related code.
29269 (tree_code_size): Likewise.
29270 (tree_node_structure): Likewise.
29271 (build7_stat): Re-write to be build6_stat.
29272 * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
29273 (SSA_VAR_P): Adjust.
29274 (struct tree_memory_tag): Remove.
29275 (struct tree_memory_partition_tag): Likewise.
29276 (union tree_node): Adjust.
29277 (build7): Re-write to be build6.
29278 * tree-pass.h (pass_reset_cc_flags): Remove.
29279 (TODO_update_address_taken): New flag.
29280 (pass_simple_dse): Remove.
29281 * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
29282 * params.h (MAX_ALIASED_VOPS): Remove.
29283 (AVG_ALIASED_VOPS): Likewise.
29284 * omp-low.c (expand_omp_taskreg): Update SSA form.
29285 * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
29286 aliases the lhs in a copy stmt.
29287 * tree-ssa-dse.c (struct address_walk_data): Remove.
29288 (memory_ssa_name_same): Likewise.
29289 (memory_address_same): Likewise.
29290 (get_kill_of_stmt_lhs): Likewise.
29291 (dse_possible_dead_store_p): Simplify, use the oracle. Handle
29292 unused stores. Look through PHI nodes into post-dominated regions.
29293 (dse_optimize_stmt): Simplify. Properly remove stores.
29294 (tree_ssa_dse): Compute dominators.
29295 (execute_simple_dse): Remove.
29296 (pass_simple_dse): Likewise.
29297 * ipa-reference.c (scan_stmt_for_static_refs): Open-code
29298 gimple_loaded_syms and gimple_stored_syms computation.
29299 * toplev.c (dump_memory_report): Dump alias and pta stats.
29300 * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
29301 (vn_reference_eq): Likewise.
29302 (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
29303 copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
29304 valueize_vuses): Remove.
29305 (get_def_ref_stmt_vuses): Simplify. Rename to ...
29306 (get_def_ref_stmt_vuse): ... this.
29307 (vn_reference_lookup_2): New function.
29308 (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
29309 walking equivalent vuses. Simplify.
29310 (vn_reference_lookup): Likewise.
29311 (vn_reference_insert): Likewise.
29312 (vn_reference_insert_pieces): Likewise.
29313 (visit_reference_op_call): Simplify.
29314 (visit_reference_op_load): Likewise.
29315 (visit_reference_op_store): Likewise.
29316 (init_scc_vn): Remove shared_lookup_vuses initialization.
29317 (free_scc_vn): Remove shared_lookup_vuses freeing.
29318 (sort_vuses, sort_vuses_heap): Remove.
29319 (get_ref_from_reference_ops): Export.
29320 * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
29321 vector with single vuse pointer.
29322 (vn_reference_lookup_pieces, vn_reference_lookup,
29323 vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
29324 (shared_vuses_from_stmt): Remove.
29325 (get_ref_from_reference_ops): Declare.
29326 * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
29327 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
29328 memory-tag related code.
29329 * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
29330 (likely_value): Add comment, skip static-chain of call statements.
29331 (surely_varying_stmt_p): Adjust.
29332 (gimplify_and_update_call_from_tree): Likewise.
29333 (execute_fold_all_builtins): Do not rebuild alias info.
29334 (gimplify_and_update_call_from_tree): Properly update VOPs.
29335 * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
29336 (copy_ref_info): Remove memory-tag related code.
29337 * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
29338 * ipa-pure-const.c (check_decl): Remove memory-tag related code.
29339 (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
29340 computation.
29341 * tree-ssa-dom.c (gimple_p): Remove typedef.
29342 (eliminate_redundant_computations): Adjust.
29343 (record_equivalences_from_stmt): Likewise.
29344 (avail_expr_hash): Likewise.
29345 (avail_expr_eq): Likewise.
29346 * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
29347 (stmt_makes_single_load): Likewise.
29348 (stmt_makes_single_store): Likewise.
29349 * tree-ssa-alias.c: Rewrite completely.
29350 (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
29351 debug_mem_sym_stats, dump_mem_sym_stats_for_var,
29352 debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
29353 delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
29354 dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
29355 Remove public functions.
29356 (pass_reset_cc_flags): Remove.
29357 (pass_build_alias): Move ...
29358 * tree-ssa-structalias.c (pass_build_alias): ... here.
29359 * tree-ssa-alias.c (may_be_aliased): Move ...
29360 * tree-flow-inline.h (may_be_aliased): ... here.
29361 tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
29362 count_uses_and_derefs): Move ...
29363 * gimple.c: ... here.
29364 * gimple.h (count_uses_and_derefs): Declare.
29365 * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
29366 ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
29367 same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
29368 indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
29369 ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
29370 call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
29371 get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
29372 New functions.
29373 * tree-dfa.c (refs_may_alias_p): Move ...
29374 * tree-ssa-alias.c (refs_may_alias_p): ... here. Extend.
29375 * tree-ssa-alias.h: New file.
29376 * tree-ssa-sink.c (is_hidden_global_store): Adjust.
29377 (statement_sink_location): Likewise.
29378 * opts.c (decode_options): Do not adjust max-aliased-vops or
29379 avg-aliased-vops values.
29380 * timevar.def (TV_TREE_MAY_ALIAS): Remove.
29381 (TV_CALL_CLOBBER): Likewise.
29382 (TV_FLOW_SENSITIVE): Likewise.
29383 (TV_FLOW_INSENSITIVE): Likewise.
29384 (TV_MEMORY_PARTITIONING): Likewise.
29385 (TV_ALIAS_STMT_WALK): New timevar.
29386 * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
29387 * tree-ssa-address.c (create_mem_ref_raw): Use build6.
29388 (get_address_description): Remove memory-tag related code.
29389 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
29390 * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
29391 * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
29392 and immediate uses in statements. Document.
29393 * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
29394 (dump_symbols): Remove.
29395 (dump_gimple_mem_ops): Do not dump loaded or stored syms.
29396 * alias.c (get_deref_alias_set): New function split out from ...
29397 (get_alias_set): ... here.
29398 * alias.h (get_deref_alias_set): Declare.
29399 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
29400 type parameter. Remove restrict pointer handling. Create a
29401 ref-all pointer in case type-based alias sets do not conflict.
29402 (vect_analyze_data_refs): Remove SMT related code.
29403 * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
29404 (vectorizable_load): Likewise.
29405 * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
29406 (DR_SYMBOL_TAG, DR_VOPS): Remove.
29407 * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
29408 Ignore vops and SMTs.
29409 (dr_analyze_alias): Likewise..
29410 (free_data_ref): Likewise.
29411 (create_data_ref): Likewise.
29412 (analyze_all_data_dependences): Likewise.
29413 (get_references_in_stmt): Adjust.
29414 * tree-flow-inline.h (gimple_aliases_computed_p,
29415 gimple_addressable_vars, gimple_call_clobbered_vars,
29416 gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
29417 factoring_name_p, mark_call_clobbered, clear_call_clobbered,
29418 compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
29419 gimple_mem_ref_stats): Remove.
29420 (gimple_vop): New function.
29421 (op_iter_next_use): Remove vuses and mayuses cases.
29422 (op_iter_next_def): Remove vdefs case.
29423 (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
29424 (clear_and_done_ssa_iter): Do not set removed fields.
29425 (op_iter_init): Likewise. Skip vuse and/or vdef if requested.
29426 Assert we are not iterating over vuses or vdefs if not also
29427 iterating over uses or defs.
29428 (op_iter_init_use): Likewise.
29429 (op_iter_init_def): Likewise.
29430 (op_iter_next_vdef): Remove.
29431 (op_iter_next_mustdef): Likewise.
29432 (op_iter_init_vdef): Likewise.
29433 (compare_ssa_operands_equal): Likewise.
29434 (link_use_stmts_after): Handle vuse operand.
29435 (is_call_used): Use is_call_clobbered.
29436 (is_call_clobbered): Global variables are always call clobbered,
29437 query the call-clobbers bitmap.
29438 (mark_call_clobbered): Ignore global variables.
29439 (clear_call_clobbered): Likewise.
29440 * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
29441 virtual operands sanity check.
29442 * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
29443 Remove.
29444 (TARGET_MEM_REF): Remove TMR_TAG operand.
29445 * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
29446 Remove call-clobber related code.
29447 (remove_referenced_var): Likewise. Do not clear mpt or symbol_mem_tag.
29448 (dump_variable): Do not dump SMTs, memory stats, may-aliases or
29449 partitions or escape reason.
29450 (get_single_def_stmt, get_single_def_stmt_from_phi,
29451 get_single_def_stmt_with_phi): Remove.
29452 (dump_referenced_vars): Tidy.
29453 (get_ref_base_and_extent): Allow bare decls.
29454 (collect_dfa_stats): Adjust.
29455 * graphite.c (rename_variables_in_stmt): Adjust.
29456 (graphite_copy_stmts_from_block): Likewise.
29457 (translate_clast): Likewise.
29458 * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
29459 (EXPR_DIES): New.
29460 (translate_vuse_through_block): Use the oracle.
29461 (phi_translate_1): Adjust.
29462 (value_dies_in_block_x): Use the oracle. Cache the outcome
29463 in EXPR_DIES.
29464 (valid_in_sets): Check if the VUSE for
29465 a REFERENCE is available.
29466 (eliminate): Do not remove stmts during elimination,
29467 instead queue and remove them afterwards.
29468 (do_pre): Do not rebuild alias info.
29469 (pass_pre): Run TODO_rebuild_alias before PRE.
29470 * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
29471 * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
29472 (mark_all_v_defs_stmt): Remove.
29473 (mark_all_v_defs_seq): Adjust.
29474 (sra_replace): Likewise.
29475 (scalarize_use): Likewise.
29476 (scalarize_copy): Likewise.
29477 (scalarize_init): Likewise.
29478 (scalarize_ldst): Likewise.
29479 (todoflags): Remove.
29480 (tree_sra): Do not rebuild alias info.
29481 (tree_sra_early): Adjust.
29482 (pass_sra): Run TODO_update_address_taken before SRA.
29483 * tree-predcom.c (set_alias_info): Remove.
29484 (prepare_initializers_chain): Do not call it.
29485 (mark_virtual_ops_for_renaming): Adjust.
29486 (mark_virtual_ops_for_renaming_list): Remove.
29487 (initialize_root_vars): Adjust.
29488 (initialize_root_vars_lm): Likewise.
29489 (prepare_initializers_chain): Likewise.
29490 * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
29491 (may_propagate_copy_into_stmt): Likewise.
29492 (merge_alias_info): Do nothing for now.
29493 (propagate_tree_value_into_stmt): Adjust.
29494 (stmt_may_generate_copy): Likewise.
29495 * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
29496 not mark symbols for renaming.
29497 (forward_propagate_addr_expr): Match up push/pop_stmt_changes
29498 with the same statement, make sure to update the new pointed-to one.
29499 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
29500 call statements, do not mark symbols for renaming.
29501 (mark_operand_necessary): Dump something.
29502 (ref_may_be_aliased): New function.
29503 (mark_aliased_reaching_defs_necessary_1): New helper function.
29504 (mark_aliased_reaching_defs_necessary): Likewise.
29505 (mark_all_reaching_defs_necessary_1): Likewise.
29506 (mark_all_reaching_defs_necessary): Likewise.
29507 (propagate_necessity): Do not process virtual PHIs. For
29508 non-aliased loads mark all reaching definitions as necessary.
29509 For aliased loads and stores mark the immediate dominating
29510 aliased clobbers as necessary.
29511 (visited): New global static.
29512 (perform_tree_ssa_dce): Free visited bitmap after propagating
29513 necessity.
29514 (remove_dead_phis): Perform simple dead virtual PHI removal.
29515 (remove_dead_stmt): Properly unlink virtual operands when
29516 removing stores.
29517 (eliminate_unnecessary_stmts): Schedule PHI removal after
29518 stmt removal.
29519 * tree-ssa-ter.c (is_replaceable_p): Adjust.
29520 (process_replaceable): Likewise.
29521 (find_replaceable_in_bb): Likewise.
29522 * tree-ssa.c (verify_ssa_name): Verify all VOPs are
29523 based on the single gimple vop.
29524 (verify_flow_insensitive_alias_info): Remove.
29525 (verify_flow_sensitive_alias_info): Likewise.
29526 (verify_call_clobbering): Likewise.
29527 (verify_memory_partitions): Likewise.
29528 (verify_alias_info): Likewise.
29529 (verify_ssa): Adjust..
29530 (execute_update_addresses_taken): Export. Update SSA
29531 manually. Optimize only when optimizing. Use a local bitmap.
29532 (pass_update_address_taken): Remove TODO_update_ssa, add
29533 TODO_dump_func.
29534 (pass_update_address_taken): Just use TODO_update_address_taken.
29535 (init_tree_ssa): Do not initialize addressable_vars.
29536 (verify_ssa): Verify new VUSE / VDEF properties.
29537 Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
29538 Do not call verify_alias_info.
29539 (delete_tree_ssa): Clear the VUSE, VDEF operands.
29540 Do not free the loaded and stored syms bitmaps. Reset the escaped
29541 and callused solutions. Do not free addressable_vars.
29542 Remove memory-tag related code.
29543 (warn_uninitialized_var): Aliases are always available.
29544 * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
29545 * lambda-code.c (can_put_in_inner_loop): Adjust.
29546 (can_put_after_inner_loop): Likewise.
29547 (perfect_nestify): Likewise.
29548 * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
29549 (vect_gen_widened_results_half): Remove CALL_EXPR handling.
29550 (vectorizable_conversion): Do not mark symbols for renaming.
29551 * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
29552 (expand_call_inline): Unlink the calls virtual operands before
29553 replacing it.
29554 (tree_function_versioning): Do not call update_ssa if we are not
29555 updating clones. Simplify.
29556 * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
29557 (propagate_with_phi): Likewise..
29558 * tree-outof-ssa.c (create_temp): Remove memory tag and call
29559 clobber code. Assert we are not aliased or global.
29560 * tree-flow.h: Include tree-ssa-alias.h
29561 (enum escape_type): Remove.
29562 (struct mem_sym_stats_d): Likewise.
29563 (struct mem_ref_stats_d): Likewise.
29564 (struct gimple_df): Add vop member. Remove global_var,
29565 call_clobbered_vars, call_used_vars, addressable_vars,
29566 aliases_compted_p and mem_ref_stats members. Add syms_to_rename,
29567 escaped and callused members.
29568 (struct ptr_info_def): Remove all members, add points-to solution
29569 member pt.
29570 (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
29571 call_clobbered, escape_mask, mpt and symbol_mem_tag members.
29572 * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
29573 (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
29574 (tree-ssa-alias.o): Likewise.
29575 (toplev.o): Add tree-ssa-alias.h
29576 (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
29577 * gimple.c (gimple_set_bb): Fix off-by-one error.
29578 (is_gimple_reg): Do not handle memory tags.
29579 (gimple_copy): Also copy virtual operands.
29580 Delay updating the statement. Do not reset loaded and stored syms.
29581 (gimple_set_stored_syms): Remove.
29582 (gimple_set_loaded_syms): Likewise.
29583 (gimple_call_copy_skip_args): Copy the virtual operands
29584 and mark the new statement modified.
29585 * tree-ssa-structalias.c (may_alias_p): Remove.
29586 (set_uids_in_ptset): Take the alias set to prune with as
29587 parameter. Fold in the alias test of may_alias_p.
29588 (compute_points_to_sets): Compute whether a ptr is dereferenced
29589 in a local sbitmap.
29590 (process_constraint): Deal with &ANYTHING on the lhs, reject all
29591 other ADDRESSOF constraints on the lhs.
29592 (get_constraint_for_component_ref): Assert that we don't get
29593 ADDRESSOF constraints from the base of the reference.
29594 Properly generate UNKNOWN_OFFSET for DEREF if needed.
29595 (struct variable_info): Remove collapsed_to member.
29596 (get_varinfo_fc): Remove.
29597 (new_var_info): Do not set collapsed_to.
29598 (dump_constraint): Do not follow cycles.
29599 (dump_constraint_graph): Likewise.
29600 (build_pred_graph): Likewise.
29601 (build_succ_graph): Likewise.
29602 (rewrite_constraints): Likewise.
29603 (do_simple_structure_copy): Remove.
29604 (do_rhs_deref_structure_copy): Remove.
29605 (do_lhs_deref_structure_copy): Remove.
29606 (collapse_rest_of_var): Remove.
29607 (do_structure_copy): Re-implement.
29608 (pta_stats): New global variable.
29609 (dump_pta_stats): New function.
29610 (struct constraint_expr): Make offset signed.
29611 (UNKNOWN_OFFSET): Define special value.
29612 (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
29613 (solution_set_expand): New helper function split out from ...
29614 (do_sd_constraint): ... here.
29615 (solution_set_add): Handle UNKNOWN_OFFSET. Handle negative offsets.
29616 (do_ds_constraint): Likewise.
29617 (do_sd_constraint): Likewise. Do not special-case ESCAPED = *ESCAPED
29618 and CALLUSED = *CALLUSED.
29619 (set_union_with_increment): Make inc argument signed.
29620 (type_safe): Remove.
29621 (get_constraint_for_ptr_offset): Handle unknown and negative
29622 constant offsets.
29623 (first_vi_for_offset): Handle offsets before start. Bail
29624 out early for offsets beyond the variable extent.
29625 (first_or_preceding_vi_for_offset): New function.
29626 (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
29627 Together with ESCAPED = *ESCAPED this properly computes reachability.
29628 (find_what_var_points_to): New function.
29629 (find_what_p_points_to): Implement in terms of find_what_var_points_to.
29630 (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
29631 pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
29632 pt_solutions_intersect): New functions.
29633 (compute_call_used_vars): Remove.
29634 (compute_may_aliases): New main entry into PTA computation.
29635 * gimple.h (gimple_p): New typedef.
29636 (struct gimple_statement_base): Remove references_memory_p.
29637 (struct gimple_statement_with_memory_ops_base): Remove
29638 vdef_ops, vuse_ops, stores and loads members. Add vdef and vuse
29639 members.
29640 (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
29641 gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
29642 gimple_set_references_memory): Remove.
29643 (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
29644 gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
29645 New functions.
29646 * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
29647 (verify_expr): Allow RESULT_DECL.
29648 (gimple_duplicate_bb): Do not copy virtual operands.
29649 (gimple_duplicate_sese_region): Adjust.
29650 (gimple_duplicate_sese_tail): Likewise.
29651 (mark_virtual_ops_in_region): Remove.
29652 (move_sese_region_to_fn): Do not call it.
29653 * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
29654 and pass_simple_dse.
29655 (execute_function_todo): Handle TODO_update_address_taken,
29656 call execute_update_addresses_taken for TODO_rebuild_alias.
29657 (execute_todo): Adjust.
29658 (execute_one_pass): Init dump files early.
29659 * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
29660 call-clobbered.
29661 (create_general_new_stmt): Clear vops.
29662 * tree-ssa-reassoc.c (get_rank): Adjust.
29663 * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
29664 symbols for renaming.
29665 * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
29666 (PARAM_AVG_ALIASED_VOPS): Likewise.
29667 * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
29668 (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
29669 * tree-ssa-operands.c: Simplify for new virtual operand representation.
29670 (operand_build_cmp, copy_virtual_operands,
29671 create_ssa_artificial_load_stmt, add_to_addressable_set,
29672 gimple_add_to_addresses_taken): Remove public functions.
29673 (unlink_stmt_vdef): New function.
29674
29675 2009-04-03 Alan Modra <amodra@bigpond.net.au>
29676
29677 * config.gcc (powerpc-*-linux*): Merge variants.
29678
29679 2009-04-02 Chao-ying Fu <fu@mips.com>
29680 James Grosbach <james.grosbach@microchip.com>
29681
29682 * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
29683 num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
29684 cop0_sp_offset.
29685 (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
29686 keep_interrupts_masked_p, use_debug_exception_return_p.
29687 (mips_attribute_table): Add interrupt, use_shadow_register_set,
29688 keep_interrupts_masked, use_debug_exception_return.
29689 (mips_interrupt_type_p, mips_use_shadow_register_set_p,
29690 mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
29691 New functions.
29692 (mips_function_ok_for_sibcall): Return false for interrupt handlers.
29693 (mips_print_operand): Process COP0 registers to print $0 .. $31
29694 correctly for GAS to process.
29695 (mips_interrupt_extra_call_saved_reg_p): New function.
29696 (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
29697 extra registers.
29698 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
29699 (mips_compute_frame_info): Add supports for interrupt context that
29700 includes doubleword accumulators and COP0 registers.
29701 (mips_for_each_saved_acc): New function.
29702 (mips_for_each_saved_gpr_and_fpr): Change the function name from
29703 mips_for_each_saved_reg.
29704 (mips_save_reg): Save accumulators.
29705 (mips_kernel_reg_p): A new for_each_rtx callback.
29706 (mips_expand_prologue): Support interrupt handlers.
29707 (mips_restore_reg): Restore accumulators.
29708 (mips_expand_epilogue): Support interrupt handlers.
29709 (mips_can_use_return_insn): Return false for interrupt handlers.
29710 (mips_epilogue_uses): New function.
29711 * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
29712 UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
29713 (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
29714 cop0_move): New instructions.
29715 * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
29716 * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
29717 defines.
29718 (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
29719 New defines.
29720 (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
29721 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
29722 interrupt handlers, we use K0 as the temporary register.
29723 (EPILOGUE_USES): Change to a function call.
29724 * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
29725 handlers, we use K0 as the temporary register.
29726
29727 * doc/extend.texi (Function Attributes): Document interrupt,
29728 use_shadow_register_set, keep_interrupts_masked,
29729 use_debug_exception_return for MIPS attributes.
29730
29731 2009-04-03 Alan Modra <amodra@bigpond.net.au>
29732
29733 * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
29734 Remove a number of t-files from tmake_file.
29735 * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
29736 * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
29737 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
29738 target_prototype, not TARGET_PROTOTYPE.
29739 (LINK_OS_GNU_SPEC): Define.
29740 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
29741 and darwin-ldoubdle.c.
29742
29743 2009-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
29744
29745 PR driver/39293
29746 * gcc.c (save_temps_flag): Add support for -save-temps=obj.
29747 (cpp_options): Ditto.
29748 (default_compilers): Ditto.
29749 (display_help): Ditto.
29750 (process_command): Ditto.
29751 (do_spec_1): Ditto.
29752 (set_input): Use lbasename instead of duplicate code.
29753 (save_temps_prefix): New static for -save-temps=obj.
29754 (save_temps_length): Ditto.
29755
29756 * doc/invoke.texi (-save-temps=obj): Document new variant to
29757 -save-temps switch.
29758
29759 2009-04-02 Jeff Law <law@redhat.com>
29760
29761 * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
29762 variable.
29763
29764 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
29765
29766 * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
29767 * configure: Regenerated.
29768
29769 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
29770
29771 * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
29772 share the argument list.
29773
29774 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
29775
29776 Merge
29777
29778 2009-02-12 Diego Novillo <dnovillo@google.com>
29779
29780 * varpool.c (debug_varpool): New.
29781 * cgraph.h (debug_varpool): Declare.
29782
29783 2009-04-02 Jan Hubicka <jh@suse.cz>
29784
29785 * passes.c (init_optimization_passes): Remove two copies of ehcleanup
29786 pass.
29787
29788 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
29789
29790 * config/i386/i386.c (ix86_abi): Move initialization to ...
29791 (override_options): Here.
29792
29793 2009-04-02 Christian Bruel <christian.bruel@st.com>
29794
29795 * config/sh/sh.c (sh_dwarf_register_span): New function.
29796 (TARGET_DWARF_REGISTER_SPAN): Define.
29797 * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
29798
29799 2009-04-02 Ira Rosen <irar@il.ibm.com>
29800
29801 PR tree-optimization/39595
29802 * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
29803 interleaved loads group is not greater than the SLP group size.
29804
29805 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
29806
29807 * builtins.c (is_builtin_name): New.
29808 (called_as_built_in): Use is_builtin_name.
29809 * tree.h (is_builtin_name): New.
29810 * varasm.c (incorporeal_function_p): Use is_builtin_name
29811
29812 2009-04-02 Andrew Stubbs <ams@codesourcery.com>
29813
29814 * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
29815
29816 2009-04-02 Dodji Seketeli <dodji@redhat.com>
29817
29818 PR c++/26693
29819 * c-decl.c (clone_underlying_type): Move this ...
29820 * c-common.c (set_underlying_type): ... here.
29821 Also, make sure the function properly sets TYPE_STUB_DECL() on
29822 the newly created typedef variant type.
29823 * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
29824 * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
29825 points.
29826
29827 2009-04-02 Richard Guenther <rguenther@suse.de>
29828
29829 PR tree-optimization/37221
29830 * tree-flow.h (degenerate_phi_result): Declare.
29831 * tree-ssa-dom.c (degenerate_phi_result): Export.
29832 * tree-scalar-evolution.c (analyze_initial_condition): If
29833 the initial condition is defined by a degenerate PHI node
29834 use the degenerate value.
29835
29836 2009-04-01 Eric Botcazou <ebotcazou@adacore.com>
29837
29838 PR rtl-optimization/39588
29839 * combine.c (merge_outer_ops): Do not set the constant when this
29840 is not necessary.
29841 (simplify_shift_const_1): Do not modify it either in this case.
29842
29843 2009-04-01 Steven Bosscher <steven@gcc.gnu.org>
29844
29845 * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
29846 tuning is deprecated if -mtune value is set to an Itanium1 variant.
29847
29848 2009-04-01 Janis Johnson <janis187@us.ibm.com>
29849
29850 PR c/29027
29851 * c-lex.c (interpret_float): Default (no suffix) is double.
29852
29853 2009-04-1 Xinliang David Li <davidxl@google.com>
29854
29855 * config/i386/i386.c (legitimate_constant_p): Recognize
29856 all one vector constant.
29857
29858 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
29859
29860 * config/vax/vax.c: Add #includes to silence warnings.
29861 Change #include order to silence two warnings.
29862
29863 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
29864
29865 * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
29866 (ASM_SPEC): Pass -k to the assembler for PIC code.
29867
29868 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
29869
29870 * config.gcc: Add vax-*-linux* to the switch.
29871 * config/vax/linux.h: New file. (TARGET_VERSION,
29872 TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
29873
29874 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
29875
29876 * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
29877 Use predicate macros instead of GET_CODE() == foo.
29878 * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
29879 ashlsi3, rotrsi3, <unnamed>): Likewise.
29880
29881 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
29882
29883 * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
29884 jbbccihi, jbbccisi): Remova trailing whitespace.
29885 * config/vax/constraints.md: Likewise.
29886 * config/vax/elf.h (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
29887 * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
29888 * config/vax/predicates.md: Likewise.
29889 * config/vax/vax.c (print_operand_address, vax_output_int_move,
29890 vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
29891 * config/vax/vax.h: Likewise.
29892 * config/vax/vax.md (nonlocal_goto): Likewise.
29893
29894 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
29895
29896 * config/vax/vax.c (vax_float_literal, vax_output_int_move)
29897 (indirectable_address_p, adjacent_operands_p): Add spaces around
29898 braces.
29899 * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
29900
29901 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
29902
29903 * config/vax/vax.c (legitimate_constant_address_p,
29904 legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
29905 index_term_p, reg_plus_index_p, legitimate_address_p,
29906 vax_mode_dependent_address_p): Update comments to match functions
29907 modified by the recent int->bool conversion.
29908
29909 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
29910
29911 * config/vax/builtins.md: Update copyright message.
29912 * config/vax/constraints.md: Likewise.
29913 * config/vax/netbsd-elf.h: Likewise.
29914 * config/vax/predicates.md: Likewise.
29915 * config/vax/vax-protos.h: Likewise.
29916 * config/vax/vax.c: Likewise.
29917 * config/vax/vax.h: Likewise.
29918 * config/vax/vax.md: Likewise.
29919 * config/vax/vax.opt: Likewise.
29920
29921 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
29922
29923 * config/vax/builtins.md (ffssi2, ffssi2_internal,
29924 sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
29925 * config/vax/constraints.md (B, R): Likewise.
29926 * config/vax/predicates.md (external_memory_operand,
29927 nonimmediate_addsub_di_operand): Likewise.
29928 * config/vax/vax.c (vax_output_int_add): Likewise.
29929 * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
29930 untyped_call): Likewise.
29931
29932 2009-04-01 Matt Thomas <matt@3am-software.com>
29933
29934 * config/vax/predicates.md: New file.
29935 (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
29936 external_const_operand, nonsymbolic_operand, external_memory_operand,
29937 indirect_memory_operand, indexed_memory_operand,
29938 illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
29939 nonimmediate_addsub_di_operand, general_addsub_di_operand): New
29940 predicate.
29941 * config/vax/constraints.md: New file.
29942 (Z0, U06, U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
29943 New constraint.
29944 * config/vax/builtins.md: New file.
29945 (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
29946 jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
29947 jbbccisi): Define.
29948 * config/vax/vax.opt (mqmath): Add option.
29949 * config/vax/vax.md (isfx): Extend with DI.
29950 (VAXintQH, VAXintQHSD): Define.
29951 (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
29952 mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
29953 and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
29954 one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
29955 (movdi): Update constraints and use vax_output_int_move().
29956 (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
29957 movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
29958 pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
29959 nonlocal_goto): New.
29960 (mov<mode>): Extend accepted operand types.
29961 (subdi3_old): Rename from subdi3, change update constraints and use
29962 a new implementation.
29963 * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
29964 (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
29965 MOVE_RATIO, CLEAR_RATIO): Define.
29966 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
29967 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
29968 (PRINT_OPERAND): Redefine using a function instead of inlined code.
29969 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
29970 (split_quadword_operands): Make static and really allow variable
29971 splitting.
29972 (print_operand_address): Update for PIC generation.
29973 (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
29974 indexable_address_p, fixup_mathdi_operand,
29975 vax_expand_addsub_di_operands, adjacent_operands_p): New.
29976 (vax_float_literal, legitimate_constant_p,
29977 indirectable_constant_address_p, index_term_p,
29978 reg_plus_index_p): Return bool instead of int.
29979 (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
29980 where needed.
29981 (vax_output_int_move, vax_output_int_add): Extend to allow PIC
29982 generation.
29983 (vax_output_conditional_branch): Indent.
29984 (legitimate_constant_address_p, indirectable_constant_address_p,
29985 indirectable_address_p, nonindexed_address_p, legitimate_address_p,
29986 vax_mode_dependent_address_p): Return bool instead of int, update for
29987 PIC generation.
29988 * config/vax/vax-protos.h (legitimate_constant_address_p,
29989 legitimate_constant_p, legitimate_address_p,
29990 vax_mode_dependent_address_p): Change declaration to bool.
29991 (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
29992 vax_expand_addsub_di_operands, vax_output_int_subtract,
29993 vax_output_movmemsi): Declare.
29994 (split_quadword_operands, vax_float_literal): Delete declaration.
29995 * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
29996 * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
29997 VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
29998 ASM_OUTPUT_DWARF_PCREL): Define.
29999 (ASM_SPEC): Change definition to allow PIC generation.
30000
30001 2009-04-01 Steve Ellcey <sje@cup.hp.com>
30002
30003 * doc/sourcebuild.texi: Update front-end requirements.
30004
30005 2009-04-01 Jakub Jelinek <jakub@redhat.com>
30006
30007 PR target/39226
30008 * config/rs6000/rs6000.md (andsi3_internal5_nomc,
30009 anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
30010 (booldi3_internal3): Use boolean_or_operator instead of
30011 boolean_operator.
30012
30013 2009-04-01 Joseph Myers <joseph@codesourcery.com>
30014
30015 PR c/39605
30016 * c-decl.c (grokdeclarator): Pedwarn for file-scope array
30017 declarator whose size is not an integer constant expression but
30018 folds to an integer constant, then treat it as a constant
30019 subsequently.
30020
30021 2009-04-01 Richard Guenther <rguenther@suse.de>
30022
30023 * fold-const.c (fold_plusminus_mult_expr): Do not fold
30024 i * 4 + 2 to (i * 2 + 1) * 2.
30025
30026 2009-04-01 Jakub Jelinek <jakub@redhat.com>
30027
30028 PR c/37772
30029 * c-parser.c (c_parser_asm_statement): Skip until close paren and
30030 return if c_parser_asm_string_literal returned NULL.
30031
30032 2009-04-01 Nick Clifton <nickc@redhat.com>
30033
30034 * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
30035 already defined.
30036 * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
30037 * config/m32c/m32c-lib2.c: Remove unused typedefs. Rename the
30038 other typedefs to avoid conflicts with libgcc2.c. Define labels
30039 to gain 16-bit bit-manipulation functions from libgcc2.c and then
30040 include it.
30041 * config/m32c/m32c-lib2-trapv.c: New file. Define labels
30042 to gain 16-bit trapping arithmetic functions from libgcc2.c and
30043 then include it.
30044
30045 2009-04-01 Rafael Avila de Espindola <espindola@google.com>
30046
30047 * varasm.c (default_function_rodata_section): Declare DOT as
30048 const char*.
30049
30050 2009-04-01 Kai Tietz <kai.tietz@onevision.com>
30051 Andrey Galkin <agalkin@hypercom.com>
30052
30053 PR/39492
30054 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
30055 Make object_name unique for each process.
30056
30057 2009-04-01 Jakub Jelinek <jakub@redhat.com>
30058
30059 PR other/39591
30060 * omp-low.c (remove_exit_barrier): Don't optimize if there are any
30061 addressable variables in the parallel that could go out of scope while
30062 running queued tasks.
30063
30064 2009-04-01 Anatoly Sokolov <aesok@post.ru>
30065
30066 * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
30067 (CASE_VALUES_THRESHOLD): Redefine.
30068 * config/avr/avr.c (avr_override_options): Remove initialization of
30069 avr_case_values_threshold variable.
30070 (avr_case_values_threshold): Remove variable. Add new function.
30071 * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
30072 * config/avr/avr.opt (mno-tablejump): Remove option.
30073 * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
30074
30075 2009-04-01 DJ Delorie <dj@redhat.com>
30076
30077 * varasm.c (default_function_rodata_section): Don't assume
30078 anything about where the first '.' in the section name is.
30079
30080 2009-04-01 Alan Modra <amodra@bigpond.net.au>
30081
30082 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
30083 rs6000_emit_stack_tie.
30084
30085 2009-03-31 Ian Lance Taylor <iant@google.com>
30086
30087 * tree-eh.c (tree_remove_unreachable_handlers): Compare
30088 gimple_code with GIMPLE_RESX, not RESX.
30089
30090 2009-03-31 Joseph Myers <joseph@codesourcery.com>
30091
30092 * c-common.c (c_get_ident): New.
30093 (c_common_nodes_and_builtins): Call it for type names that may be NULL.
30094
30095 2009-04-01 Ben Elliston <bje@au.ibm.com>
30096
30097 * config/rs6000/sysv4.opt (msdata): Improve option description.
30098
30099 2009-03-31 Steve Ellcey <sje@cup.hp.com>
30100
30101 * config/ia64/ia64.md (divsf3_internal_lat): Remove.
30102 (divdf3_internal_lat): Remove.
30103 (divxf3_internal_lat): Remove.
30104 (divxf3_internal_thr): Remove.
30105 (divxf): Use divxf3_internal.
30106 * config/ia64/div.md (divsf3_internal_lat): New.
30107 (divdf3_internal_lat): New.
30108 (divxf3_internal): New.
30109
30110 2009-03-31 Joseph Myers <joseph@codesourcery.com>
30111
30112 PR c/448
30113 * Makefile.in (USE_GCC_STDINT): Define.
30114 (stmp-int-hdrs): Install stdint.h if applicable.
30115 * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
30116 if known.
30117 (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
30118 (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
30119 UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
30120 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
30121 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
30122 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
30123 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
30124 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
30125 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
30126 (c_common_nodes_and_builtins): Initialize
30127 underlying_wchar_type_node. Do not initialize
30128 signed_wchar_type_node or unsigned_wchar_type_node. Initialize
30129 nodes for new types.
30130 (c_stddef_cpp_builtins): Define macros for new types.
30131 * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
30132 Remove.
30133 (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
30134 CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
30135 CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
30136 CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
30137 CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
30138 CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
30139 CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
30140 CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
30141 CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
30142 (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
30143 (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
30144 int16_type_node, int32_type_node, int64_type_node,
30145 uint8_type_node, uint16_type_node, c_uint32_type_node,
30146 c_uint64_type_node, int_least8_type_node, int_least16_type_node,
30147 int_least32_type_node, int_least64_type_node,
30148 uint_least8_type_node, uint_least16_type_node,
30149 uint_least32_type_node, uint_least64_type_node,
30150 int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
30151 int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
30152 uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
30153 uintptr_type_node): Define.
30154 * c-cppbuiltin.c (builtin_define_constants,
30155 builtin_define_type_minmax): New.
30156 (builtin_define_stdint_macros): Define more macros.
30157 (c_cpp_builtins): Define more limit macros.
30158 (type_suffix): New.
30159 (builtin_define_type_max): Define in terms of
30160 builtin_define_type_minmax. Remove is_long parameter. All
30161 callers changed.
30162 * config.gcc (use_gcc_stdint): Define.
30163 (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
30164 Add newlib-stdint.h for generic targets.
30165 * config/glibc-stdint.h, config/newlib-stdint.h,
30166 ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
30167 * config/m32c/m32c.h (UINTPTR_TYPE): Define.
30168 * config/score/score.h (UINTPTR_TYPE): Define.
30169 * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
30170 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
30171 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
30172 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
30173 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
30174 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
30175 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
30176 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
30177 * config/spu/spu.h (STDINT_LONG32): Define.
30178 * configure.ac (use_gcc_stdint): Substitute.
30179 * configure: Regenerate.
30180 * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
30181 __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
30182 __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
30183 __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
30184 __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
30185 __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
30186 __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
30187 __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
30188 __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
30189 __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
30190 __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
30191 __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
30192 __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
30193 __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
30194 __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
30195 __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
30196 __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
30197 __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
30198 __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
30199 __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
30200 __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
30201 * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
30202 INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
30203 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
30204 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
30205 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
30206 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
30207 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
30208 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
30209
30210 2009-03-31 Bernd Schmidt <bernd.schmidt@analog.com>
30211
30212 * loop-iv.c (suitable_set_for_replacement): Renamed from
30213 simplify_using_assignment; changed to return bool and to accept new
30214 args DEST and SRC. Return true iff we find a source/destination pair
30215 that can be used to make a replacement, and fill SRC and DEST if so.
30216 Remove arg ALTERED. Don't deal with altered regs here. All callers
30217 changed.
30218 (simplify_using_initial_values): Deal with altered regs here and track
30219 more precisely the effect they have on the validity of our expression.
30220
30221 * loop-iv.c (simplify_using_condition): A condition of the form
30222 (EQ REG CONST) can be used to simply make a substitution.
30223 (simplify_using_initial_values): Keep track of conditions we have seen
30224 and keep using them to simplify new expressions, while applying the
30225 same substitutions to them as to the expression.
30226
30227 * simplify-rtx.c (simplify_relational_operation_1): Simplify
30228 (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
30229 GEU/LTU reversed.
30230
30231 * loop-iv.c (determine_max_iter): New arg OLD_NITER. All callers
30232 changed. Use this when trying to improve the upper bound.
30233 Generate the comparison by using simplify_gen_relational.
30234
30235 * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
30236
30237 * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
30238 functions.
30239 (simplify_using_assignment, simplify_using_initial_values): Call
30240 replace_in_expr to make replacements. Call replace_single_def_regs
30241 once on the initial version of the expression.
30242
30243 2009-03-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30244
30245 PR target/27237
30246 * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
30247
30248 2009-03-31 Richard Guenther <rguenther@suse.de>
30249
30250 PR middle-end/31029
30251 * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
30252 equality comparisons. Fold C - X CMP X if C % 2 == 1.
30253
30254 2009-03-31 Richard Guenther <rguenther@suse.de>
30255
30256 * tree.h (div_if_zero_remainder): Declare.
30257 * fold-const.c (div_if_zero_remainder): Export.
30258 * tree-ssa-forwprop.c
30259 (forward_propagate_addr_into_variable_array_index): Handle
30260 constant array index addition outside of the variable index.
30261
30262 2009-03-31 Joseph Myers <joseph@codesourcery.com>
30263
30264 PR target/39592
30265 * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
30266 define_splits, floatunssi<mode>2): Require x87 conversions from
30267 DImode to be permitted.
30268
30269 2009-03-31 Joseph Myers <joseph@codesourcery.com>
30270
30271 PR preprocessor/15638
30272 * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
30273
30274 2009-03-31 Richard Guenther <rguenther@suse.de>
30275
30276 PR middle-end/23401
30277 PR middle-end/27810
30278 * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
30279 (struct tree_decl_with_vis): Remove gimple_formal_temp member.
30280 * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
30281 a separate statement.
30282 * gimplify.c (pop_gimplify_context): Remove formal temp handling.
30283 (lookup_tmp_var): Likewise.
30284 (is_gimple_formal_tmp_or_call_rhs): Remove.
30285 (is_gimple_reg_or_call_rhs): Rename to ...
30286 (is_gimple_reg_rhs_or_call): ... this.
30287 (is_gimple_mem_or_call_rhs): Rename to ...
30288 (is_gimple_mem_rhs_or_call): ... this.
30289 (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call. Set
30290 DECL_GIMPLE_REG_P only if is_formal is true.
30291 (gimplify_compound_lval): Use is_gimple_reg. Remove workaround
30292 for non-proper post-modify expression gimplification.
30293 (gimplify_self_mod_expr): For post-modify expressions gimplify
30294 the lvalue to a minimal lvalue.
30295 (rhs_predicate_for): Remove formal temp case.
30296 (gimplify_modify_expr_rhs): Likewise.
30297 (gimplify_addr_expr): Use is_gimple_reg.
30298 (gimplify_expr): Remove formal temp cases.
30299 (gimple_regimplify_operands): Likewise.
30300 * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
30301 and FILTER_EXPR like constants.
30302 * gimple.c (walk_gimple_op): Fix val_only initialization, use
30303 is_gimple_reg.
30304 (is_gimple_formal_tmp_rhs): Remove.
30305 (is_gimple_reg_rhs): Remove special casing.
30306 (is_gimple_mem_rhs): Fix.
30307 (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
30308 (is_gimple_formal_tmp_var): Remove.
30309 (is_gimple_formal_tmp_reg): Likewise.
30310 (is_gimple_min_lval): Allow invariant component ref parts.
30311 * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
30312 is_gimple_formal_tmp_reg): Remove declarations.
30313 * tree-cfg.c (verify_expr): Verify that variables with address
30314 taken do not have DECL_GIMPLE_REG_P set.
30315 * tree-mudflap.c (mf_build_check_statement_for): Use
30316 force_gimple_operand instead of gimplify_expr.
30317
30318 2009-03-31 Ayal Zaks <zaks@il.ibm.com>
30319
30320 * modulo-sched.c (sms_schedule_by_order): Pass the actual
30321 schedulable rows to compute_split_row.
30322
30323 2009-03-31 Ben Elliston <bje@au.ibm.com>
30324
30325 PR target/31635
30326 * config/rs6000/rs6000.c (rs6000_handle_option): Handle
30327 OPT_mvrsave.
30328
30329 2009-03-31 Alan Modra <amodra@bigpond.net.au>
30330
30331 * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
30332 * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
30333 * configure: Regenerate.
30334 * config.in: Regenerate.
30335 * config/rs6000/rs6000.opt (mtls-markers): Add.
30336 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
30337 * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
30338 (tls_ld_aix, tls_ld_sysv): Likewise.
30339 (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
30340 (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
30341
30342 2009-03-31 Alan Modra <amodra@bigpond.net.au>
30343
30344 * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
30345
30346 2009-03-30 Jan Hubicka <jh@suse.cz>
30347
30348 * tree-eh.c (make_eh_edges): Set probability 100% to first edge
30349 out of RESX.
30350 (tree_remove_unreachable_handlers): Cleanup EH predecestor
30351 detection and label handling.
30352
30353 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
30354
30355 * ira-int.h (ira_allocno): Rename left_conflicts_num to
30356 left_conflicts_size.
30357 (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
30358 ALLOCNO_LEFT_CONFLICTS_SIZE.
30359
30360 * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
30361 remove_allocno_from_bucket_and_push,
30362 allocno_spill_priority_compare, push_allocnos_to_stack,
30363 setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
30364 instead of ALLOCNO_LEFT_CONFLICTS_NUM.
30365 (setup_allocno_left_conflicts_num): Ditto. Rename to
30366 setup_allocno_left_conflicts_size.
30367 (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
30368 instead of ALLOCNO_LEFT_CONFLICTS_NUM and
30369 setup_allocno_left_conflicts_size instead of
30370 setup_allocno_left_conflicts_num.
30371
30372 * ira-build.c (ira_create_allocno): Use
30373 ALLOCNO_LEFT_CONFLICTS_SIZE instead of
30374 ALLOCNO_LEFT_CONFLICTS_NUM.
30375
30376 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
30377
30378 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
30379 instead of DF_LR_OUT.
30380
30381 * ira-lives.c (process_bb_node_lives): Ditto.
30382
30383 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
30384 instead of DF_LR_{OUT,IN}.
30385
30386 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
30387
30388 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
30389
30390 2009-03-30 Jan Hubicka <jh@suse.cz>
30391
30392 * except.c (label_to_region_map): Fix thinko.
30393
30394 2009-03-30 Steve Ellcey <sje@cup.hp.com>
30395
30396 PR middle-end/38237
30397 * tree.h (tree_find_value): New declaration.
30398 * tree.c (tree_find_value): New function.
30399 * varasm.c (assemble_external): Avoid duplicate entries on lists.
30400
30401 2009-03-30 Jakub Jelinek <jakub@redhat.com>
30402
30403 PR debug/39563
30404 * c-decl.c (struct c_binding): Add locus field.
30405 (bind): Add locus argument, set locus field from it.
30406 (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
30407 add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
30408 (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
30409 implicitly_declare, undeclared_variable, lookup_label,
30410 declare_label, c_make_fname_decl, c_builtin_function,
30411 c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
30412 bind callers.
30413
30414 2009-03-30 H.J. Lu <hongjiu.lu@intel.com>
30415
30416 PR target/38781
30417 * config/i386/i386.c (classify_argument): Check total size of
30418 structure.
30419
30420 2009-03-30 Martin Jambor <mjambor@suse.cz>
30421
30422 * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
30423 IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
30424 IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
30425 respectively.
30426
30427 * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
30428 seen_variable_array_ref while also traversing a union.
30429
30430 * tree-inline.c (optimize_inline_calls): Do not call
30431 cgraph_node_remove_callees.
30432 * cgraphbuild.c (remove_cgraph_callee_edges): New function.
30433 (pass_remove_cgraph_callee_edges): New variable.
30434 * passes.c (init_optimization_passes): Add
30435 pass_remove_cgraph_callee_edges after early inlining and before all
30436 late intraprocedural passes.
30437
30438 * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
30439
30440 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
30441
30442 * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
30443 Fix typos in names.
30444
30445 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
30446
30447 * combine.c (simplify_comparison): Use have_insn_for.
30448 * dojump.c (do_jump): Likewise.
30449
30450 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
30451
30452 * config/sparc/sparc.c (sparc_compare_emitted): Remove.
30453 (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
30454 sparc_compare_op0 like sparc_compare_emitted used to be handled.
30455 (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
30456 instead of sparc_compare_emitted.
30457 * config/sparc/sparc.h (sparc_compare_emitted): Remove.
30458 * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
30459 instead of sparc_compare_emitted.
30460
30461 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
30462
30463 * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
30464 enter/exit cfglayout mode.
30465 (pass_partition_block): Require it.
30466 * combine.c (find_single_use, reg_dead_at_p): Use CFG.
30467 (combine_instructions): Track basic blocks instead of labels.
30468 (update_cfg_for_uncondjump): New.
30469 (try_combine): Use it. Update jumps after rescanning.
30470 (pass_combine): Require PROP_cfglayout.
30471 * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
30472
30473 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
30474
30475 * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
30476 Provide/destroy PROP_cfglayout respectively.
30477 * gcse.c (pass_jump_bypass, pass_gcse): Require it.
30478 * tree-pass.h (PROP_cfglayout): New.
30479
30480 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
30481
30482 * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
30483 fold_convert_const_fixed_from_fixed,
30484 fold_convert_const_fixed_from_int,
30485 fold_convert_const_fixed_from_real, fold_negate_const): Do not
30486 set TREE_CONSTANT_OVERFLOW.
30487 * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
30488 * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
30489
30490 2009-03-30 Ira Rosen <irar@il.ibm.com>
30491
30492 * tree-vect-loop-manip.c: New file.
30493 * tree-vectorizer.c: Update documentation and included files.
30494 (vect_loop_location): Make extern.
30495 (rename_use_op): Move to tree-vect-loop-manip.c
30496 (rename_variables_in_bb, rename_variables_in_loop,
30497 slpeel_update_phis_for_duplicate_loop,
30498 slpeel_update_phi_nodes_for_guard1,
30499 slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
30500 slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
30501 slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
30502 set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
30503 find_loop_location): Likewise.
30504 (new_stmt_vec_info): Move to tree-vect-stmts.c.
30505 (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
30506 get_vectype_for_scalar_type, vect_is_simple_use,
30507 supportable_widening_operation, supportable_narrowing_operation):
30508 Likewise.
30509 (bb_in_loop_p): Move to tree-vect-loop.c.
30510 (new_loop_vec_info, destroy_loop_vec_info,
30511 reduction_code_for_scalar_code, report_vect_op,
30512 vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
30513 (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
30514 (vect_supportable_dr_alignment): Likewise.
30515 * tree-vectorizer.h (tree-data-ref.h): Include.
30516 (vect_loop_location): Declare.
30517 Reorganize function declarations according to the new file structure.
30518 * tree-vect-loop.c: New file.
30519 * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
30520 tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
30521 * tree-vect-data-refs.c: New file.
30522 * tree-vect-patterns.c (timevar.h): Don't include.
30523 * tree-vect-stmts.c: New file.
30524 * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
30525 tree-vect-slp.c, tree-vect-loop.c.
30526 * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
30527 tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
30528 tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
30529 (tree-vect-analyze.o): Remove.
30530 (tree-vect-transform.o): Likewise.
30531 (tree-vect-data-refs.o): Add rule.
30532 (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
30533 tree-vect-slp.o): Likewise.
30534 (tree-vect-patterns.o): Remove redundant dependencies.
30535 (tree-vectorizer.o): Likewise.
30536 * tree-vect-slp.c: New file.
30537
30538 2009-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30539
30540 * optc-gen.awk: Warn if an option flag has multiple different
30541 help strings.
30542
30543 2009-03-30 Sebastian Pop <sebastian.pop@amd.com>
30544
30545 * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
30546 -floop-block): Document dependences on PPL, CLooG and Graphite.
30547
30548 2009-03-30 Joseph Myers <joseph@codesourcery.com>
30549
30550 PR rtl-optimization/323
30551 * c-common.c (c_fully_fold, convert_and_check,
30552 c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
30553 (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
30554 * c-common.def (EXCESS_PRECISION_EXPR): New.
30555 * c-cppbuiltin.c (builtin_define_float_constants): Define
30556 constants with enough digits for long double.
30557 * c-lex.c (interpret_float): Interpret constant with excess
30558 precision where appropriate.
30559 * c-opts.c (c_common_post_options): Set
30560 flag_excess_precision_cmdline. Give an error for
30561 -fexcess-precision=standard for C++ for processors where the
30562 option is significant.
30563 * c-parser.c (c_parser_conditional_expression): Handle excess
30564 precision in condition.
30565 * c-typeck.c (convert_arguments): Handle arguments with excess
30566 precision.
30567 (build_unary_op): Move excess precision outside operation.
30568 (build_conditional_expr): Likewise.
30569 (build_compound_expr): Likewise.
30570 (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
30571 (build_modify_expr): Handle excess precision in RHS.
30572 (convert_for_assignment): Handle excess precision in converted
30573 value.
30574 (digest_init, output_init_element, process_init_element): Handle
30575 excess precision in initializer.
30576 (c_finish_return): Handle excess precision in return value.
30577 (build_binary_op): Handle excess precision in operands and add
30578 excess precision as needed for operation.
30579 * common.opt (-fexcess-precision=): New option.
30580 * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
30581 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
30582 For standard excess precision, output explicit conversion to and
30583 truncation from XFmode.
30584 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
30585 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
30586 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
30587 define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
30588 define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
30589 floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
30590 divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
30591 *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
30592 *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
30593 define_splits, sqrt<mode>2): Disable where appropriate for
30594 standard excess precision.
30595 * convert.c (convert_to_real): Do not shorten arithmetic to type
30596 for which excess precision would be used.
30597 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
30598 * doc/invoke.texi (-fexcess-precision=): Document option.
30599 (-mfpmath=): Correct index entry.
30600 * flags.h (enum excess_precision, flag_excess_precision_cmdline,
30601 flag_excess_precision): New.
30602 * langhooks.c (lhd_post_options): Set
30603 flag_excess_precision_cmdline.
30604 * opts.c (common_handle_option): Handle -fexcess-precision=.
30605 * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
30606 init_excess_precision): New.
30607 (lang_dependent_init_target): Call init_excess_precision.
30608 * tree.c (excess_precision_type): New.
30609 * tree.h (excess_precision_type): Declare.
30610
30611 2009-03-30 Joseph Myers <joseph@codesourcery.com>
30612
30613 PR c/35235
30614 * c-typeck.c (build_component_ref): Do not copy qualifiers from
30615 non-lvalue to component.
30616
30617 2009-03-29 Joseph Myers <joseph@codesourcery.com>
30618
30619 PR preprocessor/34695
30620 * Makefile.in (c-opts.o): Depend on c-tree.h.
30621 * c-common.c: Move down include of diagnostic.h.
30622 (done_lexing, c_cpp_error): New.
30623 * c-common.h (done_lexing): Declare.
30624 * c-decl.c (c_write_global_declarations): Don't check cpp_errors
30625 (parse_in).
30626 * c-opts.c: Include c-tree.h.
30627 (c_common_init_options): Set preprocessor error callback.
30628 (c_common_handle_option): Do not set preprocessor
30629 inhibit_warnings, warnings_are_errors, warn_system_headers,
30630 pedantic_errors or inhibit_warnings flags.
30631 (c_common_post_options): Do not check cpp_errors (parse_in).
30632 (c_common_finish): Do not output dependencies if there were
30633 errors. Do not check return value of cpp_finish.
30634 * c-ppoutput.c (pp_file_change): Set input_location.
30635 * c-tree.h (c_cpp_error): Declare.
30636 * diagnostic.c (diagnostic_set_info_translated): Also initialize
30637 override_column.
30638 (diagnostic_build_prefix): Check override_column.
30639 * diagnostic.h (diagnostic_info): Add override_column field.
30640 (diagnostic_override_column): Define.
30641
30642 2009-03-28 Paolo Bonzini <bonzini@gnu.org>
30643
30644 * c-common.c (c_expand_expr, c_staticp): Remove.
30645 * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
30646 * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
30647 COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
30648 * c-gimplify.c (gimplify_compound_literal_expr,
30649 optimize_compound_literals_in_ctor): Remove.
30650 (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
30651 * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
30652 * c-semantics.c (emit_local_var): Remove.
30653
30654 * langhooks-def.h (lhd_expand_expr): Remove.
30655 * langhooks.c (lhd_expand_expr): Remove.
30656 * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
30657
30658 * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
30659 handling from c-semantics.c; don't call into langhook.
30660 (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
30661 * gimplify.c (gimplify_compound_literal_expr,
30662 optimize_compound_literals_in_ctor): Move from c-gimplify.c.
30663 (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
30664 (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
30665 as was done in c-gimplify.c.
30666 * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
30667 * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
30668 Move from c-common.h.
30669 * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
30670
30671 * tree.c (staticp): Do not call langhook.
30672 * langhooks.c (lhd_staticp): Delete.
30673 * langhooks-def.h (lhd_staticp): Delete prototype.
30674 (LANG_HOOKS_STATICP): Delete.
30675 (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
30676
30677 * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
30678 instead of DECL_STMTs.
30679
30680 2009-03-29 Joseph Myers <joseph@codesourcery.com>
30681
30682 PR c/456
30683 PR c/5675
30684 PR c/19976
30685 PR c/29116
30686 PR c/31871
30687 PR c/35198
30688 * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
30689 void_type_node.
30690 (fold_call_expr): Return a NOP_EXPR from folding rather than the
30691 contained expression.
30692 * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
30693 (c_common_truthvalue_conversion): Use c_save_expr. Do not fold
30694 conditional expressions for C.
30695 (decl_constant_value_for_optimization): Move from
30696 decl_constant_value_for_broken_optimization in c-typeck.c. Check
30697 whether optimizing and that the expression is a VAR_DECL not of
30698 array type instead of doing such checks in the caller. Do not
30699 check pedantic. Call gcc_unreachable for C++.
30700 * c-common.def (C_MAYBE_CONST_EXPR): New.
30701 * c-common.h (c_fully_fold, c_save_expr,
30702 decl_constant_value_for_optimization): New prototypes.
30703 (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
30704 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
30705 EXPR_INT_CONST_OPERANDS): Define.
30706 * c-convert.c (convert): Strip nops from expression.
30707 * c-decl.c (groktypename): Take extra parameters expr and
30708 expr_const_operands. Update call to grokdeclarator.
30709 (start_decl): Update call to grokdeclarator. Add statement for
30710 expressions used in type of decl.
30711 (grokparm): Update call to grokdeclarator.
30712 (push_parm_decl): Update call to grokdeclarator.
30713 (build_compound_literal): Add parameter non_const and build a
30714 C_MAYBE_COSNT_EXPR if applicable.
30715 (grokdeclarator): Take extra parameters expr and
30716 expr_const_operands. Track expressions used in declaration
30717 specifiers and declarators. Fold array sizes and track whether
30718 they are constant expressions and whether they are integer
30719 constant expressions.
30720 (parser_xref_tag): Set expr and expr_const_operands fields in
30721 return value.
30722 (grokfield): Update call to grokdeclarator.
30723 (start_function): Update call to grokdeclarator.
30724 (build_null_declspecs): Set expr and expr_const_operands fields in
30725 return value.
30726 (declspecs_add_type): Handle expressions in typeof specifiers.
30727 * c-parser.c (c_parser_declspecs): Set expr and
30728 expr_const_operands fields for declaration specifiers.
30729 (c_parser_enum_specifier): Likewise.
30730 (c_parser_struct_or_union_specifier): Likewise.
30731 (c_parser_typeof_specifier): Likewise. Update call to
30732 groktypename. Fold expression as needed. Return expressions with
30733 type instead of adding statements.
30734 (c_parser_attributes): Update calls to c_parser_expr_list.
30735 (c_parser_statement_after_labels): Fold expression before passing
30736 to objc_build_throw_stmt.
30737 (c_parser_condition): Fold expression.
30738 (c_parser_asm_operands): Fold expression.
30739 (c_parser_conditional_expression): Use c_save_expr. Update call
30740 to build_conditional_expr.
30741 (c_parser_alignof_expression): Update call to groktypename.
30742 (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
30743 original_code. Fold expression argument of va_arg. Create
30744 C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
30745 argument to va_arg. Update calls to groktypename. Fold array
30746 index for offsetof. Verify that first argument to
30747 __builtin_choose_expr has integer type.
30748 (c_parser_postfix_expression_after_paren_type): Update calls to
30749 groktypename and build_compound_literal. Handle expressions with
30750 side effects in type name.
30751 (c_parser_postfix_expression_after_primary): Update call to
30752 c_parser_expr_list. Set original_code for calls to
30753 __builtin_constant_p.
30754 (c_parser_expr_list): Take extra parameter fold_p. Fold
30755 expressions if requested.
30756 (c_parser_objc_type_name): Update call to groktypename.
30757 (c_parser_objc_synchronized_statement): Fold expression.
30758 (c_parser_objc_receiver): Fold expression.
30759 (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
30760 (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
30761 c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
30762 * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
30763 (struct c_typespec): Add elements expr and expr_const_operands.
30764 (struct c_declspecs): Add elements expr and expr_const_operands.
30765 (groktypename, build_conditional_expr, build_compound_literal):
30766 Update prototypes.
30767 (in_late_binary_op): Declare.
30768 * c-typeck.c (note_integer_operands): New function.
30769 (in_late_binary_op): New variable.
30770 (decl_constant_value_for_broken_optimization): Move to c-common.c
30771 and rename to decl_constant_value_for_optimization.
30772 (default_function_array_conversion): Do not strip nops.
30773 (default_conversion): Do not call
30774 decl_constant_value_for_broken_optimization.
30775 (build_array_ref): Do not fold result.
30776 (c_expr_sizeof_expr): Fold operand. Use C_MAYBE_CONST_EXPR for
30777 result when operand is a VLA.
30778 (c_expr_sizeof_type): Update call to groktypename. Handle
30779 expressions included in type name. Use C_MAYBE_CONST_EXPR for
30780 result when operand names a VLA type.
30781 (build_function_call): Update call to build_compound_literal.
30782 Only fold result for calls to __builtin_* functions. Strip
30783 NOP_EXPR from INTEGER_CST returned from such functions. Fold
30784 the function designator.
30785 (convert_arguments): Fold arguments. Update call to
30786 convert_for_assignment.
30787 (build_unary_op): Handle increment and decrement of
30788 C_MAYBE_CONST_EXPR. Move lvalue checks for increment and
30789 decrement earlier. Fold operand of increment and decrement.
30790 Handle address of C_MAYBE_CONST_EXPR. Only fold expression being
30791 built for integer operand. Wrap returns that are INTEGER_CSTs
30792 without being integer constant expressions or that have integer
30793 constant operands without being INTEGER_CSTs.
30794 (lvalue_p): Handle C_MAYBE_CONST_EXPR.
30795 (build_conditional_expr): Add operand ifexp_bcp. Track whether
30796 result is an integer constant expression or can be used in
30797 unevaluated parts of one and avoid folding and wrap as
30798 appropriate. Fold operands before possibly doing -Wsign-compare
30799 warnings.
30800 (build_compound_expr): Wrap result for C99 if operands can be used
30801 in integer constant expressions.
30802 (build_c_cast): Update call to digest_init. Do not ignore
30803 overflow from casting floating-point constants to integers. Wrap
30804 results that could be confused with integer constant expressions,
30805 null pointer constants or floating-point constants.
30806 (c_cast_expr): Update call to groktypename. Handle expressions
30807 included in type name.
30808 (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR. Fold
30809 lhs inside possible SAVE_EXPR. Fold RHS before assignment.
30810 Update calls to convert_for_assignment.
30811 (convert_for_assignment): Take new parameter
30812 null_pointer_constant. Do not strip nops or call
30813 decl_constant_value_for_broken_optimization. Set
30814 in_late_binary_op for conversions to boolean.
30815 (store_init_value): Update call to digest_init.
30816 (digest_init): Take new parameter null_pointer_constant. Do not
30817 call decl_constant_value_for_broken_optimization. pedwarn for
30818 initializers not constant expressions. Update calls to
30819 convert_for_assignment.
30820 (constructor_nonconst): New.
30821 (struct constructor_stack): Add nonconst element.
30822 (really_start_incremental_init, push_init_level, pop_init_level):
30823 Handle constructor_nonconst and nonconst element.
30824 (set_init_index): Call constant_expression_warning for array
30825 designators.
30826 (output_init_element): Fold value. Set constructor_nonconst as
30827 applicable. pedwarn for initializers not constant expressions.
30828 Update call to digest_init. Call constant_expression_warning
30829 where constant initializers are required.
30830 (process_init_element): Use c_save_expr.
30831 (c_finish_goto_ptr): Fold expression.
30832 (c_finish_return): Fold return value. Update call to
30833 convert_for_assignment.
30834 (c_start_case): Fold switch expression.
30835 (c_process_expr_stmt): Fold expression.
30836 (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
30837 ensure statement expression is not evaluated in constant expression.
30838 (build_binary_op): Track whether results are integer constant
30839 expressions or may occur in such, disable folding and wrap results
30840 as applicable. Fold operands for -Wsign-compare warnings unless
30841 in_late_binary_op.
30842 (c_objc_common_truthvalue_conversion): Handle results folded to
30843 integer constants that are not integer constant expressions.
30844 * doc/extend.texi: Document when typeof operands are evaluated,
30845 that condition of __builtin_choose_expr is an integer constant
30846 expression, and more about use of __builtin_constant_p in
30847 initializers.
30848
30849 2009-03-29 Richard Guenther <rguenther@suse.de>
30850
30851 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
30852 propagate addresses of array references.
30853
30854 2009-03-29 Steven Bosscher <steven@gcc.gnu.org>
30855
30856 * regmove.c (perhaps_ends_bb_p): Remove.
30857 (optimize_reg_copy_1): Don't call perhaps_ends_bb_p. Get basic block
30858 from INSN and check that the main loop stays within that basic block.
30859 (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
30860 (regmove_forward_pass): Split out from regmove_optimize. Use
30861 FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
30862 (regmove_backward_pass): Split out from regmove_optimize. Use
30863 FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
30864 (regmove_optimize): Simplify.
30865
30866 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
30867
30868 PR target/39545
30869 * config/i386/i386.c (classify_argument): Ignore flexible array
30870 member in struct and warn ABI change.
30871
30872 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
30873
30874 * config/i386/i386-protos.h (ix86_agi_dependent): New.
30875
30876 * config/i386/i386.c (ix86_agi_dependent): Rewrite.
30877 (ix86_adjust_cost): Updated.
30878
30879 2009-03-29 Jan Hubicka <jh@suse.cz>
30880
30881 PR middle-end/28850
30882 * tree-pass.h (pass_cleanup_eh): New function.
30883 (remove_unreachable_regions): Break code handling RTL
30884 to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
30885 that can not be reached by runtime.
30886 (can_be_reached_by_runtime): New function.
30887 (label_to_region_map): New function.
30888 (num_eh_regions): New function.
30889 (rtl_remove_unreachable_regions): New function.
30890 (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
30891 (remove_eh_region): New function.
30892 * except.h: Include sbitmap and vecprim.
30893 (remove_eh_region, remove_unreachable_regions, label_to_region_map,
30894 num_eh_regions): Declare.
30895 * passes.c (init_optimization_passes): Schedule cleanup_eh.
30896 * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
30897 * tree-eh.c (tree_remove_unreachable_handlers): New function.
30898 (tree_empty_eh_handler_p): New function.
30899 (cleanup_empty_eh): New function.
30900 (cleanup_eh): New function.
30901 (pass_cleanup_eh): New function.
30902
30903 2009-03-29 Jan Hubicka <jh@suse.cz>
30904
30905 * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
30906 for removed regions.
30907
30908 2009-03-29 Jan Hubicka <jh@suse.cz>
30909
30910 * except.c (dump_eh_tree): Dump all datastructures.
30911
30912 2009-03-29 Jan Hubicka <jh@suse.cz>
30913
30914 * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
30915 (duplicate_eh_regions_1): Likewise.
30916 (duplicate_eh_regions): Likewise; cleanup code gorwing the region
30917 vector; call EH verification.
30918 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
30919 Be ready for region being removed.
30920
30921 2009-03-29 Jan Hubicka <jh@suse.cz>
30922
30923 * bitmap.c (bitmap_last_set_bit): New function.
30924 * bitmap.h (bitmap_last_set_bit): Declare.
30925
30926 2009-03-29 David Ayers <ayers@fsfe.org>
30927
30928 PR objc/27377
30929 * c-typeck.c (build_conditional_expr): Emit ObjC warnings
30930 by calling objc_compare_types and surpress warnings about
30931 incompatible C pointers that are compatible ObjC pointers.
30932
30933 2009-03-29 Adam Nemet <anemet@caviumnetworks.com>
30934
30935 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
30936 call initialize_inline_failed.
30937 (initialize_inline_failed): Move it from here ...
30938 * cgraph.c (initialize_inline_failed): ... to here.
30939 (cgraph_create_edge): Call initialize_inline_failed rather than
30940 setting inline_failed directly.
30941
30942 2009-03-29 Ben Elliston <bje@au.ibm.com>
30943
30944 PR target/32542
30945 * sysv4.opt (msdata): Improve comment.
30946 * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
30947 * sysv4.h (SVR4_ASM_SPEC): Likewise.
30948
30949 2009-03-29 Ben Elliston <bje@au.ibm.com>
30950
30951 PR target/30451
30952 * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
30953 load and store attributes.
30954
30955 2009-03-29 Ben Elliston <bje@au.ibm.com>
30956
30957 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
30958 (ix86_init_builtins): Add built-in function __builtin_huge_valq.
30959 (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
30960 * doc/extend.texi (X86 Built-in Functions): Add index entries for
30961 __builtin_infq and __builtin_huge_valq.
30962
30963 2009-03-28 Anatoly Sokolov <aesok@post.ru>
30964
30965 * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
30966 atmega8m1 devices.
30967 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
30968 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
30969
30970 2009-03-28 Xinliang David Li <davidxl@google.com>
30971
30972 * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
30973 (do_dbg_cnt): New function.
30974
30975 2009-03-28 Jan Hubicka <jh@suse.cz>
30976
30977 Merge from pretty-ipa:
30978
30979 2009-03-27 Jan Hubicka <jh@suse.cz>
30980
30981 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
30982 * tree-pass.h (function_called_by_processed_nodes_p): Declare.
30983 * passes.c (function_called_by_processed_nodes_p): New.
30984 * ipa-pure-const.c (check_call): Fix handling of operands.
30985 (analyze_function): Dump debug output for skipped bodies.
30986 (local_pure_const): Use function_called_by_processed_nodes_p.
30987 * dwarf2out.c (reference_to_unused): Use output.
30988 * passes.c (do_per_function_toporder): Likewise.
30989
30990 2008-11-12 Jan Hubicka <jh@suse.cz>
30991
30992 * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
30993 * ipa-pure-const.c (funct_state_d): Add can throw field; make
30994 state_set_in_source enum
30995 (check_decl): Ignore memory tags; do not set fake looping flags;
30996 dump diagnostics.
30997 (check_operand, check_tree, check_rhs_var, check_lhs_var,
30998 get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
30999 (check_call, analyze_function): Rewrite.
31000 (check_stmt): New.
31001 (add_new_function): Update call of analyze_function.
31002 (generate_summary): Add call of analyze_function.
31003 (propagate): Propagate can_throw; handle state_set_in_source correctly.
31004 (local_pure_const): New function.
31005 (pass_local_pure_const): New pass.
31006 * ipa-inline.c (inline_transform): Set after_inlining.
31007 * tree-eh.c (stmt_can_throw_external): New.
31008 * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
31009 work with aliasing built.
31010 * tree-flow.h (stmt_can_throw_external): New.
31011 * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
31012 and local pure/const pass in early and late optimization queue.
31013
31014 2009-03-28 Martin Jambor <mjambor@suse.cz>
31015
31016 * fold-const.c (get_pointer_modulus_and_residue): New parameter
31017 allow_func_align.
31018 (fold_binary): Allow function decl aligment consideration is the
31019 second argument is integer constant one.
31020 * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
31021 (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
31022 with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
31023
31024 2009-03-28 Jan Hubicka <jh@suse.cz>
31025
31026 * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
31027 * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
31028 * function.h (rtl_data): Add nothrow flag.
31029 * except.c (set_nothrow_function_flags): Use crtl->nothrow;
31030 set DECL_NOTHROW for AVAILABLE functions.
31031
31032 2009-03-28 Jakub Jelinek <jakub@redhat.com>
31033
31034 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
31035 following vector keyword has expansion starting with pixel or bool
31036 keyword, expand vector to __vector and pixel or bool to __pixel or
31037 __bool.
31038
31039 PR c++/39554
31040 * opts.c (warning_disallowed_functions, warn_disallowed_functions,
31041 warn_if_disallowed_function_p): Removed.
31042 (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
31043 * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
31044 warning_if_disallowed_function_p.
31045 * flags.h (warn_if_disallowed_function_p,
31046 warn_disallowed_functions): Removed.
31047 * common.opt (Wdisallowed-function-list=): Removed.
31048 * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
31049
31050 2009-03-28 Richard Guenther <rguenther@suse.de>
31051
31052 PR tree-optimization/38723
31053 * tree-ssa-pre.c (compute_avail): Add all default definitions to
31054 the entry block.
31055
31056 2009-03-28 Jan Hubicka <jh@suse.cz>
31057
31058 * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
31059 test introduced by my previous patch.
31060
31061 2009-03-28 Richard Guenther <rguenther@suse.de>
31062
31063 * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
31064 the PHIs value undefined.
31065
31066 2009-03-28 Jan Hubicka <jh@suse.cz>
31067
31068 * tree-pass.h (pass_fixup_cfg): New pass.
31069 * ipa-inline.c (inline_transform): Set
31070 always_inline_functions_inlined/after_inlining.
31071 * tree-optimize.c (execute_fixup_cfg): Do not set them here.
31072 (pass_fixup_cfg): New pass.
31073 * passes.c (init_optimization_passes): Add fixup_cfg.
31074
31075 2009-03-28 Richard Guenther <rguenther@suse.de>
31076
31077 PR tree-optimization/38458
31078 * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
31079 argument use the arguments copy-of value.
31080
31081 2009-03-28 Richard Guenther <rguenther@suse.de>
31082
31083 PR tree-optimization/38180
31084 * tree-ssa-ccp.c (get_default_value): Simplify.
31085 (likely_value): Likewise.
31086 (surely_varying_stmt_p): Properly handle VOP case.
31087 (ccp_initialize): Likewise.
31088 (ccp_fold): Handle propagating through *&.
31089 (fold_const_aggregate_ref): Also handle decls.
31090
31091 2009-03-28 Jan Hubicka <jh@suse.cz>
31092
31093 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
31094 * cgraph.h (cgraph_node): Likewise.
31095 * cgraphunit.c (cgraph_process_new_functions): Set process flag.
31096 (cgraph_reset_node): Use process flag.
31097 (cgraph_mark_functions_to_output): Likewise.
31098 (cgraph_expand_function): Likewise.
31099 (cgraph_expand_all_functions): Likewise.
31100 (cgraph_output_in_order): Likewise.
31101 * dwarf2out.c (reference_to_unused): Likewise.
31102 * passes.c do_per_function_toporder): Likewise.
31103
31104 2009-03-28 Jan Hubicka <jh@suse.cz>
31105
31106 Bring from lto-branch:
31107
31108 2008-09-03 Doug Kwan <dougkwan@google.com>
31109
31110 * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
31111 enums instead of reason strings.
31112 * cgraph.c (cgraph_create_edge): Same.
31113 (cgraph_inline_failed_string): New function.
31114 * cgraph.h (cgraph_inline_failed_t): New enum type.
31115 (cgraph_inline_failed_string): New prototype.
31116 (struct cgraph_edge): Change type of INLINED_FAILED from constant
31117 char pointer to cgraph_inline_failed_t.
31118 (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
31119 (cgraph_default_inline_p): Ditto.
31120 * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
31121 to cgraph_inline_failed_t pointer.
31122 * cif-code.def: New file.
31123 * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
31124 reason string.
31125 (cgraph_check_inline_limits): Change type of REASON to pointer to
31126 cgraph_inline_failed_t. Replace reason strings with enums.
31127 (cgraph_default_inline_p): Ditto.
31128 (cgraph_recursive_inlining_p): Ditto.
31129 (update_caller_keys): Change type of FAILED_REASON to
31130 cgraph_inline_failed_t.
31131 (cgraph_set_inline_failed): Change type of REASON to pointer to
31132 cgraph_inline_failed_t. Call cgraph_inline_failed_string to
31133 convert enums to strings for text output.
31134 (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
31135 to be of type cgraph_inline_failed_t. Replace reason strings with
31136 enums. Call cgraph_inline_failed_string to covert enums
31137 to strings for text output.
31138 (cgraph_decide_inlining): Replace reason strings with enums.
31139 (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
31140 to cgraph_inline_failed_t type. Call cgraph_inline_failed_string
31141 for text output.
31142 * tree-inline.c (expand_call_inline): Change type of REASON
31143 to cgraph_inline_failed_t. Replace reason strings with enums.
31144 Call cgraph_inline_failed_string for text output.
31145 * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
31146 (cgraph.o): Ditto.
31147
31148 2009-03-28 Jan Hubicka <jh@suse.cz>
31149
31150 * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
31151 cgraph_clone_node): Remove master clone handling.
31152 (cgraph_is_master_clone, cgraph_master_clone): Remove.
31153 * cgraph.h (master_clone): Remove.
31154 (cgraph_is_master_clone, cgraph_master_clone): Remove.
31155 * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
31156 (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
31157
31158 2009-03-28 Jan Hubicka <jh@suse.cz>
31159
31160 * cgraph.c (cgraph_function_body_availability): Functions declared
31161 inline are always safe to assume that it is not going to be replaced.
31162
31163 2009-03-28 Richard Guenther <rguenther@suse.de>
31164
31165 PR tree-optimization/38513
31166 * tree-ssa-pre.c (eliminate): Remove redundant stores.
31167 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
31168 EXC_PTR_EXPR and FILTER_EXPR.
31169 (get_ref_from_reference_ops): Likewise.
31170
31171 2009-03-28 Richard Guenther <rguenther@suse.de>
31172
31173 PR tree-optimization/38968
31174 * tree-vect-analyze.c (vect_compute_data_ref_alignment):
31175 Use FLOOR_MOD_EXPR to compute misalignment.
31176
31177 2009-03-28 Richard Guenther <rguenther@suse.de>
31178
31179 PR tree-optimization/37795
31180 * tree.h (combine_comparisons): Declare.
31181 * fold-const.c (combine_comparisons): Export.
31182 * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
31183 comparisons.
31184 (ifcombine_iforif): Use combine_comparisons.
31185
31186 2009-03-28 Jan Hubicka <jh@suse.cz>
31187
31188 * tree-eh.c (inlinable_call_p): New function.
31189 (make_eh_edges): Use it.
31190 (verify_eh_edges): Use it.
31191 (stmt_can_throw_external, stmt_can_throw_internal): Use it.
31192 * except.c (reachable_next_level): Add inlinable_function argument
31193 (sjlj_find_directly_reachable_regions): Update.
31194 (add_reachable_handler): Do not set saw_any_handlers.
31195 (reachable_next_level): Handle MUST_NOT_THROW more curefully.
31196 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
31197 Add new inlinable call parameter.
31198 (can_throw_internal, can_throw_external): Update.
31199 * except.h (can_throw_internal_1, can_throw_external_1,
31200 foreach_reachable_handler): Update declaration.
31201
31202 2009-03-28 Joseph Myers <joseph@codesourcery.com>
31203
31204 * config/arm/t-arm-coff, config/h8300/coff.h,
31205 config/i386/i386-aout.h, config/i386/i386-coff.h,
31206 config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
31207 config/pdp11/2bsd.h, config/rs6000/aix41.h,
31208 config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
31209 fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
31210 scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
31211 sys-types.h: Remove.
31212 * Makefile.in: Remove protoize and fixproto support and references
31213 in comments.
31214 (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
31215 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
31216 Remove.
31217 (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
31218 (MOSTLYCLEANFILES): Remove protoize$(exeext) and
31219 unprotoize$(exeext).
31220 (rest.encap): Don't depend on $(STMP_FIXPROTO)
31221 (.PHONY): Don't depend on proto.
31222 (libgcc-support): Don't depend on $(STMP_FIXPROTO).
31223 (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
31224 protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
31225 deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
31226 build/gen-protos.o, build/scan.o, xsys-protos.h,
31227 build/fix-header$(build_exeext), build/fix-header.o,
31228 build/scan-decls.o, fixhdr.ready, stmp-fixproto,
31229 stmp-install-fixproto): Remove.
31230 (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
31231 SYSCALLS.c or fixproto files.
31232 (install-common): Don't install protoize.
31233 (install-headers-tar, install-headers-cpio, install-headers-cp):
31234 Don't depend on $(STMP_FIXPROTO).
31235 (install-mkheaders): Don't depend on $(STMP_FIXPROTO). Don't
31236 install fixproto files or write out fixproto settings.
31237 (uninstall): Don't uninstall protoize.
31238 * config.gcc (use_fixproto): Remove.
31239 (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
31240 i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
31241 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
31242 * config/m32r/t-linux (STMP_FIXPROTO): Remove.
31243 * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
31244 * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
31245 * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
31246 * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
31247 * config/t-svr4 (FIXPROTO_DEFINES): Remove.
31248 * config/t-vxworks (STMP_FIXPROTO): Remove.
31249 * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
31250 STMP_FIXPROTO): Remove.
31251 * config.in, configure: Regenerate.
31252 * crtstuff.c (gid_t, uid_t): Don't undefine.
31253 * doc/install.texi: Change m68k-coff to m68k-elf in example.
31254 (arm-*-coff, arm-*-aout: Remove target entries.
31255 (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
31256 Remove mention of AIX 4.1.
31257 (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
31258 * doc/invoke.texi (Running Protoize): Remove.
31259 * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
31260 (Protoize Caveats): Remove.
31261 * tsystem.h: Update comments on headers assumed to exist.
31262
31263 2009-03-27 Vladimir Makarov <vmakarov@redhat.com>
31264
31265 * genautomata.c: Add a new year to the copyright. Add a new
31266 reference.
31267 (struct insn_reserv_decl): Add comments for member bypass_list.
31268 (find_bypass): Remove.
31269 (insert_bypass): New.
31270 (process_decls): Use insert_bypass.
31271 (output_internal_insn_latency_func): Output all bypasses with the
31272 same input insn in one switch case.
31273
31274 * rtl.def (define_bypass): Describe bypass choice.
31275 * doc/md.texi (define_bypass): Ditto.
31276
31277 2009-03-27 Richard Guenther <rguenther@suse.de>
31278
31279 * gimplify.c (mark_addressable): Export.
31280 * tree-flow.h (mark_addressable): Declare.
31281 * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
31282 * tree-ssa.c (verify_phi_args): Verify that address taken
31283 variables have TREE_ADDRESSABLE set.
31284
31285 2009-03-27 Richard Guenther <rguenther@suse.de>
31286
31287 * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
31288 (build_fold_addr_expr_with_type): ... this. Remove in_fold handling.
31289 Do not mark decls TREE_ADDRESSABLE.
31290 (build_fold_addr_expr): Adjust.
31291 (fold_addr_expr): Remove.
31292 (fold_unary): Use build_fold_addr_expr.
31293 (fold_comparison): Likewise.
31294 (split_address_to_core_and_offset): Likewise.
31295 * coverage.c (tree_coverage_counter_addr): Mark the array decl
31296 TREE_ADDRESSABLE.
31297 * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
31298 (gimplify_modify_expr_to_memcpy): Mark source and destination
31299 addressable.
31300 * omp-low.c (create_omp_child_function): Mark the object decl
31301 TREE_ADDRESSABLE.
31302 (lower_rec_input_clauses): Mark the var we take the address of
31303 TREE_ADDRESSABLE.
31304 (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
31305
31306 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
31307
31308 PR middle-end/39315
31309 * cfgexpand.c (expand_one_stack_var_at): Change alignment
31310 limit to MAX_SUPPORTED_STACK_ALIGNMENT.
31311
31312 2009-03-27 Richard Guenther <rguenther@suse.de>
31313
31314 PR tree-optimization/39120
31315 * tree-ssa-structalias.c (handle_rhs_call): Fill out return
31316 constraints.
31317 (handle_lhs_call): Process return constraints. Add escape
31318 constraints if necessary.
31319 (handle_const_call): Fill out return constraints. Make nested
31320 case more precise. Avoid consttmp if possible.
31321 (handle_pure_call): Fill out return constraints. Avoid
31322 callused if possible.
31323 (find_func_aliases): Simplify call handling.
31324
31325 2009-03-27 Richard Guenther <rguenther@suse.de>
31326
31327 PR tree-optimization/39120
31328 * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
31329 as a representative.
31330 (solve_graph): Do propagate CALLUSED.
31331 (handle_pure_call): Use a scalar constraint from CALLUSED for
31332 the return value.
31333 (find_what_p_points_to): CALLUSED shall not appear in poins-to
31334 solutions.
31335
31336 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
31337
31338 PR c/39323
31339 * c-common.c (handle_aligned_attribute): Properly check alignment
31340 overflow. Use (1U << i) instead of (1 << i).
31341
31342 * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
31343
31344 * expr.h (get_mem_align_offset): Updated.
31345
31346 * tree.h (tree_decl_common): Change align to "unsigned int" and
31347 move it before pointer_alias_set.
31348
31349 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
31350 Jakub Jelinek <jakub@redhat.com>
31351
31352 PR target/38034
31353 * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
31354 gr_register_operand with gr_reg_or_0_operand.
31355 (cmpxchg_rel_di): Likewise.
31356 (sync_lock_test_and_set<mode>): Likewise.
31357
31358 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
31359
31360 * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
31361 (true_regnum): Likewise.
31362
31363 * rtlanal.c (subreg_info): Moved to ...
31364 * rtl.h (subreg_info): Here. New.
31365 (subreg_get_info): New.
31366
31367 * rtlanal.c (subreg_get_info): Make it extern.
31368
31369 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
31370
31371 PR target/39472
31372 * config/i386/i386.c (ix86_abi): New.
31373 (override_options): Handle -mabi=.
31374 (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
31375 (ix86_call_abi_override): Likewise.
31376 (init_cumulative_args): Likewise.
31377 (function_arg_advance): Likewise.
31378 (function_arg_64): Likewise.
31379 (function_arg): Likewise.
31380 (ix86_pass_by_reference): Likewise.
31381 (ix86_function_value_regno_p): Likewise.
31382 (ix86_build_builtin_va_list_abi): Likewise.
31383 (setup_incoming_varargs_64): Likewise.
31384 (is_va_list_char_pointer): Likewise.
31385 (ix86_init_machine_status): Likewise.
31386 (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
31387 (ix86_function_type_abi): Return enum calling_abi. Rewrite
31388 for 64bit. Replace DEFAULT_ABI with ix86_abi.
31389 (ix86_function_abi): Make it static and return enum calling_abi.
31390 (ix86_cfun_abi): Return enum calling_abi. Replace DEFAULT_ABI
31391 with ix86_abi.
31392 (ix86_fn_abi_va_list): Updated.
31393
31394 * config/i386/i386.h (ix86_abi): New.
31395 (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
31396 (CONDITIONAL_REGISTER_USAGE): Likewise.
31397 (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
31398 (machine_function): Likewise.
31399
31400 * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
31401 with ix86_abi.
31402 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
31403 (STACK_BOUNDARY): Likewise.
31404 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
31405
31406 * config/i386/i386.opt (mabi=): New.
31407
31408 * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
31409 return enum calling_abi.
31410 (ix86_function_type_abi): Likewise.
31411 (ix86_function_abi): Removed.
31412
31413 * doc/invoke.texi: Document -mabi= option for x86.
31414
31415 2009-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
31416
31417 * builtins.c (real_dconstp): Delete.
31418 (fold_builtin_logarithm): Remove inaccurate log(e) special case.
31419
31420 2009-03-27 Dodji Seketeli <dodji@redhat.com>
31421 Jakub Jelinek <jakub@redhat.com>
31422
31423 PR debug/37959
31424 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
31425 (gen_subprogram_die): When a function is explicit, generate the
31426 DW_AT_explicit attribute.
31427 * langhooks.h (struct lang_hooks_for_decls): Add
31428 function_decl_explicit_p langhook.
31429 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
31430 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
31431
31432 2009-03-27 Jakub Jelinek <jakub@redhat.com>
31433
31434 * builtins.c (fold_builtin_memory_op): Optimize memmove
31435 into memcpy if we can prove source and destination don't overlap.
31436
31437 * tree-inline.c: Include gt-tree-inline.h.
31438 (clone_fn_id_num): New variable.
31439 (clone_function_name): New function.
31440 (tree_function_versioning): Use it.
31441 * Makefile.in (GTFILES): Add tree-inline.c.
31442
31443 2009-03-27 Mark Mitchell <mark@codesourcery.com>
31444
31445 * BASE-VER: Change to 4.5.0.
31446
31447 2009-03-27 Xinliang David Li <davidxl@google.com>
31448
31449 PR tree-optimization/39557
31450 * tree-ssa.c (warn_uninitialized_vars): free postdom info.
31451
31452 2009-03-27 Xinliang David Li <davidxl@google.com>
31453
31454 PR tree-optimization/39548
31455 * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
31456 candidate check.
31457
31458 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
31459
31460 * c-common.c (pointer_int_sum): Use %wd on return from
31461 tree_low_cst.
31462
31463 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
31464
31465 * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
31466 on return from tree_low_cst.
31467
31468 2009-03-27 Andrew Pinski <andrew_pinski@playstation.sony.com>
31469
31470 PR c++/36799
31471 * ginclude/stdarg.h (va_copy): Define also for
31472 __GXX_EXPERIMENTAL_CXX0X__.
31473
31474 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
31475
31476 PR c++/35652
31477 * builtins.h (c_strlen): Do not warn here.
31478 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
31479 * c-common.c (pointer_int_sum): Take an explicit location.
31480 Warn about offsets out of bounds.
31481 * c-common.h (pointer_int_sum): Adjust declaration.
31482
31483 2009-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31484
31485 * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
31486 markup glitch.
31487
31488 2009-03-26 Jakub Jelinek <jakub@redhat.com>
31489
31490 PR c++/39554
31491 * opts.c (warn_if_disallowed_function_p): Don't assume
31492 get_callee_fndecl must return non-NULL.
31493
31494 2009-03-26 Vladimir Makarov <vmakarov@redhat.com>
31495
31496 PR rtl-optimization/39522
31497 * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
31498 when reg_reloaded_valid is set.
31499
31500 2009-03-26 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31501
31502 * config/spu/divv2df3.c: New file.
31503 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
31504 (DPBIT_FUNCS): Filter out _div_df.
31505
31506 2009-03-26 Bernd Schmidt <bernd.schmidt@analog.com>
31507
31508 * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
31509 a jump insn, count that jump in the distance to the loop start.
31510
31511 2009-03-25 Kaz Kojima <kkojima@gcc.gnu.org>
31512
31513 PR target/39523
31514 * config/sh/sh.c (calc_live_regs): Fix condition for global
31515 registers except PIC_OFFSET_TABLE_REGNUM.
31516
31517 2009-03-25 Kai Tietz <kai.tietz@onevision.com>
31518
31519 PR/39518
31520 * doc/invoke.texi (-mconsole): New.
31521 (-mcygwin): New.
31522 (-mno-cygwin): New.
31523 (-mdll): New.
31524 (-mnop-fun-dllimport): New.
31525 (-mthread): New.
31526 (-mwin32): New.
31527 (-mwindows): New.
31528 (sub section "i386 and x86-64 Windows Options"): New.
31529
31530 2009-03-25 Ralf Corsépius <ralf.corsepius@rtems.org>
31531
31532 * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
31533 * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
31534
31535 2009-03-25 Richard Guenther <rguenther@suse.de>
31536
31537 PR middle-end/39497
31538 * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
31539 of -Wno-error.
31540
31541 2009-03-25 Andrey Belevantsev <abel@ispras.ru>
31542
31543 * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
31544 neither of haifa/selective schedulers are working.
31545
31546 2009-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31547
31548 * doc/invoke.texi (Debugging Options): Fix description of
31549 -fno-merge-debug-strings.
31550
31551 2009-03-24 Hans-Peter Nilsson <hp@axis.com>
31552
31553 * config/cris/libgcc.ver: New version-script.
31554 * config/cris/t-linux (SHLIB_MAPFILES): Use it.
31555
31556 * configure.ac <GAS features, nop mnemonic>: Add pattern
31557 crisv32-*-* for "nop".
31558 <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
31559 * configure: Regenerate.
31560
31561 2009-03-24 Ira Rosen <irar@il.ibm.com>
31562
31563 PR tree-optimization/39529
31564 * tree-vect-transform.c (vect_create_data_ref_ptr): Call
31565 mark_sym_for_renaming for the tag copied to the new vector
31566 pointer.
31567
31568 2009-03-24 Arthur Loiret <aloiret@debian.org>
31569
31570 * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
31571 * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
31572 EXTRA_SPEC_FUNCTIONS.
31573 (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
31574 * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
31575 * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
31576 -march and -mtune options.
31577
31578 2009-03-24 Ralf Corsépius <ralf.corsepius@rtems.org>
31579
31580 * config/m68k/t-rtems: Add m5329 multilib.
31581
31582 2009-03-24 Dodji Seketeli <dodji@redhat.com>
31583 Jakub Jelinek <jakub@redhat.com>
31584
31585 PR debug/39524
31586 * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
31587 nodes.
31588
31589 2009-03-23 Jakub Jelinek <jakub@redhat.com>
31590
31591 PR c/39495
31592 * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
31593 instead of c_parser_expression_conv, if original_code isn't one of the
31594 4 allowed comparison codes, fail.
31595
31596 2009-03-23 Richard Guenther <rguenther@suse.de>
31597
31598 * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
31599 * tree.h (struct tree_type): Likewise.
31600 * reload.h (struct insn_chain): Likewise.
31601 * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
31602 * function.h (struct function): Likewise.
31603 * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
31604
31605 2009-03-23 Jakub Jelinek <jakub@redhat.com>
31606
31607 PR tree-optimization/39516
31608 * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
31609
31610 2009-03-23 Bingfeng Mei <bmei@broadcom.com>
31611
31612 * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
31613 should be set true if BITS_PER_WORD of target is bigger than 32
31614
31615 2009-03-22 Hans-Peter Nilsson <hp@axis.com>
31616
31617 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
31618 Translate -B-options to -rpath-link. Correct existing
31619 rpath-link and conditionalize on !nostdlib.
31620
31621 2009-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31622
31623 * doc/extend.texi (Function Attributes, Variable Attributes):
31624 Fix typos.
31625 * doc/invoke.texi (Debugging Options, Optimize Options)
31626 (i386 and x86-64 Options, MCore Options): Likewise.
31627
31628 2009-03-20 Jakub Jelinek <jakub@redhat.com>
31629
31630 PR debug/37890
31631 * dwarf2out.c (gen_namespace_die): Add context_die argument and use
31632 it for block local namespace aliases.
31633 (gen_decl_die): Pass context_die to gen_namespace_die.
31634
31635 2009-03-19 Jakub Jelinek <jakub@redhat.com>
31636
31637 PR c/39495
31638 * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
31639 minimum or maximum value.
31640
31641 2009-03-19 Alexandre Oliva <aoliva@redhat.com>
31642
31643 * reginfo.c (globalize_reg): Recompute derived reg sets.
31644
31645 2009-03-19 Ozkan Sezer <sezeroz@gmail.com>
31646
31647 PR target/39063
31648 * libgcc2.c (mprotect): Do not use signed arguments for
31649 VirtualProtect, use DWORD arguments. Also fix the 'may
31650 be used uninitialized' warning for the np variable.
31651
31652 2009-03-19 Jakub Jelinek <jakub@redhat.com>
31653
31654 PR target/39496
31655 * config/i386/i386.c (ix86_function_regparm): Don't optimize local
31656 functions using regparm calling conventions when not optimizing.
31657 (ix86_function_sseregparm): Similarly for sseregparm calling
31658 conventions.
31659
31660 2009-03-19 Li Feng <nemokingdom@gmail.com>
31661
31662 PR middle-end/39500
31663 * tree-data-ref.c (analyze_subscript_affine_affine): There is no
31664 dependence if the first conflict is after niter iterations.
31665
31666 2009-03-19 Hans-Peter Nilsson <hp@axis.com>
31667
31668 PR middle-end/38609
31669 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
31670 functions with dynamic stack-pointer adjustments.
31671
31672 2009-03-19 Ben Elliston <bje@au.ibm.com>
31673
31674 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
31675 option; change to -msdata=data.
31676
31677 2009-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31678
31679 * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
31680 and -fopenmp.
31681
31682 2009-03-18 Eric Botcazou <ebotcazou@adacore.com>
31683
31684 PR target/35180
31685 * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
31686
31687 2009-03-18 Sandra Loosemore <sandra@codesourcery.com>
31688
31689 * doc/invoke.texi (Code Gen Options): Expand discussion of
31690 -fno-common.
31691
31692 2009-03-18 Jakub Jelinek <jakub@redhat.com>
31693
31694 * dse.c (struct group_info): Reorder fields for 64-bit hosts.
31695 * matrix-reorg.c (struct matrix_info): Likewise.
31696 * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
31697 * rtl.h (struct mem_attrs): Likewise.
31698 * df.h (struct df): Likewise.
31699 * tree-data-ref.h (struct data_dependence_relation): Likewise.
31700 * ira-int.h (struct ira_allocno): Likewise.
31701 * df-scan.c (struct df_collection_rec): Likewise.
31702 * ira.c (struct equivalence): Likewise.
31703 * function.c (struct temp_slot): Likewise.
31704 * cfgloop.h (struct loop): Likewise.
31705
31706 PR debug/39485
31707 * function.c (use_register_for_decl): When not optimizing, disregard
31708 register keyword for variables with types containing methods.
31709
31710 2009-03-18 Sebastian Pop <sebastian.pop@amd.com>
31711
31712 PR middle-end/39447
31713 * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
31714 (is_simple_operand): Call contains_component_ref_p before calling data
31715 reference analysis that would fail on COMPONENT_REFs.
31716
31717 * tree-vrp.c (search_for_addr_array): Fix formatting.
31718
31719 2009-03-18 Richard Guenther <rguenther@suse.de>
31720
31721 * tree-vect-transform.c (vect_loop_versioning): Fold the
31722 generated comparisons.
31723 * tree-vectorizer.c (set_prologue_iterations): Likewise.
31724 (slpeel_tree_peel_loop_to_edge): Likewise.
31725
31726 2009-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31727
31728 PR middle-end/37805
31729 * opts.c (print_specific_help): In addition to `undocumented',
31730 accept `separate' and `joined' flags if passed alone. Describe
31731 output by the first matched one of those.
31732 (common_handle_option): Skip over empty strings.
31733 * gcc.c (display_help): Fix help string for `--help='.
31734 * doc/invoke.texi (Option Summary, Overall Options): With
31735 `--help=', classes and qualifiers can both be repeated, but
31736 only the latter can be negated. One should not pass only
31737 negated qualifiers. Fix markup and examples.
31738
31739 Revert
31740 2008-10-14 Jakub Jelinek <jakub@redhat.com>
31741 PR middle-end/37805
31742 * opts.c (common_handle_option): Don't ICE on -fhelp=joined
31743 and -fhelp=separate.
31744
31745 2009-03-17 Jing Yu <jingyu@google.com>
31746
31747 PR middle-end/39378
31748 * function.h (struct rtl_data): Move is_thunk from here...
31749 (struct function): ...to here.
31750 * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
31751 * varasm.c (assemble_start_function): Change is_thunk from crtl to
31752 cfun.
31753 * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
31754 cfun.
31755 (alpha_does_function_need_gp, alpha_start_function): Likewise.
31756 (alpha_output_function_end_prologue): Likewise.
31757 (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
31758 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
31759 (rs6000_output_function_epilogue): Likewise.
31760 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
31761
31762 2009-03-17 Uros Bizjak <ubizjak@gmail.com>
31763
31764 PR target/39482
31765 * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
31766 from different units in a single alternative.
31767 (*truncdfsf_i387): Ditto.
31768 (*truncxfsf2_mixed): Ditto.
31769 (*truncxfdf2_mixed): Ditto.
31770
31771 2009-03-17 Jakub Jelinek <jakub@redhat.com>
31772
31773 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
31774 non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
31775
31776 PR debug/39474
31777 * tree-ssa-live.c (remove_unused_locals): Don't remove local
31778 unused non-artificial variables when not optimizing.
31779
31780 PR debug/39471
31781 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
31782 DW_TAG_imported_module even if decl is IMPORTED_DECL with
31783 NAMESPACE_DECL in its DECL_INITIAL.
31784
31785 PR middle-end/39443
31786 * optabs.c (set_user_assembler_libfunc): New function.
31787 * expr.h (set_user_assembler_libfunc): New prototype.
31788 * c-common.c: Include libfuncs.h.
31789 (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
31790 for memcmp, memset, memcpy, memmove and abort.
31791 * Makefile.in (c-common.o): Depend on libfuncs.h.
31792
31793 PR debug/39412
31794 * dwarf2out.c (gen_inlined_enumeration_type_die,
31795 gen_inlined_structure_type_die, gen_inlined_union_type_die,
31796 gen_tagged_type_instantiation_die): Removed.
31797 (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
31798 do nothing.
31799
31800 2009-03-17 Janis Johnson <janis187@us.ibm.com>
31801
31802 PR testsuite/38526
31803 * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
31804 its use.
31805 (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
31806 (check-parallel-%): Ditto.
31807 (check-consistency): Ditto.
31808
31809 2009-03-17 Kai Tietz <kai.tietz@onevision.com>
31810
31811 * ipa-struct-reorg.c (create_general_new_stmt): Initialize
31812 local variable rhs by NULL_TREE.
31813
31814 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
31815
31816 PR target/39477
31817 * doc/extend.texi: Correct register behavior for regparm on Intel 386.
31818
31819 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
31820
31821 PR target/39476
31822 * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
31823
31824 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
31825
31826 PR target/39473
31827 * config/i386/i386.c (ix86_expand_call): Check extra clobbers
31828 for ms->sysv ABI calls only in 64bit mode.
31829
31830 * config/i386/i386.md (untyped_call): Support 32bit.
31831
31832 2009-03-16 H.J. Lu <hongjiu.lu@intel.com>
31833
31834 * doc/extend.texi: Replace x86_65 with x86_64.
31835
31836 2009-03-16 Jakub Jelinek <jakub@redhat.com>
31837
31838 PR tree-optimization/39455
31839 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
31840 mismatches for POINTER_TYPE_P (type).
31841 (number_of_iterations_le): Likewise.
31842
31843 2009-03-16 Hariharan Sandanagobalane <hariharan@picochip.com>
31844
31845 * config/picochip/picochip.c: Removed profiling support.
31846 * config/picochip/picochip.md: Removed profiling instruction.
31847 * config/picochip/picochip.h: Removed profiling builtin.
31848
31849 2009-03-16 Joseph Myers <joseph@codesourcery.com>
31850
31851 * doc/install.texi (--with-host-libstdcxx): Document.
31852
31853 2009-03-14 Anatoly Sokolov <aesok@post.ru>
31854
31855 PR target/34299
31856 * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
31857 generate a warning if the function name does not begin with
31858 "__vector" and the function has either the 'signal' or 'interrupt'
31859 attribute, from here to ...
31860 (avr_declare_function_name): ...here. New function.
31861 * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
31862 * config/avr/avr-protos.h (avr_declare_function_name): Declare.
31863
31864 2009-03-14 Jakub Jelinek <jakub@redhat.com>
31865
31866 PR bootstrap/39454
31867 * cse.c (fold_rtx): Don't modify original const_arg1 when
31868 canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
31869 separate variable instead.
31870 * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
31871 from out of range shift counts.
31872 (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
31873
31874 2009-03-13 Catherine Moore <clm@codesourcery.com>
31875
31876 * config/i386/x-mingw32 (host-mingw32.o): Replace
31877 diagnostic.h with $(DIAGNOSTIC_H).
31878
31879 2009-03-12 Jakub Jelinek <jakub@redhat.com>
31880
31881 PR target/39431
31882 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
31883 predicate.
31884 * config/i386/sync.md (sync_compare_and_swap<mode>,
31885 sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
31886 if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
31887 into a register.
31888 (sync_double_compare_and_swapdi_pic,
31889 sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
31890 cmpxchg8b_pic_memory_operand instead of just memory_operand.
31891
31892 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
31893
31894 PR target/39445
31895 * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
31896
31897 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
31898
31899 PR target/39327
31900 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
31901 (avx_addsubv4df3): Likewise.
31902 (*avx_addsubv4sf3): Likewise.
31903 (sse3_addsubv4sf3): Likewise.
31904
31905 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
31906
31907 PR target/38824
31908 * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
31909
31910 2009-03-12 Vladimir Makarov <vmakarov@redhat.com>
31911
31912 PR debug/39432
31913 * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
31914 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
31915 registers for allocnos created from user-defined variables.
31916
31917 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31918
31919 PR target/39181
31920 * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
31921 of non-integer mode as well.
31922
31923 2009-03-11 Adam Nemet <anemet@caviumnetworks.com>
31924
31925 * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
31926 for functions for which the parameter types are unknown.
31927
31928 2009-03-11 Jakub Jelinek <jakub@redhat.com>
31929
31930 PR target/39137
31931 * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
31932 * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
31933 * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
31934 * config/i386/i386.c (ix86_local_alignment): For
31935 -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
31936 long long variables on the stack to avoid dynamic realignment.
31937 Allow the first argument to be a decl rather than type.
31938 * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
31939
31940 2009-03-11 Nick Clifton <nickc@redhat.com>
31941
31942 PR target/5362
31943 * config/mcore/mcore.opt: Remove deprecated m4align and m8align
31944 options.
31945 Add description to mno-lsim option.
31946 * config/mcore/mcore.h: Remove comment about deprecated m4align
31947 option.
31948 (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
31949 * doc/invoke.texi: Add description of mno-lsim and
31950 mstack-increment options.
31951
31952 * config/fr30/fr30.opt: Document the -mno-lsim option.
31953 * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
31954 and -mno-lsim options.
31955
31956 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31957
31958 * fold-const.c (fold_comparison): Only call fold_inf_compare
31959 if the mode supports infinities.
31960
31961 2009-03-11 Jason Merrill <jason@redhat.com>
31962
31963 PR debug/39086
31964 * tree-nrv.c (tree_nrv): Don't do this optimization if the front
31965 end already did. Notice GIMPLE_CALL modifications of the result.
31966 Don't copy debug information from an ignored decl or a decl from
31967 another function.
31968
31969 2009-03-10 Richard Guenther <rguenther@suse.de>
31970 Nathan Froyd <froydnj@codesourcery.com>
31971
31972 PR middle-end/37850
31973 * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
31974 (__divMODE3): Likewise.
31975
31976 2009-03-09 Jakub Jelinek <jakub@redhat.com>
31977
31978 PR tree-optimization/39394
31979 * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
31980 DECL_SIZE_UNIT of variable length FIELD_DECLs.
31981
31982 2009-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31983
31984 * recog.c (verfiy_changes): Disallow renaming of hard regs in
31985 inline asms for register asm ("") declarations.
31986
31987 2009-03-09 Eric Botcazou <ebotcazou@adacore.com>
31988
31989 * fold-const.c (fold_unary): Fix comment.
31990
31991 2009-03-07 Jan Hubicka <jh@suse.cz>
31992
31993 PR target/39361
31994 * tree-inline.c (setup_one_parameter): Do replacement of const
31995 argument by constant in SSA form.
31996
31997 2009-03-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31998
31999 PR middle-end/38028
32000 * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
32001 determine alignment passed to assign_stack_local.
32002 (assign_parms_unsplit_complex): Likewise.
32003 * except.c (sjlj_build_landing_pads): Likewise.
32004
32005 2009-03-06 Jakub Jelinek <jakub@redhat.com>
32006
32007 PR middle-end/39360
32008 * tree-flow.h (add_referenced_var): Return bool instead of void.
32009 * tree-dfa.c (add_referenced_var): Return result of
32010 referenced_var_check_and_insert call.
32011 * tree-inline.c (expand_call_inline): Call add_referenced_var instead
32012 of referenced_var_check_and_insert.
32013
32014 PR debug/39372
32015 * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
32016 (gen_variable_die): Emit DW_AT_location on abstract static variable's
32017 DIE, don't emit it if abstract origin already has it.
32018 * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
32019 BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
32020
32021 2009-03-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
32022
32023 * genpreds.c (needs_variable): Fix parentheses at variable name
32024 detection.
32025 (write_tm_constrs_h): Indent generated code.
32026
32027 2009-03-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32028
32029 * doc/extend.texi (Function Attributes): Add documentation
32030 for isr attributes.
32031
32032 2009-03-06 Jakub Jelinek <jakub@redhat.com>
32033
32034 PR debug/39387
32035 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
32036 take locus from its DECL_SOURCE_LOCATION instead of input_location.
32037
32038 2009-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
32039
32040 * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
32041 the loop as bad.
32042
32043 2009-03-05 Jakub Jelinek <jakub@redhat.com>
32044
32045 PR debug/39379
32046 * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
32047 with blocks containing IMPORTED_DECLs in BLOCK_VARS.
32048
32049 2009-03-05 Uros Bizjak <ubizjak@gmail.com>
32050
32051 * config/i386/i386.md (R8_REG, R9_REG): New constants.
32052 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
32053 constants instead of magic numbers.
32054 (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
32055 (QI_REG_P): Ditto.
32056 * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
32057 (x86_64_ms_abi_int_parameter_registers): Ditto.
32058 (x86_64_int_return_registers): Ditto.
32059 (ix86_maybe_switch_abi): Ditto.
32060 (ix86_expand_call): Ditto for clobbered_registers array.
32061 (ix86_hard_regno_mode_ok): Ditto.
32062 (x86_extended_QIreg_mentioned_p): Ditto.
32063
32064 2009-03-05 J"orn Rennecke <joern.rennecke@arc.com>
32065
32066 PR tree-optimization/39349
32067 * cse.c (cse_insn): Fix loop to stop at VOIDmode.
32068
32069 * combine.c (gen_lowpart_for_combine): Use omode when generating
32070 clobber.
32071
32072 2009-03-04 J"orn Rennecke <joern.rennecke@arc.com>
32073
32074 PR rtl-optimization/39235
32075 * loop-iv.c (get_simple_loop_desc): Use XCNEW.
32076
32077 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
32078
32079 * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
32080
32081 2009-03-04 Richard Guenther <rguenther@suse.de>
32082
32083 PR tree-optimization/39362
32084 * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
32085 that occur in abnormal PHIs should be varying.
32086
32087 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
32088
32089 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
32090 Extend comments.
32091 (simple_iv): Take loop as an argument instead of statement.
32092 * tree-scalar-evolution.h (simple_iv): Declaration changed.
32093 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
32094 to simple_iv.
32095 * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
32096 Ditto.
32097 * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
32098 * matrix-reorg.c (analyze_transpose): Ditto.
32099 * tree-data-ref.c (dr_analyze_innermost): Ditto.
32100 * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
32101 * tree-predcom.c (ref_at_iteration): Ditto.
32102 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
32103
32104 2009-03-04 Richard Guenther <rguenther@suse.de>
32105
32106 PR tree-optimization/39358
32107 * tree-ssa-structalias.c (do_sd_constraint): Fix check for
32108 escaped_id and callused_id.
32109 (solve_graph): Likewise.
32110
32111 2009-03-04 Richard Guenther <rguenther@suse.de>
32112
32113 PR tree-optimization/39339
32114 * tree-sra.c (try_instantiate_multiple_fields): Make it
32115 no longer ICE on the above.
32116
32117 2009-03-03 Joseph Myers <joseph@codesourcery.com>
32118
32119 * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
32120 that fits within Pmode.
32121
32122 2009-03-03 Steve Ellcey <sje@cup.hp.com>
32123
32124 PR middle-end/10109
32125 * tm.texi (LIBCALL_VALUE): Update description.
32126
32127 2009-03-03 Steve Ellcey <sje@cup.hp.com>
32128
32129 PR middle-end/34443
32130 * doc/extend.texi (section): Update description.
32131
32132 2009-03-03 H.J. Lu <hongjiu.lu@intel.com>
32133
32134 PR middle-end/39345
32135 * tree-inline.c (remapped_type): New.
32136 (can_be_nonlocal): Call remapped_type instead of remap_type.
32137
32138 2009-03-03 Jakub Jelinek <jakub@redhat.com>
32139
32140 PR fortran/39354
32141 * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
32142 TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
32143
32144 2009-03-03 Richard Guenther <rguenther@suse.de>
32145
32146 PR middle-end/39272
32147 * tree.c (tree_nonartificial_location): New function.
32148 * tree.h (tree_nonartificial_location): Declare.
32149 * builtins.c (expand_builtin_memory_chk): Provide location
32150 of the call location for artificial function pieces.
32151 (maybe_emit_chk_warning): Likewise.
32152 (maybe_emit_sprintf_chk_warning): Likewise.
32153 (maybe_emit_free_warning): Likewise.
32154 * expr.c (expand_expr_real_1): Likewise.
32155
32156 2009-03-03 Jakub Jelinek <jakub@redhat.com>
32157
32158 PR tree-optimization/39343
32159 * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
32160 COMPONENT_REF t has ARRAY_TYPE.
32161
32162 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
32163
32164 PR middle-end/39335
32165 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
32166 when the type precision of the induction variable should be
32167 larger than the type precision of nit.
32168 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
32169 * graphite.c (graphite_loop_normal_form): Same.
32170 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
32171
32172 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
32173
32174 * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
32175 (*call_1_rex64_ms_sysv): Use named constants instead of magic
32176 numbers to describe clobbered registers.
32177 (*call_value_0_rex64_ms_sysv): Ditto.
32178 * config/i386/mmx.md (mmx_emms): Ditto.
32179 (mmx_femms): Ditto.
32180
32181 2009-03-02 Richard Sandiford <rdsandiford@googlemail.com>
32182
32183 * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
32184 of ABI_64.
32185
32186 2009-03-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32187
32188 * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
32189 (spu_section_type_flags): New function.
32190
32191 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
32192
32193 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
32194 reg_class_contents of FLOAT_REGS into a temporary.
32195
32196 2009-03-02 Richard Guenther <rguenther@suse.de>
32197 Ira Rosen <irar@il.ibm.com>
32198
32199 PR tree-optimization/39318
32200 * tree-vect-transform.c (vectorizable_call): Transfer the EH region
32201 information to the vectorized statement.
32202
32203 2009-03-01 Uros Bizjak <ubizjak@gmail.com>
32204
32205 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
32206 variable. Use defined names instead of magic constants for REX SSE
32207 registers.
32208
32209 2009-03-01 Richard Guenther <rguenther@suse.de>
32210
32211 PR tree-optimization/39331
32212 * omp-low.c (lower_send_shared_vars): Do not receive new
32213 values for the reference of DECL_BY_REFERENCE parms or results.
32214
32215 2009-03-01 Jan Hubicka <jh@suse.cz>
32216
32217 PR debug/39267
32218 * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
32219 BLOCK_NONLOCALIZED_VAR): New macros.
32220 (tree_block): Add nonlocalized_vars.
32221 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
32222 gen_decl_die): Add origin argument. Allow generation of die with
32223 origin at hand only.
32224 (gen_member_die, gen_type_die_with_usage, force_decl_die,
32225 declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
32226 of gen_*.
32227 (gen_block_die): Fix checking for unused blocks.
32228 (process_scope_var): Break out from .... ; work with origins only.
32229 (decls_for_scope) ... here; process nonlocalized list.
32230 (dwarf2out_ignore_block): Look for nonlocalized vars.
32231 * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
32232 vars.
32233 (dump_scope_block): Dump them.
32234 * tree-inline.c (remap_decls): Handle nonlocalized vars.
32235 (remap_block): Likewise.
32236 (can_be_nonlocal): New predicate.
32237 (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
32238
32239 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32240
32241 * configure: Regenerate.
32242
32243 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32244
32245 * optc-gen.awk: No need to duplicate option flags twice.
32246 Reuse help texts for duplicate options which do not have any.
32247
32248 * gcc.c (display_help): Document --version.
32249
32250 * gcc.c (main): If print_help_list and verbose_flag, ensure
32251 driver output comes before subprocess output.
32252
32253 * optc-gen.awk: Assign all remaining fields to help string,
32254 space-separated, for multi-line help in *.opt.
32255
32256 * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
32257 -Wno-pedantic-ms-format is for MinGW targets only.
32258
32259 * doc/options.texi (Option file format): Fix bad indentation,
32260 restoring dropped sentence.
32261
32262 2009-02-28 Jan Hubicka <jh@suse.cz>
32263
32264 * tree-inline.c (tree_function_versioning): Output debug info.
32265
32266 2009-02-28 Jan Hubicka <jh@suse.cz>
32267
32268 PR debug/39267
32269 * tree-inline.c (setup_one_parameter): Do not copy propagate
32270 arguments when not optimizing.
32271
32272 2009-02-28 H.J. Lu <hongjiu.lu@intel.com>
32273
32274 PR target/39327
32275 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
32276 (avx_addsubv4df3): Likewise.
32277 (*avx_addsubv4sf3): Likewise.
32278 (sse3_addsubv4sf3): Likewise.
32279 (*avx_addsubv2df3): Likewise.
32280 (sse3_addsubv2df3): Likewise.
32281 (avx_unpckhps256): Correct item selectors.
32282 (avx_unpcklps256): Likewise.
32283 (avx_unpckhpd256): Likewise.
32284 (avx_unpcklpd256): Likewise.
32285
32286 2009-02-28 Jan Hubicka <jh@suse.cz>
32287
32288 * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
32289 static vars.
32290 (copy_arguments_for_versioning): If var is declared don't declare it.
32291 (tree_function_versioning): First setup substitutions and then copy
32292 args.
32293
32294 2009-02-27 Jan Hubicka <jh@suse.cz>
32295
32296 PR debug/39267
32297 * cgraph.h (varpool_output_debug_info): Remove.
32298 * cgraphunit.c (varpool_output_debug_info): Remove.
32299 * dwarf2out.c (deferred_locations_struct): New struct
32300 (deferred_locations): New type.
32301 (deferred_locations_list): New static var.
32302 (deffer_location): New function.
32303 (gen_variable_die): Use it.
32304 (decls_for_scope): Output info on local static vars.
32305 (dwarf2out_finish): Process deferred locations.
32306 * varpool.c (varpool_output_debug_info): Remove.
32307
32308 2009-02-27 Jan Hubicka <jh@suse.cz>
32309
32310 PR debug/39267
32311 * tree.h (TREE_PROTECTED): Fix comment.
32312 (BLOCK_HANDLER_BLOCK): Remove.
32313 (struct tree_block): Remove handler_block add body_block.
32314 (inlined_function_outer_scope_p): New.
32315 (is_body_block): Remove.
32316 * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
32317 * dwarf2out.c (is_inlined_entry_point): Remove.
32318 (add_high_low_attributes): Use inlined_function_outer_scope_p.
32319 (gen_block_die): Use is_inlined_entry_point check. Remove body block
32320 code.
32321 * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
32322 * gimplify.c (gimplify_expr): Gimplify body blocks.
32323 * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
32324 block with multiple subblocks.
32325 (dump_scope_block): Prettier output; dump more flags and info.
32326 (dump_scope_blocks): New.
32327 (remove_unused_locals): Use dump_scope_blocks.
32328 * tree-flow.h (dump_scope_blocks): Declare.
32329 * tree-cfg.c (execute_build_cfg): Dump scope blocks.
32330 * stmt.c (is_body_block): Remove.
32331 * tree-inline.c (remap_block): Copy BODY_BLOCK info.
32332 * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
32333
32334 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
32335
32336 PR middle-end/39308
32337 * graphite.c (graphite_loop_normal_form): Do not call
32338 number_of_iterations_exit from a gcc_assert.
32339
32340 2009-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32341
32342 * config/s390/s390.c (s390_swap_cmp): Look for conditional
32343 jumps if COND is NULL.
32344 (find_cond_jump): New function.
32345 (s390_z10_optimize_cmp): Handling for reg-reg compares added.
32346 * config/s390/s390.md: Remove z10_cobra attribute value.
32347
32348 2009-02-26 Uros Bizjak <ubizjak@gmail.com>
32349
32350 * config/alpha/alpha.h (alpha_expand_mov): Return false if
32351 force_const_mem returns NULL_RTX.
32352
32353 2009-02-26 Jan Hubicka <jh@suse.cz>
32354
32355 PR debug/39267
32356 * cgraph.h (varpool_output_debug_info): Remove.
32357 * cgraphunit.c (varpool_output_debug_info): Remove.
32358 * dwarf2out.c (deferred_locations_struct): New struct
32359 (deferred_locations): New type.
32360 (deferred_locations_list): New static var.
32361 (deffer_location): New function.
32362 (gen_variable_die): Use it.
32363 (decls_for_scope): Output info on local static vars.
32364 (dwarf2out_finish): Process deferred locations.
32365 * varpool.c (varpool_output_debug_info): Remove.
32366
32367 2009-02-25 H.J. Lu <hongjiu.lu@intel.com>
32368
32369 PR rtl-optimization/39241
32370 * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
32371 to subreg_offset_representable_p.
32372
32373 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
32374
32375 * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
32376 execute function prototype. Get f and nregs from max_reg_num
32377 and get_insns. Remove the first backward pass as it's dead,
32378 guard the forward pass by flag_expensive_optimizations.
32379 (rest_of_handle_regmove): Delete.
32380 (pass_regmove): Replace it with regmove_optimize.
32381
32382 2009-02-25 Martin Jambor <mjambor@suse.cz>
32383
32384 PR tree-optimization/39259
32385 * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
32386 calls_alloca function flags.
32387 (copy_bb): Set calls_setjmp and alls_alloca function flags if such
32388 calls are detected.
32389
32390 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
32391
32392 * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
32393 flags_set_1_rtx, flags_set_1_set): Delete.
32394 (regmove_optimize): Do not call mark_flags_life_zones.
32395
32396 2009-02-24 Julian Brown <julian@codesourcery.com>
32397
32398 PR target/35965
32399 * config/arm/arm.c (require_pic_register): Only set
32400 cfun->machine->pic_reg once per function.
32401
32402 2009-02-24 Sandra Loosemore <sandra@codesourcery.com>
32403
32404 * doc/invoke.texi (Link Options): Document an easier way to pass
32405 options that take arguments to the GNU linker using -Xlinker and -Wl.
32406
32407 2009-02-24 Steve Ellcey <sje@cup.hp.com>
32408
32409 PR target/33785
32410 * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
32411
32412 2009-02-24 Richard Guenther <rguenther@suse.de>
32413
32414 PR debug/39285
32415 * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
32416
32417 2009-02-24 Richard Guenther <rguenther@suse.de>
32418 Zdenek Dvorak <ook@ucw.cz>
32419
32420 PR tree-optimization/39233
32421 * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
32422 from converting them to a generic type.
32423
32424 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
32425
32426 PR tree-optimization/39260
32427 * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
32428 contains a condition with a real type.
32429 (build_scop_conditions_1): Conditions are always last_stmt of a bb.
32430
32431 2009-02-23 Jason Merrill <jason@redhat.com>
32432
32433 PR c++/38880
32434 * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
32435 narrowing_initializer_constant_valid_p.
32436 (narrowing_initializer_constant_valid_p): Don't return
32437 null_pointer_node for adding a pointer to itself.
32438
32439 2009-02-23 Jan Hubicka <jh@suse.cz>
32440
32441 PR c/12245
32442 * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
32443 resizing.
32444
32445 2009-02-23 Jan Hubicka <jh@suse.cz>
32446
32447 PR tree-optimization/37709
32448 * tree.c (block_ultimate_origin): Move here from dwarf2out.
32449 * tree.h (block_ultimate_origin): Declare.
32450 * dwarf2out.c (block_ultimate_origin): Move to tree.c
32451 * tree-ssa-live.c (remove_unused_scope_block_p):
32452 Eliminate blocks containig no instructions nor live variables nor
32453 nested blocks.
32454 (dump_scope_block): New function.
32455 (remove_unused_locals): Enable removal of dead blocks by default;
32456 enable dumping at TDF_DETAILS.
32457
32458 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
32459
32460 * config/i386/i386.c (classify_argument): Don't allow COImode
32461 and OImode.
32462 (function_arg_advance_32): Don't allow OImode.
32463 (function_arg_32): Likewise.
32464 (function_value_32): Likewise.
32465 (return_in_memory_32): Likewise.
32466 (function_arg_64): Remove OImode comment.
32467
32468 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
32469
32470 PR target/39261
32471 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
32472 ix86_expand_vector_set for V4DImode in 64bit mode only.
32473 (ix86_expand_vector_init_one_var): Likewise.
32474
32475 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
32476
32477 * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
32478
32479 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
32480
32481 PR bootstrap/39257
32482 * loop-iv.c: Revert last change.
32483 * emit-rtl.c: Likewise.
32484
32485 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
32486
32487 PR target/39256
32488 * config/i386/i386.c (type_natural_mode): Remove an extra
32489 space in the warning message.
32490 (function_value_32): Handle 32-byte vector modes.
32491 (return_in_memory_32): Likewise.
32492
32493 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
32494
32495 * loop-iv.c (truncate_value): New function.
32496 (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
32497 of lowpart_subreg.
32498 (lowpart_subreg): Move to...
32499 * emit-rtl.c: ...here.
32500
32501 2009-02-21 Danny Smith <dannysmith@users.sourceforge.net>
32502
32503 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
32504 accidental and undocumented change at revision 140860.
32505
32506 2009-02-21 Joseph Myers <joseph@codesourcery.com>
32507
32508 * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
32509 take gimple_seq * arguments.
32510 (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
32511 types_compatible_p langhook.
32512
32513 2009-02-20 Mark Mitchell <mark@codesourcery.com>
32514 Joseph Myers <joseph@codesourcery.com>
32515
32516 * config/arm/arm.c (arm_builtin_va_list): New function.
32517 (arm_expand_builtin_va_start): Likewise.
32518 (arm_gimplify_va_arg_expr): Likewise.
32519 (TARGET_BUILD_BUILTIN_VA_LIST): Define.
32520 (TARGET_BUILD_BUILTIN_VA_START): Likewise.
32521 (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
32522 (va_list_type): New variable.
32523 (arm_mangle_type): Mangle va_list_type appropriately.
32524
32525 2009-02-20 Jakub Jelinek <jakub@redhat.com>
32526
32527 PR middle-end/39157
32528 * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
32529 * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
32530 * params.def (loop-invariant-max-bbs-in-loop): New parameter.
32531 * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
32532 parameter to 1000 for -O1 by default.
32533 * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
32534 parameter.
32535 * loop-invariant.c: Include params.h.
32536 (move_loop_invariants): Don't call move_single_loop_invariants on
32537 very large loops.
32538
32539 2009-02-20 Jaka Mocnik <jaka@xlab.si>
32540
32541 * calls.c (emit_library_call_value_1): Use slot_offset instead of
32542 offset when calculating bounds for indexing stack_usage_map. Fixes
32543 a buffer overflow with certain target setups.
32544
32545 2009-02-20 Jakub Jelinek <jakub@redhat.com>
32546
32547 PR target/39240
32548 * calls.c (expand_call): Clear try_tail_call if caller and callee
32549 disagree in promotion of function return value.
32550
32551 2009-02-19 Jakub Jelinek <jakub@redhat.com>
32552
32553 PR target/39175
32554 * c-common.c (c_determine_visibility): If visibility changed and
32555 DECL_RTL has been already set, call make_decl_rtl to update symbol
32556 flags.
32557
32558 2009-02-19 H.J. Lu <hongjiu.lu@intel.com>
32559
32560 PR c++/39188
32561 * varasm.c (assemble_variable): Don't check DECL_NAME when
32562 globalizing a variable.
32563
32564 2009-02-19 Joseph Myers <joseph@codesourcery.com>
32565
32566 PR c/38483
32567 * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
32568 expression before any __builtin_trap call.
32569 * c-typeck.c (build_function_call): Convert and check function
32570 arguments before generating a call to a trap. Evaluate the
32571 function arguments before the trap.
32572
32573 2009-02-19 Uros Bizjak <ubizjak@gmail.com>
32574
32575 PR target/39228
32576 * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
32577 (UNSPEC_FXAM_MEM): New unspec.
32578 (fxam<mode>2_i387_with_temp): New insn and split pattern.
32579 (isinf<mode>2): Use MODEF mode iterator. Force operand[1] through
32580 memory using fxam<mode>2_i387_with_temp to remove excess precision.
32581
32582 2009-02-19 Richard Guenther <rguenther@suse.de>
32583
32584 PR tree-optimization/39207
32585 PR tree-optimization/39074
32586 * tree-ssa-structalias.c (storedanything_id, var_storedanything,
32587 storedanything_tree): New.
32588 (do_ds_constraint): Simplify ANYTHING shortcutting. Update
32589 the STOREDANYTHING solution if the lhs solution contains ANYTHING.
32590 (build_succ_graph): Add edges from STOREDANYTHING to all
32591 non-direct nodes.
32592 (init_base_vars): Initialize STOREDANYTHING.
32593 (compute_points_to_sets): Free substitution info after
32594 building the succ graph.
32595 (ipa_pta_execute): Likewise.
32596
32597 * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
32598 field.
32599 (do_ds_constraint): Do not add to special var or non-pointer
32600 field solutions.
32601 (type_could_have_pointers): Split out from ...
32602 (could_have_pointers): ... here. For arrays use the element type.
32603 (create_variable_info_for): Initialize may_have_pointers.
32604 (new_var_info): Likewise.
32605 (handle_lhs_call): Make the HEAP variable unknown-sized.
32606 (intra_create_variable_infos): Use a type with pointers for
32607 PARM_NOALIAS, make it unknown-sized.
32608
32609 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
32610
32611 PR target/39224
32612 * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
32613
32614 2009-02-18 Jason Merrill <jason@redhat.com>
32615
32616 PR target/39179
32617 * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
32618 value if DECL_EXTERNAL.
32619 * tree-sra.c (sra_walk_gimple_assign): Likewise.
32620 * target.h (gcc_target::binds_local_p): Clarify "module".
32621 * tree.h (TREE_PUBLIC): Clarify "module".
32622
32623 2009-02-17 Xuepeng Guo <xuepeng.guo@intel.com>
32624
32625 PR target/38891
32626 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
32627 initialization for MS_ABI prior to the hunk of !TARGET_MMX.
32628
32629 2009-02-17 H.J. Lu <hongjiu.lu@intel.com>
32630
32631 PR target/39082
32632 * c.opt (Wabi): Support C and ObjC.
32633 (Wpsabi): New.
32634
32635 * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
32636
32637 * config/i386/i386.c (classify_argument): Warn once about the ABI
32638 change when passing union with long double.
32639
32640 * doc/invoke.texi: Update -Wabi for warning psABI changes.
32641
32642 2009-02-18 Joseph Myers <joseph@codesourcery.com>
32643
32644 PR c/35447
32645 * c-parser.c (c_parser_compound_statement): Always enter and leave
32646 a scope.
32647
32648 2009-02-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32649
32650 PR target/34587
32651 * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
32652
32653 2009-02-18 Jakub Jelinek <jakub@redhat.com>
32654
32655 PR tree-optimization/36922
32656 * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
32657 * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
32658 Likewise.
32659
32660 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
32661
32662 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
32663 to 0 for EABI64.
32664
32665 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
32666
32667 * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
32668
32669 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
32670
32671 * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
32672 tree sharing.
32673
32674 2009-02-17 Ruan Beihong <ruanbeihong@gmail.com>
32675 Richard Sandiford <rdsandiford@googlemail.com>
32676
32677 * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
32678 * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
32679 (loongson_biadd): ...this.
32680
32681 2009-02-17 Richard Guenther <rguenther@suse.de>
32682
32683 PR tree-optimization/39202
32684 * tree-ssa-structalias.c (do_structure_copy): Before collapsing
32685 a var make sure to follow existing collapses.
32686
32687 2009-02-17 Richard Guenther <rguenther@suse.de>
32688
32689 PR middle-end/39214
32690 * langhooks.c (lhd_print_error_function): Check for NULL block.
32691
32692 2009-02-17 Richard Guenther <rguenther@suse.de>
32693
32694 PR tree-optimization/39204
32695 * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
32696 of the PHI arg.
32697
32698 2009-02-17 Uros Bizjak <ubizjak@gmail.com>
32699
32700 * config/soft-fp/double.h: Update from glibc CVS.
32701
32702 2009-02-17 Richard Guenther <rguenther@suse.de>
32703
32704 PR tree-optimization/39207
32705 * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
32706 strict-aliasing warnings for pointers pointing to NULL.
32707
32708 2009-02-16 Joseph Myers <joseph@codesourcery.com>
32709
32710 PR c/35446
32711 * c-parser.c (c_parser_braced_init): Call pop_init_level when
32712 skipping until next close brace.
32713
32714 2009-02-16 H.J. Lu <hongjiu.lu@intel.com>
32715
32716 PR target/37049
32717 * config/i386/i386.c (ix86_expand_push): Set memory alignment
32718 to function argument boundary.
32719
32720 2009-02-16 Hariharan Sandanagobalane <hariharan@picochip.com>
32721
32722 * config/picochip/picochip.md (lea_add): Allow any nonimmediate
32723 in the lea_add. Reload eventually constraints it properly.
32724 * config/picochip/constraints.md: Remove the target constraint
32725 "b", since it is not needed anymore.
32726
32727 2009-02-16 Jakub Jelinek <jakub@redhat.com>
32728
32729 * gthr-dce.h: Uglify function parameter and local variable names.
32730 * gthr-gnat.h: Likewise.
32731 * gthr-mipssde.h: Likewise.
32732 * gthr-nks.h: Likewise.
32733 * gthr-posix95.h: Likewise.
32734 * gthr-posix.h: Likewise.
32735 * gthr-rtems.h: Likewise.
32736 * gthr-single.h: Likewise.
32737 * gthr-solaris.h: Likewise.
32738 * gthr-tpf.h: Likewise.
32739 * gthr-vxworks.h: Likewise.
32740 * gthr-win32.h: Likewise.
32741
32742 2009-02-15 H.J. Lu <hongjiu.lu@intel.com>
32743
32744 PR target/39196
32745 * config/i386/i386.md: Restrict the new peephole2 to move
32746 between MMX/SSE registers.
32747
32748 2009-02-15 Richard Guenther <rguenther@suse.de>
32749
32750 Revert
32751 2009-02-13 Richard Guenther <rguenther@suse.de>
32752
32753 * configure.ac: Enable LFS.
32754 * configure: Re-generate.
32755 * config.in: Likewise.
32756
32757 2009-02-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32758
32759 * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
32760 spu_srqwbyte, spu_srqwbytebc): Define.
32761 * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
32762 spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
32763 * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
32764 "shrqby_<mode>"): New insn-and-split patterns.
32765 * config/spu/spu.c (expand_builtin_args): Determine and return
32766 number of operands using spu_builtin_description data.
32767 (spu_expand_builtin_1): Use it.
32768
32769 2009-02-13 Steve Ellcey <sje@cup.hp.com>
32770
32771 PR target/38056
32772 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
32773 TARGET_CONST_GP.
32774
32775 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
32776
32777 PR target/39149
32778 * config/i386/i386.c (override_options): Correct warning
32779 messages for -malign-loops, -malign-jumps and -malign-functions.
32780
32781 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
32782
32783 PR target/39152
32784 * config/i386/i386.md: Restrict the new peephole2 to move
32785 between the general purpose registers.
32786
32787 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
32788
32789 PR target/39162
32790 * config/i386/i386.c (type_natural_mode): Add a new argument.
32791 Return the original mode and warn ABI change if vector size is 32byte.
32792 (function_arg_advance): Updated.
32793 (function_arg): Likewise.
32794 (ix86_function_value): Likewise.
32795 (ix86_return_in_memory): Likewise.
32796 (ix86_sol10_return_in_memory): Likewise.
32797 (ix86_gimplify_va_arg): Likewise.
32798 (function_arg_32): Don't warn ABX ABI change here.
32799 (function_arg_64): Likewise.
32800
32801 2009-02-13 Bernd Schmidt <bernd.schmidt@analog.com>
32802
32803 * loop-iv.c (implies_p): In the final case, test that operands 0
32804 of the two comparisons match.
32805
32806 * config/bfin/bfin.c (find_prev_insn_start): New function.
32807 (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
32808 (find_next_insn_start): Move.
32809
32810 2009-02-13 Richard Guenther <rguenther@suse.de>
32811
32812 * configure.ac: Enable LFS.
32813 * configure: Re-generate.
32814 * config.in: Likewise.
32815
32816 2009-02-13 Joseph Myers <joseph@codesourcery.com>
32817
32818 PR c/35444
32819 * c-parser.c (c_parser_parms_list_declarator): Discard pending
32820 sizes on syntax error after some arguments have been parsed.
32821
32822 2009-02-12 Jakub Jelinek <jakub@redhat.com>
32823
32824 * doc/invoke.texi (-fira): Remove.
32825
32826 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
32827
32828 * caller-save.c: Replace regclass.c with reginfo.c in comments.
32829 * recog.c: Likewise.
32830 * rtl.h: Likewise.
32831
32832 2009-02-12 Uros Bizjak <ubizjak@gmail.com>
32833
32834 * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
32835 (umul_ppmm): Likewise.
32836 (count_leading_zeros): Likewise.
32837 (count_trailing_zeros): Likewise.
32838 (UMUL_TIME): Likewise.
32839
32840 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
32841
32842 * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
32843 soft-fp/t-softfp to tmake_file.
32844
32845 * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
32846 (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
32847 (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
32848 IA64_BUILTIN_INFQ]: New.
32849 (ia64_init_builtins): Initialize __builtin_infq,
32850 __builtin_fabsq and __builtin_copysignq if not HPUX.
32851 (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
32852 IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
32853
32854 * config/ia64/lib1funcs.asm (__divtf3): Define only if
32855 SHARED is defined.
32856 (__fixtfti): Likewise.
32857 (__fixunstfti): Likewise.
32858 (__floattitf): Likewise.
32859
32860 * config/ia64/libgcc-glibc.ver: New.
32861 * config/ia64/t-fprules-softfp: Likewise.
32862 * config/ia64/sfp-machine.h: Likewise.
32863
32864 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
32865 (LIBGCC2_TF_CEXT): Likewise.
32866 (TF_SIZE): Likewise.
32867 (TARGET_INIT_LIBFUNCS): Likewise.
32868
32869 * config/ia64/t-glibc (SHLINB_MAPFILES):
32870 Add $(srcdir)/config/ia64/libgcc-glibc.ver.
32871
32872 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
32873
32874 * config/i386/i386.c (construct_container): Rewrite processing
32875 BLKmode with X86_64_SSE_CLASS.
32876
32877 2009-02-12 Paolo Bonzini <bonzini@gnu.org>
32878
32879 PR target/39152
32880 * config/i386/i386.md: Replace simplify_replace_rtx with
32881 replace_rtx in the new peephole2.
32882
32883 2009-02-12 Nathan Sidwell <nathan@codesourcery.com>
32884
32885 * doc/invoke.texi (Optimize Options): Stop claiming inlining and
32886 loop unrolling do not happen at -O2.
32887
32888 2009-02-12 Michael Matz <matz@suse.de>
32889
32890 * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
32891
32892 2009-02-12 Jakub Jelinek <jakub@redhat.com>
32893
32894 * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
32895 for -g3.
32896
32897 2009-02-12 Ben Elliston <bje@au.ibm.com>
32898
32899 * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
32900 patterns when updating the back chain. Missed in the 2009-02-10
32901 change.
32902
32903 2009-02-11 Janis Johnson <janis187@us.ibm.com>
32904
32905 * doc/extend.texi (Decimal Floating Types): Update identifier of
32906 draft TR and list of missing support.
32907
32908 2009-02-11 Jakub Jelinek <jakub@redhat.com>
32909
32910 PR middle-end/39154
32911 * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
32912 bit to variable length decl's flags, add it also to its
32913 pointer replacement variable.
32914
32915 2009-02-11 Uros Bizjak <ubizjak@gmail.com>
32916 Jakub Jelinek <jakub@redhat.com>
32917
32918 PR target/39118
32919 * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
32920 (memory_blockage): New expander.
32921 (*memory_blockage): New insn pattern.
32922 * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
32923 instead of general blockage at the end of function prologue when
32924 frame pointer is used to access red zone area. Do not emit blockage
32925 when profiling, it is emitted in generic code.
32926 (ix86_expand_epilogue): Emit memory_blockage at the beginning of
32927 function epilogue when frame pointer is used to access red zone area.
32928
32929 2009-02-11 Paolo Bonzini <bonzini@gnu.org>
32930
32931 PR target/38824
32932 * config/i386/i386.md: Add two new peephole2 to avoid mov followed
32933 by arithmetic with memory operands.
32934 * config/i386/predicates.md (commutative_operator): New.
32935
32936 2009-02-10 Janis Johnson <janis187@us.ibm.com>
32937
32938 * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
32939 bulleted lists.
32940
32941 2009-02-10 Eric Botcazou <ebotcazou@adacore.com>
32942
32943 * alias.h (record_alias_subset): Declare.
32944 * alias.c (record_alias_subset): Make global.
32945
32946 2009-02-10 Nick Clifton <nickc@redhat.com>
32947
32948 * tree-parloops.c: Change license to GPLv3.
32949 * ipa-struct-reorg.c: Change license to GPLv3.
32950 * ipa-struct-reorg.h: Change license to GPLv3.
32951
32952 2009-02-10 Steve Ellcey <sje@cup.hp.com>
32953
32954 PR c/39084
32955 * c-decl.c (start_struct): Return NULL on error.
32956
32957 2009-02-10 Jakub Jelinek <jakub@redhat.com>
32958
32959 PR middle-end/39124
32960 * cfgloopmanip.c (remove_path): Call remove_bbs after
32961 cancel_loop_tree, not before it.
32962
32963 PR target/39139
32964 * function.h (struct function): Add has_local_explicit_reg_vars bit.
32965 * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
32966 VAR_DECLs were seen.
32967 * tree-ssa-live.c (remove_unused_locals): Recompute
32968 cfun->has_local_explicit_reg_vars.
32969 * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
32970 copies or clearings if cfun->has_local_explicit_reg_vars.
32971
32972 2009-02-10 Uros Bizjak <ubizjak@gmail.com>
32973
32974 PR target/39118
32975 * config/i386/i386.c (expand_prologue): Emit blockage at the end
32976 of function prologue when frame pointer is used to access
32977 red zone area.
32978
32979 2009-02-10 Richard Guenther <rguenther@suse.de>
32980
32981 PR middle-end/39127
32982 * gimplify.c (gimple_regimplify_operands): Always look if
32983 we need to create a temporary.
32984
32985 2009-02-10 Richard Guenther <rguenther@suse.de>
32986
32987 PR tree-optimization/39132
32988 * tree-loop-distribution.c (todo): New global var.
32989 (generate_memset_zero): Trigger TODO_rebuild_alias.
32990 (tree_loop_distribution): Return todo.
32991
32992 2009-02-10 H.J. Lu <hongjiu.lu@intel.com>
32993
32994 PR target/39119
32995 * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
32996 (x86_64_reg_class_name): Removed.
32997 (classify_argument): Return 0 if bytes > 32. Return 0 if the
32998 first one isn't X86_64_SSE_CLASS or any other ones aren't
32999 X86_64_SSEUP_CLASS when size > 16bytes. Don't turn
33000 X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
33001 is X86_64_SSEUP_CLASS. Set AVX modes to 1 X86_64_SSE_CLASS
33002 and 3 X86_64_SSEUP_CLASS.
33003 (construct_container): Remove X86_64_AVX_CLASS. Handle 4
33004 registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
33005
33006 2009-02-10 Ben Elliston <bje@au.ibm.com>
33007
33008 * config/rs6000/rs6000.md (allocate_stack): Always use an update
33009 form instruction to update the stack back chain word, even if the
33010 user has disabled the generation of update instructions.
33011 (movdi_<mode>_update_stack): New.
33012 (movsi_update_stack): Likewise.
33013 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
33014 always use an update form instruction to update the stack back
33015 chain word.
33016
33017 2009-02-09 Sebastian Pop <sebastian.pop@amd.com>
33018
33019 PR middle-end/38953
33020 * graphite.c (if_region_set_false_region): After moving a region in
33021 the false branch of a condition, remove the empty dummy basic block.
33022 (gloog): Remove wrong fix for PR38953.
33023
33024 2009-02-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
33025
33026 * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
33027 generation due to implicit sign extension.
33028
33029 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
33030
33031 PR middle-end/38981
33032 * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
33033 at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
33034
33035 2009-02-09 Richard Guenther <rguenther@suse.de>
33036
33037 PR middle-end/35202
33038 * convert.c (convert_to_real): Disable (float)fn((double)x)
33039 to fnf(x) conversion if errno differences may occur and
33040 -fmath-errno is set.
33041
33042 2009-02-07 Anatoly Sokolov <aesok@post.ru>
33043
33044 * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
33045 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
33046 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
33047
33048 2009-02-06 Joseph Myers <joseph@codesourcery.com>
33049
33050 PR c/35434
33051 * c-common.c (handle_alias_attribute): Disallow attribute for
33052 anything not a FUNCTION_DECL or VAR_DECL.
33053
33054 2009-02-06 Janis Johnson <janis187@us.ibm.com>
33055
33056 PR c/39035
33057 * real.c (do_compare): Special-case compare of zero against
33058 decimal float value.
33059
33060 2009-02-06 Joseph Myers <joseph@codesourcery.com>
33061
33062 PR c/36432
33063 * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
33064 as indicating flexible array members unless the field itself is
33065 being declarared as the incomplete array.
33066
33067 2009-02-06 Jan Hubicka <jh@suse.cz>
33068
33069 PR tree-optimization/38844
33070 * ipa-inline.c (try_inline): Stop inlining recursion when edge
33071 is already inlined.
33072
33073 2009-02-06 Richard Guenther <rguenther@suse.de>
33074
33075 PR middle-end/38977
33076 * tree-cfg.c (need_fake_edge_p): Force a fake edge for
33077 fork because we may expand it as __gcov_fork.
33078
33079 2009-02-06 Nick Clifton <nickc@redhat.com>
33080
33081 * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
33082
33083 2009-02-06 Paolo Bonzini <bonzini@gnu.org>
33084
33085 PR tree-optimization/35659
33086 * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
33087 vn_phi_eq): Shortcut if hashcode does not match.
33088 (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
33089 NULL operands.
33090 * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
33091 and avoid iterative_hash_expr.
33092 (FOR_EACH_VALUE_ID_IN_SET): New.
33093 (value_id_compare): Remove.
33094 (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
33095 sort expressions by value id.
33096
33097 2009-02-05 Kaz Kojima <kkojima@gcc.gnu.org>
33098
33099 PR target/38991
33100 * config/sh/predicates.md (general_movsrc_operand): Don't check
33101 the subreg of system registers here.
33102
33103 2009-02-05 Jakub Jelinek <jakub@redhat.com>
33104
33105 PR c++/39106
33106 * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
33107 on the copied decl.
33108
33109 2009-02-05 Paolo Bonzini <bonzini@gnu.org>
33110
33111 PR rtl-optimization/39110
33112 * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
33113 addresses, not aligned ones.
33114
33115 2009-02-05 Daniel Berlin <dberlin@dberlin.org>
33116 Richard Guenther <rguenther@suse.de>
33117
33118 PR tree-optimization/39100
33119 * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
33120 comment says and add edges.
33121
33122 2009-02-05 Joseph Myers <joseph@codesourcery.com>
33123
33124 PR c/35435
33125 * c-common.c (handle_tls_model_attribute): Ignore attribute for
33126 non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
33127
33128 2009-02-04 Tobias Grosser <grosser@fim.uni-passau.de>
33129
33130 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
33131 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
33132 register_bb_in_sese, new_sese, free_sese): Moved.
33133 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
33134 outermost_loop_in_scop, build_scop_iteration_domain,
33135 expand_scalar_variables_ssa_name, get_vdef_before_scop,
33136 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
33137 Use loop_in_sese_p instead of loop_in_scop_p.
33138 (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
33139 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
33140 (scopdet_basic_block_info): Fix bug in scop detection.
33141 (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
33142 eq_loop_to_cloog_loop): Remove.
33143 (nb_loops_around_loop_in_scop, nb_loop
33144 ref_nb_loops): Moved here...
33145 * graphite.h (ref_nb_loops): ... from here.
33146 (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
33147 (loop_domain_dim, loop_iteration_vector_dim): Remove.
33148 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
33149
33150 2009-02-04 Paolo Bonzini <bonzini@gnu.org>
33151 Hans-Peter Nilsson <hp@axis.com>
33152
33153 PR rtl-optimization/37889
33154 * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
33155 Move offset handling from PLUS to before the switch. Use new
33156 arguments when considering SYMBOL_REFs too.
33157 (rtx_addr_can_trap_p): Pass dummy offset and size.
33158 (enum may_trap_p_flags): Remove.
33159 (may_trap_p_1): Pass size from MEM_SIZE.
33160
33161 PR rtl-optimization/38921
33162 * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
33163 * rtl.h (may_trap_after_code_motion_p): Delete prototype.
33164 * rtlanal.c (may_trap_after_code_motion_p): Delete.
33165 (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
33166
33167 2009-02-04 H.J. Lu <hongjiu.lu@intel.com>
33168
33169 AVX Programming Reference (January, 2009)
33170 * config/i386/sse.md (*vpclmulqdq): New.
33171
33172 2009-02-04 Jakub Jelinek <jakub@redhat.com>
33173
33174 PR tree-optimization/38977
33175 PR gcov-profile/38292
33176 * calls.c (special_function_p): Disregard __builtin_ prefix.
33177
33178 2009-02-04 Hariharan Sandanagobalane <hariharan@picochip.com>
33179
33180 * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
33181 non-indexable addresses even before reload.
33182
33183 2009-02-03 Joseph Myers <joseph@codesourcery.com>
33184
33185 PR c/29129
33186 * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
33187 as having variable size. Do not give an error for unnamed
33188 parameters with [*] declarators. Give a warning for type names
33189 with [*] declarators and mark them as variable size.
33190 * c-parser.c (c_parser_sizeof_expression): Do not give an error
33191 for sizeof applied to [*] type names.
33192
33193 2009-02-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
33194
33195 PR C++/36607
33196 * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
33197
33198 2009-02-03 Jakub Jelinek <jakub@redhat.com>
33199
33200 * gcc.c (process_command): Update copyright notice dates.
33201 * gcov.c (print_version): Likewise.
33202 * gcov-dump.c (print_version): Likewise.
33203 * mips-tfile.c (main): Likewise.
33204 * mips-tdump.c (main): Likewise.
33205
33206 2009-02-03 Joseph Myers <joseph@codesourcery.com>
33207
33208 PR c/35433
33209 * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
33210 for composite type involving a zero-length array type.
33211
33212 2009-02-03 Jakub Jelinek <jakub@redhat.com>
33213
33214 PR target/35318
33215 * function.c (match_asm_constraints_1): Skip over
33216 initial optional % in the constraint.
33217
33218 PR inline-asm/39059
33219 * c-parser.c (c_parser_postfix_expression): If fixed point is not
33220 supported, don't accept FIXED_CSTs.
33221 * c-decl.c (finish_declspecs): Error if fixed point is not supported
33222 and _Sat is used without _Fract/_Accum. Set specs->type to
33223 integer_type_node for cts_fract/cts_accum if fixed point is not
33224 supported.
33225
33226 2009-02-02 Catherine Moore <clm@codesourcery.com>
33227
33228 * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
33229
33230 2009-02-02 Richard Sandiford <rdsandiford@googlemail.com>
33231
33232 * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
33233 (ABI_HAS_64BIT_SYMBOLS): Use it.
33234 (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
33235
33236 2009-02-02 Paul Brook <paul@codesourcery.com>
33237
33238 * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
33239
33240 2009-02-02 Jakub Jelinek <jakub@redhat.com>
33241
33242 PR inline-asm/39058
33243 * recog.h (asm_operand_ok): Add constraints argument.
33244 * recog.c (asm_operand_ok): Likewise. If it is set, for digits
33245 recurse on matching constraint.
33246 (check_asm_operands): Pass constraints as 3rd argument to
33247 asm_operand_ok. Don't look up matching constraint here.
33248 * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
33249 to asm_operand_ok.
33250
33251 2009-02-02 Ben Elliston <bje@au.ibm.com>
33252
33253 * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
33254 TARGET_NARROW_VOLATILE_BITFIELD macro names.
33255
33256 2009-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33257
33258 * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
33259 information. Remove some obsolete information. Reorganize.
33260
33261 * config/pa/fptr.c: Revert license to GPL 2.
33262 * config/pa/milli64.S: Likewise.
33263
33264 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
33265
33266 PR target/38904
33267 * mkmap-flat.awk (END): Use pe_dll command-line arg to pass
33268 LIBRARY name in, instead of hard-coding it.
33269 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add an
33270 extra target make frag to tmake_files according to EH model.
33271 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
33272 * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Add new target
33273 frags that define makefile variable EH_MODEL appropriately.
33274 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Add comment.
33275 * config/i386/cygwin.h (LIBGCC_EH_EXTN): Define to nothing or
33276 to "-sjlj" according to type of EH configured.
33277 (LIBGCC_SONAME): Concatenate it to shared library base name.
33278 * config/i386/mingw32.h (LIBGCC_EH_EXTN): Define to "_dw2" or
33279 to "_sjlj" according to type of EH configured.
33280 (LIBGCC_SONAME): Concatenate it to shared library base name.
33281 * config/i386/t-cygming (SHLIB_SONAME): Use EH_MODEL.
33282 (SHLIB_LINK): Add missing semicolon to if-else construct.
33283 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
33284 string value of "pe_dll" command-line option.
33285 * config/i386/t-cygwin (SHLIB_EH_EXTENSION): New helper.
33286 (SHLIB_SONAME): Use it when overriding t-cygming default.
33287 (SHLIB_IMPLIB): Override t-cygming default.
33288 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
33289 string value of "pe_dll" command-line option.
33290
33291 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
33292
33293 PR target/38952
33294 * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
33295 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
33296
33297 2009-01-31 Richard Guenther <rguenther@suse.de>
33298
33299 PR tree-optimization/38937
33300 * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
33301 computing the transitive closure.
33302
33303 2009-01-30 Richard Guenther <rguenther@suse.de>
33304
33305 PR tree-optimization/39041
33306 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
33307 Propagate variable indices only if the types match for this stmt.
33308
33309 2009-01-30 Jakub Jelinek <jakub@redhat.com>
33310
33311 PR target/39013
33312 * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
33313 inline but never defined.
33314
33315 2009-01-30 Wolfgang Gellerich <gellerich@de.ibm.com>
33316
33317 * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
33318 (*insv_h_di_reg_extimm): New insn.
33319 (*insv_l<mode>_reg_extimm): New insn.
33320
33321 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
33322
33323 * config/picochip/picochip.c (flag_conserve_stack): set
33324 PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
33325 fconserve-stack. Reduce call-overhead used by inliner.
33326
33327 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
33328
33329 PR/38157
33330 * common.opt (flag_conserve_stack): Initialised to zero.
33331
33332 2009-01-30 Kai Tietz <kai.tietz@onevision.com>
33333
33334 PR/39002
33335 * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
33336 (ix86_expand_epilogue): Take nsseregs in account to use proper restore
33337 method.
33338
33339 2009-01-29 H.J. Lu <hongjiu.lu@intel.com>
33340
33341 * ira-color.c (allocno_reload_assign): Update comments.
33342 * regmove.c (regmove_optimize): Likewise.
33343
33344 * ra.h: Removed.
33345
33346 2009-01-29 Robert Millan <rmh@aybabtu.com>
33347
33348 * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
33349 * config/i386/kopensolaris-gnu.h: New file. Undefine
33350 `MD_UNWIND_SUPPORT'.
33351 * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
33352
33353 2009-01-29 Kazu Hirata <kazu@codesourcery.com>
33354
33355 PR tree-optimization/39007
33356 * tree-loop-distribution.c (generate_builtin): Use
33357 recompute_dominator to compute the immediate dominator of the
33358 basic block just after the loop.
33359
33360 2009-01-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
33361
33362 * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
33363 (ASM_OUTPUT_DWARF_PCREL): Define.
33364
33365 2009-01-29 Vladimir Makarov <vmakarov@redhat.com>
33366
33367 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
33368 * doc/passes.texi: Remove entries about regclass, local-alloc, and
33369 global. Modify entries about regmove and IRA.
33370
33371 * ra-conflict.c: Remove the file.
33372
33373 * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
33374
33375 * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
33376 (pass_regclass_init): Rename to pass_reginfo_init.
33377
33378 * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
33379
33380 * toplev.h (flag_ira): Remove.
33381
33382 * caller-save.c (setup_save_areas): Remove flag_ira.
33383
33384 * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
33385
33386 * global.c: Remove the file.
33387
33388 * opts.c (decode_options): Remove flag_ira.
33389
33390 * hard-reg-set.h (losing_caller_save_reg_set): Remove.
33391
33392 * regmove.c: Modify file description.
33393 (find_use_as_address, try_auto_increment): Define them only if
33394 AUTO_INC_DEC is defined.
33395 (replacement_quality, replace_in_call_usage, fixup_match_1,
33396 stable_and_no_regs_but_for_p): Remove.
33397 (reg_set_in_bb): Make it static.
33398 (regmove_optimize): Remove flag_ira and code which worked for
33399 !flag_ira.
33400
33401 * local-alloc.c: Remove the file.
33402
33403 * common.opt (fira): Remove.
33404
33405 * ira.c: Include except.h.
33406 (eliminable_regset): Move from global.c.
33407 (mark_elimination): Ditto. Remove flag_ira.
33408 (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
33409 equiv_mem_modified, validate_equiv_mem_from_store,
33410 validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
33411 contains_replace_regs, memref_referenced_p, memref_used_between_p,
33412 no_equiv, recorded_label_ref): Move from local-alloc.c.
33413 (update_equiv_regs): Ditto. Make it static.
33414 (print_insn_chain, print_insn_chains): Move it from global.c.
33415 (pseudo_for_reload_consideration_p): Ditto. Remove flag_ira.
33416 (build_insn_chain): Ditto. Make it static.
33417 (ra_init_live_subregs): Move from ra-conflict.c. Make it static.
33418 Rename to init_live_subregs.
33419 (gate_ira): Remove flag_ira.
33420
33421 * regclass.c: Rename reginfo.c. Change file description.
33422 (FORBIDDEN_INC_DEC_CLASSES): Remove.
33423 (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
33424 (init_reg_sets_1): Remove code for evaluation of
33425 reg_class_superclasses and losing_caller_save_reg_set.
33426 (init_regs): Remove init_reg_autoinc.
33427 (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
33428 ok_for_base_p_nonstrict): Remove.
33429 (regclass_init): Rename to reginfo_init. Don't initialize init_cost.
33430 (pass_regclass_init): Rename to pass_reginfo_init. Modify
33431 corresponding entries.
33432 (dump_regclass, record_operand_costs, scan_one_insn,
33433 init_reg_autoinc, regclass, record_reg_classes, copy_cost,
33434 record_address_regs, auto_inc_dec_reg_p): Remove.
33435 (gt-regclass.h): Rename to gt-reginfo.h.
33436
33437 * rtl.h (dump_global_regs, retry_global_alloc,
33438 build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
33439
33440 * Makefile.in (RA_H): Remove.
33441 (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
33442 Rename regclass.o to reginfo.o.
33443 (regclass.o): Rename to reginfo.o. Rename gt-regclass.h to
33444 gt-reginfo.h.
33445 (global.o, local-alloc.o, ra-conflict.o): Remove entries.
33446 (GTFILES): Rename regclass.c to reginfo.c.
33447
33448 * passes.c (init_optimization_passes): Remove pass_local_alloc and
33449 pass_global_alloc. Rename pass_regclass_init to pass_reginfo_init.
33450
33451 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
33452 count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
33453 Remove flag_ira.
33454 (finish_spills): Ditto. Remove code for !flag_ira.
33455
33456 2009-01-29 Kenneth Zadeck <zadeck@naturalbridge.com>
33457
33458 PR middle-end/35854
33459 * doc/invoke.texi (rtl debug options): Complete rewrite.
33460 * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
33461 to auto_inc_dec".
33462 * mode-switching.c (pass_mode_switching): Rename pass from
33463 "mode-sw" to "mode_sw".
33464 * except.c (pass_convert_to_eh_ranges): Rename pass from
33465 "eh-ranges" to "eh_ranges".
33466 * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
33467 to "subreg1".
33468
33469
33470 2009-01-29 Andrey Belevantsev <abel@ispras.ru>
33471 Alexander Monakov <amonakov@ispras.ru>
33472
33473 PR middle-end/38857
33474 * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
33475 register.
33476 (move_exprs_to_boundary): Change return type and pass through
33477 should_move from move_op. Relax assert. Update usage ...
33478 (schedule_expr_on_boundary): ... here. Use should_move instead of
33479 cant_move.
33480 (move_op_orig_expr_found): Indicate that insn was disconnected from
33481 stream.
33482 (code_motion_process_successors): Do not call after_merge_succs
33483 callback if original expression was not found when traversing any of
33484 the branches.
33485 (code_motion_path_driver): Change return type. Update prototype.
33486 (move_op): Update comment. Add a new parameter (should_move). Update
33487 prototype. Set *should_move based on indication provided by
33488 move_op_orig_expr_found.
33489
33490 2009-01-28 Pat Haugen <pthaugen@us.ibm.com>
33491
33492 * doc/invoke.texi (avoid-indexed-addresses): Document new option.
33493 * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
33494 * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
33495 * config/rs6000/rs6000.c (rs6000_override_options): Default
33496 avoid-indexed-addresses on for Power6, off for everything else.
33497 (avoiding_indexed_address_p): New function.
33498 (rs6000_legitimize_address): Use it.
33499 (rs6000_legitimate_address): Likewise.
33500 * config/rs6000/rs6000.md (movXX_updateX): Likewise
33501
33502 2009-01-28 Kazu Hirata <kazu@codesourcery.com>
33503
33504 PR tree-optimization/38997
33505 * tree-loop-distribution.c (generate_memset_zero): Use
33506 POINTER_PLUS_EXPR for a pointer addition.
33507
33508 2009-01-28 Andreas Krebbel <krebbel1@de.ibm.com>
33509
33510 * config/s390/s390.md (bswap<mode>2): New pattern added.
33511
33512 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
33513
33514 * config/s390/s390.md (*tls_load_31): Added type attribute.
33515
33516 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
33517
33518 * config/s390/s390.md: Fix a few comments.
33519
33520 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
33521
33522 * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
33523 (*tm<mode>_full): Fixed z10prop attribute.
33524 (*tst<mode>_extimm): Fixed z10prop attribute.
33525 (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
33526 (*tstqiCCT_cconly): Fixed z10prop attribute.
33527 (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
33528 (*movsi_larl): Fixed z10prop attribute.
33529 (*movsi_zarch): Fixed z10prop attribute.
33530 (*movsi_eas): Fixed z10prop attribute.
33531 (*movhi): Fixed z10prop attribute.
33532 (*movqi): Fixed z10prop attribute.
33533 (*movstrictqi): Fixed z10prop attribute.
33534 (*mov<mode>): Fixed z10prop attribute.
33535 (*movcc): Fixed z10prop attribute.
33536 (*sethighpartdi_64): Fixed z10prop attribute.
33537 (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
33538 (*negdi2_sign_cc): Fixed z10prop attribute.
33539 (*negdi2_sign): Fixed z10prop attribute.
33540 (*absdi2_sign_cc): Fixed z10prop attribute.
33541 (*absdi2_sign): Fixed z10prop attribute.
33542 (*negabsdi2_sign_cc): Fixed z10prop attribute.
33543 (*negabsdi2_sign): Fixed z10prop attribute.
33544 (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
33545 (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
33546 (doloop_si64): Fixed z10prop attribute.
33547 (doloop_si31): Fixed z10prop attribute.
33548 (doloop_long): Fixed z10prop attribute.
33549 (indirect_jump): Fixed z10prop attribute.
33550 (nop): Fixed z10prop attribute.
33551 (main_base_64): Fixed z10prop attribute.
33552 (reload_base_64): Fixed z10prop attribute.
33553
33554 2009-01-28 Jakub Jelinek <jakub@redhat.com>
33555
33556 PR rtl-optimization/38740
33557 * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
33558 if !optimize.
33559 * config/mips/mips.c (mips_reorg): Likewise.
33560
33561 2009-01-28 Richard Guenther <rguenther@suse.de>
33562
33563 PR tree-optimization/38926
33564 * tree-ssa-pre.c (add_to_value): Assert we add only expressions
33565 with the correct value id to a value.
33566 (do_regular_insertion): Use the value number of edoubleprime
33567 for the value number of the expr.
33568
33569 Revert
33570 2008-08-21 Richard Guenther <rguenther@suse.de>
33571
33572 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
33573 a PHI ask VN if it is already available.
33574 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
33575 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
33576
33577 2009-01-28 Jakub Jelinek <jakub@redhat.com>
33578
33579 PR middle-end/38934
33580 * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
33581 set to varying whenever max has TREE_OVERFLOW set, similarly
33582 for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
33583
33584 2009-01-28 Richard Guenther <rguenther@suse.de>
33585
33586 PR middle-end/38908
33587 * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
33588 uninitialized aggregate uses in call arguments.
33589
33590 2009-01-28 Paolo Bonzini <bonzini@gnu.org>
33591
33592 PR tree-optimization/38984
33593 * tree-ssa-structalias.c (get_constraints_for_1): Do not use
33594 the nothing_id variable if -fno-delete-null-pointer-checks.
33595
33596 2009-01-28 Uros Bizjak <ubizjak@gmail.com>
33597
33598 PR target/38988
33599 * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
33600 (set_got_offset_rex64): Ditto.
33601
33602 2009-01-27 H.J. Lu <hongjiu.lu@intel.com>
33603
33604 PR target/38941
33605 * doc/extend.texi: Improve local variable with asm reg.
33606
33607 2009-01-27 Adam Nemet <anemet@caviumnetworks.com>
33608
33609 * c.opt (Wpacked-bitfield-compat): Change init value to -1.
33610 * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
33611 was not supplied then set warn_packed_bitfield_compat to the
33612 default value of 1.
33613 * stor-layout.c (place_field): Check warn_packed_bitfield_compat
33614 against 1.
33615
33616 2009-01-27 Richard Guenther <rguenther@suse.de>
33617
33618 PR tree-optimization/38503
33619 * cfgexpand.c (expand_gimple_basic_block): Ignore
33620 GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
33621 * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
33622 variables that cannot have TBAA applied.
33623 (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
33624 statements.
33625
33626 2009-01-27 Uros Bizjak <ubizjak@gmail.com>
33627
33628 PR middle-end/38969
33629 * calls.c (initialize_argument_information): Do not wrap complex
33630 arguments in SAVE_EXPR.
33631
33632 2009-01-26 Andreas Tobler <a.tobler@schweiz.org>
33633
33634 * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
33635 (INSTALL_LIBGCC): Revert typo commit.
33636
33637 2009-01-26 Richard Guenther <rguenther@suse.de>
33638
33639 PR tree-optimization/38745
33640 * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
33641 from special handling.
33642
33643 2009-01-26 Richard Guenther <rguenther@suse.de>
33644
33645 PR tree-optimization/38745
33646 * tree-ssa.c (execute_update_addresses_taken): Do not include
33647 variables that cannot possibly be a register in not_reg_needs.
33648 Do not clear TREE_ADDRESSABLE on vars that may not become
33649 registers.
33650 * tree-ssa.c (update_alias_info_1): Include those in the set
33651 of addressable vars.
33652
33653 2009-01-26 Richard Guenther <rguenther@suse.de>
33654
33655 PR middle-end/38851
33656 * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
33657 * tree-ssa-dse.c: Include langhooks.h
33658 (execute_simple_dse): Remove stores with zero size.
33659
33660 2009-01-24 Jakub Jelinek <jakub@redhat.com>
33661
33662 PR c/38957
33663 * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
33664 as PLUS_EXPR.
33665
33666 2009-01-24 Julian Brown <julian@codesourcery.com>
33667
33668 * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
33669 config/arm/linux-atomic.c.
33670 * config/arm/linux-atomic.c: New.
33671
33672 2009-01-24 Eric Botcazou <ebotcazou@adacore.com>
33673
33674 * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
33675 * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
33676 * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
33677
33678 2009-01-24 H.J. Lu <hongjiu.lu@intel.com>
33679
33680 PR c/38938
33681 * c-opts.c (c_common_handle_option): Update warn_pointer_sign
33682 properly.
33683
33684 2009-01-24 Sebastian Pop <sebastian.pop@amd.com>
33685
33686 PR tree-optimization/38953
33687 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
33688 (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
33689 (gloog): Split the exit of the scop when the scop exit is a loop exit.
33690 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
33691 changed the CFG.
33692
33693 2009-01-24 Paul Brook <paul@codesourcery.com>
33694
33695 * config/arm/neon.md (neon_type): Move to arm.md.
33696 (neon_mov<VSTRUCT>): Add neon_type attribute.
33697 * config/arm/arm.md (neon_type): Move to here.
33698 (conds): Add "unconditioal" and use as default for NEON insns.
33699
33700 2009-01-24 Ben Elliston <bje@au.ibm.com>
33701
33702 * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
33703 void *' warning from -Wc++-compat.
33704 * Makefile.in (dominance.o-warn): Remove.
33705
33706 2009-01-23 Paolo Bonzini <bonzini@gnu.org>
33707
33708 PR tree-optimization/38932
33709 * fold-const.c (fold_unary_ignore_overflow): New.
33710 * tree.h (fold_unary_ignore_overflow): Declare.
33711 * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
33712 * tree-ssa-sccvn.c (visit_reference_op_load,
33713 simplify_unary_expression): Likewise.
33714
33715 2009-01-22 Adam Nemet <anemet@caviumnetworks.com>
33716
33717 * c-decl.c (finish_struct): Move code to set DECL_PACKED after
33718 DECL_BIT_FIELD is alreay known. Also inherit packed for bitfields
33719 regardless of their type.
33720 * c-common.c (handle_packed_attribute): Don't ignore packed on
33721 bitfields.
33722 * c.opt (Wpacked-bitfield-compat): New warning option.
33723 * stor-layout.c (place_field): Warn if offset of a field changed.
33724 * doc/extend.texi (packed): Mention the ABI change.
33725 * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
33726 (Warning Options): Add it to the list.
33727
33728 2009-01-22 H.J. Lu <hongjiu.lu@intel.com>
33729
33730 * c-opts.c (c_common_post_options): Fix a typo in comments.
33731
33732 2009-01-22 Steve Ellcey <sje@cup.hp.com>
33733
33734 PR middle-end/38615
33735 * gimplify.c (gimplify_init_constructor): Fix promotion of const
33736 variables to static.
33737 * doc/invoke.texi (-fmerge-all-constants): Update description.
33738
33739 2009-01-22 Uros Bizjak <ubizjak@gmail.com>
33740
33741 PR target/38931
33742 * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
33743 (*movdi_1_rex64): Use type "mmx" for alternative 5.
33744
33745 2009-01-22 Richard Earnshaw <rearnsha@arm.com>
33746
33747 * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
33748 a word boundary.
33749 (LOCAL_ALIGNMENT): Similarly.
33750
33751 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
33752 Joseph Myers <joseph@codesourcery.com>
33753
33754 * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
33755 * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
33756 * config/arm/arm-tune.md: Regenerate.
33757 * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
33758 -march=iwmmxt2.
33759
33760 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
33761
33762 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
33763 version number to five.
33764
33765 2009-01-22 Dodji Seketeli <dodji@redhat.com>
33766
33767 PR c++/38930
33768 * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
33769 * c-common.c (set_underlying_type): Likewise.
33770 (is_typedef_decl ): Likewise
33771 * tree.h: Likewise
33772 (set_underlying_type): Likewise.
33773 (is_typedef_type): Likewise.
33774
33775 2009-01-21 Vladimir Makarov <vmakarov@redhat.com>
33776
33777 PR middle-end/38587
33778 * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
33779 crossing setjmps.
33780
33781 2009-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
33782
33783 PR bootstrap/37660
33784 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): New helper macro.
33785 (LIBGCC_SPEC): Don't define.
33786 (REAL_LIBGCC_SPEC): Define instead, using SHARED_LIBGCC_SPEC.
33787
33788 2009-01-21 Uros Bizjak <ubizjak@gmail.com>
33789
33790 PR rtl-optimization/38879
33791 * alias.c (base_alias_check): Unaligned access via AND address can
33792 alias all surrounding object types except those with sizes equal
33793 or wider than the size of unaligned access.
33794
33795 2009-01-21 Dodji Seketeli <dodji@redhat.com>
33796
33797 PR c++/26693
33798 * c-decl.c (clone_underlying_type): Move this ...
33799 * c-common.c (set_underlying_type): ... here.
33800 Also, make sure the function properly sets TYPE_STUB_DECL() on
33801 the newly created typedef variant type.
33802 (is_typedef_decl ): New entry point.
33803 * tree.h: Added a new member member_types_needing_access_check to
33804 struct tree_decl_non_common.
33805 (set_underlying_type): New entry point.
33806 (is_typedef_type): Likewise.
33807
33808 2009-01-21 Bingfeng Mei <bmei@broadcom.com>
33809
33810 * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
33811 Check whether two instructions have memory references that
33812 belong to conflicting alias sets. walk_mems_1 and walk_mems_2
33813 are helper functions for traversing.
33814 * alias.h (insn_alias_sets_confilict_p): New prototypes.
33815 * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
33816 not to draw dependency edge for instructions with non-conflicting
33817 alias sets.
33818
33819 2009-01-20 Joseph Myers <joseph@codesourcery.com>
33820
33821 PR other/38758
33822 * longlong.h: Update copyright years. Use soft-fp license notice.
33823 Sync __clz_tab declaration with glibc.
33824
33825 2009-01-20 Steve Ellcey <sje@cup.hp.com>
33826
33827 PR target/30687
33828 * doc/extend.texi (syscall_linkage): New.
33829 (version_id): Modify.
33830
33831 2009-01-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
33832 Richard Guenther <rguenther@suse.de>
33833
33834 PR tree-optimization/38747
33835 PR tree-optimization/38748
33836 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
33837 conversion if the base address is an indirect reference and the
33838 aliasing sets could cause issues.
33839
33840 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
33841
33842 * common.opt (fgraphite, fgraphite-identity): Add comment for
33843 explaining why these options are not documented.
33844
33845 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
33846
33847 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
33848 gimple_call_lhs is NULL.
33849
33850 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
33851
33852 PR target/38868
33853 * emit-rtl.c (adjust_address_1): Make sure memref is never
33854 overwritten.
33855
33856 2009-01-20 Ben Elliston <bje@au.ibm.com>
33857
33858 * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
33859 const qualifier from arg parameter. Remove unnecessary cast to char *.
33860 * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
33861 const qualifier from arg 2.
33862
33863 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
33864
33865 * config/darwin.h: Add static-libgfortran to LINK_SPEC.
33866
33867 2009-01-19 Vladimir Makarov <vmakarov@redhat.com>
33868
33869 PR c/38869
33870 * rtl.h (reinit_regs): New prototype.
33871 * regclass.c: Include ira.h.
33872 (reinit_regs): New.
33873 * Makefile.in (regclass.o): Add ira.h.
33874 * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
33875
33876 2009-01-18 H.J. Lu <hongjiu.lu@intel.com>
33877
33878 PR target/38736
33879 * c-common.c (handle_aligned_attribute): Use
33880 ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
33881 default alignment value.
33882
33883 * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
33884
33885 * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
33886 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
33887
33888 * doc/extend.texi: Update __attribute__ ((aligned)). Document
33889 __BIGGEST_ALIGNMENT__.
33890
33891 * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
33892
33893 2009-01-18 Richard Guenther <rguenther@suse.de>
33894
33895 PR tree-optimization/38819
33896 * tree-flow.h (operation_could_trap_helper_p): Declare.
33897 * tree-eh.c (operation_could_trap_helper_p): Export.
33898 * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
33899 * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
33900 * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
33901 are about to insert a possibly trapping instruction and fail
33902 in this case.
33903
33904 2009-01-18 Andreas Schwab <schwab@suse.de>
33905
33906 * doc/install.texi (Configuration): Remove obsolete paragraph
33907 about use of --with-gnu-ld with --with-gnu-as.
33908
33909 2009-01-18 Kazu Hirata <kazu@codesourcery.com>
33910
33911 * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
33912 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
33913 Follow spelling conventions.
33914
33915 2009-01-18 Ben Elliston <bje@au.ibm.com>
33916
33917 * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
33918 C++ warning about implicit conversion from void * to struct
33919 bitmap_head_def *.
33920 (bitmap_obstack_free): Likewise for bitmap_element *.
33921 * Makefile.in (bitmap.o-warn): Remove.
33922
33923 2009-01-17 Dave Korn <dave.korn.cygwin@gmail.com>
33924
33925 * Makefile.in (BACKENDLIBS): Reorder to match dependencies.
33926
33927 2009-01-17 Sebastian Pop <sebastian.pop@amd.com>
33928 Tobias Grosser <tobi.grosser@amd.com>
33929
33930 * graphite.c (graphite_trans_scop_block): Do not block single
33931 nested loops.
33932
33933 2009-01-16 Alexandre Oliva <aoliva@redhat.com>
33934
33935 * ebitmap.h (ebitmap_iter_init): Initialize all fields.
33936 * ipa-struct-reorg.c (gen_struct_type): Replace known-true
33937 test with assertion.
33938
33939 2009-01-16 Richard Guenther <rguenther@suse.de>
33940
33941 PR tree-optimization/38835
33942 PR middle-end/36227
33943 * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
33944 and INT + PTR -> (INT)(PTR p+ INT) folding.
33945 * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
33946
33947 2009-01-16 Adam Nemet <anemet@caviumnetworks.com>
33948
33949 PR target/38554
33950 * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
33951 the subreg from a lowpart subreg if it is also casting the value.
33952
33953 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
33954 Tobias Grosser <tobi.grosser@amd.com>
33955
33956 * graphite.c (compare_prefix_loops): New.
33957 (build_scop_canonical_schedules): Rewritten.
33958 (graphite_transform_loops): Move build_scop_canonical_schedules
33959 after build_scop_iteration_domain.
33960
33961 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
33962 Tobias Grosser <tobi.grosser@amd.com>
33963
33964 * graphite.c (add_conditions_to_domain): Add the loops to
33965 the dimension of the iteration domain. Do copy the domain
33966 only when it exists.
33967 (build_scop_conditions_1): Do not call add_conditions_to_domain.
33968 (add_conditions_to_constraints): New.
33969 (can_generate_code_stmt, can_generate_code): Removed.
33970 (gloog): Do not call can_generate_code.
33971 (graphite_transform_loops): Call add_conditions_to_constraints
33972 after building the iteration domain.
33973
33974 2009-01-16 Jakub Jelinek <jakub@redhat.com>
33975
33976 PR tree-optimization/38789
33977 * tree-ssa-threadedge.c
33978 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
33979 __builtin_constant_p.
33980
33981 2009-01-16 Kenneth Zadeck <zadeck@naturalbridge.com>
33982
33983 * dce.c (delete_unmarked_insns): Reversed the order that insns are
33984 examined before deleting them.
33985
33986 2009-01-16 Richard Earnshaw <rearnsha@arm.com>
33987
33988 * function.c (aggregate_value_p): Correctly extract the function
33989 type from CALL_EXPR_FN lookup.
33990
33991 2009-01-16 Hariharan Sandanagobalane <hariharan@picochip.com>
33992
33993 * config/picochip/picochip.c (picochip_override_options): Revert
33994 CFI asm flag disable commited previously.
33995
33996 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
33997 Tobias Grosser <tobi.grosser@amd.com>
33998 Jan Sjodin <jan.sjodin@amd.com>
33999
34000 * graphite.c (scan_tree_for_params): On substractions negate
34001 all the coefficients of the term.
34002 (clast_to_gcc_expression_red): New. Handle reduction expressions
34003 of more than two operands.
34004 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
34005 (get_vdef_before_scop): Handle also the case of default definitions.
34006
34007 2009-01-15 Richard Sandiford <rdsandiford@googlemail.com>
34008
34009 * caller-save.c (add_used_regs_1, add_used_regs): New functions.
34010 (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
34011 Also use them when walking CALL_INSN_FUNCTION_USAGE.
34012
34013 2009-01-15 H.J. Lu <hongjiu.lu@intel.com>
34014 Joey Ye <joey.ye@intel.com>
34015
34016 PR middle-end/37843
34017 * cfgexpand.c (expand_stack_alignment): Don't update stack
34018 boundary nor check incoming stack boundary here.
34019 (gimple_expand_cfg): Update stack boundary and check incoming
34020 stack boundary here.
34021
34022 2009-01-15 Kenneth Zadeck <zadeck@naturalbridge.com>
34023
34024 * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
34025
34026 2009-01-14 Jakub Jelinek <jakub@redhat.com>
34027
34028 PR rtl-optimization/38245
34029 * calls.c (expand_call): Add stack arguments to
34030 CALL_INSN_FUNCTION_USAGE even for pure calls (when
34031 ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
34032 in regs and partially in memory or BLKmode arguments.
34033 (emit_library_call_value_1): Add stack arguments to
34034 CALL_INSN_FUNCTION_USAGE even for pure calls (when
34035 ACCUMULATE_OUTGOING_ARGS).
34036 * dce.c: Include tm_p.h.
34037 (find_call_stack_args): New function.
34038 (deletable_insn_p): Call it for CALL_P insns. Add ARG_STORES
34039 argument.
34040 (mark_insn): Call find_call_stack_args for CALL_Ps.
34041 (prescan_insns_for_dce): Walk insns backwards in bb rather than
34042 forwards. Allocate and free arg_stores bitmap if needed, pass it
34043 down to deletable_insn_p, don't mark stores set in arg_stores
34044 bitmap, clear the bitmap at the beginning of each bb.
34045 * Makefile.in (dce.o): Depend on $(TM_P_H).
34046
34047 2009-01-14 Michael Meissner <gnu@the-meissners.org>
34048
34049 PR target/22599
34050 * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
34051 to make sure the insn is a conditional test (bug 22599). Reformat a
34052 few long lines.
34053
34054 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
34055
34056 PR middle-end/38431
34057 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
34058 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
34059 (gloog): Do not call cleanup_tree_cfg.
34060 (graphite_transform_loops): Call cleanup_tree_cfg after all
34061 scops have been code generated.
34062
34063 2009-01-14 Basile Starynkevitch <basile@starynkevitch.net>
34064 * doc/gty.texi (Invoking the garbage collector): Added new node
34065 and section documenting ggc_collect.
34066
34067 2009-01-14 Richard Guenther <rguenther@suse.de>
34068
34069 PR tree-optimization/38826
34070 PR middle-end/38477
34071 * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
34072 initialization notes only if we actually emitted a warning.
34073 (intra_create_variable_infos): Add constraints for a result decl
34074 that is passed by hidden reference.
34075 (build_pred_graph): Mark all related variables non-direct on
34076 address-taking.
34077
34078 2009-01-14 Nick Clifton <nickc@redhat.com>
34079
34080 * ira-conflicts.c: Include addresses.h for the definition of
34081 base_reg_class.
34082 (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
34083 * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
34084
34085 2009-01-13 Vladimir Makarov <vmakarov@redhat.com>
34086
34087 PR target/38811
34088 * Makefile.in (ira-lives.o): Add except.h.
34089
34090 * ira-lives.c: Include except.h.
34091 (process_bb_node_lives): Process can_throw_internal.
34092
34093 2009-01-13 Jakub Jelinek <jakub@redhat.com>
34094
34095 PR rtl-optimization/38774
34096 * combine.c (simplify_set): When undoing cc_use change, don't do
34097 PUT_CODE on the newly created comparison, but instead put back the
34098 old comparison.
34099
34100 2009-01-13 Joseph Myers <joseph@codesourcery.com>
34101
34102 * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
34103 values. Remove duplicate arm8 entry.
34104
34105 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
34106
34107 PR tree-optimization/38786
34108 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
34109 the SSA_NAME case of expand_scalar_variables_expr.
34110 Set the type of an expression to the type of its assign statement.
34111 (expand_scalar_variables_expr): Also gather the scalar computation
34112 used to index the memory access. Do not pass loop_p.
34113 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
34114 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
34115 the gimple_stmt_iterator where it inserts new code.
34116 Do not pass loop_p.
34117 (copy_bb_and_scalar_dependences): Do not pass loop_p.
34118 (translate_clast): Update call to copy_bb_and_scalar_dependences.
34119
34120 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
34121
34122 * graphite.h (debug_value): Removed.
34123 * graphite.c (debug_value): Removed.
34124
34125 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
34126
34127 * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
34128 ldrd/strd with two 32-bit instructions.
34129
34130 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
34131
34132 * config/arm/arm.c (struct processors): Pass for speed down into
34133 cost helper functions.
34134 (const_ok_for_op): Handle COMPARE and inequality nodes.
34135 (arm_rtx_costs_1): Rewrite.
34136 (arm_size_rtx_costs): Update prototype.
34137 (arm_rtx_costs): Pass speed down to helper functions.
34138 (arm_slowmul_rtx_costs): Rework cost calculations.
34139 (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
34140 (arm_9e_rtx_costs): Likewise.
34141
34142 2009-01-13 Uros Bizjak <ubizjak@gmail.com>
34143
34144 * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
34145 relocations of local symbols wider than UNITS_PER_WORD are not valid.
34146 (alpha_legitimize_address): Do not split local symbols wider than
34147 UNITS_PER_WORD into HIGH/LO_SUM parts.
34148
34149 2009-01-13 Danny Smith <dannysmith@users.sourceforge.net>
34150
34151 PR bootstrap/38580
34152 * gcc.c (process_command): Replace call to execvp with calls
34153 to pex_one and exit.
34154
34155 2009-01-03 Anatoly Sokolov <aesok@post.ru>
34156
34157 PR target/29141
34158 * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
34159 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
34160 variant for devices with 3-byte PC.
34161 (__tablejump_elpm__): New.
34162
34163 2009-01-12 Jakub Jelinek <jakub@redhat.com>
34164
34165 PR c/32041
34166 * c-parser.c (c_parser_postfix_expression): Allow `->' in
34167 offsetof member-designator, handle it as `[0].'.
34168
34169 2009-01-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34170
34171 * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
34172 function when not using named sections on targets with named sections
34173 if branch distance is less than 262132.
34174
34175 2009-01-12 Richard Earnshaw <rearnsha@arm.com>
34176
34177 * combine.c (combine_instructions): Recompute
34178 optimize_this_for_speed_p for each BB in the main combine loop.
34179
34180 2009-01-12 Tomas Bily <tbily@suse.cz>
34181
34182 PR middlend/38385
34183 * tree-loop-distribution.c (prop_phis): New function.
34184 (generate_builtin): Call prop_phis.
34185
34186 2009-01-12 Jakub Jelinek <jakub@redhat.com>
34187
34188 PR tree-optimization/38807
34189 * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
34190 gimple_visited_p unless stmt is GIMPLE_ASSIGN.
34191
34192 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
34193
34194 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
34195 subreg of op0 to the original op0.
34196
34197 2009-01-11 Laurent GUERBY <laurent@guerby.net>
34198
34199 * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
34200
34201 2009-01-11 Markus Schoepflin <markus.schoepflin@comsoft.de>
34202
34203 PR debug/7055
34204 * mips-tfile.c (parse_def): Fix parsing of def strings
34205 starting with digits.
34206
34207 2009-01-10 Jakub Jelinek <jakub@redhat.com>
34208
34209 PR target/38695
34210 * config/arm/arm.c (arm_is_long_call_p): Don't call
34211 arm_function_in_section_p if decl isn't a FUNCTION_DECL.
34212
34213 2009-01-09 Steven Bosscher <steven@gcc.gnu.org>
34214
34215 * regrename.c (regrename_optimize): Fix dumping.
34216 (find_oldest_value_reg): Preserve REG_POINTER.
34217 (copy_hardreg_forward_1): Likewise.
34218
34219 2009-01-09 Diego Novillo <dnovillo@google.com>
34220
34221 * gimple.h (struct gimple_statement_base) <uid>: Document
34222 the restrictions on its use.
34223 (gimple_uid): Tidy.
34224 (gimple_set_uid): Tidy.
34225
34226 2009-01-09 Jakub Jelinek <jakub@redhat.com>
34227
34228 * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
34229 zero guard even if align_bytes != 0 and count is smaller than
34230 size_needed.
34231
34232 2009-01-09 Vladimir Makarov <vmakarov@redhat.com>
34233
34234 PR rtl-optimization/38495
34235 * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
34236 (add_range_and_copies_from_move_list): Print all added ranges.
34237 Add ranges to memory optimized destination.
34238
34239 2009-01-09 Jakub Jelinek <jakub@redhat.com>
34240
34241 PR target/38686
34242 PR target/38708
34243 * config/i386/i386.c (override_options): Reject
34244 -mstringop-strategy=rep_8byte with -m32.
34245 (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
34246 to 1. Do count comparison against epilogue_size_needed at compile
34247 time even when count_exp was constant forced into register. For
34248 size_needed don't jump to epilogue, instead just avoid aligning
34249 and invoke the body algorithm. If need_zero_guard, add zero guard
34250 even if count is non-zero, but smaller than size_needed + number of
34251 bytes that could be stored for alignment.
34252 (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
34253 to 1. If need_zero_guard, add zero guard even if count is non-zero,
34254 but smaller than size_needed + number of bytes that could be stored
34255 for alignment. Compare size_needed with epilogue_size_needed instead
34256 of desired_align - align, don't adjust size_needed, pass
34257 epilogue_size_needed to the epilogue expanders.
34258
34259 PR c/35742
34260 * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
34261
34262 2009-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34263
34264 * pa.c (last_address): Change to unsigned.
34265 (update_total_code_bytes): Change argument to unsigned. Don't
34266 check if insn addresses are set.
34267 (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
34268 addresses are not set.
34269 (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
34270
34271 2009-01-09 Nick Clifton <nickc@redhat.com>
34272
34273 * config/sh/symbian.c: Replace uses of DECL_INLINE with
34274 DECL_DECLARED_INLINE_P.
34275
34276 2009-01-09 Jakub Jelinek <jakub@redhat.com>
34277
34278 PR middle-end/38347
34279 * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
34280 GET_MODE (op0) in operand_subword_force calls.
34281
34282 PR middle-end/38771
34283 * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
34284 fold_convert arg0 operands to TREE_TYPE (op0) first.
34285
34286 2009-01-08 Vladimir Makarov <vmakarov@redhat.com>
34287
34288 * params.def (ira-max-conflict-table-size): Decrease default value
34289 to 1000.
34290
34291 2009-01-08 Jakub Jelinek <jakub@redhat.com>
34292
34293 PR tree-optimization/37031
34294 * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
34295 on parameter_set.
34296 (build_access_matrix): Reserve correct size for AM_MATRIX vector,
34297 allocate it using gc instead of heap, use VEC_quick_push instead of
34298 VEC_safe_push.
34299 * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
34300 instead of heap, use VEC_quick_push instead of VEC_safe_push.
34301 * tree-data-ref.h (struct access_matrix): Change matrix to gc
34302 allocated vector from heap allocated.
34303 * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
34304 * tree-loop-linear.c (linear_transform_loops): Allocate nest
34305 vector only after perfect_loop_nest_depth call.
34306
34307 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
34308 Jan Sjodin <jan.sjodin@amd.com>
34309
34310 PR tree-optimization/38559
34311 * graphite.c (debug_value, copy_constraint,
34312 swap_constraint_variables, scale_constraint_variable, ): New.
34313 (get_lower_bound, get_upper_bound): Removed.
34314 (graphite_trans_bb_strip_mine): Clean up this code that works
34315 only for constant number of iterations. Fully copy upper and
34316 lower bound constraints, not only the constant part of them.
34317 * graphite.h (debug_value): Declared.
34318
34319 2009-01-08 Ira Rosen <irar@il.ibm.com>
34320
34321 PR tree-optimization/37194
34322 * tree-vect-transform.c (vect_estimate_min_profitable_iters):
34323 Don't add the cost of cost model guard in prologue to scalar
34324 outside cost in case of known number of iterations.
34325
34326 2009-01-07 Nathan Froyd <froydnj@codesourcery.com>
34327 Alan Modra <amodra@bigpond.net.au>
34328
34329 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
34330 non-word-aligned REG+CONST addressing.
34331
34332 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
34333
34334 PR target/38706
34335 * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
34336 free_after_compilation when outputting a thunk.
34337 (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
34338 Do not call free_after_compilation here.
34339
34340 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
34341
34342 * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
34343 (ix86_valid_target_attribute_inner_p): Ditto.
34344
34345 2009-01-07 Jan Sjodin <jan.sjodin@amd.com>
34346
34347 PR tree-optimization/38492
34348 PR tree-optimization/38498
34349 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
34350 * tree-chrec.h (scev_is_linear_expression): Declared.
34351 * graphite.c (graphite_cannot_represent_loop_niter): New.
34352 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
34353 (graphite_loop_normal_form): Use gcc_assert.
34354 (scan_tree_for_params): Use CASE_CONVERT.
34355 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
34356 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
34357 Use gcc_assert. Discard scops that contain unhandled cases.
34358 (build_scop_conditions): Return a boolean status for unhandled cases.
34359 (strip_mine_profitable_p): Print the loop number, not its depth.
34360 (is_interchange_valid): Pass the depth of the loop nest, don't
34361 recompute it wrongly.
34362 (graphite_trans_bb_block): Same.
34363 (graphite_trans_bb_block): Print tentative of loop blocking.
34364 (graphite_trans_scop_block): Do not print that the loop has been
34365 blocked.
34366 (graphite_transform_loops): Do not handle scops that contain condition
34367 scalar phi nodes.
34368
34369 2009-01-07 H.J. Lu <hongjiu.lu@intel.com>
34370
34371 AVX Programming Reference (December, 2008)
34372 * config/i386/avxintrin.h (_mm256_stream_si256): New.
34373 (_mm256_stream_pd): Likewise.
34374 (_mm256_stream_ps): Likewise.
34375
34376 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
34377 IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
34378 (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
34379 (bdesc_special_args): Add __builtin_ia32_movntdq256,
34380 __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
34381 (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
34382 (ix86_expand_special_args_builtin): Likewise.
34383
34384 * config/i386/sse.md (AVXMODEDI): New.
34385 (avx_movnt<mode>): Likewise.
34386 (avx_movnt<mode>): Likewise.
34387 (<sse>_movnt<mode>): Remove AVX support.
34388 (sse2_movntv2di): Likewise.
34389
34390 2009-01-07 Richard Guenther <rguenther@suse.de>
34391
34392 PR middle-end/38751
34393 * fold-const.c (extract_muldiv): Remove obsolete comment.
34394 (fold_plusminus_mult_expr): Undo MINUS_EXPR
34395 to PLUS_EXPR canonicalization for the canonicalization.
34396
34397 2009-01-07 Gerald Pfeifer <gerald@pfeifer.com>
34398
34399 * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
34400 hosted cross-compilers generating less efficient code.
34401
34402 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
34403
34404 * function.h (rtl_data): Add a dbr_scheduled_p field.
34405 * reorg.c (dbr_schedule): Set it.
34406 (gate_handle_delay_slots): Check it.
34407 * config/mips/mips.c (mips_base_delayed_branch): Delete.
34408 (mips_reorg): Check flag_delayed_branch instead of
34409 mips_base_delayed_branch.
34410 (mips_override_options): Don't set mips_base_delayed_branch
34411 or flag_delayed_branch.
34412
34413 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
34414
34415 PR rtl-optimization/38426.
34416 * ira.c (ira): Set current_function_is_leaf earlier.
34417
34418 2009-01-06 Jakub Jelinek <jakub@redhat.com>
34419
34420 PR rtl-optimization/38722
34421 * combine.c (try_combine): Don't modify PATTERN (i3) and notes
34422 too early, only set a flag and modify after last possible
34423 undo_all point.
34424
34425 2009-01-06 Janis Johnson <janis187@us.ibm.com>
34426
34427 PR c/34252
34428 * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
34429 * real.c (decimal_single_format): Correct values of emin and emax.
34430 (decimal_double_format): Ditto.
34431 (decimal_quad_format): Ditto.
34432 * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
34433 computation of DECnn_MIN and DECnn_MAX for corrected values of
34434 emin and emax. Define __DECnn_SUBNORMAL_MIN__ instead of
34435 __DECnn_MIN__, and adjust its computation for the corrected value
34436 of emin.
34437
34438 2009-01-06 Jan Hubicka <jh@suse.cz>
34439
34440 PR target/38744
34441 * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
34442
34443 2009-01-06 Gerald Pfeifer <gerald@pfeifer.com>
34444
34445 * doc/contrib.texi (Contributors): Slightly adjust the end note.
34446 Add Robert Clark to the list of testers.
34447
34448 2009-01-06 Jan Hubicka <jh@suse.cz>
34449 Kai Tietz <kai.tietz@onevision.com>
34450
34451 * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
34452 * config/i386/i386.c (ix86_expand_call): Add clobbers.
34453
34454 2009-01-06 Jan Hubicka <jh@suse.cz>
34455 Kai Tietz <kai.tietz@onevision.com>
34456
34457 * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
34458 for w64 ABI.
34459 * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
34460 (ix86_nsaved_regs): Count only general purpose regs.
34461 (ix86_nsaved_sseregs): New.
34462 (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
34463 to 16 for w64; compute padding and size of sse reg save area.
34464 (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
34465 general purpose regs.
34466 (ix86_emit_save_sse_regs_using_mov): New.
34467 (ix86_expand_prologue): Save SSE regs if needed.
34468 (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
34469 (ix86_emit_restore_sse_regs_using_mov): New.
34470 (ix86_expand_epilogue): Save SSE regs if needed.
34471
34472 2009-01-06 Jan Hubicka <jh@suse.cz>
34473 Kai Tietz <kai.tietz@onevision.com>
34474
34475 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
34476 * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
34477 functions when accumulate outgoing args is off.
34478
34479 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
34480
34481 PR bootstrap/38742
34482 * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
34483 before using pseudos_have_intersected_live_ranges_p.
34484
34485 * ira-int.h (ira_assert): Always define.
34486
34487 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
34488
34489 AVX Programming Reference (December, 2008)
34490 * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
34491 (_mm256_permute2_pd): Likewise.
34492 (_mm_permute2_ps): Likewise.
34493 (_mm256_permute2_ps): Likewise.
34494 * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
34495 * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
34496
34497 * config/i386/i386.c (ix86_builtins): Remove
34498 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
34499 IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
34500 (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
34501 V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
34502 and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
34503 (bdesc_args): Remove __builtin_ia32_vpermil2pd,
34504 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
34505 __builtin_ia32_vpermil2ps256.
34506 (ix86_init_mmx_sse_builtins): Updated.
34507 (ix86_expand_args_builtin): Likewise.
34508
34509 2009-01-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34510
34511 * pa.c (output_call): Relocate non-jump insns in the delay slot of
34512 long absolute calls when generating PA 2.0 code.
34513
34514 2009-01-05 Vladimir Makarov <vmakarov@redhat.com>
34515
34516 PR rtl-optimization/38583
34517 * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
34518
34519 * params.def (ira-max-conflict-table-size): New.
34520
34521 * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
34522
34523 * ira.h (ira_conflicts_p): New external definition.
34524
34525 * ira-conflicts.c (build_conflict_bit_table): Do not build too big
34526 table. Report this. Return result of building.
34527 (ira_build_conflicts): Use ira_conflicts_p. Check result of
34528 building conflict table.
34529
34530 * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
34531 (ira_color): Use ira_conflicts_p.
34532
34533 * global.c: Include ira.h.
34534 (pseudo_for_reload_consideration_p, build_insn_chain): Use
34535 ira_conflicts_p.
34536
34537 * Makefile.in (global.o): Add ira.h.
34538
34539 * ira-build.c (mark_all_loops_for_removal,
34540 propagate_some_info_from_allocno): New.
34541 (remove_unnecessary_allocnos): Call
34542 propagate_some_info_from_allocno.
34543 (remove_low_level_allocnos): New.
34544 (remove_unnecessary_regions): Add parameter. Call
34545 mark_all_loops_for_removal and remove_low_level_allocnos. Pass
34546 parameter to remove_unnecessary_regions.
34547 (ira_build): Remove all regions but root if the conflict table was
34548 not built. Update conflict hard regs for allocnos crossing calls.
34549
34550 * ira.c (ira_conflicts_p): New global.
34551 (ira): Define and use ira_conflicts_p.
34552
34553 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
34554 count_spilled_pseudo, find_reg, alter_reg, finish_spills,
34555 emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
34556
34557 2009-01-06 Ben Elliston <bje@au.ibm.com>
34558
34559 * gengtype-lex.l (YY_NO_INPUT): Define.
34560
34561 2009-01-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
34562
34563 PR c/34911
34564 * c-common.c (handle_vector_size_attribute): Also reject
34565 BOOLEAN_TYPE types.
34566
34567 2009-01-05 Sebastian Pop <sebastian.pop@amd.com>
34568
34569 PR tree-optimization/38492
34570 * graphite.c (rename_map_elt, debug_rename_elt,
34571 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
34572 rename_map_elt_info, eq_rename_map_elts,
34573 get_new_name_from_old_name, bb_in_sese_p): Moved around.
34574 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
34575 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
34576 (sese_build_livein_liveouts): New.
34577 (new_sese, free_sese): New.
34578 (new_scop): Call new_sese.
34579 (free_scop): Call free_sese.
34580 (rename_variables_from_edge, rename_phis_end_scop): Removed.
34581 (register_old_new_names): Renamed register_old_and_new_names.
34582 (register_scop_liveout_renames, add_loop_exit_phis,
34583 insert_loop_close_phis, struct igp,
34584 default_liveout_before_guard, add_guard_exit_phis,
34585 insert_guard_phis, copy_renames): New.
34586 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
34587 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
34588 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
34589 (scop_adjust_phis_for_liveouts): New.
34590 (gloog): Call scop_adjust_phis_for_liveouts.
34591
34592 * graphite.h (struct sese): Documented. Added fields liveout,
34593 num_ver and livein.
34594 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
34595 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
34596 (struct scop): Added field liveout_renames.
34597 (SCOP_LIVEOUT_RENAMES): New.
34598
34599 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
34600
34601 PR tree-optimization/38510
34602 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
34603 (translate_clast): Call recompute_all_dominators before
34604 graphite_verify.
34605 (gloog): Call recompute_all_dominators before graphite_verify.
34606
34607 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
34608 Jan Sjodin <jan.sjodin@amd.com>
34609
34610 PR tree-optimization/38500
34611 * graphite.c (create_sese_edges): Call fix_loop_structure after
34612 splitting blocks.
34613
34614 2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
34615
34616 * config.gcc: Add m32r*-*-rtems*.
34617 * config/m32r/rtems.h: New file.
34618
34619 2009-01-05 Ben Elliston <bje@au.ibm.com>
34620
34621 * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
34622 (.po.pox): Likewise.
34623 (po/gcc.pot): Likewise.
34624
34625 2009-01-04 David S. Miller <davem@davemloft.net>
34626
34627 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
34628 (STARTING_FRAME_OFFSET): Always set to zero.
34629
34630 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
34631
34632 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
34633 * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
34634 fixed-point types, and vectors of the same.
34635
34636 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
34637
34638 * config/mips/sync.md (*mb_barrier): Rename to...
34639 (*memory_barrier): ...this.
34640
34641 2009-01-04 Jonathan Wakely <jwakely.gcc@gmail.com>
34642
34643 * doc/extend.texi (Function Attributes): Move @cindex after @item
34644 for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
34645 and put in alphabetical order. Fix 'target' name and put in order.
34646 * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
34647 typos.
34648
34649 2009-01-04 Uros Bizjak <ubizjak@gmail.com>
34650
34651 * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
34652 (memory_barrier): Expand as unspec instead of unspec_volatile.
34653 Remove mem:BLK from insn operands. Use Pmode scratch register.
34654 (*memory_barrier): Define as unspec instead of unspec_volatile.
34655 Use (match_dup 0) as input operand.
34656
34657 * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
34658 * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
34659 unspec_volatile. Remove mem:BLK from insn operands. Use Pmode
34660 scratch register. Remove operand 1.
34661 (*stbar): Define as unspec instead of unspec_volatile.
34662 Use (match_dup 0) as input operand, remove (const_int 8).
34663 (*membar): Define as unspec instead of unspec_volatile.
34664 Use (match_dup 0) as input operand, remove input operand 2.
34665
34666 * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
34667 (memory_barrier): Expand as unspec instead of unspec_volatile.
34668 Remove mem:BLK from insn operands. Use Pmode scratch register.
34669 (*memory_barrier): Define as unspec instead of unspec_volatile.
34670 Use (match_dup 0) as input operand.
34671
34672 * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
34673 Remove mem:BLK from insn operands. Use Pmode scratch register.
34674 Set volatile flag on operand 0.
34675 (*memory_barrier): New insn pattern.
34676
34677 * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
34678 insn operands.
34679 (*memory_barrier): Use (match_dup 0) as input operand.
34680
34681 * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
34682 Remove mem:BLK from insn operands. Use Pmode scratch register.
34683 Set volatile flag on operand 0.
34684 (*mb_internal): New insn pattern.
34685
34686 * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
34687
34688 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
34689
34690 PR middle-end/38586
34691 * function.c (struct temp_slot): Move to the section of the file
34692 that deals with temp slots. Remove field 'address'.
34693 (temp_slot_address_table): New hash table of address -> temp slot.
34694 (struct temp_slot_address_entry): New struct, items for the table.
34695 (temp_slot_address_compute_hash, temp_slot_address_hash,
34696 temp_slot_address_eq, insert_temp_slot_address): Support functions
34697 for the new table.
34698 (find_temp_slot_from_address): Rewrite to use the new hash table.
34699 (remove_unused_temp_slot_addresses): Remove addresses of temp
34700 slots that have been made available.
34701 (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
34702 worker function for remove_unused_temp_slot_addresses.
34703 (assign_stack_temp_for_type): Don't clear the temp slot address list.
34704 Add the temp slot address to the address -> temp slot map.
34705 (update_temp_slot_address): Update via insert_temp_slot_address.
34706 (free_temp_slots): Call remove_unused_temp_slot_addresses.
34707 (pop_temp_slots): Likewise.
34708 (init_temp_slots): Allocate the address -> temp slot map, or empty
34709 the map if it is already allocated.
34710 (prepare_function_start): Initialize temp slot processing.
34711
34712 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
34713
34714 PR middle-end/38584
34715 * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
34716 Calculate the size of all stack vars assuming no packing of stack
34717 vars will happen, replacing a quadratic algorithm with a linear one.
34718
34719 2009-01-03 Jakub Jelinek <jakub@redhat.com>
34720
34721 PR target/38707
34722 * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
34723 can't be used.
34724
34725 2009-01-03 Diego Novillo <dnovillo@google.com>
34726
34727 * doc/contrib.texi: Update contributions.
34728
34729 2009-01-03 Jakub Jelinek <jakub@redhat.com>
34730
34731 PR c++/38705
34732 * builtins.c (fold_builtin_memory_op): Give up if either operand
34733 is volatile. Set srctype or desttype to non-qualified version
34734 of the other type.
34735
34736 PR c/38700
34737 * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
34738 and FUNCTION_DECLs.
34739
34740 2009-01-02 Kenneth Zadeck <zadeck@naturalbridge.com>
34741
34742 PR rtl-optimization/35805
34743 * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
34744 problem if fast dce is able to remove any instructions.
34745 * dce.c (dce_process_block): Fix dump message.
34746
34747 2009-01-02 Mark Mitchell <mark@codesourcery.com>
34748
34749 PR 33649
34750 * tree-ssa-pre.c (compute_antic): Correct loop bounds.
34751
34752 2009-01-02 Jakub Jelinek <jakub@redhat.com>
34753
34754 PR middle-end/38690
34755 * tree-flow.h (op_code_prio, op_prio): New prototypes.
34756 * tree-pretty-print.c (op_code_prio): New function.
34757 (op_prio): No longer static. Use op_code_prio.
34758 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
34759 Use op_prio and op_code_prio to determine if () should be
34760 printed around operand(s) or not.
34761
34762 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
34763 dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
34764 dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
34765 dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
34766 pp_character instead of pp_string for single letter printing.
34767
34768 2009-01-02 Richard Sandiford <rdsandiford@googlemail.com>
34769
34770 * doc/extend.texi: Fix '#pragma GCC option' typo.
34771
34772 2009-01-02 Richard Guenther <rguenther@suse.de>
34773
34774 * doc/install.texi (--enable-checking): Mention different
34775 default for stage1.
34776 (--enable-stage1-checking): Document.
34777
34778 2009-01-01 Andrew Pinski <pinskia@gmail.com>
34779
34780 PR middle-end/30142
34781 * tree-cfg.c (verify_expr): Add INDIRECT_REF case. Change MODIFY_EXPR
34782 case to be an error.
34783
34784 2009-01-02 Ben Elliston <bje@au.ibm.com>
34785
34786 * config/fp-bit.h (pack_d): Constify argument.
34787 * config/fp-bit.c (makenan): Constify return type. Remove casts.
34788 (isnan): Constify argument.
34789 (isinf): Likewise.
34790 (iszero): Likewise.
34791 (pack_d): Likewise.
34792 (_fpadd_parts): Constify return type.
34793 (_fpmul_parts): Likewise.
34794 (_fpdiv_parts): Likewise.
34795
34796 2009-01-01 Jakub Jelinek <jakub@redhat.com>
34797
34798 PR c/36489
34799 * c-typeck.c (add_pending_init): Add IMPLICIT argument. Only
34800 warn about overwriting initializer with side-effects or
34801 -Woverride-init if !IMPLICIT.
34802 (output_init_element): Likewise. Pass IMPLICIT down to
34803 add_pending_init.
34804 (process_init_element): Add IMPLICIT argument. Pass it down
34805 to output_init_element.
34806 (push_init_element, pop_init_level, set_designator): Adjust
34807 process_init_element callers.
34808 (set_nonincremental_init, set_nonincremental_init_from_string):
34809 Adjust add_pending_init callers.
34810 (output_pending_init_elements): Adjust output_init_element callers.
34811 * c-tree.h (process_init_element): Adjust prototype.
34812 * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
34813 process_init_element callers.
34814
34815 \f
34816 Copyright (C) 2009 Free Software Foundation, Inc.
34817
34818 Copying and distribution of this file, with or without modification,
34819 are permitted in any medium without royalty provided the copyright
34820 notice and this notice are preserved.