]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
2009-10-28 Richard Guenther <rguenther@suse.de>
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
d508766f 12009-10-28 Richard Guenther <rguenther@suse.de>
2
3 PR lto/41808
4 PR lto/41839
5 * tree-ssa.c (useless_type_conversion_p): Do not treat
6 conversions to pointers to incomplete types as useless.
7 * gimple.c (gimple_types_compatible_p): Compare struct tags,
8 not typedef names.
9
1ce27e5a 102009-10-28 Jakub Jelinek <jakub@redhat.com>
11
12 * var-tracking.c (emit_note_insn_var_location): Don't call the second
13 vt_expand_loc unnecessarily when location is not a register nor
14 memory.
15
228aaa62 16 PR middle-end/41837
17 * ipa-struct-reorg.c (find_field_in_struct_1): Return NULL if
18 fields don't have DECL_NAME.
19
7f4d56ad 20 PR debug/41801
21 * builtins.c (get_builtin_sync_mem): Expand loc in ptr_mode,
22 call convert_memory_address on addr.
23
88c7fa6a 24 PR target/41762
25 * config/i386/i386.c (ix86_pic_register_p): Don't call
26 rtx_equal_for_cselib_p for VALUEs discarded as useless.
27
f8dab706 282009-10-28 Richard Sandiford <rdsandiford@googlemail.com>
29
30 * var-tracking.c (emit_note_insn_var_location): Get the mode of
31 a variable part from its REG, MEM or VALUE.
32
5ae73b5a 332009-10-28 Richard Guenther <rguenther@suse.de>
34
35 * gimple.c (gimple_get_alias_set): Fix comment typo.
36
7b7fcfe1 372009-10-28 Richard Guenther <rguenther@suse.de>
38
39 * tree.c (free_lang_data_in_type): Do not call get_alias_set.
40 (free_lang_data): Unconditionally compute alias sets for all
41 standard integer types. Bail out if gate bailed out previously.
42 Do not reset the types_compatible_p langhook.
43 (gate_free_lang_data): Remove.
44 (struct pass_ipa_free_lang_data): Enable unconditionally.
45 * gimple.c (gimple_get_alias_set): Use the same alias-set for
46 all pointer types.
47
119147d1 482009-10-28 Richard Guenther <rguenther@suse.de>
49
50 PR middle-end/41855
51 * tree-ssa-alias.c (refs_may_alias_p_1): Deal with CONST_DECLs
52 (ref_maybe_used_by_call_p_1): Fix bcopy handling.
53 (call_may_clobber_ref_p_1): Likewise.
54 * tree-ssa-structalias.c (find_func_aliases): Likewise.
55 * alias.c (nonoverlapping_memrefs_p): Deal with CONST_DECLs.
56
fb38e012 572009-10-28 Paolo Bonzini <bonzini@gnu.org>
58
59 PR rtl-optimization/41812
60
61 Revert:
62 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
63
64 * df-problems.c (df_md_scratch): New.
65 (df_md_alloc, df_md_free): Allocate/free it.
66 (df_md_local_compute): Only include live registers in init.
67 (df_md_transfer_function): Prune the in-set computed by
68 the confluence function, and the gen-set too.
69
538fa3ee 702009-10-28 Paolo Bonzini <bonzini@gnu.org>
71
72 PR rtl-optimization/39715
73 * combine.c (simplify_comparison): Use extensions to
74 widen comparisons. Try an ANDing first.
75
923ffadb 762009-10-28 Paolo Bonzini <bonzini@gnu.org>
77
78 PR rtl-optimization/40741
79 * config/arm/arm.c (thumb1_rtx_costs): IOR or XOR with
80 a small constant is cheap.
81 * config/arm/arm.md (andsi3, iorsi3): Try to place the result of
82 force_reg on the LHS.
83 (xorsi3): Likewise, and split the XOR if the constant is complex
84 and not in Thumb mode.
85
12df6aa8 862009-10-28 Paolo Bonzini <bonzini@gnu.org>
87
88 * expmed.c (emit_store_flag): Check costs before
89 transforming to the opposite representation.
90
a61828d7 912009-10-28 Paolo Bonzini <bonzini@gnu.org>
92
93 * config/sh/sh.md (cbranchfp4_media): Remove hack extending
94 cstore result to DImode.
95
2b98847b 962009-10-28 Kaz Kojima <kkojima@gcc.gnu.org>
97
98 * config/sh/sh.md (stuff_delay_slot): Move const_int pattern
99 inside the unspec vector.
100
021c1c18 1012009-10-27 Richard Henderson <rth@redhat.com>
102
103 * cgraphunit.c (cgraph_optimize): Maintain timevar stack properly.
104
55d6d4e4 1052009-10-27 Richard Henderson <rth@redhat.com>
106
107 PR c++/41819
108 * tree-eh.c (eh_region_may_contain_throw_map): Rename from
109 eh_region_may_contain_throw; update users.
110 (eh_region_may_contain_throw): New function.
111 (lower_catch): Check flag_exceptions before creating exception region.
112 (lower_eh_filter, lower_eh_must_not_throw): Likewise.
113 (lower_cleanup): Tidy existing flag_exceptions check to match.
114
02c5bdd8 1152009-10-27 Kai Tietz <kai.tietz@onevision.com>
116
117 PR/41799
118 * config/i386/mingw32.h (CHECK_EXECUTE_STACK_ENABLED): New macro.
119 * config/i386/mingw.opt: Add fset-stack-executable.
120 * config/i386/i386.c (ix86_trampoline_init): Make call to
121 emit_library_call conditional, if CHECK_EXECUTE_STACK_ENABLED is
122 defined and its value is not zero.
123 * doc/invoke.texi
124
170c35d5 1252009-10-27 Richard Guenther <rguenther@suse.de>
126
127 * tree-ssa-structalias.c (find_func_aliases): In IPA mode
128 handle calls to externally visible functions like in regular mode.
129 (create_variable_info_for): Do not create function infos here.
130 (have_alias_info): Remove write-only variable.
131 (solve_constraints): New function split out from common code
132 in compute_points_to_sets and ipa_pta_execute.
133 (compute_points_to_sets): Adjust.
134 (ipa_pta_execute): Likewise. Handle clones and externally visible
135 functions like in non-IPA mode.
136
cb60919f 1372009-10-27 Jakub Jelinek <jakub@redhat.com>
138
139 PR c/41842
140 * c-typeck.c (convert_arguments): Return -1 if any of the arguments is
141 error_mark_node.
142
2cbde604 1432009-10-27 Richard Guenther <rguenther@suse.de>
144
145 * tree-complex.c (expand_complex_div_wide): Check for
146 INTEGER_CST, not TREE_CONSTANT on comparison folding result.
147
ec2886ed 1482009-10-27 Revital Eres <eres@il.ibm.com>
149
150 PR tree-optimization/40648
151 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
152 Change decision of when to peel for alignment.
153
bc9c6c8a 1542009-10-27 Richard Guenther <rguenther@suse.de>
155
156 PR lto/41821
157 * gimple.c (gimple_types_compatible_p): Handle OFFSET_TYPE.
158
27cbd062 1592009-10-27 Aldy Hernandez <aldyh@redhat.com>
160
161 PR bootstrap/41451
162 * fold-const.c (fold_binary_loc): Do not call
163 protected_set_expr_location.
164
751d3ba7 1652009-10-27 Wei Guozhi <carrot@google.com>
166
167 PR target/41705
ecb20cae 168 * target.h (have_conditional_execution): Add a new target hook
169 function.
751d3ba7 170 * target-def.h (TARGET_HAVE_CONDITIONAL_EXECUTION): Likewise.
171 * targhooks.h (default_have_conditional_execution): Likewise.
172 * targhooks.c (default_have_conditional_execution): Likewise.
173 * doc/tm.texi (TARGET_HAVE_CONDITIONAL_EXECUTION): Document it.
174 * config/arm/arm.c (TARGET_HAVE_CONDITIONAL_EXECUTION): Define it.
175 (arm_have_conditional_execution): New function.
176 * ifcvt.c (noce_process_if_block, find_if_header,
ecb20cae 177 cond_exec_find_if_block, dead_or_predicable): Change the usage of
178 macro HAVE_conditional_execution to a target hook call.
751d3ba7 179 * recog.c (peephole2_optimize): Likewise.
180 * sched-rgn.c (add_branch_dependences): Likewise.
181 * final.c (asm_insn_count, final_scan_insn): Likewise.
182 * bb-reorder.c (HAVE_conditional_execution): Remove it.
183
6cf5579e 1842009-10-26 Ben Elliston <bje@au.ibm.com>
185 Michael Meissner <meissner@linux.vnet.ibm.com>
186 Ulrich Weigand <uweigand@de.ibm.com>
187
188 * config.gcc (spu-*-elf*): Add spu_cache.h to extra_headers.
189 * config/spu/spu_cache.h: New file.
190
191 * config/spu/cachemgr.c: New file.
192 * config/spu/cache.S: New file.
193
194 * config/spu/spu.h (ASM_OUTPUT_SYMBOL_REF): Define.
195 (ADDR_SPACE_EA): Define.
196 (TARGET_ADDR_SPACE_KEYWORDS): Define.
197 * config/spu/spu.c (EAmode): New macro.
198 (TARGET_ADDR_SPACE_POINTER_MODE): Define.
199 (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
200 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
201 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Likewise.
202 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
203 (TARGET_ADDR_SPACE_CONVERT): Likewise.
204 (TARGET_ASM_SELECT_SECTION): Likewise.
205 (TARGET_ASM_UNIQUE_SECTION): Likewise.
206 (TARGET_ASM_UNALIGNED_SI_OP): Likewise.
207 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
208 (ea_symbol_ref): New function.
209 (spu_legitimate_constant_p): Handle __ea qualified addresses.
210 (spu_addr_space_legitimate_address_p): New function.
211 (spu_addr_space_legitimize_address): Likewise.
212 (cache_fetch): New global.
213 (cache_fetch_dirty): Likewise.
214 (ea_alias_set): Likewise.
215 (ea_load_store): New function.
216 (ea_load_store_inline): Likewise.
217 (expand_ea_mem): Likewise.
218 (spu_expand_mov): Handle __ea qualified memory references.
219 (spu_addr_space_pointer_mode): New function.
220 (spu_addr_space_address_mode): Likewise.
221 (spu_addr_space_subset_p): Likewise.
222 (spu_addr_space_convert): Likewise.
223 (spu_section_type_flags): Handle "._ea" section.
224 (spu_select_section): New function.
225 (spu_unique_section): Likewise.
226 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Support __EA32__
227 and __EA64__ predefined macros.
228 * config/spu/spu-elf.h (LIB_SPEC): Handle -mcache-size= and
229 -matomic-updates switches.
230
231 * config/spu/t-spu-elf (MULTILIB_OPTIONS): Define.
232 (EXTRA_MULTILIB_PARTS): Add libgcc_cachemgr.a,
233 libgcc_cachemgr_nonatomic.a, libgcc_cache8k.a, libgcc_cache16k.a,
234 libgcc_cache32k.a, libgcc_cache64k.a, libgcc_cache128k.a.
235 ($(T)cachemgr.o, $(T)cachemgr_nonatomic.o): New target.
236 ($(T)cache8k.o, $(T)cache16k.o, $(T)cache32k.o, $(T)cache64k.o,
237 $(T)cache128k.o): Likewise.
238 ($(T)libgcc_%.a): Likewise.
239
240 * config/spu/spu.h (TARGET_DEFAULT): Add MASK_ADDRESS_SPACE_CONVERSION.
241 * config/spu/spu.opt (-mea32/-mea64): Add switches.
242 (-maddress-space-conversion): Likewise.
243 (-mcache-size=): Likewise.
244 (-matomic-updates): Likewise.
245 * doc/invoke.texi (-mea32/-mea64): Document.
246 (-maddress-space-conversion): Likewise.
247 (-mcache-size=): Likewise.
248 (-matomic-updates): Likewise.
249
6d5d708e 2502009-10-26 Ben Elliston <bje@au.ibm.com>
251 Michael Meissner <meissner@linux.vnet.ibm.com>
252 Ulrich Weigand <uweigand@de.ibm.com>
253
254 * doc/tm.texi (TARGET_ADDR_SPACE_KEYWORDS): Document.
255
256 * c-common.c (c_common_reswords): If TARGET_ADDR_SPACE_KEYWORDS is
257 defined, add the named address space keywords.
258 (c_addr_space_name): New function.
259 (complete_array_type): Preserve named address space.
260 (handle_mode_attribute): Use targetm.addr_space.valid_pointer_mode
261 instead of targetm.valid_pointer_mode.
262
263 * c-common.h (enum rid): Add RID_ADDR_SPACE_0 .. RID_ADDR_SPACE_15,
264 RID_FIRST_ADDR_SPACE and RID_LAST_ADDR_SPACE.
265 (ADDR_SPACE_KEYWORD): New macro.
266 (c_addr_space_name): Add prototype.
267
268 * c-tree.h (struct c_declspecs): Add address_space member.
269 (declspecs_add_addrspace): Add prototype.
270
271 * c-pretty-print.c (pp_c_type_qualifier_list): Handle address spaces.
272
273 * c-parser.c (c_parse_init): Add assertion.
274 (typedef enum c_id_kind): Add C_ID_ADDRSPACE.
275 (c_lex_one_token): Handle address space keywords.
276 (c_token_starts_typename): Likewise.
277 (c_token_starts_declspecs): Likewise.
278 (c_parser_declspecs): Likewise.
279 (c_parser_postfix_expression_after_paren_type): Diagnose compound
280 literal within function qualified with named address space.
281
282 * c-decl.c (diagnose_mismatched_decls): Diagnose conflicting named
283 address space qualifiers.
284 (shadow_tag_warned): Warn about useless address space qualifiers.
285 (quals_from_declspecs): Handle address space qualifiers.
286 (grokdeclarator): Likewise.
287 (build_null_declspecs): Likewise.
288 (declspecs_add_addrspace): New function.
289
290 * c-typeck.c (addr_space_superset): New function.
291 (qualify_type): Handle named address spaces.
292 (composite_type): Likewise.
293 (common_pointer_type): Likewise.
294 (comp_target_types): Likewise.
295 (build_conditional_expr): Likewise.
296 (handle_warn_cast_qual): Likewise.
297 (build_c_cast): Likewise.
298 (convert_for_assignment): Likewise.
299 (build_binary_op): Likewise.
300 (pointer_diff): Handle named address spaces. Use intermediate
301 integer type of sufficient size if required.
302
98155838 3032009-10-26 Ben Elliston <bje@au.ibm.com>
304 Michael Meissner <meissner@linux.vnet.ibm.com>
305 Ulrich Weigand <uweigand@de.ibm.com>
306
307 * doc/tm.texi (TARGET_ADDR_SPACE_POINTER_MODE): Document.
308 (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
309 (TARGET_ADDR_SPACE_VALID_POINTER_MODE): Likewise.
310
311 * target.h (struct target_def): Add pointer_mode, address_mode,
312 and valid_pointer_mode to addr_space substructure.
313 * target-def.h (TARGET_ADDR_SPACE_POINTER_MODE): Define.
314 (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
315 (TARGET_ADDR_SPACE_VALID_POINTER_MODE): Likewise.
316 (TARGET_ADDR_SPACE_HOOKS): Add them.
317 * targhooks.c (target_default_pointer_address_modes_p): New function.
318 * target.h (target_default_pointer_address_modes_p): Add prototype.
319 * targhooks.c (default_addr_space_pointer_mode): New function.
320 (default_addr_space_address_mode): Likewise.
321 (default_addr_space_valid_pointer_mode): Likewise.
322 * targhooks.h (default_addr_space_pointer_mode): Add prototype.
323 (default_addr_space_address_mode): Likewise.
324 (default_addr_space_valid_pointer_mode): Likewise.
325 * output.h (default_valid_pointer_mode): Move to ...
326 * targhooks.h (default_valid_pointer_mode): ... here.
327 * varasm.c (default_valid_pointer_mode): Move to ...
328 * targhooks.c (default_valid_pointer_mode): ... here.
329
330 * varasm.c (output_constant): Use targetm.addr_space.valid_pointer_mode
331 instead of targetm.valid_pointer_mode.
332
333 * fold-const.c (fit_double_type): Use int_or_pointer_precision.
334 * tree.c (integer_pow2p): Likewise.
335 (tree_log2): Likewise.
336 (tree_floor_log2): Likewise.
337 (signed_or_unsigned_type_for): Support pointer type of different size.
338 (int_or_pointer_precision): New function.
339 * tree.h (int_or_pointer_precision): Add prototype.
340 * stor-layout.c (layout_type): Set TYPE_PRECISION for offset types.
341 * varasm.c (initializer_constant_valid_p): Use TYPE_PRECISION of
342 incoming pointer type instead of POINTER_SIZE.
343
344 * tree.c (build_pointer_type): Use appropriate pointer mode
345 instead of ptr_mode.
346 (build_reference_type): Likewise.
347 * expr.c (store_expr): Likewise.
348 (expand_expr_addr_expr): Likewise.
349 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
350 * cfgexpand.c (expand_debug_expr): Likewise.
ecb20cae 351
98155838 352 * auto-inc-dec.c: Include "target.h".
353 (try_merge): Use appropriate address mode instead of Pmode.
354 (find_inc): Likewise.
355 * combine.c (find_split_point): Likewise.
356 * cselib.c (cselib_record_sets): Likewise.
357 * dse.c (replace_inc_dec): Likewise.
358 (canon_address): Likewise.
359 * var-tracking.c (replace_expr_with_values): Likewise.
360 (count_uses): Likewise.
361 (add_uses): Likewise.
362 (add_stores): Likewise.
363 * emit-rtl.c: Include "target.h".
364 (adjust_address_1): Use appropriate address mode instead of Pmode.
365 (offset_address): Likewise.
366 * explow.c (break_out_memory_refs): Likewise.
367 (memory_address_addr_space): Likewise.
368 (promote_mode): Likewise.
369 * expr.c (move_by_pieces): Likewise.
370 (emit_block_move_via_loop): Likewise.
371 (store_by_pieces): Likewise.
372 (store_by_pieces_1): Likewise.
373 (expand_assignment): Likewise.
374 (store_constructor): Likewise.
375 (expand_expr_addr_expr): Likewise.
376 (expand_expr_real_1): Likewise.
377 * cfgexpand.c (expand_debug_expr): Likewise.
378 * ifcvt.c (noce_try_cmove_arith): Likewise.
379 * regcprop.c (kill_autoinc_value): Likewise.
380 * regmove.c (try_auto_increment): Likewise.
381 * reload.c (find_reloads): Likewise.
382 (find_reloads_address): Likewise.
383 (find_reloads_address_1): Likewise.
384 * sched-deps.c: Include "target.h".
385 (sched_analyze_1): Use appropriate address mode instead of Pmode.
386 (sched_analyze_2): Likewise.
387 * sel-sched-dump.c: Include "target.h".
388 (debug_mem_addr_value): Use appropriate address mode instead of Pmode.
389 * stor-layout.c (layout_type): Likewise.
390 * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
391 (multiplier_allowed_in_address_p): Likewise.
392 (get_address_cost): Likewise.
393 * varasm.c (make_decl_rtl): Likewise.
ecb20cae 394
98155838 395 * expr.c (expand_assignment): Always convert offsets to appropriate
396 address mode.
397 (store_expr): Likewise.
398 (store_constructor): Likewise.
399 (expand_expr_real_1): Likewise.
400
401 * reload.h (form_sum): Add MODE argument.
402 * reload.c (form_sum): Add MODE argument, use it instead of Pmode.
403 Update recursive calls.
404 (subst_indexed_address): Update calls to form_sum.
ecb20cae 405
98155838 406 * tree-flow.h (addr_for_mem_ref): Add ADDRSPACE argument.
407 * tree-ssa-address.c: Include "target.h".
408 (templates): Replace by ...
409 (mem_addr_template_list): ... this new vector.
410 (TEMPL_IDX): Handle address space numbers.
411 (gen_addr_rtx): Add address mode argument, use it instead of Pmode.
412 (addr_for_mem_ref): Add ADDRSPACE argument. Use per-address-space
413 instead of global cache. Update call to gen_addr_rtx.
414 (valid_mem_ref_p): Update call to addr_for_mem_ref.
415 * expr.c (expand_expr_real_1): Update call to addr_for_mem_ref.
ecb20cae 416
98155838 417 * rtl.h (convert_memory_address_addr_space): Add prototype.
418 (convert_memory_address): Define as macro.
419 * explow.c (convert_memory_address): Rename to ...
420 (convert_memory_address_addr_space): ... this. Add ADDRSPACE argument.
421 Use appropriate pointer and address modes instead of ptr_mode / Pmode.
422 Update recursive calls.
423 (memory_address_addr_space): Call convert_memory_address_addr_space.
424 * expmed.c (make_tree): Likewise.
425 * expr.c (expand_assignment): Likewise.
426 (expand_expr_addr_expr_1): Likewise. Also, add ADDRSPACE argument.
427 (expand_expr_addr_expr): Likewise. Also, update call.
428
429 * alias.c (find_base_value): Guard pointer size optimizations.
430 (find_base_term): Likewise.
431 * rtlanal.c (nonzero_bits1): Likewise.
432 (num_sign_bit_copies1): Likewise.
433 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
434
435 * Makefile.in (tree-ssa-address.o): Add $(TARGET_H) dependency.
436 (emit-rtl.o): Likewise.
437 (auto-inc-dec.o): Likewise.
438 (sched-deps.o): Likewise.
439
bd1a81f7 4402009-10-26 Ben Elliston <bje@au.ibm.com>
441 Michael Meissner <meissner@linux.vnet.ibm.com>
442 Ulrich Weigand <uweigand@de.ibm.com>
443
444 * doc/extend.texi (Named Address Spaces): New section.
445 * coretypes.h (addr_space_t): New type.
446 (ADDR_SPACE_GENERIC): New define.
447 (ADDR_SPACE_GENERIC_P): New macro.
448
449 * doc/tm.texi (Named Address Spaces): New section.
450 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Document.
451 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Document.
452 (TARGET_ADDR_SPACE_SUBSET_P): Document.
453 (TARGET_ADDR_SPACE_CONVERT): Document.
454 * target.h (struct gcc_target): Add addr_space substructure.
455 * target-def.h (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
456 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Likewise.
457 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
458 (TARGET_ADDR_SPACE_CONVERT): Likewise.
459 (TARGET_ADDR_SPACE_HOOKS): Likewise.
460 (TARGET_INITIALIZER): Initialize addr_space hooks.
461 * targhooks.c (default_addr_space_legitimate_address_p): New function.
462 (default_addr_space_legitimize_address): Likewise.
463 (default_addr_space_subset_p): Likewise.
464 (default_addr_space_convert): Likewise.
465 * targhooks.h (default_addr_space_legitimate_address_p): Add prototype.
466 (default_addr_space_legitimize_address): Likewise.
467 (default_addr_space_subset_p): Likewise.
468 (default_addr_space_convert): Likewise.
469
470 * doc/rtl.texi (MEM_ADDR_SPACE): Document.
471 * rtl.h (mem_attrs): Add ADDRSPACE memory attribute.
472 (MEM_ADDR_SPACE): New macro.
473 * emit-rtl.c (get_mem_attrs): Add ADDRSPACE argument and set
474 address space memory attribute.
475 (mem_attrs_htab_hash): Handle address space memory attribute.
476 (mem_attrs_htab_eq): Likewise.
477 (set_mem_attributes_minus_bitpos): Likewise.
478 (set_mem_alias_set): Likewise.
479 (set_mem_align): Likewise.
480 (set_mem_expr): Likewise.
481 (set_mem_offset): Likewise.
482 (set_mem_size): Likewise.
483 (adjust_address_1): Likewise.
484 (offset_address): Likewise.
485 (widen_memoy_address): Likewise.
486 (get_spill_slot_decl): Likewise.
487 (set_mem_attrs_for_spill): Likewise.
488 (set_mem_addr_space): New function.
489 * emit-rtl.h (set_mem_addr_space): Add prototype.
490 * print-rtl.c (print_rtx): Print address space memory attribute.
491 * expr.c (expand_assignment): Set address space memory attribute
492 of generated MEM RTXes as appropriate.
493 (expand_expr_real_1): Likewise.
494 * cfgexpand.c (expand_debug_expr): Likewise.
495 * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
496
497 * tree.h (struct tree_base): Add address_space bitfield. Reduce
498 size of "spare" bitfield.
499 (TYPE_ADDR_SPACE): New macro.
500 (ENCODE_QUAL_ADDR_SPACE): Likewise.
501 (DECODE_QUAL_ADDR_SPACE): Likewise.
502 (CLEAR_QUAL_ADDR_SPACE): Likewise.
503 (KEEP_QUAL_ADDR_SPACE): Likewise.
504 (TYPE_QUALS): Encode type address space.
505 (TYPE_QUALS_NO_ADDR_SPACE): New macro.
506 * tree.c (set_type_quals): Set type address space.
507 (build_array_type): Inherit array address space from element type.
508 * print-tree.c (print_node_brief): Print type address space.
509 (print_node): Likewise.
510 * tree-pretty-print.c (dump_generic_node): Likewise.
511
512 * explow.c (memory_address): Rename to ...
513 (memory_address_addr_space): ... this. Add ADDRSPACE argument.
514 Use address-space aware variants of memory address routines.
515 * recog.c (memory_address_p): Rename to ...
516 (memory_address_addr_space_p): ... this. Add ADDSPACE argument.
517 Use address-space aware variants of memory address routines.
518 (offsettable_address_p): Rename to ...
519 (offsettable_address_addr_space_p): ... this. Add ADDRSPACE argument.
520 Use address-space aware variants of memory address routines.
521 * reload.c (strict_memory_address_p): Rename to ...
522 (strict_memory_address_addr_space_p): ... this. Add ADDSPACE argument.
523 Use address-space aware variants of memory address routines.
524 (maybe_memory_address_p): Rename to ...
525 (maybe_memory_address_addr_space_p): ... this. Add ADDSPACE argument.
526 Use address-space aware variants of memory address routines.
527 * expr.h (memory_address_addr_space): Add prototype.
528 (memory_address): Define as macro.
529 * recog.h (memory_address_addr_space_p): Add prototype.
530 (memory_address_p): Define as macro.
531 (offsettable_address_addr_space_p): Add prototype.
532 (offsettable_address_p): Define as macro.
533 (strict_memory_address_addr_space_p): Add prototype.
534 (strict_memory_address_p): Define as macro.
535
536 * combine.c (find_split_point): Use address-space aware variants
537 of memory address routines.
538 * emit-rtl.c (operand_subword): Likewise.
539 (change_address_1): Likewise.
540 (adjust_address_1): Likewise.
541 (offset_address): Likewise.
542 * expr.c (emit_move_insn): Likewise.
543 (expand_assignment): Likewise.
544 (expand_expr_real_1): Likewise.
545 * recog.c (verify_changes): Likewise.
546 (general_operand): Likewise.
547 (offsettable_memref_p): Likewise.
548 (offsettable_nonstrict_memref_p): Likewise.
549 (constrain_operands): Likewise.
550 * reload.c (get_secondary_mem): Likewise.
551 (find_reloads_toplev): Likewise.
552 (find_reloads_address): Likewise.
553 (find_reloads_subreg_address): Likewise.
554 * reload1.c (reload): Likewise.
555 * rtlhooks.c (gen_lowpart_if_possible): Likewise.
556 * rtl.h (address_cost): Add ADDRSPACE argument.
557 * rtlanal.c (address_cost): Add ADDRSPACE argument. Use address-space
558 aware variant of memory address routines.
559 * loop-invariant.c (create_new_invariant): Update address_cost call.
560 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
561 * fwprop.c (should_replace_address): Add ADDRSPACE argument.
562 Use address-space aware variant of memory address routines.
563 (propagate_rtx_1): Update call to should_replace_address.
564 * tree-flow.h (multiplier_allowed_in_address_p): Add ADDRSPACE
565 argument.
566 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Add
567 ADDRSPACE argument. Use per-address-space instead of global cache.
568 Use address-space aware variant of memory address routines.
569 (get_address_cost): Likewise.
570 (get_computation_cost_at): Update calls.
571 * tree-ssa-address.c (valid_mem_ref_p): Add ADDRSPACE argument.
572 Use address-space aware variant of memory address routines.
573 (create_mem_ref_raw): Update call to valid_mem_ref_p.
574 (most_expensive_mult_to_index): Update call to
575 multiplier_allowed_in_address_p.
576
577 * dwarf2out.c (modified_type_die): Output DW_AT_address_class
578 attribute to indicate named address spaces.
579
580 * varasm.c (get_variable_section): DECLs in named address spaces
581 cannot be "common".
582
583 * reload.c (find_reloads_address): Do not use LEGITIMIZE_RELOAD_ADDRESS
584 for addresses in a non-generic address space.
585
586 * expr.c (emit_block_move_hints): Do not use libcalls for
587 memory in non-generic address spaces.
588 (clear_storage_hints): Likewise.
589 (expand_assignment): Likewise.
590
591 * fold-const.c (operand_equal_p): Expressions refering to different
592 address spaces are not equivalent.
593
594 * rtl.c (rtx_equal_p_cb): MEMs refering to different address
595 spaces are not equivalent.
596 (rtx_equal_p): Likewise.
597 * cse.c (exp_equiv_p): Likewise.
598 * jump.c (rtx_renumbered_equal_p): Likewise.
599 * reload.c (operands_match_p): Likewise.
600
601 * alias.c (nonoverlapping_memrefs_p): MEMs refering to different
602 address spaces may alias.
603 (true_dependence): Likewise.
604 (canon_true_dependence): Likewise.
605 (write_dependence_p): Likewise.
606
607 * dse.c (canon_address): Handle named address spaces.
608 * ifcvt.c (noce_try_cmove_arith): Likewise.
609
610 * tree.def (ADDR_SPACE_CONVERT_EXPR): New tree code.
611 * expr.c (expand_expr_real_2): Expand ADDR_SPACE_CONVERT_EXPR.
612 * convert.c (convert_to_pointer): Generate ADDR_SPACE_CONVERT_EXPR
613 to handle conversions between different address spaces.
614 * fold-const.c (fold_convert_loc): Likewise.
615 (fold_unary_loc): Handle ADDR_SPACE_CONVERT_EXPR.
616 * tree-pretty-print.c (dump_generic_node): Likewise.
617 * gimple-pretty-print.c (dump_unary_rhs): Likewise.
618 * tree-cfg.c (verify_gimple_assign_unary): Likewise.
619 * tree-inline.c (estimate_operator_cost): Likewise.
620 * tree-ssa.c (useless_type_conversion_p): Conversions between pointers
621 to different address spaces are not useless.
622
709be7ff 6232009-10-26 Jakub Jelinek <jakub@redhat.com>
624
17d1c688 625 PR bootstrap/41345
626 * cfgcleanup.c (trivially_empty_bb_p): New function.
627 (try_optimize_bb): Use it instead of checking BB_HEAD == BB_END.
628
709be7ff 629 PR debug/41828
630 * dwarf2out.c (add_pubname, add_pubtype, generic_parameter_die,
631 add_name_and_src_coords_attributes, gen_namespace_die,
632 dwarf2out_set_name): Handle dwarf2_name returning NULL.
633
24833e1a 6342009-10-26 Nick Clifton <nickc@redhat.com>
635
636 * config.gcc: Add support for RX target.
637 * config/rx: New directory.
638 * config/rx/constraints.md: New file.
639 * config/rx/predicates.md: New file.
640 * config/rx/rx.c: New file.
641 * config/rx/rx.h: New file.
642 * config/rx/rx.md: New file.
643 * config/rx/rx.opt: New file.
644 * config/rx/rx-protos.h: New file.
645 * config/rx/t-rx: New file.
646 * doc/extend.texi: Document RX function attributes.
647 * doc/invoke.texi: Document RX specific command line options.
648 * doc/contrib.texi: Document RX contribution.
649 * doc/md.texi: Document RX constraints.
650 * doc/install.texi: Document RX support.
651
7814d418 6522009-10-26 Michael Matz <matz@suse.de>
653
654 PR tree-optimization/41783
655 * tree-ssa-alias.c (get_continuation_for_phi): Export, add a special
656 case for simple diamonds.
657 * tree-ssa-alias.h (get_continuation_for_phi): Declare.
658 * tree-ssa-pre.c (translate_vuse_through_block): Add same_valid
659 argument, use alias oracle to skip some vdefs.
660 (phi_translate_1): Change call to above, don't allocate new
661 value ids if they can stay the same.
662 (compute_avail): Allow vuse walking when looking up references.
663
543681ac 6642009-10-26 Richard Guenther <rguenther@suse.de>
665
666 PR tree-optimization/41826
667 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Avoid
668 access to re-allocated vector fields.
669
83edd737 6702009-10-26 Richard Guenther <rguenther@suse.de>
671
672 * graphite-sese-to-poly.c (check_poly_representation): Fix
673 compile without checking.
674
1b013d97 6752009-10-26 Janus Weil <janus@gcc.gnu.org>
676
677 PR fortran/41714
678 * gimple.h (tree_annotate_all_with_location): Remove prototype.
679 * gimplify.c (tree_should_carry_location_p,
680 tree_annotate_one_with_location,tree_annotate_all_with_location):
681 Remove obsolete functions.
682
f5ab892a 6832009-10-25 Kaz Kojima <kkojima@gcc.gnu.org>
684
685 PR target/41813
686 * config/sh/sh.md (stuff_delay_slot): Don't set T_REG in pattern.
687
88aca906 6882009-10-25 Richard Guenther <rguenther@suse.de>
689
690 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
691 Stream DECL_RESTRICTED_P.
692 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
693
70ea0e7c 6942009-10-25 Richard Sandiford <rdsandiford@googlemail.com>
695
696 * config/mips/mips.c (mips_restore_gp_from_cprestore_slot): Emit
697 a note when expanding to nothing.
698
06323ab0 6992009-10-25 Richard Guenther <rguenther@suse.de>
700
701 PR middle-end/41814
702 * tree.c (find_decls_types_r): Deal with Java overloading
703 BINFO_VIRTUALS for its own purpose.
704
e8b6f830 7052009-10-24 Adam Nemet <anemet@caviumnetworks.com>
706
707 * config/mips/predicates.md (hilo_operand): New predicate.
708 * config/mips/mips.md (<u>mulsidi3_64bit): Change it to a
709 define_insn. Correct !ISA_HAS_EXT_INS length from 24 to 28. Move
710 splitter part from here ...:
711 (<u>mulsidi3_64bit splitter for !ISA_HAS_EXT_INS): ... to here. Swap
712 op0 and op4 to match the DINS case.
713 (<u>mulsidi3_64bit splitter for ISA_HAS_EXT_INS): New splitter.
714
7152009-10-24 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
d1e6bce2 716
717 PR middle-end/19154
718 * avr.md (QIDI): Add new mode iterator.
719 (sbrx_branch<mode>): Create new zero extract bit, test and jump
720 patterns for all QI thru DI modes combinations.
721 (sbrx_and_branch<mode>): Create new and based bit test and jump
722 patterns for QI thru SI modes.
723 avr.c (avr_out_sbxx_branch): Use only bit number.
724
f589330e 7252009-10-24 Jan Hubicka <jh@suse.cz>
726
727 * ipa-reference.c (check_call): Noreturn notrhow calls do not write
728 to memory.
cbfd7bf8 729 (analyze_function): When analyzing noreturn nothrow call, do not
730 compute written stats; free bitmaps of vars early if possible.
f589330e 731 (generate_summary): Only update bitmaps if computed.
732 (propagate): Only dump bitmaps if computed.
733 (ipa_reference_read_summary): Fix pasto.
734
a42ce2cc 7352009-10-24 Eric Botcazou <ebotcazou@adacore.com>
736
737 * tree-ssa-alias.c (nonaliasing_component_refs_p): Rename into...
738 (aliasing_component_refs_p): ...this. Return true if there is no
739 common base and the base access types have the same alias set.
740 (indirect_ref_may_alias_decl_p): Adjust for above renaming.
741 (indirect_refs_may_alias_p): Likewise.
742
9fa2814c 7432009-10-23 Joseph Myers <joseph@codesourcery.com>
744
745 PR c/40033
746 * c-typeck.c (c_finish_stmt_expr): Do not wrap error_mark_node in
747 a C_MAYBE_CONST_EXPR.
748
f9b91390 7492009-10-23 Michael Meissner <meissner@linux.vnet.ibm.com>
750
751 PR target/41787
752 * config/rs6000/rs6000.c (struct machine_function): Add
753 vsx_or_altivec_used_p to record if vector types are used.
754 (rs6000_expand_to_rtl_hook): Rename from
755 rs6000_alloc_sdmode_stack_slot. If VSX, check to see if there are
756 any vector operations, so if there are, we can set VRSAVE to
757 non-zero when only floating point vector registers are used.
758 (TARGET_EXPAND_TO_RTL_HOOK): Use rs6000_expand_to_rtl_hook.
759 (rs6000_check_vector_mode): Inner function to check if vector
760 types are used in the code.
761 (compute_vrsave_mask): If VSX, make sure VRSAVE is non-zero if
762 vector instructions are used.
763
764 * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED):
765 Indicate that VSX registers which overlap floating point
766 registers, can't be used across a call, since the ABI only states
767 the scalar part of the register will be saved and restored.
768
e58c17e7 7692009-10-23 Joseph Myers <joseph@codesourcery.com>
770
771 PR c/41673
772 * alias.c (get_alias_set): Call langhook before returning 0 for
773 types with structural equality.
774 * c-common.c (c_common_get_alias_set): Use alias set of element
775 type for arrays with structural comparison.
776
e1ac6f35 7772009-10-23 Richard Guenther <rguenther@suse.de>
778
779 PR middle-end/41805
780 * cfgexpand.c (expand_call_stmt): Use gimple_has_side_effects and
781 gimple_call_nothrow_p.
782
442cf145 7832009-10-23 Richard Guenther <rguenther@suse.de>
784
785 PR tree-optimization/41778
786 * tree-ssa-pre.c (do_regular_insertion): Only insert if a
787 redundancy along a path in the CFG we want to optimize for speed
788 is going to be removed.
789 (execute_pre): Do partial-PRE only if the function is to be
790 optimized for speed.
791 (gate_pre): Do not turn off all of PRE when not optimizing a
792 function for speed.
793
b0ce8887 7942009-10-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
795
796 * builtins.c (fold_builtin_cabs): Use validate_arg().
797 (fold_builtin_cexp): Fix if-logic.
798 (fold_builtin_1): Check subtype for BUILT_IN_CIMAG.
799
100cfccc 8002009-10-22 Jeff Law <law@redhat.com>
801
27b732c7 802 * ira-lives.c (process_single_reg_class_operands): Update the
100cfccc 803 hard reg costs for all the hard registers desired by the
804 single reg class operand.
805
f7038c77 8062009-10-22 Richard Sandiford <rdsandiford@googlemail.com>
807
808 * simplify-rtx.c (simplify_replace_fn_rtx): Add a fallback case
809 for rtxes that aren't handled specially.
810
b447ca78 8112009-10-22 Richard Sandiford <rdsandiford@googlemail.com>
812
813 * rtl.h (shallow_copy_rtvec): Declare.
814 * rtl.c (shallow_copy_rtvec): New function.
815 * cselib.c (cselib_subst_to_values): Use it. Only modify an
816 rtx field if the subrtx has changed.
817
f57d8b49 8182009-10-22 Anatoly Sokolov <aesok@post.ru>
819
820 * config/m32c/m32c.c (m32c_function_value_regno_p): New function.
821 (m32c_function_value): Make static, add new 'outgoing' argument.
822 (m32c_libcall_value): Make static, add new 'fun' argument.
823 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
ecb20cae 824 * config/m32c/m32c.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
f57d8b49 825 (FUNCTION_VALUE_REGNO_P): Redefine, use m32c_function_value_regno_p.
826 * config/m32c/m32c-protos.h (m32c_function_value_regno_p): Declare.
827 (m32c_function_value, m32c_libcall_value): Delete declaration.
828
5aa82f75 8292009-10-22 Diego Novillo <dnovillo@google.com>
830
27b732c7 831 * Makefile.in (PLUGIN_HEADERS): Add output.h and IPA_UTILS_H.
5aa82f75 832
cca979c6 8332009-10-22 Razya Ladelsky <razya@il.ibm.com>
cbfd7bf8 834
27b732c7 835 * tree-cfg.c (gimple_duplicate_sese_tail): Fix typos/indentation/white
836 space.
cca979c6 837
21ce3cc7 8382009-10-22 Richard Guenther <rguenther@suse.de>
839
840 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Declare.
841 * lto-symtab.c (struct lto_symtab_entry_def): Add node member.
842 (lto_symtab_merge): Do not merge cgraph nodes here.
843 (lto_symtab_resolve_can_prevail_p): Simplify.
844 (lto_symtab_resolve_symbols): Store cgraph node.
845 (lto_symtab_merge_decls_1): Simplify. Do not drop non-prevailing
846 functions from the symtab.
847 (lto_symtab_merge_cgraph_nodes_1): New function.
848 (lto_symtab_merge_cgraph_nodes): Likewise.
849
1e81aceb 8502009-10-22 Richard Guenther <rguenther@suse.de>
851
852 PR lto/41791
853 * lto-streamer-out.c (lto_output_location): Stream the
854 system header flag.
855 * lto-streamer-in.c (lto_input_location): Likewise.
856
b0fb253a 8572009-10-22 Razya Ladelsky <razya@il.ibm.com>
ecb20cae 858
859 * cfgloopmanip.c (duplicate_subloops): Export.
b0fb253a 860 * tree-parloops.c (loop_parallel_p): Dump if loop is innermost.
ecb20cae 861 (transform_to_exit_first_loop): Duplicate bbs starting from
b0fb253a 862 header up to loop->latch instead of exit->src.
863 Initialize control variable to the correct number of iterations.
864 (gather_scalar_reductions): Do not register double reductions.
ecb20cae 865 (parallelize_loops): Dump which loop is tested.
866 Indicate whether the parallelized loop is inner or not.
b0fb253a 867 Remove the innermost-loop requirement.
ecb20cae 868 * cfgloop.h (duplicate_subloops): Export.
b0fb253a 869 * tree-cfg.c (add_phi_args_after_redirect): New function.
870 (gimple_duplicate_sese_tail): Remove the no-subloops constraint.
871 Call duplicate_subloops.
872 Update number of iterations at the exit condition.
873 Don't redirect nexits always to the loop exit.
874 Redirect copied edges from latch to the loop exit.
b0fb253a 875
13ea1784 8762009-10-22 Jan Hubicka <jh@suse.cz>
877
878 * ipa-cp.c (ipcp_read_summary): Remove now invalid FIXME and
879 flag_ltrans check.
880 * ipa-inline.c (cgraph_mark_inline_edge,
881 cgraph_decide_inlining_of_small_function,
ecb20cae 882 cgraph_decide_inlining, inline_read_summary): Disable indirect
883 inlining for WPA for time being.
13ea1784 884
cbfd7bf8 885 PR tree-optimize/40556
13ea1784 886 * ipa-inline.c (cgraph_early_inlining): Fix iterations condition.
887
5575303a 8882009-10-22 Richard Guenther <rguenther@suse.de>
889
890 * lto-streamer.h (lto_symtab_clear_resolution): Remove.
891 * lto-symtab.c (lto_symtab_clear_resolution): Likewise.
892
ef378c27 8932009-10-22 Jan Hubicka <jh@suse.cz>
894
13ea1784 895 PR lto/41730
5575303a 896 * ipa-reference.c (has_proper_scope_for_analysis): Add fixme about
897 global vars.
898 (check_call): Handle only indirect calls.
899 (propagate_bits): Update comment.
900 (write_node_summary_p): Turn bogus check to assert.
901 (ipa_reference_write_summary): Stream calls_read_all properly.
902 (ipa_reference_read_summary): Stream in calls_read_all properly.
903 (read_write_all_from_decl): New function.
904 (propagate): Handle OVERWRITABLE nodes and external calls here.
ecb20cae 905 * ipa-pre-const.c (check_call): In IPA mode handle indirect
906 calls only.
5575303a 907 (analyze_function): Do not check visibility here.
908 (add_new_function): We summary OVERWRITABLE too.
909 (generate_summary): Stream OVERWRITABLE nodes too.
910 (propagate): Handle external calls and OVERWRITABLE nodes here.
911 (local_pure_const): Check visibility here.
ef378c27 912
8867b500 9132009-10-22 Jan Hubicka <jh@suse.cz>
914
915 * ipa-cp.c (ipcp_write_summary, ipcp_read_summary): New functions.
916 (pass_ipa_cp): Register them.
917 (ipcp_init_stage): Analyze all functions for whopr/lto.
918 (ipcp_propagate_stage): Skip external calls.
919 (ipcp_iterate_stage): Call ipa_update_after_lto_read if needed.
ecb20cae 920 * ipa-reference.c (write_node_summary_p): Fix thinko about
921 availability.
8867b500 922 * cgraphunit.c (ipa_passes): When in lto, ne er produce new summaries;
ecb20cae 923 when in ltrans, skip executing of ipa passes since everything
924 should've been done.
8867b500 925 * ipa-inline.c (cgraph_decide_inlining): Remove FIXMEs.
926 (inline_generate_summary): Likewise.
927 (inline_read_summary): New function.
928 (inline_write_summary): New function.
929 (pass_ipa_inline): Register new hooks.
930 * ipa-prop.c: Inlcude lto-streamer.h
931 (ipa_edge_args_vector): Update declaration.
932 (ipa_count_arguments, ipa_compute_jump_functions,
933 ipa_free_edge_args_substructures): Move ipa_edge_args_vector into ggc.
934 (ipa_write_jump_function, ipa_read_jump_function, ipa_write_node_info,
935 ipa_read_node_info): New static functions.
936 (ipa_prop_write_jump_functions, ipa_prop_read_jump_functions): Update.
937 (duplicate_array): Use xmalloc.
938 (duplicate_ggc_array): New.
939 (ipa_edge_duplication_hook): Use it.
940 (ipa_update_after_lto_read): New function.
941 * ipa-prop.h (ipa_prop_write_jump_functions,
942 ipa_prop_read_jump_functions): Declare.
943 (ipa_pass_through_data, ipa_ancestor_jf_data, ipa_member_ptr_cst,
944 jump_func_value, ipa_member_ptr_cst, ipa_edge_args): Add GTY markers.
945 (ipa_edge_args_vector): Move into GGC.
946 (ipa_check_create_edge_args): Update.
947 (ipa_update_after_lto_read): New.
ecb20cae 948 * passes.c (ipa_write_summaries_1): When in wpa, do not write
949 summaries.
8867b500 950 (ipa_read_summaries): When in ltrans, so not read summaries.
ecb20cae 951 * lto-streamer.c (lto_get_section_name): Add
952 LTO_section_jump_functions.
8867b500 953 * lto-streamer.h (LTO_section_jump_functions): New section.
954 (produce_asm): Declare.
955 * lto-cgraph.c (output_cgraph): Output edges in reverse order.
956 * lto-streamer-out.c (produce_asm): Export.
957 * lto-streamer-in.c: Include tree-pass.h
958 (input_function): Free dominance info when done.
959 (lto_read_body): Push ipa_inline in ltrans stage.
960 * gengtype.c (open_base_files): Add ipa-prop.h into includes.
961 * Makefile.in (GTFILES): Add ipa-prop.h
962
d5c44166 9632009-10-22 Matthias Klose <doko@ubuntu.com>
964
965 * doc/install.texi: Document --enable-browser-plugin.
966
f58620b7 9672009-10-21 Vladimir Makarov <vmakarov@redhat.com>
968
969 * doc/invoke.texi (fira-loop-pressure): Update default value.
970 * opts.c (decode_options): Remove default value setting for
971 flag_ira_loop_pressure.
972 * config/ia64/ia64.c (ia64_override_options): Set
973 flag_ira_loop_pressure up for -O3.
974 * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
ecb20cae 975
8da11536 9762009-10-21 Sebastian Pop <sebastian.pop@amd.com>
977
978 PR tree-optimization/41497
979 * tree-scalar-evolution.c (analyze_evolution_in_loop): Return
980 chrec_dont_know if the evolution function returned by follow_ssa_edge
981 is constant in the analyzed loop and is not compatible with the
982 initial value before the loop.
983 * tree-chrec.h (no_evolution_in_loop_p): Call STRIP_NOPS.
984
1cdf9df5 9852009-10-21 Joseph Myers <joseph@codesourcery.com>
986
987 * config/sh/sh.c (nonpic_symbol_mentioned_p): Allow UNSPEC_TPOFF.
988
8057702e 9892009-10-21 Jakub Jelinek <jakub@redhat.com>
990
991 PR other/25507
992 * doc/invoke.texi: Document -print-multi-os-directory.
993
14325167 9942009-10-21 Jack Howarth <howarth@bromo.med.uc.edu>
995
996 PR c++/41313
997 * gcc/config/darwin10.h: Use default_emit_unwind_label.
998 * gcc/config/darwin.c: Disable -freorder-blocks-and-partition
999 when darwin_emit_unwind_label is used.
1000
567008ff 10012009-10-21 Eric Botcazou <ebotcazou@adacore.com>
1002
1003 * tree-vect-stmts.c (exist_non_indexing_operands_for_use_p): Tweak
1004 order of checks.
1005
2fabdfdf 10062009-10-20 Richard Henderson <rth@redhat.com>
1007
1008 * tree-eh.c (lower_try_finally_copy): Do lower_eh_constructs_1
1009 before emit_post_landing_pad.
1010
4d46979d 10112009-10-20 Adam Nemet <anemet@caviumnetworks.com>
1012
1013 * config/mips/mips.c (mips_binary_cost): Add new argument speed.
1014 Use when calling rtx_costs.
1015 (mips_rtx_costs): Fix formatting. Use argument speed rather than the
1016 global optimize_size. Pass speed to mips_binary_cost.
1017
8c009c74 10182009-10-20 Jakub Jelinek <jakub@redhat.com>
1019
1020 * config/rs6000/rs6000.c (def_builtin): Set TREE_READONLY instead
1021 of TREE_CONSTANT.
1022
bf4652ac 10232009-10-20 Richard Sandiford <rdsandiford@googlemail.com>
1024
1025 * rtl.h (simplify_replace_fn_rtx): Declare.
1026 (wrap_constant, unwrap_constant): Delete.
1027 * cfgexpand.c (unwrap_constant, wrap_constant): Delete.
1028 (expand_debug_expr): Don't call wrap_constant.
1029 * combine.c (rtx_subst_pair): Only define for AUTO_INC_DEC.
1030 (auto_adjust_pair): Fold into...
1031 (propagate_for_debug_subst): ...here. Only define for AUTO_INC_DEC.
1032 Just return a new value.
1033 (propagate_for_debug): Use simplify_replace_fn_rtx for AUTO_INC_DEC,
1034 otherwise use simplify_replace_rtx.
1035 * cselib.c (wrap_constant): Reinstate old definition.
1036 (cselib_expand_value_rtx_1): Don't wrap constants.
1037 * gcse.c (try_replace_reg): Don't use copy_rtx in the call to
1038 simplify_replace_rtx.
1039 (bypass_block): Fix formatting in calls to simplify_replace_rtx.
1040 * reload1.c (reload): Skip all uses for an insn before adjusting it.
1041 Use simplify_replace_rtx.
1042 * simplify-rtx.c (simplify_replace_fn_rtx): New function,
1043 adapted from...
1044 (simplify_replace_rtx): ...here. Turn into a wrapper for
1045 simplify_replace_fn_rtx.
1046 (simplify_unary_operation): Don't unwrap CONSTs.
1047 * var-tracking.c (check_wrap_constant): Delete.
1048 (vt_expand_loc_callback): Don't call it.
1049 (vt_expand_loc): Likewise.
1050
008b13e3 10512009-10-20 Pascal Obry <obry@adacore.com>
1052 Eric Botcazou <ebotcazou@adacore.com>
1053
1054 * config/i386/cygming.h (DWARF_FRAME_REGNUM): Add enclosing parens.
1055
21a9b734 10562009-10-20 Michael Matz <matz@suse.de>
1057
1058 * loop-invariant.c (create_new_invariant): Use different magic number.
1059
525fa230 10602009-10-20 Richard Earnshaw <rearnsha@arm.com>
1061
1062 PR target/39247
1063 * arm.c (arm_override_options): Forcibly disable hot/cold block
1064 partitioning.
1065
a080546e 10662009-10-20 Alexandre Oliva <aoliva@redhat.com>
1067
1068 PR debug/41739
1069 * haifa-sched.c (try_ready): Skip debug deps updating speculation
1070 status.
1071
3089b75c 10722009-10-20 Richard Guenther <rguenther@suse.de>
1073
1074 * ggc-page.c: Include cfgloop.h.
1075 (struct max_alignment): Drop long double, add void *.
1076 (extra_order_size_table): Add low non-power-of-two multiples
1077 of MAX_ALIGNMENT. Drop small type-based entries, add
1078 tree_type, cgraph_node and loop.
1079 * alloc-pool.c (struct allocation_object_def): Drop long double
1080 aligning element.
1081
c6a55b97 10822009-10-20 Jakub Jelinek <jakub@redhat.com>
1083
1084 PR debug/41340
1085 * loop-invariant.c (calculate_loop_reg_pressure): Don't count regs
1086 referenced just in DEBUG_INSNs.
1087
b816f77f 10882009-10-20 Richard Guenther <rguenther@suse.de>
1089
1090 PR lto/41761
1091 * gimple.c (gimple_register_type): Make sure we register
1092 the types main variant first.
1093
b612c537 10942009-10-20 Richard Guenther <rguenther@suse.de>
1095
1096 * gimple.c (gimple_types_compatible_p): Simplify. Move
1097 cheap checks before hashtable queries. Add checks for
1098 TYPE_NONALIASED_COMPONENT and DECL_NONADDRESSABLE_P.
1099
c3b8ca0c 11002009-10-20 Eric Botcazou <ebotcazou@adacore.com>
1101
1102 * tree-sra.c (build_ref_for_offset_1) <RECORD_TYPE>: Skip fields
1103 without size or with size that can't be represented as a host integer.
1104
da44a6ca 11052009-10-20 Alexandre Oliva <aoliva@redhat.com>
1106
1107 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't regard
1108 the removal of a debug stmt as a significant change.
1109
44c9256b 11102009-10-20 Wolfgang Gellerich <gellerich@de.ibm.com>
1111
1112 * config/s390/s390.md: Added agen condition to operand
ecb20cae 1113 forwarding bypasses. Added bypass for early address generation
1114 use of int results. Updated comments.
44c9256b 1115
d603963f 11162009-10-20 Stefan Dösinger <stefan@codeweavers.com>
1117
1118 * config/i386/i386.c: Remove signal.h #include.
1119
bcd06eff 11202009-10-20 Jie Zhang <jie.zhang@analog.com>
1121
d603963f 1122 * simplify-rtx.c (simplify_const_unary_operation): Handle SS_ABS.
bcd06eff 1123 * doc/rtl.texi: Document ss_abs.
1124
538ba11a 11252009-10-19 Jakub Jelinek <jakub@redhat.com>
1126
1127 * c-common.c (c_parse_error): Handle CPP_UTF8STRING.
1128 * c-lex.c (c_lex_with_flags): Likewise. Test C_LEX_STRING_NO_JOIN
1129 instead of C_LEX_RAW_STRINGS.
1130 (lex_string): Handle CPP_UTF8STRING.
1131 * c-parser.c (c_parser_postfix_expression): Likewise.
1132 * c-pragma.h (C_LEX_RAW_STRINGS): Rename to ...
1133 (C_LEX_STRING_NO_JOIN): ... this.
1134
5e9082a7 11352009-10-19 Anatoly Sokolov <aesok@post.ru>
1136
1137 * config/cris/cris.c (cris_function_value, cris_libcall_value,
1138 cris_function_value_regno_p): New functions.
1139 (cris_promote_function_mode): Update comment.
1140 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
d603963f 1141 * config/cris/cris.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
5e9082a7 1142 (FUNCTION_VALUE_REGNO_P): Redefine, use cris_function_value_regno_p.
1143 * config/cris/cris-protos.h (cris_function_value_regno_p): Declare.
1144
fc539426 11452009-10-19 Jakub Jelinek <jakub@redhat.com>
1146
1147 * unwind-dw2.c (execute_stack_op): Fix operand order for
1148 DW_OP_le, DW_OP_ge, DW_OP_lt and DW_OP_gt.
1149
a2159096 11502009-10-19 Eric Botcazou <ebotcazou@adacore.com>
1151
1152 * gimple-low.c (struct lower_data): Add cannot_fallthru field.
1153 (lower_stmt) <GIMPLE_BIND>: Add comment.
1154 <GIMPLE_COND, GIMPLE_GOTO, GIMPLE_SWITCH>: Set cannot_fallthru to true
1155 and return.
1156 <GIMPLE_RETURN>: Remove the statement if cannot_fallthru is set.
1157 Otherwise lower it and set cannot_fallthru to true.
1158 <GIMPLE_TRY>: Update cannot_fallthru for GIMPLE_TRY_FINALLY and return.
d603963f 1159 <GIMPLE_CATCH, GIMPLE_EH_FILTER>: Set cannot_fallthru to false.
a2159096 1160 <GIMPLE_CALL>: Set cannot_fallthru to false for BUILT_IN_SETJMP and
1161 to true for a noreturn call. Do not remove statements.
1162 <GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TASK>: Set cannot_fallthru to false.
1163 Set cannot_fallthru to false on function exit.
1164 (gimple_stmt_may_fallthru) <GIMPLE_SWITCH>: Really return false.
1165 <GIMPLE_ASSIGN>: Remove.
1166
cc6056e1 11672009-10-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1168
1169 * config/s390/s390.c (s390_z10_optimize_cmp): Don't touch FP compares.
1170
bc1c8bc5 11712009-10-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1172
1173 * config/s390/s390.c (s390_z10_optimize_cmp): Use
1174 next/prev_active_insn to skip DEBUG_INSNs as well.
1175
65839a7a 11762009-10-19 Joseph Myers <joseph@codesourcery.com>
1177
1178 * config/arm/arm.c (output_move_neon): Use DImode in call to
1179 adjust_address.
1180
0bf158c8 11812009-10-19 Matthias Klose <doko@ubuntu.com>
1182
1183 PR target/40134
1184 * config.gcc (arm*-*-linux-*eabi): Use config/t-slibgcc-libgcc.
1185
5bd71193 11862009-10-19 Jakub Jelinek <jakub@redhat.com>
1187
d603963f 1188 * cfgexpand.c (expand_debug_expr): Fail if bitpos < 0 for non-MEM op0.
5bd71193 1189
11902009-10-17 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
8425a570 1191
1192 PR middle-end/41738
1193 * optabs.c (expand_binop): Make mode of shift count expression mode
1194 of shift count not target.
1195 Remove indent nit.
1196
152ab6fa 11972009-10-17 Eric Botcazou <ebotcazou@adacore.com>
1198
1199 * tree-nested.c (convert_nonlocal_reference_stmt) <GIMPLE_COND>: New
1200 case. Force using values to replace references within the statement.
1201 (convert_local_reference_stmt): Likewise.
1202
264ee46d 12032009-10-17 Eric Botcazou <ebotcazou@adacore.com>
1204
1205 * gimple-low.c (lower_stmt) <GIMPLE_CALL>: If the call is noreturn,
1206 remove a subsequent GOTO or RETURN statement.
1207
0b5af700 12082009-10-17 Andy Hutchinson <hutchinsonandy@aim.com>
1209
1210 * config/avr.md (*movqi): Add zero as equally preferable constraint
1211 as general register.
264ee46d 1212 (*movhi): Ditto.
0b5af700 1213
264ee46d 12142009-10-17 Eric Botcazou <ebotcazou@adacore.com>
bf09aad8 1215
1216 * print-tree.c (print_node): Fix string for DECL_STRUCT_FUNCTION.
1217
cb0ae7a9 12182009-10-17 Richard Guenther <rguenther@suse.de>
1219
d603963f 1220 * lto-streamer-in.c (lto_input_location): Try to reuse previous maps.
cb0ae7a9 1221
b2dd75cb 12222009-10-17 Richard Guenther <rguenther@suse.de>
1223
1224 * lto-streamer-in.c (input_gimple_stmt): Fixup FIELD_DECL
1225 operands in COMPONENT_REFs.
1226
e5ce1073 12272009-10-17 Anatoly Sokolov <aesok@post.ru>
1228
1229 * targhooks.c (default_libcall_value): Don't use LIBCALL_VALUE macro
1230 if not defined. Change type of second argument to const_rtx.
1231 (default_function_value): Call gcc_unreachable if FUNCTION_VALUE
1232 macro not defined.
1233 * targhooks.h (default_libcall_value): Update prototype.
1234 * target.h (struct gcc_target): Change type of second argument of
1235 libcall_value to const_rtx.
1236 * config/arm/arm.c (arm_libcall_value): Change type of second argument
1237 to const_rtx.
1238 (arm_libcall_uses_aapcs_base): Change type of argument to const_rtx.
1239 * doc/tm.texi (TARGET_LIBCALL_VALUE): Revise documentation.
1240
47306a5d 12412009-10-17 Jakub Jelinek <jakub@redhat.com>
1242
1243 PR debug/40521
1244 * debug.h (struct gcc_debug_hooks): Add assembly_start hook.
1245 * cgraphunit.c (cgraph_optimize): Call it.
1246 * dwarf2out.c (dwarf2out_init): Move .cfi_sections printing into...
1247 (dwarf2out_assembly_start): ... here. New hook.
1248 (dwarf2out_debug_hooks): Add dwarf2out_assembly_start.
1249 * debug.c (do_nothing_debug_hooks): Do nothing for assembly_start
1250 hook.
1251 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
1252 * sdbout.c (sdb_debug_hooks): Likewise.
1253 * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_assembly_start.
1254 (vmsdbgout_assembly_start): New hook.
1255
b2c4a3f0 12562009-10-17 Alexandre Oliva <aoliva@redhat.com>
1257
1258 * rtl.h (RTL_LOCATION): Fix typo.
1259
1500062c 12602009-10-17 Alexandre Oliva <aoliva@redhat.com>
1261
1262 * print-rtl.c (print_rtx): Print locators in asm_operands
1263 and asm_input.
1264
c971b445 12652009-10-17 Alexandre Oliva <aoliva@redhat.com>
1266
1267 PR debug/41535
1268 * sched-deps.c (depl_on_debug_p): New.
1269 (attach_dep_link): Reject debug deps before nondebug deps.
1270 (add_to_deps_list): Insert debug deps after nondebug deps.
1271 (sd_lists_empty_p): Stop at first nonempty list. Disregard debug
1272 deps.
1273 (sd_add_dep): Do not reject debug deps.
1274 (add_insn_mem_dependence): Don't count debug deps.
1275 (remove_from_deps): Likewise.
1276 (sched_analyze_2): Set up mem deps on debug insns.
1277 (sched_analyze_insn): Record reg uses for deps on debug insns.
1278 * haifa-sched.c (schedule_insn): Reset deferred debug insn. Don't
1279 try_ready nondebug insn after debug insn.
1280 * ddg.c (create_ddg_dep_from_intra_loop_link,
1281 create_ddg_dep_no_link): Don't reject debug deps.
1282
66bd377c 12832009-10-16 Richard Guenther <rguenther@suse.de>
1284
1285 * lto-symtab.c (merge_incomplete_and_complete_type): Remove.
1286 (maybe_merge_incomplete_and_complete_type): Likewise.
1287 (lto_symtab_merge): Do not call them. Do not warn for
1288 complete vs. incomplete compatible types.
1289 (lto_symtab_merge_decls_2): Simplify.
1290 * gimple.c (gimple_force_type_merge): Remove.
1291 (gimple_types_compatible_p): Make it static.
1292 * gimple.h (gimple_force_type_merge): Remove.
1293 (gimple_types_compatible_p): Likewise.
1294
6c252d57 12952009-10-16 Jakub Jelinek <jakub@redhat.com>
1296
1297 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Cast
1298 DWARF2_ADDR_SIZE to int to avoid signed vs. unsigned warnings.
1299
7548e9fe 13002009-10-16 Richard Guenther <rguenther@suse.de>
1301
1302 PR tree-optimization/41728
1303 * tree-ssa-dom.c (optimize_stmt): Mark the stmt modified
1304 if fold_stmt did anything.
1305
b787522e 13062009-10-16 Richard Guenther <rguenther@suse.de>
1307
1308 PR lto/41715
1309 * lto-streamer-in.c (lto_input_tree_ref): Revert last change.
1310 (maybe_fixup_handled_component): New function.
1311 (input_gimple_stmt): Fixup mismatched decl replacements.
1312
42c8bdd9 13132009-10-16 Richard Guenther <rguenther@suse.de>
1314
1315 PR lto/41713
1316 * lto-streamer-out.c (lto_output_tree_ref): Handle DEBUG_EXPR_DECL
1317 the same as VAR_DECL.
1318
f9a5c96c 13192009-10-16 Richard Guenther <rguenther@suse.de>
1320
1321 * gimple.c (iterative_hash_gimple_type): For integer types
1322 also hash their minimum and maximum values and the string flag.
1323 For array types hash their domain and the string flag.
1324
65162f7e 13252009-10-16 Richard Guenther <rguenther@suse.de>
1326
1327 * gimple.c (gimple_types_compatible_p): Restrict completing
1328 types to record or unions. Simplify completion.
1329 Do not merge records or unions with different
1330 TYPE_STRUCTURAL_EQUALITY_P tag.
1331 (iterative_hash_gimple_type): Restrict non-recursing into
1332 pointer targets for records and unions.
1333
4e6677f8 13342009-10-15 Jakub Jelinek <jakub@redhat.com>
1335
1336 PR debug/41717
1337 * cfgexpand.c (expand_debug_expr): Handle CONJ_EXPR.
1338 * dwarf2out.c (mem_loc_descriptor): Don't handle
1339 POST_INT/POST_DEC/POST_MODIFY like SUBREG. For SUBREG
1340 punt if it is not lowpart subreg or if inner mode isn't
1341 MODE_INT.
1342
18c7fc85 13432009-10-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1344
1345 * config/s390/s390.c (s390_z10_optimize_cmp): Skip notes when
1346 investigating previous or next insns.
1347
e26ffbd2 13482009-10-16 Eric Botcazou <ebotcazou@adacore.com>
1349
1350 * tree-sra.c (build_ref_for_offset_1): Update comment.
1351
ab4f9a64 13522009-10-16 Wolfgang Gellerich <gellerich@de.ibm.com>
1353
1354 * config/s390/s390.md (atype): Added missing values.
1355
a22e73b3 13562009-10-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1357
1358 PR target/41702
d603963f 1359 * pa.md (casesi): Use sign extended index in call to gen_casesi64p.
a22e73b3 1360 (casesi64p): Update pattern to reflect above.
1361
2fcf9403 13622009-10-15 Steve Ellcey <sje@cup.hp.com>
1363
1364 PR rtl-optimization/41697
1365 * sel-sched-ir.h (_eligible_successor_edge_p): Check successor count.
1366
605afdd6 13672009-10-15 Michael Meissner <meissner@linux.vnet.ibm.com>
1368
1369 PR target/23983
1370 * config/rs6000/predicates.md: Update copyright year.
1371 * config/rs6000/altivec.md: Ditto.
ecb20cae 1372
605afdd6 1373 * config/rs6000/t-rs6000 (TM_H): Add rs6000-builtin.def.
1374 (MD_INCLUDES): Add a2.md.
ecb20cae 1375
605afdd6 1376 * config/rs6000/rs6000.c (rs6000_builtin_decls): Change
1377 RS6000_BUILTIN_COUNT to MAX_RS6000_BUILTINS.
1378 (builtin_classify): New static vector to classify various builtins
1379 to get the tree attributes correct.
1380 (def_builtin): Set the attributes of builtins based on what the
1381 builtin does (i.e. memory operation, floating point, saturation
1382 need special attributes, others are pure functions).
1383
1384 * config/rs6000/rs6000.h (enum rs6000_btc): New enum to classify
1385 the builtins.
1386 (enum rs6000_builtins): Include rs6000-builtin.def to define the
1387 builtins. Change the end marker to MAX_RS6000_BUILTINS from
1388 RS6000_BUILTIN_COUNT.
1389 (rs6000_builtin_decls): Change RS6000_BUILTIN_COUNT to
1390 MAX_RS6000_BUILTINS.
1391
1392 * config/rs6000/rs6000-builtin.def: New file that combines the
1393 builtin enumeration name and attributes.
1394
f838d03e 13952009-10-15 H.J. Lu <hongjiu.lu@intel.com>
1396
1397 * config/i386/linux.h (ASM_SPEC): Add --32.
1398
711a4686 13992009-10-15 Jakub Jelinek <jakub@redhat.com>
1400
1401 * dwarf2out.c (dwarf_tag_name): Handle DW_TAG_rvalue_reference_type
1402 and DW_TAG_template_alias.
1403 (dwarf_attr_name): Handle DW_AT_main_subprogram,
1404 DW_AT_data_bit_offset, DW_AT_const_expr, DW_AT_enum_class,
1405 DW_AT_linkage_name, DW_AT_GNU_guarded_by, DW_AT_GNU_pt_guarded_by,
1406 DW_AT_GNU_guarded, DW_AT_GNU_pt_guarded, DW_AT_GNU_locks_excluded,
1407 DW_AT_GNU_exclusive_locks_required, DW_AT_GNU_shared_locks_required
1408 and DW_AT_GNU_odr_signature.
1409 (dwarf_form_name): Handle DW_FORM_sec_offset, DW_FORM_exprloc,
1410 DW_FORM_flag_present and DW_FORM_ref_sig8.
1411 (output_signature): Only print name on the first byte.
1412 (output_die): Likewise for dw_val_class_data8.
1413
f1ae4a25 14142009-10-15 Alexander Monakov <amonakov@ispras.ru>
1415
1416 * doc/invoke.texi: Clarify that most optimizations are not enabled
1417 without -O.
1418
a9a597e0 14192009-10-15 Richard Guenther <rguenther@suse.de>
1420
1421 PR lto/41668
1422 * gimple.c (compare_type_names_p): Handle anonymous names
1423 differently based on new mode argument.
1424 (gimple_types_compatible_p): For structs also compare the tags.
1425 (iterative_hash_type_name): Rename to ...
1426 (iterative_hash_name): ... this. Hash all names.
1427 (iterative_hash_gimple_type): Fix hashing the struct tag of
1428 pointer targets. Hash field decl names.
1429
7e540e23 14302009-10-15 Richard Guenther <rguenther@suse.de>
1431
1432 PR lto/41669
1433 * gimple.c (gimple_get_alias_set): Avoid recursing on
1434 invalid type topology.
1435
604157f6 14362009-10-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
1437
1438 * config/spu/spu.c (get_branch_target): Use extract_asm_operands.
1439
35615751 14402009-10-15 Richard Guenther <rguenther@suse.de>
1441
1442 * tree.c (free_lang_data_in_decl): Free DECL_FCONTEXT.
1443
f41e4582 14442009-10-15 Jakub Jelinek <jakub@redhat.com>
1445
1446 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Don't
1447 add --with-tune{,-32,-64} configured default for -mtune if explicit
1448 -mcpu is used.
1449
a28cb74f 14502009-10-14 Daniel Gutson <dgutson@codesourcery.com>
1451
d603963f 1452 * config/arm/neon.md (neon_vshll_n<mode>): Checking Bounds fixed.
a28cb74f 1453
80c13943 14542009-10-14 DJ Delorie <dj@redhat.com>
ecb20cae 1455
80c13943 1456 * config/h8300/h8300.c (F): New.
1457 (Fpa): New.
1458 (h8300_emit_stack_adjustment): Call them.
1459 (push): Likewise.
1460 (h8300_push_pop): Likewise.
1461 (h8300_expand_prologue): Likewise.
1462 * config/h8300/h8300.h (DWARF2_DEBUGGING_INFO): Define.
1463 (MUST_USE_SJLJ_EXCEPTIONS): Define.
1464 (INCOMING_RETURN_ADDR_RTX): Define.
1465 (INCOMING_FRAME_SP_OFFSET): Define.
1466 (DWARF_CIE_DATA_ALIGNMENT): Define.
1467
d1251492 14682009-10-14 Jakub Jelinek <jakub@redhat.com>
1469
1470 * stor-layout.c (place_field): Don't emit -Wpadded warnings for
1471 fields in builtin structs.
1472 (finalize_record_size): Likewise.
1473
1fc0af12 14742009-10-14 Richard Guenther <rguenther@suse.de>
1475
1476 * gimple.c (gtc_ob): New global.
1477 (struct type_pair_d): Replace pointers with type UIDs.
1478 (type_pair_hash): Adjust.
1479 (type_pair_eq): Likewise.
1480 (lookup_type_pair): Likewise. Allocate from an obstack.
1481 (gimple_force_type_merge): Adjust.
1482 (gimple_types_compatible_p): Likewise.
1483 (free_gimple_type_tables): Free the obstack.
1484
9e3c8673 14852009-10-14 Jakub Jelinek <jakub@redhat.com>
1486
1487 * tree-parloops.c (separate_decls_in_region_debug_bind): Drop debug
1488 stmts setting DEBUG_EXPR_DECLs.
1489
1490 * cfgexpand.c (expand_debug_expr): Ignore zero-length bitfields.
1491 Don't crash if mode1 is VOIDmode.
1492
e8eed2f8 14932009-09-26 Vladimir Makarov <vmakarov@redhat.com>
1494
1495 * params.def (PARAM_IRA_LOOP_RESERVED_REGS): New.
d603963f 1496 * params.h (IRA_LOOP_RESERVED_REGS): New.
e8eed2f8 1497 * tree-pass.h (pass_subregs_of_mode_init,
1498 pass_subregs_of_mode_finish): Remove.
1499 * passes.c (pass_subregs_of_mode_init,
1500 pass_subregs_of_mode_finish): Remove.
1501 (pass_reginfo_init): Move before loop optimizations.
1502 * config/i386/i386.h (STACK_REG_COVER_CLASS): Define.
1503 * common.opt (fira-loop-pressure): New.
1504 * toplev.h (flag_ira_loop_pressure): New.
d603963f 1505 * rtl.h (init_subregs_of_mode, finish_subregs_of_mode): New externals.
e8eed2f8 1506 * reginfo.c (init_subregs_of_mode, finish_subregs_of_mode):
1507 Make external and void type functions.
1508 (gate_subregs_of_mode_init, pass_subregs_of_mode_init,
1509 pass_subregs_of_mode_finish): Remove.
1510 * ira-costs.c (init_costs): Call init_subregs_of_mode.
1511 * regmove.c: Include ira.h.
1512 (regmove_optimize): Call ira_set_pseudo_classes after IRA based
1513 register pressure calculation in loops.
1514 * loop-invariant.c: Include REGS_H and ira.h.
1515 (struct loop_data): New members max_reg_pressure, regs_ref, and
1516 regs_live.
1517 (struct invariant): New member orig_regno.
1518 (curr_loop): New variable.
1519 (find_exits): Initialize regs_ref and regs_live.
1520 (create_new_invariant): Initialize orig_regno.
1521 (get_cover_class_and_nregs): New.
1522 (get_inv_cost): Make aregs_needed an array. Use regs_needed as an
1523 array. Add code for flag_ira_loop_pressure.
1524 (gain_for_invariant): Make new_regs an array. Add code for
1525 flag_ira_loop_pressure.
1526 (best_gain_for_invariant): Ditto.
1527 (set_move_mark): New parameter gain. Use it for debugging output.
1528 (find_invariants_to_move): Make regs_needed and new_regs an array.
1529 Add code for flag_ira_loop_pressure.
1530 (move_invariant_reg): Set up orig_regno.
1531 (move_invariants): Set up reg classes for pseudos for
1532 flag_ira_loop_pressure.
1533 (free_loop_data): Clear regs_ref and regs_live.
1534 (curr_regs_live, curr_reg_pressure, regs_set, n_regs_set,
1535 get_regno_cover_class, change_pressure, mark_regno_live,
1536 mark_regno_death, mark_reg_store, mark_reg_clobber,
1537 mark_reg_death, mark_ref_regs, calculate_loop_reg_pressure): New.
1538 (move_loop_invariants): Calculate pressure. Initialize curr_loop.
1539 * ira.c (ira): Call ira_set_pseudo_classes after IRA based
1540 register pressure calculation in loops if new regs were added.
1541 Call finish_subregs_of_mode.
1542 * opts.c (decode_options): Set up flag_ira_loop_pressure.
1543 * Makefile.in (loop-invariant.o): Add ira.h.
1544 (regmove.o): Ditto.
1545 * doc/invoke.texi (-fira-loop-pressure, ira-loop-reserved-regs):
1546 Describe.
1547 * doc/tm.texi (STACK_REG_COVER_CLASS): Describe.
ecb20cae 1548
bc0ed27c 15492009-10-14 Richard Guenther <rguenther@suse.de>
1550
1551 * lto-symtab.c (lto_symtab_compatible): Fold in ...
1552 (lto_symtab_merge): ... here. Rewrite both to take the
d603963f 1553 prevailing and a to-be-merged entry and to queue diagnostics properly.
bc0ed27c 1554 (lto_symtab_resolve_replaceable_p): New predicate for
1555 symbol resolution.
1556 (lto_symtab_resolve_can_prevail_p): Likewise.
1557 (lto_symtab_resolve_symbols): Rewrite. Fold in code that
1558 handles merging commons by choosing the largest decl. Fold
1559 in code that gives ODR errors.
1560 (lto_symtab_merge_decls_2): Simplify a lot. Emit queued
1561 diagnostics here.
1562 (lto_symtab_merge_decls_1): Re-structure. Deal with the
1563 case of no prevailing decl here. Diagnose mismatches
1564 in object types here. Drop all but the prevailing decls.
1565 (lto_symtab_prevailing_decl): Return the single prevailing decl.
1566 * lto-streamer-in.c (lto_input_tree_ref): Deal with
1567 VIEW_CONVERT_EXPRs in decl slots. Unshare the tree in this case.
1568
9c031577 15692009-10-14 Richard Guenther <rguenther@suse.de>
1570
1571 PR lto/41521
1572 * lto-streamer-in.c (input_bb): Replace debug stmts with
1573 nops instead of dropping them.
1574
1cbc9316 15752009-10-14 Nick Clifton <nickc@redhat.com>
1576
d603963f 1577 * gcc/doc/extended.texi: Replace the dash character with @minus{}
1578 in situations where it is being used as a minus symbol.
1cbc9316 1579 * gcc/doc/tm.texi: Likewise.
1580 * gcc/doc/md.texi: Likewise.
1581
9a46ebcd 15822009-10-14 Jakub Jelinek <jakub@redhat.com>
1583
af4d2883 1584 PR preprocessor/41543
1585 * input.h (BUILTINS_LOCATION): Change to 1 from 2.
1586 Assert BUILTINS_LOCATION < RESERVED_LOCATION_COUNT.
1587 * tree.c: Include intl.h.
1588 (expand_location): Handle BUILTINS_LOCATION.
1589 * Makefile.in (tree.o): Depend on intl.h.
1590
9a46ebcd 1591 PR debug/41695
1592 * dwarf2out.c (dwarf2out_var_location): Always clear
1593 last_postcall_label when changing last_label.
1594
a2000777 15952009-10-14 Pascal Obry <obry@adacore.com>
1596
1597 * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION): Add -E.
1598 (process_command): Handle -E as done with -c and -S. Do not add
1599 the target executable suffix to the output file when -E is used.
1600 (main): Adjust error message accordingly.
1601
0f499ee4 16022009-10-14 Alexandre Oliva <aoliva@redhat.com>
1603
1604 PR debug/41343
1605 PR debug/41447
1606 PR debug/41264
1607 PR debug/41338
1608 * tree.c (tree_node_structure_for_code): DEBUG_EXPR_DECL uses
1609 decl with rtl.
1610 (tree_code_size): Likewise.
1611
0e7e6e7f 16122009-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1613
1614 * builtins.c (fold_builtin_1): Support complex "arc" functions.
1615 * real.h (HAVE_mpc_arc): Define.
1616
3213bdbf 16172009-10-14 Kaz Kojima <kkojima@gcc.gnu.org>
1618
1619 * config/sh/sh.c (TARGET_BUILTIN_DECL): Define.
1620 (struct builtin_description): Add fndecl field.
1621 (bdesc): Remove const qualifier. Update initializer.
1622 (sh_media_init_builtins): Remove const qualifier for d. Record
1623 the result of add_builtin_function to the fndecl field.
1624 (sh_builtin_decl): New.
1625 (sh_media_builtin_decl): New.
1626
3899776e 16272009-10-14 Hans-Peter Nilsson <hp@axis.com>
1628
1629 PR target/38948
1630 * config/cris/cris.h (SECONDARY_RELOAD_CLASS): Handle reload
1631 requests between special registers.
1632
bacadbd1 16332009-10-13 Eric Botcazou <ebotcazou@adacore.com>
1634
1635 * dwarf2out.c (mem_loc_descriptor): Accept UNGT as well.
1636
c57e3b9d 16372009-10-13 Richard Henderson <rth@redhat.com>
1638
1639 PR tree-optimization/41377
1640 * tree-eh.c (unsplit_eh): Propagate degenerate PHIs.
1641 (cleanup_empty_eh_merge_phis): New change_region parameter;
1642 pass it on to redirect_eh_edge_1. Update callers.
1643 (cleanup_empty_eh_unsplit): Don't require an existing EH label
1644 at the destination block.
0de338e5 1645
16462009-10-13 Basile Starynkevitch <basile@starynkevitch.net>
c57e3b9d 1647
1648 * passes.c (register_pass): Replaced gcc_unreachable by
1649 fatal_error on failure. Mentions plugins in comments & messages.
0de338e5 1650
23dd51cb 16512009-10-13 Jakub Jelinek <jakub@redhat.com>
1652
1653 PR target/41693
1654 * rtl.h (DEBUG_EXPR_TREE_DECL): Define.
1655 * sched-vis.c (print_value): Use it.
1656 * cselib.c (cselib_hash_rtx): Likewise.
1657 * print-rtl.c (print_rtx): Likewise.
1658 * cfgexpand.c (expand_debug_rtx): Likewise.
1659 * var-tracking.c (vt_expand_loc_callback): Likewise.
1660
b7f7149b 16612009-10-13 Richard Guenther <rguenther@suse.de>
1662
1663 PR lto/41565
1664 * opts.c (handle_option): Split out code to handle setting
1665 the options flag var ...
1666 (set_option): ... here.
1667 * opts.h (set_option): Declare.
1668 * lto-opts.c (register_user_option_p): Include -fexceptions
1669 and all position independent code variants.
1670 (handle_common_option): Remove.
1671 (lto_reissue_options): Use set_option.
1672
df017114 16732009-10-13 Martin Jambor <mjambor@suse.cz>
1674
1675 PR tree-optimization/41661
1676 * ipa-prop.c (compute_complex_pass_through): Allow only operations
1677 that are tcc_comparisons or do not change the type in any
1678 un-usleless way.
1679 * ipa-cp.c (ipcp_lattice_from_jfunc): Request boolean type when
1680 folding tcc_comparison operations.
1681
e632c1c2 16822009-10-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1683
1684 * config/s390/s390.c (s390_encode_section_info): Handle BLKmode
1685 properly.
1686
688ff29b 16872009-10-12 Alexandre Oliva <aoliva@redhat.com>
1688
1689 PR debug/41343
1690 PR debug/41447
1691 PR debug/41264
1692 PR debug/41338
1693 * tree.def (DEBUG_EXPR_DECL): New.
1694 * rtl.def (DEBUG_EXPR): New.
1695 * gengtype.c (adjust_field_rtx_def): Handle it.
1696 * tree-ssa.c (propagate_var_def_into_debug_stmts): Rename to...
1697 (insert_debug_temp_for_var_def): ... this. Drop support for
1698 moving. Take iterator for def stmt; insert debug stmt before it.
1699 Scan early for use count and kind in debug stmts.
1700 (propagate_defs_into_debug_stmts): Rename to...
1701 (insert_debug_temps_for_defs): ... this. Likewise.
1702 * tree.h (DEBUG_TEMP_UID): New.
1703 * tree.c (next_debug_decl_uid): New.
1704 (make_node_stat): Count debug decls separately.
1705 (copy_node_stat): Likewise.
1706 * cfgexpand.c (expand_debug_expr): Handle DEBUG_EXPR_DECL.
1707 * var-tracking.c (dv_is_decl_p): Recognize it.
1708 (VALUE_RECURSED_INTO): Apply to DEBUG_EXPRs too.
1709 (track_expr_p): Track expanded DEBUG_EXPR_DECLs.
1710 (vt_expand_loc_callback): Expand DEBUG_EXPRs.
1711 (emit_note_insn_var_location): Don't emit notes for DEBUG_EXPR_DECLs.
1712 * cselib.c (rtx_equal_for_cselib_p): Handle DEBUG_EXPR.
1713 (cselib_hash_rtx): Likewise.
1714 (cselib_expand_value_rtx_1): Use callback for DEBUG_EXPR.
1715 * tree-ssa-operands.c (get_expr_operands): Skip DEBUG_EXPR_DECLs in
1716 debug bind stmts.
1717 * emit-rtl.c (verify_rtx_sharing): Handle DEBUG_EXPR and VALUE.
1718 (copy_rtx_if_shared_1, reset_used_flags, set_used_flags): Likewise.
1719 * rtl.c (copy_rtx): Likewise.
1720 (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_EXPR.
1721 * print-rtl.c (print_rtx): Likewise.
1722 * sched-vis.c (print_value): Likewise.
1723 (print_insn): Handle DEBUG_EXPR_DECL.
1724 * tree-dump.c (dequeue_and_dump): Likewise.
1725 * tree-pretty-print.c (dump_decl_name, dump_generic_node): Likewise.
1726 * gimple-iterator (gsi_replace): Check for same lhs.
1727 (gsi_remove): Insert debug temps.
1728 * tree-ssa-loop-im.c (rewrite_reciprocal): Replace with same lhs.
1729 (move_computations_stmt): Drop explicit propagation into debug stmts.
1730 (rewrite_bittest): Likewise. Use gsi_remove for propagation.
1731 * tree-ssa-reassoc.c (rewrite_expr_tree, linearize_expr): Likewise.
1732 * tree-ssa-sink.c (statement_sink_location): Likewise.
1733 * tree-ssa-forwprop (forward_propagate_addr_expr): Likewise.
1734 * tree-ssanames.c (release_ssa_name): Adjust for rename.
1735 * tree-flow.h: Likewise.
1736 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Don't mark
1737 debug temps without values.
1738 (eliminate_unnecessary_stmts): Don't discard just-inserted
1739 debug stmts.
1740
214ab618 17412009-10-12 Hans-Peter Nilsson <hp@axis.com>
1742
1743 PR target/26515
1744 * config/cris/cris.md (andu): Check that operand 1 is one of the
1745 general registers. Fix typo in head comment.
1746
5a5324bc 17472009-10-12 Stefan Dösinger <stefan@codeweavers.com>
b861eae3 1748
5a5324bc 1749 * config/i386/i386.md (vswapmov): New.
1750 * config/i386/i386.c (ix86_handle_fndecl_attribute): New.
1751 (ix86_function_ms_hook_prologue): New.
1752 (ix86_expand_prologue): Handle ms_hook_prologue attribute.
1753 * configure.ac: Test for swap suffix support in as.
1754 * configure: Rebuild.
1755
7701acd1 17562009-10-12 Jakub Jelinek <jakub@redhat.com>
1757
1758 PR target/41680
1759 * config/i386/i386.md (split after *testqi_ext_3_rex64): Only narrow
1760 paradoxical subregs to prevent partial register stalls if the inner
1761 mode is integer mode.
1762
871e07a1 17632009-10-12 Uros Bizjak <ubizjak@gmail.com>
1764
b861eae3 1765 * config/i386/i386.md (*setcc_<mode>_2): Remove insn pattern.
871e07a1 1766
3533d9d8 17672009-10-12 Dodji Seketeli <dodji@redhat.com>
1768
1769 PR c++/41570
1770 * gcc/dwarf2out.c (template_parameter_pack_die,
1771 gen_formal_parameter_pack_die): Use add_name_and_src_coords_attributes.
1772
cd610ee6 17732009-10-12 Alexandre Oliva <aoliva@redhat.com>
1774
1775 PR debug/41616
1776 * tree-into-ssa.c (insert_phi_nodes_for): Build debug bind stmts
1777 on updates too.
1778 (maybe_register_def): Likewise. Take stmt iterator.
1779 (rewrite_update_stmt): Take stmt iterator and pass it on.
1780 (rewrite_update_enter_block): Pass stmt iterator.
1781
e6925042 17822009-10-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
1783
1784 * config/spu/spu.c (TARGET_BUILTIN_DECL): Define.
1785 (spu_builtin_decl): New function.
1786
47bfa1e7 17872009-10-12 Uros Bizjak <ubizjak@gmail.com>
1788
1789 * config/i386/i386.md (SWIM): New mode iterator.
1790 (mov<mode>cc): Macroize expander from mov{qi,hi,si,di}cc patterns
1791 using SWIM mode iterator.
1792 (x86_mov<mode>cc_0_m1): Macroize insn from x86_mov{si,di}cc_0_m1
1793 patterns using SWI48 mode iterator.
1794 (*x86_mov<mode>cc_0_m1_se): Macroize insn from
1795 *x86_mov{si,di}cc_0_m1_se patterns using SWI48 mode iterator.
1796 (*x86_mov<mode>cc_0_m1_neg): New insn pattern.
1797 (*mov<mode>cc_noc): Macroize insn from *mov{hi,si,di}cc_noc
1798 patterns using SWI248 mode iterator.
1799 * config/i386/i386.c (ix86_expand_int_movcc): Update the call to
1800 gen_x86_movdicc_0_m1_rex64 for renamed function
1801
f6aa7063 18022009-10-11 Jose Ruiz <ruiz@adacore.com>
871e07a1 1803 Eric Botcazou <ebotcazou@adacore.com>
f6aa7063 1804
1805 PR target/33743
1806 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Define.
1807 * config/sparc/sol2-unwind.h: New file.
1808
c23740d5 18092009-10-11 Olivier Hainque <hainque@adacore.com>
871e07a1 1810 Eric Botcazou <ebotcazou@adacore.com>
c23740d5 1811
1812 PR target/33743
1813 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Define.
1814 * config/i386/sol2-unwind.h: New file.
1815
568331dc 18162009-10-11 H.J. Lu <hongjiu.lu@intel.com>
1817
1818 PR target/41665
1819 * config/i386/i386.md (addsi_1_zext): Get the proper second
1820 operand for lea.
1821
3218cd68 18222009-10-11 Richard Sandiford <rdsandiford@googlemail.com>
1823
1824 * simplify-rtx.c (simplify_replace_rtx): Use rtx_equal_p for
1825 all OLD_RTXes, not just REGs. Use copy_rtx to create the
1826 replacement value.
1827
1fc8cb43 18282009-10-11 Richard Guenther <rguenther@suse.de>
1829
1830 * gimple.c (iterative_hash_type_name): Do not handle special
1831 anonymous names.
1832
30da36fc 18332009-10-11 Uros Bizjak <ubizjak@gmail.com>
1834
1835 * config/i386/i386.md (*setcc_di_1): New insn_and_split pattern.
1836 (*setcc_si_1_and): Ditto.
1837 (*setcc_si_1_movzbl): Ditto.
1838 (*setcc_<mode>_2): Ditto.
1839 (*setcc_qi): Rename from *setcc_1.
1840 (*setcc_qi_slp): Rename from *setcc_2.
1841
1842 (*zero_extendqihi2_movzbw_and splitter): Use ix86_expand_clear.
1843 (*zero_extendqisi2_movzbw_and splitter): Ditto.
1844
1845 * config/i386/i386.c (ix86_expand_clear): Remove reload_completed from
1846 "if" condition, there is already assert with reload_completed present.
1847
b48e6053 18482009-10-11 Gerald Pfeifer <gerald@pfeifer.com>
1849
30da36fc 1850 * plugin.c (try_init_one_plugin): Improve constness of variable err.
880b854f 1851
b48e6053 18522009-10-10 Gerald Pfeifer <gerald@pfeifer.com>
30da36fc 1853
880b854f 1854 * doc/install.texi (Final install): Refer to
1855 http://gcc.gnu.org/bugs/ for bug reporting.
1856
ed08558a 18572009-10-10 Peter Bergner <bergner@vnet.ibm.com>
1858
1859 * configure.ac: Add test for dci instruction.
1860 * configure: Regenerate.
1861 * config.in: Likewise.
1862 * config.gcc: Handle --with-cpu=476 and --with-cpu=476fp.
1863 * doc/invoke.texi: Add cpu_type 476 and 476fp.
1864 (-mmulhw): Add 476 to description.
1865 (-mdlmzb): Likewise.
1866 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=476.
1867 * config/rs6000/rs6000.c (processor_costs): Add ppc476_cost.
1868 (processor_target_table): Add 476 and 476fp entries.
1869 (rs6000_override_options): Use ppc476_cost for PROCESSOR_PPC476.
1870 (rs6000_issue_rate): Add CPU_PPC476.
1871 * config/rs6000/rs6000.h (ASM_CPU_476_SPEC): Define.
1872 (ASM_CPU_SPEC): Pass %(asm_cpu_476) for -mcpu=476 and -mcpu=476fp.
1873 (processor_type): Add PROCESSOR_PPC476.
1874 (EXTRA_SPECS): Add asm_cpu_476 string.
d603963f 1875 * config/rs6000/rs6000.md (define_attr "type"): Add isel attribute.
ed08558a 1876 (define_attr "cpu"): Add ppc476.
1877 Include 476.md.
1878 Update comments for 476.
1879 (isel_signed, isel_unsigned): Change to use "isel" type attribute.
1880 * config/rs6000/vxworks.h (CPP_SPEC): Handle 464 and 476.
1881 Update copyright year.
1882 * config/rs6000/476.md: New file.
1883 * config/rs6000/40x.md: Add description for "isel" attribute.
1884 Update copyright year.
1885 * config/rs6000/440.md: Likewise.
1886 * config/rs6000/603.md: Likewise.
1887 * config/rs6000/6xx.md: Likewise.
1888 * config/rs6000/7450.md: Likewise.
1889 * config/rs6000/7xx.md: Likewise.
1890 * config/rs6000/8540.md: Likewise.
1891 * config/rs6000/cell.md: Likewise.
1892 * config/rs6000/e300c2c3.md: Likewise.
1893 * config/rs6000/e500mc.md: Likewise.
1894 * config/rs6000/mpc.md: Likewise.
1895 * config/rs6000/power4.md: Likewise.
1896 * config/rs6000/power5.md: Likewise.
1897 * config/rs6000/power6.md: Likewise.
1898 * config/rs6000/power7.md: Likewise.
1899 * config/rs6000/rios1.md: Likewise.
1900 * config/rs6000/rios2.md: Likewise.
1901 * config/rs6000/rs64.md: Likewise.
1902
b611dd5f 19032009-10-10 Richard Guenther <rguenther@suse.de>
1904
1905 PR tree-optimization/41654
1906 * tree-ssa-ifcombine.c (ifcombine_ifandif): Properly canonicalize
1907 a cond expr before calling gimple_cond_set_condition_from_tree.
1908 (ifcombine_iforif): Likewise.
1909
5297bed9 19102009-10-09 Ian Lance Taylor <iant@google.com>
1911
1912 * configure.ac: Use AC_SEARCH_LIBS to find dlopen.
1913 * configure: Rebuild.
1914
8f2ff12e 19152009-10-09 Neil Vachharajani <nvachhar@google.com>
1916
1917 * doc/cpp.texi (Other Directives): Do not list #ident and #sccs as
1918 deprecated.
1919
8d134460 19202009-10-09 Richard Guenther <rguenther@suse.de>
1921
1922 PR lto/41638
1923 * target-def.h (TARGET_BUILTIN_DECL): Define.
1924 (TARGET_INITIALIZER): Add TARGET_BUILTIN_DECL.
1925 * target.h (struct gcc_target): Add builtin_decl target hook.
1926 * doc/tm.texi (TARGET_BUILTIN_DECL): Document.
1927 * lto-streamer-in.c (lto_get_builtin_tree): Fix handling of
1928 target builtins.
1929 * lto-streamer-out.c (lto_output_tree_pointers): Use sorry,
1930 not gcc_unreachable.
1931 (lto_output_builtin_tree): Sorry if the target does not support
1932 streaming target builtins.
1933 * config/rs6000/rs6000.c (TARGET_BUILTIN_DECL): Define.
1934 (rs6000_builtin_decl): New function.
1935 * config/i386/i386.c (TARGET_BUILTIN_DECL): Define.
1936 (ix86_builtin_decl): New function.
1937
bee647f8 19382009-10-09 Jakub Jelinek <jakub@redhat.com>
1939
7a1b314f 1940 PR preprocessor/41445
1941 * c-ppoutput.c (do_line_change): New function.
1942 (cb_line_change): Use it.
1943 (scan_translation_unit): Call do_line_change if
1944 avoid_paste or PREV_WHITE and token location is on a different line
1945 than print.src_line.
1946
d4df2a0e 1947 PR debug/40521
1948 * dwarf2out.c (dwarf2out_init): Test whether
1949 HAVE_GAS_CFI_SECTIONS_DIRECTIVE is non-zero instead of checking
1950 it is defined.
1951
bee647f8 1952 PR rtl-optimization/41646
1953 * calls.c (expand_call): For BLKmode types returned in registers
1954 avoid likely spilled hard regs in copy_blkmode_from_reg generated
1955 insns.
1956
04c3b49f 19572009-10-09 Richard Guenther <rguenther@suse.de>
1958
1959 PR tree-optimization/41634
1960 * tree-ssa-dom.c (remove_local_expressions_from_table): Assert
1961 we remove the correct elements.
1962 (optimize_stmt): Make sure to update stmt operands before
1963 optimizing redundancies.
1964
0f910793 19652009-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1966
1967 * config/s390/s390.md ("prefetch"): Remove stcmh for prefetching.
1968
c515f146 19692009-10-09 Richard Guenther <rguenther@suse.de>
1970
1971 PR driver/41637
1972 * lto-wrapper.c (ltrans_output_file, flto_out, args_name): New
1973 globals.
1974 (lto_wrapper_exit): New function.
1975 (fatal): Use it.
1976 (fatal_perror): Likewise.
1977 (fork_execute): Use global args_name, do not free it.
1978 (run_gcc): Use global ltrans_output_file, flto_out, do not free them.
1979 * lto-streamer.h: Remove duplicate prototypes.
1980
0780673f 19812009-10-09 Richard Guenther <rguenther@suse.de>
1982
1983 * cgraph.c (cgraph_create_edge): Check for NULL call_stmt
1984 before calling stmt_can_throw_external.
1985
a34701c9 19862009-10-09 Eric Botcazou <ebotcazou@adacore.com>
1987
1988 PR tree-optimization/40071
1989 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Build a ref-all
1990 pointer if the original data reference doesn't conflict with the
1991 created vector data reference. Fix long line.
1992
fe52088f 19932009-10-09 Uros Bizjak <ubizjak@gmail.com>
1994
1995 * config/i386/i386.md (any_div): New code iterator.
1996 (u): Handle div and udiv.
1997 (sgnprefix): Ditto.
7e55a0d1 1998 (<u>divqi3): Macroize insn from {,u}divqi3 using any_div
fe52088f 1999 code iterator.
2000 (lfloor<MODEF:mode><SWI48:mode>2): Macroize insn from
2001 lfloor<mode>{si,di}2 patterns using SWI48 mode iterator.
2002 (lceil<MODEF:mode><SWI48:mode>2): Macroize insn from
2003 lceil<mode>{si,di}2 patterns using SWI48 mode iterator.
2004
c0c9519f 20052009-10-08 Joseph Myers <joseph@codesourcery.com>
2006
2007 * gcc.c (main): Remove trailing "." from diagnostics.
2008
d907ec51 20092009-10-08 Cary Coutant <ccoutant@google.com>
2010
2011 Add support for debugging with ICF (Identical Code Folding).
2012 * calls.c (debug.h): New #include.
2013 (emit_call_1): Call virtual_call_token debug hook.
2014 * common.opt (-fenable-icf-debug): New option.
2015 * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hooks (two
2016 locations in the source).
2017 (poc_label_num): New variable.
2018 (dcall_entry, vcall_entry): New typedefs.
2019 (dcall_table, vcall_table): New variables.
2020 (struct vcall_insn): New type.
2021 (vcall_insn_table): New variable.
2022 (DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION): New macros.
2023 (size_of_dcall_table): New function.
2024 (output_dcall_table): New function.
2025 (size_of_vcall_table): New function.
2026 (output_vcall_table): New function.
2027 (dwarf2out_direct_call): New function.
2028 (vcall_insn_table_hash): New function.
2029 (vcall_insn_table_eq): New function.
2030 (dwarf2out_virtual_call_token): New function.
2031 (dwarf2out_virtual_call): New function.
2032 (dwarf2out_init): Allocate new tables and sections.
2033 (prune_unused_types): Mark DIEs referenced from direct call table.
2034 (dwarf2out_finish): Output direct and virtual call tables.
2035 * final.c (final_scan_insn): Call direct_call and virtual_call
2036 debug hooks.
2037 * debug.h (struct gcc_debug_hooks): Add direct_call,
2038 virtual_call_token, virtual_call hooks.
2039 (debug_nothing_uid): New function.
2040 * debug.c (do_nothing_debug_hooks): Add dummy entries for new hooks.
2041 (debug_nothing_uid): New function.
2042 * dbxout.c (dbx_debug_hooks): Add dummy entries for new hooks.
f3915abe 2043 (xcoff_debug_hooks): Likewise.
d907ec51 2044 * sdbout.c (sdb_debug_hooks): Likewise.
2045 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
2046 * doc/invoke.texi (-fenable-icf-debug): New option.
2047
209e5acf 20482009-10-08 Alexandre Oliva <aoliva@redhat.com>
2049
2050 PR debug/41353
2051 * regmove.c (regmove_backward_pass): Replace src with dst in the
2052 debug insn, and check for dst before rather than after.
2053
7e88166c 20542009-10-08 Janis Johnson <janis187@us.ibm.com>
2055
2056 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove.
2057 (TARGET_DELEGITIMIZE_ADDRESS): Likewise.
2058
85276fc7 20592009-10-08 Jan Hubicka <jh@suse.cz>
2060
2061 PR middle-end/41626
2062 * cgraphbuild.c (record_reference): When parameter DATA is NULL,
2063 do not mark cgraph nodes as needed.
2064 (record_references_in_initializer): Add new only_vars parameter.
2065 * cgraph.h (record_references_in_initializer): New parameter.
2066 * varasm.c (assemble_variable): Update call.
2067 * varpool.c (varpool_analyze_pending_decls): Always look for
2068 referenced vars.
2069
fe74bc77 20702009-10-08 Anatoly Sokolov <aesok@post.ru>
2071
2072 * config/avr/avr.c (last_insn_address) Remove variable.
2073 (expand_prologue): Don't initialise last_insn_address variable.
2074 (final_prescan_insn): Don't output insn size.
2075 * config/avr/avr.opt (msize): Remove switch.
2076 * doc/invoke.texi (AVR Options): Remove documentation of -msize
2077 switch.
2078
096125f1 20792009-10-08 Adam Nemet <anemet@caviumnetworks.com>
2080
2081 * combine.c (label_tick_ebb_start): Fix comment.
2082 (combine_instructions): Set label_tick and label_tick_ebb_start before
2083 calling setup_incoming_promotions. Start them from 1. Increment
2084 label_tick instead of deriving it from the BB index. Rather than
2085 comparing ticks use the block from the previous iteration to decide
2086 whether to start a new EBB. Remove empty lines before function.
2087
c90b5d40 20882009-10-08 Michael Matz <matz@suse.de>
2089
2090 PR middle-end/41573
2091 * builtins.c (fold_builtin_isascii): Use fold_build2.
2092 (fold_builtin_isdigit): Ditto.
2093 * except.c (duplicate_eh_regions_1): Tolerate NULL labels.
2094 * tree-cfg.c (struct rus_data, remove_useless_stmts_warn_notreached,
2095 remove_useless_stmts_cond, remove_useless_stmts_tf,
2096 remove_useless_stmts_tc, remove_useless_stmts_bind,
2097 remove_useless_stmts_goto, remove_useless_stmts_label,
2098 remove_useless_stmts_1, remove_useless_stmts,
2099 pass_remove_useless_stmts): Remove.
2100 * tree-pass.h (pass_remove_useless_stmts): Don't declare.
2101 * passes.c (init_optimization_passes): Don't add
2102 pass_remove_useless_stmts.
2103 * tree-eh.c (lower_eh_constructs_2): Handle empty cleanups.
2104 * tree.c (free_lang_data_in_decl): Don't clear DECL_INITIAL of
2105 static constants.
2106 * lto-symtab.c (lto_symtab_register_decl): Accepts DECL_INITIAL
2107 for static constants.
2108 * lto-streamer-out.c (output_gimple_stmt): Handle GIMPLE_NOP.
2109 * lto-streamer-in.c (input_gimple_stmt): Handle GIMPLE_NOP.
2110
7366cbe7 21112009-10-08 Richard Guenther <rguenther@suse.de>
2112
2113 * gimple.c (free_gimple_type_tables): New function.
2114 * gimple.h (free_gimple_type_tables): Declare.
2115
87025426 21162009-10-07 Mark Heffernan <meheff@google.com>
2117
2118 * ipa-prop.c (ipa_print_node_params) Only print
2119 names of named arguments.
2120
0da276d2 21212009-10-08 Rafael Avila de Espindola <espindola@google.com>
2122
2123 * gcc.c (LINK_COMMAND_SPEC): Pass libc with -pass-through if it is
2124 being statically linked.
2125
43ccfa36 21262009-10-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2127
2128 * collect2.c (add_lto_object): Only define if OBJECT_FORMAT_NONE.
2129
e51ee2f1 21302009-10-08 Jan Hubicka <jh@suse.cz>
2131
2132 PR bootstrap/41620
2133 * ipa.c (cgraph_externally_visible_p,
2134 function_and_variable_visibility,
2135 whole_program_function_and_variable_visibility): Skip non-finalized
2136 nodes.
2137
41b0696b 21382009-10-08 Nick Clifton <nickc@redhat.com>
2139
2140 * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Do not allow
2141 CONST_DOUBLEs.
2142
b17587b6 21432009-10-08 Andreas Tobler <a.tobler@schweiz.org>
2144
2145 PR bootstrap/37739
2146 * config.host: Use config/x-cflags-O1 for powerpc FreeBSD.
2147
f59e3889 21482009-10-07 Joseph Myers <joseph@codesourcery.com>
2149
2150 PR c/41182
2151 * c-common.c (c_fully_fold_internal): Strip nops from the result
2152 of recursive calls to c_fully_fold_internal.
2153 (c_wrap_maybe_const): New.
2154 (c_save_expr): Use c_wrap_maybe_const.
2155 * c-common.h (c_wrap_maybe_const): Declare.
2156 * c-typeck.c (build_conditional_expr, c_finish_stmt_expr,
2157 build_binary_op): Use c_wrap_maybe_const.
2158
ea37bf2e 21592009-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2160
2161 * real.c: Fix comment to reflect actual exponent size.
2162
7e6070de 21632009-10-08 Ben Elliston <bje@au.ibm.com>
2164
2165 * config/rs6000/a2.md: Add FSF comment header.
2166
2d81a513 21672009-10-07 Uros Bizjak <ubizjak@gmail.com>
2168
2169 * config/i386/i386.md (any_extend): New code iterator.
2170 (u, s): New code attributes.
2171 (sgnprefix): Ditto.
2172 (DWIH): Rewrite as code iterator for SI and DI modes.
2173 (DWI): Rewrite as mode attribute.
2174 (dwi): New mode attribute.
2175 (di): Depend on SI mode and DI mode.
2176 (doubleint_general_operand): Remove mode attribute.
2177
2178 (*lea_1): Macroize insn from *lea_1_rex64 and *lea_1 patterns using
2179 DWIH mode iterator.
2180
2181 (*add<mode>3_doubleword): Use DWIH as the base mode iterator.
2182 (*sub<mode>3_doubleword): Ditto.
2183
2184 (mul<mode>3): Macroize expander from mul{hi,si,di}3 patterns
2185 using SWIM248 mode iterator.
2186 (*mul<mode>3_1): Macroize insn from mul{si,di}3_1 patterns
2187 using SWI48 mode iterator.
2188 (<u>mul<mode><dwi>3): Macroize expander from {,u}mul{sidi,diti}3
2189 patterns using DWIH mode iterator and any_extend code iterator.
2190 (<u>mulqihi3): Macroize expander from {,u}mulqihi3 patterns
2191 using any_extend code iterator.
2192 (*<u>mul<mode><dwi>3_1): Macroize insn from {,u}mul{sidi,diti}3_1
2193 patterns using DWIH mode iterator and any_extend code iterator.
2194 (*<u>mulqihi3_1): Macroize insn from {,u}mulqihi3_1 patterns
2195 using any_extend code iterator.
2196 (<s>mul<mode>3_highpart): Macroize expander from
2197 {s,u}mul{si,di}3_highpart patterns using DWIH mode iterator
2198 and any_extend code iterator.
2199 (*<s>muldi3_highpart_1): Macroize insn from
2200 *{s,u}muldi3_highpart_rex64 patterns using any_extend code iterator.
2201 (*<s>mulsi3_highpart_1): Macroize insn from *{s,u}mulsi3_highpart_1
2202 patterns using any_extend code iterator.
2203 (*<s>mulsi3_highpart_zext): Macroize insn from
2204 *{s,u}mulsi3_highpart_zext patterns using any_extend code iterator.
2205
84db8dc1 22062009-10-07 Jakub Jelinek <jakub@redhat.com>
2207
2208 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Don't add
2209 DW_AT_const_value if VAR_DIE already has DW_AT_abstract_origin
2210 refering to a DIE with DW_AT_const_value.
2211
c2b66149 22122009-10-07 Vladimir Makarov <vmakarov@redhat.com>
2213
2214 PR middle-end/22072
2215 * ira-lives.c (check_and_make_def_conflict): Process all operands.
2216
07bcf1f7 22172009-10-06 Jan Hubicka <jh@suse.cz>
2218
2219 * cgraph.c (cgraph_node_can_be_local): Handle externally visible nodes
2220 correctly.
2221
1c6da01e 22222009-10-06 Uros Bizjak <ubizjak@gmail.com>
2223
2224 * config/i386/i386.md (*lea_1_rex64, *lea_1, *lea_1_zext,
2225 *lea_2_rex64): Move before *add<mode>_1 pattern.
2226
48e61da9 22272009-10-07 Jan Hubicka <jh@suse.cz>
2228
2229 * collect2.c (main): Add -fno-whole-program.
2230 * gcc.c (set_collect_gcc_options): Do not remove whole program here.
2231
59dd4830 22322009-10-07 Jan Hubicka <jh@suse.cz>
2233
fe52088f 2234 * lto-symtab.c (lto_cgraph_replace_node): Assert that inline clones
2235 has no address taken.
59dd4830 2236 * cgraph.c (cgraph_mark_needed_node): Assert that inline clones are
2237 never needed.
2238 (cgraph_clone_node): Clear externally_visible flag for clones.
2239 * cgraph.h (cgraph_only_called_directly_p,
2240 cgraph_can_remove_if_no_direct_calls_p): New predicates.
2241 * tree-pass.h (pass_ipa_whole_program_visibility): Declare.
2242 * ipa-cp.c (ipcp_cloning_candidate_p): Use new predicate.
2243 (ipcp_initialize_node_lattices, ipcp_estimate_growth,
2244 ipcp_insert_stage): Likwise.
2245 * cgraphunit.c (cgraph_decide_is_function_needed): Do not compute
2246 externally_visible flag.
2247 (verify_cgraph_node): Verify that inline clones look right.
2248 (process_function_and_variable_attributes): Do not set
2249 externally_visible flags.
2250 (ipa_passes): Avoid executing small_ipa_passes at LTO stage; they've
2251 been already run.
2252 * lto-cgraph.c (lto_output_node): Assert that inline clones are not
2253 boundaries.
2254 * ipa-inline.c (cgraph_clone_inlined_nodes): Use new predicates;
2255 clear externally_visible when turning into inline clones
2256 (cgraph_mark_inline_edge): Use new predicates.
2257 (cgraph_estimate_growth): Likewise.
2258 (cgraph_decide_inlining): Likewise.
2259 * ipa.c (cgraph_postorder): Likewise.
2260 (cgraph_remove_unreachable_nodes): Likewise; sanity check
2261 that inline clones are not needed.
2262 (cgraph_externally_visible_p): New predicate.
2263 (function_and_variable_visibility): Add whole_program parameter;
2264 always set externally_visible flag; handle COMDAT function
2265 privatization.
2266 (local_function_and_variable_visibility): New function.
2267 (gate_whole_program_function_and_variable_visibility): New function.
2268 (whole_program_function_and_variable_visibility): New function.
2269 (pass_ipa_whole_program_visibility): New function.
2270 * passes.c (init_optimization_passes): Add whole program visibility
2271 pass.
2272 (do_per_function_toporder, function_called_by_processed_nodes_p): Do
2273 not care about needed/reachable flags.
2274 * varpool.c: Include flags.h
2275 (decide_is_variable_needed): When doing LTO assume whole-program mode.
2276 (varpool_finalize_decl): When we are in LTO read-back, all variables
2277 are analyzed.
2278 (varpool_analyze_pending_decls): Skip analyzis of analyzed vars.
2279
316c2d6f 22802009-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2281
2282 * config/s390/tpf.h (TARGET_DEFAULT): Remove MASK_HARD_FLOAT and
2283 add MASK_HARD_DFP.
2284
e38fe738 22852009-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2286
2287 * config.gcc: Don't include the makefile fragments intended for
2288 libgcc.
2289 * config/s390/fixdfdi.h: File removed.
2290 * config/s390/libgcc-glibc.ver: File removed.
2291 * config/s390/s390.h: Remove the fixdfdi.h hack.
2292 * config/s390/t-crtstuff: File moved to libgcc dir.
2293 * config/s390/t-linux: Likewise.
2294 * config/s390/t-tpf: libgcc specific parts removed.
2295 * config/s390/t-linux64: Likewise.
2296
34d17c9b 22972009-10-06 Jerry Quinn <jlquinn@optonline.net>
2298
2299 * Makefile.in (lto-wrapper): Use COMPILER and ALL_COMPILERFLAGS.
2300 (lto-compress.o): Likewise.
f787a6a3 2301
23022009-10-07 Danny Smith <dannysmith@users.sourceforge.net>
2303
2304 PR target/41512
2305 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't propagate
2306 dllexport to class members here.
2307 (i386_pe_determine_dllimport_p): Only check static class data for
2308 definition.
2309 (i386_pe_encode_section_info): Don't recheck DECL_DLLIMPORT_P.
2310 * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Only check
2311 functions for vague linkage.
2312 (i386_pe_type_dllexport_p): Fix formatting.
2313 (maybe_add_dllexport) New function.
2314 (i386_pe_adjust_class_at_definition): Use it to propagate dllexport
2315 to class members.
1c6da01e 2316
ba2c2365 23172009-10-07 Ben Elliston <bje@au.ibm.com>
b3b5596b 2318
2319 * config/rs6000/a2.md: Remove duplicated lines.
2320
80c8ed02 23212009-10-07 Ben Elliston <bje@au.ibm.com>
2322
2323 * config.gcc (powerpc*-*-*): Handle a2.
2324 * config/rs6000/rs6000.md (cpu): Add ppca2. Include "a2.md".
2325 * config/rs6000/a2.md: New file.
2326 * config/rs6000/rs6000.opt (mno-update): New.
2327 (mupdate): Return to using a mask, not a var.
2328 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for a2.
2329 (enum processor_type): Add PROCESSOR_PPCA2.
2330 * config/rs6000/rs6000.c (ppca2_cost): New costs.
2331 (rs6000_override_options): Add "a2" to processor_target_table.
2d81a513 2332 Update rs6000_always_hint logic. Correctly set rs6000_cost for a2.
2333 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=a2.
80c8ed02 2334
0ccee7a5 23352009-10-06 Uros Bizjak <ubizjak@gmail.com>
2336
bf30d630 2337 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
2338 Use explicit gen_truncxfsf2 and gen_truncxfdf2 references to avoid
2339 reference to nonexistent gen_truncxfxf2 function.
2340
23412009-10-06 Uros Bizjak <ubizjak@gmail.com>
2342
2343 * config/i386/i386.md (SWI48, SDWIM, DWI): New mode iterators.
0ccee7a5 2344 (DWIH, g, di, doubleint_general_operand): New mode attributes.
2345 (general_operand): Handle TI mode.
2346 (add<mode>3): Macroize expander from add{qi,hi,si,di,ti}3 patterns
bf30d630 2347 using SDWIM mode iterator.
0ccee7a5 2348 (*add<mode>3_doubleword): New insn_and_split pattern. Macroize
2349 pattern from *add{di,ti}3_1 patterns and corresponding splitters
bf30d630 2350 using DWI mode iterator.
0ccee7a5 2351 (add<mode>3_carry): Macroize insn from add{qi,hi,si,di}3_carry
2352 patterns using SWI mode iterator.
2353 (*add<mode>3_cc): Macroize insn from add{si,di}3_cc patterns
2354 using SWI48 mode iterator.
2355 (*add<mode>_1): Ditto from add{si,di}_1 patterns.
2356 (*add<mode>_2): Ditto from add{si,di}_2 patterns.
2357 (*add<mode>_3): Ditto from add{si,di}_3 patterns.
2358 (*add<mode>_5): Ditto from add{si,di}_5 patterns.
2359 (sub<mode>3): Macroize expander from sub{qi,hi,si,di,ti}3 patterns
bf30d630 2360 using SDWIM mode iterator.
0ccee7a5 2361 (*sub<mode>3_doubleword): New insn_and_split pattern. Macroize
2362 pattern from *sub{di,ti}3_1 patterns and corresponding splitters
bf30d630 2363 using DWI mode iterator.
0ccee7a5 2364 (sub<mode>3_carry): Macroize insn from sub{qi,hi,si,di}3_carry
2365 patterns using SWI mode iterator.
2366 (*sub<mode>_1): Ditto from from sub{qi,hi,si,di}_1 patterns.
2367 (*sub<mode>_2): Ditto from sub{qi,hi,si,di}_2 patterns.
2368 (*sub<mode>_3): Ditto from sub{qi,hi,si,di}_3 patterns.
2369 (<plusminus_insn>xf3): Macroize expander from addxf3 and subxf3
2370 patterns using plusminus code iterator.
2371 (<plusminus_insn><mode>3): Macroize expander from add<mode>3 and
2372 sub<mode>3 patterns using plusminus code iterator.
47bfa1e7 2373 * config/i386/i386.c (override_options): Update the call to
0ccee7a5 2374 gen_subdi_carry_rex64 for renamed function.
2375 (ix86_expand_int_addcc): Update calls to gen_subdi3_carry_rex64
2376 and gen_adddi3_carry_rex64 for renamed functions. Use indirect
2377 calls to instruction expanders.
2378
bc5fa702 23792009-10-06 Martin Jambor <mjambor@suse.cz>
2380
2381 PR bootstrap/41395
2382 * opts.c (decode_options): Run IPA-SRA at -O2.
2383
fffae5cf 23842009-10-06 Richard Guenther <rguenther@suse.de>
2385
2386 * lto-symtab.c (lto_symtab_entry_hash): Hash strings, not pointers.
2387
080a58d7 23882009-10-06 Tobias Burnus <burnus@net-b.de>
2389
2390 PR lto/41591
2391 * doc/invoke.texi (-flto,-fwhole-program): Make clear that the
2392 -flto and -fwhole-program flags can be combined.
2393
aa052e98 23942009-10-06 Ryan Mansfield <rmansfield@qnx.com>
2395
2396 PR driver/41217
2397 * gcc.c (process_command): Check that -o argument was specified.
2398
90e70538 23992009-10-06 Jerry Quinn <jlquinn@optonline.net>
2400
fe52088f 2401 * gimple.c (gimple_type_hash): Use CONST_CAST_TREE to fix compilation.
90e70538 2402
90556ef2 24032009-10-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2404
2405 * c.opt (Wjump-misses-init): Fix typo to enable for ObjC.
2406 * doc/invoke.texi (Warning Options): Annotate allowed languages
2407 for -Wunsuffixed-float-constants.
2408
966e6f7f 24092009-10-05 Jakub Jelinek <jakub@redhat.com>
2410
333ae3dc 2411 * dwarf2out.c (modified_type_die): Don't add DW_AT_name to
2412 DW_TAG_{const,volatile}_type if its DW_AT_type already has the
2413 same name and isn't the main variant.
2414
966e6f7f 2415 PR debug/41558
2416 * dwarf2out.c (loc_by_reference): Removed.
2417 (dw_loc_list_1): New function.
2418 (dw_loc_list): Remove toplev argument, add want_address argument.
2419 Don't look at decl_by_reference_p at all. Use dw_loc_list_1.
2420 (loc_list_from_tree) <case VAR_DECL>: Pass want_address rather than
2421 want_address == 2 to dw_loc_list. For successful dw_loc_list
2422 set have_address to 1 only if want_address is not 0.
2423
eb725716 24242009-10-05 Richard Sandiford <rdsandiford@googlemail.com>
2425
2426 * config/mips/mips-protos.h (mips_trampoline_code_size): Declare.
2427 * config/mips/mips.h (TRAMPOLINE_SIZE): Redefine as the size of
2428 a code block followed by two pointers.
2429 (TRAMPOLINE_ALIGNMENT): Define to 64 for 32-bit targets too.
2430 * config/mips/mips.c (MIPS_LOAD_PTR): New macro.
2431 (MIPS_MOVE): Likewise.
2432 (MIPS_LUI): Likewise.
2433 (MIPS_JR): Likewise.
2434 (MIPS_BAL): Likewise.
2435 (MIPS_NOP): Likewise.
2436 (mips_asm_trampoline_template): Delete.
2437 (mips_trampoline_code_size): New function.
2438 (mips_trampoline_init): Add shorter sequences for all cases
2439 except Pmode == DImoe && !TARGET_USE_PIC_FN_ADDR_REG.
2440 Calculate the opcodes directly, rather than copying from a template.
2441 Only flush the code part of the trampoline.
2442 (TARGET_ASM_TRAMPOLINE_TEMPLATE): Delete.
2443
2ae168f4 24442009-10-05 Richard Sandiford <rdsandiford@googlemail.com>
2445
2446 * config/mips/mips.h (DWARF_FRAME_RETURN_COLUMN): Replace
2447 GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM.
2448 (INCOMING_RETURN_ADDR_RTX): Likewise.
2449 (FUNCTION_PROFILER): Likewise. Replace GP_REG_FIRST + 1
2450 with AT_REGNUM.
2451 * config/mips/sdemtk.h (FUNCTION_PROFILER): Replace GP_REG_FIRST + 31
2452 with RETURN_ADDR_REGNUM.
2453 (MIPS_SAVE_REG_FOR_PROFILING_P): Likewise.
2454 * config/mips/mips.c (mips16_build_call_stub): Replace
2455 GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM, GP_REG_FIRST + 1
2456 with AT_REGNUM and 31 with RETURN_ADDR_REGNUM.
2457 (mips_print_operand_punctuation): Likewise.
2458 (mips_frame_set): Likewise.
2459 (mips16e_output_save_restore): Likewise.
2460 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
2461 (mips_save_reg_p): Likewise.
2462 (mips_return_addr): Likewise.
2463 (mips_set_return_address): Likewise.
2464 (mips_direct_save_slot_move_p): Likewise.
2465 (mips_output_function_prologue): Likewise.
2466 (mips_restore_reg): Likewise.
2467 (mips_expand_epilogue): Likewise.
2468 (mips_epilogue_uses): Likewise.
2469 * config/mips/mips.md (RETURN_ADD_REGNUM): Define.
2470 (*mov<mode>_ra): Use it instead of a hard-coded 31.
2471 (clear_hazard_<mode>): Likewise.
2472 (call_internal): Likewise.
2473 (call_internal_direct): Likewise.
2474 (call_direct_split): Likewise.
2475 (call_value_internal): Likewise.
2476 (call_value_split): Likewise.
2477 (call_value_internal_direct): Likewise.
2478 (call_value_direct_split): Likewise.
2479 (call_value_multiple_internal): Likewise.
2480 (call_value_multiple_split): Likewise.
2481
a8d7c2f9 24822009-10-05 Eric Botcazou <ebotcazou@adacore.com>
2483 Jakub Jelinek <jakub@redhat.com>
2484
2485 PR rtl-optimization/41511
2486 * combine.c (record_value_for_reg): Pass explicit values as argument
2487 to get_last_value_validate.
2488 (get_last_value_validate): Document INSN parameter.
2489 For non-readonly MEMs, assume they might have been modified if INSN
2490 was in another basic block.
2491 (get_last_value): Minor reformatting.
2492
1ca8efe4 24932009-10-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
2494
2495 PR tree-opt/40992
2496 * final.c (asm_str_count): Split out from asm_insn_count.
2497 * rtl.h (asm_str_count): New prototype.
2498 * tree-inline (estimate_num_insns) <case GIMPLE_ASM>: Call
2499 asm_str_count.
2500
2a17b85d 25012009-10-05 Sriraman Tallam <tmsriram@google.com>
2502
2503 * doc/plugins.texi: Change plugin_pass to register_pass_info.
242994e0 2504
25052009-10-05 Basile Starynkevitch <basile@starynkevitch.net>
2506 Rafael Espindola <espindola@google.com>
2507
2508 * gengtype.c (write_types): Moved call to write_func_for_structure
2509 into seperate loops.
2510
90f477a9 25112009-10-05 Richard Guenther <rguenther@suse.de>
2512
2513 PR lto/41281
2514 * lto-cgraph.c (output_cgraph): Output toplevel asms.
2515 (input_cgraph_1): Input toplevel asms.
2516
fdd4f660 25172009-10-05 Richard Guenther <rguenther@suse.de>
2518
2519 PR lto/40902
2520 * lto-symtab.c (lto_compatible_attributes_p): Remove.
2521 (external_aggregate_decl_p): Likewise.
2522 (lto_symtab_compatible): Re-structure. Remove dead code.
2523 For variables ignore toplevel qualifiers when comparing types.
2524 Issue warnings, not errors for mismatched user-alignment.
2525
fd193bcd 25262009-10-05 Richard Guenther <rguenther@suse.de>
2527
2528 PR lto/41552
2529 PR lto/41487
2530 * lto-symtab.c (struct lto_symtab_base_def): Remove.
2531 (struct lto_symtab_identifier_def): Likewise.
2532 (struct lto_symtab_decl_def): Likewise.
2533 (struct lto_symtab_entry_def): New.
2534 (lto_symtab_identifier_t): Rename to ...
2535 (lto_symtab_entry_t): ... this.
2536 (lto_symtab_decls): Remove.
2537 (lto_symtab_base_hash): Rename to ...
2538 (lto_symtab_entry_hash): ... this.
2539 (lto_symtab_base_eq): Rename to ...
2540 (lto_symtab_entry_eq): ... this.
2541 (lto_symtab_base_marked_p): Rename to ...
2542 (lto_symtab_entry_marked_p): ... this.
2543 (lto_symtab_identifier_marked_p): Remove.
2544 (lto_symtab_decl_marked_p): Likewise.
2545 (lto_symtab_maybe_init_hash_tables): Rename to ...
2546 (lto_symtab_maybe_init_hash_table): ... this.
2547 (lto_symtab_set_resolution_and_file_data): Remove.
2548 (lto_symtab_register_decl): New function.
2549 (lto_symtab_get_identifier): Remove.
2550 (lto_symtab_get): New function.
2551 (lto_symtab_get_resolution): Adjust.
2552 (lto_symtab_get_identifier_decl): Remove.
2553 (lto_symtab_set_identifier_decl): Likewise.
2554 (lto_symtab_merge_decl): Rename to ...
2555 (lto_symtab_merge): ... this. Rewrite.
2556 (lto_symtab_merge_var): Remove.
2557 (lto_symtab_merge_fn): Likewise.
2558 (lto_symtab_prevailing_decl): Adjust.
2559 (lto_cgraph_replace_node): New function.
2560 (lto_symtab_merge_decls_2): Likewise.
2561 (lto_symtab_merge_decls_1): Likewise.
2562 (lto_symtab_fixup_var_decls): Likewise.
2563 (lto_symtab_resolve_symbols): Likewise.
2564 (lto_symtab_merge_decls): Likewise.
2565 (lto_symtab_prevailing_decl): Adjust.
2566 (lto_symtab_get_symtab_def): Remove.
2567 (lto_symtab_get_file_data): Likewise.
2568 (lto_symtab_clear_resolution): Adjust.
2569 (lto_symtab_clear_resolution): Likewise.
2570 * lto-cgraph.c (input_edge): Do not merge cgraph nodes here.
2571 (input_cgraph_1): Likewise.
2572 * lto-streamer-in.c (get_resolution): Do not provide fake
2573 symbol resolutions here.
2574 (deferred_global_decls): Remove.
2575 (lto_register_deferred_decls_in_symtab): Likewise.
2576 (lto_register_var_decl_in_symtab): Change signature, register
2577 variable via lto_symtab_register_decl.
2578 (lto_register_function_decl_in_symtab): Likewise.
2579 (lto_read_tree): Adjust.
2580 * lto-streamer.h (lto_register_deferred_decls_in_symtab): Remove.
2581 (lto_symtab_merge_var): Likewise.
2582 (lto_symtab_merge_fn): Likewise.
2583 (lto_symtab_register_decl): Declare.
2584 (lto_symtab_merge_decls): Likewise.
2585
09d0041c 25862009-10-05 Richard Guenther <rguenther@suse.de>
2587
2588 PR tree-optimization/23821
2589 * tree-vrp.c (vrp_finalize): Do not perform copy propagation.
2590 * tree-ssa-dom.c (cprop_operand): Do not propagate copies into
2591 simple IV increments.
2592
6488605d 25932009-10-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2594
0ccee7a5 2595 * config/arm/arm.c (arm_override_options): Really initialize
2596 flag_dwarf2_cfi_asm to 0.
6488605d 2597
359a1bd5 25982009-10-05 Doug Kwan <dougkwan@google.com>
2599
2600 PR rtl-optimization/41574
6488605d 2601 * combine.c (distribute_and_simplify_rtx): Quit if RTX mode is
359a1bd5 2602 floating point and we are not doing unsafe math optimizations.
2603
7bfefa9d 26042009-10-03 Simon Baldwin <simonb@google.com>
2605 Cary Coutant <ccoutant@google.com>
2606 Rafael Espindola <espindola@google.com>
2607 Richard Guenther <rguenther@suse.de>
2608 Jan Hubicka <jh@suse.cz>
2609 Doug Kwan <dougkwan@google.com>
bf30d630 2610 H.J. Lu <hongjiu.lu@intel.com>
7bfefa9d 2611 Bill Maddox <maddox@google.com>
2612 Ryan Mansfield <rmansfield@qnx.com>
2613 Diego Novillo <dnovillo@google.com>
2614 Ollie Wild <aaw@google.com>
2615 Kenneth Zadeck <zadeck@naturalbridge.com>
2616
2617 * lto-cgraph.c: New file.
2618 * lto-compress.c: New file.
2619 * lto-compress.h: New file.
2620 * lto-opts.c: New file.
2621 * lto-section-in.c: New file.
2622 * lto-section-out.c: New file.
2623 * lto-streamer-in.c: New file.
2624 * lto-streamer-out.c: New file.
2625 * lto-streamer.c: New file.
2626 * lto-streamer.h: New file.
2627 * lto-symtab.c: New file.
2628 * lto-wpa-fixup.c: New file.
2629 * lto-wrapper.c: New file.
2630
26312009-10-03 Simon Baldwin <baldwin@google.com>
2632 Ben Elliston <bje@au.ibm.com>
2633 Rafael Espindola <espindola@google.com>
2634 Nathan Froyd <froydnj@codesourcery.com>
2635 Jan Hubicka <jh@suse.cz>
2636 Doug Kwan <dougkwan@google.com>
2637 Diego Novillo <dnovillo@google.com>
2638 Kenneth Zadeck <zadeck@naturalbridge.com>
2639
2640 * Makefile.in (enable_lto): New.
fe52088f 2641 (site.exp): If @enable_lto@ is set to 'yes' define ENABLE_LTO.
7bfefa9d 2642 (LINKER_PLUGIN_API_H): Define.
2643 (LTO_SYMTAB_H): Define.
2644 (LTO_STREAMER_H): Define.
2645 (TREE_VECTORIZER_H): Define.
2646 (INCLUDES): Add LIBELFINC.
2647 (OBJS-common): Add lto-cgraph.o, lto-streamer-in.o,
fe52088f 2648 lto-streamer-out.o, lto-section-in.o, lto-section-out.o, lto-symtab.o,
2649 lto-opts.o, lto-streamer.o, lto-wpa-fixup.o, lto-compress.o.
7bfefa9d 2650 (MOSTLYCLEANFILES): Add lto-wrapper$(exeext)
2651 (native): Add lto-wrapper$(exeext)
2652 (lto-compress.o, lto-cgraph.o, lto-streamer-in.o,
2653 lto-streamer-out.o, lto-section-in.o, lto-section-out.o,
fe52088f 2654 lto-symtab.o, lto-opts.o, lto-streamer.o, lto-wpa-fixup.o): New rules.
2655 (gimple.o): Add dependency on LTO_HEADER_H and LTO_SECTION_OUT_H.
7bfefa9d 2656 (varasm.o): Add dependency on tree-iterator.h.
2657 (cgraph.o): Add dependency on cif-code.def.
2658 (ipa-reference.o): Add dependency on LTO_STREAMER_H.
2659 (ipa-pure-const.o): Likewise.
2660 (GTFILES): Add lto-symtab.c.
2661 (install-lto-wrapper): New.
fe52088f 2662 * configure.ac: If 'lto' is in enable_languages, define ENABLE_LTO
2663 and enable_lto. If LIBELFLIBS is set, define HAVE_libelf.
7bfefa9d 2664 * config.in: Regenerate.
2665
26662009-10-03 Rafael Espindola <espindola@google.com>
2667 Diego Novillo <dnovillo@google.com>
2668
2669 * cgraphunit.c (ipa_passes): Prevent lto1 from calling
2670 ipa_write_summaries.
2671 Call execute_ipa_summary_passes for all_regular_ipa_passes and
2672 all_lto_gen_passes.
2673 (cgraph_optimize): Make extern.
2674
26752009-10-03 Nathan Froyd <froydnj@codesourcery.com>
2676 Kenneth Zadeck <zadeck@naturalbridge.com>
2677
2678 * toplev.c (in_lto_p): Declare.
2679 * collect2.c (scan_prog_file): Read all the output when reading
2680 information for LTO.
2681 (enum lto_mode_d): Declare.
2682
26832009-10-03 Richard Guenther <rguenther@suse.de>
2684 Diego Novillo <dnovillo@google.com>
2685
2686 * gimple.c: Include target.h and alias.h.
2687 (gimple_types): Declare.
2688 (type_hash_cache): Declare.
2689 (gimple_alloc_stat): Make extern.
2690 (gimple_build_eh_must_not_throw): Call
2691 gimple_eh_must_not_throw_set_fndecl.
2692 (struct type_pair_d): Declare.
2693 (type_pair_t): Declare.
2694 (type_pair_hash): New.
2695 (type_pair_eq): New.
2696 (lookup_type_pair): New.
2697 (gimple_force_type_merge): New.
2698 (compare_type_names_p): New.
2699 (compare_field_offset): New.
2700 (gimple_types_compatible_p): New.
2701 (struct sccs): Declare.
2702 (next_dfs_num): Declare.
2703 (iterative_hash_gimple_type): New.
2704 (visit): New.
2705 (iterative_hash_type_name): New.
2706 (iterative_hash_gimple_type): New.
2707 (gimple_type_hash): New.
2708 (gimple_type_eq): New.
2709 (gimple_register_type): New.
2710 (print_gimple_types_stats): New.
2711 (gimple_signed_or_unsigned_type): New.
2712 (gimple_unsigned_type): New.
2713 (gimple_signed_type): New.
2714 (gimple_get_alias_set): New.
2715 (gimple_decl_printable_name): Do not use DMGL_TYPES.
2716 * gimple.h (gimple_alloc, gimple_alloc_stat): Declare.
2717 (gimple_force_type_merge): Declare.
2718 (gimple_types_compatible_p): Declare.
2719 (gimple_register_type): Declare.
2720 (print_gimple_types_stats): Declare.
2721 (gimple_unsigned_type): Declare.
2722 (gimple_signed_type): Declare.
2723 (gimple_get_alias_set): Declare.
2724 (gimple_eh_must_not_throw_set_fndecl): New.
2725
27262009-10-03 Jan Hubicka <jh@suse.cz>
2727 Kenneth Zadeck <zadeck@naturalbridge.com>
2728
2729 * ipa-pure-const.c: Include lto-streamer.h.
2730 (register_hooks): Factor out of ...
2731 (generate_summary): ... here.
2732 (pure_const_write_summary): New.
2733 (pure_const_read_summary): New.
2734 (pass_ipa_pure_const): Add pure_const_write_summary and
2735 pure_const_read_summary.
2736 * ipa-reference.c: Include lto-streamer.h.
2737 (add_new_function): New.
2738 (remove_node_data): New.
2739 (duplicate_node_data): New.
2740 (ipa_init): Guard against multiple calls.
2741 Move hook setup from analyze_function.
2742 (write_node_summary_p): New.
2743 (ipa_reference_write_summary): New.
2744 (ipa_reference_read_summary): New.
2745 (pass_ipa_reference): Add ipa_reference_write_summary and
2746 ipa_reference_read_summary.
2747 * cgraph.h (cgraph_local_info): Add field lto_file_data.
2748 (struct cgraph_edge): Add fields lto_stmt_uid and
2749 call_stmt_cannot_inline_p.
2750 (cgraph_optimize): Declare.
2751 (cgraph_decide_is_function_needed): Declare.
2752 (reset_inline_failed): Declare.
2753 (enum LTO_cgraph_tags): Declare.
2754 (LTO_cgraph_tag_names): Declare.
2755 (LCC_NOT_FOUND): Define.
2756
27572009-10-03 Doug Kwan <dougkwan@google.com>
2758 Rafael Espindola <espindola@google.com>
2759 Jan Hubicka <jh@suse.cz>
2760 Diego Novillo <dnovillo@google.com>
2761 Kenneth Zadeck <zadeck@naturalbridge.com>
2762
2763 * passes.c (all_regular_ipa_passes): New.
2764 (all_ipa_passes): Rename to all_small_ipa_passes.
2765 (init_optimization_passes): Init all_regular_ipa_passes.
2766 * tree-pass.h (all_regular_ipa_passes): New.
2767 (all_ipa_passes): Rename to all_small_ipa_passes.
2768 * passes.c (all_lto_gen_passes): New.
2769 (init_optimization_passes): Initialize all_lto_gen_passes.
2770 (execute_ipa_summary_passes): Make non-static.
2771 (ipa_write_summaries_1): New.
2772 (ipa_write_summaries_2): New.
2773 (ipa_write_summaries): New.
2774 (ipa_write_summaries_of_cgraph_node_set): New.
2775 (ipa_read_summaries_1): New.
2776 (ipa_read_summaries): New.
2777 (execute_ipa_pass_list): Call cgraph_process_new_functions.
2778 (execute_regular_ipa_pass_list): Remove.
2779 (init_optimization_passes): Schedule
2780 pass_rebuild_cgraph_edges and pass_early_inline outside
2781 of pass_all_early_optimizations. Document reason.
2782 (pass_ipa_lto_gimple_out, pass_ipa_lto_wpa_fixup,
2783 pass_ipa_lto_finish_out): New pass.
fe52088f 2784 (pass_ipa_summary_passes): Start and stop timers if the pass has them.
7bfefa9d 2785 (execute_all_ipa_transforms): New.
2786 (execute_one_pass): Don't call execute_one_ipa_transform_pass.
2787 (dump_properties, debug_properties): New.
2788 * tree-optimize.c (gate_all_early_local_passes): Return
2789 false if we are in lto1.
2790 (tree_rest_of_compilation): Call execute_all_ipa_transforms.
2791 * tree-pass.h (execute_all_ipa_transforms): Declare.
2792 (pass_ipa_function_and_variable_visibility): Declare.
2793 (pass_ipa_early_inline): Declare.
2794 (pass_ipa_lto_gimple_out): Declare.
2795 (pass_ipa_lto_wpa_fixup): Declare.
2796 (pass_ipa_lto_finish_out): Declare.
2797 (all_small_ipa_passes, all_regular_ipa_passes,
2798 all_lto_gen_passes): Declare.
2799 (execute_ipa_summary_passes): Declare.
2800 (execute_all_ipa_transforms): Declare.
2801 (ipa_write_summaries): Declare
2802 (ipa_write_summaries_of_cgraph_node_set): Declare.
2803 (ipa_read_summaries): Declare.
2804
28052009-10-03 Doug Kwan <dougkwan@google.com>
2806 Ollie Wild <aaw@google.com>
2807
fe52088f 2808 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do nothing in WPA.
7bfefa9d 2809
2810 * collect2.c (LTO_MODE_NONE, LTO_MODE_LTO, LTO_MODE_WPA): New enums.
2811 (lto_mode): New variable.
2812 (maybe_run_lto_and_relink): Handle the -fwpa option.
2813 (main): Handle the -fwpa option.
2814 (maybe_unlink_list): New function.
2815 * gcc.c (link_lto_options): Replace -flto with -fwpa.
2816 * common.opt (flto): New flag.
2817 * toplev.c (flag_generate_lto): Declare.
2818
28192009-10-03 Simon Baldwin <simonb@google.com>
2820
2821 * common.opt (flto-compression-level): New flag.
2822
2823 * opts.c: Include lto-opts.h.
2824 (handle_option): Call lto_register_user_option for each
2825 valid option handled.
fe52088f 2826 (decode_options): Clear registered options before the options
7bfefa9d 2827 handling loop.
2828
28292009-10-03 Cary Coutant <ccoutant@google.com>
2830
2831 * collect2.c (is_elf): New function.
2832 (scan_prog_file): Require LTO object to be in ELF format.
2833
28342009-10-03 Rafael Espindola <espindola@google.com>
2835
2836 * gcc.c (LINK_COMMAND_SPEC): Use the -pass-through option to pass
2837 libgcc to the linker.
2838
fe52088f 2839 * ipa-cp.c (cgraph_gate_cp): Return false if LTRANS is running.
7bfefa9d 2840
2841 * collect2.c (maybe_run_lto_and_relink): Execute lto-wrapper.
2842 (collect_execute): Add flags argument. Pass flags to pex_run. Update
2843 all callers.
2844 * collect2.h (collect_execute): Add flags argument.
2845 * tlink.c (tlink_execute): Update call to collect_execute.
2846 * gcc.c (main): Set the COLLECT_LTO_WRAPPER environment variable.
2847 (use_linker_plugin): New.
2848 (use_linker_plugin_spec_function): New.
2849 (LINK_COMMAND_SPEC): Pass plugin options to the linker.
2850 (linker_plugin_file_spec): New.
2851 (lto_wrapper_spec): New.
2852 (lto_gcc_spec): New.
2853 (static_specs): Add linker_plugin_file, lto_wrapper and lto_gcc.
2854 (static_spec_functions): Add use-linker-plugin.
2855 (process_command): Handle -use-linker-plugin.
2856 (main): Use lto_wrapper_spec instead of lto_wrapper. Set
2857 linker_plugin_file_spec and lto_gcc_spec.
2858 (use_linker_plugin_spec_function): New.
2859
28602009-10-03 Richard Guenther <rguenther@suse.de>
2861
2862 PR lto/41547
2863 PR lto/41548
2864 * tree.h (is_lang_specific): Include LANG_TYPE.
2865 * tree.c (find_decls_types_r): Manually add interesting parts
2866 of TYPE_FIELDS. Walk BINFO_VIRTUALS. Do not walk TYPE_METHODS.
2867
2868 * gimple.c (type_pair_hash): Make symmetric.
2869 (type_pair_eq): Likewise.
2870 (lookup_type_pair): Increase initial hashtable size.
2871 (gimple_force_type_merge): Rely on type-pair symmetry.
2872 (visit): Remove excessive checking code.
fe52088f 2873 (iterative_hash_type_name): Do not hash TYPE_NAME of anonymous unions.
7bfefa9d 2874 (gimple_register_type): Remove getenv calls, shrink initial
2875 hashtable size.
2876
2877 PR middle-end/41502
2878 * cgraphunit.c (ipa_passes): Do not remove bodies of extern
2879 inline functions if not generating lto output.
2880
2881 PR lto/41379
2882 * toplev.c (finalize): In WPA mode remove the asm file.
2883
28842009-10-03 Doug Kwan <dougkwan@google.com>
2885
2886 * ipa-inline.c (cgraph_mark_inline): Check
2887 edge->call_stmt_cannot_inline_p instead of calling
2888 gimple_call_cannot_inline_p.
2889 (cgraph_decide_inlining): Do nothing in WPA and LTRANS.
fe52088f 2890 (cgraph_gate_ipa_early_inlining): Return false if in_lto_p is set.
7bfefa9d 2891 (inline_generate_summary): Do nothing in LTRANS.
fe52088f 2892 * cgraph.c (initialize_inline_failed): Make sure e->call_stmt
2893 exists before calling gimple_call_cannot_inline_p.
7bfefa9d 2894 (cgraph_create_edge): Set edge->call_stmt_cannot_inline_p.
fe52088f 2895 (cgraph_clone_edge): Add argument STMT_UID. Modify all callers.
7bfefa9d 2896 Update new_edge->lto_stmt_uid.
2897 * cgraphbuild.c (reset_inline_failed): New.
2898
2899 * common.opt (fwpa): New flag.
2900 (fltrans): New option.
2901 * gcc.c (gcc_lto_option_t): New type.
2902 (current_lto_option): New variable.
2903 (lto_single_spec_function): Remove and is replaced by ..
2904 (lto_option_spec_function): New function.
2905 (LINK_COMMAND_SPEC): Use link_lto_option spec instead of just
2906 passing the -flto flag.
2907 (cc1_options): Separate non-LTO related parts into ..
2908 (cc1_non_lto_options): Non-LTO related options shared by all FEs.
2909 (lto1_options): New spec for lto FE.
2910 (link_lto_options): New spec for handling LTO flags in linker.
2911 (invoke_lto_single): Re-format to fit in 80 column. Replace
2912 lto-single with lto-option.
2913 (static_specs): Add cc1_non_lto_options, lto1_options and
2914 link_lto_options.
2915 (static_spec_function): Replace lto-single with lto-option.
fe52088f 2916 (process_command): Handle -flto, -fwpa and -fltran by setting
2917 current_lto_option and not passing it to subprocess unconditionally.
7bfefa9d 2918
29192009-10-03 Bill Maddox <maddox@google.com>
2920
2921 Add `gcc' driver support for link-time code generation (LTO).
2922
2923 * collect2.c (enum pass): Add new literal PASS_LTOINFO.
2924 (lto_flag, lto_objects, lto_o_file): New variables.
2925 (struct lto_object, struct lto_object_list): New structures.
2926 (collect_exit, handler): Remove LTO temporary output file on exit.
2927 (add_lto_object): New function.
2928 (maybe_run_lto_and_relink): New function. Perform link time code
2929 generation and relinking for object files containing LTO information.
2930 (main): Invoke maybe_run_lto_and_relink().
2931 (dump_argv): New function. For debugging, currently disabled.
2932 (scan_prog_file): Add LTO information pass.
2933 * gcc.c (LINK_COMMAND_SPEC): Pass `-flto' switch to linker, i.e.,
2934 collect2.
2935 * toplev.c (compile_file): Emit assembler directive to create
2936 the `gnu_lto_v1' marker symbol when compiling with `-flto'.
2937
29382009-10-03 Diego Novillo <dnovillo@google.com>
2939
2940 * c.opt: Add LTO to warn_abi and warn_psabi.
2941
fe52088f 2942 * tree.c (fld_worklist_push): Rename from PUSH. Convert to static
2943 inline function. Ignore language-specific nodes. Update all users.
7bfefa9d 2944 (find_decls_types_r): Do not traverse the subtrees of
fe52088f 2945 language-specific nodes. Do not traverse DECL_INITIAL for TYPE_DECLs.
7bfefa9d 2946 * tree.h (is_lang_specific): New.
2947 * langhooks.h (struct lang_hooks_for_decls): Remove
2948 may_need_assembler_name_p. Update all users.
2949
2950 * c-common.c (set_builtin_user_assembler_name): Move ...
2951 * builtins.c (set_builtin_user_assembler_name): ... here.
2952 (is_builtin_name): Add comment
2953 (is_builtin_fn): New.
2954 * except.c (output_ttype): Only call
2955 lookup_type_for_runtime if TYPE is not a runtime type.
2956
2957 * passes.c (register_pass): Call position_pass on
fe52088f 2958 all_small_ipa_passes, all_regular_ipa_passes and all_lto_gen_passes.
7bfefa9d 2959 * timevar.def (TV_IPA_LTO_GIMPLE_IO): Define.
2960 (TV_IPA_LTO_DECL_IO): Define.
2961 (TV_IPA_LTO_CGRAPH_IO): Define.
2962 (TV_LTO): Define.
2963 (TV_WHOPR_WPA): Define.
2964 (TV_WHOPR_WPA_IO): Define.
2965 (TV_WHOPR_LTRANS): Define.
2966 (TV_WHOPR_WPA_FIXUP): Define.
2967 (TV_WHOPR_WPA_LTRANS_EXEC): Define.
2968 * tree-cfg.c (tree_node_can_be_shared): Make extern.
2969 * tree-flow.h (tree_node_can_be_shared): Declare.
2970 * tree-inline.c (tree_can_inline_p): Check that E has a
2971 statement associated with it.
2972 * tree.c (free_lang_data_in_binf): Factor out of ...
2973 (free_lang_data_in_type): ... here.
2974 Call RECORD_OR_UNION_TYPE_P.
fe52088f 2975 (need_assembler_name_p): Ignore DECL if it does not have TREE_PUBLIC
2976 set. Call lang_hooks.decls.may_need_assembler_name_p if set.
2977 (free_lang_data_in_decl): Do not clear DECL_CONTEXT for CONST_DECLs.
2978 (free_lang_data): Set debug_info_level to DINFO_LEVEL_NONE. Set
2979 write_symbols to NO_DEBUG. Set debug_hooks to do_nothing_debug_hooks.
2980 (gate_free_lang_data): Return true if flag_generate_lto is set.
7bfefa9d 2981 (walk_tree_1): Call RECORD_OR_UNION_TYPE_P.
2982 * c-common.h (set_builtin_user_assembler_name): Move ...
2983 * tree.h (set_builtin_user_assembler_name): ... here.
2984
2985 * common.opt (flto-report): New flag.
fe52088f 2986 * opts.c (complain_wrong_lang): Do not complain if running lto1.
7bfefa9d 2987 * collect2.c (scan_prog_file): Send the error output of
2988 'nm' to HOST_BIT_BUCKET.
2989
29902009-10-03 Ollie Wild <aaw@google.com>
2991
2992 * langhooks-def.h (lhd_begin_section): New function declaration.
2993 (lhd_write_section): New function declaration.
2994 (lhd_end_section): New function declaration.
2995 (LANG_HOOKS_BEGIN_SECTION): New macro.
2996 (LANG_HOOKS_WRITE_SECTION_DATA): New macro.
2997 (LANG_HOOKS_END_SECTION): New macro.
2998 (LANG_HOOKS_LTO): New macro.
2999 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_LTO.
3000 * langhooks.c (output.h): Add include.
3001 (saved_section): New static variable.
3002 (lhd_begin_section): New function.
3003 (lhd_write_section_data): New function.
3004 (lhd_end_section): New function.
3005 * langhooks.h (struct lang_hooks_for_lto): New structure.
3006 (struct lang_hooks): Add member lto.
3007 * Makefile.in (langhooks.o): Add dependency on output.h.
3008
3009 * c-opts.c (c_common_post_options): Handle -flto and -fwhopr.
3010
30112009-10-03 Richard Guenther <rguenther@suse.de>
3012
3013 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
3014 Handle LTO.
3015
30162009-10-03 Simon Baldwin <simonb@google.com>
3017 Richard Guenther <rguenther@suse.de>
3018 Janis Johnson <janis187@us.ibm.com>
3019 Doug Kwan <dougkwan@google.com>
3020 Diego Novillo <dnovillo@google.com>
3021 Ramana Radhakrishnan <ramana.r@gmail.com>
3022 Ollie Wild <aaw@google.com>
3023
3024 * doc/install.texi: Add documentation for libelf and --enable-lto.
fe52088f 3025 * doc/invoke.texi: Document -fwpa, -flto, -fwhopr, -fltrans,
3026 -flto-report, -flto-compression-level and -use-linker-plugin.
3027 * doc/sourcebuild.texi: Document use of zlib. Document lto-plugin.
7bfefa9d 3028 Add section for LTO Testing.
3029
b3edb377 30302009-10-02 Cary Coutant <ccoutant@google.com>
3031
fe52088f 3032 Add support for comdat type sections for DWARF v4.
3033 Merge from dwarf4 branch.
3034
b3edb377 3035 * dwarf2out.c (DWARF_TYPE_SIGNATURE_SIZE): New constant.
3036 (dw_die_ref): Define vector type.
3037 (enum dw_val_class): Add dw_val_class_data8.
3038 (struct dw_val_struct): Add v.val_data8.
3039 (comdat_type_node_ref): New type.
3040 (struct die_struct): Move die_symbol into a union; add new field
3041 die_type_node. Change all uses.
3042 (comdat_type_node): New type.
3043 (skeleton_chain_node): New type.
3044 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): New constant.
3045 (comdat_type_list): New variable.
3046 (dwarf_tag_name): Add DW_TAG_type_unit.
3047 (dwarf_attr_name): Add DW_AT_signature.
3048 (add_AT_data8): New function.
3049 (replace_child): New function.
3050 (move_all_children): New function.
3051 (print_signature): New function.
3052 (print_die): Print signature information; add dw_val_class_data8.
3053 (attr_checksum): Support dw_val_class_data8.
fe52088f 3054 (CHECKSUM_STRING): Redefine for DWARF-4 to include trailing NULL byte.
b3edb377 3055 (CHECKSUM_SLEB128, CHECKSUM_ULEB128): New macros.
3056 (checksum_sleb128, checksum_uleb128): New functions.
3057 (checksum_die_context): New function.
3058 (loc_checksum_ordered): New function.
3059 (attr_checksum_ordered): New function.
3060 (struct checksum_attributes): New structure.
3061 (collect_checksum_attributes): New function.
3062 (die_checksum_ordered): New function.
3063 (generate_type_signature): New function.
3064 (same_dw_val_p): Add dw_val_class_data8.
3065 (is_symbol_die): Use new is_declaration_die function.
3066 (is_declaration_die): New function.
3067 (should_move_die_to_comdat): New function.
3068 (clone_die): New function.
3069 (clone_tree): New function.
3070 (clone_as_declaration): New function.
3071 (copy_declaration_context): New function.
3072 (generate_skeleton_ancestor_tree): New function.
3073 (generate_skeleton_bottom_up): New function.
3074 (generate_skeleton): New function.
3075 (remove_child_or_replace_with_skeleton): New function.
3076 (break_out_comdat_types): New function.
3077 (struct decl_table_entry): New type.
3078 (htab_decl_hash): New function.
3079 (htab_decl_eq): New function.
3080 (htab_decl_del): New function.
3081 (copy_ancestor_tree): New function.
3082 (copy_decls_walk): New function.
3083 (copy_decls_for_unworthy_types): New function.
3084 (build_abbrev_table): Don't assert on missing die_symbol when doing
3085 comdat type sections.
fe52088f 3086 (size_of_die): Use DW_FORM_sig8 for external references. Add
b3edb377 3087 dw_val_class_data8.
3088 (unmark_dies): Don't assert for unmarked dies when doing comdat
3089 type sections.
3090 (value_format): Support DW_FORM_sig8 and dw_val_class_data8.
3091 (output_signature): New function.
3092 (output_die): Likewise.
3093 (output_compilation_unit_header): Mark output as DWARF version 3
3094 even if generating DWARF 4.
3095 (output_comdat_type_unit): New function.
3096 (output_line_info): Mark output as DWARF version 3 even if generating
3097 DWARF 4.
3098 (dwarf2out_start_source_file): Don't do eliminate_dwarf2_dups with
3099 DWARF-4.
3100 (dwarf2out_end_source_file): Likewise.
3101 (prune_unused_types_walk_attribs): Don't follow references into
3102 comdat type sections.
3103 (prune_unused_types_mark): When generating type units, do not mark
3104 children of non-defining declarations of types; do mark children of
3105 type entries.
3106 (prune_unused_types): Process comdat type sections.
3107 (htab_ct_hash): New function.
3108 (htab_ct_eq): New function.
3109 (dwarf2out_finish): Move types to comdat sections when using DWARF-4.
3110 Add a pointer to the line table from type unit entries so
3111 DW_AT_decl_file has meaning.
3112 * varasm.c (default_elf_asm_named_section): Use identifier name as
3113 comdat key instead of lang hook.
3114
35ab2622 31152009-10-02 Neil Vachharajani <nvachhar@google.com>
3116
fe52088f 3117 * gcov-io.c (gcov_open): Open files read-only when MODE < 0.
35ab2622 3118
e7911ef0 31192009-10-02 Uros Bizjak <ubizjak@gmail.com>
3120
bf30d630 3121 * config/i386/i386.md (SWIM248): New mode iterator.
3122 (divmod<mode>4) Macroize expander from divmoddi4, divmodsi4 and
3123 divmodhi4 patterns using SWIM248 macro.
e7911ef0 3124 (*divmod<mode>4): Macroize insn_and_split pattern from
3125 *divmoddi4_cltd_rex64, *divmodsi4_cltd and divmodhi4 insn patterns
bf30d630 3126 and their corresponding splitters usign SWIM248 macro. Split SImode
e7911ef0 3127 insn to generate cltd and DImode insn to generate cqto instead of
3128 move+shift when optimizing for size or TARGET_USE_CLTD is in effect.
3129 (*divmoddi4_nocltd_rex64, *divmodsi4_nocltd): Remove insn patterns.
3130 (*divmod<mode>4_noext): Macroize insn from *divmoddi_noext_rex64 and
bf30d630 3131 *divmodsi_noext patterns using SWIM248 macro.
e7911ef0 3132 (udivmod<mode>4): Macroize expander from udivmoddi4, udivmodsi4 and
bf30d630 3133 udivmodhi4 patterns using SWIM248 macro.
e7911ef0 3134 (*udivmod<mode>4): Macroize insn_and_split pattern from
3135 *udivmoddi4, udivmodsi4 and udivmodhi4 patterns and their
bf30d630 3136 corresponding splitters using SWIM248 macro.
e7911ef0 3137 (*udivmod<mode>4_noext): Macroize insn from *udivmoddi4_noext,
bf30d630 3138 *udivmodsi4_noext and *udivmodhi_noext patterns using SWIM248 macro.
e7911ef0 3139
820fcceb 31402009-10-02 Eric Botcazou <ebotcazou@adacore.com>
3141
3142 * stor-layout.c (layout_type) <ARRAY_TYPE>: Make sure that an array
3143 of zero-sized element is zero-sized regardless of its extent.
3144
0f89d483 31452009-10-02 Jakub Jelinek <jakub@redhat.com>
3146
033a2356 3147 PR debug/40521
3148 * configure.ac (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): New test.
3149 * configure: Regenerated.
3150 * config.in: Regenerated.
3151 * dwarf2out.c (dwarf2out_do_cfi_asm): Return false if
3152 !HAVE_GAS_CFI_SECTIONS_DIRECTIVE and not emitting .eh_frame.
3153 (dwarf2out_init): If HAVE_GAS_CFI_SECTIONS_DIRECTIVE and
3154 not emitting .eh_frame, emit .cfi_sections .debug_frame
3155 directive.
3156
0f89d483 3157 PR debug/41404
3158 PR debug/41353
3159 * cfgexpand.c (expand_debug_expr) <case STRING_CST>: Don't create
fe52088f 3160 CONST_STRING if STRING_CST contains embedded '\0's or doesn't end
3161 with '\0'.
0f89d483 3162 (expand_debug_expr) <case VAR_DECL>: For TREE_STATIC !DECL_EXTERNAL
3163 vars use DECL_RTL with resetting it back to NULL afterwards.
3164 * dwarf2out.c (same_dw_val_p): For dw_val_class_addr compare with
3165 rtx_equal_p instead of asserting it is a SYMBOL_REF.
3166 (value_format): For dw_val_class_addr only use DW_FORM_addr if
3167 the attribute type allows it, otherwise use DW_FORM_dataN.
3168 (mem_loc_descriptor): Handle CONST_STRING.
3169 (add_const_value_attribute): Handle CONST_STRING using add_AT_addr.
3170 Handle MEM with CONST_STRING address using add_AT_string.
3171 (rtl_for_decl_init): Return MEM with CONST_STRING address instead of
3172 CONST_STRING for const arrays initialized with a string literal.
3173 (resolve_one_addr, resolve_addr_in_expr, resolve_addr): New functions.
3174 (dwarf2out_finish): Call resolve_addr.
3175
52d00314 31762009-10-02 Andreas Schwab <schwab@linux-m68k.org>
3177 Maxim Kuvyrkov <maxim@codesourcery.com>
e7911ef0 3178
52d00314 3179 * config/m68k/lb1sf68.asm (PICCALL): Use variable sized branch.
3180
8d8c3735 31812009-10-02 Nick Clifton <nickc@redhat.com>
3182
3183 * config/mn10300/mn10300.h (USER_LABEL_PREFIX): Define.
3184 (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
3185
a1e88032 31862009-10-01 Jan Hubicka <jh@suse.cz>
3187
3188 * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
3189 (cgraph_create_virtual_clone): Just pass redirect_callers
3190 around.
3191 * cgraph.h (cgraph_clone_node): Update prototype.
3192 * ipa-pure-const.c (self_recursive_p): New function.
3193 (propagate): Use it.
3194 * ipa-inline.c (cgraph_clone_inlined_nodes,
3195 cgraph_decide_recursive_inlining): Update.
3196
bb6e212a 31972009-10-01 David Daney <ddaney@caviumnetworks.com>
3198
3199 * gcc/config/mips/mips.c (mips_process_sync_loop) Emit syncw
3200 instructions for TARGET_OCTEON.
3201
3683b7b4 32022009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3203
3204 * config/arm/arm.c (arm_override_options): Turn off
3205 flag_dwarf2_cfi_asm for AAPCS variants.
3206
b0fb674b 32072009-10-01 Martin Jambor <mjambor@suse.cz>
3208
3209 PR middle-end/12392
3210 * tree-sra.c (convert_callers): Do not call
3211 compute_inline_parameters on one caller more than once.
3212
80f96752 32132009-10-01 Nick Clifton <nickc@redhat.com>
3214
3215 * config/vax/netbsd-elf.h (NETBSD_CC1_AND_CC1PLUS_SPEC): Define as
3216 an empty string if not already defined.
3217
0eb0a5fc 32182009-10-01 Martin Jambor <mjambor@suse.cz>
3219
3220 PR bootstrap/41395
3221 * tree-sra.c (is_va_list_type): New function.
3222 (find_var_candidates): Call is_va_list_type.
3223 (find_param_candidates): Check that the type or the type pointed
3224 to are not va_list types.
3225
7be84b27 32262009-10-01 Martin Jambor <mjambor@suse.cz>
3227
3228 PR c++/41503
3229 * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
3230 DECL_ARTIFICIAL (param_decl) is true.
e7911ef0 3231
17814aca 32322009-09-30 Gabriel Dos Reis <gdr@cs.tamu.edu>
3233
3234 * tree.h (tree_decl_common::lang_flag_8): New.
3235 * c-common.c (c_common_reswords): Include "constexpr" as C++0x
e7911ef0 3236 keyword.
17814aca 3237 * c-common.h (RID_CONSTEXPR): New.
3238
bd746187 32392009-09-30 Uros Bizjak <ubizjak@gmail.com>
3240
3241 * config/alpha/alpha.c (alpha_gimplify_va_arg_1):
3242 Use ref-all pointers.
3243 (alpha_gimplify_va_arg): Ditto.
3244
47c3d424 32452009-09-30 Jakub Jelinek <jakub@redhat.com>
3246
3247 PR target/41279
3248 * cfgloopanal.c (num_loop_insns): Don't increment ninsns for each bb
3249 before insn counting loop now that BB_END (bb) is counted. Ensure
3250 the return value isn't zero.
3251
6f88e480 32522009-09-30 Nick Clifton <nickc@redhat.com>
3253
3254 * config.gcc (sh-symbianelf): Replace definition of extra_objs
3255 with separate definitions of c_target_objs and cxx_target_objs.
3256 * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o
3257 and symbian-base.o.
3258 * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use
3259 sh_symbian_import_export_class.
3260 * config/sh/sh-protos.h: Fix names of exported symbian functions.
3261 * config/sh/symbian.c: Delete, moving code into...
3262 * config/sh/symbian-base.c: ... here
3263 * config/sh/symbian-c.c: ... and here
3264 * config/sh/symbian-cxx.c: ... and here.
3265
beea5963 32662009-09-30 Uros Bizjak <ubizjak@gmail.com>
3267
3268 PR target/22093
3269 * config/alpha/alpha.md (unaligned_storehi_be): Force operand
3270 of plus RTX into register.
3271
1b3b5237 32722009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3273
3274 * doc/install.texi: Linguistic and markup fixes.
3275 (Configuration) <--disable-cpp>: Remove description.
3276 <--enable-maintainer-mode>: Autotools files are affected, too.
3277 <--with-sysroot>: Improve description.
3278 (Building): Bump required GNU make version.
3279
2f212aae 32802009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
3281
3282 * config.gcc (i[34567]86-*-*): Include fma4intrin.h.
3283 (x86_64-*-*): Ditto.
bd746187 3284
2f212aae 3285 * config/i386/fma4intrin.h: New file, provide common x86 compiler
3286 intrinisics for FMA4.
3287 * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit.
3288 * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a.
3289 Add FMA4 check and fma4intrin.h.
3290 * config/i386/i386-c.c(ix86_target_macros_internal): Check
bd746187 3291 ISA_FLAG for FMA4.
2f212aae 3292 * config/i386/i386.h(TARGET_FMA4): New macro for FMA4.
3293 * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC
3294 constant for FMA4 support.
3295 (UNSPEC_FMA4_FMADDSUB): Ditto.
3296 (UNSPEC_FMA4_FMSUBADD): Ditto.
3297 * config/i386/i386.opt (-mfma4): New switch for FMA4 support.
bd746187 3298 * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration.
2f212aae 3299 (ix86_expand_fma4_multiple_memory): Ditto.
3300 * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New.
bd746187 3301 (OPTION_MASK_ISA_FMA4_UNSET): New.
3302 (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4.
3303 (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4.
2f212aae 3304 (ix86_handle_option): Handle -mfma4.
3305 (isa_opts): Handle -mfma4.
3306 (enum pta_flags): Add PTA_FMA4.
bd746187 3307 (override_options): Add FMA4 support.
2f212aae 3308 (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic.
3309 (IX86_BUILTIN_VFMADDSD): Ditto.
3310 (IX86_BUILTIN_VFMADDPS): Ditto.
3311 (IX86_BUILTIN_VFMADDPD): Ditto.
3312 (IX86_BUILTIN_VFMSUBSS): Ditto.
3313 (IX86_BUILTIN_VFMSUBSD): Ditto.
3314 (IX86_BUILTIN_VFMSUBPS): Ditto.
3315 (IX86_BUILTIN_VFMSUBPD): Ditto.
3316 (IX86_BUILTIN_VFMADDSUBPS): Ditto.
3317 (IX86_BUILTIN_VFMADDSUBPD): Ditto.
3318 (IX86_BUILTIN_VFMSUBADDPS): Ditto.
3319 (IX86_BUILTIN_VFMSUBADDPD): Ditto.
3320 (IX86_BUILTIN_VFNMADDSS): Ditto.
3321 (IX86_BUILTIN_VFNMADDSD): Ditto.
3322 (IX86_BUILTIN_VFNMADDPS): Ditto.
3323 (IX86_BUILTIN_VFNMADDPD): Ditto.
3324 (IX86_BUILTIN_VFNMSUBSS): Ditto.
3325 (IX86_BUILTIN_VFNMSUBSD): Ditto.
3326 (IX86_BUILTIN_VFNMSUBPS): Ditto.
3327 (IX86_BUILTIN_VFNMSUBPD): Ditto.
3328 (IX86_BUILTIN_VFMADDPS256): Ditto.
3329 (IX86_BUILTIN_VFMADDPD256): Ditto.
3330 (IX86_BUILTIN_VFMSUBPS256): Ditto.
3331 (IX86_BUILTIN_VFMSUBPD256): Ditto.
3332 (IX86_BUILTIN_VFMADDSUBPS256): Ditto.
3333 (IX86_BUILTIN_VFMADDSUBPD256): Ditto.
3334 (IX86_BUILTIN_VFMSUBADDPS256): Ditto.
3335 (IX86_BUILTIN_VFMSUBADDPD256): Ditto.
3336 (IX86_BUILTIN_VFNMADDPS256): Ditto.
3337 (IX86_BUILTIN_VFNMADDPD256): Ditto.
3338 (IX86_BUILTIN_VFNMSUBPS256): Ditto.
3339 (IX86_BUILTIN_VFNMSUBPD256): Ditto.
3340 (enum multi_arg_type): New enum for describing the various FMA4
3341 intrinsic argument types.
3342 (bdesc_multi_arg): New table for FMA4 intrinsics.
3343 (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support.
3344 (ix86_expand_multi_arg_builtin): New function for creating FMA4
3345 intrinsics.
3346 (ix86_expand_builtin): Add FMA4 intrinsic support.
3347 (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4
3348 operand instructions.
3349 (ix86_expand_fma4_multiple_memory): New function to split the
3350 second memory reference from FMA4 instructions.
3351 * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4.
3352 (ssemodesuffixf2s): Ditto.
3353 (fma4_fmadd<mode>4): Add FMA4 floating point multiply/add
3354 instructions.
3355 (fma4_fmsub<mode>4): Ditto.
3356 (fma4_fnmadd<mode>4): Ditto.
3357 (fma4_fnmsub<mode>4): Ditto.
3358 (fma4_vmfmadd<mode>4): Ditto.
3359 (fma4_vmfmsub<mode>4): Ditto.
3360 (fma4_vmfnmadd<mode>4): Ditto.
3361 (fma4_vmfnmsub<mode>4): Ditto.
3362 (fma4_fmadd<mode>4256): Ditto.
3363 (fma4_fmsub<mode>4256): Ditto.
3364 (fma4_fnmadd<mode>4256): Ditto.
3365 (fma4_fnmsub<mode>4256): Ditto.
3366 (fma4_fmaddsubv8sf4): Ditto.
3367 (fma4_fmaddsubv4sf4): Ditto.
3368 (fma4_fmaddsubv4df4): Ditto.
3369 (fma4_fmaddsubv2df4): Ditto.
3370 (fma4_fmsubaddv8sf4): Ditto.
3371 (fma4_fmsubaddv4sf4): Ditto.
3372 (fma4_fmsubaddv4df4): Ditto.
3373 (fma4_fmsubaddv2df4): Ditto.
3374 (fma4i_fmadd<mode>4): Add FMA4 floating point multiply/add
3375 instructions for intrinsics.
3376 (fma4i_fmsub<mode>4): Ditto.
3377 (fma4i_fnmadd<mode>4): Ditto.
3378 (fma4i_fnmsub<mode>4): Ditto.
3379 (fma4i_vmfmadd<mode>4): Ditto.
3380 (fma4i_vmfmsub<mode>4): Ditto.
3381 (fma4i_vmfnmadd<mode>4): Ditto.
3382 (fma4i_vmfnmsub<mode>4): Ditto.
3383 (fma4i_fmadd<mode>4256): Ditto.
3384 (fma4i_fmsub<mode>4256): Ditto.
3385 (fma4i_fnmadd<mode>4256): Ditto.
3386 (fma4i_fnmsub<mode>4256): Ditto.
3387 (fma4i_fmaddsubv8sf4): Ditto.
3388 (fma4i_fmaddsubv4sf4): Ditto.
3389 (fma4i_fmaddsubv4df4): Ditto.
3390 (fma4i_fmaddsubv2df4): Ditto.
3391 (fma4i_fmsubaddv8sf4): Ditto.
3392 (fma4i_fmsubaddv4sf4): Ditto.
3393 (fma4i_fmsubaddv4df4): Ditto.
3394 (fma4i_fmsubaddv2df4): Ditto.
3395
3396 * doc/invoke.texi (-mfma4): Add documentation.
3397 * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics.
3398
e9d5f86f 33992009-09-29 Richard Henderson <rth@redhat.com>
3400
3401 * tree-eh.c (unsplit_eh): Do not unsplit if there's already
3402 an edge to the new destination block.
3403
450040e5 34042009-09-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3405
3406 PR target/41393
3407 * pa.c (hppa_profile_hook): Use
3408 make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
3409
81ef4261 34102009-09-29 Steve Ellcey <sje@cup.hp.com>
3411 Alexander Monakov <amonakov@ispras.ru>
3412
bd746187 3413 PR target/41365
81ef4261 3414 * config/ia64/predicates.md (not_postinc_destination_operand): New.
3415 (not_postinc_memory_operand): New.
3416 (not_postinc_move_operand): New.
3417 * config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
3418 (*cmovsi_internal): Ditto.
3419
09fdf2a9 34202009-09-29 Pat Haugen <pthaugen@us.ibm.com>
3421
3422 * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
3423 restrict issue_rate in first pass when scheduling for register
3424 pressure.
3425
ae8a3b92 34262009-09-29 Basile Starynkevitch <basile@starynkevitch.net>
871e07a1 3427 Rafael Avila de Espindola <espindola@google.com>
ae8a3b92 3428
3429 * gengtype.c (plugin_output): New.
3430 (get_output_file_with_visibility): Return plugin_output for plugins.
3431 (main): Parse and use the -P option.
3432 * gty.texi: Update the command line format.
3433
71846571 34342009-09-29 Jakub Jelinek <jakub@redhat.com>
3435
3436 PR debug/41438
3437 * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
3438 functions.
3439 (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
3440 out if !const_ok_for_output.
3441
3442 PR debug/41474
3443 * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
3444 case VAR_LOCATION>: Remove gcc_unreachable ().
3445
b9233e7a 34462009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
3447
3448 * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
bd746187 3449 (x86_64-*-*): Ditto.
b9233e7a 3450 * config/i386/smmintrin.h: Move instructions in mmintrin-common.h
3451 back to smmintrin.h.
d603963f 3452 * config/i386/cpuid.h (bit_SSE5): Remove SSE5 bit.
b9233e7a 3453 * config/i386/x86intrin.h: Remove SSE5.
bd746187 3454 * config/i386/mmintrin-common.h: Delete file.
3455 * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins.
b9233e7a 3456
3804203d 34572009-09-29 Richard Guenther <rguenther@suse.de>
3458
3459 * alias.c (ao_ref_from_mem): Properly deal with off decl accesses
3460 resulting from stack temporaries on STRICT_ALIGNMENT targets.
3461
14a1521c 34622009-09-29 Nick Clifton <nickc@redhat.com>
3463
3464 * function.c (current_function_name): If there is no current
3465 function just return "<none>".
3466
3efe62a1 34672009-09-28 Sriraman Tallam <tmsriram@google.com>
3468
bd746187 3469 * tree-pass.h (register_pass_info): New structure.
3efe62a1 3470 (pass_positioning_ops): Move enum from gcc-plugin.h.
3471 (register_pass): New function.
3472 * gcc-plugin.h (plugin_pass): Delete structure.
3473 (pass_positioning_ops): Delete enum.
3474 * plugin.c (regsiter_pass): Delete function.
3475 (position_pass): Delete function.
3476 (added_pass_nodes): Delete variable.
3477 (prev_added_pass_nodes): Delete variable.
3478 (pass_list_node): Delete structure.
3479 * passes.c (make_pass_instance): New function.
3480 (next_pass_1): Change to call make_pass_instance.
3481 (pass_list_node): Move structure from gcc-plugin.h.
3482 (added_pass_nodes): Move variable from plugin.c.
3483 (prev_added_pass_nodes): Move variable from plugin.c.
3484 (position_pass): New function.
3485 (register_pass): New function.
3486
94e08e50 34872009-09-28 Easwaran Raman <eraman@google.com>
3488
3489 * ifcvt.c (noce_try_abs): Recognize pattern and call
3490 expand_one_cmpl_abs_nojump.
3491 * optabs.c (expand_one_cmpl_abs_nojump): New function.
3492 * optabs.h (expand_one_cmpl_abs_nojump): Declare.
3493
a2a58dc4 34942009-09-28 Ian Lance Taylor <iant@google.com>
3495
3496 PR middle-end/40500
3497 * c-opts.c (c_common_handle_option): Don't set
3498 warn_jump_misses_init for -Wall.
3499 * doc/invoke.texi (Warning Options): Update documentation.
3500
dcb02e49 35012009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3502
3503 * Makefile.in ($(out_object_file)): Depend on
3504 gt-$(basename $(notdir $(out_file))).h.
3505
471eff36 35062009-09-28 Richard Henderson <rth@redhat.com>
3507
3508 * except.h (struct eh_region_d): Add use_cxa_end_cleanup.
3509 * except.c (gen_eh_region): Set it.
3510 (duplicate_eh_regions_1): Copy it.
3511 * tree-eh.c (lower_resx): Use it to determine which function
3512 to call to resume.
3513
3514 * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
3515 * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
3516 * builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
3517 * tree.c (build_common_builtin_nodes): Remove parameter. Build
3518 BUILT_IN_CXA_END_CLEANUP if necessary.
3519
3520 * c-common.c (c_define_builtins): Update call to
3521 build_common_builtin_nodes.
3522
fcc31b99 35232009-09-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
3524
3525 * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
3526
a65c4d64 35272009-09-28 Michael Matz <matz@suse.de>
3528
3529 * builtins.c (interclass_mathfn_icode): New helper.
3530 (expand_builtin_interclass_mathfn): Use it here, and split folding
3531 into ...
3532 (fold_builtin_interclass_mathfn): ... this new folder.
3533 (build_call_nofold_loc): New static helper.
3534 (build_call_nofold): New wrapper macro for above.
3535 (expand_builtin_int_roundingfn): Use it instead of build_call_expr.
3536 (expand_builtin_pow): Ditto.
3537 (expand_builtin_memset_args): Ditto.
3538 (expand_builtin_printf): Ditto.
3539 (expand_builtin_fprintf): Ditto.
3540 (expand_builtin_sprintf): Ditto.
3541 (expand_builtin_memory_chk): Ditto.
3542 (expand_builtin_mempcpy_args): Ditto and don't call folders.
3543 (expand_builtin_stpcpy): Ditto.
3544 (expand_builtin_strcmp): Ditto.
3545 (expand_builtin_strncmp): Ditto.
3546 (expand_builtin_strcpy): Remove FNDECL and MODE arguments.
3547 (expand_builtin_strcpy_args): Don't call folders.
3548 (expand_builtin_memcmp): Ditto.
3549 (expand_builtin_strncpy): Ditto, and use target.
3550 (expand_builtin_memcpy): Ditto.
3551 (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
3552 expand_builtin_strpbrk, expand_builtin_memmove,
3553 expand_builtin_memmove_args, expand_builtin_bcopy,
3554 expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
3555 expand_builtin_strspn, expand_builtin_strcspn,
3556 expand_builtin_fputs): Remove these.
3557 (expand_builtin): Don't call the above, change calls to other
3558 expanders that changed prototype.
3559 (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
3560 (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
3561 fold_builtin_interclass_mathfn.
3562 (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
3563 (fold_builtin_strcat): Add folding split from expand_builtin_strcat.
3564
3565 * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
3566 * passes.c (init_optimization_passes): Move pass_fold_builtins
3567 after last phiopt pass.
3568 * tree-inline.c (fold_marked_statements): When folding builtins
3569 iterate over all instruction potentially generated.
3570 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
3571 earlier.
3572 (fold_gimple_call): Use it to always fold calls (into potentially
3573 multiple instructions).
3574 * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
3575 calls into zero at this time.
bd746187 3576 * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple
a65c4d64 3577 statements generated by builtin folding.
3578
f5417e32 35792009-09-28 Nick Clifton <nickc@redhat.com>
3580
fe52088f 3581 * config/m32r/m32r.c (m32r_is_insn): Return false for debugging insns.
f5417e32 3582
d322121b 35832009-09-28 Duncan Sands <baldrick@free.fr>
86b63696 3584
3585 * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
3586 * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
3587 (register_callback): Dispatch it.
3588 (invoke_plugin_callbacks): Incorporate in sanity check.
3589 * ggc.h (ggc_register_cache_tab): Add declaration.
3590 * ggc-common.c (ggc_register_root_tab): Simplify.
3591 (const_ggc_cache_tab_t): New typedef.
3592 (extra_cache_vec): New vector of dynamically added cache tables.
3593 (ggc_register_cache_tab): New function.
3594 (ggc_scan_cache_tab): New function.
3595 (ggc_mark_roots): Simplify dynamic roots. Handle dynamic caches.
3596 * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
3597
6ea999da 35982009-09-27 Richard Henderson <rth@redhat.com>
3599
3600 * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
3601 which we remove __builtin_stack_restore.
3602
e54e3d9f 36032009-09-27 Bernd Schmidt <bernd.schmidt@analog.com>
3604
3605 * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
3606 to test for GRD_INVARIANT.
3607 (simple_rhs_p): Anything that's function_invariant_p is fine.
3608
f15c9485 36092009-09-27 Rafael Avila de Espindola <espindola@google.com>
3610
3611 * gengtype.c (main): Use plunge_files instead of plugin_output.
3612
67b6ca97 36132009-09-27 Basile Starynkevitch <basile@starynkevitch.net>
3614 Rafael Avila de Espindola <espindola@google.com>
3615
3616 * gengtype.c (write_root, write_roots): Add a emit_pch argument.
3617 Don't print pch related info if it is false.
3618 (main): Don't print pch info in plugin mode.
3619
dc55349c 36202009-09-27 Eric Botcazou <ebotcazou@adacore.com>
a6b4313a 3621
dc55349c 3622 * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
3623 with dw_val_class_const_double.
3624 (struct dw_val_struct): Replace val_long_long with val_double and
3625 adjust for above change.
3626 (output_loc_operands): Likewise.
3627 (add_AT_long_long): Rename into...
3628 (add_AT_double): ...this.
3629 (print_die): Replace dw_val_class_long_long with
3630 dw_val_class_const_double and adjust.
3631 (attr_checksum): Likewise.
3632 (same_dw_val_p): Likewise.
3633 (size_of_die): Likewise.
3634 (value_format): Likewise.
3635 (output_die): Likewise.
3636 (loc_descriptor) <CONST_DOUBLE>: Likewise.
3637 (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
3638 instead of add_AT_long_long.
3639 (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
3640 value with the precision of its type.
3641
36422009-09-27 Andreas Schwab <schwab@linux-m68k.org>
3643
3644 PR c/41476
a6b4313a 3645 * c-typeck.c (build_conditional_expr): Use the readonly and
3646 volatile flags of the operand types, not of the operands itself.
3647
dc55349c 36482009-09-27 Peter O'Gorman <pogma@thewrittenword.com>
06fb2419 3649
fe52088f 3650 * collect2.c (main): Look for -brtl before adding libraries.
06fb2419 3651
dc55349c 36522009-09-27 Jonathan Gray <jsg@openbsd.org>
8e6600a1 3653
3654 * config.gcc: Update OpenBSD targets.
3655 * config/openbsd-stdint.h: New file.
3656 * config/openbsd-libpthread.h: New file.
3657 * config/openbsd.h: Update and break out LIB_SPEC definition.
3658 * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
3659 * config/i386/openbsdelf.h: Correct types.
3660 * config/m68k/openbsd.h: Likewise.
3661 * config/mips/openbsd.h: Likewise.
3662 * config/vax/openbsd.h: Likewise.
3663
d5518ed9 36642009-09-27 Eric Botcazou <ebotcazou@adacore.com>
3665
3666 * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
3667 (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
3668 * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
3669 of the length and zero.
3670
295fba81 36712009-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3672
8984ffef 3673 * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
3674 (FLAGS_H): Add options.h $(REAL_H).
3675 (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
3676 (TREE_VECTORIZER_H): New.
3677 (EBITMAP_H): Renamed from EBIMAP_H.
3678 (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
3679 (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
3680 (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
3681 (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
3682 (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
3683 (graphite-clast-to-gimple.o, graphite-dependences.o)
3684 (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
3685 (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
3686 (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
3687 (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
3688 (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
3689 (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
3690 (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
3691 (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
3692 (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
3693 updated and fixed as per above changes and per
3694 check_makefile_deps.sh output.
3695
295fba81 3696 PR bootstrap/40928
3697 * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
3698 * configure: Regenerate.
3699
0f3a3df5 37002009-09-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3701
3702 * doc/install.texi: Update minimum MPC version to 0.7.
3703
f14a76b2 37042009-09-26 Gerald Pfeifer <gerald@pfeifer.com>
3705
3706 * doc/install.texi (Binaries): Remove reference to the binary
3707 distribution CD-ROM from the FSF.
3708
f96f3894 37092009-09-26 Michael Matz <matz@suse.de>
3710
3711 PR lto/40758
3712 PR middle-end/41470
3713 * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
3714 that are mentioned in the body.
3715
e08ff65a 37162009-09-26 Michael Matz <matz@suse.de>
3717
3718 PR tree-optimization/41454
3719 * tree-ssa-dom (stmts_to_rescan): Remove variable.
3720 (tree_ssa_dominator_optimize): Don't allocate and free it.
3721 (dom_opt_leave_block): Don't iterate over it.
3722 (eliminate_redundant_computations): Don't return a value.
3723 (cprop_operand, cprop_into_stmt): Ditto.
3724 (optimize_stmt): Don't defer updating stmts.
3725
86cbedda 37262009-09-25 Dodji Seketeli <dodji@redhat.com>
395fc2bb 3727
86cbedda 3728 * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
3729 generic_parameter_die, template_parameter_pack_die,
fe52088f 3730 gen_formal_parameter_die, gen_subprogram_die): Adjust after
3731 renaming DW_TAG_formal_parameter_pack and
3732 DW_TAG_template_parameter_pack into DW_TAG_GNU_formal_parameter_pack
3733 and DW_TAG_GNU_template_parameter_pack.
395fc2bb 3734
105c31a7 37352009-09-25 Anatoly Sokolov <aesok@post.ru>
3736
3737 * config/v850/v850.h (FUNCTION_VALUE): Remove.
3738 * config/v850/v850.c (v850_function_value): New function.
3739 (TARGET_FUNCTION_VALUE): Define.
3740
c793fff7 37412009-09-25 Jakub Jelinek <jakub@redhat.com>
3742
732affbe 3743 * tree-vect-stmts.c (vectorizable_call): Call
3744 mark_symbols_for_renaming after vect_finish_stmt_generation.
3745
c793fff7 3746 * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
3747 to loc_descriptor_from_tree.
3748 (add_location_or_const_value_attribute): Pass 0 instead of 2
3749 for decl_by_reference_p decls.
3750
65366b4f 37512009-09-25 Richard Guenther <rguenther@suse.de>
3752
3753 PR middle-end/41463
3754 * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
3755 arrays again.
3756
6f1ba003 37572009-09-25 Ben Elliston <bje@au.ibm.com>
3758
3759 * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma
3760 after `power7'.
3761
da31d493 37622009-09-25 Alan Modra <amodra@bigpond.net.au>
3763
3764 * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
3765 form of instruction.
3766
03a7d9e9 37672009-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3768
3769 PR middle-end/41435
3770 * fold-const.c (const_binop): Handle complex int division.
3771 * tree-complex.c (expand_complex_div_straight,
3772 expand_complex_div_wide): Update comments.
3773
f8e7cebd 37742009-09-24 DJ Delorie <dj@redhat.com>
3775
3776 PR target/41456
3777 * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13.
3778 (reg_class): Likewise.
3779 (REG_CLASS_NAMES): Likewise.
3780 * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
fe52088f 3781 (m32c_override_options): Disable -fivopts for M32C.
f8e7cebd 3782
5dd60a23 37832009-09-24 Michael Meissner <meissner@linux.vnet.ibm.com>
3784
3785 * config/rs6000/predicates.md (indexed_or_indirect_operand):
3786 Delete VSX load/store with update support.
3787 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto.
3788 * config/rs6000/vsx.md (vsx_mov<mode>): Ditto.
3789 (vsx_movti): Ditto.
3790 (VSX_U): Delete.
3791 (VSbit): Ditto.
3792 (VStype_load_update): Ditto.
3793 (VStype_store_update): Ditto.
3794 (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto.
3795 (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto.
3796
3797 * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX
3798 load/store with update builtins.
3799
f0aa9efd 38002009-09-24 Kai Tietz <kai.tietz@onevision.com>
3801
3802 * libgcc2.c (L_trampoline): Prototype for getpagesize
3803 and mprotect in WINNT case.
3804
20eb4d9a 38052009-09-24 Anatoly Sokolov <aesok@post.ru>
3806
3807 * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro.
3808 * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove.
3809 * config/rs6000/rs6000.c (rs6000_function_value): Make static, add
3810 'outgoing' argument.
3811 (TARGET_FUNCTION_VALUE): Define.
3812
7463d391 38132009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
3814
3815 * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1.
3816
024fa7dd 38172009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
3818
3819 PR bootstrap/41405
a6b4313a 3820 * common.opt: Initialize dwarf_strict to -1.
024fa7dd 3821 * toplev.c (process_options): Catch unset dwarf_strict
3822 and set to 0 for all targets not overriding.
3823 * config/darwin.c (darwin_override_options): Catch unset
3824 dwarf_strict and override to 1.
3825
acf11b62 38262009-09-24 Jeff Law <law@redhat.com>
3827
a6b4313a 3828 * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
acf11b62 3829
2164d9d3 38302009-09-24 Richard Guenther <rguenther@suse.de>
3831
3832 PR tree-optimization/36143
3833 PR tree-optimization/38747
3834 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
3835 create VIEW_CONVERT_EXPRs for TBAA compatible accesses.
3836
ffba43d4 38372009-09-24 Jakub Jelinek <jakub@redhat.com>
3838
3839 PR bootstrap/41457
3840 * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED,
3841 return false instead of gcc_unreachable (). For CONST return the
3842 value returned by recursive call instead of always returning true.
3843 (tree_add_const_value_attribute): Return the value returned by
3844 add_const_value_attribute instead of always returning true if rtl
3845 is non-NULL.
3846
38472009-09-23 Justin Seyster <jrseys@gmail.com>
51995f71 3848
3849 * Makefile.in (PLUGIN_HEADERS): Include real.h.
3850
3bb63aeb 38512009-09-24 Jakub Jelinek <jakub@redhat.com>
3852
3853 * cgraphunit.c (cgraph_lower_function): Revert last change.
3854 * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
3855 instead of DECL_NO_STATIC_CHAIN.
3856 * tree-cfg.c (verify_gimple_call): Likewise.
3857 * tree-nested.c (get_chain_decl, get_chain_field,
3858 convert_tramp_reference_op, convert_gimple_call): Likewise.
3859 (convert_all_function_calls): Likewise. Always set or clear
3860 DECL_STATIC_CHAIN initially, for !n->outer clear it.
3861 (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
3862 * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
3863 if nested.
3864 * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
3865 DECL_NO_STATIC_CHAIN.
3866 * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
3867 instead of DECL_NO_STATIC_CHAIN.
3868 (ix86_function_regparm, find_drap_reg): Likewise. Don't test
3869 decl_function_context.
3870 * varasm.c (initializer_constant_valid_p): Likewise.
3871 * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
3872 (DECL_STATIC_CHAIN): ... this.
3873 * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
3874 instead of DECL_NO_STATIC_CHAIN.
3875
c5b683ff 38762009-09-23 Basile Starynkevitch <basile@starynkevitch.net>
51995f71 3877 Rafael Avila de Espindola <espindola@google.com>
c5b683ff 3878
3879 * gengtype.c (nb_plugin_files): Make it unsigned to match
3880 num_gt_files. Adjust other variables to avoid warnings.
3881 (main): Allocate an all zero lang_bitmap before each plugin file name
3882 to match regular file names.
3883
974b8df6 38842009-09-23 Richard Henderson <rth@redhat.com>
3885
3886 * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
3887 (TARGET_STATIC_CHAIN): Mention that this hook must be used for
3888 static chain passed in memory.
3889 * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison.
3890 * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN,
3891 STATIC_CHAIN_INCOMING. Issue a sorry if there's no
3892 STATIC_CHAIN_REGNUM defined.
3893
3894 * config/picochip/picochip-protos.h: s/class/klass/.
3895 * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New.
3896 (picochip_static_chain): New.
3897 * config/picochip/picochip.h (STATIC_CHAIN): Remove.
3898 (STATIC_CHAIN_INCOMING): Remove.
3899
3900 * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New.
3901 (xtensa_static_chain): New.
fe52088f 3902 * config/xtensa/xtensa.h (STATIC_CHAIN): Remove.
3903 (STATIC_CHAIN_INCOMING): Remove.
974b8df6 3904
cb0b8817 39052009-09-23 Anatoly Sokolov <aesok@post.ru>
3906
3907 * config/pa/pa.h (FUNCTION_VALUE): Remove macro.
3908 * config/pa/pa-protos.h (function_value): Remove.
3909 * config/pa/pa.c (pa_function_value): Rename from function_value.
3910 Make static, add 'outgoing' argument.
3911 (TARGET_FUNCTION_VALUE): Define.
3912
568a74a2 39132009-09-23 Anatoly Sokolov <aesok@post.ru>
3914
3915 * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
3916 instead of cfun->machine->is_leaf.
3917 * config/avr/avr.h (machine_function): Remove is_leaf field.
3918
2f3163be 39192009-09-23 Jakub Jelinek <jakub@redhat.com>
3920
3921 PR debug/41439
3922 * dwarf2out.c (address_of_int_loc_descriptor): Don't emit
3923 DW_OP_piece after DW_OP_stack_value, adjust size calculations
3924 for it, when DW_OP_stack_value and DW_OP_implicit_value has
3925 the same size, prefer DW_OP_stack_value.
3926 (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref,
3927 loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value.
3928
4c0840d0 39292009-09-23 Alexandre Oliva <aoliva@redhat.com>
3930
3931 PR debug/41353
3932 * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses.
3933
d89c81d6 39342009-09-23 Alexandre Oliva <aoliva@redhat.com>
3935
3936 PR debug/41248
3937 * cfgexpand.c (convert_debug_memory_address): New.
3938 (expand_debug_expr): Convert base address and offset to the same
3939 mode. Use it to convert addresses to other modes. Accept
3940 ptr_mode addresses.
3941
eb241fe9 39422009-09-23 Richard Guenther <rguenther@suse.de>
3943
3944 * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET
3945 produced for bigendian targets with promoted subregs.
3946
b89175b1 39472009-09-23 Richard Guenther <rguenther@suse.de>
3948
3949 * value-prof.c (gimple_ic): Purge old EH edges only after building
3950 the new ones.
3951
fa889fc4 39522009-09-23 Nick Clifton <nickc@redhat.com>
3953
3954 * config/arc/arc.c (arc_trampoline_init): Fix typo.
3955
46f6bec9 39562009-09-23 Jakub Jelinek <jakub@redhat.com>
3957
9cfb9a26 3958 PR bootstrap/41405
3959 * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf.
3960
46f6bec9 3961 PR bootstrap/41436
3962 * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
3963 on non-nested functions.
3964
4dd3321d 39652009-09-23 Jakub Jelinek <jakub@redhat.com>
3966 Jan Hubicka <jh@suse.cz>
3967
3968 * dwarf2out.c (loc_list_plus_const): Only define if
3969 DWARF2_DEBUGGING_INFO.
3970 (address_of_int_loc_descriptor): Likewise.
3971
3972 PR debug/41411
3973 * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
3974
39752009-09-23 Uros Bizjak <ubizjak@gmail.com>
9e072631 3976
3977 PR c/39779
3978 * c-typeck.c (build_binary_op) <short_shift>: Check that integer
3979 constant is more than zero.
3980
21d90048 39812009-09-23 Alan Modra <amodra@bigpond.net.au>
3982
3983 PR target/40473
3984 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
3985 call final to emit non-scheduled prologue, instead insert at entry.
3986
04c51e83 39872009-09-22 Loren J. Rittle <ljrittle@acm.org>
3988 Joseph S. Myers <joseph@codesourcery.com>
3989
3990 * doc/install.texi (*-*-freebsd*): Add proper format codes.
3991
8797d684 39922009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
9e072631 3993 Rafael Avila de Espindola <espindola@google.com>
8797d684 3994
3995 * gengtype.c (is_file_equal): New function.
3996 (close_output_files): Use is_file_equal. Free of->buf.
3997
8603e6a7 39982009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
9e072631 3999 Rafael Avila de Espindola <espindola@google.com>
8603e6a7 4000
4001 * gengtype.c (write_types, write_local): Add the output_header
4002 argument. Update all callers.
4003
5d1e31fa 40042009-09-22 Dodji Seketeli <dodji@redhat.com>
4005
4006 * dwarf2out.c (template_parameter_pack_die,
4007 gen_formal_parameter_pack_die ): New functions.
4008 (make_ith_pack_parameter_name): Remove this function.
4009 (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
4010 DW_TAG_formal_parameter_pack.
4011 (gen_generic_params_dies): Represent each template parameter pack
4012 by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
4013 represented by usual DW_TAG_template_*_parameter DIEs that are
4014 children of the DW_TAG_template_parameter_pack element DIE.
4015 (generic_parameter_die): This doesn't deal with parameter pack
9e072631 4016 names anymore. Don't generate DW_AT_name for some DIEs, e.g. children
4017 of parameter pack DIEs.
5d1e31fa 4018 (gen_formal_parameter_die): Add a flag to not emit DW_AT_name
4019 in certain cases, e.g. for pack elements.
4020 (gen_formal_types_die, gen_decl_die): Adjust usage of
4021 gen_formal_parameter_die.
4022 (gen_subprogram_die): Represent each function parameter pack by a
4023 DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
4024 represented by usual DW_TAG_formal_parameter DIEs that are children
4025 of the DW_TAG_formal_parameter_pack DIE. Remove references to
4026 ____builtin_va_alist decls as no part of the compiler uses those
4027 anymore.
4028 * langhooks.h (struct lang_hooks_for_decls): Add
4029 function_parm_expanded_from_pack_p, get_generic_function_decl
4030 and function_parameter_pack_p hooks. Fix comment for
4031 get_innermost_generic_parms hook.
4032 * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
4033 LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
4034 macros and use them to initialize lang_hook.
4035
c34a0921 40362009-09-22 Richard Henderson <rth@redhat.com>
4037
4038 * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
4039 (TRAMPOLINE_ADJUST_ADDRESS): Poison.
4040 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
4041 on TRAMPOLINE_TEMPLATE.
4042 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
4043 TRAMPOLINE_ADJUST_ADDRESS.
4044 * targhooks.c (default_asm_trampoline_template): Remove.
4045 (default_trampoline_adjust_address): Remove.
4046 (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
4047 * targhooks.h: Update decls.
4048
fa280a58 40492009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
4050
4051 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
4052 * config/i386/cygwin.h (LIBGCJ_SONAME): Define.
4053 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
4054
5a97a04d 40552009-09-22 Alexandre Oliva <aoliva@redhat.com>
4056
4057 PR debug/41295
4058 * reload1.c (reload): Reset debug insns with pseudos without
4059 equivalences.
4060
8e72d11d 40612009-09-22 Janis Johnson <janis187@us.ibm.com>
4062
4063 * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return
4064 unconditional true for decimal float modes.
4065 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto.
4066 * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto.
4067
fb4bac8b 40682009-09-22 Loren J. Rittle <ljrittle@acm.org>
4069
4070 * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
4071 Enable a new case for __FreeBSD__ >= 7.
4072 * crtstuff.c: Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7.
4073 * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP.
4074 * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC
4075 and USE_LD_AS_NEEDED.
4076
6a67b530 4077 * doc/install.texi (*-*-freebsd*): Update target information.
4078
3414a01d 40792009-09-22 Richard Guenther <rguenther@suse.de>
4080
4081 PR middle-end/41395
4082 * tree-dfa.c (get_ref_base_and_extent): Handle trailing
4083 arrays really properly.
4084
82c7907c 40852009-09-22 Richard Henderson <rth@redhat.com>
4086
4087 PR target/41246
4088 * target.h (struct gcc_target): Add asm_out.trampoline_template,
4089 calls.static_chain, calls.trampoline_init,
4090 calls.trampoline_adjust_address.
4091 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4092 (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
4093 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
4094 * builtins.c (expand_builtin_setjmp_receiver): Use
4095 targetm.calls.static_chain; only clobber registers.
4096 (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
4097 set up memory attributes properly for the trampoline block.
4098 (expand_builtin_adjust_trampoline): Use
4099 targetm.calls.trampoline_adjust_address.
4100 * calls.c (prepare_call_address): Add fndecl argument. Use
4101 targetm.calls.static_chain.
4102 * df-scan.c (df_need_static_chain_reg): Remove.
4103 (df_get_entry_block_def_set): Use targetm.calls.static_chain;
4104 consolodate static chain handling.
4105 * doc/tm.texi: Document new hooks.
4106 * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
4107 (init_emit_regs): Don't initialize them.
4108 * expr.h (prepare_call_address): Update decl.
4109 * final.c (profile_function): Use targetm.calls.static_chain.
4110 * function.c (expand_function_start): Likewise.
4111 * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
4112 * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
4113 only clobber registers.
4114 * targhooks.c (default_static_chain): New.
4115 (default_asm_trampoline_template, default_trampoline_init): New.
4116 (default_trampoline_adjust_address): New.
4117 * targhooks.h: Declare them.
4118 * varasm.c (assemble_trampoline_template): Use
4119 targetm.asm_out.trampoline_template. Make the memory block const
4120 and set its size.
4121
9b5e780c 4122 * config/alpha/alpha.c (alpha_trampoline_init): Rename from
4123 alpha_initialize_trampoline. Make static. Merge VMS parameter
4124 differences into the TARGET_ABI_OPEN_VMS code block.
4125 (TARGET_TRAMPOLINE_INIT): New.
4126 * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
4127 (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
4128 * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove.
4129 (INITIALIZE_TRAMPOLINE): Remove.
4130
4131 * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
4132 (TRAMPOLINE_TEMPLATE): Merge with ...
4133 (INITIALIZE_TRAMPOLINE): ... this and move ...
4134 * config/arc/arc.c (arc_trampoline_init): ... here.
7bcbe23a 4135 (TARGET_TRAMPOLINE_INIT): New.
7bcbe23a 4136
74ae09de 4137 * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4138 (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
4139 (arm_asm_trampoline_template): New.
4140 (arm_trampoline_init, arm_trampoline_adjust_address): New.
4141 * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE,
4142 THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
4143 code to arm_asm_trampoline_template.
4144 (TRAMPOLINE_ADJUST_ADDRESS): Move code to
4145 arm_trampoline_adjust_address.
4146 (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
4147 adjust for target hook parameters.
4148
9e072631 4149 * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE):
4150 Remove.
afff7257 4151
eeae9f72 4152 * config/bfin/bfin-protos.h (initialize_trampoline): Remove.
4153 * config/bfin/bfin.c (bfin_asm_trampoline_template): New.
4154 (bfin_trampoline_init): Rename from initialize_trampoline;
4155 make static; update for target hook parameters.
4156 (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
4157 * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to
4158 bfin_asm_trampoline_template.
4159 (INITIALIZE_TRAMPOLINE): Remove.
4160
f6ddc27b 4161 * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
4162 TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template,
4163 cris_trampoline_init): New.
4164 * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to
4165 cris_asm_trampoline_template.
4166 (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init;
4167 adjust for target hook parameters.
4168
7e309725 4169 * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove.
4170
54538b80 4171 * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
4172 TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template,
4173 fr30_trampoline_init): New.
4174 * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to
4175 fr30_asm_trampoline_template.
4176 (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init;
4177 adjust for target hook parameters.
4178
6c8c6667 4179 * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New.
4180 (frv_trampoline_init): Rename from frv_initialize_trampoline;
4181 make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook.
4182 * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove.
4183 * config/frv/frv-protos.h (frv_initialize_trampoline): Remove.
4184
70fe8eb7 4185 * config/h8300/h8300.c (h8300_trampoline_init): New.
4186 (TARGET_TRAMPOLINE_INIT): New.
4187 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code
4188 to h8300_trampoline_init and adjust for hook parameters.
4189
7193d01d 4190 * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove.
4191 * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New.
4192 (ia64_trampoline_init): Rename from ia64_initialize_trampoline;
4193 make static; adjust for hook parameters.
4194 * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove.
4195
d76f0bfc 4196 * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4197 (TARGET_TRAMPOLINE_INIT): New.
4198 (iq2000_asm_trampoline_template, iq2000_trampoline_init): New.
4199 * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to
4200 iq2000_asm_trampoline_template.
4201 (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init.
4202 (TRAMPOLINE_CODE_SIZE): New.
4203 (TRAMPOLINE_SIZE): Use it.
4204 (TRAMPOLINE_ALIGNMENT): Follow Pmode.
4205
557e8bdb 4206 * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove.
4207 * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New.
4208 (m32c_trampoline_init): Rename from m32c_initialize_trampoline;
4209 adjust for hook parameters.
4210 * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove.
4211
06b77609 4212 * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New.
4213 (m32r_trampoline_init): New.
4214 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to
4215 m32r_trampoline_init.
4216
1a32e95e 4217 * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New.
4218 (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline;
4219 make static; update for hook parameters.
4220 * config/m68hc11/m68hc11-protos.h: Update.
4221 * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove.
4222
74e653fe 4223 * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4224 (TARGET_TRAMPOLINE_INIT): New.
4225 (mcore_function_value): Fix typo.
4226 (mcore_asm_trampoline_template, mcore_trampoline_init): New.
a6b4313a 4227 * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
74e653fe 4228 to mcore_asm_trampoline_template.
4229 (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
4230
8786c274 4231 * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove.
4232 * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New.
4233 (mep_trampoline_init): Rename from mep_init_trampoline; make static;
4234 update for hook parameters.
4235 * config/mep/mep-protos.h (mep_init_trampoline): Remove.
4236
433e9b6a 4237 * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
4238 mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
4239 mips_trampoline_init): New.
4240 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to
4241 mips_asm_trampoline_template.
4242 (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init;
4243 update for hook parameters.
4244
604d844a 4245 * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4246 (TARGET_TRAMPOLINE_INIT): New.
4247 (mmix_trampoline_size): Remove.
4248 (mmix_asm_trampoline_template): Rename from mmix_trampoline_template;
4249 make static. Remove out-of-date tetra vs octa comment.
4250 (mmix_trampoline_init): Rename from mmix_initialize_trampoline;
4251 make static; update for hook parameters.
4252 * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove.
4253 (INITIALIZE_TRAMPOLINE): Remove.
4254 (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size.
4255 (TRAMPOLINE_ALIGNMENT): New.
4256 * gcc/config/mmix/mmix-protos.h: Update.
4257
3e16f982 4258 * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
4259 mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
4260 mn10300_trampoline_init): New.
4261 * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to
4262 mn10300_asm_trampoline_template.
4263 (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init.
4264
7b6fcb6f 4265 * config/moxie/moxie.c (moxie_static_chain,
4266 moxie_asm_trampoline_template, moxie_trampoline_init,
4267 TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE,
4268 TARGET_TRAMPOLINE_INIT): New.
4269 * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to
4270 moxie_trampoline_init.
4271 (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template.
4272 (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
4273
623a97bc 4274 * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
4275 pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
4276 pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS,
4277 pa_trampoline_adjust_address): New.
4278 * config/pa/pa.h (TRAMPOLINE_TEMPLATE): Move code to
4279 pa_asm_trampoline_template.
4280 (TRAMPOLINE_ALIGNMENT): New.
4281 (TRAMPOLINE_CODE_SIZE): Move to pa.c.
4282 (INITIALIZE_TRAMPOLINE): Move code to pa_trampoline_init;
4283 adjust for hook parameters.
4284 (TRAMPOLINE_ADJUST_ADDRESS): Move code to pa_trampoline_adjust_address.
4285
77ed7198 4286 * config/pdp11/pdp11.c (pdp11_trampoline_init): New.
4287 (TARGET_TRAMPOLINE_INIT): New.
4288 * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Remove.
4289 (INITIALIZE_TRAMPOLINE): Move code to pdp11_trampoline_init.
4290
a907287d 4291 * config/picochip/picochip.h (INITIALIZE_TRAMPOLINE): Remove.
4292
38e7e58d 4293 * config/rs6000/rs6000-protos.h (rs6000_initialize_trampoline): Remove.
4294 * config/rs6000/rs6000.c (TARGET_TRAMPOLINE_INIT): New.
4295 (rs6000_trampoline_init): Rename from rs6000_initialize_trampoline;
4296 make static; adjust parameters for the hook.
4297 * config/rs6000/rs6000.h (INITIALIZE_TRAMPOLINE): Remove.
4298
4d946732 4299 * config/s390/s390.c (s390_asm_trampoline_template): Rename from
4300 s390_trampoline_template; make static.
4301 (s390_trampoline_init): Rename from s390_initialize_trampoline;
4302 make static; adjust for target hook.
4303 (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
4304 * config/s390/s390-protos.h: Remove trampoline decls.
4305 * config/s390/s390.h (INITIALIZE_TRAMPOLINE): Remove.
4306 (TRAMPOLINE_TEMPLATE): Remove.
4307 (TRAMPOLINE_ALIGNMENT): New.
4308
9f48de62 4309 * config/score/score-protos.h (score_initialize_trampoline): Remove.
4310 * config/score/score.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4311 (TARGET_TRAMPOLINE_INIT): New.
4312 (score_asm_trampoline_template): New.
4313 (score_trampoline_init): Rename from score_initialize_trampoline;
4314 make static; adjust for hook parameters.
4315 * config/score/score.h (TRAMPOLINE_TEMPLATE): Move code to
4316 score[37]_asm_trampoline_template.
4317 (INITIALIZE_TRAMPOLINE): Remove.
4318 * config/score/score3.c (score3_asm_trampoline_template): New.
4319 (score3_trampoline_init): Rename from score3_initialize_trampoline;
4320 adjust for target hook.
4321 * config/score/score7.c (score7_asm_trampoline_template): New.
4322 (score7_trampoline_init): Rename from score7_initialize_trampoline;
4323 adjust for target hook.
4324 * config/score/score3.h, config/score/score7.h: Update.
4325
3daf7435 4326 * config/sh/sh-protos.h (sh_initialize_trampoline): Remove.
4327 * config/sh/sh.c (TARGET_TRAMPOLINE_INIT): New.
4328 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
4329 (sh_trampoline_init): Rename from sh_initialize_trampoline;
4330 make static; adjust for target hook parameters.
4331 (sh_trampoline_adjust_address): New.
4332 * config/sh/sh.h (INITIALIZE_TRAMPOLINE): New.
4333 (TRAMPOLINE_ADJUST_ADDRESS): Move code to sh_trampoline_adjust_address.
4334
0a532621 4335 * config/sparc/sparc.c (TARGET_TRAMPOLINE_INIT): New.
4336 (sparc32_initialize_trampoline): Rename from
4337 sparc_initialize_trampoline; make static; replace tramp parameter
4338 with m_tramp and update memory accesses.
4339 (sparc64_initialize_trampoline): Similarly.
4340 (sparc_trampoline_init): New.
4341 * config/sparc/sparc-protos.h: Remove trampoline decls.
4342 * config/sparc/sparc.h (INITIALIZE_TRAMPOLINE): Remove.
4343 * config/sparc/sparc.md (nonlocal_goto): Don't use static_chain_rtx.
4344
e96f2783 4345 * config/spu/spu.c (TARGET_TRAMPOLINE_INIT): New.
4346 (array_to_constant): Make ARR parameter const.
4347 (spu_trampoline_init): Rename from spu_initialize_trampoline;
4348 make static; update for hook parameters.
4349 * config/spu/spu-protos.h: Update decls.
4350 * config/spu/spu.h (INITIALIZE_TRAMPOLINE): Remove.
4351
cb9cec17 4352 * config/stormy16/stormy16.c (xstormy16_trampoline_init): Rename
4353 from xstormy16_initialize_trampoline; make static; update for
4354 hook parameters.
4355 (TARGET_TRAMPOLINE_INIT): New.
4356 * config/stormy16/stormy16.h (INITIALIZE_TRAMPOLINE): Remove.
4357
12b3af25 4358 * config/v850/v850.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4359 (TARGET_TRAMPOLINE_INIT): New.
4360 (v850_can_eliminate): Make static.
4361 (v850_asm_trampoline_template, v850_trampoline_init): New.
4362 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Move code to
4363 v850_asm_trampoline_template.
4364 (INITIALIZE_TRAMPOLINE): Move code to v850_trampoline_init
4365 and adjust for target hook parameters.
4366
360b8393 4367 * config/vax/vax.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4368 (TARGET_TRAMPOLINE_INIT): New.
4369 (vax_asm_trampoline_template, vax_trampoline_init): New.
4370 * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Move code to
4371 vax_asm_trampoline_template.
4372 (INITIALIZE_TRAMPOLINE): Move code to vax_trampoline_init.
4373
269e94f8 4374 * config/xtensa/xtensa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4375 (TARGET_TRAMPOLINE_INIT): New.
4376 (xtensa_asm_trampoline_template): Rename from
4377 xtensa_trampoline_template; make static.
4378 (xtensa_trampoline_init): Rename from xtensa_initialize_trampoline;
4379 make static; update for hook parameters.
4380 * config/xtensa/xtensa-protos.h: Remove trampoline decls.
4381 * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Remove.
4382 (INITIALIZE_TRAMPOLINE): Remove.
4383
2b340659 4384 * config/i386/i386.c (ix86_function_regparm): Do not issue an
4385 error for nested functions with regparm=3.
4386 (ix86_compute_frame_layout): Adjust frame pointer offset for
4387 ix86_static_chain_on_stack.
4388 (ix86_expand_prologue): Handle ix86_static_chain_on_stack.
4389 (ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset,
4390 don't reset to UNITS_PER_WORD.
4391 (ix86_emit_leave): Adjust ix86_cfa_state.
4392 (ix86_expand_epilogue): Handle ix86_static_chain_on_stack.
4393 (ix86_static_chain): New.
4394 (ix86_trampoline_init): Rename from x86_initialize_trampoline;
4395 make static; update for target hook parameters; use ix86_static_chain.
4396 (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
4397 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove.
4398 (INITIALIZE_TRAMPOLINE): Remove.
4399 (TRAMPOLINE_SIZE): Use 24 for 64-bit.
4400 (struct machine_function): Use BOOL_BITFIELD; rearrange bitfields
4401 to the end. Add static_chain_on_stack.
4402 (ix86_static_chain_on_stack): New.
4403
61fafd77 4404 * config/m68k/m68k.c (TARGET_TRAMPOLINE_INIT): New.
4405 (m68k_output_mi_thunk): Don't use static_chain_rtx.
4406 (m68k_trampoline_init): New.
4407 * config/m68k/m68k.h (INITIALIZE_TRAMPOLINE): Move code to
4408 m68k_trampoline_init and adjust for hook parameters.
4409 * config/m68k/netbsd-elf.h (TRAMPOLINE_TEMPLATE): Remove.
4410 (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Remove.
4411
15f39410 44122009-09-22 Jakub Jelinek <jakub@redhat.com>
4413
6ae16e00 4414 * config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes
4415 for __builtin_altivec_vcmpgt{sb,uh,sh,uw}.
4416
15f39410 4417 * reload1.c (reload): Call wrap_constant when substituting
4418 reg for equiv inside of DEBUG_INSNs.
4419
c16b6d19 4420 PR bootstrap/41405
4421 * dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die,
4422 add_call_src_coords_attributes, add_high_low_attributes,
4423 gen_compile_unit_die, gen_type_die_with_usage force_decl_die,
4424 gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish,
4425 dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions
4426 when -gdwarf-2 -gstrict-dwarf.
4427 (loc_list_from_tree): Likewise. Avoid using DWARF4 additions when
4428 -gdwarf-[23] -gstrict-dwarf.
4429 (address_of_int_loc_descriptor, loc_descriptor,
4430 loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using
4431 DWARF4 additions when -gdwarf-[23] -gstrict-dwarf.
4432 * common.opt (gno-strict-dwarf, gstrict-dwarf): New options.
4433
6688f8ec 44342009-09-22 Richard Guenther <rguenther@suse.de>
4435
4436 PR tree-optimization/41428
4437 * tree-ssa-ccp.c (ccp_fold_stmt): New function.
4438 (ccp_finalize): Pass it to substitute_and_fold.
4439
07aee51b 44402009-09-22 Richard Guenther <rguenther@suse.de>
4441
4442 * tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
4443 (substitute_and_fold): Adjust prototype.
4444 * tree-vrp.c (vrp_evaluate_conditional): Make static.
4445 (simplify_stmt_using_ranges): Likewise.
4446 (fold_predicate_in): Move here from tree-ssa-propagate.c.
4447 (vrp_fold_stmt): New function.
4448 (vrp_finalize): Pass it to substitute_and_fold.
4449 * tree-flow.h (vrp_evaluate_conditional): Remove.
4450 (simplify_stmt_using_ranges): Likewise.
4451 * tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold.
4452 * tree-ssa-copy.c (fini_copy_prop): Likewise.
4453 * tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded
4454 member.
4455 (fold_predicate_in): Move to tree-vrp.c.
4456 (substitute_and_fold): Use the callback instead of calling into
4457 tree-vrp.c functions directly.
4458
860a36d0 44592009-09-22 Jakub Jelinek <jakub@redhat.com>
4460
564d11b6 4461 * dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
4462 comparison warning on rs6000.
4463
860a36d0 4464 PR middle-end/41429
4465 * tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
4466 GIMPLE_EH_MUST_NOT_THROW cleanup.
4467 (verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
4468
9166f36a 44692009-09-22 Jack Howarth <howarth@bromo.med.uc.edu>
4470
4471 PR middle-end/41260
4472 * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
4473 * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
4474 LIB_SPEC for darwin10 and later since it always uses the unwinder in
4475 libSystem which is derived from the gcc 4.2.1 unwinder.
4476
7bba6081 44772009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
4478
4479 PR middle-end/41357
4480 * varasm.c (default_encode_section_info): Copy TLS model into
4481 sym_ref flags regardless of backend support for TLS, for all
4482 model types except TLS_MODEL_EMULATED.
4483
18e634a0 44842009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
4485
4486 PR bootstrap/41404
4487 * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
4488 we can handle it correctly.
4489
8501184c 44902009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
4491
4492 * doc/install.texi (os2): Remove section.
4493
f05fd450 44942009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
4495
4496 * doc/standards.texi (Objective-C): Adjust two URLs.
4497
4e32b1c1 44982009-09-21 Giuseppe Scrivano <gscrivano@gnu.org>
4499
9e072631 4500 * tree-tailcall.c (process_assignment): Don't check if a
4501 multiplication or an addition are already present.
4e32b1c1 4502 (find_tail_calls): Combine multiple additions and multiplications.
4503 (adjust_accumulator_values): Emit accumulators.
4504
1f326315 45052009-09-21 Kai Tietz <kai.tietz@onevision.com>
4506
4507 * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for
4508 xmm register restore.
4509
fcdbcd4f 45102009-09-21 Jan Hubicka <jh@suse.cz>
4511
4512 * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL.
4513 (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and
4514 restore at the end.
4515
f00a8c41 45162009-09-21 Eric Botcazou <ebotcazou@adacore.com>
4517
4518 * stor-layout.c (layout_type): Remove obsolete code.
4519
2a237206 45202009-09-20 H.J. Lu <hongjiu.lu@intel.com>
4521
4522 PR middle-end/41395
4523 * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2.
4524
652d9409 45252009-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4526
4527 PR middle-end/30789
4528 * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
4529 (do_mpc_ckconv): Accept FORCE_CONVERT parameter.
4530 (fold_builtin_2, do_mpc_arg1): Update accordingly.
4531 * fold-const.c (const_binop): Likewise.
4532 * real.h (do_mpc_arg2): Update prototype.
4533
252a5c7f 45342009-09-20 Jan Hubicka <jh@suse.cz>
4535
4536 * dwarf2out.c (add_const_value_attribute): Return true if successful.
9e072631 4537 (add_location_or_const_value_attribute): Rewrite using
4538 loc_list_from_tree.
252a5c7f 4539 (tree_add_const_value_attribute): Return true if successful.
4540 (tree_add_const_value_attribute_for_decl): Likewise.
4541
4542 * dwarf2out.c (address_of_int_loc_descriptor): Break out from ...
4543 (loc_descriptor): ... here;
4544 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
4545 (cst_pool_loc_descr): Break out from ...; do not reffer constant
4546 pool items that was not marked for output.
4547 (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR;
4548 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
4549 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
4550 handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR,
4551 IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of
4552 CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use
4553 DW_OP_stack_value to get address of items that are not available
4554 as addresses.
4555 (dw_loc_list): Handle single element lists correctly.
4556
17a70061 45572009-09-20 Kai Tietz <kai.tietz@onevision.com>
4558 Pascal Obry <obry@adacore.com>
4559
4560 * unwind-dw2-fde.c (classify_object_over_fdes):
4561 Cast the constant 1 to _Unwind_Ptr.
4562 (add_fdes): Likewise.
4563 (linear_search_fdes): Likewise.
4564
f2326e1c 45652009-09-20 Eric Botcazou <ebotcazou@adacore.com>
4566
4567 * stor-layout.c (set_sizetype): Avoid useless type copy.
4568
c4cf26ad 45692009-09-20 Richard Sandiford <rdsandiford@googlemail.com>
4570
4571 * configure.ac (gcc_cv_ld_mips_personality_relaxation): New
4572 feature check.
4573 (HAVE_LD_PERSONALITY_RELAXATION): New macro definition.
4574 * configure, config.in: Regenerate.
4575 * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect |
4576 DW_EH_PE_absptr.
4577 * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro.
4578 (ASM_PREFERRED_EH_DATA_FORMAT): Define. Use MIPS_EH_INDIRECT
4579 for global data if the output could be used in a shared library.
4580 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
4581 to 0 if TARGET_WRITABLE_EH_FRAME.
4582
2f6eedc2 45832009-09-20 Paolo Bonzini <bonzini@gnu.org>
4584
568d1180 4585 PR rtl-optimization/39886
2f6eedc2 4586 * combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU
4587 just when insn is equal to BB_END (bb).
4588
ca30e0b9 45892009-09-19 Adam Nemet <anemet@caviumnetworks.com>
4590
4591 * config/mips/mips.opt (mrelax-pic-calls): New option.
4592 * config/mips/mips.c (mips_strip_unspec_address): Move it up in
4593 the file.
4594 (mips_unspec_call): Change "unspec_call" expander into this.
4595 (mips_strip_unspec_call): New function.
4596 (mips_got_load): Call mips_unspec_call instead of
4597 gen_unspec_call<mode>.
4598 (mips16_build_call_stub): Fix comment for fp_code. Adjust call to
4599 MIPS_CALL.
4600 (mips_cfg_in_reorg): New function.
4601 (mips16_lay_out_constants): Use it to decide whether to call
4602 CFG-aware insn splitting.
4603 (r10k_insert_cache_barriers): Move CFG set-up code from here to
4604 mips_reorg. Move DF set-up code from here ...
4605 (mips_df_reorg): ... to here. Call r10k_insert_cache_barriers
4606 from here.
4607 (mips_reorg): Call mips_df_reorg instead of
4608 r10k_insert_cache_barriers. Move CFG set-up code here from
4609 r10k_insert_cache_barriers.
4610 (mips_call_expr_from_insn): New function.
4611 (mips_pic_call_symbol_from_set): Likewise.
4612 (mips_find_pic_call_symbol): Likewise.
4613 (mips_annotate_pic_call_expr): Likewise.
4614 (mips_get_pic_call_symbol): Likewise.
4615 (mips_annotate_pic_calls): Likewise.
4616 (mips_override_options): Disable -mrelax-pic-calls unless PIC
4617 calls are used.
4618 (mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16.
4619 * config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it.
4620 * config/mips/mips.h (MIPS_CALL): Use it to print the .reloc
4621 directive.
4622 * config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec.
4623 (unspec_call<mode>): Remove it.
4624 (sibcall_internal, sibcall_value_internal,
4625 sibcall_value_multiple_internal, call_internal, call_split,
4626 call_value_internal, call_value_split,
4627 call_value_multiple_internal, call_value_multiple_split): Pass
4628 SIZE_OPNO to MIPS_CALL.
4629 (call_internal_direct, call_direct_split,
4630 call_value_internal_direct, call_value_direct_split): Pass -1 as
4631 SIZE_OPNO to MIPS_CALL.
4632 * configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR.
4633 * configure: Regenerate.
4634 * doc/invoke.texi (Option Summary): Add -mrelax-pic-calls
4635 and -mno-relax-pic-calls.
9e072631 4636 (MIPS Options): Document -mrelax-pic-calls and -mno-relax-pic-calls.
ca30e0b9 4637
97f0faf7 46382009-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4639
4640 PR bootstrap/35619
4641 * Makefile.in (stmp-fixinc): Ensure `include-fixed' is created
4642 in the directory this rule is called from, rather than the
4643 toplevel 'gcc' directory, to fix in-tree build.
4644
c25f2689 46452009-09-19 Chris Demetriou <cgd@google.com>
4646
4647 PR preprocessor/28435:
4648 * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
4649 to cpplib that the preprocessor output is needed.
4650
7380517f 46512009-09-19 Jakub Jelinek <jakub@redhat.com>
4652
d2f5f499 4653 * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>,
4654 *restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>,
4655 *return_and_restore_fpregs_<mode>,
4656 *return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier.
4657
7380517f 4658 PR bootstrap/41397
4659 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse
4660 instead of assuming it has always a REG inside of it.
4661
9530df8b 46622009-09-18 Gerald Pfeifer <gerald@pfeifer.com>
4663
4664 * config/freebsd.h: Update comment on types.
4665 (WINT_TYPE): Define.
4666
a9e738c1 46672009-09-18 Jason Merrill <jason@redhat.com>
4668
4669 * c.opt: Add -fno-deduce-init-list.
4670
e0b41cd1 46712009-09-18 Neil Vachharajani <nvachhar@google.com>
4672
4673 * value-prof.c (interesting_stringop_to_profile_p): Added output
4674 argument to indicate which parameter is the size parameter.
4675 * value-prof.c (gimple_stringop_fixed_value): Use
4676 INTERESTING_STRINGOP_TO_PROFILE_P to find size argument.
4677 * value-prof.c (gimple_stringops_transform): Update call sites to
4678 INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change.
e0b41cd1 4679
06336c0a 46802009-09-18 Uros Bizjak <ubizjak@gmail.com>
4681
4682 PR target/38288
4683 From David Binderman <dcb314@hotmail.com>:
4684 * gcc/config/i386/i386.c (ix86_function_regparm): Remove useless
4685 local variable f. Remove stale comments.
4686 (ix86_compute_frame_layout): Remove useless local variable total_size.
4687 Remove #if 0'd code.
4688 (legitimate_address_p): Remove useless local variables
4689 reason_rtx and reason.
4690 (ix86_split_copysign_const): Remove useless local variable op1.
4691 (scale_counter): Remove useless local variable piece_size_mask.
4692
14a02588 46932009-09-18 Jakub Jelinek <jakub@redhat.com>
4694
4695 * stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
4696 output decl.
4697
d074d6a6 46982009-09-17 Michael Haubenwallner <michael.haubenwallner@salomon.at>
4699
4700 PR target/40913
4701 * config/pa/t-hpux-shlib: Set soname in libgcc_s.sl.
4702
6e0982ac 47032009-09-17 Jakub Jelinek <jakub@redhat.com>
4704
4705 * c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of
4706 TYPE_STUB_DECL.
4707
c4ea4938 47082009-09-17 Alexandre Oliva <aoliva@redhat.com>
4709
4710 * dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and
4711 DW_OP_implicit_value even without dwarf_version 4.
4712
bd982994 47132009-09-17 Jan Hubicka <jh@suse.cz>
4714
4715 * dwarf2out.c: Include tree-pass.h and gimple.h.
4716 (loc_list_plus_const): New function.
4717 (loc_descriptor_from_tree_1): Rename to ...
4718 (loc_descriptor_from_tree): ... remove original.
4719 (loc_list_from_tree): New function.
4720 (add_AT_location_description): Accept location list.
4721 (tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree.
4722 (concatn_mem_loc_descriptor): Remove.
4723 (mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by
4724 returning NULL.
4725 (secname_for_decl): Move up.
4726 (hidden_reference_p): New function; break out from ...
4727 (loc_by_refernece): ... here; move up.
4728 (dw_loc_list): New function.
4729 (single_element_loc_list): New function.
4730 (single_element_loc_list_p): New function.
4731 (add_loc_descr_to_each): New function.
4732 (add_loc_list): New function.
4733 (loc_descr_from_tree): Make wraper of loc_list_from_tree.
4734 (loc_list_from_tree): Reroganized from loc_descr_from_tree;
4735 add diagnostics why expansion failed.
4736 (add_location_or_const_value_attribute): Support location lists.
4737 (add_bound_info): Likewise.
4738 (descr_info_loc): Update call of loc_descriptor_from_tree.
4739 (gen_variable_die): Work on location lists.
4740 * final.c (pass_final): Add dump file.
4741 * Makefile.in (dwarf2out.o): Add new dependencies.
4742
3c908593 47432009-09-17 Janis Johnson <janis187@us.ibm.com>
4744
4745 PR c/41049
4746 * real.c decimal_from_integer, decimal_integer_string): New.
4747 (real_from_integer): Use them as special case for decimal float.
4748 * config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding.
4749 (_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td):
4750 Do not append zero after the decimal point in string to convert.
4751
249d544d 47522009-09-17 Alexander Monakov <amonakov@ispras.ru>
4753
4754 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
4755 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
4756
2f29eac3 47572009-09-17 Martin Jambor <mjambor@suse.cz>
4758
4759 * common.opt (fipa-sra): New switch.
4760 * opts.c (decode_options): Turn flag_ipa_sra on for opt2.
4761 * timevar.def (TV_IPA_SRA): New timevar.
4762 * params.def (ipa-sra-ptr-growth-factor): New parameter.
4763 * doc/invoke.texi: Document -fipa-sra and ipa-sra-ptr-growth-factor.
4764 * tree-sra.c: Include cgraph.c.
4765 (enum sra_mode): Added SRA_MODE_EARLY_IPA.
4766 (struct access): Added fields stmt, grp_maybe_modified, grp_scalar_ptr
4767 and grp_not_necessarilly_dereferenced.
4768 (func_param_count): New variable.
4769 (encountered_apply_args): New variable.
4770 (bb_dereferences): New variable.
4771 (final_bbs): New variable.
4772 (no_accesses_representant): New variable.
4773 (no_accesses_p): New function.
4774 (dump_access): Dump the new fields.
4775 (sra_initialize): Set encountered_apply_args to false.
4776 (get_ssa_base_param): New function.
4777 (mark_parm_dereference): New function.
4778 (create_access): Caring for INIDRECT_REFs and different handling of
4779 varialble length accesses in early IPA SRA. Store the stmt - a new
4780 parameter - to the new access.
4781 (build_access_from_expr_1): New parameter stmt, passed to
4782 create_access. Handle INDIRECT_REFs.
4783 (build_access_from_expr): Pass the current statement to
4784 build_access_from_expr_1.
4785 (disqualify_ops_if_throwing_stmt): Trigger only in intraprocedural
4786 passes.
4787 (build_accesses_from_assign): Pass the current statement to
4788 build_access_from_expr_1. Do not create assign links in IPA-SRA.
4789 (scan_function): Call handle_ssa_defs on phi nodes. Set bits in
4790 final_bbs when necessary. Check for calls to __builtin_apply_args.
4791 Fixup EH info if anythng was changed.
4792 (is_unused_scalar_param): New function.
4793 (ptr_parm_has_direct_uses): New function.
4794 (find_param_candidates): New function.
4795 (mark_maybe_modified): New function.
4796 (analyze_modified_params): New function.
4797 (propagate_dereference_distances): New function.
4798 (dump_dereferences_table): New function.
4799 (analyze_caller_dereference_legality): New function.
4800 (unmodified_by_ref_scalar_representative): New function.
4801 (splice_param_accesses): New function.
4802 (decide_one_param_reduction): New function.
4803 (enum ipa_splicing_result): New type.
4804 (splice_all_param_accesses): New function.
4805 (get_param_index): New function.
4806 (turn_representatives_into_adjustments): New function.
4807 (analyze_all_param_acesses): New function.
4808 (get_replaced_param_substitute): New function.
4809 (get_adjustment_for_base): New function.
4810 (replace_removed_params_ssa_names): New function.
4811 (sra_ipa_reset_debug_stmts): New function.
4812 (sra_ipa_modify_expr): New function.
4813 (sra_ipa_modify_assign): New function.
4814 (convert_callers): New function.
4815 (modify_function): New function.
4816 (ipa_sra_preliminary_function_checks): New function.
4817 (ipa_early_sra): New function.
4818 (ipa_early_sra_gate): New function.
4819 (pass_early_ipa_sra): New variable.
4820 * Makefile.in (tree-sra.o): Add cgraph.h to dependencies.
06336c0a 4821
e1f1071c 48222009-09-17 Michael Matz <matz@suse.de>
4823
4824 PR middle-end/41347
4825 * tree.c (build_type_attribute_qual_variant): Export.
4826 * tree.h (build_type_attribute_qual_variant): Declare.
4827 * tree-inline.c (remap_type_1): Use it to build variants with
4828 the original qualifiers and attributes.
4829
9dbb96fe 48302009-09-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4831
4832 * cfglayout.c (fixup_reorder_chain): Accept conditional jumps
4833 without a fallthrough edge.
4834
bd2fe2f1 48352009-09-16 DJ Delorie <dj@redhat.com>
4836
4837 * config/m32c/m32c.c (m32c_emit_epilogue): Check for R8C or M16C
4838 chip and ignore the "fast_interrupt" attribute if so.
4839
f6595509 48402009-09-16 Richard Henderson <rth@redhat.com>
4841
4842 PR middle-end/41360
4843 * cfgbuild.c (find_bb_boundaries): Really re-instate 2009-09-02
4844 barrier fix.
4845
cfcaff92 48462009-09-16 Richard Henderson <rth@redhat.com>
4847
4848 PR target/41246
4849 * tree-cfg.c (verify_gimple_call): Validate that gimple_call_chain
4850 is set only if DECL_NO_STATIC_CHAIN is unset.
4851 * tree-nested.c (iter_nestinfo_start, iter_nestinfo_next): New.
4852 (FOR_EACH_NEST_INFO): New.
4853 (walk_all_functions): Use it.
4854 (finalize_nesting_tree): Likewise.
4855 (unnest_nesting_tree): Likewise.
4856 (free_nesting_tree): Use iter_nestinfo_start, iter_nestinfo_next.
4857 (get_chain_decl, get_chain_field): Reset DECL_NO_STATIC_CHAIN.
4858 (convert_gimple_call): Early out if gimple_call_chain already set.
4859 (convert_all_function_calls): Iterate until no new functions
4860 require a static chain.
4861 (finalize_nesting_tree_1): Assert DECL_NO_STATIC_CHAIN is unset
4862 when building a trampoline. Use dump_function_to_file instead
4863 of dump_function.
4864 (lower_nested_functions): Open dump_file. Validate that decls
4865 that have DECL_NO_STATIC_CHAIN from the front end don't have that
4866 bit reset by this pass.
4867
8bb76364 48682009-09-16 Michael Matz <matz@suse.de>
4869
4870 PR fortran/41212
4871 * tree.h (struct tree_decl_common): Add decl_restricted_flag,
4872 shorten decl_common_unused.
4873 (DECL_RESTRICTED_P): New accessor.
4874 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use it
4875 to disambiguate marked decls and restrict pointers.
4876
b80f5ed2 48772009-09-16 Richard Henderson <rth@redhat.com>
4878
4879 PR middle-end/41360
4880 * cfgbuild.c (find_bb_boundaries): Re-instate 2009-09-02 barrier fix.
4881
3b0a08ea 48822009-09-16 Jakub Jelinek <jakub@redhat.com>
4883
4884 * integrate.c (set_block_abstract_flags): Call
4885 set_decl_abstract_flags also on BLOCK_NONLOCALIZED_VARs.
4886
d4993cee 48872009-09-16 Richard Guenther <rguenther@suse.de>
4888
4889 PR middle-end/34011
4890 * tree-flow-inline.h (may_be_aliased): Compute readonly variables
4891 as non-aliased.
4892
b324d3bd 48932009-09-16 DJ Delorie <dj@redhat.com>
4894 Kaz Kojima <kkojima@gcc.gnu.org>
4895
4896 * config/sh/sh.c (output_stack_adjust): Add new argument frame_p.
4897 (sh_expand_prologue): Update calls to output_stack_adjust.
06336c0a 4898 (sh_expand_epilogue): Likewise.
b324d3bd 4899
47730c87 49002009-09-15 Adam Nemet <anemet@caviumnetworks.com>
4901
4902 PR bootstrap/41349
4903 * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when
4904 trying to limit the extent of searches in the insn stream.
4905
cac0aa5a 49062009-09-15 Nathan Froyd <froydnj@codesourcery.com>
4907 Jakub Jelinek <jakub@redhat.com>
4908
4909 PR target/41175
4910 PR target/40677
4911 * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
4912 problem.
4913 (SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
4914 SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): New strategy bits.
4915 (rs6000_savres_strategy): Always save FP registers inline if the
4916 target doesn't support hardware double-precision. Set the above
4917 bits in return value when needed.
4918 (rs6000_savres_routine_sym): Fix computation for cache selector.
4919 Mark the generated symbol as a function. Rename exitp argument to
4920 lr. Move code for determining the name of the symbol...
4921 (rs6000_savres_routine_name): ...here. New function. Add cases for
4922 getting the names right on AIX and 64-bit Linux.
4923 (savres_routine_name): New variable.
4924 (rs6000_make_savres_rtx): Rename exitp argument to lr. Don't assert
4925 lr isn't set when savep. Use r12 resp. r1 instead of r11 depending
4926 on what the target routine uses as a base register. If savep && lr
4927 describe saving of r0 into memory slot.
4928 (rs6000_emit_prologue): Correct use of call_used_regs. Fix out of
4929 line calls for AIX ABI.
4930 (rs6000_output_function_prologue): Use rs6000_savres_routine_name to
4931 determine FP save/restore functions.
4932 (rs6000_emit_stack_reset): Handle savres if sp_offset != 0 and
4933 frame_reg_rtx != sp_reg_rtx. Use gen_add3_insn instead of
4934 gen_addsi3.
4935 (rs6000_emit_epilogue): Adjust computation of restore_lr.
4936 Duplicate restoration of LR and execute the appropriate one
4937 depending on whether GPRs are being restored inline. Set r11 from
4938 offsetted frame_reg_rtx instead of sp_reg_rtx; if frame_reg_rtx is
4939 r11, adjust sp_offset. Use gen_add3_insn instead of gen_addsi3.
4940 Fix out of line calls for AIX ABI.
4941 * config/rs6000/rs6000.md (*return_and_restore_fpregs_aix_<mode>):
4942 New insn.
4943 * config/rs6000/spe.md (*save_gpregs_spe): Use explicit match for
4944 register 11.
4945 (*restore_gpregs_spe): Likewise.
4946 (*return_and_restore_gpregs_spe): Likewise.
4947 * config/rs6000/linux64.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
4948 Define to empty string unconditionally.
4949 * config/rs6000/sysv4.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
4950 Define to empty string unconditionally.
4951 (GP_SAVE_INLINE, FP_SAVE_INLINE): Handle TARGET_64BIT the same as
4952 !TARGET_64BIT.
4953
c6445d04 49542009-09-15 Jan Hubicka <jh@suse.cz>
4955
4956 * doc/invoke.texi (inline-insns-auto): Drop from 60 to 50.
4957 * params.def (inline-insns-auto): Likewise.
4958
479e7f00 49592009-09-15 Martin Jambor <mjambor@suse.cz>
4960
4961 * ipa-inline.c (estimate_function_body_sizes): Dump info about
4962 individual statements only at TDF_DETAILS dump level. Format
4963 source for 80 characters per line.
4964
49652009-09-15 Christian Bruel <christian.bruel@st.com>
0a57197c 4966
06336c0a 4967 * regrename.c (do_replace): Update REG_DEAD notes.
4968
c6b19c5f 49692009-09-15 Revital Eres <eres@il.ibm.com>
4970
4971 * doc/tm.texi (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Document.
4972 * targhooks.c (default_builtin_support_vector_misalignment):
4973 New builtin function.
4974 * targhooks.h (default_builtin_support_vector_misalignment):
4975 Declare.
4976 * target.h (builtin_support_vector_misalignment):
4977 New field in struct gcc_target.
4978 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Call
4979 new builtin function.
4980 * target-def.h (TARGET_SUPPORT_VECTOR_MISALIGNMENT):
4981 Define.
4982 * config/rs6000/rs6000.c
4983 (rs6000_builtin_support_vector_misalignment): New function.
4984 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Define.
4985
b83e063e 49862009-09-15 Jie Zhang <jie.zhang@analog.com>
4987
4988 * config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P
4989 instead of INSN_P.
4990 (bfin_optimize_loop): Likewise.
4991 (bfin_gen_bundles): Likewise.
4992 (workaround_speculation): Likewise.
4993 (find_load): Return NULL_RTX for debug_insn.
4994
79b13b72 49952009-09-15 Uros Bizjak <ubizjak@gmail.com>
4996
4997 * config/alpha/alpha.md (smaxsf3): Disable for IEEE mode.
4998 (sminsf3): Ditto.
4999
d22d3228 50002009-09-14 DJ Delorie <dj@redhat.com>
5001
5002 * config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
79b13b72 5003 * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in
5004 VLIW mode.
d22d3228 5005
78f55ca8 50062009-09-14 Richard Henderson <rth@redhat.com>
79b13b72 5007 Jakub Jelinek <jakub@redhat.com>
78f55ca8 5008
5009 * builtins.c (expand_builtin_synchronize): Use gimple_build_asm_vec.
5010 * cfgbuild.c (make_edges): Handle asm goto.
5011 * cfglayout.c (fixup_reorder_chain): Likewise.
5012 * cfgrtl.c (patch_jump_insn): Likewise.
5013 * gimple-pretty-print.c (dump_gimple_asm): Likewise.
5014 * gimple.c (gimple_build_asm_1): Add and use nlabels parameter.
5015 (gimple_build_asm_vec): Add and use labels parameter.
5016 (gimple_build_asm): Remove.
5017 (walk_gimple_asm): Walk labels too.
5018 * gimple.def (GIMPLE_ASM): Update docs.
5019 * gimple.h: Update decls.
5020 (struct gimple_statement_asm): Change nc to use unsigned char;
5021 add nl member.
5022 (gimple_asm_nlabels): New.
5023 (gimple_asm_label_op, gimple_asm_set_label_op): New.
5024 * gimplify.c (gimplify_asm_expr): Copy labels from ASM_EXPR
5025 into gimple_build_asm_vec.
5026 * jump.c (mark_jump_label_asm): New.
5027 (mark_jump_label): Use it.
5028 (redirect_jump_1): Handle asm goto.
5029 (invert_jump_1): Soft fail if X is null.
5030 * recog.c (extract_asm_operands): New.
5031 (asm_noperands): Use it; handle asm labels.
5032 (decode_asm_operands): Use extract_asm_operands.
5033 (asm_operand_ok): Properly handle empty string.
5034 * reg-stack.c (get_asm_operands_in_out): Rename from
5035 get_asm_operand_n_inputs; use extract_asm_operands; return both
5036 inputs and outputs by reference; update all callers.
5037 * rtl.def (ASM_OPERANDS): Add label vector as operand 6.
5038 * rtl.h (ASM_OPERANDS_LABEL_VEC): New.
5039 (ASM_OPERANDS_LABEL_LENGTH, ASM_OPERANDS_LABEL): New.
5040 (ASM_OPERANDS_SOURCE_LOCATION): Renumber.
5041 (extract_asm_operands): Declare.
5042 * stmt.c (expand_asm_operands): Add and use labels parameter.
5043 (check_unique_operand_names): Likewise.
5044 (resolve_asm_operand_names, resolve_operand_name_1): Likewise.
5045 (expand_asm_stmt): Handle asm labels.
5046 * tree-cfg.c (make_gimple_asm_edges): New.
5047 (make_edges): Use it.
5048 (cleanup_dead_labels): Handle asm labels.
5049 (is_ctrl_altering_stmt): Likewise.
5050 (gimple_redirect_edge_and_branch): Likewise.
5051 * tree.def (ASM_EXPR): Add 5th operand.
5052 * tree.h (ASM_LABELS): New.
5053 (resolve_asm_operand_names): Update decl.
5054
5055 * c-parser.c (c_parser_asm_statement): Parse asm goto.
5056 (c_parser_asm_goto_operands): New.
5057 * c-tree.h (build_asm_expr): Update decl.
5058 * c-typeck.c (build_asm_expr): Add and use labels parameter.
5059 * doc/extend.texi: Document asm goto.
5060
e38def9c 50612009-09-14 Richard Henderson <rth@redhat.com>
5062
5063 * except.h: Update declarations.
5064 (struct pointer_map_t): Forward declare.
5065 (ERT_UNKNOWN, ERT_THROW, ERT_CATCH): Remove.
5066 (struct eh_landing_pad_d, eh_landing_pad): New.
5067 (struct eh_catch_d, eh_catch): New.
5068 (struct eh_region_d): Remove next_region_sharing_label, aka,
5069 label, tree_label, landing_pad, post_landing_pad, resume,
5070 may_contain_throw. Rename region_number to index. Remove
5071 u.eh_catch, u.eh_throw. Rename u.eh_try.eh_catch to first_catch.
5072 Add u.must_not_throw, landing_pads, exc_ptr_reg, filter_reg.
5073 (VEC(eh_landing_pad,gc)): New.
5074 (struct eh_status): Remove last_region_number. Add lp_array,
5075 throw_stmt_table, ttype_data, ehspec_data.
5076 (ehr_next, FOR_ALL_EH_REGION_AT): New.
5077 (FOR_ALL_EH_REGION_FN, FOR_ALL_EH_REGION): New.
5078 * except.c (lang_protect_cleanup_actions): Return tree.
5079 (struct ehl_map_entry): Remove.
5080 (init_eh_for_function): Push zero entries for region and lp_array.
5081 (gen_eh_region): Add to region_array immediately.
5082 (gen_eh_region_catch): Operate on eh_catch objects.
5083 (gen_eh_landing_pad): New.
5084 (get_eh_region_may_contain_throw, get_eh_region_tree_label): Remove.
5085 (get_eh_region_no_tree_label, set_eh_region_tree_label): Remove.
5086 (get_eh_region_from_number, get_eh_region_from_number_fn): New.
5087 (get_eh_landing_pad_from_number_fn): New.
5088 (get_eh_landing_pad_from_number): New.
5089 (get_eh_region_from_lp_number_fn): New.
5090 (get_eh_region_from_lp_number): New.
5091 (expand_resx_stmt, note_eh_region_may_contain_throw): Remove.
5092 (get_exception_pointer, get_exception_filter): Remove.
5093 (collect_eh_region_array, can_be_reached_by_runtime): Remove.
5094 (current_function_has_exception_handlers): Simplify.
5095 (bring_to_root, eh_region_replaceable_by_p): Remove.
5096 (replace_region, hash_type_list, hash_eh_region): Remove.
5097 (eh_regions_equal_p, merge_peers, remove_unreachable_regions): Remove.
5098 (label_to_region_map, num_eh_regions): Remove.
5099 (get_next_region_sharing_label, must_not_throw_labels): Remove.
5100 (find_exception_handler_labels): Remove.
5101 (duplicate_eh_regions_0, find_prev_try): Remove.
5102 (struct duplicate_eh_regions_data): New.
5103 (duplicate_eh_regions_1): Rewrite.
5104 (duplicate_eh_regions): Return a pointer map instead of an
5105 integer offset.
5106 (copy_eh_region_1, copy_eh_region, push_reachable_handler): Remove.
5107 (redirect_eh_edge_to_label): Remove.
5108 (eh_region_outermost): Rewrite using eh_region pointers
5109 instead of integers.
5110 (add_ttypes_entry): Update for ttype_data move to eh_status.
5111 (add_ehspec_entry): Rewrite with VEC instead of varray.
5112 (assign_filter_values): Likewise. Export.
5113 (build_post_landing_pads, connect_post_landing_pads): Remove.
5114 (dw2_build_landing_pads): Rewrite to use lp_array.
5115 (struct sjlj_lp_info, sjlj_find_directly_reachable_regions): Remove.
5116 (sjlj_assign_call_site_values): Rewrite to use lp_array.
5117 (sjlj_emit_dispatch_table, sjlj_build_landing_pads): Likewise.
5118 (sjlj_mark_call_sites): Update for landing pad numbers.
5119 (finish_eh_generation): Rewrite.
5120 (gate_handle_eh): Do nothing for no eh tree.
5121 (pass_rtl_eh): Move up near finish_eh_generation.
5122 (remove_eh_landing_pad): New.
5123 (remove_eh_handler): Export.
5124 (remove_eh_region, remove_eh_handler_and_replace): Remove.
5125 (for_each_eh_label): Rewrite to use lp_array.
5126 (make_reg_eh_region_note): New.
5127 (make_reg_eh_region_note_nothrow_nononlocal): New.
5128 (insn_could_throw_p): New.
5129 (copy_reg_eh_region_note_forward): New.
5130 (copy_reg_eh_region_note_backward): New.
5131 (check_handled, add_reachable_handler): Remove.
5132 (reachable_next_level, foreach_reachable_handler): Remove.
5133 (arh_to_landing_pad, arh_to_label, reachable_handlers): Remove.
5134 (get_eh_region_and_lp_from_rtx): New.
5135 (get_eh_region_from_rtx): New.
5136 (can_throw_internal_1, can_throw_external_1): Remove.
5137 (can_throw_internal): Use get_eh_region_from_rtx.
5138 (can_throw_external): Use get_eh_region_and_lp_from_rtx.
5139 (insn_nothrow_p, can_nonlocal_goto): New.
5140 (expand_builtin_eh_common, expand_builtin_eh_pointer): New.
5141 (expand_builtin_eh_filter, expand_builtin_eh_copy_values): New.
5142 (add_action_record): Use VEC not varray.
5143 (collect_one_action_chain): Update for eh_region changes.
5144 (convert_to_eh_region_ranges): Make static. Use VEC not varray.
5145 Use get_eh_region_and_lp_from_rtx.
5146 (gate_convert_to_eh_region_ranges): New.
5147 (pass_convert_to_eh_region_ranges): Use it.
5148 (push_uleb128, push_sleb128): Use VEC not varray.
5149 (output_one_function_exception_table): Likewise.
5150 (dump_eh_tree): Update for eh_region changes.
5151 (verify_eh_tree): Likewise.
5152 (verify_eh_region, default_init_unwind_resume_libfunc): Remove.
5153 * tree-eh.c: Include target.h.
5154 (add_stmt_to_eh_lp_fn): Rename from add_stmt_to_eh_region_fn.
5155 Don't disallow GIMPLE_RESX; adjust argument check.
5156 (add_stmt_to_eh_lp): Rename from add_stmt_to_eh_region.
5157 (record_stmt_eh_region): Update for landing pad numbers;
5158 generate a landing pad if necessary.
5159 (remove_stmt_from_eh_lp): Rename from remove_stmt_from_eh_region.
5160 (remove_stmt_from_eh_lp_fn): Similarly.
5161 (lookup_stmt_eh_lp_fn): Rename from lookup_stmt_eh_region_fn.
5162 Update for lp numbers; don't special case missing throw_stmt_table.
5163 (lookup_expr_eh_lp): Similarly.
5164 (lookup_stmt_eh_lp): Rename from lookup_stmt_eh_region.
5165 (eh_seq, eh_region_may_contain_throw): New.
5166 (struct leh_state): Add ehp_region.
5167 (struct leh_tf_state): Remove eh_label.
5168 (emit_post_landing_pad): New.
5169 (emit_resx, emit_eh_dispatch): New.
5170 (note_eh_region_may_contain_throw): New.
5171 (frob_into_branch_around): Take eh_region not eh label;
5172 emit eh code into eh_seq.
5173 (honor_protect_cleanup_actions): Early exit for no actions. Don't
5174 handle EXC_PTR_EXPR, FILTER_EXPR. Use gimple_build_eh_must_not_throw,
5175 lower_eh_must_not_throw. Emit code to eh_seq.
5176 (lower_try_finally_nofallthru): Emit eh code to eh_seq.
5177 (lower_try_finally_onedest): Likewise.
5178 (lower_try_finally_copy): Likewise.
5179 (lower_try_finally_switch): Likewise.
5180 (lower_try_finally): Initialize ehp_region.
5181 (lower_catch): Update for eh_catch objects.
5182 (lower_eh_filter): Don't handle must_not_throw.
5183 (lower_eh_must_not_throw): New.
5184 (lower_cleanup): Don't set eh_label.
5185 (lower_eh_constructs_2): Resolve eh builtins.
5186 Handle GIMPLE_EH_MUST_NOT_THROW.
5187 (lower_eh_constructs): Initialize eh_region_may_contain_throw.
5188 Add eh_seq to the end of the function body.
5189 (make_eh_dispatch_edges): New.
5190 (make_eh_edge): Remove.
5191 (make_eh_edges): Simplify for landing pads.
5192 (redirect_eh_edge_1): New.
5193 (redirect_eh_edge): Use it.
5194 (redirect_eh_dispatch_edge): New.
5195 (stmt_could_throw_p): Use a switch. Allow RESX.
5196 (stmt_can_throw_external): Use lookup_stmt_eh_lp.
5197 (stmt_can_throw_internal): Likewise.
5198 (maybe_clean_eh_stmt_fn, maybe_clean_eh_stmt): New.
5199 (maybe_clean_or_replace_eh_stmt): Update for landing pads.
5200 (maybe_duplicate_eh_stmt_fn, maybe_duplicate_eh_stmt): New.
5201 (gate_refactor_eh): New.
5202 (pass_refactor_eh): Use it.
5203 (lower_resx, execute_lower_resx, pass_lower_resx): New.
5204 (lower_eh_dispatch, execute_lower_eh_dispatch): New.
5205 (gate_lower_ehcontrol, pass_lower_eh_dispatch): New.
5206 (remove_unreachable_handlers): Rename from
5207 tree_remove_unreachable_handlers; rewrite for landing pads;
5208 call remove_eh_handler directly.
5209 (remove_unreachable_handlers_no_lp): New.
5210 (unsplit_eh, unsplit_all_eh): New.
5211 (tree_empty_eh_handler_p, all_phis_safe_to_merge): Remove.
5212 (cleanup_empty_eh_merge_phis, cleanup_empty_eh_move_lp): New.
5213 (cleanup_empty_eh_unsplit): New.
5214 (cleanup_empty_eh): Rewrite.
5215 (cleanup_all_empty_eh): New.
5216 (execute_cleanup_eh): Rename from cleanup_eh. Remove unreachable
5217 handlers first. Use unsplit_all_eh, cleanup_all_empty_eh.
5218 (gate_cleanup_eh): New.
5219 (pass_cleanup_eh): Use it.
5220 (verify_eh_edges): Move later in file. Expect one EH edge.
5221 (verify_eh_dispatch_edge): New.
5222
5223 * Makefile.in (FUNCTION_H): Use vecprim.h, not varray.h.
5224 (gtype-desc.o): Add TARGET_H.
5225 (tree.o): Use EXCEPT_H, not except.h.
5226 (cfgbuild.o): Add EXPR_H.
5227 (GTFILES): Add vecprim.h.
5228 * builtins.c (expand_builtin): Handle BUILT_IN_EH_POINTER,
5229 BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES.
5230 * builtins.def (BUILT_IN_UNWIND_RESUME, BUILT_IN_EH_POINTER,
5231 BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES): New.
5232 * calls.c (emit_call_1): Use make_reg_eh_region_note.
5233 * cfgbuild.c (control_flow_insn_p): Use can_nonlocal_goto; tidy
5234 calls to can_throw_internal.
5235 (rtl_make_eh_edge): Use get_eh_landing_pad_from_rtx.
5236 (make_edges): Don't handle RESX; use can_nonlocal_goto.
5237 * cfgexpand.c (expand_gimple_stmt_1): Don't handle RESX.
5238 (expand_gimple_stmt): Use make_reg_eh_region_note.
5239 (expand_debug_expr): Don't handle EXC_PTR_EXPR and FILTER_EXPR.
5240 (gimple_expand_cfg): Don't call convert_from_eh_region_ranges,
5241 or find_exception_handler_labels.
5242 * cfgrtl.c (rtl_verify_flow_info_1): Don't handle RESX. Assert
5243 there is exacly one EH edge. Use can_nonlocal_goto and
5244 can_throw_internal.
5245 * cgraphunit.c (update_call_expr): Use maybe_clean_eh_stmt_fn.
5246 (cgraph_materialize_all_clones): Use maybe_clean_or_replace_eh_stmt.
5247 * combine.c (can_combine_p, try_combine): Use insn_nothrow_p.
5248 * cse.c (count_reg_usage, insn_live_p): Use insn_could_throw_p.
5249 * dce.c (deletable_insn_p_1): Don't test may_trap_p.
5250 (deletable_insn_p): Use insn_nothrow_p; reorder nonjump insn test.
5251 * dse.c (scan_insn): Use insn_could_throw_p.
5252 * emit-rtl.c (try_split): Use copy_reg_eh_region_note_backward.
5253 * expr.c (expand_expr_real): Use make_reg_eh_region_note.
5254 (expand_expr_real_1): Don't handle RESX, EXC_PTR, or FILTER_EXPR.
5255 * fold-const.c (tree_expr_nonnegative_warnv_p): Don't handle
5256 EXC_PTR_EXPR or FILTER_EXPR.
5257 (tree_expr_nonzero_warnv_p): Likewise.
5258 * function.h: Include vecprim.h, not varray.h
5259 (struct rtl_eh): Remove filter, exc_ptr, built_landing_pad members;
5260 move ttype_data and ehspec_data members to struct eh_status; change
5261 action_record_data member to a VEC.
5262 * gcse.c (hash_scan_set): Use can_throw_internal.
5263 * gengtype.c (open_base_files): Add target.h to gtype-desc.c.
5264 * gimple-iterator.c (gsi_replace): Use maybe_clean_or_replace_eh_stmt.
5265 * gimple-low.c (lower_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
5266 (block_may_fallthru): Don't handle RESX_EXPR.
5267 * gimple-pretty-print.c (dump_gimple_label): Dump EH_LANDING_PAD_NR.
5268 (dump_gimple_eh_must_not_throw, dump_gimple_eh_dispatch): New.
5269 (dump_gimple_stmt): Dump landing pad information with TDF_EH;
5270 handle GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH.
5271 * gimple.c (gss_for_code): Handle GIMPLE_EH_MUST_NOT_THROW,
5272 GIMPLE_EH_DISPATCH, GIMPLE_RESX.
5273 (gimple_size): Likewise.
5274 (gimple_build_eh_dispatch, gimple_build_eh_must_not_throw): New.
5275 (gimple_build_resx): Use gimple_build_with_ops.
5276 (DEFTREECODE): Don't handle EXC_PTR_EXPR, FILTER_EXPR.
5277 (is_gimple_val): Likewise.
5278 (is_gimple_stmt): Remove RESX_EXPR.
5279 * gimple.def (GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH): New.
5280 (GIMPLE_RESX): Reorder with other EH constructs.
5281 * gimple.h (struct gimple_statement_eh_mnt): New.
5282 (struct gimple_statement_eh_ctrl): Rename from gimple_statement_resx.
5283 (gimple_eh_filter_must_not_throw): Remove.
5284 (gimple_eh_filter_set_must_not_throw): Remove.
5285 (gimple_eh_must_not_throw_fndecl): New.
5286 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region): New.
5287 (is_gimple_resx): New.
5288 * gimplify.c (gimplify_expr): Don't handle EXC_PTR_EXPR, RESX_EXPR.
5289 Don't copy EH_FILTER_MUST_NOT_THROW.
5290 * gsstruct.def (GSS_EH_MNT, GSS_EHCONTROL): New.
5291 * ipa-inline.c (estimate_function_body_sizes): Don't try to
5292 handle must_not_throw_labels specially.
5293 * ipa-pure-const.c (check_call): Update debug statement for LP.
5294 * ipa-type-escape.c (check_operand): Don't handle EXC_PTR or FILTER.
5295 * ipa-utils.c (get_base_var): Likewise.
5296 * libfunc.h (LTI_unwind_resume, unwind_resume_libfunc): Remove.
5297 * lower-subreg.c (move_eh_region_note): Remove.
5298 (resolve_simple_move): Use copy_reg_eh_region_note_forward.
5299 * omp-low.c (new_omp_context): Update for eh_lp_nr.
5300 (create_task_copyfn): Likewise.
5301 (maybe_catch_exception): Use gimple_build_eh_filter.
5302 * optabs.c (emit_libcall_block): Update test for no-nonlocal-goto
5303 REG_EH_REGION. Use make_reg_eh_region_note_nothrow_nononlocal.
5304 * passes.c (init_optimization_passes): Add pass_lower_eh_dispatch
5305 and pass_lower_resx.
5306 * print-tree.c (print_node): Dump EH_LANDING_PAD_NR.
5307 * recog.c (peephole2_optimize): Use copy_reg_eh_region_note_backward,
5308 can_throw_internal, can_nonlocal_goto.
5309 * reload1.c (fixup_eh_region_note): Use insn_could_throw_p,
5310 copy_reg_eh_region_note_forward.
5311 (emit_input_reload_insns): Use copy_reg_eh_region_note_forward.
5312 (emit_output_reload_insns): Likewise.
5313 (copy_eh_notes): Remove.
5314 * rtl.def (RESX): Remove.
5315 * rtl.h: Update declarations.
5316 * sese.c (graphite_copy_stmts_from_block): Use maybe_duplicate_eh_stmt.
5317 * tree-cfg.c (make_edges): Handle GIMPLE_EH_DISPATCH.
5318 (update_eh_label): Remove.
5319 (cleanup_dead_labels_eh): New.
5320 (cleanup_deal_labels): Use it instead of update_eh_label.
5321 (gimple_merge_blocks): Update landing pad data structure when
5322 removing a landing pad label.
5323 (remove_useless_stmts_tc): Remove gimple_eh_filter_must_not_throw
5324 test; handle GIMPLE_EH_MUST_NOT_THROW.
5325 (is_ctrl_altering_stmt): Handle GIMPLE_EH_DISPATCH.
5326 (verify_gimple_assign_single): Don't handle EXC_PTR or FILTER_EXPR.
5327 (verify_types_in_gimple_stmt): Handle GIMPLE_EH_DISPATCH.
5328 (verify_stmt): Likewise. Verify landing pads.
5329 (gimple_redirect_edge_and_branch): Handle GIMPLE_EH_DISPATCH.
5330 (gimple_duplicate_bb): Use maybe_duplicate_eh_stmt.
5331 (struct move_stmt_d): Add eh_map.
5332 (move_stmt_eh_region_nr, move_stmt_eh_region_tree_nr): New.
5333 (move_stmt_r): Remap eh region numbers in builtin calls,
5334 resx and eh_dispatch.
5335 (move_block_to_fn): Remove eh_offset parameter. Use
5336 maybe_duplicate_eh_stmt_fn.
5337 (find_outermost_region_in_block): Operate on eh_region pointers
5338 instead of region numbers.
5339 (move_sese_region_to_fn): Expect eh_map instead of eh_offset from
5340 duplicate_eh_regions.
5341 * tree-cfgcleanup.c (tree_forwarder_block_p): Move entry block edge
5342 test earlier. Disallow EH landing pads.
5343 * tree-cfa.c (create_tree_common_ann): Don't set ann->rn.
5344 * tree-flow.h: Update declarations.
5345 (struct tree_ann_common_d): Replace rn with lp_nr.
5346 * tree-inline.c (copy_tree_body_r): Don't handle RESX_EXPR.
5347 (remap_eh_region_nr, remap_eh_region_tree_nr): New.
5348 (remap_gimple_stmt): Remap eh region numbers in builtin calls,
5349 resx and eh_dispatch.
5350 (copy_bb): Use maybe_duplicate_eh_stmt_fn.
5351 (copy_edges_for_bb): Use make_eh_dispatch_edges.
5352 (copy_cfg_body): Expect eh_map instead of eh_region_offset
5353 from duplicate_eh_regions.
5354 (estimate_num_insns): Don't handle EXC_PTR_EXPR or FILTER_EXPR;
5355 update RESX; handle EH_DISPATCH.
5356 (expand_call_inline): Set eh_lp_nr, not eh_region.
5357 (maybe_inline_call_in_expr): Likewise.
5358 * tree-inline.h (struct copy_body_data): Replace eh_region with
5359 eh_lp_nr, eh_region_offset with eh_map.
5360 * tree-optimize.c (execute_fixup_cfg): Use maybe_clean_eh_stmt.
5361 * tree-pass.h (pass_lower_eh_dispatch, pass_lower_resx): New.
5362 * tree-pretty-print.c (dump_generic_node): Don't handle
5363 EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR.
5364 * tree-sra.c (scan_function): Use maybe_clean_eh_stmt.
5365 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Don't handle
5366 EXC_PTR_EXPR, FILTER_EXPR.
5367 * tree-ssa-operands.c (get_expr_operands): Likewise.
5368 * tree-ssa-propagate.c (valid_gimple_rhs_p): Likewise.
5369 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
5370 (ao_ref_init_from_vn_reference): Likewise.
5371 * tree-ssa-sink.c (statement_sink_location): Likewise.
5372 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
5373 (mark_virtual_phi_result_for_renaming): Export. Tidy.
5374 * tree-ssa-pre.c (get_or_alloc_expr_for): Don't handle
5375 EXC_PTR_EXPR, FILTER_EXPR.
5376 (is_exception_related): Remove.
5377 (compute_avail): Don't call it.
5378 * tree-ssa-structalias.c: Remove VEC definitions for int and unsigned.
5379 * tree.c (find_decls_types_in_eh_region): Update for eh_region changes.
5380 (find_decls_types_in_node): Use FOR_ALL_EH_REGION_FN.
5381 (build_common_builtin_nodes): Add enable_cxa_end_cleanup parameter.
5382 Build EH builtins.
5383 (build_resx): Remove.
5384 * tree.def (EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR): Remove.
5385 * tree.h: Update declarations.
5386 (EH_FILTER_MUST_NOT_THROW): Remove.
5387 (struct tree_label_decl): Add eh_landing_pad_nr.
5388 (EH_LANDING_PAD_NR): New.
5389 * value-prof.c (gimple_ic): Tidy variable names. Update for
5390 landing pad numbers.
5391 (gimple_stringop_fixed_value): Tidy variable names. Assert
5392 that neither call stmt can throw.
5393 * vecprim.h (uchar): New.
5394 (VEC(uchar,heap), VEC(uchar,gc)): New.
5395
5396 * c-common.c (c_define_builtins): Update call to
5397 build_common_builtin_nodes.
5398 * c-parser.c (c_parse_file): Don't call
5399 default_init_unwind_resume_libfunc.
5400
74facf6e 54012009-09-14 Richard Sandiford <rdsandiford@googlemail.com>
5402
5403 * config/mips/mips-protos.h (mips_cfun_has_cprestore_slot_p): Declare.
5404 (mips_cprestore_address_p): Likewise.
5405 (mips_save_gp_to_cprestore_slot): Likewise.
5406 (mips_restore_gp): Rename to...
5407 (mips_restore_gp_from_cprestore_slot): ...this.
5408 (mips_must_initialize_gp_p): Declare.
5409 (mips_emit_save_slot_move): Likewise.
5410 (mips_output_load_label): Return nothing.
5411 (mips_eh_uses): Declare.
5412 * config/mips/mips.h (TARGET_SPLIT_CALLS): Require epilogue_completed.
5413 (TARGET_CPRESTORE_DIRECTIVE): New macro.
5414 (TARGET_ABSOLUTE_JUMPS): Likewise.
5415 (EH_USES): Likewise.
5416 (FIRST_PSEUDO_REGISTER): Update comment.
5417 (MIPS_ABSOLUTE_JUMP): New macro, extracted from...
5418 (MIPS_CALL): ...here.
5419 (REGISTER_NAMES): Add $cprestore.
5420 * config/mips/mips.c (machine_function): Remove has_gp_insn_p.
5421 Add load_label_length, has_inflexible_gp_insn_p,
5422 has_flexible_gp_insn_p, must_initialize_gp_p and
5423 must_restore_gp_when_clobbered_p.
5424 (mips_expand_call): Don't generate split instructions here.
5425 (mips_split_call): Update the call to mips_restore_gp after
5426 the above name change.
5427 (mips16_cfun_returns_in_fpr_p): Move earlier in file.
5428 (mips_find_gp_ref): New function.
5429 (mips_insn_has_inflexible_gp_ref_p): Likewise.
5430 (mips_cfun_has_inflexible_gp_ref_p): Likewise.
5431 (mips_insn_has_flexible_gp_ref_p): Likewise.
5432 (mips_cfun_has_flexible_gp_ref_p): Likewise.
5433 (mips_function_has_gp_insn): Delete.
5434 (mips_global_pointer): Drop the df_regs_ever_live_p check.
5435 Use the new functions above. Only return INVALID_REGNUM
5436 for TARGET_ABSOLUTE_JUMPS.
5437 (mips_must_initialize_gp_p): New function.
5438 (mips_get_cprestore_base_and_offset): New function, extracted from...
5439 (mips_cprestore_slot): ...here. Take a bool parameter.
5440 (mips_cfun_has_cprestore_slot_p): New function.
5441 (mips_cprestore_address_p): Likewise.
5442 (mips_save_gp_to_cprestore_slot): Likewise.
5443 (mips_restore_gp): Rename to...
5444 (mips_restore_gp_from_cprestore_slot): ...this. Assert
5445 epilogue_completed. Update the call to mips_cprestore_slot.
5446 Test cfun->machine->must_restore_gp_when_clobbered_p.
5447 (mips_direct_save_slot_move_p): New function.
5448 (mips_emit_save_slot_move): Likewise.
5449 (mips_output_cplocal): Test mips_must_initialize_gp_p () instead
5450 of cfun->machine->global_pointer.
5451 (mips_output_function_prologue): Check mips_must_initialize_gp_p ().
5452 (mips_save_reg): Use mips_emit_save_slot_move.
5453 (mips_expand_prologue): Set must_initialize_gp_p.
5454 Use mips_cfun_has_cprestore_slot_p. Use gen_potential_cprestore
5455 for all cprestore saves. Emit a use_cprestore instruction after
5456 setting up the cprestore slot.
5457 (mips_restore_reg): Use mips_emit_save_slot_move.
5458 (mips_process_load_label): New function.
5459 (mips_load_label_length): Likewise.
5460 (mips_output_load_label): Don't return asm: output it here instead.
5461 Use mips_process_load_label.
5462 (mips_adjust_insn_length): Adjust the length of branch instructions
5463 that have length MAX_PIC_BRANCH_LENGTH.
5464 (mips_output_conditional_branch): Update the call to
5465 mips_output_load_label. Assume the branch target is OPERANDS[0]
5466 rather than OPERANDS[1]. Use MIPS_ABSOLUTE_JUMP for absolute jumps.
5467 (mips_output_order_conditional_branch): Swap the meaning of
5468 OPERANDS[0] and OPERANDS[1].
5469 (mips_variable_issue): Don't count ghost instructions.
5470 (mips_expand_ghost_gp_insns): New function.
5471 (mips_reorg): Rerun mips_reorg_process_insns if it returns true.
5472 (mips_output_mi_thunk): Set must_initialize_gp_p.
5473 (mips_eh_uses): New function.
5474 * config/mips/predicates.md (cprestore_save_slot_operand)
5475 (cprestore_load_slot_operand): New predicates.
5476 * config/mips/mips.md (UNSPEC_POTENTIAL_CPRESTORE): New unspec.
5477 (UNSPEC_MOVE_GP): Likewise.
5478 (UNSPEC_CPRESTORE, UNSPEC_RESTORE_GP, UNSPEC_EH_RETURN)
5479 (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT): Bump to make room.
5480 (CPRESTORE_SLOT_REGNUM): New register.
5481 (MAX_PIC_BRANCH_LENGTH): New constant.
5482 (jal_macro): Use MIPS_ABSOLUTE_JUMPS.
5483 (length): Use MAX_PIC_BRANCH_LENGTH as a placeholder for PIC long
5484 branches. Fix commentary.
5485 (loadgp_newabi_<mode>): Change from unspec_volatile to unspec.
5486 Only split if mips_must_initialize_gp_p; expand to nothing otherwise.
5487 Change type to "ghost".
5488 (loadgp_absolute_<mode>): Likewise.
5489 (loadgp_rtp_<mode>): Likewise.
5490 (copygp_mips16): Likewise.
5491 (loadgp_blockage): Remove redundant mode attribute.
5492 (potential_cprestore): New instruction.
5493 (cprestore): Turn into an unspec set.
5494 (use_cprestore): New instruction.
5495 (*branch_fp): Swap operands 0 and 1. Remove redundant mode attribute.
5496 (*branch_fp_inverted): Likewise.
5497 (*branch_order<mode>): Likewise.
5498 (*branch_order<mode>_inverted): Likewise.
5499 (*branch_equality<mode>): Likewise.
5500 (*branch_equality<mode>_inverted): Likewise.
5501 (*branch_bit<bbv><mode>): Likewise.
5502 (*branch_bit<bbv><mode>_inverted): Likewise.
5503 (*branch_equality<mode>_mips16): Remove redundant mode.
5504 (jump): Turn into a define_expand.
5505 (*jump_absolute): New instruction.
5506 (*jump_pic): Likewise.
5507 (*jump_mips16): Rename previously-unnamed pattern. Remove
5508 redundant mode attribute.
5509 (restore_gp): Split on epilogue_completed rather than
5510 reload_completed. Change type to "ghost".
5511 (move_gp<mode>): New instruction.
5512 * config/mips/mips-dsp.md (mips_bposge): Swap operands 0 and 1.
5513 Remove redundant mode attribute.
5514 * config/mips/mips-ps-3d.md (bc1any4t): Likewise.
5515 (bc1any4f, bc1any2t, bc1any2f): Likewise.
5516 (*branch_upper_lower, *branch_upper_lower_inverted): Likewise.
5517
5b5e3bc4 55182009-09-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5519
5520 PR target/41210
5521 * config/rs6000/rs6000.c (rs6000_function_value): V2DF and V2DI
5522 are returned in the same register (vs34 or v2) that Altivec vector
5523 types are returned in.
5524 (rs6000_libcall_value): Ditto.
5525
5526 PR target/41331
5527 * config/rs6000/rs6000.c (rs6000_emit_move): Use gen_add3_insn
5528 instead of explicit addsi3/adddi3 calls.
5529 (rs6000_split_multireg_move): Ditto.
5530 (rs6000_emit_allocate_stack): Ditto.
5531 (rs6000_emit_prologue): Ditto.
5532 (rs6000_output_mi_thunk): Ditto.
5533
5534 * config/rs6000/rs6000.md (bswapdi*): Don't assume the pointer
5535 size is 64 bits if we can use 64-bit registers.
5536
e29b2b97 55372009-09-14 Bernd Schmidt <bernd.schmidt@analog.com>
5538
5539 * config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak
5540 symbols.
5541
0c3f2f8a 5542 From Jie Zhang <jie.zhang@analog.com>:
5543 * config/bfin/bfin.c (bfin_expand_prologue): Ask do_link to
5544 save FP and RETS with saveall attribute.
5545 (bfin_expand_epilogue): Ask do_unlink to restore FP and RETS
5546 with saveall attribute.
5547
3deb3527 5548 * config/bfin/bfin.c (bfin_expand_builtin,
5549 case BFIN_BUILTIN_MULT_1X32X32): Force constants to registers for the
5550 operands.
79b13b72 5551
3deb3527 5552 From Jie Zhang <jie.zhang@analog.com>:
5553 * config/bfin/bfin.c (bfin_expand_builtin): Initialize icodes
5554 before use in two places.
5555 * config/bfin/bfin.md (AREG): Define mode iterator.
5556 (reload_in, reload_out): Use mode iterator AREG.
5557
a274d5a7 55582009-09-14 Richard Guenther <rguenther@suse.de>
5559
5560 PR middle-end/41350
5561 * dwarf2out.c (dwarf2out_begin_prologue): Adjust non-CFI asm
5562 EH personality path.
5563
58d82cd0 55642009-09-13 Richard Guenther <rguenther@suse.de>
79b13b72 5565 Rafael Avila de Espindola <espindola@google.com>
58d82cd0 5566
5567 * langhooks-def.h (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
5568 (LANG_HOOKS_EH_PERSONALITY): Likewise.
5569 (LANG_HOOKS_INITIALIZER): Adjust.
5570 (lhd_pass_through_t): Declare.
5571 * langhooks.h (struct lang_hooks): Add eh_runtime_type and
5572 eh_personality.
5573 * langhooks.c (lhd_pass_through_t): New function.
79b13b72 5574 * dwarf2out.c (output_call_frame_info, dwarf2out_do_cfi_startproc,
58d82cd0 5575 dwarf2out_begin_prologue): Use personality from current_function_decl.
79b13b72 5576 * expr.h (get_personality_function): Declare.
58d82cd0 5577 * expr.c (get_personality_function): New function.
5578 (build_personality_function): Likewise.
79b13b72 5579 * libfuncs.h (libfunc_index): Remove LTI_eh_personality.
5580 (eh_personality_libfunc): Remove.
5581 * optabs.c (build_libfunc_function): New function split out from ...
58d82cd0 5582 (init_one_libfunc): ... here.
79b13b72 5583 * tree.h (DECL_FUNCTION_PERSONALITY): New.
5584 (tree_function_decl): Add personality.
58d82cd0 5585 (lhd_gcc_personality): Declare.
5586 (build_personality_function): Likewise.
5587 * tree.c (gcc_eh_personality_decl): New.
5588 (lhd_gcc_personality): New function.
5589 * except.h (lang_eh_runtime_type): Remove.
5590 (enum eh_personality_kind): New.
5591 (build_personality_function): Declare.
5592 (function_needs_eh_personality): Declare.
79b13b72 5593 * except.c (lang_eh_runtime_type): Remove.
58d82cd0 5594 (function_needs_eh_personality): New function.
5595 (add_type_for_runtime): Call lang_hooks.type_for_runtime instead.
79b13b72 5596 (sjlj_emit_function_enter, output_function_exception_table):
5597 Use personality from current_function_decl.
58d82cd0 5598 * tree-eh.c (lower_eh_constructs): Set DECL_FUNCTION_PERSONALITY.
5599 * tree-inline.c (tree_can_inline_p): Do not inline across different
5600 EH personalities.
5601 (expand_call_inline): Likewise. Adjust the callers EH personality.
5602 (tree_function_versioning): Copy DECL_FUNCTION_PERSONALITY.
5603 * cgraph.c (cgraph_add_new_function): Set DECL_FUNCTION_PERSONALITY.
5604 * Makefile.in (cgraph.o): Add $(EXCEPT_H) dependency.
5605 (c-parser.o): Likewise
5606 * c-tree.h (c_eh_initialized_p): Remove.
5607 (c_maybe_initialize_eh): Likewise.
5608 * c-decl.c (finish_decl): Don't call c_maybe_initialize_eh.
5609 (finish_decl): Don't call c_maybe_initialize_eh.
5610 (c_eh_initialized_p): Remove.
5611 (c_maybe_initialize_eh): Likewise.
79b13b72 5612 * c-parser.c (c_parser_omp_construct): Likewise.
58d82cd0 5613 (c_parse_file): Initialize exception handling.
5614
a4f7c8f7 56152009-09-13 Kai Tietz <kai.tietz@onevision.com>
5616
5617 * config.gcc (tm_file): Remove i386/biarch32.h
5618 for i?86-w64-mingw* case.
5619 (i?86-*-mingw* andx86_64-*-mingw*): Add multilib
5620 support.
9c837e05 5621 * config.host: Set for x64 mingw the option
5622 use_long_long_for_widest_fast_int to yes.
a4f7c8f7 5623
888bd5c2 56242009-09-13 Eric Botcazou <ebotcazou@adacore.com>
5625
5626 * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
5627 * dbxout.c (dbxout_function_end): Do not test DECL_IGNORED_P.
5628 (dbxout_begin_function): Likewise.
5629 * final.c (dwarf2_debug_info_emitted_p): New predicate.
5630 (final_start_function): Do not emit debug info if DECL_IGNORED_P is
5631 set on the function.
5632 (final_end_function): Likewise.
5633 (final_scan_insn): Likewise.
5634 (rest_of_handle_final): Likewise.
5635 * varasm.c (assemble_start_function): Likewise.
5636 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
5637
56382009-09-12 Jason Merrill <jason@redhat.com>
3f24af9b 5639
5640 * dbgcnt.c (dbg_cnt_process_single_pair): constify.
5641 * opts.c (common_handle_option): constify.
5642
73975b48 56432009-09-12 Gerald Pfeifer <gerald@pfeifer.com>
5644
4fe9de84 5645 * doc/install.texi (avr): Remove obsolete reference site.
5646
56472009-09-12 Gerald Pfeifer <gerald@pfeifer.com>
a6b4313a 5648
73975b48 5649 * doc/install.texi (Binaries): Adjust AIX link.
5650
d72b82f3 56512009-09-12 Akim Demaille <demaille@gostai.com>
5652
5653 * doc/invoke.texi (-fstrict-aliasing): Correct two examples.
5654 Use an imperative sentence.
5655
1fed3255 56562009-09-11 Richard Henderson <rth@redhat.com>
5657
5658 * gsstruct.def (DEFGSSTRUCT): Remove printable-name argument; add
5659 structure-name and has-tree-operands arguments; update all entries.
5660 * gimple.def (DEFGSCODE): Replace 3rd argument with GSS_symbol;
5661 update all entries.
5662 * gimple.c (gimple_ops_offset_): Use HAS_TREE_OP argument.
5663 (gsstruct_code_size): New.
5664 (gss_for_code_): New.
5665 (gss_for_code): Remove.
5666 (gimple_size): Rewrite using gsstruct_code_size.
5667 (gimple_statement_structure): Move to gimple.h.
5668 * gimple.h (gimple_ops_offset_, gss_for_code_): Declare.
5669 (gss_for_code, gimple_statement_structure): New.
5670 (gimple_ops): Use new arrays; tidy.
5671
7fd14dc3 56722009-09-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5673
5674 * config/pa/predicates.md (symbolic_operand): Require a CONST symbolic
5675 operand to be a PLUS expression.
5676 * config/pa/pa.c (pa_secondary_reload): Likewise.
5677
59a373e1 56782009-09-11 Jakub Jelinek <jakub@redhat.com>
5679
05955b29 5680 * combine.c (propagate_for_debug_subst): Call wrap_constant on top.
5681
59a373e1 5682 * print-rtl.c (print_rtx): Use JUMP_LABEL (in_rtx) instead of
5683 XEXP (in_rtx, 8).
5684
59fbccf3 56852009-09-11 Bernd Schmidt <bernd.schmidt@analog.com>
5686
5687 From Jie Zhang <jie.zhang@analog.com>:
5688 * doc/extend.texi (node Function Attributes): Document l2
5689 function attribute.
5690 (node Blackfin Variable Attributes): Document l2 variable attributes.
5691
d52a86c7 56922009-09-11 Loren J. Rittle <ljrittle@acm.org>
5693
5694 * config.gcc (*-*-freebsd*): Enable default_use_cxa_atexit
5695 to match the system compiler's configuration at inflection point.
5696 Add comment to remark a remaining difference with system compiler.
5697
a85687e8 5698 * configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.
5699 * configure: Regenerate.
5700
aba5356f 57012009-09-11 Bernd Schmidt <bernd.schmidt@analog.com>
5702
5703 From Jie Zhang <jie.zhang@analog.com>:
5704 * config/bfin/bfin.c (bfin_expand_call): Handle L2 functions.
5705 (bfin_handle_l2_attribute): New.
5706 (bfin_attribute_table): Add l2 attribute.
5707
800b8c39 57082009-09-11 Michael Matz <matz@suse.de>
5709
5710 PR middle-end/41275
5711 * tree-inline.c (remap_decls): Don't put DECL_EXTERNAL decls
5712 on the local_decls list.
5713
3017bc06 57142009-09-11 Alexandre Oliva <aoliva@redhat.com>
5715
5716 PR debug/41276
5717 PR debug/41307
5718 * cselib.c (cselib_expand_value_rtx_cb): Document callback
5719 interface.
5720 (cselib_expand_value_rtx_1): Use callback for SUBREGs. Adjust
5721 for VALUEs, to implement the documented interface.
5722 * var-tracking.c (vt_expand_loc_callback): Handle SUBREGs.
5723 Adjust for VALUEs and anything else, to implement the
5724 documented interface.
5725
d6516a1e 57262009-09-10 Nathan Froyd <froydnj@codesourcery.com>
5727
5728 * config/rs6000/rs6000.h (DATA_ALIGNMENT): Check that we are dealing
5729 with actual SPE/paired vector modes before using 64-bit alignment.
5730 Check that TYPE is a REAL_TYPE for TARGET_E500_DOUBLE.
5731
f4eeff0e 57322009-09-10 DJ Delorie <dj@redhat.com>
5733
5734 * config/mep/mep.md (eh_epilogue): Defer until after epilogue is
5735 emitted.
5736
5737 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): New.
5738 * config/mep/mep.c (mep_legitimate_constant_p): New.
5739 * config/mep/mep-protos.h: Prototype it.
5740
4ae4dd43 57412009-09-10 Richard Henderson <rth@redhat.com>
5742
5743 * print-rtl.c (print_rtx): Fix JUMP_LABEL index.
5744
7616de93 57452009-09-10 Jason Merrill <jason@redhat.com>
5746
5747 * tree.c (chain_index): New fn.
5748 * tree.h: Declare it.
5749
71441fcb 57502009-09-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5751
5752 * config/sol2-c.c (cmn_err_length_specs): Initialize
5753 scalar_identity_flag.
5754
7c41b799 57552009-09-10 Richard Henderson <rth@redhat.com>
5756
313b1a2e 5757 * tree.h (struct tree_decl_common): Move align member earlier;
5758 move label_decl_uid member ...
5759 (struct tree_label_decl): ... here.
5760 (LABEL_DECL_UID): Update to match.
5761
f89f1788 5762 * tree-cfg.c (dump_function_to_file): Dump eh tree with TDF_EH,
5763 not TDF_DETAILS.
5764
7055eea1 5765 * tree-cfg.c (gimple_redirect_edge_and_branch): Do
5766 gimple_try_redirect_by_replacing_jump test after no-op and EH tests.
5767
0882aafd 5768 * tree-cfg.c (split_edge_bb_loc): Don't disallow placement at
5769 dest_prev if the edge is complex.
5770
977411a6 5771 * tree-cfg.c (is_ctrl_stmt): Use a switch.
5772
c6407fab 5773 * tree-cfg.c (gimple_can_merge_blocks_p): Move label and
5774 loop latch tests earlier.
5775
852cdc63 5776 * gimple-iterator.c (gimple_find_edge_insert_loc): Insert
5777 before GIMPLE_RETURN, not after its predecessor; insert
5778 before GIMPLE_RESX.
5779
7c41b799 5780 * gimple-iterator.c (gimple_find_edge_insert_loc): Use
5781 gimple_seq_empty_p to test for no PHI nodes.
5782 * tree-cfg.c (split_critical_edges): Likewise.
5783
90b8bebd 5784 * c-common.h (c_dialect_cxx, c_dialect_objc): Boolify.
5785
766aacfc 57862009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com>
5787
5788 * final.c (shorten_branches) : Ignore DEBUG_INSN_P instructions
79b13b72 5789 introduced by the VTA branch merge.
766aacfc 5790
609e7ca1 57912009-09-10 Uros Bizjak <ubizjak@gmail.com>
5792
5793 * ira-conflicts.c: Use fputs or putc instead of fprintf
5794 where appropriate.
5795 * cfg.c: Ditto.
5796 * toplev.c: Ditto.
5797 * tree-switch-conversion.c: Ditto.
5798
57992009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com>
975effd9 5800
5801 * config/picochip/picochip.c : Ignore DEBUG_INSN_P instructions
79b13b72 5802 introduced by the VTA branch merge.
975effd9 5803
609e7ca1 58042009-09-10 Uros Bizjak <ubizjak@gmail.com>
79a80d86 5805
5806 Revert:
5807 2009-09-09 Uros Bizjak <ubizjak@gmail.com>
5808
5809 PR rtl-optimization/39779
5810 * expr.c (convert_modes): Return when mode == oldmode after
5811 CONST_INTs are processed.
5812
2d6df6a7 58132009-09-10 Nick Clifton <nickc@redhat.com>
5814
5815 * config/mep/mep.c (mep_encode_section_info): Copy weakness
5816 attribute and referring decl when creating renamed symbol.
5817
9929334e 58182009-09-10 Richard Guenther <rguenther@suse.de>
5819
5820 PR middle-end/41257
5821 * cgraphunit.c (cgraph_emit_thunks): Emit thunks only for
5822 reachable nodes.
5823 (cgraph_finalize_compilation_unit): Compute reachability
5824 before emitting thunks. Properly process aliases before
5825 possibly removing unreachable nodes.
5826
969443c4 58272009-09-10 Richard Guenther <rguenther@suse.de>
5828
5829 PR middle-end/41254
5830 * tree.c (struct free_lang_data_d): Add worklist member.
5831 (find_decls_types_r): Push onto the worklist instead of recursing.
5832 Handle TREE_BINFOs properly.
5833 (find_decls_types): New function wrapped around find_decls_types_r
5834 to process the worklist.
5835 (find_decls_types_in_eh_region): Use it.
5836 (find_decls_types_in_node): Likewise.
5837 (find_decls_types_in_var): Likewise.
5838 (free_lang_data_in_cgraph): Likewise. Free the worklist.
5839 * tree.h (RECORD_OR_UNION_TYPE_P): New.
5840 (AGGREGATE_TYPE_P): Adjust.
5841
5219ed35 58422009-09-09 Jason Merrill <jason@redhat.com>
5843
5844 * configure.ac: Check glibc version even if we have an in-tree
5845 assembler.
5846
96e0c169 58472009-09-09 Anthony Green <green@moxielogic.com>
5848
5849 * config/moxie/moxie.md (*movsi, *movhi, *movqi): Use xor to load
5850 the constant 0 when appropriate.
5851 * config/moxie/constraints.md: Add constraint O.
5852
5853 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Adjust
5854 to pass up to 6 32-bit argument values in registers.
5855 (moxie_function_arg): Ditto.
5856 (moxie_arg_partial_bytes): Ditto.
5857 * config/moxie/moxie.h (FUNCTION_ARG_ADVANCE): Ditto.
5858 (REG_PARM_STACK_SPACE): Ditto.
5859 (FUNCTION_ARG_REGNO_P): Ditto.
5860
5861 * config/moxie/moxie.c (moxie_expand_prologue): Use dec
5862 instruction to allocate stack space.
5863
339eaf1e 58642009-09-09 Segher Boessenkool <segher@kernel.crashing.org>
5865
5866 * config/rs6000/rs6000.md (bswapdi2_64bit): Fix
5867 unnecessarily stringent constraints. Fix address
5868 calculation in the splitters.
5869
23e25490 58702009-09-09 Uros Bizjak <ubizjak@gmail.com>
5871
5872 PR rtl-optimization/39779
5873 * expr.c (convert_modes): Return when mode == oldmode after
5874 CONST_INTs are processed.
5875
066b1381 58762009-09-09 Kai Tietz <kai.tietz@onevision.com>
5877
5878 PR/41315
23e25490 5879 * config/i386.c (ix86_can_use_return_insn_p): Check for padding0, too.
066b1381 5880 (ix86_expand_prologue): Take frame.padding0 into logic of
5881 to_allocate checks.
5882 (ix86_expand_epilogue): Likewise.
5883
a3eb2117 58842009-09-09 Jakub Jelinek <jakub@redhat.com>
5885
5886 * config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK):
5887 New variables.
5888 (SHLIB_LINK, SHLIB_INSTALL): Use them.
5889 * config/t-slibgcc-libgcc: New file.
5890 * config.gcc (powerpc*-*-linux*, powerpc*-*-gnu*): Use it.
5891
4a729a5e 58922009-09-09 Martin Jambor <mjambor@suse.cz>
5893
5894 PR tree-optimization/41089
5895 * tree-sra.c (find_var_candidates): Do not consider va_lists in
5896 early SRA.
5897
1a9a4436 58982009-09-09 Richard Henderson <rth@redhat.com>
5899
5900 * gimple.h (CASE_GIMPLE_OMP): New.
5901 (is_gimple_omp): Use it.
5902 * tree-cfg.c (is_ctrl_altering_stmt): Likewise.
5903 (verify_gimple_debug): Likewise.
5904
2978fc3d 59052009-09-09 Richard Guenther <rguenther@suse.de>
5906
5907 PR tree-optimization/41101
5908 * tree-ssa-pre.c (maximal_set): Remove.
5909 (compute_antic_aux): Treat the maximal set as implicitly all ones.
5910 Defer all blocks we didn't visit at least one successor.
5911 (add_to_exp_gen): Do not add to the maximal set.
5912 (make_values_for_phi): Likewise.
5913 (compute_avail): Likewise.
5914 (init_pre): Do not allocate the maximal set.
5915 (execute_pre): Do not dump it.
5916
0067d56e 59172009-09-09 Martin Jambor <mjambor@suse.cz>
5918
5919 * tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is
5920 an SSA_NAME rather than a is_gimple_variable.
5921
3d8f99df 59222009-09-09 Richard Guenther <rguenther@suse.de>
5923
5924 PR middle-end/41317
5925 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Remove
5926 code dealing with plain pointer bases.
5927 (maybe_fold_offset_to_reference): Likewise.
5928 (maybe_fold_stmt_addition): Adjust.
5929
ca1de3a6 59302009-09-09 Richard Guenther <rguenther@suse.de>
5931
5932 * tree.c (free_lang_data_in_type): Do not free the type variant
5933 chains.
5934 (free_lang_data): Merge char_type_node with its properly signed
5935 variant.
5936 (pass_ipa_free): Collect after freeing language specific data.
5937
088c4b7b 59382009-09-09 Michael Matz <matz@suse.de>
5939
5940 PR middle-end/41268
5941 * cfgexpand.c (expand_gimple_stmt_1): Use an int for storing
5942 SUBREG_PROMOTED_UNSIGNED_P, instead of a bool.
5943 * rtl.h (struct rtx, SUBREG_PROMOTED_UNSIGNED_P): Update comments
5944 to reflect reality.
5945
2e24255f 59462009-09-08 DJ Delorie <dj@redhat.com>
5947
5948 * config/mep/mep.c (conversions[]): Add "ml" pattern.
5949
f4a9ca14 59502009-09-04 Jason Merrill <jason@redhat.com>
5951
5952 * tree.c (tree_find_value): Remove.
5953 * tree.h: Remove prototype.
5954 * varasm.c (assemble_external): Use value_member instead.
5955
bb6e20de 59562009-09-08 Alexandre Oliva <aoliva@redhat.com>
5957
5958 * toplev.c (process_options): Choose default debugging type when
5959 gtoggle enables debug info and type is unset.
5960
2a60612c 59612009-09-08 Alexandre Oliva <aoliva@redhat.com>
5962
5963 PR debug/41276
5964 PR debug/41307
5965 * cselib.c (cselib_expand_value_rtx_1): Don't return copy of
5966 invalid subreg.
5967
81540bae 59682009-09-08 Alexandre Oliva <aoliva@redhat.com>
5969
5970 * configure: Rebuilt with modified libtool.m4.
5971
f5f73210 59722009-09-08 Alexandre Oliva <aoliva@redhat.com>
5973
5974 PR debug/41229
5975 PR debug/41291
5976 PR debug/41300
5977 * tree-ssa.c (execute_update_addresses_taken): Update debug insns.
5978
1b223194 59792009-09-08 Alexandre Oliva <aoliva@redhat.com>
5980
5981 * tree-ssa-loop-ivopts.c (get_phi_with_result): Remove.
5982 (remove_statement): Likewise.
5983 (rewrite_use_nonlinear_expr): Adjust.
5984 (remove_unused_ivs): Collect SSA NAMEs to remove and call...
5985 * tree-ssa.c (release_defs_bitset): ... this. New.
5986 * tree-flow.h (release_defs_bitset): Declare.
5987
445a6ba5 59882009-09-08 Alexandre Oliva <aoliva@redhat.com>
5989
5990 PR debug/41232
5991 * tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts
5992 in the middle block.
5993
82e964b0 59942009-09-08 Kai Tietz <kai.tietz@onevision.com>
5995
89fc44d1 5996 * tree-ssa-reassoc.c (find_operand_rank): Cast pointer
5997 via intptr_t to long type.
5998 (insert_operand_rank): Cast long type via intptr_t to
5999 pointer type.
6000 * genattrtab.c (RTL_HASH): Use intptr_t to cast from
6001 pointer to scalar.
6002 * c-pretty-print.c (pp_c_tree_decl_identifier): Cast
6003 from pointer to unsigned via uintptr_t.
6004
82e964b0 6005 * configure.ac (GCC_STDINT_TYPES): Initialize intptr_t,
6006 uintptr_t, HAVE_INTTYPES_H, HAVE_STDINT_H, HAVE_UINTPTR_T,
6007 and HAVE_INTPTR_T.
6008 * configure: Regenerated.
6009 * config.in: Regenerated
6010 * system.h (stdint.h): Add include.
6011 (inttypes.h): Likewise.
6012 * Makefile.in (aclocal): Add config/stdint.m4.
6013 * aclocal.m4: Regenerated.
6014
e36d8ec6 60152009-09-08 Bernd Schmidt <bernd.schmidt@analog.com>
6016
6017 * config/bfin/bfin.c (np_check_regno, np_after_branch): New static
6018 variables.
6019 (note_np_check_stores): New function.
6020 (harmless_null_pointer_p): New function.
6021 (trapping_loads_p): New args NP_REG and AFTER_NP_BRANCH. Callers
6022 changed. Take into account whether we're in the shadow of a condjump
6023 that tested NP_REG for NULL.
6024 Lose all code that tested for SEQUENCEs.
6025 (workaround_speculation): Avoid inserting NOPs for loads that are
6026 either always executed or a NULL pointer.
6027
11b21bc8 60282009-09-08 Jan Hubicka <jh@suse.cz>
6029
6030 * doc/invoke.texi (early-inlining-insns): Reduce from 12 to 8.
6031 * params.def (early-inlining-insns): Likewise.
6032
326d0c19 60332009-09-08 Jakub Jelinek <jakub@redhat.com>
6034
6035 PR rtl-optimization/41239
6036 * sched-int.h (struct deps): Add last_function_call_may_noreturn field.
6037 * sched-rgn.c (deps_join): Join also last_function_call_may_noreturn
6038 lists.
6039 * sched-deps.c (sched_analyze_insn): Prevent moving trapping insns
6040 across calls, as the calls might not always return normally.
6041 (call_may_noreturn_p): New function.
6042 (deps_analyze_insn): Update last_function_call_may_noreturn list.
6043 (init_deps): Initialize it.
6044 (remove_from_deps): Also remove calls from
6045 last_function_call_may_noreturn list.
6046
0d5b37dd 60472009-09-07 Richard Henderson <rth@redhat.com>
6048
6049 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are
6050 more VR->OPERANDS than LHS operands. Free LHS before returning.
6051
80e585b2 60522009-09-07 Bernd Schmidt <bernd.schmidt@analog.com>
6053
6054 * config/bfin/bfin.md (UNSPEC_VOLATILE_STALL): New constant.
6055 (attr "addrtype"): New member "spreg".
6056 Use it if mem_spfp_address_operand is true for the address.
6057 (attr "type"): New entry "stall".
6058 (cpu_unit "load"): New.
6059 (insn_reservations "load32", "loadp", "loadi"): Add reservation of
6060 "load".
6061 (insn_reservation "loadsp"): New.
6062 (insn_reservation "load_stall1"): New.
6063 (insn_reservation "load_stall3"): New.
23e25490 6064 (stall): New insn.
80e585b2 6065 * config/bfin/predicates.md (const1_operand, const3_operand): New.
6066 (mem_p_address_operand): Exclude stack and frame pointer based
6067 addresses.
6068 (mem_spfp_address_operand): New; match them here.
6069 * config/bfin/bfin.c (add_sched_insns_for_speculation): New function.
6070 (bfin_reorg): Call it if scheduling insns.
6071 (bfin_gen_bundles): Remove dummy insns created by
6072 add_sched_insns_for_speculation.
6073
eb6236e0 6074 From Jie Zhang <jie.zhang@analog.com>:
6075 * config/bfin/bfin-protos.h (enum bfin_cpu_type, bfin_cpu_type,
6076 bfin_si_revision, bfin_workarounds): Move these ...
6077 * config/bfin/bfin.h: ... here.
6078
17eea64f 6079 From Mike Frysinger <michael.frysinger@analog.com>
6080 * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF542M,
6081 BFIN_CPU_BF544M, BFIN_CPU_BF547M, BFIN_CPU_BF548M, and BFIN_CPU_BF549M.
23e25490 6082 * config/bfin/bfin.c (bfin_cpus[]): Add 0.3 for bf542m, bf544m,
6083 bf547m, bf548m, and bf549m.
17eea64f 6084 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF542M__
23e25490 6085 for BFIN_CPU_BF542M, __ADSPBF544M__ for BFIN_CPU_BF544M,
6086 __ADSPBF547M__ for BFIN_CPU_BF547M, __ADSPBF548M__ for
6087 BFIN_CPU_BF548M, and __ADSPBF549M__ for BFIN_CPU_BF549M.
17eea64f 6088 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
6089 bf542m-none, bf544m-none, bf547m-none, bf548m-none, and bf549m-none.
6090 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
6091 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
6092 * doc/invoke.texi (Blackfin Options): Document that -mcpu now accepts
6093 bf542m, bf544m, bf547m, bf548m, and bf549m.
6094
6ed2288f 6095 From Jie Zhang <jie.zhang@analog.com>:
23e25490 6096 * config/bfin/predicates.md (p_register_operand): New predicate.
6ed2288f 6097 (dp_register_operand): New predicate.
6098 * config/bfin/bfin-protos.h (WA_05000074): Define.
6099 (ENABLE_WA_05000074): Define.
23e25490 6100 * config/bfin/bfin.c (bfin_cpus[]): Add WA_05000074 for all cpus.
6ed2288f 6101 (bfin_gen_bundles): Put dsp32shiftimm instruction in slot[0].
6102 * config/bfin/bfin.md (define_attr type): Add dsp32shiftimm.
23e25490 6103 (define_attr addrtype): Allow load/store register to be P register.
6ed2288f 6104 (define_attr storereg): New.
6105 (define_cpu_unit anomaly_05000074): New.
6106 (define_insn_reservation dsp32shiftimm): New.
6107 (define_insn_reservation dsp32shiftimm_anomaly_05000074): New.
6108 (define_insn_reservation loadp): Cannot use slot2.
6109 (define_insn_reservation loadsp): Cannot use slot2.
6110 (define_insn_reservation storep): Cannot use slot2. Does not
6111 apply when working around 05000074.
6112 (define_insn_reservation storep_anomaly_05000074): New.
6113 (define_insn_reservation storei): Does not apply when working
6114 around 05000074.
6115 (define_insn_reservation storei_anomaly_05000074): New.
6116 (define_attr length): Add dsp32shiftimm case.
6117 (define_insn movsi_insn32, movsi_insv, ashlsi3_insn, ashrsi3,
6118 ror_one, rol_one, lshrsi3, lshrpdi3, ashrpdi3, movhiv2hi_low,
6119 movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi,
6120 ssashiftv2hi3, ssashifthi3, ssashiftsi3, lshiftv2hi3, lshifthi3):
6121 Set type as dsp32shiftimm for dsp32shiftimm alternatives.
6122
aebee833 61232009-09-07 Martin Jambor <mjambor@suse.cz>
6124
6125 PR middle-end/41282
6126 * tree-sra.c (create_artificial_child_access): Return NULL if
6127 build_ref_for_offset fails.
6128 (propagate_subacesses_accross_link): Allow build_ref_for_offset
6129 and create_artificial_child_access to fail.
6130
8690ec05 61312009-09-06 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
6132
6133 PR c++/41214
79b13b72 6134 * unwind-dw2.c (uw_init_context_1): Mark noinline.
8690ec05 6135 * config/ia64/unwind-ia64.c (uw_init_context_1): Likewise.
6136 * config/xtensa/unwind-dw2-xtensa.c (uw_init_context_1): Likewise.
6137
4132c07c 61382009-09-07 Bernd Schmidt <bernd.schmidt@analog.com>
6139
6140 * config/bfin/bfin.c (bfin_optimize_loop): When creating a new basic
6141 block, ensure it has an exit edge. Emit a barrier after a jump.
6142
d7ee9e9b 61432009-09-07 Nick Clifton <nickc@redhat.com>
6144
6145 * gcc.c (this_is_linker_script): New variable. Like
6146 this_is_library_file but for the %T constructor.
6147 (end_going_arg): If this_is_linker_script is set then locate the
6148 script and insert a --script switch before it
79b13b72 6149 (do_spec_2): Initialise this_is_linker_script.
6150 (do_spec_1): Likewise. Handle %T construct.
6151 (eval_spec_function): Preserve this_is_linker_script.
d7ee9e9b 6152 * doc/invoke.texi: Document %T construct in spec files.
6153 * config/m32c/m32c.h (LIB_SPEC): Use it.
6154
6540132c 61552009-09-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6156
23e25490 6157 * rtl.h (PREFETCH_SCHEDULE_BARRIER_P): New macro.
6540132c 6158 * sched-deps.c (sched_analyze_2): Make prefetches a hard barrier
6159 when volatile flag is set.
6160 * doc/rtl.texi (PREFETCH_SCHEDULE_BARRIER_P): Add documentation pieces.
6161
49701254 61622009-09-06 Eric Botcazou <ebotcazou@adacore.com>
6163
6164 PR bootstrap/41241
6165 * combine-stack-adj.c (try_apply_stack_adjustment): Handle stores.
6166 (combine_stack_adjustments_for_block): Allow insns between stack
5a374a69 6167 adjustments and stores with corresponding pre-(dec|inc)rement or
6168 pre-modify operation.
49701254 6169
c189c8e3 61702009-09-06 Jakub Jelinek <jakub@redhat.com>
6171
6172 PR bootstrap/41241
6173 * combine-stack-adj.c (struct csa_memlist): Rename to...
6174 (struct csa_reflist): ... this. Rename mem field to ref.
6175 (free_csa_memlist): Rename to...
6176 (free_csa_reflist): ... this.
6177 (record_one_stack_memref): Rename to...
6178 (record_one_stack_ref): ... this. Handle also REG_P.
6179 (try_apply_stack_adjustment): Handle also REG_P.
6180 (struct record_stack_memrefs_data): Rename to...
6181 (struct record_stack_refs_data): ... this. Rename memlist field to
6182 reflist.
6183 (record_stack_memrefs): Rename to...
6184 (record_stack_refs): ... this. For DEBUG_INSNs keep traversing
6185 subexpressions instead of failing when a MEM contains SP references.
6186 For SP itself in DEBUG_INSNs queue it also onto reflist chain.
6187 (combine_stack_adjustments_for_block): Adjust for mem to ref renaming.
6188
c8de116d 61892009-09-06 Richard Guenther <rguenther@suse.de>
6190
6191 PR middle-end/41144
6192 * tree.c (build_array_type): Do not record types marked
6193 with structural equality in the canonical type hashtable.
6194
ceefbccc 61952009-09-06 Richard Guenther <rguenther@suse.de>
6196
6197 PR middle-end/41261
6198 * tree-ssa-alias.c (refs_may_alias_p_1): Bail out for function decls.
6199
aab01f66 62002009-09-05 Richard Guenther <rguenther@suse.de>
6201
6202 PR middle-end/41181
6203 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use the correct type.
6204
afcada6e 62052009-09-05 Richard Guenther <rguenther@suse.de>
6206
6207 PR debug/41273
6208 * tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops.
6209
9fc8f414 62102009-09-05 Richard Guenther <rguenther@suse.de>
6211
6212 PR middle-end/41271
6213 * tree-ssa.c (useless_type_conversion_p): Drop qualifiers
6214 before comparing function argument types.
6215
c16c63ec 62162009-09-05 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6217
6218 PR target/41024
6219 * config/i386/mingw-w64.h (ASM_SPEC): Pass -v instead of -V to
6220 the assembler.
6221
221a03b9 62222009-09-04 Uros Bizjak <ubizjak@gmail.com>
6223
6224 Revert:
6225 2009-08-18 Uros Bizjak <ubizjak@gmail.com>
6226
6227 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
6228 locators before emit_insn is called.
6229
dfdf7785 62302009-09-04 Vladimir Makarov <vmakarov@redhat.com>
6231
6232 PR bootstrap/41241
6233 * ira.c (update_equiv_reg): Revert my previous patch for the PR.
6234 * reginfo.c (resize_reg_info): Call allocate_reg_info if necessary.
6235 (reginfo_init): Don't call allocate_reg_info.
6236
30608852 62372009-09-04 Uros Bizjak <ubizjak@gmail.com>
6238
6239 PR target/41262
6240 * config/alpha/alpha.c (alpha_does_function_need_gp): Use
6241 NONDEBUG_INSN_P instead of INSN_P.
6242
8a5b28c9 62432009-09-04 Alexandre Oliva <aoliva@redhat.com>
6244
6245 PR debug/41225
6246 * tree-vect-stmts.c (vect_stmt_relevant_p): Skip debug uses.
6247
751b9f65 62482009-09-04 Alexandre Oliva <aoliva@redhat.com>
6249
6250 PR target/41252
6251 * config/arm/vfp.md (*cmpdf_split_vfp): Fix src mode in the second
6252 pattern of the split.
6253
8f7630da 62542009-09-04 Alexandre Oliva <aoliva@redhat.com>
6255
6256 * toplev.c (process_options): Move setter of flag_var_tracking
6257 before other tests that depend on it. Move down setter of
6258 flag_rename_registers. Don't enable var-tracking-assignments
6259 by default if selective scheduling is enabled. Warn if both
6260 are enabled.
6261
5d8a44e0 62622009-09-04 Alexandre Oliva <aoliva@redhat.com>
6263
6264 * var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match
6265 comment. Use switch statement to catch overlaps between rtx
6266 and tree codes. Accept FUNCTION_DECLs in addition to those in...
6267 (IS_DECL_CODE): ... here. Remove.
6268 (check_value_is_not_decl): Remove.
6269 (dv_from_decl, dv_from_value): Check after conversion.
6270
8f69fd82 62712009-09-04 Richard Guenther <rguenther@suse.de>
6272
6273 PR middle-end/41257
6274 * (cgraph_finalize_compilation_unit): Move finalizing aliases
6275 after emitting tunks. Move emitting thunks and ctors from ...
6276 (cgraph_optimize): ... here. Remove redundant
6277 cgraph_analyze_functions.
6278 * varasm.c (find_decl_and_mark_needed): Remove no longer
6279 necessary check.
6280 (finish_aliases_1): Adjust check for thunk aliases.
6281
30191172 62822009-09-04 Daniel Gutson <dgutson@codesourcery.com>
6283
6284 * config/arm/arm.md (ctzsi2): Added braces
6285 to avoid warning that broke booststrap.
6286
19657547 62872009-09-04 Martin Jambor <mjambor@suse.cz>
6288
6289 PR tree-optimization/41112
6290 * tree-sra.c (build_ref_for_offset_1): Signal that we cannot
6291 handle variable-bounded arrays.
6292 (expr_with_var_bounded_array_refs_p): New function.
6293 (analyze_access_subtree): Call expr_with_var_bounded_array_refs_p.
6294
b0eacf26 62952009-09-04 Wolfgang Gellerich <gellerich@de.ibm.com>
6296
6297 * config/s390/2097.md: Removed two incorrect bypasses.
6298 (z10_fsimpdf): Fixed latency.
6299 (z10_fhex): New insn_reservation.
6300 (z10_floaddf): Fixed latency.
6301 (z10_floadsf): Fixed latency.
6302 (z10_ftrunctf): Fixed latency.
6303 (z10_ftruncdf): Fixed latency.
6304 * config/s390/s390.c (z10_cost): Fixed values.
6305 (s390_adjust_priority): Added z10 path.
6306 * config/s390/s390.md (type): Added fhex.
6307 (*mov<mode>_64dfp): Updated type attribute.
6308 (*mov<mode>_64): Updated type attribute.
6309 (*mov<mode>_31): Updated type attribute.
6310 (*mov<mode>"): Likewise.
6311 * config/s390/2084.md (x_fsimpdf): Updated condition.
6312
38516f30 63132009-09-04 Andreas Krebbel <krebbel1@de.ibm.com>
6314
6315 * config/s390/s390.md ("*fmadd<mode>", "*fmsub<mode>"): Enable mem
6316 RTXs in the predicate for operand 1.
6317
099ad98b 63182009-09-03 Daniel Gutson <dgutson@codesourcery.com>
6319
6320 * config/arm/arm.md (UNSPEC_RBIT): New constant.
6321 (rbitsi2): New insn.
6322 (ctzsi2): New expand.
6323 * config/arm/arm.h (CTZ_DEFINED_VALUE_AT_ZERO): New macro.
6324
c5463aeb 63252009-09-03 Martin Jambor <mjambor@suse.cz>
6326
6327 * tree-sra.c (duplicate_expr_for_different_base): Removed.
6328 (create_artificial_child_access): Use build_ref_for_offset instead
6329 of duplicate_expr_for_different_base.
6330 (propagate_subacesses_accross_link): Likewise.
30608852 6331
d84072f4 63322009-09-03 Richard Sandiford <rdsandiford@googlemail.com>
6333
6334 * config/mips/mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead
6335 of INSN_P.
6336 (mips16e_collect_argument_saves): Skip debug instructions.
6337 (mips_74k_agen_init): Use CALL_P || JUMP_P instead of !NONJUMP_INSN_P.
6338 (mips16_lay_out_constants): Use USEFUL_INSN_P instead of INSN_P.
6339 (r10k_insert_cache_barriers): Likewise.
6340 (mips_reorg_process_insns): Likewise.
6341
ffca81e8 63422009-09-03 Vladimir Makarov <vmakarov@redhat.com>
6343
6344 PR bootstrap/41241
6345 * ira.c (update_equiv_reg): Remove check on class likely spill.
6346
d92e3973 63472009-09-03 Jakub Jelinek <jakub@redhat.com>
6348
8c3c6655 6349 PR debug/41236
6350 * dwarf2out.c (loc_descriptor): Don't use SUBREG_REG macro on
6351 SIGN_EXTEND or ZERO_EXTEND. Don't assume there is a REG inside of
6352 it or SUBREG.
6353
d92e3973 6354 PR debug/41238
6355 * function.c (assign_parm_find_stack_rtl): Don't set mem attributes on
6356 the stack slot if it is passed by invisible reference.
28069fda 6357 * var-tracking.c (vt_add_function_parameters): Handle arguments passed
6358 by invisible reference.
d92e3973 6359
4bb5cea5 63602009-09-03 Bernd Schmidt <bernd.schmidt@analog.com>
6361
6362 * config/bfin/linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
6363 * config/bfin/uclinux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
6364 * config/bfin/bfin.h (TARGET_SUPPORTS_SYNC_CALLS): Provide default of
6365 0.
6366 * config/bfin/sync.md: New file.
6367 * config/bfin/bfin.md: Include it.
6368 (UNSPEC_ATOMIC): New.
6369 (UNSPEC_ONES): Provide a unique number.
6370
6371 From Jie Zhang <jie.zhang@analog.com>:
6372 * config/bfin/bfin.c (ret_regs): New.
6373 (must_save_fp_p): Don't return true because of frame_pointer_needed.
6374 (must_save_rets_p): New.
6375 (n_regs_saved_by_prologue): Use must_save_rets_p instead of
6376 current_function_is_leaf.
6377 (do_link): Likewise.
6378 (do_unlink): Likewise.
6379 (expand_interrupt_handler_prologue): Use ret_regs array.
6380 (expand_interrupt_handler_epilogue): Use ret_regs array and
6381 pass return register to gen_return_internal.
6382 (bfin_expand_epilogue): Pass return register to
6383 gen_return_internal.
6384 (bfin_expand_call): Explicitly clobber RETS.
6385 * config/bfin/bfin.h (FUNCTION_RETURN_REGISTERS): Define.
6386 * config/bfin/bfin.md (call_symbol_fdpic, call_value_symbol_fdpic,
6387 call_insn_fdpic, call_value_insn_fdpic, call_symbol,
6388 call_value_symbol, call_insn, call_value_insn): Explicitly clobber
6389 RETS.
6390 (return_internal): Take a reg rtx rather than the register number.
6391
88ee9bf1 63922009-09-03 H.J. Lu <hongjiu.lu@intel.com>
6393
6394 * tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT
6395 when comparing against estimated_loop_iterations_int return.
6396
913310db 63972009-09-03 Richard Guenther <rguenther@suse.de>
6398
6399 * dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
6400 eh_personality_libfunc.
6401
47dab8d2 64022009-09-03 Razya Ladelsky <razya@il.ibm.com>
6403
6404 * tree-parloops.c (separate_decls_in_region): Add space.
30608852 6405
bea31c0c 64062009-09-03 Razya Ladelsky <razya@il.ibm.com>
6407
30608852 6408 * tree-parloops.c (separate_decls_in_region): Change the condition
bea31c0c 6409 checking if there are reductions in the loop.
6410
8d0991cf 64112009-09-03 Razya Ladelsky <razya@il.ibm.com>
6412
6413 PR tree-optimization/38275
30608852 6414 * tree-parloops.c (parallelize_loops): Replace profitability condition
8d0991cf 6415 for expected number of iterations.
6416
719faf1c 64172009-09-03 Alexandre Oliva <aoliva@redhat.com>
6418
6419 * doc/invoke.texi (BUILD_CONFIG): Document --with-build-config.
6420 (bootstrap-debug): Explain conditions in which it becomes default.
6421 (bootstrap-debug-big): Rather than duplicate bootstrap-debug,
6422 make it add to it.
6423
d5d05c54 64242009-09-03 Namhyung Kim <namhyung@gmail.com>
6425
6426 * doc/invoke.texi (Optimize Options): Move
6427 -finline-small-functions to the -O2 list.
6428
ff79704e 64292009-09-03 Alexandre Oliva <aoliva@redhat.com>
6430
6431 * toplev.c (process_options): Enable var-tracking-assignments
6432 by default if var-tracking is enabled.
6433
bcc66782 64342009-09-02 David Daney <ddaney@caviumnetworks.com>
6435
6436 * cfgbuild.c (find_bb_boundaries): Split blocks containing a
6437 barrier.
6438 * emit-rtl.c (prev_nonnote_insn_bb): New function.
6439 * rtl.h (prev_nonnote_insn_bb): Declare it.
6440
34e5cced 64412009-09-03 Diego Novillo <dnovillo@google.com>
6442
6443 * cgraph.c (cgraph_node_for_decl): New.
6444 * cgraph.h (cgraph_node_for_decl): Declare.
6445 * tree.c (host_integerp): Return 0 if T is NULL.
6446
64472009-09-03 Diego Novillo <dnovillo@google.com>
6448
6449 * tree.h (struct alias_pair): Move from varasm.c.
6450 (alias_pairs): Likewise.
6451 (TYPE_MAXVAL): Define.
6452 (TYPE_MINVAL): Define.
6453 (iterative_hash_host_wide_int): Declare.
6454 (remove_unreachable_alias_pairs): Declare.
6455 * tree-pass.h (pass_ipa_free_lang_data): Declare.
6456 * diagnostic.c (default_diagnostic_starter): Make extern.
6457 (default_diagnostic_finalizer): Make extern.
6458 * diagnostic.h (default_diagnostic_starter): Declare.
6459 (default_diagnostic_finalizer): Declare.
6460 (default_tree_printer): Declare.
6461 * toplev.c (default_tree_printer): Make extern.
6462
64632009-09-03 Richard Guenther <rguenther@suse.de>
6464 Diego Novillo <dnovillo@google.com>
6465
6466 * cgraph.c (cgraph_add_new_function): Remove gimplification.
6467 * cgraphunit.c (cgraph_expand_function): Do not emit
6468 associated thunks from here.
6469 (cgraph_emit_thunks): New.
6470 (cgraph_optimize): Call it.
6471 Return if any IPA pass finds an error.
6472 * varasm.c (finish_aliases_1): Ignore errorneous aliases used
6473 by thunks.
6474
64752009-09-03 Simon Baldwin <simonb@google.com>
6476 Rafael Espindola <espindola@google.com>
6477 Richard Guenther <rguenther@suse.de>
6478 Doug Kwan <dougkwan@google.com>
6479 Diego Novillo <dnovillo@google.com>
6480
6481 * tree.c: Include tree-pass.h, langhooks-def.h,
6482 diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
6483 (free_lang_data_in_type): New.
6484 (need_assembler_name_p): New.
6485 (free_lang_data_in_block): New.
6486 (free_lang_data_in_decl): New.
6487 (struct free_lang_data_d): New.
6488 (add_tree_to_fld_list): New.
6489 (find_decls_types_r): New.
6490 (get_eh_types_for_runtime): New.
6491 (find_decls_types_in_eh_region): New.
6492 (find_decls_types_in_node): New.
6493 (find_decls_types_in_var): New.
6494 (free_lang_data_in_cgraph): New.
6495 (free_lang_data): New.
6496 (gate_free_lang_data): New.
6497 (pass_ipa_free_lang_data): New.
6498
64992009-09-03 Diego Novillo <dnovillo@google.com>
6500
6501 * timevar.def (TV_IPA_FREE_LANG_DATA): Define.
6502 * langhooks.h (struct lang_hooks): Add field free_lang_data.
6503 (lang_hooks): Remove const qualifier.
6504 * ipa.c (cgraph_remove_unreachable_nodes): Call
6505 remove_unreachable_alias_pairs.
6506 * except.c (add_type_for_runtime): Check if TYPE has
6507 already been converted.
6508 (lookup_type_for_runtime): Likewise.
6509 (check_handled): Handle converted types.
6510 * varasm.c (remove_unreachable_alias_pairs): New.
6511 * gimple.c: Include demangle.h.
6512 (gimple_decl_printable_name): New.
6513 (gimple_fold_obj_type_ref): New.
6514 * gimple.h (gimple_decl_printable_name): Declare.
6515 (gimple_fold_obj_type_ref): Declare.
6516 * passes.c (init_optimization_passes): Add pass
6517 pass_ipa_free_lang_data.
6518 * langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
6519 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
6520
65212009-09-03 Diego Novillo <dnovillo@google.com>
6522
6523 * c-lang.c (lang_hooks): Remove const qualifier.
6524
ec35f60c 65252009-09-02 Loren James Rittle <ljrittle@acm.org>
6526
6527 * doc/install.texi (*-*-freebsd*): Update target information.
6528
4d8644f3 65292009-09-02 Anatoly Sokolov <aesok@post.ru>
6530
6531 * hard-reg-set.h (call_fixed_regs): Remove.
6532 * reginfo.c (call_fixed_regs): Remove.
6533 (init_reg_sets_1): Remove initialization of call_fixed_regs.
6534 (globalize_reg): Don't use call_fixed_regs.
6535 * caller-save.c (init_caller_save): Use call_fixed_reg_set instead of
6536 call_fixed_regs.
6537
16c9337c 65382009-09-01 Michael Matz <matz@suse.de>
6539
6540 * expr.h (emit_storent_insn, expand_expr_real_1,
6541 expand_expr_real_2): Declare.
6542 * expr.c (emit_storent_insn, expand_expr_real_1,
6543 expand_expr_real_2): Export.
23e25490 6544 (store_expr): Setting and evaluating dont_return_target is useless.
16c9337c 6545 (expand_expr_real_1, <case GOTO_EXPR, RETURN_EXPR, SWITCH_EXPR,
6546 LABEL_EXPR and ASM_EXPR>): Move to gcc_unreachable.
6547 * except.c (expand_resx_expr): Rename to ...
6548 (expand_resx_stmt): ... this. Rewrite to take gimple statement.
6549 * except.h (expand_resx_stmt): Declare.
6550 * stmt.c: Add include gimple.h
6551 (expand_asm_expr): Rename to ...
6552 (expand_asm_stmt): ... this. Rewrite to take gimple statement.
6553 (expand_case): Rewrite to take gimple statement.
6554 * tree.h (expand_asm_stmt): Declare.
6555 (expand_case): Change prototype.
6556 * Makefile.in (stmt.o): Depend on gimple.h.
6557 * builtins.c (expand_builtin_synchronize): Build gimple asm
6558 statement, not an ASM_EXPR.
6559 * cfgexpand.c (gimple_cond_pred_to_tree, set_expr_location_r,
6560 gimple_to_tree, release_stmt_tree): Remove.
6561 (expand_gimple_cond): Don't call gimple_cond_pred_to_tree or
6562 ggc_free, but hold comparison code and operands separately.
6563 Call jumpif_1 and jumpifnot_1 instead of jumpif and jumpifnot.
6564 (expand_call_stmt, expand_gimple_stmt_1,
6565 expand_gimple_stmt): New helpers.
6566 (expand_gimple_tailcall): Don't call gimple_to_tree, expand_expr_stmt,
6567 release_stmt_tree. Call expand_gimple_stmt instead.
6568 (expand_gimple_basic_block): Ditto.
6569
6570 * calls.c (emit_call_1): Don't look at EH regions here, make
6571 fntree parameter useless.
6572 (expand_call): New local rettype for TREE_TYPE(exp), use it
6573 throughout. Remove local p, use addr instead.
6574 Don't look at EH regions here.
6575
a7dcf969 65762009-09-02 Vladimir Makarov <vmakarov@redhat.com>
6577
6578 * doc/invoke.texi (-fsched-pressure): Document it.
6579 (-fsched-reg-pressure-heuristic): Remove it.
30608852 6580
a7dcf969 6581 * reload.c (ira.h): Include.
6582 (find_reloads): Add choosing reload on number of small spilled
6583 classes.
30608852 6584
a7dcf969 6585 * haifa-sched.c (ira.h): Include.
6586 (sched_pressure_p, sched_regno_cover_class, curr_reg_pressure,
6587 saved_reg_pressure, curr_reg_live, saved_reg_live,
6588 region_ref_regs): New variables.
6589 (sched_init_region_reg_pressure_info, mark_regno_birth_or_death,
6590 initiate_reg_pressure_info, setup_ref_regs,
6591 initiate_bb_reg_pressure_info, save_reg_pressure,
6592 restore_reg_pressure, dying_use_p, print_curr_reg_pressure): New
6593 functions.
6594 (setup_insn_reg_pressure_info): New function.
6595 (rank_for_schedule): Add pressure checking and insn issue time.
6596 Remove comparison of insn reg weights.
6597 (ready_sort): Set insn reg pressure info.
6598 (update_register_pressure, setup_insn_max_reg_pressure,
6599 update_reg_and_insn_max_reg_pressure,
6600 sched_setup_bb_reg_pressure_info): New functions.
23e25490 6601 (schedule_insn): Add code for printing and updating reg pressure info.
a7dcf969 6602 (find_set_reg_weight, find_insn_reg_weight): Remove.
6603 (ok_for_early_queue_removal): Do nothing if pressure_only_p.
6604 (debug_ready_list): Print reg pressure info.
6605 (schedule_block): Ditto. Check insn issue time.
6606 (sched_init): Set up sched_pressure_p. Allocate and set up some
6607 reg pressure related info.
6608 (sched_finish): Free some reg pressure related info.
6609 (fix_tick_ready): Make insn always ready if pressure_p.
6610 (init_h_i_d): Don't call find_insn_reg_weight.
6611 (haifa_finish_h_i_d): Free insn reg pressure info.
30608852 6612
a7dcf969 6613 * ira-int.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
6614 ira_memory_move_cost, ira_class_hard_regs,
6615 ira_class_hard_regs_num, ira_no_alloc_regs,
6616 ira_available_class_regs, ira_reg_class_cover_size,
6617 ira_reg_class_cover, ira_class_translate): Move to ira.h.
6618
6619 * ira-lives.c (single_reg_class): Check mode to find how many
6620 registers are necessary for operand.
6621 (ira_implicitly_set_insn_hard_regs): New.
6622
6623 * common.opt (fsched-pressure): New options.
6624 (fsched-reg-pressure-heuristic): Remove.
6625
6626 * ira.c (setup_eliminable_regset): Rename to
6627 ira_setup_eliminable_regset. Make it external.
6628 (expand_reg_info): Pass cover class to setup_reg_classes.
6629 (ira): Call resize_reg_info instead of allocate_reg_info.
6630
6631 * sched-deps.c: Include ira.h.
6632 (implicit_reg_pending_clobbers, implicit_reg_pending_uses): New.
6633 (create_insn_reg_use, create_insn_reg_set, setup_insn_reg_uses,
6634 reg_pressure_info, insn_use_p, mark_insn_pseudo_birth,
6635 mark_insn_hard_regno_birth, mark_insn_reg_birth,
6636 mark_pseudo_death, mark_hard_regno_death, mark_reg_death,
6637 mark_insn_reg_store, mark_insn_reg_clobber,
6638 setup_insn_reg_pressure_info): New.
6639 (sched_analyze_1): Update implicit_reg_pending_uses.
6640 (sched_analyze_insn): Find implicit sets, uses, clobbers of regs.
6641 Use them to create dependencies. Set insn reg uses and pressure
6642 info. Process reg_pending_uses in one place.
6643 (free_deps): Free implicit sets.
6644 (remove_from_deps): Remove implicit sets if necessary. Check
6645 implicit sets when clearing reg_last_in_use.
6646 (init_deps_global): Clear implicit_reg_pending_clobbers and
6647 implicit_reg_pending_uses.
30608852 6648
a7dcf969 6649 * ira.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
6650 ira_memory_move_cost, ira_class_hard_regs,
6651 ira_class_hard_regs_num, ira_no_alloc_regs,
6652 ira_available_class_regs, ira_reg_class_cover_size,
6653 ira_reg_class_cover, ira_class_translate): Move from ira-int.h.
6654 (ira_setup_eliminable_regset, ira_set_pseudo_classes,
6655 ira_implicitly_set_insn_hard_regs): New prototypes.
30608852 6656
a7dcf969 6657 * ira-costs.c (pseudo_classes_defined_p, allocno_p,
6658 cost_elements_num): New variables.
6659 (allocno_costs, total_costs): Rename to costs and
6660 total_allocno_costs.
6661 (COSTS_OF_ALLOCNO): Rename to COSTS.
6662 (allocno_pref): Rename to pref.
6663 (allocno_pref_buffer): Rename to pref_buffer.
6664 (common_classes): Rename to regno_cover_class.
6665 (COST_INDEX): New.
6666 (record_reg_classes): Set allocno attributes only if allocno_p.
23e25490 6667 (record_address_regs): Ditto. Use COST_INDEX instead of ALLOCNO_NUM.
a7dcf969 6668 (scan_one_insn): Use COST_INDEX and COSTS instead of ALLOCNO_NUM
6669 and COSTS_OF_ALLOCNO.
6670 (print_costs): Rename to print_allocno_costs.
6671 (print_pseudo_costs): New.
6672 (process_bb_node_for_costs): Split into 2 functions with new
6673 function process_bb_for_costs. Pass BB to process_bb_for_costs.
6674 (find_allocno_class_costs): Rename to find_costs_and_classes. Add
6675 new parameter dump_file. Use cost_elements_num instead of
6676 ira_allocnos_num. Make one iteration if preferred classes were
6677 already calculated for scheduler. Make 2 versions of code
6678 depending on allocno_p.
6679 (setup_allocno_cover_class_and_costs): Check allocno_p. Use
6680 regno_cover_class and COSTS instead of common_classes and
6681 COSTS_OF_ALLOCNO.
6682 (init_costs, finish_costs): New.
6683 (ira_costs): Set up allocno_p and cost_elements_num. Call
6684 init_costs and finish_costs.
6685 (ira_set_pseudo_classes): New.
6686
6687 * rtl.h (allocate_reg_info): Remove.
6688 (resize_reg_info): Change return type.
6689 (reg_cover_class): New.
6690 (setup_reg_classes): Add new parameter.
30608852 6691
a7dcf969 6692 * sched-int.h (struct deps_reg): New member implicit_sets.
23e25490 6693 (sched_pressure_p, sched_regno_cover_class): New external definitions.
a7dcf969 6694 (INCREASE_BITS): New macro.
6695 (struct reg_pressure_data, struct reg_use_data): New.
6696 (struct _haifa_insn_data): Remove reg_weight. Add members
6697 reg_pressure, reg_use_list, reg_set_list, and
6698 reg_pressure_excess_cost_change.
6699 (struct deps): New member implicit_sets.
6700 (pressure_p): New variable.
6701 (COVER_CLASS_BITS, INCREASE_BITS): New macros.
6702 (struct reg_pressure_data, struct reg_use_data): New.
6703 (INSN_REG_WEIGHT): Remove.
6704 (INSN_REG_PRESSURE, INSN_MAX_REG_PRESSURE, INSN_REG_USE_LIST,
23e25490 6705 INSN_REG_SET_LIST, INSN_REG_PRESSURE_EXCESS_COST_CHANGE): New macros.
a7dcf969 6706 (sched_init_region_reg_pressure_info,
6707 sched_setup_bb_reg_pressure_info): New prototypes.
30608852 6708
6709 * reginfo.c (struct reg_pref): New member coverclass.
a7dcf969 6710 (reg_cover_class): New function.
6711 (reginfo_init, pass_reginfo_init): Move after free_reg_info.
6712 (reg_info_size): New variable.
6713 (allocate_reg_info): Make static. Setup reg_info_size.
6714 (resize_reg_info): Use reg_info_size. Return flag of resizing.
6715 (setup_reg_classes): Add a new parameter. Setup cover class too.
6716
23e25490 6717 * Makefile.in (reload.o, haifa-sched.o, sched-deps.o): Add ira.h to
6718 the dependencies.
a7dcf969 6719
6720 * sched-rgn.c (deps_join): Set up implicit_sets.
6721 (schedule_region): Set up region and basic blocks pressure
6722 relative info.
30608852 6723
a7dcf969 6724 * passes.c (init_optimization_passes): Move
6725 pass_subregs_of_mode_init before pass_sched.
30608852 6726
c79d6ecf 67272009-09-02 Martin Jambor <mjambor@suse.cz>
6728
6729 * tree-sra.c (struct access): New field grp_hint.
6730 (dump_access): Dump grp_hint.
6731 (sort_and_splice_var_accesses): Set grp_hint if a group is read
6732 multiple times.
6733 (analyze_access_subtree): Only scalarize accesses with grp_hint set or
6734 those which have been specifically read and somehow written to.
6735 (propagate_subacesses_accross_link): Set grp_hint of right child and
6736 also possibly of the left child.
6737
01f8e000 67382009-09-02 Jakub Jelinek <jakub@redhat.com>
6739
6740 * tree-object-size.c (addr_object_size): Always use object_size_type
6741 0 or 2 when determining the pointer pointed object size.
6742
f85fb819 67432009-09-02 Richard Guenther <rguenther@suse.de>
6744
6745 Revert
6746 2009-08-31 Richard Guenther <rguenther@suse.de>
6747
6748 * builtins.c (fold_builtin_memory_op): Use the alias oracle
6749 to query if the memory regions for memmove overlap.
6750 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
6751 asserts on pointers, instead deal with odd trees.
6752 (ptr_derefs_may_alias_p): Likewise.
6753 (refs_may_alias_p_1): Constructor bases also never alias.
6754
cfcf8539 67552009-08-01 Christian Bruel <christian.bruel@st.com>
6756
6757 Revert:
6758 2009-07-31 Christian Bruel <christian.bruel@st.com>
6759 * gcc/config.gcc (sh*-*-elf): test with_libgloss.
30608852 6760
14151756 67612009-09-01 Alexandre Oliva <aoliva@redhat.com>
6762
6763 * doc/invoke.texi (-fvar-tracking-assignments): New.
6764 (-fvar-tracking-assignments-toggle): New.
6765 (-fdump-final-insns=file): Mark filename as optional.
6766 (--param min-nondebug-insn-uid): New.
6767 (-gdwarf-@{version}): Mention version 4.
6768 * opts.c (common_handle_option): Accept it.
6769 * tree-vrp.c (find_assert_locations_1): Skip debug stmts.
6770 * regrename.c (regrename_optimize): Drop last. Don't count debug
6771 insns as uses. Don't reject change because of debug insn.
6772 (do_replace): Reject DEBUG_INSN as chain starter. Take base_regno
23e25490 6773 from the chain starter, and check for inexact matches in DEBUG_INSNS.
14151756 6774 (scan_rtx_reg): Accept inexact matches in DEBUG_INSNs.
6775 (build_def_use): Simplify and fix the marking of DEBUG_INSNs.
6776 * sched-ebb.c (schedule_ebbs): Skip boundary debug insns.
6777 * fwprop.c (forward_propagate_and_simplify): ...into debug insns.
6778 * doc/gimple.texi (is_gimple_debug): New.
6779 (gimple_debug_bind_p): New.
6780 (is_gimple_call, gimple_assign_cast_p): End sentence with period.
6781 * doc/install.texi (bootstrap-debug): More details.
6782 (bootstrap-debug-big, bootstrap-debug-lean): Document.
6783 (bootstrap-debug-lib): More details.
6784 (bootstrap-debug-ckovw): Update.
6785 (bootstrap-time): New.
6786 * tree-into-ssa.c (mark_def_sites): Skip debug stmts.
6787 (insert_phi_nodes_for): Insert debug stmts.
6788 (rewrite_stmt): Take iterator. Insert debug stmts.
6789 (rewrite_enter_block): Adjust.
6790 (maybe_replace_use_in_debug_stmt): New.
6791 (rewrite_update_stmt): Use it.
6792 (mark_use_interesting): Return early for debug stmts.
6793 * tree-ssa-loop-im.c (rewrite_bittest): Propagate DEFs into debug
6794 stmts before replacing stmt.
6795 (move_computations_stmt): Likewise.
6796 * ira-conflicts.c (add_copies): Skip debug insns.
6797 * regstat.c (regstat_init_n_sets_and_refs): Discount debug insns.
6798 (regstat_bb_compute_ri): Skip debug insns.
6799 * tree-ssa-threadupdate.c (redirection_block_p): Skip debug stmts.
6800 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
6801 check_loop_closed_ssa_stmt): Skip debug stmts.
6802 * tree-tailcall.c (find_tail_calls): Likewise.
6803 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
6804 * tree.h (MAY_HAVE_DEBUG_STMTS): New.
6805 (build_var_debug_value_stat): Declare.
6806 (build_var_debug_value): Define.
6807 (target_for_debug_bind): Declare.
6808 * reload.c (find_equiv_reg): Skip debug insns.
6809 * rtlanal.c (reg_used_between_p): Skip debug insns.
6810 (side_effects_p): Likewise.
6811 (canonicalize_condition): Likewise.
30608852 6812 * ddg.c (create_ddg_dep_from_intra_loop_link): Check that non-debug
14151756 6813 insns never depend on debug insns.
6814 (create_ddg_dep_no_link): Likewise.
6815 (add_cross_iteration_register_deps): Use ANTI_DEP for debug insns.
6816 Don't add inter-loop dependencies for debug insns.
6817 (build_intra_loop_deps): Likewise.
6818 (create_ddg): Count debug insns.
6819 * ddg.h (struct ddg::num_debug): New.
6820 (num_backargs): Pair up with previous int field.
6821 * diagnostic.c (diagnostic_report_diagnostic): Skip notes on
6822 -fcompare-debug-second.
6823 * final.c (get_attr_length_1): Skip debug insns.
6824 (rest_of_clean-state): Don't dump CFA_RESTORE_STATE.
6825 * gcc.c (invoke_as): Call compare-debug-dump-opt.
6826 (driver_self_specs): Map -fdump-final-insns to
6827 -fdump-final-insns=..
6828 (get_local_tick): New.
6829 (compare_debug_dump_opt_spec_function): Test for . argument and
6830 compute output name. Compute temp output spec without flag name.
6831 Compute -frandom-seed.
6832 (OPT): Undef after use.
6833 * cfgloopanal.c (num_loop_insns): Skip debug insns.
6834 (average_num_loop_insns): Likewise.
6835 * params.h (MIN_NONDEBUG_INSN_UID): New.
6836 * gimple.def (GIMPLE_DEBUG): New.
6837 * ipa-reference.c (scan_stmt_for_static_refs): Skip debug stmts.
6838 * auto-inc-dec.c (merge_in_block): Skip debug insns.
6839 (merge_in_block): Fix whitespace.
6840 * toplev.c (flag_var_tracking): Update comment.
6841 (flag_var_tracking_assignments): New.
6842 (flag_var_tracking_assignments_toggle): New.
6843 (process_options): Don't open final insns dump file if we're not
6844 going to write to it. Compute defaults for var_tracking.
6845 * df-scan.c (df_insn_rescan_debug_internal): New.
6846 (df_uses_record): Handle debug insns.
6847 * haifa-sched.c (ready): Initialize n_debug.
6848 (contributes_to_priority): Skip debug insns.
6849 (dep_list_size): New.
6850 (priority): Use it.
30608852 6851 (rank_for_schedule): Likewise. Schedule debug insns as soon as
14151756 6852 they're ready. Disregard previous debug insns to make decisions.
6853 (queue_insn): Never queue debug insns.
6854 (ready_add, ready_remove_first, ready_remove): Count debug insns.
6855 (schedule_insn): Don't reject debug insns because of issue rate.
6856 (get_ebb_head_tail, no_real_insns_p): Skip boundary debug insns.
6857 (queue_to_ready): Skip and discount debug insns.
6858 (choose_ready): Let debug insns through.
6859 (schedule_block): Check boundary debug insns. Discount debug
6860 insns, schedule them early. Adjust whitespace.
6861 (set_priorities): Check for boundary debug insns.
6862 (add_jump_dependencies): Use dep_list_size.
6863 (prev_non_location_insn): New.
6864 (check_cfg): Use it.
6865 * tree-ssa-loop-ivopts.c (find-interesting_users): Skip debug
6866 stmts.
6867 (remove_unused_ivs): Reset debug stmts.
6868 * modulo-sched.c (const_iteration_count): Skip debug insns.
6869 (res_MII): Discount debug insns.
6870 (loop_single_full_bb_p): Skip debug insns.
6871 (sms_schedule): Likewise.
6872 (sms_schedule_by_order): Likewise.
6873 (ps_has_conflicts): Likewise.
6874 * caller-save.c (refmarker_fn): New.
6875 (save_call_clobbered_regs): Replace regs with saved mem in
6876 debug insns.
6877 (mark_referenced_regs): Take pointer, mark and arg. Adjust.
6878 Call refmarker_fn mark for hardregnos.
6879 (mark_reg_as_referenced): New.
6880 (replace_reg_with_saved_mem): New.
6881 * ipa-pure-const.c (check_stmt): Skip debug stmts.
6882 * cse.c (cse_insn): Canonicalize debug insns. Skip them when
6883 searching back.
6884 (cse_extended_basic_block): Skip debug insns.
6885 (count_reg_usage): Likewise.
6886 (is_dead_reg): New, split out of...
6887 (set_live_p): ... here.
6888 (insn_live_p): Use it for debug insns.
6889 * tree-stdarg.c (check_all_va_list_escapes): Skip debug stmts.
6890 (execute_optimize_stdarg): Likewise.
6891 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
6892 * tree-ssa-propagate.c (substitute_and_fold): Don't regard
6893 changes in debug stmts as changes.
6894 * sel-sched.c (moving_insn_creates_bookkeeping_block_p): New.
6895 (moveup_expr): Don't move across debug insns. Don't move
6896 debug insn if it would create a bookkeeping block.
6897 (moveup_expr_cached): Don't use cache for debug insns that
6898 are heads of blocks.
6899 (compute_av_set_inside_bb): Skip debug insns.
6900 (sel_rank_for_schedule): Schedule debug insns first. Remove
6901 dead code.
6902 (block_valid_for_bookkeeping_p); Support lax searches.
6903 (create_block_for_bookkeeping): Adjust block numbers when
6904 encountering debug-only blocks.
6905 (find_place_for_bookkeeping): Deal with debug-only blocks.
6906 (generate_bookkeeping_insn): Accept no place to insert.
6907 (remove_temp_moveop_nops): New argument full_tidying.
6908 (prepare_place_to_insert): Deal with debug insns.
6909 (advance_state_on_fence): Debug insns don't start cycles.
6910 (update_boundaries): Take fence as argument. Deal with
6911 debug insns.
6912 (schedule_expr_on_boundary): No full_tidying on debug insns.
6913 (fill_insns): Deal with debug insns.
6914 (track_scheduled_insns_and_blocks): Don't count debug insns.
6915 (need_nop_to_preserve_insn_bb): New, split out of...
6916 (remove_insn_from_stream): ... this.
6917 (fur_orig_expr_not_found): Skip debug insns.
6918 * rtl.def (VALUE): Move up.
6919 (DEBUG_INSN): New.
23e25490 6920 * tree-ssa-sink.c (all_immediate_uses_same_place): Skip debug stmts.
14151756 6921 (nearest_common_dominator_of_uses): Take debug_stmts argument.
6922 Set it if debug stmts are found.
6923 (statement_sink_location): Skip debug stmts. Propagate
6924 moving defs into debug stmts.
6925 * ifcvt.c (first_active_insn): Skip debug insns.
6926 (last_active_insns): Likewise.
6927 (cond_exec_process_insns): Likewise.
6928 (noce_process_if_block): Likewise.
6929 (check_cond_move_block): Likewise.
6930 (cond_move_convert_if_block): Likewise.
6931 (block_jumps_and_fallthru_p): Likewise.
6932 (dead_or_predicable): Likewise.
6933 * dwarf2out.c (debug_str_hash_forced): New.
6934 (find_AT_string): Add comment.
6935 (gen_label_for_indirect_string): New.
6936 (get_debug_string_label): New.
6937 (AT_string_form): Use it.
6938 (mem_loc_descriptor): Handle non-TLS symbols. Handle MINUS , DIV,
6939 MOD, AND, IOR, XOR, NOT, ABS, NEG, and CONST_STRING. Accept but
6940 discard COMPARE, IF_THEN_ELSE, ROTATE, ROTATERT, TRUNCATE and
6941 several operations that cannot be represented with DWARF opcodes.
6942 (loc_descriptor): Ignore SIGN_EXTEND and ZERO_EXTEND. Require
6943 dwarf_version 4 for DW_OP_implicit_value and DW_OP_stack_value.
6944 (dwarf2out_var_location): Take during-call mark into account.
6945 (output_indirect_string): Update comment. Output if there are
6946 label and references.
6947 (prune_indirect_string): New.
6948 (prune_unused_types): Call it if debug_str_hash_forced.
6949 More in dwarf2out.c, from Jakub Jelinek <jakub@redhat.com>:
6950 (dw_long_long_const): Remove.
6951 (struct dw_val_struct): Change val_long_long type to rtx.
6952 (print_die, attr_checksum, same_dw_val_p, loc_descriptor): Adjust for
6953 val_long_long change to CONST_DOUBLE rtx from a long hi/lo pair.
6954 (output_die): Likewise. Use HOST_BITS_PER_WIDE_INT size of each
6955 component instead of HOST_BITS_PER_LONG.
30608852 6956 (output_loc_operands): Likewise. For const8* assert
14151756 6957 HOST_BITS_PER_WIDE_INT rather than HOST_BITS_PER_LONG is >= 64.
6958 (output_loc_operands_raw): For const8* assert HOST_BITS_PER_WIDE_INT
6959 rather than HOST_BITS_PER_LONG is >= 64.
6960 (add_AT_long_long): Remove val_hi and val_lo arguments, add
6961 val_const_double.
6962 (size_of_die): Use HOST_BITS_PER_WIDE_INT size multiplier instead of
6963 HOST_BITS_PER_LONG for dw_val_class_long_long.
6964 (add_const_value_attribute): Adjust add_AT_long_long caller. Don't
6965 handle TLS SYMBOL_REFs. If CONST wraps a constant, tail recurse.
6966 (dwarf_stack_op_name): Handle DW_OP_implicit_value and
6967 DW_OP_stack_value.
6968 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
6969 Handle DW_OP_implicit_value.
6970 (extract_int): Move prototype earlier.
6971 (mem_loc_descriptor): For SUBREG punt if inner
6972 mode size is wider than DWARF2_ADDR_SIZE. Handle SIGN_EXTEND
6973 and ZERO_EXTEND by DW_OP_shl and DW_OP_shr{a,}. Handle
6974 EQ, NE, GT, GE, LT, LE, GTU, GEU, LTU, LEU, SMIN, SMAX, UMIN,
6975 UMAX, SIGN_EXTRACT, ZERO_EXTRACT.
6976 (loc_descriptor): Compare mode size with DWARF2_ADDR_SIZE
6977 instead of Pmode size.
6978 (loc_descriptor): Add MODE argument. Handle CONST_INT, CONST_DOUBLE,
6979 CONST_VECTOR, CONST, LABEL_REF and SYMBOL_REF if mode != VOIDmode,
6980 attempt to handle other expressions. Don't handle TLS SYMBOL_REFs.
6981 (concat_loc_descriptor, concatn_loc_descriptor,
6982 loc_descriptor_from_tree_1): Adjust loc_descriptor callers.
6983 (add_location_or_const_value_attribute): Likewise. For single
6984 location loc_lists attempt to use add_const_value_attribute
6985 for constant decls. Add DW_AT_const_value even if
6986 NOTE_VAR_LOCATION is VAR_LOCATION with CONSTANT_P or CONST_STRING
6987 in its expression.
6988 * cfgbuild.c (inside_basic_block_p): Handle debug insns.
6989 (control_flow_insn_p): Likewise.
23e25490 6990 * tree-parloops.c (eliminate_local_variables_stmt): Handle debug stmt.
14151756 6991 (separate_decls_in_region_debug_bind): New.
6992 (separate_decls_in_region): Process debug bind stmts afterwards.
6993 * recog.c (verify_changes): Handle debug insns.
6994 (extract_insn): Likewise.
6995 (peephole2_optimize): Skip debug insns.
6996 * dse.c (scan_insn): Skip debug insns.
6997 * sel-sched-ir.c (return_nop_to_pool): Take full_tidying argument.
6998 Pass it on.
6999 (setup_id_for_insn): Handle debug insns.
7000 (maybe_tidy_empty_bb): Adjust whitespace.
7001 (tidy_control_flow): Skip debug insns.
7002 (sel_remove_insn): Adjust for debug insns.
7003 (sel_estimate_number_of_insns): Skip debug insns.
7004 (create_insn_rtx_from_pattern): Handle debug insns.
7005 (create_copy_of_insn_rtx): Likewise.
7006 * sel-sched-.h (sel_bb_end): Declare.
7007 (sel_bb_empty_or_nop_p): New.
7008 (get_all_loop_exits): Use it.
7009 (_eligible_successor_edge_p): Likewise.
7010 (return_nop_to_pool): Adjust.
7011 * tree-eh.c (tre_empty_eh_handler_p): Skip debug stmts.
7012 * ira-lives.c (process_bb_node_lives): Skip debug insns.
7013 * gimple-pretty-print.c (dump_gimple_debug): New.
7014 (dump_gimple_stmt): Use it.
7015 (dump_bb_header): Skip gimple debug stmts.
7016 * regmove.c (optimize_reg_copy_1): Discount debug insns.
7017 (fixup_match_2): Likewise.
7018 (regmove_backward_pass): Likewise. Simplify combined
7019 replacement. Handle debug insns.
7020 * function.c (instantiate_virtual_regs): Handle debug insns.
7021 * function.h (struct emit_status): Add x_cur_debug_insn_uid.
7022 * print-rtl.h: Include cselib.h.
23e25490 7023 (print_rtx): Print VALUEs. Split out and recurse for VAR_LOCATIONs.
14151756 7024 * df.h (df_inns_rescan_debug_internal): Declare.
7025 * gcse.c (alloc_hash_table): Estimate n_insns.
7026 (cprop_insn): Don't regard debug insns as changes.
7027 (bypass_conditional_jumps): Skip debug insns.
7028 (one_pre_gcse_pass): Adjust.
7029 (one_code_hoisting_pass): Likewise.
7030 (compute_ld_motion_mems): Skip debug insns.
7031 (one_cprop_pass): Adjust.
7032 * tree-if-conv.c (tree_if_convert_stmt): Reset debug stmts.
7033 (if_convertible_stmt_p): Handle debug stmts.
7034 * init-regs.c (initialize_uninitialized_regs): Skip debug insns.
7035 * tree-vect-loop.c (vect_is_simple_reduction): Skip debug stmts.
7036 * ira-build.c (create_bb_allocnos): Skip debug insns.
7037 * tree-flow-inline.h (has_zero_uses): Discount debug stmts.
7038 (has_single_use): Likewise.
7039 (single_imm_use): Likewise.
7040 (num_imm_uses): Likewise.
7041 * tree-ssa-phiopt.c (empty_block_p): Skip debug stmts.
7042 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Skip debug stmts.
7043 (create_outofssa_var_map): Likewise.
7044 * lower-subreg.c (adjust_decomposed_uses): New.
7045 (resolve_debug): New.
7046 (decompose_multiword_subregs): Use it.
7047 * tree-dfa.c (find_referenced_vars): Skip debug stmts.
7048 * emit-rtl.c: Include params.h.
7049 (cur_debug_insn_uid): Define.
7050 (set_new_first_and_last_insn): Set cur_debug_insn_uid too.
7051 (copy_rtx_if_shared_1): Handle debug insns.
7052 (reset_used_flags): Likewise.
7053 (set_used_flags): LIkewise.
7054 (get_max_insn_count): New.
7055 (next_nondebug_insn): New.
7056 (prev_nondebug_insn): New.
7057 (make_debug_insn_raw): New.
7058 (emit_insn_before_noloc): Handle debug insns.
7059 (emit_jump_insn_before_noloc): Likewise.
7060 (emit_call_insn_before_noloc): Likewise.
7061 (emit_debug_insn_before_noloc): New.
7062 (emit_insn_after_noloc): Handle debug insns.
7063 (emit_jump_insn_after_noloc): Likewise.
7064 (emit_call_insn_after_noloc): Likewise.
7065 (emit_debug_insn_after_noloc): Likewise.
7066 (emit_insn_after): Take loc from earlier non-debug insn.
7067 (emit_jump_insn_after): Likewise.
7068 (emit_call_insn_after): Likewise.
7069 (emit_debug_insn_after_setloc): New.
7070 (emit_debug_insn_after): New.
7071 (emit_insn_before): Take loc from later non-debug insn.
7072 (emit_jump_insn_before): Likewise.
7073 (emit_call_insn_before): Likewise.
7074 (emit_debug_insn_before_setloc): New.
7075 (emit_debug_insn_before): New.
7076 (emit_insn): Handle debug insns.
7077 (emit_debug_insn): New.
7078 (emit_jump_insn): Handle debug insns.
7079 (emit_call_insn): Likewise.
7080 (emit): Likewise.
7081 (init_emit): Take min-nondebug-insn-uid into account.
7082 Initialize cur_debug_insn_uid.
7083 (emit_copy_of_insn_after): Handle debug insns.
7084 * cfgexpand.c (gimple_assign_rhs_to_tree): Do not overwrite
7085 location of single rhs in place.
7086 (maybe_dump_rtl_for_gimple_stmt): Dump lineno.
7087 (floor_sdiv_adjust): New.
7088 (cell_sdiv_adjust): New.
7089 (cell_udiv_adjust): New.
7090 (round_sdiv_adjust): New.
7091 (round_udiv_adjust): New.
7092 (wrap_constant): Moved from cselib.
7093 (unwrap_constant): New.
7094 (expand_debug_expr): New.
7095 (expand_debug_locations): New.
7096 (expand_gimple_basic_block): Drop hiding redeclaration. Expand
7097 debug bind stmts.
7098 (gimple_expand_cfg): Expand debug locations.
7099 * cselib.c: Include tree-pass.h.
7100 (struct expand_value_data): New.
7101 (cselib_record_sets_hook): New.
7102 (PRESERVED_VALUE_P, LONG_TERM_PRESERVED_VALUE_P): New.
7103 (cselib_clear_table): Move, and implemnet in terms of...
7104 (cselib_reset_table_with_next_value): ... this.
7105 (cselib_get_next_unknown_value): New.
7106 (discard_useless_locs): Don't discard preserved values.
7107 (cselib_preserve_value): New.
7108 (cselib_preserved_value_p): New.
7109 (cselib_preserve_definitely): New.
7110 (cselib_clear_preserve): New.
7111 (cselib_preserve_only_values): New.
7112 (new_cselib_val): Take rtx argument. Dump it in details.
7113 (cselib_lookup_mem): Adjust.
7114 (expand_loc): Take regs_active in struct. Adjust. Silence
7115 dumps unless details are requested.
7116 (cselib_expand_value_rtx_cb): New.
7117 (cselib_expand_value_rtx): Rename and reimplment in terms of...
7118 (cselib_expand_value_rtx_1): ... this. Adjust. Silence dumps
7119 without details. Copy more subregs. Try to resolve values
7120 using a callback. Wrap constants.
7121 (cselib_subst_to_values): Adjust.
7122 (cselib_log_lookup): New.
7123 (cselib_lookup): Call it.
23e25490 7124 (cselib_invalidate_regno): Don't count preserved values as useless.
14151756 7125 (cselib_invalidate_mem): Likewise.
7126 (cselib_record_set): Likewise.
7127 (struct set): Renamed to cselib_set, moved to cselib.h.
7128 (cselib_record_sets): Adjust. Call hook.
7129 (cselib_process_insn): Reset table when it would be cleared.
7130 (dump_cselib_val): New.
7131 (dump_cselib_table): New.
7132 * tree-cfgcleanup.c (tree_forwarded_block_p): Skip debug stmts.
7133 (remove_forwarder_block): Support moving debug stmts.
7134 * cselib.h (cselib_record_sets_hook): Declare.
7135 (cselib_expand_callback): New type.
7136 (cselib_expand_value_rtx_cb): Declare.
7137 (cselib_reset_table_with_next_value): Declare.
7138 (cselib_get_next_unknown_value): Declare.
7139 (cselib_preserve_value): Declare.
7140 (cselib_preserved_value_p): Declare.
7141 (cselib_preserve_only_values): Declare.
7142 (dump_cselib_table): Declare.
7143 * cfgcleanup.c (flow_find_cross_jump): Skip debug insns.
7144 (try_crossjump_to_edge): Likewise.
7145 (delete_unreachable_blocks): Remove dominant GIMPLE blocks after
7146 dominated blocks when debug stmts are present.
7147 * simplify-rtx.c (delegitimize_mem_from_attrs): New.
7148 * tree-ssa-live.c (remove_unused_locals): Skip debug stmts.
7149 (set_var_live_on_entry): Likewise.
7150 * loop-invariant.c (find_invariants_bb): Skip debug insns.
7151 * cfglayout.c (curr_location, last_location): Make static.
7152 (set_curr_insn_source_location): Don't avoid bouncing.
7153 (get_curr_insn_source_location): New.
7154 (get_curr_insn_block): New.
7155 (duplicate_insn_chain): Handle debug insns.
7156 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Propagate
7157 into debug stmts.
7158 * common.opt (fcompare-debug): Move to sort order.
7159 (fdump-unnumbered-links): Likewise.
7160 (fvar-tracking-assignments): New.
7161 (fvar-tracking-assignments-toggle): New.
7162 * tree-ssa-dce.c (mark_stmt_necessary): Don't mark blocks
7163 because of debug stmts.
7164 (mark_stmt_if_obviously_necessary): Mark debug stmts.
7165 (eliminate_unnecessary_stmts): Walk dominated blocks before
7166 dominators.
7167 * tree-ssa-ter.c (find_replaceable_in_bb): Skip debug stmts.
7168 * ira.c (memref_used_between_p): Skip debug insns.
7169 (update_equiv_regs): Likewise.
7170 * sched-deps.c (sd_lists_size): Accept empty list.
7171 (sd_init_insn): Mark debug insns.
7172 (sd_finish_insn): Unmark them.
7173 (sd_add_dep): Reject non-debug deps on debug insns.
7174 (fixup_sched_groups): Give debug insns group treatment.
7175 Skip debug insns.
7176 (sched_analyze_reg): Don't mark debug insns for sched before call.
7177 (sched_analyze_2): Handle debug insns.
7178 (sched_analyze_insn): Compute next non-debug insn. Handle debug
7179 insns.
7180 (deps_analyze_insn): Handle debug insns.
7181 (deps_start_bb): Skip debug insns.
7182 (init_deps): Initialize last_debug_insn.
7183 * tree-ssa.c (target_for_debug_bind): New.
7184 (find_released_ssa_name): New.
7185 (propagate_var_def_into_debug_stmts): New.
7186 (propagate_defs_into_debug_stmts): New.
7187 (verify_ssa): Skip debug bind stmts without values.
7188 (warn_uninialized_vars): Skip debug stmts.
7189 * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Set default.
7190 * rtl.c (rtx_equal_p_cb): Handle VALUEs.
7191 (rtx_equal_p): Likewise.
7192 * ira-costs.c (scan_one_insn): Skip debug insns.
7193 (process_bb_node_for_hard_reg_moves): Likewise.
7194 * rtl.h (DEBUG_INSN_P): New.
7195 (NONDEBUG_INSN_P): New.
7196 (MAY_HAVE_DEBUG_INSNS): New.
7197 (INSN_P): Accept debug insns.
7198 (RTX_FRAME_RELATED_P): Likewise.
7199 (INSN_DELETED_P): Likewise
7200 (PAT_VAR_LOCATION_DECL): New.
7201 (PAT_VAR_LOCATION_LOC): New.
7202 (PAT_VAR_OCATION_STATUS): New.
7203 (NOTE_VAR_LOCATION_DECL): Reimplement.
7204 (NOTE_VAR_LOCATION_LOC): Likewise.
7205 (NOTE_VAR_LOCATION_STATUS): Likewise.
7206 (INSN_VAR_LOCATION): New.
7207 (INSN_VAR_LOCATION_DECL): New.
7208 (INSN_VAR_LOCATION_LOC): New.
7209 (INSN_VAR_LOCATION_STATUS): New.
7210 (gen_rtx_UNKNOWN_VAR_LOC): New.
7211 (VAR_LOC_UNKNOWN_P): New.
7212 (NOTE_DURING_CALL_P): New.
7213 (SCHED_GROUP_P): Accept debug insns.
7214 (emit_debug_insn_before): Declare.
7215 (emit_debug_insn_before_noloc): Declare.
7216 (emit_debug_insn_beore_setloc): Declare.
7217 (emit_debug_insn_after): Declare.
7218 (emit_debug_insn_after_noloc): Declare.
7219 (emit_debug_insn_after_setloc): Declare.
7220 (emit_debug_insn): Declare.
7221 (make_debug_insn_raw): Declare.
7222 (prev_nondebug_insn): Declare.
7223 (next_nondebug_insn): Declare.
7224 (delegitimize_mem_from_attrs): Declare.
7225 (get_max_insn_count): Declare.
7226 (wrap_constant): Declare.
7227 (unwrap_constant): Declare.
7228 (get_curr_insn_source_location): Declare.
7229 (get_curr_insn_block): Declare.
7230 * tree-inline.c (insert_debug_decl_map): New.
7231 (processing_debug_stmt): New.
7232 (remap_decl): Don't create new mappings in debug stmts.
7233 (remap_gimple_op_r): Don't add references in debug stmts.
7234 (copy_tree_body_r): Likewise.
7235 (remap_gimple_stmt): Handle debug bind stmts.
7236 (copy_bb): Skip debug stmts.
7237 (copy_edges_for_bb): Likewise.
7238 (copy_debug_stmt): New.
7239 (copy_debug_stmts): New.
7240 (copy_body): Copy debug stmts at the end.
7241 (insert_init_debug_bind): New.
7242 (insert_init_stmt): Take id. Skip and emit debug stmts.
23e25490 7243 (setup_one_parameter): Remap variable earlier, register debug mapping.
14151756 7244 (estimate_num_insns): Skip debug stmts.
7245 (expand_call_inline): Preserve debug_map.
7246 (optimize_inline_calls): Check for no debug_stmts left-overs.
7247 (unsave_expr_now): Preserve debug_map.
7248 (copy_gimple_seq_and_replace_locals): Likewise.
7249 (tree_function_versioning): Check for no debug_stmts left-overs.
7250 Init and destroy debug_map as needed. Split edges unconditionally.
7251 (build_duplicate_type): Init and destroy debug_map as needed.
7252 * tree-inline.h: Include gimple.h instead of pointer-set.h.
7253 (struct copy_body_data): Add debug_stmts and debug_map.
7254 * sched-int.h (struct ready_list): Add n_debug.
7255 (struct deps): Add last_debug_insn.
7256 (DEBUG_INSN_SCHED_P): New.
7257 (BOUNDARY_DEBUG_INSN_P): New.
7258 (SCHEDULE_DEBUG_INSN_P): New.
7259 (sd_iterator_cond): Accept empty list.
7260 * combine.c (create_log_links): Skip debug insns.
7261 (combine_instructions): Likewise.
7262 (cleanup_auto_inc_dec): New. From Jakub Jelinek: Make sure the
7263 return value is always unshared.
7264 (struct rtx_subst_pair): New.
7265 (auto_adjust_pair): New.
7266 (propagate_for_debug_subst): New.
7267 (propagate_for_debug): New.
7268 (try_combine): Skip debug insns. Propagate removed defs into
7269 debug insns.
7270 (next_nonnote_nondebug_insn): New.
7271 (distribute_notes): Use it. Skip debug insns.
7272 (distribute_links): Skip debug insns.
7273 * tree-outof-ssa.c (set_location_for_edge): Likewise.
7274 * resource.c (mark_target_live_regs): Likewise.
7275 * var-tracking.c: Include cselib.h and target.h.
7276 (enum micro_operation_type): Add MO_VAL_USE, MO_VAL_LOC, and
7277 MO_VAL_SET.
7278 (micro_operation_type_name): New.
7279 (enum emit_note_where): Add EMIT_NOTE_AFTER_CALL_INSN.
7280 (struct micro_operation_def): Update comments.
7281 (decl_or_value): New type. Use instead of decls.
7282 (struct emit_note_data_def): Add vars.
7283 (struct attrs_def): Use decl_or_value.
7284 (struct variable_tracking_info_def): Add permp, flooded.
7285 (struct location_chain_def): Update comment.
7286 (struct variable_part_def): Use decl_or_value.
7287 (struct variable_def): Make var_part a variable length array.
7288 (valvar_pool): New.
7289 (scratch_regs): New.
7290 (cselib_hook_called): New.
7291 (dv_is_decl_p): New.
7292 (dv_is_value_p): New.
7293 (dv_as_decl): New.
7294 (dv_as_value): New.
7295 (dv_as_opaque): New.
7296 (dv_onepart_p): New.
7297 (dv_pool): New.
7298 (IS_DECL_CODE): New.
7299 (check_value_is_not_decl): New.
7300 (dv_from_decl): New.
7301 (dv_from_value): New.
7302 (dv_htab_hash): New.
7303 (variable_htab_hash): Use it.
7304 (variable_htab_eq): Support values.
7305 (variable_htab_free): Free from the right pool.
7306 (attrs_list_member, attrs_list_insert): Use decl_or_value.
7307 (attrs_list_union): Adjust.
7308 (attrs_list_mpdv_union): New.
7309 (tie_break_pointers): New.
7310 (canon_value_cmp): New.
7311 (unshare_variable): Return possibly-modified slot.
7312 (vars_copy_1): Adjust.
7313 (var_reg_decl_set): Adjust. Split out of...
7314 (var_reg_set): ... this.
7315 (get_init_value): Adjust.
7316 (var_reg_delete_and_set): Adjust.
7317 (var_reg_delete): Adjust.
7318 (var_regno_delete): Adjust.
7319 (var_mem_decl_set): Split out of...
7320 (var_mem_set): ... this.
7321 (var_mem_delete_and_set): Adjust.
7322 (var_mem_delete): Adjust.
7323 (val_store): New.
7324 (val_reset): New.
7325 (val_resolve): New.
7326 (variable_union): Adjust. Speed up merge of 1-part vars.
7327 (variable_canonicalize): Use unshared slot.
7328 (VALUED_RECURSED_INTO): New.
7329 (find_loc_in_1pdv): New.
7330 (struct dfset_merge): New.
7331 (insert_into_intersection): New.
7332 (intersect_loc_chains): New.
7333 (loc_cmp): New.
7334 (canonicalize_loc_order_check): New.
7335 (canonicalize_values_mark): New.
7336 (canonicalize_values_star): New.
7337 (variable_merge_over_cur): New.
7338 (variable_merge_over_src): New.
7339 (dataflow_set_merge): New.
7340 (dataflow_set_equiv_regs): New.
7341 (remove_duplicate_values): New.
7342 (struct dfset_post_merge): New.
7343 (variable_post_merge_new_vals): New.
7344 (variable_post_merge_perm_vals): New.
7345 (dataflow_post_merge_adjust): New.
7346 (find_mem_expr_in_1pdv): New.
7347 (dataflow_set_preserve_mem_locs): New.
7348 (dataflow_set_remove_mem_locs): New.
7349 (dataflow_set_clear_at_call): New.
7350 (onepart_variable_different_p): New.
7351 (variable_different_p): Use it.
23e25490 7352 (dataflow_set_different_1): Adjust. Make detailed dump more verbose.
14151756 7353 (track_expr_p): Add need_rtl parameter. Don't generate rtl
7354 if not needed.
7355 (track_loc_p): Pass it true.
7356 (struct count_use_info): New.
7357 (find_use_val): New.
7358 (replace_expr_with_values): New.
7359 (log_op_type): New.
7360 (use_type): New, partially split out of...
7361 (count_uses): ... this. Count new micro-ops.
7362 (count_uses_1): Adjust.
7363 (count_stores): Adjust.
7364 (count_with_sets): New.
7365 (VAL_NEEDS_RESOLUTION): New.
7366 (VAL_HOLDS_TRACK_EXPR): New.
7367 (VAL_EXPR_IS_COPIED): New.
7368 (VAL_EXPR_IS_CLOBBERED): New.
7369 (add_uses): Adjust. Generate new micro-ops.
7370 (add_uses_1): Adjust.
7371 (add_stores): Generate new micro-ops.
7372 (add_with_sets): New.
7373 (find_src_status): Adjust.
7374 (find_src_set_src): Adjust.
7375 (compute_bb_dataflow): Use dataflow_set_clear_at_call.
7376 Handle new micro-ops. Canonicalize value equivalances.
7377 (vt_find_locations): Compute total size of hash tables for
7378 dumping. Perform merge for var-tracking-assignments. Don't
7379 disregard single-block loops.
7380 (dump_attrs_list): Handle decl_or_value.
7381 (dump_variable): Take variable. Deal with decl_or_value.
7382 (dump_variable_slot): New.
7383 (dump_vars): Use it.
7384 (dump_dataflow_sets): Adjust.
7385 (set_slot_part): New, extended to support one-part variables
7386 after splitting out of...
7387 (set_variable_part): ... this.
7388 (clobber_slot_part): New, split out of...
7389 (clobber_variable_part): ... this.
7390 (delete_slot_part): New, split out of...
7391 (delete_variable_part): .... this.
7392 (check_wrap_constant): New.
7393 (vt_expand_loc_callback): New.
7394 (vt_expand_loc): New.
7395 (emit_note_insn_var_location): Adjust. Handle values. Handle
7396 EMIT_NOTE_AFTER_CALL_INSN.
7397 (emit_notes_for_differences_1): Adjust. Handle values.
7398 (emit_notes_for_differences_2): Likewise.
7399 (emit_notes_for_differences): Adjust.
23e25490 7400 (emit_notes_in_bb): Take pointer to set. Emit AFTER_CALL_INSN notes.
7401 Adjust. Handle new micro-ops.
14151756 7402 (vt_add_function_parameters): Adjust. Create and bind values.
7403 (vt_initialize): Adjust. Initialize scratch_regs and
7404 valvar_pool, flooded and perm.. Initialize and use cselib. Log
7405 operations. Move some code to count_with_sets and add_with_sets.
7406 (delete_debug_insns): New.
7407 (vt_debug_insns_local): New.
7408 (vt_finalize): Release permp, valvar_pool, scratch_regs. Finish
7409 cselib.
7410 (var_tracking_main): If var-tracking-assignments is enabled
7411 but var-tracking isn't, delete debug insns and leave. Likewise
7412 if we exceed limits or fail the stack adjustments tests, and
7413 after all var-tracking processing.
7414 More in var-tracking, from Jakub Jelinek <jakub@redhat.com>:
7415 (dataflow_set): Add traversed_vars.
7416 (value_chain, const_value_chain): New typedefs.
7417 (value_chain_pool, value_chains): New variables.
7418 (value_chain_htab_hash, value_chain_htab_eq, add_value_chain,
7419 add_value_chains, add_cselib_value_chains, remove_value_chain,
7420 remove_value_chains, remove_cselib_value_chains): New functions.
7421 (shared_hash_find_slot_unshare_1, shared_hash_find_slot_1,
7422 shared_hash_find_slot_noinsert_1, shared_hash_find_1): New
7423 static inlines.
7424 (shared_hash_find_slot_unshare, shared_hash_find_slot,
7425 shared_hash_find_slot_noinsert, shared_hash_find): Update.
7426 (dst_can_be_shared): New variable.
7427 (unshare_variable): Unshare set->vars if shared, use shared_hash_*.
7428 Clear dst_can_be_shared. If set->traversed_vars is non-NULL and
7429 different from set->vars, look up slot again instead of using the
7430 passed in slot.
7431 (dataflow_set_init): Initialize traversed_vars.
7432 (variable_union): Use shared_hash_*. Use initially NO_INSERT
7433 lookup if set->vars is shared. Don't keep slot cleared before
7434 calling unshare_variable. Unshare set->vars if needed. Adjust
7435 unshare_variable callers. Clear dst_can_be_shared if needed.
7436 Even ->refcount == 1 vars must be unshared if set->vars is shared
7437 and var needs to be modified.
7438 (dataflow_set_union): Set traversed_vars during canonicalization.
7439 (VALUE_CHANGED, DECL_CHANGED): Define.
30608852 7440 (set_dv_changed, dv_changed_p): New static inlines.
14151756 7441 (track_expr_p): Clear DECL_CHANGED.
7442 (dump_dataflow_sets): Set it.
7443 (variable_was_changed): Call set_dv_changed.
7444 (emit_note_insn_var_location): Likewise.
7445 (changed_variables_stack): New variable.
7446 (check_changed_vars_1, check_changed_vars_2): New functions.
7447 (emit_notes_for_changes): Do nothing if changed_variables is
7448 empty. Traverse changed_variables with check_changed_vars_1,
7449 call check_changed_vars_2 on each changed_variables_stack entry.
7450 (emit_notes_in_bb): Add SET argument. Just clear it at the
23e25490 7451 beginning, use it instead of local &set, don't destroy it at the end.
14151756 7452 (vt_emit_notes): Call dataflow_set_clear early on all
7453 VTI(bb)->out sets, never use them, instead use emit_notes_in_bb
7454 computed set, dataflow_set_clear also VTI(bb)->in when we are
7455 done with the basic block. Initialize changed_variables_stack,
7456 free it afterwards. If ENABLE_CHECKING verify that after noting
7457 differences to an empty set value_chains hash table is empty.
7458 (vt_initialize): Initialize value_chains and value_chain_pool.
7459 (vt_finalize): Delete value_chains htab, free value_chain_pool.
7460 (variable_tracking_main): Call dump_dataflow_sets before calling
7461 vt_emit_notes, not after it.
7462 * tree-flow.h (propagate_defs_into_debug_stmts): Declare.
7463 (propagate_var_def_into_debug_stmts): Declare.
7464 * df-problems.c (df_lr_bb_local_compute): Skip debug insns.
7465 (df_set_note): Reject debug insns.
7466 (df_whole_mw_reg_dead_p): Take added_notes_p argument. Don't
7467 add notes to debug insns.
7468 (df_note_bb_compute): Adjust. Likewise.
7469 (df_simulate_uses): Skip debug insns.
7470 (df_simulate_initialize_backwards): Likewise.
7471 * reg-stack.c (subst_stack_regs_in_debug_insn): New.
7472 (subst_stack_regs_pat): Reject debug insns.
7473 (convert_regs_1): Handle debug insns.
7474 * Makefile.in (TREE_INLINE_H): Take pointer-set.h from GIMPLE_H.
7475 (print-rtl.o): Depend on cselib.h.
7476 (cselib.o): Depend on TREE_PASS_H.
7477 (var-tracking.o): Depend on cselib.h and TARGET_H.
23e25490 7478 * sched-rgn.c (rgn_estimate_number_of_insns): Discount debug insns.
14151756 7479 (init_ready_list): Skip boundary debug insns.
7480 (add_branch_dependences): Skip debug insns.
23e25490 7481 (free_block_dependencies): Check for blocks with only debug insns.
14151756 7482 (compute_priorities): Likewise.
7483 * gimple.c (gss_for_code): Handle GIMPLE_DEBUG.
7484 (gimple_build_with_ops_stat): Take subcode as unsigned. Adjust
7485 all callers.
7486 (gimple_build_debug_bind_stat): New.
7487 (empty_body_p): Skip debug stmts.
7488 (gimple_has_side_effects): Likewise.
7489 (gimple_rhs_has_side_effects): Likewise.
7490 * gimple.h (enum gimple_debug_subcode, GIMPLE_DEBUG_BIND): New.
7491 (gimple_build_debug_bind_stat): Declare.
7492 (gimple_build_debug_bind): Define.
7493 (is_gimple_debug): New.
7494 (gimple_debug_bind_p): New.
7495 (gimple_debug_bind_get_var): New.
7496 (gimple_debug_bind_get_value): New.
7497 (gimple_debug_bind_get_value_ptr): New.
7498 (gimple_debug_bind_set_var): New.
7499 (gimple_debug_bind_set_value): New.
7500 (GIMPLE_DEBUG_BIND_NOVALUE): New internal temporary macro.
7501 (gimple_debug_bind_reset_value): New.
7502 (gimple_debug_bind_has_value_p): New.
7503 (gsi_next_nondebug): New.
7504 (gsi_prev_nondebug): New.
7505 (gsi_start_nondebug_bb): New.
7506 (gsi_last_nondebug_bb): New.
7507 * sched-vis.c (print_pattern): Handle VAR_LOCATION.
7508 (print_insn): Handle DEBUG_INSN.
7509 * tree-cfg.c (remove_bb): Walk stmts backwards. Let loc
7510 of first insn prevail.
7511 (first_stmt): Skip debug stmts.
7512 (first_non_label_stmt): Likewise.
7513 (last_stmt): Likewise.
7514 (has_zero_uses_1): New.
7515 (single_imm_use_1): New.
7516 (verify_gimple_debug): New.
7517 (verify_types_in_gimple_stmt): Handle debug stmts.
7518 (verify_stmt): Likewise.
7519 (debug_loop_num): Skip debug stmts.
7520 (remove_edge_and_dominated_blocks): Remove dominators last.
23e25490 7521 * tree-ssa-reasssoc.c (rewrite_expr_tree): Propagate into debug stmts.
14151756 7522 (linearize_expr): Likewise.
7523 * config/i386/i386.c (ix86_delegitimize_address): Call
7524 default implementation.
23e25490 7525 * config/ia64/ia64.c (ia64_safe_itanium_class): Handle debug insns.
14151756 7526 (group_barrier_needed): Skip debug insns.
7527 (emit_insn_group_barriers): Likewise.
7528 (emit_all_insn_group_barriers): Likewise.
7529 (ia64_variable_issue): Handle debug insns.
7530 (ia64_dfa_new_cycle): Likewise.
7531 (final_emit_insn_group_barriers): Skip debug insns.
7532 (ia64_dwarf2out_def_steady_cfa): Take frame argument. Don't
7533 def cfa without frame.
7534 (process_set): Likewise.
7535 (process_for_unwind_directive): Pass frame on.
7536 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
7537 (rs6000_delegitimize_address): New.
7538 (rs6000_debug_adjust_cost): Handle debug insns.
7539 (is_microcoded_insn): Likewise.
7540 (is_cracked_insn): Likewise.
7541 (is_nonpipeline_insn): Likewise.
7542 (insn_must_be_first_in_group): Likewise.
7543 (insn_must_be_last_in_group): Likewise.
7544 (force_new_group): Likewise.
7545 * cfgrtl.c (rtl_split_block): Emit INSN_DELETED note if block
7546 contains only debug insns.
7547 (rtl_merge_blocks): Skip debug insns.
7548 (purge_dead_edges): Likewise.
7549 (rtl_block_ends_with_call_p): Skip debug insns.
7550 * dce.c (deletable_insn_p): Handle VAR_LOCATION.
7551 (mark_reg_dependencies): Skip debug insns.
7552 * params.def (PARAM_MIN_NONDEBUG_INSN_UID): New.
23e25490 7553 * tree-ssanames.c (release_ssa_name): Propagate def into debug stmts.
14151756 7554 * tree-ssa-threadedge.c
7555 (record_temporary_equivalences_from_stmts): Skip debug stmts.
7556 * regcprop.c (replace_oldest_value_addr): Skip debug insns.
7557 (replace_oldest_value_mem): Use ALL_REGS for debug insns.
7558 (copyprop_hardreg_forward_1): Handle debug insns.
7559 * reload1.c (reload): Skip debug insns. Replace unassigned
7560 pseudos in debug insns with their equivalences.
7561 (eliminate_regs_in_insn): Skip debug insns.
7562 (emit_input_reload_insns): Skip debug insns at first, adjust
7563 them later.
7564 * tree-ssa-operands.c (add_virtual_operand): Reject debug stmts.
7565 (get_indirect_ref_operands): Pass opf_no_vops on.
7566 (get_expr_operands): Likewise. Skip debug stmts.
7567 (parse_ssa_operands): Scan debug insns with opf_no_vops.
7568
2193544e 75692009-09-01 Richard Henderson <rth@redhat.com>
7570
30608852 7571 * tree-ssa-ccp.c (ccp_initialize): Make sure to simulate
2193544e 7572 stmt_ends_pp_p statements at least once.
7573 * tree-vrp.c (vrp_initialize): Likewise.
7574 (vrp_visit_stmt): Be prepared for non-interesting stmts.
7575
77633495 75762009-09-01 Dodji Seketeli <dodji@redhat.com>
7577
7578 PR bootstrap/41205
7579 Fix AIX bootstrap after PR debug/30161
7580 * dwarf2out.c (make_ith_pack_parameter_name): Don't used strnlen
7581 that is a GNU extension.
7582 (tmpl_value_parm_die_table): Move the definition of this global
7583 outside #ifdef DWARF2_DEBUGGING_INFO region.
7584
92ddcd97 75852009-09-01 Richard Guenther <rguenther@suse.de>
7586
7587 * tree.c (tree_expr_size): New function.
7588 * tree.h (tree_expr_size): Declare.
7589 * rtlanal.c (rtx_addr_can_trap_p_1): Adjust comment.
7590 * builtins.c (fold_builtin_memory_op): Use tree_expr_size.
7591 * langhooks.c (lhd_expr_size): Remove.
7592 * langhooks.h (struct lang_hooks): Remove expr_size.
7593 * explow.c (expr_size): Use tree_expr_size.
7594 (int_expr_size): Likewise.
7595 * langhooks-def.h (lhd_expr_size): Remove.
7596 (LANG_HOOKS_EXPR_SIZE): Likewise.
7597 (LANG_HOOKS_INITIALIZER): Adjust.
7598
f639fdbf 75992009-09-01 Richard Guenther <rguenther@suse.de>
7600
7601 * tree-flow.h (mark_addressable): Move declaration ...
7602 * tree.h (mark_addressable): ... here.
7603 * stmt.c (expand_asm_operands): Use mark_addressable, not
7604 lang_hooks.mark_addressable.
7605 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
7606 LANG_HOOKS_MARK_ADDRESSABLE.
7607 * langhooks.h (struct lang_hooks): Remove mark_addressable langhook.
7608 * c-objc-common.h (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
7609
030fcc8b 76102009-08-31 Chris Demetriou <cgd@google.com>
7611
7612 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never
7613 vectorize if not TARGET_SSE2.
7614
f9a4f5ab 76152009-08-31 DJ Delorie <dj@redhat.com>
7616
7617 * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor
7618 registers if no coprocessor is enabled.
7619
7c48f38c 76202009-08-31 Dodji Seketeli <dodji@redhat.com>
7621
7622 PR debug/30161
7623 * cgraph.h (cgraph_get_node): Declare ...
7624 * cgraph.c (cgraph_get_node): ... new function.
7625 * dwarf2out.c (gen_generic_params_dies,
7626 generic_parameter_die, tree_add_const_value_attribute_for_decl,
7627 make_ith_pack_parameter_name,
7628 append_entry_to_tmpl_value_parm_die_table,
7629 gen_remaining_tmpl_value_param_die_attribute): New functions.
7630 (gen_subprogram_die): Generate debug info for template parameters
7631 if debug info level is higher than DINFO_LEVEL_TERSE.
7632 Use tree_add_const_value_attribute_for_decl instead of
7633 tree_add_const_value_attribute.
7634 (gen_const_die): Use tree_add_const_value_attribute_for_decl
7635 instead of tree_add_const_value_attribute.
7636 (gen_struct_or_union_type_die): Generate debug
7637 info for template parameters if debug info level is higher than
7638 DINFO_LEVEL_TERSE.
7639 (tree_add_const_value_attribute): Handle integral and pointer
7640 constants. Update comment.
7641 (dwarf_tag_name): Support DW_TAG_GNU_template_template_param.
7642 (dwarf_attr_name): Support DW_AT_GNU_template_name.
7643 (reference_to_unused): Fix thinko. Remove redundant predicates from
7644 tests.
7645 (tree_add_const_value_attribute): Make this work for constant
7646 expressions only.
7647 tree_add_const_value_attribute_for_decl is to be used for variable
7648 DECLs now.
7649 (add_location_or_const_value_attribute): Use
7650 tree_add_const_value_attribute_for_decl now.
7651 (dwarf2out_finish): Emit the DW_AT_const_value attribute of
7652 DW_TAG_template_value_param DIEs after function DIEs have been
7653 emitted.
7654 * langhooks.h (lang_hooks_for_types): Add
7655 get_argument_pack_elems.
7656 (lang_hooks_for_decls): Add generic_generic_parameter_decl_p.
7657 (lang_hooks): Added get_innermost_generic_parms,
7658 get_innermost_generic_args.
7659 * langhooks-def.h (LANG_HOOKS_GET_INNERMOST_GENERIC_PARMS,
7660 LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS,
7661 LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS,
7662 LANG_HOOKS_GENERIC_GENERIC_PARAMETER_DECL_P): New language hooks.
7663
142c2869 76642009-08-31 DJ Delorie <dj@redhat.com>
7665
7666 * config/mep/mep.c (machine_function): Add frame_locked flag. Set
7667 it once we start generating the prologue or epilogue.
030fcc8b 7668 (mep_call_saves_register): If the frame is locked, re-use
7669 cached values.
142c2869 7670 (mep_assign_save_slots): New, broken out from mep_expand_prologue.
7671 (mep_expand_prologue): Call it.
7672 (mep_expand_epilogue): Likewise.
7673 (mep_start_function): Use the same logic as mep_expand_prologue.
7674 (mep_pass_by_reference): Make logic more readable.
7675 (mep_return_in_memory): Zero-sized objects are passed in memory.
7676 (mep_reorg_noframe): Make sure we have accurate REG_DEAD notes.
7677
e49a9819 76782009-08-31 Richard Guenther <rguenther@suse.de>
7679
7680 * builtins.c (fold_builtin_memory_op): Use the alias oracle
7681 to query if the memory regions for memmove overlap.
7682 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
7683 asserts on pointers, instead deal with odd trees.
7684 (ptr_derefs_may_alias_p): Likewise.
7685 (refs_may_alias_p_1): Constructor bases also never alias.
7686
33e75f00 76872009-08-31 Gerald Pfeifer <gerald@pfeifer.com>
7688
7689 * doc/install.texi (Final install): Adjust reference on where to
7690 order printed manuals.
7691
ddf623cb 76922009-08-30 Olivier Hainque <hainque@adacore.com>
7693
7694 * dwarf2out.c (switch_to_frame_table_section): Move
7695 definition prior to first use.
7696
134899ac 76972009-08-30 Richard Guenther <rguenther@suse.de>
7698
7699 PR tree-optimization/41186
7700 * tree-ssa-alias.c (ptr_deref_may_alias_ref_p): Remove.
7701 (ao_ref_init_from_ptr_and_size): New function.
7702 (ref_maybe_used_by_call_p_1): Be more precise tracking
7703 used ranges for builtin functions.
7704 (ref_maybe_used_by_call_p): Adjust.
7705 (call_may_clobber_ref_p_1): Be more precise tracking clobbered
7706 ranges for builtin functions.
7707 * tree-ssa-alias.h (ao_ref_init_from_ptr_and_size): Declare.
7708
42ed3b17 77092009-08-30 Alan Modra <amodra@bigpond.net.au>
7710
7711 PR target/41081
7712 * fwprop.c (get_reg_use_in): Delete.
7713 (free_load_extend): New function.
7714 (forward_propagate_subreg): Use it.
7715
0e6b6360 77162009-08-29 Kaz Kojima <kkojima@gcc.gnu.org>
7717
7718 * config.gcc (sh*-*-elf): Add superh stuff only for sh*-superh-elf.
7719
cd457011 77202009-08-29 Kai Tietz<kai.tietz@onevision.com>
7721
2ae90fb8 7722 PR/41184
7723 * config/i386.c (ix86_expand_epilogue): Correct stack adjustment for
7724 padding.
cd457011 7725
a9a8ff12 77262009-08-29 Douglas B Rupp <rupp@gnat.com>
7727
7728 * crtstuff.c (__do_global_dtors_aux): Use atexit if no
7729 fini or fini_array section.
7730
9e3531b5 77312009-08-28 Sebastian Pop <sebastian.pop@amd.com>
7732
7733 * graphite-dependences.c (graphite_legal_transform_bb): Call
7734 pbb_remove_duplicate_pdrs.
7735 * graphite-poly.c (can_collapse_pdr): Removed.
7736 (pdr_find_duplicate): Removed.
7737 (can_collapse_pdrs): New.
7738 (pbb_remove_duplicate_pdrs): New.
7739 (new_poly_dr): Do not look for duplicates.
7740 * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
7741 (PBB_PDR_DUPLICATES_REMOVED): New.
7742 (pbb_remove_duplicate_pdrs): Declared.
7743
11b2102e 77442009-08-28 Sebastian Pop <sebastian.pop@amd.com>
7745
7746 * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
7747 the strides by multiplying by PDR_NB_REFS.
7748 * graphite-poly.c (can_collapse_pdr): New.
7749 (pdr_find_duplicate): New.
7750 (new_poly_dr): Call pdr_find_duplicate. Collapse duplicate PDRs.
7751 Initialize PDR_NB_REFS.
7752 * graphite-poly.h (struct poly_dr): Add field nb_refs.
7753 (PDR_NB_REFS): New.
7754 (new_poly_dr): Number of subscripts is a graphite_dim_t.
7755
d0aaf399 77562009-08-28 Sebastian Pop <sebastian.pop@amd.com>
7757
7758 PR middle-end/40965
7759 * graphite-poly.c (apply_poly_transforms): Remove legality test before
7760 any transform.
7761
79698ff3 77622009-08-28 Sebastian Pop <sebastian.pop@amd.com>
7763
7764 * graphite-dependences.c (pddr_original_scattering): Return NULL
7765 for read-read dependence relations.
7766 * graphite-poly.h (enum poly_dr_type): Fix comment.
7767 (pdr_read_p): New.
7768 (pdr_write_p): New.
7769 (pdr_may_write_p): New.
7770
c04f2da7 77712009-08-28 Sebastian Pop <sebastian.pop@amd.com>
7772
7773 * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
7774 (struct poly_dr): Same.
7775 (new_poly_dr): Same.
7776 * graphite-poly.c (new_poly_dr): Same.
7777 * graphite-dependences.c (dot_deps): Disable call to system.
7778
7fd2dcb4 77792009-08-28 Cary Coutant <ccoutant@google.com>
7780
7781 PR debug/41063
7782 * dwarf2out.c (gen_type_die_with_usage): Use proper context for
7783 struct/union/enum types local to a function.
7784
ee0d08ad 77852009-08-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
7786 Sebastian Pop <sebastian.pop@amd.com>
7787
7788 * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
7789 pbb_strip_mine_time_depth. Changed the implementation so that
7790 transformation is expressed as a transformation on
7791 time (scatttering) dimensions. Also, ensures that the 2d+1
7792 scheduling format is preserved.
7793 (pbb_strip_mine_profitable_p): Profitability is based on the
7794 iteration number of a given time (scattering) dimension,
7795 and not on a original loop depth dimension.
7796 (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
7797 (pbb_do_strip_mine): Call psct_dynamic_dim.
7798 * graphite-poly.c (pbb_number_of_iterations_at_time): New.
7799 * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
7800 (pbb_nb_dynamic_scattering_transform): New.
7801 (psct_dynamic_dim): New.
7802
55c54afb 78032009-08-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
7804
7805 * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
7806 * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
7807 * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
7808 * graphite-interchange.c (build_linearized_memory_access): Same.
7809 (memory_stride_in_loop): Same.
7810
96b6d5d7 78112009-08-28 Sebastian Pop <sebastian.pop@amd.com>
7812
7813 * graphite-dependences.c (pddr_original_scattering): New.
7814 (graphite_legal_transform_dr): Call pddr_original_scattering.
7815 (dot_deps_1): New.
7816 (dot_deps): New.
7817 * graphite-dependences.h (dot_deps): Declared.
7818 * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
7819 (print_pdr): Print PDR_ID.
7820 * graphite-poly.h (struct poly_dr): Add field id.
7821 (PDR_ID): New.
7822 (pbb_index): New.
7823 * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
7824
2b3a572c 78252009-08-28 Sebastian Pop <sebastian.pop@amd.com>
7826
7827 * graphite-dependences.c (graphite_carried_dependence_level_k): Do
7828 not delete the original dependence relation.
7829
0d6b5db2 78302009-08-28 Sebastian Pop <sebastian.pop@amd.com>
7831
7832 * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
7833 (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
7834 (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
7835 (free_poly_ddr): New.
7836 (pddr_is_empty): New.
7837 (dependence_polyhedron_1): Now returns a poly_ddr_p.
7838 (dependence_polyhedron): Same. Remove useless gcc_assert.
7839 Remove fprintfs.
7840 (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
7841 (graphite_carried_dependence_level_k): Call pddr_is_empty.
7842 * graphite-dependences.h (enum poly_dependence_kind): New.
7843 (poly_dr_pair): Renamed poly_ddr. Added a field kind.
7844 (PDRP_SOURCE): Renamed PDDR_SOURCE.
7845 (PDRP_SINK): Renamed PDDR_SINK.
7846 (PDRP_DDP): Renamed PDDR_DDP.
7847 (PDDR_KIND): New.
7848 (free_poly_ddr): Declared.
7849 * graphite-poly.c (new_scop): Use the new hash function names.
7850 * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
7851 into original_pddrs.
7852 (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
7853
02df46c6 78542009-08-28 Sebastian Pop <sebastian.pop@amd.com>
7855
7856 * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
7857 bounds with LT_EXPR to make niter analysis more precise on code
7858 generated by Graphite.
7859
70a1a7a2 78602009-08-28 Sebastian Pop <sebastian.pop@amd.com>
7861
7862 * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
7863 (graphite_legal_transform_bb): Same.
7864 (poly_drs_may_alias_p): Same.
7865
73c1c1d2 78662009-08-28 Richard Guenther <rguenther@suse.de>
7867
7868 * tree.def: Remove note about obsolete TYPE_NONCOPIED_PARTS.
7869
840ea8c3 78702009-08-28 Jan Beulich <jbeulich@novell.com>
7871
7872 * config/i386/netware.c: Include langhooks.h.
7873 (i386_nlm_encode_section_info): Simplify.
7874 (netware_override_options): Delete.
7875 * config/i386/netware.h (netware_override_options): Delete
7876 declaration.
7877 (OVERRIDE_OPTIONS): Delete definition.
7878 (SUBTARGET_OVERRIDE_OPTIONS): Define.
7879 (ASM_COMMENT_START): Define.
7880 * config/i386/nwld.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
7881
e97d11c2 78822009-08-28 Jan Beulich <jbeulich@novell.com>
7883
7884 * configure.ac: For in-tree ld, do a plain version check to
7885 determine whether comdat groups are supported.
7886 * configure: Regenerate.
7887
912df756 78882009-08-28 Olivier Hainque <hainque@adacore.com>
7889
7890 * collect2.c (DO_COLLECT_EXPORT_LIST): New internal macro,
7891 always defined. Reflect definition or absence of such for
7892 COLLECT_EXPORT_LIST. Readability helper.
7893 (scanfilter): New enum, to help control what symbols
7894 are to be considered or ignored by scan_prog_file.
7895 (enum pass): Rename as "scanpass", moved together with scanfilter
7896 prior to scan_prog_file's prototype.
7897 (scan_prog_file): Accept and honor scanpass and scanfilter arguments.
7898 Group prototype with the scanpass/scanfilter definitions, factorize
7899 head comments for the several implementations at the prototype.
7900 (main): Reorganize the first pass link control to let AIX
7901 drag only the needed frame tables in executables. Prevent
7902 frame tables collection during the scan aimed at static ctors.
7903 Pre-link and scan for frame tables later to compensate.
7904 * doc/tm.texi (ASM_OUTPUT_DWARF_TABLE_REF): New macro.
7905 A C statement to issue assembly directives that create a reference
7906 to the given DWARF table identifier label from the current function
7907 section.
7908 * dwarf2out.c (switch_to_eh_frame_section): Add a BACK argument
7909 to differentiate first time section entry. Only emit a .data
7910 tables start identifier label the first time around.
7911 (switch_to_frame_table_section): New function. Helper for
7912 output_call_frame_info to switch possibly BACK into the eh_frame
7913 or the debug_frame section depending on FOR_EH.
7914 (output_call_frame_info): Use helper to first enter the proper
7915 frame section.
7916 (output_fde): Use ASM_OUTPUT_DWARF_TABLE_REF when defined to
7917 emit a link to the frame table start label from each function
7918 section.
7919 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
7920 New function. Implementation of ASM_OUTPUT_DWARF_TABLE_REF.
7921 * config/rs6000/rs6000-protos.h: Declare it.
7922 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Define.
7923
03dac8f9 79242009-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
7925
7926 * config/sh/sh.c (split_branches): Check the result of
7927 next_active_insn.
7928
202cd5ca 79292009-08-27 Steve Ellcey <sje@cup.hp.com>
7930
7931 * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when
7932 using -pthread -fopenmp
7933
647256b1 79342009-08-27 Gerald Pfeifer <gerald@pfeifer.com>
7935
7936 * doc/service.texi (service directory): Update URL.
7937
59d15e1f 79382009-08-27 Uros Bizjak <ubizjak@gmail.com>
7939
7940 PR rtl-optimization/40861
7941 * simplify-rtx.c (simplify_subreg): Do not call simplify_gen_subreg to
7942 extract word from a multi-word subreg for negative byte positions.
7943
fd42340b 79442009-08-27 Tristan Gingold <gingold@adacore.com>
7945 Douglas B Rupp <rupp@gnat.com>
7946
59d15e1f 7947 * config/ia64/ia64.c (ia64_attribute_table): Add "common_object" entry.
fd42340b 7948 (SECTION_VMS_OVERLAY): Define.
7949 (ia64_vms_common_object_attribute): Added. Handle the "common_object"
7950 attribute.
7951 (ia64_vms_elf_asm_named_section): Added. Generate .section pseudo-op
7952 for common_object.
7953 (ia64_vms_output_aligned_decl_common): Added. Generate pseudo-op for
7954 common_object declarations.
7955 (ia64_section_type_flags): Set section flag for common_object.
7956 * config/ia64/ia64-protos.h
7957 (ia64_vms_output_aligned_decl_common): Declare.
7958 (ia64_vms_elf_asm_named_section): Declare.
7959
dff12ad7 79602009-08-27 Michael Matz <matz@suse.de>
7961
7962 * expr.c (expand_expr_real_2): New function taking exploded
7963 unary or binary expression, split out from ...
7964 (expand_expr_real_1): ... here. Move over all unary/binary
7965 switch parts to above function, in particular these codes:
7966 PAREN_EXPR, NOP_EXPR, CONVERT_EXPR, POINTER_PLUS_EXPR, PLUS_EXPR,
7967 MINUS_EXPR, MULT_EXPR, TRUNC_DIV_EXPR, FLOOR_DIV_EXPR, CEIL_DIV_EXPR,
7968 ROUND_DIV_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, TRUNC_MOD_EXPR,
7969 FLOOR_MOD_EXPR, CEIL_MOD_EXPR, ROUND_MOD_EXPR, FIXED_CONVERT_EXPR,
7970 FIX_TRUNC_EXPR, FLOAT_EXPR, NEGATE_EXPR, ABS_EXPR, MAX_EXPR, MIN_EXPR,
7971 BIT_NOT_EXPR, TRUTH_AND_EXPR, BIT_AND_EXPR, TRUTH_OR_EXPR,
7972 BIT_IOR_EXPR, TRUTH_XOR_EXPR, BIT_XOR_EXPR, LROTATE_EXPR, RROTATE_EXPR,
7973 LSHIFT_EXPR, RSHIFT_EXPR, LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR,
7974 NE_EXPR, UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR,
7975 UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_NOT_EXPR, COMPLEX_EXPR,
7976 WIDEN_SUM_EXPR, REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR,
7977 VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
7978 VEC_INTERLEAVE_LOW_EXPR, VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR,
7979 VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR, VEC_UNPACK_FLOAT_HI_EXPR,
7980 VEC_UNPACK_FLOAT_LO_EXPR, VEC_WIDEN_MULT_HI_EXPR,
7981 VEC_WIDEN_MULT_LO_EXPR, VEC_PACK_TRUNC_EXPR, VEC_PACK_SAT_EXPR,
7982 VEC_PACK_FIX_TRUNC_EXPR.
7983 (<case PAREN_EXPR>): Call set_mem_attributes() with type, not the
7984 full expression.
7985
7496b609 79862009-08-27 Richard Guenther <rguenther@suse.de>
7987
7988 * gengtype.c (main): Handle uint64_t.
7989 * ipa-utils.c (get_base_var): Indent properly.
7990 * tree-ssa-live.c (debug_scope_block): New function.
7991 * tree-flow.h (debug_scope_block): Declare.
7992 * tree-ssa-copy.c (replace_exp_1): Add vertical space.
7993 * basic-block.h (enum profile_status): Rename to
7994 enum profile_status_d.
7995 (x_profile_status): Adjust type.
7996
8c5b0c2b 79972009-08-27 Dodji Seketeli <dodji@redhat.com>
7998
2ae90fb8 7999 PR debug/41170
8c5b0c2b 8000 * dwarf2out.c (get_context_die): Declare this static function.
8001 (gen_type_die_with_usage): Make sure a DIE is a generated for
8002 the context of a typedef.
8003
8cc286dc 80042009-08-26 Anatoly Sokolov <aesok@post.ru>
8005
8006 * doc/invoke.texi (AVR Options): Remove documentation of -minit-stack
8007 switch.
8008
b47517ea 80092009-08-26 Richard Sandiford <rdsandiford@googlemail.com>
8010
8011 * config/mips/mips-protos.h (mips_output_sync): Declare.
8012 (mips_sync_loop_insns): Likewise.
8013 (mips_output_sync_loop): Replace first two parameters with an rtx.
8014 * config/mips/mips.c (mips_multi_member): New structure.
8015 (mips_multi_members): New variable.
8016 (mips_multi_start): New function.
8017 (mips_multi_add): Likewise.
8018 (mips_multi_add_insn): Likewise.
8019 (mips_multi_add_label): Likewise.
8020 (mips_multi_last_index): Likewise.
8021 (mips_multi_copy_insn): Likewise.
8022 (mips_multi_set_operand): Likewise.
8023 (mips_multi_write): Likewise.
8024 (mips_print_operand_punctuation): Remove '%|' and '%-'.
8025 (mips_init_print_operand_punct): Update accordingly.
8026 (mips_start_ll_sc_sync_block): New function.
8027 (mips_end_ll_sc_sync_block): Likewise.
8028 (mips_output_sync): Likewise.
8029 (mips_sync_insn1_template): Likewise.
8030 (mips_sync_insn2_template): Likewise.
8031 (mips_get_sync_operand): Likewise.
8032 (mips_process_sync_loop): Likewise.
8033 (mips_output_sync_loop): Use mips_process_sync_loop.
8034 (mips_sync_loop_insns): New function.
8035 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Delete.
8036 (MIPS_COMPARE_AND_SWAP_12): Likewise.
8037 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP): Likewise.
8038 (MIPS_COMPARE_AND_SWAP_12_NONZERO_OP): Likewise.
8039 (MIPS_SYNC_OP, MIPS_SYNC_OP_12): Likewise.
8040 (MIPS_SYNC_OP_12_AND, MIPS_SYNC_OP_12_XOR): Likewise.
8041 (MIPS_SYNC_OLD_OP_12): Likewise.
8042 (MIPS_SYNC_OLD_OP_12_AND, MIPS_SYNC_OLD_OP_12_XOR): Likewise.
8043 (MIPS_SYNC_NEW_OP_12): Likewise.
8044 (MIPS_SYNC_NEW_OP_12_AND, MIPS_SYNC_NEW_OP_12_XOR): Likewise.
8045 (MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP): Likewise.
8046 (MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND): Likewise.
8047 (MIPS_SYNC_EXCHANGE, MIPS_SYNC_EXCHANGE_12): Likewise.
8048 (MIPS_SYNC_EXCHANGE_12_ZERO_OP): Likewise.
8049 (MIPS_SYNC_EXCHANGE_12_NONZER_OP): Likewise.
8050 * config/mips/mips.md (sync_mem): New attribute.
8051 (sync_oldval, sync_newval, sync_inclusive_mask): Likewise.
8052 (sync_exclusive_mask, sync_required_oldval): Likewise.
8053 (sync_insn1_op2, sync_insn1, sync_insn2): Likewise.
8054 (sync_release_barrier): Likewise.
8055 (length): Handle sync loops.
8056 (sync): Use mips_output_sync.
8057 * config/mips/sync.md (*memory_barrier): Use mips_output_sync.
8058 (sync_compare_and_swap<mode>): Set the new sync_* attributes
8059 and use mips_output_sync_loop.
8060 (compare_and_swap_12, sync_add<mode>, sync_<optab>_12): Likewise.
8061 (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
8062 (sync_old_nand_12, sync_new_nand_12, sync_sub<mode>): Likewise.
8063 (sync_old_add<mode>, sync_old_sub<mode>): Likewise.
8064 (sync_new_add<mode>, sync_new_sub<mode>): Likewise.
8065 (sync_<optab><mode>, sync_old_<optab><mode>): Likewise.
8066 (sync_new_<optab><mode>, sync_nand<mode>): Likewise.
8067 (sync_old_nand<mode>, sync_new_nand<mode>): Likewise.
8068 (sync_lock_test_and_set<mode>, test_and_set_12): Likewise.
8069
a8cefe90 80702009-08-26 Richard Guenther <rguenther@suse.de>
8071
8072 PR middle-end/41163
8073 * gimplify.c (gimplify_addr_expr): Canonicalize ADDR_EXPRs if
8074 the types to not match.
8075 * tree-cfg.c (verify_gimple_assign_single): Adjust ADDR_EXPR
8076 verification.
8077 * tree-ssa.c (useless_type_conversion_p): Conversions to
8078 pointers to unprototyped functions are useless.
8079
7e17648b 80802009-08-26 Richard Guenther <rguenther@suse.de>
8081
030fcc8b 8082 * tree-ssa-structalias.c (create_variable_info_for): Remove strange
8083 whole-program condition, prepare to be called for non-globals.
7e17648b 8084 (intra_create_variable_infos): For restrict qualified DECL_BY_REFERENCE
8085 params build a representative with known type and track its fields.
8086
66f98e8a 80872009-08-26 Uros Bizjak <ubizjak@gmail.com>
8088
8089 * config/alpha/sync.md: Update comment about unpredictable LL/SC lock
8090 clearing by a taken branch.
8091 (sync_<fetchop_name><mode>): Split when epilogue_completed is set,
8092 effectively after bbro pass.
8093 (sync_nand<mode>): Ditto.
8094 (sync_old_<fetchop_name><mode>): Ditto.
8095 (sync_old_nand<mode>): Ditto.
8096 (sync_new_<fetchop_name><mode>): Dito.
8097 (sync_new_nand<mode>): Ditto.
8098 (sync_compare_and_swap<mode>_1): Ditto.
8099 (*sync_compare_and_swap<mode>): Ditto.
8100 (sync_lock_test_and_set<mode>_1): Ditto.
8101 ("sync_lock_test_and_set<mode>): Ditto.
8102
038ca0d1 81032009-08-25 Douglas B Rupp <rupp@gnat.com>
8104
8105 * hwint.h (HOST_LONG_FORMAT): New macro
8106 * bitmap.c, c-decl.c, mips-tfile.c, print-rtl.c, print-tree.c:
8107 Use HOST_PTR_PRINTF.
8108 * system.h (HOST_PTR_PRINTF): Resurrect old macro
8109 * doc/hostconfig.texi (HOST_LONG_FORMAT): Document.
8110 (HOST_PTR_PRINTF): Document.
8111
31c1975b 81122009-08-25 Jan Hubicka <jh@suse.cz>
8113
8114 * config/i386/bmmintrin.h: Replace by #error.
8115
8116 Revert:
8117 Michael Meissner <michael.meissner@amd.com>
8118 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
8119 Tony Linthicum <tony.linthicum@amd.com>
8120
8121 * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
8122 (TARGET_ROUND): New macro for the round/ptest instructions which
8123 are shared between SSE4.1 and SSE5.
8124 (OPTION_MASK_ISA_ROUND): Ditto.
8125 (OPTION_ISA_ROUND): Ditto.
8126 (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
8127 (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
8128
8129 * config/i386/i386.opt (-msse5): New switch for SSE5 support.
8130 (-mfused-madd): New switch to give users control over whether the
8131 compiler optimizes to use the multiply/add SSE5 instructions.
8132
8133 * config/i386/i386.c (enum pta_flags): Add PTA_SSE5.
8134 (ix86_handle_option): Turn off 3dnow if -msse5.
8135 (override_options): Add SSE5 support.
8136 (print_operand): %Y prints comparison codes for SSE5 com/pcom
8137 instructions.
8138 (ix86_expand_sse_movcc): Add SSE5 support.
8139 (ix86_expand_sse5_unpack): New function to use pperm to unpack a
8140 vector type to the next largest size.
8141 (ix86_expand_sse5_pack): New function to use pperm to pack a
8142 vector type to the next smallest size.
8143 (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
8144 (IX86_BUILTIN_FMADDSD): Ditto.
8145 (IX86_BUILTIN_FMADDPS): Ditto.
8146 (IX86_BUILTIN_FMADDPD): Ditto.
8147 (IX86_BUILTIN_FMSUBSS): Ditto.
8148 (IX86_BUILTIN_FMSUBSD): Ditto.
8149 (IX86_BUILTIN_FMSUBPS): Ditto.
8150 (IX86_BUILTIN_FMSUBPD): Ditto.
8151 (IX86_BUILTIN_FNMADDSS): Ditto.
8152 (IX86_BUILTIN_FNMADDSD): Ditto.
8153 (IX86_BUILTIN_FNMADDPS): Ditto.
8154 (IX86_BUILTIN_FNMADDPD): Ditto.
8155 (IX86_BUILTIN_FNMSUBSS): Ditto.
8156 (IX86_BUILTIN_FNMSUBSD): Ditto.
8157 (IX86_BUILTIN_FNMSUBPS): Ditto.
8158 (IX86_BUILTIN_FNMSUBPD): Ditto.
8159 (IX86_BUILTIN_PCMOV_V2DI): Ditto.
8160 (IX86_BUILTIN_PCMOV_V4SI): Ditto.
8161 (IX86_BUILTIN_PCMOV_V8HI): Ditto.
8162 (IX86_BUILTIN_PCMOV_V16QI): Ditto.
8163 (IX86_BUILTIN_PCMOV_V4SF): Ditto.
8164 (IX86_BUILTIN_PCMOV_V2DF): Ditto.
8165 (IX86_BUILTIN_PPERM): Ditto.
8166 (IX86_BUILTIN_PERMPS): Ditto.
8167 (IX86_BUILTIN_PERMPD): Ditto.
8168 (IX86_BUILTIN_PMACSSWW): Ditto.
8169 (IX86_BUILTIN_PMACSWW): Ditto.
8170 (IX86_BUILTIN_PMACSSWD): Ditto.
8171 (IX86_BUILTIN_PMACSWD): Ditto.
8172 (IX86_BUILTIN_PMACSSDD): Ditto.
8173 (IX86_BUILTIN_PMACSDD): Ditto.
8174 (IX86_BUILTIN_PMACSSDQL): Ditto.
8175 (IX86_BUILTIN_PMACSSDQH): Ditto.
8176 (IX86_BUILTIN_PMACSDQL): Ditto.
8177 (IX86_BUILTIN_PMACSDQH): Ditto.
8178 (IX86_BUILTIN_PMADCSSWD): Ditto.
8179 (IX86_BUILTIN_PMADCSWD): Ditto.
8180 (IX86_BUILTIN_PHADDBW): Ditto.
8181 (IX86_BUILTIN_PHADDBD): Ditto.
8182 (IX86_BUILTIN_PHADDBQ): Ditto.
8183 (IX86_BUILTIN_PHADDWD): Ditto.
8184 (IX86_BUILTIN_PHADDWQ): Ditto.
8185 (IX86_BUILTIN_PHADDDQ): Ditto.
8186 (IX86_BUILTIN_PHADDUBW): Ditto.
8187 (IX86_BUILTIN_PHADDUBD): Ditto.
8188 (IX86_BUILTIN_PHADDUBQ): Ditto.
8189 (IX86_BUILTIN_PHADDUWD): Ditto.
8190 (IX86_BUILTIN_PHADDUWQ): Ditto.
8191 (IX86_BUILTIN_PHADDUDQ): Ditto.
8192 (IX86_BUILTIN_PHSUBBW): Ditto.
8193 (IX86_BUILTIN_PHSUBWD): Ditto.
8194 (IX86_BUILTIN_PHSUBDQ): Ditto.
8195 (IX86_BUILTIN_PROTB): Ditto.
8196 (IX86_BUILTIN_PROTW): Ditto.
8197 (IX86_BUILTIN_PROTD): Ditto.
8198 (IX86_BUILTIN_PROTQ): Ditto.
8199 (IX86_BUILTIN_PROTB_IMM): Ditto.
8200 (IX86_BUILTIN_PROTW_IMM): Ditto.
8201 (IX86_BUILTIN_PROTD_IMM): Ditto.
8202 (IX86_BUILTIN_PROTQ_IMM): Ditto.
8203 (IX86_BUILTIN_PSHLB): Ditto.
8204 (IX86_BUILTIN_PSHLW): Ditto.
8205 (IX86_BUILTIN_PSHLD): Ditto.
8206 (IX86_BUILTIN_PSHLQ): Ditto.
8207 (IX86_BUILTIN_PSHAB): Ditto.
8208 (IX86_BUILTIN_PSHAW): Ditto.
8209 (IX86_BUILTIN_PSHAD): Ditto.
8210 (IX86_BUILTIN_PSHAQ): Ditto.
8211 (IX86_BUILTIN_FRCZSS): Ditto.
8212 (IX86_BUILTIN_FRCZSD): Ditto.
8213 (IX86_BUILTIN_FRCZPS): Ditto.
8214 (IX86_BUILTIN_FRCZPD): Ditto.
8215 (IX86_BUILTIN_CVTPH2PS): Ditto.
8216 (IX86_BUILTIN_CVTPS2PH): Ditto.
8217 (IX86_BUILTIN_COMEQSS): Ditto.
8218 (IX86_BUILTIN_COMNESS): Ditto.
8219 (IX86_BUILTIN_COMLTSS): Ditto.
8220 (IX86_BUILTIN_COMLESS): Ditto.
8221 (IX86_BUILTIN_COMGTSS): Ditto.
8222 (IX86_BUILTIN_COMGESS): Ditto.
8223 (IX86_BUILTIN_COMUEQSS): Ditto.
8224 (IX86_BUILTIN_COMUNESS): Ditto.
8225 (IX86_BUILTIN_COMULTSS): Ditto.
8226 (IX86_BUILTIN_COMULESS): Ditto.
8227 (IX86_BUILTIN_COMUGTSS): Ditto.
8228 (IX86_BUILTIN_COMUGESS): Ditto.
8229 (IX86_BUILTIN_COMORDSS): Ditto.
8230 (IX86_BUILTIN_COMUNORDSS): Ditto.
8231 (IX86_BUILTIN_COMFALSESS): Ditto.
8232 (IX86_BUILTIN_COMTRUESS): Ditto.
8233 (IX86_BUILTIN_COMEQSD): Ditto.
8234 (IX86_BUILTIN_COMNESD): Ditto.
8235 (IX86_BUILTIN_COMLTSD): Ditto.
8236 (IX86_BUILTIN_COMLESD): Ditto.
8237 (IX86_BUILTIN_COMGTSD): Ditto.
8238 (IX86_BUILTIN_COMGESD): Ditto.
8239 (IX86_BUILTIN_COMUEQSD): Ditto.
8240 (IX86_BUILTIN_COMUNESD): Ditto.
8241 (IX86_BUILTIN_COMULTSD): Ditto.
8242 (IX86_BUILTIN_COMULESD): Ditto.
8243 (IX86_BUILTIN_COMUGTSD): Ditto.
8244 (IX86_BUILTIN_COMUGESD): Ditto.
8245 (IX86_BUILTIN_COMORDSD): Ditto.
8246 (IX86_BUILTIN_COMUNORDSD): Ditto.
8247 (IX86_BUILTIN_COMFALSESD): Ditto.
8248 (IX86_BUILTIN_COMTRUESD): Ditto.
8249 (IX86_BUILTIN_COMEQPS): Ditto.
8250 (IX86_BUILTIN_COMNEPS): Ditto.
8251 (IX86_BUILTIN_COMLTPS): Ditto.
8252 (IX86_BUILTIN_COMLEPS): Ditto.
8253 (IX86_BUILTIN_COMGTPS): Ditto.
8254 (IX86_BUILTIN_COMGEPS): Ditto.
8255 (IX86_BUILTIN_COMUEQPS): Ditto.
8256 (IX86_BUILTIN_COMUNEPS): Ditto.
8257 (IX86_BUILTIN_COMULTPS): Ditto.
8258 (IX86_BUILTIN_COMULEPS): Ditto.
8259 (IX86_BUILTIN_COMUGTPS): Ditto.
8260 (IX86_BUILTIN_COMUGEPS): Ditto.
8261 (IX86_BUILTIN_COMORDPS): Ditto.
8262 (IX86_BUILTIN_COMUNORDPS): Ditto.
8263 (IX86_BUILTIN_COMFALSEPS): Ditto.
8264 (IX86_BUILTIN_COMTRUEPS): Ditto.
8265 (IX86_BUILTIN_COMEQPD): Ditto.
8266 (IX86_BUILTIN_COMNEPD): Ditto.
8267 (IX86_BUILTIN_COMLTPD): Ditto.
8268 (IX86_BUILTIN_COMLEPD): Ditto.
8269 (IX86_BUILTIN_COMGTPD): Ditto.
8270 (IX86_BUILTIN_COMGEPD): Ditto.
8271 (IX86_BUILTIN_COMUEQPD): Ditto.
8272 (IX86_BUILTIN_COMUNEPD): Ditto.
8273 (IX86_BUILTIN_COMULTPD): Ditto.
8274 (IX86_BUILTIN_COMULEPD): Ditto.
8275 (IX86_BUILTIN_COMUGTPD): Ditto.
8276 (IX86_BUILTIN_COMUGEPD): Ditto.
8277 (IX86_BUILTIN_COMORDPD): Ditto.
8278 (IX86_BUILTIN_COMUNORDPD): Ditto.
8279 (IX86_BUILTIN_COMFALSEPD): Ditto.
8280 (IX86_BUILTIN_COMTRUEPD): Ditto.
8281 (IX86_BUILTIN_PCOMEQUB): Ditto.
8282 (IX86_BUILTIN_PCOMNEUB): Ditto.
8283 (IX86_BUILTIN_PCOMLTUB): Ditto.
8284 (IX86_BUILTIN_PCOMLEUB): Ditto.
8285 (IX86_BUILTIN_PCOMGTUB): Ditto.
8286 (IX86_BUILTIN_PCOMGEUB): Ditto.
8287 (IX86_BUILTIN_PCOMFALSEUB): Ditto.
8288 (IX86_BUILTIN_PCOMTRUEUB): Ditto.
8289 (IX86_BUILTIN_PCOMEQUW): Ditto.
8290 (IX86_BUILTIN_PCOMNEUW): Ditto.
8291 (IX86_BUILTIN_PCOMLTUW): Ditto.
8292 (IX86_BUILTIN_PCOMLEUW): Ditto.
8293 (IX86_BUILTIN_PCOMGTUW): Ditto.
8294 (IX86_BUILTIN_PCOMGEUW): Ditto.
8295 (IX86_BUILTIN_PCOMFALSEUW): Ditto.
8296 (IX86_BUILTIN_PCOMTRUEUW): Ditto.
8297 (IX86_BUILTIN_PCOMEQUD): Ditto.
8298 (IX86_BUILTIN_PCOMNEUD): Ditto.
8299 (IX86_BUILTIN_PCOMLTUD): Ditto.
8300 (IX86_BUILTIN_PCOMLEUD): Ditto.
8301 (IX86_BUILTIN_PCOMGTUD): Ditto.
8302 (IX86_BUILTIN_PCOMGEUD): Ditto.
8303 (IX86_BUILTIN_PCOMFALSEUD): Ditto.
8304 (IX86_BUILTIN_PCOMTRUEUD): Ditto.
8305 (IX86_BUILTIN_PCOMEQUQ): Ditto.
8306 (IX86_BUILTIN_PCOMNEUQ): Ditto.
8307 (IX86_BUILTIN_PCOMLTUQ): Ditto.
8308 (IX86_BUILTIN_PCOMLEUQ): Ditto.
8309 (IX86_BUILTIN_PCOMGTUQ): Ditto.
8310 (IX86_BUILTIN_PCOMGEUQ): Ditto.
8311 (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
8312 (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
8313 (IX86_BUILTIN_PCOMEQB): Ditto.
8314 (IX86_BUILTIN_PCOMNEB): Ditto.
8315 (IX86_BUILTIN_PCOMLTB): Ditto.
8316 (IX86_BUILTIN_PCOMLEB): Ditto.
8317 (IX86_BUILTIN_PCOMGTB): Ditto.
8318 (IX86_BUILTIN_PCOMGEB): Ditto.
8319 (IX86_BUILTIN_PCOMFALSEB): Ditto.
8320 (IX86_BUILTIN_PCOMTRUEB): Ditto.
8321 (IX86_BUILTIN_PCOMEQW): Ditto.
8322 (IX86_BUILTIN_PCOMNEW): Ditto.
8323 (IX86_BUILTIN_PCOMLTW): Ditto.
8324 (IX86_BUILTIN_PCOMLEW): Ditto.
8325 (IX86_BUILTIN_PCOMGTW): Ditto.
8326 (IX86_BUILTIN_PCOMGEW): Ditto.
8327 (IX86_BUILTIN_PCOMFALSEW): Ditto.
8328 (IX86_BUILTIN_PCOMTRUEW): Ditto.
8329 (IX86_BUILTIN_PCOMEQD): Ditto.
8330 (IX86_BUILTIN_PCOMNED): Ditto.
8331 (IX86_BUILTIN_PCOMLTD): Ditto.
8332 (IX86_BUILTIN_PCOMLED): Ditto.
8333 (IX86_BUILTIN_PCOMGTD): Ditto.
8334 (IX86_BUILTIN_PCOMGED): Ditto.
8335 (IX86_BUILTIN_PCOMFALSED): Ditto.
8336 (IX86_BUILTIN_PCOMTRUED): Ditto.
8337 (IX86_BUILTIN_PCOMEQQ): Ditto.
8338 (IX86_BUILTIN_PCOMNEQ): Ditto.
8339 (IX86_BUILTIN_PCOMLTQ): Ditto.
8340 (IX86_BUILTIN_PCOMLEQ): Ditto.
8341 (IX86_BUILTIN_PCOMGTQ): Ditto.
8342 (IX86_BUILTIN_PCOMGEQ): Ditto.
8343 (IX86_BUILTIN_PCOMFALSEQ): Ditto.
8344 (IX86_BUILTIN_PCOMTRUEQ): Ditto.
8345 (enum multi_arg_type): New enum for describing the various SSE5
8346 intrinsic argument types.
8347 (bdesc_multi_arg): New table for SSE5 intrinsics.
8348 (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
8349 (ix86_expand_multi_arg_builtin): New function for creating SSE5
8350 intrinsics.
8351 (ix86_expand_builtin): Add SSE5 intrinsic support.
8352 (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
8353 operand instructions.
8354 (ix86_expand_sse5_multiple_memory): New function to split the
8355 second memory reference from SSE5 instructions.
8356 (type_has_variadic_args_p): Delete in favor of stdarg_p.
8357 (ix86_return_pops_args): Use stdarg_p to determine if the function
8358 has variable arguments.
8359 (ix86_setup_incoming_varargs): Ditto.
8360 (x86_this_parameter): Ditto.
8361
8362 * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
8363 declaration.
8364 (ix86_expand_sse5_pack): Ditto.
8365 (ix86_sse5_valid_op_p): Ditto.
8366 (ix86_expand_sse5_multiple_memory): Ditto.
8367
8368 * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
8369 constant for SSE5 support.
8370 (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
8371 (UNSPEC_SSE5_TRUEFALSE): Ditto.
8372 (UNSPEC_SSE5_PERMUTE): Ditto.
8373 (UNSPEC_SSE5_ASHIFT): Ditto.
8374 (UNSPEC_SSE5_LSHIFT): Ditto.
8375 (UNSPEC_FRCZ): Ditto.
8376 (UNSPEC_CVTPH2PS): Ditto.
8377 (UNSPEC_CVTPS2PH): Ditto.
8378 (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
8379 (PCOM_TRUE): Ditto.
8380 (COM_FALSE_S): Ditto.
8381 (COM_FALSE_P): Ditto.
8382 (COM_TRUE_S): Ditto.
8383 (COM_TRUE_P): Ditto.
8384 (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
8385 (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
8386 types.
8387 (memory attribute): Ditto.
8388 (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
8389 Use SSE4_1_ROUND_* constants instead of hard coded numbers.
8390 (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
8391 (floor<mode>2): Ditto.
8392 (ceil<mode>2): Ditto.
8393 (btrunc<mode>2): Ditto.
8394 (nearbyintdf2): Ditto.
8395 (nearbyintsf2): Ditto.
8396 (sse_setccsf): Disable if SSE5.
8397 (sse_setccdf): Ditto.
8398 (sse5_setcc<mode>): New support for SSE5 conditional move.
8399 (sse5_pcmov_<mode>): Ditto.
8400
8401 * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
8402 (SSEMODEF4): Ditto.
8403 (SSEMODEF2P): Ditto.
8404 (ssemodesuffixf4): New mode attribute for SSE5.
8405 (ssemodesuffixf2s): Ditto.
8406 (ssemodesuffixf2c): Ditto.
8407 (sserotatemax): Ditto.
8408 (ssescalarmode): Ditto.
8409 (sse_maskcmpv4sf3): Disable if SSE5.
8410 (sse_maskcmpv2df3): Ditto.
8411 (sse_vmmaskcmpv4sf3): Ditto.
59d15e1f 8412 (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add instructions.
31c1975b 8413 (sse5_vmfmadd<mode>4): Ditto.
8414 (sse5_fmsub<mode>4): Ditto.
8415 (sse5_vmfmsub<mode>4): Ditto.
8416 (sse5_fnmadd<mode>4): Ditto.
8417 (sse5_vmfnmadd<mode>4): Ditto.
8418 (sse5_fnmsub<mode>4): Ditto.
8419 (sse5_vmfnmsub<mode>4): Ditto.
8420 (sse5i_fmadd<mode>4): Ditto.
8421 (sse5i_fmsub<mode>4): Ditto.
8422 (sse5i_fnmadd<mode>4): Ditto.
8423 (sse5i_fnmsub<mode>4): Ditto.
8424 (sse5i_vmfmadd<mode>4): Ditto.
8425 (sse5i_vmfmsub<mode>4): Ditto.
8426 (sse5i_vmfnmadd<mode>4): Ditto.
8427 (sse5i_vmfnmsub<mode>4): Ditto.
8428 (mulv16qi3): Add SSE5 support.
8429 (mulv4si3): Ditto.
8430 (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
8431 (sse2_mulv4si3): Disable if SSE5.
8432 (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
8433 (sse4_1_roundps): Ditto.
8434 (sse4_1_roundsd): Ditto.
8435 (sse4_1_roundss): Ditto.
8436 (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
8437 be generated.
8438 (sse_maskcmpsf3): Ditto.
8439 (sse_vmmaskcmpv4sf3): Ditto.
8440 (sse2_maskcmpv2df3): Ditto.
8441 (sse2_maskcmpdf3): Ditto.
8442 (sse2_vmmaskcmpv2df3): Ditto.
8443 (sse2_eq<mode>3): Ditto.
8444 (sse2_gt<mode>3): Ditto.
8445 (sse5_pcmov_<mode>): Add SSE5 support.
8446 (vec_unpacku_hi_v16qi): Ditto.
8447 (vec_unpacks_hi_v16qi): Ditto.
8448 (vec_unpacku_lo_v16qi): Ditto.
8449 (vec_unpacks_lo_v16qi): Ditto.
8450 (vec_unpacku_hi_v8hi): Ditto.
8451 (vec_unpacks_hi_v8hi): Ditto.
8452 (vec_unpacku_lo_v8hi): Ditto.
8453 (vec_unpacks_lo_v8hi): Ditto.
8454 (vec_unpacku_hi_v4si): Ditto.
8455 (vec_unpacks_hi_v4si): Ditto.
8456 (vec_unpacku_lo_v4si): Ditto.
8457 (vec_unpacks_lo_v4si): Ditto.
8458 (sse5_pmacsww): New SSE5 intrinsic insn.
8459 (sse5_pmacssww): Ditto.
8460 (sse5_pmacsdd): Ditto.
8461 (sse5_pmacssdd): Ditto.
8462 (sse5_pmacssdql): Ditto.
8463 (sse5_pmacssdqh): Ditto.
8464 (sse5_pmacsdqh): Ditto.
8465 (sse5_pmacsswd): Ditto.
8466 (sse5_pmacswd): Ditto.
8467 (sse5_pmadcsswd): Ditto.
8468 (sse5_pmadcswd): Ditto.
8469 (sse5_pcmov_<move>): Conditional move support on SSE5.
8470 (sse5_phaddbw): New SSE5 intrinsic insn.
8471 (sse5_phaddbd): Ditto.
8472 (sse5_phaddbq): Ditto.
8473 (sse5_phaddwd): Ditto.
8474 (sse5_phaddwq): Ditto.
8475 (sse5_phadddq): Ditto.
8476 (sse5_phaddubw): Ditto.
8477 (sse5_phaddubd): Ditto.
8478 (sse5_phaddubq): Ditto.
8479 (sse5_phadduwd): Ditto.
8480 (sse5_phadduwq): Ditto.
8481 (sse5_phaddudq): Ditto.
8482 (sse5_phsubbw): Ditto.
8483 (sse5_phsubwd): Ditto.
8484 (sse5_phsubdq): Ditto.
8485 (sse5_pperm): Ditto.
8486 (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
8487 (sse5_pperm_zero_v16qi_v8hi): Ditto.
8488 (sse5_pperm_sign_v8hi_v4si): Ditto.
8489 (sse5_pperm_zero_v8hi_v4si): Ditto.
8490 (sse5_pperm_sign_v4si_v2di): Ditto.
8491 (sse5_pperm_sign_v4si_v2di): Ditto.
8492 (sse5_pperm_pack_v2di_v4si): Ditto.
8493 (sse5_pperm_pack_v4si_v8hi): Ditto.
8494 (sse5_pperm_pack_v8hi_v16qi): Ditto.
8495 (sse5_perm<mode>): New SSE5 intrinsic insn.
8496 (rotl<mode>3): Ditto.
8497 (sse5_rotl<mode>3): Ditto.
8498 (sse5_ashl<mode>3): Ditto.
8499 (sse5_lshl<mode>3): Ditto.
8500 (sse5_frcz<mode>2): Ditto.
8501 (sse5s_frcz<mode>2): Ditto.
8502 (sse5_cvtph2ps): Ditto.
8503 (sse5_cvtps2ph): Ditto.
8504 (sse5_vmmaskcmp<mode>3): Ditto.
8505 (sse5_com_tf<mode>3): Ditto.
8506 (sse5_maskcmp<mode>3): Ditto.
8507 (sse5_maskcmp_uns<mode>3): Ditto.
8508 (sse5_maskcmp_uns2<mode>3): Ditto.
8509 (sse5_pcom_tf<mode>3): Ditto.
66f98e8a 8510
8511 * config/i386/predicates.md (sse5_comparison_float_operator):
8512 New predicate to match the comparison operators supported by
8513 the SSE5 com instruction.
31c1975b 8514 (ix86_comparison_int_operator): New predicate to match just the
8515 signed int comparisons.
8516 (ix86_comparison_uns_operator): New predicate to match just the
8517 unsigned int comparisons.
8518
8519 * doc/invoke.texi (-msse5): Add documentation.
8520 (-mfused-madd): Ditto.
8521
8522 * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
8523
8524 * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
8525 mmintrin-common.h.
8526 (x86_64-*-*): Ditto.
8527
8528 * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
8529
8530 * config/i386/bmmintrin.h: New file, provide common x86 compiler
8531 intrinisics for SSE5.
8532
8533 * config/i386/smmintrin.h: Move instructions shared with SSE5 to
8534 mmintrin-common.h.
8535
8536 * config/i386/mmintrin-common.h: New file, to contain common
8537 instructions between SSE4.1 and SSE5.
8538
8539 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
8540 FOREACH_FUNCTION_ARGS to iterate over the argument list.
8541 (gen_regparm_prefix): Ditto.
8542
8543 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
8544 FOREACH_FUNCTION_ARGS to iterate over the argument list. Use
8545 prototype_p to determine if a function is prototyped.
8546
e463efd7 85472009-08-25 Ville Voutilainen <ville.voutilainen@gmail.com>
8548
8549 * c-common.c (c_common_reswords) add the alignof keyword,
8550 with same RID as __alignof and __alignof__
8551
cd90919d 85522009-08-25 Anatoly Sokolov <aesok@post.ru>
8553
8554 * hooks.h (hook_bool_const_int_const_int_true): Declare.
8555 * hooks.c (hook_bool_const_int_const_int_true): New function.
8556 * target.h (struct gcc_target): Add can_eliminate field.
8557 * target-def.h (TARGET_CAN_ELIMINATE): Define.
8558 (TARGET_INITIALIZER): Use TARGET_CAN_ELIMINATE.
8559 * ira.c (setup_eliminable_regset): Use can_eliminate target hook.
8560 * reload1.c (update_eliminables, init_elim_table): (Ditto.).
8561 (elim_table): Revise comment.
8562 * system.h (CAN_ELIMINATE): Poison.
8563 * defaults.h (CAN_ELIMINATE): Remove.
8564 * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
8565
8566 * config/alpha/vms.h (CAN_ELIMINATE): Remove macro.
8567 * config/alpha/alpha.c (TARGET_CAN_ELIMINATE) [TARGET_ABI_OPEN_VMS]:
8568 Define macro.
8569 (alpha_vms_can_eliminate): Declare as static, change return type to
8570 bool.
8571 * config/alpha/alpha-protos.h (alpha_vms_can_eliminate): Remove.
8572
8573 * config/arm/arm.h (CAN_ELIMINATE): Remove macro.
8574 * config/arm/arm.c (TARGET_CAN_ELIMINATE): Define macro.
8575 (arm_can_eliminate): New function.
8576
8577 * config/avr/avr.h (CAN_ELIMINATE): Remove macro.
8578 * config/avr/avr.c (TARGET_CAN_ELIMINATE): Define macro.
8579 (avr_can_eliminate): Declare as static.
8580 * config/avr/avr-protos.h (avr_can_eliminate): Remove.
8581
8582 * config/bfin/bfin.h (CAN_ELIMINATE): Remove macro.
8583 * config/bfin/bfin.c (TARGET_CAN_ELIMINATE): Define macro.
8584 (bfin_can_eliminate): New function.
8585
8586 * config/crx/crx.h (CAN_ELIMINATE): Remove macro.
8587 * config/crx/crx.c (TARGET_CAN_ELIMINATE): Define macro.
8588 (crx_can_eliminate): New function.
66f98e8a 8589
cd90919d 8590 * config/fr30/fr30.h (CAN_ELIMINATE): Remove macro.
8591 * config/fr30/fr30.c (TARGET_CAN_ELIMINATE): Define macro.
8592 (fr30_can_eliminate): New function.
8593
8594 * config/frv/frv.h (CAN_ELIMINATE): Remove macro.
8595 * config/frv/frv.c (TARGET_CAN_ELIMINATE): Define macro.
8596 (frv_can_eliminate): New function.
8597
8598 * config/h8300/h8300.h (CAN_ELIMINATE): Remove macro.
8599 * config/h8300/h8300.c (TARGET_CAN_ELIMINATE): Define macro.
8600 (h8300_can_eliminate): New function.
8601
8602 * config/i386/i386.h (CAN_ELIMINATE): Remove macro.
8603 * config/i386/i386.c (TARGET_CAN_ELIMINATE): Define macro.
8604 (i386_can_eliminate): Declare as static, change return type to bool.
8605 * config/i386/i386-protos.h (i386_can_eliminate): Remove.
8606
8607 * config/ia64/ia64.h (CAN_ELIMINATE): Remove macro.
8608 * config/ia64/ia64.c (TARGET_CAN_ELIMINATE): Define macro.
8609 (ia64_can_eliminate): New function.
8610
8611 * config/iq2000/iq2000.h (CAN_ELIMINATE): Remove macro.
8612 * config/iq2000/iq2000.c (TARGET_CAN_ELIMINATE): Define macro.
8613 (iq2000_can_eliminate): New function.
8614
8615 * config/m32r/m32r.h (CAN_ELIMINATE): Remove macro.
8616 * config/m32r/m32r.c (TARGET_CAN_ELIMINATE): Define macro.
8617 (m32r_can_eliminate): New function.
8618
8619 * config/m68hc11/m68hc11.h (CAN_ELIMINATE): Remove macro.
8620 * config/m68hc11/m68hc11.c (TARGET_CAN_ELIMINATE): Define macro.
8621 (m68hc11_can_eliminate): New function.
8622
8623 * config/m68k/m68k.h (CAN_ELIMINATE): Remove macro.
8624 * config/m68k/m68k.c (TARGET_CAN_ELIMINATE): Define macro.
8625 (m68k_can_eliminate): New function.
8626
8627 * config/mep/mep.h (CAN_ELIMINATE): Remove macro.
8628 * config/mep/mep.c (TARGET_CAN_ELIMINATE): Define macro.
8629 (mep_can_eliminate): New function.
8630
8631 * config/mips/mips.h (CAN_ELIMINATE): Remove macro.
8632 * config/mips/mips.c (TARGET_CAN_ELIMINATE): Define macro.
8633 (mips_can_eliminate): New function.
8634
8635 * config/rs6000/rs6000.h (CAN_ELIMINATE): Remove macro.
8636 * config/rs6000/rs6000.c (TARGET_CAN_ELIMINATE): Define macro.
8637 (rs6000_can_eliminate): New function.
8638
8639 * config/s390/s390.h (CAN_ELIMINATE): Remove macro.
8640 * config/s390/s390.c (TARGET_CAN_ELIMINATE): Define macro.
8641 (s390_can_eliminate): Declare as static.
8642 * config/s390/s390-protos.h (sparc_can_eliminate): Remove.
8643
8644 * config/score/score.h (CAN_ELIMINATE): Remove macro.
8645 * config/score/score.c (TARGET_CAN_ELIMINATE): Define macro.
8646 (score_can_eliminate): New function.
8647
8648 * config/sparc/sparc.h (CAN_ELIMINATE): Remove macro.
8649 * config/sparc/sparc.c (TARGET_CAN_ELIMINATE): Define macro.
8650 (sparc_can_eliminate): Declare as static.
8651 * config/sparc/sparc-protos.h (sparc_can_eliminate): Remove.
8652
8653 * config/stormy16/stormy16.h (CAN_ELIMINATE): Remove macro.
8654 * config/stormy16/stormy16.c (TARGET_CAN_ELIMINATE): Define macro.
8655 (xstormy16_can_eliminate): New function.
8656
8657 * config/v850/v850.h (CAN_ELIMINATE): Remove macro.
8658 * config/v850/v850.c (TARGET_CAN_ELIMINATE): Define macro.
8659 (v850_can_eliminate): New function.
8660
119a3c48 86612009-08-25 Uros Bizjak <ubizjak@gmail.com>
8662
8663 * config/alpha/alpha.md (*cmpdf_ieee_ext[123]): Remove.
8664 (*cmpdf_internal): Enable for all ALPHA_FPTM levels.
8665 (*movdfcc_ext[1234]): Disable for IEEE mode.
8666
1e5ec9ee 86672009-08-25 Eric Botcazou <ebotcazou@adacore.com>
8668
8669 * gimplify.c (prepare_gimple_addressable): New static function.
8670 (gimplify_modify_expr_to_memcpy): Invoke it on the RHS before marking
8671 it addressable.
8672 (gimplify_addr_expr): Invoke it similarly on the operand instead of
8673 manually fiddling with it.
8674
235978c1 86752009-08-25 Michael Matz <matz@suse.de>
8676
8677 * expr.h (jumpifnot_1, jumpif_1, do_jump_1): Declare.
8678 * dojump.c (do_jump_by_parts_greater): Take two operands instead of
8679 full expression.
8680 (do_jump_by_parts_equality, do_compare_and_jump): Ditto.
8681 (jumpifnot_1, jumpif_1): New wrappers for do_jump_1.
8682 (do_jump): Split out code for simple binary comparisons into ...
8683 (do_jump_1): ... this, taking the individual operands and code.
8684 Change callers to helper function above accordingly.
8685 * expr.c (expand_expr_real_1): Use jumpifnot_1 for simple binary
8686 comparisons.
8687
2c02962c 86882009-08-25 Michael Matz <matz@suse.de>
8689
8690 * expr.h (struct separate_ops, sepops): New type for passing
8691 around an exploded simple expression.
8692 * optabs.c (expand_widen_pattern_expr, expand_vec_shift_expr):
8693 Use this structure instead of expression tree.
8694 (get_vcond_icode, expand_vec_cond_expr_p): Don't take whole
8695 expression, only its type.
8696 (expand_vec_cond_expr): Take type and individual operands instead
8697 of full expression.
8698 * optabs.h (expand_widen_pattern_expr, expand_vec_cond_expr,
8699 expand_vec_shift_expr): Change prototype accordingly.
8700 * tree-vect-stmts.c (vectorizable_condition): Change call of
8701 expand_vec_cond_expr_p to pass only type.
8702 * expr.c (do_store_flags): Change prototype and implementation
8703 to take an exploded expression.
8704 (expand_expr_real_1): New local ops initialized with details
8705 of the full expression. Use it instead of full
8706 expression in calls to do_store_flags, expand_vec_cond_expr,
8707 expand_widen_pattern_expr and expand_vec_shift_expr.
8708
588e1cc3 87092009-08-25 Michael Matz <matz@suse.de>
8710
8711 * expr.c (expand_expr_real_1): New local treeop0, treeop1,
8712 treeop2 initialized with first three operands of the full expression.
8713 Substitute all TREE_OPERAND (exp, [012]) calls with them.
8714
0e058104 87152009-08-25 Kai Tietz <kai.tietz@onevision.com>
8716
8717 * gcc/gthr-win32.h (__UNUSED_PARAM): Define, if not already present.
8718 (__gthread_objc_condition_allocate): Mark arguments as unused.
8719 (__gthread_objc_condition_deallocate): Likewise.
8720 (__gthread_objc_condition_wait): Likewise.
8721 (__gthread_objc_condition_broadcast): Likewise.
8722 (__gthread_objc_condition_signal): Likewise.
8723 (__gthread_objc_thread_detach): Cast via INT_PTR to pointer.
8724 (__gthread_objc_thread_id): Likewise.
8725
2692ac97 87262009-08-25 Janus Weil <janus@gcc.gnu.org>
8727
8728 PR middle-end/41149
8729 * tree-pretty-print.c (print_call_name): Print the correct call name
8730 for procedure pointer components.
8731
ddb33bff 87322009-08-24 Steve Ellcey <sje@cup.hp.com>
8733
8734 * config/ia64/ia64.c (ia64_promote_function_mode): Call
8735 default_promote_function_mode when not VMS.
8736
c6636ef7 87372009-08-24 Olivier Hainque <hainque@adacore.com>
8738
8739 * convert.c (convert_to_integer): Don't assume an input pointer is
8740 POINTER_SIZE wide. Fetch from the type instead.
8741
81a71e2b 87422009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8743
8744 * configure.ac (AC_PREREQ): Bump to 2.64.
8745
23f19d1b 87462009-08-24 Rafael Avila de Espindola <espindola@google.com>
8747
8748 * gcc.c (standard_exec_prefix_1,standard_exec_prefix_2): Remove.
8749 (process_command): Don't search standard_exec_prefix_1 and
8750 standard_exec_prefix_2.
8751
4eff18f0 87522009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8753
66f98e8a 8754 * config/arm/arm.c (output_return_instruction): Handle for
8755 unified syntax.
4eff18f0 8756
80ffb9de 87572009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8758
66f98e8a 8759 * config/arm/arm.c (arm_select_cc_mode): Handle subreg.
80ffb9de 8760
85393a52 87612009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8762
66f98e8a 8763 * config/arm/vfp.md (*arm_movdi_vfp): Mark as predicable.
8764 (*arm_movdf_vfp): Likewise.
85393a52 8765
6fbc081b 87662009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8767
66f98e8a 8768 * config/arm/neon.md (vashl<mode>3): Rename from ashl<mode>3.
8769 (vashr<mode>3): Rename from ashr<mode>3.
8770 (vlshr<mode>3): Rename from lshr<mode>3.
6fbc081b 8771
6794f93d 87722009-08-24 Kai Tietz <kai.tietz@onevision.com>
8773
8774 PR/40786
030fcc8b 8775 * c-format.c (format_wanted_type): Add new member scalar_identity_flag.
6794f93d 8776 (check_format_info_main): Use scalar_identify_flag.
8777 (check_format_types): Check for scalar size identity if
8778 scalar_identify_flag is set.
8779 (printf_length_specs): Extend by new field.
8780 (asm_fprintf_length_specs): Likewise.
8781 (gcc_diag_length_specs): Likewise.
8782 (scanf_length_specs): Likewise.
8783 (strfmon_length_specs): Likewise.
8784 (gcc_gfc_length_specs): Likewise.
8785 * config/i386/msformat-c.c (ms_printf_length_specs): Likewise.
8786 (ms_printf_flag_specs): Likewise.
8787 * c-format.h (format_length_info): Add new member scalar_identity_flag.
8788
7fa90ef4 87892009-08-23 Uros Bizjak <ubizjak@gmail.com>
8790
8791 PR target/40718
8792 * config/i386/i386.c (*call_pop_1): Disable for sibling calls.
0d67d758 8793 (*call_value_pop_1): Ditto.
7fa90ef4 8794 (*sibcall_pop_1): New insn pattern.
0d67d758 8795 (*sibcall_value_pop_1): Ditto.
7fa90ef4 8796
a2f10148 87972009-08-23 Alan Modra <amodra@bigpond.net.au>
8798
8799 PR target/41081
8800 * config/rs6000/rs6000.md (rotlsi3_64, ashlsi3_64, lshrsi3_64,
8801 ashrsi3_64): New.
8802
f92bd2dd 88032009-08-23 Alan Modra <amodra@bigpond.net.au>
8804
8805 PR target/41081
8806 * fwprop.c (try_fwprop_subst): Allow multiple sets.
8807 (get_reg_use_in): New function.
8808 (forward_propagate_subreg): Propagate through subreg of zero_extend
8809 or sign_extend.
8810
a1ef431d 88112009-08-22 Kaz Kojima <kkojima@gcc.gnu.org>
8812
8813 * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS): Define.
8814 * config/sh/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -mieee.
8815
cd9a469c 88162009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8817
115d57c5 8818 * configure.ac: Remove --with-datarootdir, --with-docdir,
8819 --with-htmldir switches. No need to call AC_SUBST for
8820 datarootdir, docdir, htmldir any more.
8821 * configure: Regenerate.
8822 * doc/install.texi (Configuration): Document --datarootdir,
8823 --docdir, --htmldir, --pdfdir; update documentation for
8824 --infodir, --mandir.
119a3c48 8825 (Prerequisites): Bump Autoconf version to 2.64, Automake to 1.11,
8826 M4 to 1.4.6.
115d57c5 8827
cd9a469c 8828 * aclocal.m4: Regenerate.
8829 * config.in: Regenerate.
8830 * configure: Regenerate.
8831
8b8d3752 88322009-08-21 Douglas B Rupp <rupp@gnat.com>
8833 Olivier Hainque <hainque@adacore.com>
8834
8835 * config/ia64/ia64.c: Include libfuncs.h.
8836 (TARGET_PROMOTE_FUNCITON_MODE): Define target macro.
8837 (ia64_expand_call): Use reg 25 on VMS.
8838 (ia64_initialize_trampoline): Fix for VMS ABI.
8839 (ia64_function_arg_offset): Always returns 0 when TARGET_ABI_OPEN_VMS.
8840 (ia64_function_arg): Initialize reg 25 on VMS.
8841 Fix OpenVMS ABI issues for varargs.
8842 For OpenVMS, emit the Argument Information register set in the
8843 incoming/sibcall case as well.
8844 (ia64_arg_type): New function.
8845 (ia64_function_arg_advance): Keep track of cum->words.
8846 Fix OpenVMS ABI issues for varargs.
8847 (ia64_function_value): On VMS, promote mode of non-aggregate types.
8848 (ia64_override_options): Set flag_no_common on VMS.
8849 (ia64_init_builtins): Disable FWRITE builtin.
8850 (ia64_asm_output_external): Call DO_CRTL_NAMES.
8851 (ia64_vms_init_libfuncs): Add decc$ routines.
8852 (ia64_vms_valid_pointer_mode): New function.
8853 (ia64_struct_value_rtx): Allways NULL_RTX on VMS.
8854 (ia64_promote_function_mode): New function
8855 * config/ia64/ia64.h (TARGET_ABI_OPEN_VMS): Define as 0 for default.
8856 (LONG_DOUBLE_TYPE_SIZE): Force to 64 on VMS.
8857 (LIBCGC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
8858 (INIT_CUMULATIVE_ARGS): Add atypes for VMS.
8859 (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
8860 (ASM_OUTPUT_DEF): Use ISDIGIT instead of isdigit.
8861 Suppress trailing '#' if VALUE is numeric.
8862 * config/ia64/vms.h (PROMOTE_FUNCTION_MODE): Remove, code moved to
8863 ia64_promote_function_mode.
8864 (TARGET_VALID_POINTER_MODE): Define.
8865
5763e7b8 88662009-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8867
8868 PR target/40671
8869 * config/rs6000/rs6000.c (rs6000_override_options): Use
7fa90ef4 8870 TARGET_64BIT instead of TARGET_POWERPC64 to set the size of pointers.
5763e7b8 8871
8872 PR target/41145
8873 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Fix
e6f3bd37 8874 reporting of vector + decimal/boolean/complex error.
5763e7b8 8875
a916d53a 88762009-08-21 Jakub Jelinek <jakub@redhat.com>
8877
8878 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix type of
8879 __vector double TYPE_DECL.
8880
8ac5341f 88812009-08-21 Richard Earnshaw <rearnsha@arm.com>
8882
8883 * arm.h (MACHMODE): New define. Include insn-modes.h if available.
8884 (CUMULATIVE_ARGS): Use MACHMODE for declaration of aapcs_vfp_mode.
8885 * arm.c (aapcs_vfp_is_call_or_return_candidate): Change base_mode
8886 to pointer to enum machine_mode. Update all callers as needed.
8887
d9064fba 88882009-08-21 Uros Bizjak <ubizjak@gmail.com>
8889
8890 * config/alpha/alpha.md (exception_receiver): Emit alternative
8891 GP load sequence if flag_reorder_blocks_and_partition is set.
8892 (*exception_receiver_2): Also enable when
8893 flag_reorder_blocks_and_partition is set.
8894
a7b6471c 88952009-08-20 Matt Rice <ratmice@gmail.com>
8896 Diego Novillo <dnovillo@google.com>
8897
8898 * Makefile.in (PLUGIN_HEADERS): Include incpath.h and
8899 tree-ssa-sccvn.h.
8900
874993a5 89012009-08-20 Richard Guenther <rguenther@suse.de>
8902
7fa90ef4 8903 * c-objc-common.h (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Do not define.
874993a5 8904 * c-tree.h (c_dup_lang_specific_decl): Remove.
8905 (struct lang_decl, struct lang_type): Move definitions ...
8906 * c-lang.h: ... here. New file.
8907 * c-decl.c: Include c-lang.h.
8908 (c_dup_lang_specific_decl): Remove.
8909 * c-typeck.c: Include c-lang.h.
8910 * Makefile.in (c-decl.o): Add c-lang.h dependency.
8911 (c-typeck.o): Likewise.
8912 * c-config-lang.in (gtfiles): Add c-lang.h.
8913 * gengtype.c (get_output_file_with_visibility): Handle c-lang.h
8914 like c-tree.h.
8915
a2d3293a 89162009-08-20 Uros Bizjak <ubizjak@gmail.com>
8917
8918 * config/alpha/alpha.c (alpha_end_function): Do not clear
8919 crtl->emit structure and free insn locators if cfun->is_thunk is true,
8920 this is now handled in generic code.
8921
73df8a45 89222009-08-20 Andreas Krebbel <krebbel1@de.ibm.com>
8923
8924 * config/s390/s390.c (Z10_PREDICT_DISTANCE): New macro.
8925 (s390_z10_fix_long_loop_prediction): New function.
8926 (s390_z10_optimize_cmp): INSN walk moved to callee - s390_reorg.
8927 (s390_reorg): Walk over the INSNs and invoke
8928 s390_z10_fix_long_loop_prediction and s390_z10_optimize_cmp.
8929
f1443d23 89302009-08-20 Andreas Krebbel <krebbel1@de.ibm.com>
8931
8932 * config/s390/s390.md ("*brx_stage1_<GPR:mode>", "*brxg_64bit",
8933 "*brx_64bit", "*brx_31bit"): New patterns.
8934 * config/s390/s390.c ('E'): New output modifier.
8935
eca5c984 89362009-08-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
a2d3293a 8937 Richard Earnshaw <richard.earnshaw@arm.com>
eca5c984 8938
a2d3293a 8939 * config/arm/arm.c (arm_emit_movpair): Handle CONST_INT.
8940 * config/arm/arm.md (*arm_movtas_ze): New pattern for movt.
eca5c984 8941
853940d9 89422009-08-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8943
8944 * pa.md (reload_inhi, reload_outhi, reload_inqi, reload_outqi): New
8945 patterns.
8946 * pa.c (emit_move_sequence): Check if address of operand1 is valid
8947 for mode mode of operand0 when doing secondary reload for SAR.
8948
5fb2a157 89492009-08-19 Jakub Jelinek <jakub@redhat.com>
8950
8951 PR middle-end/41123
8952 * expr.c (expand_expr_real_1) <normal_inner_ref>: Handle all kinds
8953 of CONCAT, not just bitpos 0 bitsize size of the whole CONCAT.
8954
a02f3606 89552009-08-19 Jason Merrill <jason@redhat.com>
8956
8957 * doc/invoke.texi (C++ Dialect Options): Note change of minimum
8958 supported template depth in C++0x.
8959
ca2aa213 89602009-08-19 Jakub Jelinek <jakub@redhat.com>
8961
8962 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call
8963 free_after_compilation.
8964 * config/score/score7.c (score7_output_mi_thunk): Likewise.
8965 * config/score/score3.c (score3_output_mi_thunk): Likewise.
8966 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
8967 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
8968 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
8969 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
8970 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
8971
86efc2bb 89722009-08-19 Ian Lance Taylor <iant@google.com>
8973
8974 * doc/md.texi (Insn Canonicalizations): Correct canonicalization
8975 of (plus (mult (neg B) C) A).
8976
1ea6a73c 89772009-08-18 Michael Matz <matz@suse.de>
8978
8979 * omp-low.c (optimize_omp_library_calls): Use types_compatible_p
8980 instead of comparing TYPE_MAIN_VARIANT for equality.
8981 * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
8982 vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto.
8983 * tree-vect-loop.c (vect_is_simple_reduction): Ditto.
8984 * gimplify.c (goa_lhs_expr_p): Ditto and use
8985 STRIP_USELESS_TYPE_CONVERSION.
8986
e1b3b79b 89872009-08-18 Michael Matz <matz@suse.de>
8988
8989 * tree-ssa-structalias.c (create_variable_info_for): Also mark
8990 first field in a struct.
8991 (intra_create_variable_infos): Don't deal with flag_argument_noalias.
8992
f2b52d4f 89932009-08-18 Uros Bizjak <ubizjak@gmail.com>
8994
8995 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
8996 locators before emit_insn is called. Remove assert that
8997 cfun->is_thunk.
8998 (alpha_end_function): Clear crtl->emit structure and free insn
8999 locators if cfun->is_thunk is true.
9000
924907a3 90012009-08-18 Jason Merrill <jason@redhat.com>
9002
9003 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
9004 type if available.
9005 * configure.ac: Test for it.
9006 * configure, config.in: Regenerate.
9007 * doc/install.texi: Document --enable-gnu-unique-object.
9008
49e436b5 90092009-08-18 Richard Guenther <rguenther@suse.de>
9010
9011 PR middle-end/41094
9012 * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
9013 pow(x,y*z) only if x is nonnegative.
9014
b14b6a13 90152009-08-18 Jakub Jelinek <jakub@redhat.com>
9016
9017 * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
9018 on jumps.
9019
f3aba4fa 9020 PR target/40971
9021 * config/rs6000/rs6000.c (rs6000_legitimize_address): For
9022 [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.
9023
cc24427c 90242009-08-17 DJ Delorie <dj@redhat.com>
9025
9026 * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
9027 * config/m32c/prologue.md (epilogue_freit): New.
9028 (fset_b): New.
9029 * config/m32c/m32c.c (m32c_function_needs_enter): Add prototype.
9030 (bank_switch_p): Likewise.
9031 (fast_interrupt_p): Likewise.
9032 (interrupt_p): Likewise.
9033 (m32c_conditional_register_usage): Round memregs size up.
9034 (need_to_save): We only need to save $a0 when we use ENTER.
9035 (interrupt_p): Check for fast_interrupt too.
9036 (bank_switch_p): New.
9037 (fast_interrupt_p): New.
9038 (m32c_attribute_table): Add bank_switch and fast_interrupt.
9039 (m32c_emit_prolog): Support bank switching and fast interrupts.
9040 * doc/extend.texi (Function Attributes): Add bank_switch and
9041 fast_interrupt.
9042
656ad977 90432009-08-17 Douglas B Rupp <rupp@gnat.com>
9044
9045 * config/alpha/alpha.c (vms_valid_pointer_mode): New function.
9046 * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.
9047
0da249fd 90482009-08-16 Douglas B Rupp <rupp@gnat.com>
9049
7fa90ef4 9050 * doc/invoke.texi (Target options): Add new option list for IA-64/VMS.
0da249fd 9051 (menu): Add IA-64/VMS Options.
9052 (IA-64/VMS Options): Likewise.
9053
7d9383c3 90542009-08-16 Richard Sandiford <rdsandiford@googlemail.com>
9055
9056 PR target/38599
9057 * config/mips/mips.md (*lwxs): Use :P for pointer values.
9058
0a54d56a 90592009-08-16 Richard Sandiford <rdsandiford@googlemail.com>
9060
9061 * config/mips/mips-protos.h (mips_push_asm_switch): New function.
9062 (mips_pop_asm_switch): Likewise.
9063 * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
9064 with...
9065 (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
9066 (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
9067 (mips_push_asm_switch, mips_pop_asm_switch): Likewise.
9068 (mips_print_operand_punctuation): Use them. Check mips_noreorder
9069 instead of set_noreorder.
9070 (mips_output_function_prologue): Use the new functions.
9071 (mips_output_function_epilogue): Likewise.
9072 (mips_need_noat_wrapper_p): New function, split out from...
9073 (mips_final_prescan_insn, mips_final_postscan_insn): ...here.
9074 Use mips_push_asm_switch and mips_pop_asm_switch.
9075 * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
9076 and mips_pop_asm_switch.
9077 (ASM_OUTPUT_REG_POP): Likewise.
9078 (DBR_OUTPUT_SEQEND): Remove boilerplate comment.
9079 Use mips_pop_asm_switch.
9080 (mips_asm_switch): New structure.
9081 (set_noreorder, set_nomacro): Replace with...
9082 (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
9083 * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
9084 instead of set_nomacro.
9085 (fix_truncsfsi2_macro): Likewise.
9086 (cprestore): Likewise.
9087 (hazard): Use mips_noreorder instead of set_noreorder.
9088 * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
9089
937fc2f7 90902009-08-16 Uros Bizjak <ubizjak@gmail.com>
9091
0ba3d165 9092 * config/alpha/alpha.c (alpha_end_function): Handle NULL_RTX returned
937fc2f7 9093 from prev_active_insn.
9094
3eb18e1f 90952009-08-16 Anatoly Sokolov <aesok@post.ru>
9096
9097 * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
9098 * config/avr/avr.c (avr_override_options): Initialize
9099 avr_current_arch variable.
9100 (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
9101 __AVR_HAVE_16BIT_SP__ according to the device type.
9102 (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
9103 TARGET_TINY_STACK.
9104 (expand_epilogue): Use correct QI mode frame pointer for tiny stack.
9105 Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.
9106
fb44fa22 91072009-08-16 Dodji Seketeli <dodji@redhat.com>
9108
7aa793fe 9109 PR debug/37801
fb44fa22 9110 * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on
9111 generating inlined subroutine die only. We shouldn't be
9112 called for anything else.
9113 (gen_block_die): Don't generate inline subroutine debug info for
9114 abstract blocks.
9115
3c035d93 91162009-08-15 Sebastian Pop <sebastian.pop@amd.com>
9117
9118 * graphite-poly.c (print_pbb): Print PBB index.
9119
19eec579 91202009-08-15 Sebastian Pop <sebastian.pop@amd.com>
9121
9122 PR middle-end/40981
9123 * graphite-interchange.c (ppl_max_for_le): Moved...
9124 * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
9125 * graphite-ppl.c (ppl_max_for_le): ... here. Correct the use of
9126 ppl_Pointset_Powerset_C_Polyhedron_maximize.
9127 * graphite-ppl.h (ppl_max_for_le): Declared.
9128
7f68f564 91292009-08-14 Olatunji Ruwase <tjruwase@google.com>
9130
9131 * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
9132 supported on all platforms.
7fa90ef4 9133 * target.h (struct gcc_target): Remove handle_pragma_redefine_extname.
9134 * c-cppbuiltin.c: Remove use of targetm.handle_pragma_redefine_extname.
7f68f564 9135 * c-pragma.c: Likewise.
9136 * target-def.h (TARGET_INITIALIZER): Remove
9137 TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
7fa90ef4 9138 * config/sol2.h: Remove use of TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
7f68f564 9139
2f2c1efb 91402009-08-14 Douglas B Rupp <rupp@gnat.com>
9141
9142 * config/ia64/fde-vms.c: New file.
9143 * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg.
9144 * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h
9145 (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default.
9146 (uw_frame_state_for): Only register a personality routine if it is
9147 known to be compatible with our expectations.
9148 (_Unwind_FindEnclosingFunction, uw_frame_state_for):
9149 Declare unw_table_entry stack variable and
9150 mod all calls to _Unwind_FindTableEntry to add arg.
9151 * config/ia64/unwind-ia64.h (UNW_ accessors): Move here.
9152 (_Unwind_FindTableEntry): Add arg to prototype.
9153
17a745fe 91542009-08-14 Eric Botcazou <ebotcazou@adacore.com>
9155
9156 * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new
9157 field 'signal_pfs_loc'.
9158 (uw_frame_state_for): Remove duplicate code dealing with leaf
9159 procedures without unwind info.
9160 If in the frame after unwinding through a signal handler, restore
9161 the AR.PFS register instead of the CFM if AR.PFS has not been saved.
9162 * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set
9163 'pfs_loc' to the AR.PFS location in the signal context; instead
9164 set 'signal_pfs_loc'.
9165 Manually generate the unwind info for the AR.PFS register.
9166 (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT,
9167 ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define.
9168 (ia64_handle_unwabi): Test 'fs->unwabi' against them.
9169 Do not set 'pfs_loc' to the AR.PFS location in the signal context;
9170 instead set 'signal_pfs_loc'.
9171 Remove code preventing the AR.PFS register from being restored
9172 from the signal context.
9173
f51dfe4d 91742009-08-14 Douglas B Rupp <rupp@gnat.com>
9175 Tristan Gingold <gingold@adacore.com>
9176
9177 * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
9178 * config/ia64/t-vms: New file.
9179 * config/ia64/vms64.h: New file.
9180 * config/ia64/vms.h: New file.
9181 * config/ia64/vms-crtinit.asm: New file.
9182 * config/ia64/vms_symvec_libgcc_s.opt: New file.
9183 * config/ia64/vms-unwind.h: New file.
9184
a717c371 91852009-08-14 Uros Bizjak <ubizjak@gmail.com>
9186
9187 * config/alpha/alpha.c (alpha_emit_conditional_move): Handle
9188 TFmode compares.
9189
63e89698 91902009-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9191
9192 PR middle-end/30789
7fa90ef4 9193 * builtins.c (do_mpc_arg2): Make extern, define for any MPC version.
9194 Move declaration...
63e89698 9195 * real.h (do_mpc_arg2): ... here.
9196 * fold-const.c (const_binop): Use MPC for complex MULT_EXPR
9197 and RDIV_EXPR.
9198
c937fbea 91992009-08-14 Rafael Avila de Espindola <espindola@google.com>
9200
7f68f564 9201 * final.c (add_debug_prefix_map): Don't use GC memory for
9202 old_prefix and new_prefix.
c937fbea 9203
8700909c 92042009-08-14 Richard Guenther <rguenther@suse.de>
9205
9206 * ipa-prop.c (compute_complex_pass_through): If we cannot
9207 compute a non-varying offset for IPA_JF_ANCESTOR punt.
9208
a0ef5201 92092009-08-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9210
9211 * c-lex.c (c_lex_with_flags): Increase size of local variable
9212 to avoid memory clobber.
9213
b2e46392 92142009-08-14 Paolo Bonzini <bonzini@gnu.org>
9215
9216 PR target/40934
9217 * config/i386/i386.c (ix86_fp_comparison_strategy):
a717c371 9218 Only enable/disable sahf at function granularity.
b2e46392 9219
4f426d85 92202009-08-14 Hans-Peter Nilsson <hp@axis.com>
9221
9222 PR rtl-optimization/41064
9223 * reload1.c (reload_as_needed): Don't call extract_insn
9224 for known invalid replacements after calling
9225 validate_replace_rtx_group and verify_changes.
9226
17e313b0 92272009-08-14 Uros Bizjak <ubizjak@gmail.com>
9228
9229 PR target/41019
9230 * config/i386/sse.md (SSEMODE124C8): New mode iterator.
9231 (vcond<SSEMODEF2P:mode>): Assert that operation is supported by
9232 ix86_expand_fp_vcond.
9233 (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
9234 Assert that operation is supported by ix86_expand_int_vcond.
9235 (vcondu<SSEMODE124C8:mode>): Ditto.
9236
a47075bb 92372009-08-13 DJ Delorie <dj@redhat.com>
9238
9239 * config/i386/djgpp-stdint.h: New.
9240 * config.gcc (djgpp): Use it.
9241
06b71e62 92422009-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
9243
9244 * config/sh/sh.c (sh_override_options): When flag_exceptions or
17e313b0 9245 flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off.
06b71e62 9246
e17cf2c8 92472009-08-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
9248
a717c371 9249 * tree-ssa-loop-prefetch.c
9250 (prune_ref_by_group_reuse): Enhance probabilistic analysis
e17cf2c8 9251 for long-stride pruning.
9252 (compute_miss_rate): New function to compute the probability
a717c371 9253 that two memory references access different cache lines.
e17cf2c8 9254
323c8f71 92552009-08-13 Dave Korn <dave.korn.cygwin@gmail.com>
9256
9257 * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.
9258
4c0d4e21 92592009-08-13 Richard Guenther <rguenther@suse.de>
9260
9261 PR middle-end/41047
9262 * tree-ssa-ccp.c (ccp_fold): When folding pointer additions
9263 use the constant pointer type.
9264 * gimplify.c (canonicalize_addr_expr): Canonicalize independent
9265 of CV qualifiers on the target pointer type.
9266 * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
9267 conversion check before restrict check.
9268
449ddd47 92692009-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
9270
9271 PR target/41029
9272 * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
9273
c596fd64 92742009-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
9275
9276 * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
9277
b14e6fc5 92782009-08-12 Richard Guenther <rguenther@suse.de>
9279
9280 PR tree-optimization/41011
9281 * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
9282 and reference constructing.
9283
19bcf521 92842009-08-12 Xinliang David Li <davidxl@google.com>
9285
9286 PR tree-optimization/41012
9287 * tree-flow.h : New external interface.
9288 * gimple-low.c (check_call_arg): Change to public function.
9289 Remove argument mismatch check in lowering.
9290 * tree-inline.h (tree_can_inline_p): Interface change.
9291 * tree-inline.c (tree_can_inline_p): Fold argument mismatch check
9292 into this function.
f6c8c8fc 9293 * ipa-inline.c (cgraph_decide_inlining_of_small_functions):
19bcf521 9294 Call change to tree_can_inline_p function.
9295 (cgraph_decide_inlining_incrementally): Ditto.
9296
27d3c04f 92972009-08-12 Richard Sandiford <rdsandiford@googlemail.com>
9298
9299 PR tree-optimization/41031
9300 * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
9301 on the partition variable rather than promote_mode on the source
9302 type. Assert that the partition variable's type has the same
9303 mode as the source value's.
9304
c879dbcf 93052009-08-12 Paolo Bonzini <bonzini@gnu.org>
9306
9307 * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
9308 for for_return == 2.
9309 * function.c (assign_parm_setup_reg): Use for_return == 2, improve
9310 comments.
9311 * calls.c (expand_call): Fix typo.
9312 * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
9313 and PARM_DECL.
9314 * stmt.c (expand_value_return): Use promote_function_mode to copy out
9315 of pseudo.
9316 * targhooks.c (default_promote_function_mode): Handle for_return == 2.
9317 * config/cris/cris.c (cris_promote_function_mode): Likewise.
9318 * config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
9319 * config/pa/pa.c (pa_promote_function_mode): Likewise.
9320
8ac5341f 93212009-08-12 Andrew Haley <aph@redhat.com>
71843396 9322
9323 * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
9324
4d9e5553 93252009-08-12 Sebastian Pop <sebastian.pop@amd.com>
9326
9327 PR bootstrap/40103
9328 * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
9329
dfe8e806 93302009-08-12 Richard Guenther <rguenther@suse.de>
9331
9332 * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
9333 * gimplify.c (gimplify_modify_expr): Do not use
9334 lang_hooks.types_compatible_p.
9335 * tree-ssa.c (useless_type_conversion_p): For aggregates
9336 just return false if the canonical types differ.
9337
43f8b6ab 93382009-08-12 Sebastian Pop <sebastian.pop@amd.com>
9339
9340 PR middle-end/40980
9341 * sese.c (convert_for_phi_arg): New.
9342 (add_guard_exit_phis): Use convert_for_phi_arg.
9343
96da1999 93442009-08-12 Sebastian Pop <sebastian.pop@amd.com>
9345
9346 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
9347 unknown subscript upper bounds.
9348
80020e9d 93492009-08-12 Sebastian Pop <sebastian.pop@amd.com>
9350 Pranav Garg <pranav.garg2107@gmail.com>
9351
9352 * graphite-interchange.c (gather_access_strides): Removed.
9353 (ppl_max_for_le): New.
9354 (build_linearized_memory_access): New.
9355 (memory_stride_in_loop): New.
9356 (pbb_interchange_profitable_p): Reimplemented.
9357 * graphite-ppl.h (ppl_new_id_map): New.
9358 (ppl_interchange): New.
9359
c9fce634 93602009-08-12 Sebastian Pop <sebastian.pop@amd.com>
9361
9362 * graphite-interchange.c (compute_subscript): Removed.
9363 (compute_array_size_cstr): Removed.
9364 (compute_array_size_poly): Removed.
9365 (compute_array_size): Removed.
9366 (gather_access_strides_poly): Removed.
9367 (gather_access_strides): Empty.
9368
85f74b79 93692009-08-12 Sebastian Pop <sebastian.pop@amd.com>
9370
9371 * graphite-dependences.c (dependence_polyhedron_1): Replace
9372 pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
9373 (graphite_legal_transform_dr): Same.
9374 (graphite_carried_dependence_level_k): Same.
9375 * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
9376 Initialize PDR_NB_SUBSCRIPTS.
9377 (print_pdr_access_layout): Replace pdr_nb_subscripts with
9378 PDR_NB_SUBSCRIPTS.
9379 * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
9380 (PDR_NB_SUBSCRIPTS): New.
9381 (pdr_nb_subscripts): Removed.
9382 (pdr_dim): Simplified.
9383 * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
9384 with PDR_NB_SUBSCRIPTS.
9385
19b42529 93862009-08-12 Sebastian Pop <sebastian.pop@amd.com>
9387
9388 * graphite-interchange.c (compute_array_size): Remove use of
9389 PDR_DATA_CONTAINER.
9390 * graphite-poly.c (new_poly_dr): Remove argument data_container.
9391 Do not initialize PDR_DATA_CONTAINER.
9392 (print_pdr): Do not print PDR_DATA_CONTAINER.
9393 * graphite-poly.h (struct poly_dr): Remove data_container field.
9394 (PDR_DATA_CONTAINER): Removed.
9395 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
9396 PDR_DATA_CONTAINER.
9397 (build_poly_dr): Same.
9398
0835eab6 93992009-08-12 Konrad Trifunovic <konrad.trifunovic@gmail.com>
9400 Sebastian Pop <sebastian.pop@amd.com>
9401
9402 * graphite-dependences.c (graphite_legal_transform_dr): Work on a
9403 copy of the dependence polyhedron. Free the temporary objects.
9404 (graphite_carried_dependence_level_k): Free unused objects before
9405 returning.
9406
a741358d 94072009-08-12 Sebastian Pop <sebastian.pop@amd.com>
9408
9409 * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
9410 Early return without analyzing the data dependences if no
9411 transform has been done. Call restore_scattering if the transform
9412 is not legal.
9413 (graphite-interchange.c): Same.
17e313b0 9414 * graphite-poly.c (print_scattering_function): Test for
9415 PBB_TRANSFORMED.
a741358d 9416 (graphite_read_transforms): Initialize PBB_TRANSFORMED.
9417 (apply_poly_transforms): Do not gcc_assert that
9418 the transform is legal.
17e313b0 9419 (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL.
a741358d 9420 Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
9421 PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
9422 (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
9423 * graphite-poly.h (struct poly_scattering): New.
9424 (struct poly_bb): Add original, transformed, and saved fields.
17e313b0 9425 Remove transformed_scattering, original_scattering,
9426 nb_local_variables and nb_scattering_transform fields.
a741358d 9427 (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
9428 (poly_scattering_new): New.
9429 (poly_scattering_free): New.
9430 (poly_scattering_copy): New.
9431 (store_scattering_pbb): New.
9432 (store_scattering): New.
9433 (restore_scattering_pbb): New.
9434 (restore_scattering): New.
9435 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
9436 Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
9437
95b2e0d3 94382009-08-12 Sebastian Pop <sebastian.pop@amd.com>
9439
9440 * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
9441 (print_scop): Same.
9442
675d86b2 94432009-08-12 Sebastian Pop <sebastian.pop@amd.com>
9444
9445 * Makefile.in (graphite.o): Depends on PREDICT_H.
9446 * graphite.c: Include predict.h.
9447 (graphite_finalize): Call tree_estimate_probability.
9448 * predict.c (predict_loops): Do not call scev_initialize and
9449 scev_finalize.
9450 (tree_estimate_probability_bb): New.
9451 (tree_estimate_probability): Do not initialize loops: move that
9452 code to the driver. Call tree_estimate_probability_bb.
9453 (tree_estimate_probability_driver): New.
9454 (pass_profile): Use tree_estimate_probability_driver.
9455 * predict.h (tree_estimate_probability): Declared.
9456
525c22c4 94572009-08-12 Sebastian Pop <sebastian.pop@amd.com>
9458
9459 * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
9460 * graphite-dependences.c (graphite_legal_transform): Add time to
9461 TV_GRAPHITE_DATA_DEPS.
9462 (dependency_between_pbbs_p): Same.
9463 * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
9464
b95fdaae 94652009-08-12 Andrey Belevantsev <abel@ispras.ru>
9466
9467 PR rtl-optimization/41033
f6c8c8fc 9468 * alias.c (nonoverlapping_component_refs_p): Punt when strict
b95fdaae 9469 aliasing is disabled.
9470
c051f153 94712009-08-11 Adam Nemet <anemet@caviumnetworks.com>
9472
9473 * config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
9474 si_mask_operand, and_load_operand, low_bitmask_operand,
9475 and_reg_operand, and_operand): New predicates.
9476 * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
9477 * config/mips/mips.c (and_operands_ok): New function.
9478 * config/mips/mips-protos.h (and_operands_ok): Declare it.
9479 * config/mips/mips.md (move_type): Add ext_ins and logical.
9480 (type): Handle them.
17e313b0 9481 (and<mode>3): Use and_reg_operand as the second operand's predicate.
c051f153 9482 (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
9483 shift_shift. Remove commutative constraint modifier.
9484 (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
9485 shift_shift.
9486 (*clear_upper32_dext): Remove define_insn_and_split.
9487 (*clear_upper32): Turn this define_insn_and_split ...
9488 (splitter for ANDing register with 0xffff_ffff): .. into this.
9489
d16b48d5 94902009-08-11 Adam Nemet <anemet@caviumnetworks.com>
9491
9492 * combine.c (try_widen_shift_mode): Factor out code to check if an
f6c8c8fc 9493 integer constant is a low-order bitmask from here ...
d16b48d5 9494 * rtlanal.c (low_bitmask_len): ... to here.
9495 * rtl.h (low_bitmask_len): Declare.
9496
4c95716b 94972009-08-11 Uros Bizjak <ubizjak@gmail.com>
9498
9499 PR target/8603
9500 * config/alpha/alpha.md (addsi3): Remove expander.
9501 (addsi3): Rename from *addsi3_internal insn pattern.
9502 (subsi3): Remove expander.
9503 (subsi3): Rename from *subsi3_internal insn pattern.
9504
a5773a09 95052009-08-11 Douglas B Rupp <rupp@gnat.com>
9506
9507 * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
9508 FWRITE_UNLOCKED.
9509
cfdbb1f5 95102009-08-11 Vasiliy Fofanov <fofanov@adacore.com>
4c95716b 9511 Eric Botcazou <botcazou@adacore.com>
9512 Douglas B Rupp <rupp@gnat.com>
cfdbb1f5 9513
9514 * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
9515 that records that fit in 64 bits are returned by immediate value,
9516 as required by OpenVMS Calling Standard.
9517 (function_value): Adjust for above modification.
9518 (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
9519 virtual_incoming_args_rtx as base object, not next_arg.
d603963f 9520 * config/alpha/vms.h (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
cfdbb1f5 9521
79141aaa 95222009-08-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9523
9524 * reload.c (find_reloads_subreg_address): Check the original
9525 req_equiv_mem address to detect the case where an address is
9526 not valid in the outer mode.
9527
84033db4 95282009-08-11 Richard Guenther <rguenther@suse.de>
f6c8c8fc 9529
4c95716b 9530 PR bootstrap/40788
9531 * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION.
84033db4 9532
50afef9b 95332009-08-10 Douglas B Rupp <rupp@gnat.com>
9534
9535 * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
9536 (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
9537
d3832055 95382009-08-10 Olivier Hainque <hainqueu@adacore.com>
4c95716b 9539 Douglas B Rupp <rupp@gnat.com>
d3832055 9540
9541 * config/alpha/alpha.c (alpha_sa_size): Force procedure type to
9542 PT_STACK when frame_pointer_needed on OpenVMS.
9543 (alpha_pv_save_size, alpha_using_fp): Remove.
9544 (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE
9545 with proper processing for PT_NULL.
9546 (alpha_vms_initial_elimination_offset): New function. Support for
9547 INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL.
9548 (alpha_sa_size): Force procedure type to PT_STACK when
9549 frame_pointer_needed on OpenVMS.
9550 * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype.
9551 (alpha_using_fp): Likewise.
9552 (alpha_vms_can_eliminate): Add prototype.
9553 (alpha_vms_initial_elimination_offset): Likewise.
9554 * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
9555 Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset.
9556
00dca3d4 95572009-08-10 Eric Botcazou <botcazou@adacore.com>
4c95716b 9558 Douglas B Rupp <rupp@gnat.com>
00dca3d4 9559
9560 * config/alpha/alpha.c (common_object_handler): New function.
9561 (vms_attribute_table): Declare a single attribute "common_object".
9562 (vms_output_aligned_decl_common): New global function.
9563 (SECTION_VMS_OVERLAY): Delete.
9564 (SECTION_VMS_GLOBAL): Likewise.
9565 (SECTION_VMS_INITIALIZE): Likewise.
9566 (vms_asm_named_section): Remove support for above flags.
9567 (vms_section_type_flags): Delete.
9568 (TARGET_SECTION_TYPE_FLAGS): Likewise.
9569 * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New.
9570 * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
9571 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro.
9572
b71fdb0b 95732009-08-10 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
9574
9575 PR target/41015
9576 * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
9577 (sub_ddmmss): Likewise.
9578
f1fcbf19 95792009-08-10 Andreas Tobler <a.tobler@schweiz.org>
9580
9581 PR bootstrap/41018
9582 * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright
9583 year.
9584
45c9f108 95852009-08-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9586
9587 PR target/37053
9588 * reload1.c (reload_as_needed): Use cancel_changes to completely
9589 undo a failed replacement attempt.
9590
4cf75304 95912009-08-10 Richard Guenther <rguenther@suse.de>
9592
9593 PR middle-end/41006
9594 * tree-ssa.c (useless_type_conversion_p_1): Fold into ...
9595 (useless_type_conversion_p): ... here. Require pointer targets
9596 to be compatible.
9597
29f90295 95982009-08-10 Dodji Seketeli <dodji@redhat.com>
9599
9600 PR c++/40866
9601 * tree-inline.c (copy_statement_list): The resulting copy shouldn't
9602 loose the original type of the statement list.
9603
2db66e7c 96042009-08-09 Douglas B Rupp <rupp@gnat.com>
9605
9606 * config/alpha/alpha.c: Include libfuncs.h
9607 (avms_asm_output_extern): New function.
9608 (alpha_init_libfuncs): Init some decc libfuncs.
9609 * config/alpha/alpha-protos.h (avms_asm_output_external): Declare.
9610 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define.
9611 (DO_CRTL_NAMES): Define.
9612 (LIB_SPEC): Remove.
d603963f 9613 * config/alpha/vms64.h (POINTERS_EXTEND_UNSIGNED): Remove undef.
2db66e7c 9614 (LONG_TYPE_SIZE): Define.
9615 (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1
9616 (SUBTARGET_SWITCHES): Define malloc64 switch.
9617 (TARGET_DEFAULT): Default MASK_MALLOC64 set.
9618 (MASK_RETURN_ADDR): Define.
9619 doc/invoke.texi (mmalloc64): Document switch.
9620
50f36bdb 96212009-08-09 Olivier Hainque <hainque@adacore.com>
4c95716b 9622 Douglas B Rupp <rupp@gnat.com>
50f36bdb 9623
9624 * config/alpha/alpha.c (struct machine_function): New flag for VMS,
9625 uses_condition_handler.
9626 (alpha_expand_builtin_establish_vms_condition_handler): New expander.
9627 (alpha_expand_builtin_revert_vms_condition_handler): New expander.
9628 (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER
9629 and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values.
9630 (code_for_builtin): New insn codes for the new alpha_builtins.
9631 (alpha_init_builtins): Register the new functions as BUILT_IN_MD.
9632 (alpha_sa_size): Account for uses_condition_handler.
9633 (alpha_expand_prologue): Likewise.
9634 (alpha_start_function): Likewise.
9635 (alpha_expand_epilogue): Likewise.
9636 * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin
9637 establish/revert expanders.
9638 * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define.
9639 * config/alpha/alpha.md (builtin_establish_vms_condition_handler):
9640 New expander, resorting to the alpha.c associated function.
9641 (builtin_revert_vms_condition_handler): Likewise.
9642 * config/alpha/vms-gcc_shell_handler.c: New file. Implements
9643 __gcc_shell_handler, the static VMS condition handler used as
9644 an indirection wrapper to the current dynamically established
9645 handler.
9646 * config/alpha/vms-unwind.h: Complete rewrite.
9647 * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c
9648 * config/alpha/vms.h (MD_UNWIND_SUPPORT):
f6c8c8fc 9649
c45d3ddf 96502009-08-09 Eric Botcazou <botcazou@adacore.com>
4c95716b 9651 Douglas B Rupp <rupp@gnat.com>
c45d3ddf 9652
9653 * config/alpha/alpha.c (alpha_links): Add 'target' field.
9654 (alpha_need_linkage): Handle aliases. Return function symbol.
9655 (alpha_use_linkage): Rename 'linkage' argument to 'func'.
9656 Use ultimate alias target for the linkage name.
9657 * config/alpha/alpha.md (movmemdi): Use the symbol returned
9658 by alpha_need_linkage for the function symbol.
9659 (setmemdi): Likewise.
9660
0dbcfe49 96612009-08-09 Douglas B Rupp <rupp@gnat.com>
9662
9663 * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS.
9664 * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define.
9665 (ASM_WEAKEN_LABEL): Define.
9666 (CRT_CALL_STATIC_FUNCTION): Define.
9667 (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o.
9668 (ENDFILE_SPEC): Define.
9669 (INIT_SECTION_ASM_OP): Define.
9670 * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove.
9671 * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o
9672 crtend.o crtendS.o.
9673 (MULTILIB_OSDIRNAMES): Define.
9674 (shlib_version): Define.
9675 (SHLIB_EXT): Define.
9676 (SHLIB_OBJS): Define.
9677 (SHLIB_NAME): Define.
9678 (SHLIB_MULTILIB): Define.
9679 (SHLIB_INSTALL): Define.
9680 (SHLIB_SYMVEC): Define.
9681 (SHLIB_SYMVECX2): Define.
9682 (SHLIB_LINK): Define.
9683
d2f33c43 96842009-08-09 Douglas B Rupp <rupp@gnat.com>
9685
9686 * config/alpha/alpha.c (alpha_initialize_trampoline):
9687 Initialize VMS trampoline IAW ABI for bounded procedure calls.
9688 (alpha_start_function): Emit transfer address on nested functions
9689 for VMS trampoline call.
9690 * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm
9691 since no longer used.
9692 * config/alpha/vms-tramp.asm: Remove.
9693 * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined
9694 since now only data initialized at runtime.
9695
75871697 96962009-08-09 Douglas B Rupp <rupp@gnat.com>
9697
9698 * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define.
9699 (LINK_GCC_C_SEQUENCE_SPEC): Define.
9700 (MD_EXEC_PREFIX): Remove, no longer used.
9701 (MD_STARTFILE_PREFIX): Likewise.
9702 (INCLUDE_DEFAULTS): Likewise.
9703 * config/alpha/t-vms:
9704 (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile.
9705
854e8953 97062009-08-09 Richard Guenther <rguenther@suse.de>
9707
9708 PR tree-optimization/41016
4c95716b 9709 * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug.
854e8953 9710 (operand_precision): Remove.
9711 (integral_operand_p): Likewise.
9712 (recognize_single_bit_test): Adjust.
9713
672d914b 97142009-08-09 Richard Sandiford <rdsandiford@googlemail.com>
9715
9716 * c-common.c (c_fully_fold_internal): Issue a warning if a binary
9717 operation overflows. Likewise non-cast unary arithmetic.
9718 If one arm of a conditional expression is always taken,
9719 inhibit evaluation warnings for the other arm. Likewise inhibit
9720 evaluation warnings for the second && or || operand if the first
9721 operand is enough to determine the result.
9722 * c-typeck.c (build_conditional_expr): Apply the same inhibition
9723 rules here.
9724 (build_binary_op): Prevent duplicate evaluation warnings.
9725
e81447c7 97262009-08-09 Richard Sandiford <rdsandiford@googlemail.com>
9727
9728 * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source
9729 and destination have different modes, Use promote_mode to
9730 determine the signedness of the conversion. Assert that the
9731 promoted source mode matches the destination mode. Don't pass
9732 the destination and destination mode to expand_expr if the source
9733 mode is different. Simplify conversion logic.
9734
a18d4327 97352009-08-09 Ira Rosen <irar@il.ibm.com>
9736
9737 PR tree-optimization/41008
9738 * tree-vect-loop.c (vect_is_simple_reduction): Get operands
f6c8c8fc 9739 from condition only in case it's a comparison. Adjust checks.
a18d4327 9740
3ee48c5c 97412009-08-09 Bernd Schmidt <bernd.schmidt@analog.com>
9742
9743 * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function.
9744 * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it.
9745 * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer.
9746 (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE.
9747 (dump_cand): Handle them.
9748 (struct iv_cand): New members COST_STEP and AINC_USE.
9749 (stmt_after_increment): Likewise.
9750 (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos. All
9751 callers changed. Use gimple_uid comparison instead of scanning.
9752 (add_candidate_1): When looking for identical candidates, take
9753 AINC_USE into account. Set it for new candidates.
9754 (force_expr_to_var_cost): Cast target_spill_cost to int.
9755 (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC.
9756 All callers changed. Check for availability of autoinc addressing
4c95716b 9757 modes, both in general for a given mode, and in the specific use case.
3ee48c5c 9758 (get_computation_cost_at): New argument CAN_AUTOINC. All callers
9759 changed.
9760 (get_computation_cost): Likewise.
9761 (autoinc_possible_for_pair, set_autoinc_for_original_candidates,
9762 add_autoinc_candidates): New static functions.
9763 (add_candidate): Call add_autoinc_candidates for candidates based on
9764 a USE_ADDRESS use.
9765 (find_iv_candidates): Call set_autoinc_for_original_candidates.
9766 (determine_use_iv_cost_address): If we have an autoinc candidate at
9767 the matching use, verify autoinc is possible and subtract the cost
9768 of the candidate's step from the cost.
9769 (determine_iv_cost): Record the cost of the increment in the COST_STEP
9770 member of the candidate.
9771 (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and
9772 determine_use_iv_costs. Call renumber_gimple_stmt_uids_in_blocks.
9773
9b9a2528 97742009-08-09 Douglas B Rupp <rupp@gnat.com>
9775
9776 * config.build (ia64-hp-*vms*): New target.
9777 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
9778 with ia64-hp-*vms*.
9779 * config.gcc (ia64-hp-*vms*): New target.
9780 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
9781 with ia64-hp-*vms*.
9782 * config.host (ia64-hp-*vms*): New target.
9783 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
9784 with ia64-hp-*vms*.
9785
dfe91132 97862009-08-08 Richard Guenther <rguenther@suse.de>
9787
9788 PR tree-optimization/40991
9789 * tree-ssa-pre.c (eliminate): Delay purging EH edges.
9790
ef9384f3 97912009-08-08 Richard Sandiford <rdsandiford@googlemail.com>
9792
9793 * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
9794 mode check. Do truncations in an integer mode.
9795 (force_to_mode): Handle subregs for all mode types. Only do
9796 arithmetic simplifications on integer modes.
9797
cc8f0042 97982009-08-07 Richard Guenther <rguenther@suse.de>
9799
9800 PR tree-optimization/40999
9801 * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
9802 (maybe_fold_reference): Lookup constant initializers.
9803 (fold_gimple_assign): Likewise.
9804
a3552555 98052009-08-07 Richard Guenther <rguenther@suse.de>
9806
9807 * tree-ssa.c (useless_type_conversion_p_1): Only for types
9808 that require structural equality defer to the langhook.
9809
5215027d 98102009-08-07 Martin Jambor <mjambor@suse.cz>
9811
9812 * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
9813 comments.
9814 (struct ipa_pass_through_data): New type.
9815 (struct ipa_ancestor_jf_data): New type.
9816 (union jump_func_value): Removed field formal_id, added fields
9817 pass_through and ancestor.
9818 (struct ipa_param_call_note): Changed type of formal_id to int from
9819 unsigned.
9820 * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
9821 operations jump functions and ancestor jump functions.
9822 (compute_complex_pass_through): New function.
9823 (compute_scalar_jump_functions): Call compute_complex_pass_through,
9824 reflect changes in the jump function strucutre.
9825 (update_jump_functions_after_inlining): Ignore complex pass-through
9826 and ancestor jump functions.
9827 * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
9828 polynomial pass-through with operation jump functions.
9829
33b1ed32 98302009-08-07 Jakub Jelinek <jakub@redhat.com>
9831
9832 * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
9833 fde->dw_fde_begin as begin label instead of hot/cold label.
9834 Use LLSDAC label instead of LLSDA for second section lsda.
9835 (dwarf2out_do_cfi_startproc): Add SECOND argument. Use LLSDAC
9836 label instead of LLSDA if it is true.
9837 (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
9838 callers.
9839 * except.c (add_call_site, dw2_size_of_call_site_table): Add
9840 SECTION argument. Use it as index into crtl->eh.call_site_record
9841 array.
9842 (dw2_output_call_site_table): Likewise. Add CS_FORMAT argument,
9843 use it to determine how to print table entries instead of using
9844 #ifdef HAVE_AS_LEB128. For SECTION > 0 use hot resp. cold
9845 label instead of normal begin label as base.
9846 (sjlj_assign_call_site_values): Adjust add_call_site caller.
9847 (convert_to_eh_region_ranges): When doing hot/cold partitioning,
9848 ensure no EH range spans between sections and that landing pads
9849 are always in the corresponding section.
9850 (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
9851 for crtl->eh.call_site_record being an array rather than scalar.
9852 (output_one_function_exception_table): New function, copied
9853 from output_function_exception_table. Adjust
9854 dw2_size_of_call_site_table, dw2_output_call_site_table
9855 callers. For SECOND section use *C suffixed labels.
9856 (output_function_exception_table): Call
9857 output_one_function_exception_table and, when doing hot/cold
9858 partitioning, also another time for the second section.
9859 * opts.c: Include except.h.
9860 (decode_options): Allow -freorder-blocks-and-partition with
9861 exceptions, unless SJLJ or TARGET_UNWIND_INFO.
9862 * Makefile.in (opts.o): Depend on $(EXCEPT_H).
9863 * function.h (struct rtl_eh): Change call_site_record from
9864 scalar into array of 2 elements.
9865
547f1802 98662009-08-07 Martin Jambor <mjambor@suse.cz>
9867
9868 * ipa-prop.c (count_formal_params_1): New function.
9869 (ipa_get_vector_of_formal_parms): New function.
9870 (get_vector_of_formal_parm_types): New function.
9871 (ipa_modify_formal_parameters): New function.
9872 (ipa_modify_call_arguments): New function.
9873 (index_in_adjustments_multiple_times_p): New function.
9874 (ipa_combine_adjustments): New function.
9875 (ipa_dump_param_adjustments): New function.
9876 * ipa-prop.h (struct ipa_parm_adjustment): New type.
9877 (ipa_get_vector_of_formal_parms): Declare.
9878 (ipa_modify_formal_parameters): Declare.
9879 (ipa_modify_call_arguments): Declare.
9880 (ipa_combine_adjustments): Declare.
9881 (ipa_dump_param_adjustments): Declare.
9882 (build_ref_for_offset): Declare.
9883 * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
9884 * tree-sra.c: Include ipa-prop.c.
f6c8c8fc 9885 (build_ref_for_offset): Make public.
547f1802 9886
c3d60b15 98872009-08-06 Neil Vachharajani <nvachhar@gmail.com>
9888
9889 * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
f6c8c8fc 9890
23807f43 98912009-08-06 Thomas Schwinge <tschwinge@gnu.org>
9892
9893 * gcc/doc/extend.texi (__builtin_extract_return_address)
9894 (__builtin_frob_return_address): Document.
9895
b357350a 98962009-08-06 Paul Brook <paul@codesourcery.com>
9897
9898 * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
9899 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
9900 implementation on ARMv6-M.
9901
3eec35ec 99022009-08-06 Richard Earnshaw <rearnsha@arm.com>
9903
9904 * doc/extend.texi (pcs): Document new attribute for ARM.
9905
02be9205 99062009-08-06 Richard Earnshaw <rearnsha@arm.com>
9907
9908 * arm.c (pcs_attribute_args): Comment out unsupported attribute
9909 variants.
9910
94966ac4 99112009-08-06 Richard Earnshaw <rearnsha@arm.com>
9912
9913 * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
9914 warning ().
9915
f8f15459 99162009-08-06 Richard Earnshaw <rearnsha@arm.com>
9917
9918 * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
9919
578d1295 99202009-08-06 Richard Earnshaw <rearnsha@arm.com>
9921
9922 Merge ARM/hard_vfp_branch to trunk.
9923
9924 2009-08-04 Richard Earnshaw <rearnsha@arm.com>
9925
9926 * arm.c (libcall_eq): New function.
9927 (libcall_hash): New function.
9928 (add_libcall): New function.
9929 (arm_libcall_uses_aapcs_base): New function.
9930 (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
9931 libcalls using the base PCS.
9932 (arm_init_cumulative_args): Likewise.
9933
9934 2009-07-20 Joseph Myers <joseph@codesourcery.com>
9935
9936 * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
9937 Use base ABI for conversion libfuncs between HFmode and SFmode.
9938
9939 2009-05-12 Joseph Myers <joseph@codesourcery.com>
9940
9941 * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
9942 V4SImode as representatives of all 64-bit and 128-bit vector
9943 types. Allow vector types without vector modes.
9944 (aapcs_vfp_is_call_or_return_candidate): Handle vector types
9945 without vector modes like BLKmode.
9946 (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
9947 BLKmode. Avoid unsupported vector modes or TImode moves for
9948 non-TARGET_NEON.
9949 (aapcs_vfp_allocate_return_reg): Likewise.
9950 (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
9951 V8QImode if TARGET_NEON || TARGET_IWMMXT.
9952
9953 2009-05-12 Joseph Myers <joseph@codesourcery.com>
9954
9955 * config/arm/arm.c (arm_handle_pcs_attribute): New.
9956 (arm_get_pcs_model): Pass attribute arguments to
9957 arm_pcs_from_attribute.
9958 (arm_init_cumulative_args): Use base AAPCS for conversions from
9959 floating-point types to DImode.
9960 (arm_attribute_table): Add pcs attribute.
9961 (arm_handle_pcs_attribute): New.
9962 * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
9963 conversions from floating-point types to DImode, also declare them
9964 to use base AAPCS and declare functions they call to use base
9965 AAPCS and their RTABI names.
9966
9967 2009-05-12 Joseph Myers <joseph@codesourcery.com>
9968
9969 * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
9970 -mfloat-abi=hard not being supported for VFP.
9971
9972 2009-05-11 Kazu Hirata <kazu@codesourcery.com>
9973
9974 * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
9975 SYMBOL_REF to hard_libcall_value.
9976
9977 2009-03-05 Joseph Myers <joseph@codesourcery.com>
9978 Richard Earnshaw <rearnsha@arm.com>
9979
9980 * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
9981 has been put on the stack, all remaining co-processory arguments for
9982 that co-processor also go on the stack.
9983
9984 2009-03-05 Joseph Myers <joseph@codesourcery.com>
9985
9986 * config/arm/arm.c (arm_return_in_memory): Handle returning
9987 vectors of suitable size in registers also for AAPCS case.
9988
9989 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
9990
9991 * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
9992
9993 2008-12-09 Richard Earnshaw <rearnsha@arm.com>
9994
9995 ARM Hard-VFP calling convention
9996 * target-def.h (TARGET_LIBCALL_VALUE): New hook.
9997 * target.h (gcc_target): Add libcall_value to table of call hooks.
9998 * targhooks.h (default_libcall_value): Default implementation.
9999 * targhooks.c (default_libcall_value): Likewise.
10000 * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
10001 * optabs.c (expand_unop): Use it.
10002 * expr.h (hard_libcall_value): Pass the function RTX through.
f6c8c8fc 10003 * calls.c (emit_library_call_value_1): Update call to
578d1295 10004 hard_libcall_value.
10005 * explow.c (hard_libcall_value): Use new target hook.
578d1295 10006 * config/arm/arm.c: Include cgraph.h
10007 (TARGET_FUNCTION_VALUE): Override default hook.
10008 (arm_pcs_default): New variable.
10009 (arm_override_options): Don't fault hard calling convention with VFP.
10010 Add support for AAPCS variants.
10011 (arm_function_value): Make static. Handle AAPCS variants.
10012 (arm_libcall_value): New function.
10013 (arm_apply_result_size): Handle VFP registers in results.
10014 (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
10015 conventions.
10016 (pcs_attribute_args): New variable.
10017 (arm_pcs_from_attribute): New function.
10018 (arm_get_pcs_model): New function.
10019 (aapcs_vfp_cum_init): New function.
10020 (aapcs_vfp_sub_candidate): New function.
10021 (aapcs_vfp_is_return_candidate): New function.
10022 (aapcs_vfp_is_call_candidate): New function.
10023 (aapcs_vfp_allocate): New function.
10024 (aapcs_vfp_allocate_return_reg): New function.
10025 (aapcs_vfp_advance): New function.
10026 (aapcs_cp_arg_layout): New variable.
10027 (aapcs_select_call_coproc): New function.
10028 (aapcs_select_return_coproc): New function.
10029 (aapcs_allocate_return_reg): New function.
10030 (aapcs_libcall_value): New function.
10031 (aapcs_layout_arg): New function.
10032 (arm_init_cumulative_args): Initialize AAPCS args data.
10033 (arm_function_arg): Handle AAPCS variants using new interface.
10034 (arm_arg_parital_bytes): Likewise.
10035 (arm_function_arg_advance): New function.
10036 (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
10037 calling conventions.
10038 (arm_setup_incoming_varargs): Handle new AAPCS args data.
10039 * arm.h (NUM_VFP_ARG_REGS): Define.
10040 (LIBCALL_VALUE): Update.
10041 (FUNCTION_VALUE): Delete.
10042 (FUNCTION_VALUE_REGNO_P): Add VFP regs.
10043 (arm_pcs): New enum.
10044 (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
10045 (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
10046 (FUNCTION_ARG_REGNO_P): Add VFP regs.
10047 * arm-protos.h (arm_function_arg_advance): Add.
10048 (aapcs_libcall_value): Add.
10049 (arm_function_value): Delete.
10050
f03e8048 100512009-08-06 Uros Bizjak <ubizjak@gmail.com>
10052 H.J. Lu <hongjiu.lu@intel.com>
10053
10054 PR target/40957
10055 * config/i386/i386.c (standard_sse_mode_p): Remove.
10056 (standard_sse_constant_p): Return 2 for integer mode
10057 vector_all_ones_operand when SSE2 is enabled.
10058 (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
10059 (ix86_expand_vector_move): Do not check for negative values from
10060 standard_sse_constant_p.
10061
9fa67218 100622009-08-06 Richard Guenther <rguenther@suse.de>
10063
10064 * tree-ssa.c (useless_type_conversion_p_1): Make function and
10065 array type comparisons frontend independent.
10066 * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
10067 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
10068 out array reference lower bound and element size operands.
10069 (ao_ref_init_from_vn_reference): Properly compute the offset
10070 for ARRAY_RANGE_REF.
10071 (vn_reference_fold_indirect): Fill out array reference lower
10072 bound and element size operands.
10073 * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
10074 a non gimple valued reference operand which can happen for
10075 array reference lower bound or element size.
10076 (create_component_ref_by_pieces_1): Properly generate the
10077 element size operand for array references.
10078
e2a00a16 100792009-08-06 Richard Guenther <rguenther@suse.de>
10080
10081 PR tree-optimization/40964
10082 * tree.c (iterative_hash_host_wide_int): Export.
10083 * tree.h (iterative_hash_host_wide_int): Declare.
10084 * tree-ssa-structalias.c (heapvar_map): New struct.
10085 (heapvar_map_eq): New function.
10086 (heapvar_map_hash): Likewise.
10087 (heapvar_lookup): Adjust.
10088 (heapvar_insert): Likewise.
10089 (make_constraint_from_heapvar): Allow multiple heap variables
10090 per decl at different offsets.
10091 (init_alias_heapvars): Adjust.
10092
3c367092 100932009-08-04 David Daney <ddaney@caviumnetworks.com>
10094
10095 * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
10096 * mips_output_sync_loop (mips_output_sync_loop): Only emit
10097 trailing sync if TARGET_SYNC_AFTER_SC.
10098
46e2d1d4 100992009-08-05 David Daney <ddaney@caviumnetworks.com>
10100
10101 * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
10102 compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
10103 sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
10104 sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
10105 sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
10106 sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
10107 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
10108 sync_new_nand<mode>, sync_lock_test_and_set<mode>,
10109 test_and_set_12): Rewrite calls to mips_output_sync_loop.
10110 * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
10111 the prototype declaration match the definition.
10112 * gcc/config/mips/mips.c (mips_output_sync_loop): Emit sync
10113 instructions explicitly. Add barrier_before and operands
10114 parameters.
10115 * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
10116 MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
10117 MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
10118 MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
10119 MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
10120 MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
10121
077ad5ad 101222009-08-05 Andrew Pinski <pinskia@gmail.com>
10123
10124 * tree-ssa-alias.c: Fix intervals to use [) syntax.
10125
8bf42176 101262009-08-05 Uros Bizjak <ubizjak@gmail.com>
10127 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
10128
10129 PR target/40906
10130 * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
10131 source operand.
10132
627540ce 101332009-08-05 Jakub Jelinek <jakub@redhat.com>
10134
10135 PR rtl-optimization/40924
10136 * dse.c (canon_address): Before calling cselib_expand_value_rtx
10137 make sure canon_rtx (mem_address) isn't simpler than
10138 canon_rtx (expanded_mem_address).
10139
da6ec3dd 101402009-08-05 Li Feng <nemokingdom@gmail.com>
10141
10142 * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
10143 for each poly_bb_p.
10144 (build_scop_drs): Build alias set for each SCoP.
10145
707486a0 101462009-08-04 Sandra Loosemore <sandra@codesourcery.com>
10147
10148 * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
10149 * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
10150 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
10151 (MIPS_ARCH_FLOAT_SPEC): Likewise.
10152 (BASE_DRIVER_SELF_SPECS): Likewise.
10153
4763217e 101542009-08-04 Andrew Pinski <pinskia@gmail.com>
10155
10156 * tree-ssa-alias.c: Fix some comment typos.
10157
89c9a7aa 101582009-08-04 Kaz Kojima <kkojima@gcc.gnu.org>
10159
10160 * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
10161 ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
10162
3db273fd 101632009-08-03 Janis Johnson <janis187@us.ibm.com>
10164
10165 PR c/39902
10166 * simplify-rtx.c (simplify_binary_operation_1): Disable
10167 simplifications for decimal float operations.
10168
cbb04ca9 101692009-08-03 Jakub Jelinek <jakub@redhat.com>
10170
10171 PR middle-end/40943
10172 * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
10173 operand of INDIRECT_REF.
10174
75645350 101752009-08-03 Uros Bizjak <ubizjak@gmail.com>
10176
10177 * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
10178 constants referencing TLS symbols.
10179
b29d7d6e 101802009-08-03 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
10181
10182 * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
10183 __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
10184
2ed8de55 101852009-08-03 Richard Guenther <rguenther@suse.de>
10186
10187 * tree.c (make_vector_type): Build a main variant first,
10188 get the canonical one and then build the variant.
10189 * tree-ssa.c (useless_type_conversion_p_1): Handle
10190 fixed-point types.
10191 (useless_type_conversion_p): Conversions to pointers to
10192 incomplete record types are useless.
10193
53b5ae07 101942009-08-03 Richard Guenther <rguenther@suse.de>
10195
10196 * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
10197 file will be created.
10198 * omp-low.c (pass_diagnose_omp_blocks): Likewise.
10199 * toplev.c (compile_file): Adjust comment.
10200
978fcce1 102012009-08-03 Kaz Kojima <kkojima@gcc.gnu.org>
10202
10203 * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
10204 * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
10205 (TARGET_PROMOTE_FUNCTION_MODE): Define.
10206 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
10207 (sh_promote_function_mode): Fix typo.
10208
2888b920 102092009-08-03 Andreas Krebbel <krebbel1@de.ibm.com>
10210
75645350 10211 * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
2888b920 10212
15a27966 102132009-08-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10214
10215 * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
10216 declaration arguments.
10217
39992b0e 102182009-08-02 Uros Bizjak <ubizjak@gmail.com>
10219
10220 * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
10221 of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
10222 (ix86_split_ashl): Ditto.
10223 (ix86_expand_vector_init_one_nonzero): Ditto.
10224 (ix86_expand_vector_set): Ditto.
10225 (ix86_expand_reduc_v4sf): Ditto.
10226
102272009-08-02 Paolo Bonzini <bonzini@gnu.org>
905ad4b8 10228
10229 * explow.c (promote_function_mode): Remove assert.
10230 * config/sh/sh.c (sh_promote_function_mode): Declare.
10231
c0045c9e 102322009-08-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10233
905ad4b8 10234 * config/pa/pa.c (pa_promote_function_mode): Declare.
10235 Change to static. Fix promote_mode call.
a6b21a58 10236
c4cd433d 10237 * gthr-dce.h (CONST_CAST2): Define if not defined.
10238 (__gthread_setspecific): Use CONST_CAST2 to fix warning.
10239
c0045c9e 10240 * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
10241
905ad4b8 102422009-08-01 Paolo Bonzini <bonzini@gnu.org>
3b2411a8 10243
10244 * expr.c (store_constructor): Use promote_decl_mode. Remove
10245 now write-only variable unsignedp.
10246 (expand_expr_real_1): Use promote_decl_mode.
10247 * expr.h (promote_function_mode, promote_decl_mode): New.
10248 (promote_mode): Remove last argument.
10249 * function.c (assign_temp): Drop last argument of promote_mode.
10250 (assign_parm_find_data_types): Use promote_function_mode.
10251 (assign_parm_setup_reg): Likewise.
10252 (expand_function_end): Use promote_function_mode.
10253 * calls.c (initialize_argument_information): Use promote_function_mode.
10254 (precompute_arguments): Use promote_mode instead of checking if
10255 only PROMOTE_FUNCTION_MODE is defined.
10256 (expand_call): When making sibcall decisions, use promote_function_mode.
10257 Below, remove an if for targetm.calls.promote_function_return and
10258 and use promote_function_mode.
10259 (emit_library_call_value_1): Use promote_function_mode, fix bug
10260 where promote_mode was passed FOR_CALL == 0 for a return value in an
10261 assertion.
10262 * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
10263 * explow.c (promote_function_mode, promote_decl_mode): New.
10264 (promote_mode): Keep only the FOR_CALL == 0 case.
10265 * combine.c (setup_incoming_promotion): Remove test of
10266 promote_function_args. Use promote_function_mode.
10267 * stmt.c (expand_value_return): Use promote_decl_mode.
10268 (expand_decl): Use promote_decl_mode.
10269
10270 * expr.c (store_constructor): Use promote_decl_mode. Remove
10271 now write-only variable unsignedp.
10272 (expand_expr_real_1): Use promote_decl_mode.
10273 * expr.h (promote_function_mode, promote_decl_mode): New.
10274 (promote_mode): Remove last argument.
10275 * function.c (assign_temp): Drop last argument of promote_mode.
10276 (assign_parm_find_data_types): Use promote_function_mode.
10277 (assign_parm_setup_reg): Likewise.
10278 (expand_function_end): Use promote_function_mode.
10279 * calls.c (initialize_argument_information): Use promote_function_mode.
10280 (precompute_arguments): Use promote_mode instead of checking if
10281 only PROMOTE_FUNCTION_MODE is defined.
10282 (expand_call): When making sibcall decisions, use promote_function_mode.
10283 Below, remove an if for targetm.calls.promote_function_return and
10284 and use promote_function_mode.
10285 (emit_library_call_value_1): Use promote_function_mode, fix bug
10286 where promote_mode was passed FOR_CALL == 0 for a return value in an
10287 assertion.
10288 * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
10289 * explow.c (promote_function_mode, promote_decl_mode): New.
10290 (promote_mode): Keep only the FOR_CALL == 0 case.
10291 * combine.c (setup_incoming_promotion): Remove test of
10292 promote_function_args. Use promote_function_mode.
10293 * stmt.c (expand_value_return): Use promote_decl_mode.
10294 (expand_decl): Use promote_decl_mode.
10295
10296 * explow.c (promote_function_mode): Just call the target hook.
10297 * targhooks.c (default_promote_function_mode,
10298 default_promote_function_mode_always_promote): New.
10299 * targhooks.h (default_promote_function_mode,
10300 default_promote_function_mode_always_promote): Declare.
10301 * target.h (promote_function_args, promote_function_return): Remove.
10302 (promote_function_mode): New.
10303 * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
10304 TARGET_PROMOTE_FUNCTION_RETURN): Remove.
10305 (TARGET_PROMOTE_FUNCTION_MODE): New.
10306 (TARGET_CALLS): Adjust.
10307 * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
10308 TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
10309
10310 * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
10311 * config/s390/s390.c (s390_promote_function_mode): ... here,
10312 with pointer handling.
10313 (TARGET_PROMOTE_FUNCTION_MODE): Define.
10314 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
10315
10316 * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
10317 * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
10318 with pointer handling.
10319 (TARGET_PROMOTE_FUNCTION_MODE): Define.
10320 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
f6c8c8fc 10321
3b2411a8 10322 * config/sh/sh-protos.h (sh_promote_function_mode): New.
10323 * config/sh/sh.c (sh_promote_function_mode): New.
10324 (TARGET_PROMOTE_FUNCTION_MODE): Define.
10325 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
10326
10327 * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
10328 * config/cris/cris.c (cris_promote_function_mode): ... here.
10329 (TARGET_PROMOTE_FUNCTION_MODE): Define.
10330 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
10331
10332 * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
10333 * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
10334 (TARGET_PROMOTE_FUNCTION_MODE): Define.
10335 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
10336
10337 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
39992b0e 10338 * config/arm/arm.c (arm_promote_function_mode): ... here, without
10339 complex type handling.
3b2411a8 10340 (TARGET_PROMOTE_FUNCTION_MODE): Define.
10341 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
10342
10343 * config/pa/pa.c (pa_promote_function_mode): New.
10344 (TARGET_PROMOTE_FUNCTION_MODE): Define.
10345 (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
10346
10347 * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
10348 TARGET_PROMOTE_FUNCTION_RETURN): Remove.
10349 (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
10350 * config/xtensa/xtensa.c: Likewise.
10351 * config/stormy16/stormy16.c: Likewise.
10352 * config/iq2000/iq2000.c: Likewise.
10353 * config/rs6000/rs6000.c: Likewise.
10354 * config/picochip/picochip.c: Likewise.
10355 * config/arc/arc.c: Likewise.
10356 * config/mcore/mcore.c: Likewise.
10357 * config/score/score.c: Likewise.
10358 * config/mips/mips.c: Likewise.
10359 * config/bfin/bfin.c: Likewise.
10360 * config/ia64/ia64.c: Likewise (disabled though).
10361
10362 * config/frv/frv.h: Remove pointless remark.
10363
10364 * doc/tm.texi (PROMOTE_FUNCTION_MODE,
10365 TARGET_PROMOTE_FUNCTION_ARGS,
10366 TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
10367 (TARGET_PROMOTE_FUNCTION_MODE): ... this.
10368
16848556 103692009-08-01 Sebastian Pop <sebastian.pop@amd.com>
10370
10371 * doc/invoke.texi (-fgraphite-force-parallel): Renamed
10372 -floop-parallelize-all.
10373 * toplev.c (process_options): Rename flag_graphite_force_parallel to
10374 flag_loop_parallelize_all.
10375 * tree-ssa-loop.c (gate_graphite_transforms): Same.
10376 * graphite.c (graphite_transform_loops): Same.
10377 * common.opt: Same.
10378 * graphite-poly.c (apply_poly_transforms): Same.
10379
66cca8a0 103802009-07-31 Richard Earnshaw <rearnsha@arm.com>
10381
10382 PR tree-optimization/40914
10383 * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
10384 if set, then check the delta field of the PMF record.
10385 (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
10386 (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
10387 call is stored in the delta.
10388
50e35237 103892009-07-31 Adam Nemet <anemet@caviumnetworks.com>
10390
10391 * config/mips/mips.md (*clear_upper32_dext): New pattern.
10392
640bddbe 103932009-07-31 Uros Bizjak <ubizjak@gmail.com>
10394
10395 * config/i386/bsd.h (ASM_BYTE): New define.
10396 * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
10397 * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
10398 .byte. Use fputs or putc instead of fprintf where appropriate.
10399 * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte. Use
10400 fputs or putc instead of fprintf where appropriate.
10401 * config/i386/i386elf.h: Ditto.
10402 * config/i386/sysv4.h: Ditto.
f6c8c8fc 10403
640bddbe 10404 * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
10405 * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
10406 (*tls_global_dynamic_64): Ditto.
10407
f6c8c8fc 104082009-07-31 Christian Bruel <christian.bruel@st.com>
39f6b116 10409
10410 * gcc/config.gcc (sh*-*-elf): test with_libgloss.
f6c8c8fc 10411
683bd8e4 104122009-07-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10413
f6c8c8fc 10414 * config/arm/arm.c (arm_arm_address_cost): Fix typo.
683bd8e4 10415 Remove dead code for MINUS.
10416
447e8aaa 104172009-07-31 Anthony Green <green@moxielogic.com>
10418
10419 * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
10420 $r12 in prologue.
10421 (moxie_expand_epilogue): Ditto for epilogue.
10422 (moxie_setup_incoming_varargs): ABI change. Use 5 registers for
10423 incoming arguments.
10424 (moxie_function_arg): Ditto.
10425 (moxie_pass_by_reference): Ditto.
10426 (moxie_arg_partial_bytes): Ditto.
10427 * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
10428 (FUNCTION_ARG_ADVANCE) Ditto.
10429 (REG_PARM_STACK_SPACE) Ditto.
10430 (FUNCTION_ARG_REGNO_P) Dito.
10431
10432 * config.gcc: Add moxie linux config support.
10433 * gcc/config/moxie/uclinux.h: New file.
10434
5e11de88 104352009-07-31 DJ Delorie <dj@redhat.com>
10436
10437 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
10438 (UNSPECV_SP_SWITCH_E): New.
10439 (sp_switch_1): Change to an unspec.
10440 (sp_switch_2): Change to an unspec. Don't use post-inc when we
10441 replace $r15.
10442 * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
10443 reference the new stack's address
10444
26c166eb 104452009-07-30 Sebastian Pop <sebastian.pop@amd.com>
10446
10447 * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
10448 graphite-clast-to-gimple.o, graphite-dependences.o,
10449 graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
10450 graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
10451 (graphite-blocking.o,
10452 graphite-clast-to-gimple.o, graphite-dependences.o,
10453 graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
10454 graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
10455 * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
10456 * cfgloop.h (struct loop): Add can_be_parallel field.
10457 * common.opt (fgraphite-identity): Moved up.
10458 (fgraphite-force-parallel): New flag.
10459 * graphite.c: Rewrite.
10460 * graphite.h: Rewrite.
10461 * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
10462 after Graphite.
10463 * toplev.c (graphite_out_file): New file descriptor.
10464 (graphite_in_file): New.
10465 (process_options): flag_graphite_force_parallel cannot be used without
10466 Graphite.
10467 * tree-ssa-loop.c: Include toplev.h.
10468 (gate_graphite_transforms): Enable flag_graphite for
10469 flag_graphite_force_parallel.
10470
c6bb733d 104712009-07-30 Sebastian Pop <sebastian.pop@amd.com>
10472
10473 * ChangeLog.graphite: New.
10474 * graphite-blocking.c: New.
10475 * graphite-clast-to-gimple.c: New.
10476 * graphite-clast-to-gimple.h: New.
10477 * graphite-dependences.c: New.
10478 * graphite-dependences.h: New.
10479 * graphite-interchange.c: New.
10480 * graphite-poly.c: New.
10481 * graphite-poly.h: New.
10482 * graphite-ppl.c: New.
10483 * graphite-ppl.h: New.
10484 * graphite-scop-detection.c: New.
10485 * graphite-scop-detection.h: New.
10486 * graphite-sese-to-poly.c: New.
10487 * graphite-sese-to-poly.h: New.
10488 * sese.c: New.
10489 * sese.h: New.
10490
e44bcf83 104912009-07-30 Sebastian Pop <sebastian.pop@amd.com>
10492
10493 * tree-chrec.c (evolution_function_right_is_integer_cst): New.
10494 * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
10495
7ed7512f 104962009-07-30 Sebastian Pop <sebastian.pop@amd.com>
10497
10498 * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
10499 (scev_is_linear_expression): Return false if the evolution is not
10500 affine multivariate.
10501
c794d738 105022009-07-30 Sebastian Pop <sebastian.pop@amd.com>
10503
10504 * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
10505 * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
10506
5df4cc8d 105072009-07-30 Sebastian Pop <sebastian.pop@amd.com>
10508
10509 * tree-data-ref.c (debug_data_references): New.
10510 (debug_data_reference): New.
10511 * tree-data-ref.h (debug_data_references): Declared.
10512 (debug_data_reference): Declared.
10513
a3e48a5b 105142009-07-30 Sebastian Pop <sebastian.pop@amd.com>
10515
10516 * tree-data-ref.c (stmt_simple_memref_p: Removed.
10517 * tree-data-ref.h (scop_p): Removed.
10518 (struct data_reference): Remove field scop.
10519 (DR_SCOP): Removed.
10520 (stmt_simple_memref_p): Removed.
10521
b65ec27f 105222009-07-30 Sebastian Pop <sebastian.pop@amd.com>
10523
10524 * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
10525 * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
10526 basic block empty.
10527
56c337f9 105282009-07-30 Sebastian Pop <sebastian.pop@amd.com>
10529
10530 * doc/invoke.texi (-fgraphite-force-parallel): Documented.
10531
da2ee0e7 105322009-07-30 Sebastian Pop <sebastian.pop@amd.com>
10533
10534 * doc/invoke.texi (-fgraphite-identity): Documented.
10535
8b7d09b4 105362009-07-30 Sebastian Pop <sebastian.pop@amd.com>
10537
10538 * tree-scalar-evolution.c: Fix comment.
10539 (instantiate_scev_1): Return unknow from scev instantiation if the
10540 result is not above instantiate_below.
10541
524bc988 105422009-07-30 Sebastian Pop <sebastian.pop@amd.com>
10543
10544 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
10545 static anymore. Instantiate the symbols that may have been introduced
10546 by chrec_apply.
10547 * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
10548 Declared.
10549
987ce674 105502009-07-30 DJ Delorie <dj@redhat.com>
10551
10552 * config/mep/mep.c (mep_asm_init_sections): Add section flags and
10553 .vliw directive to VLIW sections.
10554
a2655af1 105552009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10556
10557 * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
10558 New variables.
10559 ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
10560 (AUTOHEADER): New variable.
10561 ($(srcdir)/cstamp-h.in): Use it.
10562
32374e3c 105632009-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
10564 Pat Haugen <pthaugen@us.ibm.com>
10565 Revital Eres <ERES@il.ibm.com>
10566
10567 * config/rs6000/vector.md (VEC_F): Add VSX support.
10568 (VEC_A): Ditto.
10569 (VEC_N): Ditto.
10570 (mov<mode>): Ditto.
10571 (vector_load_<mode>): Ditto.
10572 (vector_store_<mode>): Ditto.
10573 (vector GPR move split): Ditto.
10574 (vec_reload_and_plus_<mptrsize>): Ditto.
10575 (vec_reload_and_reg_<mptrsize>): Ditto.
10576 (add<mode>3): Ditto.
10577 (sub<mode>3): Ditto.
10578 (mul<mode>3): Ditto.
10579 (neg<mode>2): Ditto.
10580 (abs<mode>2): Ditto.
10581 (smin<mode>3): Ditto.
10582 (smax<mode>3): Ditto.
10583 (vector_eq<mode>): Ditto.
10584 (vector_gt<mode>): Ditto.
10585 (vector_ge<mode>): Ditto.
10586 (vector_gtu<mode>): Ditto.
10587 (vector_select_<mode>_uns): Ditto.
10588 (vector_eq_<mode>_p): Ditto.
10589 (vector_gt_<mode>_p): Ditto.
10590 (vector_ge_<mode>_p): Ditto.
10591 (vector_gtu_<mode>_p): Ditto.
10592 (cr6_test_for_zero): Ditto.
10593 (cr6_test_for_zero_reverse): Ditto.
10594 (cr6_test_for_lt): Ditto.
10595 (cr6_test_for_lt_reverse): Ditto.
10596 (xor<mode>3): Ditto.
10597 (ior<mode>3): Ditto.
10598 (and<mode>3): Ditto.
10599 (one_cmpl<mode>2): Ditto.
10600 (nor<mode>2): Ditto.
10601 (andc<mode>2): Ditto.
10602 (float<VEC_int<mode>2): Ditto.
10603 (unsigned_float<VEC_int><mode>2): Ditto.
10604 (fix_trunc<mode><VEC_int>2): Ditto.
10605 (fixuns_trunc<mode><VEC_int>2): Ditto.
10606 (vec_init<mode>):
10607 (vec_set<mode>): Ditto.
10608 (vec_extract<mode>): Ditto.
10609 (vec_interleave_highv4sf): Ditto.
10610 (vec_interleave_lowv4sf): Ditto.
10611 (vec_realign_load_<mode>): Ditto.
10612 (vec_shl_<mode>): Ditto.
10613 (vec_shr_<mode>): Ditto.
10614 (div<mode>3): New patterns for VSX.
10615 (vec_interleave_highv2df): Ditto.
10616 (vec_interleave_lowv2df): Ditto.
10617 (vec_pack_trunc_v2df): Ditto.
10618 (vec_pack_sfix_trunc_v2df): Ditto.
10619 (vec_pack_ufix_trunc_v2df): Ditto.
10620 (vec_unpacks_hi_v4sf): Ditto.
10621 (vec_unpacks_lo_v4sf): Ditto.
10622 (vec_unpacks_float_hi_v4si): Ditto.
32374e3c 10623 (vec_unpacks_float_lo_v4si): Ditto.
17e313b0 10624 (vec_unpacku_float_hi_v4si): Ditto.
10625 (vec_unpacku_float_lo_v4si): Ditto.
32374e3c 10626 (movmisalign<mode>): Ditto.
10627 (vector_ceil<mode>2): New patterns for vectorizing math library.
10628 (vector_floor<mode>2): Ditto.
10629 (vector_btrunc<mode>2): Ditto.
10630 (vector_copysign<mode>3): Ditto.
10631
10632 * config/rs6000/predicates.md (easy_vector_constant_msb): New
640bddbe 10633 predicate for setting the high bit in each word, used for copysign.
32374e3c 10634
10635 * config/rs6000/ppc-asm.h (f19): Whitespace.
10636 (f32-f63): Define if VSX.
10637 (v0-v31): Define if Altivec.
10638 (vs0-vs63): Define if VSX.
10639
10640 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
10641
10642 * config/rs6000/power7.md: New file, provide tuning parameters for
10643 -mcpu=power7.
10644
640bddbe 10645 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
32374e3c 10646 (rs6000_cpu_cpp_builtins): Ditto.
10647 (altivec_overloaded_builtins): Ditto.
10648 (altivec_resolve_overloaded_builtin): Ditto.
10649
10650 * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
10651 debug switch to disable vectorizing simple math builtin
10652 functions.
10653
10654 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
10655 Vectorize simple math builtin functions.
10656 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
10657 hook to vectorize math builtins.
10658 (rs6000_override_options): Enable -mvsx on -mcpu=power7.
10659 (rs6000_builtin_conversion): Add VSX/power7 support.
10660 (rs6000_builtin_vec_perm): Ditto.
10661 (vsplits_constant): Add support for loading up a vector constant
10662 with just the high bit set in each part.
10663 (rs6000_expand_vector_init): Add VSX/power7 support.
10664 (rs6000_expand_vector_set): Ditto.
10665 (rs6000_expand_vector_extract): Ditto.
10666 (rs6000_emit_move): Ditto.
10667 (bdesc_3arg): Ditto.
10668 (bdesc_2arg): Ditto.
10669 (bdesc_1arg): Ditto.
10670 (rs6000_expand_ternop_builtin): Ditto.
10671 (altivec_expand_builtin): Ditto.
10672 (rs6000_expand_unop_builtin): Ditto.
10673 (rs6000_init_builtins): Ditto.
10674 (altivec_init_builtins): Ditto.
10675 (builtin_function_type): Ditto.
10676 (rs6000_common_init_builtins): Ditto.
10677 (rs6000_handle_altivec_attribute); Ditto.
10678 (rs6000_mangle_type): Ditto.
10679 (rs6000_vector_mode_supported_p): Ditto.
10680 (rs6000_mode_dependent_address): Altivec addresses with AND -16
10681 are mode dependent.
10682
10683 * config/rs6000/vsx.md: New file for VSX support.
10684
10685 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
10686 identifing values with just the most significant bit set.
10687 (enum rs6000_builtins): Add builtins for VSX. Add simple math
10688 vectorized builtins.
10689
10690 * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
10691 (UNSPEC_VRFIM): Delete.
10692 (splitter for loading up vector with most significant bit): New
10693 splitter for vectorizing copysign.
10694 (altivec_vrfiz): Rename from altivec_fturncv4sf2. Add support for
10695 vectorizing simple math functions.
640bddbe 10696 (altivec_vrfip): Add support for vectorizing simple math functions.
32374e3c 10697 (altivec_vrfim): Ditto.
10698 (altivec_copysign_v4sf3): New insn for Altivec copysign support.
10699
10700 * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
10701 (power7.md, vsx.md): Include for power7 support.
10702 (copysigndf3): Use VSX instructions if -mvsx.
10703 (negdf2_fpr): Ditto.
10704 (absdf2_fpr): Ditto.
10705 (nabsdf2_fpr): Ditto.
10706 (adddf3_fpr): Ditto.
10707 (subdf3_fpr): Ditto.
10708 (muldf3_fpr): Ditto.
10709 (divdf3_fpr): Ditto.
10710 (fix_truncdfdi2_fpr): Ditto.
10711 (cmpdf_internal1): Ditto.
10712 (fred, fred_fpr): Convert into expander/insn to add VSX support.
10713 (btruncdf2, btruncdf2_fpr): Ditto.
10714 (ceildf2, ceildf2_fpr): Ditto.
10715 (floordf2, floordf2_fpr): Ditto.
10716 (floatdidf2, floatdidf2_fpr): Ditto.
10717 (fmadddf4_fpr): Name insn. Use VSX instructions if -mvsx.
10718 (fmsubdf4_fpr): Ditto.
10719 (fnmadddf4_fpr_1): Ditto.
10720 (fnmadddf4_fpr_2): Ditto.
10721 (fnmsubdf4_fpr_1): Ditto.
10722 (fnmsubdf4_fpr_2): Ditto.
10723 (fixuns_truncdfdi2): Add expander for VSX support.
10724 (fix_truncdfdi2): Ditto.
10725 (fix_truncdfsi2): Ditto.
10726 (ftruncdf2): Ditto.
10727 (btruncsf2): Whitespace.
10728 (movdf_hardfloat32): Add support for VSX registers.
10729 (movdf_softfloat32): Ditto.
10730 (movdf_hardfloat64): Ditto.
10731 (movdf_hardfloat64_mfpgpr): Ditto.
10732 (movdf_softfloat64): Ditto.
10733 (movti splitters): Add check for vector registers supporting
10734 TImode in the future.
10735 (bpermd): Add power7 bpermd instruction.
10736
10737 * config/rs6000/altivec.h (vec_div): Define if VSX.
10738 (vec_mul): Ditto.
10739 (vec_msub): Ditto.
10740 (vec_nmadd): Ditto.
10741 (vec_nearbyint): Ditto.
10742 (vec_rint): Ditto.
10743 (vec_sqrt): Ditto.
640bddbe 10744 (all predicates): Use the generic builtin function, and not the V4SF
10745 specific function so that the predicates will work with VSX's V2DF.
32374e3c 10746 (vec_all_*): Ditto.
10747 (vec_any_*): Ditto.
10748
10749 * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
10750 Document new VSX functions and types.
10751
10752 * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
10753 switches.
10754
10755 * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
10756 "wa", and "j" constraints. Modify "v" to talk about Altivec
10757 instead of just vector.
10758
efbcb6de 107592009-07-30 Andrew MacLeod <amacleod@redhat.com>
10760
10761 PR debug/26475
10762 * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
10763 location for phi arguments.
10764 (rewrite_update_phi_arguments): Find locations for reaching defs.
10765 * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
10766 Add location to add_phi_arg calls.
10767 * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
10768 * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
10769 split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
10770 * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
10771 create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
10772 * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
10773 * tree-phinodes.c (make_phi_node): Initialize location.
10774 (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
10775 (add_phi_arg): Add location parameter.
10776 (remove_phi_arg_num): Move location when moving phi argument.
f6c8c8fc 10777 * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
efbcb6de 10778 location.
10779 * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
10780 slpeel_update_phi_nodes_for_guard1,
10781 slpeel_update_phi_nodes_for_guard2,
10782 slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
10783 vect_loop_versioning): Set locations.
10784 * tree-parloops.c (create_phi_for_local_result,
10785 transform_to_exit_first_loop, create_parallel_loop): Add locations.
10786 * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
10787 * tree-vect-loop.c (get_initial_def_for_induction,
10788 vect_create_epilog_for_reduction, vect_finalize_reduction): Add
10789 locations.
10790 * tree-flow-inline.h (gimple_phi_arg_location): New. Return locus.
10791 (gimple_phi_arg_location_from_edge): New. Return locus from an edge.
10792 (gimple_phi_arg_set_location): New. Set locus.
10793 (gimple_phi_arg_has_location): New. Check for locus.
10794 (redirect_edge_var_map_location): New. Return locus from var_map.
10795 * tree-vect-data-refs.c (vect_setup_realignment): Set location.
10796 * tree-ssa-phiopt.c (conditional_replacement): Set locus when
10797 combining PHI arguments.
10798 (cond_store_replacement): Set location.
10799 * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
10800 * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
10801 scop_add_exit_phis_edge): Add locations.
10802 * tree-cfgcleanup.c (remove_forwarder_block,
10803 remove_forwarder_block_with_phi): Add locations.
10804 * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
10805 * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
10806 locations.
10807 * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
10808 * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
10809 flush_pending_stmts): Add source location.
10810 * lambda-code.c (perfect_nestify): Maintain location stack with argument
10811 stack to preserve locations.
10812 * tree-vect-stmts.c (vectorizable_load): Add location.
10813 * tree-inline.c (copy_phis_for_bb): Copy locus.
10814 (setup_one_parameter): Add call locus to inlined parameter stmts.
10815 (initialize_inlined_parameters): Pass in call location as parameter
10816 assignment locus.
10817 (tree_function_versioning): Pass location to setup_one_parameter.
10818 * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
10819 * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
10820 copy and edge lists.
10821 (insert_partition_copy_on_edge, insert_value_copy_on_edge,
f6c8c8fc 10822 insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
efbcb6de 10823 locus parameter and override the stmt default if provided.
10824 (new_elim_graph, clear_elim_graph, delete_elim_graph,
10825 elim_graph_add_edge, elim_graph_remove_succ_edge,
10826 FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
10827 elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
10828 eliminate_phi): Add locus info in elimination graph for each edge and
10829 value copy.
10830 (insert_backedge_copies): Copy locus if present.
10831 * tree-flow.h (struct _edge_var_map): Add locus field.
10832 * tree-switch_conversions.c (fix_phi_nodes): Add locations.
10833 * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
f6c8c8fc 10834 add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
efbcb6de 10835 locations.
10836 * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
f6c8c8fc 10837
76870d0c 108382009-07-30 Martin Jambor <mjambor@suse.cz>
10839
10840 PR tree-optimization/40570
10841 * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
10842 use inlining loops.
10843
5fa90eea 108442009-07-30 Razya Ladelsky <razya@il.ibm.com>
10845
10846 * ssa-loop-manip.c: Include langhooks.h.
10847 (rewrite_phi_with_iv): New.
10848 (rewrite_all_phi_nodes_with_iv): New.
10849 (canonicalize_loop_ivs): Move here from tree-parloops.c.
10850 Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
10851 * tree-parloops.c (loop_parallel_p): Move out all conditions
10852 except dependency check.
10853 (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
10854 (gen_parallel_loop): Call canonicalize_loop_ivs without
10855 reduction_list argument.
10856 (build_new_reduction): New.
10857 (gather_scalar_reductions): New.
10858 (try_get_loop_niter): New.
10859 (try_create_reduction_list): New.
10860 (parallleize_loops): Change the parallel conditions check.
10861 * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
10862 * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
10863
65441c28 108642009-07-30 Dave Korn <dave.korn.cygwin@gmail.com>
10865
10866 * opt-functions.awk (opt_args): Allow argument to be enclosed in
10867 curly braces.
10868 * doc/options.texi (Option properties): Mention new quoting syntax.
10869
1f697db5 108702009-07-29 Douglas B Rupp <rupp@gnat.com>
10871
10872 * config/alpha/alpha.c (alpha_start_function):
10873 Handle VMS_DEBUG_MAIN_POINTER
10874 * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
10875 * doc/invoke.texi: Document -mdebug-main switch.
10876
da50fe8f 108772009-07-29 Richard Henderson <rth@redhat.com>
10878
10879 * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
10880 (cgraph_create_edge_including_clones): Likewise.
10881 * tree-inline.c (copy_bb): Operate on the correct edges
10882 when updating the callgraph.
10883
e783950f 108842009-07-29 Douglas B Rupp <rupp@gnat.com>
10885
10886 * config/alpha/vms-cc.c: Deleted.
10887 * config/alpha/vms-ld.c: Deleted.
10888 * config/alpha/t-vms64: Moved to config/vms
10889 * config/alpha/vms-crt0-64.c: Moved to config/vms
10890 * config/alpha/vms-crt0.c: Moved to config/vms
10891 * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
10892 * config/alpha/vms-psxcrt0.c: Moved to config/vms
10893 * config/alpha/xm-vms.h: Moved to config/vms
10894 * config/alpha/x-vms: Moved to config/vms
10895 * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
10896 config/vms/t-vms.
10897 * config/vms/t-vms: Moved here from config/alpha. Alpha specific
10898 parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
10899 (version): Set.
10900 * config/vms/t-vms64: Moved here from config/alpha
10901 * config/vms/vms-crt0-64.c: Moved here from config/alpha.
10902 (argc,argv,envp): Enforce 32bit malloc'ing.
10903 * config/vms/vms-psxcrt0-64.c: Likewise.
10904 * config/vms/vms-crt0.c: Moved here from config/alpha.
10905 * config/vms/vms-psxcrt0.c: Likewise.
10906 * config/vms/vms-crtl-64.h: New file.
10907 * config/vms/vms-crtl.h: New file.
10908 * config/vms/vms.opt: New file.
10909 * config/vms/xm-vms64.h: New file.
10910 * config/vms/xm-vms.h: Moved here from config/alpha.
10911 (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
10912 Set.
10913 * config/vms/x-vms: Moved here from config/alpha.
10914 (version, VMS_EXTRA_PARTS): Moved to t-vms.
10915 (vms-ld.o, vms-cc.o): Removed.
10916 (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
10917
c2a8dc5b 109182009-07-29 Douglas B Rupp <rupp@gnat.com>
10919
10920 * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
10921 correct stack (obvious VMS fix).
10922
d5440449 109232009-07-29 Douglas B Rupp <rupp@gnat.com>
10924
10925 * dwarf2out.c (output_file_names): Output VMS style file name, size,
10926 date, version info if VMS_DEBUGGING_INFO defined.
10927 * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
10928 size, date calculating code moved here.
10929
751d1b5b 109302009-07-29 Paul Brook <paul@codesourcery.com>
10931
10932 * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
10933 do_push/do_pop.
10934
b8340ddc 109352009-07-29 Uros Bizjak <ubizjak@gmail.com>
10936
10937 PR target/40577
10938 * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
10939 to DImode when generating insq_le insn.
10940
f01ce600 109412009-07-28 Douglas B Rupp <rupp@gnat.com>
10942
10943 * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
10944 New macro set for VMS_DEBUGGGING_INFO.
10945 (AT_string_form): Use it.
10946
e3b9264d 109472009-07-28 DJ Delorie <dj@redhat.com>
10948
10949 * config/mep/mep.c (vtext_section): New.
10950 (vftext_section): New.
10951 (ftext_section): New.
10952 (mep_select_section): Add support for functions.
10953 (mep_unique_section): Likewise.
10954 (mep_asm_init_sections): Likewise.
5bfd4d4b 10955 (mep_encode_section_info): Remove it from here.
e3b9264d 10956
10957 * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
10958
e0213ecc 109592009-07-28 Paolo Bonzini <bonzinI@gnu.org>
10960
10961 * tree.h (TREE_DEPRECATED): Document it is used for types too.
10962 (TYPE_VECTOR_OPAQUE): Use default_def_flag
10963
7bf5f48b 109642009-07-28 Douglas B Rupp <rupp@gnat.com>
10965
10966 * dwarf2out.c (output_file_names): Test new macro
10967 DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
10968 (add_comp_dir_attribute): Likewise.
10969
a37c5284 109702009-07-28 Kai Tietz <kai.tietz@onevision.com>
10971
10972 * config/i386/mingw-w64.h (LINK_SPEC): Add
10973 separating space between commands.
10974
3e5688bf 109752009-07-28 Jan Hubicka <jh@suse.cz>
10976
10977 PR tree-optimization/40759
10978 * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
10979 for renaming.
10980
09bb2dae 109812009-07-27 DJ Delorie <dj@redhat.com>
10982
10983 * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
10984 types are dword-aligned.
10985 (mep_expand_va_start): Likewise.
10986
ada30930 109872009-07-27 Olivier Hainque <hainque@adacore.com>
b8340ddc 10988 Douglas B Rupp <rupp@gnat.com>
ada30930 10989
10990 * convert.c (convert_to_pointer): Don't assume the target
10991 pointer type is POINTER_SIZE long. Fetch its precision instead.
10992
f75af213 109932009-07-27 Douglas B Rupp <rupp@gnat.com>
10994
10995 * system.h (fopen): Undefine if macro.
10996
5de632d9 109972009-07-27 Jakub Jelinek <jakub@redhat.com>
10998
10999 * dwarf2out.c (output_cfi_p): Removed.
11000 (output_cfis): New function.
11001 (output_fde): New function, split from output_call_frame_info.
11002 (output_call_frame_info): Use it.
11003 (dwarf2out_switch_text_section): Use output_cfis.
11004
c2c9961e 110052009-07-24 Kai Tietz <kai.tietz@onevision.com>
11006
11007 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
11008 TARGET_BI_ARCH is specified without enabling SJLJ.
11009 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
11010 if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
11011
6edd680c 110122009-07-26 Mikael Pettersson <mikpe@it.uu.se>
11013
11014 * arm.md (negdi2): Use DImode if forcing a value into a register.
11015
afbe62f9 110162009-07-26 Ira Rosen <irar@il.ibm.com>
11017
11018 PR tree-optimization/40801
11019 * tree-vect-stmts.c (vectorizable_call): Get previous copy
11020 of vector operand from the previous copy of vector statement.
11021 Pass the correct definition type value to
11022 vect_get_vec_def_for_stmt_copy().
11023
ecf52e84 110242009-07-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11025
11026 * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
11027 const char ** conversion.
11028
598767c9 110292009-07-25 David Daney <ddaney@caviumnetworks.com>
11030
11031 * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
11032 fancy_abort() if !ENABLE_ASSERT_CHECKING.
11033 (gcc_unreachable): Invoke __builtin_unreachable() if
11034 !ENABLE_ASSERT_CHECKING.
11035
c4d13c5c 110362009-07-25 David Daney <ddaney@caviumnetworks.com>
11037
11038 PR rtl-optimization/40445
11039 * emit-rtl.c (next_nonnote_insn_bb): New function.
11040 * rtl.h (next_nonnote_insn_bb): Declare new function.
11041 * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
11042 with no successors that is the successor of the ENTRY_BLOCK.
11043 Continue from the top after removing an empty fallthrough block.
11044 * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
11045 of next_nonnote_insn.
11046
616b875f 110472009-07-25 David Daney <ddaney@caviumnetworks.com>
11048
b8340ddc 11049 * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
f6c8c8fc 11050
bdb1f0d1 110512009-07-25 Martin Jambor <mjambor@suse.cz>
11052
11053 * c-common.c (c_common_attribute_table): New element for noclone.
11054 (handle_noclone_attribute): New function. Forward-declare.
11055 * tree-inline.c (tree_versionable_function_p): Check for noclone
11056 attribute.
11057 * doc/extend.texi (Labels as Values): Document need for noclone.
11058 (Function Attributes): Document noclone attribute.
11059
d4915beb 110602009-07-25 Jakub Jelinek <jakub@redhat.com>
11061
11062 PR rtl-optimization/34999
11063 * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
11064 and dw_fde_switched_cold_to_hot fields.
11065 (output_cfi_p): New function.
11066 (output_call_frame_info): If fde->dw_fde_switched_sections,
11067 output 2 FDEs instead of one with corrupted header.
11068 (dwarf2out_do_cfi_startproc): New function.
11069 (dwarf2out_begin_prologue): Use it. Initialize fde->dw_fde_switch_cfi
11070 and fde->dw_fde_switched_cold_to_hot.
11071 (dwarf2out_switch_text_section): Compute
11072 fde->dw_fde_switched_cold_to_hot. Switch to new text section here.
11073 If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
11074 dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
11075 Otherwise, compute fde->dw_fde_switch_cfi.
11076
15b7ca3a 110772009-07-24 Cary Coutant <ccoutant@google.com>
11078
11079 * tree-cfg.c (assign_discriminator): Add explicit parentheses.
11080
04953c08 110812009-07-24 Cary Coutant <ccoutant@google.com>
11082
11083 * cfghooks.c (split_block): Copy discriminator to new block.
11084 * tree-cfg.c (assign_discriminator): Check location of last
11085 instruction in block as well as first.
11086
bcfcac73 110872009-07-24 Uros Bizjak <ubizjak@gmail.com>
11088
11089 * config/i386/linux.c: Use fputs or putc instead of fprintf
11090 where appropriate.
11091 * config/i386/gas.h: Ditto.
11092 * config/i386/x86-64.h: Ditto.
11093 * config/i386/att.h: Ditto.
11094
39a4aea8 110952009-07-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11096
11097 * expmed.c (emit_store_flag): Use a recursive call to optimize the
11098 xor case.
11099
e6098777 111002009-07-24 Martin Jambor <mjambor@suse.cz>
11101
11102 * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
11103 (ipa_push_func_to_list_1): Declare.
11104 (ipa_push_func_to_list): New function.
11105
11106 * ipa-prop.c (ipa_push_func_to_list_1): New function.
11107 (ipa_init_func_list): Call ipa_push_func_to_list_1.
11108 (ipa_push_func_to_list): Removed.
11109 (ipa_pop_func_from_list): Clear node_enqueued flag.
11110
c0717306 111112009-07-24 Andreas Krebbel <krebbel1@de.ibm.com>
f6c8c8fc 11112
c0717306 11113 * config/s390/s390.c (override_options): Default
11114 max-unrolled-insns to 100 for z10 tuning.
11115
6215fc9e 111162009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
11117
11118 * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
11119 tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
11120 tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
11121 tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
11122 tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
11123 tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
11124 lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
11125
1a4e7ef7 111262009-07-24 Kai Tietz <kai.tietz@onevision.com>
11127
11128 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
11129 use default set in mingw32.h header.
11130 * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
11131 64-bit /mingw/include path.
11132 (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
11133 path.
11134
c56a6318 111352009-07-23 Neil Vachharajani <nvachhar@google.com>
11136
11137 PR rtl-optimization/40209
11138 * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
11139
bdf4452a 111402009-07-23 Uros Bizjak <ubizjak@gmail.com>
11141
11142 * config/i386/i386.c: Use ASM_LONG instead of .long. Concatenate
11143 ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
11144 with the rest of string where appropriate. Use fputs or putc
11145 instead of fprintf where appropriate.
11146
702c5d85 111472009-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
11148 Pat Haugen <pthaugen@us.ibm.com>
11149 Revital Eres <ERES@il.ibm.com>
11150
11151 * config/rs6000/vector.md: New file. Move most of the vector
11152 expander support here from altivec.md to allow for the VSX vector
11153 unit in the future. Add support for secondary_reload patterns.
11154 Rewrite the patterns for vector comparison, and vector comparison
11155 predicate instructions so that the RTL expresses the desired
11156 behavior, instead of using unspec.
11157
11158 * config/rs6000/constraints.md ("f" constraint): Use
11159 rs6000_constraints to hold the precalculated register class.
11160 ("d" constraint): Ditto.
11161 ("wd" constraint): New constraint for VSX.
11162 ("wf" constraint): Ditto.
11163 ("ws" constraint): Ditto.
11164 ("wa" constraint): Ditto.
11165 ("wZ" constraint): Ditto.
11166 ("j" constraint): Ditto.
11167
11168 * config/rs6000/predicates.md (vsx_register_operand): New
11169 predicate for VSX.
11170 (vfloat_operand): New predicate for vector.md.
11171 (vint_operand): Ditto.
11172 (vlogical_operand): Ditto.
11173 (easy_fp_constant): If VSX, 0.0 is an easy constant.
11174 (easy_vector_constant): Add VSX support.
11175 (altivec_indexed_or_indirect_operand): New predicate for
11176 recognizing Altivec style memory references with AND -16.
11177
11178 * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
11179 for vector secondary reload support.
bcfcac73 11180 (rs6000_vector_reg_class): Delete, replacing it with
11181 rs6000_constraints.
702c5d85 11182 (rs6000_vsx_reg_class): Ditto.
11183 (rs6000_constraints): New array to hold the register classes of
11184 each of the register constraints that can vary at runtime.
11185 (builtin_mode_to_type): New static array for builtin function type
11186 creation.
11187 (builtin_hash_table): New static hash table for builtin function
11188 type creation.
11189 (TARGET_SECONDARY_RELOAD): Define target hook.
11190 (TARGET_IRA_COVER_CLASSES): Ditto.
11191 (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
bdf4452a 11192 registers are 128 bits if VSX memory reference instructions are used.
702c5d85 11193 (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
11194 unit is being used.
11195 (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
11196 (rs6000_debug_reg_global): Move -mdebug=reg statements here.
11197 Print several of the scheduling related parameters.
11198 (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
11199 rs6000_constraints instead of rs6000_vector_reg_class. Move
11200 -mdebug=reg code to rs6000_debug_reg_global. Add support for
11201 -mvsx-align-128 debug switch. Drop testing float_p if VSX or
11202 Altivec. Add VSX support. Setup for secondary reload support on
11203 Altivec/VSX registers.
11204 (rs6000_override_options): Make power7 set the scheduling groups
11205 like the power5. Add support for new debug switches to override
11206 the scheduling defaults. Temporarily disable -mcpu=power7 from
11207 setting -mvsx. Add support for debug switches -malways-hint,
11208 -msched-groups, and -malign-branch-targets.
11209 (rs6000_buitlin_conversion): Add support for returning unsigned
11210 vector conversion functions to fix regressions due to stricter
11211 type checking.
11212 (rs6000_builtin_mul_widen_even): Ditto.
11213 (rs6000_builtin_mul_widen_odd): Ditto.
11214 (rs6000_builtin_vec_perm): Ditto.
11215 (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
11216 (rs6000_expand_vector_init): Initial VSX support for using xxlxor
11217 to zero a register.
11218 (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
11219 generated upstream.
11220 (bdesc_3arg): Add builtins for unsigned types. Add builtins for
11221 VSX types for bit operations. Changes to accomidate vector.md.
11222 (bdesc_2arg): Ditto.
11223 (bdesc_1arg): Ditto.
11224 (struct builtin_description_predicates): Rewrite predicate
11225 handling so that RTL describes the operation, instead of passing
11226 the instruction to be used as a string argument.
11227 (bdesc_altivec_preds): Ditto.
11228 (altivec_expand_predicate_builtin): Ditto.
11229 (altivec_expand_builtin): Ditto.
11230 (rs6000_expand_ternop_builtin): Use a switch instead of an if
11231 statement for vsldoi support.
bdf4452a 11232 (altivec_expand_ld_builtin): Change to use new names from vector.md.
702c5d85 11233 (altivec_expand_st_builtin): Ditto.
11234 (paired_expand_builtin): Whitespace changes.
11235 (rs6000_init_builtins): Add V2DF/V2DI types. Initialize the
11236 builtin_mode_to_type table for secondary reload. Call
11237 builtin_function_type to build random builtin functions.
11238 (altivec_init_builtins): Change to use builtin_function_type to
11239 create builtin function types dynamically as we need them.
11240 (builtin_hash_function): New support for hashing the tree types
11241 for builtin function as we need it, rather than trying to build
bdf4452a 11242 all of the trees that we need. Add initial preliminary VSX support.
702c5d85 11243 (builtin_function_type): Ditto.
11244 (builtin_function_eq): Ditto.
11245 (builtin_hash_struct): Ditto.
11246 (rs6000_init_builtins): Ditto.
11247 (rs6000_common_init_builtins): Ditto.
11248 (altivec_init_builtins): Ditto.
11249 (rs6000_common_init_builtins): Ditto.
11250 (enum reload_reg_type): New enum for simplifing reg classes.
11251 (rs6000_reload_register_type): Simplify register classes into GPR,
bdf4452a 11252 Vector, and other registers. Altivec and VSX addresses in reload.
702c5d85 11253 (rs6000_secondary_reload_inner): Ditto.
11254 (rs6000_ira_cover_classes): New target hook, that returns the
11255 appropriate cover classes, based on -mvsx being used or not.
11256 (rs6000_secondary_reload_class): Add VSX support.
11257 (get_vec_cmp_insn): Delete, rewrite vector conditionals.
11258 (get_vsel_insn): Ditto.
11259 (rs6000_emit_vector_compare): Rewrite vector conditional support
11260 so that where we can, we use RTL operators, instead of blindly use
11261 UNSPEC.
11262 (rs6000_emit_vector_select): Ditto.
11263 (rs6000_emit_vector_cond_expr): Ditto.
bdf4452a 11264 (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
702c5d85 11265 (create_TOC_reference): Add -mdebug=addr support.
bdf4452a 11266 (emit_frame_save): VSX loads/stores need register indexed addressing.
702c5d85 11267
11268 * config/rs6000/rs6000.md: Include vector.md.
11269
11270 * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
11271
11272 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11273 support for V2DI, V2DF in logical, permute, select operations.
11274
11275 * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
11276 switch for vsx/power7.
11277 (-mvsx-scalar-memory): Ditto.
11278 (-mvsx-align-128): Ditto.
11279 (-mallow-movmisalign): Ditto.
11280 (-mallow-df-permute): Ditto.
11281 (-msched-groups): Ditto.
11282 (-malways-hint): Ditto.
11283 (-malign-branch-targets): Ditto.
f6c8c8fc 11284
702c5d85 11285 * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
11286 hook instead.
11287 (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
11288 (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
11289 (rs6000_vector_reg_class): Delete.
11290 (rs6000_vsx_reg_class): Ditto.
11291 (enum rs6000_reg_class_enum): New enum for the constraints that
11292 vary based on target switches.
11293 (rs6000_constraints): New array to hold the register class for all
11294 of the register constraints that vary based on the switches used.
11295 (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
11296 (enum rs6000_builtins): Add unsigned varients for the builtin
11297 declarations returned by target hooks for expanding multiplies,
11298 select, and permute operations. Add VSX builtins.
11299 (enum rs6000_builtin_type_index): Add entries for VSX.
11300 (V2DI_type_node): Ditto.
11301 (V2DF_type_node): Ditto.
11302 (unsigned_V2DI_type_node): Ditto.
11303 (bool_long_type_node): Ditto.
11304 (intDI_type_internal_node): Ditto.
11305 (uintDI_type_internal_node): Ditto.
11306 (double_type_internal_node): Ditto.
11307
11308 * config/rs6000/altivec.md (whole file): Move all expanders to
11309 vector.md from altivec.md. Rename insn matching functions to be
11310 altivec_foo.
11311 (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
11312 (altivec_vcmp*): Ditto.
11313 (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
11314 (VM): New iterator for moves that includes the VSX types.
11315 (altivec_vperm_<mode>): Add VSX types. Add unsigned types.
11316 (altivec_vperm_<mode>_uns): New, for unsigned types.
bdf4452a 11317 (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
702c5d85 11318 (altivec_eq<mode>): Ditto.
11319 (altivec_gt<mode>): Ditto.
11320 (altivec_gtu<mode>): Ditto.
11321 (altivec_eqv4sf): Ditto.
11322 (altivec_gev4sf): Ditto.
11323 (altivec_gtv4sf): Ditto.
11324 (altivec_vcmpbfp_p): Ditto.
11325
63787642 113262009-07-23 Richard Earnshaw <rearnsha@arm.com>
11327
f6c8c8fc 11328 * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to
63787642 11329 unsigned HWI.
11330
3ce93c03 113312009-07-23 Uros Bizjak <ubizjak@gmail.com>
11332
11333 PR target/40832
c8795808 11334 * config/i386/i386.c (output_387_ffreep): Rewrite to use
3ce93c03 11335 ASM_SHORT instead of .word.
11336 * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
11337 instead of .word in asm template.
11338
9f724a58 113392009-07-22 Vladimir Makarov <vmakarov@redhat.com>
11340
11341 PR target/37488
11342 * ira-lives.c (bb_has_abnormal_call_pred): New function.
11343 (process_bb_node_lives): Use it.
11344
11345 * ira.c (setup_cover_and_important_classes): Don't setup
11346 ira_important_class_nums. Add cover classes to the end of
11347 important classes.
c8795808 11348 (cover_class_order, comp_reg_classes_func, reorder_important_classes):
11349 New.
9f724a58 11350 (find_reg_class_closure): Use reorder_important_classes.
11351
11352 * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
11353
11354 * config/i386/i386.c (i386_ira_cover_classes): New function.
11355 (TARGET_IRA_COVER_CLASSES): Redefine.
11356
11357 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
11358 importance of order of cover classes in the array.
f6c8c8fc 11359
d60ec13d 113602009-07-22 Diego Novillo <dnovillo@google.com>
11361
11362 * tree-pass.h (TDF_EH): Define.
11363 * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
11364 contains TDF_EH, print the EH region number holding GS.
11365 * tree-dump.c (dump_options): Add "eh".
11366 * doc/invoke.texi: Document it.
11367
5aa8c5f0 113682009-07-22 Doug Kwan <dougkwan@google.com>
11369
11370 * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
11371
38fcb532 113722009-07-22 Michael Matz <matz@suse.de>
11373
11374 PR tree-optimization/35229
11375 PR tree-optimization/39300
11376
11377 * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
11378 (inhibit_phi_insertion): New function.
11379 (insert_into_preds_of_block): Call it for REFERENCEs.
11380 (init_pre): Initialize and finalize scalar evolutions.
11381 * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
11382
686cc944 113832009-07-22 Uros Bizjak <ubizjak@gmail.com>
11384
11385 * config/i386/predicates.md (zero_extended_scalar_load_operand):
11386 Use CONST_VECTOR_NUNITS to determine number of elements.
11387
a7b49046 113882009-07-22 Andreas Krebbel <krebbel1@de.ibm.com>
11389
11390 * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
11391 (U, W): Constraints are now deprecated and will be removed if we
f6c8c8fc 11392 run out of letters.
a7b49046 11393 * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
11394 the file.
11395 ("prefetch"): Add the stcmh instruction for prefetching.
11396 * config/s390/s390.c (s390_symref_operand_p): Function moved. No
11397 changes.
11398 (s390_short_displacement): Return always true if compiling for
11399 machines not providing the long displacement facility.
11400 (s390_mem_constraint): Support the new constraint letter Z.
11401 (s390_check_qrst_address): New function.
11402
829e79ce 114032009-07-21 DJ Delorie <dj@redhat.com>
11404
11405 * config/mep/mep.c (mep_legitimize_arg): Leave control registers
11406 alone too.
11407
9dcd0d49 114082009-07-21 Jason Merrill <jason@redhat.com>
11409
11410 * c-common.c (max_tinst_depth): Increase default to 1024.
11411
ea3bb9f4 114122009-07-21 Uros Bizjak <ubizjak@gmail.com>
11413
11414 * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
11415 (vec_unpacku_float_lo_v4si): Ditto.
11416
e42ab82a 114172009-07-21 Uros Bizjak <ubizjak@gmail.com>
11418
11419 PR target/40811
11420 * config/i386/sse.md (sse2_cvtudq2ps): New expander.
11421 (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
11422 (builtin_description): Add __builtin_ia32_cvtudq2ps.
11423 (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
11424
567cd518 114252009-07-21 Jakub Jelinek <jakub@redhat.com>
11426
11427 PR tree-optimization/40813
11428 * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
11429 it.
11430
3c5bea87 114312009-07-21 Kaz Kojima <kkojima@gcc.gnu.org>
11432
11433 * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
11434 with a NOP_EXPR if needed.
11435
41fba625 114362009-07-21 Paul Brook <paul@codesourcery.com>
11437
11438 * tree-vectorizer.c (increase_alignment): Handle nested arrays.
11439 Terminate debug dump with newline.
11440
eab96f1c 114412009-07-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11442
11443 * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
11444 Cast "1" to unsigned HOST_WIDE_INT.
11445 (compute_zdepdi_operands): Limit maximum length to 64 bits. Limit
11446 deposit length to the maximum length - lsb. Extend length if
11447 HOST_BITS_PER_WIDE_INT is 32.
11448
9261e5d9 114492009-07-20 Olatunji Ruwase <tjruwase@google.com>
11450
11451 * cgraph.h (constant_pool_htab): New function.
11452 (constant_descriptor_tree): Move from varasm.c.
11453 * varasm.c (constant_pool_htab): New function.
11454 (constant_descriptor_tree): Move to cgraph.h.
11455
67a2b55a 114562009-07-20 Olatunji Ruwase <tjruwase@google.com>
11457
ea3bb9f4 11458 * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
67a2b55a 11459
124370fd 114602009-07-20 Shujing Zhao <pearly.zhao@oracle.com>
11461
11462 * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
11463 $(VARRAY_H).
11464
5185084d 114652009-07-20 Xinliang David Li <davidxl@google.com>
11466
11467 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
11468
d1cbb867 114692009-07-20 Adam Nemet <anemet@caviumnetworks.com>
11470
11471 * config/mips/mips.md (move_type): Add arith.
11472 (type): Handle arith.
11473 (zero_extendsidi2): Rename this into ...
11474 (*zero_extendsidi2): ... this. Don't match if ISA_HAS_EXT_INS.
11475 (zero_extendsidi2): New expander.
11476 (*zero_extendsidi2_dext): New pattern.
11477
bfa627f8 114782009-07-20 Nick Clifton <nickc@redhat.com>
11479
11480 * config.gcc (mips64-*-*): Add definition of tm_defines in order
11481 to set MIPS_ABI_DEFAULT.
11482 * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
11483
f6d257e7 114842009-07-20 Jakub Jelinek <jakub@redhat.com>
11485
ffbeca59 11486 * tree-object-size.c (addr_object_size): Handle unions with
11487 array in it as last field of structs in __bos (, 1) as __bos (, 0).
11488
f6d257e7 11489 PR tree-optimization/40792
11490 * tree.c (build_function_type_skip_args): Remove bogus assert.
11491
e20422ea 114922009-07-20 Jan Hubicka <jh@suse.cz>
ea3bb9f4 11493 Martin Jambor <mjambor@suse.cz>
e20422ea 11494
11495 * cgraph.h (combined_args_to_skip): New field.
11496 * cgraph.c (cgraph_create_virtual_clone): Properly handle
11497 combined_args_to_skip and args_to_skip.
11498 * tree-inline.c (update_clone_info): New function.
11499 (tree_function_versioning): Call update_clone_info.
d603963f 11500 * cgraphunit.c (cgraph_materialize_clone): Dump materialized
686cc944 11501 functions.
e20422ea 11502 (cgraph_materialize_all_clones): More extensive dumping, working
11503 with combined_args_to_skip rather than args_to_skip.
11504
0df23b96 115052009-07-20 Ira Rosen <irar@il.ibm.com>
11506
11507 * tree-vectorizer.h (vectorizable_condition): Add parameters.
11508 * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
11509 (get_initial_def_for_reduction): Likewise.
11510 (vectorizable_reduction): Skip the check of first operand in case
11511 of COND_EXPR. Add check that it is outer loop vectorization if
f6c8c8fc 11512 nested cycle was detected. Call vectorizable_condition() for
0df23b96 11513 COND_EXPR. If reduction epilogue cannot be created do not fail for
11514 nested cycles (if it is not double reduction). Assert that there
11515 is only one type in the loop in case of COND_EXPR. Call
11516 vectorizable_condition() to vectorize COND_EXPR.
11517 * tree-vect-stmts.c (vectorizable_condition): Update comment.
f6c8c8fc 11518 Add parameters. Allow nested cycles if called from
0df23b96 11519 vectorizable_reduction(). Use reduction vector variable if provided.
11520 (vect_analyze_stmt): Call vectorizable_reduction() before
11521 vectorizable_condition().
11522 (vect_transform_stmt): Update call to vectorizable_condition().
11523
0ce30983 115242009-07-20 Christian Bruel <christian.bruel@st.com>
f6c8c8fc 11525
0ce30983 11526 * config/sh/sh.opt (-mfmovd): Resurrect and document.
11527 * doc/invoke.texi (-mfmovd): Likewise.
11528 * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
f6c8c8fc 11529
c5269667 115302009-07-20 Jan Hubicka <jh@suse.cz>
11531
11532 * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
11533 when handling SSA name.
11534
a5d536df 115352009-07-19 Jan Hubicka <jh@suse.cz>
11536
11537 PR tree-optimization/40676
11538 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
11539 virtual PHIs in empty BBs.
11540
dce31f46 115412009-07-18 Adam Nemet <anemet@caviumnetworks.com>
11542
11543 * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
11544 re-expanded the compound use gen_lowpart instead to convert to the
11545 desired mode.
11546
4e0ce2fb 115472009-07-18 Adam Nemet <anemet@caviumnetworks.com>
11548
11549 * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
11550 OUTER_CONST arguments.
11551 <LSHIFTRT>: Use them to allow widening if the bits shifted in from
11552 the new wider mode will be masked off.
11553 (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
11554
be26a489 115552009-07-18 Adam Nemet <anemet@caviumnetworks.com>
11556
11557 * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
11558 high-order bits are zero.
11559
5b46cc62 115602009-07-18 Adam Nemet <anemet@caviumnetworks.com>
11561
11562 * combine.c (simplify_shift_const_1): Split code to determine
11563 shift_mode into ...
11564 (try_widen_shift_mode): ... here. Allow widening for ASHIFTRT if the
11565 new bits shifted in are identical to the old sign bit.
11566
a09ce826 115672009-07-18 Richard Guenther <rguenther@suse.de>
11568
11569 PR c/40787
11570 * gimplify.c (gimplify_call_expr): Reject code using results from
11571 functions returning void.
11572
3e055d82 115732009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
11574
11575 * doc/md.texi: Document the new PowerPC "es" constraint.
11576 Document that "m" can include automodified addresses on this target,
11577 and explain how %U must be used. Extend the "Q" and "Z" documentation
11578 to suggest "es" as well as "m".
11579 * config/rs6000/constraints.md (es): New memory constraint.
11580 (Q, Z): Update strings to match new documentation.
11581
a3026c18 115822009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
11583
11584 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
11585 offset from virtual_stack_vars_rtx and arg_pointer_rtx.
11586 * config/rs6000/predicates.md (volatile_mem_operand): Use
11587 offsettable_nonstrict_memref_p.
11588 * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
11589 (*floatunssidf2_internal): Likewise.
11590 (*fix_truncdfsi2_internal): Likewise.
11591 (*fix_trunctfsi2_internal): Likewise.
11592
970c146d 115932009-07-17 Anatoly Sokolov <aesok@post.ru>
11594
11595 * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
11596 atmega32u2 devices.
11597 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
11598
bfec3452 115992009-07-17 Richard Guenther <rguenther@suse.de>
11600
11601 PR c/40401
11602 * tree-pass.h (pass_diagnose_omp_blocks): Declare.
11603 (pass_warn_unused_result): Likewise.
11604 (TODO_set_props): Remove.
11605 * omp-low.c (diagnose_omp_structured_block_errors): Change to
11606 run as a pass.
11607 (pass_diagnose_omp_blocks): Define.
11608 * c-decl.c (pop_file_scope): Do not finalize the CU here.
11609 (c_gimple_diagnostics_recursively): Remove.
11610 (finish_function): Do not call it.
11611 (c_write_global_declarations): Continue after errors.
11612 Finalize the CU here.
11613 * c-gimplify.c (c_genericize): Do not gimplify here.
11614 * c-common.c (c_warn_unused_result): Move ...
11615 * tree-cfg.c (do_warn_unused_result): ... here.
11616 (run_warn_unused_result): New function.
11617 (gate_warn_unused_result): New function.
11618 (pass_warn_unused_result): New pass.
11619 * c-common.h (c_warn_unused_result): Remove.
11620 * flags.h (flag_warn_unused_result): Declare.
11621 * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
11622 * opts.c (flag_warn_unused_result): Initialize to false.
11623 * toplev.c (compile_file): Add comment.
11624 * omp-low.c (create_omp_child_function): Do not register
11625 the function with the frontend.
11626 (diagnose_omp_structured_block_errors): Prepare to be
11627 called as optimization pass.
11628 (gate_diagnose_omp_blocks): New function.
11629 (pass_diagnose_omp_blocks): New pass.
11630 * cgraph.h (cgraph_optimize): Remove.
11631 (cgraph_analyze_function): Likewise.
11632 * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
11633 * cgraphunit.c (cgraph_lower_function): Lower nested functions
11634 before their parents here.
11635 (cgraph_finalize_function): Not here.
11636 (cgraph_analyze_function): Gimplify functions here.
11637 (cgraph_finalize_compilation_unit): Continue after errors.
11638 Optimize the callgraph from here.
11639 (cgraph_optimize): Make static.
11640 * langhooks.c (write_global_declarations): Finalize the CU.
11641 * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
11642 (gimplify_function_tree): Assert we gimplify only once.
11643 Set PROP_gimple_any property.
11644 * tree-nested.c (gimplify_all_functions): New function.
11645 (lower_nested_functions): Gimplify all nested functions.
11646 * gimple.h (diagnose_omp_structured_block_errors): Remove.
11647 * passes.c (init_optimization_passes): Add pass_warn_unused_result
11648 and pass_diagnose_omp_blocks after gimplification. Do not
11649 set TODO_set_props on all_lowering_passes.
11650 (execute_one_pass): Do not handle TODO_set_props.
11651 * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
11652 (gimplify.o): Add tree-pass.h dependency.
11653 * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
11654 (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
11655 (unsave_r): Likewise.
11656 * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
11657 temporary variable.
11658
3c337d70 116592009-07-17 Sandra Loosemore <sandra@codesourcery.com>
11660
11661 * doc/service.texi (Service): Restore previously removed link,
11662 which isn't broken after all.
11663
142d8c77 116642009-07-17 Richard Guenther <rguenther@suse.de>
11665
11666 PR tree-optimization/40321
11667 * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
11668 PHI nodes to the maximal set.
11669 (make_values_for_phi): Add PHI arguments to the maximal set.
11670 (execute_pre): Dump PHI_GEN and the maximal set.
11671
39a1041d 116722009-07-17 Jakub Jelinek <jakub@redhat.com>
11673
11674 PR c++/40780
11675 * gimplify.c (gimplify_conversion): Don't change non-conversions into
11676 VIEW_CONVERT_EXPR.
11677
3e8e7577 116782009-07-16 Sandra Loosemore <sandra@codesourcery.com>
11679
11680 * doc/extend.texi (Nested Functions): Replace broken link with
11681 textual reference.
11682 * doc/service.texi (Service): Remove broken link.
11683
04700344 116842009-07-16 H.J. Lu <hongjiu.lu@intel.com>
11685
11686 PR bootstrap/40781
11687 * builtins.c (expand_builtin_memcmp): Use loc instead of
11688 EXPR_LOCATION (exp).
11689 (expand_builtin_strncmp): Likewise.
11690
389dd41b 116912009-07-17 Aldy Hernandez <aldyh@redhat.com>
11692 Manuel López-Ibáñez <manu@gcc.gnu.org>
11693
f6c8c8fc 11694 PR 40435
389dd41b 11695 * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
11696 builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
11697 tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
11698 c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
11699 calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
11700 tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
11701 tree-inline.c, c-common.c, c-common.h, gimple.c,
11702 tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
11703 convert.c: Add location argument to fold_{unary,binary,ternary},
11704 fold_build[123], build_call_expr, build_size_arg,
11705 build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
11706 fold_build1_initializer, fold_build2_initializer,
11707 fold_build3_initializer, fold_build_call_array,
11708 fold_build_call_array_initializer, fold_single_bit_test,
11709 omit_one_operand, omit_two_operands, invert_truthvalue,
11710 fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
11711 combine_comparisons, fold_builtin_*, fold_call_expr,
11712 build_range_check, maybe_fold_offset_to_address, round_up,
11713 round_down.
11714
c1c67b4f 117152009-07-16 Jason Merrill <jason@redhat.com>
11716
11717 PR libstdc++/37907
11718 * c-common.c (c_common_reswords): Add __is_standard_layout
11719 and __is_trivial.
11720 * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
11721 * doc/implement-cxx.texi: New.
11722 * doc/gcc.texi: Include it.
11723
f3269732 117242009-07-16 DJ Delorie <dj@redhat.com>
11725
11726 * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
11727 compares that may be indirectly affected by previous instructions.
11728
c699fab8 117292009-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11730
11731 * builtins.c (do_mpc_arg2): New.
11732 (fold_builtin_2): Fold builtin cpow.
11733 * real.h (HAVE_mpc_pow): New.
11734
c8798ca6 117352009-07-16 Bingfeng Mei <bmei@broadcom.com>
11736
8097362b 11737 * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
11738 comparison to skip unprofitable schedule
11739
d05a1771 117402009-07-16 Simon Baldwin <simonb@google.com>
11741
11742 * gcc.c (option_map): New flag -no-canonical-prefixes.
11743 * (display_help): Print help text for new flag.
11744 * (process_command): Move options translation and language specifics
11745 and handle new flag early. Use it to set a function pointer to a
11746 prefix builder. Replace make_relative_prefix calls with calls to
11747 the function pointed to. Ignore new flag in regular options handling.
11748 * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
11749
91f16f16 117502009-07-15 DJ Delorie <dj@redhat.com>
11751
11752 * config/mep/mep.md (sibcall_internal): Change register to avoid
11753 argument registers.
11754 (sibcall_value_internal): Likewise.
11755
705e8c40 117562009-07-15 Eric Botcazou <ebotcazou@adacore.com>
11757
11758 PR rtl-optimization/40710
11759 * resource.c (mark_target_live_regs): Reset DF problem to LR.
11760
4a02ea0c 117612009-07-15 Adam Nemet <anemet@caviumnetworks.com>
11762
11763 * config/mips/mips.md (*extenddi_truncate<mode>,
11764 *extendsi_truncate<mode>): Change type attribute to move_type
11765 with shift_shift. Split out code handling exts from here ...
11766 (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
11767 pattern.
11768 (*extendhi_truncateqi): Change type attribute to move_type with
11769 shift_shift. Split out code handling exts from here ...
11770 (*extendhi_truncateqi_exts): ... to this new pattern.
11771
ddb24cdb 117722009-07-15 Uros Bizjak <ubizjak@gmail.com>
07ddf75c 11773
ddb24cdb 11774 * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
11775 instead of "and" with inverted sign bit mask value. Use
11776 "nonimmediate_operand" for operand 1 and operand 2 predicate.
11777 Allocate registers only for operand 4 and operand 5.
07ddf75c 11778
0962300c 117792009-07-15 Jakub Jelinek <jakub@redhat.com>
11780
11781 PR middle-end/40747
11782 * fold-const.c (fold_cond_expr_with_comparison): When folding
11783 < and <= to MIN, make sure the MIN uses the same type as the
11784 comparison's operands.
11785
1c274529 117862009-07-15 Richard Earnshaw <rearnsha@arm.com>
11787
11788 * arm.md (ior_xor): New code iterator.
11789 (split for ior/xor with shift and zero-extend): New split pattern.
11790 * arm/predicates.md (subreg_lowpart_operator): New special predicate.
11791
96803d15 117922009-07-15 Richard Guenther <rguenther@suse.de>
11793
11794 * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
11795 offset member.
11796
0f2b32ac 117972009-07-15 Richard Guenther <rguenther@suse.de>
11798
11799 PR middle-end/40753
07ddf75c 11800 * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
0f2b32ac 11801
d8758d91 118022009-07-15 Maxim Kuvyrkov <maxim@codesourcery.com>
11803
11804 * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
11805 handle 2.6.30 kernel.
11806
58443085 118072009-07-15 DJ Delorie <dj@redhat.com>
11808
11809 * config/mep/mep.md (sibcall_internal): Change register to allow
11810 for 24-bit addresses.
11811 (sibcall_value_internal): Likewise.
11812
6298247a 118132009-07-14 Ghassan Shobaki <ghassan.shobaki@amd.com>
f6c8c8fc 11814
07ddf75c 11815 * doc/invoke.texi: Added descriptions of the scheduling heuristics
11816 that are enabled/disabled by the flags introduced by a previous patch.
f6c8c8fc 11817
93608695 118182009-07-14 DJ Delorie <dj@redhat.com>
11819
11820 * config/mep/mep.md (sibcall_internal): Include non-toggling
11821 non-jmp case.
11822 (sibcall_value_internal): Likewise.
11823
c02b6f4e 118242009-07-14 Taras Glek <tglek@mozilla.com>
11825 Rafael Espindola <espindola@google.com>
11826
11827 * doc/sourcebuild.texi: Document install-plugin target.
11828 * configure.ac: Added install-plugin target to language makefiles.
11829 * configure: Regenerate.
d603963f 11830 * Makefile.in (install-plugin): Install more headers,
c02b6f4e 11831 depend on lang.install-plugin.
11832
0aec0de8 118332009-07-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
11834
11835 * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
11836 translation.
f6c8c8fc 11837
2053b71f 118382009-07-14 DJ Delorie <dj@redhat.com>
11839
11840 * config/mep/mep.c (mep_vliw_jmp_match): New function.
11841 * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
11842 * config/mep/mep.md (sibcall_internal): Change test from
11843 mep_vliw_mode_match to mep_vliw_jmp_match.
11844 (sibcall_value_internal): Likewise.
11845
3d86078b 118462009-07-14 Uros Bizjak <ubizjak@gmail.com>
11847
11848 * config/i386/sse.md (copysign<mode>3): New expander.
11849 * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
11850 * config/i386/i386.c (ix86_build_signbit_mask): Make public.
11851 Use ix86_build_const_vector.
11852 (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
11853 IX86_BUILTIN_CPYSGNPD.
11854 (builtin_description): Add __builtin_ia32_copysignps and
11855 __builtin_ia32_copysignpd.
11856 (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
11857 and BUILT_IN_COPYSIGNF.
11858
7abca321 118592009-07-13 Jason Merrill <jason@redhat.com>
11860
11861 * builtins.c (can_trust_pointer_alignment): New fn.
11862 (get_pointer_alignment): Factor it out from here.
11863 * tree.h: Declare it.
11864
519c9794 118652009-07-14 David Edelsohn <edelsohn@gnu.org>
11866
11867 * config/rs6000/predicates.md (offsettable_mem_operand): Test
11868 RTX_AUTOINC class.
11869
75c0b6e7 118702009-07-14 Dodji Seketeli <dodji@redhat.com>
11871
11872 PR debug/40705
11873 PR c++/403057
11874 * dwarf2.out.c (gen_type_die_with_usage): Added comment.
11875
b6da67dc 118762009-07-14 Richard Guenther <rguenther@suse.de>
3d86078b 11877 Andrey Belevantsev <abel@ispras.ru>
b6da67dc 11878
11879 PR middle-end/40745
11880 * cfgexpand.c (partition_stack_vars): Do not bother to update
11881 alias information when not optimizing.
11882
3a443843 118832009-07-14 Richard Guenther <rguenther@suse.de>
ea3bb9f4 11884 Andrey Belevantsev <abel@ispras.ru>
3a443843 11885
11886 * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
11887 (pt_solution_set): Likewise.
11888 * tree-ssa-alias.c (refs_may_alias_p_1): Export.
11889 * tree-ssa-structalias.c (pt_solution_set): New function.
11890 * final.c (rest_of_clean_state): Free SSA data structures.
11891 * print-rtl.c (print_decl_name): Remove.
11892 (print_mem_expr): Implement in terms of print_generic_expr.
11893 * alias.c (ao_ref_from_mem): New function.
11894 (rtx_refs_may_alias_p): Likewise.
11895 (true_dependence): Query alias-export info.
11896 (canon_true_dependence): Likewise.
11897 (write_dependence_p): Likewise.
11898 * tree-dfa.c (get_ref_base_and_extent): For void types leave
11899 size unknown.
11900 * emit-rtl.c (component_ref_for_mem_expr): Remove.
11901 (mem_expr_equal_p): Use operand_equal_p.
11902 (set_mem_attributes_minus_bitpos): Do not use
11903 component_ref_for_mem_expr.
11904 * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
11905 (update_alias_info_with_stack_vars): Likewise.
11906 (partition_stack_vars): Call update_alias_info_with_stack_vars.
11907 * tree-ssa.c (delete_tree_ssa): Do not release SSA names
11908 explicitly nor clear stmt operands.
11909 Free the decl-to-pointer map.
11910 * tree-optimize.c (execute_free_datastructures): Do not free
11911 SSA data structures here.
11912 * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
11913 * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
11914 (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
11915 dependencies.
11916 (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
11917
28767f83 119182009-07-13 DJ Delorie <dj@redhat.com>
11919
dd20d2ca 11920 * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
11921 unrolling at the right iteration count.
11922
28767f83 11923 * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
11924 calculations.
11925
4d569386 119262009-07-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
f6c8c8fc 11927
3d86078b 11928 * haifa-sched.c (rank_for_schedule): Introduced flags to
11929 enable/disable individual scheduling heuristics.
11930 * common.opt: Introduced flags to enable/disable individual
f6c8c8fc 11931 heuristics in the scheduler.
3d86078b 11932 * doc/invoke.texi: Introduced flags to enable/disable individual
11933 heuristics in the scheduler.
f6c8c8fc 11934
b20cb873 119352009-07-13 Kai Tietz <kai.tietz@onevision.com>
11936
11937 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
11938 config/i386/mingw-tls.c.
11939 * config/i386/mingw-tls.c: Removed.
11940
c0a0357c 119412009-07-13 Ira Rosen <irar@il.ibm.com>
11942
f6c8c8fc 11943 * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
c0a0357c 11944 checks access only relevant statements.
11945 (vectorizable_reduction): Likewise.
11946
ce663cb5 119472009-07-12 Kai Tietz <kai.tietz@onevision.com>
11948
11949 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
11950 just for 32-bit case.
11951
504e084a 119522009-07-12 Jan Hubicka <jh@suse.cz>
11953
11954 PR tree-optimization/40585
11955 * except.c (expand_resx_expr): When there already is resume
11956 instruction, produce linked list.
11957 (build_post_landing_pads): Assert that resume is empty.
11958 (connect_post_landing_pads): Handle resume lists.
11959 (dump_eh_tree): Dump resume list.
11960
7aa0d350 119612009-07-12 Ira Rosen <irar@il.ibm.com>
11962
11963 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
11964 with additional argument.
7c1037d2 11965 * tree-vectorizer.h (enum vect_def_type): Add
7aa0d350 11966 vect_double_reduction_def.
11967 (vect_is_simple_reduction): Add argument.
7c1037d2 11968 * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
7aa0d350 11969 indentation.
11970 (vect_analyze_scalar_cycles_1): Detect double reduction. Call
11971 vect_is_simple_reduction with additional argument.
11972 (vect_analyze_loop_operations): Handle exit phi nodes in case of
11973 double reduction.
11974 (reduction_code_for_scalar_code): Handle additional codes by
11975 returning ERROR_MARK for them. Fix comment and indentation.
11976 (vect_is_simple_reduction): Fix comment, add argument to specify
11977 double reduction. Detect double reduction.
11978 (get_initial_def_for_induction): Fix indentation.
11979 (get_initial_def_for_reduction): Fix comment and indentation.
11980 Handle double reduction. Create initial definitions that do not
11981 require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
11982 (vect_create_epilog_for_reduction): Fix comment, add argument to
11983 handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
11984 epilogue result extraction. Create double reduction phi node and
11985 replace relevant uses.
11986 (vectorizable_reduction): Call vect_is_simple_reduction with
11987 additional argument. Fix indentation. Update epilogue code treatment
7c1037d2 11988 according to the changes in reduction_code_for_scalar_code. Check
7aa0d350 11989 for double reduction. Call vect_create_epilog_for_reduction with
11990 additional argument.
11991 * tree-vect-stmts.c (process_use): Handle double reduction, update
11992 documentation.
11993 (vect_mark_stmts_to_be_vectorized): Handle double reduction.
11994 (vect_get_vec_def_for_operand): Likewise.
11995
24fb1d3f 119962009-07-12 Danny Smith <dansmister@gmail.com>
11997
11998 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
11999 dllexport if !TREE_PUBLIC.
12000 (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
12001
00abffbf 120022009-07-11 Anatoly Sokolov <aesok@post.ru>
12003
12004 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
12005 (avr_extra_arch_macro) Remove declatation.
12006 * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
12007 (avr_extra_arch_macro) Declare as static.
12008 * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
12009
6af7af33 120102009-07-11 Jan Hubicka <jh@suse.cz>
12011
12012 PR middle-end/48388
12013 * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
12014
738ab6f5 120152009-07-11 Jakub Jelinek <jakub@redhat.com>
12016
04ef4ca6 12017 PR debug/40713
12018 * dwarf2out.c (dw_fde_struct): Add in_std_section and
12019 cold_in_std_section bits.
12020 (dwarf2out_begin_prologue): Initialize them.
12021 (dwarf2out_finish): Don't emit FDE range into .debug_ranges
12022 if already covered by text_section or cold_text_section range.
12023
8645d3e7 12024 PR rtl-optimization/40667
12025 * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
12026 * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
12027 * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
12028 * config/i386/i386.c (ix86_minimum_alignment): New function.
12029 * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
12030 * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
12031 * emit-rtl.c (gen_reg_rtx): Likewise.
12032 * function.c (assign_parms): Likewise. If nominal_type needs
12033 bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
12034 rather than passed_type's alignment.
12035
738ab6f5 12036 PR target/40668
12037 * function.c (assign_parm_setup_stack): Adjust
12038 MEM_OFFSET (data->stack_parm) if promoted_mode is different
12039 from nominal_mode on big endian.
12040
88e81a69 120412009-07-11 Paolo Bonzini <bonzini@gnu.org>
12042
12043 * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
12044
1756c1fe 120452009-07-10 DJ Delorie <dj@redhat.com>
12046
12047 * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
12048
6895d90f 120492009-07-10 Mark Mitchell <mark@codesourcery.com>
12050
12051 * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
12052 attribute.
12053 (thumb2_cbnz): Likewise.
12054
1af9587c 120552009-07-10 David Daney <ddaney@caviumnetworks.com>
12056
12057 PR target/39079
12058 * config.gcc (supported_defaults): Add synci.
12059 (with_synci): Add validation.
12060 (all_defaults): Add synci.
12061 * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
12062 ISA_HAS_SYNCI.
12063 (synci): Same.
12064 * config/mips/mips.opt (msynci): New option.
12065 * config/mips/mips.c (mips_override_options): Warn on use of
12066 -msynci for targets that do now support it.
12067 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
12068 msynci.
12069 * gcc/doc/invoke.texi (-msynci): Document the new option.
12070 * doc/install.texi (--with-synci): Document the new option.
12071
b34a77f7 120722009-07-10 Richard Guenther <rguenther@suse.de>
12073
12074 PR tree-optimization/40496
12075 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
12076 the PHI result with a compatible type.
12077
af5f5e79 120782009-07-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
12079
12080 PR 25509
12081 PR 40614
12082 * c.opt (Wunused-result): New.
12083 * doc/invoke.texi: Document it.
12084 * c-common.c (c_warn_unused_result): Use it.
12085
48e9be89 120862009-07-09 DJ Delorie <dj@redhat.com>
12087
7c88e513 12088 * targhooks.c (default_target_can_inline_p): Rename from
12089 default_target_option_can_inline_p.
12090 * targhooks.h (default_target_can_inline_p): Likewise.
12091 * target-def.h (TARGET_CAN_INLINE_P): Rename from
12092 TARGET_OPTION_CAN_INLINE_P.
12093 * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
12094 * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
12095 (mep_target_can_inline_p): Rename from
12096 mep_target_option_can_inline_p.
12097
12098 PR target/40626
1f47850b 12099 * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
12100 registers used to pass vectors.
12101
48e9be89 12102 * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
12103
bde36f4a 121042009-07-09 Tom Tromey <tromey@redhat.com>
12105
12106 * unwind-dw2-fde-darwin.c: Include dwarf2.h.
12107 * config/mmix/mmix.c: Include dwarf2.h.
12108 * config/rs6000/darwin-fallback.c: Include dwarf2.h.
12109 * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
12110 * config/sh/sh.c: Include dwarf2.h.
12111 * config/i386/i386.c: Include dwarf2.h.
12112 * Makefile.in (DWARF2_H): Remove 'elf'.
12113 * except.c: Include dwarf2.h.
12114 * unwind-dw2.c: Include dwarf2.h.
12115 * dwarf2out.c: Include dwarf2.h.
12116 * unwind-dw2-fde-glibc.c: Include dwarf2.h.
12117 * unwind-dw2-fde.c: Include dwarf2.h.
12118 * dwarf2asm.c: Include dwarf2.h.
12119
4db82bc9 121202009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
7c1037d2 12121
4db82bc9 12122 * haifa-sched.c (insn_finishes_cycle_p): New static function.
7c1037d2 12123 (max_issue): Use it.
12124 * sched-int.h (struct sched_info: insn_finishes_block_p): New
12125 scheduler hook.
12126 * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
12127 (region_sched_info): Update.
12128 * sched-ebb.c (ebb_sched_info): Update.
12129 * modulo-sched.c (sms_sched_info): Update.
4db82bc9 12130 * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
12131
30b38676 121322009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
12133
12134 * varasm.c (build_constant_desc): Don't share RTL in pool entries.
75abcc2a 12135
121362009-07-09 Basile Starynkevitch <basile@starynkevitch.net>
12137
f6c8c8fc 12138 * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
75abcc2a 12139
507d706c 121402009-07-09 Jakub Jelinek <jakub@redhat.com>
12141
12142 PR middle-end/40692
12143 * fold-const.c (fold_cond_expr_with_comparison): Don't replace
12144 arg1 with arg01 if arg1 is already INTEGER_CST.
12145
85ece28d 121462009-07-08 Adam Nemet <anemet@caviumnetworks.com>
12147
7c1037d2 12148 * simplify-rtx.c (simplify_binary_operation_1) <AND>:
12149 Transform (and (truncate)) into (truncate (and)).
85ece28d 12150
658e1523 121512009-07-08 Adam Nemet <anemet@caviumnetworks.com>
12152
12153 * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
12154 creating LHS paradoxical subregs. Fix surrounding returns to
12155 use NULL_RTX rather than 0.
12156
a71ff2a7 121572009-07-08 DJ Delorie <dj@redhat.com>
12158
d603963f 12159 * config/mep/mep.c (mep_option_can_inline_p): New.
a71ff2a7 12160 (TARGET_OPTION_CAN_INLINE_P): Define.
12161
fbff7494 121622009-07-08 Mark Wielaard <mjw@redhat.com>
12163
12164 PR debug/40659
12165 * dwarf2out.c (add_data_member_location_attribute): When we have
12166 only a constant offset don't emit a new location description using
12167 DW_OP_plus_uconst, but just add the constant with add_AT_int, when
12168 dwarf_version > 2.
12169
fd0652b1 121702009-07-08 Richard Henderson <rth@redhat.com>
12171
12172 PR target/38900
12173 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
12174 (enum reg_class): Add CLOBBERED_REGS.
12175 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
12176 * config/i386/i386.c (ix86_conditional_register_usage): Moved
12177 from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
12178 (ix86_function_ok_for_sibcall): Tidy. Disallow MS->SYSV sibcalls.
12179 (ix86_expand_call): Use sibcall_insn_operand when needed. Don't
12180 force 64-bit sibcalls into R11.
12181 * config/i386/constraints.md (U): New constraint.
12182 * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
12183 (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
12184 (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
12185
10230637 121862009-07-08 Shujing Zhao <pearly.zhao@oracle.com>
12187
12188 * basic-block.h (dump_regset, debug_regset): Remove duplicate
12189 prototypes.
12190 * c-objc-common.h (c_initialize_diagnostics): Ditto.
12191 * ebitmap.h (dump_ebitmap): Ditto.
12192 * optabs.h (optab_libfunc): Ditto.
12193 * tree.h (tree_expr_nonzero_warnv_p): Ditto.
12194 * tree-flow.h (vect_can_force_dr_alignment_p,
658e1523 12195 get_vectype_for_scalar_type): Ditto.
10230637 12196 (vectorize_loops): Move prototype to ...
658e1523 12197 * tree-vectorizer.h: ... here. Also, adjust comment.
10230637 12198 (vect_set_verbosity_level): Remove duplicate prototype.
12199 * tree-ssa-loop.c: Include tree-vectorizer.h.
12200 * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
12201
3abce6d8 122022009-07-08 Nick Clifton <nickc@redhat.com>
12203
12204 * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
12205 forward slash.
12206
aecef6a2 122072009-07-08 DJ Delorie <dj@redhat.com>
12208
12209 * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
12210 cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
12211 cpmovtocc_P0S_P1): Mark volatile. Note which registers are
12212 written to.
12213 * config/mep/intrinsics.md: Regenerated.
12214 * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
12215 registers when asm() or calls are detected.
658e1523 12216
e627cda1 122172009-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
12218
12219 PR c++/31246
12220 * gimplify.c (gimplify_expr): Propagate no_warning flag when
12221 gimplifying.
12222 * gimple (gimple_build_call_from_tree): Likewise.
12223 * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
12224 no_warning flag before warning.
658e1523 12225
1cf1742e 122262009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
12227
12228 * tree.c (set_expr_locus): Remove.
12229 * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
12230 * c-typeck.c (c_finish_stmt_expr): Replace EXPR_LOCUS by
12231 EXPR_LOCATION.
12232 * gimplify.c (internal_get_tmp_var): Likewise.
12233 (gimplify_call_expr): Likewise.
12234 (gimplify_one_sizepos): Likewise.
12235
75f6aa15 122362009-07-07 Eric Botcazou <ebotcazou@adacore.com>
12237
12238 PR debug/40666
12239 * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
12240 to variables for debugging purposes.
12241
b475d084 122422009-06-23 Mark Loeser <mark@halcy0n.com>
12243
12244 PR build/40010
12245 * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
12246
11cd5422 122472009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
12248
12249 * pretty-print.c (pp_base_format): Remove %J.
12250 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
12251 gcc_cxxdiag_char_table): Likewise.
12252 (init_dynamic_diag_info): Likewise.
b475d084 12253
a426d5d9 122542009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
12255
12256 * pretty-print.c (pp_base_format): Remove %H.
12257 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
12258 gcc_cxxdiag_char_table): Likewise.
12259 (init_dynamic_diag_info): Likewise.
12260 * config/mep/mep.c (mep_select_section): Likewise.
12261
21486db3 122622009-07-07 Duncan Sands <baldrick@free.fr>
12263
7c1037d2 12264 * final.c (pass_clean_state): Give the pass a name.
12265 * passes.c (pass_rest_of_compilation): Likewise.
12266 * tree-optimize.c (pass_all_optimizations): Likewise.
21486db3 12267
8b52eeb5 122682009-07-07 H.J. Lu <hongjiu.lu@intel.com>
12269
12270 * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
12271 an extra 'decl' for error_at.
12272
6ecef788 122732009-07-07 Jakub Jelinek <jakub@redhat.com>
12274
12275 PR middle-end/40669
12276 * tree-tailcall.c (adjust_return_value_with_ops,
12277 create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
12278 if it has complex or vector type.
12279
6acfe4cd 122802009-07-07 Olivier Hainque <hainque@adacore.com>
12281
8b52eeb5 12282 * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
12283 pthread symbols.
6acfe4cd 12284
a933e912 122852009-07-07 Basile Starynkevitch <basile@starynkevitch.net>
12286
12287 * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
12288
712d2297 122892009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
12290
7c1037d2 12291 * cgraphunit.c: Replace %J by an explicit location. Update all calls.
712d2297 12292 * c-decl.c: Likewise.
12293 * function.c: Likewise.
12294 * varasm.c: Likewise.
12295 * tree-ssa.c: Likewise.
12296 * c-common.c: Likewise.
12297 * tree-cfg.c: Likewise.
12298 * config/spu/spu.c: Likewise.
12299 * config/ia64/ia64.c: Likewise.
12300 * config/v850/v850.c: Likewise.
12301
975b4396 123022009-07-06 DJ Delorie <dj@redhat.com>
12303
12304 * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
12305 * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
12306 unspecified accesses to control registers.
12307 * config/mep/intrinsics.md: Regenerate.
12308 * config/mep/intrinsics.h: Regenerate.
12309 * config/mep/mep-intrin.h: Regenerate.
658e1523 12310
5fb6a912 123112009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
12312
12313 * c-lex.c: Replace %H by an explicit location. Update all calls.
12314 * c-common.c: Likewise.
12315 * c-decl.c: Likewise.
12316 * c-typeck.c: Likewise.
12317 * fold-const.c: Likewise.
12318 * gimplify.c: Likewise.
12319 * stmt.c: Likewise.
12320 * tree-cfg.c: Likewise.
12321 * tree-ssa-loop-niter.c: Likewise.
12322 * tree-vrp.c: Likewise.
12323 * value-prof.c: Likewise.
12324
241b2d37 123252009-07-06 Diego Novillo <dnovillo@google.com>
12326
12327 * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
12328 if it has one. Handle cases where VAR does not have an
12329 annotation or cfun is NULL.
12330
8dfbefd8 123312009-07-06 Diego Novillo <dnovillo@google.com>
12332
12333 * tree.c: Include debug.h.
12334 (initialize_tree_contains_struct): New.
12335 (init_ttree): Call it.
12336 (tree_node_structure_for_code): Factor out of ...
12337 (tree_node_structure): ... here.
12338 * treestruct.def (TS_PHI_NODE): Remove.
12339 (TS_GIMPLE_STATEMENT): Remove.
12340
77c223c3 123412009-07-06 Diego Novillo <dnovillo@google.com>
12342
7c1037d2 12343 * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
77c223c3 12344 (debug_tree_chain): Handle cycles.
12345
c4af075b 123462009-07-06 Nick Clifton <nickc@redhat.com>
12347 DJ Delorie <dj@redhat.com>
12348
12349 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
12350 __FMOVD_ENABLED__ is defined.
12351 * config/sh/sh.h
12352 (TARGET_FMOVD): Provide a default definition.
12353 (MASK_FMOVD): Likewise.
12354 (TARGET_CPU_CPP_BUILTINS): Define
12355 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
12356 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
7c1037d2 12357 two fmov instructions depending upon whether TARGET_FMOVD is enabled.
c4af075b 12358 (split for DF load from memory into register): Also handle
12359 MEMs which consist of REG+DISP addressing.
12360 (split for DF store from register to memory): Likewise.
12361 (movsf_ie): Always use single fp_mode.
12362 * config/sh/sh.c (sh_override_options): Do not automatically
12363 enable TARGET_MOVD for the SH2A when supporting doubles - leave
12364 that to the -mfmovd command line switch.
12365 (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
12366 (fldi_ok): Always allow.
12367 * config/sh/sh.opt (mfmovd): Remove this switch.
12368 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
12369
a3150208 123702009-07-06 J"orn Rennecke <joern.rennecke@arc.com>
12371 Kaz Kojima <kkojima@gcc.gnu.org>
12372
12373 PR rtl-optimization/30807
12374 * postreload.c (reload_combine): For every new use of REG_SUM,
12375 record the use of BASE.
12376
3e02d180 123772009-07-06 Jan Hubicka <jh@suse.cz>
12378
12379 * params.def: Revert my accidental commit at 2009-06-30.
12380
3535bad9 123812009-07-04 Ian Lance Taylor <iant@google.com>
12382
12383 PR target/40636
12384 * config/i386/msformat-c.c (mingw_format_attributes): Declare as
12385 EXPORTED_CONST.
12386 (mingw_format_attribute_overrides): Likewise.
12387
f3a4b1fb 123882009-07-04 Jakub Jelinek <jakub@redhat.com>
12389
12390 PR debug/40596
12391 * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
12392 don't check cfa.reg. Instead of cfa.indirect use
12393 fde && fde->drap_reg != INVALID_REGNUM test.
12394
461ada8d 123952009-07-04 Eric Botcazou <ebotcazou@adacore.com>
12396
12397 * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
12398
ccce8d98 123992009-07-03 Vladimir Makarov <vmakarov@redhat.com>
12400
12401 PR target/40587
7c1037d2 12402 * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
658e1523 12403
42d9ffa5 124042009-07-03 Richard Guenther <rguenther@suse.de>
12405
12406 PR tree-optimization/40640
12407 * tree-switch-conversion.c (build_arrays): Perform arithmetic
12408 in original type.
12409
89c679bd 124102009-07-03 Jan Hubicka <jh@suse.cz>
12411
12412 * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
12413 for size, reduce amount of inlining.
12414
b5a4c072 124152009-07-03 Richard Guenther <rguenther@suse.de>
12416
12417 PR middle-end/34163
7c1037d2 12418 * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
12419 if t +- x is known to not overflow and the conversion widens the
12420 operation.
b5a4c072 12421 * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
12422
b1887855 124232009-07-03 Jan Hubicka <jh@suse.cz>
12424
12425 * ipa-pure-const.c (analyze): Update loop optimizer init.
12426 * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
12427 try_remove_empty_loop, remove_empty_loops): Remove.
12428 * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
12429 * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
12430 to mark regular loops as neccesary.
12431 (degenerate_phi_p): New function.
12432 (propagate_necessity, remove_dead_phis): Use it.
12433 (forward_edge_to_pdom): Likewise.
12434 (eliminate_unnecessary_stmts): Take care to remove uses of results of
12435 virtual PHI nodes that became unreachable.
12436 (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
12437 * tree-flow.h (remove_empty_loops): Remove.
12438 * passes.c (init_optimization_passes): Remove.
12439
d0b2c064 124402009-07-03 Uros Bizjak <ubizjak@gmail.com>
12441
12442 * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
12443 can_create_pseudo_p.
12444 (*fix_trunc<mode>_i387_1): Ditto.
12445 (*floathi<mode>2_1): Ditto.
12446 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
12447 (*fistdi2_1): Ditto.
12448 (*fist<mode>2_1): Ditto.
12449 (frndintxf2_floor): Ditto.
12450 (*fist<mode>2_floor_1): Ditto.
12451 (frndintxf2_ceil): Ditto.
12452 (*fist<mode>2_ceil_1): Ditto.
12453 (frndintxf2_trunc): Ditto.
12454 (frndintxf2_mask_pm): Ditto.
12455 (fxam<mode>2_i387_with_temp): Ditto.
12456 * config/i386/sse.md (mulv16qi3): Ditto.
12457 (*sse2_mulv4si3): Ditto.
12458 (mulv2di3): Ditto.
12459 (sse4_2_pcmpestr): Ditto.
12460 (sse4_2_pcmpistr): Ditto.
12461
a336775c 124622009-07-03 Jan Hubicka <jh@suse.cz>
12463
12464 * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
12465 (mark_stmt_necessary): Set it.
12466 (mark_operand_necessary): Set it.
12467 (mark_control_dependent_edges_necessary): Set it.
12468 (mark_virtual_phi_result_for_renaming): New function.
12469 (get_live_post_dom): New function.
12470 (forward_edge_to_pdom): New function.
12471 (remove_dead_stmt): Fix handling of control dependences.
12472 (tree_dce_init): Init new bitmap.
12473 (tree_dce_done): Free it.
12474
86fd2723 124752009-07-02 Richard Guenther <rguenther@suse.de>
12476
12477 PR bootstrap/40617
12478 * tree-ssa-structalias.c (new_var_info): Initialize
12479 is_restrict_var.
12480
3ae61172 124812009-07-02 Jan Hubicka <jh@suse.cz>
12482
12483 * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
12484 local.
12485
d68bc06a 124862009-07-02 Paolo Bonzini <bonzini@gnu.org>
12487
12488 * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
12489 instead of recomputing it. Adjust calls.
12490 (emit_store_flag): Adjust recursive calls.
12491
9b68b56b 124922009-07-02 Richard Guenther <rguenther@suse.de>
12493
12494 * tree-ssa-live.c (remove_unused_locals): Do not remove
12495 heap variables.
12496 * tree-ssa-structalias.c (handle_lhs_call): Delay setting
12497 of DECL_EXTERNAL for HEAP variables.
12498 (compute_points_to_sets): Set DECL_EXTERNAL for escaped
12499 HEAP variables. Do not adjust RESTRICT vars.
12500 (find_what_var_points_to): Nobody cares if something
12501 points to READONLY.
12502
4ad2fc34 125032009-07-02 Ben Elliston <bje@au.ibm.com>
12504
12505 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
12506 pc_low and pc_high declarations to the top of the function.
12507
32a5f905 125082009-07-01 DJ Delorie <dj@redhat.com>
12509
12510 * config/mep/mep.c (mep_handle_option): Leave IVC2 control
12511 registers as fixed.
d0b2c064 12512 (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
32a5f905 12513 * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
12514 unspecified accesses to control registers.
12515 * config/mep/intrinsics.md: Regenerate.
12516 * config/mep/intrinsics.h: Regenerate.
12517 * config/mep/mep-intrin.h: Regenerate.
658e1523 12518
7da17dca 125192009-07-01 Anthony Green <green@moxielogic.com>
12520
12521 * config/moxie/moxie.c (moxie_expand_prologue): Use dec
12522 instruction when possible.
12523 (moxie_expand_prologue): Ditto. Also, save an instruction and
658e1523 12524 some complexity by popping off of $r12 instead of $sp.
7da17dca 12525 * config/moxie/moxie.md (movsi_pop): Don't assume $sp. Take two
12526 operands.
658e1523 12527
c009a3ec 125282009-07-01 Richard Henderson <rth@redhat.com>
12529
12530 PR bootstrap/40347
12531 * function.c (reposition_prologue_and_epilogue_notes): If epilogue
12532 contained no insns, reposition note before last insn.
12533
8d2a8041 125342009-07-01 Richard Henderson <rth@redhat.com>
12535
12536 PR debug/40431
12537 * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
12538 DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
12539
56df51d8 125402009-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
12541
12542 PR bootstrap/40558
12543 * config/rs6000/rs6000.c (print_operand): Undo change that breaks
12544 darwin9 for printing reg addresses with %y.
12545
3f03d2db 125462009-07-01 Adam Nemet <anemet@caviumnetworks.com>
12547
12548 * combine.c (force_to_mode): Handle TRUNCATE. Factor out
12549 truncation from operands in binary operations.
12550
98e07982 125512009-07-01 Adam Nemet <anemet@caviumnetworks.com>
12552
12553 Revert:
12554 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
12555 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
12556 subreg of op0 to the original op0.
12557
12558 * expmed.c (store_bit_field_1): Use a temporary as the destination
12559 instead of a paradoxical subreg when we need to truncate the result.
12560
65232149 125612009-07-01 DJ Delorie <dj@redhat.com>
12562
d0b2c064 12563 * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
12564 names to VLIW variants.
65232149 12565 (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
12566 * config/mep/intrinsics.md: Regenerate.
12567 * config/mep/intrinsics.h: Regenerate.
12568 * config/mep/mep-intrin.h: Regenerate.
12569
92ae5ac1 125702009-07-01 Jakub Jelinek <jakub@redhat.com>
12571
12572 PR debug/40462
12573 * jump.c (returnjump_p): Revert last patch.
12574 * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
12575
372b3fe2 125762009-07-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12577
c7aa0bd1 12578 PR target/40575
12579 * pa.md (casesi32p): Use jump table label to determine the offset
12580 of the jump table.
12581 (casesi64p): Likewise.
12582
d0b2c064 12583 * pa.c (forward_branch_p): Return bool type. Use instruction
12584 addresses when available. Assert that INSN has a jump label.
372b3fe2 12585 (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
12586 have a jump label.
12587
9df58cd1 125882009-07-01 Richard Guenther <rguenther@suse.de>
12589
12590 PR tree-optimization/19831
12591 * tree-ssa-dce.c (propagate_necessity): Calls to functions
d0b2c064 12592 that only act as barriers do not make any previous stores necessary.
9df58cd1 12593 * tree-ssa-structalias.c (handle_lhs_call): Delay making
12594 HEAP variables global, do not add a constraint from nonlocal.
12595 (find_func_aliases): Handle escapes through return statements.
12596 (compute_points_to_sets): Make escaped HEAP variables global.
12597
7d4098a0 125982009-07-01 Paolo Bonzini <bonzini@gnu.org>
12599
12600 PR bootstrap/40597
12601 * expmed.c (emit_store_flag): Perform a conversion if necessary,
12602 after reducing a DImode cstore to SImode.
12603
7dbdd983 126042009-07-01 Paolo Bonzini <bonzini@gnu.org>
12605
12606 * expr.c (expand_expr_real_1): Reinstate fallthrough to
12607 TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
12608
91ec62fb 126092009-07-01 Maciej W. Rozycki <macro@linux-mips.org>
12610
12611 * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro. Set to 1.
12612 * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro. Redefine the
12613 to 0.
12614 * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
12615 and umod_optab if TARGET_BSD_DIVMOD.
12616 * config/vax/lib1funcs.asm: New file.
12617 * config/vax/t-linux: New file.
12618 * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
12619
c899341f 126202009-06-30 Jakub Jelinek <jakub@redhat.com>
12621
57d0100f 12622 PR c++/40566
12623 * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
12624 to type arguments that have void type.
12625
c899341f 12626 PR debug/40573
12627 * dwarf2out.c (gen_formal_parameter_die): Call
12628 equate_decl_number_to_die if node is different from origin.
12629
76bfc156 126302009-06-30 Anthony Green <green@moxielogic.com>
12631
12632 Clean up moxie port for --enable-build-with-cxx.
12633 * config/moxie/moxie.c (moxie_function_value): First two
12634 parameters are const_tree, not tree.
12635 * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
12636 (REG_CLASS_NAMES): Ditto.
12637 (REGNO_REG_CLASS): Ditto.
12638 * config/moxie/moxie-protos.h (moxie_override_options): Declare.
12639 (moxie_function_value): Fix constyness of arguments.
12640
4189e677 126412009-06-30 Eric Botcazou <ebotcazou@adacore.com>
12642
12643 * cgraphunit.c (cgraph_finalize_compilation_unit): Call
12644 finalize_size_functions before further processing.
12645 * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
12646 (variable_size): Call self_referential_size on size expressions
12647 that contain a PLACEHOLDER_EXPR.
12648 (size_functions): New static variable.
12649 (copy_self_referential_tree_r): New static function.
12650 (self_referential_size): Likewise.
12651 (finalize_size_functions): New global function.
12652 * tree.c: Include tree-inline.h.
12653 (push_without_duplicates): New static function.
12654 (find_placeholder_in_expr): New global function.
12655 (substitute_in_expr) <tcc_declaration>: Return the replacement object
12656 on equality.
12657 <tcc_expression>: Likewise.
12658 <tcc_vl_exp>: If the replacement object is a constant, try to inline
12659 the call in the expression.
12660 * tree.h (finalize_size_functions): Declare.
12661 (find_placeholder_in_expr): Likewise.
12662 (FIND_PLACEHOLDER_IN_EXPR): New macro.
12663 (substitute_placeholder_in_expr): Update comment.
12664 * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
12665 is true.
12666 (copy_tree_body_r): Likewise.
12667 (copy_tree_body): New static function.
12668 (maybe_inline_call_in_expr): New global function.
12669 * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
12670 (maybe_inline_call_in_expr): Declare.
12671 * Makefile.in (tree.o): Depend on TREE_INLINE_H.
12672 (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
12673 GIMPLE_H.
12674
4bb5d312 126752009-06-30 Richard Guenther <rguenther@suse.de>
12676
12677 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
12678 continue walking.
12679 (propagate_necessity): Do not mark reaching defs of stores
12680 as necessary.
12681
c9263b6a 126822009-06-30 Jan Hubicka <jh@suse.cz>
12683
12684 * cfgloopanal.c (check_irred): Move into ...
12685 (mark_irreducible_loops): ... here; return true if ireducible
12686 loops was found.
12687 * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
12688 (analyze_function): Try to prove loop finiteness.
12689 * cfgloop.h (mark_irreducible_loops): Update prototype.
12690 * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
12691
2bda5ce3 126922009-06-30 Basile Starynkevitch <basile@starynkevitch.net>
12693
12694 * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
12695
9908a112 126962009-06-30 Ira Rosen <irar@il.ibm.com>
12697
12698 PR tree-optimization/40542
f6c8c8fc 12699 * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
9908a112 12700 types.
12701
e8803173 127022009-06-30 Martin Jambor <mjambor@suse.cz>
12703
12704 PR tree-optimization/40582
12705 * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
12706 than useless_type_conversion_p.
12707 (generate_subtree_copies): Increment sra_stats.subtree_copies at a
12708 proper place.
12709
55a9bfa7 127102009-06-30 Martin Jambor <mjambor@suse.cz>
12711
12712 PR middle-end/40554
12713 * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
12714
1daead67 127152009-06-30 Richard Guenther <rguenther@suse.de>
12716
12717 * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
12718 use ao_ref references.
12719 (walk_aliased_vdefs): Likewise.
12720 * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
12721 * tree-ssa-dce.c (struct ref_data): Remove.
12722 (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
12723 (mark_aliased_reaching_defs_necessary): Adjust.
12724 (mark_all_reaching_defs_necessary_1): Likewise.
12725
cf564daf 127262009-06-30 Paolo Bonzini <bonzini@gnu.org>
12727
12728 PR boostrap/40597
12729 * expmed.c (emit_cstore): New name of emit_store_flag_1.
12730 (emit_store_flag_1): Extract from emit_store_flag, adjust
12731 calls to (what now is) emit_cstore.
12732 (emit_store_flag): Call emit_store_flag_1 and also use it
12733 for what used to be recursive calls.
12734
258b3d02 127352009-06-30 Wei Guozhi <carrot@google.com>
12736
12737 PR/40416
12738 * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
12739 if the target bb post dominates from bb.
12740 * config/i386/i386.c (memory_address_length): Check existence of base
12741 register before using it.
12742
c4af075b 127432009-06-30 Nick Clifton <nickc@redhat.com>
12744 DJ Delorie <dj@redhat.com>
12745
12746 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
12747 __FMOVD_ENABLED__ is defined.
12748 * config/sh/sh.h
12749 (TARGET_FMOVD): Provide a default definition.
12750 (MASK_FMOVD): Likewise.
12751 (TARGET_CPU_CPP_BUILTINS): Define
12752 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
12753 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
12754 two fmov instructions depending upon whether TARGET_FMOVD is
12755 enabled.
12756 (split for DF load from memory into register): Also handle
12757 MEMs which consist of REG+DISP addressing.
12758 (split for DF store from register to memory): Likewise.
12759 * config/sh/sh.opt (mfmovd): Remove this switch.
12760 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
12761 * config/sh/sh.c (sh_override_options): Do not automatically
12762 enable TARGET_MOVD for the SH2A when supporting doubles - leave
12763 that to the -mfmovd command line switch.
12764
12765 * config/sh/sh.c (broken_move): Do not restrict fldi test to only
12766 the SH4 and SH4A.
12767 (fldi_ok): Always allow.
12768 * config/sh/sh.md (movsf_ie): Always use single fp_mode.
12769
760e1ed4 127702009-06-29 DJ Delorie <dj@redhat.com>
12771
12772 * doc/install.texi (mep-x-elf): Correct chip's full name.
12773
58c0b97e 127742009-06-29 H.J. Lu <hongjiu.lu@intel.com>
12775
12776 * doc/extend.texi: Fix typo.
12777
2452254d 127782009-06-29 Tom Tromey <tromey@redhat.com>
12779
12780 * dwarf2.h: Remove.
12781 * Makefile.in (DWARF2_H): New variable.
12782 (except.o): Use it.
12783 (dwarf2out.o): Likewise.
12784 (dwarf2asm.o): Likewise.
12785 * config/i386/t-i386: Use DWARF2_H.
12786 * except.c: Include elf/dwarf2.h.
12787 * unwind-dw2.c: Include elf/dwarf2.h.
12788 * dwarf2out.c: Include elf/dwarf2.h.
12789 (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
12790 <dtprel>: New field.
12791 (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
12792 (size_of_loc_descr): Likewise.
12793 (output_loc_operands_raw): Likewise.
12794 (output_loc_operands): Handle new dtprel field.
12795 (loc_checksum): Update.
12796 (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
12797 * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
12798 * unwind-dw2-fde.c: Include elf/dwarf2.h.
12799 * dwarf2asm.c: Include elf/dwarf2.h.
12800 * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
12801 * config/mmix/mmix.c: Include elf/dwarf2.h.
12802 * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
12803 * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
12804 * config/sh/sh.c: Include elf/dwarf2.h.
12805 * config/i386/i386.c: Include elf/dwarf2.h.
12806
7c3116fb 128072009-06-29 DJ Delorie <dj@redhat.com>
12808
3a28fb14 12809 * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
12810
7c3116fb 12811 * doc/extend.texi: Add MeP attributes and pragmas.
12812 * doc/invoke.text: Add MeP Options.
12813 * doc/contrib.texi: Add MeP contribution.
12814 * doc/md.texi: Add MeP constraints.
12815 * doc/install.texi: Add MeP target.
12816
5a1c68c3 128172009-06-30 Anatoly Sokolov <aesok@post.ru>
12818
12819 * target.h (struct gcc_target): Add frame_pointer_required field.
12820 * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
12821 (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
12822 * ira.c (setup_eliminable_regset): Use frame_pointer_required target
12823 hook.
12824 * reload1.c (update_eliminables): (Ditto.).
12825 * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
12826 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
12827 (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
12828
12829 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
12830
12831 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
12832 * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
12833 (arm_frame_pointer_required): New function.
12834
12835 * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
12836 * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
12837 (avr_frame_pointer_required_p): Declare as static.
12838 * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
12839
12840 * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
12841 * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
12842 (bfin_frame_pointer_required): Make as static, change return type
12843 to bool.
12844 * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
12845
12846 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
12847 * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
12848 (cris_frame_pointer_required): New function.
f6c8c8fc 12849
5a1c68c3 12850 * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
12851
12852 * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
12853 * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
12854 (fr30_frame_pointer_required): New function.
f6c8c8fc 12855
5a1c68c3 12856 * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
12857 * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
12858 (frv_frame_pointer_required): Make as static, change return type
12859 to bool.
12860 * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
12861
12862 * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
12863 * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
12864 (ix86_frame_pointer_required): Make as static, change return type to
12865 bool.
12866 * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
12867
12868 * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
12869 * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
12870
12871 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
12872
12873 * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
f6c8c8fc 12874
5a1c68c3 12875 * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
12876
12877 * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
12878 * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
12879 (mips_frame_pointer_required): Make as static.
12880 * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
f6c8c8fc 12881
5a1c68c3 12882 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
12883 * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
12884 (mmix_frame_pointer_required): Mew function.
12885
12886 * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
12887 * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
12888
12889 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
12890
12891 * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
12892
12893 * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
12894
12895 * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
12896 (CAN_ELIMINATE): Redefine.
12897 * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
12898 (sparc_frame_pointer_required): New function.
12899 (sparc_can_eliminate): New function.
12900 * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
12901
12902 * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
12903 * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
12904
12905 * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
12906 * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
12907 (xtensa_frame_pointer_required): Make as static, change return type
12908 to bool.
12909 * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
12910 Remove.
12911
d0b2c064 129122009-06-29 Olatunji Ruwase <tjruwase@google.com>
275b769b 12913
12914 * doc/plugins.texi: Document PLUGIN_START_UNIT.
12915 * toplev.c (compile_file): Call PLUGIN_START_UNIT.
12916 * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
12917 * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
12918 (register_callback): Handle PLUGIN_START_UNIT.
12919 (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
12920
e0ca1cb5 129212009-06-29 Eric Botcazou <ebotcazou@adacore.com>
12922
12923 * tree.c (process_call_operands): Propagate TREE_READONLY from the
12924 operands.
12925 (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
12926 (build3_stat): Propagate TREE_READONLY for COND_EXPR.
12927
d6d765b4 129282009-06-29 Daniel Jacobowitz <dan@codesourcery.com>
12929
12930 * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
12931 move cost.
12932
70a23968 129332009-06-29 Uros Bizjak <ubizjak@gmail.com>
12934
12935 * doc/extend.texi (Additional Floating Types): __float128 is also
12936 supported on i386 targets.
12937
1c1f1bc0 129382009-06-29 Richard Guenther <rguenther@suse.de>
12939
12940 PR middle-end/14187
12941 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
12942 flag.
12943 (pt_solutions_same_restrict_base): Declare.
12944 * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
12945 flag.
12946 (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
12947 (make_constraint_from, make_copy_constraint): Move earlier.
12948 (make_constraint_from_heapvar): New function.
12949 (make_constraint_from_restrict): Likewise.
12950 (handle_lhs_call): Use it.
12951 (find_func_aliases): Use it to track conversions to restrict
12952 qualified pointers.
12953 (struct fieldoff): Add only_restrict_pointers flag.
12954 (push_fields_onto_fieldstack): Initialize it.
12955 (create_variable_info_for): Track global restrict qualified pointers.
12956 (intra_create_variable_infos): Use make_constraint_from_heapvar.
12957 Track restrict qualified pointer arguments.
12958 (set_uids_in_ptset): Use varinfo is_global_var flag.
12959 (find_what_var_points_to): Set the vars_contains_restrict flag.
12960 Always create the points-to solution for sets including restrict tags.
12961 (pt_solutions_same_restrict_base): New function.
12962 * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
12963 qualified pointers use pt_solutions_same_restrict_base as
12964 additional source for disambiguation.
12965
8115f0af 129662009-06-29 Richard Guenther <rguenther@suse.de>
12967
12968 PR middle-end/38212
12969 * alias.c (find_base_decl): Remove.
12970 (get_deref_alias_set_1): Remove restrict handling.
12971 * c-common.c (c_apply_type_quals_to_decl): Do not set
12972 DECL_POINTER_ALIAS_SET.
12973 * gimplify.c (find_single_pointer_decl_1): Remove.
12974 (find_single_pointer_decl): Likewise.
12975 (internal_get_tmp_var): Remove restrict handling.
12976 (gimple_regimplify_operands): Likewise.
12977 * omp-low.c (expand_omp_atomic_pipeline): Do not set
12978 DECL_POINTER_ALIAS_SET. Use ref-all pointers.
12979 * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
12980 * tree.c (restrict_base_for_decl): Remove.
12981 (init_ttree): Do not allocate it.
12982 (make_node_stat): Do not set DECL_POINTER_ALIAS_SET. Set
12983 LABEL_DECL_UID for label decls.
12984 (copy_node_stat): Do not copy restrict information.
12985 (decl_restrict_base_lookup): Remove.
12986 (decl_restrict_base_insert): Likewise.
12987 (print_restrict_base_statistics): Likewise.
12988 (dump_tree_statistics): Do not call print_restrict_base_statistics.
12989 * tree.h (DECL_POINTER_ALIAS_SET): Remove.
12990 (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
12991 (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
12992 (LABEL_DECL_UID): Adjust.
12993 (DECL_BASED_ON_RESTRICT_P): Remove.
12994 (DECL_GET_RESTRICT_BASE): Likewise.
12995 (SET_DECL_RESTRICT_BASE): Likewise.
12996 (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
12997
12998 * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
12999 instead of DECL_POINTER_ALIAS_SET.
13000 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
13001 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
13002 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
13003
a000e0d1 130042009-06-29 Richard Guenther <rguenther@suse.de>
13005
13006 PR tree-optimization/40579
13007 * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
13008 the IL to simplify has constants that overflowed.
13009
275b8285 130102009-06-28 Uros Bizjak <ubizjak@gmail.com>
13011
13012 PR tree-optimization/40550
13013 * tree-vect-generic.c (expand_vector_operations_1): Compute in
13014 vector_compute_type only when the size of vector_compute_type is
13015 less than the size of type.
13016
2ba5b763 130172009-06-28 Eric Botcazou <ebotcazou@adacore.com>
13018
13019 * fold-const.c (contains_label_1): Fix comments.
13020 (contains_label_p): Do not walk trees multiple time.
13021
e6a0a4a3 130222009-06-28 Paolo Bonzini <bonzini@gnu.org>
13023
70a23968 13024 * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
13025 * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
13026 cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
13027 ix86_fp_comparison_operator.
13028 (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
13029 *fp_jcc_2_sse, *fp_jcc_2_387): Delete
13030 (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
13031 *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
13032 !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
13033 to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
13034 (related splits): Change predicate to ix86_fp_comparison_operator.
13035 * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
13036 instead of ix86_fp_comparison_codes.
13037 (ix86_trivial_fp_comparison_operator,
13038 ix86_fp_comparison_operator): New.
13039 * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
13040 (ix86_expand_compare): Eliminate last two parameters.
13041 (ix86_fp_jump_nontrivial_p): Kill.
13042 * config/i386/i386.c (put_condition_code): Eliminate call to
13043 ix86_fp_comparison_codes and subsequent assertion.
13044 (ix86_fp_comparison_codes): Eliminate.
13045 (ix86_fp_swap_condition): New.
13046 (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
13047 ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
13048 into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
13049 (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
13050 and ix86_fp_swap_condition.
13051 (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
13052 Use ix86_fp_comparison_strategy.
13053 (ix86_expand_compare): Likewise. Eliminate last two arguments.
13054 (ix86_fp_jump_nontrivial_p): Eliminate.
13055 (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple. Adjust
13056 call to ix86_expand_compare.
13057 (ix86_split_fp_branch, ix86_expand_setcc,
13058 ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
13059 ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
e6a0a4a3 13060
b0694be0 130612009-06-28 Paolo Bonzini <bonzini@gnu.org>
13062
70a23968 13063 * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
13064 related to jump_clobbers.
13065 * config/arm/arm.md (conds): Remove jump_clob case.
13066 (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
13067 splits): Change comparison_operator to arm_comparison_operator.
13068 (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
13069 Eliminate.
b0694be0 13070
fb425e71 130712009-06-28 Paolo Bonzini <bonzini@gnu.org>
13072
70a23968 13073 * dojump.c (do_compare_rtx_and_jump): Try swapping the
13074 condition for floating point modes.
13075 * expmed.c (emit_store_flag_1): Move here a bigger part
13076 of emit_store_flag.
13077 (emit_store_flag): Try swapping the condition for floating point
13078 modes.
13079 * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
fb425e71 13080
80e1bfa1 130812009-06-28 Paolo Bonzini <bonzini@gnu.org>
13082
70a23968 13083 * expr.c (expand_expr_real_1): Just use do_store_flag.
13084 (do_store_flag): Drop support for TRUTH_NOT_EXPR. Use
13085 emit_store_flag_force.
13086 * expmed.c (emit_store_flag_force): Copy here trick
13087 previously in expand_expr_real_1. Try reversing the comparison.
13088 (emit_store_flag_1): Work if target is NULL.
13089 (emit_store_flag): Work if target is NULL, using the result mode
13090 from the comparison. Use split_comparison, restructure final part
13091 to simplify conditionals.
80e1bfa1 13092
3fcf767f 130932009-06-28 Paolo Bonzini <bonzini@gnu.org>
13094
70a23968 13095 * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
13096 * dojump.c (do_jump): Change handling of floating-point
13097 ops to use just do_compare_and_jump.
13098 (split_comparison): New.
13099 (do_compare_rtx_and_jump): Add here logic coming previously
13100 in do_jump, using split_comparison.
3fcf767f 13101
025781a4 131022009-06-27 H.J. Lu <hongjiu.lu@intel.com>
13103
13104 PR target/40489
13105 * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
13106
02c74b9b 131072009-06-27 Paolo Bonzini <bonzini@gnu.org>
13108
13109 * tree-ssa-alias.c: Fix unintentional commit.
13110
fa0ccb6b 131112009-06-27 Paolo Bonzini <bonzini@gnu.org>
13112
13113 * passes.c (execute_one_pass): Fix unintentional commit.
13114
44e66138 131152009-06-27 Paolo Bonzini <bonzini@gnu.org>
13116
025781a4 13117 * df-problems.c (df_set_seen, df_unset_seen): Delete.
13118 (df_rd_local_compute, df_md_local_compute): Inline them.
44e66138 13119
025781a4 13120 (df_md_scratch): New.
13121 (df_md_alloc, df_md_free): Allocate/free it.
13122 (df_md_local_compute): Only include live registers in init.
13123 (df_md_transfer_function): Prune the in-set computed by
13124 the confluence function, and the gen-set too.
44e66138 13125
131262009-06-27 Paolo Bonzini <bonzini@gnu.org>
2355a966 13127
13128 PR rtl-optimization/26854
025781a4 13129 * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
13130 * df-problems.c (df_rd_add_problem): Fix comment.
13131 (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
13132 df_md_simulate_artificial_defs_at_top,
13133 df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
13134 df_md_bb_local_compute, df_md_local_compute, df_md_reset,
13135 df_md_transfer_function, df_md_init, df_md_confluence_0,
13136 df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
13137 problem_MD, df_md_add_problem): New.
13138 * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
13139 df_md_get_bb_info): New.
275b8285 13140 (DF_LAST_PROBLEM_PLUS1): Adjust.
025781a4 13141
13142 * Makefile.in (fwprop.o): Include domwalk.h.
13143 * fwprop.c: Include domwalk.h.
13144 (reg_defs, reg_defs_stack): New.
13145 (bitmap_only_bit_between): Remove.
13146 (process_defs): New.
13147 (process_uses): Use reg_defs and local_md instead of
13148 bitmap_only_bit_between and local_rd.
13149 (single_def_use_enter_block): New, from build_single_def_use_links.
13150 (single_def_use_leave_block): New.
13151 (build_single_def_use_links): Remove code moved to
13152 single_def_use_enter_block, invoke domwalk.
13153 (use_killed_between): Adjust comment.
2355a966 13154
d7f2555b 131552009-06-27 Paolo Bonzini <bonzini@gnu.org>
13156
13157 * bitmap.h (bitmap_ior_and_into): New.
13158 * bitmap.c (bitmap_ior_and_into): New.
13159
6bf320fb 131602009-06-27 Paolo Bonzini <bonzini@gnu.org>
13161
025781a4 13162 * domwalk.h (struct dom_walk_data): Remove all callbacks except
13163 before_dom_children_before_stmts and after_dom_children_after_stmts.
f6c8c8fc 13164 Rename the two remaining callbacks to just before_dom_children and
025781a4 13165 after_dom_children. Remove other GIMPLE statement walking bits.
13166 * domwalk.c (walk_dominator_tree): Remove now unsupported features.
13167 * graphite.c: Do not include domwalk.h.
13168 * tree-into-ssa.c (interesting_blocks): New global.
13169 (struct mark_def_sites_global_data): Remove it and names_to_rename.
13170 (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
13171 rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
13172 now that they're not domwalk callbacks.
13173 (rewrite_initialize_block): Rename to...
13174 (rewrite_enter_block): ... this, place after called functions. Test
13175 interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
13176 (rewrite_finalize_block): Rename to...
13177 (rewrite_leave_block): ... this, place after called functions.
13178 (rewrite_update_init_block): Rename to...
13179 (rewrite_update_enter_block): ... this, place after called functions.
f6c8c8fc 13180 Test interesting_blocks, call rewrite_update_stmt and
025781a4 13181 rewrite_update_phi_arguments.
13182 (rewrite_update_fini_block): Rename to...
13183 (rewrite_leave_block): ... this, place after called functions.
13184 (rewrite_blocks): Remove last argument, simplify initialization of
13185 walk_data.
13186 (mark_def_sites_initialize_block): Rename to...
13187 (mark_def_sites_block): ... this, call mark_def_sites.
13188 (mark_def_sites_blocks): Remove argument, simplify initialization of
13189 walk_data.
13190 (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
13191 (update_ssa): Likewise.
13192 * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
13193 callback.
13194 (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
13195 (dom_opt_initialize_block): Rename to...
13196 (dom_opt_enter_block): ... this, place after called functions. Walk
13197 statements here, inline propagate_to_outgoing_edges.
13198 (dom_opt_finalize_block): Rename to...
13199 (dom_opt_leave_block): ... this, place after called functions.
13200 * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
13201 domwalk callback.
13202 (dse_enter_block, dse_record_phi): New.
13203 (dse_record_phis): Delete.
13204 (dse_finalize_block): Rename to...
13205 (dse_leave_block): ... this.
13206 (tree_ssa_dse): Simplify initialization of walk_data.
13207 * tree-ssa-loop-im.c (determine_invariantness, move_computations):
13208 Adjust initialization of walk_data.
13209 * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
13210 * tree-ssa-loop-phiopt.c (get_non_trapping):
13211 Adjust initialization of walk_data.
13212 * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
13213 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
13214 it's not a domwalk callback.
13215 (uncprop_initialize_block): Rename to...
13216 (dse_enter_block): ... this, call uncprop_into_successor_phis.
13217 (dse_finalize_block): Rename to...
13218 (dse_leave_block): ... this.
13219 (tree_ssa_uncprop): Simplify initialization of walk_data.
13220 * Makefile.in: Adjust dependencies.
6bf320fb 13221
3db2019b 132222009-06-27 Richard Earnshaw <rearnsha@arm.com>
13223
13224 * arm.md (casesi): Fix test for Thumb1.
13225 (thumb1_casesi_internal_pic): Likewise.
13226 (thumb1_casesi_dispatch): Likewise.
13227
d7b91299 132282009-06-26 Daniel Gutson <dgutson@codesourcery.com>
13229
13230 * config/arm/arm-cores.def: Added core cortex-m0.
13231 * config/arm/arm-tune.md: Regenerated.
13232 * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
13233
1f2d41ad 132342009-06-26 DJ Delorie <dj@redhat.com>
13235
13236 * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
13237
13238 * config/mep/mep.c (mep_bundle_insns): Account for the fact that
13239 the scheduler doesn't tag jump insns.
13240
da870dac 132412009-06-26 H.J. Lu <hongjiu.lu@intel.com>
13242
13243 * c-decl.c (merge_decls): Re-indent.
13244
fcd5ffce 132452009-06-26 Janis Johnson <janis187@us.ibm.com>
13246
13247 PR c/39902
13248 * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
13249 Special-case decimal float constants.
13250
d747fdfb 132512009-06-26 Richard Henderson <rth@redhat.com>
13252
13253 * function.h (struct function): Add cannot_be_copied_reason,
13254 and cannot_be_copied_set.
13255 * tree-inline.c (has_label_address_in_static_1): Rename from
13256 inline_forbidden_p_2; don't set inline_forbidden_reason here.
13257 (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
13258 don't set inline_forbidden_reason.
13259 (copy_forbidden): New function, split out of inline_forbidden_p.
13260 (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
13261 (inline_forbidden_p): Use copy_forbidden.
13262 (tree_versionable_function_p): Likewise.
13263 (inlinable_function_p): Merge into tree_inlinable_function_p.
13264 (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
13265 * ipa-cp.c (ipcp_versionable_function_p): New function.
13266 (ipcp_cloning_candidate_p): Use it.
13267 (ipcp_node_modifiable_p): Likewise.
13268
f9fa0459 132692009-06-26 Olatunji Ruwase <tjruwase@google.com>
13270
13271 * builtins.c (expand_builtin_alloca): Handle builtin alloca
13272 that is marked not to be inlined. Remove flag_mudflap use.
13273 * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
13274 (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
13275
9d4aeda2 132762009-06-26 Steve Ellcey <sje@cup.hp.com>
13277
13278 PR bootstrap/40338
13279 * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
13280 * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
13281
5ab8d1bf 132822009-06-26 Kai Tietz <kai.tietz@onevision.com>
13283
13284 * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
13285 shared libgcc.
13286 (__mingwthr_remove_key_dtor): Likewise.
13287
636df1b1 132882009-06-26 Richard Guenther <rguenther@suse.de>
13289
275b8285 13290 * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
636df1b1 13291
a27f5985 132922009-06-26 Steven Bosscher <steven@gcc.gnu.org>
13293
13294 PR middle-end/40525
13295 * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
13296 try the non-cond_exec path also.
13297
317754f4 132982009-06-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13299
13300 PR target/40468
13301 * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
13302 (output_cbranch): Use new functions.
13303 (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
13304 Likewise.
13305
6ff33500 133062009-06-25 Michael Meissner <meissner@linux.vnet.ibm.com>
13307 Pat Haugen <pthaugen@us.ibm.com>
13308 Revital Eres <ERES@il.ibm.com>
13309
56df51d8 13310 * config/rs6000/rs6000.c (print_operand): Correct lossage message
13311 for %c error. Add %x support to print VSX registers as a unified
13312 register set, instead of separate float and altivec registers.
13313 Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
13314 %y case, and add support for VSX pre-modify addresses.
13315 (output_toc): Add assert for CONST containing an integer constant
13316 in the PLUS case.
13317 (rs6000_adjust_cost): Add POWER7 support.
13318 (insn_must_be_first_in_group): Ditto.
13319 (insn_must_be_last_in_group): Ditto.
13320 (rs6000_emit_popcount): Ditto.
13321 (rs6000_vector_mode_supported_p): Ditto.
13322
6ff33500 13323 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
13324 Change some of the functions called by macros to being called
13325 through a pointer, so debug functions can be inserted if
f6c8c8fc 13326 -mdebug=addr or -mdebug=cost.
6ff33500 13327 (rs6000_preferred_reload_class_ptr): Ditto.
13328 (rs6000_secondary_reload_class_ptr): Ditto.
13329 (rs6000_secondary_memory_needed_ptr): Ditto.
13330 (rs6000_cannot_change_mode_class_ptr): Ditto.
13331 (rs6000_secondary_reload_inner): Ditto.
13332 (rs6000_legitimize_reload_address): Ditto.
13333 (rs6000_legitimize_reload_address_ptr): Ditto.
13334 (rs6000_mode_dependent_address): Ditto.
13335 (rs6000_mode_dependent_address_ptr): Ditto.
13336
13337 * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
13338 function to return true if the mode allows reg + integer
13339 addresses.
13340 (virtual_stack_registers_memory_p): New function to return true if
13341 the address refers to a virtual stack register.
13342 (rs6000_legitimate_offset_address_p): Move code to say whether a
13343 mode supports reg+int addressing to reg_offset_addressing_ok_p and
13344 call it.
13345 (rs6000_legitimate_address_p): Add checks for modes that only can
13346 do reg+reg addressing. Start adding VSX support.
13347 (rs6000_legitimize_reload_address): Ditto.
13348 (rs6000_legitimize_address): Ditto.
13349 (rs6000_debug_legitimate_address_p): New debug functions for
13350 -mdebug=addr and -mdebug=cost.
13351 (rs6000_debug_rtx_costs): Ditto.
13352 (rs6000_debug_address_costs): Ditto.
13353 (rs6000_debug_adjust_cost): Ditto.
13354 (rs6000_debug_legitimize_address): Ditto.
13355 (rs6000_legitimize_reload_address_ptr): Point to call normal
13356 function or debug function. Make functions called via pointer
13357 static.
13358 (rs6000_mode_dependent_address_ptr): Ditto.
13359 (rs6000_secondary_reload_class_ptr): Ditto.
13360 (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
13361 (rs6000_emit_move): Add -mdebug=addr support. Change an abort
13362 into a friendlier error.
13363 (rs6000_init_builtins): Add initial VSX support.
13364 (rs6000_adjust_cost): Fix some spacing issues.
13365
13366 * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
13367 (REG_CLASS_NAMES): Ditto.
13368 (REG_CLASS_CONTENTS): Ditto.
13369 (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
13370 pointer, to add -mdebug=addr support.
13371 (CANNOT_CHANGE_MODE_CLASS): Ditto.
13372 (SECONDARY_RELOAD_CLASS): Call through a pointer to add
13373 -mdebug=addr support.
13374 (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
13375 (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
13376 (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
13377
13378 * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
13379 16-bit values.
13380 (bswapsi*): Set attribute types for load/store. Add combiner
13381 patterns to eliminate zero extend on 64-bit.
13382 (bswapdi*): Add support for swapping 64-bit values. Use ldbrx and
13383 stdbrx if the hardware supports those instructions.
13384
0f32121e 133852009-06-25 Ian Lance Taylor <iant@google.com>
13386
13387 * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
13388 (Link Options): Document -static-libstdc++.
13389
5260b939 133902009-06-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
13391
13392 PR target/38731
13393 * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
13394 DATA_ALIGNMENT instead.
13395
917f08fa 133962009-06-25 Richard Guenther <rguenther@suse.de>
13397
13398 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
13399 indirect references against the callused/escaped solutions.
13400 (call_may_clobber_ref_p_1): Likewise.
13401
eaadb0b5 134022009-06-25 Martin Jambor <mjambor@suse.cz>
13403
13404 PR tree-optimization/40493
13405 * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
13406 (enum unscalarized_data_handling): New type.
13407 (handle_unscalarized_data_in_subtree): Return what has been done.
13408 (load_assign_lhs_subreplacements): Handle left flushes differently.
13409 (sra_modify_assign): Use unscalarized_data_handling, simplified
13410 condition determining whether to remove the statement.
13411
f5494808 134122009-06-25 Basile Starynkevitch <basile@starynkevitch.net>
f26f4496 13413
13414 * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
13415 excerpt - @ should be doubled for texinfo.
f5494808 13416
ef51d1e3 134172009-06-24 Ian Lance Taylor <iant@google.com>
13418
13419 * config/arc/arc.c: Include "df.h".
13420 (arc_attribute_table): Make static. Move higher in file.
13421 (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
13422 (output_shift): Initialize n later to avoid warning.
13423 * config/arm/arm.c (arm_attribute_table): Make static. Move
13424 higher in file.
13425 * config/avr/avr.c (avr_attribute_table): Make static. Move
13426 higher in file.
13427 (reg_class_tab): Change array type from int to enum reg_class.
13428 (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
13429 LABEL_REF.
13430 (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
13431 (lshrhi3_out): Likewise.
13432 (class_likely_spilled_p): Change return type to bool.
13433 (avr_rtx_costs): Use local code variable with enum type.
13434 * config/avr/avr.md (movmemhi): Use add_reg_note.
13435 (andhi3, andsi3): Don't use AS2 with "and".
13436 (iorhi3, iorsi3): Don't use AS2 with "or".
275b8285 13437 * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
ef51d1e3 13438 * config/crx/crx.c: Include "df.h".
13439 (crx_attribute_table): Make static.
13440 * config/m32r/m32r.c: Include "df.h".
13441 (m32r_attribute_table): Make static. Move higher in file.
13442 (pop): Use add_reg_note.
13443 (block_move_call): Change 0 to LCT_NORMAL in function call.
13444 * config/m32r/m32r.md (movsi_insn): Remove unused local value.
13445 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
13446 * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
13447 declare, not just when TREE_CODE is defined.
13448 * config/m68hc11/m68hc11.c: Include "expr.h".
13449 (m68hc11_attribute_table): Make static. Move higher in file.
13450 (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
13451 function call.
13452 (m68hc11_register_indirect_p): Likewise.
13453 (m68hc11_function_arg_padding): Change return type to enum
13454 direction.
13455 (emit_move_after_reload): Use add_reg_note.
13456 (m68hc11_emit_logical): Change code parameter to enum rtx_code.
13457 (m68hc11_split_logical): Likewise.
13458 (m68hc11_rtx_costs): Add local code_and outer_code variables with
13459 enum type.
13460 * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
13461 to VOIDmode in function call.
13462 * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
13463 tree is defined.
13464 (m68hc11_split_logical): Update declaration.
13465 (m68hc11_function_arg_padding): Update declaration.
13466 * config/mcore/mcore.c (regno_reg_class): Change form array of int
13467 to array of enum reg_class.
13468 (mcore_attribute_table): Make static. Move higher in file.
13469 (mcore_rtx_costs): Add cast to enum type.
13470 * config/mcore/mcore.h (regno_reg_class): Update declaration.
13471 (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
13472 * config/sh/sh.c (sh_attribute_table): Make static. Move higher
13473 in file.
13474 * config/sh/predicates.md (trapping_target_operand): Rename and to
13475 and_expr.
13476 * config/sparc/sparc.c (sparc_attribute_table): Make static. Move
13477 higher in file.
13478 * config/spu/spu.c (spu_attribute_table): Make static. Move
13479 higher in file.
13480 * config/v850/v850.c (v850_attribute_table): Make static. Move
13481 higher in file.
13482 (v850_rtx_costs): Use local code with enum type.
13483 (expand_epilogue): Add cast.
13484 * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
13485
5b9c0169 134862009-06-23 Takashi YOSHII <yoshii.takashi@renesas.com>
13487
13488 PR target/40515
13489 * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
13490 -m2a-single-only and -m2a-nofpu.
f6c8c8fc 13491 * config/sh/sh.opt: Document m2a generates FPU code.
5b9c0169 13492
0e841940 134932009-06-24 Anatoly Sokolov <aesok@post.ru>
13494
13495 * defaults.h (CAN_ELIMINATE): Provide default.
13496 * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
13497 * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
13498 * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
13499 * config/spu/spu.h (CAN_ELIMINATE): Delete.
13500 * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
13501 * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
13502 * config/cris/cris.h (CAN_ELIMINATE): Delete.
13503 * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
13504 * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
13505 * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
13506
a239165a 135072009-06-24 DJ Delorie <dj@redhat.com>
13508
13509 * mep-ext-cop.cpu: Fix copyright notice.
13510 * mep-default: Fix copyright notice.
13511 * mep-core: Fix copyright notice.
13512 * mep: Fix copyright notice.
13513 * mep-ivc2: Fix copyright notice.
13514 * mep-c5: Fix copyright notice.
13515
c86a70e3 135162009-06-24 Denis Chertykov <chertykov@gmail.com>
13517
f6c8c8fc 13518 * doc/contrib.texi (Contributors):
c86a70e3 13519
0af25806 135202009-06-24 Andreas Krebbel <krebbel1@de.ibm.com>
f6c8c8fc 13521
0af25806 13522 PR middle-end/40501
13523 * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
13524 src and dst operands if necessary.
13525
46222c18 135262009-06-23 DJ Delorie <dj@redhat.com>
13527
13528 Add MeP port.
13529 * config.gcc: Add mep support.
13530 * recog.c: Resurrect validate_replace_rtx_subexp().
13531 * recog.h: Likewise.
13532 * config/mep/: Add new port:
13533 * config/mep/constraints.md: New file.
13534 * config/mep/default.h: New file.
13535 * config/mep/intrinsics.h: New file.
13536 * config/mep/intrinsics.md: New file.
13537 * config/mep/ivc2-template.h: New file.
13538 * config/mep/mep-c5.cpu: New file.
13539 * config/mep/mep-core.cpu: New file.
13540 * config/mep/mep-default.cpu: New file.
13541 * config/mep/mep-ext-cop.cpu: New file.
13542 * config/mep/mep-intrin.h: New file.
13543 * config/mep/mep-ivc2.cpu: New file.
13544 * config/mep/mep-lib1.asm: New file.
13545 * config/mep/mep-lib2.c: New file.
13546 * config/mep/mep-pragma.c: New file.
13547 * config/mep/mep-protos.h: New file.
13548 * config/mep/mep-tramp.c: New file.
13549 * config/mep/mep.c: New file.
13550 * config/mep/mep.cpu: New file.
13551 * config/mep/mep.h: New file.
13552 * config/mep/mep.md: New file.
13553 * config/mep/mep.opt: New file.
13554 * config/mep/predicates.md: New file.
13555 * config/mep/t-mep: New file.
13556
7ab76cec 135572009-06-23 Ian Lance Taylor <iant@google.com>
13558
13559 * configure.ac: Invoke AC_PROG_CXX. Separate C specific warnings
13560 from loose_warn into c_loose_warn and from strict_warn into
13561 c_strict_warn. Set and substitute warn_cxxflags. Check for
13562 --enable-build-with-cxx. Set and substitute
13563 ENABLE_BUILD_WITH_CXX. Set and substitute HOST_LIBS.
13564 * Makefile.in (CXXFLAGS): New variable.
13565 (C_LOOSE_WARN, C_STRICT_WARN): New variables.
13566 (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN). Add $(C_STRICT_WARN) if
13567 the default is the same as $(STRICT_WARN).
13568 (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
13569 (CXX): New variable.
13570 (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
13571 (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
13572 (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
13573 (HOST_LIBS): New variable.
13574 (GCC_CFLAGS): Add $(C_LOOSE_WARN).
13575 (ALL_CXXFLAGS): New variable.
13576 (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
13577 * doc/install.texi (Configuration): Document
13578 --enable-build-with-cxx, --with-stage1-ldflags,
13579 --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
13580 * configure: Rebuild.
13581
f3a8f217 135822009-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
cb41fde2 13583
f3a8f217 13584 * config/arm/arm.c (arm_override_options): Fix braces and formatting
13585 from previous commit.
cb41fde2 13586
988e7f78 135872009-06-23 Ian Lance Taylor <iant@google.com>
13588
13589 * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
13590
6577bf6b 135912009-06-23 Ian Lance Taylor <iant@google.com>
13592
13593 * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
13594 with ATTRIBUTE_UNUSED.
13595
9c878e1b 135962009-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
13597 Pat Haugen <pthaugen@us.ibm.com>
f3a8f217 13598 Revital Eres <eres@il.ibm.com>
9c878e1b 13599
13600 * config.in (HAVE_AS_POPCNTD): Add default definition.
13601 (HAVE_AS_LWSYNC): Ditto.
13602
13603 * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
13604 release number.
13605 (gcc_cv_as_powerpc_cmpb): Ditto.
13606 (gcc_cv_as_powerpc_dfp): Ditto.
13607 (gcc_cv_as_powerpc_vsx): Ditto.
13608 (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
13609 supporting the popcntd/lwsync instructions.
13610 (gcc_cv_as_powerpc_lwsync): Ditto.
13611 * configure: Regenerate.
13612
13613 * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
13614 -mcpu=native and -mcpu=power7.
13615 * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
13616
13617 * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
13618 a variable instead of a mask to reduce the number of mask bits.
13619 * config/rs6000/sysv4.opt (-mbit-align): Ditto.
13620 (-mbit-word): Ditto.
13621 (-mregnames): Ditto.
13622 * config/rs6000/rs6000.opt (-mupdate): Ditto.
13623 (-mfused-madd): Ditto.
13624
13625 * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
13626 2.06 instructions.
13627 (-mvsx): New switch for VSX instructions.
13628 (-misel): Move from a variable to a mask to allow it to be set by
13629 -mcpu=.
13630
13631 * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
13632 function declaration to an array declaration.
13633 (rs6000_hard_regno_nregs): New external array declaration.
13634
13635 * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
13636 files included by rs6000.md.
13637
13638 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
13639 SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
13640
13641 * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
13642 a target mask.
13643 (rs6000_debug_reg): New -mdebug= variables.
13644 (rs6000_debug_addr): Ditto.
13645 (rs6000_debug_cost): Ditto.
13646 (rs6000_pmode): New variable to hold Pmode.
13647 (rs6000_pointer_size): New variable to hold POINTER_SIZE.
13648 (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
13649 calculated at compiler start.
13650 (rs6000_hard_regno_nregs): Change function to an array which holds
13651 HARD_REGNO_NREGS calculated at compiler start.
13652 (rs6000_explicit_options): Delete isel field.
13653 (rs6000_vector_unit): New array to hold which vector unit
13654 supports arithmetic options for a given type.
13655 (rs6000_vector_mem): New array to hold which vector unit supports
13656 memory reference operations for a given type.
13657 (rs6000_vector_align): New array to given the alignment of each
13658 vector type.
13659 (power7_cost): New basic costs for power7.
13660 (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
13661 (rs6000_hard_regno_nregs_internal): New function, moved from
13662 HARD_REGNO_NREGS, to calculate the number of registers each hard
13663 register takes for each type.
13664 (rs6000_debug_reg_print): New function for -mdebug=reg support.
275b8285 13665 (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
9c878e1b 13666 (+rs6000_init_hard_regno_mode_ok): New function, move calculation
13667 of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
13668 unit information here so it is calculated once at compiler startup
13669 time.
13670 (rs6000_override_options): Make -misel a target mask. Add more
13671 power7 target masks. Setup Pmode and POINTER_SIZE. Add initial
13672 VSX support. Add support for -mdebug=reg, -mdebug=addr, and
13673 -mdebug=cost.
13674 (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
13675 (rs6000_handle_option): Move -misel from variable to target mask.
13676 (rs6000_builtin_mask_for_load): Add VSX support.
13677 (rs6000_conditional_register_usage): Ditto.
13678 (USE_ALTIVEC_FOR_ARG_P): Ditto.
13679 (function_arg_boundary): Ditto.
13680 (rs6000_expand_builtin): Ditto.
13681 (def_builtin): Make abort message a little friendlier.
13682 (rs6000_emit_int_cmove): Add support for 64-bit isel.
13683
13684 * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
13685 assembler support the popcntd instruction instead of a vsx
13686 instruction to enable power7 support.
13687 (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
13688 (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
13689 option to the assembler if -mcpu=native.
13690 (ASM_CPU_NATIVE_SPEC): Ditto.
13691 (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
13692 ISA 2.06 features.
13693 (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
13694 the lwsync instruction.
13695 (enum processor_type): Add PROCESSOR_POWER7.
13696 (rs6000_debug_reg): New -mdebug= options.
13697 (rs6000_debug_addr): Ditto.
13698 (rs6000_debug_cost): Ditto.
13699 (rs6000_isel): Delete.
13700 (enum rs6000_vector): New enum to say what vector unit we have.
13701 (VECTOR_UNIT_*): New macros to say which vector unit has
13702 arithmetic operations for a given type.
13703 (VECTOR_MEM_*): New macros to say which vector unit has memory
13704 operations for a given type.
13705 (TARGET_LDBRX): Whether the machine supports the ldbrx
13706 instruction.
13707 (TARGET_ISEL): Delete, -misel moved to be a mask.
13708 (TARGET_ISEL64): New macro for 64-bit isel support.
13709 (UNITS_PER_VSX_WORD): New macro.
13710 (POINTER_SIZE): Move to be an external variable, rather than
13711 calculating whether we are generating 32 ot 64-bit code.
13712 (Pmode): Ditto.
13713 (STACK_BOUNDARY): Add VSX support.
13714 (LOCAL_ALIGNMENT): Ditto.
13715 (SLOW_UNALIGNED_ACCESS): Ditto.
13716 (VSX_REGNO_P): New macro for VSX support.
13717 (VFLOAT_REGNO_P): Ditto.
13718 (VINT_REGNO_P): Ditto.
13719 (VLOGICAL_REGNO_P): Ditto.
13720 (VSX_VECTOR_MODE): Ditto.
13721 (VSX_SCALAR_MODE): Ditto.
13722 (VSX_MODE): Ditto.
13723 (VSX_MOVE_MODE): Ditto.
13724 (VSX_REG_CLASS_P): Ditto.
13725 (HARD_REGNO_NREGS): Instead of calling a function, use an array
13726 lookup.
13727 (UNITS_PER_SIMD_WORD): Add VSX support.
13728 (MODES_TIEABLE_P): Ditto.
13729 (STARTING_FRAME_OFFSET): Ditto.
13730 (STACK_DYNAMIC_OFFSET): Ditto.
13731 (EPILOGUE_USES): Ditto.
13732 (REGNO_REG_CLASS): Move to array lookup.
13733 (CLASS_MAX_NREGS): Ditto.
13734 (rs6000_vector_reg_class): Add declaration.
13735 (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
13736 overlap with the floating point and Altivec registers.
13737
13738 * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
13739
13740 * config/rs6000/driver-rs6000.c (asm_names): New static array to
13741 give the appropriate asm switches if -mcpu=native.
13742 (host_detect_local_cpu): Add support for "asm".
13743 (host_detect_local_cpu): Follow GNU code guidelines for name.
13744
13745 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
13746 -mbit-word to a variable instead of being a target mask.
13747
13748 * config/rs6000/sync.md (lwsync): If the assembler supports it,
13749 emit the lwsync instruction instead of emitting the instruction as
13750 an integer constant.
13751
13752 * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
13753 fixuns_trundfsi2, move expander into rs6000.md.
13754
13755 * config/rs6000/rs6000.md (cpu): Add power7.
13756 (sel, *ptrsize): New mode attributes for 32/64-bit isel.
13757 (logical predicate patterns): Change the single instruction
13758 primitives that set CR0 to be fast_compare instead of compare.
13759 (norsi*): Ditto.
13760 (popcntwsi2): Add support for ISA 2.06 popcount instructions.
13761 (popcntddi2): Ditto.
13762 (popcount<mode>): Ditto.
13763 (floating multiply/add insns): Name the floating point
13764 multiply/add insns.
13765 (isel_signed_<mode>): Add support for -misel on 64-bit systems.
13766 (isel_unsigned_<mode>): Ditto.
13767 (fixuns_trundfsi2): Move expander here from spe.md.
13768 (smindi3): Define if we have -misel on 64-bit systems.
13769 (smaxdi3): Ditto.
13770 (umindi3): Ditto.
13771 (umaxdi3): Ditto.
13772
795cff42 137732009-06-23 Anatoly Sokolov <aesok@post.ru>
13774
13775 * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
13776 extra_objs.
13777 * config/avr/avr.c (avr_current_device): New variable.
13778 (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
13779 (avr_arch, mcu_type_s): Move to avr.h.
13780 * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
13781 default_data_section_start fields.
13782 (avr_arch): Moved from avr.c.
13783 (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
13784 library_name fields.
13785 (avr_current_device, avr_mcu_types, avr_arch_types,
13786 avr_device_to_arch, avr_device_to_data_start,
13787 avr_device_to_startfiles, avr_device_to_devicelib): Declare.
13788 (EXTRA_SPEC_FUNCTIONS): Define.
13789 (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
13790 options mapping. Use device_to_arch and device_to_data_start insted.
13791 (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
13792 (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
13793 * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
13794 * config/avr/driver-avr.c: New file.
13795 * config/avr/avr-devices.c: New file.
13796
5dc67ab1 137972009-06-23 Jakub Jelinek <jakub@redhat.com>
13798
331cf53a 13799 * var-tracking.c (unshare_variable): Force initialized to
13800 be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
13801 (set_variable_part): Likewise.
13802 (struct variable_union_info): Remove pos_src field.
13803 (vui_vec, vui_allocated): New variables.
13804 (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
13805 unconditionally. Avoid XCVECNEW/free for every sorting, for dst_l
13806 == 1 use a simpler sorting algorithm. Compute pos field right
13807 away, don't fill in pos_src. For dst_l == 2 avoid qsort.
13808 Avoid quadratic comparison if !flag_var_tracking_uninit.
13809 (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
f6c8c8fc 13810 unshare_variable unconditionally.
331cf53a 13811 (dataflow_set_different_2): Removed.
13812 (dataflow_set_different): Don't traverse second hash table.
13813 (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
13814 unconditionally to var_reg_set or var_mem_set.
13815 (emit_notes_in_bb): Likewise.
13816 (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
13817 unshare_variable.
13818 (emit_note_insn_var_location): Don't set initialized to
13819 VAR_INIT_STATUS_INITIALIZED early.
13820 (vt_finalize): Free vui_vec if needed, clear vui_vec and
13821 vui_allocated.
13822 * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
13823
5dc67ab1 13824 * tree-object-size.c (addr_object_size): Instead of checking
13825 for non-NULL TREE_CHAIN of the FIELD_DECL check that there
13826 are no FIELD_DECLs following it.
13827
9bc1852a 138282009-06-23 Andreas Krebbel <krebbel1@de.ibm.com>
13829
13830 * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
13831 order to match bswaps with signed source operands.
13832
20167aff 138332009-06-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13834
13835 * sdbout.c (sdbout_one_type): Fix braces in switch.
13836
97709d23 138372009-06-23 Richard Guenther <rguenther@suse.de>
13838
13839 * tree-ssa-structalias.c (struct variable_info): Add is_global_var
13840 member.
13841 (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
13842 readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
13843 var_callused, callused_tree, var_storedanything, storedanything_tree,
13844 var_integer, integer_tree): Remove global variables.
13845 (new_var_info): Do not pass new id, append the new var to the
13846 global variable vector.
13847 (do_ds_constraint): Use is_global_var member of the variable-info.
13848 (new_scalar_tmp_constraint_exp): Adjust.
13849 (create_function_info_for): Likewise.
13850 (create_variable_info_for): Likewise.
13851 (find_what_var_points_to): Remove dead code.
13852 (init_base_vars): Simplify.
13853 (compute_points_to_sets): Adjust.
13854
731d1ca3 138552009-06-22 Adam Nemet <anemet@caviumnetworks.com>
13856
13857 * combine.c (try_combine): Dump information about the insns we're
13858 combining.
13859
af1b1eb5 138602009-06-22 Adam Nemet <anemet@caviumnetworks.com>
13861
13862 * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
13863 check when calling force_to_mode on TRUNCATE's operand.
13864
d6cf890d 138652009-06-22 Ian Lance Taylor <iant@google.com>
13866
70a23968 13867 * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
d6cf890d 13868
02cfc9c9 138692009-06-22 Steven Bosscher <steven@gcc.gnu.org>
13870
13871 * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
13872
9ffe1a0b 138732009-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13874
13875 * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
13876 override library linkage flags such as -static-libgcc or
13877 -shared-libgcc.
13878
c74a692b 138792009-06-22 Maxim Kuvyrkov <maxim@codesourcery.com>
13880
13881 * config/m68k/m68k-devices.def: Add line for MCF5221x.
13882
b91bd472 138832009-06-22 Ian Lance Taylor <iant@google.com>
13884
13885 * config/linux.opt: Put mglibc ahead of muclibc.
13886
13887 * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
13888 for duplicate decls.
13889
19b30c2a 138902009-06-22 Matthias Klose <doko@ubuntu.com>
13891
13892 * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
13893
61a9d3ca 138942009-06-22 Steven Bosscher <steven@gcc.gnu.org>
13895
13896 PR objc/28050
13897 * c-parser.c (c_parser_objc_message_args): Return error_mark_node
13898 instead of NULL if a parser error occurs.
13899
d87ccabd 139002009-06-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13901
13902 * dwarf2out.c (dwarf2_debug_hooks): Initialize
13903 non-DWARF2_DEBUGGING_INFO version.
13904
13dc7657 139052009-06-22 Kai Tietz <kai.tietz@onevision.com>
13906
82a3cc73 13907 * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
13908 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
13909
13910 * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
13dc7657 13911 (LIBGCC2_TF_CEXT): Define.
13912 (TF_SIZE): Define.
13913
e8bd8f68 139142009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13915
13916 PR target/40463
13917 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
13918
06e0f8b2 139192009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13920
82a3cc73 13921 * config/arm/arm.c (arm_override_options): Disable
13922 -mcaller-super-interworking and -mcallee-super-interworking.
13923 * doc/invoke.texi (ARM Options): Document this.
06e0f8b2 13924
110eae03 139252009-06-22 Nathan Sidwell <nathan@codesourcery.com>
13926
13927 * config/arm/arm.c (arm_print_operand): Deal with HIGH.
13928 * config/arm/constraints.md (j): New constraint for movw operands.
13929 (N): Remove thumb2 meaning.
13930 * config/arm/arm.md (*arm_movw): Delete.
13931 (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
13932 * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
13933 * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
13934
ec91c4af 139352009-06-22 Martin Jambor <mjambor@suse.cz>
13936
13937 PR tree-optimization/40492
13938 * tree-sra.c (sra_modify_assign): Pass zero offsets to
13939 build_ref_for_offset.
13940
971ba038 139412009-06-22 Shujing Zhao <pearly.zhao@oracle.com>
13942
13943 * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
13944 JUMP_TABLE_DATA_P predicates where applicable.
13945 * auto-inc-dec.c: Ditto.
13946 * builtins.c: Ditto.
13947 * caller-save.c: Ditto.
13948 * calls.c: Ditto.
13949 * cfgcleanup.c: Ditto.
13950 * cfglayout.c: Ditto.
13951 * cfgrtl.c: Ditto.
13952 * combine.c: Ditto.
13953 * combine-stack-adj.c: Ditto.
13954 * cse.c: Ditto.
13955 * cselib.c: Ditto.
13956 * dbxout.c: Ditto.
13957 * df-scan.c: Ditto.
13958 * dse.c: Ditto.
13959 * dwarf2asm.c: Ditto.
13960 * dwarf2out.c: Ditto.
13961 * emit-rtl.c: Ditto.
13962 * except.c: Ditto.
13963 * explow.c: Ditto.
13964 * expmed.c: Ditto.
13965 * expr.c: Ditto.
13966 * final.c: Ditto.
13967 * function.c: Ditto.
13968 * fwprop.c: Ditto.
13969 * gcse.c: Ditto.
13970 * genpreds.c: Ditto.
13971 * genrecog.c: Ditto.
13972 * ifcvt.c: Ditto.
13973 * ira-costs.c: Ditto.
13974 * ira-lives.c: Ditto.
13975 * jump.c: Ditto.
13976 * loop-iv.c: Ditto.
13977 * lower-subreg.c: Ditto.
13978 * modulo-sched.c: Ditto.
13979 * optabs.c: Ditto.
13980 * postreload.c: Ditto.
13981 * print-rtl.c: Ditto.
13982 * recog.c: Ditto.
13983 * reginfo.c: Ditto.
13984 * regmove.c: Ditto.
13985 * reload1.c: Ditto.
13986 * reload.c: Ditto.
13987 * reorg.c: Ditto.
13988 * rtlanal.c: Ditto.
13989 * rtl.c: Ditto.
13990 * sched-vis.c: Ditto.
13991 * sdbout.c: Ditto.
13992 * sel-sched-ir.c: Ditto.
13993 * simplify-rtx.c: Ditto.
13994 * targhooks.c: Ditto.
13995 * var-tracking.c: Ditto.
13996 * vmsdbgout.c: Ditto.
13997
74f3a0fa 139982009-06-22 Matthias Klose <doko@ubuntu.com>
13999
14000 * Makefile.in (install-plugin): Always use DESTDIR.
14001
1b448af3 140022009-06-22 Olivier Hainque <hainque@adacore.com>
f6c8c8fc 14003
1b448af3 14004 * config/pa/pa.c (output_call): Don't optimize post call jumps
14005 into return address adjustments if the call may throw.
14006
e6ac8414 140072009-06-21 Richard Earnshaw <rearnsha@arm.com>
14008
14009 * arm.c (thumb1_output_casesi): New function.
14010 * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
14011 optimizing for size or PIC.
14012 (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
14013 * arm.md (UNSPEC_THUMB1_CASESI): New constant.
14014 (casesi): Handle Thumb-1 when optimizing for size or PIC.
14015 (thumb1_casesi_internal_pic): New expand rule.
14016 (thumb1_casesi_dispatch): New pattern.
14017 * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
14018 thumb-1 mode.
14019 * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
14020 in the text seciton when PIC or optimizing for size.
14021 * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
14022 * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
14023 preservation properties of code.
14024 (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
14025 (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
14026 (__gnu_thumb1_case_si): New function.
14027 * t-arm (LIB1ASMSRC): Define here.
14028 (LIB1ASMFUNCS): Add some common functions.
14029 * t-arm-elf (LIB1ASMSRC): Delete.
14030 (LIB1ASMFUNCS): Append to existing set.
14031 * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
14032 * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
14033 * t-symbian (LIB1ASMFUNCS): Likewise.
14034 * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
14035 * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
14036
a974c7bc 140372009-06-21 Richard Guenther <rguenther@suse.de>
14038
14039 PR tree-optimization/38729
14040 * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
14041 to loops with a single exit if -fno-expensive-optimizations.
14042
a8f6ad2b 140432009-06-21 Jakub Jelinek <jakub@redhat.com>
14044
14045 * var-tracking.c (struct shared_hash_def, shared_hash): New types.
14046 (dataflow_set): Change vars type from htab_t to shared_hash.
14047 (shared_hash_pool, empty_shared_hash): New variables.
14048 (vars_clear): Removed.
14049 (shared_hash_shared, shared_hash_htab, shared_hash_copy,
14050 shared_hash_find_slot_unshare, shared_hash_find_slot,
14051 shared_hash_find_slot_noinsert, shared_hash_find): New
14052 static inlines.
14053 (shared_hash_unshare, shared_hash_destroy): New functions.
14054 (unshare_variable): Unshare set->vars if shared, use
14055 shared_hash_htab.
14056 (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
14057 (get_init_value, find_src_set_src, dump_dataflow_set,
14058 clobber_variable_part, emit_notes_for_differences): Use
14059 shared_hash_htab.
14060 (dataflow_set_init): Remove second argument, set vars to
14061 empty_shared_hash instead of creating a new htab.
14062 (dataflow_set_clear): Call shared_hash_destroy and set vars
14063 to empty_shared_hash instead of calling vars_clear.
14064 (dataflow_set_copy): Don't call vars_copy, instead just share
14065 the src htab with dst.
14066 (variable_union): Use shared_hash_*, use initially NO_INSERT
14067 lookup if set->vars is shared. Don't keep slot cleared before
14068 calling unshare_variable. Unshare set->vars if needed.
14069 Even ->refcount == 1 vars must be unshared if set->vars is shared
14070 and var needs to be modified.
14071 (variable_canonicalize): New function.
14072 (dataflow_set_union): If dst->vars is empty, just share src->vars
14073 with dst->vars and traverse with variable_canonicalize to canonicalize
14074 and unshare what is needed.
14075 (dataflow_set_different): If old_set and new_set use the same shared
14076 htab, they aren't different. If number of htab elements is different,
14077 htabs are different. Use shared_hash_*.
14078 (dataflow_set_destroy): Call shared_hash_destroy instead of
14079 htab_delete.
14080 (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
14081 second argument to dataflow_set_init.
14082 (vt_initialize): Likewise. Initialize shared_hash_pool and
14083 empty_shared_hash, move bb in/out initialization afterwards.
14084 Use variable_htab_free instead of NULL as changed_variables del hook.
14085 (variable_was_changed): Change type of second argument to pointer to
14086 dataflow_set. When inserting var into changed_variables, bump
14087 refcount. Unshare set->vars if set is shared htab and slot needs to
14088 be cleared.
14089 (set_variable_part): Use shared_hash_*, use initially NO_INSERT
14090 lookup if set->vars is shared. Unshare set->vars if needed.
14091 Even ->refcount == 1 vars must be unshared if set->vars is shared
14092 and var needs to be modified. Adjust variable_was_changed caller.
14093 (delete_variable_part): Use shared_hash_*. Even ->refcount == 1
14094 vars must be unshared if set->vars is shared and var needs to be
14095 modified. Adjust variable_was_changed caller.
14096 (emit_note_insn_var_location): Don't pool_free var.
14097 (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
14098 instead of 1.
14099 (vt_finalize): Call htab_delete on empty_shared_hash->htab and
14100 free_alloc_pool on shared_hash_pool.
14101
2eed1d69 141022009-06-20 Anthony Green <green@moxielogic.com>
14103
14104 * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
14105 * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
14106
09d9c774 141072009-06-20 Richard Guenther <rguenther@suse.de>
14108
14109 * tree-ssa-structalias.c (find_func_aliases): For memset use
14110 a constraint from NULL if we memset to zero.
14111 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
14112 we explicitly handle that do not read from memory.
14113 (call_may_clobber_ref_p_1): Properly handle builtins that may
14114 set errno.
14115
c2abd8e4 141162009-06-20 Richard Guenther <rguenther@suse.de>
14117
14118 PR tree-optimization/40495
14119 * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
14120 (new_scalar_tmp_constraint_exp): New function.
14121 (process_constraint): Do not create temporary decls.
14122 (process_all_all_constraints): Likewise.
14123 (handle_const_call): Likewise.
14124 (create_function_info_for): Do not set decl.
14125
0a0a59fa 141262009-06-19 Ian Lance Taylor <iant@google.com>
14127
14128 * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
14129 (rs6000_attribute_table): Make static; move before use.
14130
01d4d739 141312009-06-19 Eric Botcazou <ebotcazou@adacore.com>
14132
14133 * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
14134 <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
14135 Propagate the TREE_READONLY flag without overwriting it.
14136 (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
14137 Propagate the TREE_READONLY flag onto the result.
14138 (process_call_operands): Move around. Use correct constant value.
14139
e4aeee53 141402009-06-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14141
14142 PR target/40482
70a23968 14143 * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
e4aeee53 14144 * config/arm/arm.md: Likewise.
14145
0f32121e 141462009-06-19 Ian Lance Taylor <iant@google.com>
6163a125 14147
14148 * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
14149 to GIMPLE_ERROR_MARK.
14150
14151 * c-typeck.c (build_conditional_expr): Add op1_original_type and
70a23968 14152 op2_original_type parameters. Warn about using different enum types.
6163a125 14153 * c-parser.c (c_parser_conditional_expression): Pass original
14154 types to build_conditional_expr.
14155 * c-tree.h (build_conditional_expr): Update declaration.
14156
c451bee6 141572009-06-19 Ian Lance Taylor <iant@google.com>
14158
14159 * config/i386/i386.c (ix86_function_specific_save): Test that
14160 fields match values, rather than testing the values are in a
14161 certain range.
14162
047fdd47 141632009-06-19 Richard Guenther <rguenther@suse.de>
14164
14165 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
14166 ADDR_EXPR pointers.
14167 (ptr_derefs_may_alias_p): Likewise.
14168 (ptr_deref_may_alias_ref_p_1): New function.
14169 (ptr_deref_may_alias_ref_p): Likewise.
14170 (ref_maybe_used_by_call_p_1): Handle builtins that are not
14171 covered by looking at the ESCAPED solution.
14172 (call_may_clobber_ref_p_1): Likewise.
14173 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
14174 Handle NULL_TREE offset. Do not produce redundant constraints.
14175 (process_all_all_constraints): New helper function.
14176 (do_structure_copy): Use it.
14177 (handle_lhs_call): Likewise.
14178 (find_func_aliases): Handle some builtins with pointer arguments
14179 and/or return values explicitly.
14180
8e7b72c4 141812009-06-19 Ian Lance Taylor <iant@google.com>
14182
14183 * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
14184
d8708296 141852009-06-19 Ian Lance Taylor <iant@google.com>
14186
14187 * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
14188
1a7c0ccb 141892009-06-19 Ian Lance Taylor <iant@google.com>
14190
14191 * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
14192 * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
14193 version.
14194
14195 * c-decl.c (finish_decl): If -Wc++-compat, warn about
14196 uninitialized const.
14197
843bd2fa 141982009-06-19 Ian Lance Taylor <iant@google.com>
14199
14200 * dse.c (struct store_info): Rename bitmap field to bmap. Change
14201 all uses.
14202
14203 * c-decl.c (in_struct, struct_types): Remove.
14204 (struct c_binding): Add in_struct field.
14205 (c_binding_ptr): Define type, along with VEC.
14206 (struct c_struct_parse_info): Define.
14207 (struct_parse_info): New static variable.
14208 (bind): Initialize in_struct field.
14209 (start_struct): Remove enclosing_in_struct and
14210 enclosing_struct_types parameters. Add
14211 enclosing_struct_parse_info parameter. Change all callers. Set
14212 struct_parse_info rather than in_struct and struct_types.
14213 (grokfield): If -Wc++-compat and there is a symbol binding for the
14214 field name, set the in_struct flag and push it on the
14215 struct_parse_info->fields vector.
14216 (warn_cxx_compat_finish_struct): New static function.
14217 (finish_struct): Remove enclosing_in_struct and
14218 enclosing_struct_types parameters. Add
14219 enclosing_struct_parse_info parameter. Change all callers. Don't
14220 set C_TYPE_DEFINED_IN_STRUCT here. Call
14221 warn_cxx_compat_finish_struct. Free struct_parse_info and set to
14222 parameter. Only push on struct_types if warn_cxx_compat.
14223 (finish_enum): Only push on struct_types if warn_cxx_compat.
14224 (declspecs_add_type): Add loc parameter. Change all callers.
14225 Change all error calls to error_at. Pass loc, not input_location,
14226 to pedwarn calls. Warn if -Wc++-compat and a typedef name is
14227 defined in a struct. If -Wc++-compat and parsing a struct, record
14228 that a typedef name was used.
14229 * c-parser.c (c_parser_declspecs): Get location to pass to
14230 declspecs_add_type.
14231 (c_parser_struct_or_union_specifier): Update calls to start_struct
14232 and finish_struct.
14233 * c-tree.h (struct c_struct_parse_info): Declare.
14234 (finish_struct, start_struct): Update declarations.
14235 (declspecs_add_type): Update declaration.
14236
4a76ab2a 142372009-06-19 Ian Lance Taylor <iant@google.com>
14238
14239 * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
14240 variable with an anonymous type.
14241
1f853dda 142422009-06-19 Uros Bizjak <ubizjak@gmail.com>
14243
14244 * see.c: Remove for real.
14245
b3154a1f 142462009-06-19 Uros Bizjak <ubizjak@gmail.com>
14247
14248 * optabs.h (enum optab_index): Add new OTI_significand.
14249 (significand_optab): Define corresponding macro.
14250 * optabs.c (init_optabs): Initialize significand_optab.
14251 * genopinit.c (optabs): Implement significand_optab using
14252 significand?f2 patterns.
14253 * builtins.c (expand_builtin_mathfn): Handle
14254 BUILT_IN_SIGNIFICAND{,F,L}.
14255 (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
14256 expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
14257
14258 * config/i386/i386.md (significandxf2, significand<mode>2): New
14259 expanders to implement significandf, significand and significandl
14260 built-ins as inline x87 intrinsics.
14261
b32505d2 142622009-06-18 Anatoly Sokolov <aesok@post.ru>
14263
14264 * config/avr/avr.c (avr_override_options): Remove setting value of
14265 PARAM_INLINE_CALL_COST.
14266
8c1f2562 142672009-06-18 Richard Henderson <rth@redhat.com>
14268
14269 PR 40488
14270 * tree-pass.h (TDF_ASMNAME): New.
14271 * tree-dump.c (dump_options): Add asmname.
14272 * doc/invoke.texi: Document it.
14273
14274 * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
14275 (dump_decl_name): ...here.
14276 (dump_function_name): New flags arg; mind TDF_ASMNAME.
14277 (dump_generic_node): Update dump_function_name calls.
14278 (print_call_name): New flags arg; update all dump calls.
14279 * diagnostic.h (print_call_name): Update.
14280 * gimple-pretty-print.c (dump_gimple_call): Update.
14281
4b85d273 142822009-06-18 H.J. Lu <hongjiu.lu@intel.com>
14283
14284 PR target/40470
14285 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
14286
8e6de413 142872009-06-18 Diego Novillo <dnovillo@google.com>
14288
14289 * doc/plugins.texi: Document plugin_is_GPL_compatible.
14290 * plugin.c (str_license): Declare.
14291 (try_init_one_plugin): Assert that the symbol
14292 'plugin_is_GPL_compatible' exists.
14293
0b99ff3e 142942009-06-18 Sergei Dyshel <sergeid@il.ibm.com>
14295
14296 * see.c: Remove.
14297 * Makefile.in (OBJS-common): Remove see.o.
14298 (see.o): Remove.
14299 * common.opt (fsee): Mark as preserved for backward compatibility.
f6c8c8fc 14300 * opts.c (common_handle_option): Add OPT_fsee to the backward
0b99ff3e 14301 compatibility section.
14302 * passes.c (init_optimization_passes, pass_see): Remove pass.
14303 * timevar.def (TV_SEE): Remove.
14304 * tree-pass.h (pass_see): Remove declaration.
14305 * doc/invoke.texi (-fsee): Remove documentation.
f6c8c8fc 14306
33c3560d 143072009-06-18 Martin Jambor <mjambor@suse.cz>
14308
14309 * tree-sra.c: Include statistics.h
14310 (sra_stats): New variable.
14311 (sra_initialize): Clear sra_stats.
14312 (create_access_replacement): Increment sra_stats.replacements.
14313 (get_access_replacement): Do not return twice.
14314 (analyze_all_variable_accesses): Increment statistics counter by the
14315 number of scalarized aggregates.
14316 (generate_subtree_copies): Increment sra_stats.subtree_copies.
14317 (sra_modify_expr): Increment sra_stats.exprs.
14318 (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
14319 (sra_modify_assign): Increment sra_stats.exprs,
14320 sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
14321 (perform_intra_sra): Update statistics counters.
14322 * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
14323
546af3f3 143242009-06-18 Sandra Loosemore <sandra@codesourcery.com>
14325
14326 * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
14327 (arm_scalar_mode_supported_p): New function.
14328
42746368 143292009-06-18 Paul Brook <paul@codesourcery.com>
14330 Sandra Loosemore <sandra@codesourcery.com>
14331
14332 * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
14333 (__extendhfsf2, __truncsfhf2): Define.
14334 * config/arm/fp16.c: New file.
14335 * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
14336 * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
14337
9b8516be 143382009-06-18 Sandra Loosemore <sandra@codesourcery.com>
14339
14340 * doc/extend.texi (Half-Precision): New section.
14341 * doc/invoke.texi (Option Summary): List -mfp16-format.
14342 (ARM Options): List neon-fp16 as -mfpu value. Document -mfp16-format.
14343 * config/arm/arm.opt (mfp16-format=): New.
14344 * config/arm/arm.c: Include intl.h.
14345 (TARGET_INVALID_PARAMETER_TYPE): Redefine.
14346 (TARGET_INVALID_RETURN_TYPE): Redefine.
14347 (TARGET_PROMOTED_TYPE): Redefine.
14348 (TARGET_CONVERT_TO_TYPE): Redefine.
14349 (arm_fp16_format): Define.
14350 (all_fpus): Add entry for neon-fp16.
14351 (fp_model_for_fpu): Likewise.
14352 (struct fp16_format): Declare.
14353 (all_fp16_formats): Define.
14354 (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
14355 functions.
14356 (arm_override_options): Set arm_fp16_format. Call sorry for fp16
14357 and no ldrh.
14358 (arm_legitimate_index_p): Treat HFmode like HImode.
14359 (thumb1_legitimate_address_p): Make it recognize HFmode constants.
14360 (coproc_secondary_reload_class): Special-case HFmode.
14361 (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
14362 (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
14363 (arm_init_fp16_builtins): New.
14364 (arm_init_builtins): Call it.
14365 (arm_invalid_parameter_type): New.
14366 (arm_invalid_return_type): New.
14367 (arm_promoted_type): New.
14368 (arm_convert_to_type).
14369 (arm_file_start): Deal with neon-fp16 as fpu_name. Emit tag for fp16
14370 format.
14371 (arm_emit_fp16_const): New function.
14372 (arm_mangle_type): Mangle __fp16 as "Dh".
14373 * config/arm/arm.h (TARGET_VFPD32): Make it know about
14374 FPUTYPE_NEON_FP16.
14375 (TARGET_NEON_FP16): New.
14376 (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
14377 (enum fputype): Add FPUTYPE_NEON_FP16.
14378 (enum arm_fp16_format_type): Declare.
14379 (arm_fp16_format): Declare.
14380 (LARGEST_EXPONENT_IS_NORMAL): Define.
14381 * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
14382 * config/arm/arm-modes.def (HFmode): Define.
d603963f 14383 * config/arm/vfp.md (*movhf_vfp): New.
9b8516be 14384 (extendhfsf2): New.
14385 (truncsfhf2): New.
d603963f 14386 * config/arm/arm.md (fpu): Add neon_fp16.
9b8516be 14387 (floatsihf2, floatdihf2): New.
14388 (fix_trunchfsi2, fix_trunchfdi2): New.
14389 (truncdfhf2): New.
14390 (extendhfdf2): New.
14391 (movhf): New.
14392 (*arm32_movhf): New.
14393 (*thumb1_movhf): New.
14394 (consttable_2): Add check for HFmode constants.
14395 (consttable_4): Handle HFmode constants.
14396
ab60f474 143972009-06-18 Uros Bizjak <ubizjak@gmail.com>
14398
14399 * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
14400
71a0b254 144012009-06-17 Olivier Hainque <hainque@adacore.com>
14402
14403 * collect2.c (main): Use CONST_CAST2 to perform char ** to
14404 const char ** conversion in AIX specific section.
f6c8c8fc 14405
c119b8ad 144062009-06-17 H.J. Lu <hongjiu.lu@intel.com>
14407
14408 * config/i386/i386.c (ix86_special_builtin_type): Remove
14409 UINT64_FTYPE_PINT. Add UINT64_FTYPE_PUNSIGNED.
14410 (bdesc_special_args): Updated.
14411 (ix86_init_mmx_sse_builtins): Likewise.
14412 (ix86_expand_special_args_builtin): Likewise.
14413
7585370f 144142009-06-17 Richard Henderson <rth@redhat.com>
14415
14416 * tree-pretty-print.c (maybe_dump_asm_name): New.
14417 (dump_decl_name): Use it.
14418 (PRINT_FUNCTION_NAME): Merge into...
14419 (dump_function_name): ... here. Use maybe_dump_asm_name.
14420
1488fe24 144212009-06-17 Cary Coutant <ccoutant@google.com>
14422
14423 * dbxout.c (dbxout_source_line): Add is_stmt parameter.
14424 Change caller.
14425 * debug.c (struct gcc_debug_hooks): Change placeholder for
14426 source_line hook.
14427 (debug_nothing_int_charstar_int): Replaced by...
14428 (debug_nothing_int_charstar_int_bool): ...this.
14429 * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
14430 source_line prototype.
14431 (debug_nothing_int_charstar_int): Replaced by...
14432 (debug_nothing_int_charstar_int_bool): ...this.
14433 * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
14434 * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
14435 Output is_stmt operand when necessary.
cc85e995 14436 * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
1488fe24 14437 (notice_source_line): Add is_stmt parameter.
14438 * sdbout.c (sdbout_source_line): Add is_stmt parameter.
14439 * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
14440 Change callers.
14441 * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
14442 * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
14443
584511c1 144442009-06-17 Ian Lance Taylor <iant@google.com>
14445
14446 * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
14447 Change all uses.
14448 (struct store_by_pieces_d): Rename from store_by_pieces. Change
14449 call uses.
14450
98112881 144512009-06-17 Adam Nemet <anemet@caviumnetworks.com>
14452
14453 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
14454 STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
14455 tree_strip_sign_nop_conversions and
14456 tree_ssa_strip_useless_type_conversions rather than stripping
14457 the operations here.
14458 (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
14459 Declare them.
14460 * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
14461 * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
14462 * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
14463 tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
14464 functions.
14465
40cbc433 144662009-06-17 Michael Eager <eager@eagercon.com>
14467
c6aaf951 14468 * config/rs6000/constraints.md (register_constraint "d"): New.
14469 * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
14470 truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
14471 *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
14472 *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
14473 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
14474 divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
14475 fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
14476 * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
40cbc433 14477 __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
14478 __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
c6aaf951 14479 __fctiwz): Same.
14480 * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
40cbc433 14481 *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
14482 *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
14483 *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
c6aaf951 14484 *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
14485 fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
14486 stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
14487 *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
14488 *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
14489 trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
14490 *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
14491 *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
14492 *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
40cbc433 14493 * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
14494
c5bafa96 144952009-06-16 Ian Lance Taylor <iant@google.com>
14496
14497 * profile.c (total_num_never_executed): Don't define.
14498 (compute_branch_probabilities): Don't count or print
14499 num_never_executed.
14500 (init_branch_prob): Don't set total_num_never_executed.
14501 (end_branch_prob): Don't print total_num_never_executed.
14502
326fb3fd 145032009-06-17 David Daney <ddaney@caviumnetworks.com>
14504
c6aaf951 14505 * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
326fb3fd 14506
bfe6deb6 145072009-06-17 David Edelsohn <edelsohn@gnu.org>
14508
14509 * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
14510 (nabstd2_fpr): Same.
14511
aa7bb50e 145122009-06-17 Steve Ellcey <sje@cup.hp.com>
14513
14514 * expr.c (expand_assignment): Change complex type check.
14515
d4fcd9bc 145162009-06-17 Basile Starynkevitch <basile@starynkevitch.net>
14517
f6c8c8fc 14518 * doc/plugins.texi (Building GCC plugins): Added new section.
d4fcd9bc 14519
019c559b 145202009-06-17 Ian Lance Taylor <iant@google.com>
14521
14522 * c-pch.c (get_ident): Don't set size of templ array.
14523 (pch_init): Don't set size of partial_pch array.
14524
14525 * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
14526 string constant to intialize an array whose size is the length of
14527 the string.
14528
c7e30df8 145292009-06-17 Richard Guenther <rguenther@suse.de>
14530
14531 PR tree-optimization/40389
14532 * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
14533 to addressable types.
14534 * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
14535
0f0057aa 145362009-06-17 Richard Guenther <rguenther@suse.de>
14537
14538 PR middle-end/40460
14539 * tree-chrec.h (build_polynomial_chrec): If we cannot determine
14540 if there is no evolution of left in the loop bail out.
14541 * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
14542 chrec_fold_multiply.
14543
b1e84b78 145442009-06-16 J"orn Rennecke <joern.rennecke@arc.com>
14545 Janis Johnson <janis187@us.ibm.com>
14546
14547 PR target/39254
14548 * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
14549 for the symbol ref of a constant that is the source of a move
14550 - nor for any other not-obvious-label-ref constants.
14551
d5fa1515 145522009-06-16 Olatunji Ruwase <tjruwase@google.com>
14553
c5bafa96 14554 * plugin.c (position_pass): Skip newly inserted pass during list
d5fa1515 14555 traversal to avoid repeated insertion.
14556
3a61a8b9 145572009-06-16 Ian Lance Taylor <iant@google.com>
14558
14559 * vec.h (VEC_stack_alloc): Define different version if
14560 GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
14561 (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
14562 (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
14563 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
14564
b2db647e 145652009-06-16 H.J. Lu <hongjiu.lu@intel.com>
14566
14567 * config.gcc (extra_headers): Add ia32intrin.h for x86.
14568
14569 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
14570 IX86_BUILTIN_BSRDI. IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
14571 IX86_BUILTIN_RDTSCP. IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
14572 IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
14573 (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
14574 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
c6aaf951 14575 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
b2db647e 14576 (bdesc_special_args): Add __builtin_ia32_rdtsc and
14577 __builtin_ia32_rdtscp.
14578 (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
14579 __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
c6aaf951 14580 and __builtin_ia32_rorhi.
b2db647e 14581 (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
14582 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
c6aaf951 14583 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
b2db647e 14584 (ix86_expand_args_builtin): Likewise.
14585 (ix86_expand_special_args_builtin): Likewise.
14586
14587 * config/i386/i386.md (UNSPECV_RDTSCP): New.
14588 (UNSPECV_RDTSC): Likewise.
14589 (UNSPECV_RDPMC): Likewise.
c6aaf951 14590 (*bsr): Renamed to ...
b2db647e 14591 (bsr): This
c6aaf951 14592 (*bsr_rex64): Renamed to ...
b2db647e 14593 (bsr_rex64): This.
14594 (rdpmc): New.
14595 (*rdpmc): Likewise.
14596 (*rdpmc_rex64): Likewise.
14597 (rdtsc): Likewise.
14598 (*rdtsc): Likewise.
14599 (*rdtsc_rex64): Likewise.
14600 (rdtscp): Likewise.
14601 (*rdtscp): Likewise.
14602 (*rdtscp_rex64): Likewise.
14603
14604 * config/i386/ia32intrin.h: New.
14605
14606 * config/i386/x86intrin.h: Include <ia32intrin.h>.
14607
8efd2ddb 146082009-06-16 Ian Lance Taylor <iant@google.com>
14609
14610 * ira-build.c (copy_info_to_removed_store_destinations):
14611 Initialize parent_a.
14612
b99f3c92 146132009-06-16 Ian Lance Taylor <iant@google.com>
14614
14615 * c-decl.c (grokdeclarator): Change size_varies to bool.
14616
40b15760 146172009-06-16 Ian Lance Taylor <iant@google.com>
14618
14619 * sel-sched.c: Make forward declarations of move_op_hooks and
14620 fur_hooks explicitly extern.
14621
8dc2823a 146222009-06-16 Ian Lance Taylor <iant@google.com>
14623
c6aaf951 14624 * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
8dc2823a 14625 * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
14626
10a15ee4 146272009-06-16 Ian Lance Taylor <iant@google.com>
14628
14629 * resource.c (mark_referenced_resources): Change
14630 include_delayed_effects parameter to bool. Change all callers.
14631 (mark_end_of_function_resources): Likewise.
14632 * reorg.c (insn_references_resource_p): Likewise.
14633 (insn_sets_resource_p): Likewise.
14634 * resource.h (mark_referenced_resources): Update declaration.
14635 (mark_end_of_function_resources): Update declaration.
14636
c7e5ac45 146372009-06-16 David Edelsohn <edelsohn@gnu.org>
14638
14639 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
14640
bbe0f5ef 146412009-06-16 David Edelsohn <edelsohn@gnu.org>
14642
14643 * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
14644 GCC can bootstrap on AIX with GNU Binutils 2.20.
14645
957d66f3 146462009-06-16 Ian Lance Taylor <iant@google.com>
14647
14648 * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
14649
4345dfaa 146502009-06-16 Ian Lance Taylor <iant@google.com>
14651
14652 * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
14653 inline, not extern inline.
14654 (exact_log2): Likewise.
14655 * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
14656 test CLZ_HWI.
14657 (exact_log2): Likewise, but don't test CTZ_HWI.
14658
c623bf22 146592009-06-16 Ian Lance Taylor <iant@google.com>
14660
14661 * bitmap.c (bitmap_clear): Don't declare as inline.
14662 * gimple.c (gimplify_assign): Likewise.
14663 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
14664 * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
14665 (sched_scan_info): Remove duplicate definition.
14666
48d94ede 146672009-06-16 Ian Lance Taylor <iant@google.com>
14668
14669 * c-common.c (skip_evaluation): Don't define.
14670 (c_inhibit_evaluation_warnings): Define global variable.
14671 (overflow_warning): Check c_inhibit_evaluation_warnings rather
14672 than skip_evaluation.
14673 (convert_and_check, warn_for_div_by_zero): Likewise.
14674 * c-common.h (skip_evaluation): Don't declare.
14675 (c_inhibit_evaluation_warnings): Declare.
14676 * c-parser.c (c_parser_typeof_specifier): Set
14677 c_inhibit_evaluation_warnings rather than skip_evaluation.
14678 (c_parser_conditional_expression): Likewise.
14679 (c_parser_binary_expression): Likewise.
14680 (c_parser_sizeof_expression): Likewise.
14681 (c_parser_alignof_expression): Likewise.
14682 * c-typeck.c (build_indirect_ref): Check
14683 c_inhibit_evaluation_warnings rather than skip_evaluation.
14684 (build_conditional_expr, build_binary_op): Likewise.
14685
e8146f09 146862009-06-16 Richard Guenther <rguenther@suse.de>
14687
14688 * tree-ssa-alias.c (is_escape_site): Remove.
14689 * tree-ssa-alias.h (enum escape_type): Remove.
14690 (is_escape_site): Likewise.
14691 * tree-ssa-structalias.c (find_func_aliases): Handle escapes
14692 via casts and asms without deferring to is_escape_site.
14693
60a132a9 146942009-06-16 Jakub Jelinek <jakub@redhat.com>
14695
14696 PR middle-end/40446
14697 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
14698 use gen_lowpart if op0 has complex mode.
14699
c174c650 147002009-06-16 Richard Guenther <rguenther@suse.de>
14701
14702 * tree-ssa-structalias.c (do_ds_constraint): Stores in global
14703 variables add them to ESCAPED.
c6aaf951 14704 (find_func_aliases): Do not make all indirectly stored values escaped.
c174c650 14705
929bec98 147062009-06-16 Rafael Avila de Espindola <espindola@google.com>
14707
14708 * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
14709 make_decl_one_only.
14710
ea8ae162 147112009-06-16 Martin Jambor <mjambor@suse.cz>
14712
14713 PR tree-optimization/40432
14714 * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
14715 check whether we need to force gimple register operand.
14716
f18b05a3 147172009-06-16 Martin Jambor <mjambor@suse.cz>
14718
14719 PR tree-optimization/40413
14720 * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
14721 build_ref_for_offset.
14722 (propagate_subacesses_accross_link): Fix a typo in a comment.
14723
ade2ac53 147242009-06-16 Ira Rosen <irar@il.ibm.com>
14725
14726 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
14727 with additional parameter.
c6aaf951 14728 * tree-vectorizer.h (enum vect_def_type): Add new value
ade2ac53 14729 vect_nested_cycle.
14730 (enum vect_relevant): Add comments.
14731 (vect_is_simple_reduction): Add new argument.
14732 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
14733 Detect nested cycles.
14734 (vect_is_simple_reduction): Update documentation, add an argument to
14735 distinguish inner-loop reduction from nested cycle, detect nested
14736 cycles, fix printings and indentation, don't swap operands in case
14737 of nested cycle.
14738 (get_initial_def_for_reduction): Handle subtraction.
14739 (vect_create_epilog_for_reduction): Add new argument to specify
14740 reduction variable.
14741 (vect_finalize_reduction): Handle subtraction, fix comments.
c6aaf951 14742 (vectorizable_reduction): Handle nested cycles. In case of nested
f6c8c8fc 14743 cycle keep track of the reduction variable position. Call
7c1037d2 14744 vect_is_simple_reduction with additional parameter. Use original
ade2ac53 14745 statement code in reduction epilogue for nested cycle. Call
14746 vect_create_epilog_for_reduction with additional parameter.
c6aaf951 14747 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
14748 inner-loop vectorization.
ade2ac53 14749 (vect_recog_widen_sum_pattern): Likewise.
14750 * tree-vect-stmts.c (process_use): Distinguish between nested cycles
14751 and reductions.
14752 (vect_mark_stmts_to_be_vectorized): Likewise.
14753 (vect_get_vec_def_for_operand): Handle nested cycles.
14754
fb35baeb 147552009-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14756
14757 * doc/invoke.texi (Debugging Options): Fix option index entries
14758 for -fdump-statistics, -frandom-seed add entries for
14759 -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
14760 (FRV Options): Fix entries for -mTLS, -mtls.
14761 (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
14762 (i386 and x86-64 Options): Fix entry for -mno-red-zone.
14763 (M68hc1x Options): Fix @itemx for -mnominmax.
14764 (MCore Options): Fix entry for -mno-lsim.
14765 (MMIX Options): Fix entry for -mabi=mmixware.
14766 (PDP-11 Options): Fix entry for -mbcopy-builtin.
14767
9dc75945 147682009-06-16 Basile Starynkevitch <basile@starynkevitch.net>
14769
14770 * doc/plugins.texi (Interacting with the GCC Garbage Collector):
14771 Mention the plugin mode of gengtype.
c6aaf951 14772 * doc/gty.texi (Source Files Containing Type Information): Likewise.
9dc75945 14773 * gengtype.c: Updated copyright.
14774 (plugin_files, nb_plugin_files) Added new static variables.
14775 (measure_input_list) Care about plugin_files.
14776 (write_rtx_next): Added early return in plugin mode.
14777 (create_file): Updated copyright year in generated file. Added
14778 asserts.
14779 (oprintf): Added early return if NULL outf.
14780 (get_output_file_with_visibility): Care of plugin_files.
14781 (get_output_file_name): May return null.
14782 (write_local): Added early return.
14783 (put_mangled_filename): Ditto.
14784 (finish_root_table): Added check for base_files.
14785 (write_roots): Care about null when plugins.
14786 (main): Added plugin mode.
14787
f805d53d 147882009-06-15 Ian Lance Taylor <iant@google.com>
14789
c6aaf951 14790 * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
f805d53d 14791 * gcov.c (read_count_file): Add braces around variables declared
14792 before label.
14793
14794 * c.opt (Wjump-misses-init): New warning.
14795 * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
14796 -Wall and -Wc++-compat if not already set.
14797 (c_common_post_options): Clear warn_jump_misses_init if it was not
14798 set.
14799 * c-decl.c (struct c_binding): Change type field to a union with
14800 new label field. Make it the first field in the struct. Update
14801 references to type to use u.type instead.
14802 (struct c_spot_bindings): Define.
14803 (struct c_goto_bindings): Define.
14804 (c_goto_bindings_p): Define, along with VECs.
14805 (struct c_label_vars): Define.
14806 (struct c_scope): Add has_label_bindings field.
14807 (bind_label, set_spot_bindings): New static functions.
14808 (decl_jump_unsafe, update_spot_bindings): New static functions.
14809 (update_label_decls): New static function.
14810 (pop_scope): Call update_label_decls. Don't call c_end_vm_scope.
14811 Update binding u.label field to shadowed field.
14812 (c_binding_start_stmt_expr): New function.
14813 (c_binding_end_stmt_expr): New function.
14814 (pushdecl): Don't call c_begin_vm_scope.
14815 (make_label): Add defining and p_label_vars parameters. Change
14816 all callers.
14817 (lookup_label): Correct test for whether a label has not yet been
14818 defined. Call bind_label rather than bind.
14819 (warn_about_goto): New static function.
14820 (lookup_label_for_goto): New function.
14821 (declare_label): Call bind_label rather than bind.
14822 (check_earlier_gotos): New static function.
14823 (define_label): Don't give errors about jumping into statement
14824 expressions or scopes of variably modified types. Call
14825 set_spot_bindings and check_earlier_gotos. Call bind_label
14826 instead of bind. Don't set label_context_stack_se or
14827 label_context_stack_vm.
14828 (c_get_switch_bindings): New function.
14829 (c_release_switch_bindings): New function.
14830 (c_check_switch_jump_warnings): New function.
14831 (start_function): Don't set label_context_stack_se or
14832 label_context_stack_vm.
14833 (finish_function): Likewise.
14834 * c-typeck.c (label_context_stack_se): Don't define.
14835 (label_context_stack_vm): Don't define.
14836 (c_finish_goto_label): Call lookup_label_for_goto rather than
14837 lookup_label. Don't give errors about jumping into a statement
14838 expression or the scope of a variably modified type. Don't set
14839 label_context_stack_se or label_context_stack_vm.
14840 (struct c_switch): Remove blocked_stmt_expr and blocked_vm
14841 fields. Add bindings field.
14842 (c_start_case): Don't set deleted fields. Set bindings field.
14843 (do_case): Rework order of tests. Don't check blocked_stmt_expr
14844 or blocked_vm. Call c_check_switch_jump_warnings.
14845 (c_finish_case): Don't test blocked_stmt_expr field. Call
14846 c_release_switch_bindings.
14847 (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
14848 c_switch_stack. Don't walk label_context_stack_se labels. Don't
14849 set label_context_stack_se. Call c_bindings_start_stmt_expr.
14850 (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
14851 c_switch_stack. Don't walk label_context_stack_se labels. Don't
14852 set label_context_stack_se. Call c_bindings_end_stmt_expr.
14853 (c_begin_vm_scope, c_end_vm_scope): Don't define.
14854 * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
14855 (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
14856 (C_DECL_UNJUMPABLE_VM): Don't define.
14857 (C_DECL_UNDEFINABLE_VM): Don't define.
14858 (struct c_label_list): Don't define.
14859 (struct c_label_context_se): Don't define.
14860 (struct c_label_context_vm): Don't define.
14861 (struct c_spot_bindings): Declare.
14862 (c_bindings_start_stmt_expr): Declare.
14863 (c_bindings_end_stmt_expr): Declare.
14864 (lookup_label_for_goto): Declare.
14865 (c_get_switch_bindings, c_release_switch_bindings): Declare.
14866 (c_check_switch_jump_warnings): Declare.
14867 (label_context_stack_se, label_context_stack_vm): Don't declare.
14868 (c_finish_goto_label): Update declaration.
14869 (c_begin_vm_scope, c_end_vm_scope): Don't declare.
14870 * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
14871 (Warning Options): Document -Wjump-misses-init.
14872
56b5c963 148732009-06-15 Jakub Jelinek <jakub@redhat.com>
14874
14875 * tree-object-size.c (addr_object_size): Fix a pasto in the last
14876 change.
14877
02527fdb 148782009-06-15 Rafael Avila de Espindola <espindola@google.com>
14879
14880 * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
14881
0b35068b 148822009-06-15 Aldy Hernandez <aldyh@redhat.com>
14883
14884 * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
14885
148862009-06-15 Aldy Hernandez <aldyh@redhat.com>
14887
14888 * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
14889
ecd88073 148902009-06-15 Rafael Avila de Espindola <espindola@google.com>
14891
14892 * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
14893 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
14894 * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
14895 * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
c6aaf951 14896 * dwarf2asm.c (dw2_force_const_mem): Update call to
14897 make_decl_one_only.
ecd88073 14898 * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
14899 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
14900 * langhooks.c (lhd_comdat_group): Remove.
14901 * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
14902 * tree.h (DECL_COMDAT_GROUP): New.
14903 (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
14904 (tree_decl_with_vis): Add comdat_group. Remove one_only.
14905 (make_decl_one_only): Change signature.
14906 * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
14907 make_decl_one_only.
14908 (make_decl_one_only): Change signature.
14909 (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
14910
c6f3d74f 149112009-06-15 Richard Guenther <rguenther@suse.de>
14912
14913 PR middle-end/40439
14914 * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
14915
92b84fc3 149162009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14917
14918 * tree-ssa-math-opts.c: Remove extra divide.
14919
497042b8 149202009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14921
14922 * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
14923
84cc784c 149242009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14925
14926 * passes.c: Add bswap pass.
14927 * tree-pass.h: Add pass_optimize_bswap declaration.
14928 * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
14929 Include rtl.h, expr.h and optabs.h for optab_handler check.
14930 (struct symbolic_number, pass_optimize_bswap): New definition.
14931 (do_shift_rotate, verify_symbolic_number_p): New functions.
14932 (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
14933 (gate_optimize_bswap): New function.
14934 * tree.c (widest_int_cst_value): New function.
14935 * tree.h (widest_int_cst_value): Prototype added.
14936
d9beaaeb 149372009-06-14 Steven Bosscher <steven@gcc.gnu.org>
14938
14939 * cfgcleanup.c (old_insns_match_p): Remove code to substitute
14940 REG_EQUAL/REG_EQUIV notes.
14941
60b9b3ae 149422009-06-14 Richard Guenther <rguenther@suse.de>
14943
14944 PR middle-end/40389
14945 * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
14946 has its address taken if NRV was applied and it is addressable.
14947 * tree-ssa-structalias.c (get_constraint_for_address_of): New
14948 function split out from ...
14949 (get_constraint_for_1): ... here.
14950 (handle_rhs_call): Use it to mark the return slot escaped if
14951 it is addressable and NRV was applied.
14952
65edca84 149532009-06-13 Aldy Hernandez <aldyh@redhat.com>
14954
14955 * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
14956 Change first argument type to location_t.
14957 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
14958 Do not set input_location.
14959 Use loc instead of input_location throughout.
14960
286fa508 149612009-06-13 Richard Guenther <rguenther@suse.de>
14962
60b9b3ae 14963 PR tree-optimization/40421
286fa508 14964 * tree-predcom.c (should_unroll_loop_p): Remove.
14965 (tree_predictive_commoning_loop): Use can_unroll_loop_p.
14966
052a8489 149672009-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
14968
14969 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
14970 Add location argument.
14971
54e46243 149722009-06-13 Aldy Hernandez <aldyh@redhat.com>
14973
14974 * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
14975 build_decl.
14976 * config/s390/s390.c (s390_build_builtin_va_list): Same.
14977 (s390_gimplify_va_arg): Pass location to create_artificial_label.
14978 * config/spu/spu-protos.h: Add location to
14979 spu_resolve_overloaded_builtin.
14980 * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
14981 spu_build_builtin_va_list.
14982 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
14983 argument. Pass location to build_function_call_vec.
14984 * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
14985 build_decl.
14986 (emit_fpu_switch): Same.
14987 (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
14988 * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
14989 to build_decl and create_artificial_label.
14990 (xtensa_gimplify_va_arg_expr): Same.
14991 * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
14992 (xstormy16_gimplify_va_arg_expr): Same.
14993 * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
14994 * config/arm/arm.c (arm_build_builtin_va_list): Same.
14995 * config/mips/mips.c (mips_build_builtin_va_list): Same.
14996 (mips16_build_function_stub): Same.
14997 (mips16_build_call_stub): Same.
14998
0bdb6455 149992009-06-13 Richard Earnshaw <rearnsha@arm.com>
15000
15001 PR target/40327
15002 * arm/constraints.md (Pa, Pb): New constraints.
f6c8c8fc 15003 * arm/arm.md (thumb1_addsi3): Support more complex additions. Add a
0bdb6455 15004 split pattern to deal with them.
15005
a9077cc3 150062009-06-13 Joerg Sonnenberger <joerg@britannica.bec.de>
15007
15008 * doc/invoke.texi: Add missing option -Wp,OPTION in list,
15009 fix index entry for -Xpreprocessor.
15010
f69f268d 150112009-06-12 Aldy Hernandez <aldyh@redhat.com>
15012
15013 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15014 Add location argument to build_decl call.
15015 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
15016 (rs6000_init_builtins): Same.
15017 (spe_init_builtins): Same.
15018 (rs6000_gimplify_va_arg): Add location argument to
15019 create_artificial_label call.
15020
738c9748 150212009-06-12 Steven Bosscher <steven@gcc.gnu.org>
15022
15023 * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
15024 * combine-stack-adj.c (pass_stack_adjustments): Use it.
15025 * Makefile.in: Fix GGC dependency for gcse.o.
15026
e60a6f7b 150272009-06-12 Aldy Hernandez <aldyh@redhat.com>
15028
15029 * tree-pretty-print.c (dump_generic_node): Dump column numbers.
15030 * gimple-pretty-print.c (dump_gimple_stmt): Same.
15031 * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
15032 created.
15033 * c-parser.c (c_parser_binary_expression): Use current column while
15034 building binary operations.
15035 * common.opt (fshow-column): Enable by default.
15036 * tree-vrp.c (check_array_ref): Use warning_at.
15037 (check_array_bounds): Use location from call back if expr has no
15038 location.
15039 * tree.h: Add location argument to maybe_fold_*.
15040 * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
15041 (maybe_fold_offset_to_array_ref): Add location argument and use it.
15042 (maybe_fold_offset_to_component_ref): Same.
15043 (maybe_fold_offset_to_reference): Same.
15044 (maybe_fold_offset_to_address): Same.
15045 (maybe_fold_stmt_indirect): Same.
15046 (maybe_fold_stmt_addition): Same.
15047 (fold_stmt_r): Pass location to maybe_fold_*.
15048 (fold_gimple_assign): Same.
15049 * c-tree.h: Add location argument to finish_decl,
15050 default_function_array_conversion, store_init_value.
15051 * c-decl.c (define_label): Use error_at.
15052 (c_make_fname_decl): Pass location to finish_decl.
15053 (finish_decl): New location argument.
15054 (build_compound_literal): Pass location to store_init_value.
15055 (grokdeclarator): Pass location to finish_decl.
15056 (grokfield): Same.
15057 * c-typeck.c (array_to_pointer_conversion): New location argument.
15058 (function_to_pointer_conversion): Same.
15059 (default_function_array_conversion): Same.
15060 (parser_build_unary_op): Pass location to overflow_warning.
15061 (parser_build_binary_op): Same. Use warning_at.
15062 (build_unary_op): Pass location to array_to_pointer_conversion.
15063 (build_c_cast): Pass location to digest_init.
15064 (build_modify_expr): New location argument.
15065 (convert_for_assignment): Same.
15066 (store_init_value): Same.
15067 (digest_init): Same.
15068 (output_init_element): Pass location to digest_init and
15069 array_to_pointer_conversion.
15070 (c_finish_return): Pass location to convert_for_assignment.
15071 * gimplify.c (gimplify_conversion): Pass location to
15072 maybe_fold_offset_to_address.
15073 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
15074 to maybe_fold_stmt_addition.
15075 * c-omp.c (c_finish_omp_atomic): Pass new location to
15076 build_modify_expr.
15077 (c_finish_omp_for): Same.
15078 * c-common.c (overflow_warning): New argument.
15079 * c-common.h: New argument to build_modify_expr, overflow_warning.
15080 * c-parser.c (c_parser_declaration_or_fndef): Pass location to
15081 finish_decl.
15082 (c_parser_initializer): Pass location to
15083 default_function_array_conversion.
15084 (c_parser_initelt): Same.
15085 (c_parser_initval): Same.
15086 (c_parser_asm_operands): Same.
15087 (c_parser_expr_no_commas): Same. Pass location to build_modify_expr.
15088 (c_parser_conditional_expression): Same.
15089 (c_parser_binary_expression): Add location info to stack. Use it.
15090 (c_parser_unary_expression): Pass location to
15091 default_function_array_conversion, parser_build_unary_op,
15092 build_indirect_ref, c_parser_postfix_expression_after_primary.
15093 (c_parser_postfix_expression_after_primary): New location argument.
15094 Use it.
15095 (c_parser_expression_conv): Pass location to
15096 default_function_array_conversion.
15097 (c_parser_expr_list): Same.
15098 (c_parser_omp_atomic): Same.
15099 (c_parser_omp_for_loop): Same.
d603963f 15100 * c-tree.h (struct c_declarator): Add comment to id_loc.
e60a6f7b 15101 (build_array_declarator): New argument.
15102 * c-decl.c (build_array_declarator): Add location argument.
15103 (grokdeclarator): Set id_loc for cdk_array.
15104 * c-parser.c (c_parser_direct_declarator_inner): Pass location to
15105 build_array_declarator.
15106 * tree.c (build_omp_clause): Add location argument.
15107 * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
15108 (OMP_CLAUSE_LOCATION): New macro.
15109 (struct tree_omp_clause): Add location field.
15110 (build_omp_clause): Add argument.
e60a6f7b 15111 * cp/pt.c (tsubst_omp_for_iterator): Pass location to
15112 build_omp_clause.
15113 * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
15114 (cp_parser_omp_clause_collapse): Same.
15115 (cp_parser_omp_clause_default): Same.
15116 (cp_parser_omp_clause_if): Same.
15117 (cp_parser_omp_clause_nowait): Same.
15118 (cp_parser_omp_clause_num_threads): Same.
15119 (cp_parser_omp_clause_ordered): Same.
15120 (cp_parser_omp_clause_schedule): Same.
15121 (cp_parser_omp_clause_untied): Same.
15122 (cp_parser_omp_for_loop): Same.
15123 (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
15124 * c-tree.h (c_start_case): Add location argument.
15125 (c_process_expr_stmt): Same.
15126 (c_finish_goto_*): Same.
15127 * tree-parloops.c (initialize_reductions): Pass location to
15128 build_omp_clause.
15129 (create_parallel_loop): Same.
15130 * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
15131 (gfc_trans_omp_reduction_list): Same.
15132 (gfc_trans_omp_clauses): Same.
15133 (gfc_trans_omp_do): Same.
15134 * c-typeck.c (c_finish_goto_label): Same.
15135 (c_finish_goto_ptr): New location argument.
15136 (c_start_case): Same.
15137 (emit_side_effect_warnings): Same.
15138 (c_process_expr_stmt): Same.
15139 (c_finish_stmt_expr): Same.
15140 (c_finish_omp_clauses): Use error_at instead of error.
15141 * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
15142 build_omp_clause.
15143 * c-omp.c (c_split_parallel_clauses): New location argument.
15144 * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
15145 to build_omp_clause.
15146 (convert_local_reference_stmt): Same.
15147 (convert_gimple_call): Same.
15148 * c-common.h (c_split_parallel_clauses): New argument.
15149 * c-parser.c (c_parser_statement_after_labels): Pass location to
15150 c_finish_goto_label.
15151 (c_parser_switch_statement): Pass location to c_start_case.
15152 (c_parser_for_statement): Pass location to c_finish_expr_stmt,
15153 and c_process_expr_stmt.
15154 (c_parser_omp_variable_list): Add location argument.
c6aaf951 15155 (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
e60a6f7b 15156 (c_parser_omp_clause_default): Same.
15157 (c_parser_omp_clause_if): Same.
15158 (c_parser_omp_clause_num_threads): Same.
15159 (-c_parser_omp_clause_ordered): Same.
15160 (c_parser_omp_clause_reduction): Pass location to
15161 c_parser_omp_variable_list.
15162 (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
15163 (c_parser_omp_clause_untied): Same.
15164 (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
c6aaf951 15165 (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
e60a6f7b 15166
15167 * c-tree.h (check_for_loop_decls, undeclared_variable,
15168 build_component_ref, build_array_ref, build_external_ref,
15169 c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
15170 build_conditional_expr, build_compound_expr, c_cast_expr,
15171 build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
15172 c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
15173 argument.
15174 * c-semantics.c (build_stmt): Same.
15175 (build_case_label): Same.
15176 * c-decl.c (c_finish_incomplete_decl): Pass location on down.
15177 (undeclared_variable): New argument.
15178 (make_label): Same.
15179 (lookup_label): Pass location on down.
15180 (define_label): Same.
15181 (finish_decl): Same.
15182 (build_compound_literal): Same.
15183 (finish_struct): Same.
15184 (finish_function): Do not set location here.
15185 (check_for_loop_decls): New argument.
15186 * tree.c (save_expr): Set location.
15187 (build_empty_stmt): New argument.
15188 * tree.h (build_empty_stmt): New argument to build_empty_stmt.
15189 (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
15190 * builtins.c (gimplify_va_arg_expr): Use locations.
15191 (expand_builtin_sync_operation): Same.
15192 * c-typeck.c (build_component_ref): New argument.
15193 (build_array_ref): Same.
15194 (build_external_ref): Same.
15195 (c_expr_sizeof_expr): Same.
15196 (c_expr_sizeof_type): Same.
15197 (parser_build_unary_op): Same.
15198 (build_conditional_expr): Same.
15199 (build_compound_expr): Pass location on down.
15200 (build_compound_expr): New argument.
15201 (build_c_cast): Same.
15202 (c_cast_expr): Same.
15203 (build_asm_expr): Same.
15204 (c_finish_return): Same.
15205 (c_process_expr_stmt): Pass location on down.
15206 (c_finish_stmt_expr): New argument.
15207 (push_clenaup): Same.
15208 (c_finish_omp_parallel): Same.
15209 (c_finish_omp_task): Same.
15210 * gimplify.c (gimplify_call_expr): Pass location on down.
15211 * c-omp.c (c_finish_omp_master): New argument.
15212 (c_finish_omp_critical): Same.
15213 (c_finish_omp_ordered): Same.
15214 (c_finish_omp_barrier): Same.
15215 (-c_finish_omp_taskwait): Same.
15216 (c_finish_omp_atomic): Same.
15217 (c_finish_omp_flush): Same.
15218 * tree-inline.c (copy_tree_body_r): Pass location on down.
15219 (inline_forbidden_p): Remove use of input_location.
15220 * c-gimplify.c (c_build_bind_expr): New argument.
15221 * c-common.c (c_common_truthvalue_conversion): Pass location on down.
15222 (c_sizeof_or_alignof_type): New argument.
15223 (c_alignof_expr): Same.
15224 (build_va_arg): Same.
15225 (c_add_case_label): Same.
15226 * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
15227 c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
15228 c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
15229 c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
15230 c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
15231 c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
15232 New argument.
15233 * stub-objc.c (objc_build_selector_expr): Same.
15234 (objc_build_throw_stmt): Same.
15235 * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
15236 (c_parser_initelt): Same.
15237 (c_parser_compound_statement): Same.
15238 (c_parser_compound_statement_nostart): Same.
15239 (c_parser_label): Same.
15240 (c_parser_statement_after_labels): Same.
15241 (c_parser_if_body): Same.
15242 (c_parser_else_body): Same.
15243 (c_parser_if_statement): Same.
15244 (c_parser_switch_statement): Same.
15245 (c_parser_while_statement): Same.
15246 (c_parser_do_statement): Same.
15247 (c_parser_for_statement): Same.
15248 (c_parser_asm_statement): Same.
15249 (c_parser_conditional_expression): Same.
15250 (c_parser_binary_expression): Same.
15251 (c_parser_cast_expression): Same.
15252 (c_parser_unary_expression): Same.
15253 (c_parser_sizeof_expression): Same.
15254 (c_parser_alignof_expression): Same.
15255 (c_parser_postfix_expression): Same.
15256 (c_parser_expression): Same.
15257 (c_parser_objc_receiver): Same.
15258 (c_parser_omp_variable_list): Same.
15259 (c_parser_omp_structured_block): Same.
15260 (c_parser_omp_atomic): New argument.
15261 (c_parser_omp_barrier): Same.
15262 (c_parser_omp_critical): Same.
15263 (c_parser_omp_flush): Pass location on down.
15264 (c_parser_omp_for_loop): New argument.
15265 (c_parser_omp_for): Same.
15266 (c_parser_omp_master): Same.
15267 (c_parser_omp_ordered): Same.
15268 (c_parser_omp_sections_scope): Same.
15269 (c_parser_omp_sections): Same.
15270 (c_parser_omp_parallel): Same.
15271 (c_parser_omp_single): Same.
15272 (c_parser_omp_task): Same.
15273 (c_parser_omp_taskwait): Pass location on down.
15274 (c_parser_omp_construct): Same.
15275 (c_parser_omp_threadprivate): Same.
15276 * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
15277 builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
15278 tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
15279 c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
15280 c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
15281 emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
15282 rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
15283 tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
15284 config/i386/i386.c, stmt.c:
15285 Add location argument to the following function definitions and/or
15286 function calls: build_decl, objcp_start_struct, objcp_finish_struct,
15287 start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
15288 cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
15289 build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
15290 do_case, c_finish_bc_stmt, build_compound_literal,
15291 build_function_call.
15292 * c-decl.c (build_compound_literal): Add location argument.
15293 Make all diagnostic calls use location.
15294 (start_struct): Same.
15295 (finish_struct): Same.
15296 (start_enum): Same.
15297 (build_enumerator): Same.
15298 (start_function): Same.
15299 (grokdeclarator): Make all diagnostic calls use location.
15300 (store_parm_decls_oldstyle): Same.
15301 * c-typeck.c (build_function_call): Add location argument.
15302 Make all diagnostic calls use location.
15303 (do_case): Same.
15304 (c_finish_bc_stmt): Same.
15305 * tree-nested.c (get_trampoline_type): Add argument.
15306 Pass location to build_decl.
15307 (lookup_tramp_for_decl): Pass location to get_trampoline_type.
15308 * rtl.h (RTL_LOCATION): New.
15309 * c-common.c (c_add_case_label): Add location argument.
15310 Make all diagnostic calls use location.
15311 * c-common.h: Add location argument to make_fname_decl, do_case,
15312 c_add_case_label, build_function_call, resolve_overloaded_builtin.
15313 * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
15314 Set it appropriately for every case. Pass enum_loc to start_enum
15315 call. Pass value_loc first to build_enumerator. Pass enum_loc to
15316 parser_xref_tag.
15317 (c_parser_struct_or_union_specifier): Save location. Use it for
15318 start_struct, finish_struct, and parser_xref_tag.
15319
2a6a6991 153202009-06-12 Ian Lance Taylor <iant@google.com>
15321
c6aaf951 15322 * fold-const.c (fold_unary): Rename local variable and to and_expr.
2a6a6991 15323
15324 * c-opts.c (c_common_handle_option): For -Wc++-compat set
15325 cpp_opts->warn_cxx_operator_names.
15326
380c5f61 153272009-06-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
15328
15329 PR tree-opt/38865
15330 * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
15331 is returns NULL and OP is a VCE, look through the VCE.
15332
754a9c6c 153332009-06-12 Ian Lance Taylor <iant@google.com>
15334
15335 PR bootstrap/40430
15336 * collect2.c (main): Use CONST_CAST2 in code inside #if
15337 LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
15338
bd9c33a8 153392009-06-12 Joey Ye <joey.ye@intel.com>
15340
15341 PR middle-end/39146
15342 * cfgexpand.c (get_decl_align_unit): Update
15343 max_used_stack_slot_alignment with align instead of
15344 stack_alignment_needed.
15345
15346 * function.c (assign_stack_local_1): Update
15347 max_used_stack_slot_alignment with alignment_in_bits instead
15348 of stack_alignment_needed.
15349 (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
15350 here.
15351
e59b3312 153522009-06-12 Jakub Jelinek <jakub@redhat.com>
15353
15354 * dwarf2out.c (last_var_location_insn): New variable.
15355 (dwarf2out_end_epilogue): Clear last_var_location_insn.
15356 (dwarf2out_var_location): Don't record anything after last real
15357 insn. Only change labels if there were any real instructions
15358 in between last note and this one, or if changed sections.
15359
eb0e7e5d 153602009-06-11 Richard Henderson <rth@redhat.com>
15361
bd9c33a8 15362 * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
d30e4246 15363 note when storing the frame pointer in a register.
15364 (FRP): Don't redefine to nothing for epilogue.
15365 (alpha_expand_epilogue): Mark register and sp restores.
15366 (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
15367
eb0e7e5d 15368 * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
15369 when gen_lowpart is needed.
15370
a6f7c039 153712009-06-11 Richard Henderson <rth@redhat.com>
15372
750daa32 15373 * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
15374
a6f7c039 15375 * dwarf2out.c (need_data_align_sf_opcode): New.
15376 (div_data_align): Move earlier.
15377 (def_cfa_1, reg_save): Use it.
15378
614b751e 153792009-06-11 H.J. Lu <hongjiu.lu@intel.com>
15380
15381 * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
15382 (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
15383 (ix86_handle_option): Handle OPT_mcrc32.
15384 (ix86_target_string): Add -mcrc32.
15385 (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
15386
15387 * config/i386/i386.h (TARGET_CRC32): New.
15388
c6aaf951 15389 * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
614b751e 15390 (sse4_2_crc32di): Likewise.
15391
c6aaf951 15392 * config/i386/i386.opt (mcrc32): New.
614b751e 15393
15394 * doc/invoke.texi: Document -mcrc32.
15395
4a631454 153962009-06-11 Richard Henderson <rth@redhat.com>
15397
614b751e 15398 * common.opt (gdwarf-): Accept a version number.
4a631454 15399 * doc/invoke.texi (gdwarf-): Update docs.
15400 * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
15401 * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
15402 version level, and record it.
15403
15404 * dwarf2.h (DW_CIE_VERSION): Remove.
15405 * dwarf2out.c (DWARF_VERSION): Remove.
15406 (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
15407 (output_call_frame_info): Use CIE version 3 for dwarf3,
15408 or if the return register column is out of range for version 1.
15409 (dwarf_stack_op_name): Add all dwarf3 values.
15410 (DEBUG_PUBTYPES_SECTION): New.
15411 (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
15412 encoding change for dwarf3.
15413 (output_die) [dw_val_class_die_ref]: Likewise.
15414 (output_compilation_unit_header): Emit correct version for dwarf3.
15415 (output_line_info): Likewise.
15416 (output_pubnames): Update for DWARF_VERSION removal.
15417 (output_aranges): Likewise.
15418 (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
15419 (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
15420 (dwarf2out_finish): Likewise.
15421
33a67b8d 154222009-06-11 David Daney <ddaney@caviumnetworks.com>
15423
15424 * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
15425 in r148403.
15426
d2b48f0c 154272009-06-11 David Daney <ddaney@caviumnetworks.com>
15428
15429 PR c/39252
15430 * doc/extend.texi ( __builtin_unreachable): Document new builtin.
15431 * builtins.c (expand_builtin_unreachable): New function.
15432 (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
15433 * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
15434 * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
15435 successors.
15436 * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
15437 searching for missing barriers.
15438
31bcb516 154392009-06-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15440
15441 * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
15442 when -fprofile-generate* was passed.
15443 * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
15444
df3bfef4 154452009-06-11 Anthony Green <green@moxielogic.com>
15446
c6aaf951 15447 * config/moxie/moxie.md: Define length attribute for all instructions.
df3bfef4 15448 (rCC): Define.
15449 (*b<cond:code>): Support limited branch ranges for new PC-relative
15450 branch instructions.
15451 * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
15452
d5257977 154532009-06-11 Jakub Jelinek <jakub@redhat.com>
15454
745ee33e 15455 * config/i386/i386.c (min_insn_size): Use get_attr_length
15456 for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
15457 For __asm return 0.
15458
d5257977 15459 * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
15460 instead of emit_insn_before.
15461
9448096b 154622009-06-10 Ian Lance Taylor <iant@google.com>
15463
15464 PR bootstrap/40408
15465 * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
15466 GIMPLE_SWITCH.
15467
b50b1b69 154682009-06-10 Revital Eres <eres@il.ibm.com>
15469
15470 * passes.c (init_optimization_passes): Reschedule
15471 predictive-commoning pass before complete unroll pass.
15472
9967e578 154732009-06-10 Martin Jambor <mjambor@suse.cz>
15474
15475 * cgraph.c (cgraph_node_can_be_local_p): New function.
15476 (cgraph_make_node_local): New function.
15477 * cgraph.h (cgraph_node_can_be_local_p): Declare.
15478 (cgraph_make_node_local): Declare.
15479
33a0b99d 154802009-06-10 Nathan Froyd <froydnj@codesourcery.com>
15481
15482 * tree.h (tree_base): Add packed_flag and user_align fields.
15483 Decrease size of spare field.
15484 (TYPE_USER_ALIGN): Use user_align from tree_base.
15485 (DECL_USER_ALIGN): Likewise.
15486 (TYPE_PACKED): Use packed_flag from tree_base.
15487 (DECL_PACKED): Likewise.
15488 (tree_type): Delete packed_flag and user_align fields. Widen
15489 precision field. Widen mode field and shuffle fields to align
15490 mode on an 8-bit boundary.
15491 (tree_decl_common): Delete decl_flag_1 and user_align fields.
15492 Renumber decl_flag_* fields. Fix comments. Widen
15493 decl_common_unused field.
c6aaf951 15494 (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
33a0b99d 15495 (DECL_EXTERNAL): Likewise.
15496 (DECL_BIT_FIELD): Likewise.
15497 (DECL_NONADDRESSABLE_P): Likewise.
15498 (TYPE_DECL_SUPRESS_DEBUG): Likewise.
15499 * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
15500
f7f05a07 155012009-06-10 Ian Lance Taylor <iant@google.com>
15502
15503 * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
15504 (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
15505 (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
15506 (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
15507 (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
15508 DEF_VEC_ALLOC_FUNC_P.
15509 (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
15510 (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
15511 DEF_VEC_ALLOC_FUNC_O.
15512 (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
15513 (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
15514 DEF_VEC_ALLOC_FUNC_I.
15515 (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
15516 (vec_stack_p_reserve_exact_1): Declare.
15517 (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
15518 (vec_stack_free): Declare.
15519 (VEC_stack_alloc): Define.
15520 (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
15521 (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
15522 (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
15523 * vec.c (void_p): New type. Call DEF_VEC_P and DEF_VEC_ALLOC_P
15524 for void_p.
15525 (stack_vecs): New static variable.
15526 (vec_stack_p_reserve_exact_1): New function.
15527 (vec_stack_o_reserve_1): New static function.
15528 (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
15529 (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
15530 (vec_stack_free): New function.
15531 * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
15532 (VEC_df_ref_stack_alloc): Define.
15533 (df_mw_hardreg_ptr): New type. Use DEF_VEC_P and
15534 DEF_VEC_ALLOC_P_STACK.
15535 (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
15536 (struct df_collection_rec): Change _vec fields to VEC. Remove
15537 _use fields.
15538 (df_free_collection_rec): Adjust for new fields.
15539 (df_insn_rescan): Use new df_collection_rec fields.
15540 (df_notes_rescan, df_canonize_collection_rec): Likewise.
15541 (df_ref_create_structure, df_ref_record): Likewise.
15542 (df_get_conditional_uses, df_get_call_refs): Likewise.
15543 (df_insn_refs_collect, df_bb_refs_collect): Likewise.
15544 (df_bb_refs_record, df_record_entry_block_defs): Likewise.
15545 (df_record_exit_block_uses, df_bb_verify): Likewise.
c6aaf951 15546 (df_swap_refs): Change ref_vec parameter to VEC. Change all callers.
f7f05a07 15547 (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
15548 Remove count parameter. Change return type to void. Change all
15549 callers.
15550 (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
15551 Remove count parameter. Change return type to void. Change all
15552 callers.
15553 (df_install_refs): Change old_vec parameter to VEC. Remove count
15554 parameter. Change all callers.
15555 (df_install_mws): Change old_vec parameter to VEC. Remove count
15556 parameter. Change all callers.
15557 (df_refs_verify): Change new_rec parameter to VEC. Change call
15558 callers.
15559 (df_mws_verify): Likewise.
15560
7a63ab96 155612009-06-10 Alexandre Oliva <aoliva@redhat.com>
15562
15563 * gcc.c (compare_files): Cast munmap argumento to caddr_t.
15564
9e26132e 155652009-06-10 H.J. Lu <hongjiu.lu@intel.com>
15566
15567 * doc/extend.texi: Add description for __builtin_ia32_crc32di.
15568
be52b6d8 155692009-06-10 Anthony Green <green@moxielogic.com>
15570
15571 * config/moxie/crti.asm: New file.
15572 * config/moxie/crtn.asm: New file.
15573 * config/moxie/moxie.c: New file.
15574 * config/moxie/moxie.h: New file.
15575 * config/moxie/sfp-machine.h: New file.
15576 * config/moxie/moxie-protos.h: New file.
15577 * config/moxie/t-moxie: Created.
15578 * config/moxie/t-moxie-softfp: Created.
15579 * config/moxie/moxie.md: Created.
15580 * config/moxie/constraints.md: Created.
15581 * config.gcc: Add moxie support.
15582 * doc/md.texi (Machine Constraints): Add moxie constraints.
15583 * doc/contrib.texi (Contributors): Mention moxie port.
15584 * doc/install.texi (Specific): Mention the moxie port.
15585
423aab86 155862009-06-09 Ian Lance Taylor <iant@google.com>
15587
15588 * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
15589 compiling with C++.
15590 * optabs.c (optab_table): Only use designated initializers if
15591 HAVE_DESIGNATED_INITIALIZERS is defined.
15592 (convert_optab_table): Likewise.
15593 (init_optabs): Always call init_insn_codes if
15594 HAVE_DESIGNATED_INITIALIZERS is not defined.
15595
d5b637fa 155962009-06-09 Ian Lance Taylor <iant@google.com>
15597
15598 * targhooks.c (default_builtin_vectorized_function): Change fn
15599 parameter to unsigned int.
15600 (default_builtin_vectorized_conversion): Change code parameter to
15601 unsigned int.
15602 (default_builtin_reciprocal): Change fn parameter to unsigned int.
15603 * targhooks.h: Update declarations.
15604 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
15605 parameter to unsigned int.
15606
15607 * c-typeck.c (comptypes_check_enum_int): New static function.
15608 (comptypes_internal): Add enum_and_int_p parameter. Change all
15609 callers.
15610 (comp_target_types): Add location parameter. Change all callers.
15611 (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
15612 Change all callers.
15613 (function_types_compatible_p, type_lists_compatible_p): Likewise.
15614 (build_conditional_expr): Add colon_loc parameter. Change all
15615 callers.
c6aaf951 15616 (convert_for_assignment): Add location parameter. Change all callers.
d5b637fa 15617 * c-parser.c (c_parser_conditional_expression): Pass location of
15618 colon to build_conditional_expr.
15619 * c-tree.h (build_conditional_expr): Update declaration.
15620
d970c7fe 156212009-06-09 Sebastian Pop <sebastian.pop@amd.com>
15622
15623 * graphite.c: Revert previous patch.
15624
1aa098ae 156252009-06-09 Sebastian Pop <sebastian.pop@amd.com>
15626
15627 PR bootstrap/40103
15628 * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
15629
f937ec59 156302009-06-09 Ghassan Shobaki <ghassan.shobaki@amd.com>
15631
614b751e 15632 * tree-ssa-loop-prefetch.c
15633 (loop_prefetch_arrays): Fixed a portability problem in printf format
15634 string.
f937ec59 15635
31000708 156362009-06-09 Martin Jambor <mjambor@suse.cz>
15637
15638 PR tree-optimization/40351
c6aaf951 15639 * tree-sra.c (propagate_subacesses_accross_link): Check that a
15640 refrence to a potential artifical subaccess can be constructed.
31000708 15641
9b8dc018 156422009-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
15643
15644 * config/sh/sh-protos.h (sh_optimization_options): Declare.
15645 (sh_override_options): Likewise.
15646 * config/sh/sh.c: Include params.h.
15647 (sh_optimization_options): New.
15648 (sh_override_options): Likewise.
15649 * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
15650 (OVERRIDE_OPTIONS): Use sh_override_options.
15651
dcec2982 156522009-06-08 Jakub Jelinek <jakub@redhat.com>
15653
15654 * dwarf2out.c (emit_cfa_remember): New variable.
15655 (add_fde_cfi): If emit_cfa_remember, recurse to add
15656 DW_CFA_remember_state first.
15657 (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
15658 instead just set emit_cfa_remember.
15659
804f8485 156602009-06-08 Jan Hubicka <jh@suse.cz>
15661
15662 PR debug/40126
15663 * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
15664
7fe9b425 156652009-06-08 Jan Hubicka <jh@suse.cz>
15666
15667 PR middle-end/39834
c6aaf951 15668 * cgraphunit.c (save_inline_function_body): Do not copy transform
15669 hooks for saved inline bodies.
7fe9b425 15670 * ipa-passes.c (do_per_function): Do not add the hoks multiple times
15671 for given function.
15672
01e196ce 156732009-06-08 Adam Nemet <anemet@caviumnetworks.com>
15674
15675 * jump.c (returnjump_p): Handle delayed branches. Add missing
15676 function comment.
15677
b437daf4 156782009-06-08 Jan Hubicka <jh@suse.cz>
15679
15680 PR middle-end/40102
15681 * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
15682 original node might've been modified.
15683 * tree-inline.c (copy_bb): Do not assume that all clones are the same.
15684
fbc1ccbc 156852009-06-08 Jakub Jelinek <jakub@redhat.com>
15686
15687 * tree-object-size.c (addr_object_size): Add OSI argument.
15688 Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
15689 (compute_builtin_object_size, expr_object_size): Adjust callers.
15690 (plus_stmt_object_size): Call addr_object_size instead of
15691 compute_builtin_object_size.
15692
0ab353e1 156932009-06-08 Ghassan Shobaki <ghassan.shobaki@amd.com>
614b751e 15694 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
f6c8c8fc 15695
15696 * tree-ssa-loop-prefetch.c
15697 (gather_memory_references): Introduced a counter for the number of
0ab353e1 15698 memory references.
f6c8c8fc 15699 (anything_to_prefetch_p): Introduced a counter for the number of
0ab353e1 15700 prefetches.
f6c8c8fc 15701 (is_loop_prefetching_profitable): New function with a cost model
0ab353e1 15702 for prefetching.
f6c8c8fc 15703 (loop_prefetch_arrays): Use the new cost model to determine if
0ab353e1 15704 prefetching is profitable.
f6c8c8fc 15705 * params.def (MIN_INSN_TO_PREFETCH_RATIO,
0ab353e1 15706 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
f6c8c8fc 15707 * params.h (MIN_INSN_TO_PREFETCH_RATIO,
0ab353e1 15708 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
f6c8c8fc 15709 * doc/invoke.texi (MIN_INSN_TO_PREFETCT_RATIO,
0ab353e1 15710 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
f6c8c8fc 15711
e32b531f 157122009-06-08 Michael Matz <matz@suse.de>
15713
15714 PR debug/40012
e32b531f 15715 * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
15716 partitions use the same.
15717 (expand_one_var): Deal with DECL_RTL sometimes begin set also
15718 for basevars of SSA_NAMEs.
15719 (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
15720 to not expand them twice.
15721 (gimple_expand_cfg): Clear DECL_RTL for those decls that have
15722 multiple places.
15723
71278019 157242009-06-08 Alexandre Oliva <aoliva@redhat.com>
15725
15726 * common.opt (fcompare-debug=, fcompare-debug-second): New.
15727 (fdump-final-insns=, gtoggle): New.
15728 * doc/invoke.texi: Document them.
15729 * final.c (rest_of_clean_state): Dump final insn stream.
15730 * gcc.c (invoke_as): Hook in -fcompare-debug.
15731 (static_spec_functions): Add compare-debug-dump-opt,
15732 compare-debug-self-opt and compare-debug-auxbase-opt.
15733 (compare_debug, compare_debug_second, compare_debug_opt): New.
15734 (switches_debug_check, n_switches_debug_check): New.
15735 (debug_auxbase_opt, debug_check_temp_file): New.
15736 (process_command): Handle -fno-compare-debug, -fcompare-debug and
15737 -fcompare-debug=*.
15738 (do_self_spec): Handle arguments after switches.
15739 (do_spec_1): Add .gk extension to temp file basenames for compare.
15740 (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
15741 (cc1_options): Use it instead of normal auxbase computation for
15742 the second compare-debug compilation.
15743 (compare_files): New.
15744 (main): Set up and implement compare debug mode.
15745 (compare_debug_dump_opt_spec_function): New.
15746 (compare_debug_self_opt_spec_function): New.
15747 (compare_debug_auxbase_opt_spec_function): New.
15748 * toplev.c (process_options): Handle flag_gtoggle,
15749 flag_dump_final_insns.
15750 * coverage.c (coverage_begin_output): Don't overwrite .gcno file
15751 during -fcompare-debug-second compilation.
15752
561017b5 157532009-06-07 Ian Lance Taylor <iant@google.com>
15754
c6aaf951 15755 * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
561017b5 15756 * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
15757
15758 * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
15759 with no default node. Change warning with %H to warning_at.
15760 Don't clear warn_switch around case checking.
15761 * doc/invoke.texi (Warning Options): Clarify distinction between
15762 -Wswitch and -Wswitch-enum.
15763
315a45ed 157642009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15765
15766 * tree-pass.h (TODO_update_ssa_any): Document internal use only.
15767
18d8ad76 157682009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15769
15770 * gbl-ctors.h: Add header guard.
15771
d8eaff30 157722009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15773
15774 * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
15775 sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
15776 vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
15777 vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
15778 prototypes for removed functions.
15779 (expressions_equal_p): Move to ...
15780 * tree-ssa-sccvn.h: ... here and ...
15781 * matrix-reorg.c: ... adjust includes.
15782
de9d32d3 157832009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15784
15785 * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
15786
9eba252e 157872009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15788
15789 * c-decl.c (finish_decl): Use bool for variable was_incomplete.
15790 (finish_function): Remove erroneous whitespace.
15791
dd24d1a6 157922009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15793
2c2eb7fa 15794 * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
15795 (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
3d400f58 15796
157972009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15798
15799 * errors.c (internal_error): Commentary typo fix.
15800 * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
15801 * tree-ssa-pre.c: Ditto.
dd24d1a6 15802
2c2eb7fa 158032009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15804
15805 * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
15806 them is supposed to hold actual statements.
15807
e1c8f1c5 158082009-06-06 Ian Lance Taylor <iant@google.com>
15809
15810 * doc/extend.texi (Attribute Syntax): Document that C++ labels on
15811 empty statements can now have attributes.
15812
e6408be9 158132009-06-05 Shujing Zhao <pearly.zhao@oracle.com>
15814
15815 * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
15816 * config/mips/mips.md: Ditto.
15817
253e1b4a 158182009-06-05 Nathan Froyd <froydnj@codesourcery.com>
15819
15820 * config/rs6000/eabi.asm (__eabi_convert): Don't define if
15821 _RELOCATABLE.
15822 (__eabi_uconvert): Likewise.
15823
aef98aab 158242009-06-05 Nathan Froyd <froydnj@codesourcery.com>
15825
15826 * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
15827 CFI_* definitions with IN_GCC.
15828
8cb0d379 158292009-06-05 David Edelsohn <edelsohn@gnu.org>
15830
15831 * xcoffout.h (xcoffout_source_line): Update prototype.
15832
c3cfad90 158332009-06-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15834
15835 * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
15836 mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
15837
f63d3ecc 158382009-06-05 Jakub Jelinek <jakub@redhat.com>
15839
15840 PR middle-end/40340
15841 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
15842 inlined_function_outer_scope_p blocks for artificial inlines
15843 even at -g0/-g1.
15844 * tree.c (tree_nonartificial_location): Rewrite using
15845 block_nonartificial_location.
15846
454f25be 158472009-06-05 Revital Eres <eres@il.ibm.com>
15848 Leehod Baruch <leehod@il.ibm.com>
15849
15850 * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
15851 (expand_expr_real_1): Remove comment.
15852 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
15853 Vectorize misaligned access when the target supports it.
c6aaf951 15854 (vect_supportable_dr_alignment): Check for unaligned access support.
454f25be 15855 * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
15856 and remove asset.
15857
be6a5df4 158582009-06-05 Julian Brown <julian@codesourcery.com>
15859
15860 * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
15861 * config/arm/ieee754-sf.S (cmpsf2): Likewise.
15862
75b9059b 158632009-06-05 Richard Guenther <rguenther@suse.de>
15864
15865 PR bootstrap/40350
15866 * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
15867 as possibly unused.
15868
f63d3ecc 158692009-06-05 Jakub Jelinek <jakub@redhat.com>
a3cd0f6a 15870
15871 * config/s390/s390.c (global_not_special_regno_p): New static inline.
15872 (save_gprs): Don't tell unwinder when a global register is saved.
15873 (s390_emit_epilogue): Emit needed epilogue unwind info.
15874
55df8db3 158752009-06-05 Alexandre Oliva <aoliva@redhat.com>
15876
15877 * dwarf2out.c (deferred_asm_name): New.
15878 (add_name_and_src_coords_attributes): Defer creation of
15879 DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
15880 computed yet.
15881 (move_linkage_attr): New.
15882 (dwarf2out_finish): Revisit deferrals and emit attributes at the
15883 right place.
15884
78e29a95 158852009-06-05 Alexandre Oliva <aoliva@redhat.com>
15886
15887 * tree-nested.c (finalize_nesting_tree_1): Declare the
15888 frame_decl in the binding tree.
15889
d01c707b 158902009-06-04 Cary Coutant <ccoutant@google.com>
15891
15892 * basic-block.h (struct basic_block_def): Add discriminator field.
15893 * dbxout.c (dbxout_source_line): Add new parameter. Change all
15894 callers.
15895 * debug.c (do_nothing_debug_hooks): Add additional entry.
15896 (debug_nothing_int_charstar_int): New function.
c6aaf951 15897 * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
d01c707b 15898 (debug_nothing_int_charstar_int): New declaration.
15899 * dwarf2out.c (dwarf2out_source_line): Add new parameter. Write
15900 discriminator value in .loc directive.
15901 * final.c (last_discriminator): New variable.
15902 (discriminator): New variable.
15903 (final_start_function): Initialize above variables, pass current
15904 discriminator to debug hook.
15905 (notice_source_line): Check for discriminator change.
15906 * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
15907 * sdbout.c (sdbout_source_line): New parameter.
15908 * tree-cfg.c (struct locus_discrim_map): New structure type.
15909 (discriminator_per_locus): New hash table.
15910 (build_gimple_cfg): Allocate and free discriminator hash table.
15911 (make_edges): Call assign_discriminator.
15912 (locus_map_hash): New function.
15913 (locus_map_eq): New function.
15914 (next_discriminator_for_locus): New function.
15915 (same_line_p): New function.
15916 (assign_discriminator): New function.
15917 (make_cond_expr_edges): Call assign_discriminator.
15918 (make_gimple_switch_edges): Likewise.
15919 (first_non_label_stmt): New function.
15920 * vmsdbgout.c (vmsdbgout_source_line): Add new parameter. Change
15921 all callers.
15922 * xcoffout.c (xcoffout_source_line): Add new parameter.
15923
15924 * configure.ac (gcc_cv_as_discriminator): New configury check for
15925 gas support for discriminator.
15926 * configure: Regenerate.
15927 * config.in: Regenerate.
15928
7430cad1 159292009-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15930
15931 * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
15932 val after checking for integers.
15933
b51058a6 159342009-06-04 Uros Bizjak <ubizjak@gmail.com>
15935
15936 * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
15937 X64_REGPARM_MAX.
15938 (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
15939 (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
15940 (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
15941 * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
15942 X64_REGPARM_MAX. Use X86_64_MS_SSE_REGPARM_MAX instead of
15943 X64_SSE_REGPARM_MAX.
15944 * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
15945 X64_SSE_REGPARM_MAX.
15946
4537c5d9 159472009-06-04 Alexandre Oliva <aoliva@redhat.com>
15948
15949 * gcc.c (report_times_to_file): New.
15950 (execute): Implement it.
15951 (process_command): Support -time=.
15952 * doc/invoke.texi: Document it.
15953
ee093c13 159542009-06-04 Alexandre Oliva <aoliva@redhat.com>
15955
15956 * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
15957 that have value exprs.
15958
1e03a59b 159592009-06-04 Alexandre Oliva <aoliva@redhat.com>
15960
15961 * dwarf2asm.c (dw2_force_const_mem): Defer creation of
15962 declarations for constants until...
15963 (dw2_output_indirect_constant_1): ... this point.
15964
a3ffc315 159652009-06-04 Richard Earnshaw <rearnsha@arm.com>
15966
15967 PR target/10242
15968 * arm.md (arm_addsi3): Don't try to split an add with an
15969 eliminable register until after reload has completed.
15970
cd819d2f 159712009-06-03 Ian Lance Taylor <iant@google.com>
15972
15973 * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
15974 * genattrtab.c (write_length_unit_log): Likewise.
15975 * genchecksum.c (dosum): Likewise.
15976 * gengtype.c (write_rtx_next): Likewise.
15977 (finish_root_table, write_roots): Likewise.
15978 * gimple.c (gimple_ops_offset_): Likewise.
15979 * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
15980 * config/arc/arc.c (arc_attribute_table): Likewise.
15981 * config/arm/arm.c (arm_attribute_table): Likewise.
15982 * config/avr/avr.c (avr_attribute_table): Likewise.
15983 * config/crx/crx.c (crx_attribute_table): Likewise.
15984 * config/m32r/m32r.c (m32r_attribute_table): Likewise.
15985 * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
15986 * config/mcore/mcore.c (mcore_attribute_table): Likewise.
15987 * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
15988 * config/sh/sh.c (sh_attribute_table): Likewise.
15989 * config/sparc/sparc.c (sparc_attribute_table): Likewise.
15990 * config/spu/spu.c (spu_attribute_table): Likewise.
15991 * config/v850/v850.c (v850_attribute_table): Likewise.
15992
15993 * config/alpha/alpha.c (vms_attribute_table): Make static.
15994 * config/bfin/bfin.c (bfin_attribute_table): Likewise.
15995 * config/h8300/h8300.c (h8300_attribute_table): Likewise.
15996 * config/mips/mips.c (mips_attribute_table): Likewise.
15997
15998 * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
15999 $(SYSTEM_H).
16000 (cc1-checksum.o): Likewise.
16001
9a4e1a73 160022009-06-03 Steve Ellcey <sje@cup.hp.com>
16003
16004 * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
16005
a9cc13e1 160062009-06-03 Jakub Jelinek <jakub@redhat.com>
16007
5f59286d 16008 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
16009 insn if it is changing sp. Use gen_add3_insn instead of
16010 conditionally gen_addsi3 and gen_adddi3.
16011 (offset_below_red_zone_p): New static inline function.
16012 (rs6000_emit_epilogue): Emit needed epilogue unwind info.
16013 Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
16014 * config/rs6000/ppc-asm.h: Include auto-host.h.
16015 (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
16016 CFI_RESTORE): Define.
16017 * config/rs6000/crtresxgpr.asm: Add unwind info.
16018 * config/rs6000/crtresxfpr.asm: Likewise.
16019 * config/rs6000/crtresgpr.asm: Likewise.
16020 * config/rs6000/crtresfpr.asm: Likewise.
16021 * config/rs6000/crtsavgpr.asm: Likewise.
16022 * config/rs6000/crtsavfpr.asm: Likewise.
16023
b3154a1f 16024 * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
16025 argument of DWARF2_FRAME_REG_OUT macros.
a9cc13e1 16026
e5a8295a 160272009-06-03 Julian Brown <julian@codesourcery.com>
16028
16029 * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
16030 words or less (including TImode) in core registers.
16031
261b246f 160322009-06-03 Richard Guenther <rguenther@suse.de>
16033
16034 PR middle-end/40328
16035 * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
16036
2dfe9981 160372009-06-03 Andrey Belevantsev <abel@ispras.ru>
16038
f6c8c8fc 16039 * statistics.c (statistics_counter_event): Do not record event
2dfe9981 16040 in pass dump if its number == -1.
f6c8c8fc 16041 (curr_statistics_hash): Add assert that we never get passes
2dfe9981 16042 with static number == -1.
16043
9a60c3b9 160442009-06-03 Richard Guenther <rguenther@suse.de>
16045 Andrey Belevantsev <abel@ispras.ru>
16046
f6c8c8fc 16047 * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
9a60c3b9 16048 non-BLKmode arrays addressable.
16049
f539feff 160502009-06-03 Maxim Kuvyrkov <maxim@codesourcery.com>
16051
16052 * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
16053 * config/m68k/m68k.h: ... here.
f539feff 16054
4ecddf77 160552009-06-03 Martin Jambor <mjambor@suse.cz>
16056
16057 PR tree-optimization/40323
16058 * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
16059 assignment.
16060
831afe34 160612009-06-03 Richard Guenther <rguenther@suse.de>
16062
16063 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
16064 consistently.
16065
cb94f03c 160662009-06-03 Shujing Zhao <pearly.zhao@oracle.com>
16067
16068 * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
16069 JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
16070 JUMP_TABLE_DATA_P where applicable.
16071 * config/sh/sh.c: Ditto.
16072 * config/sh/sh.h: Ditto.
16073 * config/sh/sh.md: Ditto.
16074 * config/sh/symbian.c: Ditto.
16075
faa14cce 160762009-06-03 Uros Bizjak <ubizjak@gmail.com>
16077
16078 * config/i386/driver-i386.c (describe_cache): Optimize
16079 concatenation of strings. Use snprintf instead of sprintf.
16080 (host_detect_local_cpu): Ditto. Ignore -march and -mtune for native
16081 target when not compiling with GCC.
16082
2b0c9242 160832009-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
16084
16085 * config/sh/sh.c: Revert last change.
16086 (sh_expand_epilogue): Emit a blockage insn before the frame
16087 pointer adjustment unconditionally.
16088
d4902064 160892009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
16090
16091 * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
16092 * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
16093 * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
16094 * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
16095 to COLLECT_GCC_OPTIONS.
16096
ef6fd54f 160972009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
16098
16099 * collect2.c (target_system_root): New variable.
16100 (main): Handle --sysroot=.
16101 (ignore_library): Strip the sysroot from the library path.
16102
cabc7147 161032009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
16104
16105 * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
16106 (collect2.o): Depend on collect2-aix.h.
16107 (collect2-aix.o): New rule.
16108 * collect2-aix.h: New file.
16109 * collect2-aix.c: Likewise.
16110 * collect2.c: Include collect2-aix.h. Don't undefine
16111 OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
16112 Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
16113 Use TARGET_AIX_VERSION instead of _AIX51.
16114 * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
16115 * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
16116 * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
16117 * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
16118 * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
16119
329cbab5 161202009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
16121
16122 * collect2.c (ignore_library): Avoid premature post-increment
16123 and null deference.
16124
5b69e2e1 161252009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
16126
16127 * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
16128 * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
16129 !CROSS_DIRECTORY_STRUCTURE alternative and use it for
16130 CROSS_DIRECTORY_STRUCTURE too.
16131 (LINK_LIBG_SPEC): Likewise.
16132 (LIB_SPEC): Add %R to sysroot paths.
16133 * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
16134 (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
16135 * config/rs6000/aix51.h: As for aix43.h.
16136 * config/rs6000/aix52.h: Likewise.
16137 * config/rs6000/aix53.h: Likewise.
16138 * config/rs6000/aix61.h: Likewise.
16139 * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
16140 to the beginning of sysroot paths.
16141
f86c2921 161422009-06-02 Alexandre Oliva <aoliva@redhat.com>
16143
16144 * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
16145 INSN_LISTs that are out of the REG_NOTE range.
16146
b635a1a3 161472009-06-02 Alexandre Oliva <aoliva@redhat.com>
16148
16149 * loop-unroll.c (struct iv_to_split): Add pointer to next.
16150 (struct var_to_expand): Likewise.
16151 (struct opt_info): Add head and tail for linked lists of the above.
16152 (analyze_insn_to_expand_var): Initialize next.
16153 (analyze_iv_to_split_insn): Likewise.
16154 (analyze_insns_in_loop): Create linked lists.
16155 (allocate_basic_variable): Simplify for use without hash table.
16156 (insert_var_expansion_initialization): Likewise, make it type-safer.
16157 (combine_var_copies_in_loop_exit): Likewise.
16158 (apply_opt_in_copies): Walk lists rather than hash tables.
16159 (release_var_copies): Simplified and inlined by hand into...
16160 (free_opt_info): ... this function.
16161
07958fba 161622009-06-02 Richard Guenther <rguenther@suse.de>
16163
16164 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
16165 for field decls.
16166
c3771ec9 161672009-06-02 Alexandre Oliva <aoliva@redhat.com>
16168
16169 * cfgexpand.c (gimple_expand_cfg): Discard the source location
16170 only for builtins that are not overridden.
16171
d5b19135 161722009-06-02 Alexandre Oliva <aoliva@redhat.com>
16173
16174 * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
16175 label string.
16176
44cb2148 161772009-06-02 Alexandre Oliva <aoliva@redhat.com>
16178
16179 * df-core.c (df_ref_debug): Honor -fdump-noaddr.
16180
bc20fdd7 161812009-06-02 Alexandre Oliva <aoliva@redhat.com>
16182
16183 * combine.c (move_deaths): Compare LUIDs within the same BB only.
16184
0a59e439 161852009-06-02 Alexandre Oliva <aoliva@redhat.com>
16186
16187 * common.opt (fdump-unnumbered-links): New.
16188 * doc/invoke.texi (-fdump-unnumbered-links): Document it.
16189 * print-rtl.c (flag_dump_unnumbered_links): New.
16190 (print_rtx): Test it.
16191
11417c43 161922009-06-02 Richard Earnshaw <rearnsha@arm.com>
16193
16194 * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
16195 push/pop multiple to 8-byte alignment.
a3ffc315 16196
7737aadd 161972009-06-01 Jakub Jelinek <jakub@redhat.com>
16198
c42a6003 16199 * config/i386/i386.c (queued_cfa_restores): New static variable.
16200 (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
16201 functions.
16202 (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
16203 (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
16204 Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
16205 Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
16206 note unconditionally.
16207 (ix86_emit_restore_regs_using_mov): Likewise.
16208 (ix86_emit_restore_sse_regs_using_mov): Likewise.
16209 (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
16210 it through to ix86_emit_restore_reg_using_pop.
16211 (ix86_emit_leave): Add RED_OFFSET argument. Call
16212 ix86_add_queued_cfa_restore_notes. Call ix86_add_cfa_restore_note
16213 instead of adding REG_CFA_OFFSET note unconditionally.
16214 (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
16215 the above functions. Call ix86_add_queued_cfa_restore_notes when
16216 needed.
16217
16218 * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
16219 force output of the label even for dwarf2out_do_cfi_asm.
16220 (add_fde_cfi): If -g2 and above and cfi might change CFA,
16221 force creation of CFI label and chain DW_CFA_set_loc jumping to it
16222 for convert_cfa_to_fb_loc_list. Adjust other dwarf2out_cfi_label
16223 caller.
16224 (dwarf2out_stack_adjust, dwarf2out_frame_debug,
16225 dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
16226 dwarf2out_cfi_label callers.
16227 * tree.h (dwarf2out_cfi_label): Adjust prototype.
16228 * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
16229 Adjust dwarf2out_cfi_label callers.
16230 * config/vax/vax.c (vax_output_function_prologue): Likewise.
16231
e3b9403e 16232 * config/i386/i386.h (struct machine_cfa_state,
16233 struct machine_function): Guard with ifndef USED_FOR_TARGET
16234 instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
16235
b1fc924e 16236 PR other/40024
16237 * emutls.c (__emutls_get_address): Change arr->size to mean number
16238 of allocated arr->data entries instead of # of slots + 1.
16239
7737aadd 16240 PR middle-end/40316
16241 * recog.c (peep2_reinit_state): New function.
16242 (peephole2_init_state): Use it at the end of a basic block and also
16243 when seeing a RTX_FRAME_RELATED_P insn.
16244
a58127d5 162452009-06-01 Steve Ellcey <sje@cup.hp.com>
16246
16247 * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
16248 fixuns_truncrfdi2): New.
16249 (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
16250 *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
16251 *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
16252 *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
16253 *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
16254 *recip_approx): Remove.
16255 (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
16256 moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
16257 divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
16258 move to div.md.
16259 * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
16260 setf_exp_rf): New.
16261
402ba866 162622009-06-01 Ian Lance Taylor <iant@google.com>
16263
16264 * attribs.c (register_attribute): Use CONST_CAST.
16265 * collect2.c (main): Use CONST_CAST2.
16266 (scan_prog_file): Likewise.
16267 * gcc.c (process_command, main): Likewise.
16268 * toplev.c (toplev_main): Likewise.
16269
16270 * c-typeck.c (handle_warn_cast_qual): New static function,
16271 partially broken out of build_c_cast.
16272 (build_c_cast): Call handle_warn_cast_qual.
16273 * doc/invoke.texi (Warning Options): Document new effect of
16274 -Wcast-qual.
16275
b559b9e2 162762009-06-01 Aldy Hernandez <aldyh@redhat.com>
16277
16278 * diagnostic.c (diagnostic_build_prefix): Always print columns.
16279 (diagnostic_report_current_module): Print columns.
16280 * common.opt (flag_show_column): Enable by default.
16281
02b0d167 162822009-06-01 Luis Machado <luisgpm@br.ibm.com>
16283
16284 * alias.c (find_base_term): Check for NULL term before returning.
16285
a56c46d2 162862009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
16287
16288 Revert due to PR40320:
a56c46d2 16289 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
16290 * calls.c (emit_library_call_value_1): Don't force_operand for move
16291 and push insns.
16292
34a6a65d 162932009-06-01 Olivier Hainque <hainque@adacore.com>
afb7aecf 16294 Eric Botcazou <ebotcazou@adacore.com>
34a6a65d 16295
16296 * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
16297 to be processed as a bitfield for constructor output purposes.
16298 * output.h (initializer_constant_valid_for_bitfield_p): Declare
16299 new function.
16300 * varasm.c (oc_local_state): New type, output_constructor
16301 local state to support communication with helpers.
16302 (oc_outer_state): New type, output_constructor outer state of
16303 relevance in recursive calls.
16304 (output_constructor_array_range): New output_constructor helper,
16305 extracted code for an array range element.
16306 (output_constructor_regular_field): New output_constructor helper,
16307 extracted code for an element that is not a bitfield.
16308 (output_constructor_bitfield): New output_constructor helper,
16309 extracted code for a bitfield element. Accept an OUTER state
16310 argument for recursive processing. Recurse on record or array
16311 CONSTRUCTOR values, possibly past noop conversions.
69e84e89 16312 (initializer_constant_valid_for_bitfield_p): New predicate. Whether
34a6a65d 16313 VALUE is a valid constant-valued expression for use in a static
16314 bit-field initializer.
69e84e89 16315 (output_constructor): Rework to use helpers. Accept and honor an
16316 OUTER state argument for recursive calls. Return total size. Be
34a6a65d 16317 prepared for nested constructors initializing bitfields.
16318 (output_constant): Feed OUTER in calls to output_constructor.
16319
997988ca 163202009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
16321
16322 * calls.c (emit_library_call_value_1): Don't force_operand for move
16323 and push insns.
16324
7435242d 163252009-06-01 Nick Clifton <nickc@redhat.com>
16326
16327 * doc/invoke.texi (IA-64 Options): Fix typo.
16328
10095225 163292009-06-01 Ira Rosen <irar@il.ibm.com>
16330
16331 PR tree-optimization/39129
7c1037d2 16332 * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
10095225 16333 printed message.
7c1037d2 16334 (vect_do_peeling_for_loop_bound): Use
10095225 16335 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
16336 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
16337 (vect_loop_versioning): Likewise.
16338 (vect_create_cond_for_alias_checks): Fix indentation.
7c1037d2 16339 * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
10095225 16340 macros.
16341 (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
16342 (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
7c1037d2 16343 * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
10095225 16344 "control flow in loop".
7c1037d2 16345 (vect_estimate_min_profitable_iters): Use
10095225 16346 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
16347 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
16348 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
16349 (vect_create_data_ref_ptr): Don't mention array dimension in printing.
7c1037d2 16350 * tree-vect-stmts.c (vectorizable_store): Replace the check that the
16351 statement belongs to a group of strided accesses with the exact code
10095225 16352 check.
16353 (vectorizable_load): Likewise.
16354 * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
16355 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
16356
c4c8f6ce 163572009-06-01 Gerald Pfeifer <gerald@pfeifer.com>
16358
16359 * config/freebsd-stdint.h: New file.
16360 * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
16361 Add freebsd-stdint.h to tm_file.
16362
af29b1b3 163632009-06-01 Richard Earnshaw <rearnsha@arm.com>
16364
16365 * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
16366 (thumb2_extendhidi2): Likewise.
16367
27d1bc52 163682009-05-31 Ian Lance Taylor <iant@google.com>
16369
faa14cce 16370 * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
35a8b591 16371
163722009-05-31 Ian Lance Taylor <iant@google.com>
16373
faa14cce 16374 * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
27d1bc52 16375 (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
16376 (ipa-reference.o): Depend upon gt-ipa-reference.h.
16377
4437c3fe 163782009-05-31 Jason Merrill <jason@redhat.com>
16379
16380 * tree-pretty-print.c (print_call_name): Take the callee, not the
faa14cce 16381 call itself. Make non-static. Use dump_function_name for functions.
4437c3fe 16382 (dump_generic_node): Adjust.
16383 * diagnostic.h: Declare print_call_name.
16384 * gimple-pretty-print.c (dump_gimple_call): Use it.
16385
4f5ea781 163862009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
16387
16388 * config/sh/sh.md (ashldi3_std): New define_expand.
16389 (ashldi3): Use it.
16390
566998f1 163912009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
16392
16393 PR target/40313
16394 * config/sh/sh.c: Include debug.h.
16395 (sh_expand_epilogue): Emit a blockage insn before the frame
16396 pointer adjustment also when dwarf2out_do_frame returns true.
16397
409bc734 163982009-05-31 Richard Earnshaw <rearnsha@arm.com>
16399
16400 * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
16401 (thumb2_extendqidi2): New pattern.
16402
f9e29128 164032009-05-31 Ira Rosen <irar@il.ibm.com>
16404
16405 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
16406 mark phis for renaming.
16407 * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
16408 (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
16409 Call mark_sym_for_renaming.
16410 * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
faa14cce 16411 * tree-vect-loop.c (vect_transform_loop): Remove
16412 vect_memsyms_to_rename initialization and a call to
16413 mark_set_for_renaming.
f9e29128 16414
4872d196 164152009-05-31 Jakub Jelinek <jakub@redhat.com>
16416
16417 PR middle-end/40304
16418 * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
16419 frame related even if !set_cfa && style < 0.
16420
d068eb52 164212009-05-30 Kai Tietz <kai.tietz@onevision.com>
16422
16423 * config/i386/mingw-tls.c: New file.
faa14cce 16424 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
16425 * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
16426 defining _WIN32 but not __CYGWIN__.
d068eb52 16427
7601a55c 164282009-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16429
16430 * configure.ac: Add MPC support.
f6c8c8fc 16431
16432 * config.in, configure: Regenerate.
7601a55c 16433
25e880b1 164342009-05-29 Richard Henderson <rth@redhat.com>
16435
16436 * cfgcleanup.c (try_crossjump_to_edge): Only skip past
16437 NOTE_INSN_BASIC_BLOCK.
16438 * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
16439 Duplicate NOTE_INSN_EPILOGUE_BEG notes.
16440 * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
16441 to be deleted.
16442 * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
16443 add in_use field.
16444 (add_cfi): Disable check redefining cfa away from drap.
16445 (lookup_cfa_1): Add remember argument; handle remember/restore.
16446 (lookup_cfa): Pass remember argument.
16447 (cfa_remember): New.
16448 (compute_barrier_args_size_1): Remove sibcall check.
16449 (dwarf2out_frame_debug_def_cfa): New.
16450 (dwarf2out_frame_debug_adjust_cfa): New.
16451 (dwarf2out_frame_debug_cfa_offset): New.
16452 (dwarf2out_frame_debug_cfa_register): New.
16453 (dwarf2out_frame_debug_cfa_restore): New.
16454 (dwarf2out_frame_debug): Handle REG_CFA_* notes.
16455 (dwarf2out_begin_epilogue): New.
16456 (dwarf2out_frame_debug_restore_state): New.
16457 (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
16458 DW_CFA_restore_state.
16459 (output_cfi_directive): Likewise.
16460 (convert_cfa_to_fb_loc_list): Likewise.
16461 (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
16462 * dwarf2out.h: Update.
16463 * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
16464 (copy_insn_1): Early out for null.
16465 * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
16466 and dwarf2out_frame_debug_restore_state.
16467 * function.c (prologue, epilogue, sibcall_epilogue): Remove.
16468 (prologue_insn_hash, epilogue_insn_hash): New.
16469 (free_after_compilation): Adjust freeing accordingly.
16470 (record_insns): Create hash table if needed; push insns into
16471 hash instead of array.
16472 (maybe_copy_epilogue_insn): New.
16473 (contains): Search hash table instead of array.
16474 (sibcall_epilogue_contains): Remove.
16475 (thread_prologue_and_epilogue_insns): Split eh_return insns
16476 and mark them as epilogues.
16477 (reposition_prologue_and_epilogue_notes): Rewrite epilogue
16478 scanning in terms of basic blocks.
16479 * insn-notes.def (CFA_RESTORE_STATE): New.
16480 * jump.c (returnjump_p_1): Accept EH_RETURN.
16481 (eh_returnjump_p_1, eh_returnjump_p): New.
16482 * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
16483 CFA_REGISTER, CFA_RESTORE): New.
16484 * rtl.def (EH_RETURN): New.
16485 * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
16486
16487 * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
16488 (eh_return_internal): Use eh_return rtx; split w/ epilogue.
16489
16490 * config/i386/i386.c (gen_push): Update cfa state.
16491 (pro_epilogue_adjust_stack): Add set_cfa argument. When true,
16492 add a CFA_ADJUST_CFA note.
16493 (ix86_dwarf_handle_frame_unspec): Remove.
16494 (ix86_expand_prologue): Update cfa state.
16495 (ix86_emit_restore_reg_using_pop): New.
16496 (ix86_emit_restore_regs_using_pop): New.
16497 (ix86_emit_leave): New.
16498 (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
16499 (ix86_expand_epilogue): Add notes for unwinding the epilogue.
16500 * config/i386/i386.h (struct machine_cfa_state): New.
16501 (ix86_cfa_state): New.
16502 * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
16503 (eh_return_internal): Merge from eh_return_<mode>,
16504 use eh_return rtx, split w/ epilogue.
16505
d62e827b 165062009-05-29 Ian Lance Taylor <iant@google.com>
16507
16508 * builtins.c (validate_gimple_arglist): Don't use va_arg with
16509 enum type.
16510 * calls.c (emit_library_call_value_1): Likewise.
16511
16512 * c-typeck.c (c_build_va_arg): New function.
16513 * c-tree.h (c_build_va_arg): Declare.
16514 * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
16515 instead of build_va_arg.
16516
fe4600c9 165172009-05-29 Eric Botcazou <ebotcazou@adacore.com>
16518
16519 * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
16520 (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
16521 (ptr_difference_cost): Use affine combinations to compute it.
16522 (difference_cost): Likewise.
16523 (get_computation_cost_at): Compute more accurate cost for addresses
16524 if the ratio is a multiplier allowed in addresses.
16525 For non-addresses, consider that an additional offset or symbol is
16526 added only once.
16527
00a0e418 165282009-05-29 Jakub Jelinek <jakub@redhat.com>
16529
1f3db558 16530 * config/i386/i386.c (ix86_decompose_address): Avoid useless
16531 0 displacement. Add 0 displacement if base is %[er]bp or %r13.
16532
00a0e418 16533 * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
16534 TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
16535 (prefix_rex): For UNIT_MMX don't imply the prefix by default
16536 if MODE_DI.
16537 (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
16538 to 1 for TYPE_SSE{IADD1,CVT1}.
16539 (prefix_vex_imm8): Removed.
16540 (length_vex): Only pass 1 as second argument to
16541 ix86_attr_length_vex_default if prefix_extra is 0.
16542 (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
16543 (length): For prefix vex computation use length_immediate
16544 attribute instead of prefix_vex_imm8.
16545 (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
16546 addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
16547 *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
16548 *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
16549 (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
16550 *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
16551 a space in between the operands.
16552 (*anddi_1_rex64, *andsi_1): Likewise. Override prefix_rex to 1
16553 if one operand is 0xff and the other one si, di, bp or sp.
16554 (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
16555 other one si, di, bp or sp.
16556 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
16557 (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
16558 type and mode attributes.
16559 (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
16560 (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
16561 prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
16562 (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
16563 prefix_data16 attribute iff MODE_DF.
16564 (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
16565 (fix_trunc<mode>di_sse): Set prefix_rex attribute.
16566 (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
16567 constm128_operand in length_immediate computation.
16568 (*addhi_4): Likewise. Fix mode attribute to MODE_HI.
16569 (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
16570 (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
16571 length_immediate attribute to 1.
16572 (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
16573 (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
16574 for certain alternatives.
16575 (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
16576 prefix_data16 attribute if MODE_V1DF.
16577 (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
16578 length_immediate to 1.
16579 (set_got_rex64, set_rip_rex64): Remove length attribute, set
16580 length_address to 4, set mode attribute to MODE_DI.
16581 (set_got_offset_rex64): Likewise. Set length_immediate to 0.
16582 (fxam<mode>2_i387): Set length attribute to 4.
16583 (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
16584 *prefetch_3dnow_rex): Override length_address attribute.
16585 (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
16586 attributes.
16587 * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
16588 (constm128_operand): Removed.
16589 * config/i386/i386.c (memory_address_length): For
16590 disp && !index && !base in 64-bit mode account for SIB byte if
16591 print_operand_address can't optimize disp32 into disp32(%rip)
16592 and UNSPEC doesn't imply (%rip) addressing. Add 1 to length
16593 for fs: or gs: segment.
16594 (ix86_attr_length_immediate_default): When checking if shortform
16595 is possible, truncate immediate to the length of the non-shortened
16596 immediate.
16597 (ix86_attr_length_address_default): Ignore MEM_P operands
16598 with X constraint.
16599 (ix86_attr_length_vex_default): Only check for DImode on
16600 GENERAL_REG_P operands.
16601 * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
16602 prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
16603 (sse_cvttps2pi): Clear prefix_rep attribute.
16604 (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
16605 attribute.
16606 (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
16607 (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
16608 *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
16609 iff operand 2 is const_int_operand.
16610 (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
16611 sse2_shufpd_<mode>): Set length_immediate attribute to 1.
16612 (sse2_pshufd_1): Likewise. Set prefix attribute to maybe_vex
16613 instead of vex.
16614 (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
16615 prefix_data16.
16616 (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
16617 prefix_data16 attribute for movlpd and movhpd instructions.
16618 (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise. Override
16619 length_immediate for shufpd instruction.
16620 (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
16621 (avx_cmpp<avxmodesuffixf2c><mode>3,
16622 avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
16623 <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
16624 avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
faa14cce 16625 *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
00a0e418 16626 (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
16627 (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
16628 (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
16629 prefix_data16 attribute for the first alternative to 1.
16630 (*avx_loadlps): Override length_immediate for the first alternative.
16631 (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
16632 attributes for second alternative.
16633 (*vec_concatv2sf_sse4_1): Override length_immediate and
16634 prefix_data16 attributes for second alternative.
16635 (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
16636 vec_extract_hi_<mode>, vec_extract_lo_v16hi,
16637 vec_extract_hi_v16hi, vec_extract_lo_v32qi,
16638 vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
16639 (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
16640 prefix_data16 and length_immediate to 1.
16641 (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
16642 to 1.
16643 (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
faa14cce 16644 prefix_extra attribute for variants that don't have 0f prefix alone.
00a0e418 16645 (*avx_pinsr<ssevecsize>): Likewise. Set length_immediate to 1.
16646 (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
16647 *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
16648 *sse4_1_pextrd): Set length_immediate to 1.
16649 (*sse4_1_pinsrd): Likewise. Set prefix_extra to 1.
16650 (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
16651 to 1.
16652 (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
16653 *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
16654 length_immediate to 1 for second alternative.
16655 (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
16656 prefix_extra and length_immediate attributes for the first
16657 alternative.
16658 (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
16659 first alternative.
16660 (*vec_concatv2di_rex64_sse4_1): Likewise. Override prefix_rex
16661 to 1 for the first and third alternative.
16662 (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
16663 alternative.
16664 (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
16665 attribute.
16666 (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
16667 attribute to 0.
16668 (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
16669 *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
16670 *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
16671 *avx_psign<mode>3): Set prefix_extra attribute to 1.
16672 (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
16673 ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
16674 ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
16675 ssse3_psign<mode>3): Override prefix_rex attribute.
faa14cce 16676 (*avx_palignrti): Override prefix_extra and length_immediate to 1.
00a0e418 16677 (ssse3_palignrti): Override length_immediate to 1.
16678 (ssse3_palignrdi): Override length_immediate to 1, override
16679 prefix_rex attribute.
faa14cce 16680 (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
00a0e418 16681 (sse4a_extrqi): Override length_immediate to 2.
16682 (sse4a_insertqi): Likewise. Override prefix_data16 to 0.
16683 (sse4a_insertq): Override prefix_data16 to 0.
16684 (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
16685 avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
16686 avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
16687 *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
16688 avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
16689 and length_immediate to 1.
16690 (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
16691 sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
16692 sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
16693 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
16694 and length_immediate to 1.
16695 (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
16696 (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
16697 (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
16698 avx_ptest256): Override prefix_extra to 1.
16699 (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
16700 Override prefix_data16 and length_immediate to 1.
16701 (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
16702 sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
16703 sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
16704 sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
16705 prefix_data16 to 0 and prefix_extra to 2.
16706 (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
16707 (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
16708 attribute.
16709 (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
16710 sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
16711 Override prefix_data16 and prefix_rep to 0, length_immediate to 1
16712 and prefix_extra to 2.
16713 (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
16714 prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
16715 (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
16716 avx_vpermilvar<mode>3,
16717 avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
16718 avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
16719 avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
16720 avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
16721 Override prefix_extra to 1.
16722 (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
16723 (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
16724 vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
16725 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
16726 prefix_extra and length_immediate to 1.
16727 (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
16728 modrm to 0.
16729 (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
16730 to 1 for the first alternative.
16731 * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
16732 prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
16733 cases.
16734 (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
16735 *movv2sf_internal_avx, *movv2sf_internal): Override
16736 prefix_rep attribute for certain alternatives.
16737 (*mov<mode>_internal): Override prefix_rep or prefix_data16
16738 attributes for certain alternatives.
16739 (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
16740 attributes for certain alternatives.
16741 (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
16742 *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
16743 mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
16744 mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
16745 *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
16746 mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
16747 mmx_pswapdv2si2): Set prefix_extra attribute to 1.
16748 (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
16749 length_immediate to 1 if operand 2 is const_int_operand.
16750 (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
faa14cce 16751 *vec_extractv2si_1): Set length_immediate attribute to 1.
00a0e418 16752 (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
16753 using old 3DNOW insn rather than SSE/3DNOW_A.
16754 (mmx_emms, mmx_femms): Clear modrm attribute.
16755
8d53b873 167562009-05-29 Martin Jambor <mjambor@suse.cz>
16757
16758 * tree-sra.c: New implementation of SRA.
16759
16760 * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
16761 (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
16762 (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
16763 * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
16764 (SRA_MAX_STRUCTURE_COUNT): Removed.
16765 (SRA_FIELD_STRUCTURE_RATIO): Removed.
16766 * doc/invoke.texi (sra-max-structure-size): Removed.
16767 (sra-field-structure-ratio): Removed.
16768
7c1ab261 167692009-05-29 Jakub Jelinek <jakub@redhat.com>
16770
16771 PR middle-end/40291
16772 * builtins.c (expand_builtin_memcmp): Convert len to sizetype
16773 before expansion.
16774
961d3eb8 167752009-05-29 Andrey Belevantsev <abel@ispras.ru>
16776
16777 PR rtl-optimization/40101
16778 * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
16779 seqno. Adjust comment.
f6c8c8fc 16780 * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
961d3eb8 16781 inserting bookkeeping before a jump, the jump is not scheduled.
16782 When no positive seqno found, provide a value. Add comment.
16783
bc3c318e 167842009-05-29 Richard Guenther <rguenther@suse.de>
16785
16786 * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
16787 short-cutting on the first component.
16788
7cf869dd 167892009-05-29 Jakub Jelinek <jakub@redhat.com>
16790
16791 PR middle-end/39958
16792 * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
16793 for trees other than decls/types.
16794
2adb8813 167952009-05-29 Richard Guenther <rguenther@suse.de>
16796
16797 * tree-ssa-operands.c (get_expr_operands): Do not handle
16798 INDIRECT_REFs in the handled-component case. Remove
16799 unused get_ref_base_and_extent case.
16800 * tree-dfa.c (get_ref_base_and_extent): Avoid calling
16801 tree_low_cst and host_integerp where possible.
16802 * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
16803 codes for equivalence.
16804 * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
16805
6471e33b 168062009-05-29 David Billinghurst <billingd@gcc.gnu.org>
16807
16808 * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
f6c8c8fc 16809 to tmake_file for i[34567]86-*-cygwin*.
6471e33b 16810
fd36071f 168112009-05-29 Jakub Jelinek <jakub@redhat.com>
16812
16813 PR target/40017
16814 * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
16815 (altivec_categorize_keyword, init_vector_keywords,
16816 rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
16817 similar to bool.
16818
de84ad02 168192009-05-29 Kai Tietz <kai.tietz@onevision.com>
16820
16821 * tree.c (handle_dll_attribute): Check if node is
16822 of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
16823
4ce3945e 168242009-05-29 Richard Earnshaw <rearnsha@arm.com>
16825
16826 * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
16827 component.
16828 (thumb2_zero_extendqidi2): Likewise.
16829
b0acfa02 168302009-05-28 Kaz Kojima <kkojima@gcc.gnu.org>
16831
16832 * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
16833 instead of gen_movrt.
16834 * config/sh/sh.md (movrt): Remove.
16835
63945be2 168362009-05-28 Steve Ellcey <sje@cup.hp.com>
16837
faa14cce 16838 * doc/invoke.texi (IA-64 Options):
f6c8c8fc 16839 Add -msdata, -mfused-madd, -mno-inline-float-divide,
63945be2 16840 -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
16841 -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
16842 -msched-prefer-non-control-spec-insns,
16843 -msched-stop-bits-after-every-cycle,
16844 -msched-count-spec-in-critical-path,
16845 -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
faa14cce 16846 -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
63945be2 16847 Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
16848 and -msched-spec-verbose.
16849
92ecd908 168502009-05-28 Joseph Myers <joseph@codesourcery.com>
16851
faa14cce 16852 * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
92ecd908 16853 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
16854 error if used.
16855 * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
16856
3918bd18 168572009-05-28 Richard Guenther <rguenther@suse.de>
16858
16859 * tree-ssa-alias.c (ao_ref_init): New function.
16860 (ao_ref_base): Likewise.
16861 (ao_ref_base_alias_set): Likewise.
16862 (ao_ref_alias_set): Likewise.
16863 (refs_may_alias_p_1): Change signature.
16864 (refs_may_alias_p): Adjust.
16865 (refs_anti_dependent_p): Likewise.
16866 (refs_output_dependent_p): Likewise.
16867 (call_may_clobber_ref_p_1): Change signature.
16868 (call_may_clobber_ref_p): Adjust.
16869 (stmt_may_clobber_ref_p_1): New function split out from ...
16870 (stmt_may_clobber_ref_p): ... here.
16871 (maybe_skip_until): Adjust signature.
16872 (get_continuation_for_phi): Likewise.
16873 (walk_non_aliased_vuses): Likewise.
16874 * tree-ssa-alias.h (struct ao_ref_s): New structure type.
16875 (ao_ref_init): Declare.
16876 (ao_ref_base): Likewise.
16877 (ao_ref_alias_set): Likewise.
16878 (stmt_may_clobber_ref_p_1): Likewise.
16879 (walk_non_aliased_vuses): Adjust.
16880 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
16881 (get_ref_from_reference_ops): remove.
16882 (vn_reference_lookup_2): Adjust signature.
16883 (vn_reference_lookup_3): Do not re-build trees. Handle unions.
faa14cce 16884 (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
3918bd18 16885 (vn_reference_lookup): Adjust.
16886 (vn_reference_insert): Likewise.
16887 (vn_reference_insert_pieces): Adjust signature.
16888 (visit_reference_op_call): Adjust.
16889 * tree-ssa-pre.c (get_expr_type): Simplify.
16890 (phi_translate_1): Adjust.
16891 (compute_avail): Likewise.
16892 (translate_vuse_through_block): Do not re-build trees.
16893 (value_dies_in_block_x): Likewise.
16894 * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
16895 fields.
16896 (vn_reference_lookup_pieces): Adjust declaration.
16897 (vn_reference_insert_pieces): Likewise.
16898
f2e585c3 168992009-05-28 Benjamin Kosnik <bkoz@redhat.com>
16900
16901 * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
16902 with checking disabled.
16903
7b897de3 169042009-05-28 Dave Korn <dave.korn.cygwin@gmail.com>
16905
16906 PR target/37216
16907
16908 * configure.ac (HAVE_GAS_ALIGNED_COMM): Add autoconf test and
16909 macro definition for support of three-operand format aligned
16910 .comm directive in assembler on cygwin/pe/mingw target OS.
16911 * configure: Regenerate.
16912 * config.h: Regenerate.
16913
16914 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Use
16915 aligned form of .comm directive if -mpe-aligned-commons is in effect.
16916 * config/i386/cygming.opt (-mpe-aligned-commons): Add new option.
16917
16918 * doc/invoke.texi (-mpe-aligned-commons): Document new target option.
16919 * doc/tm.texi (ASM_OUTPUT_COMMON): Document zero size commons.
16920
dd2644cf 169212009-05-28 Ira Rosen <irar@il.ibm.com>
16922
16923 PR tree-optimization/40254
16924 * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
16925 in analysis of basic blocks.
16926
01c8e4c9 169272009-05-28 Adam Nemet <anemet@caviumnetworks.com>
16928
16929 PR middle-end/33699
faa14cce 16930 * target.h (struct gcc_target): Fix indentation. Add const_anchor.
01c8e4c9 16931 * target-def.h (TARGET_CONST_ANCHOR): New macro.
16932 (TARGET_INITIALIZER): Use it.
16933 * cse.c (CHEAPER): Move it up to the other macros.
16934 (insert): Rename this ...
16935 (insert_with_costs): ... to this. Add cost parameters. Update
16936 function comment.
16937 (insert): New function. Call insert_with_costs.
16938 (compute_const_anchors, insert_const_anchor, insert_const_anchors,
16939 find_reg_offset_for_const, try_const_anchors): New functions.
16940 (cse_insn): Call try_const_anchors. Adjust cost of src_related
16941 when using a const-anchor. Call insert_const_anchors.
faa14cce 16942 * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
01c8e4c9 16943 * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
16944
0c1c155a 169452009-05-28 Alexandre Oliva <aoliva@redhat.com>
16946
16947 * tree-inline.c (remap_decls): Enable nonlocalized variables
16948 when not optimizing.
16949
fe5c69b7 169502009-05-28 Alexandre Oliva <aoliva@redhat.com>
16951
16952 * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
16953 Simplify other tests involving optimize.
16954
99385b4b 169552009-05-27 Tom Tromey <tromey@redhat.com>
16956
16957 * unwind-dw2.c (_Unwind_DebugHook): New function.
16958 (uw_install_context): Call _Unwind_DebugHook.
16959
2458dc30 169602009-05-27 Tom Tromey <tromey@redhat.com>
16961
16962 * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
16963
40b6e20e 169642009-05-27 Ian Lance Taylor <iant@google.com>
16965
16966 * Makefile.in (LINKER, LINKER_FLAGS): Define.
16967 (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
16968 (ALL_LINKERFLAGS): Define.
16969 (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
16970 (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
16971 (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
16972 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
16973 (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
16974 $(LINKER_FOR_BUILD).
16975 (build/gcov-iov$(build_exeext)): Likewise.
16976
2b86a75a 169772009-05-27 Julian Brown <julian@codesourcery.com>
16978
16979 * gcse.c (target.h): Include.
16980 (can_assign_to_reg_without_clobbers_p): Check that the target allows
16981 copy of argument to a pseudo register.
16982
b79917fd 169832009-05-27 Diego Novillo <dnovillo@google.com>
16984
16985 * tree-ssa-live.c (dump_scope_block): Document arguments.
16986 (dump_scope_blocks): Document.
16987 (debug_scope_blocks): New.
16988 * tree-flow.h (debug_scope_blocks): Declare.
16989
23c2749b 169902009-05-21 Denis Chertykov <denisc@overta.ru>
16991
faa14cce 16992 * doc/contrib.texi (Contributors): Add myself to the list.
23c2749b 16993
4c13df35 169942009-05-27 Olivier Hainque <hainque@adacore.com>
6cbeacbb 16995
16996 * expr.c (target_align): New function. Alignment the TARGET of an
16997 assignment may be assume to have.
16998 (highest_pow2_factor_for_target): Use it instead of relying on
16999 immediate tree attributes of TARGET, not necessarily honored when
17000 intermediate bitfields are involved.
f6c8c8fc 17001
c2d2fbe7 170022009-05-27 H.J. Lu <hongjiu.lu@intel.com>
17003
17004 PR target/40266
17005 * config/i386/driver-i386.c (host_detect_local_cpu): Support
17006 AVX, SSE4, AES, PCLMUL and POPCNT.
17007
7aa082e5 170082009-05-27 Diego Novillo <dnovillo@google.com>
17009
17010 * tree-pretty-print.c (dump_location): New.
17011 (dump_generic_node): Call it.
17012 Factor code to handle BLOCK nodes ...
17013 (dump_block_node): ... here.
17014
a0b14cdf 170152009-05-27 Rafael Avila de Espindola <espindola@google.com>
17016
faa14cce 17017 * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
17018 with it.
a0b14cdf 17019 * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
17020 included.
17021 * gcc-plugin.h: Include config.h and system.h.
17022 (IN_GCC): Define if not defined.
17023
97903452 170242009-05-27 Hans-Peter Nilsson <hp@axis.com>
17025
17026 PR middle-end/40249
17027 * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
17028 with -fno-inline.
17029
452bfb8b 170302009-05-27 Shujing Zhao <pearly.zhao@oracle.com>
17031
17032 * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
17033 applicable.
17034 * config/m32r/m32r.h: Ditto.
17035 * config/m32r/m32r.md: Ditto.
17036 * config/m32r/predicates.md: Ditto.
17037
75f1788a 170382009-05-27 Alexandre Oliva <aoliva@redhat.com>
17039
17040 * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
17041
740cd0be 170422009-05-26 Basile Starynkevitch <basile@starynkevitch.net>
17043
17044 * doc/plugins.texi
17045 (Loading plugins): typo.
17046 (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
17047 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
17048 (Interacting with the GCC Garbage Collector): Added new section.
17049 (Giving information about a plugin): Added new section for
17050 PLUGIN_INFO.
740cd0be 17051 * ggc.h (ggc_register_root_tab): Added declaration.
17052 * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
17053 (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
17054 (register_callback): Improved comment in declaration.
faa14cce 17055 * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
17056 (extra_root_vec) Added static variable for dynamic roots registration.
740cd0be 17057 (ggc_register_root_tab) Added new routine.
17058 (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
17059 PLUGIN_GGC_MARKING event.
17060 * ggc-zone.c: Include plugin.h.
17061 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
17062 * ggc-page.c: Include plugin.h.
17063 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
17064 * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
17065 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
17066 (register_callback): check lack of callbacks for
17067 pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
17068 PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
17069 (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
17070 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
17071 * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
17072 dependency on plugin.h.
17073 (plugin.o): Added dependency on ggc.h...
17074
79e662e5 170752009-05-26 Richard Guenther <rguenther@suse.de>
17076
17077 PR middle-end/40248
17078 Revert
17079 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
17080 with mismatched comparison modes.
17081
17082 * expr.c (expand_expr_real_1): Expand the operand of a
17083 VIEW_CONVERT_EXPR in its natural mode.
17084
585d4848 170852009-05-26 Ian Lance Taylor <iant@google.com>
17086
17087 * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
17088 (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
17089 (ALL_COMPILERFLAGS): Define.
17090 (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
17091 (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
17092 (collect2$(exeext), collect2.o): Likewise.
17093 (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
17094 (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
17095 ($(out_object_file), mips-tfile, mips-tdump): Likewise.
17096 (libbackend.o, intl.o, cppdefault.o): Likewise.
17097 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
17098 (build/%.o): Use $(COMPILER_FOR_BUILD).
17099 (build/gen%$(build_exeext)): Likewise.
17100 (build/gcov-iov$(build_exeext)): LIkewise.
17101 * config/t-darwin (darwin.o): Use $(COMPILER).
17102 (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
17103 * config/t-sol2 (sol2-c.o): Likewise.
17104 (sol2.o): Likewise.
17105 * config/t-vxworks (vxworks.o): Likewise.
17106 * config/x-darwin (host-darwin.o): Likewise.
17107 * config/x-hpux (host-hpux.o): Likewise.
17108 * config/x-linux (host-linux.o): Likewise.
17109 * config/x-solaris (host-solaris.o): Likewise.
17110 * config/alpha/x-alpha (driver-alpha.o): Likewise.
17111 * config/arm/t-arm (arm-c.o): Likewise.
17112 * config/arm/t-pe (pe.o): Likewise.
17113 * config/arm/t-wince-pe (pe.o): Likewise.
17114 * config/i386/t-cygming (winnt.o): Likewise.
17115 (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
17116 * config/i386/t-cygwin (cygwin1.o): Likewise.
17117 (cygwin2.o): Likewise.
17118 * config/i386/t-i386 (i386-c.o): Likewise.
17119 * config/i386/t-interix (winnt.o): Likewise.
17120 * config/i386/t-netware (netware.o): Likewise.
17121 * config/i386/t-nwld (nwld.o): Likewise.
17122 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
17123 * config/i386/x-i386 (driver-i386.o): Likewise.
17124 * config/i386/x-cygwin (host-cygwin.o): Likewise.
17125 * config/i386/x-mingw32 (host-mingw32.o): Likewise.
17126 * config/ia64/t-ia64 (ia64-c.o): Likewise.
17127 * config/m32c/t-m32c (m32c-pragma.o): Likewise.
17128 * config/mips/x-native (driver-native.o): Likewise.
17129 * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
17130 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
17131 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
17132 * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
17133 * config/score/t-score-elf (score7.o): Likewise.
17134 (score3.o): Likewise.
17135 * config/sh/t-sh (sh-c.o): Likewise.
17136 * config/sh/t-symbian (sh-c.o): Likewise.
17137 (symbian.o): Likewise.
17138 * config/spu/t-spu-elf (spu-c.o): Likewise.
17139 * config/v850/t-v850 (v850-c.o): Likewise.
17140 * config/v850/t-v850e (v850-c.o): Likewise.
17141
388a0bc7 171422009-05-26 Richard Guenther <rguenther@suse.de>
17143
17144 PR tree-optimization/40122
17145 * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
17146 VECTOR_CSTs if possible.
17147 (fold_gimple_assign): Likewise.
17148
f6d729b8 171492009-05-26 Richard Guenther <rguenther@suse.de>
17150
17151 PR middle-end/40252
17152 * fold-const.c (fold_binary): Use the correct types for building
17153 rotates.
17154
ba3f9c71 171552009-05-26 Richard Guenther <rguenther@suse.de>
17156
17157 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
17158 redundant calls to merge_alias_info.
17159 (bump_vector_ptr): Likewise.
17160 * tree-ssa-copy.c (merge_alias_info): Remove.
17161 (replace_exp_1): Remove call to merge_alias_info.
17162 (propagate_tree_value): Likewise.
17163 (fini_copy_prop): Propagate points-to info.
17164 * tree-flow.h (merge_alias_info): Remove.
17165
93829856 171662009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
17167
17168 * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
17169
97343302 171702009-05-25 Jan Hubicka <jh@suse.cz>
17171
17172 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
17173 * cgraph.h (struct inline_summary): New filed self_wize,
17174 size_inlining_benefit, self_time and time_inlining_benefit.
17175 (struct cgraph_global_info): Replace insns by time ans size fields.
17176 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
17177 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
17178 (ipcp_update_callgraph): Do not touch function bodies.
17179 * ipa-inline.c: Include except.h
17180 (MAX_TIME): New constant.
17181 (overall_insns): Remove.
17182 (leaf_node_p): New.
17183 (overall_size, max_benefit): New static variables.
17184 (cgraph_estimate_time_after_inlining): New function.
17185 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
17186 (cgraph_clone_inlined_nodes): Update size.
17187 (cgraph_mark_inline_edge): Update size.
17188 (cgraph_estimate_growth): Use size info.
17189 (cgraph_check_inline_limits): Check size.
17190 (cgraph_default_inline_p): Likewise.
17191 (cgraph_edge_badness): Compute badness based on benefit and size cost.
17192 (cgraph_decide_recursive_inlining): Check size.
faa14cce 17193 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
17194 and times.
97343302 17195 (cgraph_decide_inlining): Likewise.
17196 (cgraph_decide_inlining_incrementally): Likewise; honor
17197 PARAM_EARLY_INLINING_INSNS.
17198 (likely_eliminated_by_inlining_p): New predicate.
17199 (estimate_function_body_sizes): New function.
17200 (compute_inline_parameters): Use it.
17201 * except.c (must_not_throw_labels): New function.
17202 * except.h (must_not_throw_labels): Declare.
17203 * tree-inline.c (init_inline_once): Kill inlining_weigths
17204 * tree-ssa-structalias.c: Avoid uninitialized warning.
17205 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
17206 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
17207 (PARAM_INLINE_CALL_COST): Remove.
17208 (PARAM_EARLY_INLINING_INSNS): New.
17209
d8021dea 172102009-05-25 Richard Guenther <rguenther@suse.de>
17211
17212 PR tree-optimization/36327
17213 * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
faa14cce 17214 callback for reference translation or lookup at the point of may-defs.
d8021dea 17215 * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
17216 * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
17217 for union COMPONENT_REFs.
17218 (vn_reference_lookup_3): New callback. Lookup from memset
17219 and CONSTRUCTOR assignment, translate through struct copies.
17220 (vn_reference_lookup_pieces): Make sure to not free the
17221 passed operands array. Adjust walk_non_aliased_vuses call.
17222 (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
17223 make sure we do not leak memory.
17224
7f81b5ee 172252009-05-25 Richard Guenther <rguenther@suse.de>
17226
17227 * tree-ssa-alias.h (dump_points_to_solution): Declare.
17228 * tree-inline.c (expand_call_inline): Reset the escaped and
17229 callused solutions.
17230 * tree-ssa-structalias.c (pass_build_ealias): New.
17231 * tree-pass.h (pass_build_ealias): Declare.
f6c8c8fc 17232 * passes.c (init_optimization_passes): Add PTA during
7f81b5ee 17233 early optimizations.
17234 * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
17235 and CALLUSED solutions.
17236 (dump_points_to_solution): New function, split out from ...
17237 (dump_points_to_info_for): ... here.
17238 * tree-parloops.c (parallelize_loops): Reset the escaped and
17239 callused solutions.
17240
6a352190 172412009-05-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17242
17243 PR bootstrap/40027
17244 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
17245 * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
17246
765a637f 172472009-05-25 Ira Rosen <irar@il.ibm.com>
17248
17249 PR tree-optimization/40238
17250 * tree-vect-stmts.c (vect_init_vector): Insert initialization
17251 statements after basic block's labels.
f6c8c8fc 17252 * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
765a637f 17253 to free the allocated memory.
17254
b4dce965 172552009-05-24 Kaz Kojima <kkojima@gcc.gnu.org>
17256
17257 * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
17258 return address with a USE.
17259
3b32ccd7 172602009-05-24 Richard Guenther <rguenther@suse.de>
17261
17262 PR middle-end/40233
17263 * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
17264 array type from the main variant of the inner type.
17265
98897d2c 172662009-05-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17267
17268 * config/vax/vax-protos.h (legitimate_constant_address_p): Change
17269 definition to bool (from int) to un-break build.
17270 (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
17271
4c5fd53c 172722009-05-24 Paolo Bonzini <bonzini@gnu.org>
17273
17274 * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
17275 discard_stmt_changes): Delete.
17276 * tree-ssa-operands.c (scb_stack): Delete.
17277 (init_ssa_operands): Do not initialize it.
17278 (fini_ssa_operands): Do not free it.
17279 (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
17280
f6c8c8fc 17281 * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
4c5fd53c 17282 update_stmt, remove the others. Fix comments.
17283 * tree-dfa.c (optimize_stack_restore): Likewise.
17284 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
17285 * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
17286 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
17287 * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
17288 Likewise.
17289 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
17290 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
faa14cce 17291 (dom_opt_finalize_block): Likewise, adjusting access to
17292 stmts_to_rescan.
4c5fd53c 17293 (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
17294 (stmts_to_rescan): Change item type to gimple.
17295 (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
17296
37545e54 172972009-05-24 Ira Rosen <irar@il.ibm.com>
17298
17299 * doc/passes.texi (Tree-SSA passes): Document SLP pass.
17300 * tree-pass.h (pass_slp_vectorize): New pass.
17301 * params.h (SLP_MAX_INSNS_IN_BB): Define.
17302 * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
17303 * tree-vectorizer.c (timevar.h): Include.
17304 (user_vect_verbosity_level): Declare.
17305 (vect_location): Fix comment.
17306 (vect_set_verbosity_level): Update user_vect_verbosity_level
17307 instead of vect_verbosity_level.
17308 (vect_set_dump_settings): Add an argument. Ignore user defined
17309 verbosity if dump flags require higher level of verbosity. Print to
17310 stderr only for loop vectorization.
17311 (vectorize_loops): Update call to vect_set_dump_settings.
17312 (execute_vect_slp): New function.
17313 (gate_vect_slp): Likewise.
17314 (struct gimple_opt_pass pass_slp_vectorize): New.
17315 * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
17316 access its members.
17317 (vec_info_for_bb): New function.
17318 (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
17319 (VECTORIZATION_ENABLED): New macro.
17320 (SLP_ENABLED, SLP_DISABLED): Likewise.
17321 (vect_is_simple_use): Add bb_vec_info argument.
17322 (new_stmt_vec_info, vect_analyze_data_ref_dependences,
17323 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
17324 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
17325 vect_schedule_slp, vect_analyze_slp): Likewise.
17326 (vect_analyze_stmt): Add slp_tree argument.
17327 (find_bb_location): Declare.
17328 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
17329 * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
17330 (vect_analyze_loop_operations, vect_analyze_loop,
17331 get_initial_def_for_induction, vect_create_epilog_for_reduction,
17332 vect_finalize_reduction, vectorizable_reduction,
17333 vectorizable_live_operation, vect_transform_loop): Likewise.
17334 * tree-data-ref.c (dr_analyze_innermost): Update comment,
17335 skip evolution analysis if analyzing a basic block.
17336 (dr_analyze_indices): Likewise.
17337 (initialize_data_dependence_relation): Skip the test whether the
17338 object is invariant for basic blocks.
17339 (compute_all_dependences): Skip dependence analysis for data
17340 references in basic blocks.
17341 (find_data_references_in_stmt): Don't fail in case of invariant
17342 access in basic block.
17343 (find_data_references_in_bb): New function.
17344 (find_data_references_in_loop): Move code to
2377feea 17345 find_data_references_in_bb and add a call to it.
37545e54 17346 (compute_data_dependences_for_bb): New function.
17347 * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
17348 * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
17349 that STEP is 0.
17350 (vect_analyze_data_ref_dependence): Check for interleaving in case of
17351 unknown dependence in basic block and fail in case of dependence in
17352 basic block.
17353 (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
17354 dependence instances from either loop or basic block vectorization
17355 info.
17356 (vect_compute_data_ref_alignment): Check if it is loop vectorization
17357 before calling nested_in_vect_loop_p.
17358 (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
17359 dependence instances from either loop or basic block vectorization
17360 info.
17361 (vect_verify_datarefs_alignment): Likewise.
17362 (vect_enhance_data_refs_alignment): Adjust function calls.
17363 (vect_analyze_data_refs_alignment): Likewise.
17364 (vect_analyze_group_access): Fix printing. Skip different checks if
17365 DR_STEP is 0. Keep strided stores either in loop or basic block
17366 vectorization data structure. Fix indentation.
17367 (vect_analyze_data_ref_access): Fix comments, allow zero step in
17368 basic blocks.
17369 (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
17370 dependence instances from either loop or basic block vectorization
17371 info.
17372 (vect_analyze_data_refs): Update comment. Call
17373 compute_data_dependences_for_bb to analyze basic blocks.
17374 (vect_create_addr_base_for_vector_ref): Check for outer loop only in
17375 case of loop vectorization. In case of basic block vectorization use
2377feea 17376 data-ref itself as a base.
37545e54 17377 (vect_create_data_ref_ptr): In case of basic block vectorization:
17378 don't advance the pointer, add new statements before the current
17379 statement. Adjust function calls.
17380 (vect_supportable_dr_alignment): Support only aligned accesses in
17381 basic block vectorization.
17382 * common.opt (ftree-slp-vectorize): New flag.
17383 * tree-vect-patterns.c (widened_name_p): Adjust function calls.
17384 (vect_pattern_recog_1): Likewise.
17385 * tree-vect-stmts.c (process_use): Likewise.
17386 (vect_init_vector): Add new statements in the beginning of the basic
17387 block in case of basic block SLP.
17388 (vect_get_vec_def_for_operand): Adjust function calls.
17389 (vect_finish_stmt_generation): Likewise.
17390 (vectorizable_call): Add assert that it is loop vectorization, adjust
17391 function calls.
17392 (vectorizable_conversion, vectorizable_assignment): Likewise.
17393 (vectorizable_operation): In case of basic block SLP, take
17394 vectorization factor from statement's type and skip the relevance
17395 check. Adjust function calls.
17396 (vectorizable_type_demotion): Add assert that it is loop
17397 vectorization, adjust function calls.
17398 (vectorizable_type_promotion): Likewise.
17399 (vectorizable_store): Check for outer loop only in case of loop
17400 vectorization. Adjust function calls. For basic blocks, skip the
17401 relevance check and don't advance pointers.
17402 (vectorizable_load): Likewise.
17403 (vectorizable_condition): Add assert that it is loop vectorization,
17404 adjust function calls.
17405 (vect_analyze_stmt): Add argument. In case of basic block SLP, check
17406 that it is not reduction, get vector type, call only supported
2377feea 17407 functions, skip loop specific parts.
37545e54 17408 (vect_transform_stmt): Check for outer loop only in case of loop
17409 vectorization.
17410 (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
17411 (vect_is_simple_use): Fix comment, add new argument, fix conditions
17412 for external definition.
17413 * passes.c (pass_slp_vectorize): New pass.
17414 * tree-vect-slp.c (find_bb_location): New function.
17415 (vect_get_and_check_slp_defs): Add argument, adjust function calls,
17416 check for patterns only in loops.
17417 (vect_build_slp_tree): Add argument, adjust function calls, fail in
17418 case of multiple types in basic block SLP.
17419 (vect_mark_slp_stmts_relevant): New function.
17420 (vect_supported_load_permutation_p): Fix comment.
17421 (vect_analyze_slp_instance): Add argument. In case of basic block
17422 SLP, take vectorization factor from statement's type, check that
17423 unrolling factor is 1. Adjust function call. Save SLP instance in
17424 either loop or basic block vectorization structure. Return FALSE,
17425 if SLP failed.
17426 (vect_analyze_slp): Add argument. Get strided stores groups from
17427 either loop or basic block vectorization structure. Return FALSE
17428 if basic block SLP failed.
17429 (new_bb_vec_info): New function.
17430 (destroy_bb_vec_info, vect_slp_analyze_node_operations,
17431 vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
17432 (vect_schedule_slp): Add argument. Get SLP instances from either
17433 loop or basic block vectorization structure. Set vectorization factor
17434 to be 1 for basic block SLP.
17435 (vect_slp_transform_bb): New function.
17436 * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
17437
88facd8b 174382009-05-23 Mark Mitchell <mark@codesourcery.com>
17439
17440 * final.c (shorten_branches): Do not align labels for jump tables.
17441 (final_scan_insn): Use JUMP_TABLE_DATA_P.
17442
507ec136 174432009-05-23 Eric Botcazou <ebotcazou@adacore.com>
17444
17445 * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
17446 Remove outdated reference to flow.c and fix nits.
17447 * doc/gccint.texi: Tweak RTL description.
17448 * doc/rtl.texi: Likewise.
17449
947dd720 174502009-05-23 Denis Chertykov <chertykov@gmail.com>
17451
17452 * config/avr/avr.c: Change my email address.
17453 * config/avr/avr.h: Likewise.
17454 * config/avr/avr.md: Likewise.
17455 * config/avr/avr-protos.h: Likewise.
17456 * config/avr/libgcc.S: Likewise.
17457
9d98604b 174582009-05-22 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
17459
17460 * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
17461 (spu_split_load, spu_split_store): Change return type to int.
17462 (spu_split_convert): Declare.
17463 * config/spu/predicates.md (spu_mem_operand): Remove.
17464 (spu_mov_operand): Update.
17465 (spu_dest_operand, shiftrt_operator, extend_operator): Define.
17466 * config/spu/spu.c (regno_aligned_for_load): Remove.
17467 (reg_aligned_for_addr, spu_expand_load): Define.
17468 (spu_expand_extv): Reimplement and handle MEM.
17469 (spu_expand_insv): Handle MEM.
17470 (spu_sched_reorder): Handle insn's with length 0.
17471 (spu_legitimate_address_p): Reimplement.
17472 (store_with_one_insn_p): Return TRUE for any mode with size
17473 larger than 16 bytes.
17474 (address_needs_split): Define.
17475 (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
17476 operands.
17477 (spu_convert_move): Define.
2377feea 17478 (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
9d98604b 17479 (spu_split_store): Change all MEM's to TImode.
17480 (spu_init_expanders): Preallocate registers that correspond to
17481 LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
17482 mark_reg_pointer.
17483 (spu_split_convert): Define.
17484 * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
17485 (_move<mode>, _movdi, _movti): Update predicate and condition.
17486 (load, store): Change to define_split.
17487 (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
17488 extend<mode>ti2.
17489 (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
17490 (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
17491 define_insn_and_split of lshr<mode>3.
17492 (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
17493 (<v>ashr<mode>3_imm): Define.
17494 (extv, extzv, insv): Allow MEM operands.
17495 (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
17496 shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
17497 sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
17498 (_spu_convert2): Change to define_insn_and_split and remove the
17499 corresponding define_peephole2.
17500 (stack_protect_set, stack_protect_test, stack_protect_test_si):
17501 Change predicates to memory_operand.
17502
beeea7ed 175032009-05-22 Mark Mitchell <mark@codesourcery.com>
17504
17505 * config/arm/thumb2.md: Add 16-bit multiply instructions.
beeea7ed 17506
4b2b1011 175072009-05-21 Michael Meissner <meissner@linux.vnet.ibm.com>
17508
17509 PR tree-optimization/40219
17510 * tree.c (iterative_hash_expr): Make sure the builtin function is
17511 a normal builtin function and not a front end or back end builtin
17512 before indexing into the built_in_decls array.
17513
2a3ebafa 175142009-05-22 Richard Guenther <rguenther@suse.de>
17515
17516 PR middle-end/38964
17517 * alias.c (write_dependence_p): Do not use TBAA for answering
17518 anti-dependence or output-dependence.
2377feea 17519 * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
2a3ebafa 17520 (emit_pointer_definition): Remove.
17521 (emit_alias_warning): Likewise.
17522 (find_what_var_points_to): Remove TBAA pruning code.
17523 (find_what_p_points_to): Likewise. Do not warn about strict-aliasing
17524 violations.
17525 (compute_points_to_sets): Remove code computing the set of
17526 dereferenced pointers.
17527 * tree-data-ref.c (dr_may_alias_p): Properly use the split
17528 oracle for querying anti and output dependencies.
17529 * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
17530 if TBAA may be applied.
17531 (refs_anti_dependent_p): New function.
17532 (refs_output_dependent_p): Likewise.
17533 * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
17534 (refs_output_dependent_p): Likewise.
17535 * doc/tree-ssa.texi (Memory model): New section.
17536 * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
17537 * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
17538 * cfgexpand.c (expand_gimple_basic_block): Do not handle
17539 GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
17540 * expr.c (expand_expr_real_1): Likewise.
17541 * gimple-low.c (lower_stmt): Likewise.
17542 * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
17543 (dump_gimple_cdt): Remove.
17544 * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
17545 (gimple_size): Likewise.
17546 (walk_gimple_op): Likewise.
17547 (is_gimple_stmt): Likewise.
17548 (walk_stmt_load_store_addr_ops): Likewise.
17549 (gimple_build_cdt): Remove.
17550 * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
17551 * gimple.h (gimple_cdt_new_type): Remove.
17552 (gimple_cdt_new_type_ptr): Likewise.
17553 (gimple_cdt_set_new_type): Likewise.
17554 (gimple_cdt_location): Likewise.
17555 (gimple_cdt_location_ptr): Likewise.
17556 (gimple_cdt_set_location): Likewise.
17557 * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
17558 * tree-cfg.c (remove_useless_stmts_1): Do not handle
17559 GIMPLE_CHANGE_DYNAMIC_TYPE.
17560 (verify_types_in_gimple_stmt): Likewise.
17561 * tree-inline.c (estimate_num_insns): Likewise.
17562 (expand_call_inline): Do not copy DECL_NO_TBAA_P.
17563 (copy_decl_to_var): Likewise.
17564 (copy_result_decl_to_var): Likewise.
17565 * tree-pretty-print.c (dump_generic_node): Do not handle
17566 CHANGE_DYNAMIC_TYPE_EXPR.
17567 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
17568 * tree-ssa-operands.c (get_expr_operands): Likewise.
17569 * tree-ssa-structalias.c (struct variable_info): Remove
17570 no_tbaa_pruning member.
17571 (new_var_info): Do not set it based on DECL_NO_TBAA_P.
17572 (unify_nodes): Do not copy it.
17573 (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
17574 (dump_solution_for_var): Do not dump no_tbaa_pruning state.
17575 (set_uids_in_ptset): Do not check it.
17576 (find_what_var_points_to): Likewise.
17577 (compute_tbaa_pruning): Remove.
17578 (compute_points_to_sets): Do not call it.
17579 * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
17580 * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
17581 * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
17582 (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
17583 (DECL_NO_TBAA_P): Likewise.
17584 (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
17585 * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
17586 (expand_omp_atomic_pipeline): Do not set it.
17587 * print-tree.c (print_node): Do not dump it.
17588 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
17589 redundant check.
17590
59082b2e 175912009-05-22 Vladimir Makarov <vmakarov@redhat.com>
17592
17593 PR target/39856
17594 * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
17595 for clobber.
17596
aed4eb5d 175972009-05-22 Mark Mitchell <mark@codesourcery.com>
17598
17599 * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
17600 non-external.
17601
b384c0ce 176022009-05-22 Ben Elliston <bje@au.ibm.com>
17603
17604 * Makefile.in (bversion.h, s-bversion): New targets.
17605 (TOPLEV_H): Add bversion.h.
17606 * toplev.h: Include "bversion.h".
17607 (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
17608 the __format__ attribute only if compiling with the same version
17609 of GCC as the sources (the "build version").
17610
0fb56989 176112009-05-22 Ben Elliston <bje@au.ibm.com>
17612
17613 * c-format.c (handle_format_attribute): Fix comment typo.
17614
4fbe0a55 176152009-05-21 Steve Ellcey <sje@cup.hp.com>
17616
17617 PR target/37846
17618 * config/ia64/ia64.opt (mfused-madd): New.
17619 * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
17620 * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
17621 * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
17622 madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
17623 nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
17624 msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
17625 nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
f6c8c8fc 17626 * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
4fbe0a55 17627 instruction if !TARGET_FUSED_MADD.
17628 (fpma, fpms): Remove colon from name.
17629
869bac23 176302009-05-22 Richard Guenther <rguenther@suse.de>
17631
17632 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
17633 TMR_ORIGINAL. Always either record TMR_SYMBOL or TMR_BASE.
17634 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
17635 TARGET_MEM_REF.
17636 (create_expression_by_pieces): Only convert if necessary.
17637 * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
17638 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
17639
e716188e 176402009-05-21 Adam Nemet <anemet@caviumnetworks.com>
17641
17642 * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
17643 regular pattern from a template and rename it ...
17644 (*extzv_truncsi_exts): ... to this.
17645
18c97951 176462009-05-21 Richard Guenther <rguenther@suse.de>
17647
17648 * cgraph.h (struct cgraph_node): Remove inline_decl member.
17649 * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
17650 (cgraph_default_inline_p): Likewise.
17651 (cgraph_decide_inlining_incrementally): Likewise.
17652
525b61fa 176532009-05-21 H.J. Lu <hongjiu.lu@intel.com>
17654 Uros Bizjak <ubizjak@gmail.com>
17655
17656 * config/i386/cpuid.h (bit_MOVBE): New.
17657
17658 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
17659
17660 * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
17661 (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
17662 (ix86_handle_option): Handle OPT_mmovbe.
17663 (ix86_target_string): Add -mmovbe.
17664 (pta_flags): Add PTA_MOVBE.
17665 (processor_alias_table): Add PTA_MOVBE to "atom".
17666 (override_options): Handle PTA_MOVBE.
17667
17668 * config/i386/i386.h (TARGET_MOVBE): New.
17669
17670 * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
17671 (*bswapsi_movbe): New.
17672 (*bswapdi_movbe): Likewise.
17673 (bswapdi2): Renamed to ...
17674 (*bswapdi_1): This.
17675 (bswapdi2): New expander.
17676
17677 * config/i386/i386.opt (mmovbe): New.
17678
17679 * doc/invoke.texi: Document -mmovbe.
17680
0b3a031a 176812009-05-21 Taras Glek <tglek@mozilla.com>
17682
17683 * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
17684 * gcc-plugin.h (plugin_init): Updated signature.
17685 * gcc-plugin.h (plugin_name_args): Moved to this header.
525b61fa 17686 * doc/plugins.texi (plugin_init): Updated documention to reflect
17687 API change.
0b3a031a 17688 * doc/plugins.texi (plugin_name_args): Added to documention.
17689
3d8bad71 176902009-05-21 Mark Mitchell <mark@codesourcery.com>
17691
17692 * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
17693 (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
17694
d41c63a8 176952009-05-21 Shujing Zhao <pearly.zhao@oracle.com>
17696
17697 * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
17698 JUMP_TABLE_DATA_P predicates where applicable.
17699 * config/i386/predicates.md: Ditto.
17700 * config/i386/sse.md: Ditto.
17701
2aa911e0 177022009-05-21 Jakub Jelinek <jakub@redhat.com>
17703
ff07cef7 17704 * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
17705 operand2 -128 override length_immediate attribute to 1.
17706 * config/i386/predicates.md (constm128_operand): New predicate.
17707
2aa911e0 17708 * config/i386/i386.c (memory_address_length): Handle %r12
17709 the same as %rsp and %r13 the same as %rbp. For %rsp and %rbp
17710 also check REGNO.
17711 (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
17712 mode look through optional ZERO_EXTEND and SUBREG.
17713 * config/i386/i386.md (R12_REG): New define_constant.
17714 (prefix_data16): For sse unit set also for MODE_TI insns.
17715 (prefix_rex): For -m32 always return 0. For TYPE_IMOVX
17716 insns set if operand 1 is ext_QIreg_operand.
17717 (modrm): For TYPE_IMOV clear only if not MODE_DI. For
17718 TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
17719 immediate.
17720 (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
17721 mode from MODE_DI to MODE_SI.
17722 (movdi_1_rex64): Override modrm and length_immediate attributes
17723 only for movabs (TYPE_IMOV, alternative 2).
17724 (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
17725 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
17726 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
17727 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
17728 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
17729 prefix_rex attribute if DImode.
17730 (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
17731 *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
17732 *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
17733 *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
17734 attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
17735 (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
17736 Likewise. For TYPE_IMOV clear length_immediate attribute.
17737 (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
17738 *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
17739 *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
17740 *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
17741 *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
17742 or one operand TYPE_ISHIFT.
17743 (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
17744 *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
17745 *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
17746 *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
17747 *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
17748 *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
17749 *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
17750 *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
17751 *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
17752 *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
17753 *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
17754 *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
17755 *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
17756 *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
17757 *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
17758 *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
17759 *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
17760 set mode attribute, don't override length attribute.
17761 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
17762 to 1.
17763 (return_internal_long): Set length attribute to 2 instead of 1.
17764 (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
17765 *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
17766 prefix_rex attribute.
2377feea 17767 * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
17768 New predicates.
17769 (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
2aa911e0 17770
dad3e2d4 177712009-05-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17772
17773 * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
17774
f352a3fb 177752009-05-20 Ian Lance Taylor <iant@google.com>
17776
17777 * tree.c (build_tree_list_vec_stat): New function.
17778 (ctor_to_vec): New function.
17779 (build_nt_call_vec): New function.
17780 (build_call_array): Change args to be a const pointer.
17781 (build_call_vec): New function.
17782 * tree.h (build_nt_call_vec): Declare.
17783 (build_tree_list_vec_stat): Declare.
17784 (build_tree_list_vec): Define.
17785 (build_call_array): Update declaration.
17786 (build_call_vec): Declare.
17787 (ctor_to_vec): Declare.
17788 * c-common.c (tree_vector_cache): New static variable.
17789 (make_tree_vector): New function.
17790 (release_tree_vector): New function.
17791 (make_tree_vector_single): New function.
17792 (make_tree_vector_copy): New function.
17793 * c-common.h (tree_vector_cache, make_tree_vector): Declare.
17794 (make_tree_vector_single, make_tree_vector_copy): Declare.
17795 * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
17796 (c_parser_expr_list): Don't manage cache here, instead call
17797 make_tree_vector.
17798 (c_parser_release_expr_list): Remove static function.
17799 (c_parser_vec_to_tree_list): Remove static function.
17800 (c_parser_attributes): Call build_tree_list_vec instead of
17801 c_parser_vec_to_tree_list. Call release_tree_vector instead of
17802 c_parser_release_expr_list.
17803 (c_parser_postfix_expression_after_primary): Likewise.
17804 (c_parser_objc_keywordexpr): Likewise.
17805
2b3c93a3 178062009-05-20 Sandra Loosemore <sandra@codesourcery.com>
17807
17808 * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
17809 TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
17810 TARGET_CONVERT_TO_TYPE.
17811 * hooks.c (hook_tree_const_tree_null): Define.
17812 * hooks.h (hook_tree_const_tree_null): Declare.
17813 * target.h (struct gcc_target): Add invalid_parameter_type,
17814 invalid_return_type, promoted_type, and convert_to_type fields.
d603963f 17815 * target-def.h (TARGET_INVALID_PARAMETER_TYPE): Define.
2b3c93a3 17816 (TARGET_INVALID_RETURN_TYPE): Define.
17817 (TARGET_PROMOTED_TYPE): Define.
17818 (TARGET_CONVERT_TO_TYPE): Define.
17819 (TARGET_INITIALIZER): Update for new fields.
17820 * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
17821 (grokparms): Check targetm.invalid_parameter_type.
17822 * c-typeck.c (default_conversion): Check targetm.promoted_type.
17823 * c-convert.c (convert): Check targetm.convert_to_type.
17824
d5594fe1 178252009-05-20 Adam Nemet <anemet@caviumnetworks.com>
17826
17827 * config/mips/mips.md (*extenddi_truncate<mode>,
17828 *extendsi_truncate<mode>): Emit exts if supported. Add attribute
17829 defintions.
17830 (*extendhi_truncateqi): New define_insn_and_sptit.
17831
6189c517 178322009-05-20 Jakub Jelinek <jakub@redhat.com>
17833
17834 PR middle-end/40204
17835 * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
2377feea 17836 recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
6189c517 17837
52dbb6e6 178382009-05-20 Eric Botcazou <ebotcazou@adacore.com>
17839
17840 * fold-const.c (build_fold_addr_expr_with_type): Take the address of
17841 the operand of VIEW_CONVERT_EXPR.
17842
4ec32090 178432009-05-20 H.J. Lu <hongjiu.lu@intel.com>
17844
17845 * config/i386/driver-i386.c (host_detect_local_cpu): Check
faa14cce 17846 extended family and model for Intel processors. Support Intel Atom.
4ec32090 17847
c1e61953 178482009-05-20 Olivier Hainque <hainque@adacore.com>
17849
17850 * gstab.h (stab_code_type): Define, to be used instead of the
17851 __stab_debug_code enum, made anonymous. Add 2009 to the copyright
17852 notice.
17853 * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
17854 occurrences by stab_code_type.
17855 * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
17856
b39bfa08 178572009-05-20 Martin Jambor <mjambor@suse.cz>
17858
17859 * tree-flow.h (insert_edge_copies_seq): Undeclare.
17860 (sra_insert_before): Likewise.
17861 (sra_insert_after): Likewise.
17862 (sra_init_cache): Likewise.
17863 (sra_type_can_be_decomposed_p): Likewise.
17864 * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
17865 * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
17866 (sra_insert_before): Likewise.
17867 (sra_insert_after): Likewise.
17868 (sra_init_cache): Likewise.
17869 (insert_edge_copies_seq): Made static and moved upwards.
17870
17871 * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
17872 case.
17873
17874 * tree-flow-inline.h (contains_view_convert_expr_p): New function.
17875
17876 * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
17877 (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
17878 simple copies.
17879
f367b3d4 178802009-05-20 Richard Guenther <rguenther@suse.de>
17881
17882 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
17883 with mismatched comparison modes.
17884
90560cad 178852009-05-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2377feea 17886
90560cad 17887 * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
2377feea 17888 (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
17889 * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
17890 with shifts for Thumb2.
17891 (orsi_notsi): New for orn.
17892 (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
17893 (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
17894 * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
17895 (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
17896 Don't invert remainder for IOR.
f6c8c8fc 17897
fffbaaf2 178982009-05-19 Zdenek Dvorak <ook@ucw.cz>
17899
17900 PR tree-optimization/40087
17901 * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
17902 number_of_iterations_ne): Rename never_infinite argument.
17903 (number_of_iterations_lt_to_ne, number_of_iterations_lt,
17904 number_of_iterations_le): Handle pointer-type ivs when
17905 exit_must_be_taken is false.
17906 (number_of_iterations_cond): Do not always assume that
17907 exit_must_be_taken if the control variable is a pointer.
17908
b6d7101e 179092009-05-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
17910
17911 * c-typeck.c (build_binary_op): Allow % on integal vectors.
17912 * doc/extend.texi (Vector Extension): Document that % is allowed too.
17913
d0573158 179142009-05-19 H.J. Lu <hongjiu.lu@intel.com>
17915
17916 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
17917 ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
17918
e80c6822 179192009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
17920
17921 PR c/40172
17922 * c.opt (Wlogical-op): Disabled by default.
17923 * c-opt (c_common_post_options): Do not enable Wlogical-op with
17924 Wextra.
17925 * doc/invoke.texi (Wlogical-op): Likewise.
f6c8c8fc 17926
191bdb6e 179272009-05-19 Eric Botcazou <ebotcazou@adacore.com>
17928
17929 * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
17930 into CASE_CONVERT.
17931 <PLUS_EXPR>: Strip useless type conversions instead of type nops.
17932 Propagate the type of the first operand.
17933 <ASSERT_EXPR>: Simplify.
17934 (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
17935 Rewrite using the RHS code as discriminant.
17936 <NOP_EXPR>: Turn into CASE_CONVERT.
17937 <PLUS_EXPR>: Propagate the type of the first operand.
17938
50738926 179392009-05-19 Steve Ellcey <sje@cup.hp.com>
17940
17941 * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
17942 (ia64_dconst_0_375): New.
17943 * config/ia64/ia64.c (ia64_override_options): Remove
17944 -minline-sqrt-min-latency warning.
17945 (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
17946 (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
17947 * config/ia64/ia64.md (*sqrt_approx): Remove.
17948 (sqrtsf2): Remove #if 0.
17949 (sqrtsf2_internal_thr): Rewrite and move to div.md.
17950 (sqrtdf): Remove assert.
17951 (sqrtdf2_internal_thr): Rewrite and move to div.md.
17952 (sqrtxf2): Remove #if 0.
17953 (sqrtxf2_internal_thr): Rewrite and move to div.md.
17954 * div.md (sqrt_approx_rf): New.
17955 (sqrtsf2_internal_thr): New implementation.
17956 (sqrtsf2_internal_lat): New.
17957 (sqrtdf2_internal_thr: New implementation.
17958 (sqrtxf2_internal): New implementation.
17959
b0b1cbb9 179602009-05-19 Francois-Xavier Coudert <fxcoudert@gmail.com>
17961 Hans-Peter Nilsson <hp@axis.com>
17962
17963 * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
17964 (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
17965 (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
17966 (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
17967 (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
17968 (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
17969 (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
17970 (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
17971 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
17972 (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
17973 * c-common.c: ...from here.
17974
bac21f4c 179752009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
17976
faa14cce 17977 * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
bac21f4c 17978
44d89feb 179792009-05-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17980
17981 * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
17982
46d25b89 179832009-05-19 Ben Elliston <bje@au.ibm.com>
17984
17985 * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
17986 assignments with memcpy calls.
17987 (add_fdes): Likewise.
17988 (binary_search_unencoded_fdes): Likewise.
17989 (linear_search_fdes): Eliminate type puns.
f6c8c8fc 17990
9e019299 179912009-05-19 Richard Guenther <rguenther@suse.de>
17992
17993 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
17994 not falsely claim to have propagated into all uses.
17995
83c2609c 179962009-05-19 Ben Elliston <bje@au.ibm.com>
17997
17998 * doc/invoke.texi (C Dialect Options): Update OpenMP specification
17999 version to v3.0.
18000
eeabeacf 180012009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
18002
18003 * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
18004 * config/sh/sh.c (sh_legitimate_address_p): Make static.
18005 (TARGET_LEGITIMATE_ADDRESS_P): New.
18006 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18007 * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
f6c8c8fc 18008
9c569d54 180092009-05-18 Dodji Seketeli <dodji@redhat.com>
18010
18011 PR debug/40109
18012 * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
18013 child of the containing namespace's DIE.
18014
7c6d4a4d 180152009-05-18 Adam Nemet <anemet@caviumnetworks.com>
18016
18017 * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
18018 *zero_extendhi_truncqi): Move after the zero_extend patterns.
18019 (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
18020 extend patterns.
18021
3559347d 180222009-05-18 H.J. Lu <hongjiu.lu@intel.com>
18023
18024 PR target/39942
18025 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
18026 gen_align with gen_pad.
18027 (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
18028 #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
18029
18030 * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
18031 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
18032
18033 * config/i386/i386.md (align): Renamed to ...
18034 (pad): This. Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
18035 ASM_OUTPUT_MAX_SKIP_PAD.
18036
f422081b 180372009-05-18 Andreas Schwab <schwab@linux-m68k.org>
18038
e371d98c 18039 * config.gcc: Fix variable syntax.
18040
f422081b 18041 PR target/39531
18042 * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
18043 before calling exact_log2.
18044 (output_iorsi3): Likewise.
18045 (output_xorsi3): Likewise.
18046
79c09794 180472009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
18048
18049 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
18050 for the none zero constant operand except for EQ and NE
18051 comprisons even when the first operand is R0.
18052
ffead1ca 180532009-05-18 Andreas Krebbel <krebbel1@de.ibm.com>
18054
18055 * config/s390/2064.md: Remove trailing whitespaces.
18056 * config/s390/2084.md: Likewise.
18057 * config/s390/constraints.md: Likewise.
18058 * config/s390/fixdfdi.h: Likewise.
18059 * config/s390/libgcc-glibc.ver: Likewise.
18060 * config/s390/s390-modes.def: Likewise.
18061 * config/s390/s390-protos.h: Likewise.
18062 * config/s390/s390.c: Likewise.
18063 * config/s390/s390.h: Likewise.
18064 * config/s390/s390.md: Likewise.
18065 * config/s390/tpf-unwind.h: Likewise.
18066
2a381450 180672009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
18068
18069 * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
18070
869bde6b 180712009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
18072
18073 M68K TLS support.
18074 * configure.ac (m68k-*-*): Check if binutils support TLS.
18075 * configure: Regenerate.
18076 * config/m68k/predicates.md (symbolic_operand): Extend comment.
18077 * config/m68k/constraints.md (Cu): New constraint.
18078 * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
18079 (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
18080 (movsi): Handle TLS symbols.
18081 (addsi3_5200): Handle XTLS symbols, indent.
18082 * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
18083 (m68k_tls_reference_p): Declare.
18084 (m68k_legitimize_address): Declare.
18085 (m68k_unwrap_symbol): Declare.
18086 * config/m68k/m68k.opt (mxtls): New option.
18087 * config/m68k/m68k.c (ggc.h): Include.
18088 (m68k_output_dwarf_dtprel): Implement hook.
18089 (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
18090 (m68k_expand_prologue): Load GOT pointer when function needs it.
18091 (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
18092 (m68k_legitimate_constant_address_p): Same.
18093 (m68k_decompose_address): Handle TLS references.
18094 (m68k_get_gp): New static function.
18095 (enum m68k_reloc): New contants.
18096 (TLS_RELOC_P): New macro.
18097 (m68k_wrap_symbol): New static function.
18098 (m68k_unwrap_symbol): New function.
18099 (m68k_final_prescan_insn_1): New static function.
18100 (m68k_final_prescan_insn): New function.
18101 (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
18102 functions.
18103 (legitimize_pic_address): Handle TLS references..
18104 (m68k_tls_get_addr, m68k_get_tls_get_addr)
18105 (m68k_libcall_value_in_a0_p)
18106 (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
18107 (m68k_call_m68k_read_tp): Helper variables and functions for ...
18108 (m68k_legitimize_tls_address): Handle TLS references.
18109 (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
18110 New functions.
18111 (m68k_legitimize_address): Handle TLS symbols.
18112 (m68k_get_reloc_decoration): New static function.
18113 (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
18114 UNSPEC_RELOC32.
18115 (m68k_output_dwarf_dtprel): Implement hook.
18116 (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
18117 (m68k_libcall_value): Return result in A0 instead of D0 when asked by
18118 m68k_call_* routines.
18119 (sched_attr_op_type): Handle TLS symbols.
18120 (gt-m68k.h): Include.
18121 * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
18122 (LEGITIMATE_PIC_OPERAND_P): Support TLS.
18123
a3808114 181242009-05-18 Martin Jambor <mjambor@suse.cz>
18125
18126 * ipa-prop.c (ipa_check_stmt_modifications): Removed.
18127 (visit_store_addr_for_mod_analysis): New function.
18128 (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
18129 (determine_cst_member_ptr): Use gimple_assign_single_p.
18130 (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
18131 (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
18132 operands. Don't check number of operands of a NOP_EXPR.
18133
87deed07 181342009-05-18 Eric Fisher <joefoxreal@gmail.com>
18135
18136 * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
18137
0969aa9b 181382009-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
18139
18140 PR c/40172
18141 * c-common.c (warn_logical_operator): Don't warn if one of
18142 expression isn't always true or false.
18143
80c5827c 181442009-05-17 Kai Tietz <kai.tietz@onevision.com>
18145
0969aa9b 18146 * config/i386/biarch32.h: New file.
18147 * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
80c5827c 18148
f494873f 181492009-05-17 Adam Nemet <anemet@caviumnetworks.com>
18150
18151 * config/mips/mips.md (*zero_extend<mode>_trunchi,
18152 *zero_extend<mode>_truncqi): Merge these into ...
18153 (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
18154 Name the pattern following this as *zero_extendhi_truncqi.
18155
c2a312d3 181562009-05-16 Brad Lucier <lucier@math.purdue.edu>
18157
18158 PR middle-end/39301
18159 * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
18160 * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
18161 (output_info): Make field HOST_WIDEST_INT.
18162 (print_statistics): Use HOST_WIDEST_INT_PRINT.
18163 (dump_bitmat_statistics): Same.
18164
ef87fe4c 181652009-05-16 Francois-Xavier Coudert <fxcoudert@gmail.com>
18166
18167 * config.gcc (use_gcc_stdint): Set to wrap.
18168 * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
18169 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
18170 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
18171 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
18172 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
18173 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
18174 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
18175 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
18176
38c0064e 181772009-05-16 Joseph Myers <joseph@codesourcery.com>
18178
18179 * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
18180 tune_64.
18181 * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
18182 Move definitions earlier.
18183 (OPT_ARCH64, OPT_ARCH32): Define.
18184 (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
18185 and tune_64.
18186
a277ddf3 181872009-05-16 Richard Earnshaw <rearnsha@arm.com>
18188
18189 PR target/40153
18190 * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
18191 implies.
18192
bc5a93af 181932009-05-16 Richard Earnshaw <rearnsha@arm.com>
18194
18195 * arm.md (movdi2): Copy non-reg values to DImode registers.
18196
139e6b83 181972009-05-16 Jakub Jelinek <jakub@redhat.com>
18198
01e60dc2 18199 PR target/39942
18200 * final.c (label_to_max_skip): New function.
18201 (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
18202 CODE_LABEL_NUMBER <= max_labelno.
18203 * output.h (label_to_max_skip): New prototype.
18204 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
18205 (ix86_avoid_jump_mispredicts): ... this. Don't define if
18206 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined. Update comment.
18207 Handle CODE_LABELs with >= 16 byte alignment or with
18208 max_skip == (1 << align) - 1.
18209 (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
18210 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
18211
139e6b83 18212 PR target/39942
18213 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
18214 .p2align 3 if MAX_SKIP is smaller than 7.
18215 * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
18216
26dbec0a 182172009-05-15 Ian Lance Taylor <iant@google.com>
18218
18219 * alias.c (struct alias_set_entry_d): Rename from struct
18220 alias_set_entry. Change all uses.
18221 * except.c (struct call_site_record_d): Rename from struct
18222 call_site_record. Change all uses.
18223 * except.h (struct eh_region_d): Rename from struct eh_region.
18224 Change all uses.
18225 * gcse.c (struct hash_table_d): Rename from struct hash_table.
18226 Change all uses.
18227 * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
18228 ivtype_map_elt. Change all uses.
18229 (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
18230 Change all uses.
18231 (struct ifsese_d): Rename fromstruct ifsese. Change all uses.
18232 * graphite.h (struct name_tree_d): Rename from struct name_tree.
18233 Change all uses.
18234 (struct sese_d): Rename from struct sese. Change all uses.
2377feea 18235 * omega.h (struct eqn_d): Rename from struct eqn. Change all uses.
18236 (struct omega_pb_d): Rename from struct omega_pb. Change all uses.
26dbec0a 18237 * optabs.h (struct optab_d): Rename from struct optab. Change all
18238 uses.
18239 (struct convert_optab_d): Rename from struct convert_optab.
18240 Change all uses.
18241 * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
18242 ipa_opt_pass. Change all uses.
18243 * tree-predcom.c (struct dref_d): Rename from struct dref. Change
18244 all uses.
18245
18246 * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
18247 defined as a typedef.
18248 (grokdeclarator): If -Wc++-compat, warn if a typedef is already
18249 defined as a tag.
18250
9c20c4fc 182512009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
18252
18253 PR 16302
18254 * fold-const.c (make_range,build_range_check,merge_ranges): Move
18255 declaration to...
f6c8c8fc 18256 (merge_ranges): Returns bool.
9c20c4fc 18257 * tree.h (make_range): .. to here.
18258 (build_range_check): Likewise.
18259 (merge_ranges): Likewise. Renamed from merge_ranges.
18260 * c-typeck.c (parser_build_binary_op): Update calls to
18261 warn_logical_operator.
18262 * c-common.c (warn_logical_operator): Add new warning.
18263 * c-common.h (warn_logical_operator): Update declaration.
f6c8c8fc 18264
4b0c3b93 182652009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
18266
2377feea 18267 * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
f6c8c8fc 18268
239d491a 182692009-05-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18270
b155fb54 18271 * doc/install.texi: Document MPC requirements, flags etc.
18272
239d491a 18273 * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
18274 (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
18275 Evaluate constant arguments.
18276 (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
18277 (fold_builtin_1): Likewise, also evaluate constant arguments.
18278 Remove superfluous break.
18279 (do_mpc_ckconv): New.
18280 * real.h: Include mpc.h.
18281 * toplev.c (print_version): Output MPC version info if available.
18282
275b395f 182832009-05-15 Sandra Loosemore <sandra@codesourcery.com>
18284
2377feea 18285 * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
275b395f 18286
2206e042 182872009-05-15 H.J. Lu <hongjiu.lu@intel.com>
18288
18289 * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
18290 only once.
18291
a7b61d8c 182922009-05-15 Jan Hubicka <jh@suse.cz>
18293
18294 * doc/invoke.texi (max-early-inliner-iterations): New flag.
18295 * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
18296 (try_inline): Fix return value.
18297 (cgraph_decide_inlining_incrementally): Honor new value.
18298 (cgraph_early_inlining): Handle indirect inlining.
18299 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
18300
22c748a1 183012009-05-15 Jan Hubicka <jh@suse.cz>
18302
18303 * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
18304 * cgraphunit.c (cgraph_finalize_function): Set it.
18305 (cgraph_expand_function): Use it.
18306
681f1241 183072009-05-15 Sandra Loosemore <sandra@codesourcery.com>
18308
18309 * real.c (encode_ieee_half): Define.
18310 (decode_ieee_half): Define.
18311 (ieee_half_format): Define.
18312 (arm_half_format): Define.
18313 * real.h (ieee_half_format): Declare.
18314 (arm_half_format): Declare.
18315
d5a9653a 183162009-05-15 Sandra Loosemore <sandra@codesourcery.com>
18317
18318 * optabs.c (prepare_float_lib_cmp): Test that the comparison,
18319 swapped, and reversed optabs exist before trying to use them.
18320
f1c02c87 183212009-05-15 Paul Brook <paul@codesourcery.com>
18322 Sandra Loosemore <sandra@codesourcery.com>
18323
f1c02c87 18324 * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
18325 loads. Allow PRE_DEC.
18326 (output_move_neon): Handle PRE_DEC.
18327 (arm_print_operand): Add 'A' for neon structure loads.
18328 * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
18329 * config/arm/neon.md (neon_mov): Update comment.
18330 * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
18331 calls.
18332 (Um): New constraint.
18333
2958813f 183342009-05-15 Jan Hubicka <jh@suse.cz>
18335
18336 Revert the following patch until testsuite fallout is fixed:
18337 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
18338 * cgraph.h (struct inline_summary): New filed self_wize,
18339 size_inlining_benefit, self_time and time_inlining_benefit.
18340 (struct cgraph_global_info): Replace insns by time ans size fields.
18341 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
18342 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
18343 (ipcp_update_callgraph): Do not touch function bodies.
18344 * ipa-inline.c: Include except.h
2377feea 18345 (MAX_TIME): New constant.
2958813f 18346 (overall_insns): Remove
18347 (overall_size, max_benefit): New static variables.
18348 (cgraph_estimate_time_after_inlining): New function.
18349 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
18350 (cgraph_clone_inlined_nodes): Update size.
18351 (cgraph_mark_inline_edge): Update size.
18352 (cgraph_estimate_growth): Use size info.
18353 (cgraph_check_inline_limits): Check size.
18354 (cgraph_default_inline_p): Likewise.
18355 (cgraph_edge_badness): Compute badness based on benefit and size cost.
18356 (cgraph_decide_recursive_inlining): Check size.
faa14cce 18357 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
18358 and times.
2958813f 18359 (cgraph_decide_inlining): Likewise.
54e6ab3d 18360 (cgraph_decide_inlining_incrementally): Likewise; honor
18361 PARAM_EARLY_INLINING_INSNS.
2958813f 18362 (likely_eliminated_by_inlining_p): New predicate.
18363 (estimate_function_body_sizes): New function.
18364 (compute_inline_parameters): Use it.
18365 * except.c (must_not_throw_labels): New function.
18366 * except.h (must_not_throw_labels): Declare.
18367 * tree-inline.c (init_inline_once): Kill inlining_weigths
18368 * tree-ssa-structalias.c: Avoid uninitialized warning.
18369 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
18370 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
18371 (PARAM_INLINE_CALL_COST): Remove.
18372 (PARAM_EARLY_INLINING_INSNS): New.
18373
1b536c34 183742009-05-15 Richard Guenther <rguenther@suse.de>
18375
18376 * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
18377 not TODO_update_ssa.
18378
a1157bfe 183792009-05-15 Richard Guenther <rguenther@suse.de>
18380
18381 PR tree-optimization/39999
18382 * gimple.h (gimple_expr_type): Use the expression type looking
18383 through useless conversions.
18384 * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
18385 (vn_nary_op_insert_stmt): Likewise.
18386 (simplify_binary_expression): Likewise.
18387
408c3c77 183882009-05-15 Richard Guenther <rguenther@suse.de>
18389
18390 * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
18391 New options, enabled by default.
18392 * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
18393 Document.
18394 * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
18395 * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
18396 * tree-ssa-structalias.c (gate_tree_pta): New function.
18397 (pass_build_alias): Use it.
18398
bd8d8d81 183992009-05-15 Joseph Myers <joseph@codesourcery.com>
18400
18401 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
18402 recurse on an invariant address if a conversion from a pointer
18403 type to a wider integer type is involved.
18404
9288864f 184052009-05-15 Jan Hubicka <jh@suse.cz>
18406
18407 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
18408 * cgraph.h (struct inline_summary): New filed self_wize,
18409 size_inlining_benefit, self_time and time_inlining_benefit.
18410 (struct cgraph_global_info): Replace insns by time ans size fields.
18411 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
18412 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
18413 (ipcp_update_callgraph): Do not touch function bodies.
18414 * ipa-inline.c: Include except.h
2377feea 18415 (MAX_TIME): New constant.
9288864f 18416 (overall_insns): Remove
18417 (overall_size, max_benefit): New static variables.
18418 (cgraph_estimate_time_after_inlining): New function.
18419 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
18420 (cgraph_clone_inlined_nodes): Update size.
18421 (cgraph_mark_inline_edge): Update size.
18422 (cgraph_estimate_growth): Use size info.
18423 (cgraph_check_inline_limits): Check size.
18424 (cgraph_default_inline_p): Likewise.
18425 (cgraph_edge_badness): Compute badness based on benefit and size cost.
18426 (cgraph_decide_recursive_inlining): Check size.
faa14cce 18427 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
18428 and times.
9288864f 18429 (cgraph_decide_inlining): Likewise.
54e6ab3d 18430 (cgraph_decide_inlining_incrementally): Likewise; honor
18431 PARAM_EARLY_INLINING_INSNS.
9288864f 18432 (likely_eliminated_by_inlining_p): New predicate.
18433 (estimate_function_body_sizes): New function.
18434 (compute_inline_parameters): Use it.
18435 * except.c (must_not_throw_labels): New function.
18436 * except.h (must_not_throw_labels): Declare.
18437 * tree-inline.c (init_inline_once): Kill inlining_weigths
18438 * tree-ssa-structalias.c: Avoid uninitialized warning.
18439 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
18440 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
18441 (PARAM_INLINE_CALL_COST): Remove.
18442 (PARAM_EARLY_INLINING_INSNS): New.
18443 doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
18444 (inline-call-cost): Remove.
18445 (early-inlining-insns): New.
18446
a9538d68 184472009-05-15 Eric Botcazou <ebotcazou@adacore.com>
18448
18449 * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters. Use them
18450 for bounds.
18451 (print_int_cst_bounds_in_octal_p): Likewise.
18452 (dbxout_type): Adjust calls to above functions. Be prepared to deal
18453 with subtypes.
18454 * dwarf2out.c (base_type_die): Likewise.
18455 (is_subrange_type): Delete.
18456 (subrange_type_die): Add LOW and HIGH parameters. Use them for bounds.
18457 (modified_type_die): Call subrange_type_for_debug_p on subtypes.
faa14cce 18458 * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
18459 if the destination type is boolean.
a9538d68 18460 (build_range_check): Do not special-case subtypes.
18461 (fold_sign_changed_comparison): Likewise.
18462 (fold_unary): Likewise.
18463 * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
18464 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
18465 * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
faa14cce 18466 * tree.c (subrange_type_for_debug_p): New predicate based on the
18467 former is_subrange_type.
a9538d68 18468 * tree.h (subrange_type_for_debug_p): Declare.
18469 * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
18470 (convert_affine_scev): Remove call to above function.
18471 (chrec_convert_aggressive): Likewise.
18472 * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
18473 false for conversions involving subtypes.
18474 * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
18475 (vrp_val_min): Likewise.
18476 (needs_overflow_infinity): Likewise.
18477 (extract_range_from_unary_expr): Likewise.
18478
bc409cb4 184792009-05-15 Paolo Bonzini <bonzini@gnu.org>
18480
314be557 18481 * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
18482 * config/frv/frv.c: Likewise.
18483 * config/s390/s390.c: Likewise.
18484 * config/sparc/sparc.h: Likewise.
18485 * config/i386/i386.h: Likewise.
18486 * config/i386/i386.c: Likewise.
18487 * config/crx/crx.c: Likewise.
18488 * config/m68hc11/m68hc11.h: Likewise.
18489 * config/iq2000/iq2000.c: Likewise.
18490 * config/mn10300/mn10300.h: Likewise.
18491 * config/mn10300/mn10300.c: Likewise.
18492 * config/m68k/m68k.c: Likewise.
18493 * config/rs6000/rs6000.c: Likewise.
18494 * config/rs6000/xcoff.h: Likewise.
18495 * config/rs6000/linux64.h: Likewise.
18496 * config/rs6000/sysv4.h: Likewise.
18497 * config/score/score3.c: Likewise.
18498 * config/score/score7.c: Likewise.
18499 * config/score/score.c: Likewise.
18500 * config/arm/arm.md: Likewise.
18501 * config/mips/mips.c: Likewise.
18502 * config/mips/mips.md: Likewise.
18503 * config/bfin/bfin.h: Likewise.
18504 * config/pa/pa.c: Likewise.
18505 * config/pa/constraints.md: Likewise.
18506
18507 * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
18508 * config/pdp11/pdp11.c (legitimate_address_p): Delete.
18509 * config/pdp11/pdp11.h: Use memory_address_p instead.
bc409cb4 18510
9f1b7d17 185112009-05-14 Ian Lance Taylor <iant@google.com>
18512
18513 * passes.c (finish_optimization_passes): Change i to int.
18514 * plugin.c (plugins_active_p): Change event to int.
18515 (dump_active_plugins): Likewise.
18516 * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
18517 Add cast.
18518 * tree.c (tree_range_check_failed): Change c to unsigned int.
18519 (omp_clause_range_check_failed): Likewise.
18520 (build_common_builtin_nodes): Change mode to int. Add cast.
18521 * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
18522 (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
18523
18524 * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
18525 ++ or -- with a variable of enum type.
18526
b500432f 185272009-05-14 Steven Bosscher <steven@gcc.gnu.org>
18528
18529 PR driver/40144
18530 * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
18531
da71eacc 185322009-05-14 Steven Bosscher <steven@gcc.gnu.org>
18533
18534 * store-motion.c: Do not include params.h
18535 * Makefile.in: Fix dependencies for various files.
18536
ca4bb7ac 185372009-05-14 Steven Bosscher <steven@gcc.gnu.org>
18538
18539 * auto-inc-dec.c: Fix pass description, remove apparent
18540 accidental duplication.
18541
8d27c5b5 185422009-05-14 H.J. Lu <hongjiu.lu@intel.com>
18543
18544 PR middle-end/40147
18545 * ipa-utils.h (memory_identifier_string): Moved to ...
18546 * tree.h (memory_identifier_string): Here. Add GTY(()).
18547
fd50b071 185482009-05-14 Paolo Bonzini <bonzini@gnu.org>
18549
18550 * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
18551 in the former documentation of...
18552 (GO_IF_LEGITIMATE_ADDRESS): ... this.
18553 * ira-conflicts.c (get_dup_num): Use address_operand.
18554 * targhooks.c (default_legitimate_address_p): New.
18555 * targhooks.h (default_legitimate_address_p): New.
18556 * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
18557 Call hook.
18558 * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
18559 * target.h (struct target): Add legitimate_address_p.
18560 * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
18561 (TARGET_INITIALIZER): Include it.
18562
18563 * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18564 * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
18565 * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
18566 (TARGET_LEGITIMATE_ADDRESS_P): New.
18567
18568 * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18569 (REG_OK_STRICT_P): Delete.
18570 * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
18571 (frv_legitimate_address_p_1): ... this.
18572 * config/frv/frv.c (frv_legitimate_address_p): Forward to...
18573 (frv_legitimate_address_p_1): ... the renamed old
18574 frv_legitimate_address_p.
18575 * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
18576 (TARGET_LEGITIMATE_ADDRESS_P): New.
18577
18578 * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18579 * config/s390/s390-protos.h (legitimate_address_p): Remove.
18580 * config/s390/s390.c (legitimate_address_p): Rename to...
18581 (s390_legitimate_address_p): ... this, make static.
18582 (legitimize_address): Adjust call.
18583 (TARGET_LEGITIMATE_ADDRESS_P): New.
18584 * config/s390/constraints.md ("e"): Call strict_memory_address_p.
18585
18586 * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18587 * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
18588 * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
18589 (TARGET_LEGITIMATE_ADDRESS_P): New.
18590
18591 * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18592 * config/spu/spu-protos.h (spu_legitimate_address): Remove.
18593 * config/spu/spu.c (spu_legitimate_address): Rename to...
18594 (spu_legitimate_address_p): ... this, make static.
18595 (TARGET_LEGITIMATE_ADDRESS_P): New.
18596
18597 * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18598 * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
18599 * config/sparc/sparc.c (legitimate_address_p): Rename to...
18600 (sparc_legitimate_address_p): ... this, make static and return bool.
18601 (legitimize_address): Adjust call.
18602 (TARGET_LEGITIMATE_ADDRESS_P): New.
18603
18604 * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18605 * config/i386/i386-protos.h (legitimate_address_p): Remove.
18606 * config/i386/i386.c (legitimate_address_p): Rename to...
18607 (ix86_legitimate_address_p): ... this, make static.
18608 (constant_address_p): Move after it, adjust call.
18609 (TARGET_LEGITIMATE_ADDRESS_P): New.
18610
18611 * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18612 * config/avr/avr-protos.h (legitimate_address_p): Remove.
18613 * config/avr/avr.c (legitimate_address_p): Rename to...
18614 (avr_legitimate_address_p): ... this, make static.
18615 (legitimize_address): Adjust call.
18616 (TARGET_LEGITIMATE_ADDRESS_P): New.
18617
18618 * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18619 * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
18620 * config/crx/crx.c (crx_legitimate_address_p): Make static.
18621 (TARGET_LEGITIMATE_ADDRESS_P): New.
18622
18623 * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18624 * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
18625 * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
18626 (TARGET_LEGITIMATE_ADDRESS_P): New.
18627
18628 * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18629 * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
18630 Remove.
18631 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
18632 Make static.
18633 (TARGET_LEGITIMATE_ADDRESS_P): New.
18634
18635 * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18636 * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
18637 Remove.
18638 * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
18639 Rename to...
18640 (m68hc11_legitimate_address_p): ... this, make static.
18641 (go_if_legitimate_address_internal): Rename to...
18642 (m68hc11_legitimate_address_p_1): ... this.
18643 (legitimize_address): Adjust call.
18644 (TARGET_LEGITIMATE_ADDRESS_P): New.
18645
18646 * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
2377feea 18647 * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
18648 * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
fd50b071 18649 (TARGET_LEGITIMATE_ADDRESS_P): New.
18650
18651 * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18652 * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
18653 * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
18654 (mn10300_legitimate_address_p): ... this, make static.
18655 (TARGET_LEGITIMATE_ADDRESS_P): New.
18656
18657 * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18658 * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
18659 * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
18660 (TARGET_LEGITIMATE_ADDRESS_P): New.
18661
18662 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18663 (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
18664 (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
18665 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18666 * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
18667 * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
18668 (rs6000_legitimate_address_p): ... this, make static.
18669 (TARGET_LEGITIMATE_ADDRESS_P): New.
18670 (REG_MODE_OK_FOR_BASE_P): Delete.
18671 (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
18672
18673 * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18674 * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
18675 Delete.
18676 * config/picochip/picochip.c (picochip_legitimate_address_p): Make
18677 static, adjust types.
18678 (TARGET_LEGITIMATE_ADDRESS_P): New.
18679
18680 * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18681 * config/score/score.c (score_address_p): Rename to...
18682 (score_legitimate_address_p): ... this.
18683 (TARGET_LEGITIMATE_ADDRESS_P): New.
18684 * config/score/score3.c (score3_address_p): Rename to...
18685 (score3_legitimate_address_p): ... this.
18686 * config/score/score7.c (score7_address_p): Rename to...
18687 (score7_legitimate_address_p): ... this.
18688
18689 * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
18690 THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
18691 GO_IF_LEGITIMATE_ADDRESS): Delete.
18692 * config/arm/arm-protos.h (thumb1_legitimate_address_p,
18693 thumb2_legitimate_address_p): Delete.
18694 (arm_legitimate_address_p): Rename to...
18695 (arm_legitimate_address_outer_p): ... this.
18696 * config/arm/constraints.md ("Uq"): Adjust call.
18697 * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
faa14cce 18698 * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
18699 to...
fd50b071 18700 (arm_legitimate_address_outer_p): ... this.
faa14cce 18701 (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
18702 static.
fd50b071 18703 (TARGET_LEGITIMATE_ADDRESS_P): New.
18704
18705 * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18706 * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
18707 * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
18708 (TARGET_LEGITIMATE_ADDRESS_P): New.
18709
18710 * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18711 * config/vax/vax-protos.h (legitimate_address_p): Remove.
18712 * config/vax/vax.c (legitimate_address_p): Rename to...
18713 (vax_legitimate_address_p): ... this, make static.
18714 (TARGET_LEGITIMATE_ADDRESS_P): New.
18715
18716 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18717 * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
18718 * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
18719 (TARGET_LEGITIMATE_ADDRESS_P): New.
18720
18721 * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18722 * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
18723 * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
18724 (mmix_legitimate_address_p): ... this, make static.
18725 (TARGET_LEGITIMATE_ADDRESS_P): New.
18726
18727 * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18728 * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
18729 * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
18730 (TARGET_LEGITIMATE_ADDRESS_P): New.
18731
142792e2 187322009-05-14 Paolo Bonzini <bonzini@gnu.org>
18733
18734 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
18735 of MODE_COMPLEX_INT.
18736
92e0f786 187372009-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
18738
18739 * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
18740 LCT_NORMAL in function call.
18741 * mips-tdump.c (print_file_desc): Add cast to enum type.
18742 * mips-tfile.c (add_ext_symbol): Add casts to enum types.
18743 (mark_stabs): Add casts to enum types.
18744 (parse_stabs_common): Add casts to enum types.
4fb84273 18745
cc1a5e3e 187462009-05-13 Adam Nemet <anemet@caviumnetworks.com>
18747
18748 * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
18749 Check for invalid values of LETTER.
18750
e3fced1a 187512009-05-13 Taras Glek <tglek@mozilla.com>
18752
faa14cce 18753 * attribs.c (register_attribute): moved out attribute registration
18754 into register_attribute.
18755 * doc/plugins.texi: Documented register_attribute and
18756 PLUGIN_ATTRIBUTES.
4fb84273 18757 * gcc-plugin.h: Added forward decl for register_attribute.
18758 * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
18759 * plugin.c (register_callback, invoke_plugin_callbacks): Added
18760 PLUGIN_ATTRIBUTES boilerplate.
e3fced1a 18761
a339bdea 187622009-05-14 Dave Korn <dave.korn.cygwin@gmail.com>
18763
18764 * config/i386/msformat-c.c (ms_printf_length_specs): Use enumeration
18765 values even in sentinel and empty entries.
18766 (ms_printf_flag_specs): Likewise.
18767 (ms_scanf_flag_specs): Likewise.
18768 (ms_strftime_flag_specs): Likewise.
18769 (ms_print_char_table): Likewise.
18770 (ms_scan_char_table): Likewise.
18771 (ms_time_char_table): Likewise.
18772
f7b092e4 187732009-05-13 Doug Kwan <dougkwan@google.com>
18774
18775 * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
18776
eb3880ea 187772009-05-13 Adam Nemet <anemet@caviumnetworks.com>
18778
18779 * config/mips/mips.md (store): Add attributes for QI and HI.
18780 Update comment.
18781 (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
18782 (truncdi<mode>2): ... this new pattern.
18783
33ef0630 187842009-05-13 Brad Hards <bradh@kde.org>
18785
18786 * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
18787
ff1fe2e2 187882009-05-14 Jakub Jelinek <jakub@redhat.com>
2ffe5515 18789 Ben Elliston <bje@au.ibm.com>
18790
18791 PR middle-end/40035
18792 * dse.c (check_mem_read_rtx): Guard against width == -1.
18793
2b36f1bc 187942009-05-13 Michael Matz <matz@suse.de>
18795
18796 PR middle-end/39976
18797 * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
18798 (trivially_conflicts_p): New function.
18799 (insert_backedge_copies): Use it.
18800
6b600976 188012009-05-13 Janis Johnson <janis187@us.ibm.com>
18802
18803 * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
18804 (handle_stdc_pragma): Use new enum constant names.
18805 (handle_pragma_float_const_decimal64): Ditto.
18806
b20df6d7 188072009-05-13 Ian Lance Taylor <iant@google.com>
18808
18809 * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
18810 tree.def.
18811
ec0044e4 188122009-05-13 Nathan Sidwell <nathan@codesourcery.com>
18813
18814 * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
18815 * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
18816 multilibs.
18817 * config/m68k/m68k.h (FL_UCLINUX): Define.
18818
16669ccd 188192009-05-13 Jan Hubicka <jh@suse.cz>
18820
18821 * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
18822
bfc27c6a 188232009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
18824
18825 * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
18826 unless -fschedule-insns is specified.
18827
65b0af14 188282009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
18829
18830 PR target/39561
18831 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
18832 TARGET_EXPAND_CBRANCHDI4.
18833 * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
18834 * config/sh/sh.opt (mexpand-cbranchdi): Remove.
18835 (cmpeqdi): Fix comment.
18836
36fa166c 188372009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
18838
18839 * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
18840 (sh_legitimate_address_p): Likewise.
18841 * config/sh/sh.c (sh_legitimate_index_p): New.
18842 (sh_legitimate_address_p): Likewise.
18843 * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
18844 (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
18845 (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
18846 (MAYBE_BASE_REGISTER_RTX_P): New macro.
18847 (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
18848 (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
18849 (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
18850 (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
18851 (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
18852
94e6e359 188532009-05-12 Jan Hubicka <jh@suse.cz>
18854
18855 * tree-inline.c (estimate_operator_cost): Add operands;
18856 when division happens by constant, it is cheap.
18857 (estimate_num_insns): Loads and stores are not having cost of 0;
18858 EH magic stuff is cheap; when computing runtime cost of switch,
18859 use log2 base of amount of its cases; builtin_expect has cost of 0;
18860 compute cost for moving return value of call.
18861 (init_inline_once): Initialize time_based flags.
18862 * tree-inline.h (eni_weights_d): Add time_based flag.
18863
d6b07704 188642009-05-12 Paolo Bonzini <bonzini@gnu.org>
18865
18866 * df-core.c: Update head documentation.
18867
111c35f8 188682009-05-12 Michael Meissner <meissner@linux.vnet.ibm.com>
18869
18870 PR bootstrap/40118
18871 * rs6000.c (rs6000_generate_compare): Use op1b instead of
18872 shadowing exisiting variable op1.
18873
6ca2db76 188742009-05-12 Uros Bizjak <ubizjak@gmail.com>
18875
073bc052 18876 PR target/37179
6ca2db76 18877 * config/i386/driver-i386.c (processor_signatures): New enum.
18878 (SIG_GEODE): Move from vendor_signatures to processor_signatures.
18879 (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
18880 processor signature to detect geode processor.
18881
27f97b12 188822009-05-12 Paolo Bonzini <bonzini@gnu.org>
18883
18884 Revert:
18885
18886 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
18887
18888 * optabs.c (prepare_cmp_insn): Temporarily disable test that
18889 causes spurious differences between trunk and cond-optab branch.
18890
74f4459c 188912009-05-12 Paolo Bonzini <bonzini@gnu.org>
18892
6ca2db76 18893 * dojump.c (compare_from_rtx): Delete.
18894 * expmed.c (emit_store_flag): Only try cstore_optab. Canonicalize
18895 any MODE_CC mode to the cstorecc4 pattern. Use prepare_operand, fail
74f4459c 18896 if the comparison does not satisfy the predicate; test predicates for
18897 operands 2 and 3 of a cstore pattern. Don't try cstore optab
18898 further if one existing pattern fails.
6ca2db76 18899 * expr.h (compare_from_rtx): Delete.
74f4459c 18900 (prepare_operand): Declare it.
6ca2db76 18901 * optabs.c: Change "lib call" to "libcall" throughout.
74f4459c 18902 (bcc_gen_fctn, setcc_gen_code, trap_rtx,
6ca2db76 18903 HAVE_conditional_trap, emit_cmp_insn): Delete.
18904 (can_compare_p): Delete cmp_optab case.
74f4459c 18905 (prepare_float_lib_cmp): Return an rtx and a machine mode.
6ca2db76 18906 Accept other parameters by value.
18907 (prepare_operand): Make non-static.
18908 (prepare_cmp_insn): Return an rtx and a machine mode. Accept
18909 other parameters by value. Try to widen operands here based on
18910 an optab_methods argument and looking at cbranch_optab.
18911 (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
18912 loop. Use cbranch_optab directly.
18913 (emit_cmp_and_jump_insns): Fix comment. Adjust call to
18914 prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
18915 assertion.
18916 (emit_conditional_move, emit_conditional_add): Inline what's needed
18917 of compare_from_rtx, using new prepare_cmp_insn for the rest.
18918 (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
18919 with COMPARE. Move cmov_optab and cstore_optab above
18920 with cbranch_optab, move cmp_optab down with ucmp_optab,
18921 remove tst_otpab. Do not initialize trap_rtx.
18922 (gen_cond_trap): Do it here. Use ctrap_optab. Test predicate
74f4459c 18923 for trap code. Do not check HAVE_conditional_trap. Use
18924 prepare_cmp_insn. Accept no predicate for operand 3.
6ca2db76 18925 * optabs.h (OTI_cmp): Mark as used only for libcalls.
18926 (OTI_ctrap, ctrap_optab): New.
18927 (tst_optab): Delete.
18928 (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
18929 * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
18930 with lookup of ctrap_optab.
faa14cce 18931 * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
18932 Delete.
6ca2db76 18933 (ctrap_optab): New.
18934
18935 * combine.c (combine_simplify_rtx, simplify_set): Do not
18936 special case comparing against zero for cc0 machines.
74f4459c 18937 * simplify-rtx.c (simplify_binary_operation_1): Never remove
18938 COMPARE on cc0 machines.
18939 (simplify_relational_operation): Return a new expression when
18940 a COMPARE could be removed.
6ca2db76 18941 * final.c (final_scan_insn): Compare cc_status values
18942 against LHS of a (compare FOO (const_int 0)) cc0 source.
18943 Also check if cc_status.value is the full compare.
74f4459c 18944
6ca2db76 18945 * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
18946 (cstoreMM4): Document.
74f4459c 18947 (conditional_trap): Document ctrapMM4 instead.
6ca2db76 18948 (sync_compare_and_swapMM): Refer to cbranchcc4.
74f4459c 18949 (Dependent Patterns): Eliminate obsolete information referring to
18950 the old jump optimization phase.
6ca2db76 18951 (Canonicalization): Include cbranchcc4 case, omit canonicalization
74f4459c 18952 of compares with 0 on cc0 machines.
18953 (Jump Patterns): Refer to MODE_CC jump patterns preferably,
18954 avoiding references to cc0. Remove text about storing operands
18955 in cmpMM.
18956 * doc/tm.texi (Condition Codes): Include blurb on different
18957 condition code representations, separate into subsections for
18958 CC0, MODE_CC and conditional execution.
18959
6ca2db76 18960 * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
18961 alpha_emit_setcc): Accept operands and a machine mode.
18962 * config/alpha/alpha.c (alpha_emit_conditional_branch):
18963 Get code/op0/op1 from operands, use machine mode argument
18964 instead of alpha_compare.fp_p. Emit the branch here.
18965 (alpha_emit_setcc): Likewise, and return boolean.
18966 (alpha_emit_conditional_move): Likewise. Assert that
18967 cmp_op_mode == cmp_mode, and simplify accordingly.
18968 * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
18969 * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
18970 (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
18971 Delete.
18972 (stack probe test): Use cbranchdi4.
18973 * config/alpha/predicates.md (alpha_cbranch_operator): New.
18974
f6c8c8fc 18975 * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
6ca2db76 18976 * config/arc/arc.h (movsicc, movsfcc): Use it.
18977 (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
18978 (cbranchsi4, cstoresi4): New.
f6c8c8fc 18979 (cmpsi, bCC and sCC expanders): Remove.
6ca2db76 18980
18981 * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
18982 * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
18983 * config/arm/predicates.md (arm_comparison_operator): Only include
18984 floating-point operators if there is a hardware floating-point unit.
18985 * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
18986 deferring to cbranch_cc and cstore_cc respectively.
18987 (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
18988 cbranch_cc, cstore_cc): New.
18989 (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
74f4459c 18990 arm_compare_op1.
6ca2db76 18991 (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
18992
18993 * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
18994 * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
18995 as an argument.
18996 (adjust_insn_length): Adjust calls.
18997 (avr_reorg): Handle (compare (foo) (const_int 0)).
18998 * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
18999 (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
19000 (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
19001 (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
19002 (bCC): Remove.
19003 (cbranchqi4, cbranchhi4, cbranchsi4): New.
74f4459c 19004 (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
19005
6ca2db76 19006 * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
19007 (cbranchsi4, cstorebi4, cstoresi4): New.
74f4459c 19008 (movbisi): This insn is duplicate, split it to zero_extend.
6ca2db76 19009 * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
19010 (bfin_gen_compare): Do not use them. Emit VOIDmode SET, not BImode.
19011 (bfin_optimize_loop): Use cbranch expander.
19012 * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
19013 * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
19014 (bfin_bimode_comparison_operator): ... this.
19015 (bfin_direct_comparison_operator): New.
f6c8c8fc 19016
6ca2db76 19017 * config/cris/cris.c (cris_normal_notice_update_cc): Look
19018 inside (compare FOO (const_int 0)).
19019 (cris_rtx_costs): Handle ZERO_EXTRACT.
19020 * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
19021 (*tstdi_non_v32): Fold in *cmpdi_non_v32.
19022 (*tstdi_v32): Delete.
19023 (*cmpdi_non_v32): Add M alternative for operand 1.
19024 (cmpsi, cmp<mode>): Make private.
19025 (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
19026 with COMPARE.
19027 (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
19028
19029 * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
19030 (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
19031 (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
74f4459c 19032 (cc_reg_operand): New.
19033 (any_cond): Delete.
6ca2db76 19034 * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
19035 crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
19036 * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
19037 * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
19038 crx_expand_scond): Delete.
19039
19040 * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
19041 (cbranchsi4): New.
19042 * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
19043 * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
19044
19045 * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
19046 cstoresi4, cstoresf4, cstoredf4): New.
19047 (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
19048 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
19049 Receive the entire operands array.
19050 * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
19051 * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
19052 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
19053 Get test/op0/op1 from the operands array.
19054 (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
19055
19056 * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
19057 (h8300_expand_store): New.
19058 * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
19059 (const_int 0)).
19060 (h8300_expand_branch): Emit compare here. Adjust for new arguments.
19061 (h8300_expand_store): New.
19062 * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
19063 or do not try to produce (set (cc0) REG).
19064 (peepholes): Wrap arguments with COMPARE. Add a peephole to
19065 change a compare into a move to a scratch register. Disable some
19066 peepholes when comparing with zero.
19067 (tstsi, tsthi, tstsi, cmpqi): Make private.
19068 (cmphi): Delete.
19069 (bCC, sCC): Delete.
19070 (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
19071 cstoresi4): New.
74f4459c 19072
19073 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
19074 ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
19075 (ix86_emit_i387_log1p): Use gen_cbranchxf4.
19076 (ix86_emit_i387_log1p): Use cbranchxf2.
19077 (ix86_expand_setcc): Return void.
19078 * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
19079 * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
19080 cmp<MODEF>, cmpcc): Remove.
6ca2db76 19081 (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
19082 cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
19083 cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
74f4459c 19084 (sCC and bCC expanders): Remove.
19085 (stack_protect_test): Use cbranchcc4.
19086
6ca2db76 19087 * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
19088 Delete.
19089 (ia64_expand_compare): Accept three rtx by reference and return void.
19090 * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
19091 (ia64_expand_compare): Replace op0/op1 with *op0/*op1. Get code
19092 from *expr. Update *expr with the BImode comparison to do.
19093 * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
19094 cmptf, bCC, sCC, conditional_trap): Delete.
f6c8c8fc 19095 (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
6ca2db76 19096 cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
19097 cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
19098 ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
19099 * config/ia64/predicates.md (ia64_cbranch_operator): New.
19100
19101 * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
19102 type of last argument.
19103 * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
19104 (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
19105 use machine mode argument instead of branch_type. Remove dead
19106 code for floating-point comparisons.
19107 * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
19108 * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
19109 Remove.
19110 (cbranchsi4, cstoresi4): New.
19111 * config/iq2000/predicates.md (reg_or_const_operand): New.
19112
19113 * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
19114 * config/m32c/m32c.md (any_cond, gl_cond): Delete.
19115 (b<code>_op): Rewrite to...
19116 (bcc_op): ... this, using match_operator.
19117 (s<code>_op): Rewrite to...
19118 (scc_op): ... this, using match_operator.
19119 (s<code>_24_op): Rewrite to...
19120 (scc_op_24): ... this, using match_operator.
19121 (s<code>_<mode>): Rewrite to...
19122 (cstore<mode>4): ... this, using match_operator.
19123 (s<code>_<mode>_24): Rewrite to...
19124 (cstore<mode>4_24): ... this, using match_operator.
19125 * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
19126 m32c_unpend_compare, m32c_expand_scc): Delete.
19127 * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
19128 m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
19129 (m32c_expand_movcc): Change NE to EQ if necessary.
19130 (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
19131
19132 * config/m32r/m32r-protos.h (gen_cond_store): New.
19133 * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
19134 (gen_cond_store): New, from sCC patterns.
19135 (m32r_expand_block_move): Use cbranchsi4.
19136 * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
19137 * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
19138 (cbranchsi4, cstoresi4): New.
f6c8c8fc 19139
6ca2db76 19140 * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
19141 Delete.
19142 (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
74f4459c 19143 (m68hc11_notice_update_cc): Look into a compare with 0.
6ca2db76 19144 * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
19145 Delete.
19146 * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
19147 cmphi, cmpqi, bCC): Delete.
19148 (cbranchsi4, cbranchhi4, cbranchqi4): New.
19149 (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
19150 bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
19151 sets with COMPARE.
19152
19153 * config/m68k/predicates.md (m68k_cstore_comparison_operator,
19154 const0_operand, const1_operand, m68k_subword_comparison_operand): New.
19155 * config/m68k/constraints.md (H): New.
19156 * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
19157 the define_insn below.
19158 (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
19159 (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
19160 *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
19161 patterns): Wrap RHS with COMPARE.
19162 (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
19163 (*cmpdi_internal): Name this pattern.
19164 (cmpdi): Change to define_insn.
19165 (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
19166 cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
19167 (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
19168 predicate.
19169 (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
19170 sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
19171 (conditional_trap): Change to...
19172 (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
19173 (*conditional_trap): Use the ordered_comparison_operator and
19174 const1_operand predicates.
19175 * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
19176 (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
19177 (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
19178 * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
19179
19180 * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
19181 mcore_modify_comparison, mcore_gen_compare_reg): Remove.
f6c8c8fc 19182 (mcore_gen_compare): New.
6ca2db76 19183 * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
19184 (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
19185 (mcore_gen_compare): ... this.
19186 * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
19187 (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
19188 (stack probe pattern): Use cbranchsi4.
19189
19190 * config/mips/predicates.md (mips_cstore_operator): New.
19191 * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
19192 * config/mips/mips.md (any_cond): Delete.
19193 (conditional_trap): Rename to ctrap<GPR:mode>4. Adjust predicates,
19194 always succeed.
19195 (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
19196 fixuns_truncsfdi2): Use cbranch patterns.
f6c8c8fc 19197 (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
6ca2db76 19198 (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
19199 Adjust call to mips_expand_conditional_branch.
19200 (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
19201 cstore<GPR:mode>4.
19202 * config/mips/mips-protos.h (mips_expand_conditional_branch,
19203 mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
19204 * config/mips/mips.c (cmp_operands): Delete.
19205 (mips_emit_compare): Get comparison operands from *op0/*op1.
19206 (mips_expand_scc): Get code/op0/op1/target from operands. Assert
19207 that it succeeds. Use op0/op1 instead of cmp_operands.
19208 (mips_expand_conditional_branch, mips_expand_conditional_move,
19209 mips_expand_conditional_trap): Likewise.
f6c8c8fc 19210 (mips_block_move_loop): Use cbranch patterns.
6ca2db76 19211 * config/mips/mips.h (cmp_operands): Delete.
19212
19213 * config/mmix/mmix.c (mmix_valid_comparison): Delete.
19214 (mmix_gen_compare_reg): Just return a register in the right CC mode.
19215 * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
19216 * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
19217 (*cmpcc_folded): Rename to...
19218 (*cmpdi_folded): this.
19219 (*cmpcc): Rename to...
19220 (*cmps): ... this.
19221 (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
19222 (bCC): Remove.
19223 (cbranchdi4): New.
19224 (cbranchdf4): New. Handle invalid comparisons here.
19225 * config/mmix/predicates.md (float_comparison_operator): New.
19226
19227 * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
19228 zero_extract to be cheap in (compare (zero_extract) (const_int 0).
19229 * config/mn10300/mn10300.md (tst): Delete.
19230 (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
19231 Name these patterns and wrap RHS in a compare.
19232 (*cmpsi): Make this pattern private. Include tst.
19233 (*cmpsf): Make this pattern private.
19234 (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
19235 (compare with zero peepholes): Likewise.
19236 (bCC): Remove.
19237 (cbranchsi4, cbranchsf4): New.
19238 (casesi): Use cbranchsi4.
19239
19240 * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
19241 hppa_branch_type): Delete.
19242 (return_addr_rtx): Use cbranchsi4.
19243 (emit_bcond_fp): Accept all operands. Replace CODE with NE.
19244 Emit CCFPmode comparison here.
19245 (gen_cmp_fp): Delete, now part of emit_bcond_fp.
19246 * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
19247 hppa_branch_type): Delete.
19248 * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
19249 (movsicc, movdicc): Remove references to hppa_compare_op0,
19250 hppa_compare_op1 and compare_from_rtx.
19251 (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
19252 (casesi): Use cbranchsi4.
19253
19254 * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
19255 * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
19256 * config/pdp11/pdp11.md (register_or_const0_operand): New.
19257 (cmpdf, cmphi, cmpqi): Make private. Add tst alternatives.
19258 (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
19259 (bCC): Delete.
19260 (cbranchdf4, cbranchhi4, cbranchqi4): New.
19261 (*branch, *branch_inverted): New.
19262
19263 * config/picochip/picochip.md (cbranchhi4): Use
19264 ordered_comparison_operator.
19265 (cmphi, bCC): Remove.
19266
19267 * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
19268 (trap_comparison_operator): Delete.
19269 * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
19270 rs6000_emit_cbranch): Accept mode and operands.
19271 * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
f6c8c8fc 19272 rs6000_compare_fp_p): Delete.
6ca2db76 19273 (rs6000_generate_compare): Accept mode and comparison. Extract code
19274 and op0/op1 from there. Replace references to rs6000_compare_op0
19275 and rs6000_compare_op1.
19276 (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
19277 extract result from passed operands.
19278 (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
19279 extract loc from passed operands.
19280 (rs6000_emit_cmove): Likewise.
19281 * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
19282 rs6000_compare_fp_p): Delete.
19283 * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
19284 (cbranch<GPR>4, cbranch<FP>4): New.
19285 (cstore<mode>4): New. Consolidate here all choices about when to use
19286 portable or specialized sCC sequences.
19287 (stack_protect_test): Use cbranchsi4.
19288 (conditional_trap): Replace with ctrap<GPR>4.
19289 (conditional trap insn): Replace trap_comparison_operator with
f6c8c8fc 19290 ordered_comparison_operator.
6ca2db76 19291
19292 * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
19293 (s390_emit_prologue): Use ctrap.
19294 * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
19295 * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
19296 New predicates replacing...
19297 * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
19298 (cmp<GPR>, cmp<FP>, cmpcc): Delete.
19299 (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
19300 (add<mode>cc): Do not use s390_compare_op0/op1.
19301 (s<code>): Change to...
19302 (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
19303 (seq): Change to...
19304 (cstorecc4): ... this. Handle EQ or NE equally.
19305 (*sne): Un-privatize for use in cstorecc4.
19306 (b<code>): Change to...
19307 (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
19308 (conditional_trap): Replace with...
19309 (ctrap<GPR>4, ctrap<FP>4): ... these.
19310 (stack_protect): Use cbranchcc4.
19311
19312 * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
19313 * config/score/score-protos.h (score_gen_cmp): Delete.
19314 * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
19315 (score_block_move-loop): Use cbranchsi4.
19316 * config/score/score.md (cbranchsi4): New.
19317 (cmpsi, bCC): Delete.
19318 * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
19319 (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
19320 * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
19321 (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
19322 * config/score/score3.h (score3_gen_cmp): Delete.
19323 * config/score/score7.h (score7_gen_cmp): Delete.
19324
19325 * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
19326 (sh_emit_scc_to_t): ... this. Return void.
19327 (from_compare): Rename to...
19328 (sh_emit_compare_and_branch): ... this.
19329 (sh_emit_compare_and_set): New.
19330 (sh_expand_t_scc): Accept operands.
19331 * config/sh/predicates.md (sh_float_comparison_operator): New.
19332 * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
19333 (prepare_scc_operands): Rename to...
19334 (sh_emit_scc_to_t): ... this. Return void. Get op0/op1 from
19335 arguments.
19336 (sh_emit_cheap_store_flag): New.
74f4459c 19337 (sh_emit_set_t_insn): New.
6ca2db76 19338 (from_compare): Rename to...
19339 (sh_emit_compare_and_branch): ... this. Accept mode. Rewrite
19340 handling of TARGET_SH2E floating point to avoid recursive call.
19341 Generate branch here.
19342 (sh_emit_compare_and_set): New.
19343 (sh_expand_t_scc): Get op0/op1 from arguments.
19344 (sh_emit_cheap_store_flag): New.
19345 * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
19346 cases.
74f4459c 19347 (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
6ca2db76 19348 (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
19349 (movsicc, movdicc): Do nothing when it recreated operands from
19350 sh_compare_*. Use sh_emit_cheap_store_flag. Adjust call to
19351 prepare_scc_operands (now sh_emit_scc_to_t).
19352 (udivdi3): Use cstoresi4.
19353 (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
19354 bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
19355 (cbranchint4_media, cbranchfp4_media): New.
19356 (casesi): Use cbranchdi4.
19357 (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
19358 Delete.
19359 (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
19360 (movnegt): Remove second operand.
19361 (cbranchsf4, cbranchdf4): New.
19362 (stack_protect): Use cbranchdi4/cbranchsi4.
19363
19364 * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
19365 (gen_compare_reg): Accept comparison, extract part of it to...
f6c8c8fc 19366 (gen_compare_reg_1): ... this.
6ca2db76 19367 (gen_compare_operator): Delete.
19368 (gen_v9_scc): Accept separate destination, comparison code and arms.
19369 Do not use sparc_compare_op0/sparc_compare_op1.
19370 (emit_scc_insn, emit_conditional_branch_insn): New.
19371 (emit_v9_brxx): Make static. Remove useless assertion.
19372 (sparc_emit_float_lib_cmp): Return RTL instead of calling
19373 emit_cmp_insn.
19374 (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
19375 * config/sparc/sparc-protos.h (gen_compare_reg,
74f4459c 19376 sparc_emit_float_lib_cmp): Adjust prototype.
19377 (emit_scc_insn, emit_conditional_branch_insn): New.
19378 (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
6ca2db76 19379 * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
19380 * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
19381 iterators to the top.
19382 (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
19383 snesi_special_extend, sCC, bCC, seqdi_special_trunc,
74f4459c 19384 snedi_special_trunc): Delete.
6ca2db76 19385 (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
74f4459c 19386 and snedi_special_trunc.
6ca2db76 19387 (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
19388 cbranchdi4, cbranch<F:mode>4): New.
19389 (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
19390 here. Use gen_compare_reg instead of gen_compare_operator.
19391 (conditional_trap): Replace with...
19392 (ctrapsi4, ctrapdi4): ... this.
19393 (stack_protect_test): Use cbranchcc4.
19394
19395 * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
19396 argument to rtx.
f6c8c8fc 19397 * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
6ca2db76 19398 (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
19399 Change spu_compare_op0/op1 to op0/op1 throughout. Get target
19400 from operands[0] or operands[3] depending on is_set.
19401 * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
19402 * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
19403 cmpdf, bCC), sCC: Remove.
f6c8c8fc 19404 (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
6ca2db76 19405 cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
19406 cstoredf4): New.
19407 (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
19408 spu_emit_branch_or_set.
19409
19410 * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
19411 Add two arguments.
19412 * config/stormy16/stormy16.h (xstormy16_compare_op0,
19413 xstormy16_compare_op1): Delete.
19414 * config/stormy16/stormy16.c (xstormy16_compare_op0,
f6c8c8fc 19415 xstormy16_compare_op1): Delete.
6ca2db76 19416 (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
19417 Adjust calls.
19418 * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
19419 (cmphi, cmpsi, bCC): Remove.
19420
19421 * config/v850/v850.md (tstsi, cmpsi): Fold into...
19422 (*cmpsi): ... this one.
19423 (cbranchsi4, cstoresi4): New.
19424 (bCC expanders): Delete.
19425 (sCC insns): Fold into...
19426 (*setcc): ... this one.
f6c8c8fc 19427 (casesi): Do not use gen_cmpsi and gen_bgtu.
74f4459c 19428 (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
19429 (movsicc): Simplify.
19430 * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
19431
6ca2db76 19432 * config/vax/vax-protos.h (cond_name): New.
19433 (vax_output_conditional_branch): Remove.
19434 * config/vax/vax.c (cond_name): New.
19435 (vax_output_conditional_branch): Remove.
19436 * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
19437 * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
19438 (cmp<VAXint>, cmp<VAXfp>): Privatize. Add constraints for tst.
19439 (bit<VAXint>): Wrap source with (compare).
19440 (b<code> and following unnamed pattern): Rename to *branch and
19441 *branch_reversed. Change macroization to match_operator.
19442 (cbranch<VAXint>4, cbranch<VAXfp>4): New.
19443
19444 * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
19445 * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
19446 Change last argument to machine_mode.
19447 (xtensa_expand_scc): Add machine_mode argument.
19448 * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
19449 (gen_conditional_move, xtensa_expand_conditional_branch,
19450 xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
19451 instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
19452 Adjust operand numbers.
19453 * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
19454 Delete.
19455 * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
19456 (cmpsi, cmpsf, b<code>, s<code>): Delete.
19457 (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
74f4459c 19458
880e5cd7 194592009-05-12 Paolo Bonzini <bonzini@gnu.org>
19460
19461 * optabs.c (prepare_cmp_insn): Temporarily disable test that
19462 causes spurious differences between trunk and cond-optab branch.
19463
bd1f9655 194642009-05-12 Alexandre Oliva <aoliva@redhat.com>
19465
19466 PR target/37137
19467 * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
19468
f6bf9542 194692009-05-12 Alexandre Oliva <aoliva@redhat.com>
19470
19471 * tree.c (iterative_hash_pointer): Delete.
19472 (iterative_hash_expr): Short-circuit handling of NULL pointer.
19473 Hash UIDs and versions of SSA names. Don't special-case built-in
19474 function declarations.
19475
ebbdcbb3 194762009-05-11 Ian Lance Taylor <iant@google.com>
19477
19478 PR bootstrap/40103
19479 * graphite.c: Force -Wc++-compat to only be a warning before
19480 #including "cloog/cloog.h".
19481
a111083a 194822009-05-11 Martin Jambor <mjambor@suse.cz>
19483
19484 * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
f6c8c8fc 19485
aa2ba534 194862009-05-11 Jan Hubicka <jh@suse.cz>
19487
19488 * tree-ssa-loop-ivcanon.c: Include target.h
19489 (struct loop_size): new structure.
19490 (constant_after_peeling): New predicate.
19491 (tree_estimate_loop_size): New function.
19492 (estimated_unrolled_size): Rewrite for new estimates.
19493 (try_unroll_loop_completely): Use new estimates.
19494 * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
19495
897ffbb0 194962009-05-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
19497
19498 * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
19499 libcpp interface change.
19500 (spu_macro_to_expand): Likewise.
19501
a39fe414 195022009-05-11 Paolo Bonzini <bonzini@gnu.org>
19503
19504 PR tree-optimization/40026
19505 * gimplify.c (gimplify_init_constructor): Change initial conditional
19506 to assertion. Rewrite TREE_OPERAND (*expr_p, 1) after
19507 optimize_compound_literals_in_ctor.
19508
175be17a 195092009-05-11 Nathan Sidwell <nathan@codesourcery.com>
19510
19511 * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
19512 New devices.
19513 * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
19514
1a0e7d51 195152009-05-11 H.J. Lu <hongjiu.lu@intel.com>
19516
19517 * tree-vect-data-refs.c (vect_analyze_group_access): Use
19518 HOST_WIDE_INT for gap.
19519
b11576bf 195202009-05-11 Ira Rosen <irar@il.ibm.com>
19521
19522 PR tree-optimization/40074
19523 * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
19524 account in group size and step comparison.
19525
2f8eb909 195262009-05-11 Richard Guenther <rguenther@suse.de>
19527
19528 * passes.c (init_optimization_passes): Strip now incorrect comment.
19529 (execute_function_todo): Do not set PROP_alias.
19530 * tree-pass.h (PROP_alias): Remove.
19531 * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
19532 * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
19533 * tree-nrv.c (pass_return_slot): Likewise.
19534 * tree-object-size.c (pass_object_sizes): Likewise.
19535 * tree-ssa-dom.c (pass_dominator): Likewise.
19536 (pass_phi_only_cprop): Likewise.
19537 * tree-ssa-dse.c (pass_dse): Likewise.
19538 * tree-ssa-phiopt.c (pass_phiopt): Likewise.
19539 (pass_cselim): Likewise.
19540 * tree-ssa-pre.c (pass_pre): Likewise.
19541 (pass_fre): Likewise.
19542 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
19543 * tree-ssa-sink.c (pass_sink_code): Likewise.
19544 * tree-stdarg.c (pass_stdarg): Likewise.
19545 * tree-tailcall.c (pass_tail_calls): Likewise.
19546 * tree-vrp.c (pass_vrp): Likewise.
19547
0b09525f 195482009-05-10 Ian Lance Taylor <iant@google.com>
19549
19550 * basic-block.h (enum profile_status): Break out of struct
19551 control_flow_graph.
19552 * cgraph.h (struct inline_summary): Break out of struct
19553 cgraph_local_info.
19554 * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
19555 of struct cgraph_order_sort.
6ca2db76 19556 * combine.c (enum undo_kind): New enum, broken out of struct undo.
0b09525f 19557 * cse.c (struct branch_path): Break out of struct
19558 cse_basic_block_data.
19559 * except.h (enum eh_region_type): Break out of struct eh_region.
19560 * gcc.c (enum add_del): Break out of struct modify_target.
6ca2db76 19561 * genrecog.c (enum decision_type): Break out of struct decision_test.
0b09525f 19562 * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
19563 ggc_pch_data.
6ca2db76 19564 * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
19565 * regmove.c (enum match_use): New enum, broken out of struct match.
0b09525f 19566 * sched-int.h (enum post_call_group): New enum, broken out of
19567 struct deps.
19568 (struct deps_reg): Break out of struct deps.
19569 * target.h (struct asm_int_op): Break out of struct gcc_target.
19570 * tree-eh.c (struct goto_queue_node): Break out of struct
19571 leh_tf_state.
19572 * tree-inline.h (enum copy_body_cge_which): Break out of
19573 copy_body_data.
19574 * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
19575
19576 * c-decl.c (in_struct, struct_types): New static variables.
19577 (pushtag): Add loc parameter. Change all callers.
19578 (lookup_tag): Add ploc parameter. Change all callers.
19579 (check_compound_literal_type): New function.
19580 (parser_xref_tag): Add loc parameter. Change all callers. If
19581 -Wc++-compat, warn about struct/union/enum types defined within a
19582 struct or union.
19583 (start_struct): Add enclosing_in_struct, enclosing_struct_types,
19584 and loc parameters. Change all callers. Change error calls to
19585 error_at, using loc. For a redefinition, if the location of the
19586 original definition is known, report it. Set in_struct and
6ca2db76 19587 struct_types. If -Wc++-compat warn if in sizeof, typeof, or alignof.
0b09525f 19588 (finish_struct): Add new parameters enclosing_in_struct and
19589 enclosing_struct_types. Change all callers. Set
19590 C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
19591 in the struct. If in a struct, add this struct to struct_types.
19592 (start_enum): Add loc parameter. Change all callers. Use
19593 error_at for errors, using loc. For a redefinition, if the
19594 location of the original definition is known, report it. If in a
19595 struct, add this enum type to struct_types. If -Wc++-compat warn
19596 if in sizeof, typeof, or alignof.
6ca2db76 19597 * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
19598 (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
0b09525f 19599 (c_parser_enum_specifier): Get enum location for start_enum.
19600 (c_parser_struct_or_union_specifier): Get struct location for
19601 start_struct. Save in_struct and struct_types status between
19602 start_struct and finish_struct.
19603 (c_parser_cast_expression): Get location of cast.
19604 (c_parser_alignof_expression): Get location of type.
19605 (c_parser_postfix_expression): Likewise.
19606 (c_parser_postfix_expression_after_paren_type): Add type_loc
6ca2db76 19607 parameter. Change all callers. Call check_compound_literal_type.
19608 Use type_loc for error about variable size type.
19609 * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
19610 of an enum constant from an enum type defined in a struct or union.
0b09525f 19611 (c_cast_expr): Add loc parameter. Change all callers. If
19612 -Wc++-compat, warn about defining a type in a cast.
19613 * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
19614 (start_enum, start_struct, finish_struct): Update declarations.
19615 (parser_xref_tag, c_cast_expr): Update declarations.
19616 (check_compound_literal_type): Declare.
19617
9d6d8a52 196182009-05-11 Ben Elliston <bje@au.ibm.com>
19619
19620 * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
19621 for recent libcpp interface change.
19622 (rs6000_macro_to_expand): Likewise.
19623
c67e32f9 196242009-05-10 Michael Matz <matz@suse.de>
19625
19626 PR target/40031
19627 * config/arm/arm.c (require_pic_register): Emit on entry edge,
19628 not at entry of function.
19629
e2a3897e 196302009-05-10 Richard Guenther <rguenther@suse.de>
19631
19632 PR tree-optimization/40081
19633 Revert
19634 * tree-sra.c (instantiate_element): Instantiate scalar replacements
19635 using the main variant of the element type. Do not fiddle with
19636 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
19637
19638 * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
19639 structs with volatile fields.
19640
31359ae8 196412009-05-10 Jan Hubicka <jh@suse.cz>
19642
19643 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
6ca2db76 19644 (estimate_move_cost): Assert that it does not get called for
19645 VOID_TYPE_P.
31359ae8 19646 (estimate_num_insns): Skip VOID types in argument handling.
19647 (optimize_inline_calls): Delete unreachable blocks and verify that
19648 callgraph is valid.
19649
2cb64f78 196502009-05-10 Jan Hubicka <jh@suse.cz>
19651
19652 * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
19653 * cgraph.c (cgraph_mark_address_taken_node): New function.
19654 (dump_cgraph_node): Dump new flag.
19655 * cgraph.h (struct cgraph_node): Add address_taken.
19656 (cgraph_mark_address_taken_node): New function.
2cb64f78 19657 * ipa.c (cgraph_postorder): Prioritize functions with address taken
19658 since new direct calls can be born.
19659
2ee04baa 196602009-05-10 Joseph Myers <joseph@codesourcery.com>
19661
19662 * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
19663 tok->val.node.node.
19664
8d8c4f3e 196652009-05-10 Jan Hubicka <jh@suse.cz>
19666
19667 PR middle-end/40084
5eaad62c 19668 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
19669 argument; rewrite.
8d8c4f3e 19670 (cgraph_update_edges_for_call_stmt): Take old_decl argument.
19671 * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
19672 * tree-inline.c (copy_bb): Set frequency correctly.
5eaad62c 19673 (fold_marked_statements): Update call to
19674 cgraph_update_edges_for_call_stmt.
8d8c4f3e 19675
67a779df 196762009-05-10 Joseph Myers <joseph@codesourcery.com>
19677
19678 * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
19679 identifiers in diagnostics.
19680 * config/arm/arm.c (arm_handle_fndecl_attribute,
19681 arm_handle_isr_attribute): Likewise.
19682 * config/avr/avr.c (avr_handle_progmem_attribute,
2377feea 19683 avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
67a779df 19684 * config/bfin/bfin.c (handle_int_attribute,
19685 bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
19686 bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
19687 bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
19688 Likewise.
19689 * config/darwin.c (darwin_handle_kext_attribute,
19690 darwin_handle_weak_import_attribute): Likewise.
19691 * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
19692 h8300_handle_eightbit_data_attribute,
19693 h8300_handle_tiny_data_attribute): Likewise.
19694 * config/i386/i386.c (ix86_handle_cconv_attribute,
2377feea 19695 ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
67a779df 19696 * config/i386/winnt.c (ix86_handle_shared_attribute,
19697 ix86_handle_selectany_attribute): Likewise.
19698 * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
19699 * config/m32c/m32c.c (function_vector_handler): Likewise.
19700 * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
19701 m68hc11_handle_fntype_attribute): Likewise.
19702 * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
19703 * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
19704 * config/mips/mips.c (mips_insert_attributes,
19705 mips_merge_decl_attributes, mips_expand_builtin): Likewise.
19706 * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
19707 rs6000_handle_struct_attribute): Likewise.
19708 * config/sh/sh.c (sh_insert_attributes,
19709 sh_handle_resbank_handler_attribute,
19710 sh_handle_interrupt_handler_attribute,
19711 sh2a_handle_function_vector_handler_attribute,
19712 sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
19713 Likewise.
19714 * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
19715 * config/spu/spu.c (spu_handle_fndecl_attribute,
19716 spu_handle_vector_attribute): Likewise.
19717 * config/stormy16/stormy16.c
19718 (xstormy16_handle_interrupt_attribute): Likewise.
19719 * config/v850/v850-c.c (ghs_pragma_section): Likewise.
19720 * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
19721
a608187f 197222009-05-10 Joseph Myers <joseph@codesourcery.com>
19723
2377feea 19724 * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
a608187f 19725 (pp_translate_identifiers): New.
19726 (pp_identifier): Only conditionally translate identifier to locale
19727 character set.
19728 * pretty-print.c (pp_construct): Set pp_translate_identifiers.
19729 (pp_base_tree_identifier): Only conditionally translate identifier
19730 to locale character set.
19731 * c-pretty-print.c (M_): Define.
19732 (pp_c_type_specifier, pp_c_primary_expression): Mark English
19733 fragments for conditional translation with M_.
19734 * tree-pretty-print.c (maybe_init_pretty_print): Disable
19735 identifier translation.
19736
d919c4c8 197372009-05-10 Richard Guenther <rguenther@suse.de>
19738
19739 PR tree-optimization/40081
19740 * tree-sra.c (instantiate_element): Instantiate scalar replacements
19741 using the main variant of the element type. Do not fiddle with
19742 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
19743
947781ac 197442009-05-09 Jan Hubicka <jh@suse.cz>
19745
19746 PR middle-end/40080
19747 * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
19748 indirect calls; verify cgraph afterwards.
19749
21f41380 197502009-05-09 Jan Hubicka <jh@suse.cz>
19751
19752 PR bootstrap/40082
19753 * ipa.c (update_inlined_to_pointer): New function.
19754 (cgraph_remove_unreachable_nodes): Use it.
19755
1b044ec2 197562009-05-09 Jan Hubicka <jh@suse.cz>
19757
19758 * tree-eh.c (struct leh_state): Remove prev_try.
19759 (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
19760 not track prev_try.
f6c8c8fc 19761 * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
1b044ec2 19762 copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
19763 remove_eh_handler_and_replace, foreach_reachable_handler,
19764 verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
19765 * except.h (struct eh_region): Remove eh_region_u_cleanup.
19766 (gen_eh_region_cleanup): Update prototype.
19767
8997fc11 197682009-05-09 Jan Hubicka <jh@suse.cz>
19769
19770 PR middle-end/40043
19771 * except.c (copy_eh_region): Always set prev_try.
19772 (redirect_eh_edge_to_label): Find outer try.
19773 (foreach_reachable_handler): When looking for prev try
19774 handle case where previous try is not going to be taken.
19775
54206f86 197762009-05-07 Michael Meissner <meissner@linux.vnet.ibm.com>
19777
19778 PR tree-optimization/40049
19779 * tree-vect-stmts.c (vectorizable_operation): If the machine has
19780 only vector/vector shifts, convert the type of the constant to the
19781 appropriate type to avoid building incorrect trees, which
19782 eventually have problems with garbage collection.
19783
fc86f9df 197842009-05-08 Joseph Myers <joseph@codesourcery.com>
19785
19786 * fold-const.c (fold_binary): Do not fold multiplication by 1 or
19787 -1 for complex floating-point types if honoring signed zeros.
19788
ccf4ab6b 197892009-05-08 Jan Hubicka <jh@suse.cz>
19790
80a52720 19791 * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
19792 argument; handle correctly when profile is absent.
ccf4ab6b 19793 (build_cgraph_edges): Update.
19794 (rebuild_cgraph_edges): Update.
80a52720 19795 * cgraph.c: Do not include varray.h.
19796 (cgraph_set_call_stmt_including_clones): New function.
19797 (cgraph_create_edge_including_clones): Likewise
19798 (cgraph_update_edges_for_call_stmt_node): New static cfunction.
ccf4ab6b 19799 (cgraph_update_edges_for_call_stmt): Handle clones.
19800 (cgraph_remove_node): Handle clone tree.
19801 (cgraph_remove_node_and_inline_clones): New function.
19802 (dump_cgraph_node): Dump clone tree.
19803 (cgraph_clone_node): Handle clone tree.
80a52720 19804 (clone_function_name): Bring here from tree-inline.c.
ccf4ab6b 19805 (cgraph_create_virtual_clone): New function.
80a52720 19806 * cgraph.h (ipa_replace_map): Move here from ipa.h.
19807 (cgraph_clone_info): New function.
ccf4ab6b 19808 (strut cgraph_node): Add clone_info and new clone tree pointers.
80a52720 19809 (cgraph_remove_node_and_inline_clones,
19810 cgraph_set_call_stmt_including_clones,
19811 cgraph_create_edge_including_clones,
19812 cgraph_create_virtual_clone): Declare.
ccf4ab6b 19813 (cgraph_function_versioning): Use VEC argument.
19814 (compute_call_stmt_bb_frequency): Update prototype.
19815 (cgraph_materialize_all_clones): New function.
19816 * ipa-cp.c (ipcp_update_cloned_node): Remove.
19817 (ipcp_create_replace_map): Update to VECtors.
19818 (ipcp_update_callgraph): Use virtual clones.
19819 (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
19820 (ipcp_update_profiling): Do not update local profiling.
19821 (ipcp_insert_stage): Use VECtors and virtual clones.
19822 * cgraphunit.c (verify_cgraph_node): Verify clone tree.
19823 (clone_of_p): New function.
19824 (cgraph_preserve_function_body_p): Use clone tree.
19825 (cgraph_optimize): Materialize clones.
19826 (cgraph_function_versioning): Update for VECtors.
19827 (save_inline_function_body): Use clone tree.
80a52720 19828 (cgraph_materialize_clone): New function.
19829 (cgraph_materialize_all_clones): Likewise.
ccf4ab6b 19830 * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
19831 * ipa.c: Include gimple.h.
19832 (cgraph_remove_unreachable_nodes): Use clone tree.
80a52720 19833 * ipa-prop.c (ipa_note_param_call): Update call to
19834 compute_call_stmt_bb_frequencycall.
ccf4ab6b 19835 * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
80a52720 19836 * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
ccf4ab6b 19837 (copy_bb): Handle updating of clone tree; add new edge when new call
19838 appears.
19839 (expand_call_inline): Be strict about every call having edge.
19840 (clone_fn_id_num, clone_function_name): Move to cgraph.c.
19841 (delete_unreachable_blocks_update_callgraph): New function.
80a52720 19842 (tree_function_versioning): Use VECtors; always remove unreachable
19843 blocks and fold conditionals.
19844 * tree-inline.h: Do not include varray.h.
ccf4ab6b 19845 (tree_function_versioning): Remove.
19846 * Makefile.in (GTFILES): Remove tree-inline.c
19847 * passes.c (do_per_function): Do only functions having body.
80a52720 19848 * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
19849 tree.
ccf4ab6b 19850
45c4e798 198512009-05-08 H.J. Lu <hongjiu.lu@intel.com>
19852 Andrew Morrow <acm@google.com>
19853
19854 PR c/36892
19855 * c-common.c (c_common_attribute_table): Permit deprecated
19856 attribute to take an optional argument.
19857 (handle_deprecated_attribute): If the optional argument to
19858 __attribute__((deprecated)) is not a string ignore the attribute
19859 and emit a warning.
19860
19861 * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
19862 * c-typeck.c (build_component_ref): Likewise.
19863 (build_external_ref): Likewise.
19864
19865 * toplev.c (warn_deprecated_use): Add an attribute argument.
19866 Emit the message associated with __attribute__((deprecated)).
19867
19868 * toplev.h (warn_deprecated_use): Updated.
19869
19870 * doc/extend.texi: Document new optional parameter to
19871 __attribute__((deprecated))
19872
3a45c25e 198732009-05-08 Michael Eager <eager@eagercon.com>
19874
19875 * config/rs6000/rs6000.md (*movdf_softfloat32): replace
19876 !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
19877
aebe538b 198782009-05-08 Richard Guenther <rguenther@suse.de>
19879
19880 PR tree-optimization/40062
19881 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
19882 Avoid exponential behavior.
19883
e0bd4156 198842009-05-08 Paolo Bonzini <bonzini@gnu.org>
19885
19886 PR rtl-optimization/33928
19887 PR 26854
19888 * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
19889 process_uses, build_single_def_use_links): New.
19890 (update_df): Update use_def_ref.
19891 (forward_propagate_into): Use get_def_for_use instead of use-def
19892 chains.
19893 (fwprop_init): Call build_single_def_use_links and let it initialize
19894 dataflow.
19895 (fwprop_done): Free use_def_ref.
19896 (fwprop_addr): Eliminate duplicate call to df_set_flags.
f6c8c8fc 19897 * df-problems.c (df_rd_simulate_artificial_defs_at_top,
e0bd4156 19898 df_rd_simulate_one_insn): New.
19899 (df_rd_bb_local_compute_process_def): Update head comment.
19900 (df_chain_create_bb): Use the new RD simulation functions.
f6c8c8fc 19901 * df.h (df_rd_simulate_artificial_defs_at_top,
e0bd4156 19902 df_rd_simulate_one_insn): New.
19903 * opts.c (decode_options): Enable fwprop at -O1.
19904 * doc/invoke.texi (-fforward-propagate): Document this.
19905
0f241d3f 199062009-05-08 Joseph Myers <joseph@codesourcery.com>
19907
19908 PR c/24581
19909 * c-typeck.c (build_binary_op): Handle arithmetic between one real
19910 and one complex operand specially.
19911 * tree-complex.c (some_nonzerop): Do not identify a real value as
19912 zero if flag_signed_zeros.
19913
5c83cd34 199142009-05-08 Paolo Bonzini <bonzini@gnu.org>
19915
19916 PR rtl-optimization/33928
e0f84439 19917 * loop-invariant.c (record_use): Fix && vs. || mishap.
5c83cd34 19918
68461c19 199192009-05-08 Paolo Bonzini <bonzini@gnu.org>
19920
19921 PR rtl-optimization/33928
39db6a03 19922 * loop-invariant.c (struct use): Add addr_use_p.
19923 (struct def): Add n_addr_uses.
19924 (struct invariant): Add cheap_address.
19925 (create_new_invariant): Set cheap_address.
19926 (record_use): Accept df_ref. Set addr_use_p and update n_addr_uses.
19927 (record_uses): Pass df_ref to record_use.
19928 (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
19929 used only as such.
68461c19 19930
e0f22649 199312009-05-08 Kaz Kojima <kkojima@gcc.gnu.org>
19932
19933 * config/sh/sh.c: Do not include c-pragma.h.
19934
653ba01f 199352009-05-07 Andrew Pinski <andrew_pinski@playstation.sony.com>
19936
19937 * config/spu/spu.c: Remove include of c-common.h.
19938
3ae3a17f 199392009-05-07 Janis Johnson <janis187@us.ibm.com>
19940
19941 PR c/39037
19942 * c-common.h (mark_valid_location_for_stdc_pragma,
19943 valid_location_for_stdc_pragma_p, set_float_const_decimal64,
19944 clear_float_const_decimal64, float_const_decimal64_p): New.
19945 * c.opt (Wunsuffixed-float-constants): New.
19946 * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
19947 unsuffixed float constant, handle new warning.
19948 * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
19949 * c-decl.c (c_scope): New flag float_const_decimal64.
19950 (set_float_const_decimal64, clear_float_const_decimal64,
19951 float_const_decimal64_p): New.
19952 (push_scope): Set new flag.
19953 * c-parser.c (c_parser_translation_unit): Mark when it's valid
19954 to use STDC pragmas.
19955 (c_parser_external_declaration): Ditto.
19956 (c_parser_compound_statement_nostart): Ditto.
19957 * c-pragma.c (valid_location_for_stdc_pragma,
19958 mark_valid_location_for_stdc_pragma,
19959 valid_location_for_stdc_pragma_p, handle_stdc_pragma,
19960 handle_pragma_float_const_decimal64): New.
19961 (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
19962 * cp/semantics.c (valid_location_for_stdc_pragma_p,
19963 set_float_const_decimal64, clear_float_const_decimal64,
19964 float_const_decimal64_p): New dummy functions.
19965 * doc/extend.texi (Decimal Float): Remove statement that the
19966 pragma, and suffix for double constants, are not supported.
19967 * doc/invoke.texi (Warning Options): List new option.
19968 (-Wunsuffixed-float-constants): New.
19969
6de97ed5 199702009-05-08 Steven Bosscher <steven@gcc.gnu.org>
19971
19972 * config/i386/i386.c: Do not include c-common.h.
19973
b2d31ed6 199742009-05-07 Mark Heffernan <meheff@google.com>
19975
19976 * doc/invoke.texi (Debugging Options): Document change of debugging
19977 dump location.
39db6a03 19978 * opts.c (decode_options): Make dump_base_name relative to
b2d31ed6 19979 aux_base_name directory.
19980
697cef4f 199812009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
19982
19983 * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
19984 * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
19985
537bb6bf 199862009-05-07 Rafael Avila de Espindola <espindola@google.com>
19987
19988 * Makefile.in (install-plugin): Simplify a bit.
19989
2d4749b6 199902009-05-07 Paolo Bonzini <bonzini@gnu.org>
19991
19992 * Makefile.in (OBJS-common): Add regcprop.o.
19993 (regcprop.o): New.
19994 * timevar.def (TV_CPROP_REGISTERS): New.
19995 * regrename.c (regrename_optimize): Return 0.
19996 (rest_of_handle_regrename): Delete.
19997 (pass_rename_registers): Point to regrename_optimize.
f6c8c8fc 19998 (struct value_data_entry, struct value_data,
2d4749b6 19999 kill_value_one_regno, kill_value_regno, kill_value,
20000 set_value_regno, init_value_data, kill_clobbered_value,
20001 kill_set_value, kill_autoinc_value, copy_value,
20002 mode_change_ok, maybe_mode_change, find_oldest_value_reg,
20003 replace_oldest_value_reg, replace_oldest_value_addr,
20004 replace_oldest_value_mem, copyprop_hardreg_forward_1,
20005 debug_value_data, validate_value_data): Move...
20006 * regcprop.c: ... here.
20007 (rest_of_handle_cprop): Delete.
20008 (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
20009
7ad40ea1 200102009-05-07 Jakub Jelinek <jakub@redhat.com>
20011
20012 PR middle-end/40057
20013 * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
20014 GEN_INT for 1 << bitnum.
20015 (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
20016 build_int_cst_type.
20017
1cae7fd7 200182009-05-07 Uros Bizjak <ubizjak@gmail.com>
20019
20020 * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
e0f84439 20021 Remove wrong description of "nand" operation.
1cae7fd7 20022
618b10bf 200232009-05-06 Richard Guenther <rguenther@suse.de>
20024 Adam Nemet <anemet@caviumnetworks.com>
20025
20026 * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
20027 comment. Add that if LHS is not a gimple register, then RHS1 has
20028 to be a single object (GIMPLE_SINGLE_RHS).
20029
c1a83279 200302009-05-06 Adam Nemet <anemet@caviumnetworks.com>
20031
20032 * expr.c (get_def_for_expr): Move it up in the file.
20033 (store_field): When expanding a bit-field store, look at the
20034 defining gimple stmt for the masking conversion.
20035
b0090d52 200362009-05-06 Janis Johnson <janis187@us.ibm.com>
20037
20038 PR middle-end/39986
20039 * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
20040 decode_decimal64, encode_decimal128, decode_decimal128): Avoid
20041 32-bit memcpy into long.
20042
8fb8ca17 200432009-05-06 Jakub Jelinek <jakub@redhat.com>
20044
20045 * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
20046 (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
20047 new_reg_loc_descr.
20048 (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
20049 instead of appending DW_OP_deref*.
20050
f800c469 200512009-05-06 Michael Matz <matz@suse.de>
20052
20053 PR middle-end/40021
20054 * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
20055 (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
20056
b3c73487 200572009-05-06 Rafael Avila de Espindola <espindola@google.com>
20058
20059 * Makefile.in (install-plugin): Fix srcdir handling.
20060
d29f7fa8 200612009-05-06 Andrey Belevantsev <abel@ispras.ru>
20062
20063 * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
20064 when processing for not_regs_needed bitmap.
20065 * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
f6c8c8fc 20066 handle TARGET_MEM_REF in lhs. Check TMR_BASE for NULL while
20067 handling it for rhs.
d29f7fa8 20068
75445c99 200692009-05-06 H.J. Lu <hongjiu.lu@intel.com>
20070
a4374f2d 20071 * config/i386/i386.md (unnamed inc/dec peephole): Use
0ec7bfcd 20072 optimize_insn_for_size_p instead of optimize_size.
75445c99 20073 * config/i386/predicates.md (incdec_operand): Likewise.
20074 (aligned_operand): Likewise.
20075 * config/i386/sse.md (divv8sf3): Likewise.
20076 (sqrtv8sf2): Likewise.
20077
6e760686 200782009-05-06 H.J. Lu <hongjiu.lu@intel.com>
20079
20080 * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
20081
20082 * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
20083
67b1adf3 200842009-05-06 H.J. Lu <hongjiu.lu@intel.com>
20085
20086 * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
20087 ssemodesuffixf2c with avxmodesuffixf2c.
20088
7f824b22 200892009-05-06 Joseph Myers <joseph@codesourcery.com>
20090
20091 PR c/40032
0ec7bfcd 20092 * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
7f824b22 20093
7ac958de 200942009-05-05 Jakub Jelinek <jakub@redhat.com>
20095
20096 * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
20097 (struct tree_base): Adjust spacing for 8 bit boundaries.
20098 (struct tree_decl_common): Add decl_by_reference_flag bit.
20099 (DECL_BY_REFERENCE): Adjust.
20100 * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
20101 print DECL_BY_REFERENCE bit.
20102 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
20103 * dwarf2out.c (loc_by_reference, gen_decl_die): Check
20104 DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
20105 (gen_variable_die): Likewise. Check TREE_PRIVATE/TREE_PROTECTED
20106 unconditionally.
20107
72211fd1 20108 PR middle-end/39666
20109 * gimplify.c (gimplify_switch_expr): If case labels cover the whole
20110 range of the type, but default label is missing, add it with one
20111 of the existing labels instead of adding a new label for it.
20112
a4987849 201132009-05-05 Joseph Myers <joseph@codesourcery.com>
20114
20115 * dwarf.h: Remove.
20116
912f2b18 201172009-05-05 Rafael Avila de Espindola <espindola@google.com>
20118
20119 * Makefile.in (enable_plugin, plugin_includedir): New.
20120 (install): Depend on install-plugin.
20121 (PLUGIN_HEADERS): New.
20122 (install-plugin): New.
20123 * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
20124
d977f485 201252009-05-05 Richard Guenther <rguenther@suse.de>
20126
20127 PR tree-optimization/40022
20128 * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
20129 the only vuse.
20130 (phivn_valid_p): Fix tuplification error, simplify.
20131 (phiprop_insert_phi): Add dumps.
20132 (propagate_with_phi): Simplify.
20133
bab5904e 201342009-05-05 Richard Guenther <rguenther@suse.de>
20135
20136 PR middle-end/40023
0ec7bfcd 20137 * builtins.c (gimplify_va_arg_expr): Properly build the address.
bab5904e 20138
15155321 201392009-05-05 Shujing Zhao <pearly.zhao@oracle.com>
20140
20141 * tree.h (strip_float_extensions): Remove duplicate declaration.
0ec7bfcd 20142 (build_low_bits_mask, debug_fold_checksum, expand_function_end,
20143 expand_function_start, stack_protect_prologue, stack_protect_epilogue,
20144 block_ultimate_origin): Rearrange the declarations line to match the
20145 comment that indicates the .c file which the functions are defined.
20146 (dwarf2out_*, set_decl_rtl): Add comment.
20147 (get_base_address): Adjust comment.
20148 (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
20149 declarations line and add comment.
20150 (is_builtin_name): Add blank after function name, for clarity.
15155321 20151
abd3e6b5 201522009-05-04 Joseph Myers <joseph@codesourcery.com>
20153
20154 * attribs.c (decl_attributes): Use %qE for identifiers in
20155 diagnostics.
20156 * cgraphunit.c (verify_cgraph_node): Translate function names to
20157 locale character set in diagnostics.
20158 * coverage.c (get_coverage_counts): Use %qE for identifiers in
20159 diagnostics.
20160 * doc/invoke.texi (-finstrument-functions-exclude-function-list):
20161 Document that functions are named in UTF-8.
20162 * expr.c (expand_expr_real_1): Translate function names to locale
20163 character set in diagnostics.
20164 * gimplify.c (omp_notice_variable, omp_is_private,
20165 gimplify_scan_omp_clauses): Use %qE for identifiers in
20166 diagnostics.
20167 * langhooks.c (lhd_print_error_function): Translate function names
20168 to locale character set.
20169 * langhooks.h (decl_printable_name): Document that return value is
20170 in internal character set.
20171 * stmt.c: Include pretty-print.h
20172 (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
20173 diagnostics.
20174 (resolve_operand_name_1): Translate named operand name to locale
20175 character set.
20176 * stor-layout.c (finalize_record_size): Use %qE for identifiers in
20177 diagnostics.
20178 * toplev.c (announce_function): Translate function names to locale
20179 character set.
20180 (warn_deprecated_use): Use %qE for identifiers in diagnostics.
20181 (default_tree_printer): Use pp_identifier or translate identifiers
20182 to locale character set. Mark "<anonymous>" for translation.
20183 * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
20184 for identifiers in diagnostics.
20185 * tree.c (handle_dll_attribute): Use %qE for identifiers in
20186 diagnostics.
20187 * varasm.c (output_constructor): Use %qE for identifiers in
20188 diagnostics.
20189
6ac2286b 201902009-05-04 Rafael Avila de Espindola <espindola@google.com>
20191
20192 * configure.ac: use ` ` instead of $()
20193 * configure: Regenerate.
20194
5f80759e 201952009-05-05 Ben Elliston <bje@au.ibm.com>
20196
20197 * config/pa/linux-atomic.c: Eliminate conditional include of
20198 errno.h on non-LP64 systems to simplify build requirements.
20199
d1dd9ac0 202002009-05-04 Joseph Myers <joseph@codesourcery.com>
20201
20202 * c-common.c (handle_mode_attribute): Use %qE for identifiers in
20203 diagnostics.
20204 * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
20205 and pass value to identifier_to_locale.
20206 (warn_variable_length_array): Make name a tree.
20207 (grokdeclarator): Separate diagnostic texts for named and unnamed
20208 declarators. Use %qE for named declarators.
20209 * c-parser.c (c_lex_one_token): Use %qE for identifiers in
20210 diagnostics.
20211 * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
20212 identifiers in diagnostics.
20213 * c-typeck.c (push_member_name, start_init): Pass identifiers to
20214 identifier_to_locale. Mark "anonymous" strings for translation.
20215
c440daea 202162009-05-04 Michael Eager <eager@eagercon.com>
20217
20218 * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
0ec7bfcd 20219 address for DImode/DFmode only if double-precision FP regs.
c440daea 20220
498670de 202212009-05-04 Michael Eager <eager@eagercon.com>
20222
20223 * config/rs6000/rs6000.c (rs6000_libcall_value): Add
20224 TARGET_SINGLE_FLOAT check.
20225
ada4bf4e 202262009-05-04 Michael Eager <eager@eagercon.com>
20227
20228 * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
20229
c6312735 202302009-05-04 Michael Eager <eager@eagercon.com>
20231
d603963f 20232 * gcc/config.gcc (powerpc-xilinx-eabi*): Add tm t-xilinx
c6312735 20233 * config/rs6000/t-xilinx: New
20234
41e3a0c7 202352009-05-04 Paolo Bonzini <bonzini@gnu.org>
20236
39db6a03 20237 * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
41e3a0c7 20238 * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
20239 * gcc/explow.c (memory_address): Use target hook.
20240 * gcc/targhooks.c (default_legitimize_address): New.
20241 * gcc/targhooks.h (default_legitimize_address): New.
20242 * gcc/target.h (legitimize_address): New.
20243 * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
20244 (TARGET_INITIALIZER): Include it.
20245 * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
20246
20247 * config/bfin/bfin-protos.h (legitimize_address): Remove.
20248 * config/bfin/bfin.c (legitimize_address): Remove.
20249 * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
0ec7bfcd 20250 * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
20251 Remove.
41e3a0c7 20252 * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
20253 * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
20254
20255 * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
20256 THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
20257 * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
20258 * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
20259 * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
20260 * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
20261 * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
20262 * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
20263 * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
20264 * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
20265 * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
20266 * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
20267 * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
20268 * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
20269 * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
20270 * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
20271 * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
20272 * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
20273 * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
20274 * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
20275 * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
20276 * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
20277 * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
20278
20279 * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
20280 * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
20281 * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
20282 * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
20283 * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
20284 * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
20285 * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
20286 * gcc/config/arm/arm-protos.h (arm_legitimize_address,
20287 (thumb_legitimize_address): Delete.
20288 * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
20289 * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
20290 * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
20291 * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
20292 * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
0ec7bfcd 20293 * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
20294 Delete.
20295 * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
20296 Delete.
41e3a0c7 20297
20298 * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
20299 * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
20300 * config/m32r/m32r.c (m32r_legitimize_address): New.
20301 * config/m68k/m68k.c (m68k_legitimize_address): New.
20302 * config/score/score.c (score_legitimize_address): Standardize.
20303 * config/score/score3.c (score3_legitimize_address): Standardize.
20304 * config/score/score3.h (score3_legitimize_address): Adjust.
20305 * config/score/score7.c (score7_legitimize_address): Standardize.
20306 * config/score/score7.h (score7_legitimize_address): Adjust.
20307 * config/sh/sh.c (sh_legitimize_address): New.
20308 * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
20309
20310 * gcc/config/s390/s390.c (legitimize_address): Rename to...
20311 (s390_legitimize_address): ... this.
20312 * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
20313 (sparc_legitimize_address): ... this.
20314 * gcc/config/i386/i386.c (legitimize_address): Rename to...
20315 (ix86_legitimize_address): ... this.
20316 * gcc/config/avr/avr.c (legitimize_address): Rename to...
20317 (avr_legitimize_address): ... this.
20318 * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
20319 (mn10300_legitimize_address): ... this.
20320 * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
20321 (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
20322 (alpha_expand_mov): Adjust call.
20323
20324 * config/frv/frv.c (frv_legitimize_address): Return x on failure.
20325 * config/spu/spu.c (spu_legitimize_address): Likewise.
20326 * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
20327 * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
20328
27746e01 203292009-05-04 Joseph Myers <joseph@codesourcery.com>
20330
20331 * intl.c (locale_encoding, locale_utf8): New.
20332 (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
20333 * intl.h (locale_encoding, locale_utf8): Declare.
20334 * pretty-print.c: Include ggc.h. Include iconv.h if HAVE_ICONV.
20335 (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
20336 New.
20337 * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
20338 argument.
20339 (pp_tree_identifier): Define to call pp_base_tree_identifier.
20340 (pp_base_tree_identifier): Declare as function.
20341 (identifier_to_locale): Declare.
20342 * Makefile.in (pretty-print.o): Update dependencies.
0ec7bfcd 20343 * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
27746e01 20344
97d4c6a6 203452009-05-04 Richard Guenther <rguenther@suse.de>
20346
20347 PR middle-end/40015
20348 * builtins.c (fold_builtin_memory_op): Do not decay to element
20349 type if the size matches the whole array.
20350
5521b4c8 203512009-05-04 Kazu Hirata <kazu@codesourcery.com>
20352
20353 * expmed.c (synth_mult): When trying out a shift, pass the result
20354 of a signed shift.
20355
b592bb50 203562009-05-04 Kazu Hirata <kazu@codesourcery.com>
20357
20358 * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
20359 (shiftsub1_cost): New.
20360 (init_expmed): Compute shiftsub1_cost.
20361 (synth_mult): Optimize multiplications by constants of the form
20362 -(2^^m-1) for some constant positive integer m.
20363
45bb3afb 203642009-05-03 Richard Guenther <rguenther@suse.de>
20365
20366 PR c/39983
20367 * c-typeck.c (array_to_pointer_conversion): Do not built
20368 ADDR_EXPRs of arrays of pointer-to-element type.
20369 * c-gimplify.c (c_gimplify_expr): Revert change fixing
20370 up wrong ADDR_EXPRs after-the-fact.
20371 * c-common.c (strict_aliasing_warning): Strip pointer
20372 conversions for obtaining the original type.
20373 * builtins.c (fold_builtin_memset): Handle array types.
20374 (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
20375 and array types
20376
9225ad44 203772009-05-03 Richard Guenther <rguenther@suse.de>
20378
20379 PR middle-end/23329
20380 * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
20381 Do not lose casts from array types with unknown extent to array
20382 types with known extent.
20383 * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
20384 alias set compatibility.
20385
a0ded67b 203862009-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
20387
20388 * flags.h (extra_warnings): Delete.
20389 * toplev.c (process_options): Handle Wuninitialized here.
20390 * opts.c (extra_warnings): Delete.
20391 (set_Wextra): Delete.
20392 (common_handle_option): -Wextra can be handled automatically.
20393 * c-opts.c (c_common_handle_option): Delete obsolete code.
20394 (c_common_post_options): Simplify comment.
20395 * common.opt (W): Add Var.
20396 (Wextra): Add Var.
20397 (Wuninitialized): Initialize to -1.
20398
bf39f60a 203992009-05-03 Adam Nemet <anemet@caviumnetworks.com>
20400 Richard Guenther <rguenther@suse.de>
20401
20402 * expr.c (get_def_for_expr): New function.
20403 (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
20404 SSA rather than trees.
20405 <MULT_EXPR>: Likewise. Use subexp0 and subexp1 instead of
20406 TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
f6c8c8fc 20407
c1800156 204082009-05-03 Joseph Myers <joseph@codesourcery.com>
20409
20410 * c-common.c (reswords): Add _Imaginary.
20411 * c-common.c (enum rid): Add RID_IMAGINARY.
20412
8b50765f 204132009-05-03 Paolo Bonzini <bonzini@gnu.org>
20414
20415 * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
20416 Patch by Richard Guenther.
20417
a4efa7dc 204182009-05-03 Anatoly Sokolov <aesok@post.ru>
20419
20420 * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
20421 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
20422 * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
20423 * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
20424 * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
20425 * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
20426 * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
20427 * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
20428 * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
20429 * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
20430 * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
20431 * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
20432 * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
20433 * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
20434 * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
20435 * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
20436 * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
20437 * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
20438
b4c97a12 204392009-05-02 Richard Guenther <rguenther@suse.de>
20440
20441 PR tree-optimization/39940
20442 * tree-ssa-pre.c (eliminate): Make sure we may propagate before
20443 doing so.
20444
f09f132b 204452009-05-02 Richard Guenther <rguenther@suse.de>
20446
20447 PR middle-end/40001
20448 * tree-ssa.c (execute_update_addresses_taken): Properly check
20449 if we can mark a variable DECL_GIMPLE_REG_P.
20450 * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
20451 back to the end of the function.
20452 (is_gimple_reg_type): Remove complex type special casing.
20453 * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
20454 if not optimizing.
20455
2ccfd743 204562009-05-02 Ben Elliston <bje@au.ibm.com>
20457
20458 * doc/collect2.texi (Collect2): Document search path behaviour
20459 when configured with --with-ld.
20460
5b835bca 204612009-05-02 Jan Hubicka <jh@suse.cz>
20462
20463 * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
20464 parameter; update callers.
0ec7bfcd 20465 (coalesce_cost_edge): EH edges are costier because they needs
20466 splitting even if not critical and even more costier when there are
20467 multiple EH predecestors.
5b835bca 20468
a0c110ce 204692009-05-02 Jan Hubicka <jh@suse.cz>
20470
20471 * except.c (remove_eh_handler_and_replace): Handle updating after
20472 removing TRY blocks.
20473
aa7ab40e 204742009-05-02 Eric Botcazou <ebotcazou@adacore.com>
20475
20476 * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
20477
c778f6b8 204782009-05-02 Steven Bosscher <steven@gcc.gnu.org>
20479
20480 * varasm.c: Do not include c-pragma.h.
20481 * attribs.c: Do not incude c-common.h.
20482
d6230243 204832009-05-01 Michael Matz <matz@suse.de>
20484
20485 * calls.c (initialize_argument_information): Handle SSA names like
20486 decls with a non MEM_P DECL_RTL.
20487
5863771b 204882009-05-01 Steven Bosscher <steven@gcc.gnu.org>
20489
20490 * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
20491 * ipa-utils.c: Likewise.
20492 * ipa-type-escape.c: Likewise.
20493 * cgraphunit.c Do not include c-common.h.
20494 * ipa-pure-const.c: Likewise.
20495 * tree-if-conv.c: Likewise.
20496 * matrix-reorg.c: Do not include c-common.h and c-tree.h.
20497 * ipa-struct-reorg.c: Likewise.
20498 * tree-nomudflap.c: Likewise.
20499 * tree-ssa-structalias.c: Likewise.
20500
acf70424 205012009-05-01 Steven Bosscher <steven@gcc.gnu.org>
20502
20503 * store-motion.c: Many cleanups to make this pass a first-class
20504 citizen instead of an appendix to gcse load motion. Add TODO list
20505 to make this pass faster/cleaner/better.
20506
20507 (struct ls_expr): Post gcse.c-split cleanups.
20508 Rename to st_expr. Rename "loads" field to "antic_stores". Rename
20509 "stores" field to "avail_stores".
20510 (pre_ldst_mems): Rename to store_motion_mems.
20511 (pre_ldst_table): Rename to store_motion_mems_table.
20512 (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
20513 (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
20514 (ldst_entry): Rename to st_expr_entry, update users.
20515 (free_ldst_entry): Rename to free_st_expr_entry, update users.
20516 (free_ldst_mems): Rename to free_store_motion_mems, update users.
0ec7bfcd 20517 (enumerate_ldsts): Rename to enumerate_store_motion_mems,
20518 update caller.
acf70424 20519 (first_ls_expr): Rename to first_st_expr, update users.
20520 (next_ls_expr): Rename to next_st_expr, update users.
20521 (print_ldst_list): Rename to print_store_motion_mems. Print names of
20522 fields properly for store motion instead of names inherited from load
20523 motion in gcse.c.
20524 (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
20525 (LAST_AVAIL_CHECK_FAILURE): Explain what this is. Undefine when we
20526 are done with it.
20527
20528 (ae_kill): Rename to st_kill, update users.
20529 (ae_gen): Rename to st_avloc, update users.
20530 (transp): Rename to st_transp, update users.
20531 (pre_insert_map): Rename to st_insert_map, update users.
20532 (pre_delete_map): Rename to st_delete_map, update users.
20533 (insert_store, build_store_vectors, free_store_memory,
20534 one_store_motion_pass): Update for abovementioned changes.
20535
20536 (gcse_subst_count, gcse_create_count): Remove.
20537 (one_store_motion_pass): New statistics counters "n_stores_deleted"
20538 and "n_stores_created", local variables.
20539
20540 (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
20541 use for_each_rtx.
20542
20543 (regvec, compute_store_table_current_insn): Remove.
20544 (reg_set_info, reg_clear_last_set): Remove.
20545 (compute_store_table): Use DF caches instead of local dataflow
20546 solvers.
20547
1e00012f 205482009-05-01 Joseph Myers <joseph@codesourcery.com>
20549
20550 * c-objc-common.c (c_tree_printer): Print identifiers with
20551 pp_identifier, not pp_string. Mark "({anonymous})" for
20552 translation.
20553 * c-pretty-print.c (pp_c_ws_string): New.
20554 (pp_c_cv_qualifier, pp_c_type_specifier,
20555 pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
20556 pp_c_storage_class_specifier, pp_c_function_specifier,
20557 pp_c_attributes, pp_c_bool_constant, pp_c_constant,
20558 pp_c_primary_expression, pp_c_postfix_expression,
20559 pp_c_unary_expression, pp_c_shift_expression,
20560 pp_c_relational_expression, pp_c_equality_expression,
20561 pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
20562 use pp_string and pp_c_ws_string in place of pp_identifier and
20563 pp_c_identifier for non-identifiers. Mark English strings for
20564 translation.
20565 * c-pretty-print.h (pp_c_ws_string): Declare.
20566
8271b966 205672009-04-30 Paul Pluzhnikov <ppluzhnikov@google.com>
20568 Roland McGrath <roland@redhat.com>
20569
0ec7bfcd 20570 * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
8271b966 20571 (ENABLE_LD_BUILDID): New configuration option.
20572 * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
20573 (LINK_BUILDID_SPEC): New macro.
20574 (init_spec): If defined, prepend it between LINK_EH_SPEC and
20575 link_spec.
20576 * doc/install.texi: Document --enable-linker-build-id option.
20577 * configure: Rebuild.
20578 * config.in: Rebuild.
20579
f9eddbcf 205802009-04-30 Adam Nemet <anemet@caviumnetworks.com>
20581
20582 * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
20583 MIPS_GP_SAVE_AREA_SIZE): Define new macros.
20584 (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD. Use
20585 MIPS_GP_SAVE_AREA_SIZE.
20586 * config/mips/mips.c (struct mips_frame_info): Update comment
20587 before arg_pointer_offset and hard_frame_pointer_offset.
20588 (mips_compute_frame_info): Update diagram before function: to
20589 correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
20590 indicate the position of frame_pointer_rtx with -fstack-protector and
20591 to show args_size. Don't allocate cprestore area for leaf functions
20592 if FRAME_GROWS_DOWNWARD. Use MIPS_GP_SAVE_AREA_SIZE to set
20593 cprestore_size.
20594 (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
20595
a1828715 205962009-04-30 Michael Matz <matz@suse.de>
20597
f9eddbcf 20598 PR tree-optimization/39955
20599 * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
a1828715 20600
520196ac 206012009-04-30 Dave Korn <dave.korn.cygwin@gmail.com>
20602
20603 * ira.c (setup_cover_and_important_classes): Use safe macro
20604 REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
20605 directly.
20606 * genpreds.c (write_tm_preds_h): Output suitable definition of
20607 REG_CLASS_FOR_CONSTRAINT.
20608
29d35324 206092009-04-30 Rafael Avila de Espindola <espindola@google.com>
20610
20611 * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
20612 instead of an int.
20613 * bitmap.c (bitmap_descriptor): Likewise.
20614 * ggc-common.c (loc_descriptor): Likewise.
20615 * varray.c (varray_descriptor): Likewise.
20616 * vec.c (vec_descriptor): Likewise.
20617
f274e293 206182009-04-30 Eric Botcazou <ebotcazou@adacore.com>
14ca6b9a 20619
20620 * Makefile.in (dce.o): Add $(EXCEPT_H).
20621 * dce.c: Include except.h and delete redundant vector definitions.
20622 (deletable_insn_p): Return false for non-call insns that can throw
20623 if DF is running.
20624
4b673aa1 206252009-04-30 Steven Bosscher <steven@gcc.gnu.org>
20626
20627 * gcse.c (ae_gen): Remove.
20628 (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
20629 and make non-static function to make it available in store-motion.c.
20630 Update call sites with search-and-replace.
20631 (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
20632 extract_mentioned_regs, extract_mentioned_regs_helper,
20633 find_moveable_store, compute_store_table, load_kills_store, find_loads,
20634 store_killed_in_insn, store_killed_after, store_killed_before,
20635 build_store_vectors, insert_insn_start_basic_block, insert-store,
20636 remove_reachable_equiv_notes, replace_store_insn, delete_store,
20637 free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
20638 execute_rtl_store_motion, pass_rtl_store_motion): Move to...
20639 * store-motion.c: ...new file. Also copy data structures from gcse.c
20640 and clean up to remove parts not used by store motion.
20641 * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
20642 * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
20643
aca3a78f 206442009-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20645
20646 PR target/38571
20647 * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
20648 when optimizing for size.
20649
e5a9568a 206502009-04-30 Hans-Peter Nilsson <hp@axis.com>
20651
20652 * gcse.c (gcse_constant_p): Fix typo in last change.
20653
c2cf4a47 206542009-04-30 Rafael Avila de Espindola <espindola@google.com>
20655
20656 * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
20657
c5e00404 206582009-04-30 Andreas Krebbel <krebbel1@de.ibm.com>
20659
20660 * gcse.c (gcse_constant_p): Make sure the constant is sharable.
20661
c8b71b5d 206622009-04-29 James E. Wilson <wilson@codesourcery.com>
20663
20664 * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
20665 CONST_HIGH_PART result.
20666
ebdd0478 206672009-04-29 Anatoly Sokolov <aesok@post.ru>
20668
20669 * config/avr/avr.c (initial_elimination_offset): Rename to
20670 avr_initial_elimination_offset.
20671 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
20672 change return type to bool.
20673 (avr_can_eliminate): New function.
20674 * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
20675 (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
20676 (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
1cae7fd7 20677 * config/avr/avr-protos.h (initial_elimination_offset): Rename to
ebdd0478 20678 avr_initial_elimination_offset.
20679 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
20680 (avr_initial_elimination_offset): Define.
20681
225e5f6f 206822009-04-29 Eric Botcazou <ebotcazou@adacore.com>
0ec7bfcd 20683 Steven Bosscher <steven@gcc.gnu.org>
225e5f6f 20684
20685 PR rtl-optimization/39938
20686 * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
20687 * cfgrtl.c: Include insn-attr.h.
20688 (rest_of_pass_free_cfg): New function.
20689 (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
20690 * resource.c (init_resource_info): Remove call to df_analyze.
20691
db7bc493 206922009-04-29 Richard Guenther <rguenther@suse.de>
20693
20694 PR target/39943
20695 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
20696 allow conversion to signed integers.
20697
8f93c289 206982009-04-29 Richard Guenther <rguenther@suse.de>
20699
20700 * tree-cfg.c (verify_gimple_assign_binary): Allow vector
20701 shifts of floating point vectors if the shift amount is
20702 a constant multiple of the element size.
20703
4ef1170b 207042009-04-29 Andreas Krebbel <krebbel1@de.ibm.com>
20705 Michael Matz <matz@suse.de>
20706
20707 PR middle-end/39927
20708 PR bootstrap/39929
20709 * tree-outof-ssa.c (emit_partition_copy): New function.
20710 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
20711 insert_part_to_rtx_on_edge): Perform the partition base var
20712 copy using emit_partition_copy.
20713 (insert_value_copy_on_edge): Convert constants to the right mode.
20714 (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
20715 (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
20716
8c7abb6c 207172009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
20718
20719 * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
20720 scan backwards to try to find a constant to initialize it.
20721
82adee25 20722 * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
20723 insn before the loop_end instruction, don't look past labels.
20724
7b705d94 207252009-04-29 Richard Guenther <rguenther@suse.de>
20726
20727 PR middle-end/39937
20728 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
20729 loose type conversions.
20730 (forward_propagate_addr_expr): Fix tuplification bug. Remove
20731 stmts only if there are no uses of its definition.
20732
0fead507 207332009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
20734
20735 * config/bfin/bfin.h (splitting_loops): Declare.
20736 * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
20737 Reorder bit definitions to be ascending.
20738 (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
20739 * config/bfin/bfin.c (splitting_loops): New variable.
20740 (bfin_cpus): Add WA_LOAD_LCREGS as needed.
20741 (struct loop_info): Remove members INIT and LOOP_INIT.
20742 (bfin_optimize_loop): Don't set them. Reorder the code that generates
0ec7bfcd 20743 the LSETUP sequence. Allow LC to be loaded from any register, but
20744 also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
0fead507 20745 (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
20746 set to 1.
20747 * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
20748 of reload_completed.
0ec7bfcd 20749
0fead507 20750 From Jie Zhang:
20751 * config/bfin/bfin.md (movsi_insn): Refine constraints.
20752
e8ad34e4 207532009-04-29 Rafael Avila de Espindola <espindola@google.com>
20754
20755 * Makefile.in (PLUGIN_VERSION_H): New.
20756 (OBJS-common): Remove plugin-version.o.
20757 (plugin.o): Depend on (PLUGIN_VERSION_H).
20758 (plugin-version.o): Remove.
20759 * configure: Regenerate
20760 * configure.ac: Create plugin-version.h.
20761 * gcc-plugin.h (plugin_gcc_version): Remove.
20762 (plugin_default_version_check): Change signature.
20763 * plugin-version.c: Remove.
20764 * plugin.c: Include plugin-version.h.
20765 (str_plugin_gcc_version_name): Remove.
20766 (try_init_one_plugin): Pass gcc version to plugin_init.
20767 (plugin_default_version_check): Both gcc and plugin versions are now
20768 arguments.
20769
2a21643e 207702009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
f6c8c8fc 20771
2a21643e 20772 * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
20773 problematic last insns. Test for TYPE_CALL rather than CALL_P.
0ec7bfcd 20774 Remove special case testing for last insn of inner loops. Don't fail
20775 if the loop ends with a jump, emit an extra nop instead.
2a21643e 20776
101deac5 20777 * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
20778 DREGS rather than comparing directly. Remove code that tries to
20779 account for latencies.
20780
86cf57b9 207812009-04-29 Richard Guenther <rguenther@suse.de>
20782
20783 PR tree-optimization/39941
20784 * tree-ssa-pre.c (eliminate): Schedule update-ssa after
20785 eliminating an indirect call.
20786
b898ce29 207872009-04-29 Richard Guenther <rguenther@suse.de>
20788
20789 * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
20790 parameter. Allow invariants as base if !require_lvalue.
20791 (verify_gimple_assign_single): Adjust.
20792
901bfd0a 207932009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
20794
20795 * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
20796 (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
0ec7bfcd 20797 ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
20798 ssubhi3, ssaddhi3_parts and sssubhi3_parts.
901bfd0a 20799 (flag_mulhi3_parts): Produce a HImode output rather than trying to set
20800 a VEC_SELECT.
0ec7bfcd 20801 * config/bfin/bfin.c (bfin_expand_builtin,
20802 case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
901bfd0a 20803
f1a47479 208042009-04-28 Richard Guenther <rguenther@suse.de>
20805
20806 * tree-vect-loop.c (get_initial_def_for_induction): Use
20807 correct types for pointer increment.
20808
660b6c15 208092009-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20810
20811 * toplev.c (print_version): Update GMP version string calculation.
20812
79f40f20 208132009-04-28 Eric Botcazou <ebotcazou@adacore.com>
20814
20815 PR rtl-optimization/39938
20816 * resource.c (init_resource_info): Add call to df_analyze.
20817
afba4ec8 208182009-04-28 Uros Bizjak <ubizjak@gmail.com>
20819
20820 * config/alpha/alpha.md (usegp): Cast the result of
20821 alpha_find_lo_sum_using_gp to enum attr_usegp.
20822 * config/alpha/alpha.c (override_options): Remove end-of-structure
20823 marker element from cpu_table. Use array size of cpu_table to handle
20824 -mcpu and -mtune options.
20825 (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
20826
cf61fe8d 208272009-04-28 Joseph Myers <joseph@codesourcery.com>
20828
20829 * config.gcc (powerpc*-*-* | rs6000-*-*): Add
20830 rs6000/option-defaults.h to tm_file. Support cpu_32, cpu_64,
20831 tune_32 and tune_64.
20832 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
20833 support on PowerPC.
20834 * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
20835 * config/rs6000/option-defaults.h: ... here. New file.
20836 (OPT_64, OPT_32): Define.
20837 (MASK_64BIT): Define to 0 if not already defined.
20838 (OPT_ARCH64, OPT_ARCH32): Define.
20839 (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
20840 and tune_64.
20841
a73d7011 208422009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20843
20844 * config/arm/arm.c (arm_override_options): Emit error on using
20845 fpa with AAPCS.
20846
13506fb4 208472009-04-28 Uros Bizjak <ubizjak@gmail.com>
20848
20849 PR rtl-optimization/39914
20850 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
20851 registers for allocnos created from user-defined variables only
20852 when not optimizing.
20853
1e5de3bd 208542009-04-28 Richard Guenther <rguenther@suse.de>
20855
20856 PR middle-end/39937
20857 * fold-const.c (fold_binary): Use distribute_real_division only
20858 on float types.
20859
43cb9222 208602009-04-28 Steve Ellcey <sje@cup.hp.com>
20861
20862 * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
20863 add hpux-stdint.h to tm_file.
20864 (hppa[12]*-*-hpux11*): Ditto.
20865 (ia64*-*-hpux*): Ditto.
20866 * config/hpux-stdint.h: New.
943327c1 20867 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
43cb9222 20868 __STDC_EXT__ for all compiles.
943327c1 20869 * config/pa/pa-hpux.h: Ditto.
20870 * config/pa/pa-hpux10.h: Ditto.
20871 * config/pa/pa-hpux11.h: Ditto.
43cb9222 20872
029529e6 208732009-04-28 Catherine Moore <clm@codesourcery.com>
20874
20875 * debug.h (set_name): Add comment.
20876
e5d1687d 208772009-04-28 Andrew Pinski <pinskia@gmail.com>
20878
20879 PR target/39929
20880 * config/darwin.c (machopic_gen_offset): Check
20881 currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
20882 * config/arm/arm.c (require_pic_register): Likewise.
20883
a0388eef 208842009-04-28 Paolo Bonzini <bonzini@gnu.org>
20885
afba4ec8 20886 * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
20887 m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
20888 m32c_promote_prototypes): Delete.
a0388eef 20889
bffc9f73 208902009-04-28 Michael Matz <matz@suse.de>
20891
20892 PR middle-end/39922
20893 * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
20894 constants.
20895
d716274d 208962009-04-28 Richard Guenther <rguenther@suse.de>
20897
13506fb4 20898 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
d716274d 20899
d6539baf 209002009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20901
20902 * config/arm/arm-cores.def: Add support for arm1156t2f-s.
20903 * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
20904 * config/arm/arm-tune.md: Regenerate.
20905
df6266b9 209062009-04-28 Alexander Monakov <amonakov@ispras.ru>
943327c1 20907
df6266b9 20908 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
20909 block if there are complex incoming edges.
20910 (sel_merge_blocks): Remove useless assert.
20911 (sel_redirect_edge_and_branch): Check that edge was redirected.
20912 * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
20913 (sel_find_rgns): Delete declaration.
20914 * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
20915 the region when it is not a preheader.
20916
a0c94741 209172009-04-28 Uros Bizjak <ubizjak@gmail.com>
20918
20919 PR c/39323
20920 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
20921
f003f9fd 209222009-04-28 Richard Guenther <rguenther@suse.de>
20923
20924 * tree.h (SSA_NAME_VALUE): Remove.
20925 (struct tree_ssa_name): Remove value_handle member.
20926 * tree-vrp.c (execute_vrp): Initialize/free the value-handle
20927 array for jump threading.
20928 * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
20929 SSA_NAME_VALUEs.
20930 * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
20931 * tree-flow.h (threadedge_initialize_values): Declare.
20932 (threadedge_finalize_values): Likewise.
20933 * tree-ssa-threadedge.c (ssa_name_values): New global variable.
20934 (SSA_NAME_VALUE): Define.
20935 (threadedge_initialize_values): New function.
20936 (threadedge_finalize_values): Likewise.
20937 * tree-ssa-dom.c (ssa_name_values): New global variable.
20938 (SSA_NAME_VALUE): Define.
13506fb4 20939 (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
f003f9fd 20940
f083cd24 209412009-04-28 Ira Rosen <irar@il.ibm.com>
20942
20943 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
f6c8c8fc 20944 Use REPORT_VECTORIZED_LOCATIONS instead
f083cd24 20945 REPORT_VECTORIZED_LOOPS.
20946 * tree-vectorizer.c (vect_verbosity_level): Make static.
20947 (vect_loop_location): Rename to vect_location.
20948 (vect_set_verbosity_level): Update comment.
20949 (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
20950 and vect_location.
20951 (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
20952 and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
20953 instead REPORT_UNVECTORIZED_LOOPS.
6ca2db76 20954 * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
20955 and vect_loop_def to vect_external_def and vect_internal_def.
f083cd24 20956 (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
f6c8c8fc 20957 and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
f083cd24 20958 REPORT_UNVECTORIZED_LOCATIONS.
20959 (enum vect_relevant): Update comment. Rename vect_unused_in_loop
f6c8c8fc 20960 and vect_used_in_loop and to vect_unused_in_scope and
f083cd24 20961 vect_used_in_scope.
20962 (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
20963 (vect_verbosity_level): Remove declaration.
20964 (vect_analyze_operations): Likewise.
20965 (vect_analyze_stmt): Declare.
20966 * tree-vect-loop.c (vect_determine_vectorization_factor): Use
20967 REPORT_UNVECTORIZED_LOCATIONS.
20968 (vect_get_loop_niters): Fix indentation.
20969 (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
20970 (vect_analyze_loop_operations): New function.
20971 (vect_analyze_loop): Call vect_analyze_loop_operations instead of
20972 vect_analyze_operations.
20973 (vect_is_simple_reduction): Use new names.
20974 (vectorizable_live_operation, vect_transform_loop): Likewise.
6ca2db76 20975 * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
20976 to specify whether the data references can be a part of interleaving
20977 chain.
f083cd24 20978 (vect_analyze_data_ref_dependence): Use new names.
20979 (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
20980 (vect_create_addr_base_for_vector_ref): Remove redundant code.
20981 * tree-vect-patterns.c (widened_name_p): Use new names.
20982 (vect_recog_dot_prod_pattern): Likewise.
20983 * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
f6c8c8fc 20984 (process_use, vect_mark_stmts_to_be_vectorized,
f083cd24 20985 vect_model_simple_cost, vect_model_store_cost,
20986 vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
20987 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
20988 vectorizable_operation, vectorizable_type_demotion,
20989 vectorizable_type_promotion, vectorizable_store, vectorizable_load,
20990 vectorizable_condition): Likewise.
20991 (vect_analyze_operations): Split into vect_analyze_loop_operations
20992 and ...
20993 (vect_analyze_stmt): ... new function.
20994 (new_stmt_vec_info): Use new names.
20995 (vect_is_simple_use): Use new names and fix comment.
20996 * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
20997 (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
20998
f1689c28 209992009-04-28 Uros Bizjak <ubizjak@gmail.com>
21000
21001 PR target/39911
21002 * config/i386/i386.c (print_operand) ['Z']: Handle floating point
21003 and integer modes for x87 operands. Do not ICE for unsupported size,
21004 generate error instead. Generate error for unsupported operand types.
21005 ['z']: Do not handle HImode memory operands specially. Warning
21006 for floating-point operands. Fallthru to 'Z' for unsupported operand
21007 types. Do not ICE for unsupported size, generate error instead.
21008 (output_387_binary_op): Use %Z to output operands.
21009 (output_fp_compare): Ditto.
21010 (output_387_reg_move): Ditto.
21011
1f63a7d6 210122009-04-28 Ben Elliston <bje@au.ibm.com>
21013
21014 PR c++/35652
21015 Revert:
21016
21017 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21018
21019 * builtins.c (c_strlen): Do not warn here.
21020 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
21021 * c-common.c (pointer_int_sum): Take an explicit location.
21022 Warn about offsets out of bounds.
21023 * c-common.h (pointer_int_sum): Adjust declaration.
21024
bc620c5c 210252009-04-27 Ian Lance Taylor <iant@google.com>
21026
21027 * collect2.c (is_ctor_dtor): Change type of ret field in struct
21028 names to symkind.
21029 * dce.c (run_fast_df_dce): Change type of old_flags to int.
21030 * df-core.c (df_set_flags): Change return type to int. Change
21031 type of old_flags to int.
21032 (df_clear_flags): Likewise.
21033 * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
21034 (df_get_conditional_uses): Likewise.
21035 * df.h (df_set_flags, df_clear_flags): Update declarations.
21036 * dwarf2out.c (struct indirect_string_node): Change type of form
21037 field to enum dwarf_form.
21038 (AT_string_form): Change return type to enum dwarf_form.
21039 * fixed-value.c (fixed_compare): Add cast to enum type.
21040 * fwprop.c (update_df): Change 0 to VOIDmode.
21041 * gensupport.c: Change 0 to UNKNOWN.
21042 * gimple.h (gimple_cond_code): Add cast to enum type.
21043 * haifa-sched.c (reemit_notes): Add cast to enum type.
21044 * hooks.c (hook_int_void_no_regs): Remove function.
21045 * hooks.h (hook_int_void_no_regs): Remove declaration.
21046 * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
a0c94741 21047 * predict.c (combine_predictions_for_insn): Add casts to enum type.
bc620c5c 21048 * real.c (real_arithmetic): Add cast to enum type.
21049 (real_compare): Likewise.
21050 * target.h (struct gcc_target): Change return type of
21051 branch_target_register_class to enum reg_class.
21052 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
21053 default_branch_target_register_class.
a0c94741 21054 * targhooks.c (default_branch_target_register_class): New function.
bc620c5c 21055 * targhooks.h (default_branch_target_register_class): Declare.
a0c94741 21056 * tree-data-ref.c (print_direction_vector): Add cast to enum type.
bc620c5c 21057 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
21058 cast to int.
21059 * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
21060 ERROR_MARK.
21061 * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
21062 vect_uninitialized_def. Change 0 to ERROR_MARK.
21063 * tree-vect-stmts.c (supportable_widening_operation): Don't
21064 initialize icode1 and icode2.
a0c94741 21065 * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
bc620c5c 21066 * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
21067 and to STD_C89.
21068 (cmn_err_flag_specs): Change 0 to STD_C89.
21069 (cmn_err_char_table): Likewise.
21070 * config/arm/arm.c (get_arm_condition_code): Change type of code
21071 to enum arm_cond_code.
21072 (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
21073 (IWMMXT_BUILTIN2): Likewise.
21074 (neon_builtin_type_bits): Don't define typedef.
21075 (neon_builtin_datum): Change type of bits field to int.
21076 (arm_expand_neon_args): Add cast to enum type.
21077 * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
21078 TLS_MODEL_NONE.
21079 * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN. Add
21080 casts to enum type.
21081 * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
21082 MIPS_FP_COND_f.
21083 * config/mips/mips.md (jal_macro): Return enum constant.
21084 (single_insn): Likewise.
21085 * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
21086 CODE_FOR_nothing.
21087 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21088 casts to enum type.
21089 * config/s390/s390.c (s390_tune_flags): Change type to int.
21090 (s390_arch_flags): Likewise.
a0c94741 21091 (s390_handle_arch_option): Change flags field of struct pta to int.
bc620c5c 21092 * config/s390/s390.h (s390_tune_flags): Update declaration.
21093 (s390_arch_flags): Likewise.
21094 * config/sh/sh.c (prepare_move_operands): Compare
21095 tls_symbolic_operand result with enum constant.
21096 (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
21097 (sh_expand_prologue): Add cast to enum type.
21098 (sh_expand_epilogue): Likewise.
21099 (tls_symbolic_operand): Change return type to enum tls_model.
21100 (fpscr_set_from_mem): Add cast to enum type.
21101 (legitimize_pic_address): Compare tls_symbolic_operand result with
21102 enum constant.
21103 (sh_target_reg_class): Change return type to enum reg_class.
21104 * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
21105 PROCESSOR_xxx.
a0c94741 21106 * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
21107 * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
bc620c5c 21108 * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
21109 (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
21110 (delayed_branch, tls_call_delay): Likewise.
21111 (eligible_for_sibcall_delay): Likewise.
f6c8c8fc 21112 (eligible_for_return_delay): Likewise.
bc620c5c 21113 * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
21114 (spu_expand_builtin_1): Likewise.
21115
21116 * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
21117 for all types of conversions.
21118 (output_init_element): Issue -Wc++-compat warning if needed when
21119 initializing a bitfield with enum type.
21120 * c-parser.c (c_parser_expression): Set original_type to
86efc2bb 21121 original_type of right hand operand of comma operator.
bc620c5c 21122
68576faf 211232009-04-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21124
21125 * doc/c-tree.texi (Types, Functions, Expression trees): Fix
21126 grammar nits.
a0c94741 21127 * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
68576faf 21128 * doc/cpp.texi (Standard Predefined Macros)
21129 (Implementation-defined behavior): Likewise.
a0c94741 21130 * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
68576faf 21131 * doc/gimple.texi (GIMPLE Exception Handling)
21132 (@code{GIMPLE_ASSIGN}): Likewise.
a0c94741 21133 * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
68576faf 21134 * doc/invoke.texi (Warning Options, Optimize Options)
21135 (AVR Options, Darwin Options): Likewise.
21136 (Optimize Options): Reformulate -fwhole-program description.
21137 * doc/loop.texi (Lambda): Likewise.
21138 * doc/md.texi (Output Template, Define Constraints)
21139 (Standard Names, Insn Splitting): Likewise.
21140 * doc/options.texi (Option properties): Likewise.
21141 * doc/passes.texi (Tree-SSA passes): Likewise.
21142 * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
21143 * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
21144 (File Names and DBX): Likewise.
21145 * doc/trouble.texi (Incompatibilities): Likewise.
21146
ade56658 211472009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
8f1d58ad 21148
21149 * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
21150 instruction is correct.
21151
ade56658 211522009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
56c7bfc2 21153
21154 Allow non-constant arguments to conversion intrinsics.
21155 * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
21156 * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
21157 * spu.c (print_operand): Handle 'v' and 'w'.
21158 (exp2_immediate_p, spu_gen_exp2): Define.
21159 * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
21160 spu_convtf_1): Update parameter descriptions.
a0c94741 21161 * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
56c7bfc2 21162 * constraints.md ('v', 'w'): New.
21163 * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
21164 Remove.
21165 (i2f, I2F): New define_mode_attr.
21166 (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
21167 floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
21168 fixuns_truncv4sfv4si2): Update to use mode attribute.
21169 (float<mode><i2f>2_mul, float<mode><i2f>2_div,
21170 fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
21171 floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
21172 patterns for combine.
21173
d743aba2 211742009-04-27 Steven Bosscher <steven@gcc.gnu.org>
21175
21176 * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
21177 (cprop, hoist, pre, store_motion): New debug counters.
21178 * tree-pass.h (pass_tracer): Move to list of gimple passes, it
21179 is not an RTL pass anymore.
21180 (pass_profiling): Remove extern decl for pass removed in 2005.
21181 (pass_gcse, pass_jump_bypass): Remove.
21182 * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
21183 to 0 for clean state.
21184 * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
21185 * cse.c (gate_handle_cse_after_global_opts,
21186 rest_of_handle_cse_after_global_opts): New functions.
21187 (pass_cse_after_global_opts): New pass, does local CSE.
21188 * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
21189 (TV_CPROP): New timevar.
21190 * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
21191 (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
21192 (gcse_main, recompute_all_luids): Remove.
21193 (compute_hash_table_work): Call max_reg_num instead of reading
21194 max_gcse_regno.
21195 (cprop_jump): Don't set run_jump_opt_after_gcse.
21196 (constprop_register): Always allow to alter jumps.
21197 (cprop_insn): Likewise.
21198 (do_local_cprop): Likewise.
21199 (local_cprop_pass): Likewise. Return non-zero if something changed.
21200 (cprop): Remove function, fold interesting bits into one_cprop_pass.
21201 (find_implicit_sets): Add note about missed optimization opportunity.
21202 (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
21203 pass_rtl_cprop execute function.
21204 Don't bother tracking the pass number, each pass gets its own dumpfile
21205 now anyway.
21206 Always allow to alter jumpsand bypass jumps.
21207 (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
21208 will just find no suitable set.
21209 (pre_edge_insert): Fix dumping, this function is for PRE only.
21210 (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
21211 pass_rtl_pre execute function.
21212 (hoist_code): Return non-zero if something changed. Keep track of
21213 substitutions and insertions for statistics gathering similar to PRE.
21214 (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
21215 called from the pass_rtl_hoist execute function. Show pass statistics.
21216 (compute_store_table): Use max_reg_num directly instead of using the
21217 formerly global max_gcse_regno.
21218 (build_store_vectors): Likewise.
21219 (replace_store_insn): Fix dumping.
21220 (store_motion): Rename to ...
21221 (one_store_motion_pass): ... this. Rewrite to be "the" STORE_MOTION
21222 pass, called from the pass_rtl_store_motion execute function. Keep
21223 track of substitutions and insertions for statistics gathering similar
21224 to PRE.
21225 (bypass_jumps): Remove, fold interesting bits into ...
21226 (one_cprop_pass): ... this. Rewrite to be "the" CPROP pass, called
21227 from the pass_rtl_cprop execute function.
21228 (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
21229 pass_jump_bypass): Remove.
21230 (gate_handle_gcse, rest_of_handle_gcse): Remove.
21231 (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
21232 (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
21233 (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
21234 (gate_rtl_store_motion, execute_rtl_store_motion,
21235 pass_rtl_store_motion): New.
21236 * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
21237 make it clear that -fcse-skip-blocks is a no-op for backward compat.
21238 * passes.c (init_optimization_passes): Remove pass_gcse and
21239 pass_jump_bypass. Schedule cprop, pre, hoist, cprop, store_motion,
21240 and cse_after_global_opts in place of pass_gcse. Schedule cprop
21241 instead of pass_jump_bypass.
21242
fd3f8d70 212432009-04-27 Richard Guenther <rguenther@suse.de>
21244
21245 PR middle-end/39928
21246 * gimplify.c (gimplify_expr): If we are required to create
21247 a temporary make sure it ends up as register.
21248
dd430c78 212492009-04-27 H.J. Lu <hongjiu.lu@intel.com>
21250
21251 PR target/39903
21252 * config/i386/i386.c (construct_container): Don't call
21253 gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
21254 X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
21255
dfdbf3fd 212562009-04-27 Michael Matz <matz@suse.de>
21257
21258 * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
21259 (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
d603963f 21260 * tree-ssa-live.h (find_replaceable_exprs): Return a bitmap.
dfdbf3fd 21261 (dump_replaceable_exprs): Take a bitmap.
21262 * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
21263 array.
21264 (expand_gimple_basic_block): Likewise.
21265 * tree-ssa-ter.c (struct temp_expr_table_d): Make
21266 replaceable_expressions member a bitmap.
21267 (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
21268 (mark_replaceable): Likewise.
21269 (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
21270 * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
21271
ae2a9b00 212722009-04-27 Richard Guenther <rguenther@suse.de>
21273
21274 * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
21275 (verify_stmts): Dispatch to gimple/type verification code.
21276 * tree-inline.c (remap_gimple_op_r): Work around C++ FE
21277 issue with call argument types.
21278
3cac7f65 212792009-04-27 Michael Matz <matz@suse.de>
21280
21281 * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
21282 (init_update_ssa, delete_update_ssa, update_ssa): Remove references
21283 to above.
21284
075f6052 212852009-04-27 Richard Sandiford <rdsandiford@googlemail.com>
afba4ec8 21286 Eric Botcazou <ebotcazou@adacore.com>
075f6052 21287
21288 * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
21289 a label's basic block.
21290 (mark_target_live_regs): Tidy and rework obsolete comments.
21291 Change back DF problem to LIVE. If a label starts a basic block,
21292 assume that all registers that used to be live then still are.
21293 (init_resource_info): If a label starts a basic block, set its
21294 BLOCK_FOR_INSN accordingly.
21295 (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
21296
ca80ffc8 212972009-04-27 Richard Guenther <rguenther@suse.de>
21298
21299 * tree-flow-inline.h (function_ann): Remove.
21300 (get_function_ann): Likewise.
21301 * tree-dfa.c (create_function_ann): Remove.
21302 * tree-flow.h (struct static_var_ann_d): Remove.
21303 (struct function_ann_d): Likewise.
21304 (union tree_ann_d): Remove fdecl member.
21305 (function_ann_t): Remove.
21306 (function_ann, get_function_ann, create_function_ann): Remove
21307 declarations.
21308
ff8e23a2 213092009-04-27 Uros Bizjak <ubizjak@gmail.com>
21310
21311 * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
21312
df9b545b 213132009-04-27 Jan Hubicka <jh@suse.cz>
21314
21315 * ipa-pure-const.c (struct funct_state_d): New fields
21316 state_previously_known, looping_previously_known; remove
21317 state_set_in_source.
21318 (analyze_function): Use new fields.
21319 (propagate): Avoid assumption that state_set_in_source imply
21320 nonlooping.
21321
21322 * tree-ssa-loop-niter.c (finite_loop_p): New function.
21323 * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
21324 * cfgloop.h (finite_loop_p): Declare.
21325
5cc6fc7d 213262009-04-26 Michael Matz <matz@suse.de>
21327
ff8e23a2 21328 * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
5cc6fc7d 21329
96c15164 213302009-04-26 Michael Matz <matz@suse.de>
21331
21332 * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
21333 pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
21334 * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
21335 pass_mark_used_blocks): Remove.
21336 * tree-optimize.c (pass_free_datastructures,
21337 execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
21338 * passes.c (init_optimization_passes): Don't call
21339 pass_mark_used_blocks, remove dead code.
21340
4bbd1d82 213412009-04-26 H.J. Lu <hongjiu.lu@intel.com>
21342
21343 * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
21344 * tree-ssa-live.h (register_ssa_partition): Likewise.
21345
a8dd994c 213462009-04-26 Michael Matz <matz@suse.de>
21347
21348 Expand from SSA.
21349 * builtins.c (fold_builtin_next_arg): Handle SSA names.
21350 * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
21351 * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
f6c8c8fc 21352 SSA names.
a8dd994c 21353 (compare_pairs): Swap cost comparison.
21354 (coalesce_ssa_name): Don't use change_partition_var.
21355 * tree-nrv.c (struct nrv_data): Add modified member.
21356 (finalize_nrv_r): Set it.
21357 (tree_nrv): Use it to update statements.
21358 (pass_nrv): Require PROP_ssa.
21359 * tree-mudflap.c (mf_decl_cache_locals,
21360 mf_build_check_statement_for): Use make_rename_temp.
21361 (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
21362 * alias.c (find_base_decl): Handle SSA names.
21363 * emit-rtl (set_reg_attrs_for_parm): Make non-static.
21364 (component_ref_for_mem_expr): Don't leak SSA names into RTL.
21365 * rtl.h (set_reg_attrs_for_parm): Declare.
21366 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
21367 to "optimized", remove unused locals at finish.
21368 (execute_free_datastructures): Make global, call
21369 delete_tree_cfg_annotations.
21370 (execute_free_cfg_annotations): Don't call
21371 delete_tree_cfg_annotations.
21372
21373 * ssaexpand.h: New file.
21374 * expr.c (toplevel): Include ssaexpand.h.
ff8e23a2 21375 (expand_assignment): Handle SSA names the same as register variables.
a8dd994c 21376 (expand_expr_real_1): Expand SSA names.
21377 * cfgexpand.c (toplevel): Include ssaexpand.h.
21378 (SA): New global variable.
21379 (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
21380 (SSAVAR): New macro.
21381 (set_rtl): New helper function.
21382 (add_stack_var): Deal with SSA names, use set_rtl.
21383 (expand_one_stack_var_at): Likewise.
21384 (expand_one_stack_var): Deal with SSA names.
21385 (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
21386 before unique numbers.
21387 (expand_stack_vars): Use set_rtl.
21388 (expand_one_var): Accept SSA names, add asserts for them, feed them
21389 to above subroutines.
21390 (expand_used_vars): Expand all partitions (without default defs),
21391 then only the local decls (ignoring those expanded already).
21392 (expand_gimple_cond): Remove edges when jumpif() expands an
21393 unconditional jump.
21394 (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
21395 or remove abnormal edges. Ignore insns setting the LHS of a TERed
21396 SSA name.
21397 (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
21398 members of SA; deal with PARM_DECL partitions here; expand
21399 all PHI nodes, free tree datastructures and SA. Commit instructions
21400 on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
21401 (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
21402 info and statements at start, collect garbage at finish.
21403 * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
21404 (VAR_ANN_PARTITION) Remove.
21405 (change_partition_var): Don't declare.
21406 (partition_to_var): Always return SSA names.
21407 (var_to_partition): Only accept SSA names.
21408 (register_ssa_partition): Only check argument.
21409 * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
21410 member.
21411 (delete_var_map): Don't free it.
21412 (var_union): Only accept SSA names, simplify.
21413 (partition_view_init): Mark only useful SSA names as used.
21414 (partition_view_fini): Only deal with SSA names.
21415 (change_partition_var): Remove.
21416 (dump_var_map): Use ssa_name instead of partition_to_var member.
21417 * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
21418 basic blocks.
21419 * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
21420 (struct _elim_graph): New member const_dests; nodes member vector of
21421 ints.
21422 (set_location_for_edge): New static helper.
21423 (create_temp): Remove.
21424 (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
ff8e23a2 21425 insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
a8dd994c 21426 (new_elim_graph): Allocate const_dests member.
21427 (clean_elim_graph): Truncate const_dests member.
21428 (delete_elim_graph): Free const_dests member.
21429 (elim_graph_size): Adapt to new type of nodes member.
21430 (elim_graph_add_node): Likewise.
21431 (eliminate_name): Likewise.
21432 (eliminate_build): Don't take basic block argument, deal only with
21433 partition numbers, not variables.
21434 (get_temp_reg): New static helper.
21435 (elim_create): Use it, deal with RTL temporaries instead of trees.
21436 (eliminate_phi): Adjust all calls to new signature.
21437 (assign_vars, replace_use_variable, replace_def_variable): Remove.
21438 (rewrite_trees): Only do checking.
21439 (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
21440 (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
21441 init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
21442 contains_tree_r, MAX_STMTS_IN_LATCH,
21443 process_single_block_loop_latch, analyze_edges_for_bb,
21444 perform_edge_inserts): Remove.
21445 (expand_phi_nodes): New global function.
21446 (remove_ssa_form): Take ssaexpand parameter. Don't call removed
21447 functions, initialize new parameter, remember partitions having a
21448 default def.
21449 (finish_out_of_ssa): New global function.
21450 (rewrite_out_of_ssa): Make global. Adjust call to remove_ssa_form,
21451 don't reset in_ssa_p here, don't disable TER when mudflap.
21452 (pass_del_ssa): Remove.
21453 * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
21454 partition members.
21455 (execute_free_datastructures): Declare.
21456 * Makefile.in (SSAEXPAND_H): New variable.
21457 (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
21458 * basic-block.h (commit_one_edge_insertion): Declare.
21459 * passes.c (init_optimization_passes): Move pass_nrv and
21460 pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
21461 pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
21462 * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
21463 (redirect_branch_edge): Deal with super block when expanding, split
21464 out jump patching itself into ...
21465 (patch_jump_insn): ... here, new static helper.
21466
0d3f8fd5 214672009-04-26 Michael Matz <matz@suse.de>
21468
21469 * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
21470 beyond num_ssa_names.
21471 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
21472 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
21473
a1d07e97 214742009-04-26 Jakub Jelinek <jakub@redhat.com>
21475
abe2d6dd 21476 PR inline-asm/39543
21477 * fwprop.c (forward_propagate_asm): New function.
21478 (forward_propagate_and_simplify): Propagate also into __asm, if it
21479 doesn't increase the number of referenced registers.
21480
a1d07e97 21481 PR c/39889
21482 * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
21483
214842009-04-26 Jakub Jelinek <jakub@redhat.com>
9579733e 21485
21486 * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
21487 note_nonlocal_vla_type for nonlocal VLAs.
21488 (note_nonlocal_vla_type, note_nonlocal_block_vlas,
21489 contains_remapped_vars, remap_vla_decls): New functions.
21490 (convert_nonlocal_reference_stmt): If not optimizing, call
21491 note_nonlocal_block_vlas on GIMPLE_BIND block vars.
21492 (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
21493 if it wasn't found in var_map.
21494 (finalize_nesting_tree_1): Call remap_vla_decls. If outermost
21495 GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
21496 to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
21497 declare_vars.
21498 * gimplify.c (nonlocal_vlas): New variable.
21499 (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
21500 referenced VLAs.
21501 (gimplify_body): Create and destroy nonlocal_vlas.
1095d222 21502
1938132c 21503 * dwarf2out.c (loc_descr_plus_const): New function.
21504 (build_cfa_aligned_loc, tls_mem_loc_descriptor,
21505 mem_loc_descriptor, loc_descriptor_from_tree_1,
21506 descr_info_loc, gen_variable_die): Use it.
21507
1095d222 21508 * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
21509 !TREE_STATIC VAR_DECLs.
21510 * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
21511 DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
21512 (gen_variable_die): Likewise. Don't look at TREE_PRIVATE if
21513 DECL_BY_REFERENCE is valid.
21514 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
21515 for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
21516 * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
21517 Copy DECL_BY_REFERENCE.
21518 (struct nesting_copy_body_data): New type.
21519 (nesting_copy_decl): New function.
21520 (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
21521 if they have variable length.
21522
62bd61dd 215232009-04-26 Michael Matz <matz@suse.de>
21524
21525 * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
21526 mark new temporaries for renaming.
21527
7fc1e5fb 215282009-04-26 Joseph Myers <joseph@codesourcery.com>
21529
21530 PR c/39581
21531 * c-decl.c (global_bindings_p): Return negative value.
21532 (c_variable_size): New. Based on variable_size from
21533 stor-layout.c.
21534 (grokdeclarator): Call c_variable_size not variable_size.
21535
cfc43899 215362009-04-26 Uros Bizjak <ubizjak@gmail.com>
21537
21538 * config/i386/i386.c (print_operand) ['z']: Fix typo.
21539
4d63ce54 215402009-04-26 Kai Tietz <kai.tietz@onevision.com>
21541
21542 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
21543 Redefine it to just use mingw/include.
21544 (ASM_SPEC): Rules for -m32 and -m64.
21545 (LINK_SPEC): Use Likewise.
21546 (SPEC_32): New define.
21547 (SPEC_64): Likewise.
21548 (SUB_LINK_SPEC): Likewise.
21549 (MULTILIB_DEFAULTS): New define.
21550 * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
21551 Add multilib options.
21552 (MULTILIB_DIRNAMES): Likewise.
21553 (MULTILIB_OSDIRNAMES): Likewise.
21554 (LIBGCC): Likewise.
21555 (INSTALL_LIBGCC): Likewise.
21556
551ed71a 215572009-04-26 Joseph Myers <joseph@codesourcery.com>
21558
21559 PR c/39556
21560 * c-tree.h (enum c_inline_static_type): New.
21561 (record_inline_static): Declare.
21562 * c-decl.c (struct c_inline_static, c_inline_statics,
21563 record_inline_static, check_inline_statics): New.
21564 (pop_file_scope): Call check_inline_statics.
21565 (start_decl): Call record_inline_static instead of pedwarning
21566 directly for static in inline function.
21567 * c-typeck.c (build_external_ref): Call record_inline_static
21568 instead of pedwarning directly for static referenced in inline
21569 function.
21570
2e81afe5 215712009-04-26 Steven Bosscher <steven@gcc.gnu.org>
21572
21573 * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
21574 not new but only being rescanned.
21575 * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
21576 reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
21577 alloc_reg_set_mem, free_reg_set_mem, record_one_set,
21578 record_set_info, compute_set, grealloc): Remove.
21579 (recompute_all_luids): New function.
21580 (gcse_main): Don't compute sets, and don't do related memory
21581 allocations/free-ing. If something changed before the end of the
21582 pass, update LUIDs using recompute_all_luids.
21583 (alloc_gcse_mem): Don't compute LUIDs. Don't allocate reg_set memory.
21584 (free_gcse_mem): Don't free it either.
21585 (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
21586 Use the df insn LUIDs.
21587 (load_killed_in_block): Likewise.
21588 (compute_hash_table_work): Don't compute reg_set_in_block.
21589 (compute_transp): Use DF_REG_DEF_CHAINs.
21590 (local_cprop_pass): Don't use compute_sets and related functions.
21591 (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
21592 Use get_max_uid() instead of max_cuid.
21593 (insert_insn_end_basic_block, pre_insert_copy_insn,
21594 update_ld_motion_stores): Don't try to
21595 keep reg_set tables up to date.
21596 (pre_insert_copies): Use df insn LUIDs.
21597 (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
21598 (reg_set_info): Don't use extra bitmap argument.
21599 (compute_store_table): Don't compute reg_set_in_block. Use DF scan
21600 information to compute regs_set_in_block.
21601 (free_store_memory, store_motion): Don't nullify reg_set_in_block.
21602 (bypass_jumps): Don't use compute_sets and friends.
21603
b099e703 216042009-04-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21605
21606 PR testsuite/39710
21607 * opts.c (undocumented_msg): Do not leave blank even with
21608 ENABLE_CHECKING.
21609
bcb531e5 216102009-04-25 Joseph Myers <joseph@codesourcery.com>
21611
21612 * c-decl.c (build_enumerator): Allow values folding to integer
21613 constants but not integer constant expressions with a pedwarn if
21614 pedantic.
21615
e8074982 216162009-04-25 Joseph Myers <joseph@codesourcery.com>
21617
21618 PR c/39582
21619 * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
21620 with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
21621 type is an integer constant.
21622
f047dd27 216232009-04-25 Uros Bizjak <ubizjak@gmail.com>
21624
21625 PR target/39897
21626 * config/i386/i386.c (print_operand) ['z']: Revert handling of
21627 HImode operands.
21628
1d9b9611 216292009-04-25 Joseph Myers <joseph@codesourcery.com>
21630
21631 PR c/39564
21632 * c-decl.c (grokdeclarator): Diagnose declarations of functions
21633 with variably modified return type and no storage class
21634 specifiers, except for the case of nested functions. Distinguish
21635 extern declarations of functions with variably modified return
21636 types from those of objects with variably modified types.
21637
927a6b6b 216382009-04-25 Jan Hubicka <jh@suse.cz>
21639
21640 * tree.c (list_equal_p): New function.
21641 * tree.h (list_equal_p): Declare.
21642 * coretypes.h (edge_def, edge, const_edge, basic_block_def
21643 basic_block_def, basic_block, const_basic_block): New.
21644 * tree-eh.c (make_eh_edge): EH edges are not abnormal.
21645 (redirect_eh_edge): New function.
21646 (make_eh_edge_update_phi): EH edges are not abnormal.
21647 * except.c: Include tree-flow.h.
21648 (list_match): New function.
21649 (eh_region_replaceable_by_p): New function.
21650 (replace_region): New function.
21651 (hash_type_list): New function.
21652 (hash_eh_region): New function.
21653 (eh_regions_equal_p): New function.
21654 (merge_peers): New function.
21655 (remove_unreachable_regions): Verify EH tree when checking;
21656 merge peers.
21657 (copy_eh_region_1): New function.
21658 (copy_eh_region): New function.
21659 (push_reachable_handler): New function.
21660 (build_post_landing_pads, dw2_build_landing_pads): Be ready for
21661 regions without label but with live RESX.
21662 * except.h (redirect_eh_edge_to_label): New.
21663 * tree-flow.h (redirect_eh_edge): New.
21664 * coretypes.h (edge_def, edge, const_edge, basic_block_def
21665 basic_block_def, basic_block, const_basic_block): Remove.
21666 * Makefile.in (except.o): Add dependency on tree-flow.h
21667 * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
21668 * basic-block.h (edge, const_edge, basic_block, const_basic_block):
21669 Remove.
21670
6a4da2cd 216712009-04-25 Eric Botcazou <ebotcazou@adacore.com>
21672
21673 PR bootstrap/39645
21674 * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
21675 on the destination of memcpy.
21676
d5bfc154 216772009-04-25 Paolo Bonzini <bonzini@gnu.org>
21678
21679 * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
21680 REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
21681 REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
21682
3d1eacdb 216832009-04-25 Jan Hubicka <jh@suse.cz>
21684
21685 * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
21686 (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
21687 to be reached by different label than left.
21688 (update_eh_edges): Update comment; remove edge_to_remove if possible
21689 and return true if suceeded.
21690 (cleanup_empty_eh): Accept sharing map; handle shared regions.
21691 (cleanup_eh): Compute sharing map.
21692 * except.c (remove_eh_handler_and_replace): Add argument if we should
21693 update regions.
21694 (remove_unreachable_regions): Update for label sharing.
21695 (label_to_region_map): Likewise.
21696 (get_next_region_sharing_label): New function.
21697 (remove_eh_handler_and_replace): Add update_catch_try parameter; update
21698 prev_try pointers.
21699 (remove_eh_handler): Update.
21700 (remove_eh_region_and_replace_by_outer_of): New function.
21701 * except.h (struct eh_region): Add next_region_sharing_label.
21702 (remove_eh_region_and_replace_by_outer_of,
21703 get_next_region_sharing_label): Declare.
21704 * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
21705
217062009-04-25 Jan Hubicka <jh@suse.cz>
21707
21708 * tree-cfg.c (split_critical_edges): Split also edges where we can't
21709 insert code even if they are not critical.
21710
217112009-04-25 Jan Hubicka <jh@suse.cz>
21712
21713 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
21714 (gimple_can_remove_branch_p): EH edges won't remove branch by
21715 redirection.
21716 * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
21717 updating of non-abnormal EH edges.
21718 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
21719 (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
21720 (split_critical_edges): Split also edges where emitting code on them
21721 will lead to splitting later.
21722
6cc62ffa 217232009-04-25 Uros Bizjak <ubizjak@gmail.com>
21724 H.J. Lu <hongjiu.lu@intel.com>
21725
21726 PR target/39590
21727 * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
21728 the configured assembler supports fildq and fistpq mnemonics.
21729 (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
21730 * configure: Regenerated.
21731 * config.in: Ditto.
21732
21733 * config/i386/i386.c (print_operand): Handle 'Z'.
21734 ['z']: Remove handling of special fild/fist suffixes.
21735 (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
21736 * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
21737 suffix of fild insn.
21738 (*floatsi<mode>2_vector_mixed): Ditto.
21739 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
21740 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
21741 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
21742 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
21743 * config/i386/gas.h (GAS_MNEMONICS): Remove.
21744
84e907aa 217452009-04-25 Ben Elliston <bje@au.ibm.com>
f6c8c8fc 21746
84e907aa 21747 * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
21748 the source of a set operation.
21749
906bb5c3 217502009-04-25 Anatoly Sokolov <aesok@post.ru>
21751
21752 * target.h (struct gcc_target): Add case_values_threshold field.
21753 * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
21754 (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
21755 * targhooks.c (default_case_values_threshold): New function.
21756 * targhooks.h (default_case_values_threshold): Declare function.
21757 * stmt.c (expand_case): Use case_values_threshold target hook.
21758 * expr.h (case_values_threshold): Remove declartation.
21759 * expr.c (case_values_threshold): Remove function.
21760 * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
21761
21762 * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
21763 * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
21764 (avr_case_values_threshold): Declare as static.
21765 * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
21766
21767 * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
21768 * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
21769 (mn10300_case_values_threshold): New function.
21770
65123d77 217712009-04-24 H.J. Lu <hongjiu.lu@intel.com>
21772
21773 * ira.c (setup_cover_and_important_classes): Add enum cast.
21774
abcb15b5 217752009-04-24 Vladimir Makarov <vmakarov@redhat.com>
21776
21777 * genpreds.c (write_enum_constraint_num): Output definition of
21778 CONSTRAINT_NUM_DEFINED_P macro.
21779 * ira.c (setup_cover_and_important_classes): Use
21780 CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
f6c8c8fc 21781
d14bd725 217822009-04-24 DJ Delorie <dj@redhat.com>
21783
21784 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
21785 __SH2A_SINGLE_ONLY__ also.
21786
e41d35a8 217872009-04-24 Steve Ellcey <sje@cup.hp.com>
21788
21789 * config/ia64/ia64.md (movfs_internal): Allow flt constants.
21790 (movdf_internal): Ditto.
21791 * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
21792 SFmode and DFmode constants.
21793 (ia64_print_operand): Add 'G' format for printing
21794 floating point constants.
21795
458e27ec 217962009-04-24 Richard Guenther <rguenther@suse.de>
21797
21798 * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
21799 from unsigned additions.
21800
88c32270 218012009-04-24 Joseph Myers <joseph@codesourcery.com>
21802
21803 * c-typeck.c (set_init_index): Allow array designators that are
21804 not integer constant expressions with a pedwarn if pedantic.
21805
c79d4a4d 218062009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
21807
21808 * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
21809 zero if no overlap in nonzero bits between the operands.
21810
8458f4ca 218112009-04-24 Ian Lance Taylor <iant@google.com>
21812
21813 * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
21814 (record_dead_and_set_regs): Likewise.
21815 * df.h (struct df_mw_hardreg): Change flags field to int.
21816 (struct df_base_ref): Likewise.
21817 (struct df): Change changeable_flags field to int.
21818 * df-scan.c (df_defs_record): Change clobber_flags to int.
21819 * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
21820 constants rather than #define macros.
21821 (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
21822 (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
21823 (enum dwarf_calling_convention): Likewise.
21824 (enum dwarf_line_number_x_ops): Likewise.
21825 (enum dwarf_call_frame_info): Likewise.
21826 (enum dwarf_source_language): Likewise.
21827 * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
21828 (add_calling_convention_attribute): Likewise.
6cc62ffa 21829 * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
21830 (combine_comparisons): Change compcode to int. Add cast to enum type.
8458f4ca 21831 * genrecog.c (maybe_both_true_2): Change c to int.
21832 (write_switch): Likewise. Add cast to enum type.
21833 * gimplify.c (gimplify_omp_for): Handle return values from
21834 gimplify_expr using MIN rather than bitwise or.
21835 (gimplify_expr): Add cast to enum type.
21836 * ipa-prop.c (update_jump_functions_after_inlining): Change
21837 IPA_BOTTOM to IPA_JF_UNKNOWN.
6cc62ffa 21838 * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
21839 Add casts to enum type.
8458f4ca 21840 (setup_cover_and_important_classes): Change cl to int. Add casts
21841 to enum type.
21842 (setup_class_translate): Change cl and mode to int.
21843 (ira_init_once): Change mode to int.
21844 (free_register_move_costs): Likewise.
21845 (setup_prohibited_mode_move_regs): Add casts to enum type.
21846 * langhooks.c (add_builtin_function_common): Rework assertion that
21847 value fits bitfield.
21848 * mcf.c (add_fixup_edge): Change type parameter to edge_type.
21849 * omega.c (omega_do_elimination): Avoid math on enum types.
21850 * optabs.c (expand_vec_shift_expr): Remove casts to int.
21851 * opts.c (set_debug_level): Change 2 to enum constant. Use new
21852 int local to handle integral_argment value.
21853 * regmove.c (try_auto_increment): Change PUT_MODE to
21854 PUT_REG_NOTE_KIND.
21855 * reload.c (push_secondary_reload): Add casts to enum type.
21856 (secondary_reload_class, find_valid_class): Likewise.
21857 * reload1.c (emit_input_reload_insns): Likewise.
21858 * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
21859 * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
21860 * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
21861 constant.
21862 * tree.c (build_common_builtin_nodes): Add casts to enum type.
21863 * tree-complex.c (complex_lattice_t): Typedef to int rather than
21864 enum type.
21865 (expand_complex_libcall): Add casts to enum type.
21866 * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
21867 * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
21868 with ERROR_MARK, not NUM_TREE_CODES.
21869 (vect_create_epilog_for_reduction): Likewise.
21870 (vectorizable_reduction): Don't initialize epiloc_reduc_code.
6cc62ffa 21871 When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
8458f4ca 21872 * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
21873 enum machine_mode.
21874 * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
21875 vect_unused_in_loop. Change 0 to loop_vect.
6cc62ffa 21876 * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
8458f4ca 21877 * var-tracking.c (get_init_value): Change return type to enum
21878 var_init_status.
21879 * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
21880 * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
21881 arm_fp_model.
21882 (arm_override_options): Add casts to enum type.
21883 (arm_emit_tls_decoration): Likewise.
21884 * config/i386/i386.c (ix86_function_specific_restore): Add casts
21885 to enum type.
21886 * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
21887 * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
21888 * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
21889 enum type.
21890 * config/s390/s390.c (code_for_builtin_64): Change to array of
21891 enum insn_code.
21892 (code_for_builtin_31): Likewise.
21893 (s390_expand_builtin): Change code_for_builtin to enum insn_code
21894 const *.
21895 * config/sparc/sparc.c (sparc_override_options): Change value
21896 field in struct code_model to enum cmodel. In initializer change
21897 0 to NULL and add cast to enum type.
21898
21899 * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
21900 Change all callers. Issue a -Wc++-compat warning using
21901 lhs_origtype if necessary.
21902 (convert_for_assignment): Issue -Wc++-compat warnings about
21903 invalid conversions to enum type on assignment.
21904 * c-common.h (build_modify_expr): Update declaration.
21905
32e5e2b7 219062009-04-24 Nick Clifton <nickc@redhat.com>
21907
21908 * config/iq2000/iq2000.c (function_arg): Handle TImode values.
21909 (function_arg_advance): Likewise.
21910 * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
21911 5th alternative.
21912
99908681 219132009-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
21914
21915 * config/s390/constraints.md ('I', 'J'): Fix condition.
21916
2cf7126c 219172009-04-24 Diego Novillo <dnovillo@google.com>
21918
21919 * gengtype-parse.c (parse_error): Add newline after message.
21920
e69a64d3 219212009-04-24 H.J. Lu <hongjiu.lu@intel.com>
21922
21923 * config/i386/sse.md (avxmodesuffixs): Removed.
21924 (*avx_pinsr<avxmodesuffixs>): Renamed to ...
21925 (*avx_pinsr<ssevecsize>): This.
21926
3a40262c 219272009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
21928
21929 * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
21930 follow chains of regs with a single definition, and allow expressions
21931 that are function_invariant_p.
cf36214f 21932 (simple_rhs_p): Allow expressions that are function_invariant_p.
3a40262c 21933
00211027 219342009-04-24 Paolo Bonzini <bonzini@gnu.org>
21935
21936 PR middle-end/39867
21937 * fold-const.c (fold_cond_expr_with_comparison): When folding
21938 > and >= to MAX, make sure the MAX uses the same type as the
21939 comparison's operands.
21940
8a88222e 219412009-04-24 Nick Clifton <nickc@redhat.com>
21942
21943 * config/frv/frv.c (frv_frame_access): Do not use reg+reg
21944 addressing for DImode accesses.
21945 (frv_print_operand_address): Handle PLUS case.
6cc62ffa 21946 * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
8a88222e 21947
82d2c88b 219482009-04-24 Jakub Jelinek <jakub@redhat.com>
21949
21950 PR rtl-optimization/39794
21951 * alias.c (canon_true_dependence): Add x_addr argument.
21952 * rtl.h (canon_true_dependence): Adjust prototype.
21953 * cse.c (check_dependence): Adjust canon_true_dependence callers.
21954 * cselib.c (cselib_invalidate_mem): Likewise.
21955 * gcse.c (compute_transp): Likewise.
21956 * dse.c (scan_reads_nospill): Likewise.
21957 (record_store, check_mem_read_rtx): Likewise. For non-const-or-frame
21958 addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
21959 canon_base_addr of the group, plus optional offset.
21960 (struct group_info): Rename canon_base_mem to
21961 canon_base_addr.
21962 (get_group_info): Set canon_base_addr to canon_rtx of base, not
21963 canon_rtx of base_mem.
21964
670db79f 219652009-04-23 Paolo Bonzini <bonzini@gnu.org>
21966
21967 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
21968 Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
21969
c2233b46 219702009-04-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21971
21972 * config/spu/spu-builtins.h: Delete file.
21973
21974 * config/spu/spu.h (enum spu_builtin_type): Move here from
21975 spu-builtins.h.
21976 (struct spu_builtin_description): Likewise. Add GTY marker.
21977 Do not use enum spu_function_code or enum insn_code.
21978 (spu_builtins): Add extern declaration.
21979
21980 * config/spu/spu.c: Do not include "spu-builtins.h".
21981 (enum spu_function_code, enum spu_builtin_type_index,
21982 V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
21983 V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
21984 unsigned_V8HI_type_node, unsigned_V4SI_type_node,
21985 unsigned_V2DI_type_node): Move here from spu-builtins.h.
21986 (spu_builtin_types): Make static. Add GTY marker.
21987 (spu_builtins): Add extern declaration with GTY marker.
21988 Include "gt-spu.h".
21989
21990 * config/spu/spu-c.c: Do not include "spu-builtins.h".
21991 (spu_resolve_overloaded_builtin): Do not use spu_function_code.
21992 Check programmatically whether all parameters are scalar.
21993
21994 * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
21995
7fd3f504 219962009-04-23 Eric Botcazou <ebotcazou@adacore.com>
21997
21998 * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
21999 assignment from the constructor either if the target is volatile.
22000
3f8fde42 220012009-04-23 Daniel Jacobowitz <dan@codesourcery.com>
22002
22003 * config/arm/arm.md (insv): Do not share operands[0].
22004
6aa0a859 220052009-04-23 Nathan Sidwell <nathan@codesourcery.com>
22006
22007 * config/vxlib-tls.c (active_tls_threads): Delete.
22008 (delete_hook_installed): New.
22009 (tls_delete_hook): Don't delete the delete hook.
22010 (tls_destructor): Delete it here.
22011 (__gthread_set_specific): Adjust installing the delete hook.
22012 (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
22013 __gthread_leave_tsd_dtor_context.
22014
4043967f 220152009-04-23 Rafael Avila de Espindola <espindola@google.com>
22016
22017 * c-format.c (gcc_tdiag_char_table): Add support for %E.
22018
0a48089c 220192009-04-23 Uros Bizjak <ubizjak@gmail.com>
22020
22021 * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
22022 enum type.
22023 (alpha_rtx_costs): Ditto.
22024 (emit_unlikely_jump): Use add_reg_note.
22025 (emit_frame_store_1): Ditto.
22026 (alpha_expand_prologue): Ditto.
22027 (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
22028 * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
22029
5027f179 220302009-04-23 Nick Clifton <nickc@redhat.com>
22031
22032 * config/v850/v850.md (epilogue): Remove suppressed code.
22033 (return): Rename to return_simple and remove test of frame size.
22034 * config/v850/v850.c (expand_epilogue): Rename call to gen_return
22035 to gen_return_simple.
22036
f7eacde3 220372009-04-22 Jing Yu <jingyu@google.com>
22038
22039 PR testsuite/39781
22040 * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
22041
415528ef 220422009-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
22043
22044 PR C/31499
22045 * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
22046 and RECORD_TYPE/UNION_TYPE. When outputing the actual element and the
22047 value is a VECTOR_CST, the element type is the element type of the
22048 vector.
22049
146d70e9 220502009-04-22 DJ Delorie <dj@redhat.com>
22051
22052 * config/m32c/m32c.h: Update GTY annotations to new syntax.
22053
a7cf5bbf 220542009-04-22 Jakub Jelinek <jakub@redhat.com>
22055
22056 * alias.c (find_base_term): Move around LO_SUM case, so that
22057 CONST falls through into PLUS/MINUS handling.
22058
4377e55f 22059 PR c/39855
22060 * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
22061 into 0, use omit_one_operand.
22062
6632aeb5 220632009-04-23 Ben Elliston <bje@au.ibm.com>
22064
22065 * config/rs6000/linux-unwind.h (get_regs): Remove type
22066 puns. Change the type of `pc' to an array of unsigned ints and
22067 update all users. Constify frame24.
22068
6276c4d1 220692009-04-22 DJ Delorie <dj@redhat.com>
22070
22071 * config/m32c/m32c.c (m32c_special_page_vector_p): Move
22072 declarations before code.
22073 (current_function_special_page_vector): Likewise.
22074 (m32c_expand_insv): Silence a warning.
22075
943327c1 220762009-04-21 Taras Glek <tglek@mozilla.com>
fb1e4f4a 22077
22078 * alias.c: Update GTY annotations to new syntax.
22079 * basic-block.h: Likewise.
22080 * bitmap.h: Likewise.
22081 * c-common.h: Likewise.
22082 * c-decl.c: Likewise.
22083 * c-parser.c: Likewise.
22084 * c-pragma.c: Likewise.
22085 * c-tree.h: Likewise.
22086 * cfgloop.h: Likewise.
22087 * cgraph.h: Likewise.
22088 * config/alpha/alpha.c: Likewise.
22089 * config/arm/arm.h: Likewise.
22090 * config/avr/avr.h: Likewise.
22091 * config/bfin/bfin.c: Likewise.
22092 * config/cris/cris.c: Likewise.
22093 * config/darwin.c: Likewise.
22094 * config/frv/frv.c: Likewise.
22095 * config/i386/i386.c: Likewise.
22096 * config/i386/i386.h: Likewise.
22097 * config/i386/winnt.c: Likewise.
22098 * config/ia64/ia64.h: Likewise.
22099 * config/iq2000/iq2000.c: Likewise.
22100 * config/mips/mips.c: Likewise.
22101 * config/mmix/mmix.h: Likewise.
22102 * config/pa/pa.c: Likewise.
22103 * config/pa/pa.h: Likewise.
22104 * config/rs6000/rs6000.c: Likewise.
22105 * config/s390/s390.c: Likewise.
22106 * config/sparc/sparc.c: Likewise.
22107 * config/xtensa/xtensa.c: Likewise.
22108 * cselib.h: Likewise.
22109 * dbxout.c: Likewise.
22110 * dwarf2out.c: Likewise.
22111 * except.c: Likewise.
22112 * except.h: Likewise.
22113 * fixed-value.h: Likewise.
22114 * function.c: Likewise.
22115 * function.h: Likewise.
22116 * gimple.h: Likewise.
22117 * integrate.c: Likewise.
22118 * optabs.c: Likewise.
22119 * output.h: Likewise.
22120 * real.h: Likewise.
22121 * rtl.h: Likewise.
22122 * stringpool.c: Likewise.
22123 * tree-data-ref.c: Likewise.
22124 * tree-flow.h: Likewise.
22125 * tree-scalar-evolution.c: Likewise.
22126 * tree-ssa-address.c: Likewise.
22127 * tree-ssa-alias.h: Likewise.
22128 * tree-ssa-operands.h: Likewise.
22129 * tree.c: Likewise.
22130 * tree.h: Likewise.
22131 * varasm.c: Likewise.
22132 * varray.h: Likewise.
22133 * vec.h: Likewise.
0a48089c 22134 * coretypes.h: Do not define GTY macro if it is already defined.
fb1e4f4a 22135 * doc/gty.texi: Update GTY documentation to new syntax.
22136 * gengtype-lex.l: Enforce attribute-like syntax for GTY
22137 annotations on structs.
22138 * gengtype-parse.c: Likewise.
22139
57187d90 221402009-04-22 Mark Heffernan <meheff@google.com>
22141
0a48089c 22142 * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
57187d90 22143
30505192 221442009-04-22 Kazu Hirata <kazu@codesourcery.com>
22145
22146 * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
22147 where appropriate.
22148
922878f2 221492009-04-22 Kazu Hirata <kazu@codesourcery.com>
22150
22151 * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
22152 the same as a PLUS without a shift. Increase the cost of a
22153 CONST_INT in MULT.
22154
86931af8 221552009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22156
22157 * Makefile.in: Update dependencies.
0a48089c 22158 * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
86931af8 22159 * errors.h: Remove bogus comment about compatibility.
22160 (warning): Update declaration.
22161 * genautomata.c: Update all calls to warning.
22162 * gimple.c: Do not include errors.h. Include toplev.h.
22163 * tree-ssa-structalias.c: Do not include errors.h.
22164 * omega.c: Likewise.
22165 * tree-ssa-reassoc.c: Likewise.
22166 * config/spu/spu-c.c: Likewise.
22167 * config/spu/t-spu-elf: Update dependencies.
22168
65c463fd 221692009-04-22 Richard Guenther <rguenther@suse.de>
22170
22171 PR tree-optimization/39824
22172 * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
22173 make sure the types are compatible.
22174
ba99525e 221752009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22176
22177 PR c++/14875
22178 * c-common.c (c_parse_error): Take a token_flags parameter.
22179 Use token_type for the token type instead.
22180 Pass token_flags to cpp_type2name.
22181 * c-common.h (c_parse_error): Update declaration.
22182 * c-parser.c (c_parser_error): Pass 0 as token flags.
22183
a7dc303d 221842009-04-22 Andrey Belevantsev <abel@ispras.ru>
22185
22186 PR rtl-optimization/39580
f6c8c8fc 22187 * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
22188
b2ee26d5 221892009-04-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22190
22191 * function.c (expand_function_end): Do not emit a jump to the "naked"
22192 return label for fall-through returns.
22193 * except.c (sjlj_emit_function_exit): Always place the call to the
22194 unregister function at the location installed by expand_function_end.
22195
51836a0c 221962009-04-22 Richard Guenther <rguenther@suse.de>
22197
22198 PR tree-optimization/39845
22199 * tree-switch-conversion.c (build_arrays): Add new referenced vars.
22200 (gen_inbound_check): Likewise.
22201
00159b45 222022009-04-22 Nathan Sidwell <nathan@codesourcery.com>
22203
22204 * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
22205 padding for PPC.
22206 (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
22207 * config/vxlib.c (__gthread_once): Add race guard for PPC.
22208
adb906e2 222092009-04-22 Paolo Bonzini <bonzini@gnu.org>
22210
22211 * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
22212 sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
22213 shift counts to avoid out-of-bounds array accesses.
22214
57a9e496 222152009-04-22 Paolo Bonzini <bonzini@gnu.org>
22216
22217 * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
22218 (Pmode): Move above.
22219
c933fb42 222202009-04-22 Uros Bizjak <ubizjak@gmail.com>
22221
22222 * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
22223 NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
22224 GET_CODE macro. Use IN_RANGE macro where appropriate.
22225 * config/alpha/alpha.h: Ditto.
22226 * config/alpha/alpha.md: Ditto.
22227 * config/alpha/constraints.md: Ditto.
22228 * config/alpha/predicates.md: Ditto.
f6c8c8fc 22229
91e9f690 222302009-04-22 Paolo Bonzini <bonzini@gnu.org>
22231
22232 * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
22233 * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22234 * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22235 * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22236 * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22237 * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22238 * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22239 * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22240 * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22241 * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22242 * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22243 * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22244 * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22245 * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22246 * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22247 * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22248 * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22249 * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22250 * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22251 * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22252 * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22253 * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22254 * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22255 * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22256 * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22257 * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22258 * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22259
2ea77971 222602009-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
22261
22262 * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
22263 references from comments.
d603963f 22264 * cfgbuild.c (count_basic_blocks): Delete.
2ea77971 22265 (find_basic_blocks_1): Delete.
22266 (find_basic_blocks): Delete.
22267 * except.c (finish_eh_generation): Make static. Move comment from
c933fb42 22268 except.h here. Remove find_basic_blocks references from comments.
2ea77971 22269 * except.h (finish_eh_generation): Delete.
22270 * basic-block.h (find_basic_blocks): Delete.
22271 * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
22272
46b5e7dc 222732009-04-22 Dave Korn <dave.korn.cygwin@gmail.com>
22274
22275 * sdbout.c (sdbout_symbol): Pass VOIDmode to eliminate_regs.
22276 (sdbout_parms): Likewise.
22277
6f2543f8 222782009-04-21 Kaz Kojima <kkojima@gcc.gnu.org>
22279
22280 * config/sh/sh.c (prepare_cbranch_operands): Use
22281 LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
22282 (expand_cbranchdi4): Likewise.
22283 (from_compare): Add cast to enum type.
22284 (expand_cbranchsi4): Use add_reg_note.
22285 (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
22286 (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
22287 (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
22288 (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
22289 * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
22290 instead of CODE_FOR_nothing.
22291 (cbranchdi4): Likewise. Fix the order of arguments for
22292 gen_rtx_fmt_ee.
22293 (push_fpscr): Use add_reg_note.
22294 (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
22295 reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
f6c8c8fc 22296
7dfbd804 222972009-04-21 Joseph Myers <joseph@codesourcery.com>
22298
22299 * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
22300 ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
22301 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
22302 ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
22303 ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
22304 FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
22305 config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
22306 config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
22307 config/alpha/x-vms, config/arc/t-arc,
22308 config/arm/README-interworking, config/arm/arm-c.c,
22309 config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
22310 config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
22311 config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
22312 config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
22313 config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
22314 config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
22315 config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
22316 config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
22317 config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
22318 config/cris/t-elfmulti, config/crx/t-crx,
22319 config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
22320 config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
22321 config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
22322 config/h8300/t-h8300, config/i386/athlon.md,
22323 config/i386/darwin-libgcc.10.4.ver,
22324 config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
22325 config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
22326 config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
22327 config/i386/t-linux64, config/i386/t-nwld,
22328 config/i386/t-rtems-i386, config/i386/t-sol2-10,
22329 config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
22330 config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
22331 config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
22332 config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
22333 config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
22334 config/iq2000/t-iq2000, config/libgcc-glibc.ver,
22335 config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
22336 config/m32r/t-m32r, config/m68hc11/t-m68hc11,
22337 config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
22338 config/m68k/t-uclinux, config/mcore/t-mcore,
22339 config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
22340 config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
22341 config/mips/crtn.asm, config/mips/irix-crti.asm,
22342 config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
22343 config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
22344 config/mips/mips-fixed.md, config/mips/sb1.md,
22345 config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
22346 config/mips/t-iris6, config/mips/t-isa3264,
22347 config/mips/t-libgcc-mips16, config/mips/t-linux64,
22348 config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
22349 config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
22350 config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
22351 config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
22352 config/mn10300/t-linux, config/mn10300/t-mn10300,
22353 config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
22354 config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
22355 config/picochip/libgccExtras/clzsi2.asm,
22356 config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
22357 config/rs6000/darwin-libgcc.10.4.ver,
22358 config/rs6000/darwin-libgcc.10.5.ver,
22359 config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
22360 config/rs6000/t-aix43, config/rs6000/t-aix52,
22361 config/rs6000/t-darwin, config/rs6000/t-fprules,
22362 config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
22363 config/rs6000/t-lynx, config/rs6000/t-netbsd,
22364 config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
22365 config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
22366 config/rs6000/t-rtems, config/rs6000/t-spe,
22367 config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
22368 config/score/t-score-elf, config/sh/divcost-analysis,
22369 config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
22370 config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
22371 config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
22372 config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
22373 config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
22374 config/stormy16/stormy-abi, config/stormy16/t-stormy16,
22375 config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
22376 config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
22377 config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
22378 config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
22379 config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
22380 gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
22381 java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
22382 limitx.h, version.c, xcoff.h: Add copyright and license notices.
22383 * config/h8300/genmova.sh: Include copyright and license notices
22384 in generated output.
22385 * config/h8300/mova.md: Regenerate.
22386 * doc/install.texi2html: Include word "Copyright" in copyright
22387 notice and use name "Free Software Foundation, Inc.".
22388 * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
22389 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
22390 ChangeLog-2007, ChangeLog-2008: Correct dates.
22391
43158006 223922009-04-21 Eric Botcazou <ebotcazou@adacore.com>
22393
22394 * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
22395 NE_EXPR operations as well.
22396 * c-parser.c (c_parser_condition): Do not set location information on
22397 the condition.
22398 (c_parser_conditional_expression): Likewise.
22399 (c_parser_binary_expression): Set location information on operators.
22400 * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
22401 TRUTH_NOT_EXPR has been folded.
22402 * fold-const.c (fold_truth_not_expr): Copy location information from
22403 the incoming expression to the outgoing one.
22404 * gimplify.c (shortcut_cond_r): Add locus parameter. Pass it to
22405 recursive calls on the LHS of the operator but pass that of the
22406 operator to recursive calls on the RHS of the operator. Set it
22407 on the COND_EXPR.
22408 (shortcut_cond_expr): Set the locus of the operator on the second
22409 COND_EXPR and that of the expression on the first in degenerate cases.
22410 Pass the locus of the expression to calls to shortcut_cond_r.
22411 Set the locus of the 'then' block on the associated jump, if any.
22412 (gimplify_boolean_expr): Add locus parameter. Set it on the COND_EXPR.
22413 (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
22414 expression to call to gimplify_boolean_expr.
22415
72f432d4 224162009-04-21 Kai Tietz <kai.tietz@onevision.com>
22417
22418 * config.gcc: Add additional configuration for
22419 i686-w64-mingw* and x86_64-w64-mingw* triplet.
22420 * config/i386/mingw-w64.h: New mingw-w64 specific header.
22421 (CPP_SPEC): Redefine for allowing -municode option.
22422 (STARTFILE_SPEC): Likewise.
22423 * config/i386/t-mingw-w64: New.
22424 * config/i386/mingw-w64.opt: New.
22425 (municode): Add new target option.
22426 * doc/invoke.texi (municode): Add documentation for new option.
22427
da84efc1 224282009-04-21 Ian Lance Taylor <iant@google.com>
22429
22430 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
22431 Correct test for number of arguments.
22432 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
22433
89871bab 224342009-04-21 Andreas Schwab <schwab@linux-m68k.org>
22435
22436 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
22437 argument of emit_library_call.
22438
be1b4133 224392009-04-21 Richard Guenther <rguenther@suse.de>
22440
22441 PR middle-end/39829
22442 * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
22443 inside VIEW_CONVERT_EXPRs.
22444
f6ac75a7 224452009-04-21 Martin Jambor <mjambor@suse.cz>
22446
22447 * tree-switch-conversion.c (build_constructors): Split a long line.
22448 (constructor_contains_same_values_p): New function.
c933fb42 22449 (build_one_array): Create assigns of constants if possible, do not
22450 call mark_sym_for_renaming, call update_stmt.
f6ac75a7 22451 (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
22452 make_rename_temp. Do not call mark_symbols_for_renaming, call
22453 update_stmt.
22454 (gen_def_assigns): Do not call mark_symbols_for_renaming or
22455 find_new_referenced_vars, call update_stmt.
22456 (gen_inbound_check): Use create_tmp_var and create ssa names manually
22457 instead of calling make_rename_temp. Do not call
22458 find_new_referenced_vars or mark_symbols_for_renaming, call
22459 update_stmt.
22460
80a26b8b 224612009-04-21 Richard Guenther <rguenther@suse.de>
22462
22463 PR tree-optimization/39827
c933fb42 22464 * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
80a26b8b 22465 (tree_ssa_phiprop): Pass the correct array size.
22466
8734914d 224672009-04-21 Uros Bizjak <ubizjak@gmail.com>
22468
22469 * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
22470
79973b57 224712009-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
22472
22473 PR 16202
22474 * c-typeck.c (lvalue_p): Move declaration ...
22475 * c-common.h (lvalue_p): ... to here.
22476 * c-common.c (candidate_equal_p): New.
22477 (add_tlist): Use it.
22478 (merge_tlist): Use it.
22479 (warn_for_collisions_1): Likewise.
22480 (warning_candidate_p): Accept more candidates.
22481 (verify_tree): A warning candidate can be an expression. Use
22482 candidate_equal_p.
22483
e1483f71 224842009-04-21 Ben Elliston <bje@au.ibm.com>
22485
22486 PR target/5267
22487 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
22488 for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
22489 options. Remove -mcall-solaris documentation.
22490
9ab71c6b 224912009-04-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22492
22493 PR c++/13358
22494 * doc/invoke.texi (-Wlong-long): Update description.
22495 * c-lex (interpret_integer): Only warn if there was no previous
22496 overflow and -Wlong-long is enabled.
22497 * c-decl.c (declspecs_add_type): Drop redundant flags.
22498 * c.opt (Wlong-long): Init to -1.
22499 * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
22500 and front-end warn_long_long. Wlong-long only depends on other
22501 flags if it is uninitialized.
22502 * c-parser.c (disable_extension_diagnostics): warn_long_long is
22503 the same for CPP and FE.
22504 (restore_extension_diagnostics): Likewise.
22505
b9c74b4d 225062009-04-20 Ian Lance Taylor <iant@google.com>
22507
22508 Fix enum conversions which are invalid in C++:
8734914d 22509 * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
22510 * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
b9c74b4d 22511 * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
22512 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
8734914d 22513 * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
b9c74b4d 22514 (dbxout_parms): Likewise.
8734914d 22515 * df-core.c (df_set_flags): Change changeable_flags parameter to int.
b9c74b4d 22516 (df_clear_flags): Likewise.
22517 * df-problems.c (df_rd_bb_local_compute_process_def): Change
22518 top_flag parameter to int.
22519 (df_chain_create_bb_process_use): Likewise.
8734914d 22520 (df_chain_add_problem): Change chain_flags parameter to unsigned int.
22521 Remove cast.
b9c74b4d 22522 * df-scan.c (df_ref_create): Change ref_flags parameter to int.
22523 (df_ref_create_structure, df_def_record_1): Likewise.
22524 (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
22525 (df_notes_rescan): Change 0 to VOIDmode in function call.
22526 (df_get_call_refs, df_insn_refs_collect): Likewise.
22527 (df_bb_regs_collect): Likewise.
22528 (df_entry_block_defs_collect): Likewise.
22529 (df_exit_block_uses_collect): Likewise.
22530 * df.h: Update declarations.
22531 * double-int.c (double_int_divmod): Add cast to enum type.
22532 * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
22533 * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
22534 (based_loc_descr): Likewise.
22535 (loc_descriptor_from_tree_1): Change first_op and second_op to
22536 enum dwarf_location_atom. Add cast to enum type.
22537 * expmed.c (init_expmed): Change 0 to SET in function call.
8734914d 22538 * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
b9c74b4d 22539 (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
22540 (do_store_flag): Likewise.
22541 * fixed-value.h (struct fixed_value): Change mode to enum
22542 machine_mode.
8734914d 22543 * function.c (assign_parms): Change 0 to VOIDmode in function call.
b9c74b4d 22544 * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
22545 function call.
22546 (insert_insn_decl, insert_decl, insert_state): Likewise.
22547 (automata_list_finish): Likewise.
22548 * genrecog.c (process_define_predicate): Add cast to enum type.
22549 * gensupport.c (init_predicate_table): Add cast to enum type.
22550 * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
22551 function call.
22552 (gimple_build_call_1, gimple_build_label): Likewise.
22553 (gimple_build_goto, gimple_build_asm_1): Likewise.
22554 (gimple_build_switch_1, gimple_build_cdt): Likewise.
8734914d 22555 * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
b9c74b4d 22556 (enum fallback): Rename from enum fallback_t.
22557 (fallback_t): Typedef as int.
22558 * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
22559 GSI_SAME_STMT in function call.
22560 * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
22561 enum type.
22562 (setup_reg_class_relations): Likewise.
8734914d 22563 (setup_reg_class_nregs): Change cl to int. Add casts to enum type.
b9c74b4d 22564 (setup_prohibited_class_mode_regs): Add cast to enum type.
22565 (setup_prohibited_mode_move_regs): Likewise.
8734914d 22566 * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
b9c74b4d 22567 (record_address_regs): Change i to enum reg_class.
22568 * lists.c (alloc_EXPR_LIST): Add cast to enum type.
22569 * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
22570 (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
22571 (GET_MODE_2XWIDER_MODE): Likewise.
22572 (GET_CLASS_NARROWEST_MODE): Likewise.
22573 * omp-low.c (expand_omp_for): Add cast to enum type.
22574 * optabs.c (debug_optab_libfuncs): Add casts to enum type.
22575 * opts.c (enable_warning_as_error): Change kind to diagostic_t.
22576 * postreload.c (reload_cse_simplify_operands): Change rclass local
22577 to enum reg_class.
22578 * predict.c (combine_predictions_for_insn): Change best_predictor
22579 and predictor to enum br_predictor.
22580 (combine_predictions_for_bb): Likewise.
22581 (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
22582 use SET_PREDICT_EXPR_OUTCOME.
8734914d 22583 * real.c (real_arithmetic): Change icode to code in function call.
b9c74b4d 22584 * reginfo.c (init_move_cost): Add casts to enum type.
22585 (init_reg_sets_1, init_fake_stack_mems): Likewise.
22586 * regmove.c (regclass_compatible_p): Change class0 and class1 to
22587 enum reg_class.
22588 * reload.c (find_valid_class): Add casts to enum type.
22589 (push_reload): Change 0 to NO_REGS in function call.
22590 (find_reloads): Change this_alternative to array of enum
22591 reg_class. Remove some now-unnecessary casts.
22592 (make_memloc): Change 0 to VOIDmode in function call.
22593 * reload1.c (reload): Change 0 to VOIDmode in function call.
22594 (eliminate_regs_1, elimination_effects): Likewise.
22595 (eliminate_regs_in_insn): Likewise.
22596 (emit_input_reload_insns): Add cast to enum type.
22597 (delete_output_reload): Change 0 to VOIDmode in function call.
22598 * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
22599 to enum type in function call.
22600 * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
22601 (SET_PREDICT_EXPR_OUTCOME): Define.
8734914d 22602 * tree-dump.c (get_dump_file_info): Change phase parameter to int.
b9c74b4d 22603 (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
22604 (dump_initialized_p, dump_flag_name, dump_end): Likewise.
22605 (dump_function): Likewise.
22606 * tree-dump.h: Update declarations.
22607 * tree-pass.h: Update declarations.
22608 * varasm.c (assemble_integer): Change mclass to enum mode_class.
22609 * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
22610 enum type.
22611 (arm_rtx_costs_1): Correct parenthesization.
22612 (arm_rtx_costs): Add casts to enum type.
22613 (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
22614 (vfp_emit_fstmd): Use add_rg_note.
22615 (emit_multi_reg_push, emit_sfm): Likewise.
22616 (thumb_set_frame_pointer): Likewise.
22617 (arm_expand_prologue): Likewise.
22618 (arm_regno_class): Change return type to enum reg_class.
22619 (thumb1_expand_prologue): Use add_reg_note.
22620 * config/arm/arm-protos.h (arm_regno_class): Update declaration.
22621 * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
22622 in function call.
22623 * config/arm/gentune.sh: Add cast to enum type.
22624 * config/arm/arm-tune.md: Rebuild.
22625 * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
22626 (ix86_split_fp_branch, predict_jump): Likewise.
22627 (ix86_expand_multi_arg_builtin): Change sub_code from enum
22628 insn_code to enum rtx_code.
22629 (ix86_builtin_vectorized_function): Add cast to enum type.
22630 * config/i386/i386.md (truncdfsf2): Change slot to enum
22631 ix86_stack_slot.
22632 (truncxf<mode>2, isinf<mode>2): Likewise.
22633 * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
22634 enum type.
22635 * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
22636 (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
22637 (insert_bundle_state): Change 1 to INSERT in function call.
22638 (ia64_add_bundle_selector_before): Likewise.
22639 * config/ia64/ia64.md (cpu attr): Add cast to enum type.
22640 (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
22641 (restore_stack_nonlocal): Likewise.
22642 * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
22643 function call.
22644 * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
22645 function call.
22646 (mips_rtx_costs): Likewise.
22647 (mips_override_options): Add casts to enum type.
22648 * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
22649 in function call.
22650 * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
22651 (store_reg, set_reg_plus_d): Likewise.
22652 (hppa_expand_prologue, hppa_profile_hook): Likewise.
22653 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
22654 cast to enum type.
22655 (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
22656 function call.
22657 (emit_unlikely_jump): Use add_reg_note.
22658 (rs6000_emit_allocate_stack): Likewise.
22659 (rs6000_frame_related, rs6000_emit_prologue): Likewise.
22660 (output_toc): Change 1 to INSERT in function call.
22661 (output_profile_hook): Change 0 to LCT_NORMAL in function call.
22662 (rs6000_initialize_trampoline): Likewise.
22663 (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
22664 function call.
22665 * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
22666 (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
22667 (s390_expand_setmem, s390_expand_cmpmem): Likewise.
22668 (save_gprs): Use add_reg_note.
22669 (s390_emit_prologue): Likewise.
8734914d 22670 (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
b9c74b4d 22671 * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
22672 (sparc_fold_builtin): Add cast to enum type.
22673 * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
22674 enum insn_code.
22675 (spu_expand_prologue): Use add_reg_note.
8734914d 22676 (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
b9c74b4d 22677
226782009-04-20 Ian Lance Taylor <iant@google.com>
22679
22680 * c-parser.c (c_parser_attributes): Change VEC back to tree list.
22681 (c_parser_postfix_expression_after_primary): Get VEC for list of
22682 arguments. Get original types of arguments. Call
22683 build_function_call_vec.
22684 (cached_expr_list_1, cached_expr_list_2): New static variables.
22685 (c_parser_expr_list): Change return type to VEC *. Add
22686 p_orig_types parameter. Change all callers.
22687 (c_parser_release_expr): New static function.
22688 (c_parser_vec_to_tree_list): New static function.
22689 * c-typeck.c (build_function_call): Rewrite to build a VEC and
22690 call build_function_call_vec.
22691 (build_function_call_vec): New function, based on old
22692 build_function_call.
22693 (convert_arguments): Remove nargs and argarray parameters. Change
22694 values to a VEC. Add origtypes parameter.
8734914d 22695 (build_modify_expr): Add rhs_origtype parameter. Change all callers.
b9c74b4d 22696 (convert_for_assignment): Add origtype parameter. Change all
22697 callers. If warn_cxx_compat, check for conversion to an enum
22698 type when calling a function.
22699 (store_init_value): Add origtype parameter. Change all callers.
22700 (digest_init): Likewise.
22701 (struct init_node): Add origtype field.
22702 (add_pending_init): Add origtype parameter. Change all callers.
22703 (output_init_element): Likewise.
22704 (output_pending_init_elements): Pass origtype from init_node to
22705 output_init_element.
4ebc3d57 22706 (process_init_element): Pass origtype from c_expr to
b9c74b4d 22707 output_init_element.
22708 (c_finish_return): Add origtype parameter. Change all callers.
22709 * c-common.c (sync_resolve_size): Change params to VEC *. Change
22710 caller.
22711 (sync_resolve_params): Likewise.
8734914d 22712 (sync_resolve_return): Change params to first_param. Change caller.
b9c74b4d 22713 (resolve_overloaded_builtins): Change params to VEC *. Change
8734914d 22714 callers. Save first parameter around call to build_function_call_vec.
b9c74b4d 22715 * c-decl.c (finish_decl): Add origtype parameter. Change all
22716 callers. Call build_function_call_vec rather than
22717 build_function_call for cleanup.
22718 * c-tree.h: Update declarations.
22719 * c-common.h: Update declarations.
22720 * stub-objc.c (objc_rewrite_function_call): Change parameter from
22721 params to first_param.
22722 * target.h (struct gcc_target): Change resolve_overloaded_builtin
22723 params parameter from tree to void *.
22724 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
22725 Change arglist parameter to have type void *, and to be a pointer
22726 to a VEC.
22727 * config/rs6000/rs6000-protos.h
22728 (altivec_resolve_overloaded_builtin): Update declaration.
22729 * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
22730 fnargs parameter to have type void *, and to be a pointer to a
22731 VEC. Call build_function_call_vec instead of
22732 build_function_call.
8734914d 22733 * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
b9c74b4d 22734
6df553fd 227352009-04-20 Joey Ye <joey.ye@intel.com>
943327c1 22736 Xuepeng Guo <xuepeng.guo@intel.com>
6df553fd 22737 H.J. Lu <hongjiu.lu@intel.com>
22738
22739 * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
22740
22741 * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
22742 (IX86_LEA_PRIORITY): Likewise.
22743 (distance_non_agu_define): New function.
22744 (distance_agu_use): Likewise.
22745 (ix86_lea_for_add_ok): Likewise.
22746 (ix86_dep_by_shift_count): Likewise.
22747
22748 * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
22749 should split for LEA.
22750
22751 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
22752 function.
22753 (ix86_dep_by_shift_count): Likewise.
22754
a174b54d 227552009-04-20 Richard Guenther <rguenther@suse.de>
22756
22757 * expr.c (handled_component_p): Move ...
22758 * tree.h (handled_component_p): ... here.
22759 * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
22760 ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
22761 and REALPART_EXPR to be in one group.
22762
59f3ea59 227632009-04-20 Richard Guenther <rguenther@suse.de>
22764
22765 * basic-block.h (get_all_dominated_blocks): Declare.
22766 * dominance.c (get_all_dominated_blocks): New function.
22767 * tree-cfg.c (get_all_dominated_blocks): Remove.
22768 (remove_edge_and_dominated_blocks): Adjust.
22769 * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
22770 (tree_ssa_phiprop): ... here. Use get_all_dominated_blocks
22771 instead of recursing.
22772
13f90d63 227732009-04-20 Doug Kwan <dougkwan@google.com>
22774
22775 * cgraph.h (cgraph_node_ptr): New type for vector functions.
22776 (struct cgraph_node_set_def): New type.
22777 (cgraph_node_set) New type. Also declare vector functions.
22778 (struct cgraph_node_set_element_def): New type.
22779 (cgraph_node_set_element): Ditto.
22780 (cgraph_node_set_iterator): New iterator type.
22781 (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
22782 cgraph_node_set_remove, dump_cgraph_node_set,
22783 debug_cgraph_node_set): New prototypes.
22784 (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
22785 cgraph_node_set_size): New inlines.
22786 * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
22787 including cgraph.h.
22788 (struct ipa_opt_pass): Add struct cgraph_node_set_def
22789 argument to function 'write_summary'.
22790 * ipa.c: Include ggc.h.
22791 (hash_cgraph_node_set_element,
22792 eq_cgraph_node_set_element, cgraph_node_set_new,
22793 cgraph_node_set_add, cgraph_node_set_remove,
22794 cgraph_node_set_find, dump_cgraph_node_set,
22795 debug_cgraph_node_set): New functions.
22796 * Makefile.in (ipa.o): Add dependency on GGC_H.
22797
1065dd4e 227982009-04-20 Ira Rosen <irar@il.ibm.com>
22799
22800 PR tree-optimization/39675
89871bab 22801 * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
8734914d 22802 check of the return code of vect_schedule_slp. Check that
22803 stmt_vec_info still exists for the statement, before checking its
22804 vectorization type.
1065dd4e 22805
ae381971 228062009-04-20 Michael Matz <matz@suse.de>
22807
22808 * Makefile.in (generated_files): Take out $(simple_generated_c).
22809
2e4b8e58 228102009-04-19 Dave Korn <dave.korn.cygwin@gmail.com>
22811
22812 * config/i386/cygwin-stdint.h (INTPTR_TYPE): Remove "long".
22813 (UINTPTR_TYPE): Likewise.
22814
fe49e588 228152009-04-19 Joseph Myers <joseph@codesourcery.com>
22816
22817 PR c/37481
22818 * c-typeck.c (digest_init): Check for initializing an array with a
22819 string literal.
22820
714c7dce 228212009-04-19 Joseph Myers <joseph@codesourcery.com>
22822
22823 PR c/19771
22824 * c-semantics.c (pop_stmt_list): Propagate
22825 STATEMENT_LIST_HAS_LABEL to parent statement list.
22826
287179e8 228272009-04-19 Adam Nemet <anemet@caviumnetworks.com>
22828
22829 * config/mips/mips.h (mips_tune_attr): New macro.
22830 * config/mips/mips.md (cpu): Use it.
22831
577f4774 228322009-04-19 Joseph Myers <joseph@codesourcery.com>
22833
22834 PR c/38243
22835 * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
22836 declaring a tag.
22837
9ed5b1f5 228382009-04-19 Diego Novillo <dnovillo@google.com>
22839
22840 * toplev.c (compile_file): Move call to coverage_finish ...
22841 * cgraphunit.c (ipa_passes): ... here.
22842 Call cgraph_process_new_functions.
22843 * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
22844 * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
22845
ecfab407 228462009-04-19 Jan Hubicka <jh@suse.cz>
22847
8734914d 22848 * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
22849 cfun.
ecfab407 22850 (dump_cgraph_node): Dump can throw external flag.
22851 * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
22852
03033af4 228532009-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
22854
22855 PR c/32061
22856 PR c++/36954
22857 * doc/invoke.texi: Add -Wlogical-op to -Wextra.
22858 * common.opt (Wlogical-op): Move from here...
22859 * c.opt (Wlogical-op): ... to here.
22860 * c-typeck.c (parser_build_binary_op): Update call to
22861 warn_logical_operator.
22862 * c-opts.c (c_common_post_options): Enable warn_logical_op with
22863 extra_warnings.
22864 * c-common.c (warn_logical_op): Update.
22865 * c-common.h (warn_logical_op): Update declaration.
22866
d3e86ba4 228672009-04-19 Eric Botcazou <ebotcazou@adacore.com>
22868
22869 * tree.c (protected_set_expr_location): Fix formatting.
22870
d4e60318 228712009-04-18 Joseph Myers <joseph@codesourcery.com>
22872
22873 PR c/27676
22874 * c-typeck.c (readonly_warning): new.
22875 (build_unary_op, build_modify_expr): Use readonly_warning for
22876 storing into something readonly but not const-qualified.
22877
1b157e43 228782009-04-18 Joseph Myers <joseph@codesourcery.com>
22879
22880 PR c/22367
22881 * c-typeck.c (build_unary_op): Check for taking address of
22882 expression of type void.
22883
8f24e4bd 228842009-04-18 Joseph Myers <joseph@codesourcery.com>
22885
22886 PR c/35210
22887 * c-typeck.c (build_function_call): Check for calling a function
22888 with qualified void return types. Call require_complete_type when
22889 generating a trap.
22890
17b28e52 228912009-04-18 Jan Hubicka <jh@suse.cz>
22892
22893 * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
22894 Set nothrow flag.
22895 * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
22896 can_throw_external flag.
22897 * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
22898 * ipa-pure-const.c (ignore_edge): New function.
22899 (propagate): Compute order for NOTHROW computation; set NOTHROWs
22900 only over can_throw_external edges.
22901 (local_pure_const): Add nothrow flag.
22902 * ipa-utils.c (searchc): Add ignore_edge callback.
22903 (ipa_utils_reduced_inorder): Add ignore_edge callback.
22904 * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
22905 (set_nothrow_function_flags): Update cgraph.
22906 * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
22907
1c03e359 229082009-04-18 Richard Guenther <rguenther@suse.de>
22909
22910 PR middle-end/39804
22911 * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
22912 (fold_stmt): ... this and ...
22913 (fold_stmt_inplace): ... this.
22914 (fold_stmt_1): Fold references in calls and asms.
22915 * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
22916
8a6bbf30 229172009-04-18 Kazu Hirata <kazu@codesourcery.com>
22918
22919 * tree-vrp.c (ssa_name_nonzero_p): Remove.
22920 * tree.h: Remove the prototype for ssa_name_nonzero_p.
22921
32234224 229222009-04-18 Kazu Hirata <kazu@codesourcery.com>
22923
22924 * tree.c (function_args_count): Remove.
22925 * tree.h: Remove the prototype for function_args_count.
22926
c58db4b7 229272009-04-18 Kazu Hirata <kazu@codesourcery.com>
22928
22929 * tree-iterator.c (expr_only): Remove.
22930 * tree.h: Remove the prototype for expr_only.
22931
404acb5b 229322009-04-18 Kazu Hirata <kazu@codesourcery.com>
22933
22934 * reginfo.c (cannot_change_mode_set_regs): Remove.
22935 * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
22936
5a07d305 229372009-04-08 Anatoly Sokolov <aesok@post.ru>
22938
22939 * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
22940 whether operands 0 and 1 overlaps.
22941
496ffe87 229422009-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
22943
22944 PR middle-end/36902
22945 * tree-vrp.c (check_array_ref): Pass a location_t instead of a
22946 pointer. Use warning_at instead of warning.
22947 (search_for_addr_array): Likewise.
22948 (check_array_bounds): Likewise.
22949 (check_all_array_refs): Check that the incoming edge is not in the
22950 list of edges to be removed.
22951 (check_all_array_refs): Avoid the temporal pointer.
22952 (vrp_visit_cond_stmt): Fix typo.
22953 (simplify_switch_using_ranges): Handle the case where the switch
22954 index is an integer constant.
22955
f846b2e1 229562009-04-18 Adam Nemet <anemet@caviumnetworks.com>
22957
22958 * config/mips/mips.c (mips_final_postscan_insn): Make it static.
22959
d270ac20 229602009-04-18 Kazu Hirata <kazu@codesourcery.com>
22961
22962 * doc/extend.texi, doc/invoke.texi: Fix typos.
22963
3085aa6d 229642009-04-17 Cary Coutant <ccoutant@google.com>
22965
22966 * tree-flow-inline.h (get_lineno): Fix inverted test.
22967
d47f59f6 229682009-04-17 Diego Novillo <dnovillo@google.com>
22969
22970 * tree-ssa-pre.c (create_expression_by_pieces): Remove
22971 assertion for AVAIL_OUT.
22972
cea9fc42 229732009-04-17 Mike Frysinger <vapier@gentoo.org>
22974
22975 PR target/38627
22976 * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
22977 * config/sh/linux-atomic.asm: Likewise.
22978
576cc2fe 229792009-04-17 Diego Novillo <dnovillo@google.com>
22980
22981 * except.c (debug_eh_tree): New.
22982 (struct eh_region, struct eh_status): Move ...
22983 * except.h: ... here.
22984 (add_type_for_runtime): Declare extern.
22985 (lookup_type_for_runtime): Likewise.
22986 (debug_eh_tree): Declare.
22987 * Makefile.in (GTFILES): List except.h before except.c
22988
8e5b4ed6 229892009-04-17 Diego Novillo <dnovillo@google.com>
22990
8734914d 22991 * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
8e5b4ed6 22992 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
22993 * tree-dfa.c (find_referenced_vars_in): Factor out of ...
22994 (find_vars_r): ... here.
22995 * tree-flow.h (find_referenced_vars_in): Declare.
22996 * tree-ssa-pre.c (create_expression_by_pieces): Assert
22997 that AVAIL_OUT exists for BLOCK.
22998 * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
22999 (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
23000 (tree-parloops.o): Likewise.
23001
132cae05 230022009-04-17 Simon Baldwin <simonb@google.com>
23003
23004 * toplev.c (default_tree_printer): Add handling for %E format.
23005
c6934f8a 230062009-04-17 Diego Novillo <dnovillo@google.com>
23007
8734914d 23008 * tree-pretty-print.c (dump_generic_node): Add break after
23009 TREE_BINFO handler. Handle COMPLEX_TYPE, REAL_TYPE and
23010 FIXED_POINT_TYPE. Handle NULL TREE_TYPEs. Handle METHOD_TYPE and
23011 FUNCTION_TYPE together. Call print_struct_decl when printing
23012 structures and TDF_SLIM is not given.
c6934f8a 23013 (print_struct_decl): Fix logic for detecting recursion.
23014
46782931 230152009-04-17 Rafael Avila de Espindola <espindola@google.com>
23016
23017 PR 31567
23018 * gcc.c (create_at_file): New.
23019 (compile_input_file_p): New.
23020 (do_spec_1): Use @args files for %i. Use create_at_file for %o.
23021 * main.c (main): Update call to toplev_main.
23022 * toplev.c (toplev_main): Change signature. Call expandargv.
23023 * toplev.h (toplev_main): Change signature.
23024
0bae362c 230252009-04-17 Eric Botcazou <ebotcazou@adacore.com>
23026
23027 * dwarf2out.c (field_byte_offset): Use the type size as the field size
23028 if the latter is not constant.
23029
9207eb25 230302009-04-17 David Edelsohn <edelsohn@gnu.org>
23031
23032 * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
23033
b26d0c9e 230342009-04-17 Eric Botcazou <ebotcazou@adacore.com>
23035
23036 * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
23037 * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
23038
af4c7413 230392009-04-17 Richard Guenther <rguenther@suse.de>
23040
23041 * tree-ssa-structalias.c (get_constraint_for_component_ref):
23042 Handle component references view-converting an invariant address.
23043
48a84cee 230442009-04-17 Adam Nemet <anemet@caviumnetworks.com>
23045
23046 * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
23047 TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
23048 TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
23049 TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
23050 Use @deftypevr rather than @deftypevar.
23051
8f0b877f 230522009-04-17 Richard Guenther <rguenther@suse.de>
23053
8734914d 23054 * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
8f0b877f 23055 (get_prop_source_stmt): Likewise.
23056 (can_propagate_from): Likewise.
23057
f555bf81 230582009-04-17 Andrew Stubbs <ams@codesourcery.com>
23059
23060 * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
23061 TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
23062 (--with-multilib-list): Add default value.
23063 * configure: Regenerate.
23064 * Makefile.in (TM_ENDIAN_CONFIG): Define.
23065 (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
23066 * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
23067 TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
23068 Don't add default cpu to multilib list unnecessarily, but do enable
23069 the relevant compiler option..
23070 Add support for --with-multilib-list=<blank> and
23071 --with-multilib-list=!<somelib> to supress unwanted multilibs.
23072 * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
23073 (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
23074 (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
23075 TM_MULTILIB_CONFIG.
23076 (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
23077 (MULTILIB_OSDIRNAMES): New variable.
23078 * config/sh/t-1e: Delete file.
23079 * config/sh/t-mlib-sh1: Delete file.
23080 * config/sh/t-mlib-sh2: Delete file.
23081 * config/sh/t-mlib-sh2a: Delete file.
23082 * config/sh/t-mlib-sh2a-nofpu: Delete file.
23083 * config/sh/t-mlib-sh2a-single: Delete file.
23084 * config/sh/t-mlib-sh2a-single-only: Delete file.
23085 * config/sh/t-mlib-sh2e: Delete file.
23086 * config/sh/t-mlib-sh3e: Delete file.
23087 * config/sh/t-mlib-sh4: Delete file.
23088 * config/sh/t-mlib-sh4-nofpu: Delete file.
23089 * config/sh/t-mlib-sh4-single: Delete file.
23090 * config/sh/t-mlib-sh4-single-only: Delete file.
23091 * config/sh/t-mlib-sh4a: Delete file.
23092 * config/sh/t-mlib-sh4a-nofpu: Delete file.
23093 * config/sh/t-mlib-sh4a-single: Delete file.
23094 * config/sh/t-mlib-sh4a-single-only: Delete file.
23095 * config/sh/t-mlib-sh4al: Delete file.
23096 * config/sh/t-mlib-sh5-32media: Delete file.
23097 * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
23098 * config/sh/t-mlib-sh5-64media: Delete file.
23099 * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
23100 * config/sh/t-mlib-sh5-compact: Delete file.
23101 * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
23102 * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
23103 * doc/install.texi (Options specification): Add
23104 --with-multilib-list and --with-endian.
23105
c80cefd7 231062009-04-17 Rafael Avila de Espindola <espindola@google.com>
23107
23108 * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
23109 REVISION_c.
23110 (OBJS-common): Add plugin-version.o.
23111 (plugin-version.o): New.
23112 * gcc-plugin.h (plugin_gcc_version): New.
23113 (plugin_default_version_check): New.
23114 (plugin_init_func, plugin_init): Add version argument.
23115 * plugin-version.c: New.
23116 * plugin.c (str_plugin_gcc_version_name): New.
23117 (try_init_one_plugin): Read plugin_gcc_version from the plugin and
23118 pass it to the init function.
23119 (plugin_default_version_check): New.
23120
090a8c65 231212009-04-17 Richard Guenther <rguenther@suse.de>
23122
23123 * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
23124 for decl-vs-decl disambiguation.
23125
23911610 231262009-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
23127
23128 * config/s390/s390.h (s390_tune_attr): New macro definition.
23129 * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
23130
304557cd 231312009-04-17 Richard Guenther <rguenther@suse.de>
23132
23133 * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
23134 (fold_stmt_r): Likewise.
23135 (maybe_fold_reference): New function.
23136 (fold_gimple_assign): Handle cases fold_stmt_r did.
23137 (fold_stmt): Do not use fold_stmt_r.
23138 (fold_stmt_inplace): Likewise.
23139
912886f2 231402009-04-17 Richard Guenther <rguenther@suse.de>
23141
23142 * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
23143 (record_equivalences_from_stmt): Remove useless checks and
23144 simplifications.
23145 * tree-ssa-pre.c (eliminate): Avoid converting a constant if
23146 the type is already suitable.
23147
2d44789e 231482009-04-17 Paolo Bonzini <bonzini@gnu.org>
23149
23150 * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
23151
67225bb6 231522009-04-17 Uros Bizjak <ubizjak@gmail.com>
23153
23154 * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
23155 (CMPtype): Define as __gcc_CMPtype.
23156
09ec66c8 231572009-04-17 Aurelien Jarno <aurelien@aurel32.net>
23158
23159 * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
23160 for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
23161
7f7f16d4 231622009-04-17 Richard Guenther <rguenther@suse.de>
23163
23164 PR tree-optimization/39746
23165 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
23166 special-casing for builtins and static variable use/def.
23167 (call_may_clobber_ref_p_1): Likewise.
23168
0b1615c1 231692009-04-16 Ian Lance Taylor <iant@google.com>
23170
23171 * df.h: Include "timevar.h".
23172 (struct df_problem): Change tv_id field to timevar_id_t.
23173 * tree-pass.h: Include "timevar.h".
23174 (struct opt_pass): Change tv_id field to timevar_id_t.
23175 * timevar.h (timevar_id_t): Define TV_NONE.
23176 * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
23177 TV_NONE rather than tv_id != 0.
23178 (execute_one_pass): Likewise.
23179 * Makefile.in (DF_H): Add $(TIMEVAR_H).
23180 (TREE_PASS_H): Define. Change all instances of tree-pass.h in
23181 dependencies to $(TREE_PASS_H).
23182 * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
23183 to TV_NONE.
23184 (pass_branch_target_load_optimize2): Likewise.
23185 * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
23186 (pass_outof_cfg_layout_mode): Likewise.
23187 * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
23188 (pass_rebuild_cgraph_edges): Likewise.
23189 (pass_remove_cgraph_callee_edges): Likewise.
23190 * df-core.c (pass_df_initialize_opt): Likewise.
23191 (pass_df_initialize_no_opt): Likewise.
23192 (pass_df_finish): Likewise.
23193 * emit-rtl.c (pass_unshare_all_rtl): Likewise.
23194 * except.c (pass_set_nothrow_function_flags): Likewise.
23195 (pass_convert_to_eh_region_ranges): Likewise.
23196 * final.c (pass_compute_alignments): Likewise.
23197 * function.c (pass_instantiate_virtual_regs): Likewise.
23198 (pass_init_function): Likewise.
23199 (pass_leaf_regs): Likewise.
23200 (pass_match_asm_constraints): Likewise.
23201 * gimple-low.c (pass_lower_cf): Likewise.
23202 (pass_mark_used_blocks): Likewise.
23203 * init-regs.c (pass_initialize_regs): Likewise.
23204 * integrate.c (pass_initial_value_sets): Likewise.
23205 * ira.c (pass_ira): Likewise.
23206 * jump.c (pass_cleanup_barriers): Likewise.
23207 * omp-low.c (pass_expand_omp): Likewise.
23208 (pass_lower_omp): Likewise.
23209 * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
23210 * recog.c (pass_split_all_insns): Likewise.
23211 (pass_split_after_reload): Likewise.
23212 (pass_split_before_regstack): Likewise.
23213 (pass_split_before_sched2): Likewise.
23214 (pass_split_for_shorten_branches): Likewise.
23215 * reginfo.c (pass_reginfo_init): Likewise.
23216 (pass_subregs_of_mode_init): Likewise.
23217 (pass_subregs_of_mode_finish): Likewise.
23218 * passes.c (pass_postreload): Likewise.
23219 * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
23220 * tree-cfg.c (pass_remove_useless_stmts): Likewise.
23221 (pass_warn_function_return): Likewise.
23222 (pass_warn_function_noreturn): Likewise.
23223 * tree-complex.c (pass_lower_complex): Likewise.
23224 (pass_lower_complex_O0): Likewise.
23225 * tree-if-conv.c (pass_if_conversion): Likewise.
23226 * tree-into-ssa.c (pass_build_ssa): Likewise.
23227 * tree-mudflap.c (pass_mudflap_1): Likewise.
23228 (pass_mudflap_2): Likewise.
23229 * tree-nomudflap.c (pass_mudflap_1): Likewise.
23230 (pass_mudflap_2): Likewise.
23231 * tree-nrv.c (pass_return_slot): Likewise.
23232 * tree-object-size.c (pass_object_sizes): Likewise.
23233 * tree-optimize.c (pass_all_optimizations): Likewise.
23234 (pass_early_local_passes): Likewise.
23235 (pass_all_early_optimizations): Likewise.
23236 (pass_cleanup_cfg): Likewise.
23237 (pass_cleanup_cfg_post_optimizing): Likewise.
23238 (pass_free_datastructures): Likewise.
23239 (pass_free_cfg_annotations): Likewise.
23240 (pass_fixup_cfg): Likewise.
23241 (pass_init_datastructures): Likewise.
23242 * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
23243 (pass_late_warn_uninitialized): Likewise.
23244 (pass_update_address_taken): Likewise.
23245 * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
23246 * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
23247 (pass_cse_sincos): Likewise.
23248 (pass_convert_to_rsqrt): Likewise.
23249 * tree-ssa-structalias.c (pass_build_alias): Likewise.
23250 * tree-stdarg.c (pass_stdarg): Likewise.
23251 * tree-tailcall.c (pass_tail_recursion): Likewise.
23252 (pass_tail_calls): Likewise.
23253 * tree-vect-generic.c (pass_lower_vector): Likewise.
23254 (pass_lower_vector_ssa): Likewise.
23255 * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
23256
eb91c01f 232572009-04-16 Joseph Myers <joseph@codesourcery.com>
23258
23259 * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
23260 XLR entry.
23261 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
23262 Handle -march=xlr.
23263 * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
23264 logical and signext.
23265
52e95993 232662009-04-16 Kaz Kojima <kkojima@gcc.gnu.org>
23267
23268 PR target/39767
23269 * config/sh/predicates.md (arith_operand): Check if the operand
23270 of TRUNCATE is a REG.
23271
78eb54ad 232722009-04-16 Kazu Hirata <kazu@codesourcery.com>
23273
23274 * cfgrtl.c (delete_insn_chain_and_edges): Remove.
23275 * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
23276
c6faa3cc 232772009-04-16 Kazu Hirata <kazu@codesourcery.com>
23278
23279 * tree-iterator.c (tsi_split_statement_list_after,
23280 tsi_split_statement_list_before): Remove.
23281 * tree-iterator.h: Remove the prototypes for
09ec66c8 23282 tsi_split_statement_list_after and tsi_split_statement_list_before.
c6faa3cc 23283
248c5002 232842009-04-16 Kazu Hirata <kazu@codesourcery.com>
23285
23286 * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
23287 * tree-ssa-propagate.h: Remove the prototype for
23288 stmt_makes_single_load.
23289
b11af8ed 232902009-04-16 Kazu Hirata <kazu@codesourcery.com>
23291
23292 * emit-rtl.c (set_mem_attrs_from_reg): Remove.
23293 * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
23294
f94a1f5c 232952009-04-16 Kazu Hirata <kazu@codesourcery.com>
23296
23297 * tree-iterator.c (EXPR_LAST_BODY): Remove.
23298
6d546519 232992009-04-16 Kazu Hirata <kazu@codesourcery.com>
23300
23301 * except.c (eh_region_outer_p): Remove.
23302 * except.h: Remove the prototype for eh_region_outer_p.
23303
ee8f5f57 233042009-04-16 Kazu Hirata <kazu@codesourcery.com>
23305
23306 * function.c (current_function_assembler_name): Remove.
23307 * function.h: Remove the prototype for
23308 current_function_assembler_name.
23309
5859ee98 233102009-04-16 Ian Lance Taylor <iant@google.com>
23311
09ec66c8 23312 * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
5859ee98 23313 (add_reg_note): Call alloc_reg_note.
23314 * rtl.h (alloc_reg_note): Declare.
23315 * combine.c (try_combine): Use alloc_reg_note.
23316 (recog_for_combine, move_deaths): Likewise.
23317 (distribute_notes): Use alloc_reg_note and add_reg_note.
23318 * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
23319 * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
23320 * reload1.c (eliminate_regs_1): Use alloc_reg_note.
23321
8f6c49f5 233222009-04-16 Vladimir Makarov <vmakarov@redhat.com>
23323
23324 PR rtl-optimization/39762
23325 * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
23326 ira_may_move_out_cost): Add comments about way of their usage.
09ec66c8 23327 (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
89871bab 23328
8f6c49f5 23329 * ira-conflicts.c (process_regs_for_copy): Use function
23330 ira_get_register_move_cost instead of global
23331 ira_register_move_cost.
23332
23333 * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
23334 color_pass, move_spill_restore, update_curr_costs): Ditto.
23335
23336 * ira-lives.c (process_single_reg_class_operands): Ditto.
23337
23338 * ira-emit.c (emit_move_list): Ditto.
23339
23340 * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
23341 (record_reg_classes): Ditto. Use functions
23342 ira_get_register_move_cost and ira_get_may_move_cost instead of
23343 global vars ira_register_move_cost, ira_may_move_out_cost and
23344 ira_may_move_in_cost.
23345 (record_address_regs): Don't call ira_init_register_move_cost.
23346 Use function ira_get_may_move_cost instead of global
23347 ira_may_move_in_cost.
23348 (process_bb_node_for_hard_reg_moves): Use function
09ec66c8 23349 ira_get_register_move_cost instead of global ira_register_move_cost.
8f6c49f5 23350 (ira_costs): Don't call ira_init_register_move_cost.
89871bab 23351
3e10a823 233522009-04-16 Richard Guenther <rguenther@suse.de>
23353
23354 * tree-cfg.c (verify_gimple_assign_binary):
23355 Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
23356 * ipa-struct-reorg.c (gen_size): Fold the built expressions.
23357 (create_general_new_stmt): Note that this function is broken.
23358
2dfeb300 233592009-04-16 Rafael Avila de Espindola <espindola@google.com>
23360
23361 * common.opt (fhelp): Add Var(help_flag).
23362 * gcc-plugin.h (plugin_info): Add help.
23363 * plugin.c (plugin_name_args): Add help.
23364 (register_plugin_info): Set plugin->help.
23365 (print_help_one_plugin): New.
23366 (print_plugins_help): New.
23367 * plugin.h (print_plugins_help): New.
23368 * toplev.c (toplev_main): Call print_plugins_help if needed.
23369
6d5ec6f8 233702009-04-16 Richard Guenther <rguenther@suse.de>
23371
23372 * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
23373 (gimple_ior_addresses_taken_1): New function.
23374 (gimple_ior_addresses_taken): Likewise.
23375 * gimple.h (struct gimple_statement_with_ops_base): Remove
23376 addresses_taken member.
23377 (gimple_ior_addresses_taken): Declare.
23378 (gimple_addresses_taken, gimple_addresses_taken_ptr,
23379 gimple_set_addresses_taken): Remove.
23380 * ipa-reference.c (mark_address): New function.
23381 (scan_stmt_for_static_refs): Use it for marking addresses taken.
23382 * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
23383 (mark_address_taken): ... this. Just set TREE_ADDRESSABLE.
23384 (gimple_add_to_addresses_taken): Remove.
23385 (get_tmr_operands): Call mark_address_taken.
23386 (get_asm_expr_operands): Likewise.
23387 (get_expr_operands): Likewise.
23388 (build_ssa_operands): Do not clear the addresses_taken bitmap.
23389 (free_stmt_operands): Do not free it.
23390 * tree-ssa.c (delete_tree_ssa): Likewise.
23391 (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
23392
5ed0b345 233932009-04-16 Richard Guenther <rguenther@suse.de>
23394
23395 * gimple.h (walk_stmt_load_store_addr_ops): Declare.
23396 (walk_stmt_load_store_ops): Likewise.
23397 * gimple.c (get_base_loadstore): New function.
23398 (walk_stmt_load_store_addr_ops): Likewise.
23399 (walk_stmt_load_store_ops): Likewise.
23400 * ipa-pure-const.c (check_op): Simplify.
23401 (check_load, check_store): New functions.
23402 (check_stmt): Use walk_stmt_load_store_ops.
23403 * ipa-reference.c (mark_load): Adjust signature.
23404 (mark_store): Likewise.
23405 (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
23406
e16288b4 234072009-04-16 Rafael Avila de Espindola <espindola@google.com>
23408
23409 * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
23410 (plugin_info): New.
23411 * opts.c (common_handle_option): Don't call print_version.
23412 * plugin.c (plugin_name_args): Add version.
23413 (register_plugin_info): New.
23414 (register_callback): Handle PLUGIN_INFO.
23415 (try_init_one_plugin): New.
23416 (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
23417 if failed to init.
23418 (finalize_one_plugin): New.
23419 (finalize_plugins): New.
23420 (print_one_plugin): New.
23421 (print_plugins_versions): New.
23422 * plugin.h (print_plugins_versions): New.
23423 (finalize_plugins): New.
23424 * toplev.c (compile_file): Don't call initialize_plugins.
23425 (print_version): Call print_plugins_versions.
23426 (toplev_main): Call initialize_plugins. Print version if needed.
23427 Call finalize_plugins.
23428
39932bd2 234292009-04-16 Rafael Avila de Espindola <espindola@google.com>
23430
23431 * common.opt (fversion): New.
23432 * gcc.c (print_version): New.
23433 (process_command): Don't print the version. Just set print_version.
23434 (main): Print version. Call subprocesses if print_version and
23435 verbose_flag are set.
23436 * opts.c (common_handle_option): Handle OPT_fversion.
23437
1efcacec 234382009-04-16 Richard Guenther <rguenther@suse.de>
09ec66c8 23439 Ira Rosen <irar@il.ibm.com>
1efcacec 23440
23441 PR tree-optimization/39698
23442 * tree-vect-loop.c (get_initial_def_for_reduction): Use the
23443 type of the reduction variable. Only generate the def if
23444 it is needed.
23445
23446 * omp-low.c (expand_omp_for_generic): When converting to a pointer
23447 make sure to first convert to an integer of the same precision.
23448 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
23449 the type of the evolution correctly in computing the new
23450 induction variable base.
23451
3e40d86f 234522009-04-16 Richard Guenther <rguenther@suse.de>
23453
23454 PR middle-end/39625
23455 * tree-cfg.c (make_blocks): Split statements with to-be
23456 abnormal SSA names on the lhs.
23457
8d125f7d 234582009-04-16 Paolo Bonzini <bonzini@gnu.org>
23459
23460 * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
23461 Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
23462 * c-typeck.c (really_start_incremental_init): Likewise.
23463 * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
23464 (TARGET_INITIALIZER): Remove it.
23465 * target.h (struct target): Remove vector_opaque_p.
23466 * tree.c (build_opaque_vector_type): New.
23467 * tree.h (TYPE_VECTOR_OPAQUE): New.
23468 (build_opaque_vector_type): Declare.
23469 * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
23470 * config/rs6000/rs6000.c (build_opaque_vector_type,
23471 rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
23472 (rs6000_init_builtins): Use build_opaque_vector_type for
23473 opaque_V4SI_type_node.
23474
8d17cbdd 234752009-04-15 Catherine Moore <clm@codesourcery.com>
23476
09ec66c8 23477 * debug.h (set_name): Declare.
23478 * dwarf2out.c (dwarf2out_set_name): Declare.
23479 (dwarf2_debug_hooks): Add set_name.
23480 (find_AT_string): New.
23481 (add_AT_string): Call find_AT_string.
23482 (dwarf2out_set_name): New.
23483 * cp/decl.c (grokdeclarator): Call set_name.
23484 * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
23485 * debug.c (do_nothing_debug_hooks): Likewise.
23486 * dbxout.c (dbx_debug_hooks): Likewise.
23487 * sdbout.c (sdb_debug_hooks): Likewise.
8d17cbdd 23488
943327c1 234892009-04-15 Michael Eager <eager@eagercon.com>
2f267585 23490
09ec66c8 23491 * config/rs6000/rs6000.c (rs6000_function_value): Set function return
23492 reg for single-precision FPU.
23493 * config/rs6000/rs6000.md (movsi_internal1): Only for
23494 !TARGET_SINGLE_FPU.
23495 (movsi_internal1_single): New. Add pattern to move SI values to/from
2f267585 23496 single-precision FP regs.
23497
c821ef7d 234982009-04-15 Richard Guenther <rguenther@suse.de>
23499
23500 * omp-low.c (lower_rec_input_clauses): Build correct address
23501 expressions.
23502 (expand_omp_for_generic): Fix multiplication type.
09ec66c8 23503 * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
c821ef7d 23504 (generate_memset_zero): Fix types.
23505 * tree-profile.c (prepare_instrumented_value): Correctly
23506 widen a pointer.
23507
841fdaa6 235082009-04-15 Ian Lance Taylor <iant@google.com>
23509
23510 * c.opt (Wenum-compare): Enable for C and Objc. Initialize to -1.
23511 * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
23512 for -Wall and for -Wc++-compat.
23513 (c_common_post_options): For C++, set warn_enum_compare if not
23514 already set.
23515 * c-tree.h (struct c_expr): Add field original_type.
23516 (build_external_ref): Update declaration.
23517 * c-parser.c (c_parser_braced_init): Set original_type.
23518 (c_parser_initelt): Likewise.
23519 (c_parser_expr_no_commas): Likewise.
23520 (c_parser_conditional_expression): Likewise.
23521 (c_parser_cast_expression): Likewise.
23522 (c_parser_unary_expression): Likewise. Pull setting of
23523 original_code to top of function.
23524 (c_parser_sizeof_expression): Set original_type.
23525 (c_parser_alignof_expression): Likewise.
23526 (c_parser_postfix_expression): Likewise. Pull setting of
23527 original_code to top of function.
09ec66c8 23528 (c_parser_postfix_expression_after_paren_type): Set original_type.
841fdaa6 23529 (c_parser_postfix_expression_after_primary): Likewise.
23530 (c_parser_expression): Likewise.
23531 * c-typeck.c (build_external_ref): Add type parameter. Change all
23532 callers.
23533 (c_expr_sizeof_expr): Set original_type field.
23534 (parser_build_unary_op): Likewise.
23535 (parser_build_binary_op): Likewise. Optionally warn about
23536 comparisons of enums of different types.
23537 (digest_init): Set original_type field.
23538 (really_start_incremental_init): Likewise.
23539 (push_init_level, pop_init_level): Likewise.
23540 * doc/invoke.texi (Warning Options): -Wenum-compare now
23541 supported in C.
23542
d94bf438 235432009-04-15 Richard Guenther <rguenther@suse.de>
23544
23545 * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
23546 out a necessary conversion.
23547 * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
23548 names we didn't value number.
23549 * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
23550
4af351a8 235512009-04-15 Richard Guenther <rguenther@suse.de>
23552
23553 PR tree-optimization/39764
23554 * tree-ssa-ccp.c (get_value): Canonicalize value with
23555 canonicalize_float_value.
23556
02eb0b56 235572009-04-15 Jan Hubicka <jh@suse.cz>
23558
23559 * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
23560 Wrong version of patch.
23561
e522af1d 235622009-04-15 Jan Hubicka <jh@suse.cz>
23563
23564 * builtins.def (va_start, va_end, va_copy): Mark nothrow.
23565
bf8f9895 235662009-04-15 Nathan Sidwell <nathan@codesourcery.com>
23567
23568 * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
23569 our distinct integral and vector types.
23570
e50d7837 235712009-04-15 Rafael Avila de Espindola <espindola@google.com>
23572
23573 * class.c (build_vtbl_ref_1): Remove call to assemble_external.
23574 * init.c (build_vtbl_address): Remove call to assemble_external.
23575
1cc9c78b 235762009-04-14 Daniel Jacobowitz <dan@codesourcery.com>
23577
23578 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
23579 output for other floating point modes.
23580
dd2b35f1 235812009-04-14 Diego Novillo <dnovillo@google.com>
23582
23583 * diagnostic.c (diagnostic_report_diagnostic): Do not
23584 warn about loaded plugins for DK_ERROR and DK_WARNING.
23585 * c-decl.c (declspecs_add_type): Move call to
23586 invoke_plugin_callbacks ...
23587 * c-parser.c (c_parser_declspecs): ... here.
23588 * plugin.c (dump_active_plugins): Tidy output.
23589
9227b6fc 235902009-04-14 Diego Novillo <dnovillo@google.com>
23591 Le-Chun Wu <lcwu@google.com>
23592
23593 * configure.ac: Add --enable-plugin support.
23594 Define ENABLE_PLUGIN and PLUGINLIBS when specified.
23595 * Makefile.in (PLUGIN_H): Define.
23596 Export ENABLE_PLUGIN and GMPINC to site.exp.
23597 Add PLUGINLIBS to link command.
23598 Add/modify dependencies for plugin.o and files including plugin.h.
23599 (plugin.o): New.
23600 * config.in: Regenerate.
89871bab 23601
9227b6fc 23602 * opts.c (common_handle_option): Handle OPT_fplugin_ and
23603 OPT_fplugin_arg_.
23604
236052009-04-14 Le-Chun Wu <lcwu@google.com>
23606
23607 * tree-pass.h (register_one_dump_file): Add a prototype for
23608 register_one_dump_file.
23609 * toplev.c (compile_file): Call initialize_plugins.
23610 (do_compile): Call invoke_plugin_callbacks.
23611 (toplev_main): Call invoke_plugin_callbacks.
23612 * common.opt: Add -fplugin= and -fplugin-arg-.
23613 * gcc-plugin.h: New public header file for plugins to include.
23614 * plugin.c: New source file.
23615 * plugin.h: New internal header file.
23616 * passes.c (register_one_dump_file): Make it external.
89871bab 23617
9227b6fc 23618 * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
23619
236202009-04-14 Diego Novillo <dnovillo@google.com>
23621
23622 * doc/plugins.texi: New.
23623 * doc/gccint.texi: Add reference to Plugins chapter.
23624 * doc/invoke.texi: Document -fplugin and -fplugin-arg
23625 * diagnostic.c (diagnostic_report_diagnostic): Warn about
23626 loaded plugins, if any.
23627 * timevar.def (TV_PLUGIN_INIT): Define.
23628 (TV_PLUGIN_RUN): Define.
23629 * plugin.c: Include timevar.h
23630 (plugins_active_p): New.
23631 (dump_active_plugins): New.
23632 (debug_active_plugins): New.
23633
f3245e9d 236342009-04-14 Joseph Myers <joseph@codesourcery.com>
23635
23636 * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
23637 library paths.
23638 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
23639
222652cd 236402009-04-14 Kazu Hirata <kazu@codesourcery.com>
23641
23642 * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
23643 the same as a minus without a shift.
23644
11964566 236452009-04-14 Nick Clifton <nickc@redhat.com>
23646
23647 * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
23648 comparisons with small integers will always produce a short
23649 branch.
23650
318db53a 236512009-04-14 Rafael Avila de Espindola <espindola@google.com>
23652
23653 Merge:
318db53a 23654 2008-12-19 Diego Novillo <dnovillo@google.com>
23655
09ec66c8 23656 * cgraph.c (dump_cgraph_node): Show memory address of NODE.
318db53a 23657
7dfbd804 236582009-04-14 Richard Guenther <rguenther@suse.de>
87f9ffa4 23659
23660 * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
23661 verification.
23662 (verify_gimple_assign_binary): Likewise. Handle shifts and
23663 rotates correctly.
23664 (verify_gimple_phi): Print the mismatched argument position.
23665 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
23666 Fix types.
23667 (vect_update_init_of_dr): Likewise.
23668 * matrix-reorg.c (transform_access_sites): Do what the
23669 comment suggests.
23670 * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
23671
943327c1 236722009-04-13 Michael Eager <eager@eagercon.com>
b91a266c 23673
23674 * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
23675 _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
23676 * config/rs6000/xilinx.h: New. Spec for powerpc-xilinx-eabi
89871bab 23677 * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
b91a266c 23678 remove duplicate config
23679
bc6e5ec3 236802009-04-13 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
23681
23682 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
23683 file_name:line_number type locator of the call site.
89871bab 23684
48ca7187 236852009-04-13 Vladimir Makarov <vmakarov@redhat.com>
23686
23687 * genautomata.c: Put blank after comma.
23688 (automaton_decls): New.
23689 (struct unit_usage): Add comments to member next.
23690 (store_alt_unit_usage): Keep the list ordered.
23691 (unit_present_on_list_p, equal_alternatives_p): New.
23692 (check_regexp_units_distribution): Check units distribution
23693 correctness correctly.
23694 (main): Don't write automata if error is found. Return correct
23695 exit code.
89871bab 23696
48ca7187 23697 * config/m68k/cf.md (cfv4_ds): Remove.
23698 (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
23699 cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
23700
23701 * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
23702 power4-load-ext, power4-store, power4-store-update,
23703 power4-fpstore, power4-fpstore-update, power4-two, power4-three,
23704 power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
23705 power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
23706 power4-sqrt, power4-isync): Modify reservation to make correct
23707 unit distribution to automata.
23708
23709 * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
23710 power5-store-update, power5-two, power5-three, power5-lmul,
23711 power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
89871bab 23712
a883441f 237132009-04-13 Adam Nemet <anemet@caviumnetworks.com>
23714
23715 * except.c (pass_set_nothrow_function_flags): Set name and add
23716 TODO_dump_func.
23717 (set_nothrow_function_flags): Mention in the dump file when
23718 changing a function to nothrow.
23719
7ad9dc69 237202009-04-13 Ozkan Sezer <sezeroz@gmail.com>
23721
23722 PR/39066
23723 * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
23724 instead of unsigned long.
23725
d4fde4e2 237262009-04-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23727
a883441f 23728 * config/arm/arm.c (return_used_this_function): Remove.
23729 (arm_output_function_prologue): Remove use of
d4fde4e2 23730 return_used_this_function.
a883441f 23731 (output_return_instruction): Replace use of
d4fde4e2 23732 return_used_this_function
23733 by cfun->machine->return_used_this_function.
a883441f 23734 (arm_output_epilogue): Likewise.
23735 (arm_output_function_epilogue): Likewise.
23736 (thumb_unexpanded_epilogue): Likewise.
23737 * config/arm/arm.h (struct machine_function):
d4fde4e2 23738 New member return_used_this_function.
a883441f 23739
c65be9f5 237402009-04-12 Mark Mitchell <mark@codesourcery.com>
23741
23742 * doc/install.texi: Correct description of default directory for
23743 --with-gxx-include-dir.
23744
32cbeb74 237452009-04-12 Eric Botcazou <ebotcazou@adacore.com>
f2143b56 23746
23747 * fold-const.c (build_range_check): Properly deal with enumeral and
23748 boolean base types.
23749
d45a307d 237502009-04-12 Steven Bosscher <steven@gcc.gnu.org>
23751
23752 * doc/invoke.texi (max_gcse_passes): Remove documentation.
23753 * params.def (PARAM_MAX_GCSE_PASSES): Remove.
23754 * params.h (MAX_GCSE_PASSES): Remove.
23755 * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
23756 in sequence. Remove ability to run multiple passes.
23757 (bypass_jumps): Report run as third CPROP pass.
23758
80621b93 237592009-04-12 Adam Nemet <anemet@caviumnetworks.com>
23760
23761 PR middle-end/39651
23762 * except.c (can_throw_external): Look at each insn in a SEQUENCE
23763 when deciding whether the whole SEQUENCE can throw.
23764
ac89ce58 237652009-04-12 Uros Bizjak <ubizjak@gmail.com>
23766
23767 PR target/39740
23768 * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
23769 offseted label references.
23770
a8520ca4 237712009-04-11 Jan Hubicka <jh@suse.cz>
23772
23773 * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
23774
8ad54c54 237752009-04-11 Richard Guenther <rguenther@suse.de>
23776
23777 PR middle-end/39732
23778 * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
23779 return variables as TREE_ADDRESSABLE.
23780
8ecc6f01 237812009-04-11 Richard Guenther <rguenther@suse.de>
23782
23783 PR tree-optimization/39713
23784 * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
23785 reference trees have SSA_NAME operands.
23786
6f1afc19 237872009-04-11 Richard Guenther <rguenther@suse.de>
23788
23789 PR c/39712
23790 * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
23791 address expressions.
23792
99ff0267 237932009-04-11 Dave Korn <dave.korn.cygwin@gmail.com>
23794
23795 * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE): Update to
23796 match changes in Cygwin 1.7
23797 (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
23798 UINT_FAST16_TYPE, UINT_FAST32_TYPE): Likewise.
23799
390c1c3b 238002009-04-10 Paolo Bonzini <bonzini@gnu.org>
23801
23802 PR tree-optimization/39701
23803 * doc/invoke.texi (Optimization Options): Document change in
23804 meaning and initialization of -fdelete-null-pointer-checks.
23805
7df298fe 238062009-04-10 H.J. Lu <hongjiu.lu@intel.com>
23807
23808 PR middle-end/39701
23809 * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
23810
23811 * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
23812 here.
23813
23814 * doc/invoke.texi: Update -fdelete-null-pointer-checks.
23815
e6554c42 238162009-04-10 Chao-ying Fu <fu@mips.com>
23817
23818 * doc/tm.texi (Instruction Output): Document
23819 TARGET_ASM_FINAL_POSTSCAN_INSN.
23820 * target.h (final_postscan_insn): New field in asm_out.
23821 * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
23822 (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
23823 * final.c (final_scan_insn): Call
23824 targetm.asm_out.final_postscan_insn after outputting
23825 an asm macro and a normal instruction.
23826
23827 * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
23828 * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
23829 * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
23830 (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
23831 (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
23832
0f921b42 238332009-04-10 Paolo Bonzini <bonzini@gnu.org>
23834
23835 PR middle-end/39701
7df298fe 23836 * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
23837 variables as non-NULL even with -fdelete-null-pointer-checks.
0f921b42 23838
7d37c7ae 238392009-04-10 H.J. Lu <hongjiu.lu@intel.com>
23840
23841 * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
23842
2556f3ba 238432009-04-09 H.J. Lu <hongjiu.lu@intel.com>
23844
23845 PR target/39678
23846 * config/i386/i386.c (classify_argument): Handle SCmode with
23847 (bit_offset % 64) != 0.
23848
f3933af2 238492009-04-09 Sandra Loosemore <sandra@codesourcery.com>
23850
23851 * doc/invoke.texi (Optimize Options): Add cross-reference to
23852 -Q --help=optimizers examples.
23853
fa59234c 238542009-04-10 Ben Elliston <bje@au.ibm.com>
23855
23856 PR target/36800
23857 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
23858 regalign for the reg == fpr and TDmode case.
23859
2744a89f 238602009-04-09 David Ayers <ayers@fsfe.org>
23861
23862 PR objc/29200
23863 * objc/objc-act.c (warn_with_method): Remove helper function.
23864 (check_duplicates): Call warning and inform directly.
23865 (really_start_method): Likewise.
23866
dab963fb 238672009-04-09 Paolo Bonzini <bonzini@gnu.org>
23868
23869 * expmed.c (expand_divmod): Always use a comparison for a division
23870 by a large unsigned integer.
23871
7df298fe 23872 * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
23873 for things others than variables or functions as nonzero.
dab963fb 23874
6bc9506f 238752009-04-09 Nick Clifton <nickc@redhat.com>
23876
23877 * unwind-compat.c: Change copyright header to refer to version
23878 3 of the GNU General Public License with version 3.1 of the
23879 GCC Runtime Library Exception and to point readers at the
c72c72ef 23880 COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
6bc9506f 23881 * config/alpha/crtfastmath.c: Likewise.
23882 * config/alpha/linux-unwind.h: Likewise.
23883 * config/alpha/qrnnd.asm: Likewise.
23884 * config/alpha/vms-crt0-64.c: Likewise.
23885 * config/alpha/vms-crt0.c: Likewise.
23886 * config/alpha/vms-dwarf2.asm: Likewise.
23887 * config/alpha/vms-dwarf2eh.asm: Likewise.
23888 * config/alpha/vms-psxcrt0-64.c: Likewise.
23889 * config/alpha/vms-psxcrt0.c: Likewise.
23890 * config/alpha/vms_tramp.asm: Likewise.
23891 * config/arc/initfini.c: Likewise.
23892 * config/arc/lib1funcs.asm: Likewise.
23893 * config/arm/bpabi-v6m.S: Likewise.
23894 * config/arm/bpabi.S: Likewise.
23895 * config/arm/bpabi.c: Likewise.
23896 * config/arm/crti.asm: Likewise.
23897 * config/arm/crtn.asm: Likewise.
23898 * config/arm/ieee754-df.S: Likewise.
23899 * config/arm/ieee754-sf.S: Likewise.
23900 * config/arm/lib1funcs.asm: Likewise.
23901 * config/arm/libunwind.S: Likewise.
23902 * config/arm/linux-atomic.c: Likewise.
23903 * config/arm/mmintrin.h: Likewise.
23904 * config/arm/pr-support.c: Likewise.
23905 * config/arm/unaligned-funcs.c: Likewise.
23906 * config/arm/unwind-arm.c: Likewise.
23907 * config/arm/unwind-arm.h: Likewise.
23908 * config/avr/libgcc.S: Likewise.
23909 * config/bfin/crti.s: Likewise.
23910 * config/bfin/crtlibid.s: Likewise.
23911 * config/bfin/crtn.s: Likewise.
23912 * config/bfin/lib1funcs.asm: Likewise.
23913 * config/bfin/linux-unwind.h: Likewise.
23914 * config/cris/arit.c: Likewise.
23915 * config/cris/cris_abi_symbol.c: Likewise.
23916 * config/darwin-64.c: Likewise.
23917 * config/darwin-crt2.c: Likewise.
23918 * config/darwin-crt3.c: Likewise.
23919 * config/darwin.h: Likewise.
23920 * config/dbxelf.h: Likewise.
23921 * config/dfp-bit.c: Likewise.
23922 * config/dfp-bit.h: Likewise.
23923 * config/elfos.h: Likewise.
23924 * config/fixed-bit.c: Likewise.
23925 * config/fixed-bit.h: Likewise.
23926 * config/fp-bit.c: Likewise.
23927 * config/fp-bit.h: Likewise.
23928 * config/fr30/crti.asm: Likewise.
23929 * config/fr30/crtn.asm: Likewise.
23930 * config/fr30/lib1funcs.asm: Likewise.
23931 * config/freebsd-spec.h: Likewise.
23932 * config/frv/cmovd.c: Likewise.
23933 * config/frv/cmovh.c: Likewise.
23934 * config/frv/cmovw.c: Likewise.
23935 * config/frv/frvbegin.c: Likewise.
23936 * config/frv/frvend.c: Likewise.
23937 * config/frv/lib1funcs.asm: Likewise.
23938 * config/glibc-stdint.h: Likewise.
23939 * config/h8300/clzhi2.c: Likewise.
23940 * config/h8300/crti.asm: Likewise.
23941 * config/h8300/crtn.asm: Likewise.
23942 * config/h8300/ctzhi2.c: Likewise.
23943 * config/h8300/fixunssfsi.c: Likewise.
23944 * config/h8300/lib1funcs.asm: Likewise.
23945 * config/h8300/parityhi2.c: Likewise.
23946 * config/h8300/popcounthi2.c: Likewise.
23947 * config/i386/ammintrin.h: Likewise.
23948 * config/i386/att.h: Likewise.
23949 * config/i386/avxintrin.h: Likewise.
23950 * config/i386/biarch64.h: Likewise.
23951 * config/i386/bmmintrin.h: Likewise.
23952 * config/i386/cpuid.h: Likewise.
23953 * config/i386/cross-stdarg.h: Likewise.
23954 * config/i386/crtfastmath.c: Likewise.
23955 * config/i386/crtprec.c: Likewise.
23956 * config/i386/cygming-crtbegin.c: Likewise.
23957 * config/i386/cygming-crtend.c: Likewise.
23958 * config/i386/cygwin.asm: Likewise.
23959 * config/i386/emmintrin.h: Likewise.
23960 * config/i386/gmm_malloc.h: Likewise.
23961 * config/i386/gthr-win32.c: Likewise.
23962 * config/i386/i386.h: Likewise.
23963 * config/i386/immintrin.h: Likewise.
23964 * config/i386/linux-unwind.h: Likewise.
23965 * config/i386/linux64.h: Likewise.
23966 * config/i386/mm3dnow.h: Likewise.
23967 * config/i386/mmintrin-common.h: Likewise.
23968 * config/i386/mmintrin.h: Likewise.
23969 * config/i386/nmmintrin.h: Likewise.
23970 * config/i386/pmm_malloc.h: Likewise.
23971 * config/i386/pmmintrin.h: Likewise.
23972 * config/i386/smmintrin.h: Likewise.
23973 * config/i386/sol2-c1.asm: Likewise.
23974 * config/i386/sol2-ci.asm: Likewise.
23975 * config/i386/sol2-cn.asm: Likewise.
23976 * config/i386/sol2-gc1.asm: Likewise.
23977 * config/i386/tmmintrin.h: Likewise.
23978 * config/i386/unix.h: Likewise.
23979 * config/i386/w32-unwind.h: Likewise.
23980 * config/i386/wmmintrin.h: Likewise.
23981 * config/i386/x86-64.h: Likewise.
23982 * config/i386/x86intrin.h: Likewise.
23983 * config/i386/xmmintrin.h: Likewise.
23984 * config/ia64/crtbegin.asm: Likewise.
23985 * config/ia64/crtend.asm: Likewise.
23986 * config/ia64/crtfastmath.c: Likewise.
23987 * config/ia64/crti.asm: Likewise.
23988 * config/ia64/crtn.asm: Likewise.
23989 * config/ia64/fde-glibc.c: Likewise.
23990 * config/ia64/lib1funcs.asm: Likewise.
23991 * config/ia64/linux-unwind.h: Likewise.
23992 * config/ia64/quadlib.c: Likewise.
23993 * config/ia64/unwind-ia64.c: Likewise.
23994 * config/linux.h: Likewise.
23995 * config/m32c/m32c-lib1.S: Likewise.
23996 * config/m32c/m32c-lib2-trapv.c: Likewise.
23997 * config/m32c/m32c-lib2.c: Likewise.
23998 * config/m32r/initfini.c: Likewise.
23999 * config/m68hc11/larith.asm: Likewise.
24000 * config/m68hc11/m68hc11-crt0.S: Likewise.
24001 * config/m68k/cf.md: Likewise.
24002 * config/m68k/crti.s: Likewise.
24003 * config/m68k/crtn.s: Likewise.
24004 * config/m68k/lb1sf68.asm: Likewise.
24005 * config/m68k/linux-unwind.h: Likewise.
24006 * config/mcore/crti.asm: Likewise.
24007 * config/mcore/crtn.asm: Likewise.
24008 * config/mcore/lib1.asm: Likewise.
24009 * config/mips/linux-unwind.h: Likewise.
24010 * config/mips/loongson.h: Likewise.
24011 * config/mips/mips16.S: Likewise.
24012 * config/mmix/crti.asm: Likewise.
24013 * config/mmix/crtn.asm: Likewise.
24014 * config/pa/fptr.c: Likewise.
24015 * config/pa/hpux-unwind.h: Likewise.
24016 * config/pa/lib2funcs.asm: Likewise.
24017 * config/pa/linux-atomic.c: Likewise.
24018 * config/pa/linux-unwind.h: Likewise.
24019 * config/pa/milli64.S: Likewise.
24020 * config/pa/quadlib.c: Likewise.
24021 * config/pa/stublib.c: Likewise.
24022 * config/picochip/libgccExtras/adddi3.asm: Likewise.
24023 * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
24024 * config/picochip/libgccExtras/ashlsi3.c: Likewise.
24025 * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
24026 * config/picochip/libgccExtras/ashrsi3.c: Likewise.
24027 * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
24028 * config/picochip/libgccExtras/divmod15.asm: Likewise.
24029 * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
24030 * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
24031 * config/picochip/libgccExtras/longjmp.asm: Likewise.
24032 * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
24033 * config/picochip/libgccExtras/lshrsi3.c: Likewise.
24034 * config/picochip/libgccExtras/parityhi2.asm: Likewise.
24035 * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
24036 * config/picochip/libgccExtras/setjmp.asm: Likewise.
24037 * config/picochip/libgccExtras/subdi3.asm: Likewise.
24038 * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
24039 * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
24040 * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
24041 * config/rs6000/750cl.h: Likewise.
24042 * config/rs6000/altivec.h: Likewise.
24043 * config/rs6000/biarch64.h: Likewise.
24044 * config/rs6000/crtresfpr.asm: Likewise.
24045 * config/rs6000/crtresgpr.asm: Likewise.
24046 * config/rs6000/crtresxfpr.asm: Likewise.
24047 * config/rs6000/crtresxgpr.asm: Likewise.
24048 * config/rs6000/crtsavfpr.asm: Likewise.
24049 * config/rs6000/crtsavgpr.asm: Likewise.
24050 * config/rs6000/darwin-asm.h: Likewise.
24051 * config/rs6000/darwin-fallback.c: Likewise.
24052 * config/rs6000/darwin-fpsave.asm: Likewise.
24053 * config/rs6000/darwin-ldouble.c: Likewise.
24054 * config/rs6000/darwin-tramp.asm: Likewise.
24055 * config/rs6000/darwin-unwind.h: Likewise.
24056 * config/rs6000/darwin-vecsave.asm: Likewise.
24057 * config/rs6000/darwin-world.asm: Likewise.
24058 * config/rs6000/e500crtres32gpr.asm: Likewise.
24059 * config/rs6000/e500crtres64gpr.asm: Likewise.
24060 * config/rs6000/e500crtres64gprctr.asm: Likewise.
24061 * config/rs6000/e500crtrest32gpr.asm: Likewise.
24062 * config/rs6000/e500crtrest64gpr.asm: Likewise.
24063 * config/rs6000/e500crtresx32gpr.asm: Likewise.
24064 * config/rs6000/e500crtresx64gpr.asm: Likewise.
24065 * config/rs6000/e500crtsav32gpr.asm: Likewise.
24066 * config/rs6000/e500crtsav64gpr.asm: Likewise.
24067 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
24068 * config/rs6000/e500crtsavg32gpr.asm: Likewise.
24069 * config/rs6000/e500crtsavg64gpr.asm: Likewise.
24070 * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
24071 * config/rs6000/eabi-ci.asm: Likewise.
24072 * config/rs6000/eabi-cn.asm: Likewise.
24073 * config/rs6000/eabi.asm: Likewise.
24074 * config/rs6000/linux-unwind.h: Likewise.
24075 * config/rs6000/linux64.h: Likewise.
24076 * config/rs6000/paired.h: Likewise.
24077 * config/rs6000/paired.md: Likewise.
24078 * config/rs6000/ppc64-fp.c: Likewise.
24079 * config/rs6000/ppu_intrinsics.h: Likewise.
24080 * config/rs6000/rs6000.h: Likewise.
24081 * config/rs6000/si2vmx.h: Likewise.
24082 * config/rs6000/sol-ci.asm: Likewise.
24083 * config/rs6000/sol-cn.asm: Likewise.
24084 * config/rs6000/spe.h: Likewise.
24085 * config/rs6000/spu2vmx.h: Likewise.
24086 * config/rs6000/sysv4.h: Likewise.
24087 * config/rs6000/tramp.asm: Likewise.
24088 * config/rs6000/vec_types.h: Likewise.
24089 * config/s390/linux-unwind.h: Likewise.
24090 * config/s390/tpf-unwind.h: Likewise.
24091 * config/score/crti.asm: Likewise.
24092 * config/score/crtn.asm: Likewise.
24093 * config/sh/crt1.asm: Likewise.
24094 * config/sh/crti.asm: Likewise.
24095 * config/sh/crtn.asm: Likewise.
24096 * config/sh/divtab-sh4-300.c: Likewise.
24097 * config/sh/divtab-sh4.c: Likewise.
24098 * config/sh/divtab.c: Likewise.
24099 * config/sh/lib1funcs-4-300.asm: Likewise.
24100 * config/sh/lib1funcs-Os-4-200.asm: Likewise.
24101 * config/sh/lib1funcs.asm: Likewise.
24102 * config/sh/lib1funcs.h: Likewise.
24103 * config/sh/linux-atomic.asm: Likewise.
24104 * config/sh/linux-unwind.h: Likewise.
24105 * config/sh/shmedia.h: Likewise.
24106 * config/sh/sshmedia.h: Likewise.
24107 * config/sh/ushmedia.h: Likewise.
24108 * config/sparc/crtfastmath.c: Likewise.
24109 * config/sparc/linux-unwind.h: Likewise.
24110 * config/sparc/sol2-c1.asm: Likewise.
24111 * config/sparc/sol2-ci.asm: Likewise.
24112 * config/sparc/sol2-cn.asm: Likewise.
24113 * config/spu/divmodti4.c: Likewise.
24114 * config/spu/divv2df3.c: Likewise.
24115 * config/spu/float_disf.c: Likewise.
24116 * config/spu/float_unsdidf.c: Likewise.
24117 * config/spu/float_unsdisf.c: Likewise.
24118 * config/spu/float_unssidf.c: Likewise.
24119 * config/spu/mfc_multi_tag_release.c: Likewise.
24120 * config/spu/mfc_multi_tag_reserve.c: Likewise.
24121 * config/spu/mfc_tag_release.c: Likewise.
24122 * config/spu/mfc_tag_reserve.c: Likewise.
24123 * config/spu/mfc_tag_table.c: Likewise.
24124 * config/spu/multi3.c: Likewise.
24125 * config/spu/spu_internals.h: Likewise.
24126 * config/spu/spu_intrinsics.h: Likewise.
24127 * config/spu/spu_mfcio.h: Likewise.
24128 * config/spu/vec_types.h: Likewise.
24129 * config/spu/vmx2spu.h: Likewise.
24130 * config/stormy16/stormy16-lib2.c: Likewise.
24131 * config/svr4.h: Likewise.
24132 * config/sync.c: Likewise.
24133 * config/v850/lib1funcs.asm: Likewise.
24134 * config/vxlib-tls.c: Likewise.
24135 * config/vxlib.c: Likewise.
24136 * config/vxworks-dummy.h: Likewise.
24137 * config/xtensa/crti.asm: Likewise.
24138 * config/xtensa/crtn.asm: Likewise.
24139 * config/xtensa/ieee754-df.S: Likewise.
24140 * config/xtensa/ieee754-sf.S: Likewise.
24141 * config/xtensa/lib1funcs.asm: Likewise.
24142 * config/xtensa/lib2funcs.S: Likewise.
24143 * config/xtensa/linux-unwind.h: Likewise.
24144 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
24145 * config/xtensa/unwind-dw2-xtensa.h: Likewise.
24146 * coretypes.h: Likewise.
24147 * crtstuff.c: Likewise.
24148 * defaults.h: Likewise.
24149 * dwarf2.h: Likewise.
24150 * emutls.c: Likewise.
24151 * gbl-ctors.h: Likewise.
24152 * gcov-io.h: Likewise.
24153 * ginclude/float.h: Likewise.
24154 * ginclude/iso646.h: Likewise.
24155 * ginclude/stdarg.h: Likewise.
24156 * ginclude/stdbool.h: Likewise.
24157 * ginclude/stddef.h: Likewise.
24158 * ginclude/stdfix.h: Likewise.
24159 * ginclude/stdint-gcc.h: Likewise.
24160 * ginclude/tgmath.h: Likewise.
24161 * gthr-aix.h: Likewise.
24162 * gthr-dce.h: Likewise.
24163 * gthr-gnat.c: Likewise.
24164 * gthr-gnat.h: Likewise.
24165 * gthr-lynx.h: Likewise.
24166 * gthr-mipssde.h: Likewise.
24167 * gthr-nks.h: Likewise.
24168 * gthr-posix.c: Likewise.
24169 * gthr-posix.h: Likewise.
24170 * gthr-posix95.h: Likewise.
24171 * gthr-rtems.h: Likewise.
24172 * gthr-single.h: Likewise.
24173 * gthr-solaris.h: Likewise.
24174 * gthr-tpf.h: Likewise.
24175 * gthr-vxworks.h: Likewise.
24176 * gthr-win32.h: Likewise.
24177 * gthr.h: Likewise.
24178 * libgcc2.c: Likewise.
24179 * libgcc2.h: Likewise.
24180 * libgcov.c: Likewise.
24181 * tsystem.h: Likewise.
24182 * typeclass.h: Likewise.
24183 * unwind-c.c: Likewise.
24184 * unwind-compat.h: Likewise.
24185 * unwind-dw2-fde-compat.c: Likewise.
24186 * unwind-dw2-fde-darwin.c: Likewise.
24187 * unwind-dw2-fde-glibc.c: Likewise.
24188 * unwind-dw2-fde.c: Likewise.
24189 * unwind-dw2-fde.h: Likewise.
24190 * unwind-dw2.c: Likewise.
24191 * unwind-dw2.h: Likewise.
24192 * unwind-generic.h: Likewise.
24193 * unwind-pe.h: Likewise.
24194 * unwind-sjlj.c: Likewise.
24195 * unwind.inc: Likewise.
24196 * config/arm/neon-gen.ml: Change generated copyright header to
24197 refer to version 3 of the GNU General Public License with
24198 version 3.1 of the GCC Runtime Library Exception and to point
24199 readers at the COPYING3 and COPYING3.RUNTIME files and the
24200 FSF's license web page.
24201 * config/arm/arm_neon.h: Regenerate.
24202
242032009-04-09 Jakub Jelinek <jakub@redhat.com>
24204
24205 * config/cris/cris.md: Change copyright header to refer to version
24206 3 of the GNU General Public License.
24207 * doc/install.texi2html: Change copyright header to refer to version
24208 3 of the GNU General Public License and to point readers at the
24209 COPYING3 file and the FSF's license web page.
24210 * config/vax/linux.h: Likewise.
24211
8e58aded 242122009-04-09 Paolo Bonzini <bonzini@gnu.org>
24213
7df298fe 24214 * config/i386/i386.md (cmpcc): New.
24215 * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
24216 (sync_compare_and_swap_cc*): Delete.
24217
24218 * config/s390/s390.c (s390_compare_emitted): Remove.
24219 (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
24220 s390_compare_emitted used to be handled. Assert that modes match.
24221 (s390_emit_compare_and_swap): Use s390_emit_compare, do not
24222 refer to sync_compare_and_swap_ccsi.
24223 * config/s390/s390.h (s390_compare_emitted): Remove.
24224 * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
24225 instead of s390_compare_emitted.
24226 (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
24227 instead of s390_compare_emitted.
24228 * config/s390/s390.md (cmpcc): New.
24229 (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
24230 CC_REGNUM, do not pretend it's set.
24231 (sync_compare_and_swap_cc*): Delete.
24232 * config/s390/predicates.md (cc_reg_operand): New.
24233
24234 * expr.c (sync_compare_and_swap_cc): Delete.
24235 * optabs.h (sync_compare_and_swap_cc): Delete.
24236 * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
24237 is being used with can_compare_p.
24238 (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
24239 (find_cc_set): New.
24240 (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
24241 look for a MODE_CC set instead. Use emit_store_flag.
24242 (expand_compare_and_swap_loop): Likewise, with some additional
24243 complication to avoid a force_reg when useless. Use
24244 emit_cmp_and_jump_insns.
24245 * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
24246 * doc/md.texi (sync_compare_and_swap_cc): Merge with
24247 sync_compare_and_swap documentation.
8e58aded 24248
98b64106 242492009-04-09 Jan Hubicka <jh@suse.cz>
24250
24251 * except.c (find_prev_try): Break out from ....
24252 (duplicate_eh_regions): ... here; properly update prev_try pointers
24253 when duplication part of tree.
24254 (dump_eh_tree): Improve dumping.
24255 (verify_eh_region): New.
24256 (verify_eh_tree): Use it.
24257
d7dfb761 242582009-04-06 Richard Guenther <rguenther@suse.de>
24259
24260 * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
24261 &ARRAY addresses by adjusting their types and prepending
24262 a conversion.
24263 * tree-cfg.c (verify_gimple_assign_single): Verify that
24264 addresses are correct.
24265
87c5de3b 242662009-04-09 Richard Guenther <rguenther@suse.de>
24267
24268 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
24269 indices into an array reference if possible.
24270 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
24271 Fold POINTER_PLUS_EXPR statements with invariant address.
24272
50ec89c7 242732009-04-09 Alan Modra <amodra@bigpond.net.au>
24274
24275 PR target/39634
24276 * config.gcc (powerpc64-*-linux*): Always build biarch.
24277
482c1ea0 242782009-04-09 Joseph Myers <joseph@codesourcery.com>
24279
24280 PR c/39613
24281 * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
24282 it and pedwarn if this results in an INTEGER_CST.
24283
fec76ae9 242842009-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24285
24286 * doc/install.texi: Update minimum GMP version. Remove obsolete
24287 text in MPFR section.
24288
a974aa3e 242892009-04-08 Jakub Jelinek <jakub@redhat.com>
24290
24291 * dwarf2out.c (class_scope_p): New static inline.
24292 (class_or_namespace_scope_p): Use it.
24293 (gen_variable_die): Use DW_TAG_member tag for static data member
24294 declarations instead of DW_TAG_variable.
24295
e1a7ccb9 24296 PR middle-end/39573
24297 * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
24298 variables.
24299
94373fa5 243002009-04-08 Richard Guenther <rguenther@suse.de>
24301
24302 * tree-ssa-sccvn.c (valueize_refs): Do not continue to
24303 valueize random data.
24304
b5e8a0bc 243052009-04-08 David Edelsohn <edelsohn@gnu.org>
24306
24307 * config.gcc (aix tm_file): Add aix-stdint.h.
24308 (aix tm clause use_gcc_stdint): Set to wrap.
24309 * config/rs6000/aix-stdint.h: New file.
89871bab 24310
3a44a278 243112009-04-08 Richard Guenther <rguenther@suse.de>
24312
24313 PR middle-end/36291
24314 * tree-dfa.c (add_referenced_var): Do not recurse into
24315 global initializers.
24316 * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
24317 exposed variables.
24318 (fold_const_aggregate_ref): Likewise.
24319
c429965c 243202009-04-08 Paolo Bonzini <bonzini@gnu.org>
24321
0ed4dbb4 24322 * recog.c (ordered_comparison_operator): New.
24323 * gensupport.c (std_preds): Add it.
c429965c 24324 * doc/md.texi (Machine-Independent Predicates): Document it.
24325
48d5ef93 243262009-04-08 Jan Hubicka <jh@suse.cz>
24327
24328 * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
24329 * function.h (rtl_eh): Remove exception_handler_label_map.
24330 * except.c (ehl_hash, ehl_eq, add_ehl_entry,
24331 remove_exception_handler_label, for_each_eh_label_1): Remove.
24332 (rtl_remove_unreachable_regions): Remove.
24333 (convert_from_eh_region_ranges): Do not remove unreachable regions.
24334 (find_exception_handler_labels): Don't build the hashtable.
24335 (maybe_remove_eh_handler): Remove.
24336 (for_each_eh_label): Rewrite to walk the tree.
24337 (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
24338 * except.h (maybe_remove_eh_handler): Remove.
24339 * passes.c (init_optimization_passes): Schedule second EH cleanup
24340 before out-of-ssa.
24341 * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
24342 cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
24343
cbb955b0 243442009-04-08 Paolo Bonzini <bonzini@gnu.org>
24345
24346 * genoutput.c (validate_optab_operands): New.
24347 (gen_insn, gen_expand): Call it.
24348
24349 * genflags.c (gen_insn): Detect misused iterators.
24350 (main): Pass line_no to gen_insn, exit with status 1 on error.
24351
24352 * genextract.c (line_no): Make global.
24353 (VEC_safe_set_locstr): Change assertion to error message.
24354 (main): Exit with status 1 on error.
24355
9a8bed72 243562009-04-08 Joseph Myers <joseph@codesourcery.com>
24357
24358 PR c/39614
24359 PR c/39673
24360 * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
24361 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
24362 EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
24363 * c-convert.c (convert): Do not call fold on results of conversion
24364 functions when the result is a C_MAYBE_CONST_EXPR.
24365 * c-parser.c (c_parser_postfix_expression): Do not fold condition
24366 of __builtin_choose_expr.
24367 * c-typeck.c (remove_c_maybe_const_expr): New.
24368 (build_unary_op, build_conditional_expr, build_compound_expr,
24369 build_binary_op, c_objc_common_truthvalue_conversion): Call
24370 remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
24371 integer operands.
24372
943327c1 243732009-04-08 Bingfeng Mei <bmei@broadcom.com>
87de4c68 24374
89871bab 24375 * fold-const.c (const_binop): Combine two VECTOR_CST under operation
0ed4dbb4 24376 CODE to produce a new one. Add a prototype to use fold_convert_const
87de4c68 24377
1e37e2e4 243782009-04-08 Danny Smith <dannysmith@users.sourceforge.net>
24379
24380 PR bootstrap/39660
24381 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
24382 mix declarations and code.
24383
c68bcf58 243842009-04-08 Ben Elliston <bje@au.ibm.com>
24385
24386 * gcc.c: Replace `CC' with `GCC' throughout.
24387
a015dc67 243882009-04-07 H.J. Lu <hongjiu.lu@intel.com>
24389
24390 * doc/invoke.texi: Document Atom support.
24391
fc8ee10c 243922009-04-07 Jason Merrill <jason@redhat.com>
24393
24394 PR c++/25185
24395 * c-common.h, c-common.c: Add flag_pretty_templates.
24396 * c-opts.c (c_common_handle_option): Set it.
24397 * c.opt: Add -fno-pretty-templates.
24398 * doc/invoke.texi (C++ Dialect Options): Likewise.
24399
9b57ed9f 244002009-04-07 Uros Bizjak <ubizjak@gmail.com>
24401
24402 * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
24403 (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
24404 (ia64_expand_builtin): Likewise.
24405
9b973aa6 244062009-04-07 Martin Jambor <mjambor@suse.cz>
24407
24408 * tree-ssa-alias.c (refs_may_alias_p_1): Check for
24409 is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
24410 ADDR_EXPRS are include too.
24411
09347e88 244122009-04-07 Richard Guenther <rguenther@suse.de>
24413
24414 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
24415 decls are only used if passes as parameters or if they are
24416 local statics and the call is not to a builtin.
24417 (call_may_clobber_ref_p_1): Likewise.
24418
da4963ce 244192009-04-07 Paolo Bonzini <bonzini@gnu.org>
24420
24421 * expr.c (do_store_flag): Remove last argument. Simplify code
24422 to avoid duplication of tests already done by can_compare_p.
24423 (expand_expr_real_1): Adjust caller.
24424
235155da 244252009-04-07 Paolo Bonzini <bonzini@gnu.org>
24426
9b57ed9f 24427 * optabs.c (can_compare_p): Test the predicate of a
24428 cbranch and cstore pattern.
235155da 24429
2040a7e4 244302009-04-07 Paolo Bonzini <bonzini@gnu.org>
24431
9b57ed9f 24432 * expr.c (convert_move): Use emit_store_flag instead of
24433 "emulating" it.
2040a7e4 24434
a5f5a6f7 244352009-04-07 Paolo Bonzini <bonzini@gnu.org>
24436
9b57ed9f 24437 * config/i386/i386.c (ix86_compare_emitted): Remove.
24438 (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
24439 ix86_compare_op0 like ix86_compare_emitted used to be handled.
24440 * config/i386/i386.h (ix86_compare_emitted): Remove.
24441 * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
24442 instead of ix86_compare_emitted.
24443 * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
a5f5a6f7 24444
fa22494c 244452009-04-07 Andrew Stubbs <ams@codesourcery.com>
24446
24447 * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
24448 Add t-sysroot-suffix to tmake_file.
24449 * config/print-sysroot-suffix.sh: New file.
24450 * config/t-sysroot-suffix: New file.
24451
e73bbd21 244522009-04-07 Ben Elliston <bje@au.ibm.com>
24453
24454 * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
24455 as the latter produces a warning when the target does not support
24456 infinity.
24457
d5cd42ef 244582009-04-07 Ben Elliston <bje@au.ibm.com>
24459
24460 * dfp.c: Replace type punning assignments with memcpy throughout.
24461 * Makefile.in (dfp.o-warn): Remove.
89871bab 24462
4e5e2802 244632009-04-07 Alan Modra <amodra@bigpond.net.au>
24464
24465 PR target/39634
24466 * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
24467 Include soft-fp/t-softfp after rs6000/t-linux64.
24468
30904b2c 244692009-04-06 Eric Botcazou <ebotcazou@adacore.com>
24470
24471 * stor-layout.c (set_sizetype): Use the full precision of their
24472 machine mode for bitsize types.
24473
3544e448 244742009-04-06 H.J. Lu <hongjiu.lu@intel.com>
24475
24476 * config/i386/i386.md: Revert 2 accidental checkins.
24477
fbfe006e 244782009-04-06 Joey Ye <joey.ye@intel.com>
943327c1 24479 Xuepeng Guo <xuepeng.guo@intel.com>
fbfe006e 24480 H.J. Lu <hongjiu.lu@intel.com>
24481
24482 Atom pipeline model, tuning and insn selection.
24483 * config.gcc (atom): Add atom config options and target.
24484
24485 * config/i386/atom.md: New.
24486
24487 * config/i386/i386.c (atom_cost): New cost.
24488 (m_ATOM): New macro flag.
24489 (initial_ix86_tune_features): Set m_ATOM.
24490 (x86_accumulate_outgoing_args): Likewise.
24491 (x86_arch_always_fancy_math_387): Likewise.
24492 (processor_target): Add Atom cost.
24493 (cpu_names): Add Atom cpu name.
24494 (override_options): Set Atom ISA.
24495 (ix86_issue_rate): New case PROCESSOR_ATOM.
24496 (ix86_adjust_cost): Likewise.
24497
24498 * config/i386/i386.h (TARGET_ATOM): New target macro.
24499 (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
24500 (TARGET_OPT_AGU): New target option.
24501 (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
24502 (processor_type): Add PROCESSOR_ATOM.
24503
24504 * config/i386/i386.md (cpu): Add new value "atom".
24505 (use_carry, movu): New attr.
24506 (atom.md): Include atom.md.
24507 (adddi3_carry_rex64): Set attr "use_carry".
24508 (addqi3_carry): Likewise.
24509 (addhi3_carry): Likewise.
24510 (addsi3_carry): Likewise.
24511 (*addsi3_carry_zext): Likewise.
24512 (subdi3_carry_rex64): Likewise.
24513 (subqi3_carry): Likewise.
24514 (subhi3_carry): Likewise.
24515 (subsi3_carry): Likewise.
24516 (x86_movdicc_0_m1_rex64): Likewise.
24517 (*x86_movdicc_0_m1_se): Likewise.
24518 (x86_movsicc_0_m1): Likewise.
24519 (*x86_movsicc_0_m1_se): Likewise.
24520 (*adddi_1_rex64): Emit add insn as much as possible.
24521 (*addsi_1): Likewise.
24522 (return_internal): Set atom_unit.
24523 (return_internal_long): Likewise.
24524 (return_pop_internal): Likewise.
24525 (*rcpsf2_sse): Set atom_sse_attr attr.
24526 (*qrt<mode>2_sse): Likewise.
24527 (*prefetch_sse): Likewise.
24528
24529 * config/i386/i386-c.c (ix86_target_macros_internal): New case
24530 PROCESSOR_ATOM.
24531 (ix86_target_macros_internal): Likewise.
24532
24533 * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
24534 (*prefetch_sse_rex): Likewise.
24535 (sse_rcpv4sf2): Likewise.
24536 (sse_vmrcpv4sf2): Likewise.
24537 (sse_sqrtv4sf2): Likewise.
24538 (<sse>_vmsqrt<mode>2): Likewise.
24539 (sse_ldmxcsr): Likewise.
24540 (sse_stmxcsr): Likewise.
24541 (*sse_sfence): Likewise.
24542 (sse2_clflush): Likewise.
24543 (*sse2_mfence): Likewise.
24544 (*sse2_lfence): Likewise.
24545 (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
24546 (<sse>_movup<ssemodesuffixf2c>): Likewise.
24547 (avx_movdqu<avxmodesuffix>): Likewise.
24548 (avx_lddqu<avxmodesuffix>): Likewise.
24549 (sse2_movntv2di): Change attr "type" to "ssemov".
24550 (sse2_movntsi): Likewise.
24551 (rsqrtv8sf2): Change attr "type" to "sseadd".
24552 (sse3_addsubv2df3): Set attr "atom_unit".
24553 (sse3_h<plusminus_insn>v4sf3): Likewise.
24554 (*sse2_pmaddwd): Likewise.
24555 (*vec_extractv2di_1_rex64): Likewise.
24556 (*vec_extractv2di_1_avx): Likewise.
24557 (sse2_psadbw): Likewise.
24558 (ssse3_phaddwv8hi3): Likewise.
24559 (ssse3_phaddwv4hi3): Likewise.
24560 (ssse3_phadddv4si3): Likewise.
24561 (ssse3_phadddv2si3): Likewise.
24562 (ssse3_phaddswv8hi3): Likewise.
24563 (ssse3_phaddswv4hi3): Likewise.
24564 (ssse3_phsubwv8hi3): Likewise.
24565 (ssse3_phsubwv4hi3): Likewise.
24566 (ssse3_phsubdv4si3): Likewise.
24567 (ssse3_phsubdv2si3): Likewise.
24568 (ssse3_phsubswv8hi3): Likewise.
24569 (ssse3_phsubswv4hi3): Likewise.
24570 (ssse3_pmaddubsw128): Likewise.
24571 (sse3_pmaddubsw: Likewise.
24572 (ssse3_palignrti): Likewise.
24573 (ssse3_palignrdi): Likewise.
24574
ad659dc9 245752009-04-06 Gerald Pfeifer <gerald@pfeifer.com>
24576
24577 * doc/install.texi (Specific): Fix two cross-references to MinGW.
24578
220307de 245792009-04-06 Richard Guenther <rguenther@suse.de>
24580
24581 PR tree-optimization/28868
24582 * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
24583 of which PHI results we inserted.
24584 (insert_into_preds_of_block): Record inserted PHIs.
24585 (eliminate): Eliminate redundant PHI nodes.
24586 (init_pre): Init inserted_phi_names.
24587
0fefde02 245882009-04-06 Richard Guenther <rguenther@suse.de>
24589
24590 PR tree-optimization/39643
24591 * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
24592 IMAGPART_EXPRs of complex constants.
24593 (execute_fold_all_builtins): If we folded a call queue
24594 TODO_update_address_taken.
24595
b07ddb92 245962009-04-06 Jan Hubicka <jh@suse.cz>
24597
24598 PR middle-end/39659
24599 * except.c (remove_unreachable_regions): Propagate may_contain_throw
24600 flag.
24601
85714674 246022009-04-06 Andrew Stubbs <ams@codesourcery.com>
24603
24604 * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
24605 delay slot.
24606 (ic_invalidate_array): Likewise.
24607
943327c1 246082009-04-06 Hariharan Sandanagobalane <hariharan@picochip.com>
c2fd5e89 24609
24610 * calls.c (emit_library_call_value_1): Fix a problem with parameter
24611 alignment for library calls.
24612
8953973a 246132009-04-06 Danny Smith <dannysmith@users.sourceforge.net>
24614
24615 * config.gcc (mingw32 tm_file): Add mingw-stdint.h.
24616 (mingw32 tm clause use_gcc_stdint): Set to wrap.
24617 * config/i386/mingw-stdint.h: New file.
24618
eb04d2de 246192009-04-05 Richard Guenther <rguenther@suse.de>
24620
24621 PR tree-optimization/39648
24622 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
24623 our &A vs. &A[0] IL deficiencies.
24624
0f656a57 246252009-04-04 Jan Hubicka <jh@suse.cz>
24626
eb04d2de 24627 * except.c (sjlj_find_directly_reachable_regions): Be ready for
24628 removed toplevel regions.
0f656a57 24629 (sjlj_mark_call_sites): Likewise.
24630
615180dd 246312009-04-04 Dave Korn <dave.korn.cygwin@gmail.com>
24632
24633 * config.gcc (cygwin tm_file): Add cygwin-stdint.h.
24634 (cygwin tm clause use_gcc_stdint): Set to wrap.
24635 * config/i386/cygwin-stdint.h: New file.
24636
23a3430d 246372009-04-04 Richard Guenther <rguenther@suse.de>
24638
24639 * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
24640 * tree-ssa-copy.c (init_copy_prop): Do not propagate through
24641 single-argument PHIs if we are in loop-closed SSA form.
24642 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
24643 for the pre-condition.
24644 (slpeel_tree_peel_loop_to_edge): Likewise.
24645 (vect_build_loop_niters): Take an optional sequence to append stmts.
24646 (vect_generate_tmps_on_preheader): Likewise.
24647 (vect_do_peeling_for_loop_bound): Take extra guards for the
24648 pre-condition.
24649 (vect_do_peeling_for_alignment): Adjust. Unconditionally apply
24650 the cost model check.
24651 (vect_loop_versioning): Take stmt and stmt list to put pre-condition
c72c72ef 24652 guards if we are going to peel. Do not apply versioning in that case.
23a3430d 24653 * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
24654 (vect_do_peeling_for_loop_bound): Likewise.
24655 * tree-vect-loop.c (vect_transform_loop): If we are peeling for
24656 loop bound only record extra pre-conditions, do not apply loop
24657 versioning.
24658
42e901a3 246592009-04-04 Richard Guenther <rguenther@suse.de>
24660
24661 * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
24662 renaming code.
24663
87490e08 246642009-04-04 Jan Hubicka <jh@suse.cz>
24665
24666 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
24667 last_basic_block for size of bb->index indexed array.
24668 * bt-load.c (compute_defs_uses_and_gen, compute_kill,
24669 compute_out, link_btr_uses, build_btr_def_use_webs,
24670 build_btr_def_use_webs, migrate_btr_defs): Likewise.
24671
686e094c 246722009-04-04 Jan Hubicka <jh@suse.cz>
24673
24674 * except.c (remove_eh_handler_and_replace): Break out from ...
24675 (remove_eh_handler): ... here.
24676 (bring_to_root): New function.
24677 (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
24678 handled ones, bring others to root of tree.
24679
3bd82487 246802009-04-04 Jan Hubicka <jh@suse.cz>
24681
74eed1ed 24682 * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
24683 (all_phis_safe_to_merge): New function.
24684 (update_info): New structure.
24685 (make_eh_edge_and_update_phi, update_eh_edges): New functions.
24686 (cleanup_empty_eh): Update SSA if possible.
3bd82487 24687
17fbf1b8 246882009-04-04 Richard Guenther <rguenther@suse.de>
24689
24690 * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
24691 * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
24692 (append_vuse): Likewise.
24693
d02454a0 246942009-04-04 Jakub Jelinek <jakub@redhat.com>
24695
24696 * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
24697 * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
24698 instead of REG_UNSAVED for DW_CFA_undefined.
24699 (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
24700 (uw_update_context): If RA column is REG_UNDEFINED, mark it as
24701 outermost frame.
24702
19f6bf8d 247032009-04-04 Richard Earnshaw <rearnsha@arm.com>
24704
24705 PR target/39501
24706 * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
19f6bf8d 24707
d12dee9c 247082009-04-04 Richard Guenther <rguenther@suse.de>
24709
24710 PR tree-optimization/8781
24711 PR tree-optimization/37892
24712 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
24713 * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
24714 (valueize_refs): Call it for *& valueizations.
24715 (shared_reference_ops_from_ref): Rename to ...
24716 (valueize_shared_reference_ops_from_ref): ... this and valueize.
24717 (shared_reference_ops_from_call): Rename to ...
24718 (valueize_shared_reference_ops_from_call): ... this and valueize.
24719 (vn_reference_lookup): Update.
24720 (visit_reference_op_call): Likewise.
24721 * tree-ssa-pre.c (phi_translate_1): Fold *&.
24722 (eliminate): Value-replace the call address in call statements.
24723
507b89a4 247242009-04-04 Richard Guenther <rguenther@suse.de>
24725
24726 PR tree-optimization/39636
24727 * tree-ssa-forwprop.c
24728 (forward_propagate_addr_into_variable_array_index): Check for
24729 GIMPLE_ASSIGN before accessing the rhs code.
24730
4a83184b 247312009-04-03 Jason Merrill <jason@redhat.com>
24732
24733 * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
24734
d363dedc 247352009-04-03 Steve Ellcey <sje@cup.hp.com>
24736
24737 * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
24738 truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
24739 fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
24740 floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
24741 fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
24742 smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
24743 divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
24744 umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
24745 *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
24746 *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
24747 adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
24748 smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
24749 *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
24750 *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
24751 sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
24752 Use fr_reg_or_fp01_operand instead of fr_register_operand
24753
24754 * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
24755 recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
24756 divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
24757
2dd81ece 247582009-04-03 Vladimir Makarov <vmakarov@redhat.com>
24759
acc6de19 24760 PR rtl-optimization/39607
24761 PR rtl-optimization/39631
c72c72ef 24762
24763 Revert:
89871bab 24764
2dd81ece 24765 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
24766 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
24767 instead of DF_LR_OUT.
24768 * ira-lives.c (process_bb_node_lives): Ditto.
24769 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
24770 instead of DF_LR_{OUT,IN}.
24771 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
24772 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
24773
41709826 247742009-04-03 Steven Bosscher <steven@gcc.gnu.org>
24775
24776 * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
24777 (execute_lower_omp): Always run but take the short way out if -fopenmp
24778 is not given.
24779 (gate_lower_omp): Remove, forcing the pass manager to always run the
24780 pass and always set PROP_gimple_lomp.
24781 (pass_lower_omp): Remove gate function.
24782 * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
24783 PROP_trees. Instead, require it.
24784 * ipa-cp.c (pass_ipa_cp): Likewise.
24785 * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
24786 (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
24787 * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
24788 and PROP_gimple_leh.
24789
dd277d48 247902009-04-03 Richard Guenther <rguenther@suse.de>
24791
24792 PR middle-end/13146
24793 PR tree-optimization/23940
24794 PR tree-optimization/33237
24795 PR middle-end/33974
24796 PR middle-end/34093
24797 PR tree-optimization/36201
24798 PR tree-optimization/36230
24799 PR tree-optimization/38049
24800 PR tree-optimization/38207
24801 PR tree-optimization/38230
24802 PR tree-optimization/38301
24803 PR tree-optimization/38585
24804 PR middle-end/38895
24805 PR tree-optimization/38985
24806 PR tree-optimization/39299
24807 * tree-ssa-structalias.h: Remove.
24808 * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
24809 (NULL_DEF_OPERAND_P): Make of type def_operand_p.
24810 (struct vuse_element_d): Remove.
24811 (struct vuse_vec_d): Likewise.
24812 (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
24813 VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
24814 SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
24815 VUSE_ELEMENT_VAR): Likewise.
24816 (struct voptype_d): Likewise.
24817 (NUM_VOP_FREE_BUCKETS): Likewise.
24818 (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
24819 (struct stmt_operands_d): Remove.
24820 (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
24821 VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
24822 VDEF_NUM, VDEF_VECT): Likewise.
24823 (copy_virtual_operands): Remove.
24824 (operand_build_cmp): Likewise.
24825 (create_ssa_artificial_load_stmt): Likewise.
24826 (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
24827 (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
24828 vuse_index and mayuse_index members. Pack and move done and iter_type
24829 members to the front.
24830 (SSA_OP_VMAYUSE): Remove.
24831 (SSA_OP_VIRTUAL_USES): Adjust.
24832 (FOR_EACH_SSA_VDEF_OPERAND): Remove.
24833 (unlink_stmt_vdef): Declare.
24834 (add_to_addressable_set): Remove.
24835 * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
24836 (vrp_visit_stmt): Likewise.
24837 * doc/tree-ssa.texi (Alias analysis): Update.
24838 * doc/invoke.texi (max-aliased-vops): Remove docs.
24839 (avg-aliased-vops): Likewise.
24840 * tree-into-ssa.c (syms_to_rename): Remove.
24841 (need_to_update_vops_p): Likewise.
24842 (need_to_initialize_update_ssa_p): Rename to ...
24843 (update_ssa_initialized_fn): ... this. Track function we are
24844 initialized for.
24845 (symbol_marked_for_renaming): Simplify.
24846 (add_new_name_mapping): Do not set need_to_update_vops_p.
24847 (dump_currdefs): Use SYMS_TO_RENAME.
24848 (rewrite_update_stmt): Always walk all uses/defs.
24849 (dump_update_ssa): Adjust.
24850 (init_update_ssa): Take function argument. Track what we are
24851 initialized for.
24852 (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
24853 (create_new_def_for): Initialize for cfun, assert we are initialized
24854 for cfun.
24855 (mark_sym_for_renaming): Simplify.
24856 (mark_set_for_renaming): Do not initialize update-ssa.
24857 (need_ssa_update_p): Simplify. Take function argument.
24858 (name_mappings_registered_p): Assert we ask for the correct function.
24859 (name_registered_for_update_p): Likewise.
24860 (ssa_names_to_replace): Likewise.
24861 (release_ssa_name_after_update_ssa): Likewise.
24862 (update_ssa): Likewise. Use SYMS_TO_RENAME.
24863 (dump_decl_set): Do not print a newline.
24864 (debug_decl_set): Do it here.
24865 (dump_update_ssa): And here.
24866 * tree-ssa-loop-im.c (move_computations): Adjust.
24867 (movement_possibility): Likewise.
24868 (determine_max_movement): Likewise.
24869 (gather_mem_refs_stmt): Likewise.
24870 * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
24871 or NAME_MEMORY_TAG.
24872 * tree-complex.c (update_all_vops): Remove.
24873 (expand_complex_move): Adjust.
24874 * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
24875 Simplify test for memory referencing statement. Exclude
24876 non-invariant ADDR_EXPRs.
24877 * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
24878 * tree-loop-distribution.c (generate_memset_zero): Adjust.
24879 (rdg_flag_uses): Likewise.
24880 * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
24881 related code.
24882 (tree_optimize_tail_calls_1): Also split the
24883 edge from the entry block if we have degenerate PHI nodes in
24884 the first basic block.
24885 * tree.c (init_ttree): Remove memory-tag related code.
24886 (tree_code_size): Likewise.
24887 (tree_node_structure): Likewise.
24888 (build7_stat): Re-write to be build6_stat.
24889 * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
24890 (SSA_VAR_P): Adjust.
24891 (struct tree_memory_tag): Remove.
24892 (struct tree_memory_partition_tag): Likewise.
24893 (union tree_node): Adjust.
24894 (build7): Re-write to be build6.
24895 * tree-pass.h (pass_reset_cc_flags): Remove.
24896 (TODO_update_address_taken): New flag.
24897 (pass_simple_dse): Remove.
24898 * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
24899 * params.h (MAX_ALIASED_VOPS): Remove.
24900 (AVG_ALIASED_VOPS): Likewise.
24901 * omp-low.c (expand_omp_taskreg): Update SSA form.
24902 * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
24903 aliases the lhs in a copy stmt.
24904 * tree-ssa-dse.c (struct address_walk_data): Remove.
24905 (memory_ssa_name_same): Likewise.
24906 (memory_address_same): Likewise.
24907 (get_kill_of_stmt_lhs): Likewise.
24908 (dse_possible_dead_store_p): Simplify, use the oracle. Handle
24909 unused stores. Look through PHI nodes into post-dominated regions.
24910 (dse_optimize_stmt): Simplify. Properly remove stores.
24911 (tree_ssa_dse): Compute dominators.
24912 (execute_simple_dse): Remove.
24913 (pass_simple_dse): Likewise.
24914 * ipa-reference.c (scan_stmt_for_static_refs): Open-code
24915 gimple_loaded_syms and gimple_stored_syms computation.
24916 * toplev.c (dump_memory_report): Dump alias and pta stats.
24917 * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
24918 (vn_reference_eq): Likewise.
24919 (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
24920 copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
24921 valueize_vuses): Remove.
24922 (get_def_ref_stmt_vuses): Simplify. Rename to ...
24923 (get_def_ref_stmt_vuse): ... this.
24924 (vn_reference_lookup_2): New function.
24925 (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
24926 walking equivalent vuses. Simplify.
24927 (vn_reference_lookup): Likewise.
24928 (vn_reference_insert): Likewise.
24929 (vn_reference_insert_pieces): Likewise.
24930 (visit_reference_op_call): Simplify.
24931 (visit_reference_op_load): Likewise.
24932 (visit_reference_op_store): Likewise.
24933 (init_scc_vn): Remove shared_lookup_vuses initialization.
24934 (free_scc_vn): Remove shared_lookup_vuses freeing.
24935 (sort_vuses, sort_vuses_heap): Remove.
24936 (get_ref_from_reference_ops): Export.
24937 * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
24938 vector with single vuse pointer.
24939 (vn_reference_lookup_pieces, vn_reference_lookup,
24940 vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
24941 (shared_vuses_from_stmt): Remove.
24942 (get_ref_from_reference_ops): Declare.
24943 * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
24944 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
24945 memory-tag related code.
24946 * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
24947 (likely_value): Add comment, skip static-chain of call statements.
24948 (surely_varying_stmt_p): Adjust.
24949 (gimplify_and_update_call_from_tree): Likewise.
24950 (execute_fold_all_builtins): Do not rebuild alias info.
24951 (gimplify_and_update_call_from_tree): Properly update VOPs.
24952 * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
24953 (copy_ref_info): Remove memory-tag related code.
24954 * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
24955 * ipa-pure-const.c (check_decl): Remove memory-tag related code.
24956 (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
24957 computation.
24958 * tree-ssa-dom.c (gimple_p): Remove typedef.
24959 (eliminate_redundant_computations): Adjust.
24960 (record_equivalences_from_stmt): Likewise.
24961 (avail_expr_hash): Likewise.
24962 (avail_expr_eq): Likewise.
c72c72ef 24963 * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
dd277d48 24964 (stmt_makes_single_load): Likewise.
24965 (stmt_makes_single_store): Likewise.
24966 * tree-ssa-alias.c: Rewrite completely.
24967 (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
24968 debug_mem_sym_stats, dump_mem_sym_stats_for_var,
24969 debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
24970 delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
24971 dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
24972 Remove public functions.
24973 (pass_reset_cc_flags): Remove.
24974 (pass_build_alias): Move ...
24975 * tree-ssa-structalias.c (pass_build_alias): ... here.
24976 * tree-ssa-alias.c (may_be_aliased): Move ...
24977 * tree-flow-inline.h (may_be_aliased): ... here.
24978 tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
24979 count_uses_and_derefs): Move ...
24980 * gimple.c: ... here.
24981 * gimple.h (count_uses_and_derefs): Declare.
24982 * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
24983 ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
24984 same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
24985 indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
24986 ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
24987 call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
24988 get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
24989 New functions.
24990 * tree-dfa.c (refs_may_alias_p): Move ...
24991 * tree-ssa-alias.c (refs_may_alias_p): ... here. Extend.
24992 * tree-ssa-alias.h: New file.
24993 * tree-ssa-sink.c (is_hidden_global_store): Adjust.
24994 (statement_sink_location): Likewise.
24995 * opts.c (decode_options): Do not adjust max-aliased-vops or
24996 avg-aliased-vops values.
24997 * timevar.def (TV_TREE_MAY_ALIAS): Remove.
24998 (TV_CALL_CLOBBER): Likewise.
24999 (TV_FLOW_SENSITIVE): Likewise.
25000 (TV_FLOW_INSENSITIVE): Likewise.
25001 (TV_MEMORY_PARTITIONING): Likewise.
25002 (TV_ALIAS_STMT_WALK): New timevar.
25003 * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
25004 * tree-ssa-address.c (create_mem_ref_raw): Use build6.
25005 (get_address_description): Remove memory-tag related code.
25006 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
25007 * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
25008 * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
25009 and immediate uses in statements. Document.
25010 * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
25011 (dump_symbols): Remove.
25012 (dump_gimple_mem_ops): Do not dump loaded or stored syms.
25013 * alias.c (get_deref_alias_set): New function split out from ...
25014 (get_alias_set): ... here.
25015 * alias.h (get_deref_alias_set): Declare.
25016 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
25017 type parameter. Remove restrict pointer handling. Create a
25018 ref-all pointer in case type-based alias sets do not conflict.
25019 (vect_analyze_data_refs): Remove SMT related code.
25020 * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
25021 (vectorizable_load): Likewise.
25022 * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
25023 (DR_SYMBOL_TAG, DR_VOPS): Remove.
25024 * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
25025 Ignore vops and SMTs.
25026 (dr_analyze_alias): Likewise..
25027 (free_data_ref): Likewise.
25028 (create_data_ref): Likewise.
25029 (analyze_all_data_dependences): Likewise.
25030 (get_references_in_stmt): Adjust.
25031 * tree-flow-inline.h (gimple_aliases_computed_p,
25032 gimple_addressable_vars, gimple_call_clobbered_vars,
25033 gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
25034 factoring_name_p, mark_call_clobbered, clear_call_clobbered,
25035 compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
25036 gimple_mem_ref_stats): Remove.
25037 (gimple_vop): New function.
25038 (op_iter_next_use): Remove vuses and mayuses cases.
25039 (op_iter_next_def): Remove vdefs case.
25040 (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
25041 (clear_and_done_ssa_iter): Do not set removed fields.
25042 (op_iter_init): Likewise. Skip vuse and/or vdef if requested.
25043 Assert we are not iterating over vuses or vdefs if not also
25044 iterating over uses or defs.
25045 (op_iter_init_use): Likewise.
25046 (op_iter_init_def): Likewise.
25047 (op_iter_next_vdef): Remove.
25048 (op_iter_next_mustdef): Likewise.
25049 (op_iter_init_vdef): Likewise.
25050 (compare_ssa_operands_equal): Likewise.
25051 (link_use_stmts_after): Handle vuse operand.
25052 (is_call_used): Use is_call_clobbered.
25053 (is_call_clobbered): Global variables are always call clobbered,
25054 query the call-clobbers bitmap.
25055 (mark_call_clobbered): Ignore global variables.
25056 (clear_call_clobbered): Likewise.
25057 * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
25058 virtual operands sanity check.
25059 * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
25060 Remove.
25061 (TARGET_MEM_REF): Remove TMR_TAG operand.
25062 * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
25063 Remove call-clobber related code.
25064 (remove_referenced_var): Likewise. Do not clear mpt or symbol_mem_tag.
25065 (dump_variable): Do not dump SMTs, memory stats, may-aliases or
25066 partitions or escape reason.
25067 (get_single_def_stmt, get_single_def_stmt_from_phi,
25068 get_single_def_stmt_with_phi): Remove.
25069 (dump_referenced_vars): Tidy.
25070 (get_ref_base_and_extent): Allow bare decls.
25071 (collect_dfa_stats): Adjust.
25072 * graphite.c (rename_variables_in_stmt): Adjust.
25073 (graphite_copy_stmts_from_block): Likewise.
25074 (translate_clast): Likewise.
25075 * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
25076 (EXPR_DIES): New.
25077 (translate_vuse_through_block): Use the oracle.
25078 (phi_translate_1): Adjust.
25079 (value_dies_in_block_x): Use the oracle. Cache the outcome
25080 in EXPR_DIES.
25081 (valid_in_sets): Check if the VUSE for
25082 a REFERENCE is available.
25083 (eliminate): Do not remove stmts during elimination,
25084 instead queue and remove them afterwards.
25085 (do_pre): Do not rebuild alias info.
25086 (pass_pre): Run TODO_rebuild_alias before PRE.
25087 * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
25088 * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
25089 (mark_all_v_defs_stmt): Remove.
25090 (mark_all_v_defs_seq): Adjust.
25091 (sra_replace): Likewise.
25092 (scalarize_use): Likewise.
25093 (scalarize_copy): Likewise.
25094 (scalarize_init): Likewise.
25095 (scalarize_ldst): Likewise.
25096 (todoflags): Remove.
25097 (tree_sra): Do not rebuild alias info.
25098 (tree_sra_early): Adjust.
25099 (pass_sra): Run TODO_update_address_taken before SRA.
25100 * tree-predcom.c (set_alias_info): Remove.
25101 (prepare_initializers_chain): Do not call it.
25102 (mark_virtual_ops_for_renaming): Adjust.
25103 (mark_virtual_ops_for_renaming_list): Remove.
25104 (initialize_root_vars): Adjust.
25105 (initialize_root_vars_lm): Likewise.
25106 (prepare_initializers_chain): Likewise.
25107 * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
25108 (may_propagate_copy_into_stmt): Likewise.
25109 (merge_alias_info): Do nothing for now.
25110 (propagate_tree_value_into_stmt): Adjust.
25111 (stmt_may_generate_copy): Likewise.
25112 * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
25113 not mark symbols for renaming.
25114 (forward_propagate_addr_expr): Match up push/pop_stmt_changes
25115 with the same statement, make sure to update the new pointed-to one.
25116 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
25117 call statements, do not mark symbols for renaming.
25118 (mark_operand_necessary): Dump something.
25119 (ref_may_be_aliased): New function.
25120 (mark_aliased_reaching_defs_necessary_1): New helper function.
25121 (mark_aliased_reaching_defs_necessary): Likewise.
25122 (mark_all_reaching_defs_necessary_1): Likewise.
25123 (mark_all_reaching_defs_necessary): Likewise.
25124 (propagate_necessity): Do not process virtual PHIs. For
25125 non-aliased loads mark all reaching definitions as necessary.
25126 For aliased loads and stores mark the immediate dominating
25127 aliased clobbers as necessary.
25128 (visited): New global static.
25129 (perform_tree_ssa_dce): Free visited bitmap after propagating
25130 necessity.
25131 (remove_dead_phis): Perform simple dead virtual PHI removal.
25132 (remove_dead_stmt): Properly unlink virtual operands when
25133 removing stores.
25134 (eliminate_unnecessary_stmts): Schedule PHI removal after
25135 stmt removal.
25136 * tree-ssa-ter.c (is_replaceable_p): Adjust.
25137 (process_replaceable): Likewise.
25138 (find_replaceable_in_bb): Likewise.
25139 * tree-ssa.c (verify_ssa_name): Verify all VOPs are
25140 based on the single gimple vop.
25141 (verify_flow_insensitive_alias_info): Remove.
25142 (verify_flow_sensitive_alias_info): Likewise.
25143 (verify_call_clobbering): Likewise.
25144 (verify_memory_partitions): Likewise.
25145 (verify_alias_info): Likewise.
25146 (verify_ssa): Adjust..
25147 (execute_update_addresses_taken): Export. Update SSA
25148 manually. Optimize only when optimizing. Use a local bitmap.
25149 (pass_update_address_taken): Remove TODO_update_ssa, add
25150 TODO_dump_func.
25151 (pass_update_address_taken): Just use TODO_update_address_taken.
25152 (init_tree_ssa): Do not initialize addressable_vars.
25153 (verify_ssa): Verify new VUSE / VDEF properties.
25154 Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
25155 Do not call verify_alias_info.
25156 (delete_tree_ssa): Clear the VUSE, VDEF operands.
25157 Do not free the loaded and stored syms bitmaps. Reset the escaped
25158 and callused solutions. Do not free addressable_vars.
25159 Remove memory-tag related code.
25160 (warn_uninitialized_var): Aliases are always available.
25161 * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
25162 * lambda-code.c (can_put_in_inner_loop): Adjust.
25163 (can_put_after_inner_loop): Likewise.
25164 (perfect_nestify): Likewise.
25165 * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
25166 (vect_gen_widened_results_half): Remove CALL_EXPR handling.
25167 (vectorizable_conversion): Do not mark symbols for renaming.
25168 * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
25169 (expand_call_inline): Unlink the calls virtual operands before
25170 replacing it.
25171 (tree_function_versioning): Do not call update_ssa if we are not
25172 updating clones. Simplify.
25173 * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
25174 (propagate_with_phi): Likewise..
25175 * tree-outof-ssa.c (create_temp): Remove memory tag and call
25176 clobber code. Assert we are not aliased or global.
25177 * tree-flow.h: Include tree-ssa-alias.h
25178 (enum escape_type): Remove.
25179 (struct mem_sym_stats_d): Likewise.
25180 (struct mem_ref_stats_d): Likewise.
25181 (struct gimple_df): Add vop member. Remove global_var,
25182 call_clobbered_vars, call_used_vars, addressable_vars,
25183 aliases_compted_p and mem_ref_stats members. Add syms_to_rename,
25184 escaped and callused members.
25185 (struct ptr_info_def): Remove all members, add points-to solution
25186 member pt.
25187 (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
25188 call_clobbered, escape_mask, mpt and symbol_mem_tag members.
25189 * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
25190 (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
25191 (tree-ssa-alias.o): Likewise.
25192 (toplev.o): Add tree-ssa-alias.h
25193 (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
25194 * gimple.c (gimple_set_bb): Fix off-by-one error.
25195 (is_gimple_reg): Do not handle memory tags.
25196 (gimple_copy): Also copy virtual operands.
25197 Delay updating the statement. Do not reset loaded and stored syms.
25198 (gimple_set_stored_syms): Remove.
25199 (gimple_set_loaded_syms): Likewise.
25200 (gimple_call_copy_skip_args): Copy the virtual operands
25201 and mark the new statement modified.
25202 * tree-ssa-structalias.c (may_alias_p): Remove.
25203 (set_uids_in_ptset): Take the alias set to prune with as
25204 parameter. Fold in the alias test of may_alias_p.
25205 (compute_points_to_sets): Compute whether a ptr is dereferenced
25206 in a local sbitmap.
25207 (process_constraint): Deal with &ANYTHING on the lhs, reject all
25208 other ADDRESSOF constraints on the lhs.
25209 (get_constraint_for_component_ref): Assert that we don't get
25210 ADDRESSOF constraints from the base of the reference.
25211 Properly generate UNKNOWN_OFFSET for DEREF if needed.
25212 (struct variable_info): Remove collapsed_to member.
25213 (get_varinfo_fc): Remove.
25214 (new_var_info): Do not set collapsed_to.
25215 (dump_constraint): Do not follow cycles.
25216 (dump_constraint_graph): Likewise.
25217 (build_pred_graph): Likewise.
25218 (build_succ_graph): Likewise.
25219 (rewrite_constraints): Likewise.
25220 (do_simple_structure_copy): Remove.
25221 (do_rhs_deref_structure_copy): Remove.
25222 (do_lhs_deref_structure_copy): Remove.
25223 (collapse_rest_of_var): Remove.
25224 (do_structure_copy): Re-implement.
25225 (pta_stats): New global variable.
25226 (dump_pta_stats): New function.
25227 (struct constraint_expr): Make offset signed.
25228 (UNKNOWN_OFFSET): Define special value.
25229 (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
25230 (solution_set_expand): New helper function split out from ...
25231 (do_sd_constraint): ... here.
25232 (solution_set_add): Handle UNKNOWN_OFFSET. Handle negative offsets.
25233 (do_ds_constraint): Likewise.
25234 (do_sd_constraint): Likewise. Do not special-case ESCAPED = *ESCAPED
25235 and CALLUSED = *CALLUSED.
25236 (set_union_with_increment): Make inc argument signed.
25237 (type_safe): Remove.
25238 (get_constraint_for_ptr_offset): Handle unknown and negative
25239 constant offsets.
25240 (first_vi_for_offset): Handle offsets before start. Bail
25241 out early for offsets beyond the variable extent.
25242 (first_or_preceding_vi_for_offset): New function.
25243 (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
25244 Together with ESCAPED = *ESCAPED this properly computes reachability.
25245 (find_what_var_points_to): New function.
25246 (find_what_p_points_to): Implement in terms of find_what_var_points_to.
25247 (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
25248 pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
25249 pt_solutions_intersect): New functions.
25250 (compute_call_used_vars): Remove.
25251 (compute_may_aliases): New main entry into PTA computation.
25252 * gimple.h (gimple_p): New typedef.
25253 (struct gimple_statement_base): Remove references_memory_p.
25254 (struct gimple_statement_with_memory_ops_base): Remove
25255 vdef_ops, vuse_ops, stores and loads members. Add vdef and vuse
25256 members.
25257 (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
25258 gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
25259 gimple_set_references_memory): Remove.
25260 (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
25261 gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
25262 New functions.
25263 * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
25264 (verify_expr): Allow RESULT_DECL.
25265 (gimple_duplicate_bb): Do not copy virtual operands.
25266 (gimple_duplicate_sese_region): Adjust.
25267 (gimple_duplicate_sese_tail): Likewise.
25268 (mark_virtual_ops_in_region): Remove.
25269 (move_sese_region_to_fn): Do not call it.
25270 * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
25271 and pass_simple_dse.
25272 (execute_function_todo): Handle TODO_update_address_taken,
25273 call execute_update_addresses_taken for TODO_rebuild_alias.
25274 (execute_todo): Adjust.
25275 (execute_one_pass): Init dump files early.
25276 * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
25277 call-clobbered.
25278 (create_general_new_stmt): Clear vops.
25279 * tree-ssa-reassoc.c (get_rank): Adjust.
25280 * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
25281 symbols for renaming.
25282 * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
25283 (PARAM_AVG_ALIASED_VOPS): Likewise.
25284 * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
25285 (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
c72c72ef 25286 * tree-ssa-operands.c: Simplify for new virtual operand representation.
dd277d48 25287 (operand_build_cmp, copy_virtual_operands,
25288 create_ssa_artificial_load_stmt, add_to_addressable_set,
25289 gimple_add_to_addresses_taken): Remove public functions.
25290 (unlink_stmt_vdef): New function.
25291
8d40ea45 252922009-04-03 Alan Modra <amodra@bigpond.net.au>
25293
25294 * config.gcc (powerpc-*-linux*): Merge variants.
25295
0bfaf4c4 252962009-04-02 Chao-ying Fu <fu@mips.com>
943327c1 25297 James Grosbach <james.grosbach@microchip.com>
0bfaf4c4 25298
25299 * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
25300 num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
25301 cop0_sp_offset.
25302 (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
25303 keep_interrupts_masked_p, use_debug_exception_return_p.
25304 (mips_attribute_table): Add interrupt, use_shadow_register_set,
25305 keep_interrupts_masked, use_debug_exception_return.
25306 (mips_interrupt_type_p, mips_use_shadow_register_set_p,
25307 mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
25308 New functions.
25309 (mips_function_ok_for_sibcall): Return false for interrupt handlers.
25310 (mips_print_operand): Process COP0 registers to print $0 .. $31
25311 correctly for GAS to process.
25312 (mips_interrupt_extra_call_saved_reg_p): New function.
25313 (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
25314 extra registers.
25315 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
25316 (mips_compute_frame_info): Add supports for interrupt context that
25317 includes doubleword accumulators and COP0 registers.
25318 (mips_for_each_saved_acc): New function.
25319 (mips_for_each_saved_gpr_and_fpr): Change the function name from
25320 mips_for_each_saved_reg.
25321 (mips_save_reg): Save accumulators.
25322 (mips_kernel_reg_p): A new for_each_rtx callback.
25323 (mips_expand_prologue): Support interrupt handlers.
25324 (mips_restore_reg): Restore accumulators.
25325 (mips_expand_epilogue): Support interrupt handlers.
25326 (mips_can_use_return_insn): Return false for interrupt handlers.
25327 (mips_epilogue_uses): New function.
25328 * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
25329 UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
25330 (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
25331 cop0_move): New instructions.
25332 * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
25333 * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
25334 defines.
25335 (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
25336 New defines.
25337 (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
25338 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
25339 interrupt handlers, we use K0 as the temporary register.
25340 (EPILOGUE_USES): Change to a function call.
25341 * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
25342 handlers, we use K0 as the temporary register.
89871bab 25343
0bfaf4c4 25344 * doc/extend.texi (Function Attributes): Document interrupt,
25345 use_shadow_register_set, keep_interrupts_masked,
25346 use_debug_exception_return for MIPS attributes.
25347
47b92737 253482009-04-03 Alan Modra <amodra@bigpond.net.au>
25349
25350 * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
25351 Remove a number of t-files from tmake_file.
25352 * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
25353 * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
25354 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
25355 target_prototype, not TARGET_PROTOTYPE.
25356 (LINK_OS_GNU_SPEC): Define.
25357 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
25358 and darwin-ldoubdle.c.
25359
cc92bc82 253602009-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
25361
25362 PR driver/39293
25363 * gcc.c (save_temps_flag): Add support for -save-temps=obj.
25364 (cpp_options): Ditto.
25365 (default_compilers): Ditto.
25366 (display_help): Ditto.
25367 (process_command): Ditto.
25368 (do_spec_1): Ditto.
25369 (set_input): Use lbasename instead of duplicate code.
25370 (save_temps_prefix): New static for -save-temps=obj.
25371 (save_temps_length): Ditto.
89871bab 25372
cc92bc82 25373 * doc/invoke.texi (-save-temps=obj): Document new variant to
25374 -save-temps switch.
25375
1c2a5380 253762009-04-02 Jeff Law <law@redhat.com>
25377
25378 * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
25379 variable.
25380
1301d110 253812009-04-02 H.J. Lu <hongjiu.lu@intel.com>
25382
25383 * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
25384 * configure: Regenerated.
25385
14bd221c 253862009-04-02 Rafael Avila de Espindola <espindola@google.com>
25387
25388 * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
25389 share the argument list.
25390
64f3398b 253912009-04-02 Rafael Avila de Espindola <espindola@google.com>
25392
25393 Merge
25394
25395 2009-02-12 Diego Novillo <dnovillo@google.com>
25396
1301d110 25397 * varpool.c (debug_varpool): New.
25398 * cgraph.h (debug_varpool): Declare.
64f3398b 25399
0727d268 254002009-04-02 Jan Hubicka <jh@suse.cz>
25401
25402 * passes.c (init_optimization_passes): Remove two copies of ehcleanup
25403 pass.
25404
3bc1f2c4 254052009-04-02 H.J. Lu <hongjiu.lu@intel.com>
25406
25407 * config/i386/i386.c (ix86_abi): Move initialization to ...
25408 (override_options): Here.
25409
e1190e3a 254102009-04-02 Christian Bruel <christian.bruel@st.com>
25411
25412 * config/sh/sh.c (sh_dwarf_register_span): New function.
25413 (TARGET_DWARF_REGISTER_SPAN): Define.
25414 * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
89871bab 25415
792672f0 254162009-04-02 Ira Rosen <irar@il.ibm.com>
25417
25418 PR tree-optimization/39595
89871bab 25419 * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
792672f0 25420 interleaved loads group is not greater than the SLP group size.
25421
1c47b3e8 254222009-04-02 Rafael Avila de Espindola <espindola@google.com>
25423
25424 * builtins.c (is_builtin_name): New.
25425 (called_as_built_in): Use is_builtin_name.
25426 * tree.h (is_builtin_name): New.
25427 * varasm.c (incorporeal_function_p): Use is_builtin_name
25428
42aaa915 254292009-04-02 Andrew Stubbs <ams@codesourcery.com>
25430
25431 * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
25432
41771881 254332009-04-02 Dodji Seketeli <dodji@redhat.com>
25434
25435 PR c++/26693
09ec66c8 25436 * c-decl.c (clone_underlying_type): Move this ...
41771881 25437 * c-common.c (set_underlying_type): ... here.
25438 Also, make sure the function properly sets TYPE_STUB_DECL() on
25439 the newly created typedef variant type.
25440 * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
c72c72ef 25441 * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
25442 points.
41771881 25443
ac9b13de 254442009-04-02 Richard Guenther <rguenther@suse.de>
25445
25446 PR tree-optimization/37221
25447 * tree-flow.h (degenerate_phi_result): Declare.
25448 * tree-ssa-dom.c (degenerate_phi_result): Export.
25449 * tree-scalar-evolution.c (analyze_initial_condition): If
25450 the initial condition is defined by a degenerate PHI node
25451 use the degenerate value.
25452
959aa063 254532009-04-01 Eric Botcazou <ebotcazou@adacore.com>
25454
25455 PR rtl-optimization/39588
25456 * combine.c (merge_outer_ops): Do not set the constant when this
25457 is not necessary.
25458 (simplify_shift_const_1): Do not modify it either in this case.
25459
9e0aee4b 254602009-04-01 Steven Bosscher <steven@gcc.gnu.org>
25461
25462 * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
25463 tuning is deprecated if -mtune value is set to an Itanium1 variant.
25464
f8ed6d41 254652009-04-01 Janis Johnson <janis187@us.ibm.com>
25466
25467 PR c/29027
25468 * c-lex.c (interpret_float): Default (no suffix) is double.
25469
098581e0 254702009-04-1 Xinliang David Li <davidxl@google.com>
25471
25472 * config/i386/i386.c (legitimate_constant_p): Recognize
25473 all one vector constant.
25474
943327c1 254752009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
6718899e 25476
943327c1 25477 * config/vax/vax.c: Add #includes to silence warnings.
6718899e 25478 Change #include order to silence two warnings.
25479
943327c1 254802009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
6718899e 25481
943327c1 25482 * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
6718899e 25483 (ASM_SPEC): Pass -k to the assembler for PIC code.
25484
943327c1 254852009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
6718899e 25486
943327c1 25487 * config.gcc: Add vax-*-linux* to the switch.
25488 * config/vax/linux.h: New file. (TARGET_VERSION,
6718899e 25489 TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
25490
943327c1 254912009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
6718899e 25492
943327c1 25493 * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
6718899e 25494 Use predicate macros instead of GET_CODE() == foo.
943327c1 25495 * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
6718899e 25496 ashlsi3, rotrsi3, <unnamed>): Likewise.
25497
943327c1 254982009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
6718899e 25499
943327c1 25500 * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
6718899e 25501 jbbccihi, jbbccisi): Remova trailing whitespace.
943327c1 25502 * config/vax/constraints.md: Likewise.
d603963f 25503 * config/vax/elf.h (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
943327c1 25504 * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
25505 * config/vax/predicates.md: Likewise.
25506 * config/vax/vax.c (print_operand_address, vax_output_int_move,
6718899e 25507 vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
943327c1 25508 * config/vax/vax.h: Likewise.
25509 * config/vax/vax.md (nonlocal_goto): Likewise.
6718899e 25510
943327c1 255112009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
6718899e 25512
943327c1 25513 * config/vax/vax.c (vax_float_literal, vax_output_int_move)
6718899e 25514 (indirectable_address_p, adjacent_operands_p): Add spaces around
25515 braces.
943327c1 25516 * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
6718899e 25517
943327c1 255182009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
6718899e 25519
943327c1 25520 * config/vax/vax.c (legitimate_constant_address_p,
6718899e 25521 legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
25522 index_term_p, reg_plus_index_p, legitimate_address_p,
25523 vax_mode_dependent_address_p): Update comments to match functions
25524 modified by the recent int->bool conversion.
25525
943327c1 255262009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
6718899e 25527
943327c1 25528 * config/vax/builtins.md: Update copyright message.
25529 * config/vax/constraints.md: Likewise.
25530 * config/vax/netbsd-elf.h: Likewise.
25531 * config/vax/predicates.md: Likewise.
25532 * config/vax/vax-protos.h: Likewise.
25533 * config/vax/vax.c: Likewise.
25534 * config/vax/vax.h: Likewise.
25535 * config/vax/vax.md: Likewise.
25536 * config/vax/vax.opt: Likewise.
6718899e 25537
943327c1 255382009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
6718899e 25539
943327c1 25540 * config/vax/builtins.md (ffssi2, ffssi2_internal,
6718899e 25541 sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
943327c1 25542 * config/vax/constraints.md (B, R): Likewise.
25543 * config/vax/predicates.md (external_memory_operand,
6718899e 25544 nonimmediate_addsub_di_operand): Likewise.
943327c1 25545 * config/vax/vax.c (vax_output_int_add): Likewise.
25546 * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
6718899e 25547 untyped_call): Likewise.
25548
943327c1 255492009-04-01 Matt Thomas <matt@3am-software.com>
6718899e 25550
c72c72ef 25551 * config/vax/predicates.md: New file.
25552 (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
6718899e 25553 external_const_operand, nonsymbolic_operand, external_memory_operand,
25554 indirect_memory_operand, indexed_memory_operand,
25555 illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
25556 nonimmediate_addsub_di_operand, general_addsub_di_operand): New
25557 predicate.
c72c72ef 25558 * config/vax/constraints.md: New file.
25559 (Z0, U06, U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
25560 New constraint.
25561 * config/vax/builtins.md: New file.
25562 (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
25563 jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
25564 jbbccisi): Define.
6718899e 25565 * config/vax/vax.opt (mqmath): Add option.
25566 * config/vax/vax.md (isfx): Extend with DI.
25567 (VAXintQH, VAXintQHSD): Define.
25568 (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
25569 mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
25570 and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
25571 one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
25572 (movdi): Update constraints and use vax_output_int_move().
25573 (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
25574 movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
25575 pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
25576 nonlocal_goto): New.
25577 (mov<mode>): Extend accepted operand types.
25578 (subdi3_old): Rename from subdi3, change update constraints and use
25579 a new implementation.
943327c1 25580 * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
6718899e 25581 (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
25582 MOVE_RATIO, CLEAR_RATIO): Define.
25583 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
25584 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
25585 (PRINT_OPERAND): Redefine using a function instead of inlined code.
943327c1 25586 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
6718899e 25587 (split_quadword_operands): Make static and really allow variable
25588 splitting.
25589 (print_operand_address): Update for PIC generation.
25590 (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
25591 indexable_address_p, fixup_mathdi_operand,
25592 vax_expand_addsub_di_operands, adjacent_operands_p): New.
25593 (vax_float_literal, legitimate_constant_p,
25594 indirectable_constant_address_p, index_term_p,
25595 reg_plus_index_p): Return bool instead of int.
25596 (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
25597 where needed.
25598 (vax_output_int_move, vax_output_int_add): Extend to allow PIC
25599 generation.
25600 (vax_output_conditional_branch): Indent.
25601 (legitimate_constant_address_p, indirectable_constant_address_p,
25602 indirectable_address_p, nonindexed_address_p, legitimate_address_p,
25603 vax_mode_dependent_address_p): Return bool instead of int, update for
25604 PIC generation.
25605 * config/vax/vax-protos.h (legitimate_constant_address_p,
25606 legitimate_constant_p, legitimate_address_p,
25607 vax_mode_dependent_address_p): Change declaration to bool.
25608 (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
25609 vax_expand_addsub_di_operands, vax_output_int_subtract,
25610 vax_output_movmemsi): Declare.
25611 (split_quadword_operands, vax_float_literal): Delete declaration.
25612 * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
25613 * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
25614 VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
25615 ASM_OUTPUT_DWARF_PCREL): Define.
25616 (ASM_SPEC): Change definition to allow PIC generation.
25617
617606a7 256182009-04-01 Steve Ellcey <sje@cup.hp.com>
25619
25620 * doc/sourcebuild.texi: Update front-end requirements.
25621
c6afd8f1 256222009-04-01 Jakub Jelinek <jakub@redhat.com>
25623
25624 PR target/39226
25625 * config/rs6000/rs6000.md (andsi3_internal5_nomc,
25626 anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
25627 (booldi3_internal3): Use boolean_or_operator instead of
25628 boolean_operator.
25629
ce4e9a43 256302009-04-01 Joseph Myers <joseph@codesourcery.com>
25631
25632 PR c/39605
25633 * c-decl.c (grokdeclarator): Pedwarn for file-scope array
25634 declarator whose size is not an integer constant expression but
25635 folds to an integer constant, then treat it as a constant
25636 subsequently.
25637
04b63ffe 256382009-04-01 Richard Guenther <rguenther@suse.de>
25639
25640 * fold-const.c (fold_plusminus_mult_expr): Do not fold
25641 i * 4 + 2 to (i * 2 + 1) * 2.
25642
0930c694 256432009-04-01 Jakub Jelinek <jakub@redhat.com>
25644
25645 PR c/37772
25646 * c-parser.c (c_parser_asm_statement): Skip until close paren and
25647 return if c_parser_asm_string_literal returned NULL.
25648
c46bf770 256492009-04-01 Nick Clifton <nickc@redhat.com>
25650
25651 * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
25652 already defined.
25653 * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
25654 * config/m32c/m32c-lib2.c: Remove unused typedefs. Rename the
25655 other typedefs to avoid conflicts with libgcc2.c. Define labels
25656 to gain 16-bit bit-manipulation functions from libgcc2.c and then
25657 include it.
25658 * config/m32c/m32c-lib2-trapv.c: New file. Define labels
25659 to gain 16-bit trapping arithmetic functions from libgcc2.c and
25660 then include it.
25661
b5240a18 256622009-04-01 Rafael Avila de Espindola <espindola@google.com>
25663
c72c72ef 25664 * varasm.c (default_function_rodata_section): Declare DOT as
25665 const char*.
b5240a18 25666
4ccce102 256672009-04-01 Kai Tietz <kai.tietz@onevision.com>
943327c1 25668 Andrey Galkin <agalkin@hypercom.com>
4ccce102 25669
25670 PR/39492
25671 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
25672 Make object_name unique for each process.
25673
4a04f4b4 256742009-04-01 Jakub Jelinek <jakub@redhat.com>
25675
25676 PR other/39591
25677 * omp-low.c (remove_exit_barrier): Don't optimize if there are any
25678 addressable variables in the parallel that could go out of scope while
25679 running queued tasks.
25680
b4a3be2d 256812009-04-01 Anatoly Sokolov <aesok@post.ru>
25682
25683 * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
25684 (CASE_VALUES_THRESHOLD): Redefine.
25685 * config/avr/avr.c (avr_override_options): Remove initialization of
25686 avr_case_values_threshold variable.
25687 (avr_case_values_threshold): Remove variable. Add new function.
25688 * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
25689 * config/avr/avr.opt (mno-tablejump): Remove option.
25690 * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
25691
ac2a837e 256922009-04-01 DJ Delorie <dj@redhat.com>
25693
25694 * varasm.c (default_function_rodata_section): Don't assume
25695 anything about where the first '.' in the section name is.
25696
7cad077c 256972009-04-01 Alan Modra <amodra@bigpond.net.au>
25698
25699 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
25700 rs6000_emit_stack_tie.
25701
a5877c89 257022009-03-31 Ian Lance Taylor <iant@google.com>
25703
25704 * tree-eh.c (tree_remove_unreachable_handlers): Compare
25705 gimple_code with GIMPLE_RESX, not RESX.
25706
9e6687c8 257072009-03-31 Joseph Myers <joseph@codesourcery.com>
25708
25709 * c-common.c (c_get_ident): New.
c72c72ef 25710 (c_common_nodes_and_builtins): Call it for type names that may be NULL.
9e6687c8 25711
aa5ba529 257122009-04-01 Ben Elliston <bje@au.ibm.com>
25713
25714 * config/rs6000/sysv4.opt (msdata): Improve option description.
25715
3f970e2e 257162009-03-31 Steve Ellcey <sje@cup.hp.com>
25717
25718 * config/ia64/ia64.md (divsf3_internal_lat): Remove.
25719 (divdf3_internal_lat): Remove.
25720 (divxf3_internal_lat): Remove.
25721 (divxf3_internal_thr): Remove.
25722 (divxf): Use divxf3_internal.
25723 * config/ia64/div.md (divsf3_internal_lat): New.
25724 (divdf3_internal_lat): New.
25725 (divxf3_internal): New.
25726
f3449a3c 257272009-03-31 Joseph Myers <joseph@codesourcery.com>
25728
25729 PR c/448
25730 * Makefile.in (USE_GCC_STDINT): Define.
25731 (stmp-int-hdrs): Install stdint.h if applicable.
25732 * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
25733 if known.
25734 (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
25735 (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
25736 UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
25737 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
25738 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
25739 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
25740 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
25741 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
25742 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
25743 (c_common_nodes_and_builtins): Initialize
25744 underlying_wchar_type_node. Do not initialize
25745 signed_wchar_type_node or unsigned_wchar_type_node. Initialize
25746 nodes for new types.
25747 (c_stddef_cpp_builtins): Define macros for new types.
25748 * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
25749 Remove.
25750 (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
25751 CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
25752 CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
25753 CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
25754 CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
25755 CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
25756 CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
25757 CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
25758 CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
25759 (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
25760 (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
25761 int16_type_node, int32_type_node, int64_type_node,
25762 uint8_type_node, uint16_type_node, c_uint32_type_node,
25763 c_uint64_type_node, int_least8_type_node, int_least16_type_node,
25764 int_least32_type_node, int_least64_type_node,
25765 uint_least8_type_node, uint_least16_type_node,
25766 uint_least32_type_node, uint_least64_type_node,
25767 int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
25768 int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
25769 uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
25770 uintptr_type_node): Define.
25771 * c-cppbuiltin.c (builtin_define_constants,
25772 builtin_define_type_minmax): New.
25773 (builtin_define_stdint_macros): Define more macros.
25774 (c_cpp_builtins): Define more limit macros.
25775 (type_suffix): New.
25776 (builtin_define_type_max): Define in terms of
25777 builtin_define_type_minmax. Remove is_long parameter. All
25778 callers changed.
25779 * config.gcc (use_gcc_stdint): Define.
25780 (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
25781 Add newlib-stdint.h for generic targets.
25782 * config/glibc-stdint.h, config/newlib-stdint.h,
25783 ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
25784 * config/m32c/m32c.h (UINTPTR_TYPE): Define.
25785 * config/score/score.h (UINTPTR_TYPE): Define.
25786 * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
25787 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
25788 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
25789 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
25790 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
25791 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
25792 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
25793 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
25794 * config/spu/spu.h (STDINT_LONG32): Define.
25795 * configure.ac (use_gcc_stdint): Substitute.
25796 * configure: Regenerate.
25797 * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
25798 __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
25799 __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
25800 __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
25801 __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
25802 __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
25803 __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
25804 __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
25805 __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
25806 __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
25807 __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
25808 __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
25809 __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
25810 __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
25811 __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
25812 __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
25813 __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
25814 __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
25815 __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
25816 __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
25817 __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
25818 * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
25819 INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
25820 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
25821 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
25822 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
25823 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
25824 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
25825 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
25826
9bb5f693 258272009-03-31 Bernd Schmidt <bernd.schmidt@analog.com>
25828
25829 * loop-iv.c (suitable_set_for_replacement): Renamed from
25830 simplify_using_assignment; changed to return bool and to accept new
25831 args DEST and SRC. Return true iff we find a source/destination pair
25832 that can be used to make a replacement, and fill SRC and DEST if so.
25833 Remove arg ALTERED. Don't deal with altered regs here. All callers
25834 changed.
25835 (simplify_using_initial_values): Deal with altered regs here and track
25836 more precisely the effect they have on the validity of our expression.
25837
7f7a6f4a 25838 * loop-iv.c (simplify_using_condition): A condition of the form
25839 (EQ REG CONST) can be used to simply make a substitution.
25840 (simplify_using_initial_values): Keep track of conditions we have seen
25841 and keep using them to simplify new expressions, while applying the
25842 same substitutions to them as to the expression.
25843
d2cb78ca 25844 * simplify-rtx.c (simplify_relational_operation_1): Simplify
25845 (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
25846 GEU/LTU reversed.
25847
f77c1bb0 25848 * loop-iv.c (determine_max_iter): New arg OLD_NITER. All callers
25849 changed. Use this when trying to improve the upper bound.
25850 Generate the comparison by using simplify_gen_relational.
25851
b908751e 25852 * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
25853
767cb310 25854 * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
25855 functions.
89871bab 25856 (simplify_using_assignment, simplify_using_initial_values): Call
767cb310 25857 replace_in_expr to make replacements. Call replace_single_def_regs
25858 once on the initial version of the expression.
25859
ee933f51 258602009-03-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25861
9b57ed9f 25862 PR target/27237
ee933f51 25863 * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
89871bab 25864
172e662b 258652009-03-31 Richard Guenther <rguenther@suse.de>
25866
25867 PR middle-end/31029
25868 * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
25869 equality comparisons. Fold C - X CMP X if C % 2 == 1.
25870
401d1fb3 258712009-03-31 Richard Guenther <rguenther@suse.de>
25872
25873 * tree.h (div_if_zero_remainder): Declare.
25874 * fold-const.c (div_if_zero_remainder): Export.
25875 * tree-ssa-forwprop.c
25876 (forward_propagate_addr_into_variable_array_index): Handle
25877 constant array index addition outside of the variable index.
25878
eedfcb26 258792009-03-31 Joseph Myers <joseph@codesourcery.com>
25880
25881 PR target/39592
25882 * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
25883 define_splits, floatunssi<mode>2): Require x87 conversions from
25884 DImode to be permitted.
25885
ff903809 258862009-03-31 Joseph Myers <joseph@codesourcery.com>
25887
25888 PR preprocessor/15638
25889 * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
25890
47f11e84 258912009-03-31 Richard Guenther <rguenther@suse.de>
25892
25893 PR middle-end/23401
25894 PR middle-end/27810
25895 * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
25896 (struct tree_decl_with_vis): Remove gimple_formal_temp member.
25897 * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
25898 a separate statement.
25899 * gimplify.c (pop_gimplify_context): Remove formal temp handling.
25900 (lookup_tmp_var): Likewise.
25901 (is_gimple_formal_tmp_or_call_rhs): Remove.
25902 (is_gimple_reg_or_call_rhs): Rename to ...
25903 (is_gimple_reg_rhs_or_call): ... this.
25904 (is_gimple_mem_or_call_rhs): Rename to ...
25905 (is_gimple_mem_rhs_or_call): ... this.
25906 (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call. Set
25907 DECL_GIMPLE_REG_P only if is_formal is true.
25908 (gimplify_compound_lval): Use is_gimple_reg. Remove workaround
25909 for non-proper post-modify expression gimplification.
25910 (gimplify_self_mod_expr): For post-modify expressions gimplify
25911 the lvalue to a minimal lvalue.
25912 (rhs_predicate_for): Remove formal temp case.
25913 (gimplify_modify_expr_rhs): Likewise.
25914 (gimplify_addr_expr): Use is_gimple_reg.
25915 (gimplify_expr): Remove formal temp cases.
25916 (gimple_regimplify_operands): Likewise.
25917 * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
25918 and FILTER_EXPR like constants.
25919 * gimple.c (walk_gimple_op): Fix val_only initialization, use
25920 is_gimple_reg.
25921 (is_gimple_formal_tmp_rhs): Remove.
25922 (is_gimple_reg_rhs): Remove special casing.
25923 (is_gimple_mem_rhs): Fix.
25924 (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
25925 (is_gimple_formal_tmp_var): Remove.
25926 (is_gimple_formal_tmp_reg): Likewise.
25927 (is_gimple_min_lval): Allow invariant component ref parts.
25928 * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
25929 is_gimple_formal_tmp_reg): Remove declarations.
25930 * tree-cfg.c (verify_expr): Verify that variables with address
25931 taken do not have DECL_GIMPLE_REG_P set.
25932 * tree-mudflap.c (mf_build_check_statement_for): Use
25933 force_gimple_operand instead of gimplify_expr.
25934
7af239b5 259352009-03-31 Ayal Zaks <zaks@il.ibm.com>
25936
25937 * modulo-sched.c (sms_schedule_by_order): Pass the actual
25938 schedulable rows to compute_split_row.
25939
09271b9d 259402009-03-31 Ben Elliston <bje@au.ibm.com>
25941
25942 PR target/31635
25943 * config/rs6000/rs6000.c (rs6000_handle_option): Handle
25944 OPT_mvrsave.
25945
d46ea878 259462009-03-31 Alan Modra <amodra@bigpond.net.au>
25947
25948 * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
25949 * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
25950 * configure: Regenerate.
25951 * config.in: Regenerate.
25952 * config/rs6000/rs6000.opt (mtls-markers): Add.
25953 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
25954 * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
25955 (tls_ld_aix, tls_ld_sysv): Likewise.
25956 (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
25957 (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
25958
6ce64557 259592009-03-31 Alan Modra <amodra@bigpond.net.au>
25960
25961 * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
25962
d6d5ab2d 259632009-03-30 Jan Hubicka <jh@suse.cz>
25964
6ce64557 25965 * tree-eh.c (make_eh_edges): Set probability 100% to first edge
25966 out of RESX.
25967 (tree_remove_unreachable_handlers): Cleanup EH predecestor
25968 detection and label handling.
d6d5ab2d 25969
951e5184 259702009-03-30 Vladimir Makarov <vmakarov@redhat.com>
25971
25972 * ira-int.h (ira_allocno): Rename left_conflicts_num to
25973 left_conflicts_size.
25974 (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
25975 ALLOCNO_LEFT_CONFLICTS_SIZE.
25976
25977 * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
25978 remove_allocno_from_bucket_and_push,
25979 allocno_spill_priority_compare, push_allocnos_to_stack,
25980 setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
25981 instead of ALLOCNO_LEFT_CONFLICTS_NUM.
25982 (setup_allocno_left_conflicts_num): Ditto. Rename to
25983 setup_allocno_left_conflicts_size.
25984 (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
25985 instead of ALLOCNO_LEFT_CONFLICTS_NUM and
25986 setup_allocno_left_conflicts_size instead of
25987 setup_allocno_left_conflicts_num.
25988
25989 * ira-build.c (ira_create_allocno): Use
25990 ALLOCNO_LEFT_CONFLICTS_SIZE instead of
25991 ALLOCNO_LEFT_CONFLICTS_NUM.
89871bab 25992
cb250333 259932009-03-30 Vladimir Makarov <vmakarov@redhat.com>
25994
25995 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
25996 instead of DF_LR_OUT.
25997
25998 * ira-lives.c (process_bb_node_lives): Ditto.
25999
26000 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
26001 instead of DF_LR_{OUT,IN}.
26002
26003 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
26004
26005 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
26006
dfcd8d23 260072009-03-30 Jan Hubicka <jh@suse.cz>
26008
26009 * except.c (label_to_region_map): Fix thinko.
26010
a7bc9181 260112009-03-30 Steve Ellcey <sje@cup.hp.com>
26012
26013 PR middle-end/38237
26014 * tree.h (tree_find_value): New declaration.
26015 * tree.c (tree_find_value): New function.
26016 * varasm.c (assemble_external): Avoid duplicate entries on lists.
26017
6fb80942 260182009-03-30 Jakub Jelinek <jakub@redhat.com>
26019
26020 PR debug/39563
26021 * c-decl.c (struct c_binding): Add locus field.
26022 (bind): Add locus argument, set locus field from it.
26023 (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
26024 add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
26025 (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
26026 implicitly_declare, undeclared_variable, lookup_label,
26027 declare_label, c_make_fname_decl, c_builtin_function,
26028 c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
26029 bind callers.
26030
7dfbd804 260312009-03-30 H.J. Lu <hongjiu.lu@intel.com>
076a4c5c 26032
26033 PR target/38781
26034 * config/i386/i386.c (classify_argument): Check total size of
26035 structure.
26036
ba3a7ba0 260372009-03-30 Martin Jambor <mjambor@suse.cz>
26038
26039 * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
26040 IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
26041 IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
26042 respectively.
26043
26044 * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
26045 seen_variable_array_ref while also traversing a union.
26046
26047 * tree-inline.c (optimize_inline_calls): Do not call
26048 cgraph_node_remove_callees.
26049 * cgraphbuild.c (remove_cgraph_callee_edges): New function.
26050 (pass_remove_cgraph_callee_edges): New variable.
26051 * passes.c (init_optimization_passes): Add
26052 pass_remove_cgraph_callee_edges after early inlining and before all
26053 late intraprocedural passes.
26054
26055 * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
26056
914301dc 260572009-03-30 Paolo Bonzini <bonzini@gnu.org>
26058
26059 * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
26060 Fix typos in names.
26061
0d79facf 260622009-03-30 Paolo Bonzini <bonzini@gnu.org>
26063
9b57ed9f 26064 * combine.c (simplify_comparison): Use have_insn_for.
26065 * dojump.c (do_jump): Likewise.
0d79facf 26066
bbc6e6c4 260672009-03-30 Paolo Bonzini <bonzini@gnu.org>
26068
26069 * config/sparc/sparc.c (sparc_compare_emitted): Remove.
26070 (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
26071 sparc_compare_op0 like sparc_compare_emitted used to be handled.
26072 (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
26073 instead of sparc_compare_emitted.
26074 * config/sparc/sparc.h (sparc_compare_emitted): Remove.
26075 * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
26076 instead of sparc_compare_emitted.
26077
ee4d588d 260782009-03-30 Paolo Bonzini <bonzini@gnu.org>
26079
26080 * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
26081 enter/exit cfglayout mode.
26082 (pass_partition_block): Require it.
26083 * combine.c (find_single_use, reg_dead_at_p): Use CFG.
26084 (combine_instructions): Track basic blocks instead of labels.
26085 (update_cfg_for_uncondjump): New.
26086 (try_combine): Use it. Update jumps after rescanning.
26087 (pass_combine): Require PROP_cfglayout.
26088 * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
26089
30678076 260902009-03-30 Paolo Bonzini <bonzini@gnu.org>
26091
9b57ed9f 26092 * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
26093 Provide/destroy PROP_cfglayout respectively.
26094 * gcse.c (pass_jump_bypass, pass_gcse): Require it.
26095 * tree-pass.h (PROP_cfglayout): New.
30678076 26096
62126877 260972009-03-30 Paolo Bonzini <bonzini@gnu.org>
26098
26099 * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
26100 fold_convert_const_fixed_from_fixed,
26101 fold_convert_const_fixed_from_int,
26102 fold_convert_const_fixed_from_real, fold_negate_const): Do not
26103 set TREE_CONSTANT_OVERFLOW.
26104 * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
26105 * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
26106
fb85abff 261072009-03-30 Ira Rosen <irar@il.ibm.com>
26108
26109 * tree-vect-loop-manip.c: New file.
26110 * tree-vectorizer.c: Update documentation and included files.
26111 (vect_loop_location): Make extern.
26112 (rename_use_op): Move to tree-vect-loop-manip.c
89871bab 26113 (rename_variables_in_bb, rename_variables_in_loop,
26114 slpeel_update_phis_for_duplicate_loop,
fb85abff 26115 slpeel_update_phi_nodes_for_guard1,
26116 slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
26117 slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
26118 slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
89871bab 26119 set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
fb85abff 26120 find_loop_location): Likewise.
26121 (new_stmt_vec_info): Move to tree-vect-stmts.c.
26122 (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
26123 get_vectype_for_scalar_type, vect_is_simple_use,
26124 supportable_widening_operation, supportable_narrowing_operation):
26125 Likewise.
26126 (bb_in_loop_p): Move to tree-vect-loop.c.
89871bab 26127 (new_loop_vec_info, destroy_loop_vec_info,
26128 reduction_code_for_scalar_code, report_vect_op,
fb85abff 26129 vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
26130 (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
26131 (vect_supportable_dr_alignment): Likewise.
26132 * tree-vectorizer.h (tree-data-ref.h): Include.
26133 (vect_loop_location): Declare.
26134 Reorganize function declarations according to the new file structure.
26135 * tree-vect-loop.c: New file.
89871bab 26136 * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
fb85abff 26137 tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
26138 * tree-vect-data-refs.c: New file.
26139 * tree-vect-patterns.c (timevar.h): Don't include.
26140 * tree-vect-stmts.c: New file.
89871bab 26141 * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
fb85abff 26142 tree-vect-slp.c, tree-vect-loop.c.
89871bab 26143 * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
26144 tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
fb85abff 26145 tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
26146 (tree-vect-analyze.o): Remove.
26147 (tree-vect-transform.o): Likewise.
26148 (tree-vect-data-refs.o): Add rule.
89871bab 26149 (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
fb85abff 26150 tree-vect-slp.o): Likewise.
26151 (tree-vect-patterns.o): Remove redundant dependencies.
26152 (tree-vectorizer.o): Likewise.
26153 * tree-vect-slp.c: New file.
26154
0863a8f4 261552009-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26156
26157 * optc-gen.awk: Warn if an option flag has multiple different
26158 help strings.
26159
0606fb97 261602009-03-30 Sebastian Pop <sebastian.pop@amd.com>
26161
26162 * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
26163 -floop-block): Document dependences on PPL, CLooG and Graphite.
26164
c6418a4e 261652009-03-30 Joseph Myers <joseph@codesourcery.com>
26166
26167 PR rtl-optimization/323
26168 * c-common.c (c_fully_fold, convert_and_check,
26169 c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
26170 (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
26171 * c-common.def (EXCESS_PRECISION_EXPR): New.
26172 * c-cppbuiltin.c (builtin_define_float_constants): Define
26173 constants with enough digits for long double.
26174 * c-lex.c (interpret_float): Interpret constant with excess
26175 precision where appropriate.
26176 * c-opts.c (c_common_post_options): Set
26177 flag_excess_precision_cmdline. Give an error for
26178 -fexcess-precision=standard for C++ for processors where the
26179 option is significant.
26180 * c-parser.c (c_parser_conditional_expression): Handle excess
26181 precision in condition.
26182 * c-typeck.c (convert_arguments): Handle arguments with excess
26183 precision.
26184 (build_unary_op): Move excess precision outside operation.
26185 (build_conditional_expr): Likewise.
26186 (build_compound_expr): Likewise.
26187 (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
26188 (build_modify_expr): Handle excess precision in RHS.
26189 (convert_for_assignment): Handle excess precision in converted
26190 value.
26191 (digest_init, output_init_element, process_init_element): Handle
26192 excess precision in initializer.
26193 (c_finish_return): Handle excess precision in return value.
26194 (build_binary_op): Handle excess precision in operands and add
26195 excess precision as needed for operation.
26196 * common.opt (-fexcess-precision=): New option.
26197 * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
26198 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
26199 For standard excess precision, output explicit conversion to and
26200 truncation from XFmode.
26201 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
26202 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
26203 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
26204 define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
26205 define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
26206 floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
26207 divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
26208 *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
26209 *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
26210 define_splits, sqrt<mode>2): Disable where appropriate for
26211 standard excess precision.
26212 * convert.c (convert_to_real): Do not shorten arithmetic to type
26213 for which excess precision would be used.
26214 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
26215 * doc/invoke.texi (-fexcess-precision=): Document option.
26216 (-mfpmath=): Correct index entry.
26217 * flags.h (enum excess_precision, flag_excess_precision_cmdline,
26218 flag_excess_precision): New.
26219 * langhooks.c (lhd_post_options): Set
26220 flag_excess_precision_cmdline.
26221 * opts.c (common_handle_option): Handle -fexcess-precision=.
26222 * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
26223 init_excess_precision): New.
26224 (lang_dependent_init_target): Call init_excess_precision.
26225 * tree.c (excess_precision_type): New.
26226 * tree.h (excess_precision_type): Declare.
26227
7666d572 262282009-03-30 Joseph Myers <joseph@codesourcery.com>
26229
26230 PR c/35235
26231 * c-typeck.c (build_component_ref): Do not copy qualifiers from
26232 non-lvalue to component.
26233
7f5f3953 262342009-03-29 Joseph Myers <joseph@codesourcery.com>
26235
26236 PR preprocessor/34695
26237 * Makefile.in (c-opts.o): Depend on c-tree.h.
26238 * c-common.c: Move down include of diagnostic.h.
26239 (done_lexing, c_cpp_error): New.
26240 * c-common.h (done_lexing): Declare.
26241 * c-decl.c (c_write_global_declarations): Don't check cpp_errors
26242 (parse_in).
26243 * c-opts.c: Include c-tree.h.
26244 (c_common_init_options): Set preprocessor error callback.
26245 (c_common_handle_option): Do not set preprocessor
26246 inhibit_warnings, warnings_are_errors, warn_system_headers,
26247 pedantic_errors or inhibit_warnings flags.
26248 (c_common_post_options): Do not check cpp_errors (parse_in).
26249 (c_common_finish): Do not output dependencies if there were
26250 errors. Do not check return value of cpp_finish.
26251 * c-ppoutput.c (pp_file_change): Set input_location.
26252 * c-tree.h (c_cpp_error): Declare.
26253 * diagnostic.c (diagnostic_set_info_translated): Also initialize
26254 override_column.
26255 (diagnostic_build_prefix): Check override_column.
26256 * diagnostic.h (diagnostic_info): Add override_column field.
26257 (diagnostic_override_column): Define.
26258
862f468c 262592009-03-28 Paolo Bonzini <bonzini@gnu.org>
26260
aca60c7b 26261 * c-common.c (c_expand_expr, c_staticp): Remove.
26262 * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
26263 * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
26264 COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
26265 * c-gimplify.c (gimplify_compound_literal_expr,
26266 optimize_compound_literals_in_ctor): Remove.
26267 (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
26268 * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
26269 * c-semantics.c (emit_local_var): Remove.
26270
26271 * langhooks-def.h (lhd_expand_expr): Remove.
26272 * langhooks.c (lhd_expand_expr): Remove.
26273 * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
26274
26275 * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
26276 handling from c-semantics.c; don't call into langhook.
26277 (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
26278 * gimplify.c (gimplify_compound_literal_expr,
26279 optimize_compound_literals_in_ctor): Move from c-gimplify.c.
26280 (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
26281 (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
26282 as was done in c-gimplify.c.
26283 * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
26284 * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
26285 Move from c-common.h.
26286 * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
862f468c 26287
26288 * tree.c (staticp): Do not call langhook.
26289 * langhooks.c (lhd_staticp): Delete.
26290 * langhooks-def.h (lhd_staticp): Delete prototype.
26291 (LANG_HOOKS_STATICP): Delete.
26292 (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
26293
aca60c7b 26294 * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
26295 instead of DECL_STMTs.
862f468c 26296
a75b1c71 262972009-03-29 Joseph Myers <joseph@codesourcery.com>
26298
26299 PR c/456
26300 PR c/5675
26301 PR c/19976
26302 PR c/29116
26303 PR c/31871
26304 PR c/35198
26305 * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
26306 void_type_node.
26307 (fold_call_expr): Return a NOP_EXPR from folding rather than the
26308 contained expression.
aca60c7b 26309 * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
a75b1c71 26310 (c_common_truthvalue_conversion): Use c_save_expr. Do not fold
26311 conditional expressions for C.
26312 (decl_constant_value_for_optimization): Move from
aca60c7b 26313 decl_constant_value_for_broken_optimization in c-typeck.c. Check
a75b1c71 26314 whether optimizing and that the expression is a VAR_DECL not of
26315 array type instead of doing such checks in the caller. Do not
26316 check pedantic. Call gcc_unreachable for C++.
26317 * c-common.def (C_MAYBE_CONST_EXPR): New.
26318 * c-common.h (c_fully_fold, c_save_expr,
26319 decl_constant_value_for_optimization): New prototypes.
26320 (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
26321 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
26322 EXPR_INT_CONST_OPERANDS): Define.
26323 * c-convert.c (convert): Strip nops from expression.
26324 * c-decl.c (groktypename): Take extra parameters expr and
26325 expr_const_operands. Update call to grokdeclarator.
26326 (start_decl): Update call to grokdeclarator. Add statement for
26327 expressions used in type of decl.
26328 (grokparm): Update call to grokdeclarator.
26329 (push_parm_decl): Update call to grokdeclarator.
26330 (build_compound_literal): Add parameter non_const and build a
26331 C_MAYBE_COSNT_EXPR if applicable.
26332 (grokdeclarator): Take extra parameters expr and
26333 expr_const_operands. Track expressions used in declaration
26334 specifiers and declarators. Fold array sizes and track whether
26335 they are constant expressions and whether they are integer
26336 constant expressions.
26337 (parser_xref_tag): Set expr and expr_const_operands fields in
26338 return value.
26339 (grokfield): Update call to grokdeclarator.
26340 (start_function): Update call to grokdeclarator.
26341 (build_null_declspecs): Set expr and expr_const_operands fields in
26342 return value.
26343 (declspecs_add_type): Handle expressions in typeof specifiers.
26344 * c-parser.c (c_parser_declspecs): Set expr and
26345 expr_const_operands fields for declaration specifiers.
26346 (c_parser_enum_specifier): Likewise.
26347 (c_parser_struct_or_union_specifier): Likewise.
26348 (c_parser_typeof_specifier): Likewise. Update call to
26349 groktypename. Fold expression as needed. Return expressions with
26350 type instead of adding statements.
26351 (c_parser_attributes): Update calls to c_parser_expr_list.
26352 (c_parser_statement_after_labels): Fold expression before passing
26353 to objc_build_throw_stmt.
26354 (c_parser_condition): Fold expression.
26355 (c_parser_asm_operands): Fold expression.
26356 (c_parser_conditional_expression): Use c_save_expr. Update call
26357 to build_conditional_expr.
26358 (c_parser_alignof_expression): Update call to groktypename.
26359 (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
26360 original_code. Fold expression argument of va_arg. Create
26361 C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
26362 argument to va_arg. Update calls to groktypename. Fold array
26363 index for offsetof. Verify that first argument to
26364 __builtin_choose_expr has integer type.
26365 (c_parser_postfix_expression_after_paren_type): Update calls to
26366 groktypename and build_compound_literal. Handle expressions with
26367 side effects in type name.
26368 (c_parser_postfix_expression_after_primary): Update call to
26369 c_parser_expr_list. Set original_code for calls to
26370 __builtin_constant_p.
26371 (c_parser_expr_list): Take extra parameter fold_p. Fold
26372 expressions if requested.
26373 (c_parser_objc_type_name): Update call to groktypename.
26374 (c_parser_objc_synchronized_statement): Fold expression.
26375 (c_parser_objc_receiver): Fold expression.
26376 (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
26377 (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
26378 c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
26379 * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
26380 (struct c_typespec): Add elements expr and expr_const_operands.
26381 (struct c_declspecs): Add elements expr and expr_const_operands.
26382 (groktypename, build_conditional_expr, build_compound_literal):
26383 Update prototypes.
26384 (in_late_binary_op): Declare.
26385 * c-typeck.c (note_integer_operands): New function.
26386 (in_late_binary_op): New variable.
26387 (decl_constant_value_for_broken_optimization): Move to c-common.c
26388 and rename to decl_constant_value_for_optimization.
26389 (default_function_array_conversion): Do not strip nops.
26390 (default_conversion): Do not call
26391 decl_constant_value_for_broken_optimization.
26392 (build_array_ref): Do not fold result.
26393 (c_expr_sizeof_expr): Fold operand. Use C_MAYBE_CONST_EXPR for
26394 result when operand is a VLA.
26395 (c_expr_sizeof_type): Update call to groktypename. Handle
26396 expressions included in type name. Use C_MAYBE_CONST_EXPR for
26397 result when operand names a VLA type.
26398 (build_function_call): Update call to build_compound_literal.
26399 Only fold result for calls to __builtin_* functions. Strip
26400 NOP_EXPR from INTEGER_CST returned from such functions. Fold
26401 the function designator.
26402 (convert_arguments): Fold arguments. Update call to
26403 convert_for_assignment.
26404 (build_unary_op): Handle increment and decrement of
26405 C_MAYBE_CONST_EXPR. Move lvalue checks for increment and
26406 decrement earlier. Fold operand of increment and decrement.
26407 Handle address of C_MAYBE_CONST_EXPR. Only fold expression being
26408 built for integer operand. Wrap returns that are INTEGER_CSTs
26409 without being integer constant expressions or that have integer
26410 constant operands without being INTEGER_CSTs.
26411 (lvalue_p): Handle C_MAYBE_CONST_EXPR.
26412 (build_conditional_expr): Add operand ifexp_bcp. Track whether
26413 result is an integer constant expression or can be used in
26414 unevaluated parts of one and avoid folding and wrap as
26415 appropriate. Fold operands before possibly doing -Wsign-compare
26416 warnings.
26417 (build_compound_expr): Wrap result for C99 if operands can be used
26418 in integer constant expressions.
26419 (build_c_cast): Update call to digest_init. Do not ignore
26420 overflow from casting floating-point constants to integers. Wrap
26421 results that could be confused with integer constant expressions,
26422 null pointer constants or floating-point constants.
26423 (c_cast_expr): Update call to groktypename. Handle expressions
26424 included in type name.
26425 (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR. Fold
26426 lhs inside possible SAVE_EXPR. Fold RHS before assignment.
26427 Update calls to convert_for_assignment.
26428 (convert_for_assignment): Take new parameter
26429 null_pointer_constant. Do not strip nops or call
26430 decl_constant_value_for_broken_optimization. Set
26431 in_late_binary_op for conversions to boolean.
26432 (store_init_value): Update call to digest_init.
26433 (digest_init): Take new parameter null_pointer_constant. Do not
26434 call decl_constant_value_for_broken_optimization. pedwarn for
26435 initializers not constant expressions. Update calls to
26436 convert_for_assignment.
26437 (constructor_nonconst): New.
26438 (struct constructor_stack): Add nonconst element.
26439 (really_start_incremental_init, push_init_level, pop_init_level):
26440 Handle constructor_nonconst and nonconst element.
26441 (set_init_index): Call constant_expression_warning for array
26442 designators.
26443 (output_init_element): Fold value. Set constructor_nonconst as
26444 applicable. pedwarn for initializers not constant expressions.
26445 Update call to digest_init. Call constant_expression_warning
26446 where constant initializers are required.
26447 (process_init_element): Use c_save_expr.
26448 (c_finish_goto_ptr): Fold expression.
26449 (c_finish_return): Fold return value. Update call to
26450 convert_for_assignment.
26451 (c_start_case): Fold switch expression.
26452 (c_process_expr_stmt): Fold expression.
26453 (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
aca60c7b 26454 ensure statement expression is not evaluated in constant expression.
a75b1c71 26455 (build_binary_op): Track whether results are integer constant
26456 expressions or may occur in such, disable folding and wrap results
26457 as applicable. Fold operands for -Wsign-compare warnings unless
26458 in_late_binary_op.
26459 (c_objc_common_truthvalue_conversion): Handle results folded to
26460 integer constants that are not integer constant expressions.
26461 * doc/extend.texi: Document when typeof operands are evaluated,
26462 that condition of __builtin_choose_expr is an integer constant
26463 expression, and more about use of __builtin_constant_p in
26464 initializers.
26465
088cc5d5 264662009-03-29 Richard Guenther <rguenther@suse.de>
26467
26468 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
26469 propagate addresses of array references.
26470
68e09621 264712009-03-29 Steven Bosscher <steven@gcc.gnu.org>
26472
26473 * regmove.c (perhaps_ends_bb_p): Remove.
26474 (optimize_reg_copy_1): Don't call perhaps_ends_bb_p. Get basic block
26475 from INSN and check that the main loop stays within that basic block.
26476 (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
26477 (regmove_forward_pass): Split out from regmove_optimize. Use
26478 FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
26479 (regmove_backward_pass): Split out from regmove_optimize. Use
26480 FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
26481 (regmove_optimize): Simplify.
26482
40513f40 264832009-03-29 H.J. Lu <hongjiu.lu@intel.com>
26484
26485 PR target/39545
26486 * config/i386/i386.c (classify_argument): Ignore flexible array
26487 member in struct and warn ABI change.
26488
0d3a7d37 264892009-03-29 H.J. Lu <hongjiu.lu@intel.com>
26490
26491 * config/i386/i386-protos.h (ix86_agi_dependent): New.
26492
26493 * config/i386/i386.c (ix86_agi_dependent): Rewrite.
26494 (ix86_adjust_cost): Updated.
26495
4c5fcca6 264962009-03-29 Jan Hubicka <jh@suse.cz>
26497
26498 PR middle-end/28850
26499 * tree-pass.h (pass_cleanup_eh): New function.
26500 (remove_unreachable_regions): Break code handling RTL
26501 to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
26502 that can not be reached by runtime.
26503 (can_be_reached_by_runtime): New function.
26504 (label_to_region_map): New function.
26505 (num_eh_regions): New function.
26506 (rtl_remove_unreachable_regions): New function.
26507 (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
26508 (remove_eh_region): New function.
26509 * except.h: Include sbitmap and vecprim.
26510 (remove_eh_region, remove_unreachable_regions, label_to_region_map,
26511 num_eh_regions): Declare.
26512 * passes.c (init_optimization_passes): Schedule cleanup_eh.
aca60c7b 26513 * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
4c5fcca6 26514 * tree-eh.c (tree_remove_unreachable_handlers): New function.
26515 (tree_empty_eh_handler_p): New function.
26516 (cleanup_empty_eh): New function.
26517 (cleanup_eh): New function.
26518 (pass_cleanup_eh): New function.
26519
b8c0c866 265202009-03-29 Jan Hubicka <jh@suse.cz>
26521
26522 * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
26523 for removed regions.
26524
bb22691b 265252009-03-29 Jan Hubicka <jh@suse.cz>
26526
26527 * except.c (dump_eh_tree): Dump all datastructures.
26528
cd451a8b 265292009-03-29 Jan Hubicka <jh@suse.cz>
26530
26531 * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
26532 (duplicate_eh_regions_1): Likewise.
26533 (duplicate_eh_regions): Likewise; cleanup code gorwing the region
26534 vector; call EH verification.
26535 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
26536 Be ready for region being removed.
26537
ffa800d1 265382009-03-29 Jan Hubicka <jh@suse.cz>
26539
26540 * bitmap.c (bitmap_last_set_bit): New function.
26541 * bitmap.h (bitmap_last_set_bit): Declare.
26542
1cf4a36a 265432009-03-29 David Ayers <ayers@fsfe.org>
26544
26545 PR objc/27377
26546 * c-typeck.c (build_conditional_expr): Emit ObjC warnings
26547 by calling objc_compare_types and surpress warnings about
26548 incompatible C pointers that are compatible ObjC pointers.
89871bab 26549
1cf4a36a 265502009-03-29 Adam Nemet <anemet@caviumnetworks.com>
69428266 26551
26552 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
26553 call initialize_inline_failed.
26554 (initialize_inline_failed): Move it from here ...
26555 * cgraph.c (initialize_inline_failed): ... to here.
26556 (cgraph_create_edge): Call initialize_inline_failed rather than
26557 setting inline_failed directly.
26558
d093f898 265592009-03-29 Ben Elliston <bje@au.ibm.com>
26560
26561 PR target/32542
26562 * sysv4.opt (msdata): Improve comment.
26563 * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
26564 * sysv4.h (SVR4_ASM_SPEC): Likewise.
26565
df6a567a 265662009-03-29 Ben Elliston <bje@au.ibm.com>
26567
26568 PR target/30451
26569 * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
26570 load and store attributes.
26571
29c63a97 265722009-03-29 Ben Elliston <bje@au.ibm.com>
26573
26574 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
26575 (ix86_init_builtins): Add built-in function __builtin_huge_valq.
26576 (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
26577 * doc/extend.texi (X86 Built-in Functions): Add index entries for
26578 __builtin_infq and __builtin_huge_valq.
26579
ec4b52e7 265802009-03-28 Anatoly Sokolov <aesok@post.ru>
26581
26582 * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
26583 atmega8m1 devices.
26584 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
26585 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
26586
43fb76c1 265872009-03-28 Xinliang David Li <davidxl@google.com>
26588
89871bab 26589 * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
43fb76c1 26590 (do_dbg_cnt): New function.
26591
b5cebd44 265922009-03-28 Jan Hubicka <jh@suse.cz>
26593
26594 Merge from pretty-ipa:
26595
26596 2009-03-27 Jan Hubicka <jh@suse.cz>
aca60c7b 26597
b5cebd44 26598 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
26599 * tree-pass.h (function_called_by_processed_nodes_p): Declare.
26600 * passes.c (function_called_by_processed_nodes_p): New.
26601 * ipa-pure-const.c (check_call): Fix handling of operands.
26602 (analyze_function): Dump debug output for skipped bodies.
26603 (local_pure_const): Use function_called_by_processed_nodes_p.
26604 * dwarf2out.c (reference_to_unused): Use output.
26605 * passes.c (do_per_function_toporder): Likewise.
26606
26607 2008-11-12 Jan Hubicka <jh@suse.cz>
26608
26609 * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
26610 * ipa-pure-const.c (funct_state_d): Add can throw field; make
26611 state_set_in_source enum
26612 (check_decl): Ignore memory tags; do not set fake looping flags;
26613 dump diagnostics.
26614 (check_operand, check_tree, check_rhs_var, check_lhs_var,
26615 get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
26616 (check_call, analyze_function): Rewrite.
26617 (check_stmt): New.
26618 (add_new_function): Update call of analyze_function.
26619 (generate_summary): Add call of analyze_function.
26620 (propagate): Propagate can_throw; handle state_set_in_source correctly.
26621 (local_pure_const): New function.
26622 (pass_local_pure_const): New pass.
26623 * ipa-inline.c (inline_transform): Set after_inlining.
26624 * tree-eh.c (stmt_can_throw_external): New.
26625 * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
26626 work with aliasing built.
26627 * tree-flow.h (stmt_can_throw_external): New.
26628 * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
26629 and local pure/const pass in early and late optimization queue.
aca60c7b 26630
1c4607fd 266312009-03-28 Martin Jambor <mjambor@suse.cz>
26632
26633 * fold-const.c (get_pointer_modulus_and_residue): New parameter
26634 allow_func_align.
26635 (fold_binary): Allow function decl aligment consideration is the
26636 second argument is integer constant one.
26637 * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
26638 (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
26639 with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
26640
b0d29d1c 266412009-03-28 Jan Hubicka <jh@suse.cz>
26642
26643 * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
26644 * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
26645 * function.h (rtl_data): Add nothrow flag.
26646 * except.c (set_nothrow_function_flags): Use crtl->nothrow;
26647 set DECL_NOTHROW for AVAILABLE functions.
26648
bf4a1edf 266492009-03-28 Jakub Jelinek <jakub@redhat.com>
26650
69dfb43a 26651 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
26652 following vector keyword has expansion starting with pixel or bool
26653 keyword, expand vector to __vector and pixel or bool to __pixel or
26654 __bool.
26655
bf4a1edf 26656 PR c++/39554
26657 * opts.c (warning_disallowed_functions, warn_disallowed_functions,
26658 warn_if_disallowed_function_p): Removed.
26659 (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
26660 * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
26661 warning_if_disallowed_function_p.
26662 * flags.h (warn_if_disallowed_function_p,
26663 warn_disallowed_functions): Removed.
26664 * common.opt (Wdisallowed-function-list=): Removed.
26665 * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
26666
c256d781 266672009-03-28 Richard Guenther <rguenther@suse.de>
26668
26669 PR tree-optimization/38723
26670 * tree-ssa-pre.c (compute_avail): Add all default definitions to
26671 the entry block.
26672
74a5c8eb 266732009-03-28 Jan Hubicka <jh@suse.cz>
26674
26675 * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
26676 test introduced by my previous patch.
26677
59ce9604 266782009-03-28 Richard Guenther <rguenther@suse.de>
26679
26680 * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
26681 the PHIs value undefined.
26682
6cb239e5 266832009-03-28 Jan Hubicka <jh@suse.cz>
26684
26685 * tree-pass.h (pass_fixup_cfg): New pass.
26686 * ipa-inline.c (inline_transform): Set
26687 always_inline_functions_inlined/after_inlining.
26688 * tree-optimize.c (execute_fixup_cfg): Do not set them here.
26689 (pass_fixup_cfg): New pass.
26690 * passes.c (init_optimization_passes): Add fixup_cfg.
26691
aeb38861 266922009-03-28 Richard Guenther <rguenther@suse.de>
26693
26694 PR tree-optimization/38458
26695 * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
26696 argument use the arguments copy-of value.
26697
8edeb88b 266982009-03-28 Richard Guenther <rguenther@suse.de>
26699
26700 PR tree-optimization/38180
26701 * tree-ssa-ccp.c (get_default_value): Simplify.
26702 (likely_value): Likewise.
26703 (surely_varying_stmt_p): Properly handle VOP case.
26704 (ccp_initialize): Likewise.
26705 (ccp_fold): Handle propagating through *&.
26706 (fold_const_aggregate_ref): Also handle decls.
26707
09fc9532 267082009-03-28 Jan Hubicka <jh@suse.cz>
26709
26710 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
26711 * cgraph.h (cgraph_node): Likewise.
26712 * cgraphunit.c (cgraph_process_new_functions): Set process flag.
26713 (cgraph_reset_node): Use process flag.
26714 (cgraph_mark_functions_to_output): Likewise.
26715 (cgraph_expand_function): Likewise.
26716 (cgraph_expand_all_functions): Likewise.
26717 (cgraph_output_in_order): Likewise.
26718 * dwarf2out.c (reference_to_unused): Likewise.
26719 * passes.c do_per_function_toporder): Likewise.
26720
326a9581 267212009-03-28 Jan Hubicka <jh@suse.cz>
26722
26723 Bring from lto-branch:
aca60c7b 26724
326a9581 26725 2008-09-03 Doug Kwan <dougkwan@google.com>
26726
26727 * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
26728 enums instead of reason strings.
26729 * cgraph.c (cgraph_create_edge): Same.
26730 (cgraph_inline_failed_string): New function.
26731 * cgraph.h (cgraph_inline_failed_t): New enum type.
26732 (cgraph_inline_failed_string): New prototype.
26733 (struct cgraph_edge): Change type of INLINED_FAILED from constant
26734 char pointer to cgraph_inline_failed_t.
26735 (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
26736 (cgraph_default_inline_p): Ditto.
943327c1 26737 * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
326a9581 26738 to cgraph_inline_failed_t pointer.
26739 * cif-code.def: New file.
26740 * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
26741 reason string.
26742 (cgraph_check_inline_limits): Change type of REASON to pointer to
26743 cgraph_inline_failed_t. Replace reason strings with enums.
26744 (cgraph_default_inline_p): Ditto.
26745 (cgraph_recursive_inlining_p): Ditto.
26746 (update_caller_keys): Change type of FAILED_REASON to
26747 cgraph_inline_failed_t.
26748 (cgraph_set_inline_failed): Change type of REASON to pointer to
26749 cgraph_inline_failed_t. Call cgraph_inline_failed_string to
26750 convert enums to strings for text output.
26751 (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
26752 to be of type cgraph_inline_failed_t. Replace reason strings with
26753 enums. Call cgraph_inline_failed_string to covert enums
26754 to strings for text output.
26755 (cgraph_decide_inlining): Replace reason strings with enums.
26756 (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
26757 to cgraph_inline_failed_t type. Call cgraph_inline_failed_string
26758 for text output.
26759 * tree-inline.c (expand_call_inline): Change type of REASON
26760 to cgraph_inline_failed_t. Replace reason strings with enums.
26761 Call cgraph_inline_failed_string for text output.
26762 * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
26763 (cgraph.o): Ditto.
26764
77b5eabc 267652009-03-28 Jan Hubicka <jh@suse.cz>
26766
26767 * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
26768 cgraph_clone_node): Remove master clone handling.
26769 (cgraph_is_master_clone, cgraph_master_clone): Remove.
26770 * cgraph.h (master_clone): Remove.
26771 (cgraph_is_master_clone, cgraph_master_clone): Remove.
26772 * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
26773 (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
26774
cc76f102 267752009-03-28 Jan Hubicka <jh@suse.cz>
26776
26777 * cgraph.c (cgraph_function_body_availability): Functions declared
26778 inline are always safe to assume that it is not going to be replaced.
26779
63295314 267802009-03-28 Richard Guenther <rguenther@suse.de>
26781
26782 PR tree-optimization/38513
26783 * tree-ssa-pre.c (eliminate): Remove redundant stores.
26784 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
26785 EXC_PTR_EXPR and FILTER_EXPR.
26786 (get_ref_from_reference_ops): Likewise.
26787
d360ad90 267882009-03-28 Richard Guenther <rguenther@suse.de>
26789
26790 PR tree-optimization/38968
26791 * tree-vect-analyze.c (vect_compute_data_ref_alignment):
26792 Use FLOOR_MOD_EXPR to compute misalignment.
26793
c82f3b60 267942009-03-28 Richard Guenther <rguenther@suse.de>
26795
26796 PR tree-optimization/37795
26797 * tree.h (combine_comparisons): Declare.
26798 * fold-const.c (combine_comparisons): Export.
26799 * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
26800 comparisons.
26801 (ifcombine_iforif): Use combine_comparisons.
26802
a5bfef5b 268032009-03-28 Jan Hubicka <jh@suse.cz>
26804
26805 * tree-eh.c (inlinable_call_p): New function.
26806 (make_eh_edges): Use it.
26807 (verify_eh_edges): Use it.
26808 (stmt_can_throw_external, stmt_can_throw_internal): Use it.
26809 * except.c (reachable_next_level): Add inlinable_function argument
26810 (sjlj_find_directly_reachable_regions): Update.
26811 (add_reachable_handler): Do not set saw_any_handlers.
26812 (reachable_next_level): Handle MUST_NOT_THROW more curefully.
26813 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
26814 Add new inlinable call parameter.
26815 (can_throw_internal, can_throw_external): Update.
26816 * except.h (can_throw_internal_1, can_throw_external_1,
26817 foreach_reachable_handler): Update declaration.
26818
f2397fc4 268192009-03-28 Joseph Myers <joseph@codesourcery.com>
26820
26821 * config/arm/t-arm-coff, config/h8300/coff.h,
26822 config/i386/i386-aout.h, config/i386/i386-coff.h,
26823 config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
26824 config/pdp11/2bsd.h, config/rs6000/aix41.h,
26825 config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
26826 fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
26827 scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
26828 sys-types.h: Remove.
26829 * Makefile.in: Remove protoize and fixproto support and references
26830 in comments.
26831 (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
26832 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
26833 Remove.
26834 (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
26835 (MOSTLYCLEANFILES): Remove protoize$(exeext) and
26836 unprotoize$(exeext).
26837 (rest.encap): Don't depend on $(STMP_FIXPROTO)
26838 (.PHONY): Don't depend on proto.
26839 (libgcc-support): Don't depend on $(STMP_FIXPROTO).
26840 (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
26841 protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
26842 deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
26843 build/gen-protos.o, build/scan.o, xsys-protos.h,
26844 build/fix-header$(build_exeext), build/fix-header.o,
26845 build/scan-decls.o, fixhdr.ready, stmp-fixproto,
26846 stmp-install-fixproto): Remove.
26847 (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
26848 SYSCALLS.c or fixproto files.
26849 (install-common): Don't install protoize.
26850 (install-headers-tar, install-headers-cpio, install-headers-cp):
26851 Don't depend on $(STMP_FIXPROTO).
26852 (install-mkheaders): Don't depend on $(STMP_FIXPROTO). Don't
26853 install fixproto files or write out fixproto settings.
26854 (uninstall): Don't uninstall protoize.
26855 * config.gcc (use_fixproto): Remove.
26856 (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
26857 i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
26858 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
26859 * config/m32r/t-linux (STMP_FIXPROTO): Remove.
26860 * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
26861 * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
26862 * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
26863 * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
26864 * config/t-svr4 (FIXPROTO_DEFINES): Remove.
26865 * config/t-vxworks (STMP_FIXPROTO): Remove.
26866 * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
26867 STMP_FIXPROTO): Remove.
26868 * config.in, configure: Regenerate.
26869 * crtstuff.c (gid_t, uid_t): Don't undefine.
26870 * doc/install.texi: Change m68k-coff to m68k-elf in example.
26871 (arm-*-coff, arm-*-aout: Remove target entries.
26872 (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
26873 Remove mention of AIX 4.1.
26874 (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
26875 * doc/invoke.texi (Running Protoize): Remove.
26876 * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
26877 (Protoize Caveats): Remove.
26878 * tsystem.h: Update comments on headers assumed to exist.
26879
08ed847d 268802009-03-27 Vladimir Makarov <vmakarov@redhat.com>
26881
26882 * genautomata.c: Add a new year to the copyright. Add a new
26883 reference.
26884 (struct insn_reserv_decl): Add comments for member bypass_list.
26885 (find_bypass): Remove.
26886 (insert_bypass): New.
26887 (process_decls): Use insert_bypass.
26888 (output_internal_insn_latency_func): Output all bypasses with the
26889 same input insn in one switch case.
26890
26891 * rtl.def (define_bypass): Describe bypass choice.
26892 * doc/md.texi (define_bypass): Ditto.
26893
8e353ea6 268942009-03-27 Richard Guenther <rguenther@suse.de>
26895
26896 * gimplify.c (mark_addressable): Export.
26897 * tree-flow.h (mark_addressable): Declare.
26898 * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
26899 * tree-ssa.c (verify_phi_args): Verify that address taken
26900 variables have TREE_ADDRESSABLE set.
26901
269022009-03-27 Richard Guenther <rguenther@suse.de>
26903
26904 * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
26905 (build_fold_addr_expr_with_type): ... this. Remove in_fold handling.
26906 Do not mark decls TREE_ADDRESSABLE.
26907 (build_fold_addr_expr): Adjust.
26908 (fold_addr_expr): Remove.
26909 (fold_unary): Use build_fold_addr_expr.
26910 (fold_comparison): Likewise.
26911 (split_address_to_core_and_offset): Likewise.
26912 * coverage.c (tree_coverage_counter_addr): Mark the array decl
26913 TREE_ADDRESSABLE.
26914 * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
26915 (gimplify_modify_expr_to_memcpy): Mark source and destination
26916 addressable.
26917 * omp-low.c (create_omp_child_function): Mark the object decl
26918 TREE_ADDRESSABLE.
26919 (lower_rec_input_clauses): Mark the var we take the address of
26920 TREE_ADDRESSABLE.
26921 (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
26922
16fe3089 269232009-03-27 H.J. Lu <hongjiu.lu@intel.com>
26924
26925 PR middle-end/39315
26926 * cfgexpand.c (expand_one_stack_var_at): Change alignment
26927 limit to MAX_SUPPORTED_STACK_ALIGNMENT.
26928
9d1d1fab 269292009-03-27 Richard Guenther <rguenther@suse.de>
26930
26931 PR tree-optimization/39120
26932 * tree-ssa-structalias.c (handle_rhs_call): Fill out return
26933 constraints.
26934 (handle_lhs_call): Process return constraints. Add escape
26935 constraints if necessary.
26936 (handle_const_call): Fill out return constraints. Make nested
26937 case more precise. Avoid consttmp if possible.
26938 (handle_pure_call): Fill out return constraints. Avoid
26939 callused if possible.
26940 (find_func_aliases): Simplify call handling.
26941
269422009-03-27 Richard Guenther <rguenther@suse.de>
26943
26944 PR tree-optimization/39120
26945 * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
26946 as a representative.
26947 (solve_graph): Do propagate CALLUSED.
26948 (handle_pure_call): Use a scalar constraint from CALLUSED for
26949 the return value.
26950 (find_what_p_points_to): CALLUSED shall not appear in poins-to
26951 solutions.
26952
7cfdc2f0 269532009-03-27 H.J. Lu <hongjiu.lu@intel.com>
26954
26955 PR c/39323
26956 * c-common.c (handle_aligned_attribute): Properly check alignment
26957 overflow. Use (1U << i) instead of (1 << i).
26958
aca60c7b 26959 * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
7cfdc2f0 26960
26961 * expr.h (get_mem_align_offset): Updated.
26962
26963 * tree.h (tree_decl_common): Change align to "unsigned int" and
26964 move it before pointer_alias_set.
26965
3f863bef 269662009-03-27 H.J. Lu <hongjiu.lu@intel.com>
26967 Jakub Jelinek <jakub@redhat.com>
26968
26969 PR target/38034
26970 * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
26971 gr_register_operand with gr_reg_or_0_operand.
26972 (cmpxchg_rel_di): Likewise.
26973 (sync_lock_test_and_set<mode>): Likewise.
26974
9680c846 269752009-03-27 H.J. Lu <hongjiu.lu@intel.com>
26976
26977 * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
26978 (true_regnum): Likewise.
26979
26980 * rtlanal.c (subreg_info): Moved to ...
26981 * rtl.h (subreg_info): Here. New.
26982 (subreg_get_info): New.
26983
26984 * rtlanal.c (subreg_get_info): Make it extern.
26985
0e4d11df 269862009-03-27 H.J. Lu <hongjiu.lu@intel.com>
26987
26988 PR target/39472
26989 * config/i386/i386.c (ix86_abi): New.
26990 (override_options): Handle -mabi=.
aca60c7b 26991 (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
0e4d11df 26992 (ix86_call_abi_override): Likewise.
26993 (init_cumulative_args): Likewise.
26994 (function_arg_advance): Likewise.
26995 (function_arg_64): Likewise.
26996 (function_arg): Likewise.
26997 (ix86_pass_by_reference): Likewise.
26998 (ix86_function_value_regno_p): Likewise.
26999 (ix86_build_builtin_va_list_abi): Likewise.
27000 (setup_incoming_varargs_64): Likewise.
27001 (is_va_list_char_pointer): Likewise.
27002 (ix86_init_machine_status): Likewise.
aca60c7b 27003 (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
0e4d11df 27004 (ix86_function_type_abi): Return enum calling_abi. Rewrite
27005 for 64bit. Replace DEFAULT_ABI with ix86_abi.
aca60c7b 27006 (ix86_function_abi): Make it static and return enum calling_abi.
0e4d11df 27007 (ix86_cfun_abi): Return enum calling_abi. Replace DEFAULT_ABI
27008 with ix86_abi.
27009 (ix86_fn_abi_va_list): Updated.
27010
27011 * config/i386/i386.h (ix86_abi): New.
27012 (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
27013 (CONDITIONAL_REGISTER_USAGE): Likewise.
27014 (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
27015 (machine_function): Likewise.
27016
27017 * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
27018 with ix86_abi.
27019 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
27020 (STACK_BOUNDARY): Likewise.
27021 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
27022
27023 * config/i386/i386.opt (mabi=): New.
27024
27025 * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
27026 return enum calling_abi.
27027 (ix86_function_type_abi): Likewise.
27028 (ix86_function_abi): Removed.
27029
27030 * doc/invoke.texi: Document -mabi= option for x86.
27031
656ec810 270322009-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
27033
27034 * builtins.c (real_dconstp): Delete.
27035 (fold_builtin_logarithm): Remove inaccurate log(e) special case.
27036
cb3582e7 270372009-03-27 Dodji Seketeli <dodji@redhat.com>
27038 Jakub Jelinek <jakub@redhat.com>
27039
27040 PR debug/37959
27041 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
27042 (gen_subprogram_die): When a function is explicit, generate the
27043 DW_AT_explicit attribute.
27044 * langhooks.h (struct lang_hooks_for_decls): Add
27045 function_decl_explicit_p langhook.
27046 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
27047 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
27048
38150ede 270492009-03-27 Jakub Jelinek <jakub@redhat.com>
27050
3f95c690 27051 * builtins.c (fold_builtin_memory_op): Optimize memmove
27052 into memcpy if we can prove source and destination don't overlap.
27053
38150ede 27054 * tree-inline.c: Include gt-tree-inline.h.
27055 (clone_fn_id_num): New variable.
27056 (clone_function_name): New function.
27057 (tree_function_versioning): Use it.
27058 * Makefile.in (GTFILES): Add tree-inline.c.
27059
08da3d21 270602009-03-27 Mark Mitchell <mark@codesourcery.com>
27061
27062 * BASE-VER: Change to 4.5.0.
27063
e19b015b 270642009-03-27 Xinliang David Li <davidxl@google.com>
27065
27066 PR tree-optimization/39557
27067 * tree-ssa.c (warn_uninitialized_vars): free postdom info.
27068
b87f0847 270692009-03-27 Xinliang David Li <davidxl@google.com>
27070
27071 PR tree-optimization/39548
89871bab 27072 * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
b87f0847 27073 candidate check.
27074
545ba0d7 270752009-03-27 H.J. Lu <hongjiu.lu@intel.com>
27076
27077 * c-common.c (pointer_int_sum): Use %wd on return from
27078 tree_low_cst.
27079
482c9a19 270802009-03-27 H.J. Lu <hongjiu.lu@intel.com>
27081
27082 * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
27083 on return from tree_low_cst.
27084
1f1d68a6 270852009-03-27 Andrew Pinski <andrew_pinski@playstation.sony.com>
27086
27087 PR c++/36799
aca60c7b 27088 * ginclude/stdarg.h (va_copy): Define also for
27089 __GXX_EXPERIMENTAL_CXX0X__.
1f1d68a6 27090
d924b670 270912009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
27092
27093 PR c++/35652
27094 * builtins.h (c_strlen): Do not warn here.
27095 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
27096 * c-common.c (pointer_int_sum): Take an explicit location.
27097 Warn about offsets out of bounds.
27098 * c-common.h (pointer_int_sum): Adjust declaration.
27099
1ab73152 271002009-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27101
d924b670 27102 * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
27103 markup glitch.
1ab73152 27104
f4858d06 271052009-03-26 Jakub Jelinek <jakub@redhat.com>
27106
27107 PR c++/39554
27108 * opts.c (warn_if_disallowed_function_p): Don't assume
27109 get_callee_fndecl must return non-NULL.
27110
d9cee1b1 271112009-03-26 Vladimir Makarov <vmakarov@redhat.com>
27112
27113 PR rtl-optimization/39522
27114 * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
27115 when reg_reloaded_valid is set.
27116
204cb876 271172009-03-26 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27118
27119 * config/spu/divv2df3.c: New file.
27120 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
27121 (DPBIT_FUNCS): Filter out _div_df.
27122
1fd36c3a 271232009-03-26 Bernd Schmidt <bernd.schmidt@analog.com>
27124
27125 * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
27126 a jump insn, count that jump in the distance to the loop start.
27127
dc9b0799 271282009-03-25 Kaz Kojima <kkojima@gcc.gnu.org>
27129
27130 PR target/39523
27131 * config/sh/sh.c (calc_live_regs): Fix condition for global
27132 registers except PIC_OFFSET_TABLE_REGNUM.
27133
6609be22 271342009-03-25 Kai Tietz <kai.tietz@onevision.com>
27135
27136 PR/39518
27137 * doc/invoke.texi (-mconsole): New.
27138 (-mcygwin): New.
27139 (-mno-cygwin): New.
27140 (-mdll): New.
27141 (-mnop-fun-dllimport): New.
27142 (-mthread): New.
27143 (-mwin32): New.
27144 (-mwindows): New.
27145 (sub section "i386 and x86-64 Windows Options"): New.
27146
943327c1 271472009-03-25 Ralf Corsépius <ralf.corsepius@rtems.org>
2ccb7f3f 27148
27149 * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
27150 * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
27151
5211387e 271522009-03-25 Richard Guenther <rguenther@suse.de>
27153
27154 PR middle-end/39497
27155 * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
27156 of -Wno-error.
27157
686d79e0 271582009-03-25 Andrey Belevantsev <abel@ispras.ru>
27159
27160 * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
27161 neither of haifa/selective schedulers are working.
27162
850fc3f0 271632009-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27164
27165 * doc/invoke.texi (Debugging Options): Fix description of
27166 -fno-merge-debug-strings.
27167
10178ded 271682009-03-24 Hans-Peter Nilsson <hp@axis.com>
27169
d1640684 27170 * config/cris/libgcc.ver: New version-script.
27171 * config/cris/t-linux (SHLIB_MAPFILES): Use it.
27172
10178ded 27173 * configure.ac <GAS features, nop mnemonic>: Add pattern
27174 crisv32-*-* for "nop".
aca60c7b 27175 <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
10178ded 27176 * configure: Regenerate.
27177
416dafb3 271782009-03-24 Ira Rosen <irar@il.ibm.com>
27179
27180 PR tree-optimization/39529
27181 * tree-vect-transform.c (vect_create_data_ref_ptr): Call
27182 mark_sym_for_renaming for the tag copied to the new vector
27183 pointer.
27184
68ecbaec 271852009-03-24 Arthur Loiret <aloiret@debian.org>
27186
aca60c7b 27187 * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
68ecbaec 27188 * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
27189 EXTRA_SPEC_FUNCTIONS.
27190 (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
27191 * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
27192 * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
27193 -march and -mtune options.
27194
943327c1 271952009-03-24 Ralf Corsépius <ralf.corsepius@rtems.org>
f8873a45 27196
27197 * config/m68k/t-rtems: Add m5329 multilib.
27198
ab977c1f 271992009-03-24 Dodji Seketeli <dodji@redhat.com>
27200 Jakub Jelinek <jakub@redhat.com>
27201
27202 PR debug/39524
27203 * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
27204 nodes.
27205
4390875c 272062009-03-23 Jakub Jelinek <jakub@redhat.com>
27207
27208 PR c/39495
27209 * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
27210 instead of c_parser_expression_conv, if original_code isn't one of the
27211 4 allowed comparison codes, fail.
27212
9fac1c66 272132009-03-23 Richard Guenther <rguenther@suse.de>
27214
27215 * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
27216 * tree.h (struct tree_type): Likewise.
27217 * reload.h (struct insn_chain): Likewise.
27218 * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
27219 * function.h (struct function): Likewise.
27220 * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
27221
b7d1c9e6 272222009-03-23 Jakub Jelinek <jakub@redhat.com>
27223
27224 PR tree-optimization/39516
27225 * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
27226
943327c1 272272009-03-23 Bingfeng Mei <bmei@broadcom.com>
f824d860 27228
89871bab 27229 * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
f824d860 27230 should be set true if BITS_PER_WORD of target is bigger than 32
27231
f8cf5d4c 272322009-03-22 Hans-Peter Nilsson <hp@axis.com>
27233
27234 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
27235 Translate -B-options to -rpath-link. Correct existing
27236 rpath-link and conditionalize on !nostdlib.
27237
8898b2ef 272382009-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27239
27240 * doc/extend.texi (Function Attributes, Variable Attributes):
27241 Fix typos.
27242 * doc/invoke.texi (Debugging Options, Optimize Options)
27243 (i386 and x86-64 Options, MCore Options): Likewise.
27244
4b1ab129 272452009-03-20 Jakub Jelinek <jakub@redhat.com>
27246
27247 PR debug/37890
27248 * dwarf2out.c (gen_namespace_die): Add context_die argument and use
27249 it for block local namespace aliases.
27250 (gen_decl_die): Pass context_die to gen_namespace_die.
27251
e060ba36 272522009-03-19 Jakub Jelinek <jakub@redhat.com>
27253
27254 PR c/39495
27255 * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
27256 minimum or maximum value.
27257
42f43a38 272582009-03-19 Alexandre Oliva <aoliva@redhat.com>
27259
27260 * reginfo.c (globalize_reg): Recompute derived reg sets.
27261
943327c1 272622009-03-19 Ozkan Sezer <sezeroz@gmail.com>
76d89866 27263
27264 PR target/39063
27265 * libgcc2.c (mprotect): Do not use signed arguments for
27266 VirtualProtect, use DWORD arguments. Also fix the 'may
27267 be used uninitialized' warning for the np variable.
27268
99198add 272692009-03-19 Jakub Jelinek <jakub@redhat.com>
27270
27271 PR target/39496
27272 * config/i386/i386.c (ix86_function_regparm): Don't optimize local
27273 functions using regparm calling conventions when not optimizing.
27274 (ix86_function_sseregparm): Similarly for sseregparm calling
27275 conventions.
27276
63ca8934 272772009-03-19 Li Feng <nemokingdom@gmail.com>
27278
27279 PR middle-end/39500
27280 * tree-data-ref.c (analyze_subscript_affine_affine): There is no
27281 dependence if the first conflict is after niter iterations.
27282
c5fe58d7 272832009-03-19 Hans-Peter Nilsson <hp@axis.com>
27284
27285 PR middle-end/38609
27286 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
27287 functions with dynamic stack-pointer adjustments.
27288
d4669bca 272892009-03-19 Ben Elliston <bje@au.ibm.com>
27290
27291 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
27292 option; change to -msdata=data.
27293
286c29e2 272942009-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27295
27296 * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
27297 and -fopenmp.
27298
0e55c4d0 272992009-03-18 Eric Botcazou <ebotcazou@adacore.com>
27300
27301 PR target/35180
27302 * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
27303
5de57ebe 273042009-03-18 Sandra Loosemore <sandra@codesourcery.com>
27305
27306 * doc/invoke.texi (Code Gen Options): Expand discussion of
27307 -fno-common.
27308
0ac758f7 273092009-03-18 Jakub Jelinek <jakub@redhat.com>
27310
27311 * dse.c (struct group_info): Reorder fields for 64-bit hosts.
27312 * matrix-reorg.c (struct matrix_info): Likewise.
27313 * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
27314 * rtl.h (struct mem_attrs): Likewise.
27315 * df.h (struct df): Likewise.
27316 * tree-data-ref.h (struct data_dependence_relation): Likewise.
27317 * ira-int.h (struct ira_allocno): Likewise.
27318 * df-scan.c (struct df_collection_rec): Likewise.
27319 * ira.c (struct equivalence): Likewise.
27320 * function.c (struct temp_slot): Likewise.
27321 * cfgloop.h (struct loop): Likewise.
27322
f24ccada 27323 PR debug/39485
27324 * function.c (use_register_for_decl): When not optimizing, disregard
27325 register keyword for variables with types containing methods.
27326
8fa85fc5 273272009-03-18 Sebastian Pop <sebastian.pop@amd.com>
27328
27329 PR middle-end/39447
27330 * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
27331 (is_simple_operand): Call contains_component_ref_p before calling data
27332 reference analysis that would fail on COMPONENT_REFs.
27333
27334 * tree-vrp.c (search_for_addr_array): Fix formatting.
27335
a39f4102 273362009-03-18 Richard Guenther <rguenther@suse.de>
27337
27338 * tree-vect-transform.c (vect_loop_versioning): Fold the
27339 generated comparisons.
27340 * tree-vectorizer.c (set_prologue_iterations): Likewise.
27341 (slpeel_tree_peel_loop_to_edge): Likewise.
27342
b8048da5 273432009-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27344
fad6b6bb 27345 PR middle-end/37805
27346 * opts.c (print_specific_help): In addition to `undocumented',
27347 accept `separate' and `joined' flags if passed alone. Describe
27348 output by the first matched one of those.
27349 (common_handle_option): Skip over empty strings.
27350 * gcc.c (display_help): Fix help string for `--help='.
27351 * doc/invoke.texi (Option Summary, Overall Options): With
27352 `--help=', classes and qualifiers can both be repeated, but
27353 only the latter can be negated. One should not pass only
27354 negated qualifiers. Fix markup and examples.
27355
b8048da5 27356 Revert
27357 2008-10-14 Jakub Jelinek <jakub@redhat.com>
27358 PR middle-end/37805
27359 * opts.c (common_handle_option): Don't ICE on -fhelp=joined
27360 and -fhelp=separate.
27361
9247818a 273622009-03-17 Jing Yu <jingyu@google.com>
27363
27364 PR middle-end/39378
a3b7452d 27365 * function.h (struct rtl_data): Move is_thunk from here...
27366 (struct function): ...to here.
27367 * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
9247818a 27368 * varasm.c (assemble_start_function): Change is_thunk from crtl to
27369 cfun.
a3b7452d 27370 * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
27371 cfun.
27372 (alpha_does_function_need_gp, alpha_start_function): Likewise.
27373 (alpha_output_function_end_prologue): Likewise.
27374 (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
27375 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
27376 (rs6000_output_function_epilogue): Likewise.
27377 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
9247818a 27378
d849db06 273792009-03-17 Uros Bizjak <ubizjak@gmail.com>
27380
27381 PR target/39482
27382 * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
27383 from different units in a single alternative.
27384 (*truncdfsf_i387): Ditto.
27385 (*truncxfsf2_mixed): Ditto.
27386 (*truncxfdf2_mixed): Ditto.
27387
31334434 273882009-03-17 Jakub Jelinek <jakub@redhat.com>
27389
169f8686 27390 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
27391 non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
27392
4595b0f9 27393 PR debug/39474
27394 * tree-ssa-live.c (remove_unused_locals): Don't remove local
27395 unused non-artificial variables when not optimizing.
27396
157e283b 27397 PR debug/39471
27398 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
27399 DW_TAG_imported_module even if decl is IMPORTED_DECL with
27400 NAMESPACE_DECL in its DECL_INITIAL.
27401
979d3efc 27402 PR middle-end/39443
27403 * optabs.c (set_user_assembler_libfunc): New function.
27404 * expr.h (set_user_assembler_libfunc): New prototype.
27405 * c-common.c: Include libfuncs.h.
27406 (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
27407 for memcmp, memset, memcpy, memmove and abort.
27408 * Makefile.in (c-common.o): Depend on libfuncs.h.
27409
31334434 27410 PR debug/39412
27411 * dwarf2out.c (gen_inlined_enumeration_type_die,
27412 gen_inlined_structure_type_die, gen_inlined_union_type_die,
27413 gen_tagged_type_instantiation_die): Removed.
27414 (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
27415 do nothing.
27416
c158ae09 274172009-03-17 Janis Johnson <janis187@us.ibm.com>
27418
27419 PR testsuite/38526
27420 * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
27421 its use.
27422 (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
27423 (check-parallel-%): Ditto.
27424 (check-consistency): Ditto.
27425
d4138574 274262009-03-17 Kai Tietz <kai.tietz@onevision.com>
27427
27428 * ipa-struct-reorg.c (create_general_new_stmt): Initialize
27429 local variable rhs by NULL_TREE.
27430
dc8c96bb 274312009-03-17 H.J. Lu <hongjiu.lu@intel.com>
27432
27433 PR target/39477
d849db06 27434 * doc/extend.texi: Correct register behavior for regparm on Intel 386.
dc8c96bb 27435
462bc935 274362009-03-17 H.J. Lu <hongjiu.lu@intel.com>
27437
27438 PR target/39476
d849db06 27439 * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
462bc935 27440
274412009-03-17 H.J. Lu <hongjiu.lu@intel.com>
4543b422 27442
27443 PR target/39473
27444 * config/i386/i386.c (ix86_expand_call): Check extra clobbers
27445 for ms->sysv ABI calls only in 64bit mode.
27446
27447 * config/i386/i386.md (untyped_call): Support 32bit.
27448
ff8d1746 274492009-03-16 H.J. Lu <hongjiu.lu@intel.com>
27450
27451 * doc/extend.texi: Replace x86_65 with x86_64.
27452
1095b81d 274532009-03-16 Jakub Jelinek <jakub@redhat.com>
27454
27455 PR tree-optimization/39455
27456 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
27457 mismatches for POINTER_TYPE_P (type).
27458 (number_of_iterations_le): Likewise.
27459
943327c1 274602009-03-16 Hariharan Sandanagobalane <hariharan@picochip.com>
15d6a8ce 27461
27462 * config/picochip/picochip.c: Removed profiling support.
27463 * config/picochip/picochip.md: Removed profiling instruction.
27464 * config/picochip/picochip.h: Removed profiling builtin.
27465
5bc96548 274662009-03-16 Joseph Myers <joseph@codesourcery.com>
27467
27468 * doc/install.texi (--with-host-libstdcxx): Document.
27469
7846db34 274702009-03-14 Anatoly Sokolov <aesok@post.ru>
27471
27472 PR target/34299
27473 * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
27474 generate a warning if the function name does not begin with
27475 "__vector" and the function has either the 'signal' or 'interrupt'
27476 attribute, from here to ...
27477 (avr_declare_function_name): ...here. New function.
27478 * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
27479 * config/avr/avr-protos.h (avr_declare_function_name): Declare.
27480
6026d749 274812009-03-14 Jakub Jelinek <jakub@redhat.com>
27482
27483 PR bootstrap/39454
27484 * cse.c (fold_rtx): Don't modify original const_arg1 when
27485 canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
27486 separate variable instead.
27487 * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
27488 from out of range shift counts.
27489 (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
27490
7dfbd804 274912009-03-13 Catherine Moore <clm@codesourcery.com>
747c6be5 27492
943327c1 27493 * config/i386/x-mingw32 (host-mingw32.o): Replace
747c6be5 27494 diagnostic.h with $(DIAGNOSTIC_H).
27495
7dfbd804 274962009-03-12 Jakub Jelinek <jakub@redhat.com>
1f477a18 27497
27498 PR target/39431
27499 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
27500 predicate.
27501 * config/i386/sync.md (sync_compare_and_swap<mode>,
27502 sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
27503 if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
27504 into a register.
27505 (sync_double_compare_and_swapdi_pic,
27506 sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
27507 cmpxchg8b_pic_memory_operand instead of just memory_operand.
27508
7e17a1bf 275092009-03-12 H.J. Lu <hongjiu.lu@intel.com>
27510
27511 PR target/39445
d849db06 27512 * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
7e17a1bf 27513
01a3edef 275142009-03-12 H.J. Lu <hongjiu.lu@intel.com>
27515
27516 PR target/39327
27517 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
27518 (avx_addsubv4df3): Likewise.
27519 (*avx_addsubv4sf3): Likewise.
27520 (sse3_addsubv4sf3): Likewise.
27521
57183b55 275222009-03-12 H.J. Lu <hongjiu.lu@intel.com>
27523
27524 PR target/38824
d849db06 27525 * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
57183b55 27526
3b95aad3 275272009-03-12 Vladimir Makarov <vmakarov@redhat.com>
27528
27529 PR debug/39432
27530 * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
27531 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
27532 registers for allocnos created from user-defined variables.
27533
8d72495d 275342009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27535
27536 PR target/39181
27537 * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
27538 of non-integer mode as well.
27539
cf219ecd 275402009-03-11 Adam Nemet <anemet@caviumnetworks.com>
27541
27542 * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
27543 for functions for which the parameter types are unknown.
27544
76cbc2a0 275452009-03-11 Jakub Jelinek <jakub@redhat.com>
27546
27547 PR target/39137
d849db06 27548 * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
76cbc2a0 27549 * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
27550 * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
27551 * config/i386/i386.c (ix86_local_alignment): For
27552 -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
27553 long long variables on the stack to avoid dynamic realignment.
27554 Allow the first argument to be a decl rather than type.
27555 * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
27556
18061948 275572009-03-11 Nick Clifton <nickc@redhat.com>
27558
27559 PR target/5362
a37dec0c 27560 * config/mcore/mcore.opt: Remove deprecated m4align and m8align
27561 options.
27562 Add description to mno-lsim option.
27563 * config/mcore/mcore.h: Remove comment about deprecated m4align
27564 option.
27565 (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
27566 * doc/invoke.texi: Add description of mno-lsim and
27567 mstack-increment options.
27568
18061948 27569 * config/fr30/fr30.opt: Document the -mno-lsim option.
27570 * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
27571 and -mno-lsim options.
27572
944017fd 275732009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27574
27575 * fold-const.c (fold_comparison): Only call fold_inf_compare
27576 if the mode supports infinities.
27577
93ef9154 275782009-03-11 Jason Merrill <jason@redhat.com>
27579
27580 PR debug/39086
27581 * tree-nrv.c (tree_nrv): Don't do this optimization if the front
27582 end already did. Notice GIMPLE_CALL modifications of the result.
27583 Don't copy debug information from an ignored decl or a decl from
27584 another function.
27585
e927e2b8 275862009-03-10 Richard Guenther <rguenther@suse.de>
27587 Nathan Froyd <froydnj@codesourcery.com>
27588
27589 PR middle-end/37850
d849db06 27590 * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
e927e2b8 27591 (__divMODE3): Likewise.
27592
48855189 275932009-03-09 Jakub Jelinek <jakub@redhat.com>
27594
27595 PR tree-optimization/39394
27596 * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
27597 DECL_SIZE_UNIT of variable length FIELD_DECLs.
27598
af7eac22 275992009-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27600
27601 * recog.c (verfiy_changes): Disallow renaming of hard regs in
27602 inline asms for register asm ("") declarations.
27603
4ce9876e 276042009-03-09 Eric Botcazou <ebotcazou@adacore.com>
27605
27606 * fold-const.c (fold_unary): Fix comment.
27607
928059d5 276082009-03-07 Jan Hubicka <jh@suse.cz>
27609
27610 PR target/39361
0648196e 27611 * tree-inline.c (setup_one_parameter): Do replacement of const
27612 argument by constant in SSA form.
928059d5 27613
c9b50df7 276142009-03-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27615
27616 PR middle-end/38028
27617 * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
27618 determine alignment passed to assign_stack_local.
27619 (assign_parms_unsplit_complex): Likewise.
27620 * except.c (sjlj_build_landing_pads): Likewise.
27621
ebcb0478 276222009-03-06 Jakub Jelinek <jakub@redhat.com>
27623
82eb5a11 27624 PR middle-end/39360
27625 * tree-flow.h (add_referenced_var): Return bool instead of void.
27626 * tree-dfa.c (add_referenced_var): Return result of
27627 referenced_var_check_and_insert call.
27628 * tree-inline.c (expand_call_inline): Call add_referenced_var instead
27629 of referenced_var_check_and_insert.
27630
ebcb0478 27631 PR debug/39372
d849db06 27632 * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
ebcb0478 27633 (gen_variable_die): Emit DW_AT_location on abstract static variable's
27634 DIE, don't emit it if abstract origin already has it.
27635 * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
27636 BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
27637
6d92fc03 276382009-03-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
27639
aca60c7b 27640 * genpreds.c (needs_variable): Fix parentheses at variable name
6d92fc03 27641 detection.
27642 (write_tm_constrs_h): Indent generated code.
27643
1fe1c6f5 276442009-03-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27645
27646 * doc/extend.texi (Function Attributes): Add documentation
27647 for isr attributes.
27648
5a798e1e 276492009-03-06 Jakub Jelinek <jakub@redhat.com>
27650
27651 PR debug/39387
27652 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
27653 take locus from its DECL_SOURCE_LOCATION instead of input_location.
27654
05f566a9 276552009-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
27656
27657 * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
27658 the loop as bad.
27659
227f485e 276602009-03-05 Jakub Jelinek <jakub@redhat.com>
27661
27662 PR debug/39379
27663 * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
27664 with blocks containing IMPORTED_DECLs in BLOCK_VARS.
27665
a6ccab35 276662009-03-05 Uros Bizjak <ubizjak@gmail.com>
27667
27668 * config/i386/i386.md (R8_REG, R9_REG): New constants.
27669 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
27670 constants instead of magic numbers.
27671 (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
27672 (QI_REG_P): Ditto.
27673 * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
27674 (x86_64_ms_abi_int_parameter_registers): Ditto.
27675 (x86_64_int_return_registers): Ditto.
0d22f439 27676 (ix86_maybe_switch_abi): Ditto.
a6ccab35 27677 (ix86_expand_call): Ditto for clobbered_registers array.
27678 (ix86_hard_regno_mode_ok): Ditto.
27679 (x86_extended_QIreg_mentioned_p): Ditto.
27680
ea138c98 276812009-03-05 J"orn Rennecke <joern.rennecke@arc.com>
27682
a6ccab35 27683 PR tree-optimization/39349
1595fd95 27684 * cse.c (cse_insn): Fix loop to stop at VOIDmode.
27685
ea138c98 27686 * combine.c (gen_lowpart_for_combine): Use omode when generating
27687 clobber.
27688
242753ba 276892009-03-04 J"orn Rennecke <joern.rennecke@arc.com>
27690
a6ccab35 27691 PR rtl-optimization/39235
242753ba 27692 * loop-iv.c (get_simple_loop_desc): Use XCNEW.
27693
7299be85 276942009-03-04 Zdenek Dvorak <ook@ucw.cz>
27695
27696 * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
27697
a4c8b601 276982009-03-04 Richard Guenther <rguenther@suse.de>
27699
27700 PR tree-optimization/39362
27701 * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
27702 that occur in abnormal PHIs should be varying.
27703
76610704 277042009-03-04 Zdenek Dvorak <ook@ucw.cz>
27705
27706 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
27707 Extend comments.
27708 (simple_iv): Take loop as an argument instead of statement.
27709 * tree-scalar-evolution.h (simple_iv): Declaration changed.
27710 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
27711 to simple_iv.
27712 * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
27713 Ditto.
27714 * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
27715 * matrix-reorg.c (analyze_transpose): Ditto.
27716 * tree-data-ref.c (dr_analyze_innermost): Ditto.
27717 * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
27718 * tree-predcom.c (ref_at_iteration): Ditto.
27719 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
27720
f13e5f6d 277212009-03-04 Richard Guenther <rguenther@suse.de>
27722
27723 PR tree-optimization/39358
27724 * tree-ssa-structalias.c (do_sd_constraint): Fix check for
27725 escaped_id and callused_id.
27726 (solve_graph): Likewise.
27727
0cb9a712 277282009-03-04 Richard Guenther <rguenther@suse.de>
27729
27730 PR tree-optimization/39339
27731 * tree-sra.c (try_instantiate_multiple_fields): Make it
27732 no longer ICE on the above.
27733
cfb75cdf 277342009-03-03 Joseph Myers <joseph@codesourcery.com>
27735
27736 * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
27737 that fits within Pmode.
27738
838bd0ed 277392009-03-03 Steve Ellcey <sje@cup.hp.com>
27740
27741 PR middle-end/10109
27742 * tm.texi (LIBCALL_VALUE): Update description.
27743
e5e13288 277442009-03-03 Steve Ellcey <sje@cup.hp.com>
27745
27746 PR middle-end/34443
27747 * doc/extend.texi (section): Update description.
27748
463cc256 277492009-03-03 H.J. Lu <hongjiu.lu@intel.com>
27750
27751 PR middle-end/39345
27752 * tree-inline.c (remapped_type): New.
27753 (can_be_nonlocal): Call remapped_type instead of remap_type.
27754
072866b6 277552009-03-03 Jakub Jelinek <jakub@redhat.com>
27756
27757 PR fortran/39354
27758 * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
27759 TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
27760
b430e8d9 277612009-03-03 Richard Guenther <rguenther@suse.de>
27762
27763 PR middle-end/39272
27764 * tree.c (tree_nonartificial_location): New function.
27765 * tree.h (tree_nonartificial_location): Declare.
27766 * builtins.c (expand_builtin_memory_chk): Provide location
27767 of the call location for artificial function pieces.
27768 (maybe_emit_chk_warning): Likewise.
27769 (maybe_emit_sprintf_chk_warning): Likewise.
27770 (maybe_emit_free_warning): Likewise.
27771 * expr.c (expand_expr_real_1): Likewise.
27772
bc79a76b 277732009-03-03 Jakub Jelinek <jakub@redhat.com>
27774
27775 PR tree-optimization/39343
27776 * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
27777 COMPONENT_REF t has ARRAY_TYPE.
27778
41c18990 277792009-03-02 Sebastian Pop <sebastian.pop@amd.com>
27780
27781 PR middle-end/39335
27782 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
27783 when the type precision of the induction variable should be
27784 larger than the type precision of nit.
27785 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
27786 * graphite.c (graphite_loop_normal_form): Same.
27787 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
27788
32096e82 277892009-03-02 Uros Bizjak <ubizjak@gmail.com>
27790
27791 * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
27792 (*call_1_rex64_ms_sysv): Use named constants instead of magic
a6ccab35 27793 numbers to describe clobbered registers.
32096e82 27794 (*call_value_0_rex64_ms_sysv): Ditto.
a6ccab35 27795 * config/i386/mmx.md (mmx_emms): Ditto.
27796 (mmx_femms): Ditto.
32096e82 27797
b8f6667e 277982009-03-02 Richard Sandiford <rdsandiford@googlemail.com>
27799
27800 * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
27801 of ABI_64.
27802
a08dfd55 278032009-03-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27804
27805 * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
27806 (spu_section_type_flags): New function.
27807
c81d1104 278082009-03-02 Uros Bizjak <ubizjak@gmail.com>
27809
27810 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
27811 reg_class_contents of FLOAT_REGS into a temporary.
27812
ed243388 278132009-03-02 Richard Guenther <rguenther@suse.de>
c81d1104 27814 Ira Rosen <irar@il.ibm.com>
ed243388 27815
27816 PR tree-optimization/39318
27817 * tree-vect-transform.c (vectorizable_call): Transfer the EH region
27818 information to the vectorized statement.
27819
c4bb7475 278202009-03-01 Uros Bizjak <ubizjak@gmail.com>
27821
4d5fae72 27822 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
27823 variable. Use defined names instead of magic constants for REX SSE
27824 registers.
c4bb7475 27825
d2263ebb 278262009-03-01 Richard Guenther <rguenther@suse.de>
27827
27828 PR tree-optimization/39331
27829 * omp-low.c (lower_send_shared_vars): Do not receive new
27830 values for the reference of DECL_BY_REFERENCE parms or results.
27831
4b5d70fd 278322009-03-01 Jan Hubicka <jh@suse.cz>
27833
27834 PR debug/39267
27835 * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
27836 BLOCK_NONLOCALIZED_VAR): New macros.
27837 (tree_block): Add nonlocalized_vars.
79283bdc 27838 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
27839 gen_decl_die): Add origin argument. Allow generation of die with
27840 origin at hand only.
4b5d70fd 27841 (gen_member_die, gen_type_die_with_usage, force_decl_die,
79283bdc 27842 declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
27843 of gen_*.
4b5d70fd 27844 (gen_block_die): Fix checking for unused blocks.
27845 (process_scope_var): Break out from .... ; work with origins only.
27846 (decls_for_scope) ... here; process nonlocalized list.
27847 (dwarf2out_ignore_block): Look for nonlocalized vars.
79283bdc 27848 * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
27849 vars.
4b5d70fd 27850 (dump_scope_block): Dump them.
27851 * tree-inline.c (remap_decls): Handle nonlocalized vars.
27852 (remap_block): Likewise.
27853 (can_be_nonlocal): New predicate.
27854 (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
27855
9af964d4 278562009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27857
27858 * configure: Regenerate.
27859
a43fd3a5 278602009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27861
e6a03973 27862 * optc-gen.awk: No need to duplicate option flags twice.
d849db06 27863 Reuse help texts for duplicate options which do not have any.
e6a03973 27864
53f9a00b 27865 * gcc.c (display_help): Document --version.
27866
0445c349 27867 * gcc.c (main): If print_help_list and verbose_flag, ensure
27868 driver output comes before subprocess output.
27869
1df76a79 27870 * optc-gen.awk: Assign all remaining fields to help string,
27871 space-separated, for multi-line help in *.opt.
27872
d7381490 27873 * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
27874 -Wno-pedantic-ms-format is for MinGW targets only.
27875
a43fd3a5 27876 * doc/options.texi (Option file format): Fix bad indentation,
27877 restoring dropped sentence.
27878
3d280f42 278792009-02-28 Jan Hubicka <jh@suse.cz>
27880
27881 * tree-inline.c (tree_function_versioning): Output debug info.
27882
12e12890 278832009-02-28 Jan Hubicka <jh@suse.cz>
27884
27885 PR debug/39267
27886 * tree-inline.c (setup_one_parameter): Do not copy propagate
27887 arguments when not optimizing.
27888
5e56456b 278892009-02-28 H.J. Lu <hongjiu.lu@intel.com>
27890
27891 PR target/39327
27892 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
27893 (avx_addsubv4df3): Likewise.
27894 (*avx_addsubv4sf3): Likewise.
27895 (sse3_addsubv4sf3): Likewise.
27896 (*avx_addsubv2df3): Likewise.
27897 (sse3_addsubv2df3): Likewise.
27898 (avx_unpckhps256): Correct item selectors.
27899 (avx_unpcklps256): Likewise.
27900 (avx_unpckhpd256): Likewise.
27901 (avx_unpcklpd256): Likewise.
27902
a8305131 279032009-02-28 Jan Hubicka <jh@suse.cz>
27904
27905 * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
27906 static vars.
27907 (copy_arguments_for_versioning): If var is declared don't declare it.
27908 (tree_function_versioning): First setup substitutions and then copy
27909 args.
27910
89f29a1b 279112009-02-27 Jan Hubicka <jh@suse.cz>
27912
27913 PR debug/39267
27914 * cgraph.h (varpool_output_debug_info): Remove.
27915 * cgraphunit.c (varpool_output_debug_info): Remove.
27916 * dwarf2out.c (deferred_locations_struct): New struct
27917 (deferred_locations): New type.
27918 (deferred_locations_list): New static var.
27919 (deffer_location): New function.
27920 (gen_variable_die): Use it.
27921 (decls_for_scope): Output info on local static vars.
27922 (dwarf2out_finish): Process deferred locations.
27923 * varpool.c (varpool_output_debug_info): Remove.
27924
cee43f7e 279252009-02-27 Jan Hubicka <jh@suse.cz>
27926
27927 PR debug/39267
27928 * tree.h (TREE_PROTECTED): Fix comment.
27929 (BLOCK_HANDLER_BLOCK): Remove.
27930 (struct tree_block): Remove handler_block add body_block.
27931 (inlined_function_outer_scope_p): New.
27932 (is_body_block): Remove.
27933 * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
27934 * dwarf2out.c (is_inlined_entry_point): Remove.
27935 (add_high_low_attributes): Use inlined_function_outer_scope_p.
a12d48b6 27936 (gen_block_die): Use is_inlined_entry_point check. Remove body block
27937 code.
cee43f7e 27938 * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
27939 * gimplify.c (gimplify_expr): Gimplify body blocks.
a12d48b6 27940 * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
27941 block with multiple subblocks.
cee43f7e 27942 (dump_scope_block): Prettier output; dump more flags and info.
27943 (dump_scope_blocks): New.
27944 (remove_unused_locals): Use dump_scope_blocks.
27945 * tree-flow.h (dump_scope_blocks): Declare.
27946 * tree-cfg.c (execute_build_cfg): Dump scope blocks.
27947 * stmt.c (is_body_block): Remove.
27948 * tree-inline.c (remap_block): Copy BODY_BLOCK info.
27949 * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
27950
74e261f8 279512009-02-27 Sebastian Pop <sebastian.pop@amd.com>
27952
27953 PR middle-end/39308
89871bab 27954 * graphite.c (graphite_loop_normal_form): Do not call
74e261f8 27955 number_of_iterations_exit from a gcc_assert.
27956
512d9edf 279572009-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27958
943327c1 27959 * config/s390/s390.c (s390_swap_cmp): Look for conditional
512d9edf 27960 jumps if COND is NULL.
27961 (find_cond_jump): New function.
27962 (s390_z10_optimize_cmp): Handling for reg-reg compares added.
943327c1 27963 * config/s390/s390.md: Remove z10_cobra attribute value.
512d9edf 27964
f8fff44e 279652009-02-26 Uros Bizjak <ubizjak@gmail.com>
27966
27967 * config/alpha/alpha.h (alpha_expand_mov): Return false if
27968 force_const_mem returns NULL_RTX.
27969
673c690d 279702009-02-26 Jan Hubicka <jh@suse.cz>
27971
27972 PR debug/39267
27973 * cgraph.h (varpool_output_debug_info): Remove.
27974 * cgraphunit.c (varpool_output_debug_info): Remove.
27975 * dwarf2out.c (deferred_locations_struct): New struct
27976 (deferred_locations): New type.
27977 (deferred_locations_list): New static var.
27978 (deffer_location): New function.
27979 (gen_variable_die): Use it.
27980 (decls_for_scope): Output info on local static vars.
27981 (dwarf2out_finish): Process deferred locations.
27982 * varpool.c (varpool_output_debug_info): Remove.
27983
a330630f 279842009-02-25 H.J. Lu <hongjiu.lu@intel.com>
7216a350 27985
27986 PR rtl-optimization/39241
27987 * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
27988 to subreg_offset_representable_p.
27989
1e176869 279902009-02-25 Paolo Bonzini <bonzini@gnu.org>
27991
27992 * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
27993 execute function prototype. Get f and nregs from max_reg_num
27994 and get_insns. Remove the first backward pass as it's dead,
27995 guard the forward pass by flag_expensive_optimizations.
27996 (rest_of_handle_regmove): Delete.
27997 (pass_regmove): Replace it with regmove_optimize.
27998
28efe441 279992009-02-25 Martin Jambor <mjambor@suse.cz>
28000
28001 PR tree-optimization/39259
28002 * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
a6ccab35 28003 calls_alloca function flags.
28efe441 28004 (copy_bb): Set calls_setjmp and alls_alloca function flags if such
28005 calls are detected.
28006
e7dd8234 280072009-02-25 Paolo Bonzini <bonzini@gnu.org>
28008
28009 * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
28010 flags_set_1_rtx, flags_set_1_set): Delete.
28011 (regmove_optimize): Do not call mark_flags_life_zones.
28012
3e0af691 280132009-02-24 Julian Brown <julian@codesourcery.com>
28014
28015 PR target/35965
28016 * config/arm/arm.c (require_pic_register): Only set
28017 cfun->machine->pic_reg once per function.
28018
95e9d9cd 280192009-02-24 Sandra Loosemore <sandra@codesourcery.com>
28020
28021 * doc/invoke.texi (Link Options): Document an easier way to pass
f8fff44e 28022 options that take arguments to the GNU linker using -Xlinker and -Wl.
95e9d9cd 28023
bbe1a1e9 280242009-02-24 Steve Ellcey <sje@cup.hp.com>
28025
28026 PR target/33785
28027 * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
28028
dbc4ace1 280292009-02-24 Richard Guenther <rguenther@suse.de>
28030
28031 PR debug/39285
28032 * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
28033
29474274 280342009-02-24 Richard Guenther <rguenther@suse.de>
7216a350 28035 Zdenek Dvorak <ook@ucw.cz>
29474274 28036
28037 PR tree-optimization/39233
28038 * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
28039 from converting them to a generic type.
28040
70c06b9d 280412009-02-23 Sebastian Pop <sebastian.pop@amd.com>
28042
28043 PR tree-optimization/39260
28044 * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
28045 contains a condition with a real type.
28046 (build_scop_conditions_1): Conditions are always last_stmt of a bb.
28047
a9d778f8 280482009-02-23 Jason Merrill <jason@redhat.com>
28049
28050 PR c++/38880
28051 * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
28052 narrowing_initializer_constant_valid_p.
89871bab 28053 (narrowing_initializer_constant_valid_p): Don't return
a9d778f8 28054 null_pointer_node for adding a pointer to itself.
28055
8b7d416a 280562009-02-23 Jan Hubicka <jh@suse.cz>
28057
28058 PR c/12245
f8fff44e 28059 * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
28060 resizing.
8b7d416a 28061
36267649 280622009-02-23 Jan Hubicka <jh@suse.cz>
28063
f8fff44e 28064 PR tree-optimization/37709
28065 * tree.c (block_ultimate_origin): Move here from dwarf2out.
28066 * tree.h (block_ultimate_origin): Declare.
28067 * dwarf2out.c (block_ultimate_origin): Move to tree.c
36267649 28068 * tree-ssa-live.c (remove_unused_scope_block_p):
28069 Eliminate blocks containig no instructions nor live variables nor
28070 nested blocks.
28071 (dump_scope_block): New function.
28072 (remove_unused_locals): Enable removal of dead blocks by default;
f8fff44e 28073 enable dumping at TDF_DETAILS.
36267649 28074
a330630f 280752009-02-21 H.J. Lu <hongjiu.lu@intel.com>
d9984eae 28076
28077 * config/i386/i386.c (classify_argument): Don't allow COImode
28078 and OImode.
28079 (function_arg_advance_32): Don't allow OImode.
28080 (function_arg_32): Likewise.
28081 (function_value_32): Likewise.
28082 (return_in_memory_32): Likewise.
28083 (function_arg_64): Remove OImode comment.
28084
a330630f 280852009-02-21 H.J. Lu <hongjiu.lu@intel.com>
f65f962c 28086
28087 PR target/39261
28088 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
28089 ix86_expand_vector_set for V4DImode in 64bit mode only.
28090 (ix86_expand_vector_init_one_var): Likewise.
28091
c08b0c04 280922009-02-21 Sebastian Pop <sebastian.pop@amd.com>
28093
28094 * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
28095
c0efe3c3 280962009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
28097
71cca459 28098 PR bootstrap/39257
c0efe3c3 28099 * loop-iv.c: Revert last change.
28100 * emit-rtl.c: Likewise.
28101
a330630f 281022009-02-21 H.J. Lu <hongjiu.lu@intel.com>
6c37e539 28103
28104 PR target/39256
28105 * config/i386/i386.c (type_natural_mode): Remove an extra
28106 space in the warning message.
28107 (function_value_32): Handle 32-byte vector modes.
28108 (return_in_memory_32): Likewise.
28109
c2c24c89 281102009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
28111
28112 * loop-iv.c (truncate_value): New function.
28113 (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
28114 of lowpart_subreg.
28115 (lowpart_subreg): Move to...
28116 * emit-rtl.c: ...here.
28117
59c236cd 281182009-02-21 Danny Smith <dannysmith@users.sourceforge.net>
09869175 28119
59c236cd 28120 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
28121 accidental and undocumented change at revision 140860.
28122
54ad443f 281232009-02-21 Joseph Myers <joseph@codesourcery.com>
28124
28125 * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
28126 take gimple_seq * arguments.
28127 (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
28128 types_compatible_p langhook.
28129
fb20d2ee 281302009-02-20 Mark Mitchell <mark@codesourcery.com>
09869175 28131 Joseph Myers <joseph@codesourcery.com>
fb20d2ee 28132
28133 * config/arm/arm.c (arm_builtin_va_list): New function.
28134 (arm_expand_builtin_va_start): Likewise.
28135 (arm_gimplify_va_arg_expr): Likewise.
28136 (TARGET_BUILD_BUILTIN_VA_LIST): Define.
28137 (TARGET_BUILD_BUILTIN_VA_START): Likewise.
28138 (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
28139 (va_list_type): New variable.
28140 (arm_mangle_type): Mangle va_list_type appropriately.
28141
86482d6b 281422009-02-20 Jakub Jelinek <jakub@redhat.com>
28143
28144 PR middle-end/39157
28145 * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
28146 * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
28147 * params.def (loop-invariant-max-bbs-in-loop): New parameter.
28148 * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
28149 parameter to 1000 for -O1 by default.
28150 * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
28151 parameter.
28152 * loop-invariant.c: Include params.h.
28153 (move_loop_invariants): Don't call move_single_loop_invariants on
28154 very large loops.
28155
9a0cf170 281562009-02-20 Jaka Mocnik <jaka@xlab.si>
28157
28158 * calls.c (emit_library_call_value_1): Use slot_offset instead of
28159 offset when calculating bounds for indexing stack_usage_map. Fixes
28160 a buffer overflow with certain target setups.
28161
4681dd41 281622009-02-20 Jakub Jelinek <jakub@redhat.com>
28163
28164 PR target/39240
28165 * calls.c (expand_call): Clear try_tail_call if caller and callee
28166 disagree in promotion of function return value.
28167
2d9d8740 281682009-02-19 Jakub Jelinek <jakub@redhat.com>
28169
28170 PR target/39175
28171 * c-common.c (c_determine_visibility): If visibility changed and
28172 DECL_RTL has been already set, call make_decl_rtl to update symbol
28173 flags.
28174
e3040053 281752009-02-19 H.J. Lu <hongjiu.lu@intel.com>
28176
28177 PR c++/39188
28178 * varasm.c (assemble_variable): Don't check DECL_NAME when
28179 globalizing a variable.
28180
ad0e7a06 281812009-02-19 Joseph Myers <joseph@codesourcery.com>
28182
28183 PR c/38483
28184 * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
28185 expression before any __builtin_trap call.
28186 * c-typeck.c (build_function_call): Convert and check function
28187 arguments before generating a call to a trap. Evaluate the
28188 function arguments before the trap.
28189
a7a2dd08 281902009-02-19 Uros Bizjak <ubizjak@gmail.com>
28191
28192 PR target/39228
28193 * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
28194 (UNSPEC_FXAM_MEM): New unspec.
28195 (fxam<mode>2_i387_with_temp): New insn and split pattern.
28196 (isinf<mode>2): Use MODEF mode iterator. Force operand[1] through
28197 memory using fxam<mode>2_i387_with_temp to remove excess precision.
28198
c5168a9e 281992009-02-19 Richard Guenther <rguenther@suse.de>
28200
28201 PR tree-optimization/39207
28202 PR tree-optimization/39074
28203 * tree-ssa-structalias.c (storedanything_id, var_storedanything,
28204 storedanything_tree): New.
28205 (do_ds_constraint): Simplify ANYTHING shortcutting. Update
a7a2dd08 28206 the STOREDANYTHING solution if the lhs solution contains ANYTHING.
c5168a9e 28207 (build_succ_graph): Add edges from STOREDANYTHING to all
28208 non-direct nodes.
28209 (init_base_vars): Initialize STOREDANYTHING.
28210 (compute_points_to_sets): Free substitution info after
28211 building the succ graph.
28212 (ipa_pta_execute): Likewise.
28213
28214 * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
28215 field.
28216 (do_ds_constraint): Do not add to special var or non-pointer
28217 field solutions.
28218 (type_could_have_pointers): Split out from ...
28219 (could_have_pointers): ... here. For arrays use the element type.
28220 (create_variable_info_for): Initialize may_have_pointers.
28221 (new_var_info): Likewise.
28222 (handle_lhs_call): Make the HEAP variable unknown-sized.
28223 (intra_create_variable_infos): Use a type with pointers for
28224 PARM_NOALIAS, make it unknown-sized.
28225
f36b5ce0 282262009-02-18 H.J. Lu <hongjiu.lu@intel.com>
28227
28228 PR target/39224
a7a2dd08 28229 * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
f36b5ce0 28230
807bf718 282312009-02-18 Jason Merrill <jason@redhat.com>
28232
28233 PR target/39179
28234 * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
28235 value if DECL_EXTERNAL.
28236 * tree-sra.c (sra_walk_gimple_assign): Likewise.
28237 * target.h (gcc_target::binds_local_p): Clarify "module".
28238 * tree.h (TREE_PUBLIC): Clarify "module".
28239
f29980e5 282402009-02-17 Xuepeng Guo <xuepeng.guo@intel.com>
28241
28242 PR target/38891
28243 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
28244 initialization for MS_ABI prior to the hunk of !TARGET_MMX.
28245
58beda63 282462009-02-17 H.J. Lu <hongjiu.lu@intel.com>
28247
28248 PR target/39082
28249 * c.opt (Wabi): Support C and ObjC.
28250 (Wpsabi): New.
28251
28252 * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
28253
28254 * config/i386/i386.c (classify_argument): Warn once about the ABI
28255 change when passing union with long double.
28256
28257 * doc/invoke.texi: Update -Wabi for warning psABI changes.
28258
22d77a94 282592009-02-18 Joseph Myers <joseph@codesourcery.com>
28260
28261 PR c/35447
28262 * c-parser.c (c_parser_compound_statement): Always enter and leave
28263 a scope.
28264
492e3336 282652009-02-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28266
28267 PR target/34587
28268 * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
28269
b6eab06c 282702009-02-18 Jakub Jelinek <jakub@redhat.com>
28271
28272 PR tree-optimization/36922
28273 * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
28274 * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
28275 Likewise.
28276
4f0507c2 282772009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
28278
28279 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
28280 to 0 for EABI64.
28281
be83ab34 282822009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
28283
28284 * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
28285
aa6a48b8 282862009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
28287
28288 * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
28289 tree sharing.
28290
0f604f19 282912009-02-17 Ruan Beihong <ruanbeihong@gmail.com>
28292 Richard Sandiford <rdsandiford@googlemail.com>
28293
28294 * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
28295 * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
28296 (loongson_biadd): ...this.
28297
1ab8a912 282982009-02-17 Richard Guenther <rguenther@suse.de>
28299
28300 PR tree-optimization/39202
28301 * tree-ssa-structalias.c (do_structure_copy): Before collapsing
28302 a var make sure to follow existing collapses.
28303
aa03bd5e 283042009-02-17 Richard Guenther <rguenther@suse.de>
28305
28306 PR middle-end/39214
28307 * langhooks.c (lhd_print_error_function): Check for NULL block.
28308
f46bc821 283092009-02-17 Richard Guenther <rguenther@suse.de>
28310
28311 PR tree-optimization/39204
28312 * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
28313 of the PHI arg.
28314
974645ce 283152009-02-17 Uros Bizjak <ubizjak@gmail.com>
28316
28317 * config/soft-fp/double.h: Update from glibc CVS.
28318
7197c469 283192009-02-17 Richard Guenther <rguenther@suse.de>
28320
28321 PR tree-optimization/39207
28322 * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
28323 strict-aliasing warnings for pointers pointing to NULL.
28324
1646bf33 283252009-02-16 Joseph Myers <joseph@codesourcery.com>
28326
28327 PR c/35446
28328 * c-parser.c (c_parser_braced_init): Call pop_init_level when
28329 skipping until next close brace.
28330
0fb2a998 283312009-02-16 H.J. Lu <hongjiu.lu@intel.com>
28332
28333 PR target/37049
28334 * config/i386/i386.c (ix86_expand_push): Set memory alignment
28335 to function argument boundary.
28336
a1a75b07 283372009-02-16 Hariharan Sandanagobalane <hariharan@picochip.com>
28338
28339 * config/picochip/picochip.md (lea_add): Allow any nonimmediate
28340 in the lea_add. Reload eventually constraints it properly.
1cae7fd7 28341 * config/picochip/constraints.md: Remove the target constraint
a1a75b07 28342 "b", since it is not needed anymore.
28343
320084b9 283442009-02-16 Jakub Jelinek <jakub@redhat.com>
28345
28346 * gthr-dce.h: Uglify function parameter and local variable names.
28347 * gthr-gnat.h: Likewise.
28348 * gthr-mipssde.h: Likewise.
28349 * gthr-nks.h: Likewise.
28350 * gthr-posix95.h: Likewise.
28351 * gthr-posix.h: Likewise.
28352 * gthr-rtems.h: Likewise.
28353 * gthr-single.h: Likewise.
28354 * gthr-solaris.h: Likewise.
28355 * gthr-tpf.h: Likewise.
28356 * gthr-vxworks.h: Likewise.
28357 * gthr-win32.h: Likewise.
28358
fde73de8 283592009-02-15 H.J. Lu <hongjiu.lu@intel.com>
28360
28361 PR target/39196
28362 * config/i386/i386.md: Restrict the new peephole2 to move
28363 between MMX/SSE registers.
28364
b5c49426 283652009-02-15 Richard Guenther <rguenther@suse.de>
28366
28367 Revert
28368 2009-02-13 Richard Guenther <rguenther@suse.de>
28369
28370 * configure.ac: Enable LFS.
28371 * configure: Re-generate.
28372 * config.in: Likewise.
28373
70ca06f8 283742009-02-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28375
28376 * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
28377 spu_srqwbyte, spu_srqwbytebc): Define.
28378 * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
28379 spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
28380 * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
28381 "shrqby_<mode>"): New insn-and-split patterns.
28382 * config/spu/spu.c (expand_builtin_args): Determine and return
28383 number of operands using spu_builtin_description data.
28384 (spu_expand_builtin_1): Use it.
28385
c49d20be 283862009-02-13 Steve Ellcey <sje@cup.hp.com>
28387
28388 PR target/38056
28389 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
28390 TARGET_CONST_GP.
28391
c81f43ee 283922009-02-13 H.J. Lu <hongjiu.lu@intel.com>
28393
28394 PR target/39149
28395 * config/i386/i386.c (override_options): Correct warning
a6ccab35 28396 messages for -malign-loops, -malign-jumps and -malign-functions.
c81f43ee 28397
bc0a240f 283982009-02-13 H.J. Lu <hongjiu.lu@intel.com>
28399
28400 PR target/39152
28401 * config/i386/i386.md: Restrict the new peephole2 to move
28402 between the general purpose registers.
28403
79a817bf 284042009-02-13 H.J. Lu <hongjiu.lu@intel.com>
28405
28406 PR target/39162
28407 * config/i386/i386.c (type_natural_mode): Add a new argument.
a7a2dd08 28408 Return the original mode and warn ABI change if vector size is 32byte.
79a817bf 28409 (function_arg_advance): Updated.
28410 (function_arg): Likewise.
28411 (ix86_function_value): Likewise.
28412 (ix86_return_in_memory): Likewise.
28413 (ix86_sol10_return_in_memory): Likewise.
28414 (ix86_gimplify_va_arg): Likewise.
28415 (function_arg_32): Don't warn ABX ABI change here.
28416 (function_arg_64): Likewise.
28417
a330630f 284182009-02-13 Bernd Schmidt <bernd.schmidt@analog.com>
27440859 28419
28420 * loop-iv.c (implies_p): In the final case, test that operands 0
28421 of the two comparisons match.
28422
462ce619 28423 * config/bfin/bfin.c (find_prev_insn_start): New function.
28424 (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
28425 (find_next_insn_start): Move.
28426
76549266 284272009-02-13 Richard Guenther <rguenther@suse.de>
28428
28429 * configure.ac: Enable LFS.
28430 * configure: Re-generate.
28431 * config.in: Likewise.
28432
1bbf1c2f 284332009-02-13 Joseph Myers <joseph@codesourcery.com>
28434
28435 PR c/35444
28436 * c-parser.c (c_parser_parms_list_declarator): Discard pending
28437 sizes on syntax error after some arguments have been parsed.
28438
ce2801fe 284392009-02-12 Jakub Jelinek <jakub@redhat.com>
28440
28441 * doc/invoke.texi (-fira): Remove.
28442
ac502adf 284432009-02-12 H.J. Lu <hongjiu.lu@intel.com>
28444
28445 * caller-save.c: Replace regclass.c with reginfo.c in comments.
28446 * recog.c: Likewise.
28447 * rtl.h: Likewise.
28448
8b21beb2 284492009-02-12 Uros Bizjak <ubizjak@gmail.com>
28450
28451 * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
28452 (umul_ppmm): Likewise.
28453 (count_leading_zeros): Likewise.
28454 (count_trailing_zeros): Likewise.
28455 (UMUL_TIME): Likewise.
28456
284572009-02-12 H.J. Lu <hongjiu.lu@intel.com>
28458
24200b28 28459 * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
28460 soft-fp/t-softfp to tmake_file.
8b21beb2 28461
28462 * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
24200b28 28463 (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
28464 (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
28465 IA64_BUILTIN_INFQ]: New.
8b21beb2 28466 (ia64_init_builtins): Initialize __builtin_infq,
28467 __builtin_fabsq and __builtin_copysignq if not HPUX.
28468 (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
28469 IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
28470
28471 * config/ia64/lib1funcs.asm (__divtf3): Define only if
28472 SHARED is defined.
28473 (__fixtfti): Likewise.
28474 (__fixunstfti): Likewise.
28475 (__floattitf): Likewise.
28476
28477 * config/ia64/libgcc-glibc.ver: New.
28478 * config/ia64/t-fprules-softfp: Likewise.
28479 * config/ia64/sfp-machine.h: Likewise.
28480
28481 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
28482 (LIBGCC2_TF_CEXT): Likewise.
28483 (TF_SIZE): Likewise.
28484 (TARGET_INIT_LIBFUNCS): Likewise.
28485
24200b28 28486 * config/ia64/t-glibc (SHLINB_MAPFILES):
a7a2dd08 28487 Add $(srcdir)/config/ia64/libgcc-glibc.ver.
8b21beb2 28488
cffe3086 284892009-02-12 H.J. Lu <hongjiu.lu@intel.com>
28490
28491 * config/i386/i386.c (construct_container): Rewrite processing
28492 BLKmode with X86_64_SSE_CLASS.
28493
fbfa3312 284942009-02-12 Paolo Bonzini <bonzini@gnu.org>
28495
28496 PR target/39152
28497 * config/i386/i386.md: Replace simplify_replace_rtx with
28498 replace_rtx in the new peephole2.
28499
38b64900 285002009-02-12 Nathan Sidwell <nathan@codesourcery.com>
28501
28502 * doc/invoke.texi (Optimize Options): Stop claiming inlining and
28503 loop unrolling do not happen at -O2.
28504
674ca8bf 285052009-02-12 Michael Matz <matz@suse.de>
28506
28507 * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
28508
e1b3cc49 285092009-02-12 Jakub Jelinek <jakub@redhat.com>
28510
28511 * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
28512 for -g3.
28513
0fbcd2eb 285142009-02-12 Ben Elliston <bje@au.ibm.com>
28515
28516 * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
28517 patterns when updating the back chain. Missed in the 2009-02-10
28518 change.
28519
0e86dff0 285202009-02-11 Janis Johnson <janis187@us.ibm.com>
28521
28522 * doc/extend.texi (Decimal Floating Types): Update identifier of
28523 draft TR and list of missing support.
28524
2a92826d 285252009-02-11 Jakub Jelinek <jakub@redhat.com>
28526
28527 PR middle-end/39154
28528 * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
28529 bit to variable length decl's flags, add it also to its
28530 pointer replacement variable.
28531
73c5e2aa 285322009-02-11 Uros Bizjak <ubizjak@gmail.com>
28533 Jakub Jelinek <jakub@redhat.com>
28534
28535 PR target/39118
28536 * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
28537 (memory_blockage): New expander.
28538 (*memory_blockage): New insn pattern.
28539 * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
28540 instead of general blockage at the end of function prologue when
28541 frame pointer is used to access red zone area. Do not emit blockage
28542 when profiling, it is emitted in generic code.
28543 (ix86_expand_epilogue): Emit memory_blockage at the beginning of
28544 function epilogue when frame pointer is used to access red zone area.
28545
486a1b16 285462009-02-11 Paolo Bonzini <bonzini@gnu.org>
28547
b899e808 28548 PR target/38824
486a1b16 28549 * config/i386/i386.md: Add two new peephole2 to avoid mov followed
28550 by arithmetic with memory operands.
28551 * config/i386/predicates.md (commutative_operator): New.
28552
560db68e 285532009-02-10 Janis Johnson <janis187@us.ibm.com>
28554
28555 * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
28556 bulleted lists.
28557
892fdb03 285582009-02-10 Eric Botcazou <ebotcazou@adacore.com>
28559
28560 * alias.h (record_alias_subset): Declare.
28561 * alias.c (record_alias_subset): Make global.
28562
4ef8346d 285632009-02-10 Nick Clifton <nickc@redhat.com>
28564
28565 * tree-parloops.c: Change license to GPLv3.
28566 * ipa-struct-reorg.c: Change license to GPLv3.
28567 * ipa-struct-reorg.h: Change license to GPLv3.
28568
fc92befb 285692009-02-10 Steve Ellcey <sje@cup.hp.com>
28570
28571 PR c/39084
28572 * c-decl.c (start_struct): Return NULL on error.
28573
e15deb4b 285742009-02-10 Jakub Jelinek <jakub@redhat.com>
28575
16ccc50c 28576 PR middle-end/39124
28577 * cfgloopmanip.c (remove_path): Call remove_bbs after
28578 cancel_loop_tree, not before it.
28579
e15deb4b 28580 PR target/39139
73c5e2aa 28581 * function.h (struct function): Add has_local_explicit_reg_vars bit.
e15deb4b 28582 * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
28583 VAR_DECLs were seen.
28584 * tree-ssa-live.c (remove_unused_locals): Recompute
28585 cfun->has_local_explicit_reg_vars.
28586 * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
28587 copies or clearings if cfun->has_local_explicit_reg_vars.
28588
a9c1f295 285892009-02-10 Uros Bizjak <ubizjak@gmail.com>
28590
28591 PR target/39118
28592 * config/i386/i386.c (expand_prologue): Emit blockage at the end
28593 of function prologue when frame pointer is used to access
28594 red zone area.
28595
c85b2faf 285962009-02-10 Richard Guenther <rguenther@suse.de>
28597
28598 PR middle-end/39127
28599 * gimplify.c (gimple_regimplify_operands): Always look if
28600 we need to create a temporary.
28601
8d093dba 286022009-02-10 Richard Guenther <rguenther@suse.de>
28603
28604 PR tree-optimization/39132
28605 * tree-loop-distribution.c (todo): New global var.
28606 (generate_memset_zero): Trigger TODO_rebuild_alias.
28607 (tree_loop_distribution): Return todo.
28608
edd93683 286092009-02-10 H.J. Lu <hongjiu.lu@intel.com>
28610
28611 PR target/39119
28612 * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
28613 (x86_64_reg_class_name): Removed.
28614 (classify_argument): Return 0 if bytes > 32. Return 0 if the
28615 first one isn't X86_64_SSE_CLASS or any other ones aren't
28616 X86_64_SSEUP_CLASS when size > 16bytes. Don't turn
28617 X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
28618 is X86_64_SSEUP_CLASS. Set AVX modes to 1 X86_64_SSE_CLASS
28619 and 3 X86_64_SSEUP_CLASS.
28620 (construct_container): Remove X86_64_AVX_CLASS. Handle 4
28621 registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
28622
2b6975a6 286232009-02-10 Ben Elliston <bje@au.ibm.com>
28624
28625 * config/rs6000/rs6000.md (allocate_stack): Always use an update
28626 form instruction to update the stack back chain word, even if the
28627 user has disabled the generation of update instructions.
28628 (movdi_<mode>_update_stack): New.
28629 (movsi_update_stack): Likewise.
28630 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
28631 always use an update form instruction to update the stack back
28632 chain word.
28633
a72d4b7d 286342009-02-09 Sebastian Pop <sebastian.pop@amd.com>
28635
28636 PR middle-end/38953
73c5e2aa 28637 * graphite.c (if_region_set_false_region): After moving a region in
28638 the false branch of a condition, remove the empty dummy basic block.
a72d4b7d 28639 (gloog): Remove wrong fix for PR38953.
28640
1f915911 286412009-02-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28642
28643 * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
28644 generation due to implicit sign extension.
28645
bbe1fc8f 286462009-02-09 Eric Botcazou <ebotcazou@adacore.com>
28647
28648 PR middle-end/38981
28649 * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
28650 at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
28651
fd494669 286522009-02-09 Richard Guenther <rguenther@suse.de>
28653
28654 PR middle-end/35202
28655 * convert.c (convert_to_real): Disable (float)fn((double)x)
28656 to fnf(x) conversion if errno differences may occur and
28657 -fmath-errno is set.
28658
a64bd5e4 286592009-02-07 Anatoly Sokolov <aesok@post.ru>
28660
28661 * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
28662 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
28663 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
28664
9e830260 286652009-02-06 Joseph Myers <joseph@codesourcery.com>
28666
28667 PR c/35434
28668 * c-common.c (handle_alias_attribute): Disallow attribute for
28669 anything not a FUNCTION_DECL or VAR_DECL.
28670
42dc1cf5 286712009-02-06 Janis Johnson <janis187@us.ibm.com>
28672
28673 PR c/39035
28674 * real.c (do_compare): Special-case compare of zero against
28675 decimal float value.
28676
0af147a4 286772009-02-06 Joseph Myers <joseph@codesourcery.com>
28678
28679 PR c/36432
28680 * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
28681 as indicating flexible array members unless the field itself is
28682 being declarared as the incomplete array.
28683
68b2f511 286842009-02-06 Jan Hubicka <jh@suse.cz>
28685
28686 PR tree-optimization/38844
28687 * ipa-inline.c (try_inline): Stop inlining recursion when edge
28688 is already inlined.
28689
dac59c04 286902009-02-06 Richard Guenther <rguenther@suse.de>
28691
28692 PR middle-end/38977
28693 * tree-cfg.c (need_fake_edge_p): Force a fake edge for
28694 fork because we may expand it as __gcov_fork.
28695
2314f2ef 286962009-02-06 Nick Clifton <nickc@redhat.com>
28697
a9c1f295 28698 * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
2314f2ef 28699
3d2d7de7 287002009-02-06 Paolo Bonzini <bonzini@gnu.org>
28701
28702 PR tree-optimization/35659
28703 * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
28704 vn_phi_eq): Shortcut if hashcode does not match.
28705 (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
28706 NULL operands.
28707 * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
28708 and avoid iterative_hash_expr.
28709 (FOR_EACH_VALUE_ID_IN_SET): New.
28710 (value_id_compare): Remove.
28711 (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
28712 sort expressions by value id.
28713
07d27c98 287142009-02-05 Kaz Kojima <kkojima@gcc.gnu.org>
28715
28716 PR target/38991
28717 * config/sh/predicates.md (general_movsrc_operand): Don't check
28718 the subreg of system registers here.
28719
f014e39d 287202009-02-05 Jakub Jelinek <jakub@redhat.com>
28721
28722 PR c++/39106
28723 * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
28724 on the copied decl.
28725
99e9b19f 287262009-02-05 Paolo Bonzini <bonzini@gnu.org>
28727
28728 PR rtl-optimization/39110
28729 * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
28730 addresses, not aligned ones.
28731
707dd2b0 287322009-02-05 Daniel Berlin <dberlin@dberlin.org>
28733 Richard Guenther <rguenther@suse.de>
28734
28735 PR tree-optimization/39100
28736 * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
28737 comment says and add edges.
28738
c34f8a78 287392009-02-05 Joseph Myers <joseph@codesourcery.com>
28740
28741 PR c/35435
28742 * c-common.c (handle_tls_model_attribute): Ignore attribute for
28743 non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
28744
89871bab 287452009-02-04 Tobias Grosser <grosser@fim.uni-passau.de>
7f28086c 28746
28747 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
28748 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
28749 register_bb_in_sese, new_sese, free_sese): Moved.
28750 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
28751 outermost_loop_in_scop, build_scop_iteration_domain,
28752 expand_scalar_variables_ssa_name, get_vdef_before_scop,
28753 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
28754 Use loop_in_sese_p instead of loop_in_scop_p.
28755 (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
28756 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
28757 (scopdet_basic_block_info): Fix bug in scop detection.
28758 (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
28759 eq_loop_to_cloog_loop): Remove.
28760 (nb_loops_around_loop_in_scop, nb_loop
28761 ref_nb_loops): Moved here...
28762 * graphite.h (ref_nb_loops): ... from here.
28763 (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
28764 (loop_domain_dim, loop_iteration_vector_dim): Remove.
28765 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
7f28086c 28766
0eee494e 287672009-02-04 Paolo Bonzini <bonzini@gnu.org>
28768 Hans-Peter Nilsson <hp@axis.com>
28769
28770 PR rtl-optimization/37889
28771 * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
28772 Move offset handling from PLUS to before the switch. Use new
28773 arguments when considering SYMBOL_REFs too.
28774 (rtx_addr_can_trap_p): Pass dummy offset and size.
28775 (enum may_trap_p_flags): Remove.
28776 (may_trap_p_1): Pass size from MEM_SIZE.
28777
28778 PR rtl-optimization/38921
28779 * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
28780 * rtl.h (may_trap_after_code_motion_p): Delete prototype.
28781 * rtlanal.c (may_trap_after_code_motion_p): Delete.
28782 (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
28783
810c9e65 287842009-02-04 H.J. Lu <hongjiu.lu@intel.com>
28785
28786 AVX Programming Reference (January, 2009)
28787 * config/i386/sse.md (*vpclmulqdq): New.
28788
73d3c8f2 287892009-02-04 Jakub Jelinek <jakub@redhat.com>
28790
28791 PR tree-optimization/38977
28792 PR gcov-profile/38292
6db00048 28793 * calls.c (special_function_p): Disregard __builtin_ prefix.
73d3c8f2 28794
fe898823 287952009-02-04 Hariharan Sandanagobalane <hariharan@picochip.com>
28796
28797 * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
28798 non-indexable addresses even before reload.
28799
51428eb1 288002009-02-03 Joseph Myers <joseph@codesourcery.com>
28801
28802 PR c/29129
28803 * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
28804 as having variable size. Do not give an error for unnamed
28805 parameters with [*] declarators. Give a warning for type names
28806 with [*] declarators and mark them as variable size.
28807 * c-parser.c (c_parser_sizeof_expression): Do not give an error
28808 for sizeof applied to [*] type names.
28809
4f4106ef 288102009-02-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
28811
28812 PR C++/36607
28813 * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
28814
5a371c77 288152009-02-03 Jakub Jelinek <jakub@redhat.com>
28816
28817 * gcc.c (process_command): Update copyright notice dates.
28818 * gcov.c (print_version): Likewise.
28819 * gcov-dump.c (print_version): Likewise.
28820 * mips-tfile.c (main): Likewise.
28821 * mips-tdump.c (main): Likewise.
28822
e5d71db4 288232009-02-03 Joseph Myers <joseph@codesourcery.com>
28824
28825 PR c/35433
28826 * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
28827 for composite type involving a zero-length array type.
28828
14e882ea 288292009-02-03 Jakub Jelinek <jakub@redhat.com>
28830
fbcb9be4 28831 PR target/35318
28832 * function.c (match_asm_constraints_1): Skip over
28833 initial optional % in the constraint.
28834
14e882ea 28835 PR inline-asm/39059
28836 * c-parser.c (c_parser_postfix_expression): If fixed point is not
28837 supported, don't accept FIXED_CSTs.
28838 * c-decl.c (finish_declspecs): Error if fixed point is not supported
28839 and _Sat is used without _Fract/_Accum. Set specs->type to
28840 integer_type_node for cts_fract/cts_accum if fixed point is not
28841 supported.
28842
f4b3ca46 288432009-02-02 Catherine Moore <clm@codesourcery.com>
28844
a9c1f295 28845 * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
f4b3ca46 28846
0a959c1d 288472009-02-02 Richard Sandiford <rdsandiford@googlemail.com>
28848
28849 * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
28850 (ABI_HAS_64BIT_SYMBOLS): Use it.
28851 (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
28852
2f02c19f 288532009-02-02 Paul Brook <paul@codesourcery.com>
28854
28855 * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
28856
cde8f1c8 288572009-02-02 Jakub Jelinek <jakub@redhat.com>
28858
28859 PR inline-asm/39058
28860 * recog.h (asm_operand_ok): Add constraints argument.
28861 * recog.c (asm_operand_ok): Likewise. If it is set, for digits
28862 recurse on matching constraint.
28863 (check_asm_operands): Pass constraints as 3rd argument to
28864 asm_operand_ok. Don't look up matching constraint here.
28865 * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
28866 to asm_operand_ok.
28867
e366f125 288682009-02-02 Ben Elliston <bje@au.ibm.com>
28869
28870 * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
28871 TARGET_NARROW_VOLATILE_BITFIELD macro names.
28872
a3caf955 288732009-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28874
a2853397 28875 * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
28876 information. Remove some obsolete information. Reorganize.
28877
a3caf955 28878 * config/pa/fptr.c: Revert license to GPL 2.
28879 * config/pa/milli64.S: Likewise.
28880
8cae609c 288812009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
28882
28883 PR target/38904
28884 * mkmap-flat.awk (END): Use pe_dll command-line arg to pass
28885 LIBRARY name in, instead of hard-coding it.
28886 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add an
28887 extra target make frag to tmake_files according to EH model.
28888 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
28889 * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Add new target
28890 frags that define makefile variable EH_MODEL appropriately.
28891 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Add comment.
28892 * config/i386/cygwin.h (LIBGCC_EH_EXTN): Define to nothing or
28893 to "-sjlj" according to type of EH configured.
28894 (LIBGCC_SONAME): Concatenate it to shared library base name.
28895 * config/i386/mingw32.h (LIBGCC_EH_EXTN): Define to "_dw2" or
28896 to "_sjlj" according to type of EH configured.
28897 (LIBGCC_SONAME): Concatenate it to shared library base name.
28898 * config/i386/t-cygming (SHLIB_SONAME): Use EH_MODEL.
28899 (SHLIB_LINK): Add missing semicolon to if-else construct.
28900 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
28901 string value of "pe_dll" command-line option.
28902 * config/i386/t-cygwin (SHLIB_EH_EXTENSION): New helper.
28903 (SHLIB_SONAME): Use it when overriding t-cygming default.
28904 (SHLIB_IMPLIB): Override t-cygming default.
28905 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
28906 string value of "pe_dll" command-line option.
28907
27ed8c87 289082009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
28909
28910 PR target/38952
28911 * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
6db00048 28912 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
27ed8c87 28913
98de8b69 289142009-01-31 Richard Guenther <rguenther@suse.de>
28915
28916 PR tree-optimization/38937
28917 * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
28918 computing the transitive closure.
28919
c019af4d 289202009-01-30 Richard Guenther <rguenther@suse.de>
28921
28922 PR tree-optimization/39041
28923 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
28924 Propagate variable indices only if the types match for this stmt.
28925
709cdea6 289262009-01-30 Jakub Jelinek <jakub@redhat.com>
28927
28928 PR target/39013
28929 * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
28930 inline but never defined.
28931
a7a2dd08 289322009-01-30 Wolfgang Gellerich <gellerich@de.ibm.com>
26e8b800 28933
28934 * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
28935 (*insv_h_di_reg_extimm): New insn.
28936 (*insv_l<mode>_reg_extimm): New insn.
28937
289382009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
3b31ea78 28939
28940 * config/picochip/picochip.c (flag_conserve_stack): set
28941 PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
28942 fconserve-stack. Reduce call-overhead used by inliner.
28943
26e8b800 289442009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
c45dd88a 28945
28946 PR/38157
28947 * common.opt (flag_conserve_stack): Initialised to zero.
28948
dbc128e8 289492009-01-30 Kai Tietz <kai.tietz@onevision.com>
28950
28951 PR/39002
28952 * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
28953 (ix86_expand_epilogue): Take nsseregs in account to use proper restore
28954 method.
28955
ac50b6ef 289562009-01-29 H.J. Lu <hongjiu.lu@intel.com>
28957
28958 * ira-color.c (allocno_reload_assign): Update comments.
28959 * regmove.c (regmove_optimize): Likewise.
28960
28961 * ra.h: Removed.
28962
3bef4012 289632009-01-29 Robert Millan <rmh@aybabtu.com>
28964
943327c1 28965 * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
28966 * config/i386/kopensolaris-gnu.h: New file. Undefine
3bef4012 28967 `MD_UNWIND_SUPPORT'.
943327c1 28968 * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
3bef4012 28969
82b19557 289702009-01-29 Kazu Hirata <kazu@codesourcery.com>
28971
28972 PR tree-optimization/39007
28973 * tree-loop-distribution.c (generate_builtin): Use
28974 recompute_dominator to compute the immediate dominator of the
28975 basic block just after the loop.
28976
a330630f 289772009-01-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
53ae77bf 28978
28979 * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
28980 (ASM_OUTPUT_DWARF_PCREL): Define.
28981
a330630f 289822009-01-29 Vladimir Makarov <vmakarov@redhat.com>
cf709bf6 28983
28984 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
28985 * doc/passes.texi: Remove entries about regclass, local-alloc, and
28986 global. Modify entries about regmove and IRA.
28987
28988 * ra-conflict.c: Remove the file.
28989
28990 * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
28991
28992 * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
28993 (pass_regclass_init): Rename to pass_reginfo_init.
28994
28995 * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
28996
28997 * toplev.h (flag_ira): Remove.
28998
28999 * caller-save.c (setup_save_areas): Remove flag_ira.
29000
6db00048 29001 * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
cf709bf6 29002
29003 * global.c: Remove the file.
29004
aca60c7b 29005 * opts.c (decode_options): Remove flag_ira.
cf709bf6 29006
29007 * hard-reg-set.h (losing_caller_save_reg_set): Remove.
29008
29009 * regmove.c: Modify file description.
29010 (find_use_as_address, try_auto_increment): Define them only if
29011 AUTO_INC_DEC is defined.
29012 (replacement_quality, replace_in_call_usage, fixup_match_1,
29013 stable_and_no_regs_but_for_p): Remove.
29014 (reg_set_in_bb): Make it static.
29015 (regmove_optimize): Remove flag_ira and code which worked for
29016 !flag_ira.
29017
29018 * local-alloc.c: Remove the file.
29019
29020 * common.opt (fira): Remove.
29021
29022 * ira.c: Include except.h.
29023 (eliminable_regset): Move from global.c.
29024 (mark_elimination): Ditto. Remove flag_ira.
29025 (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
29026 equiv_mem_modified, validate_equiv_mem_from_store,
29027 validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
29028 contains_replace_regs, memref_referenced_p, memref_used_between_p,
29029 no_equiv, recorded_label_ref): Move from local-alloc.c.
29030 (update_equiv_regs): Ditto. Make it static.
29031 (print_insn_chain, print_insn_chains): Move it from global.c.
6db00048 29032 (pseudo_for_reload_consideration_p): Ditto. Remove flag_ira.
cf709bf6 29033 (build_insn_chain): Ditto. Make it static.
29034 (ra_init_live_subregs): Move from ra-conflict.c. Make it static.
29035 Rename to init_live_subregs.
29036 (gate_ira): Remove flag_ira.
29037
29038 * regclass.c: Rename reginfo.c. Change file description.
29039 (FORBIDDEN_INC_DEC_CLASSES): Remove.
a9c1f295 29040 (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
cf709bf6 29041 (init_reg_sets_1): Remove code for evaluation of
29042 reg_class_superclasses and losing_caller_save_reg_set.
29043 (init_regs): Remove init_reg_autoinc.
29044 (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
29045 ok_for_base_p_nonstrict): Remove.
6db00048 29046 (regclass_init): Rename to reginfo_init. Don't initialize init_cost.
cf709bf6 29047 (pass_regclass_init): Rename to pass_reginfo_init. Modify
29048 corresponding entries.
29049 (dump_regclass, record_operand_costs, scan_one_insn,
29050 init_reg_autoinc, regclass, record_reg_classes, copy_cost,
29051 record_address_regs, auto_inc_dec_reg_p): Remove.
29052 (gt-regclass.h): Rename to gt-reginfo.h.
29053
29054 * rtl.h (dump_global_regs, retry_global_alloc,
6db00048 29055 build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
cf709bf6 29056
29057 * Makefile.in (RA_H): Remove.
29058 (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
29059 Rename regclass.o to reginfo.o.
29060 (regclass.o): Rename to reginfo.o. Rename gt-regclass.h to
29061 gt-reginfo.h.
29062 (global.o, local-alloc.o, ra-conflict.o): Remove entries.
29063 (GTFILES): Rename regclass.c to reginfo.c.
29064
29065 * passes.c (init_optimization_passes): Remove pass_local_alloc and
6db00048 29066 pass_global_alloc. Rename pass_regclass_init to pass_reginfo_init.
cf709bf6 29067
29068 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
29069 count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
29070 Remove flag_ira.
a7a2dd08 29071 (finish_spills): Ditto. Remove code for !flag_ira.
89871bab 29072
237805dd 290732009-01-29 Kenneth Zadeck <zadeck@naturalbridge.com>
b85ccd2c 29074
29075 PR middle-end/35854
29076 * doc/invoke.texi (rtl debug options): Complete rewrite.
29077 * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
29078 to auto_inc_dec".
29079 * mode-switching.c (pass_mode_switching): Rename pass from
29080 "mode-sw" to "mode_sw".
29081 * except.c (pass_convert_to_eh_ranges): Rename pass from
29082 "eh-ranges" to "eh_ranges".
29083 * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
29084 to "subreg1".
89871bab 29085
29086
de353418 290872009-01-29 Andrey Belevantsev <abel@ispras.ru>
29088 Alexander Monakov <amonakov@ispras.ru>
29089
29090 PR middle-end/38857
29091 * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
29092 register.
29093 (move_exprs_to_boundary): Change return type and pass through
29094 should_move from move_op. Relax assert. Update usage ...
29095 (schedule_expr_on_boundary): ... here. Use should_move instead of
29096 cant_move.
29097 (move_op_orig_expr_found): Indicate that insn was disconnected from
29098 stream.
29099 (code_motion_process_successors): Do not call after_merge_succs
29100 callback if original expression was not found when traversing any of
29101 the branches.
29102 (code_motion_path_driver): Change return type. Update prototype.
29103 (move_op): Update comment. Add a new parameter (should_move). Update
29104 prototype. Set *should_move based on indication provided by
29105 move_op_orig_expr_found.
29106
2fdf186f 291072009-01-28 Pat Haugen <pthaugen@us.ibm.com>
29108
29109 * doc/invoke.texi (avoid-indexed-addresses): Document new option.
29110 * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
29111 * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
29112 * config/rs6000/rs6000.c (rs6000_override_options): Default
29113 avoid-indexed-addresses on for Power6, off for everything else.
29114 (avoiding_indexed_address_p): New function.
29115 (rs6000_legitimize_address): Use it.
29116 (rs6000_legitimate_address): Likewise.
29117 * config/rs6000/rs6000.md (movXX_updateX): Likewise
29118
c6b3a2da 291192009-01-28 Kazu Hirata <kazu@codesourcery.com>
29120
29121 PR tree-optimization/38997
29122 * tree-loop-distribution.c (generate_memset_zero): Use
29123 POINTER_PLUS_EXPR for a pointer addition.
29124
21676467 291252009-01-28 Andreas Krebbel <krebbel1@de.ibm.com>
29126
29127 * config/s390/s390.md (bswap<mode>2): New pattern added.
29128
d3bada4b 291292009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
29130
29131 * config/s390/s390.md (*tls_load_31): Added type attribute.
29132
9925e185 291332009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
29134
29135 * config/s390/s390.md: Fix a few comments.
29136
94ab3c8a 291372009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
29138
29139 * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
29140 (*tm<mode>_full): Fixed z10prop attribute.
29141 (*tst<mode>_extimm): Fixed z10prop attribute.
29142 (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
29143 (*tstqiCCT_cconly): Fixed z10prop attribute.
29144 (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
29145 (*movsi_larl): Fixed z10prop attribute.
29146 (*movsi_zarch): Fixed z10prop attribute.
29147 (*movsi_eas): Fixed z10prop attribute.
29148 (*movhi): Fixed z10prop attribute.
29149 (*movqi): Fixed z10prop attribute.
29150 (*movstrictqi): Fixed z10prop attribute.
29151 (*mov<mode>): Fixed z10prop attribute.
29152 (*movcc): Fixed z10prop attribute.
29153 (*sethighpartdi_64): Fixed z10prop attribute.
29154 (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
29155 (*negdi2_sign_cc): Fixed z10prop attribute.
29156 (*negdi2_sign): Fixed z10prop attribute.
29157 (*absdi2_sign_cc): Fixed z10prop attribute.
29158 (*absdi2_sign): Fixed z10prop attribute.
29159 (*negabsdi2_sign_cc): Fixed z10prop attribute.
29160 (*negabsdi2_sign): Fixed z10prop attribute.
29161 (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
29162 (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
29163 (doloop_si64): Fixed z10prop attribute.
29164 (doloop_si31): Fixed z10prop attribute.
29165 (doloop_long): Fixed z10prop attribute.
29166 (indirect_jump): Fixed z10prop attribute.
29167 (nop): Fixed z10prop attribute.
29168 (main_base_64): Fixed z10prop attribute.
29169 (reload_base_64): Fixed z10prop attribute.
29170
d1b5f73a 291712009-01-28 Jakub Jelinek <jakub@redhat.com>
29172
29173 PR rtl-optimization/38740
a7a2dd08 29174 * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
29175 if !optimize.
d1b5f73a 29176 * config/mips/mips.c (mips_reorg): Likewise.
29177
3dc4c394 291782009-01-28 Richard Guenther <rguenther@suse.de>
29179
29180 PR tree-optimization/38926
29181 * tree-ssa-pre.c (add_to_value): Assert we add only expressions
29182 with the correct value id to a value.
29183 (do_regular_insertion): Use the value number of edoubleprime
29184 for the value number of the expr.
29185
29186 Revert
29187 2008-08-21 Richard Guenther <rguenther@suse.de>
6db00048 29188
c9e47fec 29189 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
29190 a PHI ask VN if it is already available.
29191 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
29192 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
3dc4c394 29193
61349811 291942009-01-28 Jakub Jelinek <jakub@redhat.com>
29195
29196 PR middle-end/38934
29197 * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
29198 set to varying whenever max has TREE_OVERFLOW set, similarly
29199 for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
29200
a98de126 292012009-01-28 Richard Guenther <rguenther@suse.de>
29202
29203 PR middle-end/38908
29204 * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
29205 uninitialized aggregate uses in call arguments.
29206
7f70ef19 292072009-01-28 Paolo Bonzini <bonzini@gnu.org>
29208
29209 PR tree-optimization/38984
29210 * tree-ssa-structalias.c (get_constraints_for_1): Do not use
29211 the nothing_id variable if -fno-delete-null-pointer-checks.
29212
8d4c7d80 292132009-01-28 Uros Bizjak <ubizjak@gmail.com>
29214
29215 PR target/38988
29216 * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
29217 (set_got_offset_rex64): Ditto.
29218
2687629f 292192009-01-27 H.J. Lu <hongjiu.lu@intel.com>
29220
29221 PR target/38941
29222 * doc/extend.texi: Improve local variable with asm reg.
29223
7a6a48c9 292242009-01-27 Adam Nemet <anemet@caviumnetworks.com>
29225
29226 * c.opt (Wpacked-bitfield-compat): Change init value to -1.
29227 * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
29228 was not supplied then set warn_packed_bitfield_compat to the
29229 default value of 1.
29230 * stor-layout.c (place_field): Check warn_packed_bitfield_compat
29231 against 1.
29232
57a28426 292332009-01-27 Richard Guenther <rguenther@suse.de>
29234
29235 PR tree-optimization/38503
29236 * cfgexpand.c (expand_gimple_basic_block): Ignore
29237 GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
29238 * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
29239 variables that cannot have TBAA applied.
29240 (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
29241 statements.
29242
c9e47fec 292432009-01-27 Uros Bizjak <ubizjak@gmail.com>
9a7965a1 29244
29245 PR middle-end/38969
29246 * calls.c (initialize_argument_information): Do not wrap complex
29247 arguments in SAVE_EXPR.
29248
f1d36ba6 292492009-01-26 Andreas Tobler <a.tobler@schweiz.org>
29250
29251 * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
c3f75928 29252 (INSTALL_LIBGCC): Revert typo commit.
f1d36ba6 29253
234294b2 292542009-01-26 Richard Guenther <rguenther@suse.de>
29255
29256 PR tree-optimization/38745
29257 * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
29258 from special handling.
29259
1fdf9a6c 292602009-01-26 Richard Guenther <rguenther@suse.de>
29261
29262 PR tree-optimization/38745
29263 * tree-ssa.c (execute_update_addresses_taken): Do not include
29264 variables that cannot possibly be a register in not_reg_needs.
29265 Do not clear TREE_ADDRESSABLE on vars that may not become
29266 registers.
29267 * tree-ssa.c (update_alias_info_1): Include those in the set
29268 of addressable vars.
29269
f0e4d727 292702009-01-26 Richard Guenther <rguenther@suse.de>
29271
29272 PR middle-end/38851
29273 * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
29274 * tree-ssa-dse.c: Include langhooks.h
29275 (execute_simple_dse): Remove stores with zero size.
29276
e7e7c0fe 292772009-01-24 Jakub Jelinek <jakub@redhat.com>
29278
29279 PR c/38957
29280 * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
29281 as PLUS_EXPR.
29282
e6d46e27 292832009-01-24 Julian Brown <julian@codesourcery.com>
29284
29285 * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
29286 config/arm/linux-atomic.c.
29287 * config/arm/linux-atomic.c: New.
29288
9a6bab39 292892009-01-24 Eric Botcazou <ebotcazou@adacore.com>
29290
29291 * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
29292 * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
29293 * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
29294
1d86d4d7 292952009-01-24 H.J. Lu <hongjiu.lu@intel.com>
29296
29297 PR c/38938
d83d28c1 29298 * c-opts.c (c_common_handle_option): Update warn_pointer_sign
1d86d4d7 29299 properly.
29300
8db3fb7b 293012009-01-24 Sebastian Pop <sebastian.pop@amd.com>
29302
29303 PR tree-optimization/38953
29304 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
29305 (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
29306 (gloog): Split the exit of the scop when the scop exit is a loop exit.
29307 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
29308 changed the CFG.
29309
c52acdd2 293102009-01-24 Paul Brook <paul@codesourcery.com>
29311
29312 * config/arm/neon.md (neon_type): Move to arm.md.
29313 (neon_mov<VSTRUCT>): Add neon_type attribute.
29314 * config/arm/arm.md (neon_type): Move to here.
29315 (conds): Add "unconditioal" and use as default for NEON insns.
29316
f3d84bf8 293172009-01-24 Ben Elliston <bje@au.ibm.com>
29318
29319 * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
29320 void *' warning from -Wc++-compat.
29321 * Makefile.in (dominance.o-warn): Remove.
29322
a330630f 293232009-01-23 Paolo Bonzini <bonzini@gnu.org>
cd30b839 29324
29325 PR tree-optimization/38932
29326 * fold-const.c (fold_unary_ignore_overflow): New.
29327 * tree.h (fold_unary_ignore_overflow): Declare.
29328 * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
29329 * tree-ssa-sccvn.c (visit_reference_op_load,
29330 simplify_unary_expression): Likewise.
29331
9fd767c5 293322009-01-22 Adam Nemet <anemet@caviumnetworks.com>
29333
29334 * c-decl.c (finish_struct): Move code to set DECL_PACKED after
29335 DECL_BIT_FIELD is alreay known. Also inherit packed for bitfields
29336 regardless of their type.
29337 * c-common.c (handle_packed_attribute): Don't ignore packed on
29338 bitfields.
29339 * c.opt (Wpacked-bitfield-compat): New warning option.
29340 * stor-layout.c (place_field): Warn if offset of a field changed.
29341 * doc/extend.texi (packed): Mention the ABI change.
29342 * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
29343 (Warning Options): Add it to the list.
29344
71ee8477 293452009-01-22 H.J. Lu <hongjiu.lu@intel.com>
29346
29347 * c-opts.c (c_common_post_options): Fix a typo in comments.
29348
1a07ca64 293492009-01-22 Steve Ellcey <sje@cup.hp.com>
29350
29351 PR middle-end/38615
29352 * gimplify.c (gimplify_init_constructor): Fix promotion of const
29353 variables to static.
29354 * doc/invoke.texi (-fmerge-all-constants): Update description.
29355
a6f6ff30 293562009-01-22 Uros Bizjak <ubizjak@gmail.com>
29357
29358 PR target/38931
29359 * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
29360 (*movdi_1_rex64): Use type "mmx" for alternative 5.
29361
93fa3baa 293622009-01-22 Richard Earnshaw <rearnsha@arm.com>
29363
29364 * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
29365 a word boundary.
29366 (LOCAL_ALIGNMENT): Similarly.
29367
da941808 293682009-01-22 Mark Shinwell <shinwell@codesourcery.com>
a6f6ff30 29369 Joseph Myers <joseph@codesourcery.com>
da941808 29370
29371 * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
29372 * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
29373 * config/arm/arm-tune.md: Regenerate.
29374 * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
29375 -march=iwmmxt2.
29376
00bd398c 293772009-01-22 Mark Shinwell <shinwell@codesourcery.com>
29378
29379 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
29380 version number to five.
29381
b2694749 293822009-01-22 Dodji Seketeli <dodji@redhat.com>
29383
29384 PR c++/38930
aca60c7b 29385 * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
b2694749 29386 * c-common.c (set_underlying_type): Likewise.
29387 (is_typedef_decl ): Likewise
29388 * tree.h: Likewise
29389 (set_underlying_type): Likewise.
29390 (is_typedef_type): Likewise.
29391
8aad8efd 293922009-01-21 Vladimir Makarov <vmakarov@redhat.com>
29393
29394 PR middle-end/38587
29395 * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
29396 crossing setjmps.
29397
8f057ffc 293982009-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
29399
29400 PR bootstrap/37660
29401 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): New helper macro.
29402 (LIBGCC_SPEC): Don't define.
29403 (REAL_LIBGCC_SPEC): Define instead, using SHARED_LIBGCC_SPEC.
29404
f92492f7 294052009-01-21 Uros Bizjak <ubizjak@gmail.com>
29406
29407 PR rtl-optimization/38879
29408 * alias.c (base_alias_check): Unaligned access via AND address can
29409 alias all surrounding object types except those with sizes equal
29410 or wider than the size of unaligned access.
29411
c973dc47 294122009-01-21 Dodji Seketeli <dodji@redhat.com>
29413
29414 PR c++/26693
aca60c7b 29415 * c-decl.c (clone_underlying_type): Move this ...
c973dc47 29416 * c-common.c (set_underlying_type): ... here.
f92492f7 29417 Also, make sure the function properly sets TYPE_STUB_DECL() on
c973dc47 29418 the newly created typedef variant type.
29419 (is_typedef_decl ): New entry point.
29420 * tree.h: Added a new member member_types_needing_access_check to
29421 struct tree_decl_non_common.
29422 (set_underlying_type): New entry point.
29423 (is_typedef_type): Likewise.
29424
6e93a4c8 294252009-01-21 Bingfeng Mei <bmei@broadcom.com>
29426
29427 * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
29428 Check whether two instructions have memory references that
29429 belong to conflicting alias sets. walk_mems_1 and walk_mems_2
29430 are helper functions for traversing.
29431 * alias.h (insn_alias_sets_confilict_p): New prototypes.
29432 * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
29433 not to draw dependency edge for instructions with non-conflicting
29434 alias sets.
29435
a698e1ec 294362009-01-20 Joseph Myers <joseph@codesourcery.com>
29437
29438 PR other/38758
a7a2dd08 29439 * longlong.h: Update copyright years. Use soft-fp license notice.
29440 Sync __clz_tab declaration with glibc.
a698e1ec 29441
b84fdfe2 294422009-01-20 Steve Ellcey <sje@cup.hp.com>
29443
29444 PR target/30687
29445 * doc/extend.texi (syscall_linkage): New.
29446 (version_id): Modify.
29447
c4d6ac81 294482009-01-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
f92492f7 29449 Richard Guenther <rguenther@suse.de>
c4d6ac81 29450
29451 PR tree-optimization/38747
29452 PR tree-optimization/38748
29453 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
29454 conversion if the base address is an indirect reference and the
29455 aliasing sets could cause issues.
29456
d3399492 294572009-01-20 Sebastian Pop <sebastian.pop@amd.com>
29458
89871bab 29459 * common.opt (fgraphite, fgraphite-identity): Add comment for
d3399492 29460 explaining why these options are not documented.
29461
aa3f15b6 294622009-01-20 Sebastian Pop <sebastian.pop@amd.com>
29463
29464 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
29465 gimple_call_lhs is NULL.
29466
a330630f 294672009-01-20 Paolo Bonzini <bonzini@gnu.org>
e077413c 29468
29469 PR target/38868
29470 * emit-rtl.c (adjust_address_1): Make sure memref is never
29471 overwritten.
29472
8c2fa2f7 294732009-01-20 Ben Elliston <bje@au.ibm.com>
29474
29475 * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
f92492f7 29476 const qualifier from arg parameter. Remove unnecessary cast to char *.
8c2fa2f7 29477 * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
29478 const qualifier from arg 2.
29479
94cd11b9 294802009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
29481
f92492f7 29482 * config/darwin.h: Add static-libgfortran to LINK_SPEC.
94cd11b9 29483
c950adc6 294842009-01-19 Vladimir Makarov <vmakarov@redhat.com>
29485
29486 PR c/38869
29487 * rtl.h (reinit_regs): New prototype.
29488 * regclass.c: Include ira.h.
29489 (reinit_regs): New.
29490 * Makefile.in (regclass.o): Add ira.h.
29491 * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
29492
02421213 294932009-01-18 H.J. Lu <hongjiu.lu@intel.com>
29494
29495 PR target/38736
29496 * c-common.c (handle_aligned_attribute): Use
29497 ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
29498 default alignment value.
29499
29500 * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
29501
29502 * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
29503 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
29504
29505 * doc/extend.texi: Update __attribute__ ((aligned)). Document
29506 __BIGGEST_ALIGNMENT__.
29507
29508 * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
29509
2ac47fdf 295102009-01-18 Richard Guenther <rguenther@suse.de>
29511
29512 PR tree-optimization/38819
29513 * tree-flow.h (operation_could_trap_helper_p): Declare.
29514 * tree-eh.c (operation_could_trap_helper_p): Export.
29515 * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
29516 * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
29517 * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
29518 are about to insert a possibly trapping instruction and fail
29519 in this case.
29520
b338dafb 295212009-01-18 Andreas Schwab <schwab@suse.de>
29522
29523 * doc/install.texi (Configuration): Remove obsolete paragraph
29524 about use of --with-gnu-ld with --with-gnu-as.
29525
91f54ca3 295262009-01-18 Kazu Hirata <kazu@codesourcery.com>
29527
29528 * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
29529 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
29530 Follow spelling conventions.
29531
76cd80c7 295322009-01-18 Ben Elliston <bje@au.ibm.com>
29533
29534 * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
29535 C++ warning about implicit conversion from void * to struct
29536 bitmap_head_def *.
29537 (bitmap_obstack_free): Likewise for bitmap_element *.
df1573c4 29538 * Makefile.in (bitmap.o-warn): Remove.
76cd80c7 29539
89bcc083 295402009-01-17 Dave Korn <dave.korn.cygwin@gmail.com>
29541
29542 * Makefile.in (BACKENDLIBS): Reorder to match dependencies.
29543
3c560c26 295442009-01-17 Sebastian Pop <sebastian.pop@amd.com>
29545 Tobias Grosser <tobi.grosser@amd.com>
29546
29547 * graphite.c (graphite_trans_scop_block): Do not block single
29548 nested loops.
29549
e106fc2e 295502009-01-16 Alexandre Oliva <aoliva@redhat.com>
29551
29552 * ebitmap.h (ebitmap_iter_init): Initialize all fields.
29553 * ipa-struct-reorg.c (gen_struct_type): Replace known-true
29554 test with assertion.
29555
cd6342bd 295562009-01-16 Richard Guenther <rguenther@suse.de>
29557
29558 PR tree-optimization/38835
29559 PR middle-end/36227
29560 * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
29561 and INT + PTR -> (INT)(PTR p+ INT) folding.
29562 * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
29563
298bbd8d 295642009-01-16 Adam Nemet <anemet@caviumnetworks.com>
29565
29566 PR target/38554
29567 * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
29568 the subreg from a lowpart subreg if it is also casting the value.
29569
9e5f07d3 295702009-01-16 Sebastian Pop <sebastian.pop@amd.com>
29571 Tobias Grosser <tobi.grosser@amd.com>
29572
29573 * graphite.c (compare_prefix_loops): New.
29574 (build_scop_canonical_schedules): Rewritten.
29575 (graphite_transform_loops): Move build_scop_canonical_schedules
29576 after build_scop_iteration_domain.
29577
35fb1eb0 295782009-01-16 Sebastian Pop <sebastian.pop@amd.com>
29579 Tobias Grosser <tobi.grosser@amd.com>
29580
89871bab 29581 * graphite.c (add_conditions_to_domain): Add the loops to
35fb1eb0 29582 the dimension of the iteration domain. Do copy the domain
29583 only when it exists.
29584 (build_scop_conditions_1): Do not call add_conditions_to_domain.
29585 (add_conditions_to_constraints): New.
29586 (can_generate_code_stmt, can_generate_code): Removed.
29587 (gloog): Do not call can_generate_code.
29588 (graphite_transform_loops): Call add_conditions_to_constraints
29589 after building the iteration domain.
29590
99e2edfd 295912009-01-16 Jakub Jelinek <jakub@redhat.com>
29592
29593 PR tree-optimization/38789
29594 * tree-ssa-threadedge.c
29595 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
29596 __builtin_constant_p.
29597
237805dd 295982009-01-16 Kenneth Zadeck <zadeck@naturalbridge.com>
cff725a2 29599
29600 * dce.c (delete_unmarked_insns): Reversed the order that insns are
29601 examined before deleting them.
89871bab 29602
daaa06b2 296032009-01-16 Richard Earnshaw <rearnsha@arm.com>
29604
29605 * function.c (aggregate_value_p): Correctly extract the function
29606 type from CALL_EXPR_FN lookup.
29607
237805dd 296082009-01-16 Hariharan Sandanagobalane <hariharan@picochip.com>
e262db7d 29609
29610 * config/picochip/picochip.c (picochip_override_options): Revert
29611 CFI asm flag disable commited previously.
29612
d635c475 296132009-01-15 Sebastian Pop <sebastian.pop@amd.com>
29614 Tobias Grosser <tobi.grosser@amd.com>
29615 Jan Sjodin <jan.sjodin@amd.com>
29616
29617 * graphite.c (scan_tree_for_params): On substractions negate
29618 all the coefficients of the term.
29619 (clast_to_gcc_expression_red): New. Handle reduction expressions
29620 of more than two operands.
29621 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
29622 (get_vdef_before_scop): Handle also the case of default definitions.
29623
f5b7c8a5 296242009-01-15 Richard Sandiford <rdsandiford@googlemail.com>
29625
29626 * caller-save.c (add_used_regs_1, add_used_regs): New functions.
29627 (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
29628 Also use them when walking CALL_INSN_FUNCTION_USAGE.
29629
9e1c1bf0 296302009-01-15 H.J. Lu <hongjiu.lu@intel.com>
29631 Joey Ye <joey.ye@intel.com>
29632
29633 PR middle-end/37843
29634 * cfgexpand.c (expand_stack_alignment): Don't update stack
29635 boundary nor check incoming stack boundary here.
29636 (gimple_expand_cfg): Update stack boundary and check incoming
29637 stack boundary here.
29638
237805dd 296392009-01-15 Kenneth Zadeck <zadeck@naturalbridge.com>
66aca59d 29640
f92492f7 29641 * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
89871bab 29642
eb940a48 296432009-01-14 Jakub Jelinek <jakub@redhat.com>
29644
29645 PR rtl-optimization/38245
29646 * calls.c (expand_call): Add stack arguments to
29647 CALL_INSN_FUNCTION_USAGE even for pure calls (when
29648 ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
29649 in regs and partially in memory or BLKmode arguments.
29650 (emit_library_call_value_1): Add stack arguments to
29651 CALL_INSN_FUNCTION_USAGE even for pure calls (when
29652 ACCUMULATE_OUTGOING_ARGS).
29653 * dce.c: Include tm_p.h.
29654 (find_call_stack_args): New function.
29655 (deletable_insn_p): Call it for CALL_P insns. Add ARG_STORES
29656 argument.
29657 (mark_insn): Call find_call_stack_args for CALL_Ps.
29658 (prescan_insns_for_dce): Walk insns backwards in bb rather than
29659 forwards. Allocate and free arg_stores bitmap if needed, pass it
29660 down to deletable_insn_p, don't mark stores set in arg_stores
29661 bitmap, clear the bitmap at the beginning of each bb.
29662 * Makefile.in (dce.o): Depend on $(TM_P_H).
29663
26f62ff4 296642009-01-14 Michael Meissner <gnu@the-meissners.org>
29665
29666 PR target/22599
f92492f7 29667 * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
29668 to make sure the insn is a conditional test (bug 22599). Reformat a
29669 few long lines.
26f62ff4 29670
87736b69 296712009-01-14 Sebastian Pop <sebastian.pop@amd.com>
29672
29673 PR middle-end/38431
29674 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
29675 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
29676 (gloog): Do not call cleanup_tree_cfg.
89871bab 29677 (graphite_transform_loops): Call cleanup_tree_cfg after all
87736b69 29678 scops have been code generated.
29679
4dbb1e0c 296802009-01-14 Basile Starynkevitch <basile@starynkevitch.net>
29681 * doc/gty.texi (Invoking the garbage collector): Added new node
29682 and section documenting ggc_collect.
29683
48d49ced 296842009-01-14 Richard Guenther <rguenther@suse.de>
29685
29686 PR tree-optimization/38826
29687 PR middle-end/38477
29688 * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
29689 initialization notes only if we actually emitted a warning.
29690 (intra_create_variable_infos): Add constraints for a result decl
29691 that is passed by hidden reference.
29692 (build_pred_graph): Mark all related variables non-direct on
29693 address-taking.
29694
bef7b1de 296952009-01-14 Nick Clifton <nickc@redhat.com>
29696
29697 * ira-conflicts.c: Include addresses.h for the definition of
29698 base_reg_class.
f92492f7 29699 (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
29700 * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
bef7b1de 29701
cab55469 297022009-01-13 Vladimir Makarov <vmakarov@redhat.com>
29703
29704 PR target/38811
29705 * Makefile.in (ira-lives.o): Add except.h.
29706
29707 * ira-lives.c: Include except.h.
29708 (process_bb_node_lives): Process can_throw_internal.
29709
cac5cd08 297102009-01-13 Jakub Jelinek <jakub@redhat.com>
29711
29712 PR rtl-optimization/38774
29713 * combine.c (simplify_set): When undoing cc_use change, don't do
29714 PUT_CODE on the newly created comparison, but instead put back the
29715 old comparison.
29716
309ef6b4 297172009-01-13 Joseph Myers <joseph@codesourcery.com>
29718
29719 * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
29720 values. Remove duplicate arm8 entry.
29721
1ffa850c 297222009-01-13 Sebastian Pop <sebastian.pop@amd.com>
29723
29724 PR tree-optimization/38786
29725 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
29726 the SSA_NAME case of expand_scalar_variables_expr.
29727 Set the type of an expression to the type of its assign statement.
29728 (expand_scalar_variables_expr): Also gather the scalar computation
29729 used to index the memory access. Do not pass loop_p.
29730 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
29731 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
8d4c7d80 29732 the gimple_stmt_iterator where it inserts new code.
29733 Do not pass loop_p.
1ffa850c 29734 (copy_bb_and_scalar_dependences): Do not pass loop_p.
29735 (translate_clast): Update call to copy_bb_and_scalar_dependences.
29736
de540910 297372009-01-13 Sebastian Pop <sebastian.pop@amd.com>
29738
29739 * graphite.h (debug_value): Removed.
29740 * graphite.c (debug_value): Removed.
29741
3d1f6e40 297422009-01-13 Richard Earnshaw <rearnsha@arm.com>
29743
f92492f7 29744 * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
29745 ldrd/strd with two 32-bit instructions.
3d1f6e40 29746
0f978633 297472009-01-13 Richard Earnshaw <rearnsha@arm.com>
29748
f92492f7 29749 * config/arm/arm.c (struct processors): Pass for speed down into
29750 cost helper functions.
0f978633 29751 (const_ok_for_op): Handle COMPARE and inequality nodes.
29752 (arm_rtx_costs_1): Rewrite.
29753 (arm_size_rtx_costs): Update prototype.
29754 (arm_rtx_costs): Pass speed down to helper functions.
29755 (arm_slowmul_rtx_costs): Rework cost calculations.
29756 (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
29757 (arm_9e_rtx_costs): Likewise.
29758
d6c48eee 297592009-01-13 Uros Bizjak <ubizjak@gmail.com>
29760
29761 * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
f92492f7 29762 relocations of local symbols wider than UNITS_PER_WORD are not valid.
d6c48eee 29763 (alpha_legitimize_address): Do not split local symbols wider than
29764 UNITS_PER_WORD into HIGH/LO_SUM parts.
29765
91e64380 297662009-01-13 Danny Smith <dannysmith@users.sourceforge.net>
29767
29768 PR bootstrap/38580
29769 * gcc.c (process_command): Replace call to execvp with calls
29770 to pex_one and exit.
29771
4addc9bf 297722009-01-03 Anatoly Sokolov <aesok@post.ru>
29773
29774 PR target/29141
29775 * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
29776 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
29777 variant for devices with 3-byte PC.
aca60c7b 29778 (__tablejump_elpm__): New.
4addc9bf 29779
f0d0d842 297802009-01-12 Jakub Jelinek <jakub@redhat.com>
29781
29782 PR c/32041
29783 * c-parser.c (c_parser_postfix_expression): Allow `->' in
29784 offsetof member-designator, handle it as `[0].'.
29785
55e0e460 297862009-01-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29787
29788 * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
29789 function when not using named sections on targets with named sections
29790 if branch distance is less than 262132.
29791
afb33771 297922009-01-12 Richard Earnshaw <rearnsha@arm.com>
29793
29794 * combine.c (combine_instructions): Recompute
29795 optimize_this_for_speed_p for each BB in the main combine loop.
29796
a6c1b5f0 297972009-01-12 Tomas Bily <tbily@suse.cz>
29798
29799 PR middlend/38385
d6c48eee 29800 * tree-loop-distribution.c (prop_phis): New function.
29801 (generate_builtin): Call prop_phis.
a6c1b5f0 29802
3a43bfe9 298032009-01-12 Jakub Jelinek <jakub@redhat.com>
29804
29805 PR tree-optimization/38807
29806 * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
29807 gimple_visited_p unless stmt is GIMPLE_ASSIGN.
29808
95fb59aa 298092009-01-11 Adam Nemet <anemet@caviumnetworks.com>
29810
29811 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
29812 subreg of op0 to the original op0.
29813
237805dd 298142009-01-11 Laurent GUERBY <laurent@guerby.net>
e0b61fdb 29815
29816 * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
89871bab 29817
a32384d7 298182009-01-11 Markus Schoepflin <markus.schoepflin@comsoft.de>
29819
29820 PR debug/7055
943327c1 29821 * mips-tfile.c (parse_def): Fix parsing of def strings
a32384d7 29822 starting with digits.
29823
a9467ac5 298242009-01-10 Jakub Jelinek <jakub@redhat.com>
29825
29826 PR target/38695
29827 * config/arm/arm.c (arm_is_long_call_p): Don't call
29828 arm_function_in_section_p if decl isn't a FUNCTION_DECL.
29829
100329af 298302009-01-09 Steven Bosscher <steven@gcc.gnu.org>
29831
29832 * regrename.c (regrename_optimize): Fix dumping.
29833 (find_oldest_value_reg): Preserve REG_POINTER.
29834 (copy_hardreg_forward_1): Likewise.
29835
51e52fe3 298362009-01-09 Diego Novillo <dnovillo@google.com>
29837
6db00048 29838 * gimple.h (struct gimple_statement_base) <uid>: Document
51e52fe3 29839 the restrictions on its use.
29840 (gimple_uid): Tidy.
29841 (gimple_set_uid): Tidy.
29842
e1e05028 298432009-01-09 Jakub Jelinek <jakub@redhat.com>
29844
29845 * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
29846 zero guard even if align_bytes != 0 and count is smaller than
29847 size_needed.
29848
a330630f 298492009-01-09 Vladimir Makarov <vmakarov@redhat.com>
0c42b4f4 29850
29851 PR rtl-optimization/38495
d6c48eee 29852 * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
0c42b4f4 29853 (add_range_and_copies_from_move_list): Print all added ranges.
29854 Add ranges to memory optimized destination.
29855
8f538fc3 298562009-01-09 Jakub Jelinek <jakub@redhat.com>
29857
ede11ffa 29858 PR target/38686
29859 PR target/38708
29860 * config/i386/i386.c (override_options): Reject
29861 -mstringop-strategy=rep_8byte with -m32.
29862 (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
29863 to 1. Do count comparison against epilogue_size_needed at compile
29864 time even when count_exp was constant forced into register. For
29865 size_needed don't jump to epilogue, instead just avoid aligning
29866 and invoke the body algorithm. If need_zero_guard, add zero guard
29867 even if count is non-zero, but smaller than size_needed + number of
29868 bytes that could be stored for alignment.
29869 (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
29870 to 1. If need_zero_guard, add zero guard even if count is non-zero,
29871 but smaller than size_needed + number of bytes that could be stored
29872 for alignment. Compare size_needed with epilogue_size_needed instead
29873 of desired_align - align, don't adjust size_needed, pass
29874 epilogue_size_needed to the epilogue expanders.
29875
8f538fc3 29876 PR c/35742
d6c48eee 29877 * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
8f538fc3 29878
21a47bc9 298792009-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29880
29881 * pa.c (last_address): Change to unsigned.
29882 (update_total_code_bytes): Change argument to unsigned. Don't
29883 check if insn addresses are set.
29884 (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
29885 addresses are not set.
29886 (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
29887
ce090c51 298882009-01-09 Nick Clifton <nickc@redhat.com>
29889
29890 * config/sh/symbian.c: Replace uses of DECL_INLINE with
29891 DECL_DECLARED_INLINE_P.
29892
4e7cb1c5 298932009-01-09 Jakub Jelinek <jakub@redhat.com>
29894
70b6a6e8 29895 PR middle-end/38347
29896 * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
29897 GET_MODE (op0) in operand_subword_force calls.
29898
4e7cb1c5 29899 PR middle-end/38771
29900 * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
29901 fold_convert arg0 operands to TREE_TYPE (op0) first.
29902
d0388252 299032009-01-08 Vladimir Makarov <vmakarov@redhat.com>
29904
29905 * params.def (ira-max-conflict-table-size): Decrease default value
29906 to 1000.
29907
12c697cd 299082009-01-08 Jakub Jelinek <jakub@redhat.com>
29909
29910 PR tree-optimization/37031
29911 * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
29912 on parameter_set.
29913 (build_access_matrix): Reserve correct size for AM_MATRIX vector,
29914 allocate it using gc instead of heap, use VEC_quick_push instead of
29915 VEC_safe_push.
29916 * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
29917 instead of heap, use VEC_quick_push instead of VEC_safe_push.
29918 * tree-data-ref.h (struct access_matrix): Change matrix to gc
29919 allocated vector from heap allocated.
29920 * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
29921 * tree-loop-linear.c (linear_transform_loops): Allocate nest
29922 vector only after perfect_loop_nest_depth call.
29923
59835a90 299242009-01-08 Sebastian Pop <sebastian.pop@amd.com>
29925 Jan Sjodin <jan.sjodin@amd.com>
29926
29927 PR tree-optimization/38559
29928 * graphite.c (debug_value, copy_constraint,
29929 swap_constraint_variables, scale_constraint_variable, ): New.
29930 (get_lower_bound, get_upper_bound): Removed.
29931 (graphite_trans_bb_strip_mine): Clean up this code that works
29932 only for constant number of iterations. Fully copy upper and
29933 lower bound constraints, not only the constant part of them.
29934 * graphite.h (debug_value): Declared.
29935
1c48f190 299362009-01-08 Ira Rosen <irar@il.ibm.com>
29937
29938 PR tree-optimization/37194
29939 * tree-vect-transform.c (vect_estimate_min_profitable_iters):
89871bab 29940 Don't add the cost of cost model guard in prologue to scalar
1c48f190 29941 outside cost in case of known number of iterations.
29942
9538c1d1 299432009-01-07 Nathan Froyd <froydnj@codesourcery.com>
29944 Alan Modra <amodra@bigpond.net.au>
29945
29946 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
29947 non-word-aligned REG+CONST addressing.
29948
292add68 299492009-01-07 Uros Bizjak <ubizjak@gmail.com>
29950
29951 PR target/38706
29952 * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
29953 free_after_compilation when outputting a thunk.
29954 (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
29955 Do not call free_after_compilation here.
29956
bbc3ff90 299572009-01-07 Uros Bizjak <ubizjak@gmail.com>
29958
29959 * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
bbc3ff90 29960 (ix86_valid_target_attribute_inner_p): Ditto.
29961
145bdf6a 299622009-01-07 Jan Sjodin <jan.sjodin@amd.com>
29963
29964 PR tree-optimization/38492
29965 PR tree-optimization/38498
29966 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
29967 * tree-chrec.h (scev_is_linear_expression): Declared.
29968 * graphite.c (graphite_cannot_represent_loop_niter): New.
29969 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
29970 (graphite_loop_normal_form): Use gcc_assert.
29971 (scan_tree_for_params): Use CASE_CONVERT.
29972 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
29973 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
29974 Use gcc_assert. Discard scops that contain unhandled cases.
29975 (build_scop_conditions): Return a boolean status for unhandled cases.
29976 (strip_mine_profitable_p): Print the loop number, not its depth.
29977 (is_interchange_valid): Pass the depth of the loop nest, don't
29978 recompute it wrongly.
29979 (graphite_trans_bb_block): Same.
29980 (graphite_trans_bb_block): Print tentative of loop blocking.
29981 (graphite_trans_scop_block): Do not print that the loop has been
29982 blocked.
29983 (graphite_transform_loops): Do not handle scops that contain condition
29984 scalar phi nodes.
29985
b49a1e34 299862009-01-07 H.J. Lu <hongjiu.lu@intel.com>
29987
29988 AVX Programming Reference (December, 2008)
29989 * config/i386/avxintrin.h (_mm256_stream_si256): New.
29990 (_mm256_stream_pd): Likewise.
29991 (_mm256_stream_ps): Likewise.
29992
29993 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
29994 IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
29995 (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
29996 (bdesc_special_args): Add __builtin_ia32_movntdq256,
29997 __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
29998 (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
29999 (ix86_expand_special_args_builtin): Likewise.
30000
30001 * config/i386/sse.md (AVXMODEDI): New.
30002 (avx_movnt<mode>): Likewise.
30003 (avx_movnt<mode>): Likewise.
30004 (<sse>_movnt<mode>): Remove AVX support.
30005 (sse2_movntv2di): Likewise.
30006
4f1351a2 300072009-01-07 Richard Guenther <rguenther@suse.de>
30008
30009 PR middle-end/38751
30010 * fold-const.c (extract_muldiv): Remove obsolete comment.
30011 (fold_plusminus_mult_expr): Undo MINUS_EXPR
30012 to PLUS_EXPR canonicalization for the canonicalization.
30013
aad359a1 300142009-01-07 Gerald Pfeifer <gerald@pfeifer.com>
30015
30016 * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
30017 hosted cross-compilers generating less efficient code.
30018
2061be83 300192009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
30020
30021 * function.h (rtl_data): Add a dbr_scheduled_p field.
30022 * reorg.c (dbr_schedule): Set it.
30023 (gate_handle_delay_slots): Check it.
30024 * config/mips/mips.c (mips_base_delayed_branch): Delete.
30025 (mips_reorg): Check flag_delayed_branch instead of
30026 mips_base_delayed_branch.
30027 (mips_override_options): Don't set mips_base_delayed_branch
30028 or flag_delayed_branch.
30029
6b806743 300302009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
30031
30032 PR rtl-optimization/38426.
30033 * ira.c (ira): Set current_function_is_leaf earlier.
30034
095050fc 300352009-01-06 Jakub Jelinek <jakub@redhat.com>
30036
30037 PR rtl-optimization/38722
30038 * combine.c (try_combine): Don't modify PATTERN (i3) and notes
30039 too early, only set a flag and modify after last possible
30040 undo_all point.
30041
0c87fb2b 300422009-01-06 Janis Johnson <janis187@us.ibm.com>
30043
30044 PR c/34252
30045 * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
30046 * real.c (decimal_single_format): Correct values of emin and emax.
30047 (decimal_double_format): Ditto.
30048 (decimal_quad_format): Ditto.
30049 * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
30050 computation of DECnn_MIN and DECnn_MAX for corrected values of
30051 emin and emax. Define __DECnn_SUBNORMAL_MIN__ instead of
30052 __DECnn_MIN__, and adjust its computation for the corrected value
30053 of emin.
30054
710ab45a 300552009-01-06 Jan Hubicka <jh@suse.cz>
30056
30057 PR target/38744
f92492f7 30058 * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
710ab45a 30059
0a46e111 300602009-01-06 Gerald Pfeifer <gerald@pfeifer.com>
30061
30062 * doc/contrib.texi (Contributors): Slightly adjust the end note.
30063 Add Robert Clark to the list of testers.
30064
30095c10 300652009-01-06 Jan Hubicka <jh@suse.cz>
237805dd 30066 Kai Tietz <kai.tietz@onevision.com>
30095c10 30067
f92492f7 30068 * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
30069 * config/i386/i386.c (ix86_expand_call): Add clobbers.
30095c10 30070
acb79b5c 300712009-01-06 Jan Hubicka <jh@suse.cz>
237805dd 30072 Kai Tietz <kai.tietz@onevision.com>
acb79b5c 30073
f92492f7 30074 * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
30075 for w64 ABI.
30076 * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
acb79b5c 30077 (ix86_nsaved_regs): Count only general purpose regs.
30078 (ix86_nsaved_sseregs): New.
30079 (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
30080 to 16 for w64; compute padding and size of sse reg save area.
bbc3ff90 30081 (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
30082 general purpose regs.
acb79b5c 30083 (ix86_emit_save_sse_regs_using_mov): New.
30084 (ix86_expand_prologue): Save SSE regs if needed.
30085 (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
30086 (ix86_emit_restore_sse_regs_using_mov): New.
30087 (ix86_expand_epilogue): Save SSE regs if needed.
30088
90a81a4b 300892009-01-06 Jan Hubicka <jh@suse.cz>
237805dd 30090 Kai Tietz <kai.tietz@onevision.com>
90a81a4b 30091
f92492f7 30092 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
30093 * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
30094 functions when accumulate outgoing args is off.
90a81a4b 30095
7521b07f 300962009-01-06 H.J. Lu <hongjiu.lu@intel.com>
30097
30098 PR bootstrap/38742
30099 * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
30100 before using pseudos_have_intersected_live_ranges_p.
30101
30102 * ira-int.h (ira_assert): Always define.
30103
dbd61cd0 301042009-01-06 H.J. Lu <hongjiu.lu@intel.com>
30105
30106 AVX Programming Reference (December, 2008)
30107 * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
30108 (_mm256_permute2_pd): Likewise.
30109 (_mm_permute2_ps): Likewise.
30110 (_mm256_permute2_ps): Likewise.
30111 * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
30112 * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
30113
30114 * config/i386/i386.c (ix86_builtins): Remove
30115 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
30116 IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
30117 (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
30118 V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
30119 and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
30120 (bdesc_args): Remove __builtin_ia32_vpermil2pd,
30121 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
30122 __builtin_ia32_vpermil2ps256.
30123 (ix86_init_mmx_sse_builtins): Updated.
30124 (ix86_expand_args_builtin): Likewise.
30125
c4b36071 301262009-01-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30127
dbd61cd0 30128 * pa.c (output_call): Relocate non-jump insns in the delay slot of
30129 long absolute calls when generating PA 2.0 code.
c4b36071 30130
95c83f01 301312009-01-05 Vladimir Makarov <vmakarov@redhat.com>
30132
30133 PR rtl-optimization/38583
30134 * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
30135
30136 * params.def (ira-max-conflict-table-size): New.
30137
30138 * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
89871bab 30139
95c83f01 30140 * ira.h (ira_conflicts_p): New external definition.
89871bab 30141
95c83f01 30142 * ira-conflicts.c (build_conflict_bit_table): Do not build too big
30143 table. Report this. Return result of building.
30144 (ira_build_conflicts): Use ira_conflicts_p. Check result of
30145 building conflict table.
30146
bbc3ff90 30147 * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
95c83f01 30148 (ira_color): Use ira_conflicts_p.
89871bab 30149
95c83f01 30150 * global.c: Include ira.h.
30151 (pseudo_for_reload_consideration_p, build_insn_chain): Use
30152 ira_conflicts_p.
30153
30154 * Makefile.in (global.o): Add ira.h.
89871bab 30155
95c83f01 30156 * ira-build.c (mark_all_loops_for_removal,
30157 propagate_some_info_from_allocno): New.
30158 (remove_unnecessary_allocnos): Call
30159 propagate_some_info_from_allocno.
30160 (remove_low_level_allocnos): New.
30161 (remove_unnecessary_regions): Add parameter. Call
30162 mark_all_loops_for_removal and remove_low_level_allocnos. Pass
30163 parameter to remove_unnecessary_regions.
30164 (ira_build): Remove all regions but root if the conflict table was
30165 not built. Update conflict hard regs for allocnos crossing calls.
30166
30167 * ira.c (ira_conflicts_p): New global.
30168 (ira): Define and use ira_conflicts_p.
30169
30170 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
30171 count_spilled_pseudo, find_reg, alter_reg, finish_spills,
bbc3ff90 30172 emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
89871bab 30173
da279129 301742009-01-06 Ben Elliston <bje@au.ibm.com>
30175
30176 * gengtype-lex.l (YY_NO_INPUT): Define.
30177
7ec31215 301782009-01-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
30179
30180 PR c/34911
da279129 30181 * c-common.c (handle_vector_size_attribute): Also reject
30182 BOOLEAN_TYPE types.
7ec31215 30183
d51c4d4c 301842009-01-05 Sebastian Pop <sebastian.pop@amd.com>
30185
30186 PR tree-optimization/38492
30187 * graphite.c (rename_map_elt, debug_rename_elt,
bbc3ff90 30188 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
30189 rename_map_elt_info, eq_rename_map_elts,
30190 get_new_name_from_old_name, bb_in_sese_p): Moved around.
d51c4d4c 30191 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
30192 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
30193 (sese_build_livein_liveouts): New.
30194 (new_sese, free_sese): New.
30195 (new_scop): Call new_sese.
30196 (free_scop): Call free_sese.
30197 (rename_variables_from_edge, rename_phis_end_scop): Removed.
30198 (register_old_new_names): Renamed register_old_and_new_names.
30199 (register_scop_liveout_renames, add_loop_exit_phis,
30200 insert_loop_close_phis, struct igp,
30201 default_liveout_before_guard, add_guard_exit_phis,
30202 insert_guard_phis, copy_renames): New.
30203 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
30204 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
30205 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
30206 (scop_adjust_phis_for_liveouts): New.
30207 (gloog): Call scop_adjust_phis_for_liveouts.
30208
30209 * graphite.h (struct sese): Documented. Added fields liveout,
bbc3ff90 30210 num_ver and livein.
d51c4d4c 30211 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
30212 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
30213 (struct scop): Added field liveout_renames.
30214 (SCOP_LIVEOUT_RENAMES): New.
30215
57c0fd3c 302162009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
30217
30218 PR tree-optimization/38510
30219 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
30220 (translate_clast): Call recompute_all_dominators before
30221 graphite_verify.
30222 (gloog): Call recompute_all_dominators before graphite_verify.
30223
302242009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
237805dd 30225 Jan Sjodin <jan.sjodin@amd.com>
57c0fd3c 30226
30227 PR tree-optimization/38500
30228 * graphite.c (create_sese_edges): Call fix_loop_structure after
30229 splitting blocks.
30230
237805dd 302312009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
e4c85211 30232
30233 * config.gcc: Add m32r*-*-rtems*.
30234 * config/m32r/rtems.h: New file.
30235
e7ae053d 302362009-01-05 Ben Elliston <bje@au.ibm.com>
30237
30238 * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
30239 (.po.pox): Likewise.
30240 (po/gcc.pot): Likewise.
30241
aad5aaaf 302422009-01-04 David S. Miller <davem@davemloft.net>
30243
30244 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
30245 (STARTING_FRAME_OFFSET): Always set to zero.
30246
f323bb78 302472009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
30248
30249 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
30250 * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
30251 fixed-point types, and vectors of the same.
30252
b73796fa 302532009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
30254
30255 * config/mips/sync.md (*mb_barrier): Rename to...
30256 (*memory_barrier): ...this.
30257
c17add59 302582009-01-04 Jonathan Wakely <jwakely.gcc@gmail.com>
30259
30260 * doc/extend.texi (Function Attributes): Move @cindex after @item
6c6bce65 30261 for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
c17add59 30262 and put in alphabetical order. Fix 'target' name and put in order.
30263 * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
30264 typos.
30265
dc178856 302662009-01-04 Uros Bizjak <ubizjak@gmail.com>
30267
30268 * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
30269 (memory_barrier): Expand as unspec instead of unspec_volatile.
30270 Remove mem:BLK from insn operands. Use Pmode scratch register.
30271 (*memory_barrier): Define as unspec instead of unspec_volatile.
30272 Use (match_dup 0) as input operand.
30273
30274 * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
30275 * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
30276 unspec_volatile. Remove mem:BLK from insn operands. Use Pmode
30277 scratch register. Remove operand 1.
30278 (*stbar): Define as unspec instead of unspec_volatile.
30279 Use (match_dup 0) as input operand, remove (const_int 8).
30280 (*membar): Define as unspec instead of unspec_volatile.
30281 Use (match_dup 0) as input operand, remove input operand 2.
30282
30283 * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
30284 (memory_barrier): Expand as unspec instead of unspec_volatile.
30285 Remove mem:BLK from insn operands. Use Pmode scratch register.
30286 (*memory_barrier): Define as unspec instead of unspec_volatile.
30287 Use (match_dup 0) as input operand.
30288
30289 * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
30290 Remove mem:BLK from insn operands. Use Pmode scratch register.
30291 Set volatile flag on operand 0.
30292 (*memory_barrier): New insn pattern.
30293
30294 * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
30295 insn operands.
30296 (*memory_barrier): Use (match_dup 0) as input operand.
30297
30298 * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
30299 Remove mem:BLK from insn operands. Use Pmode scratch register.
30300 Set volatile flag on operand 0.
bbc3ff90 30301 (*mb_internal): New insn pattern.
dc178856 30302
30303 * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
30304
fef299ce 303052009-01-04 Steven Bosscher <steven@gcc.gnu.org>
30306
30307 PR middle-end/38586
30308 * function.c (struct temp_slot): Move to the section of the file
30309 that deals with temp slots. Remove field 'address'.
30310 (temp_slot_address_table): New hash table of address -> temp slot.
30311 (struct temp_slot_address_entry): New struct, items for the table.
30312 (temp_slot_address_compute_hash, temp_slot_address_hash,
30313 temp_slot_address_eq, insert_temp_slot_address): Support functions
30314 for the new table.
30315 (find_temp_slot_from_address): Rewrite to use the new hash table.
30316 (remove_unused_temp_slot_addresses): Remove addresses of temp
30317 slots that have been made available.
30318 (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
30319 worker function for remove_unused_temp_slot_addresses.
30320 (assign_stack_temp_for_type): Don't clear the temp slot address list.
30321 Add the temp slot address to the address -> temp slot map.
30322 (update_temp_slot_address): Update via insert_temp_slot_address.
30323 (free_temp_slots): Call remove_unused_temp_slot_addresses.
30324 (pop_temp_slots): Likewise.
30325 (init_temp_slots): Allocate the address -> temp slot map, or empty
30326 the map if it is already allocated.
30327 (prepare_function_start): Initialize temp slot processing.
30328
961c8f72 303292009-01-04 Steven Bosscher <steven@gcc.gnu.org>
30330
30331 PR middle-end/38584
30332 * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
30333 Calculate the size of all stack vars assuming no packing of stack
30334 vars will happen, replacing a quadratic algorithm with a linear one.
30335
c2ef487a 303362009-01-03 Jakub Jelinek <jakub@redhat.com>
30337
30338 PR target/38707
30339 * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
30340 can't be used.
30341
d2472193 303422009-01-03 Diego Novillo <dnovillo@google.com>
30343
30344 * doc/contrib.texi: Update contributions.
30345
062b4460 303462009-01-03 Jakub Jelinek <jakub@redhat.com>
30347
6f52ebeb 30348 PR c++/38705
30349 * builtins.c (fold_builtin_memory_op): Give up if either operand
30350 is volatile. Set srctype or desttype to non-qualified version
30351 of the other type.
30352
062b4460 30353 PR c/38700
30354 * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
30355 and FUNCTION_DECLs.
30356
237805dd 303572009-01-02 Kenneth Zadeck <zadeck@naturalbridge.com>
7e009ff5 30358
30359 PR rtl-optimization/35805
30360 * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
30361 problem if fast dce is able to remove any instructions.
30362 * dce.c (dce_process_block): Fix dump message.
89871bab 30363
c9f77b30 303642009-01-02 Mark Mitchell <mark@codesourcery.com>
30365
30366 PR 33649
30367 * tree-ssa-pre.c (compute_antic): Correct loop bounds.
30368
e70f5f27 303692009-01-02 Jakub Jelinek <jakub@redhat.com>
30370
30371 PR middle-end/38690
30372 * tree-flow.h (op_code_prio, op_prio): New prototypes.
30373 * tree-pretty-print.c (op_code_prio): New function.
30374 (op_prio): No longer static. Use op_code_prio.
30375 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
30376 Use op_prio and op_code_prio to determine if () should be
30377 printed around operand(s) or not.
30378
30379 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
30380 dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
30381 dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
30382 dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
30383 pp_character instead of pp_string for single letter printing.
30384
db8edef0 303852009-01-02 Richard Sandiford <rdsandiford@googlemail.com>
30386
30387 * doc/extend.texi: Fix '#pragma GCC option' typo.
30388
237805dd 303892009-01-02 Richard Guenther <rguenther@suse.de>
6d37614e 30390
e6f4e61f 30391 * doc/install.texi (--enable-checking): Mention different
30392 default for stage1.
30393 (--enable-stage1-checking): Document.
6d37614e 30394
d3a42176 303952009-01-01 Andrew Pinski <pinskia@gmail.com>
30396
30397 PR middle-end/30142
30398 * tree-cfg.c (verify_expr): Add INDIRECT_REF case. Change MODIFY_EXPR
30399 case to be an error.
30400
5c8520a4 304012009-01-02 Ben Elliston <bje@au.ibm.com>
30402
30403 * config/fp-bit.h (pack_d): Constify argument.
30404 * config/fp-bit.c (makenan): Constify return type. Remove casts.
30405 (isnan): Constify argument.
30406 (isinf): Likewise.
30407 (iszero): Likewise.
30408 (pack_d): Likewise.
30409 (_fpadd_parts): Constify return type.
30410 (_fpmul_parts): Likewise.
30411 (_fpdiv_parts): Likewise.
30412
d241bf0d 304132009-01-01 Jakub Jelinek <jakub@redhat.com>
30414
30415 PR c/36489
30416 * c-typeck.c (add_pending_init): Add IMPLICIT argument. Only
30417 warn about overwriting initializer with side-effects or
30418 -Woverride-init if !IMPLICIT.
30419 (output_init_element): Likewise. Pass IMPLICIT down to
30420 add_pending_init.
30421 (process_init_element): Add IMPLICIT argument. Pass it down
30422 to output_init_element.
30423 (push_init_element, pop_init_level, set_designator): Adjust
30424 process_init_element callers.
30425 (set_nonincremental_init, set_nonincremental_init_from_string):
30426 Adjust add_pending_init callers.
30427 (output_pending_init_elements): Adjust output_init_element callers.
30428 * c-tree.h (process_init_element): Adjust prototype.
30429 * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
30430 process_init_element callers.
7dfbd804 30431
30432\f
30433Copyright (C) 2009 Free Software Foundation, Inc.
30434
30435Copying and distribution of this file, with or without modification,
30436are permitted in any medium without royalty provided the copyright
30437notice and this notice are preserved.