]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
re PR tree-optimization/41857 (Loop optimizer breaks __ea pointers with -mea64)
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
d7c0c068
UW
12009-11-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2
3 PR tree-optimization/41857
4 * tree-flow.h (rewrite_use_address): Add BASE_HINT argument.
5 * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass base hint
6 to create_mem_ref.
7 * tree-ssa-address.c (move_hint_to_base): New function.
8 (most_expensive_mult_to_index): Add TYPE argument. Use mode and
9 address space associated with TYPE.
10 (addr_to_parts): Add TYPE and BASE_HINT arguments. Pass TYPE to
11 most_expensive_mult_to_index. Call move_hint_to_base.
12 (create_mem_ref): Add BASE_HINT argument. Pass BASE_HINT and
13 TYPE to addr_to_parts.
14
2b93f88d
MJ
152009-11-02 Martin Jambor <mjambor@suse.cz>
16
17 PR tree-optimization/41750
18 * tree-sra.c (analyze_modified_params): Loop over all
19 representatives of components of a parameter.
20
9789ba46
JJ
212009-11-02 Jakub Jelinek <jakub@redhat.com>
22
68052d59
JJ
23 PR tree-optimization/41841
24 * ipa-struct-reorg.c (build_data_structure): Don't attempt to look at
25 local variables of not yet materialized clones.
26
0fba566c
JJ
27 PR debug/41893
28 * cfgexpand.c (expand_debug_expr): Don't attempt to create DECL_RTL
29 for a VOIDmode variable.
30
9789ba46
JJ
31 PR c++/41774
32 * c-pragma.c (visstack): Change into vector of ints rather than
33 enum symbol_visibility.
34 (push_visibility): Add kind argument, push default_visibility together
35 with kind.
36 (pop_visibility): Add kind argument, return true if successful, fail
37 if visibility stack is empty or if stack top is of different kind.
38 (handle_pragma_visibility): Don't check length of visstack, instead
39 call pop_visibility and issue diagnostics if it failed. Pass 0
40 as last argument to push_visibility and pop_visibility.
41 * c-pragma.h (push_visibility): Add kind argument.
42 (pop_visibility): Likewise. Return bool instead of void.
43
ebcc3d93
EB
442009-11-01 Eric Botcazou <ebotcazou@adacore.com>
45
46 * tree.def (TARGET_MEM_REF): Update comment.
47 * alias.c (get_alias_set): Retrieve the original memory reference for
48 a TARGET_MEM_REF before proceeding.
49
219d92a4
AS
502009-10-31 Anatoly Sokolov <aesok@post.ru>
51
52 * config/frv/frv.c (frv_function_value, frv_libcall_value,
53 frv_function_value_regno_p): New functions.
54 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
55 * config/frv/frv.h: (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
56 (FUNCTION_VALUE_REGNO_P): Redefine, use frv_function_value_regno_p.
57 * config/frv/frv-protos.h (frv_function_value_regno_p): Declare.
58
34732b0a
AS
592009-10-31 Anatoly Sokolov <aesok@post.ru>
60
61 * config/mn10300/mn10300.c (mn10300_function_value): Make static, add
62 new 'outgoing' argument.
63 (mn10300_libcall_value, mn10300_function_value_regno_p): New
64 functions.
65 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
66 * config/mn10300/mn10300.h: (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
67 LIBCALL_VALUE): Remove.
68 (FUNCTION_VALUE_REGNO_P): Redefine, use mn10300_function_value_regno_p.
69 * config/mn10300/mn10300-protos.h (mn10300_function_value): Remove.
70 (mh10300_function_value_regno_p): Declare.
71
46527cc8
RR
722009-10-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
73
74 * config/arm/cortex-a9.md: New - integer pipeline description.
75
03472fdd
EB
762009-10-31 Eric Botcazou <ebotcazou@adacore.com>
77
78 * tree-ssa-sccvn.c (vn_reference_lookup_3): Bail out instead of
79 aborting if the sizes of the two references don't match.
80
2e57e853
TM
812009-10-31 Toon Moene <toon@moene.org>
82
83 * ipa-inline.c (cgraph_decide_inlining):
84 Include reason for not inlining called-once functions in dump file.
85
7664c548
DG
862009-10-30 Daniel Gutson <dgutson@codesourcery.com>
87
88 * config/arm/linux-eabi.h (LINK_SPEC): BE8_LINK_SPEC added.
89 * config/arm/bpapi.h (BE8_LINK_SPEC): New define.
90 (LINK_SPEC): BE_LINK_SPEC added.
91
b207f900
RG
922009-10-30 Richard Guenther <rguenther@suse.de>
93
94 PR lto/41858
95 * lto-streamer.h (struct lto_file_decl_data): Remove fd member.
96
8c686cf5
NS
972009-10-30 Nathan Sidwell <nathan@codesourcery.com>
98
99 * target-def.h (TARGET_ASM_TTYPE): Correct typo of TARGET_ARM_TTYPE.
100 * config/arm/unwind-arm.c (__gnu_Unwind_Backtrace): Remove unused
101 label.
102
3d158124
MJ
1032009-10-30 Martin Jambor <mjambor@suse.cz>
104
105 * tree-sra.c (build_ref_for_offset_1): Remove a comment.
106
890b9b96
L
1072009-10-30 H.J. Lu <hongjiu.lu@intel.com>
108
e15f1ff6 109 PR target/40838
890b9b96
L
110 * cfgexpand.c (expand_stack_alignment): Call update_stack_boundary
111 first. Move assert on stack_alignment_estimated just before
112 setting stack_realign_needed.
113 (gimple_expand_cfg): Initialize stack_alignment_estimated to 0.
114 Don't call update_stack_boundary.
115
116 * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): New.
117 (verride_options): Don't check ix86_force_align_arg_pointer here.
118 (ix86_function_ok_for_sibcall): Use it.
119 (ix86_update_stack_boundary): Likewise.
120
121 * config/i386/i386.h (STACK_REALIGN_DEFAULT): Update comments.
122
953a18fb
RE
1232009-10-30 Richard Earnshaw <rearnsha@arm.com>
124
125 * arm.md (QHSI): New mode iterator.
126 (movqi): If generating for thumb, then truncate any immediate to
127 8 bits.
128 * thumb2.md (thumb2_movsi_shortim and peephole2 generator): Replace
129 with...
130 (thumb2_mov<mode>_shortim and peephole2 generator): ... iterator based
131 version.
132
d0539838
CC
1332009-10-29 Cary Coutant <ccoutant@google.com>
134
135 PR debug/41700
136 * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hook (two
137 locations in the source).
890b9b96
L
138 (store_vcall_insn): New function.
139 (lookup_vcall_insn): New function.
140 (dwarf2out_virtual_call_token): Use store_vcall_insn.
d0539838
CC
141 (dwarf2out_copy_call_info): New function.
142 (dwarf2out_virtual_call): Use lookup_vcall_insn.
143 * emit-rtl.c (try_split): Call copy_call_info debug hook.
144 * debug.h (struct gcc_debug_hooks): Add copy_call_info hook.
145 * debug.c (do_nothing_debug_hooks): Add dummy entry for new hook.
146 (debug_nothing_rtx_rtx): New dummy hook.
147 * dbxout.c (dbx_debug_hooks): Add dummy entry for new hook.
148 (xcoff_debug_hooks): Likewise.
149 * sdbout.c (sdb_debug_hooks): Likewise.
150 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
151
c376dbfb
DD
1522009-10-29 David Daney <ddaney@caviumnetworks.com>
153
154 * doc/invoke.texi (mmcount-ra-address): Document new command line
155 option.
156 * config/mips/mips.opt (mmcount-ra-address): New option.
157 * config/mips/mips-protos.h (mips_function_profiler): Declare new
158 function.
159 * config/mips/mips.c (struct mips_frame_info): Add ra_fp_offset
160 member.
161 (mips_for_each_saved_gpr_and_fpr): Set ra_fp_offset.
162 (mips_function_profiler): Moved from FUNCTION_PROFILER, and
163 rewritten.
164 * config/mips/mips.h (FUNCTION_PROFILER): Body of macro moved to
165 mips_function_profiler.
166
2b7e2984
SE
1672009-10-29 Steve Ellcey <sje@cup.hp.com>
168
169 PR middle-end/37565
170 PR target/38018
171 * doc/tm.texi (OVERRIDE_OPTIONS): Update.
172 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
173 * optc-gen.awk (cl_target_option_restore): Include call to
174 targetm.override_options_after_change.
175 * target-def.h (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
176 * target.h (override_options_after_change): New.
177 * c-common.c (parse_optimize_options): Call
178 targetm.override_options_after_change.
179 * config/ia64/ia64.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
180 (ia64_override_options_after_change): New.
181 (ia64_override_options) Add call to above.
182
44e82499
MM
1832009-10-29 Michael Matz <matz@suse.de>
184
185 * tree-ssa-math-opts.c (execute_convert_to_rsqrt): Remove.
186 (gate_convert_to_rsqrt): Ditto.
187 (pass_convert_to_rsqrt): Ditto.
188 * tree-pass.h (pass_convert_to_rsqrt): Don't declare.
189 * passes.c (init_optimization_passes): Don't add pass_convert_to_rsqrt
190 to pass list.
191
192 * config/i386/i386.c (ix86_emit_swdivsf): Change evaluation order.
193
90e77553
RR
1942009-10-29 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
195
196 * config/arm/arm.c (find_best_start): Fix type of remainder to be
197 unsigned .
198
8a1326b3
MJ
1992009-10-29 Martin Jambor <mjambor@suse.cz>
200
201 PR tree-optimization/41775
202 * tree-sra.c (build_ref_for_offset): Unshare *expr if not NULL.
203 (generate_subtree_copies): Do not unshare agg.
204 (load_assign_lhs_subreplacements): Do not unshare rhs.
205 (sra_modify_assign): Do not unshare exprs.
206 (propagate_subacesses_accross_link): Renamed to
207 propagate_subaccesses_across_link.
208
162e4591
RE
2092009-10-29 Richard Earnshaw <rearnsha@arm.com>
210
211 * arm.c (count_insns_for_constant): Rework to support counting for
212 thumb2 immediates as well.
213 (find_best_start): Split out from arm_gen_constant.
214 (arm_gen_constant): Rework to support XOR with immediate.
215
d48a3196
CF
2162009-10-29 Chao-ying Fu <fu@mips.com>
217
218 * config/mips/mips.c (mips_emit_unary, mips_force_unary): New
219 functions.
220 (mips_expand_synci_loop): Use the length rtx to control the
221 synci loop from the begin rtx that points to the first byte of
222 the cache line.
223
180a2539
RAE
2242009-10-28 Rafael Avila de Espindola <espindola@google.com>
225
226 * doc/invoke.texi: Rename -use-linker-plugin -fuse-linker-plugin.
227
4d62b56a
RAE
2282009-10-28 Rafael Avila de Espindola <espindola@google.com>
229
230 * dbxout.c (dbxout_common_check): Accept non public trees.
231 * dwarf2out.c (fortran_common): Accept non public trees.
232
da18ea94
RAE
2332009-10-28 Rafael Avila de Espindola <espindola@google.com>
234
235 * common.opt (fuse-linker-plugin): New option.
236 * gcc.c (LINK_COMMAND_SPEC, main): Rename use-linker-plugin to
237 fuse-linker-plugin.
238 * opts.c (common_handle_option): Ignore OPT_fuse_linker_plugin.
239
c4bb78e9
PB
2402009-10-28 Paolo Bonzini <bonzini@gnu.org>
241
242 PR rtl-optimization/39715
243 * config/arm/arm.md (cstoresi4): Use gen_cstoresi_ltu_thumb1.
244 (gen_cstoresi_ltu_thumb1): New splitter.
245
cfee9aa4
RG
2462009-10-28 Richard Guenther <rguenther@suse.de>
247
248 PR lto/41808
249 PR lto/41839
250 * tree-ssa.c (useless_type_conversion_p): Do not treat
251 conversions to pointers to incomplete types as useless.
252 * gimple.c (gimple_types_compatible_p): Compare struct tags,
253 not typedef names.
254
7cf72011
JJ
2552009-10-28 Jakub Jelinek <jakub@redhat.com>
256
257 * var-tracking.c (emit_note_insn_var_location): Don't call the second
258 vt_expand_loc unnecessarily when location is not a register nor
259 memory.
260
a1c65695
JJ
261 PR middle-end/41837
262 * ipa-struct-reorg.c (find_field_in_struct_1): Return NULL if
263 fields don't have DECL_NAME.
264
f46835f5
JJ
265 PR debug/41801
266 * builtins.c (get_builtin_sync_mem): Expand loc in ptr_mode,
267 call convert_memory_address on addr.
268
6ac719d3
JJ
269 PR target/41762
270 * config/i386/i386.c (ix86_pic_register_p): Don't call
271 rtx_equal_for_cselib_p for VALUEs discarded as useless.
272
e70545b0
RS
2732009-10-28 Richard Sandiford <rdsandiford@googlemail.com>
274
275 * var-tracking.c (emit_note_insn_var_location): Get the mode of
276 a variable part from its REG, MEM or VALUE.
277
f883d997
RG
2782009-10-28 Richard Guenther <rguenther@suse.de>
279
280 * gimple.c (gimple_get_alias_set): Fix comment typo.
281
14cf68d9
RG
2822009-10-28 Richard Guenther <rguenther@suse.de>
283
284 * tree.c (free_lang_data_in_type): Do not call get_alias_set.
285 (free_lang_data): Unconditionally compute alias sets for all
286 standard integer types. Bail out if gate bailed out previously.
287 Do not reset the types_compatible_p langhook.
288 (gate_free_lang_data): Remove.
289 (struct pass_ipa_free_lang_data): Enable unconditionally.
290 * gimple.c (gimple_get_alias_set): Use the same alias-set for
291 all pointer types.
292
1307c758
RG
2932009-10-28 Richard Guenther <rguenther@suse.de>
294
295 PR middle-end/41855
296 * tree-ssa-alias.c (refs_may_alias_p_1): Deal with CONST_DECLs
297 (ref_maybe_used_by_call_p_1): Fix bcopy handling.
298 (call_may_clobber_ref_p_1): Likewise.
299 * tree-ssa-structalias.c (find_func_aliases): Likewise.
300 * alias.c (nonoverlapping_memrefs_p): Deal with CONST_DECLs.
301
e5bb5009
PB
3022009-10-28 Paolo Bonzini <bonzini@gnu.org>
303
304 PR rtl-optimization/41812
305
306 Revert:
307 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
308
309 * df-problems.c (df_md_scratch): New.
310 (df_md_alloc, df_md_free): Allocate/free it.
311 (df_md_local_compute): Only include live registers in init.
312 (df_md_transfer_function): Prune the in-set computed by
313 the confluence function, and the gen-set too.
314
5d49d0ea
PB
3152009-10-28 Paolo Bonzini <bonzini@gnu.org>
316
317 PR rtl-optimization/39715
318 * combine.c (simplify_comparison): Use extensions to
319 widen comparisons. Try an ANDing first.
320
582021ba
PB
3212009-10-28 Paolo Bonzini <bonzini@gnu.org>
322
323 PR rtl-optimization/40741
324 * config/arm/arm.c (thumb1_rtx_costs): IOR or XOR with
325 a small constant is cheap.
326 * config/arm/arm.md (andsi3, iorsi3): Try to place the result of
327 force_reg on the LHS.
328 (xorsi3): Likewise, and split the XOR if the constant is complex
329 and not in Thumb mode.
330
533d4b99
PB
3312009-10-28 Paolo Bonzini <bonzini@gnu.org>
332
333 * expmed.c (emit_store_flag): Check costs before
334 transforming to the opposite representation.
335
42663bf1
PB
3362009-10-28 Paolo Bonzini <bonzini@gnu.org>
337
338 * config/sh/sh.md (cbranchfp4_media): Remove hack extending
339 cstore result to DImode.
340
f60e5a20
KK
3412009-10-28 Kaz Kojima <kkojima@gcc.gnu.org>
342
343 * config/sh/sh.md (stuff_delay_slot): Move const_int pattern
344 inside the unspec vector.
345
9ba0399e
RH
3462009-10-27 Richard Henderson <rth@redhat.com>
347
348 * cgraphunit.c (cgraph_optimize): Maintain timevar stack properly.
349
b7da9fd4
RH
3502009-10-27 Richard Henderson <rth@redhat.com>
351
352 PR c++/41819
353 * tree-eh.c (eh_region_may_contain_throw_map): Rename from
354 eh_region_may_contain_throw; update users.
355 (eh_region_may_contain_throw): New function.
356 (lower_catch): Check flag_exceptions before creating exception region.
357 (lower_eh_filter, lower_eh_must_not_throw): Likewise.
358 (lower_cleanup): Tidy existing flag_exceptions check to match.
359
41ca8d08
KT
3602009-10-27 Kai Tietz <kai.tietz@onevision.com>
361
362 PR/41799
363 * config/i386/mingw32.h (CHECK_EXECUTE_STACK_ENABLED): New macro.
364 * config/i386/mingw.opt: Add fset-stack-executable.
365 * config/i386/i386.c (ix86_trampoline_init): Make call to
366 emit_library_call conditional, if CHECK_EXECUTE_STACK_ENABLED is
367 defined and its value is not zero.
368 * doc/invoke.texi
369
5c245b95
RG
3702009-10-27 Richard Guenther <rguenther@suse.de>
371
372 * tree-ssa-structalias.c (find_func_aliases): In IPA mode
373 handle calls to externally visible functions like in regular mode.
374 (create_variable_info_for): Do not create function infos here.
375 (have_alias_info): Remove write-only variable.
376 (solve_constraints): New function split out from common code
377 in compute_points_to_sets and ipa_pta_execute.
378 (compute_points_to_sets): Adjust.
379 (ipa_pta_execute): Likewise. Handle clones and externally visible
380 functions like in non-IPA mode.
381
06302a02
JJ
3822009-10-27 Jakub Jelinek <jakub@redhat.com>
383
384 PR c/41842
385 * c-typeck.c (convert_arguments): Return -1 if any of the arguments is
386 error_mark_node.
387
b57d8e6f
RG
3882009-10-27 Richard Guenther <rguenther@suse.de>
389
390 * tree-complex.c (expand_complex_div_wide): Check for
391 INTEGER_CST, not TREE_CONSTANT on comparison folding result.
392
673beced
RE
3932009-10-27 Revital Eres <eres@il.ibm.com>
394
395 PR tree-optimization/40648
396 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
397 Change decision of when to peel for alignment.
398
b23dc2c0
RG
3992009-10-27 Richard Guenther <rguenther@suse.de>
400
401 PR lto/41821
402 * gimple.c (gimple_types_compatible_p): Handle OFFSET_TYPE.
403
b8b39401
AH
4042009-10-27 Aldy Hernandez <aldyh@redhat.com>
405
406 PR bootstrap/41451
407 * fold-const.c (fold_binary_loc): Do not call
408 protected_set_expr_location.
409
2929029c
WG
4102009-10-27 Wei Guozhi <carrot@google.com>
411
412 PR target/41705
2c9062e2
UB
413 * target.h (have_conditional_execution): Add a new target hook
414 function.
2929029c
WG
415 * target-def.h (TARGET_HAVE_CONDITIONAL_EXECUTION): Likewise.
416 * targhooks.h (default_have_conditional_execution): Likewise.
417 * targhooks.c (default_have_conditional_execution): Likewise.
418 * doc/tm.texi (TARGET_HAVE_CONDITIONAL_EXECUTION): Document it.
419 * config/arm/arm.c (TARGET_HAVE_CONDITIONAL_EXECUTION): Define it.
420 (arm_have_conditional_execution): New function.
421 * ifcvt.c (noce_process_if_block, find_if_header,
2c9062e2
UB
422 cond_exec_find_if_block, dead_or_predicable): Change the usage of
423 macro HAVE_conditional_execution to a target hook call.
2929029c
WG
424 * recog.c (peephole2_optimize): Likewise.
425 * sched-rgn.c (add_branch_dependences): Likewise.
426 * final.c (asm_insn_count, final_scan_insn): Likewise.
427 * bb-reorder.c (HAVE_conditional_execution): Remove it.
428
299456f3
BE
4292009-10-26 Ben Elliston <bje@au.ibm.com>
430 Michael Meissner <meissner@linux.vnet.ibm.com>
431 Ulrich Weigand <uweigand@de.ibm.com>
432
433 * config.gcc (spu-*-elf*): Add spu_cache.h to extra_headers.
434 * config/spu/spu_cache.h: New file.
435
436 * config/spu/cachemgr.c: New file.
437 * config/spu/cache.S: New file.
438
439 * config/spu/spu.h (ASM_OUTPUT_SYMBOL_REF): Define.
440 (ADDR_SPACE_EA): Define.
441 (TARGET_ADDR_SPACE_KEYWORDS): Define.
442 * config/spu/spu.c (EAmode): New macro.
443 (TARGET_ADDR_SPACE_POINTER_MODE): Define.
444 (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
445 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
446 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Likewise.
447 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
448 (TARGET_ADDR_SPACE_CONVERT): Likewise.
449 (TARGET_ASM_SELECT_SECTION): Likewise.
450 (TARGET_ASM_UNIQUE_SECTION): Likewise.
451 (TARGET_ASM_UNALIGNED_SI_OP): Likewise.
452 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
453 (ea_symbol_ref): New function.
454 (spu_legitimate_constant_p): Handle __ea qualified addresses.
455 (spu_addr_space_legitimate_address_p): New function.
456 (spu_addr_space_legitimize_address): Likewise.
457 (cache_fetch): New global.
458 (cache_fetch_dirty): Likewise.
459 (ea_alias_set): Likewise.
460 (ea_load_store): New function.
461 (ea_load_store_inline): Likewise.
462 (expand_ea_mem): Likewise.
463 (spu_expand_mov): Handle __ea qualified memory references.
464 (spu_addr_space_pointer_mode): New function.
465 (spu_addr_space_address_mode): Likewise.
466 (spu_addr_space_subset_p): Likewise.
467 (spu_addr_space_convert): Likewise.
468 (spu_section_type_flags): Handle "._ea" section.
469 (spu_select_section): New function.
470 (spu_unique_section): Likewise.
471 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Support __EA32__
472 and __EA64__ predefined macros.
473 * config/spu/spu-elf.h (LIB_SPEC): Handle -mcache-size= and
474 -matomic-updates switches.
475
476 * config/spu/t-spu-elf (MULTILIB_OPTIONS): Define.
477 (EXTRA_MULTILIB_PARTS): Add libgcc_cachemgr.a,
478 libgcc_cachemgr_nonatomic.a, libgcc_cache8k.a, libgcc_cache16k.a,
479 libgcc_cache32k.a, libgcc_cache64k.a, libgcc_cache128k.a.
480 ($(T)cachemgr.o, $(T)cachemgr_nonatomic.o): New target.
481 ($(T)cache8k.o, $(T)cache16k.o, $(T)cache32k.o, $(T)cache64k.o,
482 $(T)cache128k.o): Likewise.
483 ($(T)libgcc_%.a): Likewise.
484
485 * config/spu/spu.h (TARGET_DEFAULT): Add MASK_ADDRESS_SPACE_CONVERSION.
486 * config/spu/spu.opt (-mea32/-mea64): Add switches.
487 (-maddress-space-conversion): Likewise.
488 (-mcache-size=): Likewise.
489 (-matomic-updates): Likewise.
490 * doc/invoke.texi (-mea32/-mea64): Document.
491 (-maddress-space-conversion): Likewise.
492 (-mcache-size=): Likewise.
493 (-matomic-updates): Likewise.
494
36c5e70a
BE
4952009-10-26 Ben Elliston <bje@au.ibm.com>
496 Michael Meissner <meissner@linux.vnet.ibm.com>
497 Ulrich Weigand <uweigand@de.ibm.com>
498
499 * doc/tm.texi (TARGET_ADDR_SPACE_KEYWORDS): Document.
500
501 * c-common.c (c_common_reswords): If TARGET_ADDR_SPACE_KEYWORDS is
502 defined, add the named address space keywords.
503 (c_addr_space_name): New function.
504 (complete_array_type): Preserve named address space.
505 (handle_mode_attribute): Use targetm.addr_space.valid_pointer_mode
506 instead of targetm.valid_pointer_mode.
507
508 * c-common.h (enum rid): Add RID_ADDR_SPACE_0 .. RID_ADDR_SPACE_15,
509 RID_FIRST_ADDR_SPACE and RID_LAST_ADDR_SPACE.
510 (ADDR_SPACE_KEYWORD): New macro.
511 (c_addr_space_name): Add prototype.
512
513 * c-tree.h (struct c_declspecs): Add address_space member.
514 (declspecs_add_addrspace): Add prototype.
515
516 * c-pretty-print.c (pp_c_type_qualifier_list): Handle address spaces.
517
518 * c-parser.c (c_parse_init): Add assertion.
519 (typedef enum c_id_kind): Add C_ID_ADDRSPACE.
520 (c_lex_one_token): Handle address space keywords.
521 (c_token_starts_typename): Likewise.
522 (c_token_starts_declspecs): Likewise.
523 (c_parser_declspecs): Likewise.
524 (c_parser_postfix_expression_after_paren_type): Diagnose compound
525 literal within function qualified with named address space.
526
527 * c-decl.c (diagnose_mismatched_decls): Diagnose conflicting named
528 address space qualifiers.
529 (shadow_tag_warned): Warn about useless address space qualifiers.
530 (quals_from_declspecs): Handle address space qualifiers.
531 (grokdeclarator): Likewise.
532 (build_null_declspecs): Likewise.
533 (declspecs_add_addrspace): New function.
534
535 * c-typeck.c (addr_space_superset): New function.
536 (qualify_type): Handle named address spaces.
537 (composite_type): Likewise.
538 (common_pointer_type): Likewise.
539 (comp_target_types): Likewise.
540 (build_conditional_expr): Likewise.
541 (handle_warn_cast_qual): Likewise.
542 (build_c_cast): Likewise.
543 (convert_for_assignment): Likewise.
544 (build_binary_op): Likewise.
545 (pointer_diff): Handle named address spaces. Use intermediate
546 integer type of sufficient size if required.
547
d4ebfa65
BE
5482009-10-26 Ben Elliston <bje@au.ibm.com>
549 Michael Meissner <meissner@linux.vnet.ibm.com>
550 Ulrich Weigand <uweigand@de.ibm.com>
551
552 * doc/tm.texi (TARGET_ADDR_SPACE_POINTER_MODE): Document.
553 (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
554 (TARGET_ADDR_SPACE_VALID_POINTER_MODE): Likewise.
555
556 * target.h (struct target_def): Add pointer_mode, address_mode,
557 and valid_pointer_mode to addr_space substructure.
558 * target-def.h (TARGET_ADDR_SPACE_POINTER_MODE): Define.
559 (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
560 (TARGET_ADDR_SPACE_VALID_POINTER_MODE): Likewise.
561 (TARGET_ADDR_SPACE_HOOKS): Add them.
562 * targhooks.c (target_default_pointer_address_modes_p): New function.
563 * target.h (target_default_pointer_address_modes_p): Add prototype.
564 * targhooks.c (default_addr_space_pointer_mode): New function.
565 (default_addr_space_address_mode): Likewise.
566 (default_addr_space_valid_pointer_mode): Likewise.
567 * targhooks.h (default_addr_space_pointer_mode): Add prototype.
568 (default_addr_space_address_mode): Likewise.
569 (default_addr_space_valid_pointer_mode): Likewise.
570 * output.h (default_valid_pointer_mode): Move to ...
571 * targhooks.h (default_valid_pointer_mode): ... here.
572 * varasm.c (default_valid_pointer_mode): Move to ...
573 * targhooks.c (default_valid_pointer_mode): ... here.
574
575 * varasm.c (output_constant): Use targetm.addr_space.valid_pointer_mode
576 instead of targetm.valid_pointer_mode.
577
578 * fold-const.c (fit_double_type): Use int_or_pointer_precision.
579 * tree.c (integer_pow2p): Likewise.
580 (tree_log2): Likewise.
581 (tree_floor_log2): Likewise.
582 (signed_or_unsigned_type_for): Support pointer type of different size.
583 (int_or_pointer_precision): New function.
584 * tree.h (int_or_pointer_precision): Add prototype.
585 * stor-layout.c (layout_type): Set TYPE_PRECISION for offset types.
586 * varasm.c (initializer_constant_valid_p): Use TYPE_PRECISION of
587 incoming pointer type instead of POINTER_SIZE.
588
589 * tree.c (build_pointer_type): Use appropriate pointer mode
590 instead of ptr_mode.
591 (build_reference_type): Likewise.
592 * expr.c (store_expr): Likewise.
593 (expand_expr_addr_expr): Likewise.
594 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
595 * cfgexpand.c (expand_debug_expr): Likewise.
2c9062e2 596
d4ebfa65
BE
597 * auto-inc-dec.c: Include "target.h".
598 (try_merge): Use appropriate address mode instead of Pmode.
599 (find_inc): Likewise.
600 * combine.c (find_split_point): Likewise.
601 * cselib.c (cselib_record_sets): Likewise.
602 * dse.c (replace_inc_dec): Likewise.
603 (canon_address): Likewise.
604 * var-tracking.c (replace_expr_with_values): Likewise.
605 (count_uses): Likewise.
606 (add_uses): Likewise.
607 (add_stores): Likewise.
608 * emit-rtl.c: Include "target.h".
609 (adjust_address_1): Use appropriate address mode instead of Pmode.
610 (offset_address): Likewise.
611 * explow.c (break_out_memory_refs): Likewise.
612 (memory_address_addr_space): Likewise.
613 (promote_mode): Likewise.
614 * expr.c (move_by_pieces): Likewise.
615 (emit_block_move_via_loop): Likewise.
616 (store_by_pieces): Likewise.
617 (store_by_pieces_1): Likewise.
618 (expand_assignment): Likewise.
619 (store_constructor): Likewise.
620 (expand_expr_addr_expr): Likewise.
621 (expand_expr_real_1): Likewise.
622 * cfgexpand.c (expand_debug_expr): Likewise.
623 * ifcvt.c (noce_try_cmove_arith): Likewise.
624 * regcprop.c (kill_autoinc_value): Likewise.
625 * regmove.c (try_auto_increment): Likewise.
626 * reload.c (find_reloads): Likewise.
627 (find_reloads_address): Likewise.
628 (find_reloads_address_1): Likewise.
629 * sched-deps.c: Include "target.h".
630 (sched_analyze_1): Use appropriate address mode instead of Pmode.
631 (sched_analyze_2): Likewise.
632 * sel-sched-dump.c: Include "target.h".
633 (debug_mem_addr_value): Use appropriate address mode instead of Pmode.
634 * stor-layout.c (layout_type): Likewise.
635 * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
636 (multiplier_allowed_in_address_p): Likewise.
637 (get_address_cost): Likewise.
638 * varasm.c (make_decl_rtl): Likewise.
2c9062e2 639
d4ebfa65
BE
640 * expr.c (expand_assignment): Always convert offsets to appropriate
641 address mode.
642 (store_expr): Likewise.
643 (store_constructor): Likewise.
644 (expand_expr_real_1): Likewise.
645
646 * reload.h (form_sum): Add MODE argument.
647 * reload.c (form_sum): Add MODE argument, use it instead of Pmode.
648 Update recursive calls.
649 (subst_indexed_address): Update calls to form_sum.
2c9062e2 650
d4ebfa65
BE
651 * tree-flow.h (addr_for_mem_ref): Add ADDRSPACE argument.
652 * tree-ssa-address.c: Include "target.h".
653 (templates): Replace by ...
654 (mem_addr_template_list): ... this new vector.
655 (TEMPL_IDX): Handle address space numbers.
656 (gen_addr_rtx): Add address mode argument, use it instead of Pmode.
657 (addr_for_mem_ref): Add ADDRSPACE argument. Use per-address-space
658 instead of global cache. Update call to gen_addr_rtx.
659 (valid_mem_ref_p): Update call to addr_for_mem_ref.
660 * expr.c (expand_expr_real_1): Update call to addr_for_mem_ref.
2c9062e2 661
d4ebfa65
BE
662 * rtl.h (convert_memory_address_addr_space): Add prototype.
663 (convert_memory_address): Define as macro.
664 * explow.c (convert_memory_address): Rename to ...
665 (convert_memory_address_addr_space): ... this. Add ADDRSPACE argument.
666 Use appropriate pointer and address modes instead of ptr_mode / Pmode.
667 Update recursive calls.
668 (memory_address_addr_space): Call convert_memory_address_addr_space.
669 * expmed.c (make_tree): Likewise.
670 * expr.c (expand_assignment): Likewise.
671 (expand_expr_addr_expr_1): Likewise. Also, add ADDRSPACE argument.
672 (expand_expr_addr_expr): Likewise. Also, update call.
673
674 * alias.c (find_base_value): Guard pointer size optimizations.
675 (find_base_term): Likewise.
676 * rtlanal.c (nonzero_bits1): Likewise.
677 (num_sign_bit_copies1): Likewise.
678 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
679
680 * Makefile.in (tree-ssa-address.o): Add $(TARGET_H) dependency.
681 (emit-rtl.o): Likewise.
682 (auto-inc-dec.o): Likewise.
683 (sched-deps.o): Likewise.
684
09e881c9
BE
6852009-10-26 Ben Elliston <bje@au.ibm.com>
686 Michael Meissner <meissner@linux.vnet.ibm.com>
687 Ulrich Weigand <uweigand@de.ibm.com>
688
689 * doc/extend.texi (Named Address Spaces): New section.
690 * coretypes.h (addr_space_t): New type.
691 (ADDR_SPACE_GENERIC): New define.
692 (ADDR_SPACE_GENERIC_P): New macro.
693
694 * doc/tm.texi (Named Address Spaces): New section.
695 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Document.
696 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Document.
697 (TARGET_ADDR_SPACE_SUBSET_P): Document.
698 (TARGET_ADDR_SPACE_CONVERT): Document.
699 * target.h (struct gcc_target): Add addr_space substructure.
700 * target-def.h (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
701 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Likewise.
702 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
703 (TARGET_ADDR_SPACE_CONVERT): Likewise.
704 (TARGET_ADDR_SPACE_HOOKS): Likewise.
705 (TARGET_INITIALIZER): Initialize addr_space hooks.
706 * targhooks.c (default_addr_space_legitimate_address_p): New function.
707 (default_addr_space_legitimize_address): Likewise.
708 (default_addr_space_subset_p): Likewise.
709 (default_addr_space_convert): Likewise.
710 * targhooks.h (default_addr_space_legitimate_address_p): Add prototype.
711 (default_addr_space_legitimize_address): Likewise.
712 (default_addr_space_subset_p): Likewise.
713 (default_addr_space_convert): Likewise.
714
715 * doc/rtl.texi (MEM_ADDR_SPACE): Document.
716 * rtl.h (mem_attrs): Add ADDRSPACE memory attribute.
717 (MEM_ADDR_SPACE): New macro.
718 * emit-rtl.c (get_mem_attrs): Add ADDRSPACE argument and set
719 address space memory attribute.
720 (mem_attrs_htab_hash): Handle address space memory attribute.
721 (mem_attrs_htab_eq): Likewise.
722 (set_mem_attributes_minus_bitpos): Likewise.
723 (set_mem_alias_set): Likewise.
724 (set_mem_align): Likewise.
725 (set_mem_expr): Likewise.
726 (set_mem_offset): Likewise.
727 (set_mem_size): Likewise.
728 (adjust_address_1): Likewise.
729 (offset_address): Likewise.
730 (widen_memoy_address): Likewise.
731 (get_spill_slot_decl): Likewise.
732 (set_mem_attrs_for_spill): Likewise.
733 (set_mem_addr_space): New function.
734 * emit-rtl.h (set_mem_addr_space): Add prototype.
735 * print-rtl.c (print_rtx): Print address space memory attribute.
736 * expr.c (expand_assignment): Set address space memory attribute
737 of generated MEM RTXes as appropriate.
738 (expand_expr_real_1): Likewise.
739 * cfgexpand.c (expand_debug_expr): Likewise.
740 * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
741
742 * tree.h (struct tree_base): Add address_space bitfield. Reduce
743 size of "spare" bitfield.
744 (TYPE_ADDR_SPACE): New macro.
745 (ENCODE_QUAL_ADDR_SPACE): Likewise.
746 (DECODE_QUAL_ADDR_SPACE): Likewise.
747 (CLEAR_QUAL_ADDR_SPACE): Likewise.
748 (KEEP_QUAL_ADDR_SPACE): Likewise.
749 (TYPE_QUALS): Encode type address space.
750 (TYPE_QUALS_NO_ADDR_SPACE): New macro.
751 * tree.c (set_type_quals): Set type address space.
752 (build_array_type): Inherit array address space from element type.
753 * print-tree.c (print_node_brief): Print type address space.
754 (print_node): Likewise.
755 * tree-pretty-print.c (dump_generic_node): Likewise.
756
757 * explow.c (memory_address): Rename to ...
758 (memory_address_addr_space): ... this. Add ADDRSPACE argument.
759 Use address-space aware variants of memory address routines.
760 * recog.c (memory_address_p): Rename to ...
761 (memory_address_addr_space_p): ... this. Add ADDSPACE argument.
762 Use address-space aware variants of memory address routines.
763 (offsettable_address_p): Rename to ...
764 (offsettable_address_addr_space_p): ... this. Add ADDRSPACE argument.
765 Use address-space aware variants of memory address routines.
766 * reload.c (strict_memory_address_p): Rename to ...
767 (strict_memory_address_addr_space_p): ... this. Add ADDSPACE argument.
768 Use address-space aware variants of memory address routines.
769 (maybe_memory_address_p): Rename to ...
770 (maybe_memory_address_addr_space_p): ... this. Add ADDSPACE argument.
771 Use address-space aware variants of memory address routines.
772 * expr.h (memory_address_addr_space): Add prototype.
773 (memory_address): Define as macro.
774 * recog.h (memory_address_addr_space_p): Add prototype.
775 (memory_address_p): Define as macro.
776 (offsettable_address_addr_space_p): Add prototype.
777 (offsettable_address_p): Define as macro.
778 (strict_memory_address_addr_space_p): Add prototype.
779 (strict_memory_address_p): Define as macro.
780
781 * combine.c (find_split_point): Use address-space aware variants
782 of memory address routines.
783 * emit-rtl.c (operand_subword): Likewise.
784 (change_address_1): Likewise.
785 (adjust_address_1): Likewise.
786 (offset_address): Likewise.
787 * expr.c (emit_move_insn): Likewise.
788 (expand_assignment): Likewise.
789 (expand_expr_real_1): Likewise.
790 * recog.c (verify_changes): Likewise.
791 (general_operand): Likewise.
792 (offsettable_memref_p): Likewise.
793 (offsettable_nonstrict_memref_p): Likewise.
794 (constrain_operands): Likewise.
795 * reload.c (get_secondary_mem): Likewise.
796 (find_reloads_toplev): Likewise.
797 (find_reloads_address): Likewise.
798 (find_reloads_subreg_address): Likewise.
799 * reload1.c (reload): Likewise.
800 * rtlhooks.c (gen_lowpart_if_possible): Likewise.
801 * rtl.h (address_cost): Add ADDRSPACE argument.
802 * rtlanal.c (address_cost): Add ADDRSPACE argument. Use address-space
803 aware variant of memory address routines.
804 * loop-invariant.c (create_new_invariant): Update address_cost call.
805 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
806 * fwprop.c (should_replace_address): Add ADDRSPACE argument.
807 Use address-space aware variant of memory address routines.
808 (propagate_rtx_1): Update call to should_replace_address.
809 * tree-flow.h (multiplier_allowed_in_address_p): Add ADDRSPACE
810 argument.
811 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Add
812 ADDRSPACE argument. Use per-address-space instead of global cache.
813 Use address-space aware variant of memory address routines.
814 (get_address_cost): Likewise.
815 (get_computation_cost_at): Update calls.
816 * tree-ssa-address.c (valid_mem_ref_p): Add ADDRSPACE argument.
817 Use address-space aware variant of memory address routines.
818 (create_mem_ref_raw): Update call to valid_mem_ref_p.
819 (most_expensive_mult_to_index): Update call to
820 multiplier_allowed_in_address_p.
821
822 * dwarf2out.c (modified_type_die): Output DW_AT_address_class
823 attribute to indicate named address spaces.
824
825 * varasm.c (get_variable_section): DECLs in named address spaces
826 cannot be "common".
827
828 * reload.c (find_reloads_address): Do not use LEGITIMIZE_RELOAD_ADDRESS
829 for addresses in a non-generic address space.
830
831 * expr.c (emit_block_move_hints): Do not use libcalls for
832 memory in non-generic address spaces.
833 (clear_storage_hints): Likewise.
834 (expand_assignment): Likewise.
835
836 * fold-const.c (operand_equal_p): Expressions refering to different
837 address spaces are not equivalent.
838
839 * rtl.c (rtx_equal_p_cb): MEMs refering to different address
840 spaces are not equivalent.
841 (rtx_equal_p): Likewise.
842 * cse.c (exp_equiv_p): Likewise.
843 * jump.c (rtx_renumbered_equal_p): Likewise.
844 * reload.c (operands_match_p): Likewise.
845
846 * alias.c (nonoverlapping_memrefs_p): MEMs refering to different
847 address spaces may alias.
848 (true_dependence): Likewise.
849 (canon_true_dependence): Likewise.
850 (write_dependence_p): Likewise.
851
852 * dse.c (canon_address): Handle named address spaces.
853 * ifcvt.c (noce_try_cmove_arith): Likewise.
854
855 * tree.def (ADDR_SPACE_CONVERT_EXPR): New tree code.
856 * expr.c (expand_expr_real_2): Expand ADDR_SPACE_CONVERT_EXPR.
857 * convert.c (convert_to_pointer): Generate ADDR_SPACE_CONVERT_EXPR
858 to handle conversions between different address spaces.
859 * fold-const.c (fold_convert_loc): Likewise.
860 (fold_unary_loc): Handle ADDR_SPACE_CONVERT_EXPR.
861 * tree-pretty-print.c (dump_generic_node): Likewise.
862 * gimple-pretty-print.c (dump_unary_rhs): Likewise.
863 * tree-cfg.c (verify_gimple_assign_unary): Likewise.
864 * tree-inline.c (estimate_operator_cost): Likewise.
865 * tree-ssa.c (useless_type_conversion_p): Conversions between pointers
866 to different address spaces are not useless.
867
bde2d108
JJ
8682009-10-26 Jakub Jelinek <jakub@redhat.com>
869
7752e522
JJ
870 PR bootstrap/41345
871 * cfgcleanup.c (trivially_empty_bb_p): New function.
872 (try_optimize_bb): Use it instead of checking BB_HEAD == BB_END.
873
bde2d108
JJ
874 PR debug/41828
875 * dwarf2out.c (add_pubname, add_pubtype, generic_parameter_die,
876 add_name_and_src_coords_attributes, gen_namespace_die,
877 dwarf2out_set_name): Handle dwarf2_name returning NULL.
878
65a324b4
NC
8792009-10-26 Nick Clifton <nickc@redhat.com>
880
881 * config.gcc: Add support for RX target.
882 * config/rx: New directory.
883 * config/rx/constraints.md: New file.
884 * config/rx/predicates.md: New file.
885 * config/rx/rx.c: New file.
886 * config/rx/rx.h: New file.
887 * config/rx/rx.md: New file.
888 * config/rx/rx.opt: New file.
889 * config/rx/rx-protos.h: New file.
890 * config/rx/t-rx: New file.
891 * doc/extend.texi: Document RX function attributes.
892 * doc/invoke.texi: Document RX specific command line options.
893 * doc/contrib.texi: Document RX contribution.
894 * doc/md.texi: Document RX constraints.
895 * doc/install.texi: Document RX support.
896
84280917
MM
8972009-10-26 Michael Matz <matz@suse.de>
898
899 PR tree-optimization/41783
900 * tree-ssa-alias.c (get_continuation_for_phi): Export, add a special
901 case for simple diamonds.
902 * tree-ssa-alias.h (get_continuation_for_phi): Declare.
903 * tree-ssa-pre.c (translate_vuse_through_block): Add same_valid
904 argument, use alias oracle to skip some vdefs.
905 (phi_translate_1): Change call to above, don't allocate new
906 value ids if they can stay the same.
907 (compute_avail): Allow vuse walking when looking up references.
908
bd02b3a0
RG
9092009-10-26 Richard Guenther <rguenther@suse.de>
910
911 PR tree-optimization/41826
912 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Avoid
913 access to re-allocated vector fields.
914
b77a0698
RG
9152009-10-26 Richard Guenther <rguenther@suse.de>
916
917 * graphite-sese-to-poly.c (check_poly_representation): Fix
918 compile without checking.
919
60f5ed26
JW
9202009-10-26 Janus Weil <janus@gcc.gnu.org>
921
922 PR fortran/41714
923 * gimple.h (tree_annotate_all_with_location): Remove prototype.
924 * gimplify.c (tree_should_carry_location_p,
925 tree_annotate_one_with_location,tree_annotate_all_with_location):
926 Remove obsolete functions.
927
38d547aa
KK
9282009-10-25 Kaz Kojima <kkojima@gcc.gnu.org>
929
930 PR target/41813
931 * config/sh/sh.md (stuff_delay_slot): Don't set T_REG in pattern.
932
a1d9c4fb
RG
9332009-10-25 Richard Guenther <rguenther@suse.de>
934
935 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
936 Stream DECL_RESTRICTED_P.
937 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
938
c870c233
RS
9392009-10-25 Richard Sandiford <rdsandiford@googlemail.com>
940
941 * config/mips/mips.c (mips_restore_gp_from_cprestore_slot): Emit
942 a note when expanding to nothing.
943
22dfb60e
RG
9442009-10-25 Richard Guenther <rguenther@suse.de>
945
946 PR middle-end/41814
947 * tree.c (find_decls_types_r): Deal with Java overloading
948 BINFO_VIRTUALS for its own purpose.
949
8af9d17f
AN
9502009-10-24 Adam Nemet <anemet@caviumnetworks.com>
951
952 * config/mips/predicates.md (hilo_operand): New predicate.
953 * config/mips/mips.md (<u>mulsidi3_64bit): Change it to a
954 define_insn. Correct !ISA_HAS_EXT_INS length from 24 to 28. Move
955 splitter part from here ...:
956 (<u>mulsidi3_64bit splitter for !ISA_HAS_EXT_INS): ... to here. Swap
957 op0 and op4 to match the DINS case.
958 (<u>mulsidi3_64bit splitter for ISA_HAS_EXT_INS): New splitter.
959
9602009-10-24 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
e1a84153
AH
961
962 PR middle-end/19154
963 * avr.md (QIDI): Add new mode iterator.
964 (sbrx_branch<mode>): Create new zero extract bit, test and jump
965 patterns for all QI thru DI modes combinations.
966 (sbrx_and_branch<mode>): Create new and based bit test and jump
967 patterns for QI thru SI modes.
968 avr.c (avr_out_sbxx_branch): Use only bit number.
969
8b583a06
JH
9702009-10-24 Jan Hubicka <jh@suse.cz>
971
972 * ipa-reference.c (check_call): Noreturn notrhow calls do not write
973 to memory.
7e06c3d6
EB
974 (analyze_function): When analyzing noreturn nothrow call, do not
975 compute written stats; free bitmaps of vars early if possible.
8b583a06
JH
976 (generate_summary): Only update bitmaps if computed.
977 (propagate): Only dump bitmaps if computed.
978 (ipa_reference_read_summary): Fix pasto.
979
72580319
EB
9802009-10-24 Eric Botcazou <ebotcazou@adacore.com>
981
982 * tree-ssa-alias.c (nonaliasing_component_refs_p): Rename into...
983 (aliasing_component_refs_p): ...this. Return true if there is no
984 common base and the base access types have the same alias set.
985 (indirect_ref_may_alias_decl_p): Adjust for above renaming.
986 (indirect_refs_may_alias_p): Likewise.
987
26d8af35
JM
9882009-10-23 Joseph Myers <joseph@codesourcery.com>
989
990 PR c/40033
991 * c-typeck.c (c_finish_stmt_expr): Do not wrap error_mark_node in
992 a C_MAYBE_CONST_EXPR.
993
3fc841c8
MM
9942009-10-23 Michael Meissner <meissner@linux.vnet.ibm.com>
995
996 PR target/41787
997 * config/rs6000/rs6000.c (struct machine_function): Add
998 vsx_or_altivec_used_p to record if vector types are used.
999 (rs6000_expand_to_rtl_hook): Rename from
1000 rs6000_alloc_sdmode_stack_slot. If VSX, check to see if there are
1001 any vector operations, so if there are, we can set VRSAVE to
1002 non-zero when only floating point vector registers are used.
1003 (TARGET_EXPAND_TO_RTL_HOOK): Use rs6000_expand_to_rtl_hook.
1004 (rs6000_check_vector_mode): Inner function to check if vector
1005 types are used in the code.
1006 (compute_vrsave_mask): If VSX, make sure VRSAVE is non-zero if
1007 vector instructions are used.
1008
1009 * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED):
1010 Indicate that VSX registers which overlap floating point
1011 registers, can't be used across a call, since the ABI only states
1012 the scalar part of the register will be saved and restored.
1013
cb9c2485
JM
10142009-10-23 Joseph Myers <joseph@codesourcery.com>
1015
1016 PR c/41673
1017 * alias.c (get_alias_set): Call langhook before returning 0 for
1018 types with structural equality.
1019 * c-common.c (c_common_get_alias_set): Use alias set of element
1020 type for arrays with structural comparison.
1021
93f28ca7
RG
10222009-10-23 Richard Guenther <rguenther@suse.de>
1023
1024 PR middle-end/41805
1025 * cfgexpand.c (expand_call_stmt): Use gimple_has_side_effects and
1026 gimple_call_nothrow_p.
1027
5813994e
RG
10282009-10-23 Richard Guenther <rguenther@suse.de>
1029
1030 PR tree-optimization/41778
1031 * tree-ssa-pre.c (do_regular_insertion): Only insert if a
1032 redundancy along a path in the CFG we want to optimize for speed
1033 is going to be removed.
1034 (execute_pre): Do partial-PRE only if the function is to be
1035 optimized for speed.
1036 (gate_pre): Do not turn off all of PRE when not optimizing a
1037 function for speed.
1038
376da68e
KG
10392009-10-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1040
1041 * builtins.c (fold_builtin_cabs): Use validate_arg().
1042 (fold_builtin_cexp): Fix if-logic.
1043 (fold_builtin_1): Check subtype for BUILT_IN_CIMAG.
1044
d5b5b6bc
JL
10452009-10-22 Jeff Law <law@redhat.com>
1046
7da77407 1047 * ira-lives.c (process_single_reg_class_operands): Update the
d5b5b6bc
JL
1048 hard reg costs for all the hard registers desired by the
1049 single reg class operand.
1050
4fb296d9
RS
10512009-10-22 Richard Sandiford <rdsandiford@googlemail.com>
1052
1053 * simplify-rtx.c (simplify_replace_fn_rtx): Add a fallback case
1054 for rtxes that aren't handled specially.
1055
bd7960b1
RS
10562009-10-22 Richard Sandiford <rdsandiford@googlemail.com>
1057
1058 * rtl.h (shallow_copy_rtvec): Declare.
1059 * rtl.c (shallow_copy_rtvec): New function.
1060 * cselib.c (cselib_subst_to_values): Use it. Only modify an
1061 rtx field if the subrtx has changed.
1062
2a31793e
AS
10632009-10-22 Anatoly Sokolov <aesok@post.ru>
1064
1065 * config/m32c/m32c.c (m32c_function_value_regno_p): New function.
1066 (m32c_function_value): Make static, add new 'outgoing' argument.
1067 (m32c_libcall_value): Make static, add new 'fun' argument.
1068 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
2c9062e2 1069 * config/m32c/m32c.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
2a31793e
AS
1070 (FUNCTION_VALUE_REGNO_P): Redefine, use m32c_function_value_regno_p.
1071 * config/m32c/m32c-protos.h (m32c_function_value_regno_p): Declare.
1072 (m32c_function_value, m32c_libcall_value): Delete declaration.
1073
062eee1e
DN
10742009-10-22 Diego Novillo <dnovillo@google.com>
1075
7da77407 1076 * Makefile.in (PLUGIN_HEADERS): Add output.h and IPA_UTILS_H.
062eee1e 1077
6d8752c4 10782009-10-22 Razya Ladelsky <razya@il.ibm.com>
7e06c3d6 1079
7da77407
EB
1080 * tree-cfg.c (gimple_duplicate_sese_tail): Fix typos/indentation/white
1081 space.
6d8752c4 1082
2c928155
RG
10832009-10-22 Richard Guenther <rguenther@suse.de>
1084
1085 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Declare.
1086 * lto-symtab.c (struct lto_symtab_entry_def): Add node member.
1087 (lto_symtab_merge): Do not merge cgraph nodes here.
1088 (lto_symtab_resolve_can_prevail_p): Simplify.
1089 (lto_symtab_resolve_symbols): Store cgraph node.
1090 (lto_symtab_merge_decls_1): Simplify. Do not drop non-prevailing
1091 functions from the symtab.
1092 (lto_symtab_merge_cgraph_nodes_1): New function.
1093 (lto_symtab_merge_cgraph_nodes): Likewise.
1094
ea989a1f
RG
10952009-10-22 Richard Guenther <rguenther@suse.de>
1096
1097 PR lto/41791
1098 * lto-streamer-out.c (lto_output_location): Stream the
1099 system header flag.
1100 * lto-streamer-in.c (lto_input_location): Likewise.
1101
48710229 11022009-10-22 Razya Ladelsky <razya@il.ibm.com>
2c9062e2
UB
1103
1104 * cfgloopmanip.c (duplicate_subloops): Export.
48710229 1105 * tree-parloops.c (loop_parallel_p): Dump if loop is innermost.
2c9062e2 1106 (transform_to_exit_first_loop): Duplicate bbs starting from
48710229
RL
1107 header up to loop->latch instead of exit->src.
1108 Initialize control variable to the correct number of iterations.
1109 (gather_scalar_reductions): Do not register double reductions.
2c9062e2
UB
1110 (parallelize_loops): Dump which loop is tested.
1111 Indicate whether the parallelized loop is inner or not.
48710229 1112 Remove the innermost-loop requirement.
2c9062e2 1113 * cfgloop.h (duplicate_subloops): Export.
48710229
RL
1114 * tree-cfg.c (add_phi_args_after_redirect): New function.
1115 (gimple_duplicate_sese_tail): Remove the no-subloops constraint.
1116 Call duplicate_subloops.
1117 Update number of iterations at the exit condition.
1118 Don't redirect nexits always to the loop exit.
1119 Redirect copied edges from latch to the loop exit.
48710229 1120
0d4958d0
JH
11212009-10-22 Jan Hubicka <jh@suse.cz>
1122
1123 * ipa-cp.c (ipcp_read_summary): Remove now invalid FIXME and
1124 flag_ltrans check.
1125 * ipa-inline.c (cgraph_mark_inline_edge,
1126 cgraph_decide_inlining_of_small_function,
2c9062e2
UB
1127 cgraph_decide_inlining, inline_read_summary): Disable indirect
1128 inlining for WPA for time being.
0d4958d0 1129
7e06c3d6 1130 PR tree-optimize/40556
0d4958d0
JH
1131 * ipa-inline.c (cgraph_early_inlining): Fix iterations condition.
1132
f9c91f8a
RB
11332009-10-22 Richard Guenther <rguenther@suse.de>
1134
1135 * lto-streamer.h (lto_symtab_clear_resolution): Remove.
1136 * lto-symtab.c (lto_symtab_clear_resolution): Likewise.
1137
c59f5d1b
JH
11382009-10-22 Jan Hubicka <jh@suse.cz>
1139
0d4958d0 1140 PR lto/41730
f9c91f8a
RB
1141 * ipa-reference.c (has_proper_scope_for_analysis): Add fixme about
1142 global vars.
1143 (check_call): Handle only indirect calls.
1144 (propagate_bits): Update comment.
1145 (write_node_summary_p): Turn bogus check to assert.
1146 (ipa_reference_write_summary): Stream calls_read_all properly.
1147 (ipa_reference_read_summary): Stream in calls_read_all properly.
1148 (read_write_all_from_decl): New function.
1149 (propagate): Handle OVERWRITABLE nodes and external calls here.
2c9062e2
UB
1150 * ipa-pre-const.c (check_call): In IPA mode handle indirect
1151 calls only.
f9c91f8a
RB
1152 (analyze_function): Do not check visibility here.
1153 (add_new_function): We summary OVERWRITABLE too.
1154 (generate_summary): Stream OVERWRITABLE nodes too.
1155 (propagate): Handle external calls and OVERWRITABLE nodes here.
1156 (local_pure_const): Check visibility here.
c59f5d1b 1157
fb3f88cc
JH
11582009-10-22 Jan Hubicka <jh@suse.cz>
1159
1160 * ipa-cp.c (ipcp_write_summary, ipcp_read_summary): New functions.
1161 (pass_ipa_cp): Register them.
1162 (ipcp_init_stage): Analyze all functions for whopr/lto.
1163 (ipcp_propagate_stage): Skip external calls.
1164 (ipcp_iterate_stage): Call ipa_update_after_lto_read if needed.
2c9062e2
UB
1165 * ipa-reference.c (write_node_summary_p): Fix thinko about
1166 availability.
fb3f88cc 1167 * cgraphunit.c (ipa_passes): When in lto, ne er produce new summaries;
2c9062e2
UB
1168 when in ltrans, skip executing of ipa passes since everything
1169 should've been done.
fb3f88cc
JH
1170 * ipa-inline.c (cgraph_decide_inlining): Remove FIXMEs.
1171 (inline_generate_summary): Likewise.
1172 (inline_read_summary): New function.
1173 (inline_write_summary): New function.
1174 (pass_ipa_inline): Register new hooks.
1175 * ipa-prop.c: Inlcude lto-streamer.h
1176 (ipa_edge_args_vector): Update declaration.
1177 (ipa_count_arguments, ipa_compute_jump_functions,
1178 ipa_free_edge_args_substructures): Move ipa_edge_args_vector into ggc.
1179 (ipa_write_jump_function, ipa_read_jump_function, ipa_write_node_info,
1180 ipa_read_node_info): New static functions.
1181 (ipa_prop_write_jump_functions, ipa_prop_read_jump_functions): Update.
1182 (duplicate_array): Use xmalloc.
1183 (duplicate_ggc_array): New.
1184 (ipa_edge_duplication_hook): Use it.
1185 (ipa_update_after_lto_read): New function.
1186 * ipa-prop.h (ipa_prop_write_jump_functions,
1187 ipa_prop_read_jump_functions): Declare.
1188 (ipa_pass_through_data, ipa_ancestor_jf_data, ipa_member_ptr_cst,
1189 jump_func_value, ipa_member_ptr_cst, ipa_edge_args): Add GTY markers.
1190 (ipa_edge_args_vector): Move into GGC.
1191 (ipa_check_create_edge_args): Update.
1192 (ipa_update_after_lto_read): New.
2c9062e2
UB
1193 * passes.c (ipa_write_summaries_1): When in wpa, do not write
1194 summaries.
fb3f88cc 1195 (ipa_read_summaries): When in ltrans, so not read summaries.
2c9062e2
UB
1196 * lto-streamer.c (lto_get_section_name): Add
1197 LTO_section_jump_functions.
fb3f88cc
JH
1198 * lto-streamer.h (LTO_section_jump_functions): New section.
1199 (produce_asm): Declare.
1200 * lto-cgraph.c (output_cgraph): Output edges in reverse order.
1201 * lto-streamer-out.c (produce_asm): Export.
1202 * lto-streamer-in.c: Include tree-pass.h
1203 (input_function): Free dominance info when done.
1204 (lto_read_body): Push ipa_inline in ltrans stage.
1205 * gengtype.c (open_base_files): Add ipa-prop.h into includes.
1206 * Makefile.in (GTFILES): Add ipa-prop.h
1207
34677bae
MK
12082009-10-22 Matthias Klose <doko@ubuntu.com>
1209
1210 * doc/install.texi: Document --enable-browser-plugin.
1211
7e1e7d4c
VM
12122009-10-21 Vladimir Makarov <vmakarov@redhat.com>
1213
1214 * doc/invoke.texi (fira-loop-pressure): Update default value.
1215 * opts.c (decode_options): Remove default value setting for
1216 flag_ira_loop_pressure.
1217 * config/ia64/ia64.c (ia64_override_options): Set
1218 flag_ira_loop_pressure up for -O3.
1219 * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
2c9062e2 1220
f29deac9
SP
12212009-10-21 Sebastian Pop <sebastian.pop@amd.com>
1222
1223 PR tree-optimization/41497
1224 * tree-scalar-evolution.c (analyze_evolution_in_loop): Return
1225 chrec_dont_know if the evolution function returned by follow_ssa_edge
1226 is constant in the analyzed loop and is not compatible with the
1227 initial value before the loop.
1228 * tree-chrec.h (no_evolution_in_loop_p): Call STRIP_NOPS.
1229
58f451f0
JM
12302009-10-21 Joseph Myers <joseph@codesourcery.com>
1231
1232 * config/sh/sh.c (nonpic_symbol_mentioned_p): Allow UNSPEC_TPOFF.
1233
de55f03a
JJ
12342009-10-21 Jakub Jelinek <jakub@redhat.com>
1235
1236 PR other/25507
1237 * doc/invoke.texi: Document -print-multi-os-directory.
1238
47f447b1
JH
12392009-10-21 Jack Howarth <howarth@bromo.med.uc.edu>
1240
1241 PR c++/41313
1242 * gcc/config/darwin10.h: Use default_emit_unwind_label.
1243 * gcc/config/darwin.c: Disable -freorder-blocks-and-partition
1244 when darwin_emit_unwind_label is used.
1245
59a05b0c
EB
12462009-10-21 Eric Botcazou <ebotcazou@adacore.com>
1247
1248 * tree-vect-stmts.c (exist_non_indexing_operands_for_use_p): Tweak
1249 order of checks.
1250
288f5b2e
RH
12512009-10-20 Richard Henderson <rth@redhat.com>
1252
1253 * tree-eh.c (lower_try_finally_copy): Do lower_eh_constructs_1
1254 before emit_post_landing_pad.
1255
53d66977
AN
12562009-10-20 Adam Nemet <anemet@caviumnetworks.com>
1257
1258 * config/mips/mips.c (mips_binary_cost): Add new argument speed.
1259 Use when calling rtx_costs.
1260 (mips_rtx_costs): Fix formatting. Use argument speed rather than the
1261 global optimize_size. Pass speed to mips_binary_cost.
1262
ddd0c781
JJ
12632009-10-20 Jakub Jelinek <jakub@redhat.com>
1264
1265 * config/rs6000/rs6000.c (def_builtin): Set TREE_READONLY instead
1266 of TREE_CONSTANT.
1267
3af4ba41
RS
12682009-10-20 Richard Sandiford <rdsandiford@googlemail.com>
1269
1270 * rtl.h (simplify_replace_fn_rtx): Declare.
1271 (wrap_constant, unwrap_constant): Delete.
1272 * cfgexpand.c (unwrap_constant, wrap_constant): Delete.
1273 (expand_debug_expr): Don't call wrap_constant.
1274 * combine.c (rtx_subst_pair): Only define for AUTO_INC_DEC.
1275 (auto_adjust_pair): Fold into...
1276 (propagate_for_debug_subst): ...here. Only define for AUTO_INC_DEC.
1277 Just return a new value.
1278 (propagate_for_debug): Use simplify_replace_fn_rtx for AUTO_INC_DEC,
1279 otherwise use simplify_replace_rtx.
1280 * cselib.c (wrap_constant): Reinstate old definition.
1281 (cselib_expand_value_rtx_1): Don't wrap constants.
1282 * gcse.c (try_replace_reg): Don't use copy_rtx in the call to
1283 simplify_replace_rtx.
1284 (bypass_block): Fix formatting in calls to simplify_replace_rtx.
1285 * reload1.c (reload): Skip all uses for an insn before adjusting it.
1286 Use simplify_replace_rtx.
1287 * simplify-rtx.c (simplify_replace_fn_rtx): New function,
1288 adapted from...
1289 (simplify_replace_rtx): ...here. Turn into a wrapper for
1290 simplify_replace_fn_rtx.
1291 (simplify_unary_operation): Don't unwrap CONSTs.
1292 * var-tracking.c (check_wrap_constant): Delete.
1293 (vt_expand_loc_callback): Don't call it.
1294 (vt_expand_loc): Likewise.
1295
5c9ffc86
PO
12962009-10-20 Pascal Obry <obry@adacore.com>
1297 Eric Botcazou <ebotcazou@adacore.com>
1298
1299 * config/i386/cygming.h (DWARF_FRAME_REGNUM): Add enclosing parens.
1300
1578e910
MM
13012009-10-20 Michael Matz <matz@suse.de>
1302
1303 * loop-invariant.c (create_new_invariant): Use different magic number.
1304
70041f8a
RE
13052009-10-20 Richard Earnshaw <rearnsha@arm.com>
1306
1307 PR target/39247
1308 * arm.c (arm_override_options): Forcibly disable hot/cold block
1309 partitioning.
1310
8ee2bec9
AO
13112009-10-20 Alexandre Oliva <aoliva@redhat.com>
1312
1313 PR debug/41739
1314 * haifa-sched.c (try_ready): Skip debug deps updating speculation
1315 status.
1316
b78cd885
RG
13172009-10-20 Richard Guenther <rguenther@suse.de>
1318
1319 * ggc-page.c: Include cfgloop.h.
1320 (struct max_alignment): Drop long double, add void *.
1321 (extra_order_size_table): Add low non-power-of-two multiples
1322 of MAX_ALIGNMENT. Drop small type-based entries, add
1323 tree_type, cgraph_node and loop.
1324 * alloc-pool.c (struct allocation_object_def): Drop long double
1325 aligning element.
1326
dd8c071d
JJ
13272009-10-20 Jakub Jelinek <jakub@redhat.com>
1328
1329 PR debug/41340
1330 * loop-invariant.c (calculate_loop_reg_pressure): Don't count regs
1331 referenced just in DEBUG_INSNs.
1332
20d36f0e
RG
13332009-10-20 Richard Guenther <rguenther@suse.de>
1334
1335 PR lto/41761
1336 * gimple.c (gimple_register_type): Make sure we register
1337 the types main variant first.
1338
b0cc341f
RG
13392009-10-20 Richard Guenther <rguenther@suse.de>
1340
1341 * gimple.c (gimple_types_compatible_p): Simplify. Move
1342 cheap checks before hashtable queries. Add checks for
1343 TYPE_NONALIASED_COMPONENT and DECL_NONADDRESSABLE_P.
1344
a1aa1701
EB
13452009-10-20 Eric Botcazou <ebotcazou@adacore.com>
1346
1347 * tree-sra.c (build_ref_for_offset_1) <RECORD_TYPE>: Skip fields
1348 without size or with size that can't be represented as a host integer.
1349
717f4048
AO
13502009-10-20 Alexandre Oliva <aoliva@redhat.com>
1351
1352 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't regard
1353 the removal of a debug stmt as a significant change.
1354
421b1e6b
WG
13552009-10-20 Wolfgang Gellerich <gellerich@de.ibm.com>
1356
1357 * config/s390/s390.md: Added agen condition to operand
2c9062e2
UB
1358 forwarding bypasses. Added bypass for early address generation
1359 use of int results. Updated comments.
421b1e6b 1360
bd62d832
SD
13612009-10-20 Stefan Dösinger <stefan@codeweavers.com>
1362
1363 * config/i386/i386.c: Remove signal.h #include.
1364
91c29f68
JZ
13652009-10-20 Jie Zhang <jie.zhang@analog.com>
1366
bd62d832 1367 * simplify-rtx.c (simplify_const_unary_operation): Handle SS_ABS.
91c29f68
JZ
1368 * doc/rtl.texi: Document ss_abs.
1369
2c6e3f55
JJ
13702009-10-19 Jakub Jelinek <jakub@redhat.com>
1371
1372 * c-common.c (c_parse_error): Handle CPP_UTF8STRING.
1373 * c-lex.c (c_lex_with_flags): Likewise. Test C_LEX_STRING_NO_JOIN
1374 instead of C_LEX_RAW_STRINGS.
1375 (lex_string): Handle CPP_UTF8STRING.
1376 * c-parser.c (c_parser_postfix_expression): Likewise.
1377 * c-pragma.h (C_LEX_RAW_STRINGS): Rename to ...
1378 (C_LEX_STRING_NO_JOIN): ... this.
1379
4d696ad0
AS
13802009-10-19 Anatoly Sokolov <aesok@post.ru>
1381
1382 * config/cris/cris.c (cris_function_value, cris_libcall_value,
1383 cris_function_value_regno_p): New functions.
1384 (cris_promote_function_mode): Update comment.
1385 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
bd62d832 1386 * config/cris/cris.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
4d696ad0
AS
1387 (FUNCTION_VALUE_REGNO_P): Redefine, use cris_function_value_regno_p.
1388 * config/cris/cris-protos.h (cris_function_value_regno_p): Declare.
1389
4793ad6b
JJ
13902009-10-19 Jakub Jelinek <jakub@redhat.com>
1391
1392 * unwind-dw2.c (execute_stack_op): Fix operand order for
1393 DW_OP_le, DW_OP_ge, DW_OP_lt and DW_OP_gt.
1394
a141816c
EB
13952009-10-19 Eric Botcazou <ebotcazou@adacore.com>
1396
1397 * gimple-low.c (struct lower_data): Add cannot_fallthru field.
1398 (lower_stmt) <GIMPLE_BIND>: Add comment.
1399 <GIMPLE_COND, GIMPLE_GOTO, GIMPLE_SWITCH>: Set cannot_fallthru to true
1400 and return.
1401 <GIMPLE_RETURN>: Remove the statement if cannot_fallthru is set.
1402 Otherwise lower it and set cannot_fallthru to true.
1403 <GIMPLE_TRY>: Update cannot_fallthru for GIMPLE_TRY_FINALLY and return.
bd62d832 1404 <GIMPLE_CATCH, GIMPLE_EH_FILTER>: Set cannot_fallthru to false.
a141816c
EB
1405 <GIMPLE_CALL>: Set cannot_fallthru to false for BUILT_IN_SETJMP and
1406 to true for a noreturn call. Do not remove statements.
1407 <GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TASK>: Set cannot_fallthru to false.
1408 Set cannot_fallthru to false on function exit.
1409 (gimple_stmt_may_fallthru) <GIMPLE_SWITCH>: Really return false.
1410 <GIMPLE_ASSIGN>: Remove.
1411
2dfdbf2b
AK
14122009-10-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1413
1414 * config/s390/s390.c (s390_z10_optimize_cmp): Don't touch FP compares.
1415
33ab2bd4
AK
14162009-10-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1417
1418 * config/s390/s390.c (s390_z10_optimize_cmp): Use
1419 next/prev_active_insn to skip DEBUG_INSNs as well.
1420
5728868b
JM
14212009-10-19 Joseph Myers <joseph@codesourcery.com>
1422
1423 * config/arm/arm.c (output_move_neon): Use DImode in call to
1424 adjust_address.
1425
d23a7734
MK
14262009-10-19 Matthias Klose <doko@ubuntu.com>
1427
1428 PR target/40134
1429 * config.gcc (arm*-*-linux-*eabi): Use config/t-slibgcc-libgcc.
1430
2d3fc6aa
JJ
14312009-10-19 Jakub Jelinek <jakub@redhat.com>
1432
bd62d832 1433 * cfgexpand.c (expand_debug_expr): Fail if bitpos < 0 for non-MEM op0.
2d3fc6aa
JJ
1434
14352009-10-17 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
db826dae
AH
1436
1437 PR middle-end/41738
1438 * optabs.c (expand_binop): Make mode of shift count expression mode
1439 of shift count not target.
1440 Remove indent nit.
1441
d79c2936
EB
14422009-10-17 Eric Botcazou <ebotcazou@adacore.com>
1443
1444 * tree-nested.c (convert_nonlocal_reference_stmt) <GIMPLE_COND>: New
1445 case. Force using values to replace references within the statement.
1446 (convert_local_reference_stmt): Likewise.
1447
79ddec02
EB
14482009-10-17 Eric Botcazou <ebotcazou@adacore.com>
1449
1450 * gimple-low.c (lower_stmt) <GIMPLE_CALL>: If the call is noreturn,
1451 remove a subsequent GOTO or RETURN statement.
1452
7e90b362
AH
14532009-10-17 Andy Hutchinson <hutchinsonandy@aim.com>
1454
1455 * config/avr.md (*movqi): Add zero as equally preferable constraint
1456 as general register.
79ddec02 1457 (*movhi): Ditto.
7e90b362 1458
79ddec02 14592009-10-17 Eric Botcazou <ebotcazou@adacore.com>
1ee41d43
EB
1460
1461 * print-tree.c (print_node): Fix string for DECL_STRUCT_FUNCTION.
1462
b7dae211
RG
14632009-10-17 Richard Guenther <rguenther@suse.de>
1464
bd62d832 1465 * lto-streamer-in.c (lto_input_location): Try to reuse previous maps.
b7dae211 1466
57e4ba84
RG
14672009-10-17 Richard Guenther <rguenther@suse.de>
1468
1469 * lto-streamer-in.c (input_gimple_stmt): Fixup FIELD_DECL
1470 operands in COMPONENT_REFs.
1471
7fc6a96b
AS
14722009-10-17 Anatoly Sokolov <aesok@post.ru>
1473
1474 * targhooks.c (default_libcall_value): Don't use LIBCALL_VALUE macro
1475 if not defined. Change type of second argument to const_rtx.
1476 (default_function_value): Call gcc_unreachable if FUNCTION_VALUE
1477 macro not defined.
1478 * targhooks.h (default_libcall_value): Update prototype.
1479 * target.h (struct gcc_target): Change type of second argument of
1480 libcall_value to const_rtx.
1481 * config/arm/arm.c (arm_libcall_value): Change type of second argument
1482 to const_rtx.
1483 (arm_libcall_uses_aapcs_base): Change type of argument to const_rtx.
1484 * doc/tm.texi (TARGET_LIBCALL_VALUE): Revise documentation.
1485
3df9609a
JJ
14862009-10-17 Jakub Jelinek <jakub@redhat.com>
1487
1488 PR debug/40521
1489 * debug.h (struct gcc_debug_hooks): Add assembly_start hook.
1490 * cgraphunit.c (cgraph_optimize): Call it.
1491 * dwarf2out.c (dwarf2out_init): Move .cfi_sections printing into...
1492 (dwarf2out_assembly_start): ... here. New hook.
1493 (dwarf2out_debug_hooks): Add dwarf2out_assembly_start.
1494 * debug.c (do_nothing_debug_hooks): Do nothing for assembly_start
1495 hook.
1496 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
1497 * sdbout.c (sdb_debug_hooks): Likewise.
1498 * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_assembly_start.
1499 (vmsdbgout_assembly_start): New hook.
1500
15f01e4a
AO
15012009-10-17 Alexandre Oliva <aoliva@redhat.com>
1502
1503 * rtl.h (RTL_LOCATION): Fix typo.
1504
da1e1503
AO
15052009-10-17 Alexandre Oliva <aoliva@redhat.com>
1506
1507 * print-rtl.c (print_rtx): Print locators in asm_operands
1508 and asm_input.
1509
f49b295a
AO
15102009-10-17 Alexandre Oliva <aoliva@redhat.com>
1511
1512 PR debug/41535
1513 * sched-deps.c (depl_on_debug_p): New.
1514 (attach_dep_link): Reject debug deps before nondebug deps.
1515 (add_to_deps_list): Insert debug deps after nondebug deps.
1516 (sd_lists_empty_p): Stop at first nonempty list. Disregard debug
1517 deps.
1518 (sd_add_dep): Do not reject debug deps.
1519 (add_insn_mem_dependence): Don't count debug deps.
1520 (remove_from_deps): Likewise.
1521 (sched_analyze_2): Set up mem deps on debug insns.
1522 (sched_analyze_insn): Record reg uses for deps on debug insns.
1523 * haifa-sched.c (schedule_insn): Reset deferred debug insn. Don't
1524 try_ready nondebug insn after debug insn.
1525 * ddg.c (create_ddg_dep_from_intra_loop_link,
1526 create_ddg_dep_no_link): Don't reject debug deps.
1527
e575382e
RG
15282009-10-16 Richard Guenther <rguenther@suse.de>
1529
1530 * lto-symtab.c (merge_incomplete_and_complete_type): Remove.
1531 (maybe_merge_incomplete_and_complete_type): Likewise.
1532 (lto_symtab_merge): Do not call them. Do not warn for
1533 complete vs. incomplete compatible types.
1534 (lto_symtab_merge_decls_2): Simplify.
1535 * gimple.c (gimple_force_type_merge): Remove.
1536 (gimple_types_compatible_p): Make it static.
1537 * gimple.h (gimple_force_type_merge): Remove.
1538 (gimple_types_compatible_p): Likewise.
1539
3b24c708
JJ
15402009-10-16 Jakub Jelinek <jakub@redhat.com>
1541
1542 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Cast
1543 DWARF2_ADDR_SIZE to int to avoid signed vs. unsigned warnings.
1544
076ba157
RG
15452009-10-16 Richard Guenther <rguenther@suse.de>
1546
1547 PR tree-optimization/41728
1548 * tree-ssa-dom.c (optimize_stmt): Mark the stmt modified
1549 if fold_stmt did anything.
1550
35f1e9f4
RG
15512009-10-16 Richard Guenther <rguenther@suse.de>
1552
1553 PR lto/41715
1554 * lto-streamer-in.c (lto_input_tree_ref): Revert last change.
1555 (maybe_fixup_handled_component): New function.
1556 (input_gimple_stmt): Fixup mismatched decl replacements.
1557
775dc670
RG
15582009-10-16 Richard Guenther <rguenther@suse.de>
1559
1560 PR lto/41713
1561 * lto-streamer-out.c (lto_output_tree_ref): Handle DEBUG_EXPR_DECL
1562 the same as VAR_DECL.
1563
f798226d
RG
15642009-10-16 Richard Guenther <rguenther@suse.de>
1565
1566 * gimple.c (iterative_hash_gimple_type): For integer types
1567 also hash their minimum and maximum values and the string flag.
1568 For array types hash their domain and the string flag.
1569
021ed367
RG
15702009-10-16 Richard Guenther <rguenther@suse.de>
1571
1572 * gimple.c (gimple_types_compatible_p): Restrict completing
1573 types to record or unions. Simplify completion.
1574 Do not merge records or unions with different
1575 TYPE_STRUCTURAL_EQUALITY_P tag.
1576 (iterative_hash_gimple_type): Restrict non-recursing into
1577 pointer targets for records and unions.
1578
d02a5a4b
JJ
15792009-10-15 Jakub Jelinek <jakub@redhat.com>
1580
1581 PR debug/41717
1582 * cfgexpand.c (expand_debug_expr): Handle CONJ_EXPR.
1583 * dwarf2out.c (mem_loc_descriptor): Don't handle
1584 POST_INT/POST_DEC/POST_MODIFY like SUBREG. For SUBREG
1585 punt if it is not lowpart subreg or if inner mode isn't
1586 MODE_INT.
1587
200ab6fd
AK
15882009-10-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1589
1590 * config/s390/s390.c (s390_z10_optimize_cmp): Skip notes when
1591 investigating previous or next insns.
1592
d7c79c4d
EB
15932009-10-16 Eric Botcazou <ebotcazou@adacore.com>
1594
1595 * tree-sra.c (build_ref_for_offset_1): Update comment.
1596
c68e7b86
WG
15972009-10-16 Wolfgang Gellerich <gellerich@de.ibm.com>
1598
1599 * config/s390/s390.md (atype): Added missing values.
1600
b1978a90
JDA
16012009-10-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1602
1603 PR target/41702
bd62d832 1604 * pa.md (casesi): Use sign extended index in call to gen_casesi64p.
b1978a90
JDA
1605 (casesi64p): Update pattern to reflect above.
1606
4b2e464e
SE
16072009-10-15 Steve Ellcey <sje@cup.hp.com>
1608
1609 PR rtl-optimization/41697
1610 * sel-sched-ir.h (_eligible_successor_edge_p): Check successor count.
1611
1c9df37c
MM
16122009-10-15 Michael Meissner <meissner@linux.vnet.ibm.com>
1613
1614 PR target/23983
1615 * config/rs6000/predicates.md: Update copyright year.
1616 * config/rs6000/altivec.md: Ditto.
2c9062e2 1617
1c9df37c
MM
1618 * config/rs6000/t-rs6000 (TM_H): Add rs6000-builtin.def.
1619 (MD_INCLUDES): Add a2.md.
2c9062e2 1620
1c9df37c
MM
1621 * config/rs6000/rs6000.c (rs6000_builtin_decls): Change
1622 RS6000_BUILTIN_COUNT to MAX_RS6000_BUILTINS.
1623 (builtin_classify): New static vector to classify various builtins
1624 to get the tree attributes correct.
1625 (def_builtin): Set the attributes of builtins based on what the
1626 builtin does (i.e. memory operation, floating point, saturation
1627 need special attributes, others are pure functions).
1628
1629 * config/rs6000/rs6000.h (enum rs6000_btc): New enum to classify
1630 the builtins.
1631 (enum rs6000_builtins): Include rs6000-builtin.def to define the
1632 builtins. Change the end marker to MAX_RS6000_BUILTINS from
1633 RS6000_BUILTIN_COUNT.
1634 (rs6000_builtin_decls): Change RS6000_BUILTIN_COUNT to
1635 MAX_RS6000_BUILTINS.
1636
1637 * config/rs6000/rs6000-builtin.def: New file that combines the
1638 builtin enumeration name and attributes.
1639
9017096f
L
16402009-10-15 H.J. Lu <hongjiu.lu@intel.com>
1641
1642 * config/i386/linux.h (ASM_SPEC): Add --32.
1643
7613143b
JJ
16442009-10-15 Jakub Jelinek <jakub@redhat.com>
1645
1646 * dwarf2out.c (dwarf_tag_name): Handle DW_TAG_rvalue_reference_type
1647 and DW_TAG_template_alias.
1648 (dwarf_attr_name): Handle DW_AT_main_subprogram,
1649 DW_AT_data_bit_offset, DW_AT_const_expr, DW_AT_enum_class,
1650 DW_AT_linkage_name, DW_AT_GNU_guarded_by, DW_AT_GNU_pt_guarded_by,
1651 DW_AT_GNU_guarded, DW_AT_GNU_pt_guarded, DW_AT_GNU_locks_excluded,
1652 DW_AT_GNU_exclusive_locks_required, DW_AT_GNU_shared_locks_required
1653 and DW_AT_GNU_odr_signature.
1654 (dwarf_form_name): Handle DW_FORM_sec_offset, DW_FORM_exprloc,
1655 DW_FORM_flag_present and DW_FORM_ref_sig8.
1656 (output_signature): Only print name on the first byte.
1657 (output_die): Likewise for dw_val_class_data8.
1658
83bb5ce3
AM
16592009-10-15 Alexander Monakov <amonakov@ispras.ru>
1660
1661 * doc/invoke.texi: Clarify that most optimizations are not enabled
1662 without -O.
1663
77785f4f
RG
16642009-10-15 Richard Guenther <rguenther@suse.de>
1665
1666 PR lto/41668
1667 * gimple.c (compare_type_names_p): Handle anonymous names
1668 differently based on new mode argument.
1669 (gimple_types_compatible_p): For structs also compare the tags.
1670 (iterative_hash_type_name): Rename to ...
1671 (iterative_hash_name): ... this. Hash all names.
1672 (iterative_hash_gimple_type): Fix hashing the struct tag of
1673 pointer targets. Hash field decl names.
1674
4c8160e7
RG
16752009-10-15 Richard Guenther <rguenther@suse.de>
1676
1677 PR lto/41669
1678 * gimple.c (gimple_get_alias_set): Avoid recursing on
1679 invalid type topology.
1680
3f254607
AP
16812009-10-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
1682
1683 * config/spu/spu.c (get_branch_target): Use extract_asm_operands.
1684
23503efc
RG
16852009-10-15 Richard Guenther <rguenther@suse.de>
1686
1687 * tree.c (free_lang_data_in_decl): Free DECL_FCONTEXT.
1688
b44dd043
JJ
16892009-10-15 Jakub Jelinek <jakub@redhat.com>
1690
1691 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Don't
1692 add --with-tune{,-32,-64} configured default for -mtune if explicit
1693 -mcpu is used.
1694
f67c7a8f
DG
16952009-10-14 Daniel Gutson <dgutson@codesourcery.com>
1696
bd62d832 1697 * config/arm/neon.md (neon_vshll_n<mode>): Checking Bounds fixed.
f67c7a8f 1698
18674659 16992009-10-14 DJ Delorie <dj@redhat.com>
2c9062e2 1700
18674659
DD
1701 * config/h8300/h8300.c (F): New.
1702 (Fpa): New.
1703 (h8300_emit_stack_adjustment): Call them.
1704 (push): Likewise.
1705 (h8300_push_pop): Likewise.
1706 (h8300_expand_prologue): Likewise.
1707 * config/h8300/h8300.h (DWARF2_DEBUGGING_INFO): Define.
1708 (MUST_USE_SJLJ_EXCEPTIONS): Define.
1709 (INCOMING_RETURN_ADDR_RTX): Define.
1710 (INCOMING_FRAME_SP_OFFSET): Define.
1711 (DWARF_CIE_DATA_ALIGNMENT): Define.
1712
4c0a0455
JJ
17132009-10-14 Jakub Jelinek <jakub@redhat.com>
1714
1715 * stor-layout.c (place_field): Don't emit -Wpadded warnings for
1716 fields in builtin structs.
1717 (finalize_record_size): Likewise.
1718
88ca1146
RG
17192009-10-14 Richard Guenther <rguenther@suse.de>
1720
1721 * gimple.c (gtc_ob): New global.
1722 (struct type_pair_d): Replace pointers with type UIDs.
1723 (type_pair_hash): Adjust.
1724 (type_pair_eq): Likewise.
1725 (lookup_type_pair): Likewise. Allocate from an obstack.
1726 (gimple_force_type_merge): Adjust.
1727 (gimple_types_compatible_p): Likewise.
1728 (free_gimple_type_tables): Free the obstack.
1729
4f2a9af8
JJ
17302009-10-14 Jakub Jelinek <jakub@redhat.com>
1731
1732 * tree-parloops.c (separate_decls_in_region_debug_bind): Drop debug
1733 stmts setting DEBUG_EXPR_DECLs.
1734
1735 * cfgexpand.c (expand_debug_expr): Ignore zero-length bitfields.
1736 Don't crash if mode1 is VOIDmode.
1737
1833192f
VM
17382009-09-26 Vladimir Makarov <vmakarov@redhat.com>
1739
1740 * params.def (PARAM_IRA_LOOP_RESERVED_REGS): New.
bd62d832 1741 * params.h (IRA_LOOP_RESERVED_REGS): New.
1833192f
VM
1742 * tree-pass.h (pass_subregs_of_mode_init,
1743 pass_subregs_of_mode_finish): Remove.
1744 * passes.c (pass_subregs_of_mode_init,
1745 pass_subregs_of_mode_finish): Remove.
1746 (pass_reginfo_init): Move before loop optimizations.
1747 * config/i386/i386.h (STACK_REG_COVER_CLASS): Define.
1748 * common.opt (fira-loop-pressure): New.
1749 * toplev.h (flag_ira_loop_pressure): New.
bd62d832 1750 * rtl.h (init_subregs_of_mode, finish_subregs_of_mode): New externals.
1833192f
VM
1751 * reginfo.c (init_subregs_of_mode, finish_subregs_of_mode):
1752 Make external and void type functions.
1753 (gate_subregs_of_mode_init, pass_subregs_of_mode_init,
1754 pass_subregs_of_mode_finish): Remove.
1755 * ira-costs.c (init_costs): Call init_subregs_of_mode.
1756 * regmove.c: Include ira.h.
1757 (regmove_optimize): Call ira_set_pseudo_classes after IRA based
1758 register pressure calculation in loops.
1759 * loop-invariant.c: Include REGS_H and ira.h.
1760 (struct loop_data): New members max_reg_pressure, regs_ref, and
1761 regs_live.
1762 (struct invariant): New member orig_regno.
1763 (curr_loop): New variable.
1764 (find_exits): Initialize regs_ref and regs_live.
1765 (create_new_invariant): Initialize orig_regno.
1766 (get_cover_class_and_nregs): New.
1767 (get_inv_cost): Make aregs_needed an array. Use regs_needed as an
1768 array. Add code for flag_ira_loop_pressure.
1769 (gain_for_invariant): Make new_regs an array. Add code for
1770 flag_ira_loop_pressure.
1771 (best_gain_for_invariant): Ditto.
1772 (set_move_mark): New parameter gain. Use it for debugging output.
1773 (find_invariants_to_move): Make regs_needed and new_regs an array.
1774 Add code for flag_ira_loop_pressure.
1775 (move_invariant_reg): Set up orig_regno.
1776 (move_invariants): Set up reg classes for pseudos for
1777 flag_ira_loop_pressure.
1778 (free_loop_data): Clear regs_ref and regs_live.
1779 (curr_regs_live, curr_reg_pressure, regs_set, n_regs_set,
1780 get_regno_cover_class, change_pressure, mark_regno_live,
1781 mark_regno_death, mark_reg_store, mark_reg_clobber,
1782 mark_reg_death, mark_ref_regs, calculate_loop_reg_pressure): New.
1783 (move_loop_invariants): Calculate pressure. Initialize curr_loop.
1784 * ira.c (ira): Call ira_set_pseudo_classes after IRA based
1785 register pressure calculation in loops if new regs were added.
1786 Call finish_subregs_of_mode.
1787 * opts.c (decode_options): Set up flag_ira_loop_pressure.
1788 * Makefile.in (loop-invariant.o): Add ira.h.
1789 (regmove.o): Ditto.
1790 * doc/invoke.texi (-fira-loop-pressure, ira-loop-reserved-regs):
1791 Describe.
1792 * doc/tm.texi (STACK_REG_COVER_CLASS): Describe.
2c9062e2 1793
200c8750
RG
17942009-10-14 Richard Guenther <rguenther@suse.de>
1795
1796 * lto-symtab.c (lto_symtab_compatible): Fold in ...
1797 (lto_symtab_merge): ... here. Rewrite both to take the
bd62d832 1798 prevailing and a to-be-merged entry and to queue diagnostics properly.
200c8750
RG
1799 (lto_symtab_resolve_replaceable_p): New predicate for
1800 symbol resolution.
1801 (lto_symtab_resolve_can_prevail_p): Likewise.
1802 (lto_symtab_resolve_symbols): Rewrite. Fold in code that
1803 handles merging commons by choosing the largest decl. Fold
1804 in code that gives ODR errors.
1805 (lto_symtab_merge_decls_2): Simplify a lot. Emit queued
1806 diagnostics here.
1807 (lto_symtab_merge_decls_1): Re-structure. Deal with the
1808 case of no prevailing decl here. Diagnose mismatches
1809 in object types here. Drop all but the prevailing decls.
1810 (lto_symtab_prevailing_decl): Return the single prevailing decl.
1811 * lto-streamer-in.c (lto_input_tree_ref): Deal with
1812 VIEW_CONVERT_EXPRs in decl slots. Unshare the tree in this case.
1813
77ce724c
RG
18142009-10-14 Richard Guenther <rguenther@suse.de>
1815
1816 PR lto/41521
1817 * lto-streamer-in.c (input_bb): Replace debug stmts with
1818 nops instead of dropping them.
1819
8ad1dde7
NC
18202009-10-14 Nick Clifton <nickc@redhat.com>
1821
bd62d832
SD
1822 * gcc/doc/extended.texi: Replace the dash character with @minus{}
1823 in situations where it is being used as a minus symbol.
8ad1dde7
NC
1824 * gcc/doc/tm.texi: Likewise.
1825 * gcc/doc/md.texi: Likewise.
1826
b29ee46c
JJ
18272009-10-14 Jakub Jelinek <jakub@redhat.com>
1828
96c169e1
JJ
1829 PR preprocessor/41543
1830 * input.h (BUILTINS_LOCATION): Change to 1 from 2.
1831 Assert BUILTINS_LOCATION < RESERVED_LOCATION_COUNT.
1832 * tree.c: Include intl.h.
1833 (expand_location): Handle BUILTINS_LOCATION.
1834 * Makefile.in (tree.o): Depend on intl.h.
1835
b29ee46c
JJ
1836 PR debug/41695
1837 * dwarf2out.c (dwarf2out_var_location): Always clear
1838 last_postcall_label when changing last_label.
1839
1b5bc8e9
PO
18402009-10-14 Pascal Obry <obry@adacore.com>
1841
1842 * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION): Add -E.
1843 (process_command): Handle -E as done with -c and -S. Do not add
1844 the target executable suffix to the output file when -E is used.
1845 (main): Adjust error message accordingly.
1846
a83f5409
AO
18472009-10-14 Alexandre Oliva <aoliva@redhat.com>
1848
1849 PR debug/41343
1850 PR debug/41447
1851 PR debug/41264
1852 PR debug/41338
1853 * tree.c (tree_node_structure_for_code): DEBUG_EXPR_DECL uses
1854 decl with rtl.
1855 (tree_code_size): Likewise.
1856
7610abd8
KG
18572009-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1858
1859 * builtins.c (fold_builtin_1): Support complex "arc" functions.
1860 * real.h (HAVE_mpc_arc): Define.
1861
1cc24576
KK
18622009-10-14 Kaz Kojima <kkojima@gcc.gnu.org>
1863
1864 * config/sh/sh.c (TARGET_BUILTIN_DECL): Define.
1865 (struct builtin_description): Add fndecl field.
1866 (bdesc): Remove const qualifier. Update initializer.
1867 (sh_media_init_builtins): Remove const qualifier for d. Record
1868 the result of add_builtin_function to the fndecl field.
1869 (sh_builtin_decl): New.
1870 (sh_media_builtin_decl): New.
1871
83907fdd
HPN
18722009-10-14 Hans-Peter Nilsson <hp@axis.com>
1873
1874 PR target/38948
1875 * config/cris/cris.h (SECONDARY_RELOAD_CLASS): Handle reload
1876 requests between special registers.
1877
0e081833
EB
18782009-10-13 Eric Botcazou <ebotcazou@adacore.com>
1879
1880 * dwarf2out.c (mem_loc_descriptor): Accept UNGT as well.
1881
d6063d7f
RH
18822009-10-13 Richard Henderson <rth@redhat.com>
1883
1884 PR tree-optimization/41377
1885 * tree-eh.c (unsplit_eh): Propagate degenerate PHIs.
1886 (cleanup_empty_eh_merge_phis): New change_region parameter;
1887 pass it on to redirect_eh_edge_1. Update callers.
1888 (cleanup_empty_eh_unsplit): Don't require an existing EH label
1889 at the destination block.
b9e467a2
BS
1890
18912009-10-13 Basile Starynkevitch <basile@starynkevitch.net>
d6063d7f
RH
1892
1893 * passes.c (register_pass): Replaced gcc_unreachable by
1894 fatal_error on failure. Mentions plugins in comments & messages.
b9e467a2 1895
e4fb38bd
JJ
18962009-10-13 Jakub Jelinek <jakub@redhat.com>
1897
1898 PR target/41693
1899 * rtl.h (DEBUG_EXPR_TREE_DECL): Define.
1900 * sched-vis.c (print_value): Use it.
1901 * cselib.c (cselib_hash_rtx): Likewise.
1902 * print-rtl.c (print_rtx): Likewise.
1903 * cfgexpand.c (expand_debug_rtx): Likewise.
1904 * var-tracking.c (vt_expand_loc_callback): Likewise.
1905
ab6218f1
RG
19062009-10-13 Richard Guenther <rguenther@suse.de>
1907
1908 PR lto/41565
1909 * opts.c (handle_option): Split out code to handle setting
1910 the options flag var ...
1911 (set_option): ... here.
1912 * opts.h (set_option): Declare.
1913 * lto-opts.c (register_user_option_p): Include -fexceptions
1914 and all position independent code variants.
1915 (handle_common_option): Remove.
1916 (lto_reissue_options): Use set_option.
1917
c4e5fe4b
MJ
19182009-10-13 Martin Jambor <mjambor@suse.cz>
1919
1920 PR tree-optimization/41661
1921 * ipa-prop.c (compute_complex_pass_through): Allow only operations
1922 that are tcc_comparisons or do not change the type in any
1923 un-usleless way.
1924 * ipa-cp.c (ipcp_lattice_from_jfunc): Request boolean type when
1925 folding tcc_comparison operations.
1926
35fcb6ba
AK
19272009-10-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1928
1929 * config/s390/s390.c (s390_encode_section_info): Handle BLKmode
1930 properly.
1931
0ca5af51
AO
19322009-10-12 Alexandre Oliva <aoliva@redhat.com>
1933
1934 PR debug/41343
1935 PR debug/41447
1936 PR debug/41264
1937 PR debug/41338
1938 * tree.def (DEBUG_EXPR_DECL): New.
1939 * rtl.def (DEBUG_EXPR): New.
1940 * gengtype.c (adjust_field_rtx_def): Handle it.
1941 * tree-ssa.c (propagate_var_def_into_debug_stmts): Rename to...
1942 (insert_debug_temp_for_var_def): ... this. Drop support for
1943 moving. Take iterator for def stmt; insert debug stmt before it.
1944 Scan early for use count and kind in debug stmts.
1945 (propagate_defs_into_debug_stmts): Rename to...
1946 (insert_debug_temps_for_defs): ... this. Likewise.
1947 * tree.h (DEBUG_TEMP_UID): New.
1948 * tree.c (next_debug_decl_uid): New.
1949 (make_node_stat): Count debug decls separately.
1950 (copy_node_stat): Likewise.
1951 * cfgexpand.c (expand_debug_expr): Handle DEBUG_EXPR_DECL.
1952 * var-tracking.c (dv_is_decl_p): Recognize it.
1953 (VALUE_RECURSED_INTO): Apply to DEBUG_EXPRs too.
1954 (track_expr_p): Track expanded DEBUG_EXPR_DECLs.
1955 (vt_expand_loc_callback): Expand DEBUG_EXPRs.
1956 (emit_note_insn_var_location): Don't emit notes for DEBUG_EXPR_DECLs.
1957 * cselib.c (rtx_equal_for_cselib_p): Handle DEBUG_EXPR.
1958 (cselib_hash_rtx): Likewise.
1959 (cselib_expand_value_rtx_1): Use callback for DEBUG_EXPR.
1960 * tree-ssa-operands.c (get_expr_operands): Skip DEBUG_EXPR_DECLs in
1961 debug bind stmts.
1962 * emit-rtl.c (verify_rtx_sharing): Handle DEBUG_EXPR and VALUE.
1963 (copy_rtx_if_shared_1, reset_used_flags, set_used_flags): Likewise.
1964 * rtl.c (copy_rtx): Likewise.
1965 (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_EXPR.
1966 * print-rtl.c (print_rtx): Likewise.
1967 * sched-vis.c (print_value): Likewise.
1968 (print_insn): Handle DEBUG_EXPR_DECL.
1969 * tree-dump.c (dequeue_and_dump): Likewise.
1970 * tree-pretty-print.c (dump_decl_name, dump_generic_node): Likewise.
1971 * gimple-iterator (gsi_replace): Check for same lhs.
1972 (gsi_remove): Insert debug temps.
1973 * tree-ssa-loop-im.c (rewrite_reciprocal): Replace with same lhs.
1974 (move_computations_stmt): Drop explicit propagation into debug stmts.
1975 (rewrite_bittest): Likewise. Use gsi_remove for propagation.
1976 * tree-ssa-reassoc.c (rewrite_expr_tree, linearize_expr): Likewise.
1977 * tree-ssa-sink.c (statement_sink_location): Likewise.
1978 * tree-ssa-forwprop (forward_propagate_addr_expr): Likewise.
1979 * tree-ssanames.c (release_ssa_name): Adjust for rename.
1980 * tree-flow.h: Likewise.
1981 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Don't mark
1982 debug temps without values.
1983 (eliminate_unnecessary_stmts): Don't discard just-inserted
1984 debug stmts.
1985
365cacbf
HPN
19862009-10-12 Hans-Peter Nilsson <hp@axis.com>
1987
1988 PR target/26515
1989 * config/cris/cris.md (andu): Check that operand 1 is one of the
1990 general registers. Fix typo in head comment.
1991
afd2c302 19922009-10-12 Stefan Dösinger <stefan@codeweavers.com>
4c769036 1993
afd2c302
SD
1994 * config/i386/i386.md (vswapmov): New.
1995 * config/i386/i386.c (ix86_handle_fndecl_attribute): New.
1996 (ix86_function_ms_hook_prologue): New.
1997 (ix86_expand_prologue): Handle ms_hook_prologue attribute.
1998 * configure.ac: Test for swap suffix support in as.
1999 * configure: Rebuild.
2000
821bdb23
JJ
20012009-10-12 Jakub Jelinek <jakub@redhat.com>
2002
2003 PR target/41680
2004 * config/i386/i386.md (split after *testqi_ext_3_rex64): Only narrow
2005 paradoxical subregs to prevent partial register stalls if the inner
2006 mode is integer mode.
2007
aeaf114b
UB
20082009-10-12 Uros Bizjak <ubizjak@gmail.com>
2009
4c769036 2010 * config/i386/i386.md (*setcc_<mode>_2): Remove insn pattern.
aeaf114b 2011
9ef3dbcd
DS
20122009-10-12 Dodji Seketeli <dodji@redhat.com>
2013
2014 PR c++/41570
2015 * gcc/dwarf2out.c (template_parameter_pack_die,
2016 gen_formal_parameter_pack_die): Use add_name_and_src_coords_attributes.
2017
3a56edc7
AO
20182009-10-12 Alexandre Oliva <aoliva@redhat.com>
2019
2020 PR debug/41616
2021 * tree-into-ssa.c (insert_phi_nodes_for): Build debug bind stmts
2022 on updates too.
2023 (maybe_register_def): Likewise. Take stmt iterator.
2024 (rewrite_update_stmt): Take stmt iterator and pass it on.
2025 (rewrite_update_enter_block): Pass stmt iterator.
2026
2c93399f
AP
20272009-10-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
2028
2029 * config/spu/spu.c (TARGET_BUILTIN_DECL): Define.
2030 (spu_builtin_decl): New function.
2031
bfb59746
UB
20322009-10-12 Uros Bizjak <ubizjak@gmail.com>
2033
2034 * config/i386/i386.md (SWIM): New mode iterator.
2035 (mov<mode>cc): Macroize expander from mov{qi,hi,si,di}cc patterns
2036 using SWIM mode iterator.
2037 (x86_mov<mode>cc_0_m1): Macroize insn from x86_mov{si,di}cc_0_m1
2038 patterns using SWI48 mode iterator.
2039 (*x86_mov<mode>cc_0_m1_se): Macroize insn from
2040 *x86_mov{si,di}cc_0_m1_se patterns using SWI48 mode iterator.
2041 (*x86_mov<mode>cc_0_m1_neg): New insn pattern.
2042 (*mov<mode>cc_noc): Macroize insn from *mov{hi,si,di}cc_noc
2043 patterns using SWI248 mode iterator.
2044 * config/i386/i386.c (ix86_expand_int_movcc): Update the call to
2045 gen_x86_movdicc_0_m1_rex64 for renamed function
2046
cb7d60a6 20472009-10-11 Jose Ruiz <ruiz@adacore.com>
aeaf114b 2048 Eric Botcazou <ebotcazou@adacore.com>
cb7d60a6
JR
2049
2050 PR target/33743
2051 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Define.
2052 * config/sparc/sol2-unwind.h: New file.
2053
8d232178 20542009-10-11 Olivier Hainque <hainque@adacore.com>
aeaf114b 2055 Eric Botcazou <ebotcazou@adacore.com>
8d232178
OH
2056
2057 PR target/33743
2058 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Define.
2059 * config/i386/sol2-unwind.h: New file.
2060
e1d4f419
L
20612009-10-11 H.J. Lu <hongjiu.lu@intel.com>
2062
2063 PR target/41665
2064 * config/i386/i386.md (addsi_1_zext): Get the proper second
2065 operand for lea.
2066
c47d1dba
RS
20672009-10-11 Richard Sandiford <rdsandiford@googlemail.com>
2068
2069 * simplify-rtx.c (simplify_replace_rtx): Use rtx_equal_p for
2070 all OLD_RTXes, not just REGs. Use copy_rtx to create the
2071 replacement value.
2072
652a8c1c
RG
20732009-10-11 Richard Guenther <rguenther@suse.de>
2074
2075 * gimple.c (iterative_hash_type_name): Do not handle special
2076 anonymous names.
2077
b09ee6aa
UB
20782009-10-11 Uros Bizjak <ubizjak@gmail.com>
2079
2080 * config/i386/i386.md (*setcc_di_1): New insn_and_split pattern.
2081 (*setcc_si_1_and): Ditto.
2082 (*setcc_si_1_movzbl): Ditto.
2083 (*setcc_<mode>_2): Ditto.
2084 (*setcc_qi): Rename from *setcc_1.
2085 (*setcc_qi_slp): Rename from *setcc_2.
2086
2087 (*zero_extendqihi2_movzbw_and splitter): Use ix86_expand_clear.
2088 (*zero_extendqisi2_movzbw_and splitter): Ditto.
2089
2090 * config/i386/i386.c (ix86_expand_clear): Remove reload_completed from
2091 "if" condition, there is already assert with reload_completed present.
2092
57703d27
GP
20932009-10-11 Gerald Pfeifer <gerald@pfeifer.com>
2094
b09ee6aa 2095 * plugin.c (try_init_one_plugin): Improve constness of variable err.
c08766bc 2096
57703d27 20972009-10-10 Gerald Pfeifer <gerald@pfeifer.com>
b09ee6aa 2098
c08766bc
GP
2099 * doc/install.texi (Final install): Refer to
2100 http://gcc.gnu.org/bugs/ for bug reporting.
2101
47f67e51
PB
21022009-10-10 Peter Bergner <bergner@vnet.ibm.com>
2103
2104 * configure.ac: Add test for dci instruction.
2105 * configure: Regenerate.
2106 * config.in: Likewise.
2107 * config.gcc: Handle --with-cpu=476 and --with-cpu=476fp.
2108 * doc/invoke.texi: Add cpu_type 476 and 476fp.
2109 (-mmulhw): Add 476 to description.
2110 (-mdlmzb): Likewise.
2111 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=476.
2112 * config/rs6000/rs6000.c (processor_costs): Add ppc476_cost.
2113 (processor_target_table): Add 476 and 476fp entries.
2114 (rs6000_override_options): Use ppc476_cost for PROCESSOR_PPC476.
2115 (rs6000_issue_rate): Add CPU_PPC476.
2116 * config/rs6000/rs6000.h (ASM_CPU_476_SPEC): Define.
2117 (ASM_CPU_SPEC): Pass %(asm_cpu_476) for -mcpu=476 and -mcpu=476fp.
2118 (processor_type): Add PROCESSOR_PPC476.
2119 (EXTRA_SPECS): Add asm_cpu_476 string.
bd62d832 2120 * config/rs6000/rs6000.md (define_attr "type"): Add isel attribute.
47f67e51
PB
2121 (define_attr "cpu"): Add ppc476.
2122 Include 476.md.
2123 Update comments for 476.
2124 (isel_signed, isel_unsigned): Change to use "isel" type attribute.
2125 * config/rs6000/vxworks.h (CPP_SPEC): Handle 464 and 476.
2126 Update copyright year.
2127 * config/rs6000/476.md: New file.
2128 * config/rs6000/40x.md: Add description for "isel" attribute.
2129 Update copyright year.
2130 * config/rs6000/440.md: Likewise.
2131 * config/rs6000/603.md: Likewise.
2132 * config/rs6000/6xx.md: Likewise.
2133 * config/rs6000/7450.md: Likewise.
2134 * config/rs6000/7xx.md: Likewise.
2135 * config/rs6000/8540.md: Likewise.
2136 * config/rs6000/cell.md: Likewise.
2137 * config/rs6000/e300c2c3.md: Likewise.
2138 * config/rs6000/e500mc.md: Likewise.
2139 * config/rs6000/mpc.md: Likewise.
2140 * config/rs6000/power4.md: Likewise.
2141 * config/rs6000/power5.md: Likewise.
2142 * config/rs6000/power6.md: Likewise.
2143 * config/rs6000/power7.md: Likewise.
2144 * config/rs6000/rios1.md: Likewise.
2145 * config/rs6000/rios2.md: Likewise.
2146 * config/rs6000/rs64.md: Likewise.
2147
740bb6ad
RG
21482009-10-10 Richard Guenther <rguenther@suse.de>
2149
2150 PR tree-optimization/41654
2151 * tree-ssa-ifcombine.c (ifcombine_ifandif): Properly canonicalize
2152 a cond expr before calling gimple_cond_set_condition_from_tree.
2153 (ifcombine_iforif): Likewise.
2154
0c2edd9f
ILT
21552009-10-09 Ian Lance Taylor <iant@google.com>
2156
2157 * configure.ac: Use AC_SEARCH_LIBS to find dlopen.
2158 * configure: Rebuild.
2159
2214382c
NV
21602009-10-09 Neil Vachharajani <nvachhar@google.com>
2161
2162 * doc/cpp.texi (Other Directives): Do not list #ident and #sccs as
2163 deprecated.
2164
e9e4b3a8
RG
21652009-10-09 Richard Guenther <rguenther@suse.de>
2166
2167 PR lto/41638
2168 * target-def.h (TARGET_BUILTIN_DECL): Define.
2169 (TARGET_INITIALIZER): Add TARGET_BUILTIN_DECL.
2170 * target.h (struct gcc_target): Add builtin_decl target hook.
2171 * doc/tm.texi (TARGET_BUILTIN_DECL): Document.
2172 * lto-streamer-in.c (lto_get_builtin_tree): Fix handling of
2173 target builtins.
2174 * lto-streamer-out.c (lto_output_tree_pointers): Use sorry,
2175 not gcc_unreachable.
2176 (lto_output_builtin_tree): Sorry if the target does not support
2177 streaming target builtins.
2178 * config/rs6000/rs6000.c (TARGET_BUILTIN_DECL): Define.
2179 (rs6000_builtin_decl): New function.
2180 * config/i386/i386.c (TARGET_BUILTIN_DECL): Define.
2181 (ix86_builtin_decl): New function.
2182
78441afb
JJ
21832009-10-09 Jakub Jelinek <jakub@redhat.com>
2184
21ece9b2
JJ
2185 PR preprocessor/41445
2186 * c-ppoutput.c (do_line_change): New function.
2187 (cb_line_change): Use it.
2188 (scan_translation_unit): Call do_line_change if
2189 avoid_paste or PREV_WHITE and token location is on a different line
2190 than print.src_line.
2191
9c1e641a
JJ
2192 PR debug/40521
2193 * dwarf2out.c (dwarf2out_init): Test whether
2194 HAVE_GAS_CFI_SECTIONS_DIRECTIVE is non-zero instead of checking
2195 it is defined.
2196
78441afb
JJ
2197 PR rtl-optimization/41646
2198 * calls.c (expand_call): For BLKmode types returned in registers
2199 avoid likely spilled hard regs in copy_blkmode_from_reg generated
2200 insns.
2201
aabf6a03
RG
22022009-10-09 Richard Guenther <rguenther@suse.de>
2203
2204 PR tree-optimization/41634
2205 * tree-ssa-dom.c (remove_local_expressions_from_table): Assert
2206 we remove the correct elements.
2207 (optimize_stmt): Make sure to update stmt operands before
2208 optimizing redundancies.
2209
22d72dbc
AK
22102009-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2211
2212 * config/s390/s390.md ("prefetch"): Remove stcmh for prefetching.
2213
b1b07c92
RG
22142009-10-09 Richard Guenther <rguenther@suse.de>
2215
2216 PR driver/41637
2217 * lto-wrapper.c (ltrans_output_file, flto_out, args_name): New
2218 globals.
2219 (lto_wrapper_exit): New function.
2220 (fatal): Use it.
2221 (fatal_perror): Likewise.
2222 (fork_execute): Use global args_name, do not free it.
2223 (run_gcc): Use global ltrans_output_file, flto_out, do not free them.
2224 * lto-streamer.h: Remove duplicate prototypes.
2225
9f3f7d13
RG
22262009-10-09 Richard Guenther <rguenther@suse.de>
2227
2228 * cgraph.c (cgraph_create_edge): Check for NULL call_stmt
2229 before calling stmt_can_throw_external.
2230
3f49ba3f
EB
22312009-10-09 Eric Botcazou <ebotcazou@adacore.com>
2232
2233 PR tree-optimization/40071
2234 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Build a ref-all
2235 pointer if the original data reference doesn't conflict with the
2236 created vector data reference. Fix long line.
2237
85760734
UB
22382009-10-09 Uros Bizjak <ubizjak@gmail.com>
2239
2240 * config/i386/i386.md (any_div): New code iterator.
2241 (u): Handle div and udiv.
2242 (sgnprefix): Ditto.
af2efb2b 2243 (<u>divqi3): Macroize insn from {,u}divqi3 using any_div
85760734
UB
2244 code iterator.
2245 (lfloor<MODEF:mode><SWI48:mode>2): Macroize insn from
2246 lfloor<mode>{si,di}2 patterns using SWI48 mode iterator.
2247 (lceil<MODEF:mode><SWI48:mode>2): Macroize insn from
2248 lceil<mode>{si,di}2 patterns using SWI48 mode iterator.
2249
23cd46a1
JM
22502009-10-08 Joseph Myers <joseph@codesourcery.com>
2251
2252 * gcc.c (main): Remove trailing "." from diagnostics.
2253
77831620
CC
22542009-10-08 Cary Coutant <ccoutant@google.com>
2255
2256 Add support for debugging with ICF (Identical Code Folding).
2257 * calls.c (debug.h): New #include.
2258 (emit_call_1): Call virtual_call_token debug hook.
2259 * common.opt (-fenable-icf-debug): New option.
2260 * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hooks (two
2261 locations in the source).
2262 (poc_label_num): New variable.
2263 (dcall_entry, vcall_entry): New typedefs.
2264 (dcall_table, vcall_table): New variables.
2265 (struct vcall_insn): New type.
2266 (vcall_insn_table): New variable.
2267 (DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION): New macros.
2268 (size_of_dcall_table): New function.
2269 (output_dcall_table): New function.
2270 (size_of_vcall_table): New function.
2271 (output_vcall_table): New function.
2272 (dwarf2out_direct_call): New function.
2273 (vcall_insn_table_hash): New function.
2274 (vcall_insn_table_eq): New function.
2275 (dwarf2out_virtual_call_token): New function.
2276 (dwarf2out_virtual_call): New function.
2277 (dwarf2out_init): Allocate new tables and sections.
2278 (prune_unused_types): Mark DIEs referenced from direct call table.
2279 (dwarf2out_finish): Output direct and virtual call tables.
2280 * final.c (final_scan_insn): Call direct_call and virtual_call
2281 debug hooks.
2282 * debug.h (struct gcc_debug_hooks): Add direct_call,
2283 virtual_call_token, virtual_call hooks.
2284 (debug_nothing_uid): New function.
2285 * debug.c (do_nothing_debug_hooks): Add dummy entries for new hooks.
2286 (debug_nothing_uid): New function.
2287 * dbxout.c (dbx_debug_hooks): Add dummy entries for new hooks.
38265b74 2288 (xcoff_debug_hooks): Likewise.
77831620
CC
2289 * sdbout.c (sdb_debug_hooks): Likewise.
2290 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
2291 * doc/invoke.texi (-fenable-icf-debug): New option.
2292
968e5728
AO
22932009-10-08 Alexandre Oliva <aoliva@redhat.com>
2294
2295 PR debug/41353
2296 * regmove.c (regmove_backward_pass): Replace src with dst in the
2297 debug insn, and check for dst before rather than after.
2298
42ccb890
JJ
22992009-10-08 Janis Johnson <janis187@us.ibm.com>
2300
2301 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove.
2302 (TARGET_DELEGITIMIZE_ADDRESS): Likewise.
2303
625f802c
JH
23042009-10-08 Jan Hubicka <jh@suse.cz>
2305
2306 PR middle-end/41626
2307 * cgraphbuild.c (record_reference): When parameter DATA is NULL,
2308 do not mark cgraph nodes as needed.
2309 (record_references_in_initializer): Add new only_vars parameter.
2310 * cgraph.h (record_references_in_initializer): New parameter.
2311 * varasm.c (assemble_variable): Update call.
2312 * varpool.c (varpool_analyze_pending_decls): Always look for
2313 referenced vars.
2314
007a178c
AS
23152009-10-08 Anatoly Sokolov <aesok@post.ru>
2316
2317 * config/avr/avr.c (last_insn_address) Remove variable.
2318 (expand_prologue): Don't initialise last_insn_address variable.
2319 (final_prescan_insn): Don't output insn size.
2320 * config/avr/avr.opt (msize): Remove switch.
2321 * doc/invoke.texi (AVR Options): Remove documentation of -msize
2322 switch.
2323
e3104f55
AN
23242009-10-08 Adam Nemet <anemet@caviumnetworks.com>
2325
2326 * combine.c (label_tick_ebb_start): Fix comment.
2327 (combine_instructions): Set label_tick and label_tick_ebb_start before
2328 calling setup_incoming_promotions. Start them from 1. Increment
2329 label_tick instead of deriving it from the BB index. Rather than
2330 comparing ticks use the block from the previous iteration to decide
2331 whether to start a new EBB. Remove empty lines before function.
2332
6728ee79
MM
23332009-10-08 Michael Matz <matz@suse.de>
2334
2335 PR middle-end/41573
2336 * builtins.c (fold_builtin_isascii): Use fold_build2.
2337 (fold_builtin_isdigit): Ditto.
2338 * except.c (duplicate_eh_regions_1): Tolerate NULL labels.
2339 * tree-cfg.c (struct rus_data, remove_useless_stmts_warn_notreached,
2340 remove_useless_stmts_cond, remove_useless_stmts_tf,
2341 remove_useless_stmts_tc, remove_useless_stmts_bind,
2342 remove_useless_stmts_goto, remove_useless_stmts_label,
2343 remove_useless_stmts_1, remove_useless_stmts,
2344 pass_remove_useless_stmts): Remove.
2345 * tree-pass.h (pass_remove_useless_stmts): Don't declare.
2346 * passes.c (init_optimization_passes): Don't add
2347 pass_remove_useless_stmts.
2348 * tree-eh.c (lower_eh_constructs_2): Handle empty cleanups.
2349 * tree.c (free_lang_data_in_decl): Don't clear DECL_INITIAL of
2350 static constants.
2351 * lto-symtab.c (lto_symtab_register_decl): Accepts DECL_INITIAL
2352 for static constants.
2353 * lto-streamer-out.c (output_gimple_stmt): Handle GIMPLE_NOP.
2354 * lto-streamer-in.c (input_gimple_stmt): Handle GIMPLE_NOP.
2355
0d0bfe17
RG
23562009-10-08 Richard Guenther <rguenther@suse.de>
2357
2358 * gimple.c (free_gimple_type_tables): New function.
2359 * gimple.h (free_gimple_type_tables): Declare.
2360
90e1a349
MH
23612009-10-07 Mark Heffernan <meheff@google.com>
2362
2363 * ipa-prop.c (ipa_print_node_params) Only print
2364 names of named arguments.
2365
d520c7fb
RAE
23662009-10-08 Rafael Avila de Espindola <espindola@google.com>
2367
2368 * gcc.c (LINK_COMMAND_SPEC): Pass libc with -pass-through if it is
2369 being statically linked.
2370
d72ff618
RO
23712009-10-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2372
2373 * collect2.c (add_lto_object): Only define if OBJECT_FORMAT_NONE.
2374
b820a2f9
JH
23752009-10-08 Jan Hubicka <jh@suse.cz>
2376
2377 PR bootstrap/41620
2378 * ipa.c (cgraph_externally_visible_p,
2379 function_and_variable_visibility,
2380 whole_program_function_and_variable_visibility): Skip non-finalized
2381 nodes.
2382
611b7b5a
NC
23832009-10-08 Nick Clifton <nickc@redhat.com>
2384
2385 * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Do not allow
2386 CONST_DOUBLEs.
2387
4c93ed23
AT
23882009-10-08 Andreas Tobler <a.tobler@schweiz.org>
2389
2390 PR bootstrap/37739
2391 * config.host: Use config/x-cflags-O1 for powerpc FreeBSD.
2392
e5a94231
JM
23932009-10-07 Joseph Myers <joseph@codesourcery.com>
2394
2395 PR c/41182
2396 * c-common.c (c_fully_fold_internal): Strip nops from the result
2397 of recursive calls to c_fully_fold_internal.
2398 (c_wrap_maybe_const): New.
2399 (c_save_expr): Use c_wrap_maybe_const.
2400 * c-common.h (c_wrap_maybe_const): Declare.
2401 * c-typeck.c (build_conditional_expr, c_finish_stmt_expr,
2402 build_binary_op): Use c_wrap_maybe_const.
2403
7190c775
KG
24042009-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2405
2406 * real.c: Fix comment to reflect actual exponent size.
2407
033016fa
BE
24082009-10-08 Ben Elliston <bje@au.ibm.com>
2409
2410 * config/rs6000/a2.md: Add FSF comment header.
2411
68bc0874
UB
24122009-10-07 Uros Bizjak <ubizjak@gmail.com>
2413
2414 * config/i386/i386.md (any_extend): New code iterator.
2415 (u, s): New code attributes.
2416 (sgnprefix): Ditto.
2417 (DWIH): Rewrite as code iterator for SI and DI modes.
2418 (DWI): Rewrite as mode attribute.
2419 (dwi): New mode attribute.
2420 (di): Depend on SI mode and DI mode.
2421 (doubleint_general_operand): Remove mode attribute.
2422
2423 (*lea_1): Macroize insn from *lea_1_rex64 and *lea_1 patterns using
2424 DWIH mode iterator.
2425
2426 (*add<mode>3_doubleword): Use DWIH as the base mode iterator.
2427 (*sub<mode>3_doubleword): Ditto.
2428
2429 (mul<mode>3): Macroize expander from mul{hi,si,di}3 patterns
2430 using SWIM248 mode iterator.
2431 (*mul<mode>3_1): Macroize insn from mul{si,di}3_1 patterns
2432 using SWI48 mode iterator.
2433 (<u>mul<mode><dwi>3): Macroize expander from {,u}mul{sidi,diti}3
2434 patterns using DWIH mode iterator and any_extend code iterator.
2435 (<u>mulqihi3): Macroize expander from {,u}mulqihi3 patterns
2436 using any_extend code iterator.
2437 (*<u>mul<mode><dwi>3_1): Macroize insn from {,u}mul{sidi,diti}3_1
2438 patterns using DWIH mode iterator and any_extend code iterator.
2439 (*<u>mulqihi3_1): Macroize insn from {,u}mulqihi3_1 patterns
2440 using any_extend code iterator.
2441 (<s>mul<mode>3_highpart): Macroize expander from
2442 {s,u}mul{si,di}3_highpart patterns using DWIH mode iterator
2443 and any_extend code iterator.
2444 (*<s>muldi3_highpart_1): Macroize insn from
2445 *{s,u}muldi3_highpart_rex64 patterns using any_extend code iterator.
2446 (*<s>mulsi3_highpart_1): Macroize insn from *{s,u}mulsi3_highpart_1
2447 patterns using any_extend code iterator.
2448 (*<s>mulsi3_highpart_zext): Macroize insn from
2449 *{s,u}mulsi3_highpart_zext patterns using any_extend code iterator.
2450
95a28767
JJ
24512009-10-07 Jakub Jelinek <jakub@redhat.com>
2452
2453 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Don't add
2454 DW_AT_const_value if VAR_DIE already has DW_AT_abstract_origin
2455 refering to a DIE with DW_AT_const_value.
2456
7ba06dee
VM
24572009-10-07 Vladimir Makarov <vmakarov@redhat.com>
2458
2459 PR middle-end/22072
2460 * ira-lives.c (check_and_make_def_conflict): Process all operands.
2461
3621d5ec
JH
24622009-10-06 Jan Hubicka <jh@suse.cz>
2463
2464 * cgraph.c (cgraph_node_can_be_local): Handle externally visible nodes
2465 correctly.
2466
f8921d7d
UB
24672009-10-06 Uros Bizjak <ubizjak@gmail.com>
2468
2469 * config/i386/i386.md (*lea_1_rex64, *lea_1, *lea_1_zext,
2470 *lea_2_rex64): Move before *add<mode>_1 pattern.
2471
13291c16
JH
24722009-10-07 Jan Hubicka <jh@suse.cz>
2473
2474 * collect2.c (main): Add -fno-whole-program.
2475 * gcc.c (set_collect_gcc_options): Do not remove whole program here.
2476
b20996ff
JH
24772009-10-07 Jan Hubicka <jh@suse.cz>
2478
85760734
UB
2479 * lto-symtab.c (lto_cgraph_replace_node): Assert that inline clones
2480 has no address taken.
b20996ff
JH
2481 * cgraph.c (cgraph_mark_needed_node): Assert that inline clones are
2482 never needed.
2483 (cgraph_clone_node): Clear externally_visible flag for clones.
2484 * cgraph.h (cgraph_only_called_directly_p,
2485 cgraph_can_remove_if_no_direct_calls_p): New predicates.
2486 * tree-pass.h (pass_ipa_whole_program_visibility): Declare.
2487 * ipa-cp.c (ipcp_cloning_candidate_p): Use new predicate.
2488 (ipcp_initialize_node_lattices, ipcp_estimate_growth,
2489 ipcp_insert_stage): Likwise.
2490 * cgraphunit.c (cgraph_decide_is_function_needed): Do not compute
2491 externally_visible flag.
2492 (verify_cgraph_node): Verify that inline clones look right.
2493 (process_function_and_variable_attributes): Do not set
2494 externally_visible flags.
2495 (ipa_passes): Avoid executing small_ipa_passes at LTO stage; they've
2496 been already run.
2497 * lto-cgraph.c (lto_output_node): Assert that inline clones are not
2498 boundaries.
2499 * ipa-inline.c (cgraph_clone_inlined_nodes): Use new predicates;
2500 clear externally_visible when turning into inline clones
2501 (cgraph_mark_inline_edge): Use new predicates.
2502 (cgraph_estimate_growth): Likewise.
2503 (cgraph_decide_inlining): Likewise.
2504 * ipa.c (cgraph_postorder): Likewise.
2505 (cgraph_remove_unreachable_nodes): Likewise; sanity check
2506 that inline clones are not needed.
2507 (cgraph_externally_visible_p): New predicate.
2508 (function_and_variable_visibility): Add whole_program parameter;
2509 always set externally_visible flag; handle COMDAT function
2510 privatization.
2511 (local_function_and_variable_visibility): New function.
2512 (gate_whole_program_function_and_variable_visibility): New function.
2513 (whole_program_function_and_variable_visibility): New function.
2514 (pass_ipa_whole_program_visibility): New function.
2515 * passes.c (init_optimization_passes): Add whole program visibility
2516 pass.
2517 (do_per_function_toporder, function_called_by_processed_nodes_p): Do
2518 not care about needed/reachable flags.
2519 * varpool.c: Include flags.h
2520 (decide_is_variable_needed): When doing LTO assume whole-program mode.
2521 (varpool_finalize_decl): When we are in LTO read-back, all variables
2522 are analyzed.
2523 (varpool_analyze_pending_decls): Skip analyzis of analyzed vars.
2524
4e7d730d
AK
25252009-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2526
2527 * config/s390/tpf.h (TARGET_DEFAULT): Remove MASK_HARD_FLOAT and
2528 add MASK_HARD_DFP.
2529
81dd9fd7
AK
25302009-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2531
2532 * config.gcc: Don't include the makefile fragments intended for
2533 libgcc.
2534 * config/s390/fixdfdi.h: File removed.
2535 * config/s390/libgcc-glibc.ver: File removed.
2536 * config/s390/s390.h: Remove the fixdfdi.h hack.
2537 * config/s390/t-crtstuff: File moved to libgcc dir.
2538 * config/s390/t-linux: Likewise.
2539 * config/s390/t-tpf: libgcc specific parts removed.
2540 * config/s390/t-linux64: Likewise.
2541
66af4187
JQ
25422009-10-06 Jerry Quinn <jlquinn@optonline.net>
2543
2544 * Makefile.in (lto-wrapper): Use COMPILER and ALL_COMPILERFLAGS.
2545 (lto-compress.o): Likewise.
09a6b8a4
DS
2546
25472009-10-07 Danny Smith <dannysmith@users.sourceforge.net>
2548
2549 PR target/41512
2550 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't propagate
2551 dllexport to class members here.
2552 (i386_pe_determine_dllimport_p): Only check static class data for
2553 definition.
2554 (i386_pe_encode_section_info): Don't recheck DECL_DLLIMPORT_P.
2555 * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Only check
2556 functions for vague linkage.
2557 (i386_pe_type_dllexport_p): Fix formatting.
2558 (maybe_add_dllexport) New function.
2559 (i386_pe_adjust_class_at_definition): Use it to propagate dllexport
2560 to class members.
f8921d7d 2561
0b9036f4 25622009-10-07 Ben Elliston <bje@au.ibm.com>
a5617632
BE
2563
2564 * config/rs6000/a2.md: Remove duplicated lines.
2565
ebde32fd
BE
25662009-10-07 Ben Elliston <bje@au.ibm.com>
2567
2568 * config.gcc (powerpc*-*-*): Handle a2.
2569 * config/rs6000/rs6000.md (cpu): Add ppca2. Include "a2.md".
2570 * config/rs6000/a2.md: New file.
2571 * config/rs6000/rs6000.opt (mno-update): New.
2572 (mupdate): Return to using a mask, not a var.
2573 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for a2.
2574 (enum processor_type): Add PROCESSOR_PPCA2.
2575 * config/rs6000/rs6000.c (ppca2_cost): New costs.
2576 (rs6000_override_options): Add "a2" to processor_target_table.
68bc0874
UB
2577 Update rs6000_always_hint logic. Correctly set rs6000_cost for a2.
2578 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=a2.
ebde32fd 2579
d2407a7a
UB
25802009-10-06 Uros Bizjak <ubizjak@gmail.com>
2581
458c00ff
UB
2582 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
2583 Use explicit gen_truncxfsf2 and gen_truncxfdf2 references to avoid
2584 reference to nonexistent gen_truncxfxf2 function.
2585
25862009-10-06 Uros Bizjak <ubizjak@gmail.com>
2587
2588 * config/i386/i386.md (SWI48, SDWIM, DWI): New mode iterators.
d2407a7a
UB
2589 (DWIH, g, di, doubleint_general_operand): New mode attributes.
2590 (general_operand): Handle TI mode.
2591 (add<mode>3): Macroize expander from add{qi,hi,si,di,ti}3 patterns
458c00ff 2592 using SDWIM mode iterator.
d2407a7a
UB
2593 (*add<mode>3_doubleword): New insn_and_split pattern. Macroize
2594 pattern from *add{di,ti}3_1 patterns and corresponding splitters
458c00ff 2595 using DWI mode iterator.
d2407a7a
UB
2596 (add<mode>3_carry): Macroize insn from add{qi,hi,si,di}3_carry
2597 patterns using SWI mode iterator.
2598 (*add<mode>3_cc): Macroize insn from add{si,di}3_cc patterns
2599 using SWI48 mode iterator.
2600 (*add<mode>_1): Ditto from add{si,di}_1 patterns.
2601 (*add<mode>_2): Ditto from add{si,di}_2 patterns.
2602 (*add<mode>_3): Ditto from add{si,di}_3 patterns.
2603 (*add<mode>_5): Ditto from add{si,di}_5 patterns.
2604 (sub<mode>3): Macroize expander from sub{qi,hi,si,di,ti}3 patterns
458c00ff 2605 using SDWIM mode iterator.
d2407a7a
UB
2606 (*sub<mode>3_doubleword): New insn_and_split pattern. Macroize
2607 pattern from *sub{di,ti}3_1 patterns and corresponding splitters
458c00ff 2608 using DWI mode iterator.
d2407a7a
UB
2609 (sub<mode>3_carry): Macroize insn from sub{qi,hi,si,di}3_carry
2610 patterns using SWI mode iterator.
2611 (*sub<mode>_1): Ditto from from sub{qi,hi,si,di}_1 patterns.
2612 (*sub<mode>_2): Ditto from sub{qi,hi,si,di}_2 patterns.
2613 (*sub<mode>_3): Ditto from sub{qi,hi,si,di}_3 patterns.
2614 (<plusminus_insn>xf3): Macroize expander from addxf3 and subxf3
2615 patterns using plusminus code iterator.
2616 (<plusminus_insn><mode>3): Macroize expander from add<mode>3 and
2617 sub<mode>3 patterns using plusminus code iterator.
bfb59746 2618 * config/i386/i386.c (override_options): Update the call to
d2407a7a
UB
2619 gen_subdi_carry_rex64 for renamed function.
2620 (ix86_expand_int_addcc): Update calls to gen_subdi3_carry_rex64
2621 and gen_adddi3_carry_rex64 for renamed functions. Use indirect
2622 calls to instruction expanders.
2623
7b7c01e7
MJ
26242009-10-06 Martin Jambor <mjambor@suse.cz>
2625
2626 PR bootstrap/41395
2627 * opts.c (decode_options): Run IPA-SRA at -O2.
2628
66cc270e
RG
26292009-10-06 Richard Guenther <rguenther@suse.de>
2630
2631 * lto-symtab.c (lto_symtab_entry_hash): Hash strings, not pointers.
2632
05927e0d
TB
26332009-10-06 Tobias Burnus <burnus@net-b.de>
2634
2635 PR lto/41591
2636 * doc/invoke.texi (-flto,-fwhole-program): Make clear that the
2637 -flto and -fwhole-program flags can be combined.
2638
9ef3b476
RM
26392009-10-06 Ryan Mansfield <rmansfield@qnx.com>
2640
2641 PR driver/41217
2642 * gcc.c (process_command): Check that -o argument was specified.
2643
ddd4d0e1
JQ
26442009-10-06 Jerry Quinn <jlquinn@optonline.net>
2645
85760734 2646 * gimple.c (gimple_type_hash): Use CONST_CAST_TREE to fix compilation.
ddd4d0e1 2647
da667743
RW
26482009-10-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2649
2650 * c.opt (Wjump-misses-init): Fix typo to enable for ObjC.
2651 * doc/invoke.texi (Warning Options): Annotate allowed languages
2652 for -Wunsuffixed-float-constants.
2653
7555009a
JJ
26542009-10-05 Jakub Jelinek <jakub@redhat.com>
2655
4a24ddb9
JJ
2656 * dwarf2out.c (modified_type_die): Don't add DW_AT_name to
2657 DW_TAG_{const,volatile}_type if its DW_AT_type already has the
2658 same name and isn't the main variant.
2659
7555009a
JJ
2660 PR debug/41558
2661 * dwarf2out.c (loc_by_reference): Removed.
2662 (dw_loc_list_1): New function.
2663 (dw_loc_list): Remove toplev argument, add want_address argument.
2664 Don't look at decl_by_reference_p at all. Use dw_loc_list_1.
2665 (loc_list_from_tree) <case VAR_DECL>: Pass want_address rather than
2666 want_address == 2 to dw_loc_list. For successful dw_loc_list
2667 set have_address to 1 only if want_address is not 0.
2668
c640a3bd
RS
26692009-10-05 Richard Sandiford <rdsandiford@googlemail.com>
2670
2671 * config/mips/mips-protos.h (mips_trampoline_code_size): Declare.
2672 * config/mips/mips.h (TRAMPOLINE_SIZE): Redefine as the size of
2673 a code block followed by two pointers.
2674 (TRAMPOLINE_ALIGNMENT): Define to 64 for 32-bit targets too.
2675 * config/mips/mips.c (MIPS_LOAD_PTR): New macro.
2676 (MIPS_MOVE): Likewise.
2677 (MIPS_LUI): Likewise.
2678 (MIPS_JR): Likewise.
2679 (MIPS_BAL): Likewise.
2680 (MIPS_NOP): Likewise.
2681 (mips_asm_trampoline_template): Delete.
2682 (mips_trampoline_code_size): New function.
2683 (mips_trampoline_init): Add shorter sequences for all cases
2684 except Pmode == DImoe && !TARGET_USE_PIC_FN_ADDR_REG.
2685 Calculate the opcodes directly, rather than copying from a template.
2686 Only flush the code part of the trampoline.
2687 (TARGET_ASM_TRAMPOLINE_TEMPLATE): Delete.
2688
293593b1
RS
26892009-10-05 Richard Sandiford <rdsandiford@googlemail.com>
2690
2691 * config/mips/mips.h (DWARF_FRAME_RETURN_COLUMN): Replace
2692 GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM.
2693 (INCOMING_RETURN_ADDR_RTX): Likewise.
2694 (FUNCTION_PROFILER): Likewise. Replace GP_REG_FIRST + 1
2695 with AT_REGNUM.
2696 * config/mips/sdemtk.h (FUNCTION_PROFILER): Replace GP_REG_FIRST + 31
2697 with RETURN_ADDR_REGNUM.
2698 (MIPS_SAVE_REG_FOR_PROFILING_P): Likewise.
2699 * config/mips/mips.c (mips16_build_call_stub): Replace
2700 GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM, GP_REG_FIRST + 1
2701 with AT_REGNUM and 31 with RETURN_ADDR_REGNUM.
2702 (mips_print_operand_punctuation): Likewise.
2703 (mips_frame_set): Likewise.
2704 (mips16e_output_save_restore): Likewise.
2705 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
2706 (mips_save_reg_p): Likewise.
2707 (mips_return_addr): Likewise.
2708 (mips_set_return_address): Likewise.
2709 (mips_direct_save_slot_move_p): Likewise.
2710 (mips_output_function_prologue): Likewise.
2711 (mips_restore_reg): Likewise.
2712 (mips_expand_epilogue): Likewise.
2713 (mips_epilogue_uses): Likewise.
2714 * config/mips/mips.md (RETURN_ADD_REGNUM): Define.
2715 (*mov<mode>_ra): Use it instead of a hard-coded 31.
2716 (clear_hazard_<mode>): Likewise.
2717 (call_internal): Likewise.
2718 (call_internal_direct): Likewise.
2719 (call_direct_split): Likewise.
2720 (call_value_internal): Likewise.
2721 (call_value_split): Likewise.
2722 (call_value_internal_direct): Likewise.
2723 (call_value_direct_split): Likewise.
2724 (call_value_multiple_internal): Likewise.
2725 (call_value_multiple_split): Likewise.
2726
9baea66c
EB
27272009-10-05 Eric Botcazou <ebotcazou@adacore.com>
2728 Jakub Jelinek <jakub@redhat.com>
2729
2730 PR rtl-optimization/41511
2731 * combine.c (record_value_for_reg): Pass explicit values as argument
2732 to get_last_value_validate.
2733 (get_last_value_validate): Document INSN parameter.
2734 For non-readonly MEMs, assume they might have been modified if INSN
2735 was in another basic block.
2736 (get_last_value): Minor reformatting.
2737
2bd1d2c8
AP
27382009-10-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
2739
2740 PR tree-opt/40992
2741 * final.c (asm_str_count): Split out from asm_insn_count.
2742 * rtl.h (asm_str_count): New prototype.
2743 * tree-inline (estimate_num_insns) <case GIMPLE_ASM>: Call
2744 asm_str_count.
2745
8fc7e474
ST
27462009-10-05 Sriraman Tallam <tmsriram@google.com>
2747
2748 * doc/plugins.texi: Change plugin_pass to register_pass_info.
c802b1cf
BS
2749
27502009-10-05 Basile Starynkevitch <basile@starynkevitch.net>
2751 Rafael Espindola <espindola@google.com>
2752
2753 * gengtype.c (write_types): Moved call to write_func_for_structure
2754 into seperate loops.
2755
a9cc4458
RG
27562009-10-05 Richard Guenther <rguenther@suse.de>
2757
2758 PR lto/41281
2759 * lto-cgraph.c (output_cgraph): Output toplevel asms.
2760 (input_cgraph_1): Input toplevel asms.
2761
fd7588bc
RG
27622009-10-05 Richard Guenther <rguenther@suse.de>
2763
2764 PR lto/40902
2765 * lto-symtab.c (lto_compatible_attributes_p): Remove.
2766 (external_aggregate_decl_p): Likewise.
2767 (lto_symtab_compatible): Re-structure. Remove dead code.
2768 For variables ignore toplevel qualifiers when comparing types.
2769 Issue warnings, not errors for mismatched user-alignment.
2770
1a735925
RG
27712009-10-05 Richard Guenther <rguenther@suse.de>
2772
2773 PR lto/41552
2774 PR lto/41487
2775 * lto-symtab.c (struct lto_symtab_base_def): Remove.
2776 (struct lto_symtab_identifier_def): Likewise.
2777 (struct lto_symtab_decl_def): Likewise.
2778 (struct lto_symtab_entry_def): New.
2779 (lto_symtab_identifier_t): Rename to ...
2780 (lto_symtab_entry_t): ... this.
2781 (lto_symtab_decls): Remove.
2782 (lto_symtab_base_hash): Rename to ...
2783 (lto_symtab_entry_hash): ... this.
2784 (lto_symtab_base_eq): Rename to ...
2785 (lto_symtab_entry_eq): ... this.
2786 (lto_symtab_base_marked_p): Rename to ...
2787 (lto_symtab_entry_marked_p): ... this.
2788 (lto_symtab_identifier_marked_p): Remove.
2789 (lto_symtab_decl_marked_p): Likewise.
2790 (lto_symtab_maybe_init_hash_tables): Rename to ...
2791 (lto_symtab_maybe_init_hash_table): ... this.
2792 (lto_symtab_set_resolution_and_file_data): Remove.
2793 (lto_symtab_register_decl): New function.
2794 (lto_symtab_get_identifier): Remove.
2795 (lto_symtab_get): New function.
2796 (lto_symtab_get_resolution): Adjust.
2797 (lto_symtab_get_identifier_decl): Remove.
2798 (lto_symtab_set_identifier_decl): Likewise.
2799 (lto_symtab_merge_decl): Rename to ...
2800 (lto_symtab_merge): ... this. Rewrite.
2801 (lto_symtab_merge_var): Remove.
2802 (lto_symtab_merge_fn): Likewise.
2803 (lto_symtab_prevailing_decl): Adjust.
2804 (lto_cgraph_replace_node): New function.
2805 (lto_symtab_merge_decls_2): Likewise.
2806 (lto_symtab_merge_decls_1): Likewise.
2807 (lto_symtab_fixup_var_decls): Likewise.
2808 (lto_symtab_resolve_symbols): Likewise.
2809 (lto_symtab_merge_decls): Likewise.
2810 (lto_symtab_prevailing_decl): Adjust.
2811 (lto_symtab_get_symtab_def): Remove.
2812 (lto_symtab_get_file_data): Likewise.
2813 (lto_symtab_clear_resolution): Adjust.
2814 (lto_symtab_clear_resolution): Likewise.
2815 * lto-cgraph.c (input_edge): Do not merge cgraph nodes here.
2816 (input_cgraph_1): Likewise.
2817 * lto-streamer-in.c (get_resolution): Do not provide fake
2818 symbol resolutions here.
2819 (deferred_global_decls): Remove.
2820 (lto_register_deferred_decls_in_symtab): Likewise.
2821 (lto_register_var_decl_in_symtab): Change signature, register
2822 variable via lto_symtab_register_decl.
2823 (lto_register_function_decl_in_symtab): Likewise.
2824 (lto_read_tree): Adjust.
2825 * lto-streamer.h (lto_register_deferred_decls_in_symtab): Remove.
2826 (lto_symtab_merge_var): Likewise.
2827 (lto_symtab_merge_fn): Likewise.
2828 (lto_symtab_register_decl): Declare.
2829 (lto_symtab_merge_decls): Likewise.
2830
e9d85fa6
RG
28312009-10-05 Richard Guenther <rguenther@suse.de>
2832
2833 PR tree-optimization/23821
2834 * tree-vrp.c (vrp_finalize): Do not perform copy propagation.
2835 * tree-ssa-dom.c (cprop_operand): Do not propagate copies into
2836 simple IV increments.
2837
114bbac6
RR
28382009-10-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2839
d2407a7a
UB
2840 * config/arm/arm.c (arm_override_options): Really initialize
2841 flag_dwarf2_cfi_asm to 0.
114bbac6 2842
56fe3eff
DK
28432009-10-05 Doug Kwan <dougkwan@google.com>
2844
2845 PR rtl-optimization/41574
114bbac6 2846 * combine.c (distribute_and_simplify_rtx): Quit if RTX mode is
56fe3eff
DK
2847 floating point and we are not doing unsafe math optimizations.
2848
d7f09764
DN
28492009-10-03 Simon Baldwin <simonb@google.com>
2850 Cary Coutant <ccoutant@google.com>
2851 Rafael Espindola <espindola@google.com>
2852 Richard Guenther <rguenther@suse.de>
2853 Jan Hubicka <jh@suse.cz>
2854 Doug Kwan <dougkwan@google.com>
458c00ff 2855 H.J. Lu <hongjiu.lu@intel.com>
d7f09764
DN
2856 Bill Maddox <maddox@google.com>
2857 Ryan Mansfield <rmansfield@qnx.com>
2858 Diego Novillo <dnovillo@google.com>
2859 Ollie Wild <aaw@google.com>
2860 Kenneth Zadeck <zadeck@naturalbridge.com>
2861
2862 * lto-cgraph.c: New file.
2863 * lto-compress.c: New file.
2864 * lto-compress.h: New file.
2865 * lto-opts.c: New file.
2866 * lto-section-in.c: New file.
2867 * lto-section-out.c: New file.
2868 * lto-streamer-in.c: New file.
2869 * lto-streamer-out.c: New file.
2870 * lto-streamer.c: New file.
2871 * lto-streamer.h: New file.
2872 * lto-symtab.c: New file.
2873 * lto-wpa-fixup.c: New file.
2874 * lto-wrapper.c: New file.
2875
28762009-10-03 Simon Baldwin <baldwin@google.com>
2877 Ben Elliston <bje@au.ibm.com>
2878 Rafael Espindola <espindola@google.com>
2879 Nathan Froyd <froydnj@codesourcery.com>
2880 Jan Hubicka <jh@suse.cz>
2881 Doug Kwan <dougkwan@google.com>
2882 Diego Novillo <dnovillo@google.com>
2883 Kenneth Zadeck <zadeck@naturalbridge.com>
2884
2885 * Makefile.in (enable_lto): New.
85760734 2886 (site.exp): If @enable_lto@ is set to 'yes' define ENABLE_LTO.
d7f09764
DN
2887 (LINKER_PLUGIN_API_H): Define.
2888 (LTO_SYMTAB_H): Define.
2889 (LTO_STREAMER_H): Define.
2890 (TREE_VECTORIZER_H): Define.
2891 (INCLUDES): Add LIBELFINC.
2892 (OBJS-common): Add lto-cgraph.o, lto-streamer-in.o,
85760734
UB
2893 lto-streamer-out.o, lto-section-in.o, lto-section-out.o, lto-symtab.o,
2894 lto-opts.o, lto-streamer.o, lto-wpa-fixup.o, lto-compress.o.
d7f09764
DN
2895 (MOSTLYCLEANFILES): Add lto-wrapper$(exeext)
2896 (native): Add lto-wrapper$(exeext)
2897 (lto-compress.o, lto-cgraph.o, lto-streamer-in.o,
2898 lto-streamer-out.o, lto-section-in.o, lto-section-out.o,
85760734
UB
2899 lto-symtab.o, lto-opts.o, lto-streamer.o, lto-wpa-fixup.o): New rules.
2900 (gimple.o): Add dependency on LTO_HEADER_H and LTO_SECTION_OUT_H.
d7f09764
DN
2901 (varasm.o): Add dependency on tree-iterator.h.
2902 (cgraph.o): Add dependency on cif-code.def.
2903 (ipa-reference.o): Add dependency on LTO_STREAMER_H.
2904 (ipa-pure-const.o): Likewise.
2905 (GTFILES): Add lto-symtab.c.
2906 (install-lto-wrapper): New.
85760734
UB
2907 * configure.ac: If 'lto' is in enable_languages, define ENABLE_LTO
2908 and enable_lto. If LIBELFLIBS is set, define HAVE_libelf.
d7f09764
DN
2909 * config.in: Regenerate.
2910
29112009-10-03 Rafael Espindola <espindola@google.com>
2912 Diego Novillo <dnovillo@google.com>
2913
2914 * cgraphunit.c (ipa_passes): Prevent lto1 from calling
2915 ipa_write_summaries.
2916 Call execute_ipa_summary_passes for all_regular_ipa_passes and
2917 all_lto_gen_passes.
2918 (cgraph_optimize): Make extern.
2919
29202009-10-03 Nathan Froyd <froydnj@codesourcery.com>
2921 Kenneth Zadeck <zadeck@naturalbridge.com>
2922
2923 * toplev.c (in_lto_p): Declare.
2924 * collect2.c (scan_prog_file): Read all the output when reading
2925 information for LTO.
2926 (enum lto_mode_d): Declare.
2927
29282009-10-03 Richard Guenther <rguenther@suse.de>
2929 Diego Novillo <dnovillo@google.com>
2930
2931 * gimple.c: Include target.h and alias.h.
2932 (gimple_types): Declare.
2933 (type_hash_cache): Declare.
2934 (gimple_alloc_stat): Make extern.
2935 (gimple_build_eh_must_not_throw): Call
2936 gimple_eh_must_not_throw_set_fndecl.
2937 (struct type_pair_d): Declare.
2938 (type_pair_t): Declare.
2939 (type_pair_hash): New.
2940 (type_pair_eq): New.
2941 (lookup_type_pair): New.
2942 (gimple_force_type_merge): New.
2943 (compare_type_names_p): New.
2944 (compare_field_offset): New.
2945 (gimple_types_compatible_p): New.
2946 (struct sccs): Declare.
2947 (next_dfs_num): Declare.
2948 (iterative_hash_gimple_type): New.
2949 (visit): New.
2950 (iterative_hash_type_name): New.
2951 (iterative_hash_gimple_type): New.
2952 (gimple_type_hash): New.
2953 (gimple_type_eq): New.
2954 (gimple_register_type): New.
2955 (print_gimple_types_stats): New.
2956 (gimple_signed_or_unsigned_type): New.
2957 (gimple_unsigned_type): New.
2958 (gimple_signed_type): New.
2959 (gimple_get_alias_set): New.
2960 (gimple_decl_printable_name): Do not use DMGL_TYPES.
2961 * gimple.h (gimple_alloc, gimple_alloc_stat): Declare.
2962 (gimple_force_type_merge): Declare.
2963 (gimple_types_compatible_p): Declare.
2964 (gimple_register_type): Declare.
2965 (print_gimple_types_stats): Declare.
2966 (gimple_unsigned_type): Declare.
2967 (gimple_signed_type): Declare.
2968 (gimple_get_alias_set): Declare.
2969 (gimple_eh_must_not_throw_set_fndecl): New.
2970
29712009-10-03 Jan Hubicka <jh@suse.cz>
2972 Kenneth Zadeck <zadeck@naturalbridge.com>
2973
2974 * ipa-pure-const.c: Include lto-streamer.h.
2975 (register_hooks): Factor out of ...
2976 (generate_summary): ... here.
2977 (pure_const_write_summary): New.
2978 (pure_const_read_summary): New.
2979 (pass_ipa_pure_const): Add pure_const_write_summary and
2980 pure_const_read_summary.
2981 * ipa-reference.c: Include lto-streamer.h.
2982 (add_new_function): New.
2983 (remove_node_data): New.
2984 (duplicate_node_data): New.
2985 (ipa_init): Guard against multiple calls.
2986 Move hook setup from analyze_function.
2987 (write_node_summary_p): New.
2988 (ipa_reference_write_summary): New.
2989 (ipa_reference_read_summary): New.
2990 (pass_ipa_reference): Add ipa_reference_write_summary and
2991 ipa_reference_read_summary.
2992 * cgraph.h (cgraph_local_info): Add field lto_file_data.
2993 (struct cgraph_edge): Add fields lto_stmt_uid and
2994 call_stmt_cannot_inline_p.
2995 (cgraph_optimize): Declare.
2996 (cgraph_decide_is_function_needed): Declare.
2997 (reset_inline_failed): Declare.
2998 (enum LTO_cgraph_tags): Declare.
2999 (LTO_cgraph_tag_names): Declare.
3000 (LCC_NOT_FOUND): Define.
3001
30022009-10-03 Doug Kwan <dougkwan@google.com>
3003 Rafael Espindola <espindola@google.com>
3004 Jan Hubicka <jh@suse.cz>
3005 Diego Novillo <dnovillo@google.com>
3006 Kenneth Zadeck <zadeck@naturalbridge.com>
3007
3008 * passes.c (all_regular_ipa_passes): New.
3009 (all_ipa_passes): Rename to all_small_ipa_passes.
3010 (init_optimization_passes): Init all_regular_ipa_passes.
3011 * tree-pass.h (all_regular_ipa_passes): New.
3012 (all_ipa_passes): Rename to all_small_ipa_passes.
3013 * passes.c (all_lto_gen_passes): New.
3014 (init_optimization_passes): Initialize all_lto_gen_passes.
3015 (execute_ipa_summary_passes): Make non-static.
3016 (ipa_write_summaries_1): New.
3017 (ipa_write_summaries_2): New.
3018 (ipa_write_summaries): New.
3019 (ipa_write_summaries_of_cgraph_node_set): New.
3020 (ipa_read_summaries_1): New.
3021 (ipa_read_summaries): New.
3022 (execute_ipa_pass_list): Call cgraph_process_new_functions.
3023 (execute_regular_ipa_pass_list): Remove.
3024 (init_optimization_passes): Schedule
3025 pass_rebuild_cgraph_edges and pass_early_inline outside
3026 of pass_all_early_optimizations. Document reason.
3027 (pass_ipa_lto_gimple_out, pass_ipa_lto_wpa_fixup,
3028 pass_ipa_lto_finish_out): New pass.
85760734 3029 (pass_ipa_summary_passes): Start and stop timers if the pass has them.
d7f09764
DN
3030 (execute_all_ipa_transforms): New.
3031 (execute_one_pass): Don't call execute_one_ipa_transform_pass.
3032 (dump_properties, debug_properties): New.
3033 * tree-optimize.c (gate_all_early_local_passes): Return
3034 false if we are in lto1.
3035 (tree_rest_of_compilation): Call execute_all_ipa_transforms.
3036 * tree-pass.h (execute_all_ipa_transforms): Declare.
3037 (pass_ipa_function_and_variable_visibility): Declare.
3038 (pass_ipa_early_inline): Declare.
3039 (pass_ipa_lto_gimple_out): Declare.
3040 (pass_ipa_lto_wpa_fixup): Declare.
3041 (pass_ipa_lto_finish_out): Declare.
3042 (all_small_ipa_passes, all_regular_ipa_passes,
3043 all_lto_gen_passes): Declare.
3044 (execute_ipa_summary_passes): Declare.
3045 (execute_all_ipa_transforms): Declare.
3046 (ipa_write_summaries): Declare
3047 (ipa_write_summaries_of_cgraph_node_set): Declare.
3048 (ipa_read_summaries): Declare.
3049
30502009-10-03 Doug Kwan <dougkwan@google.com>
3051 Ollie Wild <aaw@google.com>
3052
85760734 3053 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do nothing in WPA.
d7f09764
DN
3054
3055 * collect2.c (LTO_MODE_NONE, LTO_MODE_LTO, LTO_MODE_WPA): New enums.
3056 (lto_mode): New variable.
3057 (maybe_run_lto_and_relink): Handle the -fwpa option.
3058 (main): Handle the -fwpa option.
3059 (maybe_unlink_list): New function.
3060 * gcc.c (link_lto_options): Replace -flto with -fwpa.
3061 * common.opt (flto): New flag.
3062 * toplev.c (flag_generate_lto): Declare.
3063
30642009-10-03 Simon Baldwin <simonb@google.com>
3065
3066 * common.opt (flto-compression-level): New flag.
3067
3068 * opts.c: Include lto-opts.h.
3069 (handle_option): Call lto_register_user_option for each
3070 valid option handled.
85760734 3071 (decode_options): Clear registered options before the options
d7f09764
DN
3072 handling loop.
3073
30742009-10-03 Cary Coutant <ccoutant@google.com>
3075
3076 * collect2.c (is_elf): New function.
3077 (scan_prog_file): Require LTO object to be in ELF format.
3078
30792009-10-03 Rafael Espindola <espindola@google.com>
3080
3081 * gcc.c (LINK_COMMAND_SPEC): Use the -pass-through option to pass
3082 libgcc to the linker.
3083
85760734 3084 * ipa-cp.c (cgraph_gate_cp): Return false if LTRANS is running.
d7f09764
DN
3085
3086 * collect2.c (maybe_run_lto_and_relink): Execute lto-wrapper.
3087 (collect_execute): Add flags argument. Pass flags to pex_run. Update
3088 all callers.
3089 * collect2.h (collect_execute): Add flags argument.
3090 * tlink.c (tlink_execute): Update call to collect_execute.
3091 * gcc.c (main): Set the COLLECT_LTO_WRAPPER environment variable.
3092 (use_linker_plugin): New.
3093 (use_linker_plugin_spec_function): New.
3094 (LINK_COMMAND_SPEC): Pass plugin options to the linker.
3095 (linker_plugin_file_spec): New.
3096 (lto_wrapper_spec): New.
3097 (lto_gcc_spec): New.
3098 (static_specs): Add linker_plugin_file, lto_wrapper and lto_gcc.
3099 (static_spec_functions): Add use-linker-plugin.
3100 (process_command): Handle -use-linker-plugin.
3101 (main): Use lto_wrapper_spec instead of lto_wrapper. Set
3102 linker_plugin_file_spec and lto_gcc_spec.
3103 (use_linker_plugin_spec_function): New.
3104
31052009-10-03 Richard Guenther <rguenther@suse.de>
3106
3107 PR lto/41547
3108 PR lto/41548
3109 * tree.h (is_lang_specific): Include LANG_TYPE.
3110 * tree.c (find_decls_types_r): Manually add interesting parts
3111 of TYPE_FIELDS. Walk BINFO_VIRTUALS. Do not walk TYPE_METHODS.
3112
3113 * gimple.c (type_pair_hash): Make symmetric.
3114 (type_pair_eq): Likewise.
3115 (lookup_type_pair): Increase initial hashtable size.
3116 (gimple_force_type_merge): Rely on type-pair symmetry.
3117 (visit): Remove excessive checking code.
85760734 3118 (iterative_hash_type_name): Do not hash TYPE_NAME of anonymous unions.
d7f09764
DN
3119 (gimple_register_type): Remove getenv calls, shrink initial
3120 hashtable size.
3121
3122 PR middle-end/41502
3123 * cgraphunit.c (ipa_passes): Do not remove bodies of extern
3124 inline functions if not generating lto output.
3125
3126 PR lto/41379
3127 * toplev.c (finalize): In WPA mode remove the asm file.
3128
31292009-10-03 Doug Kwan <dougkwan@google.com>
3130
3131 * ipa-inline.c (cgraph_mark_inline): Check
3132 edge->call_stmt_cannot_inline_p instead of calling
3133 gimple_call_cannot_inline_p.
3134 (cgraph_decide_inlining): Do nothing in WPA and LTRANS.
85760734 3135 (cgraph_gate_ipa_early_inlining): Return false if in_lto_p is set.
d7f09764 3136 (inline_generate_summary): Do nothing in LTRANS.
85760734
UB
3137 * cgraph.c (initialize_inline_failed): Make sure e->call_stmt
3138 exists before calling gimple_call_cannot_inline_p.
d7f09764 3139 (cgraph_create_edge): Set edge->call_stmt_cannot_inline_p.
85760734 3140 (cgraph_clone_edge): Add argument STMT_UID. Modify all callers.
d7f09764
DN
3141 Update new_edge->lto_stmt_uid.
3142 * cgraphbuild.c (reset_inline_failed): New.
3143
3144 * common.opt (fwpa): New flag.
3145 (fltrans): New option.
3146 * gcc.c (gcc_lto_option_t): New type.
3147 (current_lto_option): New variable.
3148 (lto_single_spec_function): Remove and is replaced by ..
3149 (lto_option_spec_function): New function.
3150 (LINK_COMMAND_SPEC): Use link_lto_option spec instead of just
3151 passing the -flto flag.
3152 (cc1_options): Separate non-LTO related parts into ..
3153 (cc1_non_lto_options): Non-LTO related options shared by all FEs.
3154 (lto1_options): New spec for lto FE.
3155 (link_lto_options): New spec for handling LTO flags in linker.
3156 (invoke_lto_single): Re-format to fit in 80 column. Replace
3157 lto-single with lto-option.
3158 (static_specs): Add cc1_non_lto_options, lto1_options and
3159 link_lto_options.
3160 (static_spec_function): Replace lto-single with lto-option.
85760734
UB
3161 (process_command): Handle -flto, -fwpa and -fltran by setting
3162 current_lto_option and not passing it to subprocess unconditionally.
d7f09764
DN
3163
31642009-10-03 Bill Maddox <maddox@google.com>
3165
3166 Add `gcc' driver support for link-time code generation (LTO).
3167
3168 * collect2.c (enum pass): Add new literal PASS_LTOINFO.
3169 (lto_flag, lto_objects, lto_o_file): New variables.
3170 (struct lto_object, struct lto_object_list): New structures.
3171 (collect_exit, handler): Remove LTO temporary output file on exit.
3172 (add_lto_object): New function.
3173 (maybe_run_lto_and_relink): New function. Perform link time code
3174 generation and relinking for object files containing LTO information.
3175 (main): Invoke maybe_run_lto_and_relink().
3176 (dump_argv): New function. For debugging, currently disabled.
3177 (scan_prog_file): Add LTO information pass.
3178 * gcc.c (LINK_COMMAND_SPEC): Pass `-flto' switch to linker, i.e.,
3179 collect2.
3180 * toplev.c (compile_file): Emit assembler directive to create
3181 the `gnu_lto_v1' marker symbol when compiling with `-flto'.
3182
31832009-10-03 Diego Novillo <dnovillo@google.com>
3184
3185 * c.opt: Add LTO to warn_abi and warn_psabi.
3186
85760734
UB
3187 * tree.c (fld_worklist_push): Rename from PUSH. Convert to static
3188 inline function. Ignore language-specific nodes. Update all users.
d7f09764 3189 (find_decls_types_r): Do not traverse the subtrees of
85760734 3190 language-specific nodes. Do not traverse DECL_INITIAL for TYPE_DECLs.
d7f09764
DN
3191 * tree.h (is_lang_specific): New.
3192 * langhooks.h (struct lang_hooks_for_decls): Remove
3193 may_need_assembler_name_p. Update all users.
3194
3195 * c-common.c (set_builtin_user_assembler_name): Move ...
3196 * builtins.c (set_builtin_user_assembler_name): ... here.
3197 (is_builtin_name): Add comment
3198 (is_builtin_fn): New.
3199 * except.c (output_ttype): Only call
3200 lookup_type_for_runtime if TYPE is not a runtime type.
3201
3202 * passes.c (register_pass): Call position_pass on
85760734 3203 all_small_ipa_passes, all_regular_ipa_passes and all_lto_gen_passes.
d7f09764
DN
3204 * timevar.def (TV_IPA_LTO_GIMPLE_IO): Define.
3205 (TV_IPA_LTO_DECL_IO): Define.
3206 (TV_IPA_LTO_CGRAPH_IO): Define.
3207 (TV_LTO): Define.
3208 (TV_WHOPR_WPA): Define.
3209 (TV_WHOPR_WPA_IO): Define.
3210 (TV_WHOPR_LTRANS): Define.
3211 (TV_WHOPR_WPA_FIXUP): Define.
3212 (TV_WHOPR_WPA_LTRANS_EXEC): Define.
3213 * tree-cfg.c (tree_node_can_be_shared): Make extern.
3214 * tree-flow.h (tree_node_can_be_shared): Declare.
3215 * tree-inline.c (tree_can_inline_p): Check that E has a
3216 statement associated with it.
3217 * tree.c (free_lang_data_in_binf): Factor out of ...
3218 (free_lang_data_in_type): ... here.
3219 Call RECORD_OR_UNION_TYPE_P.
85760734
UB
3220 (need_assembler_name_p): Ignore DECL if it does not have TREE_PUBLIC
3221 set. Call lang_hooks.decls.may_need_assembler_name_p if set.
3222 (free_lang_data_in_decl): Do not clear DECL_CONTEXT for CONST_DECLs.
3223 (free_lang_data): Set debug_info_level to DINFO_LEVEL_NONE. Set
3224 write_symbols to NO_DEBUG. Set debug_hooks to do_nothing_debug_hooks.
3225 (gate_free_lang_data): Return true if flag_generate_lto is set.
d7f09764
DN
3226 (walk_tree_1): Call RECORD_OR_UNION_TYPE_P.
3227 * c-common.h (set_builtin_user_assembler_name): Move ...
3228 * tree.h (set_builtin_user_assembler_name): ... here.
3229
3230 * common.opt (flto-report): New flag.
85760734 3231 * opts.c (complain_wrong_lang): Do not complain if running lto1.
d7f09764
DN
3232 * collect2.c (scan_prog_file): Send the error output of
3233 'nm' to HOST_BIT_BUCKET.
3234
32352009-10-03 Ollie Wild <aaw@google.com>
3236
3237 * langhooks-def.h (lhd_begin_section): New function declaration.
3238 (lhd_write_section): New function declaration.
3239 (lhd_end_section): New function declaration.
3240 (LANG_HOOKS_BEGIN_SECTION): New macro.
3241 (LANG_HOOKS_WRITE_SECTION_DATA): New macro.
3242 (LANG_HOOKS_END_SECTION): New macro.
3243 (LANG_HOOKS_LTO): New macro.
3244 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_LTO.
3245 * langhooks.c (output.h): Add include.
3246 (saved_section): New static variable.
3247 (lhd_begin_section): New function.
3248 (lhd_write_section_data): New function.
3249 (lhd_end_section): New function.
3250 * langhooks.h (struct lang_hooks_for_lto): New structure.
3251 (struct lang_hooks): Add member lto.
3252 * Makefile.in (langhooks.o): Add dependency on output.h.
3253
3254 * c-opts.c (c_common_post_options): Handle -flto and -fwhopr.
3255
32562009-10-03 Richard Guenther <rguenther@suse.de>
3257
3258 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
3259 Handle LTO.
3260
32612009-10-03 Simon Baldwin <simonb@google.com>
3262 Richard Guenther <rguenther@suse.de>
3263 Janis Johnson <janis187@us.ibm.com>
3264 Doug Kwan <dougkwan@google.com>
3265 Diego Novillo <dnovillo@google.com>
3266 Ramana Radhakrishnan <ramana.r@gmail.com>
3267 Ollie Wild <aaw@google.com>
3268
3269 * doc/install.texi: Add documentation for libelf and --enable-lto.
85760734
UB
3270 * doc/invoke.texi: Document -fwpa, -flto, -fwhopr, -fltrans,
3271 -flto-report, -flto-compression-level and -use-linker-plugin.
3272 * doc/sourcebuild.texi: Document use of zlib. Document lto-plugin.
d7f09764
DN
3273 Add section for LTO Testing.
3274
15b3fbeb
CC
32752009-10-02 Cary Coutant <ccoutant@google.com>
3276
85760734
UB
3277 Add support for comdat type sections for DWARF v4.
3278 Merge from dwarf4 branch.
3279
15b3fbeb
CC
3280 * dwarf2out.c (DWARF_TYPE_SIGNATURE_SIZE): New constant.
3281 (dw_die_ref): Define vector type.
3282 (enum dw_val_class): Add dw_val_class_data8.
3283 (struct dw_val_struct): Add v.val_data8.
3284 (comdat_type_node_ref): New type.
3285 (struct die_struct): Move die_symbol into a union; add new field
3286 die_type_node. Change all uses.
3287 (comdat_type_node): New type.
3288 (skeleton_chain_node): New type.
3289 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): New constant.
3290 (comdat_type_list): New variable.
3291 (dwarf_tag_name): Add DW_TAG_type_unit.
3292 (dwarf_attr_name): Add DW_AT_signature.
3293 (add_AT_data8): New function.
3294 (replace_child): New function.
3295 (move_all_children): New function.
3296 (print_signature): New function.
3297 (print_die): Print signature information; add dw_val_class_data8.
3298 (attr_checksum): Support dw_val_class_data8.
85760734 3299 (CHECKSUM_STRING): Redefine for DWARF-4 to include trailing NULL byte.
15b3fbeb
CC
3300 (CHECKSUM_SLEB128, CHECKSUM_ULEB128): New macros.
3301 (checksum_sleb128, checksum_uleb128): New functions.
3302 (checksum_die_context): New function.
3303 (loc_checksum_ordered): New function.
3304 (attr_checksum_ordered): New function.
3305 (struct checksum_attributes): New structure.
3306 (collect_checksum_attributes): New function.
3307 (die_checksum_ordered): New function.
3308 (generate_type_signature): New function.
3309 (same_dw_val_p): Add dw_val_class_data8.
3310 (is_symbol_die): Use new is_declaration_die function.
3311 (is_declaration_die): New function.
3312 (should_move_die_to_comdat): New function.
3313 (clone_die): New function.
3314 (clone_tree): New function.
3315 (clone_as_declaration): New function.
3316 (copy_declaration_context): New function.
3317 (generate_skeleton_ancestor_tree): New function.
3318 (generate_skeleton_bottom_up): New function.
3319 (generate_skeleton): New function.
3320 (remove_child_or_replace_with_skeleton): New function.
3321 (break_out_comdat_types): New function.
3322 (struct decl_table_entry): New type.
3323 (htab_decl_hash): New function.
3324 (htab_decl_eq): New function.
3325 (htab_decl_del): New function.
3326 (copy_ancestor_tree): New function.
3327 (copy_decls_walk): New function.
3328 (copy_decls_for_unworthy_types): New function.
3329 (build_abbrev_table): Don't assert on missing die_symbol when doing
3330 comdat type sections.
85760734 3331 (size_of_die): Use DW_FORM_sig8 for external references. Add
15b3fbeb
CC
3332 dw_val_class_data8.
3333 (unmark_dies): Don't assert for unmarked dies when doing comdat
3334 type sections.
3335 (value_format): Support DW_FORM_sig8 and dw_val_class_data8.
3336 (output_signature): New function.
3337 (output_die): Likewise.
3338 (output_compilation_unit_header): Mark output as DWARF version 3
3339 even if generating DWARF 4.
3340 (output_comdat_type_unit): New function.
3341 (output_line_info): Mark output as DWARF version 3 even if generating
3342 DWARF 4.
3343 (dwarf2out_start_source_file): Don't do eliminate_dwarf2_dups with
3344 DWARF-4.
3345 (dwarf2out_end_source_file): Likewise.
3346 (prune_unused_types_walk_attribs): Don't follow references into
3347 comdat type sections.
3348 (prune_unused_types_mark): When generating type units, do not mark
3349 children of non-defining declarations of types; do mark children of
3350 type entries.
3351 (prune_unused_types): Process comdat type sections.
3352 (htab_ct_hash): New function.
3353 (htab_ct_eq): New function.
3354 (dwarf2out_finish): Move types to comdat sections when using DWARF-4.
3355 Add a pointer to the line table from type unit entries so
3356 DW_AT_decl_file has meaning.
3357 * varasm.c (default_elf_asm_named_section): Use identifier name as
3358 comdat key instead of lang hook.
3359
ad467730
NV
33602009-10-02 Neil Vachharajani <nvachhar@google.com>
3361
85760734 3362 * gcov-io.c (gcov_open): Open files read-only when MODE < 0.
ad467730 3363
9e51149d
UB
33642009-10-02 Uros Bizjak <ubizjak@gmail.com>
3365
458c00ff
UB
3366 * config/i386/i386.md (SWIM248): New mode iterator.
3367 (divmod<mode>4) Macroize expander from divmoddi4, divmodsi4 and
3368 divmodhi4 patterns using SWIM248 macro.
9e51149d
UB
3369 (*divmod<mode>4): Macroize insn_and_split pattern from
3370 *divmoddi4_cltd_rex64, *divmodsi4_cltd and divmodhi4 insn patterns
458c00ff 3371 and their corresponding splitters usign SWIM248 macro. Split SImode
9e51149d
UB
3372 insn to generate cltd and DImode insn to generate cqto instead of
3373 move+shift when optimizing for size or TARGET_USE_CLTD is in effect.
3374 (*divmoddi4_nocltd_rex64, *divmodsi4_nocltd): Remove insn patterns.
3375 (*divmod<mode>4_noext): Macroize insn from *divmoddi_noext_rex64 and
458c00ff 3376 *divmodsi_noext patterns using SWIM248 macro.
9e51149d 3377 (udivmod<mode>4): Macroize expander from udivmoddi4, udivmodsi4 and
458c00ff 3378 udivmodhi4 patterns using SWIM248 macro.
9e51149d
UB
3379 (*udivmod<mode>4): Macroize insn_and_split pattern from
3380 *udivmoddi4, udivmodsi4 and udivmodhi4 patterns and their
458c00ff 3381 corresponding splitters using SWIM248 macro.
9e51149d 3382 (*udivmod<mode>4_noext): Macroize insn from *udivmoddi4_noext,
458c00ff 3383 *udivmodsi4_noext and *udivmodhi_noext patterns using SWIM248 macro.
9e51149d 3384
c2ce8cdc
EB
33852009-10-02 Eric Botcazou <ebotcazou@adacore.com>
3386
3387 * stor-layout.c (layout_type) <ARRAY_TYPE>: Make sure that an array
3388 of zero-sized element is zero-sized regardless of its extent.
3389
e1b243a8
JJ
33902009-10-02 Jakub Jelinek <jakub@redhat.com>
3391
7d45fb94
JJ
3392 PR debug/40521
3393 * configure.ac (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): New test.
3394 * configure: Regenerated.
3395 * config.in: Regenerated.
3396 * dwarf2out.c (dwarf2out_do_cfi_asm): Return false if
3397 !HAVE_GAS_CFI_SECTIONS_DIRECTIVE and not emitting .eh_frame.
3398 (dwarf2out_init): If HAVE_GAS_CFI_SECTIONS_DIRECTIVE and
3399 not emitting .eh_frame, emit .cfi_sections .debug_frame
3400 directive.
3401
e1b243a8
JJ
3402 PR debug/41404
3403 PR debug/41353
3404 * cfgexpand.c (expand_debug_expr) <case STRING_CST>: Don't create
85760734
UB
3405 CONST_STRING if STRING_CST contains embedded '\0's or doesn't end
3406 with '\0'.
e1b243a8
JJ
3407 (expand_debug_expr) <case VAR_DECL>: For TREE_STATIC !DECL_EXTERNAL
3408 vars use DECL_RTL with resetting it back to NULL afterwards.
3409 * dwarf2out.c (same_dw_val_p): For dw_val_class_addr compare with
3410 rtx_equal_p instead of asserting it is a SYMBOL_REF.
3411 (value_format): For dw_val_class_addr only use DW_FORM_addr if
3412 the attribute type allows it, otherwise use DW_FORM_dataN.
3413 (mem_loc_descriptor): Handle CONST_STRING.
3414 (add_const_value_attribute): Handle CONST_STRING using add_AT_addr.
3415 Handle MEM with CONST_STRING address using add_AT_string.
3416 (rtl_for_decl_init): Return MEM with CONST_STRING address instead of
3417 CONST_STRING for const arrays initialized with a string literal.
3418 (resolve_one_addr, resolve_addr_in_expr, resolve_addr): New functions.
3419 (dwarf2out_finish): Call resolve_addr.
3420
74d174c6
AS
34212009-10-02 Andreas Schwab <schwab@linux-m68k.org>
3422 Maxim Kuvyrkov <maxim@codesourcery.com>
9e51149d 3423
74d174c6
AS
3424 * config/m68k/lb1sf68.asm (PICCALL): Use variable sized branch.
3425
33561817
NC
34262009-10-02 Nick Clifton <nickc@redhat.com>
3427
3428 * config/mn10300/mn10300.h (USER_LABEL_PREFIX): Define.
3429 (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
3430
03ec7d01
JH
34312009-10-01 Jan Hubicka <jh@suse.cz>
3432
3433 * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
3434 (cgraph_create_virtual_clone): Just pass redirect_callers
3435 around.
3436 * cgraph.h (cgraph_clone_node): Update prototype.
3437 * ipa-pure-const.c (self_recursive_p): New function.
3438 (propagate): Use it.
3439 * ipa-inline.c (cgraph_clone_inlined_nodes,
3440 cgraph_decide_recursive_inlining): Update.
3441
916e9b31
DD
34422009-10-01 David Daney <ddaney@caviumnetworks.com>
3443
3444 * gcc/config/mips/mips.c (mips_process_sync_loop) Emit syncw
3445 instructions for TARGET_OCTEON.
3446
3a303360
RR
34472009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3448
3449 * config/arm/arm.c (arm_override_options): Turn off
3450 flag_dwarf2_cfi_asm for AAPCS variants.
3451
6096017e
MJ
34522009-10-01 Martin Jambor <mjambor@suse.cz>
3453
3454 PR middle-end/12392
3455 * tree-sra.c (convert_callers): Do not call
3456 compute_inline_parameters on one caller more than once.
3457
34f9cdb5
NC
34582009-10-01 Nick Clifton <nickc@redhat.com>
3459
3460 * config/vax/netbsd-elf.h (NETBSD_CC1_AND_CC1PLUS_SPEC): Define as
3461 an empty string if not already defined.
3462
1e9fb3de
MJ
34632009-10-01 Martin Jambor <mjambor@suse.cz>
3464
3465 PR bootstrap/41395
3466 * tree-sra.c (is_va_list_type): New function.
3467 (find_var_candidates): Call is_va_list_type.
3468 (find_param_candidates): Check that the type or the type pointed
3469 to are not va_list types.
3470
ed9fa133
MJ
34712009-10-01 Martin Jambor <mjambor@suse.cz>
3472
3473 PR c++/41503
3474 * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
3475 DECL_ARTIFICIAL (param_decl) is true.
9e51149d 3476
7ecbca9d
GDR
34772009-09-30 Gabriel Dos Reis <gdr@cs.tamu.edu>
3478
3479 * tree.h (tree_decl_common::lang_flag_8): New.
3480 * c-common.c (c_common_reswords): Include "constexpr" as C++0x
9e51149d 3481 keyword.
7ecbca9d
GDR
3482 * c-common.h (RID_CONSTEXPR): New.
3483
1f063d10
UB
34842009-09-30 Uros Bizjak <ubizjak@gmail.com>
3485
3486 * config/alpha/alpha.c (alpha_gimplify_va_arg_1):
3487 Use ref-all pointers.
3488 (alpha_gimplify_va_arg): Ditto.
3489
53a51cef
JJ
34902009-09-30 Jakub Jelinek <jakub@redhat.com>
3491
3492 PR target/41279
3493 * cfgloopanal.c (num_loop_insns): Don't increment ninsns for each bb
3494 before insn counting loop now that BB_END (bb) is counted. Ensure
3495 the return value isn't zero.
3496
3c8348d3
NC
34972009-09-30 Nick Clifton <nickc@redhat.com>
3498
3499 * config.gcc (sh-symbianelf): Replace definition of extra_objs
3500 with separate definitions of c_target_objs and cxx_target_objs.
3501 * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o
3502 and symbian-base.o.
3503 * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use
3504 sh_symbian_import_export_class.
3505 * config/sh/sh-protos.h: Fix names of exported symbian functions.
3506 * config/sh/symbian.c: Delete, moving code into...
3507 * config/sh/symbian-base.c: ... here
3508 * config/sh/symbian-c.c: ... and here
3509 * config/sh/symbian-cxx.c: ... and here.
3510
08a4a761
UB
35112009-09-30 Uros Bizjak <ubizjak@gmail.com>
3512
3513 PR target/22093
3514 * config/alpha/alpha.md (unaligned_storehi_be): Force operand
3515 of plus RTX into register.
3516
0b70519f
RW
35172009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3518
3519 * doc/install.texi: Linguistic and markup fixes.
3520 (Configuration) <--disable-cpp>: Remove description.
3521 <--enable-maintainer-mode>: Autotools files are affected, too.
3522 <--with-sysroot>: Improve description.
3523 (Building): Bump required GNU make version.
3524
cbf2e4d4
HJ
35252009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
3526
3527 * config.gcc (i[34567]86-*-*): Include fma4intrin.h.
3528 (x86_64-*-*): Ditto.
1f063d10 3529
cbf2e4d4
HJ
3530 * config/i386/fma4intrin.h: New file, provide common x86 compiler
3531 intrinisics for FMA4.
3532 * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit.
3533 * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a.
3534 Add FMA4 check and fma4intrin.h.
3535 * config/i386/i386-c.c(ix86_target_macros_internal): Check
1f063d10 3536 ISA_FLAG for FMA4.
cbf2e4d4
HJ
3537 * config/i386/i386.h(TARGET_FMA4): New macro for FMA4.
3538 * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC
3539 constant for FMA4 support.
3540 (UNSPEC_FMA4_FMADDSUB): Ditto.
3541 (UNSPEC_FMA4_FMSUBADD): Ditto.
3542 * config/i386/i386.opt (-mfma4): New switch for FMA4 support.
1f063d10 3543 * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration.
cbf2e4d4
HJ
3544 (ix86_expand_fma4_multiple_memory): Ditto.
3545 * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New.
1f063d10
UB
3546 (OPTION_MASK_ISA_FMA4_UNSET): New.
3547 (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4.
3548 (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4.
cbf2e4d4
HJ
3549 (ix86_handle_option): Handle -mfma4.
3550 (isa_opts): Handle -mfma4.
3551 (enum pta_flags): Add PTA_FMA4.
1f063d10 3552 (override_options): Add FMA4 support.
cbf2e4d4
HJ
3553 (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic.
3554 (IX86_BUILTIN_VFMADDSD): Ditto.
3555 (IX86_BUILTIN_VFMADDPS): Ditto.
3556 (IX86_BUILTIN_VFMADDPD): Ditto.
3557 (IX86_BUILTIN_VFMSUBSS): Ditto.
3558 (IX86_BUILTIN_VFMSUBSD): Ditto.
3559 (IX86_BUILTIN_VFMSUBPS): Ditto.
3560 (IX86_BUILTIN_VFMSUBPD): Ditto.
3561 (IX86_BUILTIN_VFMADDSUBPS): Ditto.
3562 (IX86_BUILTIN_VFMADDSUBPD): Ditto.
3563 (IX86_BUILTIN_VFMSUBADDPS): Ditto.
3564 (IX86_BUILTIN_VFMSUBADDPD): Ditto.
3565 (IX86_BUILTIN_VFNMADDSS): Ditto.
3566 (IX86_BUILTIN_VFNMADDSD): Ditto.
3567 (IX86_BUILTIN_VFNMADDPS): Ditto.
3568 (IX86_BUILTIN_VFNMADDPD): Ditto.
3569 (IX86_BUILTIN_VFNMSUBSS): Ditto.
3570 (IX86_BUILTIN_VFNMSUBSD): Ditto.
3571 (IX86_BUILTIN_VFNMSUBPS): Ditto.
3572 (IX86_BUILTIN_VFNMSUBPD): Ditto.
3573 (IX86_BUILTIN_VFMADDPS256): Ditto.
3574 (IX86_BUILTIN_VFMADDPD256): Ditto.
3575 (IX86_BUILTIN_VFMSUBPS256): Ditto.
3576 (IX86_BUILTIN_VFMSUBPD256): Ditto.
3577 (IX86_BUILTIN_VFMADDSUBPS256): Ditto.
3578 (IX86_BUILTIN_VFMADDSUBPD256): Ditto.
3579 (IX86_BUILTIN_VFMSUBADDPS256): Ditto.
3580 (IX86_BUILTIN_VFMSUBADDPD256): Ditto.
3581 (IX86_BUILTIN_VFNMADDPS256): Ditto.
3582 (IX86_BUILTIN_VFNMADDPD256): Ditto.
3583 (IX86_BUILTIN_VFNMSUBPS256): Ditto.
3584 (IX86_BUILTIN_VFNMSUBPD256): Ditto.
3585 (enum multi_arg_type): New enum for describing the various FMA4
3586 intrinsic argument types.
3587 (bdesc_multi_arg): New table for FMA4 intrinsics.
3588 (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support.
3589 (ix86_expand_multi_arg_builtin): New function for creating FMA4
3590 intrinsics.
3591 (ix86_expand_builtin): Add FMA4 intrinsic support.
3592 (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4
3593 operand instructions.
3594 (ix86_expand_fma4_multiple_memory): New function to split the
3595 second memory reference from FMA4 instructions.
3596 * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4.
3597 (ssemodesuffixf2s): Ditto.
3598 (fma4_fmadd<mode>4): Add FMA4 floating point multiply/add
3599 instructions.
3600 (fma4_fmsub<mode>4): Ditto.
3601 (fma4_fnmadd<mode>4): Ditto.
3602 (fma4_fnmsub<mode>4): Ditto.
3603 (fma4_vmfmadd<mode>4): Ditto.
3604 (fma4_vmfmsub<mode>4): Ditto.
3605 (fma4_vmfnmadd<mode>4): Ditto.
3606 (fma4_vmfnmsub<mode>4): Ditto.
3607 (fma4_fmadd<mode>4256): Ditto.
3608 (fma4_fmsub<mode>4256): Ditto.
3609 (fma4_fnmadd<mode>4256): Ditto.
3610 (fma4_fnmsub<mode>4256): Ditto.
3611 (fma4_fmaddsubv8sf4): Ditto.
3612 (fma4_fmaddsubv4sf4): Ditto.
3613 (fma4_fmaddsubv4df4): Ditto.
3614 (fma4_fmaddsubv2df4): Ditto.
3615 (fma4_fmsubaddv8sf4): Ditto.
3616 (fma4_fmsubaddv4sf4): Ditto.
3617 (fma4_fmsubaddv4df4): Ditto.
3618 (fma4_fmsubaddv2df4): Ditto.
3619 (fma4i_fmadd<mode>4): Add FMA4 floating point multiply/add
3620 instructions for intrinsics.
3621 (fma4i_fmsub<mode>4): Ditto.
3622 (fma4i_fnmadd<mode>4): Ditto.
3623 (fma4i_fnmsub<mode>4): Ditto.
3624 (fma4i_vmfmadd<mode>4): Ditto.
3625 (fma4i_vmfmsub<mode>4): Ditto.
3626 (fma4i_vmfnmadd<mode>4): Ditto.
3627 (fma4i_vmfnmsub<mode>4): Ditto.
3628 (fma4i_fmadd<mode>4256): Ditto.
3629 (fma4i_fmsub<mode>4256): Ditto.
3630 (fma4i_fnmadd<mode>4256): Ditto.
3631 (fma4i_fnmsub<mode>4256): Ditto.
3632 (fma4i_fmaddsubv8sf4): Ditto.
3633 (fma4i_fmaddsubv4sf4): Ditto.
3634 (fma4i_fmaddsubv4df4): Ditto.
3635 (fma4i_fmaddsubv2df4): Ditto.
3636 (fma4i_fmsubaddv8sf4): Ditto.
3637 (fma4i_fmsubaddv4sf4): Ditto.
3638 (fma4i_fmsubaddv4df4): Ditto.
3639 (fma4i_fmsubaddv2df4): Ditto.
3640
3641 * doc/invoke.texi (-mfma4): Add documentation.
3642 * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics.
3643
f8fd49b5
RH
36442009-09-29 Richard Henderson <rth@redhat.com>
3645
3646 * tree-eh.c (unsplit_eh): Do not unsplit if there's already
3647 an edge to the new destination block.
3648
062a5fd1
JDA
36492009-09-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3650
3651 PR target/41393
3652 * pa.c (hppa_profile_hook): Use
3653 make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
3654
cd17b213
SE
36552009-09-29 Steve Ellcey <sje@cup.hp.com>
3656 Alexander Monakov <amonakov@ispras.ru>
3657
1f063d10 3658 PR target/41365
cd17b213
SE
3659 * config/ia64/predicates.md (not_postinc_destination_operand): New.
3660 (not_postinc_memory_operand): New.
3661 (not_postinc_move_operand): New.
3662 * config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
3663 (*cmovsi_internal): Ditto.
3664
e7ada00d
PH
36652009-09-29 Pat Haugen <pthaugen@us.ibm.com>
3666
3667 * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
3668 restrict issue_rate in first pass when scheduling for register
3669 pressure.
3670
9b39cba9 36712009-09-29 Basile Starynkevitch <basile@starynkevitch.net>
aeaf114b 3672 Rafael Avila de Espindola <espindola@google.com>
9b39cba9
BS
3673
3674 * gengtype.c (plugin_output): New.
3675 (get_output_file_with_visibility): Return plugin_output for plugins.
3676 (main): Parse and use the -P option.
3677 * gty.texi: Update the command line format.
3678
08cc1e7f
JJ
36792009-09-29 Jakub Jelinek <jakub@redhat.com>
3680
3681 PR debug/41438
3682 * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
3683 functions.
3684 (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
3685 out if !const_ok_for_output.
3686
3687 PR debug/41474
3688 * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
3689 case VAR_LOCATION>: Remove gcc_unreachable ().
3690
a795ca6e
HJ
36912009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
3692
3693 * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
1f063d10 3694 (x86_64-*-*): Ditto.
a795ca6e
HJ
3695 * config/i386/smmintrin.h: Move instructions in mmintrin-common.h
3696 back to smmintrin.h.
bd62d832 3697 * config/i386/cpuid.h (bit_SSE5): Remove SSE5 bit.
a795ca6e 3698 * config/i386/x86intrin.h: Remove SSE5.
1f063d10
UB
3699 * config/i386/mmintrin-common.h: Delete file.
3700 * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins.
a795ca6e 3701
b0e96404
RG
37022009-09-29 Richard Guenther <rguenther@suse.de>
3703
3704 * alias.c (ao_ref_from_mem): Properly deal with off decl accesses
3705 resulting from stack temporaries on STRICT_ALIGNMENT targets.
3706
c7ac4fb5
NC
37072009-09-29 Nick Clifton <nickc@redhat.com>
3708
3709 * function.c (current_function_name): If there is no current
3710 function just return "<none>".
3711
b80b0fd9
ST
37122009-09-28 Sriraman Tallam <tmsriram@google.com>
3713
1f063d10 3714 * tree-pass.h (register_pass_info): New structure.
b80b0fd9
ST
3715 (pass_positioning_ops): Move enum from gcc-plugin.h.
3716 (register_pass): New function.
3717 * gcc-plugin.h (plugin_pass): Delete structure.
3718 (pass_positioning_ops): Delete enum.
3719 * plugin.c (regsiter_pass): Delete function.
3720 (position_pass): Delete function.
3721 (added_pass_nodes): Delete variable.
3722 (prev_added_pass_nodes): Delete variable.
3723 (pass_list_node): Delete structure.
3724 * passes.c (make_pass_instance): New function.
3725 (next_pass_1): Change to call make_pass_instance.
3726 (pass_list_node): Move structure from gcc-plugin.h.
3727 (added_pass_nodes): Move variable from plugin.c.
3728 (prev_added_pass_nodes): Move variable from plugin.c.
3729 (position_pass): New function.
3730 (register_pass): New function.
3731
65026047
ER
37322009-09-28 Easwaran Raman <eraman@google.com>
3733
3734 * ifcvt.c (noce_try_abs): Recognize pattern and call
3735 expand_one_cmpl_abs_nojump.
3736 * optabs.c (expand_one_cmpl_abs_nojump): New function.
3737 * optabs.h (expand_one_cmpl_abs_nojump): Declare.
3738
13ebf17b
ILT
37392009-09-28 Ian Lance Taylor <iant@google.com>
3740
3741 PR middle-end/40500
3742 * c-opts.c (c_common_handle_option): Don't set
3743 warn_jump_misses_init for -Wall.
3744 * doc/invoke.texi (Warning Options): Update documentation.
3745
2bc98066
RW
37462009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3747
3748 * Makefile.in ($(out_object_file)): Depend on
3749 gt-$(basename $(notdir $(out_file))).h.
3750
384c400a
RH
37512009-09-28 Richard Henderson <rth@redhat.com>
3752
3753 * except.h (struct eh_region_d): Add use_cxa_end_cleanup.
3754 * except.c (gen_eh_region): Set it.
3755 (duplicate_eh_regions_1): Copy it.
3756 * tree-eh.c (lower_resx): Use it to determine which function
3757 to call to resume.
3758
3759 * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
3760 * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
3761 * builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
3762 * tree.c (build_common_builtin_nodes): Remove parameter. Build
3763 BUILT_IN_CXA_END_CLEANUP if necessary.
3764
3765 * c-common.c (c_define_builtins): Update call to
3766 build_common_builtin_nodes.
3767
aa633255
AP
37682009-09-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
3769
3770 * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
3771
44e10129
MM
37722009-09-28 Michael Matz <matz@suse.de>
3773
3774 * builtins.c (interclass_mathfn_icode): New helper.
3775 (expand_builtin_interclass_mathfn): Use it here, and split folding
3776 into ...
3777 (fold_builtin_interclass_mathfn): ... this new folder.
3778 (build_call_nofold_loc): New static helper.
3779 (build_call_nofold): New wrapper macro for above.
3780 (expand_builtin_int_roundingfn): Use it instead of build_call_expr.
3781 (expand_builtin_pow): Ditto.
3782 (expand_builtin_memset_args): Ditto.
3783 (expand_builtin_printf): Ditto.
3784 (expand_builtin_fprintf): Ditto.
3785 (expand_builtin_sprintf): Ditto.
3786 (expand_builtin_memory_chk): Ditto.
3787 (expand_builtin_mempcpy_args): Ditto and don't call folders.
3788 (expand_builtin_stpcpy): Ditto.
3789 (expand_builtin_strcmp): Ditto.
3790 (expand_builtin_strncmp): Ditto.
3791 (expand_builtin_strcpy): Remove FNDECL and MODE arguments.
3792 (expand_builtin_strcpy_args): Don't call folders.
3793 (expand_builtin_memcmp): Ditto.
3794 (expand_builtin_strncpy): Ditto, and use target.
3795 (expand_builtin_memcpy): Ditto.
3796 (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
3797 expand_builtin_strpbrk, expand_builtin_memmove,
3798 expand_builtin_memmove_args, expand_builtin_bcopy,
3799 expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
3800 expand_builtin_strspn, expand_builtin_strcspn,
3801 expand_builtin_fputs): Remove these.
3802 (expand_builtin): Don't call the above, change calls to other
3803 expanders that changed prototype.
3804 (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
3805 (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
3806 fold_builtin_interclass_mathfn.
3807 (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
3808 (fold_builtin_strcat): Add folding split from expand_builtin_strcat.
3809
3810 * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
3811 * passes.c (init_optimization_passes): Move pass_fold_builtins
3812 after last phiopt pass.
3813 * tree-inline.c (fold_marked_statements): When folding builtins
3814 iterate over all instruction potentially generated.
3815 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
3816 earlier.
3817 (fold_gimple_call): Use it to always fold calls (into potentially
3818 multiple instructions).
3819 * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
3820 calls into zero at this time.
1f063d10 3821 * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple
44e10129
MM
3822 statements generated by builtin folding.
3823
d813aaba
NC
38242009-09-28 Nick Clifton <nickc@redhat.com>
3825
85760734 3826 * config/m32r/m32r.c (m32r_is_insn): Return false for debugging insns.
d813aaba 3827
1d7d659d 38282009-09-28 Duncan Sands <baldrick@free.fr>
32c9b4e9
DS
3829
3830 * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
3831 * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
3832 (register_callback): Dispatch it.
3833 (invoke_plugin_callbacks): Incorporate in sanity check.
3834 * ggc.h (ggc_register_cache_tab): Add declaration.
3835 * ggc-common.c (ggc_register_root_tab): Simplify.
3836 (const_ggc_cache_tab_t): New typedef.
3837 (extra_cache_vec): New vector of dynamically added cache tables.
3838 (ggc_register_cache_tab): New function.
3839 (ggc_scan_cache_tab): New function.
3840 (ggc_mark_roots): Simplify dynamic roots. Handle dynamic caches.
3841 * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
3842
ff9d1adc
RH
38432009-09-27 Richard Henderson <rth@redhat.com>
3844
3845 * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
3846 which we remove __builtin_stack_restore.
3847
cdf1bf8b
BS
38482009-09-27 Bernd Schmidt <bernd.schmidt@analog.com>
3849
3850 * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
3851 to test for GRD_INVARIANT.
3852 (simple_rhs_p): Anything that's function_invariant_p is fine.
3853
ea2ca633
RE
38542009-09-27 Rafael Avila de Espindola <espindola@google.com>
3855
3856 * gengtype.c (main): Use plunge_files instead of plugin_output.
3857
99be7084
BS
38582009-09-27 Basile Starynkevitch <basile@starynkevitch.net>
3859 Rafael Avila de Espindola <espindola@google.com>
3860
3861 * gengtype.c (write_root, write_roots): Add a emit_pch argument.
3862 Don't print pch related info if it is false.
3863 (main): Don't print pch info in plugin mode.
3864
4c0ce3c9 38652009-09-27 Eric Botcazou <ebotcazou@adacore.com>
afbd0665 3866
4c0ce3c9
EB
3867 * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
3868 with dw_val_class_const_double.
3869 (struct dw_val_struct): Replace val_long_long with val_double and
3870 adjust for above change.
3871 (output_loc_operands): Likewise.
3872 (add_AT_long_long): Rename into...
3873 (add_AT_double): ...this.
3874 (print_die): Replace dw_val_class_long_long with
3875 dw_val_class_const_double and adjust.
3876 (attr_checksum): Likewise.
3877 (same_dw_val_p): Likewise.
3878 (size_of_die): Likewise.
3879 (value_format): Likewise.
3880 (output_die): Likewise.
3881 (loc_descriptor) <CONST_DOUBLE>: Likewise.
3882 (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
3883 instead of add_AT_long_long.
3884 (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
3885 value with the precision of its type.
3886
38872009-09-27 Andreas Schwab <schwab@linux-m68k.org>
3888
3889 PR c/41476
afbd0665
AS
3890 * c-typeck.c (build_conditional_expr): Use the readonly and
3891 volatile flags of the operand types, not of the operands itself.
3892
4c0ce3c9 38932009-09-27 Peter O'Gorman <pogma@thewrittenword.com>
88febe35 3894
85760734 3895 * collect2.c (main): Look for -brtl before adding libraries.
88febe35 3896
4c0ce3c9 38972009-09-27 Jonathan Gray <jsg@openbsd.org>
aa58f943
JG
3898
3899 * config.gcc: Update OpenBSD targets.
3900 * config/openbsd-stdint.h: New file.
3901 * config/openbsd-libpthread.h: New file.
3902 * config/openbsd.h: Update and break out LIB_SPEC definition.
3903 * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
3904 * config/i386/openbsdelf.h: Correct types.
3905 * config/m68k/openbsd.h: Likewise.
3906 * config/mips/openbsd.h: Likewise.
3907 * config/vax/openbsd.h: Likewise.
3908
ffaf6f25
EB
39092009-09-27 Eric Botcazou <ebotcazou@adacore.com>
3910
3911 * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
3912 (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
3913 * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
3914 of the length and zero.
3915
c829a888
RW
39162009-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3917
464778c0
RW
3918 * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
3919 (FLAGS_H): Add options.h $(REAL_H).
3920 (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
3921 (TREE_VECTORIZER_H): New.
3922 (EBITMAP_H): Renamed from EBIMAP_H.
3923 (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
3924 (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
3925 (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
3926 (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
3927 (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
3928 (graphite-clast-to-gimple.o, graphite-dependences.o)
3929 (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
3930 (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
3931 (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
3932 (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
3933 (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
3934 (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
3935 (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
3936 (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
3937 (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
3938 updated and fixed as per above changes and per
3939 check_makefile_deps.sh output.
3940
c829a888
RW
3941 PR bootstrap/40928
3942 * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
3943 * configure: Regenerate.
3944
3e661154
KG
39452009-09-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3946
3947 * doc/install.texi: Update minimum MPC version to 0.7.
3948
39088c66
GP
39492009-09-26 Gerald Pfeifer <gerald@pfeifer.com>
3950
3951 * doc/install.texi (Binaries): Remove reference to the binary
3952 distribution CD-ROM from the FSF.
3953
0ffd2048
MM
39542009-09-26 Michael Matz <matz@suse.de>
3955
3956 PR lto/40758
3957 PR middle-end/41470
3958 * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
3959 that are mentioned in the body.
3960
87c93592
MM
39612009-09-26 Michael Matz <matz@suse.de>
3962
3963 PR tree-optimization/41454
3964 * tree-ssa-dom (stmts_to_rescan): Remove variable.
3965 (tree_ssa_dominator_optimize): Don't allocate and free it.
3966 (dom_opt_leave_block): Don't iterate over it.
3967 (eliminate_redundant_computations): Don't return a value.
3968 (cprop_operand, cprop_into_stmt): Ditto.
3969 (optimize_stmt): Don't defer updating stmts.
3970
7653f273 39712009-09-25 Dodji Seketeli <dodji@redhat.com>
072c87d1 3972
7653f273
DS
3973 * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
3974 generic_parameter_die, template_parameter_pack_die,
85760734
UB
3975 gen_formal_parameter_die, gen_subprogram_die): Adjust after
3976 renaming DW_TAG_formal_parameter_pack and
3977 DW_TAG_template_parameter_pack into DW_TAG_GNU_formal_parameter_pack
3978 and DW_TAG_GNU_template_parameter_pack.
072c87d1 3979
14a878f3
AS
39802009-09-25 Anatoly Sokolov <aesok@post.ru>
3981
3982 * config/v850/v850.h (FUNCTION_VALUE): Remove.
3983 * config/v850/v850.c (v850_function_value): New function.
3984 (TARGET_FUNCTION_VALUE): Define.
3985
94c08201
JJ
39862009-09-25 Jakub Jelinek <jakub@redhat.com>
3987
7411b8f0
JJ
3988 * tree-vect-stmts.c (vectorizable_call): Call
3989 mark_symbols_for_renaming after vect_finish_stmt_generation.
3990
94c08201
JJ
3991 * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
3992 to loc_descriptor_from_tree.
3993 (add_location_or_const_value_attribute): Pass 0 instead of 2
3994 for decl_by_reference_p decls.
3995
79441eca
RG
39962009-09-25 Richard Guenther <rguenther@suse.de>
3997
3998 PR middle-end/41463
3999 * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
4000 arrays again.
4001
7930dab0
BE
40022009-09-25 Ben Elliston <bje@au.ibm.com>
4003
4004 * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma
4005 after `power7'.
4006
3025dff8
AM
40072009-09-25 Alan Modra <amodra@bigpond.net.au>
4008
4009 * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
4010 form of instruction.
4011
e3d5405d
KG
40122009-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4013
4014 PR middle-end/41435
4015 * fold-const.c (const_binop): Handle complex int division.
4016 * tree-complex.c (expand_complex_div_straight,
4017 expand_complex_div_wide): Update comments.
4018
18b80268
DD
40192009-09-24 DJ Delorie <dj@redhat.com>
4020
4021 PR target/41456
4022 * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13.
4023 (reg_class): Likewise.
4024 (REG_CLASS_NAMES): Likewise.
4025 * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
85760734 4026 (m32c_override_options): Disable -fivopts for M32C.
18b80268 4027
368908d8
MM
40282009-09-24 Michael Meissner <meissner@linux.vnet.ibm.com>
4029
4030 * config/rs6000/predicates.md (indexed_or_indirect_operand):
4031 Delete VSX load/store with update support.
4032 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto.
4033 * config/rs6000/vsx.md (vsx_mov<mode>): Ditto.
4034 (vsx_movti): Ditto.
4035 (VSX_U): Delete.
4036 (VSbit): Ditto.
4037 (VStype_load_update): Ditto.
4038 (VStype_store_update): Ditto.
4039 (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto.
4040 (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto.
4041
4042 * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX
4043 load/store with update builtins.
4044
0a38153f
KT
40452009-09-24 Kai Tietz <kai.tietz@onevision.com>
4046
4047 * libgcc2.c (L_trampoline): Prototype for getpagesize
4048 and mprotect in WINNT case.
4049
3faa6313
AS
40502009-09-24 Anatoly Sokolov <aesok@post.ru>
4051
4052 * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro.
4053 * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove.
4054 * config/rs6000/rs6000.c (rs6000_function_value): Make static, add
4055 'outgoing' argument.
4056 (TARGET_FUNCTION_VALUE): Define.
4057
2d84a337
IS
40582009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
4059
4060 * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1.
4061
047a3193
IS
40622009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
4063
4064 PR bootstrap/41405
afbd0665 4065 * common.opt: Initialize dwarf_strict to -1.
047a3193
IS
4066 * toplev.c (process_options): Catch unset dwarf_strict
4067 and set to 0 for all targets not overriding.
4068 * config/darwin.c (darwin_override_options): Catch unset
4069 dwarf_strict and override to 1.
4070
b5dcb2b9
JL
40712009-09-24 Jeff Law <law@redhat.com>
4072
afbd0665 4073 * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
b5dcb2b9 4074
824ff0cd
RG
40752009-09-24 Richard Guenther <rguenther@suse.de>
4076
4077 PR tree-optimization/36143
4078 PR tree-optimization/38747
4079 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
4080 create VIEW_CONVERT_EXPRs for TBAA compatible accesses.
4081
22a3138f
JJ
40822009-09-24 Jakub Jelinek <jakub@redhat.com>
4083
4084 PR bootstrap/41457
4085 * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED,
4086 return false instead of gcc_unreachable (). For CONST return the
4087 value returned by recursive call instead of always returning true.
4088 (tree_add_const_value_attribute): Return the value returned by
4089 add_const_value_attribute instead of always returning true if rtl
4090 is non-NULL.
4091
40922009-09-23 Justin Seyster <jrseys@gmail.com>
6209e51c
JS
4093
4094 * Makefile.in (PLUGIN_HEADERS): Include real.h.
4095
9f62cb92
JJ
40962009-09-24 Jakub Jelinek <jakub@redhat.com>
4097
4098 * cgraphunit.c (cgraph_lower_function): Revert last change.
4099 * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
4100 instead of DECL_NO_STATIC_CHAIN.
4101 * tree-cfg.c (verify_gimple_call): Likewise.
4102 * tree-nested.c (get_chain_decl, get_chain_field,
4103 convert_tramp_reference_op, convert_gimple_call): Likewise.
4104 (convert_all_function_calls): Likewise. Always set or clear
4105 DECL_STATIC_CHAIN initially, for !n->outer clear it.
4106 (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
4107 * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
4108 if nested.
4109 * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
4110 DECL_NO_STATIC_CHAIN.
4111 * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
4112 instead of DECL_NO_STATIC_CHAIN.
4113 (ix86_function_regparm, find_drap_reg): Likewise. Don't test
4114 decl_function_context.
4115 * varasm.c (initializer_constant_valid_p): Likewise.
4116 * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
4117 (DECL_STATIC_CHAIN): ... this.
4118 * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
4119 instead of DECL_NO_STATIC_CHAIN.
4120
9f78bf05 41212009-09-23 Basile Starynkevitch <basile@starynkevitch.net>
6209e51c 4122 Rafael Avila de Espindola <espindola@google.com>
9f78bf05
BS
4123
4124 * gengtype.c (nb_plugin_files): Make it unsigned to match
4125 num_gt_files. Adjust other variables to avoid warnings.
4126 (main): Allocate an all zero lang_bitmap before each plugin file name
4127 to match regular file names.
4128
2b4fa409
RH
41292009-09-23 Richard Henderson <rth@redhat.com>
4130
4131 * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
4132 (TARGET_STATIC_CHAIN): Mention that this hook must be used for
4133 static chain passed in memory.
4134 * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison.
4135 * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN,
4136 STATIC_CHAIN_INCOMING. Issue a sorry if there's no
4137 STATIC_CHAIN_REGNUM defined.
4138
4139 * config/picochip/picochip-protos.h: s/class/klass/.
4140 * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New.
4141 (picochip_static_chain): New.
4142 * config/picochip/picochip.h (STATIC_CHAIN): Remove.
4143 (STATIC_CHAIN_INCOMING): Remove.
4144
4145 * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New.
4146 (xtensa_static_chain): New.
85760734
UB
4147 * config/xtensa/xtensa.h (STATIC_CHAIN): Remove.
4148 (STATIC_CHAIN_INCOMING): Remove.
2b4fa409 4149
9193312a
AS
41502009-09-23 Anatoly Sokolov <aesok@post.ru>
4151
4152 * config/pa/pa.h (FUNCTION_VALUE): Remove macro.
4153 * config/pa/pa-protos.h (function_value): Remove.
4154 * config/pa/pa.c (pa_function_value): Rename from function_value.
4155 Make static, add 'outgoing' argument.
4156 (TARGET_FUNCTION_VALUE): Define.
4157
9ed74235
AS
41582009-09-23 Anatoly Sokolov <aesok@post.ru>
4159
4160 * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
4161 instead of cfun->machine->is_leaf.
4162 * config/avr/avr.h (machine_function): Remove is_leaf field.
4163
abab57ef
JJ
41642009-09-23 Jakub Jelinek <jakub@redhat.com>
4165
4166 PR debug/41439
4167 * dwarf2out.c (address_of_int_loc_descriptor): Don't emit
4168 DW_OP_piece after DW_OP_stack_value, adjust size calculations
4169 for it, when DW_OP_stack_value and DW_OP_implicit_value has
4170 the same size, prefer DW_OP_stack_value.
4171 (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref,
4172 loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value.
4173
7168dc47
AO
41742009-09-23 Alexandre Oliva <aoliva@redhat.com>
4175
4176 PR debug/41353
4177 * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses.
4178
dda2da58
AO
41792009-09-23 Alexandre Oliva <aoliva@redhat.com>
4180
4181 PR debug/41248
4182 * cfgexpand.c (convert_debug_memory_address): New.
4183 (expand_debug_expr): Convert base address and offset to the same
4184 mode. Use it to convert addresses to other modes. Accept
4185 ptr_mode addresses.
4186
4c685825
RG
41872009-09-23 Richard Guenther <rguenther@suse.de>
4188
4189 * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET
4190 produced for bigendian targets with promoted subregs.
4191
659ad88e
RG
41922009-09-23 Richard Guenther <rguenther@suse.de>
4193
4194 * value-prof.c (gimple_ic): Purge old EH edges only after building
4195 the new ones.
4196
b3901be5
NC
41972009-09-23 Nick Clifton <nickc@redhat.com>
4198
4199 * config/arc/arc.c (arc_trampoline_init): Fix typo.
4200
66f0e027
JJ
42012009-09-23 Jakub Jelinek <jakub@redhat.com>
4202
dc67413d
JJ
4203 PR bootstrap/41405
4204 * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf.
4205
66f0e027
JJ
4206 PR bootstrap/41436
4207 * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
4208 on non-nested functions.
4209
457ff6a1
JJ
42102009-09-23 Jakub Jelinek <jakub@redhat.com>
4211 Jan Hubicka <jh@suse.cz>
4212
4213 * dwarf2out.c (loc_list_plus_const): Only define if
4214 DWARF2_DEBUGGING_INFO.
4215 (address_of_int_loc_descriptor): Likewise.
4216
4217 PR debug/41411
4218 * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
4219
42202009-09-23 Uros Bizjak <ubizjak@gmail.com>
be123439
UB
4221
4222 PR c/39779
4223 * c-typeck.c (build_binary_op) <short_shift>: Check that integer
4224 constant is more than zero.
4225
d57c0139
AM
42262009-09-23 Alan Modra <amodra@bigpond.net.au>
4227
4228 PR target/40473
4229 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
4230 call final to emit non-scheduled prologue, instead insert at entry.
4231
f2431d5d
LR
42322009-09-22 Loren J. Rittle <ljrittle@acm.org>
4233 Joseph S. Myers <joseph@codesourcery.com>
4234
4235 * doc/install.texi (*-*-freebsd*): Add proper format codes.
4236
41e7ac51 42372009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
be123439 4238 Rafael Avila de Espindola <espindola@google.com>
41e7ac51
BS
4239
4240 * gengtype.c (is_file_equal): New function.
4241 (close_output_files): Use is_file_equal. Free of->buf.
4242
0182d016 42432009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
be123439 4244 Rafael Avila de Espindola <espindola@google.com>
0182d016
BS
4245
4246 * gengtype.c (write_types, write_local): Add the output_header
4247 argument. Update all callers.
4248
d40a19da
DS
42492009-09-22 Dodji Seketeli <dodji@redhat.com>
4250
4251 * dwarf2out.c (template_parameter_pack_die,
4252 gen_formal_parameter_pack_die ): New functions.
4253 (make_ith_pack_parameter_name): Remove this function.
4254 (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
4255 DW_TAG_formal_parameter_pack.
4256 (gen_generic_params_dies): Represent each template parameter pack
4257 by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
4258 represented by usual DW_TAG_template_*_parameter DIEs that are
4259 children of the DW_TAG_template_parameter_pack element DIE.
4260 (generic_parameter_die): This doesn't deal with parameter pack
be123439
UB
4261 names anymore. Don't generate DW_AT_name for some DIEs, e.g. children
4262 of parameter pack DIEs.
d40a19da
DS
4263 (gen_formal_parameter_die): Add a flag to not emit DW_AT_name
4264 in certain cases, e.g. for pack elements.
4265 (gen_formal_types_die, gen_decl_die): Adjust usage of
4266 gen_formal_parameter_die.
4267 (gen_subprogram_die): Represent each function parameter pack by a
4268 DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
4269 represented by usual DW_TAG_formal_parameter DIEs that are children
4270 of the DW_TAG_formal_parameter_pack DIE. Remove references to
4271 ____builtin_va_alist decls as no part of the compiler uses those
4272 anymore.
4273 * langhooks.h (struct lang_hooks_for_decls): Add
4274 function_parm_expanded_from_pack_p, get_generic_function_decl
4275 and function_parameter_pack_p hooks. Fix comment for
4276 get_innermost_generic_parms hook.
4277 * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
4278 LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
4279 macros and use them to initialize lang_hook.
4280
82497700
RH
42812009-09-22 Richard Henderson <rth@redhat.com>
4282
4283 * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
4284 (TRAMPOLINE_ADJUST_ADDRESS): Poison.
4285 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
4286 on TRAMPOLINE_TEMPLATE.
4287 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
4288 TRAMPOLINE_ADJUST_ADDRESS.
4289 * targhooks.c (default_asm_trampoline_template): Remove.
4290 (default_trampoline_adjust_address): Remove.
4291 (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
4292 * targhooks.h: Update decls.
4293
6a92b6c7
DK
42942009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
4295
4296 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
4297 * config/i386/cygwin.h (LIBGCJ_SONAME): Define.
4298 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
4299
502a1e45
AO
43002009-09-22 Alexandre Oliva <aoliva@redhat.com>
4301
4302 PR debug/41295
4303 * reload1.c (reload): Reset debug insns with pseudos without
4304 equivalences.
4305
a9ab39d3
JJ
43062009-09-22 Janis Johnson <janis187@us.ibm.com>
4307
4308 * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return
4309 unconditional true for decimal float modes.
4310 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto.
4311 * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto.
4312
2208d2ac
LR
43132009-09-22 Loren J. Rittle <ljrittle@acm.org>
4314
4315 * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
4316 Enable a new case for __FreeBSD__ >= 7.
4317 * crtstuff.c: Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7.
4318 * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP.
4319 * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC
4320 and USE_LD_AS_NEEDED.
4321
27ed7478
LR
4322 * doc/install.texi (*-*-freebsd*): Update target information.
4323
6eee506e
RH
43242009-09-22 Richard Guenther <rguenther@suse.de>
4325
4326 PR middle-end/41395
4327 * tree-dfa.c (get_ref_base_and_extent): Handle trailing
4328 arrays really properly.
4329
531ca746
RH
43302009-09-22 Richard Henderson <rth@redhat.com>
4331
4332 PR target/41246
4333 * target.h (struct gcc_target): Add asm_out.trampoline_template,
4334 calls.static_chain, calls.trampoline_init,
4335 calls.trampoline_adjust_address.
4336 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4337 (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
4338 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
4339 * builtins.c (expand_builtin_setjmp_receiver): Use
4340 targetm.calls.static_chain; only clobber registers.
4341 (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
4342 set up memory attributes properly for the trampoline block.
4343 (expand_builtin_adjust_trampoline): Use
4344 targetm.calls.trampoline_adjust_address.
4345 * calls.c (prepare_call_address): Add fndecl argument. Use
4346 targetm.calls.static_chain.
4347 * df-scan.c (df_need_static_chain_reg): Remove.
4348 (df_get_entry_block_def_set): Use targetm.calls.static_chain;
4349 consolodate static chain handling.
4350 * doc/tm.texi: Document new hooks.
4351 * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
4352 (init_emit_regs): Don't initialize them.
4353 * expr.h (prepare_call_address): Update decl.
4354 * final.c (profile_function): Use targetm.calls.static_chain.
4355 * function.c (expand_function_start): Likewise.
4356 * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
4357 * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
4358 only clobber registers.
4359 * targhooks.c (default_static_chain): New.
4360 (default_asm_trampoline_template, default_trampoline_init): New.
4361 (default_trampoline_adjust_address): New.
4362 * targhooks.h: Declare them.
4363 * varasm.c (assemble_trampoline_template): Use
4364 targetm.asm_out.trampoline_template. Make the memory block const
4365 and set its size.
4366
672f0baa
RH
4367 * config/alpha/alpha.c (alpha_trampoline_init): Rename from
4368 alpha_initialize_trampoline. Make static. Merge VMS parameter
4369 differences into the TARGET_ABI_OPEN_VMS code block.
4370 (TARGET_TRAMPOLINE_INIT): New.
4371 * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
4372 (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
4373 * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove.
4374 (INITIALIZE_TRAMPOLINE): Remove.
4375
4376 * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
4377 (TRAMPOLINE_TEMPLATE): Merge with ...
4378 (INITIALIZE_TRAMPOLINE): ... this and move ...
4379 * config/arc/arc.c (arc_trampoline_init): ... here.
2d7b663a 4380 (TARGET_TRAMPOLINE_INIT): New.
2d7b663a 4381
0ef9304b
RH
4382 * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4383 (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
4384 (arm_asm_trampoline_template): New.
4385 (arm_trampoline_init, arm_trampoline_adjust_address): New.
4386 * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE,
4387 THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
4388 code to arm_asm_trampoline_template.
4389 (TRAMPOLINE_ADJUST_ADDRESS): Move code to
4390 arm_trampoline_adjust_address.
4391 (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
4392 adjust for target hook parameters.
4393
be123439
UB
4394 * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE):
4395 Remove.
2df373c2 4396
92910d77
RH
4397 * config/bfin/bfin-protos.h (initialize_trampoline): Remove.
4398 * config/bfin/bfin.c (bfin_asm_trampoline_template): New.
4399 (bfin_trampoline_init): Rename from initialize_trampoline;
4400 make static; update for target hook parameters.
4401 (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
4402 * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to
4403 bfin_asm_trampoline_template.
4404 (INITIALIZE_TRAMPOLINE): Remove.
4405
3e322b77
RH
4406 * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
4407 TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template,
4408 cris_trampoline_init): New.
4409 * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to
4410 cris_asm_trampoline_template.
4411 (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init;
4412 adjust for target hook parameters.
4413
956c97fc
RH
4414 * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove.
4415
98689f5e
RH
4416 * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
4417 TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template,
4418 fr30_trampoline_init): New.
4419 * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to
4420 fr30_asm_trampoline_template.
4421 (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init;
4422 adjust for target hook parameters.
4423
e9d5fdb2
RH
4424 * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New.
4425 (frv_trampoline_init): Rename from frv_initialize_trampoline;
4426 make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook.
4427 * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove.
4428 * config/frv/frv-protos.h (frv_initialize_trampoline): Remove.
4429
9f6ef043
RH
4430 * config/h8300/h8300.c (h8300_trampoline_init): New.
4431 (TARGET_TRAMPOLINE_INIT): New.
4432 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code
4433 to h8300_trampoline_init and adjust for hook parameters.
4434
2a1211e5
RH
4435 * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove.
4436 * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New.
4437 (ia64_trampoline_init): Rename from ia64_initialize_trampoline;
4438 make static; adjust for hook parameters.
4439 * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove.
4440
f4a33d37
RH
4441 * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4442 (TARGET_TRAMPOLINE_INIT): New.
4443 (iq2000_asm_trampoline_template, iq2000_trampoline_init): New.
4444 * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to
4445 iq2000_asm_trampoline_template.
4446 (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init.
4447 (TRAMPOLINE_CODE_SIZE): New.
4448 (TRAMPOLINE_SIZE): Use it.
4449 (TRAMPOLINE_ALIGNMENT): Follow Pmode.
4450
229fbccb
RH
4451 * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove.
4452 * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New.
4453 (m32c_trampoline_init): Rename from m32c_initialize_trampoline;
4454 adjust for hook parameters.
4455 * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove.
4456
1548bf05
RH
4457 * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New.
4458 (m32r_trampoline_init): New.
4459 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to
4460 m32r_trampoline_init.
4461
0d7e5af1
RH
4462 * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New.
4463 (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline;
4464 make static; update for hook parameters.
4465 * config/m68hc11/m68hc11-protos.h: Update.
4466 * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove.
4467
71e0af3c
RH
4468 * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4469 (TARGET_TRAMPOLINE_INIT): New.
4470 (mcore_function_value): Fix typo.
4471 (mcore_asm_trampoline_template, mcore_trampoline_init): New.
afbd0665 4472 * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
71e0af3c
RH
4473 to mcore_asm_trampoline_template.
4474 (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
4475
87138d8d
RH
4476 * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove.
4477 * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New.
4478 (mep_trampoline_init): Rename from mep_init_trampoline; make static;
4479 update for hook parameters.
4480 * config/mep/mep-protos.h (mep_init_trampoline): Remove.
4481
a1d29c8c
RH
4482 * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
4483 mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
4484 mips_trampoline_init): New.
4485 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to
4486 mips_asm_trampoline_template.
4487 (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init;
4488 update for hook parameters.
4489
dbbdb385
RH
4490 * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4491 (TARGET_TRAMPOLINE_INIT): New.
4492 (mmix_trampoline_size): Remove.
4493 (mmix_asm_trampoline_template): Rename from mmix_trampoline_template;
4494 make static. Remove out-of-date tetra vs octa comment.
4495 (mmix_trampoline_init): Rename from mmix_initialize_trampoline;
4496 make static; update for hook parameters.
4497 * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove.
4498 (INITIALIZE_TRAMPOLINE): Remove.
4499 (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size.
4500 (TRAMPOLINE_ALIGNMENT): New.
4501 * gcc/config/mmix/mmix-protos.h: Update.
4502
bdeb5f0c
RH
4503 * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
4504 mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
4505 mn10300_trampoline_init): New.
4506 * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to
4507 mn10300_asm_trampoline_template.
4508 (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init.
4509
4601494d
RH
4510 * config/moxie/moxie.c (moxie_static_chain,
4511 moxie_asm_trampoline_template, moxie_trampoline_init,
4512 TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE,
4513 TARGET_TRAMPOLINE_INIT): New.
4514 * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to
4515 moxie_trampoline_init.
4516 (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template.
4517 (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
4518
859c146c
RH
4519 * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
4520 pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
4521 pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS,
4522 pa_trampoline_adjust_address): New.
4523 * config/pa/pa.h (TRAMPOLINE_TEMPLATE): Move code to
4524 pa_asm_trampoline_template.
4525 (TRAMPOLINE_ALIGNMENT): New.
4526 (TRAMPOLINE_CODE_SIZE): Move to pa.c.
4527 (INITIALIZE_TRAMPOLINE): Move code to pa_trampoline_init;
4528 adjust for hook parameters.
4529 (TRAMPOLINE_ADJUST_ADDRESS): Move code to pa_trampoline_adjust_address.
4530
8dd65c37
RH
4531 * config/pdp11/pdp11.c (pdp11_trampoline_init): New.
4532 (TARGET_TRAMPOLINE_INIT): New.
4533 * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Remove.
4534 (INITIALIZE_TRAMPOLINE): Move code to pdp11_trampoline_init.
4535
454da451
RH
4536 * config/picochip/picochip.h (INITIALIZE_TRAMPOLINE): Remove.
4537
44d43e53
RH
4538 * config/rs6000/rs6000-protos.h (rs6000_initialize_trampoline): Remove.
4539 * config/rs6000/rs6000.c (TARGET_TRAMPOLINE_INIT): New.
4540 (rs6000_trampoline_init): Rename from rs6000_initialize_trampoline;
4541 make static; adjust parameters for the hook.
4542 * config/rs6000/rs6000.h (INITIALIZE_TRAMPOLINE): Remove.
4543
b81ecf6f
RH
4544 * config/s390/s390.c (s390_asm_trampoline_template): Rename from
4545 s390_trampoline_template; make static.
4546 (s390_trampoline_init): Rename from s390_initialize_trampoline;
4547 make static; adjust for target hook.
4548 (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
4549 * config/s390/s390-protos.h: Remove trampoline decls.
4550 * config/s390/s390.h (INITIALIZE_TRAMPOLINE): Remove.
4551 (TRAMPOLINE_TEMPLATE): Remove.
4552 (TRAMPOLINE_ALIGNMENT): New.
4553
2f5bb28c
RH
4554 * config/score/score-protos.h (score_initialize_trampoline): Remove.
4555 * config/score/score.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4556 (TARGET_TRAMPOLINE_INIT): New.
4557 (score_asm_trampoline_template): New.
4558 (score_trampoline_init): Rename from score_initialize_trampoline;
4559 make static; adjust for hook parameters.
4560 * config/score/score.h (TRAMPOLINE_TEMPLATE): Move code to
4561 score[37]_asm_trampoline_template.
4562 (INITIALIZE_TRAMPOLINE): Remove.
4563 * config/score/score3.c (score3_asm_trampoline_template): New.
4564 (score3_trampoline_init): Rename from score3_initialize_trampoline;
4565 adjust for target hook.
4566 * config/score/score7.c (score7_asm_trampoline_template): New.
4567 (score7_trampoline_init): Rename from score7_initialize_trampoline;
4568 adjust for target hook.
4569 * config/score/score3.h, config/score/score7.h: Update.
4570
994322ef
RH
4571 * config/sh/sh-protos.h (sh_initialize_trampoline): Remove.
4572 * config/sh/sh.c (TARGET_TRAMPOLINE_INIT): New.
4573 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
4574 (sh_trampoline_init): Rename from sh_initialize_trampoline;
4575 make static; adjust for target hook parameters.
4576 (sh_trampoline_adjust_address): New.
4577 * config/sh/sh.h (INITIALIZE_TRAMPOLINE): New.
4578 (TRAMPOLINE_ADJUST_ADDRESS): Move code to sh_trampoline_adjust_address.
4579
809e78cc
RH
4580 * config/sparc/sparc.c (TARGET_TRAMPOLINE_INIT): New.
4581 (sparc32_initialize_trampoline): Rename from
4582 sparc_initialize_trampoline; make static; replace tramp parameter
4583 with m_tramp and update memory accesses.
4584 (sparc64_initialize_trampoline): Similarly.
4585 (sparc_trampoline_init): New.
4586 * config/sparc/sparc-protos.h: Remove trampoline decls.
4587 * config/sparc/sparc.h (INITIALIZE_TRAMPOLINE): Remove.
4588 * config/sparc/sparc.md (nonlocal_goto): Don't use static_chain_rtx.
4589
a85b4c91
RH
4590 * config/spu/spu.c (TARGET_TRAMPOLINE_INIT): New.
4591 (array_to_constant): Make ARR parameter const.
4592 (spu_trampoline_init): Rename from spu_initialize_trampoline;
4593 make static; update for hook parameters.
4594 * config/spu/spu-protos.h: Update decls.
4595 * config/spu/spu.h (INITIALIZE_TRAMPOLINE): Remove.
4596
fb8d0fac
RH
4597 * config/stormy16/stormy16.c (xstormy16_trampoline_init): Rename
4598 from xstormy16_initialize_trampoline; make static; update for
4599 hook parameters.
4600 (TARGET_TRAMPOLINE_INIT): New.
4601 * config/stormy16/stormy16.h (INITIALIZE_TRAMPOLINE): Remove.
4602
e0c6c273
RH
4603 * config/v850/v850.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4604 (TARGET_TRAMPOLINE_INIT): New.
4605 (v850_can_eliminate): Make static.
4606 (v850_asm_trampoline_template, v850_trampoline_init): New.
4607 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Move code to
4608 v850_asm_trampoline_template.
4609 (INITIALIZE_TRAMPOLINE): Move code to v850_trampoline_init
4610 and adjust for target hook parameters.
4611
3814318d
RH
4612 * config/vax/vax.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4613 (TARGET_TRAMPOLINE_INIT): New.
4614 (vax_asm_trampoline_template, vax_trampoline_init): New.
4615 * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Move code to
4616 vax_asm_trampoline_template.
4617 (INITIALIZE_TRAMPOLINE): Move code to vax_trampoline_init.
4618
3c1229cb
RH
4619 * config/xtensa/xtensa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4620 (TARGET_TRAMPOLINE_INIT): New.
4621 (xtensa_asm_trampoline_template): Rename from
4622 xtensa_trampoline_template; make static.
4623 (xtensa_trampoline_init): Rename from xtensa_initialize_trampoline;
4624 make static; update for hook parameters.
4625 * config/xtensa/xtensa-protos.h: Remove trampoline decls.
4626 * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Remove.
4627 (INITIALIZE_TRAMPOLINE): Remove.
4628
3452586b
RH
4629 * config/i386/i386.c (ix86_function_regparm): Do not issue an
4630 error for nested functions with regparm=3.
4631 (ix86_compute_frame_layout): Adjust frame pointer offset for
4632 ix86_static_chain_on_stack.
4633 (ix86_expand_prologue): Handle ix86_static_chain_on_stack.
4634 (ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset,
4635 don't reset to UNITS_PER_WORD.
4636 (ix86_emit_leave): Adjust ix86_cfa_state.
4637 (ix86_expand_epilogue): Handle ix86_static_chain_on_stack.
4638 (ix86_static_chain): New.
4639 (ix86_trampoline_init): Rename from x86_initialize_trampoline;
4640 make static; update for target hook parameters; use ix86_static_chain.
4641 (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
4642 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove.
4643 (INITIALIZE_TRAMPOLINE): Remove.
4644 (TRAMPOLINE_SIZE): Use 24 for 64-bit.
4645 (struct machine_function): Use BOOL_BITFIELD; rearrange bitfields
4646 to the end. Add static_chain_on_stack.
4647 (ix86_static_chain_on_stack): New.
4648
e0601576
RH
4649 * config/m68k/m68k.c (TARGET_TRAMPOLINE_INIT): New.
4650 (m68k_output_mi_thunk): Don't use static_chain_rtx.
4651 (m68k_trampoline_init): New.
4652 * config/m68k/m68k.h (INITIALIZE_TRAMPOLINE): Move code to
4653 m68k_trampoline_init and adjust for hook parameters.
4654 * config/m68k/netbsd-elf.h (TRAMPOLINE_TEMPLATE): Remove.
4655 (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Remove.
4656
39dbcfc3
JJ
46572009-09-22 Jakub Jelinek <jakub@redhat.com>
4658
9190e0a9
JJ
4659 * config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes
4660 for __builtin_altivec_vcmpgt{sb,uh,sh,uw}.
4661
39dbcfc3
JJ
4662 * reload1.c (reload): Call wrap_constant when substituting
4663 reg for equiv inside of DEBUG_INSNs.
4664
65f753a0
JJ
4665 PR bootstrap/41405
4666 * dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die,
4667 add_call_src_coords_attributes, add_high_low_attributes,
4668 gen_compile_unit_die, gen_type_die_with_usage force_decl_die,
4669 gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish,
4670 dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions
4671 when -gdwarf-2 -gstrict-dwarf.
4672 (loc_list_from_tree): Likewise. Avoid using DWARF4 additions when
4673 -gdwarf-[23] -gstrict-dwarf.
4674 (address_of_int_loc_descriptor, loc_descriptor,
4675 loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using
4676 DWARF4 additions when -gdwarf-[23] -gstrict-dwarf.
4677 * common.opt (gno-strict-dwarf, gstrict-dwarf): New options.
4678
f61e18ec
RG
46792009-09-22 Richard Guenther <rguenther@suse.de>
4680
4681 PR tree-optimization/41428
4682 * tree-ssa-ccp.c (ccp_fold_stmt): New function.
4683 (ccp_finalize): Pass it to substitute_and_fold.
4684
ff7ffb8f
RG
46852009-09-22 Richard Guenther <rguenther@suse.de>
4686
4687 * tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
4688 (substitute_and_fold): Adjust prototype.
4689 * tree-vrp.c (vrp_evaluate_conditional): Make static.
4690 (simplify_stmt_using_ranges): Likewise.
4691 (fold_predicate_in): Move here from tree-ssa-propagate.c.
4692 (vrp_fold_stmt): New function.
4693 (vrp_finalize): Pass it to substitute_and_fold.
4694 * tree-flow.h (vrp_evaluate_conditional): Remove.
4695 (simplify_stmt_using_ranges): Likewise.
4696 * tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold.
4697 * tree-ssa-copy.c (fini_copy_prop): Likewise.
4698 * tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded
4699 member.
4700 (fold_predicate_in): Move to tree-vrp.c.
4701 (substitute_and_fold): Use the callback instead of calling into
4702 tree-vrp.c functions directly.
4703
40742b42
JJ
47042009-09-22 Jakub Jelinek <jakub@redhat.com>
4705
8b659ecb
JJ
4706 * dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
4707 comparison warning on rs6000.
4708
40742b42
JJ
4709 PR middle-end/41429
4710 * tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
4711 GIMPLE_EH_MUST_NOT_THROW cleanup.
4712 (verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
4713
c9c80434
JH
47142009-09-22 Jack Howarth <howarth@bromo.med.uc.edu>
4715
4716 PR middle-end/41260
4717 * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
4718 * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
4719 LIB_SPEC for darwin10 and later since it always uses the unwinder in
4720 libSystem which is derived from the gcc 4.2.1 unwinder.
4721
e0fd7469
DK
47222009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
4723
4724 PR middle-end/41357
4725 * varasm.c (default_encode_section_info): Copy TLS model into
4726 sym_ref flags regardless of backend support for TLS, for all
4727 model types except TLS_MODEL_EMULATED.
4728
cf09842e
DK
47292009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
4730
4731 PR bootstrap/41404
4732 * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
4733 we can handle it correctly.
4734
c1493544
GP
47352009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
4736
4737 * doc/install.texi (os2): Remove section.
4738
2f55829e
GP
47392009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
4740
4741 * doc/standards.texi (Objective-C): Adjust two URLs.
4742
d9334061
GS
47432009-09-21 Giuseppe Scrivano <gscrivano@gnu.org>
4744
be123439
UB
4745 * tree-tailcall.c (process_assignment): Don't check if a
4746 multiplication or an addition are already present.
d9334061
GS
4747 (find_tail_calls): Combine multiple additions and multiplications.
4748 (adjust_accumulator_values): Emit accumulators.
4749
4b51caf2
KT
47502009-09-21 Kai Tietz <kai.tietz@onevision.com>
4751
4752 * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for
4753 xmm register restore.
4754
5b5fba56
JH
47552009-09-21 Jan Hubicka <jh@suse.cz>
4756
4757 * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL.
4758 (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and
4759 restore at the end.
4760
473ebbc5
EB
47612009-09-21 Eric Botcazou <ebotcazou@adacore.com>
4762
4763 * stor-layout.c (layout_type): Remove obsolete code.
4764
1dbb24a3
L
47652009-09-20 H.J. Lu <hongjiu.lu@intel.com>
4766
4767 PR middle-end/41395
4768 * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2.
4769
ca75b926
KG
47702009-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4771
4772 PR middle-end/30789
4773 * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
4774 (do_mpc_ckconv): Accept FORCE_CONVERT parameter.
4775 (fold_builtin_2, do_mpc_arg1): Update accordingly.
4776 * fold-const.c (const_binop): Likewise.
4777 * real.h (do_mpc_arg2): Update prototype.
4778
c4a80a2d
JH
47792009-09-20 Jan Hubicka <jh@suse.cz>
4780
4781 * dwarf2out.c (add_const_value_attribute): Return true if successful.
be123439
UB
4782 (add_location_or_const_value_attribute): Rewrite using
4783 loc_list_from_tree.
c4a80a2d
JH
4784 (tree_add_const_value_attribute): Return true if successful.
4785 (tree_add_const_value_attribute_for_decl): Likewise.
4786
4787 * dwarf2out.c (address_of_int_loc_descriptor): Break out from ...
4788 (loc_descriptor): ... here;
4789 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
4790 (cst_pool_loc_descr): Break out from ...; do not reffer constant
4791 pool items that was not marked for output.
4792 (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR;
4793 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
4794 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
4795 handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR,
4796 IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of
4797 CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use
4798 DW_OP_stack_value to get address of items that are not available
4799 as addresses.
4800 (dw_loc_list): Handle single element lists correctly.
4801
0b1d7060
KT
48022009-09-20 Kai Tietz <kai.tietz@onevision.com>
4803 Pascal Obry <obry@adacore.com>
4804
4805 * unwind-dw2-fde.c (classify_object_over_fdes):
4806 Cast the constant 1 to _Unwind_Ptr.
4807 (add_fdes): Likewise.
4808 (linear_search_fdes): Likewise.
4809
d0566a63
EB
48102009-09-20 Eric Botcazou <ebotcazou@adacore.com>
4811
4812 * stor-layout.c (set_sizetype): Avoid useless type copy.
4813
49576e25
RS
48142009-09-20 Richard Sandiford <rdsandiford@googlemail.com>
4815
4816 * configure.ac (gcc_cv_ld_mips_personality_relaxation): New
4817 feature check.
4818 (HAVE_LD_PERSONALITY_RELAXATION): New macro definition.
4819 * configure, config.in: Regenerate.
4820 * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect |
4821 DW_EH_PE_absptr.
4822 * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro.
4823 (ASM_PREFERRED_EH_DATA_FORMAT): Define. Use MIPS_EH_INDIRECT
4824 for global data if the output could be used in a shared library.
4825 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
4826 to 0 if TARGET_WRITABLE_EH_FRAME.
4827
63c6c7e0
KT
48282009-09-20 Paolo Bonzini <bonzini@gnu.org>
4829
f8e25a2a 4830 PR rtl-optimization/39886
63c6c7e0
KT
4831 * combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU
4832 just when insn is equal to BB_END (bb).
4833
b53da244
AN
48342009-09-19 Adam Nemet <anemet@caviumnetworks.com>
4835
4836 * config/mips/mips.opt (mrelax-pic-calls): New option.
4837 * config/mips/mips.c (mips_strip_unspec_address): Move it up in
4838 the file.
4839 (mips_unspec_call): Change "unspec_call" expander into this.
4840 (mips_strip_unspec_call): New function.
4841 (mips_got_load): Call mips_unspec_call instead of
4842 gen_unspec_call<mode>.
4843 (mips16_build_call_stub): Fix comment for fp_code. Adjust call to
4844 MIPS_CALL.
4845 (mips_cfg_in_reorg): New function.
4846 (mips16_lay_out_constants): Use it to decide whether to call
4847 CFG-aware insn splitting.
4848 (r10k_insert_cache_barriers): Move CFG set-up code from here to
4849 mips_reorg. Move DF set-up code from here ...
4850 (mips_df_reorg): ... to here. Call r10k_insert_cache_barriers
4851 from here.
4852 (mips_reorg): Call mips_df_reorg instead of
4853 r10k_insert_cache_barriers. Move CFG set-up code here from
4854 r10k_insert_cache_barriers.
4855 (mips_call_expr_from_insn): New function.
4856 (mips_pic_call_symbol_from_set): Likewise.
4857 (mips_find_pic_call_symbol): Likewise.
4858 (mips_annotate_pic_call_expr): Likewise.
4859 (mips_get_pic_call_symbol): Likewise.
4860 (mips_annotate_pic_calls): Likewise.
4861 (mips_override_options): Disable -mrelax-pic-calls unless PIC
4862 calls are used.
4863 (mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16.
4864 * config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it.
4865 * config/mips/mips.h (MIPS_CALL): Use it to print the .reloc
4866 directive.
4867 * config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec.
4868 (unspec_call<mode>): Remove it.
4869 (sibcall_internal, sibcall_value_internal,
4870 sibcall_value_multiple_internal, call_internal, call_split,
4871 call_value_internal, call_value_split,
4872 call_value_multiple_internal, call_value_multiple_split): Pass
4873 SIZE_OPNO to MIPS_CALL.
4874 (call_internal_direct, call_direct_split,
4875 call_value_internal_direct, call_value_direct_split): Pass -1 as
4876 SIZE_OPNO to MIPS_CALL.
4877 * configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR.
4878 * configure: Regenerate.
4879 * doc/invoke.texi (Option Summary): Add -mrelax-pic-calls
4880 and -mno-relax-pic-calls.
be123439 4881 (MIPS Options): Document -mrelax-pic-calls and -mno-relax-pic-calls.
b53da244 4882
1d93c860
RW
48832009-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4884
4885 PR bootstrap/35619
4886 * Makefile.in (stmp-fixinc): Ensure `include-fixed' is created
4887 in the directory this rule is called from, rather than the
4888 toplevel 'gcc' directory, to fix in-tree build.
4889
74dc6a11
CD
48902009-09-19 Chris Demetriou <cgd@google.com>
4891
4892 PR preprocessor/28435:
4893 * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
4894 to cpplib that the preprocessor output is needed.
4895
bc8b6c98
JJ
48962009-09-19 Jakub Jelinek <jakub@redhat.com>
4897
e0f3e75b
JJ
4898 * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>,
4899 *restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>,
4900 *return_and_restore_fpregs_<mode>,
4901 *return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier.
4902
bc8b6c98
JJ
4903 PR bootstrap/41397
4904 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse
4905 instead of assuming it has always a REG inside of it.
4906
ca94da48
GP
49072009-09-18 Gerald Pfeifer <gerald@pfeifer.com>
4908
4909 * config/freebsd.h: Update comment on types.
4910 (WINT_TYPE): Define.
4911
5f5babf1
JM
49122009-09-18 Jason Merrill <jason@redhat.com>
4913
4914 * c.opt: Add -fno-deduce-init-list.
4915
eb99f777
NV
49162009-09-18 Neil Vachharajani <nvachhar@google.com>
4917
4918 * value-prof.c (interesting_stringop_to_profile_p): Added output
4919 argument to indicate which parameter is the size parameter.
4920 * value-prof.c (gimple_stringop_fixed_value): Use
4921 INTERESTING_STRINGOP_TO_PROFILE_P to find size argument.
4922 * value-prof.c (gimple_stringops_transform): Update call sites to
4923 INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change.
eb99f777 4924
2a79f8e4
UB
49252009-09-18 Uros Bizjak <ubizjak@gmail.com>
4926
4927 PR target/38288
4928 From David Binderman <dcb314@hotmail.com>:
4929 * gcc/config/i386/i386.c (ix86_function_regparm): Remove useless
4930 local variable f. Remove stale comments.
4931 (ix86_compute_frame_layout): Remove useless local variable total_size.
4932 Remove #if 0'd code.
4933 (legitimate_address_p): Remove useless local variables
4934 reason_rtx and reason.
4935 (ix86_split_copysign_const): Remove useless local variable op1.
4936 (scale_counter): Remove useless local variable piece_size_mask.
4937
2b5bcdee
JJ
49382009-09-18 Jakub Jelinek <jakub@redhat.com>
4939
4940 * stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
4941 output decl.
4942
43eb8947
MH
49432009-09-17 Michael Haubenwallner <michael.haubenwallner@salomon.at>
4944
4945 PR target/40913
4946 * config/pa/t-hpux-shlib: Set soname in libgcc_s.sl.
4947
591a8495
JJ
49482009-09-17 Jakub Jelinek <jakub@redhat.com>
4949
4950 * c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of
4951 TYPE_STUB_DECL.
4952
417b3023
AO
49532009-09-17 Alexandre Oliva <aoliva@redhat.com>
4954
4955 * dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and
4956 DW_OP_implicit_value even without dwarf_version 4.
4957
e7f373fa
JH
49582009-09-17 Jan Hubicka <jh@suse.cz>
4959
4960 * dwarf2out.c: Include tree-pass.h and gimple.h.
4961 (loc_list_plus_const): New function.
4962 (loc_descriptor_from_tree_1): Rename to ...
4963 (loc_descriptor_from_tree): ... remove original.
4964 (loc_list_from_tree): New function.
4965 (add_AT_location_description): Accept location list.
4966 (tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree.
4967 (concatn_mem_loc_descriptor): Remove.
4968 (mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by
4969 returning NULL.
4970 (secname_for_decl): Move up.
4971 (hidden_reference_p): New function; break out from ...
4972 (loc_by_refernece): ... here; move up.
4973 (dw_loc_list): New function.
4974 (single_element_loc_list): New function.
4975 (single_element_loc_list_p): New function.
4976 (add_loc_descr_to_each): New function.
4977 (add_loc_list): New function.
4978 (loc_descr_from_tree): Make wraper of loc_list_from_tree.
4979 (loc_list_from_tree): Reroganized from loc_descr_from_tree;
4980 add diagnostics why expansion failed.
4981 (add_location_or_const_value_attribute): Support location lists.
4982 (add_bound_info): Likewise.
4983 (descr_info_loc): Update call of loc_descriptor_from_tree.
4984 (gen_variable_die): Work on location lists.
4985 * final.c (pass_final): Add dump file.
4986 * Makefile.in (dwarf2out.o): Add new dependencies.
4987
d2da4af2
JJ
49882009-09-17 Janis Johnson <janis187@us.ibm.com>
4989
4990 PR c/41049
4991 * real.c decimal_from_integer, decimal_integer_string): New.
4992 (real_from_integer): Use them as special case for decimal float.
4993 * config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding.
4994 (_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td):
4995 Do not append zero after the decimal point in string to convert.
4996
98f3eb1f
AM
49972009-09-17 Alexander Monakov <amonakov@ispras.ru>
4998
4999 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
5000 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
5001
07ffa034
MJ
50022009-09-17 Martin Jambor <mjambor@suse.cz>
5003
5004 * common.opt (fipa-sra): New switch.
5005 * opts.c (decode_options): Turn flag_ipa_sra on for opt2.
5006 * timevar.def (TV_IPA_SRA): New timevar.
5007 * params.def (ipa-sra-ptr-growth-factor): New parameter.
5008 * doc/invoke.texi: Document -fipa-sra and ipa-sra-ptr-growth-factor.
5009 * tree-sra.c: Include cgraph.c.
5010 (enum sra_mode): Added SRA_MODE_EARLY_IPA.
5011 (struct access): Added fields stmt, grp_maybe_modified, grp_scalar_ptr
5012 and grp_not_necessarilly_dereferenced.
5013 (func_param_count): New variable.
5014 (encountered_apply_args): New variable.
5015 (bb_dereferences): New variable.
5016 (final_bbs): New variable.
5017 (no_accesses_representant): New variable.
5018 (no_accesses_p): New function.
5019 (dump_access): Dump the new fields.
5020 (sra_initialize): Set encountered_apply_args to false.
5021 (get_ssa_base_param): New function.
5022 (mark_parm_dereference): New function.
5023 (create_access): Caring for INIDRECT_REFs and different handling of
5024 varialble length accesses in early IPA SRA. Store the stmt - a new
5025 parameter - to the new access.
5026 (build_access_from_expr_1): New parameter stmt, passed to
5027 create_access. Handle INDIRECT_REFs.
5028 (build_access_from_expr): Pass the current statement to
5029 build_access_from_expr_1.
5030 (disqualify_ops_if_throwing_stmt): Trigger only in intraprocedural
5031 passes.
5032 (build_accesses_from_assign): Pass the current statement to
5033 build_access_from_expr_1. Do not create assign links in IPA-SRA.
5034 (scan_function): Call handle_ssa_defs on phi nodes. Set bits in
5035 final_bbs when necessary. Check for calls to __builtin_apply_args.
5036 Fixup EH info if anythng was changed.
5037 (is_unused_scalar_param): New function.
5038 (ptr_parm_has_direct_uses): New function.
5039 (find_param_candidates): New function.
5040 (mark_maybe_modified): New function.
5041 (analyze_modified_params): New function.
5042 (propagate_dereference_distances): New function.
5043 (dump_dereferences_table): New function.
5044 (analyze_caller_dereference_legality): New function.
5045 (unmodified_by_ref_scalar_representative): New function.
5046 (splice_param_accesses): New function.
5047 (decide_one_param_reduction): New function.
5048 (enum ipa_splicing_result): New type.
5049 (splice_all_param_accesses): New function.
5050 (get_param_index): New function.
5051 (turn_representatives_into_adjustments): New function.
5052 (analyze_all_param_acesses): New function.
5053 (get_replaced_param_substitute): New function.
5054 (get_adjustment_for_base): New function.
5055 (replace_removed_params_ssa_names): New function.
5056 (sra_ipa_reset_debug_stmts): New function.
5057 (sra_ipa_modify_expr): New function.
5058 (sra_ipa_modify_assign): New function.
5059 (convert_callers): New function.
5060 (modify_function): New function.
5061 (ipa_sra_preliminary_function_checks): New function.
5062 (ipa_early_sra): New function.
5063 (ipa_early_sra_gate): New function.
5064 (pass_early_ipa_sra): New variable.
5065 * Makefile.in (tree-sra.o): Add cgraph.h to dependencies.
2a79f8e4 5066
040c6d51
MM
50672009-09-17 Michael Matz <matz@suse.de>
5068
5069 PR middle-end/41347
5070 * tree.c (build_type_attribute_qual_variant): Export.
5071 * tree.h (build_type_attribute_qual_variant): Declare.
5072 * tree-inline.c (remap_type_1): Use it to build variants with
5073 the original qualifiers and attributes.
5074
10e154df
AK
50752009-09-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5076
5077 * cfglayout.c (fixup_reorder_chain): Accept conditional jumps
5078 without a fallthrough edge.
5079
402f2db8
DD
50802009-09-16 DJ Delorie <dj@redhat.com>
5081
5082 * config/m32c/m32c.c (m32c_emit_epilogue): Check for R8C or M16C
5083 chip and ignore the "fast_interrupt" attribute if so.
5084
27b4689f
RH
50852009-09-16 Richard Henderson <rth@redhat.com>
5086
5087 PR middle-end/41360
5088 * cfgbuild.c (find_bb_boundaries): Really re-instate 2009-09-02
5089 barrier fix.
5090
fe663f4e
RH
50912009-09-16 Richard Henderson <rth@redhat.com>
5092
5093 PR target/41246
5094 * tree-cfg.c (verify_gimple_call): Validate that gimple_call_chain
5095 is set only if DECL_NO_STATIC_CHAIN is unset.
5096 * tree-nested.c (iter_nestinfo_start, iter_nestinfo_next): New.
5097 (FOR_EACH_NEST_INFO): New.
5098 (walk_all_functions): Use it.
5099 (finalize_nesting_tree): Likewise.
5100 (unnest_nesting_tree): Likewise.
5101 (free_nesting_tree): Use iter_nestinfo_start, iter_nestinfo_next.
5102 (get_chain_decl, get_chain_field): Reset DECL_NO_STATIC_CHAIN.
5103 (convert_gimple_call): Early out if gimple_call_chain already set.
5104 (convert_all_function_calls): Iterate until no new functions
5105 require a static chain.
5106 (finalize_nesting_tree_1): Assert DECL_NO_STATIC_CHAIN is unset
5107 when building a trampoline. Use dump_function_to_file instead
5108 of dump_function.
5109 (lower_nested_functions): Open dump_file. Validate that decls
5110 that have DECL_NO_STATIC_CHAIN from the front end don't have that
5111 bit reset by this pass.
5112
9b87db3c
MM
51132009-09-16 Michael Matz <matz@suse.de>
5114
5115 PR fortran/41212
5116 * tree.h (struct tree_decl_common): Add decl_restricted_flag,
5117 shorten decl_common_unused.
5118 (DECL_RESTRICTED_P): New accessor.
5119 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use it
5120 to disambiguate marked decls and restrict pointers.
5121
79876307
RH
51222009-09-16 Richard Henderson <rth@redhat.com>
5123
5124 PR middle-end/41360
5125 * cfgbuild.c (find_bb_boundaries): Re-instate 2009-09-02 barrier fix.
5126
e038c37b
JJ
51272009-09-16 Jakub Jelinek <jakub@redhat.com>
5128
5129 * integrate.c (set_block_abstract_flags): Call
5130 set_decl_abstract_flags also on BLOCK_NONLOCALIZED_VARs.
5131
4075e7e8
RG
51322009-09-16 Richard Guenther <rguenther@suse.de>
5133
5134 PR middle-end/34011
5135 * tree-flow-inline.h (may_be_aliased): Compute readonly variables
5136 as non-aliased.
5137
21d05694
DD
51382009-09-16 DJ Delorie <dj@redhat.com>
5139 Kaz Kojima <kkojima@gcc.gnu.org>
5140
5141 * config/sh/sh.c (output_stack_adjust): Add new argument frame_p.
5142 (sh_expand_prologue): Update calls to output_stack_adjust.
2a79f8e4 5143 (sh_expand_epilogue): Likewise.
21d05694 5144
e484d1f0
AN
51452009-09-15 Adam Nemet <anemet@caviumnetworks.com>
5146
5147 PR bootstrap/41349
5148 * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when
5149 trying to limit the extent of searches in the insn stream.
5150
d7a9e7c5
NF
51512009-09-15 Nathan Froyd <froydnj@codesourcery.com>
5152 Jakub Jelinek <jakub@redhat.com>
5153
5154 PR target/41175
5155 PR target/40677
5156 * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
5157 problem.
5158 (SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
5159 SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): New strategy bits.
5160 (rs6000_savres_strategy): Always save FP registers inline if the
5161 target doesn't support hardware double-precision. Set the above
5162 bits in return value when needed.
5163 (rs6000_savres_routine_sym): Fix computation for cache selector.
5164 Mark the generated symbol as a function. Rename exitp argument to
5165 lr. Move code for determining the name of the symbol...
5166 (rs6000_savres_routine_name): ...here. New function. Add cases for
5167 getting the names right on AIX and 64-bit Linux.
5168 (savres_routine_name): New variable.
5169 (rs6000_make_savres_rtx): Rename exitp argument to lr. Don't assert
5170 lr isn't set when savep. Use r12 resp. r1 instead of r11 depending
5171 on what the target routine uses as a base register. If savep && lr
5172 describe saving of r0 into memory slot.
5173 (rs6000_emit_prologue): Correct use of call_used_regs. Fix out of
5174 line calls for AIX ABI.
5175 (rs6000_output_function_prologue): Use rs6000_savres_routine_name to
5176 determine FP save/restore functions.
5177 (rs6000_emit_stack_reset): Handle savres if sp_offset != 0 and
5178 frame_reg_rtx != sp_reg_rtx. Use gen_add3_insn instead of
5179 gen_addsi3.
5180 (rs6000_emit_epilogue): Adjust computation of restore_lr.
5181 Duplicate restoration of LR and execute the appropriate one
5182 depending on whether GPRs are being restored inline. Set r11 from
5183 offsetted frame_reg_rtx instead of sp_reg_rtx; if frame_reg_rtx is
5184 r11, adjust sp_offset. Use gen_add3_insn instead of gen_addsi3.
5185 Fix out of line calls for AIX ABI.
5186 * config/rs6000/rs6000.md (*return_and_restore_fpregs_aix_<mode>):
5187 New insn.
5188 * config/rs6000/spe.md (*save_gpregs_spe): Use explicit match for
5189 register 11.
5190 (*restore_gpregs_spe): Likewise.
5191 (*return_and_restore_gpregs_spe): Likewise.
5192 * config/rs6000/linux64.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
5193 Define to empty string unconditionally.
5194 * config/rs6000/sysv4.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
5195 Define to empty string unconditionally.
5196 (GP_SAVE_INLINE, FP_SAVE_INLINE): Handle TARGET_64BIT the same as
5197 !TARGET_64BIT.
5198
c7d68c96
JH
51992009-09-15 Jan Hubicka <jh@suse.cz>
5200
5201 * doc/invoke.texi (inline-insns-auto): Drop from 60 to 50.
5202 * params.def (inline-insns-auto): Likewise.
5203
aa9dc284
MJ
52042009-09-15 Martin Jambor <mjambor@suse.cz>
5205
5206 * ipa-inline.c (estimate_function_body_sizes): Dump info about
5207 individual statements only at TDF_DETAILS dump level. Format
5208 source for 80 characters per line.
5209
52102009-09-15 Christian Bruel <christian.bruel@st.com>
56550f23 5211
2a79f8e4
UB
5212 * regrename.c (do_replace): Update REG_DEAD notes.
5213
0601d0cf
RE
52142009-09-15 Revital Eres <eres@il.ibm.com>
5215
5216 * doc/tm.texi (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Document.
5217 * targhooks.c (default_builtin_support_vector_misalignment):
5218 New builtin function.
5219 * targhooks.h (default_builtin_support_vector_misalignment):
5220 Declare.
5221 * target.h (builtin_support_vector_misalignment):
5222 New field in struct gcc_target.
5223 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Call
5224 new builtin function.
5225 * target-def.h (TARGET_SUPPORT_VECTOR_MISALIGNMENT):
5226 Define.
5227 * config/rs6000/rs6000.c
5228 (rs6000_builtin_support_vector_misalignment): New function.
5229 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Define.
5230
e5e44796
JZ
52312009-09-15 Jie Zhang <jie.zhang@analog.com>
5232
5233 * config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P
5234 instead of INSN_P.
5235 (bfin_optimize_loop): Likewise.
5236 (bfin_gen_bundles): Likewise.
5237 (workaround_speculation): Likewise.
5238 (find_load): Return NULL_RTX for debug_insn.
5239
6dac2e8e
UB
52402009-09-15 Uros Bizjak <ubizjak@gmail.com>
5241
5242 * config/alpha/alpha.md (smaxsf3): Disable for IEEE mode.
5243 (sminsf3): Ditto.
5244
d839f1eb
DD
52452009-09-14 DJ Delorie <dj@redhat.com>
5246
5247 * config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
6dac2e8e
UB
5248 * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in
5249 VLIW mode.
d839f1eb 5250
1c384bf1 52512009-09-14 Richard Henderson <rth@redhat.com>
6dac2e8e 5252 Jakub Jelinek <jakub@redhat.com>
1c384bf1
RH
5253
5254 * builtins.c (expand_builtin_synchronize): Use gimple_build_asm_vec.
5255 * cfgbuild.c (make_edges): Handle asm goto.
5256 * cfglayout.c (fixup_reorder_chain): Likewise.
5257 * cfgrtl.c (patch_jump_insn): Likewise.
5258 * gimple-pretty-print.c (dump_gimple_asm): Likewise.
5259 * gimple.c (gimple_build_asm_1): Add and use nlabels parameter.
5260 (gimple_build_asm_vec): Add and use labels parameter.
5261 (gimple_build_asm): Remove.
5262 (walk_gimple_asm): Walk labels too.
5263 * gimple.def (GIMPLE_ASM): Update docs.
5264 * gimple.h: Update decls.
5265 (struct gimple_statement_asm): Change nc to use unsigned char;
5266 add nl member.
5267 (gimple_asm_nlabels): New.
5268 (gimple_asm_label_op, gimple_asm_set_label_op): New.
5269 * gimplify.c (gimplify_asm_expr): Copy labels from ASM_EXPR
5270 into gimple_build_asm_vec.
5271 * jump.c (mark_jump_label_asm): New.
5272 (mark_jump_label): Use it.
5273 (redirect_jump_1): Handle asm goto.
5274 (invert_jump_1): Soft fail if X is null.
5275 * recog.c (extract_asm_operands): New.
5276 (asm_noperands): Use it; handle asm labels.
5277 (decode_asm_operands): Use extract_asm_operands.
5278 (asm_operand_ok): Properly handle empty string.
5279 * reg-stack.c (get_asm_operands_in_out): Rename from
5280 get_asm_operand_n_inputs; use extract_asm_operands; return both
5281 inputs and outputs by reference; update all callers.
5282 * rtl.def (ASM_OPERANDS): Add label vector as operand 6.
5283 * rtl.h (ASM_OPERANDS_LABEL_VEC): New.
5284 (ASM_OPERANDS_LABEL_LENGTH, ASM_OPERANDS_LABEL): New.
5285 (ASM_OPERANDS_SOURCE_LOCATION): Renumber.
5286 (extract_asm_operands): Declare.
5287 * stmt.c (expand_asm_operands): Add and use labels parameter.
5288 (check_unique_operand_names): Likewise.
5289 (resolve_asm_operand_names, resolve_operand_name_1): Likewise.
5290 (expand_asm_stmt): Handle asm labels.
5291 * tree-cfg.c (make_gimple_asm_edges): New.
5292 (make_edges): Use it.
5293 (cleanup_dead_labels): Handle asm labels.
5294 (is_ctrl_altering_stmt): Likewise.
5295 (gimple_redirect_edge_and_branch): Likewise.
5296 * tree.def (ASM_EXPR): Add 5th operand.
5297 * tree.h (ASM_LABELS): New.
5298 (resolve_asm_operand_names): Update decl.
5299
5300 * c-parser.c (c_parser_asm_statement): Parse asm goto.
5301 (c_parser_asm_goto_operands): New.
5302 * c-tree.h (build_asm_expr): Update decl.
5303 * c-typeck.c (build_asm_expr): Add and use labels parameter.
5304 * doc/extend.texi: Document asm goto.
5305
1d65f45c
RH
53062009-09-14 Richard Henderson <rth@redhat.com>
5307
5308 * except.h: Update declarations.
5309 (struct pointer_map_t): Forward declare.
5310 (ERT_UNKNOWN, ERT_THROW, ERT_CATCH): Remove.
5311 (struct eh_landing_pad_d, eh_landing_pad): New.
5312 (struct eh_catch_d, eh_catch): New.
5313 (struct eh_region_d): Remove next_region_sharing_label, aka,
5314 label, tree_label, landing_pad, post_landing_pad, resume,
5315 may_contain_throw. Rename region_number to index. Remove
5316 u.eh_catch, u.eh_throw. Rename u.eh_try.eh_catch to first_catch.
5317 Add u.must_not_throw, landing_pads, exc_ptr_reg, filter_reg.
5318 (VEC(eh_landing_pad,gc)): New.
5319 (struct eh_status): Remove last_region_number. Add lp_array,
5320 throw_stmt_table, ttype_data, ehspec_data.
5321 (ehr_next, FOR_ALL_EH_REGION_AT): New.
5322 (FOR_ALL_EH_REGION_FN, FOR_ALL_EH_REGION): New.
5323 * except.c (lang_protect_cleanup_actions): Return tree.
5324 (struct ehl_map_entry): Remove.
5325 (init_eh_for_function): Push zero entries for region and lp_array.
5326 (gen_eh_region): Add to region_array immediately.
5327 (gen_eh_region_catch): Operate on eh_catch objects.
5328 (gen_eh_landing_pad): New.
5329 (get_eh_region_may_contain_throw, get_eh_region_tree_label): Remove.
5330 (get_eh_region_no_tree_label, set_eh_region_tree_label): Remove.
5331 (get_eh_region_from_number, get_eh_region_from_number_fn): New.
5332 (get_eh_landing_pad_from_number_fn): New.
5333 (get_eh_landing_pad_from_number): New.
5334 (get_eh_region_from_lp_number_fn): New.
5335 (get_eh_region_from_lp_number): New.
5336 (expand_resx_stmt, note_eh_region_may_contain_throw): Remove.
5337 (get_exception_pointer, get_exception_filter): Remove.
5338 (collect_eh_region_array, can_be_reached_by_runtime): Remove.
5339 (current_function_has_exception_handlers): Simplify.
5340 (bring_to_root, eh_region_replaceable_by_p): Remove.
5341 (replace_region, hash_type_list, hash_eh_region): Remove.
5342 (eh_regions_equal_p, merge_peers, remove_unreachable_regions): Remove.
5343 (label_to_region_map, num_eh_regions): Remove.
5344 (get_next_region_sharing_label, must_not_throw_labels): Remove.
5345 (find_exception_handler_labels): Remove.
5346 (duplicate_eh_regions_0, find_prev_try): Remove.
5347 (struct duplicate_eh_regions_data): New.
5348 (duplicate_eh_regions_1): Rewrite.
5349 (duplicate_eh_regions): Return a pointer map instead of an
5350 integer offset.
5351 (copy_eh_region_1, copy_eh_region, push_reachable_handler): Remove.
5352 (redirect_eh_edge_to_label): Remove.
5353 (eh_region_outermost): Rewrite using eh_region pointers
5354 instead of integers.
5355 (add_ttypes_entry): Update for ttype_data move to eh_status.
5356 (add_ehspec_entry): Rewrite with VEC instead of varray.
5357 (assign_filter_values): Likewise. Export.
5358 (build_post_landing_pads, connect_post_landing_pads): Remove.
5359 (dw2_build_landing_pads): Rewrite to use lp_array.
5360 (struct sjlj_lp_info, sjlj_find_directly_reachable_regions): Remove.
5361 (sjlj_assign_call_site_values): Rewrite to use lp_array.
5362 (sjlj_emit_dispatch_table, sjlj_build_landing_pads): Likewise.
5363 (sjlj_mark_call_sites): Update for landing pad numbers.
5364 (finish_eh_generation): Rewrite.
5365 (gate_handle_eh): Do nothing for no eh tree.
5366 (pass_rtl_eh): Move up near finish_eh_generation.
5367 (remove_eh_landing_pad): New.
5368 (remove_eh_handler): Export.
5369 (remove_eh_region, remove_eh_handler_and_replace): Remove.
5370 (for_each_eh_label): Rewrite to use lp_array.
5371 (make_reg_eh_region_note): New.
5372 (make_reg_eh_region_note_nothrow_nononlocal): New.
5373 (insn_could_throw_p): New.
5374 (copy_reg_eh_region_note_forward): New.
5375 (copy_reg_eh_region_note_backward): New.
5376 (check_handled, add_reachable_handler): Remove.
5377 (reachable_next_level, foreach_reachable_handler): Remove.
5378 (arh_to_landing_pad, arh_to_label, reachable_handlers): Remove.
5379 (get_eh_region_and_lp_from_rtx): New.
5380 (get_eh_region_from_rtx): New.
5381 (can_throw_internal_1, can_throw_external_1): Remove.
5382 (can_throw_internal): Use get_eh_region_from_rtx.
5383 (can_throw_external): Use get_eh_region_and_lp_from_rtx.
5384 (insn_nothrow_p, can_nonlocal_goto): New.
5385 (expand_builtin_eh_common, expand_builtin_eh_pointer): New.
5386 (expand_builtin_eh_filter, expand_builtin_eh_copy_values): New.
5387 (add_action_record): Use VEC not varray.
5388 (collect_one_action_chain): Update for eh_region changes.
5389 (convert_to_eh_region_ranges): Make static. Use VEC not varray.
5390 Use get_eh_region_and_lp_from_rtx.
5391 (gate_convert_to_eh_region_ranges): New.
5392 (pass_convert_to_eh_region_ranges): Use it.
5393 (push_uleb128, push_sleb128): Use VEC not varray.
5394 (output_one_function_exception_table): Likewise.
5395 (dump_eh_tree): Update for eh_region changes.
5396 (verify_eh_tree): Likewise.
5397 (verify_eh_region, default_init_unwind_resume_libfunc): Remove.
5398 * tree-eh.c: Include target.h.
5399 (add_stmt_to_eh_lp_fn): Rename from add_stmt_to_eh_region_fn.
5400 Don't disallow GIMPLE_RESX; adjust argument check.
5401 (add_stmt_to_eh_lp): Rename from add_stmt_to_eh_region.
5402 (record_stmt_eh_region): Update for landing pad numbers;
5403 generate a landing pad if necessary.
5404 (remove_stmt_from_eh_lp): Rename from remove_stmt_from_eh_region.
5405 (remove_stmt_from_eh_lp_fn): Similarly.
5406 (lookup_stmt_eh_lp_fn): Rename from lookup_stmt_eh_region_fn.
5407 Update for lp numbers; don't special case missing throw_stmt_table.
5408 (lookup_expr_eh_lp): Similarly.
5409 (lookup_stmt_eh_lp): Rename from lookup_stmt_eh_region.
5410 (eh_seq, eh_region_may_contain_throw): New.
5411 (struct leh_state): Add ehp_region.
5412 (struct leh_tf_state): Remove eh_label.
5413 (emit_post_landing_pad): New.
5414 (emit_resx, emit_eh_dispatch): New.
5415 (note_eh_region_may_contain_throw): New.
5416 (frob_into_branch_around): Take eh_region not eh label;
5417 emit eh code into eh_seq.
5418 (honor_protect_cleanup_actions): Early exit for no actions. Don't
5419 handle EXC_PTR_EXPR, FILTER_EXPR. Use gimple_build_eh_must_not_throw,
5420 lower_eh_must_not_throw. Emit code to eh_seq.
5421 (lower_try_finally_nofallthru): Emit eh code to eh_seq.
5422 (lower_try_finally_onedest): Likewise.
5423 (lower_try_finally_copy): Likewise.
5424 (lower_try_finally_switch): Likewise.
5425 (lower_try_finally): Initialize ehp_region.
5426 (lower_catch): Update for eh_catch objects.
5427 (lower_eh_filter): Don't handle must_not_throw.
5428 (lower_eh_must_not_throw): New.
5429 (lower_cleanup): Don't set eh_label.
5430 (lower_eh_constructs_2): Resolve eh builtins.
5431 Handle GIMPLE_EH_MUST_NOT_THROW.
5432 (lower_eh_constructs): Initialize eh_region_may_contain_throw.
5433 Add eh_seq to the end of the function body.
5434 (make_eh_dispatch_edges): New.
5435 (make_eh_edge): Remove.
5436 (make_eh_edges): Simplify for landing pads.
5437 (redirect_eh_edge_1): New.
5438 (redirect_eh_edge): Use it.
5439 (redirect_eh_dispatch_edge): New.
5440 (stmt_could_throw_p): Use a switch. Allow RESX.
5441 (stmt_can_throw_external): Use lookup_stmt_eh_lp.
5442 (stmt_can_throw_internal): Likewise.
5443 (maybe_clean_eh_stmt_fn, maybe_clean_eh_stmt): New.
5444 (maybe_clean_or_replace_eh_stmt): Update for landing pads.
5445 (maybe_duplicate_eh_stmt_fn, maybe_duplicate_eh_stmt): New.
5446 (gate_refactor_eh): New.
5447 (pass_refactor_eh): Use it.
5448 (lower_resx, execute_lower_resx, pass_lower_resx): New.
5449 (lower_eh_dispatch, execute_lower_eh_dispatch): New.
5450 (gate_lower_ehcontrol, pass_lower_eh_dispatch): New.
5451 (remove_unreachable_handlers): Rename from
5452 tree_remove_unreachable_handlers; rewrite for landing pads;
5453 call remove_eh_handler directly.
5454 (remove_unreachable_handlers_no_lp): New.
5455 (unsplit_eh, unsplit_all_eh): New.
5456 (tree_empty_eh_handler_p, all_phis_safe_to_merge): Remove.
5457 (cleanup_empty_eh_merge_phis, cleanup_empty_eh_move_lp): New.
5458 (cleanup_empty_eh_unsplit): New.
5459 (cleanup_empty_eh): Rewrite.
5460 (cleanup_all_empty_eh): New.
5461 (execute_cleanup_eh): Rename from cleanup_eh. Remove unreachable
5462 handlers first. Use unsplit_all_eh, cleanup_all_empty_eh.
5463 (gate_cleanup_eh): New.
5464 (pass_cleanup_eh): Use it.
5465 (verify_eh_edges): Move later in file. Expect one EH edge.
5466 (verify_eh_dispatch_edge): New.
5467
5468 * Makefile.in (FUNCTION_H): Use vecprim.h, not varray.h.
5469 (gtype-desc.o): Add TARGET_H.
5470 (tree.o): Use EXCEPT_H, not except.h.
5471 (cfgbuild.o): Add EXPR_H.
5472 (GTFILES): Add vecprim.h.
5473 * builtins.c (expand_builtin): Handle BUILT_IN_EH_POINTER,
5474 BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES.
5475 * builtins.def (BUILT_IN_UNWIND_RESUME, BUILT_IN_EH_POINTER,
5476 BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES): New.
5477 * calls.c (emit_call_1): Use make_reg_eh_region_note.
5478 * cfgbuild.c (control_flow_insn_p): Use can_nonlocal_goto; tidy
5479 calls to can_throw_internal.
5480 (rtl_make_eh_edge): Use get_eh_landing_pad_from_rtx.
5481 (make_edges): Don't handle RESX; use can_nonlocal_goto.
5482 * cfgexpand.c (expand_gimple_stmt_1): Don't handle RESX.
5483 (expand_gimple_stmt): Use make_reg_eh_region_note.
5484 (expand_debug_expr): Don't handle EXC_PTR_EXPR and FILTER_EXPR.
5485 (gimple_expand_cfg): Don't call convert_from_eh_region_ranges,
5486 or find_exception_handler_labels.
5487 * cfgrtl.c (rtl_verify_flow_info_1): Don't handle RESX. Assert
5488 there is exacly one EH edge. Use can_nonlocal_goto and
5489 can_throw_internal.
5490 * cgraphunit.c (update_call_expr): Use maybe_clean_eh_stmt_fn.
5491 (cgraph_materialize_all_clones): Use maybe_clean_or_replace_eh_stmt.
5492 * combine.c (can_combine_p, try_combine): Use insn_nothrow_p.
5493 * cse.c (count_reg_usage, insn_live_p): Use insn_could_throw_p.
5494 * dce.c (deletable_insn_p_1): Don't test may_trap_p.
5495 (deletable_insn_p): Use insn_nothrow_p; reorder nonjump insn test.
5496 * dse.c (scan_insn): Use insn_could_throw_p.
5497 * emit-rtl.c (try_split): Use copy_reg_eh_region_note_backward.
5498 * expr.c (expand_expr_real): Use make_reg_eh_region_note.
5499 (expand_expr_real_1): Don't handle RESX, EXC_PTR, or FILTER_EXPR.
5500 * fold-const.c (tree_expr_nonnegative_warnv_p): Don't handle
5501 EXC_PTR_EXPR or FILTER_EXPR.
5502 (tree_expr_nonzero_warnv_p): Likewise.
5503 * function.h: Include vecprim.h, not varray.h
5504 (struct rtl_eh): Remove filter, exc_ptr, built_landing_pad members;
5505 move ttype_data and ehspec_data members to struct eh_status; change
5506 action_record_data member to a VEC.
5507 * gcse.c (hash_scan_set): Use can_throw_internal.
5508 * gengtype.c (open_base_files): Add target.h to gtype-desc.c.
5509 * gimple-iterator.c (gsi_replace): Use maybe_clean_or_replace_eh_stmt.
5510 * gimple-low.c (lower_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
5511 (block_may_fallthru): Don't handle RESX_EXPR.
5512 * gimple-pretty-print.c (dump_gimple_label): Dump EH_LANDING_PAD_NR.
5513 (dump_gimple_eh_must_not_throw, dump_gimple_eh_dispatch): New.
5514 (dump_gimple_stmt): Dump landing pad information with TDF_EH;
5515 handle GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH.
5516 * gimple.c (gss_for_code): Handle GIMPLE_EH_MUST_NOT_THROW,
5517 GIMPLE_EH_DISPATCH, GIMPLE_RESX.
5518 (gimple_size): Likewise.
5519 (gimple_build_eh_dispatch, gimple_build_eh_must_not_throw): New.
5520 (gimple_build_resx): Use gimple_build_with_ops.
5521 (DEFTREECODE): Don't handle EXC_PTR_EXPR, FILTER_EXPR.
5522 (is_gimple_val): Likewise.
5523 (is_gimple_stmt): Remove RESX_EXPR.
5524 * gimple.def (GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH): New.
5525 (GIMPLE_RESX): Reorder with other EH constructs.
5526 * gimple.h (struct gimple_statement_eh_mnt): New.
5527 (struct gimple_statement_eh_ctrl): Rename from gimple_statement_resx.
5528 (gimple_eh_filter_must_not_throw): Remove.
5529 (gimple_eh_filter_set_must_not_throw): Remove.
5530 (gimple_eh_must_not_throw_fndecl): New.
5531 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region): New.
5532 (is_gimple_resx): New.
5533 * gimplify.c (gimplify_expr): Don't handle EXC_PTR_EXPR, RESX_EXPR.
5534 Don't copy EH_FILTER_MUST_NOT_THROW.
5535 * gsstruct.def (GSS_EH_MNT, GSS_EHCONTROL): New.
5536 * ipa-inline.c (estimate_function_body_sizes): Don't try to
5537 handle must_not_throw_labels specially.
5538 * ipa-pure-const.c (check_call): Update debug statement for LP.
5539 * ipa-type-escape.c (check_operand): Don't handle EXC_PTR or FILTER.
5540 * ipa-utils.c (get_base_var): Likewise.
5541 * libfunc.h (LTI_unwind_resume, unwind_resume_libfunc): Remove.
5542 * lower-subreg.c (move_eh_region_note): Remove.
5543 (resolve_simple_move): Use copy_reg_eh_region_note_forward.
5544 * omp-low.c (new_omp_context): Update for eh_lp_nr.
5545 (create_task_copyfn): Likewise.
5546 (maybe_catch_exception): Use gimple_build_eh_filter.
5547 * optabs.c (emit_libcall_block): Update test for no-nonlocal-goto
5548 REG_EH_REGION. Use make_reg_eh_region_note_nothrow_nononlocal.
5549 * passes.c (init_optimization_passes): Add pass_lower_eh_dispatch
5550 and pass_lower_resx.
5551 * print-tree.c (print_node): Dump EH_LANDING_PAD_NR.
5552 * recog.c (peephole2_optimize): Use copy_reg_eh_region_note_backward,
5553 can_throw_internal, can_nonlocal_goto.
5554 * reload1.c (fixup_eh_region_note): Use insn_could_throw_p,
5555 copy_reg_eh_region_note_forward.
5556 (emit_input_reload_insns): Use copy_reg_eh_region_note_forward.
5557 (emit_output_reload_insns): Likewise.
5558 (copy_eh_notes): Remove.
5559 * rtl.def (RESX): Remove.
5560 * rtl.h: Update declarations.
5561 * sese.c (graphite_copy_stmts_from_block): Use maybe_duplicate_eh_stmt.
5562 * tree-cfg.c (make_edges): Handle GIMPLE_EH_DISPATCH.
5563 (update_eh_label): Remove.
5564 (cleanup_dead_labels_eh): New.
5565 (cleanup_deal_labels): Use it instead of update_eh_label.
5566 (gimple_merge_blocks): Update landing pad data structure when
5567 removing a landing pad label.
5568 (remove_useless_stmts_tc): Remove gimple_eh_filter_must_not_throw
5569 test; handle GIMPLE_EH_MUST_NOT_THROW.
5570 (is_ctrl_altering_stmt): Handle GIMPLE_EH_DISPATCH.
5571 (verify_gimple_assign_single): Don't handle EXC_PTR or FILTER_EXPR.
5572 (verify_types_in_gimple_stmt): Handle GIMPLE_EH_DISPATCH.
5573 (verify_stmt): Likewise. Verify landing pads.
5574 (gimple_redirect_edge_and_branch): Handle GIMPLE_EH_DISPATCH.
5575 (gimple_duplicate_bb): Use maybe_duplicate_eh_stmt.
5576 (struct move_stmt_d): Add eh_map.
5577 (move_stmt_eh_region_nr, move_stmt_eh_region_tree_nr): New.
5578 (move_stmt_r): Remap eh region numbers in builtin calls,
5579 resx and eh_dispatch.
5580 (move_block_to_fn): Remove eh_offset parameter. Use
5581 maybe_duplicate_eh_stmt_fn.
5582 (find_outermost_region_in_block): Operate on eh_region pointers
5583 instead of region numbers.
5584 (move_sese_region_to_fn): Expect eh_map instead of eh_offset from
5585 duplicate_eh_regions.
5586 * tree-cfgcleanup.c (tree_forwarder_block_p): Move entry block edge
5587 test earlier. Disallow EH landing pads.
5588 * tree-cfa.c (create_tree_common_ann): Don't set ann->rn.
5589 * tree-flow.h: Update declarations.
5590 (struct tree_ann_common_d): Replace rn with lp_nr.
5591 * tree-inline.c (copy_tree_body_r): Don't handle RESX_EXPR.
5592 (remap_eh_region_nr, remap_eh_region_tree_nr): New.
5593 (remap_gimple_stmt): Remap eh region numbers in builtin calls,
5594 resx and eh_dispatch.
5595 (copy_bb): Use maybe_duplicate_eh_stmt_fn.
5596 (copy_edges_for_bb): Use make_eh_dispatch_edges.
5597 (copy_cfg_body): Expect eh_map instead of eh_region_offset
5598 from duplicate_eh_regions.
5599 (estimate_num_insns): Don't handle EXC_PTR_EXPR or FILTER_EXPR;
5600 update RESX; handle EH_DISPATCH.
5601 (expand_call_inline): Set eh_lp_nr, not eh_region.
5602 (maybe_inline_call_in_expr): Likewise.
5603 * tree-inline.h (struct copy_body_data): Replace eh_region with
5604 eh_lp_nr, eh_region_offset with eh_map.
5605 * tree-optimize.c (execute_fixup_cfg): Use maybe_clean_eh_stmt.
5606 * tree-pass.h (pass_lower_eh_dispatch, pass_lower_resx): New.
5607 * tree-pretty-print.c (dump_generic_node): Don't handle
5608 EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR.
5609 * tree-sra.c (scan_function): Use maybe_clean_eh_stmt.
5610 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Don't handle
5611 EXC_PTR_EXPR, FILTER_EXPR.
5612 * tree-ssa-operands.c (get_expr_operands): Likewise.
5613 * tree-ssa-propagate.c (valid_gimple_rhs_p): Likewise.
5614 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
5615 (ao_ref_init_from_vn_reference): Likewise.
5616 * tree-ssa-sink.c (statement_sink_location): Likewise.
5617 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
5618 (mark_virtual_phi_result_for_renaming): Export. Tidy.
5619 * tree-ssa-pre.c (get_or_alloc_expr_for): Don't handle
5620 EXC_PTR_EXPR, FILTER_EXPR.
5621 (is_exception_related): Remove.
5622 (compute_avail): Don't call it.
5623 * tree-ssa-structalias.c: Remove VEC definitions for int and unsigned.
5624 * tree.c (find_decls_types_in_eh_region): Update for eh_region changes.
5625 (find_decls_types_in_node): Use FOR_ALL_EH_REGION_FN.
5626 (build_common_builtin_nodes): Add enable_cxa_end_cleanup parameter.
5627 Build EH builtins.
5628 (build_resx): Remove.
5629 * tree.def (EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR): Remove.
5630 * tree.h: Update declarations.
5631 (EH_FILTER_MUST_NOT_THROW): Remove.
5632 (struct tree_label_decl): Add eh_landing_pad_nr.
5633 (EH_LANDING_PAD_NR): New.
5634 * value-prof.c (gimple_ic): Tidy variable names. Update for
5635 landing pad numbers.
5636 (gimple_stringop_fixed_value): Tidy variable names. Assert
5637 that neither call stmt can throw.
5638 * vecprim.h (uchar): New.
5639 (VEC(uchar,heap), VEC(uchar,gc)): New.
5640
5641 * c-common.c (c_define_builtins): Update call to
5642 build_common_builtin_nodes.
5643 * c-parser.c (c_parse_file): Don't call
5644 default_init_unwind_resume_libfunc.
5645
0c433c31
RS
56462009-09-14 Richard Sandiford <rdsandiford@googlemail.com>
5647
5648 * config/mips/mips-protos.h (mips_cfun_has_cprestore_slot_p): Declare.
5649 (mips_cprestore_address_p): Likewise.
5650 (mips_save_gp_to_cprestore_slot): Likewise.
5651 (mips_restore_gp): Rename to...
5652 (mips_restore_gp_from_cprestore_slot): ...this.
5653 (mips_must_initialize_gp_p): Declare.
5654 (mips_emit_save_slot_move): Likewise.
5655 (mips_output_load_label): Return nothing.
5656 (mips_eh_uses): Declare.
5657 * config/mips/mips.h (TARGET_SPLIT_CALLS): Require epilogue_completed.
5658 (TARGET_CPRESTORE_DIRECTIVE): New macro.
5659 (TARGET_ABSOLUTE_JUMPS): Likewise.
5660 (EH_USES): Likewise.
5661 (FIRST_PSEUDO_REGISTER): Update comment.
5662 (MIPS_ABSOLUTE_JUMP): New macro, extracted from...
5663 (MIPS_CALL): ...here.
5664 (REGISTER_NAMES): Add $cprestore.
5665 * config/mips/mips.c (machine_function): Remove has_gp_insn_p.
5666 Add load_label_length, has_inflexible_gp_insn_p,
5667 has_flexible_gp_insn_p, must_initialize_gp_p and
5668 must_restore_gp_when_clobbered_p.
5669 (mips_expand_call): Don't generate split instructions here.
5670 (mips_split_call): Update the call to mips_restore_gp after
5671 the above name change.
5672 (mips16_cfun_returns_in_fpr_p): Move earlier in file.
5673 (mips_find_gp_ref): New function.
5674 (mips_insn_has_inflexible_gp_ref_p): Likewise.
5675 (mips_cfun_has_inflexible_gp_ref_p): Likewise.
5676 (mips_insn_has_flexible_gp_ref_p): Likewise.
5677 (mips_cfun_has_flexible_gp_ref_p): Likewise.
5678 (mips_function_has_gp_insn): Delete.
5679 (mips_global_pointer): Drop the df_regs_ever_live_p check.
5680 Use the new functions above. Only return INVALID_REGNUM
5681 for TARGET_ABSOLUTE_JUMPS.
5682 (mips_must_initialize_gp_p): New function.
5683 (mips_get_cprestore_base_and_offset): New function, extracted from...
5684 (mips_cprestore_slot): ...here. Take a bool parameter.
5685 (mips_cfun_has_cprestore_slot_p): New function.
5686 (mips_cprestore_address_p): Likewise.
5687 (mips_save_gp_to_cprestore_slot): Likewise.
5688 (mips_restore_gp): Rename to...
5689 (mips_restore_gp_from_cprestore_slot): ...this. Assert
5690 epilogue_completed. Update the call to mips_cprestore_slot.
5691 Test cfun->machine->must_restore_gp_when_clobbered_p.
5692 (mips_direct_save_slot_move_p): New function.
5693 (mips_emit_save_slot_move): Likewise.
5694 (mips_output_cplocal): Test mips_must_initialize_gp_p () instead
5695 of cfun->machine->global_pointer.
5696 (mips_output_function_prologue): Check mips_must_initialize_gp_p ().
5697 (mips_save_reg): Use mips_emit_save_slot_move.
5698 (mips_expand_prologue): Set must_initialize_gp_p.
5699 Use mips_cfun_has_cprestore_slot_p. Use gen_potential_cprestore
5700 for all cprestore saves. Emit a use_cprestore instruction after
5701 setting up the cprestore slot.
5702 (mips_restore_reg): Use mips_emit_save_slot_move.
5703 (mips_process_load_label): New function.
5704 (mips_load_label_length): Likewise.
5705 (mips_output_load_label): Don't return asm: output it here instead.
5706 Use mips_process_load_label.
5707 (mips_adjust_insn_length): Adjust the length of branch instructions
5708 that have length MAX_PIC_BRANCH_LENGTH.
5709 (mips_output_conditional_branch): Update the call to
5710 mips_output_load_label. Assume the branch target is OPERANDS[0]
5711 rather than OPERANDS[1]. Use MIPS_ABSOLUTE_JUMP for absolute jumps.
5712 (mips_output_order_conditional_branch): Swap the meaning of
5713 OPERANDS[0] and OPERANDS[1].
5714 (mips_variable_issue): Don't count ghost instructions.
5715 (mips_expand_ghost_gp_insns): New function.
5716 (mips_reorg): Rerun mips_reorg_process_insns if it returns true.
5717 (mips_output_mi_thunk): Set must_initialize_gp_p.
5718 (mips_eh_uses): New function.
5719 * config/mips/predicates.md (cprestore_save_slot_operand)
5720 (cprestore_load_slot_operand): New predicates.
5721 * config/mips/mips.md (UNSPEC_POTENTIAL_CPRESTORE): New unspec.
5722 (UNSPEC_MOVE_GP): Likewise.
5723 (UNSPEC_CPRESTORE, UNSPEC_RESTORE_GP, UNSPEC_EH_RETURN)
5724 (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT): Bump to make room.
5725 (CPRESTORE_SLOT_REGNUM): New register.
5726 (MAX_PIC_BRANCH_LENGTH): New constant.
5727 (jal_macro): Use MIPS_ABSOLUTE_JUMPS.
5728 (length): Use MAX_PIC_BRANCH_LENGTH as a placeholder for PIC long
5729 branches. Fix commentary.
5730 (loadgp_newabi_<mode>): Change from unspec_volatile to unspec.
5731 Only split if mips_must_initialize_gp_p; expand to nothing otherwise.
5732 Change type to "ghost".
5733 (loadgp_absolute_<mode>): Likewise.
5734 (loadgp_rtp_<mode>): Likewise.
5735 (copygp_mips16): Likewise.
5736 (loadgp_blockage): Remove redundant mode attribute.
5737 (potential_cprestore): New instruction.
5738 (cprestore): Turn into an unspec set.
5739 (use_cprestore): New instruction.
5740 (*branch_fp): Swap operands 0 and 1. Remove redundant mode attribute.
5741 (*branch_fp_inverted): Likewise.
5742 (*branch_order<mode>): Likewise.
5743 (*branch_order<mode>_inverted): Likewise.
5744 (*branch_equality<mode>): Likewise.
5745 (*branch_equality<mode>_inverted): Likewise.
5746 (*branch_bit<bbv><mode>): Likewise.
5747 (*branch_bit<bbv><mode>_inverted): Likewise.
5748 (*branch_equality<mode>_mips16): Remove redundant mode.
5749 (jump): Turn into a define_expand.
5750 (*jump_absolute): New instruction.
5751 (*jump_pic): Likewise.
5752 (*jump_mips16): Rename previously-unnamed pattern. Remove
5753 redundant mode attribute.
5754 (restore_gp): Split on epilogue_completed rather than
5755 reload_completed. Change type to "ghost".
5756 (move_gp<mode>): New instruction.
5757 * config/mips/mips-dsp.md (mips_bposge): Swap operands 0 and 1.
5758 Remove redundant mode attribute.
5759 * config/mips/mips-ps-3d.md (bc1any4t): Likewise.
5760 (bc1any4f, bc1any2t, bc1any2f): Likewise.
5761 (*branch_upper_lower, *branch_upper_lower_inverted): Likewise.
5762
5910fb59
MM
57632009-09-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5764
5765 PR target/41210
5766 * config/rs6000/rs6000.c (rs6000_function_value): V2DF and V2DI
5767 are returned in the same register (vs34 or v2) that Altivec vector
5768 types are returned in.
5769 (rs6000_libcall_value): Ditto.
5770
5771 PR target/41331
5772 * config/rs6000/rs6000.c (rs6000_emit_move): Use gen_add3_insn
5773 instead of explicit addsi3/adddi3 calls.
5774 (rs6000_split_multireg_move): Ditto.
5775 (rs6000_emit_allocate_stack): Ditto.
5776 (rs6000_emit_prologue): Ditto.
5777 (rs6000_output_mi_thunk): Ditto.
5778
5779 * config/rs6000/rs6000.md (bswapdi*): Don't assume the pointer
5780 size is 64 bits if we can use 64-bit registers.
5781
49caeea1
BS
57822009-09-14 Bernd Schmidt <bernd.schmidt@analog.com>
5783
5784 * config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak
5785 symbols.
5786
8be6ada8
BS
5787 From Jie Zhang <jie.zhang@analog.com>:
5788 * config/bfin/bfin.c (bfin_expand_prologue): Ask do_link to
5789 save FP and RETS with saveall attribute.
5790 (bfin_expand_epilogue): Ask do_unlink to restore FP and RETS
5791 with saveall attribute.
5792
6c1c1dfa
BS
5793 * config/bfin/bfin.c (bfin_expand_builtin,
5794 case BFIN_BUILTIN_MULT_1X32X32): Force constants to registers for the
5795 operands.
6dac2e8e 5796
6c1c1dfa
BS
5797 From Jie Zhang <jie.zhang@analog.com>:
5798 * config/bfin/bfin.c (bfin_expand_builtin): Initialize icodes
5799 before use in two places.
5800 * config/bfin/bfin.md (AREG): Define mode iterator.
5801 (reload_in, reload_out): Use mode iterator AREG.
5802
cdb4dde5
RG
58032009-09-14 Richard Guenther <rguenther@suse.de>
5804
5805 PR middle-end/41350
5806 * dwarf2out.c (dwarf2out_begin_prologue): Adjust non-CFI asm
5807 EH personality path.
5808
f9417da1 58092009-09-13 Richard Guenther <rguenther@suse.de>
6dac2e8e 5810 Rafael Avila de Espindola <espindola@google.com>
f9417da1
RG
5811
5812 * langhooks-def.h (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
5813 (LANG_HOOKS_EH_PERSONALITY): Likewise.
5814 (LANG_HOOKS_INITIALIZER): Adjust.
5815 (lhd_pass_through_t): Declare.
5816 * langhooks.h (struct lang_hooks): Add eh_runtime_type and
5817 eh_personality.
5818 * langhooks.c (lhd_pass_through_t): New function.
6dac2e8e 5819 * dwarf2out.c (output_call_frame_info, dwarf2out_do_cfi_startproc,
f9417da1 5820 dwarf2out_begin_prologue): Use personality from current_function_decl.
6dac2e8e 5821 * expr.h (get_personality_function): Declare.
f9417da1
RG
5822 * expr.c (get_personality_function): New function.
5823 (build_personality_function): Likewise.
6dac2e8e
UB
5824 * libfuncs.h (libfunc_index): Remove LTI_eh_personality.
5825 (eh_personality_libfunc): Remove.
5826 * optabs.c (build_libfunc_function): New function split out from ...
f9417da1 5827 (init_one_libfunc): ... here.
6dac2e8e
UB
5828 * tree.h (DECL_FUNCTION_PERSONALITY): New.
5829 (tree_function_decl): Add personality.
f9417da1
RG
5830 (lhd_gcc_personality): Declare.
5831 (build_personality_function): Likewise.
5832 * tree.c (gcc_eh_personality_decl): New.
5833 (lhd_gcc_personality): New function.
5834 * except.h (lang_eh_runtime_type): Remove.
5835 (enum eh_personality_kind): New.
5836 (build_personality_function): Declare.
5837 (function_needs_eh_personality): Declare.
6dac2e8e 5838 * except.c (lang_eh_runtime_type): Remove.
f9417da1
RG
5839 (function_needs_eh_personality): New function.
5840 (add_type_for_runtime): Call lang_hooks.type_for_runtime instead.
6dac2e8e
UB
5841 (sjlj_emit_function_enter, output_function_exception_table):
5842 Use personality from current_function_decl.
f9417da1
RG
5843 * tree-eh.c (lower_eh_constructs): Set DECL_FUNCTION_PERSONALITY.
5844 * tree-inline.c (tree_can_inline_p): Do not inline across different
5845 EH personalities.
5846 (expand_call_inline): Likewise. Adjust the callers EH personality.
5847 (tree_function_versioning): Copy DECL_FUNCTION_PERSONALITY.
5848 * cgraph.c (cgraph_add_new_function): Set DECL_FUNCTION_PERSONALITY.
5849 * Makefile.in (cgraph.o): Add $(EXCEPT_H) dependency.
5850 (c-parser.o): Likewise
5851 * c-tree.h (c_eh_initialized_p): Remove.
5852 (c_maybe_initialize_eh): Likewise.
5853 * c-decl.c (finish_decl): Don't call c_maybe_initialize_eh.
5854 (finish_decl): Don't call c_maybe_initialize_eh.
5855 (c_eh_initialized_p): Remove.
5856 (c_maybe_initialize_eh): Likewise.
6dac2e8e 5857 * c-parser.c (c_parser_omp_construct): Likewise.
f9417da1
RG
5858 (c_parse_file): Initialize exception handling.
5859
933608b7
KT
58602009-09-13 Kai Tietz <kai.tietz@onevision.com>
5861
5862 * config.gcc (tm_file): Remove i386/biarch32.h
5863 for i?86-w64-mingw* case.
5864 (i?86-*-mingw* andx86_64-*-mingw*): Add multilib
5865 support.
22f34504
KT
5866 * config.host: Set for x64 mingw the option
5867 use_long_long_for_widest_fast_int to yes.
933608b7 5868
725730f2
EB
58692009-09-13 Eric Botcazou <ebotcazou@adacore.com>
5870
5871 * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
5872 * dbxout.c (dbxout_function_end): Do not test DECL_IGNORED_P.
5873 (dbxout_begin_function): Likewise.
5874 * final.c (dwarf2_debug_info_emitted_p): New predicate.
5875 (final_start_function): Do not emit debug info if DECL_IGNORED_P is
5876 set on the function.
5877 (final_end_function): Likewise.
5878 (final_scan_insn): Likewise.
5879 (rest_of_handle_final): Likewise.
5880 * varasm.c (assemble_start_function): Likewise.
5881 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
5882
58832009-09-12 Jason Merrill <jason@redhat.com>
86373e7e
JM
5884
5885 * dbgcnt.c (dbg_cnt_process_single_pair): constify.
5886 * opts.c (common_handle_option): constify.
5887
8ff51917
GP
58882009-09-12 Gerald Pfeifer <gerald@pfeifer.com>
5889
beb1adc1
GP
5890 * doc/install.texi (avr): Remove obsolete reference site.
5891
58922009-09-12 Gerald Pfeifer <gerald@pfeifer.com>
afbd0665 5893
8ff51917
GP
5894 * doc/install.texi (Binaries): Adjust AIX link.
5895
460ba396
AD
58962009-09-12 Akim Demaille <demaille@gostai.com>
5897
5898 * doc/invoke.texi (-fstrict-aliasing): Correct two examples.
5899 Use an imperative sentence.
5900
f2c4a81c
RH
59012009-09-11 Richard Henderson <rth@redhat.com>
5902
5903 * gsstruct.def (DEFGSSTRUCT): Remove printable-name argument; add
5904 structure-name and has-tree-operands arguments; update all entries.
5905 * gimple.def (DEFGSCODE): Replace 3rd argument with GSS_symbol;
5906 update all entries.
5907 * gimple.c (gimple_ops_offset_): Use HAS_TREE_OP argument.
5908 (gsstruct_code_size): New.
5909 (gss_for_code_): New.
5910 (gss_for_code): Remove.
5911 (gimple_size): Rewrite using gsstruct_code_size.
5912 (gimple_statement_structure): Move to gimple.h.
5913 * gimple.h (gimple_ops_offset_, gss_for_code_): Declare.
5914 (gss_for_code, gimple_statement_structure): New.
5915 (gimple_ops): Use new arrays; tidy.
5916
85ed9a33
JDA
59172009-09-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5918
5919 * config/pa/predicates.md (symbolic_operand): Require a CONST symbolic
5920 operand to be a PLUS expression.
5921 * config/pa/pa.c (pa_secondary_reload): Likewise.
5922
137a05d3
JJ
59232009-09-11 Jakub Jelinek <jakub@redhat.com>
5924
9258b4c1
JJ
5925 * combine.c (propagate_for_debug_subst): Call wrap_constant on top.
5926
137a05d3
JJ
5927 * print-rtl.c (print_rtx): Use JUMP_LABEL (in_rtx) instead of
5928 XEXP (in_rtx, 8).
5929
603bb63e
BS
59302009-09-11 Bernd Schmidt <bernd.schmidt@analog.com>
5931
5932 From Jie Zhang <jie.zhang@analog.com>:
5933 * doc/extend.texi (node Function Attributes): Document l2
5934 function attribute.
5935 (node Blackfin Variable Attributes): Document l2 variable attributes.
5936
8a47c6c4
LR
59372009-09-11 Loren J. Rittle <ljrittle@acm.org>
5938
5939 * config.gcc (*-*-freebsd*): Enable default_use_cxa_atexit
5940 to match the system compiler's configuration at inflection point.
5941 Add comment to remark a remaining difference with system compiler.
5942
61e1d511
LR
5943 * configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.
5944 * configure: Regenerate.
5945
db689ed6
BS
59462009-09-11 Bernd Schmidt <bernd.schmidt@analog.com>
5947
5948 From Jie Zhang <jie.zhang@analog.com>:
5949 * config/bfin/bfin.c (bfin_expand_call): Handle L2 functions.
5950 (bfin_handle_l2_attribute): New.
5951 (bfin_attribute_table): Add l2 attribute.
5952
5c3ec539
MM
59532009-09-11 Michael Matz <matz@suse.de>
5954
5955 PR middle-end/41275
5956 * tree-inline.c (remap_decls): Don't put DECL_EXTERNAL decls
5957 on the local_decls list.
5958
0b7e34d7
AO
59592009-09-11 Alexandre Oliva <aoliva@redhat.com>
5960
5961 PR debug/41276
5962 PR debug/41307
5963 * cselib.c (cselib_expand_value_rtx_cb): Document callback
5964 interface.
5965 (cselib_expand_value_rtx_1): Use callback for SUBREGs. Adjust
5966 for VALUEs, to implement the documented interface.
5967 * var-tracking.c (vt_expand_loc_callback): Handle SUBREGs.
5968 Adjust for VALUEs and anything else, to implement the
5969 documented interface.
5970
b851135c
NF
59712009-09-10 Nathan Froyd <froydnj@codesourcery.com>
5972
5973 * config/rs6000/rs6000.h (DATA_ALIGNMENT): Check that we are dealing
5974 with actual SPE/paired vector modes before using 64-bit alignment.
5975 Check that TYPE is a REAL_TYPE for TARGET_E500_DOUBLE.
5976
5ba863d7
DD
59772009-09-10 DJ Delorie <dj@redhat.com>
5978
5979 * config/mep/mep.md (eh_epilogue): Defer until after epilogue is
5980 emitted.
5981
5982 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): New.
5983 * config/mep/mep.c (mep_legitimate_constant_p): New.
5984 * config/mep/mep-protos.h: Prototype it.
5985
68bcdeed
RH
59862009-09-10 Richard Henderson <rth@redhat.com>
5987
5988 * print-rtl.c (print_rtx): Fix JUMP_LABEL index.
5989
ad42ff1e
JM
59902009-09-10 Jason Merrill <jason@redhat.com>
5991
5992 * tree.c (chain_index): New fn.
5993 * tree.h: Declare it.
5994
0e6748ab
RO
59952009-09-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5996
5997 * config/sol2-c.c (cmn_err_length_specs): Initialize
5998 scalar_identity_flag.
5999
671f9f30
RH
60002009-09-10 Richard Henderson <rth@redhat.com>
6001
b6777fea
RH
6002 * tree.h (struct tree_decl_common): Move align member earlier;
6003 move label_decl_uid member ...
6004 (struct tree_label_decl): ... here.
6005 (LABEL_DECL_UID): Update to match.
6006
feb4e5ba
RH
6007 * tree-cfg.c (dump_function_to_file): Dump eh tree with TDF_EH,
6008 not TDF_DETAILS.
6009
1c061be5
RH
6010 * tree-cfg.c (gimple_redirect_edge_and_branch): Do
6011 gimple_try_redirect_by_replacing_jump test after no-op and EH tests.
6012
88e24a5a
RH
6013 * tree-cfg.c (split_edge_bb_loc): Don't disallow placement at
6014 dest_prev if the edge is complex.
6015
40a32862
RH
6016 * tree-cfg.c (is_ctrl_stmt): Use a switch.
6017
8e7c5fdd
RH
6018 * tree-cfg.c (gimple_can_merge_blocks_p): Move label and
6019 loop latch tests earlier.
6020
07c358c6
RH
6021 * gimple-iterator.c (gimple_find_edge_insert_loc): Insert
6022 before GIMPLE_RETURN, not after its predecessor; insert
6023 before GIMPLE_RESX.
6024
671f9f30
RH
6025 * gimple-iterator.c (gimple_find_edge_insert_loc): Use
6026 gimple_seq_empty_p to test for no PHI nodes.
6027 * tree-cfg.c (split_critical_edges): Likewise.
6028
15a15e8d
RH
6029 * c-common.h (c_dialect_cxx, c_dialect_objc): Boolify.
6030
f90f4827
HS
60312009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com>
6032
6033 * final.c (shorten_branches) : Ignore DEBUG_INSN_P instructions
6dac2e8e 6034 introduced by the VTA branch merge.
f90f4827 6035
edb30094
UB
60362009-09-10 Uros Bizjak <ubizjak@gmail.com>
6037
6038 * ira-conflicts.c: Use fputs or putc instead of fprintf
6039 where appropriate.
6040 * cfg.c: Ditto.
6041 * toplev.c: Ditto.
6042 * tree-switch-conversion.c: Ditto.
6043
60442009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com>
f3d9e91b
HS
6045
6046 * config/picochip/picochip.c : Ignore DEBUG_INSN_P instructions
6dac2e8e 6047 introduced by the VTA branch merge.
f3d9e91b 6048
edb30094 60492009-09-10 Uros Bizjak <ubizjak@gmail.com>
3a3d54f2
UB
6050
6051 Revert:
6052 2009-09-09 Uros Bizjak <ubizjak@gmail.com>
6053
6054 PR rtl-optimization/39779
6055 * expr.c (convert_modes): Return when mode == oldmode after
6056 CONST_INTs are processed.
6057
1c6679e2
NC
60582009-09-10 Nick Clifton <nickc@redhat.com>
6059
6060 * config/mep/mep.c (mep_encode_section_info): Copy weakness
6061 attribute and referring decl when creating renamed symbol.
6062
90097c67
RG
60632009-09-10 Richard Guenther <rguenther@suse.de>
6064
6065 PR middle-end/41257
6066 * cgraphunit.c (cgraph_emit_thunks): Emit thunks only for
6067 reachable nodes.
6068 (cgraph_finalize_compilation_unit): Compute reachability
6069 before emitting thunks. Properly process aliases before
6070 possibly removing unreachable nodes.
6071
c7a3980a
RG
60722009-09-10 Richard Guenther <rguenther@suse.de>
6073
6074 PR middle-end/41254
6075 * tree.c (struct free_lang_data_d): Add worklist member.
6076 (find_decls_types_r): Push onto the worklist instead of recursing.
6077 Handle TREE_BINFOs properly.
6078 (find_decls_types): New function wrapped around find_decls_types_r
6079 to process the worklist.
6080 (find_decls_types_in_eh_region): Use it.
6081 (find_decls_types_in_node): Likewise.
6082 (find_decls_types_in_var): Likewise.
6083 (free_lang_data_in_cgraph): Likewise. Free the worklist.
6084 * tree.h (RECORD_OR_UNION_TYPE_P): New.
6085 (AGGREGATE_TYPE_P): Adjust.
6086
e00ded68
JM
60872009-09-09 Jason Merrill <jason@redhat.com>
6088
6089 * configure.ac: Check glibc version even if we have an in-tree
6090 assembler.
6091
75cd1c8f
AG
60922009-09-09 Anthony Green <green@moxielogic.com>
6093
6094 * config/moxie/moxie.md (*movsi, *movhi, *movqi): Use xor to load
6095 the constant 0 when appropriate.
6096 * config/moxie/constraints.md: Add constraint O.
6097
6098 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Adjust
6099 to pass up to 6 32-bit argument values in registers.
6100 (moxie_function_arg): Ditto.
6101 (moxie_arg_partial_bytes): Ditto.
6102 * config/moxie/moxie.h (FUNCTION_ARG_ADVANCE): Ditto.
6103 (REG_PARM_STACK_SPACE): Ditto.
6104 (FUNCTION_ARG_REGNO_P): Ditto.
6105
6106 * config/moxie/moxie.c (moxie_expand_prologue): Use dec
6107 instruction to allocate stack space.
6108
93fbf857
SB
61092009-09-09 Segher Boessenkool <segher@kernel.crashing.org>
6110
6111 * config/rs6000/rs6000.md (bswapdi2_64bit): Fix
6112 unnecessarily stringent constraints. Fix address
6113 calculation in the splitters.
6114
ed9d5a4a
UB
61152009-09-09 Uros Bizjak <ubizjak@gmail.com>
6116
6117 PR rtl-optimization/39779
6118 * expr.c (convert_modes): Return when mode == oldmode after
6119 CONST_INTs are processed.
6120
3d887721
KT
61212009-09-09 Kai Tietz <kai.tietz@onevision.com>
6122
6123 PR/41315
ed9d5a4a 6124 * config/i386.c (ix86_can_use_return_insn_p): Check for padding0, too.
3d887721
KT
6125 (ix86_expand_prologue): Take frame.padding0 into logic of
6126 to_allocate checks.
6127 (ix86_expand_epilogue): Likewise.
6128
80a76d1d
JJ
61292009-09-09 Jakub Jelinek <jakub@redhat.com>
6130
6131 * config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK):
6132 New variables.
6133 (SHLIB_LINK, SHLIB_INSTALL): Use them.
6134 * config/t-slibgcc-libgcc: New file.
6135 * config.gcc (powerpc*-*-linux*, powerpc*-*-gnu*): Use it.
6136
ca1bb752
MJ
61372009-09-09 Martin Jambor <mjambor@suse.cz>
6138
6139 PR tree-optimization/41089
6140 * tree-sra.c (find_var_candidates): Do not consider va_lists in
6141 early SRA.
6142
8b9db065
RH
61432009-09-09 Richard Henderson <rth@redhat.com>
6144
6145 * gimple.h (CASE_GIMPLE_OMP): New.
6146 (is_gimple_omp): Use it.
6147 * tree-cfg.c (is_ctrl_altering_stmt): Likewise.
6148 (verify_gimple_debug): Likewise.
6149
70a6b17e
RG
61502009-09-09 Richard Guenther <rguenther@suse.de>
6151
6152 PR tree-optimization/41101
6153 * tree-ssa-pre.c (maximal_set): Remove.
6154 (compute_antic_aux): Treat the maximal set as implicitly all ones.
6155 Defer all blocks we didn't visit at least one successor.
6156 (add_to_exp_gen): Do not add to the maximal set.
6157 (make_values_for_phi): Likewise.
6158 (compute_avail): Likewise.
6159 (init_pre): Do not allocate the maximal set.
6160 (execute_pre): Do not dump it.
6161
7648edc4
MJ
61622009-09-09 Martin Jambor <mjambor@suse.cz>
6163
6164 * tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is
6165 an SSA_NAME rather than a is_gimple_variable.
6166
5a4b005f
RG
61672009-09-09 Richard Guenther <rguenther@suse.de>
6168
6169 PR middle-end/41317
6170 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Remove
6171 code dealing with plain pointer bases.
6172 (maybe_fold_offset_to_reference): Likewise.
6173 (maybe_fold_stmt_addition): Adjust.
6174
ccffb755
RG
61752009-09-09 Richard Guenther <rguenther@suse.de>
6176
6177 * tree.c (free_lang_data_in_type): Do not free the type variant
6178 chains.
6179 (free_lang_data): Merge char_type_node with its properly signed
6180 variant.
6181 (pass_ipa_free): Collect after freeing language specific data.
6182
4e18a7d4
MM
61832009-09-09 Michael Matz <matz@suse.de>
6184
6185 PR middle-end/41268
6186 * cfgexpand.c (expand_gimple_stmt_1): Use an int for storing
6187 SUBREG_PROMOTED_UNSIGNED_P, instead of a bool.
6188 * rtl.h (struct rtx, SUBREG_PROMOTED_UNSIGNED_P): Update comments
6189 to reflect reality.
6190
5fb455bc
DD
61912009-09-08 DJ Delorie <dj@redhat.com>
6192
6193 * config/mep/mep.c (conversions[]): Add "ml" pattern.
6194
d5df7223
JM
61952009-09-04 Jason Merrill <jason@redhat.com>
6196
6197 * tree.c (tree_find_value): Remove.
6198 * tree.h: Remove prototype.
6199 * varasm.c (assemble_external): Use value_member instead.
6200
6a57e634
AO
62012009-09-08 Alexandre Oliva <aoliva@redhat.com>
6202
6203 * toplev.c (process_options): Choose default debugging type when
6204 gtoggle enables debug info and type is unset.
6205
da4a9479
AO
62062009-09-08 Alexandre Oliva <aoliva@redhat.com>
6207
6208 PR debug/41276
6209 PR debug/41307
6210 * cselib.c (cselib_expand_value_rtx_1): Don't return copy of
6211 invalid subreg.
6212
713e2ea6
AO
62132009-09-08 Alexandre Oliva <aoliva@redhat.com>
6214
6215 * configure: Rebuilt with modified libtool.m4.
6216
91642126
AO
62172009-09-08 Alexandre Oliva <aoliva@redhat.com>
6218
6219 PR debug/41229
6220 PR debug/41291
6221 PR debug/41300
6222 * tree-ssa.c (execute_update_addresses_taken): Update debug insns.
6223
ae0a4449
AO
62242009-09-08 Alexandre Oliva <aoliva@redhat.com>
6225
6226 * tree-ssa-loop-ivopts.c (get_phi_with_result): Remove.
6227 (remove_statement): Likewise.
6228 (rewrite_use_nonlinear_expr): Adjust.
6229 (remove_unused_ivs): Collect SSA NAMEs to remove and call...
6230 * tree-ssa.c (release_defs_bitset): ... this. New.
6231 * tree-flow.h (release_defs_bitset): Declare.
6232
21719cea
AO
62332009-09-08 Alexandre Oliva <aoliva@redhat.com>
6234
6235 PR debug/41232
6236 * tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts
6237 in the middle block.
6238
7c2a2dbf
KT
62392009-09-08 Kai Tietz <kai.tietz@onevision.com>
6240
34c6743c
KT
6241 * tree-ssa-reassoc.c (find_operand_rank): Cast pointer
6242 via intptr_t to long type.
6243 (insert_operand_rank): Cast long type via intptr_t to
6244 pointer type.
6245 * genattrtab.c (RTL_HASH): Use intptr_t to cast from
6246 pointer to scalar.
6247 * c-pretty-print.c (pp_c_tree_decl_identifier): Cast
6248 from pointer to unsigned via uintptr_t.
6249
7c2a2dbf
KT
6250 * configure.ac (GCC_STDINT_TYPES): Initialize intptr_t,
6251 uintptr_t, HAVE_INTTYPES_H, HAVE_STDINT_H, HAVE_UINTPTR_T,
6252 and HAVE_INTPTR_T.
6253 * configure: Regenerated.
6254 * config.in: Regenerated
6255 * system.h (stdint.h): Add include.
6256 (inttypes.h): Likewise.
6257 * Makefile.in (aclocal): Add config/stdint.m4.
6258 * aclocal.m4: Regenerated.
6259
8472b255
BS
62602009-09-08 Bernd Schmidt <bernd.schmidt@analog.com>
6261
6262 * config/bfin/bfin.c (np_check_regno, np_after_branch): New static
6263 variables.
6264 (note_np_check_stores): New function.
6265 (harmless_null_pointer_p): New function.
6266 (trapping_loads_p): New args NP_REG and AFTER_NP_BRANCH. Callers
6267 changed. Take into account whether we're in the shadow of a condjump
6268 that tested NP_REG for NULL.
6269 Lose all code that tested for SEQUENCEs.
6270 (workaround_speculation): Avoid inserting NOPs for loads that are
6271 either always executed or a NULL pointer.
6272
ac875c2e
JH
62732009-09-08 Jan Hubicka <jh@suse.cz>
6274
6275 * doc/invoke.texi (early-inlining-insns): Reduce from 12 to 8.
6276 * params.def (early-inlining-insns): Likewise.
6277
1098d3a5
JJ
62782009-09-08 Jakub Jelinek <jakub@redhat.com>
6279
6280 PR rtl-optimization/41239
6281 * sched-int.h (struct deps): Add last_function_call_may_noreturn field.
6282 * sched-rgn.c (deps_join): Join also last_function_call_may_noreturn
6283 lists.
6284 * sched-deps.c (sched_analyze_insn): Prevent moving trapping insns
6285 across calls, as the calls might not always return normally.
6286 (call_may_noreturn_p): New function.
6287 (deps_analyze_insn): Update last_function_call_may_noreturn list.
6288 (init_deps): Initialize it.
6289 (remove_from_deps): Also remove calls from
6290 last_function_call_may_noreturn list.
6291
35ecd408
RH
62922009-09-07 Richard Henderson <rth@redhat.com>
6293
6294 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are
6295 more VR->OPERANDS than LHS operands. Free LHS before returning.
6296
c7cb1555
BS
62972009-09-07 Bernd Schmidt <bernd.schmidt@analog.com>
6298
6299 * config/bfin/bfin.md (UNSPEC_VOLATILE_STALL): New constant.
6300 (attr "addrtype"): New member "spreg".
6301 Use it if mem_spfp_address_operand is true for the address.
6302 (attr "type"): New entry "stall".
6303 (cpu_unit "load"): New.
6304 (insn_reservations "load32", "loadp", "loadi"): Add reservation of
6305 "load".
6306 (insn_reservation "loadsp"): New.
6307 (insn_reservation "load_stall1"): New.
6308 (insn_reservation "load_stall3"): New.
ed9d5a4a 6309 (stall): New insn.
c7cb1555
BS
6310 * config/bfin/predicates.md (const1_operand, const3_operand): New.
6311 (mem_p_address_operand): Exclude stack and frame pointer based
6312 addresses.
6313 (mem_spfp_address_operand): New; match them here.
6314 * config/bfin/bfin.c (add_sched_insns_for_speculation): New function.
6315 (bfin_reorg): Call it if scheduling insns.
6316 (bfin_gen_bundles): Remove dummy insns created by
6317 add_sched_insns_for_speculation.
6318
4dce27df
BS
6319 From Jie Zhang <jie.zhang@analog.com>:
6320 * config/bfin/bfin-protos.h (enum bfin_cpu_type, bfin_cpu_type,
6321 bfin_si_revision, bfin_workarounds): Move these ...
6322 * config/bfin/bfin.h: ... here.
6323
5254cd50
BS
6324 From Mike Frysinger <michael.frysinger@analog.com>
6325 * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF542M,
6326 BFIN_CPU_BF544M, BFIN_CPU_BF547M, BFIN_CPU_BF548M, and BFIN_CPU_BF549M.
ed9d5a4a
UB
6327 * config/bfin/bfin.c (bfin_cpus[]): Add 0.3 for bf542m, bf544m,
6328 bf547m, bf548m, and bf549m.
5254cd50 6329 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF542M__
ed9d5a4a
UB
6330 for BFIN_CPU_BF542M, __ADSPBF544M__ for BFIN_CPU_BF544M,
6331 __ADSPBF547M__ for BFIN_CPU_BF547M, __ADSPBF548M__ for
6332 BFIN_CPU_BF548M, and __ADSPBF549M__ for BFIN_CPU_BF549M.
5254cd50
BS
6333 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
6334 bf542m-none, bf544m-none, bf547m-none, bf548m-none, and bf549m-none.
6335 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
6336 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
6337 * doc/invoke.texi (Blackfin Options): Document that -mcpu now accepts
6338 bf542m, bf544m, bf547m, bf548m, and bf549m.
6339
b3187e24 6340 From Jie Zhang <jie.zhang@analog.com>:
ed9d5a4a 6341 * config/bfin/predicates.md (p_register_operand): New predicate.
b3187e24
BS
6342 (dp_register_operand): New predicate.
6343 * config/bfin/bfin-protos.h (WA_05000074): Define.
6344 (ENABLE_WA_05000074): Define.
ed9d5a4a 6345 * config/bfin/bfin.c (bfin_cpus[]): Add WA_05000074 for all cpus.
b3187e24
BS
6346 (bfin_gen_bundles): Put dsp32shiftimm instruction in slot[0].
6347 * config/bfin/bfin.md (define_attr type): Add dsp32shiftimm.
ed9d5a4a 6348 (define_attr addrtype): Allow load/store register to be P register.
b3187e24
BS
6349 (define_attr storereg): New.
6350 (define_cpu_unit anomaly_05000074): New.
6351 (define_insn_reservation dsp32shiftimm): New.
6352 (define_insn_reservation dsp32shiftimm_anomaly_05000074): New.
6353 (define_insn_reservation loadp): Cannot use slot2.
6354 (define_insn_reservation loadsp): Cannot use slot2.
6355 (define_insn_reservation storep): Cannot use slot2. Does not
6356 apply when working around 05000074.
6357 (define_insn_reservation storep_anomaly_05000074): New.
6358 (define_insn_reservation storei): Does not apply when working
6359 around 05000074.
6360 (define_insn_reservation storei_anomaly_05000074): New.
6361 (define_attr length): Add dsp32shiftimm case.
6362 (define_insn movsi_insn32, movsi_insv, ashlsi3_insn, ashrsi3,
6363 ror_one, rol_one, lshrsi3, lshrpdi3, ashrpdi3, movhiv2hi_low,
6364 movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi,
6365 ssashiftv2hi3, ssashifthi3, ssashiftsi3, lshiftv2hi3, lshifthi3):
6366 Set type as dsp32shiftimm for dsp32shiftimm alternatives.
6367
4a50e99c
MJ
63682009-09-07 Martin Jambor <mjambor@suse.cz>
6369
6370 PR middle-end/41282
6371 * tree-sra.c (create_artificial_child_access): Return NULL if
6372 build_ref_for_offset fails.
6373 (propagate_subacesses_accross_link): Allow build_ref_for_offset
6374 and create_artificial_child_access to fail.
6375
e5b258a4
DG
63762009-09-06 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
6377
6378 PR c++/41214
6dac2e8e 6379 * unwind-dw2.c (uw_init_context_1): Mark noinline.
e5b258a4
DG
6380 * config/ia64/unwind-ia64.c (uw_init_context_1): Likewise.
6381 * config/xtensa/unwind-dw2-xtensa.c (uw_init_context_1): Likewise.
6382
8ff7f824
BS
63832009-09-07 Bernd Schmidt <bernd.schmidt@analog.com>
6384
6385 * config/bfin/bfin.c (bfin_optimize_loop): When creating a new basic
6386 block, ensure it has an exit edge. Emit a barrier after a jump.
6387
3beb864c
NC
63882009-09-07 Nick Clifton <nickc@redhat.com>
6389
6390 * gcc.c (this_is_linker_script): New variable. Like
6391 this_is_library_file but for the %T constructor.
6392 (end_going_arg): If this_is_linker_script is set then locate the
6393 script and insert a --script switch before it
6dac2e8e
UB
6394 (do_spec_2): Initialise this_is_linker_script.
6395 (do_spec_1): Likewise. Handle %T construct.
6396 (eval_spec_function): Preserve this_is_linker_script.
3beb864c
NC
6397 * doc/invoke.texi: Document %T construct in spec files.
6398 * config/m32c/m32c.h (LIB_SPEC): Use it.
6399
3fce100b
AK
64002009-09-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6401
ed9d5a4a 6402 * rtl.h (PREFETCH_SCHEDULE_BARRIER_P): New macro.
3fce100b
AK
6403 * sched-deps.c (sched_analyze_2): Make prefetches a hard barrier
6404 when volatile flag is set.
6405 * doc/rtl.texi (PREFETCH_SCHEDULE_BARRIER_P): Add documentation pieces.
6406
1362aa31
EB
64072009-09-06 Eric Botcazou <ebotcazou@adacore.com>
6408
6409 PR bootstrap/41241
6410 * combine-stack-adj.c (try_apply_stack_adjustment): Handle stores.
6411 (combine_stack_adjustments_for_block): Allow insns between stack
7717df30
EB
6412 adjustments and stores with corresponding pre-(dec|inc)rement or
6413 pre-modify operation.
1362aa31 6414
90588a10
JJ
64152009-09-06 Jakub Jelinek <jakub@redhat.com>
6416
6417 PR bootstrap/41241
6418 * combine-stack-adj.c (struct csa_memlist): Rename to...
6419 (struct csa_reflist): ... this. Rename mem field to ref.
6420 (free_csa_memlist): Rename to...
6421 (free_csa_reflist): ... this.
6422 (record_one_stack_memref): Rename to...
6423 (record_one_stack_ref): ... this. Handle also REG_P.
6424 (try_apply_stack_adjustment): Handle also REG_P.
6425 (struct record_stack_memrefs_data): Rename to...
6426 (struct record_stack_refs_data): ... this. Rename memlist field to
6427 reflist.
6428 (record_stack_memrefs): Rename to...
6429 (record_stack_refs): ... this. For DEBUG_INSNs keep traversing
6430 subexpressions instead of failing when a MEM contains SP references.
6431 For SP itself in DEBUG_INSNs queue it also onto reflist chain.
6432 (combine_stack_adjustments_for_block): Adjust for mem to ref renaming.
6433
3797a0ff
RG
64342009-09-06 Richard Guenther <rguenther@suse.de>
6435
6436 PR middle-end/41144
6437 * tree.c (build_array_type): Do not record types marked
6438 with structural equality in the canonical type hashtable.
6439
3c45b96b
RG
64402009-09-06 Richard Guenther <rguenther@suse.de>
6441
6442 PR middle-end/41261
6443 * tree-ssa-alias.c (refs_may_alias_p_1): Bail out for function decls.
6444
6a129567
RG
64452009-09-05 Richard Guenther <rguenther@suse.de>
6446
6447 PR middle-end/41181
6448 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use the correct type.
6449
432b4b31
RG
64502009-09-05 Richard Guenther <rguenther@suse.de>
6451
6452 PR debug/41273
6453 * tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops.
6454
575140c2
RG
64552009-09-05 Richard Guenther <rguenther@suse.de>
6456
6457 PR middle-end/41271
6458 * tree-ssa.c (useless_type_conversion_p): Drop qualifiers
6459 before comparing function argument types.
6460
896237cd
FXC
64612009-09-05 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6462
6463 PR target/41024
6464 * config/i386/mingw-w64.h (ASM_SPEC): Pass -v instead of -V to
6465 the assembler.
6466
e139ab34
UB
64672009-09-04 Uros Bizjak <ubizjak@gmail.com>
6468
6469 Revert:
6470 2009-08-18 Uros Bizjak <ubizjak@gmail.com>
6471
6472 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
6473 locators before emit_insn is called.
6474
1fe28116
VM
64752009-09-04 Vladimir Makarov <vmakarov@redhat.com>
6476
6477 PR bootstrap/41241
6478 * ira.c (update_equiv_reg): Revert my previous patch for the PR.
6479 * reginfo.c (resize_reg_info): Call allocate_reg_info if necessary.
6480 (reginfo_init): Don't call allocate_reg_info.
6481
14e58be0
UB
64822009-09-04 Uros Bizjak <ubizjak@gmail.com>
6483
6484 PR target/41262
6485 * config/alpha/alpha.c (alpha_does_function_need_gp): Use
6486 NONDEBUG_INSN_P instead of INSN_P.
6487
3157b0c2
AO
64882009-09-04 Alexandre Oliva <aoliva@redhat.com>
6489
6490 PR debug/41225
6491 * tree-vect-stmts.c (vect_stmt_relevant_p): Skip debug uses.
6492
510bc854
AO
64932009-09-04 Alexandre Oliva <aoliva@redhat.com>
6494
6495 PR target/41252
6496 * config/arm/vfp.md (*cmpdf_split_vfp): Fix src mode in the second
6497 pattern of the split.
6498
6751b6f6
AO
64992009-09-04 Alexandre Oliva <aoliva@redhat.com>
6500
6501 * toplev.c (process_options): Move setter of flag_var_tracking
6502 before other tests that depend on it. Move down setter of
6503 flag_rename_registers. Don't enable var-tracking-assignments
6504 by default if selective scheduling is enabled. Warn if both
6505 are enabled.
6506
24277d34
AO
65072009-09-04 Alexandre Oliva <aoliva@redhat.com>
6508
6509 * var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match
6510 comment. Use switch statement to catch overlaps between rtx
6511 and tree codes. Accept FUNCTION_DECLs in addition to those in...
6512 (IS_DECL_CODE): ... here. Remove.
6513 (check_value_is_not_decl): Remove.
6514 (dv_from_decl, dv_from_value): Check after conversion.
6515
5f1a9ebb
RG
65162009-09-04 Richard Guenther <rguenther@suse.de>
6517
6518 PR middle-end/41257
6519 * (cgraph_finalize_compilation_unit): Move finalizing aliases
6520 after emitting tunks. Move emitting thunks and ctors from ...
6521 (cgraph_optimize): ... here. Remove redundant
6522 cgraph_analyze_functions.
6523 * varasm.c (find_decl_and_mark_needed): Remove no longer
6524 necessary check.
6525 (finish_aliases_1): Adjust check for thunk aliases.
6526
8d142c15
DG
65272009-09-04 Daniel Gutson <dgutson@codesourcery.com>
6528
6529 * config/arm/arm.md (ctzsi2): Added braces
6530 to avoid warning that broke booststrap.
6531
22fc64b4
MJ
65322009-09-04 Martin Jambor <mjambor@suse.cz>
6533
6534 PR tree-optimization/41112
6535 * tree-sra.c (build_ref_for_offset_1): Signal that we cannot
6536 handle variable-bounded arrays.
6537 (expr_with_var_bounded_array_refs_p): New function.
6538 (analyze_access_subtree): Call expr_with_var_bounded_array_refs_p.
6539
2cdece44
WG
65402009-09-04 Wolfgang Gellerich <gellerich@de.ibm.com>
6541
6542 * config/s390/2097.md: Removed two incorrect bypasses.
6543 (z10_fsimpdf): Fixed latency.
6544 (z10_fhex): New insn_reservation.
6545 (z10_floaddf): Fixed latency.
6546 (z10_floadsf): Fixed latency.
6547 (z10_ftrunctf): Fixed latency.
6548 (z10_ftruncdf): Fixed latency.
6549 * config/s390/s390.c (z10_cost): Fixed values.
6550 (s390_adjust_priority): Added z10 path.
6551 * config/s390/s390.md (type): Added fhex.
6552 (*mov<mode>_64dfp): Updated type attribute.
6553 (*mov<mode>_64): Updated type attribute.
6554 (*mov<mode>_31): Updated type attribute.
6555 (*mov<mode>"): Likewise.
6556 * config/s390/2084.md (x_fsimpdf): Updated condition.
6557
b09062ee
AK
65582009-09-04 Andreas Krebbel <krebbel1@de.ibm.com>
6559
6560 * config/s390/s390.md ("*fmadd<mode>", "*fmsub<mode>"): Enable mem
6561 RTXs in the predicate for operand 1.
6562
ca96ed43
DG
65632009-09-03 Daniel Gutson <dgutson@codesourcery.com>
6564
6565 * config/arm/arm.md (UNSPEC_RBIT): New constant.
6566 (rbitsi2): New insn.
6567 (ctzsi2): New expand.
6568 * config/arm/arm.h (CTZ_DEFINED_VALUE_AT_ZERO): New macro.
6569
687b5078
MJ
65702009-09-03 Martin Jambor <mjambor@suse.cz>
6571
6572 * tree-sra.c (duplicate_expr_for_different_base): Removed.
6573 (create_artificial_child_access): Use build_ref_for_offset instead
6574 of duplicate_expr_for_different_base.
6575 (propagate_subacesses_accross_link): Likewise.
14e58be0 6576
006b29ab
RS
65772009-09-03 Richard Sandiford <rdsandiford@googlemail.com>
6578
6579 * config/mips/mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead
6580 of INSN_P.
6581 (mips16e_collect_argument_saves): Skip debug instructions.
6582 (mips_74k_agen_init): Use CALL_P || JUMP_P instead of !NONJUMP_INSN_P.
6583 (mips16_lay_out_constants): Use USEFUL_INSN_P instead of INSN_P.
6584 (r10k_insert_cache_barriers): Likewise.
6585 (mips_reorg_process_insns): Likewise.
6586
691571d2
VM
65872009-09-03 Vladimir Makarov <vmakarov@redhat.com>
6588
6589 PR bootstrap/41241
6590 * ira.c (update_equiv_reg): Remove check on class likely spill.
6591
08ab0acf
JJ
65922009-09-03 Jakub Jelinek <jakub@redhat.com>
6593
7d4507cb
JJ
6594 PR debug/41236
6595 * dwarf2out.c (loc_descriptor): Don't use SUBREG_REG macro on
6596 SIGN_EXTEND or ZERO_EXTEND. Don't assume there is a REG inside of
6597 it or SUBREG.
6598
08ab0acf
JJ
6599 PR debug/41238
6600 * function.c (assign_parm_find_stack_rtl): Don't set mem attributes on
6601 the stack slot if it is passed by invisible reference.
755d55bb
EB
6602 * var-tracking.c (vt_add_function_parameters): Handle arguments passed
6603 by invisible reference.
08ab0acf 6604
9840d30a
BS
66052009-09-03 Bernd Schmidt <bernd.schmidt@analog.com>
6606
6607 * config/bfin/linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
6608 * config/bfin/uclinux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
6609 * config/bfin/bfin.h (TARGET_SUPPORTS_SYNC_CALLS): Provide default of
6610 0.
6611 * config/bfin/sync.md: New file.
6612 * config/bfin/bfin.md: Include it.
6613 (UNSPEC_ATOMIC): New.
6614 (UNSPEC_ONES): Provide a unique number.
6615
6616 From Jie Zhang <jie.zhang@analog.com>:
6617 * config/bfin/bfin.c (ret_regs): New.
6618 (must_save_fp_p): Don't return true because of frame_pointer_needed.
6619 (must_save_rets_p): New.
6620 (n_regs_saved_by_prologue): Use must_save_rets_p instead of
6621 current_function_is_leaf.
6622 (do_link): Likewise.
6623 (do_unlink): Likewise.
6624 (expand_interrupt_handler_prologue): Use ret_regs array.
6625 (expand_interrupt_handler_epilogue): Use ret_regs array and
6626 pass return register to gen_return_internal.
6627 (bfin_expand_epilogue): Pass return register to
6628 gen_return_internal.
6629 (bfin_expand_call): Explicitly clobber RETS.
6630 * config/bfin/bfin.h (FUNCTION_RETURN_REGISTERS): Define.
6631 * config/bfin/bfin.md (call_symbol_fdpic, call_value_symbol_fdpic,
6632 call_insn_fdpic, call_value_insn_fdpic, call_symbol,
6633 call_value_symbol, call_insn, call_value_insn): Explicitly clobber
6634 RETS.
6635 (return_internal): Take a reg rtx rather than the register number.
6636
8e094aa2
L
66372009-09-03 H.J. Lu <hongjiu.lu@intel.com>
6638
6639 * tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT
6640 when comparing against estimated_loop_iterations_int return.
6641
e20c9328
RG
66422009-09-03 Richard Guenther <rguenther@suse.de>
6643
6644 * dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
6645 eh_personality_libfunc.
6646
c9630c40
RL
66472009-09-03 Razya Ladelsky <razya@il.ibm.com>
6648
6649 * tree-parloops.c (separate_decls_in_region): Add space.
14e58be0 6650
e7df16a5
RL
66512009-09-03 Razya Ladelsky <razya@il.ibm.com>
6652
14e58be0 6653 * tree-parloops.c (separate_decls_in_region): Change the condition
e7df16a5
RL
6654 checking if there are reductions in the loop.
6655
785aa2a7
RL
66562009-09-03 Razya Ladelsky <razya@il.ibm.com>
6657
6658 PR tree-optimization/38275
14e58be0 6659 * tree-parloops.c (parallelize_loops): Replace profitability condition
785aa2a7
RL
6660 for expected number of iterations.
6661
e12c4094
AO
66622009-09-03 Alexandre Oliva <aoliva@redhat.com>
6663
6664 * doc/invoke.texi (BUILD_CONFIG): Document --with-build-config.
6665 (bootstrap-debug): Explain conditions in which it becomes default.
6666 (bootstrap-debug-big): Rather than duplicate bootstrap-debug,
6667 make it add to it.
6668
95da10ea
NK
66692009-09-03 Namhyung Kim <namhyung@gmail.com>
6670
6671 * doc/invoke.texi (Optimize Options): Move
6672 -finline-small-functions to the -O2 list.
6673
73d598d5
AO
66742009-09-03 Alexandre Oliva <aoliva@redhat.com>
6675
6676 * toplev.c (process_options): Enable var-tracking-assignments
6677 by default if var-tracking is enabled.
6678
896aa4ea
DD
66792009-09-02 David Daney <ddaney@caviumnetworks.com>
6680
6681 * cfgbuild.c (find_bb_boundaries): Split blocks containing a
6682 barrier.
6683 * emit-rtl.c (prev_nonnote_insn_bb): New function.
6684 * rtl.h (prev_nonnote_insn_bb): Declare it.
6685
4537ec0c
DN
66862009-09-03 Diego Novillo <dnovillo@google.com>
6687
6688 * cgraph.c (cgraph_node_for_decl): New.
6689 * cgraph.h (cgraph_node_for_decl): Declare.
6690 * tree.c (host_integerp): Return 0 if T is NULL.
6691
66922009-09-03 Diego Novillo <dnovillo@google.com>
6693
6694 * tree.h (struct alias_pair): Move from varasm.c.
6695 (alias_pairs): Likewise.
6696 (TYPE_MAXVAL): Define.
6697 (TYPE_MINVAL): Define.
6698 (iterative_hash_host_wide_int): Declare.
6699 (remove_unreachable_alias_pairs): Declare.
6700 * tree-pass.h (pass_ipa_free_lang_data): Declare.
6701 * diagnostic.c (default_diagnostic_starter): Make extern.
6702 (default_diagnostic_finalizer): Make extern.
6703 * diagnostic.h (default_diagnostic_starter): Declare.
6704 (default_diagnostic_finalizer): Declare.
6705 (default_tree_printer): Declare.
6706 * toplev.c (default_tree_printer): Make extern.
6707
67082009-09-03 Richard Guenther <rguenther@suse.de>
6709 Diego Novillo <dnovillo@google.com>
6710
6711 * cgraph.c (cgraph_add_new_function): Remove gimplification.
6712 * cgraphunit.c (cgraph_expand_function): Do not emit
6713 associated thunks from here.
6714 (cgraph_emit_thunks): New.
6715 (cgraph_optimize): Call it.
6716 Return if any IPA pass finds an error.
6717 * varasm.c (finish_aliases_1): Ignore errorneous aliases used
6718 by thunks.
6719
67202009-09-03 Simon Baldwin <simonb@google.com>
6721 Rafael Espindola <espindola@google.com>
6722 Richard Guenther <rguenther@suse.de>
6723 Doug Kwan <dougkwan@google.com>
6724 Diego Novillo <dnovillo@google.com>
6725
6726 * tree.c: Include tree-pass.h, langhooks-def.h,
6727 diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
6728 (free_lang_data_in_type): New.
6729 (need_assembler_name_p): New.
6730 (free_lang_data_in_block): New.
6731 (free_lang_data_in_decl): New.
6732 (struct free_lang_data_d): New.
6733 (add_tree_to_fld_list): New.
6734 (find_decls_types_r): New.
6735 (get_eh_types_for_runtime): New.
6736 (find_decls_types_in_eh_region): New.
6737 (find_decls_types_in_node): New.
6738 (find_decls_types_in_var): New.
6739 (free_lang_data_in_cgraph): New.
6740 (free_lang_data): New.
6741 (gate_free_lang_data): New.
6742 (pass_ipa_free_lang_data): New.
6743
67442009-09-03 Diego Novillo <dnovillo@google.com>
6745
6746 * timevar.def (TV_IPA_FREE_LANG_DATA): Define.
6747 * langhooks.h (struct lang_hooks): Add field free_lang_data.
6748 (lang_hooks): Remove const qualifier.
6749 * ipa.c (cgraph_remove_unreachable_nodes): Call
6750 remove_unreachable_alias_pairs.
6751 * except.c (add_type_for_runtime): Check if TYPE has
6752 already been converted.
6753 (lookup_type_for_runtime): Likewise.
6754 (check_handled): Handle converted types.
6755 * varasm.c (remove_unreachable_alias_pairs): New.
6756 * gimple.c: Include demangle.h.
6757 (gimple_decl_printable_name): New.
6758 (gimple_fold_obj_type_ref): New.
6759 * gimple.h (gimple_decl_printable_name): Declare.
6760 (gimple_fold_obj_type_ref): Declare.
6761 * passes.c (init_optimization_passes): Add pass
6762 pass_ipa_free_lang_data.
6763 * langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
6764 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
6765
67662009-09-03 Diego Novillo <dnovillo@google.com>
6767
6768 * c-lang.c (lang_hooks): Remove const qualifier.
6769
02c8b4f8
LR
67702009-09-02 Loren James Rittle <ljrittle@acm.org>
6771
6772 * doc/install.texi (*-*-freebsd*): Update target information.
6773
adee59ae
AS
67742009-09-02 Anatoly Sokolov <aesok@post.ru>
6775
6776 * hard-reg-set.h (call_fixed_regs): Remove.
6777 * reginfo.c (call_fixed_regs): Remove.
6778 (init_reg_sets_1): Remove initialization of call_fixed_regs.
6779 (globalize_reg): Don't use call_fixed_regs.
6780 * caller-save.c (init_caller_save): Use call_fixed_reg_set instead of
6781 call_fixed_regs.
6782
28ed065e
MM
67832009-09-01 Michael Matz <matz@suse.de>
6784
6785 * expr.h (emit_storent_insn, expand_expr_real_1,
6786 expand_expr_real_2): Declare.
6787 * expr.c (emit_storent_insn, expand_expr_real_1,
6788 expand_expr_real_2): Export.
ed9d5a4a 6789 (store_expr): Setting and evaluating dont_return_target is useless.
28ed065e
MM
6790 (expand_expr_real_1, <case GOTO_EXPR, RETURN_EXPR, SWITCH_EXPR,
6791 LABEL_EXPR and ASM_EXPR>): Move to gcc_unreachable.
6792 * except.c (expand_resx_expr): Rename to ...
6793 (expand_resx_stmt): ... this. Rewrite to take gimple statement.
6794 * except.h (expand_resx_stmt): Declare.
6795 * stmt.c: Add include gimple.h
6796 (expand_asm_expr): Rename to ...
6797 (expand_asm_stmt): ... this. Rewrite to take gimple statement.
6798 (expand_case): Rewrite to take gimple statement.
6799 * tree.h (expand_asm_stmt): Declare.
6800 (expand_case): Change prototype.
6801 * Makefile.in (stmt.o): Depend on gimple.h.
6802 * builtins.c (expand_builtin_synchronize): Build gimple asm
6803 statement, not an ASM_EXPR.
6804 * cfgexpand.c (gimple_cond_pred_to_tree, set_expr_location_r,
6805 gimple_to_tree, release_stmt_tree): Remove.
6806 (expand_gimple_cond): Don't call gimple_cond_pred_to_tree or
6807 ggc_free, but hold comparison code and operands separately.
6808 Call jumpif_1 and jumpifnot_1 instead of jumpif and jumpifnot.
6809 (expand_call_stmt, expand_gimple_stmt_1,
6810 expand_gimple_stmt): New helpers.
6811 (expand_gimple_tailcall): Don't call gimple_to_tree, expand_expr_stmt,
6812 release_stmt_tree. Call expand_gimple_stmt instead.
6813 (expand_gimple_basic_block): Ditto.
6814
6815 * calls.c (emit_call_1): Don't look at EH regions here, make
6816 fntree parameter useless.
6817 (expand_call): New local rettype for TREE_TYPE(exp), use it
6818 throughout. Remove local p, use addr instead.
6819 Don't look at EH regions here.
6820
ce18efcb
VM
68212009-09-02 Vladimir Makarov <vmakarov@redhat.com>
6822
6823 * doc/invoke.texi (-fsched-pressure): Document it.
6824 (-fsched-reg-pressure-heuristic): Remove it.
14e58be0 6825
ce18efcb
VM
6826 * reload.c (ira.h): Include.
6827 (find_reloads): Add choosing reload on number of small spilled
6828 classes.
14e58be0 6829
ce18efcb
VM
6830 * haifa-sched.c (ira.h): Include.
6831 (sched_pressure_p, sched_regno_cover_class, curr_reg_pressure,
6832 saved_reg_pressure, curr_reg_live, saved_reg_live,
6833 region_ref_regs): New variables.
6834 (sched_init_region_reg_pressure_info, mark_regno_birth_or_death,
6835 initiate_reg_pressure_info, setup_ref_regs,
6836 initiate_bb_reg_pressure_info, save_reg_pressure,
6837 restore_reg_pressure, dying_use_p, print_curr_reg_pressure): New
6838 functions.
6839 (setup_insn_reg_pressure_info): New function.
6840 (rank_for_schedule): Add pressure checking and insn issue time.
6841 Remove comparison of insn reg weights.
6842 (ready_sort): Set insn reg pressure info.
6843 (update_register_pressure, setup_insn_max_reg_pressure,
6844 update_reg_and_insn_max_reg_pressure,
6845 sched_setup_bb_reg_pressure_info): New functions.
ed9d5a4a 6846 (schedule_insn): Add code for printing and updating reg pressure info.
ce18efcb
VM
6847 (find_set_reg_weight, find_insn_reg_weight): Remove.
6848 (ok_for_early_queue_removal): Do nothing if pressure_only_p.
6849 (debug_ready_list): Print reg pressure info.
6850 (schedule_block): Ditto. Check insn issue time.
6851 (sched_init): Set up sched_pressure_p. Allocate and set up some
6852 reg pressure related info.
6853 (sched_finish): Free some reg pressure related info.
6854 (fix_tick_ready): Make insn always ready if pressure_p.
6855 (init_h_i_d): Don't call find_insn_reg_weight.
6856 (haifa_finish_h_i_d): Free insn reg pressure info.
14e58be0 6857
ce18efcb
VM
6858 * ira-int.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
6859 ira_memory_move_cost, ira_class_hard_regs,
6860 ira_class_hard_regs_num, ira_no_alloc_regs,
6861 ira_available_class_regs, ira_reg_class_cover_size,
6862 ira_reg_class_cover, ira_class_translate): Move to ira.h.
6863
6864 * ira-lives.c (single_reg_class): Check mode to find how many
6865 registers are necessary for operand.
6866 (ira_implicitly_set_insn_hard_regs): New.
6867
6868 * common.opt (fsched-pressure): New options.
6869 (fsched-reg-pressure-heuristic): Remove.
6870
6871 * ira.c (setup_eliminable_regset): Rename to
6872 ira_setup_eliminable_regset. Make it external.
6873 (expand_reg_info): Pass cover class to setup_reg_classes.
6874 (ira): Call resize_reg_info instead of allocate_reg_info.
6875
6876 * sched-deps.c: Include ira.h.
6877 (implicit_reg_pending_clobbers, implicit_reg_pending_uses): New.
6878 (create_insn_reg_use, create_insn_reg_set, setup_insn_reg_uses,
6879 reg_pressure_info, insn_use_p, mark_insn_pseudo_birth,
6880 mark_insn_hard_regno_birth, mark_insn_reg_birth,
6881 mark_pseudo_death, mark_hard_regno_death, mark_reg_death,
6882 mark_insn_reg_store, mark_insn_reg_clobber,
6883 setup_insn_reg_pressure_info): New.
6884 (sched_analyze_1): Update implicit_reg_pending_uses.
6885 (sched_analyze_insn): Find implicit sets, uses, clobbers of regs.
6886 Use them to create dependencies. Set insn reg uses and pressure
6887 info. Process reg_pending_uses in one place.
6888 (free_deps): Free implicit sets.
6889 (remove_from_deps): Remove implicit sets if necessary. Check
6890 implicit sets when clearing reg_last_in_use.
6891 (init_deps_global): Clear implicit_reg_pending_clobbers and
6892 implicit_reg_pending_uses.
14e58be0 6893
ce18efcb
VM
6894 * ira.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
6895 ira_memory_move_cost, ira_class_hard_regs,
6896 ira_class_hard_regs_num, ira_no_alloc_regs,
6897 ira_available_class_regs, ira_reg_class_cover_size,
6898 ira_reg_class_cover, ira_class_translate): Move from ira-int.h.
6899 (ira_setup_eliminable_regset, ira_set_pseudo_classes,
6900 ira_implicitly_set_insn_hard_regs): New prototypes.
14e58be0 6901
ce18efcb
VM
6902 * ira-costs.c (pseudo_classes_defined_p, allocno_p,
6903 cost_elements_num): New variables.
6904 (allocno_costs, total_costs): Rename to costs and
6905 total_allocno_costs.
6906 (COSTS_OF_ALLOCNO): Rename to COSTS.
6907 (allocno_pref): Rename to pref.
6908 (allocno_pref_buffer): Rename to pref_buffer.
6909 (common_classes): Rename to regno_cover_class.
6910 (COST_INDEX): New.
6911 (record_reg_classes): Set allocno attributes only if allocno_p.
ed9d5a4a 6912 (record_address_regs): Ditto. Use COST_INDEX instead of ALLOCNO_NUM.
ce18efcb
VM
6913 (scan_one_insn): Use COST_INDEX and COSTS instead of ALLOCNO_NUM
6914 and COSTS_OF_ALLOCNO.
6915 (print_costs): Rename to print_allocno_costs.
6916 (print_pseudo_costs): New.
6917 (process_bb_node_for_costs): Split into 2 functions with new
6918 function process_bb_for_costs. Pass BB to process_bb_for_costs.
6919 (find_allocno_class_costs): Rename to find_costs_and_classes. Add
6920 new parameter dump_file. Use cost_elements_num instead of
6921 ira_allocnos_num. Make one iteration if preferred classes were
6922 already calculated for scheduler. Make 2 versions of code
6923 depending on allocno_p.
6924 (setup_allocno_cover_class_and_costs): Check allocno_p. Use
6925 regno_cover_class and COSTS instead of common_classes and
6926 COSTS_OF_ALLOCNO.
6927 (init_costs, finish_costs): New.
6928 (ira_costs): Set up allocno_p and cost_elements_num. Call
6929 init_costs and finish_costs.
6930 (ira_set_pseudo_classes): New.
6931
6932 * rtl.h (allocate_reg_info): Remove.
6933 (resize_reg_info): Change return type.
6934 (reg_cover_class): New.
6935 (setup_reg_classes): Add new parameter.
14e58be0 6936
ce18efcb 6937 * sched-int.h (struct deps_reg): New member implicit_sets.
ed9d5a4a 6938 (sched_pressure_p, sched_regno_cover_class): New external definitions.
ce18efcb
VM
6939 (INCREASE_BITS): New macro.
6940 (struct reg_pressure_data, struct reg_use_data): New.
6941 (struct _haifa_insn_data): Remove reg_weight. Add members
6942 reg_pressure, reg_use_list, reg_set_list, and
6943 reg_pressure_excess_cost_change.
6944 (struct deps): New member implicit_sets.
6945 (pressure_p): New variable.
6946 (COVER_CLASS_BITS, INCREASE_BITS): New macros.
6947 (struct reg_pressure_data, struct reg_use_data): New.
6948 (INSN_REG_WEIGHT): Remove.
6949 (INSN_REG_PRESSURE, INSN_MAX_REG_PRESSURE, INSN_REG_USE_LIST,
ed9d5a4a 6950 INSN_REG_SET_LIST, INSN_REG_PRESSURE_EXCESS_COST_CHANGE): New macros.
ce18efcb
VM
6951 (sched_init_region_reg_pressure_info,
6952 sched_setup_bb_reg_pressure_info): New prototypes.
14e58be0
UB
6953
6954 * reginfo.c (struct reg_pref): New member coverclass.
ce18efcb
VM
6955 (reg_cover_class): New function.
6956 (reginfo_init, pass_reginfo_init): Move after free_reg_info.
6957 (reg_info_size): New variable.
6958 (allocate_reg_info): Make static. Setup reg_info_size.
6959 (resize_reg_info): Use reg_info_size. Return flag of resizing.
6960 (setup_reg_classes): Add a new parameter. Setup cover class too.
6961
ed9d5a4a
UB
6962 * Makefile.in (reload.o, haifa-sched.o, sched-deps.o): Add ira.h to
6963 the dependencies.
ce18efcb
VM
6964
6965 * sched-rgn.c (deps_join): Set up implicit_sets.
6966 (schedule_region): Set up region and basic blocks pressure
6967 relative info.
14e58be0 6968
ce18efcb
VM
6969 * passes.c (init_optimization_passes): Move
6970 pass_subregs_of_mode_init before pass_sched.
14e58be0 6971
fef94f76
MJ
69722009-09-02 Martin Jambor <mjambor@suse.cz>
6973
6974 * tree-sra.c (struct access): New field grp_hint.
6975 (dump_access): Dump grp_hint.
6976 (sort_and_splice_var_accesses): Set grp_hint if a group is read
6977 multiple times.
6978 (analyze_access_subtree): Only scalarize accesses with grp_hint set or
6979 those which have been specifically read and somehow written to.
6980 (propagate_subacesses_accross_link): Set grp_hint of right child and
6981 also possibly of the left child.
6982
ded97380
JJ
69832009-09-02 Jakub Jelinek <jakub@redhat.com>
6984
6985 * tree-object-size.c (addr_object_size): Always use object_size_type
6986 0 or 2 when determining the pointer pointed object size.
6987
63838157
RG
69882009-09-02 Richard Guenther <rguenther@suse.de>
6989
6990 Revert
6991 2009-08-31 Richard Guenther <rguenther@suse.de>
6992
6993 * builtins.c (fold_builtin_memory_op): Use the alias oracle
6994 to query if the memory regions for memmove overlap.
6995 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
6996 asserts on pointers, instead deal with odd trees.
6997 (ptr_derefs_may_alias_p): Likewise.
6998 (refs_may_alias_p_1): Constructor bases also never alias.
6999
c68e4eed
CB
70002009-08-01 Christian Bruel <christian.bruel@st.com>
7001
7002 Revert:
7003 2009-07-31 Christian Bruel <christian.bruel@st.com>
7004 * gcc/config.gcc (sh*-*-elf): test with_libgloss.
14e58be0 7005
8fc68cba
AO
70062009-09-01 Alexandre Oliva <aoliva@redhat.com>
7007
7008 * doc/invoke.texi (-fvar-tracking-assignments): New.
7009 (-fvar-tracking-assignments-toggle): New.
7010 (-fdump-final-insns=file): Mark filename as optional.
7011 (--param min-nondebug-insn-uid): New.
7012 (-gdwarf-@{version}): Mention version 4.
7013 * opts.c (common_handle_option): Accept it.
7014 * tree-vrp.c (find_assert_locations_1): Skip debug stmts.
7015 * regrename.c (regrename_optimize): Drop last. Don't count debug
7016 insns as uses. Don't reject change because of debug insn.
7017 (do_replace): Reject DEBUG_INSN as chain starter. Take base_regno
ed9d5a4a 7018 from the chain starter, and check for inexact matches in DEBUG_INSNS.
8fc68cba
AO
7019 (scan_rtx_reg): Accept inexact matches in DEBUG_INSNs.
7020 (build_def_use): Simplify and fix the marking of DEBUG_INSNs.
7021 * sched-ebb.c (schedule_ebbs): Skip boundary debug insns.
7022 * fwprop.c (forward_propagate_and_simplify): ...into debug insns.
7023 * doc/gimple.texi (is_gimple_debug): New.
7024 (gimple_debug_bind_p): New.
7025 (is_gimple_call, gimple_assign_cast_p): End sentence with period.
7026 * doc/install.texi (bootstrap-debug): More details.
7027 (bootstrap-debug-big, bootstrap-debug-lean): Document.
7028 (bootstrap-debug-lib): More details.
7029 (bootstrap-debug-ckovw): Update.
7030 (bootstrap-time): New.
7031 * tree-into-ssa.c (mark_def_sites): Skip debug stmts.
7032 (insert_phi_nodes_for): Insert debug stmts.
7033 (rewrite_stmt): Take iterator. Insert debug stmts.
7034 (rewrite_enter_block): Adjust.
7035 (maybe_replace_use_in_debug_stmt): New.
7036 (rewrite_update_stmt): Use it.
7037 (mark_use_interesting): Return early for debug stmts.
7038 * tree-ssa-loop-im.c (rewrite_bittest): Propagate DEFs into debug
7039 stmts before replacing stmt.
7040 (move_computations_stmt): Likewise.
7041 * ira-conflicts.c (add_copies): Skip debug insns.
7042 * regstat.c (regstat_init_n_sets_and_refs): Discount debug insns.
7043 (regstat_bb_compute_ri): Skip debug insns.
7044 * tree-ssa-threadupdate.c (redirection_block_p): Skip debug stmts.
7045 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
7046 check_loop_closed_ssa_stmt): Skip debug stmts.
7047 * tree-tailcall.c (find_tail_calls): Likewise.
7048 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
7049 * tree.h (MAY_HAVE_DEBUG_STMTS): New.
7050 (build_var_debug_value_stat): Declare.
7051 (build_var_debug_value): Define.
7052 (target_for_debug_bind): Declare.
7053 * reload.c (find_equiv_reg): Skip debug insns.
7054 * rtlanal.c (reg_used_between_p): Skip debug insns.
7055 (side_effects_p): Likewise.
7056 (canonicalize_condition): Likewise.
14e58be0 7057 * ddg.c (create_ddg_dep_from_intra_loop_link): Check that non-debug
8fc68cba
AO
7058 insns never depend on debug insns.
7059 (create_ddg_dep_no_link): Likewise.
7060 (add_cross_iteration_register_deps): Use ANTI_DEP for debug insns.
7061 Don't add inter-loop dependencies for debug insns.
7062 (build_intra_loop_deps): Likewise.
7063 (create_ddg): Count debug insns.
7064 * ddg.h (struct ddg::num_debug): New.
7065 (num_backargs): Pair up with previous int field.
7066 * diagnostic.c (diagnostic_report_diagnostic): Skip notes on
7067 -fcompare-debug-second.
7068 * final.c (get_attr_length_1): Skip debug insns.
7069 (rest_of_clean-state): Don't dump CFA_RESTORE_STATE.
7070 * gcc.c (invoke_as): Call compare-debug-dump-opt.
7071 (driver_self_specs): Map -fdump-final-insns to
7072 -fdump-final-insns=..
7073 (get_local_tick): New.
7074 (compare_debug_dump_opt_spec_function): Test for . argument and
7075 compute output name. Compute temp output spec without flag name.
7076 Compute -frandom-seed.
7077 (OPT): Undef after use.
7078 * cfgloopanal.c (num_loop_insns): Skip debug insns.
7079 (average_num_loop_insns): Likewise.
7080 * params.h (MIN_NONDEBUG_INSN_UID): New.
7081 * gimple.def (GIMPLE_DEBUG): New.
7082 * ipa-reference.c (scan_stmt_for_static_refs): Skip debug stmts.
7083 * auto-inc-dec.c (merge_in_block): Skip debug insns.
7084 (merge_in_block): Fix whitespace.
7085 * toplev.c (flag_var_tracking): Update comment.
7086 (flag_var_tracking_assignments): New.
7087 (flag_var_tracking_assignments_toggle): New.
7088 (process_options): Don't open final insns dump file if we're not
7089 going to write to it. Compute defaults for var_tracking.
7090 * df-scan.c (df_insn_rescan_debug_internal): New.
7091 (df_uses_record): Handle debug insns.
7092 * haifa-sched.c (ready): Initialize n_debug.
7093 (contributes_to_priority): Skip debug insns.
7094 (dep_list_size): New.
7095 (priority): Use it.
14e58be0 7096 (rank_for_schedule): Likewise. Schedule debug insns as soon as
8fc68cba
AO
7097 they're ready. Disregard previous debug insns to make decisions.
7098 (queue_insn): Never queue debug insns.
7099 (ready_add, ready_remove_first, ready_remove): Count debug insns.
7100 (schedule_insn): Don't reject debug insns because of issue rate.
7101 (get_ebb_head_tail, no_real_insns_p): Skip boundary debug insns.
7102 (queue_to_ready): Skip and discount debug insns.
7103 (choose_ready): Let debug insns through.
7104 (schedule_block): Check boundary debug insns. Discount debug
7105 insns, schedule them early. Adjust whitespace.
7106 (set_priorities): Check for boundary debug insns.
7107 (add_jump_dependencies): Use dep_list_size.
7108 (prev_non_location_insn): New.
7109 (check_cfg): Use it.
7110 * tree-ssa-loop-ivopts.c (find-interesting_users): Skip debug
7111 stmts.
7112 (remove_unused_ivs): Reset debug stmts.
7113 * modulo-sched.c (const_iteration_count): Skip debug insns.
7114 (res_MII): Discount debug insns.
7115 (loop_single_full_bb_p): Skip debug insns.
7116 (sms_schedule): Likewise.
7117 (sms_schedule_by_order): Likewise.
7118 (ps_has_conflicts): Likewise.
7119 * caller-save.c (refmarker_fn): New.
7120 (save_call_clobbered_regs): Replace regs with saved mem in
7121 debug insns.
7122 (mark_referenced_regs): Take pointer, mark and arg. Adjust.
7123 Call refmarker_fn mark for hardregnos.
7124 (mark_reg_as_referenced): New.
7125 (replace_reg_with_saved_mem): New.
7126 * ipa-pure-const.c (check_stmt): Skip debug stmts.
7127 * cse.c (cse_insn): Canonicalize debug insns. Skip them when
7128 searching back.
7129 (cse_extended_basic_block): Skip debug insns.
7130 (count_reg_usage): Likewise.
7131 (is_dead_reg): New, split out of...
7132 (set_live_p): ... here.
7133 (insn_live_p): Use it for debug insns.
7134 * tree-stdarg.c (check_all_va_list_escapes): Skip debug stmts.
7135 (execute_optimize_stdarg): Likewise.
7136 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
7137 * tree-ssa-propagate.c (substitute_and_fold): Don't regard
7138 changes in debug stmts as changes.
7139 * sel-sched.c (moving_insn_creates_bookkeeping_block_p): New.
7140 (moveup_expr): Don't move across debug insns. Don't move
7141 debug insn if it would create a bookkeeping block.
7142 (moveup_expr_cached): Don't use cache for debug insns that
7143 are heads of blocks.
7144 (compute_av_set_inside_bb): Skip debug insns.
7145 (sel_rank_for_schedule): Schedule debug insns first. Remove
7146 dead code.
7147 (block_valid_for_bookkeeping_p); Support lax searches.
7148 (create_block_for_bookkeeping): Adjust block numbers when
7149 encountering debug-only blocks.
7150 (find_place_for_bookkeeping): Deal with debug-only blocks.
7151 (generate_bookkeeping_insn): Accept no place to insert.
7152 (remove_temp_moveop_nops): New argument full_tidying.
7153 (prepare_place_to_insert): Deal with debug insns.
7154 (advance_state_on_fence): Debug insns don't start cycles.
7155 (update_boundaries): Take fence as argument. Deal with
7156 debug insns.
7157 (schedule_expr_on_boundary): No full_tidying on debug insns.
7158 (fill_insns): Deal with debug insns.
7159 (track_scheduled_insns_and_blocks): Don't count debug insns.
7160 (need_nop_to_preserve_insn_bb): New, split out of...
7161 (remove_insn_from_stream): ... this.
7162 (fur_orig_expr_not_found): Skip debug insns.
7163 * rtl.def (VALUE): Move up.
7164 (DEBUG_INSN): New.
ed9d5a4a 7165 * tree-ssa-sink.c (all_immediate_uses_same_place): Skip debug stmts.
8fc68cba
AO
7166 (nearest_common_dominator_of_uses): Take debug_stmts argument.
7167 Set it if debug stmts are found.
7168 (statement_sink_location): Skip debug stmts. Propagate
7169 moving defs into debug stmts.
7170 * ifcvt.c (first_active_insn): Skip debug insns.
7171 (last_active_insns): Likewise.
7172 (cond_exec_process_insns): Likewise.
7173 (noce_process_if_block): Likewise.
7174 (check_cond_move_block): Likewise.
7175 (cond_move_convert_if_block): Likewise.
7176 (block_jumps_and_fallthru_p): Likewise.
7177 (dead_or_predicable): Likewise.
7178 * dwarf2out.c (debug_str_hash_forced): New.
7179 (find_AT_string): Add comment.
7180 (gen_label_for_indirect_string): New.
7181 (get_debug_string_label): New.
7182 (AT_string_form): Use it.
7183 (mem_loc_descriptor): Handle non-TLS symbols. Handle MINUS , DIV,
7184 MOD, AND, IOR, XOR, NOT, ABS, NEG, and CONST_STRING. Accept but
7185 discard COMPARE, IF_THEN_ELSE, ROTATE, ROTATERT, TRUNCATE and
7186 several operations that cannot be represented with DWARF opcodes.
7187 (loc_descriptor): Ignore SIGN_EXTEND and ZERO_EXTEND. Require
7188 dwarf_version 4 for DW_OP_implicit_value and DW_OP_stack_value.
7189 (dwarf2out_var_location): Take during-call mark into account.
7190 (output_indirect_string): Update comment. Output if there are
7191 label and references.
7192 (prune_indirect_string): New.
7193 (prune_unused_types): Call it if debug_str_hash_forced.
7194 More in dwarf2out.c, from Jakub Jelinek <jakub@redhat.com>:
7195 (dw_long_long_const): Remove.
7196 (struct dw_val_struct): Change val_long_long type to rtx.
7197 (print_die, attr_checksum, same_dw_val_p, loc_descriptor): Adjust for
7198 val_long_long change to CONST_DOUBLE rtx from a long hi/lo pair.
7199 (output_die): Likewise. Use HOST_BITS_PER_WIDE_INT size of each
7200 component instead of HOST_BITS_PER_LONG.
14e58be0 7201 (output_loc_operands): Likewise. For const8* assert
8fc68cba
AO
7202 HOST_BITS_PER_WIDE_INT rather than HOST_BITS_PER_LONG is >= 64.
7203 (output_loc_operands_raw): For const8* assert HOST_BITS_PER_WIDE_INT
7204 rather than HOST_BITS_PER_LONG is >= 64.
7205 (add_AT_long_long): Remove val_hi and val_lo arguments, add
7206 val_const_double.
7207 (size_of_die): Use HOST_BITS_PER_WIDE_INT size multiplier instead of
7208 HOST_BITS_PER_LONG for dw_val_class_long_long.
7209 (add_const_value_attribute): Adjust add_AT_long_long caller. Don't
7210 handle TLS SYMBOL_REFs. If CONST wraps a constant, tail recurse.
7211 (dwarf_stack_op_name): Handle DW_OP_implicit_value and
7212 DW_OP_stack_value.
7213 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
7214 Handle DW_OP_implicit_value.
7215 (extract_int): Move prototype earlier.
7216 (mem_loc_descriptor): For SUBREG punt if inner
7217 mode size is wider than DWARF2_ADDR_SIZE. Handle SIGN_EXTEND
7218 and ZERO_EXTEND by DW_OP_shl and DW_OP_shr{a,}. Handle
7219 EQ, NE, GT, GE, LT, LE, GTU, GEU, LTU, LEU, SMIN, SMAX, UMIN,
7220 UMAX, SIGN_EXTRACT, ZERO_EXTRACT.
7221 (loc_descriptor): Compare mode size with DWARF2_ADDR_SIZE
7222 instead of Pmode size.
7223 (loc_descriptor): Add MODE argument. Handle CONST_INT, CONST_DOUBLE,
7224 CONST_VECTOR, CONST, LABEL_REF and SYMBOL_REF if mode != VOIDmode,
7225 attempt to handle other expressions. Don't handle TLS SYMBOL_REFs.
7226 (concat_loc_descriptor, concatn_loc_descriptor,
7227 loc_descriptor_from_tree_1): Adjust loc_descriptor callers.
7228 (add_location_or_const_value_attribute): Likewise. For single
7229 location loc_lists attempt to use add_const_value_attribute
7230 for constant decls. Add DW_AT_const_value even if
7231 NOTE_VAR_LOCATION is VAR_LOCATION with CONSTANT_P or CONST_STRING
7232 in its expression.
7233 * cfgbuild.c (inside_basic_block_p): Handle debug insns.
7234 (control_flow_insn_p): Likewise.
ed9d5a4a 7235 * tree-parloops.c (eliminate_local_variables_stmt): Handle debug stmt.
8fc68cba
AO
7236 (separate_decls_in_region_debug_bind): New.
7237 (separate_decls_in_region): Process debug bind stmts afterwards.
7238 * recog.c (verify_changes): Handle debug insns.
7239 (extract_insn): Likewise.
7240 (peephole2_optimize): Skip debug insns.
7241 * dse.c (scan_insn): Skip debug insns.
7242 * sel-sched-ir.c (return_nop_to_pool): Take full_tidying argument.
7243 Pass it on.
7244 (setup_id_for_insn): Handle debug insns.
7245 (maybe_tidy_empty_bb): Adjust whitespace.
7246 (tidy_control_flow): Skip debug insns.
7247 (sel_remove_insn): Adjust for debug insns.
7248 (sel_estimate_number_of_insns): Skip debug insns.
7249 (create_insn_rtx_from_pattern): Handle debug insns.
7250 (create_copy_of_insn_rtx): Likewise.
7251 * sel-sched-.h (sel_bb_end): Declare.
7252 (sel_bb_empty_or_nop_p): New.
7253 (get_all_loop_exits): Use it.
7254 (_eligible_successor_edge_p): Likewise.
7255 (return_nop_to_pool): Adjust.
7256 * tree-eh.c (tre_empty_eh_handler_p): Skip debug stmts.
7257 * ira-lives.c (process_bb_node_lives): Skip debug insns.
7258 * gimple-pretty-print.c (dump_gimple_debug): New.
7259 (dump_gimple_stmt): Use it.
7260 (dump_bb_header): Skip gimple debug stmts.
7261 * regmove.c (optimize_reg_copy_1): Discount debug insns.
7262 (fixup_match_2): Likewise.
7263 (regmove_backward_pass): Likewise. Simplify combined
7264 replacement. Handle debug insns.
7265 * function.c (instantiate_virtual_regs): Handle debug insns.
7266 * function.h (struct emit_status): Add x_cur_debug_insn_uid.
7267 * print-rtl.h: Include cselib.h.
ed9d5a4a 7268 (print_rtx): Print VALUEs. Split out and recurse for VAR_LOCATIONs.
8fc68cba
AO
7269 * df.h (df_inns_rescan_debug_internal): Declare.
7270 * gcse.c (alloc_hash_table): Estimate n_insns.
7271 (cprop_insn): Don't regard debug insns as changes.
7272 (bypass_conditional_jumps): Skip debug insns.
7273 (one_pre_gcse_pass): Adjust.
7274 (one_code_hoisting_pass): Likewise.
7275 (compute_ld_motion_mems): Skip debug insns.
7276 (one_cprop_pass): Adjust.
7277 * tree-if-conv.c (tree_if_convert_stmt): Reset debug stmts.
7278 (if_convertible_stmt_p): Handle debug stmts.
7279 * init-regs.c (initialize_uninitialized_regs): Skip debug insns.
7280 * tree-vect-loop.c (vect_is_simple_reduction): Skip debug stmts.
7281 * ira-build.c (create_bb_allocnos): Skip debug insns.
7282 * tree-flow-inline.h (has_zero_uses): Discount debug stmts.
7283 (has_single_use): Likewise.
7284 (single_imm_use): Likewise.
7285 (num_imm_uses): Likewise.
7286 * tree-ssa-phiopt.c (empty_block_p): Skip debug stmts.
7287 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Skip debug stmts.
7288 (create_outofssa_var_map): Likewise.
7289 * lower-subreg.c (adjust_decomposed_uses): New.
7290 (resolve_debug): New.
7291 (decompose_multiword_subregs): Use it.
7292 * tree-dfa.c (find_referenced_vars): Skip debug stmts.
7293 * emit-rtl.c: Include params.h.
7294 (cur_debug_insn_uid): Define.
7295 (set_new_first_and_last_insn): Set cur_debug_insn_uid too.
7296 (copy_rtx_if_shared_1): Handle debug insns.
7297 (reset_used_flags): Likewise.
7298 (set_used_flags): LIkewise.
7299 (get_max_insn_count): New.
7300 (next_nondebug_insn): New.
7301 (prev_nondebug_insn): New.
7302 (make_debug_insn_raw): New.
7303 (emit_insn_before_noloc): Handle debug insns.
7304 (emit_jump_insn_before_noloc): Likewise.
7305 (emit_call_insn_before_noloc): Likewise.
7306 (emit_debug_insn_before_noloc): New.
7307 (emit_insn_after_noloc): Handle debug insns.
7308 (emit_jump_insn_after_noloc): Likewise.
7309 (emit_call_insn_after_noloc): Likewise.
7310 (emit_debug_insn_after_noloc): Likewise.
7311 (emit_insn_after): Take loc from earlier non-debug insn.
7312 (emit_jump_insn_after): Likewise.
7313 (emit_call_insn_after): Likewise.
7314 (emit_debug_insn_after_setloc): New.
7315 (emit_debug_insn_after): New.
7316 (emit_insn_before): Take loc from later non-debug insn.
7317 (emit_jump_insn_before): Likewise.
7318 (emit_call_insn_before): Likewise.
7319 (emit_debug_insn_before_setloc): New.
7320 (emit_debug_insn_before): New.
7321 (emit_insn): Handle debug insns.
7322 (emit_debug_insn): New.
7323 (emit_jump_insn): Handle debug insns.
7324 (emit_call_insn): Likewise.
7325 (emit): Likewise.
7326 (init_emit): Take min-nondebug-insn-uid into account.
7327 Initialize cur_debug_insn_uid.
7328 (emit_copy_of_insn_after): Handle debug insns.
7329 * cfgexpand.c (gimple_assign_rhs_to_tree): Do not overwrite
7330 location of single rhs in place.
7331 (maybe_dump_rtl_for_gimple_stmt): Dump lineno.
7332 (floor_sdiv_adjust): New.
7333 (cell_sdiv_adjust): New.
7334 (cell_udiv_adjust): New.
7335 (round_sdiv_adjust): New.
7336 (round_udiv_adjust): New.
7337 (wrap_constant): Moved from cselib.
7338 (unwrap_constant): New.
7339 (expand_debug_expr): New.
7340 (expand_debug_locations): New.
7341 (expand_gimple_basic_block): Drop hiding redeclaration. Expand
7342 debug bind stmts.
7343 (gimple_expand_cfg): Expand debug locations.
7344 * cselib.c: Include tree-pass.h.
7345 (struct expand_value_data): New.
7346 (cselib_record_sets_hook): New.
7347 (PRESERVED_VALUE_P, LONG_TERM_PRESERVED_VALUE_P): New.
7348 (cselib_clear_table): Move, and implemnet in terms of...
7349 (cselib_reset_table_with_next_value): ... this.
7350 (cselib_get_next_unknown_value): New.
7351 (discard_useless_locs): Don't discard preserved values.
7352 (cselib_preserve_value): New.
7353 (cselib_preserved_value_p): New.
7354 (cselib_preserve_definitely): New.
7355 (cselib_clear_preserve): New.
7356 (cselib_preserve_only_values): New.
7357 (new_cselib_val): Take rtx argument. Dump it in details.
7358 (cselib_lookup_mem): Adjust.
7359 (expand_loc): Take regs_active in struct. Adjust. Silence
7360 dumps unless details are requested.
7361 (cselib_expand_value_rtx_cb): New.
7362 (cselib_expand_value_rtx): Rename and reimplment in terms of...
7363 (cselib_expand_value_rtx_1): ... this. Adjust. Silence dumps
7364 without details. Copy more subregs. Try to resolve values
7365 using a callback. Wrap constants.
7366 (cselib_subst_to_values): Adjust.
7367 (cselib_log_lookup): New.
7368 (cselib_lookup): Call it.
ed9d5a4a 7369 (cselib_invalidate_regno): Don't count preserved values as useless.
8fc68cba
AO
7370 (cselib_invalidate_mem): Likewise.
7371 (cselib_record_set): Likewise.
7372 (struct set): Renamed to cselib_set, moved to cselib.h.
7373 (cselib_record_sets): Adjust. Call hook.
7374 (cselib_process_insn): Reset table when it would be cleared.
7375 (dump_cselib_val): New.
7376 (dump_cselib_table): New.
7377 * tree-cfgcleanup.c (tree_forwarded_block_p): Skip debug stmts.
7378 (remove_forwarder_block): Support moving debug stmts.
7379 * cselib.h (cselib_record_sets_hook): Declare.
7380 (cselib_expand_callback): New type.
7381 (cselib_expand_value_rtx_cb): Declare.
7382 (cselib_reset_table_with_next_value): Declare.
7383 (cselib_get_next_unknown_value): Declare.
7384 (cselib_preserve_value): Declare.
7385 (cselib_preserved_value_p): Declare.
7386 (cselib_preserve_only_values): Declare.
7387 (dump_cselib_table): Declare.
7388 * cfgcleanup.c (flow_find_cross_jump): Skip debug insns.
7389 (try_crossjump_to_edge): Likewise.
7390 (delete_unreachable_blocks): Remove dominant GIMPLE blocks after
7391 dominated blocks when debug stmts are present.
7392 * simplify-rtx.c (delegitimize_mem_from_attrs): New.
7393 * tree-ssa-live.c (remove_unused_locals): Skip debug stmts.
7394 (set_var_live_on_entry): Likewise.
7395 * loop-invariant.c (find_invariants_bb): Skip debug insns.
7396 * cfglayout.c (curr_location, last_location): Make static.
7397 (set_curr_insn_source_location): Don't avoid bouncing.
7398 (get_curr_insn_source_location): New.
7399 (get_curr_insn_block): New.
7400 (duplicate_insn_chain): Handle debug insns.
7401 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Propagate
7402 into debug stmts.
7403 * common.opt (fcompare-debug): Move to sort order.
7404 (fdump-unnumbered-links): Likewise.
7405 (fvar-tracking-assignments): New.
7406 (fvar-tracking-assignments-toggle): New.
7407 * tree-ssa-dce.c (mark_stmt_necessary): Don't mark blocks
7408 because of debug stmts.
7409 (mark_stmt_if_obviously_necessary): Mark debug stmts.
7410 (eliminate_unnecessary_stmts): Walk dominated blocks before
7411 dominators.
7412 * tree-ssa-ter.c (find_replaceable_in_bb): Skip debug stmts.
7413 * ira.c (memref_used_between_p): Skip debug insns.
7414 (update_equiv_regs): Likewise.
7415 * sched-deps.c (sd_lists_size): Accept empty list.
7416 (sd_init_insn): Mark debug insns.
7417 (sd_finish_insn): Unmark them.
7418 (sd_add_dep): Reject non-debug deps on debug insns.
7419 (fixup_sched_groups): Give debug insns group treatment.
7420 Skip debug insns.
7421 (sched_analyze_reg): Don't mark debug insns for sched before call.
7422 (sched_analyze_2): Handle debug insns.
7423 (sched_analyze_insn): Compute next non-debug insn. Handle debug
7424 insns.
7425 (deps_analyze_insn): Handle debug insns.
7426 (deps_start_bb): Skip debug insns.
7427 (init_deps): Initialize last_debug_insn.
7428 * tree-ssa.c (target_for_debug_bind): New.
7429 (find_released_ssa_name): New.
7430 (propagate_var_def_into_debug_stmts): New.
7431 (propagate_defs_into_debug_stmts): New.
7432 (verify_ssa): Skip debug bind stmts without values.
7433 (warn_uninialized_vars): Skip debug stmts.
7434 * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Set default.
7435 * rtl.c (rtx_equal_p_cb): Handle VALUEs.
7436 (rtx_equal_p): Likewise.
7437 * ira-costs.c (scan_one_insn): Skip debug insns.
7438 (process_bb_node_for_hard_reg_moves): Likewise.
7439 * rtl.h (DEBUG_INSN_P): New.
7440 (NONDEBUG_INSN_P): New.
7441 (MAY_HAVE_DEBUG_INSNS): New.
7442 (INSN_P): Accept debug insns.
7443 (RTX_FRAME_RELATED_P): Likewise.
7444 (INSN_DELETED_P): Likewise
7445 (PAT_VAR_LOCATION_DECL): New.
7446 (PAT_VAR_LOCATION_LOC): New.
7447 (PAT_VAR_OCATION_STATUS): New.
7448 (NOTE_VAR_LOCATION_DECL): Reimplement.
7449 (NOTE_VAR_LOCATION_LOC): Likewise.
7450 (NOTE_VAR_LOCATION_STATUS): Likewise.
7451 (INSN_VAR_LOCATION): New.
7452 (INSN_VAR_LOCATION_DECL): New.
7453 (INSN_VAR_LOCATION_LOC): New.
7454 (INSN_VAR_LOCATION_STATUS): New.
7455 (gen_rtx_UNKNOWN_VAR_LOC): New.
7456 (VAR_LOC_UNKNOWN_P): New.
7457 (NOTE_DURING_CALL_P): New.
7458 (SCHED_GROUP_P): Accept debug insns.
7459 (emit_debug_insn_before): Declare.
7460 (emit_debug_insn_before_noloc): Declare.
7461 (emit_debug_insn_beore_setloc): Declare.
7462 (emit_debug_insn_after): Declare.
7463 (emit_debug_insn_after_noloc): Declare.
7464 (emit_debug_insn_after_setloc): Declare.
7465 (emit_debug_insn): Declare.
7466 (make_debug_insn_raw): Declare.
7467 (prev_nondebug_insn): Declare.
7468 (next_nondebug_insn): Declare.
7469 (delegitimize_mem_from_attrs): Declare.
7470 (get_max_insn_count): Declare.
7471 (wrap_constant): Declare.
7472 (unwrap_constant): Declare.
7473 (get_curr_insn_source_location): Declare.
7474 (get_curr_insn_block): Declare.
7475 * tree-inline.c (insert_debug_decl_map): New.
7476 (processing_debug_stmt): New.
7477 (remap_decl): Don't create new mappings in debug stmts.
7478 (remap_gimple_op_r): Don't add references in debug stmts.
7479 (copy_tree_body_r): Likewise.
7480 (remap_gimple_stmt): Handle debug bind stmts.
7481 (copy_bb): Skip debug stmts.
7482 (copy_edges_for_bb): Likewise.
7483 (copy_debug_stmt): New.
7484 (copy_debug_stmts): New.
7485 (copy_body): Copy debug stmts at the end.
7486 (insert_init_debug_bind): New.
7487 (insert_init_stmt): Take id. Skip and emit debug stmts.
ed9d5a4a 7488 (setup_one_parameter): Remap variable earlier, register debug mapping.
8fc68cba
AO
7489 (estimate_num_insns): Skip debug stmts.
7490 (expand_call_inline): Preserve debug_map.
7491 (optimize_inline_calls): Check for no debug_stmts left-overs.
7492 (unsave_expr_now): Preserve debug_map.
7493 (copy_gimple_seq_and_replace_locals): Likewise.
7494 (tree_function_versioning): Check for no debug_stmts left-overs.
7495 Init and destroy debug_map as needed. Split edges unconditionally.
7496 (build_duplicate_type): Init and destroy debug_map as needed.
7497 * tree-inline.h: Include gimple.h instead of pointer-set.h.
7498 (struct copy_body_data): Add debug_stmts and debug_map.
7499 * sched-int.h (struct ready_list): Add n_debug.
7500 (struct deps): Add last_debug_insn.
7501 (DEBUG_INSN_SCHED_P): New.
7502 (BOUNDARY_DEBUG_INSN_P): New.
7503 (SCHEDULE_DEBUG_INSN_P): New.
7504 (sd_iterator_cond): Accept empty list.
7505 * combine.c (create_log_links): Skip debug insns.
7506 (combine_instructions): Likewise.
7507 (cleanup_auto_inc_dec): New. From Jakub Jelinek: Make sure the
7508 return value is always unshared.
7509 (struct rtx_subst_pair): New.
7510 (auto_adjust_pair): New.
7511 (propagate_for_debug_subst): New.
7512 (propagate_for_debug): New.
7513 (try_combine): Skip debug insns. Propagate removed defs into
7514 debug insns.
7515 (next_nonnote_nondebug_insn): New.
7516 (distribute_notes): Use it. Skip debug insns.
7517 (distribute_links): Skip debug insns.
7518 * tree-outof-ssa.c (set_location_for_edge): Likewise.
7519 * resource.c (mark_target_live_regs): Likewise.
7520 * var-tracking.c: Include cselib.h and target.h.
7521 (enum micro_operation_type): Add MO_VAL_USE, MO_VAL_LOC, and
7522 MO_VAL_SET.
7523 (micro_operation_type_name): New.
7524 (enum emit_note_where): Add EMIT_NOTE_AFTER_CALL_INSN.
7525 (struct micro_operation_def): Update comments.
7526 (decl_or_value): New type. Use instead of decls.
7527 (struct emit_note_data_def): Add vars.
7528 (struct attrs_def): Use decl_or_value.
7529 (struct variable_tracking_info_def): Add permp, flooded.
7530 (struct location_chain_def): Update comment.
7531 (struct variable_part_def): Use decl_or_value.
7532 (struct variable_def): Make var_part a variable length array.
7533 (valvar_pool): New.
7534 (scratch_regs): New.
7535 (cselib_hook_called): New.
7536 (dv_is_decl_p): New.
7537 (dv_is_value_p): New.
7538 (dv_as_decl): New.
7539 (dv_as_value): New.
7540 (dv_as_opaque): New.
7541 (dv_onepart_p): New.
7542 (dv_pool): New.
7543 (IS_DECL_CODE): New.
7544 (check_value_is_not_decl): New.
7545 (dv_from_decl): New.
7546 (dv_from_value): New.
7547 (dv_htab_hash): New.
7548 (variable_htab_hash): Use it.
7549 (variable_htab_eq): Support values.
7550 (variable_htab_free): Free from the right pool.
7551 (attrs_list_member, attrs_list_insert): Use decl_or_value.
7552 (attrs_list_union): Adjust.
7553 (attrs_list_mpdv_union): New.
7554 (tie_break_pointers): New.
7555 (canon_value_cmp): New.
7556 (unshare_variable): Return possibly-modified slot.
7557 (vars_copy_1): Adjust.
7558 (var_reg_decl_set): Adjust. Split out of...
7559 (var_reg_set): ... this.
7560 (get_init_value): Adjust.
7561 (var_reg_delete_and_set): Adjust.
7562 (var_reg_delete): Adjust.
7563 (var_regno_delete): Adjust.
7564 (var_mem_decl_set): Split out of...
7565 (var_mem_set): ... this.
7566 (var_mem_delete_and_set): Adjust.
7567 (var_mem_delete): Adjust.
7568 (val_store): New.
7569 (val_reset): New.
7570 (val_resolve): New.
7571 (variable_union): Adjust. Speed up merge of 1-part vars.
7572 (variable_canonicalize): Use unshared slot.
7573 (VALUED_RECURSED_INTO): New.
7574 (find_loc_in_1pdv): New.
7575 (struct dfset_merge): New.
7576 (insert_into_intersection): New.
7577 (intersect_loc_chains): New.
7578 (loc_cmp): New.
7579 (canonicalize_loc_order_check): New.
7580 (canonicalize_values_mark): New.
7581 (canonicalize_values_star): New.
7582 (variable_merge_over_cur): New.
7583 (variable_merge_over_src): New.
7584 (dataflow_set_merge): New.
7585 (dataflow_set_equiv_regs): New.
7586 (remove_duplicate_values): New.
7587 (struct dfset_post_merge): New.
7588 (variable_post_merge_new_vals): New.
7589 (variable_post_merge_perm_vals): New.
7590 (dataflow_post_merge_adjust): New.
7591 (find_mem_expr_in_1pdv): New.
7592 (dataflow_set_preserve_mem_locs): New.
7593 (dataflow_set_remove_mem_locs): New.
7594 (dataflow_set_clear_at_call): New.
7595 (onepart_variable_different_p): New.
7596 (variable_different_p): Use it.
ed9d5a4a 7597 (dataflow_set_different_1): Adjust. Make detailed dump more verbose.
8fc68cba
AO
7598 (track_expr_p): Add need_rtl parameter. Don't generate rtl
7599 if not needed.
7600 (track_loc_p): Pass it true.
7601 (struct count_use_info): New.
7602 (find_use_val): New.
7603 (replace_expr_with_values): New.
7604 (log_op_type): New.
7605 (use_type): New, partially split out of...
7606 (count_uses): ... this. Count new micro-ops.
7607 (count_uses_1): Adjust.
7608 (count_stores): Adjust.
7609 (count_with_sets): New.
7610 (VAL_NEEDS_RESOLUTION): New.
7611 (VAL_HOLDS_TRACK_EXPR): New.
7612 (VAL_EXPR_IS_COPIED): New.
7613 (VAL_EXPR_IS_CLOBBERED): New.
7614 (add_uses): Adjust. Generate new micro-ops.
7615 (add_uses_1): Adjust.
7616 (add_stores): Generate new micro-ops.
7617 (add_with_sets): New.
7618 (find_src_status): Adjust.
7619 (find_src_set_src): Adjust.
7620 (compute_bb_dataflow): Use dataflow_set_clear_at_call.
7621 Handle new micro-ops. Canonicalize value equivalances.
7622 (vt_find_locations): Compute total size of hash tables for
7623 dumping. Perform merge for var-tracking-assignments. Don't
7624 disregard single-block loops.
7625 (dump_attrs_list): Handle decl_or_value.
7626 (dump_variable): Take variable. Deal with decl_or_value.
7627 (dump_variable_slot): New.
7628 (dump_vars): Use it.
7629 (dump_dataflow_sets): Adjust.
7630 (set_slot_part): New, extended to support one-part variables
7631 after splitting out of...
7632 (set_variable_part): ... this.
7633 (clobber_slot_part): New, split out of...
7634 (clobber_variable_part): ... this.
7635 (delete_slot_part): New, split out of...
7636 (delete_variable_part): .... this.
7637 (check_wrap_constant): New.
7638 (vt_expand_loc_callback): New.
7639 (vt_expand_loc): New.
7640 (emit_note_insn_var_location): Adjust. Handle values. Handle
7641 EMIT_NOTE_AFTER_CALL_INSN.
7642 (emit_notes_for_differences_1): Adjust. Handle values.
7643 (emit_notes_for_differences_2): Likewise.
7644 (emit_notes_for_differences): Adjust.
ed9d5a4a
UB
7645 (emit_notes_in_bb): Take pointer to set. Emit AFTER_CALL_INSN notes.
7646 Adjust. Handle new micro-ops.
8fc68cba
AO
7647 (vt_add_function_parameters): Adjust. Create and bind values.
7648 (vt_initialize): Adjust. Initialize scratch_regs and
7649 valvar_pool, flooded and perm.. Initialize and use cselib. Log
7650 operations. Move some code to count_with_sets and add_with_sets.
7651 (delete_debug_insns): New.
7652 (vt_debug_insns_local): New.
7653 (vt_finalize): Release permp, valvar_pool, scratch_regs. Finish
7654 cselib.
7655 (var_tracking_main): If var-tracking-assignments is enabled
7656 but var-tracking isn't, delete debug insns and leave. Likewise
7657 if we exceed limits or fail the stack adjustments tests, and
7658 after all var-tracking processing.
7659 More in var-tracking, from Jakub Jelinek <jakub@redhat.com>:
7660 (dataflow_set): Add traversed_vars.
7661 (value_chain, const_value_chain): New typedefs.
7662 (value_chain_pool, value_chains): New variables.
7663 (value_chain_htab_hash, value_chain_htab_eq, add_value_chain,
7664 add_value_chains, add_cselib_value_chains, remove_value_chain,
7665 remove_value_chains, remove_cselib_value_chains): New functions.
7666 (shared_hash_find_slot_unshare_1, shared_hash_find_slot_1,
7667 shared_hash_find_slot_noinsert_1, shared_hash_find_1): New
7668 static inlines.
7669 (shared_hash_find_slot_unshare, shared_hash_find_slot,
7670 shared_hash_find_slot_noinsert, shared_hash_find): Update.
7671 (dst_can_be_shared): New variable.
7672 (unshare_variable): Unshare set->vars if shared, use shared_hash_*.
7673 Clear dst_can_be_shared. If set->traversed_vars is non-NULL and
7674 different from set->vars, look up slot again instead of using the
7675 passed in slot.
7676 (dataflow_set_init): Initialize traversed_vars.
7677 (variable_union): Use shared_hash_*. Use initially NO_INSERT
7678 lookup if set->vars is shared. Don't keep slot cleared before
7679 calling unshare_variable. Unshare set->vars if needed. Adjust
7680 unshare_variable callers. Clear dst_can_be_shared if needed.
7681 Even ->refcount == 1 vars must be unshared if set->vars is shared
7682 and var needs to be modified.
7683 (dataflow_set_union): Set traversed_vars during canonicalization.
7684 (VALUE_CHANGED, DECL_CHANGED): Define.
14e58be0 7685 (set_dv_changed, dv_changed_p): New static inlines.
8fc68cba
AO
7686 (track_expr_p): Clear DECL_CHANGED.
7687 (dump_dataflow_sets): Set it.
7688 (variable_was_changed): Call set_dv_changed.
7689 (emit_note_insn_var_location): Likewise.
7690 (changed_variables_stack): New variable.
7691 (check_changed_vars_1, check_changed_vars_2): New functions.
7692 (emit_notes_for_changes): Do nothing if changed_variables is
7693 empty. Traverse changed_variables with check_changed_vars_1,
7694 call check_changed_vars_2 on each changed_variables_stack entry.
7695 (emit_notes_in_bb): Add SET argument. Just clear it at the
ed9d5a4a 7696 beginning, use it instead of local &set, don't destroy it at the end.
8fc68cba
AO
7697 (vt_emit_notes): Call dataflow_set_clear early on all
7698 VTI(bb)->out sets, never use them, instead use emit_notes_in_bb
7699 computed set, dataflow_set_clear also VTI(bb)->in when we are
7700 done with the basic block. Initialize changed_variables_stack,
7701 free it afterwards. If ENABLE_CHECKING verify that after noting
7702 differences to an empty set value_chains hash table is empty.
7703 (vt_initialize): Initialize value_chains and value_chain_pool.
7704 (vt_finalize): Delete value_chains htab, free value_chain_pool.
7705 (variable_tracking_main): Call dump_dataflow_sets before calling
7706 vt_emit_notes, not after it.
7707 * tree-flow.h (propagate_defs_into_debug_stmts): Declare.
7708 (propagate_var_def_into_debug_stmts): Declare.
7709 * df-problems.c (df_lr_bb_local_compute): Skip debug insns.
7710 (df_set_note): Reject debug insns.
7711 (df_whole_mw_reg_dead_p): Take added_notes_p argument. Don't
7712 add notes to debug insns.
7713 (df_note_bb_compute): Adjust. Likewise.
7714 (df_simulate_uses): Skip debug insns.
7715 (df_simulate_initialize_backwards): Likewise.
7716 * reg-stack.c (subst_stack_regs_in_debug_insn): New.
7717 (subst_stack_regs_pat): Reject debug insns.
7718 (convert_regs_1): Handle debug insns.
7719 * Makefile.in (TREE_INLINE_H): Take pointer-set.h from GIMPLE_H.
7720 (print-rtl.o): Depend on cselib.h.
7721 (cselib.o): Depend on TREE_PASS_H.
7722 (var-tracking.o): Depend on cselib.h and TARGET_H.
ed9d5a4a 7723 * sched-rgn.c (rgn_estimate_number_of_insns): Discount debug insns.
8fc68cba
AO
7724 (init_ready_list): Skip boundary debug insns.
7725 (add_branch_dependences): Skip debug insns.
ed9d5a4a 7726 (free_block_dependencies): Check for blocks with only debug insns.
8fc68cba
AO
7727 (compute_priorities): Likewise.
7728 * gimple.c (gss_for_code): Handle GIMPLE_DEBUG.
7729 (gimple_build_with_ops_stat): Take subcode as unsigned. Adjust
7730 all callers.
7731 (gimple_build_debug_bind_stat): New.
7732 (empty_body_p): Skip debug stmts.
7733 (gimple_has_side_effects): Likewise.
7734 (gimple_rhs_has_side_effects): Likewise.
7735 * gimple.h (enum gimple_debug_subcode, GIMPLE_DEBUG_BIND): New.
7736 (gimple_build_debug_bind_stat): Declare.
7737 (gimple_build_debug_bind): Define.
7738 (is_gimple_debug): New.
7739 (gimple_debug_bind_p): New.
7740 (gimple_debug_bind_get_var): New.
7741 (gimple_debug_bind_get_value): New.
7742 (gimple_debug_bind_get_value_ptr): New.
7743 (gimple_debug_bind_set_var): New.
7744 (gimple_debug_bind_set_value): New.
7745 (GIMPLE_DEBUG_BIND_NOVALUE): New internal temporary macro.
7746 (gimple_debug_bind_reset_value): New.
7747 (gimple_debug_bind_has_value_p): New.
7748 (gsi_next_nondebug): New.
7749 (gsi_prev_nondebug): New.
7750 (gsi_start_nondebug_bb): New.
7751 (gsi_last_nondebug_bb): New.
7752 * sched-vis.c (print_pattern): Handle VAR_LOCATION.
7753 (print_insn): Handle DEBUG_INSN.
7754 * tree-cfg.c (remove_bb): Walk stmts backwards. Let loc
7755 of first insn prevail.
7756 (first_stmt): Skip debug stmts.
7757 (first_non_label_stmt): Likewise.
7758 (last_stmt): Likewise.
7759 (has_zero_uses_1): New.
7760 (single_imm_use_1): New.
7761 (verify_gimple_debug): New.
7762 (verify_types_in_gimple_stmt): Handle debug stmts.
7763 (verify_stmt): Likewise.
7764 (debug_loop_num): Skip debug stmts.
7765 (remove_edge_and_dominated_blocks): Remove dominators last.
ed9d5a4a 7766 * tree-ssa-reasssoc.c (rewrite_expr_tree): Propagate into debug stmts.
8fc68cba
AO
7767 (linearize_expr): Likewise.
7768 * config/i386/i386.c (ix86_delegitimize_address): Call
7769 default implementation.
ed9d5a4a 7770 * config/ia64/ia64.c (ia64_safe_itanium_class): Handle debug insns.
8fc68cba
AO
7771 (group_barrier_needed): Skip debug insns.
7772 (emit_insn_group_barriers): Likewise.
7773 (emit_all_insn_group_barriers): Likewise.
7774 (ia64_variable_issue): Handle debug insns.
7775 (ia64_dfa_new_cycle): Likewise.
7776 (final_emit_insn_group_barriers): Skip debug insns.
7777 (ia64_dwarf2out_def_steady_cfa): Take frame argument. Don't
7778 def cfa without frame.
7779 (process_set): Likewise.
7780 (process_for_unwind_directive): Pass frame on.
7781 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
7782 (rs6000_delegitimize_address): New.
7783 (rs6000_debug_adjust_cost): Handle debug insns.
7784 (is_microcoded_insn): Likewise.
7785 (is_cracked_insn): Likewise.
7786 (is_nonpipeline_insn): Likewise.
7787 (insn_must_be_first_in_group): Likewise.
7788 (insn_must_be_last_in_group): Likewise.
7789 (force_new_group): Likewise.
7790 * cfgrtl.c (rtl_split_block): Emit INSN_DELETED note if block
7791 contains only debug insns.
7792 (rtl_merge_blocks): Skip debug insns.
7793 (purge_dead_edges): Likewise.
7794 (rtl_block_ends_with_call_p): Skip debug insns.
7795 * dce.c (deletable_insn_p): Handle VAR_LOCATION.
7796 (mark_reg_dependencies): Skip debug insns.
7797 * params.def (PARAM_MIN_NONDEBUG_INSN_UID): New.
ed9d5a4a 7798 * tree-ssanames.c (release_ssa_name): Propagate def into debug stmts.
8fc68cba
AO
7799 * tree-ssa-threadedge.c
7800 (record_temporary_equivalences_from_stmts): Skip debug stmts.
7801 * regcprop.c (replace_oldest_value_addr): Skip debug insns.
7802 (replace_oldest_value_mem): Use ALL_REGS for debug insns.
7803 (copyprop_hardreg_forward_1): Handle debug insns.
7804 * reload1.c (reload): Skip debug insns. Replace unassigned
7805 pseudos in debug insns with their equivalences.
7806 (eliminate_regs_in_insn): Skip debug insns.
7807 (emit_input_reload_insns): Skip debug insns at first, adjust
7808 them later.
7809 * tree-ssa-operands.c (add_virtual_operand): Reject debug stmts.
7810 (get_indirect_ref_operands): Pass opf_no_vops on.
7811 (get_expr_operands): Likewise. Skip debug stmts.
7812 (parse_ssa_operands): Scan debug insns with opf_no_vops.
7813
cd6ea7a2
RH
78142009-09-01 Richard Henderson <rth@redhat.com>
7815
14e58be0 7816 * tree-ssa-ccp.c (ccp_initialize): Make sure to simulate
cd6ea7a2
RH
7817 stmt_ends_pp_p statements at least once.
7818 * tree-vrp.c (vrp_initialize): Likewise.
7819 (vrp_visit_stmt): Be prepared for non-interesting stmts.
7820
d3bc57f2
DS
78212009-09-01 Dodji Seketeli <dodji@redhat.com>
7822
7823 PR bootstrap/41205
7824 Fix AIX bootstrap after PR debug/30161
7825 * dwarf2out.c (make_ith_pack_parameter_name): Don't used strnlen
7826 that is a GNU extension.
7827 (tmpl_value_parm_die_table): Move the definition of this global
7828 outside #ifdef DWARF2_DEBUGGING_INFO region.
7829
71c00b5c
RG
78302009-09-01 Richard Guenther <rguenther@suse.de>
7831
7832 * tree.c (tree_expr_size): New function.
7833 * tree.h (tree_expr_size): Declare.
7834 * rtlanal.c (rtx_addr_can_trap_p_1): Adjust comment.
7835 * builtins.c (fold_builtin_memory_op): Use tree_expr_size.
7836 * langhooks.c (lhd_expr_size): Remove.
7837 * langhooks.h (struct lang_hooks): Remove expr_size.
7838 * explow.c (expr_size): Use tree_expr_size.
7839 (int_expr_size): Likewise.
7840 * langhooks-def.h (lhd_expr_size): Remove.
7841 (LANG_HOOKS_EXPR_SIZE): Likewise.
7842 (LANG_HOOKS_INITIALIZER): Adjust.
7843
58f986ca
RG
78442009-09-01 Richard Guenther <rguenther@suse.de>
7845
7846 * tree-flow.h (mark_addressable): Move declaration ...
7847 * tree.h (mark_addressable): ... here.
7848 * stmt.c (expand_asm_operands): Use mark_addressable, not
7849 lang_hooks.mark_addressable.
7850 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
7851 LANG_HOOKS_MARK_ADDRESSABLE.
7852 * langhooks.h (struct lang_hooks): Remove mark_addressable langhook.
7853 * c-objc-common.h (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
7854
5fa162c0
CD
78552009-08-31 Chris Demetriou <cgd@google.com>
7856
7857 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never
7858 vectorize if not TARGET_SSE2.
7859
453503d6
DD
78602009-08-31 DJ Delorie <dj@redhat.com>
7861
7862 * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor
7863 registers if no coprocessor is enabled.
7864
f9329c35
DS
78652009-08-31 Dodji Seketeli <dodji@redhat.com>
7866
7867 PR debug/30161
7868 * cgraph.h (cgraph_get_node): Declare ...
7869 * cgraph.c (cgraph_get_node): ... new function.
7870 * dwarf2out.c (gen_generic_params_dies,
7871 generic_parameter_die, tree_add_const_value_attribute_for_decl,
7872 make_ith_pack_parameter_name,
7873 append_entry_to_tmpl_value_parm_die_table,
7874 gen_remaining_tmpl_value_param_die_attribute): New functions.
7875 (gen_subprogram_die): Generate debug info for template parameters
7876 if debug info level is higher than DINFO_LEVEL_TERSE.
7877 Use tree_add_const_value_attribute_for_decl instead of
7878 tree_add_const_value_attribute.
7879 (gen_const_die): Use tree_add_const_value_attribute_for_decl
7880 instead of tree_add_const_value_attribute.
7881 (gen_struct_or_union_type_die): Generate debug
7882 info for template parameters if debug info level is higher than
7883 DINFO_LEVEL_TERSE.
7884 (tree_add_const_value_attribute): Handle integral and pointer
7885 constants. Update comment.
7886 (dwarf_tag_name): Support DW_TAG_GNU_template_template_param.
7887 (dwarf_attr_name): Support DW_AT_GNU_template_name.
7888 (reference_to_unused): Fix thinko. Remove redundant predicates from
7889 tests.
7890 (tree_add_const_value_attribute): Make this work for constant
7891 expressions only.
7892 tree_add_const_value_attribute_for_decl is to be used for variable
7893 DECLs now.
7894 (add_location_or_const_value_attribute): Use
7895 tree_add_const_value_attribute_for_decl now.
7896 (dwarf2out_finish): Emit the DW_AT_const_value attribute of
7897 DW_TAG_template_value_param DIEs after function DIEs have been
7898 emitted.
7899 * langhooks.h (lang_hooks_for_types): Add
7900 get_argument_pack_elems.
7901 (lang_hooks_for_decls): Add generic_generic_parameter_decl_p.
7902 (lang_hooks): Added get_innermost_generic_parms,
7903 get_innermost_generic_args.
7904 * langhooks-def.h (LANG_HOOKS_GET_INNERMOST_GENERIC_PARMS,
7905 LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS,
7906 LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS,
7907 LANG_HOOKS_GENERIC_GENERIC_PARAMETER_DECL_P): New language hooks.
7908
e756464b
DD
79092009-08-31 DJ Delorie <dj@redhat.com>
7910
7911 * config/mep/mep.c (machine_function): Add frame_locked flag. Set
7912 it once we start generating the prologue or epilogue.
5fa162c0
CD
7913 (mep_call_saves_register): If the frame is locked, re-use
7914 cached values.
e756464b
DD
7915 (mep_assign_save_slots): New, broken out from mep_expand_prologue.
7916 (mep_expand_prologue): Call it.
7917 (mep_expand_epilogue): Likewise.
7918 (mep_start_function): Use the same logic as mep_expand_prologue.
7919 (mep_pass_by_reference): Make logic more readable.
7920 (mep_return_in_memory): Zero-sized objects are passed in memory.
7921 (mep_reorg_noframe): Make sure we have accurate REG_DEAD notes.
7922
e2abde5f
RG
79232009-08-31 Richard Guenther <rguenther@suse.de>
7924
7925 * builtins.c (fold_builtin_memory_op): Use the alias oracle
7926 to query if the memory regions for memmove overlap.
7927 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
7928 asserts on pointers, instead deal with odd trees.
7929 (ptr_derefs_may_alias_p): Likewise.
7930 (refs_may_alias_p_1): Constructor bases also never alias.
7931
c4331d93
GP
79322009-08-31 Gerald Pfeifer <gerald@pfeifer.com>
7933
7934 * doc/install.texi (Final install): Adjust reference on where to
7935 order printed manuals.
7936
40a99889
OH
79372009-08-30 Olivier Hainque <hainque@adacore.com>
7938
7939 * dwarf2out.c (switch_to_frame_table_section): Move
7940 definition prior to first use.
7941
a778c4e7
RG
79422009-08-30 Richard Guenther <rguenther@suse.de>
7943
7944 PR tree-optimization/41186
7945 * tree-ssa-alias.c (ptr_deref_may_alias_ref_p): Remove.
7946 (ao_ref_init_from_ptr_and_size): New function.
7947 (ref_maybe_used_by_call_p_1): Be more precise tracking
7948 used ranges for builtin functions.
7949 (ref_maybe_used_by_call_p): Adjust.
7950 (call_may_clobber_ref_p_1): Be more precise tracking clobbered
7951 ranges for builtin functions.
7952 * tree-ssa-alias.h (ao_ref_init_from_ptr_and_size): Declare.
7953
e85122be
AM
79542009-08-30 Alan Modra <amodra@bigpond.net.au>
7955
7956 PR target/41081
7957 * fwprop.c (get_reg_use_in): Delete.
7958 (free_load_extend): New function.
7959 (forward_propagate_subreg): Use it.
7960
2d606e03
KK
79612009-08-29 Kaz Kojima <kkojima@gcc.gnu.org>
7962
7963 * config.gcc (sh*-*-elf): Add superh stuff only for sh*-superh-elf.
7964
ce557b74
KT
79652009-08-29 Kai Tietz<kai.tietz@onevision.com>
7966
d1eda136
L
7967 PR/41184
7968 * config/i386.c (ix86_expand_epilogue): Correct stack adjustment for
7969 padding.
ce557b74 7970
6d83cb32
DR
79712009-08-29 Douglas B Rupp <rupp@gnat.com>
7972
7973 * crtstuff.c (__do_global_dtors_aux): Use atexit if no
7974 fini or fini_array section.
7975
211694b6
SP
79762009-08-28 Sebastian Pop <sebastian.pop@amd.com>
7977
7978 * graphite-dependences.c (graphite_legal_transform_bb): Call
7979 pbb_remove_duplicate_pdrs.
7980 * graphite-poly.c (can_collapse_pdr): Removed.
7981 (pdr_find_duplicate): Removed.
7982 (can_collapse_pdrs): New.
7983 (pbb_remove_duplicate_pdrs): New.
7984 (new_poly_dr): Do not look for duplicates.
7985 * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
7986 (PBB_PDR_DUPLICATES_REMOVED): New.
7987 (pbb_remove_duplicate_pdrs): Declared.
7988
7bd2a8a7
SP
79892009-08-28 Sebastian Pop <sebastian.pop@amd.com>
7990
7991 * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
7992 the strides by multiplying by PDR_NB_REFS.
7993 * graphite-poly.c (can_collapse_pdr): New.
7994 (pdr_find_duplicate): New.
7995 (new_poly_dr): Call pdr_find_duplicate. Collapse duplicate PDRs.
7996 Initialize PDR_NB_REFS.
7997 * graphite-poly.h (struct poly_dr): Add field nb_refs.
7998 (PDR_NB_REFS): New.
7999 (new_poly_dr): Number of subscripts is a graphite_dim_t.
8000
93b2db87
SP
80012009-08-28 Sebastian Pop <sebastian.pop@amd.com>
8002
8003 PR middle-end/40965
8004 * graphite-poly.c (apply_poly_transforms): Remove legality test before
8005 any transform.
8006
d8eeb078
SP
80072009-08-28 Sebastian Pop <sebastian.pop@amd.com>
8008
8009 * graphite-dependences.c (pddr_original_scattering): Return NULL
8010 for read-read dependence relations.
8011 * graphite-poly.h (enum poly_dr_type): Fix comment.
8012 (pdr_read_p): New.
8013 (pdr_write_p): New.
8014 (pdr_may_write_p): New.
8015
e6dec0fb
SP
80162009-08-28 Sebastian Pop <sebastian.pop@amd.com>
8017
8018 * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
8019 (struct poly_dr): Same.
8020 (new_poly_dr): Same.
8021 * graphite-poly.c (new_poly_dr): Same.
8022 * graphite-dependences.c (dot_deps): Disable call to system.
8023
3ff4c25d
CC
80242009-08-28 Cary Coutant <ccoutant@google.com>
8025
8026 PR debug/41063
8027 * dwarf2out.c (gen_type_die_with_usage): Use proper context for
8028 struct/union/enum types local to a function.
8029
baf4b881
KT
80302009-08-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
8031 Sebastian Pop <sebastian.pop@amd.com>
8032
8033 * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
8034 pbb_strip_mine_time_depth. Changed the implementation so that
8035 transformation is expressed as a transformation on
8036 time (scatttering) dimensions. Also, ensures that the 2d+1
8037 scheduling format is preserved.
8038 (pbb_strip_mine_profitable_p): Profitability is based on the
8039 iteration number of a given time (scattering) dimension,
8040 and not on a original loop depth dimension.
8041 (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
8042 (pbb_do_strip_mine): Call psct_dynamic_dim.
8043 * graphite-poly.c (pbb_number_of_iterations_at_time): New.
8044 * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
8045 (pbb_nb_dynamic_scattering_transform): New.
8046 (psct_dynamic_dim): New.
8047
059a5f9f
KT
80482009-08-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
8049
8050 * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
8051 * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
8052 * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
8053 * graphite-interchange.c (build_linearized_memory_access): Same.
8054 (memory_stride_in_loop): Same.
8055
afae0207
SP
80562009-08-28 Sebastian Pop <sebastian.pop@amd.com>
8057
8058 * graphite-dependences.c (pddr_original_scattering): New.
8059 (graphite_legal_transform_dr): Call pddr_original_scattering.
8060 (dot_deps_1): New.
8061 (dot_deps): New.
8062 * graphite-dependences.h (dot_deps): Declared.
8063 * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
8064 (print_pdr): Print PDR_ID.
8065 * graphite-poly.h (struct poly_dr): Add field id.
8066 (PDR_ID): New.
8067 (pbb_index): New.
8068 * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
8069
f8e0bb8b
SP
80702009-08-28 Sebastian Pop <sebastian.pop@amd.com>
8071
8072 * graphite-dependences.c (graphite_carried_dependence_level_k): Do
8073 not delete the original dependence relation.
8074
e37f165f
SP
80752009-08-28 Sebastian Pop <sebastian.pop@amd.com>
8076
8077 * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
8078 (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
8079 (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
8080 (free_poly_ddr): New.
8081 (pddr_is_empty): New.
8082 (dependence_polyhedron_1): Now returns a poly_ddr_p.
8083 (dependence_polyhedron): Same. Remove useless gcc_assert.
8084 Remove fprintfs.
8085 (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
8086 (graphite_carried_dependence_level_k): Call pddr_is_empty.
8087 * graphite-dependences.h (enum poly_dependence_kind): New.
8088 (poly_dr_pair): Renamed poly_ddr. Added a field kind.
8089 (PDRP_SOURCE): Renamed PDDR_SOURCE.
8090 (PDRP_SINK): Renamed PDDR_SINK.
8091 (PDRP_DDP): Renamed PDDR_DDP.
8092 (PDDR_KIND): New.
8093 (free_poly_ddr): Declared.
8094 * graphite-poly.c (new_scop): Use the new hash function names.
8095 * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
8096 into original_pddrs.
8097 (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
8098
45e76e9f
SP
80992009-08-28 Sebastian Pop <sebastian.pop@amd.com>
8100
8101 * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
8102 bounds with LT_EXPR to make niter analysis more precise on code
8103 generated by Graphite.
8104
66b466c3
SP
81052009-08-28 Sebastian Pop <sebastian.pop@amd.com>
8106
8107 * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
8108 (graphite_legal_transform_bb): Same.
8109 (poly_drs_may_alias_p): Same.
8110
81fa17da
RG
81112009-08-28 Richard Guenther <rguenther@suse.de>
8112
8113 * tree.def: Remove note about obsolete TYPE_NONCOPIED_PARTS.
8114
a858e912
JB
81152009-08-28 Jan Beulich <jbeulich@novell.com>
8116
8117 * config/i386/netware.c: Include langhooks.h.
8118 (i386_nlm_encode_section_info): Simplify.
8119 (netware_override_options): Delete.
8120 * config/i386/netware.h (netware_override_options): Delete
8121 declaration.
8122 (OVERRIDE_OPTIONS): Delete definition.
8123 (SUBTARGET_OVERRIDE_OPTIONS): Define.
8124 (ASM_COMMENT_START): Define.
8125 * config/i386/nwld.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
8126
39ba7b7d
JB
81272009-08-28 Jan Beulich <jbeulich@novell.com>
8128
8129 * configure.ac: For in-tree ld, do a plain version check to
8130 determine whether comdat groups are supported.
8131 * configure: Regenerate.
8132
7e49a4b3
OH
81332009-08-28 Olivier Hainque <hainque@adacore.com>
8134
8135 * collect2.c (DO_COLLECT_EXPORT_LIST): New internal macro,
8136 always defined. Reflect definition or absence of such for
8137 COLLECT_EXPORT_LIST. Readability helper.
8138 (scanfilter): New enum, to help control what symbols
8139 are to be considered or ignored by scan_prog_file.
8140 (enum pass): Rename as "scanpass", moved together with scanfilter
8141 prior to scan_prog_file's prototype.
8142 (scan_prog_file): Accept and honor scanpass and scanfilter arguments.
8143 Group prototype with the scanpass/scanfilter definitions, factorize
8144 head comments for the several implementations at the prototype.
8145 (main): Reorganize the first pass link control to let AIX
8146 drag only the needed frame tables in executables. Prevent
8147 frame tables collection during the scan aimed at static ctors.
8148 Pre-link and scan for frame tables later to compensate.
8149 * doc/tm.texi (ASM_OUTPUT_DWARF_TABLE_REF): New macro.
8150 A C statement to issue assembly directives that create a reference
8151 to the given DWARF table identifier label from the current function
8152 section.
8153 * dwarf2out.c (switch_to_eh_frame_section): Add a BACK argument
8154 to differentiate first time section entry. Only emit a .data
8155 tables start identifier label the first time around.
8156 (switch_to_frame_table_section): New function. Helper for
8157 output_call_frame_info to switch possibly BACK into the eh_frame
8158 or the debug_frame section depending on FOR_EH.
8159 (output_call_frame_info): Use helper to first enter the proper
8160 frame section.
8161 (output_fde): Use ASM_OUTPUT_DWARF_TABLE_REF when defined to
8162 emit a link to the frame table start label from each function
8163 section.
8164 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
8165 New function. Implementation of ASM_OUTPUT_DWARF_TABLE_REF.
8166 * config/rs6000/rs6000-protos.h: Declare it.
8167 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Define.
8168
a7d6f306
KK
81692009-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
8170
8171 * config/sh/sh.c (split_branches): Check the result of
8172 next_active_insn.
8173
715fda99
SE
81742009-08-27 Steve Ellcey <sje@cup.hp.com>
8175
8176 * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when
8177 using -pthread -fopenmp
8178
2711df18
GP
81792009-08-27 Gerald Pfeifer <gerald@pfeifer.com>
8180
8181 * doc/service.texi (service directory): Update URL.
8182
2b3b22d3
UB
81832009-08-27 Uros Bizjak <ubizjak@gmail.com>
8184
8185 PR rtl-optimization/40861
8186 * simplify-rtx.c (simplify_subreg): Do not call simplify_gen_subreg to
8187 extract word from a multi-word subreg for negative byte positions.
8188
30ed9d3d
TG
81892009-08-27 Tristan Gingold <gingold@adacore.com>
8190 Douglas B Rupp <rupp@gnat.com>
8191
2b3b22d3 8192 * config/ia64/ia64.c (ia64_attribute_table): Add "common_object" entry.
30ed9d3d
TG
8193 (SECTION_VMS_OVERLAY): Define.
8194 (ia64_vms_common_object_attribute): Added. Handle the "common_object"
8195 attribute.
8196 (ia64_vms_elf_asm_named_section): Added. Generate .section pseudo-op
8197 for common_object.
8198 (ia64_vms_output_aligned_decl_common): Added. Generate pseudo-op for
8199 common_object declarations.
8200 (ia64_section_type_flags): Set section flag for common_object.
8201 * config/ia64/ia64-protos.h
8202 (ia64_vms_output_aligned_decl_common): Declare.
8203 (ia64_vms_elf_asm_named_section): Declare.
8204
f994f296
MM
82052009-08-27 Michael Matz <matz@suse.de>
8206
8207 * expr.c (expand_expr_real_2): New function taking exploded
8208 unary or binary expression, split out from ...
8209 (expand_expr_real_1): ... here. Move over all unary/binary
8210 switch parts to above function, in particular these codes:
8211 PAREN_EXPR, NOP_EXPR, CONVERT_EXPR, POINTER_PLUS_EXPR, PLUS_EXPR,
8212 MINUS_EXPR, MULT_EXPR, TRUNC_DIV_EXPR, FLOOR_DIV_EXPR, CEIL_DIV_EXPR,
8213 ROUND_DIV_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, TRUNC_MOD_EXPR,
8214 FLOOR_MOD_EXPR, CEIL_MOD_EXPR, ROUND_MOD_EXPR, FIXED_CONVERT_EXPR,
8215 FIX_TRUNC_EXPR, FLOAT_EXPR, NEGATE_EXPR, ABS_EXPR, MAX_EXPR, MIN_EXPR,
8216 BIT_NOT_EXPR, TRUTH_AND_EXPR, BIT_AND_EXPR, TRUTH_OR_EXPR,
8217 BIT_IOR_EXPR, TRUTH_XOR_EXPR, BIT_XOR_EXPR, LROTATE_EXPR, RROTATE_EXPR,
8218 LSHIFT_EXPR, RSHIFT_EXPR, LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR,
8219 NE_EXPR, UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR,
8220 UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_NOT_EXPR, COMPLEX_EXPR,
8221 WIDEN_SUM_EXPR, REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR,
8222 VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
8223 VEC_INTERLEAVE_LOW_EXPR, VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR,
8224 VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR, VEC_UNPACK_FLOAT_HI_EXPR,
8225 VEC_UNPACK_FLOAT_LO_EXPR, VEC_WIDEN_MULT_HI_EXPR,
8226 VEC_WIDEN_MULT_LO_EXPR, VEC_PACK_TRUNC_EXPR, VEC_PACK_SAT_EXPR,
8227 VEC_PACK_FIX_TRUNC_EXPR.
8228 (<case PAREN_EXPR>): Call set_mem_attributes() with type, not the
8229 full expression.
8230
c6a21142
RG
82312009-08-27 Richard Guenther <rguenther@suse.de>
8232
8233 * gengtype.c (main): Handle uint64_t.
8234 * ipa-utils.c (get_base_var): Indent properly.
8235 * tree-ssa-live.c (debug_scope_block): New function.
8236 * tree-flow.h (debug_scope_block): Declare.
8237 * tree-ssa-copy.c (replace_exp_1): Add vertical space.
8238 * basic-block.h (enum profile_status): Rename to
8239 enum profile_status_d.
8240 (x_profile_status): Adjust type.
8241
7842a9db
DS
82422009-08-27 Dodji Seketeli <dodji@redhat.com>
8243
d1eda136 8244 PR debug/41170
7842a9db
DS
8245 * dwarf2out.c (get_context_die): Declare this static function.
8246 (gen_type_die_with_usage): Make sure a DIE is a generated for
8247 the context of a typedef.
8248
98f6d48a
AS
82492009-08-26 Anatoly Sokolov <aesok@post.ru>
8250
8251 * doc/invoke.texi (AVR Options): Remove documentation of -minit-stack
8252 switch.
8253
6f5a62e9
RS
82542009-08-26 Richard Sandiford <rdsandiford@googlemail.com>
8255
8256 * config/mips/mips-protos.h (mips_output_sync): Declare.
8257 (mips_sync_loop_insns): Likewise.
8258 (mips_output_sync_loop): Replace first two parameters with an rtx.
8259 * config/mips/mips.c (mips_multi_member): New structure.
8260 (mips_multi_members): New variable.
8261 (mips_multi_start): New function.
8262 (mips_multi_add): Likewise.
8263 (mips_multi_add_insn): Likewise.
8264 (mips_multi_add_label): Likewise.
8265 (mips_multi_last_index): Likewise.
8266 (mips_multi_copy_insn): Likewise.
8267 (mips_multi_set_operand): Likewise.
8268 (mips_multi_write): Likewise.
8269 (mips_print_operand_punctuation): Remove '%|' and '%-'.
8270 (mips_init_print_operand_punct): Update accordingly.
8271 (mips_start_ll_sc_sync_block): New function.
8272 (mips_end_ll_sc_sync_block): Likewise.
8273 (mips_output_sync): Likewise.
8274 (mips_sync_insn1_template): Likewise.
8275 (mips_sync_insn2_template): Likewise.
8276 (mips_get_sync_operand): Likewise.
8277 (mips_process_sync_loop): Likewise.
8278 (mips_output_sync_loop): Use mips_process_sync_loop.
8279 (mips_sync_loop_insns): New function.
8280 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Delete.
8281 (MIPS_COMPARE_AND_SWAP_12): Likewise.
8282 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP): Likewise.
8283 (MIPS_COMPARE_AND_SWAP_12_NONZERO_OP): Likewise.
8284 (MIPS_SYNC_OP, MIPS_SYNC_OP_12): Likewise.
8285 (MIPS_SYNC_OP_12_AND, MIPS_SYNC_OP_12_XOR): Likewise.
8286 (MIPS_SYNC_OLD_OP_12): Likewise.
8287 (MIPS_SYNC_OLD_OP_12_AND, MIPS_SYNC_OLD_OP_12_XOR): Likewise.
8288 (MIPS_SYNC_NEW_OP_12): Likewise.
8289 (MIPS_SYNC_NEW_OP_12_AND, MIPS_SYNC_NEW_OP_12_XOR): Likewise.
8290 (MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP): Likewise.
8291 (MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND): Likewise.
8292 (MIPS_SYNC_EXCHANGE, MIPS_SYNC_EXCHANGE_12): Likewise.
8293 (MIPS_SYNC_EXCHANGE_12_ZERO_OP): Likewise.
8294 (MIPS_SYNC_EXCHANGE_12_NONZER_OP): Likewise.
8295 * config/mips/mips.md (sync_mem): New attribute.
8296 (sync_oldval, sync_newval, sync_inclusive_mask): Likewise.
8297 (sync_exclusive_mask, sync_required_oldval): Likewise.
8298 (sync_insn1_op2, sync_insn1, sync_insn2): Likewise.
8299 (sync_release_barrier): Likewise.
8300 (length): Handle sync loops.
8301 (sync): Use mips_output_sync.
8302 * config/mips/sync.md (*memory_barrier): Use mips_output_sync.
8303 (sync_compare_and_swap<mode>): Set the new sync_* attributes
8304 and use mips_output_sync_loop.
8305 (compare_and_swap_12, sync_add<mode>, sync_<optab>_12): Likewise.
8306 (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
8307 (sync_old_nand_12, sync_new_nand_12, sync_sub<mode>): Likewise.
8308 (sync_old_add<mode>, sync_old_sub<mode>): Likewise.
8309 (sync_new_add<mode>, sync_new_sub<mode>): Likewise.
8310 (sync_<optab><mode>, sync_old_<optab><mode>): Likewise.
8311 (sync_new_<optab><mode>, sync_nand<mode>): Likewise.
8312 (sync_old_nand<mode>, sync_new_nand<mode>): Likewise.
8313 (sync_lock_test_and_set<mode>, test_and_set_12): Likewise.
8314
6b8b9e42
RG
83152009-08-26 Richard Guenther <rguenther@suse.de>
8316
8317 PR middle-end/41163
8318 * gimplify.c (gimplify_addr_expr): Canonicalize ADDR_EXPRs if
8319 the types to not match.
8320 * tree-cfg.c (verify_gimple_assign_single): Adjust ADDR_EXPR
8321 verification.
8322 * tree-ssa.c (useless_type_conversion_p): Conversions to
8323 pointers to unprototyped functions are useless.
8324
bacd3fb6
RG
83252009-08-26 Richard Guenther <rguenther@suse.de>
8326
5fa162c0
CD
8327 * tree-ssa-structalias.c (create_variable_info_for): Remove strange
8328 whole-program condition, prepare to be called for non-globals.
bacd3fb6
RG
8329 (intra_create_variable_infos): For restrict qualified DECL_BY_REFERENCE
8330 params build a representative with known type and track its fields.
8331
7b3d1847
UB
83322009-08-26 Uros Bizjak <ubizjak@gmail.com>
8333
8334 * config/alpha/sync.md: Update comment about unpredictable LL/SC lock
8335 clearing by a taken branch.
8336 (sync_<fetchop_name><mode>): Split when epilogue_completed is set,
8337 effectively after bbro pass.
8338 (sync_nand<mode>): Ditto.
8339 (sync_old_<fetchop_name><mode>): Ditto.
8340 (sync_old_nand<mode>): Ditto.
8341 (sync_new_<fetchop_name><mode>): Dito.
8342 (sync_new_nand<mode>): Ditto.
8343 (sync_compare_and_swap<mode>_1): Ditto.
8344 (*sync_compare_and_swap<mode>): Ditto.
8345 (sync_lock_test_and_set<mode>_1): Ditto.
8346 ("sync_lock_test_and_set<mode>): Ditto.
8347
edb89024
DR
83482009-08-25 Douglas B Rupp <rupp@gnat.com>
8349
8350 * hwint.h (HOST_LONG_FORMAT): New macro
8351 * bitmap.c, c-decl.c, mips-tfile.c, print-rtl.c, print-tree.c:
8352 Use HOST_PTR_PRINTF.
8353 * system.h (HOST_PTR_PRINTF): Resurrect old macro
8354 * doc/hostconfig.texi (HOST_LONG_FORMAT): Document.
8355 (HOST_PTR_PRINTF): Document.
8356
5c1a2bb1
JH
83572009-08-25 Jan Hubicka <jh@suse.cz>
8358
8359 * config/i386/bmmintrin.h: Replace by #error.
8360
8361 Revert:
8362 Michael Meissner <michael.meissner@amd.com>
8363 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
8364 Tony Linthicum <tony.linthicum@amd.com>
8365
8366 * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
8367 (TARGET_ROUND): New macro for the round/ptest instructions which
8368 are shared between SSE4.1 and SSE5.
8369 (OPTION_MASK_ISA_ROUND): Ditto.
8370 (OPTION_ISA_ROUND): Ditto.
8371 (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
8372 (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
8373
8374 * config/i386/i386.opt (-msse5): New switch for SSE5 support.
8375 (-mfused-madd): New switch to give users control over whether the
8376 compiler optimizes to use the multiply/add SSE5 instructions.
8377
8378 * config/i386/i386.c (enum pta_flags): Add PTA_SSE5.
8379 (ix86_handle_option): Turn off 3dnow if -msse5.
8380 (override_options): Add SSE5 support.
8381 (print_operand): %Y prints comparison codes for SSE5 com/pcom
8382 instructions.
8383 (ix86_expand_sse_movcc): Add SSE5 support.
8384 (ix86_expand_sse5_unpack): New function to use pperm to unpack a
8385 vector type to the next largest size.
8386 (ix86_expand_sse5_pack): New function to use pperm to pack a
8387 vector type to the next smallest size.
8388 (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
8389 (IX86_BUILTIN_FMADDSD): Ditto.
8390 (IX86_BUILTIN_FMADDPS): Ditto.
8391 (IX86_BUILTIN_FMADDPD): Ditto.
8392 (IX86_BUILTIN_FMSUBSS): Ditto.
8393 (IX86_BUILTIN_FMSUBSD): Ditto.
8394 (IX86_BUILTIN_FMSUBPS): Ditto.
8395 (IX86_BUILTIN_FMSUBPD): Ditto.
8396 (IX86_BUILTIN_FNMADDSS): Ditto.
8397 (IX86_BUILTIN_FNMADDSD): Ditto.
8398 (IX86_BUILTIN_FNMADDPS): Ditto.
8399 (IX86_BUILTIN_FNMADDPD): Ditto.
8400 (IX86_BUILTIN_FNMSUBSS): Ditto.
8401 (IX86_BUILTIN_FNMSUBSD): Ditto.
8402 (IX86_BUILTIN_FNMSUBPS): Ditto.
8403 (IX86_BUILTIN_FNMSUBPD): Ditto.
8404 (IX86_BUILTIN_PCMOV_V2DI): Ditto.
8405 (IX86_BUILTIN_PCMOV_V4SI): Ditto.
8406 (IX86_BUILTIN_PCMOV_V8HI): Ditto.
8407 (IX86_BUILTIN_PCMOV_V16QI): Ditto.
8408 (IX86_BUILTIN_PCMOV_V4SF): Ditto.
8409 (IX86_BUILTIN_PCMOV_V2DF): Ditto.
8410 (IX86_BUILTIN_PPERM): Ditto.
8411 (IX86_BUILTIN_PERMPS): Ditto.
8412 (IX86_BUILTIN_PERMPD): Ditto.
8413 (IX86_BUILTIN_PMACSSWW): Ditto.
8414 (IX86_BUILTIN_PMACSWW): Ditto.
8415 (IX86_BUILTIN_PMACSSWD): Ditto.
8416 (IX86_BUILTIN_PMACSWD): Ditto.
8417 (IX86_BUILTIN_PMACSSDD): Ditto.
8418 (IX86_BUILTIN_PMACSDD): Ditto.
8419 (IX86_BUILTIN_PMACSSDQL): Ditto.
8420 (IX86_BUILTIN_PMACSSDQH): Ditto.
8421 (IX86_BUILTIN_PMACSDQL): Ditto.
8422 (IX86_BUILTIN_PMACSDQH): Ditto.
8423 (IX86_BUILTIN_PMADCSSWD): Ditto.
8424 (IX86_BUILTIN_PMADCSWD): Ditto.
8425 (IX86_BUILTIN_PHADDBW): Ditto.
8426 (IX86_BUILTIN_PHADDBD): Ditto.
8427 (IX86_BUILTIN_PHADDBQ): Ditto.
8428 (IX86_BUILTIN_PHADDWD): Ditto.
8429 (IX86_BUILTIN_PHADDWQ): Ditto.
8430 (IX86_BUILTIN_PHADDDQ): Ditto.
8431 (IX86_BUILTIN_PHADDUBW): Ditto.
8432 (IX86_BUILTIN_PHADDUBD): Ditto.
8433 (IX86_BUILTIN_PHADDUBQ): Ditto.
8434 (IX86_BUILTIN_PHADDUWD): Ditto.
8435 (IX86_BUILTIN_PHADDUWQ): Ditto.
8436 (IX86_BUILTIN_PHADDUDQ): Ditto.
8437 (IX86_BUILTIN_PHSUBBW): Ditto.
8438 (IX86_BUILTIN_PHSUBWD): Ditto.
8439 (IX86_BUILTIN_PHSUBDQ): Ditto.
8440 (IX86_BUILTIN_PROTB): Ditto.
8441 (IX86_BUILTIN_PROTW): Ditto.
8442 (IX86_BUILTIN_PROTD): Ditto.
8443 (IX86_BUILTIN_PROTQ): Ditto.
8444 (IX86_BUILTIN_PROTB_IMM): Ditto.
8445 (IX86_BUILTIN_PROTW_IMM): Ditto.
8446 (IX86_BUILTIN_PROTD_IMM): Ditto.
8447 (IX86_BUILTIN_PROTQ_IMM): Ditto.
8448 (IX86_BUILTIN_PSHLB): Ditto.
8449 (IX86_BUILTIN_PSHLW): Ditto.
8450 (IX86_BUILTIN_PSHLD): Ditto.
8451 (IX86_BUILTIN_PSHLQ): Ditto.
8452 (IX86_BUILTIN_PSHAB): Ditto.
8453 (IX86_BUILTIN_PSHAW): Ditto.
8454 (IX86_BUILTIN_PSHAD): Ditto.
8455 (IX86_BUILTIN_PSHAQ): Ditto.
8456 (IX86_BUILTIN_FRCZSS): Ditto.
8457 (IX86_BUILTIN_FRCZSD): Ditto.
8458 (IX86_BUILTIN_FRCZPS): Ditto.
8459 (IX86_BUILTIN_FRCZPD): Ditto.
8460 (IX86_BUILTIN_CVTPH2PS): Ditto.
8461 (IX86_BUILTIN_CVTPS2PH): Ditto.
8462 (IX86_BUILTIN_COMEQSS): Ditto.
8463 (IX86_BUILTIN_COMNESS): Ditto.
8464 (IX86_BUILTIN_COMLTSS): Ditto.
8465 (IX86_BUILTIN_COMLESS): Ditto.
8466 (IX86_BUILTIN_COMGTSS): Ditto.
8467 (IX86_BUILTIN_COMGESS): Ditto.
8468 (IX86_BUILTIN_COMUEQSS): Ditto.
8469 (IX86_BUILTIN_COMUNESS): Ditto.
8470 (IX86_BUILTIN_COMULTSS): Ditto.
8471 (IX86_BUILTIN_COMULESS): Ditto.
8472 (IX86_BUILTIN_COMUGTSS): Ditto.
8473 (IX86_BUILTIN_COMUGESS): Ditto.
8474 (IX86_BUILTIN_COMORDSS): Ditto.
8475 (IX86_BUILTIN_COMUNORDSS): Ditto.
8476 (IX86_BUILTIN_COMFALSESS): Ditto.
8477 (IX86_BUILTIN_COMTRUESS): Ditto.
8478 (IX86_BUILTIN_COMEQSD): Ditto.
8479 (IX86_BUILTIN_COMNESD): Ditto.
8480 (IX86_BUILTIN_COMLTSD): Ditto.
8481 (IX86_BUILTIN_COMLESD): Ditto.
8482 (IX86_BUILTIN_COMGTSD): Ditto.
8483 (IX86_BUILTIN_COMGESD): Ditto.
8484 (IX86_BUILTIN_COMUEQSD): Ditto.
8485 (IX86_BUILTIN_COMUNESD): Ditto.
8486 (IX86_BUILTIN_COMULTSD): Ditto.
8487 (IX86_BUILTIN_COMULESD): Ditto.
8488 (IX86_BUILTIN_COMUGTSD): Ditto.
8489 (IX86_BUILTIN_COMUGESD): Ditto.
8490 (IX86_BUILTIN_COMORDSD): Ditto.
8491 (IX86_BUILTIN_COMUNORDSD): Ditto.
8492 (IX86_BUILTIN_COMFALSESD): Ditto.
8493 (IX86_BUILTIN_COMTRUESD): Ditto.
8494 (IX86_BUILTIN_COMEQPS): Ditto.
8495 (IX86_BUILTIN_COMNEPS): Ditto.
8496 (IX86_BUILTIN_COMLTPS): Ditto.
8497 (IX86_BUILTIN_COMLEPS): Ditto.
8498 (IX86_BUILTIN_COMGTPS): Ditto.
8499 (IX86_BUILTIN_COMGEPS): Ditto.
8500 (IX86_BUILTIN_COMUEQPS): Ditto.
8501 (IX86_BUILTIN_COMUNEPS): Ditto.
8502 (IX86_BUILTIN_COMULTPS): Ditto.
8503 (IX86_BUILTIN_COMULEPS): Ditto.
8504 (IX86_BUILTIN_COMUGTPS): Ditto.
8505 (IX86_BUILTIN_COMUGEPS): Ditto.
8506 (IX86_BUILTIN_COMORDPS): Ditto.
8507 (IX86_BUILTIN_COMUNORDPS): Ditto.
8508 (IX86_BUILTIN_COMFALSEPS): Ditto.
8509 (IX86_BUILTIN_COMTRUEPS): Ditto.
8510 (IX86_BUILTIN_COMEQPD): Ditto.
8511 (IX86_BUILTIN_COMNEPD): Ditto.
8512 (IX86_BUILTIN_COMLTPD): Ditto.
8513 (IX86_BUILTIN_COMLEPD): Ditto.
8514 (IX86_BUILTIN_COMGTPD): Ditto.
8515 (IX86_BUILTIN_COMGEPD): Ditto.
8516 (IX86_BUILTIN_COMUEQPD): Ditto.
8517 (IX86_BUILTIN_COMUNEPD): Ditto.
8518 (IX86_BUILTIN_COMULTPD): Ditto.
8519 (IX86_BUILTIN_COMULEPD): Ditto.
8520 (IX86_BUILTIN_COMUGTPD): Ditto.
8521 (IX86_BUILTIN_COMUGEPD): Ditto.
8522 (IX86_BUILTIN_COMORDPD): Ditto.
8523 (IX86_BUILTIN_COMUNORDPD): Ditto.
8524 (IX86_BUILTIN_COMFALSEPD): Ditto.
8525 (IX86_BUILTIN_COMTRUEPD): Ditto.
8526 (IX86_BUILTIN_PCOMEQUB): Ditto.
8527 (IX86_BUILTIN_PCOMNEUB): Ditto.
8528 (IX86_BUILTIN_PCOMLTUB): Ditto.
8529 (IX86_BUILTIN_PCOMLEUB): Ditto.
8530 (IX86_BUILTIN_PCOMGTUB): Ditto.
8531 (IX86_BUILTIN_PCOMGEUB): Ditto.
8532 (IX86_BUILTIN_PCOMFALSEUB): Ditto.
8533 (IX86_BUILTIN_PCOMTRUEUB): Ditto.
8534 (IX86_BUILTIN_PCOMEQUW): Ditto.
8535 (IX86_BUILTIN_PCOMNEUW): Ditto.
8536 (IX86_BUILTIN_PCOMLTUW): Ditto.
8537 (IX86_BUILTIN_PCOMLEUW): Ditto.
8538 (IX86_BUILTIN_PCOMGTUW): Ditto.
8539 (IX86_BUILTIN_PCOMGEUW): Ditto.
8540 (IX86_BUILTIN_PCOMFALSEUW): Ditto.
8541 (IX86_BUILTIN_PCOMTRUEUW): Ditto.
8542 (IX86_BUILTIN_PCOMEQUD): Ditto.
8543 (IX86_BUILTIN_PCOMNEUD): Ditto.
8544 (IX86_BUILTIN_PCOMLTUD): Ditto.
8545 (IX86_BUILTIN_PCOMLEUD): Ditto.
8546 (IX86_BUILTIN_PCOMGTUD): Ditto.
8547 (IX86_BUILTIN_PCOMGEUD): Ditto.
8548 (IX86_BUILTIN_PCOMFALSEUD): Ditto.
8549 (IX86_BUILTIN_PCOMTRUEUD): Ditto.
8550 (IX86_BUILTIN_PCOMEQUQ): Ditto.
8551 (IX86_BUILTIN_PCOMNEUQ): Ditto.
8552 (IX86_BUILTIN_PCOMLTUQ): Ditto.
8553 (IX86_BUILTIN_PCOMLEUQ): Ditto.
8554 (IX86_BUILTIN_PCOMGTUQ): Ditto.
8555 (IX86_BUILTIN_PCOMGEUQ): Ditto.
8556 (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
8557 (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
8558 (IX86_BUILTIN_PCOMEQB): Ditto.
8559 (IX86_BUILTIN_PCOMNEB): Ditto.
8560 (IX86_BUILTIN_PCOMLTB): Ditto.
8561 (IX86_BUILTIN_PCOMLEB): Ditto.
8562 (IX86_BUILTIN_PCOMGTB): Ditto.
8563 (IX86_BUILTIN_PCOMGEB): Ditto.
8564 (IX86_BUILTIN_PCOMFALSEB): Ditto.
8565 (IX86_BUILTIN_PCOMTRUEB): Ditto.
8566 (IX86_BUILTIN_PCOMEQW): Ditto.
8567 (IX86_BUILTIN_PCOMNEW): Ditto.
8568 (IX86_BUILTIN_PCOMLTW): Ditto.
8569 (IX86_BUILTIN_PCOMLEW): Ditto.
8570 (IX86_BUILTIN_PCOMGTW): Ditto.
8571 (IX86_BUILTIN_PCOMGEW): Ditto.
8572 (IX86_BUILTIN_PCOMFALSEW): Ditto.
8573 (IX86_BUILTIN_PCOMTRUEW): Ditto.
8574 (IX86_BUILTIN_PCOMEQD): Ditto.
8575 (IX86_BUILTIN_PCOMNED): Ditto.
8576 (IX86_BUILTIN_PCOMLTD): Ditto.
8577 (IX86_BUILTIN_PCOMLED): Ditto.
8578 (IX86_BUILTIN_PCOMGTD): Ditto.
8579 (IX86_BUILTIN_PCOMGED): Ditto.
8580 (IX86_BUILTIN_PCOMFALSED): Ditto.
8581 (IX86_BUILTIN_PCOMTRUED): Ditto.
8582 (IX86_BUILTIN_PCOMEQQ): Ditto.
8583 (IX86_BUILTIN_PCOMNEQ): Ditto.
8584 (IX86_BUILTIN_PCOMLTQ): Ditto.
8585 (IX86_BUILTIN_PCOMLEQ): Ditto.
8586 (IX86_BUILTIN_PCOMGTQ): Ditto.
8587 (IX86_BUILTIN_PCOMGEQ): Ditto.
8588 (IX86_BUILTIN_PCOMFALSEQ): Ditto.
8589 (IX86_BUILTIN_PCOMTRUEQ): Ditto.
8590 (enum multi_arg_type): New enum for describing the various SSE5
8591 intrinsic argument types.
8592 (bdesc_multi_arg): New table for SSE5 intrinsics.
8593 (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
8594 (ix86_expand_multi_arg_builtin): New function for creating SSE5
8595 intrinsics.
8596 (ix86_expand_builtin): Add SSE5 intrinsic support.
8597 (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
8598 operand instructions.
8599 (ix86_expand_sse5_multiple_memory): New function to split the
8600 second memory reference from SSE5 instructions.
8601 (type_has_variadic_args_p): Delete in favor of stdarg_p.
8602 (ix86_return_pops_args): Use stdarg_p to determine if the function
8603 has variable arguments.
8604 (ix86_setup_incoming_varargs): Ditto.
8605 (x86_this_parameter): Ditto.
8606
8607 * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
8608 declaration.
8609 (ix86_expand_sse5_pack): Ditto.
8610 (ix86_sse5_valid_op_p): Ditto.
8611 (ix86_expand_sse5_multiple_memory): Ditto.
8612
8613 * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
8614 constant for SSE5 support.
8615 (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
8616 (UNSPEC_SSE5_TRUEFALSE): Ditto.
8617 (UNSPEC_SSE5_PERMUTE): Ditto.
8618 (UNSPEC_SSE5_ASHIFT): Ditto.
8619 (UNSPEC_SSE5_LSHIFT): Ditto.
8620 (UNSPEC_FRCZ): Ditto.
8621 (UNSPEC_CVTPH2PS): Ditto.
8622 (UNSPEC_CVTPS2PH): Ditto.
8623 (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
8624 (PCOM_TRUE): Ditto.
8625 (COM_FALSE_S): Ditto.
8626 (COM_FALSE_P): Ditto.
8627 (COM_TRUE_S): Ditto.
8628 (COM_TRUE_P): Ditto.
8629 (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
8630 (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
8631 types.
8632 (memory attribute): Ditto.
8633 (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
8634 Use SSE4_1_ROUND_* constants instead of hard coded numbers.
8635 (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
8636 (floor<mode>2): Ditto.
8637 (ceil<mode>2): Ditto.
8638 (btrunc<mode>2): Ditto.
8639 (nearbyintdf2): Ditto.
8640 (nearbyintsf2): Ditto.
8641 (sse_setccsf): Disable if SSE5.
8642 (sse_setccdf): Ditto.
8643 (sse5_setcc<mode>): New support for SSE5 conditional move.
8644 (sse5_pcmov_<mode>): Ditto.
8645
8646 * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
8647 (SSEMODEF4): Ditto.
8648 (SSEMODEF2P): Ditto.
8649 (ssemodesuffixf4): New mode attribute for SSE5.
8650 (ssemodesuffixf2s): Ditto.
8651 (ssemodesuffixf2c): Ditto.
8652 (sserotatemax): Ditto.
8653 (ssescalarmode): Ditto.
8654 (sse_maskcmpv4sf3): Disable if SSE5.
8655 (sse_maskcmpv2df3): Ditto.
8656 (sse_vmmaskcmpv4sf3): Ditto.
2b3b22d3 8657 (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add instructions.
5c1a2bb1
JH
8658 (sse5_vmfmadd<mode>4): Ditto.
8659 (sse5_fmsub<mode>4): Ditto.
8660 (sse5_vmfmsub<mode>4): Ditto.
8661 (sse5_fnmadd<mode>4): Ditto.
8662 (sse5_vmfnmadd<mode>4): Ditto.
8663 (sse5_fnmsub<mode>4): Ditto.
8664 (sse5_vmfnmsub<mode>4): Ditto.
8665 (sse5i_fmadd<mode>4): Ditto.
8666 (sse5i_fmsub<mode>4): Ditto.
8667 (sse5i_fnmadd<mode>4): Ditto.
8668 (sse5i_fnmsub<mode>4): Ditto.
8669 (sse5i_vmfmadd<mode>4): Ditto.
8670 (sse5i_vmfmsub<mode>4): Ditto.
8671 (sse5i_vmfnmadd<mode>4): Ditto.
8672 (sse5i_vmfnmsub<mode>4): Ditto.
8673 (mulv16qi3): Add SSE5 support.
8674 (mulv4si3): Ditto.
8675 (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
8676 (sse2_mulv4si3): Disable if SSE5.
8677 (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
8678 (sse4_1_roundps): Ditto.
8679 (sse4_1_roundsd): Ditto.
8680 (sse4_1_roundss): Ditto.
8681 (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
8682 be generated.
8683 (sse_maskcmpsf3): Ditto.
8684 (sse_vmmaskcmpv4sf3): Ditto.
8685 (sse2_maskcmpv2df3): Ditto.
8686 (sse2_maskcmpdf3): Ditto.
8687 (sse2_vmmaskcmpv2df3): Ditto.
8688 (sse2_eq<mode>3): Ditto.
8689 (sse2_gt<mode>3): Ditto.
8690 (sse5_pcmov_<mode>): Add SSE5 support.
8691 (vec_unpacku_hi_v16qi): Ditto.
8692 (vec_unpacks_hi_v16qi): Ditto.
8693 (vec_unpacku_lo_v16qi): Ditto.
8694 (vec_unpacks_lo_v16qi): Ditto.
8695 (vec_unpacku_hi_v8hi): Ditto.
8696 (vec_unpacks_hi_v8hi): Ditto.
8697 (vec_unpacku_lo_v8hi): Ditto.
8698 (vec_unpacks_lo_v8hi): Ditto.
8699 (vec_unpacku_hi_v4si): Ditto.
8700 (vec_unpacks_hi_v4si): Ditto.
8701 (vec_unpacku_lo_v4si): Ditto.
8702 (vec_unpacks_lo_v4si): Ditto.
8703 (sse5_pmacsww): New SSE5 intrinsic insn.
8704 (sse5_pmacssww): Ditto.
8705 (sse5_pmacsdd): Ditto.
8706 (sse5_pmacssdd): Ditto.
8707 (sse5_pmacssdql): Ditto.
8708 (sse5_pmacssdqh): Ditto.
8709 (sse5_pmacsdqh): Ditto.
8710 (sse5_pmacsswd): Ditto.
8711 (sse5_pmacswd): Ditto.
8712 (sse5_pmadcsswd): Ditto.
8713 (sse5_pmadcswd): Ditto.
8714 (sse5_pcmov_<move>): Conditional move support on SSE5.
8715 (sse5_phaddbw): New SSE5 intrinsic insn.
8716 (sse5_phaddbd): Ditto.
8717 (sse5_phaddbq): Ditto.
8718 (sse5_phaddwd): Ditto.
8719 (sse5_phaddwq): Ditto.
8720 (sse5_phadddq): Ditto.
8721 (sse5_phaddubw): Ditto.
8722 (sse5_phaddubd): Ditto.
8723 (sse5_phaddubq): Ditto.
8724 (sse5_phadduwd): Ditto.
8725 (sse5_phadduwq): Ditto.
8726 (sse5_phaddudq): Ditto.
8727 (sse5_phsubbw): Ditto.
8728 (sse5_phsubwd): Ditto.
8729 (sse5_phsubdq): Ditto.
8730 (sse5_pperm): Ditto.
8731 (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
8732 (sse5_pperm_zero_v16qi_v8hi): Ditto.
8733 (sse5_pperm_sign_v8hi_v4si): Ditto.
8734 (sse5_pperm_zero_v8hi_v4si): Ditto.
8735 (sse5_pperm_sign_v4si_v2di): Ditto.
8736 (sse5_pperm_sign_v4si_v2di): Ditto.
8737 (sse5_pperm_pack_v2di_v4si): Ditto.
8738 (sse5_pperm_pack_v4si_v8hi): Ditto.
8739 (sse5_pperm_pack_v8hi_v16qi): Ditto.
8740 (sse5_perm<mode>): New SSE5 intrinsic insn.
8741 (rotl<mode>3): Ditto.
8742 (sse5_rotl<mode>3): Ditto.
8743 (sse5_ashl<mode>3): Ditto.
8744 (sse5_lshl<mode>3): Ditto.
8745 (sse5_frcz<mode>2): Ditto.
8746 (sse5s_frcz<mode>2): Ditto.
8747 (sse5_cvtph2ps): Ditto.
8748 (sse5_cvtps2ph): Ditto.
8749 (sse5_vmmaskcmp<mode>3): Ditto.
8750 (sse5_com_tf<mode>3): Ditto.
8751 (sse5_maskcmp<mode>3): Ditto.
8752 (sse5_maskcmp_uns<mode>3): Ditto.
8753 (sse5_maskcmp_uns2<mode>3): Ditto.
8754 (sse5_pcom_tf<mode>3): Ditto.
7b3d1847
UB
8755
8756 * config/i386/predicates.md (sse5_comparison_float_operator):
8757 New predicate to match the comparison operators supported by
8758 the SSE5 com instruction.
5c1a2bb1
JH
8759 (ix86_comparison_int_operator): New predicate to match just the
8760 signed int comparisons.
8761 (ix86_comparison_uns_operator): New predicate to match just the
8762 unsigned int comparisons.
8763
8764 * doc/invoke.texi (-msse5): Add documentation.
8765 (-mfused-madd): Ditto.
8766
8767 * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
8768
8769 * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
8770 mmintrin-common.h.
8771 (x86_64-*-*): Ditto.
8772
8773 * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
8774
8775 * config/i386/bmmintrin.h: New file, provide common x86 compiler
8776 intrinisics for SSE5.
8777
8778 * config/i386/smmintrin.h: Move instructions shared with SSE5 to
8779 mmintrin-common.h.
8780
8781 * config/i386/mmintrin-common.h: New file, to contain common
8782 instructions between SSE4.1 and SSE5.
8783
8784 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
8785 FOREACH_FUNCTION_ARGS to iterate over the argument list.
8786 (gen_regparm_prefix): Ditto.
8787
8788 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
8789 FOREACH_FUNCTION_ARGS to iterate over the argument list. Use
8790 prototype_p to determine if a function is prototyped.
8791
f4e8a943
VV
87922009-08-25 Ville Voutilainen <ville.voutilainen@gmail.com>
8793
8794 * c-common.c (c_common_reswords) add the alignof keyword,
8795 with same RID as __alignof and __alignof__
8796
7b5cbb57
AS
87972009-08-25 Anatoly Sokolov <aesok@post.ru>
8798
8799 * hooks.h (hook_bool_const_int_const_int_true): Declare.
8800 * hooks.c (hook_bool_const_int_const_int_true): New function.
8801 * target.h (struct gcc_target): Add can_eliminate field.
8802 * target-def.h (TARGET_CAN_ELIMINATE): Define.
8803 (TARGET_INITIALIZER): Use TARGET_CAN_ELIMINATE.
8804 * ira.c (setup_eliminable_regset): Use can_eliminate target hook.
8805 * reload1.c (update_eliminables, init_elim_table): (Ditto.).
8806 (elim_table): Revise comment.
8807 * system.h (CAN_ELIMINATE): Poison.
8808 * defaults.h (CAN_ELIMINATE): Remove.
8809 * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
8810
8811 * config/alpha/vms.h (CAN_ELIMINATE): Remove macro.
8812 * config/alpha/alpha.c (TARGET_CAN_ELIMINATE) [TARGET_ABI_OPEN_VMS]:
8813 Define macro.
8814 (alpha_vms_can_eliminate): Declare as static, change return type to
8815 bool.
8816 * config/alpha/alpha-protos.h (alpha_vms_can_eliminate): Remove.
8817
8818 * config/arm/arm.h (CAN_ELIMINATE): Remove macro.
8819 * config/arm/arm.c (TARGET_CAN_ELIMINATE): Define macro.
8820 (arm_can_eliminate): New function.
8821
8822 * config/avr/avr.h (CAN_ELIMINATE): Remove macro.
8823 * config/avr/avr.c (TARGET_CAN_ELIMINATE): Define macro.
8824 (avr_can_eliminate): Declare as static.
8825 * config/avr/avr-protos.h (avr_can_eliminate): Remove.
8826
8827 * config/bfin/bfin.h (CAN_ELIMINATE): Remove macro.
8828 * config/bfin/bfin.c (TARGET_CAN_ELIMINATE): Define macro.
8829 (bfin_can_eliminate): New function.
8830
8831 * config/crx/crx.h (CAN_ELIMINATE): Remove macro.
8832 * config/crx/crx.c (TARGET_CAN_ELIMINATE): Define macro.
8833 (crx_can_eliminate): New function.
7b3d1847 8834
7b5cbb57
AS
8835 * config/fr30/fr30.h (CAN_ELIMINATE): Remove macro.
8836 * config/fr30/fr30.c (TARGET_CAN_ELIMINATE): Define macro.
8837 (fr30_can_eliminate): New function.
8838
8839 * config/frv/frv.h (CAN_ELIMINATE): Remove macro.
8840 * config/frv/frv.c (TARGET_CAN_ELIMINATE): Define macro.
8841 (frv_can_eliminate): New function.
8842
8843 * config/h8300/h8300.h (CAN_ELIMINATE): Remove macro.
8844 * config/h8300/h8300.c (TARGET_CAN_ELIMINATE): Define macro.
8845 (h8300_can_eliminate): New function.
8846
8847 * config/i386/i386.h (CAN_ELIMINATE): Remove macro.
8848 * config/i386/i386.c (TARGET_CAN_ELIMINATE): Define macro.
8849 (i386_can_eliminate): Declare as static, change return type to bool.
8850 * config/i386/i386-protos.h (i386_can_eliminate): Remove.
8851
8852 * config/ia64/ia64.h (CAN_ELIMINATE): Remove macro.
8853 * config/ia64/ia64.c (TARGET_CAN_ELIMINATE): Define macro.
8854 (ia64_can_eliminate): New function.
8855
8856 * config/iq2000/iq2000.h (CAN_ELIMINATE): Remove macro.
8857 * config/iq2000/iq2000.c (TARGET_CAN_ELIMINATE): Define macro.
8858 (iq2000_can_eliminate): New function.
8859
8860 * config/m32r/m32r.h (CAN_ELIMINATE): Remove macro.
8861 * config/m32r/m32r.c (TARGET_CAN_ELIMINATE): Define macro.
8862 (m32r_can_eliminate): New function.
8863
8864 * config/m68hc11/m68hc11.h (CAN_ELIMINATE): Remove macro.
8865 * config/m68hc11/m68hc11.c (TARGET_CAN_ELIMINATE): Define macro.
8866 (m68hc11_can_eliminate): New function.
8867
8868 * config/m68k/m68k.h (CAN_ELIMINATE): Remove macro.
8869 * config/m68k/m68k.c (TARGET_CAN_ELIMINATE): Define macro.
8870 (m68k_can_eliminate): New function.
8871
8872 * config/mep/mep.h (CAN_ELIMINATE): Remove macro.
8873 * config/mep/mep.c (TARGET_CAN_ELIMINATE): Define macro.
8874 (mep_can_eliminate): New function.
8875
8876 * config/mips/mips.h (CAN_ELIMINATE): Remove macro.
8877 * config/mips/mips.c (TARGET_CAN_ELIMINATE): Define macro.
8878 (mips_can_eliminate): New function.
8879
8880 * config/rs6000/rs6000.h (CAN_ELIMINATE): Remove macro.
8881 * config/rs6000/rs6000.c (TARGET_CAN_ELIMINATE): Define macro.
8882 (rs6000_can_eliminate): New function.
8883
8884 * config/s390/s390.h (CAN_ELIMINATE): Remove macro.
8885 * config/s390/s390.c (TARGET_CAN_ELIMINATE): Define macro.
8886 (s390_can_eliminate): Declare as static.
8887 * config/s390/s390-protos.h (sparc_can_eliminate): Remove.
8888
8889 * config/score/score.h (CAN_ELIMINATE): Remove macro.
8890 * config/score/score.c (TARGET_CAN_ELIMINATE): Define macro.
8891 (score_can_eliminate): New function.
8892
8893 * config/sparc/sparc.h (CAN_ELIMINATE): Remove macro.
8894 * config/sparc/sparc.c (TARGET_CAN_ELIMINATE): Define macro.
8895 (sparc_can_eliminate): Declare as static.
8896 * config/sparc/sparc-protos.h (sparc_can_eliminate): Remove.
8897
8898 * config/stormy16/stormy16.h (CAN_ELIMINATE): Remove macro.
8899 * config/stormy16/stormy16.c (TARGET_CAN_ELIMINATE): Define macro.
8900 (xstormy16_can_eliminate): New function.
8901
8902 * config/v850/v850.h (CAN_ELIMINATE): Remove macro.
8903 * config/v850/v850.c (TARGET_CAN_ELIMINATE): Define macro.
8904 (v850_can_eliminate): New function.
8905
e7f8fba9
UB
89062009-08-25 Uros Bizjak <ubizjak@gmail.com>
8907
8908 * config/alpha/alpha.md (*cmpdf_ieee_ext[123]): Remove.
8909 (*cmpdf_internal): Enable for all ALPHA_FPTM levels.
8910 (*movdfcc_ext[1234]): Disable for IEEE mode.
8911
f76d6e6f
EB
89122009-08-25 Eric Botcazou <ebotcazou@adacore.com>
8913
8914 * gimplify.c (prepare_gimple_addressable): New static function.
8915 (gimplify_modify_expr_to_memcpy): Invoke it on the RHS before marking
8916 it addressable.
8917 (gimplify_addr_expr): Invoke it similarly on the operand instead of
8918 manually fiddling with it.
8919
4df62c77
MM
89202009-08-25 Michael Matz <matz@suse.de>
8921
8922 * expr.h (jumpifnot_1, jumpif_1, do_jump_1): Declare.
8923 * dojump.c (do_jump_by_parts_greater): Take two operands instead of
8924 full expression.
8925 (do_jump_by_parts_equality, do_compare_and_jump): Ditto.
8926 (jumpifnot_1, jumpif_1): New wrappers for do_jump_1.
8927 (do_jump): Split out code for simple binary comparisons into ...
8928 (do_jump_1): ... this, taking the individual operands and code.
8929 Change callers to helper function above accordingly.
8930 * expr.c (expand_expr_real_1): Use jumpifnot_1 for simple binary
8931 comparisons.
8932
8e7aa1f9
MM
89332009-08-25 Michael Matz <matz@suse.de>
8934
8935 * expr.h (struct separate_ops, sepops): New type for passing
8936 around an exploded simple expression.
8937 * optabs.c (expand_widen_pattern_expr, expand_vec_shift_expr):
8938 Use this structure instead of expression tree.
8939 (get_vcond_icode, expand_vec_cond_expr_p): Don't take whole
8940 expression, only its type.
8941 (expand_vec_cond_expr): Take type and individual operands instead
8942 of full expression.
8943 * optabs.h (expand_widen_pattern_expr, expand_vec_cond_expr,
8944 expand_vec_shift_expr): Change prototype accordingly.
8945 * tree-vect-stmts.c (vectorizable_condition): Change call of
8946 expand_vec_cond_expr_p to pass only type.
8947 * expr.c (do_store_flags): Change prototype and implementation
8948 to take an exploded expression.
8949 (expand_expr_real_1): New local ops initialized with details
8950 of the full expression. Use it instead of full
8951 expression in calls to do_store_flags, expand_vec_cond_expr,
8952 expand_widen_pattern_expr and expand_vec_shift_expr.
8953
b32e7cdb
MM
89542009-08-25 Michael Matz <matz@suse.de>
8955
8956 * expr.c (expand_expr_real_1): New local treeop0, treeop1,
8957 treeop2 initialized with first three operands of the full expression.
8958 Substitute all TREE_OPERAND (exp, [012]) calls with them.
8959
ce4a9de3
KT
89602009-08-25 Kai Tietz <kai.tietz@onevision.com>
8961
8962 * gcc/gthr-win32.h (__UNUSED_PARAM): Define, if not already present.
8963 (__gthread_objc_condition_allocate): Mark arguments as unused.
8964 (__gthread_objc_condition_deallocate): Likewise.
8965 (__gthread_objc_condition_wait): Likewise.
8966 (__gthread_objc_condition_broadcast): Likewise.
8967 (__gthread_objc_condition_signal): Likewise.
8968 (__gthread_objc_thread_detach): Cast via INT_PTR to pointer.
8969 (__gthread_objc_thread_id): Likewise.
8970
d69b8a03
JW
89712009-08-25 Janus Weil <janus@gcc.gnu.org>
8972
8973 PR middle-end/41149
8974 * tree-pretty-print.c (print_call_name): Print the correct call name
8975 for procedure pointer components.
8976
c3313412
SE
89772009-08-24 Steve Ellcey <sje@cup.hp.com>
8978
8979 * config/ia64/ia64.c (ia64_promote_function_mode): Call
8980 default_promote_function_mode when not VMS.
8981
c767899e
OH
89822009-08-24 Olivier Hainque <hainque@adacore.com>
8983
8984 * convert.c (convert_to_integer): Don't assume an input pointer is
8985 POINTER_SIZE wide. Fetch from the type instead.
8986
df58e648
RW
89872009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8988
8989 * configure.ac (AC_PREREQ): Bump to 2.64.
8990
2ef4a8e1
RAE
89912009-08-24 Rafael Avila de Espindola <espindola@google.com>
8992
8993 * gcc.c (standard_exec_prefix_1,standard_exec_prefix_2): Remove.
8994 (process_command): Don't search standard_exec_prefix_1 and
8995 standard_exec_prefix_2.
8996
c7e9ab97
RR
89972009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8998
7b3d1847
UB
8999 * config/arm/arm.c (output_return_instruction): Handle for
9000 unified syntax.
c7e9ab97 9001
3e2d9dcf
RR
90022009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9003
7b3d1847 9004 * config/arm/arm.c (arm_select_cc_mode): Handle subreg.
3e2d9dcf 9005
54f52b81
RR
90062009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9007
7b3d1847
UB
9008 * config/arm/vfp.md (*arm_movdi_vfp): Mark as predicable.
9009 (*arm_movdf_vfp): Likewise.
54f52b81 9010
d44463a9
RR
90112009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9012
7b3d1847
UB
9013 * config/arm/neon.md (vashl<mode>3): Rename from ashl<mode>3.
9014 (vashr<mode>3): Rename from ashr<mode>3.
9015 (vlshr<mode>3): Rename from lshr<mode>3.
d44463a9 9016
b241b475
KT
90172009-08-24 Kai Tietz <kai.tietz@onevision.com>
9018
9019 PR/40786
5fa162c0 9020 * c-format.c (format_wanted_type): Add new member scalar_identity_flag.
b241b475
KT
9021 (check_format_info_main): Use scalar_identify_flag.
9022 (check_format_types): Check for scalar size identity if
9023 scalar_identify_flag is set.
9024 (printf_length_specs): Extend by new field.
9025 (asm_fprintf_length_specs): Likewise.
9026 (gcc_diag_length_specs): Likewise.
9027 (scanf_length_specs): Likewise.
9028 (strfmon_length_specs): Likewise.
9029 (gcc_gfc_length_specs): Likewise.
9030 * config/i386/msformat-c.c (ms_printf_length_specs): Likewise.
9031 (ms_printf_flag_specs): Likewise.
9032 * c-format.h (format_length_info): Add new member scalar_identity_flag.
9033
8c40d061
UB
90342009-08-23 Uros Bizjak <ubizjak@gmail.com>
9035
9036 PR target/40718
9037 * config/i386/i386.c (*call_pop_1): Disable for sibling calls.
fe62197b 9038 (*call_value_pop_1): Ditto.
8c40d061 9039 (*sibcall_pop_1): New insn pattern.
fe62197b 9040 (*sibcall_value_pop_1): Ditto.
8c40d061 9041
0aa580f4
AM
90422009-08-23 Alan Modra <amodra@bigpond.net.au>
9043
9044 PR target/41081
9045 * config/rs6000/rs6000.md (rotlsi3_64, ashlsi3_64, lshrsi3_64,
9046 ashrsi3_64): New.
9047
e25b7843
AM
90482009-08-23 Alan Modra <amodra@bigpond.net.au>
9049
9050 PR target/41081
9051 * fwprop.c (try_fwprop_subst): Allow multiple sets.
9052 (get_reg_use_in): New function.
9053 (forward_propagate_subreg): Propagate through subreg of zero_extend
9054 or sign_extend.
9055
79052be3
KK
90562009-08-22 Kaz Kojima <kkojima@gcc.gnu.org>
9057
9058 * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS): Define.
9059 * config/sh/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -mieee.
9060
5213506e
RW
90612009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9062
70fa0efa
RW
9063 * configure.ac: Remove --with-datarootdir, --with-docdir,
9064 --with-htmldir switches. No need to call AC_SUBST for
9065 datarootdir, docdir, htmldir any more.
9066 * configure: Regenerate.
9067 * doc/install.texi (Configuration): Document --datarootdir,
9068 --docdir, --htmldir, --pdfdir; update documentation for
9069 --infodir, --mandir.
e7f8fba9
UB
9070 (Prerequisites): Bump Autoconf version to 2.64, Automake to 1.11,
9071 M4 to 1.4.6.
70fa0efa 9072
5213506e
RW
9073 * aclocal.m4: Regenerate.
9074 * config.in: Regenerate.
9075 * configure: Regenerate.
9076
f2972bf8
DR
90772009-08-21 Douglas B Rupp <rupp@gnat.com>
9078 Olivier Hainque <hainque@adacore.com>
9079
9080 * config/ia64/ia64.c: Include libfuncs.h.
9081 (TARGET_PROMOTE_FUNCITON_MODE): Define target macro.
9082 (ia64_expand_call): Use reg 25 on VMS.
9083 (ia64_initialize_trampoline): Fix for VMS ABI.
9084 (ia64_function_arg_offset): Always returns 0 when TARGET_ABI_OPEN_VMS.
9085 (ia64_function_arg): Initialize reg 25 on VMS.
9086 Fix OpenVMS ABI issues for varargs.
9087 For OpenVMS, emit the Argument Information register set in the
9088 incoming/sibcall case as well.
9089 (ia64_arg_type): New function.
9090 (ia64_function_arg_advance): Keep track of cum->words.
9091 Fix OpenVMS ABI issues for varargs.
9092 (ia64_function_value): On VMS, promote mode of non-aggregate types.
9093 (ia64_override_options): Set flag_no_common on VMS.
9094 (ia64_init_builtins): Disable FWRITE builtin.
9095 (ia64_asm_output_external): Call DO_CRTL_NAMES.
9096 (ia64_vms_init_libfuncs): Add decc$ routines.
9097 (ia64_vms_valid_pointer_mode): New function.
9098 (ia64_struct_value_rtx): Allways NULL_RTX on VMS.
9099 (ia64_promote_function_mode): New function
9100 * config/ia64/ia64.h (TARGET_ABI_OPEN_VMS): Define as 0 for default.
9101 (LONG_DOUBLE_TYPE_SIZE): Force to 64 on VMS.
9102 (LIBCGC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
9103 (INIT_CUMULATIVE_ARGS): Add atypes for VMS.
9104 (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
9105 (ASM_OUTPUT_DEF): Use ISDIGIT instead of isdigit.
9106 Suppress trailing '#' if VALUE is numeric.
9107 * config/ia64/vms.h (PROMOTE_FUNCTION_MODE): Remove, code moved to
9108 ia64_promote_function_mode.
9109 (TARGET_VALID_POINTER_MODE): Define.
9110
30402573
MM
91112009-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9112
9113 PR target/40671
9114 * config/rs6000/rs6000.c (rs6000_override_options): Use
8c40d061 9115 TARGET_64BIT instead of TARGET_POWERPC64 to set the size of pointers.
30402573
MM
9116
9117 PR target/41145
9118 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Fix
c89f5009 9119 reporting of vector + decimal/boolean/complex error.
30402573 9120
08ffd640
JJ
91212009-08-21 Jakub Jelinek <jakub@redhat.com>
9122
9123 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix type of
9124 __vector double TYPE_DECL.
9125
46107b99
RE
91262009-08-21 Richard Earnshaw <rearnsha@arm.com>
9127
9128 * arm.h (MACHMODE): New define. Include insn-modes.h if available.
9129 (CUMULATIVE_ARGS): Use MACHMODE for declaration of aapcs_vfp_mode.
9130 * arm.c (aapcs_vfp_is_call_or_return_candidate): Change base_mode
9131 to pointer to enum machine_mode. Update all callers as needed.
9132
7450a081
UB
91332009-08-21 Uros Bizjak <ubizjak@gmail.com>
9134
9135 * config/alpha/alpha.md (exception_receiver): Emit alternative
9136 GP load sequence if flag_reorder_blocks_and_partition is set.
9137 (*exception_receiver_2): Also enable when
9138 flag_reorder_blocks_and_partition is set.
9139
6d383c5e
MR
91402009-08-20 Matt Rice <ratmice@gmail.com>
9141 Diego Novillo <dnovillo@google.com>
9142
9143 * Makefile.in (PLUGIN_HEADERS): Include incpath.h and
9144 tree-ssa-sccvn.h.
9145
29cc57cf
RG
91462009-08-20 Richard Guenther <rguenther@suse.de>
9147
8c40d061 9148 * c-objc-common.h (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Do not define.
29cc57cf
RG
9149 * c-tree.h (c_dup_lang_specific_decl): Remove.
9150 (struct lang_decl, struct lang_type): Move definitions ...
9151 * c-lang.h: ... here. New file.
9152 * c-decl.c: Include c-lang.h.
9153 (c_dup_lang_specific_decl): Remove.
9154 * c-typeck.c: Include c-lang.h.
9155 * Makefile.in (c-decl.o): Add c-lang.h dependency.
9156 (c-typeck.o): Likewise.
9157 * c-config-lang.in (gtfiles): Add c-lang.h.
9158 * gengtype.c (get_output_file_with_visibility): Handle c-lang.h
9159 like c-tree.h.
9160
7e9f2c0f
UB
91612009-08-20 Uros Bizjak <ubizjak@gmail.com>
9162
9163 * config/alpha/alpha.c (alpha_end_function): Do not clear
9164 crtl->emit structure and free insn locators if cfun->is_thunk is true,
9165 this is now handled in generic code.
9166
b0f86a7e
AK
91672009-08-20 Andreas Krebbel <krebbel1@de.ibm.com>
9168
9169 * config/s390/s390.c (Z10_PREDICT_DISTANCE): New macro.
9170 (s390_z10_fix_long_loop_prediction): New function.
9171 (s390_z10_optimize_cmp): INSN walk moved to callee - s390_reorg.
9172 (s390_reorg): Walk over the INSNs and invoke
9173 s390_z10_fix_long_loop_prediction and s390_z10_optimize_cmp.
9174
f1149235
AK
91752009-08-20 Andreas Krebbel <krebbel1@de.ibm.com>
9176
9177 * config/s390/s390.md ("*brx_stage1_<GPR:mode>", "*brxg_64bit",
9178 "*brx_64bit", "*brx_31bit"): New patterns.
9179 * config/s390/s390.c ('E'): New output modifier.
9180
a552b644 91812009-08-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7e9f2c0f 9182 Richard Earnshaw <richard.earnshaw@arm.com>
a552b644 9183
7e9f2c0f
UB
9184 * config/arm/arm.c (arm_emit_movpair): Handle CONST_INT.
9185 * config/arm/arm.md (*arm_movtas_ze): New pattern for movt.
a552b644 9186
2fd74bff
JDA
91872009-08-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9188
9189 * pa.md (reload_inhi, reload_outhi, reload_inqi, reload_outqi): New
9190 patterns.
9191 * pa.c (emit_move_sequence): Check if address of operand1 is valid
9192 for mode mode of operand0 when doing secondary reload for SAR.
9193
b8e444f4
JJ
91942009-08-19 Jakub Jelinek <jakub@redhat.com>
9195
9196 PR middle-end/41123
9197 * expr.c (expand_expr_real_1) <normal_inner_ref>: Handle all kinds
9198 of CONCAT, not just bitpos 0 bitsize size of the whole CONCAT.
9199
6c879482
JM
92002009-08-19 Jason Merrill <jason@redhat.com>
9201
9202 * doc/invoke.texi (C++ Dialect Options): Note change of minimum
9203 supported template depth in C++0x.
9204
dc0c6451
JJ
92052009-08-19 Jakub Jelinek <jakub@redhat.com>
9206
9207 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call
9208 free_after_compilation.
9209 * config/score/score7.c (score7_output_mi_thunk): Likewise.
9210 * config/score/score3.c (score3_output_mi_thunk): Likewise.
9211 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
9212 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
9213 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
9214 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
9215 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
9216
9302a061
ILT
92172009-08-19 Ian Lance Taylor <iant@google.com>
9218
9219 * doc/md.texi (Insn Canonicalizations): Correct canonicalization
9220 of (plus (mult (neg B) C) A).
9221
9600efe1
MM
92222009-08-18 Michael Matz <matz@suse.de>
9223
9224 * omp-low.c (optimize_omp_library_calls): Use types_compatible_p
9225 instead of comparing TYPE_MAIN_VARIANT for equality.
9226 * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
9227 vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto.
9228 * tree-vect-loop.c (vect_is_simple_reduction): Ditto.
9229 * gimplify.c (goa_lhs_expr_p): Ditto and use
9230 STRIP_USELESS_TYPE_CONVERSION.
9231
10174ddf
MM
92322009-08-18 Michael Matz <matz@suse.de>
9233
9234 * tree-ssa-structalias.c (create_variable_info_for): Also mark
9235 first field in a struct.
9236 (intra_create_variable_infos): Don't deal with flag_argument_noalias.
9237
e72cee90
UB
92382009-08-18 Uros Bizjak <ubizjak@gmail.com>
9239
9240 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
9241 locators before emit_insn is called. Remove assert that
9242 cfun->is_thunk.
9243 (alpha_end_function): Clear crtl->emit structure and free insn
9244 locators if cfun->is_thunk is true.
9245
e31bcd1b
JM
92462009-08-18 Jason Merrill <jason@redhat.com>
9247
9248 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
9249 type if available.
9250 * configure.ac: Test for it.
9251 * configure, config.in: Regenerate.
9252 * doc/install.texi: Document --enable-gnu-unique-object.
9253
776e7174
RG
92542009-08-18 Richard Guenther <rguenther@suse.de>
9255
9256 PR middle-end/41094
9257 * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
9258 pow(x,y*z) only if x is nonnegative.
9259
68a31530
JJ
92602009-08-18 Jakub Jelinek <jakub@redhat.com>
9261
9262 * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
9263 on jumps.
9264
f3252b3c
JJ
9265 PR target/40971
9266 * config/rs6000/rs6000.c (rs6000_legitimize_address): For
9267 [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.
9268
65655f79
DD
92692009-08-17 DJ Delorie <dj@redhat.com>
9270
9271 * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
9272 * config/m32c/prologue.md (epilogue_freit): New.
9273 (fset_b): New.
9274 * config/m32c/m32c.c (m32c_function_needs_enter): Add prototype.
9275 (bank_switch_p): Likewise.
9276 (fast_interrupt_p): Likewise.
9277 (interrupt_p): Likewise.
9278 (m32c_conditional_register_usage): Round memregs size up.
9279 (need_to_save): We only need to save $a0 when we use ENTER.
9280 (interrupt_p): Check for fast_interrupt too.
9281 (bank_switch_p): New.
9282 (fast_interrupt_p): New.
9283 (m32c_attribute_table): Add bank_switch and fast_interrupt.
9284 (m32c_emit_prolog): Support bank switching and fast interrupts.
9285 * doc/extend.texi (Function Attributes): Add bank_switch and
9286 fast_interrupt.
9287
dfe6ba6d
DR
92882009-08-17 Douglas B Rupp <rupp@gnat.com>
9289
9290 * config/alpha/alpha.c (vms_valid_pointer_mode): New function.
9291 * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.
9292
dcad28fd
DR
92932009-08-16 Douglas B Rupp <rupp@gnat.com>
9294
8c40d061 9295 * doc/invoke.texi (Target options): Add new option list for IA-64/VMS.
dcad28fd
DR
9296 (menu): Add IA-64/VMS Options.
9297 (IA-64/VMS Options): Likewise.
9298
30fff3d8
RS
92992009-08-16 Richard Sandiford <rdsandiford@googlemail.com>
9300
9301 PR target/38599
9302 * config/mips/mips.md (*lwxs): Use :P for pointer values.
9303
cf5fb4b0
RS
93042009-08-16 Richard Sandiford <rdsandiford@googlemail.com>
9305
9306 * config/mips/mips-protos.h (mips_push_asm_switch): New function.
9307 (mips_pop_asm_switch): Likewise.
9308 * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
9309 with...
9310 (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
9311 (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
9312 (mips_push_asm_switch, mips_pop_asm_switch): Likewise.
9313 (mips_print_operand_punctuation): Use them. Check mips_noreorder
9314 instead of set_noreorder.
9315 (mips_output_function_prologue): Use the new functions.
9316 (mips_output_function_epilogue): Likewise.
9317 (mips_need_noat_wrapper_p): New function, split out from...
9318 (mips_final_prescan_insn, mips_final_postscan_insn): ...here.
9319 Use mips_push_asm_switch and mips_pop_asm_switch.
9320 * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
9321 and mips_pop_asm_switch.
9322 (ASM_OUTPUT_REG_POP): Likewise.
9323 (DBR_OUTPUT_SEQEND): Remove boilerplate comment.
9324 Use mips_pop_asm_switch.
9325 (mips_asm_switch): New structure.
9326 (set_noreorder, set_nomacro): Replace with...
9327 (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
9328 * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
9329 instead of set_nomacro.
9330 (fix_truncsfsi2_macro): Likewise.
9331 (cprestore): Likewise.
9332 (hazard): Use mips_noreorder instead of set_noreorder.
9333 * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
9334
3eb96d01
UB
93352009-08-16 Uros Bizjak <ubizjak@gmail.com>
9336
8a067ce4 9337 * config/alpha/alpha.c (alpha_end_function): Handle NULL_RTX returned
3eb96d01
UB
9338 from prev_active_insn.
9339
164709cf
AS
93402009-08-16 Anatoly Sokolov <aesok@post.ru>
9341
9342 * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
9343 * config/avr/avr.c (avr_override_options): Initialize
9344 avr_current_arch variable.
9345 (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
9346 __AVR_HAVE_16BIT_SP__ according to the device type.
9347 (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
9348 TARGET_TINY_STACK.
9349 (expand_epilogue): Use correct QI mode frame pointer for tiny stack.
9350 Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.
9351
5782bb7a
DS
93522009-08-16 Dodji Seketeli <dodji@redhat.com>
9353
52ac997d 9354 PR debug/37801
5782bb7a
DS
9355 * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on
9356 generating inlined subroutine die only. We shouldn't be
9357 called for anything else.
9358 (gen_block_die): Don't generate inline subroutine debug info for
9359 abstract blocks.
9360
07636543
SP
93612009-08-15 Sebastian Pop <sebastian.pop@amd.com>
9362
9363 * graphite-poly.c (print_pbb): Print PBB index.
9364
f263917c
SP
93652009-08-15 Sebastian Pop <sebastian.pop@amd.com>
9366
9367 PR middle-end/40981
9368 * graphite-interchange.c (ppl_max_for_le): Moved...
9369 * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
9370 * graphite-ppl.c (ppl_max_for_le): ... here. Correct the use of
9371 ppl_Pointset_Powerset_C_Polyhedron_maximize.
9372 * graphite-ppl.h (ppl_max_for_le): Declared.
9373
c54d7dc9
OR
93742009-08-14 Olatunji Ruwase <tjruwase@google.com>
9375
9376 * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
9377 supported on all platforms.
8c40d061
UB
9378 * target.h (struct gcc_target): Remove handle_pragma_redefine_extname.
9379 * c-cppbuiltin.c: Remove use of targetm.handle_pragma_redefine_extname.
c54d7dc9
OR
9380 * c-pragma.c: Likewise.
9381 * target-def.h (TARGET_INITIALIZER): Remove
9382 TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
8c40d061 9383 * config/sol2.h: Remove use of TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
c54d7dc9 9384
b874a90d
DR
93852009-08-14 Douglas B Rupp <rupp@gnat.com>
9386
9387 * config/ia64/fde-vms.c: New file.
9388 * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg.
9389 * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h
9390 (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default.
9391 (uw_frame_state_for): Only register a personality routine if it is
9392 known to be compatible with our expectations.
9393 (_Unwind_FindEnclosingFunction, uw_frame_state_for):
9394 Declare unw_table_entry stack variable and
9395 mod all calls to _Unwind_FindTableEntry to add arg.
9396 * config/ia64/unwind-ia64.h (UNW_ accessors): Move here.
9397 (_Unwind_FindTableEntry): Add arg to prototype.
9398
ac77b88e
EB
93992009-08-14 Eric Botcazou <ebotcazou@adacore.com>
9400
9401 * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new
9402 field 'signal_pfs_loc'.
9403 (uw_frame_state_for): Remove duplicate code dealing with leaf
9404 procedures without unwind info.
9405 If in the frame after unwinding through a signal handler, restore
9406 the AR.PFS register instead of the CFM if AR.PFS has not been saved.
9407 * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set
9408 'pfs_loc' to the AR.PFS location in the signal context; instead
9409 set 'signal_pfs_loc'.
9410 Manually generate the unwind info for the AR.PFS register.
9411 (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT,
9412 ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define.
9413 (ia64_handle_unwabi): Test 'fs->unwabi' against them.
9414 Do not set 'pfs_loc' to the AR.PFS location in the signal context;
9415 instead set 'signal_pfs_loc'.
9416 Remove code preventing the AR.PFS register from being restored
9417 from the signal context.
9418
c24db304
DR
94192009-08-14 Douglas B Rupp <rupp@gnat.com>
9420 Tristan Gingold <gingold@adacore.com>
9421
9422 * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
9423 * config/ia64/t-vms: New file.
9424 * config/ia64/vms64.h: New file.
9425 * config/ia64/vms.h: New file.
9426 * config/ia64/vms-crtinit.asm: New file.
9427 * config/ia64/vms_symvec_libgcc_s.opt: New file.
9428 * config/ia64/vms-unwind.h: New file.
9429
387c39e1
UB
94302009-08-14 Uros Bizjak <ubizjak@gmail.com>
9431
9432 * config/alpha/alpha.c (alpha_emit_conditional_move): Handle
9433 TFmode compares.
9434
2f440f6a
KG
94352009-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9436
9437 PR middle-end/30789
8c40d061
UB
9438 * builtins.c (do_mpc_arg2): Make extern, define for any MPC version.
9439 Move declaration...
2f440f6a
KG
9440 * real.h (do_mpc_arg2): ... here.
9441 * fold-const.c (const_binop): Use MPC for complex MULT_EXPR
9442 and RDIV_EXPR.
9443
fe83055d
RAE
94442009-08-14 Rafael Avila de Espindola <espindola@google.com>
9445
c54d7dc9
OR
9446 * final.c (add_debug_prefix_map): Don't use GC memory for
9447 old_prefix and new_prefix.
fe83055d 9448
1a15bfdc
RG
94492009-08-14 Richard Guenther <rguenther@suse.de>
9450
9451 * ipa-prop.c (compute_complex_pass_through): If we cannot
9452 compute a non-varying offset for IPA_JF_ANCESTOR punt.
9453
065312cf
UW
94542009-08-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9455
9456 * c-lex.c (c_lex_with_flags): Increase size of local variable
9457 to avoid memory clobber.
9458
371015a8
PB
94592009-08-14 Paolo Bonzini <bonzini@gnu.org>
9460
9461 PR target/40934
9462 * config/i386/i386.c (ix86_fp_comparison_strategy):
387c39e1 9463 Only enable/disable sahf at function granularity.
371015a8 9464
94aca67a
HPN
94652009-08-14 Hans-Peter Nilsson <hp@axis.com>
9466
9467 PR rtl-optimization/41064
9468 * reload1.c (reload_as_needed): Don't call extract_insn
9469 for known invalid replacements after calling
9470 validate_replace_rtx_group and verify_changes.
9471
1262fd02
UB
94722009-08-14 Uros Bizjak <ubizjak@gmail.com>
9473
9474 PR target/41019
9475 * config/i386/sse.md (SSEMODE124C8): New mode iterator.
9476 (vcond<SSEMODEF2P:mode>): Assert that operation is supported by
9477 ix86_expand_fp_vcond.
9478 (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
9479 Assert that operation is supported by ix86_expand_int_vcond.
9480 (vcondu<SSEMODE124C8:mode>): Ditto.
9481
3e3877f8
DD
94822009-08-13 DJ Delorie <dj@redhat.com>
9483
9484 * config/i386/djgpp-stdint.h: New.
9485 * config.gcc (djgpp): Use it.
9486
91d1d521
KK
94872009-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
9488
9489 * config/sh/sh.c (sh_override_options): When flag_exceptions or
1262fd02 9490 flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off.
91d1d521 9491
2c6dd136
GS
94922009-08-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
9493
387c39e1
UB
9494 * tree-ssa-loop-prefetch.c
9495 (prune_ref_by_group_reuse): Enhance probabilistic analysis
2c6dd136
GS
9496 for long-stride pruning.
9497 (compute_miss_rate): New function to compute the probability
387c39e1 9498 that two memory references access different cache lines.
2c6dd136 9499
241547bb
DK
95002009-08-13 Dave Korn <dave.korn.cygwin@gmail.com>
9501
9502 * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.
9503
e5fdcd8c
RG
95042009-08-13 Richard Guenther <rguenther@suse.de>
9505
9506 PR middle-end/41047
9507 * tree-ssa-ccp.c (ccp_fold): When folding pointer additions
9508 use the constant pointer type.
9509 * gimplify.c (canonicalize_addr_expr): Canonicalize independent
9510 of CV qualifiers on the target pointer type.
9511 * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
9512 conversion check before restrict check.
9513
d5652a5a
KK
95142009-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
9515
9516 PR target/41029
9517 * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
9518
d8158ff1
KK
95192009-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
9520
9521 * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
9522
88ccda10
RG
95232009-08-12 Richard Guenther <rguenther@suse.de>
9524
9525 PR tree-optimization/41011
9526 * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
9527 and reference constructing.
9528
6eb29714
XDL
95292009-08-12 Xinliang David Li <davidxl@google.com>
9530
9531 PR tree-optimization/41012
9532 * tree-flow.h : New external interface.
9533 * gimple-low.c (check_call_arg): Change to public function.
9534 Remove argument mismatch check in lowering.
9535 * tree-inline.h (tree_can_inline_p): Interface change.
9536 * tree-inline.c (tree_can_inline_p): Fold argument mismatch check
9537 into this function.
f100a4a8 9538 * ipa-inline.c (cgraph_decide_inlining_of_small_functions):
6eb29714
XDL
9539 Call change to tree_can_inline_p function.
9540 (cgraph_decide_inlining_incrementally): Ditto.
9541
b2a58473
RS
95422009-08-12 Richard Sandiford <rdsandiford@googlemail.com>
9543
9544 PR tree-optimization/41031
9545 * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
9546 on the partition variable rather than promote_mode on the source
9547 type. Assert that the partition variable's type has the same
9548 mode as the source value's.
9549
666e3ceb
PB
95502009-08-12 Paolo Bonzini <bonzini@gnu.org>
9551
9552 * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
9553 for for_return == 2.
9554 * function.c (assign_parm_setup_reg): Use for_return == 2, improve
9555 comments.
9556 * calls.c (expand_call): Fix typo.
9557 * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
9558 and PARM_DECL.
9559 * stmt.c (expand_value_return): Use promote_function_mode to copy out
9560 of pseudo.
9561 * targhooks.c (default_promote_function_mode): Handle for_return == 2.
9562 * config/cris/cris.c (cris_promote_function_mode): Likewise.
9563 * config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
9564 * config/pa/pa.c (pa_promote_function_mode): Likewise.
9565
46107b99 95662009-08-12 Andrew Haley <aph@redhat.com>
353a58f7
AH
9567
9568 * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
9569
4654745d
SP
95702009-08-12 Sebastian Pop <sebastian.pop@amd.com>
9571
9572 PR bootstrap/40103
9573 * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
9574
daad0278
RG
95752009-08-12 Richard Guenther <rguenther@suse.de>
9576
9577 * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
9578 * gimplify.c (gimplify_modify_expr): Do not use
9579 lang_hooks.types_compatible_p.
9580 * tree-ssa.c (useless_type_conversion_p): For aggregates
9581 just return false if the canonical types differ.
9582
30de1632
SP
95832009-08-12 Sebastian Pop <sebastian.pop@amd.com>
9584
9585 PR middle-end/40980
9586 * sese.c (convert_for_phi_arg): New.
9587 (add_guard_exit_phis): Use convert_for_phi_arg.
9588
8c31ebfa
SP
95892009-08-12 Sebastian Pop <sebastian.pop@amd.com>
9590
9591 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
9592 unknown subscript upper bounds.
9593
fb9fb290
SP
95942009-08-12 Sebastian Pop <sebastian.pop@amd.com>
9595 Pranav Garg <pranav.garg2107@gmail.com>
9596
9597 * graphite-interchange.c (gather_access_strides): Removed.
9598 (ppl_max_for_le): New.
9599 (build_linearized_memory_access): New.
9600 (memory_stride_in_loop): New.
9601 (pbb_interchange_profitable_p): Reimplemented.
9602 * graphite-ppl.h (ppl_new_id_map): New.
9603 (ppl_interchange): New.
9604
312aea7f
SP
96052009-08-12 Sebastian Pop <sebastian.pop@amd.com>
9606
9607 * graphite-interchange.c (compute_subscript): Removed.
9608 (compute_array_size_cstr): Removed.
9609 (compute_array_size_poly): Removed.
9610 (compute_array_size): Removed.
9611 (gather_access_strides_poly): Removed.
9612 (gather_access_strides): Empty.
9613
25d7cc15
SP
96142009-08-12 Sebastian Pop <sebastian.pop@amd.com>
9615
9616 * graphite-dependences.c (dependence_polyhedron_1): Replace
9617 pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
9618 (graphite_legal_transform_dr): Same.
9619 (graphite_carried_dependence_level_k): Same.
9620 * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
9621 Initialize PDR_NB_SUBSCRIPTS.
9622 (print_pdr_access_layout): Replace pdr_nb_subscripts with
9623 PDR_NB_SUBSCRIPTS.
9624 * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
9625 (PDR_NB_SUBSCRIPTS): New.
9626 (pdr_nb_subscripts): Removed.
9627 (pdr_dim): Simplified.
9628 * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
9629 with PDR_NB_SUBSCRIPTS.
9630
66096911
SP
96312009-08-12 Sebastian Pop <sebastian.pop@amd.com>
9632
9633 * graphite-interchange.c (compute_array_size): Remove use of
9634 PDR_DATA_CONTAINER.
9635 * graphite-poly.c (new_poly_dr): Remove argument data_container.
9636 Do not initialize PDR_DATA_CONTAINER.
9637 (print_pdr): Do not print PDR_DATA_CONTAINER.
9638 * graphite-poly.h (struct poly_dr): Remove data_container field.
9639 (PDR_DATA_CONTAINER): Removed.
9640 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
9641 PDR_DATA_CONTAINER.
9642 (build_poly_dr): Same.
9643
7491e5f0
KT
96442009-08-12 Konrad Trifunovic <konrad.trifunovic@gmail.com>
9645 Sebastian Pop <sebastian.pop@amd.com>
9646
9647 * graphite-dependences.c (graphite_legal_transform_dr): Work on a
9648 copy of the dependence polyhedron. Free the temporary objects.
9649 (graphite_carried_dependence_level_k): Free unused objects before
9650 returning.
9651
f4648ed1
SP
96522009-08-12 Sebastian Pop <sebastian.pop@amd.com>
9653
9654 * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
9655 Early return without analyzing the data dependences if no
9656 transform has been done. Call restore_scattering if the transform
9657 is not legal.
9658 (graphite-interchange.c): Same.
1262fd02
UB
9659 * graphite-poly.c (print_scattering_function): Test for
9660 PBB_TRANSFORMED.
f4648ed1
SP
9661 (graphite_read_transforms): Initialize PBB_TRANSFORMED.
9662 (apply_poly_transforms): Do not gcc_assert that
9663 the transform is legal.
1262fd02 9664 (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL.
f4648ed1
SP
9665 Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
9666 PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
9667 (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
9668 * graphite-poly.h (struct poly_scattering): New.
9669 (struct poly_bb): Add original, transformed, and saved fields.
1262fd02
UB
9670 Remove transformed_scattering, original_scattering,
9671 nb_local_variables and nb_scattering_transform fields.
f4648ed1
SP
9672 (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
9673 (poly_scattering_new): New.
9674 (poly_scattering_free): New.
9675 (poly_scattering_copy): New.
9676 (store_scattering_pbb): New.
9677 (store_scattering): New.
9678 (restore_scattering_pbb): New.
9679 (restore_scattering): New.
9680 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
9681 Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
9682
e31a5bd4
SP
96832009-08-12 Sebastian Pop <sebastian.pop@amd.com>
9684
9685 * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
9686 (print_scop): Same.
9687
8e88f9fd
SP
96882009-08-12 Sebastian Pop <sebastian.pop@amd.com>
9689
9690 * Makefile.in (graphite.o): Depends on PREDICT_H.
9691 * graphite.c: Include predict.h.
9692 (graphite_finalize): Call tree_estimate_probability.
9693 * predict.c (predict_loops): Do not call scev_initialize and
9694 scev_finalize.
9695 (tree_estimate_probability_bb): New.
9696 (tree_estimate_probability): Do not initialize loops: move that
9697 code to the driver. Call tree_estimate_probability_bb.
9698 (tree_estimate_probability_driver): New.
9699 (pass_profile): Use tree_estimate_probability_driver.
9700 * predict.h (tree_estimate_probability): Declared.
9701
87d4d0ee
SP
97022009-08-12 Sebastian Pop <sebastian.pop@amd.com>
9703
9704 * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
9705 * graphite-dependences.c (graphite_legal_transform): Add time to
9706 TV_GRAPHITE_DATA_DEPS.
9707 (dependency_between_pbbs_p): Same.
9708 * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
9709
4c7af939
AB
97102009-08-12 Andrey Belevantsev <abel@ispras.ru>
9711
9712 PR rtl-optimization/41033
f100a4a8 9713 * alias.c (nonoverlapping_component_refs_p): Punt when strict
4c7af939
AB
9714 aliasing is disabled.
9715
b2c9d70f
AN
97162009-08-11 Adam Nemet <anemet@caviumnetworks.com>
9717
9718 * config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
9719 si_mask_operand, and_load_operand, low_bitmask_operand,
9720 and_reg_operand, and_operand): New predicates.
9721 * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
9722 * config/mips/mips.c (and_operands_ok): New function.
9723 * config/mips/mips-protos.h (and_operands_ok): Declare it.
9724 * config/mips/mips.md (move_type): Add ext_ins and logical.
9725 (type): Handle them.
1262fd02 9726 (and<mode>3): Use and_reg_operand as the second operand's predicate.
b2c9d70f
AN
9727 (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
9728 shift_shift. Remove commutative constraint modifier.
9729 (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
9730 shift_shift.
9731 (*clear_upper32_dext): Remove define_insn_and_split.
9732 (*clear_upper32): Turn this define_insn_and_split ...
9733 (splitter for ANDing register with 0xffff_ffff): .. into this.
9734
842e098c
AN
97352009-08-11 Adam Nemet <anemet@caviumnetworks.com>
9736
9737 * combine.c (try_widen_shift_mode): Factor out code to check if an
f100a4a8 9738 integer constant is a low-order bitmask from here ...
842e098c
AN
9739 * rtlanal.c (low_bitmask_len): ... to here.
9740 * rtl.h (low_bitmask_len): Declare.
9741
c53c2591
UB
97422009-08-11 Uros Bizjak <ubizjak@gmail.com>
9743
9744 PR target/8603
9745 * config/alpha/alpha.md (addsi3): Remove expander.
9746 (addsi3): Rename from *addsi3_internal insn pattern.
9747 (subsi3): Remove expander.
9748 (subsi3): Rename from *subsi3_internal insn pattern.
9749
b0d0a8a7
DR
97502009-08-11 Douglas B Rupp <rupp@gnat.com>
9751
9752 * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
9753 FWRITE_UNLOCKED.
9754
050d3f9d 97552009-08-11 Vasiliy Fofanov <fofanov@adacore.com>
c53c2591
UB
9756 Eric Botcazou <botcazou@adacore.com>
9757 Douglas B Rupp <rupp@gnat.com>
050d3f9d
VF
9758
9759 * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
9760 that records that fit in 64 bits are returned by immediate value,
9761 as required by OpenVMS Calling Standard.
9762 (function_value): Adjust for above modification.
9763 (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
9764 virtual_incoming_args_rtx as base object, not next_arg.
bd62d832 9765 * config/alpha/vms.h (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
050d3f9d 9766
2fa8205d
UW
97672009-08-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9768
9769 * reload.c (find_reloads_subreg_address): Check the original
9770 req_equiv_mem address to detect the case where an address is
9771 not valid in the outer mode.
9772
ac8f7e42 97732009-08-11 Richard Guenther <rguenther@suse.de>
f100a4a8 9774
c53c2591
UB
9775 PR bootstrap/40788
9776 * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION.
ac8f7e42 9777
fddeba6d
DR
97782009-08-10 Douglas B Rupp <rupp@gnat.com>
9779
9780 * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
9781 (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
9782
1d3499d8 97832009-08-10 Olivier Hainque <hainqueu@adacore.com>
c53c2591 9784 Douglas B Rupp <rupp@gnat.com>
1d3499d8
OH
9785
9786 * config/alpha/alpha.c (alpha_sa_size): Force procedure type to
9787 PT_STACK when frame_pointer_needed on OpenVMS.
9788 (alpha_pv_save_size, alpha_using_fp): Remove.
9789 (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE
9790 with proper processing for PT_NULL.
9791 (alpha_vms_initial_elimination_offset): New function. Support for
9792 INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL.
9793 (alpha_sa_size): Force procedure type to PT_STACK when
9794 frame_pointer_needed on OpenVMS.
9795 * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype.
9796 (alpha_using_fp): Likewise.
9797 (alpha_vms_can_eliminate): Add prototype.
9798 (alpha_vms_initial_elimination_offset): Likewise.
9799 * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
9800 Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset.
9801
18fd5621 98022009-08-10 Eric Botcazou <botcazou@adacore.com>
c53c2591 9803 Douglas B Rupp <rupp@gnat.com>
18fd5621
EB
9804
9805 * config/alpha/alpha.c (common_object_handler): New function.
9806 (vms_attribute_table): Declare a single attribute "common_object".
9807 (vms_output_aligned_decl_common): New global function.
9808 (SECTION_VMS_OVERLAY): Delete.
9809 (SECTION_VMS_GLOBAL): Likewise.
9810 (SECTION_VMS_INITIALIZE): Likewise.
9811 (vms_asm_named_section): Remove support for above flags.
9812 (vms_section_type_flags): Delete.
9813 (TARGET_SECTION_TYPE_FLAGS): Likewise.
9814 * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New.
9815 * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
9816 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro.
9817
092f3f97
ST
98182009-08-10 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
9819
9820 PR target/41015
9821 * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
9822 (sub_ddmmss): Likewise.
9823
35076532
AT
98242009-08-10 Andreas Tobler <a.tobler@schweiz.org>
9825
9826 PR bootstrap/41018
9827 * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright
9828 year.
9829
0159ec79
UW
98302009-08-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9831
9832 PR target/37053
9833 * reload1.c (reload_as_needed): Use cancel_changes to completely
9834 undo a failed replacement attempt.
9835
4f4e722e
RG
98362009-08-10 Richard Guenther <rguenther@suse.de>
9837
9838 PR middle-end/41006
9839 * tree-ssa.c (useless_type_conversion_p_1): Fold into ...
9840 (useless_type_conversion_p): ... here. Require pointer targets
9841 to be compatible.
9842
b1d82db0
DS
98432009-08-10 Dodji Seketeli <dodji@redhat.com>
9844
9845 PR c++/40866
9846 * tree-inline.c (copy_statement_list): The resulting copy shouldn't
9847 loose the original type of the statement list.
9848
5e3fef6c
DR
98492009-08-09 Douglas B Rupp <rupp@gnat.com>
9850
9851 * config/alpha/alpha.c: Include libfuncs.h
9852 (avms_asm_output_extern): New function.
9853 (alpha_init_libfuncs): Init some decc libfuncs.
9854 * config/alpha/alpha-protos.h (avms_asm_output_external): Declare.
9855 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define.
9856 (DO_CRTL_NAMES): Define.
9857 (LIB_SPEC): Remove.
bd62d832 9858 * config/alpha/vms64.h (POINTERS_EXTEND_UNSIGNED): Remove undef.
5e3fef6c
DR
9859 (LONG_TYPE_SIZE): Define.
9860 (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1
9861 (SUBTARGET_SWITCHES): Define malloc64 switch.
9862 (TARGET_DEFAULT): Default MASK_MALLOC64 set.
9863 (MASK_RETURN_ADDR): Define.
9864 doc/invoke.texi (mmalloc64): Document switch.
9865
221cf9ab 98662009-08-09 Olivier Hainque <hainque@adacore.com>
c53c2591 9867 Douglas B Rupp <rupp@gnat.com>
221cf9ab
OH
9868
9869 * config/alpha/alpha.c (struct machine_function): New flag for VMS,
9870 uses_condition_handler.
9871 (alpha_expand_builtin_establish_vms_condition_handler): New expander.
9872 (alpha_expand_builtin_revert_vms_condition_handler): New expander.
9873 (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER
9874 and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values.
9875 (code_for_builtin): New insn codes for the new alpha_builtins.
9876 (alpha_init_builtins): Register the new functions as BUILT_IN_MD.
9877 (alpha_sa_size): Account for uses_condition_handler.
9878 (alpha_expand_prologue): Likewise.
9879 (alpha_start_function): Likewise.
9880 (alpha_expand_epilogue): Likewise.
9881 * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin
9882 establish/revert expanders.
9883 * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define.
9884 * config/alpha/alpha.md (builtin_establish_vms_condition_handler):
9885 New expander, resorting to the alpha.c associated function.
9886 (builtin_revert_vms_condition_handler): Likewise.
9887 * config/alpha/vms-gcc_shell_handler.c: New file. Implements
9888 __gcc_shell_handler, the static VMS condition handler used as
9889 an indirection wrapper to the current dynamically established
9890 handler.
9891 * config/alpha/vms-unwind.h: Complete rewrite.
9892 * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c
9893 * config/alpha/vms.h (MD_UNWIND_SUPPORT):
f100a4a8 9894
b714133e 98952009-08-09 Eric Botcazou <botcazou@adacore.com>
c53c2591 9896 Douglas B Rupp <rupp@gnat.com>
b714133e
EB
9897
9898 * config/alpha/alpha.c (alpha_links): Add 'target' field.
9899 (alpha_need_linkage): Handle aliases. Return function symbol.
9900 (alpha_use_linkage): Rename 'linkage' argument to 'func'.
9901 Use ultimate alias target for the linkage name.
9902 * config/alpha/alpha.md (movmemdi): Use the symbol returned
9903 by alpha_need_linkage for the function symbol.
9904 (setmemdi): Likewise.
9905
3bd1b109
DR
99062009-08-09 Douglas B Rupp <rupp@gnat.com>
9907
9908 * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS.
9909 * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define.
9910 (ASM_WEAKEN_LABEL): Define.
9911 (CRT_CALL_STATIC_FUNCTION): Define.
9912 (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o.
9913 (ENDFILE_SPEC): Define.
9914 (INIT_SECTION_ASM_OP): Define.
9915 * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove.
9916 * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o
9917 crtend.o crtendS.o.
9918 (MULTILIB_OSDIRNAMES): Define.
9919 (shlib_version): Define.
9920 (SHLIB_EXT): Define.
9921 (SHLIB_OBJS): Define.
9922 (SHLIB_NAME): Define.
9923 (SHLIB_MULTILIB): Define.
9924 (SHLIB_INSTALL): Define.
9925 (SHLIB_SYMVEC): Define.
9926 (SHLIB_SYMVECX2): Define.
9927 (SHLIB_LINK): Define.
9928
fe2786f5
DR
99292009-08-09 Douglas B Rupp <rupp@gnat.com>
9930
9931 * config/alpha/alpha.c (alpha_initialize_trampoline):
9932 Initialize VMS trampoline IAW ABI for bounded procedure calls.
9933 (alpha_start_function): Emit transfer address on nested functions
9934 for VMS trampoline call.
9935 * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm
9936 since no longer used.
9937 * config/alpha/vms-tramp.asm: Remove.
9938 * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined
9939 since now only data initialized at runtime.
9940
c889a16f
DR
99412009-08-09 Douglas B Rupp <rupp@gnat.com>
9942
9943 * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define.
9944 (LINK_GCC_C_SEQUENCE_SPEC): Define.
9945 (MD_EXEC_PREFIX): Remove, no longer used.
9946 (MD_STARTFILE_PREFIX): Likewise.
9947 (INCLUDE_DEFAULTS): Likewise.
9948 * config/alpha/t-vms:
9949 (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile.
9950
a6450905
RG
99512009-08-09 Richard Guenther <rguenther@suse.de>
9952
9953 PR tree-optimization/41016
c53c2591 9954 * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug.
a6450905
RG
9955 (operand_precision): Remove.
9956 (integral_operand_p): Likewise.
9957 (recognize_single_bit_test): Adjust.
9958
f5178456
RS
99592009-08-09 Richard Sandiford <rdsandiford@googlemail.com>
9960
9961 * c-common.c (c_fully_fold_internal): Issue a warning if a binary
9962 operation overflows. Likewise non-cast unary arithmetic.
9963 If one arm of a conditional expression is always taken,
9964 inhibit evaluation warnings for the other arm. Likewise inhibit
9965 evaluation warnings for the second && or || operand if the first
9966 operand is enough to determine the result.
9967 * c-typeck.c (build_conditional_expr): Apply the same inhibition
9968 rules here.
9969 (build_binary_op): Prevent duplicate evaluation warnings.
9970
8f048d2f
RS
99712009-08-09 Richard Sandiford <rdsandiford@googlemail.com>
9972
9973 * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source
9974 and destination have different modes, Use promote_mode to
9975 determine the signedness of the conversion. Assert that the
9976 promoted source mode matches the destination mode. Don't pass
9977 the destination and destination mode to expand_expr if the source
9978 mode is different. Simplify conversion logic.
9979
6f4454fc
IR
99802009-08-09 Ira Rosen <irar@il.ibm.com>
9981
9982 PR tree-optimization/41008
9983 * tree-vect-loop.c (vect_is_simple_reduction): Get operands
f100a4a8 9984 from condition only in case it's a comparison. Adjust checks.
6f4454fc 9985
2c08497a
BS
99862009-08-09 Bernd Schmidt <bernd.schmidt@analog.com>
9987
9988 * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function.
9989 * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it.
9990 * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer.
9991 (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE.
9992 (dump_cand): Handle them.
9993 (struct iv_cand): New members COST_STEP and AINC_USE.
9994 (stmt_after_increment): Likewise.
9995 (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos. All
9996 callers changed. Use gimple_uid comparison instead of scanning.
9997 (add_candidate_1): When looking for identical candidates, take
9998 AINC_USE into account. Set it for new candidates.
9999 (force_expr_to_var_cost): Cast target_spill_cost to int.
10000 (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC.
10001 All callers changed. Check for availability of autoinc addressing
c53c2591 10002 modes, both in general for a given mode, and in the specific use case.
2c08497a
BS
10003 (get_computation_cost_at): New argument CAN_AUTOINC. All callers
10004 changed.
10005 (get_computation_cost): Likewise.
10006 (autoinc_possible_for_pair, set_autoinc_for_original_candidates,
10007 add_autoinc_candidates): New static functions.
10008 (add_candidate): Call add_autoinc_candidates for candidates based on
10009 a USE_ADDRESS use.
10010 (find_iv_candidates): Call set_autoinc_for_original_candidates.
10011 (determine_use_iv_cost_address): If we have an autoinc candidate at
10012 the matching use, verify autoinc is possible and subtract the cost
10013 of the candidate's step from the cost.
10014 (determine_iv_cost): Record the cost of the increment in the COST_STEP
10015 member of the candidate.
10016 (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and
10017 determine_use_iv_costs. Call renumber_gimple_stmt_uids_in_blocks.
10018
a9a25daa
DR
100192009-08-09 Douglas B Rupp <rupp@gnat.com>
10020
10021 * config.build (ia64-hp-*vms*): New target.
10022 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
10023 with ia64-hp-*vms*.
10024 * config.gcc (ia64-hp-*vms*): New target.
10025 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
10026 with ia64-hp-*vms*.
10027 * config.host (ia64-hp-*vms*): New target.
10028 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
10029 with ia64-hp-*vms*.
10030
55194b0b
RG
100312009-08-08 Richard Guenther <rguenther@suse.de>
10032
10033 PR tree-optimization/40991
10034 * tree-ssa-pre.c (eliminate): Delay purging EH edges.
10035
d686d892
RS
100362009-08-08 Richard Sandiford <rdsandiford@googlemail.com>
10037
10038 * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
10039 mode check. Do truncations in an integer mode.
10040 (force_to_mode): Handle subregs for all mode types. Only do
10041 arithmetic simplifications on integer modes.
10042
0adef8e9
RG
100432009-08-07 Richard Guenther <rguenther@suse.de>
10044
10045 PR tree-optimization/40999
10046 * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
10047 (maybe_fold_reference): Lookup constant initializers.
10048 (fold_gimple_assign): Likewise.
10049
60419cc8
RG
100502009-08-07 Richard Guenther <rguenther@suse.de>
10051
10052 * tree-ssa.c (useless_type_conversion_p_1): Only for types
10053 that require structural equality defer to the langhook.
10054
685b0d13
MJ
100552009-08-07 Martin Jambor <mjambor@suse.cz>
10056
10057 * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
10058 comments.
10059 (struct ipa_pass_through_data): New type.
10060 (struct ipa_ancestor_jf_data): New type.
10061 (union jump_func_value): Removed field formal_id, added fields
10062 pass_through and ancestor.
10063 (struct ipa_param_call_note): Changed type of formal_id to int from
10064 unsigned.
10065 * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
10066 operations jump functions and ancestor jump functions.
10067 (compute_complex_pass_through): New function.
10068 (compute_scalar_jump_functions): Call compute_complex_pass_through,
10069 reflect changes in the jump function strucutre.
10070 (update_jump_functions_after_inlining): Ignore complex pass-through
10071 and ancestor jump functions.
10072 * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
10073 polynomial pass-through with operation jump functions.
10074
17f6e37d
JJ
100752009-08-07 Jakub Jelinek <jakub@redhat.com>
10076
10077 * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
10078 fde->dw_fde_begin as begin label instead of hot/cold label.
10079 Use LLSDAC label instead of LLSDA for second section lsda.
10080 (dwarf2out_do_cfi_startproc): Add SECOND argument. Use LLSDAC
10081 label instead of LLSDA if it is true.
10082 (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
10083 callers.
10084 * except.c (add_call_site, dw2_size_of_call_site_table): Add
10085 SECTION argument. Use it as index into crtl->eh.call_site_record
10086 array.
10087 (dw2_output_call_site_table): Likewise. Add CS_FORMAT argument,
10088 use it to determine how to print table entries instead of using
10089 #ifdef HAVE_AS_LEB128. For SECTION > 0 use hot resp. cold
10090 label instead of normal begin label as base.
10091 (sjlj_assign_call_site_values): Adjust add_call_site caller.
10092 (convert_to_eh_region_ranges): When doing hot/cold partitioning,
10093 ensure no EH range spans between sections and that landing pads
10094 are always in the corresponding section.
10095 (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
10096 for crtl->eh.call_site_record being an array rather than scalar.
10097 (output_one_function_exception_table): New function, copied
10098 from output_function_exception_table. Adjust
10099 dw2_size_of_call_site_table, dw2_output_call_site_table
10100 callers. For SECOND section use *C suffixed labels.
10101 (output_function_exception_table): Call
10102 output_one_function_exception_table and, when doing hot/cold
10103 partitioning, also another time for the second section.
10104 * opts.c: Include except.h.
10105 (decode_options): Allow -freorder-blocks-and-partition with
10106 exceptions, unless SJLJ or TARGET_UNWIND_INFO.
10107 * Makefile.in (opts.o): Depend on $(EXCEPT_H).
10108 * function.h (struct rtl_eh): Change call_site_record from
10109 scalar into array of 2 elements.
10110
3f84bf08
MJ
101112009-08-07 Martin Jambor <mjambor@suse.cz>
10112
10113 * ipa-prop.c (count_formal_params_1): New function.
10114 (ipa_get_vector_of_formal_parms): New function.
10115 (get_vector_of_formal_parm_types): New function.
10116 (ipa_modify_formal_parameters): New function.
10117 (ipa_modify_call_arguments): New function.
10118 (index_in_adjustments_multiple_times_p): New function.
10119 (ipa_combine_adjustments): New function.
10120 (ipa_dump_param_adjustments): New function.
10121 * ipa-prop.h (struct ipa_parm_adjustment): New type.
10122 (ipa_get_vector_of_formal_parms): Declare.
10123 (ipa_modify_formal_parameters): Declare.
10124 (ipa_modify_call_arguments): Declare.
10125 (ipa_combine_adjustments): Declare.
10126 (ipa_dump_param_adjustments): Declare.
10127 (build_ref_for_offset): Declare.
10128 * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
10129 * tree-sra.c: Include ipa-prop.c.
f100a4a8 10130 (build_ref_for_offset): Make public.
3f84bf08 10131
ee26a76d
NV
101322009-08-06 Neil Vachharajani <nvachhar@gmail.com>
10133
10134 * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
f100a4a8 10135
48c4de16
TS
101362009-08-06 Thomas Schwinge <tschwinge@gnu.org>
10137
10138 * gcc/doc/extend.texi (__builtin_extract_return_address)
10139 (__builtin_frob_return_address): Document.
10140
f36d140e
PB
101412009-08-06 Paul Brook <paul@codesourcery.com>
10142
10143 * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
10144 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
10145 implementation on ARMv6-M.
10146
14a782c8
RE
101472009-08-06 Richard Earnshaw <rearnsha@arm.com>
10148
10149 * doc/extend.texi (pcs): Document new attribute for ARM.
10150
0f1a24df
RE
101512009-08-06 Richard Earnshaw <rearnsha@arm.com>
10152
10153 * arm.c (pcs_attribute_args): Comment out unsupported attribute
10154 variants.
10155
a9717079
RE
101562009-08-06 Richard Earnshaw <rearnsha@arm.com>
10157
10158 * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
10159 warning ().
10160
d8e6aede
RE
101612009-08-06 Richard Earnshaw <rearnsha@arm.com>
10162
10163 * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
10164
390b17c2
RE
101652009-08-06 Richard Earnshaw <rearnsha@arm.com>
10166
10167 Merge ARM/hard_vfp_branch to trunk.
10168
10169 2009-08-04 Richard Earnshaw <rearnsha@arm.com>
10170
10171 * arm.c (libcall_eq): New function.
10172 (libcall_hash): New function.
10173 (add_libcall): New function.
10174 (arm_libcall_uses_aapcs_base): New function.
10175 (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
10176 libcalls using the base PCS.
10177 (arm_init_cumulative_args): Likewise.
10178
10179 2009-07-20 Joseph Myers <joseph@codesourcery.com>
10180
10181 * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
10182 Use base ABI for conversion libfuncs between HFmode and SFmode.
10183
10184 2009-05-12 Joseph Myers <joseph@codesourcery.com>
10185
10186 * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
10187 V4SImode as representatives of all 64-bit and 128-bit vector
10188 types. Allow vector types without vector modes.
10189 (aapcs_vfp_is_call_or_return_candidate): Handle vector types
10190 without vector modes like BLKmode.
10191 (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
10192 BLKmode. Avoid unsupported vector modes or TImode moves for
10193 non-TARGET_NEON.
10194 (aapcs_vfp_allocate_return_reg): Likewise.
10195 (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
10196 V8QImode if TARGET_NEON || TARGET_IWMMXT.
10197
10198 2009-05-12 Joseph Myers <joseph@codesourcery.com>
10199
10200 * config/arm/arm.c (arm_handle_pcs_attribute): New.
10201 (arm_get_pcs_model): Pass attribute arguments to
10202 arm_pcs_from_attribute.
10203 (arm_init_cumulative_args): Use base AAPCS for conversions from
10204 floating-point types to DImode.
10205 (arm_attribute_table): Add pcs attribute.
10206 (arm_handle_pcs_attribute): New.
10207 * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
10208 conversions from floating-point types to DImode, also declare them
10209 to use base AAPCS and declare functions they call to use base
10210 AAPCS and their RTABI names.
10211
10212 2009-05-12 Joseph Myers <joseph@codesourcery.com>
10213
10214 * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
10215 -mfloat-abi=hard not being supported for VFP.
10216
10217 2009-05-11 Kazu Hirata <kazu@codesourcery.com>
10218
10219 * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
10220 SYMBOL_REF to hard_libcall_value.
10221
10222 2009-03-05 Joseph Myers <joseph@codesourcery.com>
10223 Richard Earnshaw <rearnsha@arm.com>
10224
10225 * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
10226 has been put on the stack, all remaining co-processory arguments for
10227 that co-processor also go on the stack.
10228
10229 2009-03-05 Joseph Myers <joseph@codesourcery.com>
10230
10231 * config/arm/arm.c (arm_return_in_memory): Handle returning
10232 vectors of suitable size in registers also for AAPCS case.
10233
10234 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
10235
10236 * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
10237
10238 2008-12-09 Richard Earnshaw <rearnsha@arm.com>
10239
10240 ARM Hard-VFP calling convention
10241 * target-def.h (TARGET_LIBCALL_VALUE): New hook.
10242 * target.h (gcc_target): Add libcall_value to table of call hooks.
10243 * targhooks.h (default_libcall_value): Default implementation.
10244 * targhooks.c (default_libcall_value): Likewise.
10245 * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
10246 * optabs.c (expand_unop): Use it.
10247 * expr.h (hard_libcall_value): Pass the function RTX through.
f100a4a8 10248 * calls.c (emit_library_call_value_1): Update call to
390b17c2
RE
10249 hard_libcall_value.
10250 * explow.c (hard_libcall_value): Use new target hook.
390b17c2
RE
10251 * config/arm/arm.c: Include cgraph.h
10252 (TARGET_FUNCTION_VALUE): Override default hook.
10253 (arm_pcs_default): New variable.
10254 (arm_override_options): Don't fault hard calling convention with VFP.
10255 Add support for AAPCS variants.
10256 (arm_function_value): Make static. Handle AAPCS variants.
10257 (arm_libcall_value): New function.
10258 (arm_apply_result_size): Handle VFP registers in results.
10259 (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
10260 conventions.
10261 (pcs_attribute_args): New variable.
10262 (arm_pcs_from_attribute): New function.
10263 (arm_get_pcs_model): New function.
10264 (aapcs_vfp_cum_init): New function.
10265 (aapcs_vfp_sub_candidate): New function.
10266 (aapcs_vfp_is_return_candidate): New function.
10267 (aapcs_vfp_is_call_candidate): New function.
10268 (aapcs_vfp_allocate): New function.
10269 (aapcs_vfp_allocate_return_reg): New function.
10270 (aapcs_vfp_advance): New function.
10271 (aapcs_cp_arg_layout): New variable.
10272 (aapcs_select_call_coproc): New function.
10273 (aapcs_select_return_coproc): New function.
10274 (aapcs_allocate_return_reg): New function.
10275 (aapcs_libcall_value): New function.
10276 (aapcs_layout_arg): New function.
10277 (arm_init_cumulative_args): Initialize AAPCS args data.
10278 (arm_function_arg): Handle AAPCS variants using new interface.
10279 (arm_arg_parital_bytes): Likewise.
10280 (arm_function_arg_advance): New function.
10281 (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
10282 calling conventions.
10283 (arm_setup_incoming_varargs): Handle new AAPCS args data.
10284 * arm.h (NUM_VFP_ARG_REGS): Define.
10285 (LIBCALL_VALUE): Update.
10286 (FUNCTION_VALUE): Delete.
10287 (FUNCTION_VALUE_REGNO_P): Add VFP regs.
10288 (arm_pcs): New enum.
10289 (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
10290 (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
10291 (FUNCTION_ARG_REGNO_P): Add VFP regs.
10292 * arm-protos.h (arm_function_arg_advance): Add.
10293 (aapcs_libcall_value): Add.
10294 (arm_function_value): Delete.
10295
4dbf26d5
UB
102962009-08-06 Uros Bizjak <ubizjak@gmail.com>
10297 H.J. Lu <hongjiu.lu@intel.com>
10298
10299 PR target/40957
10300 * config/i386/i386.c (standard_sse_mode_p): Remove.
10301 (standard_sse_constant_p): Return 2 for integer mode
10302 vector_all_ones_operand when SSE2 is enabled.
10303 (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
10304 (ix86_expand_vector_move): Do not check for negative values from
10305 standard_sse_constant_p.
10306
e52201b6
RG
103072009-08-06 Richard Guenther <rguenther@suse.de>
10308
10309 * tree-ssa.c (useless_type_conversion_p_1): Make function and
10310 array type comparisons frontend independent.
10311 * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
10312 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
10313 out array reference lower bound and element size operands.
10314 (ao_ref_init_from_vn_reference): Properly compute the offset
10315 for ARRAY_RANGE_REF.
10316 (vn_reference_fold_indirect): Fill out array reference lower
10317 bound and element size operands.
10318 * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
10319 a non gimple valued reference operand which can happen for
10320 array reference lower bound or element size.
10321 (create_component_ref_by_pieces_1): Properly generate the
10322 element size operand for array references.
10323
b92fbdd7
RB
103242009-08-06 Richard Guenther <rguenther@suse.de>
10325
10326 PR tree-optimization/40964
10327 * tree.c (iterative_hash_host_wide_int): Export.
10328 * tree.h (iterative_hash_host_wide_int): Declare.
10329 * tree-ssa-structalias.c (heapvar_map): New struct.
10330 (heapvar_map_eq): New function.
10331 (heapvar_map_hash): Likewise.
10332 (heapvar_lookup): Adjust.
10333 (heapvar_insert): Likewise.
10334 (make_constraint_from_heapvar): Allow multiple heap variables
10335 per decl at different offsets.
10336 (init_alias_heapvars): Adjust.
10337
068ca03a
DD
103382009-08-04 David Daney <ddaney@caviumnetworks.com>
10339
10340 * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
10341 * mips_output_sync_loop (mips_output_sync_loop): Only emit
10342 trailing sync if TARGET_SYNC_AFTER_SC.
10343
40a4a37b
DD
103442009-08-05 David Daney <ddaney@caviumnetworks.com>
10345
10346 * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
10347 compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
10348 sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
10349 sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
10350 sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
10351 sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
10352 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
10353 sync_new_nand<mode>, sync_lock_test_and_set<mode>,
10354 test_and_set_12): Rewrite calls to mips_output_sync_loop.
10355 * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
10356 the prototype declaration match the definition.
10357 * gcc/config/mips/mips.c (mips_output_sync_loop): Emit sync
10358 instructions explicitly. Add barrier_before and operands
10359 parameters.
10360 * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
10361 MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
10362 MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
10363 MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
10364 MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
10365 MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
10366
dcbd7063
AP
103672009-08-05 Andrew Pinski <pinskia@gmail.com>
10368
10369 * tree-ssa-alias.c: Fix intervals to use [) syntax.
10370
2c4389d8
UB
103712009-08-05 Uros Bizjak <ubizjak@gmail.com>
10372 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
10373
10374 PR target/40906
10375 * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
10376 source operand.
10377
403c7520
JJ
103782009-08-05 Jakub Jelinek <jakub@redhat.com>
10379
10380 PR rtl-optimization/40924
10381 * dse.c (canon_address): Before calling cselib_expand_value_rtx
10382 make sure canon_rtx (mem_address) isn't simpler than
10383 canon_rtx (expanded_mem_address).
10384
64393e40
LF
103852009-08-05 Li Feng <nemokingdom@gmail.com>
10386
10387 * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
10388 for each poly_bb_p.
10389 (build_scop_drs): Build alias set for each SCoP.
10390
5dce6dbd
SL
103912009-08-04 Sandra Loosemore <sandra@codesourcery.com>
10392
10393 * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
10394 * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
10395 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
10396 (MIPS_ARCH_FLOAT_SPEC): Likewise.
10397 (BASE_DRIVER_SELF_SPECS): Likewise.
10398
f9fc1a02
AP
103992009-08-04 Andrew Pinski <pinskia@gmail.com>
10400
10401 * tree-ssa-alias.c: Fix some comment typos.
10402
09a7d0af
KK
104032009-08-04 Kaz Kojima <kkojima@gcc.gnu.org>
10404
10405 * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
10406 ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
10407
50cd60be
JJ
104082009-08-03 Janis Johnson <janis187@us.ibm.com>
10409
10410 PR c/39902
10411 * simplify-rtx.c (simplify_binary_operation_1): Disable
10412 simplifications for decimal float operations.
10413
1768a052
JJ
104142009-08-03 Jakub Jelinek <jakub@redhat.com>
10415
10416 PR middle-end/40943
10417 * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
10418 operand of INDIRECT_REF.
10419
42a9ba1d
UB
104202009-08-03 Uros Bizjak <ubizjak@gmail.com>
10421
10422 * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
10423 constants referencing TLS symbols.
10424
9f774cb0
ST
104252009-08-03 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
10426
10427 * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
10428 __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
10429
907dd6ae
RG
104302009-08-03 Richard Guenther <rguenther@suse.de>
10431
10432 * tree.c (make_vector_type): Build a main variant first,
10433 get the canonical one and then build the variant.
10434 * tree-ssa.c (useless_type_conversion_p_1): Handle
10435 fixed-point types.
10436 (useless_type_conversion_p): Conversions to pointers to
10437 incomplete record types are useless.
10438
2329c6f5
RG
104392009-08-03 Richard Guenther <rguenther@suse.de>
10440
10441 * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
10442 file will be created.
10443 * omp-low.c (pass_diagnose_omp_blocks): Likewise.
10444 * toplev.c (compile_file): Adjust comment.
10445
d055ce45
KK
104462009-08-03 Kaz Kojima <kkojima@gcc.gnu.org>
10447
10448 * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
10449 * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
10450 (TARGET_PROMOTE_FUNCTION_MODE): Define.
10451 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
10452 (sh_promote_function_mode): Fix typo.
10453
b1680483
AK
104542009-08-03 Andreas Krebbel <krebbel1@de.ibm.com>
10455
42a9ba1d 10456 * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
b1680483 10457
4ce3042d
JDA
104582009-08-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10459
10460 * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
10461 declaration arguments.
10462
0589e07d
UB
104632009-08-02 Uros Bizjak <ubizjak@gmail.com>
10464
10465 * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
10466 of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
10467 (ix86_split_ashl): Ditto.
10468 (ix86_expand_vector_init_one_nonzero): Ditto.
10469 (ix86_expand_vector_set): Ditto.
10470 (ix86_expand_reduc_v4sf): Ditto.
10471
104722009-08-02 Paolo Bonzini <bonzini@gnu.org>
6e957ac8
PB
10473
10474 * explow.c (promote_function_mode): Remove assert.
10475 * config/sh/sh.c (sh_promote_function_mode): Declare.
10476
be3e4ef6
JDA
104772009-08-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10478
6e957ac8
PB
10479 * config/pa/pa.c (pa_promote_function_mode): Declare.
10480 Change to static. Fix promote_mode call.
02095c50 10481
1f7ec57e
JDA
10482 * gthr-dce.h (CONST_CAST2): Define if not defined.
10483 (__gthread_setspecific): Use CONST_CAST2 to fix warning.
10484
be3e4ef6
JDA
10485 * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
10486
6e957ac8 104872009-08-01 Paolo Bonzini <bonzini@gnu.org>
cde0f3fd
PB
10488
10489 * expr.c (store_constructor): Use promote_decl_mode. Remove
10490 now write-only variable unsignedp.
10491 (expand_expr_real_1): Use promote_decl_mode.
10492 * expr.h (promote_function_mode, promote_decl_mode): New.
10493 (promote_mode): Remove last argument.
10494 * function.c (assign_temp): Drop last argument of promote_mode.
10495 (assign_parm_find_data_types): Use promote_function_mode.
10496 (assign_parm_setup_reg): Likewise.
10497 (expand_function_end): Use promote_function_mode.
10498 * calls.c (initialize_argument_information): Use promote_function_mode.
10499 (precompute_arguments): Use promote_mode instead of checking if
10500 only PROMOTE_FUNCTION_MODE is defined.
10501 (expand_call): When making sibcall decisions, use promote_function_mode.
10502 Below, remove an if for targetm.calls.promote_function_return and
10503 and use promote_function_mode.
10504 (emit_library_call_value_1): Use promote_function_mode, fix bug
10505 where promote_mode was passed FOR_CALL == 0 for a return value in an
10506 assertion.
10507 * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
10508 * explow.c (promote_function_mode, promote_decl_mode): New.
10509 (promote_mode): Keep only the FOR_CALL == 0 case.
10510 * combine.c (setup_incoming_promotion): Remove test of
10511 promote_function_args. Use promote_function_mode.
10512 * stmt.c (expand_value_return): Use promote_decl_mode.
10513 (expand_decl): Use promote_decl_mode.
10514
10515 * expr.c (store_constructor): Use promote_decl_mode. Remove
10516 now write-only variable unsignedp.
10517 (expand_expr_real_1): Use promote_decl_mode.
10518 * expr.h (promote_function_mode, promote_decl_mode): New.
10519 (promote_mode): Remove last argument.
10520 * function.c (assign_temp): Drop last argument of promote_mode.
10521 (assign_parm_find_data_types): Use promote_function_mode.
10522 (assign_parm_setup_reg): Likewise.
10523 (expand_function_end): Use promote_function_mode.
10524 * calls.c (initialize_argument_information): Use promote_function_mode.
10525 (precompute_arguments): Use promote_mode instead of checking if
10526 only PROMOTE_FUNCTION_MODE is defined.
10527 (expand_call): When making sibcall decisions, use promote_function_mode.
10528 Below, remove an if for targetm.calls.promote_function_return and
10529 and use promote_function_mode.
10530 (emit_library_call_value_1): Use promote_function_mode, fix bug
10531 where promote_mode was passed FOR_CALL == 0 for a return value in an
10532 assertion.
10533 * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
10534 * explow.c (promote_function_mode, promote_decl_mode): New.
10535 (promote_mode): Keep only the FOR_CALL == 0 case.
10536 * combine.c (setup_incoming_promotion): Remove test of
10537 promote_function_args. Use promote_function_mode.
10538 * stmt.c (expand_value_return): Use promote_decl_mode.
10539 (expand_decl): Use promote_decl_mode.
10540
10541 * explow.c (promote_function_mode): Just call the target hook.
10542 * targhooks.c (default_promote_function_mode,
10543 default_promote_function_mode_always_promote): New.
10544 * targhooks.h (default_promote_function_mode,
10545 default_promote_function_mode_always_promote): Declare.
10546 * target.h (promote_function_args, promote_function_return): Remove.
10547 (promote_function_mode): New.
10548 * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
10549 TARGET_PROMOTE_FUNCTION_RETURN): Remove.
10550 (TARGET_PROMOTE_FUNCTION_MODE): New.
10551 (TARGET_CALLS): Adjust.
10552 * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
10553 TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
10554
10555 * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
10556 * config/s390/s390.c (s390_promote_function_mode): ... here,
10557 with pointer handling.
10558 (TARGET_PROMOTE_FUNCTION_MODE): Define.
10559 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
10560
10561 * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
10562 * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
10563 with pointer handling.
10564 (TARGET_PROMOTE_FUNCTION_MODE): Define.
10565 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
f100a4a8 10566
cde0f3fd
PB
10567 * config/sh/sh-protos.h (sh_promote_function_mode): New.
10568 * config/sh/sh.c (sh_promote_function_mode): New.
10569 (TARGET_PROMOTE_FUNCTION_MODE): Define.
10570 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
10571
10572 * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
10573 * config/cris/cris.c (cris_promote_function_mode): ... here.
10574 (TARGET_PROMOTE_FUNCTION_MODE): Define.
10575 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
10576
10577 * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
10578 * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
10579 (TARGET_PROMOTE_FUNCTION_MODE): Define.
10580 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
10581
10582 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
0589e07d
UB
10583 * config/arm/arm.c (arm_promote_function_mode): ... here, without
10584 complex type handling.
cde0f3fd
PB
10585 (TARGET_PROMOTE_FUNCTION_MODE): Define.
10586 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
10587
10588 * config/pa/pa.c (pa_promote_function_mode): New.
10589 (TARGET_PROMOTE_FUNCTION_MODE): Define.
10590 (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
10591
10592 * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
10593 TARGET_PROMOTE_FUNCTION_RETURN): Remove.
10594 (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
10595 * config/xtensa/xtensa.c: Likewise.
10596 * config/stormy16/stormy16.c: Likewise.
10597 * config/iq2000/iq2000.c: Likewise.
10598 * config/rs6000/rs6000.c: Likewise.
10599 * config/picochip/picochip.c: Likewise.
10600 * config/arc/arc.c: Likewise.
10601 * config/mcore/mcore.c: Likewise.
10602 * config/score/score.c: Likewise.
10603 * config/mips/mips.c: Likewise.
10604 * config/bfin/bfin.c: Likewise.
10605 * config/ia64/ia64.c: Likewise (disabled though).
10606
10607 * config/frv/frv.h: Remove pointless remark.
10608
10609 * doc/tm.texi (PROMOTE_FUNCTION_MODE,
10610 TARGET_PROMOTE_FUNCTION_ARGS,
10611 TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
10612 (TARGET_PROMOTE_FUNCTION_MODE): ... this.
10613
3cf0e270
SP
106142009-08-01 Sebastian Pop <sebastian.pop@amd.com>
10615
10616 * doc/invoke.texi (-fgraphite-force-parallel): Renamed
10617 -floop-parallelize-all.
10618 * toplev.c (process_options): Rename flag_graphite_force_parallel to
10619 flag_loop_parallelize_all.
10620 * tree-ssa-loop.c (gate_graphite_transforms): Same.
10621 * graphite.c (graphite_transform_loops): Same.
10622 * common.opt: Same.
10623 * graphite-poly.c (apply_poly_transforms): Same.
10624
6f7b8b70
RE
106252009-07-31 Richard Earnshaw <rearnsha@arm.com>
10626
10627 PR tree-optimization/40914
10628 * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
10629 if set, then check the delta field of the PMF record.
10630 (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
10631 (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
10632 call is stored in the delta.
10633
17320477
AN
106342009-07-31 Adam Nemet <anemet@caviumnetworks.com>
10635
10636 * config/mips/mips.md (*clear_upper32_dext): New pattern.
10637
e61c6562
UB
106382009-07-31 Uros Bizjak <ubizjak@gmail.com>
10639
10640 * config/i386/bsd.h (ASM_BYTE): New define.
10641 * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
10642 * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
10643 .byte. Use fputs or putc instead of fprintf where appropriate.
10644 * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte. Use
10645 fputs or putc instead of fprintf where appropriate.
10646 * config/i386/i386elf.h: Ditto.
10647 * config/i386/sysv4.h: Ditto.
f100a4a8 10648
e61c6562
UB
10649 * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
10650 * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
10651 (*tls_global_dynamic_64): Ditto.
10652
f100a4a8 106532009-07-31 Christian Bruel <christian.bruel@st.com>
ea2002ba
CB
10654
10655 * gcc/config.gcc (sh*-*-elf): test with_libgloss.
f100a4a8 10656
17eb4921
RR
106572009-07-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10658
f100a4a8 10659 * config/arm/arm.c (arm_arm_address_cost): Fix typo.
17eb4921
RR
10660 Remove dead code for MINUS.
10661
23865616
AG
106622009-07-31 Anthony Green <green@moxielogic.com>
10663
10664 * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
10665 $r12 in prologue.
10666 (moxie_expand_epilogue): Ditto for epilogue.
10667 (moxie_setup_incoming_varargs): ABI change. Use 5 registers for
10668 incoming arguments.
10669 (moxie_function_arg): Ditto.
10670 (moxie_pass_by_reference): Ditto.
10671 (moxie_arg_partial_bytes): Ditto.
10672 * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
10673 (FUNCTION_ARG_ADVANCE) Ditto.
10674 (REG_PARM_STACK_SPACE) Ditto.
10675 (FUNCTION_ARG_REGNO_P) Dito.
10676
10677 * config.gcc: Add moxie linux config support.
10678 * gcc/config/moxie/uclinux.h: New file.
10679
20e19db4
DD
106802009-07-31 DJ Delorie <dj@redhat.com>
10681
10682 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
10683 (UNSPECV_SP_SWITCH_E): New.
10684 (sp_switch_1): Change to an unspec.
10685 (sp_switch_2): Change to an unspec. Don't use post-inc when we
10686 replace $r15.
10687 * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
10688 reference the new stack's address
10689
204b560f
SP
106902009-07-30 Sebastian Pop <sebastian.pop@amd.com>
10691
10692 * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
10693 graphite-clast-to-gimple.o, graphite-dependences.o,
10694 graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
10695 graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
10696 (graphite-blocking.o,
10697 graphite-clast-to-gimple.o, graphite-dependences.o,
10698 graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
10699 graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
10700 * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
10701 * cfgloop.h (struct loop): Add can_be_parallel field.
10702 * common.opt (fgraphite-identity): Moved up.
10703 (fgraphite-force-parallel): New flag.
10704 * graphite.c: Rewrite.
10705 * graphite.h: Rewrite.
10706 * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
10707 after Graphite.
10708 * toplev.c (graphite_out_file): New file descriptor.
10709 (graphite_in_file): New.
10710 (process_options): flag_graphite_force_parallel cannot be used without
10711 Graphite.
10712 * tree-ssa-loop.c: Include toplev.h.
10713 (gate_graphite_transforms): Enable flag_graphite for
10714 flag_graphite_force_parallel.
10715
2abae5f1
SP
107162009-07-30 Sebastian Pop <sebastian.pop@amd.com>
10717
10718 * ChangeLog.graphite: New.
10719 * graphite-blocking.c: New.
10720 * graphite-clast-to-gimple.c: New.
10721 * graphite-clast-to-gimple.h: New.
10722 * graphite-dependences.c: New.
10723 * graphite-dependences.h: New.
10724 * graphite-interchange.c: New.
10725 * graphite-poly.c: New.
10726 * graphite-poly.h: New.
10727 * graphite-ppl.c: New.
10728 * graphite-ppl.h: New.
10729 * graphite-scop-detection.c: New.
10730 * graphite-scop-detection.h: New.
10731 * graphite-sese-to-poly.c: New.
10732 * graphite-sese-to-poly.h: New.
10733 * sese.c: New.
10734 * sese.h: New.
10735
e7c705bb
SP
107362009-07-30 Sebastian Pop <sebastian.pop@amd.com>
10737
10738 * tree-chrec.c (evolution_function_right_is_integer_cst): New.
10739 * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
10740
765deab7
SP
107412009-07-30 Sebastian Pop <sebastian.pop@amd.com>
10742
10743 * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
10744 (scev_is_linear_expression): Return false if the evolution is not
10745 affine multivariate.
10746
ed91d661
SP
107472009-07-30 Sebastian Pop <sebastian.pop@amd.com>
10748
10749 * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
10750 * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
10751
a37d995a
SP
107522009-07-30 Sebastian Pop <sebastian.pop@amd.com>
10753
10754 * tree-data-ref.c (debug_data_references): New.
10755 (debug_data_reference): New.
10756 * tree-data-ref.h (debug_data_references): Declared.
10757 (debug_data_reference): Declared.
10758
ae5b9860
SP
107592009-07-30 Sebastian Pop <sebastian.pop@amd.com>
10760
10761 * tree-data-ref.c (stmt_simple_memref_p: Removed.
10762 * tree-data-ref.h (scop_p): Removed.
10763 (struct data_reference): Remove field scop.
10764 (DR_SCOP): Removed.
10765 (stmt_simple_memref_p): Removed.
10766
8e74b397
SP
107672009-07-30 Sebastian Pop <sebastian.pop@amd.com>
10768
10769 * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
10770 * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
10771 basic block empty.
10772
109e0d57
SP
107732009-07-30 Sebastian Pop <sebastian.pop@amd.com>
10774
10775 * doc/invoke.texi (-fgraphite-force-parallel): Documented.
10776
66a7961b
SP
107772009-07-30 Sebastian Pop <sebastian.pop@amd.com>
10778
10779 * doc/invoke.texi (-fgraphite-identity): Documented.
10780
52bdd655
SP
107812009-07-30 Sebastian Pop <sebastian.pop@amd.com>
10782
10783 * tree-scalar-evolution.c: Fix comment.
10784 (instantiate_scev_1): Return unknow from scev instantiation if the
10785 result is not above instantiate_below.
10786
42e6eec5
SP
107872009-07-30 Sebastian Pop <sebastian.pop@amd.com>
10788
10789 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
10790 static anymore. Instantiate the symbols that may have been introduced
10791 by chrec_apply.
10792 * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
10793 Declared.
10794
77806925
DD
107952009-07-30 DJ Delorie <dj@redhat.com>
10796
10797 * config/mep/mep.c (mep_asm_init_sections): Add section flags and
10798 .vliw directive to VLIW sections.
10799
6efbd53f
RW
108002009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10801
10802 * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
10803 New variables.
10804 ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
10805 (AUTOHEADER): New variable.
10806 ($(srcdir)/cstamp-h.in): Use it.
10807
29e6733c
MM
108082009-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
10809 Pat Haugen <pthaugen@us.ibm.com>
10810 Revital Eres <ERES@il.ibm.com>
10811
10812 * config/rs6000/vector.md (VEC_F): Add VSX support.
10813 (VEC_A): Ditto.
10814 (VEC_N): Ditto.
10815 (mov<mode>): Ditto.
10816 (vector_load_<mode>): Ditto.
10817 (vector_store_<mode>): Ditto.
10818 (vector GPR move split): Ditto.
10819 (vec_reload_and_plus_<mptrsize>): Ditto.
10820 (vec_reload_and_reg_<mptrsize>): Ditto.
10821 (add<mode>3): Ditto.
10822 (sub<mode>3): Ditto.
10823 (mul<mode>3): Ditto.
10824 (neg<mode>2): Ditto.
10825 (abs<mode>2): Ditto.
10826 (smin<mode>3): Ditto.
10827 (smax<mode>3): Ditto.
10828 (vector_eq<mode>): Ditto.
10829 (vector_gt<mode>): Ditto.
10830 (vector_ge<mode>): Ditto.
10831 (vector_gtu<mode>): Ditto.
10832 (vector_select_<mode>_uns): Ditto.
10833 (vector_eq_<mode>_p): Ditto.
10834 (vector_gt_<mode>_p): Ditto.
10835 (vector_ge_<mode>_p): Ditto.
10836 (vector_gtu_<mode>_p): Ditto.
10837 (cr6_test_for_zero): Ditto.
10838 (cr6_test_for_zero_reverse): Ditto.
10839 (cr6_test_for_lt): Ditto.
10840 (cr6_test_for_lt_reverse): Ditto.
10841 (xor<mode>3): Ditto.
10842 (ior<mode>3): Ditto.
10843 (and<mode>3): Ditto.
10844 (one_cmpl<mode>2): Ditto.
10845 (nor<mode>2): Ditto.
10846 (andc<mode>2): Ditto.
10847 (float<VEC_int<mode>2): Ditto.
10848 (unsigned_float<VEC_int><mode>2): Ditto.
10849 (fix_trunc<mode><VEC_int>2): Ditto.
10850 (fixuns_trunc<mode><VEC_int>2): Ditto.
10851 (vec_init<mode>):
10852 (vec_set<mode>): Ditto.
10853 (vec_extract<mode>): Ditto.
10854 (vec_interleave_highv4sf): Ditto.
10855 (vec_interleave_lowv4sf): Ditto.
10856 (vec_realign_load_<mode>): Ditto.
10857 (vec_shl_<mode>): Ditto.
10858 (vec_shr_<mode>): Ditto.
10859 (div<mode>3): New patterns for VSX.
10860 (vec_interleave_highv2df): Ditto.
10861 (vec_interleave_lowv2df): Ditto.
10862 (vec_pack_trunc_v2df): Ditto.
10863 (vec_pack_sfix_trunc_v2df): Ditto.
10864 (vec_pack_ufix_trunc_v2df): Ditto.
10865 (vec_unpacks_hi_v4sf): Ditto.
10866 (vec_unpacks_lo_v4sf): Ditto.
10867 (vec_unpacks_float_hi_v4si): Ditto.
29e6733c 10868 (vec_unpacks_float_lo_v4si): Ditto.
1262fd02
UB
10869 (vec_unpacku_float_hi_v4si): Ditto.
10870 (vec_unpacku_float_lo_v4si): Ditto.
29e6733c
MM
10871 (movmisalign<mode>): Ditto.
10872 (vector_ceil<mode>2): New patterns for vectorizing math library.
10873 (vector_floor<mode>2): Ditto.
10874 (vector_btrunc<mode>2): Ditto.
10875 (vector_copysign<mode>3): Ditto.
10876
10877 * config/rs6000/predicates.md (easy_vector_constant_msb): New
e61c6562 10878 predicate for setting the high bit in each word, used for copysign.
29e6733c
MM
10879
10880 * config/rs6000/ppc-asm.h (f19): Whitespace.
10881 (f32-f63): Define if VSX.
10882 (v0-v31): Define if Altivec.
10883 (vs0-vs63): Define if VSX.
10884
10885 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
10886
10887 * config/rs6000/power7.md: New file, provide tuning parameters for
10888 -mcpu=power7.
10889
e61c6562 10890 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
29e6733c
MM
10891 (rs6000_cpu_cpp_builtins): Ditto.
10892 (altivec_overloaded_builtins): Ditto.
10893 (altivec_resolve_overloaded_builtin): Ditto.
10894
10895 * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
10896 debug switch to disable vectorizing simple math builtin
10897 functions.
10898
10899 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
10900 Vectorize simple math builtin functions.
10901 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
10902 hook to vectorize math builtins.
10903 (rs6000_override_options): Enable -mvsx on -mcpu=power7.
10904 (rs6000_builtin_conversion): Add VSX/power7 support.
10905 (rs6000_builtin_vec_perm): Ditto.
10906 (vsplits_constant): Add support for loading up a vector constant
10907 with just the high bit set in each part.
10908 (rs6000_expand_vector_init): Add VSX/power7 support.
10909 (rs6000_expand_vector_set): Ditto.
10910 (rs6000_expand_vector_extract): Ditto.
10911 (rs6000_emit_move): Ditto.
10912 (bdesc_3arg): Ditto.
10913 (bdesc_2arg): Ditto.
10914 (bdesc_1arg): Ditto.
10915 (rs6000_expand_ternop_builtin): Ditto.
10916 (altivec_expand_builtin): Ditto.
10917 (rs6000_expand_unop_builtin): Ditto.
10918 (rs6000_init_builtins): Ditto.
10919 (altivec_init_builtins): Ditto.
10920 (builtin_function_type): Ditto.
10921 (rs6000_common_init_builtins): Ditto.
10922 (rs6000_handle_altivec_attribute); Ditto.
10923 (rs6000_mangle_type): Ditto.
10924 (rs6000_vector_mode_supported_p): Ditto.
10925 (rs6000_mode_dependent_address): Altivec addresses with AND -16
10926 are mode dependent.
10927
10928 * config/rs6000/vsx.md: New file for VSX support.
10929
10930 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
10931 identifing values with just the most significant bit set.
10932 (enum rs6000_builtins): Add builtins for VSX. Add simple math
10933 vectorized builtins.
10934
10935 * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
10936 (UNSPEC_VRFIM): Delete.
10937 (splitter for loading up vector with most significant bit): New
10938 splitter for vectorizing copysign.
10939 (altivec_vrfiz): Rename from altivec_fturncv4sf2. Add support for
10940 vectorizing simple math functions.
e61c6562 10941 (altivec_vrfip): Add support for vectorizing simple math functions.
29e6733c
MM
10942 (altivec_vrfim): Ditto.
10943 (altivec_copysign_v4sf3): New insn for Altivec copysign support.
10944
10945 * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
10946 (power7.md, vsx.md): Include for power7 support.
10947 (copysigndf3): Use VSX instructions if -mvsx.
10948 (negdf2_fpr): Ditto.
10949 (absdf2_fpr): Ditto.
10950 (nabsdf2_fpr): Ditto.
10951 (adddf3_fpr): Ditto.
10952 (subdf3_fpr): Ditto.
10953 (muldf3_fpr): Ditto.
10954 (divdf3_fpr): Ditto.
10955 (fix_truncdfdi2_fpr): Ditto.
10956 (cmpdf_internal1): Ditto.
10957 (fred, fred_fpr): Convert into expander/insn to add VSX support.
10958 (btruncdf2, btruncdf2_fpr): Ditto.
10959 (ceildf2, ceildf2_fpr): Ditto.
10960 (floordf2, floordf2_fpr): Ditto.
10961 (floatdidf2, floatdidf2_fpr): Ditto.
10962 (fmadddf4_fpr): Name insn. Use VSX instructions if -mvsx.
10963 (fmsubdf4_fpr): Ditto.
10964 (fnmadddf4_fpr_1): Ditto.
10965 (fnmadddf4_fpr_2): Ditto.
10966 (fnmsubdf4_fpr_1): Ditto.
10967 (fnmsubdf4_fpr_2): Ditto.
10968 (fixuns_truncdfdi2): Add expander for VSX support.
10969 (fix_truncdfdi2): Ditto.
10970 (fix_truncdfsi2): Ditto.
10971 (ftruncdf2): Ditto.
10972 (btruncsf2): Whitespace.
10973 (movdf_hardfloat32): Add support for VSX registers.
10974 (movdf_softfloat32): Ditto.
10975 (movdf_hardfloat64): Ditto.
10976 (movdf_hardfloat64_mfpgpr): Ditto.
10977 (movdf_softfloat64): Ditto.
10978 (movti splitters): Add check for vector registers supporting
10979 TImode in the future.
10980 (bpermd): Add power7 bpermd instruction.
10981
10982 * config/rs6000/altivec.h (vec_div): Define if VSX.
10983 (vec_mul): Ditto.
10984 (vec_msub): Ditto.
10985 (vec_nmadd): Ditto.
10986 (vec_nearbyint): Ditto.
10987 (vec_rint): Ditto.
10988 (vec_sqrt): Ditto.
e61c6562
UB
10989 (all predicates): Use the generic builtin function, and not the V4SF
10990 specific function so that the predicates will work with VSX's V2DF.
29e6733c
MM
10991 (vec_all_*): Ditto.
10992 (vec_any_*): Ditto.
10993
10994 * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
10995 Document new VSX functions and types.
10996
10997 * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
10998 switches.
10999
11000 * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
11001 "wa", and "j" constraints. Modify "v" to talk about Altivec
11002 instead of just vector.
11003
f5045c96
AM
110042009-07-30 Andrew MacLeod <amacleod@redhat.com>
11005
11006 PR debug/26475
11007 * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
11008 location for phi arguments.
11009 (rewrite_update_phi_arguments): Find locations for reaching defs.
11010 * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
11011 Add location to add_phi_arg calls.
11012 * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
11013 * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
11014 split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
11015 * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
11016 create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
11017 * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
11018 * tree-phinodes.c (make_phi_node): Initialize location.
11019 (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
11020 (add_phi_arg): Add location parameter.
11021 (remove_phi_arg_num): Move location when moving phi argument.
f100a4a8 11022 * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
f5045c96
AM
11023 location.
11024 * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
11025 slpeel_update_phi_nodes_for_guard1,
11026 slpeel_update_phi_nodes_for_guard2,
11027 slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
11028 vect_loop_versioning): Set locations.
11029 * tree-parloops.c (create_phi_for_local_result,
11030 transform_to_exit_first_loop, create_parallel_loop): Add locations.
11031 * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
11032 * tree-vect-loop.c (get_initial_def_for_induction,
11033 vect_create_epilog_for_reduction, vect_finalize_reduction): Add
11034 locations.
11035 * tree-flow-inline.h (gimple_phi_arg_location): New. Return locus.
11036 (gimple_phi_arg_location_from_edge): New. Return locus from an edge.
11037 (gimple_phi_arg_set_location): New. Set locus.
11038 (gimple_phi_arg_has_location): New. Check for locus.
11039 (redirect_edge_var_map_location): New. Return locus from var_map.
11040 * tree-vect-data-refs.c (vect_setup_realignment): Set location.
11041 * tree-ssa-phiopt.c (conditional_replacement): Set locus when
11042 combining PHI arguments.
11043 (cond_store_replacement): Set location.
11044 * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
11045 * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
11046 scop_add_exit_phis_edge): Add locations.
11047 * tree-cfgcleanup.c (remove_forwarder_block,
11048 remove_forwarder_block_with_phi): Add locations.
11049 * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
11050 * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
11051 locations.
11052 * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
11053 * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
11054 flush_pending_stmts): Add source location.
11055 * lambda-code.c (perfect_nestify): Maintain location stack with argument
11056 stack to preserve locations.
11057 * tree-vect-stmts.c (vectorizable_load): Add location.
11058 * tree-inline.c (copy_phis_for_bb): Copy locus.
11059 (setup_one_parameter): Add call locus to inlined parameter stmts.
11060 (initialize_inlined_parameters): Pass in call location as parameter
11061 assignment locus.
11062 (tree_function_versioning): Pass location to setup_one_parameter.
11063 * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
11064 * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
11065 copy and edge lists.
11066 (insert_partition_copy_on_edge, insert_value_copy_on_edge,
f100a4a8 11067 insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
f5045c96
AM
11068 locus parameter and override the stmt default if provided.
11069 (new_elim_graph, clear_elim_graph, delete_elim_graph,
11070 elim_graph_add_edge, elim_graph_remove_succ_edge,
11071 FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
11072 elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
11073 eliminate_phi): Add locus info in elimination graph for each edge and
11074 value copy.
11075 (insert_backedge_copies): Copy locus if present.
11076 * tree-flow.h (struct _edge_var_map): Add locus field.
11077 * tree-switch_conversions.c (fix_phi_nodes): Add locations.
11078 * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
f100a4a8 11079 add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
f5045c96
AM
11080 locations.
11081 * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
f100a4a8 11082
2d4b90b1
MJ
110832009-07-30 Martin Jambor <mjambor@suse.cz>
11084
11085 PR tree-optimization/40570
11086 * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
11087 use inlining loops.
11088
08dab97a
RL
110892009-07-30 Razya Ladelsky <razya@il.ibm.com>
11090
11091 * ssa-loop-manip.c: Include langhooks.h.
11092 (rewrite_phi_with_iv): New.
11093 (rewrite_all_phi_nodes_with_iv): New.
11094 (canonicalize_loop_ivs): Move here from tree-parloops.c.
11095 Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
11096 * tree-parloops.c (loop_parallel_p): Move out all conditions
11097 except dependency check.
11098 (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
11099 (gen_parallel_loop): Call canonicalize_loop_ivs without
11100 reduction_list argument.
11101 (build_new_reduction): New.
11102 (gather_scalar_reductions): New.
11103 (try_get_loop_niter): New.
11104 (try_create_reduction_list): New.
11105 (parallleize_loops): Change the parallel conditions check.
11106 * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
11107 * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
11108
88c2fd3d
DK
111092009-07-30 Dave Korn <dave.korn.cygwin@gmail.com>
11110
11111 * opt-functions.awk (opt_args): Allow argument to be enclosed in
11112 curly braces.
11113 * doc/options.texi (Option properties): Mention new quoting syntax.
11114
5ea8f977
DR
111152009-07-29 Douglas B Rupp <rupp@gnat.com>
11116
11117 * config/alpha/alpha.c (alpha_start_function):
11118 Handle VMS_DEBUG_MAIN_POINTER
11119 * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
11120 * doc/invoke.texi: Document -mdebug-main switch.
11121
9b2a5ef7
RH
111222009-07-29 Richard Henderson <rth@redhat.com>
11123
11124 * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
11125 (cgraph_create_edge_including_clones): Likewise.
11126 * tree-inline.c (copy_bb): Operate on the correct edges
11127 when updating the callgraph.
11128
71cd2220
DR
111292009-07-29 Douglas B Rupp <rupp@gnat.com>
11130
11131 * config/alpha/vms-cc.c: Deleted.
11132 * config/alpha/vms-ld.c: Deleted.
11133 * config/alpha/t-vms64: Moved to config/vms
11134 * config/alpha/vms-crt0-64.c: Moved to config/vms
11135 * config/alpha/vms-crt0.c: Moved to config/vms
11136 * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
11137 * config/alpha/vms-psxcrt0.c: Moved to config/vms
11138 * config/alpha/xm-vms.h: Moved to config/vms
11139 * config/alpha/x-vms: Moved to config/vms
11140 * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
11141 config/vms/t-vms.
11142 * config/vms/t-vms: Moved here from config/alpha. Alpha specific
11143 parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
11144 (version): Set.
11145 * config/vms/t-vms64: Moved here from config/alpha
11146 * config/vms/vms-crt0-64.c: Moved here from config/alpha.
11147 (argc,argv,envp): Enforce 32bit malloc'ing.
11148 * config/vms/vms-psxcrt0-64.c: Likewise.
11149 * config/vms/vms-crt0.c: Moved here from config/alpha.
11150 * config/vms/vms-psxcrt0.c: Likewise.
11151 * config/vms/vms-crtl-64.h: New file.
11152 * config/vms/vms-crtl.h: New file.
11153 * config/vms/vms.opt: New file.
11154 * config/vms/xm-vms64.h: New file.
11155 * config/vms/xm-vms.h: Moved here from config/alpha.
11156 (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
11157 Set.
11158 * config/vms/x-vms: Moved here from config/alpha.
11159 (version, VMS_EXTRA_PARTS): Moved to t-vms.
11160 (vms-ld.o, vms-cc.o): Removed.
11161 (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
11162
82b75b46
DR
111632009-07-29 Douglas B Rupp <rupp@gnat.com>
11164
11165 * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
11166 correct stack (obvious VMS fix).
11167
c2cffdc8
DR
111682009-07-29 Douglas B Rupp <rupp@gnat.com>
11169
11170 * dwarf2out.c (output_file_names): Output VMS style file name, size,
11171 date, version info if VMS_DEBUGGING_INFO defined.
11172 * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
11173 size, date calculating code moved here.
11174
0244b03f
PB
111752009-07-29 Paul Brook <paul@codesourcery.com>
11176
11177 * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
11178 do_push/do_pop.
11179
bc4eac6d
UB
111802009-07-29 Uros Bizjak <ubizjak@gmail.com>
11181
11182 PR target/40577
11183 * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
11184 to DImode when generating insq_le insn.
11185
6f1595d3
DR
111862009-07-28 Douglas B Rupp <rupp@gnat.com>
11187
11188 * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
11189 New macro set for VMS_DEBUGGGING_INFO.
11190 (AT_string_form): Use it.
11191
820ca276
DD
111922009-07-28 DJ Delorie <dj@redhat.com>
11193
11194 * config/mep/mep.c (vtext_section): New.
11195 (vftext_section): New.
11196 (ftext_section): New.
11197 (mep_select_section): Add support for functions.
11198 (mep_unique_section): Likewise.
11199 (mep_asm_init_sections): Likewise.
3fb0a660 11200 (mep_encode_section_info): Remove it from here.
820ca276
DD
11201
11202 * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
11203
e2121f17
PB
112042009-07-28 Paolo Bonzini <bonzinI@gnu.org>
11205
11206 * tree.h (TREE_DEPRECATED): Document it is used for types too.
11207 (TYPE_VECTOR_OPAQUE): Use default_def_flag
11208
dde08f9b
DR
112092009-07-28 Douglas B Rupp <rupp@gnat.com>
11210
11211 * dwarf2out.c (output_file_names): Test new macro
11212 DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
11213 (add_comp_dir_attribute): Likewise.
11214
032502c2
KT
112152009-07-28 Kai Tietz <kai.tietz@onevision.com>
11216
11217 * config/i386/mingw-w64.h (LINK_SPEC): Add
11218 separating space between commands.
11219
b29c2ffd
JH
112202009-07-28 Jan Hubicka <jh@suse.cz>
11221
11222 PR tree-optimization/40759
11223 * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
11224 for renaming.
11225
683a1be6
DD
112262009-07-27 DJ Delorie <dj@redhat.com>
11227
11228 * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
11229 types are dword-aligned.
11230 (mep_expand_va_start): Likewise.
11231
cf157324 112322009-07-27 Olivier Hainque <hainque@adacore.com>
bc4eac6d 11233 Douglas B Rupp <rupp@gnat.com>
cf157324
OH
11234
11235 * convert.c (convert_to_pointer): Don't assume the target
11236 pointer type is POINTER_SIZE long. Fetch its precision instead.
11237
d4d798a3
DR
112382009-07-27 Douglas B Rupp <rupp@gnat.com>
11239
11240 * system.h (fopen): Undefine if macro.
11241
5823ade1
JJ
112422009-07-27 Jakub Jelinek <jakub@redhat.com>
11243
11244 * dwarf2out.c (output_cfi_p): Removed.
11245 (output_cfis): New function.
11246 (output_fde): New function, split from output_call_frame_info.
11247 (output_call_frame_info): Use it.
11248 (dwarf2out_switch_text_section): Use output_cfis.
11249
648abd76
KT
112502009-07-24 Kai Tietz <kai.tietz@onevision.com>
11251
11252 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
11253 TARGET_BI_ARCH is specified without enabling SJLJ.
11254 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
11255 if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
11256
4b89636e
MP
112572009-07-26 Mikael Pettersson <mikpe@it.uu.se>
11258
11259 * arm.md (negdi2): Use DImode if forcing a value into a register.
11260
63827fb8
IR
112612009-07-26 Ira Rosen <irar@il.ibm.com>
11262
11263 PR tree-optimization/40801
11264 * tree-vect-stmts.c (vectorizable_call): Get previous copy
11265 of vector operand from the previous copy of vector statement.
11266 Pass the correct definition type value to
11267 vect_get_vec_def_for_stmt_copy().
11268
db9369bb
JDA
112692009-07-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11270
11271 * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
11272 const char ** conversion.
11273
2df77822
DD
112742009-07-25 David Daney <ddaney@caviumnetworks.com>
11275
11276 * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
11277 fancy_abort() if !ENABLE_ASSERT_CHECKING.
11278 (gcc_unreachable): Invoke __builtin_unreachable() if
11279 !ENABLE_ASSERT_CHECKING.
11280
1e211590
DD
112812009-07-25 David Daney <ddaney@caviumnetworks.com>
11282
11283 PR rtl-optimization/40445
11284 * emit-rtl.c (next_nonnote_insn_bb): New function.
11285 * rtl.h (next_nonnote_insn_bb): Declare new function.
11286 * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
11287 with no successors that is the successor of the ENTRY_BLOCK.
11288 Continue from the top after removing an empty fallthrough block.
11289 * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
11290 of next_nonnote_insn.
11291
ba21aba3
DD
112922009-07-25 David Daney <ddaney@caviumnetworks.com>
11293
bc4eac6d 11294 * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
f100a4a8 11295
86631ea3
MJ
112962009-07-25 Martin Jambor <mjambor@suse.cz>
11297
11298 * c-common.c (c_common_attribute_table): New element for noclone.
11299 (handle_noclone_attribute): New function. Forward-declare.
11300 * tree-inline.c (tree_versionable_function_p): Check for noclone
11301 attribute.
11302 * doc/extend.texi (Labels as Values): Document need for noclone.
11303 (Function Attributes): Document noclone attribute.
11304
0cf856b7
JJ
113052009-07-25 Jakub Jelinek <jakub@redhat.com>
11306
11307 PR rtl-optimization/34999
11308 * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
11309 and dw_fde_switched_cold_to_hot fields.
11310 (output_cfi_p): New function.
11311 (output_call_frame_info): If fde->dw_fde_switched_sections,
11312 output 2 FDEs instead of one with corrupted header.
11313 (dwarf2out_do_cfi_startproc): New function.
11314 (dwarf2out_begin_prologue): Use it. Initialize fde->dw_fde_switch_cfi
11315 and fde->dw_fde_switched_cold_to_hot.
11316 (dwarf2out_switch_text_section): Compute
11317 fde->dw_fde_switched_cold_to_hot. Switch to new text section here.
11318 If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
11319 dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
11320 Otherwise, compute fde->dw_fde_switch_cfi.
11321
2a2869d6
CC
113222009-07-24 Cary Coutant <ccoutant@google.com>
11323
11324 * tree-cfg.c (assign_discriminator): Add explicit parentheses.
11325
cbea518e
CC
113262009-07-24 Cary Coutant <ccoutant@google.com>
11327
11328 * cfghooks.c (split_block): Copy discriminator to new block.
11329 * tree-cfg.c (assign_discriminator): Check location of last
11330 instruction in block as well as first.
11331
87da3843
UB
113322009-07-24 Uros Bizjak <ubizjak@gmail.com>
11333
11334 * config/i386/linux.c: Use fputs or putc instead of fprintf
11335 where appropriate.
11336 * config/i386/gas.h: Ditto.
11337 * config/i386/x86-64.h: Ditto.
11338 * config/i386/att.h: Ditto.
11339
a22fb74c
AK
113402009-07-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11341
11342 * expmed.c (emit_store_flag): Use a recursive call to optimize the
11343 xor case.
11344
5b9633c8
MJ
113452009-07-24 Martin Jambor <mjambor@suse.cz>
11346
11347 * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
11348 (ipa_push_func_to_list_1): Declare.
11349 (ipa_push_func_to_list): New function.
11350
11351 * ipa-prop.c (ipa_push_func_to_list_1): New function.
11352 (ipa_init_func_list): Call ipa_push_func_to_list_1.
11353 (ipa_push_func_to_list): Removed.
11354 (ipa_pop_func_from_list): Clear node_enqueued flag.
11355
ff5b964d 113562009-07-24 Andreas Krebbel <krebbel1@de.ibm.com>
f100a4a8 11357
ff5b964d
AK
11358 * config/s390/s390.c (override_options): Default
11359 max-unrolled-insns to 100 for z10 tuning.
11360
223cf84d
TG
113612009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
11362
11363 * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
11364 tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
11365 tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
11366 tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
11367 tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
11368 tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
11369 lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
11370
3a802a9e
KT
113712009-07-24 Kai Tietz <kai.tietz@onevision.com>
11372
11373 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
11374 use default set in mingw32.h header.
11375 * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
11376 64-bit /mingw/include path.
11377 (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
11378 path.
11379
c580edc8
NV
113802009-07-23 Neil Vachharajani <nvachhar@google.com>
11381
11382 PR rtl-optimization/40209
11383 * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
11384
0d42d490
UB
113852009-07-23 Uros Bizjak <ubizjak@gmail.com>
11386
11387 * config/i386/i386.c: Use ASM_LONG instead of .long. Concatenate
11388 ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
11389 with the rest of string where appropriate. Use fputs or putc
11390 instead of fprintf where appropriate.
11391
a72c65c7
MM
113922009-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
11393 Pat Haugen <pthaugen@us.ibm.com>
11394 Revital Eres <ERES@il.ibm.com>
11395
11396 * config/rs6000/vector.md: New file. Move most of the vector
11397 expander support here from altivec.md to allow for the VSX vector
11398 unit in the future. Add support for secondary_reload patterns.
11399 Rewrite the patterns for vector comparison, and vector comparison
11400 predicate instructions so that the RTL expresses the desired
11401 behavior, instead of using unspec.
11402
11403 * config/rs6000/constraints.md ("f" constraint): Use
11404 rs6000_constraints to hold the precalculated register class.
11405 ("d" constraint): Ditto.
11406 ("wd" constraint): New constraint for VSX.
11407 ("wf" constraint): Ditto.
11408 ("ws" constraint): Ditto.
11409 ("wa" constraint): Ditto.
11410 ("wZ" constraint): Ditto.
11411 ("j" constraint): Ditto.
11412
11413 * config/rs6000/predicates.md (vsx_register_operand): New
11414 predicate for VSX.
11415 (vfloat_operand): New predicate for vector.md.
11416 (vint_operand): Ditto.
11417 (vlogical_operand): Ditto.
11418 (easy_fp_constant): If VSX, 0.0 is an easy constant.
11419 (easy_vector_constant): Add VSX support.
11420 (altivec_indexed_or_indirect_operand): New predicate for
11421 recognizing Altivec style memory references with AND -16.
11422
11423 * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
11424 for vector secondary reload support.
87da3843
UB
11425 (rs6000_vector_reg_class): Delete, replacing it with
11426 rs6000_constraints.
a72c65c7
MM
11427 (rs6000_vsx_reg_class): Ditto.
11428 (rs6000_constraints): New array to hold the register classes of
11429 each of the register constraints that can vary at runtime.
11430 (builtin_mode_to_type): New static array for builtin function type
11431 creation.
11432 (builtin_hash_table): New static hash table for builtin function
11433 type creation.
11434 (TARGET_SECONDARY_RELOAD): Define target hook.
11435 (TARGET_IRA_COVER_CLASSES): Ditto.
11436 (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
0d42d490 11437 registers are 128 bits if VSX memory reference instructions are used.
a72c65c7
MM
11438 (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
11439 unit is being used.
11440 (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
11441 (rs6000_debug_reg_global): Move -mdebug=reg statements here.
11442 Print several of the scheduling related parameters.
11443 (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
11444 rs6000_constraints instead of rs6000_vector_reg_class. Move
11445 -mdebug=reg code to rs6000_debug_reg_global. Add support for
11446 -mvsx-align-128 debug switch. Drop testing float_p if VSX or
11447 Altivec. Add VSX support. Setup for secondary reload support on
11448 Altivec/VSX registers.
11449 (rs6000_override_options): Make power7 set the scheduling groups
11450 like the power5. Add support for new debug switches to override
11451 the scheduling defaults. Temporarily disable -mcpu=power7 from
11452 setting -mvsx. Add support for debug switches -malways-hint,
11453 -msched-groups, and -malign-branch-targets.
11454 (rs6000_buitlin_conversion): Add support for returning unsigned
11455 vector conversion functions to fix regressions due to stricter
11456 type checking.
11457 (rs6000_builtin_mul_widen_even): Ditto.
11458 (rs6000_builtin_mul_widen_odd): Ditto.
11459 (rs6000_builtin_vec_perm): Ditto.
11460 (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
11461 (rs6000_expand_vector_init): Initial VSX support for using xxlxor
11462 to zero a register.
11463 (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
11464 generated upstream.
11465 (bdesc_3arg): Add builtins for unsigned types. Add builtins for
11466 VSX types for bit operations. Changes to accomidate vector.md.
11467 (bdesc_2arg): Ditto.
11468 (bdesc_1arg): Ditto.
11469 (struct builtin_description_predicates): Rewrite predicate
11470 handling so that RTL describes the operation, instead of passing
11471 the instruction to be used as a string argument.
11472 (bdesc_altivec_preds): Ditto.
11473 (altivec_expand_predicate_builtin): Ditto.
11474 (altivec_expand_builtin): Ditto.
11475 (rs6000_expand_ternop_builtin): Use a switch instead of an if
11476 statement for vsldoi support.
0d42d490 11477 (altivec_expand_ld_builtin): Change to use new names from vector.md.
a72c65c7
MM
11478 (altivec_expand_st_builtin): Ditto.
11479 (paired_expand_builtin): Whitespace changes.
11480 (rs6000_init_builtins): Add V2DF/V2DI types. Initialize the
11481 builtin_mode_to_type table for secondary reload. Call
11482 builtin_function_type to build random builtin functions.
11483 (altivec_init_builtins): Change to use builtin_function_type to
11484 create builtin function types dynamically as we need them.
11485 (builtin_hash_function): New support for hashing the tree types
11486 for builtin function as we need it, rather than trying to build
0d42d490 11487 all of the trees that we need. Add initial preliminary VSX support.
a72c65c7
MM
11488 (builtin_function_type): Ditto.
11489 (builtin_function_eq): Ditto.
11490 (builtin_hash_struct): Ditto.
11491 (rs6000_init_builtins): Ditto.
11492 (rs6000_common_init_builtins): Ditto.
11493 (altivec_init_builtins): Ditto.
11494 (rs6000_common_init_builtins): Ditto.
11495 (enum reload_reg_type): New enum for simplifing reg classes.
11496 (rs6000_reload_register_type): Simplify register classes into GPR,
0d42d490 11497 Vector, and other registers. Altivec and VSX addresses in reload.
a72c65c7
MM
11498 (rs6000_secondary_reload_inner): Ditto.
11499 (rs6000_ira_cover_classes): New target hook, that returns the
11500 appropriate cover classes, based on -mvsx being used or not.
11501 (rs6000_secondary_reload_class): Add VSX support.
11502 (get_vec_cmp_insn): Delete, rewrite vector conditionals.
11503 (get_vsel_insn): Ditto.
11504 (rs6000_emit_vector_compare): Rewrite vector conditional support
11505 so that where we can, we use RTL operators, instead of blindly use
11506 UNSPEC.
11507 (rs6000_emit_vector_select): Ditto.
11508 (rs6000_emit_vector_cond_expr): Ditto.
0d42d490 11509 (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
a72c65c7 11510 (create_TOC_reference): Add -mdebug=addr support.
0d42d490 11511 (emit_frame_save): VSX loads/stores need register indexed addressing.
a72c65c7
MM
11512
11513 * config/rs6000/rs6000.md: Include vector.md.
11514
11515 * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
11516
11517 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11518 support for V2DI, V2DF in logical, permute, select operations.
11519
11520 * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
11521 switch for vsx/power7.
11522 (-mvsx-scalar-memory): Ditto.
11523 (-mvsx-align-128): Ditto.
11524 (-mallow-movmisalign): Ditto.
11525 (-mallow-df-permute): Ditto.
11526 (-msched-groups): Ditto.
11527 (-malways-hint): Ditto.
11528 (-malign-branch-targets): Ditto.
f100a4a8 11529
a72c65c7
MM
11530 * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
11531 hook instead.
11532 (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
11533 (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
11534 (rs6000_vector_reg_class): Delete.
11535 (rs6000_vsx_reg_class): Ditto.
11536 (enum rs6000_reg_class_enum): New enum for the constraints that
11537 vary based on target switches.
11538 (rs6000_constraints): New array to hold the register class for all
11539 of the register constraints that vary based on the switches used.
11540 (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
11541 (enum rs6000_builtins): Add unsigned varients for the builtin
11542 declarations returned by target hooks for expanding multiplies,
11543 select, and permute operations. Add VSX builtins.
11544 (enum rs6000_builtin_type_index): Add entries for VSX.
11545 (V2DI_type_node): Ditto.
11546 (V2DF_type_node): Ditto.
11547 (unsigned_V2DI_type_node): Ditto.
11548 (bool_long_type_node): Ditto.
11549 (intDI_type_internal_node): Ditto.
11550 (uintDI_type_internal_node): Ditto.
11551 (double_type_internal_node): Ditto.
11552
11553 * config/rs6000/altivec.md (whole file): Move all expanders to
11554 vector.md from altivec.md. Rename insn matching functions to be
11555 altivec_foo.
11556 (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
11557 (altivec_vcmp*): Ditto.
11558 (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
11559 (VM): New iterator for moves that includes the VSX types.
11560 (altivec_vperm_<mode>): Add VSX types. Add unsigned types.
11561 (altivec_vperm_<mode>_uns): New, for unsigned types.
0d42d490 11562 (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
a72c65c7
MM
11563 (altivec_eq<mode>): Ditto.
11564 (altivec_gt<mode>): Ditto.
11565 (altivec_gtu<mode>): Ditto.
11566 (altivec_eqv4sf): Ditto.
11567 (altivec_gev4sf): Ditto.
11568 (altivec_gtv4sf): Ditto.
11569 (altivec_vcmpbfp_p): Ditto.
11570
6d53a79f
RE
115712009-07-23 Richard Earnshaw <rearnsha@arm.com>
11572
f100a4a8 11573 * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to
6d53a79f
RE
11574 unsigned HWI.
11575
33ecc126
UB
115762009-07-23 Uros Bizjak <ubizjak@gmail.com>
11577
11578 PR target/40832
011a3198 11579 * config/i386/i386.c (output_387_ffreep): Rewrite to use
33ecc126
UB
11580 ASM_SHORT instead of .word.
11581 * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
11582 instead of .word in asm template.
11583
db1a8d98
VM
115842009-07-22 Vladimir Makarov <vmakarov@redhat.com>
11585
11586 PR target/37488
11587 * ira-lives.c (bb_has_abnormal_call_pred): New function.
11588 (process_bb_node_lives): Use it.
11589
11590 * ira.c (setup_cover_and_important_classes): Don't setup
11591 ira_important_class_nums. Add cover classes to the end of
11592 important classes.
011a3198
UB
11593 (cover_class_order, comp_reg_classes_func, reorder_important_classes):
11594 New.
db1a8d98
VM
11595 (find_reg_class_closure): Use reorder_important_classes.
11596
11597 * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
11598
11599 * config/i386/i386.c (i386_ira_cover_classes): New function.
11600 (TARGET_IRA_COVER_CLASSES): Redefine.
11601
11602 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
11603 importance of order of cover classes in the array.
f100a4a8 11604
cae63f88
DN
116052009-07-22 Diego Novillo <dnovillo@google.com>
11606
11607 * tree-pass.h (TDF_EH): Define.
11608 * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
11609 contains TDF_EH, print the EH region number holding GS.
11610 * tree-dump.c (dump_options): Add "eh".
11611 * doc/invoke.texi: Document it.
11612
61ed6392
DK
116132009-07-22 Doug Kwan <dougkwan@google.com>
11614
11615 * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
11616
a8338640
MM
116172009-07-22 Michael Matz <matz@suse.de>
11618
11619 PR tree-optimization/35229
11620 PR tree-optimization/39300
11621
11622 * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
11623 (inhibit_phi_insertion): New function.
11624 (insert_into_preds_of_block): Call it for REFERENCEs.
11625 (init_pre): Initialize and finalize scalar evolutions.
11626 * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
11627
1a66936f
UB
116282009-07-22 Uros Bizjak <ubizjak@gmail.com>
11629
11630 * config/i386/predicates.md (zero_extended_scalar_load_operand):
11631 Use CONST_VECTOR_NUNITS to determine number of elements.
11632
4fe6dea8
AK
116332009-07-22 Andreas Krebbel <krebbel1@de.ibm.com>
11634
11635 * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
11636 (U, W): Constraints are now deprecated and will be removed if we
f100a4a8 11637 run out of letters.
4fe6dea8
AK
11638 * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
11639 the file.
11640 ("prefetch"): Add the stcmh instruction for prefetching.
11641 * config/s390/s390.c (s390_symref_operand_p): Function moved. No
11642 changes.
11643 (s390_short_displacement): Return always true if compiling for
11644 machines not providing the long displacement facility.
11645 (s390_mem_constraint): Support the new constraint letter Z.
11646 (s390_check_qrst_address): New function.
11647
072ebd49
DD
116482009-07-21 DJ Delorie <dj@redhat.com>
11649
11650 * config/mep/mep.c (mep_legitimize_arg): Leave control registers
11651 alone too.
11652
4afe7ad7
JM
116532009-07-21 Jason Merrill <jason@redhat.com>
11654
11655 * c-common.c (max_tinst_depth): Increase default to 1024.
11656
848e6317
UB
116572009-07-21 Uros Bizjak <ubizjak@gmail.com>
11658
11659 * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
11660 (vec_unpacku_float_lo_v4si): Ditto.
11661
54e86f6b
UB
116622009-07-21 Uros Bizjak <ubizjak@gmail.com>
11663
11664 PR target/40811
11665 * config/i386/sse.md (sse2_cvtudq2ps): New expander.
11666 (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
11667 (builtin_description): Add __builtin_ia32_cvtudq2ps.
11668 (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
11669
4a2b7f24
JJ
116702009-07-21 Jakub Jelinek <jakub@redhat.com>
11671
11672 PR tree-optimization/40813
11673 * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
11674 it.
11675
a1516d08
KK
116762009-07-21 Kaz Kojima <kkojima@gcc.gnu.org>
11677
11678 * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
11679 with a NOP_EXPR if needed.
11680
cba146eb
PB
116812009-07-21 Paul Brook <paul@codesourcery.com>
11682
11683 * tree-vectorizer.c (increase_alignment): Handle nested arrays.
11684 Terminate debug dump with newline.
11685
ef8d9a0e
JDA
116862009-07-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11687
11688 * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
11689 Cast "1" to unsigned HOST_WIDE_INT.
11690 (compute_zdepdi_operands): Limit maximum length to 64 bits. Limit
11691 deposit length to the maximum length - lsb. Extend length if
11692 HOST_BITS_PER_WIDE_INT is 32.
11693
d48e9cea
OR
116942009-07-20 Olatunji Ruwase <tjruwase@google.com>
11695
11696 * cgraph.h (constant_pool_htab): New function.
11697 (constant_descriptor_tree): Move from varasm.c.
11698 * varasm.c (constant_pool_htab): New function.
11699 (constant_descriptor_tree): Move to cgraph.h.
11700
9c8e65c3
OR
117012009-07-20 Olatunji Ruwase <tjruwase@google.com>
11702
848e6317 11703 * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
9c8e65c3 11704
3e014341
SZ
117052009-07-20 Shujing Zhao <pearly.zhao@oracle.com>
11706
11707 * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
11708 $(VARRAY_H).
11709
d0763469
XDL
117102009-07-20 Xinliang David Li <davidxl@google.com>
11711
11712 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
11713
752fd2a8
AN
117142009-07-20 Adam Nemet <anemet@caviumnetworks.com>
11715
11716 * config/mips/mips.md (move_type): Add arith.
11717 (type): Handle arith.
11718 (zero_extendsidi2): Rename this into ...
11719 (*zero_extendsidi2): ... this. Don't match if ISA_HAS_EXT_INS.
11720 (zero_extendsidi2): New expander.
11721 (*zero_extendsidi2_dext): New pattern.
11722
621114bc
NC
117232009-07-20 Nick Clifton <nickc@redhat.com>
11724
11725 * config.gcc (mips64-*-*): Add definition of tm_defines in order
11726 to set MIPS_ABI_DEFAULT.
11727 * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
11728
e338758d
JJ
117292009-07-20 Jakub Jelinek <jakub@redhat.com>
11730
38027156
JJ
11731 * tree-object-size.c (addr_object_size): Handle unions with
11732 array in it as last field of structs in __bos (, 1) as __bos (, 0).
11733
e338758d
JJ
11734 PR tree-optimization/40792
11735 * tree.c (build_function_type_skip_args): Remove bogus assert.
11736
08ad1d6d 117372009-07-20 Jan Hubicka <jh@suse.cz>
848e6317 11738 Martin Jambor <mjambor@suse.cz>
08ad1d6d
JH
11739
11740 * cgraph.h (combined_args_to_skip): New field.
11741 * cgraph.c (cgraph_create_virtual_clone): Properly handle
11742 combined_args_to_skip and args_to_skip.
11743 * tree-inline.c (update_clone_info): New function.
11744 (tree_function_versioning): Call update_clone_info.
bd62d832 11745 * cgraphunit.c (cgraph_materialize_clone): Dump materialized
1a66936f 11746 functions.
08ad1d6d
JH
11747 (cgraph_materialize_all_clones): More extensive dumping, working
11748 with combined_args_to_skip rather than args_to_skip.
11749
4bbe8262
IR
117502009-07-20 Ira Rosen <irar@il.ibm.com>
11751
11752 * tree-vectorizer.h (vectorizable_condition): Add parameters.
11753 * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
11754 (get_initial_def_for_reduction): Likewise.
11755 (vectorizable_reduction): Skip the check of first operand in case
11756 of COND_EXPR. Add check that it is outer loop vectorization if
f100a4a8 11757 nested cycle was detected. Call vectorizable_condition() for
4bbe8262
IR
11758 COND_EXPR. If reduction epilogue cannot be created do not fail for
11759 nested cycles (if it is not double reduction). Assert that there
11760 is only one type in the loop in case of COND_EXPR. Call
11761 vectorizable_condition() to vectorize COND_EXPR.
11762 * tree-vect-stmts.c (vectorizable_condition): Update comment.
f100a4a8 11763 Add parameters. Allow nested cycles if called from
4bbe8262
IR
11764 vectorizable_reduction(). Use reduction vector variable if provided.
11765 (vect_analyze_stmt): Call vectorizable_reduction() before
11766 vectorizable_condition().
11767 (vect_transform_stmt): Update call to vectorizable_condition().
11768
6a799f6e 117692009-07-20 Christian Bruel <christian.bruel@st.com>
f100a4a8 11770
6a799f6e
CB
11771 * config/sh/sh.opt (-mfmovd): Resurrect and document.
11772 * doc/invoke.texi (-mfmovd): Likewise.
11773 * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
f100a4a8 11774
eab09a51
JH
117752009-07-20 Jan Hubicka <jh@suse.cz>
11776
11777 * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
11778 when handling SSA name.
11779
a915ab00
JH
117802009-07-19 Jan Hubicka <jh@suse.cz>
11781
11782 PR tree-optimization/40676
11783 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
11784 virtual PHIs in empty BBs.
11785
827f4079
AN
117862009-07-18 Adam Nemet <anemet@caviumnetworks.com>
11787
11788 * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
11789 re-expanded the compound use gen_lowpart instead to convert to the
11790 desired mode.
11791
f3ce1088
AN
117922009-07-18 Adam Nemet <anemet@caviumnetworks.com>
11793
11794 * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
11795 OUTER_CONST arguments.
11796 <LSHIFTRT>: Use them to allow widening if the bits shifted in from
11797 the new wider mode will be masked off.
11798 (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
11799
3e63dd3a
AN
118002009-07-18 Adam Nemet <anemet@caviumnetworks.com>
11801
11802 * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
11803 high-order bits are zero.
11804
b641d7fc
AN
118052009-07-18 Adam Nemet <anemet@caviumnetworks.com>
11806
11807 * combine.c (simplify_shift_const_1): Split code to determine
11808 shift_mode into ...
11809 (try_widen_shift_mode): ... here. Allow widening for ASHIFTRT if the
11810 new bits shifted in are identical to the old sign bit.
11811
33922890
RG
118122009-07-18 Richard Guenther <rguenther@suse.de>
11813
11814 PR c/40787
11815 * gimplify.c (gimplify_call_expr): Reject code using results from
11816 functions returning void.
11817
1d447995
RS
118182009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
11819
11820 * doc/md.texi: Document the new PowerPC "es" constraint.
11821 Document that "m" can include automodified addresses on this target,
11822 and explain how %U must be used. Extend the "Q" and "Z" documentation
11823 to suggest "es" as well as "m".
11824 * config/rs6000/constraints.md (es): New memory constraint.
11825 (Q, Z): Update strings to match new documentation.
11826
406d1650
RS
118272009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
11828
11829 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
11830 offset from virtual_stack_vars_rtx and arg_pointer_rtx.
11831 * config/rs6000/predicates.md (volatile_mem_operand): Use
11832 offsettable_nonstrict_memref_p.
11833 * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
11834 (*floatunssidf2_internal): Likewise.
11835 (*fix_truncdfsi2_internal): Likewise.
11836 (*fix_trunctfsi2_internal): Likewise.
11837
a0ce0e6e
AS
118382009-07-17 Anatoly Sokolov <aesok@post.ru>
11839
11840 * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
11841 atmega32u2 devices.
11842 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
11843
a406865a
RG
118442009-07-17 Richard Guenther <rguenther@suse.de>
11845
11846 PR c/40401
11847 * tree-pass.h (pass_diagnose_omp_blocks): Declare.
11848 (pass_warn_unused_result): Likewise.
11849 (TODO_set_props): Remove.
11850 * omp-low.c (diagnose_omp_structured_block_errors): Change to
11851 run as a pass.
11852 (pass_diagnose_omp_blocks): Define.
11853 * c-decl.c (pop_file_scope): Do not finalize the CU here.
11854 (c_gimple_diagnostics_recursively): Remove.
11855 (finish_function): Do not call it.
11856 (c_write_global_declarations): Continue after errors.
11857 Finalize the CU here.
11858 * c-gimplify.c (c_genericize): Do not gimplify here.
11859 * c-common.c (c_warn_unused_result): Move ...
11860 * tree-cfg.c (do_warn_unused_result): ... here.
11861 (run_warn_unused_result): New function.
11862 (gate_warn_unused_result): New function.
11863 (pass_warn_unused_result): New pass.
11864 * c-common.h (c_warn_unused_result): Remove.
11865 * flags.h (flag_warn_unused_result): Declare.
11866 * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
11867 * opts.c (flag_warn_unused_result): Initialize to false.
11868 * toplev.c (compile_file): Add comment.
11869 * omp-low.c (create_omp_child_function): Do not register
11870 the function with the frontend.
11871 (diagnose_omp_structured_block_errors): Prepare to be
11872 called as optimization pass.
11873 (gate_diagnose_omp_blocks): New function.
11874 (pass_diagnose_omp_blocks): New pass.
11875 * cgraph.h (cgraph_optimize): Remove.
11876 (cgraph_analyze_function): Likewise.
11877 * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
11878 * cgraphunit.c (cgraph_lower_function): Lower nested functions
11879 before their parents here.
11880 (cgraph_finalize_function): Not here.
11881 (cgraph_analyze_function): Gimplify functions here.
11882 (cgraph_finalize_compilation_unit): Continue after errors.
11883 Optimize the callgraph from here.
11884 (cgraph_optimize): Make static.
11885 * langhooks.c (write_global_declarations): Finalize the CU.
11886 * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
11887 (gimplify_function_tree): Assert we gimplify only once.
11888 Set PROP_gimple_any property.
11889 * tree-nested.c (gimplify_all_functions): New function.
11890 (lower_nested_functions): Gimplify all nested functions.
11891 * gimple.h (diagnose_omp_structured_block_errors): Remove.
11892 * passes.c (init_optimization_passes): Add pass_warn_unused_result
11893 and pass_diagnose_omp_blocks after gimplification. Do not
11894 set TODO_set_props on all_lowering_passes.
11895 (execute_one_pass): Do not handle TODO_set_props.
11896 * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
11897 (gimplify.o): Add tree-pass.h dependency.
11898 * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
11899 (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
11900 (unsave_r): Likewise.
11901 * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
11902 temporary variable.
11903
2e687c2c
SL
119042009-07-17 Sandra Loosemore <sandra@codesourcery.com>
11905
11906 * doc/service.texi (Service): Restore previously removed link,
11907 which isn't broken after all.
11908
7763473e
RG
119092009-07-17 Richard Guenther <rguenther@suse.de>
11910
11911 PR tree-optimization/40321
11912 * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
11913 PHI nodes to the maximal set.
11914 (make_values_for_phi): Add PHI arguments to the maximal set.
11915 (execute_pre): Dump PHI_GEN and the maximal set.
11916
4f934809
JJ
119172009-07-17 Jakub Jelinek <jakub@redhat.com>
11918
11919 PR c++/40780
11920 * gimplify.c (gimplify_conversion): Don't change non-conversions into
11921 VIEW_CONVERT_EXPR.
11922
63a26b78
SL
119232009-07-16 Sandra Loosemore <sandra@codesourcery.com>
11924
11925 * doc/extend.texi (Nested Functions): Replace broken link with
11926 textual reference.
11927 * doc/service.texi (Service): Remove broken link.
11928
3ac337c3
L
119292009-07-16 H.J. Lu <hongjiu.lu@intel.com>
11930
11931 PR bootstrap/40781
11932 * builtins.c (expand_builtin_memcmp): Use loc instead of
11933 EXPR_LOCATION (exp).
11934 (expand_builtin_strncmp): Likewise.
11935
db3927fb
AH
119362009-07-17 Aldy Hernandez <aldyh@redhat.com>
11937 Manuel López-Ibáñez <manu@gcc.gnu.org>
11938
f100a4a8 11939 PR 40435
db3927fb
AH
11940 * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
11941 builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
11942 tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
11943 c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
11944 calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
11945 tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
11946 tree-inline.c, c-common.c, c-common.h, gimple.c,
11947 tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
11948 convert.c: Add location argument to fold_{unary,binary,ternary},
11949 fold_build[123], build_call_expr, build_size_arg,
11950 build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
11951 fold_build1_initializer, fold_build2_initializer,
11952 fold_build3_initializer, fold_build_call_array,
11953 fold_build_call_array_initializer, fold_single_bit_test,
11954 omit_one_operand, omit_two_operands, invert_truthvalue,
11955 fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
11956 combine_comparisons, fold_builtin_*, fold_call_expr,
11957 build_range_check, maybe_fold_offset_to_address, round_up,
11958 round_down.
11959
c32097d8
JM
119602009-07-16 Jason Merrill <jason@redhat.com>
11961
11962 PR libstdc++/37907
11963 * c-common.c (c_common_reswords): Add __is_standard_layout
11964 and __is_trivial.
11965 * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
11966 * doc/implement-cxx.texi: New.
11967 * doc/gcc.texi: Include it.
11968
b3c5a409
DD
119692009-07-16 DJ Delorie <dj@redhat.com>
11970
11971 * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
11972 compares that may be indirectly affected by previous instructions.
11973
a41d064d
KG
119742009-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11975
11976 * builtins.c (do_mpc_arg2): New.
11977 (fold_builtin_2): Fold builtin cpow.
11978 * real.h (HAVE_mpc_pow): New.
11979
db87b56d
BM
119802009-07-16 Bingfeng Mei <bmei@broadcom.com>
11981
9e7c935a
UB
11982 * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
11983 comparison to skip unprofitable schedule
11984
ba0c638e
SB
119852009-07-16 Simon Baldwin <simonb@google.com>
11986
11987 * gcc.c (option_map): New flag -no-canonical-prefixes.
11988 * (display_help): Print help text for new flag.
11989 * (process_command): Move options translation and language specifics
11990 and handle new flag early. Use it to set a function pointer to a
11991 prefix builder. Replace make_relative_prefix calls with calls to
11992 the function pointed to. Ignore new flag in regular options handling.
11993 * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
11994
11af2d7b
DD
119952009-07-15 DJ Delorie <dj@redhat.com>
11996
11997 * config/mep/mep.md (sibcall_internal): Change register to avoid
11998 argument registers.
11999 (sibcall_value_internal): Likewise.
12000
9d2bb902
EB
120012009-07-15 Eric Botcazou <ebotcazou@adacore.com>
12002
12003 PR rtl-optimization/40710
12004 * resource.c (mark_target_live_regs): Reset DF problem to LR.
12005
da45599c
AN
120062009-07-15 Adam Nemet <anemet@caviumnetworks.com>
12007
12008 * config/mips/mips.md (*extenddi_truncate<mode>,
12009 *extendsi_truncate<mode>): Change type attribute to move_type
12010 with shift_shift. Split out code handling exts from here ...
12011 (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
12012 pattern.
12013 (*extendhi_truncateqi): Change type attribute to move_type with
12014 shift_shift. Split out code handling exts from here ...
12015 (*extendhi_truncateqi_exts): ... to this new pattern.
12016
31f44cd0 120172009-07-15 Uros Bizjak <ubizjak@gmail.com>
1fba7394 12018
31f44cd0
UB
12019 * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
12020 instead of "and" with inverted sign bit mask value. Use
12021 "nonimmediate_operand" for operand 1 and operand 2 predicate.
12022 Allocate registers only for operand 4 and operand 5.
1fba7394 12023
b4e4232d
JJ
120242009-07-15 Jakub Jelinek <jakub@redhat.com>
12025
12026 PR middle-end/40747
12027 * fold-const.c (fold_cond_expr_with_comparison): When folding
12028 < and <= to MIN, make sure the MIN uses the same type as the
12029 comparison's operands.
12030
fa01135d
RE
120312009-07-15 Richard Earnshaw <rearnsha@arm.com>
12032
12033 * arm.md (ior_xor): New code iterator.
12034 (split for ior/xor with shift and zero-extend): New split pattern.
12035 * arm/predicates.md (subreg_lowpart_operator): New special predicate.
12036
b41e33fe
RG
120372009-07-15 Richard Guenther <rguenther@suse.de>
12038
12039 * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
12040 offset member.
12041
c9b2f286
RG
120422009-07-15 Richard Guenther <rguenther@suse.de>
12043
12044 PR middle-end/40753
1fba7394 12045 * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
c9b2f286 12046
31d29c40
MK
120472009-07-15 Maxim Kuvyrkov <maxim@codesourcery.com>
12048
12049 * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
12050 handle 2.6.30 kernel.
12051
18e67adf
DD
120522009-07-15 DJ Delorie <dj@redhat.com>
12053
12054 * config/mep/mep.md (sibcall_internal): Change register to allow
12055 for 24-bit addresses.
12056 (sibcall_value_internal): Likewise.
12057
96809b41 120582009-07-14 Ghassan Shobaki <ghassan.shobaki@amd.com>
f100a4a8 12059
1fba7394
UB
12060 * doc/invoke.texi: Added descriptions of the scheduling heuristics
12061 that are enabled/disabled by the flags introduced by a previous patch.
f100a4a8 12062
54a1e1d0
DD
120632009-07-14 DJ Delorie <dj@redhat.com>
12064
12065 * config/mep/mep.md (sibcall_internal): Include non-toggling
12066 non-jmp case.
12067 (sibcall_value_internal): Likewise.
12068
2a4c0366
TG
120692009-07-14 Taras Glek <tglek@mozilla.com>
12070 Rafael Espindola <espindola@google.com>
12071
12072 * doc/sourcebuild.texi: Document install-plugin target.
12073 * configure.ac: Added install-plugin target to language makefiles.
12074 * configure: Regenerate.
bd62d832 12075 * Makefile.in (install-plugin): Install more headers,
2a4c0366
TG
12076 depend on lang.install-plugin.
12077
2349c14b
MLI
120782009-07-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
12079
12080 * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
12081 translation.
f100a4a8 12082
a9d1723f
DD
120832009-07-14 DJ Delorie <dj@redhat.com>
12084
12085 * config/mep/mep.c (mep_vliw_jmp_match): New function.
12086 * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
12087 * config/mep/mep.md (sibcall_internal): Change test from
12088 mep_vliw_mode_match to mep_vliw_jmp_match.
12089 (sibcall_value_internal): Likewise.
12090
af766f2d
UB
120912009-07-14 Uros Bizjak <ubizjak@gmail.com>
12092
12093 * config/i386/sse.md (copysign<mode>3): New expander.
12094 * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
12095 * config/i386/i386.c (ix86_build_signbit_mask): Make public.
12096 Use ix86_build_const_vector.
12097 (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
12098 IX86_BUILTIN_CPYSGNPD.
12099 (builtin_description): Add __builtin_ia32_copysignps and
12100 __builtin_ia32_copysignpd.
12101 (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
12102 and BUILT_IN_COPYSIGNF.
12103
b35c8160
JM
121042009-07-13 Jason Merrill <jason@redhat.com>
12105
12106 * builtins.c (can_trust_pointer_alignment): New fn.
12107 (get_pointer_alignment): Factor it out from here.
12108 * tree.h: Declare it.
12109
e02e8e58
DE
121102009-07-14 David Edelsohn <edelsohn@gnu.org>
12111
12112 * config/rs6000/predicates.md (offsettable_mem_operand): Test
12113 RTX_AUTOINC class.
12114
4fdaccea
DS
121152009-07-14 Dodji Seketeli <dodji@redhat.com>
12116
12117 PR debug/40705
12118 PR c++/403057
12119 * dwarf2.out.c (gen_type_die_with_usage): Added comment.
12120
0b200b80 121212009-07-14 Richard Guenther <rguenther@suse.de>
af766f2d 12122 Andrey Belevantsev <abel@ispras.ru>
0b200b80
RG
12123
12124 PR middle-end/40745
12125 * cfgexpand.c (partition_stack_vars): Do not bother to update
12126 alias information when not optimizing.
12127
55b34b5f 121282009-07-14 Richard Guenther <rguenther@suse.de>
848e6317 12129 Andrey Belevantsev <abel@ispras.ru>
55b34b5f
RG
12130
12131 * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
12132 (pt_solution_set): Likewise.
12133 * tree-ssa-alias.c (refs_may_alias_p_1): Export.
12134 * tree-ssa-structalias.c (pt_solution_set): New function.
12135 * final.c (rest_of_clean_state): Free SSA data structures.
12136 * print-rtl.c (print_decl_name): Remove.
12137 (print_mem_expr): Implement in terms of print_generic_expr.
12138 * alias.c (ao_ref_from_mem): New function.
12139 (rtx_refs_may_alias_p): Likewise.
12140 (true_dependence): Query alias-export info.
12141 (canon_true_dependence): Likewise.
12142 (write_dependence_p): Likewise.
12143 * tree-dfa.c (get_ref_base_and_extent): For void types leave
12144 size unknown.
12145 * emit-rtl.c (component_ref_for_mem_expr): Remove.
12146 (mem_expr_equal_p): Use operand_equal_p.
12147 (set_mem_attributes_minus_bitpos): Do not use
12148 component_ref_for_mem_expr.
12149 * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
12150 (update_alias_info_with_stack_vars): Likewise.
12151 (partition_stack_vars): Call update_alias_info_with_stack_vars.
12152 * tree-ssa.c (delete_tree_ssa): Do not release SSA names
12153 explicitly nor clear stmt operands.
12154 Free the decl-to-pointer map.
12155 * tree-optimize.c (execute_free_datastructures): Do not free
12156 SSA data structures here.
12157 * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
12158 * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
12159 (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
12160 dependencies.
12161 (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
12162
a46f0964
DD
121632009-07-13 DJ Delorie <dj@redhat.com>
12164
1700c2e7
DD
12165 * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
12166 unrolling at the right iteration count.
12167
a46f0964
DD
12168 * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
12169 calculations.
12170
ee4764a8 121712009-07-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
f100a4a8 12172
af766f2d
UB
12173 * haifa-sched.c (rank_for_schedule): Introduced flags to
12174 enable/disable individual scheduling heuristics.
12175 * common.opt: Introduced flags to enable/disable individual
f100a4a8 12176 heuristics in the scheduler.
af766f2d
UB
12177 * doc/invoke.texi: Introduced flags to enable/disable individual
12178 heuristics in the scheduler.
f100a4a8 12179
9122666c
KT
121802009-07-13 Kai Tietz <kai.tietz@onevision.com>
12181
12182 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
12183 config/i386/mingw-tls.c.
12184 * config/i386/mingw-tls.c: Removed.
12185
2f3e235b
IR
121862009-07-13 Ira Rosen <irar@il.ibm.com>
12187
f100a4a8 12188 * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
2f3e235b
IR
12189 checks access only relevant statements.
12190 (vectorizable_reduction): Likewise.
12191
f345f84a
KT
121922009-07-12 Kai Tietz <kai.tietz@onevision.com>
12193
12194 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
12195 just for 32-bit case.
12196
f645e9a2
JH
121972009-07-12 Jan Hubicka <jh@suse.cz>
12198
12199 PR tree-optimization/40585
12200 * except.c (expand_resx_expr): When there already is resume
12201 instruction, produce linked list.
12202 (build_post_landing_pads): Assert that resume is empty.
12203 (connect_post_landing_pads): Handle resume lists.
12204 (dump_eh_tree): Dump resume list.
12205
06066f92
IR
122062009-07-12 Ira Rosen <irar@il.ibm.com>
12207
12208 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
12209 with additional argument.
7c8b1a77 12210 * tree-vectorizer.h (enum vect_def_type): Add
06066f92
IR
12211 vect_double_reduction_def.
12212 (vect_is_simple_reduction): Add argument.
7c8b1a77 12213 * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
06066f92
IR
12214 indentation.
12215 (vect_analyze_scalar_cycles_1): Detect double reduction. Call
12216 vect_is_simple_reduction with additional argument.
12217 (vect_analyze_loop_operations): Handle exit phi nodes in case of
12218 double reduction.
12219 (reduction_code_for_scalar_code): Handle additional codes by
12220 returning ERROR_MARK for them. Fix comment and indentation.
12221 (vect_is_simple_reduction): Fix comment, add argument to specify
12222 double reduction. Detect double reduction.
12223 (get_initial_def_for_induction): Fix indentation.
12224 (get_initial_def_for_reduction): Fix comment and indentation.
12225 Handle double reduction. Create initial definitions that do not
12226 require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
12227 (vect_create_epilog_for_reduction): Fix comment, add argument to
12228 handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
12229 epilogue result extraction. Create double reduction phi node and
12230 replace relevant uses.
12231 (vectorizable_reduction): Call vect_is_simple_reduction with
12232 additional argument. Fix indentation. Update epilogue code treatment
7c8b1a77 12233 according to the changes in reduction_code_for_scalar_code. Check
06066f92
IR
12234 for double reduction. Call vect_create_epilog_for_reduction with
12235 additional argument.
12236 * tree-vect-stmts.c (process_use): Handle double reduction, update
12237 documentation.
12238 (vect_mark_stmts_to_be_vectorized): Handle double reduction.
12239 (vect_get_vec_def_for_operand): Likewise.
12240
b20231fe
DS
122412009-07-12 Danny Smith <dansmister@gmail.com>
12242
12243 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
12244 dllexport if !TREE_PUBLIC.
12245 (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
12246
97c281da
AS
122472009-07-11 Anatoly Sokolov <aesok@post.ru>
12248
12249 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
12250 (avr_extra_arch_macro) Remove declatation.
12251 * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
12252 (avr_extra_arch_macro) Declare as static.
12253 * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
12254
6b45de00
JH
122552009-07-11 Jan Hubicka <jh@suse.cz>
12256
12257 PR middle-end/48388
12258 * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
12259
dd67163f
JJ
122602009-07-11 Jakub Jelinek <jakub@redhat.com>
12261
3e3a9a6a
JJ
12262 PR debug/40713
12263 * dwarf2out.c (dw_fde_struct): Add in_std_section and
12264 cold_in_std_section bits.
12265 (dwarf2out_begin_prologue): Initialize them.
12266 (dwarf2out_finish): Don't emit FDE range into .debug_ranges
12267 if already covered by text_section or cold_text_section range.
12268
ae58e548
JJ
12269 PR rtl-optimization/40667
12270 * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
12271 * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
12272 * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
12273 * config/i386/i386.c (ix86_minimum_alignment): New function.
12274 * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
12275 * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
12276 * emit-rtl.c (gen_reg_rtx): Likewise.
12277 * function.c (assign_parms): Likewise. If nominal_type needs
12278 bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
12279 rather than passed_type's alignment.
12280
dd67163f
JJ
12281 PR target/40668
12282 * function.c (assign_parm_setup_stack): Adjust
12283 MEM_OFFSET (data->stack_parm) if promoted_mode is different
12284 from nominal_mode on big endian.
12285
e9edda23
PB
122862009-07-11 Paolo Bonzini <bonzini@gnu.org>
12287
12288 * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
12289
82e45095
DD
122902009-07-10 DJ Delorie <dj@redhat.com>
12291
12292 * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
12293
98ac6510
MM
122942009-07-10 Mark Mitchell <mark@codesourcery.com>
12295
12296 * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
12297 attribute.
12298 (thumb2_cbnz): Likewise.
12299
b96c5923
DD
123002009-07-10 David Daney <ddaney@caviumnetworks.com>
12301
12302 PR target/39079
12303 * config.gcc (supported_defaults): Add synci.
12304 (with_synci): Add validation.
12305 (all_defaults): Add synci.
12306 * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
12307 ISA_HAS_SYNCI.
12308 (synci): Same.
12309 * config/mips/mips.opt (msynci): New option.
12310 * config/mips/mips.c (mips_override_options): Warn on use of
12311 -msynci for targets that do now support it.
12312 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
12313 msynci.
12314 * gcc/doc/invoke.texi (-msynci): Document the new option.
12315 * doc/install.texi (--with-synci): Document the new option.
12316
182e00b1
RG
123172009-07-10 Richard Guenther <rguenther@suse.de>
12318
12319 PR tree-optimization/40496
12320 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
12321 the PHI result with a compatible type.
12322
156f545a
MLI
123232009-07-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
12324
12325 PR 25509
12326 PR 40614
12327 * c.opt (Wunused-result): New.
12328 * doc/invoke.texi: Document it.
12329 * c-common.c (c_warn_unused_result): Use it.
12330
06c43499
DD
123312009-07-09 DJ Delorie <dj@redhat.com>
12332
5cec9f59
DD
12333 * targhooks.c (default_target_can_inline_p): Rename from
12334 default_target_option_can_inline_p.
12335 * targhooks.h (default_target_can_inline_p): Likewise.
12336 * target-def.h (TARGET_CAN_INLINE_P): Rename from
12337 TARGET_OPTION_CAN_INLINE_P.
12338 * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
12339 * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
12340 (mep_target_can_inline_p): Rename from
12341 mep_target_option_can_inline_p.
12342
12343 PR target/40626
b9263ae5
DD
12344 * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
12345 registers used to pass vectors.
12346
06c43499
DD
12347 * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
12348
a80b0574
TT
123492009-07-09 Tom Tromey <tromey@redhat.com>
12350
12351 * unwind-dw2-fde-darwin.c: Include dwarf2.h.
12352 * config/mmix/mmix.c: Include dwarf2.h.
12353 * config/rs6000/darwin-fallback.c: Include dwarf2.h.
12354 * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
12355 * config/sh/sh.c: Include dwarf2.h.
12356 * config/i386/i386.c: Include dwarf2.h.
12357 * Makefile.in (DWARF2_H): Remove 'elf'.
12358 * except.c: Include dwarf2.h.
12359 * unwind-dw2.c: Include dwarf2.h.
12360 * dwarf2out.c: Include dwarf2.h.
12361 * unwind-dw2-fde-glibc.c: Include dwarf2.h.
12362 * unwind-dw2-fde.c: Include dwarf2.h.
12363 * dwarf2asm.c: Include dwarf2.h.
12364
356c23b3 123652009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
7c8b1a77 12366
356c23b3 12367 * haifa-sched.c (insn_finishes_cycle_p): New static function.
7c8b1a77
UB
12368 (max_issue): Use it.
12369 * sched-int.h (struct sched_info: insn_finishes_block_p): New
12370 scheduler hook.
12371 * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
12372 (region_sched_info): Update.
12373 * sched-ebb.c (ebb_sched_info): Update.
12374 * modulo-sched.c (sms_sched_info): Update.
356c23b3
MK
12375 * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
12376
5223c588
MK
123772009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
12378
12379 * varasm.c (build_constant_desc): Don't share RTL in pool entries.
8d4cf6d7
BS
12380
123812009-07-09 Basile Starynkevitch <basile@starynkevitch.net>
12382
f100a4a8 12383 * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
8d4cf6d7 12384
b9da76de
JJ
123852009-07-09 Jakub Jelinek <jakub@redhat.com>
12386
12387 PR middle-end/40692
12388 * fold-const.c (fold_cond_expr_with_comparison): Don't replace
12389 arg1 with arg01 if arg1 is already INTEGER_CST.
12390
fcaf7e12
AN
123912009-07-08 Adam Nemet <anemet@caviumnetworks.com>
12392
7c8b1a77
UB
12393 * simplify-rtx.c (simplify_binary_operation_1) <AND>:
12394 Transform (and (truncate)) into (truncate (and)).
fcaf7e12 12395
3f36bac2
AN
123962009-07-08 Adam Nemet <anemet@caviumnetworks.com>
12397
12398 * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
12399 creating LHS paradoxical subregs. Fix surrounding returns to
12400 use NULL_RTX rather than 0.
12401
ae30c1fa
DD
124022009-07-08 DJ Delorie <dj@redhat.com>
12403
bd62d832 12404 * config/mep/mep.c (mep_option_can_inline_p): New.
ae30c1fa
DD
12405 (TARGET_OPTION_CAN_INLINE_P): Define.
12406
3d78d293
MW
124072009-07-08 Mark Wielaard <mjw@redhat.com>
12408
12409 PR debug/40659
12410 * dwarf2out.c (add_data_member_location_attribute): When we have
12411 only a constant offset don't emit a new location description using
12412 DW_OP_plus_uconst, but just add the constant with add_AT_int, when
12413 dwarf_version > 2.
12414
ac2e563f
RH
124152009-07-08 Richard Henderson <rth@redhat.com>
12416
12417 PR target/38900
12418 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
12419 (enum reg_class): Add CLOBBERED_REGS.
12420 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
12421 * config/i386/i386.c (ix86_conditional_register_usage): Moved
12422 from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
12423 (ix86_function_ok_for_sibcall): Tidy. Disallow MS->SYSV sibcalls.
12424 (ix86_expand_call): Use sibcall_insn_operand when needed. Don't
12425 force 64-bit sibcalls into R11.
12426 * config/i386/constraints.md (U): New constraint.
12427 * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
12428 (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
12429 (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
12430
8ed77e22
SZ
124312009-07-08 Shujing Zhao <pearly.zhao@oracle.com>
12432
12433 * basic-block.h (dump_regset, debug_regset): Remove duplicate
12434 prototypes.
12435 * c-objc-common.h (c_initialize_diagnostics): Ditto.
12436 * ebitmap.h (dump_ebitmap): Ditto.
12437 * optabs.h (optab_libfunc): Ditto.
12438 * tree.h (tree_expr_nonzero_warnv_p): Ditto.
12439 * tree-flow.h (vect_can_force_dr_alignment_p,
3f36bac2 12440 get_vectype_for_scalar_type): Ditto.
8ed77e22 12441 (vectorize_loops): Move prototype to ...
3f36bac2 12442 * tree-vectorizer.h: ... here. Also, adjust comment.
8ed77e22
SZ
12443 (vect_set_verbosity_level): Remove duplicate prototype.
12444 * tree-ssa-loop.c: Include tree-vectorizer.h.
12445 * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
12446
c6075b13
NC
124472009-07-08 Nick Clifton <nickc@redhat.com>
12448
12449 * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
12450 forward slash.
12451
d1b5afd5
DD
124522009-07-08 DJ Delorie <dj@redhat.com>
12453
12454 * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
12455 cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
12456 cpmovtocc_P0S_P1): Mark volatile. Note which registers are
12457 written to.
12458 * config/mep/intrinsics.md: Regenerated.
12459 * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
12460 registers when asm() or calls are detected.
3f36bac2 12461
d665b6e5
MLI
124622009-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
12463
12464 PR c++/31246
12465 * gimplify.c (gimplify_expr): Propagate no_warning flag when
12466 gimplifying.
12467 * gimple (gimple_build_call_from_tree): Likewise.
12468 * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
12469 no_warning flag before warning.
3f36bac2 12470
5e278028
MLI
124712009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
12472
12473 * tree.c (set_expr_locus): Remove.
12474 * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
12475 * c-typeck.c (c_finish_stmt_expr): Replace EXPR_LOCUS by
12476 EXPR_LOCATION.
12477 * gimplify.c (internal_get_tmp_var): Likewise.
12478 (gimplify_call_expr): Likewise.
12479 (gimplify_one_sizepos): Likewise.
12480
ed3346c2
EB
124812009-07-07 Eric Botcazou <ebotcazou@adacore.com>
12482
12483 PR debug/40666
12484 * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
12485 to variables for debugging purposes.
12486
4db19cc7
ML
124872009-06-23 Mark Loeser <mark@halcy0n.com>
12488
12489 PR build/40010
12490 * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
12491
72f90fde
MLI
124922009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
12493
12494 * pretty-print.c (pp_base_format): Remove %J.
12495 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
12496 gcc_cxxdiag_char_table): Likewise.
12497 (init_dynamic_diag_info): Likewise.
4db19cc7 12498
dcb91ebe
MLI
124992009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
12500
12501 * pretty-print.c (pp_base_format): Remove %H.
12502 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
12503 gcc_cxxdiag_char_table): Likewise.
12504 (init_dynamic_diag_info): Likewise.
12505 * config/mep/mep.c (mep_select_section): Likewise.
12506
cf400ddb
DS
125072009-07-07 Duncan Sands <baldrick@free.fr>
12508
7c8b1a77
UB
12509 * final.c (pass_clean_state): Give the pass a name.
12510 * passes.c (pass_rest_of_compilation): Likewise.
12511 * tree-optimize.c (pass_all_optimizations): Likewise.
cf400ddb 12512
d575725b
L
125132009-07-07 H.J. Lu <hongjiu.lu@intel.com>
12514
12515 * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
12516 an extra 'decl' for error_at.
12517
535536b4
JJ
125182009-07-07 Jakub Jelinek <jakub@redhat.com>
12519
12520 PR middle-end/40669
12521 * tree-tailcall.c (adjust_return_value_with_ops,
12522 create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
12523 if it has complex or vector type.
12524
f062f8f2
OH
125252009-07-07 Olivier Hainque <hainque@adacore.com>
12526
d575725b
L
12527 * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
12528 pthread symbols.
f062f8f2 12529
cac1b0ee
BS
125302009-07-07 Basile Starynkevitch <basile@starynkevitch.net>
12531
12532 * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
12533
c5d75364
MLI
125342009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
12535
7c8b1a77 12536 * cgraphunit.c: Replace %J by an explicit location. Update all calls.
c5d75364
MLI
12537 * c-decl.c: Likewise.
12538 * function.c: Likewise.
12539 * varasm.c: Likewise.
12540 * tree-ssa.c: Likewise.
12541 * c-common.c: Likewise.
12542 * tree-cfg.c: Likewise.
12543 * config/spu/spu.c: Likewise.
12544 * config/ia64/ia64.c: Likewise.
12545 * config/v850/v850.c: Likewise.
12546
b932c20b
DD
125472009-07-06 DJ Delorie <dj@redhat.com>
12548
12549 * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
12550 * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
12551 unspecified accesses to control registers.
12552 * config/mep/intrinsics.md: Regenerate.
12553 * config/mep/intrinsics.h: Regenerate.
12554 * config/mep/mep-intrin.h: Regenerate.
3f36bac2 12555
fab922b1
MLI
125562009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
12557
12558 * c-lex.c: Replace %H by an explicit location. Update all calls.
12559 * c-common.c: Likewise.
12560 * c-decl.c: Likewise.
12561 * c-typeck.c: Likewise.
12562 * fold-const.c: Likewise.
12563 * gimplify.c: Likewise.
12564 * stmt.c: Likewise.
12565 * tree-cfg.c: Likewise.
12566 * tree-ssa-loop-niter.c: Likewise.
12567 * tree-vrp.c: Likewise.
12568 * value-prof.c: Likewise.
12569
66350781
DN
125702009-07-06 Diego Novillo <dnovillo@google.com>
12571
12572 * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
12573 if it has one. Handle cases where VAR does not have an
12574 annotation or cfun is NULL.
12575
d251bfca
DN
125762009-07-06 Diego Novillo <dnovillo@google.com>
12577
12578 * tree.c: Include debug.h.
12579 (initialize_tree_contains_struct): New.
12580 (init_ttree): Call it.
12581 (tree_node_structure_for_code): Factor out of ...
12582 (tree_node_structure): ... here.
12583 * treestruct.def (TS_PHI_NODE): Remove.
12584 (TS_GIMPLE_STATEMENT): Remove.
12585
e923c8ea
DN
125862009-07-06 Diego Novillo <dnovillo@google.com>
12587
7c8b1a77 12588 * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
e923c8ea
DN
12589 (debug_tree_chain): Handle cycles.
12590
7a61cf6f
NC
125912009-07-06 Nick Clifton <nickc@redhat.com>
12592 DJ Delorie <dj@redhat.com>
12593
12594 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
12595 __FMOVD_ENABLED__ is defined.
12596 * config/sh/sh.h
12597 (TARGET_FMOVD): Provide a default definition.
12598 (MASK_FMOVD): Likewise.
12599 (TARGET_CPU_CPP_BUILTINS): Define
12600 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
12601 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
7c8b1a77 12602 two fmov instructions depending upon whether TARGET_FMOVD is enabled.
7a61cf6f
NC
12603 (split for DF load from memory into register): Also handle
12604 MEMs which consist of REG+DISP addressing.
12605 (split for DF store from register to memory): Likewise.
12606 (movsf_ie): Always use single fp_mode.
12607 * config/sh/sh.c (sh_override_options): Do not automatically
12608 enable TARGET_MOVD for the SH2A when supporting doubles - leave
12609 that to the -mfmovd command line switch.
12610 (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
12611 (fldi_ok): Always allow.
12612 * config/sh/sh.opt (mfmovd): Remove this switch.
12613 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
12614
83f63251
R
126152009-07-06 J"orn Rennecke <joern.rennecke@arc.com>
12616 Kaz Kojima <kkojima@gcc.gnu.org>
12617
12618 PR rtl-optimization/30807
12619 * postreload.c (reload_combine): For every new use of REG_SUM,
12620 record the use of BASE.
12621
172d54e0
JH
126222009-07-06 Jan Hubicka <jh@suse.cz>
12623
12624 * params.def: Revert my accidental commit at 2009-06-30.
12625
34097e36
ILT
126262009-07-04 Ian Lance Taylor <iant@google.com>
12627
12628 PR target/40636
12629 * config/i386/msformat-c.c (mingw_format_attributes): Declare as
12630 EXPORTED_CONST.
12631 (mingw_format_attribute_overrides): Likewise.
12632
bd5b2c2d
JJ
126332009-07-04 Jakub Jelinek <jakub@redhat.com>
12634
12635 PR debug/40596
12636 * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
12637 don't check cfa.reg. Instead of cfa.indirect use
12638 fde && fde->drap_reg != INVALID_REGNUM test.
12639
39ba6ab7
EB
126402009-07-04 Eric Botcazou <ebotcazou@adacore.com>
12641
12642 * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
12643
54a0ac2d
VM
126442009-07-03 Vladimir Makarov <vmakarov@redhat.com>
12645
12646 PR target/40587
7c8b1a77 12647 * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
3f36bac2 12648
fae1034e
RG
126492009-07-03 Richard Guenther <rguenther@suse.de>
12650
12651 PR tree-optimization/40640
12652 * tree-switch-conversion.c (build_arrays): Perform arithmetic
12653 in original type.
12654
ba8978d0
JH
126552009-07-03 Jan Hubicka <jh@suse.cz>
12656
12657 * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
12658 for size, reduce amount of inlining.
12659
d73fb533
RG
126602009-07-03 Richard Guenther <rguenther@suse.de>
12661
12662 PR middle-end/34163
7c8b1a77
UB
12663 * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
12664 if t +- x is known to not overflow and the conversion widens the
12665 operation.
d73fb533
RG
12666 * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
12667
7351bcaa
JH
126682009-07-03 Jan Hubicka <jh@suse.cz>
12669
12670 * ipa-pure-const.c (analyze): Update loop optimizer init.
12671 * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
12672 try_remove_empty_loop, remove_empty_loops): Remove.
12673 * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
12674 * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
12675 to mark regular loops as neccesary.
12676 (degenerate_phi_p): New function.
12677 (propagate_necessity, remove_dead_phis): Use it.
12678 (forward_edge_to_pdom): Likewise.
12679 (eliminate_unnecessary_stmts): Take care to remove uses of results of
12680 virtual PHI nodes that became unreachable.
12681 (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
12682 * tree-flow.h (remove_empty_loops): Remove.
12683 * passes.c (init_optimization_passes): Remove.
12684
5071eab7
UB
126852009-07-03 Uros Bizjak <ubizjak@gmail.com>
12686
12687 * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
12688 can_create_pseudo_p.
12689 (*fix_trunc<mode>_i387_1): Ditto.
12690 (*floathi<mode>2_1): Ditto.
12691 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
12692 (*fistdi2_1): Ditto.
12693 (*fist<mode>2_1): Ditto.
12694 (frndintxf2_floor): Ditto.
12695 (*fist<mode>2_floor_1): Ditto.
12696 (frndintxf2_ceil): Ditto.
12697 (*fist<mode>2_ceil_1): Ditto.
12698 (frndintxf2_trunc): Ditto.
12699 (frndintxf2_mask_pm): Ditto.
12700 (fxam<mode>2_i387_with_temp): Ditto.
12701 * config/i386/sse.md (mulv16qi3): Ditto.
12702 (*sse2_mulv4si3): Ditto.
12703 (mulv2di3): Ditto.
12704 (sse4_2_pcmpestr): Ditto.
12705 (sse4_2_pcmpistr): Ditto.
12706
1fc41282
JH
127072009-07-03 Jan Hubicka <jh@suse.cz>
12708
12709 * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
12710 (mark_stmt_necessary): Set it.
12711 (mark_operand_necessary): Set it.
12712 (mark_control_dependent_edges_necessary): Set it.
12713 (mark_virtual_phi_result_for_renaming): New function.
12714 (get_live_post_dom): New function.
12715 (forward_edge_to_pdom): New function.
12716 (remove_dead_stmt): Fix handling of control dependences.
12717 (tree_dce_init): Init new bitmap.
12718 (tree_dce_done): Free it.
12719
02583d3c
RG
127202009-07-02 Richard Guenther <rguenther@suse.de>
12721
12722 PR bootstrap/40617
12723 * tree-ssa-structalias.c (new_var_info): Initialize
12724 is_restrict_var.
12725
3c1832c3
JH
127262009-07-02 Jan Hubicka <jh@suse.cz>
12727
12728 * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
12729 local.
12730
92355a9c
PB
127312009-07-02 Paolo Bonzini <bonzini@gnu.org>
12732
12733 * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
12734 instead of recomputing it. Adjust calls.
12735 (emit_store_flag): Adjust recursive calls.
12736
91deb937
RG
127372009-07-02 Richard Guenther <rguenther@suse.de>
12738
12739 * tree-ssa-live.c (remove_unused_locals): Do not remove
12740 heap variables.
12741 * tree-ssa-structalias.c (handle_lhs_call): Delay setting
12742 of DECL_EXTERNAL for HEAP variables.
12743 (compute_points_to_sets): Set DECL_EXTERNAL for escaped
12744 HEAP variables. Do not adjust RESTRICT vars.
12745 (find_what_var_points_to): Nobody cares if something
12746 points to READONLY.
12747
2011dbb0
BE
127482009-07-02 Ben Elliston <bje@au.ibm.com>
12749
12750 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
12751 pc_low and pc_high declarations to the top of the function.
12752
f2082f90
DD
127532009-07-01 DJ Delorie <dj@redhat.com>
12754
12755 * config/mep/mep.c (mep_handle_option): Leave IVC2 control
12756 registers as fixed.
5071eab7 12757 (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
f2082f90
DD
12758 * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
12759 unspecified accesses to control registers.
12760 * config/mep/intrinsics.md: Regenerate.
12761 * config/mep/intrinsics.h: Regenerate.
12762 * config/mep/mep-intrin.h: Regenerate.
3f36bac2 12763
9df748c0
AG
127642009-07-01 Anthony Green <green@moxielogic.com>
12765
12766 * config/moxie/moxie.c (moxie_expand_prologue): Use dec
12767 instruction when possible.
12768 (moxie_expand_prologue): Ditto. Also, save an instruction and
3f36bac2 12769 some complexity by popping off of $r12 instead of $sp.
9df748c0
AG
12770 * config/moxie/moxie.md (movsi_pop): Don't assume $sp. Take two
12771 operands.
3f36bac2 12772
997704f1
RH
127732009-07-01 Richard Henderson <rth@redhat.com>
12774
12775 PR bootstrap/40347
12776 * function.c (reposition_prologue_and_epilogue_notes): If epilogue
12777 contained no insns, reposition note before last insn.
12778
9f2af3ce
RH
127792009-07-01 Richard Henderson <rth@redhat.com>
12780
12781 PR debug/40431
12782 * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
12783 DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
12784
d66a97e2
MM
127852009-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
12786
12787 PR bootstrap/40558
12788 * config/rs6000/rs6000.c (print_operand): Undo change that breaks
12789 darwin9 for printing reg addresses with %y.
12790
479b1013
AN
127912009-07-01 Adam Nemet <anemet@caviumnetworks.com>
12792
12793 * combine.c (force_to_mode): Handle TRUNCATE. Factor out
12794 truncation from operands in binary operations.
12795
c600a155
AN
127962009-07-01 Adam Nemet <anemet@caviumnetworks.com>
12797
12798 Revert:
12799 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
12800 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
12801 subreg of op0 to the original op0.
12802
12803 * expmed.c (store_bit_field_1): Use a temporary as the destination
12804 instead of a paradoxical subreg when we need to truncate the result.
12805
a12e9a5f
DD
128062009-07-01 DJ Delorie <dj@redhat.com>
12807
5071eab7
UB
12808 * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
12809 names to VLIW variants.
a12e9a5f
DD
12810 (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
12811 * config/mep/intrinsics.md: Regenerate.
12812 * config/mep/intrinsics.h: Regenerate.
12813 * config/mep/mep-intrin.h: Regenerate.
12814
2a5bd62a
JJ
128152009-07-01 Jakub Jelinek <jakub@redhat.com>
12816
12817 PR debug/40462
12818 * jump.c (returnjump_p): Revert last patch.
12819 * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
12820
3232e9d8
JDA
128212009-07-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12822
4aa7f896
JDA
12823 PR target/40575
12824 * pa.md (casesi32p): Use jump table label to determine the offset
12825 of the jump table.
12826 (casesi64p): Likewise.
12827
5071eab7
UB
12828 * pa.c (forward_branch_p): Return bool type. Use instruction
12829 addresses when available. Assert that INSN has a jump label.
3232e9d8
JDA
12830 (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
12831 have a jump label.
12832
14c41b9b
RG
128332009-07-01 Richard Guenther <rguenther@suse.de>
12834
12835 PR tree-optimization/19831
12836 * tree-ssa-dce.c (propagate_necessity): Calls to functions
5071eab7 12837 that only act as barriers do not make any previous stores necessary.
14c41b9b
RG
12838 * tree-ssa-structalias.c (handle_lhs_call): Delay making
12839 HEAP variables global, do not add a constraint from nonlocal.
12840 (find_func_aliases): Handle escapes through return statements.
12841 (compute_points_to_sets): Make escaped HEAP variables global.
12842
1ed20a40
PB
128432009-07-01 Paolo Bonzini <bonzini@gnu.org>
12844
12845 PR bootstrap/40597
12846 * expmed.c (emit_store_flag): Perform a conversion if necessary,
12847 after reducing a DImode cstore to SImode.
12848
ce3aea35
PB
128492009-07-01 Paolo Bonzini <bonzini@gnu.org>
12850
12851 * expr.c (expand_expr_real_1): Reinstate fallthrough to
12852 TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
12853
1df34d4d
MR
128542009-07-01 Maciej W. Rozycki <macro@linux-mips.org>
12855
12856 * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro. Set to 1.
12857 * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro. Redefine the
12858 to 0.
12859 * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
12860 and umod_optab if TARGET_BSD_DIVMOD.
12861 * config/vax/lib1funcs.asm: New file.
12862 * config/vax/t-linux: New file.
12863 * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
12864
085e05ac
JJ
128652009-06-30 Jakub Jelinek <jakub@redhat.com>
12866
5ccde5a0
JJ
12867 PR c++/40566
12868 * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
12869 to type arguments that have void type.
12870
085e05ac
JJ
12871 PR debug/40573
12872 * dwarf2out.c (gen_formal_parameter_die): Call
12873 equate_decl_number_to_die if node is different from origin.
12874
9fb374d6
AG
128752009-06-30 Anthony Green <green@moxielogic.com>
12876
12877 Clean up moxie port for --enable-build-with-cxx.
12878 * config/moxie/moxie.c (moxie_function_value): First two
12879 parameters are const_tree, not tree.
12880 * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
12881 (REG_CLASS_NAMES): Ditto.
12882 (REGNO_REG_CLASS): Ditto.
12883 * config/moxie/moxie-protos.h (moxie_override_options): Declare.
12884 (moxie_function_value): Fix constyness of arguments.
12885
f82a627c
EB
128862009-06-30 Eric Botcazou <ebotcazou@adacore.com>
12887
12888 * cgraphunit.c (cgraph_finalize_compilation_unit): Call
12889 finalize_size_functions before further processing.
12890 * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
12891 (variable_size): Call self_referential_size on size expressions
12892 that contain a PLACEHOLDER_EXPR.
12893 (size_functions): New static variable.
12894 (copy_self_referential_tree_r): New static function.
12895 (self_referential_size): Likewise.
12896 (finalize_size_functions): New global function.
12897 * tree.c: Include tree-inline.h.
12898 (push_without_duplicates): New static function.
12899 (find_placeholder_in_expr): New global function.
12900 (substitute_in_expr) <tcc_declaration>: Return the replacement object
12901 on equality.
12902 <tcc_expression>: Likewise.
12903 <tcc_vl_exp>: If the replacement object is a constant, try to inline
12904 the call in the expression.
12905 * tree.h (finalize_size_functions): Declare.
12906 (find_placeholder_in_expr): Likewise.
12907 (FIND_PLACEHOLDER_IN_EXPR): New macro.
12908 (substitute_placeholder_in_expr): Update comment.
12909 * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
12910 is true.
12911 (copy_tree_body_r): Likewise.
12912 (copy_tree_body): New static function.
12913 (maybe_inline_call_in_expr): New global function.
12914 * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
12915 (maybe_inline_call_in_expr): Declare.
12916 * Makefile.in (tree.o): Depend on TREE_INLINE_H.
12917 (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
12918 GIMPLE_H.
12919
67635176
RG
129202009-06-30 Richard Guenther <rguenther@suse.de>
12921
12922 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
12923 continue walking.
12924 (propagate_necessity): Do not mark reaching defs of stores
12925 as necessary.
12926
2de58650
JH
129272009-06-30 Jan Hubicka <jh@suse.cz>
12928
12929 * cfgloopanal.c (check_irred): Move into ...
12930 (mark_irreducible_loops): ... here; return true if ireducible
12931 loops was found.
12932 * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
12933 (analyze_function): Try to prove loop finiteness.
12934 * cfgloop.h (mark_irreducible_loops): Update prototype.
12935 * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
12936
46db44cc
BS
129372009-06-30 Basile Starynkevitch <basile@starynkevitch.net>
12938
12939 * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
12940
1825a1f3
IR
129412009-06-30 Ira Rosen <irar@il.ibm.com>
12942
12943 PR tree-optimization/40542
f100a4a8 12944 * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
1825a1f3
IR
12945 types.
12946
71d4d3eb
MJ
129472009-06-30 Martin Jambor <mjambor@suse.cz>
12948
12949 PR tree-optimization/40582
12950 * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
12951 than useless_type_conversion_p.
12952 (generate_subtree_copies): Increment sra_stats.subtree_copies at a
12953 proper place.
12954
f57017cd
MJ
129552009-06-30 Martin Jambor <mjambor@suse.cz>
12956
12957 PR middle-end/40554
12958 * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
12959
42bc61e0
RG
129602009-06-30 Richard Guenther <rguenther@suse.de>
12961
12962 * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
12963 use ao_ref references.
12964 (walk_aliased_vdefs): Likewise.
12965 * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
12966 * tree-ssa-dce.c (struct ref_data): Remove.
12967 (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
12968 (mark_aliased_reaching_defs_necessary): Adjust.
12969 (mark_all_reaching_defs_necessary_1): Likewise.
12970
ef12ae45
PB
129712009-06-30 Paolo Bonzini <bonzini@gnu.org>
12972
12973 PR boostrap/40597
12974 * expmed.c (emit_cstore): New name of emit_store_flag_1.
12975 (emit_store_flag_1): Extract from emit_store_flag, adjust
12976 calls to (what now is) emit_cstore.
12977 (emit_store_flag): Call emit_store_flag_1 and also use it
12978 for what used to be recursive calls.
12979
791b59e3
WG
129802009-06-30 Wei Guozhi <carrot@google.com>
12981
12982 PR/40416
12983 * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
12984 if the target bb post dominates from bb.
12985 * config/i386/i386.c (memory_address_length): Check existence of base
12986 register before using it.
12987
7a61cf6f
NC
129882009-06-30 Nick Clifton <nickc@redhat.com>
12989 DJ Delorie <dj@redhat.com>
12990
12991 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
12992 __FMOVD_ENABLED__ is defined.
12993 * config/sh/sh.h
12994 (TARGET_FMOVD): Provide a default definition.
12995 (MASK_FMOVD): Likewise.
12996 (TARGET_CPU_CPP_BUILTINS): Define
12997 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
12998 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
12999 two fmov instructions depending upon whether TARGET_FMOVD is
13000 enabled.
13001 (split for DF load from memory into register): Also handle
13002 MEMs which consist of REG+DISP addressing.
13003 (split for DF store from register to memory): Likewise.
13004 * config/sh/sh.opt (mfmovd): Remove this switch.
13005 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
13006 * config/sh/sh.c (sh_override_options): Do not automatically
13007 enable TARGET_MOVD for the SH2A when supporting doubles - leave
13008 that to the -mfmovd command line switch.
13009
13010 * config/sh/sh.c (broken_move): Do not restrict fldi test to only
13011 the SH4 and SH4A.
13012 (fldi_ok): Always allow.
13013 * config/sh/sh.md (movsf_ie): Always use single fp_mode.
13014
5a99fe3e
DD
130152009-06-29 DJ Delorie <dj@redhat.com>
13016
13017 * doc/install.texi (mep-x-elf): Correct chip's full name.
13018
ddaa3488
L
130192009-06-29 H.J. Lu <hongjiu.lu@intel.com>
13020
13021 * doc/extend.texi: Fix typo.
13022
bbf531f0
TT
130232009-06-29 Tom Tromey <tromey@redhat.com>
13024
13025 * dwarf2.h: Remove.
13026 * Makefile.in (DWARF2_H): New variable.
13027 (except.o): Use it.
13028 (dwarf2out.o): Likewise.
13029 (dwarf2asm.o): Likewise.
13030 * config/i386/t-i386: Use DWARF2_H.
13031 * except.c: Include elf/dwarf2.h.
13032 * unwind-dw2.c: Include elf/dwarf2.h.
13033 * dwarf2out.c: Include elf/dwarf2.h.
13034 (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
13035 <dtprel>: New field.
13036 (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
13037 (size_of_loc_descr): Likewise.
13038 (output_loc_operands_raw): Likewise.
13039 (output_loc_operands): Handle new dtprel field.
13040 (loc_checksum): Update.
13041 (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
13042 * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
13043 * unwind-dw2-fde.c: Include elf/dwarf2.h.
13044 * dwarf2asm.c: Include elf/dwarf2.h.
13045 * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
13046 * config/mmix/mmix.c: Include elf/dwarf2.h.
13047 * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
13048 * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
13049 * config/sh/sh.c: Include elf/dwarf2.h.
13050 * config/i386/i386.c: Include elf/dwarf2.h.
13051
e2491744
DD
130522009-06-29 DJ Delorie <dj@redhat.com>
13053
bae38135
DD
13054 * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
13055
e2491744
DD
13056 * doc/extend.texi: Add MeP attributes and pragmas.
13057 * doc/invoke.text: Add MeP Options.
13058 * doc/contrib.texi: Add MeP contribution.
13059 * doc/md.texi: Add MeP constraints.
13060 * doc/install.texi: Add MeP target.
13061
b52b1749
AS
130622009-06-30 Anatoly Sokolov <aesok@post.ru>
13063
13064 * target.h (struct gcc_target): Add frame_pointer_required field.
13065 * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
13066 (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
13067 * ira.c (setup_eliminable_regset): Use frame_pointer_required target
13068 hook.
13069 * reload1.c (update_eliminables): (Ditto.).
13070 * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
13071 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
13072 (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
13073
13074 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
13075
13076 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
13077 * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
13078 (arm_frame_pointer_required): New function.
13079
13080 * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
13081 * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13082 (avr_frame_pointer_required_p): Declare as static.
13083 * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
13084
13085 * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
13086 * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
13087 (bfin_frame_pointer_required): Make as static, change return type
13088 to bool.
13089 * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
13090
13091 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
13092 * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13093 (cris_frame_pointer_required): New function.
f100a4a8 13094
b52b1749
AS
13095 * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
13096
13097 * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
13098 * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13099 (fr30_frame_pointer_required): New function.
f100a4a8 13100
b52b1749
AS
13101 * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
13102 * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
13103 (frv_frame_pointer_required): Make as static, change return type
13104 to bool.
13105 * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
13106
13107 * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
13108 * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13109 (ix86_frame_pointer_required): Make as static, change return type to
13110 bool.
13111 * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
13112
13113 * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
13114 * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13115
13116 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
13117
13118 * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
f100a4a8 13119
b52b1749
AS
13120 * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
13121
13122 * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
13123 * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13124 (mips_frame_pointer_required): Make as static.
13125 * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
f100a4a8 13126
b52b1749
AS
13127 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
13128 * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13129 (mmix_frame_pointer_required): Mew function.
13130
13131 * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
13132 * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13133
13134 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
13135
13136 * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
13137
13138 * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
13139
13140 * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
13141 (CAN_ELIMINATE): Redefine.
13142 * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13143 (sparc_frame_pointer_required): New function.
13144 (sparc_can_eliminate): New function.
13145 * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
13146
13147 * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
13148 * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
13149
13150 * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
13151 * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
13152 (xtensa_frame_pointer_required): Make as static, change return type
13153 to bool.
13154 * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
13155 Remove.
13156
5071eab7 131572009-06-29 Olatunji Ruwase <tjruwase@google.com>
78bf7bd0
OR
13158
13159 * doc/plugins.texi: Document PLUGIN_START_UNIT.
13160 * toplev.c (compile_file): Call PLUGIN_START_UNIT.
13161 * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
13162 * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
13163 (register_callback): Handle PLUGIN_START_UNIT.
13164 (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
13165
96da8066
EB
131662009-06-29 Eric Botcazou <ebotcazou@adacore.com>
13167
13168 * tree.c (process_call_operands): Propagate TREE_READONLY from the
13169 operands.
13170 (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
13171 (build3_stat): Propagate TREE_READONLY for COND_EXPR.
13172
356ecb15
DJ
131732009-06-29 Daniel Jacobowitz <dan@codesourcery.com>
13174
13175 * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
13176 move cost.
13177
897eef7b
UB
131782009-06-29 Uros Bizjak <ubizjak@gmail.com>
13179
13180 * doc/extend.texi (Additional Floating Types): __float128 is also
13181 supported on i386 targets.
13182
74d27244
RG
131832009-06-29 Richard Guenther <rguenther@suse.de>
13184
13185 PR middle-end/14187
13186 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
13187 flag.
13188 (pt_solutions_same_restrict_base): Declare.
13189 * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
13190 flag.
13191 (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
13192 (make_constraint_from, make_copy_constraint): Move earlier.
13193 (make_constraint_from_heapvar): New function.
13194 (make_constraint_from_restrict): Likewise.
13195 (handle_lhs_call): Use it.
13196 (find_func_aliases): Use it to track conversions to restrict
13197 qualified pointers.
13198 (struct fieldoff): Add only_restrict_pointers flag.
13199 (push_fields_onto_fieldstack): Initialize it.
13200 (create_variable_info_for): Track global restrict qualified pointers.
13201 (intra_create_variable_infos): Use make_constraint_from_heapvar.
13202 Track restrict qualified pointer arguments.
13203 (set_uids_in_ptset): Use varinfo is_global_var flag.
13204 (find_what_var_points_to): Set the vars_contains_restrict flag.
13205 Always create the points-to solution for sets including restrict tags.
13206 (pt_solutions_same_restrict_base): New function.
13207 * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
13208 qualified pointers use pt_solutions_same_restrict_base as
13209 additional source for disambiguation.
13210
5b21f0f3
RG
132112009-06-29 Richard Guenther <rguenther@suse.de>
13212
13213 PR middle-end/38212
13214 * alias.c (find_base_decl): Remove.
13215 (get_deref_alias_set_1): Remove restrict handling.
13216 * c-common.c (c_apply_type_quals_to_decl): Do not set
13217 DECL_POINTER_ALIAS_SET.
13218 * gimplify.c (find_single_pointer_decl_1): Remove.
13219 (find_single_pointer_decl): Likewise.
13220 (internal_get_tmp_var): Remove restrict handling.
13221 (gimple_regimplify_operands): Likewise.
13222 * omp-low.c (expand_omp_atomic_pipeline): Do not set
13223 DECL_POINTER_ALIAS_SET. Use ref-all pointers.
13224 * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
13225 * tree.c (restrict_base_for_decl): Remove.
13226 (init_ttree): Do not allocate it.
13227 (make_node_stat): Do not set DECL_POINTER_ALIAS_SET. Set
13228 LABEL_DECL_UID for label decls.
13229 (copy_node_stat): Do not copy restrict information.
13230 (decl_restrict_base_lookup): Remove.
13231 (decl_restrict_base_insert): Likewise.
13232 (print_restrict_base_statistics): Likewise.
13233 (dump_tree_statistics): Do not call print_restrict_base_statistics.
13234 * tree.h (DECL_POINTER_ALIAS_SET): Remove.
13235 (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
13236 (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
13237 (LABEL_DECL_UID): Adjust.
13238 (DECL_BASED_ON_RESTRICT_P): Remove.
13239 (DECL_GET_RESTRICT_BASE): Likewise.
13240 (SET_DECL_RESTRICT_BASE): Likewise.
13241 (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
13242
13243 * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
13244 instead of DECL_POINTER_ALIAS_SET.
13245 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
13246 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
13247 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
13248
09a782eb
RG
132492009-06-29 Richard Guenther <rguenther@suse.de>
13250
13251 PR tree-optimization/40579
13252 * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
13253 the IL to simplify has constants that overflowed.
13254
1e9ae5ab
UB
132552009-06-28 Uros Bizjak <ubizjak@gmail.com>
13256
13257 PR tree-optimization/40550
13258 * tree-vect-generic.c (expand_vector_operations_1): Compute in
13259 vector_compute_type only when the size of vector_compute_type is
13260 less than the size of type.
13261
c703e618
EB
132622009-06-28 Eric Botcazou <ebotcazou@adacore.com>
13263
13264 * fold-const.c (contains_label_1): Fix comments.
13265 (contains_label_p): Do not walk trees multiple time.
13266
0948ccb2
PB
132672009-06-28 Paolo Bonzini <bonzini@gnu.org>
13268
897eef7b
UB
13269 * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
13270 * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
13271 cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
13272 ix86_fp_comparison_operator.
13273 (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
13274 *fp_jcc_2_sse, *fp_jcc_2_387): Delete
13275 (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
13276 *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
13277 !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
13278 to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
13279 (related splits): Change predicate to ix86_fp_comparison_operator.
13280 * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
13281 instead of ix86_fp_comparison_codes.
13282 (ix86_trivial_fp_comparison_operator,
13283 ix86_fp_comparison_operator): New.
13284 * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
13285 (ix86_expand_compare): Eliminate last two parameters.
13286 (ix86_fp_jump_nontrivial_p): Kill.
13287 * config/i386/i386.c (put_condition_code): Eliminate call to
13288 ix86_fp_comparison_codes and subsequent assertion.
13289 (ix86_fp_comparison_codes): Eliminate.
13290 (ix86_fp_swap_condition): New.
13291 (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
13292 ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
13293 into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
13294 (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
13295 and ix86_fp_swap_condition.
13296 (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
13297 Use ix86_fp_comparison_strategy.
13298 (ix86_expand_compare): Likewise. Eliminate last two arguments.
13299 (ix86_fp_jump_nontrivial_p): Eliminate.
13300 (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple. Adjust
13301 call to ix86_expand_compare.
13302 (ix86_split_fp_branch, ix86_expand_setcc,
13303 ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
13304 ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
0948ccb2 13305
accbd151
PB
133062009-06-28 Paolo Bonzini <bonzini@gnu.org>
13307
897eef7b
UB
13308 * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
13309 related to jump_clobbers.
13310 * config/arm/arm.md (conds): Remove jump_clob case.
13311 (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
13312 splits): Change comparison_operator to arm_comparison_operator.
13313 (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
13314 Eliminate.
accbd151 13315
45475a3f
PB
133162009-06-28 Paolo Bonzini <bonzini@gnu.org>
13317
897eef7b
UB
13318 * dojump.c (do_compare_rtx_and_jump): Try swapping the
13319 condition for floating point modes.
13320 * expmed.c (emit_store_flag_1): Move here a bigger part
13321 of emit_store_flag.
13322 (emit_store_flag): Try swapping the condition for floating point
13323 modes.
13324 * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
45475a3f 13325
495499da
PB
133262009-06-28 Paolo Bonzini <bonzini@gnu.org>
13327
897eef7b
UB
13328 * expr.c (expand_expr_real_1): Just use do_store_flag.
13329 (do_store_flag): Drop support for TRUTH_NOT_EXPR. Use
13330 emit_store_flag_force.
13331 * expmed.c (emit_store_flag_force): Copy here trick
13332 previously in expand_expr_real_1. Try reversing the comparison.
13333 (emit_store_flag_1): Work if target is NULL.
13334 (emit_store_flag): Work if target is NULL, using the result mode
13335 from the comparison. Use split_comparison, restructure final part
13336 to simplify conditionals.
495499da 13337
337e5d98
PB
133382009-06-28 Paolo Bonzini <bonzini@gnu.org>
13339
897eef7b
UB
13340 * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
13341 * dojump.c (do_jump): Change handling of floating-point
13342 ops to use just do_compare_and_jump.
13343 (split_comparison): New.
13344 (do_compare_rtx_and_jump): Add here logic coming previously
13345 in do_jump, using split_comparison.
337e5d98 13346
2ca57608
L
133472009-06-27 H.J. Lu <hongjiu.lu@intel.com>
13348
13349 PR target/40489
13350 * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
13351
8122ccf1
PB
133522009-06-27 Paolo Bonzini <bonzini@gnu.org>
13353
13354 * tree-ssa-alias.c: Fix unintentional commit.
13355
b9cafe60
PB
133562009-06-27 Paolo Bonzini <bonzini@gnu.org>
13357
13358 * passes.c (execute_one_pass): Fix unintentional commit.
13359
4c78c26b
PB
133602009-06-27 Paolo Bonzini <bonzini@gnu.org>
13361
2ca57608
L
13362 * df-problems.c (df_set_seen, df_unset_seen): Delete.
13363 (df_rd_local_compute, df_md_local_compute): Inline them.
4c78c26b 13364
2ca57608
L
13365 (df_md_scratch): New.
13366 (df_md_alloc, df_md_free): Allocate/free it.
13367 (df_md_local_compute): Only include live registers in init.
13368 (df_md_transfer_function): Prune the in-set computed by
13369 the confluence function, and the gen-set too.
4c78c26b
PB
13370
133712009-06-27 Paolo Bonzini <bonzini@gnu.org>
c6741572
PB
13372
13373 PR rtl-optimization/26854
2ca57608
L
13374 * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
13375 * df-problems.c (df_rd_add_problem): Fix comment.
13376 (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
13377 df_md_simulate_artificial_defs_at_top,
13378 df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
13379 df_md_bb_local_compute, df_md_local_compute, df_md_reset,
13380 df_md_transfer_function, df_md_init, df_md_confluence_0,
13381 df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
13382 problem_MD, df_md_add_problem): New.
13383 * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
13384 df_md_get_bb_info): New.
1e9ae5ab 13385 (DF_LAST_PROBLEM_PLUS1): Adjust.
2ca57608
L
13386
13387 * Makefile.in (fwprop.o): Include domwalk.h.
13388 * fwprop.c: Include domwalk.h.
13389 (reg_defs, reg_defs_stack): New.
13390 (bitmap_only_bit_between): Remove.
13391 (process_defs): New.
13392 (process_uses): Use reg_defs and local_md instead of
13393 bitmap_only_bit_between and local_rd.
13394 (single_def_use_enter_block): New, from build_single_def_use_links.
13395 (single_def_use_leave_block): New.
13396 (build_single_def_use_links): Remove code moved to
13397 single_def_use_enter_block, invoke domwalk.
13398 (use_killed_between): Adjust comment.
c6741572 13399
7ff23740
PB
134002009-06-27 Paolo Bonzini <bonzini@gnu.org>
13401
13402 * bitmap.h (bitmap_ior_and_into): New.
13403 * bitmap.c (bitmap_ior_and_into): New.
13404
ccf5c864
PB
134052009-06-27 Paolo Bonzini <bonzini@gnu.org>
13406
2ca57608
L
13407 * domwalk.h (struct dom_walk_data): Remove all callbacks except
13408 before_dom_children_before_stmts and after_dom_children_after_stmts.
f100a4a8 13409 Rename the two remaining callbacks to just before_dom_children and
2ca57608
L
13410 after_dom_children. Remove other GIMPLE statement walking bits.
13411 * domwalk.c (walk_dominator_tree): Remove now unsupported features.
13412 * graphite.c: Do not include domwalk.h.
13413 * tree-into-ssa.c (interesting_blocks): New global.
13414 (struct mark_def_sites_global_data): Remove it and names_to_rename.
13415 (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
13416 rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
13417 now that they're not domwalk callbacks.
13418 (rewrite_initialize_block): Rename to...
13419 (rewrite_enter_block): ... this, place after called functions. Test
13420 interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
13421 (rewrite_finalize_block): Rename to...
13422 (rewrite_leave_block): ... this, place after called functions.
13423 (rewrite_update_init_block): Rename to...
13424 (rewrite_update_enter_block): ... this, place after called functions.
f100a4a8 13425 Test interesting_blocks, call rewrite_update_stmt and
2ca57608
L
13426 rewrite_update_phi_arguments.
13427 (rewrite_update_fini_block): Rename to...
13428 (rewrite_leave_block): ... this, place after called functions.
13429 (rewrite_blocks): Remove last argument, simplify initialization of
13430 walk_data.
13431 (mark_def_sites_initialize_block): Rename to...
13432 (mark_def_sites_block): ... this, call mark_def_sites.
13433 (mark_def_sites_blocks): Remove argument, simplify initialization of
13434 walk_data.
13435 (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
13436 (update_ssa): Likewise.
13437 * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
13438 callback.
13439 (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
13440 (dom_opt_initialize_block): Rename to...
13441 (dom_opt_enter_block): ... this, place after called functions. Walk
13442 statements here, inline propagate_to_outgoing_edges.
13443 (dom_opt_finalize_block): Rename to...
13444 (dom_opt_leave_block): ... this, place after called functions.
13445 * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
13446 domwalk callback.
13447 (dse_enter_block, dse_record_phi): New.
13448 (dse_record_phis): Delete.
13449 (dse_finalize_block): Rename to...
13450 (dse_leave_block): ... this.
13451 (tree_ssa_dse): Simplify initialization of walk_data.
13452 * tree-ssa-loop-im.c (determine_invariantness, move_computations):
13453 Adjust initialization of walk_data.
13454 * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
13455 * tree-ssa-loop-phiopt.c (get_non_trapping):
13456 Adjust initialization of walk_data.
13457 * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
13458 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
13459 it's not a domwalk callback.
13460 (uncprop_initialize_block): Rename to...
13461 (dse_enter_block): ... this, call uncprop_into_successor_phis.
13462 (dse_finalize_block): Rename to...
13463 (dse_leave_block): ... this.
13464 (tree_ssa_uncprop): Simplify initialization of walk_data.
13465 * Makefile.in: Adjust dependencies.
ccf5c864 13466
75d28030
RE
134672009-06-27 Richard Earnshaw <rearnsha@arm.com>
13468
13469 * arm.md (casesi): Fix test for Thumb1.
13470 (thumb1_casesi_internal_pic): Likewise.
13471 (thumb1_casesi_dispatch): Likewise.
13472
9833720d
DG
134732009-06-26 Daniel Gutson <dgutson@codesourcery.com>
13474
13475 * config/arm/arm-cores.def: Added core cortex-m0.
13476 * config/arm/arm-tune.md: Regenerated.
13477 * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
13478
bb7681bf
DD
134792009-06-26 DJ Delorie <dj@redhat.com>
13480
13481 * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
13482
13483 * config/mep/mep.c (mep_bundle_insns): Account for the fact that
13484 the scheduler doesn't tag jump insns.
13485
a35120a3
L
134862009-06-26 H.J. Lu <hongjiu.lu@intel.com>
13487
13488 * c-decl.c (merge_decls): Re-indent.
13489
4b6e55df
JJ
134902009-06-26 Janis Johnson <janis187@us.ibm.com>
13491
13492 PR c/39902
13493 * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
13494 Special-case decimal float constants.
13495
27dbd3ac
RH
134962009-06-26 Richard Henderson <rth@redhat.com>
13497
13498 * function.h (struct function): Add cannot_be_copied_reason,
13499 and cannot_be_copied_set.
13500 * tree-inline.c (has_label_address_in_static_1): Rename from
13501 inline_forbidden_p_2; don't set inline_forbidden_reason here.
13502 (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
13503 don't set inline_forbidden_reason.
13504 (copy_forbidden): New function, split out of inline_forbidden_p.
13505 (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
13506 (inline_forbidden_p): Use copy_forbidden.
13507 (tree_versionable_function_p): Likewise.
13508 (inlinable_function_p): Merge into tree_inlinable_function_p.
13509 (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
13510 * ipa-cp.c (ipcp_versionable_function_p): New function.
13511 (ipcp_cloning_candidate_p): Use it.
13512 (ipcp_node_modifiable_p): Likewise.
13513
efb303b1
OR
135142009-06-26 Olatunji Ruwase <tjruwase@google.com>
13515
13516 * builtins.c (expand_builtin_alloca): Handle builtin alloca
13517 that is marked not to be inlined. Remove flag_mudflap use.
13518 * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
13519 (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
13520
947e21c1
SE
135212009-06-26 Steve Ellcey <sje@cup.hp.com>
13522
13523 PR bootstrap/40338
13524 * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
13525 * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
13526
bae4cf87
KT
135272009-06-26 Kai Tietz <kai.tietz@onevision.com>
13528
13529 * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
13530 shared libgcc.
13531 (__mingwthr_remove_key_dtor): Likewise.
13532
46aaa417
RG
135332009-06-26 Richard Guenther <rguenther@suse.de>
13534
1e9ae5ab 13535 * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
46aaa417 13536
b3c54c8f
SB
135372009-06-26 Steven Bosscher <steven@gcc.gnu.org>
13538
13539 PR middle-end/40525
13540 * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
13541 try the non-cond_exec path also.
13542
f5e66865
JDA
135432009-06-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13544
13545 PR target/40468
13546 * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
13547 (output_cbranch): Use new functions.
13548 (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
13549 Likewise.
13550
8beb65e3
MM
135512009-06-25 Michael Meissner <meissner@linux.vnet.ibm.com>
13552 Pat Haugen <pthaugen@us.ibm.com>
13553 Revital Eres <ERES@il.ibm.com>
13554
d66a97e2
MM
13555 * config/rs6000/rs6000.c (print_operand): Correct lossage message
13556 for %c error. Add %x support to print VSX registers as a unified
13557 register set, instead of separate float and altivec registers.
13558 Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
13559 %y case, and add support for VSX pre-modify addresses.
13560 (output_toc): Add assert for CONST containing an integer constant
13561 in the PLUS case.
13562 (rs6000_adjust_cost): Add POWER7 support.
13563 (insn_must_be_first_in_group): Ditto.
13564 (insn_must_be_last_in_group): Ditto.
13565 (rs6000_emit_popcount): Ditto.
13566 (rs6000_vector_mode_supported_p): Ditto.
13567
8beb65e3
MM
13568 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
13569 Change some of the functions called by macros to being called
13570 through a pointer, so debug functions can be inserted if
f100a4a8 13571 -mdebug=addr or -mdebug=cost.
8beb65e3
MM
13572 (rs6000_preferred_reload_class_ptr): Ditto.
13573 (rs6000_secondary_reload_class_ptr): Ditto.
13574 (rs6000_secondary_memory_needed_ptr): Ditto.
13575 (rs6000_cannot_change_mode_class_ptr): Ditto.
13576 (rs6000_secondary_reload_inner): Ditto.
13577 (rs6000_legitimize_reload_address): Ditto.
13578 (rs6000_legitimize_reload_address_ptr): Ditto.
13579 (rs6000_mode_dependent_address): Ditto.
13580 (rs6000_mode_dependent_address_ptr): Ditto.
13581
13582 * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
13583 function to return true if the mode allows reg + integer
13584 addresses.
13585 (virtual_stack_registers_memory_p): New function to return true if
13586 the address refers to a virtual stack register.
13587 (rs6000_legitimate_offset_address_p): Move code to say whether a
13588 mode supports reg+int addressing to reg_offset_addressing_ok_p and
13589 call it.
13590 (rs6000_legitimate_address_p): Add checks for modes that only can
13591 do reg+reg addressing. Start adding VSX support.
13592 (rs6000_legitimize_reload_address): Ditto.
13593 (rs6000_legitimize_address): Ditto.
13594 (rs6000_debug_legitimate_address_p): New debug functions for
13595 -mdebug=addr and -mdebug=cost.
13596 (rs6000_debug_rtx_costs): Ditto.
13597 (rs6000_debug_address_costs): Ditto.
13598 (rs6000_debug_adjust_cost): Ditto.
13599 (rs6000_debug_legitimize_address): Ditto.
13600 (rs6000_legitimize_reload_address_ptr): Point to call normal
13601 function or debug function. Make functions called via pointer
13602 static.
13603 (rs6000_mode_dependent_address_ptr): Ditto.
13604 (rs6000_secondary_reload_class_ptr): Ditto.
13605 (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
13606 (rs6000_emit_move): Add -mdebug=addr support. Change an abort
13607 into a friendlier error.
13608 (rs6000_init_builtins): Add initial VSX support.
13609 (rs6000_adjust_cost): Fix some spacing issues.
13610
13611 * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
13612 (REG_CLASS_NAMES): Ditto.
13613 (REG_CLASS_CONTENTS): Ditto.
13614 (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
13615 pointer, to add -mdebug=addr support.
13616 (CANNOT_CHANGE_MODE_CLASS): Ditto.
13617 (SECONDARY_RELOAD_CLASS): Call through a pointer to add
13618 -mdebug=addr support.
13619 (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
13620 (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
13621 (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
13622
13623 * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
13624 16-bit values.
13625 (bswapsi*): Set attribute types for load/store. Add combiner
13626 patterns to eliminate zero extend on 64-bit.
13627 (bswapdi*): Add support for swapping 64-bit values. Use ldbrx and
13628 stdbrx if the hardware supports those instructions.
13629
96be7a11
ILT
136302009-06-25 Ian Lance Taylor <iant@google.com>
13631
13632 * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
13633 (Link Options): Document -static-libstdc++.
13634
777a3a6a
AP
136352009-06-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
13636
13637 PR target/38731
13638 * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
13639 DATA_ALIGNMENT instead.
13640
1cb367ae
RG
136412009-06-25 Richard Guenther <rguenther@suse.de>
13642
13643 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
13644 indirect references against the callused/escaped solutions.
13645 (call_may_clobber_ref_p_1): Likewise.
13646
fac52fdd
MJ
136472009-06-25 Martin Jambor <mjambor@suse.cz>
13648
13649 PR tree-optimization/40493
13650 * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
13651 (enum unscalarized_data_handling): New type.
13652 (handle_unscalarized_data_in_subtree): Return what has been done.
13653 (load_assign_lhs_subreplacements): Handle left flushes differently.
13654 (sra_modify_assign): Use unscalarized_data_handling, simplified
13655 condition determining whether to remove the statement.
13656
3cb71167 136572009-06-25 Basile Starynkevitch <basile@starynkevitch.net>
c8aca64f
EB
13658
13659 * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
13660 excerpt - @ should be doubled for texinfo.
3cb71167 13661
5a82ecd9
ILT
136622009-06-24 Ian Lance Taylor <iant@google.com>
13663
13664 * config/arc/arc.c: Include "df.h".
13665 (arc_attribute_table): Make static. Move higher in file.
13666 (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
13667 (output_shift): Initialize n later to avoid warning.
13668 * config/arm/arm.c (arm_attribute_table): Make static. Move
13669 higher in file.
13670 * config/avr/avr.c (avr_attribute_table): Make static. Move
13671 higher in file.
13672 (reg_class_tab): Change array type from int to enum reg_class.
13673 (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
13674 LABEL_REF.
13675 (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
13676 (lshrhi3_out): Likewise.
13677 (class_likely_spilled_p): Change return type to bool.
13678 (avr_rtx_costs): Use local code variable with enum type.
13679 * config/avr/avr.md (movmemhi): Use add_reg_note.
13680 (andhi3, andsi3): Don't use AS2 with "and".
13681 (iorhi3, iorsi3): Don't use AS2 with "or".
1e9ae5ab 13682 * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
5a82ecd9
ILT
13683 * config/crx/crx.c: Include "df.h".
13684 (crx_attribute_table): Make static.
13685 * config/m32r/m32r.c: Include "df.h".
13686 (m32r_attribute_table): Make static. Move higher in file.
13687 (pop): Use add_reg_note.
13688 (block_move_call): Change 0 to LCT_NORMAL in function call.
13689 * config/m32r/m32r.md (movsi_insn): Remove unused local value.
13690 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
13691 * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
13692 declare, not just when TREE_CODE is defined.
13693 * config/m68hc11/m68hc11.c: Include "expr.h".
13694 (m68hc11_attribute_table): Make static. Move higher in file.
13695 (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
13696 function call.
13697 (m68hc11_register_indirect_p): Likewise.
13698 (m68hc11_function_arg_padding): Change return type to enum
13699 direction.
13700 (emit_move_after_reload): Use add_reg_note.
13701 (m68hc11_emit_logical): Change code parameter to enum rtx_code.
13702 (m68hc11_split_logical): Likewise.
13703 (m68hc11_rtx_costs): Add local code_and outer_code variables with
13704 enum type.
13705 * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
13706 to VOIDmode in function call.
13707 * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
13708 tree is defined.
13709 (m68hc11_split_logical): Update declaration.
13710 (m68hc11_function_arg_padding): Update declaration.
13711 * config/mcore/mcore.c (regno_reg_class): Change form array of int
13712 to array of enum reg_class.
13713 (mcore_attribute_table): Make static. Move higher in file.
13714 (mcore_rtx_costs): Add cast to enum type.
13715 * config/mcore/mcore.h (regno_reg_class): Update declaration.
13716 (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
13717 * config/sh/sh.c (sh_attribute_table): Make static. Move higher
13718 in file.
13719 * config/sh/predicates.md (trapping_target_operand): Rename and to
13720 and_expr.
13721 * config/sparc/sparc.c (sparc_attribute_table): Make static. Move
13722 higher in file.
13723 * config/spu/spu.c (spu_attribute_table): Make static. Move
13724 higher in file.
13725 * config/v850/v850.c (v850_attribute_table): Make static. Move
13726 higher in file.
13727 (v850_rtx_costs): Use local code with enum type.
13728 (expand_epilogue): Add cast.
13729 * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
13730
b4589acc
TY
137312009-06-23 Takashi YOSHII <yoshii.takashi@renesas.com>
13732
13733 PR target/40515
13734 * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
13735 -m2a-single-only and -m2a-nofpu.
f100a4a8 13736 * config/sh/sh.opt: Document m2a generates FPU code.
b4589acc 13737
3be639f7
AS
137382009-06-24 Anatoly Sokolov <aesok@post.ru>
13739
13740 * defaults.h (CAN_ELIMINATE): Provide default.
13741 * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
13742 * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
13743 * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
13744 * config/spu/spu.h (CAN_ELIMINATE): Delete.
13745 * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
13746 * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
13747 * config/cris/cris.h (CAN_ELIMINATE): Delete.
13748 * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
13749 * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
13750 * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
13751
b6402fc3
DD
137522009-06-24 DJ Delorie <dj@redhat.com>
13753
13754 * mep-ext-cop.cpu: Fix copyright notice.
13755 * mep-default: Fix copyright notice.
13756 * mep-core: Fix copyright notice.
13757 * mep: Fix copyright notice.
13758 * mep-ivc2: Fix copyright notice.
13759 * mep-c5: Fix copyright notice.
13760
ead1eb1d
DC
137612009-06-24 Denis Chertykov <chertykov@gmail.com>
13762
f100a4a8 13763 * doc/contrib.texi (Contributors):
ead1eb1d 13764
fb6234e0 137652009-06-24 Andreas Krebbel <krebbel1@de.ibm.com>
f100a4a8 13766
fb6234e0
AK
13767 PR middle-end/40501
13768 * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
13769 src and dst operands if necessary.
13770
7acf4da6
DD
137712009-06-23 DJ Delorie <dj@redhat.com>
13772
13773 Add MeP port.
13774 * config.gcc: Add mep support.
13775 * recog.c: Resurrect validate_replace_rtx_subexp().
13776 * recog.h: Likewise.
13777 * config/mep/: Add new port:
13778 * config/mep/constraints.md: New file.
13779 * config/mep/default.h: New file.
13780 * config/mep/intrinsics.h: New file.
13781 * config/mep/intrinsics.md: New file.
13782 * config/mep/ivc2-template.h: New file.
13783 * config/mep/mep-c5.cpu: New file.
13784 * config/mep/mep-core.cpu: New file.
13785 * config/mep/mep-default.cpu: New file.
13786 * config/mep/mep-ext-cop.cpu: New file.
13787 * config/mep/mep-intrin.h: New file.
13788 * config/mep/mep-ivc2.cpu: New file.
13789 * config/mep/mep-lib1.asm: New file.
13790 * config/mep/mep-lib2.c: New file.
13791 * config/mep/mep-pragma.c: New file.
13792 * config/mep/mep-protos.h: New file.
13793 * config/mep/mep-tramp.c: New file.
13794 * config/mep/mep.c: New file.
13795 * config/mep/mep.cpu: New file.
13796 * config/mep/mep.h: New file.
13797 * config/mep/mep.md: New file.
13798 * config/mep/mep.opt: New file.
13799 * config/mep/predicates.md: New file.
13800 * config/mep/t-mep: New file.
13801
00020c16
ILT
138022009-06-23 Ian Lance Taylor <iant@google.com>
13803
13804 * configure.ac: Invoke AC_PROG_CXX. Separate C specific warnings
13805 from loose_warn into c_loose_warn and from strict_warn into
13806 c_strict_warn. Set and substitute warn_cxxflags. Check for
13807 --enable-build-with-cxx. Set and substitute
13808 ENABLE_BUILD_WITH_CXX. Set and substitute HOST_LIBS.
13809 * Makefile.in (CXXFLAGS): New variable.
13810 (C_LOOSE_WARN, C_STRICT_WARN): New variables.
13811 (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN). Add $(C_STRICT_WARN) if
13812 the default is the same as $(STRICT_WARN).
13813 (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
13814 (CXX): New variable.
13815 (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
13816 (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
13817 (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
13818 (HOST_LIBS): New variable.
13819 (GCC_CFLAGS): Add $(C_LOOSE_WARN).
13820 (ALL_CXXFLAGS): New variable.
13821 (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
13822 * doc/install.texi (Configuration): Document
13823 --enable-build-with-cxx, --with-stage1-ldflags,
13824 --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
13825 * configure: Rebuild.
13826
2d8b752f 138272009-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9df5bfe4 13828
2d8b752f
EB
13829 * config/arm/arm.c (arm_override_options): Fix braces and formatting
13830 from previous commit.
9df5bfe4 13831
73267076
ILT
138322009-06-23 Ian Lance Taylor <iant@google.com>
13833
13834 * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
13835
9a476c9c
ILT
138362009-06-23 Ian Lance Taylor <iant@google.com>
13837
13838 * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
13839 with ATTRIBUTE_UNUSED.
13840
cacf1ca8
MM
138412009-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
13842 Pat Haugen <pthaugen@us.ibm.com>
2d8b752f 13843 Revital Eres <eres@il.ibm.com>
cacf1ca8
MM
13844
13845 * config.in (HAVE_AS_POPCNTD): Add default definition.
13846 (HAVE_AS_LWSYNC): Ditto.
13847
13848 * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
13849 release number.
13850 (gcc_cv_as_powerpc_cmpb): Ditto.
13851 (gcc_cv_as_powerpc_dfp): Ditto.
13852 (gcc_cv_as_powerpc_vsx): Ditto.
13853 (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
13854 supporting the popcntd/lwsync instructions.
13855 (gcc_cv_as_powerpc_lwsync): Ditto.
13856 * configure: Regenerate.
13857
13858 * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
13859 -mcpu=native and -mcpu=power7.
13860 * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
13861
13862 * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
13863 a variable instead of a mask to reduce the number of mask bits.
13864 * config/rs6000/sysv4.opt (-mbit-align): Ditto.
13865 (-mbit-word): Ditto.
13866 (-mregnames): Ditto.
13867 * config/rs6000/rs6000.opt (-mupdate): Ditto.
13868 (-mfused-madd): Ditto.
13869
13870 * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
13871 2.06 instructions.
13872 (-mvsx): New switch for VSX instructions.
13873 (-misel): Move from a variable to a mask to allow it to be set by
13874 -mcpu=.
13875
13876 * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
13877 function declaration to an array declaration.
13878 (rs6000_hard_regno_nregs): New external array declaration.
13879
13880 * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
13881 files included by rs6000.md.
13882
13883 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
13884 SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
13885
13886 * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
13887 a target mask.
13888 (rs6000_debug_reg): New -mdebug= variables.
13889 (rs6000_debug_addr): Ditto.
13890 (rs6000_debug_cost): Ditto.
13891 (rs6000_pmode): New variable to hold Pmode.
13892 (rs6000_pointer_size): New variable to hold POINTER_SIZE.
13893 (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
13894 calculated at compiler start.
13895 (rs6000_hard_regno_nregs): Change function to an array which holds
13896 HARD_REGNO_NREGS calculated at compiler start.
13897 (rs6000_explicit_options): Delete isel field.
13898 (rs6000_vector_unit): New array to hold which vector unit
13899 supports arithmetic options for a given type.
13900 (rs6000_vector_mem): New array to hold which vector unit supports
13901 memory reference operations for a given type.
13902 (rs6000_vector_align): New array to given the alignment of each
13903 vector type.
13904 (power7_cost): New basic costs for power7.
13905 (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
13906 (rs6000_hard_regno_nregs_internal): New function, moved from
13907 HARD_REGNO_NREGS, to calculate the number of registers each hard
13908 register takes for each type.
13909 (rs6000_debug_reg_print): New function for -mdebug=reg support.
1e9ae5ab 13910 (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
cacf1ca8
MM
13911 (+rs6000_init_hard_regno_mode_ok): New function, move calculation
13912 of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
13913 unit information here so it is calculated once at compiler startup
13914 time.
13915 (rs6000_override_options): Make -misel a target mask. Add more
13916 power7 target masks. Setup Pmode and POINTER_SIZE. Add initial
13917 VSX support. Add support for -mdebug=reg, -mdebug=addr, and
13918 -mdebug=cost.
13919 (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
13920 (rs6000_handle_option): Move -misel from variable to target mask.
13921 (rs6000_builtin_mask_for_load): Add VSX support.
13922 (rs6000_conditional_register_usage): Ditto.
13923 (USE_ALTIVEC_FOR_ARG_P): Ditto.
13924 (function_arg_boundary): Ditto.
13925 (rs6000_expand_builtin): Ditto.
13926 (def_builtin): Make abort message a little friendlier.
13927 (rs6000_emit_int_cmove): Add support for 64-bit isel.
13928
13929 * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
13930 assembler support the popcntd instruction instead of a vsx
13931 instruction to enable power7 support.
13932 (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
13933 (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
13934 option to the assembler if -mcpu=native.
13935 (ASM_CPU_NATIVE_SPEC): Ditto.
13936 (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
13937 ISA 2.06 features.
13938 (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
13939 the lwsync instruction.
13940 (enum processor_type): Add PROCESSOR_POWER7.
13941 (rs6000_debug_reg): New -mdebug= options.
13942 (rs6000_debug_addr): Ditto.
13943 (rs6000_debug_cost): Ditto.
13944 (rs6000_isel): Delete.
13945 (enum rs6000_vector): New enum to say what vector unit we have.
13946 (VECTOR_UNIT_*): New macros to say which vector unit has
13947 arithmetic operations for a given type.
13948 (VECTOR_MEM_*): New macros to say which vector unit has memory
13949 operations for a given type.
13950 (TARGET_LDBRX): Whether the machine supports the ldbrx
13951 instruction.
13952 (TARGET_ISEL): Delete, -misel moved to be a mask.
13953 (TARGET_ISEL64): New macro for 64-bit isel support.
13954 (UNITS_PER_VSX_WORD): New macro.
13955 (POINTER_SIZE): Move to be an external variable, rather than
13956 calculating whether we are generating 32 ot 64-bit code.
13957 (Pmode): Ditto.
13958 (STACK_BOUNDARY): Add VSX support.
13959 (LOCAL_ALIGNMENT): Ditto.
13960 (SLOW_UNALIGNED_ACCESS): Ditto.
13961 (VSX_REGNO_P): New macro for VSX support.
13962 (VFLOAT_REGNO_P): Ditto.
13963 (VINT_REGNO_P): Ditto.
13964 (VLOGICAL_REGNO_P): Ditto.
13965 (VSX_VECTOR_MODE): Ditto.
13966 (VSX_SCALAR_MODE): Ditto.
13967 (VSX_MODE): Ditto.
13968 (VSX_MOVE_MODE): Ditto.
13969 (VSX_REG_CLASS_P): Ditto.
13970 (HARD_REGNO_NREGS): Instead of calling a function, use an array
13971 lookup.
13972 (UNITS_PER_SIMD_WORD): Add VSX support.
13973 (MODES_TIEABLE_P): Ditto.
13974 (STARTING_FRAME_OFFSET): Ditto.
13975 (STACK_DYNAMIC_OFFSET): Ditto.
13976 (EPILOGUE_USES): Ditto.
13977 (REGNO_REG_CLASS): Move to array lookup.
13978 (CLASS_MAX_NREGS): Ditto.
13979 (rs6000_vector_reg_class): Add declaration.
13980 (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
13981 overlap with the floating point and Altivec registers.
13982
13983 * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
13984
13985 * config/rs6000/driver-rs6000.c (asm_names): New static array to
13986 give the appropriate asm switches if -mcpu=native.
13987 (host_detect_local_cpu): Add support for "asm".
13988 (host_detect_local_cpu): Follow GNU code guidelines for name.
13989
13990 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
13991 -mbit-word to a variable instead of being a target mask.
13992
13993 * config/rs6000/sync.md (lwsync): If the assembler supports it,
13994 emit the lwsync instruction instead of emitting the instruction as
13995 an integer constant.
13996
13997 * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
13998 fixuns_trundfsi2, move expander into rs6000.md.
13999
14000 * config/rs6000/rs6000.md (cpu): Add power7.
14001 (sel, *ptrsize): New mode attributes for 32/64-bit isel.
14002 (logical predicate patterns): Change the single instruction
14003 primitives that set CR0 to be fast_compare instead of compare.
14004 (norsi*): Ditto.
14005 (popcntwsi2): Add support for ISA 2.06 popcount instructions.
14006 (popcntddi2): Ditto.
14007 (popcount<mode>): Ditto.
14008 (floating multiply/add insns): Name the floating point
14009 multiply/add insns.
14010 (isel_signed_<mode>): Add support for -misel on 64-bit systems.
14011 (isel_unsigned_<mode>): Ditto.
14012 (fixuns_trundfsi2): Move expander here from spe.md.
14013 (smindi3): Define if we have -misel on 64-bit systems.
14014 (smaxdi3): Ditto.
14015 (umindi3): Ditto.
14016 (umaxdi3): Ditto.
14017
59ab92d2
AS
140182009-06-23 Anatoly Sokolov <aesok@post.ru>
14019
14020 * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
14021 extra_objs.
14022 * config/avr/avr.c (avr_current_device): New variable.
14023 (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
14024 (avr_arch, mcu_type_s): Move to avr.h.
14025 * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
14026 default_data_section_start fields.
14027 (avr_arch): Moved from avr.c.
14028 (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
14029 library_name fields.
14030 (avr_current_device, avr_mcu_types, avr_arch_types,
14031 avr_device_to_arch, avr_device_to_data_start,
14032 avr_device_to_startfiles, avr_device_to_devicelib): Declare.
14033 (EXTRA_SPEC_FUNCTIONS): Define.
14034 (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
14035 options mapping. Use device_to_arch and device_to_data_start insted.
14036 (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
14037 (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
14038 * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
14039 * config/avr/driver-avr.c: New file.
14040 * config/avr/avr-devices.c: New file.
14041
8593e0b6
JJ
140422009-06-23 Jakub Jelinek <jakub@redhat.com>
14043
7eb3f1f7
JJ
14044 * var-tracking.c (unshare_variable): Force initialized to
14045 be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
14046 (set_variable_part): Likewise.
14047 (struct variable_union_info): Remove pos_src field.
14048 (vui_vec, vui_allocated): New variables.
14049 (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
14050 unconditionally. Avoid XCVECNEW/free for every sorting, for dst_l
14051 == 1 use a simpler sorting algorithm. Compute pos field right
14052 away, don't fill in pos_src. For dst_l == 2 avoid qsort.
14053 Avoid quadratic comparison if !flag_var_tracking_uninit.
14054 (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
f100a4a8 14055 unshare_variable unconditionally.
7eb3f1f7
JJ
14056 (dataflow_set_different_2): Removed.
14057 (dataflow_set_different): Don't traverse second hash table.
14058 (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
14059 unconditionally to var_reg_set or var_mem_set.
14060 (emit_notes_in_bb): Likewise.
14061 (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
14062 unshare_variable.
14063 (emit_note_insn_var_location): Don't set initialized to
14064 VAR_INIT_STATUS_INITIALIZED early.
14065 (vt_finalize): Free vui_vec if needed, clear vui_vec and
14066 vui_allocated.
14067 * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
14068
8593e0b6
JJ
14069 * tree-object-size.c (addr_object_size): Instead of checking
14070 for non-NULL TREE_CHAIN of the FIELD_DECL check that there
14071 are no FIELD_DECLs following it.
14072
fef015a8
AK
140732009-06-23 Andreas Krebbel <krebbel1@de.ibm.com>
14074
14075 * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
14076 order to match bswaps with signed source operands.
14077
b6d83244
RO
140782009-06-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14079
14080 * sdbout.c (sdbout_one_type): Fix braces in switch.
14081
0bbf2ffa
RG
140822009-06-23 Richard Guenther <rguenther@suse.de>
14083
14084 * tree-ssa-structalias.c (struct variable_info): Add is_global_var
14085 member.
14086 (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
14087 readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
14088 var_callused, callused_tree, var_storedanything, storedanything_tree,
14089 var_integer, integer_tree): Remove global variables.
14090 (new_var_info): Do not pass new id, append the new var to the
14091 global variable vector.
14092 (do_ds_constraint): Use is_global_var member of the variable-info.
14093 (new_scalar_tmp_constraint_exp): Adjust.
14094 (create_function_info_for): Likewise.
14095 (create_variable_info_for): Likewise.
14096 (find_what_var_points_to): Remove dead code.
14097 (init_base_vars): Simplify.
14098 (compute_points_to_sets): Adjust.
14099
28a5fb2e
AN
141002009-06-22 Adam Nemet <anemet@caviumnetworks.com>
14101
14102 * combine.c (try_combine): Dump information about the insns we're
14103 combining.
14104
cfb8805e
AN
141052009-06-22 Adam Nemet <anemet@caviumnetworks.com>
14106
14107 * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
14108 check when calling force_to_mode on TRUNCATE's operand.
14109
df4ba119
ILT
141102009-06-22 Ian Lance Taylor <iant@google.com>
14111
897eef7b 14112 * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
df4ba119 14113
c986683b
SB
141142009-06-22 Steven Bosscher <steven@gcc.gnu.org>
14115
14116 * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
14117
5c6927bd
RW
141182009-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14119
14120 * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
14121 override library linkage flags such as -static-libgcc or
14122 -shared-libgcc.
14123
19973be2
MK
141242009-06-22 Maxim Kuvyrkov <maxim@codesourcery.com>
14125
14126 * config/m68k/m68k-devices.def: Add line for MCF5221x.
14127
7a5d2eb8
ILT
141282009-06-22 Ian Lance Taylor <iant@google.com>
14129
14130 * config/linux.opt: Put mglibc ahead of muclibc.
14131
14132 * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
14133 for duplicate decls.
14134
86e3c83a
MK
141352009-06-22 Matthias Klose <doko@ubuntu.com>
14136
14137 * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
14138
0a7d7dea
MK
141392009-06-22 Steven Bosscher <steven@gcc.gnu.org>
14140
14141 PR objc/28050
14142 * c-parser.c (c_parser_objc_message_args): Return error_mark_node
14143 instead of NULL if a parser error occurs.
14144
a77264d5
RO
141452009-06-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14146
14147 * dwarf2out.c (dwarf2_debug_hooks): Initialize
14148 non-DWARF2_DEBUGGING_INFO version.
14149
54f549af
KT
141502009-06-22 Kai Tietz <kai.tietz@onevision.com>
14151
34481f28
UB
14152 * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
14153 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
14154
14155 * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
54f549af
KT
14156 (LIBGCC2_TF_CEXT): Define.
14157 (TF_SIZE): Define.
14158
7cea01df
RR
141592009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14160
14161 PR target/40463
14162 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
14163
3ce14752
RR
141642009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14165
34481f28
UB
14166 * config/arm/arm.c (arm_override_options): Disable
14167 -mcaller-super-interworking and -mcallee-super-interworking.
14168 * doc/invoke.texi (ARM Options): Document this.
3ce14752 14169
d58bc084
NS
141702009-06-22 Nathan Sidwell <nathan@codesourcery.com>
14171
14172 * config/arm/arm.c (arm_print_operand): Deal with HIGH.
14173 * config/arm/constraints.md (j): New constraint for movw operands.
14174 (N): Remove thumb2 meaning.
14175 * config/arm/arm.md (*arm_movw): Delete.
14176 (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
14177 * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
14178 * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
14179
ac6cb60c
MJ
141802009-06-22 Martin Jambor <mjambor@suse.cz>
14181
14182 PR tree-optimization/40492
14183 * tree-sra.c (sra_modify_assign): Pass zero offsets to
14184 build_ref_for_offset.
14185
481683e1
SZ
141862009-06-22 Shujing Zhao <pearly.zhao@oracle.com>
14187
14188 * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
14189 JUMP_TABLE_DATA_P predicates where applicable.
14190 * auto-inc-dec.c: Ditto.
14191 * builtins.c: Ditto.
14192 * caller-save.c: Ditto.
14193 * calls.c: Ditto.
14194 * cfgcleanup.c: Ditto.
14195 * cfglayout.c: Ditto.
14196 * cfgrtl.c: Ditto.
14197 * combine.c: Ditto.
14198 * combine-stack-adj.c: Ditto.
14199 * cse.c: Ditto.
14200 * cselib.c: Ditto.
14201 * dbxout.c: Ditto.
14202 * df-scan.c: Ditto.
14203 * dse.c: Ditto.
14204 * dwarf2asm.c: Ditto.
14205 * dwarf2out.c: Ditto.
14206 * emit-rtl.c: Ditto.
14207 * except.c: Ditto.
14208 * explow.c: Ditto.
14209 * expmed.c: Ditto.
14210 * expr.c: Ditto.
14211 * final.c: Ditto.
14212 * function.c: Ditto.
14213 * fwprop.c: Ditto.
14214 * gcse.c: Ditto.
14215 * genpreds.c: Ditto.
14216 * genrecog.c: Ditto.
14217 * ifcvt.c: Ditto.
14218 * ira-costs.c: Ditto.
14219 * ira-lives.c: Ditto.
14220 * jump.c: Ditto.
14221 * loop-iv.c: Ditto.
14222 * lower-subreg.c: Ditto.
14223 * modulo-sched.c: Ditto.
14224 * optabs.c: Ditto.
14225 * postreload.c: Ditto.
14226 * print-rtl.c: Ditto.
14227 * recog.c: Ditto.
14228 * reginfo.c: Ditto.
14229 * regmove.c: Ditto.
14230 * reload1.c: Ditto.
14231 * reload.c: Ditto.
14232 * reorg.c: Ditto.
14233 * rtlanal.c: Ditto.
14234 * rtl.c: Ditto.
14235 * sched-vis.c: Ditto.
14236 * sdbout.c: Ditto.
14237 * sel-sched-ir.c: Ditto.
14238 * simplify-rtx.c: Ditto.
14239 * targhooks.c: Ditto.
14240 * var-tracking.c: Ditto.
14241 * vmsdbgout.c: Ditto.
14242
1407d6cf
MK
142432009-06-22 Matthias Klose <doko@ubuntu.com>
14244
14245 * Makefile.in (install-plugin): Always use DESTDIR.
14246
28326880 142472009-06-22 Olivier Hainque <hainque@adacore.com>
f100a4a8 14248
28326880
OH
14249 * config/pa/pa.c (output_call): Don't optimize post call jumps
14250 into return address adjustments if the call may throw.
14251
907dd0c7
RE
142522009-06-21 Richard Earnshaw <rearnsha@arm.com>
14253
14254 * arm.c (thumb1_output_casesi): New function.
14255 * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
14256 optimizing for size or PIC.
14257 (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
14258 * arm.md (UNSPEC_THUMB1_CASESI): New constant.
14259 (casesi): Handle Thumb-1 when optimizing for size or PIC.
14260 (thumb1_casesi_internal_pic): New expand rule.
14261 (thumb1_casesi_dispatch): New pattern.
14262 * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
14263 thumb-1 mode.
14264 * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
14265 in the text seciton when PIC or optimizing for size.
14266 * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
14267 * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
14268 preservation properties of code.
14269 (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
14270 (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
14271 (__gnu_thumb1_case_si): New function.
14272 * t-arm (LIB1ASMSRC): Define here.
14273 (LIB1ASMFUNCS): Add some common functions.
14274 * t-arm-elf (LIB1ASMSRC): Delete.
14275 (LIB1ASMFUNCS): Append to existing set.
14276 * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
14277 * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
14278 * t-symbian (LIB1ASMFUNCS): Likewise.
14279 * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
14280 * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
14281
2cee1509
RG
142822009-06-21 Richard Guenther <rguenther@suse.de>
14283
14284 PR tree-optimization/38729
14285 * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
14286 to loops with a single exit if -fno-expensive-optimizations.
14287
d24686d7
JJ
142882009-06-21 Jakub Jelinek <jakub@redhat.com>
14289
14290 * var-tracking.c (struct shared_hash_def, shared_hash): New types.
14291 (dataflow_set): Change vars type from htab_t to shared_hash.
14292 (shared_hash_pool, empty_shared_hash): New variables.
14293 (vars_clear): Removed.
14294 (shared_hash_shared, shared_hash_htab, shared_hash_copy,
14295 shared_hash_find_slot_unshare, shared_hash_find_slot,
14296 shared_hash_find_slot_noinsert, shared_hash_find): New
14297 static inlines.
14298 (shared_hash_unshare, shared_hash_destroy): New functions.
14299 (unshare_variable): Unshare set->vars if shared, use
14300 shared_hash_htab.
14301 (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
14302 (get_init_value, find_src_set_src, dump_dataflow_set,
14303 clobber_variable_part, emit_notes_for_differences): Use
14304 shared_hash_htab.
14305 (dataflow_set_init): Remove second argument, set vars to
14306 empty_shared_hash instead of creating a new htab.
14307 (dataflow_set_clear): Call shared_hash_destroy and set vars
14308 to empty_shared_hash instead of calling vars_clear.
14309 (dataflow_set_copy): Don't call vars_copy, instead just share
14310 the src htab with dst.
14311 (variable_union): Use shared_hash_*, use initially NO_INSERT
14312 lookup if set->vars is shared. Don't keep slot cleared before
14313 calling unshare_variable. Unshare set->vars if needed.
14314 Even ->refcount == 1 vars must be unshared if set->vars is shared
14315 and var needs to be modified.
14316 (variable_canonicalize): New function.
14317 (dataflow_set_union): If dst->vars is empty, just share src->vars
14318 with dst->vars and traverse with variable_canonicalize to canonicalize
14319 and unshare what is needed.
14320 (dataflow_set_different): If old_set and new_set use the same shared
14321 htab, they aren't different. If number of htab elements is different,
14322 htabs are different. Use shared_hash_*.
14323 (dataflow_set_destroy): Call shared_hash_destroy instead of
14324 htab_delete.
14325 (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
14326 second argument to dataflow_set_init.
14327 (vt_initialize): Likewise. Initialize shared_hash_pool and
14328 empty_shared_hash, move bb in/out initialization afterwards.
14329 Use variable_htab_free instead of NULL as changed_variables del hook.
14330 (variable_was_changed): Change type of second argument to pointer to
14331 dataflow_set. When inserting var into changed_variables, bump
14332 refcount. Unshare set->vars if set is shared htab and slot needs to
14333 be cleared.
14334 (set_variable_part): Use shared_hash_*, use initially NO_INSERT
14335 lookup if set->vars is shared. Unshare set->vars if needed.
14336 Even ->refcount == 1 vars must be unshared if set->vars is shared
14337 and var needs to be modified. Adjust variable_was_changed caller.
14338 (delete_variable_part): Use shared_hash_*. Even ->refcount == 1
14339 vars must be unshared if set->vars is shared and var needs to be
14340 modified. Adjust variable_was_changed caller.
14341 (emit_note_insn_var_location): Don't pool_free var.
14342 (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
14343 instead of 1.
14344 (vt_finalize): Call htab_delete on empty_shared_hash->htab and
14345 free_alloc_pool on shared_hash_pool.
14346
525b459f
AG
143472009-06-20 Anthony Green <green@moxielogic.com>
14348
14349 * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
14350 * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
14351
825be69e
RG
143522009-06-20 Richard Guenther <rguenther@suse.de>
14353
14354 * tree-ssa-structalias.c (find_func_aliases): For memset use
14355 a constraint from NULL if we memset to zero.
14356 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
14357 we explicitly handle that do not read from memory.
14358 (call_may_clobber_ref_p_1): Properly handle builtins that may
14359 set errno.
14360
b14e9388
RG
143612009-06-20 Richard Guenther <rguenther@suse.de>
14362
14363 PR tree-optimization/40495
14364 * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
14365 (new_scalar_tmp_constraint_exp): New function.
14366 (process_constraint): Do not create temporary decls.
14367 (process_all_all_constraints): Likewise.
14368 (handle_const_call): Likewise.
14369 (create_function_info_for): Do not set decl.
14370
c885ca89
ILT
143712009-06-19 Ian Lance Taylor <iant@google.com>
14372
14373 * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
14374 (rs6000_attribute_table): Make static; move before use.
14375
6569d386
EB
143762009-06-19 Eric Botcazou <ebotcazou@adacore.com>
14377
14378 * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
14379 <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
14380 Propagate the TREE_READONLY flag without overwriting it.
14381 (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
14382 Propagate the TREE_READONLY flag onto the result.
14383 (process_call_operands): Move around. Use correct constant value.
14384
ce41c38b
RR
143852009-06-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14386
14387 PR target/40482
897eef7b 14388 * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
ce41c38b
RR
14389 * config/arm/arm.md: Likewise.
14390
96be7a11 143912009-06-19 Ian Lance Taylor <iant@google.com>
d130ae11
ILT
14392
14393 * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
14394 to GIMPLE_ERROR_MARK.
14395
14396 * c-typeck.c (build_conditional_expr): Add op1_original_type and
897eef7b 14397 op2_original_type parameters. Warn about using different enum types.
d130ae11
ILT
14398 * c-parser.c (c_parser_conditional_expression): Pass original
14399 types to build_conditional_expr.
14400 * c-tree.h (build_conditional_expr): Update declaration.
14401
d4aa4f4b
ILT
144022009-06-19 Ian Lance Taylor <iant@google.com>
14403
14404 * config/i386/i386.c (ix86_function_specific_save): Test that
14405 fields match values, rather than testing the values are in a
14406 certain range.
14407
779704e7
RG
144082009-06-19 Richard Guenther <rguenther@suse.de>
14409
14410 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
14411 ADDR_EXPR pointers.
14412 (ptr_derefs_may_alias_p): Likewise.
14413 (ptr_deref_may_alias_ref_p_1): New function.
14414 (ptr_deref_may_alias_ref_p): Likewise.
14415 (ref_maybe_used_by_call_p_1): Handle builtins that are not
14416 covered by looking at the ESCAPED solution.
14417 (call_may_clobber_ref_p_1): Likewise.
14418 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
14419 Handle NULL_TREE offset. Do not produce redundant constraints.
14420 (process_all_all_constraints): New helper function.
14421 (do_structure_copy): Use it.
14422 (handle_lhs_call): Likewise.
14423 (find_func_aliases): Handle some builtins with pointer arguments
14424 and/or return values explicitly.
14425
217655da
ILT
144262009-06-19 Ian Lance Taylor <iant@google.com>
14427
14428 * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
14429
50ae5fea
ILT
144302009-06-19 Ian Lance Taylor <iant@google.com>
14431
14432 * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
14433
642324bb
ILT
144342009-06-19 Ian Lance Taylor <iant@google.com>
14435
14436 * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
14437 * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
14438 version.
14439
14440 * c-decl.c (finish_decl): If -Wc++-compat, warn about
14441 uninitialized const.
14442
dc491a25
ILT
144432009-06-19 Ian Lance Taylor <iant@google.com>
14444
14445 * dse.c (struct store_info): Rename bitmap field to bmap. Change
14446 all uses.
14447
14448 * c-decl.c (in_struct, struct_types): Remove.
14449 (struct c_binding): Add in_struct field.
14450 (c_binding_ptr): Define type, along with VEC.
14451 (struct c_struct_parse_info): Define.
14452 (struct_parse_info): New static variable.
14453 (bind): Initialize in_struct field.
14454 (start_struct): Remove enclosing_in_struct and
14455 enclosing_struct_types parameters. Add
14456 enclosing_struct_parse_info parameter. Change all callers. Set
14457 struct_parse_info rather than in_struct and struct_types.
14458 (grokfield): If -Wc++-compat and there is a symbol binding for the
14459 field name, set the in_struct flag and push it on the
14460 struct_parse_info->fields vector.
14461 (warn_cxx_compat_finish_struct): New static function.
14462 (finish_struct): Remove enclosing_in_struct and
14463 enclosing_struct_types parameters. Add
14464 enclosing_struct_parse_info parameter. Change all callers. Don't
14465 set C_TYPE_DEFINED_IN_STRUCT here. Call
14466 warn_cxx_compat_finish_struct. Free struct_parse_info and set to
14467 parameter. Only push on struct_types if warn_cxx_compat.
14468 (finish_enum): Only push on struct_types if warn_cxx_compat.
14469 (declspecs_add_type): Add loc parameter. Change all callers.
14470 Change all error calls to error_at. Pass loc, not input_location,
14471 to pedwarn calls. Warn if -Wc++-compat and a typedef name is
14472 defined in a struct. If -Wc++-compat and parsing a struct, record
14473 that a typedef name was used.
14474 * c-parser.c (c_parser_declspecs): Get location to pass to
14475 declspecs_add_type.
14476 (c_parser_struct_or_union_specifier): Update calls to start_struct
14477 and finish_struct.
14478 * c-tree.h (struct c_struct_parse_info): Declare.
14479 (finish_struct, start_struct): Update declarations.
14480 (declspecs_add_type): Update declaration.
14481
88eeff6f
ILT
144822009-06-19 Ian Lance Taylor <iant@google.com>
14483
14484 * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
14485 variable with an anonymous type.
14486
28a876a4
UB
144872009-06-19 Uros Bizjak <ubizjak@gmail.com>
14488
14489 * see.c: Remove for real.
14490
dc6707b8
UB
144912009-06-19 Uros Bizjak <ubizjak@gmail.com>
14492
14493 * optabs.h (enum optab_index): Add new OTI_significand.
14494 (significand_optab): Define corresponding macro.
14495 * optabs.c (init_optabs): Initialize significand_optab.
14496 * genopinit.c (optabs): Implement significand_optab using
14497 significand?f2 patterns.
14498 * builtins.c (expand_builtin_mathfn): Handle
14499 BUILT_IN_SIGNIFICAND{,F,L}.
14500 (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
14501 expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
14502
14503 * config/i386/i386.md (significandxf2, significand<mode>2): New
14504 expanders to implement significandf, significand and significandl
14505 built-ins as inline x87 intrinsics.
14506
dd26af70
AS
145072009-06-18 Anatoly Sokolov <aesok@post.ru>
14508
14509 * config/avr/avr.c (avr_override_options): Remove setting value of
14510 PARAM_INLINE_CALL_COST.
14511
394bd84d
RH
145122009-06-18 Richard Henderson <rth@redhat.com>
14513
14514 PR 40488
14515 * tree-pass.h (TDF_ASMNAME): New.
14516 * tree-dump.c (dump_options): Add asmname.
14517 * doc/invoke.texi: Document it.
14518
14519 * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
14520 (dump_decl_name): ...here.
14521 (dump_function_name): New flags arg; mind TDF_ASMNAME.
14522 (dump_generic_node): Update dump_function_name calls.
14523 (print_call_name): New flags arg; update all dump calls.
14524 * diagnostic.h (print_call_name): Update.
14525 * gimple-pretty-print.c (dump_gimple_call): Update.
14526
2a457a9b
L
145272009-06-18 H.J. Lu <hongjiu.lu@intel.com>
14528
14529 PR target/40470
14530 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
14531
fca5bb5c
DN
145322009-06-18 Diego Novillo <dnovillo@google.com>
14533
14534 * doc/plugins.texi: Document plugin_is_GPL_compatible.
14535 * plugin.c (str_license): Declare.
14536 (try_init_one_plugin): Assert that the symbol
14537 'plugin_is_GPL_compatible' exists.
14538
b6680d72
SD
145392009-06-18 Sergei Dyshel <sergeid@il.ibm.com>
14540
14541 * see.c: Remove.
14542 * Makefile.in (OBJS-common): Remove see.o.
14543 (see.o): Remove.
14544 * common.opt (fsee): Mark as preserved for backward compatibility.
f100a4a8 14545 * opts.c (common_handle_option): Add OPT_fsee to the backward
b6680d72
SD
14546 compatibility section.
14547 * passes.c (init_optimization_passes, pass_see): Remove pass.
14548 * timevar.def (TV_SEE): Remove.
14549 * tree-pass.h (pass_see): Remove declaration.
14550 * doc/invoke.texi (-fsee): Remove documentation.
f100a4a8 14551
2a45675f
MJ
145522009-06-18 Martin Jambor <mjambor@suse.cz>
14553
14554 * tree-sra.c: Include statistics.h
14555 (sra_stats): New variable.
14556 (sra_initialize): Clear sra_stats.
14557 (create_access_replacement): Increment sra_stats.replacements.
14558 (get_access_replacement): Do not return twice.
14559 (analyze_all_variable_accesses): Increment statistics counter by the
14560 number of scalarized aggregates.
14561 (generate_subtree_copies): Increment sra_stats.subtree_copies.
14562 (sra_modify_expr): Increment sra_stats.exprs.
14563 (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
14564 (sra_modify_assign): Increment sra_stats.exprs,
14565 sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
14566 (perform_intra_sra): Update statistics counters.
14567 * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
14568
bdc4827b
SL
145692009-06-18 Sandra Loosemore <sandra@codesourcery.com>
14570
14571 * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
14572 (arm_scalar_mode_supported_p): New function.
14573
d9dd51dc
PB
145742009-06-18 Paul Brook <paul@codesourcery.com>
14575 Sandra Loosemore <sandra@codesourcery.com>
14576
14577 * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
14578 (__extendhfsf2, __truncsfhf2): Define.
14579 * config/arm/fp16.c: New file.
14580 * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
14581 * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
14582
0fd8c3ad
SL
145832009-06-18 Sandra Loosemore <sandra@codesourcery.com>
14584
14585 * doc/extend.texi (Half-Precision): New section.
14586 * doc/invoke.texi (Option Summary): List -mfp16-format.
14587 (ARM Options): List neon-fp16 as -mfpu value. Document -mfp16-format.
14588 * config/arm/arm.opt (mfp16-format=): New.
14589 * config/arm/arm.c: Include intl.h.
14590 (TARGET_INVALID_PARAMETER_TYPE): Redefine.
14591 (TARGET_INVALID_RETURN_TYPE): Redefine.
14592 (TARGET_PROMOTED_TYPE): Redefine.
14593 (TARGET_CONVERT_TO_TYPE): Redefine.
14594 (arm_fp16_format): Define.
14595 (all_fpus): Add entry for neon-fp16.
14596 (fp_model_for_fpu): Likewise.
14597 (struct fp16_format): Declare.
14598 (all_fp16_formats): Define.
14599 (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
14600 functions.
14601 (arm_override_options): Set arm_fp16_format. Call sorry for fp16
14602 and no ldrh.
14603 (arm_legitimate_index_p): Treat HFmode like HImode.
14604 (thumb1_legitimate_address_p): Make it recognize HFmode constants.
14605 (coproc_secondary_reload_class): Special-case HFmode.
14606 (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
14607 (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
14608 (arm_init_fp16_builtins): New.
14609 (arm_init_builtins): Call it.
14610 (arm_invalid_parameter_type): New.
14611 (arm_invalid_return_type): New.
14612 (arm_promoted_type): New.
14613 (arm_convert_to_type).
14614 (arm_file_start): Deal with neon-fp16 as fpu_name. Emit tag for fp16
14615 format.
14616 (arm_emit_fp16_const): New function.
14617 (arm_mangle_type): Mangle __fp16 as "Dh".
14618 * config/arm/arm.h (TARGET_VFPD32): Make it know about
14619 FPUTYPE_NEON_FP16.
14620 (TARGET_NEON_FP16): New.
14621 (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
14622 (enum fputype): Add FPUTYPE_NEON_FP16.
14623 (enum arm_fp16_format_type): Declare.
14624 (arm_fp16_format): Declare.
14625 (LARGEST_EXPONENT_IS_NORMAL): Define.
14626 * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
14627 * config/arm/arm-modes.def (HFmode): Define.
bd62d832 14628 * config/arm/vfp.md (*movhf_vfp): New.
0fd8c3ad
SL
14629 (extendhfsf2): New.
14630 (truncsfhf2): New.
bd62d832 14631 * config/arm/arm.md (fpu): Add neon_fp16.
0fd8c3ad
SL
14632 (floatsihf2, floatdihf2): New.
14633 (fix_trunchfsi2, fix_trunchfdi2): New.
14634 (truncdfhf2): New.
14635 (extendhfdf2): New.
14636 (movhf): New.
14637 (*arm32_movhf): New.
14638 (*thumb1_movhf): New.
14639 (consttable_2): Add check for HFmode constants.
14640 (consttable_4): Handle HFmode constants.
14641
2c2f70e1
UB
146422009-06-18 Uros Bizjak <ubizjak@gmail.com>
14643
14644 * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
14645
db4fa1c1
OH
146462009-06-17 Olivier Hainque <hainque@adacore.com>
14647
14648 * collect2.c (main): Use CONST_CAST2 to perform char ** to
14649 const char ** conversion in AIX specific section.
f100a4a8 14650
6bec4135
L
146512009-06-17 H.J. Lu <hongjiu.lu@intel.com>
14652
14653 * config/i386/i386.c (ix86_special_builtin_type): Remove
14654 UINT64_FTYPE_PINT. Add UINT64_FTYPE_PUNSIGNED.
14655 (bdesc_special_args): Updated.
14656 (ix86_init_mmx_sse_builtins): Likewise.
14657 (ix86_expand_special_args_builtin): Likewise.
14658
958d6d58
RH
146592009-06-17 Richard Henderson <rth@redhat.com>
14660
14661 * tree-pretty-print.c (maybe_dump_asm_name): New.
14662 (dump_decl_name): Use it.
14663 (PRINT_FUNCTION_NAME): Merge into...
14664 (dump_function_name): ... here. Use maybe_dump_asm_name.
14665
ed5ef2e4
CC
146662009-06-17 Cary Coutant <ccoutant@google.com>
14667
14668 * dbxout.c (dbxout_source_line): Add is_stmt parameter.
14669 Change caller.
14670 * debug.c (struct gcc_debug_hooks): Change placeholder for
14671 source_line hook.
14672 (debug_nothing_int_charstar_int): Replaced by...
14673 (debug_nothing_int_charstar_int_bool): ...this.
14674 * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
14675 source_line prototype.
14676 (debug_nothing_int_charstar_int): Replaced by...
14677 (debug_nothing_int_charstar_int_bool): ...this.
14678 * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
14679 * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
14680 Output is_stmt operand when necessary.
01a0acb7 14681 * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
ed5ef2e4
CC
14682 (notice_source_line): Add is_stmt parameter.
14683 * sdbout.c (sdbout_source_line): Add is_stmt parameter.
14684 * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
14685 Change callers.
14686 * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
14687 * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
14688
b0f43ca0
ILT
146892009-06-17 Ian Lance Taylor <iant@google.com>
14690
14691 * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
14692 Change all uses.
14693 (struct store_by_pieces_d): Rename from store_by_pieces. Change
14694 call uses.
14695
23314e77
AN
146962009-06-17 Adam Nemet <anemet@caviumnetworks.com>
14697
14698 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
14699 STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
14700 tree_strip_sign_nop_conversions and
14701 tree_ssa_strip_useless_type_conversions rather than stripping
14702 the operations here.
14703 (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
14704 Declare them.
14705 * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
14706 * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
14707 * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
14708 tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
14709 functions.
14710
799dbb0f
ME
147112009-06-17 Michael Eager <eager@eagercon.com>
14712
c637b0fa
UB
14713 * config/rs6000/constraints.md (register_constraint "d"): New.
14714 * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
14715 truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
14716 *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
14717 *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
14718 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
14719 divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
14720 fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
14721 * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
799dbb0f
ME
14722 __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
14723 __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
c637b0fa
UB
14724 __fctiwz): Same.
14725 * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
799dbb0f
ME
14726 *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
14727 *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
14728 *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
c637b0fa
UB
14729 *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
14730 fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
14731 stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
14732 *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
14733 *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
14734 trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
14735 *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
14736 *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
14737 *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
799dbb0f
ME
14738 * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
14739
1469de3c
ILT
147402009-06-16 Ian Lance Taylor <iant@google.com>
14741
14742 * profile.c (total_num_never_executed): Don't define.
14743 (compute_branch_probabilities): Don't count or print
14744 num_never_executed.
14745 (init_branch_prob): Don't set total_num_never_executed.
14746 (end_branch_prob): Don't print total_num_never_executed.
14747
2cb0a60d
DD
147482009-06-17 David Daney <ddaney@caviumnetworks.com>
14749
c637b0fa 14750 * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
2cb0a60d 14751
82882240
DE
147522009-06-17 David Edelsohn <edelsohn@gnu.org>
14753
14754 * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
14755 (nabstd2_fpr): Same.
14756
a1a65f89
SE
147572009-06-17 Steve Ellcey <sje@cup.hp.com>
14758
14759 * expr.c (expand_assignment): Change complex type check.
14760
07ae5620
BS
147612009-06-17 Basile Starynkevitch <basile@starynkevitch.net>
14762
f100a4a8 14763 * doc/plugins.texi (Building GCC plugins): Added new section.
07ae5620 14764
5eb4df45
ILT
147652009-06-17 Ian Lance Taylor <iant@google.com>
14766
14767 * c-pch.c (get_ident): Don't set size of templ array.
14768 (pch_init): Don't set size of partial_pch array.
14769
14770 * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
14771 string constant to intialize an array whose size is the length of
14772 the string.
14773
4d61856d
RG
147742009-06-17 Richard Guenther <rguenther@suse.de>
14775
14776 PR tree-optimization/40389
14777 * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
14778 to addressable types.
14779 * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
14780
3cb8677c
RG
147812009-06-17 Richard Guenther <rguenther@suse.de>
14782
14783 PR middle-end/40460
14784 * tree-chrec.h (build_polynomial_chrec): If we cannot determine
14785 if there is no evolution of left in the loop bail out.
14786 * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
14787 chrec_fold_multiply.
14788
a4d99c86
R
147892009-06-16 J"orn Rennecke <joern.rennecke@arc.com>
14790 Janis Johnson <janis187@us.ibm.com>
14791
14792 PR target/39254
14793 * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
14794 for the symbol ref of a constant that is the source of a move
14795 - nor for any other not-obvious-label-ref constants.
14796
8dd1bca0
OR
147972009-06-16 Olatunji Ruwase <tjruwase@google.com>
14798
1469de3c 14799 * plugin.c (position_pass): Skip newly inserted pass during list
8dd1bca0
OR
14800 traversal to avoid repeated insertion.
14801
8019538f
ILT
148022009-06-16 Ian Lance Taylor <iant@google.com>
14803
14804 * vec.h (VEC_stack_alloc): Define different version if
14805 GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
14806 (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
14807 (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
14808 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
14809
7c45393e
L
148102009-06-16 H.J. Lu <hongjiu.lu@intel.com>
14811
14812 * config.gcc (extra_headers): Add ia32intrin.h for x86.
14813
14814 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
14815 IX86_BUILTIN_BSRDI. IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
14816 IX86_BUILTIN_RDTSCP. IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
14817 IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
14818 (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
14819 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
c637b0fa 14820 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
7c45393e
L
14821 (bdesc_special_args): Add __builtin_ia32_rdtsc and
14822 __builtin_ia32_rdtscp.
14823 (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
14824 __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
c637b0fa 14825 and __builtin_ia32_rorhi.
7c45393e
L
14826 (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
14827 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
c637b0fa 14828 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
7c45393e
L
14829 (ix86_expand_args_builtin): Likewise.
14830 (ix86_expand_special_args_builtin): Likewise.
14831
14832 * config/i386/i386.md (UNSPECV_RDTSCP): New.
14833 (UNSPECV_RDTSC): Likewise.
14834 (UNSPECV_RDPMC): Likewise.
c637b0fa 14835 (*bsr): Renamed to ...
7c45393e 14836 (bsr): This
c637b0fa 14837 (*bsr_rex64): Renamed to ...
7c45393e
L
14838 (bsr_rex64): This.
14839 (rdpmc): New.
14840 (*rdpmc): Likewise.
14841 (*rdpmc_rex64): Likewise.
14842 (rdtsc): Likewise.
14843 (*rdtsc): Likewise.
14844 (*rdtsc_rex64): Likewise.
14845 (rdtscp): Likewise.
14846 (*rdtscp): Likewise.
14847 (*rdtscp_rex64): Likewise.
14848
14849 * config/i386/ia32intrin.h: New.
14850
14851 * config/i386/x86intrin.h: Include <ia32intrin.h>.
14852
504b33d8
ILT
148532009-06-16 Ian Lance Taylor <iant@google.com>
14854
14855 * ira-build.c (copy_info_to_removed_store_destinations):
14856 Initialize parent_a.
14857
f9551830
ILT
148582009-06-16 Ian Lance Taylor <iant@google.com>
14859
14860 * c-decl.c (grokdeclarator): Change size_varies to bool.
14861
c32e2175
ILT
148622009-06-16 Ian Lance Taylor <iant@google.com>
14863
14864 * sel-sched.c: Make forward declarations of move_op_hooks and
14865 fur_hooks explicitly extern.
14866
415a06c2
ILT
148672009-06-16 Ian Lance Taylor <iant@google.com>
14868
c637b0fa 14869 * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
415a06c2
ILT
14870 * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
14871
675f99c9
ILT
148722009-06-16 Ian Lance Taylor <iant@google.com>
14873
14874 * resource.c (mark_referenced_resources): Change
14875 include_delayed_effects parameter to bool. Change all callers.
14876 (mark_end_of_function_resources): Likewise.
14877 * reorg.c (insn_references_resource_p): Likewise.
14878 (insn_sets_resource_p): Likewise.
14879 * resource.h (mark_referenced_resources): Update declaration.
14880 (mark_end_of_function_resources): Update declaration.
14881
a322799d
DE
148822009-06-16 David Edelsohn <edelsohn@gnu.org>
14883
14884 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
14885
c58c92f5
DE
148862009-06-16 David Edelsohn <edelsohn@gnu.org>
14887
14888 * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
14889 GCC can bootstrap on AIX with GNU Binutils 2.20.
14890
95228603
ILT
148912009-06-16 Ian Lance Taylor <iant@google.com>
14892
14893 * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
14894
9c727c9a
ILT
148952009-06-16 Ian Lance Taylor <iant@google.com>
14896
14897 * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
14898 inline, not extern inline.
14899 (exact_log2): Likewise.
14900 * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
14901 test CLZ_HWI.
14902 (exact_log2): Likewise, but don't test CTZ_HWI.
14903
5fd8300b
ILT
149042009-06-16 Ian Lance Taylor <iant@google.com>
14905
14906 * bitmap.c (bitmap_clear): Don't declare as inline.
14907 * gimple.c (gimplify_assign): Likewise.
14908 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
14909 * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
14910 (sched_scan_info): Remove duplicate definition.
14911
7d882b83
ILT
149122009-06-16 Ian Lance Taylor <iant@google.com>
14913
14914 * c-common.c (skip_evaluation): Don't define.
14915 (c_inhibit_evaluation_warnings): Define global variable.
14916 (overflow_warning): Check c_inhibit_evaluation_warnings rather
14917 than skip_evaluation.
14918 (convert_and_check, warn_for_div_by_zero): Likewise.
14919 * c-common.h (skip_evaluation): Don't declare.
14920 (c_inhibit_evaluation_warnings): Declare.
14921 * c-parser.c (c_parser_typeof_specifier): Set
14922 c_inhibit_evaluation_warnings rather than skip_evaluation.
14923 (c_parser_conditional_expression): Likewise.
14924 (c_parser_binary_expression): Likewise.
14925 (c_parser_sizeof_expression): Likewise.
14926 (c_parser_alignof_expression): Likewise.
14927 * c-typeck.c (build_indirect_ref): Check
14928 c_inhibit_evaluation_warnings rather than skip_evaluation.
14929 (build_conditional_expr, build_binary_op): Likewise.
14930
2e407842
RG
149312009-06-16 Richard Guenther <rguenther@suse.de>
14932
14933 * tree-ssa-alias.c (is_escape_site): Remove.
14934 * tree-ssa-alias.h (enum escape_type): Remove.
14935 (is_escape_site): Likewise.
14936 * tree-ssa-structalias.c (find_func_aliases): Handle escapes
14937 via casts and asms without deferring to is_escape_site.
14938
f2ff8872
JJ
149392009-06-16 Jakub Jelinek <jakub@redhat.com>
14940
14941 PR middle-end/40446
14942 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
14943 use gen_lowpart if op0 has complex mode.
14944
de70bb20
RG
149452009-06-16 Richard Guenther <rguenther@suse.de>
14946
14947 * tree-ssa-structalias.c (do_ds_constraint): Stores in global
14948 variables add them to ESCAPED.
c637b0fa 14949 (find_func_aliases): Do not make all indirectly stored values escaped.
de70bb20 14950
daa0eeb8
RAE
149512009-06-16 Rafael Avila de Espindola <espindola@google.com>
14952
14953 * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
14954 make_decl_one_only.
14955
0ec19b8c
MJ
149562009-06-16 Martin Jambor <mjambor@suse.cz>
14957
14958 PR tree-optimization/40432
14959 * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
14960 check whether we need to force gimple register operand.
14961
2b26b801
MJ
149622009-06-16 Martin Jambor <mjambor@suse.cz>
14963
14964 PR tree-optimization/40413
14965 * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
14966 build_ref_for_offset.
14967 (propagate_subacesses_accross_link): Fix a typo in a comment.
14968
7c5222ff
IR
149692009-06-16 Ira Rosen <irar@il.ibm.com>
14970
14971 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
14972 with additional parameter.
c637b0fa 14973 * tree-vectorizer.h (enum vect_def_type): Add new value
7c5222ff
IR
14974 vect_nested_cycle.
14975 (enum vect_relevant): Add comments.
14976 (vect_is_simple_reduction): Add new argument.
14977 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
14978 Detect nested cycles.
14979 (vect_is_simple_reduction): Update documentation, add an argument to
14980 distinguish inner-loop reduction from nested cycle, detect nested
14981 cycles, fix printings and indentation, don't swap operands in case
14982 of nested cycle.
14983 (get_initial_def_for_reduction): Handle subtraction.
14984 (vect_create_epilog_for_reduction): Add new argument to specify
14985 reduction variable.
14986 (vect_finalize_reduction): Handle subtraction, fix comments.
c637b0fa 14987 (vectorizable_reduction): Handle nested cycles. In case of nested
f100a4a8 14988 cycle keep track of the reduction variable position. Call
7c8b1a77 14989 vect_is_simple_reduction with additional parameter. Use original
7c5222ff
IR
14990 statement code in reduction epilogue for nested cycle. Call
14991 vect_create_epilog_for_reduction with additional parameter.
c637b0fa
UB
14992 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
14993 inner-loop vectorization.
7c5222ff
IR
14994 (vect_recog_widen_sum_pattern): Likewise.
14995 * tree-vect-stmts.c (process_use): Distinguish between nested cycles
14996 and reductions.
14997 (vect_mark_stmts_to_be_vectorized): Likewise.
14998 (vect_get_vec_def_for_operand): Handle nested cycles.
14999
d376d545
RW
150002009-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15001
15002 * doc/invoke.texi (Debugging Options): Fix option index entries
15003 for -fdump-statistics, -frandom-seed add entries for
15004 -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
15005 (FRV Options): Fix entries for -mTLS, -mtls.
15006 (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
15007 (i386 and x86-64 Options): Fix entry for -mno-red-zone.
15008 (M68hc1x Options): Fix @itemx for -mnominmax.
15009 (MCore Options): Fix entry for -mno-lsim.
15010 (MMIX Options): Fix entry for -mabi=mmixware.
15011 (PDP-11 Options): Fix entry for -mbcopy-builtin.
15012
bd117bb6
BS
150132009-06-16 Basile Starynkevitch <basile@starynkevitch.net>
15014
15015 * doc/plugins.texi (Interacting with the GCC Garbage Collector):
15016 Mention the plugin mode of gengtype.
c637b0fa 15017 * doc/gty.texi (Source Files Containing Type Information): Likewise.
bd117bb6
BS
15018 * gengtype.c: Updated copyright.
15019 (plugin_files, nb_plugin_files) Added new static variables.
15020 (measure_input_list) Care about plugin_files.
15021 (write_rtx_next): Added early return in plugin mode.
15022 (create_file): Updated copyright year in generated file. Added
15023 asserts.
15024 (oprintf): Added early return if NULL outf.
15025 (get_output_file_with_visibility): Care of plugin_files.
15026 (get_output_file_name): May return null.
15027 (write_local): Added early return.
15028 (put_mangled_filename): Ditto.
15029 (finish_root_table): Added check for base_files.
15030 (write_roots): Care about null when plugins.
15031 (main): Added plugin mode.
15032
e1b7793c
ILT
150332009-06-15 Ian Lance Taylor <iant@google.com>
15034
c637b0fa 15035 * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
e1b7793c
ILT
15036 * gcov.c (read_count_file): Add braces around variables declared
15037 before label.
15038
15039 * c.opt (Wjump-misses-init): New warning.
15040 * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
15041 -Wall and -Wc++-compat if not already set.
15042 (c_common_post_options): Clear warn_jump_misses_init if it was not
15043 set.
15044 * c-decl.c (struct c_binding): Change type field to a union with
15045 new label field. Make it the first field in the struct. Update
15046 references to type to use u.type instead.
15047 (struct c_spot_bindings): Define.
15048 (struct c_goto_bindings): Define.
15049 (c_goto_bindings_p): Define, along with VECs.
15050 (struct c_label_vars): Define.
15051 (struct c_scope): Add has_label_bindings field.
15052 (bind_label, set_spot_bindings): New static functions.
15053 (decl_jump_unsafe, update_spot_bindings): New static functions.
15054 (update_label_decls): New static function.
15055 (pop_scope): Call update_label_decls. Don't call c_end_vm_scope.
15056 Update binding u.label field to shadowed field.
15057 (c_binding_start_stmt_expr): New function.
15058 (c_binding_end_stmt_expr): New function.
15059 (pushdecl): Don't call c_begin_vm_scope.
15060 (make_label): Add defining and p_label_vars parameters. Change
15061 all callers.
15062 (lookup_label): Correct test for whether a label has not yet been
15063 defined. Call bind_label rather than bind.
15064 (warn_about_goto): New static function.
15065 (lookup_label_for_goto): New function.
15066 (declare_label): Call bind_label rather than bind.
15067 (check_earlier_gotos): New static function.
15068 (define_label): Don't give errors about jumping into statement
15069 expressions or scopes of variably modified types. Call
15070 set_spot_bindings and check_earlier_gotos. Call bind_label
15071 instead of bind. Don't set label_context_stack_se or
15072 label_context_stack_vm.
15073 (c_get_switch_bindings): New function.
15074 (c_release_switch_bindings): New function.
15075 (c_check_switch_jump_warnings): New function.
15076 (start_function): Don't set label_context_stack_se or
15077 label_context_stack_vm.
15078 (finish_function): Likewise.
15079 * c-typeck.c (label_context_stack_se): Don't define.
15080 (label_context_stack_vm): Don't define.
15081 (c_finish_goto_label): Call lookup_label_for_goto rather than
15082 lookup_label. Don't give errors about jumping into a statement
15083 expression or the scope of a variably modified type. Don't set
15084 label_context_stack_se or label_context_stack_vm.
15085 (struct c_switch): Remove blocked_stmt_expr and blocked_vm
15086 fields. Add bindings field.
15087 (c_start_case): Don't set deleted fields. Set bindings field.
15088 (do_case): Rework order of tests. Don't check blocked_stmt_expr
15089 or blocked_vm. Call c_check_switch_jump_warnings.
15090 (c_finish_case): Don't test blocked_stmt_expr field. Call
15091 c_release_switch_bindings.
15092 (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
15093 c_switch_stack. Don't walk label_context_stack_se labels. Don't
15094 set label_context_stack_se. Call c_bindings_start_stmt_expr.
15095 (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
15096 c_switch_stack. Don't walk label_context_stack_se labels. Don't
15097 set label_context_stack_se. Call c_bindings_end_stmt_expr.
15098 (c_begin_vm_scope, c_end_vm_scope): Don't define.
15099 * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
15100 (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
15101 (C_DECL_UNJUMPABLE_VM): Don't define.
15102 (C_DECL_UNDEFINABLE_VM): Don't define.
15103 (struct c_label_list): Don't define.
15104 (struct c_label_context_se): Don't define.
15105 (struct c_label_context_vm): Don't define.
15106 (struct c_spot_bindings): Declare.
15107 (c_bindings_start_stmt_expr): Declare.
15108 (c_bindings_end_stmt_expr): Declare.
15109 (lookup_label_for_goto): Declare.
15110 (c_get_switch_bindings, c_release_switch_bindings): Declare.
15111 (c_check_switch_jump_warnings): Declare.
15112 (label_context_stack_se, label_context_stack_vm): Don't declare.
15113 (c_finish_goto_label): Update declaration.
15114 (c_begin_vm_scope, c_end_vm_scope): Don't declare.
15115 * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
15116 (Warning Options): Document -Wjump-misses-init.
15117
98a129b9
JJ
151182009-06-15 Jakub Jelinek <jakub@redhat.com>
15119
15120 * tree-object-size.c (addr_object_size): Fix a pasto in the last
15121 change.
15122
19751f1f
RAE
151232009-06-15 Rafael Avila de Espindola <espindola@google.com>
15124
15125 * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
15126
d40eb158
AH
151272009-06-15 Aldy Hernandez <aldyh@redhat.com>
15128
15129 * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
15130
151312009-06-15 Aldy Hernandez <aldyh@redhat.com>
15132
15133 * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
15134
fc26fae3
RAE
151352009-06-15 Rafael Avila de Espindola <espindola@google.com>
15136
15137 * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
15138 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
15139 * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
15140 * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
c637b0fa
UB
15141 * dwarf2asm.c (dw2_force_const_mem): Update call to
15142 make_decl_one_only.
fc26fae3
RAE
15143 * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
15144 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
15145 * langhooks.c (lhd_comdat_group): Remove.
15146 * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
15147 * tree.h (DECL_COMDAT_GROUP): New.
15148 (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
15149 (tree_decl_with_vis): Add comdat_group. Remove one_only.
15150 (make_decl_one_only): Change signature.
15151 * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
15152 make_decl_one_only.
15153 (make_decl_one_only): Change signature.
15154 (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
15155
0eb92735
RG
151562009-06-15 Richard Guenther <rguenther@suse.de>
15157
15158 PR middle-end/40439
15159 * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
15160
0ab352d5
AK
151612009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15162
15163 * tree-ssa-math-opts.c: Remove extra divide.
15164
677fbff4
AK
151652009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15166
15167 * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
15168
03bd2f1a
AK
151692009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15170
15171 * passes.c: Add bswap pass.
15172 * tree-pass.h: Add pass_optimize_bswap declaration.
15173 * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
15174 Include rtl.h, expr.h and optabs.h for optab_handler check.
15175 (struct symbolic_number, pass_optimize_bswap): New definition.
15176 (do_shift_rotate, verify_symbolic_number_p): New functions.
15177 (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
15178 (gate_optimize_bswap): New function.
15179 * tree.c (widest_int_cst_value): New function.
15180 * tree.h (widest_int_cst_value): Prototype added.
15181
fb4c4640
SB
151822009-06-14 Steven Bosscher <steven@gcc.gnu.org>
15183
15184 * cfgcleanup.c (old_insns_match_p): Remove code to substitute
15185 REG_EQUAL/REG_EQUIV notes.
15186
1d24fdd9
RG
151872009-06-14 Richard Guenther <rguenther@suse.de>
15188
15189 PR middle-end/40389
15190 * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
15191 has its address taken if NRV was applied and it is addressable.
15192 * tree-ssa-structalias.c (get_constraint_for_address_of): New
15193 function split out from ...
15194 (get_constraint_for_1): ... here.
15195 (handle_rhs_call): Use it to mark the return slot escaped if
15196 it is addressable and NRV was applied.
15197
4b29c5e5
AH
151982009-06-13 Aldy Hernandez <aldyh@redhat.com>
15199
15200 * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
15201 Change first argument type to location_t.
15202 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
15203 Do not set input_location.
15204 Use loc instead of input_location throughout.
15205
e1e6dc73
RG
152062009-06-13 Richard Guenther <rguenther@suse.de>
15207
1d24fdd9 15208 PR tree-optimization/40421
e1e6dc73
RG
15209 * tree-predcom.c (should_unroll_loop_p): Remove.
15210 (tree_predictive_commoning_loop): Use can_unroll_loop_p.
15211
8012b923
MM
152122009-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
15213
15214 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15215 Add location argument.
15216
4c4bde29
AH
152172009-06-13 Aldy Hernandez <aldyh@redhat.com>
15218
15219 * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
15220 build_decl.
15221 * config/s390/s390.c (s390_build_builtin_va_list): Same.
15222 (s390_gimplify_va_arg): Pass location to create_artificial_label.
15223 * config/spu/spu-protos.h: Add location to
15224 spu_resolve_overloaded_builtin.
15225 * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
15226 spu_build_builtin_va_list.
15227 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
15228 argument. Pass location to build_function_call_vec.
15229 * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
15230 build_decl.
15231 (emit_fpu_switch): Same.
15232 (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
15233 * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
15234 to build_decl and create_artificial_label.
15235 (xtensa_gimplify_va_arg_expr): Same.
15236 * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
15237 (xstormy16_gimplify_va_arg_expr): Same.
15238 * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
15239 * config/arm/arm.c (arm_build_builtin_va_list): Same.
15240 * config/mips/mips.c (mips_build_builtin_va_list): Same.
15241 (mips16_build_function_stub): Same.
15242 (mips16_build_call_stub): Same.
15243
81beb031
RE
152442009-06-13 Richard Earnshaw <rearnsha@arm.com>
15245
15246 PR target/40327
15247 * arm/constraints.md (Pa, Pb): New constraints.
f100a4a8 15248 * arm/arm.md (thumb1_addsi3): Support more complex additions. Add a
81beb031
RE
15249 split pattern to deal with them.
15250
98f6c600
JS
152512009-06-13 Joerg Sonnenberger <joerg@britannica.bec.de>
15252
15253 * doc/invoke.texi: Add missing option -Wp,OPTION in list,
15254 fix index entry for -Xpreprocessor.
15255
71856685
AH
152562009-06-12 Aldy Hernandez <aldyh@redhat.com>
15257
15258 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15259 Add location argument to build_decl call.
15260 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
15261 (rs6000_init_builtins): Same.
15262 (spe_init_builtins): Same.
15263 (rs6000_gimplify_va_arg): Add location argument to
15264 create_artificial_label call.
15265
756b65f5
SB
152662009-06-12 Steven Bosscher <steven@gcc.gnu.org>
15267
15268 * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
15269 * combine-stack-adj.c (pass_stack_adjustments): Use it.
15270 * Makefile.in: Fix GGC dependency for gcse.o.
15271
c2255bc4
AH
152722009-06-12 Aldy Hernandez <aldyh@redhat.com>
15273
15274 * tree-pretty-print.c (dump_generic_node): Dump column numbers.
15275 * gimple-pretty-print.c (dump_gimple_stmt): Same.
15276 * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
15277 created.
15278 * c-parser.c (c_parser_binary_expression): Use current column while
15279 building binary operations.
15280 * common.opt (fshow-column): Enable by default.
15281 * tree-vrp.c (check_array_ref): Use warning_at.
15282 (check_array_bounds): Use location from call back if expr has no
15283 location.
15284 * tree.h: Add location argument to maybe_fold_*.
15285 * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
15286 (maybe_fold_offset_to_array_ref): Add location argument and use it.
15287 (maybe_fold_offset_to_component_ref): Same.
15288 (maybe_fold_offset_to_reference): Same.
15289 (maybe_fold_offset_to_address): Same.
15290 (maybe_fold_stmt_indirect): Same.
15291 (maybe_fold_stmt_addition): Same.
15292 (fold_stmt_r): Pass location to maybe_fold_*.
15293 (fold_gimple_assign): Same.
15294 * c-tree.h: Add location argument to finish_decl,
15295 default_function_array_conversion, store_init_value.
15296 * c-decl.c (define_label): Use error_at.
15297 (c_make_fname_decl): Pass location to finish_decl.
15298 (finish_decl): New location argument.
15299 (build_compound_literal): Pass location to store_init_value.
15300 (grokdeclarator): Pass location to finish_decl.
15301 (grokfield): Same.
15302 * c-typeck.c (array_to_pointer_conversion): New location argument.
15303 (function_to_pointer_conversion): Same.
15304 (default_function_array_conversion): Same.
15305 (parser_build_unary_op): Pass location to overflow_warning.
15306 (parser_build_binary_op): Same. Use warning_at.
15307 (build_unary_op): Pass location to array_to_pointer_conversion.
15308 (build_c_cast): Pass location to digest_init.
15309 (build_modify_expr): New location argument.
15310 (convert_for_assignment): Same.
15311 (store_init_value): Same.
15312 (digest_init): Same.
15313 (output_init_element): Pass location to digest_init and
15314 array_to_pointer_conversion.
15315 (c_finish_return): Pass location to convert_for_assignment.
15316 * gimplify.c (gimplify_conversion): Pass location to
15317 maybe_fold_offset_to_address.
15318 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
15319 to maybe_fold_stmt_addition.
15320 * c-omp.c (c_finish_omp_atomic): Pass new location to
15321 build_modify_expr.
15322 (c_finish_omp_for): Same.
15323 * c-common.c (overflow_warning): New argument.
15324 * c-common.h: New argument to build_modify_expr, overflow_warning.
15325 * c-parser.c (c_parser_declaration_or_fndef): Pass location to
15326 finish_decl.
15327 (c_parser_initializer): Pass location to
15328 default_function_array_conversion.
15329 (c_parser_initelt): Same.
15330 (c_parser_initval): Same.
15331 (c_parser_asm_operands): Same.
15332 (c_parser_expr_no_commas): Same. Pass location to build_modify_expr.
15333 (c_parser_conditional_expression): Same.
15334 (c_parser_binary_expression): Add location info to stack. Use it.
15335 (c_parser_unary_expression): Pass location to
15336 default_function_array_conversion, parser_build_unary_op,
15337 build_indirect_ref, c_parser_postfix_expression_after_primary.
15338 (c_parser_postfix_expression_after_primary): New location argument.
15339 Use it.
15340 (c_parser_expression_conv): Pass location to
15341 default_function_array_conversion.
15342 (c_parser_expr_list): Same.
15343 (c_parser_omp_atomic): Same.
15344 (c_parser_omp_for_loop): Same.
bd62d832 15345 * c-tree.h (struct c_declarator): Add comment to id_loc.
c2255bc4
AH
15346 (build_array_declarator): New argument.
15347 * c-decl.c (build_array_declarator): Add location argument.
15348 (grokdeclarator): Set id_loc for cdk_array.
15349 * c-parser.c (c_parser_direct_declarator_inner): Pass location to
15350 build_array_declarator.
15351 * tree.c (build_omp_clause): Add location argument.
15352 * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
15353 (OMP_CLAUSE_LOCATION): New macro.
15354 (struct tree_omp_clause): Add location field.
15355 (build_omp_clause): Add argument.
c2255bc4
AH
15356 * cp/pt.c (tsubst_omp_for_iterator): Pass location to
15357 build_omp_clause.
15358 * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
15359 (cp_parser_omp_clause_collapse): Same.
15360 (cp_parser_omp_clause_default): Same.
15361 (cp_parser_omp_clause_if): Same.
15362 (cp_parser_omp_clause_nowait): Same.
15363 (cp_parser_omp_clause_num_threads): Same.
15364 (cp_parser_omp_clause_ordered): Same.
15365 (cp_parser_omp_clause_schedule): Same.
15366 (cp_parser_omp_clause_untied): Same.
15367 (cp_parser_omp_for_loop): Same.
15368 (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
15369 * c-tree.h (c_start_case): Add location argument.
15370 (c_process_expr_stmt): Same.
15371 (c_finish_goto_*): Same.
15372 * tree-parloops.c (initialize_reductions): Pass location to
15373 build_omp_clause.
15374 (create_parallel_loop): Same.
15375 * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
15376 (gfc_trans_omp_reduction_list): Same.
15377 (gfc_trans_omp_clauses): Same.
15378 (gfc_trans_omp_do): Same.
15379 * c-typeck.c (c_finish_goto_label): Same.
15380 (c_finish_goto_ptr): New location argument.
15381 (c_start_case): Same.
15382 (emit_side_effect_warnings): Same.
15383 (c_process_expr_stmt): Same.
15384 (c_finish_stmt_expr): Same.
15385 (c_finish_omp_clauses): Use error_at instead of error.
15386 * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
15387 build_omp_clause.
15388 * c-omp.c (c_split_parallel_clauses): New location argument.
15389 * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
15390 to build_omp_clause.
15391 (convert_local_reference_stmt): Same.
15392 (convert_gimple_call): Same.
15393 * c-common.h (c_split_parallel_clauses): New argument.
15394 * c-parser.c (c_parser_statement_after_labels): Pass location to
15395 c_finish_goto_label.
15396 (c_parser_switch_statement): Pass location to c_start_case.
15397 (c_parser_for_statement): Pass location to c_finish_expr_stmt,
15398 and c_process_expr_stmt.
15399 (c_parser_omp_variable_list): Add location argument.
c637b0fa 15400 (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
c2255bc4
AH
15401 (c_parser_omp_clause_default): Same.
15402 (c_parser_omp_clause_if): Same.
15403 (c_parser_omp_clause_num_threads): Same.
15404 (-c_parser_omp_clause_ordered): Same.
15405 (c_parser_omp_clause_reduction): Pass location to
15406 c_parser_omp_variable_list.
15407 (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
15408 (c_parser_omp_clause_untied): Same.
15409 (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
c637b0fa 15410 (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
c2255bc4
AH
15411
15412 * c-tree.h (check_for_loop_decls, undeclared_variable,
15413 build_component_ref, build_array_ref, build_external_ref,
15414 c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
15415 build_conditional_expr, build_compound_expr, c_cast_expr,
15416 build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
15417 c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
15418 argument.
15419 * c-semantics.c (build_stmt): Same.
15420 (build_case_label): Same.
15421 * c-decl.c (c_finish_incomplete_decl): Pass location on down.
15422 (undeclared_variable): New argument.
15423 (make_label): Same.
15424 (lookup_label): Pass location on down.
15425 (define_label): Same.
15426 (finish_decl): Same.
15427 (build_compound_literal): Same.
15428 (finish_struct): Same.
15429 (finish_function): Do not set location here.
15430 (check_for_loop_decls): New argument.
15431 * tree.c (save_expr): Set location.
15432 (build_empty_stmt): New argument.
15433 * tree.h (build_empty_stmt): New argument to build_empty_stmt.
15434 (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
15435 * builtins.c (gimplify_va_arg_expr): Use locations.
15436 (expand_builtin_sync_operation): Same.
15437 * c-typeck.c (build_component_ref): New argument.
15438 (build_array_ref): Same.
15439 (build_external_ref): Same.
15440 (c_expr_sizeof_expr): Same.
15441 (c_expr_sizeof_type): Same.
15442 (parser_build_unary_op): Same.
15443 (build_conditional_expr): Same.
15444 (build_compound_expr): Pass location on down.
15445 (build_compound_expr): New argument.
15446 (build_c_cast): Same.
15447 (c_cast_expr): Same.
15448 (build_asm_expr): Same.
15449 (c_finish_return): Same.
15450 (c_process_expr_stmt): Pass location on down.
15451 (c_finish_stmt_expr): New argument.
15452 (push_clenaup): Same.
15453 (c_finish_omp_parallel): Same.
15454 (c_finish_omp_task): Same.
15455 * gimplify.c (gimplify_call_expr): Pass location on down.
15456 * c-omp.c (c_finish_omp_master): New argument.
15457 (c_finish_omp_critical): Same.
15458 (c_finish_omp_ordered): Same.
15459 (c_finish_omp_barrier): Same.
15460 (-c_finish_omp_taskwait): Same.
15461 (c_finish_omp_atomic): Same.
15462 (c_finish_omp_flush): Same.
15463 * tree-inline.c (copy_tree_body_r): Pass location on down.
15464 (inline_forbidden_p): Remove use of input_location.
15465 * c-gimplify.c (c_build_bind_expr): New argument.
15466 * c-common.c (c_common_truthvalue_conversion): Pass location on down.
15467 (c_sizeof_or_alignof_type): New argument.
15468 (c_alignof_expr): Same.
15469 (build_va_arg): Same.
15470 (c_add_case_label): Same.
15471 * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
15472 c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
15473 c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
15474 c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
15475 c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
15476 c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
15477 New argument.
15478 * stub-objc.c (objc_build_selector_expr): Same.
15479 (objc_build_throw_stmt): Same.
15480 * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
15481 (c_parser_initelt): Same.
15482 (c_parser_compound_statement): Same.
15483 (c_parser_compound_statement_nostart): Same.
15484 (c_parser_label): Same.
15485 (c_parser_statement_after_labels): Same.
15486 (c_parser_if_body): Same.
15487 (c_parser_else_body): Same.
15488 (c_parser_if_statement): Same.
15489 (c_parser_switch_statement): Same.
15490 (c_parser_while_statement): Same.
15491 (c_parser_do_statement): Same.
15492 (c_parser_for_statement): Same.
15493 (c_parser_asm_statement): Same.
15494 (c_parser_conditional_expression): Same.
15495 (c_parser_binary_expression): Same.
15496 (c_parser_cast_expression): Same.
15497 (c_parser_unary_expression): Same.
15498 (c_parser_sizeof_expression): Same.
15499 (c_parser_alignof_expression): Same.
15500 (c_parser_postfix_expression): Same.
15501 (c_parser_expression): Same.
15502 (c_parser_objc_receiver): Same.
15503 (c_parser_omp_variable_list): Same.
15504 (c_parser_omp_structured_block): Same.
15505 (c_parser_omp_atomic): New argument.
15506 (c_parser_omp_barrier): Same.
15507 (c_parser_omp_critical): Same.
15508 (c_parser_omp_flush): Pass location on down.
15509 (c_parser_omp_for_loop): New argument.
15510 (c_parser_omp_for): Same.
15511 (c_parser_omp_master): Same.
15512 (c_parser_omp_ordered): Same.
15513 (c_parser_omp_sections_scope): Same.
15514 (c_parser_omp_sections): Same.
15515 (c_parser_omp_parallel): Same.
15516 (c_parser_omp_single): Same.
15517 (c_parser_omp_task): Same.
15518 (c_parser_omp_taskwait): Pass location on down.
15519 (c_parser_omp_construct): Same.
15520 (c_parser_omp_threadprivate): Same.
15521 * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
15522 builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
15523 tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
15524 c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
15525 c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
15526 emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
15527 rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
15528 tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
15529 config/i386/i386.c, stmt.c:
15530 Add location argument to the following function definitions and/or
15531 function calls: build_decl, objcp_start_struct, objcp_finish_struct,
15532 start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
15533 cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
15534 build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
15535 do_case, c_finish_bc_stmt, build_compound_literal,
15536 build_function_call.
15537 * c-decl.c (build_compound_literal): Add location argument.
15538 Make all diagnostic calls use location.
15539 (start_struct): Same.
15540 (finish_struct): Same.
15541 (start_enum): Same.
15542 (build_enumerator): Same.
15543 (start_function): Same.
15544 (grokdeclarator): Make all diagnostic calls use location.
15545 (store_parm_decls_oldstyle): Same.
15546 * c-typeck.c (build_function_call): Add location argument.
15547 Make all diagnostic calls use location.
15548 (do_case): Same.
15549 (c_finish_bc_stmt): Same.
15550 * tree-nested.c (get_trampoline_type): Add argument.
15551 Pass location to build_decl.
15552 (lookup_tramp_for_decl): Pass location to get_trampoline_type.
15553 * rtl.h (RTL_LOCATION): New.
15554 * c-common.c (c_add_case_label): Add location argument.
15555 Make all diagnostic calls use location.
15556 * c-common.h: Add location argument to make_fname_decl, do_case,
15557 c_add_case_label, build_function_call, resolve_overloaded_builtin.
15558 * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
15559 Set it appropriately for every case. Pass enum_loc to start_enum
15560 call. Pass value_loc first to build_enumerator. Pass enum_loc to
15561 parser_xref_tag.
15562 (c_parser_struct_or_union_specifier): Save location. Use it for
15563 start_struct, finish_struct, and parser_xref_tag.
15564
3d8b2a98
ILT
155652009-06-12 Ian Lance Taylor <iant@google.com>
15566
c637b0fa 15567 * fold-const.c (fold_unary): Rename local variable and to and_expr.
3d8b2a98
ILT
15568
15569 * c-opts.c (c_common_handle_option): For -Wc++-compat set
15570 cpp_opts->warn_cxx_operator_names.
15571
737142ce
AP
155722009-06-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
15573
15574 PR tree-opt/38865
15575 * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
15576 is returns NULL and OP is a VCE, look through the VCE.
15577
d3a0d55d
ILT
155782009-06-12 Ian Lance Taylor <iant@google.com>
15579
15580 PR bootstrap/40430
15581 * collect2.c (main): Use CONST_CAST2 in code inside #if
15582 LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
15583
f85882d8
JY
155842009-06-12 Joey Ye <joey.ye@intel.com>
15585
15586 PR middle-end/39146
15587 * cfgexpand.c (get_decl_align_unit): Update
15588 max_used_stack_slot_alignment with align instead of
15589 stack_alignment_needed.
15590
15591 * function.c (assign_stack_local_1): Update
15592 max_used_stack_slot_alignment with alignment_in_bits instead
15593 of stack_alignment_needed.
15594 (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
15595 here.
15596
fc9f468b
JJ
155972009-06-12 Jakub Jelinek <jakub@redhat.com>
15598
15599 * dwarf2out.c (last_var_location_insn): New variable.
15600 (dwarf2out_end_epilogue): Clear last_var_location_insn.
15601 (dwarf2out_var_location): Don't record anything after last real
15602 insn. Only change labels if there were any real instructions
15603 in between last note and this one, or if changed sections.
15604
7c1db202
RH
156052009-06-11 Richard Henderson <rth@redhat.com>
15606
f85882d8 15607 * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
15cb981a
RH
15608 note when storing the frame pointer in a register.
15609 (FRP): Don't redefine to nothing for epilogue.
15610 (alpha_expand_epilogue): Mark register and sp restores.
15611 (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
15612
7c1db202
RH
15613 * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
15614 when gen_lowpart is needed.
15615
f2ae7631
RH
156162009-06-11 Richard Henderson <rth@redhat.com>
15617
42755c21
RH
15618 * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
15619
f2ae7631
RH
15620 * dwarf2out.c (need_data_align_sf_opcode): New.
15621 (div_data_align): Move earlier.
15622 (def_cfa_1, reg_save): Use it.
15623
8ed0ce99
L
156242009-06-11 H.J. Lu <hongjiu.lu@intel.com>
15625
15626 * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
15627 (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
15628 (ix86_handle_option): Handle OPT_mcrc32.
15629 (ix86_target_string): Add -mcrc32.
15630 (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
15631
15632 * config/i386/i386.h (TARGET_CRC32): New.
15633
c637b0fa 15634 * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
8ed0ce99
L
15635 (sse4_2_crc32di): Likewise.
15636
c637b0fa 15637 * config/i386/i386.opt (mcrc32): New.
8ed0ce99
L
15638
15639 * doc/invoke.texi: Document -mcrc32.
15640
9fd68a1f
RH
156412009-06-11 Richard Henderson <rth@redhat.com>
15642
8ed0ce99 15643 * common.opt (gdwarf-): Accept a version number.
9fd68a1f
RH
15644 * doc/invoke.texi (gdwarf-): Update docs.
15645 * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
15646 * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
15647 version level, and record it.
15648
15649 * dwarf2.h (DW_CIE_VERSION): Remove.
15650 * dwarf2out.c (DWARF_VERSION): Remove.
15651 (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
15652 (output_call_frame_info): Use CIE version 3 for dwarf3,
15653 or if the return register column is out of range for version 1.
15654 (dwarf_stack_op_name): Add all dwarf3 values.
15655 (DEBUG_PUBTYPES_SECTION): New.
15656 (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
15657 encoding change for dwarf3.
15658 (output_die) [dw_val_class_die_ref]: Likewise.
15659 (output_compilation_unit_header): Emit correct version for dwarf3.
15660 (output_line_info): Likewise.
15661 (output_pubnames): Update for DWARF_VERSION removal.
15662 (output_aranges): Likewise.
15663 (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
15664 (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
15665 (dwarf2out_finish): Likewise.
15666
4de8ce3b
DD
156672009-06-11 David Daney <ddaney@caviumnetworks.com>
15668
15669 * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
15670 in r148403.
15671
468059bc
DD
156722009-06-11 David Daney <ddaney@caviumnetworks.com>
15673
15674 PR c/39252
15675 * doc/extend.texi ( __builtin_unreachable): Document new builtin.
15676 * builtins.c (expand_builtin_unreachable): New function.
15677 (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
15678 * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
15679 * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
15680 successors.
15681 * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
15682 searching for missing barriers.
15683
b5a6e96f
FXC
156842009-06-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15685
15686 * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
15687 when -fprofile-generate* was passed.
15688 * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
15689
6be6462e
AG
156902009-06-11 Anthony Green <green@moxielogic.com>
15691
c637b0fa 15692 * config/moxie/moxie.md: Define length attribute for all instructions.
6be6462e
AG
15693 (rCC): Define.
15694 (*b<cond:code>): Support limited branch ranges for new PC-relative
15695 branch instructions.
15696 * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
15697
caaabe0a
JJ
156982009-06-11 Jakub Jelinek <jakub@redhat.com>
15699
e5219642
JJ
15700 * config/i386/i386.c (min_insn_size): Use get_attr_length
15701 for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
15702 For __asm return 0.
15703
caaabe0a
JJ
15704 * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
15705 instead of emit_insn_before.
15706
a567fa6a
ILT
157072009-06-10 Ian Lance Taylor <iant@google.com>
15708
15709 PR bootstrap/40408
15710 * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
15711 GIMPLE_SWITCH.
15712
6a753d5f
RE
157132009-06-10 Revital Eres <eres@il.ibm.com>
15714
15715 * passes.c (init_optimization_passes): Reschedule
15716 predictive-commoning pass before complete unroll pass.
15717
a550d677
MJ
157182009-06-10 Martin Jambor <mjambor@suse.cz>
15719
15720 * cgraph.c (cgraph_node_can_be_local_p): New function.
15721 (cgraph_make_node_local): New function.
15722 * cgraph.h (cgraph_node_can_be_local_p): Declare.
15723 (cgraph_make_node_local): Declare.
15724
d8259b07
NF
157252009-06-10 Nathan Froyd <froydnj@codesourcery.com>
15726
15727 * tree.h (tree_base): Add packed_flag and user_align fields.
15728 Decrease size of spare field.
15729 (TYPE_USER_ALIGN): Use user_align from tree_base.
15730 (DECL_USER_ALIGN): Likewise.
15731 (TYPE_PACKED): Use packed_flag from tree_base.
15732 (DECL_PACKED): Likewise.
15733 (tree_type): Delete packed_flag and user_align fields. Widen
15734 precision field. Widen mode field and shuffle fields to align
15735 mode on an 8-bit boundary.
15736 (tree_decl_common): Delete decl_flag_1 and user_align fields.
15737 Renumber decl_flag_* fields. Fix comments. Widen
15738 decl_common_unused field.
c637b0fa 15739 (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
d8259b07
NF
15740 (DECL_EXTERNAL): Likewise.
15741 (DECL_BIT_FIELD): Likewise.
15742 (DECL_NONADDRESSABLE_P): Likewise.
15743 (TYPE_DECL_SUPRESS_DEBUG): Likewise.
15744 * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
15745
c2569604
ILT
157462009-06-10 Ian Lance Taylor <iant@google.com>
15747
15748 * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
15749 (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
15750 (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
15751 (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
15752 (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
15753 DEF_VEC_ALLOC_FUNC_P.
15754 (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
15755 (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
15756 DEF_VEC_ALLOC_FUNC_O.
15757 (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
15758 (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
15759 DEF_VEC_ALLOC_FUNC_I.
15760 (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
15761 (vec_stack_p_reserve_exact_1): Declare.
15762 (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
15763 (vec_stack_free): Declare.
15764 (VEC_stack_alloc): Define.
15765 (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
15766 (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
15767 (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
15768 * vec.c (void_p): New type. Call DEF_VEC_P and DEF_VEC_ALLOC_P
15769 for void_p.
15770 (stack_vecs): New static variable.
15771 (vec_stack_p_reserve_exact_1): New function.
15772 (vec_stack_o_reserve_1): New static function.
15773 (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
15774 (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
15775 (vec_stack_free): New function.
15776 * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
15777 (VEC_df_ref_stack_alloc): Define.
15778 (df_mw_hardreg_ptr): New type. Use DEF_VEC_P and
15779 DEF_VEC_ALLOC_P_STACK.
15780 (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
15781 (struct df_collection_rec): Change _vec fields to VEC. Remove
15782 _use fields.
15783 (df_free_collection_rec): Adjust for new fields.
15784 (df_insn_rescan): Use new df_collection_rec fields.
15785 (df_notes_rescan, df_canonize_collection_rec): Likewise.
15786 (df_ref_create_structure, df_ref_record): Likewise.
15787 (df_get_conditional_uses, df_get_call_refs): Likewise.
15788 (df_insn_refs_collect, df_bb_refs_collect): Likewise.
15789 (df_bb_refs_record, df_record_entry_block_defs): Likewise.
15790 (df_record_exit_block_uses, df_bb_verify): Likewise.
c637b0fa 15791 (df_swap_refs): Change ref_vec parameter to VEC. Change all callers.
c2569604
ILT
15792 (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
15793 Remove count parameter. Change return type to void. Change all
15794 callers.
15795 (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
15796 Remove count parameter. Change return type to void. Change all
15797 callers.
15798 (df_install_refs): Change old_vec parameter to VEC. Remove count
15799 parameter. Change all callers.
15800 (df_install_mws): Change old_vec parameter to VEC. Remove count
15801 parameter. Change all callers.
15802 (df_refs_verify): Change new_rec parameter to VEC. Change call
15803 callers.
15804 (df_mws_verify): Likewise.
15805
e7aae3e8
AO
158062009-06-10 Alexandre Oliva <aoliva@redhat.com>
15807
15808 * gcc.c (compare_files): Cast munmap argumento to caddr_t.
15809
412ac8d5
L
158102009-06-10 H.J. Lu <hongjiu.lu@intel.com>
15811
15812 * doc/extend.texi: Add description for __builtin_ia32_crc32di.
15813
cceb575c
AG
158142009-06-10 Anthony Green <green@moxielogic.com>
15815
15816 * config/moxie/crti.asm: New file.
15817 * config/moxie/crtn.asm: New file.
15818 * config/moxie/moxie.c: New file.
15819 * config/moxie/moxie.h: New file.
15820 * config/moxie/sfp-machine.h: New file.
15821 * config/moxie/moxie-protos.h: New file.
15822 * config/moxie/t-moxie: Created.
15823 * config/moxie/t-moxie-softfp: Created.
15824 * config/moxie/moxie.md: Created.
15825 * config/moxie/constraints.md: Created.
15826 * config.gcc: Add moxie support.
15827 * doc/md.texi (Machine Constraints): Add moxie constraints.
15828 * doc/contrib.texi (Contributors): Mention moxie port.
15829 * doc/install.texi (Specific): Mention the moxie port.
15830
bf406687
ILT
158312009-06-09 Ian Lance Taylor <iant@google.com>
15832
15833 * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
15834 compiling with C++.
15835 * optabs.c (optab_table): Only use designated initializers if
15836 HAVE_DESIGNATED_INITIALIZERS is defined.
15837 (convert_optab_table): Likewise.
15838 (init_optabs): Always call init_insn_codes if
15839 HAVE_DESIGNATED_INITIALIZERS is not defined.
15840
744aa42f
ILT
158412009-06-09 Ian Lance Taylor <iant@google.com>
15842
15843 * targhooks.c (default_builtin_vectorized_function): Change fn
15844 parameter to unsigned int.
15845 (default_builtin_vectorized_conversion): Change code parameter to
15846 unsigned int.
15847 (default_builtin_reciprocal): Change fn parameter to unsigned int.
15848 * targhooks.h: Update declarations.
15849 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
15850 parameter to unsigned int.
15851
15852 * c-typeck.c (comptypes_check_enum_int): New static function.
15853 (comptypes_internal): Add enum_and_int_p parameter. Change all
15854 callers.
15855 (comp_target_types): Add location parameter. Change all callers.
15856 (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
15857 Change all callers.
15858 (function_types_compatible_p, type_lists_compatible_p): Likewise.
15859 (build_conditional_expr): Add colon_loc parameter. Change all
15860 callers.
c637b0fa 15861 (convert_for_assignment): Add location parameter. Change all callers.
744aa42f
ILT
15862 * c-parser.c (c_parser_conditional_expression): Pass location of
15863 colon to build_conditional_expr.
15864 * c-tree.h (build_conditional_expr): Update declaration.
15865
bcbe3b25
SP
158662009-06-09 Sebastian Pop <sebastian.pop@amd.com>
15867
15868 * graphite.c: Revert previous patch.
15869
dc2a6925
SP
158702009-06-09 Sebastian Pop <sebastian.pop@amd.com>
15871
15872 PR bootstrap/40103
15873 * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
15874
d81f5387
GS
158752009-06-09 Ghassan Shobaki <ghassan.shobaki@amd.com>
15876
8ed0ce99
L
15877 * tree-ssa-loop-prefetch.c
15878 (loop_prefetch_arrays): Fixed a portability problem in printf format
15879 string.
d81f5387 15880
8056eb4f
MJ
158812009-06-09 Martin Jambor <mjambor@suse.cz>
15882
15883 PR tree-optimization/40351
c637b0fa
UB
15884 * tree-sra.c (propagate_subacesses_accross_link): Check that a
15885 refrence to a potential artifical subaccess can be constructed.
8056eb4f 15886
bd9a3465
KK
158872009-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
15888
15889 * config/sh/sh-protos.h (sh_optimization_options): Declare.
15890 (sh_override_options): Likewise.
15891 * config/sh/sh.c: Include params.h.
15892 (sh_optimization_options): New.
15893 (sh_override_options): Likewise.
15894 * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
15895 (OVERRIDE_OPTIONS): Use sh_override_options.
15896
8845deab
JJ
158972009-06-08 Jakub Jelinek <jakub@redhat.com>
15898
15899 * dwarf2out.c (emit_cfa_remember): New variable.
15900 (add_fde_cfi): If emit_cfa_remember, recurse to add
15901 DW_CFA_remember_state first.
15902 (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
15903 instead just set emit_cfa_remember.
15904
9ea81b0c
JH
159052009-06-08 Jan Hubicka <jh@suse.cz>
15906
15907 PR debug/40126
15908 * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
15909
21ecdec5
JH
159102009-06-08 Jan Hubicka <jh@suse.cz>
15911
15912 PR middle-end/39834
c637b0fa
UB
15913 * cgraphunit.c (save_inline_function_body): Do not copy transform
15914 hooks for saved inline bodies.
21ecdec5
JH
15915 * ipa-passes.c (do_per_function): Do not add the hoks multiple times
15916 for given function.
15917
72e48218
AN
159182009-06-08 Adam Nemet <anemet@caviumnetworks.com>
15919
15920 * jump.c (returnjump_p): Handle delayed branches. Add missing
15921 function comment.
15922
6ce2002b
JH
159232009-06-08 Jan Hubicka <jh@suse.cz>
15924
15925 PR middle-end/40102
15926 * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
15927 original node might've been modified.
15928 * tree-inline.c (copy_bb): Do not assume that all clones are the same.
15929
eb9ed98a
JJ
159302009-06-08 Jakub Jelinek <jakub@redhat.com>
15931
15932 * tree-object-size.c (addr_object_size): Add OSI argument.
15933 Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
15934 (compute_builtin_object_size, expr_object_size): Adjust callers.
15935 (plus_stmt_object_size): Call addr_object_size instead of
15936 compute_builtin_object_size.
15937
db34470d 159382009-06-08 Ghassan Shobaki <ghassan.shobaki@amd.com>
8ed0ce99 15939 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
f100a4a8
UB
15940
15941 * tree-ssa-loop-prefetch.c
15942 (gather_memory_references): Introduced a counter for the number of
db34470d 15943 memory references.
f100a4a8 15944 (anything_to_prefetch_p): Introduced a counter for the number of
db34470d 15945 prefetches.
f100a4a8 15946 (is_loop_prefetching_profitable): New function with a cost model
db34470d 15947 for prefetching.
f100a4a8 15948 (loop_prefetch_arrays): Use the new cost model to determine if
db34470d 15949 prefetching is profitable.
f100a4a8 15950 * params.def (MIN_INSN_TO_PREFETCH_RATIO,
db34470d 15951 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
f100a4a8 15952 * params.h (MIN_INSN_TO_PREFETCH_RATIO,
db34470d 15953 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
f100a4a8 15954 * doc/invoke.texi (MIN_INSN_TO_PREFETCT_RATIO,
db34470d 15955 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
f100a4a8 15956
eb7adebc
MM
159572009-06-08 Michael Matz <matz@suse.de>
15958
15959 PR debug/40012
eb7adebc
MM
15960 * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
15961 partitions use the same.
15962 (expand_one_var): Deal with DECL_RTL sometimes begin set also
15963 for basevars of SSA_NAMEs.
15964 (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
15965 to not expand them twice.
15966 (gimple_expand_cfg): Clear DECL_RTL for those decls that have
15967 multiple places.
15968
2153915d
AO
159692009-06-08 Alexandre Oliva <aoliva@redhat.com>
15970
15971 * common.opt (fcompare-debug=, fcompare-debug-second): New.
15972 (fdump-final-insns=, gtoggle): New.
15973 * doc/invoke.texi: Document them.
15974 * final.c (rest_of_clean_state): Dump final insn stream.
15975 * gcc.c (invoke_as): Hook in -fcompare-debug.
15976 (static_spec_functions): Add compare-debug-dump-opt,
15977 compare-debug-self-opt and compare-debug-auxbase-opt.
15978 (compare_debug, compare_debug_second, compare_debug_opt): New.
15979 (switches_debug_check, n_switches_debug_check): New.
15980 (debug_auxbase_opt, debug_check_temp_file): New.
15981 (process_command): Handle -fno-compare-debug, -fcompare-debug and
15982 -fcompare-debug=*.
15983 (do_self_spec): Handle arguments after switches.
15984 (do_spec_1): Add .gk extension to temp file basenames for compare.
15985 (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
15986 (cc1_options): Use it instead of normal auxbase computation for
15987 the second compare-debug compilation.
15988 (compare_files): New.
15989 (main): Set up and implement compare debug mode.
15990 (compare_debug_dump_opt_spec_function): New.
15991 (compare_debug_self_opt_spec_function): New.
15992 (compare_debug_auxbase_opt_spec_function): New.
15993 * toplev.c (process_options): Handle flag_gtoggle,
15994 flag_dump_final_insns.
15995 * coverage.c (coverage_begin_output): Don't overwrite .gcno file
15996 during -fcompare-debug-second compilation.
15997
cdb88468
ILT
159982009-06-07 Ian Lance Taylor <iant@google.com>
15999
c637b0fa 16000 * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
cdb88468
ILT
16001 * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
16002
16003 * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
16004 with no default node. Change warning with %H to warning_at.
16005 Don't clear warn_switch around case checking.
16006 * doc/invoke.texi (Warning Options): Clarify distinction between
16007 -Wswitch and -Wswitch-enum.
16008
4fe8e1a2
BRF
160092009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16010
16011 * tree-pass.h (TODO_update_ssa_any): Document internal use only.
16012
69952c1d
BRF
160132009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16014
16015 * gbl-ctors.h: Add header guard.
16016
b2ad0284
BRF
160172009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16018
16019 * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
16020 sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
16021 vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
16022 vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
16023 prototypes for removed functions.
16024 (expressions_equal_p): Move to ...
16025 * tree-ssa-sccvn.h: ... here and ...
16026 * matrix-reorg.c: ... adjust includes.
16027
c3df55f9
BRF
160282009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16029
16030 * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
16031
b5a7159f
BRF
160322009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16033
16034 * c-decl.c (finish_decl): Use bool for variable was_incomplete.
16035 (finish_function): Remove erroneous whitespace.
16036
95bca6b0
BRF
160372009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16038
2cd713a0
BRF
16039 * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
16040 (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
249eb506
BRF
16041
160422009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16043
16044 * errors.c (internal_error): Commentary typo fix.
16045 * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
16046 * tree-ssa-pre.c: Ditto.
95bca6b0 16047
2cd713a0
BRF
160482009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16049
16050 * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
16051 them is supposed to hold actual statements.
16052
5bca4e80
ILT
160532009-06-06 Ian Lance Taylor <iant@google.com>
16054
16055 * doc/extend.texi (Attribute Syntax): Document that C++ labels on
16056 empty statements can now have attributes.
16057
47ac44d6
SZ
160582009-06-05 Shujing Zhao <pearly.zhao@oracle.com>
16059
16060 * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
16061 * config/mips/mips.md: Ditto.
16062
19b905ce
NF
160632009-06-05 Nathan Froyd <froydnj@codesourcery.com>
16064
16065 * config/rs6000/eabi.asm (__eabi_convert): Don't define if
16066 _RELOCATABLE.
16067 (__eabi_uconvert): Likewise.
16068
16702e19
NF
160692009-06-05 Nathan Froyd <froydnj@codesourcery.com>
16070
16071 * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
16072 CFI_* definitions with IN_GCC.
16073
a735afd1
DE
160742009-06-05 David Edelsohn <edelsohn@gnu.org>
16075
16076 * xcoffout.h (xcoffout_source_line): Update prototype.
16077
26a347c5
KG
160782009-06-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16079
16080 * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
16081 mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
16082
9f706f23
JJ
160832009-06-05 Jakub Jelinek <jakub@redhat.com>
16084
16085 PR middle-end/40340
16086 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
16087 inlined_function_outer_scope_p blocks for artificial inlines
16088 even at -g0/-g1.
16089 * tree.c (tree_nonartificial_location): Rewrite using
16090 block_nonartificial_location.
16091
8f439681
RE
160922009-06-05 Revital Eres <eres@il.ibm.com>
16093 Leehod Baruch <leehod@il.ibm.com>
16094
16095 * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
16096 (expand_expr_real_1): Remove comment.
16097 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
16098 Vectorize misaligned access when the target supports it.
c637b0fa 16099 (vect_supportable_dr_alignment): Check for unaligned access support.
8f439681
RE
16100 * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
16101 and remove asset.
16102
b89f8e3c
JB
161032009-06-05 Julian Brown <julian@codesourcery.com>
16104
16105 * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
16106 * config/arm/ieee754-sf.S (cmpsf2): Likewise.
16107
47d1f191
RG
161082009-06-05 Richard Guenther <rguenther@suse.de>
16109
16110 PR bootstrap/40350
16111 * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
16112 as possibly unused.
16113
9f706f23 161142009-06-05 Jakub Jelinek <jakub@redhat.com>
75707b28
JJ
16115
16116 * config/s390/s390.c (global_not_special_regno_p): New static inline.
16117 (save_gprs): Don't tell unwinder when a global register is saved.
16118 (s390_emit_epilogue): Emit needed epilogue unwind info.
16119
90f06248
AO
161202009-06-05 Alexandre Oliva <aoliva@redhat.com>
16121
16122 * dwarf2out.c (deferred_asm_name): New.
16123 (add_name_and_src_coords_attributes): Defer creation of
16124 DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
16125 computed yet.
16126 (move_linkage_attr): New.
16127 (dwarf2out_finish): Revisit deferrals and emit attributes at the
16128 right place.
16129
c10348e5
AO
161302009-06-05 Alexandre Oliva <aoliva@redhat.com>
16131
16132 * tree-nested.c (finalize_nesting_tree_1): Declare the
16133 frame_decl in the binding tree.
16134
6c52e687
CC
161352009-06-04 Cary Coutant <ccoutant@google.com>
16136
16137 * basic-block.h (struct basic_block_def): Add discriminator field.
16138 * dbxout.c (dbxout_source_line): Add new parameter. Change all
16139 callers.
16140 * debug.c (do_nothing_debug_hooks): Add additional entry.
16141 (debug_nothing_int_charstar_int): New function.
c637b0fa 16142 * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
6c52e687
CC
16143 (debug_nothing_int_charstar_int): New declaration.
16144 * dwarf2out.c (dwarf2out_source_line): Add new parameter. Write
16145 discriminator value in .loc directive.
16146 * final.c (last_discriminator): New variable.
16147 (discriminator): New variable.
16148 (final_start_function): Initialize above variables, pass current
16149 discriminator to debug hook.
16150 (notice_source_line): Check for discriminator change.
16151 * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
16152 * sdbout.c (sdbout_source_line): New parameter.
16153 * tree-cfg.c (struct locus_discrim_map): New structure type.
16154 (discriminator_per_locus): New hash table.
16155 (build_gimple_cfg): Allocate and free discriminator hash table.
16156 (make_edges): Call assign_discriminator.
16157 (locus_map_hash): New function.
16158 (locus_map_eq): New function.
16159 (next_discriminator_for_locus): New function.
16160 (same_line_p): New function.
16161 (assign_discriminator): New function.
16162 (make_cond_expr_edges): Call assign_discriminator.
16163 (make_gimple_switch_edges): Likewise.
16164 (first_non_label_stmt): New function.
16165 * vmsdbgout.c (vmsdbgout_source_line): Add new parameter. Change
16166 all callers.
16167 * xcoffout.c (xcoffout_source_line): Add new parameter.
16168
16169 * configure.ac (gcc_cv_as_discriminator): New configury check for
16170 gas support for discriminator.
16171 * configure: Regenerate.
16172 * config.in: Regenerate.
16173
e07e020b
RR
161742009-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16175
16176 * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
16177 val after checking for integers.
16178
72fa3605
UB
161792009-06-04 Uros Bizjak <ubizjak@gmail.com>
16180
16181 * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
16182 X64_REGPARM_MAX.
16183 (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
16184 (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
16185 (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
16186 * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
16187 X64_REGPARM_MAX. Use X86_64_MS_SSE_REGPARM_MAX instead of
16188 X64_SSE_REGPARM_MAX.
16189 * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
16190 X64_SSE_REGPARM_MAX.
16191
bdde878c
AO
161922009-06-04 Alexandre Oliva <aoliva@redhat.com>
16193
16194 * gcc.c (report_times_to_file): New.
16195 (execute): Implement it.
16196 (process_command): Support -time=.
16197 * doc/invoke.texi: Document it.
16198
2ce59df7
AO
161992009-06-04 Alexandre Oliva <aoliva@redhat.com>
16200
16201 * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
16202 that have value exprs.
16203
78bd9046
AO
162042009-06-04 Alexandre Oliva <aoliva@redhat.com>
16205
16206 * dwarf2asm.c (dw2_force_const_mem): Defer creation of
16207 declarations for constants until...
16208 (dw2_output_indirect_constant_1): ... this point.
16209
e63d4106
RE
162102009-06-04 Richard Earnshaw <rearnsha@arm.com>
16211
16212 PR target/10242
16213 * arm.md (arm_addsi3): Don't try to split an add with an
16214 eliminable register until after reload has completed.
16215
6bc7bc14
ILT
162162009-06-03 Ian Lance Taylor <iant@google.com>
16217
16218 * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
16219 * genattrtab.c (write_length_unit_log): Likewise.
16220 * genchecksum.c (dosum): Likewise.
16221 * gengtype.c (write_rtx_next): Likewise.
16222 (finish_root_table, write_roots): Likewise.
16223 * gimple.c (gimple_ops_offset_): Likewise.
16224 * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
16225 * config/arc/arc.c (arc_attribute_table): Likewise.
16226 * config/arm/arm.c (arm_attribute_table): Likewise.
16227 * config/avr/avr.c (avr_attribute_table): Likewise.
16228 * config/crx/crx.c (crx_attribute_table): Likewise.
16229 * config/m32r/m32r.c (m32r_attribute_table): Likewise.
16230 * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
16231 * config/mcore/mcore.c (mcore_attribute_table): Likewise.
16232 * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
16233 * config/sh/sh.c (sh_attribute_table): Likewise.
16234 * config/sparc/sparc.c (sparc_attribute_table): Likewise.
16235 * config/spu/spu.c (spu_attribute_table): Likewise.
16236 * config/v850/v850.c (v850_attribute_table): Likewise.
16237
16238 * config/alpha/alpha.c (vms_attribute_table): Make static.
16239 * config/bfin/bfin.c (bfin_attribute_table): Likewise.
16240 * config/h8300/h8300.c (h8300_attribute_table): Likewise.
16241 * config/mips/mips.c (mips_attribute_table): Likewise.
16242
16243 * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
16244 $(SYSTEM_H).
16245 (cc1-checksum.o): Likewise.
16246
19d892fd
SE
162472009-06-03 Steve Ellcey <sje@cup.hp.com>
16248
16249 * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
16250
679f3354
JJ
162512009-06-03 Jakub Jelinek <jakub@redhat.com>
16252
ff35822b
JJ
16253 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
16254 insn if it is changing sp. Use gen_add3_insn instead of
16255 conditionally gen_addsi3 and gen_adddi3.
16256 (offset_below_red_zone_p): New static inline function.
16257 (rs6000_emit_epilogue): Emit needed epilogue unwind info.
16258 Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
16259 * config/rs6000/ppc-asm.h: Include auto-host.h.
16260 (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
16261 CFI_RESTORE): Define.
16262 * config/rs6000/crtresxgpr.asm: Add unwind info.
16263 * config/rs6000/crtresxfpr.asm: Likewise.
16264 * config/rs6000/crtresgpr.asm: Likewise.
16265 * config/rs6000/crtresfpr.asm: Likewise.
16266 * config/rs6000/crtsavgpr.asm: Likewise.
16267 * config/rs6000/crtsavfpr.asm: Likewise.
16268
dc6707b8
UB
16269 * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
16270 argument of DWARF2_FRAME_REG_OUT macros.
679f3354 16271
2e94c12d
JB
162722009-06-03 Julian Brown <julian@codesourcery.com>
16273
16274 * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
16275 words or less (including TImode) in core registers.
16276
3111cce0
RG
162772009-06-03 Richard Guenther <rguenther@suse.de>
16278
16279 PR middle-end/40328
16280 * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
16281
5e1b50f6
AB
162822009-06-03 Andrey Belevantsev <abel@ispras.ru>
16283
f100a4a8 16284 * statistics.c (statistics_counter_event): Do not record event
5e1b50f6 16285 in pass dump if its number == -1.
f100a4a8 16286 (curr_statistics_hash): Add assert that we never get passes
5e1b50f6
AB
16287 with static number == -1.
16288
6f11d690
RG
162892009-06-03 Richard Guenther <rguenther@suse.de>
16290 Andrey Belevantsev <abel@ispras.ru>
16291
f100a4a8 16292 * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
6f11d690
RG
16293 non-BLKmode arrays addressable.
16294
88961471
MK
162952009-06-03 Maxim Kuvyrkov <maxim@codesourcery.com>
16296
16297 * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
16298 * config/m68k/m68k.h: ... here.
88961471 16299
9961eb45
MJ
163002009-06-03 Martin Jambor <mjambor@suse.cz>
16301
16302 PR tree-optimization/40323
16303 * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
16304 assignment.
16305
2f2c62a0
RG
163062009-06-03 Richard Guenther <rguenther@suse.de>
16307
16308 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
16309 consistently.
16310
d6ced3b7
SZ
163112009-06-03 Shujing Zhao <pearly.zhao@oracle.com>
16312
16313 * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
16314 JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
16315 JUMP_TABLE_DATA_P where applicable.
16316 * config/sh/sh.c: Ditto.
16317 * config/sh/sh.h: Ditto.
16318 * config/sh/sh.md: Ditto.
16319 * config/sh/symbian.c: Ditto.
16320
f3afc8a7
UB
163212009-06-03 Uros Bizjak <ubizjak@gmail.com>
16322
16323 * config/i386/driver-i386.c (describe_cache): Optimize
16324 concatenation of strings. Use snprintf instead of sprintf.
16325 (host_detect_local_cpu): Ditto. Ignore -march and -mtune for native
16326 target when not compiling with GCC.
16327
1964788a
KK
163282009-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
16329
16330 * config/sh/sh.c: Revert last change.
16331 (sh_expand_epilogue): Emit a blockage insn before the frame
16332 pointer adjustment unconditionally.
16333
8633c315
RS
163342009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
16335
16336 * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
16337 * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
16338 * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
16339 * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
16340 to COLLECT_GCC_OPTIONS.
16341
781a1758
RS
163422009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
16343
16344 * collect2.c (target_system_root): New variable.
16345 (main): Handle --sysroot=.
16346 (ignore_library): Strip the sysroot from the library path.
16347
dfb636dc
RS
163482009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
16349
16350 * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
16351 (collect2.o): Depend on collect2-aix.h.
16352 (collect2-aix.o): New rule.
16353 * collect2-aix.h: New file.
16354 * collect2-aix.c: Likewise.
16355 * collect2.c: Include collect2-aix.h. Don't undefine
16356 OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
16357 Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
16358 Use TARGET_AIX_VERSION instead of _AIX51.
16359 * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
16360 * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
16361 * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
16362 * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
16363 * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
16364
51136ae8
RS
163652009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
16366
16367 * collect2.c (ignore_library): Avoid premature post-increment
16368 and null deference.
16369
7f142d33
RS
163702009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
16371
16372 * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
16373 * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
16374 !CROSS_DIRECTORY_STRUCTURE alternative and use it for
16375 CROSS_DIRECTORY_STRUCTURE too.
16376 (LINK_LIBG_SPEC): Likewise.
16377 (LIB_SPEC): Add %R to sysroot paths.
16378 * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
16379 (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
16380 * config/rs6000/aix51.h: As for aix43.h.
16381 * config/rs6000/aix52.h: Likewise.
16382 * config/rs6000/aix53.h: Likewise.
16383 * config/rs6000/aix61.h: Likewise.
16384 * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
16385 to the beginning of sysroot paths.
16386
9e74b7d2
AO
163872009-06-02 Alexandre Oliva <aoliva@redhat.com>
16388
16389 * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
16390 INSN_LISTs that are out of the REG_NOTE range.
16391
a9f6ecee
AO
163922009-06-02 Alexandre Oliva <aoliva@redhat.com>
16393
16394 * loop-unroll.c (struct iv_to_split): Add pointer to next.
16395 (struct var_to_expand): Likewise.
16396 (struct opt_info): Add head and tail for linked lists of the above.
16397 (analyze_insn_to_expand_var): Initialize next.
16398 (analyze_iv_to_split_insn): Likewise.
16399 (analyze_insns_in_loop): Create linked lists.
16400 (allocate_basic_variable): Simplify for use without hash table.
16401 (insert_var_expansion_initialization): Likewise, make it type-safer.
16402 (combine_var_copies_in_loop_exit): Likewise.
16403 (apply_opt_in_copies): Walk lists rather than hash tables.
16404 (release_var_copies): Simplified and inlined by hand into...
16405 (free_opt_info): ... this function.
16406
69596c69
RG
164072009-06-02 Richard Guenther <rguenther@suse.de>
16408
16409 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
16410 for field decls.
16411
fe8a7779
AO
164122009-06-02 Alexandre Oliva <aoliva@redhat.com>
16413
16414 * cfgexpand.c (gimple_expand_cfg): Discard the source location
16415 only for builtins that are not overridden.
16416
1bcca2c5
AO
164172009-06-02 Alexandre Oliva <aoliva@redhat.com>
16418
16419 * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
16420 label string.
16421
8588f797
AO
164222009-06-02 Alexandre Oliva <aoliva@redhat.com>
16423
16424 * df-core.c (df_ref_debug): Honor -fdump-noaddr.
16425
45f39d78
AO
164262009-06-02 Alexandre Oliva <aoliva@redhat.com>
16427
16428 * combine.c (move_deaths): Compare LUIDs within the same BB only.
16429
2aa7c49b
AO
164302009-06-02 Alexandre Oliva <aoliva@redhat.com>
16431
16432 * common.opt (fdump-unnumbered-links): New.
16433 * doc/invoke.texi (-fdump-unnumbered-links): Document it.
16434 * print-rtl.c (flag_dump_unnumbered_links): New.
16435 (print_rtx): Test it.
16436
55b2829b
RE
164372009-06-02 Richard Earnshaw <rearnsha@arm.com>
16438
16439 * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
16440 push/pop multiple to 8-byte alignment.
e63d4106 16441
6c0d7021
JJ
164422009-06-01 Jakub Jelinek <jakub@redhat.com>
16443
0aa34d44
JJ
16444 * config/i386/i386.c (queued_cfa_restores): New static variable.
16445 (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
16446 functions.
16447 (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
16448 (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
16449 Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
16450 Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
16451 note unconditionally.
16452 (ix86_emit_restore_regs_using_mov): Likewise.
16453 (ix86_emit_restore_sse_regs_using_mov): Likewise.
16454 (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
16455 it through to ix86_emit_restore_reg_using_pop.
16456 (ix86_emit_leave): Add RED_OFFSET argument. Call
16457 ix86_add_queued_cfa_restore_notes. Call ix86_add_cfa_restore_note
16458 instead of adding REG_CFA_OFFSET note unconditionally.
16459 (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
16460 the above functions. Call ix86_add_queued_cfa_restore_notes when
16461 needed.
16462
16463 * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
16464 force output of the label even for dwarf2out_do_cfi_asm.
16465 (add_fde_cfi): If -g2 and above and cfi might change CFA,
16466 force creation of CFI label and chain DW_CFA_set_loc jumping to it
16467 for convert_cfa_to_fb_loc_list. Adjust other dwarf2out_cfi_label
16468 caller.
16469 (dwarf2out_stack_adjust, dwarf2out_frame_debug,
16470 dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
16471 dwarf2out_cfi_label callers.
16472 * tree.h (dwarf2out_cfi_label): Adjust prototype.
16473 * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
16474 Adjust dwarf2out_cfi_label callers.
16475 * config/vax/vax.c (vax_output_function_prologue): Likewise.
16476
604a6be9
JJ
16477 * config/i386/i386.h (struct machine_cfa_state,
16478 struct machine_function): Guard with ifndef USED_FOR_TARGET
16479 instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
16480
df0026a7
JJ
16481 PR other/40024
16482 * emutls.c (__emutls_get_address): Change arr->size to mean number
16483 of allocated arr->data entries instead of # of slots + 1.
16484
6c0d7021
JJ
16485 PR middle-end/40316
16486 * recog.c (peep2_reinit_state): New function.
16487 (peephole2_init_state): Use it at the end of a basic block and also
16488 when seeing a RTX_FRAME_RELATED_P insn.
16489
49df2fb8
SE
164902009-06-01 Steve Ellcey <sje@cup.hp.com>
16491
16492 * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
16493 fixuns_truncrfdi2): New.
16494 (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
16495 *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
16496 *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
16497 *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
16498 *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
16499 *recip_approx): Remove.
16500 (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
16501 moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
16502 divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
16503 move to div.md.
16504 * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
16505 setf_exp_rf): New.
16506
67165eb3
ILT
165072009-06-01 Ian Lance Taylor <iant@google.com>
16508
16509 * attribs.c (register_attribute): Use CONST_CAST.
16510 * collect2.c (main): Use CONST_CAST2.
16511 (scan_prog_file): Likewise.
16512 * gcc.c (process_command, main): Likewise.
16513 * toplev.c (toplev_main): Likewise.
16514
16515 * c-typeck.c (handle_warn_cast_qual): New static function,
16516 partially broken out of build_c_cast.
16517 (build_c_cast): Call handle_warn_cast_qual.
16518 * doc/invoke.texi (Warning Options): Document new effect of
16519 -Wcast-qual.
16520
e74fe492
AH
165212009-06-01 Aldy Hernandez <aldyh@redhat.com>
16522
16523 * diagnostic.c (diagnostic_build_prefix): Always print columns.
16524 (diagnostic_report_current_module): Print columns.
16525 * common.opt (flag_show_column): Enable by default.
16526
7eba2d1f
LM
165272009-06-01 Luis Machado <luisgpm@br.ibm.com>
16528
16529 * alias.c (find_base_term): Check for NULL term before returning.
16530
ee88d9aa
MK
165312009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
16532
16533 Revert due to PR40320:
ee88d9aa
MK
16534 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
16535 * calls.c (emit_library_call_value_1): Don't force_operand for move
16536 and push insns.
16537
324c9b02 165382009-06-01 Olivier Hainque <hainque@adacore.com>
40d0d9e4 16539 Eric Botcazou <ebotcazou@adacore.com>
324c9b02
OH
16540
16541 * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
16542 to be processed as a bitfield for constructor output purposes.
16543 * output.h (initializer_constant_valid_for_bitfield_p): Declare
16544 new function.
16545 * varasm.c (oc_local_state): New type, output_constructor
16546 local state to support communication with helpers.
16547 (oc_outer_state): New type, output_constructor outer state of
16548 relevance in recursive calls.
16549 (output_constructor_array_range): New output_constructor helper,
16550 extracted code for an array range element.
16551 (output_constructor_regular_field): New output_constructor helper,
16552 extracted code for an element that is not a bitfield.
16553 (output_constructor_bitfield): New output_constructor helper,
16554 extracted code for a bitfield element. Accept an OUTER state
16555 argument for recursive processing. Recurse on record or array
16556 CONSTRUCTOR values, possibly past noop conversions.
62295314 16557 (initializer_constant_valid_for_bitfield_p): New predicate. Whether
324c9b02
OH
16558 VALUE is a valid constant-valued expression for use in a static
16559 bit-field initializer.
62295314
OH
16560 (output_constructor): Rework to use helpers. Accept and honor an
16561 OUTER state argument for recursive calls. Return total size. Be
324c9b02
OH
16562 prepared for nested constructors initializing bitfields.
16563 (output_constant): Feed OUTER in calls to output_constructor.
16564
0980d7fe
MK
165652009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
16566
16567 * calls.c (emit_library_call_value_1): Don't force_operand for move
16568 and push insns.
16569
29661412
NC
165702009-06-01 Nick Clifton <nickc@redhat.com>
16571
16572 * doc/invoke.texi (IA-64 Options): Fix typo.
16573
e9dbe7bb
IR
165742009-06-01 Ira Rosen <irar@il.ibm.com>
16575
16576 PR tree-optimization/39129
7c8b1a77 16577 * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
e9dbe7bb 16578 printed message.
7c8b1a77 16579 (vect_do_peeling_for_loop_bound): Use
e9dbe7bb
IR
16580 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
16581 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
16582 (vect_loop_versioning): Likewise.
16583 (vect_create_cond_for_alias_checks): Fix indentation.
7c8b1a77 16584 * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
e9dbe7bb
IR
16585 macros.
16586 (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
16587 (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
7c8b1a77 16588 * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
e9dbe7bb 16589 "control flow in loop".
7c8b1a77 16590 (vect_estimate_min_profitable_iters): Use
e9dbe7bb
IR
16591 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
16592 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
16593 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
16594 (vect_create_data_ref_ptr): Don't mention array dimension in printing.
7c8b1a77
UB
16595 * tree-vect-stmts.c (vectorizable_store): Replace the check that the
16596 statement belongs to a group of strided accesses with the exact code
e9dbe7bb
IR
16597 check.
16598 (vectorizable_load): Likewise.
16599 * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
16600 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
16601
5ac69a80
GP
166022009-06-01 Gerald Pfeifer <gerald@pfeifer.com>
16603
16604 * config/freebsd-stdint.h: New file.
16605 * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
16606 Add freebsd-stdint.h to tm_file.
16607
54b2b460
RE
166082009-06-01 Richard Earnshaw <rearnsha@arm.com>
16609
16610 * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
16611 (thumb2_extendhidi2): Likewise.
16612
a7ca77cf
ILT
166132009-05-31 Ian Lance Taylor <iant@google.com>
16614
f3afc8a7 16615 * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
c50d84e3
ILT
16616
166172009-05-31 Ian Lance Taylor <iant@google.com>
16618
f3afc8a7 16619 * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
a7ca77cf
ILT
16620 (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
16621 (ipa-reference.o): Depend upon gt-ipa-reference.h.
16622
1aec401e
JM
166232009-05-31 Jason Merrill <jason@redhat.com>
16624
16625 * tree-pretty-print.c (print_call_name): Take the callee, not the
f3afc8a7 16626 call itself. Make non-static. Use dump_function_name for functions.
1aec401e
JM
16627 (dump_generic_node): Adjust.
16628 * diagnostic.h: Declare print_call_name.
16629 * gimple-pretty-print.c (dump_gimple_call): Use it.
16630
ed7910bb
KK
166312009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
16632
16633 * config/sh/sh.md (ashldi3_std): New define_expand.
16634 (ashldi3): Use it.
16635
47ea8d4e
KK
166362009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
16637
16638 PR target/40313
16639 * config/sh/sh.c: Include debug.h.
16640 (sh_expand_epilogue): Emit a blockage insn before the frame
16641 pointer adjustment also when dwarf2out_do_frame returns true.
16642
405e8b49
RE
166432009-05-31 Richard Earnshaw <rearnsha@arm.com>
16644
16645 * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
16646 (thumb2_extendqidi2): New pattern.
16647
71ece343
IR
166482009-05-31 Ira Rosen <irar@il.ibm.com>
16649
16650 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
16651 mark phis for renaming.
16652 * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
16653 (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
16654 Call mark_sym_for_renaming.
16655 * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
f3afc8a7
UB
16656 * tree-vect-loop.c (vect_transform_loop): Remove
16657 vect_memsyms_to_rename initialization and a call to
16658 mark_set_for_renaming.
71ece343 16659
b3041944
JJ
166602009-05-31 Jakub Jelinek <jakub@redhat.com>
16661
16662 PR middle-end/40304
16663 * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
16664 frame related even if !set_cfa && style < 0.
16665
a1bda0d7
KT
166662009-05-30 Kai Tietz <kai.tietz@onevision.com>
16667
16668 * config/i386/mingw-tls.c: New file.
f3afc8a7
UB
16669 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
16670 * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
16671 defining _WIN32 but not __CYGWIN__.
a1bda0d7 16672
acd26225
KG
166732009-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16674
16675 * configure.ac: Add MPC support.
f100a4a8
UB
16676
16677 * config.in, configure: Regenerate.
acd26225 16678
cd9c1ca8
RH
166792009-05-29 Richard Henderson <rth@redhat.com>
16680
16681 * cfgcleanup.c (try_crossjump_to_edge): Only skip past
16682 NOTE_INSN_BASIC_BLOCK.
16683 * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
16684 Duplicate NOTE_INSN_EPILOGUE_BEG notes.
16685 * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
16686 to be deleted.
16687 * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
16688 add in_use field.
16689 (add_cfi): Disable check redefining cfa away from drap.
16690 (lookup_cfa_1): Add remember argument; handle remember/restore.
16691 (lookup_cfa): Pass remember argument.
16692 (cfa_remember): New.
16693 (compute_barrier_args_size_1): Remove sibcall check.
16694 (dwarf2out_frame_debug_def_cfa): New.
16695 (dwarf2out_frame_debug_adjust_cfa): New.
16696 (dwarf2out_frame_debug_cfa_offset): New.
16697 (dwarf2out_frame_debug_cfa_register): New.
16698 (dwarf2out_frame_debug_cfa_restore): New.
16699 (dwarf2out_frame_debug): Handle REG_CFA_* notes.
16700 (dwarf2out_begin_epilogue): New.
16701 (dwarf2out_frame_debug_restore_state): New.
16702 (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
16703 DW_CFA_restore_state.
16704 (output_cfi_directive): Likewise.
16705 (convert_cfa_to_fb_loc_list): Likewise.
16706 (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
16707 * dwarf2out.h: Update.
16708 * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
16709 (copy_insn_1): Early out for null.
16710 * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
16711 and dwarf2out_frame_debug_restore_state.
16712 * function.c (prologue, epilogue, sibcall_epilogue): Remove.
16713 (prologue_insn_hash, epilogue_insn_hash): New.
16714 (free_after_compilation): Adjust freeing accordingly.
16715 (record_insns): Create hash table if needed; push insns into
16716 hash instead of array.
16717 (maybe_copy_epilogue_insn): New.
16718 (contains): Search hash table instead of array.
16719 (sibcall_epilogue_contains): Remove.
16720 (thread_prologue_and_epilogue_insns): Split eh_return insns
16721 and mark them as epilogues.
16722 (reposition_prologue_and_epilogue_notes): Rewrite epilogue
16723 scanning in terms of basic blocks.
16724 * insn-notes.def (CFA_RESTORE_STATE): New.
16725 * jump.c (returnjump_p_1): Accept EH_RETURN.
16726 (eh_returnjump_p_1, eh_returnjump_p): New.
16727 * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
16728 CFA_REGISTER, CFA_RESTORE): New.
16729 * rtl.def (EH_RETURN): New.
16730 * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
16731
16732 * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
16733 (eh_return_internal): Use eh_return rtx; split w/ epilogue.
16734
16735 * config/i386/i386.c (gen_push): Update cfa state.
16736 (pro_epilogue_adjust_stack): Add set_cfa argument. When true,
16737 add a CFA_ADJUST_CFA note.
16738 (ix86_dwarf_handle_frame_unspec): Remove.
16739 (ix86_expand_prologue): Update cfa state.
16740 (ix86_emit_restore_reg_using_pop): New.
16741 (ix86_emit_restore_regs_using_pop): New.
16742 (ix86_emit_leave): New.
16743 (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
16744 (ix86_expand_epilogue): Add notes for unwinding the epilogue.
16745 * config/i386/i386.h (struct machine_cfa_state): New.
16746 (ix86_cfa_state): New.
16747 * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
16748 (eh_return_internal): Merge from eh_return_<mode>,
16749 use eh_return rtx, split w/ epilogue.
16750
72b5577d
ILT
167512009-05-29 Ian Lance Taylor <iant@google.com>
16752
16753 * builtins.c (validate_gimple_arglist): Don't use va_arg with
16754 enum type.
16755 * calls.c (emit_library_call_value_1): Likewise.
16756
16757 * c-typeck.c (c_build_va_arg): New function.
16758 * c-tree.h (c_build_va_arg): Declare.
16759 * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
16760 instead of build_va_arg.
16761
7a2faca1
EB
167622009-05-29 Eric Botcazou <ebotcazou@adacore.com>
16763
16764 * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
16765 (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
16766 (ptr_difference_cost): Use affine combinations to compute it.
16767 (difference_cost): Likewise.
16768 (get_computation_cost_at): Compute more accurate cost for addresses
16769 if the ratio is a multiplier allowed in addresses.
16770 For non-addresses, consider that an additional offset or symbol is
16771 added only once.
16772
725fd454
JJ
167732009-05-29 Jakub Jelinek <jakub@redhat.com>
16774
a0987204
JJ
16775 * config/i386/i386.c (ix86_decompose_address): Avoid useless
16776 0 displacement. Add 0 displacement if base is %[er]bp or %r13.
16777
725fd454
JJ
16778 * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
16779 TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
16780 (prefix_rex): For UNIT_MMX don't imply the prefix by default
16781 if MODE_DI.
16782 (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
16783 to 1 for TYPE_SSE{IADD1,CVT1}.
16784 (prefix_vex_imm8): Removed.
16785 (length_vex): Only pass 1 as second argument to
16786 ix86_attr_length_vex_default if prefix_extra is 0.
16787 (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
16788 (length): For prefix vex computation use length_immediate
16789 attribute instead of prefix_vex_imm8.
16790 (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
16791 addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
16792 *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
16793 *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
16794 (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
16795 *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
16796 a space in between the operands.
16797 (*anddi_1_rex64, *andsi_1): Likewise. Override prefix_rex to 1
16798 if one operand is 0xff and the other one si, di, bp or sp.
16799 (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
16800 other one si, di, bp or sp.
16801 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
16802 (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
16803 type and mode attributes.
16804 (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
16805 (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
16806 prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
16807 (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
16808 prefix_data16 attribute iff MODE_DF.
16809 (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
16810 (fix_trunc<mode>di_sse): Set prefix_rex attribute.
16811 (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
16812 constm128_operand in length_immediate computation.
16813 (*addhi_4): Likewise. Fix mode attribute to MODE_HI.
16814 (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
16815 (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
16816 length_immediate attribute to 1.
16817 (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
16818 (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
16819 for certain alternatives.
16820 (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
16821 prefix_data16 attribute if MODE_V1DF.
16822 (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
16823 length_immediate to 1.
16824 (set_got_rex64, set_rip_rex64): Remove length attribute, set
16825 length_address to 4, set mode attribute to MODE_DI.
16826 (set_got_offset_rex64): Likewise. Set length_immediate to 0.
16827 (fxam<mode>2_i387): Set length attribute to 4.
16828 (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
16829 *prefetch_3dnow_rex): Override length_address attribute.
16830 (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
16831 attributes.
16832 * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
16833 (constm128_operand): Removed.
16834 * config/i386/i386.c (memory_address_length): For
16835 disp && !index && !base in 64-bit mode account for SIB byte if
16836 print_operand_address can't optimize disp32 into disp32(%rip)
16837 and UNSPEC doesn't imply (%rip) addressing. Add 1 to length
16838 for fs: or gs: segment.
16839 (ix86_attr_length_immediate_default): When checking if shortform
16840 is possible, truncate immediate to the length of the non-shortened
16841 immediate.
16842 (ix86_attr_length_address_default): Ignore MEM_P operands
16843 with X constraint.
16844 (ix86_attr_length_vex_default): Only check for DImode on
16845 GENERAL_REG_P operands.
16846 * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
16847 prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
16848 (sse_cvttps2pi): Clear prefix_rep attribute.
16849 (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
16850 attribute.
16851 (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
16852 (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
16853 *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
16854 iff operand 2 is const_int_operand.
16855 (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
16856 sse2_shufpd_<mode>): Set length_immediate attribute to 1.
16857 (sse2_pshufd_1): Likewise. Set prefix attribute to maybe_vex
16858 instead of vex.
16859 (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
16860 prefix_data16.
16861 (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
16862 prefix_data16 attribute for movlpd and movhpd instructions.
16863 (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise. Override
16864 length_immediate for shufpd instruction.
16865 (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
16866 (avx_cmpp<avxmodesuffixf2c><mode>3,
16867 avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
16868 <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
16869 avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
f3afc8a7 16870 *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
725fd454
JJ
16871 (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
16872 (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
16873 (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
16874 prefix_data16 attribute for the first alternative to 1.
16875 (*avx_loadlps): Override length_immediate for the first alternative.
16876 (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
16877 attributes for second alternative.
16878 (*vec_concatv2sf_sse4_1): Override length_immediate and
16879 prefix_data16 attributes for second alternative.
16880 (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
16881 vec_extract_hi_<mode>, vec_extract_lo_v16hi,
16882 vec_extract_hi_v16hi, vec_extract_lo_v32qi,
16883 vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
16884 (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
16885 prefix_data16 and length_immediate to 1.
16886 (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
16887 to 1.
16888 (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
f3afc8a7 16889 prefix_extra attribute for variants that don't have 0f prefix alone.
725fd454
JJ
16890 (*avx_pinsr<ssevecsize>): Likewise. Set length_immediate to 1.
16891 (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
16892 *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
16893 *sse4_1_pextrd): Set length_immediate to 1.
16894 (*sse4_1_pinsrd): Likewise. Set prefix_extra to 1.
16895 (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
16896 to 1.
16897 (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
16898 *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
16899 length_immediate to 1 for second alternative.
16900 (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
16901 prefix_extra and length_immediate attributes for the first
16902 alternative.
16903 (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
16904 first alternative.
16905 (*vec_concatv2di_rex64_sse4_1): Likewise. Override prefix_rex
16906 to 1 for the first and third alternative.
16907 (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
16908 alternative.
16909 (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
16910 attribute.
16911 (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
16912 attribute to 0.
16913 (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
16914 *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
16915 *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
16916 *avx_psign<mode>3): Set prefix_extra attribute to 1.
16917 (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
16918 ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
16919 ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
16920 ssse3_psign<mode>3): Override prefix_rex attribute.
f3afc8a7 16921 (*avx_palignrti): Override prefix_extra and length_immediate to 1.
725fd454
JJ
16922 (ssse3_palignrti): Override length_immediate to 1.
16923 (ssse3_palignrdi): Override length_immediate to 1, override
16924 prefix_rex attribute.
f3afc8a7 16925 (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
725fd454
JJ
16926 (sse4a_extrqi): Override length_immediate to 2.
16927 (sse4a_insertqi): Likewise. Override prefix_data16 to 0.
16928 (sse4a_insertq): Override prefix_data16 to 0.
16929 (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
16930 avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
16931 avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
16932 *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
16933 avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
16934 and length_immediate to 1.
16935 (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
16936 sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
16937 sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
16938 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
16939 and length_immediate to 1.
16940 (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
16941 (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
16942 (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
16943 avx_ptest256): Override prefix_extra to 1.
16944 (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
16945 Override prefix_data16 and length_immediate to 1.
16946 (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
16947 sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
16948 sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
16949 sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
16950 prefix_data16 to 0 and prefix_extra to 2.
16951 (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
16952 (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
16953 attribute.
16954 (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
16955 sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
16956 Override prefix_data16 and prefix_rep to 0, length_immediate to 1
16957 and prefix_extra to 2.
16958 (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
16959 prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
16960 (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
16961 avx_vpermilvar<mode>3,
16962 avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
16963 avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
16964 avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
16965 avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
16966 Override prefix_extra to 1.
16967 (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
16968 (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
16969 vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
16970 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
16971 prefix_extra and length_immediate to 1.
16972 (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
16973 modrm to 0.
16974 (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
16975 to 1 for the first alternative.
16976 * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
16977 prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
16978 cases.
16979 (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
16980 *movv2sf_internal_avx, *movv2sf_internal): Override
16981 prefix_rep attribute for certain alternatives.
16982 (*mov<mode>_internal): Override prefix_rep or prefix_data16
16983 attributes for certain alternatives.
16984 (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
16985 attributes for certain alternatives.
16986 (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
16987 *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
16988 mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
16989 mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
16990 *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
16991 mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
16992 mmx_pswapdv2si2): Set prefix_extra attribute to 1.
16993 (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
16994 length_immediate to 1 if operand 2 is const_int_operand.
16995 (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
f3afc8a7 16996 *vec_extractv2si_1): Set length_immediate attribute to 1.
725fd454
JJ
16997 (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
16998 using old 3DNOW insn rather than SSE/3DNOW_A.
16999 (mmx_emms, mmx_femms): Clear modrm attribute.
17000
0674b9d0
MJ
170012009-05-29 Martin Jambor <mjambor@suse.cz>
17002
17003 * tree-sra.c: New implementation of SRA.
17004
17005 * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
17006 (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
17007 (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
17008 * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
17009 (SRA_MAX_STRUCTURE_COUNT): Removed.
17010 (SRA_FIELD_STRUCTURE_RATIO): Removed.
17011 * doc/invoke.texi (sra-max-structure-size): Removed.
17012 (sra-field-structure-ratio): Removed.
17013
616f21df
JJ
170142009-05-29 Jakub Jelinek <jakub@redhat.com>
17015
17016 PR middle-end/40291
17017 * builtins.c (expand_builtin_memcmp): Convert len to sizetype
17018 before expansion.
17019
da7ba240
AB
170202009-05-29 Andrey Belevantsev <abel@ispras.ru>
17021
17022 PR rtl-optimization/40101
17023 * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
17024 seqno. Adjust comment.
f100a4a8 17025 * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
da7ba240
AB
17026 inserting bookkeeping before a jump, the jump is not scheduled.
17027 When no positive seqno found, provide a value. Add comment.
17028
71dcd609
RG
170292009-05-29 Richard Guenther <rguenther@suse.de>
17030
17031 * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
17032 short-cutting on the first component.
17033
a900ae6b
JJ
170342009-05-29 Jakub Jelinek <jakub@redhat.com>
17035
17036 PR middle-end/39958
17037 * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
17038 for trees other than decls/types.
17039
821bb7f8
RG
170402009-05-29 Richard Guenther <rguenther@suse.de>
17041
17042 * tree-ssa-operands.c (get_expr_operands): Do not handle
17043 INDIRECT_REFs in the handled-component case. Remove
17044 unused get_ref_base_and_extent case.
17045 * tree-dfa.c (get_ref_base_and_extent): Avoid calling
17046 tree_low_cst and host_integerp where possible.
17047 * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
17048 codes for equivalence.
17049 * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
17050
e997fb9c
DB
170512009-05-29 David Billinghurst <billingd@gcc.gnu.org>
17052
17053 * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
f100a4a8 17054 to tmake_file for i[34567]86-*-cygwin*.
e997fb9c 17055
58195b74
JJ
170562009-05-29 Jakub Jelinek <jakub@redhat.com>
17057
17058 PR target/40017
17059 * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
17060 (altivec_categorize_keyword, init_vector_keywords,
17061 rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
17062 similar to bool.
17063
055df276
KT
170642009-05-29 Kai Tietz <kai.tietz@onevision.com>
17065
17066 * tree.c (handle_dll_attribute): Check if node is
17067 of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
17068
f5939ef3
RE
170692009-05-29 Richard Earnshaw <rearnsha@arm.com>
17070
17071 * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
17072 component.
17073 (thumb2_zero_extendqidi2): Likewise.
17074
c185de40
KK
170752009-05-28 Kaz Kojima <kkojima@gcc.gnu.org>
17076
17077 * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
17078 instead of gen_movrt.
17079 * config/sh/sh.md (movrt): Remove.
17080
bf3c6caf
SE
170812009-05-28 Steve Ellcey <sje@cup.hp.com>
17082
f3afc8a7 17083 * doc/invoke.texi (IA-64 Options):
f100a4a8 17084 Add -msdata, -mfused-madd, -mno-inline-float-divide,
bf3c6caf
SE
17085 -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
17086 -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
17087 -msched-prefer-non-control-spec-insns,
17088 -msched-stop-bits-after-every-cycle,
17089 -msched-count-spec-in-critical-path,
17090 -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
f3afc8a7 17091 -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
bf3c6caf
SE
17092 Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
17093 and -msched-spec-verbose.
17094
8a66e987
JM
170952009-05-28 Joseph Myers <joseph@codesourcery.com>
17096
f3afc8a7 17097 * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
8a66e987
JM
17098 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
17099 error if used.
17100 * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
17101
b45d2719
RG
171022009-05-28 Richard Guenther <rguenther@suse.de>
17103
17104 * tree-ssa-alias.c (ao_ref_init): New function.
17105 (ao_ref_base): Likewise.
17106 (ao_ref_base_alias_set): Likewise.
17107 (ao_ref_alias_set): Likewise.
17108 (refs_may_alias_p_1): Change signature.
17109 (refs_may_alias_p): Adjust.
17110 (refs_anti_dependent_p): Likewise.
17111 (refs_output_dependent_p): Likewise.
17112 (call_may_clobber_ref_p_1): Change signature.
17113 (call_may_clobber_ref_p): Adjust.
17114 (stmt_may_clobber_ref_p_1): New function split out from ...
17115 (stmt_may_clobber_ref_p): ... here.
17116 (maybe_skip_until): Adjust signature.
17117 (get_continuation_for_phi): Likewise.
17118 (walk_non_aliased_vuses): Likewise.
17119 * tree-ssa-alias.h (struct ao_ref_s): New structure type.
17120 (ao_ref_init): Declare.
17121 (ao_ref_base): Likewise.
17122 (ao_ref_alias_set): Likewise.
17123 (stmt_may_clobber_ref_p_1): Likewise.
17124 (walk_non_aliased_vuses): Adjust.
17125 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
17126 (get_ref_from_reference_ops): remove.
17127 (vn_reference_lookup_2): Adjust signature.
17128 (vn_reference_lookup_3): Do not re-build trees. Handle unions.
f3afc8a7 17129 (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
b45d2719
RG
17130 (vn_reference_lookup): Adjust.
17131 (vn_reference_insert): Likewise.
17132 (vn_reference_insert_pieces): Adjust signature.
17133 (visit_reference_op_call): Adjust.
17134 * tree-ssa-pre.c (get_expr_type): Simplify.
17135 (phi_translate_1): Adjust.
17136 (compute_avail): Likewise.
17137 (translate_vuse_through_block): Do not re-build trees.
17138 (value_dies_in_block_x): Likewise.
17139 * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
17140 fields.
17141 (vn_reference_lookup_pieces): Adjust declaration.
17142 (vn_reference_insert_pieces): Likewise.
17143
554223b6
BK
171442009-05-28 Benjamin Kosnik <bkoz@redhat.com>
17145
17146 * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
17147 with checking disabled.
17148
233215fe
DK
171492009-05-28 Dave Korn <dave.korn.cygwin@gmail.com>
17150
17151 PR target/37216
17152
17153 * configure.ac (HAVE_GAS_ALIGNED_COMM): Add autoconf test and
17154 macro definition for support of three-operand format aligned
17155 .comm directive in assembler on cygwin/pe/mingw target OS.
17156 * configure: Regenerate.
17157 * config.h: Regenerate.
17158
17159 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Use
17160 aligned form of .comm directive if -mpe-aligned-commons is in effect.
17161 * config/i386/cygming.opt (-mpe-aligned-commons): Add new option.
17162
17163 * doc/invoke.texi (-mpe-aligned-commons): Document new target option.
17164 * doc/tm.texi (ASM_OUTPUT_COMMON): Document zero size commons.
17165
24adb18f
IR
171662009-05-28 Ira Rosen <irar@il.ibm.com>
17167
17168 PR tree-optimization/40254
17169 * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
17170 in analysis of basic blocks.
17171
2c5bfdf7
AN
171722009-05-28 Adam Nemet <anemet@caviumnetworks.com>
17173
17174 PR middle-end/33699
f3afc8a7 17175 * target.h (struct gcc_target): Fix indentation. Add const_anchor.
2c5bfdf7
AN
17176 * target-def.h (TARGET_CONST_ANCHOR): New macro.
17177 (TARGET_INITIALIZER): Use it.
17178 * cse.c (CHEAPER): Move it up to the other macros.
17179 (insert): Rename this ...
17180 (insert_with_costs): ... to this. Add cost parameters. Update
17181 function comment.
17182 (insert): New function. Call insert_with_costs.
17183 (compute_const_anchors, insert_const_anchor, insert_const_anchors,
17184 find_reg_offset_for_const, try_const_anchors): New functions.
17185 (cse_insn): Call try_const_anchors. Adjust cost of src_related
17186 when using a const-anchor. Call insert_const_anchors.
f3afc8a7 17187 * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
2c5bfdf7
AN
17188 * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
17189
9e6aced0
AO
171902009-05-28 Alexandre Oliva <aoliva@redhat.com>
17191
17192 * tree-inline.c (remap_decls): Enable nonlocalized variables
17193 when not optimizing.
17194
89fbbe4e
AO
171952009-05-28 Alexandre Oliva <aoliva@redhat.com>
17196
17197 * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
17198 Simplify other tests involving optimize.
17199
e455776a
TT
172002009-05-27 Tom Tromey <tromey@redhat.com>
17201
17202 * unwind-dw2.c (_Unwind_DebugHook): New function.
17203 (uw_install_context): Call _Unwind_DebugHook.
17204
cea32bca
TT
172052009-05-27 Tom Tromey <tromey@redhat.com>
17206
17207 * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
17208
c607156f
ILT
172092009-05-27 Ian Lance Taylor <iant@google.com>
17210
17211 * Makefile.in (LINKER, LINKER_FLAGS): Define.
17212 (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
17213 (ALL_LINKERFLAGS): Define.
17214 (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
17215 (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
17216 (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
17217 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
17218 (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
17219 $(LINKER_FOR_BUILD).
17220 (build/gcov-iov$(build_exeext)): Likewise.
17221
ec0a1343
JB
172222009-05-27 Julian Brown <julian@codesourcery.com>
17223
17224 * gcse.c (target.h): Include.
17225 (can_assign_to_reg_without_clobbers_p): Check that the target allows
17226 copy of argument to a pseudo register.
17227
ac80ba07
DN
172282009-05-27 Diego Novillo <dnovillo@google.com>
17229
17230 * tree-ssa-live.c (dump_scope_block): Document arguments.
17231 (dump_scope_blocks): Document.
17232 (debug_scope_blocks): New.
17233 * tree-flow.h (debug_scope_blocks): Declare.
17234
d1803a17
DC
172352009-05-21 Denis Chertykov <denisc@overta.ru>
17236
f3afc8a7 17237 * doc/contrib.texi (Contributors): Add myself to the list.
d1803a17 17238
51fb7760 172392009-05-27 Olivier Hainque <hainque@adacore.com>
ceadb728
OH
17240
17241 * expr.c (target_align): New function. Alignment the TARGET of an
17242 assignment may be assume to have.
17243 (highest_pow2_factor_for_target): Use it instead of relying on
17244 immediate tree attributes of TARGET, not necessarily honored when
17245 intermediate bitfields are involved.
f100a4a8 17246
634fa334
L
172472009-05-27 H.J. Lu <hongjiu.lu@intel.com>
17248
17249 PR target/40266
17250 * config/i386/driver-i386.c (host_detect_local_cpu): Support
17251 AVX, SSE4, AES, PCLMUL and POPCNT.
17252
65332587
DN
172532009-05-27 Diego Novillo <dnovillo@google.com>
17254
17255 * tree-pretty-print.c (dump_location): New.
17256 (dump_generic_node): Call it.
17257 Factor code to handle BLOCK nodes ...
17258 (dump_block_node): ... here.
17259
3e17e31d
RAE
172602009-05-27 Rafael Avila de Espindola <espindola@google.com>
17261
f3afc8a7
UB
17262 * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
17263 with it.
3e17e31d
RAE
17264 * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
17265 included.
17266 * gcc-plugin.h: Include config.h and system.h.
17267 (IN_GCC): Define if not defined.
17268
5e370570
HPN
172692009-05-27 Hans-Peter Nilsson <hp@axis.com>
17270
17271 PR middle-end/40249
17272 * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
17273 with -fno-inline.
17274
d000f0d9
SZ
172752009-05-27 Shujing Zhao <pearly.zhao@oracle.com>
17276
17277 * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
17278 applicable.
17279 * config/m32r/m32r.h: Ditto.
17280 * config/m32r/m32r.md: Ditto.
17281 * config/m32r/predicates.md: Ditto.
17282
82f331ff
AO
172832009-05-27 Alexandre Oliva <aoliva@redhat.com>
17284
17285 * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
17286
ae2392a9
BS
172872009-05-26 Basile Starynkevitch <basile@starynkevitch.net>
17288
17289 * doc/plugins.texi
17290 (Loading plugins): typo.
17291 (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
17292 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
17293 (Interacting with the GCC Garbage Collector): Added new section.
17294 (Giving information about a plugin): Added new section for
17295 PLUGIN_INFO.
ae2392a9
BS
17296 * ggc.h (ggc_register_root_tab): Added declaration.
17297 * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
17298 (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
17299 (register_callback): Improved comment in declaration.
f3afc8a7
UB
17300 * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
17301 (extra_root_vec) Added static variable for dynamic roots registration.
ae2392a9
BS
17302 (ggc_register_root_tab) Added new routine.
17303 (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
17304 PLUGIN_GGC_MARKING event.
17305 * ggc-zone.c: Include plugin.h.
17306 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
17307 * ggc-page.c: Include plugin.h.
17308 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
17309 * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
17310 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
17311 (register_callback): check lack of callbacks for
17312 pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
17313 PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
17314 (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
17315 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
17316 * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
17317 dependency on plugin.h.
17318 (plugin.o): Added dependency on ggc.h...
17319
f0cfd3a8
RG
173202009-05-26 Richard Guenther <rguenther@suse.de>
17321
17322 PR middle-end/40248
17323 Revert
17324 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
17325 with mismatched comparison modes.
17326
17327 * expr.c (expand_expr_real_1): Expand the operand of a
17328 VIEW_CONVERT_EXPR in its natural mode.
17329
7980bfb8
ILT
173302009-05-26 Ian Lance Taylor <iant@google.com>
17331
17332 * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
17333 (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
17334 (ALL_COMPILERFLAGS): Define.
17335 (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
17336 (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
17337 (collect2$(exeext), collect2.o): Likewise.
17338 (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
17339 (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
17340 ($(out_object_file), mips-tfile, mips-tdump): Likewise.
17341 (libbackend.o, intl.o, cppdefault.o): Likewise.
17342 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
17343 (build/%.o): Use $(COMPILER_FOR_BUILD).
17344 (build/gen%$(build_exeext)): Likewise.
17345 (build/gcov-iov$(build_exeext)): LIkewise.
17346 * config/t-darwin (darwin.o): Use $(COMPILER).
17347 (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
17348 * config/t-sol2 (sol2-c.o): Likewise.
17349 (sol2.o): Likewise.
17350 * config/t-vxworks (vxworks.o): Likewise.
17351 * config/x-darwin (host-darwin.o): Likewise.
17352 * config/x-hpux (host-hpux.o): Likewise.
17353 * config/x-linux (host-linux.o): Likewise.
17354 * config/x-solaris (host-solaris.o): Likewise.
17355 * config/alpha/x-alpha (driver-alpha.o): Likewise.
17356 * config/arm/t-arm (arm-c.o): Likewise.
17357 * config/arm/t-pe (pe.o): Likewise.
17358 * config/arm/t-wince-pe (pe.o): Likewise.
17359 * config/i386/t-cygming (winnt.o): Likewise.
17360 (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
17361 * config/i386/t-cygwin (cygwin1.o): Likewise.
17362 (cygwin2.o): Likewise.
17363 * config/i386/t-i386 (i386-c.o): Likewise.
17364 * config/i386/t-interix (winnt.o): Likewise.
17365 * config/i386/t-netware (netware.o): Likewise.
17366 * config/i386/t-nwld (nwld.o): Likewise.
17367 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
17368 * config/i386/x-i386 (driver-i386.o): Likewise.
17369 * config/i386/x-cygwin (host-cygwin.o): Likewise.
17370 * config/i386/x-mingw32 (host-mingw32.o): Likewise.
17371 * config/ia64/t-ia64 (ia64-c.o): Likewise.
17372 * config/m32c/t-m32c (m32c-pragma.o): Likewise.
17373 * config/mips/x-native (driver-native.o): Likewise.
17374 * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
17375 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
17376 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
17377 * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
17378 * config/score/t-score-elf (score7.o): Likewise.
17379 (score3.o): Likewise.
17380 * config/sh/t-sh (sh-c.o): Likewise.
17381 * config/sh/t-symbian (sh-c.o): Likewise.
17382 (symbian.o): Likewise.
17383 * config/spu/t-spu-elf (spu-c.o): Likewise.
17384 * config/v850/t-v850 (v850-c.o): Likewise.
17385 * config/v850/t-v850e (v850-c.o): Likewise.
17386
23977d3c
RG
173872009-05-26 Richard Guenther <rguenther@suse.de>
17388
17389 PR tree-optimization/40122
17390 * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
17391 VECTOR_CSTs if possible.
17392 (fold_gimple_assign): Likewise.
17393
3d62b895
RG
173942009-05-26 Richard Guenther <rguenther@suse.de>
17395
17396 PR middle-end/40252
17397 * fold-const.c (fold_binary): Use the correct types for building
17398 rotates.
17399
12346147
RG
174002009-05-26 Richard Guenther <rguenther@suse.de>
17401
17402 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
17403 redundant calls to merge_alias_info.
17404 (bump_vector_ptr): Likewise.
17405 * tree-ssa-copy.c (merge_alias_info): Remove.
17406 (replace_exp_1): Remove call to merge_alias_info.
17407 (propagate_tree_value): Likewise.
17408 (fini_copy_prop): Propagate points-to info.
17409 * tree-flow.h (merge_alias_info): Remove.
17410
807d5e6f
HS
174112009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
17412
17413 * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
17414
85057983
JH
174152009-05-25 Jan Hubicka <jh@suse.cz>
17416
17417 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
17418 * cgraph.h (struct inline_summary): New filed self_wize,
17419 size_inlining_benefit, self_time and time_inlining_benefit.
17420 (struct cgraph_global_info): Replace insns by time ans size fields.
17421 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
17422 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
17423 (ipcp_update_callgraph): Do not touch function bodies.
17424 * ipa-inline.c: Include except.h
17425 (MAX_TIME): New constant.
17426 (overall_insns): Remove.
17427 (leaf_node_p): New.
17428 (overall_size, max_benefit): New static variables.
17429 (cgraph_estimate_time_after_inlining): New function.
17430 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
17431 (cgraph_clone_inlined_nodes): Update size.
17432 (cgraph_mark_inline_edge): Update size.
17433 (cgraph_estimate_growth): Use size info.
17434 (cgraph_check_inline_limits): Check size.
17435 (cgraph_default_inline_p): Likewise.
17436 (cgraph_edge_badness): Compute badness based on benefit and size cost.
17437 (cgraph_decide_recursive_inlining): Check size.
f3afc8a7
UB
17438 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
17439 and times.
85057983
JH
17440 (cgraph_decide_inlining): Likewise.
17441 (cgraph_decide_inlining_incrementally): Likewise; honor
17442 PARAM_EARLY_INLINING_INSNS.
17443 (likely_eliminated_by_inlining_p): New predicate.
17444 (estimate_function_body_sizes): New function.
17445 (compute_inline_parameters): Use it.
17446 * except.c (must_not_throw_labels): New function.
17447 * except.h (must_not_throw_labels): Declare.
17448 * tree-inline.c (init_inline_once): Kill inlining_weigths
17449 * tree-ssa-structalias.c: Avoid uninitialized warning.
17450 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
17451 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
17452 (PARAM_INLINE_CALL_COST): Remove.
17453 (PARAM_EARLY_INLINING_INSNS): New.
17454
01df5c8a
RG
174552009-05-25 Richard Guenther <rguenther@suse.de>
17456
17457 PR tree-optimization/36327
17458 * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
f3afc8a7 17459 callback for reference translation or lookup at the point of may-defs.
01df5c8a
RG
17460 * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
17461 * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
17462 for union COMPONENT_REFs.
17463 (vn_reference_lookup_3): New callback. Lookup from memset
17464 and CONSTRUCTOR assignment, translate through struct copies.
17465 (vn_reference_lookup_pieces): Make sure to not free the
17466 passed operands array. Adjust walk_non_aliased_vuses call.
17467 (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
17468 make sure we do not leak memory.
17469
6b8ed145
RG
174702009-05-25 Richard Guenther <rguenther@suse.de>
17471
17472 * tree-ssa-alias.h (dump_points_to_solution): Declare.
17473 * tree-inline.c (expand_call_inline): Reset the escaped and
17474 callused solutions.
17475 * tree-ssa-structalias.c (pass_build_ealias): New.
17476 * tree-pass.h (pass_build_ealias): Declare.
f100a4a8 17477 * passes.c (init_optimization_passes): Add PTA during
6b8ed145
RG
17478 early optimizations.
17479 * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
17480 and CALLUSED solutions.
17481 (dump_points_to_solution): New function, split out from ...
17482 (dump_points_to_info_for): ... here.
17483 * tree-parloops.c (parallelize_loops): Reset the escaped and
17484 callused solutions.
17485
0adcf178
RO
174862009-05-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17487
17488 PR bootstrap/40027
17489 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
17490 * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
17491
12aaf609
IR
174922009-05-25 Ira Rosen <irar@il.ibm.com>
17493
17494 PR tree-optimization/40238
17495 * tree-vect-stmts.c (vect_init_vector): Insert initialization
17496 statements after basic block's labels.
f100a4a8 17497 * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
12aaf609
IR
17498 to free the allocated memory.
17499
7f9a14e3
KK
175002009-05-24 Kaz Kojima <kkojima@gcc.gnu.org>
17501
17502 * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
17503 return address with a USE.
17504
b842d478
RG
175052009-05-24 Richard Guenther <rguenther@suse.de>
17506
17507 PR middle-end/40233
17508 * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
17509 array type from the main variant of the inner type.
17510
8db7b33f
JBG
175112009-05-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17512
17513 * config/vax/vax-protos.h (legitimate_constant_address_p): Change
17514 definition to bool (from int) to un-break build.
17515 (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
17516
cff4e50d
PB
175172009-05-24 Paolo Bonzini <bonzini@gnu.org>
17518
17519 * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
17520 discard_stmt_changes): Delete.
17521 * tree-ssa-operands.c (scb_stack): Delete.
17522 (init_ssa_operands): Do not initialize it.
17523 (fini_ssa_operands): Do not free it.
17524 (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
17525
f100a4a8 17526 * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
cff4e50d
PB
17527 update_stmt, remove the others. Fix comments.
17528 * tree-dfa.c (optimize_stack_restore): Likewise.
17529 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
17530 * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
17531 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
17532 * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
17533 Likewise.
17534 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
17535 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
f3afc8a7
UB
17536 (dom_opt_finalize_block): Likewise, adjusting access to
17537 stmts_to_rescan.
cff4e50d
PB
17538 (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
17539 (stmts_to_rescan): Change item type to gimple.
17540 (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
17541
a70d6342
IR
175422009-05-24 Ira Rosen <irar@il.ibm.com>
17543
17544 * doc/passes.texi (Tree-SSA passes): Document SLP pass.
17545 * tree-pass.h (pass_slp_vectorize): New pass.
17546 * params.h (SLP_MAX_INSNS_IN_BB): Define.
17547 * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
17548 * tree-vectorizer.c (timevar.h): Include.
17549 (user_vect_verbosity_level): Declare.
17550 (vect_location): Fix comment.
17551 (vect_set_verbosity_level): Update user_vect_verbosity_level
17552 instead of vect_verbosity_level.
17553 (vect_set_dump_settings): Add an argument. Ignore user defined
17554 verbosity if dump flags require higher level of verbosity. Print to
17555 stderr only for loop vectorization.
17556 (vectorize_loops): Update call to vect_set_dump_settings.
17557 (execute_vect_slp): New function.
17558 (gate_vect_slp): Likewise.
17559 (struct gimple_opt_pass pass_slp_vectorize): New.
17560 * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
17561 access its members.
17562 (vec_info_for_bb): New function.
17563 (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
17564 (VECTORIZATION_ENABLED): New macro.
17565 (SLP_ENABLED, SLP_DISABLED): Likewise.
17566 (vect_is_simple_use): Add bb_vec_info argument.
17567 (new_stmt_vec_info, vect_analyze_data_ref_dependences,
17568 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
17569 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
17570 vect_schedule_slp, vect_analyze_slp): Likewise.
17571 (vect_analyze_stmt): Add slp_tree argument.
17572 (find_bb_location): Declare.
17573 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
17574 * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
17575 (vect_analyze_loop_operations, vect_analyze_loop,
17576 get_initial_def_for_induction, vect_create_epilog_for_reduction,
17577 vect_finalize_reduction, vectorizable_reduction,
17578 vectorizable_live_operation, vect_transform_loop): Likewise.
17579 * tree-data-ref.c (dr_analyze_innermost): Update comment,
17580 skip evolution analysis if analyzing a basic block.
17581 (dr_analyze_indices): Likewise.
17582 (initialize_data_dependence_relation): Skip the test whether the
17583 object is invariant for basic blocks.
17584 (compute_all_dependences): Skip dependence analysis for data
17585 references in basic blocks.
17586 (find_data_references_in_stmt): Don't fail in case of invariant
17587 access in basic block.
17588 (find_data_references_in_bb): New function.
17589 (find_data_references_in_loop): Move code to
782dc37a 17590 find_data_references_in_bb and add a call to it.
a70d6342
IR
17591 (compute_data_dependences_for_bb): New function.
17592 * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
17593 * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
17594 that STEP is 0.
17595 (vect_analyze_data_ref_dependence): Check for interleaving in case of
17596 unknown dependence in basic block and fail in case of dependence in
17597 basic block.
17598 (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
17599 dependence instances from either loop or basic block vectorization
17600 info.
17601 (vect_compute_data_ref_alignment): Check if it is loop vectorization
17602 before calling nested_in_vect_loop_p.
17603 (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
17604 dependence instances from either loop or basic block vectorization
17605 info.
17606 (vect_verify_datarefs_alignment): Likewise.
17607 (vect_enhance_data_refs_alignment): Adjust function calls.
17608 (vect_analyze_data_refs_alignment): Likewise.
17609 (vect_analyze_group_access): Fix printing. Skip different checks if
17610 DR_STEP is 0. Keep strided stores either in loop or basic block
17611 vectorization data structure. Fix indentation.
17612 (vect_analyze_data_ref_access): Fix comments, allow zero step in
17613 basic blocks.
17614 (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
17615 dependence instances from either loop or basic block vectorization
17616 info.
17617 (vect_analyze_data_refs): Update comment. Call
17618 compute_data_dependences_for_bb to analyze basic blocks.
17619 (vect_create_addr_base_for_vector_ref): Check for outer loop only in
17620 case of loop vectorization. In case of basic block vectorization use
782dc37a 17621 data-ref itself as a base.
a70d6342
IR
17622 (vect_create_data_ref_ptr): In case of basic block vectorization:
17623 don't advance the pointer, add new statements before the current
17624 statement. Adjust function calls.
17625 (vect_supportable_dr_alignment): Support only aligned accesses in
17626 basic block vectorization.
17627 * common.opt (ftree-slp-vectorize): New flag.
17628 * tree-vect-patterns.c (widened_name_p): Adjust function calls.
17629 (vect_pattern_recog_1): Likewise.
17630 * tree-vect-stmts.c (process_use): Likewise.
17631 (vect_init_vector): Add new statements in the beginning of the basic
17632 block in case of basic block SLP.
17633 (vect_get_vec_def_for_operand): Adjust function calls.
17634 (vect_finish_stmt_generation): Likewise.
17635 (vectorizable_call): Add assert that it is loop vectorization, adjust
17636 function calls.
17637 (vectorizable_conversion, vectorizable_assignment): Likewise.
17638 (vectorizable_operation): In case of basic block SLP, take
17639 vectorization factor from statement's type and skip the relevance
17640 check. Adjust function calls.
17641 (vectorizable_type_demotion): Add assert that it is loop
17642 vectorization, adjust function calls.
17643 (vectorizable_type_promotion): Likewise.
17644 (vectorizable_store): Check for outer loop only in case of loop
17645 vectorization. Adjust function calls. For basic blocks, skip the
17646 relevance check and don't advance pointers.
17647 (vectorizable_load): Likewise.
17648 (vectorizable_condition): Add assert that it is loop vectorization,
17649 adjust function calls.
17650 (vect_analyze_stmt): Add argument. In case of basic block SLP, check
17651 that it is not reduction, get vector type, call only supported
782dc37a 17652 functions, skip loop specific parts.
a70d6342
IR
17653 (vect_transform_stmt): Check for outer loop only in case of loop
17654 vectorization.
17655 (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
17656 (vect_is_simple_use): Fix comment, add new argument, fix conditions
17657 for external definition.
17658 * passes.c (pass_slp_vectorize): New pass.
17659 * tree-vect-slp.c (find_bb_location): New function.
17660 (vect_get_and_check_slp_defs): Add argument, adjust function calls,
17661 check for patterns only in loops.
17662 (vect_build_slp_tree): Add argument, adjust function calls, fail in
17663 case of multiple types in basic block SLP.
17664 (vect_mark_slp_stmts_relevant): New function.
17665 (vect_supported_load_permutation_p): Fix comment.
17666 (vect_analyze_slp_instance): Add argument. In case of basic block
17667 SLP, take vectorization factor from statement's type, check that
17668 unrolling factor is 1. Adjust function call. Save SLP instance in
17669 either loop or basic block vectorization structure. Return FALSE,
17670 if SLP failed.
17671 (vect_analyze_slp): Add argument. Get strided stores groups from
17672 either loop or basic block vectorization structure. Return FALSE
17673 if basic block SLP failed.
17674 (new_bb_vec_info): New function.
17675 (destroy_bb_vec_info, vect_slp_analyze_node_operations,
17676 vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
17677 (vect_schedule_slp): Add argument. Get SLP instances from either
17678 loop or basic block vectorization structure. Set vectorization factor
17679 to be 1 for basic block SLP.
17680 (vect_slp_transform_bb): New function.
17681 * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
17682
0676c393
MM
176832009-05-23 Mark Mitchell <mark@codesourcery.com>
17684
17685 * final.c (shorten_branches): Do not align labels for jump tables.
17686 (final_scan_insn): Use JUMP_TABLE_DATA_P.
17687
94324dae
EB
176882009-05-23 Eric Botcazou <ebotcazou@adacore.com>
17689
17690 * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
17691 Remove outdated reference to flow.c and fix nits.
17692 * doc/gccint.texi: Tweak RTL description.
17693 * doc/rtl.texi: Likewise.
17694
92bffc14
DC
176952009-05-23 Denis Chertykov <chertykov@gmail.com>
17696
17697 * config/avr/avr.c: Change my email address.
17698 * config/avr/avr.h: Likewise.
17699 * config/avr/avr.md: Likewise.
17700 * config/avr/avr-protos.h: Likewise.
17701 * config/avr/libgcc.S: Likewise.
17702
eec9405e
TS
177032009-05-22 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
17704
17705 * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
17706 (spu_split_load, spu_split_store): Change return type to int.
17707 (spu_split_convert): Declare.
17708 * config/spu/predicates.md (spu_mem_operand): Remove.
17709 (spu_mov_operand): Update.
17710 (spu_dest_operand, shiftrt_operator, extend_operator): Define.
17711 * config/spu/spu.c (regno_aligned_for_load): Remove.
17712 (reg_aligned_for_addr, spu_expand_load): Define.
17713 (spu_expand_extv): Reimplement and handle MEM.
17714 (spu_expand_insv): Handle MEM.
17715 (spu_sched_reorder): Handle insn's with length 0.
17716 (spu_legitimate_address_p): Reimplement.
17717 (store_with_one_insn_p): Return TRUE for any mode with size
17718 larger than 16 bytes.
17719 (address_needs_split): Define.
17720 (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
17721 operands.
17722 (spu_convert_move): Define.
782dc37a 17723 (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
eec9405e
TS
17724 (spu_split_store): Change all MEM's to TImode.
17725 (spu_init_expanders): Preallocate registers that correspond to
17726 LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
17727 mark_reg_pointer.
17728 (spu_split_convert): Define.
17729 * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
17730 (_move<mode>, _movdi, _movti): Update predicate and condition.
17731 (load, store): Change to define_split.
17732 (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
17733 extend<mode>ti2.
17734 (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
17735 (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
17736 define_insn_and_split of lshr<mode>3.
17737 (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
17738 (<v>ashr<mode>3_imm): Define.
17739 (extv, extzv, insv): Allow MEM operands.
17740 (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
17741 shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
17742 sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
17743 (_spu_convert2): Change to define_insn_and_split and remove the
17744 corresponding define_peephole2.
17745 (stack_protect_set, stack_protect_test, stack_protect_test_si):
17746 Change predicates to memory_operand.
17747
7d31a807
MM
177482009-05-22 Mark Mitchell <mark@codesourcery.com>
17749
17750 * config/arm/thumb2.md: Add 16-bit multiply instructions.
7d31a807 17751
d021d274
MM
177522009-05-21 Michael Meissner <meissner@linux.vnet.ibm.com>
17753
17754 PR tree-optimization/40219
17755 * tree.c (iterative_hash_expr): Make sure the builtin function is
17756 a normal builtin function and not a front end or back end builtin
17757 before indexing into the built_in_decls array.
17758
4d7a65ea
RG
177592009-05-22 Richard Guenther <rguenther@suse.de>
17760
17761 PR middle-end/38964
17762 * alias.c (write_dependence_p): Do not use TBAA for answering
17763 anti-dependence or output-dependence.
782dc37a 17764 * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
4d7a65ea
RG
17765 (emit_pointer_definition): Remove.
17766 (emit_alias_warning): Likewise.
17767 (find_what_var_points_to): Remove TBAA pruning code.
17768 (find_what_p_points_to): Likewise. Do not warn about strict-aliasing
17769 violations.
17770 (compute_points_to_sets): Remove code computing the set of
17771 dereferenced pointers.
17772 * tree-data-ref.c (dr_may_alias_p): Properly use the split
17773 oracle for querying anti and output dependencies.
17774 * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
17775 if TBAA may be applied.
17776 (refs_anti_dependent_p): New function.
17777 (refs_output_dependent_p): Likewise.
17778 * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
17779 (refs_output_dependent_p): Likewise.
17780 * doc/tree-ssa.texi (Memory model): New section.
17781 * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
17782 * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
17783 * cfgexpand.c (expand_gimple_basic_block): Do not handle
17784 GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
17785 * expr.c (expand_expr_real_1): Likewise.
17786 * gimple-low.c (lower_stmt): Likewise.
17787 * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
17788 (dump_gimple_cdt): Remove.
17789 * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
17790 (gimple_size): Likewise.
17791 (walk_gimple_op): Likewise.
17792 (is_gimple_stmt): Likewise.
17793 (walk_stmt_load_store_addr_ops): Likewise.
17794 (gimple_build_cdt): Remove.
17795 * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
17796 * gimple.h (gimple_cdt_new_type): Remove.
17797 (gimple_cdt_new_type_ptr): Likewise.
17798 (gimple_cdt_set_new_type): Likewise.
17799 (gimple_cdt_location): Likewise.
17800 (gimple_cdt_location_ptr): Likewise.
17801 (gimple_cdt_set_location): Likewise.
17802 * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
17803 * tree-cfg.c (remove_useless_stmts_1): Do not handle
17804 GIMPLE_CHANGE_DYNAMIC_TYPE.
17805 (verify_types_in_gimple_stmt): Likewise.
17806 * tree-inline.c (estimate_num_insns): Likewise.
17807 (expand_call_inline): Do not copy DECL_NO_TBAA_P.
17808 (copy_decl_to_var): Likewise.
17809 (copy_result_decl_to_var): Likewise.
17810 * tree-pretty-print.c (dump_generic_node): Do not handle
17811 CHANGE_DYNAMIC_TYPE_EXPR.
17812 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
17813 * tree-ssa-operands.c (get_expr_operands): Likewise.
17814 * tree-ssa-structalias.c (struct variable_info): Remove
17815 no_tbaa_pruning member.
17816 (new_var_info): Do not set it based on DECL_NO_TBAA_P.
17817 (unify_nodes): Do not copy it.
17818 (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
17819 (dump_solution_for_var): Do not dump no_tbaa_pruning state.
17820 (set_uids_in_ptset): Do not check it.
17821 (find_what_var_points_to): Likewise.
17822 (compute_tbaa_pruning): Remove.
17823 (compute_points_to_sets): Do not call it.
17824 * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
17825 * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
17826 * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
17827 (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
17828 (DECL_NO_TBAA_P): Likewise.
17829 (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
17830 * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
17831 (expand_omp_atomic_pipeline): Do not set it.
17832 * print-tree.c (print_node): Do not dump it.
17833 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
17834 redundant check.
17835
83a6ac60
VM
178362009-05-22 Vladimir Makarov <vmakarov@redhat.com>
17837
17838 PR target/39856
17839 * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
17840 for clobber.
17841
fe2978fb
MM
178422009-05-22 Mark Mitchell <mark@codesourcery.com>
17843
17844 * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
17845 non-external.
17846
134ef638
BE
178472009-05-22 Ben Elliston <bje@au.ibm.com>
17848
17849 * Makefile.in (bversion.h, s-bversion): New targets.
17850 (TOPLEV_H): Add bversion.h.
17851 * toplev.h: Include "bversion.h".
17852 (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
17853 the __format__ attribute only if compiling with the same version
17854 of GCC as the sources (the "build version").
17855
52fc669d
BE
178562009-05-22 Ben Elliston <bje@au.ibm.com>
17857
17858 * c-format.c (handle_format_attribute): Fix comment typo.
17859
583ca921
SE
178602009-05-21 Steve Ellcey <sje@cup.hp.com>
17861
17862 PR target/37846
17863 * config/ia64/ia64.opt (mfused-madd): New.
17864 * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
17865 * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
17866 * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
17867 madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
17868 nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
17869 msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
17870 nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
f100a4a8 17871 * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
583ca921
SE
17872 instruction if !TARGET_FUSED_MADD.
17873 (fpma, fpms): Remove colon from name.
17874
150e3929
RG
178752009-05-22 Richard Guenther <rguenther@suse.de>
17876
17877 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
17878 TMR_ORIGINAL. Always either record TMR_SYMBOL or TMR_BASE.
17879 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
17880 TARGET_MEM_REF.
17881 (create_expression_by_pieces): Only convert if necessary.
17882 * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
17883 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
17884
9a2b090c
AN
178852009-05-21 Adam Nemet <anemet@caviumnetworks.com>
17886
17887 * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
17888 regular pattern from a template and rename it ...
17889 (*extzv_truncsi_exts): ... to this.
17890
33b92c9d
RG
178912009-05-21 Richard Guenther <rguenther@suse.de>
17892
17893 * cgraph.h (struct cgraph_node): Remove inline_decl member.
17894 * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
17895 (cgraph_default_inline_p): Likewise.
17896 (cgraph_decide_inlining_incrementally): Likewise.
17897
cabf85c3
L
178982009-05-21 H.J. Lu <hongjiu.lu@intel.com>
17899 Uros Bizjak <ubizjak@gmail.com>
17900
17901 * config/i386/cpuid.h (bit_MOVBE): New.
17902
17903 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
17904
17905 * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
17906 (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
17907 (ix86_handle_option): Handle OPT_mmovbe.
17908 (ix86_target_string): Add -mmovbe.
17909 (pta_flags): Add PTA_MOVBE.
17910 (processor_alias_table): Add PTA_MOVBE to "atom".
17911 (override_options): Handle PTA_MOVBE.
17912
17913 * config/i386/i386.h (TARGET_MOVBE): New.
17914
17915 * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
17916 (*bswapsi_movbe): New.
17917 (*bswapdi_movbe): Likewise.
17918 (bswapdi2): Renamed to ...
17919 (*bswapdi_1): This.
17920 (bswapdi2): New expander.
17921
17922 * config/i386/i386.opt (mmovbe): New.
17923
17924 * doc/invoke.texi: Document -mmovbe.
17925
9fefa0aa
TG
179262009-05-21 Taras Glek <tglek@mozilla.com>
17927
17928 * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
17929 * gcc-plugin.h (plugin_init): Updated signature.
17930 * gcc-plugin.h (plugin_name_args): Moved to this header.
cabf85c3
L
17931 * doc/plugins.texi (plugin_init): Updated documention to reflect
17932 API change.
9fefa0aa
TG
17933 * doc/plugins.texi (plugin_name_args): Added to documention.
17934
1ea9fe56
MM
179352009-05-21 Mark Mitchell <mark@codesourcery.com>
17936
17937 * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
17938 (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
17939
52f84254
SZ
179402009-05-21 Shujing Zhao <pearly.zhao@oracle.com>
17941
17942 * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
17943 JUMP_TABLE_DATA_P predicates where applicable.
17944 * config/i386/predicates.md: Ditto.
17945 * config/i386/sse.md: Ditto.
17946
a952487c
JJ
179472009-05-21 Jakub Jelinek <jakub@redhat.com>
17948
93cac287
JJ
17949 * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
17950 operand2 -128 override length_immediate attribute to 1.
17951 * config/i386/predicates.md (constm128_operand): New predicate.
17952
a952487c
JJ
17953 * config/i386/i386.c (memory_address_length): Handle %r12
17954 the same as %rsp and %r13 the same as %rbp. For %rsp and %rbp
17955 also check REGNO.
17956 (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
17957 mode look through optional ZERO_EXTEND and SUBREG.
17958 * config/i386/i386.md (R12_REG): New define_constant.
17959 (prefix_data16): For sse unit set also for MODE_TI insns.
17960 (prefix_rex): For -m32 always return 0. For TYPE_IMOVX
17961 insns set if operand 1 is ext_QIreg_operand.
17962 (modrm): For TYPE_IMOV clear only if not MODE_DI. For
17963 TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
17964 immediate.
17965 (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
17966 mode from MODE_DI to MODE_SI.
17967 (movdi_1_rex64): Override modrm and length_immediate attributes
17968 only for movabs (TYPE_IMOV, alternative 2).
17969 (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
17970 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
17971 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
17972 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
17973 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
17974 prefix_rex attribute if DImode.
17975 (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
17976 *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
17977 *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
17978 *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
17979 attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
17980 (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
17981 Likewise. For TYPE_IMOV clear length_immediate attribute.
17982 (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
17983 *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
17984 *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
17985 *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
17986 *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
17987 or one operand TYPE_ISHIFT.
17988 (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
17989 *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
17990 *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
17991 *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
17992 *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
17993 *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
17994 *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
17995 *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
17996 *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
17997 *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
17998 *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
17999 *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
18000 *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
18001 *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
18002 *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
18003 *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
18004 *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
18005 set mode attribute, don't override length attribute.
18006 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
18007 to 1.
18008 (return_internal_long): Set length attribute to 2 instead of 1.
18009 (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
18010 *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
18011 prefix_rex attribute.
782dc37a
UB
18012 * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
18013 New predicates.
18014 (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
a952487c 18015
64af62c2
RR
180162009-05-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18017
18018 * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
18019
c166b898
ILT
180202009-05-20 Ian Lance Taylor <iant@google.com>
18021
18022 * tree.c (build_tree_list_vec_stat): New function.
18023 (ctor_to_vec): New function.
18024 (build_nt_call_vec): New function.
18025 (build_call_array): Change args to be a const pointer.
18026 (build_call_vec): New function.
18027 * tree.h (build_nt_call_vec): Declare.
18028 (build_tree_list_vec_stat): Declare.
18029 (build_tree_list_vec): Define.
18030 (build_call_array): Update declaration.
18031 (build_call_vec): Declare.
18032 (ctor_to_vec): Declare.
18033 * c-common.c (tree_vector_cache): New static variable.
18034 (make_tree_vector): New function.
18035 (release_tree_vector): New function.
18036 (make_tree_vector_single): New function.
18037 (make_tree_vector_copy): New function.
18038 * c-common.h (tree_vector_cache, make_tree_vector): Declare.
18039 (make_tree_vector_single, make_tree_vector_copy): Declare.
18040 * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
18041 (c_parser_expr_list): Don't manage cache here, instead call
18042 make_tree_vector.
18043 (c_parser_release_expr_list): Remove static function.
18044 (c_parser_vec_to_tree_list): Remove static function.
18045 (c_parser_attributes): Call build_tree_list_vec instead of
18046 c_parser_vec_to_tree_list. Call release_tree_vector instead of
18047 c_parser_release_expr_list.
18048 (c_parser_postfix_expression_after_primary): Likewise.
18049 (c_parser_objc_keywordexpr): Likewise.
18050
40449a90
SL
180512009-05-20 Sandra Loosemore <sandra@codesourcery.com>
18052
18053 * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
18054 TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
18055 TARGET_CONVERT_TO_TYPE.
18056 * hooks.c (hook_tree_const_tree_null): Define.
18057 * hooks.h (hook_tree_const_tree_null): Declare.
18058 * target.h (struct gcc_target): Add invalid_parameter_type,
18059 invalid_return_type, promoted_type, and convert_to_type fields.
bd62d832 18060 * target-def.h (TARGET_INVALID_PARAMETER_TYPE): Define.
40449a90
SL
18061 (TARGET_INVALID_RETURN_TYPE): Define.
18062 (TARGET_PROMOTED_TYPE): Define.
18063 (TARGET_CONVERT_TO_TYPE): Define.
18064 (TARGET_INITIALIZER): Update for new fields.
18065 * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
18066 (grokparms): Check targetm.invalid_parameter_type.
18067 * c-typeck.c (default_conversion): Check targetm.promoted_type.
18068 * c-convert.c (convert): Check targetm.convert_to_type.
18069
642d97ff
AN
180702009-05-20 Adam Nemet <anemet@caviumnetworks.com>
18071
18072 * config/mips/mips.md (*extenddi_truncate<mode>,
18073 *extendsi_truncate<mode>): Emit exts if supported. Add attribute
18074 defintions.
18075 (*extendhi_truncateqi): New define_insn_and_sptit.
18076
776248b8
JJ
180772009-05-20 Jakub Jelinek <jakub@redhat.com>
18078
18079 PR middle-end/40204
18080 * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
782dc37a 18081 recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
776248b8 18082
d98e8686
EB
180832009-05-20 Eric Botcazou <ebotcazou@adacore.com>
18084
18085 * fold-const.c (build_fold_addr_expr_with_type): Take the address of
18086 the operand of VIEW_CONVERT_EXPR.
18087
37c50435
L
180882009-05-20 H.J. Lu <hongjiu.lu@intel.com>
18089
18090 * config/i386/driver-i386.c (host_detect_local_cpu): Check
f3afc8a7 18091 extended family and model for Intel processors. Support Intel Atom.
37c50435 18092
dbb6088f
OH
180932009-05-20 Olivier Hainque <hainque@adacore.com>
18094
18095 * gstab.h (stab_code_type): Define, to be used instead of the
18096 __stab_debug_code enum, made anonymous. Add 2009 to the copyright
18097 notice.
18098 * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
18099 occurrences by stab_code_type.
18100 * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
18101
7ec49257
MJ
181022009-05-20 Martin Jambor <mjambor@suse.cz>
18103
18104 * tree-flow.h (insert_edge_copies_seq): Undeclare.
18105 (sra_insert_before): Likewise.
18106 (sra_insert_after): Likewise.
18107 (sra_init_cache): Likewise.
18108 (sra_type_can_be_decomposed_p): Likewise.
18109 * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
18110 * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
18111 (sra_insert_before): Likewise.
18112 (sra_insert_after): Likewise.
18113 (sra_init_cache): Likewise.
18114 (insert_edge_copies_seq): Made static and moved upwards.
18115
18116 * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
18117 case.
18118
18119 * tree-flow-inline.h (contains_view_convert_expr_p): New function.
18120
18121 * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
18122 (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
18123 simple copies.
18124
0328ae4d
RG
181252009-05-20 Richard Guenther <rguenther@suse.de>
18126
18127 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
18128 with mismatched comparison modes.
18129
a7994a57 181302009-05-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
782dc37a 18131
a7994a57 18132 * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
782dc37a
UB
18133 (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
18134 * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
18135 with shifts for Thumb2.
18136 (orsi_notsi): New for orn.
18137 (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
18138 (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
18139 * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
18140 (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
18141 Don't invert remainder for IOR.
f100a4a8 18142
e36dc339
ZD
181432009-05-19 Zdenek Dvorak <ook@ucw.cz>
18144
18145 PR tree-optimization/40087
18146 * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
18147 number_of_iterations_ne): Rename never_infinite argument.
18148 (number_of_iterations_lt_to_ne, number_of_iterations_lt,
18149 number_of_iterations_le): Handle pointer-type ivs when
18150 exit_must_be_taken is false.
18151 (number_of_iterations_cond): Do not always assume that
18152 exit_must_be_taken if the control variable is a pointer.
18153
5cfd5d9b
AP
181542009-05-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
18155
18156 * c-typeck.c (build_binary_op): Allow % on integal vectors.
18157 * doc/extend.texi (Vector Extension): Document that % is allowed too.
18158
2f1c7156
L
181592009-05-19 H.J. Lu <hongjiu.lu@intel.com>
18160
18161 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
18162 ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
18163
7bb27074
MLI
181642009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
18165
18166 PR c/40172
18167 * c.opt (Wlogical-op): Disabled by default.
18168 * c-opt (c_common_post_options): Do not enable Wlogical-op with
18169 Wextra.
18170 * doc/invoke.texi (Wlogical-op): Likewise.
f100a4a8 18171
5aefc6a0
EB
181722009-05-19 Eric Botcazou <ebotcazou@adacore.com>
18173
18174 * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
18175 into CASE_CONVERT.
18176 <PLUS_EXPR>: Strip useless type conversions instead of type nops.
18177 Propagate the type of the first operand.
18178 <ASSERT_EXPR>: Simplify.
18179 (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
18180 Rewrite using the RHS code as discriminant.
18181 <NOP_EXPR>: Turn into CASE_CONVERT.
18182 <PLUS_EXPR>: Propagate the type of the first operand.
18183
f3a83111
SE
181842009-05-19 Steve Ellcey <sje@cup.hp.com>
18185
18186 * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
18187 (ia64_dconst_0_375): New.
18188 * config/ia64/ia64.c (ia64_override_options): Remove
18189 -minline-sqrt-min-latency warning.
18190 (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
18191 (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
18192 * config/ia64/ia64.md (*sqrt_approx): Remove.
18193 (sqrtsf2): Remove #if 0.
18194 (sqrtsf2_internal_thr): Rewrite and move to div.md.
18195 (sqrtdf): Remove assert.
18196 (sqrtdf2_internal_thr): Rewrite and move to div.md.
18197 (sqrtxf2): Remove #if 0.
18198 (sqrtxf2_internal_thr): Rewrite and move to div.md.
18199 * div.md (sqrt_approx_rf): New.
18200 (sqrtsf2_internal_thr): New implementation.
18201 (sqrtsf2_internal_lat): New.
18202 (sqrtdf2_internal_thr: New implementation.
18203 (sqrtxf2_internal): New implementation.
18204
1ffc7157
FXC
182052009-05-19 Francois-Xavier Coudert <fxcoudert@gmail.com>
18206 Hans-Peter Nilsson <hp@axis.com>
18207
18208 * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
18209 (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
18210 (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
18211 (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
18212 (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
18213 (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
18214 (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
18215 (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
18216 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
18217 (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
18218 * c-common.c: ...from here.
18219
db91d9ef
MLI
182202009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
18221
f3afc8a7 18222 * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
db91d9ef 18223
bbb9d91f
KG
182242009-05-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18225
18226 * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
18227
ce883f54
BE
182282009-05-19 Ben Elliston <bje@au.ibm.com>
18229
18230 * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
18231 assignments with memcpy calls.
18232 (add_fdes): Likewise.
18233 (binary_search_unencoded_fdes): Likewise.
18234 (linear_search_fdes): Eliminate type puns.
f100a4a8 18235
377f099a
RG
182362009-05-19 Richard Guenther <rguenther@suse.de>
18237
18238 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
18239 not falsely claim to have propagated into all uses.
18240
848bc769
BE
182412009-05-19 Ben Elliston <bje@au.ibm.com>
18242
18243 * doc/invoke.texi (C Dialect Options): Update OpenMP specification
18244 version to v3.0.
18245
1bb99877
KK
182462009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
18247
18248 * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
18249 * config/sh/sh.c (sh_legitimate_address_p): Make static.
18250 (TARGET_LEGITIMATE_ADDRESS_P): New.
18251 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18252 * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
f100a4a8 18253
82725547
DS
182542009-05-18 Dodji Seketeli <dodji@redhat.com>
18255
18256 PR debug/40109
18257 * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
18258 child of the containing namespace's DIE.
18259
f6a1e430
AN
182602009-05-18 Adam Nemet <anemet@caviumnetworks.com>
18261
18262 * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
18263 *zero_extendhi_truncqi): Move after the zero_extend patterns.
18264 (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
18265 extend patterns.
18266
6a90d232
L
182672009-05-18 H.J. Lu <hongjiu.lu@intel.com>
18268
18269 PR target/39942
18270 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
18271 gen_align with gen_pad.
18272 (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
18273 #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
18274
18275 * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
18276 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
18277
18278 * config/i386/i386.md (align): Renamed to ...
18279 (pad): This. Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
18280 ASM_OUTPUT_MAX_SKIP_PAD.
18281
c4406f74
AS
182822009-05-18 Andreas Schwab <schwab@linux-m68k.org>
18283
06555043
AS
18284 * config.gcc: Fix variable syntax.
18285
c4406f74
AS
18286 PR target/39531
18287 * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
18288 before calling exact_log2.
18289 (output_iorsi3): Likewise.
18290 (output_xorsi3): Likewise.
18291
99052692
KK
182922009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
18293
18294 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
18295 for the none zero constant operand except for EQ and NE
18296 comprisons even when the first operand is R0.
18297
f4aa3848
AK
182982009-05-18 Andreas Krebbel <krebbel1@de.ibm.com>
18299
18300 * config/s390/2064.md: Remove trailing whitespaces.
18301 * config/s390/2084.md: Likewise.
18302 * config/s390/constraints.md: Likewise.
18303 * config/s390/fixdfdi.h: Likewise.
18304 * config/s390/libgcc-glibc.ver: Likewise.
18305 * config/s390/s390-modes.def: Likewise.
18306 * config/s390/s390-protos.h: Likewise.
18307 * config/s390/s390.c: Likewise.
18308 * config/s390/s390.h: Likewise.
18309 * config/s390/s390.md: Likewise.
18310 * config/s390/tpf-unwind.h: Likewise.
18311
ab7256e4
MK
183122009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
18313
18314 * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
18315
75df395f
MK
183162009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
18317
18318 M68K TLS support.
18319 * configure.ac (m68k-*-*): Check if binutils support TLS.
18320 * configure: Regenerate.
18321 * config/m68k/predicates.md (symbolic_operand): Extend comment.
18322 * config/m68k/constraints.md (Cu): New constraint.
18323 * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
18324 (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
18325 (movsi): Handle TLS symbols.
18326 (addsi3_5200): Handle XTLS symbols, indent.
18327 * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
18328 (m68k_tls_reference_p): Declare.
18329 (m68k_legitimize_address): Declare.
18330 (m68k_unwrap_symbol): Declare.
18331 * config/m68k/m68k.opt (mxtls): New option.
18332 * config/m68k/m68k.c (ggc.h): Include.
18333 (m68k_output_dwarf_dtprel): Implement hook.
18334 (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
18335 (m68k_expand_prologue): Load GOT pointer when function needs it.
18336 (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
18337 (m68k_legitimate_constant_address_p): Same.
18338 (m68k_decompose_address): Handle TLS references.
18339 (m68k_get_gp): New static function.
18340 (enum m68k_reloc): New contants.
18341 (TLS_RELOC_P): New macro.
18342 (m68k_wrap_symbol): New static function.
18343 (m68k_unwrap_symbol): New function.
18344 (m68k_final_prescan_insn_1): New static function.
18345 (m68k_final_prescan_insn): New function.
18346 (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
18347 functions.
18348 (legitimize_pic_address): Handle TLS references..
18349 (m68k_tls_get_addr, m68k_get_tls_get_addr)
18350 (m68k_libcall_value_in_a0_p)
18351 (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
18352 (m68k_call_m68k_read_tp): Helper variables and functions for ...
18353 (m68k_legitimize_tls_address): Handle TLS references.
18354 (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
18355 New functions.
18356 (m68k_legitimize_address): Handle TLS symbols.
18357 (m68k_get_reloc_decoration): New static function.
18358 (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
18359 UNSPEC_RELOC32.
18360 (m68k_output_dwarf_dtprel): Implement hook.
18361 (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
18362 (m68k_libcall_value): Return result in A0 instead of D0 when asked by
18363 m68k_call_* routines.
18364 (sched_attr_op_type): Handle TLS symbols.
18365 (gt-m68k.h): Include.
18366 * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
18367 (LEGITIMATE_PIC_OPERAND_P): Support TLS.
18368
8b75fc9b
MJ
183692009-05-18 Martin Jambor <mjambor@suse.cz>
18370
18371 * ipa-prop.c (ipa_check_stmt_modifications): Removed.
18372 (visit_store_addr_for_mod_analysis): New function.
18373 (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
18374 (determine_cst_member_ptr): Use gimple_assign_single_p.
18375 (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
18376 (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
18377 operands. Don't check number of operands of a NOP_EXPR.
18378
f133d4a2
EF
183792009-05-18 Eric Fisher <joefoxreal@gmail.com>
18380
18381 * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
18382
ae8af500
L
183832009-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
18384
18385 PR c/40172
18386 * c-common.c (warn_logical_operator): Don't warn if one of
18387 expression isn't always true or false.
18388
25e8fde8
KT
183892009-05-17 Kai Tietz <kai.tietz@onevision.com>
18390
ae8af500
L
18391 * config/i386/biarch32.h: New file.
18392 * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
25e8fde8 18393
ef67af22
AN
183942009-05-17 Adam Nemet <anemet@caviumnetworks.com>
18395
18396 * config/mips/mips.md (*zero_extend<mode>_trunchi,
18397 *zero_extend<mode>_truncqi): Merge these into ...
18398 (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
18399 Name the pattern following this as *zero_extendhi_truncqi.
18400
e2d87023
BL
184012009-05-16 Brad Lucier <lucier@math.purdue.edu>
18402
18403 PR middle-end/39301
18404 * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
18405 * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
18406 (output_info): Make field HOST_WIDEST_INT.
18407 (print_statistics): Use HOST_WIDEST_INT_PRINT.
18408 (dump_bitmat_statistics): Same.
18409
428ddbf0
FXC
184102009-05-16 Francois-Xavier Coudert <fxcoudert@gmail.com>
18411
18412 * config.gcc (use_gcc_stdint): Set to wrap.
18413 * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
18414 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
18415 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
18416 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
18417 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
18418 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
18419 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
18420 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
18421
1ab8a8c2
JM
184222009-05-16 Joseph Myers <joseph@codesourcery.com>
18423
18424 * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
18425 tune_64.
18426 * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
18427 Move definitions earlier.
18428 (OPT_ARCH64, OPT_ARCH32): Define.
18429 (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
18430 and tune_64.
18431
70544f44
RE
184322009-05-16 Richard Earnshaw <rearnsha@arm.com>
18433
18434 PR target/40153
18435 * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
18436 implies.
18437
6241ded1
RE
184382009-05-16 Richard Earnshaw <rearnsha@arm.com>
18439
18440 * arm.md (movdi2): Copy non-reg values to DImode registers.
18441
a99c6711
JJ
184422009-05-16 Jakub Jelinek <jakub@redhat.com>
18443
40a8f07a
JJ
18444 PR target/39942
18445 * final.c (label_to_max_skip): New function.
18446 (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
18447 CODE_LABEL_NUMBER <= max_labelno.
18448 * output.h (label_to_max_skip): New prototype.
18449 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
18450 (ix86_avoid_jump_mispredicts): ... this. Don't define if
18451 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined. Update comment.
18452 Handle CODE_LABELs with >= 16 byte alignment or with
18453 max_skip == (1 << align) - 1.
18454 (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
18455 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
18456
a99c6711
JJ
18457 PR target/39942
18458 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
18459 .p2align 3 if MAX_SKIP is smaller than 7.
18460 * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
18461
7e5487a2
ILT
184622009-05-15 Ian Lance Taylor <iant@google.com>
18463
18464 * alias.c (struct alias_set_entry_d): Rename from struct
18465 alias_set_entry. Change all uses.
18466 * except.c (struct call_site_record_d): Rename from struct
18467 call_site_record. Change all uses.
18468 * except.h (struct eh_region_d): Rename from struct eh_region.
18469 Change all uses.
18470 * gcse.c (struct hash_table_d): Rename from struct hash_table.
18471 Change all uses.
18472 * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
18473 ivtype_map_elt. Change all uses.
18474 (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
18475 Change all uses.
18476 (struct ifsese_d): Rename fromstruct ifsese. Change all uses.
18477 * graphite.h (struct name_tree_d): Rename from struct name_tree.
18478 Change all uses.
18479 (struct sese_d): Rename from struct sese. Change all uses.
782dc37a
UB
18480 * omega.h (struct eqn_d): Rename from struct eqn. Change all uses.
18481 (struct omega_pb_d): Rename from struct omega_pb. Change all uses.
7e5487a2
ILT
18482 * optabs.h (struct optab_d): Rename from struct optab. Change all
18483 uses.
18484 (struct convert_optab_d): Rename from struct convert_optab.
18485 Change all uses.
18486 * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
18487 ipa_opt_pass. Change all uses.
18488 * tree-predcom.c (struct dref_d): Rename from struct dref. Change
18489 all uses.
18490
18491 * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
18492 defined as a typedef.
18493 (grokdeclarator): If -Wc++-compat, warn if a typedef is already
18494 defined as a tag.
18495
a243fb4a
MLI
184962009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
18497
18498 PR 16302
18499 * fold-const.c (make_range,build_range_check,merge_ranges): Move
18500 declaration to...
f100a4a8 18501 (merge_ranges): Returns bool.
a243fb4a
MLI
18502 * tree.h (make_range): .. to here.
18503 (build_range_check): Likewise.
18504 (merge_ranges): Likewise. Renamed from merge_ranges.
18505 * c-typeck.c (parser_build_binary_op): Update calls to
18506 warn_logical_operator.
18507 * c-common.c (warn_logical_operator): Add new warning.
18508 * c-common.h (warn_logical_operator): Update declaration.
f100a4a8 18509
1b53c5f3
MLI
185102009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
18511
782dc37a 18512 * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
f100a4a8 18513
c128599a
KG
185142009-05-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18515
f9bab007
KG
18516 * doc/install.texi: Document MPC requirements, flags etc.
18517
c128599a
KG
18518 * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
18519 (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
18520 Evaluate constant arguments.
18521 (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
18522 (fold_builtin_1): Likewise, also evaluate constant arguments.
18523 Remove superfluous break.
18524 (do_mpc_ckconv): New.
18525 * real.h: Include mpc.h.
18526 * toplev.c (print_version): Output MPC version info if available.
18527
d33e4b70
SL
185282009-05-15 Sandra Loosemore <sandra@codesourcery.com>
18529
782dc37a 18530 * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
d33e4b70 18531
a02ab464
L
185322009-05-15 H.J. Lu <hongjiu.lu@intel.com>
18533
18534 * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
18535 only once.
18536
796bda22
JH
185372009-05-15 Jan Hubicka <jh@suse.cz>
18538
18539 * doc/invoke.texi (max-early-inliner-iterations): New flag.
18540 * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
18541 (try_inline): Fix return value.
18542 (cgraph_decide_inlining_incrementally): Honor new value.
18543 (cgraph_early_inlining): Handle indirect inlining.
18544 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
18545
d88e5c37
JH
185462009-05-15 Jan Hubicka <jh@suse.cz>
18547
18548 * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
18549 * cgraphunit.c (cgraph_finalize_function): Set it.
18550 (cgraph_expand_function): Use it.
18551
ae63687c
SL
185522009-05-15 Sandra Loosemore <sandra@codesourcery.com>
18553
18554 * real.c (encode_ieee_half): Define.
18555 (decode_ieee_half): Define.
18556 (ieee_half_format): Define.
18557 (arm_half_format): Define.
18558 * real.h (ieee_half_format): Declare.
18559 (arm_half_format): Declare.
18560
1bd74ad9
SL
185612009-05-15 Sandra Loosemore <sandra@codesourcery.com>
18562
18563 * optabs.c (prepare_float_lib_cmp): Test that the comparison,
18564 swapped, and reversed optabs exist before trying to use them.
18565
dc34db56
PB
185662009-05-15 Paul Brook <paul@codesourcery.com>
18567 Sandra Loosemore <sandra@codesourcery.com>
18568
dc34db56
PB
18569 * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
18570 loads. Allow PRE_DEC.
18571 (output_move_neon): Handle PRE_DEC.
18572 (arm_print_operand): Add 'A' for neon structure loads.
18573 * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
18574 * config/arm/neon.md (neon_mov): Update comment.
18575 * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
18576 calls.
18577 (Um): New constraint.
18578
1d405d7b
JH
185792009-05-15 Jan Hubicka <jh@suse.cz>
18580
18581 Revert the following patch until testsuite fallout is fixed:
18582 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
18583 * cgraph.h (struct inline_summary): New filed self_wize,
18584 size_inlining_benefit, self_time and time_inlining_benefit.
18585 (struct cgraph_global_info): Replace insns by time ans size fields.
18586 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
18587 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
18588 (ipcp_update_callgraph): Do not touch function bodies.
18589 * ipa-inline.c: Include except.h
782dc37a 18590 (MAX_TIME): New constant.
1d405d7b
JH
18591 (overall_insns): Remove
18592 (overall_size, max_benefit): New static variables.
18593 (cgraph_estimate_time_after_inlining): New function.
18594 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
18595 (cgraph_clone_inlined_nodes): Update size.
18596 (cgraph_mark_inline_edge): Update size.
18597 (cgraph_estimate_growth): Use size info.
18598 (cgraph_check_inline_limits): Check size.
18599 (cgraph_default_inline_p): Likewise.
18600 (cgraph_edge_badness): Compute badness based on benefit and size cost.
18601 (cgraph_decide_recursive_inlining): Check size.
f3afc8a7
UB
18602 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
18603 and times.
1d405d7b 18604 (cgraph_decide_inlining): Likewise.
00c5fa1b
EB
18605 (cgraph_decide_inlining_incrementally): Likewise; honor
18606 PARAM_EARLY_INLINING_INSNS.
1d405d7b
JH
18607 (likely_eliminated_by_inlining_p): New predicate.
18608 (estimate_function_body_sizes): New function.
18609 (compute_inline_parameters): Use it.
18610 * except.c (must_not_throw_labels): New function.
18611 * except.h (must_not_throw_labels): Declare.
18612 * tree-inline.c (init_inline_once): Kill inlining_weigths
18613 * tree-ssa-structalias.c: Avoid uninitialized warning.
18614 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
18615 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
18616 (PARAM_INLINE_CALL_COST): Remove.
18617 (PARAM_EARLY_INLINING_INSNS): New.
18618
7ffa47ca
RG
186192009-05-15 Richard Guenther <rguenther@suse.de>
18620
18621 * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
18622 not TODO_update_ssa.
18623
828552ed
RG
186242009-05-15 Richard Guenther <rguenther@suse.de>
18625
18626 PR tree-optimization/39999
18627 * gimple.h (gimple_expr_type): Use the expression type looking
18628 through useless conversions.
18629 * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
18630 (vn_nary_op_insert_stmt): Likewise.
18631 (simplify_binary_expression): Likewise.
18632
248fc9f3
RG
186332009-05-15 Richard Guenther <rguenther@suse.de>
18634
18635 * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
18636 New options, enabled by default.
18637 * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
18638 Document.
18639 * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
18640 * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
18641 * tree-ssa-structalias.c (gate_tree_pta): New function.
18642 (pass_build_alias): Use it.
18643
16b29cc4
JM
186442009-05-15 Joseph Myers <joseph@codesourcery.com>
18645
18646 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
18647 recurse on an invariant address if a conversion from a pointer
18648 type to a wider integer type is involved.
18649
125cae84
JH
186502009-05-15 Jan Hubicka <jh@suse.cz>
18651
18652 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
18653 * cgraph.h (struct inline_summary): New filed self_wize,
18654 size_inlining_benefit, self_time and time_inlining_benefit.
18655 (struct cgraph_global_info): Replace insns by time ans size fields.
18656 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
18657 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
18658 (ipcp_update_callgraph): Do not touch function bodies.
18659 * ipa-inline.c: Include except.h
782dc37a 18660 (MAX_TIME): New constant.
125cae84
JH
18661 (overall_insns): Remove
18662 (overall_size, max_benefit): New static variables.
18663 (cgraph_estimate_time_after_inlining): New function.
18664 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
18665 (cgraph_clone_inlined_nodes): Update size.
18666 (cgraph_mark_inline_edge): Update size.
18667 (cgraph_estimate_growth): Use size info.
18668 (cgraph_check_inline_limits): Check size.
18669 (cgraph_default_inline_p): Likewise.
18670 (cgraph_edge_badness): Compute badness based on benefit and size cost.
18671 (cgraph_decide_recursive_inlining): Check size.
f3afc8a7
UB
18672 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
18673 and times.
125cae84 18674 (cgraph_decide_inlining): Likewise.
00c5fa1b
EB
18675 (cgraph_decide_inlining_incrementally): Likewise; honor
18676 PARAM_EARLY_INLINING_INSNS.
125cae84
JH
18677 (likely_eliminated_by_inlining_p): New predicate.
18678 (estimate_function_body_sizes): New function.
18679 (compute_inline_parameters): Use it.
18680 * except.c (must_not_throw_labels): New function.
18681 * except.h (must_not_throw_labels): Declare.
18682 * tree-inline.c (init_inline_once): Kill inlining_weigths
18683 * tree-ssa-structalias.c: Avoid uninitialized warning.
18684 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
18685 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
18686 (PARAM_INLINE_CALL_COST): Remove.
18687 (PARAM_EARLY_INLINING_INSNS): New.
18688 doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
18689 (inline-call-cost): Remove.
18690 (early-inlining-insns): New.
18691
84fb43a1
EB
186922009-05-15 Eric Botcazou <ebotcazou@adacore.com>
18693
18694 * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters. Use them
18695 for bounds.
18696 (print_int_cst_bounds_in_octal_p): Likewise.
18697 (dbxout_type): Adjust calls to above functions. Be prepared to deal
18698 with subtypes.
18699 * dwarf2out.c (base_type_die): Likewise.
18700 (is_subrange_type): Delete.
18701 (subrange_type_die): Add LOW and HIGH parameters. Use them for bounds.
18702 (modified_type_die): Call subrange_type_for_debug_p on subtypes.
f3afc8a7
UB
18703 * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
18704 if the destination type is boolean.
84fb43a1
EB
18705 (build_range_check): Do not special-case subtypes.
18706 (fold_sign_changed_comparison): Likewise.
18707 (fold_unary): Likewise.
18708 * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
18709 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
18710 * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
f3afc8a7
UB
18711 * tree.c (subrange_type_for_debug_p): New predicate based on the
18712 former is_subrange_type.
84fb43a1
EB
18713 * tree.h (subrange_type_for_debug_p): Declare.
18714 * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
18715 (convert_affine_scev): Remove call to above function.
18716 (chrec_convert_aggressive): Likewise.
18717 * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
18718 false for conversions involving subtypes.
18719 * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
18720 (vrp_val_min): Likewise.
18721 (needs_overflow_infinity): Likewise.
18722 (extract_range_from_unary_expr): Likewise.
18723
331d9186
PB
187242009-05-15 Paolo Bonzini <bonzini@gnu.org>
18725
e9351712
L
18726 * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
18727 * config/frv/frv.c: Likewise.
18728 * config/s390/s390.c: Likewise.
18729 * config/sparc/sparc.h: Likewise.
18730 * config/i386/i386.h: Likewise.
18731 * config/i386/i386.c: Likewise.
18732 * config/crx/crx.c: Likewise.
18733 * config/m68hc11/m68hc11.h: Likewise.
18734 * config/iq2000/iq2000.c: Likewise.
18735 * config/mn10300/mn10300.h: Likewise.
18736 * config/mn10300/mn10300.c: Likewise.
18737 * config/m68k/m68k.c: Likewise.
18738 * config/rs6000/rs6000.c: Likewise.
18739 * config/rs6000/xcoff.h: Likewise.
18740 * config/rs6000/linux64.h: Likewise.
18741 * config/rs6000/sysv4.h: Likewise.
18742 * config/score/score3.c: Likewise.
18743 * config/score/score7.c: Likewise.
18744 * config/score/score.c: Likewise.
18745 * config/arm/arm.md: Likewise.
18746 * config/mips/mips.c: Likewise.
18747 * config/mips/mips.md: Likewise.
18748 * config/bfin/bfin.h: Likewise.
18749 * config/pa/pa.c: Likewise.
18750 * config/pa/constraints.md: Likewise.
18751
18752 * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
18753 * config/pdp11/pdp11.c (legitimate_address_p): Delete.
18754 * config/pdp11/pdp11.h: Use memory_address_p instead.
331d9186 18755
09639a83
ILT
187562009-05-14 Ian Lance Taylor <iant@google.com>
18757
18758 * passes.c (finish_optimization_passes): Change i to int.
18759 * plugin.c (plugins_active_p): Change event to int.
18760 (dump_active_plugins): Likewise.
18761 * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
18762 Add cast.
18763 * tree.c (tree_range_check_failed): Change c to unsigned int.
18764 (omp_clause_range_check_failed): Likewise.
18765 (build_common_builtin_nodes): Change mode to int. Add cast.
18766 * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
18767 (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
18768
18769 * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
18770 ++ or -- with a variable of enum type.
18771
c04a56bf
SB
187722009-05-14 Steven Bosscher <steven@gcc.gnu.org>
18773
18774 PR driver/40144
18775 * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
18776
237ee620
SB
187772009-05-14 Steven Bosscher <steven@gcc.gnu.org>
18778
18779 * store-motion.c: Do not include params.h
18780 * Makefile.in: Fix dependencies for various files.
18781
1154c4fa
SB
187822009-05-14 Steven Bosscher <steven@gcc.gnu.org>
18783
18784 * auto-inc-dec.c: Fix pass description, remove apparent
18785 accidental duplication.
18786
61c27353
L
187872009-05-14 H.J. Lu <hongjiu.lu@intel.com>
18788
18789 PR middle-end/40147
18790 * ipa-utils.h (memory_identifier_string): Moved to ...
18791 * tree.h (memory_identifier_string): Here. Add GTY(()).
18792
c6c3dba9
PB
187932009-05-14 Paolo Bonzini <bonzini@gnu.org>
18794
18795 * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
18796 in the former documentation of...
18797 (GO_IF_LEGITIMATE_ADDRESS): ... this.
18798 * ira-conflicts.c (get_dup_num): Use address_operand.
18799 * targhooks.c (default_legitimate_address_p): New.
18800 * targhooks.h (default_legitimate_address_p): New.
18801 * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
18802 Call hook.
18803 * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
18804 * target.h (struct target): Add legitimate_address_p.
18805 * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
18806 (TARGET_INITIALIZER): Include it.
18807
18808 * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18809 * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
18810 * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
18811 (TARGET_LEGITIMATE_ADDRESS_P): New.
18812
18813 * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18814 (REG_OK_STRICT_P): Delete.
18815 * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
18816 (frv_legitimate_address_p_1): ... this.
18817 * config/frv/frv.c (frv_legitimate_address_p): Forward to...
18818 (frv_legitimate_address_p_1): ... the renamed old
18819 frv_legitimate_address_p.
18820 * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
18821 (TARGET_LEGITIMATE_ADDRESS_P): New.
18822
18823 * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18824 * config/s390/s390-protos.h (legitimate_address_p): Remove.
18825 * config/s390/s390.c (legitimate_address_p): Rename to...
18826 (s390_legitimate_address_p): ... this, make static.
18827 (legitimize_address): Adjust call.
18828 (TARGET_LEGITIMATE_ADDRESS_P): New.
18829 * config/s390/constraints.md ("e"): Call strict_memory_address_p.
18830
18831 * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18832 * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
18833 * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
18834 (TARGET_LEGITIMATE_ADDRESS_P): New.
18835
18836 * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18837 * config/spu/spu-protos.h (spu_legitimate_address): Remove.
18838 * config/spu/spu.c (spu_legitimate_address): Rename to...
18839 (spu_legitimate_address_p): ... this, make static.
18840 (TARGET_LEGITIMATE_ADDRESS_P): New.
18841
18842 * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18843 * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
18844 * config/sparc/sparc.c (legitimate_address_p): Rename to...
18845 (sparc_legitimate_address_p): ... this, make static and return bool.
18846 (legitimize_address): Adjust call.
18847 (TARGET_LEGITIMATE_ADDRESS_P): New.
18848
18849 * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18850 * config/i386/i386-protos.h (legitimate_address_p): Remove.
18851 * config/i386/i386.c (legitimate_address_p): Rename to...
18852 (ix86_legitimate_address_p): ... this, make static.
18853 (constant_address_p): Move after it, adjust call.
18854 (TARGET_LEGITIMATE_ADDRESS_P): New.
18855
18856 * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18857 * config/avr/avr-protos.h (legitimate_address_p): Remove.
18858 * config/avr/avr.c (legitimate_address_p): Rename to...
18859 (avr_legitimate_address_p): ... this, make static.
18860 (legitimize_address): Adjust call.
18861 (TARGET_LEGITIMATE_ADDRESS_P): New.
18862
18863 * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18864 * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
18865 * config/crx/crx.c (crx_legitimate_address_p): Make static.
18866 (TARGET_LEGITIMATE_ADDRESS_P): New.
18867
18868 * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18869 * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
18870 * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
18871 (TARGET_LEGITIMATE_ADDRESS_P): New.
18872
18873 * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18874 * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
18875 Remove.
18876 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
18877 Make static.
18878 (TARGET_LEGITIMATE_ADDRESS_P): New.
18879
18880 * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18881 * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
18882 Remove.
18883 * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
18884 Rename to...
18885 (m68hc11_legitimate_address_p): ... this, make static.
18886 (go_if_legitimate_address_internal): Rename to...
18887 (m68hc11_legitimate_address_p_1): ... this.
18888 (legitimize_address): Adjust call.
18889 (TARGET_LEGITIMATE_ADDRESS_P): New.
18890
18891 * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
782dc37a
UB
18892 * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
18893 * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
c6c3dba9
PB
18894 (TARGET_LEGITIMATE_ADDRESS_P): New.
18895
18896 * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18897 * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
18898 * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
18899 (mn10300_legitimate_address_p): ... this, make static.
18900 (TARGET_LEGITIMATE_ADDRESS_P): New.
18901
18902 * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18903 * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
18904 * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
18905 (TARGET_LEGITIMATE_ADDRESS_P): New.
18906
18907 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18908 (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
18909 (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
18910 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18911 * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
18912 * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
18913 (rs6000_legitimate_address_p): ... this, make static.
18914 (TARGET_LEGITIMATE_ADDRESS_P): New.
18915 (REG_MODE_OK_FOR_BASE_P): Delete.
18916 (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
18917
18918 * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18919 * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
18920 Delete.
18921 * config/picochip/picochip.c (picochip_legitimate_address_p): Make
18922 static, adjust types.
18923 (TARGET_LEGITIMATE_ADDRESS_P): New.
18924
18925 * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18926 * config/score/score.c (score_address_p): Rename to...
18927 (score_legitimate_address_p): ... this.
18928 (TARGET_LEGITIMATE_ADDRESS_P): New.
18929 * config/score/score3.c (score3_address_p): Rename to...
18930 (score3_legitimate_address_p): ... this.
18931 * config/score/score7.c (score7_address_p): Rename to...
18932 (score7_legitimate_address_p): ... this.
18933
18934 * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
18935 THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
18936 GO_IF_LEGITIMATE_ADDRESS): Delete.
18937 * config/arm/arm-protos.h (thumb1_legitimate_address_p,
18938 thumb2_legitimate_address_p): Delete.
18939 (arm_legitimate_address_p): Rename to...
18940 (arm_legitimate_address_outer_p): ... this.
18941 * config/arm/constraints.md ("Uq"): Adjust call.
18942 * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
f3afc8a7
UB
18943 * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
18944 to...
c6c3dba9 18945 (arm_legitimate_address_outer_p): ... this.
f3afc8a7
UB
18946 (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
18947 static.
c6c3dba9
PB
18948 (TARGET_LEGITIMATE_ADDRESS_P): New.
18949
18950 * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18951 * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
18952 * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
18953 (TARGET_LEGITIMATE_ADDRESS_P): New.
18954
18955 * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18956 * config/vax/vax-protos.h (legitimate_address_p): Remove.
18957 * config/vax/vax.c (legitimate_address_p): Rename to...
18958 (vax_legitimate_address_p): ... this, make static.
18959 (TARGET_LEGITIMATE_ADDRESS_P): New.
18960
18961 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18962 * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
18963 * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
18964 (TARGET_LEGITIMATE_ADDRESS_P): New.
18965
18966 * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18967 * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
18968 * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
18969 (mmix_legitimate_address_p): ... this, make static.
18970 (TARGET_LEGITIMATE_ADDRESS_P): New.
18971
18972 * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18973 * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
18974 * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
18975 (TARGET_LEGITIMATE_ADDRESS_P): New.
18976
3bd0d9c8
PB
189772009-05-14 Paolo Bonzini <bonzini@gnu.org>
18978
18979 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
18980 of MODE_COMPLEX_INT.
18981
fe049033
RO
189822009-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
18983
18984 * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
18985 LCT_NORMAL in function call.
18986 * mips-tdump.c (print_file_desc): Add cast to enum type.
18987 * mips-tfile.c (add_ext_symbol): Add casts to enum types.
18988 (mark_stabs): Add casts to enum types.
18989 (parse_stabs_common): Add casts to enum types.
16f7ad42 18990
b0907a6c
AN
189912009-05-13 Adam Nemet <anemet@caviumnetworks.com>
18992
18993 * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
18994 Check for invalid values of LETTER.
18995
d1c8e08a
TG
189962009-05-13 Taras Glek <tglek@mozilla.com>
18997
f3afc8a7
UB
18998 * attribs.c (register_attribute): moved out attribute registration
18999 into register_attribute.
19000 * doc/plugins.texi: Documented register_attribute and
19001 PLUGIN_ATTRIBUTES.
16f7ad42
TG
19002 * gcc-plugin.h: Added forward decl for register_attribute.
19003 * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
19004 * plugin.c (register_callback, invoke_plugin_callbacks): Added
19005 PLUGIN_ATTRIBUTES boilerplate.
d1c8e08a 19006
4ed7f970
DK
190072009-05-14 Dave Korn <dave.korn.cygwin@gmail.com>
19008
19009 * config/i386/msformat-c.c (ms_printf_length_specs): Use enumeration
19010 values even in sentinel and empty entries.
19011 (ms_printf_flag_specs): Likewise.
19012 (ms_scanf_flag_specs): Likewise.
19013 (ms_strftime_flag_specs): Likewise.
19014 (ms_print_char_table): Likewise.
19015 (ms_scan_char_table): Likewise.
19016 (ms_time_char_table): Likewise.
19017
3d8fa148
DK
190182009-05-13 Doug Kwan <dougkwan@google.com>
19019
19020 * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
19021
f06257d3
AN
190222009-05-13 Adam Nemet <anemet@caviumnetworks.com>
19023
19024 * config/mips/mips.md (store): Add attributes for QI and HI.
19025 Update comment.
19026 (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
19027 (truncdi<mode>2): ... this new pattern.
19028
fb201767
BH
190292009-05-13 Brad Hards <bradh@kde.org>
19030
19031 * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
19032
c7bda60e 190332009-05-14 Jakub Jelinek <jakub@redhat.com>
efc3527a
BE
19034 Ben Elliston <bje@au.ibm.com>
19035
19036 PR middle-end/40035
19037 * dse.c (check_mem_read_rtx): Guard against width == -1.
19038
ce985b43
MM
190392009-05-13 Michael Matz <matz@suse.de>
19040
19041 PR middle-end/39976
19042 * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
19043 (trivially_conflicts_p): New function.
19044 (insert_backedge_copies): Use it.
19045
7de1d221
JJ
190462009-05-13 Janis Johnson <janis187@us.ibm.com>
19047
19048 * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
19049 (handle_stdc_pragma): Use new enum constant names.
19050 (handle_pragma_float_const_decimal64): Ditto.
19051
bfefafc6
ILT
190522009-05-13 Ian Lance Taylor <iant@google.com>
19053
19054 * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
19055 tree.def.
19056
286c4fcb
NS
190572009-05-13 Nathan Sidwell <nathan@codesourcery.com>
19058
19059 * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
19060 * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
19061 multilibs.
19062 * config/m68k/m68k.h (FL_UCLINUX): Define.
19063
ebaa6ea7
JH
190642009-05-13 Jan Hubicka <jh@suse.cz>
19065
19066 * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
19067
2b703e1a
KK
190682009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
19069
19070 * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
19071 unless -fschedule-insns is specified.
19072
c3537723
KK
190732009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
19074
19075 PR target/39561
19076 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
19077 TARGET_EXPAND_CBRANCHDI4.
19078 * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
19079 * config/sh/sh.opt (mexpand-cbranchdi): Remove.
19080 (cmpeqdi): Fix comment.
19081
cdeed45a
KK
190822009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
19083
19084 * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
19085 (sh_legitimate_address_p): Likewise.
19086 * config/sh/sh.c (sh_legitimate_index_p): New.
19087 (sh_legitimate_address_p): Likewise.
19088 * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
19089 (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
19090 (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
19091 (MAYBE_BASE_REGISTER_RTX_P): New macro.
19092 (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
19093 (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
19094 (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
19095 (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
19096 (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
19097
02f0b13a
JH
190982009-05-12 Jan Hubicka <jh@suse.cz>
19099
19100 * tree-inline.c (estimate_operator_cost): Add operands;
19101 when division happens by constant, it is cheap.
19102 (estimate_num_insns): Loads and stores are not having cost of 0;
19103 EH magic stuff is cheap; when computing runtime cost of switch,
19104 use log2 base of amount of its cases; builtin_expect has cost of 0;
19105 compute cost for moving return value of call.
19106 (init_inline_once): Initialize time_based flags.
19107 * tree-inline.h (eni_weights_d): Add time_based flag.
19108
ecb7f6de
PB
191092009-05-12 Paolo Bonzini <bonzini@gnu.org>
19110
19111 * df-core.c: Update head documentation.
19112
c24151ce
MM
191132009-05-12 Michael Meissner <meissner@linux.vnet.ibm.com>
19114
19115 PR bootstrap/40118
19116 * rs6000.c (rs6000_generate_compare): Use op1b instead of
19117 shadowing exisiting variable op1.
19118
fbdf817d
UB
191192009-05-12 Uros Bizjak <ubizjak@gmail.com>
19120
704bf7c8 19121 PR target/37179
fbdf817d
UB
19122 * config/i386/driver-i386.c (processor_signatures): New enum.
19123 (SIG_GEODE): Move from vendor_signatures to processor_signatures.
19124 (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
19125 processor signature to detect geode processor.
19126
5e8d1826
PB
191272009-05-12 Paolo Bonzini <bonzini@gnu.org>
19128
19129 Revert:
19130
19131 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
19132
19133 * optabs.c (prepare_cmp_insn): Temporarily disable test that
19134 causes spurious differences between trunk and cond-optab branch.
19135
f90b7a5a
PB
191362009-05-12 Paolo Bonzini <bonzini@gnu.org>
19137
fbdf817d
UB
19138 * dojump.c (compare_from_rtx): Delete.
19139 * expmed.c (emit_store_flag): Only try cstore_optab. Canonicalize
19140 any MODE_CC mode to the cstorecc4 pattern. Use prepare_operand, fail
f90b7a5a
PB
19141 if the comparison does not satisfy the predicate; test predicates for
19142 operands 2 and 3 of a cstore pattern. Don't try cstore optab
19143 further if one existing pattern fails.
fbdf817d 19144 * expr.h (compare_from_rtx): Delete.
f90b7a5a 19145 (prepare_operand): Declare it.
fbdf817d 19146 * optabs.c: Change "lib call" to "libcall" throughout.
f90b7a5a 19147 (bcc_gen_fctn, setcc_gen_code, trap_rtx,
fbdf817d
UB
19148 HAVE_conditional_trap, emit_cmp_insn): Delete.
19149 (can_compare_p): Delete cmp_optab case.
f90b7a5a 19150 (prepare_float_lib_cmp): Return an rtx and a machine mode.
fbdf817d
UB
19151 Accept other parameters by value.
19152 (prepare_operand): Make non-static.
19153 (prepare_cmp_insn): Return an rtx and a machine mode. Accept
19154 other parameters by value. Try to widen operands here based on
19155 an optab_methods argument and looking at cbranch_optab.
19156 (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
19157 loop. Use cbranch_optab directly.
19158 (emit_cmp_and_jump_insns): Fix comment. Adjust call to
19159 prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
19160 assertion.
19161 (emit_conditional_move, emit_conditional_add): Inline what's needed
19162 of compare_from_rtx, using new prepare_cmp_insn for the rest.
19163 (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
19164 with COMPARE. Move cmov_optab and cstore_optab above
19165 with cbranch_optab, move cmp_optab down with ucmp_optab,
19166 remove tst_otpab. Do not initialize trap_rtx.
19167 (gen_cond_trap): Do it here. Use ctrap_optab. Test predicate
f90b7a5a
PB
19168 for trap code. Do not check HAVE_conditional_trap. Use
19169 prepare_cmp_insn. Accept no predicate for operand 3.
fbdf817d
UB
19170 * optabs.h (OTI_cmp): Mark as used only for libcalls.
19171 (OTI_ctrap, ctrap_optab): New.
19172 (tst_optab): Delete.
19173 (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
19174 * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
19175 with lookup of ctrap_optab.
f3afc8a7
UB
19176 * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
19177 Delete.
fbdf817d
UB
19178 (ctrap_optab): New.
19179
19180 * combine.c (combine_simplify_rtx, simplify_set): Do not
19181 special case comparing against zero for cc0 machines.
f90b7a5a
PB
19182 * simplify-rtx.c (simplify_binary_operation_1): Never remove
19183 COMPARE on cc0 machines.
19184 (simplify_relational_operation): Return a new expression when
19185 a COMPARE could be removed.
fbdf817d
UB
19186 * final.c (final_scan_insn): Compare cc_status values
19187 against LHS of a (compare FOO (const_int 0)) cc0 source.
19188 Also check if cc_status.value is the full compare.
f90b7a5a 19189
fbdf817d
UB
19190 * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
19191 (cstoreMM4): Document.
f90b7a5a 19192 (conditional_trap): Document ctrapMM4 instead.
fbdf817d 19193 (sync_compare_and_swapMM): Refer to cbranchcc4.
f90b7a5a
PB
19194 (Dependent Patterns): Eliminate obsolete information referring to
19195 the old jump optimization phase.
fbdf817d 19196 (Canonicalization): Include cbranchcc4 case, omit canonicalization
f90b7a5a
PB
19197 of compares with 0 on cc0 machines.
19198 (Jump Patterns): Refer to MODE_CC jump patterns preferably,
19199 avoiding references to cc0. Remove text about storing operands
19200 in cmpMM.
19201 * doc/tm.texi (Condition Codes): Include blurb on different
19202 condition code representations, separate into subsections for
19203 CC0, MODE_CC and conditional execution.
19204
fbdf817d
UB
19205 * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
19206 alpha_emit_setcc): Accept operands and a machine mode.
19207 * config/alpha/alpha.c (alpha_emit_conditional_branch):
19208 Get code/op0/op1 from operands, use machine mode argument
19209 instead of alpha_compare.fp_p. Emit the branch here.
19210 (alpha_emit_setcc): Likewise, and return boolean.
19211 (alpha_emit_conditional_move): Likewise. Assert that
19212 cmp_op_mode == cmp_mode, and simplify accordingly.
19213 * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
19214 * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
19215 (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
19216 Delete.
19217 (stack probe test): Use cbranchdi4.
19218 * config/alpha/predicates.md (alpha_cbranch_operator): New.
19219
f100a4a8 19220 * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
fbdf817d
UB
19221 * config/arc/arc.h (movsicc, movsfcc): Use it.
19222 (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
19223 (cbranchsi4, cstoresi4): New.
f100a4a8 19224 (cmpsi, bCC and sCC expanders): Remove.
fbdf817d
UB
19225
19226 * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
19227 * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
19228 * config/arm/predicates.md (arm_comparison_operator): Only include
19229 floating-point operators if there is a hardware floating-point unit.
19230 * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
19231 deferring to cbranch_cc and cstore_cc respectively.
19232 (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
19233 cbranch_cc, cstore_cc): New.
19234 (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
f90b7a5a 19235 arm_compare_op1.
fbdf817d
UB
19236 (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
19237
19238 * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
19239 * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
19240 as an argument.
19241 (adjust_insn_length): Adjust calls.
19242 (avr_reorg): Handle (compare (foo) (const_int 0)).
19243 * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
19244 (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
19245 (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
19246 (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
19247 (bCC): Remove.
19248 (cbranchqi4, cbranchhi4, cbranchsi4): New.
f90b7a5a
PB
19249 (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
19250
fbdf817d
UB
19251 * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
19252 (cbranchsi4, cstorebi4, cstoresi4): New.
f90b7a5a 19253 (movbisi): This insn is duplicate, split it to zero_extend.
fbdf817d
UB
19254 * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
19255 (bfin_gen_compare): Do not use them. Emit VOIDmode SET, not BImode.
19256 (bfin_optimize_loop): Use cbranch expander.
19257 * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
19258 * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
19259 (bfin_bimode_comparison_operator): ... this.
19260 (bfin_direct_comparison_operator): New.
f100a4a8 19261
fbdf817d
UB
19262 * config/cris/cris.c (cris_normal_notice_update_cc): Look
19263 inside (compare FOO (const_int 0)).
19264 (cris_rtx_costs): Handle ZERO_EXTRACT.
19265 * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
19266 (*tstdi_non_v32): Fold in *cmpdi_non_v32.
19267 (*tstdi_v32): Delete.
19268 (*cmpdi_non_v32): Add M alternative for operand 1.
19269 (cmpsi, cmp<mode>): Make private.
19270 (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
19271 with COMPARE.
19272 (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
19273
19274 * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
19275 (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
19276 (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
f90b7a5a
PB
19277 (cc_reg_operand): New.
19278 (any_cond): Delete.
fbdf817d
UB
19279 * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
19280 crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
19281 * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
19282 * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
19283 crx_expand_scond): Delete.
19284
19285 * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
19286 (cbranchsi4): New.
19287 * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
19288 * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
19289
19290 * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
19291 cstoresi4, cstoresf4, cstoredf4): New.
19292 (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
19293 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
19294 Receive the entire operands array.
19295 * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
19296 * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
19297 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
19298 Get test/op0/op1 from the operands array.
19299 (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
19300
19301 * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
19302 (h8300_expand_store): New.
19303 * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
19304 (const_int 0)).
19305 (h8300_expand_branch): Emit compare here. Adjust for new arguments.
19306 (h8300_expand_store): New.
19307 * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
19308 or do not try to produce (set (cc0) REG).
19309 (peepholes): Wrap arguments with COMPARE. Add a peephole to
19310 change a compare into a move to a scratch register. Disable some
19311 peepholes when comparing with zero.
19312 (tstsi, tsthi, tstsi, cmpqi): Make private.
19313 (cmphi): Delete.
19314 (bCC, sCC): Delete.
19315 (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
19316 cstoresi4): New.
f90b7a5a
PB
19317
19318 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
19319 ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
19320 (ix86_emit_i387_log1p): Use gen_cbranchxf4.
19321 (ix86_emit_i387_log1p): Use cbranchxf2.
19322 (ix86_expand_setcc): Return void.
19323 * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
19324 * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
19325 cmp<MODEF>, cmpcc): Remove.
fbdf817d
UB
19326 (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
19327 cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
19328 cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
f90b7a5a
PB
19329 (sCC and bCC expanders): Remove.
19330 (stack_protect_test): Use cbranchcc4.
19331
fbdf817d
UB
19332 * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
19333 Delete.
19334 (ia64_expand_compare): Accept three rtx by reference and return void.
19335 * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
19336 (ia64_expand_compare): Replace op0/op1 with *op0/*op1. Get code
19337 from *expr. Update *expr with the BImode comparison to do.
19338 * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
19339 cmptf, bCC, sCC, conditional_trap): Delete.
f100a4a8 19340 (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
fbdf817d
UB
19341 cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
19342 cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
19343 ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
19344 * config/ia64/predicates.md (ia64_cbranch_operator): New.
19345
19346 * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
19347 type of last argument.
19348 * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
19349 (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
19350 use machine mode argument instead of branch_type. Remove dead
19351 code for floating-point comparisons.
19352 * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
19353 * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
19354 Remove.
19355 (cbranchsi4, cstoresi4): New.
19356 * config/iq2000/predicates.md (reg_or_const_operand): New.
19357
19358 * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
19359 * config/m32c/m32c.md (any_cond, gl_cond): Delete.
19360 (b<code>_op): Rewrite to...
19361 (bcc_op): ... this, using match_operator.
19362 (s<code>_op): Rewrite to...
19363 (scc_op): ... this, using match_operator.
19364 (s<code>_24_op): Rewrite to...
19365 (scc_op_24): ... this, using match_operator.
19366 (s<code>_<mode>): Rewrite to...
19367 (cstore<mode>4): ... this, using match_operator.
19368 (s<code>_<mode>_24): Rewrite to...
19369 (cstore<mode>4_24): ... this, using match_operator.
19370 * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
19371 m32c_unpend_compare, m32c_expand_scc): Delete.
19372 * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
19373 m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
19374 (m32c_expand_movcc): Change NE to EQ if necessary.
19375 (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
19376
19377 * config/m32r/m32r-protos.h (gen_cond_store): New.
19378 * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
19379 (gen_cond_store): New, from sCC patterns.
19380 (m32r_expand_block_move): Use cbranchsi4.
19381 * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
19382 * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
19383 (cbranchsi4, cstoresi4): New.
f100a4a8 19384
fbdf817d
UB
19385 * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
19386 Delete.
19387 (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
f90b7a5a 19388 (m68hc11_notice_update_cc): Look into a compare with 0.
fbdf817d
UB
19389 * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
19390 Delete.
19391 * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
19392 cmphi, cmpqi, bCC): Delete.
19393 (cbranchsi4, cbranchhi4, cbranchqi4): New.
19394 (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
19395 bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
19396 sets with COMPARE.
19397
19398 * config/m68k/predicates.md (m68k_cstore_comparison_operator,
19399 const0_operand, const1_operand, m68k_subword_comparison_operand): New.
19400 * config/m68k/constraints.md (H): New.
19401 * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
19402 the define_insn below.
19403 (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
19404 (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
19405 *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
19406 patterns): Wrap RHS with COMPARE.
19407 (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
19408 (*cmpdi_internal): Name this pattern.
19409 (cmpdi): Change to define_insn.
19410 (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
19411 cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
19412 (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
19413 predicate.
19414 (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
19415 sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
19416 (conditional_trap): Change to...
19417 (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
19418 (*conditional_trap): Use the ordered_comparison_operator and
19419 const1_operand predicates.
19420 * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
19421 (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
19422 (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
19423 * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
19424
19425 * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
19426 mcore_modify_comparison, mcore_gen_compare_reg): Remove.
f100a4a8 19427 (mcore_gen_compare): New.
fbdf817d
UB
19428 * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
19429 (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
19430 (mcore_gen_compare): ... this.
19431 * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
19432 (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
19433 (stack probe pattern): Use cbranchsi4.
19434
19435 * config/mips/predicates.md (mips_cstore_operator): New.
19436 * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
19437 * config/mips/mips.md (any_cond): Delete.
19438 (conditional_trap): Rename to ctrap<GPR:mode>4. Adjust predicates,
19439 always succeed.
19440 (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
19441 fixuns_truncsfdi2): Use cbranch patterns.
f100a4a8 19442 (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
fbdf817d
UB
19443 (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
19444 Adjust call to mips_expand_conditional_branch.
19445 (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
19446 cstore<GPR:mode>4.
19447 * config/mips/mips-protos.h (mips_expand_conditional_branch,
19448 mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
19449 * config/mips/mips.c (cmp_operands): Delete.
19450 (mips_emit_compare): Get comparison operands from *op0/*op1.
19451 (mips_expand_scc): Get code/op0/op1/target from operands. Assert
19452 that it succeeds. Use op0/op1 instead of cmp_operands.
19453 (mips_expand_conditional_branch, mips_expand_conditional_move,
19454 mips_expand_conditional_trap): Likewise.
f100a4a8 19455 (mips_block_move_loop): Use cbranch patterns.
fbdf817d
UB
19456 * config/mips/mips.h (cmp_operands): Delete.
19457
19458 * config/mmix/mmix.c (mmix_valid_comparison): Delete.
19459 (mmix_gen_compare_reg): Just return a register in the right CC mode.
19460 * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
19461 * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
19462 (*cmpcc_folded): Rename to...
19463 (*cmpdi_folded): this.
19464 (*cmpcc): Rename to...
19465 (*cmps): ... this.
19466 (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
19467 (bCC): Remove.
19468 (cbranchdi4): New.
19469 (cbranchdf4): New. Handle invalid comparisons here.
19470 * config/mmix/predicates.md (float_comparison_operator): New.
19471
19472 * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
19473 zero_extract to be cheap in (compare (zero_extract) (const_int 0).
19474 * config/mn10300/mn10300.md (tst): Delete.
19475 (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
19476 Name these patterns and wrap RHS in a compare.
19477 (*cmpsi): Make this pattern private. Include tst.
19478 (*cmpsf): Make this pattern private.
19479 (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
19480 (compare with zero peepholes): Likewise.
19481 (bCC): Remove.
19482 (cbranchsi4, cbranchsf4): New.
19483 (casesi): Use cbranchsi4.
19484
19485 * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
19486 hppa_branch_type): Delete.
19487 (return_addr_rtx): Use cbranchsi4.
19488 (emit_bcond_fp): Accept all operands. Replace CODE with NE.
19489 Emit CCFPmode comparison here.
19490 (gen_cmp_fp): Delete, now part of emit_bcond_fp.
19491 * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
19492 hppa_branch_type): Delete.
19493 * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
19494 (movsicc, movdicc): Remove references to hppa_compare_op0,
19495 hppa_compare_op1 and compare_from_rtx.
19496 (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
19497 (casesi): Use cbranchsi4.
19498
19499 * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
19500 * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
19501 * config/pdp11/pdp11.md (register_or_const0_operand): New.
19502 (cmpdf, cmphi, cmpqi): Make private. Add tst alternatives.
19503 (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
19504 (bCC): Delete.
19505 (cbranchdf4, cbranchhi4, cbranchqi4): New.
19506 (*branch, *branch_inverted): New.
19507
19508 * config/picochip/picochip.md (cbranchhi4): Use
19509 ordered_comparison_operator.
19510 (cmphi, bCC): Remove.
19511
19512 * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
19513 (trap_comparison_operator): Delete.
19514 * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
19515 rs6000_emit_cbranch): Accept mode and operands.
19516 * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
f100a4a8 19517 rs6000_compare_fp_p): Delete.
fbdf817d
UB
19518 (rs6000_generate_compare): Accept mode and comparison. Extract code
19519 and op0/op1 from there. Replace references to rs6000_compare_op0
19520 and rs6000_compare_op1.
19521 (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
19522 extract result from passed operands.
19523 (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
19524 extract loc from passed operands.
19525 (rs6000_emit_cmove): Likewise.
19526 * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
19527 rs6000_compare_fp_p): Delete.
19528 * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
19529 (cbranch<GPR>4, cbranch<FP>4): New.
19530 (cstore<mode>4): New. Consolidate here all choices about when to use
19531 portable or specialized sCC sequences.
19532 (stack_protect_test): Use cbranchsi4.
19533 (conditional_trap): Replace with ctrap<GPR>4.
19534 (conditional trap insn): Replace trap_comparison_operator with
f100a4a8 19535 ordered_comparison_operator.
fbdf817d
UB
19536
19537 * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
19538 (s390_emit_prologue): Use ctrap.
19539 * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
19540 * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
19541 New predicates replacing...
19542 * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
19543 (cmp<GPR>, cmp<FP>, cmpcc): Delete.
19544 (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
19545 (add<mode>cc): Do not use s390_compare_op0/op1.
19546 (s<code>): Change to...
19547 (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
19548 (seq): Change to...
19549 (cstorecc4): ... this. Handle EQ or NE equally.
19550 (*sne): Un-privatize for use in cstorecc4.
19551 (b<code>): Change to...
19552 (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
19553 (conditional_trap): Replace with...
19554 (ctrap<GPR>4, ctrap<FP>4): ... these.
19555 (stack_protect): Use cbranchcc4.
19556
19557 * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
19558 * config/score/score-protos.h (score_gen_cmp): Delete.
19559 * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
19560 (score_block_move-loop): Use cbranchsi4.
19561 * config/score/score.md (cbranchsi4): New.
19562 (cmpsi, bCC): Delete.
19563 * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
19564 (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
19565 * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
19566 (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
19567 * config/score/score3.h (score3_gen_cmp): Delete.
19568 * config/score/score7.h (score7_gen_cmp): Delete.
19569
19570 * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
19571 (sh_emit_scc_to_t): ... this. Return void.
19572 (from_compare): Rename to...
19573 (sh_emit_compare_and_branch): ... this.
19574 (sh_emit_compare_and_set): New.
19575 (sh_expand_t_scc): Accept operands.
19576 * config/sh/predicates.md (sh_float_comparison_operator): New.
19577 * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
19578 (prepare_scc_operands): Rename to...
19579 (sh_emit_scc_to_t): ... this. Return void. Get op0/op1 from
19580 arguments.
19581 (sh_emit_cheap_store_flag): New.
f90b7a5a 19582 (sh_emit_set_t_insn): New.
fbdf817d
UB
19583 (from_compare): Rename to...
19584 (sh_emit_compare_and_branch): ... this. Accept mode. Rewrite
19585 handling of TARGET_SH2E floating point to avoid recursive call.
19586 Generate branch here.
19587 (sh_emit_compare_and_set): New.
19588 (sh_expand_t_scc): Get op0/op1 from arguments.
19589 (sh_emit_cheap_store_flag): New.
19590 * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
19591 cases.
f90b7a5a 19592 (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
fbdf817d
UB
19593 (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
19594 (movsicc, movdicc): Do nothing when it recreated operands from
19595 sh_compare_*. Use sh_emit_cheap_store_flag. Adjust call to
19596 prepare_scc_operands (now sh_emit_scc_to_t).
19597 (udivdi3): Use cstoresi4.
19598 (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
19599 bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
19600 (cbranchint4_media, cbranchfp4_media): New.
19601 (casesi): Use cbranchdi4.
19602 (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
19603 Delete.
19604 (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
19605 (movnegt): Remove second operand.
19606 (cbranchsf4, cbranchdf4): New.
19607 (stack_protect): Use cbranchdi4/cbranchsi4.
19608
19609 * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
19610 (gen_compare_reg): Accept comparison, extract part of it to...
f100a4a8 19611 (gen_compare_reg_1): ... this.
fbdf817d
UB
19612 (gen_compare_operator): Delete.
19613 (gen_v9_scc): Accept separate destination, comparison code and arms.
19614 Do not use sparc_compare_op0/sparc_compare_op1.
19615 (emit_scc_insn, emit_conditional_branch_insn): New.
19616 (emit_v9_brxx): Make static. Remove useless assertion.
19617 (sparc_emit_float_lib_cmp): Return RTL instead of calling
19618 emit_cmp_insn.
19619 (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
19620 * config/sparc/sparc-protos.h (gen_compare_reg,
f90b7a5a
PB
19621 sparc_emit_float_lib_cmp): Adjust prototype.
19622 (emit_scc_insn, emit_conditional_branch_insn): New.
19623 (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
fbdf817d
UB
19624 * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
19625 * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
19626 iterators to the top.
19627 (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
19628 snesi_special_extend, sCC, bCC, seqdi_special_trunc,
f90b7a5a 19629 snedi_special_trunc): Delete.
fbdf817d 19630 (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
f90b7a5a 19631 and snedi_special_trunc.
fbdf817d
UB
19632 (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
19633 cbranchdi4, cbranch<F:mode>4): New.
19634 (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
19635 here. Use gen_compare_reg instead of gen_compare_operator.
19636 (conditional_trap): Replace with...
19637 (ctrapsi4, ctrapdi4): ... this.
19638 (stack_protect_test): Use cbranchcc4.
19639
19640 * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
19641 argument to rtx.
f100a4a8 19642 * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
fbdf817d
UB
19643 (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
19644 Change spu_compare_op0/op1 to op0/op1 throughout. Get target
19645 from operands[0] or operands[3] depending on is_set.
19646 * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
19647 * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
19648 cmpdf, bCC), sCC: Remove.
f100a4a8 19649 (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
fbdf817d
UB
19650 cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
19651 cstoredf4): New.
19652 (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
19653 spu_emit_branch_or_set.
19654
19655 * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
19656 Add two arguments.
19657 * config/stormy16/stormy16.h (xstormy16_compare_op0,
19658 xstormy16_compare_op1): Delete.
19659 * config/stormy16/stormy16.c (xstormy16_compare_op0,
f100a4a8 19660 xstormy16_compare_op1): Delete.
fbdf817d
UB
19661 (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
19662 Adjust calls.
19663 * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
19664 (cmphi, cmpsi, bCC): Remove.
19665
19666 * config/v850/v850.md (tstsi, cmpsi): Fold into...
19667 (*cmpsi): ... this one.
19668 (cbranchsi4, cstoresi4): New.
19669 (bCC expanders): Delete.
19670 (sCC insns): Fold into...
19671 (*setcc): ... this one.
f100a4a8 19672 (casesi): Do not use gen_cmpsi and gen_bgtu.
f90b7a5a
PB
19673 (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
19674 (movsicc): Simplify.
19675 * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
19676
fbdf817d
UB
19677 * config/vax/vax-protos.h (cond_name): New.
19678 (vax_output_conditional_branch): Remove.
19679 * config/vax/vax.c (cond_name): New.
19680 (vax_output_conditional_branch): Remove.
19681 * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
19682 * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
19683 (cmp<VAXint>, cmp<VAXfp>): Privatize. Add constraints for tst.
19684 (bit<VAXint>): Wrap source with (compare).
19685 (b<code> and following unnamed pattern): Rename to *branch and
19686 *branch_reversed. Change macroization to match_operator.
19687 (cbranch<VAXint>4, cbranch<VAXfp>4): New.
19688
19689 * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
19690 * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
19691 Change last argument to machine_mode.
19692 (xtensa_expand_scc): Add machine_mode argument.
19693 * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
19694 (gen_conditional_move, xtensa_expand_conditional_branch,
19695 xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
19696 instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
19697 Adjust operand numbers.
19698 * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
19699 Delete.
19700 * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
19701 (cmpsi, cmpsf, b<code>, s<code>): Delete.
19702 (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
f90b7a5a 19703
16670495
PB
197042009-05-12 Paolo Bonzini <bonzini@gnu.org>
19705
19706 * optabs.c (prepare_cmp_insn): Temporarily disable test that
19707 causes spurious differences between trunk and cond-optab branch.
19708
4a4a4e99
AO
197092009-05-12 Alexandre Oliva <aoliva@redhat.com>
19710
19711 PR target/37137
19712 * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
19713
72b9acff
AO
197142009-05-12 Alexandre Oliva <aoliva@redhat.com>
19715
19716 * tree.c (iterative_hash_pointer): Delete.
19717 (iterative_hash_expr): Short-circuit handling of NULL pointer.
19718 Hash UIDs and versions of SSA names. Don't special-case built-in
19719 function declarations.
19720
b7dd69ac
ILT
197212009-05-11 Ian Lance Taylor <iant@google.com>
19722
19723 PR bootstrap/40103
19724 * graphite.c: Force -Wc++-compat to only be a warning before
19725 #including "cloog/cloog.h".
19726
ed102b70
MJ
197272009-05-11 Martin Jambor <mjambor@suse.cz>
19728
19729 * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
f100a4a8 19730
08f1af2e
JH
197312009-05-11 Jan Hubicka <jh@suse.cz>
19732
19733 * tree-ssa-loop-ivcanon.c: Include target.h
19734 (struct loop_size): new structure.
19735 (constant_after_peeling): New predicate.
19736 (tree_estimate_loop_size): New function.
19737 (estimated_unrolled_size): Rewrite for new estimates.
19738 (try_unroll_loop_completely): Use new estimates.
19739 * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
19740
a7d39bd3
AP
197412009-05-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
19742
19743 * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
19744 libcpp interface change.
19745 (spu_macro_to_expand): Likewise.
19746
f5a1f0d0
PB
197472009-05-11 Paolo Bonzini <bonzini@gnu.org>
19748
19749 PR tree-optimization/40026
19750 * gimplify.c (gimplify_init_constructor): Change initial conditional
19751 to assertion. Rewrite TREE_OPERAND (*expr_p, 1) after
19752 optimize_compound_literals_in_ctor.
19753
c260f01f
NS
197542009-05-11 Nathan Sidwell <nathan@codesourcery.com>
19755
19756 * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
19757 New devices.
19758 * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
19759
df398a37
L
197602009-05-11 H.J. Lu <hongjiu.lu@intel.com>
19761
19762 * tree-vect-data-refs.c (vect_analyze_group_access): Use
19763 HOST_WIDE_INT for gap.
19764
4da39468
IR
197652009-05-11 Ira Rosen <irar@il.ibm.com>
19766
19767 PR tree-optimization/40074
19768 * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
19769 account in group size and step comparison.
19770
4effdf02
RG
197712009-05-11 Richard Guenther <rguenther@suse.de>
19772
19773 * passes.c (init_optimization_passes): Strip now incorrect comment.
19774 (execute_function_todo): Do not set PROP_alias.
19775 * tree-pass.h (PROP_alias): Remove.
19776 * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
19777 * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
19778 * tree-nrv.c (pass_return_slot): Likewise.
19779 * tree-object-size.c (pass_object_sizes): Likewise.
19780 * tree-ssa-dom.c (pass_dominator): Likewise.
19781 (pass_phi_only_cprop): Likewise.
19782 * tree-ssa-dse.c (pass_dse): Likewise.
19783 * tree-ssa-phiopt.c (pass_phiopt): Likewise.
19784 (pass_cselim): Likewise.
19785 * tree-ssa-pre.c (pass_pre): Likewise.
19786 (pass_fre): Likewise.
19787 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
19788 * tree-ssa-sink.c (pass_sink_code): Likewise.
19789 * tree-stdarg.c (pass_stdarg): Likewise.
19790 * tree-tailcall.c (pass_tail_calls): Likewise.
19791 * tree-vrp.c (pass_vrp): Likewise.
19792
24b97832
ILT
197932009-05-10 Ian Lance Taylor <iant@google.com>
19794
19795 * basic-block.h (enum profile_status): Break out of struct
19796 control_flow_graph.
19797 * cgraph.h (struct inline_summary): Break out of struct
19798 cgraph_local_info.
19799 * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
19800 of struct cgraph_order_sort.
fbdf817d 19801 * combine.c (enum undo_kind): New enum, broken out of struct undo.
24b97832
ILT
19802 * cse.c (struct branch_path): Break out of struct
19803 cse_basic_block_data.
19804 * except.h (enum eh_region_type): Break out of struct eh_region.
19805 * gcc.c (enum add_del): Break out of struct modify_target.
fbdf817d 19806 * genrecog.c (enum decision_type): Break out of struct decision_test.
24b97832
ILT
19807 * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
19808 ggc_pch_data.
fbdf817d
UB
19809 * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
19810 * regmove.c (enum match_use): New enum, broken out of struct match.
24b97832
ILT
19811 * sched-int.h (enum post_call_group): New enum, broken out of
19812 struct deps.
19813 (struct deps_reg): Break out of struct deps.
19814 * target.h (struct asm_int_op): Break out of struct gcc_target.
19815 * tree-eh.c (struct goto_queue_node): Break out of struct
19816 leh_tf_state.
19817 * tree-inline.h (enum copy_body_cge_which): Break out of
19818 copy_body_data.
19819 * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
19820
19821 * c-decl.c (in_struct, struct_types): New static variables.
19822 (pushtag): Add loc parameter. Change all callers.
19823 (lookup_tag): Add ploc parameter. Change all callers.
19824 (check_compound_literal_type): New function.
19825 (parser_xref_tag): Add loc parameter. Change all callers. If
19826 -Wc++-compat, warn about struct/union/enum types defined within a
19827 struct or union.
19828 (start_struct): Add enclosing_in_struct, enclosing_struct_types,
19829 and loc parameters. Change all callers. Change error calls to
19830 error_at, using loc. For a redefinition, if the location of the
19831 original definition is known, report it. Set in_struct and
fbdf817d 19832 struct_types. If -Wc++-compat warn if in sizeof, typeof, or alignof.
24b97832
ILT
19833 (finish_struct): Add new parameters enclosing_in_struct and
19834 enclosing_struct_types. Change all callers. Set
19835 C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
19836 in the struct. If in a struct, add this struct to struct_types.
19837 (start_enum): Add loc parameter. Change all callers. Use
19838 error_at for errors, using loc. For a redefinition, if the
19839 location of the original definition is known, report it. If in a
19840 struct, add this enum type to struct_types. If -Wc++-compat warn
19841 if in sizeof, typeof, or alignof.
fbdf817d
UB
19842 * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
19843 (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
24b97832
ILT
19844 (c_parser_enum_specifier): Get enum location for start_enum.
19845 (c_parser_struct_or_union_specifier): Get struct location for
19846 start_struct. Save in_struct and struct_types status between
19847 start_struct and finish_struct.
19848 (c_parser_cast_expression): Get location of cast.
19849 (c_parser_alignof_expression): Get location of type.
19850 (c_parser_postfix_expression): Likewise.
19851 (c_parser_postfix_expression_after_paren_type): Add type_loc
fbdf817d
UB
19852 parameter. Change all callers. Call check_compound_literal_type.
19853 Use type_loc for error about variable size type.
19854 * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
19855 of an enum constant from an enum type defined in a struct or union.
24b97832
ILT
19856 (c_cast_expr): Add loc parameter. Change all callers. If
19857 -Wc++-compat, warn about defining a type in a cast.
19858 * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
19859 (start_enum, start_struct, finish_struct): Update declarations.
19860 (parser_xref_tag, c_cast_expr): Update declarations.
19861 (check_compound_literal_type): Declare.
19862
7a2738fa
BE
198632009-05-11 Ben Elliston <bje@au.ibm.com>
19864
19865 * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
19866 for recent libcpp interface change.
19867 (rs6000_macro_to_expand): Likewise.
19868
af618949
MM
198692009-05-10 Michael Matz <matz@suse.de>
19870
19871 PR target/40031
19872 * config/arm/arm.c (require_pic_register): Emit on entry edge,
19873 not at entry of function.
19874
b7d7a473
RG
198752009-05-10 Richard Guenther <rguenther@suse.de>
19876
19877 PR tree-optimization/40081
19878 Revert
19879 * tree-sra.c (instantiate_element): Instantiate scalar replacements
19880 using the main variant of the element type. Do not fiddle with
19881 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
19882
19883 * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
19884 structs with volatile fields.
19885
078c3644
JH
198862009-05-10 Jan Hubicka <jh@suse.cz>
19887
19888 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
fbdf817d
UB
19889 (estimate_move_cost): Assert that it does not get called for
19890 VOID_TYPE_P.
078c3644
JH
19891 (estimate_num_insns): Skip VOID types in argument handling.
19892 (optimize_inline_calls): Delete unreachable blocks and verify that
19893 callgraph is valid.
19894
39ff5a96
JH
198952009-05-10 Jan Hubicka <jh@suse.cz>
19896
19897 * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
19898 * cgraph.c (cgraph_mark_address_taken_node): New function.
19899 (dump_cgraph_node): Dump new flag.
19900 * cgraph.h (struct cgraph_node): Add address_taken.
19901 (cgraph_mark_address_taken_node): New function.
39ff5a96
JH
19902 * ipa.c (cgraph_postorder): Prioritize functions with address taken
19903 since new direct calls can be born.
19904
9a0c6187
JM
199052009-05-10 Joseph Myers <joseph@codesourcery.com>
19906
19907 * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
19908 tok->val.node.node.
19909
4b685e14
JH
199102009-05-10 Jan Hubicka <jh@suse.cz>
19911
19912 PR middle-end/40084
fb0be169
EB
19913 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
19914 argument; rewrite.
4b685e14
JH
19915 (cgraph_update_edges_for_call_stmt): Take old_decl argument.
19916 * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
19917 * tree-inline.c (copy_bb): Set frequency correctly.
fb0be169
EB
19918 (fold_marked_statements): Update call to
19919 cgraph_update_edges_for_call_stmt.
4b685e14 19920
29d08eba
JM
199212009-05-10 Joseph Myers <joseph@codesourcery.com>
19922
19923 * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
19924 identifiers in diagnostics.
19925 * config/arm/arm.c (arm_handle_fndecl_attribute,
19926 arm_handle_isr_attribute): Likewise.
19927 * config/avr/avr.c (avr_handle_progmem_attribute,
782dc37a 19928 avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
29d08eba
JM
19929 * config/bfin/bfin.c (handle_int_attribute,
19930 bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
19931 bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
19932 bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
19933 Likewise.
19934 * config/darwin.c (darwin_handle_kext_attribute,
19935 darwin_handle_weak_import_attribute): Likewise.
19936 * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
19937 h8300_handle_eightbit_data_attribute,
19938 h8300_handle_tiny_data_attribute): Likewise.
19939 * config/i386/i386.c (ix86_handle_cconv_attribute,
782dc37a 19940 ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
29d08eba
JM
19941 * config/i386/winnt.c (ix86_handle_shared_attribute,
19942 ix86_handle_selectany_attribute): Likewise.
19943 * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
19944 * config/m32c/m32c.c (function_vector_handler): Likewise.
19945 * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
19946 m68hc11_handle_fntype_attribute): Likewise.
19947 * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
19948 * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
19949 * config/mips/mips.c (mips_insert_attributes,
19950 mips_merge_decl_attributes, mips_expand_builtin): Likewise.
19951 * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
19952 rs6000_handle_struct_attribute): Likewise.
19953 * config/sh/sh.c (sh_insert_attributes,
19954 sh_handle_resbank_handler_attribute,
19955 sh_handle_interrupt_handler_attribute,
19956 sh2a_handle_function_vector_handler_attribute,
19957 sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
19958 Likewise.
19959 * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
19960 * config/spu/spu.c (spu_handle_fndecl_attribute,
19961 spu_handle_vector_attribute): Likewise.
19962 * config/stormy16/stormy16.c
19963 (xstormy16_handle_interrupt_attribute): Likewise.
19964 * config/v850/v850-c.c (ghs_pragma_section): Likewise.
19965 * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
19966
f41c4af3
JM
199672009-05-10 Joseph Myers <joseph@codesourcery.com>
19968
782dc37a 19969 * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
f41c4af3
JM
19970 (pp_translate_identifiers): New.
19971 (pp_identifier): Only conditionally translate identifier to locale
19972 character set.
19973 * pretty-print.c (pp_construct): Set pp_translate_identifiers.
19974 (pp_base_tree_identifier): Only conditionally translate identifier
19975 to locale character set.
19976 * c-pretty-print.c (M_): Define.
19977 (pp_c_type_specifier, pp_c_primary_expression): Mark English
19978 fragments for conditional translation with M_.
19979 * tree-pretty-print.c (maybe_init_pretty_print): Disable
19980 identifier translation.
19981
896d7dbd
RG
199822009-05-10 Richard Guenther <rguenther@suse.de>
19983
19984 PR tree-optimization/40081
19985 * tree-sra.c (instantiate_element): Instantiate scalar replacements
19986 using the main variant of the element type. Do not fiddle with
19987 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
19988
9a23acef
JH
199892009-05-09 Jan Hubicka <jh@suse.cz>
19990
19991 PR middle-end/40080
19992 * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
19993 indirect calls; verify cgraph afterwards.
19994
d563610d
JH
199952009-05-09 Jan Hubicka <jh@suse.cz>
19996
19997 PR bootstrap/40082
19998 * ipa.c (update_inlined_to_pointer): New function.
19999 (cgraph_remove_unreachable_nodes): Use it.
20000
f08a18d0
JH
200012009-05-09 Jan Hubicka <jh@suse.cz>
20002
20003 * tree-eh.c (struct leh_state): Remove prev_try.
20004 (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
20005 not track prev_try.
f100a4a8 20006 * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
f08a18d0
JH
20007 copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
20008 remove_eh_handler_and_replace, foreach_reachable_handler,
20009 verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
20010 * except.h (struct eh_region): Remove eh_region_u_cleanup.
20011 (gen_eh_region_cleanup): Update prototype.
20012
0afd7219
JH
200132009-05-09 Jan Hubicka <jh@suse.cz>
20014
20015 PR middle-end/40043
20016 * except.c (copy_eh_region): Always set prev_try.
20017 (redirect_eh_edge_to_label): Find outer try.
20018 (foreach_reachable_handler): When looking for prev try
20019 handle case where previous try is not going to be taken.
20020
ad6c0864
MM
200212009-05-07 Michael Meissner <meissner@linux.vnet.ibm.com>
20022
20023 PR tree-optimization/40049
20024 * tree-vect-stmts.c (vectorizable_operation): If the machine has
20025 only vector/vector shifts, convert the type of the constant to the
20026 appropriate type to avoid building incorrect trees, which
20027 eventually have problems with garbage collection.
20028
c94f9067
JM
200292009-05-08 Joseph Myers <joseph@codesourcery.com>
20030
20031 * fold-const.c (fold_binary): Do not fold multiplication by 1 or
20032 -1 for complex floating-point types if honoring signed zeros.
20033
9187e02d
JH
200342009-05-08 Jan Hubicka <jh@suse.cz>
20035
20acb8a2
EB
20036 * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
20037 argument; handle correctly when profile is absent.
9187e02d
JH
20038 (build_cgraph_edges): Update.
20039 (rebuild_cgraph_edges): Update.
20acb8a2
EB
20040 * cgraph.c: Do not include varray.h.
20041 (cgraph_set_call_stmt_including_clones): New function.
20042 (cgraph_create_edge_including_clones): Likewise
20043 (cgraph_update_edges_for_call_stmt_node): New static cfunction.
9187e02d
JH
20044 (cgraph_update_edges_for_call_stmt): Handle clones.
20045 (cgraph_remove_node): Handle clone tree.
20046 (cgraph_remove_node_and_inline_clones): New function.
20047 (dump_cgraph_node): Dump clone tree.
20048 (cgraph_clone_node): Handle clone tree.
20acb8a2 20049 (clone_function_name): Bring here from tree-inline.c.
9187e02d 20050 (cgraph_create_virtual_clone): New function.
20acb8a2
EB
20051 * cgraph.h (ipa_replace_map): Move here from ipa.h.
20052 (cgraph_clone_info): New function.
9187e02d 20053 (strut cgraph_node): Add clone_info and new clone tree pointers.
20acb8a2
EB
20054 (cgraph_remove_node_and_inline_clones,
20055 cgraph_set_call_stmt_including_clones,
20056 cgraph_create_edge_including_clones,
20057 cgraph_create_virtual_clone): Declare.
9187e02d
JH
20058 (cgraph_function_versioning): Use VEC argument.
20059 (compute_call_stmt_bb_frequency): Update prototype.
20060 (cgraph_materialize_all_clones): New function.
20061 * ipa-cp.c (ipcp_update_cloned_node): Remove.
20062 (ipcp_create_replace_map): Update to VECtors.
20063 (ipcp_update_callgraph): Use virtual clones.
20064 (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
20065 (ipcp_update_profiling): Do not update local profiling.
20066 (ipcp_insert_stage): Use VECtors and virtual clones.
20067 * cgraphunit.c (verify_cgraph_node): Verify clone tree.
20068 (clone_of_p): New function.
20069 (cgraph_preserve_function_body_p): Use clone tree.
20070 (cgraph_optimize): Materialize clones.
20071 (cgraph_function_versioning): Update for VECtors.
20072 (save_inline_function_body): Use clone tree.
20acb8a2
EB
20073 (cgraph_materialize_clone): New function.
20074 (cgraph_materialize_all_clones): Likewise.
9187e02d
JH
20075 * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
20076 * ipa.c: Include gimple.h.
20077 (cgraph_remove_unreachable_nodes): Use clone tree.
20acb8a2
EB
20078 * ipa-prop.c (ipa_note_param_call): Update call to
20079 compute_call_stmt_bb_frequencycall.
9187e02d 20080 * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
20acb8a2 20081 * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
9187e02d
JH
20082 (copy_bb): Handle updating of clone tree; add new edge when new call
20083 appears.
20084 (expand_call_inline): Be strict about every call having edge.
20085 (clone_fn_id_num, clone_function_name): Move to cgraph.c.
20086 (delete_unreachable_blocks_update_callgraph): New function.
20acb8a2
EB
20087 (tree_function_versioning): Use VECtors; always remove unreachable
20088 blocks and fold conditionals.
20089 * tree-inline.h: Do not include varray.h.
9187e02d
JH
20090 (tree_function_versioning): Remove.
20091 * Makefile.in (GTFILES): Remove tree-inline.c
20092 * passes.c (do_per_function): Do only functions having body.
20acb8a2
EB
20093 * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
20094 tree.
9187e02d 20095
9b86d6bb
L
200962009-05-08 H.J. Lu <hongjiu.lu@intel.com>
20097 Andrew Morrow <acm@google.com>
20098
20099 PR c/36892
20100 * c-common.c (c_common_attribute_table): Permit deprecated
20101 attribute to take an optional argument.
20102 (handle_deprecated_attribute): If the optional argument to
20103 __attribute__((deprecated)) is not a string ignore the attribute
20104 and emit a warning.
20105
20106 * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
20107 * c-typeck.c (build_component_ref): Likewise.
20108 (build_external_ref): Likewise.
20109
20110 * toplev.c (warn_deprecated_use): Add an attribute argument.
20111 Emit the message associated with __attribute__((deprecated)).
20112
20113 * toplev.h (warn_deprecated_use): Updated.
20114
20115 * doc/extend.texi: Document new optional parameter to
20116 __attribute__((deprecated))
20117
82ad047f
ME
201182009-05-08 Michael Eager <eager@eagercon.com>
20119
20120 * config/rs6000/rs6000.md (*movdf_softfloat32): replace
20121 !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
20122
788d3075
RG
201232009-05-08 Richard Guenther <rguenther@suse.de>
20124
20125 PR tree-optimization/40062
20126 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
20127 Avoid exponential behavior.
20128
00952e97
PB
201292009-05-08 Paolo Bonzini <bonzini@gnu.org>
20130
20131 PR rtl-optimization/33928
20132 PR 26854
20133 * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
20134 process_uses, build_single_def_use_links): New.
20135 (update_df): Update use_def_ref.
20136 (forward_propagate_into): Use get_def_for_use instead of use-def
20137 chains.
20138 (fwprop_init): Call build_single_def_use_links and let it initialize
20139 dataflow.
20140 (fwprop_done): Free use_def_ref.
20141 (fwprop_addr): Eliminate duplicate call to df_set_flags.
f100a4a8 20142 * df-problems.c (df_rd_simulate_artificial_defs_at_top,
00952e97
PB
20143 df_rd_simulate_one_insn): New.
20144 (df_rd_bb_local_compute_process_def): Update head comment.
20145 (df_chain_create_bb): Use the new RD simulation functions.
f100a4a8 20146 * df.h (df_rd_simulate_artificial_defs_at_top,
00952e97
PB
20147 df_rd_simulate_one_insn): New.
20148 * opts.c (decode_options): Enable fwprop at -O1.
20149 * doc/invoke.texi (-fforward-propagate): Document this.
20150
2ca862e9
JM
201512009-05-08 Joseph Myers <joseph@codesourcery.com>
20152
20153 PR c/24581
20154 * c-typeck.c (build_binary_op): Handle arithmetic between one real
20155 and one complex operand specially.
20156 * tree-complex.c (some_nonzerop): Do not identify a real value as
20157 zero if flag_signed_zeros.
20158
3e807ffc
PB
201592009-05-08 Paolo Bonzini <bonzini@gnu.org>
20160
20161 PR rtl-optimization/33928
7925c06c 20162 * loop-invariant.c (record_use): Fix && vs. || mishap.
3e807ffc 20163
1bfdbb29
PB
201642009-05-08 Paolo Bonzini <bonzini@gnu.org>
20165
20166 PR rtl-optimization/33928
e913423f
EB
20167 * loop-invariant.c (struct use): Add addr_use_p.
20168 (struct def): Add n_addr_uses.
20169 (struct invariant): Add cheap_address.
20170 (create_new_invariant): Set cheap_address.
20171 (record_use): Accept df_ref. Set addr_use_p and update n_addr_uses.
20172 (record_uses): Pass df_ref to record_use.
20173 (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
20174 used only as such.
1bfdbb29 20175
702cb2a0
KK
201762009-05-08 Kaz Kojima <kkojima@gcc.gnu.org>
20177
20178 * config/sh/sh.c: Do not include c-pragma.h.
20179
5e8df753
AP
201802009-05-07 Andrew Pinski <andrew_pinski@playstation.sony.com>
20181
20182 * config/spu/spu.c: Remove include of c-common.h.
20183
6ec637a4
JJ
201842009-05-07 Janis Johnson <janis187@us.ibm.com>
20185
20186 PR c/39037
20187 * c-common.h (mark_valid_location_for_stdc_pragma,
20188 valid_location_for_stdc_pragma_p, set_float_const_decimal64,
20189 clear_float_const_decimal64, float_const_decimal64_p): New.
20190 * c.opt (Wunsuffixed-float-constants): New.
20191 * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
20192 unsuffixed float constant, handle new warning.
20193 * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
20194 * c-decl.c (c_scope): New flag float_const_decimal64.
20195 (set_float_const_decimal64, clear_float_const_decimal64,
20196 float_const_decimal64_p): New.
20197 (push_scope): Set new flag.
20198 * c-parser.c (c_parser_translation_unit): Mark when it's valid
20199 to use STDC pragmas.
20200 (c_parser_external_declaration): Ditto.
20201 (c_parser_compound_statement_nostart): Ditto.
20202 * c-pragma.c (valid_location_for_stdc_pragma,
20203 mark_valid_location_for_stdc_pragma,
20204 valid_location_for_stdc_pragma_p, handle_stdc_pragma,
20205 handle_pragma_float_const_decimal64): New.
20206 (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
20207 * cp/semantics.c (valid_location_for_stdc_pragma_p,
20208 set_float_const_decimal64, clear_float_const_decimal64,
20209 float_const_decimal64_p): New dummy functions.
20210 * doc/extend.texi (Decimal Float): Remove statement that the
20211 pragma, and suffix for double constants, are not supported.
20212 * doc/invoke.texi (Warning Options): List new option.
20213 (-Wunsuffixed-float-constants): New.
20214
45b9b2e9
SB
202152009-05-08 Steven Bosscher <steven@gcc.gnu.org>
20216
20217 * config/i386/i386.c: Do not include c-common.h.
20218
e71da632
MH
202192009-05-07 Mark Heffernan <meheff@google.com>
20220
20221 * doc/invoke.texi (Debugging Options): Document change of debugging
20222 dump location.
e913423f 20223 * opts.c (decode_options): Make dump_base_name relative to
e71da632
MH
20224 aux_base_name directory.
20225
fe4c7bc6
HS
202262009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
20227
20228 * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
20229 * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
20230
3b3e44eb
RAE
202312009-05-07 Rafael Avila de Espindola <espindola@google.com>
20232
20233 * Makefile.in (install-plugin): Simplify a bit.
20234
fac41238
PB
202352009-05-07 Paolo Bonzini <bonzini@gnu.org>
20236
20237 * Makefile.in (OBJS-common): Add regcprop.o.
20238 (regcprop.o): New.
20239 * timevar.def (TV_CPROP_REGISTERS): New.
20240 * regrename.c (regrename_optimize): Return 0.
20241 (rest_of_handle_regrename): Delete.
20242 (pass_rename_registers): Point to regrename_optimize.
f100a4a8 20243 (struct value_data_entry, struct value_data,
fac41238
PB
20244 kill_value_one_regno, kill_value_regno, kill_value,
20245 set_value_regno, init_value_data, kill_clobbered_value,
20246 kill_set_value, kill_autoinc_value, copy_value,
20247 mode_change_ok, maybe_mode_change, find_oldest_value_reg,
20248 replace_oldest_value_reg, replace_oldest_value_addr,
20249 replace_oldest_value_mem, copyprop_hardreg_forward_1,
20250 debug_value_data, validate_value_data): Move...
20251 * regcprop.c: ... here.
20252 (rest_of_handle_cprop): Delete.
20253 (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
20254
472e0df9
JJ
202552009-05-07 Jakub Jelinek <jakub@redhat.com>
20256
20257 PR middle-end/40057
20258 * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
20259 GEN_INT for 1 << bitnum.
20260 (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
20261 build_int_cst_type.
20262
0d50d55a
UB
202632009-05-07 Uros Bizjak <ubizjak@gmail.com>
20264
20265 * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
7925c06c 20266 Remove wrong description of "nand" operation.
0d50d55a 20267
22f597f1
RG
202682009-05-06 Richard Guenther <rguenther@suse.de>
20269 Adam Nemet <anemet@caviumnetworks.com>
20270
20271 * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
20272 comment. Add that if LHS is not a gimple register, then RHS1 has
20273 to be a single object (GIMPLE_SINGLE_RHS).
20274
641cac0b
AN
202752009-05-06 Adam Nemet <anemet@caviumnetworks.com>
20276
20277 * expr.c (get_def_for_expr): Move it up in the file.
20278 (store_field): When expanding a bit-field store, look at the
20279 defining gimple stmt for the masking conversion.
20280
5a5c6435
JJ
202812009-05-06 Janis Johnson <janis187@us.ibm.com>
20282
20283 PR middle-end/39986
20284 * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
20285 decode_decimal64, encode_decimal128, decode_decimal128): Avoid
20286 32-bit memcpy into long.
20287
96474f36
JJ
202882009-05-06 Jakub Jelinek <jakub@redhat.com>
20289
20290 * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
20291 (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
20292 new_reg_loc_descr.
20293 (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
20294 instead of appending DW_OP_deref*.
20295
529ff441
MM
202962009-05-06 Michael Matz <matz@suse.de>
20297
20298 PR middle-end/40021
20299 * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
20300 (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
20301
9419a9fd
RAE
203022009-05-06 Rafael Avila de Espindola <espindola@google.com>
20303
20304 * Makefile.in (install-plugin): Fix srcdir handling.
20305
fff1894c
AB
203062009-05-06 Andrey Belevantsev <abel@ispras.ru>
20307
20308 * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
20309 when processing for not_regs_needed bitmap.
20310 * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
f100a4a8
UB
20311 handle TARGET_MEM_REF in lhs. Check TMR_BASE for NULL while
20312 handling it for rhs.
fff1894c 20313
700ae70c
L
203142009-05-06 H.J. Lu <hongjiu.lu@intel.com>
20315
ab3426a7 20316 * config/i386/i386.md (unnamed inc/dec peephole): Use
aa016ff7 20317 optimize_insn_for_size_p instead of optimize_size.
700ae70c
L
20318 * config/i386/predicates.md (incdec_operand): Likewise.
20319 (aligned_operand): Likewise.
20320 * config/i386/sse.md (divv8sf3): Likewise.
20321 (sqrtv8sf2): Likewise.
20322
67341fb5
L
203232009-05-06 H.J. Lu <hongjiu.lu@intel.com>
20324
20325 * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
20326
20327 * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
20328
87946f42
L
203292009-05-06 H.J. Lu <hongjiu.lu@intel.com>
20330
20331 * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
20332 ssemodesuffixf2c with avxmodesuffixf2c.
20333
1202aec1
JM
203342009-05-06 Joseph Myers <joseph@codesourcery.com>
20335
20336 PR c/40032
aa016ff7 20337 * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
1202aec1 20338
6e57a01d
JJ
203392009-05-05 Jakub Jelinek <jakub@redhat.com>
20340
20341 * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
20342 (struct tree_base): Adjust spacing for 8 bit boundaries.
20343 (struct tree_decl_common): Add decl_by_reference_flag bit.
20344 (DECL_BY_REFERENCE): Adjust.
20345 * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
20346 print DECL_BY_REFERENCE bit.
20347 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
20348 * dwarf2out.c (loc_by_reference, gen_decl_die): Check
20349 DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
20350 (gen_variable_die): Likewise. Check TREE_PRIVATE/TREE_PROTECTED
20351 unconditionally.
20352
32f579f6
JJ
20353 PR middle-end/39666
20354 * gimplify.c (gimplify_switch_expr): If case labels cover the whole
20355 range of the type, but default label is missing, add it with one
20356 of the existing labels instead of adding a new label for it.
20357
617ab743
JM
203582009-05-05 Joseph Myers <joseph@codesourcery.com>
20359
20360 * dwarf.h: Remove.
20361
bf016de8
RAE
203622009-05-05 Rafael Avila de Espindola <espindola@google.com>
20363
20364 * Makefile.in (enable_plugin, plugin_includedir): New.
20365 (install): Depend on install-plugin.
20366 (PLUGIN_HEADERS): New.
20367 (install-plugin): New.
20368 * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
20369
7f8fdb9f
RG
203702009-05-05 Richard Guenther <rguenther@suse.de>
20371
20372 PR tree-optimization/40022
20373 * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
20374 the only vuse.
20375 (phivn_valid_p): Fix tuplification error, simplify.
20376 (phiprop_insert_phi): Add dumps.
20377 (propagate_with_phi): Simplify.
20378
8d972839
RG
203792009-05-05 Richard Guenther <rguenther@suse.de>
20380
20381 PR middle-end/40023
aa016ff7 20382 * builtins.c (gimplify_va_arg_expr): Properly build the address.
8d972839 20383
66ba9b0b
SZ
203842009-05-05 Shujing Zhao <pearly.zhao@oracle.com>
20385
20386 * tree.h (strip_float_extensions): Remove duplicate declaration.
aa016ff7
UB
20387 (build_low_bits_mask, debug_fold_checksum, expand_function_end,
20388 expand_function_start, stack_protect_prologue, stack_protect_epilogue,
20389 block_ultimate_origin): Rearrange the declarations line to match the
20390 comment that indicates the .c file which the functions are defined.
20391 (dwarf2out_*, set_decl_rtl): Add comment.
20392 (get_base_address): Adjust comment.
20393 (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
20394 declarations line and add comment.
20395 (is_builtin_name): Add blank after function name, for clarity.
66ba9b0b 20396
4f1e4960
JM
203972009-05-04 Joseph Myers <joseph@codesourcery.com>
20398
20399 * attribs.c (decl_attributes): Use %qE for identifiers in
20400 diagnostics.
20401 * cgraphunit.c (verify_cgraph_node): Translate function names to
20402 locale character set in diagnostics.
20403 * coverage.c (get_coverage_counts): Use %qE for identifiers in
20404 diagnostics.
20405 * doc/invoke.texi (-finstrument-functions-exclude-function-list):
20406 Document that functions are named in UTF-8.
20407 * expr.c (expand_expr_real_1): Translate function names to locale
20408 character set in diagnostics.
20409 * gimplify.c (omp_notice_variable, omp_is_private,
20410 gimplify_scan_omp_clauses): Use %qE for identifiers in
20411 diagnostics.
20412 * langhooks.c (lhd_print_error_function): Translate function names
20413 to locale character set.
20414 * langhooks.h (decl_printable_name): Document that return value is
20415 in internal character set.
20416 * stmt.c: Include pretty-print.h
20417 (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
20418 diagnostics.
20419 (resolve_operand_name_1): Translate named operand name to locale
20420 character set.
20421 * stor-layout.c (finalize_record_size): Use %qE for identifiers in
20422 diagnostics.
20423 * toplev.c (announce_function): Translate function names to locale
20424 character set.
20425 (warn_deprecated_use): Use %qE for identifiers in diagnostics.
20426 (default_tree_printer): Use pp_identifier or translate identifiers
20427 to locale character set. Mark "<anonymous>" for translation.
20428 * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
20429 for identifiers in diagnostics.
20430 * tree.c (handle_dll_attribute): Use %qE for identifiers in
20431 diagnostics.
20432 * varasm.c (output_constructor): Use %qE for identifiers in
20433 diagnostics.
20434
40540e68
RAE
204352009-05-04 Rafael Avila de Espindola <espindola@google.com>
20436
20437 * configure.ac: use ` ` instead of $()
20438 * configure: Regenerate.
20439
33fc884c
BE
204402009-05-05 Ben Elliston <bje@au.ibm.com>
20441
20442 * config/pa/linux-atomic.c: Eliminate conditional include of
20443 errno.h on non-LP64 systems to simplify build requirements.
20444
88388a52
JM
204452009-05-04 Joseph Myers <joseph@codesourcery.com>
20446
20447 * c-common.c (handle_mode_attribute): Use %qE for identifiers in
20448 diagnostics.
20449 * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
20450 and pass value to identifier_to_locale.
20451 (warn_variable_length_array): Make name a tree.
20452 (grokdeclarator): Separate diagnostic texts for named and unnamed
20453 declarators. Use %qE for named declarators.
20454 * c-parser.c (c_lex_one_token): Use %qE for identifiers in
20455 diagnostics.
20456 * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
20457 identifiers in diagnostics.
20458 * c-typeck.c (push_member_name, start_init): Pass identifiers to
20459 identifier_to_locale. Mark "anonymous" strings for translation.
20460
960c5c79
ME
204612009-05-04 Michael Eager <eager@eagercon.com>
20462
20463 * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
aa016ff7 20464 address for DImode/DFmode only if double-precision FP regs.
960c5c79 20465
d083fbba
ME
204662009-05-04 Michael Eager <eager@eagercon.com>
20467
20468 * config/rs6000/rs6000.c (rs6000_libcall_value): Add
20469 TARGET_SINGLE_FLOAT check.
20470
c3ba8d32
ME
204712009-05-04 Michael Eager <eager@eagercon.com>
20472
20473 * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
20474
edce9f18
ME
204752009-05-04 Michael Eager <eager@eagercon.com>
20476
bd62d832 20477 * gcc/config.gcc (powerpc-xilinx-eabi*): Add tm t-xilinx
edce9f18
ME
20478 * config/rs6000/t-xilinx: New
20479
506d7b68
PB
204802009-05-04 Paolo Bonzini <bonzini@gnu.org>
20481
e913423f 20482 * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
506d7b68
PB
20483 * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
20484 * gcc/explow.c (memory_address): Use target hook.
20485 * gcc/targhooks.c (default_legitimize_address): New.
20486 * gcc/targhooks.h (default_legitimize_address): New.
20487 * gcc/target.h (legitimize_address): New.
20488 * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
20489 (TARGET_INITIALIZER): Include it.
20490 * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
20491
20492 * config/bfin/bfin-protos.h (legitimize_address): Remove.
20493 * config/bfin/bfin.c (legitimize_address): Remove.
20494 * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
aa016ff7
UB
20495 * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
20496 Remove.
506d7b68
PB
20497 * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
20498 * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
20499
20500 * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
20501 THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
20502 * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
20503 * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
20504 * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
20505 * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
20506 * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
20507 * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
20508 * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
20509 * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
20510 * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
20511 * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
20512 * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
20513 * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
20514 * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
20515 * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
20516 * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
20517 * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
20518 * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
20519 * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
20520 * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
20521 * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
20522 * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
20523
20524 * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
20525 * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
20526 * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
20527 * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
20528 * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
20529 * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
20530 * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
20531 * gcc/config/arm/arm-protos.h (arm_legitimize_address,
20532 (thumb_legitimize_address): Delete.
20533 * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
20534 * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
20535 * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
20536 * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
20537 * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
aa016ff7
UB
20538 * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
20539 Delete.
20540 * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
20541 Delete.
506d7b68
PB
20542
20543 * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
20544 * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
20545 * config/m32r/m32r.c (m32r_legitimize_address): New.
20546 * config/m68k/m68k.c (m68k_legitimize_address): New.
20547 * config/score/score.c (score_legitimize_address): Standardize.
20548 * config/score/score3.c (score3_legitimize_address): Standardize.
20549 * config/score/score3.h (score3_legitimize_address): Adjust.
20550 * config/score/score7.c (score7_legitimize_address): Standardize.
20551 * config/score/score7.h (score7_legitimize_address): Adjust.
20552 * config/sh/sh.c (sh_legitimize_address): New.
20553 * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
20554
20555 * gcc/config/s390/s390.c (legitimize_address): Rename to...
20556 (s390_legitimize_address): ... this.
20557 * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
20558 (sparc_legitimize_address): ... this.
20559 * gcc/config/i386/i386.c (legitimize_address): Rename to...
20560 (ix86_legitimize_address): ... this.
20561 * gcc/config/avr/avr.c (legitimize_address): Rename to...
20562 (avr_legitimize_address): ... this.
20563 * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
20564 (mn10300_legitimize_address): ... this.
20565 * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
20566 (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
20567 (alpha_expand_mov): Adjust call.
20568
20569 * config/frv/frv.c (frv_legitimize_address): Return x on failure.
20570 * config/spu/spu.c (spu_legitimize_address): Likewise.
20571 * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
20572 * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
20573
a3af5087
JM
205742009-05-04 Joseph Myers <joseph@codesourcery.com>
20575
20576 * intl.c (locale_encoding, locale_utf8): New.
20577 (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
20578 * intl.h (locale_encoding, locale_utf8): Declare.
20579 * pretty-print.c: Include ggc.h. Include iconv.h if HAVE_ICONV.
20580 (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
20581 New.
20582 * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
20583 argument.
20584 (pp_tree_identifier): Define to call pp_base_tree_identifier.
20585 (pp_base_tree_identifier): Declare as function.
20586 (identifier_to_locale): Declare.
20587 * Makefile.in (pretty-print.o): Update dependencies.
aa016ff7 20588 * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
a3af5087 20589
ea5cd5f1
RG
205902009-05-04 Richard Guenther <rguenther@suse.de>
20591
20592 PR middle-end/40015
20593 * builtins.c (fold_builtin_memory_op): Do not decay to element
20594 type if the size matches the whole array.
20595
ddc2690a
KH
205962009-05-04 Kazu Hirata <kazu@codesourcery.com>
20597
20598 * expmed.c (synth_mult): When trying out a shift, pass the result
20599 of a signed shift.
20600
ef268d34
KH
206012009-05-04 Kazu Hirata <kazu@codesourcery.com>
20602
20603 * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
20604 (shiftsub1_cost): New.
20605 (init_expmed): Compute shiftsub1_cost.
20606 (synth_mult): Optimize multiplications by constants of the form
20607 -(2^^m-1) for some constant positive integer m.
20608
255d3827
RG
206092009-05-03 Richard Guenther <rguenther@suse.de>
20610
20611 PR c/39983
20612 * c-typeck.c (array_to_pointer_conversion): Do not built
20613 ADDR_EXPRs of arrays of pointer-to-element type.
20614 * c-gimplify.c (c_gimplify_expr): Revert change fixing
20615 up wrong ADDR_EXPRs after-the-fact.
20616 * c-common.c (strict_aliasing_warning): Strip pointer
20617 conversions for obtaining the original type.
20618 * builtins.c (fold_builtin_memset): Handle array types.
20619 (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
20620 and array types
20621
16c33770
RG
206222009-05-03 Richard Guenther <rguenther@suse.de>
20623
20624 PR middle-end/23329
20625 * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
20626 Do not lose casts from array types with unknown extent to array
20627 types with known extent.
20628 * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
20629 alias set compatibility.
20630
62a67c94
MLI
206312009-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
20632
20633 * flags.h (extra_warnings): Delete.
20634 * toplev.c (process_options): Handle Wuninitialized here.
20635 * opts.c (extra_warnings): Delete.
20636 (set_Wextra): Delete.
20637 (common_handle_option): -Wextra can be handled automatically.
20638 * c-opts.c (c_common_handle_option): Delete obsolete code.
20639 (c_common_post_options): Simplify comment.
20640 * common.opt (W): Add Var.
20641 (Wextra): Add Var.
20642 (Wuninitialized): Initialize to -1.
20643
8c7926c4
AN
206442009-05-03 Adam Nemet <anemet@caviumnetworks.com>
20645 Richard Guenther <rguenther@suse.de>
20646
20647 * expr.c (get_def_for_expr): New function.
20648 (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
20649 SSA rather than trees.
20650 <MULT_EXPR>: Likewise. Use subexp0 and subexp1 instead of
20651 TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
f100a4a8 20652
fa5da7de
JM
206532009-05-03 Joseph Myers <joseph@codesourcery.com>
20654
20655 * c-common.c (reswords): Add _Imaginary.
20656 * c-common.c (enum rid): Add RID_IMAGINARY.
20657
2ddd5020
PB
206582009-05-03 Paolo Bonzini <bonzini@gnu.org>
20659
20660 * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
20661 Patch by Richard Guenther.
20662
aea88c05
AS
206632009-05-03 Anatoly Sokolov <aesok@post.ru>
20664
20665 * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
20666 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
20667 * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
20668 * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
20669 * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
20670 * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
20671 * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
20672 * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
20673 * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
20674 * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
20675 * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
20676 * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
20677 * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
20678 * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
20679 * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
20680 * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
20681 * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
20682 * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
20683
85e59f3a
RG
206842009-05-02 Richard Guenther <rguenther@suse.de>
20685
20686 PR tree-optimization/39940
20687 * tree-ssa-pre.c (eliminate): Make sure we may propagate before
20688 doing so.
20689
4636b850
RG
206902009-05-02 Richard Guenther <rguenther@suse.de>
20691
20692 PR middle-end/40001
20693 * tree-ssa.c (execute_update_addresses_taken): Properly check
20694 if we can mark a variable DECL_GIMPLE_REG_P.
20695 * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
20696 back to the end of the function.
20697 (is_gimple_reg_type): Remove complex type special casing.
20698 * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
20699 if not optimizing.
20700
5e10cb5a
BE
207012009-05-02 Ben Elliston <bje@au.ibm.com>
20702
20703 * doc/collect2.texi (Collect2): Document search path behaviour
20704 when configured with --with-ld.
20705
048bf48b
JH
207062009-05-02 Jan Hubicka <jh@suse.cz>
20707
20708 * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
20709 parameter; update callers.
aa016ff7
UB
20710 (coalesce_cost_edge): EH edges are costier because they needs
20711 splitting even if not critical and even more costier when there are
20712 multiple EH predecestors.
048bf48b 20713
d5c5f9ab
JH
207142009-05-02 Jan Hubicka <jh@suse.cz>
20715
20716 * except.c (remove_eh_handler_and_replace): Handle updating after
20717 removing TRY blocks.
20718
2ed1959a
EB
207192009-05-02 Eric Botcazou <ebotcazou@adacore.com>
20720
20721 * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
20722
d363a7e7
SB
207232009-05-02 Steven Bosscher <steven@gcc.gnu.org>
20724
20725 * varasm.c: Do not include c-pragma.h.
20726 * attribs.c: Do not incude c-common.h.
20727
9c3d55b4
MM
207282009-05-01 Michael Matz <matz@suse.de>
20729
20730 * calls.c (initialize_argument_information): Handle SSA names like
20731 decls with a non MEM_P DECL_RTL.
20732
ea264ca5
SB
207332009-05-01 Steven Bosscher <steven@gcc.gnu.org>
20734
20735 * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
20736 * ipa-utils.c: Likewise.
20737 * ipa-type-escape.c: Likewise.
20738 * cgraphunit.c Do not include c-common.h.
20739 * ipa-pure-const.c: Likewise.
20740 * tree-if-conv.c: Likewise.
20741 * matrix-reorg.c: Do not include c-common.h and c-tree.h.
20742 * ipa-struct-reorg.c: Likewise.
20743 * tree-nomudflap.c: Likewise.
20744 * tree-ssa-structalias.c: Likewise.
20745
6c5d4d1a
SB
207462009-05-01 Steven Bosscher <steven@gcc.gnu.org>
20747
20748 * store-motion.c: Many cleanups to make this pass a first-class
20749 citizen instead of an appendix to gcse load motion. Add TODO list
20750 to make this pass faster/cleaner/better.
20751
20752 (struct ls_expr): Post gcse.c-split cleanups.
20753 Rename to st_expr. Rename "loads" field to "antic_stores". Rename
20754 "stores" field to "avail_stores".
20755 (pre_ldst_mems): Rename to store_motion_mems.
20756 (pre_ldst_table): Rename to store_motion_mems_table.
20757 (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
20758 (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
20759 (ldst_entry): Rename to st_expr_entry, update users.
20760 (free_ldst_entry): Rename to free_st_expr_entry, update users.
20761 (free_ldst_mems): Rename to free_store_motion_mems, update users.
aa016ff7
UB
20762 (enumerate_ldsts): Rename to enumerate_store_motion_mems,
20763 update caller.
6c5d4d1a
SB
20764 (first_ls_expr): Rename to first_st_expr, update users.
20765 (next_ls_expr): Rename to next_st_expr, update users.
20766 (print_ldst_list): Rename to print_store_motion_mems. Print names of
20767 fields properly for store motion instead of names inherited from load
20768 motion in gcse.c.
20769 (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
20770 (LAST_AVAIL_CHECK_FAILURE): Explain what this is. Undefine when we
20771 are done with it.
20772
20773 (ae_kill): Rename to st_kill, update users.
20774 (ae_gen): Rename to st_avloc, update users.
20775 (transp): Rename to st_transp, update users.
20776 (pre_insert_map): Rename to st_insert_map, update users.
20777 (pre_delete_map): Rename to st_delete_map, update users.
20778 (insert_store, build_store_vectors, free_store_memory,
20779 one_store_motion_pass): Update for abovementioned changes.
20780
20781 (gcse_subst_count, gcse_create_count): Remove.
20782 (one_store_motion_pass): New statistics counters "n_stores_deleted"
20783 and "n_stores_created", local variables.
20784
20785 (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
20786 use for_each_rtx.
20787
20788 (regvec, compute_store_table_current_insn): Remove.
20789 (reg_set_info, reg_clear_last_set): Remove.
20790 (compute_store_table): Use DF caches instead of local dataflow
20791 solvers.
20792
b02cec6e
JM
207932009-05-01 Joseph Myers <joseph@codesourcery.com>
20794
20795 * c-objc-common.c (c_tree_printer): Print identifiers with
20796 pp_identifier, not pp_string. Mark "({anonymous})" for
20797 translation.
20798 * c-pretty-print.c (pp_c_ws_string): New.
20799 (pp_c_cv_qualifier, pp_c_type_specifier,
20800 pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
20801 pp_c_storage_class_specifier, pp_c_function_specifier,
20802 pp_c_attributes, pp_c_bool_constant, pp_c_constant,
20803 pp_c_primary_expression, pp_c_postfix_expression,
20804 pp_c_unary_expression, pp_c_shift_expression,
20805 pp_c_relational_expression, pp_c_equality_expression,
20806 pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
20807 use pp_string and pp_c_ws_string in place of pp_identifier and
20808 pp_c_identifier for non-identifiers. Mark English strings for
20809 translation.
20810 * c-pretty-print.h (pp_c_ws_string): Declare.
20811
cd533689
PP
208122009-04-30 Paul Pluzhnikov <ppluzhnikov@google.com>
20813 Roland McGrath <roland@redhat.com>
20814
aa016ff7 20815 * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
cd533689
PP
20816 (ENABLE_LD_BUILDID): New configuration option.
20817 * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
20818 (LINK_BUILDID_SPEC): New macro.
20819 (init_spec): If defined, prepend it between LINK_EH_SPEC and
20820 link_spec.
20821 * doc/install.texi: Document --enable-linker-build-id option.
20822 * configure: Rebuild.
20823 * config.in: Rebuild.
20824
ba6adec4
AN
208252009-04-30 Adam Nemet <anemet@caviumnetworks.com>
20826
20827 * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
20828 MIPS_GP_SAVE_AREA_SIZE): Define new macros.
20829 (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD. Use
20830 MIPS_GP_SAVE_AREA_SIZE.
20831 * config/mips/mips.c (struct mips_frame_info): Update comment
20832 before arg_pointer_offset and hard_frame_pointer_offset.
20833 (mips_compute_frame_info): Update diagram before function: to
20834 correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
20835 indicate the position of frame_pointer_rtx with -fstack-protector and
20836 to show args_size. Don't allocate cprestore area for leaf functions
20837 if FRAME_GROWS_DOWNWARD. Use MIPS_GP_SAVE_AREA_SIZE to set
20838 cprestore_size.
20839 (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
20840
48f5b722
MM
208412009-04-30 Michael Matz <matz@suse.de>
20842
ba6adec4
AN
20843 PR tree-optimization/39955
20844 * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
48f5b722 20845
b65d6744
DK
208462009-04-30 Dave Korn <dave.korn.cygwin@gmail.com>
20847
20848 * ira.c (setup_cover_and_important_classes): Use safe macro
20849 REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
20850 directly.
20851 * genpreds.c (write_tm_preds_h): Output suitable definition of
20852 REG_CLASS_FOR_CONSTRAINT.
20853
f136c8ae
RAE
208542009-04-30 Rafael Avila de Espindola <espindola@google.com>
20855
20856 * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
20857 instead of an int.
20858 * bitmap.c (bitmap_descriptor): Likewise.
20859 * ggc-common.c (loc_descriptor): Likewise.
20860 * varray.c (varray_descriptor): Likewise.
20861 * vec.c (vec_descriptor): Likewise.
20862
43fcece8 208632009-04-30 Eric Botcazou <ebotcazou@adacore.com>
35debead
EB
20864
20865 * Makefile.in (dce.o): Add $(EXCEPT_H).
20866 * dce.c: Include except.h and delete redundant vector definitions.
20867 (deletable_insn_p): Return false for non-call insns that can throw
20868 if DF is running.
20869
df35c271
SB
208702009-04-30 Steven Bosscher <steven@gcc.gnu.org>
20871
20872 * gcse.c (ae_gen): Remove.
20873 (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
20874 and make non-static function to make it available in store-motion.c.
20875 Update call sites with search-and-replace.
20876 (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
20877 extract_mentioned_regs, extract_mentioned_regs_helper,
20878 find_moveable_store, compute_store_table, load_kills_store, find_loads,
20879 store_killed_in_insn, store_killed_after, store_killed_before,
20880 build_store_vectors, insert_insn_start_basic_block, insert-store,
20881 remove_reachable_equiv_notes, replace_store_insn, delete_store,
20882 free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
20883 execute_rtl_store_motion, pass_rtl_store_motion): Move to...
20884 * store-motion.c: ...new file. Also copy data structures from gcse.c
20885 and clean up to remove parts not used by store motion.
20886 * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
20887 * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
20888
f711a87a
RR
208892009-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20890
20891 PR target/38571
20892 * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
20893 when optimizing for size.
20894
fa5ed76e
HPN
208952009-04-30 Hans-Peter Nilsson <hp@axis.com>
20896
20897 * gcse.c (gcse_constant_p): Fix typo in last change.
20898
0acbbdb0
RAE
208992009-04-30 Rafael Avila de Espindola <espindola@google.com>
20900
20901 * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
20902
82f5c05d
AK
209032009-04-30 Andreas Krebbel <krebbel1@de.ibm.com>
20904
20905 * gcse.c (gcse_constant_p): Make sure the constant is sharable.
20906
6d8f135b
JW
209072009-04-29 James E. Wilson <wilson@codesourcery.com>
20908
20909 * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
20910 CONST_HIGH_PART result.
20911
c21ca196
AS
209122009-04-29 Anatoly Sokolov <aesok@post.ru>
20913
20914 * config/avr/avr.c (initial_elimination_offset): Rename to
20915 avr_initial_elimination_offset.
20916 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
20917 change return type to bool.
20918 (avr_can_eliminate): New function.
20919 * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
20920 (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
20921 (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
0d50d55a 20922 * config/avr/avr-protos.h (initial_elimination_offset): Rename to
c21ca196
AS
20923 avr_initial_elimination_offset.
20924 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
20925 (avr_initial_elimination_offset): Define.
20926
2a34bece 209272009-04-29 Eric Botcazou <ebotcazou@adacore.com>
aa016ff7 20928 Steven Bosscher <steven@gcc.gnu.org>
2a34bece
EB
20929
20930 PR rtl-optimization/39938
20931 * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
20932 * cfgrtl.c: Include insn-attr.h.
20933 (rest_of_pass_free_cfg): New function.
20934 (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
20935 * resource.c (init_resource_info): Remove call to df_analyze.
20936
5dc7911e
RG
209372009-04-29 Richard Guenther <rguenther@suse.de>
20938
20939 PR target/39943
20940 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
20941 allow conversion to signed integers.
20942
1fe479fd
RG
209432009-04-29 Richard Guenther <rguenther@suse.de>
20944
20945 * tree-cfg.c (verify_gimple_assign_binary): Allow vector
20946 shifts of floating point vectors if the shift amount is
20947 a constant multiple of the element size.
20948
8e001680
AK
209492009-04-29 Andreas Krebbel <krebbel1@de.ibm.com>
20950 Michael Matz <matz@suse.de>
20951
20952 PR middle-end/39927
20953 PR bootstrap/39929
20954 * tree-outof-ssa.c (emit_partition_copy): New function.
20955 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
20956 insert_part_to_rtx_on_edge): Perform the partition base var
20957 copy using emit_partition_copy.
20958 (insert_value_copy_on_edge): Convert constants to the right mode.
20959 (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
20960 (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
20961
e50e3081
BS
209622009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
20963
20964 * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
20965 scan backwards to try to find a constant to initialize it.
20966
4e5d521b
BS
20967 * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
20968 insn before the loop_end instruction, don't look past labels.
20969
7c90021d
RG
209702009-04-29 Richard Guenther <rguenther@suse.de>
20971
20972 PR middle-end/39937
20973 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
20974 loose type conversions.
20975 (forward_propagate_addr_expr): Fix tuplification bug. Remove
20976 stmts only if there are no uses of its definition.
20977
97a988bc
BS
209782009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
20979
20980 * config/bfin/bfin.h (splitting_loops): Declare.
20981 * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
20982 Reorder bit definitions to be ascending.
20983 (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
20984 * config/bfin/bfin.c (splitting_loops): New variable.
20985 (bfin_cpus): Add WA_LOAD_LCREGS as needed.
20986 (struct loop_info): Remove members INIT and LOOP_INIT.
20987 (bfin_optimize_loop): Don't set them. Reorder the code that generates
aa016ff7
UB
20988 the LSETUP sequence. Allow LC to be loaded from any register, but
20989 also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
97a988bc
BS
20990 (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
20991 set to 1.
20992 * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
20993 of reload_completed.
aa016ff7 20994
97a988bc
BS
20995 From Jie Zhang:
20996 * config/bfin/bfin.md (movsi_insn): Refine constraints.
20997
0c463e16
RAE
209982009-04-29 Rafael Avila de Espindola <espindola@google.com>
20999
21000 * Makefile.in (PLUGIN_VERSION_H): New.
21001 (OBJS-common): Remove plugin-version.o.
21002 (plugin.o): Depend on (PLUGIN_VERSION_H).
21003 (plugin-version.o): Remove.
21004 * configure: Regenerate
21005 * configure.ac: Create plugin-version.h.
21006 * gcc-plugin.h (plugin_gcc_version): Remove.
21007 (plugin_default_version_check): Change signature.
21008 * plugin-version.c: Remove.
21009 * plugin.c: Include plugin-version.h.
21010 (str_plugin_gcc_version_name): Remove.
21011 (try_init_one_plugin): Pass gcc version to plugin_init.
21012 (plugin_default_version_check): Both gcc and plugin versions are now
21013 arguments.
21014
307e7eab 210152009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
f100a4a8 21016
307e7eab
BS
21017 * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
21018 problematic last insns. Test for TYPE_CALL rather than CALL_P.
aa016ff7
UB
21019 Remove special case testing for last insn of inner loops. Don't fail
21020 if the loop ends with a jump, emit an extra nop instead.
307e7eab 21021
c5d96723
BS
21022 * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
21023 DREGS rather than comparing directly. Remove code that tries to
21024 account for latencies.
21025
de0b4ad5
RG
210262009-04-29 Richard Guenther <rguenther@suse.de>
21027
21028 PR tree-optimization/39941
21029 * tree-ssa-pre.c (eliminate): Schedule update-ssa after
21030 eliminating an indirect call.
21031
3a19701a
RG
210322009-04-29 Richard Guenther <rguenther@suse.de>
21033
21034 * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
21035 parameter. Allow invariants as base if !require_lvalue.
21036 (verify_gimple_assign_single): Adjust.
21037
a0a31d1e
BS
210382009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
21039
21040 * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
21041 (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
aa016ff7
UB
21042 ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
21043 ssubhi3, ssaddhi3_parts and sssubhi3_parts.
a0a31d1e
BS
21044 (flag_mulhi3_parts): Produce a HImode output rather than trying to set
21045 a VEC_SELECT.
aa016ff7
UB
21046 * config/bfin/bfin.c (bfin_expand_builtin,
21047 case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
a0a31d1e 21048
795bd26a
RG
210492009-04-28 Richard Guenther <rguenther@suse.de>
21050
21051 * tree-vect-loop.c (get_initial_def_for_induction): Use
21052 correct types for pointer increment.
21053
04be270f
KG
210542009-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21055
21056 * toplev.c (print_version): Update GMP version string calculation.
21057
e1a3b85c
EB
210582009-04-28 Eric Botcazou <ebotcazou@adacore.com>
21059
21060 PR rtl-optimization/39938
21061 * resource.c (init_resource_info): Add call to df_analyze.
21062
8224166e
UB
210632009-04-28 Uros Bizjak <ubizjak@gmail.com>
21064
21065 * config/alpha/alpha.md (usegp): Cast the result of
21066 alpha_find_lo_sum_using_gp to enum attr_usegp.
21067 * config/alpha/alpha.c (override_options): Remove end-of-structure
21068 marker element from cpu_table. Use array size of cpu_table to handle
21069 -mcpu and -mtune options.
21070 (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
21071
c5f0fe67
JM
210722009-04-28 Joseph Myers <joseph@codesourcery.com>
21073
21074 * config.gcc (powerpc*-*-* | rs6000-*-*): Add
21075 rs6000/option-defaults.h to tm_file. Support cpu_32, cpu_64,
21076 tune_32 and tune_64.
21077 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
21078 support on PowerPC.
21079 * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
21080 * config/rs6000/option-defaults.h: ... here. New file.
21081 (OPT_64, OPT_32): Define.
21082 (MASK_64BIT): Define to 0 if not already defined.
21083 (OPT_ARCH64, OPT_ARCH32): Define.
21084 (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
21085 and tune_64.
21086
0c48a567
RR
210872009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21088
21089 * config/arm/arm.c (arm_override_options): Emit error on using
21090 fpa with AAPCS.
21091
f1028b9d
UB
210922009-04-28 Uros Bizjak <ubizjak@gmail.com>
21093
21094 PR rtl-optimization/39914
21095 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
21096 registers for allocnos created from user-defined variables only
21097 when not optimizing.
21098
e0dd989a
RG
210992009-04-28 Richard Guenther <rguenther@suse.de>
21100
21101 PR middle-end/39937
21102 * fold-const.c (fold_binary): Use distribute_real_division only
21103 on float types.
21104
9a17c91d
SE
211052009-04-28 Steve Ellcey <sje@cup.hp.com>
21106
21107 * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
21108 add hpux-stdint.h to tm_file.
21109 (hppa[12]*-*-hpux11*): Ditto.
21110 (ia64*-*-hpux*): Ditto.
21111 * config/hpux-stdint.h: New.
60839f5d 21112 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
9a17c91d 21113 __STDC_EXT__ for all compiles.
60839f5d
EB
21114 * config/pa/pa-hpux.h: Ditto.
21115 * config/pa/pa-hpux10.h: Ditto.
21116 * config/pa/pa-hpux11.h: Ditto.
9a17c91d 21117
af04e659
CM
211182009-04-28 Catherine Moore <clm@codesourcery.com>
21119
21120 * debug.h (set_name): Add comment.
21121
04ef80ce
AP
211222009-04-28 Andrew Pinski <pinskia@gmail.com>
21123
21124 PR target/39929
21125 * config/darwin.c (machopic_gen_offset): Check
21126 currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
21127 * config/arm/arm.c (require_pic_register): Likewise.
21128
65ad77af
PB
211292009-04-28 Paolo Bonzini <bonzini@gnu.org>
21130
8224166e
UB
21131 * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
21132 m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
21133 m32c_promote_prototypes): Delete.
65ad77af 21134
1b15a008
MM
211352009-04-28 Michael Matz <matz@suse.de>
21136
21137 PR middle-end/39922
21138 * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
21139 constants.
21140
7569a6cc
RG
211412009-04-28 Richard Guenther <rguenther@suse.de>
21142
f1028b9d 21143 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
7569a6cc 21144
ead204d9
RR
211452009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21146
21147 * config/arm/arm-cores.def: Add support for arm1156t2f-s.
21148 * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
21149 * config/arm/arm-tune.md: Regenerate.
21150
f2c45f08 211512009-04-28 Alexander Monakov <amonakov@ispras.ru>
60839f5d 21152
f2c45f08
AM
21153 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
21154 block if there are complex incoming edges.
21155 (sel_merge_blocks): Remove useless assert.
21156 (sel_redirect_edge_and_branch): Check that edge was redirected.
21157 * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
21158 (sel_find_rgns): Delete declaration.
21159 * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
21160 the region when it is not a preheader.
21161
7a00d767
UB
211622009-04-28 Uros Bizjak <ubizjak@gmail.com>
21163
21164 PR c/39323
21165 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
21166
448ee662
RG
211672009-04-28 Richard Guenther <rguenther@suse.de>
21168
21169 * tree.h (SSA_NAME_VALUE): Remove.
21170 (struct tree_ssa_name): Remove value_handle member.
21171 * tree-vrp.c (execute_vrp): Initialize/free the value-handle
21172 array for jump threading.
21173 * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
21174 SSA_NAME_VALUEs.
21175 * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
21176 * tree-flow.h (threadedge_initialize_values): Declare.
21177 (threadedge_finalize_values): Likewise.
21178 * tree-ssa-threadedge.c (ssa_name_values): New global variable.
21179 (SSA_NAME_VALUE): Define.
21180 (threadedge_initialize_values): New function.
21181 (threadedge_finalize_values): Likewise.
21182 * tree-ssa-dom.c (ssa_name_values): New global variable.
21183 (SSA_NAME_VALUE): Define.
f1028b9d 21184 (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
448ee662 21185
8644a673
IR
211862009-04-28 Ira Rosen <irar@il.ibm.com>
21187
21188 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
f100a4a8 21189 Use REPORT_VECTORIZED_LOCATIONS instead
8644a673
IR
21190 REPORT_VECTORIZED_LOOPS.
21191 * tree-vectorizer.c (vect_verbosity_level): Make static.
21192 (vect_loop_location): Rename to vect_location.
21193 (vect_set_verbosity_level): Update comment.
21194 (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
21195 and vect_location.
21196 (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
21197 and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
21198 instead REPORT_UNVECTORIZED_LOOPS.
fbdf817d
UB
21199 * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
21200 and vect_loop_def to vect_external_def and vect_internal_def.
8644a673 21201 (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
f100a4a8 21202 and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
8644a673
IR
21203 REPORT_UNVECTORIZED_LOCATIONS.
21204 (enum vect_relevant): Update comment. Rename vect_unused_in_loop
f100a4a8 21205 and vect_used_in_loop and to vect_unused_in_scope and
8644a673
IR
21206 vect_used_in_scope.
21207 (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
21208 (vect_verbosity_level): Remove declaration.
21209 (vect_analyze_operations): Likewise.
21210 (vect_analyze_stmt): Declare.
21211 * tree-vect-loop.c (vect_determine_vectorization_factor): Use
21212 REPORT_UNVECTORIZED_LOCATIONS.
21213 (vect_get_loop_niters): Fix indentation.
21214 (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
21215 (vect_analyze_loop_operations): New function.
21216 (vect_analyze_loop): Call vect_analyze_loop_operations instead of
21217 vect_analyze_operations.
21218 (vect_is_simple_reduction): Use new names.
21219 (vectorizable_live_operation, vect_transform_loop): Likewise.
fbdf817d
UB
21220 * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
21221 to specify whether the data references can be a part of interleaving
21222 chain.
8644a673
IR
21223 (vect_analyze_data_ref_dependence): Use new names.
21224 (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
21225 (vect_create_addr_base_for_vector_ref): Remove redundant code.
21226 * tree-vect-patterns.c (widened_name_p): Use new names.
21227 (vect_recog_dot_prod_pattern): Likewise.
21228 * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
f100a4a8 21229 (process_use, vect_mark_stmts_to_be_vectorized,
8644a673
IR
21230 vect_model_simple_cost, vect_model_store_cost,
21231 vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
21232 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
21233 vectorizable_operation, vectorizable_type_demotion,
21234 vectorizable_type_promotion, vectorizable_store, vectorizable_load,
21235 vectorizable_condition): Likewise.
21236 (vect_analyze_operations): Split into vect_analyze_loop_operations
21237 and ...
21238 (vect_analyze_stmt): ... new function.
21239 (new_stmt_vec_info): Use new names.
21240 (vect_is_simple_use): Use new names and fix comment.
21241 * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
21242 (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
21243
b91322f2
UB
212442009-04-28 Uros Bizjak <ubizjak@gmail.com>
21245
21246 PR target/39911
21247 * config/i386/i386.c (print_operand) ['Z']: Handle floating point
21248 and integer modes for x87 operands. Do not ICE for unsupported size,
21249 generate error instead. Generate error for unsupported operand types.
21250 ['z']: Do not handle HImode memory operands specially. Warning
21251 for floating-point operands. Fallthru to 'Z' for unsupported operand
21252 types. Do not ICE for unsupported size, generate error instead.
21253 (output_387_binary_op): Use %Z to output operands.
21254 (output_fp_compare): Ditto.
21255 (output_387_reg_move): Ditto.
21256
b2ed71b6
BE
212572009-04-28 Ben Elliston <bje@au.ibm.com>
21258
21259 PR c++/35652
21260 Revert:
21261
21262 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21263
21264 * builtins.c (c_strlen): Do not warn here.
21265 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
21266 * c-common.c (pointer_int_sum): Take an explicit location.
21267 Warn about offsets out of bounds.
21268 * c-common.h (pointer_int_sum): Adjust declaration.
21269
81f40b79
ILT
212702009-04-27 Ian Lance Taylor <iant@google.com>
21271
21272 * collect2.c (is_ctor_dtor): Change type of ret field in struct
21273 names to symkind.
21274 * dce.c (run_fast_df_dce): Change type of old_flags to int.
21275 * df-core.c (df_set_flags): Change return type to int. Change
21276 type of old_flags to int.
21277 (df_clear_flags): Likewise.
21278 * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
21279 (df_get_conditional_uses): Likewise.
21280 * df.h (df_set_flags, df_clear_flags): Update declarations.
21281 * dwarf2out.c (struct indirect_string_node): Change type of form
21282 field to enum dwarf_form.
21283 (AT_string_form): Change return type to enum dwarf_form.
21284 * fixed-value.c (fixed_compare): Add cast to enum type.
21285 * fwprop.c (update_df): Change 0 to VOIDmode.
21286 * gensupport.c: Change 0 to UNKNOWN.
21287 * gimple.h (gimple_cond_code): Add cast to enum type.
21288 * haifa-sched.c (reemit_notes): Add cast to enum type.
21289 * hooks.c (hook_int_void_no_regs): Remove function.
21290 * hooks.h (hook_int_void_no_regs): Remove declaration.
21291 * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
7a00d767 21292 * predict.c (combine_predictions_for_insn): Add casts to enum type.
81f40b79
ILT
21293 * real.c (real_arithmetic): Add cast to enum type.
21294 (real_compare): Likewise.
21295 * target.h (struct gcc_target): Change return type of
21296 branch_target_register_class to enum reg_class.
21297 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
21298 default_branch_target_register_class.
7a00d767 21299 * targhooks.c (default_branch_target_register_class): New function.
81f40b79 21300 * targhooks.h (default_branch_target_register_class): Declare.
7a00d767 21301 * tree-data-ref.c (print_direction_vector): Add cast to enum type.
81f40b79
ILT
21302 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
21303 cast to int.
21304 * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
21305 ERROR_MARK.
21306 * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
21307 vect_uninitialized_def. Change 0 to ERROR_MARK.
21308 * tree-vect-stmts.c (supportable_widening_operation): Don't
21309 initialize icode1 and icode2.
7a00d767 21310 * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
81f40b79
ILT
21311 * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
21312 and to STD_C89.
21313 (cmn_err_flag_specs): Change 0 to STD_C89.
21314 (cmn_err_char_table): Likewise.
21315 * config/arm/arm.c (get_arm_condition_code): Change type of code
21316 to enum arm_cond_code.
21317 (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
21318 (IWMMXT_BUILTIN2): Likewise.
21319 (neon_builtin_type_bits): Don't define typedef.
21320 (neon_builtin_datum): Change type of bits field to int.
21321 (arm_expand_neon_args): Add cast to enum type.
21322 * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
21323 TLS_MODEL_NONE.
21324 * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN. Add
21325 casts to enum type.
21326 * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
21327 MIPS_FP_COND_f.
21328 * config/mips/mips.md (jal_macro): Return enum constant.
21329 (single_insn): Likewise.
21330 * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
21331 CODE_FOR_nothing.
21332 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21333 casts to enum type.
21334 * config/s390/s390.c (s390_tune_flags): Change type to int.
21335 (s390_arch_flags): Likewise.
7a00d767 21336 (s390_handle_arch_option): Change flags field of struct pta to int.
81f40b79
ILT
21337 * config/s390/s390.h (s390_tune_flags): Update declaration.
21338 (s390_arch_flags): Likewise.
21339 * config/sh/sh.c (prepare_move_operands): Compare
21340 tls_symbolic_operand result with enum constant.
21341 (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
21342 (sh_expand_prologue): Add cast to enum type.
21343 (sh_expand_epilogue): Likewise.
21344 (tls_symbolic_operand): Change return type to enum tls_model.
21345 (fpscr_set_from_mem): Add cast to enum type.
21346 (legitimize_pic_address): Compare tls_symbolic_operand result with
21347 enum constant.
21348 (sh_target_reg_class): Change return type to enum reg_class.
21349 * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
21350 PROCESSOR_xxx.
7a00d767
UB
21351 * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
21352 * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
81f40b79
ILT
21353 * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
21354 (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
21355 (delayed_branch, tls_call_delay): Likewise.
21356 (eligible_for_sibcall_delay): Likewise.
f100a4a8 21357 (eligible_for_return_delay): Likewise.
81f40b79
ILT
21358 * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
21359 (spu_expand_builtin_1): Likewise.
21360
21361 * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
21362 for all types of conversions.
21363 (output_init_element): Issue -Wc++-compat warning if needed when
21364 initializing a bitfield with enum type.
21365 * c-parser.c (c_parser_expression): Set original_type to
9302a061 21366 original_type of right hand operand of comma operator.
81f40b79 21367
e4ae5e77
RW
213682009-04-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21369
21370 * doc/c-tree.texi (Types, Functions, Expression trees): Fix
21371 grammar nits.
7a00d767 21372 * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
e4ae5e77
RW
21373 * doc/cpp.texi (Standard Predefined Macros)
21374 (Implementation-defined behavior): Likewise.
7a00d767 21375 * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
e4ae5e77
RW
21376 * doc/gimple.texi (GIMPLE Exception Handling)
21377 (@code{GIMPLE_ASSIGN}): Likewise.
7a00d767 21378 * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
e4ae5e77
RW
21379 * doc/invoke.texi (Warning Options, Optimize Options)
21380 (AVR Options, Darwin Options): Likewise.
21381 (Optimize Options): Reformulate -fwhole-program description.
21382 * doc/loop.texi (Lambda): Likewise.
21383 * doc/md.texi (Output Template, Define Constraints)
21384 (Standard Names, Insn Splitting): Likewise.
21385 * doc/options.texi (Option properties): Likewise.
21386 * doc/passes.texi (Tree-SSA passes): Likewise.
21387 * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
21388 * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
21389 (File Names and DBX): Likewise.
21390 * doc/trouble.texi (Incompatibilities): Likewise.
21391
1883802f 213922009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
6e37f6d4
TS
21393
21394 * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
21395 instruction is correct.
21396
1883802f 213972009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
5345cf68
TS
21398
21399 Allow non-constant arguments to conversion intrinsics.
21400 * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
21401 * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
21402 * spu.c (print_operand): Handle 'v' and 'w'.
21403 (exp2_immediate_p, spu_gen_exp2): Define.
21404 * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
21405 spu_convtf_1): Update parameter descriptions.
7a00d767 21406 * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
5345cf68
TS
21407 * constraints.md ('v', 'w'): New.
21408 * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
21409 Remove.
21410 (i2f, I2F): New define_mode_attr.
21411 (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
21412 floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
21413 fixuns_truncv4sfv4si2): Update to use mode attribute.
21414 (float<mode><i2f>2_mul, float<mode><i2f>2_div,
21415 fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
21416 floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
21417 patterns for combine.
21418
5f39ad47
SB
214192009-04-27 Steven Bosscher <steven@gcc.gnu.org>
21420
21421 * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
21422 (cprop, hoist, pre, store_motion): New debug counters.
21423 * tree-pass.h (pass_tracer): Move to list of gimple passes, it
21424 is not an RTL pass anymore.
21425 (pass_profiling): Remove extern decl for pass removed in 2005.
21426 (pass_gcse, pass_jump_bypass): Remove.
21427 * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
21428 to 0 for clean state.
21429 * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
21430 * cse.c (gate_handle_cse_after_global_opts,
21431 rest_of_handle_cse_after_global_opts): New functions.
21432 (pass_cse_after_global_opts): New pass, does local CSE.
21433 * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
21434 (TV_CPROP): New timevar.
21435 * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
21436 (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
21437 (gcse_main, recompute_all_luids): Remove.
21438 (compute_hash_table_work): Call max_reg_num instead of reading
21439 max_gcse_regno.
21440 (cprop_jump): Don't set run_jump_opt_after_gcse.
21441 (constprop_register): Always allow to alter jumps.
21442 (cprop_insn): Likewise.
21443 (do_local_cprop): Likewise.
21444 (local_cprop_pass): Likewise. Return non-zero if something changed.
21445 (cprop): Remove function, fold interesting bits into one_cprop_pass.
21446 (find_implicit_sets): Add note about missed optimization opportunity.
21447 (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
21448 pass_rtl_cprop execute function.
21449 Don't bother tracking the pass number, each pass gets its own dumpfile
21450 now anyway.
21451 Always allow to alter jumpsand bypass jumps.
21452 (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
21453 will just find no suitable set.
21454 (pre_edge_insert): Fix dumping, this function is for PRE only.
21455 (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
21456 pass_rtl_pre execute function.
21457 (hoist_code): Return non-zero if something changed. Keep track of
21458 substitutions and insertions for statistics gathering similar to PRE.
21459 (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
21460 called from the pass_rtl_hoist execute function. Show pass statistics.
21461 (compute_store_table): Use max_reg_num directly instead of using the
21462 formerly global max_gcse_regno.
21463 (build_store_vectors): Likewise.
21464 (replace_store_insn): Fix dumping.
21465 (store_motion): Rename to ...
21466 (one_store_motion_pass): ... this. Rewrite to be "the" STORE_MOTION
21467 pass, called from the pass_rtl_store_motion execute function. Keep
21468 track of substitutions and insertions for statistics gathering similar
21469 to PRE.
21470 (bypass_jumps): Remove, fold interesting bits into ...
21471 (one_cprop_pass): ... this. Rewrite to be "the" CPROP pass, called
21472 from the pass_rtl_cprop execute function.
21473 (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
21474 pass_jump_bypass): Remove.
21475 (gate_handle_gcse, rest_of_handle_gcse): Remove.
21476 (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
21477 (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
21478 (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
21479 (gate_rtl_store_motion, execute_rtl_store_motion,
21480 pass_rtl_store_motion): New.
21481 * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
21482 make it clear that -fcse-skip-blocks is a no-op for backward compat.
21483 * passes.c (init_optimization_passes): Remove pass_gcse and
21484 pass_jump_bypass. Schedule cprop, pre, hoist, cprop, store_motion,
21485 and cse_after_global_opts in place of pass_gcse. Schedule cprop
21486 instead of pass_jump_bypass.
21487
c685de4a
RG
214882009-04-27 Richard Guenther <rguenther@suse.de>
21489
21490 PR middle-end/39928
21491 * gimplify.c (gimplify_expr): If we are required to create
21492 a temporary make sure it ends up as register.
21493
72d41f29
L
214942009-04-27 H.J. Lu <hongjiu.lu@intel.com>
21495
21496 PR target/39903
21497 * config/i386/i386.c (construct_container): Don't call
21498 gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
21499 X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
21500
e97809c6
MM
215012009-04-27 Michael Matz <matz@suse.de>
21502
21503 * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
21504 (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
bd62d832 21505 * tree-ssa-live.h (find_replaceable_exprs): Return a bitmap.
e97809c6
MM
21506 (dump_replaceable_exprs): Take a bitmap.
21507 * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
21508 array.
21509 (expand_gimple_basic_block): Likewise.
21510 * tree-ssa-ter.c (struct temp_expr_table_d): Make
21511 replaceable_expressions member a bitmap.
21512 (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
21513 (mark_replaceable): Likewise.
21514 (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
21515 * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
21516
211ca15c
RG
215172009-04-27 Richard Guenther <rguenther@suse.de>
21518
21519 * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
21520 (verify_stmts): Dispatch to gimple/type verification code.
21521 * tree-inline.c (remap_gimple_op_r): Work around C++ FE
21522 issue with call argument types.
21523
fca5f3d1
MM
215242009-04-27 Michael Matz <matz@suse.de>
21525
21526 * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
21527 (init_update_ssa, delete_update_ssa, update_ssa): Remove references
21528 to above.
21529
a1fa3e79 215302009-04-27 Richard Sandiford <rdsandiford@googlemail.com>
8224166e 21531 Eric Botcazou <ebotcazou@adacore.com>
a1fa3e79
EB
21532
21533 * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
21534 a label's basic block.
21535 (mark_target_live_regs): Tidy and rework obsolete comments.
21536 Change back DF problem to LIVE. If a label starts a basic block,
21537 assume that all registers that used to be live then still are.
21538 (init_resource_info): If a label starts a basic block, set its
21539 BLOCK_FOR_INSN accordingly.
21540 (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
21541
33b223c0
RG
215422009-04-27 Richard Guenther <rguenther@suse.de>
21543
21544 * tree-flow-inline.h (function_ann): Remove.
21545 (get_function_ann): Likewise.
21546 * tree-dfa.c (create_function_ann): Remove.
21547 * tree-flow.h (struct static_var_ann_d): Remove.
21548 (struct function_ann_d): Likewise.
21549 (union tree_ann_d): Remove fdecl member.
21550 (function_ann_t): Remove.
21551 (function_ann, get_function_ann, create_function_ann): Remove
21552 declarations.
21553
e3136fa2
UB
215542009-04-27 Uros Bizjak <ubizjak@gmail.com>
21555
21556 * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
21557
f87c9042
JH
215582009-04-27 Jan Hubicka <jh@suse.cz>
21559
21560 * ipa-pure-const.c (struct funct_state_d): New fields
21561 state_previously_known, looping_previously_known; remove
21562 state_set_in_source.
21563 (analyze_function): Use new fields.
21564 (propagate): Avoid assumption that state_set_in_source imply
21565 nonlooping.
21566
21567 * tree-ssa-loop-niter.c (finite_loop_p): New function.
21568 * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
21569 * cfgloop.h (finite_loop_p): Declare.
21570
33abd718
MM
215712009-04-26 Michael Matz <matz@suse.de>
21572
e3136fa2 21573 * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
33abd718 21574
ddc34084
MM
215752009-04-26 Michael Matz <matz@suse.de>
21576
21577 * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
21578 pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
21579 * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
21580 pass_mark_used_blocks): Remove.
21581 * tree-optimize.c (pass_free_datastructures,
21582 execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
21583 * passes.c (init_optimization_passes): Don't call
21584 pass_mark_used_blocks, remove dead code.
21585
1fec7ed4
L
215862009-04-26 H.J. Lu <hongjiu.lu@intel.com>
21587
21588 * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
21589 * tree-ssa-live.h (register_ssa_partition): Likewise.
21590
4e3825db
MM
215912009-04-26 Michael Matz <matz@suse.de>
21592
21593 Expand from SSA.
21594 * builtins.c (fold_builtin_next_arg): Handle SSA names.
21595 * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
21596 * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
f100a4a8 21597 SSA names.
4e3825db
MM
21598 (compare_pairs): Swap cost comparison.
21599 (coalesce_ssa_name): Don't use change_partition_var.
21600 * tree-nrv.c (struct nrv_data): Add modified member.
21601 (finalize_nrv_r): Set it.
21602 (tree_nrv): Use it to update statements.
21603 (pass_nrv): Require PROP_ssa.
21604 * tree-mudflap.c (mf_decl_cache_locals,
21605 mf_build_check_statement_for): Use make_rename_temp.
21606 (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
21607 * alias.c (find_base_decl): Handle SSA names.
21608 * emit-rtl (set_reg_attrs_for_parm): Make non-static.
21609 (component_ref_for_mem_expr): Don't leak SSA names into RTL.
21610 * rtl.h (set_reg_attrs_for_parm): Declare.
21611 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
21612 to "optimized", remove unused locals at finish.
21613 (execute_free_datastructures): Make global, call
21614 delete_tree_cfg_annotations.
21615 (execute_free_cfg_annotations): Don't call
21616 delete_tree_cfg_annotations.
21617
21618 * ssaexpand.h: New file.
21619 * expr.c (toplevel): Include ssaexpand.h.
e3136fa2 21620 (expand_assignment): Handle SSA names the same as register variables.
4e3825db
MM
21621 (expand_expr_real_1): Expand SSA names.
21622 * cfgexpand.c (toplevel): Include ssaexpand.h.
21623 (SA): New global variable.
21624 (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
21625 (SSAVAR): New macro.
21626 (set_rtl): New helper function.
21627 (add_stack_var): Deal with SSA names, use set_rtl.
21628 (expand_one_stack_var_at): Likewise.
21629 (expand_one_stack_var): Deal with SSA names.
21630 (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
21631 before unique numbers.
21632 (expand_stack_vars): Use set_rtl.
21633 (expand_one_var): Accept SSA names, add asserts for them, feed them
21634 to above subroutines.
21635 (expand_used_vars): Expand all partitions (without default defs),
21636 then only the local decls (ignoring those expanded already).
21637 (expand_gimple_cond): Remove edges when jumpif() expands an
21638 unconditional jump.
21639 (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
21640 or remove abnormal edges. Ignore insns setting the LHS of a TERed
21641 SSA name.
21642 (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
21643 members of SA; deal with PARM_DECL partitions here; expand
21644 all PHI nodes, free tree datastructures and SA. Commit instructions
21645 on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
21646 (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
21647 info and statements at start, collect garbage at finish.
21648 * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
21649 (VAR_ANN_PARTITION) Remove.
21650 (change_partition_var): Don't declare.
21651 (partition_to_var): Always return SSA names.
21652 (var_to_partition): Only accept SSA names.
21653 (register_ssa_partition): Only check argument.
21654 * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
21655 member.
21656 (delete_var_map): Don't free it.
21657 (var_union): Only accept SSA names, simplify.
21658 (partition_view_init): Mark only useful SSA names as used.
21659 (partition_view_fini): Only deal with SSA names.
21660 (change_partition_var): Remove.
21661 (dump_var_map): Use ssa_name instead of partition_to_var member.
21662 * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
21663 basic blocks.
21664 * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
21665 (struct _elim_graph): New member const_dests; nodes member vector of
21666 ints.
21667 (set_location_for_edge): New static helper.
21668 (create_temp): Remove.
21669 (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
e3136fa2 21670 insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
4e3825db
MM
21671 (new_elim_graph): Allocate const_dests member.
21672 (clean_elim_graph): Truncate const_dests member.
21673 (delete_elim_graph): Free const_dests member.
21674 (elim_graph_size): Adapt to new type of nodes member.
21675 (elim_graph_add_node): Likewise.
21676 (eliminate_name): Likewise.
21677 (eliminate_build): Don't take basic block argument, deal only with
21678 partition numbers, not variables.
21679 (get_temp_reg): New static helper.
21680 (elim_create): Use it, deal with RTL temporaries instead of trees.
21681 (eliminate_phi): Adjust all calls to new signature.
21682 (assign_vars, replace_use_variable, replace_def_variable): Remove.
21683 (rewrite_trees): Only do checking.
21684 (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
21685 (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
21686 init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
21687 contains_tree_r, MAX_STMTS_IN_LATCH,
21688 process_single_block_loop_latch, analyze_edges_for_bb,
21689 perform_edge_inserts): Remove.
21690 (expand_phi_nodes): New global function.
21691 (remove_ssa_form): Take ssaexpand parameter. Don't call removed
21692 functions, initialize new parameter, remember partitions having a
21693 default def.
21694 (finish_out_of_ssa): New global function.
21695 (rewrite_out_of_ssa): Make global. Adjust call to remove_ssa_form,
21696 don't reset in_ssa_p here, don't disable TER when mudflap.
21697 (pass_del_ssa): Remove.
21698 * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
21699 partition members.
21700 (execute_free_datastructures): Declare.
21701 * Makefile.in (SSAEXPAND_H): New variable.
21702 (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
21703 * basic-block.h (commit_one_edge_insertion): Declare.
21704 * passes.c (init_optimization_passes): Move pass_nrv and
21705 pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
21706 pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
21707 * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
21708 (redirect_branch_edge): Deal with super block when expanding, split
21709 out jump patching itself into ...
21710 (patch_jump_insn): ... here, new static helper.
21711
17c665a9
MM
217122009-04-26 Michael Matz <matz@suse.de>
21713
21714 * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
21715 beyond num_ssa_names.
21716 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
21717 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
21718
92061771
JJ
217192009-04-26 Jakub Jelinek <jakub@redhat.com>
21720
ce372372
JJ
21721 PR inline-asm/39543
21722 * fwprop.c (forward_propagate_asm): New function.
21723 (forward_propagate_and_simplify): Propagate also into __asm, if it
21724 doesn't increase the number of referenced registers.
21725
92061771
JJ
21726 PR c/39889
21727 * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
21728
217292009-04-26 Jakub Jelinek <jakub@redhat.com>
77f2a970
JJ
21730
21731 * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
21732 note_nonlocal_vla_type for nonlocal VLAs.
21733 (note_nonlocal_vla_type, note_nonlocal_block_vlas,
21734 contains_remapped_vars, remap_vla_decls): New functions.
21735 (convert_nonlocal_reference_stmt): If not optimizing, call
21736 note_nonlocal_block_vlas on GIMPLE_BIND block vars.
21737 (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
21738 if it wasn't found in var_map.
21739 (finalize_nesting_tree_1): Call remap_vla_decls. If outermost
21740 GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
21741 to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
21742 declare_vars.
21743 * gimplify.c (nonlocal_vlas): New variable.
21744 (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
21745 referenced VLAs.
21746 (gimplify_body): Create and destroy nonlocal_vlas.
a9548ddf 21747
4561e242
JJ
21748 * dwarf2out.c (loc_descr_plus_const): New function.
21749 (build_cfa_aligned_loc, tls_mem_loc_descriptor,
21750 mem_loc_descriptor, loc_descriptor_from_tree_1,
21751 descr_info_loc, gen_variable_die): Use it.
21752
a9548ddf
JJ
21753 * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
21754 !TREE_STATIC VAR_DECLs.
21755 * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
21756 DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
21757 (gen_variable_die): Likewise. Don't look at TREE_PRIVATE if
21758 DECL_BY_REFERENCE is valid.
21759 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
21760 for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
21761 * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
21762 Copy DECL_BY_REFERENCE.
21763 (struct nesting_copy_body_data): New type.
21764 (nesting_copy_decl): New function.
21765 (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
21766 if they have variable length.
21767
10555d08
MM
217682009-04-26 Michael Matz <matz@suse.de>
21769
21770 * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
21771 mark new temporaries for renaming.
21772
e11187cc
JM
217732009-04-26 Joseph Myers <joseph@codesourcery.com>
21774
21775 PR c/39581
21776 * c-decl.c (global_bindings_p): Return negative value.
21777 (c_variable_size): New. Based on variable_size from
21778 stor-layout.c.
21779 (grokdeclarator): Call c_variable_size not variable_size.
21780
f6a51d31
UB
217812009-04-26 Uros Bizjak <ubizjak@gmail.com>
21782
21783 * config/i386/i386.c (print_operand) ['z']: Fix typo.
21784
4b97723d
KT
217852009-04-26 Kai Tietz <kai.tietz@onevision.com>
21786
21787 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
21788 Redefine it to just use mingw/include.
21789 (ASM_SPEC): Rules for -m32 and -m64.
21790 (LINK_SPEC): Use Likewise.
21791 (SPEC_32): New define.
21792 (SPEC_64): Likewise.
21793 (SUB_LINK_SPEC): Likewise.
21794 (MULTILIB_DEFAULTS): New define.
21795 * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
21796 Add multilib options.
21797 (MULTILIB_DIRNAMES): Likewise.
21798 (MULTILIB_OSDIRNAMES): Likewise.
21799 (LIBGCC): Likewise.
21800 (INSTALL_LIBGCC): Likewise.
21801
991d6621
JM
218022009-04-26 Joseph Myers <joseph@codesourcery.com>
21803
21804 PR c/39556
21805 * c-tree.h (enum c_inline_static_type): New.
21806 (record_inline_static): Declare.
21807 * c-decl.c (struct c_inline_static, c_inline_statics,
21808 record_inline_static, check_inline_statics): New.
21809 (pop_file_scope): Call check_inline_statics.
21810 (start_decl): Call record_inline_static instead of pedwarning
21811 directly for static in inline function.
21812 * c-typeck.c (build_external_ref): Call record_inline_static
21813 instead of pedwarning directly for static referenced in inline
21814 function.
21815
4a81774c
SB
218162009-04-26 Steven Bosscher <steven@gcc.gnu.org>
21817
21818 * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
21819 not new but only being rescanned.
21820 * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
21821 reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
21822 alloc_reg_set_mem, free_reg_set_mem, record_one_set,
21823 record_set_info, compute_set, grealloc): Remove.
21824 (recompute_all_luids): New function.
21825 (gcse_main): Don't compute sets, and don't do related memory
21826 allocations/free-ing. If something changed before the end of the
21827 pass, update LUIDs using recompute_all_luids.
21828 (alloc_gcse_mem): Don't compute LUIDs. Don't allocate reg_set memory.
21829 (free_gcse_mem): Don't free it either.
21830 (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
21831 Use the df insn LUIDs.
21832 (load_killed_in_block): Likewise.
21833 (compute_hash_table_work): Don't compute reg_set_in_block.
21834 (compute_transp): Use DF_REG_DEF_CHAINs.
21835 (local_cprop_pass): Don't use compute_sets and related functions.
21836 (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
21837 Use get_max_uid() instead of max_cuid.
21838 (insert_insn_end_basic_block, pre_insert_copy_insn,
21839 update_ld_motion_stores): Don't try to
21840 keep reg_set tables up to date.
21841 (pre_insert_copies): Use df insn LUIDs.
21842 (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
21843 (reg_set_info): Don't use extra bitmap argument.
21844 (compute_store_table): Don't compute reg_set_in_block. Use DF scan
21845 information to compute regs_set_in_block.
21846 (free_store_memory, store_motion): Don't nullify reg_set_in_block.
21847 (bypass_jumps): Don't use compute_sets and friends.
21848
e8f99a9d
RW
218492009-04-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21850
21851 PR testsuite/39710
21852 * opts.c (undocumented_msg): Do not leave blank even with
21853 ENABLE_CHECKING.
21854
6895bac8
JM
218552009-04-25 Joseph Myers <joseph@codesourcery.com>
21856
21857 * c-decl.c (build_enumerator): Allow values folding to integer
21858 constants but not integer constant expressions with a pedwarn if
21859 pedantic.
21860
24070fcb
JM
218612009-04-25 Joseph Myers <joseph@codesourcery.com>
21862
21863 PR c/39582
21864 * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
21865 with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
21866 type is an integer constant.
21867
d6d89aa1
UB
218682009-04-25 Uros Bizjak <ubizjak@gmail.com>
21869
21870 PR target/39897
21871 * config/i386/i386.c (print_operand) ['z']: Revert handling of
21872 HImode operands.
21873
92f6fd0b
JM
218742009-04-25 Joseph Myers <joseph@codesourcery.com>
21875
21876 PR c/39564
21877 * c-decl.c (grokdeclarator): Diagnose declarations of functions
21878 with variably modified return type and no storage class
21879 specifiers, except for the case of nested functions. Distinguish
21880 extern declarations of functions with variably modified return
21881 types from those of objects with variably modified types.
21882
a3710436
JH
218832009-04-25 Jan Hubicka <jh@suse.cz>
21884
21885 * tree.c (list_equal_p): New function.
21886 * tree.h (list_equal_p): Declare.
21887 * coretypes.h (edge_def, edge, const_edge, basic_block_def
21888 basic_block_def, basic_block, const_basic_block): New.
21889 * tree-eh.c (make_eh_edge): EH edges are not abnormal.
21890 (redirect_eh_edge): New function.
21891 (make_eh_edge_update_phi): EH edges are not abnormal.
21892 * except.c: Include tree-flow.h.
21893 (list_match): New function.
21894 (eh_region_replaceable_by_p): New function.
21895 (replace_region): New function.
21896 (hash_type_list): New function.
21897 (hash_eh_region): New function.
21898 (eh_regions_equal_p): New function.
21899 (merge_peers): New function.
21900 (remove_unreachable_regions): Verify EH tree when checking;
21901 merge peers.
21902 (copy_eh_region_1): New function.
21903 (copy_eh_region): New function.
21904 (push_reachable_handler): New function.
21905 (build_post_landing_pads, dw2_build_landing_pads): Be ready for
21906 regions without label but with live RESX.
21907 * except.h (redirect_eh_edge_to_label): New.
21908 * tree-flow.h (redirect_eh_edge): New.
21909 * coretypes.h (edge_def, edge, const_edge, basic_block_def
21910 basic_block_def, basic_block, const_basic_block): Remove.
21911 * Makefile.in (except.o): Add dependency on tree-flow.h
21912 * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
21913 * basic-block.h (edge, const_edge, basic_block, const_basic_block):
21914 Remove.
21915
3764d512
EB
219162009-04-25 Eric Botcazou <ebotcazou@adacore.com>
21917
21918 PR bootstrap/39645
21919 * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
21920 on the destination of memcpy.
21921
1c62e8f2
PB
219222009-04-25 Paolo Bonzini <bonzini@gnu.org>
21923
21924 * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
21925 REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
21926 REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
21927
496a4ef5
JH
219282009-04-25 Jan Hubicka <jh@suse.cz>
21929
21930 * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
21931 (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
21932 to be reached by different label than left.
21933 (update_eh_edges): Update comment; remove edge_to_remove if possible
21934 and return true if suceeded.
21935 (cleanup_empty_eh): Accept sharing map; handle shared regions.
21936 (cleanup_eh): Compute sharing map.
21937 * except.c (remove_eh_handler_and_replace): Add argument if we should
21938 update regions.
21939 (remove_unreachable_regions): Update for label sharing.
21940 (label_to_region_map): Likewise.
21941 (get_next_region_sharing_label): New function.
21942 (remove_eh_handler_and_replace): Add update_catch_try parameter; update
21943 prev_try pointers.
21944 (remove_eh_handler): Update.
21945 (remove_eh_region_and_replace_by_outer_of): New function.
21946 * except.h (struct eh_region): Add next_region_sharing_label.
21947 (remove_eh_region_and_replace_by_outer_of,
21948 get_next_region_sharing_label): Declare.
21949 * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
21950
219512009-04-25 Jan Hubicka <jh@suse.cz>
21952
21953 * tree-cfg.c (split_critical_edges): Split also edges where we can't
21954 insert code even if they are not critical.
21955
219562009-04-25 Jan Hubicka <jh@suse.cz>
21957
21958 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
21959 (gimple_can_remove_branch_p): EH edges won't remove branch by
21960 redirection.
21961 * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
21962 updating of non-abnormal EH edges.
21963 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
21964 (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
21965 (split_critical_edges): Split also edges where emitting code on them
21966 will lead to splitting later.
21967
a3a5e3d1
UB
219682009-04-25 Uros Bizjak <ubizjak@gmail.com>
21969 H.J. Lu <hongjiu.lu@intel.com>
21970
21971 PR target/39590
21972 * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
21973 the configured assembler supports fildq and fistpq mnemonics.
21974 (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
21975 * configure: Regenerated.
21976 * config.in: Ditto.
21977
21978 * config/i386/i386.c (print_operand): Handle 'Z'.
21979 ['z']: Remove handling of special fild/fist suffixes.
21980 (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
21981 * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
21982 suffix of fild insn.
21983 (*floatsi<mode>2_vector_mixed): Ditto.
21984 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
21985 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
21986 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
21987 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
21988 * config/i386/gas.h (GAS_MNEMONICS): Remove.
21989
23750d7f 219902009-04-25 Ben Elliston <bje@au.ibm.com>
f100a4a8 21991
23750d7f
BE
21992 * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
21993 the source of a set operation.
21994
e6ff3083
AS
219952009-04-25 Anatoly Sokolov <aesok@post.ru>
21996
21997 * target.h (struct gcc_target): Add case_values_threshold field.
21998 * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
21999 (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
22000 * targhooks.c (default_case_values_threshold): New function.
22001 * targhooks.h (default_case_values_threshold): Declare function.
22002 * stmt.c (expand_case): Use case_values_threshold target hook.
22003 * expr.h (case_values_threshold): Remove declartation.
22004 * expr.c (case_values_threshold): Remove function.
22005 * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
22006
22007 * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
22008 * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
22009 (avr_case_values_threshold): Declare as static.
22010 * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
22011
22012 * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
22013 * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
22014 (mn10300_case_values_threshold): New function.
22015
569c72fc
L
220162009-04-24 H.J. Lu <hongjiu.lu@intel.com>
22017
22018 * ira.c (setup_cover_and_important_classes): Add enum cast.
22019
ff3cb468
VM
220202009-04-24 Vladimir Makarov <vmakarov@redhat.com>
22021
22022 * genpreds.c (write_enum_constraint_num): Output definition of
22023 CONSTRAINT_NUM_DEFINED_P macro.
22024 * ira.c (setup_cover_and_important_classes): Use
22025 CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
f100a4a8 22026
4f7be849
DD
220272009-04-24 DJ Delorie <dj@redhat.com>
22028
22029 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
22030 __SH2A_SINGLE_ONLY__ also.
22031
735b94a7
SE
220322009-04-24 Steve Ellcey <sje@cup.hp.com>
22033
22034 * config/ia64/ia64.md (movfs_internal): Allow flt constants.
22035 (movdf_internal): Ditto.
22036 * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
22037 SFmode and DFmode constants.
22038 (ia64_print_operand): Add 'G' format for printing
22039 floating point constants.
22040
77a30264
RG
220412009-04-24 Richard Guenther <rguenther@suse.de>
22042
22043 * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
22044 from unsigned additions.
22045
2b6da65c
JM
220462009-04-24 Joseph Myers <joseph@codesourcery.com>
22047
22048 * c-typeck.c (set_init_index): Allow array designators that are
22049 not integer constant expressions with a pedwarn if pedantic.
22050
f5a17c43
BS
220512009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
22052
22053 * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
22054 zero if no overlap in nonzero bits between the operands.
22055
32e8bb8e
ILT
220562009-04-24 Ian Lance Taylor <iant@google.com>
22057
22058 * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
22059 (record_dead_and_set_regs): Likewise.
22060 * df.h (struct df_mw_hardreg): Change flags field to int.
22061 (struct df_base_ref): Likewise.
22062 (struct df): Change changeable_flags field to int.
22063 * df-scan.c (df_defs_record): Change clobber_flags to int.
22064 * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
22065 constants rather than #define macros.
22066 (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
22067 (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
22068 (enum dwarf_calling_convention): Likewise.
22069 (enum dwarf_line_number_x_ops): Likewise.
22070 (enum dwarf_call_frame_info): Likewise.
22071 (enum dwarf_source_language): Likewise.
22072 * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
22073 (add_calling_convention_attribute): Likewise.
a3a5e3d1
UB
22074 * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
22075 (combine_comparisons): Change compcode to int. Add cast to enum type.
32e8bb8e
ILT
22076 * genrecog.c (maybe_both_true_2): Change c to int.
22077 (write_switch): Likewise. Add cast to enum type.
22078 * gimplify.c (gimplify_omp_for): Handle return values from
22079 gimplify_expr using MIN rather than bitwise or.
22080 (gimplify_expr): Add cast to enum type.
22081 * ipa-prop.c (update_jump_functions_after_inlining): Change
22082 IPA_BOTTOM to IPA_JF_UNKNOWN.
a3a5e3d1
UB
22083 * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
22084 Add casts to enum type.
32e8bb8e
ILT
22085 (setup_cover_and_important_classes): Change cl to int. Add casts
22086 to enum type.
22087 (setup_class_translate): Change cl and mode to int.
22088 (ira_init_once): Change mode to int.
22089 (free_register_move_costs): Likewise.
22090 (setup_prohibited_mode_move_regs): Add casts to enum type.
22091 * langhooks.c (add_builtin_function_common): Rework assertion that
22092 value fits bitfield.
22093 * mcf.c (add_fixup_edge): Change type parameter to edge_type.
22094 * omega.c (omega_do_elimination): Avoid math on enum types.
22095 * optabs.c (expand_vec_shift_expr): Remove casts to int.
22096 * opts.c (set_debug_level): Change 2 to enum constant. Use new
22097 int local to handle integral_argment value.
22098 * regmove.c (try_auto_increment): Change PUT_MODE to
22099 PUT_REG_NOTE_KIND.
22100 * reload.c (push_secondary_reload): Add casts to enum type.
22101 (secondary_reload_class, find_valid_class): Likewise.
22102 * reload1.c (emit_input_reload_insns): Likewise.
22103 * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
22104 * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
22105 * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
22106 constant.
22107 * tree.c (build_common_builtin_nodes): Add casts to enum type.
22108 * tree-complex.c (complex_lattice_t): Typedef to int rather than
22109 enum type.
22110 (expand_complex_libcall): Add casts to enum type.
22111 * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
22112 * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
22113 with ERROR_MARK, not NUM_TREE_CODES.
22114 (vect_create_epilog_for_reduction): Likewise.
22115 (vectorizable_reduction): Don't initialize epiloc_reduc_code.
a3a5e3d1 22116 When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
32e8bb8e
ILT
22117 * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
22118 enum machine_mode.
22119 * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
22120 vect_unused_in_loop. Change 0 to loop_vect.
a3a5e3d1 22121 * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
32e8bb8e
ILT
22122 * var-tracking.c (get_init_value): Change return type to enum
22123 var_init_status.
22124 * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
22125 * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
22126 arm_fp_model.
22127 (arm_override_options): Add casts to enum type.
22128 (arm_emit_tls_decoration): Likewise.
22129 * config/i386/i386.c (ix86_function_specific_restore): Add casts
22130 to enum type.
22131 * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
22132 * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
22133 * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
22134 enum type.
22135 * config/s390/s390.c (code_for_builtin_64): Change to array of
22136 enum insn_code.
22137 (code_for_builtin_31): Likewise.
22138 (s390_expand_builtin): Change code_for_builtin to enum insn_code
22139 const *.
22140 * config/sparc/sparc.c (sparc_override_options): Change value
22141 field in struct code_model to enum cmodel. In initializer change
22142 0 to NULL and add cast to enum type.
22143
22144 * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
22145 Change all callers. Issue a -Wc++-compat warning using
22146 lhs_origtype if necessary.
22147 (convert_for_assignment): Issue -Wc++-compat warnings about
22148 invalid conversions to enum type on assignment.
22149 * c-common.h (build_modify_expr): Update declaration.
22150
ac4fc08a
NC
221512009-04-24 Nick Clifton <nickc@redhat.com>
22152
22153 * config/iq2000/iq2000.c (function_arg): Handle TImode values.
22154 (function_arg_advance): Likewise.
22155 * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
22156 5th alternative.
22157
f22e891a
AK
221582009-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
22159
22160 * config/s390/constraints.md ('I', 'J'): Fix condition.
22161
ad58aabe
DN
221622009-04-24 Diego Novillo <dnovillo@google.com>
22163
22164 * gengtype-parse.c (parse_error): Add newline after message.
22165
879a4a01
L
221662009-04-24 H.J. Lu <hongjiu.lu@intel.com>
22167
22168 * config/i386/sse.md (avxmodesuffixs): Removed.
22169 (*avx_pinsr<avxmodesuffixs>): Renamed to ...
22170 (*avx_pinsr<ssevecsize>): This.
22171
f63426af
BS
221722009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
22173
22174 * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
22175 follow chains of regs with a single definition, and allow expressions
22176 that are function_invariant_p.
ce72fe6c 22177 (simple_rhs_p): Allow expressions that are function_invariant_p.
f63426af 22178
30349c74
PB
221792009-04-24 Paolo Bonzini <bonzini@gnu.org>
22180
22181 PR middle-end/39867
22182 * fold-const.c (fold_cond_expr_with_comparison): When folding
22183 > and >= to MAX, make sure the MAX uses the same type as the
22184 comparison's operands.
22185
8d8256c1
NC
221862009-04-24 Nick Clifton <nickc@redhat.com>
22187
22188 * config/frv/frv.c (frv_frame_access): Do not use reg+reg
22189 addressing for DImode accesses.
22190 (frv_print_operand_address): Handle PLUS case.
a3a5e3d1 22191 * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
8d8256c1 22192
6216f94e
JJ
221932009-04-24 Jakub Jelinek <jakub@redhat.com>
22194
22195 PR rtl-optimization/39794
22196 * alias.c (canon_true_dependence): Add x_addr argument.
22197 * rtl.h (canon_true_dependence): Adjust prototype.
22198 * cse.c (check_dependence): Adjust canon_true_dependence callers.
22199 * cselib.c (cselib_invalidate_mem): Likewise.
22200 * gcse.c (compute_transp): Likewise.
22201 * dse.c (scan_reads_nospill): Likewise.
22202 (record_store, check_mem_read_rtx): Likewise. For non-const-or-frame
22203 addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
22204 canon_base_addr of the group, plus optional offset.
22205 (struct group_info): Rename canon_base_mem to
22206 canon_base_addr.
22207 (get_group_info): Set canon_base_addr to canon_rtx of base, not
22208 canon_rtx of base_mem.
22209
6de7a512
PB
222102009-04-23 Paolo Bonzini <bonzini@gnu.org>
22211
22212 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
22213 Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
22214
4a3a2376
UW
222152009-04-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22216
22217 * config/spu/spu-builtins.h: Delete file.
22218
22219 * config/spu/spu.h (enum spu_builtin_type): Move here from
22220 spu-builtins.h.
22221 (struct spu_builtin_description): Likewise. Add GTY marker.
22222 Do not use enum spu_function_code or enum insn_code.
22223 (spu_builtins): Add extern declaration.
22224
22225 * config/spu/spu.c: Do not include "spu-builtins.h".
22226 (enum spu_function_code, enum spu_builtin_type_index,
22227 V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
22228 V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
22229 unsigned_V8HI_type_node, unsigned_V4SI_type_node,
22230 unsigned_V2DI_type_node): Move here from spu-builtins.h.
22231 (spu_builtin_types): Make static. Add GTY marker.
22232 (spu_builtins): Add extern declaration with GTY marker.
22233 Include "gt-spu.h".
22234
22235 * config/spu/spu-c.c: Do not include "spu-builtins.h".
22236 (spu_resolve_overloaded_builtin): Do not use spu_function_code.
22237 Check programmatically whether all parameters are scalar.
22238
22239 * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
22240
bbaba73f
EB
222412009-04-23 Eric Botcazou <ebotcazou@adacore.com>
22242
22243 * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
22244 assignment from the constructor either if the target is volatile.
22245
ee93c1c6
DJ
222462009-04-23 Daniel Jacobowitz <dan@codesourcery.com>
22247
22248 * config/arm/arm.md (insv): Do not share operands[0].
22249
b2f21330
NS
222502009-04-23 Nathan Sidwell <nathan@codesourcery.com>
22251
22252 * config/vxlib-tls.c (active_tls_threads): Delete.
22253 (delete_hook_installed): New.
22254 (tls_delete_hook): Don't delete the delete hook.
22255 (tls_destructor): Delete it here.
22256 (__gthread_set_specific): Adjust installing the delete hook.
22257 (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
22258 __gthread_leave_tsd_dtor_context.
22259
4782dfa7
RAE
222602009-04-23 Rafael Avila de Espindola <espindola@google.com>
22261
22262 * c-format.c (gcc_tdiag_char_table): Add support for %E.
22263
bf758008
UB
222642009-04-23 Uros Bizjak <ubizjak@gmail.com>
22265
22266 * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
22267 enum type.
22268 (alpha_rtx_costs): Ditto.
22269 (emit_unlikely_jump): Use add_reg_note.
22270 (emit_frame_store_1): Ditto.
22271 (alpha_expand_prologue): Ditto.
22272 (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
22273 * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
22274
7323a100
NC
222752009-04-23 Nick Clifton <nickc@redhat.com>
22276
22277 * config/v850/v850.md (epilogue): Remove suppressed code.
22278 (return): Rename to return_simple and remove test of frame size.
22279 * config/v850/v850.c (expand_epilogue): Rename call to gen_return
22280 to gen_return_simple.
22281
360032ba
JY
222822009-04-22 Jing Yu <jingyu@google.com>
22283
22284 PR testsuite/39781
22285 * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
22286
53650abe
AP
222872009-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
22288
22289 PR C/31499
22290 * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
22291 and RECORD_TYPE/UNION_TYPE. When outputing the actual element and the
22292 value is a VECTOR_CST, the element type is the element type of the
22293 vector.
22294
89043e8a
DD
222952009-04-22 DJ Delorie <dj@redhat.com>
22296
22297 * config/m32c/m32c.h: Update GTY annotations to new syntax.
22298
023f059b
JJ
222992009-04-22 Jakub Jelinek <jakub@redhat.com>
22300
22301 * alias.c (find_base_term): Move around LO_SUM case, so that
22302 CONST falls through into PLUS/MINUS handling.
22303
2c0eba5a
JJ
22304 PR c/39855
22305 * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
22306 into 0, use omit_one_operand.
22307
9a461028
BE
223082009-04-23 Ben Elliston <bje@au.ibm.com>
22309
22310 * config/rs6000/linux-unwind.h (get_regs): Remove type
22311 puns. Change the type of `pc' to an array of unsigned ints and
22312 update all users. Constify frame24.
22313
653e2568
DD
223142009-04-22 DJ Delorie <dj@redhat.com>
22315
22316 * config/m32c/m32c.c (m32c_special_page_vector_p): Move
22317 declarations before code.
22318 (current_function_special_page_vector): Likewise.
22319 (m32c_expand_insv): Silence a warning.
22320
60839f5d 223212009-04-21 Taras Glek <tglek@mozilla.com>
d1b38208
TG
22322
22323 * alias.c: Update GTY annotations to new syntax.
22324 * basic-block.h: Likewise.
22325 * bitmap.h: Likewise.
22326 * c-common.h: Likewise.
22327 * c-decl.c: Likewise.
22328 * c-parser.c: Likewise.
22329 * c-pragma.c: Likewise.
22330 * c-tree.h: Likewise.
22331 * cfgloop.h: Likewise.
22332 * cgraph.h: Likewise.
22333 * config/alpha/alpha.c: Likewise.
22334 * config/arm/arm.h: Likewise.
22335 * config/avr/avr.h: Likewise.
22336 * config/bfin/bfin.c: Likewise.
22337 * config/cris/cris.c: Likewise.
22338 * config/darwin.c: Likewise.
22339 * config/frv/frv.c: Likewise.
22340 * config/i386/i386.c: Likewise.
22341 * config/i386/i386.h: Likewise.
22342 * config/i386/winnt.c: Likewise.
22343 * config/ia64/ia64.h: Likewise.
22344 * config/iq2000/iq2000.c: Likewise.
22345 * config/mips/mips.c: Likewise.
22346 * config/mmix/mmix.h: Likewise.
22347 * config/pa/pa.c: Likewise.
22348 * config/pa/pa.h: Likewise.
22349 * config/rs6000/rs6000.c: Likewise.
22350 * config/s390/s390.c: Likewise.
22351 * config/sparc/sparc.c: Likewise.
22352 * config/xtensa/xtensa.c: Likewise.
22353 * cselib.h: Likewise.
22354 * dbxout.c: Likewise.
22355 * dwarf2out.c: Likewise.
22356 * except.c: Likewise.
22357 * except.h: Likewise.
22358 * fixed-value.h: Likewise.
22359 * function.c: Likewise.
22360 * function.h: Likewise.
22361 * gimple.h: Likewise.
22362 * integrate.c: Likewise.
22363 * optabs.c: Likewise.
22364 * output.h: Likewise.
22365 * real.h: Likewise.
22366 * rtl.h: Likewise.
22367 * stringpool.c: Likewise.
22368 * tree-data-ref.c: Likewise.
22369 * tree-flow.h: Likewise.
22370 * tree-scalar-evolution.c: Likewise.
22371 * tree-ssa-address.c: Likewise.
22372 * tree-ssa-alias.h: Likewise.
22373 * tree-ssa-operands.h: Likewise.
22374 * tree.c: Likewise.
22375 * tree.h: Likewise.
22376 * varasm.c: Likewise.
22377 * varray.h: Likewise.
22378 * vec.h: Likewise.
bf758008 22379 * coretypes.h: Do not define GTY macro if it is already defined.
d1b38208
TG
22380 * doc/gty.texi: Update GTY documentation to new syntax.
22381 * gengtype-lex.l: Enforce attribute-like syntax for GTY
22382 annotations on structs.
22383 * gengtype-parse.c: Likewise.
22384
a123d175
MH
223852009-04-22 Mark Heffernan <meheff@google.com>
22386
bf758008 22387 * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
a123d175 22388
4c7c486a
KH
223892009-04-22 Kazu Hirata <kazu@codesourcery.com>
22390
22391 * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
22392 where appropriate.
22393
6e782a29
KH
223942009-04-22 Kazu Hirata <kazu@codesourcery.com>
22395
22396 * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
22397 the same as a PLUS without a shift. Increase the cost of a
22398 CONST_INT in MULT.
22399
38d2336a
MLI
224002009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22401
22402 * Makefile.in: Update dependencies.
bf758008 22403 * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
38d2336a
MLI
22404 * errors.h: Remove bogus comment about compatibility.
22405 (warning): Update declaration.
22406 * genautomata.c: Update all calls to warning.
22407 * gimple.c: Do not include errors.h. Include toplev.h.
22408 * tree-ssa-structalias.c: Do not include errors.h.
22409 * omega.c: Likewise.
22410 * tree-ssa-reassoc.c: Likewise.
22411 * config/spu/spu-c.c: Likewise.
22412 * config/spu/t-spu-elf: Update dependencies.
22413
aea4deba
RG
224142009-04-22 Richard Guenther <rguenther@suse.de>
22415
22416 PR tree-optimization/39824
22417 * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
22418 make sure the types are compatible.
22419
cfc93532
MLI
224202009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22421
22422 PR c++/14875
22423 * c-common.c (c_parse_error): Take a token_flags parameter.
22424 Use token_type for the token type instead.
22425 Pass token_flags to cpp_type2name.
22426 * c-common.h (c_parse_error): Update declaration.
22427 * c-parser.c (c_parser_error): Pass 0 as token flags.
22428
8632d02a
AB
224292009-04-22 Andrey Belevantsev <abel@ispras.ru>
22430
22431 PR rtl-optimization/39580
f100a4a8
UB
22432 * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
22433
4c33221c
UW
224342009-04-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22435
22436 * function.c (expand_function_end): Do not emit a jump to the "naked"
22437 return label for fall-through returns.
22438 * except.c (sjlj_emit_function_exit): Always place the call to the
22439 unregister function at the location installed by expand_function_end.
22440
9925bce0
RG
224412009-04-22 Richard Guenther <rguenther@suse.de>
22442
22443 PR tree-optimization/39845
22444 * tree-switch-conversion.c (build_arrays): Add new referenced vars.
22445 (gen_inbound_check): Likewise.
22446
24a40b35
NS
224472009-04-22 Nathan Sidwell <nathan@codesourcery.com>
22448
22449 * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
22450 padding for PPC.
22451 (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
22452 * config/vxlib.c (__gthread_once): Add race guard for PPC.
22453
6c34a092
PB
224542009-04-22 Paolo Bonzini <bonzini@gnu.org>
22455
22456 * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
22457 sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
22458 shift counts to avoid out-of-bounds array accesses.
22459
baa48dfa
PB
224602009-04-22 Paolo Bonzini <bonzini@gnu.org>
22461
22462 * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
22463 (Pmode): Move above.
22464
7d83f4f5
UB
224652009-04-22 Uros Bizjak <ubizjak@gmail.com>
22466
22467 * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
22468 NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
22469 GET_CODE macro. Use IN_RANGE macro where appropriate.
22470 * config/alpha/alpha.h: Ditto.
22471 * config/alpha/alpha.md: Ditto.
22472 * config/alpha/constraints.md: Ditto.
22473 * config/alpha/predicates.md: Ditto.
f100a4a8 22474
3ad606bc
PB
224752009-04-22 Paolo Bonzini <bonzini@gnu.org>
22476
22477 * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
22478 * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22479 * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22480 * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22481 * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22482 * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22483 * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22484 * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22485 * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22486 * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22487 * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22488 * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22489 * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22490 * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22491 * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22492 * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22493 * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22494 * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22495 * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22496 * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22497 * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22498 * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22499 * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22500 * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22501 * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22502 * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22503 * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22504
3cabd6d1
LB
225052009-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
22506
22507 * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
22508 references from comments.
bd62d832 22509 * cfgbuild.c (count_basic_blocks): Delete.
3cabd6d1
LB
22510 (find_basic_blocks_1): Delete.
22511 (find_basic_blocks): Delete.
22512 * except.c (finish_eh_generation): Make static. Move comment from
7d83f4f5 22513 except.h here. Remove find_basic_blocks references from comments.
3cabd6d1
LB
22514 * except.h (finish_eh_generation): Delete.
22515 * basic-block.h (find_basic_blocks): Delete.
22516 * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
22517
270d1bcd
DK
225182009-04-22 Dave Korn <dave.korn.cygwin@gmail.com>
22519
22520 * sdbout.c (sdbout_symbol): Pass VOIDmode to eliminate_regs.
22521 (sdbout_parms): Likewise.
22522
b757d36f
KK
225232009-04-21 Kaz Kojima <kkojima@gcc.gnu.org>
22524
22525 * config/sh/sh.c (prepare_cbranch_operands): Use
22526 LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
22527 (expand_cbranchdi4): Likewise.
22528 (from_compare): Add cast to enum type.
22529 (expand_cbranchsi4): Use add_reg_note.
22530 (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
22531 (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
22532 (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
22533 (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
22534 * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
22535 instead of CODE_FOR_nothing.
22536 (cbranchdi4): Likewise. Fix the order of arguments for
22537 gen_rtx_fmt_ee.
22538 (push_fpscr): Use add_reg_note.
22539 (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
22540 reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
f100a4a8 22541
ad41bd84
JM
225422009-04-21 Joseph Myers <joseph@codesourcery.com>
22543
22544 * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
22545 ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
22546 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
22547 ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
22548 ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
22549 FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
22550 config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
22551 config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
22552 config/alpha/x-vms, config/arc/t-arc,
22553 config/arm/README-interworking, config/arm/arm-c.c,
22554 config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
22555 config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
22556 config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
22557 config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
22558 config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
22559 config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
22560 config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
22561 config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
22562 config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
22563 config/cris/t-elfmulti, config/crx/t-crx,
22564 config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
22565 config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
22566 config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
22567 config/h8300/t-h8300, config/i386/athlon.md,
22568 config/i386/darwin-libgcc.10.4.ver,
22569 config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
22570 config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
22571 config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
22572 config/i386/t-linux64, config/i386/t-nwld,
22573 config/i386/t-rtems-i386, config/i386/t-sol2-10,
22574 config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
22575 config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
22576 config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
22577 config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
22578 config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
22579 config/iq2000/t-iq2000, config/libgcc-glibc.ver,
22580 config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
22581 config/m32r/t-m32r, config/m68hc11/t-m68hc11,
22582 config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
22583 config/m68k/t-uclinux, config/mcore/t-mcore,
22584 config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
22585 config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
22586 config/mips/crtn.asm, config/mips/irix-crti.asm,
22587 config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
22588 config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
22589 config/mips/mips-fixed.md, config/mips/sb1.md,
22590 config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
22591 config/mips/t-iris6, config/mips/t-isa3264,
22592 config/mips/t-libgcc-mips16, config/mips/t-linux64,
22593 config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
22594 config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
22595 config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
22596 config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
22597 config/mn10300/t-linux, config/mn10300/t-mn10300,
22598 config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
22599 config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
22600 config/picochip/libgccExtras/clzsi2.asm,
22601 config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
22602 config/rs6000/darwin-libgcc.10.4.ver,
22603 config/rs6000/darwin-libgcc.10.5.ver,
22604 config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
22605 config/rs6000/t-aix43, config/rs6000/t-aix52,
22606 config/rs6000/t-darwin, config/rs6000/t-fprules,
22607 config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
22608 config/rs6000/t-lynx, config/rs6000/t-netbsd,
22609 config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
22610 config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
22611 config/rs6000/t-rtems, config/rs6000/t-spe,
22612 config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
22613 config/score/t-score-elf, config/sh/divcost-analysis,
22614 config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
22615 config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
22616 config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
22617 config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
22618 config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
22619 config/stormy16/stormy-abi, config/stormy16/t-stormy16,
22620 config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
22621 config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
22622 config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
22623 config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
22624 config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
22625 gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
22626 java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
22627 limitx.h, version.c, xcoff.h: Add copyright and license notices.
22628 * config/h8300/genmova.sh: Include copyright and license notices
22629 in generated output.
22630 * config/h8300/mova.md: Regenerate.
22631 * doc/install.texi2html: Include word "Copyright" in copyright
22632 notice and use name "Free Software Foundation, Inc.".
22633 * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
22634 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
22635 ChangeLog-2007, ChangeLog-2008: Correct dates.
22636
ca80e52b
EB
226372009-04-21 Eric Botcazou <ebotcazou@adacore.com>
22638
22639 * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
22640 NE_EXPR operations as well.
22641 * c-parser.c (c_parser_condition): Do not set location information on
22642 the condition.
22643 (c_parser_conditional_expression): Likewise.
22644 (c_parser_binary_expression): Set location information on operators.
22645 * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
22646 TRUTH_NOT_EXPR has been folded.
22647 * fold-const.c (fold_truth_not_expr): Copy location information from
22648 the incoming expression to the outgoing one.
22649 * gimplify.c (shortcut_cond_r): Add locus parameter. Pass it to
22650 recursive calls on the LHS of the operator but pass that of the
22651 operator to recursive calls on the RHS of the operator. Set it
22652 on the COND_EXPR.
22653 (shortcut_cond_expr): Set the locus of the operator on the second
22654 COND_EXPR and that of the expression on the first in degenerate cases.
22655 Pass the locus of the expression to calls to shortcut_cond_r.
22656 Set the locus of the 'then' block on the associated jump, if any.
22657 (gimplify_boolean_expr): Add locus parameter. Set it on the COND_EXPR.
22658 (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
22659 expression to call to gimplify_boolean_expr.
22660
35091630
KT
226612009-04-21 Kai Tietz <kai.tietz@onevision.com>
22662
22663 * config.gcc: Add additional configuration for
22664 i686-w64-mingw* and x86_64-w64-mingw* triplet.
22665 * config/i386/mingw-w64.h: New mingw-w64 specific header.
22666 (CPP_SPEC): Redefine for allowing -municode option.
22667 (STARTFILE_SPEC): Likewise.
22668 * config/i386/t-mingw-w64: New.
22669 * config/i386/mingw-w64.opt: New.
22670 (municode): Add new target option.
22671 * doc/invoke.texi (municode): Add documentation for new option.
22672
0267afc4
ILT
226732009-04-21 Ian Lance Taylor <iant@google.com>
22674
22675 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
22676 Correct test for number of arguments.
22677 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
22678
2ba9daa7
AS
226792009-04-21 Andreas Schwab <schwab@linux-m68k.org>
22680
22681 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
22682 argument of emit_library_call.
22683
ad8a1ac0
RG
226842009-04-21 Richard Guenther <rguenther@suse.de>
22685
22686 PR middle-end/39829
22687 * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
22688 inside VIEW_CONVERT_EXPRs.
22689
7156c8ab
MJ
226902009-04-21 Martin Jambor <mjambor@suse.cz>
22691
22692 * tree-switch-conversion.c (build_constructors): Split a long line.
22693 (constructor_contains_same_values_p): New function.
7d83f4f5
UB
22694 (build_one_array): Create assigns of constants if possible, do not
22695 call mark_sym_for_renaming, call update_stmt.
7156c8ab
MJ
22696 (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
22697 make_rename_temp. Do not call mark_symbols_for_renaming, call
22698 update_stmt.
22699 (gen_def_assigns): Do not call mark_symbols_for_renaming or
22700 find_new_referenced_vars, call update_stmt.
22701 (gen_inbound_check): Use create_tmp_var and create ssa names manually
22702 instead of calling make_rename_temp. Do not call
22703 find_new_referenced_vars or mark_symbols_for_renaming, call
22704 update_stmt.
22705
2970ccb3
RG
227062009-04-21 Richard Guenther <rguenther@suse.de>
22707
22708 PR tree-optimization/39827
7d83f4f5 22709 * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
2970ccb3
RG
22710 (tree_ssa_phiprop): Pass the correct array size.
22711
47f402d1
UB
227122009-04-21 Uros Bizjak <ubizjak@gmail.com>
22713
22714 * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
22715
1e4ae551
MLI
227162009-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
22717
22718 PR 16202
22719 * c-typeck.c (lvalue_p): Move declaration ...
22720 * c-common.h (lvalue_p): ... to here.
22721 * c-common.c (candidate_equal_p): New.
22722 (add_tlist): Use it.
22723 (merge_tlist): Use it.
22724 (warn_for_collisions_1): Likewise.
22725 (warning_candidate_p): Accept more candidates.
22726 (verify_tree): A warning candidate can be an expression. Use
22727 candidate_equal_p.
22728
244609a6
BE
227292009-04-21 Ben Elliston <bje@au.ibm.com>
22730
22731 PR target/5267
22732 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
22733 for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
22734 options. Remove -mcall-solaris documentation.
22735
9c650d90
MLI
227362009-04-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22737
22738 PR c++/13358
22739 * doc/invoke.texi (-Wlong-long): Update description.
22740 * c-lex (interpret_integer): Only warn if there was no previous
22741 overflow and -Wlong-long is enabled.
22742 * c-decl.c (declspecs_add_type): Drop redundant flags.
22743 * c.opt (Wlong-long): Init to -1.
22744 * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
22745 and front-end warn_long_long. Wlong-long only depends on other
22746 flags if it is uninitialized.
22747 * c-parser.c (disable_extension_diagnostics): warn_long_long is
22748 the same for CPP and FE.
22749 (restore_extension_diagnostics): Likewise.
22750
bbbbb16a
ILT
227512009-04-20 Ian Lance Taylor <iant@google.com>
22752
22753 Fix enum conversions which are invalid in C++:
47f402d1
UB
22754 * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
22755 * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
bbbbb16a
ILT
22756 * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
22757 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
47f402d1 22758 * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
bbbbb16a 22759 (dbxout_parms): Likewise.
47f402d1 22760 * df-core.c (df_set_flags): Change changeable_flags parameter to int.
bbbbb16a
ILT
22761 (df_clear_flags): Likewise.
22762 * df-problems.c (df_rd_bb_local_compute_process_def): Change
22763 top_flag parameter to int.
22764 (df_chain_create_bb_process_use): Likewise.
47f402d1
UB
22765 (df_chain_add_problem): Change chain_flags parameter to unsigned int.
22766 Remove cast.
bbbbb16a
ILT
22767 * df-scan.c (df_ref_create): Change ref_flags parameter to int.
22768 (df_ref_create_structure, df_def_record_1): Likewise.
22769 (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
22770 (df_notes_rescan): Change 0 to VOIDmode in function call.
22771 (df_get_call_refs, df_insn_refs_collect): Likewise.
22772 (df_bb_regs_collect): Likewise.
22773 (df_entry_block_defs_collect): Likewise.
22774 (df_exit_block_uses_collect): Likewise.
22775 * df.h: Update declarations.
22776 * double-int.c (double_int_divmod): Add cast to enum type.
22777 * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
22778 * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
22779 (based_loc_descr): Likewise.
22780 (loc_descriptor_from_tree_1): Change first_op and second_op to
22781 enum dwarf_location_atom. Add cast to enum type.
22782 * expmed.c (init_expmed): Change 0 to SET in function call.
47f402d1 22783 * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
bbbbb16a
ILT
22784 (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
22785 (do_store_flag): Likewise.
22786 * fixed-value.h (struct fixed_value): Change mode to enum
22787 machine_mode.
47f402d1 22788 * function.c (assign_parms): Change 0 to VOIDmode in function call.
bbbbb16a
ILT
22789 * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
22790 function call.
22791 (insert_insn_decl, insert_decl, insert_state): Likewise.
22792 (automata_list_finish): Likewise.
22793 * genrecog.c (process_define_predicate): Add cast to enum type.
22794 * gensupport.c (init_predicate_table): Add cast to enum type.
22795 * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
22796 function call.
22797 (gimple_build_call_1, gimple_build_label): Likewise.
22798 (gimple_build_goto, gimple_build_asm_1): Likewise.
22799 (gimple_build_switch_1, gimple_build_cdt): Likewise.
47f402d1 22800 * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
bbbbb16a
ILT
22801 (enum fallback): Rename from enum fallback_t.
22802 (fallback_t): Typedef as int.
22803 * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
22804 GSI_SAME_STMT in function call.
22805 * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
22806 enum type.
22807 (setup_reg_class_relations): Likewise.
47f402d1 22808 (setup_reg_class_nregs): Change cl to int. Add casts to enum type.
bbbbb16a
ILT
22809 (setup_prohibited_class_mode_regs): Add cast to enum type.
22810 (setup_prohibited_mode_move_regs): Likewise.
47f402d1 22811 * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
bbbbb16a
ILT
22812 (record_address_regs): Change i to enum reg_class.
22813 * lists.c (alloc_EXPR_LIST): Add cast to enum type.
22814 * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
22815 (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
22816 (GET_MODE_2XWIDER_MODE): Likewise.
22817 (GET_CLASS_NARROWEST_MODE): Likewise.
22818 * omp-low.c (expand_omp_for): Add cast to enum type.
22819 * optabs.c (debug_optab_libfuncs): Add casts to enum type.
22820 * opts.c (enable_warning_as_error): Change kind to diagostic_t.
22821 * postreload.c (reload_cse_simplify_operands): Change rclass local
22822 to enum reg_class.
22823 * predict.c (combine_predictions_for_insn): Change best_predictor
22824 and predictor to enum br_predictor.
22825 (combine_predictions_for_bb): Likewise.
22826 (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
22827 use SET_PREDICT_EXPR_OUTCOME.
47f402d1 22828 * real.c (real_arithmetic): Change icode to code in function call.
bbbbb16a
ILT
22829 * reginfo.c (init_move_cost): Add casts to enum type.
22830 (init_reg_sets_1, init_fake_stack_mems): Likewise.
22831 * regmove.c (regclass_compatible_p): Change class0 and class1 to
22832 enum reg_class.
22833 * reload.c (find_valid_class): Add casts to enum type.
22834 (push_reload): Change 0 to NO_REGS in function call.
22835 (find_reloads): Change this_alternative to array of enum
22836 reg_class. Remove some now-unnecessary casts.
22837 (make_memloc): Change 0 to VOIDmode in function call.
22838 * reload1.c (reload): Change 0 to VOIDmode in function call.
22839 (eliminate_regs_1, elimination_effects): Likewise.
22840 (eliminate_regs_in_insn): Likewise.
22841 (emit_input_reload_insns): Add cast to enum type.
22842 (delete_output_reload): Change 0 to VOIDmode in function call.
22843 * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
22844 to enum type in function call.
22845 * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
22846 (SET_PREDICT_EXPR_OUTCOME): Define.
47f402d1 22847 * tree-dump.c (get_dump_file_info): Change phase parameter to int.
bbbbb16a
ILT
22848 (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
22849 (dump_initialized_p, dump_flag_name, dump_end): Likewise.
22850 (dump_function): Likewise.
22851 * tree-dump.h: Update declarations.
22852 * tree-pass.h: Update declarations.
22853 * varasm.c (assemble_integer): Change mclass to enum mode_class.
22854 * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
22855 enum type.
22856 (arm_rtx_costs_1): Correct parenthesization.
22857 (arm_rtx_costs): Add casts to enum type.
22858 (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
22859 (vfp_emit_fstmd): Use add_rg_note.
22860 (emit_multi_reg_push, emit_sfm): Likewise.
22861 (thumb_set_frame_pointer): Likewise.
22862 (arm_expand_prologue): Likewise.
22863 (arm_regno_class): Change return type to enum reg_class.
22864 (thumb1_expand_prologue): Use add_reg_note.
22865 * config/arm/arm-protos.h (arm_regno_class): Update declaration.
22866 * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
22867 in function call.
22868 * config/arm/gentune.sh: Add cast to enum type.
22869 * config/arm/arm-tune.md: Rebuild.
22870 * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
22871 (ix86_split_fp_branch, predict_jump): Likewise.
22872 (ix86_expand_multi_arg_builtin): Change sub_code from enum
22873 insn_code to enum rtx_code.
22874 (ix86_builtin_vectorized_function): Add cast to enum type.
22875 * config/i386/i386.md (truncdfsf2): Change slot to enum
22876 ix86_stack_slot.
22877 (truncxf<mode>2, isinf<mode>2): Likewise.
22878 * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
22879 enum type.
22880 * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
22881 (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
22882 (insert_bundle_state): Change 1 to INSERT in function call.
22883 (ia64_add_bundle_selector_before): Likewise.
22884 * config/ia64/ia64.md (cpu attr): Add cast to enum type.
22885 (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
22886 (restore_stack_nonlocal): Likewise.
22887 * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
22888 function call.
22889 * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
22890 function call.
22891 (mips_rtx_costs): Likewise.
22892 (mips_override_options): Add casts to enum type.
22893 * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
22894 in function call.
22895 * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
22896 (store_reg, set_reg_plus_d): Likewise.
22897 (hppa_expand_prologue, hppa_profile_hook): Likewise.
22898 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
22899 cast to enum type.
22900 (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
22901 function call.
22902 (emit_unlikely_jump): Use add_reg_note.
22903 (rs6000_emit_allocate_stack): Likewise.
22904 (rs6000_frame_related, rs6000_emit_prologue): Likewise.
22905 (output_toc): Change 1 to INSERT in function call.
22906 (output_profile_hook): Change 0 to LCT_NORMAL in function call.
22907 (rs6000_initialize_trampoline): Likewise.
22908 (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
22909 function call.
22910 * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
22911 (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
22912 (s390_expand_setmem, s390_expand_cmpmem): Likewise.
22913 (save_gprs): Use add_reg_note.
22914 (s390_emit_prologue): Likewise.
47f402d1 22915 (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
bbbbb16a
ILT
22916 * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
22917 (sparc_fold_builtin): Add cast to enum type.
22918 * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
22919 enum insn_code.
22920 (spu_expand_prologue): Use add_reg_note.
47f402d1 22921 (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
bbbbb16a
ILT
22922
229232009-04-20 Ian Lance Taylor <iant@google.com>
22924
22925 * c-parser.c (c_parser_attributes): Change VEC back to tree list.
22926 (c_parser_postfix_expression_after_primary): Get VEC for list of
22927 arguments. Get original types of arguments. Call
22928 build_function_call_vec.
22929 (cached_expr_list_1, cached_expr_list_2): New static variables.
22930 (c_parser_expr_list): Change return type to VEC *. Add
22931 p_orig_types parameter. Change all callers.
22932 (c_parser_release_expr): New static function.
22933 (c_parser_vec_to_tree_list): New static function.
22934 * c-typeck.c (build_function_call): Rewrite to build a VEC and
22935 call build_function_call_vec.
22936 (build_function_call_vec): New function, based on old
22937 build_function_call.
22938 (convert_arguments): Remove nargs and argarray parameters. Change
22939 values to a VEC. Add origtypes parameter.
47f402d1 22940 (build_modify_expr): Add rhs_origtype parameter. Change all callers.
bbbbb16a
ILT
22941 (convert_for_assignment): Add origtype parameter. Change all
22942 callers. If warn_cxx_compat, check for conversion to an enum
22943 type when calling a function.
22944 (store_init_value): Add origtype parameter. Change all callers.
22945 (digest_init): Likewise.
22946 (struct init_node): Add origtype field.
22947 (add_pending_init): Add origtype parameter. Change all callers.
22948 (output_init_element): Likewise.
22949 (output_pending_init_elements): Pass origtype from init_node to
22950 output_init_element.
f28a61ab 22951 (process_init_element): Pass origtype from c_expr to
bbbbb16a
ILT
22952 output_init_element.
22953 (c_finish_return): Add origtype parameter. Change all callers.
22954 * c-common.c (sync_resolve_size): Change params to VEC *. Change
22955 caller.
22956 (sync_resolve_params): Likewise.
47f402d1 22957 (sync_resolve_return): Change params to first_param. Change caller.
bbbbb16a 22958 (resolve_overloaded_builtins): Change params to VEC *. Change
47f402d1 22959 callers. Save first parameter around call to build_function_call_vec.
bbbbb16a
ILT
22960 * c-decl.c (finish_decl): Add origtype parameter. Change all
22961 callers. Call build_function_call_vec rather than
22962 build_function_call for cleanup.
22963 * c-tree.h: Update declarations.
22964 * c-common.h: Update declarations.
22965 * stub-objc.c (objc_rewrite_function_call): Change parameter from
22966 params to first_param.
22967 * target.h (struct gcc_target): Change resolve_overloaded_builtin
22968 params parameter from tree to void *.
22969 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
22970 Change arglist parameter to have type void *, and to be a pointer
22971 to a VEC.
22972 * config/rs6000/rs6000-protos.h
22973 (altivec_resolve_overloaded_builtin): Update declaration.
22974 * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
22975 fnargs parameter to have type void *, and to be a pointer to a
22976 VEC. Call build_function_call_vec instead of
22977 build_function_call.
47f402d1 22978 * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
bbbbb16a 22979
6ff078d4 229802009-04-20 Joey Ye <joey.ye@intel.com>
60839f5d 22981 Xuepeng Guo <xuepeng.guo@intel.com>
6ff078d4
JY
22982 H.J. Lu <hongjiu.lu@intel.com>
22983
22984 * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
22985
22986 * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
22987 (IX86_LEA_PRIORITY): Likewise.
22988 (distance_non_agu_define): New function.
22989 (distance_agu_use): Likewise.
22990 (ix86_lea_for_add_ok): Likewise.
22991 (ix86_dep_by_shift_count): Likewise.
22992
22993 * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
22994 should split for LEA.
22995
22996 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
22997 function.
22998 (ix86_dep_by_shift_count): Likewise.
22999
87a5b4cc
RG
230002009-04-20 Richard Guenther <rguenther@suse.de>
23001
23002 * expr.c (handled_component_p): Move ...
23003 * tree.h (handled_component_p): ... here.
23004 * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
23005 ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
23006 and REALPART_EXPR to be in one group.
23007
438c239d
RG
230082009-04-20 Richard Guenther <rguenther@suse.de>
23009
23010 * basic-block.h (get_all_dominated_blocks): Declare.
23011 * dominance.c (get_all_dominated_blocks): New function.
23012 * tree-cfg.c (get_all_dominated_blocks): Remove.
23013 (remove_edge_and_dominated_blocks): Adjust.
23014 * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
23015 (tree_ssa_phiprop): ... here. Use get_all_dominated_blocks
23016 instead of recursing.
23017
fed5ae11
DK
230182009-04-20 Doug Kwan <dougkwan@google.com>
23019
23020 * cgraph.h (cgraph_node_ptr): New type for vector functions.
23021 (struct cgraph_node_set_def): New type.
23022 (cgraph_node_set) New type. Also declare vector functions.
23023 (struct cgraph_node_set_element_def): New type.
23024 (cgraph_node_set_element): Ditto.
23025 (cgraph_node_set_iterator): New iterator type.
23026 (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
23027 cgraph_node_set_remove, dump_cgraph_node_set,
23028 debug_cgraph_node_set): New prototypes.
23029 (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
23030 cgraph_node_set_size): New inlines.
23031 * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
23032 including cgraph.h.
23033 (struct ipa_opt_pass): Add struct cgraph_node_set_def
23034 argument to function 'write_summary'.
23035 * ipa.c: Include ggc.h.
23036 (hash_cgraph_node_set_element,
23037 eq_cgraph_node_set_element, cgraph_node_set_new,
23038 cgraph_node_set_add, cgraph_node_set_remove,
23039 cgraph_node_set_find, dump_cgraph_node_set,
23040 debug_cgraph_node_set): New functions.
23041 * Makefile.in (ipa.o): Add dependency on GGC_H.
23042
c4551b28
IR
230432009-04-20 Ira Rosen <irar@il.ibm.com>
23044
23045 PR tree-optimization/39675
2ba9daa7 23046 * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
47f402d1
UB
23047 check of the return code of vect_schedule_slp. Check that
23048 stmt_vec_info still exists for the statement, before checking its
23049 vectorization type.
c4551b28 23050
21a495fb
MM
230512009-04-20 Michael Matz <matz@suse.de>
23052
23053 * Makefile.in (generated_files): Take out $(simple_generated_c).
23054
8e208874
DK
230552009-04-19 Dave Korn <dave.korn.cygwin@gmail.com>
23056
23057 * config/i386/cygwin-stdint.h (INTPTR_TYPE): Remove "long".
23058 (UINTPTR_TYPE): Likewise.
23059
a45e580b
JM
230602009-04-19 Joseph Myers <joseph@codesourcery.com>
23061
23062 PR c/37481
23063 * c-typeck.c (digest_init): Check for initializing an array with a
23064 string literal.
23065
20845d35
JM
230662009-04-19 Joseph Myers <joseph@codesourcery.com>
23067
23068 PR c/19771
23069 * c-semantics.c (pop_stmt_list): Propagate
23070 STATEMENT_LIST_HAS_LABEL to parent statement list.
23071
28143fdd
AN
230722009-04-19 Adam Nemet <anemet@caviumnetworks.com>
23073
23074 * config/mips/mips.h (mips_tune_attr): New macro.
23075 * config/mips/mips.md (cpu): Use it.
23076
da377db9
JM
230772009-04-19 Joseph Myers <joseph@codesourcery.com>
23078
23079 PR c/38243
23080 * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
23081 declaring a tag.
23082
3baf459d
DN
230832009-04-19 Diego Novillo <dnovillo@google.com>
23084
23085 * toplev.c (compile_file): Move call to coverage_finish ...
23086 * cgraphunit.c (ipa_passes): ... here.
23087 Call cgraph_process_new_functions.
23088 * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
23089 * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
23090
b6fa5b01
JH
230912009-04-19 Jan Hubicka <jh@suse.cz>
23092
47f402d1
UB
23093 * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
23094 cfun.
b6fa5b01
JH
23095 (dump_cgraph_node): Dump can throw external flag.
23096 * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
23097
ca409efd
MLI
230982009-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
23099
23100 PR c/32061
23101 PR c++/36954
23102 * doc/invoke.texi: Add -Wlogical-op to -Wextra.
23103 * common.opt (Wlogical-op): Move from here...
23104 * c.opt (Wlogical-op): ... to here.
23105 * c-typeck.c (parser_build_binary_op): Update call to
23106 warn_logical_operator.
23107 * c-opts.c (c_common_post_options): Enable warn_logical_op with
23108 extra_warnings.
23109 * c-common.c (warn_logical_op): Update.
23110 * c-common.h (warn_logical_op): Update declaration.
23111
9db4cdd3
EB
231122009-04-19 Eric Botcazou <ebotcazou@adacore.com>
23113
23114 * tree.c (protected_set_expr_location): Fix formatting.
23115
f37acdf9
JM
231162009-04-18 Joseph Myers <joseph@codesourcery.com>
23117
23118 PR c/27676
23119 * c-typeck.c (readonly_warning): new.
23120 (build_unary_op, build_modify_expr): Use readonly_warning for
23121 storing into something readonly but not const-qualified.
23122
2b4b7036
JM
231232009-04-18 Joseph Myers <joseph@codesourcery.com>
23124
23125 PR c/22367
23126 * c-typeck.c (build_unary_op): Check for taking address of
23127 expression of type void.
23128
3ce62965
JM
231292009-04-18 Joseph Myers <joseph@codesourcery.com>
23130
23131 PR c/35210
23132 * c-typeck.c (build_function_call): Check for calling a function
23133 with qualified void return types. Call require_complete_type when
23134 generating a trap.
23135
2505c5ed
JH
231362009-04-18 Jan Hubicka <jh@suse.cz>
23137
23138 * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
23139 Set nothrow flag.
23140 * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
23141 can_throw_external flag.
23142 * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
23143 * ipa-pure-const.c (ignore_edge): New function.
23144 (propagate): Compute order for NOTHROW computation; set NOTHROWs
23145 only over can_throw_external edges.
23146 (local_pure_const): Add nothrow flag.
23147 * ipa-utils.c (searchc): Add ignore_edge callback.
23148 (ipa_utils_reduced_inorder): Add ignore_edge callback.
23149 * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
23150 (set_nothrow_function_flags): Update cgraph.
23151 * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
23152
2586ba4b
RG
231532009-04-18 Richard Guenther <rguenther@suse.de>
23154
23155 PR middle-end/39804
23156 * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
23157 (fold_stmt): ... this and ...
23158 (fold_stmt_inplace): ... this.
23159 (fold_stmt_1): Fold references in calls and asms.
23160 * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
23161
1eefab17
KH
231622009-04-18 Kazu Hirata <kazu@codesourcery.com>
23163
23164 * tree-vrp.c (ssa_name_nonzero_p): Remove.
23165 * tree.h: Remove the prototype for ssa_name_nonzero_p.
23166
aa424b01
KH
231672009-04-18 Kazu Hirata <kazu@codesourcery.com>
23168
23169 * tree.c (function_args_count): Remove.
23170 * tree.h: Remove the prototype for function_args_count.
23171
613a896b
KH
231722009-04-18 Kazu Hirata <kazu@codesourcery.com>
23173
23174 * tree-iterator.c (expr_only): Remove.
23175 * tree.h: Remove the prototype for expr_only.
23176
579e694c
KH
231772009-04-18 Kazu Hirata <kazu@codesourcery.com>
23178
23179 * reginfo.c (cannot_change_mode_set_regs): Remove.
23180 * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
23181
ee7e3ad3
AS
231822009-04-08 Anatoly Sokolov <aesok@post.ru>
23183
23184 * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
23185 whether operands 0 and 1 overlaps.
23186
92ef7fb1
MLI
231872009-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
23188
23189 PR middle-end/36902
23190 * tree-vrp.c (check_array_ref): Pass a location_t instead of a
23191 pointer. Use warning_at instead of warning.
23192 (search_for_addr_array): Likewise.
23193 (check_array_bounds): Likewise.
23194 (check_all_array_refs): Check that the incoming edge is not in the
23195 list of edges to be removed.
23196 (check_all_array_refs): Avoid the temporal pointer.
23197 (vrp_visit_cond_stmt): Fix typo.
23198 (simplify_switch_using_ranges): Handle the case where the switch
23199 index is an integer constant.
23200
0e097268
AN
232012009-04-18 Adam Nemet <anemet@caviumnetworks.com>
23202
23203 * config/mips/mips.c (mips_final_postscan_insn): Make it static.
23204
c782f1dd
KH
232052009-04-18 Kazu Hirata <kazu@codesourcery.com>
23206
23207 * doc/extend.texi, doc/invoke.texi: Fix typos.
23208
668fb0e8
CC
232092009-04-17 Cary Coutant <ccoutant@google.com>
23210
23211 * tree-flow-inline.h (get_lineno): Fix inverted test.
23212
4d4014c1
DN
232132009-04-17 Diego Novillo <dnovillo@google.com>
23214
23215 * tree-ssa-pre.c (create_expression_by_pieces): Remove
23216 assertion for AVAIL_OUT.
23217
2984e1b6
MF
232182009-04-17 Mike Frysinger <vapier@gentoo.org>
23219
23220 PR target/38627
23221 * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
23222 * config/sh/linux-atomic.asm: Likewise.
23223
9994a182
DN
232242009-04-17 Diego Novillo <dnovillo@google.com>
23225
23226 * except.c (debug_eh_tree): New.
23227 (struct eh_region, struct eh_status): Move ...
23228 * except.h: ... here.
23229 (add_type_for_runtime): Declare extern.
23230 (lookup_type_for_runtime): Likewise.
23231 (debug_eh_tree): Declare.
23232 * Makefile.in (GTFILES): List except.h before except.c
23233
07485407
DN
232342009-04-17 Diego Novillo <dnovillo@google.com>
23235
47f402d1 23236 * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
07485407
DN
23237 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
23238 * tree-dfa.c (find_referenced_vars_in): Factor out of ...
23239 (find_vars_r): ... here.
23240 * tree-flow.h (find_referenced_vars_in): Declare.
23241 * tree-ssa-pre.c (create_expression_by_pieces): Assert
23242 that AVAIL_OUT exists for BLOCK.
23243 * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
23244 (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
23245 (tree-parloops.o): Likewise.
23246
4e53d196
SB
232472009-04-17 Simon Baldwin <simonb@google.com>
23248
23249 * toplev.c (default_tree_printer): Add handling for %E format.
23250
413d3aa8
DN
232512009-04-17 Diego Novillo <dnovillo@google.com>
23252
47f402d1
UB
23253 * tree-pretty-print.c (dump_generic_node): Add break after
23254 TREE_BINFO handler. Handle COMPLEX_TYPE, REAL_TYPE and
23255 FIXED_POINT_TYPE. Handle NULL TREE_TYPEs. Handle METHOD_TYPE and
23256 FUNCTION_TYPE together. Call print_struct_decl when printing
23257 structures and TDF_SLIM is not given.
413d3aa8
DN
23258 (print_struct_decl): Fix logic for detecting recursion.
23259
5a691e98
RAE
232602009-04-17 Rafael Avila de Espindola <espindola@google.com>
23261
23262 PR 31567
23263 * gcc.c (create_at_file): New.
23264 (compile_input_file_p): New.
23265 (do_spec_1): Use @args files for %i. Use create_at_file for %o.
23266 * main.c (main): Update call to toplev_main.
23267 * toplev.c (toplev_main): Change signature. Call expandargv.
23268 * toplev.h (toplev_main): Change signature.
23269
9eacf7a6
EB
232702009-04-17 Eric Botcazou <ebotcazou@adacore.com>
23271
23272 * dwarf2out.c (field_byte_offset): Use the type size as the field size
23273 if the latter is not constant.
23274
58298177
DE
232752009-04-17 David Edelsohn <edelsohn@gnu.org>
23276
23277 * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
23278
5b4c43d7
EB
232792009-04-17 Eric Botcazou <ebotcazou@adacore.com>
23280
23281 * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
23282 * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
23283
b51605c4
RG
232842009-04-17 Richard Guenther <rguenther@suse.de>
23285
23286 * tree-ssa-structalias.c (get_constraint_for_component_ref):
23287 Handle component references view-converting an invariant address.
23288
9e3be889
AN
232892009-04-17 Adam Nemet <anemet@caviumnetworks.com>
23290
23291 * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
23292 TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
23293 TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
23294 TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
23295 Use @deftypevr rather than @deftypevar.
23296
7c3e9dc3
RG
232972009-04-17 Richard Guenther <rguenther@suse.de>
23298
47f402d1 23299 * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
7c3e9dc3
RG
23300 (get_prop_source_stmt): Likewise.
23301 (can_propagate_from): Likewise.
23302
aca600aa
AS
233032009-04-17 Andrew Stubbs <ams@codesourcery.com>
23304
23305 * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
23306 TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
23307 (--with-multilib-list): Add default value.
23308 * configure: Regenerate.
23309 * Makefile.in (TM_ENDIAN_CONFIG): Define.
23310 (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
23311 * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
23312 TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
23313 Don't add default cpu to multilib list unnecessarily, but do enable
23314 the relevant compiler option..
23315 Add support for --with-multilib-list=<blank> and
23316 --with-multilib-list=!<somelib> to supress unwanted multilibs.
23317 * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
23318 (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
23319 (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
23320 TM_MULTILIB_CONFIG.
23321 (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
23322 (MULTILIB_OSDIRNAMES): New variable.
23323 * config/sh/t-1e: Delete file.
23324 * config/sh/t-mlib-sh1: Delete file.
23325 * config/sh/t-mlib-sh2: Delete file.
23326 * config/sh/t-mlib-sh2a: Delete file.
23327 * config/sh/t-mlib-sh2a-nofpu: Delete file.
23328 * config/sh/t-mlib-sh2a-single: Delete file.
23329 * config/sh/t-mlib-sh2a-single-only: Delete file.
23330 * config/sh/t-mlib-sh2e: Delete file.
23331 * config/sh/t-mlib-sh3e: Delete file.
23332 * config/sh/t-mlib-sh4: Delete file.
23333 * config/sh/t-mlib-sh4-nofpu: Delete file.
23334 * config/sh/t-mlib-sh4-single: Delete file.
23335 * config/sh/t-mlib-sh4-single-only: Delete file.
23336 * config/sh/t-mlib-sh4a: Delete file.
23337 * config/sh/t-mlib-sh4a-nofpu: Delete file.
23338 * config/sh/t-mlib-sh4a-single: Delete file.
23339 * config/sh/t-mlib-sh4a-single-only: Delete file.
23340 * config/sh/t-mlib-sh4al: Delete file.
23341 * config/sh/t-mlib-sh5-32media: Delete file.
23342 * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
23343 * config/sh/t-mlib-sh5-64media: Delete file.
23344 * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
23345 * config/sh/t-mlib-sh5-compact: Delete file.
23346 * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
23347 * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
23348 * doc/install.texi (Options specification): Add
23349 --with-multilib-list and --with-endian.
23350
cf8aba7f
RAE
233512009-04-17 Rafael Avila de Espindola <espindola@google.com>
23352
23353 * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
23354 REVISION_c.
23355 (OBJS-common): Add plugin-version.o.
23356 (plugin-version.o): New.
23357 * gcc-plugin.h (plugin_gcc_version): New.
23358 (plugin_default_version_check): New.
23359 (plugin_init_func, plugin_init): Add version argument.
23360 * plugin-version.c: New.
23361 * plugin.c (str_plugin_gcc_version_name): New.
23362 (try_init_one_plugin): Read plugin_gcc_version from the plugin and
23363 pass it to the init function.
23364 (plugin_default_version_check): New.
23365
61e20b90
RG
233662009-04-17 Richard Guenther <rguenther@suse.de>
23367
23368 * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
23369 for decl-vs-decl disambiguation.
23370
90c6fd8a
AK
233712009-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
23372
23373 * config/s390/s390.h (s390_tune_attr): New macro definition.
23374 * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
23375
9fe9fe04
RG
233762009-04-17 Richard Guenther <rguenther@suse.de>
23377
23378 * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
23379 (fold_stmt_r): Likewise.
23380 (maybe_fold_reference): New function.
23381 (fold_gimple_assign): Handle cases fold_stmt_r did.
23382 (fold_stmt): Do not use fold_stmt_r.
23383 (fold_stmt_inplace): Likewise.
23384
7e673273
RG
233852009-04-17 Richard Guenther <rguenther@suse.de>
23386
23387 * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
23388 (record_equivalences_from_stmt): Remove useless checks and
23389 simplifications.
23390 * tree-ssa-pre.c (eliminate): Avoid converting a constant if
23391 the type is already suitable.
23392
fabf2749
PB
233932009-04-17 Paolo Bonzini <bonzini@gnu.org>
23394
23395 * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
23396
68f7b061
UB
233972009-04-17 Uros Bizjak <ubizjak@gmail.com>
23398
23399 * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
23400 (CMPtype): Define as __gcc_CMPtype.
23401
532bfb0a
AJ
234022009-04-17 Aurelien Jarno <aurelien@aurel32.net>
23403
23404 * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
23405 for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
23406
e3ac77ff
RG
234072009-04-17 Richard Guenther <rguenther@suse.de>
23408
23409 PR tree-optimization/39746
23410 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
23411 special-casing for builtins and static variable use/def.
23412 (call_may_clobber_ref_p_1): Likewise.
23413
7072a650
ILT
234142009-04-16 Ian Lance Taylor <iant@google.com>
23415
23416 * df.h: Include "timevar.h".
23417 (struct df_problem): Change tv_id field to timevar_id_t.
23418 * tree-pass.h: Include "timevar.h".
23419 (struct opt_pass): Change tv_id field to timevar_id_t.
23420 * timevar.h (timevar_id_t): Define TV_NONE.
23421 * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
23422 TV_NONE rather than tv_id != 0.
23423 (execute_one_pass): Likewise.
23424 * Makefile.in (DF_H): Add $(TIMEVAR_H).
23425 (TREE_PASS_H): Define. Change all instances of tree-pass.h in
23426 dependencies to $(TREE_PASS_H).
23427 * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
23428 to TV_NONE.
23429 (pass_branch_target_load_optimize2): Likewise.
23430 * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
23431 (pass_outof_cfg_layout_mode): Likewise.
23432 * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
23433 (pass_rebuild_cgraph_edges): Likewise.
23434 (pass_remove_cgraph_callee_edges): Likewise.
23435 * df-core.c (pass_df_initialize_opt): Likewise.
23436 (pass_df_initialize_no_opt): Likewise.
23437 (pass_df_finish): Likewise.
23438 * emit-rtl.c (pass_unshare_all_rtl): Likewise.
23439 * except.c (pass_set_nothrow_function_flags): Likewise.
23440 (pass_convert_to_eh_region_ranges): Likewise.
23441 * final.c (pass_compute_alignments): Likewise.
23442 * function.c (pass_instantiate_virtual_regs): Likewise.
23443 (pass_init_function): Likewise.
23444 (pass_leaf_regs): Likewise.
23445 (pass_match_asm_constraints): Likewise.
23446 * gimple-low.c (pass_lower_cf): Likewise.
23447 (pass_mark_used_blocks): Likewise.
23448 * init-regs.c (pass_initialize_regs): Likewise.
23449 * integrate.c (pass_initial_value_sets): Likewise.
23450 * ira.c (pass_ira): Likewise.
23451 * jump.c (pass_cleanup_barriers): Likewise.
23452 * omp-low.c (pass_expand_omp): Likewise.
23453 (pass_lower_omp): Likewise.
23454 * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
23455 * recog.c (pass_split_all_insns): Likewise.
23456 (pass_split_after_reload): Likewise.
23457 (pass_split_before_regstack): Likewise.
23458 (pass_split_before_sched2): Likewise.
23459 (pass_split_for_shorten_branches): Likewise.
23460 * reginfo.c (pass_reginfo_init): Likewise.
23461 (pass_subregs_of_mode_init): Likewise.
23462 (pass_subregs_of_mode_finish): Likewise.
23463 * passes.c (pass_postreload): Likewise.
23464 * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
23465 * tree-cfg.c (pass_remove_useless_stmts): Likewise.
23466 (pass_warn_function_return): Likewise.
23467 (pass_warn_function_noreturn): Likewise.
23468 * tree-complex.c (pass_lower_complex): Likewise.
23469 (pass_lower_complex_O0): Likewise.
23470 * tree-if-conv.c (pass_if_conversion): Likewise.
23471 * tree-into-ssa.c (pass_build_ssa): Likewise.
23472 * tree-mudflap.c (pass_mudflap_1): Likewise.
23473 (pass_mudflap_2): Likewise.
23474 * tree-nomudflap.c (pass_mudflap_1): Likewise.
23475 (pass_mudflap_2): Likewise.
23476 * tree-nrv.c (pass_return_slot): Likewise.
23477 * tree-object-size.c (pass_object_sizes): Likewise.
23478 * tree-optimize.c (pass_all_optimizations): Likewise.
23479 (pass_early_local_passes): Likewise.
23480 (pass_all_early_optimizations): Likewise.
23481 (pass_cleanup_cfg): Likewise.
23482 (pass_cleanup_cfg_post_optimizing): Likewise.
23483 (pass_free_datastructures): Likewise.
23484 (pass_free_cfg_annotations): Likewise.
23485 (pass_fixup_cfg): Likewise.
23486 (pass_init_datastructures): Likewise.
23487 * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
23488 (pass_late_warn_uninitialized): Likewise.
23489 (pass_update_address_taken): Likewise.
23490 * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
23491 * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
23492 (pass_cse_sincos): Likewise.
23493 (pass_convert_to_rsqrt): Likewise.
23494 * tree-ssa-structalias.c (pass_build_alias): Likewise.
23495 * tree-stdarg.c (pass_stdarg): Likewise.
23496 * tree-tailcall.c (pass_tail_recursion): Likewise.
23497 (pass_tail_calls): Likewise.
23498 * tree-vect-generic.c (pass_lower_vector): Likewise.
23499 (pass_lower_vector_ssa): Likewise.
23500 * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
23501
0051ef59
JM
235022009-04-16 Joseph Myers <joseph@codesourcery.com>
23503
23504 * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
23505 XLR entry.
23506 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
23507 Handle -march=xlr.
23508 * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
23509 logical and signext.
23510
b3f8558a
KK
235112009-04-16 Kaz Kojima <kkojima@gcc.gnu.org>
23512
23513 PR target/39767
23514 * config/sh/predicates.md (arith_operand): Check if the operand
23515 of TRUNCATE is a REG.
23516
f57597d9
KH
235172009-04-16 Kazu Hirata <kazu@codesourcery.com>
23518
23519 * cfgrtl.c (delete_insn_chain_and_edges): Remove.
23520 * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
23521
b172d063
KH
235222009-04-16 Kazu Hirata <kazu@codesourcery.com>
23523
23524 * tree-iterator.c (tsi_split_statement_list_after,
23525 tsi_split_statement_list_before): Remove.
23526 * tree-iterator.h: Remove the prototypes for
532bfb0a 23527 tsi_split_statement_list_after and tsi_split_statement_list_before.
b172d063 23528
78fe4f1f
KH
235292009-04-16 Kazu Hirata <kazu@codesourcery.com>
23530
23531 * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
23532 * tree-ssa-propagate.h: Remove the prototype for
23533 stmt_makes_single_load.
23534
43dd3201
KH
235352009-04-16 Kazu Hirata <kazu@codesourcery.com>
23536
23537 * emit-rtl.c (set_mem_attrs_from_reg): Remove.
23538 * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
23539
4252a4aa
KH
235402009-04-16 Kazu Hirata <kazu@codesourcery.com>
23541
23542 * tree-iterator.c (EXPR_LAST_BODY): Remove.
23543
bfb69968
KH
235442009-04-16 Kazu Hirata <kazu@codesourcery.com>
23545
23546 * except.c (eh_region_outer_p): Remove.
23547 * except.h: Remove the prototype for eh_region_outer_p.
23548
c7db7fa5
KH
235492009-04-16 Kazu Hirata <kazu@codesourcery.com>
23550
23551 * function.c (current_function_assembler_name): Remove.
23552 * function.h: Remove the prototype for
23553 current_function_assembler_name.
23554
efc0b2bd
ILT
235552009-04-16 Ian Lance Taylor <iant@google.com>
23556
532bfb0a 23557 * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
efc0b2bd
ILT
23558 (add_reg_note): Call alloc_reg_note.
23559 * rtl.h (alloc_reg_note): Declare.
23560 * combine.c (try_combine): Use alloc_reg_note.
23561 (recog_for_combine, move_deaths): Likewise.
23562 (distribute_notes): Use alloc_reg_note and add_reg_note.
23563 * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
23564 * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
23565 * reload1.c (eliminate_regs_1): Use alloc_reg_note.
23566
6080348f
VM
235672009-04-16 Vladimir Makarov <vmakarov@redhat.com>
23568
23569 PR rtl-optimization/39762
23570 * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
23571 ira_may_move_out_cost): Add comments about way of their usage.
532bfb0a 23572 (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
2ba9daa7 23573
6080348f
VM
23574 * ira-conflicts.c (process_regs_for_copy): Use function
23575 ira_get_register_move_cost instead of global
23576 ira_register_move_cost.
23577
23578 * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
23579 color_pass, move_spill_restore, update_curr_costs): Ditto.
23580
23581 * ira-lives.c (process_single_reg_class_operands): Ditto.
23582
23583 * ira-emit.c (emit_move_list): Ditto.
23584
23585 * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
23586 (record_reg_classes): Ditto. Use functions
23587 ira_get_register_move_cost and ira_get_may_move_cost instead of
23588 global vars ira_register_move_cost, ira_may_move_out_cost and
23589 ira_may_move_in_cost.
23590 (record_address_regs): Don't call ira_init_register_move_cost.
23591 Use function ira_get_may_move_cost instead of global
23592 ira_may_move_in_cost.
23593 (process_bb_node_for_hard_reg_moves): Use function
532bfb0a 23594 ira_get_register_move_cost instead of global ira_register_move_cost.
6080348f 23595 (ira_costs): Don't call ira_init_register_move_cost.
2ba9daa7 23596
646bea10
RG
235972009-04-16 Richard Guenther <rguenther@suse.de>
23598
23599 * tree-cfg.c (verify_gimple_assign_binary):
23600 Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
23601 * ipa-struct-reorg.c (gen_size): Fold the built expressions.
23602 (create_general_new_stmt): Note that this function is broken.
23603
02e819ff
RAE
236042009-04-16 Rafael Avila de Espindola <espindola@google.com>
23605
23606 * common.opt (fhelp): Add Var(help_flag).
23607 * gcc-plugin.h (plugin_info): Add help.
23608 * plugin.c (plugin_name_args): Add help.
23609 (register_plugin_info): Set plugin->help.
23610 (print_help_one_plugin): New.
23611 (print_plugins_help): New.
23612 * plugin.h (print_plugins_help): New.
23613 * toplev.c (toplev_main): Call print_plugins_help if needed.
23614
ccacdf06
RG
236152009-04-16 Richard Guenther <rguenther@suse.de>
23616
23617 * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
23618 (gimple_ior_addresses_taken_1): New function.
23619 (gimple_ior_addresses_taken): Likewise.
23620 * gimple.h (struct gimple_statement_with_ops_base): Remove
23621 addresses_taken member.
23622 (gimple_ior_addresses_taken): Declare.
23623 (gimple_addresses_taken, gimple_addresses_taken_ptr,
23624 gimple_set_addresses_taken): Remove.
23625 * ipa-reference.c (mark_address): New function.
23626 (scan_stmt_for_static_refs): Use it for marking addresses taken.
23627 * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
23628 (mark_address_taken): ... this. Just set TREE_ADDRESSABLE.
23629 (gimple_add_to_addresses_taken): Remove.
23630 (get_tmr_operands): Call mark_address_taken.
23631 (get_asm_expr_operands): Likewise.
23632 (get_expr_operands): Likewise.
23633 (build_ssa_operands): Do not clear the addresses_taken bitmap.
23634 (free_stmt_operands): Do not free it.
23635 * tree-ssa.c (delete_tree_ssa): Likewise.
23636 (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
23637
346ef3fa
RG
236382009-04-16 Richard Guenther <rguenther@suse.de>
23639
23640 * gimple.h (walk_stmt_load_store_addr_ops): Declare.
23641 (walk_stmt_load_store_ops): Likewise.
23642 * gimple.c (get_base_loadstore): New function.
23643 (walk_stmt_load_store_addr_ops): Likewise.
23644 (walk_stmt_load_store_ops): Likewise.
23645 * ipa-pure-const.c (check_op): Simplify.
23646 (check_load, check_store): New functions.
23647 (check_stmt): Use walk_stmt_load_store_ops.
23648 * ipa-reference.c (mark_load): Adjust signature.
23649 (mark_store): Likewise.
23650 (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
23651
44e9f006
RAE
236522009-04-16 Rafael Avila de Espindola <espindola@google.com>
23653
23654 * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
23655 (plugin_info): New.
23656 * opts.c (common_handle_option): Don't call print_version.
23657 * plugin.c (plugin_name_args): Add version.
23658 (register_plugin_info): New.
23659 (register_callback): Handle PLUGIN_INFO.
23660 (try_init_one_plugin): New.
23661 (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
23662 if failed to init.
23663 (finalize_one_plugin): New.
23664 (finalize_plugins): New.
23665 (print_one_plugin): New.
23666 (print_plugins_versions): New.
23667 * plugin.h (print_plugins_versions): New.
23668 (finalize_plugins): New.
23669 * toplev.c (compile_file): Don't call initialize_plugins.
23670 (print_version): Call print_plugins_versions.
23671 (toplev_main): Call initialize_plugins. Print version if needed.
23672 Call finalize_plugins.
23673
41fd0f9b
RAE
236742009-04-16 Rafael Avila de Espindola <espindola@google.com>
23675
23676 * common.opt (fversion): New.
23677 * gcc.c (print_version): New.
23678 (process_command): Don't print the version. Just set print_version.
23679 (main): Print version. Call subprocesses if print_version and
23680 verbose_flag are set.
23681 * opts.c (common_handle_option): Handle OPT_fversion.
23682
550918ca 236832009-04-16 Richard Guenther <rguenther@suse.de>
532bfb0a 23684 Ira Rosen <irar@il.ibm.com>
550918ca
RG
23685
23686 PR tree-optimization/39698
23687 * tree-vect-loop.c (get_initial_def_for_reduction): Use the
23688 type of the reduction variable. Only generate the def if
23689 it is needed.
23690
23691 * omp-low.c (expand_omp_for_generic): When converting to a pointer
23692 make sure to first convert to an integer of the same precision.
23693 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
23694 the type of the evolution correctly in computing the new
23695 induction variable base.
23696
54634841
RG
236972009-04-16 Richard Guenther <rguenther@suse.de>
23698
23699 PR middle-end/39625
23700 * tree-cfg.c (make_blocks): Split statements with to-be
23701 abnormal SSA names on the lhs.
23702
b6fc2cdb
PB
237032009-04-16 Paolo Bonzini <bonzini@gnu.org>
23704
23705 * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
23706 Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
23707 * c-typeck.c (really_start_incremental_init): Likewise.
23708 * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
23709 (TARGET_INITIALIZER): Remove it.
23710 * target.h (struct target): Remove vector_opaque_p.
23711 * tree.c (build_opaque_vector_type): New.
23712 * tree.h (TYPE_VECTOR_OPAQUE): New.
23713 (build_opaque_vector_type): Declare.
23714 * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
23715 * config/rs6000/rs6000.c (build_opaque_vector_type,
23716 rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
23717 (rs6000_init_builtins): Use build_opaque_vector_type for
23718 opaque_V4SI_type_node.
23719
a417cdd9
CM
237202009-04-15 Catherine Moore <clm@codesourcery.com>
23721
532bfb0a
AJ
23722 * debug.h (set_name): Declare.
23723 * dwarf2out.c (dwarf2out_set_name): Declare.
23724 (dwarf2_debug_hooks): Add set_name.
23725 (find_AT_string): New.
23726 (add_AT_string): Call find_AT_string.
23727 (dwarf2out_set_name): New.
23728 * cp/decl.c (grokdeclarator): Call set_name.
23729 * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
23730 * debug.c (do_nothing_debug_hooks): Likewise.
23731 * dbxout.c (dbx_debug_hooks): Likewise.
23732 * sdbout.c (sdb_debug_hooks): Likewise.
a417cdd9 23733
60839f5d 237342009-04-15 Michael Eager <eager@eagercon.com>
2c5cac98 23735
532bfb0a
AJ
23736 * config/rs6000/rs6000.c (rs6000_function_value): Set function return
23737 reg for single-precision FPU.
23738 * config/rs6000/rs6000.md (movsi_internal1): Only for
23739 !TARGET_SINGLE_FPU.
23740 (movsi_internal1_single): New. Add pattern to move SI values to/from
2c5cac98
ME
23741 single-precision FP regs.
23742
ada39f0b
RG
237432009-04-15 Richard Guenther <rguenther@suse.de>
23744
23745 * omp-low.c (lower_rec_input_clauses): Build correct address
23746 expressions.
23747 (expand_omp_for_generic): Fix multiplication type.
532bfb0a 23748 * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
ada39f0b
RG
23749 (generate_memset_zero): Fix types.
23750 * tree-profile.c (prepare_instrumented_value): Correctly
23751 widen a pointer.
23752
6866c6e8
ILT
237532009-04-15 Ian Lance Taylor <iant@google.com>
23754
23755 * c.opt (Wenum-compare): Enable for C and Objc. Initialize to -1.
23756 * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
23757 for -Wall and for -Wc++-compat.
23758 (c_common_post_options): For C++, set warn_enum_compare if not
23759 already set.
23760 * c-tree.h (struct c_expr): Add field original_type.
23761 (build_external_ref): Update declaration.
23762 * c-parser.c (c_parser_braced_init): Set original_type.
23763 (c_parser_initelt): Likewise.
23764 (c_parser_expr_no_commas): Likewise.
23765 (c_parser_conditional_expression): Likewise.
23766 (c_parser_cast_expression): Likewise.
23767 (c_parser_unary_expression): Likewise. Pull setting of
23768 original_code to top of function.
23769 (c_parser_sizeof_expression): Set original_type.
23770 (c_parser_alignof_expression): Likewise.
23771 (c_parser_postfix_expression): Likewise. Pull setting of
23772 original_code to top of function.
532bfb0a 23773 (c_parser_postfix_expression_after_paren_type): Set original_type.
6866c6e8
ILT
23774 (c_parser_postfix_expression_after_primary): Likewise.
23775 (c_parser_expression): Likewise.
23776 * c-typeck.c (build_external_ref): Add type parameter. Change all
23777 callers.
23778 (c_expr_sizeof_expr): Set original_type field.
23779 (parser_build_unary_op): Likewise.
23780 (parser_build_binary_op): Likewise. Optionally warn about
23781 comparisons of enums of different types.
23782 (digest_init): Set original_type field.
23783 (really_start_incremental_init): Likewise.
23784 (push_init_level, pop_init_level): Likewise.
23785 * doc/invoke.texi (Warning Options): -Wenum-compare now
23786 supported in C.
23787
f116fecf
RG
237882009-04-15 Richard Guenther <rguenther@suse.de>
23789
23790 * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
23791 out a necessary conversion.
23792 * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
23793 names we didn't value number.
23794 * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
23795
25e20805
RG
237962009-04-15 Richard Guenther <rguenther@suse.de>
23797
23798 PR tree-optimization/39764
23799 * tree-ssa-ccp.c (get_value): Canonicalize value with
23800 canonicalize_float_value.
23801
90cc3676
JH
238022009-04-15 Jan Hubicka <jh@suse.cz>
23803
23804 * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
23805 Wrong version of patch.
23806
6d14c006
JH
238072009-04-15 Jan Hubicka <jh@suse.cz>
23808
23809 * builtins.def (va_start, va_end, va_copy): Mark nothrow.
23810
5afaa917
NS
238112009-04-15 Nathan Sidwell <nathan@codesourcery.com>
23812
23813 * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
23814 our distinct integral and vector types.
23815
3b482fca
RAE
238162009-04-15 Rafael Avila de Espindola <espindola@google.com>
23817
23818 * class.c (build_vtbl_ref_1): Remove call to assemble_external.
23819 * init.c (build_vtbl_address): Remove call to assemble_external.
23820
6cd1d2e2
DJ
238212009-04-14 Daniel Jacobowitz <dan@codesourcery.com>
23822
23823 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
23824 output for other floating point modes.
23825
dab71827
DN
238262009-04-14 Diego Novillo <dnovillo@google.com>
23827
23828 * diagnostic.c (diagnostic_report_diagnostic): Do not
23829 warn about loaded plugins for DK_ERROR and DK_WARNING.
23830 * c-decl.c (declspecs_add_type): Move call to
23831 invoke_plugin_callbacks ...
23832 * c-parser.c (c_parser_declspecs): ... here.
23833 * plugin.c (dump_active_plugins): Tidy output.
23834
68a607d8
DN
238352009-04-14 Diego Novillo <dnovillo@google.com>
23836 Le-Chun Wu <lcwu@google.com>
23837
23838 * configure.ac: Add --enable-plugin support.
23839 Define ENABLE_PLUGIN and PLUGINLIBS when specified.
23840 * Makefile.in (PLUGIN_H): Define.
23841 Export ENABLE_PLUGIN and GMPINC to site.exp.
23842 Add PLUGINLIBS to link command.
23843 Add/modify dependencies for plugin.o and files including plugin.h.
23844 (plugin.o): New.
23845 * config.in: Regenerate.
2ba9daa7 23846
68a607d8
DN
23847 * opts.c (common_handle_option): Handle OPT_fplugin_ and
23848 OPT_fplugin_arg_.
23849
238502009-04-14 Le-Chun Wu <lcwu@google.com>
23851
23852 * tree-pass.h (register_one_dump_file): Add a prototype for
23853 register_one_dump_file.
23854 * toplev.c (compile_file): Call initialize_plugins.
23855 (do_compile): Call invoke_plugin_callbacks.
23856 (toplev_main): Call invoke_plugin_callbacks.
23857 * common.opt: Add -fplugin= and -fplugin-arg-.
23858 * gcc-plugin.h: New public header file for plugins to include.
23859 * plugin.c: New source file.
23860 * plugin.h: New internal header file.
23861 * passes.c (register_one_dump_file): Make it external.
2ba9daa7 23862
68a607d8
DN
23863 * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
23864
238652009-04-14 Diego Novillo <dnovillo@google.com>
23866
23867 * doc/plugins.texi: New.
23868 * doc/gccint.texi: Add reference to Plugins chapter.
23869 * doc/invoke.texi: Document -fplugin and -fplugin-arg
23870 * diagnostic.c (diagnostic_report_diagnostic): Warn about
23871 loaded plugins, if any.
23872 * timevar.def (TV_PLUGIN_INIT): Define.
23873 (TV_PLUGIN_RUN): Define.
23874 * plugin.c: Include timevar.h
23875 (plugins_active_p): New.
23876 (dump_active_plugins): New.
23877 (debug_active_plugins): New.
23878
50617257
JM
238792009-04-14 Joseph Myers <joseph@codesourcery.com>
23880
23881 * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
23882 library paths.
23883 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
23884
b32f6fff
KH
238852009-04-14 Kazu Hirata <kazu@codesourcery.com>
23886
23887 * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
23888 the same as a minus without a shift.
23889
85d04fa2
NC
238902009-04-14 Nick Clifton <nickc@redhat.com>
23891
23892 * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
23893 comparisons with small integers will always produce a short
23894 branch.
23895
e495a0c8
RAE
238962009-04-14 Rafael Avila de Espindola <espindola@google.com>
23897
23898 Merge:
e495a0c8
RAE
23899 2008-12-19 Diego Novillo <dnovillo@google.com>
23900
532bfb0a 23901 * cgraph.c (dump_cgraph_node): Show memory address of NODE.
e495a0c8 23902
ad41bd84 239032009-04-14 Richard Guenther <rguenther@suse.de>
587aa063
RG
23904
23905 * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
23906 verification.
23907 (verify_gimple_assign_binary): Likewise. Handle shifts and
23908 rotates correctly.
23909 (verify_gimple_phi): Print the mismatched argument position.
23910 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
23911 Fix types.
23912 (vect_update_init_of_dr): Likewise.
23913 * matrix-reorg.c (transform_access_sites): Do what the
23914 comment suggests.
23915 * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
23916
60839f5d 239172009-04-13 Michael Eager <eager@eagercon.com>
9eca1774
ME
23918
23919 * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
23920 _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
23921 * config/rs6000/xilinx.h: New. Spec for powerpc-xilinx-eabi
2ba9daa7 23922 * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
9eca1774
ME
23923 remove duplicate config
23924
b0e2d008
DR
239252009-04-13 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
23926
23927 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
23928 file_name:line_number type locator of the call site.
2ba9daa7 23929
1244a8b7
VM
239302009-04-13 Vladimir Makarov <vmakarov@redhat.com>
23931
23932 * genautomata.c: Put blank after comma.
23933 (automaton_decls): New.
23934 (struct unit_usage): Add comments to member next.
23935 (store_alt_unit_usage): Keep the list ordered.
23936 (unit_present_on_list_p, equal_alternatives_p): New.
23937 (check_regexp_units_distribution): Check units distribution
23938 correctness correctly.
23939 (main): Don't write automata if error is found. Return correct
23940 exit code.
2ba9daa7 23941
1244a8b7
VM
23942 * config/m68k/cf.md (cfv4_ds): Remove.
23943 (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
23944 cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
23945
23946 * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
23947 power4-load-ext, power4-store, power4-store-update,
23948 power4-fpstore, power4-fpstore-update, power4-two, power4-three,
23949 power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
23950 power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
23951 power4-sqrt, power4-isync): Modify reservation to make correct
23952 unit distribution to automata.
23953
23954 * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
23955 power5-store-update, power5-two, power5-three, power5-lmul,
23956 power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
2ba9daa7 23957
f7dd1864
AN
239582009-04-13 Adam Nemet <anemet@caviumnetworks.com>
23959
23960 * except.c (pass_set_nothrow_function_flags): Set name and add
23961 TODO_dump_func.
23962 (set_nothrow_function_flags): Mention in the dump file when
23963 changing a function to nothrow.
23964
59a1171f
OS
239652009-04-13 Ozkan Sezer <sezeroz@gmail.com>
23966
23967 PR/39066
23968 * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
23969 instead of unsigned long.
23970
934c2060
RR
239712009-04-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23972
f7dd1864
AN
23973 * config/arm/arm.c (return_used_this_function): Remove.
23974 (arm_output_function_prologue): Remove use of
934c2060 23975 return_used_this_function.
f7dd1864 23976 (output_return_instruction): Replace use of
934c2060
RR
23977 return_used_this_function
23978 by cfun->machine->return_used_this_function.
f7dd1864
AN
23979 (arm_output_epilogue): Likewise.
23980 (arm_output_function_epilogue): Likewise.
23981 (thumb_unexpanded_epilogue): Likewise.
23982 * config/arm/arm.h (struct machine_function):
934c2060 23983 New member return_used_this_function.
f7dd1864 23984
ae5cc016
MM
239852009-04-12 Mark Mitchell <mark@codesourcery.com>
23986
23987 * doc/install.texi: Correct description of default directory for
23988 --with-gxx-include-dir.
23989
a0ce68df 239902009-04-12 Eric Botcazou <ebotcazou@adacore.com>
849d624b
EB
23991
23992 * fold-const.c (build_range_check): Properly deal with enumeral and
23993 boolean base types.
23994
3906a4a1
SB
239952009-04-12 Steven Bosscher <steven@gcc.gnu.org>
23996
23997 * doc/invoke.texi (max_gcse_passes): Remove documentation.
23998 * params.def (PARAM_MAX_GCSE_PASSES): Remove.
23999 * params.h (MAX_GCSE_PASSES): Remove.
24000 * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
24001 in sequence. Remove ability to run multiple passes.
24002 (bypass_jumps): Report run as third CPROP pass.
24003
efaadb93
AN
240042009-04-12 Adam Nemet <anemet@caviumnetworks.com>
24005
24006 PR middle-end/39651
24007 * except.c (can_throw_external): Look at each insn in a SEQUENCE
24008 when deciding whether the whole SEQUENCE can throw.
24009
4c48007b
UB
240102009-04-12 Uros Bizjak <ubizjak@gmail.com>
24011
24012 PR target/39740
24013 * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
24014 offseted label references.
24015
b4104018
JH
240162009-04-11 Jan Hubicka <jh@suse.cz>
24017
24018 * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
24019
32848948
RG
240202009-04-11 Richard Guenther <rguenther@suse.de>
24021
24022 PR middle-end/39732
24023 * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
24024 return variables as TREE_ADDRESSABLE.
24025
8810712e
RG
240262009-04-11 Richard Guenther <rguenther@suse.de>
24027
24028 PR tree-optimization/39713
24029 * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
24030 reference trees have SSA_NAME operands.
24031
fa78c0c1
RG
240322009-04-11 Richard Guenther <rguenther@suse.de>
24033
24034 PR c/39712
24035 * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
24036 address expressions.
24037
4d722130
DK
240382009-04-11 Dave Korn <dave.korn.cygwin@gmail.com>
24039
24040 * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE): Update to
24041 match changes in Cygwin 1.7
24042 (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
24043 UINT_FAST16_TYPE, UINT_FAST32_TYPE): Likewise.
24044
567a90f5
PB
240452009-04-10 Paolo Bonzini <bonzini@gnu.org>
24046
24047 PR tree-optimization/39701
24048 * doc/invoke.texi (Optimization Options): Document change in
24049 meaning and initialization of -fdelete-null-pointer-checks.
24050
1ad2f450
L
240512009-04-10 H.J. Lu <hongjiu.lu@intel.com>
24052
24053 PR middle-end/39701
24054 * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
24055
24056 * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
24057 here.
24058
24059 * doc/invoke.texi: Update -fdelete-null-pointer-checks.
24060
1afc5373
CF
240612009-04-10 Chao-ying Fu <fu@mips.com>
24062
24063 * doc/tm.texi (Instruction Output): Document
24064 TARGET_ASM_FINAL_POSTSCAN_INSN.
24065 * target.h (final_postscan_insn): New field in asm_out.
24066 * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
24067 (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
24068 * final.c (final_scan_insn): Call
24069 targetm.asm_out.final_postscan_insn after outputting
24070 an asm macro and a normal instruction.
24071
24072 * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
24073 * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
24074 * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
24075 (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
24076 (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
24077
4d35e75c
PB
240782009-04-10 Paolo Bonzini <bonzini@gnu.org>
24079
24080 PR middle-end/39701
1ad2f450
L
24081 * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
24082 variables as non-NULL even with -fdelete-null-pointer-checks.
4d35e75c 24083
62c49b83
L
240842009-04-10 H.J. Lu <hongjiu.lu@intel.com>
24085
24086 * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
24087
80558628
L
240882009-04-09 H.J. Lu <hongjiu.lu@intel.com>
24089
24090 PR target/39678
24091 * config/i386/i386.c (classify_argument): Handle SCmode with
24092 (bit_offset % 64) != 0.
24093
8c70d28b
SL
240942009-04-09 Sandra Loosemore <sandra@codesourcery.com>
24095
24096 * doc/invoke.texi (Optimize Options): Add cross-reference to
24097 -Q --help=optimizers examples.
24098
e1ff19bf
BE
240992009-04-10 Ben Elliston <bje@au.ibm.com>
24100
24101 PR target/36800
24102 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
24103 regalign for the reg == fpr and TDmode case.
24104
52daca75
DA
241052009-04-09 David Ayers <ayers@fsfe.org>
24106
24107 PR objc/29200
24108 * objc/objc-act.c (warn_with_method): Remove helper function.
24109 (check_duplicates): Call warning and inform directly.
24110 (really_start_method): Likewise.
24111
b45f0e58
PB
241122009-04-09 Paolo Bonzini <bonzini@gnu.org>
24113
24114 * expmed.c (expand_divmod): Always use a comparison for a division
24115 by a large unsigned integer.
24116
1ad2f450
L
24117 * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
24118 for things others than variables or functions as nonzero.
b45f0e58 24119
748086b7
JJ
241202009-04-09 Nick Clifton <nickc@redhat.com>
24121
24122 * unwind-compat.c: Change copyright header to refer to version
24123 3 of the GNU General Public License with version 3.1 of the
24124 GCC Runtime Library Exception and to point readers at the
7a715bba 24125 COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
748086b7
JJ
24126 * config/alpha/crtfastmath.c: Likewise.
24127 * config/alpha/linux-unwind.h: Likewise.
24128 * config/alpha/qrnnd.asm: Likewise.
24129 * config/alpha/vms-crt0-64.c: Likewise.
24130 * config/alpha/vms-crt0.c: Likewise.
24131 * config/alpha/vms-dwarf2.asm: Likewise.
24132 * config/alpha/vms-dwarf2eh.asm: Likewise.
24133 * config/alpha/vms-psxcrt0-64.c: Likewise.
24134 * config/alpha/vms-psxcrt0.c: Likewise.
24135 * config/alpha/vms_tramp.asm: Likewise.
24136 * config/arc/initfini.c: Likewise.
24137 * config/arc/lib1funcs.asm: Likewise.
24138 * config/arm/bpabi-v6m.S: Likewise.
24139 * config/arm/bpabi.S: Likewise.
24140 * config/arm/bpabi.c: Likewise.
24141 * config/arm/crti.asm: Likewise.
24142 * config/arm/crtn.asm: Likewise.
24143 * config/arm/ieee754-df.S: Likewise.
24144 * config/arm/ieee754-sf.S: Likewise.
24145 * config/arm/lib1funcs.asm: Likewise.
24146 * config/arm/libunwind.S: Likewise.
24147 * config/arm/linux-atomic.c: Likewise.
24148 * config/arm/mmintrin.h: Likewise.
24149 * config/arm/pr-support.c: Likewise.
24150 * config/arm/unaligned-funcs.c: Likewise.
24151 * config/arm/unwind-arm.c: Likewise.
24152 * config/arm/unwind-arm.h: Likewise.
24153 * config/avr/libgcc.S: Likewise.
24154 * config/bfin/crti.s: Likewise.
24155 * config/bfin/crtlibid.s: Likewise.
24156 * config/bfin/crtn.s: Likewise.
24157 * config/bfin/lib1funcs.asm: Likewise.
24158 * config/bfin/linux-unwind.h: Likewise.
24159 * config/cris/arit.c: Likewise.
24160 * config/cris/cris_abi_symbol.c: Likewise.
24161 * config/darwin-64.c: Likewise.
24162 * config/darwin-crt2.c: Likewise.
24163 * config/darwin-crt3.c: Likewise.
24164 * config/darwin.h: Likewise.
24165 * config/dbxelf.h: Likewise.
24166 * config/dfp-bit.c: Likewise.
24167 * config/dfp-bit.h: Likewise.
24168 * config/elfos.h: Likewise.
24169 * config/fixed-bit.c: Likewise.
24170 * config/fixed-bit.h: Likewise.
24171 * config/fp-bit.c: Likewise.
24172 * config/fp-bit.h: Likewise.
24173 * config/fr30/crti.asm: Likewise.
24174 * config/fr30/crtn.asm: Likewise.
24175 * config/fr30/lib1funcs.asm: Likewise.
24176 * config/freebsd-spec.h: Likewise.
24177 * config/frv/cmovd.c: Likewise.
24178 * config/frv/cmovh.c: Likewise.
24179 * config/frv/cmovw.c: Likewise.
24180 * config/frv/frvbegin.c: Likewise.
24181 * config/frv/frvend.c: Likewise.
24182 * config/frv/lib1funcs.asm: Likewise.
24183 * config/glibc-stdint.h: Likewise.
24184 * config/h8300/clzhi2.c: Likewise.
24185 * config/h8300/crti.asm: Likewise.
24186 * config/h8300/crtn.asm: Likewise.
24187 * config/h8300/ctzhi2.c: Likewise.
24188 * config/h8300/fixunssfsi.c: Likewise.
24189 * config/h8300/lib1funcs.asm: Likewise.
24190 * config/h8300/parityhi2.c: Likewise.
24191 * config/h8300/popcounthi2.c: Likewise.
24192 * config/i386/ammintrin.h: Likewise.
24193 * config/i386/att.h: Likewise.
24194 * config/i386/avxintrin.h: Likewise.
24195 * config/i386/biarch64.h: Likewise.
24196 * config/i386/bmmintrin.h: Likewise.
24197 * config/i386/cpuid.h: Likewise.
24198 * config/i386/cross-stdarg.h: Likewise.
24199 * config/i386/crtfastmath.c: Likewise.
24200 * config/i386/crtprec.c: Likewise.
24201 * config/i386/cygming-crtbegin.c: Likewise.
24202 * config/i386/cygming-crtend.c: Likewise.
24203 * config/i386/cygwin.asm: Likewise.
24204 * config/i386/emmintrin.h: Likewise.
24205 * config/i386/gmm_malloc.h: Likewise.
24206 * config/i386/gthr-win32.c: Likewise.
24207 * config/i386/i386.h: Likewise.
24208 * config/i386/immintrin.h: Likewise.
24209 * config/i386/linux-unwind.h: Likewise.
24210 * config/i386/linux64.h: Likewise.
24211 * config/i386/mm3dnow.h: Likewise.
24212 * config/i386/mmintrin-common.h: Likewise.
24213 * config/i386/mmintrin.h: Likewise.
24214 * config/i386/nmmintrin.h: Likewise.
24215 * config/i386/pmm_malloc.h: Likewise.
24216 * config/i386/pmmintrin.h: Likewise.
24217 * config/i386/smmintrin.h: Likewise.
24218 * config/i386/sol2-c1.asm: Likewise.
24219 * config/i386/sol2-ci.asm: Likewise.
24220 * config/i386/sol2-cn.asm: Likewise.
24221 * config/i386/sol2-gc1.asm: Likewise.
24222 * config/i386/tmmintrin.h: Likewise.
24223 * config/i386/unix.h: Likewise.
24224 * config/i386/w32-unwind.h: Likewise.
24225 * config/i386/wmmintrin.h: Likewise.
24226 * config/i386/x86-64.h: Likewise.
24227 * config/i386/x86intrin.h: Likewise.
24228 * config/i386/xmmintrin.h: Likewise.
24229 * config/ia64/crtbegin.asm: Likewise.
24230 * config/ia64/crtend.asm: Likewise.
24231 * config/ia64/crtfastmath.c: Likewise.
24232 * config/ia64/crti.asm: Likewise.
24233 * config/ia64/crtn.asm: Likewise.
24234 * config/ia64/fde-glibc.c: Likewise.
24235 * config/ia64/lib1funcs.asm: Likewise.
24236 * config/ia64/linux-unwind.h: Likewise.
24237 * config/ia64/quadlib.c: Likewise.
24238 * config/ia64/unwind-ia64.c: Likewise.
24239 * config/linux.h: Likewise.
24240 * config/m32c/m32c-lib1.S: Likewise.
24241 * config/m32c/m32c-lib2-trapv.c: Likewise.
24242 * config/m32c/m32c-lib2.c: Likewise.
24243 * config/m32r/initfini.c: Likewise.
24244 * config/m68hc11/larith.asm: Likewise.
24245 * config/m68hc11/m68hc11-crt0.S: Likewise.
24246 * config/m68k/cf.md: Likewise.
24247 * config/m68k/crti.s: Likewise.
24248 * config/m68k/crtn.s: Likewise.
24249 * config/m68k/lb1sf68.asm: Likewise.
24250 * config/m68k/linux-unwind.h: Likewise.
24251 * config/mcore/crti.asm: Likewise.
24252 * config/mcore/crtn.asm: Likewise.
24253 * config/mcore/lib1.asm: Likewise.
24254 * config/mips/linux-unwind.h: Likewise.
24255 * config/mips/loongson.h: Likewise.
24256 * config/mips/mips16.S: Likewise.
24257 * config/mmix/crti.asm: Likewise.
24258 * config/mmix/crtn.asm: Likewise.
24259 * config/pa/fptr.c: Likewise.
24260 * config/pa/hpux-unwind.h: Likewise.
24261 * config/pa/lib2funcs.asm: Likewise.
24262 * config/pa/linux-atomic.c: Likewise.
24263 * config/pa/linux-unwind.h: Likewise.
24264 * config/pa/milli64.S: Likewise.
24265 * config/pa/quadlib.c: Likewise.
24266 * config/pa/stublib.c: Likewise.
24267 * config/picochip/libgccExtras/adddi3.asm: Likewise.
24268 * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
24269 * config/picochip/libgccExtras/ashlsi3.c: Likewise.
24270 * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
24271 * config/picochip/libgccExtras/ashrsi3.c: Likewise.
24272 * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
24273 * config/picochip/libgccExtras/divmod15.asm: Likewise.
24274 * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
24275 * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
24276 * config/picochip/libgccExtras/longjmp.asm: Likewise.
24277 * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
24278 * config/picochip/libgccExtras/lshrsi3.c: Likewise.
24279 * config/picochip/libgccExtras/parityhi2.asm: Likewise.
24280 * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
24281 * config/picochip/libgccExtras/setjmp.asm: Likewise.
24282 * config/picochip/libgccExtras/subdi3.asm: Likewise.
24283 * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
24284 * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
24285 * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
24286 * config/rs6000/750cl.h: Likewise.
24287 * config/rs6000/altivec.h: Likewise.
24288 * config/rs6000/biarch64.h: Likewise.
24289 * config/rs6000/crtresfpr.asm: Likewise.
24290 * config/rs6000/crtresgpr.asm: Likewise.
24291 * config/rs6000/crtresxfpr.asm: Likewise.
24292 * config/rs6000/crtresxgpr.asm: Likewise.
24293 * config/rs6000/crtsavfpr.asm: Likewise.
24294 * config/rs6000/crtsavgpr.asm: Likewise.
24295 * config/rs6000/darwin-asm.h: Likewise.
24296 * config/rs6000/darwin-fallback.c: Likewise.
24297 * config/rs6000/darwin-fpsave.asm: Likewise.
24298 * config/rs6000/darwin-ldouble.c: Likewise.
24299 * config/rs6000/darwin-tramp.asm: Likewise.
24300 * config/rs6000/darwin-unwind.h: Likewise.
24301 * config/rs6000/darwin-vecsave.asm: Likewise.
24302 * config/rs6000/darwin-world.asm: Likewise.
24303 * config/rs6000/e500crtres32gpr.asm: Likewise.
24304 * config/rs6000/e500crtres64gpr.asm: Likewise.
24305 * config/rs6000/e500crtres64gprctr.asm: Likewise.
24306 * config/rs6000/e500crtrest32gpr.asm: Likewise.
24307 * config/rs6000/e500crtrest64gpr.asm: Likewise.
24308 * config/rs6000/e500crtresx32gpr.asm: Likewise.
24309 * config/rs6000/e500crtresx64gpr.asm: Likewise.
24310 * config/rs6000/e500crtsav32gpr.asm: Likewise.
24311 * config/rs6000/e500crtsav64gpr.asm: Likewise.
24312 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
24313 * config/rs6000/e500crtsavg32gpr.asm: Likewise.
24314 * config/rs6000/e500crtsavg64gpr.asm: Likewise.
24315 * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
24316 * config/rs6000/eabi-ci.asm: Likewise.
24317 * config/rs6000/eabi-cn.asm: Likewise.
24318 * config/rs6000/eabi.asm: Likewise.
24319 * config/rs6000/linux-unwind.h: Likewise.
24320 * config/rs6000/linux64.h: Likewise.
24321 * config/rs6000/paired.h: Likewise.
24322 * config/rs6000/paired.md: Likewise.
24323 * config/rs6000/ppc64-fp.c: Likewise.
24324 * config/rs6000/ppu_intrinsics.h: Likewise.
24325 * config/rs6000/rs6000.h: Likewise.
24326 * config/rs6000/si2vmx.h: Likewise.
24327 * config/rs6000/sol-ci.asm: Likewise.
24328 * config/rs6000/sol-cn.asm: Likewise.
24329 * config/rs6000/spe.h: Likewise.
24330 * config/rs6000/spu2vmx.h: Likewise.
24331 * config/rs6000/sysv4.h: Likewise.
24332 * config/rs6000/tramp.asm: Likewise.
24333 * config/rs6000/vec_types.h: Likewise.
24334 * config/s390/linux-unwind.h: Likewise.
24335 * config/s390/tpf-unwind.h: Likewise.
24336 * config/score/crti.asm: Likewise.
24337 * config/score/crtn.asm: Likewise.
24338 * config/sh/crt1.asm: Likewise.
24339 * config/sh/crti.asm: Likewise.
24340 * config/sh/crtn.asm: Likewise.
24341 * config/sh/divtab-sh4-300.c: Likewise.
24342 * config/sh/divtab-sh4.c: Likewise.
24343 * config/sh/divtab.c: Likewise.
24344 * config/sh/lib1funcs-4-300.asm: Likewise.
24345 * config/sh/lib1funcs-Os-4-200.asm: Likewise.
24346 * config/sh/lib1funcs.asm: Likewise.
24347 * config/sh/lib1funcs.h: Likewise.
24348 * config/sh/linux-atomic.asm: Likewise.
24349 * config/sh/linux-unwind.h: Likewise.
24350 * config/sh/shmedia.h: Likewise.
24351 * config/sh/sshmedia.h: Likewise.
24352 * config/sh/ushmedia.h: Likewise.
24353 * config/sparc/crtfastmath.c: Likewise.
24354 * config/sparc/linux-unwind.h: Likewise.
24355 * config/sparc/sol2-c1.asm: Likewise.
24356 * config/sparc/sol2-ci.asm: Likewise.
24357 * config/sparc/sol2-cn.asm: Likewise.
24358 * config/spu/divmodti4.c: Likewise.
24359 * config/spu/divv2df3.c: Likewise.
24360 * config/spu/float_disf.c: Likewise.
24361 * config/spu/float_unsdidf.c: Likewise.
24362 * config/spu/float_unsdisf.c: Likewise.
24363 * config/spu/float_unssidf.c: Likewise.
24364 * config/spu/mfc_multi_tag_release.c: Likewise.
24365 * config/spu/mfc_multi_tag_reserve.c: Likewise.
24366 * config/spu/mfc_tag_release.c: Likewise.
24367 * config/spu/mfc_tag_reserve.c: Likewise.
24368 * config/spu/mfc_tag_table.c: Likewise.
24369 * config/spu/multi3.c: Likewise.
24370 * config/spu/spu_internals.h: Likewise.
24371 * config/spu/spu_intrinsics.h: Likewise.
24372 * config/spu/spu_mfcio.h: Likewise.
24373 * config/spu/vec_types.h: Likewise.
24374 * config/spu/vmx2spu.h: Likewise.
24375 * config/stormy16/stormy16-lib2.c: Likewise.
24376 * config/svr4.h: Likewise.
24377 * config/sync.c: Likewise.
24378 * config/v850/lib1funcs.asm: Likewise.
24379 * config/vxlib-tls.c: Likewise.
24380 * config/vxlib.c: Likewise.
24381 * config/vxworks-dummy.h: Likewise.
24382 * config/xtensa/crti.asm: Likewise.
24383 * config/xtensa/crtn.asm: Likewise.
24384 * config/xtensa/ieee754-df.S: Likewise.
24385 * config/xtensa/ieee754-sf.S: Likewise.
24386 * config/xtensa/lib1funcs.asm: Likewise.
24387 * config/xtensa/lib2funcs.S: Likewise.
24388 * config/xtensa/linux-unwind.h: Likewise.
24389 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
24390 * config/xtensa/unwind-dw2-xtensa.h: Likewise.
24391 * coretypes.h: Likewise.
24392 * crtstuff.c: Likewise.
24393 * defaults.h: Likewise.
24394 * dwarf2.h: Likewise.
24395 * emutls.c: Likewise.
24396 * gbl-ctors.h: Likewise.
24397 * gcov-io.h: Likewise.
24398 * ginclude/float.h: Likewise.
24399 * ginclude/iso646.h: Likewise.
24400 * ginclude/stdarg.h: Likewise.
24401 * ginclude/stdbool.h: Likewise.
24402 * ginclude/stddef.h: Likewise.
24403 * ginclude/stdfix.h: Likewise.
24404 * ginclude/stdint-gcc.h: Likewise.
24405 * ginclude/tgmath.h: Likewise.
24406 * gthr-aix.h: Likewise.
24407 * gthr-dce.h: Likewise.
24408 * gthr-gnat.c: Likewise.
24409 * gthr-gnat.h: Likewise.
24410 * gthr-lynx.h: Likewise.
24411 * gthr-mipssde.h: Likewise.
24412 * gthr-nks.h: Likewise.
24413 * gthr-posix.c: Likewise.
24414 * gthr-posix.h: Likewise.
24415 * gthr-posix95.h: Likewise.
24416 * gthr-rtems.h: Likewise.
24417 * gthr-single.h: Likewise.
24418 * gthr-solaris.h: Likewise.
24419 * gthr-tpf.h: Likewise.
24420 * gthr-vxworks.h: Likewise.
24421 * gthr-win32.h: Likewise.
24422 * gthr.h: Likewise.
24423 * libgcc2.c: Likewise.
24424 * libgcc2.h: Likewise.
24425 * libgcov.c: Likewise.
24426 * tsystem.h: Likewise.
24427 * typeclass.h: Likewise.
24428 * unwind-c.c: Likewise.
24429 * unwind-compat.h: Likewise.
24430 * unwind-dw2-fde-compat.c: Likewise.
24431 * unwind-dw2-fde-darwin.c: Likewise.
24432 * unwind-dw2-fde-glibc.c: Likewise.
24433 * unwind-dw2-fde.c: Likewise.
24434 * unwind-dw2-fde.h: Likewise.
24435 * unwind-dw2.c: Likewise.
24436 * unwind-dw2.h: Likewise.
24437 * unwind-generic.h: Likewise.
24438 * unwind-pe.h: Likewise.
24439 * unwind-sjlj.c: Likewise.
24440 * unwind.inc: Likewise.
24441 * config/arm/neon-gen.ml: Change generated copyright header to
24442 refer to version 3 of the GNU General Public License with
24443 version 3.1 of the GCC Runtime Library Exception and to point
24444 readers at the COPYING3 and COPYING3.RUNTIME files and the
24445 FSF's license web page.
24446 * config/arm/arm_neon.h: Regenerate.
24447
244482009-04-09 Jakub Jelinek <jakub@redhat.com>
24449
24450 * config/cris/cris.md: Change copyright header to refer to version
24451 3 of the GNU General Public License.
24452 * doc/install.texi2html: Change copyright header to refer to version
24453 3 of the GNU General Public License and to point readers at the
24454 COPYING3 file and the FSF's license web page.
24455 * config/vax/linux.h: Likewise.
24456
4a77c72b
PB
244572009-04-09 Paolo Bonzini <bonzini@gnu.org>
24458
1ad2f450
L
24459 * config/i386/i386.md (cmpcc): New.
24460 * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
24461 (sync_compare_and_swap_cc*): Delete.
24462
24463 * config/s390/s390.c (s390_compare_emitted): Remove.
24464 (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
24465 s390_compare_emitted used to be handled. Assert that modes match.
24466 (s390_emit_compare_and_swap): Use s390_emit_compare, do not
24467 refer to sync_compare_and_swap_ccsi.
24468 * config/s390/s390.h (s390_compare_emitted): Remove.
24469 * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
24470 instead of s390_compare_emitted.
24471 (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
24472 instead of s390_compare_emitted.
24473 * config/s390/s390.md (cmpcc): New.
24474 (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
24475 CC_REGNUM, do not pretend it's set.
24476 (sync_compare_and_swap_cc*): Delete.
24477 * config/s390/predicates.md (cc_reg_operand): New.
24478
24479 * expr.c (sync_compare_and_swap_cc): Delete.
24480 * optabs.h (sync_compare_and_swap_cc): Delete.
24481 * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
24482 is being used with can_compare_p.
24483 (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
24484 (find_cc_set): New.
24485 (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
24486 look for a MODE_CC set instead. Use emit_store_flag.
24487 (expand_compare_and_swap_loop): Likewise, with some additional
24488 complication to avoid a force_reg when useless. Use
24489 emit_cmp_and_jump_insns.
24490 * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
24491 * doc/md.texi (sync_compare_and_swap_cc): Merge with
24492 sync_compare_and_swap documentation.
4a77c72b 24493
0c0efb33
JH
244942009-04-09 Jan Hubicka <jh@suse.cz>
24495
24496 * except.c (find_prev_try): Break out from ....
24497 (duplicate_eh_regions): ... here; properly update prev_try pointers
24498 when duplication part of tree.
24499 (dump_eh_tree): Improve dumping.
24500 (verify_eh_region): New.
24501 (verify_eh_tree): Use it.
24502
22a65a54
RG
245032009-04-06 Richard Guenther <rguenther@suse.de>
24504
24505 * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
24506 &ARRAY addresses by adjusting their types and prepending
24507 a conversion.
24508 * tree-cfg.c (verify_gimple_assign_single): Verify that
24509 addresses are correct.
24510
f76968e6
RG
245112009-04-09 Richard Guenther <rguenther@suse.de>
24512
24513 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
24514 indices into an array reference if possible.
24515 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
24516 Fold POINTER_PLUS_EXPR statements with invariant address.
24517
c90c5fb5
AM
245182009-04-09 Alan Modra <amodra@bigpond.net.au>
24519
24520 PR target/39634
24521 * config.gcc (powerpc64-*-linux*): Always build biarch.
24522
17cede2e
JM
245232009-04-09 Joseph Myers <joseph@codesourcery.com>
24524
24525 PR c/39613
24526 * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
24527 it and pedwarn if this results in an INTEGER_CST.
24528
a3337ea2
KG
245292009-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24530
24531 * doc/install.texi: Update minimum GMP version. Remove obsolete
24532 text in MPFR section.
24533
ce9ba79b
JJ
245342009-04-08 Jakub Jelinek <jakub@redhat.com>
24535
24536 * dwarf2out.c (class_scope_p): New static inline.
24537 (class_or_namespace_scope_p): Use it.
24538 (gen_variable_die): Use DW_TAG_member tag for static data member
24539 declarations instead of DW_TAG_variable.
24540
4f0ae266
JJ
24541 PR middle-end/39573
24542 * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
24543 variables.
24544
d27f0ddc
RG
245452009-04-08 Richard Guenther <rguenther@suse.de>
24546
24547 * tree-ssa-sccvn.c (valueize_refs): Do not continue to
24548 valueize random data.
24549
557cc596
DE
245502009-04-08 David Edelsohn <edelsohn@gnu.org>
24551
24552 * config.gcc (aix tm_file): Add aix-stdint.h.
24553 (aix tm clause use_gcc_stdint): Set to wrap.
24554 * config/rs6000/aix-stdint.h: New file.
2ba9daa7 24555
75ccc1e7
RG
245562009-04-08 Richard Guenther <rguenther@suse.de>
24557
24558 PR middle-end/36291
24559 * tree-dfa.c (add_referenced_var): Do not recurse into
24560 global initializers.
24561 * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
24562 exposed variables.
24563 (fold_const_aggregate_ref): Likewise.
24564
c6963675
PB
245652009-04-08 Paolo Bonzini <bonzini@gnu.org>
24566
6c44cf79
L
24567 * recog.c (ordered_comparison_operator): New.
24568 * gensupport.c (std_preds): Add it.
c6963675
PB
24569 * doc/md.texi (Machine-Independent Predicates): Document it.
24570
6d07ad98
JH
245712009-04-08 Jan Hubicka <jh@suse.cz>
24572
24573 * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
24574 * function.h (rtl_eh): Remove exception_handler_label_map.
24575 * except.c (ehl_hash, ehl_eq, add_ehl_entry,
24576 remove_exception_handler_label, for_each_eh_label_1): Remove.
24577 (rtl_remove_unreachable_regions): Remove.
24578 (convert_from_eh_region_ranges): Do not remove unreachable regions.
24579 (find_exception_handler_labels): Don't build the hashtable.
24580 (maybe_remove_eh_handler): Remove.
24581 (for_each_eh_label): Rewrite to walk the tree.
24582 (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
24583 * except.h (maybe_remove_eh_handler): Remove.
24584 * passes.c (init_optimization_passes): Schedule second EH cleanup
24585 before out-of-ssa.
24586 * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
24587 cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
24588
7ddf71e3
PB
245892009-04-08 Paolo Bonzini <bonzini@gnu.org>
24590
24591 * genoutput.c (validate_optab_operands): New.
24592 (gen_insn, gen_expand): Call it.
24593
24594 * genflags.c (gen_insn): Detect misused iterators.
24595 (main): Pass line_no to gen_insn, exit with status 1 on error.
24596
24597 * genextract.c (line_no): Make global.
24598 (VEC_safe_set_locstr): Change assertion to error message.
24599 (main): Exit with status 1 on error.
24600
4d84fe7c
JM
246012009-04-08 Joseph Myers <joseph@codesourcery.com>
24602
24603 PR c/39614
24604 PR c/39673
24605 * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
24606 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
24607 EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
24608 * c-convert.c (convert): Do not call fold on results of conversion
24609 functions when the result is a C_MAYBE_CONST_EXPR.
24610 * c-parser.c (c_parser_postfix_expression): Do not fold condition
24611 of __builtin_choose_expr.
24612 * c-typeck.c (remove_c_maybe_const_expr): New.
24613 (build_unary_op, build_conditional_expr, build_compound_expr,
24614 build_binary_op, c_objc_common_truthvalue_conversion): Call
24615 remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
24616 integer operands.
24617
60839f5d 246182009-04-08 Bingfeng Mei <bmei@broadcom.com>
d1d1c602 24619
2ba9daa7 24620 * fold-const.c (const_binop): Combine two VECTOR_CST under operation
6c44cf79 24621 CODE to produce a new one. Add a prototype to use fold_convert_const
d1d1c602 24622
8e481a2c
DS
246232009-04-08 Danny Smith <dannysmith@users.sourceforge.net>
24624
24625 PR bootstrap/39660
24626 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
24627 mix declarations and code.
24628
ee618c17
BE
246292009-04-08 Ben Elliston <bje@au.ibm.com>
24630
24631 * gcc.c: Replace `CC' with `GCC' throughout.
24632
f2a758a2
L
246332009-04-07 H.J. Lu <hongjiu.lu@intel.com>
24634
24635 * doc/invoke.texi: Document Atom support.
24636
6ea2bd47
JM
246372009-04-07 Jason Merrill <jason@redhat.com>
24638
24639 PR c++/25185
24640 * c-common.h, c-common.c: Add flag_pretty_templates.
24641 * c-opts.c (c_common_handle_option): Set it.
24642 * c.opt: Add -fno-pretty-templates.
24643 * doc/invoke.texi (C++ Dialect Options): Likewise.
24644
fcb82ab0
UB
246452009-04-07 Uros Bizjak <ubizjak@gmail.com>
24646
24647 * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
24648 (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
24649 (ia64_expand_builtin): Likewise.
24650
dc5e7298
MJ
246512009-04-07 Martin Jambor <mjambor@suse.cz>
24652
24653 * tree-ssa-alias.c (refs_may_alias_p_1): Check for
24654 is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
24655 ADDR_EXPRS are include too.
24656
0609b355
RG
246572009-04-07 Richard Guenther <rguenther@suse.de>
24658
24659 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
24660 decls are only used if passes as parameters or if they are
24661 local statics and the call is not to a builtin.
24662 (call_may_clobber_ref_p_1): Likewise.
24663
d8e535fa
PB
246642009-04-07 Paolo Bonzini <bonzini@gnu.org>
24665
24666 * expr.c (do_store_flag): Remove last argument. Simplify code
24667 to avoid duplication of tests already done by can_compare_p.
24668 (expand_expr_real_1): Adjust caller.
24669
c3c64f50
PB
246702009-04-07 Paolo Bonzini <bonzini@gnu.org>
24671
fcb82ab0
UB
24672 * optabs.c (can_compare_p): Test the predicate of a
24673 cbranch and cstore pattern.
c3c64f50 24674
9a53bc17
PB
246752009-04-07 Paolo Bonzini <bonzini@gnu.org>
24676
fcb82ab0
UB
24677 * expr.c (convert_move): Use emit_store_flag instead of
24678 "emulating" it.
9a53bc17 24679
67b8f1c1
PB
246802009-04-07 Paolo Bonzini <bonzini@gnu.org>
24681
fcb82ab0
UB
24682 * config/i386/i386.c (ix86_compare_emitted): Remove.
24683 (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
24684 ix86_compare_op0 like ix86_compare_emitted used to be handled.
24685 * config/i386/i386.h (ix86_compare_emitted): Remove.
24686 * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
24687 instead of ix86_compare_emitted.
24688 * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
67b8f1c1 24689
44509946
AS
246902009-04-07 Andrew Stubbs <ams@codesourcery.com>
24691
24692 * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
24693 Add t-sysroot-suffix to tmake_file.
24694 * config/print-sysroot-suffix.sh: New file.
24695 * config/t-sysroot-suffix: New file.
24696
ca22d882
BE
246972009-04-07 Ben Elliston <bje@au.ibm.com>
24698
24699 * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
24700 as the latter produces a warning when the target does not support
24701 infinity.
24702
95aac11b
BE
247032009-04-07 Ben Elliston <bje@au.ibm.com>
24704
24705 * dfp.c: Replace type punning assignments with memcpy throughout.
24706 * Makefile.in (dfp.o-warn): Remove.
2ba9daa7 24707
633dd061
AM
247082009-04-07 Alan Modra <amodra@bigpond.net.au>
24709
24710 PR target/39634
24711 * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
24712 Include soft-fp/t-softfp after rs6000/t-linux64.
24713
fe0a25ec
EB
247142009-04-06 Eric Botcazou <ebotcazou@adacore.com>
24715
24716 * stor-layout.c (set_sizetype): Use the full precision of their
24717 machine mode for bitsize types.
24718
0c011bc3
L
247192009-04-06 H.J. Lu <hongjiu.lu@intel.com>
24720
24721 * config/i386/i386.md: Revert 2 accidental checkins.
24722
b6837b94 247232009-04-06 Joey Ye <joey.ye@intel.com>
60839f5d 24724 Xuepeng Guo <xuepeng.guo@intel.com>
b6837b94
JY
24725 H.J. Lu <hongjiu.lu@intel.com>
24726
24727 Atom pipeline model, tuning and insn selection.
24728 * config.gcc (atom): Add atom config options and target.
24729
24730 * config/i386/atom.md: New.
24731
24732 * config/i386/i386.c (atom_cost): New cost.
24733 (m_ATOM): New macro flag.
24734 (initial_ix86_tune_features): Set m_ATOM.
24735 (x86_accumulate_outgoing_args): Likewise.
24736 (x86_arch_always_fancy_math_387): Likewise.
24737 (processor_target): Add Atom cost.
24738 (cpu_names): Add Atom cpu name.
24739 (override_options): Set Atom ISA.
24740 (ix86_issue_rate): New case PROCESSOR_ATOM.
24741 (ix86_adjust_cost): Likewise.
24742
24743 * config/i386/i386.h (TARGET_ATOM): New target macro.
24744 (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
24745 (TARGET_OPT_AGU): New target option.
24746 (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
24747 (processor_type): Add PROCESSOR_ATOM.
24748
24749 * config/i386/i386.md (cpu): Add new value "atom".
24750 (use_carry, movu): New attr.
24751 (atom.md): Include atom.md.
24752 (adddi3_carry_rex64): Set attr "use_carry".
24753 (addqi3_carry): Likewise.
24754 (addhi3_carry): Likewise.
24755 (addsi3_carry): Likewise.
24756 (*addsi3_carry_zext): Likewise.
24757 (subdi3_carry_rex64): Likewise.
24758 (subqi3_carry): Likewise.
24759 (subhi3_carry): Likewise.
24760 (subsi3_carry): Likewise.
24761 (x86_movdicc_0_m1_rex64): Likewise.
24762 (*x86_movdicc_0_m1_se): Likewise.
24763 (x86_movsicc_0_m1): Likewise.
24764 (*x86_movsicc_0_m1_se): Likewise.
24765 (*adddi_1_rex64): Emit add insn as much as possible.
24766 (*addsi_1): Likewise.
24767 (return_internal): Set atom_unit.
24768 (return_internal_long): Likewise.
24769 (return_pop_internal): Likewise.
24770 (*rcpsf2_sse): Set atom_sse_attr attr.
24771 (*qrt<mode>2_sse): Likewise.
24772 (*prefetch_sse): Likewise.
24773
24774 * config/i386/i386-c.c (ix86_target_macros_internal): New case
24775 PROCESSOR_ATOM.
24776 (ix86_target_macros_internal): Likewise.
24777
24778 * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
24779 (*prefetch_sse_rex): Likewise.
24780 (sse_rcpv4sf2): Likewise.
24781 (sse_vmrcpv4sf2): Likewise.
24782 (sse_sqrtv4sf2): Likewise.
24783 (<sse>_vmsqrt<mode>2): Likewise.
24784 (sse_ldmxcsr): Likewise.
24785 (sse_stmxcsr): Likewise.
24786 (*sse_sfence): Likewise.
24787 (sse2_clflush): Likewise.
24788 (*sse2_mfence): Likewise.
24789 (*sse2_lfence): Likewise.
24790 (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
24791 (<sse>_movup<ssemodesuffixf2c>): Likewise.
24792 (avx_movdqu<avxmodesuffix>): Likewise.
24793 (avx_lddqu<avxmodesuffix>): Likewise.
24794 (sse2_movntv2di): Change attr "type" to "ssemov".
24795 (sse2_movntsi): Likewise.
24796 (rsqrtv8sf2): Change attr "type" to "sseadd".
24797 (sse3_addsubv2df3): Set attr "atom_unit".
24798 (sse3_h<plusminus_insn>v4sf3): Likewise.
24799 (*sse2_pmaddwd): Likewise.
24800 (*vec_extractv2di_1_rex64): Likewise.
24801 (*vec_extractv2di_1_avx): Likewise.
24802 (sse2_psadbw): Likewise.
24803 (ssse3_phaddwv8hi3): Likewise.
24804 (ssse3_phaddwv4hi3): Likewise.
24805 (ssse3_phadddv4si3): Likewise.
24806 (ssse3_phadddv2si3): Likewise.
24807 (ssse3_phaddswv8hi3): Likewise.
24808 (ssse3_phaddswv4hi3): Likewise.
24809 (ssse3_phsubwv8hi3): Likewise.
24810 (ssse3_phsubwv4hi3): Likewise.
24811 (ssse3_phsubdv4si3): Likewise.
24812 (ssse3_phsubdv2si3): Likewise.
24813 (ssse3_phsubswv8hi3): Likewise.
24814 (ssse3_phsubswv4hi3): Likewise.
24815 (ssse3_pmaddubsw128): Likewise.
24816 (sse3_pmaddubsw: Likewise.
24817 (ssse3_palignrti): Likewise.
24818 (ssse3_palignrdi): Likewise.
24819
53e350d3
GP
248202009-04-06 Gerald Pfeifer <gerald@pfeifer.com>
24821
24822 * doc/install.texi (Specific): Fix two cross-references to MinGW.
24823
439ef907
RG
248242009-04-06 Richard Guenther <rguenther@suse.de>
24825
24826 PR tree-optimization/28868
24827 * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
24828 of which PHI results we inserted.
24829 (insert_into_preds_of_block): Record inserted PHIs.
24830 (eliminate): Eliminate redundant PHI nodes.
24831 (init_pre): Init inserted_phi_names.
24832
4bad83f5
RG
248332009-04-06 Richard Guenther <rguenther@suse.de>
24834
24835 PR tree-optimization/39643
24836 * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
24837 IMAGPART_EXPRs of complex constants.
24838 (execute_fold_all_builtins): If we folded a call queue
24839 TODO_update_address_taken.
24840
570c4247
JH
248412009-04-06 Jan Hubicka <jh@suse.cz>
24842
24843 PR middle-end/39659
24844 * except.c (remove_unreachable_regions): Propagate may_contain_throw
24845 flag.
24846
a460d7a1
AS
248472009-04-06 Andrew Stubbs <ams@codesourcery.com>
24848
24849 * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
24850 delay slot.
24851 (ic_invalidate_array): Likewise.
24852
60839f5d 248532009-04-06 Hariharan Sandanagobalane <hariharan@picochip.com>
6bdf8c2e
HS
24854
24855 * calls.c (emit_library_call_value_1): Fix a problem with parameter
24856 alignment for library calls.
24857
7d253f6e
DS
248582009-04-06 Danny Smith <dannysmith@users.sourceforge.net>
24859
24860 * config.gcc (mingw32 tm_file): Add mingw-stdint.h.
24861 (mingw32 tm clause use_gcc_stdint): Set to wrap.
24862 * config/i386/mingw-stdint.h: New file.
24863
941c3614
RB
248642009-04-05 Richard Guenther <rguenther@suse.de>
24865
24866 PR tree-optimization/39648
24867 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
24868 our &A vs. &A[0] IL deficiencies.
24869
12633413
JH
248702009-04-04 Jan Hubicka <jh@suse.cz>
24871
941c3614
RB
24872 * except.c (sjlj_find_directly_reachable_regions): Be ready for
24873 removed toplevel regions.
12633413
JH
24874 (sjlj_mark_call_sites): Likewise.
24875
bb2aaded
DK
248762009-04-04 Dave Korn <dave.korn.cygwin@gmail.com>
24877
24878 * config.gcc (cygwin tm_file): Add cygwin-stdint.h.
24879 (cygwin tm clause use_gcc_stdint): Set to wrap.
24880 * config/i386/cygwin-stdint.h: New file.
24881
86290011
RG
248822009-04-04 Richard Guenther <rguenther@suse.de>
24883
24884 * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
24885 * tree-ssa-copy.c (init_copy_prop): Do not propagate through
24886 single-argument PHIs if we are in loop-closed SSA form.
24887 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
24888 for the pre-condition.
24889 (slpeel_tree_peel_loop_to_edge): Likewise.
24890 (vect_build_loop_niters): Take an optional sequence to append stmts.
24891 (vect_generate_tmps_on_preheader): Likewise.
24892 (vect_do_peeling_for_loop_bound): Take extra guards for the
24893 pre-condition.
24894 (vect_do_peeling_for_alignment): Adjust. Unconditionally apply
24895 the cost model check.
24896 (vect_loop_versioning): Take stmt and stmt list to put pre-condition
7a715bba 24897 guards if we are going to peel. Do not apply versioning in that case.
86290011
RG
24898 * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
24899 (vect_do_peeling_for_loop_bound): Likewise.
24900 * tree-vect-loop.c (vect_transform_loop): If we are peeling for
24901 loop bound only record extra pre-conditions, do not apply loop
24902 versioning.
24903
5eeeac64
RG
249042009-04-04 Richard Guenther <rguenther@suse.de>
24905
24906 * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
24907 renaming code.
24908
1ff7d06b
JH
249092009-04-04 Jan Hubicka <jh@suse.cz>
24910
24911 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
24912 last_basic_block for size of bb->index indexed array.
24913 * bt-load.c (compute_defs_uses_and_gen, compute_kill,
24914 compute_out, link_btr_uses, build_btr_def_use_webs,
24915 build_btr_def_use_webs, migrate_btr_defs): Likewise.
24916
14925fcd
JH
249172009-04-04 Jan Hubicka <jh@suse.cz>
24918
24919 * except.c (remove_eh_handler_and_replace): Break out from ...
24920 (remove_eh_handler): ... here.
24921 (bring_to_root): New function.
24922 (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
24923 handled ones, bring others to root of tree.
24924
4e6d1743
JH
249252009-04-04 Jan Hubicka <jh@suse.cz>
24926
4cb735f7
JH
24927 * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
24928 (all_phis_safe_to_merge): New function.
24929 (update_info): New structure.
24930 (make_eh_edge_and_update_phi, update_eh_edges): New functions.
24931 (cleanup_empty_eh): Update SSA if possible.
4e6d1743 24932
c6803d43
RG
249332009-04-04 Richard Guenther <rguenther@suse.de>
24934
24935 * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
24936 * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
24937 (append_vuse): Likewise.
24938
54f5943c
JJ
249392009-04-04 Jakub Jelinek <jakub@redhat.com>
24940
24941 * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
24942 * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
24943 instead of REG_UNSAVED for DW_CFA_undefined.
24944 (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
24945 (uw_update_context): If RA column is REG_UNDEFINED, mark it as
24946 outermost frame.
24947
aad2bccb
RE
249482009-04-04 Richard Earnshaw <rearnsha@arm.com>
24949
24950 PR target/39501
24951 * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
aad2bccb 24952
aa7069aa
RG
249532009-04-04 Richard Guenther <rguenther@suse.de>
24954
24955 PR tree-optimization/8781
24956 PR tree-optimization/37892
24957 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
24958 * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
24959 (valueize_refs): Call it for *& valueizations.
24960 (shared_reference_ops_from_ref): Rename to ...
24961 (valueize_shared_reference_ops_from_ref): ... this and valueize.
24962 (shared_reference_ops_from_call): Rename to ...
24963 (valueize_shared_reference_ops_from_call): ... this and valueize.
24964 (vn_reference_lookup): Update.
24965 (visit_reference_op_call): Likewise.
24966 * tree-ssa-pre.c (phi_translate_1): Fold *&.
24967 (eliminate): Value-replace the call address in call statements.
24968
cd15ad3e
RG
249692009-04-04 Richard Guenther <rguenther@suse.de>
24970
24971 PR tree-optimization/39636
24972 * tree-ssa-forwprop.c
24973 (forward_propagate_addr_into_variable_array_index): Check for
24974 GIMPLE_ASSIGN before accessing the rhs code.
24975
462f3262
JM
249762009-04-03 Jason Merrill <jason@redhat.com>
24977
24978 * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
24979
6adb807e
SE
249802009-04-03 Steve Ellcey <sje@cup.hp.com>
24981
24982 * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
24983 truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
24984 fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
24985 floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
24986 fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
24987 smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
24988 divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
24989 umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
24990 *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
24991 *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
24992 adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
24993 smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
24994 *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
24995 *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
24996 sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
24997 Use fr_reg_or_fp01_operand instead of fr_register_operand
24998
24999 * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
25000 recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
25001 divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
25002
174b3107
VM
250032009-04-03 Vladimir Makarov <vmakarov@redhat.com>
25004
b844e5d8
L
25005 PR rtl-optimization/39607
25006 PR rtl-optimization/39631
7a715bba
UB
25007
25008 Revert:
2ba9daa7 25009
174b3107
VM
25010 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
25011 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
25012 instead of DF_LR_OUT.
25013 * ira-lives.c (process_bb_node_lives): Ditto.
25014 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
25015 instead of DF_LR_{OUT,IN}.
25016 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
25017 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
25018
535b544a
SB
250192009-04-03 Steven Bosscher <steven@gcc.gnu.org>
25020
25021 * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
25022 (execute_lower_omp): Always run but take the short way out if -fopenmp
25023 is not given.
25024 (gate_lower_omp): Remove, forcing the pass manager to always run the
25025 pass and always set PROP_gimple_lomp.
25026 (pass_lower_omp): Remove gate function.
25027 * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
25028 PROP_trees. Instead, require it.
25029 * ipa-cp.c (pass_ipa_cp): Likewise.
25030 * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
25031 (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
25032 * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
25033 and PROP_gimple_leh.
25034
5006671f
RG
250352009-04-03 Richard Guenther <rguenther@suse.de>
25036
25037 PR middle-end/13146
25038 PR tree-optimization/23940
25039 PR tree-optimization/33237
25040 PR middle-end/33974
25041 PR middle-end/34093
25042 PR tree-optimization/36201
25043 PR tree-optimization/36230
25044 PR tree-optimization/38049
25045 PR tree-optimization/38207
25046 PR tree-optimization/38230
25047 PR tree-optimization/38301
25048 PR tree-optimization/38585
25049 PR middle-end/38895
25050 PR tree-optimization/38985
25051 PR tree-optimization/39299
25052 * tree-ssa-structalias.h: Remove.
25053 * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
25054 (NULL_DEF_OPERAND_P): Make of type def_operand_p.
25055 (struct vuse_element_d): Remove.
25056 (struct vuse_vec_d): Likewise.
25057 (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
25058 VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
25059 SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
25060 VUSE_ELEMENT_VAR): Likewise.
25061 (struct voptype_d): Likewise.
25062 (NUM_VOP_FREE_BUCKETS): Likewise.
25063 (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
25064 (struct stmt_operands_d): Remove.
25065 (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
25066 VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
25067 VDEF_NUM, VDEF_VECT): Likewise.
25068 (copy_virtual_operands): Remove.
25069 (operand_build_cmp): Likewise.
25070 (create_ssa_artificial_load_stmt): Likewise.
25071 (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
25072 (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
25073 vuse_index and mayuse_index members. Pack and move done and iter_type
25074 members to the front.
25075 (SSA_OP_VMAYUSE): Remove.
25076 (SSA_OP_VIRTUAL_USES): Adjust.
25077 (FOR_EACH_SSA_VDEF_OPERAND): Remove.
25078 (unlink_stmt_vdef): Declare.
25079 (add_to_addressable_set): Remove.
25080 * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
25081 (vrp_visit_stmt): Likewise.
25082 * doc/tree-ssa.texi (Alias analysis): Update.
25083 * doc/invoke.texi (max-aliased-vops): Remove docs.
25084 (avg-aliased-vops): Likewise.
25085 * tree-into-ssa.c (syms_to_rename): Remove.
25086 (need_to_update_vops_p): Likewise.
25087 (need_to_initialize_update_ssa_p): Rename to ...
25088 (update_ssa_initialized_fn): ... this. Track function we are
25089 initialized for.
25090 (symbol_marked_for_renaming): Simplify.
25091 (add_new_name_mapping): Do not set need_to_update_vops_p.
25092 (dump_currdefs): Use SYMS_TO_RENAME.
25093 (rewrite_update_stmt): Always walk all uses/defs.
25094 (dump_update_ssa): Adjust.
25095 (init_update_ssa): Take function argument. Track what we are
25096 initialized for.
25097 (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
25098 (create_new_def_for): Initialize for cfun, assert we are initialized
25099 for cfun.
25100 (mark_sym_for_renaming): Simplify.
25101 (mark_set_for_renaming): Do not initialize update-ssa.
25102 (need_ssa_update_p): Simplify. Take function argument.
25103 (name_mappings_registered_p): Assert we ask for the correct function.
25104 (name_registered_for_update_p): Likewise.
25105 (ssa_names_to_replace): Likewise.
25106 (release_ssa_name_after_update_ssa): Likewise.
25107 (update_ssa): Likewise. Use SYMS_TO_RENAME.
25108 (dump_decl_set): Do not print a newline.
25109 (debug_decl_set): Do it here.
25110 (dump_update_ssa): And here.
25111 * tree-ssa-loop-im.c (move_computations): Adjust.
25112 (movement_possibility): Likewise.
25113 (determine_max_movement): Likewise.
25114 (gather_mem_refs_stmt): Likewise.
25115 * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
25116 or NAME_MEMORY_TAG.
25117 * tree-complex.c (update_all_vops): Remove.
25118 (expand_complex_move): Adjust.
25119 * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
25120 Simplify test for memory referencing statement. Exclude
25121 non-invariant ADDR_EXPRs.
25122 * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
25123 * tree-loop-distribution.c (generate_memset_zero): Adjust.
25124 (rdg_flag_uses): Likewise.
25125 * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
25126 related code.
25127 (tree_optimize_tail_calls_1): Also split the
25128 edge from the entry block if we have degenerate PHI nodes in
25129 the first basic block.
25130 * tree.c (init_ttree): Remove memory-tag related code.
25131 (tree_code_size): Likewise.
25132 (tree_node_structure): Likewise.
25133 (build7_stat): Re-write to be build6_stat.
25134 * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
25135 (SSA_VAR_P): Adjust.
25136 (struct tree_memory_tag): Remove.
25137 (struct tree_memory_partition_tag): Likewise.
25138 (union tree_node): Adjust.
25139 (build7): Re-write to be build6.
25140 * tree-pass.h (pass_reset_cc_flags): Remove.
25141 (TODO_update_address_taken): New flag.
25142 (pass_simple_dse): Remove.
25143 * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
25144 * params.h (MAX_ALIASED_VOPS): Remove.
25145 (AVG_ALIASED_VOPS): Likewise.
25146 * omp-low.c (expand_omp_taskreg): Update SSA form.
25147 * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
25148 aliases the lhs in a copy stmt.
25149 * tree-ssa-dse.c (struct address_walk_data): Remove.
25150 (memory_ssa_name_same): Likewise.
25151 (memory_address_same): Likewise.
25152 (get_kill_of_stmt_lhs): Likewise.
25153 (dse_possible_dead_store_p): Simplify, use the oracle. Handle
25154 unused stores. Look through PHI nodes into post-dominated regions.
25155 (dse_optimize_stmt): Simplify. Properly remove stores.
25156 (tree_ssa_dse): Compute dominators.
25157 (execute_simple_dse): Remove.
25158 (pass_simple_dse): Likewise.
25159 * ipa-reference.c (scan_stmt_for_static_refs): Open-code
25160 gimple_loaded_syms and gimple_stored_syms computation.
25161 * toplev.c (dump_memory_report): Dump alias and pta stats.
25162 * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
25163 (vn_reference_eq): Likewise.
25164 (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
25165 copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
25166 valueize_vuses): Remove.
25167 (get_def_ref_stmt_vuses): Simplify. Rename to ...
25168 (get_def_ref_stmt_vuse): ... this.
25169 (vn_reference_lookup_2): New function.
25170 (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
25171 walking equivalent vuses. Simplify.
25172 (vn_reference_lookup): Likewise.
25173 (vn_reference_insert): Likewise.
25174 (vn_reference_insert_pieces): Likewise.
25175 (visit_reference_op_call): Simplify.
25176 (visit_reference_op_load): Likewise.
25177 (visit_reference_op_store): Likewise.
25178 (init_scc_vn): Remove shared_lookup_vuses initialization.
25179 (free_scc_vn): Remove shared_lookup_vuses freeing.
25180 (sort_vuses, sort_vuses_heap): Remove.
25181 (get_ref_from_reference_ops): Export.
25182 * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
25183 vector with single vuse pointer.
25184 (vn_reference_lookup_pieces, vn_reference_lookup,
25185 vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
25186 (shared_vuses_from_stmt): Remove.
25187 (get_ref_from_reference_ops): Declare.
25188 * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
25189 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
25190 memory-tag related code.
25191 * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
25192 (likely_value): Add comment, skip static-chain of call statements.
25193 (surely_varying_stmt_p): Adjust.
25194 (gimplify_and_update_call_from_tree): Likewise.
25195 (execute_fold_all_builtins): Do not rebuild alias info.
25196 (gimplify_and_update_call_from_tree): Properly update VOPs.
25197 * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
25198 (copy_ref_info): Remove memory-tag related code.
25199 * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
25200 * ipa-pure-const.c (check_decl): Remove memory-tag related code.
25201 (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
25202 computation.
25203 * tree-ssa-dom.c (gimple_p): Remove typedef.
25204 (eliminate_redundant_computations): Adjust.
25205 (record_equivalences_from_stmt): Likewise.
25206 (avail_expr_hash): Likewise.
25207 (avail_expr_eq): Likewise.
7a715bba 25208 * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
5006671f
RG
25209 (stmt_makes_single_load): Likewise.
25210 (stmt_makes_single_store): Likewise.
25211 * tree-ssa-alias.c: Rewrite completely.
25212 (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
25213 debug_mem_sym_stats, dump_mem_sym_stats_for_var,
25214 debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
25215 delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
25216 dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
25217 Remove public functions.
25218 (pass_reset_cc_flags): Remove.
25219 (pass_build_alias): Move ...
25220 * tree-ssa-structalias.c (pass_build_alias): ... here.
25221 * tree-ssa-alias.c (may_be_aliased): Move ...
25222 * tree-flow-inline.h (may_be_aliased): ... here.
25223 tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
25224 count_uses_and_derefs): Move ...
25225 * gimple.c: ... here.
25226 * gimple.h (count_uses_and_derefs): Declare.
25227 * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
25228 ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
25229 same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
25230 indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
25231 ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
25232 call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
25233 get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
25234 New functions.
25235 * tree-dfa.c (refs_may_alias_p): Move ...
25236 * tree-ssa-alias.c (refs_may_alias_p): ... here. Extend.
25237 * tree-ssa-alias.h: New file.
25238 * tree-ssa-sink.c (is_hidden_global_store): Adjust.
25239 (statement_sink_location): Likewise.
25240 * opts.c (decode_options): Do not adjust max-aliased-vops or
25241 avg-aliased-vops values.
25242 * timevar.def (TV_TREE_MAY_ALIAS): Remove.
25243 (TV_CALL_CLOBBER): Likewise.
25244 (TV_FLOW_SENSITIVE): Likewise.
25245 (TV_FLOW_INSENSITIVE): Likewise.
25246 (TV_MEMORY_PARTITIONING): Likewise.
25247 (TV_ALIAS_STMT_WALK): New timevar.
25248 * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
25249 * tree-ssa-address.c (create_mem_ref_raw): Use build6.
25250 (get_address_description): Remove memory-tag related code.
25251 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
25252 * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
25253 * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
25254 and immediate uses in statements. Document.
25255 * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
25256 (dump_symbols): Remove.
25257 (dump_gimple_mem_ops): Do not dump loaded or stored syms.
25258 * alias.c (get_deref_alias_set): New function split out from ...
25259 (get_alias_set): ... here.
25260 * alias.h (get_deref_alias_set): Declare.
25261 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
25262 type parameter. Remove restrict pointer handling. Create a
25263 ref-all pointer in case type-based alias sets do not conflict.
25264 (vect_analyze_data_refs): Remove SMT related code.
25265 * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
25266 (vectorizable_load): Likewise.
25267 * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
25268 (DR_SYMBOL_TAG, DR_VOPS): Remove.
25269 * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
25270 Ignore vops and SMTs.
25271 (dr_analyze_alias): Likewise..
25272 (free_data_ref): Likewise.
25273 (create_data_ref): Likewise.
25274 (analyze_all_data_dependences): Likewise.
25275 (get_references_in_stmt): Adjust.
25276 * tree-flow-inline.h (gimple_aliases_computed_p,
25277 gimple_addressable_vars, gimple_call_clobbered_vars,
25278 gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
25279 factoring_name_p, mark_call_clobbered, clear_call_clobbered,
25280 compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
25281 gimple_mem_ref_stats): Remove.
25282 (gimple_vop): New function.
25283 (op_iter_next_use): Remove vuses and mayuses cases.
25284 (op_iter_next_def): Remove vdefs case.
25285 (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
25286 (clear_and_done_ssa_iter): Do not set removed fields.
25287 (op_iter_init): Likewise. Skip vuse and/or vdef if requested.
25288 Assert we are not iterating over vuses or vdefs if not also
25289 iterating over uses or defs.
25290 (op_iter_init_use): Likewise.
25291 (op_iter_init_def): Likewise.
25292 (op_iter_next_vdef): Remove.
25293 (op_iter_next_mustdef): Likewise.
25294 (op_iter_init_vdef): Likewise.
25295 (compare_ssa_operands_equal): Likewise.
25296 (link_use_stmts_after): Handle vuse operand.
25297 (is_call_used): Use is_call_clobbered.
25298 (is_call_clobbered): Global variables are always call clobbered,
25299 query the call-clobbers bitmap.
25300 (mark_call_clobbered): Ignore global variables.
25301 (clear_call_clobbered): Likewise.
25302 * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
25303 virtual operands sanity check.
25304 * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
25305 Remove.
25306 (TARGET_MEM_REF): Remove TMR_TAG operand.
25307 * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
25308 Remove call-clobber related code.
25309 (remove_referenced_var): Likewise. Do not clear mpt or symbol_mem_tag.
25310 (dump_variable): Do not dump SMTs, memory stats, may-aliases or
25311 partitions or escape reason.
25312 (get_single_def_stmt, get_single_def_stmt_from_phi,
25313 get_single_def_stmt_with_phi): Remove.
25314 (dump_referenced_vars): Tidy.
25315 (get_ref_base_and_extent): Allow bare decls.
25316 (collect_dfa_stats): Adjust.
25317 * graphite.c (rename_variables_in_stmt): Adjust.
25318 (graphite_copy_stmts_from_block): Likewise.
25319 (translate_clast): Likewise.
25320 * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
25321 (EXPR_DIES): New.
25322 (translate_vuse_through_block): Use the oracle.
25323 (phi_translate_1): Adjust.
25324 (value_dies_in_block_x): Use the oracle. Cache the outcome
25325 in EXPR_DIES.
25326 (valid_in_sets): Check if the VUSE for
25327 a REFERENCE is available.
25328 (eliminate): Do not remove stmts during elimination,
25329 instead queue and remove them afterwards.
25330 (do_pre): Do not rebuild alias info.
25331 (pass_pre): Run TODO_rebuild_alias before PRE.
25332 * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
25333 * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
25334 (mark_all_v_defs_stmt): Remove.
25335 (mark_all_v_defs_seq): Adjust.
25336 (sra_replace): Likewise.
25337 (scalarize_use): Likewise.
25338 (scalarize_copy): Likewise.
25339 (scalarize_init): Likewise.
25340 (scalarize_ldst): Likewise.
25341 (todoflags): Remove.
25342 (tree_sra): Do not rebuild alias info.
25343 (tree_sra_early): Adjust.
25344 (pass_sra): Run TODO_update_address_taken before SRA.
25345 * tree-predcom.c (set_alias_info): Remove.
25346 (prepare_initializers_chain): Do not call it.
25347 (mark_virtual_ops_for_renaming): Adjust.
25348 (mark_virtual_ops_for_renaming_list): Remove.
25349 (initialize_root_vars): Adjust.
25350 (initialize_root_vars_lm): Likewise.
25351 (prepare_initializers_chain): Likewise.
25352 * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
25353 (may_propagate_copy_into_stmt): Likewise.
25354 (merge_alias_info): Do nothing for now.
25355 (propagate_tree_value_into_stmt): Adjust.
25356 (stmt_may_generate_copy): Likewise.
25357 * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
25358 not mark symbols for renaming.
25359 (forward_propagate_addr_expr): Match up push/pop_stmt_changes
25360 with the same statement, make sure to update the new pointed-to one.
25361 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
25362 call statements, do not mark symbols for renaming.
25363 (mark_operand_necessary): Dump something.
25364 (ref_may_be_aliased): New function.
25365 (mark_aliased_reaching_defs_necessary_1): New helper function.
25366 (mark_aliased_reaching_defs_necessary): Likewise.
25367 (mark_all_reaching_defs_necessary_1): Likewise.
25368 (mark_all_reaching_defs_necessary): Likewise.
25369 (propagate_necessity): Do not process virtual PHIs. For
25370 non-aliased loads mark all reaching definitions as necessary.
25371 For aliased loads and stores mark the immediate dominating
25372 aliased clobbers as necessary.
25373 (visited): New global static.
25374 (perform_tree_ssa_dce): Free visited bitmap after propagating
25375 necessity.
25376 (remove_dead_phis): Perform simple dead virtual PHI removal.
25377 (remove_dead_stmt): Properly unlink virtual operands when
25378 removing stores.
25379 (eliminate_unnecessary_stmts): Schedule PHI removal after
25380 stmt removal.
25381 * tree-ssa-ter.c (is_replaceable_p): Adjust.
25382 (process_replaceable): Likewise.
25383 (find_replaceable_in_bb): Likewise.
25384 * tree-ssa.c (verify_ssa_name): Verify all VOPs are
25385 based on the single gimple vop.
25386 (verify_flow_insensitive_alias_info): Remove.
25387 (verify_flow_sensitive_alias_info): Likewise.
25388 (verify_call_clobbering): Likewise.
25389 (verify_memory_partitions): Likewise.
25390 (verify_alias_info): Likewise.
25391 (verify_ssa): Adjust..
25392 (execute_update_addresses_taken): Export. Update SSA
25393 manually. Optimize only when optimizing. Use a local bitmap.
25394 (pass_update_address_taken): Remove TODO_update_ssa, add
25395 TODO_dump_func.
25396 (pass_update_address_taken): Just use TODO_update_address_taken.
25397 (init_tree_ssa): Do not initialize addressable_vars.
25398 (verify_ssa): Verify new VUSE / VDEF properties.
25399 Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
25400 Do not call verify_alias_info.
25401 (delete_tree_ssa): Clear the VUSE, VDEF operands.
25402 Do not free the loaded and stored syms bitmaps. Reset the escaped
25403 and callused solutions. Do not free addressable_vars.
25404 Remove memory-tag related code.
25405 (warn_uninitialized_var): Aliases are always available.
25406 * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
25407 * lambda-code.c (can_put_in_inner_loop): Adjust.
25408 (can_put_after_inner_loop): Likewise.
25409 (perfect_nestify): Likewise.
25410 * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
25411 (vect_gen_widened_results_half): Remove CALL_EXPR handling.
25412 (vectorizable_conversion): Do not mark symbols for renaming.
25413 * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
25414 (expand_call_inline): Unlink the calls virtual operands before
25415 replacing it.
25416 (tree_function_versioning): Do not call update_ssa if we are not
25417 updating clones. Simplify.
25418 * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
25419 (propagate_with_phi): Likewise..
25420 * tree-outof-ssa.c (create_temp): Remove memory tag and call
25421 clobber code. Assert we are not aliased or global.
25422 * tree-flow.h: Include tree-ssa-alias.h
25423 (enum escape_type): Remove.
25424 (struct mem_sym_stats_d): Likewise.
25425 (struct mem_ref_stats_d): Likewise.
25426 (struct gimple_df): Add vop member. Remove global_var,
25427 call_clobbered_vars, call_used_vars, addressable_vars,
25428 aliases_compted_p and mem_ref_stats members. Add syms_to_rename,
25429 escaped and callused members.
25430 (struct ptr_info_def): Remove all members, add points-to solution
25431 member pt.
25432 (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
25433 call_clobbered, escape_mask, mpt and symbol_mem_tag members.
25434 * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
25435 (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
25436 (tree-ssa-alias.o): Likewise.
25437 (toplev.o): Add tree-ssa-alias.h
25438 (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
25439 * gimple.c (gimple_set_bb): Fix off-by-one error.
25440 (is_gimple_reg): Do not handle memory tags.
25441 (gimple_copy): Also copy virtual operands.
25442 Delay updating the statement. Do not reset loaded and stored syms.
25443 (gimple_set_stored_syms): Remove.
25444 (gimple_set_loaded_syms): Likewise.
25445 (gimple_call_copy_skip_args): Copy the virtual operands
25446 and mark the new statement modified.
25447 * tree-ssa-structalias.c (may_alias_p): Remove.
25448 (set_uids_in_ptset): Take the alias set to prune with as
25449 parameter. Fold in the alias test of may_alias_p.
25450 (compute_points_to_sets): Compute whether a ptr is dereferenced
25451 in a local sbitmap.
25452 (process_constraint): Deal with &ANYTHING on the lhs, reject all
25453 other ADDRESSOF constraints on the lhs.
25454 (get_constraint_for_component_ref): Assert that we don't get
25455 ADDRESSOF constraints from the base of the reference.
25456 Properly generate UNKNOWN_OFFSET for DEREF if needed.
25457 (struct variable_info): Remove collapsed_to member.
25458 (get_varinfo_fc): Remove.
25459 (new_var_info): Do not set collapsed_to.
25460 (dump_constraint): Do not follow cycles.
25461 (dump_constraint_graph): Likewise.
25462 (build_pred_graph): Likewise.
25463 (build_succ_graph): Likewise.
25464 (rewrite_constraints): Likewise.
25465 (do_simple_structure_copy): Remove.
25466 (do_rhs_deref_structure_copy): Remove.
25467 (do_lhs_deref_structure_copy): Remove.
25468 (collapse_rest_of_var): Remove.
25469 (do_structure_copy): Re-implement.
25470 (pta_stats): New global variable.
25471 (dump_pta_stats): New function.
25472 (struct constraint_expr): Make offset signed.
25473 (UNKNOWN_OFFSET): Define special value.
25474 (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
25475 (solution_set_expand): New helper function split out from ...
25476 (do_sd_constraint): ... here.
25477 (solution_set_add): Handle UNKNOWN_OFFSET. Handle negative offsets.
25478 (do_ds_constraint): Likewise.
25479 (do_sd_constraint): Likewise. Do not special-case ESCAPED = *ESCAPED
25480 and CALLUSED = *CALLUSED.
25481 (set_union_with_increment): Make inc argument signed.
25482 (type_safe): Remove.
25483 (get_constraint_for_ptr_offset): Handle unknown and negative
25484 constant offsets.
25485 (first_vi_for_offset): Handle offsets before start. Bail
25486 out early for offsets beyond the variable extent.
25487 (first_or_preceding_vi_for_offset): New function.
25488 (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
25489 Together with ESCAPED = *ESCAPED this properly computes reachability.
25490 (find_what_var_points_to): New function.
25491 (find_what_p_points_to): Implement in terms of find_what_var_points_to.
25492 (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
25493 pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
25494 pt_solutions_intersect): New functions.
25495 (compute_call_used_vars): Remove.
25496 (compute_may_aliases): New main entry into PTA computation.
25497 * gimple.h (gimple_p): New typedef.
25498 (struct gimple_statement_base): Remove references_memory_p.
25499 (struct gimple_statement_with_memory_ops_base): Remove
25500 vdef_ops, vuse_ops, stores and loads members. Add vdef and vuse
25501 members.
25502 (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
25503 gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
25504 gimple_set_references_memory): Remove.
25505 (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
25506 gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
25507 New functions.
25508 * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
25509 (verify_expr): Allow RESULT_DECL.
25510 (gimple_duplicate_bb): Do not copy virtual operands.
25511 (gimple_duplicate_sese_region): Adjust.
25512 (gimple_duplicate_sese_tail): Likewise.
25513 (mark_virtual_ops_in_region): Remove.
25514 (move_sese_region_to_fn): Do not call it.
25515 * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
25516 and pass_simple_dse.
25517 (execute_function_todo): Handle TODO_update_address_taken,
25518 call execute_update_addresses_taken for TODO_rebuild_alias.
25519 (execute_todo): Adjust.
25520 (execute_one_pass): Init dump files early.
25521 * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
25522 call-clobbered.
25523 (create_general_new_stmt): Clear vops.
25524 * tree-ssa-reassoc.c (get_rank): Adjust.
25525 * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
25526 symbols for renaming.
25527 * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
25528 (PARAM_AVG_ALIASED_VOPS): Likewise.
25529 * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
25530 (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
7a715bba 25531 * tree-ssa-operands.c: Simplify for new virtual operand representation.
5006671f
RG
25532 (operand_build_cmp, copy_virtual_operands,
25533 create_ssa_artificial_load_stmt, add_to_addressable_set,
25534 gimple_add_to_addresses_taken): Remove public functions.
25535 (unlink_stmt_vdef): New function.
25536
457d1d00
AM
255372009-04-03 Alan Modra <amodra@bigpond.net.au>
25538
25539 * config.gcc (powerpc-*-linux*): Merge variants.
25540
e19da24c 255412009-04-02 Chao-ying Fu <fu@mips.com>
60839f5d 25542 James Grosbach <james.grosbach@microchip.com>
e19da24c
CF
25543
25544 * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
25545 num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
25546 cop0_sp_offset.
25547 (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
25548 keep_interrupts_masked_p, use_debug_exception_return_p.
25549 (mips_attribute_table): Add interrupt, use_shadow_register_set,
25550 keep_interrupts_masked, use_debug_exception_return.
25551 (mips_interrupt_type_p, mips_use_shadow_register_set_p,
25552 mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
25553 New functions.
25554 (mips_function_ok_for_sibcall): Return false for interrupt handlers.
25555 (mips_print_operand): Process COP0 registers to print $0 .. $31
25556 correctly for GAS to process.
25557 (mips_interrupt_extra_call_saved_reg_p): New function.
25558 (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
25559 extra registers.
25560 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
25561 (mips_compute_frame_info): Add supports for interrupt context that
25562 includes doubleword accumulators and COP0 registers.
25563 (mips_for_each_saved_acc): New function.
25564 (mips_for_each_saved_gpr_and_fpr): Change the function name from
25565 mips_for_each_saved_reg.
25566 (mips_save_reg): Save accumulators.
25567 (mips_kernel_reg_p): A new for_each_rtx callback.
25568 (mips_expand_prologue): Support interrupt handlers.
25569 (mips_restore_reg): Restore accumulators.
25570 (mips_expand_epilogue): Support interrupt handlers.
25571 (mips_can_use_return_insn): Return false for interrupt handlers.
25572 (mips_epilogue_uses): New function.
25573 * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
25574 UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
25575 (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
25576 cop0_move): New instructions.
25577 * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
25578 * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
25579 defines.
25580 (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
25581 New defines.
25582 (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
25583 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
25584 interrupt handlers, we use K0 as the temporary register.
25585 (EPILOGUE_USES): Change to a function call.
25586 * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
25587 handlers, we use K0 as the temporary register.
2ba9daa7 25588
e19da24c
CF
25589 * doc/extend.texi (Function Attributes): Document interrupt,
25590 use_shadow_register_set, keep_interrupts_masked,
25591 use_debug_exception_return for MIPS attributes.
25592
aa1ca044
AM
255932009-04-03 Alan Modra <amodra@bigpond.net.au>
25594
25595 * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
25596 Remove a number of t-files from tmake_file.
25597 * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
25598 * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
25599 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
25600 target_prototype, not TARGET_PROTOTYPE.
25601 (LINK_OS_GNU_SPEC): Define.
25602 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
25603 and darwin-ldoubdle.c.
25604
14fdc613
MM
256052009-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
25606
25607 PR driver/39293
25608 * gcc.c (save_temps_flag): Add support for -save-temps=obj.
25609 (cpp_options): Ditto.
25610 (default_compilers): Ditto.
25611 (display_help): Ditto.
25612 (process_command): Ditto.
25613 (do_spec_1): Ditto.
25614 (set_input): Use lbasename instead of duplicate code.
25615 (save_temps_prefix): New static for -save-temps=obj.
25616 (save_temps_length): Ditto.
2ba9daa7 25617
14fdc613
MM
25618 * doc/invoke.texi (-save-temps=obj): Document new variant to
25619 -save-temps switch.
25620
d3aa398e
JL
256212009-04-02 Jeff Law <law@redhat.com>
25622
25623 * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
25624 variable.
25625
83f0ccb8
L
256262009-04-02 H.J. Lu <hongjiu.lu@intel.com>
25627
25628 * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
25629 * configure: Regenerated.
25630
dcb6e951
RAE
256312009-04-02 Rafael Avila de Espindola <espindola@google.com>
25632
25633 * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
25634 share the argument list.
25635
d85478c2
RAE
256362009-04-02 Rafael Avila de Espindola <espindola@google.com>
25637
25638 Merge
25639
25640 2009-02-12 Diego Novillo <dnovillo@google.com>
25641
83f0ccb8
L
25642 * varpool.c (debug_varpool): New.
25643 * cgraph.h (debug_varpool): Declare.
d85478c2 25644
34f42a49
JH
256452009-04-02 Jan Hubicka <jh@suse.cz>
25646
25647 * passes.c (init_optimization_passes): Remove two copies of ehcleanup
25648 pass.
25649
a4747b4a
L
256502009-04-02 H.J. Lu <hongjiu.lu@intel.com>
25651
25652 * config/i386/i386.c (ix86_abi): Move initialization to ...
25653 (override_options): Here.
25654
63a9de54
CB
256552009-04-02 Christian Bruel <christian.bruel@st.com>
25656
25657 * config/sh/sh.c (sh_dwarf_register_span): New function.
25658 (TARGET_DWARF_REGISTER_SPAN): Define.
25659 * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
2ba9daa7 25660
2f0fa28e
IR
256612009-04-02 Ira Rosen <irar@il.ibm.com>
25662
25663 PR tree-optimization/39595
2ba9daa7 25664 * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
2f0fa28e
IR
25665 interleaved loads group is not greater than the SLP group size.
25666
bbf7ce11
RAE
256672009-04-02 Rafael Avila de Espindola <espindola@google.com>
25668
25669 * builtins.c (is_builtin_name): New.
25670 (called_as_built_in): Use is_builtin_name.
25671 * tree.h (is_builtin_name): New.
25672 * varasm.c (incorporeal_function_p): Use is_builtin_name
25673
47e4dfcf
AS
256742009-04-02 Andrew Stubbs <ams@codesourcery.com>
25675
25676 * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
25677
d0940d56
DS
256782009-04-02 Dodji Seketeli <dodji@redhat.com>
25679
25680 PR c++/26693
532bfb0a 25681 * c-decl.c (clone_underlying_type): Move this ...
d0940d56
DS
25682 * c-common.c (set_underlying_type): ... here.
25683 Also, make sure the function properly sets TYPE_STUB_DECL() on
25684 the newly created typedef variant type.
25685 * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
7a715bba
UB
25686 * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
25687 points.
d0940d56 25688
bf1cbdc6
RG
256892009-04-02 Richard Guenther <rguenther@suse.de>
25690
25691 PR tree-optimization/37221
25692 * tree-flow.h (degenerate_phi_result): Declare.
25693 * tree-ssa-dom.c (degenerate_phi_result): Export.
25694 * tree-scalar-evolution.c (analyze_initial_condition): If
25695 the initial condition is defined by a degenerate PHI node
25696 use the degenerate value.
25697
87cfb32c
EB
256982009-04-01 Eric Botcazou <ebotcazou@adacore.com>
25699
25700 PR rtl-optimization/39588
25701 * combine.c (merge_outer_ops): Do not set the constant when this
25702 is not necessary.
25703 (simplify_shift_const_1): Do not modify it either in this case.
25704
bbb6eae8
SB
257052009-04-01 Steven Bosscher <steven@gcc.gnu.org>
25706
25707 * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
25708 tuning is deprecated if -mtune value is set to an Itanium1 variant.
25709
839a3b8a
JJ
257102009-04-01 Janis Johnson <janis187@us.ibm.com>
25711
25712 PR c/29027
25713 * c-lex.c (interpret_float): Default (no suffix) is double.
25714
667e8acb
XDL
257152009-04-1 Xinliang David Li <davidxl@google.com>
25716
25717 * config/i386/i386.c (legitimate_constant_p): Recognize
25718 all one vector constant.
25719
60839f5d 257202009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 25721
60839f5d 25722 * config/vax/vax.c: Add #includes to silence warnings.
c4e75102
MT
25723 Change #include order to silence two warnings.
25724
60839f5d 257252009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 25726
60839f5d 25727 * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
c4e75102
MT
25728 (ASM_SPEC): Pass -k to the assembler for PIC code.
25729
60839f5d 257302009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 25731
60839f5d
EB
25732 * config.gcc: Add vax-*-linux* to the switch.
25733 * config/vax/linux.h: New file. (TARGET_VERSION,
c4e75102
MT
25734 TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
25735
60839f5d 257362009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 25737
60839f5d 25738 * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
c4e75102 25739 Use predicate macros instead of GET_CODE() == foo.
60839f5d 25740 * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
c4e75102
MT
25741 ashlsi3, rotrsi3, <unnamed>): Likewise.
25742
60839f5d 257432009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 25744
60839f5d 25745 * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
c4e75102 25746 jbbccihi, jbbccisi): Remova trailing whitespace.
60839f5d 25747 * config/vax/constraints.md: Likewise.
bd62d832 25748 * config/vax/elf.h (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
60839f5d
EB
25749 * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
25750 * config/vax/predicates.md: Likewise.
25751 * config/vax/vax.c (print_operand_address, vax_output_int_move,
c4e75102 25752 vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
60839f5d
EB
25753 * config/vax/vax.h: Likewise.
25754 * config/vax/vax.md (nonlocal_goto): Likewise.
c4e75102 25755
60839f5d 257562009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 25757
60839f5d 25758 * config/vax/vax.c (vax_float_literal, vax_output_int_move)
c4e75102
MT
25759 (indirectable_address_p, adjacent_operands_p): Add spaces around
25760 braces.
60839f5d 25761 * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
c4e75102 25762
60839f5d 257632009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 25764
60839f5d 25765 * config/vax/vax.c (legitimate_constant_address_p,
c4e75102
MT
25766 legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
25767 index_term_p, reg_plus_index_p, legitimate_address_p,
25768 vax_mode_dependent_address_p): Update comments to match functions
25769 modified by the recent int->bool conversion.
25770
60839f5d 257712009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 25772
60839f5d
EB
25773 * config/vax/builtins.md: Update copyright message.
25774 * config/vax/constraints.md: Likewise.
25775 * config/vax/netbsd-elf.h: Likewise.
25776 * config/vax/predicates.md: Likewise.
25777 * config/vax/vax-protos.h: Likewise.
25778 * config/vax/vax.c: Likewise.
25779 * config/vax/vax.h: Likewise.
25780 * config/vax/vax.md: Likewise.
25781 * config/vax/vax.opt: Likewise.
c4e75102 25782
60839f5d 257832009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 25784
60839f5d 25785 * config/vax/builtins.md (ffssi2, ffssi2_internal,
c4e75102 25786 sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
60839f5d
EB
25787 * config/vax/constraints.md (B, R): Likewise.
25788 * config/vax/predicates.md (external_memory_operand,
c4e75102 25789 nonimmediate_addsub_di_operand): Likewise.
60839f5d
EB
25790 * config/vax/vax.c (vax_output_int_add): Likewise.
25791 * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
c4e75102
MT
25792 untyped_call): Likewise.
25793
60839f5d 257942009-04-01 Matt Thomas <matt@3am-software.com>
c4e75102 25795
7a715bba
UB
25796 * config/vax/predicates.md: New file.
25797 (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
c4e75102
MT
25798 external_const_operand, nonsymbolic_operand, external_memory_operand,
25799 indirect_memory_operand, indexed_memory_operand,
25800 illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
25801 nonimmediate_addsub_di_operand, general_addsub_di_operand): New
25802 predicate.
7a715bba
UB
25803 * config/vax/constraints.md: New file.
25804 (Z0, U06, U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
25805 New constraint.
25806 * config/vax/builtins.md: New file.
25807 (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
25808 jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
25809 jbbccisi): Define.
c4e75102
MT
25810 * config/vax/vax.opt (mqmath): Add option.
25811 * config/vax/vax.md (isfx): Extend with DI.
25812 (VAXintQH, VAXintQHSD): Define.
25813 (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
25814 mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
25815 and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
25816 one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
25817 (movdi): Update constraints and use vax_output_int_move().
25818 (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
25819 movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
25820 pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
25821 nonlocal_goto): New.
25822 (mov<mode>): Extend accepted operand types.
25823 (subdi3_old): Rename from subdi3, change update constraints and use
25824 a new implementation.
60839f5d 25825 * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
c4e75102
MT
25826 (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
25827 MOVE_RATIO, CLEAR_RATIO): Define.
25828 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
25829 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
25830 (PRINT_OPERAND): Redefine using a function instead of inlined code.
60839f5d 25831 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
c4e75102
MT
25832 (split_quadword_operands): Make static and really allow variable
25833 splitting.
25834 (print_operand_address): Update for PIC generation.
25835 (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
25836 indexable_address_p, fixup_mathdi_operand,
25837 vax_expand_addsub_di_operands, adjacent_operands_p): New.
25838 (vax_float_literal, legitimate_constant_p,
25839 indirectable_constant_address_p, index_term_p,
25840 reg_plus_index_p): Return bool instead of int.
25841 (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
25842 where needed.
25843 (vax_output_int_move, vax_output_int_add): Extend to allow PIC
25844 generation.
25845 (vax_output_conditional_branch): Indent.
25846 (legitimate_constant_address_p, indirectable_constant_address_p,
25847 indirectable_address_p, nonindexed_address_p, legitimate_address_p,
25848 vax_mode_dependent_address_p): Return bool instead of int, update for
25849 PIC generation.
25850 * config/vax/vax-protos.h (legitimate_constant_address_p,
25851 legitimate_constant_p, legitimate_address_p,
25852 vax_mode_dependent_address_p): Change declaration to bool.
25853 (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
25854 vax_expand_addsub_di_operands, vax_output_int_subtract,
25855 vax_output_movmemsi): Declare.
25856 (split_quadword_operands, vax_float_literal): Delete declaration.
25857 * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
25858 * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
25859 VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
25860 ASM_OUTPUT_DWARF_PCREL): Define.
25861 (ASM_SPEC): Change definition to allow PIC generation.
25862
9332c6eb
L
258632009-04-01 Steve Ellcey <sje@cup.hp.com>
25864
25865 * doc/sourcebuild.texi: Update front-end requirements.
25866
d93e052c
JJ
258672009-04-01 Jakub Jelinek <jakub@redhat.com>
25868
25869 PR target/39226
25870 * config/rs6000/rs6000.md (andsi3_internal5_nomc,
25871 anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
25872 (booldi3_internal3): Use boolean_or_operator instead of
25873 boolean_operator.
25874
6ccb2a4a
JM
258752009-04-01 Joseph Myers <joseph@codesourcery.com>
25876
25877 PR c/39605
25878 * c-decl.c (grokdeclarator): Pedwarn for file-scope array
25879 declarator whose size is not an integer constant expression but
25880 folds to an integer constant, then treat it as a constant
25881 subsequently.
25882
299b87f8
RG
258832009-04-01 Richard Guenther <rguenther@suse.de>
25884
25885 * fold-const.c (fold_plusminus_mult_expr): Do not fold
25886 i * 4 + 2 to (i * 2 + 1) * 2.
25887
b85eb797
JJ
258882009-04-01 Jakub Jelinek <jakub@redhat.com>
25889
25890 PR c/37772
25891 * c-parser.c (c_parser_asm_statement): Skip until close paren and
25892 return if c_parser_asm_string_literal returned NULL.
25893
235e1fe8
NC
258942009-04-01 Nick Clifton <nickc@redhat.com>
25895
25896 * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
25897 already defined.
25898 * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
25899 * config/m32c/m32c-lib2.c: Remove unused typedefs. Rename the
25900 other typedefs to avoid conflicts with libgcc2.c. Define labels
25901 to gain 16-bit bit-manipulation functions from libgcc2.c and then
25902 include it.
25903 * config/m32c/m32c-lib2-trapv.c: New file. Define labels
25904 to gain 16-bit trapping arithmetic functions from libgcc2.c and
25905 then include it.
25906
d6868399
RAE
259072009-04-01 Rafael Avila de Espindola <espindola@google.com>
25908
7a715bba
UB
25909 * varasm.c (default_function_rodata_section): Declare DOT as
25910 const char*.
d6868399 25911
73d21f56 259122009-04-01 Kai Tietz <kai.tietz@onevision.com>
60839f5d 25913 Andrey Galkin <agalkin@hypercom.com>
73d21f56
KT
25914
25915 PR/39492
25916 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
25917 Make object_name unique for each process.
25918
03742a9b
JJ
259192009-04-01 Jakub Jelinek <jakub@redhat.com>
25920
25921 PR other/39591
25922 * omp-low.c (remove_exit_barrier): Don't optimize if there are any
25923 addressable variables in the parallel that could go out of scope while
25924 running queued tasks.
25925
4223ff5f
AS
259262009-04-01 Anatoly Sokolov <aesok@post.ru>
25927
25928 * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
25929 (CASE_VALUES_THRESHOLD): Redefine.
25930 * config/avr/avr.c (avr_override_options): Remove initialization of
25931 avr_case_values_threshold variable.
25932 (avr_case_values_threshold): Remove variable. Add new function.
25933 * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
25934 * config/avr/avr.opt (mno-tablejump): Remove option.
25935 * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
25936
e893f6f3
DD
259372009-04-01 DJ Delorie <dj@redhat.com>
25938
25939 * varasm.c (default_function_rodata_section): Don't assume
25940 anything about where the first '.' in the section name is.
25941
b246d100
AM
259422009-04-01 Alan Modra <amodra@bigpond.net.au>
25943
25944 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
25945 rs6000_emit_stack_tie.
25946
d3e37a9e
ILT
259472009-03-31 Ian Lance Taylor <iant@google.com>
25948
25949 * tree-eh.c (tree_remove_unreachable_handlers): Compare
25950 gimple_code with GIMPLE_RESX, not RESX.
25951
c1b61fca
JM
259522009-03-31 Joseph Myers <joseph@codesourcery.com>
25953
25954 * c-common.c (c_get_ident): New.
7a715bba 25955 (c_common_nodes_and_builtins): Call it for type names that may be NULL.
c1b61fca 25956
c2d2ad48
BE
259572009-04-01 Ben Elliston <bje@au.ibm.com>
25958
25959 * config/rs6000/sysv4.opt (msdata): Improve option description.
25960
13d1a6e7
SE
259612009-03-31 Steve Ellcey <sje@cup.hp.com>
25962
25963 * config/ia64/ia64.md (divsf3_internal_lat): Remove.
25964 (divdf3_internal_lat): Remove.
25965 (divxf3_internal_lat): Remove.
25966 (divxf3_internal_thr): Remove.
25967 (divxf): Use divxf3_internal.
25968 * config/ia64/div.md (divsf3_internal_lat): New.
25969 (divdf3_internal_lat): New.
25970 (divxf3_internal): New.
25971
207bf79d
JM
259722009-03-31 Joseph Myers <joseph@codesourcery.com>
25973
25974 PR c/448
25975 * Makefile.in (USE_GCC_STDINT): Define.
25976 (stmp-int-hdrs): Install stdint.h if applicable.
25977 * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
25978 if known.
25979 (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
25980 (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
25981 UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
25982 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
25983 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
25984 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
25985 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
25986 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
25987 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
25988 (c_common_nodes_and_builtins): Initialize
25989 underlying_wchar_type_node. Do not initialize
25990 signed_wchar_type_node or unsigned_wchar_type_node. Initialize
25991 nodes for new types.
25992 (c_stddef_cpp_builtins): Define macros for new types.
25993 * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
25994 Remove.
25995 (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
25996 CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
25997 CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
25998 CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
25999 CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
26000 CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
26001 CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
26002 CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
26003 CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
26004 (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
26005 (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
26006 int16_type_node, int32_type_node, int64_type_node,
26007 uint8_type_node, uint16_type_node, c_uint32_type_node,
26008 c_uint64_type_node, int_least8_type_node, int_least16_type_node,
26009 int_least32_type_node, int_least64_type_node,
26010 uint_least8_type_node, uint_least16_type_node,
26011 uint_least32_type_node, uint_least64_type_node,
26012 int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
26013 int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
26014 uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
26015 uintptr_type_node): Define.
26016 * c-cppbuiltin.c (builtin_define_constants,
26017 builtin_define_type_minmax): New.
26018 (builtin_define_stdint_macros): Define more macros.
26019 (c_cpp_builtins): Define more limit macros.
26020 (type_suffix): New.
26021 (builtin_define_type_max): Define in terms of
26022 builtin_define_type_minmax. Remove is_long parameter. All
26023 callers changed.
26024 * config.gcc (use_gcc_stdint): Define.
26025 (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
26026 Add newlib-stdint.h for generic targets.
26027 * config/glibc-stdint.h, config/newlib-stdint.h,
26028 ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
26029 * config/m32c/m32c.h (UINTPTR_TYPE): Define.
26030 * config/score/score.h (UINTPTR_TYPE): Define.
26031 * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
26032 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
26033 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
26034 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
26035 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
26036 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
26037 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
26038 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
26039 * config/spu/spu.h (STDINT_LONG32): Define.
26040 * configure.ac (use_gcc_stdint): Substitute.
26041 * configure: Regenerate.
26042 * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
26043 __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
26044 __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
26045 __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
26046 __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
26047 __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
26048 __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
26049 __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
26050 __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
26051 __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
26052 __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
26053 __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
26054 __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
26055 __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
26056 __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
26057 __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
26058 __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
26059 __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
26060 __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
26061 __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
26062 __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
26063 * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
26064 INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
26065 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
26066 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
26067 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
26068 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
26069 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
26070 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
26071
ed853664
BS
260722009-03-31 Bernd Schmidt <bernd.schmidt@analog.com>
26073
26074 * loop-iv.c (suitable_set_for_replacement): Renamed from
26075 simplify_using_assignment; changed to return bool and to accept new
26076 args DEST and SRC. Return true iff we find a source/destination pair
26077 that can be used to make a replacement, and fill SRC and DEST if so.
26078 Remove arg ALTERED. Don't deal with altered regs here. All callers
26079 changed.
26080 (simplify_using_initial_values): Deal with altered regs here and track
26081 more precisely the effect they have on the validity of our expression.
26082
1569e190
BS
26083 * loop-iv.c (simplify_using_condition): A condition of the form
26084 (EQ REG CONST) can be used to simply make a substitution.
26085 (simplify_using_initial_values): Keep track of conditions we have seen
26086 and keep using them to simplify new expressions, while applying the
26087 same substitutions to them as to the expression.
26088
1d1eb80c
BS
26089 * simplify-rtx.c (simplify_relational_operation_1): Simplify
26090 (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
26091 GEU/LTU reversed.
26092
28af33b0
BS
26093 * loop-iv.c (determine_max_iter): New arg OLD_NITER. All callers
26094 changed. Use this when trying to improve the upper bound.
26095 Generate the comparison by using simplify_gen_relational.
26096
b30321cd
BS
26097 * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
26098
60081874
BS
26099 * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
26100 functions.
2ba9daa7 26101 (simplify_using_assignment, simplify_using_initial_values): Call
60081874
BS
26102 replace_in_expr to make replacements. Call replace_single_def_regs
26103 once on the initial version of the expression.
26104
bebc6e07
RR
261052009-03-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26106
fcb82ab0 26107 PR target/27237
bebc6e07 26108 * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
2ba9daa7 26109
6b12efe9
RG
261102009-03-31 Richard Guenther <rguenther@suse.de>
26111
26112 PR middle-end/31029
26113 * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
26114 equality comparisons. Fold C - X CMP X if C % 2 == 1.
26115
108f6c2f
RG
261162009-03-31 Richard Guenther <rguenther@suse.de>
26117
26118 * tree.h (div_if_zero_remainder): Declare.
26119 * fold-const.c (div_if_zero_remainder): Export.
26120 * tree-ssa-forwprop.c
26121 (forward_propagate_addr_into_variable_array_index): Handle
26122 constant array index addition outside of the variable index.
26123
8f612190
JM
261242009-03-31 Joseph Myers <joseph@codesourcery.com>
26125
26126 PR target/39592
26127 * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
26128 define_splits, floatunssi<mode>2): Require x87 conversions from
26129 DImode to be permitted.
26130
47580d22
JM
261312009-03-31 Joseph Myers <joseph@codesourcery.com>
26132
26133 PR preprocessor/15638
26134 * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
26135
ba4d8f9d
RG
261362009-03-31 Richard Guenther <rguenther@suse.de>
26137
26138 PR middle-end/23401
26139 PR middle-end/27810
26140 * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
26141 (struct tree_decl_with_vis): Remove gimple_formal_temp member.
26142 * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
26143 a separate statement.
26144 * gimplify.c (pop_gimplify_context): Remove formal temp handling.
26145 (lookup_tmp_var): Likewise.
26146 (is_gimple_formal_tmp_or_call_rhs): Remove.
26147 (is_gimple_reg_or_call_rhs): Rename to ...
26148 (is_gimple_reg_rhs_or_call): ... this.
26149 (is_gimple_mem_or_call_rhs): Rename to ...
26150 (is_gimple_mem_rhs_or_call): ... this.
26151 (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call. Set
26152 DECL_GIMPLE_REG_P only if is_formal is true.
26153 (gimplify_compound_lval): Use is_gimple_reg. Remove workaround
26154 for non-proper post-modify expression gimplification.
26155 (gimplify_self_mod_expr): For post-modify expressions gimplify
26156 the lvalue to a minimal lvalue.
26157 (rhs_predicate_for): Remove formal temp case.
26158 (gimplify_modify_expr_rhs): Likewise.
26159 (gimplify_addr_expr): Use is_gimple_reg.
26160 (gimplify_expr): Remove formal temp cases.
26161 (gimple_regimplify_operands): Likewise.
26162 * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
26163 and FILTER_EXPR like constants.
26164 * gimple.c (walk_gimple_op): Fix val_only initialization, use
26165 is_gimple_reg.
26166 (is_gimple_formal_tmp_rhs): Remove.
26167 (is_gimple_reg_rhs): Remove special casing.
26168 (is_gimple_mem_rhs): Fix.
26169 (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
26170 (is_gimple_formal_tmp_var): Remove.
26171 (is_gimple_formal_tmp_reg): Likewise.
26172 (is_gimple_min_lval): Allow invariant component ref parts.
26173 * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
26174 is_gimple_formal_tmp_reg): Remove declarations.
26175 * tree-cfg.c (verify_expr): Verify that variables with address
26176 taken do not have DECL_GIMPLE_REG_P set.
26177 * tree-mudflap.c (mf_build_check_statement_for): Use
26178 force_gimple_operand instead of gimplify_expr.
26179
8de9b877
AZ
261802009-03-31 Ayal Zaks <zaks@il.ibm.com>
26181
26182 * modulo-sched.c (sms_schedule_by_order): Pass the actual
26183 schedulable rows to compute_split_row.
26184
b5e3caf2
BE
261852009-03-31 Ben Elliston <bje@au.ibm.com>
26186
26187 PR target/31635
26188 * config/rs6000/rs6000.c (rs6000_handle_option): Handle
26189 OPT_mvrsave.
26190
9752c4ad
AM
261912009-03-31 Alan Modra <amodra@bigpond.net.au>
26192
26193 * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
26194 * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
26195 * configure: Regenerate.
26196 * config.in: Regenerate.
26197 * config/rs6000/rs6000.opt (mtls-markers): Add.
26198 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
26199 * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
26200 (tls_ld_aix, tls_ld_sysv): Likewise.
26201 (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
26202 (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
26203
b597d1b6
AM
262042009-03-31 Alan Modra <amodra@bigpond.net.au>
26205
26206 * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
26207
a203a221
JH
262082009-03-30 Jan Hubicka <jh@suse.cz>
26209
b597d1b6
AM
26210 * tree-eh.c (make_eh_edges): Set probability 100% to first edge
26211 out of RESX.
26212 (tree_remove_unreachable_handlers): Cleanup EH predecestor
26213 detection and label handling.
a203a221 26214
5b0c0b2c
VM
262152009-03-30 Vladimir Makarov <vmakarov@redhat.com>
26216
26217 * ira-int.h (ira_allocno): Rename left_conflicts_num to
26218 left_conflicts_size.
26219 (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
26220 ALLOCNO_LEFT_CONFLICTS_SIZE.
26221
26222 * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
26223 remove_allocno_from_bucket_and_push,
26224 allocno_spill_priority_compare, push_allocnos_to_stack,
26225 setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
26226 instead of ALLOCNO_LEFT_CONFLICTS_NUM.
26227 (setup_allocno_left_conflicts_num): Ditto. Rename to
26228 setup_allocno_left_conflicts_size.
26229 (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
26230 instead of ALLOCNO_LEFT_CONFLICTS_NUM and
26231 setup_allocno_left_conflicts_size instead of
26232 setup_allocno_left_conflicts_num.
26233
26234 * ira-build.c (ira_create_allocno): Use
26235 ALLOCNO_LEFT_CONFLICTS_SIZE instead of
26236 ALLOCNO_LEFT_CONFLICTS_NUM.
2ba9daa7 26237
9a48a93f
VM
262382009-03-30 Vladimir Makarov <vmakarov@redhat.com>
26239
26240 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
26241 instead of DF_LR_OUT.
26242
26243 * ira-lives.c (process_bb_node_lives): Ditto.
26244
26245 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
26246 instead of DF_LR_{OUT,IN}.
26247
26248 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
26249
26250 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
26251
4c936d4f
JH
262522009-03-30 Jan Hubicka <jh@suse.cz>
26253
26254 * except.c (label_to_region_map): Fix thinko.
26255
f4d9f129
SE
262562009-03-30 Steve Ellcey <sje@cup.hp.com>
26257
26258 PR middle-end/38237
26259 * tree.h (tree_find_value): New declaration.
26260 * tree.c (tree_find_value): New function.
26261 * varasm.c (assemble_external): Avoid duplicate entries on lists.
26262
b3f27c15
JJ
262632009-03-30 Jakub Jelinek <jakub@redhat.com>
26264
26265 PR debug/39563
26266 * c-decl.c (struct c_binding): Add locus field.
26267 (bind): Add locus argument, set locus field from it.
26268 (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
26269 add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
26270 (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
26271 implicitly_declare, undeclared_variable, lookup_label,
26272 declare_label, c_make_fname_decl, c_builtin_function,
26273 c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
26274 bind callers.
26275
ad41bd84 262762009-03-30 H.J. Lu <hongjiu.lu@intel.com>
680e8a00
L
26277
26278 PR target/38781
26279 * config/i386/i386.c (classify_argument): Check total size of
26280 structure.
26281
133f9369
MJ
262822009-03-30 Martin Jambor <mjambor@suse.cz>
26283
26284 * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
26285 IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
26286 IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
26287 respectively.
26288
26289 * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
26290 seen_variable_array_ref while also traversing a union.
26291
26292 * tree-inline.c (optimize_inline_calls): Do not call
26293 cgraph_node_remove_callees.
26294 * cgraphbuild.c (remove_cgraph_callee_edges): New function.
26295 (pass_remove_cgraph_callee_edges): New variable.
26296 * passes.c (init_optimization_passes): Add
26297 pass_remove_cgraph_callee_edges after early inlining and before all
26298 late intraprocedural passes.
26299
26300 * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
26301
1190f2eb
PB
263022009-03-30 Paolo Bonzini <bonzini@gnu.org>
26303
26304 * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
26305 Fix typos in names.
26306
fedc1775
PB
263072009-03-30 Paolo Bonzini <bonzini@gnu.org>
26308
fcb82ab0
UB
26309 * combine.c (simplify_comparison): Use have_insn_for.
26310 * dojump.c (do_jump): Likewise.
fedc1775 26311
65c5ae8b
PB
263122009-03-30 Paolo Bonzini <bonzini@gnu.org>
26313
26314 * config/sparc/sparc.c (sparc_compare_emitted): Remove.
26315 (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
26316 sparc_compare_op0 like sparc_compare_emitted used to be handled.
26317 (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
26318 instead of sparc_compare_emitted.
26319 * config/sparc/sparc.h (sparc_compare_emitted): Remove.
26320 * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
26321 instead of sparc_compare_emitted.
26322
d25aa7ab
PB
263232009-03-30 Paolo Bonzini <bonzini@gnu.org>
26324
26325 * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
26326 enter/exit cfglayout mode.
26327 (pass_partition_block): Require it.
26328 * combine.c (find_single_use, reg_dead_at_p): Use CFG.
26329 (combine_instructions): Track basic blocks instead of labels.
26330 (update_cfg_for_uncondjump): New.
26331 (try_combine): Use it. Update jumps after rescanning.
26332 (pass_combine): Require PROP_cfglayout.
26333 * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
26334
9c9e26f5
PB
263352009-03-30 Paolo Bonzini <bonzini@gnu.org>
26336
fcb82ab0
UB
26337 * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
26338 Provide/destroy PROP_cfglayout respectively.
26339 * gcse.c (pass_jump_bypass, pass_gcse): Require it.
26340 * tree-pass.h (PROP_cfglayout): New.
9c9e26f5 26341
28ddeea1
PB
263422009-03-30 Paolo Bonzini <bonzini@gnu.org>
26343
26344 * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
26345 fold_convert_const_fixed_from_fixed,
26346 fold_convert_const_fixed_from_int,
26347 fold_convert_const_fixed_from_real, fold_negate_const): Do not
26348 set TREE_CONSTANT_OVERFLOW.
26349 * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
26350 * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
26351
ebfd146a
IR
263522009-03-30 Ira Rosen <irar@il.ibm.com>
26353
26354 * tree-vect-loop-manip.c: New file.
26355 * tree-vectorizer.c: Update documentation and included files.
26356 (vect_loop_location): Make extern.
26357 (rename_use_op): Move to tree-vect-loop-manip.c
2ba9daa7
AS
26358 (rename_variables_in_bb, rename_variables_in_loop,
26359 slpeel_update_phis_for_duplicate_loop,
ebfd146a
IR
26360 slpeel_update_phi_nodes_for_guard1,
26361 slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
26362 slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
26363 slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
2ba9daa7 26364 set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
ebfd146a
IR
26365 find_loop_location): Likewise.
26366 (new_stmt_vec_info): Move to tree-vect-stmts.c.
26367 (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
26368 get_vectype_for_scalar_type, vect_is_simple_use,
26369 supportable_widening_operation, supportable_narrowing_operation):
26370 Likewise.
26371 (bb_in_loop_p): Move to tree-vect-loop.c.
2ba9daa7
AS
26372 (new_loop_vec_info, destroy_loop_vec_info,
26373 reduction_code_for_scalar_code, report_vect_op,
ebfd146a
IR
26374 vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
26375 (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
26376 (vect_supportable_dr_alignment): Likewise.
26377 * tree-vectorizer.h (tree-data-ref.h): Include.
26378 (vect_loop_location): Declare.
26379 Reorganize function declarations according to the new file structure.
26380 * tree-vect-loop.c: New file.
2ba9daa7 26381 * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
ebfd146a
IR
26382 tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
26383 * tree-vect-data-refs.c: New file.
26384 * tree-vect-patterns.c (timevar.h): Don't include.
26385 * tree-vect-stmts.c: New file.
2ba9daa7 26386 * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
ebfd146a 26387 tree-vect-slp.c, tree-vect-loop.c.
2ba9daa7
AS
26388 * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
26389 tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
ebfd146a
IR
26390 tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
26391 (tree-vect-analyze.o): Remove.
26392 (tree-vect-transform.o): Likewise.
26393 (tree-vect-data-refs.o): Add rule.
2ba9daa7 26394 (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
ebfd146a
IR
26395 tree-vect-slp.o): Likewise.
26396 (tree-vect-patterns.o): Remove redundant dependencies.
26397 (tree-vectorizer.o): Likewise.
26398 * tree-vect-slp.c: New file.
26399
40a1cfba
RW
264002009-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26401
26402 * optc-gen.awk: Warn if an option flag has multiple different
26403 help strings.
26404
a9a7a9a2
SP
264052009-03-30 Sebastian Pop <sebastian.pop@amd.com>
26406
26407 * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
26408 -floop-block): Document dependences on PPL, CLooG and Graphite.
26409
8ce94e44
JM
264102009-03-30 Joseph Myers <joseph@codesourcery.com>
26411
26412 PR rtl-optimization/323
26413 * c-common.c (c_fully_fold, convert_and_check,
26414 c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
26415 (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
26416 * c-common.def (EXCESS_PRECISION_EXPR): New.
26417 * c-cppbuiltin.c (builtin_define_float_constants): Define
26418 constants with enough digits for long double.
26419 * c-lex.c (interpret_float): Interpret constant with excess
26420 precision where appropriate.
26421 * c-opts.c (c_common_post_options): Set
26422 flag_excess_precision_cmdline. Give an error for
26423 -fexcess-precision=standard for C++ for processors where the
26424 option is significant.
26425 * c-parser.c (c_parser_conditional_expression): Handle excess
26426 precision in condition.
26427 * c-typeck.c (convert_arguments): Handle arguments with excess
26428 precision.
26429 (build_unary_op): Move excess precision outside operation.
26430 (build_conditional_expr): Likewise.
26431 (build_compound_expr): Likewise.
26432 (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
26433 (build_modify_expr): Handle excess precision in RHS.
26434 (convert_for_assignment): Handle excess precision in converted
26435 value.
26436 (digest_init, output_init_element, process_init_element): Handle
26437 excess precision in initializer.
26438 (c_finish_return): Handle excess precision in return value.
26439 (build_binary_op): Handle excess precision in operands and add
26440 excess precision as needed for operation.
26441 * common.opt (-fexcess-precision=): New option.
26442 * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
26443 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
26444 For standard excess precision, output explicit conversion to and
26445 truncation from XFmode.
26446 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
26447 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
26448 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
26449 define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
26450 define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
26451 floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
26452 divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
26453 *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
26454 *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
26455 define_splits, sqrt<mode>2): Disable where appropriate for
26456 standard excess precision.
26457 * convert.c (convert_to_real): Do not shorten arithmetic to type
26458 for which excess precision would be used.
26459 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
26460 * doc/invoke.texi (-fexcess-precision=): Document option.
26461 (-mfpmath=): Correct index entry.
26462 * flags.h (enum excess_precision, flag_excess_precision_cmdline,
26463 flag_excess_precision): New.
26464 * langhooks.c (lhd_post_options): Set
26465 flag_excess_precision_cmdline.
26466 * opts.c (common_handle_option): Handle -fexcess-precision=.
26467 * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
26468 init_excess_precision): New.
26469 (lang_dependent_init_target): Call init_excess_precision.
26470 * tree.c (excess_precision_type): New.
26471 * tree.h (excess_precision_type): Declare.
26472
1e57bf47
JM
264732009-03-30 Joseph Myers <joseph@codesourcery.com>
26474
26475 PR c/35235
26476 * c-typeck.c (build_component_ref): Do not copy qualifiers from
26477 non-lvalue to component.
26478
148e4216
JM
264792009-03-29 Joseph Myers <joseph@codesourcery.com>
26480
26481 PR preprocessor/34695
26482 * Makefile.in (c-opts.o): Depend on c-tree.h.
26483 * c-common.c: Move down include of diagnostic.h.
26484 (done_lexing, c_cpp_error): New.
26485 * c-common.h (done_lexing): Declare.
26486 * c-decl.c (c_write_global_declarations): Don't check cpp_errors
26487 (parse_in).
26488 * c-opts.c: Include c-tree.h.
26489 (c_common_init_options): Set preprocessor error callback.
26490 (c_common_handle_option): Do not set preprocessor
26491 inhibit_warnings, warnings_are_errors, warn_system_headers,
26492 pedantic_errors or inhibit_warnings flags.
26493 (c_common_post_options): Do not check cpp_errors (parse_in).
26494 (c_common_finish): Do not output dependencies if there were
26495 errors. Do not check return value of cpp_finish.
26496 * c-ppoutput.c (pp_file_change): Set input_location.
26497 * c-tree.h (c_cpp_error): Declare.
26498 * diagnostic.c (diagnostic_set_info_translated): Also initialize
26499 override_column.
26500 (diagnostic_build_prefix): Check override_column.
26501 * diagnostic.h (diagnostic_info): Add override_column field.
26502 (diagnostic_override_column): Define.
26503
2ec5deb5
PB
265042009-03-28 Paolo Bonzini <bonzini@gnu.org>
26505
ba20e309
UB
26506 * c-common.c (c_expand_expr, c_staticp): Remove.
26507 * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
26508 * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
26509 COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
26510 * c-gimplify.c (gimplify_compound_literal_expr,
26511 optimize_compound_literals_in_ctor): Remove.
26512 (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
26513 * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
26514 * c-semantics.c (emit_local_var): Remove.
26515
26516 * langhooks-def.h (lhd_expand_expr): Remove.
26517 * langhooks.c (lhd_expand_expr): Remove.
26518 * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
26519
26520 * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
26521 handling from c-semantics.c; don't call into langhook.
26522 (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
26523 * gimplify.c (gimplify_compound_literal_expr,
26524 optimize_compound_literals_in_ctor): Move from c-gimplify.c.
26525 (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
26526 (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
26527 as was done in c-gimplify.c.
26528 * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
26529 * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
26530 Move from c-common.h.
26531 * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
2ec5deb5
PB
26532
26533 * tree.c (staticp): Do not call langhook.
26534 * langhooks.c (lhd_staticp): Delete.
26535 * langhooks-def.h (lhd_staticp): Delete prototype.
26536 (LANG_HOOKS_STATICP): Delete.
26537 (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
26538
ba20e309
UB
26539 * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
26540 instead of DECL_STMTs.
2ec5deb5 26541
928c19bb
JM
265422009-03-29 Joseph Myers <joseph@codesourcery.com>
26543
26544 PR c/456
26545 PR c/5675
26546 PR c/19976
26547 PR c/29116
26548 PR c/31871
26549 PR c/35198
26550 * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
26551 void_type_node.
26552 (fold_call_expr): Return a NOP_EXPR from folding rather than the
26553 contained expression.
ba20e309 26554 * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
928c19bb
JM
26555 (c_common_truthvalue_conversion): Use c_save_expr. Do not fold
26556 conditional expressions for C.
26557 (decl_constant_value_for_optimization): Move from
ba20e309 26558 decl_constant_value_for_broken_optimization in c-typeck.c. Check
928c19bb
JM
26559 whether optimizing and that the expression is a VAR_DECL not of
26560 array type instead of doing such checks in the caller. Do not
26561 check pedantic. Call gcc_unreachable for C++.
26562 * c-common.def (C_MAYBE_CONST_EXPR): New.
26563 * c-common.h (c_fully_fold, c_save_expr,
26564 decl_constant_value_for_optimization): New prototypes.
26565 (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
26566 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
26567 EXPR_INT_CONST_OPERANDS): Define.
26568 * c-convert.c (convert): Strip nops from expression.
26569 * c-decl.c (groktypename): Take extra parameters expr and
26570 expr_const_operands. Update call to grokdeclarator.
26571 (start_decl): Update call to grokdeclarator. Add statement for
26572 expressions used in type of decl.
26573 (grokparm): Update call to grokdeclarator.
26574 (push_parm_decl): Update call to grokdeclarator.
26575 (build_compound_literal): Add parameter non_const and build a
26576 C_MAYBE_COSNT_EXPR if applicable.
26577 (grokdeclarator): Take extra parameters expr and
26578 expr_const_operands. Track expressions used in declaration
26579 specifiers and declarators. Fold array sizes and track whether
26580 they are constant expressions and whether they are integer
26581 constant expressions.
26582 (parser_xref_tag): Set expr and expr_const_operands fields in
26583 return value.
26584 (grokfield): Update call to grokdeclarator.
26585 (start_function): Update call to grokdeclarator.
26586 (build_null_declspecs): Set expr and expr_const_operands fields in
26587 return value.
26588 (declspecs_add_type): Handle expressions in typeof specifiers.
26589 * c-parser.c (c_parser_declspecs): Set expr and
26590 expr_const_operands fields for declaration specifiers.
26591 (c_parser_enum_specifier): Likewise.
26592 (c_parser_struct_or_union_specifier): Likewise.
26593 (c_parser_typeof_specifier): Likewise. Update call to
26594 groktypename. Fold expression as needed. Return expressions with
26595 type instead of adding statements.
26596 (c_parser_attributes): Update calls to c_parser_expr_list.
26597 (c_parser_statement_after_labels): Fold expression before passing
26598 to objc_build_throw_stmt.
26599 (c_parser_condition): Fold expression.
26600 (c_parser_asm_operands): Fold expression.
26601 (c_parser_conditional_expression): Use c_save_expr. Update call
26602 to build_conditional_expr.
26603 (c_parser_alignof_expression): Update call to groktypename.
26604 (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
26605 original_code. Fold expression argument of va_arg. Create
26606 C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
26607 argument to va_arg. Update calls to groktypename. Fold array
26608 index for offsetof. Verify that first argument to
26609 __builtin_choose_expr has integer type.
26610 (c_parser_postfix_expression_after_paren_type): Update calls to
26611 groktypename and build_compound_literal. Handle expressions with
26612 side effects in type name.
26613 (c_parser_postfix_expression_after_primary): Update call to
26614 c_parser_expr_list. Set original_code for calls to
26615 __builtin_constant_p.
26616 (c_parser_expr_list): Take extra parameter fold_p. Fold
26617 expressions if requested.
26618 (c_parser_objc_type_name): Update call to groktypename.
26619 (c_parser_objc_synchronized_statement): Fold expression.
26620 (c_parser_objc_receiver): Fold expression.
26621 (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
26622 (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
26623 c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
26624 * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
26625 (struct c_typespec): Add elements expr and expr_const_operands.
26626 (struct c_declspecs): Add elements expr and expr_const_operands.
26627 (groktypename, build_conditional_expr, build_compound_literal):
26628 Update prototypes.
26629 (in_late_binary_op): Declare.
26630 * c-typeck.c (note_integer_operands): New function.
26631 (in_late_binary_op): New variable.
26632 (decl_constant_value_for_broken_optimization): Move to c-common.c
26633 and rename to decl_constant_value_for_optimization.
26634 (default_function_array_conversion): Do not strip nops.
26635 (default_conversion): Do not call
26636 decl_constant_value_for_broken_optimization.
26637 (build_array_ref): Do not fold result.
26638 (c_expr_sizeof_expr): Fold operand. Use C_MAYBE_CONST_EXPR for
26639 result when operand is a VLA.
26640 (c_expr_sizeof_type): Update call to groktypename. Handle
26641 expressions included in type name. Use C_MAYBE_CONST_EXPR for
26642 result when operand names a VLA type.
26643 (build_function_call): Update call to build_compound_literal.
26644 Only fold result for calls to __builtin_* functions. Strip
26645 NOP_EXPR from INTEGER_CST returned from such functions. Fold
26646 the function designator.
26647 (convert_arguments): Fold arguments. Update call to
26648 convert_for_assignment.
26649 (build_unary_op): Handle increment and decrement of
26650 C_MAYBE_CONST_EXPR. Move lvalue checks for increment and
26651 decrement earlier. Fold operand of increment and decrement.
26652 Handle address of C_MAYBE_CONST_EXPR. Only fold expression being
26653 built for integer operand. Wrap returns that are INTEGER_CSTs
26654 without being integer constant expressions or that have integer
26655 constant operands without being INTEGER_CSTs.
26656 (lvalue_p): Handle C_MAYBE_CONST_EXPR.
26657 (build_conditional_expr): Add operand ifexp_bcp. Track whether
26658 result is an integer constant expression or can be used in
26659 unevaluated parts of one and avoid folding and wrap as
26660 appropriate. Fold operands before possibly doing -Wsign-compare
26661 warnings.
26662 (build_compound_expr): Wrap result for C99 if operands can be used
26663 in integer constant expressions.
26664 (build_c_cast): Update call to digest_init. Do not ignore
26665 overflow from casting floating-point constants to integers. Wrap
26666 results that could be confused with integer constant expressions,
26667 null pointer constants or floating-point constants.
26668 (c_cast_expr): Update call to groktypename. Handle expressions
26669 included in type name.
26670 (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR. Fold
26671 lhs inside possible SAVE_EXPR. Fold RHS before assignment.
26672 Update calls to convert_for_assignment.
26673 (convert_for_assignment): Take new parameter
26674 null_pointer_constant. Do not strip nops or call
26675 decl_constant_value_for_broken_optimization. Set
26676 in_late_binary_op for conversions to boolean.
26677 (store_init_value): Update call to digest_init.
26678 (digest_init): Take new parameter null_pointer_constant. Do not
26679 call decl_constant_value_for_broken_optimization. pedwarn for
26680 initializers not constant expressions. Update calls to
26681 convert_for_assignment.
26682 (constructor_nonconst): New.
26683 (struct constructor_stack): Add nonconst element.
26684 (really_start_incremental_init, push_init_level, pop_init_level):
26685 Handle constructor_nonconst and nonconst element.
26686 (set_init_index): Call constant_expression_warning for array
26687 designators.
26688 (output_init_element): Fold value. Set constructor_nonconst as
26689 applicable. pedwarn for initializers not constant expressions.
26690 Update call to digest_init. Call constant_expression_warning
26691 where constant initializers are required.
26692 (process_init_element): Use c_save_expr.
26693 (c_finish_goto_ptr): Fold expression.
26694 (c_finish_return): Fold return value. Update call to
26695 convert_for_assignment.
26696 (c_start_case): Fold switch expression.
26697 (c_process_expr_stmt): Fold expression.
26698 (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
ba20e309 26699 ensure statement expression is not evaluated in constant expression.
928c19bb
JM
26700 (build_binary_op): Track whether results are integer constant
26701 expressions or may occur in such, disable folding and wrap results
26702 as applicable. Fold operands for -Wsign-compare warnings unless
26703 in_late_binary_op.
26704 (c_objc_common_truthvalue_conversion): Handle results folded to
26705 integer constants that are not integer constant expressions.
26706 * doc/extend.texi: Document when typeof operands are evaluated,
26707 that condition of __builtin_choose_expr is an integer constant
26708 expression, and more about use of __builtin_constant_p in
26709 initializers.
26710
5babbcc0
RG
267112009-03-29 Richard Guenther <rguenther@suse.de>
26712
26713 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
26714 propagate addresses of array references.
26715
0340f2ba
SB
267162009-03-29 Steven Bosscher <steven@gcc.gnu.org>
26717
26718 * regmove.c (perhaps_ends_bb_p): Remove.
26719 (optimize_reg_copy_1): Don't call perhaps_ends_bb_p. Get basic block
26720 from INSN and check that the main loop stays within that basic block.
26721 (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
26722 (regmove_forward_pass): Split out from regmove_optimize. Use
26723 FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
26724 (regmove_backward_pass): Split out from regmove_optimize. Use
26725 FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
26726 (regmove_optimize): Simplify.
26727
eeae74a1
L
267282009-03-29 H.J. Lu <hongjiu.lu@intel.com>
26729
26730 PR target/39545
26731 * config/i386/i386.c (classify_argument): Ignore flexible array
26732 member in struct and warn ABI change.
26733
a24078b2
L
267342009-03-29 H.J. Lu <hongjiu.lu@intel.com>
26735
26736 * config/i386/i386-protos.h (ix86_agi_dependent): New.
26737
26738 * config/i386/i386.c (ix86_agi_dependent): Rewrite.
26739 (ix86_adjust_cost): Updated.
26740
a8da523f
JH
267412009-03-29 Jan Hubicka <jh@suse.cz>
26742
26743 PR middle-end/28850
26744 * tree-pass.h (pass_cleanup_eh): New function.
26745 (remove_unreachable_regions): Break code handling RTL
26746 to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
26747 that can not be reached by runtime.
26748 (can_be_reached_by_runtime): New function.
26749 (label_to_region_map): New function.
26750 (num_eh_regions): New function.
26751 (rtl_remove_unreachable_regions): New function.
26752 (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
26753 (remove_eh_region): New function.
26754 * except.h: Include sbitmap and vecprim.
26755 (remove_eh_region, remove_unreachable_regions, label_to_region_map,
26756 num_eh_regions): Declare.
26757 * passes.c (init_optimization_passes): Schedule cleanup_eh.
ba20e309 26758 * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
a8da523f
JH
26759 * tree-eh.c (tree_remove_unreachable_handlers): New function.
26760 (tree_empty_eh_handler_p): New function.
26761 (cleanup_empty_eh): New function.
26762 (cleanup_eh): New function.
26763 (pass_cleanup_eh): New function.
26764
98f358e5
JH
267652009-03-29 Jan Hubicka <jh@suse.cz>
26766
26767 * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
26768 for removed regions.
26769
13a9fa44
JH
267702009-03-29 Jan Hubicka <jh@suse.cz>
26771
26772 * except.c (dump_eh_tree): Dump all datastructures.
26773
e38cf733
JH
267742009-03-29 Jan Hubicka <jh@suse.cz>
26775
26776 * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
26777 (duplicate_eh_regions_1): Likewise.
26778 (duplicate_eh_regions): Likewise; cleanup code gorwing the region
26779 vector; call EH verification.
26780 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
26781 Be ready for region being removed.
26782
12802c2b
JH
267832009-03-29 Jan Hubicka <jh@suse.cz>
26784
26785 * bitmap.c (bitmap_last_set_bit): New function.
26786 * bitmap.h (bitmap_last_set_bit): Declare.
26787
4ea80a41
DA
267882009-03-29 David Ayers <ayers@fsfe.org>
26789
26790 PR objc/27377
26791 * c-typeck.c (build_conditional_expr): Emit ObjC warnings
26792 by calling objc_compare_types and surpress warnings about
26793 incompatible C pointers that are compatible ObjC pointers.
2ba9daa7 26794
4ea80a41 267952009-03-29 Adam Nemet <anemet@caviumnetworks.com>
3dc9eaa6
AN
26796
26797 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
26798 call initialize_inline_failed.
26799 (initialize_inline_failed): Move it from here ...
26800 * cgraph.c (initialize_inline_failed): ... to here.
26801 (cgraph_create_edge): Call initialize_inline_failed rather than
26802 setting inline_failed directly.
26803
7fb0ee07
BE
268042009-03-29 Ben Elliston <bje@au.ibm.com>
26805
26806 PR target/32542
26807 * sysv4.opt (msdata): Improve comment.
26808 * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
26809 * sysv4.h (SVR4_ASM_SPEC): Likewise.
26810
0be77bf2
BE
268112009-03-29 Ben Elliston <bje@au.ibm.com>
26812
26813 PR target/30451
26814 * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
26815 load and store attributes.
26816
593812b6
BE
268172009-03-29 Ben Elliston <bje@au.ibm.com>
26818
26819 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
26820 (ix86_init_builtins): Add built-in function __builtin_huge_valq.
26821 (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
26822 * doc/extend.texi (X86 Built-in Functions): Add index entries for
26823 __builtin_infq and __builtin_huge_valq.
26824
8272d11d
AS
268252009-03-28 Anatoly Sokolov <aesok@post.ru>
26826
26827 * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
26828 atmega8m1 devices.
26829 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
26830 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
26831
74fe548b
XDL
268322009-03-28 Xinliang David Li <davidxl@google.com>
26833
2ba9daa7 26834 * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
74fe548b
XDL
26835 (do_dbg_cnt): New function.
26836
33977f81
JH
268372009-03-28 Jan Hubicka <jh@suse.cz>
26838
26839 Merge from pretty-ipa:
26840
26841 2009-03-27 Jan Hubicka <jh@suse.cz>
ba20e309 26842
33977f81
JH
26843 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
26844 * tree-pass.h (function_called_by_processed_nodes_p): Declare.
26845 * passes.c (function_called_by_processed_nodes_p): New.
26846 * ipa-pure-const.c (check_call): Fix handling of operands.
26847 (analyze_function): Dump debug output for skipped bodies.
26848 (local_pure_const): Use function_called_by_processed_nodes_p.
26849 * dwarf2out.c (reference_to_unused): Use output.
26850 * passes.c (do_per_function_toporder): Likewise.
26851
26852 2008-11-12 Jan Hubicka <jh@suse.cz>
26853
26854 * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
26855 * ipa-pure-const.c (funct_state_d): Add can throw field; make
26856 state_set_in_source enum
26857 (check_decl): Ignore memory tags; do not set fake looping flags;
26858 dump diagnostics.
26859 (check_operand, check_tree, check_rhs_var, check_lhs_var,
26860 get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
26861 (check_call, analyze_function): Rewrite.
26862 (check_stmt): New.
26863 (add_new_function): Update call of analyze_function.
26864 (generate_summary): Add call of analyze_function.
26865 (propagate): Propagate can_throw; handle state_set_in_source correctly.
26866 (local_pure_const): New function.
26867 (pass_local_pure_const): New pass.
26868 * ipa-inline.c (inline_transform): Set after_inlining.
26869 * tree-eh.c (stmt_can_throw_external): New.
26870 * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
26871 work with aliasing built.
26872 * tree-flow.h (stmt_can_throw_external): New.
26873 * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
26874 and local pure/const pass in early and late optimization queue.
ba20e309 26875
617f3897
MJ
268762009-03-28 Martin Jambor <mjambor@suse.cz>
26877
26878 * fold-const.c (get_pointer_modulus_and_residue): New parameter
26879 allow_func_align.
26880 (fold_binary): Allow function decl aligment consideration is the
26881 second argument is integer constant one.
26882 * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
26883 (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
26884 with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
26885
fe89fbc5
JH
268862009-03-28 Jan Hubicka <jh@suse.cz>
26887
26888 * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
26889 * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
26890 * function.h (rtl_data): Add nothrow flag.
26891 * except.c (set_nothrow_function_flags): Use crtl->nothrow;
26892 set DECL_NOTHROW for AVAILABLE functions.
26893
574872ff
JJ
268942009-03-28 Jakub Jelinek <jakub@redhat.com>
26895
b3bf8855
JJ
26896 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
26897 following vector keyword has expansion starting with pixel or bool
26898 keyword, expand vector to __vector and pixel or bool to __pixel or
26899 __bool.
26900
574872ff
JJ
26901 PR c++/39554
26902 * opts.c (warning_disallowed_functions, warn_disallowed_functions,
26903 warn_if_disallowed_function_p): Removed.
26904 (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
26905 * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
26906 warning_if_disallowed_function_p.
26907 * flags.h (warn_if_disallowed_function_p,
26908 warn_disallowed_functions): Removed.
26909 * common.opt (Wdisallowed-function-list=): Removed.
26910 * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
26911
b005da11
RG
269122009-03-28 Richard Guenther <rguenther@suse.de>
26913
26914 PR tree-optimization/38723
26915 * tree-ssa-pre.c (compute_avail): Add all default definitions to
26916 the entry block.
26917
1de812a6
JH
269182009-03-28 Jan Hubicka <jh@suse.cz>
26919
26920 * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
26921 test introduced by my previous patch.
26922
fbb789d4
RG
269232009-03-28 Richard Guenther <rguenther@suse.de>
26924
26925 * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
26926 the PHIs value undefined.
26927
6f1873a1
JH
269282009-03-28 Jan Hubicka <jh@suse.cz>
26929
26930 * tree-pass.h (pass_fixup_cfg): New pass.
26931 * ipa-inline.c (inline_transform): Set
26932 always_inline_functions_inlined/after_inlining.
26933 * tree-optimize.c (execute_fixup_cfg): Do not set them here.
26934 (pass_fixup_cfg): New pass.
26935 * passes.c (init_optimization_passes): Add fixup_cfg.
26936
17021bc8
RG
269372009-03-28 Richard Guenther <rguenther@suse.de>
26938
26939 PR tree-optimization/38458
26940 * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
26941 argument use the arguments copy-of value.
26942
e8114fba
RG
269432009-03-28 Richard Guenther <rguenther@suse.de>
26944
26945 PR tree-optimization/38180
26946 * tree-ssa-ccp.c (get_default_value): Simplify.
26947 (likely_value): Likewise.
26948 (surely_varying_stmt_p): Properly handle VOP case.
26949 (ccp_initialize): Likewise.
26950 (ccp_fold): Handle propagating through *&.
26951 (fold_const_aggregate_ref): Also handle decls.
26952
257eb6e3
JH
269532009-03-28 Jan Hubicka <jh@suse.cz>
26954
26955 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
26956 * cgraph.h (cgraph_node): Likewise.
26957 * cgraphunit.c (cgraph_process_new_functions): Set process flag.
26958 (cgraph_reset_node): Use process flag.
26959 (cgraph_mark_functions_to_output): Likewise.
26960 (cgraph_expand_function): Likewise.
26961 (cgraph_expand_all_functions): Likewise.
26962 (cgraph_output_in_order): Likewise.
26963 * dwarf2out.c (reference_to_unused): Likewise.
26964 * passes.c do_per_function_toporder): Likewise.
26965
61a05df1
JH
269662009-03-28 Jan Hubicka <jh@suse.cz>
26967
26968 Bring from lto-branch:
ba20e309 26969
61a05df1
JH
26970 2008-09-03 Doug Kwan <dougkwan@google.com>
26971
26972 * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
26973 enums instead of reason strings.
26974 * cgraph.c (cgraph_create_edge): Same.
26975 (cgraph_inline_failed_string): New function.
26976 * cgraph.h (cgraph_inline_failed_t): New enum type.
26977 (cgraph_inline_failed_string): New prototype.
26978 (struct cgraph_edge): Change type of INLINED_FAILED from constant
26979 char pointer to cgraph_inline_failed_t.
26980 (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
26981 (cgraph_default_inline_p): Ditto.
60839f5d 26982 * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
61a05df1
JH
26983 to cgraph_inline_failed_t pointer.
26984 * cif-code.def: New file.
26985 * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
26986 reason string.
26987 (cgraph_check_inline_limits): Change type of REASON to pointer to
26988 cgraph_inline_failed_t. Replace reason strings with enums.
26989 (cgraph_default_inline_p): Ditto.
26990 (cgraph_recursive_inlining_p): Ditto.
26991 (update_caller_keys): Change type of FAILED_REASON to
26992 cgraph_inline_failed_t.
26993 (cgraph_set_inline_failed): Change type of REASON to pointer to
26994 cgraph_inline_failed_t. Call cgraph_inline_failed_string to
26995 convert enums to strings for text output.
26996 (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
26997 to be of type cgraph_inline_failed_t. Replace reason strings with
26998 enums. Call cgraph_inline_failed_string to covert enums
26999 to strings for text output.
27000 (cgraph_decide_inlining): Replace reason strings with enums.
27001 (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
27002 to cgraph_inline_failed_t type. Call cgraph_inline_failed_string
27003 for text output.
27004 * tree-inline.c (expand_call_inline): Change type of REASON
27005 to cgraph_inline_failed_t. Replace reason strings with enums.
27006 Call cgraph_inline_failed_string for text output.
27007 * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
27008 (cgraph.o): Ditto.
27009
144e8aac
JH
270102009-03-28 Jan Hubicka <jh@suse.cz>
27011
27012 * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
27013 cgraph_clone_node): Remove master clone handling.
27014 (cgraph_is_master_clone, cgraph_master_clone): Remove.
27015 * cgraph.h (master_clone): Remove.
27016 (cgraph_is_master_clone, cgraph_master_clone): Remove.
27017 * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
27018 (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
27019
4a371c8d
JH
270202009-03-28 Jan Hubicka <jh@suse.cz>
27021
27022 * cgraph.c (cgraph_function_body_availability): Functions declared
27023 inline are always safe to assume that it is not going to be replaced.
27024
6cdb0ee3
RG
270252009-03-28 Richard Guenther <rguenther@suse.de>
27026
27027 PR tree-optimization/38513
27028 * tree-ssa-pre.c (eliminate): Remove redundant stores.
27029 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
27030 EXC_PTR_EXPR and FILTER_EXPR.
27031 (get_ref_from_reference_ops): Likewise.
27032
8ca1fd76
RG
270332009-03-28 Richard Guenther <rguenther@suse.de>
27034
27035 PR tree-optimization/38968
27036 * tree-vect-analyze.c (vect_compute_data_ref_alignment):
27037 Use FLOOR_MOD_EXPR to compute misalignment.
27038
a254e44d
RG
270392009-03-28 Richard Guenther <rguenther@suse.de>
27040
27041 PR tree-optimization/37795
27042 * tree.h (combine_comparisons): Declare.
27043 * fold-const.c (combine_comparisons): Export.
27044 * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
27045 comparisons.
27046 (ifcombine_iforif): Use combine_comparisons.
27047
a8ee227c
JH
270482009-03-28 Jan Hubicka <jh@suse.cz>
27049
27050 * tree-eh.c (inlinable_call_p): New function.
27051 (make_eh_edges): Use it.
27052 (verify_eh_edges): Use it.
27053 (stmt_can_throw_external, stmt_can_throw_internal): Use it.
27054 * except.c (reachable_next_level): Add inlinable_function argument
27055 (sjlj_find_directly_reachable_regions): Update.
27056 (add_reachable_handler): Do not set saw_any_handlers.
27057 (reachable_next_level): Handle MUST_NOT_THROW more curefully.
27058 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
27059 Add new inlinable call parameter.
27060 (can_throw_internal, can_throw_external): Update.
27061 * except.h (can_throw_internal_1, can_throw_external_1,
27062 foreach_reachable_handler): Update declaration.
27063
52c0e446
JM
270642009-03-28 Joseph Myers <joseph@codesourcery.com>
27065
27066 * config/arm/t-arm-coff, config/h8300/coff.h,
27067 config/i386/i386-aout.h, config/i386/i386-coff.h,
27068 config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
27069 config/pdp11/2bsd.h, config/rs6000/aix41.h,
27070 config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
27071 fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
27072 scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
27073 sys-types.h: Remove.
27074 * Makefile.in: Remove protoize and fixproto support and references
27075 in comments.
27076 (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
27077 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
27078 Remove.
27079 (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
27080 (MOSTLYCLEANFILES): Remove protoize$(exeext) and
27081 unprotoize$(exeext).
27082 (rest.encap): Don't depend on $(STMP_FIXPROTO)
27083 (.PHONY): Don't depend on proto.
27084 (libgcc-support): Don't depend on $(STMP_FIXPROTO).
27085 (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
27086 protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
27087 deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
27088 build/gen-protos.o, build/scan.o, xsys-protos.h,
27089 build/fix-header$(build_exeext), build/fix-header.o,
27090 build/scan-decls.o, fixhdr.ready, stmp-fixproto,
27091 stmp-install-fixproto): Remove.
27092 (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
27093 SYSCALLS.c or fixproto files.
27094 (install-common): Don't install protoize.
27095 (install-headers-tar, install-headers-cpio, install-headers-cp):
27096 Don't depend on $(STMP_FIXPROTO).
27097 (install-mkheaders): Don't depend on $(STMP_FIXPROTO). Don't
27098 install fixproto files or write out fixproto settings.
27099 (uninstall): Don't uninstall protoize.
27100 * config.gcc (use_fixproto): Remove.
27101 (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
27102 i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
27103 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
27104 * config/m32r/t-linux (STMP_FIXPROTO): Remove.
27105 * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
27106 * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
27107 * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
27108 * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
27109 * config/t-svr4 (FIXPROTO_DEFINES): Remove.
27110 * config/t-vxworks (STMP_FIXPROTO): Remove.
27111 * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
27112 STMP_FIXPROTO): Remove.
27113 * config.in, configure: Regenerate.
27114 * crtstuff.c (gid_t, uid_t): Don't undefine.
27115 * doc/install.texi: Change m68k-coff to m68k-elf in example.
27116 (arm-*-coff, arm-*-aout: Remove target entries.
27117 (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
27118 Remove mention of AIX 4.1.
27119 (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
27120 * doc/invoke.texi (Running Protoize): Remove.
27121 * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
27122 (Protoize Caveats): Remove.
27123 * tsystem.h: Update comments on headers assumed to exist.
27124
20a07f44
VM
271252009-03-27 Vladimir Makarov <vmakarov@redhat.com>
27126
27127 * genautomata.c: Add a new year to the copyright. Add a new
27128 reference.
27129 (struct insn_reserv_decl): Add comments for member bypass_list.
27130 (find_bypass): Remove.
27131 (insert_bypass): New.
27132 (process_decls): Use insert_bypass.
27133 (output_internal_insn_latency_func): Output all bypasses with the
27134 same input insn in one switch case.
27135
27136 * rtl.def (define_bypass): Describe bypass choice.
27137 * doc/md.texi (define_bypass): Ditto.
27138
3a0d06c1
RB
271392009-03-27 Richard Guenther <rguenther@suse.de>
27140
27141 * gimplify.c (mark_addressable): Export.
27142 * tree-flow.h (mark_addressable): Declare.
27143 * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
27144 * tree-ssa.c (verify_phi_args): Verify that address taken
27145 variables have TREE_ADDRESSABLE set.
27146
271472009-03-27 Richard Guenther <rguenther@suse.de>
27148
27149 * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
27150 (build_fold_addr_expr_with_type): ... this. Remove in_fold handling.
27151 Do not mark decls TREE_ADDRESSABLE.
27152 (build_fold_addr_expr): Adjust.
27153 (fold_addr_expr): Remove.
27154 (fold_unary): Use build_fold_addr_expr.
27155 (fold_comparison): Likewise.
27156 (split_address_to_core_and_offset): Likewise.
27157 * coverage.c (tree_coverage_counter_addr): Mark the array decl
27158 TREE_ADDRESSABLE.
27159 * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
27160 (gimplify_modify_expr_to_memcpy): Mark source and destination
27161 addressable.
27162 * omp-low.c (create_omp_child_function): Mark the object decl
27163 TREE_ADDRESSABLE.
27164 (lower_rec_input_clauses): Mark the var we take the address of
27165 TREE_ADDRESSABLE.
27166 (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
27167
2ac26e15
L
271682009-03-27 H.J. Lu <hongjiu.lu@intel.com>
27169
27170 PR middle-end/39315
27171 * cfgexpand.c (expand_one_stack_var_at): Change alignment
27172 limit to MAX_SUPPORTED_STACK_ALIGNMENT.
27173
472c7fbd
RG
271742009-03-27 Richard Guenther <rguenther@suse.de>
27175
27176 PR tree-optimization/39120
27177 * tree-ssa-structalias.c (handle_rhs_call): Fill out return
27178 constraints.
27179 (handle_lhs_call): Process return constraints. Add escape
27180 constraints if necessary.
27181 (handle_const_call): Fill out return constraints. Make nested
27182 case more precise. Avoid consttmp if possible.
27183 (handle_pure_call): Fill out return constraints. Avoid
27184 callused if possible.
27185 (find_func_aliases): Simplify call handling.
27186
271872009-03-27 Richard Guenther <rguenther@suse.de>
27188
27189 PR tree-optimization/39120
27190 * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
27191 as a representative.
27192 (solve_graph): Do propagate CALLUSED.
27193 (handle_pure_call): Use a scalar constraint from CALLUSED for
27194 the return value.
27195 (find_what_p_points_to): CALLUSED shall not appear in poins-to
27196 solutions.
27197
d9223014
L
271982009-03-27 H.J. Lu <hongjiu.lu@intel.com>
27199
27200 PR c/39323
27201 * c-common.c (handle_aligned_attribute): Properly check alignment
27202 overflow. Use (1U << i) instead of (1 << i).
27203
ba20e309 27204 * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
d9223014
L
27205
27206 * expr.h (get_mem_align_offset): Updated.
27207
27208 * tree.h (tree_decl_common): Change align to "unsigned int" and
27209 move it before pointer_alias_set.
27210
689b689c
L
272112009-03-27 H.J. Lu <hongjiu.lu@intel.com>
27212 Jakub Jelinek <jakub@redhat.com>
27213
27214 PR target/38034
27215 * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
27216 gr_register_operand with gr_reg_or_0_operand.
27217 (cmpxchg_rel_di): Likewise.
27218 (sync_lock_test_and_set<mode>): Likewise.
27219
c619e982
L
272202009-03-27 H.J. Lu <hongjiu.lu@intel.com>
27221
27222 * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
27223 (true_regnum): Likewise.
27224
27225 * rtlanal.c (subreg_info): Moved to ...
27226 * rtl.h (subreg_info): Here. New.
27227 (subreg_get_info): New.
27228
27229 * rtlanal.c (subreg_get_info): Make it extern.
27230
51212b32
L
272312009-03-27 H.J. Lu <hongjiu.lu@intel.com>
27232
27233 PR target/39472
27234 * config/i386/i386.c (ix86_abi): New.
27235 (override_options): Handle -mabi=.
ba20e309 27236 (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
51212b32
L
27237 (ix86_call_abi_override): Likewise.
27238 (init_cumulative_args): Likewise.
27239 (function_arg_advance): Likewise.
27240 (function_arg_64): Likewise.
27241 (function_arg): Likewise.
27242 (ix86_pass_by_reference): Likewise.
27243 (ix86_function_value_regno_p): Likewise.
27244 (ix86_build_builtin_va_list_abi): Likewise.
27245 (setup_incoming_varargs_64): Likewise.
27246 (is_va_list_char_pointer): Likewise.
27247 (ix86_init_machine_status): Likewise.
ba20e309 27248 (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
51212b32
L
27249 (ix86_function_type_abi): Return enum calling_abi. Rewrite
27250 for 64bit. Replace DEFAULT_ABI with ix86_abi.
ba20e309 27251 (ix86_function_abi): Make it static and return enum calling_abi.
51212b32
L
27252 (ix86_cfun_abi): Return enum calling_abi. Replace DEFAULT_ABI
27253 with ix86_abi.
27254 (ix86_fn_abi_va_list): Updated.
27255
27256 * config/i386/i386.h (ix86_abi): New.
27257 (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
27258 (CONDITIONAL_REGISTER_USAGE): Likewise.
27259 (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
27260 (machine_function): Likewise.
27261
27262 * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
27263 with ix86_abi.
27264 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
27265 (STACK_BOUNDARY): Likewise.
27266 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
27267
27268 * config/i386/i386.opt (mabi=): New.
27269
27270 * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
27271 return enum calling_abi.
27272 (ix86_function_type_abi): Likewise.
27273 (ix86_function_abi): Removed.
27274
27275 * doc/invoke.texi: Document -mabi= option for x86.
27276
7338ea63
KG
272772009-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
27278
27279 * builtins.c (real_dconstp): Delete.
27280 (fold_builtin_logarithm): Remove inaccurate log(e) special case.
27281
68599f33
DS
272822009-03-27 Dodji Seketeli <dodji@redhat.com>
27283 Jakub Jelinek <jakub@redhat.com>
27284
27285 PR debug/37959
27286 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
27287 (gen_subprogram_die): When a function is explicit, generate the
27288 DW_AT_explicit attribute.
27289 * langhooks.h (struct lang_hooks_for_decls): Add
27290 function_decl_explicit_p langhook.
27291 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
27292 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
27293
9f5e9983
JJ
272942009-03-27 Jakub Jelinek <jakub@redhat.com>
27295
64d7685c
JJ
27296 * builtins.c (fold_builtin_memory_op): Optimize memmove
27297 into memcpy if we can prove source and destination don't overlap.
27298
9f5e9983
JJ
27299 * tree-inline.c: Include gt-tree-inline.h.
27300 (clone_fn_id_num): New variable.
27301 (clone_function_name): New function.
27302 (tree_function_versioning): Use it.
27303 * Makefile.in (GTFILES): Add tree-inline.c.
27304
e54d52a8
MM
273052009-03-27 Mark Mitchell <mark@codesourcery.com>
27306
27307 * BASE-VER: Change to 4.5.0.
27308
e9d51dc6
XDL
273092009-03-27 Xinliang David Li <davidxl@google.com>
27310
27311 PR tree-optimization/39557
27312 * tree-ssa.c (warn_uninitialized_vars): free postdom info.
27313
4577cea1
XDL
273142009-03-27 Xinliang David Li <davidxl@google.com>
27315
27316 PR tree-optimization/39548
2ba9daa7 27317 * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
4577cea1
XDL
27318 candidate check.
27319
0f7464f4
L
273202009-03-27 H.J. Lu <hongjiu.lu@intel.com>
27321
27322 * c-common.c (pointer_int_sum): Use %wd on return from
27323 tree_low_cst.
27324
a8847a7f
L
273252009-03-27 H.J. Lu <hongjiu.lu@intel.com>
27326
27327 * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
27328 on return from tree_low_cst.
27329
b0957daf
AP
273302009-03-27 Andrew Pinski <andrew_pinski@playstation.sony.com>
27331
27332 PR c++/36799
ba20e309
UB
27333 * ginclude/stdarg.h (va_copy): Define also for
27334 __GXX_EXPERIMENTAL_CXX0X__.
b0957daf 27335
a5f805df
MLI
273362009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
27337
27338 PR c++/35652
27339 * builtins.h (c_strlen): Do not warn here.
27340 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
27341 * c-common.c (pointer_int_sum): Take an explicit location.
27342 Warn about offsets out of bounds.
27343 * c-common.h (pointer_int_sum): Adjust declaration.
27344
6f401211
RW
273452009-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27346
a5f805df
MLI
27347 * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
27348 markup glitch.
6f401211 27349
5a59b39e
JJ
273502009-03-26 Jakub Jelinek <jakub@redhat.com>
27351
27352 PR c++/39554
27353 * opts.c (warn_if_disallowed_function_p): Don't assume
27354 get_callee_fndecl must return non-NULL.
27355
d5f89b53
VM
273562009-03-26 Vladimir Makarov <vmakarov@redhat.com>
27357
27358 PR rtl-optimization/39522
27359 * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
27360 when reg_reloaded_valid is set.
27361
61238a79
UW
273622009-03-26 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27363
27364 * config/spu/divv2df3.c: New file.
27365 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
27366 (DPBIT_FUNCS): Filter out _div_df.
27367
03f8829b
BS
273682009-03-26 Bernd Schmidt <bernd.schmidt@analog.com>
27369
27370 * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
27371 a jump insn, count that jump in the distance to the loop start.
27372
9fdcdc74
KK
273732009-03-25 Kaz Kojima <kkojima@gcc.gnu.org>
27374
27375 PR target/39523
27376 * config/sh/sh.c (calc_live_regs): Fix condition for global
27377 registers except PIC_OFFSET_TABLE_REGNUM.
27378
46994828
KT
273792009-03-25 Kai Tietz <kai.tietz@onevision.com>
27380
27381 PR/39518
27382 * doc/invoke.texi (-mconsole): New.
27383 (-mcygwin): New.
27384 (-mno-cygwin): New.
27385 (-mdll): New.
27386 (-mnop-fun-dllimport): New.
27387 (-mthread): New.
27388 (-mwin32): New.
27389 (-mwindows): New.
27390 (sub section "i386 and x86-64 Windows Options"): New.
27391
60839f5d 273922009-03-25 Ralf Corsépius <ralf.corsepius@rtems.org>
370017b4
RC
27393
27394 * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
27395 * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
27396
ae560440
RG
273972009-03-25 Richard Guenther <rguenther@suse.de>
27398
27399 PR middle-end/39497
27400 * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
27401 of -Wno-error.
27402
cd510f15
AM
274032009-03-25 Andrey Belevantsev <abel@ispras.ru>
27404
27405 * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
27406 neither of haifa/selective schedulers are working.
27407
44ab0f0e
RW
274082009-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27409
27410 * doc/invoke.texi (Debugging Options): Fix description of
27411 -fno-merge-debug-strings.
27412
ad9646c7
HPN
274132009-03-24 Hans-Peter Nilsson <hp@axis.com>
27414
e6142656
HPN
27415 * config/cris/libgcc.ver: New version-script.
27416 * config/cris/t-linux (SHLIB_MAPFILES): Use it.
27417
ad9646c7
HPN
27418 * configure.ac <GAS features, nop mnemonic>: Add pattern
27419 crisv32-*-* for "nop".
ba20e309 27420 <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
ad9646c7
HPN
27421 * configure: Regenerate.
27422
09ac4473
IR
274232009-03-24 Ira Rosen <irar@il.ibm.com>
27424
27425 PR tree-optimization/39529
27426 * tree-vect-transform.c (vect_create_data_ref_ptr): Call
27427 mark_sym_for_renaming for the tag copied to the new vector
27428 pointer.
27429
d94a427e
AL
274302009-03-24 Arthur Loiret <aloiret@debian.org>
27431
ba20e309 27432 * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
d94a427e
AL
27433 * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
27434 EXTRA_SPEC_FUNCTIONS.
27435 (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
27436 * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
27437 * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
27438 -march and -mtune options.
27439
60839f5d 274402009-03-24 Ralf Corsépius <ralf.corsepius@rtems.org>
722d07aa
RC
27441
27442 * config/m68k/t-rtems: Add m5329 multilib.
27443
603f5959
DS
274442009-03-24 Dodji Seketeli <dodji@redhat.com>
27445 Jakub Jelinek <jakub@redhat.com>
27446
27447 PR debug/39524
27448 * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
27449 nodes.
27450
c5cdb03f
JJ
274512009-03-23 Jakub Jelinek <jakub@redhat.com>
27452
27453 PR c/39495
27454 * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
27455 instead of c_parser_expression_conv, if original_code isn't one of the
27456 4 allowed comparison codes, fail.
27457
3691626c
RG
274582009-03-23 Richard Guenther <rguenther@suse.de>
27459
27460 * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
27461 * tree.h (struct tree_type): Likewise.
27462 * reload.h (struct insn_chain): Likewise.
27463 * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
27464 * function.h (struct function): Likewise.
27465 * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
27466
88ccb72a
JJ
274672009-03-23 Jakub Jelinek <jakub@redhat.com>
27468
27469 PR tree-optimization/39516
27470 * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
27471
60839f5d 274722009-03-23 Bingfeng Mei <bmei@broadcom.com>
a583a67e 27473
2ba9daa7 27474 * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
a583a67e
BM
27475 should be set true if BITS_PER_WORD of target is bigger than 32
27476
f82162f8
HPN
274772009-03-22 Hans-Peter Nilsson <hp@axis.com>
27478
27479 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
27480 Translate -B-options to -rpath-link. Correct existing
27481 rpath-link and conditionalize on !nostdlib.
27482
048fd785
RW
274832009-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27484
27485 * doc/extend.texi (Function Attributes, Variable Attributes):
27486 Fix typos.
27487 * doc/invoke.texi (Debugging Options, Optimize Options)
27488 (i386 and x86-64 Options, MCore Options): Likewise.
27489
6e75c1a9
JJ
274902009-03-20 Jakub Jelinek <jakub@redhat.com>
27491
27492 PR debug/37890
27493 * dwarf2out.c (gen_namespace_die): Add context_die argument and use
27494 it for block local namespace aliases.
27495 (gen_decl_die): Pass context_die to gen_namespace_die.
27496
ea1199ee
JJ
274972009-03-19 Jakub Jelinek <jakub@redhat.com>
27498
27499 PR c/39495
27500 * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
27501 minimum or maximum value.
27502
58929c10
AO
275032009-03-19 Alexandre Oliva <aoliva@redhat.com>
27504
27505 * reginfo.c (globalize_reg): Recompute derived reg sets.
27506
60839f5d 275072009-03-19 Ozkan Sezer <sezeroz@gmail.com>
234952b3
OS
27508
27509 PR target/39063
27510 * libgcc2.c (mprotect): Do not use signed arguments for
27511 VirtualProtect, use DWORD arguments. Also fix the 'may
27512 be used uninitialized' warning for the np variable.
27513
f57c2f04
JJ
275142009-03-19 Jakub Jelinek <jakub@redhat.com>
27515
27516 PR target/39496
27517 * config/i386/i386.c (ix86_function_regparm): Don't optimize local
27518 functions using regparm calling conventions when not optimizing.
27519 (ix86_function_sseregparm): Similarly for sseregparm calling
27520 conventions.
27521
9e517d61
LF
275222009-03-19 Li Feng <nemokingdom@gmail.com>
27523
27524 PR middle-end/39500
27525 * tree-data-ref.c (analyze_subscript_affine_affine): There is no
27526 dependence if the first conflict is after niter iterations.
27527
8ef20026
HPN
275282009-03-19 Hans-Peter Nilsson <hp@axis.com>
27529
27530 PR middle-end/38609
27531 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
27532 functions with dynamic stack-pointer adjustments.
27533
64e4a1a6
BE
275342009-03-19 Ben Elliston <bje@au.ibm.com>
27535
27536 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
27537 option; change to -msdata=data.
27538
9a0f3e86
RW
275392009-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27540
27541 * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
27542 and -fopenmp.
27543
09bc5979
EB
275442009-03-18 Eric Botcazou <ebotcazou@adacore.com>
27545
27546 PR target/35180
27547 * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
27548
332459cd
SL
275492009-03-18 Sandra Loosemore <sandra@codesourcery.com>
27550
27551 * doc/invoke.texi (Code Gen Options): Expand discussion of
27552 -fno-common.
27553
8f5929e1
JJ
275542009-03-18 Jakub Jelinek <jakub@redhat.com>
27555
27556 * dse.c (struct group_info): Reorder fields for 64-bit hosts.
27557 * matrix-reorg.c (struct matrix_info): Likewise.
27558 * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
27559 * rtl.h (struct mem_attrs): Likewise.
27560 * df.h (struct df): Likewise.
27561 * tree-data-ref.h (struct data_dependence_relation): Likewise.
27562 * ira-int.h (struct ira_allocno): Likewise.
27563 * df-scan.c (struct df_collection_rec): Likewise.
27564 * ira.c (struct equivalence): Likewise.
27565 * function.c (struct temp_slot): Likewise.
27566 * cfgloop.h (struct loop): Likewise.
27567
d130d647
JJ
27568 PR debug/39485
27569 * function.c (use_register_for_decl): When not optimizing, disregard
27570 register keyword for variables with types containing methods.
27571
9968d233
SP
275722009-03-18 Sebastian Pop <sebastian.pop@amd.com>
27573
27574 PR middle-end/39447
27575 * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
27576 (is_simple_operand): Call contains_component_ref_p before calling data
27577 reference analysis that would fail on COMPONENT_REFs.
27578
27579 * tree-vrp.c (search_for_addr_array): Fix formatting.
27580
69484bfd
RG
275812009-03-18 Richard Guenther <rguenther@suse.de>
27582
27583 * tree-vect-transform.c (vect_loop_versioning): Fold the
27584 generated comparisons.
27585 * tree-vectorizer.c (set_prologue_iterations): Likewise.
27586 (slpeel_tree_peel_loop_to_edge): Likewise.
27587
66811228
RW
275882009-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27589
0631b69f
RW
27590 PR middle-end/37805
27591 * opts.c (print_specific_help): In addition to `undocumented',
27592 accept `separate' and `joined' flags if passed alone. Describe
27593 output by the first matched one of those.
27594 (common_handle_option): Skip over empty strings.
27595 * gcc.c (display_help): Fix help string for `--help='.
27596 * doc/invoke.texi (Option Summary, Overall Options): With
27597 `--help=', classes and qualifiers can both be repeated, but
27598 only the latter can be negated. One should not pass only
27599 negated qualifiers. Fix markup and examples.
27600
66811228
RW
27601 Revert
27602 2008-10-14 Jakub Jelinek <jakub@redhat.com>
27603 PR middle-end/37805
27604 * opts.c (common_handle_option): Don't ICE on -fhelp=joined
27605 and -fhelp=separate.
27606
3c072c6b
JY
276072009-03-17 Jing Yu <jingyu@google.com>
27608
27609 PR middle-end/39378
80c65208
JY
27610 * function.h (struct rtl_data): Move is_thunk from here...
27611 (struct function): ...to here.
27612 * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
3c072c6b
JY
27613 * varasm.c (assemble_start_function): Change is_thunk from crtl to
27614 cfun.
80c65208
JY
27615 * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
27616 cfun.
27617 (alpha_does_function_need_gp, alpha_start_function): Likewise.
27618 (alpha_output_function_end_prologue): Likewise.
27619 (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
27620 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
27621 (rs6000_output_function_epilogue): Likewise.
27622 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
3c072c6b 27623
9ade279b
UB
276242009-03-17 Uros Bizjak <ubizjak@gmail.com>
27625
27626 PR target/39482
27627 * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
27628 from different units in a single alternative.
27629 (*truncdfsf_i387): Ditto.
27630 (*truncxfsf2_mixed): Ditto.
27631 (*truncxfdf2_mixed): Ditto.
27632
16e60c17
JJ
276332009-03-17 Jakub Jelinek <jakub@redhat.com>
27634
98381eb4
JJ
27635 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
27636 non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
27637
df5deb18
JJ
27638 PR debug/39474
27639 * tree-ssa-live.c (remove_unused_locals): Don't remove local
27640 unused non-artificial variables when not optimizing.
27641
a3f596ba
JJ
27642 PR debug/39471
27643 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
27644 DW_TAG_imported_module even if decl is IMPORTED_DECL with
27645 NAMESPACE_DECL in its DECL_INITIAL.
27646
6b2b8871
JJ
27647 PR middle-end/39443
27648 * optabs.c (set_user_assembler_libfunc): New function.
27649 * expr.h (set_user_assembler_libfunc): New prototype.
27650 * c-common.c: Include libfuncs.h.
27651 (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
27652 for memcmp, memset, memcpy, memmove and abort.
27653 * Makefile.in (c-common.o): Depend on libfuncs.h.
27654
16e60c17
JJ
27655 PR debug/39412
27656 * dwarf2out.c (gen_inlined_enumeration_type_die,
27657 gen_inlined_structure_type_die, gen_inlined_union_type_die,
27658 gen_tagged_type_instantiation_die): Removed.
27659 (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
27660 do nothing.
27661
4d936aca
JJ
276622009-03-17 Janis Johnson <janis187@us.ibm.com>
27663
27664 PR testsuite/38526
27665 * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
27666 its use.
27667 (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
27668 (check-parallel-%): Ditto.
27669 (check-consistency): Ditto.
27670
4e9b2e50
KT
276712009-03-17 Kai Tietz <kai.tietz@onevision.com>
27672
27673 * ipa-struct-reorg.c (create_general_new_stmt): Initialize
27674 local variable rhs by NULL_TREE.
27675
21440b2d
L
276762009-03-17 H.J. Lu <hongjiu.lu@intel.com>
27677
27678 PR target/39477
9ade279b 27679 * doc/extend.texi: Correct register behavior for regparm on Intel 386.
21440b2d 27680
d8905c6a
L
276812009-03-17 H.J. Lu <hongjiu.lu@intel.com>
27682
27683 PR target/39476
9ade279b 27684 * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
d8905c6a
L
27685
276862009-03-17 H.J. Lu <hongjiu.lu@intel.com>
435a61d3
L
27687
27688 PR target/39473
27689 * config/i386/i386.c (ix86_expand_call): Check extra clobbers
27690 for ms->sysv ABI calls only in 64bit mode.
27691
27692 * config/i386/i386.md (untyped_call): Support 32bit.
27693
cdcabece
L
276942009-03-16 H.J. Lu <hongjiu.lu@intel.com>
27695
27696 * doc/extend.texi: Replace x86_65 with x86_64.
27697
97b4ba9f
JJ
276982009-03-16 Jakub Jelinek <jakub@redhat.com>
27699
27700 PR tree-optimization/39455
27701 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
27702 mismatches for POINTER_TYPE_P (type).
27703 (number_of_iterations_le): Likewise.
27704
60839f5d 277052009-03-16 Hariharan Sandanagobalane <hariharan@picochip.com>
83c191e1
HS
27706
27707 * config/picochip/picochip.c: Removed profiling support.
27708 * config/picochip/picochip.md: Removed profiling instruction.
27709 * config/picochip/picochip.h: Removed profiling builtin.
27710
f38095f3
JM
277112009-03-16 Joseph Myers <joseph@codesourcery.com>
27712
27713 * doc/install.texi (--with-host-libstdcxx): Document.
27714
2cb4817b
AS
277152009-03-14 Anatoly Sokolov <aesok@post.ru>
27716
27717 PR target/34299
27718 * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
27719 generate a warning if the function name does not begin with
27720 "__vector" and the function has either the 'signal' or 'interrupt'
27721 attribute, from here to ...
27722 (avr_declare_function_name): ...here. New function.
27723 * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
27724 * config/avr/avr-protos.h (avr_declare_function_name): Declare.
27725
39b2ac74
JJ
277262009-03-14 Jakub Jelinek <jakub@redhat.com>
27727
27728 PR bootstrap/39454
27729 * cse.c (fold_rtx): Don't modify original const_arg1 when
27730 canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
27731 separate variable instead.
27732 * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
27733 from out of range shift counts.
27734 (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
27735
ad41bd84 277362009-03-13 Catherine Moore <clm@codesourcery.com>
f7a82dee 27737
60839f5d 27738 * config/i386/x-mingw32 (host-mingw32.o): Replace
f7a82dee
CM
27739 diagnostic.h with $(DIAGNOSTIC_H).
27740
ad41bd84 277412009-03-12 Jakub Jelinek <jakub@redhat.com>
03a18198
JJ
27742
27743 PR target/39431
27744 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
27745 predicate.
27746 * config/i386/sync.md (sync_compare_and_swap<mode>,
27747 sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
27748 if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
27749 into a register.
27750 (sync_double_compare_and_swapdi_pic,
27751 sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
27752 cmpxchg8b_pic_memory_operand instead of just memory_operand.
27753
122c59c7
L
277542009-03-12 H.J. Lu <hongjiu.lu@intel.com>
27755
27756 PR target/39445
9ade279b 27757 * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
122c59c7 27758
cec8874f
L
277592009-03-12 H.J. Lu <hongjiu.lu@intel.com>
27760
27761 PR target/39327
27762 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
27763 (avx_addsubv4df3): Likewise.
27764 (*avx_addsubv4sf3): Likewise.
27765 (sse3_addsubv4sf3): Likewise.
27766
bbb52802
L
277672009-03-12 H.J. Lu <hongjiu.lu@intel.com>
27768
27769 PR target/38824
9ade279b 27770 * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
bbb52802 27771
a812fb07
VM
277722009-03-12 Vladimir Makarov <vmakarov@redhat.com>
27773
27774 PR debug/39432
27775 * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
27776 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
27777 registers for allocnos created from user-defined variables.
27778
4caab5ba
UW
277792009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27780
27781 PR target/39181
27782 * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
27783 of non-integer mode as well.
27784
498e51ca
AN
277852009-03-11 Adam Nemet <anemet@caviumnetworks.com>
27786
27787 * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
27788 for functions for which the parameter types are unknown.
27789
9bfaf89d
JJ
277902009-03-11 Jakub Jelinek <jakub@redhat.com>
27791
27792 PR target/39137
9ade279b 27793 * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
9bfaf89d
JJ
27794 * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
27795 * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
27796 * config/i386/i386.c (ix86_local_alignment): For
27797 -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
27798 long long variables on the stack to avoid dynamic realignment.
27799 Allow the first argument to be a decl rather than type.
27800 * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
27801
18a3bdcb
NC
278022009-03-11 Nick Clifton <nickc@redhat.com>
27803
27804 PR target/5362
40190a76
NC
27805 * config/mcore/mcore.opt: Remove deprecated m4align and m8align
27806 options.
27807 Add description to mno-lsim option.
27808 * config/mcore/mcore.h: Remove comment about deprecated m4align
27809 option.
27810 (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
27811 * doc/invoke.texi: Add description of mno-lsim and
27812 mstack-increment options.
27813
18a3bdcb
NC
27814 * config/fr30/fr30.opt: Document the -mno-lsim option.
27815 * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
27816 and -mno-lsim options.
27817
dc215785
UW
278182009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27819
27820 * fold-const.c (fold_comparison): Only call fold_inf_compare
27821 if the mode supports infinities.
27822
7716876b
JM
278232009-03-11 Jason Merrill <jason@redhat.com>
27824
27825 PR debug/39086
27826 * tree-nrv.c (tree_nrv): Don't do this optimization if the front
27827 end already did. Notice GIMPLE_CALL modifications of the result.
27828 Don't copy debug information from an ignored decl or a decl from
27829 another function.
27830
ddef83d2
RG
278312009-03-10 Richard Guenther <rguenther@suse.de>
27832 Nathan Froyd <froydnj@codesourcery.com>
27833
27834 PR middle-end/37850
9ade279b 27835 * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
ddef83d2
RG
27836 (__divMODE3): Likewise.
27837
9a9ba8d9
JJ
278382009-03-09 Jakub Jelinek <jakub@redhat.com>
27839
27840 PR tree-optimization/39394
27841 * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
27842 DECL_SIZE_UNIT of variable length FIELD_DECLs.
27843
929b7fc3
AK
278442009-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27845
27846 * recog.c (verfiy_changes): Disallow renaming of hard regs in
27847 inline asms for register asm ("") declarations.
27848
1803581d
EB
278492009-03-09 Eric Botcazou <ebotcazou@adacore.com>
27850
27851 * fold-const.c (fold_unary): Fix comment.
27852
8454d27e
JH
278532009-03-07 Jan Hubicka <jh@suse.cz>
27854
27855 PR target/39361
969a5433
JJ
27856 * tree-inline.c (setup_one_parameter): Do replacement of const
27857 argument by constant in SSA form.
8454d27e 27858
3a695389
UW
278592009-03-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27860
27861 PR middle-end/38028
27862 * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
27863 determine alignment passed to assign_stack_local.
27864 (assign_parms_unsplit_complex): Likewise.
27865 * except.c (sjlj_build_landing_pads): Likewise.
27866
9f0e7885
JJ
278672009-03-06 Jakub Jelinek <jakub@redhat.com>
27868
65401a0b
JJ
27869 PR middle-end/39360
27870 * tree-flow.h (add_referenced_var): Return bool instead of void.
27871 * tree-dfa.c (add_referenced_var): Return result of
27872 referenced_var_check_and_insert call.
27873 * tree-inline.c (expand_call_inline): Call add_referenced_var instead
27874 of referenced_var_check_and_insert.
27875
9f0e7885 27876 PR debug/39372
9ade279b 27877 * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
9f0e7885
JJ
27878 (gen_variable_die): Emit DW_AT_location on abstract static variable's
27879 DIE, don't emit it if abstract origin already has it.
27880 * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
27881 BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
27882
3b664bd1
JBG
278832009-03-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
27884
ba20e309 27885 * genpreds.c (needs_variable): Fix parentheses at variable name
3b664bd1
JBG
27886 detection.
27887 (write_tm_constrs_h): Indent generated code.
27888
d8f8ca80
RR
278892009-03-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27890
27891 * doc/extend.texi (Function Attributes): Add documentation
27892 for isr attributes.
27893
6c3d550c
JJ
278942009-03-06 Jakub Jelinek <jakub@redhat.com>
27895
27896 PR debug/39387
27897 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
27898 take locus from its DECL_SOURCE_LOCATION instead of input_location.
27899
f9e96751
BS
279002009-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
27901
27902 * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
27903 the loop as bad.
27904
ee0ee7e2
JJ
279052009-03-05 Jakub Jelinek <jakub@redhat.com>
27906
27907 PR debug/39379
27908 * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
27909 with blocks containing IMPORTED_DECLs in BLOCK_VARS.
27910
6c6094f1
UB
279112009-03-05 Uros Bizjak <ubizjak@gmail.com>
27912
27913 * config/i386/i386.md (R8_REG, R9_REG): New constants.
27914 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
27915 constants instead of magic numbers.
27916 (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
27917 (QI_REG_P): Ditto.
27918 * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
27919 (x86_64_ms_abi_int_parameter_registers): Ditto.
27920 (x86_64_int_return_registers): Ditto.
09f8a8d3 27921 (ix86_maybe_switch_abi): Ditto.
6c6094f1
UB
27922 (ix86_expand_call): Ditto for clobbered_registers array.
27923 (ix86_hard_regno_mode_ok): Ditto.
27924 (x86_extended_QIreg_mentioned_p): Ditto.
27925
b267bd41
R
279262009-03-05 J"orn Rennecke <joern.rennecke@arc.com>
27927
6c6094f1 27928 PR tree-optimization/39349
1f3ad3f0
R
27929 * cse.c (cse_insn): Fix loop to stop at VOIDmode.
27930
b267bd41
R
27931 * combine.c (gen_lowpart_for_combine): Use omode when generating
27932 clobber.
27933
1242bc9d
R
279342009-03-04 J"orn Rennecke <joern.rennecke@arc.com>
27935
6c6094f1 27936 PR rtl-optimization/39235
1242bc9d
R
27937 * loop-iv.c (get_simple_loop_desc): Use XCNEW.
27938
48f03606
ZD
279392009-03-04 Zdenek Dvorak <ook@ucw.cz>
27940
27941 * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
27942
b505e785
RG
279432009-03-04 Richard Guenther <rguenther@suse.de>
27944
27945 PR tree-optimization/39362
27946 * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
27947 that occur in abnormal PHIs should be varying.
27948
f017bf5e
ZD
279492009-03-04 Zdenek Dvorak <ook@ucw.cz>
27950
27951 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
27952 Extend comments.
27953 (simple_iv): Take loop as an argument instead of statement.
27954 * tree-scalar-evolution.h (simple_iv): Declaration changed.
27955 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
27956 to simple_iv.
27957 * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
27958 Ditto.
27959 * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
27960 * matrix-reorg.c (analyze_transpose): Ditto.
27961 * tree-data-ref.c (dr_analyze_innermost): Ditto.
27962 * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
27963 * tree-predcom.c (ref_at_iteration): Ditto.
27964 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
27965
6a66f28e
RG
279662009-03-04 Richard Guenther <rguenther@suse.de>
27967
27968 PR tree-optimization/39358
27969 * tree-ssa-structalias.c (do_sd_constraint): Fix check for
27970 escaped_id and callused_id.
27971 (solve_graph): Likewise.
27972
57e454ee
RG
279732009-03-04 Richard Guenther <rguenther@suse.de>
27974
27975 PR tree-optimization/39339
27976 * tree-sra.c (try_instantiate_multiple_fields): Make it
27977 no longer ICE on the above.
27978
a6fe9ed4
JM
279792009-03-03 Joseph Myers <joseph@codesourcery.com>
27980
27981 * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
27982 that fits within Pmode.
27983
dc672951
SE
279842009-03-03 Steve Ellcey <sje@cup.hp.com>
27985
27986 PR middle-end/10109
27987 * tm.texi (LIBCALL_VALUE): Update description.
27988
8b9d598f
SE
279892009-03-03 Steve Ellcey <sje@cup.hp.com>
27990
27991 PR middle-end/34443
27992 * doc/extend.texi (section): Update description.
27993
13e4e36e
L
279942009-03-03 H.J. Lu <hongjiu.lu@intel.com>
27995
27996 PR middle-end/39345
27997 * tree-inline.c (remapped_type): New.
27998 (can_be_nonlocal): Call remapped_type instead of remap_type.
27999
067dd3c9
JJ
280002009-03-03 Jakub Jelinek <jakub@redhat.com>
28001
28002 PR fortran/39354
28003 * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
28004 TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
28005
9bd9f738
RG
280062009-03-03 Richard Guenther <rguenther@suse.de>
28007
28008 PR middle-end/39272
28009 * tree.c (tree_nonartificial_location): New function.
28010 * tree.h (tree_nonartificial_location): Declare.
28011 * builtins.c (expand_builtin_memory_chk): Provide location
28012 of the call location for artificial function pieces.
28013 (maybe_emit_chk_warning): Likewise.
28014 (maybe_emit_sprintf_chk_warning): Likewise.
28015 (maybe_emit_free_warning): Likewise.
28016 * expr.c (expand_expr_real_1): Likewise.
28017
f07049c8
JJ
280182009-03-03 Jakub Jelinek <jakub@redhat.com>
28019
28020 PR tree-optimization/39343
28021 * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
28022 COMPONENT_REF t has ARRAY_TYPE.
28023
7d4fba4a
SP
280242009-03-02 Sebastian Pop <sebastian.pop@amd.com>
28025
28026 PR middle-end/39335
28027 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
28028 when the type precision of the induction variable should be
28029 larger than the type precision of nit.
28030 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
28031 * graphite.c (graphite_loop_normal_form): Same.
28032 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
28033
78168632
UB
280342009-03-02 Uros Bizjak <ubizjak@gmail.com>
28035
28036 * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
28037 (*call_1_rex64_ms_sysv): Use named constants instead of magic
6c6094f1 28038 numbers to describe clobbered registers.
78168632 28039 (*call_value_0_rex64_ms_sysv): Ditto.
6c6094f1
UB
28040 * config/i386/mmx.md (mmx_emms): Ditto.
28041 (mmx_femms): Ditto.
78168632 28042
63553059
RS
280432009-03-02 Richard Sandiford <rdsandiford@googlemail.com>
28044
28045 * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
28046 of ABI_64.
28047
500a1f85
UW
280482009-03-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28049
28050 * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
28051 (spu_section_type_flags): New function.
28052
962aae34
UB
280532009-03-02 Uros Bizjak <ubizjak@gmail.com>
28054
28055 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
28056 reg_class_contents of FLOAT_REGS into a temporary.
28057
6dfb529c 280582009-03-02 Richard Guenther <rguenther@suse.de>
962aae34 28059 Ira Rosen <irar@il.ibm.com>
6dfb529c
RG
28060
28061 PR tree-optimization/39318
28062 * tree-vect-transform.c (vectorizable_call): Transfer the EH region
28063 information to the vectorized statement.
28064
6b5629db
UB
280652009-03-01 Uros Bizjak <ubizjak@gmail.com>
28066
434426d2
UB
28067 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
28068 variable. Use defined names instead of magic constants for REX SSE
28069 registers.
6b5629db 28070
14e5b285
RG
280712009-03-01 Richard Guenther <rguenther@suse.de>
28072
28073 PR tree-optimization/39331
28074 * omp-low.c (lower_send_shared_vars): Do not receive new
28075 values for the reference of DECL_BY_REFERENCE parms or results.
28076
526d73ab
JH
280772009-03-01 Jan Hubicka <jh@suse.cz>
28078
28079 PR debug/39267
28080 * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
28081 BLOCK_NONLOCALIZED_VAR): New macros.
28082 (tree_block): Add nonlocalized_vars.
f4ea99bd
EB
28083 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
28084 gen_decl_die): Add origin argument. Allow generation of die with
28085 origin at hand only.
526d73ab 28086 (gen_member_die, gen_type_die_with_usage, force_decl_die,
f4ea99bd
EB
28087 declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
28088 of gen_*.
526d73ab
JH
28089 (gen_block_die): Fix checking for unused blocks.
28090 (process_scope_var): Break out from .... ; work with origins only.
28091 (decls_for_scope) ... here; process nonlocalized list.
28092 (dwarf2out_ignore_block): Look for nonlocalized vars.
f4ea99bd
EB
28093 * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
28094 vars.
526d73ab
JH
28095 (dump_scope_block): Dump them.
28096 * tree-inline.c (remap_decls): Handle nonlocalized vars.
28097 (remap_block): Likewise.
28098 (can_be_nonlocal): New predicate.
28099 (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
28100
7a9d3fe8
RW
281012009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28102
28103 * configure: Regenerate.
28104
b3cdf3cb
RW
281052009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28106
a16d1645 28107 * optc-gen.awk: No need to duplicate option flags twice.
9ade279b 28108 Reuse help texts for duplicate options which do not have any.
a16d1645 28109
1156c176
RW
28110 * gcc.c (display_help): Document --version.
28111
033505fc
RW
28112 * gcc.c (main): If print_help_list and verbose_flag, ensure
28113 driver output comes before subprocess output.
28114
4d077054
RW
28115 * optc-gen.awk: Assign all remaining fields to help string,
28116 space-separated, for multi-line help in *.opt.
28117
a072f1cf
RW
28118 * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
28119 -Wno-pedantic-ms-format is for MinGW targets only.
28120
b3cdf3cb
RW
28121 * doc/options.texi (Option file format): Fix bad indentation,
28122 restoring dropped sentence.
28123
a3aadcc5
JH
281242009-02-28 Jan Hubicka <jh@suse.cz>
28125
28126 * tree-inline.c (tree_function_versioning): Output debug info.
28127
1cf5abb3
JH
281282009-02-28 Jan Hubicka <jh@suse.cz>
28129
28130 PR debug/39267
28131 * tree-inline.c (setup_one_parameter): Do not copy propagate
28132 arguments when not optimizing.
28133
c4d3f42f
L
281342009-02-28 H.J. Lu <hongjiu.lu@intel.com>
28135
28136 PR target/39327
28137 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
28138 (avx_addsubv4df3): Likewise.
28139 (*avx_addsubv4sf3): Likewise.
28140 (sse3_addsubv4sf3): Likewise.
28141 (*avx_addsubv2df3): Likewise.
28142 (sse3_addsubv2df3): Likewise.
28143 (avx_unpckhps256): Correct item selectors.
28144 (avx_unpcklps256): Likewise.
28145 (avx_unpckhpd256): Likewise.
28146 (avx_unpcklpd256): Likewise.
28147
eb50f5f4
JH
281482009-02-28 Jan Hubicka <jh@suse.cz>
28149
28150 * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
28151 static vars.
28152 (copy_arguments_for_versioning): If var is declared don't declare it.
28153 (tree_function_versioning): First setup substitutions and then copy
28154 args.
28155
26140130
JH
281562009-02-27 Jan Hubicka <jh@suse.cz>
28157
28158 PR debug/39267
28159 * cgraph.h (varpool_output_debug_info): Remove.
28160 * cgraphunit.c (varpool_output_debug_info): Remove.
28161 * dwarf2out.c (deferred_locations_struct): New struct
28162 (deferred_locations): New type.
28163 (deferred_locations_list): New static var.
28164 (deffer_location): New function.
28165 (gen_variable_die): Use it.
28166 (decls_for_scope): Output info on local static vars.
28167 (dwarf2out_finish): Process deferred locations.
28168 * varpool.c (varpool_output_debug_info): Remove.
28169
cff7525f
JH
281702009-02-27 Jan Hubicka <jh@suse.cz>
28171
28172 PR debug/39267
28173 * tree.h (TREE_PROTECTED): Fix comment.
28174 (BLOCK_HANDLER_BLOCK): Remove.
28175 (struct tree_block): Remove handler_block add body_block.
28176 (inlined_function_outer_scope_p): New.
28177 (is_body_block): Remove.
28178 * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
28179 * dwarf2out.c (is_inlined_entry_point): Remove.
28180 (add_high_low_attributes): Use inlined_function_outer_scope_p.
f10a1c6c
EB
28181 (gen_block_die): Use is_inlined_entry_point check. Remove body block
28182 code.
cff7525f
JH
28183 * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
28184 * gimplify.c (gimplify_expr): Gimplify body blocks.
f10a1c6c
EB
28185 * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
28186 block with multiple subblocks.
cff7525f
JH
28187 (dump_scope_block): Prettier output; dump more flags and info.
28188 (dump_scope_blocks): New.
28189 (remove_unused_locals): Use dump_scope_blocks.
28190 * tree-flow.h (dump_scope_blocks): Declare.
28191 * tree-cfg.c (execute_build_cfg): Dump scope blocks.
28192 * stmt.c (is_body_block): Remove.
28193 * tree-inline.c (remap_block): Copy BODY_BLOCK info.
28194 * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
28195
c20993b9
SP
281962009-02-27 Sebastian Pop <sebastian.pop@amd.com>
28197
28198 PR middle-end/39308
2ba9daa7 28199 * graphite.c (graphite_loop_normal_form): Do not call
c20993b9
SP
28200 number_of_iterations_exit from a gcc_assert.
28201
e3cba5e5
AK
282022009-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28203
60839f5d 28204 * config/s390/s390.c (s390_swap_cmp): Look for conditional
e3cba5e5
AK
28205 jumps if COND is NULL.
28206 (find_cond_jump): New function.
28207 (s390_z10_optimize_cmp): Handling for reg-reg compares added.
60839f5d 28208 * config/s390/s390.md: Remove z10_cobra attribute value.
e3cba5e5 28209
9dadeeb8
UB
282102009-02-26 Uros Bizjak <ubizjak@gmail.com>
28211
28212 * config/alpha/alpha.h (alpha_expand_mov): Return false if
28213 force_const_mem returns NULL_RTX.
28214
625d3251
EB
282152009-02-26 Jan Hubicka <jh@suse.cz>
28216
28217 PR debug/39267
28218 * cgraph.h (varpool_output_debug_info): Remove.
28219 * cgraphunit.c (varpool_output_debug_info): Remove.
28220 * dwarf2out.c (deferred_locations_struct): New struct
28221 (deferred_locations): New type.
28222 (deferred_locations_list): New static var.
28223 (deffer_location): New function.
28224 (gen_variable_die): Use it.
28225 (decls_for_scope): Output info on local static vars.
28226 (dwarf2out_finish): Process deferred locations.
28227 * varpool.c (varpool_output_debug_info): Remove.
28228
38432148 282292009-02-25 H.J. Lu <hongjiu.lu@intel.com>
8592acaf
L
28230
28231 PR rtl-optimization/39241
28232 * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
28233 to subreg_offset_representable_p.
28234
62d049cf
PB
282352009-02-25 Paolo Bonzini <bonzini@gnu.org>
28236
28237 * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
28238 execute function prototype. Get f and nregs from max_reg_num
28239 and get_insns. Remove the first backward pass as it's dead,
28240 guard the forward pass by flag_expensive_optimizations.
28241 (rest_of_handle_regmove): Delete.
28242 (pass_regmove): Replace it with regmove_optimize.
28243
f618d33e
MJ
282442009-02-25 Martin Jambor <mjambor@suse.cz>
28245
28246 PR tree-optimization/39259
28247 * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
6c6094f1 28248 calls_alloca function flags.
f618d33e
MJ
28249 (copy_bb): Set calls_setjmp and alls_alloca function flags if such
28250 calls are detected.
28251
c8a05f7c
PB
282522009-02-25 Paolo Bonzini <bonzini@gnu.org>
28253
28254 * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
28255 flags_set_1_rtx, flags_set_1_set): Delete.
28256 (regmove_optimize): Do not call mark_flags_life_zones.
28257
6d2538f5
JB
282582009-02-24 Julian Brown <julian@codesourcery.com>
28259
28260 PR target/35965
28261 * config/arm/arm.c (require_pic_register): Only set
28262 cfun->machine->pic_reg once per function.
28263
a2fa6772
SL
282642009-02-24 Sandra Loosemore <sandra@codesourcery.com>
28265
28266 * doc/invoke.texi (Link Options): Document an easier way to pass
9dadeeb8 28267 options that take arguments to the GNU linker using -Xlinker and -Wl.
a2fa6772 28268
5472de36
SE
282692009-02-24 Steve Ellcey <sje@cup.hp.com>
28270
28271 PR target/33785
28272 * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
28273
844216f3
RG
282742009-02-24 Richard Guenther <rguenther@suse.de>
28275
28276 PR debug/39285
28277 * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
28278
71adbef3 282792009-02-24 Richard Guenther <rguenther@suse.de>
8592acaf 28280 Zdenek Dvorak <ook@ucw.cz>
71adbef3
RG
28281
28282 PR tree-optimization/39233
28283 * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
28284 from converting them to a generic type.
28285
f1a558e0
SP
282862009-02-23 Sebastian Pop <sebastian.pop@amd.com>
28287
28288 PR tree-optimization/39260
28289 * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
28290 contains a condition with a real type.
28291 (build_scop_conditions_1): Conditions are always last_stmt of a bb.
28292
d8028f2c
JM
282932009-02-23 Jason Merrill <jason@redhat.com>
28294
28295 PR c++/38880
28296 * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
28297 narrowing_initializer_constant_valid_p.
2ba9daa7 28298 (narrowing_initializer_constant_valid_p): Don't return
d8028f2c
JM
28299 null_pointer_node for adding a pointer to itself.
28300
9283b513
JH
283012009-02-23 Jan Hubicka <jh@suse.cz>
28302
28303 PR c/12245
9dadeeb8
UB
28304 * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
28305 resizing.
9283b513 28306
61e04322
JH
283072009-02-23 Jan Hubicka <jh@suse.cz>
28308
9dadeeb8
UB
28309 PR tree-optimization/37709
28310 * tree.c (block_ultimate_origin): Move here from dwarf2out.
28311 * tree.h (block_ultimate_origin): Declare.
28312 * dwarf2out.c (block_ultimate_origin): Move to tree.c
61e04322
JH
28313 * tree-ssa-live.c (remove_unused_scope_block_p):
28314 Eliminate blocks containig no instructions nor live variables nor
28315 nested blocks.
28316 (dump_scope_block): New function.
28317 (remove_unused_locals): Enable removal of dead blocks by default;
9dadeeb8 28318 enable dumping at TDF_DETAILS.
61e04322 28319
38432148 283202009-02-21 H.J. Lu <hongjiu.lu@intel.com>
5339d3ea
L
28321
28322 * config/i386/i386.c (classify_argument): Don't allow COImode
28323 and OImode.
28324 (function_arg_advance_32): Don't allow OImode.
28325 (function_arg_32): Likewise.
28326 (function_value_32): Likewise.
28327 (return_in_memory_32): Likewise.
28328 (function_arg_64): Remove OImode comment.
28329
38432148 283302009-02-21 H.J. Lu <hongjiu.lu@intel.com>
f161e158
L
28331
28332 PR target/39261
28333 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
28334 ix86_expand_vector_set for V4DImode in 64bit mode only.
28335 (ix86_expand_vector_init_one_var): Likewise.
28336
dcd739a6
SP
283372009-02-21 Sebastian Pop <sebastian.pop@amd.com>
28338
28339 * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
28340
6c3b938d
RS
283412009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
28342
8e361f23 28343 PR bootstrap/39257
6c3b938d
RS
28344 * loop-iv.c: Revert last change.
28345 * emit-rtl.c: Likewise.
28346
38432148 283472009-02-21 H.J. Lu <hongjiu.lu@intel.com>
4c64d3dd
L
28348
28349 PR target/39256
28350 * config/i386/i386.c (type_natural_mode): Remove an extra
28351 space in the warning message.
28352 (function_value_32): Handle 32-byte vector modes.
28353 (return_in_memory_32): Likewise.
28354
2ec62529
RS
283552009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
28356
28357 * loop-iv.c (truncate_value): New function.
28358 (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
28359 of lowpart_subreg.
28360 (lowpart_subreg): Move to...
28361 * emit-rtl.c: ...here.
28362
ecb8c3cc 283632009-02-21 Danny Smith <dannysmith@users.sourceforge.net>
f814e489 28364
ecb8c3cc
DS
28365 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
28366 accidental and undocumented change at revision 140860.
28367
ae46a823
JM
283682009-02-21 Joseph Myers <joseph@codesourcery.com>
28369
28370 * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
28371 take gimple_seq * arguments.
28372 (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
28373 types_compatible_p langhook.
28374
07d8efe3 283752009-02-20 Mark Mitchell <mark@codesourcery.com>
f814e489 28376 Joseph Myers <joseph@codesourcery.com>
07d8efe3
MM
28377
28378 * config/arm/arm.c (arm_builtin_va_list): New function.
28379 (arm_expand_builtin_va_start): Likewise.
28380 (arm_gimplify_va_arg_expr): Likewise.
28381 (TARGET_BUILD_BUILTIN_VA_LIST): Define.
28382 (TARGET_BUILD_BUILTIN_VA_START): Likewise.
28383 (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
28384 (va_list_type): New variable.
28385 (arm_mangle_type): Mangle va_list_type appropriately.
28386
b1fb9f56
JJ
283872009-02-20 Jakub Jelinek <jakub@redhat.com>
28388
28389 PR middle-end/39157
28390 * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
28391 * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
28392 * params.def (loop-invariant-max-bbs-in-loop): New parameter.
28393 * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
28394 parameter to 1000 for -O1 by default.
28395 * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
28396 parameter.
28397 * loop-invariant.c: Include params.h.
28398 (move_loop_invariants): Don't call move_single_loop_invariants on
28399 very large loops.
28400
5bc0807c
JM
284012009-02-20 Jaka Mocnik <jaka@xlab.si>
28402
28403 * calls.c (emit_library_call_value_1): Use slot_offset instead of
28404 offset when calculating bounds for indexing stack_usage_map. Fixes
28405 a buffer overflow with certain target setups.
28406
c69cd1f5
JJ
284072009-02-20 Jakub Jelinek <jakub@redhat.com>
28408
28409 PR target/39240
28410 * calls.c (expand_call): Clear try_tail_call if caller and callee
28411 disagree in promotion of function return value.
28412
09812622
JJ
284132009-02-19 Jakub Jelinek <jakub@redhat.com>
28414
28415 PR target/39175
28416 * c-common.c (c_determine_visibility): If visibility changed and
28417 DECL_RTL has been already set, call make_decl_rtl to update symbol
28418 flags.
28419
68017cb4
L
284202009-02-19 H.J. Lu <hongjiu.lu@intel.com>
28421
28422 PR c++/39188
28423 * varasm.c (assemble_variable): Don't check DECL_NAME when
28424 globalizing a variable.
28425
ab4194da
JM
284262009-02-19 Joseph Myers <joseph@codesourcery.com>
28427
28428 PR c/38483
28429 * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
28430 expression before any __builtin_trap call.
28431 * c-typeck.c (build_function_call): Convert and check function
28432 arguments before generating a call to a trap. Evaluate the
28433 function arguments before the trap.
28434
6b67572e
UB
284352009-02-19 Uros Bizjak <ubizjak@gmail.com>
28436
28437 PR target/39228
28438 * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
28439 (UNSPEC_FXAM_MEM): New unspec.
28440 (fxam<mode>2_i387_with_temp): New insn and split pattern.
28441 (isinf<mode>2): Use MODEF mode iterator. Force operand[1] through
28442 memory using fxam<mode>2_i387_with_temp to remove excess precision.
28443
9e39dba6
RG
284442009-02-19 Richard Guenther <rguenther@suse.de>
28445
28446 PR tree-optimization/39207
28447 PR tree-optimization/39074
28448 * tree-ssa-structalias.c (storedanything_id, var_storedanything,
28449 storedanything_tree): New.
28450 (do_ds_constraint): Simplify ANYTHING shortcutting. Update
6b67572e 28451 the STOREDANYTHING solution if the lhs solution contains ANYTHING.
9e39dba6
RG
28452 (build_succ_graph): Add edges from STOREDANYTHING to all
28453 non-direct nodes.
28454 (init_base_vars): Initialize STOREDANYTHING.
28455 (compute_points_to_sets): Free substitution info after
28456 building the succ graph.
28457 (ipa_pta_execute): Likewise.
28458
28459 * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
28460 field.
28461 (do_ds_constraint): Do not add to special var or non-pointer
28462 field solutions.
28463 (type_could_have_pointers): Split out from ...
28464 (could_have_pointers): ... here. For arrays use the element type.
28465 (create_variable_info_for): Initialize may_have_pointers.
28466 (new_var_info): Likewise.
28467 (handle_lhs_call): Make the HEAP variable unknown-sized.
28468 (intra_create_variable_infos): Use a type with pointers for
28469 PARM_NOALIAS, make it unknown-sized.
28470
fd7b2603
L
284712009-02-18 H.J. Lu <hongjiu.lu@intel.com>
28472
28473 PR target/39224
6b67572e 28474 * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
fd7b2603 28475
98b80692
JM
284762009-02-18 Jason Merrill <jason@redhat.com>
28477
28478 PR target/39179
28479 * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
28480 value if DECL_EXTERNAL.
28481 * tree-sra.c (sra_walk_gimple_assign): Likewise.
28482 * target.h (gcc_target::binds_local_p): Clarify "module".
28483 * tree.h (TREE_PUBLIC): Clarify "module".
28484
0705d3f4
L
284852009-02-17 Xuepeng Guo <xuepeng.guo@intel.com>
28486
28487 PR target/38891
28488 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
28489 initialization for MS_ABI prior to the hunk of !TARGET_MMX.
28490
bce08d50
L
284912009-02-17 H.J. Lu <hongjiu.lu@intel.com>
28492
28493 PR target/39082
28494 * c.opt (Wabi): Support C and ObjC.
28495 (Wpsabi): New.
28496
28497 * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
28498
28499 * config/i386/i386.c (classify_argument): Warn once about the ABI
28500 change when passing union with long double.
28501
28502 * doc/invoke.texi: Update -Wabi for warning psABI changes.
28503
5600f233
JM
285042009-02-18 Joseph Myers <joseph@codesourcery.com>
28505
28506 PR c/35447
28507 * c-parser.c (c_parser_compound_statement): Always enter and leave
28508 a scope.
28509
8cd01fe6
JDA
285102009-02-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28511
28512 PR target/34587
28513 * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
28514
418df9d7
JJ
285152009-02-18 Jakub Jelinek <jakub@redhat.com>
28516
28517 PR tree-optimization/36922
28518 * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
28519 * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
28520 Likewise.
28521
082d2ebb
RS
285222009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
28523
28524 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
28525 to 0 for EABI64.
28526
17de576c
RS
285272009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
28528
28529 * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
28530
6d8d5435
RS
285312009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
28532
28533 * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
28534 tree sharing.
28535
e69ff910
RB
285362009-02-17 Ruan Beihong <ruanbeihong@gmail.com>
28537 Richard Sandiford <rdsandiford@googlemail.com>
28538
28539 * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
28540 * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
28541 (loongson_biadd): ...this.
28542
6b24ee26
RG
285432009-02-17 Richard Guenther <rguenther@suse.de>
28544
28545 PR tree-optimization/39202
28546 * tree-ssa-structalias.c (do_structure_copy): Before collapsing
28547 a var make sure to follow existing collapses.
28548
91ab2c86
RG
285492009-02-17 Richard Guenther <rguenther@suse.de>
28550
28551 PR middle-end/39214
28552 * langhooks.c (lhd_print_error_function): Check for NULL block.
28553
73a63870
RG
285542009-02-17 Richard Guenther <rguenther@suse.de>
28555
28556 PR tree-optimization/39204
28557 * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
28558 of the PHI arg.
28559
0e08f686
UB
285602009-02-17 Uros Bizjak <ubizjak@gmail.com>
28561
28562 * config/soft-fp/double.h: Update from glibc CVS.
28563
a60b7ddb
RG
285642009-02-17 Richard Guenther <rguenther@suse.de>
28565
28566 PR tree-optimization/39207
28567 * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
28568 strict-aliasing warnings for pointers pointing to NULL.
28569
a47e20fd
JM
285702009-02-16 Joseph Myers <joseph@codesourcery.com>
28571
28572 PR c/35446
28573 * c-parser.c (c_parser_braced_init): Call pop_init_level when
28574 skipping until next close brace.
28575
50aab7dc
L
285762009-02-16 H.J. Lu <hongjiu.lu@intel.com>
28577
28578 PR target/37049
28579 * config/i386/i386.c (ix86_expand_push): Set memory alignment
28580 to function argument boundary.
28581
68e53db0
HS
285822009-02-16 Hariharan Sandanagobalane <hariharan@picochip.com>
28583
28584 * config/picochip/picochip.md (lea_add): Allow any nonimmediate
28585 in the lea_add. Reload eventually constraints it properly.
0d50d55a 28586 * config/picochip/constraints.md: Remove the target constraint
68e53db0
HS
28587 "b", since it is not needed anymore.
28588
09e361bb
JJ
285892009-02-16 Jakub Jelinek <jakub@redhat.com>
28590
28591 * gthr-dce.h: Uglify function parameter and local variable names.
28592 * gthr-gnat.h: Likewise.
28593 * gthr-mipssde.h: Likewise.
28594 * gthr-nks.h: Likewise.
28595 * gthr-posix95.h: Likewise.
28596 * gthr-posix.h: Likewise.
28597 * gthr-rtems.h: Likewise.
28598 * gthr-single.h: Likewise.
28599 * gthr-solaris.h: Likewise.
28600 * gthr-tpf.h: Likewise.
28601 * gthr-vxworks.h: Likewise.
28602 * gthr-win32.h: Likewise.
28603
47f5a48f
L
286042009-02-15 H.J. Lu <hongjiu.lu@intel.com>
28605
28606 PR target/39196
28607 * config/i386/i386.md: Restrict the new peephole2 to move
28608 between MMX/SSE registers.
28609
68c9ab45
RG
286102009-02-15 Richard Guenther <rguenther@suse.de>
28611
28612 Revert
28613 2009-02-13 Richard Guenther <rguenther@suse.de>
28614
28615 * configure.ac: Enable LFS.
28616 * configure: Re-generate.
28617 * config.in: Likewise.
28618
d7815554
UW
286192009-02-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28620
28621 * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
28622 spu_srqwbyte, spu_srqwbytebc): Define.
28623 * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
28624 spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
28625 * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
28626 "shrqby_<mode>"): New insn-and-split patterns.
28627 * config/spu/spu.c (expand_builtin_args): Determine and return
28628 number of operands using spu_builtin_description data.
28629 (spu_expand_builtin_1): Use it.
28630
c208436c
SE
286312009-02-13 Steve Ellcey <sje@cup.hp.com>
28632
28633 PR target/38056
28634 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
28635 TARGET_CONST_GP.
28636
c2e7ba7e
L
286372009-02-13 H.J. Lu <hongjiu.lu@intel.com>
28638
28639 PR target/39149
28640 * config/i386/i386.c (override_options): Correct warning
6c6094f1 28641 messages for -malign-loops, -malign-jumps and -malign-functions.
c2e7ba7e 28642
72f4e3a7
L
286432009-02-13 H.J. Lu <hongjiu.lu@intel.com>
28644
28645 PR target/39152
28646 * config/i386/i386.md: Restrict the new peephole2 to move
28647 between the general purpose registers.
28648
53f648e2
L
286492009-02-13 H.J. Lu <hongjiu.lu@intel.com>
28650
28651 PR target/39162
28652 * config/i386/i386.c (type_natural_mode): Add a new argument.
6b67572e 28653 Return the original mode and warn ABI change if vector size is 32byte.
53f648e2
L
28654 (function_arg_advance): Updated.
28655 (function_arg): Likewise.
28656 (ix86_function_value): Likewise.
28657 (ix86_return_in_memory): Likewise.
28658 (ix86_sol10_return_in_memory): Likewise.
28659 (ix86_gimplify_va_arg): Likewise.
28660 (function_arg_32): Don't warn ABX ABI change here.
28661 (function_arg_64): Likewise.
28662
38432148 286632009-02-13 Bernd Schmidt <bernd.schmidt@analog.com>
b1c92d54
BS
28664
28665 * loop-iv.c (implies_p): In the final case, test that operands 0
28666 of the two comparisons match.
28667
dd2139e7
BS
28668 * config/bfin/bfin.c (find_prev_insn_start): New function.
28669 (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
28670 (find_next_insn_start): Move.
28671
601b3e1a
RG
286722009-02-13 Richard Guenther <rguenther@suse.de>
28673
28674 * configure.ac: Enable LFS.
28675 * configure: Re-generate.
28676 * config.in: Likewise.
28677
f007042e
JM
286782009-02-13 Joseph Myers <joseph@codesourcery.com>
28679
28680 PR c/35444
28681 * c-parser.c (c_parser_parms_list_declarator): Discard pending
28682 sizes on syntax error after some arguments have been parsed.
28683
3f238e8b
JJ
286842009-02-12 Jakub Jelinek <jakub@redhat.com>
28685
28686 * doc/invoke.texi (-fira): Remove.
28687
328e13b7
L
286882009-02-12 H.J. Lu <hongjiu.lu@intel.com>
28689
28690 * caller-save.c: Replace regclass.c with reginfo.c in comments.
28691 * recog.c: Likewise.
28692 * rtl.h: Likewise.
28693
c252db20
L
286942009-02-12 Uros Bizjak <ubizjak@gmail.com>
28695
28696 * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
28697 (umul_ppmm): Likewise.
28698 (count_leading_zeros): Likewise.
28699 (count_trailing_zeros): Likewise.
28700 (UMUL_TIME): Likewise.
28701
287022009-02-12 H.J. Lu <hongjiu.lu@intel.com>
28703
ba181049
UB
28704 * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
28705 soft-fp/t-softfp to tmake_file.
c252db20
L
28706
28707 * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
ba181049
UB
28708 (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
28709 (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
28710 IA64_BUILTIN_INFQ]: New.
c252db20
L
28711 (ia64_init_builtins): Initialize __builtin_infq,
28712 __builtin_fabsq and __builtin_copysignq if not HPUX.
28713 (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
28714 IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
28715
28716 * config/ia64/lib1funcs.asm (__divtf3): Define only if
28717 SHARED is defined.
28718 (__fixtfti): Likewise.
28719 (__fixunstfti): Likewise.
28720 (__floattitf): Likewise.
28721
28722 * config/ia64/libgcc-glibc.ver: New.
28723 * config/ia64/t-fprules-softfp: Likewise.
28724 * config/ia64/sfp-machine.h: Likewise.
28725
28726 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
28727 (LIBGCC2_TF_CEXT): Likewise.
28728 (TF_SIZE): Likewise.
28729 (TARGET_INIT_LIBFUNCS): Likewise.
28730
ba181049 28731 * config/ia64/t-glibc (SHLINB_MAPFILES):
6b67572e 28732 Add $(srcdir)/config/ia64/libgcc-glibc.ver.
c252db20 28733
f13eae6a
L
287342009-02-12 H.J. Lu <hongjiu.lu@intel.com>
28735
28736 * config/i386/i386.c (construct_container): Rewrite processing
28737 BLKmode with X86_64_SSE_CLASS.
28738
12019aec
L
287392009-02-12 Paolo Bonzini <bonzini@gnu.org>
28740
28741 PR target/39152
28742 * config/i386/i386.md: Replace simplify_replace_rtx with
28743 replace_rtx in the new peephole2.
28744
28c11eb3
NS
287452009-02-12 Nathan Sidwell <nathan@codesourcery.com>
28746
28747 * doc/invoke.texi (Optimize Options): Stop claiming inlining and
28748 loop unrolling do not happen at -O2.
28749
c7b94907
MM
287502009-02-12 Michael Matz <matz@suse.de>
28751
28752 * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
28753
61e98967
JJ
287542009-02-12 Jakub Jelinek <jakub@redhat.com>
28755
28756 * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
28757 for -g3.
28758
a2a237b5
BE
287592009-02-12 Ben Elliston <bje@au.ibm.com>
28760
28761 * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
28762 patterns when updating the back chain. Missed in the 2009-02-10
28763 change.
28764
853eda8d
JJ
287652009-02-11 Janis Johnson <janis187@us.ibm.com>
28766
28767 * doc/extend.texi (Decimal Floating Types): Update identifier of
28768 draft TR and list of missing support.
28769
3ad6b266
JJ
287702009-02-11 Jakub Jelinek <jakub@redhat.com>
28771
28772 PR middle-end/39154
28773 * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
28774 bit to variable length decl's flags, add it also to its
28775 pointer replacement variable.
28776
b058b753
UB
287772009-02-11 Uros Bizjak <ubizjak@gmail.com>
28778 Jakub Jelinek <jakub@redhat.com>
28779
28780 PR target/39118
28781 * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
28782 (memory_blockage): New expander.
28783 (*memory_blockage): New insn pattern.
28784 * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
28785 instead of general blockage at the end of function prologue when
28786 frame pointer is used to access red zone area. Do not emit blockage
28787 when profiling, it is emitted in generic code.
28788 (ix86_expand_epilogue): Emit memory_blockage at the beginning of
28789 function epilogue when frame pointer is used to access red zone area.
28790
bab64f23
PB
287912009-02-11 Paolo Bonzini <bonzini@gnu.org>
28792
0ce6dcfa 28793 PR target/38824
bab64f23
PB
28794 * config/i386/i386.md: Add two new peephole2 to avoid mov followed
28795 by arithmetic with memory operands.
28796 * config/i386/predicates.md (commutative_operator): New.
28797
8fd94bda
JJ
287982009-02-10 Janis Johnson <janis187@us.ibm.com>
28799
28800 * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
28801 bulleted lists.
28802
794511d2
EB
288032009-02-10 Eric Botcazou <ebotcazou@adacore.com>
28804
28805 * alias.h (record_alias_subset): Declare.
28806 * alias.c (record_alias_subset): Make global.
28807
6da7fc87
NC
288082009-02-10 Nick Clifton <nickc@redhat.com>
28809
28810 * tree-parloops.c: Change license to GPLv3.
28811 * ipa-struct-reorg.c: Change license to GPLv3.
28812 * ipa-struct-reorg.h: Change license to GPLv3.
28813
a03813c8
SE
288142009-02-10 Steve Ellcey <sje@cup.hp.com>
28815
28816 PR c/39084
28817 * c-decl.c (start_struct): Return NULL on error.
28818
fc3103e7
JJ
288192009-02-10 Jakub Jelinek <jakub@redhat.com>
28820
9b43d37b
JJ
28821 PR middle-end/39124
28822 * cfgloopmanip.c (remove_path): Call remove_bbs after
28823 cancel_loop_tree, not before it.
28824
fc3103e7 28825 PR target/39139
b058b753 28826 * function.h (struct function): Add has_local_explicit_reg_vars bit.
fc3103e7
JJ
28827 * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
28828 VAR_DECLs were seen.
28829 * tree-ssa-live.c (remove_unused_locals): Recompute
28830 cfun->has_local_explicit_reg_vars.
28831 * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
28832 copies or clearings if cfun->has_local_explicit_reg_vars.
28833
dbf9ee15
UB
288342009-02-10 Uros Bizjak <ubizjak@gmail.com>
28835
28836 PR target/39118
28837 * config/i386/i386.c (expand_prologue): Emit blockage at the end
28838 of function prologue when frame pointer is used to access
28839 red zone area.
28840
bdec4dc7
RG
288412009-02-10 Richard Guenther <rguenther@suse.de>
28842
28843 PR middle-end/39127
28844 * gimplify.c (gimple_regimplify_operands): Always look if
28845 we need to create a temporary.
28846
7cae94fc
RG
288472009-02-10 Richard Guenther <rguenther@suse.de>
28848
28849 PR tree-optimization/39132
28850 * tree-loop-distribution.c (todo): New global var.
28851 (generate_memset_zero): Trigger TODO_rebuild_alias.
28852 (tree_loop_distribution): Return todo.
28853
a8800687
L
288542009-02-10 H.J. Lu <hongjiu.lu@intel.com>
28855
28856 PR target/39119
28857 * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
28858 (x86_64_reg_class_name): Removed.
28859 (classify_argument): Return 0 if bytes > 32. Return 0 if the
28860 first one isn't X86_64_SSE_CLASS or any other ones aren't
28861 X86_64_SSEUP_CLASS when size > 16bytes. Don't turn
28862 X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
28863 is X86_64_SSEUP_CLASS. Set AVX modes to 1 X86_64_SSE_CLASS
28864 and 3 X86_64_SSEUP_CLASS.
28865 (construct_container): Remove X86_64_AVX_CLASS. Handle 4
28866 registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
28867
d4bacef0
BE
288682009-02-10 Ben Elliston <bje@au.ibm.com>
28869
28870 * config/rs6000/rs6000.md (allocate_stack): Always use an update
28871 form instruction to update the stack back chain word, even if the
28872 user has disabled the generation of update instructions.
28873 (movdi_<mode>_update_stack): New.
28874 (movsi_update_stack): Likewise.
28875 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
28876 always use an update form instruction to update the stack back
28877 chain word.
28878
01d7d2f3
SP
288792009-02-09 Sebastian Pop <sebastian.pop@amd.com>
28880
28881 PR middle-end/38953
b058b753
UB
28882 * graphite.c (if_region_set_false_region): After moving a region in
28883 the false branch of a condition, remove the empty dummy basic block.
01d7d2f3
SP
28884 (gloog): Remove wrong fix for PR38953.
28885
e41e2ab4
UW
288862009-02-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28887
28888 * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
28889 generation due to implicit sign extension.
28890
4bb07c5d
EB
288912009-02-09 Eric Botcazou <ebotcazou@adacore.com>
28892
28893 PR middle-end/38981
28894 * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
28895 at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
28896
f060a261
RG
288972009-02-09 Richard Guenther <rguenther@suse.de>
28898
28899 PR middle-end/35202
28900 * convert.c (convert_to_real): Disable (float)fn((double)x)
28901 to fnf(x) conversion if errno differences may occur and
28902 -fmath-errno is set.
28903
5a7e237c
AS
289042009-02-07 Anatoly Sokolov <aesok@post.ru>
28905
28906 * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
28907 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
28908 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
28909
feab5a67
JM
289102009-02-06 Joseph Myers <joseph@codesourcery.com>
28911
28912 PR c/35434
28913 * c-common.c (handle_alias_attribute): Disallow attribute for
28914 anything not a FUNCTION_DECL or VAR_DECL.
28915
90ef2296
JJ
289162009-02-06 Janis Johnson <janis187@us.ibm.com>
28917
28918 PR c/39035
28919 * real.c (do_compare): Special-case compare of zero against
28920 decimal float value.
28921
1de2c900
JM
289222009-02-06 Joseph Myers <joseph@codesourcery.com>
28923
28924 PR c/36432
28925 * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
28926 as indicating flexible array members unless the field itself is
28927 being declarared as the incomplete array.
28928
e901811a
JH
289292009-02-06 Jan Hubicka <jh@suse.cz>
28930
28931 PR tree-optimization/38844
28932 * ipa-inline.c (try_inline): Stop inlining recursion when edge
28933 is already inlined.
28934
3cfa762b
RG
289352009-02-06 Richard Guenther <rguenther@suse.de>
28936
28937 PR middle-end/38977
28938 * tree-cfg.c (need_fake_edge_p): Force a fake edge for
28939 fork because we may expand it as __gcov_fork.
28940
8506528c
NC
289412009-02-06 Nick Clifton <nickc@redhat.com>
28942
dbf9ee15 28943 * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
8506528c 28944
85169114
PB
289452009-02-06 Paolo Bonzini <bonzini@gnu.org>
28946
28947 PR tree-optimization/35659
28948 * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
28949 vn_phi_eq): Shortcut if hashcode does not match.
28950 (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
28951 NULL operands.
28952 * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
28953 and avoid iterative_hash_expr.
28954 (FOR_EACH_VALUE_ID_IN_SET): New.
28955 (value_id_compare): Remove.
28956 (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
28957 sort expressions by value id.
28958
6d39673d
KK
289592009-02-05 Kaz Kojima <kkojima@gcc.gnu.org>
28960
28961 PR target/38991
28962 * config/sh/predicates.md (general_movsrc_operand): Don't check
28963 the subreg of system registers here.
28964
e6e1c050
JJ
289652009-02-05 Jakub Jelinek <jakub@redhat.com>
28966
28967 PR c++/39106
28968 * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
28969 on the copied decl.
28970
65a74b5d
PB
289712009-02-05 Paolo Bonzini <bonzini@gnu.org>
28972
28973 PR rtl-optimization/39110
28974 * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
28975 addresses, not aligned ones.
28976
08e14b2a
DB
289772009-02-05 Daniel Berlin <dberlin@dberlin.org>
28978 Richard Guenther <rguenther@suse.de>
28979
28980 PR tree-optimization/39100
28981 * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
28982 comment says and add edges.
28983
5006381c
JM
289842009-02-05 Joseph Myers <joseph@codesourcery.com>
28985
28986 PR c/35435
28987 * c-common.c (handle_tls_model_attribute): Ignore attribute for
28988 non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
28989
2ba9daa7 289902009-02-04 Tobias Grosser <grosser@fim.uni-passau.de>
b0789219
TG
28991
28992 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
28993 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
28994 register_bb_in_sese, new_sese, free_sese): Moved.
28995 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
28996 outermost_loop_in_scop, build_scop_iteration_domain,
28997 expand_scalar_variables_ssa_name, get_vdef_before_scop,
28998 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
28999 Use loop_in_sese_p instead of loop_in_scop_p.
29000 (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
29001 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
29002 (scopdet_basic_block_info): Fix bug in scop detection.
29003 (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
29004 eq_loop_to_cloog_loop): Remove.
29005 (nb_loops_around_loop_in_scop, nb_loop
29006 ref_nb_loops): Moved here...
29007 * graphite.h (ref_nb_loops): ... from here.
29008 (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
29009 (loop_domain_dim, loop_iteration_vector_dim): Remove.
29010 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
b0789219 29011
48e8382e
PB
290122009-02-04 Paolo Bonzini <bonzini@gnu.org>
29013 Hans-Peter Nilsson <hp@axis.com>
29014
29015 PR rtl-optimization/37889
29016 * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
29017 Move offset handling from PLUS to before the switch. Use new
29018 arguments when considering SYMBOL_REFs too.
29019 (rtx_addr_can_trap_p): Pass dummy offset and size.
29020 (enum may_trap_p_flags): Remove.
29021 (may_trap_p_1): Pass size from MEM_SIZE.
29022
29023 PR rtl-optimization/38921
29024 * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
29025 * rtl.h (may_trap_after_code_motion_p): Delete prototype.
29026 * rtlanal.c (may_trap_after_code_motion_p): Delete.
29027 (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
29028
69349ea5
L
290292009-02-04 H.J. Lu <hongjiu.lu@intel.com>
29030
29031 AVX Programming Reference (January, 2009)
29032 * config/i386/sse.md (*vpclmulqdq): New.
29033
b545e411
JJ
290342009-02-04 Jakub Jelinek <jakub@redhat.com>
29035
29036 PR tree-optimization/38977
29037 PR gcov-profile/38292
bf9b2cc9 29038 * calls.c (special_function_p): Disregard __builtin_ prefix.
b545e411 29039
5b43bf05
HS
290402009-02-04 Hariharan Sandanagobalane <hariharan@picochip.com>
29041
29042 * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
29043 non-indexable addresses even before reload.
29044
062c4bb3
JM
290452009-02-03 Joseph Myers <joseph@codesourcery.com>
29046
29047 PR c/29129
29048 * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
29049 as having variable size. Do not give an error for unnamed
29050 parameters with [*] declarators. Give a warning for type names
29051 with [*] declarators and mark them as variable size.
29052 * c-parser.c (c_parser_sizeof_expression): Do not give an error
29053 for sizeof applied to [*] type names.
29054
6175f578
AP
290552009-02-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
29056
29057 PR C++/36607
29058 * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
29059
d4f4bc84
JJ
290602009-02-03 Jakub Jelinek <jakub@redhat.com>
29061
29062 * gcc.c (process_command): Update copyright notice dates.
29063 * gcov.c (print_version): Likewise.
29064 * gcov-dump.c (print_version): Likewise.
29065 * mips-tfile.c (main): Likewise.
29066 * mips-tdump.c (main): Likewise.
29067
f6294de7
JM
290682009-02-03 Joseph Myers <joseph@codesourcery.com>
29069
29070 PR c/35433
29071 * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
29072 for composite type involving a zero-length array type.
29073
754ccf7c
JJ
290742009-02-03 Jakub Jelinek <jakub@redhat.com>
29075
70f16287
JJ
29076 PR target/35318
29077 * function.c (match_asm_constraints_1): Skip over
29078 initial optional % in the constraint.
29079
754ccf7c
JJ
29080 PR inline-asm/39059
29081 * c-parser.c (c_parser_postfix_expression): If fixed point is not
29082 supported, don't accept FIXED_CSTs.
29083 * c-decl.c (finish_declspecs): Error if fixed point is not supported
29084 and _Sat is used without _Fract/_Accum. Set specs->type to
29085 integer_type_node for cts_fract/cts_accum if fixed point is not
29086 supported.
29087
965fdadf
CM
290882009-02-02 Catherine Moore <clm@codesourcery.com>
29089
dbf9ee15 29090 * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
965fdadf 29091
2e8a796f
RS
290922009-02-02 Richard Sandiford <rdsandiford@googlemail.com>
29093
29094 * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
29095 (ABI_HAS_64BIT_SYMBOLS): Use it.
29096 (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
29097
e0079468
PB
290982009-02-02 Paul Brook <paul@codesourcery.com>
29099
29100 * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
29101
eca72963
JJ
291022009-02-02 Jakub Jelinek <jakub@redhat.com>
29103
29104 PR inline-asm/39058
29105 * recog.h (asm_operand_ok): Add constraints argument.
29106 * recog.c (asm_operand_ok): Likewise. If it is set, for digits
29107 recurse on matching constraint.
29108 (check_asm_operands): Pass constraints as 3rd argument to
29109 asm_operand_ok. Don't look up matching constraint here.
29110 * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
29111 to asm_operand_ok.
29112
b5bde9ff
BE
291132009-02-02 Ben Elliston <bje@au.ibm.com>
29114
29115 * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
29116 TARGET_NARROW_VOLATILE_BITFIELD macro names.
29117
30f3e427
JDA
291182009-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29119
be7659ba
JDA
29120 * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
29121 information. Remove some obsolete information. Reorganize.
29122
30f3e427
JDA
29123 * config/pa/fptr.c: Revert license to GPL 2.
29124 * config/pa/milli64.S: Likewise.
29125
3cbfaf98
DK
291262009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
29127
29128 PR target/38904
29129 * mkmap-flat.awk (END): Use pe_dll command-line arg to pass
29130 LIBRARY name in, instead of hard-coding it.
29131 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add an
29132 extra target make frag to tmake_files according to EH model.
29133 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
29134 * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Add new target
29135 frags that define makefile variable EH_MODEL appropriately.
29136 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Add comment.
29137 * config/i386/cygwin.h (LIBGCC_EH_EXTN): Define to nothing or
29138 to "-sjlj" according to type of EH configured.
29139 (LIBGCC_SONAME): Concatenate it to shared library base name.
29140 * config/i386/mingw32.h (LIBGCC_EH_EXTN): Define to "_dw2" or
29141 to "_sjlj" according to type of EH configured.
29142 (LIBGCC_SONAME): Concatenate it to shared library base name.
29143 * config/i386/t-cygming (SHLIB_SONAME): Use EH_MODEL.
29144 (SHLIB_LINK): Add missing semicolon to if-else construct.
29145 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
29146 string value of "pe_dll" command-line option.
29147 * config/i386/t-cygwin (SHLIB_EH_EXTENSION): New helper.
29148 (SHLIB_SONAME): Use it when overriding t-cygming default.
29149 (SHLIB_IMPLIB): Override t-cygming default.
29150 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
29151 string value of "pe_dll" command-line option.
29152
8d0b6068
DK
291532009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
29154
29155 PR target/38952
29156 * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
bf9b2cc9 29157 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
8d0b6068 29158
14c28276
RG
291592009-01-31 Richard Guenther <rguenther@suse.de>
29160
29161 PR tree-optimization/38937
29162 * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
29163 computing the transitive closure.
29164
5f4d82c2
RG
291652009-01-30 Richard Guenther <rguenther@suse.de>
29166
29167 PR tree-optimization/39041
29168 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
29169 Propagate variable indices only if the types match for this stmt.
29170
d0728ae0
JJ
291712009-01-30 Jakub Jelinek <jakub@redhat.com>
29172
29173 PR target/39013
29174 * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
29175 inline but never defined.
29176
6b67572e 291772009-01-30 Wolfgang Gellerich <gellerich@de.ibm.com>
9fec758d
WG
29178
29179 * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
29180 (*insv_h_di_reg_extimm): New insn.
29181 (*insv_l<mode>_reg_extimm): New insn.
29182
291832009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
9e8be1e4
HS
29184
29185 * config/picochip/picochip.c (flag_conserve_stack): set
29186 PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
29187 fconserve-stack. Reduce call-overhead used by inliner.
29188
9fec758d 291892009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
df9198ab
HS
29190
29191 PR/38157
29192 * common.opt (flag_conserve_stack): Initialised to zero.
29193
7f1c539c
KT
291942009-01-30 Kai Tietz <kai.tietz@onevision.com>
29195
29196 PR/39002
29197 * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
29198 (ix86_expand_epilogue): Take nsseregs in account to use proper restore
29199 method.
29200
3631be48
L
292012009-01-29 H.J. Lu <hongjiu.lu@intel.com>
29202
29203 * ira-color.c (allocno_reload_assign): Update comments.
29204 * regmove.c (regmove_optimize): Likewise.
29205
29206 * ra.h: Removed.
29207
416ac4d4
RM
292082009-01-29 Robert Millan <rmh@aybabtu.com>
29209
60839f5d
EB
29210 * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
29211 * config/i386/kopensolaris-gnu.h: New file. Undefine
416ac4d4 29212 `MD_UNWIND_SUPPORT'.
60839f5d 29213 * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
416ac4d4 29214
d5e54bc1
KH
292152009-01-29 Kazu Hirata <kazu@codesourcery.com>
29216
29217 PR tree-optimization/39007
29218 * tree-loop-distribution.c (generate_builtin): Use
29219 recompute_dominator to compute the immediate dominator of the
29220 basic block just after the loop.
29221
38432148 292222009-01-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
e9e077fa
RO
29223
29224 * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
29225 (ASM_OUTPUT_DWARF_PCREL): Define.
29226
38432148 292272009-01-29 Vladimir Makarov <vmakarov@redhat.com>
2af2dbdc
VM
29228
29229 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
29230 * doc/passes.texi: Remove entries about regclass, local-alloc, and
29231 global. Modify entries about regmove and IRA.
29232
29233 * ra-conflict.c: Remove the file.
29234
29235 * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
29236
29237 * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
29238 (pass_regclass_init): Rename to pass_reginfo_init.
29239
29240 * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
29241
29242 * toplev.h (flag_ira): Remove.
29243
29244 * caller-save.c (setup_save_areas): Remove flag_ira.
29245
bf9b2cc9 29246 * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
2af2dbdc
VM
29247
29248 * global.c: Remove the file.
29249
ba20e309 29250 * opts.c (decode_options): Remove flag_ira.
2af2dbdc
VM
29251
29252 * hard-reg-set.h (losing_caller_save_reg_set): Remove.
29253
29254 * regmove.c: Modify file description.
29255 (find_use_as_address, try_auto_increment): Define them only if
29256 AUTO_INC_DEC is defined.
29257 (replacement_quality, replace_in_call_usage, fixup_match_1,
29258 stable_and_no_regs_but_for_p): Remove.
29259 (reg_set_in_bb): Make it static.
29260 (regmove_optimize): Remove flag_ira and code which worked for
29261 !flag_ira.
29262
29263 * local-alloc.c: Remove the file.
29264
29265 * common.opt (fira): Remove.
29266
29267 * ira.c: Include except.h.
29268 (eliminable_regset): Move from global.c.
29269 (mark_elimination): Ditto. Remove flag_ira.
29270 (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
29271 equiv_mem_modified, validate_equiv_mem_from_store,
29272 validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
29273 contains_replace_regs, memref_referenced_p, memref_used_between_p,
29274 no_equiv, recorded_label_ref): Move from local-alloc.c.
29275 (update_equiv_regs): Ditto. Make it static.
29276 (print_insn_chain, print_insn_chains): Move it from global.c.
bf9b2cc9 29277 (pseudo_for_reload_consideration_p): Ditto. Remove flag_ira.
2af2dbdc
VM
29278 (build_insn_chain): Ditto. Make it static.
29279 (ra_init_live_subregs): Move from ra-conflict.c. Make it static.
29280 Rename to init_live_subregs.
29281 (gate_ira): Remove flag_ira.
29282
29283 * regclass.c: Rename reginfo.c. Change file description.
29284 (FORBIDDEN_INC_DEC_CLASSES): Remove.
dbf9ee15 29285 (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
2af2dbdc
VM
29286 (init_reg_sets_1): Remove code for evaluation of
29287 reg_class_superclasses and losing_caller_save_reg_set.
29288 (init_regs): Remove init_reg_autoinc.
29289 (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
29290 ok_for_base_p_nonstrict): Remove.
bf9b2cc9 29291 (regclass_init): Rename to reginfo_init. Don't initialize init_cost.
2af2dbdc
VM
29292 (pass_regclass_init): Rename to pass_reginfo_init. Modify
29293 corresponding entries.
29294 (dump_regclass, record_operand_costs, scan_one_insn,
29295 init_reg_autoinc, regclass, record_reg_classes, copy_cost,
29296 record_address_regs, auto_inc_dec_reg_p): Remove.
29297 (gt-regclass.h): Rename to gt-reginfo.h.
29298
29299 * rtl.h (dump_global_regs, retry_global_alloc,
bf9b2cc9 29300 build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
2af2dbdc
VM
29301
29302 * Makefile.in (RA_H): Remove.
29303 (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
29304 Rename regclass.o to reginfo.o.
29305 (regclass.o): Rename to reginfo.o. Rename gt-regclass.h to
29306 gt-reginfo.h.
29307 (global.o, local-alloc.o, ra-conflict.o): Remove entries.
29308 (GTFILES): Rename regclass.c to reginfo.c.
29309
29310 * passes.c (init_optimization_passes): Remove pass_local_alloc and
bf9b2cc9 29311 pass_global_alloc. Rename pass_regclass_init to pass_reginfo_init.
2af2dbdc
VM
29312
29313 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
29314 count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
29315 Remove flag_ira.
6b67572e 29316 (finish_spills): Ditto. Remove code for !flag_ira.
2ba9daa7 29317
c95b2534 293182009-01-29 Kenneth Zadeck <zadeck@naturalbridge.com>
00b251a0
KZ
29319
29320 PR middle-end/35854
29321 * doc/invoke.texi (rtl debug options): Complete rewrite.
29322 * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
29323 to auto_inc_dec".
29324 * mode-switching.c (pass_mode_switching): Rename pass from
29325 "mode-sw" to "mode_sw".
29326 * except.c (pass_convert_to_eh_ranges): Rename pass from
29327 "eh-ranges" to "eh_ranges".
29328 * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
29329 to "subreg1".
2ba9daa7
AS
29330
29331
72a54528
AM
293322009-01-29 Andrey Belevantsev <abel@ispras.ru>
29333 Alexander Monakov <amonakov@ispras.ru>
29334
29335 PR middle-end/38857
29336 * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
29337 register.
29338 (move_exprs_to_boundary): Change return type and pass through
29339 should_move from move_op. Relax assert. Update usage ...
29340 (schedule_expr_on_boundary): ... here. Use should_move instead of
29341 cant_move.
29342 (move_op_orig_expr_found): Indicate that insn was disconnected from
29343 stream.
29344 (code_motion_process_successors): Do not call after_merge_succs
29345 callback if original expression was not found when traversing any of
29346 the branches.
29347 (code_motion_path_driver): Change return type. Update prototype.
29348 (move_op): Update comment. Add a new parameter (should_move). Update
29349 prototype. Set *should_move based on indication provided by
29350 move_op_orig_expr_found.
29351
001b9eb6
PH
293522009-01-28 Pat Haugen <pthaugen@us.ibm.com>
29353
29354 * doc/invoke.texi (avoid-indexed-addresses): Document new option.
29355 * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
29356 * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
29357 * config/rs6000/rs6000.c (rs6000_override_options): Default
29358 avoid-indexed-addresses on for Power6, off for everything else.
29359 (avoiding_indexed_address_p): New function.
29360 (rs6000_legitimize_address): Use it.
29361 (rs6000_legitimate_address): Likewise.
29362 * config/rs6000/rs6000.md (movXX_updateX): Likewise
29363
59dc4898
KH
293642009-01-28 Kazu Hirata <kazu@codesourcery.com>
29365
29366 PR tree-optimization/38997
29367 * tree-loop-distribution.c (generate_memset_zero): Use
29368 POINTER_PLUS_EXPR for a pointer addition.
29369
07da44ab
AK
293702009-01-28 Andreas Krebbel <krebbel1@de.ibm.com>
29371
29372 * config/s390/s390.md (bswap<mode>2): New pattern added.
29373
cdc15d23
WG
293742009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
29375
29376 * config/s390/s390.md (*tls_load_31): Added type attribute.
29377
d46f24b6
WG
293782009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
29379
29380 * config/s390/s390.md: Fix a few comments.
29381
729e750f
WG
293822009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
29383
29384 * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
29385 (*tm<mode>_full): Fixed z10prop attribute.
29386 (*tst<mode>_extimm): Fixed z10prop attribute.
29387 (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
29388 (*tstqiCCT_cconly): Fixed z10prop attribute.
29389 (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
29390 (*movsi_larl): Fixed z10prop attribute.
29391 (*movsi_zarch): Fixed z10prop attribute.
29392 (*movsi_eas): Fixed z10prop attribute.
29393 (*movhi): Fixed z10prop attribute.
29394 (*movqi): Fixed z10prop attribute.
29395 (*movstrictqi): Fixed z10prop attribute.
29396 (*mov<mode>): Fixed z10prop attribute.
29397 (*movcc): Fixed z10prop attribute.
29398 (*sethighpartdi_64): Fixed z10prop attribute.
29399 (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
29400 (*negdi2_sign_cc): Fixed z10prop attribute.
29401 (*negdi2_sign): Fixed z10prop attribute.
29402 (*absdi2_sign_cc): Fixed z10prop attribute.
29403 (*absdi2_sign): Fixed z10prop attribute.
29404 (*negabsdi2_sign_cc): Fixed z10prop attribute.
29405 (*negabsdi2_sign): Fixed z10prop attribute.
29406 (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
29407 (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
29408 (doloop_si64): Fixed z10prop attribute.
29409 (doloop_si31): Fixed z10prop attribute.
29410 (doloop_long): Fixed z10prop attribute.
29411 (indirect_jump): Fixed z10prop attribute.
29412 (nop): Fixed z10prop attribute.
29413 (main_base_64): Fixed z10prop attribute.
29414 (reload_base_64): Fixed z10prop attribute.
29415
c7789bfb
JJ
294162009-01-28 Jakub Jelinek <jakub@redhat.com>
29417
29418 PR rtl-optimization/38740
6b67572e
UB
29419 * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
29420 if !optimize.
c7789bfb
JJ
29421 * config/mips/mips.c (mips_reorg): Likewise.
29422
de081cfd
RG
294232009-01-28 Richard Guenther <rguenther@suse.de>
29424
29425 PR tree-optimization/38926
29426 * tree-ssa-pre.c (add_to_value): Assert we add only expressions
29427 with the correct value id to a value.
29428 (do_regular_insertion): Use the value number of edoubleprime
29429 for the value number of the expr.
29430
29431 Revert
29432 2008-08-21 Richard Guenther <rguenther@suse.de>
bf9b2cc9 29433
d748c406
UB
29434 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
29435 a PHI ask VN if it is already available.
29436 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
29437 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
de081cfd 29438
a9d386a1
JJ
294392009-01-28 Jakub Jelinek <jakub@redhat.com>
29440
29441 PR middle-end/38934
29442 * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
29443 set to varying whenever max has TREE_OVERFLOW set, similarly
29444 for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
29445
97a170cd
RG
294462009-01-28 Richard Guenther <rguenther@suse.de>
29447
29448 PR middle-end/38908
29449 * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
29450 uninitialized aggregate uses in call arguments.
29451
89ebafc6
PB
294522009-01-28 Paolo Bonzini <bonzini@gnu.org>
29453
29454 PR tree-optimization/38984
29455 * tree-ssa-structalias.c (get_constraints_for_1): Do not use
29456 the nothing_id variable if -fno-delete-null-pointer-checks.
29457
bef3c57b
UB
294582009-01-28 Uros Bizjak <ubizjak@gmail.com>
29459
29460 PR target/38988
29461 * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
29462 (set_got_offset_rex64): Ditto.
29463
0c6390fa
L
294642009-01-27 H.J. Lu <hongjiu.lu@intel.com>
29465
29466 PR target/38941
29467 * doc/extend.texi: Improve local variable with asm reg.
29468
bee6fa6d
AN
294692009-01-27 Adam Nemet <anemet@caviumnetworks.com>
29470
29471 * c.opt (Wpacked-bitfield-compat): Change init value to -1.
29472 * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
29473 was not supplied then set warn_packed_bitfield_compat to the
29474 default value of 1.
29475 * stor-layout.c (place_field): Check warn_packed_bitfield_compat
29476 against 1.
29477
b5c3dfbb
RG
294782009-01-27 Richard Guenther <rguenther@suse.de>
29479
29480 PR tree-optimization/38503
29481 * cfgexpand.c (expand_gimple_basic_block): Ignore
29482 GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
29483 * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
29484 variables that cannot have TBAA applied.
29485 (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
29486 statements.
29487
d748c406 294882009-01-27 Uros Bizjak <ubizjak@gmail.com>
576de5cb
UB
29489
29490 PR middle-end/38969
29491 * calls.c (initialize_argument_information): Do not wrap complex
29492 arguments in SAVE_EXPR.
29493
9112bb38
AT
294942009-01-26 Andreas Tobler <a.tobler@schweiz.org>
29495
29496 * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
5efb79fc 29497 (INSTALL_LIBGCC): Revert typo commit.
9112bb38 29498
4757704f
RG
294992009-01-26 Richard Guenther <rguenther@suse.de>
29500
29501 PR tree-optimization/38745
29502 * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
29503 from special handling.
29504
e3e6cff4
RG
295052009-01-26 Richard Guenther <rguenther@suse.de>
29506
29507 PR tree-optimization/38745
29508 * tree-ssa.c (execute_update_addresses_taken): Do not include
29509 variables that cannot possibly be a register in not_reg_needs.
29510 Do not clear TREE_ADDRESSABLE on vars that may not become
29511 registers.
29512 * tree-ssa.c (update_alias_info_1): Include those in the set
29513 of addressable vars.
29514
dc874b53
RG
295152009-01-26 Richard Guenther <rguenther@suse.de>
29516
29517 PR middle-end/38851
29518 * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
29519 * tree-ssa-dse.c: Include langhooks.h
29520 (execute_simple_dse): Remove stores with zero size.
29521
849421a3
JJ
295222009-01-24 Jakub Jelinek <jakub@redhat.com>
29523
29524 PR c/38957
29525 * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
29526 as PLUS_EXPR.
29527
82f70421
JB
295282009-01-24 Julian Brown <julian@codesourcery.com>
29529
29530 * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
29531 config/arm/linux-atomic.c.
29532 * config/arm/linux-atomic.c: New.
29533
863412d6
EB
295342009-01-24 Eric Botcazou <ebotcazou@adacore.com>
29535
29536 * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
29537 * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
29538 * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
29539
8c684300
L
295402009-01-24 H.J. Lu <hongjiu.lu@intel.com>
29541
29542 PR c/38938
93f1527a 29543 * c-opts.c (c_common_handle_option): Update warn_pointer_sign
8c684300
L
29544 properly.
29545
b840fb02
SP
295462009-01-24 Sebastian Pop <sebastian.pop@amd.com>
29547
29548 PR tree-optimization/38953
29549 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
29550 (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
29551 (gloog): Split the exit of the scop when the scop exit is a loop exit.
29552 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
29553 changed the CFG.
29554
ecee559f
PB
295552009-01-24 Paul Brook <paul@codesourcery.com>
29556
29557 * config/arm/neon.md (neon_type): Move to arm.md.
29558 (neon_mov<VSTRUCT>): Add neon_type attribute.
29559 * config/arm/arm.md (neon_type): Move to here.
29560 (conds): Add "unconditioal" and use as default for NEON insns.
29561
61ad0914
BE
295622009-01-24 Ben Elliston <bje@au.ibm.com>
29563
29564 * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
29565 void *' warning from -Wc++-compat.
29566 * Makefile.in (dominance.o-warn): Remove.
29567
38432148 295682009-01-23 Paolo Bonzini <bonzini@gnu.org>
9bacafeb
PB
29569
29570 PR tree-optimization/38932
29571 * fold-const.c (fold_unary_ignore_overflow): New.
29572 * tree.h (fold_unary_ignore_overflow): Declare.
29573 * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
29574 * tree-ssa-sccvn.c (visit_reference_op_load,
29575 simplify_unary_expression): Likewise.
29576
2cd36c22
AN
295772009-01-22 Adam Nemet <anemet@caviumnetworks.com>
29578
29579 * c-decl.c (finish_struct): Move code to set DECL_PACKED after
29580 DECL_BIT_FIELD is alreay known. Also inherit packed for bitfields
29581 regardless of their type.
29582 * c-common.c (handle_packed_attribute): Don't ignore packed on
29583 bitfields.
29584 * c.opt (Wpacked-bitfield-compat): New warning option.
29585 * stor-layout.c (place_field): Warn if offset of a field changed.
29586 * doc/extend.texi (packed): Mention the ABI change.
29587 * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
29588 (Warning Options): Add it to the list.
29589
e4e624ab
L
295902009-01-22 H.J. Lu <hongjiu.lu@intel.com>
29591
29592 * c-opts.c (c_common_post_options): Fix a typo in comments.
29593
d0ea0759
SE
295942009-01-22 Steve Ellcey <sje@cup.hp.com>
29595
29596 PR middle-end/38615
29597 * gimplify.c (gimplify_init_constructor): Fix promotion of const
29598 variables to static.
29599 * doc/invoke.texi (-fmerge-all-constants): Update description.
29600
87673f84
UB
296012009-01-22 Uros Bizjak <ubizjak@gmail.com>
29602
29603 PR target/38931
29604 * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
29605 (*movdi_1_rex64): Use type "mmx" for alternative 5.
29606
96339268
RE
296072009-01-22 Richard Earnshaw <rearnsha@arm.com>
29608
29609 * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
29610 a word boundary.
29611 (LOCAL_ALIGNMENT): Similarly.
29612
442dc742 296132009-01-22 Mark Shinwell <shinwell@codesourcery.com>
87673f84 29614 Joseph Myers <joseph@codesourcery.com>
442dc742
MS
29615
29616 * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
29617 * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
29618 * config/arm/arm-tune.md: Regenerate.
29619 * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
29620 -march=iwmmxt2.
29621
9b34732e
MS
296222009-01-22 Mark Shinwell <shinwell@codesourcery.com>
29623
29624 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
29625 version number to five.
29626
03c2a308
DS
296272009-01-22 Dodji Seketeli <dodji@redhat.com>
29628
29629 PR c++/38930
ba20e309 29630 * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
03c2a308
DS
29631 * c-common.c (set_underlying_type): Likewise.
29632 (is_typedef_decl ): Likewise
29633 * tree.h: Likewise
29634 (set_underlying_type): Likewise.
29635 (is_typedef_type): Likewise.
29636
1240d76e
VM
296372009-01-21 Vladimir Makarov <vmakarov@redhat.com>
29638
29639 PR middle-end/38587
29640 * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
29641 crossing setjmps.
29642
b8a1087d
DK
296432009-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
29644
29645 PR bootstrap/37660
29646 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): New helper macro.
29647 (LIBGCC_SPEC): Don't define.
29648 (REAL_LIBGCC_SPEC): Define instead, using SHARED_LIBGCC_SPEC.
29649
435da628
UB
296502009-01-21 Uros Bizjak <ubizjak@gmail.com>
29651
29652 PR rtl-optimization/38879
29653 * alias.c (base_alias_check): Unaligned access via AND address can
29654 alias all surrounding object types except those with sizes equal
29655 or wider than the size of unaligned access.
29656
d597b3ce
DS
296572009-01-21 Dodji Seketeli <dodji@redhat.com>
29658
29659 PR c++/26693
ba20e309 29660 * c-decl.c (clone_underlying_type): Move this ...
d597b3ce 29661 * c-common.c (set_underlying_type): ... here.
435da628 29662 Also, make sure the function properly sets TYPE_STUB_DECL() on
d597b3ce
DS
29663 the newly created typedef variant type.
29664 (is_typedef_decl ): New entry point.
29665 * tree.h: Added a new member member_types_needing_access_check to
29666 struct tree_decl_non_common.
29667 (set_underlying_type): New entry point.
29668 (is_typedef_type): Likewise.
29669
71a6fe66
BM
296702009-01-21 Bingfeng Mei <bmei@broadcom.com>
29671
29672 * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
29673 Check whether two instructions have memory references that
29674 belong to conflicting alias sets. walk_mems_1 and walk_mems_2
29675 are helper functions for traversing.
29676 * alias.h (insn_alias_sets_confilict_p): New prototypes.
29677 * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
29678 not to draw dependency edge for instructions with non-conflicting
29679 alias sets.
29680
5a248274
JM
296812009-01-20 Joseph Myers <joseph@codesourcery.com>
29682
29683 PR other/38758
6b67572e
UB
29684 * longlong.h: Update copyright years. Use soft-fp license notice.
29685 Sync __clz_tab declaration with glibc.
5a248274 29686
4b84f3de
SE
296872009-01-20 Steve Ellcey <sje@cup.hp.com>
29688
29689 PR target/30687
29690 * doc/extend.texi (syscall_linkage): New.
29691 (version_id): Modify.
29692
37348bf1 296932009-01-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
435da628 29694 Richard Guenther <rguenther@suse.de>
37348bf1
AP
29695
29696 PR tree-optimization/38747
29697 PR tree-optimization/38748
29698 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
29699 conversion if the base address is an indirect reference and the
29700 aliasing sets could cause issues.
29701
d0a58904
SP
297022009-01-20 Sebastian Pop <sebastian.pop@amd.com>
29703
2ba9daa7 29704 * common.opt (fgraphite, fgraphite-identity): Add comment for
d0a58904
SP
29705 explaining why these options are not documented.
29706
71e7afb2
SP
297072009-01-20 Sebastian Pop <sebastian.pop@amd.com>
29708
29709 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
29710 gimple_call_lhs is NULL.
29711
38432148 297122009-01-20 Paolo Bonzini <bonzini@gnu.org>
09efeca1
PB
29713
29714 PR target/38868
29715 * emit-rtl.c (adjust_address_1): Make sure memref is never
29716 overwritten.
29717
cbb8dee3
BE
297182009-01-20 Ben Elliston <bje@au.ibm.com>
29719
29720 * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
435da628 29721 const qualifier from arg parameter. Remove unnecessary cast to char *.
cbb8dee3
BE
29722 * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
29723 const qualifier from arg 2.
29724
72c66596
IS
297252009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
29726
435da628 29727 * config/darwin.h: Add static-libgfortran to LINK_SPEC.
72c66596 29728
f68211cd
VM
297292009-01-19 Vladimir Makarov <vmakarov@redhat.com>
29730
29731 PR c/38869
29732 * rtl.h (reinit_regs): New prototype.
29733 * regclass.c: Include ira.h.
29734 (reinit_regs): New.
29735 * Makefile.in (regclass.o): Add ira.h.
29736 * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
29737
6e4f1168
L
297382009-01-18 H.J. Lu <hongjiu.lu@intel.com>
29739
29740 PR target/38736
29741 * c-common.c (handle_aligned_attribute): Use
29742 ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
29743 default alignment value.
29744
29745 * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
29746
29747 * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
29748 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
29749
29750 * doc/extend.texi: Update __attribute__ ((aligned)). Document
29751 __BIGGEST_ALIGNMENT__.
29752
29753 * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
29754
890065bf
RG
297552009-01-18 Richard Guenther <rguenther@suse.de>
29756
29757 PR tree-optimization/38819
29758 * tree-flow.h (operation_could_trap_helper_p): Declare.
29759 * tree-eh.c (operation_could_trap_helper_p): Export.
29760 * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
29761 * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
29762 * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
29763 are about to insert a possibly trapping instruction and fail
29764 in this case.
29765
a729d731
AS
297662009-01-18 Andreas Schwab <schwab@suse.de>
29767
29768 * doc/install.texi (Configuration): Remove obsolete paragraph
29769 about use of --with-gnu-ld with --with-gnu-as.
29770
a640c13b
KH
297712009-01-18 Kazu Hirata <kazu@codesourcery.com>
29772
29773 * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
29774 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
29775 Follow spelling conventions.
29776
dba2cc0c
BE
297772009-01-18 Ben Elliston <bje@au.ibm.com>
29778
29779 * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
29780 C++ warning about implicit conversion from void * to struct
29781 bitmap_head_def *.
29782 (bitmap_obstack_free): Likewise for bitmap_element *.
bc127c63 29783 * Makefile.in (bitmap.o-warn): Remove.
dba2cc0c 29784
2207a498
DK
297852009-01-17 Dave Korn <dave.korn.cygwin@gmail.com>
29786
29787 * Makefile.in (BACKENDLIBS): Reorder to match dependencies.
29788
8137e465
SP
297892009-01-17 Sebastian Pop <sebastian.pop@amd.com>
29790 Tobias Grosser <tobi.grosser@amd.com>
29791
29792 * graphite.c (graphite_trans_scop_block): Do not block single
29793 nested loops.
29794
5be1c58c
AO
297952009-01-16 Alexandre Oliva <aoliva@redhat.com>
29796
29797 * ebitmap.h (ebitmap_iter_init): Initialize all fields.
29798 * ipa-struct-reorg.c (gen_struct_type): Replace known-true
29799 test with assertion.
29800
786ce82d
RG
298012009-01-16 Richard Guenther <rguenther@suse.de>
29802
29803 PR tree-optimization/38835
29804 PR middle-end/36227
29805 * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
29806 and INT + PTR -> (INT)(PTR p+ INT) folding.
29807 * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
29808
c1cb09ad
AN
298092009-01-16 Adam Nemet <anemet@caviumnetworks.com>
29810
29811 PR target/38554
29812 * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
29813 the subreg from a lowpart subreg if it is also casting the value.
29814
bcab4e19
SP
298152009-01-16 Sebastian Pop <sebastian.pop@amd.com>
29816 Tobias Grosser <tobi.grosser@amd.com>
29817
29818 * graphite.c (compare_prefix_loops): New.
29819 (build_scop_canonical_schedules): Rewritten.
29820 (graphite_transform_loops): Move build_scop_canonical_schedules
29821 after build_scop_iteration_domain.
29822
0b040072
SP
298232009-01-16 Sebastian Pop <sebastian.pop@amd.com>
29824 Tobias Grosser <tobi.grosser@amd.com>
29825
2ba9daa7 29826 * graphite.c (add_conditions_to_domain): Add the loops to
0b040072
SP
29827 the dimension of the iteration domain. Do copy the domain
29828 only when it exists.
29829 (build_scop_conditions_1): Do not call add_conditions_to_domain.
29830 (add_conditions_to_constraints): New.
29831 (can_generate_code_stmt, can_generate_code): Removed.
29832 (gloog): Do not call can_generate_code.
29833 (graphite_transform_loops): Call add_conditions_to_constraints
29834 after building the iteration domain.
29835
56c6a499
JJ
298362009-01-16 Jakub Jelinek <jakub@redhat.com>
29837
29838 PR tree-optimization/38789
29839 * tree-ssa-threadedge.c
29840 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
29841 __builtin_constant_p.
29842
c95b2534 298432009-01-16 Kenneth Zadeck <zadeck@naturalbridge.com>
cd3f1729
KZ
29844
29845 * dce.c (delete_unmarked_insns): Reversed the order that insns are
29846 examined before deleting them.
2ba9daa7 29847
c433cb14
RE
298482009-01-16 Richard Earnshaw <rearnsha@arm.com>
29849
29850 * function.c (aggregate_value_p): Correctly extract the function
29851 type from CALL_EXPR_FN lookup.
29852
c95b2534 298532009-01-16 Hariharan Sandanagobalane <hariharan@picochip.com>
27d62fa4
HS
29854
29855 * config/picochip/picochip.c (picochip_override_options): Revert
29856 CFI asm flag disable commited previously.
29857
c77bb78f
SP
298582009-01-15 Sebastian Pop <sebastian.pop@amd.com>
29859 Tobias Grosser <tobi.grosser@amd.com>
29860 Jan Sjodin <jan.sjodin@amd.com>
29861
29862 * graphite.c (scan_tree_for_params): On substractions negate
29863 all the coefficients of the term.
29864 (clast_to_gcc_expression_red): New. Handle reduction expressions
29865 of more than two operands.
29866 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
29867 (get_vdef_before_scop): Handle also the case of default definitions.
29868
574af2d6
RS
298692009-01-15 Richard Sandiford <rdsandiford@googlemail.com>
29870
29871 * caller-save.c (add_used_regs_1, add_used_regs): New functions.
29872 (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
29873 Also use them when walking CALL_INSN_FUNCTION_USAGE.
29874
e939805b
L
298752009-01-15 H.J. Lu <hongjiu.lu@intel.com>
29876 Joey Ye <joey.ye@intel.com>
29877
29878 PR middle-end/37843
29879 * cfgexpand.c (expand_stack_alignment): Don't update stack
29880 boundary nor check incoming stack boundary here.
29881 (gimple_expand_cfg): Update stack boundary and check incoming
29882 stack boundary here.
29883
c95b2534 298842009-01-15 Kenneth Zadeck <zadeck@naturalbridge.com>
750900db 29885
435da628 29886 * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
2ba9daa7 29887
0196c95e
JJ
298882009-01-14 Jakub Jelinek <jakub@redhat.com>
29889
29890 PR rtl-optimization/38245
29891 * calls.c (expand_call): Add stack arguments to
29892 CALL_INSN_FUNCTION_USAGE even for pure calls (when
29893 ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
29894 in regs and partially in memory or BLKmode arguments.
29895 (emit_library_call_value_1): Add stack arguments to
29896 CALL_INSN_FUNCTION_USAGE even for pure calls (when
29897 ACCUMULATE_OUTGOING_ARGS).
29898 * dce.c: Include tm_p.h.
29899 (find_call_stack_args): New function.
29900 (deletable_insn_p): Call it for CALL_P insns. Add ARG_STORES
29901 argument.
29902 (mark_insn): Call find_call_stack_args for CALL_Ps.
29903 (prescan_insns_for_dce): Walk insns backwards in bb rather than
29904 forwards. Allocate and free arg_stores bitmap if needed, pass it
29905 down to deletable_insn_p, don't mark stores set in arg_stores
29906 bitmap, clear the bitmap at the beginning of each bb.
29907 * Makefile.in (dce.o): Depend on $(TM_P_H).
29908
6df6bcfa
MM
299092009-01-14 Michael Meissner <gnu@the-meissners.org>
29910
29911 PR target/22599
435da628
UB
29912 * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
29913 to make sure the insn is a conditional test (bug 22599). Reformat a
29914 few long lines.
6df6bcfa 29915
765ec70c
SP
299162009-01-14 Sebastian Pop <sebastian.pop@amd.com>
29917
29918 PR middle-end/38431
29919 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
29920 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
29921 (gloog): Do not call cleanup_tree_cfg.
2ba9daa7 29922 (graphite_transform_loops): Call cleanup_tree_cfg after all
765ec70c
SP
29923 scops have been code generated.
29924
7de2b688
BS
299252009-01-14 Basile Starynkevitch <basile@starynkevitch.net>
29926 * doc/gty.texi (Invoking the garbage collector): Added new node
29927 and section documenting ggc_collect.
29928
10bd6c5c
RG
299292009-01-14 Richard Guenther <rguenther@suse.de>
29930
29931 PR tree-optimization/38826
29932 PR middle-end/38477
29933 * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
29934 initialization notes only if we actually emitted a warning.
29935 (intra_create_variable_infos): Add constraints for a result decl
29936 that is passed by hidden reference.
29937 (build_pred_graph): Mark all related variables non-direct on
29938 address-taking.
29939
9c7c70ee
NC
299402009-01-14 Nick Clifton <nickc@redhat.com>
29941
29942 * ira-conflicts.c: Include addresses.h for the definition of
29943 base_reg_class.
435da628
UB
29944 (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
29945 * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
9c7c70ee 29946
cf0c2a60
VM
299472009-01-13 Vladimir Makarov <vmakarov@redhat.com>
29948
29949 PR target/38811
29950 * Makefile.in (ira-lives.o): Add except.h.
29951
29952 * ira-lives.c: Include except.h.
29953 (process_bb_node_lives): Process can_throw_internal.
29954
d3302fd3
JJ
299552009-01-13 Jakub Jelinek <jakub@redhat.com>
29956
29957 PR rtl-optimization/38774
29958 * combine.c (simplify_set): When undoing cc_use change, don't do
29959 PUT_CODE on the newly created comparison, but instead put back the
29960 old comparison.
29961
7ab23fd0
JM
299622009-01-13 Joseph Myers <joseph@codesourcery.com>
29963
29964 * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
29965 values. Remove duplicate arm8 entry.
29966
f9344488
SP
299672009-01-13 Sebastian Pop <sebastian.pop@amd.com>
29968
29969 PR tree-optimization/38786
29970 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
29971 the SSA_NAME case of expand_scalar_variables_expr.
29972 Set the type of an expression to the type of its assign statement.
29973 (expand_scalar_variables_expr): Also gather the scalar computation
29974 used to index the memory access. Do not pass loop_p.
29975 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
29976 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
bef3c57b
UB
29977 the gimple_stmt_iterator where it inserts new code.
29978 Do not pass loop_p.
f9344488
SP
29979 (copy_bb_and_scalar_dependences): Do not pass loop_p.
29980 (translate_clast): Update call to copy_bb_and_scalar_dependences.
29981
2d8bb84d
SP
299822009-01-13 Sebastian Pop <sebastian.pop@amd.com>
29983
29984 * graphite.h (debug_value): Removed.
29985 * graphite.c (debug_value): Removed.
29986
ff128632
RE
299872009-01-13 Richard Earnshaw <rearnsha@arm.com>
29988
435da628
UB
29989 * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
29990 ldrd/strd with two 32-bit instructions.
ff128632 29991
d5a0a47b
RE
299922009-01-13 Richard Earnshaw <rearnsha@arm.com>
29993
435da628
UB
29994 * config/arm/arm.c (struct processors): Pass for speed down into
29995 cost helper functions.
d5a0a47b
RE
29996 (const_ok_for_op): Handle COMPARE and inequality nodes.
29997 (arm_rtx_costs_1): Rewrite.
29998 (arm_size_rtx_costs): Update prototype.
29999 (arm_rtx_costs): Pass speed down to helper functions.
30000 (arm_slowmul_rtx_costs): Rework cost calculations.
30001 (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
30002 (arm_9e_rtx_costs): Likewise.
30003
26d5bf5b
UB
300042009-01-13 Uros Bizjak <ubizjak@gmail.com>
30005
30006 * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
435da628 30007 relocations of local symbols wider than UNITS_PER_WORD are not valid.
26d5bf5b
UB
30008 (alpha_legitimize_address): Do not split local symbols wider than
30009 UNITS_PER_WORD into HIGH/LO_SUM parts.
30010
5d14e3d5
DS
300112009-01-13 Danny Smith <dannysmith@users.sourceforge.net>
30012
30013 PR bootstrap/38580
30014 * gcc.c (process_command): Replace call to execvp with calls
30015 to pex_one and exit.
30016
33faafca
AS
300172009-01-03 Anatoly Sokolov <aesok@post.ru>
30018
30019 PR target/29141
30020 * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
30021 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
30022 variant for devices with 3-byte PC.
ba20e309 30023 (__tablejump_elpm__): New.
33faafca 30024
634b5df5
JJ
300252009-01-12 Jakub Jelinek <jakub@redhat.com>
30026
30027 PR c/32041
30028 * c-parser.c (c_parser_postfix_expression): Allow `->' in
30029 offsetof member-designator, handle it as `[0].'.
30030
2842bb86
JDA
300312009-01-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30032
30033 * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
30034 function when not using named sections on targets with named sections
30035 if branch distance is less than 262132.
30036
76ee70f6
RE
300372009-01-12 Richard Earnshaw <rearnsha@arm.com>
30038
30039 * combine.c (combine_instructions): Recompute
30040 optimize_this_for_speed_p for each BB in the main combine loop.
30041
f56e675d
TB
300422009-01-12 Tomas Bily <tbily@suse.cz>
30043
30044 PR middlend/38385
26d5bf5b
UB
30045 * tree-loop-distribution.c (prop_phis): New function.
30046 (generate_builtin): Call prop_phis.
f56e675d 30047
c2152239
JJ
300482009-01-12 Jakub Jelinek <jakub@redhat.com>
30049
30050 PR tree-optimization/38807
30051 * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
30052 gimple_visited_p unless stmt is GIMPLE_ASSIGN.
30053
0e510b3e
AN
300542009-01-11 Adam Nemet <anemet@caviumnetworks.com>
30055
30056 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
30057 subreg of op0 to the original op0.
30058
c95b2534 300592009-01-11 Laurent GUERBY <laurent@guerby.net>
10270471
LG
30060
30061 * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
2ba9daa7 30062
53a7ff9a
MS
300632009-01-11 Markus Schoepflin <markus.schoepflin@comsoft.de>
30064
30065 PR debug/7055
60839f5d 30066 * mips-tfile.c (parse_def): Fix parsing of def strings
53a7ff9a
MS
30067 starting with digits.
30068
b3a796bc
JJ
300692009-01-10 Jakub Jelinek <jakub@redhat.com>
30070
30071 PR target/38695
30072 * config/arm/arm.c (arm_is_long_call_p): Don't call
30073 arm_function_in_section_p if decl isn't a FUNCTION_DECL.
30074
b21b850e
SB
300752009-01-09 Steven Bosscher <steven@gcc.gnu.org>
30076
30077 * regrename.c (regrename_optimize): Fix dumping.
30078 (find_oldest_value_reg): Preserve REG_POINTER.
30079 (copy_hardreg_forward_1): Likewise.
30080
e0e10d3a
DN
300812009-01-09 Diego Novillo <dnovillo@google.com>
30082
bf9b2cc9 30083 * gimple.h (struct gimple_statement_base) <uid>: Document
e0e10d3a
DN
30084 the restrictions on its use.
30085 (gimple_uid): Tidy.
30086 (gimple_set_uid): Tidy.
30087
c9da2ae8
JJ
300882009-01-09 Jakub Jelinek <jakub@redhat.com>
30089
30090 * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
30091 zero guard even if align_bytes != 0 and count is smaller than
30092 size_needed.
30093
38432148 300942009-01-09 Vladimir Makarov <vmakarov@redhat.com>
a174c19c
VM
30095
30096 PR rtl-optimization/38495
26d5bf5b 30097 * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
a174c19c
VM
30098 (add_range_and_copies_from_move_list): Print all added ranges.
30099 Add ranges to memory optimized destination.
30100
260fda3d
JJ
301012009-01-09 Jakub Jelinek <jakub@redhat.com>
30102
6f6278ad
JJ
30103 PR target/38686
30104 PR target/38708
30105 * config/i386/i386.c (override_options): Reject
30106 -mstringop-strategy=rep_8byte with -m32.
30107 (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
30108 to 1. Do count comparison against epilogue_size_needed at compile
30109 time even when count_exp was constant forced into register. For
30110 size_needed don't jump to epilogue, instead just avoid aligning
30111 and invoke the body algorithm. If need_zero_guard, add zero guard
30112 even if count is non-zero, but smaller than size_needed + number of
30113 bytes that could be stored for alignment.
30114 (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
30115 to 1. If need_zero_guard, add zero guard even if count is non-zero,
30116 but smaller than size_needed + number of bytes that could be stored
30117 for alignment. Compare size_needed with epilogue_size_needed instead
30118 of desired_align - align, don't adjust size_needed, pass
30119 epilogue_size_needed to the epilogue expanders.
30120
260fda3d 30121 PR c/35742
26d5bf5b 30122 * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
260fda3d 30123
67b846fa
JDA
301242009-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30125
30126 * pa.c (last_address): Change to unsigned.
30127 (update_total_code_bytes): Change argument to unsigned. Don't
30128 check if insn addresses are set.
30129 (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
30130 addresses are not set.
30131 (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
30132
91c82473
NC
301332009-01-09 Nick Clifton <nickc@redhat.com>
30134
30135 * config/sh/symbian.c: Replace uses of DECL_INLINE with
30136 DECL_DECLARED_INLINE_P.
30137
4017e262
JJ
301382009-01-09 Jakub Jelinek <jakub@redhat.com>
30139
0a49e5c2
JJ
30140 PR middle-end/38347
30141 * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
30142 GET_MODE (op0) in operand_subword_force calls.
30143
4017e262
JJ
30144 PR middle-end/38771
30145 * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
30146 fold_convert arg0 operands to TREE_TYPE (op0) first.
30147
7cd06356
VM
301482009-01-08 Vladimir Makarov <vmakarov@redhat.com>
30149
30150 * params.def (ira-max-conflict-table-size): Decrease default value
30151 to 1000.
30152
96867bbd
JJ
301532009-01-08 Jakub Jelinek <jakub@redhat.com>
30154
30155 PR tree-optimization/37031
30156 * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
30157 on parameter_set.
30158 (build_access_matrix): Reserve correct size for AM_MATRIX vector,
30159 allocate it using gc instead of heap, use VEC_quick_push instead of
30160 VEC_safe_push.
30161 * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
30162 instead of heap, use VEC_quick_push instead of VEC_safe_push.
30163 * tree-data-ref.h (struct access_matrix): Change matrix to gc
30164 allocated vector from heap allocated.
30165 * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
30166 * tree-loop-linear.c (linear_transform_loops): Allocate nest
30167 vector only after perfect_loop_nest_depth call.
30168
68f61c3d
SP
301692009-01-08 Sebastian Pop <sebastian.pop@amd.com>
30170 Jan Sjodin <jan.sjodin@amd.com>
30171
30172 PR tree-optimization/38559
30173 * graphite.c (debug_value, copy_constraint,
30174 swap_constraint_variables, scale_constraint_variable, ): New.
30175 (get_lower_bound, get_upper_bound): Removed.
30176 (graphite_trans_bb_strip_mine): Clean up this code that works
30177 only for constant number of iterations. Fully copy upper and
30178 lower bound constraints, not only the constant part of them.
30179 * graphite.h (debug_value): Declared.
30180
82567e33
IR
301812009-01-08 Ira Rosen <irar@il.ibm.com>
30182
30183 PR tree-optimization/37194
30184 * tree-vect-transform.c (vect_estimate_min_profitable_iters):
2ba9daa7 30185 Don't add the cost of cost model guard in prologue to scalar
82567e33
IR
30186 outside cost in case of known number of iterations.
30187
7da13f1d
NF
301882009-01-07 Nathan Froyd <froydnj@codesourcery.com>
30189 Alan Modra <amodra@bigpond.net.au>
30190
30191 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
30192 non-word-aligned REG+CONST addressing.
30193
c0f64575
UB
301942009-01-07 Uros Bizjak <ubizjak@gmail.com>
30195
30196 PR target/38706
30197 * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
30198 free_after_compilation when outputting a thunk.
30199 (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
30200 Do not call free_after_compilation here.
30201
301b6a4e
UB
302022009-01-07 Uros Bizjak <ubizjak@gmail.com>
30203
30204 * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
301b6a4e
UB
30205 (ix86_valid_target_attribute_inner_p): Ditto.
30206
6a114766
JS
302072009-01-07 Jan Sjodin <jan.sjodin@amd.com>
30208
30209 PR tree-optimization/38492
30210 PR tree-optimization/38498
30211 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
30212 * tree-chrec.h (scev_is_linear_expression): Declared.
30213 * graphite.c (graphite_cannot_represent_loop_niter): New.
30214 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
30215 (graphite_loop_normal_form): Use gcc_assert.
30216 (scan_tree_for_params): Use CASE_CONVERT.
30217 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
30218 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
30219 Use gcc_assert. Discard scops that contain unhandled cases.
30220 (build_scop_conditions): Return a boolean status for unhandled cases.
30221 (strip_mine_profitable_p): Print the loop number, not its depth.
30222 (is_interchange_valid): Pass the depth of the loop nest, don't
30223 recompute it wrongly.
30224 (graphite_trans_bb_block): Same.
30225 (graphite_trans_bb_block): Print tentative of loop blocking.
30226 (graphite_trans_scop_block): Do not print that the loop has been
30227 blocked.
30228 (graphite_transform_loops): Do not handle scops that contain condition
30229 scalar phi nodes.
30230
65b82caa
L
302312009-01-07 H.J. Lu <hongjiu.lu@intel.com>
30232
30233 AVX Programming Reference (December, 2008)
30234 * config/i386/avxintrin.h (_mm256_stream_si256): New.
30235 (_mm256_stream_pd): Likewise.
30236 (_mm256_stream_ps): Likewise.
30237
30238 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
30239 IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
30240 (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
30241 (bdesc_special_args): Add __builtin_ia32_movntdq256,
30242 __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
30243 (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
30244 (ix86_expand_special_args_builtin): Likewise.
30245
30246 * config/i386/sse.md (AVXMODEDI): New.
30247 (avx_movnt<mode>): Likewise.
30248 (avx_movnt<mode>): Likewise.
30249 (<sse>_movnt<mode>): Remove AVX support.
30250 (sse2_movntv2di): Likewise.
30251
cef158f9
RG
302522009-01-07 Richard Guenther <rguenther@suse.de>
30253
30254 PR middle-end/38751
30255 * fold-const.c (extract_muldiv): Remove obsolete comment.
30256 (fold_plusminus_mult_expr): Undo MINUS_EXPR
30257 to PLUS_EXPR canonicalization for the canonicalization.
30258
246cb5be
GP
302592009-01-07 Gerald Pfeifer <gerald@pfeifer.com>
30260
30261 * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
30262 hosted cross-compilers generating less efficient code.
30263
84b9b872
RS
302642009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
30265
30266 * function.h (rtl_data): Add a dbr_scheduled_p field.
30267 * reorg.c (dbr_schedule): Set it.
30268 (gate_handle_delay_slots): Check it.
30269 * config/mips/mips.c (mips_base_delayed_branch): Delete.
30270 (mips_reorg): Check flag_delayed_branch instead of
30271 mips_base_delayed_branch.
30272 (mips_override_options): Don't set mips_base_delayed_branch
30273 or flag_delayed_branch.
30274
ace984c8
RS
302752009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
30276
30277 PR rtl-optimization/38426.
30278 * ira.c (ira): Set current_function_is_leaf earlier.
30279
7ad7809b
JJ
302802009-01-06 Jakub Jelinek <jakub@redhat.com>
30281
30282 PR rtl-optimization/38722
30283 * combine.c (try_combine): Don't modify PATTERN (i3) and notes
30284 too early, only set a flag and modify after last possible
30285 undo_all point.
30286
c52ec948
JJ
302872009-01-06 Janis Johnson <janis187@us.ibm.com>
30288
30289 PR c/34252
30290 * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
30291 * real.c (decimal_single_format): Correct values of emin and emax.
30292 (decimal_double_format): Ditto.
30293 (decimal_quad_format): Ditto.
30294 * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
30295 computation of DECnn_MIN and DECnn_MAX for corrected values of
30296 emin and emax. Define __DECnn_SUBNORMAL_MIN__ instead of
30297 __DECnn_MIN__, and adjust its computation for the corrected value
30298 of emin.
30299
300240e1
JH
303002009-01-06 Jan Hubicka <jh@suse.cz>
30301
30302 PR target/38744
435da628 30303 * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
300240e1 30304
271c069e
GP
303052009-01-06 Gerald Pfeifer <gerald@pfeifer.com>
30306
30307 * doc/contrib.texi (Contributors): Slightly adjust the end note.
30308 Add Robert Clark to the list of testers.
30309
64e4c301 303102009-01-06 Jan Hubicka <jh@suse.cz>
c95b2534 30311 Kai Tietz <kai.tietz@onevision.com>
64e4c301 30312
435da628
UB
30313 * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
30314 * config/i386/i386.c (ix86_expand_call): Add clobbers.
64e4c301 30315
7650b83e 303162009-01-06 Jan Hubicka <jh@suse.cz>
c95b2534 30317 Kai Tietz <kai.tietz@onevision.com>
7650b83e 30318
435da628
UB
30319 * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
30320 for w64 ABI.
30321 * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
7650b83e
JH
30322 (ix86_nsaved_regs): Count only general purpose regs.
30323 (ix86_nsaved_sseregs): New.
30324 (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
30325 to 16 for w64; compute padding and size of sse reg save area.
301b6a4e
UB
30326 (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
30327 general purpose regs.
7650b83e
JH
30328 (ix86_emit_save_sse_regs_using_mov): New.
30329 (ix86_expand_prologue): Save SSE regs if needed.
30330 (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
30331 (ix86_emit_restore_sse_regs_using_mov): New.
30332 (ix86_expand_epilogue): Save SSE regs if needed.
30333
9aa5c1b2 303342009-01-06 Jan Hubicka <jh@suse.cz>
c95b2534 30335 Kai Tietz <kai.tietz@onevision.com>
9aa5c1b2 30336
435da628
UB
30337 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
30338 * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
30339 functions when accumulate outgoing args is off.
9aa5c1b2 30340
f7556aae
L
303412009-01-06 H.J. Lu <hongjiu.lu@intel.com>
30342
30343 PR bootstrap/38742
30344 * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
30345 before using pseudos_have_intersected_live_ranges_p.
30346
30347 * ira-int.h (ira_assert): Always define.
30348
e47b7d04
L
303492009-01-06 H.J. Lu <hongjiu.lu@intel.com>
30350
30351 AVX Programming Reference (December, 2008)
30352 * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
30353 (_mm256_permute2_pd): Likewise.
30354 (_mm_permute2_ps): Likewise.
30355 (_mm256_permute2_ps): Likewise.
30356 * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
30357 * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
30358
30359 * config/i386/i386.c (ix86_builtins): Remove
30360 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
30361 IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
30362 (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
30363 V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
30364 and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
30365 (bdesc_args): Remove __builtin_ia32_vpermil2pd,
30366 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
30367 __builtin_ia32_vpermil2ps256.
30368 (ix86_init_mmx_sse_builtins): Updated.
30369 (ix86_expand_args_builtin): Likewise.
30370
44b86471
JDA
303712009-01-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30372
e47b7d04
L
30373 * pa.c (output_call): Relocate non-jump insns in the delay slot of
30374 long absolute calls when generating PA 2.0 code.
44b86471 30375
311aab06
VM
303762009-01-05 Vladimir Makarov <vmakarov@redhat.com>
30377
30378 PR rtl-optimization/38583
30379 * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
30380
30381 * params.def (ira-max-conflict-table-size): New.
30382
30383 * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
2ba9daa7 30384
311aab06 30385 * ira.h (ira_conflicts_p): New external definition.
2ba9daa7 30386
311aab06
VM
30387 * ira-conflicts.c (build_conflict_bit_table): Do not build too big
30388 table. Report this. Return result of building.
30389 (ira_build_conflicts): Use ira_conflicts_p. Check result of
30390 building conflict table.
30391
301b6a4e 30392 * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
311aab06 30393 (ira_color): Use ira_conflicts_p.
2ba9daa7 30394
311aab06
VM
30395 * global.c: Include ira.h.
30396 (pseudo_for_reload_consideration_p, build_insn_chain): Use
30397 ira_conflicts_p.
30398
30399 * Makefile.in (global.o): Add ira.h.
2ba9daa7 30400
311aab06
VM
30401 * ira-build.c (mark_all_loops_for_removal,
30402 propagate_some_info_from_allocno): New.
30403 (remove_unnecessary_allocnos): Call
30404 propagate_some_info_from_allocno.
30405 (remove_low_level_allocnos): New.
30406 (remove_unnecessary_regions): Add parameter. Call
30407 mark_all_loops_for_removal and remove_low_level_allocnos. Pass
30408 parameter to remove_unnecessary_regions.
30409 (ira_build): Remove all regions but root if the conflict table was
30410 not built. Update conflict hard regs for allocnos crossing calls.
30411
30412 * ira.c (ira_conflicts_p): New global.
30413 (ira): Define and use ira_conflicts_p.
30414
30415 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
30416 count_spilled_pseudo, find_reg, alter_reg, finish_spills,
301b6a4e 30417 emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
2ba9daa7 30418
5641785f
BE
304192009-01-06 Ben Elliston <bje@au.ibm.com>
30420
30421 * gengtype-lex.l (YY_NO_INPUT): Define.
30422
e4e5261f
AP
304232009-01-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
30424
30425 PR c/34911
5641785f
BE
30426 * c-common.c (handle_vector_size_attribute): Also reject
30427 BOOLEAN_TYPE types.
e4e5261f 30428
7b10257f
SP
304292009-01-05 Sebastian Pop <sebastian.pop@amd.com>
30430
30431 PR tree-optimization/38492
30432 * graphite.c (rename_map_elt, debug_rename_elt,
301b6a4e
UB
30433 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
30434 rename_map_elt_info, eq_rename_map_elts,
30435 get_new_name_from_old_name, bb_in_sese_p): Moved around.
7b10257f
SP
30436 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
30437 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
30438 (sese_build_livein_liveouts): New.
30439 (new_sese, free_sese): New.
30440 (new_scop): Call new_sese.
30441 (free_scop): Call free_sese.
30442 (rename_variables_from_edge, rename_phis_end_scop): Removed.
30443 (register_old_new_names): Renamed register_old_and_new_names.
30444 (register_scop_liveout_renames, add_loop_exit_phis,
30445 insert_loop_close_phis, struct igp,
30446 default_liveout_before_guard, add_guard_exit_phis,
30447 insert_guard_phis, copy_renames): New.
30448 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
30449 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
30450 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
30451 (scop_adjust_phis_for_liveouts): New.
30452 (gloog): Call scop_adjust_phis_for_liveouts.
30453
30454 * graphite.h (struct sese): Documented. Added fields liveout,
301b6a4e 30455 num_ver and livein.
7b10257f
SP
30456 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
30457 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
30458 (struct scop): Added field liveout_renames.
30459 (SCOP_LIVEOUT_RENAMES): New.
30460
9761fcc7
HJ
304612009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
30462
30463 PR tree-optimization/38510
30464 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
30465 (translate_clast): Call recompute_all_dominators before
30466 graphite_verify.
30467 (gloog): Call recompute_all_dominators before graphite_verify.
30468
304692009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
c95b2534 30470 Jan Sjodin <jan.sjodin@amd.com>
9761fcc7
HJ
30471
30472 PR tree-optimization/38500
30473 * graphite.c (create_sese_edges): Call fix_loop_structure after
30474 splitting blocks.
30475
c95b2534 304762009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
48a01864
JS
30477
30478 * config.gcc: Add m32r*-*-rtems*.
30479 * config/m32r/rtems.h: New file.
30480
fc0cd180
BE
304812009-01-05 Ben Elliston <bje@au.ibm.com>
30482
30483 * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
30484 (.po.pox): Likewise.
30485 (po/gcc.pot): Likewise.
30486
3106d8e5
DM
304872009-01-04 David S. Miller <davem@davemloft.net>
30488
30489 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
30490 (STARTING_FRAME_OFFSET): Always set to zero.
30491
0009b473
RS
304922009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
30493
30494 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
30495 * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
30496 fixed-point types, and vectors of the same.
30497
4f24c6d6
RS
304982009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
30499
30500 * config/mips/sync.md (*mb_barrier): Rename to...
30501 (*memory_barrier): ...this.
30502
1df48f5c
JW
305032009-01-04 Jonathan Wakely <jwakely.gcc@gmail.com>
30504
30505 * doc/extend.texi (Function Attributes): Move @cindex after @item
eefe5da0 30506 for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
1df48f5c
JW
30507 and put in alphabetical order. Fix 'target' name and put in order.
30508 * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
30509 typos.
30510
1a8c13b3
UB
305112009-01-04 Uros Bizjak <ubizjak@gmail.com>
30512
30513 * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
30514 (memory_barrier): Expand as unspec instead of unspec_volatile.
30515 Remove mem:BLK from insn operands. Use Pmode scratch register.
30516 (*memory_barrier): Define as unspec instead of unspec_volatile.
30517 Use (match_dup 0) as input operand.
30518
30519 * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
30520 * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
30521 unspec_volatile. Remove mem:BLK from insn operands. Use Pmode
30522 scratch register. Remove operand 1.
30523 (*stbar): Define as unspec instead of unspec_volatile.
30524 Use (match_dup 0) as input operand, remove (const_int 8).
30525 (*membar): Define as unspec instead of unspec_volatile.
30526 Use (match_dup 0) as input operand, remove input operand 2.
30527
30528 * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
30529 (memory_barrier): Expand as unspec instead of unspec_volatile.
30530 Remove mem:BLK from insn operands. Use Pmode scratch register.
30531 (*memory_barrier): Define as unspec instead of unspec_volatile.
30532 Use (match_dup 0) as input operand.
30533
30534 * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
30535 Remove mem:BLK from insn operands. Use Pmode scratch register.
30536 Set volatile flag on operand 0.
30537 (*memory_barrier): New insn pattern.
30538
30539 * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
30540 insn operands.
30541 (*memory_barrier): Use (match_dup 0) as input operand.
30542
30543 * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
30544 Remove mem:BLK from insn operands. Use Pmode scratch register.
30545 Set volatile flag on operand 0.
301b6a4e 30546 (*mb_internal): New insn pattern.
1a8c13b3
UB
30547
30548 * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
30549
fb0703f7
SB
305502009-01-04 Steven Bosscher <steven@gcc.gnu.org>
30551
30552 PR middle-end/38586
30553 * function.c (struct temp_slot): Move to the section of the file
30554 that deals with temp slots. Remove field 'address'.
30555 (temp_slot_address_table): New hash table of address -> temp slot.
30556 (struct temp_slot_address_entry): New struct, items for the table.
30557 (temp_slot_address_compute_hash, temp_slot_address_hash,
30558 temp_slot_address_eq, insert_temp_slot_address): Support functions
30559 for the new table.
30560 (find_temp_slot_from_address): Rewrite to use the new hash table.
30561 (remove_unused_temp_slot_addresses): Remove addresses of temp
30562 slots that have been made available.
30563 (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
30564 worker function for remove_unused_temp_slot_addresses.
30565 (assign_stack_temp_for_type): Don't clear the temp slot address list.
30566 Add the temp slot address to the address -> temp slot map.
30567 (update_temp_slot_address): Update via insert_temp_slot_address.
30568 (free_temp_slots): Call remove_unused_temp_slot_addresses.
30569 (pop_temp_slots): Likewise.
30570 (init_temp_slots): Allocate the address -> temp slot map, or empty
30571 the map if it is already allocated.
30572 (prepare_function_start): Initialize temp slot processing.
30573
b5a430f3
SB
305742009-01-04 Steven Bosscher <steven@gcc.gnu.org>
30575
30576 PR middle-end/38584
30577 * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
30578 Calculate the size of all stack vars assuming no packing of stack
30579 vars will happen, replacing a quadratic algorithm with a linear one.
30580
5d560619
JJ
305812009-01-03 Jakub Jelinek <jakub@redhat.com>
30582
30583 PR target/38707
30584 * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
30585 can't be used.
30586
953a7caa
DN
305872009-01-03 Diego Novillo <dnovillo@google.com>
30588
30589 * doc/contrib.texi: Update contributions.
30590
5f26a230
JJ
305912009-01-03 Jakub Jelinek <jakub@redhat.com>
30592
493aa551
JJ
30593 PR c++/38705
30594 * builtins.c (fold_builtin_memory_op): Give up if either operand
30595 is volatile. Set srctype or desttype to non-qualified version
30596 of the other type.
30597
5f26a230
JJ
30598 PR c/38700
30599 * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
30600 and FUNCTION_DECLs.
30601
c95b2534 306022009-01-02 Kenneth Zadeck <zadeck@naturalbridge.com>
fafe34f9
KZ
30603
30604 PR rtl-optimization/35805
30605 * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
30606 problem if fast dce is able to remove any instructions.
30607 * dce.c (dce_process_block): Fix dump message.
2ba9daa7 30608
0b355794
MM
306092009-01-02 Mark Mitchell <mark@codesourcery.com>
30610
30611 PR 33649
30612 * tree-ssa-pre.c (compute_antic): Correct loop bounds.
30613
0cf0d02b
JJ
306142009-01-02 Jakub Jelinek <jakub@redhat.com>
30615
30616 PR middle-end/38690
30617 * tree-flow.h (op_code_prio, op_prio): New prototypes.
30618 * tree-pretty-print.c (op_code_prio): New function.
30619 (op_prio): No longer static. Use op_code_prio.
30620 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
30621 Use op_prio and op_code_prio to determine if () should be
30622 printed around operand(s) or not.
30623
30624 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
30625 dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
30626 dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
30627 dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
30628 pp_character instead of pp_string for single letter printing.
30629
e3606f3b
RS
306302009-01-02 Richard Sandiford <rdsandiford@googlemail.com>
30631
30632 * doc/extend.texi: Fix '#pragma GCC option' typo.
30633
c95b2534 306342009-01-02 Richard Guenther <rguenther@suse.de>
00f39bd5 30635
a5f061dc
RG
30636 * doc/install.texi (--enable-checking): Mention different
30637 default for stage1.
30638 (--enable-stage1-checking): Document.
00f39bd5 30639
26de0bcb
AP
306402009-01-01 Andrew Pinski <pinskia@gmail.com>
30641
30642 PR middle-end/30142
30643 * tree-cfg.c (verify_expr): Add INDIRECT_REF case. Change MODIFY_EXPR
30644 case to be an error.
30645
7a7d8fab
BE
306462009-01-02 Ben Elliston <bje@au.ibm.com>
30647
30648 * config/fp-bit.h (pack_d): Constify argument.
30649 * config/fp-bit.c (makenan): Constify return type. Remove casts.
30650 (isnan): Constify argument.
30651 (isinf): Likewise.
30652 (iszero): Likewise.
30653 (pack_d): Likewise.
30654 (_fpadd_parts): Constify return type.
30655 (_fpmul_parts): Likewise.
30656 (_fpdiv_parts): Likewise.
30657
b295aee2
JJ
306582009-01-01 Jakub Jelinek <jakub@redhat.com>
30659
30660 PR c/36489
30661 * c-typeck.c (add_pending_init): Add IMPLICIT argument. Only
30662 warn about overwriting initializer with side-effects or
30663 -Woverride-init if !IMPLICIT.
30664 (output_init_element): Likewise. Pass IMPLICIT down to
30665 add_pending_init.
30666 (process_init_element): Add IMPLICIT argument. Pass it down
30667 to output_init_element.
30668 (push_init_element, pop_init_level, set_designator): Adjust
30669 process_init_element callers.
30670 (set_nonincremental_init, set_nonincremental_init_from_string):
30671 Adjust add_pending_init callers.
30672 (output_pending_init_elements): Adjust output_init_element callers.
30673 * c-tree.h (process_init_element): Adjust prototype.
30674 * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
30675 process_init_element callers.
ad41bd84
JM
30676
30677\f
30678Copyright (C) 2009 Free Software Foundation, Inc.
30679
30680Copying and distribution of this file, with or without modification,
30681are permitted in any medium without royalty provided the copyright
30682notice and this notice are preserved.